@nebula.js/sn-text 1.3.7 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-text v1.3.7
3
- * Copyright (c) 2025 QlikTech International AB
2
+ * @nebula.js/sn-text v1.4.4
3
+ * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel as o,useInteractionState as i,useEmitter as a,useTranslator as l,useState as s,useTheme as u,usePromise as c,useImperativeHandle as d}from"@nebula.js/stardust";function f(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}const p={version:"1.3.7",showTitles:!1,text:null,fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!1},h=e=>{const t=()=>{e.setPropertiesHaveBeenModifiedForSelectedModel(!0)};return{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:0,max:100,added(e){e.qDef={...e.qDef,qAggrFunc:"None"},t()},removed:t,replaced:t,moved:t}}]}};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var v,b,y={},x={exports:{}},_={},S={exports:{}},C={};function E(){if(v)return C;v=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var y=b.prototype=new g;y.constructor=b,p(y,m.prototype),y.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function w(t,n,r){var o,i={},a=null,l=null;if(null!=n)for(o in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(a=""+n.key),n)_.call(n,o)&&!E.hasOwnProperty(o)&&(i[o]=n[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in s=t.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:e,type:t,key:a,ref:l,props:i,_owner:S.current}}function k(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var R=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(n,r,o,i,a){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s=!1;if(null===n)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0}}if(s)return a=a(s=n),n=""===i?"."+T(s,0):i,x(a)?(o="",null!=n&&(o=n.replace(R,"$&/")+"/"),A(a,r,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+n)),r.push(a)),1;if(s=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+T(l=n[u],u);s+=A(l,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(l=n.next()).done;)s+=A(l=l.value,r,o,c=i+T(l,u++),a);else if("object"===l)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function N(e,t,n){if(null==e)return e;var r=[],o=0;return A(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},M={transition:null},P={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:M,ReactCurrentOwner:S};function I(){throw Error("act(...) is not supported in production builds of React.")}return C.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},C.Component=m,C.Fragment=n,C.Profiler=o,C.PureComponent=b,C.StrictMode=r,C.Suspense=s,C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,C.act=I,C.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,l=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,l=S.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(u in n)_.call(n,u)&&!E.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==s?s[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:l}},C.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},C.createElement=w,C.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},C.createRef=function(){return{current:null}},C.forwardRef=function(e){return{$$typeof:l,render:e}},C.isValidElement=k,C.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:L}},C.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},C.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},C.unstable_act=I,C.useCallback=function(e,t){return O.current.useCallback(e,t)},C.useContext=function(e){return O.current.useContext(e)},C.useDebugValue=function(){},C.useDeferredValue=function(e){return O.current.useDeferredValue(e)},C.useEffect=function(e,t){return O.current.useEffect(e,t)},C.useId=function(){return O.current.useId()},C.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},C.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},C.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},C.useMemo=function(e,t){return O.current.useMemo(e,t)},C.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},C.useRef=function(e){return O.current.useRef(e)},C.useState=function(e){return O.current.useState(e)},C.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},C.useTransition=function(){return O.current.useTransition()},C.version="18.3.1",C}function w(){return b||(b=1,S.exports=E()),S.exports}var k,R,T,A,N,L={exports:{}},O={};function M(){return R||(R=1,L.exports=(k||(k=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(m=!1,y(e),!h)if(null!==n(s))h=!0,O(_);else{var t=n(u);null!==t&&M(x,t.startTime-e)}}function _(t,o){h=!1,m&&(m=!1,v(w),w=-1),p=!0;var i=f;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!T());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&M(x,g.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,E=null,w=-1,k=5,R=-1;function T(){return!(e.unstable_now()-R<k)}function A(){if(null!==E){var t=e.unstable_now();R=t;var n=!0;try{n=E(!0,t)}finally{n?S():(C=!1,E=null)}}else C=!1}if("function"==typeof b)S=function(){b(A)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,L=N.port2;N.port1.onmessage=A,S=function(){L.postMessage(null)}}else S=function(){g(A,0)};function O(e){E=e,C||(C=!0,S())}function M(t,n){w=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,O(_))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(m?(v(w),w=-1):m=!0,M(x,i-a))):(r.sortIndex=l,t(s,r),h||p||(h=!0,O(_))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(O)),O)),L.exports}
7
+ import{useMemo as e,useEffect as t,useState as n,usePromise as r,useElement as o,useStaleLayout as i,useModel as a,useInteractionState as s,useEmitter as l,useTranslator as u,useTheme as c,useImperativeHandle as d}from"@nebula.js/stardust";function f(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}const p={version:"1.4.4",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!1,images:[]},h=e=>{const t=()=>{e.setPropertiesHaveBeenModifiedForSelectedModel(!0)};return{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:0,max:100,added(e){e.qDef={...e.qDef,qAggrFunc:"None"},t()},removed:t,replaced:t,moved:t}}]}};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var v,y,b={},x={exports:{}},_={},w={exports:{}},k={};function S(){if(v)return k;v=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var b=y.prototype=new g;b.constructor=y,p(b,m.prototype),b.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,w={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)_.call(n,o)&&!S.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:w.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var T=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+A(l,0):i,x(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),R(a,r,o,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=R(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=R(s=s.value,r,o,c=i+A(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function L(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},O={transition:null},P={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:O,ReactCurrentOwner:w};function z(){throw Error("act(...) is not supported in production builds of React.")}return k.Children={map:L,forEach:function(e,t,n){L(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return L(e,(function(){t++})),t},toArray:function(e){return L(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},k.Component=m,k.Fragment=n,k.Profiler=o,k.PureComponent=y,k.StrictMode=r,k.Suspense=l,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,k.act=z,k.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=w.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)_.call(n,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},k.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},k.createElement=C,k.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},k.createRef=function(){return{current:null}},k.forwardRef=function(e){return{$$typeof:s,render:e}},k.isValidElement=E,k.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:N}},k.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},k.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},k.unstable_act=z,k.useCallback=function(e,t){return M.current.useCallback(e,t)},k.useContext=function(e){return M.current.useContext(e)},k.useDebugValue=function(){},k.useDeferredValue=function(e){return M.current.useDeferredValue(e)},k.useEffect=function(e,t){return M.current.useEffect(e,t)},k.useId=function(){return M.current.useId()},k.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},k.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},k.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},k.useMemo=function(e,t){return M.current.useMemo(e,t)},k.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},k.useRef=function(e){return M.current.useRef(e)},k.useState=function(e){return M.current.useState(e)},k.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},k.useTransition=function(){return M.current.useTransition()},k.version="18.3.1",k}function C(){return y||(y=1,w.exports=S()),w.exports}var E,T,A,R,L,N={exports:{}},M={};function O(){return T||(T=1,N.exports=(E||(E=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function x(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,M(_);else{var t=n(u);null!==t&&O(x,t.startTime-e)}}function _(t,o){h=!1,m&&(m=!1,v(C),C=-1),p=!0;var i=f;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!A());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&O(x,g.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,k=!1,S=null,C=-1,E=5,T=-1;function A(){return!(e.unstable_now()-T<E)}function R(){if(null!==S){var t=e.unstable_now();T=t;var n=!0;try{n=S(!0,t)}finally{n?w():(k=!1,S=null)}}else k=!1}if("function"==typeof y)w=function(){y(R)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,N=L.port2;L.port1.onmessage=R,w=function(){N.postMessage(null)}}else w=function(){g(R,0)};function M(e){S=e,k||(k=!0,w())}function O(t,n){C=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,M(_))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(v(C),C=-1):m=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,M(_))),r},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(M)),M)),N.exports}
8
8
  /**
9
9
  * @license React
10
10
  * react-dom.production.min.js
@@ -13,14 +13,14 @@ import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel
13
13
  *
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
- */function P(){if(T)return _;T=1;var e=w(),t=M();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function f(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!s.call(d,e)||!s.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),y=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),k=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),I=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||e["@@iterator"])?e:null}var $,z=Object.assign;function F(e){if(void 0===$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||""}return"\n"+$+e}var B=!1;function H(e,t){if(!e||B)return"";B=!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()}}),"object"==typeof Reflect&&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&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function j(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 1:return e=H(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case y:return"Portal";case C:return"Profiler";case S:return"StrictMode";case A:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function G(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=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===S?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.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]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function Z(e,t){J(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:Y(r)}}function ae(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.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&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=z({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(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 xe=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,Ee=null;function we(e){if(e=xo(e)){if("function"!=typeof Se)throw Error(n(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function ke(e){Ce?Ee?Ee.push(e):Ee=[e]:Ce=e}function Re(){if(Ce){var e=Ce,t=Ee;if(Ee=Ce=null,we(e),t)for(e=0;e<t.length;e++)we(t[e])}}function Te(e,t){return e(t)}function Ae(){}var Ne=!1;function Le(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Te(e,t,n)}finally{Ne=!1,(null!==Ce||null!==Ee)&&(Ae(),Re())}}function Oe(e,t){var r=e.stateNode;if(null===r)return null;var o=So(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Me=!1;if(l)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(e){Me=!1}function Ie(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var De=!1,$e=null,ze=!1,Fe=null,Be={onError:function(e){De=!0,$e=e}};function He(e,t,n,r,o,i,a,l,s){De=!1,$e=null,Ie.apply(Be,arguments)}function je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ge(e){if(je(e)!==e)throw Error(n(188))}function Ye(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=je(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return Ge(i),e;if(a===o)return Ge(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var l=!1,s=i.child;s;){if(s===r){l=!0,r=i,o=a;break}if(s===o){l=!0,o=i,r=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===r){l=!0,r=a,o=i;break}if(s===o){l=!0,o=a,r=i;break}s=s.sibling}if(!l)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var Ke=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Qe=t.unstable_requestPaint,Xe=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,Ze=t.unstable_ImmediatePriority,et=t.unstable_UserBlockingPriority,tt=t.unstable_NormalPriority,nt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ut=64,ct=4194304;function dt(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(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;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,St,Ct,Et,wt,kt=!1,Rt=[],Tt=null,At=null,Nt=null,Lt=new Map,Ot=new Map,Mt=[],Pt="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 It(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Dt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function $t(e){var t=yo(e.target);if(null!==t){var n=je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void wt(e.priority,(function(){Ct(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Bt(){kt=!1,null!==Tt&&zt(Tt)&&(Tt=null),null!==At&&zt(At)&&(At=null),null!==Nt&&zt(Nt)&&(Nt=null),Lt.forEach(Ft),Ot.forEach(Ft)}function Ht(e,n){e.blockedOn===n&&(e.blockedOn=null,kt||(kt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function jt(e){function t(t){return Ht(t,e)}if(0<Rt.length){Ht(Rt[0],e);for(var n=1;n<Rt.length;n++){var r=Rt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ht(Tt,e),null!==At&&Ht(At,e),null!==Nt&&Ht(Nt,e),Lt.forEach(t),Ot.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)$t(n),null===n.blockedOn&&Mt.shift()}var Wt=v.ReactCurrentBatchConfig,Gt=!0;function Yt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=1,Kt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Ut(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=4,Kt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Kt(e,t,n,r){if(Gt){var o=qt(e,t,n,r);if(null===o)Gr(e,t,r,Vt,n),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Dt(Tt,e,t,n,r,o),!0;case"dragenter":return At=Dt(At,e,t,n,r,o),!0;case"mouseover":return Nt=Dt(Nt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Lt.set(i,Dt(Lt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Ot.set(i,Dt(Ot.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&_t(i),null===(i=qt(e,t,n,r))&&Gr(e,t,r,Vt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Gr(e,t,r,null,n)}}var Vt=null;function qt(e,t,n,r){if(Vt=null,null!==(e=yo(e=_e(r))))if(null===(t=je(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vt=e,null}function Qt(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(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=z({},un,{view:0,detail:0}),fn=on(dn),pn=z({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),mn=on(z({},pn,{dataTransfer:0})),gn=on(z({},dn,{relatedTarget:0})),vn=on(z({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=z({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),xn=on(z({},un,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function wn(){return En}var kn=z({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rn=on(kn),Tn=on(z({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(z({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wn})),Nn=on(z({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=z({},pn,{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}),On=on(Ln),Mn=[9,13,27,32],Pn=l&&"CompositionEvent"in window,In=null;l&&"documentMode"in document&&(In=document.documentMode);var Dn=l&&"TextEvent"in window&&!In,$n=l&&(!Pn||In&&8<In&&11>=In),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var jn=!1;var Wn={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 Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Yn(e,t,n,r){ke(r),0<(t=Ur(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Kn=null;function Vn(e){zr(e,0)}function qn(e){if(V(_o(e)))return e}function Qn(e,t){if("change"===e)return t}var Xn=!1;if(l){var Jn;if(l){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Un&&(Un.detachEvent("onpropertychange",nr),Kn=Un=null)}function nr(e){if("value"===e.propertyName&&qn(Kn)){var t=[];Yn(t,Kn,e,_e(e)),Le(Vn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Un=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Kn)}function ir(e,t){if("click"===e)return qn(t)}function ar(e,t){if("input"===e||"change"===e)return qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===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 o=n[r];if(!s.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=l&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==q(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=Ur(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Cr={},Er={};function wr(e){if(Cr[e])return Cr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Cr[e]=n[t];return e}l&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var kr=wr("animationend"),Rr=wr("animationiteration"),Tr=wr("animationstart"),Ar=wr("transitionend"),Nr=new Map,Lr="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 Or(e,t){Nr.set(e,t),i(t,[e])}for(var Mr=0;Mr<Lr.length;Mr++){var Pr=Lr[Mr];Or(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Or(kr,"onAnimationEnd"),Or(Rr,"onAnimationIteration"),Or(Tr,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(Ar,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="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(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function $r(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,l,s,u){if(He.apply(this,arguments),De){if(!De)throw Error(n(198));var c=$e;De=!1,$e=null,ze||(ze=!0,Fe=c)}}(o,t,void 0,e),e.currentTarget=null}function zr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;$r(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;$r(o,l,u),i=s}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function jr(e){if(!e[Hr]){e[Hr]=!0,r.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,Br("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Qt(t)){case 1:var o=Yt;break;case 4:o=Ut;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Gr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=yo(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Le((function(){var r=i,o=_e(n),a=[];e:{var l=Nr.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Rn;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=An;break;case kr:case Rr:case Tr:s=vn;break;case Ar:s=Nn;break;case"scroll":s=fn;break;case"wheel":s=On;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Oe(h,f))&&c.push(Yr(h,m,p)))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!yo(u)&&!u[mo])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?yo(u):null)&&(u!==(d=je(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:_o(s),p=null==u?l:_o(u),(l=new c(m,h+"leave",s,n,o)).target=d,l.relatedTarget=p,m=null,yo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(f=u,h=0,p=c=s;p;p=Kr(p))h++;for(p=0,m=f;m;m=Kr(m))p++;for(;0<h-p;)c=Kr(c),h--;for(;0<p-h;)f=Kr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Kr(c),f=Kr(f)}c=null}else c=null;null!==s&&Vr(a,l,s,c,!1),null!==u&&null!==d&&Vr(a,d,u,c,!0)}if("select"===(s=(l=r?_o(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Qn;else if(Gn(l))if(Xn)g=ar;else{g=or;var v=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ir);switch(g&&(g=g(e,r))?Yn(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&te(l,"number",l.value)),v=r?_o(r):window,e){case"focusin":(Gn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,br=null);break;case"focusout":br=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var b;if(Pn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else jn?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&($n&&"ko"!==n.locale&&(jn||"onCompositionStart"!==y?"onCompositionEnd"===y&&jn&&(b=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,jn=!0)),0<(v=Ur(r,y)).length&&(y=new xn(y,e,null,n,o),a.push({event:y,listeners:v}),b?y.data=b:null!==(b=Hn(n))&&(y.data=b))),(b=Dn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(jn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Zt=Jt=Xt=null,jn=!1,e):null;switch(e){case"paste":default: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 $n&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}zr(a,t)}))}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Oe(e,n))&&r.unshift(Yr(e,i,o)),null!=(i=Oe(e,t))&&r.push(Yr(e,i,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Oe(n,i))&&a.unshift(Yr(n,s,l)):o||null!=(s=Oe(n,i))&&a.push(Yr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Qr,"")}function Jr(e,t,r){if(t=Xr(t),Xr(e)!==t&&r)throw Error(n(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void jt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);jt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function So(e){return e[ho]||null}var Co=[],Eo=-1;function wo(e){return{current:e}}function ko(e){0>Eo||(e.current=Co[Eo],Co[Eo]=null,Eo--)}function Ro(e,t){Eo++,Co[Eo]=e.current,e.current=t}var To={},Ao=wo(To),No=wo(!1),Lo=To;function Oo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!=(e=e.childContextTypes)}function Po(){ko(No),ko(Ao)}function Io(e,t,r){if(Ao.current!==To)throw Error(n(168));Ro(Ao,t),Ro(No,r)}function Do(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,G(e)||"Unknown",i));return z({},r,o)}function $o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Lo=Ao.current,Ro(Ao,e),Ro(No,No.current),!0}function zo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Do(e,t,Lo),o.__reactInternalMemoizedMergedChildContext=e,ko(No),ko(Ao),Ro(Ao,e)):ko(No),Ro(No,r)}var Fo=null,Bo=!1,Ho=!1;function jo(e){null===Fo?Fo=[e]:Fo.push(e)}function Wo(){if(!Ho&&null!==Fo){Ho=!0;var e=0,t=yt;try{var n=Fo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ke(Ze,Wo),t}finally{yt=t,Ho=!1}}return null}var Go=[],Yo=0,Uo=null,Ko=0,Vo=[],qo=0,Qo=null,Xo=1,Jo="";function Zo(e,t){Go[Yo++]=Ko,Go[Yo++]=Uo,Uo=e,Ko=t}function ei(e,t,n){Vo[qo++]=Xo,Vo[qo++]=Jo,Vo[qo++]=Qo,Qo=e;var r=Xo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Xo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Uo;)Uo=Go[--Yo],Go[Yo]=null,Ko=Go[--Yo],Go[Yo]=null;for(;e===Qo;)Qo=Vo[--qo],Vo[qo]=null,Jo=Vo[--qo],Vo[qo]=null,Xo=Vo[--qo],Vo[qo]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Lu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qo?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var r=t;if(!si(e,t)){if(ui(e))throw Error(n(418));t=uo(r.nextSibling);var o=ri;t&&si(e,t)?li(o,r):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(n(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(n(418));for(;t;)li(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=v.ReactCurrentBatchConfig;function vi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Mu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=$u(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===O&&yi(o)===t.type)?((r=i(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Pu(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Iu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=$u(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case y:return(t=zu(t,e.mode,n)).return=e,t;case O:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||D(t))return(t=Iu(t,e.mode,n,null)).return=e,t;bi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===o?u(e,t,n,r):null;case y:return n.key===o?c(e,t,n,r):null;case O:return p(e,t,(o=n._init)(n._payload),r)}if(ne(n)||D(n))return null!==o?null:d(e,t,n,r,null);bi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case y:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case O:return h(e,t,n,(0,r._init)(r._payload),o)}if(ne(r)||D(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function m(n,i,l,s){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(n,d,l[m],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===l.length)return r(n,d),ii&&Zo(n,m),u;if(null===d){for(;m<l.length;m++)null!==(d=f(n,l[m],s))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(n,m),u}for(d=o(n,d);m<l.length;m++)null!==(g=h(d,n,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(n,e)})),ii&&Zo(n,m),u}function g(i,l,s,u){var c=D(s);if("function"!=typeof c)throw Error(n(150));if(null==(s=c.call(s)))throw Error(n(151));for(var d=c=null,m=l,g=l=0,v=null,b=s.next();null!==m&&!b.done;g++,b=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=p(i,m,b.value,u);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(i,m),l=a(y,l,g),null===d?c=y:d.sibling=y,d=y,m=v}if(b.done)return r(i,m),ii&&Zo(i,g),c;if(null===m){for(;!b.done;g++,b=s.next())null!==(b=f(i,b.value,u))&&(l=a(b,l,g),null===d?c=b:d.sibling=b,d=b);return ii&&Zo(i,g),c}for(m=o(i,m);!b.done;g++,b=s.next())null!==(b=h(m,i,g,b.value,u))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),l=a(b,l,g),null===d?c=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(i,e)})),ii&&Zo(i,g),c}return function e(n,o,a,s){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case b:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){r(n,c.sibling),(o=i(c,a.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===O&&yi(u)===c.type){r(n,c.sibling),(o=i(c,a.props)).ref=vi(n,c,a),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===x?((o=Iu(a.props.children,n.mode,s,a.key)).return=n,n=o):((s=Pu(a.type,a.key,a.props,null,n.mode,s)).ref=vi(n,o,a),s.return=n,n=s)}return l(n);case y:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=zu(a,n.mode,s)).return=n,n=o}return l(n);case O:return e(n,o,(c=a._init)(a._payload),s)}if(ne(a))return m(n,o,a,s);if(D(a))return g(n,o,a,s);bi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=$u(a,n.mode,s)).return=n,n=o),l(n)):r(n,o)}}var _i=xi(!0),Si=xi(!1),Ci=wo(null),Ei=null,wi=null,ki=null;function Ri(){ki=wi=Ei=null}function Ti(e){var t=Ci.current;ko(Ci),e._currentValue=t}function Ai(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ni(e,t){Ei=e,ki=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Li(e){var t=e._currentValue;if(ki!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===Ei)throw Error(n(308));wi=e,Ei.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Oi=null;function Mi(e){null===Oi?Oi=[e]:Oi.push(e)}function Pi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ii(e,r)}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Di=!1;function $i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(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 Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ts){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function Hi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function ji(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;Di=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=z({},d,f);break e;case 2:Di=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ds|=a,e.lanes=a,e.memoizedState=d}}function Gi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Yi={},Ui=wo(Yi),Ki=wo(Yi),Vi=wo(Yi);function qi(e){if(e===Yi)throw Error(n(174));return e}function Qi(e,t){switch(Ro(Vi,t),Ro(Ki,e),Ro(Ui,Yi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko(Ui),Ro(Ui,t)}function Xi(){ko(Ui),ko(Ki),ko(Vi)}function Ji(e){qi(Vi.current);var t=qi(Ui.current),n=ue(t,e.type);t!==n&&(Ro(Ki,e),Ro(Ui,n))}function Zi(e){Ki.current===e&&(ko(Ui),ko(Ki))}var ea=wo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=v.ReactCurrentDispatcher,ia=v.ReactCurrentBatchConfig,aa=0,la=null,sa=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ga(e,t,r,o,i,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:el,e=r(o,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(n(301));a+=1,ua=sa=null,t.updateQueue=null,oa.current=tl,e=r(o,i)}while(da)}if(oa.current=Ja,t=null!==sa&&null!==sa.next,aa=0,ua=sa=la=null,ca=!1,t)throw Error(n(300));return e}function va(){var e=0!==fa;return fa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?la.memoizedState=ua=e:ua=ua.next=e,ua}function ya(){if(null===sa){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=sa.next;var t=null===ua?la.memoizedState:ua.next;if(null!==t)ua=t,sa=e;else{if(null===e)throw Error(n(310));e={memoizedState:(sa=e).memoizedState,baseState:sa.baseState,baseQueue:sa.baseQueue,queue:sa.queue,next:null},null===ua?la.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"==typeof t?t(e):t}function _a(e){var t=ya(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=sa,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var s=l=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,l=o):u=u.next=f,la.lanes|=d,Ds|=d}c=c.next}while(null!==c&&c!==a);null===u?l=o:u.next=s,lr(o,t.memoizedState)||(yl=!0),t.memoizedState=o,t.baseState=l,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,la.lanes|=a,Ds|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Sa(e){var t=ya(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);lr(a,t.memoizedState)||(yl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function Ca(){}function Ea(e,t){var r=la,o=ya(),i=t(),a=!lr(o.memoizedState,i);if(a&&(o.memoizedState=i,yl=!0),o=o.queue,Da(Ra.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(r.flags|=2048,La(9,ka.bind(null,r,o,i,t),void 0,null),null===As)throw Error(n(349));30&aa||wa(r,t,i)}return i}function wa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Aa(e)}function Ra(e,t,n){return n((function(){Ta(t)&&Aa(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Aa(e){var t=Ii(e,1);null!==t&&nu(t,e,1,-1)}function Na(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Va.bind(null,la,e),[t.memoizedState,e]}function La(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Oa(){return ya().memoizedState}function Ma(e,t,n,r){var o=ba();la.flags|=e,o.memoizedState=La(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==sa){var a=sa.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=La(t,n,i,r))}la.flags|=e,o.memoizedState=La(1|t,n,i,r)}function Ia(e,t){return Ma(8390656,8,e,t)}function Da(e,t){return Pa(2048,8,e,t)}function $a(e,t){return Pa(4,2,e,t)}function za(e,t){return Pa(4,4,e,t)}function Fa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!=n?n.concat([e]):null,Pa(4,4,Fa.bind(null,t,e),n)}function Ha(){}function ja(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ga(e,t,n){return 21&aa?(lr(n,t)||(n=mt(),la.lanes|=n,Ds|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n)}function Ya(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function Ua(){return ya().memoizedState}function Ka(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))Qa(t,n);else if(null!==(n=Pi(e,t,n,r))){nu(n,e,r,eu()),Xa(n,t,r)}}function Va(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))Qa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Mi(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Pi(e,t,o,r))&&(nu(n,e,r,o=eu()),Xa(n,t,r))}}function qa(e){var t=e.alternate;return e===la||null!==t&&t===la}function Qa(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Ja={readContext:Li,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Li,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Li,useEffect:Ia,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();return t=void 0!==n?n(t):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=Ka.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Na,useDebugValue:Ha,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Na(!1),t=e[0];return e=Ya.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=la,i=ba();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===As)throw Error(n(349));30&aa||wa(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ia(Ra.bind(null,o,a,e),[e]),o.flags|=2048,La(9,ka.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ba(),t=As.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Li,useCallback:ja,useContext:Li,useEffect:Da,useImperativeHandle:Ba,useInsertionEffect:$a,useLayoutEffect:za,useMemo:Wa,useReducer:_a,useRef:Oa,useState:function(){return _a(xa)},useDebugValue:Ha,useDeferredValue:function(e){return Ga(ya(),sa.memoizedState,e)},useTransition:function(){return[_a(xa)[0],ya().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Ea,useId:Ua,unstable_isNewReconciler:!1},tl={readContext:Li,useCallback:ja,useContext:Li,useEffect:Da,useImperativeHandle:Ba,useInsertionEffect:$a,useLayoutEffect:za,useMemo:Wa,useReducer:Sa,useRef:Oa,useState:function(){return Sa(xa)},useDebugValue:Ha,useDeferredValue:function(e){var t=ya();return null===sa?t.memoizedState=e:Ga(t,sa.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],ya().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Ea,useId:Ua,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=z({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:z({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),Hi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),Hi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Fi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nu(t,e,r,n),Hi(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,i))}function al(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Li(i):(o=Mo(t)?Lo:Ao.current,i=(r=null!=(r=t.contextTypes))?Oo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},$i(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Li(i):(i=Mo(t)?Lo:Ao.current,o.context=Oo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rl(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ul(e,t){try{var n="",r=t;do{n+=j(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gs||(Gs=!0,Ys=r),dl(0,t)},n}function hl(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Us?Us=new Set([this]):Us.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=wu.bind(null,e,t,n),t.then(e,e))}function gl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var bl=v.ReactCurrentOwner,yl=!1;function xl(e,t,n,r){t.child=null===e?Si(t,null,n,r):_i(t,e.child,n,r)}function _l(e,t,n,r,o){n=n.render;var i=t.ref;return Ni(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||yl?(ii&&n&&ti(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gl(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ou(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cl(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Gl(e,t,o)}return t.flags|=1,(e=Mu(i,r)).ref=t.ref,e.return=t,t.child=e}function Cl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Gl(e,t,o);131072&e.flags&&(yl=!0)}}return kl(e,t,n,r,o)}function El(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ro(Ms,Os),Os|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ro(Ms,Os),Os|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ro(Ms,Os),Os|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ro(Ms,Os),Os|=r;return xl(e,t,o,n),t.child}function wl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kl(e,t,n,r,o){var i=Mo(n)?Lo:Ao.current;return i=Oo(t,i),Ni(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||yl?(ii&&r&&ti(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gl(e,t,o))}function Rl(e,t,n,r,o){if(Mo(n)){var i=!0;$o(t)}else i=!1;if(Ni(t,o),null===t.stateNode)Wl(e,t),al(t,n,r),sl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Li(u):u=Oo(t,u=Mo(n)?Lo:Ao.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&ll(t,a,r,u),Di=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),s=t.memoizedState,l!==r||f!==s||No.current||Di?("function"==typeof c&&(rl(t,n,c,r),s=t.memoizedState),(l=Di||il(t,n,l,r,f,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zi(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:nl(t.type,l),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Li(s):s=Oo(t,s=Mo(n)?Lo:Ao.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&ll(t,a,r,s),Di=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||No.current||Di?("function"==typeof p&&(rl(t,n,p,r),h=t.memoizedState),(u=Di||il(t,n,u,r,f,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Tl(e,t,n,r,i,o)}function Tl(e,t,n,r,o,i){wl(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&zo(t,n,!1),Gl(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Al(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),Qi(e,t.containerInfo)}function Nl(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xl(e,t,n,r),t.child}var Ll,Ol,Ml,Pl,Il={dehydrated:null,treeContext:null,retryLane:0};function Dl(e){return{baseLanes:e,cachePool:null,transitions:null}}function $l(e,t,r){var o,i=t.pendingProps,a=ea.current,l=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ro(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,l?(i=t.mode,l=t.child,s={mode:"hidden",children:s},1&i||null===l?l=Du(s,i,0,null):(l.childLanes=0,l.pendingProps=s),e=Iu(e,i,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Dl(r),t.memoizedState=Il,e):zl(t,s));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,l){if(r)return 256&t.flags?(t.flags&=-257,Fl(e,t,l,o=cl(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=Du({mode:"visible",children:o.children},i,0,null),(a=Iu(a,i,l,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&_i(t,e.child,null,l),t.child.memoizedState=Dl(l),t.memoizedState=Il,a);if(!(1&t.mode))return Fl(e,t,l,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var s=o.dgst;return o=s,Fl(e,t,l,o=cl(a=Error(n(419)),o,void 0))}if(s=!!(l&e.childLanes),yl||s){if(null!==(o=As)){switch(l&-l){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(o.suspendedLanes|l)?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ii(e,i),nu(o,e,i,-1))}return mu(),Fl(e,t,l,o=cl(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Ru.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,oi=uo(i.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Vo[qo++]=Xo,Vo[qo++]=Jo,Vo[qo++]=Qo,Xo=e.id,Jo=e.overflow,Qo=t),t=zl(t,o.children),t.flags|=4096,t)}(e,t,s,i,o,a,r);if(l){l=i.fallback,s=t.mode,o=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&s||t.child===a?(i=Mu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==o?l=Mu(o,l):(l=Iu(l,s,r,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,i=l,l=t.child,s=null===(s=e.child.memoizedState)?Dl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~r,t.memoizedState=Il,i}return e=(l=e.child).sibling,i=Mu(l,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function zl(e,t){return(t=Du({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fl(e,t,n,r){return null!==r&&mi(r),_i(t,e.child,null,n),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ai(e.return,t,n)}function Hl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function jl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bl(e,n,t);else if(19===e.tag)Bl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ro(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hl(t,!0,n,null,i);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Wl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ds|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Mu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Mu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Yl(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ul(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kl(e,t,r){var i=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ul(t),null;case 1:case 17:return Mo(t.type)&&Po(),Ul(t),null;case 3:return i=t.stateNode,Xi(),ko(No),ko(Ao),ra(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Ol(e,t),Ul(t),null;case 5:Zi(t);var a=qi(Vi.current);if(r=t.type,null!==e&&null!=t.stateNode)Ml(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Ul(t),null}if(e=qi(Ui.current),fi(t)){i=t.stateNode,r=t.type;var l=t.memoizedProps;switch(i[po]=t,i[ho]=l,e=!!(1&t.mode),r){case"dialog":Fr("cancel",i),Fr("close",i);break;case"iframe":case"object":case"embed":Fr("load",i);break;case"video":case"audio":for(a=0;a<Ir.length;a++)Fr(Ir[a],i);break;case"source":Fr("error",i);break;case"img":case"image":case"link":Fr("error",i),Fr("load",i);break;case"details":Fr("toggle",i);break;case"input":X(i,l),Fr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!l.multiple},Fr("invalid",i);break;case"textarea":ie(i,l),Fr("invalid",i)}for(var s in be(r,l),a=null,l)if(l.hasOwnProperty(s)){var u=l[s];"children"===s?"string"==typeof u?i.textContent!==u&&(!0!==l.suppressHydrationWarning&&Jr(i.textContent,u,e),a=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==l.suppressHydrationWarning&&Jr(i.textContent,u,e),a=["children",""+u]):o.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Fr("scroll",i)}switch(r){case"input":K(i),ee(i,l,!0);break;case"textarea":K(i),le(i);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(i.onclick=Zr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{s=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=s.createElement(r,{is:i.is}):(e=s.createElement(r),"select"===r&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,r),e[po]=t,e[ho]=i,Ll(e,t,!1,!1),t.stateNode=e;e:{switch(s=ye(r,i),r){case"dialog":Fr("cancel",e),Fr("close",e),a=i;break;case"iframe":case"object":case"embed":Fr("load",e),a=i;break;case"video":case"audio":for(a=0;a<Ir.length;a++)Fr(Ir[a],e);a=i;break;case"source":Fr("error",e),a=i;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),a=i;break;case"details":Fr("toggle",e),a=i;break;case"input":X(e,i),a=Q(e,i),Fr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=z({},i,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,i),a=oe(e,i),Fr("invalid",e)}for(l in be(r,a),u=a)if(u.hasOwnProperty(l)){var c=u[l];"style"===l?ge(e,c):"dangerouslySetInnerHTML"===l?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===l?"string"==typeof c?("textarea"!==r||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(o.hasOwnProperty(l)?null!=c&&"onScroll"===l&&Fr("scroll",e):null!=c&&g(e,l,c,s))}switch(r){case"input":K(e),ee(e,i,!1);break;case"textarea":K(e),le(e);break;case"option":null!=i.value&&e.setAttribute("value",""+Y(i.value));break;case"select":e.multiple=!!i.multiple,null!=(l=i.value)?re(e,!!i.multiple,l,!1):null!=i.defaultValue&&re(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Zr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ul(t),null;case 6:if(e&&null!=t.stateNode)Pl(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=qi(Vi.current),qi(Ui.current),fi(t)){if(i=t.stateNode,r=t.memoizedProps,i[po]=t,(l=i.nodeValue!==r)&&null!==(e=ri))switch(e.tag){case 3:Jr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(i.nodeValue,r,!!(1&e.mode))}l&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[po]=t,t.stateNode=i}return Ul(t),null;case 13:if(ko(ea),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,l=!1;else if(l=fi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!l)throw Error(n(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(n(317));l[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ul(t),l=!1}else null!==ai&&(au(ai),ai=null),l=!0;if(!l)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Ps&&(Ps=3):mu())),null!==t.updateQueue&&(t.flags|=4),Ul(t),null);case 4:return Xi(),Ol(e,t),null===e&&jr(t.stateNode.containerInfo),Ul(t),null;case 10:return Ti(t.type._context),Ul(t),null;case 19:if(ko(ea),null===(l=t.memoizedState))return Ul(t),null;if(i=!!(128&t.flags),null===(s=l.rendering))if(i)Yl(l,!1);else{if(0!==Ps||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ta(e))){for(t.flags|=128,Yl(l,!1),null!==(i=s.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(l=r).flags&=14680066,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ro(ea,1&ea.current|2),t.child}e=e.sibling}null!==l.tail&&Xe()>js&&(t.flags|=128,i=!0,Yl(l,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ta(s))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Yl(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!ii)return Ul(t),null}else 2*Xe()-l.renderingStartTime>js&&1073741824!==r&&(t.flags|=128,i=!0,Yl(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=l.last)?r.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Xe(),t.sibling=null,r=ea.current,Ro(ea,i?1&r|2:1&r),t):(Ul(t),null);case 22:case 23:return du(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Os)&&(Ul(t),6&t.subtreeFlags&&(t.flags|=8192)):Ul(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Vl(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&Po(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xi(),ko(No),ko(Ao),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(ko(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(ea),null;case 4:return Xi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ll=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ol=function(){},Ml=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qi(Ui.current);var a,l=null;switch(n){case"input":i=Q(e,i),r=Q(e,r),l=[];break;case"select":i=z({},i,{value:void 0}),r=z({},r,{value:void 0}),l=[];break;case"textarea":i=oe(e,i),r=oe(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in be(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(l||(l=[]),l.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(l=l||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(l=l||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),l||s===u||(l=[])):(l=l||[]).push(c,u))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}},Pl=function(e,t,n,r){n!==r&&(t.flags|=4)};var ql=!1,Ql=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Jl=null;function Zl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){Eu(e,t,n)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&es(t,n,i)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[bo])),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 as(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var cs=null,ds=!1;function fs(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ql||Zl(n,t);case 6:var r=cs,o=ds;cs=null,fs(e,t,n),ds=o,null!==(cs=r)&&(ds?(e=cs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cs.removeChild(n.stateNode));break;case 18:null!==cs&&(ds?(e=cs,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),jt(e)):so(cs,n.stateNode));break;case 4:r=cs,o=ds,cs=n.stateNode.containerInfo,ds=!0,fs(e,t,n),cs=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Ql&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&es(n,t,a),o=o.next}while(o!==r)}fs(e,t,n);break;case 1:if(!Ql&&(Zl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Eu(n,t,e)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Ql=(r=Ql)||null!==n.memoizedState,fs(e,t,n),Ql=r):fs(e,t,n);break;default:fs(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:cs=s.stateNode,ds=!1;break e;case 3:case 4:cs=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===cs)throw Error(n(160));ps(a,l,i),cs=null,ds=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Eu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gs(t,e),t=t.sibling}function gs(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),vs(e),4&o){try{ns(3,e,e.return),rs(3,e)}catch(t){Eu(e,e.return,t)}try{ns(5,e,e.return)}catch(t){Eu(e,e.return,t)}}break;case 1:ms(t,e),vs(e),512&o&&null!==r&&Zl(r,r.return);break;case 5:if(ms(t,e),vs(e),512&o&&null!==r&&Zl(r,r.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Eu(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,l=null!==r?r.memoizedProps:a,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===a.type&&null!=a.name&&J(i,a),ye(s,l);var c=ye(s,a);for(l=0;l<u.length;l+=2){var d=u[l],f=u[l+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):g(i,d,f,c)}switch(s){case"input":Z(i,a);break;case"textarea":ae(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[ho]=a}catch(t){Eu(e,e.return,t)}}break;case 6:if(ms(t,e),vs(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Eu(e,e.return,t)}}break;case 3:if(ms(t,e),vs(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{jt(t.containerInfo)}catch(t){Eu(e,e.return,t)}break;case 4:default:ms(t,e),vs(e);break;case 13:ms(t,e),vs(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Hs=Xe())),4&o&&hs(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Ql=(c=Ql)||d,ms(t,e),Ql=c):ms(t,e),vs(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Jl=e,d=e.child;null!==d;){for(f=Jl=d;null!==Jl;){switch(h=(p=Jl).child,p.tag){case 0:case 11:case 14:case 15:ns(4,p,p.return);break;case 1:Zl(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){o=p,r=p.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Eu(o,r,e)}}break;case 5:Zl(p,p.return);break;case 22:if(null!==p.memoizedState){_s(f);continue}}null!==h?(h.return=p,Jl=h):_s(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,l=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=me("display",l))}catch(t){Eu(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Eu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ms(t,e),vs(e),4&o&&hs(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(as(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(fe(i,""),o.flags&=-33),us(e,ls(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ss(e,ls(e),a);break;default:throw Error(n(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Jl=e,ys(e)}function ys(e,t,n){for(var r=!!(1&e.mode);null!==Jl;){var o=Jl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||ql;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Ql;l=ql;var u=Ql;if(ql=a,(Ql=s)&&!u)for(Jl=o;null!==Jl;)s=(a=Jl).child,22===a.tag&&null!==a.memoizedState?Ss(o):null!==s?(s.return=a,Jl=s):Ss(o);for(;null!==i;)Jl=i,ys(i),i=i.sibling;Jl=o,ql=l,Ql=u}xs(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Jl=i):xs(e)}}function xs(e){for(;null!==Jl;){var t=Jl;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ql||rs(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Ql)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:nl(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Gi(t,a,o);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Gi(t,l,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&jt(f)}}}break;default:throw Error(n(163))}Ql||512&t.flags&&os(t)}catch(e){Eu(t,t.return,e)}}if(t===e){Jl=null;break}if(null!==(r=t.sibling)){r.return=t.return,Jl=r;break}Jl=t.return}}function _s(e){for(;null!==Jl;){var t=Jl;if(t===e){Jl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jl=n;break}Jl=t.return}}function Ss(e){for(;null!==Jl;){var t=Jl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){Eu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Eu(t,o,e)}}var i=t.return;try{os(t)}catch(e){Eu(t,i,e)}break;case 5:var a=t.return;try{os(t)}catch(e){Eu(t,a,e)}}}catch(e){Eu(t,t.return,e)}if(t===e){Jl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jl=l;break}Jl=t.return}}var Cs,Es=Math.ceil,ws=v.ReactCurrentDispatcher,ks=v.ReactCurrentOwner,Rs=v.ReactCurrentBatchConfig,Ts=0,As=null,Ns=null,Ls=0,Os=0,Ms=wo(0),Ps=0,Is=null,Ds=0,$s=0,zs=0,Fs=null,Bs=null,Hs=0,js=1/0,Ws=null,Gs=!1,Ys=null,Us=null,Ks=!1,Vs=null,qs=0,Qs=0,Xs=null,Js=-1,Zs=0;function eu(){return 6&Ts?Xe():-1!==Js?Js:Js=Xe()}function tu(e){return 1&e.mode?2&Ts&&0!==Ls?Ls&-Ls:null!==gi.transition?(0===Zs&&(Zs=mt()),Zs):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function nu(e,t,r,o){if(50<Qs)throw Qs=0,Xs=null,Error(n(185));vt(e,r,o),2&Ts&&e===As||(e===As&&(!(2&Ts)&&($s|=r),4===Ps&&lu(e,Ls)),ru(e,o),1===r&&0===Ts&&!(1&t.mode)&&(js=Xe()+500,Bo&&Wo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=pt(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===As?Ls:0);if(0===r)null!==n&&Ve(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ve(n),1===t)0===e.tag?function(e){Bo=!0,jo(e)}(su.bind(null,e)):jo(su.bind(null,e)),ao((function(){!(6&Ts)&&Wo()})),n=null;else{switch(xt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Au(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Js=-1,Zs=0,6&Ts)throw Error(n(327));var r=e.callbackNode;if(Su()&&e.callbackNode!==r)return null;var o=ft(e,e===As?Ls:0);if(0===o)return null;if(30&o||o&e.expiredLanes||t)t=gu(e,o);else{t=o;var i=Ts;Ts|=2;var a=hu();for(As===e&&Ls===t||(Ws=null,js=Xe()+500,fu(e,t));;)try{bu();break}catch(t){pu(e,t)}Ri(),ws.current=a,Ts=i,null!==Ns?t=0:(As=null,Ls=0,t=Ps)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=iu(e,i))),1===t)throw r=Is,fu(e,0),lu(e,o),ru(e,Xe()),r;if(6===t)lu(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=gu(e,o),2===t&&(a=ht(e),0!==a&&(o=a,t=iu(e,a))),1!==t)))throw r=Is,fu(e,0),lu(e,o),ru(e,Xe()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:_u(e,Bs,Ws);break;case 3:if(lu(e,o),(130023424&o)===o&&10<(t=Hs+500-Xe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&o)!==o){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ro(_u.bind(null,e,Bs,Ws),t);break}_u(e,Bs,Ws);break;case 4:if(lu(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var l=31-at(o);a=1<<l,(l=t[l])>i&&(i=l),o&=~a}if(o=i,10<(o=(120>(o=Xe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Es(o/1960))-o)){e.timeoutHandle=ro(_u.bind(null,e,Bs,Ws),o);break}_u(e,Bs,Ws);break;default:throw Error(n(329))}}}return ru(e,Xe()),e.callbackNode===r?ou.bind(null,e):null}function iu(e,t){var n=Fs;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Bs,Bs=n,null!==t&&au(t)),e}function au(e){null===Bs?Bs=e:Bs.push.apply(Bs,e)}function lu(e,t){for(t&=~zs,t&=~$s,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(6&Ts)throw Error(n(327));Su();var t=ft(e,0);if(!(1&t))return ru(e,Xe()),null;var r=gu(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=iu(e,o))}if(1===r)throw r=Is,fu(e,0),lu(e,t),ru(e,Xe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Bs,Ws),ru(e,Xe()),null}function uu(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(js=Xe()+500,Bo&&Wo())}}function cu(e){null!==Vs&&0===Vs.tag&&!(6&Ts)&&Su();var t=Ts;Ts|=1;var n=Rs.transition,r=yt;try{if(Rs.transition=null,yt=1,e)return e()}finally{yt=r,Rs.transition=n,!(6&(Ts=t))&&Wo()}}function du(){Os=Ms.current,ko(Ms)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ns)for(n=Ns.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:Xi(),ko(No),ko(Ao),ra();break;case 5:Zi(r);break;case 4:Xi();break;case 13:case 19:ko(ea);break;case 10:Ti(r.type._context);break;case 22:case 23:du()}n=n.return}if(As=e,Ns=e=Mu(e.current,null),Ls=Os=t,Ps=0,Is=null,zs=$s=Ds=0,Bs=Fs=null,null!==Oi){for(t=0;t<Oi.length;t++)if(null!==(r=(n=Oi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Oi=null}return e}function pu(e,t){for(;;){var r=Ns;try{if(Ri(),oa.current=Ja,ca){for(var o=la.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}ca=!1}if(aa=0,ua=sa=la=null,da=!1,fa=0,ks.current=null,null===r||null===r.return){Ps=1,Is=t,Ns=null;break}e:{var a=e,l=r.return,s=r,u=t;if(t=Ls,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gl(l);if(null!==h){h.flags&=-257,vl(h,l,s,0,t),1&h.mode&&ml(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ml(a,c,t),mu();break e}u=Error(n(426))}else if(ii&&1&s.mode){var v=gl(l);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vl(v,l,s,0,t),mi(ul(u,s));break e}}a=u=ul(u,s),4!==Ps&&(Ps=2),null===Fs?Fs=[a]:Fs.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,ji(a,pl(0,u,t));break e;case 1:s=u;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Us&&Us.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,ji(a,hl(a,s,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Ns===r&&null!==r&&(Ns=r=r.return);continue}break}}function hu(){var e=ws.current;return ws.current=Ja,null===e?Ja:e}function mu(){0!==Ps&&3!==Ps&&2!==Ps||(Ps=4),null===As||!(268435455&Ds)&&!(268435455&$s)||lu(As,Ls)}function gu(e,t){var r=Ts;Ts|=2;var o=hu();for(As===e&&Ls===t||(Ws=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(Ri(),Ts=r,ws.current=o,null!==Ns)throw Error(n(261));return As=null,Ls=0,Ps}function vu(){for(;null!==Ns;)yu(Ns)}function bu(){for(;null!==Ns&&!qe();)yu(Ns)}function yu(e){var t=Cs(e.alternate,e,Os);e.memoizedProps=e.pendingProps,null===t?xu(e):Ns=t,ks.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Vl(n,t)))return n.flags&=32767,void(Ns=n);if(null===e)return Ps=6,void(Ns=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Kl(n,t,Os)))return void(Ns=n);if(null!==(t=t.sibling))return void(Ns=t);Ns=t=e}while(null!==t);0===Ps&&(Ps=5)}function _u(e,t,r){var o=yt,i=Rs.transition;try{Rs.transition=null,yt=1,function(e,t,r,o){do{Su()}while(null!==Vs);if(6&Ts)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(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 o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===As&&(Ns=As=null,Ls=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Ks||(Ks=!0,Au(tt,(function(){return Su(),null}))),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Rs.transition,Rs.transition=null;var l=yt;yt=1;var s=Ts;Ts|=4,ks.current=null,function(e,t){if(eo=Gt,pr(e=fr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var l=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(s=l+i),f!==a||0!==o&&3!==f.nodeType||(u=l+o),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===i&&(s=l),p===a&&++d===o&&(u=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===s||-1===u?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Gt=!1,Jl=t;null!==Jl;)if(e=(t=Jl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Jl=e;else for(;null!==Jl;){t=Jl;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:nl(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){Eu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Jl=e;break}Jl=t.return}m=ts,ts=!1}(e,r),gs(r,e),hr(to),Gt=!!eo,to=eo=null,e.current=r,bs(r),Qe(),Ts=s,yt=l,Rs.transition=a}else e.current=r;if(Ks&&(Ks=!1,Vs=e,qs=i),a=e.pendingLanes,0===a&&(Us=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),ru(e,Xe()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Gs)throw Gs=!1,e=Ys,Ys=null,e;!!(1&qs)&&0!==e.tag&&Su(),a=e.pendingLanes,1&a?e===Xs?Qs++:(Qs=0,Xs=e):Qs=0,Wo()}(e,t,r,o)}finally{Rs.transition=i,yt=o}return null}function Su(){if(null!==Vs){var e=xt(qs),t=Rs.transition,r=yt;try{if(Rs.transition=null,yt=16>e?16:e,null===Vs)var o=!1;else{if(e=Vs,Vs=null,qs=0,6&Ts)throw Error(n(331));var i=Ts;for(Ts|=4,Jl=e.current;null!==Jl;){var a=Jl,l=a.child;if(16&Jl.flags){var s=a.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Jl=c;null!==Jl;){var d=Jl;switch(d.tag){case 0:case 11:case 15:ns(8,d,a)}var f=d.child;if(null!==f)f.return=d,Jl=f;else for(;null!==Jl;){var p=(d=Jl).sibling,h=d.return;if(is(d),d===c){Jl=null;break}if(null!==p){p.return=h,Jl=p;break}Jl=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Jl=a}}if(2064&a.subtreeFlags&&null!==l)l.return=a,Jl=l;else e:for(;null!==Jl;){if(2048&(a=Jl).flags)switch(a.tag){case 0:case 11:case 15:ns(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Jl=b;break e}Jl=a.return}}var y=e.current;for(Jl=y;null!==Jl;){var x=(l=Jl).child;if(2064&l.subtreeFlags&&null!==x)x.return=l,Jl=x;else e:for(l=y;null!==Jl;){if(2048&(s=Jl).flags)try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){Eu(s,s.return,e)}if(s===l){Jl=null;break e}var _=s.sibling;if(null!==_){_.return=s.return,Jl=_;break e}Jl=s.return}}if(Ts=i,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{yt=r,Rs.transition=t}}return!1}function Cu(e,t,n){e=Bi(e,t=pl(0,t=ul(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ru(e,t))}function Eu(e,t,n){if(3===e.tag)Cu(e,e,n);else for(;null!==t;){if(3===t.tag){Cu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Us||!Us.has(r))){t=Bi(t,e=hl(t,e=ul(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function wu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,As===e&&(Ls&n)===n&&(4===Ps||3===Ps&&(130023424&Ls)===Ls&&500>Xe()-Hs?fu(e,0):zs|=n),ru(e,t)}function ku(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=Ii(e,t))&&(vt(e,t,n),ru(e,n))}function Ru(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ku(e,n)}function Tu(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),ku(e,r)}function Au(e,t){return Ke(e,t)}function Nu(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 Lu(e,t,n,r){return new Nu(e,t,n,r)}function Ou(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=Lu(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,r,o,i,a){var l=2;if(o=e,"function"==typeof e)Ou(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return Iu(r.children,i,a,t);case S:l=8,i|=8;break;case C:return(e=Lu(12,r,t,2|i)).elementType=C,e.lanes=a,e;case A:return(e=Lu(13,r,t,i)).elementType=A,e.lanes=a,e;case N:return(e=Lu(19,r,t,i)).elementType=N,e.lanes=a,e;case P:return Du(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:l=10;break e;case k:l=9;break e;case R:l=11;break e;case L:l=14;break e;case O:l=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Lu(l,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Iu(e,t,n,r){return(e=Lu(7,e,r,t)).lanes=n,e}function Du(e,t,n,r){return(e=Lu(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function $u(e,t,n){return(e=Lu(6,e,null,t)).lanes=n,e}function zu(e,t,n){return(t=Lu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,o,i,a,l,s){return e=new Fu(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Lu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$i(i),e}function Hu(e){if(!e)return To;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Mo(r))return Do(e,r,t)}return t}function ju(e,t,n,r,o,i,a,l,s){return(e=Bu(n,r,!0,e,0,i,0,l,s)).context=Hu(null),n=e.current,(i=Fi(r=eu(),o=tu(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),ru(e,r),e}function Wu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=Hu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nu(e,o,a,i),Hi(e,o,a)),a}function Gu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Uu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}Cs=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||No.current)yl=!0;else{if(!(e.lanes&r||128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:Al(t),hi();break;case 5:Ji(t);break;case 1:Mo(t.type)&&$o(t);break;case 4:Qi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ro(Ci,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ro(ea,1&ea.current),t.flags|=128,null):n&t.child.childLanes?$l(e,t,n):(Ro(ea,1&ea.current),null!==(e=Gl(e,t,n))?e.sibling:null);Ro(ea,1&ea.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return jl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ro(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,El(e,t,n)}return Gl(e,t,n)}(e,t,r);yl=!!(131072&e.flags)}else yl=!1,ii&&1048576&t.flags&&ei(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Wl(e,t),e=t.pendingProps;var i=Oo(t,Ao.current);Ni(t,r),i=ga(null,t,o,e,i,r);var a=va();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(o)?(a=!0,$o(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,$i(t),i.updater=ol,t.stateNode=i,i._reactInternals=t,sl(t,o,e,r),t=Tl(null,t,o,!0,a,r)):(t.tag=0,ii&&a&&ti(t),xl(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Ou(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===L)return 14}return 2}(o),e=nl(o,e),i){case 0:t=kl(null,t,o,e,r);break e;case 1:t=Rl(null,t,o,e,r);break e;case 11:t=_l(null,t,o,e,r);break e;case 14:t=Sl(null,t,o,nl(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,kl(e,t,o,i=t.elementType===o?i:nl(o,i),r);case 1:return o=t.type,i=t.pendingProps,Rl(e,t,o,i=t.elementType===o?i:nl(o,i),r);case 3:e:{if(Al(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,zi(e,t),Wi(t,o,null,r);var l=t.memoizedState;if(o=l.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Nl(e,t,o,r,i=ul(Error(n(423)),t));break e}if(o!==i){t=Nl(e,t,o,r,i=ul(Error(n(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,r=Si(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hi(),o===i){t=Gl(e,t,r);break e}xl(e,t,o,r)}t=t.child}return t;case 5:return Ji(t),null===e&&ci(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,no(o,i)?l=null:null!==a&&no(o,a)&&(t.flags|=32),wl(e,t),xl(e,t,l,r),t.child;case 6:return null===e&&ci(t),null;case 13:return $l(e,t,r);case 4:return Qi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=_i(t,null,o,r):xl(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,_l(e,t,o,i=t.elementType===o?i:nl(o,i),r);case 7:return xl(e,t,t.pendingProps,r),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value,Ro(Ci,o._currentValue),o._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===i.children&&!No.current){t=Gl(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var u=s.firstContext;null!==u;){if(u.context===o){if(1===a.tag){(u=Fi(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Ai(a.return,r,t),s.lanes|=r;break}u=u.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(n(341));l.lanes|=r,null!==(s=l.alternate)&&(s.lanes|=r),Ai(l,r,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Ni(t,r),o=o(i=Li(i)),t.flags|=1,xl(e,t,o,r),t.child;case 14:return i=nl(o=t.type,t.pendingProps),Sl(e,t,o,i=nl(o.type,i),r);case 15:return Cl(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:nl(o,i),Wl(e,t),t.tag=1,Mo(o)?(e=!0,$o(t)):e=!1,Ni(t,r),al(t,o,i),sl(t,o,i,r),Tl(null,t,o,!0,e,r);case 19:return jl(e,t,r);case 22:return El(e,t,r)}throw Error(n(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function Vu(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function Zu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Gu(a);l.call(e)}}Wu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Gu(a);i.call(e)}}var a=ju(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[mo]=a.current,jr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Gu(s);l.call(e)}}var s=Bu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=s,e[mo]=s.current,jr(8===e.nodeType?e.parentNode:e),cu((function(){Wu(t,s,n,r)})),s}(n,t,e,o,r);return Gu(a)}qu.prototype.render=Vu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wu(e,t,null,null)},qu.prototype.unmount=Vu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Wu(null,e,null,null)})),t[mo]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&$t(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ru(t,Xe()),!(6&Ts)&&(js=Xe()+500,Wo()))}break;case 13:cu((function(){var t=Ii(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Uu(e,1)}},St=function(e){if(13===e.tag){var t=Ii(e,134217728);if(null!==t)nu(t,e,134217728,eu());Uu(e,134217728)}},Ct=function(e){if(13===e.tag){var t=tu(e),n=Ii(e,t);if(null!==n)nu(n,e,t,eu());Uu(e,t)}},Et=function(){return yt},wt=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Se=function(e,t,r){switch(t){case"input":if(Z(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=So(o);if(!i)throw Error(n(90));V(o),Z(o,i)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Te=uu,Ae=cu;var ec={usingClientEntryPoint:!1,Events:[xo,_o,So,ke,Re,uu]},tc={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ye(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(e){}}return _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,_.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:y,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},_.createRoot=function(e,t){if(!Qu(e))throw Error(n(299));var r=!1,o="",i=Ku;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bu(e,1,!1,null,0,r,0,o,i),e[mo]=t.current,jr(8===e.nodeType?e.parentNode:e),new Vu(t)},_.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ye(t))?null:e.stateNode},_.flushSync=function(e){return cu(e)},_.hydrate=function(e,t,r){if(!Xu(t))throw Error(n(200));return Zu(null,e,t,!0,r)},_.hydrateRoot=function(e,t,r){if(!Qu(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",l=Ku;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=ju(t,null,e,1,null!=r?r:null,i,0,a,l),e[mo]=t.current,jr(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new qu(t)},_.render=function(e,t,r){if(!Xu(t))throw Error(n(200));return Zu(null,e,t,!1,r)},_.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(n(40));return!!e._reactRootContainer&&(cu((function(){Zu(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},_.unstable_batchedUpdates=uu,_.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Xu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Zu(e,t,r,!1,o)},_.version="18.3.1-next-f1338f8080-20240426",_}function I(){if(A)return x.exports;return A=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),x.exports=P(),x.exports}var D=function(){if(N)return y;N=1;var e=I();return y.createRoot=e.createRoot,y.hydrateRoot=e.hydrateRoot,y}();var $=w(),z=m($),F=f({__proto__:null,default:z},[$]);const B=$.createContext({layout:void 0,model:void 0,element:void 0,edit:!1,initialData:void 0,emitter:void 0,lang:"en",flags:{isEnabled:()=>!1},theme:null,readyToPrint:[]});var H,j,W,G,Y,U,K,V,q,Q,X,J,Z={},ee={},te={},ne={};function re(){if(H)return ne;H=1;let e={},t={},n={},r={},o={},i={},a={},l={},s={},u={},c={},d={},f={},p={},h={},m={},g={},v={},b={},y={},x={},_={},S={},C={},E={},w={},k={},R={},T={},A={},N={},L={},O={},M={},P={};function I(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let D="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,$=D&&"documentMode"in document?document.documentMode:null,z=D&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),F=D&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),B=!(!D||!("InputEvent"in window)||$)&&"getTargetRanges"in new window.InputEvent("input"),j=D&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),W=D&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,G=D&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Y=D&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!G,U=j||W||Y?" ":"​",K=F?" ":U,V=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,q=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,Q={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},X={directionless:1,unmergeable:2},J={center:2,end:6,justify:4,left:1,right:3,start:5},Z={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},ee={normal:0,segmented:2,token:1},te={0:"normal",2:"segmented",1:"token"},re=!1,oe=0;function ie(e){oe=e.timeStamp}function ae(e,t,n){return t.__lexicalLineBreak===e||void 0!==e[`__lexicalKey_${n._key}`]}function le(e,t,n){re=!0;let r=100<performance.now()-oe;try{kr(e,(()=>{let o=tr()||function(e){return e.getEditorState().read((()=>{let e=tr();return null!==e?e.clone():null}))}(e);var i=new Map,a=e.getRootElement(),l=e._editorState,s=e._blockCursorElement;let u=!1,c="";for(var d=0;d<t.length;d++){var f=t[d],p=f.type,h=f.target,m=Le(h,l);if(!(null===m&&h!==a||Tr(m)))if("characterData"===p){if(f=r&&Nn(m))e:{p=h;var g=m;if(Fn(f=o)){var v=f.anchor.getNode();if(v.is(g)&&f.format!==v.getFormat()){f=!1;break e}}f=3===p.nodeType&&g.isAttached()}f&&(p=f=null,null!==(g=at(e._window))&&g.anchorNode===h&&(f=g.anchorOffset,p=g.focusOffset),null!==(h=h.nodeValue)&&He(m,h,f,p,!1))}else if("childList"===p){for(u=!0,p=f.addedNodes,g=0;g<p.length;g++){var b=Ne(v=p[g]),y=v.parentNode;null==y||v===s||null!==b||"BR"===v.nodeName&&ae(v,y,e)||(F&&(b=v.innerText||v.nodeValue)&&(c+=b),y.removeChild(v))}if(0<(p=(f=f.removedNodes).length)){for(g=0,v=0;v<p;v++)("BR"===(y=f[v]).nodeName&&ae(y,h,e)||s===y)&&(h.appendChild(y),g++);p!==g&&(h===a&&(m=l._nodeMap.get("root")),i.set(h,m))}}}if(0<i.size)for(let[t,n]of i)if(Nr(n))for(i=n.getChildrenKeys(),a=t.firstChild,l=0;l<i.length;l++)null!==(s=e.getElementByKey(i[l]))&&(null==a?(t.appendChild(s),a=s):a!==s&&t.replaceChild(s,a),a=a.nextSibling);else Nn(n)&&n.markDirty();if(0<(i=n.takeRecords()).length){for(a=0;a<i.length;a++)for(l=(s=i[a]).addedNodes,s=s.target,d=0;d<l.length;d++)null==(h=(m=l[d]).parentNode)||"BR"!==m.nodeName||ae(m,s,e)||h.removeChild(m);n.takeRecords()}null!==o&&(u&&(o.dirty=!0,Ie(o)),F&&Ke(e)&&o.insertRawText(c))}))}finally{re=!1}}function se(e){let t=e._observer;if(null!==t){le(e,t.takeRecords(),t)}}function ue(e){0===oe&&Je(e).addEventListener("textInput",ie,!0),e._observer=new MutationObserver(((t,n)=>{le(e,t,n)}))}function ce(e,t){let n=e.__mode,r=e.__format;e=e.__style;let o=t.__mode,i=t.__format;return t=t.__style,!(null!==n&&n!==o||null!==r&&r!==i||null!==e&&e!==t)}function de(e,t){let n=e.mergeWithSibling(t),r=vr()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function fe(e){if(""===e.__text&&e.isSimpleText()&&!e.isUnmergeable())e.remove();else{for(var t;null!==(t=e.getPreviousSibling())&&Nn(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){ce(t,e)&&(e=de(t,e));break}t.remove()}for(var n;null!==(n=e.getNextSibling())&&Nn(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){ce(e,n)&&de(e,n);break}n.remove()}}}function pe(e){return he(e.anchor),he(e.focus),e}function he(e){for(;"element"===e.type;){var t=e.getNode(),n=e.offset;if(n===t.getChildrenSize()?(t=t.getChildAtIndex(n-1),n=!0):(t=t.getChildAtIndex(n),n=!1),Nn(t)){e.set(t.__key,n?t.getTextContentSize():0,"text");break}if(!Nr(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element")}}let me=1,ge="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function ve(e){let t=document.activeElement;if(null===t)return!1;let n=t.nodeName;return Tr(Le(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==t.__lexicalEditor)}function be(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!ve(t)&&ye(t)===e}catch(e){return!1}}function ye(e){for(;null!=e;){let t=e.__lexicalEditor;if(null!=t)return t;e=Qe(e)}return null}function xe(e){return e.isToken()||e.isSegmented()}function _e(e){for(;null!=e;){if(3===e.nodeType)return e;e=e.firstChild}return null}function Se(e,t,n){return!(e&(t=Q[t]))||null!==n&&n&t?null===n||n&t?e|t:e:e^t}function Ce(e){return Nn(e)||hn(e)||Tr(e)}function Ee(e,t){if(null!=t)e.__key=t;else{mr(),99<fr&&I(14),t=vr();var n=gr(),r=""+me++;n._nodeMap.set(r,e),Nr(e)?t._dirtyElements.set(r,!0):t._dirtyLeaves.add(r),t._cloneNotNeeded.add(r),t._dirtyType=1,e.__key=r}}function we(e){var t=e.getParent();if(null!==t){let o=e.getWritable();t=t.getWritable();var n=e.getPreviousSibling();if(e=e.getNextSibling(),null===n)if(null!==e){var r=e.getWritable();t.__first=e.__key,r.__prev=null}else t.__first=null;else{if(r=n.getWritable(),null!==e){let t=e.getWritable();t.__prev=r.__key,r.__next=t.__key}else r.__next=null;o.__prev=null}null===e?null!==n?(e=n.getWritable(),t.__last=n.__key,e.__next=null):t.__last=null:(e=e.getWritable(),null!==n?((n=n.getWritable()).__next=e.__key,e.__prev=n.__key):e.__prev=null,o.__next=null),t.__size--,o.__parent=null}}function ke(e){99<fr&&I(14);var t=e.getLatest(),n=t.__parent,r=gr();let o=vr(),i=r._nodeMap;if(r=o._dirtyElements,null!==n)e:for(;null!==n&&!r.has(n);){let e=i.get(n);if(void 0===e)break;r.set(n,!1),n=e.__parent}t=t.__key,o._dirtyType=1,Nr(e)?r.set(t,!0):o._dirtyLeaves.add(t)}function Re(e){mr();var t=vr();let n=t._compositionKey;e!==n&&(t._compositionKey=e,null!==n&&(null!==(t=Ae(n))&&t.getWritable()),null!==e&&(null!==(e=Ae(e))&&e.getWritable()))}function Te(){return hr()?null:vr()._compositionKey}function Ae(e,t){return void 0===(e=(t||gr())._nodeMap.get(e))?null:e}function Ne(e,t){return void 0!==(e=e[`__lexicalKey_${vr()._key}`])?Ae(e,t):null}function Le(e,t){for(;null!=e;){let n=Ne(e,t);if(null!==n)return n;e=Qe(e)}return null}function Oe(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t}function Me(e){return e.read((()=>Pe().getTextContent()))}function Pe(){return gr()._nodeMap.get("root")}function Ie(e){mr();let t=gr();null!==e&&(e.dirty=!0,e._cachedNodes=null),t._selection=e}function De(e){var t,n=vr();e:{for(t=e;null!=t;){let e=t[`__lexicalKey_${n._key}`];if(void 0!==e){t=e;break e}t=Qe(t)}t=null}return null===t?e===(n=n.getRootElement())?Ae("root"):null:Ae(t)}function $e(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function ze(e){let t=[];for(;null!==e;)t.push(e),e=e._parentEditor;return t}function Fe(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Be(e,t,n){if(null!==(t=at(t._window))){var r=t.anchorNode,{anchorOffset:o,focusOffset:i}=t;if(null!==r&&(t=3===r.nodeType?r.nodeValue:null,r=Le(r),null!==t&&Nn(r))){if(t===U&&n){t=n,i=o=n.length}null!==t&&He(r,t,o,i,e)}}}function He(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){let u=i.isComposing(),c=t;if((u||o)&&t[t.length-1]===U&&(c=t.slice(0,-1)),t=i.getTextContent(),o||c!==t)if(""===c)if(Re(null),j||W||Y)i.remove();else{let e=vr();setTimeout((()=>{e.update((()=>{i.isAttached()&&i.remove()}))}),20)}else{o=i.getParent(),t=nr();var a=i.getTextContentSize(),l=Te(),s=i.getKey();i.isToken()||null!==l&&s===l&&!u||Fn(t)&&(null!==o&&!o.canInsertTextBefore()&&0===t.anchor.offset||t.anchor.key===e.__key&&0===t.anchor.offset&&!i.canInsertTextBefore()||t.focus.key===e.__key&&t.focus.offset===a&&!i.canInsertTextAfter())?i.markDirty():(Fn(e=tr())&&null!==n&&null!==r&&(e.setTextNodeRange(i,n,i,r),i.isSegmented()&&(n=An(n=i.getTextContent()),i.replace(n),i=n)),i.setTextContent(c))}}}function je(){var e=Pe();Ie(pe(e=e.select(0,e.getChildrenSize())))}function We(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];return void 0!==r?r:"string"==typeof(e=e[t])?(e=e.split(" "),n[t]=e):e}function Ge(e,t,n,r,o){0!==n.size&&(n=r.__type,r=r.__key,void 0===(t=t.get(n))&&I(33,n),n=t.klass,void 0===(t=e.get(n))&&(t=new Map,e.set(n,t)),n="destroyed"===(e=t.get(r))&&"created"===o,(void 0===e||n)&&t.set(r,n?"updated":o))}function Ye(e,t,n){let r=e.getParent(),o=n;return null!==r&&(t&&0===n?(o=e.getIndexWithinParent(),e=r):t||n!==e.getChildrenSize()||(o=e.getIndexWithinParent()+1,e=r)),e.getChildAtIndex(t?o-1:o)}function Ue(e,t){var n=e.offset;return"element"===e.type?Ye(e=e.getNode(),t,n):(e=e.getNode(),t&&0===n||!t&&n===e.getTextContentSize()?null===(n=t?e.getPreviousSibling():e.getNextSibling())?Ye(e.getParentOrThrow(),t,e.getIndexWithinParent()+(t?0:1)):n:null)}function Ke(e){return"insertFromPaste"===(e=(e=Je(e).event)&&e.inputType)||"insertFromPasteAsQuotation"===e}function Ve(e){return!Mr(e)&&!e.isLastChild()&&!e.isInline()}function qe(e,t){return void 0===(e=e._keyToDOMMap.get(t))&&I(75,t),e}function Qe(e){return null!==(e=e.assignedSlot||e.parentElement)&&11===e.nodeType?e.host:e}function Xe(e,t){for(e=e.getParent();null!==e;){if(e.is(t))return!0;e=e.getParent()}return!1}function Je(e){return null===(e=e._window)&&I(78),e}function Ze(e){for(e=e.getParentOrThrow();null!==e&&!et(e);)e=e.getParentOrThrow();return e}function et(e){return Mr(e)||Nr(e)&&e.isShadowRoot()}function tt(e){return Ee(e=e.constructor.clone(e),null),e}function nt(e){var t=vr();let n=e.constructor.getType();return void 0===(t=t._nodes.get(n))&&I(97),null!==(t=t.replace)?((t=t(e))instanceof e.constructor||I(98),t):e}function rt(e,t){!Mr(e=e.getParent())||Nr(t)||Tr(t)||I(99)}function ot(e){return(Tr(e)||Nr(e)&&!e.canBeEmpty())&&!e.isInline()}function it(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null,null!==(t=e.parentElement)&&t.removeChild(e)}function at(e){return D?(e||window).getSelection():null}function lt(e,t){let n=e.getChildAtIndex(t);null==n&&(n=e),et(e)&&I(102);let r=e=>{const t=e.getParentOrThrow(),o=et(t),i=e!==n||o?tt(e):e;if(o)return e.insertAfter(i),[e,i,i];const[a,l,s]=r(t);return e=e.getNextSiblings(),s.append(i,...e),[a,l,i]},[o,i]=r(n);return[o,i]}function st(e,t){for(;e!==Pe()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function ut(e){let t=[],n=[e];for(;0<n.length;){let r=n.pop();void 0===r&&I(112),Nr(r)&&n.unshift(...r.getChildren()),r!==e&&t.push(r)}return t}function ct(e,t,n,r,o,i){for(e=e.getFirstChild();null!==e;){let a=e.__key;e.__parent===t&&(Nr(e)&&ct(e,a,n,r,o,i),n.has(a)||i.delete(a),o.push(a)),e=e.getNextSibling()}}let dt,ft,pt,ht,mt,gt,vt,bt,yt,xt,_t="",St="",Ct="",Et=!1,wt=!1,kt=null;function Rt(e,t){let n=vt.get(e);if(null!==t){let n=Ht(e);n.parentNode===t&&t.removeChild(n)}bt.has(e)||ft._keyToDOMMap.delete(e),Nr(n)&&Tt(e=$t(n,vt),0,e.length-1,null),void 0!==n&&Ge(xt,pt,ht,n,"destroyed")}function Tt(e,t,n,r){for(;t<=n;++t){let n=e[t];void 0!==n&&Rt(n,r)}}function At(e,t){e.setProperty("text-align",t)}function Nt(e,t){var n=dt.theme.indent;if("string"==typeof n){let r=e.classList.contains(n);0<t&&!r?e.classList.add(n):1>t&&r&&e.classList.remove(n)}n=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px",e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${n})`)}function Lt(e,t){e=e.style,0===t?At(e,""):1===t?At(e,"left"):2===t?At(e,"center"):3===t?At(e,"right"):4===t?At(e,"justify"):5===t?At(e,"start"):6===t&&At(e,"end")}function Ot(e,t,n){let r=bt.get(e);void 0===r&&I(60);let o=r.createDOM(dt,ft);var i=ft._keyToDOMMap;if(o["__lexicalKey_"+ft._key]=e,i.set(e,o),Nn(r)?o.setAttribute("data-lexical-text","true"):Tr(r)&&o.setAttribute("data-lexical-decorator","true"),Nr(r)){if(e=r.__indent,i=r.__size,0!==e&&Nt(o,e),0!==i){--i,e=$t(r,bt);var a=St;St="",Mt(e,r,0,i,o,null),Dt(r,o),St=a}0!==(e=r.__format)&&Lt(o,e),r.isInline()||It(null,r,o),Ve(r)&&(_t+="\n\n",Ct+="\n\n")}else i=r.getTextContent(),Tr(r)?(null!==(a=r.decorate(ft,dt))&&Ft(e,a),o.contentEditable="false"):Nn(r)&&(r.isDirectionless()||(St+=i)),_t+=i,Ct+=i;return null!==t&&(null!=n?t.insertBefore(o,n):null!=(n=t.__lexicalLineBreak)?t.insertBefore(o,n):t.appendChild(o)),Ge(xt,pt,ht,r,"created"),o}function Mt(e,t,n,r,o,i){let a=_t;for(_t="";n<=r;++n)Ot(e[n],o,i);Ve(t)&&(_t+="\n\n"),o.__lexicalTextContent=_t,_t=a+_t}function Pt(e,t){return hn(e=t.get(e))||Tr(e)&&e.isInline()}function It(e,t,n){e=null!==e&&(0===e.__size||Pt(e.__last,vt)),t=0===t.__size||Pt(t.__last,bt),e?t||(null!=(t=n.__lexicalLineBreak)&&n.removeChild(t),n.__lexicalLineBreak=null):t&&(t=document.createElement("br"),n.__lexicalLineBreak=t,n.appendChild(t))}function Dt(e,t){var n=t.__lexicalDir;if(t.__lexicalDirTextContent!==St||n!==kt){let i=""===St;if(i)var r=kt;else r=St,r=V.test(r)?"rtl":q.test(r)?"ltr":null;if(r!==n){let a=t.classList,l=dt.theme;var o=null!==n?l[n]:void 0;let s=null!==r?l[r]:void 0;void 0!==o&&("string"==typeof o&&(o=o.split(" "),o=l[n]=o),a.remove(...o)),null===r||i&&"ltr"===r?t.removeAttribute("dir"):(void 0!==s&&("string"==typeof s&&(n=s.split(" "),s=l[r]=n),void 0!==s&&a.add(...s)),t.dir=r),wt||(e.getWritable().__dir=r)}kt=r,t.__lexicalDirTextContent=St,t.__lexicalDir=r}}function $t(e,t){let n=[];for(e=e.__first;null!==e;){let r=t.get(e);void 0===r&&I(101),n.push(e),e=r.__next}return n}function zt(e,t){var n=vt.get(e),r=bt.get(e);void 0!==n&&void 0!==r||I(61);var o=Et||gt.has(e)||mt.has(e);let i=qe(ft,e);if(n===r&&!o)return Nr(n)?(void 0!==(r=i.__lexicalTextContent)&&(_t+=r,Ct+=r),void 0!==(r=i.__lexicalDirTextContent)&&(St+=r)):(r=n.getTextContent(),Nn(n)&&!n.isDirectionless()&&(St+=r),Ct+=r,_t+=r),i;if(n!==r&&o&&Ge(xt,pt,ht,r,"updated"),r.updateDOM(n,i,dt))return r=Ot(e,null,null),null===t&&I(62),t.replaceChild(r,i),Rt(e,null),r;if(Nr(n)&&Nr(r)){if((e=r.__indent)!==n.__indent&&Nt(i,e),(e=r.__format)!==n.__format&&Lt(i,e),o){e=r,o=St,St="",t=_t;var a=n.__size,l=e.__size;if(_t="",1===a&&1===l){var s=n.__first,u=e.__first;if(s===u)zt(s,i);else{var c=Ht(s);u=Ot(u,null,null),i.replaceChild(u,c),Rt(s,null)}}else{u=$t(n,vt);var d=$t(e,bt);if(0===a)0!==l&&Mt(d,e,0,l-1,i,null);else if(0===l)0!==a&&(Tt(u,0,a-1,(s=null==i.__lexicalLineBreak)?null:i),s&&(i.textContent=""));else{var f=u;u=d,d=a-1,a=l-1;let t=i.firstChild,n=0;for(l=0;n<=d&&l<=a;){var p=f[n];let e=u[l];if(p===e)t=Bt(zt(e,i)),n++,l++;else{void 0===s&&(s=new Set(f)),void 0===c&&(c=new Set(u));let r=c.has(p),o=s.has(e);r?(o?((p=qe(ft,e))===t?t=Bt(zt(e,i)):(null!=t?i.insertBefore(p,t):i.appendChild(p),zt(e,i)),n++):Ot(e,i,t),l++):(t=Bt(Ht(p)),Rt(p,i),n++)}}c=l>a,(s=n>d)&&!c?Mt(u,e,l,a,i,s=void 0===(s=u[a+1])?null:ft.getElementByKey(s)):c&&!s&&Tt(f,n,d,i)}}Ve(e)&&(_t+="\n\n"),i.__lexicalTextContent=_t,_t=t+_t,Dt(e,i),St=o,Mr(r)||r.isInline()||It(n,r,i)}Ve(r)&&(_t+="\n\n",Ct+="\n\n")}else n=r.getTextContent(),Tr(r)?null!==(o=r.decorate(ft,dt))&&Ft(e,o):Nn(r)&&!r.isDirectionless()&&(St+=n),_t+=n,Ct+=n;return!wt&&Mr(r)&&r.__cachedText!==Ct&&((r=r.getWritable()).__cachedText=Ct),i}function Ft(e,t){let n=ft._pendingDecorators,r=ft._decorators;if(null===n){if(r[e]===t)return;n=Oe(ft)}n[e]=t}function Bt(e){return null!==(e=e.nextSibling)&&e===ft._blockCursorElement&&(e=e.nextSibling),e}function Ht(e){let t=yt.get(e);return void 0===t&&I(75,e),t}let jt=Object.freeze({}),Wt=[["keydown",function(e,t){if(Gt=e.timeStamp,Yt=e.keyCode,!t.isComposing()){var{keyCode:o,shiftKey:i,ctrlKey:a,metaKey:l,altKey:k}=e;if(!Cr(t,p,e)){if(39!==o||a||l||k)if(39!==o||k||i||!a&&!l)if(37!==o||a||l||k)if(37!==o||k||i||!a&&!l)if(38!==o||a||l)if(40!==o||a||l)if(13===o&&i)Xt=!0,Cr(t,x,e);else if(32===o)Cr(t,_,e);else if(z&&a&&79===o)e.preventDefault(),Xt=!0,Cr(t,r,!0);else if(13!==o||i)if(z?k||l||!(8===o||72===o&&a):a||k||l||8!==o)if(27===o)Cr(t,C,e);else if(z?i||k||l||!(46===o||68===o&&a):a||k||l||46!==o)if(8===o&&(z?k:a))e.preventDefault(),Cr(t,s,!0);else if(46===o&&(z?k:a))e.preventDefault(),Cr(t,s,!1);else if(z&&l&&8===o)e.preventDefault(),Cr(t,u,!0);else if(z&&l&&46===o)e.preventDefault(),Cr(t,u,!1);else if(66===o&&!k&&(z?l:a))e.preventDefault(),Cr(t,c,"bold");else if(85===o&&!k&&(z?l:a))e.preventDefault(),Cr(t,c,"underline");else if(73===o&&!k&&(z?l:a))e.preventDefault(),Cr(t,c,"italic");else if(9!==o||k||a||l)if(90===o&&!i&&(z?l:a))e.preventDefault(),Cr(t,d,void 0);else{var R=z?90===o&&l&&i:89===o&&a||90===o&&a&&i;R?(e.preventDefault(),Cr(t,f,void 0)):Wn(t._editorState._selection)?(R=!i&&(67===o&&(z?l:a)))?(e.preventDefault(),Cr(t,N,e)):(R=!i&&(88===o&&(z?l:a)))?(e.preventDefault(),Cr(t,L,e)):65===o&&(z?l:a)&&(e.preventDefault(),t.update((()=>{je()}))):!F&&65===o&&(z?l:a)&&(e.preventDefault(),t.update((()=>{je()})))}else Cr(t,w,e);else 46===o?Cr(t,E,e):(e.preventDefault(),Cr(t,n,!1));else 8===o?Cr(t,S,e):(e.preventDefault(),Cr(t,n,!0));else Xt=!1,Cr(t,x,e);else Cr(t,y,e);else Cr(t,b,e);else Cr(t,v,e);else Cr(t,g,e);else Cr(t,m,e);else Cr(t,h,e);(a||i||k||l)&&Cr(t,P,e)}}}],["pointerdown",function(e,t){let n=e.target;e=e.pointerType,n instanceof Node&&"touch"!==e&&kr(t,(()=>{Tr(Le(n))||(Qt=!0)}))}],["compositionstart",function(e,t){kr(t,(()=>{let n=tr();if(Fn(n)&&!t.isComposing()){let r=n.anchor,o=n.anchor.getNode();Re(r.key),(e.timeStamp<Gt+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||o.getStyle()!==n.style)&&Cr(t,i,K)}}))}],["compositionend",function(e,t){F?Jt=!0:kr(t,(()=>{on(t,e.data)}))}],["input",function(e,t){e.stopPropagation(),kr(t,(()=>{var n=tr(),r=e.data,o=rn(e);if(null!=r&&Fn(n)&&en(n,o,r,e.timeStamp,!1)){Jt&&(on(t,r),Jt=!1);var a=n.anchor,l=a.getNode();if(null===(o=at(t._window)))return;let s=a.offset;(a=B&&!n.isCollapsed()&&Nn(l)&&null!==o.anchorNode)&&(a=(l=l.getTextContent().slice(0,s)+r+l.getTextContent().slice(s+n.focus.offset))===(3===(o=o.anchorNode).nodeType?o.nodeValue:null)),a||Cr(t,i,r),r=r.length,F&&1<r&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=r),j||W||Y||!t.isComposing()||(Gt=0,Re(null))}else Be(!1,t,null!==r?r:void 0),Jt&&(on(t,r||void 0),Jt=!1);mr(),se(n=vr())})),Kt=null}],["click",function(e,n){kr(n,(()=>{let r=tr();var o=at(n._window);let i=nr();if(o)if(Fn(r)){let t=r.anchor;var a=t.getNode();"element"===t.type&&0===t.offset&&r.isCollapsed()&&!Mr(a)&&1===Pe().getChildrenSize()&&a.getTopLevelElementOrThrow().isEmpty()&&null!==i&&r.is(i)?(o.removeAllRanges(),r.dirty=!0):3!==e.detail||r.isCollapsed()||a!==(o=r.focus.getNode())&&(Nr(a)?a.select(0):a.getParentOrThrow().select(0))}else"touch"===e.pointerType&&(null!==(a=o.anchorNode)&&(1===(a=a.nodeType)||3===a))&&Ie(o=er(i,o,n));Cr(n,t,e)}))}],["cut",jt],["copy",jt],["dragstart",jt],["dragover",jt],["dragend",jt],["paste",jt],["focus",jt],["blur",jt],["drop",jt]];B&&Wt.push(["beforeinput",(e,t)=>function(e,t){let p=e.inputType,h=rn(e);"deleteCompositionText"===p||F&&Ke(t)||"insertCompositionText"!==p&&kr(t,(()=>{let m=tr();if("deleteContentBackward"===p){if(null===m){var g=nr();if(!Fn(g))return;Ie(g.clone())}if(Fn(m))return void(229===Yt&&e.timeStamp<Gt+30&&t.isComposing()&&m.anchor.key===m.focus.key?(Re(null),Gt=0,setTimeout((()=>{kr(t,(()=>{Re(null)}))}),30),Fn(m)&&(g=m.anchor.getNode(),g.markDirty(),m.format=g.getFormat(),m.style=g.getStyle())):(e.preventDefault(),Cr(t,n,!0)))}if(Fn(m)){g=e.data,null!==Kt&&Be(!1,t,Kt),m.dirty&&null===Kt||!m.isCollapsed()||Mr(m.anchor.getNode())||null===h||m.applyDOMRange(h),Kt=null;var v=m.focus,b=m.anchor.getNode();if(v=v.getNode(),"insertText"===p||"insertTranspose"===p)"\n"===g?(e.preventDefault(),Cr(t,r,!1)):"\n\n"===g?(e.preventDefault(),Cr(t,o,void 0)):null==g&&e.dataTransfer?(g=e.dataTransfer.getData("text/plain"),e.preventDefault(),m.insertRawText(g)):null!=g&&en(m,h,g,e.timeStamp,!0)?(e.preventDefault(),Cr(t,i,g)):Kt=g,Ut=e.timeStamp;else switch(e.preventDefault(),p){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Cr(t,i,e);break;case"insertFromComposition":Re(null),Cr(t,i,e);break;case"insertLineBreak":Re(null),Cr(t,r,!1);break;case"insertParagraph":Re(null),Xt&&!W?(Xt=!1,Cr(t,r,!1)):Cr(t,o,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Cr(t,a,e);break;case"deleteByComposition":(function(e,t){return e!==t||Nr(e)||Nr(t)||!e.isToken()||!t.isToken()})(b,v)&&Cr(t,l,e);break;case"deleteByDrag":case"deleteByCut":Cr(t,l,e);break;case"deleteContent":Cr(t,n,!1);break;case"deleteWordBackward":Cr(t,s,!0);break;case"deleteWordForward":Cr(t,s,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Cr(t,u,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Cr(t,u,!1);break;case"formatStrikeThrough":Cr(t,c,"strikethrough");break;case"formatBold":Cr(t,c,"bold");break;case"formatItalic":Cr(t,c,"italic");break;case"formatUnderline":Cr(t,c,"underline");break;case"historyUndo":Cr(t,d,void 0);break;case"historyRedo":Cr(t,f,void 0)}}}))}(e,t)]);let Gt=0,Yt=0,Ut=0,Kt=null,Vt=0,qt=!1,Qt=!1,Xt=!1,Jt=!1,Zt=[0,"",0,"root",0];function en(e,t,n,r,o){let i=e.anchor,a=e.focus,l=i.getNode();var s=vr();let u=at(s._window),c=null!==u?u.anchorNode:null,d=i.key;s=s.getElementByKey(d);let f=n.length;return d!==a.key||!Nn(l)||(!o&&(!B||Ut<r+50)||l.isDirty()&&2>f||$e(n))&&i.offset!==a.offset&&!l.isComposing()||xe(l)||l.isDirty()&&1<f||(o||!B)&&null!==s&&!l.isComposing()&&c!==_e(s)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||l.getFormat()!==e.format||l.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;e=e.anchor.offset;let n=t.getParentOrThrow(),r=t.isToken();return 0===e?((e=!t.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=(Nn(t=t.getPreviousSibling())||Nr(t)&&t.isInline())&&!t.canInsertTextAfter()),e):e===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()||r)}(e,l)}function tn(e,t){return null!==e&&null!==e.nodeValue&&3===e.nodeType&&0!==t&&t!==e.nodeValue.length}function nn(t,n,r){let{anchorNode:o,anchorOffset:i,focusNode:a,focusOffset:l}=t;qt&&(qt=!1,tn(o,i)&&tn(a,l))||kr(n,(()=>{if(r){if(be(n,o,a)){var i=tr();if(Fn(i)){var l=i.anchor,s=l.getNode();if(i.isCollapsed()){"Range"===t.type&&t.anchorNode===t.focusNode&&(i.dirty=!0);var u=Je(n).event;u=u?u.timeStamp:performance.now();let[e,r,o,a,c]=Zt;u<c+200&&l.offset===o&&l.key===a?(i.format=e,i.style=r):"text"===l.type?(i.format=s.getFormat(),i.style=s.getStyle()):"element"===l.type&&(i.format=0,i.style="")}else{l=255,s=!1;let e=(u=i.getNodes()).length;for(let t=0;t<e;t++){let e=u[t];if(Nn(e)&&(s=!0,0===(l&=e.getFormat())))break}i.format=s?l:0}}Cr(n,e,void 0)}}else Ie(null)}))}function rn(e){return e.getTargetRanges?0===(e=e.getTargetRanges()).length?null:e[0]:null}function on(e,t){var n=e._compositionKey;if(Re(null),null!==n&&null!=t){if(""===t)return t=Ae(n),void(null!==(e=_e(e.getElementByKey(n)))&&null!==e.nodeValue&&Nn(t)&&He(t,e.nodeValue,null,null,!0));if("\n"===t[t.length-1]&&Fn(n=tr()))return t=n.focus,n.anchor.set(t.key,t.offset,t.type),void Cr(e,x,null)}Be(!0,e,t)}function an(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}let ln=new Map;function sn(e){let t=at(null==(e=e.target)?null:9===e.nodeType?e.defaultView:e.ownerDocument.defaultView);if(null!==t){var n=ye(t.anchorNode);if(null!==n){Qt&&(Qt=!1,kr(n,(()=>{var e=nr(),r=t.anchorNode;null!==r&&(1===(r=r.nodeType)||3===r)&&Ie(e=er(e,t,n))})));var r=(e=(e=ze(n))[e.length-1])._key,o=ln.get(r),i=o||e;i!==n&&nn(t,i,!1),nn(t,n,!0),n!==e?ln.set(r,n):o&&ln.delete(r)}}}function un(e,t,n){mr();var r=e.__key;let o=e.getParent();if(null!==o){var i=tr();if(Fn(i)&&Nr(e)){var{anchor:a,focus:l}=i,s=a.getNode(),u=l.getNode();Xe(s,e)&&a.set(e.__key,0,"element"),Xe(u,e)&&l.set(e.__key,0,"element")}if(u=!1,Fn(s=i)&&t){i=s.anchor;let t=s.focus;i.key===r&&(ir(i,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0),t.key===r&&(ir(t,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0)}else Wn(s)&&t&&e.isSelected()&&e.selectPrevious();Fn(s)&&t&&!u?(r=e.getIndexWithinParent(),we(e),rr(s,o,r,-1)):we(e),n||et(o)||o.canBeEmpty()||!o.isEmpty()||un(o,t),t&&Mr(o)&&o.isEmpty()&&o.selectEnd()}}class cn{static getType(){I(64,this.name)}static clone(){I(65,this.name)}constructor(e){this.__type=this.constructor.getType(),this.__next=this.__prev=this.__parent=null,Ee(this,e)}getType(){return this.__type}isAttached(){for(var e=this.__key;null!==e;){if("root"===e)return!0;if(null===(e=Ae(e)))break;e=e.__parent}return!1}isSelected(e){if(null==(e=e||tr()))return!1;let t=e.getNodes().some((e=>e.__key===this.__key));return(Nn(this)||!Fn(e)||"element"!==e.anchor.type||"element"!==e.focus.type||e.anchor.key!==e.focus.key||e.anchor.offset!==e.focus.offset)&&t}getKey(){return this.__key}getIndexWithinParent(){var e=this.getParent();if(null===e)return-1;e=e.getFirstChild();let t=0;for(;null!==e;){if(this.is(e))return t;t++,e=e.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return null===e?null:Ae(e)}getParentOrThrow(){let e=this.getParent();return null===e&&I(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(et(t))return e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&I(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:Ae(e)}getPreviousSiblings(){let e=[];var t=this.getParent();if(null===t)return e;for(t=t.getFirstChild();null!==t&&!t.is(this);)e.push(t),t=t.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:Ae(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=this.getParents();var n=e.getParents();Nr(this)&&t.unshift(this),Nr(e)&&n.unshift(e),e=t.length;var r=n.length;if(0===e||0===r||t[e-1]!==n[r-1])return null;for(n=new Set(n),r=0;r<e;r++){let e=t[r];if(n.has(e))return e}return null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){if(this===e)return!1;if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;var t=this.getCommonAncestor(e);let n=this;for(;;){var r=n.getParentOrThrow();if(r===t){r=n.getIndexWithinParent();break}n=r}for(n=e;;){if((e=n.getParentOrThrow())===t){t=n.getIndexWithinParent();break}n=e}return r<t}isParentOf(e){let t=this.__key;if(t===e.__key)return!1;for(;null!==e;){if(e.__key===t)return!0;e=e.getParent()}return!1}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set;for(var o=this;;){var i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;if(null!==(i=Nr(o)?t?o.getFirstChild():o.getLastChild():null))o=i;else if(null!==(i=t?o.getNextSibling():o.getPreviousSibling()))o=i;else{if(o=o.getParentOrThrow(),r.has(o.__key)||n.push(o),o===e)break;i=o;do{null===i&&I(68),o=t?i.getNextSibling():i.getPreviousSibling(),null!==(i=i.getParent())&&(null!==o||r.has(i.__key)||n.push(i))}while(null===o)}}return t||n.reverse(),n}isDirty(){let e=vr()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=Ae(this.__key);return null===e&&I(113),e}getWritable(){mr();var e=gr(),t=vr();e=e._nodeMap;let n=this.__key,r=this.getLatest(),o=r.__parent;t=t._cloneNotNeeded;var i=tr();return null!==i&&(i._cachedNodes=null),t.has(n)?(ke(r),r):((i=r.constructor.clone(r)).__parent=o,i.__next=r.__next,i.__prev=r.__prev,Nr(r)&&Nr(i)?(i.__first=r.__first,i.__last=r.__last,i.__size=r.__size,i.__indent=r.__indent,i.__format=r.__format,i.__dir=r.__dir):Nn(r)&&Nn(i)&&(i.__format=r.__format,i.__style=r.__style,i.__mode=r.__mode,i.__detail=r.__detail),t.add(n),i.__key=n,ke(i),e.set(n,i),i)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){I(70)}updateDOM(){I(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){I(72)}static importJSON(){I(18,this.name)}static transform(){return null}remove(e){un(this,!0,e)}replace(e,t){mr();var n=tr();null!==n&&(n=n.clone()),rt(this,e);let r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),l=(e=this.getParentOrThrow().getWritable()).__size;we(a);let s=r.getPreviousSibling(),u=r.getNextSibling(),c=r.__prev,d=r.__next,f=r.__parent;return un(r,!1,!0),null===s?e.__first=i:s.getWritable().__next=i,a.__prev=c,null===u?e.__last=i:u.getWritable().__prev=i,a.__next=d,a.__parent=f,e.__size=l,t&&this.getChildren().forEach((e=>{a.append(e)})),Fn(n)&&(Ie(n),t=n.anchor,n=n.focus,t.key===o&&In(t,a),n.key===o&&In(n,a)),Te()===o&&Re(i),a}insertAfter(e,t=!0){mr(),rt(this,e);var n=this.getWritable();let r=e.getWritable();var o=r.getParent();let i=tr();var a=!1,l=!1;if(null!==o){var s=e.getIndexWithinParent();we(r),Fn(i)&&(l=o.__key,a=i.anchor,o=i.focus,a="element"===a.type&&a.key===l&&a.offset===s+1,l="element"===o.type&&o.key===l&&o.offset===s+1)}o=this.getNextSibling(),s=this.getParentOrThrow().getWritable();let u=r.__key,c=n.__next;return null===o?s.__last=u:o.getWritable().__prev=u,s.__size++,n.__next=u,r.__next=c,r.__prev=n.__key,r.__parent=n.__parent,t&&Fn(i)&&(rr(i,s,(t=this.getIndexWithinParent())+1),n=s.__key,a&&i.anchor.set(n,t+2,"element"),l&&i.focus.set(n,t+2,"element")),e}insertBefore(e,t=!0){mr(),rt(this,e);var n=this.getWritable();let r=e.getWritable(),o=r.__key;we(r);let i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),l=n.__prev,s=this.getIndexWithinParent();return null===i?a.__first=o:i.getWritable().__next=o,a.__size++,n.__prev=o,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent,n=tr(),t&&Fn(n)&&rr(n,t=this.getParentOrThrow(),s),e}isParentRequired(){return!1}createParentElementNode(){return Fr()}selectPrevious(e,t){mr();let n=this.getPreviousSibling(),r=this.getParentOrThrow();return null===n?r.select(0,0):Nr(n)?n.select():Nn(n)?n.select(e,t):(e=n.getIndexWithinParent()+1,r.select(e,e))}selectNext(e,t){mr();let n=this.getNextSibling(),r=this.getParentOrThrow();return null===n?r.select():Nr(n)?n.select(0,0):Nn(n)?n.select(e,t):(e=n.getIndexWithinParent(),r.select(e,e))}markDirty(){this.getWritable()}}class dn extends cn{static getType(){return"linebreak"}static clone(e){return new dn(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>{let t,n,r=e.parentElement;return null!==r&&((t=r.firstChild)===e||t.nextSibling===e&&3===t.nodeType&&null!==(t.textContent||"").match(/^[\s|\r?\n|\t]+$/))&&((n=r.lastChild)===e||n.previousSibling===e&&3===n.nodeType&&null!==(n.textContent||"").match(/^[\s|\r?\n|\t]+$/))?null:{conversion:fn,priority:0}}}}static importJSON(){return pn()}exportJSON(){return{type:"linebreak",version:1}}}function fn(){return{node:pn()}}function pn(){return nt(new dn)}function hn(e){return e instanceof dn}function mn(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function gn(e,t){return 1&t?"strong":2&t?"em":"span"}function vn(e,t,n,r,o){e=r.classList,void 0!==(r=We(o,"base"))&&e.add(...r);let i=!1,a=8&t&&4&t;var l=8&n&&4&n;void 0!==(r=We(o,"underlineStrikethrough"))&&(l?(i=!0,a||e.add(...r)):a&&e.remove(...r));for(let s in Q)l=Q[s],void 0!==(r=We(o,s))&&(n&l&&(!i||"underline"!==s&&"strikethrough"!==s)?(!(t&l)||a&&"underline"===s||"strikethrough"===s)&&e.add(...r):t&l&&e.remove(...r))}function bn(e,t,n){let r=t.firstChild;if(e+=(n=n.isComposing())?U:"",null==r)t.textContent=e;else if((t=r.nodeValue)!==e)if(n||F){n=t.length;let o=e.length,i=0,a=0;for(;i<n&&i<o&&t[i]===e[i];)i++;for(;a+i<n&&a+i<o&&t[n-a-1]===e[o-a-1];)a++;e=[i,n-i-a,e.slice(i,o-a)];let[l,s,u]=e;0!==s&&r.deleteData(l,s),r.insertData(l,u)}else r.nodeValue=e}function yn(e,t){return(t=document.createElement(t)).appendChild(e),t}class xn extends cn{static getType(){return"text"}static clone(e){return new xn(e.__text,e.__key)}constructor(e,t){super(t),this.__text=e,this.__format=0,this.__style="",this.__detail=this.__mode=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return te[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Te()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){return e=Q[e],!!(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Se(this.getLatest().__format,e,t)}createDOM(e){var t=this.__format,n=mn(0,t);let r=gn(0,t),o=document.createElement(null===n?r:n),i=o;return null!==n&&(i=document.createElement(r),o.appendChild(i)),n=i,bn(this.__text,n,this),void 0!==(e=e.theme.text)&&vn(r,0,t,n,e),""!==(t=this.__style)&&(o.style.cssText=t),o}updateDOM(e,t,n){let r=this.__text;var o=e.__format,i=this.__format,a=mn(0,o);let l=mn(0,i);var s=gn(0,o);let u=gn(0,i);return(null===a?s:a)!==(null===l?u:l)||(a===l&&s!==u?(null==(o=t.firstChild)&&I(48),bn(r,e=a=document.createElement(u),this),void 0!==(n=n.theme.text)&&vn(u,0,i,e,n),t.replaceChild(a,o),!1):(s=t,null!==l&&null!==a&&(null==(s=t.firstChild)&&I(49)),bn(r,s,this),void 0!==(n=n.theme.text)&&o!==i&&vn(u,o,i,s,n),i=this.__style,e.__style!==i&&(t.style.cssText=i),!1))}static importDOM(){return{"#text":()=>({conversion:En,priority:0}),b:()=>({conversion:Sn,priority:0}),code:()=>({conversion:Tn,priority:0}),em:()=>({conversion:Tn,priority:0}),i:()=>({conversion:Tn,priority:0}),s:()=>({conversion:Tn,priority:0}),span:()=>({conversion:_n,priority:0}),strong:()=>({conversion:Tn,priority:0}),sub:()=>({conversion:Tn,priority:0}),sup:()=>({conversion:Tn,priority:0}),u:()=>({conversion:Tn,priority:0})}}static importJSON(e){let t=An(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){return({element:e}=super.exportDOM(e)),null!==e&&(this.hasFormat("bold")&&(e=yn(e,"b")),this.hasFormat("italic")&&(e=yn(e,"i")),this.hasFormat("strikethrough")&&(e=yn(e,"s")),this.hasFormat("underline")&&(e=yn(e,"u"))),{element:e}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?Q[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?X[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){return e=Q[e],this.setFormat(this.getFormat()^e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){if(e=ee[e],this.__mode===e)return this;let t=this.getWritable();return t.__mode=e,t}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){mr();let n=tr();var r=this.getTextContent();let o=this.__key;return"string"==typeof r?(r=r.length,void 0===e&&(e=r),void 0===t&&(t=r)):t=e=0,Fn(n)?((r=Te())!==n.anchor.key&&r!==n.focus.key||Re(o),n.setTextNodeRange(this,e,this,t),n):Jn(o,e,o,t,"text","text")}spliceText(e,t,n,r){let o=this.getWritable(),i=o.__text,a=n.length,l=e;0>l&&(l=a+l,0>l&&(l=0));let s=tr();return r&&Fn(s)&&(e+=a,s.setTextNodeRange(o,e,o,e)),t=i.slice(0,l)+n+i.slice(l+t),o.__text=t,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){mr();var t=this.getLatest(),n=t.getTextContent(),r=t.__key,o=Te(),i=new Set(e);e=[];for(var a=n.length,l="",s=0;s<a;s++)""!==l&&i.has(s)&&(e.push(l),l=""),l+=n[s];if(""!==l&&e.push(l),0===(i=e.length))return[];if(e[0]===n)return[t];var u=e[0];n=t.getParentOrThrow(),s=t.getFormat();let c=t.getStyle(),d=t.__detail;a=!1,t.isSegmented()?((l=An(u)).__format=s,l.__style=c,l.__detail=d,a=!0):(l=t.getWritable()).__text=u,t=tr(),l=[l],u=u.length;for(let n=1;n<i;n++){var f=e[n],p=f.length;(f=An(f).getWritable()).__format=s,f.__style=c,f.__detail=d;let i=f.__key;if(p=u+p,Fn(t)){let e=t.anchor,n=t.focus;e.key===r&&"text"===e.type&&e.offset>u&&e.offset<=p&&(e.key=i,e.offset-=u,t.dirty=!0),n.key===r&&"text"===n.type&&n.offset>u&&n.offset<=p&&(n.key=i,n.offset-=u,t.dirty=!0)}o===r&&Re(i),u=p,l.push(f)}return r=this.getPreviousSibling(),o=this.getNextSibling(),null!==r&&ke(r),null!==o&&ke(o),r=n.getWritable(),o=this.getIndexWithinParent(),a?(r.splice(o,0,l),this.remove()):r.splice(o,1,l),Fn(t)&&rr(t,n,o,i-1),l}mergeWithSibling(e){var t=e===this.getPreviousSibling();t||e===this.getNextSibling()||I(50);var n=this.__key;let r=e.__key,o=this.__text,i=o.length;Te()===r&&Re(n);let a=tr();if(Fn(a)){let o=a.anchor,l=a.focus;null!==o&&o.key===r&&(ar(o,t,n,e,i),a.dirty=!0),null!==l&&l.key===r&&(ar(l,t,n,e,i),a.dirty=!0)}return n=e.__text,this.setTextContent(t?n+o:o+n),t=this.getWritable(),e.remove(),t}isTextEntity(){return!1}}function _n(e){let t="700"===e.style.fontWeight,n="line-through"===e.style.textDecoration,r="italic"===e.style.fontStyle,o="underline"===e.style.textDecoration,i=e.style.verticalAlign;return{forChild:e=>Nn(e)?(t&&e.toggleFormat("bold"),n&&e.toggleFormat("strikethrough"),r&&e.toggleFormat("italic"),o&&e.toggleFormat("underline"),"sub"===i&&e.toggleFormat("subscript"),"super"===i&&e.toggleFormat("superscript"),e):e,node:null}}function Sn(e){let t="normal"===e.style.fontWeight;return{forChild:e=>(Nn(e)&&!t&&e.toggleFormat("bold"),e),node:null}}let Cn=new WeakMap;function En(e){null===e.parentElement&&I(129);for(var t,n=e.textContent||"",r=e.parentNode,o=[e];null!==r&&void 0===(t=Cn.get(r))&&!("PRE"===r.nodeName||1===r.nodeType&&r.style.whiteSpace.startsWith("pre"));)o.push(r),r=r.parentNode;for(t=void 0===t?r:t,r=0;r<o.length;r++)Cn.set(o[r],t);if(null!==t){for(e=[],o=(n=n.split(/(\r?\n|\t)/)).length,t=0;t<o;t++)"\n"===(r=n[t])||"\r\n"===r?e.push(pn()):"\t"===r?e.push(On()):""!==r&&e.push(An(r));return{node:e}}if(""===(n=n.replace(/\r?\n|\t/gm," ").replace("\r","").replace(/\s+/g," ")))return{node:null};if(" "===n[0]){for(o=e,t=!0;null!==o&&null!==(o=kn(o,!1));)if(0<(r=o.textContent||"").length){r.match(/(?:\s|\r?\n|\t)$/)&&(n=n.slice(1)),t=!1;break}t&&(n=n.slice(1))}if(" "===n[n.length-1]){for(o=!0;null!==e&&null!==(e=kn(e,!0));)if(0<(e.textContent||"").replace(/^[\s|\r?\n|\t]+/,"").length){o=!1;break}o&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:An(n)}}let wn=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function kn(e,t){for(;;){for(var n=void 0;null===(n=t?e.nextSibling:e.previousSibling);)if(null===(e=e.parentElement))return null;if(1===(e=n).nodeType&&(""===(n=e.style.display)&&null===e.nodeName.match(wn)||""!==n&&!n.startsWith("inline")))return null;for(;null!==(n=t?e.firstChild:e.lastChild);)e=n;if(3===e.nodeType)return e;if("BR"===e.nodeName)return null}}let Rn={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Tn(e){let t=Rn[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:e=>(Nn(e)&&!e.hasFormat(t)&&e.toggleFormat(t),e),node:null}}function An(e=""){return nt(new xn(e))}function Nn(e){return e instanceof xn}class Ln extends xn{static getType(){return"tab"}static clone(e){let t=new Ln(e.__key);return t.__text=e.__text,t.__format=e.__format,t.__style=e.__style,t}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}static importJSON(e){let t=On();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(){I(126)}setDetail(){I(127)}setMode(){I(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function On(){return nt(new Ln)}class Mn{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),n=e.getNode(),r=this.offset;if(e=e.offset,Nr(t)){var o=t.getDescendantByIndex(r);t=null!=o?o:t}return Nr(n)&&(o=n.getDescendantByIndex(e),n=null!=o?o:n),t===n?r<e:t.isBefore(n)}getNode(){let e=Ae(this.key);return null===e&&I(20),e}set(e,t,n){let r=this._selection,o=this.key;this.key=e,this.offset=t,this.type=n,hr()||(Te()===o&&Re(e),null!==r&&(r._cachedNodes=null,r.dirty=!0))}}function Pn(e,t){let n=t.__key,r=e.offset,o="element";if(Nn(t))o="text",r>(t=t.getTextContentSize())&&(r=t);else if(!Nr(t)){var i=t.getNextSibling();Nn(i)?(n=i.__key,r=0,o="text"):(i=t.getParent())&&(n=i.__key,r=t.getIndexWithinParent()+1)}e.set(n,r,o)}function In(e,t){if(Nr(t)){let n=t.getLastDescendant();Nr(n)||Nn(n)?Pn(e,n):Pn(e,t)}else Pn(e,t)}function Dn(e,t,n,r){let o=e.getNode(),i=o.getChildAtIndex(e.offset),a=An(),l=Mr(o)?Fr().append(a):a;a.setFormat(n),a.setStyle(r),null===i?o.append(l):(i.insertBefore(l),"element"===t.type&&t.key===e.key&&t.offset!==e.offset&&t.set(t.key,t.offset+1,"element")),e.is(t)&&t.set(a.__key,0,"text"),e.set(a.__key,0,"text")}function $n(e,t,n,r){e.key=t,e.offset=n,e.type=r}class zn{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!Wn(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((e=>n.has(e)))}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new zn(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.getNodes(),r=n.length;var o=n[r-1];if(Nn(o))o=o.select();else{let e=o.getIndexWithinParent()+1;o=o.getParentOrThrow().select(e,e)}for(o.insertNodes(e,t),e=0;e<r;e++)n[e].remove();return!0}getNodes(){var e=this._cachedNodes;if(null!==e)return e;var t=this._nodes;e=[];for(let n of t)null!==(t=Ae(n))&&e.push(t);return hr()||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}function Fn(e){return e instanceof jn}class Bn{constructor(e,t,n){this.gridKey=e,this.anchor=t,this.focus=n,this.dirty=!1,this._cachedNodes=null,t._selection=this,n._selection=this}is(e){return!!Hn(e)&&(this.gridKey===e.gridKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus))}set(e,t,n){this.dirty=!0,this.gridKey=e,this.anchor.key=t,this.focus.key=n,this._cachedNodes=null}clone(){return new Bn(this.gridKey,this.anchor,this.focus)}isCollapsed(){return!1}isBackward(){return this.focus.isBefore(this.anchor)}getCharacterOffsets(){return Yn(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.focus.getNode();return pe(n.select(0,n.getChildrenSize())).insertNodes(e,t)}getShape(){var e=Ae(this.anchor.key);null===e&&I(21);var t=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var n=Ae(this.focus.key);null===n&&I(22);var r=n.getIndexWithinParent();let o=n.getParentOrThrow().getIndexWithinParent();return n=Math.min(t,r),t=Math.max(t,r),r=Math.min(e,o),e=Math.max(e,o),{fromX:Math.min(n,t),fromY:Math.min(r,e),toX:Math.max(n,t),toY:Math.max(r,e)}}getNodes(){function e(e){let{cell:t,startColumn:n,startRow:r}=e;l=Math.min(l,n),s=Math.min(s,r),u=Math.max(u,n+t.__colSpan-1),c=Math.max(c,r+t.__rowSpan-1)}var t=this._cachedNodes;if(null!==t)return t;var n=this.anchor.getNode();t=this.focus.getNode(),n=st(n,Wr);var r=st(t,Wr);Wr(n)||I(103),Wr(r)||I(104),Kr(t=n.getParent())||I(105),Yr(t=t.getParent())||I(106);let[o,i,a]=lr(t,n,r),l=Math.min(i.startColumn,a.startColumn),s=Math.min(i.startRow,a.startRow),u=Math.max(i.startColumn+i.cell.__colSpan-1,a.startColumn+a.cell.__colSpan-1),c=Math.max(i.startRow+i.cell.__rowSpan-1,a.startRow+a.cell.__rowSpan-1);n=l,r=s;for(var d=l,f=s;l<n||s<r||u>d||c>f;){if(l<n){var p=f-r;--n;for(var h=0;h<=p;h++)e(o[r+h][n])}if(s<r)for(p=d-n,--r,h=0;h<=p;h++)e(o[r][n+h]);if(u>d)for(p=f-r,d+=1,h=0;h<=p;h++)e(o[r+h][d]);if(c>f)for(p=d-n,f+=1,h=0;h<=p;h++)e(o[f][n+h])}for(t=[t],n=null,r=s;r<=c;r++)for(d=l;d<=u;d++)({cell:f}=o[r][d]),Kr(p=f.getParent())||I(107),p!==n&&t.push(p),t.push(f,...ut(f)),n=p;return hr()||(this._cachedNodes=t),t}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}function Hn(e){return e instanceof Bn}class jn{constructor(e,t,n,r){this.anchor=e,this.focus=t,this.dirty=!1,this.format=n,this.style=r,this._cachedNodes=null,e._selection=this,t._selection=this}is(e){return!!Fn(e)&&(this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style)}isBackward(){return this.focus.isBefore(this.anchor)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){var e=this._cachedNodes;if(null!==e)return e;e=this.anchor;var t=this.focus,n=e.isBefore(t),r=n?e:t;n=n?t:e,e=r.getNode(),t=n.getNode();let o=r.offset;return r=n.offset,Nr(e)&&(n=e.getDescendantByIndex(o),e=null!=n?n:e),Nr(t)&&(null!==(n=t.getDescendantByIndex(r))&&n!==e&&t.getChildAtIndex(r)===n&&(n=n.getPreviousSibling()),t=null!=n?n:t),e=e.is(t)?Nr(e)&&0<e.getChildrenSize()?[]:[e]:e.getNodesBetween(t),hr()||(this._cachedNodes=e),e}setTextNodeRange(e,t,n,r){$n(this.anchor,e.__key,t,"text"),$n(this.focus,n.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[a,l]=Yn(this),s="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(Nr(d)&&!d.isInline())u||(s+="\n"),u=!d.isEmpty();else if(u=!1,Nn(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=a<l?e.slice(a,l):e.slice(l,a)):e=i?e.slice(a):e.slice(l):d===n&&(e=i?e.slice(0,l):e.slice(0,a)),s+=e}else!Tr(d)&&!hn(d)||d===n&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let t=vr(),n=t.getEditorState()._selection;if(null!==(e=Qn(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n))){var[r,o]=e;$n(this.anchor,r.key,r.offset,r.type),$n(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,t=this.focus;return new jn(new Mn(e.key,e.offset,e.type),new Mn(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Se(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){return!!(this.format&Q[e])}insertRawText(e){let t=[],n=(e=e.split(/(\r?\n|\t)/)).length;for(let r=0;r<n;r++){let n=e[r];"\n"===n||"\r\n"===n?t.push(pn()):"\t"===n?t.push(On()):t.push(An(n))}this.insertNodes(t)}insertText(e){var t=this.anchor,n=this.focus,r=this.isCollapsed()||t.isBefore(n),o=this.format,i=this.style;r&&"element"===t.type?Dn(t,n,o,i):r||"element"!==n.type||Dn(n,t,o,i);var a=this.getNodes(),l=a.length,s=r?n:t;n=(r?t:n).offset;var u=s.offset;Nn(t=a[0])||I(26),r=t.getTextContent().length;var c=t.getParentOrThrow(),d=a[l-1];if(this.isCollapsed()&&n===r&&(t.isSegmented()||t.isToken()||!t.canInsertTextAfter()||!c.canInsertTextAfter()&&null===t.getNextSibling())){var f=t.getNextSibling();if(Nn(f)&&f.canInsertTextBefore()&&!xe(f)||((f=An()).setFormat(o),c.canInsertTextAfter()?t.insertAfter(f):c.insertAfter(f)),f.select(0,0),t=f,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===n&&(t.isSegmented()||t.isToken()||!t.canInsertTextBefore()||!c.canInsertTextBefore()&&null===t.getPreviousSibling())){if(Nn(f=t.getPreviousSibling())&&!xe(f)||((f=An()).setFormat(o),c.canInsertTextBefore()?t.insertBefore(f):c.insertBefore(f)),f.select(),t=f,""!==e)return void this.insertText(e)}else if(t.isSegmented()&&n!==r)(c=An(t.getTextContent())).setFormat(o),t.replace(c),t=c;else if(!(this.isCollapsed()||""===e||(f=d.getParent(),c.canInsertTextBefore()&&c.canInsertTextAfter()&&(!Nr(f)||f.canInsertTextBefore()&&f.canInsertTextAfter()))))return this.insertText(""),qn(this.anchor,this.focus,null),void this.insertText(e);if(1===l)if(t.isToken())(e=An(e)).select(),t.replace(e);else{if(a=t.getFormat(),l=t.getStyle(),n===u&&(a!==o||l!==i)){if(""!==t.getTextContent())return(a=An(e)).setFormat(o),a.setStyle(i),a.select(),0===n?t.insertBefore(a,!1):([l]=t.splitText(n),l.insertAfter(a,!1)),void(a.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length));t.setFormat(o),t.setStyle(i)}""===(t=t.spliceText(n,u-n,e,!0)).getTextContent()?t.remove():"text"===this.anchor.type&&(t.isComposing()?this.anchor.offset-=e.length:(this.format=a,this.style=l))}else{if(o=new Set([...t.getParentKeys(),...d.getParentKeys()]),f=Nr(t)?t:t.getParentOrThrow(),i=Nr(d)?d:d.getParentOrThrow(),c=d,!f.is(i)&&i.isInline())do{c=i,i=i.getParentOrThrow()}while(i.isInline());"text"===s.type&&(0!==u||""===d.getTextContent())||"element"===s.type&&d.getIndexWithinParent()<u?Nn(d)&&!d.isToken()&&u!==d.getTextContentSize()?(d.isSegmented()&&(s=An(d.getTextContent()),d.replace(s),d=s),d=d.spliceText(0,u,""),o.add(d.__key)):(s=d.getParentOrThrow()).canBeEmpty()||1!==s.getChildrenSize()?d.remove():s.remove():o.add(d.__key),s=i.getChildren(),u=new Set(a),d=f.is(i),f=f.isInline()&&null===t.getNextSibling()?f:t;for(let e=s.length-1;0<=e;e--){let n=s[e];if(n.is(t)||Nr(n)&&n.isParentOf(t))break;n.isAttached()&&(!u.has(n)||n.is(c)?d||f.insertAfter(n,!1):n.remove())}if(!d)for(s=i,u=null;null!==s;)(0===(d=(i=s.getChildren()).length)||i[d-1].is(u))&&(o.delete(s.__key),u=s),s=s.getParent();for(t.isToken()?n===r?t.select():((e=An(e)).select(),t.replace(e)):""===(t=t.spliceText(n,r-n,e,!0)).getTextContent()?t.remove():t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length),e=1;e<l;e++)t=a[e],o.has(t.__key)||t.remove()}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())this.toggleFormat(e),Re(null);else{var t=this.getNodes(),n=[];for(var r of t)Nn(r)&&n.push(r);var o=n.length;if(0===o)this.toggleFormat(e),Re(null);else{r=this.anchor;var i=this.focus,a=this.isBackward();t=a?i:r,r=a?r:i;var l=0,s=n[0];if(i="element"===t.type?0:t.offset,"text"===t.type&&i===s.getTextContentSize()&&(l=1,s=n[1],i=0),null!=s){a=s.getFormatFlags(e,null);var u=o-1,c=n[u];if(o="text"===r.type?r.offset:c.getTextContentSize(),s.is(c))i!==o&&(0===i&&o===s.getTextContentSize()?s.setFormat(a):(e=s.splitText(i,o),(e=0===i?e[0]:e[1]).setFormat(a),"text"===t.type&&t.set(e.__key,0,"text"),"text"===r.type&&r.set(e.__key,o-i,"text")),this.format=a);else{0!==i&&([,s]=s.splitText(i),i=0),s.setFormat(a);var d=c.getFormatFlags(e,a);for(0<o&&(o!==c.getTextContentSize()&&([c]=c.splitText(o)),c.setFormat(d)),l+=1;l<u;l++){let t=n[l];if(!t.isToken()){let n=t.getFormatFlags(e,d);t.setFormat(n)}}"text"===t.type&&t.set(s.__key,i,"text"),"text"===r.type&&r.set(c.__key,o,"text"),this.format=a|d}}}}}insertNodes(e,t){if(!this.isCollapsed()){var n=this.isBackward()?this.anchor:this.focus,r=n.getNode().getNextSibling();if(r=r?r.getKey():null,n=(n=n.getNode().getPreviousSibling())?n.getKey():null,this.removeText(),this.isCollapsed()&&"element"===this.focus.type){if(this.focus.key===r&&0===this.focus.offset){var o=An();this.focus.getNode().insertBefore(o)}else this.focus.key===n&&this.focus.offset===this.focus.getNode().getChildrenSize()&&(o=An(),this.focus.getNode().insertAfter(o));o&&(this.focus.set(o.__key,0,"text"),this.anchor.set(o.__key,0,"text"))}}n=(o=this.anchor).offset;var i=o.getNode();r=i,"element"===o.type&&(r=null===(r=(o=o.getNode()).getChildAtIndex(n-1))?o:r),o=[];var a=i.getNextSiblings(),l=et(i)?null:i.getTopLevelElementOrThrow();if(Nn(i))if(r=i.getTextContent().length,0===n&&0!==r)r=null!==(r=i.getPreviousSibling())?r:i.getParentOrThrow(),o.push(i);else if(n===r)r=i;else{if(i.isToken())return!1;[r,i]=i.splitText(n),o.push(i)}i=r,o.push(...a),a=e[0];var s=!1,u=null;for(let t=0;t<e.length;t++){var c=e[t];if(et(r)||Tr(r)||!Nr(c)||c.isInline())s&&!Nr(c)&&!Tr(c)&&et(r.getParent())&&I(28);else{if(c.is(a)){if(Nr(r)&&r.isEmpty()&&r.canReplaceWith(c)){r.replace(c),r=c,s=!0;continue}if(Ce(s=c.getFirstDescendant())){for(var d=s.getParentOrThrow();d.isInline();)d=d.getParentOrThrow();if(s=(u=d.getChildren()).length,Nr(r)){var f=r.getFirstChild();for(let e=0;e<s;e++){let t=u[e];null===f?r.append(t):f.insertAfter(t),f=t}}else{for(f=s-1;0<=f;f--)r.insertAfter(u[f]);r=r.getParentOrThrow()}if(u=u[s-1],d.remove(),s=!0,d.is(c))continue}}Nn(r)&&(null===l&&I(27),r=l)}s=!1,Nr(r)&&!r.isInline()?(u=c,Tr(c)&&!c.isInline()?r=r.insertAfter(c,!1):Nr(c)?!c.canBeEmpty()&&c.isEmpty()||(Mr(r)?(null!==(d=r.getChildAtIndex(n))?d.insertBefore(c):r.append(c),r=c):c.isInline()?(r.append(c),r=c):r=r.insertAfter(c,!1)):(null!==(d=r.getFirstChild())?d.insertBefore(c):r.append(c),r=c)):!Nr(c)||Nr(c)&&c.isInline()||Tr(r)&&!r.isInline()?(u=c,Fn(this)&&Tr(c)&&(Nr(r)||Nn(r))&&!c.isInline()?(Nn(r)?(d=r.getParentOrThrow(),[r]=r.splitText(n),r=r.getIndexWithinParent()+1):(d=r,r=n),[,r]=lt(d,r),r=r.insertBefore(c)):r=r.insertAfter(c,!1)):(c=r.getParentOrThrow(),hn(r)&&r.remove(),r=c,t--)}if(t&&(Nn(i)?i.select():Nn(e=r.getPreviousSibling())?e.select():(e=r.getIndexWithinParent(),r.getParentOrThrow().select(e,e))),Nr(r)){if(e=Nn(u)?u:Nr(u)&&u.isInline()?u.getLastDescendant():r.getLastDescendant(),t||(null===e?r.select():Nn(e)?""===e.getTextContent()?e.selectPrevious():e.select():e.selectNext()),0!==o.length)for(t=r,e=o.length-1;0<=e;e--)l=(n=o[e]).getParentOrThrow(),!Nr(r)||Xn(n)||Tr(n)&&(!n.isInline()||n.isIsolated())?Nr(r)||Xn(n)?Nr(n)&&!n.canInsertAfter(r)?(Nr(i=l.constructor.clone(l))||I(29),i.append(n),r.insertAfter(i)):r.insertAfter(n):(r.insertBefore(n),r=n):(t===r?r.append(n):r.insertBefore(n),r=n),l.isEmpty()&&!l.canBeEmpty()&&l.remove()}else t||(Nn(r)?r.select():(t=r.getParentOrThrow(),e=r.getIndexWithinParent()+1,t.select(e,e)));return!0}insertParagraph(){this.isCollapsed()||this.removeText();var e=this.anchor,t=e.offset,n=[];if("text"===e.type){var r=e.getNode(),o=r.getNextSiblings().reverse(),i=r.getParentOrThrow(),a=i.isInline(),l=a?i.getTextContentSize():r.getTextContentSize();0===t?o.push(r):(a&&(n=i.getNextSiblings()),t===l||a&&t===r.getTextContentSize()||([,r]=r.splitText(t),o.push(r)))}else{if(et(i=e.getNode()))return o=Fr(),n=i.getChildAtIndex(t),o.select(),void(null!==n?n.insertBefore(o,!1):i.append(o));o=i.getChildren().slice(t).reverse()}if(r=o.length,0===t&&0<r&&i.isInline()){if(Nr(o=(n=i.getParentOrThrow()).insertNewAfter(this,!1)))for(n=n.getChildren(),i=0;i<n.length;i++)o.append(n[i])}else if(null===(a=i.insertNewAfter(this,!1)))this.insertLineBreak();else if(Nr(a))if(l=i.getFirstChild(),0===t&&(i.is(e.getNode())||l&&l.is(e.getNode()))&&0<r)i.insertBefore(a);else{if(i=null,t=n.length,e=a.getParentOrThrow(),0<t)for(l=0;l<t;l++)e.append(n[l]);if(0!==r)for(n=0;n<r;n++)t=o[n],null===i?a.append(t):i.insertBefore(t),i=t;a.canBeEmpty()||0!==a.getChildrenSize()?a.selectStart():(a.selectPrevious(),a.remove())}}insertLineBreak(e){let t=pn();var n=this.anchor;"element"===n.type&&(Mr(n=n.getNode())&&this.insertParagraph()),e?this.insertNodes([t],!0):this.insertNodes([t])&&t.selectNext(0,0)}getCharacterOffsets(){return Yn(this)}extract(){var e=this.getNodes(),t=e.length,n=t-1,r=this.anchor;let o=this.focus;var i=e[0];let a=e[n],[l,s]=Yn(this);return 0===t?[]:1===t?Nn(i)&&!this.isCollapsed()?(e=l>s?s:l,n=i.splitText(e,l>s?l:s),null!=(e=0===e?n[0]:n[1])?[e]:[]):[i]:(t=r.isBefore(o),Nn(i)&&((r=t?l:s)===i.getTextContentSize()?e.shift():0!==r&&([,i]=i.splitText(r),e[0]=i)),Nn(a)&&(i=a.getTextContent().length,0===(t=t?s:l)?e.pop():t!==i&&([a]=a.splitText(t),e[n]=a)),e)}modify(e,t,n){var r=this.focus,o=this.anchor,i="move"===e,a=Ue(r,t);if(Tr(a)&&!a.isIsolated())i&&a.isKeyboardSelectable()?((t=Zn()).add(a.__key),Ie(t)):Nn(e=t?a.getPreviousSibling():a.getNextSibling())?(a=e.__key,t=t?e.getTextContent().length:0,r.set(a,t,"text"),i&&o.set(a,t,"text")):(n=a.getParentOrThrow(),Nr(e)?(n=e.__key,a=t?e.getChildrenSize():0):(a=a.getIndexWithinParent(),n=n.__key,t||a++),r.set(n,a,"element"),i&&o.set(n,a,"element"));else if(r=at((o=vr())._window)){var l=o._blockCursorElement,s=o._rootElement;if(null===s||null===l||!Nr(a)||a.isInline()||a.canBeEmpty()||it(l,o,s),r.modify(e,t?"backward":"forward",n),0<r.rangeCount&&(a=r.getRangeAt(0),o=Mr(o=this.anchor.getNode())?o:Ze(o),this.applyDOMRange(a),this.dirty=!0,!i)){for(i=this.getNodes(),e=[],n=!1,l=0;l<i.length;l++)Xe(s=i[l],o)?e.push(s):n=!0;n&&0<e.length&&(t?Nr(t=e[0])?t.selectStart():t.getParentOrThrow().selectStart():Nr(t=e[e.length-1])?t.selectEnd():t.getParentOrThrow().selectEnd()),r.anchorNode===a.startContainer&&r.anchorOffset===a.startOffset||(t=this.focus,r=(i=this.anchor).key,a=i.offset,o=i.type,$n(i,t.key,t.offset,t.type),$n(t,r,a,o),this._cachedNodes=null)}}}deleteCharacter(t){let n=this.isCollapsed();if(this.isCollapsed()){var r=this.anchor,o=this.focus,i=r.getNode();if(!t&&("element"===r.type&&Nr(i)&&r.offset===i.getChildrenSize()||"text"===r.type&&r.offset===i.getTextContentSize())){var a=i.getParent();if(Nr(a=i.getNextSibling()||(null===a?null:a.getNextSibling()))&&a.isShadowRoot())return}if(Tr(a=Ue(o,t))&&!a.isIsolated())return void(a.isKeyboardSelectable()&&Nr(i)&&0===i.getChildrenSize()?(i.remove(),t=Zn(),t.add(a.__key),Ie(t)):(a.remove(),vr().dispatchCommand(e,void 0)));if(!t&&Nr(a)&&Nr(i)&&i.isEmpty())return i.remove(),void a.selectStart();if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===r.offset&&("element"===r.type?r.getNode():r.getNode().getParentOrThrow()).collapseAtStart(this))return}else{if(a="text"===o.type?o.getNode():null,i="text"===r.type?r.getNode():null,null!==a&&a.isSegmented()){if(r=o.offset,o=a.getTextContentSize(),a.is(i)||t&&r!==o||!t&&0!==r)return void Un(a,t,r)}else if(null!==i&&i.isSegmented()&&(r=r.offset,o=i.getTextContentSize(),i.is(a)||t&&0!==r||!t&&r!==o))return void Un(i,t,r);if(i=this.anchor,a=this.focus,(r=i.getNode())===(o=a.getNode())&&"text"===i.type&&"text"===a.type){var l=i.offset,s=a.offset;let e=l<s;(o=e?l:s)!==(l=(s=e?s:l)-1)&&($e(r=r.getTextContent().slice(o,s))||(t?a.offset=l:i.offset=l))}}}this.removeText(),t&&!n&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset&&((t=this.anchor.getNode()).isEmpty()&&Mr(t.getParent())&&0===t.getIndexWithinParent()&&t.collapseAtStart(this))}deleteLine(e){this.isCollapsed()&&("text"===this.anchor.type&&this.modify("extend",e,"lineboundary"),0===(e?this.focus:this.anchor).offset&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}}function Wn(e){return e instanceof zn}function Gn(e){let t=e.offset;return"text"===e.type?t:t===(e=e.getNode()).getChildrenSize()?e.getTextContent().length:0}function Yn(e){let t=e.anchor;return e=e.focus,"element"===t.type&&"element"===e.type&&t.key===e.key&&t.offset===e.offset?[0,0]:[Gn(t),Gn(e)]}function Un(e,t,n){let r=e.getTextContent().split(/(?=\s)/g),o=r.length,i=0,a=0;for(let e=0;e<o;e++){let l=e===o-1;if(a=i,i+=r[e].length,t&&i===n||i>n||l){r.splice(e,1),l&&(a=void 0);break}}""===(t=r.join("").trim())?e.remove():(e.setTextContent(t),e.select(a,a))}function Kn(e,t,n,r){var o=t;if(1===e.nodeType){let l=!1;var i=e.childNodes,a=i.length;o===a&&(l=!0,o=a-1);let s=i[o];if(a=!1,s===r._blockCursorElement?(s=i[o+1],a=!0):null!==r._blockCursorElement&&o--,Nn(r=De(s)))o=l?r.getTextContentSize():0;else{if(null===(i=De(e)))return null;if(Nr(i)?((t=Nr(e=i.getChildAtIndex(o)))&&(t=e.getParent(),t=null===n||null===t||!t.canBeEmpty()||t!==n.getNode()),t&&(null===(n=l?e.getLastDescendant():e.getFirstDescendant())?(i=e,o=0):i=Nr(e=n)?e:e.getParentOrThrow()),Nn(e)?(r=e,i=null,o=l?e.getTextContentSize():0):e!==i&&l&&!a&&o++):(o=i.getIndexWithinParent(),o=0===t&&Tr(i)&&De(e)===i?o:o+1,i=i.getParentOrThrow()),Nr(i))return new Mn(i.__key,o,"element")}}else r=De(e);return Nn(r)?new Mn(r.__key,o,"text"):null}function Vn(e,t,n){var r=e.offset,o=e.getNode();0===r?(r=o.getPreviousSibling(),o=o.getParent(),t?(n||!t)&&null===r&&Nr(o)&&o.isInline()&&(Nn(t=o.getPreviousSibling())&&(e.key=t.__key,e.offset=t.getTextContent().length)):Nr(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):Nn(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)):r===o.getTextContent().length&&(r=o.getNextSibling(),o=o.getParent(),t&&Nr(r)&&r.isInline()?(e.key=r.__key,e.offset=0,e.type="element"):(n||t)&&null===r&&Nr(o)&&o.isInline()&&!o.canInsertTextAfter()&&(Nn(t=o.getNextSibling())&&(e.key=t.__key,e.offset=0)))}function qn(e,t,n){if("text"===e.type&&"text"===t.type){var r=e.isBefore(t);let o=e.is(t);Vn(e,r,o),Vn(t,!r,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type),(r=vr()).isComposing()&&r._compositionKey!==e.key&&Fn(n)&&(r=n.anchor,n=n.focus,$n(e,r.key,r.offset,r.type),$n(t,n.key,n.offset,n.type))}}function Qn(e,t,n,r,o,i){return null!==e&&null!==n&&be(o,e,n)?null===(t=Kn(e,t,Fn(i)?i.anchor:null,o))||null===(r=Kn(n,r,Fn(i)?i.focus:null,o))||"element"===t.type&&"element"===r.type&&(e=De(e),n=De(n),Tr(e)&&Tr(n))?null:(qn(t,r,i),[t,r]):null}function Xn(e){return Nr(e)&&!e.isInline()}function Jn(e,t,n,r,o,i){let a=gr();return(e=new jn(new Mn(e,t,o),new Mn(n,r,i),0,"")).dirty=!0,a._selection=e}function Zn(){return new zn(new Set)}function er(e,t,n){var r=n._window;if(null===r)return null;var o=r.event,i=o?o.type:void 0;let a;if(r="selectionchange"===i,o=!re&&(r||"beforeinput"===i||"compositionstart"===i||"compositionend"===i||"click"===i&&o&&3===o.detail||"drop"===i||void 0===i),Fn(e)&&!o)return e.clone();if(null===t)return null;if(o=t.anchorNode,i=t.focusNode,a=t.anchorOffset,t=t.focusOffset,r&&Fn(e)&&!be(n,o,i))return e.clone();if(null===(n=Qn(o,a,i,t,n,e)))return null;let[l,s]=n;return new jn(l,s,Fn(e)?e.format:0,Fn(e)?e.style:"")}function tr(){return gr()._selection}function nr(){return vr()._editorState._selection}function rr(e,t,n,r=1){var o=e.anchor,i=e.focus,a=o.getNode(),l=i.getNode();if(t.is(a)||t.is(l)){if(a=t.__key,e.isCollapsed())(n<=(t=o.offset)&&0<r||n<t&&0>r)&&(n=Math.max(0,t+r),o.set(a,n,"element"),i.set(a,n,"element"),or(e));else{let u=e.isBackward();var s=(l=u?i:o).getNode();i=(o=u?o:i).getNode(),t.is(s)&&((n<=(s=l.offset)&&0<r||n<s&&0>r)&&l.set(a,Math.max(0,s+r),"element")),t.is(i)&&((n<=(t=o.offset)&&0<r||n<t&&0>r)&&o.set(a,Math.max(0,t+r),"element"))}or(e)}}function or(e){var t=e.anchor,n=t.offset;let r=e.focus;var o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed())Nr(i)&&(Nn(a=(o=n>=(a=i.getChildrenSize()))?i.getChildAtIndex(a-1):i.getChildAtIndex(n))&&(n=0,o&&(n=a.getTextContentSize()),t.set(a.__key,n,"text"),r.set(a.__key,n,"text")));else{if(Nr(i)){let r=i.getChildrenSize();Nn(n=(e=n>=r)?i.getChildAtIndex(r-1):i.getChildAtIndex(n))&&(i=0,e&&(i=n.getTextContentSize()),t.set(n.__key,i,"text"))}Nr(a)&&(Nn(o=(t=o>=(n=a.getChildrenSize()))?a.getChildAtIndex(n-1):a.getChildAtIndex(o))&&(a=0,t&&(a=o.getTextContentSize()),r.set(o.__key,a,"text")))}}function ir(e,t,n,r,o){let i=null,a=0,l=null;null!==r?(i=r.__key,Nn(r)?(a=r.getTextContentSize(),l="text"):Nr(r)&&(a=r.getChildrenSize(),l="element")):null!==o&&(i=o.__key,Nn(o)?l="text":Nr(o)&&(l="element")),null!==i&&null!==l?e.set(i,a,l):(a=t.getIndexWithinParent(),-1===a&&(a=n.getChildrenSize()),e.set(n.__key,a,"element"))}function ar(e,t,n,r,o){"text"===e.type?(e.key=n,t||(e.offset+=o)):e.offset>r.getIndexWithinParent()&&--e.offset}function lr(e,t,n){let r=[],o=null,i=null;e=e.getChildren();for(let c=0;c<e.length;c++){var a=e[c];Kr(a)||I(108);var l=a.getChildren();a=0;for(let e of l){for(Wr(e)||I(109);void 0!==r[c]&&void 0!==r[c][a];)a++;var s=a,u=e;let d={cell:u,startColumn:s,startRow:l=c},f=u.__rowSpan,p=u.__colSpan;for(let e=0;e<f;e++){void 0===r[l+e]&&(r[l+e]=[]);for(let t=0;t<p;t++)r[l+e][s+t]=d}t.is(u)&&(o=d),n.is(u)&&(i=d),a+=e.__colSpan}}return null===o&&I(110),null===i&&I(111),[r,o,i]}let sr=null,ur=null,cr=!1,dr=!1,fr=0,pr={characterData:!0,childList:!0,subtree:!0};function hr(){return cr||null!==sr&&sr._readOnly}function mr(){cr&&I(13)}function gr(){return null===sr&&I(15),sr}function vr(){return null===ur&&I(16),ur}function br(e,t,n){var r=t.__type;let o=e._nodes.get(r);for(void 0===o&&I(30,r),void 0===(e=n.get(r))&&(e=Array.from(o.transforms),n.set(r,e)),n=e.length,r=0;r<n&&(e[r](t),t.isAttached());r++);}function yr(e,t){var n=e.type,r=t.get(n);if(void 0===r&&I(17,n),n=r.klass,e.type!==n.getType()&&I(18,n.name),n=n.importJSON(e),e=e.children,Nr(n)&&Array.isArray(e))for(r=0;r<e.length;r++){let o=yr(e[r],t);n.append(o)}return n}function xr(e,t){let n=sr,r=cr,o=ur;sr=e,cr=!0,ur=null;try{return t()}finally{sr=n,cr=r,ur=o}}function _r(t,n){let r=t._pendingEditorState,o=t._rootElement,i=t._headless||null===o;if(null!==r){var a=t._editorState,l=a._selection,s=r._selection,u=0!==t._dirtyType,c=sr,d=cr,f=ur,p=t._updating,h=t._observer,m=null;if(t._pendingEditorState=null,t._editorState=r,!i&&u&&null!==h){ur=t,sr=r,cr=!1,t._updating=!0;try{let e=t._dirtyType,n=t._dirtyElements,o=t._dirtyLeaves;h.disconnect();var g=n,v=o;St=Ct=_t="",Et=2===e,kt=null,ft=t,dt=t._config,pt=t._nodes,ht=ft._listeners.mutation,mt=g,gt=v,vt=a._nodeMap,bt=r._nodeMap,wt=r._readOnly,yt=new Map(t._keyToDOMMap);let i=new Map;xt=i,zt("root",null),xt=yt=dt=bt=vt=gt=mt=pt=ft=void 0,m=i}catch(e){if(e instanceof Error&&t._onError(e),dr)throw e;return Br(t,null,o,r),ue(t),t._dirtyType=2,dr=!0,_r(t,a),void(dr=!1)}finally{h.observe(o,pr),t._updating=p,sr=c,cr=d,ur=f}}r._readOnly||(r._readOnly=!0);var b=t._dirtyLeaves,y=t._dirtyElements,x=t._normalizedNodes,_=t._updateTags,S=t._deferred;u&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set);var C,E=t._decorators,w=t._pendingDecorators||E,k=r._nodeMap;for(C in w)k.has(C)||(w===E&&(w=Oe(t)),delete w[C]);var R=i?null:at(t._window);if(t._editable&&null!==R&&(u||null===s||s.dirty)){ur=t,sr=r;try{if(null!==h&&h.disconnect(),u||null===s||s.dirty){let e=t._blockCursorElement;null!==e&&it(e,t,o);e:{let e=R.anchorNode,n=R.focusNode,r=R.anchorOffset,i=R.focusOffset,a=document.activeElement;if(!(_.has("collaboration")&&a!==o||null!==a&&ve(a)))if(Fn(s)){var T=s.anchor,A=s.focus,N=T.key,L=A.key,O=qe(t,N),M=qe(t,L),P=T.offset,I=A.offset,D=s.format,$=s.style,z=s.isCollapsed(),F=O,B=M,H=!1;if("text"===T.type){F=_e(O);let e=T.getNode();H=e.getFormat()!==D||e.getStyle()!==$}else Fn(l)&&"text"===l.anchor.type&&(H=!0);if("text"===A.type&&(B=_e(M)),null!==F&&null!==B){if(z&&(null===l||H||Fn(l)&&(l.format!==D||l.style!==$))){var j=performance.now();Zt=[D,$,P,N,j]}if(r===P&&i===I&&e===F&&n===B&&("Range"!==R.type||!z)&&(null!==a&&o.contains(a)||o.focus({preventScroll:!0}),"element"!==T.type))break e;try{R.setBaseAndExtent(F,P,B,I)}catch(e){}if(!_.has("skip-scroll-into-view")&&s.isCollapsed()&&null!==o&&o===document.activeElement){let e=s instanceof jn&&"element"===s.anchor.type?F.childNodes[P]||null:0<R.rangeCount?R.getRangeAt(0):null;if(null!==e){let n;if(e instanceof Text){let t=document.createRange();t.selectNode(e),n=t.getBoundingClientRect()}else n=e.getBoundingClientRect();let r=o.ownerDocument,i=r.defaultView;if(null!==i)for(var W,G,{top:Y,bottom:U}=n,K=o;null!==K;){let e=K===r.body;if(e)W=0,G=Je(t).innerHeight;else{let e=K.getBoundingClientRect();W=e.top,G=e.bottom}let n=0;if(Y<W?n=-(W-Y):U>G&&(n=U-G),0!==n)if(e)i.scrollBy(0,n);else{let e=K.scrollTop;K.scrollTop+=n;let t=K.scrollTop-e;Y-=t,U-=t}if(e)break;K=Qe(K)}}}qt=!0}}else null!==l&&be(t,e,n)&&R.removeAllRanges()}}e:{let e=t._blockCursorElement;if(Fn(s)&&s.isCollapsed()&&"element"===s.anchor.type&&o.contains(document.activeElement)){let n=s.anchor,r=n.getNode(),i=n.offset,a=r.getChildrenSize(),l=!1,u=null;if(i===a){ot(r.getChildAtIndex(i-1))&&(l=!0)}else{let e=r.getChildAtIndex(i);if(ot(e)){let n=e.getPreviousSibling();(null===n||ot(n))&&(l=!0,u=t.getElementByKey(e.__key))}}if(l){let n=t.getElementByKey(r.__key);if(null===e){let n=t._config.theme,r=document.createElement("div");r.contentEditable="false",r.setAttribute("data-lexical-cursor","true");let o=n.blockCursor;if(void 0!==o){if("string"==typeof o){let e=o.split(" ");o=n.blockCursor=e}void 0!==o&&r.classList.add(...o)}t._blockCursorElement=e=r}o.style.caretColor="transparent",null===u?n.appendChild(e):n.insertBefore(e,u);break e}}null!==e&&it(e,t,o)}null!==h&&h.observe(o,pr)}finally{ur=f,sr=c}}if(null!==m){var V=m;let e=Array.from(t._listeners.mutation),n=e.length;for(let t=0;t<n;t++){let[n,r]=e[t],o=V.get(r);void 0!==o&&n(o,{dirtyLeaves:b,updateTags:_})}}Fn(s)||null===s||null!==l&&l.is(s)||t.dispatchCommand(e,void 0);var q=t._pendingDecorators;null!==q&&(t._decorators=q,t._pendingDecorators=null,Sr("decorator",t,!0,q));var Q=Me(n||a),X=Me(r);if(Q!==X&&Sr("textcontent",t,!0,X),Sr("update",t,!0,{dirtyElements:y,dirtyLeaves:b,editorState:r,normalizedNodes:x,prevEditorState:n||a,tags:_}),t._deferred=[],0!==S.length){let e=t._updating;t._updating=!0;try{for(let e=0;e<S.length;e++)S[e]()}finally{t._updating=e}}var J=t._updates;if(0!==J.length){let e=J.shift();if(e){let[n,r]=e;wr(t,n,r)}}}}function Sr(e,t,n,...r){let o=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=o}}function Cr(e,t,n){if(!1===e._updating||ur!==e){let r=!1;return e.update((()=>{r=Cr(e,t,n)})),r}let r=ze(e);for(let i=4;0<=i;i--)for(let a=0;a<r.length;a++){var o=r[a]._commands.get(t);if(void 0!==o&&void 0!==(o=o[i])){let t=(o=Array.from(o)).length;for(let r=0;r<t;r++)if(!0===o[r](n,e))return!0}}return!1}function Er(e,t){let n=e._updates;for(t=t||!1;0!==n.length;){var r=n.shift();if(r){let n,[o,i]=r;void 0!==i&&(r=i.onUpdate,n=i.tag,i.skipTransforms&&(t=!0),r&&e._deferred.push(r),n&&e._updateTags.add(n)),o()}}return t}function wr(e,t,n){let r=e._updateTags;var o,i=o=!1;if(void 0!==n){var a=n.onUpdate;null!=(o=n.tag)&&r.add(o),o=n.skipTransforms||!1,i=n.discrete||!1}a&&e._deferred.push(a),n=e._editorState;let l=!1;(null===(a=e._pendingEditorState)||a._readOnly)&&(a=e._pendingEditorState=new Dr(new Map((a||n)._nodeMap)),l=!0),a._flushSync=i,i=sr;let s=cr,u=ur,c=e._updating;sr=a,cr=!1,e._updating=!0,ur=e;try{l&&(e._headless?null!=n._selection&&(a._selection=n._selection.clone()):a._selection=function(e){let t=e.getEditorState()._selection,n=at(e._window);return Wn(t)||Hn(t)?t.clone():er(t,n,e)}(e));let r=e._compositionKey;t(),o=Er(e,o),function(e,t){if(t=t.getEditorState()._selection,Fn(e=e._selection)){var n=e.anchor;let r,o=e.focus;"text"===n.type&&(r=n.getNode(),r.selectionTransform(t,e)),"text"===o.type&&r!==(n=o.getNode())&&n.selectionTransform(t,e)}}(a,e),0!==e._dirtyType&&(o?function(e,t){t=t._dirtyLeaves,e=e._nodeMap;for(let n of t)Nn(t=e.get(n))&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&fe(t)}(a,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements;e=e._nodeMap;let o=Te(),i=new Map;var a=n;let l=a.size;for(var s=r,u=s.size;0<l||0<u;){if(0<l){t._dirtyLeaves=new Set;for(let r of a)Nn(a=e.get(r))&&a.isAttached()&&a.isSimpleText()&&!a.isUnmergeable()&&fe(a),void 0!==a&&void 0!==a&&a.__key!==o&&a.isAttached()&&br(t,a,i),n.add(r);if(l=(a=t._dirtyLeaves).size,0<l){fr++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map;for(let n of s)s=n[0],u=n[1],("root"===s||u)&&(void 0!==(a=e.get(s))&&void 0!==a&&a.__key!==o&&a.isAttached()&&br(t,a,i),r.set(s,u));l=(a=t._dirtyLeaves).size,u=(s=t._dirtyElements).size,fr++}t._dirtyLeaves=n,t._dirtyElements=r}(a,e),Er(e),function(e,t,n,r){e=e._nodeMap,t=t._nodeMap;let o=[];for(let[n]of r){let i=t.get(n);void 0===i||i.isAttached()||(Nr(i)&&ct(i,n,e,t,o,r),e.has(n)||r.delete(n),o.push(n))}for(let e of o)t.delete(e);for(let o of n)void 0===(r=t.get(o))||r.isAttached()||(e.has(o)||n.delete(o),t.delete(o))}(n,a,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(a._flushSync=!0);let i=a._selection;if(Fn(i)){let e=a._nodeMap,t=i.focus.key;void 0!==e.get(i.anchor.key)&&void 0!==e.get(t)||I(19)}else Wn(i)&&0===i._nodes.size&&(a._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=n,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void _r(e)}finally{sr=i,cr=s,ur=u,e._updating=c,fr=0}0!==e._dirtyType||function(e,t){if(t=t.getEditorState()._selection,e=e._selection,null!==e){if(e.dirty||!e.is(t))return!0}else if(null!==t)return!0;return!1}(a,e)?a._flushSync?(a._flushSync=!1,_r(e)):l&&ge((()=>{_r(e)})):(a._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function kr(e,t,n){e._updating?e._updates.push([t,n]):wr(e,t,n)}class Rr extends cn{constructor(e){super(e)}decorate(){I(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Tr(e){return e instanceof Rr}class Ar extends cn{constructor(e){super(e),this.__last=this.__first=null,this.__indent=this.__format=this.__size=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return Z[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){let e=vr()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;null!==t;){if(Nn(t)&&e.push(t),Nr(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;null!==e;){if(Nr(e)){let t=e.getFirstChild();if(null!==t){e=t;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;null!==e;){if(Nr(e)){let t=e.getLastChild();if(null!==t){e=t;continue}}break}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;return e>=n?Nr(e=t[n-1])&&e.getLastDescendant()||e||null:Nr(e=t[e])&&e.getFirstDescendant()||e||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:Ae(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&I(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:Ae(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&I(96,this.__key),e}getChildAtIndex(e){var t=this.getChildrenSize();let n;if(e<t/2){for(n=this.getFirstChild(),t=0;null!==n&&t<=e;){if(t===e)return n;n=n.getNextSibling(),t++}return null}for(n=this.getLastChild(),--t;null!==n&&t>=e;){if(t===e)return n;n=n.getPreviousSibling(),t--}return null}getTextContent(){let e="",t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let o=t[r];e+=o.getTextContent(),Nr(o)&&r!==n-1&&!o.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let o=t[r];e+=o.getTextContentSize(),Nr(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return""!==e&&(e=J[e],!!(this.getFormat()&e))}select(e,t){mr();let n=tr(),r=e,o=t;var i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){if(Nn(e=this.getFirstChild())||Nr(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)&&(Nn(e=this.getLastChild())||Nr(e)))return e.select();return void 0===r&&(r=i),void 0===o&&(o=i),i=this.__key,Fn(n)?(n.anchor.set(i,r,"element"),n.focus.set(i,o,"element"),n.dirty=!0,n):Jn(i,r,i,o,"element","element")}selectStart(){let e=this.getFirstDescendant();return Nr(e)||Nn(e)?e.select(0,0):null!==e?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return Nr(e)||Nn(e)?e.select():null!==e?e.selectNext():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach((e=>e.remove())),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?J[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let r=n.length,o=this.getChildrenSize(),i=this.getWritable(),a=i.__key;var l=[],s=[];let u=this.getChildAtIndex(e+t),c=null,d=o-t+r;if(0!==e)if(e===o)c=this.getLastChild();else{var f=this.getChildAtIndex(e);null!==f&&(c=f.getPreviousSibling())}if(0<t){var p=null===c?this.getFirstChild():c.getNextSibling();for(f=0;f<t;f++){null===p&&I(100);var h=p.getNextSibling(),m=p.__key;we(p=p.getWritable()),s.push(m),p=h}}for(f=c,h=0;h<r;h++){m=n[h],null!==f&&m.is(f)&&(c=f=f.getPreviousSibling()),(p=m.getWritable()).__parent===a&&d--,we(p);let e=m.__key;null===f?(i.__first=e,p.__prev=null):((f=f.getWritable()).__next=e,p.__prev=f.__key),m.__key===a&&I(76),p.__parent=a,l.push(e),f=m}if(e+t===o?null!==f&&(f.getWritable().__next=null,i.__last=f.__key):null!==u&&(e=u.getWritable(),null!==f?(t=f.getWritable(),e.__prev=f.__key,t.__next=u.__key):e.__prev=null),i.__size=d,s.length&&Fn(e=tr())){s=new Set(s),l=new Set(l);let{anchor:t,focus:n}=e;Lr(t,s,l)&&ir(t,t.getNode(),this,c,u),Lr(n,s,l)&&ir(n,n.getNode(),this,c,u),0!==d||this.canBeEmpty()||et(this)||this.remove()}return i}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(){return null}canIndent(){return!0}collapseAtStart(){return!1}excludeFromCopy(){return!1}canExtractContents(){return!0}canReplaceWith(){return!0}canInsertAfter(){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(){return!1}extractWithChild(){return!1}}function Nr(e){return e instanceof Ar}function Lr(e,t,n){for(e=e.getNode();e;){let r=e.__key;if(t.has(r)&&!n.has(r))return!0;e=e.getParent()}return!1}class Or extends Ar{static getType(){return"root"}static clone(){return new Or}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){I(51)}getTextContent(){let e=this.__cachedText;return!hr()&&0!==vr()._dirtyType||null===e?super.getTextContent():e}remove(){I(52)}replace(){I(53)}insertBefore(){I(54)}insertAfter(){I(55)}updateDOM(){return!1}append(...e){for(let t=0;t<e.length;t++){let n=e[t];Nr(n)||Tr(n)||I(56)}return super.append(...e)}static importJSON(e){let t=Pe();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function Mr(e){return e instanceof Or}function Pr(){return new Dr(new Map([["root",new Or]]))}function Ir(e){let t=e.exportJSON();var n=e.constructor;t.type!==n.getType()&&I(130,n.name);let r=t.children;if(Nr(e))for(Array.isArray(r)||I(59,n.name),e=e.getChildren(),n=0;n<e.length;n++){let t=Ir(e[n]);r.push(t)}return t}class Dr{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._readOnly=this._flushSync=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e){return xr(this,e)}clone(e){return(e=new Dr(this._nodeMap,void 0===e?this._selection:e))._readOnly=!0,e}toJSON(){return xr(this,(()=>({root:Ir(Pe())})))}}class $r extends Ar{static getType(){return"paragraph"}static clone(e){return new $r(e.__key)}createDOM(e){let t=document.createElement("p");return void 0!==(e=We(e.theme,"paragraph"))&&t.classList.add(...e),t}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:zr,priority:0})}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t),0<(t=this.getIndent())&&(e.style.textIndent=20*t+"px")}return{element:e}}static importJSON(e){let t=Fr();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(e,t){e=Fr();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.getChildren();if(0===e.length||Nn(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function zr(e){let t=Fr();return e.style&&(t.setFormat(e.style.textAlign),0<(e=parseInt(e.style.textIndent,10)/20)&&t.setIndent(e)),{node:t}}function Fr(){return nt(new $r)}function Br(e,t,n,r){let o=e._keyToDOMMap;o.clear(),e._editorState=Pr(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null,null!==(r=e._observer)&&(r.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}class Hr{constructor(e,t,n,r,o,i,a){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Fe(),this._onError=o,this._htmlConversions=i,this._editable=a,this._headless=null!==t&&t._headless,this._blockCursorElement=this._window=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&I(35);let r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=r.get(e);void 0===o&&I(36,String(e));let i=o[n];return i.add(t),()=>{i.delete(t),o.every((e=>0===e.size))&&r.delete(e)}}registerMutationListener(e,t){void 0===this._nodes.get(e.getType())&&I(37,e.name);let n=this._listeners.mutation;return n.set(t,e),()=>{n.delete(t)}}registerNodeTransformToKlass(e,t){var n=e.getType();return void 0===(n=this._nodes.get(n))&&I(37,e.name),n.transforms.add(t),n}registerNodeTransform(e,t){var n=this.registerNodeTransformToKlass(e,t);let r=[n];return null!=(n=n.replaceWithKlass)&&(n=this.registerNodeTransformToKlass(n,t),r.push(n)),function(e,t){kr(e,(()=>{var e=gr();if(!e.isEmpty())if("root"===t)Pe().markDirty();else{e=e._nodeMap;for(let[,t]of e)t.markDirty()}}),null===e._pendingEditorState?{tag:"history-merge"}:void 0)}(this,e.getType()),()=>{r.forEach((e=>e.transforms.delete(t)))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return Cr(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let i=We(this._config.theme,"root");var n=this._pendingEditorState||this._editorState;if(this._rootElement=e,Br(this,t,e,n),null!==t){if(!this._config.disableEvents){0!==Vt&&(Vt--,0===Vt&&t.ownerDocument.removeEventListener("selectionchange",sn));var r=t.__lexicalEditor;if(null!=r){if(null!==r._parentEditor){var o=ze(r);o=o[o.length-1]._key,ln.get(o)===r&&ln.delete(o)}else ln.delete(r._key);t.__lexicalEditor=null}for(r=an(t),o=0;o<r.length;o++)r[o]();t.__lexicalEventHandles=[]}null!=i&&t.classList.remove(...i)}null!==e?(n=(n=e.ownerDocument)&&n.defaultView||null,(r=e.style).userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=n,this._dirtyType=2,ue(this),this._updateTags.add("history-merge"),_r(this),this._config.disableEvents||function(e,t){0===Vt&&e.ownerDocument.addEventListener("selectionchange",sn),Vt++,e.__lexicalEditor=t;let n=an(e);for(let r=0;r<Wt.length;r++){let[o,i]=Wt[r],l="function"==typeof i?e=>{!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()&&i(e,t))}:e=>{if(!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()))switch(o){case"cut":return Cr(t,L,e);case"copy":return Cr(t,N,e);case"paste":return Cr(t,a,e);case"dragstart":return Cr(t,R,e);case"dragover":return Cr(t,T,e);case"dragend":return Cr(t,A,e);case"focus":return Cr(t,O,e);case"blur":return Cr(t,M,e);case"drop":return Cr(t,k,e)}};e.addEventListener(o,l),n.push((()=>{e.removeEventListener(o,l)}))}}(e,this),null!=i&&e.classList.add(...i)):(this._editorState=n,this._window=this._pendingEditorState=null),Sr("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&I(38),se(this);let n=this._pendingEditorState,r=this._updateTags;t=void 0!==t?t.tag:null,null===n||n.isEmpty()||(null!=t&&r.add(t),_r(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=t&&r.add(t),_r(this)}parseEditorState(e,t){e="string"==typeof e?JSON.parse(e):e;let n=Pr(),r=sr,o=cr,i=ur,a=this._dirtyElements,l=this._dirtyLeaves,s=this._cloneNotNeeded,u=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,sr=n,cr=!1,ur=this;try{yr(e.root,this._nodes),t&&t(),n._readOnly=!0}catch(e){e instanceof Error&&this._onError(e)}finally{this._dirtyElements=a,this._dirtyLeaves=l,this._cloneNotNeeded=s,this._dirtyType=u,sr=r,cr=o,ur=i}return n}update(e,t){kr(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),kr(this,(()=>{let e=tr(),n=Pe();null!==e?e.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===t.defaultSelection?n.selectStart():n.selectEnd())}),{onUpdate:()=>{n.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;null!==e&&e.blur(),null!==(e=at(this._window))&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Sr("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class jr extends Ar{constructor(e,t){super(t),this.__colSpan=e,this.__rowSpan=1}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan,rowSpan:this.__rowSpan}}getColSpan(){return this.__colSpan}setColSpan(e){return this.getWritable().__colSpan=e,this}getRowSpan(){return this.__rowSpan}setRowSpan(e){return this.getWritable().__rowSpan=e,this}}function Wr(e){return e instanceof jr}class Gr extends Ar{}function Yr(e){return e instanceof Gr}class Ur extends Ar{}function Kr(e){return e instanceof Ur}return ne.$addUpdateTag=function(e){mr(),vr()._updateTags.add(e)},ne.$applyNodeReplacement=nt,ne.$copyNode=tt,ne.$createLineBreakNode=pn,ne.$createNodeSelection=Zn,ne.$createParagraphNode=Fr,ne.$createRangeSelection=function(){let e=new Mn("root",0,"element"),t=new Mn("root",0,"element");return new jn(e,t,0,"")},ne.$createTabNode=On,ne.$createTextNode=An,ne.$getAdjacentNode=Ue,ne.$getNearestNodeFromDOMNode=Le,ne.$getNearestRootOrShadowRoot=Ze,ne.$getNodeByKey=Ae,ne.$getPreviousSelection=nr,ne.$getRoot=Pe,ne.$getSelection=tr,ne.$getTextContent=function(){let e=tr();return null===e?"":e.getTextContent()},ne.$hasAncestor=Xe,ne.$hasUpdateTag=function(e){return vr()._updateTags.has(e)},ne.$insertNodes=function(e,t){let n=tr()||nr();return null===n&&(n=Pe().selectEnd()),n.insertNodes(e,t)},ne.$isBlockElementNode=Xn,ne.$isDecoratorNode=Tr,ne.$isElementNode=Nr,ne.$isInlineElementOrDecoratorNode=function(e){return Nr(e)&&e.isInline()||Tr(e)&&e.isInline()},ne.$isLeafNode=Ce,ne.$isLineBreakNode=hn,ne.$isNodeSelection=Wn,ne.$isParagraphNode=function(e){return e instanceof $r},ne.$isRangeSelection=Fn,ne.$isRootNode=Mr,ne.$isRootOrShadowRoot=et,ne.$isTabNode=function(e){return e instanceof Ln},ne.$isTextNode=Nn,ne.$nodesOfType=function(e){var t=gr();let n=t._readOnly,r=e.getType();t=t._nodeMap;let o=[];for(let[,i]of t)i instanceof e&&i.__type===r&&(n||i.isAttached())&&o.push(i);return o},ne.$normalizeSelection__EXPERIMENTAL=pe,ne.$parseSerializedNode=function(e){return yr(e,vr()._nodes)},ne.$setCompositionKey=Re,ne.$setSelection=Ie,ne.$splitNode=lt,ne.BLUR_COMMAND=M,ne.CAN_REDO_COMMAND={},ne.CAN_UNDO_COMMAND={},ne.CLEAR_EDITOR_COMMAND={},ne.CLEAR_HISTORY_COMMAND={},ne.CLICK_COMMAND=t,ne.COMMAND_PRIORITY_CRITICAL=4,ne.COMMAND_PRIORITY_EDITOR=0,ne.COMMAND_PRIORITY_HIGH=3,ne.COMMAND_PRIORITY_LOW=1,ne.COMMAND_PRIORITY_NORMAL=2,ne.CONTROLLED_TEXT_INSERTION_COMMAND=i,ne.COPY_COMMAND=N,ne.CUT_COMMAND=L,ne.DELETE_CHARACTER_COMMAND=n,ne.DELETE_LINE_COMMAND=u,ne.DELETE_WORD_COMMAND=s,ne.DEPRECATED_$computeGridMap=lr,ne.DEPRECATED_$createGridSelection=function(){let e=new Mn("root",0,"element"),t=new Mn("root",0,"element");return new Bn("root",e,t)},ne.DEPRECATED_$getNodeTriplet=function(e){e instanceof jr||(e instanceof cn?Wr(e=st(e,Wr))||I(114):Wr(e=st(e.getNode(),Wr))||I(114));let t=e.getParent();Kr(t)||I(115);let n=t.getParent();return Yr(n)||I(116),[e,t,n]},ne.DEPRECATED_$isGridCellNode=Wr,ne.DEPRECATED_$isGridNode=Yr,ne.DEPRECATED_$isGridRowNode=Kr,ne.DEPRECATED_$isGridSelection=Hn,ne.DEPRECATED_GridCellNode=jr,ne.DEPRECATED_GridNode=Gr,ne.DEPRECATED_GridRowNode=Ur,ne.DRAGEND_COMMAND=A,ne.DRAGOVER_COMMAND=T,ne.DRAGSTART_COMMAND=R,ne.DROP_COMMAND=k,ne.DecoratorNode=Rr,ne.ElementNode=Ar,ne.FOCUS_COMMAND=O,ne.FORMAT_ELEMENT_COMMAND={},ne.FORMAT_TEXT_COMMAND=c,ne.INDENT_CONTENT_COMMAND={},ne.INSERT_LINE_BREAK_COMMAND=r,ne.INSERT_PARAGRAPH_COMMAND=o,ne.INSERT_TAB_COMMAND={},ne.KEY_ARROW_DOWN_COMMAND=y,ne.KEY_ARROW_LEFT_COMMAND=g,ne.KEY_ARROW_RIGHT_COMMAND=h,ne.KEY_ARROW_UP_COMMAND=b,ne.KEY_BACKSPACE_COMMAND=S,ne.KEY_DELETE_COMMAND=E,ne.KEY_DOWN_COMMAND=p,ne.KEY_ENTER_COMMAND=x,ne.KEY_ESCAPE_COMMAND=C,ne.KEY_MODIFIER_COMMAND=P,ne.KEY_SPACE_COMMAND=_,ne.KEY_TAB_COMMAND=w,ne.LineBreakNode=dn,ne.MOVE_TO_END=m,ne.MOVE_TO_START=v,ne.OUTDENT_CONTENT_COMMAND={},ne.PASTE_COMMAND=a,ne.ParagraphNode=$r,ne.REDO_COMMAND=f,ne.REMOVE_TEXT_COMMAND=l,ne.RootNode=Or,ne.SELECTION_CHANGE_COMMAND=e,ne.TabNode=Ln,ne.TextNode=xn,ne.UNDO_COMMAND=d,ne.createCommand=function(){return{}},ne.createEditor=function(e){var t=e||{},n=ur,r=t.theme||{};let o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=Pr(),l=t.namespace||(null!==o?o._config.namespace:Fe()),s=t.editorState,u=[Or,xn,dn,Ln,$r,...t.nodes||[]],c=t.onError;if(t=void 0===t.editable||t.editable,void 0===e&&null!==n)e=n._nodes;else for(e=new Map,n=0;n<u.length;n++){let t=u[n],r=null;var d=null;"function"!=typeof t&&(t=(d=t).replace,r=d.with,d=d.withKlass?d.withKlass:null);let o=t.getType(),i=t.transform(),a=new Set;null!==i&&a.add(i),e.set(o,{klass:t,replace:r,replaceWithKlass:d,transforms:a})}return r=new Hr(a,o,e,{disableEvents:i,namespace:l,theme:r},c||console.error,function(e){let t=new Map,n=new Set;return e.forEach((e=>{if(null!=(e=null!=e.klass.importDOM?e.klass.importDOM.bind(e.klass):null)&&!n.has(e)){n.add(e);var r=e();null!==r&&Object.keys(r).forEach((e=>{let n=t.get(e);void 0===n&&(n=[],t.set(e,n)),n.push(r[e])}))}})),t}(e),t),void 0!==s&&(r._pendingEditorState=s,r._dirtyType=2),r},ne.getNearestEditorFromDOMNode=ye,ne.isSelectionCapturedInDecoratorInput=ve,ne.isSelectionWithinEditor=be,ne}function oe(){if(W)return j;W=1;const e=re();return j=e}function ie(){if(U)return Y;U=1;const e=function(){if(G)return te;G=1;var e=oe();let t=new Map;function n(e){for(;null!=e;){if(e.nodeType===Node.TEXT_NODE)return e;e=e.firstChild}return null}function r(e){let t=e.parentNode;if(null==t)throw Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function o(e){let t={};e=e.split(";");for(let n of e)if(""!==n){let[e,r]=n.split(/:([^]+)/);t[e.trim()]=r.trim()}return t}function i(e){let n=t.get(e);return void 0===n&&(n=o(e),t.set(e,n)),n}function a(e,n){var r=i("getStyle"in e?e.getStyle():e.style);n=Object.entries(n).reduce(((e,[t,n])=>(null===n?delete e[t]:e[t]=n,e)),{...r}),r=function(e){let t="";for(let n in e)n&&(t+=`${n}: ${e[n]};`);return t}(n),e.setStyle(r),t.set(r,n)}function l(t){for(;null!==t&&!e.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();0===e.getChildrenSize()&&t.remove(!0),t=n}}function s(t,n,r,o,i=null){if(0!==n.length){var a=n[0],s=new Map,u=[];(a=e.$isElementNode(a)?a:a.getParentOrThrow()).isInline()&&(a=a.getParentOrThrow());for(var c=!1;null!==a;){var d=a.getPreviousSibling();if(null!==d){a=d,c=!0;break}if(a=a.getParentOrThrow(),e.$isRootOrShadowRoot(a))break}d=new Set;for(var f=0;f<r;f++){var p=n[f];e.$isElementNode(p)&&0===p.getChildrenSize()&&d.add(p.getKey())}var h=new Set;for(f=0;f<r;f++){var m=(p=n[f]).getParent();if(null!==m&&m.isInline()&&(m=m.getParent()),null!==m&&e.$isLeafNode(p)&&!h.has(p.getKey())){if(p=m.getKey(),void 0===s.get(p)){let t=o();t.setFormat(m.getFormatType()),t.setIndent(m.getIndent()),u.push(t),s.set(p,t),m.getChildren().forEach((n=>{t.append(n),h.add(n.getKey()),e.$isElementNode(n)&&n.getChildrenKeys().forEach((e=>h.add(e)))})),l(m)}}else d.has(p.getKey())&&((m=o()).setFormat(p.getFormatType()),m.setIndent(p.getIndent()),u.push(m),p.remove(!0))}if(null!==i)for(n=0;n<u.length;n++)i.append(u[n]);if(n=null,e.$isRootOrShadowRoot(a))if(c)if(null!==i)a.insertAfter(i);else for(i=u.length-1;0<=i;i--)a.insertAfter(u[i]);else if(c=a.getFirstChild(),e.$isElementNode(c)&&(a=c),null===c)if(i)a.append(i);else for(i=0;i<u.length;i++)c=u[i],a.append(c),n=c;else if(null!==i)c.insertBefore(i);else for(a=0;a<u.length;a++)i=u[a],c.insertBefore(i),n=i;else if(i)a.insertAfter(i);else for(i=u.length-1;0<=i;i--)c=u[i],a.insertAfter(c),n=c;u=e.$getPreviousSelection(),e.$isRangeSelection(u)&&u.anchor.getNode().isAttached()&&u.focus.getNode().isAttached()?e.$setSelection(u.clone()):null!==n?n.selectEnd():t.dirty=!0}}function u(e,t,n,r){e.modify(t?"extend":"move",n,r)}function c(t){return t=t.anchor.getNode(),"rtl"===(e.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()}return te.$addNodeStyle=function(e){let n=o(e=e.getStyle());t.set(e,n)},te.$cloneWithProperties=function(t){let n=(t=t.getLatest()).constructor.clone(t);return n.__parent=t.__parent,n.__next=t.__next,n.__prev=t.__prev,e.$isElementNode(t)&&e.$isElementNode(n)?(n.__first=t.__first,n.__last=t.__last,n.__size=t.__size,n.__format=t.__format,n.__indent=t.__indent,n.__dir=t.__dir,n):(e.$isTextNode(t)&&e.$isTextNode(n)&&(n.__format=t.__format,n.__style=t.__style,n.__mode=t.__mode,n.__detail=t.__detail),n)},te.$getSelectionStyleValueForProperty=function(t,n,r=""){let o=null,a=t.getNodes();var l=t.anchor,s=t.focus,u=t.isBackward();let c=u?s.offset:l.offset;if(l=u?s.getNode():l.getNode(),""!==t.style&&null!==(t=i(t.style))&&n in t)return t[n];for(t=0;t<a.length;t++){var d=a[t];if((0===t||0!==c||!d.is(l))&&e.$isTextNode(d))if(s=n,u=r,s=null!==(d=i(d=d.getStyle()))&&d[s]||u,null===o)o=s;else if(o!==s){o="";break}}return null===o?r:o},te.$isAtNodeEnd=function(e){return"text"===e.type?e.offset===e.getNode().getTextContentSize():e.offset===e.getNode().getChildrenSize()},te.$isParentElementRTL=c,te.$moveCaretSelection=u,te.$moveCharacter=function(e,t,n){let r=c(e);u(e,t,n?!r:r,"character")},te.$patchStyleText=function(t,n){var r=t.getNodes();let o=r.length-1,i=r[0],l=r[o];if(t.isCollapsed())a(t,n);else{var s=t.anchor,u=t.focus,c=i.getTextContent().length,d=u.offset,f=s.offset,p=s.isBefore(u),h=p?f:d;t=p?d:f;var m=p?s.type:u.type,g=p?u.type:s.type;if(s=p?u.key:s.key,e.$isTextNode(i)&&h===c&&(u=i.getNextSibling(),e.$isTextNode(u)&&(h=f=0,i=u)),1===r.length)e.$isTextNode(i)&&(h="element"===m?0:f>d?d:f)!==(t="element"===g?c:f>d?f:d)&&(0===h&&t===c?(a(i,n),i.select(h,t)):(r=i.splitText(h,t),a(r=0===h?r[0]:r[1],n),r.select(0,t-h)));else for(e.$isTextNode(i)&&h<i.getTextContentSize()&&(0!==h&&(i=i.splitText(h)[1]),a(i,n)),e.$isTextNode(l)&&(h=l.getTextContent().length,l.__key!==s&&0!==t&&(t=h),t!==h&&([l]=l.splitText(t)),0!==t&&a(l,n)),t=1;t<o;t++)c=(h=r[t]).getKey(),e.$isTextNode(h)&&c!==i.getKey()&&c!==l.getKey()&&!h.isToken()&&a(h,n)}},te.$selectAll=function(t){let n=t.anchor;t=t.focus;var r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();let o=r.getFirstDescendant();r=r.getLastDescendant();let i="element",a="element",l=0;e.$isTextNode(o)?i="text":e.$isElementNode(o)||null===o||(o=o.getParentOrThrow()),e.$isTextNode(r)?(a="text",l=r.getTextContentSize()):e.$isElementNode(r)||null===r||(r=r.getParentOrThrow()),o&&r&&(n.set(o.getKey(),0,i),t.set(r.getKey(),l,a))},te.$setBlocksType=function(t,n){if("root"===t.anchor.key){n=n();var r=e.$getRoot();(t=r.getFirstChild())?t.replace(n,!0):r.append(n)}else for(r=t.getNodes(),t=t.anchor.getNode().getParentOrThrow(),-1===r.indexOf(t)&&r.push(t),t.isInline()&&(t=t.getParentOrThrow(),-1===r.indexOf(t)&&r.push(t)),t=0;t<r.length;t++){let a=r[t];var o=a;if(!e.$isElementNode(o)||e.$isRootOrShadowRoot(o))o=!1;else{var i=o.getFirstChild();i=null===i||e.$isTextNode(i)||i.isInline(),o=!o.isInline()&&!1!==o.canBeEmpty()&&i}o&&((o=n()).setFormat(a.getFormatType()),o.setIndent(a.getIndent()),a.replace(o,!0))}},te.$shouldOverrideDefaultCharacterSelection=function(t,n){return t=e.$getAdjacentNode(t.focus,n),e.$isDecoratorNode(t)&&!t.isIsolated()||e.$isElementNode(t)&&!t.isInline()&&!t.canBeEmpty()},te.$sliceSelectedTextNodeContent=function(t,n){if(n.isSelected()&&!n.isSegmented()&&!n.isToken()&&(e.$isRangeSelection(t)||e.DEPRECATED_$isGridSelection(t))){var r=t.anchor.getNode(),o=t.focus.getNode(),i=n.is(r),a=n.is(o);if(i||a){i=t.isBackward();let e,[l,s]=t.getCharacterOffsets();t=r.is(o),a=n.is(i?o:r),o=n.is(i?r:o),r=0,t?(r=l>s?s:l,e=l>s?l:s):a?(r=i?s:l,e=void 0):o&&(r=0,e=i=i?l:s),n.__text=n.__text.slice(r,e)}}return n},te.$wrapNodes=function(t,n,r=null){var o=t.getNodes();let i=o.length;var a=t.anchor;if(0===i||1===i&&"element"===a.type&&0===a.getNode().getChildrenSize()){o=(t="text"===a.type?a.getNode().getParentOrThrow():a.getNode()).getChildren();let e=n();e.setFormat(t.getFormatType()),e.setIndent(t.getIndent()),o.forEach((t=>e.append(t))),r&&(e=r.append(e)),t.replace(e)}else{a=null;var l=[];for(let u=0;u<i;u++){let i=o[u];e.$isRootOrShadowRoot(i)?(s(t,l,l.length,n,r),l=[],a=i):null===a||null!==a&&e.$hasAncestor(i,a)?l.push(i):(s(t,l,l.length,n,r),l=[i])}s(t,l,l.length,n,r)}},te.createDOMRange=function(t,o,i,a,l){let s=o.getKey(),u=a.getKey(),c=document.createRange(),d=t.getElementByKey(s);if(t=t.getElementByKey(u),e.$isTextNode(o)&&(d=n(d)),e.$isTextNode(a)&&(t=n(t)),void 0===o||void 0===a||null===d||null===t)return null;"BR"===d.nodeName&&([d,i]=r(d)),"BR"===t.nodeName&&([t,l]=r(t)),o=d.firstChild,d===t&&null!=o&&"BR"===o.nodeName&&0===i&&0===l&&(l=1);try{c.setStart(d,i),c.setEnd(t,l)}catch(e){return null}return!c.collapsed||i===l&&s===u||(c.setStart(t,l),c.setEnd(d,i)),c},te.createRectsFromDOMRange=function(e,t){var n=e.getRootElement();if(null===n)return[];e=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);let r,o=(t=Array.from(t.getClientRects())).length;t.sort(((e,t)=>{let n=e.top-t.top;return 3>=Math.abs(n)?e.left-t.left:n}));for(let i=0;i<o;i++){let a=t[i],l=a.width+n===e.width;r&&r.top<=a.top&&r.top+r.height>a.top&&r.left+r.width>a.left||l?(t.splice(i--,1),o--):r=a}return t},te.getStyleObjectFromCSS=i,te.trimTextContentFromAnchor=function(t,n,r){let o=n.getNode();if(e.$isElementNode(o)){var i=o.getDescendantByIndex(n.offset);null!==i&&(o=i)}for(;0<r&&null!==o;){var a=o.getPreviousSibling(),l=0;if(null===a){for(var s=(i=o.getParentOrThrow()).getPreviousSibling();null===s;){if(null===(i=i.getParent())){a=null;break}s=i.getPreviousSibling()}null!==i&&(l=i.isInline()?0:2,a=e.$isElementNode(s)?s.getLastDescendant():s)}if(""===(s=o.getTextContent())&&e.$isElementNode(o)&&!o.isInline()&&(s="\n\n"),i=o.getTextContentSize(),!e.$isTextNode(o)||r>=i)s=o.getParent(),o.remove(),null==s||0!==s.getChildrenSize()||e.$isRootNode(s)||s.remove(),r-=i+l,o=a;else{let u=o.getKey();l=t.getEditorState().read((()=>{const t=e.$getNodeByKey(u);return e.$isTextNode(t)&&t.isSimpleText()?t.getTextContent():null})),a=i-r;let c=s.slice(0,a);null!==l&&l!==s?(r=e.$getPreviousSelection(),i=o,o.isSimpleText()?o.setTextContent(l):(i=e.$createTextNode(l),o.replace(i)),e.$isRangeSelection(r)&&r.isCollapsed()&&(r=r.anchor.offset,i.select(r,r))):o.isSimpleText()?(l=n.key===u,(s=n.offset)<r&&(s=i),r=l?s-r:0,i=l?s:a,l&&0===r?([r]=o.splitText(r,i),r.remove()):([,r]=o.splitText(r,i),r.remove())):(r=e.$createTextNode(c),o.replace(r)),r=0}}},te}();return Y=e}function ae(){if(K)return ee;K=1;var e=ie(),t=oe();function n(e,t){for(let n of t)if(e.type.startsWith(n))return!0;return!1}function r(e,n){for(;e!==t.$getRoot()&&null!=e;){if(n(e))return e;e=e.getParent()}return null}function o(e){return 1===e.nodeType}return ee.$splitNode=t.$splitNode,ee.$dfs=function(e,n){let r=[];e=(e||t.$getRoot()).getLatest(),n=n||(t.$isElementNode(e)?e.getLastDescendant():e);for(var o=e,i=0;null!==(o=o.getParent());)i++;for(o=i;null!==e&&!e.is(n);)if(r.push({depth:o,node:e}),t.$isElementNode(e)&&0<e.getChildrenSize())e=e.getFirstChild(),o++;else for(i=null;null===i&&null!==e;)null===(i=e.getNextSibling())?(e=e.getParent(),o--):e=i;return null!==e&&e.is(n)&&r.push({depth:o,node:e}),r},ee.$findMatchingParent=r,ee.$getNearestBlockElementAncestorOrThrow=function(e){let n=r(e,(e=>t.$isElementNode(e)&&!e.isInline()));return t.$isElementNode(n)||function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(4,e.__key),n},ee.$getNearestNodeOfType=function(e,t){for(;null!=e;){if(e instanceof t)return e;e=e.getParent()}return null},ee.$insertNodeToNearestRoot=function(e){var n=t.$getSelection()||t.$getPreviousSelection();if(t.$isRangeSelection(n)){var{focus:r}=n;if(n=r.getNode(),r=r.offset,t.$isRootOrShadowRoot(n))null==(r=n.getChildAtIndex(r))?n.append(e):r.insertBefore(e),e.selectNext();else{let o,i;t.$isTextNode(n)?(o=n.getParentOrThrow(),i=n.getIndexWithinParent(),0<r&&(i+=1,n.splitText(r))):(o=n,i=r),[,n]=t.$splitNode(o,i),n.insertBefore(e),n.selectStart()}}else t.$isNodeSelection(n)||t.DEPRECATED_$isGridSelection(n)?(n=n.getNodes())[n.length-1].getTopLevelElementOrThrow().insertAfter(e):t.$getRoot().append(e),n=t.$createParagraphNode(),e.insertAfter(n),n.select();return e.getLatest()},ee.$restoreEditorState=function(n,r){let o=new Map,i=n._pendingEditorState;for(let[n,i]of r._nodeMap){let r=e.$cloneWithProperties(i);t.$isTextNode(r)&&(r.__text=i.__text),o.set(n,r)}i&&(i._nodeMap=o),n._dirtyType=2,n=r._selection,t.$setSelection(null===n?null:n.clone())},ee.$wrapNodeInElement=function(e,t){return t=t(),e.replace(t),t.append(e),t},ee.addClassNamesToElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&(t=t.split(" ").filter((e=>""!==e)),e.classList.add(...t))}))},ee.isHTMLAnchorElement=function(e){return o(e)&&"A"===e.tagName},ee.isHTMLElement=o,ee.isMimeType=n,ee.mediaFileReader=function(e,t){let r=e[Symbol.iterator]();return new Promise(((e,o)=>{let i=[],a=()=>{const{done:l,value:s}=r.next();if(l)return e(i);const u=new FileReader;u.addEventListener("error",o),u.addEventListener("load",(()=>{const e=u.result;"string"==typeof e&&i.push({file:s,result:e}),a()})),n(s,t)?u.readAsDataURL(s):a()};a()}))},ee.mergeRegister=function(...e){return()=>{e.forEach((e=>e()))}},ee.objectKlassEquals=function(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name},ee.registerNestedElementResolver=function(e,t,n,r){return e.registerNodeTransform(t,(e=>{e:{for(var o=e.getChildren(),i=0;i<o.length;i++)if(o[i]instanceof t){o=null;break e}for(o=e;null!==o;)if(i=o,(o=o.getParent())instanceof t){o={child:i,parent:o};break e}o=null}if(null!==o){const{child:t,parent:a}=o;if(t.is(e)){if(r(a,e),o=(e=t.getNextSiblings()).length,a.insertAfter(t),0!==o){i=n(a),t.insertAfter(i);for(let t=0;t<o;t++)i.append(e[t])}a.canBeEmpty()||0!==a.getChildrenSize()||a.remove()}}}))},ee.removeClassNamesFromElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&e.classList.remove(...t.split(" "))}))},ee}function le(){if(q)return V;q=1;const e=ae();return V=e}function se(){if(J)return X;J=1;const e=function(){if(Q)return Z;Q=1;var e=le(),t=oe();let n=new Set(["http:","https:","mailto:","sms:","tel:"]);class r extends t.ElementNode{static getType(){return"link"}static clone(e){return new r(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,t={},n){super(n);let{target:r=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=o,this.__title=i}createDOM(t){let n=document.createElement("a");return n.href=this.sanitizeUrl(this.__url),null!==this.__target&&(n.target=this.__target),null!==this.__rel&&(n.rel=this.__rel),null!==this.__title&&(n.title=this.__title),e.addClassNamesToElement(n,t.theme.link),n}updateDOM(e,t){let n=this.__url,r=this.__target,o=this.__rel,i=this.__title;return n!==e.__url&&(t.href=n),r!==e.__target&&(r?t.target=r:t.removeAttribute("target")),o!==e.__rel&&(o?t.rel=o:t.removeAttribute("rel")),i!==e.__title&&(i?t.title=i:t.removeAttribute("title")),!1}static importDOM(){return{a:()=>({conversion:o,priority:1})}}static importJSON(e){let t=i(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}sanitizeUrl(e){try{let t=new URL(e);if(!n.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,n=!0){return e=this.getParentOrThrow().insertNewAfter(e,n),t.$isElementNode(e)?(n=i(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),e.append(n),n):null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!t.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0<n.getTextContent().length}}function o(t){let n=null;if(e.isHTMLAnchorElement(t)){let e=t.textContent;null!==e&&""!==e&&(n=i(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:n}}function i(e,n){return t.$applyNodeReplacement(new r(e,n))}function a(e){return e instanceof r}class l extends r{static getType(){return"autolink"}static clone(e){return new l(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}static importJSON(e){let t=s(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e,n=!0){return e=this.getParentOrThrow().insertNewAfter(e,n),t.$isElementNode(e)?(n=s(this.__url,{rel:this._rel,target:this.__target,title:this.__title}),e.append(n),n):null}}function s(e,n){return t.$applyNodeReplacement(new l(e,n))}let u=t.createCommand("TOGGLE_LINK_COMMAND");return Z.$createAutoLinkNode=s,Z.$createLinkNode=i,Z.$isAutoLinkNode=function(e){return e instanceof l},Z.$isLinkNode=a,Z.AutoLinkNode=l,Z.LinkNode=r,Z.TOGGLE_LINK_COMMAND=u,Z.toggleLink=function(e,n={}){let{target:r,title:o}=n,l=void 0===n.rel?"noreferrer":n.rel;if(n=t.$getSelection(),t.$isRangeSelection(n))if(n=n.extract(),null===e)n.forEach((e=>{if(a(e=e.getParent())){let t=e.getChildren();for(let n=0;n<t.length;n++)e.insertBefore(t[n]);e.remove()}}));else{if(1===n.length){var s=n[0];if(s=a(s)?s:function(e,t){for(;null!==e&&null!==(e=e.getParent())&&!t(e););return e}(s,a),null!==s)return s.setURL(e),void 0!==r&&s.setTarget(r),null!==l&&s.setRel(l),void(void 0!==o&&s.setTitle(o))}let u=null,c=null;n.forEach((n=>{var s=n.getParent();if(s!==c&&null!==s&&(!t.$isElementNode(n)||n.isInline()))if(a(s))c=s,s.setURL(e),void 0!==r&&s.setTarget(r),null!==l&&c.setRel(l),void 0!==o&&c.setTitle(o);else if(s.is(u)||(u=s,c=i(e,{rel:l,target:r}),a(s)?null===n.getPreviousSibling()?s.insertBefore(c):s.insertAfter(c):n.insertBefore(c)),a(n)){if(!n.is(c)){if(null!==c){s=n.getChildren();for(let e=0;e<s.length;e++)c.append(s[e])}n.remove()}}else null!==c&&c.append(n)}))}},Z}();return X=e}var ue,ce,de,fe=se(),pe={};function he(){if(ue)return pe;ue=1;var e=oe(),t=le();function n(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function r(e){let t=1;for(e=e.getParent();null!=e;){if(y(e)){if(k(e=e.getParent())){t++,e=e.getParent();continue}n(40)}break}return t}function o(e){k(e=e.getParent())||n(40);let t=e;for(;null!==t;)t=t.getParent(),k(t)&&(e=t);return e}function i(e){let t=[];e=e.getChildren().filter(y);for(let n=0;n<e.length;n++){let r=e[n],o=r.getFirstChild();k(o)?t=t.concat(i(o)):t.push(r)}return t}function a(e){return y(e)&&k(e.getFirstChild())}function l(e){return b().append(e)}function s(e,t){return y(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function u(e,t){e.splice(e.getChildrenSize(),0,t)}function c(e,t){if(k(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),o=b();return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),u(o,e.getChildren()),k(n)&&t===n.getListType()?(n.append(o),e.remove(),k(r)&&t===r.getListType()&&(u(n,r.getChildren()),r.remove()),n):k(r)&&t===r.getListType()?(r.getFirstChildOrThrow().insertBefore(o),e.remove(),r):((t=w(t)).append(o),e.replace(t),f(t),t)}function d(e,t){var n=e.getLastChild();let r=t.getFirstChild();n&&r&&a(n)&&a(r)&&(d(n.getFirstChild(),r.getFirstChild()),r.remove()),0<(n=t.getChildren()).length&&(e.append(...n),f(e)),t.remove()}function f(e,t){if(void 0!==(e=t||e.getChildren()))for(t=0;t<e.length;t++){let a=e[t];if(y(a)){let e=a.getValue();var r=a,o=r.getParent(),i=1;for(null!=o&&(k(o)?i=o.getStart():n(44)),r=r.getPreviousSiblings(),o=0;o<r.length;o++){let e=r[o];y(e)&&!k(e.getFirstChild())&&i++}e!==i&&a.setValue(i)}}}function p(e){if(!a(e)){var t=e.getParent(),n=t?t.getParent():void 0,r=n?n.getParent():void 0;if(k(r)&&y(n)&&k(t)){var o=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(o))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{var l=t.getListType();o=b();let r=w(l);o.append(r),e.getPreviousSiblings().forEach((e=>r.append(e))),i=b(),l=w(l),i.append(l),u(l,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(i),n.replace(e)}f(t),f(r)}}}class h extends e.ElementNode{static getType(){return"listitem"}static clone(e){return new h(e.__value,e.__checked,e.__key)}constructor(e,t,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}createDOM(e){let t=document.createElement("li"),n=this.getParent();return k(n)&&"check"===n.getListType()&&g(t,this,null),t.value=this.__value,m(t,e.theme,this),t}updateDOM(e,t,n){let r=this.getParent();return k(r)&&"check"===r.getListType()&&g(t,this,e),t.value=this.__value,m(t,n.theme,this),!1}static transform(){return e=>{let t=e.getParent();k(t)&&(f(t),"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0))}}static importDOM(){return{li:()=>({conversion:v,priority:0})}}static importJSON(e){let t=b();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...t){for(let n=0;n<t.length;n++){let r=t[n];if(e.$isElementNode(r)&&this.canMergeWith(r)){let e=r.getChildren();this.append(...e),r.remove()}else super.append(r)}return this}replace(e,t){if(y(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!k(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=w(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&this.getChildren().forEach((t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){var r=this.getParentOrThrow();k(r)||n(39);var o=this.getNextSiblings();if(y(e))return t=super.insertAfter(e,t),k(e=e.getParentOrThrow())&&f(e),t;if(k(e)){for(r=e,o=(e=e.getChildren()).length-1;0<=o;o--)r=e[o],this.insertAfter(r,t);return r}if(r.insertAfter(e,t),0!==o.length){let n=w(r.getListType());o.forEach((e=>n.append(e))),e.insertAfter(n,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&a(t)&&a(n)?(d(t.getFirstChild(),n.getFirstChild()),n.remove()):n&&(k(e=n.getParent())&&f(e))}insertNewAfter(e,t=!0){return e=b(null==this.__checked&&void 0),this.insertAfter(e,t),e}collapseAtStart(t){let n=e.$createParagraphNode();this.getChildren().forEach((e=>n.append(e)));var r=this.getParentOrThrow(),o=r.getParentOrThrow();let i=y(o);return 1===r.getChildrenSize()?i?(r.remove(),o.select()):(r.insertBefore(n),r.remove(),r=t.anchor,t=t.focus,o=n.getKey(),"element"===r.type&&r.getNode().is(this)&&r.set(o,r.offset,"element"),"element"===t.type&&t.getNode().is(this)&&t.set(o,t.offset,"element")):(r.insertBefore(n),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(null===e)return this.getLatest().__indent;e=e.getParentOrThrow();let t=0;for(;y(e);)e=e.getParentOrThrow().getParentOrThrow(),t++;return t}setIndent(e){"number"==typeof e&&-1<e||n(117);let t=this.getIndent();for(;t!==e;)if(t<e){e:{var r=new Set;if(a(this)||r.has(this.getKey()))break e;let e=this.getParent();var o=this.getNextSibling(),i=this.getPreviousSibling();if(a(o)&&a(i)){if(k(i=i.getFirstChild())){i.append(this);var l=o.getFirstChild();k(l)&&(u(i,l=l.getChildren()),o.remove(),r.add(o.getKey())),f(i)}}else a(o)?k(o=o.getFirstChild())&&(null!==(r=o.getFirstChild())&&r.insertBefore(this),f(o)):a(i)?k(o=i.getFirstChild())&&(o.append(this),f(o)):k(e)&&(r=b(),l=w(e.getListType()),r.append(l),l.append(this),i?i.insertAfter(r):o?o.insertBefore(r):e.append(r),f(l));k(e)&&f(e)}t++}else p(this),t--;return this}insertBefore(e){if(y(e)){let e=this.getParentOrThrow();if(k(e)){f(e,this.getNextSiblings())}}return super.insertBefore(e)}canInsertAfter(e){return y(e)}canReplaceWith(e){return y(e)}canMergeWith(t){return e.$isParagraphNode(t)||y(t)}extractWithChild(t,n){if(!e.$isRangeSelection(n))return!1;t=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(t)&&this.isParentOf(r)&&this.getTextContent().length===n.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return w("bullet")}}function m(e,n,r){let o=[],i=[];var a=(n=n.list)?n.listitem:void 0;if(n&&n.nested)var l=n.nested.listitem;if(void 0!==a&&(a=a.split(" "),o.push(...a)),n){a=k(a=r.getParent())&&"check"===a.getListType();let e=r.getChecked();a&&!e||i.push(n.listitemUnchecked),a&&e||i.push(n.listitemChecked),a&&o.push(e?n.listitemChecked:n.listitemUnchecked)}void 0!==l&&(l=l.split(" "),r.getChildren().some((e=>k(e)))?o.push(...l):i.push(...l)),0<i.length&&t.removeClassNamesFromElement(e,...i),0<o.length&&t.addClassNamesToElement(e,...o)}function g(e,t,n){k(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}function v(e){return{node:b(e=t.isHTMLElement(e)&&"true"===e.getAttribute("aria-checked"))}}function b(t){return e.$applyNodeReplacement(new h(void 0,t))}function y(e){return e instanceof h}class x extends e.ElementNode{static getType(){return"list"}static clone(e){return new x(e.__listType||E[e.__tag],e.__start,e.__key)}constructor(e,t,n){super(n),this.__listType=e=E[e]||e,this.__tag="number"===e?"ol":"ul",this.__start=t}getTag(){return this.__tag}setListType(e){let t=this.getWritable();t.__listType=e,t.__tag="number"===e?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e){let t=document.createElement(this.__tag);return 1!==this.__start&&t.setAttribute("start",String(this.__start)),t.__lexicalListType=this.__listType,_(t,e.theme,this),t}updateDOM(e,t,n){return e.__tag!==this.__tag||(_(t,n.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:C,priority:0}),ul:()=>({conversion:C,priority:0})}}static importJSON(e){let t=w(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportDOM(e){return({element:e}=super.exportDOM(e)),e&&(1!==this.__start&&e.setAttribute("start",String(this.__start)),"check"===this.__listType&&e.setAttribute("__lexicalListType","check")),{element:e}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...t){for(let r=0;r<t.length;r++){var n=t[r];if(y(n))super.append(n);else{let t=b();k(n)?t.append(n):e.$isElementNode(n)?(n=e.$createTextNode(n.getTextContent()),t.append(n)):t.append(n),super.append(t)}}return f(this),this}extractWithChild(e){return y(e)}}function _(e,n,o){let i=[],a=[];var l=n.list;if(void 0!==l){let e=l[`${o.__tag}Depth`]||[],t=(n=r(o)-1)%e.length;var s=e[t];let u,c=l[o.__tag];if(void 0!==(l=l.nested)&&l.list&&(u=l.list),void 0!==c&&i.push(c),void 0!==s)for(s=s.split(" "),i.push(...s),s=0;s<e.length;s++)s!==t&&a.push(o.__tag+s);void 0!==u&&(o=u.split(" "),1<n?i.push(...o):a.push(...o))}0<a.length&&t.removeClassNamesFromElement(e,...a),0<i.length&&t.addClassNamesToElement(e,...i)}function S(e){let t=[];for(let r=0;r<e.length;r++){var n=e[r];y(n)?(t.push(n),1<(n=n.getChildren()).length&&n.forEach((e=>{k(e)&&t.push(l(e))}))):t.push(l(n))}return t}function C(e){let n=e.nodeName.toLowerCase(),r=null;return"ol"===n?r=w("number",e.start):"ul"===n&&(r=t.isHTMLElement(e)&&"check"===e.getAttribute("__lexicallisttype")?w("check"):w("bullet")),{after:S,node:r}}let E={ol:"number",ul:"bullet"};function w(t,n=1){return e.$applyNodeReplacement(new x(t,n))}function k(e){return e instanceof x}let R=e.createCommand("INSERT_UNORDERED_LIST_COMMAND"),T=e.createCommand("INSERT_ORDERED_LIST_COMMAND"),A=e.createCommand("INSERT_CHECK_LIST_COMMAND"),N=e.createCommand("REMOVE_LIST_COMMAND");return pe.$createListItemNode=b,pe.$createListNode=w,pe.$getListDepth=r,pe.$handleListInsertParagraph=function(){var t=e.$getSelection();if(!e.$isRangeSelection(t)||!t.isCollapsed())return!1;if(!y(t=t.anchor.getNode())||""!==t.getTextContent())return!1;var r=o(t),i=t.getParent();k(i)||n(40);let a,l=i.getParent();if(e.$isRootOrShadowRoot(l))a=e.$createParagraphNode(),r.insertAfter(a);else{if(!y(l))return!1;a=b(),l.insertAfter(a)}if(a.select(),0<(r=t.getNextSiblings()).length){let t=w(i.getListType());e.$isParagraphNode(a)?a.insertAfter(t):((i=b()).append(t),a.insertAfter(i)),r.forEach((e=>{e.remove(),t.append(e)}))}return function(e){for(;null==e.getNextSibling()&&null==e.getPreviousSibling();){let t=e.getParent();if(null==t||!y(e)&&!k(e))break;e=t}e.remove()}(t),!0},pe.$isListItemNode=y,pe.$isListNode=k,pe.INSERT_CHECK_LIST_COMMAND=A,pe.INSERT_ORDERED_LIST_COMMAND=T,pe.INSERT_UNORDERED_LIST_COMMAND=R,pe.ListItemNode=h,pe.ListNode=x,pe.REMOVE_LIST_COMMAND=N,pe.insertList=function(t,n){t.update((()=>{var t=e.$getSelection();if(e.$isRangeSelection(t)||e.DEPRECATED_$isGridSelection(t)){var r=t.getNodes(),o=(t=t.anchor.getNode()).getParent();if(s(t,r))r=w(n),e.$isRootOrShadowRoot(o)?(t.replace(r),o=b(),e.$isElementNode(t)&&(o.setFormat(t.getFormatType()),o.setIndent(t.getIndent())),r.append(o)):y(t)&&(u(r,(t=t.getParentOrThrow()).getChildren()),t.replace(r));else for(t=new Set,o=0;o<r.length;o++){var i=r[o];if(e.$isElementNode(i)&&i.isEmpty()&&!t.has(i.getKey()))c(i,n);else if(e.$isLeafNode(i))for(i=i.getParent();null!=i;){let r=i.getKey();if(k(i)){if(!t.has(r)){var a=w(n);u(a,i.getChildren()),i.replace(a),f(a),t.add(r)}break}if(a=i.getParent(),e.$isRootOrShadowRoot(a)&&!t.has(r)){t.add(r),c(i,n);break}i=a}}}}))},pe.removeList=function(n){n.update((()=>{let n=e.$getSelection();if(e.$isRangeSelection(n)){var r=new Set,a=n.getNodes(),l=n.anchor.getNode();if(s(l,a))r.add(o(l));else for(l=0;l<a.length;l++){var c=a[l];e.$isLeafNode(c)&&(null!=(c=t.$getNearestNodeOfType(c,h))&&r.add(o(c)))}for(let t of r){r=t,a=i(t);for(let t of a)u(a=e.$createParagraphNode(),t.getChildren()),r.insertAfter(a),r=a,t.__key===n.anchor.key&&n.anchor.set(a.getKey(),0,"element"),t.__key===n.focus.key&&n.focus.set(a.getKey(),0,"element"),t.remove();t.remove()}}}))},pe}function me(){if(de)return ce;de=1;const e=he();return ce=e}var ge,ve,be,ye,xe,_e,Se=me(),Ce={},Ee={};function we(){if(ge)return Ee;ge=1;var e=w();let t=e.createContext(null);return Ee.LexicalComposerContext=t,Ee.createLexicalComposerContext=function(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}},Ee.useLexicalComposerContext=function(){let n=e.useContext(t);return null==n&&function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),n},Ee}function ke(){if(be)return ve;be=1;const e=we();return ve=e}function Re(){if(ye)return Ce;ye=1;var e=ke(),t=oe(),n=w();let r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;var o=r?n.useLayoutEffect:n.useEffect;let i={tag:"history-merge"};return Ce.LexicalComposer=function({initialConfig:a,children:l}){let s=n.useMemo((()=>{const{theme:n,namespace:o,editor__DEPRECATED:l,nodes:s,onError:u,editorState:c}=a,d=e.createLexicalComposerContext(null,n);let f=l||null;if(null===f){const e=t.createEditor({editable:a.editable,namespace:o,nodes:s,onError:t=>u(t,e),theme:n});!function(e,n){if(null!==n)if(void 0===n)e.update((()=>{var n=t.$getRoot();if(n.isEmpty()){let o=t.$createParagraphNode();n.append(o),n=r?document.activeElement:null,(null!==t.$getSelection()||null!==n&&n===e.getRootElement())&&o.select()}}),i);else if(null!==n)switch(typeof n){case"string":let r=e.parseEditorState(n);e.setEditorState(r,i);break;case"object":e.setEditorState(n,i);break;case"function":e.update((()=>{t.$getRoot().isEmpty()&&n(e)}),i)}}(e,c),f=e}return[f,d]}),[]);return o((()=>{let e=a.editable,[t]=s;t.setEditable(void 0===e||e)}),[]),n.createElement(e.LexicalComposerContext.Provider,{value:s},l)},Ce}var Te,Ae,Ne,Le,Oe,Me,Pe=function(){if(_e)return xe;_e=1;const e=Re();return xe=e}(),Ie={},De={};function $e(){if(Te)return De;Te=1;var e=le(),t=oe();function n(e,n){let r=Date.now(),o=0;return(i,a,l,s,u,c)=>{let d=Date.now();if(c.has("historic"))return o=0,r=d,2;let f=function(e,n,r,o,i){if(null===e||0===r.size&&0===o.size&&!i)return 0;var a=n._selection,l=e._selection;if(i)return 1;if(!(t.$isRangeSelection(a)&&t.$isRangeSelection(l)&&l.isCollapsed()&&a.isCollapsed()))return 0;i=n._nodeMap;let s=[];for(let e of r)void 0!==(r=i.get(e))&&s.push(r);for(let[e,n]of o)n&&(void 0===(o=i.get(e))||t.$isRootNode(o)||s.push(o));return 0===s.length?0:1<s.length?(n=(o=n._nodeMap).get(a.anchor.key),l=o.get(l.anchor.key),n&&l&&!e._nodeMap.has(n.__key)&&t.$isTextNode(n)&&1===n.__text.length&&1===a.anchor.offset?2:0):(n=s[0],e=e._nodeMap.get(n.__key),t.$isTextNode(e)&&t.$isTextNode(n)&&e.__mode===n.__mode?(e=e.__text)===(n=n.__text)?0:(a=a.anchor,l=l.anchor,a.key!==l.key||"text"!==a.type?0:(a=a.offset,l=l.offset,1==(e=n.length-e.length)&&l===a-1?2:-1===e&&l===a+1?3:-1===e&&l===a?4:0)):0)}(i,a,s,u,e.isComposing()),p=(()=>{var p=null===l||l.editor===e,h=c.has("history-push");if(!h&&p&&c.has("history-merge"))return 0;if(null===i)return 1;var m=a._selection;if(!(0<s.size||0<u.size))return null!==m?0:2;if(!1===h&&0!==f&&f===o&&d<r+n&&p)return 0;if(1===s.size){{h=Array.from(s)[0],p=i._nodeMap.get(h),h=a._nodeMap.get(h),m=i._selection;let e=a._selection,n=!1;t.$isRangeSelection(m)&&t.$isRangeSelection(e)&&(n="element"===m.anchor.type&&"element"===m.focus.type&&"text"===e.anchor.type&&"text"===e.focus.type),p=!(n||!t.$isTextNode(p)||!t.$isTextNode(h))&&(p.__type===h.__type&&p.__text===h.__text&&p.__mode===h.__mode&&p.__detail===h.__detail&&p.__style===h.__style&&p.__format===h.__format&&p.__parent===h.__parent)}if(p)return 0}return 1})();return r=d,o=f,p}}return De.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},De.registerHistory=function(r,o,i){let a=n(r,i);i=({editorState:e,prevEditorState:n,dirtyLeaves:i,dirtyElements:l,tags:s})=>{const u=o.current,c=o.redoStack,d=o.undoStack,f=null===u?null:u.editorState;if(null===u||e!==f){if(1===(n=a(n,e,u,i,l,s)))0!==c.length&&(o.redoStack=[],r.dispatchCommand(t.CAN_REDO_COMMAND,!1)),null!==u&&(d.push({...u}),r.dispatchCommand(t.CAN_UNDO_COMMAND,!0));else if(2===n)return;o.current={editor:r,editorState:e}}};let l=e.mergeRegister(r.registerCommand(t.UNDO_COMMAND,(()=>{let e=o.redoStack,n=o.undoStack;if(0!==n.length){let i=o.current,a=n.pop();null!==i&&(e.push(i),r.dispatchCommand(t.CAN_REDO_COMMAND,!0)),0===n.length&&r.dispatchCommand(t.CAN_UNDO_COMMAND,!1),o.current=a||null,a&&a.editor.setEditorState(a.editorState,{tag:"historic"})}return!0}),t.COMMAND_PRIORITY_EDITOR),r.registerCommand(t.REDO_COMMAND,(()=>{let e=o.redoStack;var n=o.undoStack;if(0!==e.length){let i=o.current;null!==i&&(n.push(i),r.dispatchCommand(t.CAN_UNDO_COMMAND,!0)),n=e.pop(),0===e.length&&r.dispatchCommand(t.CAN_REDO_COMMAND,!1),o.current=n||null,n&&n.editor.setEditorState(n.editorState,{tag:"historic"})}return!0}),t.COMMAND_PRIORITY_EDITOR),r.registerCommand(t.CLEAR_EDITOR_COMMAND,(()=>(o.undoStack=[],o.redoStack=[],o.current=null,!1)),t.COMMAND_PRIORITY_EDITOR),r.registerCommand(t.CLEAR_HISTORY_COMMAND,(()=>(o.undoStack=[],o.redoStack=[],o.current=null,r.dispatchCommand(t.CAN_REDO_COMMAND,!1),r.dispatchCommand(t.CAN_UNDO_COMMAND,!1),!0)),t.COMMAND_PRIORITY_EDITOR),r.registerUpdateListener(i)),s=r.registerUpdateListener(i);return()=>{l(),s()}},De}function ze(){if(Le)return Ie;Le=1;var e=ke(),t=function(){if(Ne)return Ae;Ne=1;const e=$e();return Ae=e}(),n=w();return Ie.createEmptyHistoryState=t.createEmptyHistoryState,Ie.HistoryPlugin=function({externalHistoryState:r}){let[o]=e.useLexicalComposerContext();return function(e,r,o=1e3){let i=n.useMemo((()=>r||t.createEmptyHistoryState()),[r]);n.useEffect((()=>t.registerHistory(e,i,o)),[o,e,i])}(o,r),null},Ie}var Fe,Be,He,je=function(){if(Me)return Oe;Me=1;const e=ze();return Oe=e}(),We={};function Ge(){if(Fe)return We;Fe=1;var e=me(),t=ke(),n=w(),r=le(),o=oe();return We.ListPlugin=function(){let[i]=t.useLexicalComposerContext();return n.useEffect((()=>{if(!i.hasNodes([e.ListNode,e.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")}),[i]),function(t){n.useEffect((()=>r.mergeRegister(t.registerCommand(e.INSERT_ORDERED_LIST_COMMAND,(()=>(e.insertList(t,"number"),!0)),o.COMMAND_PRIORITY_LOW),t.registerCommand(e.INSERT_UNORDERED_LIST_COMMAND,(()=>(e.insertList(t,"bullet"),!0)),o.COMMAND_PRIORITY_LOW),t.registerCommand(e.REMOVE_LIST_COMMAND,(()=>(e.removeList(t),!0)),o.COMMAND_PRIORITY_LOW),t.registerCommand(o.INSERT_PARAGRAPH_COMMAND,(()=>!!e.$handleListInsertParagraph()),o.COMMAND_PRIORITY_LOW))),[t])}(i),null},We}var Ye,Ue,Ke,Ve=function(){if(He)return Be;He=1;const e=Ge();return Be=e}(),qe={};function Qe(){if(Ye)return qe;Ye=1;var e=ke(),t=le(),n=oe(),r=w();function o(e){return e.registerCommand(n.KEY_TAB_COMMAND,(r=>{let o=n.$getSelection();return!!n.$isRangeSelection(o)&&(r.preventDefault(),r=function(e){var r=e.getNodes();if(0<function(e,t){let n=[];for(let r=0;r<e.length;r++){let o=t(e[r]);null!==o&&n.push(o)}return n}(r,(e=>n.$isBlockElementNode(e)&&e.canIndent()?e:null)).length)return!0;if(r=e.anchor,r=(e=(e=e.focus).isBefore(r)?e:r).getNode(),(r=t.$getNearestBlockElementAncestorOrThrow(r)).canIndent()){r=r.getKey();let t=n.$createRangeSelection();if(t.anchor.set(r,0,"element"),t.focus.set(r,0,"element"),t=n.$normalizeSelection__EXPERIMENTAL(t),t.anchor.is(e))return!0}return!1}(o)?r.shiftKey?n.OUTDENT_CONTENT_COMMAND:n.INDENT_CONTENT_COMMAND:n.INSERT_TAB_COMMAND,e.dispatchCommand(r,void 0))}),n.COMMAND_PRIORITY_EDITOR)}return qe.TabIndentationPlugin=function(){let[t]=e.useLexicalComposerContext();return r.useEffect((()=>o(t))),null},qe.registerTabIndentation=o,qe}var Xe,Je,Ze,et,tt,nt,rt,ot,it,at=function(){if(Ke)return Ue;Ke=1;const e=Qe();return Ue=e}(),lt={},st={},ut={};function ct(){if(Ze)return Je;Ze=1;const e=function(){if(Xe)return ut;Xe=1;var e=ie(),t=oe();function n(r,o,i,a=null){let l=null==a||o.isSelected(a),s=t.$isElementNode(o)&&o.excludeFromCopy("html");var u=o;null!==a&&(u=e.$cloneWithProperties(o),u=t.$isTextNode(u)&&null!=a?e.$sliceSelectedTextNodeContent(a,u):u);let c=t.$isElementNode(u)?u.getChildren():[],{element:d,after:f}=u.exportDOM(r);if(!d)return!1;let p=document.createDocumentFragment();for(let e=0;e<c.length;e++){let i=c[e],s=n(r,i,p,a);!l&&t.$isElementNode(o)&&s&&o.extractWithChild(i,a,"html")&&(l=!0)}return l&&!s?(d.append(p),i.append(d),f&&(r=f.call(u,d))&&d.replaceWith(r)):i.append(p),l}let r=new Set(["STYLE","SCRIPT"]);function o(e,n,i=new Map,a){let l=[];if(r.has(e.nodeName))return l;let s=null;var u,{nodeName:c}=e,d=n._htmlConversions.get(c.toLowerCase());if(c=null,void 0!==d)for(u of d)null!==(d=u(e))&&(null===c||c.priority<d.priority)&&(c=d);if(c=(u=null!==c?c.conversion:null)?u(e):null,u=null,null!==c){if(u=c.after,d=c.node,s=Array.isArray(d)?d[d.length-1]:d,null!==s){for(var[,f]of i)if(s=f(s,a),!s)break;s&&l.push(...Array.isArray(d)?d:[s])}null!=c.forChild&&i.set(e.nodeName,c.forChild)}for(e=e.childNodes,a=[],f=0;f<e.length;f++)a.push(...o(e[f],n,new Map(i),s));return null!=u&&(a=u(a)),null==s?l=l.concat(a):t.$isElementNode(s)&&s.append(...a),l}return ut.$generateHtmlFromNodes=function(e,r){if("undefined"==typeof document||"undefined"==typeof window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let o=document.createElement("div"),i=t.$getRoot().getChildren();for(let t=0;t<i.length;t++)n(e,i[t],o,r);return o.innerHTML},ut.$generateNodesFromDOM=function(e,t){t=t.body?t.body.childNodes:[];let n=[];for(let a=0;a<t.length;a++){var i=t[a];r.has(i.nodeName)||null!==(i=o(i,e))&&(n=n.concat(i))}return n},ut}();return Je=e}function dt(){if(et)return st;et=1;var e=ct(),t=ie(),n=le(),r=oe();function o(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(t){let n=r.$getSelection();if(null==n)throw Error("Expected valid LexicalSelection");return r.$isRangeSelection(n)&&n.isCollapsed()||0===n.getNodes().length?"":e.$generateHtmlFromNodes(t,n)}function l(e){let t=r.$getSelection();if(null==t)throw Error("Expected valid LexicalSelection");return r.$isRangeSelection(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(c(e,t))}function s(e,t,i){(r.DEPRECATED_$isGridSelection(i)||null!==n.$findMatchingParent(i.anchor.getNode(),(e=>r.DEPRECATED_$isGridCellNode(e)))&&null!==n.$findMatchingParent(i.focus.getNode(),(e=>r.DEPRECATED_$isGridCellNode(e))))&&1===t.length&&r.DEPRECATED_$isGridNode(t[0])?function(e,t,i,a){1===e.length&&r.DEPRECATED_$isGridNode(e[0])||o(42);var l=e[0];e=l.getChildren(),i=l.getFirstChildOrThrow().getChildrenSize();var s=l.getChildrenSize(),u=n.$findMatchingParent(t.anchor.getNode(),(e=>r.DEPRECATED_$isGridCellNode(e)));t=(l=u&&n.$findMatchingParent(u,(e=>r.DEPRECATED_$isGridRowNode(e))))&&n.$findMatchingParent(l,(e=>r.DEPRECATED_$isGridNode(e))),r.DEPRECATED_$isGridCellNode(u)&&r.DEPRECATED_$isGridRowNode(l)&&r.DEPRECATED_$isGridNode(t)||o(43);var c=l.getIndexWithinParent(),d=Math.min(t.getChildrenSize()-1,c+s-1);let f,p;s=u.getIndexWithinParent(),u=Math.min(l.getChildrenSize()-1,s+i-1),i=Math.min(s,u),l=Math.min(c,d),s=Math.max(s,u),c=Math.max(c,d),d=t.getChildren(),u=0;for(let t=l;t<=c;t++){var h=d[t];r.DEPRECATED_$isGridRowNode(h)||o(24);var m=e[u];r.DEPRECATED_$isGridRowNode(m)||o(24),h=h.getChildren(),m=m.getChildren();let n=0;for(let e=i;e<=s;e++){let a=h[e];r.DEPRECATED_$isGridCellNode(a)||o(25);let u=m[n];r.DEPRECATED_$isGridCellNode(u)||o(25),t===l&&e===i?f=a.getKey():t===c&&e===s&&(p=a.getKey());let d=a.getChildren();u.getChildren().forEach((e=>{r.$isTextNode(e)&&r.$createParagraphNode().append(e),a.append(e)})),d.forEach((e=>e.remove())),n++}u++}f&&p&&(e=r.DEPRECATED_$createGridSelection(),e.set(t.getKey(),f,p),r.$setSelection(e),a.dispatchCommand(r.SELECTION_CHANGE_COMMAND,void 0))}(t,i,!1,e):function(e,t){let n=[],i=null;for(let t=0;t<e.length;t++){let o=e[t],a=r.$isLineBreakNode(o);if(a||r.$isDecoratorNode(o)&&o.isInline()||r.$isElementNode(o)&&o.isInline()||r.$isTextNode(o)||o.isParentRequired()){if(null===i&&(i=o.createParentElementNode(),n.push(i),a))continue;null!==i&&i.append(o)}else n.push(o),i=null}r.$isRangeSelection(t)?t.insertNodes(n):r.DEPRECATED_$isGridSelection(t)&&(e=t.anchor.getNode(),r.DEPRECATED_$isGridCellNode(e)||o(41),e.append(...n))}(t,i)}function u(e,n,i,a=[]){let l=null==n||i.isSelected(n),s=r.$isElementNode(i)&&i.excludeFromCopy("html");var c=i;if(null!==n){var d=t.$cloneWithProperties(i);c=d=r.$isTextNode(d)&&null!=n?t.$sliceSelectedTextNodeContent(n,d):d}let f=r.$isElementNode(c)?c.getChildren():[];var p=c;d=p.exportJSON();var h=p.constructor;d.type!==h.getType()&&o(58,h.name);let m=d.children;for(r.$isElementNode(p)&&(Array.isArray(m)||o(59,h.name)),r.$isTextNode(c)&&(0<(c=c.__text).length?d.text=c:l=!1),c=0;c<f.length;c++)h=u(e,n,p=f[c],d.children),!l&&r.$isElementNode(i)&&h&&i.extractWithChild(p,n,"clone")&&(l=!0);if(l&&!s)a.push(d);else if(Array.isArray(d.children))for(e=0;e<d.children.length;e++)a.push(d.children[e]);return l}function c(e,t){let n=[],o=r.$getRoot().getChildren();for(let r=0;r<o.length;r++)u(e,t,o[r],n);return{namespace:e._config.namespace,nodes:n}}function d(e){let n=[];for(let o=0;o<e.length;o++){let i=r.$parseSerializedNode(e[o]);r.$isTextNode(i)&&t.$addNodeStyle(i),n.push(i)}return n}let f=null;function p(e,t){var n=i?(e._window||window).getSelection():null;if(!n)return!1;var o=n.anchorNode;if(n=n.focusNode,null!==o&&null!==n&&!r.isSelectionWithinEditor(e,o,n))return!1;if(t.preventDefault(),t=t.clipboardData,o=r.$getSelection(),null===t||null===o)return!1;n=a(e),e=l(e);let s="";return null!==o&&(s=o.getTextContent()),null!==n&&t.setData("text/html",n),null!==e&&t.setData("application/x-lexical-editor",e),t.setData("text/plain",s),!0}return st.$generateJSONFromSelectedNodes=c,st.$generateNodesFromSerializedNodes=d,st.$getHtmlContent=a,st.$getLexicalContent=l,st.$insertDataTransferForPlainText=function(e,t){null!=(e=e.getData("text/plain")||e.getData("text/uri-list"))&&t.insertRawText(e)},st.$insertDataTransferForRichText=function(t,n,o){var i=t.getData("application/x-lexical-editor");if(i)try{let e=JSON.parse(i);if(e.namespace===o._config.namespace&&Array.isArray(e.nodes)){return s(o,d(e.nodes),n)}}catch(e){}if(i=t.getData("text/html"))try{var a=(new DOMParser).parseFromString(i,"text/html"),l=e.$generateNodesFromDOM(o,a);return s(o,l,n)}catch(e){}if(null!=(t=t.getData("text/plain")||t.getData("text/uri-list")))if(r.$isRangeSelection(n))for(o=(t=t.split(/(\r?\n|\t)/)).length,a=0;a<o;a++)"\n"===(l=t[a])||"\r\n"===l?n.insertParagraph():"\t"===l?n.insertNodes([r.$createTabNode()]):n.insertText(l);else n.insertRawText(t)},st.$insertGeneratedNodes=s,st.copyToClipboard=async function(e,t){if(null!==f)return!1;if(null!==t)return new Promise((n=>{e.update((()=>{n(p(e,t))}))}));var o=e.getRootElement();let a=null==e._window?window.document:e._window.document,l=i?(e._window||window).getSelection():null;if(null===o||null===l)return!1;let s=a.createElement("span");return s.style.cssText="position: fixed; top: -1000px;",s.append(a.createTextNode("#")),o.append(s),(o=new Range).setStart(s,0),o.setEnd(s,1),l.removeAllRanges(),l.addRange(o),new Promise((t=>{let o=e.registerCommand(r.COPY_COMMAND,(r=>(n.objectKlassEquals(r,ClipboardEvent)&&(o(),null!==f&&(window.clearTimeout(f),f=null),t(p(e,r))),!0)),r.COMMAND_PRIORITY_CRITICAL);f=window.setTimeout((()=>{o(),f=null,t(!1)}),50),a.execCommand("copy"),s.remove()}))},st}function ft(){if(rt)return lt;rt=1;var e=function(){if(nt)return tt;nt=1;const e=dt();return tt=e}(),t=ie(),n=le(),r=oe();function o(e,t){return void 0!==document.caretRangeFromPoint?null===(e=document.caretRangeFromPoint(e,t))?null:{node:e.startContainer,offset:e.startOffset}:"undefined"!==document.caretPositionFromPoint?null===(e=document.caretPositionFromPoint(e,t))?null:{node:e.offsetNode,offset:e.offset}:null}let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a=i&&"documentMode"in document?document.documentMode:null,l=!(!i||!("InputEvent"in window)||a)&&"getTargetRanges"in new window.InputEvent("input"),s=i&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),u=i&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c=i&&/^(?=.*Chrome).*/i.test(navigator.userAgent),d=i&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!c,f=r.createCommand("DRAG_DROP_PASTE_FILE");class p extends r.ElementNode{static getType(){return"quote"}static clone(e){return new p(e.__key)}constructor(e){super(e)}createDOM(e){let t=document.createElement("blockquote");return n.addClassNamesToElement(t,e.theme.quote),t}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:b,priority:0})}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}static importJSON(e){let t=h();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(e,t){e=r.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=r.$createParagraphNode();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}}function h(){return r.$applyNodeReplacement(new p)}class m extends r.ElementNode{static getType(){return"heading"}static clone(e){return new m(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}createDOM(e){let t=this.__tag,r=document.createElement(t);return void 0!==(e=e.theme.heading)&&n.addClassNamesToElement(r,e[t]),r}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:v,priority:0}),h2:()=>({conversion:v,priority:0}),h3:()=>({conversion:v,priority:0}),h4:()=>({conversion:v,priority:0}),h5:()=>({conversion:v,priority:0}),h6:()=>({conversion:v,priority:0}),p:e=>null!==(e=e.firstChild)&&g(e)?{conversion:()=>({node:null}),priority:3}:null,span:e=>g(e)?{conversion:()=>({node:y("h1")}),priority:3}:null}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}static importJSON(e){let t=y(e.tag);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(e,t=!0){e=0<(e=e?e.anchor.offset:0)&&e<this.getTextContentSize()?y(this.getTag()):r.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.isEmpty()?r.$createParagraphNode():y(this.getTag());return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}extractWithChild(){return!0}}function g(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function v(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=y(t),null!==e.style&&n.setFormat(e.style.textAlign)),{node:n}}function b(e){let t=h();return null!==e.style&&t.setFormat(e.style.textAlign),{node:t}}function y(e){return r.$applyNodeReplacement(new m(e))}function x(e){let t=null;if(e instanceof DragEvent?t=e.dataTransfer:e instanceof ClipboardEvent&&(t=e.clipboardData),null===t)return[!1,[],!1];var n=t.types;return e=n.includes("Files"),n=n.includes("text/html")||n.includes("text/plain"),[e,Array.from(t.files),n]}function _(e){var t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;let o=new Set;t=t.getNodes();for(let r=0;r<t.length;r++){var i=t[r],a=i.getKey();o.has(a)||(a=(i=n.$getNearestBlockElementAncestorOrThrow(i)).getKey(),i.canIndent()&&!o.has(a)&&(o.add(a),e(i)))}return 0<o.size}function S(e){return e=r.$getNearestNodeFromDOMNode(e),r.$isDecoratorNode(e)}return lt.$createHeadingNode=y,lt.$createQuoteNode=h,lt.$isHeadingNode=function(e){return e instanceof m},lt.$isQuoteNode=function(e){return e instanceof p},lt.DRAG_DROP_PASTE=f,lt.HeadingNode=m,lt.QuoteNode=p,lt.eventFiles=x,lt.registerRichText=function(i){return n.mergeRegister(i.registerCommand(r.CLICK_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isNodeSelection(e)&&(e.clear(),!0)}),0),i.registerCommand(r.DELETE_CHARACTER_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.deleteCharacter(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DELETE_WORD_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.deleteWord(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DELETE_LINE_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.deleteLine(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.CONTROLLED_TEXT_INSERTION_COMMAND,(t=>{const n=r.$getSelection();if("string"==typeof t)r.$isRangeSelection(n)?n.insertText(t):r.DEPRECATED_$isGridSelection(n);else{if(!r.$isRangeSelection(n)&&!r.DEPRECATED_$isGridSelection(n))return!1;const o=t.dataTransfer;null!=o?e.$insertDataTransferForRichText(o,n,i):r.$isRangeSelection(n)&&(t=t.data)&&n.insertText(t)}return!0}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.REMOVE_TEXT_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isRangeSelection(e)&&(e.removeText(),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.FORMAT_TEXT_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.formatText(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.FORMAT_ELEMENT_COMMAND,(e=>{var t=r.$getSelection();if(!r.$isRangeSelection(t)&&!r.$isNodeSelection(t))return!1;t=t.getNodes();for(const o of t)t=n.$findMatchingParent(o,(e=>r.$isElementNode(e)&&!e.isInline())),null!==t&&t.setFormat(e);return!0}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INSERT_LINE_BREAK_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.insertLineBreak(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INSERT_PARAGRAPH_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isRangeSelection(e)&&(e.insertParagraph(),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INSERT_TAB_COMMAND,(()=>(r.$insertNodes([r.$createTabNode()]),!0)),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INDENT_CONTENT_COMMAND,(()=>_((e=>{const t=e.getIndent();e.setIndent(t+1)}))),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.OUTDENT_CONTENT_COMMAND,(()=>_((e=>{const t=e.getIndent();0<t&&e.setIndent(t-1)}))),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_UP_COMMAND,(e=>{var t=r.$getSelection();if(r.$isNodeSelection(t)&&!S(e.target)){if(0<(e=t.getNodes()).length)return e[0].selectPrevious(),!0}else if(r.$isRangeSelection(t)&&(t=r.$getAdjacentNode(t.focus,!0),!e.shiftKey&&r.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline()))return t.selectPrevious(),e.preventDefault(),!0;return!1}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_DOWN_COMMAND,(e=>{var t=r.$getSelection();if(r.$isNodeSelection(t)){if(0<(e=t.getNodes()).length)return e[0].selectNext(0,0),!0}else if(r.$isRangeSelection(t)){let n=t.focus;if("root"===n.key&&n.offset===r.$getRoot().getChildrenSize())return e.preventDefault(),!0;if(t=r.$getAdjacentNode(t.focus,!1),!e.shiftKey&&r.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline())return t.selectNext(),e.preventDefault(),!0}return!1}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_LEFT_COMMAND,(e=>{const n=r.$getSelection();if(r.$isNodeSelection(n)){var o=n.getNodes();if(0<o.length)return e.preventDefault(),o[0].selectPrevious(),!0}return!!r.$isRangeSelection(n)&&(!!t.$shouldOverrideDefaultCharacterSelection(n,!0)&&(o=e.shiftKey,e.preventDefault(),t.$moveCharacter(n,o,!0),!0))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_RIGHT_COMMAND,(e=>{const n=r.$getSelection();if(r.$isNodeSelection(n)&&!S(e.target)){var o=n.getNodes();if(0<o.length)return e.preventDefault(),o[0].selectNext(0,0),!0}return!!r.$isRangeSelection(n)&&(o=e.shiftKey,!!t.$shouldOverrideDefaultCharacterSelection(n,!1)&&(e.preventDefault(),t.$moveCharacter(n,o,!1),!0))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_BACKSPACE_COMMAND,(e=>{if(S(e.target))return!1;const t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;e.preventDefault(),({anchor:e}=t);const o=e.getNode();return t.isCollapsed()&&0===e.offset&&!r.$isRootNode(o)&&0<n.$getNearestBlockElementAncestorOrThrow(o).getIndent()?i.dispatchCommand(r.OUTDENT_CONTENT_COMMAND,void 0):i.dispatchCommand(r.DELETE_CHARACTER_COMMAND,!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_DELETE_COMMAND,(e=>{if(S(e.target))return!1;const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(e.preventDefault(),i.dispatchCommand(r.DELETE_CHARACTER_COMMAND,!1))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ENTER_COMMAND,(e=>{const t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;if(null!==e){if((u||s||d)&&l)return!1;if(e.preventDefault(),e.shiftKey)return i.dispatchCommand(r.INSERT_LINE_BREAK_COMMAND,!1)}return i.dispatchCommand(r.INSERT_PARAGRAPH_COMMAND,void 0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ESCAPE_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isRangeSelection(e)&&(i.blur(),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DROP_COMMAND,(e=>{const[,t]=x(e);if(0<t.length){var n=o(e.clientX,e.clientY);if(null!==n){const{offset:e,node:o}=n;var a=r.$getNearestNodeFromDOMNode(o);if(null!==a){if(n=r.$createRangeSelection(),r.$isTextNode(a))n.anchor.set(a.getKey(),e,"text"),n.focus.set(a.getKey(),e,"text");else{const e=a.getParentOrThrow().getKey();a=a.getIndexWithinParent()+1,n.anchor.set(e,a,"element"),n.focus.set(e,a,"element")}n=r.$normalizeSelection__EXPERIMENTAL(n),r.$setSelection(n)}i.dispatchCommand(f,t)}return e.preventDefault(),!0}return e=r.$getSelection(),!!r.$isRangeSelection(e)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DRAGSTART_COMMAND,(e=>{[e]=x(e);const t=r.$getSelection();return!(e&&!r.$isRangeSelection(t))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DRAGOVER_COMMAND,(e=>{var[t]=x(e);const n=r.$getSelection();return!(t&&!r.$isRangeSelection(n))&&(null!==(t=o(e.clientX,e.clientY))&&(t=r.$getNearestNodeFromDOMNode(t.node),r.$isDecoratorNode(t)&&e.preventDefault()),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.COPY_COMMAND,(t=>(e.copyToClipboard(i,n.objectKlassEquals(t,ClipboardEvent)?t:null),!0)),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.CUT_COMMAND,(t=>(async function(t,o){await e.copyToClipboard(o,n.objectKlassEquals(t,ClipboardEvent)?t:null),o.update((()=>{let e=r.$getSelection();r.$isRangeSelection(e)?e.removeText():r.$isNodeSelection(e)&&e.getNodes().forEach((e=>e.remove()))}))}(t,i),!0)),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.PASTE_COMMAND,(t=>{const[,n,o]=x(t);if(0<n.length&&!o)return i.dispatchCommand(f,n),!0;if(r.isSelectionCapturedInDecoratorInput(t.target))return!1;const a=r.$getSelection();return!(!r.$isRangeSelection(a)&&!r.DEPRECATED_$isGridSelection(a))&&(function(t,n){t.preventDefault(),n.update((()=>{let o=r.$getSelection(),i=t instanceof InputEvent||t instanceof KeyboardEvent?null:t.clipboardData;null!=i&&(r.$isRangeSelection(o)||r.DEPRECATED_$isGridSelection(o))&&e.$insertDataTransferForRichText(i,o,n)}),{tag:"paste"})}(t,i),!0)}),r.COMMAND_PRIORITY_EDITOR))},lt}function pt(){if(it)return ot;it=1;const e=ft();return ot=e}var ht,mt,gt,vt=pt(),bt={};function yt(){if(ht)return bt;ht=1;var e=se(),t=ke(),n=le(),r=oe(),o=w();function i(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}let a=/[.,;\s]/;function l(e){var t;return e=e.getPreviousSibling(),r.$isElementNode(e)&&(e=e.getLastDescendant()),!(t=null===e||r.$isLineBreakNode(e))&&(t=r.$isTextNode(e))&&(e=e.getTextContent(),t=a.test(e[e.length-1])),t}function s(e){return e=e.getNextSibling(),r.$isElementNode(e)&&(e=e.getFirstDescendant()),null===e||r.$isLineBreakNode(e)||r.$isTextNode(e)&&a.test(e.getTextContent()[0])}function u(e,t,n){var o=e.getChildren();let a=o.length;for(let t=0;t<a;t++){let i=o[t];if(!r.$isTextNode(i)||!i.isSimpleText())return c(e),void n(null,e.getURL())}null===(t=i(o=e.getTextContent(),t))||t.text!==o?(c(e),n(null,e.getURL())):l(e)&&s(e)?((o=e.getURL())!==t.url&&(e.setURL(t.url),n(t.url,o)),t.attributes&&((o=e.getRel())!==t.attributes.rel&&(e.setRel(t.attributes.rel||null),n(t.attributes.rel||null,o)),(o=e.getTarget())!==t.attributes.target&&(e.setTarget(t.attributes.target||null),n(t.attributes.target||null,o)))):(c(e),n(null,e.getURL()))}function c(e){let t=e.getChildren();var n=t.length;for(--n;0<=n;n--)e.insertAfter(t[n]);return e.remove(),t.map((e=>e.getLatest()))}function d(t,d,f){o.useEffect((()=>{t.hasNodes([e.AutoLinkNode])||function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);let o=(e,t)=>{f&&f(e,t)};return n.mergeRegister(t.registerNodeTransform(r.TextNode,(t=>{var n=t.getParentOrThrow(),p=t.getPreviousSibling();if(e.$isAutoLinkNode(n))u(n,d,o);else if(!e.$isLinkNode(n)){if(t.isSimpleText()&&(a.test(t.getTextContent()[0])||!e.$isAutoLinkNode(p))){p=n=t.getTextContent();let o=0,u=t;for(var h;(h=i(p,d))&&null!==h;){let i=h.index,c=h.length,d=i+c;var m=o+i,g=o+d,v=n,b=t;if((0<m?a.test(v[m-1]):l(b))&&(g<v.length?a.test(v[g]):s(b))){var y=void 0;0===o+i?[y,u]=u.splitText(o+c):[,y,u]=u.splitText(o+i,o+i+c),m=e.$createAutoLinkNode(h.url,h.attributes),(g=r.$createTextNode(h.text)).setFormat(y.getFormat()),g.setDetail(y.getDetail()),m.append(g),y.replace(m),f&&f(h.url,null),o=0}else o+=d;p=p.substring(d)}}n=t.getPreviousSibling(),h=t.getNextSibling(),y=t.getTextContent(),e.$isAutoLinkNode(n)&&!a.test(y[0])&&(n.append(t),u(n,d,o),t=n.getURL(),f&&f(null,t)),e.$isAutoLinkNode(h)&&!a.test(y[y.length-1])&&(c(h),u(h,d,o),t=h.getURL(),f&&f(null,t))}})))}),[t,d,f])}return bt.AutoLinkPlugin=function({matchers:e,onChange:n}){let[r]=t.useLexicalComposerContext();return d(r,e,n),null},bt.createLinkMatcherWithRegExp=function(e,t=e=>e){return n=>{let r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(n)}}},bt}var xt,_t,St,Ct,Et=function(){if(gt)return mt;gt=1;const e=yt();return mt=e}(),wt=ke();function kt(){if(_t)return xt;_t=1;var e=ke(),t=w(),n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function r(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}return xt=function(){return function(r){let[o]=e.useLexicalComposerContext(),i=t.useMemo((()=>r(o)),[o,r]),a=t.useRef(i.initialValueFn()),[l,s]=t.useState(a.current);return n((()=>{let{initialValueFn:e,subscribe:t}=i,n=e();return a.current!==n&&(a.current=n,s(n)),t((e=>{a.current=e,s(e)}))}),[i,r]),l}(r)},xt}function Rt(){if(Ct)return St;Ct=1;const e=kt();return St=e}var Tt=m(Rt()),At=le(),Nt=oe(),Lt=ie();const Ot={black:"#000",white:"#fff"},Mt="#e57373",Pt="#ef5350",It="#f44336",Dt="#d32f2f",$t="#c62828",zt="#f3e5f5",Ft="#ce93d8",Bt="#ba68c8",Ht="#ab47bc",jt="#9c27b0",Wt="#7b1fa2",Gt="#e3f2fd",Yt="#90caf9",Ut="#42a5f5",Kt="#1976d2",Vt="#1565c0",qt="#4fc3f7",Qt="#29b6f6",Xt="#03a9f4",Jt="#0288d1",Zt="#01579b",en="#81c784",tn="#66bb6a",nn="#4caf50",rn="#388e3c",on="#2e7d32",an="#1b5e20",ln="#ffb74d",sn="#ffa726",un="#ff9800",cn="#f57c00",dn="#e65100",fn={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"};function pn(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var hn=Object.freeze({__proto__:null,default:pn}),mn="$$material";function gn(){return gn=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},gn.apply(null,arguments)}function vn(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var bn=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?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=void 0!==e.speedy&&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(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n,this.isSpeedy){var r=function(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]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),yn="-ms-",xn="-moz-",_n="-webkit-",Sn="comm",Cn="rule",En="decl",wn="@keyframes",kn=Math.abs,Rn=String.fromCharCode,Tn=Object.assign;function An(e){return e.trim()}function Nn(e,t,n){return e.replace(t,n)}function Ln(e,t){return e.indexOf(t)}function On(e,t){return 0|e.charCodeAt(t)}function Mn(e,t,n){return e.slice(t,n)}function Pn(e){return e.length}function In(e){return e.length}function Dn(e,t){return t.push(e),e}var $n=1,zn=1,Fn=0,Bn=0,Hn=0,jn="";function Wn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:$n,column:zn,length:a,return:""}}function Gn(e,t){return Tn(Wn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Yn(){return Hn=Bn>0?On(jn,--Bn):0,zn--,10===Hn&&(zn=1,$n--),Hn}function Un(){return Hn=Bn<Fn?On(jn,Bn++):0,zn++,10===Hn&&(zn=1,$n++),Hn}function Kn(){return On(jn,Bn)}function Vn(){return Bn}function qn(e,t){return Mn(jn,e,t)}function Qn(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 Xn(e){return $n=zn=1,Fn=Pn(jn=e),Bn=0,[]}function Jn(e){return jn="",e}function Zn(e){return An(qn(Bn-1,nr(91===e?e+2:40===e?e+1:e)))}function er(e){for(;(Hn=Kn())&&Hn<33;)Un();return Qn(e)>2||Qn(Hn)>3?"":" "}function tr(e,t){for(;--t&&Un()&&!(Hn<48||Hn>102||Hn>57&&Hn<65||Hn>70&&Hn<97););return qn(e,Vn()+(t<6&&32==Kn()&&32==Un()))}function nr(e){for(;Un();)switch(Hn){case e:return Bn;case 34:case 39:34!==e&&39!==e&&nr(Hn);break;case 40:41===e&&nr(e);break;case 92:Un()}return Bn}function rr(e,t){for(;Un()&&e+Hn!==57&&(e+Hn!==84||47!==Kn()););return"/*"+qn(t,Bn-1)+"*"+Rn(47===e?e:Un())}function or(e){for(;!Qn(Kn());)Un();return qn(e,Bn)}function ir(e){return Jn(ar("",null,null,null,[""],e=Xn(e),0,[0],e))}function ar(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,_=i,S=r,C=y;g;)switch(h=b,b=Un()){case 40:if(108!=h&&58==On(C,d-1)){-1!=Ln(C+=Nn(Zn(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=Zn(b);break;case 9:case 10:case 13:case 32:C+=er(h);break;case 92:C+=tr(Vn()-1,7);continue;case 47:switch(Kn()){case 42:case 47:Dn(sr(rr(Un(),Vn()),t,n),s);break;default:C+="/"}break;case 123*m:l[u++]=Pn(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=Nn(C,/\f/g,"")),p>0&&Pn(C)-d&&Dn(p>32?ur(C+";",r,n,d-1):ur(Nn(C," ","")+";",r,n,d-2),s);break;case 59:C+=";";default:if(Dn(S=lr(C,t,n,u,c,o,l,y,x=[],_=[],d),i),123===b)if(0===c)ar(C,t,S,S,x,i,d,l,_);else switch(99===f&&110===On(C,3)?100:f){case 100:case 108:case 109:case 115:ar(e,S,S,r&&Dn(lr(e,S,S,0,0,o,l,y,o,x=[],d),_),o,_,d,l,r?x:_);break;default:ar(C,S,S,S,[""],_,0,l,_)}}u=c=p=0,m=v=1,y=C="",d=a;break;case 58:d=1+Pn(C),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Yn())continue;switch(C+=Rn(b),b*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Pn(C)-1)*v,v=1;break;case 64:45===Kn()&&(C+=Zn(Un())),f=Kn(),c=d=Pn(y=C+=or(Vn())),b++;break;case 45:45===h&&2==Pn(C)&&(m=0)}}return i}function lr(e,t,n,r,o,i,a,l,s,u,c){for(var d=o-1,f=0===o?i:[""],p=In(f),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Mn(e,d+1,d=kn(m=a[h])),y=e;v<p;++v)(y=An(m>0?f[v]+" "+b:Nn(b,/&\f/g,f[v])))&&(s[g++]=y);return Wn(e,t,n,0===o?Cn:l,s,u,c)}function sr(e,t,n){return Wn(e,t,n,Sn,Rn(Hn),Mn(e,2,-2),0)}function ur(e,t,n,r){return Wn(e,t,n,En,Mn(e,0,r),Mn(e,r+1,-1),r)}function cr(e,t){for(var n="",r=In(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function dr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case En:return e.return=e.return||e.value;case Sn:return"";case wn:return e.return=e.value+"{"+cr(e.children,r)+"}";case Cn:e.value=e.props.join(",")}return Pn(n=cr(e.children,r))?e.return=e.value+"{"+n+"}":""}function fr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pr=function(e,t,n){for(var r=0,o=0;r=o,o=Kn(),38===r&&12===o&&(t[n]=1),!Qn(o);)Un();return qn(e,Bn)},hr=function(e,t){return Jn(function(e,t){var n=-1,r=44;do{switch(Qn(r)){case 0:38===r&&12===Kn()&&(t[n]=1),e[n]+=pr(Bn-1,t,n);break;case 2:e[n]+=Zn(r);break;case 4:if(44===r){e[++n]=58===Kn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Rn(r)}}while(r=Un());return e}(Xn(e),t))},mr=new WeakMap,gr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||mr.get(n))&&!r){mr.set(e,!0);for(var o=[],i=hr(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},vr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},br=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},yr=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},xr=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},_r=function(e,t,n){yr(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),xr(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!yr(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),xr(e)))};function Sr(e,t){switch(function(e,t){return 45^On(e,0)?(((t<<2^On(e,0))<<2^On(e,1))<<2^On(e,2))<<2^On(e,3):0}(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+xn+e+yn+e+e;case 6828:case 4268:return _n+e+yn+e+e;case 6165:return _n+e+yn+"flex-"+e+e;case 5187:return _n+e+Nn(e,/(\w+).+(:[^]+)/,_n+"box-$1$2"+yn+"flex-$1$2")+e;case 5443:return _n+e+yn+"flex-item-"+Nn(e,/flex-|-self/,"")+e;case 4675:return _n+e+yn+"flex-line-pack"+Nn(e,/align-content|flex-|-self/,"")+e;case 5548:return _n+e+yn+Nn(e,"shrink","negative")+e;case 5292:return _n+e+yn+Nn(e,"basis","preferred-size")+e;case 6060:return _n+"box-"+Nn(e,"-grow","")+_n+e+yn+Nn(e,"grow","positive")+e;case 4554:return _n+Nn(e,/([^-])(transform)/g,"$1"+_n+"$2")+e;case 6187:return Nn(Nn(Nn(e,/(zoom-|grab)/,_n+"$1"),/(image-set)/,_n+"$1"),e,"")+e;case 5495:case 3959:return Nn(e,/(image-set\([^]*)/,_n+"$1$`$1");case 4968:return Nn(Nn(e,/(.+:)(flex-)?(.*)/,_n+"box-pack:$3"+yn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_n+e+e;case 4095:case 3583:case 4068:case 2532:return Nn(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(Pn(e)-1-t>6)switch(On(e,t+1)){case 109:if(45!==On(e,t+4))break;case 102:return Nn(e,/(.+:)(.+)-([^]+)/,"$1"+_n+"$2-$3$1"+xn+(108==On(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ln(e,"stretch")?Sr(Nn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==On(e,t+1))break;case 6444:switch(On(e,Pn(e)-3-(~Ln(e,"!important")&&10))){case 107:return Nn(e,":",":"+_n)+e;case 101:return Nn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_n+(45===On(e,14)?"inline-":"")+"box$3$1"+_n+"$2$3$1"+yn+"$2box$3")+e}break;case 5936:switch(On(e,t+11)){case 114:return _n+e+yn+Nn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _n+e+yn+Nn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _n+e+yn+Nn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _n+e+yn+e+e}return e}var Cr,Er=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case En:e.return=Sr(e.value,e.length);break;case wn:return cr([Gn(e,{value:Nn(e.value,"@","@"+_n)})],r);case Cn:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cr([Gn(e,{props:[Nn(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return cr([Gn(e,{props:[Nn(t,/:(plac\w+)/,":"+_n+"input-$1")]}),Gn(e,{props:[Nn(t,/:(plac\w+)/,":-moz-$1")]}),Gn(e,{props:[Nn(t,/:(plac\w+)/,yn+"input-$1")]})],r)}return""}))}}],wr=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;Cr=function(e){var t=e.match(wr);if(t)return t[t.length-1]};var kr,Rr,Tr,Ar,Nr=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Er;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},l=[];o=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++)a[t[n]]=!0;l.push(e)}));var s=[gr,vr];s.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:r,a=i.length-1;a>=0;a--){var l=i[a];if(l.line<t.line)break;if(l.column<t.column){if(br(l))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return f.compat}}),_r);var u,c=[dr,function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==Sn&&u.insert(e.value+"{}"))}],d=function(e){var t=In(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(s.concat(r,c));i=function(e,t,n,r){if(u=n,Cr){var o=Cr(t.styles);o&&(u={insert:function(e){n.insert(e+o)}})}!function(e){cr(ir(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new bn({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(l),f},Lr={exports:{}},Or={};function Mr(){return Rr||(Rr=1,Lr.exports=function(){if(kr)return Or;kr=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case s:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}function x(e){return y(e)===u}return Or.AsyncMode=s,Or.ConcurrentMode=u,Or.ContextConsumer=l,Or.ContextProvider=a,Or.Element=t,Or.ForwardRef=c,Or.Fragment=r,Or.Lazy=h,Or.Memo=p,Or.Portal=n,Or.Profiler=i,Or.StrictMode=o,Or.Suspense=d,Or.isAsyncMode=function(e){return x(e)||y(e)===s},Or.isConcurrentMode=x,Or.isContextConsumer=function(e){return y(e)===l},Or.isContextProvider=function(e){return y(e)===a},Or.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Or.isForwardRef=function(e){return y(e)===c},Or.isFragment=function(e){return y(e)===r},Or.isLazy=function(e){return y(e)===h},Or.isMemo=function(e){return y(e)===p},Or.isPortal=function(e){return y(e)===n},Or.isProfiler=function(e){return y(e)===i},Or.isStrictMode=function(e){return y(e)===o},Or.isSuspense=function(e){return y(e)===d},Or.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},Or.typeOf=y,Or}()),Lr.exports}var Pr=function(){if(Ar)return Tr;Ar=1;var e=Mr(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,l=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return Tr=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=l(r);s&&(p=p.concat(s(r)));for(var h=i(t),m=i(r),g=0;g<p.length;++g){var v=p[g];if(!(n[v]||o&&o[v]||m&&m[v]||h&&h[v])){var b=u(r,v);try{a(t,v,b)}catch(e){}}}}return t},Tr}(),Ir=m(Pr);function Dr(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var $r=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},zr=function(e,t,n){$r(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Fr={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},Br="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Hr="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",jr=/[A-Z]|^ms/g,Wr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gr=function(e){return 45===e.charCodeAt(1)},Yr=function(e){return null!=e&&"boolean"!=typeof e},Ur=fr((function(e){return Gr(e)?e:e.replace(jr,"-$&").toLowerCase()})),Kr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Wr,(function(e,t,n){return no={name:t,styles:n,next:no},t}))}return 1===Fr[e]||Gr(e)||"number"!=typeof t||0===t?t:t+"px"},Vr=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,qr=["normal","none","initial","inherit","unset"],Qr=Kr,Xr=/^-ms-/,Jr=/-(.)/g,Zr={};Kr=function(e,t){if("content"===e&&("string"!=typeof t||-1===qr.indexOf(t)&&!Vr.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Qr(e,t);return""===n||Gr(e)||-1===e.indexOf("-")||void 0!==Zr[e]||(Zr[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Xr,"ms-").replace(Jr,(function(e,t){return t.toUpperCase()}))+"?")),n};var eo="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function to(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(r))throw new Error(eo);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return no={name:o.name,styles:o.styles,next:no},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)no={name:a.name,styles:a.styles,next:no},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=to(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":Yr(l)&&(r+=Ur(i)+":"+Kr(i,l)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(eo);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=to(e,t,a);switch(i){case"animation":case"animationName":r+=Ur(i)+":"+s+";";break;default:"undefined"===i&&console.error(Hr),r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)Yr(a[u])&&(r+=Ur(i)+":"+Kr(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=no,s=n(e);return no=l,to(e,t,s)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var u=[],c=n.replace(Wr,(function(e,t,n){var r="animation"+u.length;return u.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}var d=n;if(null==t)return d;var f=t[d];return void 0!==f?f:d}var no,ro=/label:\s*([^\s;{]+)\s*(;|$)/g;function oo(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";no=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=to(n,t,i);else{var a=i;void 0===a[0]&&console.error(Br),o+=a[0]}for(var l=1;l<e.length;l++)if(o+=to(n,t,e[l]),r){var s=i;void 0===s[l]&&console.error(Br),o+=s[l]}ro.lastIndex=0;for(var u,c="";null!==(u=ro.exec(o));)c+="-"+u[1];var d=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:d,styles:o,next:no,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var io=!!F.useInsertionEffect&&F.useInsertionEffect,ao=io||function(e){return e()},lo=io||$.useLayoutEffect,so=$.createContext("undefined"!=typeof HTMLElement?Nr({key:"css"}):null);so.displayName="EmotionCacheContext";var uo=so.Provider,co=function(e){return $.forwardRef((function(t,n){var r=$.useContext(so);return e(t,r,n)}))},fo=$.createContext({});fo.displayName="EmotionThemeContext";var po={}.hasOwnProperty,ho=function(e){var t=e.split(".");return t[t.length-1]},mo=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?ho(t[1]):void 0},go=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),vo=function(e){return e.replace(/\$/g,"-")},bo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yo="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",xo=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)po.call(t,r)&&(n[r]=t[r]);if(n[bo]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=mo(t[n]);if(r){if(go.has(r))break;if(/^[A-Z]/.test(r))return vo(r)}}}((new Error).stack);o&&(n[yo]=o)}return n},_o=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return $r(t,n,r),ao((function(){return zr(t,n,r)})),null},So=co((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[bo],i=[r],a="";"string"==typeof e.className?a=Dr(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=oo(i,void 0,$.useContext(fo));if(-1===l.name.indexOf("-")){var s=e[yo];s&&(l=oo([l,"label:"+s+";"]))}a+=t.key+"-"+l.name;var u={};for(var c in e)po.call(e,c)&&"css"!==c&&c!==bo&&c!==yo&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),$.createElement($.Fragment,null,$.createElement(_o,{cache:t,serialized:l,isStringTag:"string"==typeof o}),$.createElement(o,u))}));So.displayName="EmotionCssPropInternal";var Co,Eo,wo=So,ko=function(e,t){var n=arguments;if(null==t||!po.call(t,"css"))return $.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=wo,o[1]=xo(e,t);for(var i=2;i<r;i++)o[i]=n[i];return $.createElement.apply(null,o)};Co=ko||(ko={}),Eo||(Eo=Co.JSX||(Co.JSX={}));var Ro=!1,To=co((function(e,t){!Ro&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Ro=!0);var n=oo([e.styles],void 0,$.useContext(fo)),r=$.useRef();return lo((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),lo((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&zr(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function Ao(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return oo(t)}function No(){var e=Ao.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_"}}}To.displayName="EmotionGlobal";var Lo=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var l in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var Oo=function(e){var t=e.cache,n=e.serializedArr;return ao((function(){for(var e=0;e<n.length;e++)zr(t,n[e],!1)})),null},Mo=co((function(e,t){var n=!1,r=[],o=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=oo(o,t.registered);return r.push(a),$r(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=Dr(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,Lo(r))},theme:$.useContext(fo)},a=e.children(i);return n=!0,$.createElement($.Fragment,null,$.createElement(Oo,{cache:t,serializedArr:r}),a)}));Mo.displayName="EmotionClassNames";var Po="undefined"!=typeof document,Io="undefined"!=typeof jest||"undefined"!=typeof vi;if(Po&&!Io){var Do="undefined"!=typeof globalThis?globalThis:Po?window:global,$o="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";Do[$o]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Do[$o]=!0}var zo=/^((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|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)-.*))$/,Fo=fr((function(e){return zo.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Bo=function(e){return"theme"!==e},Ho=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Fo:Bo},jo=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Wo="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Go=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return $r(t,n,r),ao((function(){return zr(t,n,r)})),null},Yo=function e(t,n){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=jo(t,n,i),s=l||Ho(a),u=!s("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];void 0===f[0]&&console.error(Wo),d.push(f[0]);for(var p=c.length,h=1;h<p;h++)void 0===f[h]&&console.error(Wo),d.push(c[h],f[h])}var m=co((function(e,t,n){var r=u&&e.as||a,i="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=$.useContext(fo)}"string"==typeof e.className?i=Dr(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=oo(d.concat(c),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=u&&void 0===l?Ho(r):s,g={};for(var v in e)u&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),$.createElement($.Fragment,null,$.createElement(Go,{cache:t,serialized:h,isStringTag:"string"==typeof r}),$.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,gn({},n,r,{shouldForwardProp:jo(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["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"].forEach((function(e){Yo[e]=Yo(e)}));var Uo,Ko,Vo,qo,Qo,Xo={exports:{}};function Jo(){if(Ko)return Uo;Ko=1;return Uo="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Zo(){if(qo)return Vo;qo=1;var e=Jo();function t(){}function n(){}return n.resetWarningCache=t,Vo=function(){function r(t,n,r,o,i,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function ei(){return Qo||(Qo=1,Xo.exports=Zo()()),Xo.exports}var ti,ni,ri=m(ei()),oi={exports:{}},ii={};var ai=(ni||(ni=1,oi.exports=function(){if(ti)return ii;ti=1;var e=w(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var l,s={},u=null,c=null;for(l in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,l)&&!i.hasOwnProperty(l)&&(s[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===s[l]&&(s[l]=n[l]);return{$$typeof:t,type:e,key:u,ref:c,props:s,_owner:o.current}}return ii.Fragment=n,ii.jsx=a,ii.jsxs=a,ii}()),oi.exports);const li=new Map;function si(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return ai.jsx(To,{styles:r})}
16
+ */function P(){if(A)return _;A=1;var e=C(),t=O();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function f(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!l.call(d,e)||!l.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),z=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var D,j=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var B=!1;function $(e,t){if(!e||B)return"";B=!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()}}),"object"==typeof Reflect&&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&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function H(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=$(e.type,!1);case 11:return e=$(e.type.render,!1);case 1:return e=$(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case b:return"Portal";case k:return"Profiler";case w:return"StrictMode";case R:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function U(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=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===w?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.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]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function Z(e,t){X(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:K(r)}}function ae(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(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 ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.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&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=j({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 ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 xe=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,ke=null,Se=null;function Ce(e){if(e=xo(e)){if("function"!=typeof we)throw Error(n(280));var t=e.stateNode;t&&(t=wo(t),we(e.stateNode,e.type,t))}}function Ee(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Te(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ae(e,t){return e(t)}function Re(){}var Le=!1;function Ne(e,t,n){if(Le)return e(t,n);Le=!0;try{return Ae(e,t,n)}finally{Le=!1,(null!==ke||null!==Se)&&(Re(),Te())}}function Me(e,t){var r=e.stateNode;if(null===r)return null;var o=wo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Oe=!1;if(s)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(e){Oe=!1}function ze(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ie=!1,De=null,je=!1,Fe=null,Be={onError:function(e){Ie=!0,De=e}};function $e(e,t,n,r,o,i,a,s,l){Ie=!1,De=null,ze.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ue(e){if(He(e)!==e)throw Error(n(188))}function Ke(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return Ue(i),e;if(a===o)return Ue(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,o=a;break}if(l===o){s=!0,o=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,o=i;break}if(l===o){s=!0,o=a,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ye=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Je=t.unstable_requestPaint,Qe=t.unstable_now,Xe=t.unstable_getCurrentPriorityLevel,Ze=t.unstable_ImmediatePriority,et=t.unstable_UserBlockingPriority,tt=t.unstable_NormalPriority,nt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(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;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,wt,kt,St,Ct,Et=!1,Tt=[],At=null,Rt=null,Lt=null,Nt=new Map,Mt=new Map,Ot=[],Pt="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 zt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Lt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function It(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=bo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Ct(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Ft(e,t,n){jt(e)&&n.delete(t)}function Bt(){Et=!1,null!==At&&jt(At)&&(At=null),null!==Rt&&jt(Rt)&&(Rt=null),null!==Lt&&jt(Lt)&&(Lt=null),Nt.forEach(Ft),Mt.forEach(Ft)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return $t(t,e)}if(0<Tt.length){$t(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&$t(At,e),null!==Rt&&$t(Rt,e),null!==Lt&&$t(Lt,e),Nt.forEach(t),Mt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Dt(n),null===n.blockedOn&&Ot.shift()}var Wt=v.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=1,Yt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Gt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=4,Yt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Yt(e,t,n,r){if(Ut){var o=qt(e,t,n,r);if(null===o)Ur(e,t,r,Vt,n),zt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=It(At,e,t,n,r,o),!0;case"dragenter":return Rt=It(Rt,e,t,n,r,o),!0;case"mouseover":return Lt=It(Lt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Nt.set(i,It(Nt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Mt.set(i,It(Mt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&_t(i),null===(i=qt(e,t,n,r))&&Ur(e,t,r,Vt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Vt=null;function qt(e,t,n,r){if(Vt=null,null!==(e=bo(e=_e(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vt=e,null}function Jt(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(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=j({},un,{view:0,detail:0}),fn=on(dn),pn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(j({},pn,{dataTransfer:0})),gn=on(j({},dn,{relatedTarget:0})),vn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(j({},un,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Cn(){return Sn}var En=j({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(En),An=on(j({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Ln=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=j({},pn,{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}),Mn=on(Nn),On=[9,13,27,32],Pn=s&&"CompositionEvent"in window,zn=null;s&&"documentMode"in document&&(zn=document.documentMode);var In=s&&"TextEvent"in window&&!zn,Dn=s&&(!Pn||zn&&8<zn&&11>=zn),jn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={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 Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Kn(e,t,n,r){Ee(r),0<(t=Gr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Yn=null;function Vn(e){jr(e,0)}function qn(e){if(V(_o(e)))return e}function Jn(e,t){if("change"===e)return t}var Qn=!1;if(s){var Xn;if(s){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Qn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Yn=Gn=null)}function nr(e){if("value"===e.propertyName&&qn(Yn)){var t=[];Kn(t,Yn,e,_e(e)),Ne(Vn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Yn)}function ir(e,t){if("click"===e)return qn(t)}function ar(e,t){if("input"===e||"change"===e)return qn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===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 o=n[r];if(!l.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=s&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==q(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},kr={},Sr={};function Cr(e){if(kr[e])return kr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}s&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Er=Cr("animationend"),Tr=Cr("animationiteration"),Ar=Cr("animationstart"),Rr=Cr("transitionend"),Lr=new Map,Nr="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 Mr(e,t){Lr.set(e,t),i(t,[e])}for(var Or=0;Or<Nr.length;Or++){var Pr=Nr[Or];Mr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Mr(Er,"onAnimationEnd"),Mr(Tr,"onAnimationIteration"),Mr(Ar,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Rr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="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(" "),Ir=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Dr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,s,l,u){if($e.apply(this,arguments),Ie){if(!Ie)throw Error(n(198));var c=De;Ie=!1,De=null,je||(je=!0,Fe=c)}}(o,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,u),i=l}}}if(je)throw e=Fe,je=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[$r]){e[$r]=!0,r.forEach((function(t){"selectionchange"!==t&&(Ir.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Br("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Jt(t)){case 1:var o=Kt;break;case 4:o=Gt;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Ne((function(){var r=i,o=_e(n),a=[];e:{var s=Lr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case Er:case Tr:case Ar:l=vn;break;case Rr:l=Ln;break;case"scroll":l=fn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Me(h,f))&&c.push(Kr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:_o(l),p=null==u?s:_o(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,bo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Yr(p))h++;for(p=0,m=f;m;m=Yr(m))p++;for(;0<h-p;)c=Yr(c),h--;for(;0<p-h;)f=Yr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Yr(c),f=Yr(f)}c=null}else c=null;null!==l&&Vr(a,s,l,c,!1),null!==u&&null!==d&&Vr(a,d,u,c,!0)}if("select"===(l=(s=r?_o(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jn;else if(Un(s))if(Qn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Kn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&te(s,"number",s.value)),v=r?_o(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Xt="value"in(Qt=o)?Qt.value:Qt.textContent,Hn=!0)),0<(v=Gr(r,b)).length&&(b=new xn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=$n(n))&&(b.data=y))),(y=In?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Fn=!0,jn);case"textInput":return(e=t.data)===jn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Zt=Xt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default: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 Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}jr(a,t)}))}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Me(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Me(e,t))&&r.push(Kr(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Me(n,i))&&a.unshift(Kr(n,l,s)):o||null!=(l=Me(n,i))&&a.push(Kr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Jr,"")}function Xr(e,t,r){if(t=Qr(t),Qr(e)!==t&&r)throw Error(n(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _o(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wo(e){return e[ho]||null}var ko=[],So=-1;function Co(e){return{current:e}}function Eo(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function To(e,t){So++,ko[So]=e.current,e.current=t}var Ao={},Ro=Co(Ao),Lo=Co(!1),No=Ao;function Mo(e,t){var n=e.type.contextTypes;if(!n)return Ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oo(e){return null!=(e=e.childContextTypes)}function Po(){Eo(Lo),Eo(Ro)}function zo(e,t,r){if(Ro.current!==Ao)throw Error(n(168));To(Ro,t),To(Lo,r)}function Io(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,U(e)||"Unknown",i));return j({},r,o)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,No=Ro.current,To(Ro,e),To(Lo,Lo.current),!0}function jo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Io(e,t,No),o.__reactInternalMemoizedMergedChildContext=e,Eo(Lo),Eo(Ro),To(Ro,e)):Eo(Lo),To(Lo,r)}var Fo=null,Bo=!1,$o=!1;function Ho(e){null===Fo?Fo=[e]:Fo.push(e)}function Wo(){if(!$o&&null!==Fo){$o=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ye(Ze,Wo),t}finally{bt=t,$o=!1}}return null}var Uo=[],Ko=0,Go=null,Yo=0,Vo=[],qo=0,Jo=null,Qo=1,Xo="";function Zo(e,t){Uo[Ko++]=Yo,Uo[Ko++]=Go,Go=e,Yo=t}function ei(e,t,n){Vo[qo++]=Qo,Vo[qo++]=Xo,Vo[qo++]=Jo,Jo=e;var r=Qo;e=Xo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Qo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Go;)Go=Uo[--Ko],Uo[Ko]=null,Yo=Uo[--Ko],Uo[Ko]=null;for(;e===Jo;)Jo=Vo[--qo],Vo[qo]=null,Xo=Vo[--qo],Vo[qo]=null,Qo=Vo[--qo],Vo[qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Nu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Jo?{id:Qo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var r=t;if(!li(e,t)){if(ui(e))throw Error(n(418));t=uo(r.nextSibling);var o=ri;t&&li(e,t)?si(o,r):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(n(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(n(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=v.ReactCurrentBatchConfig;function vi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===M&&bi(o)===t.type)?((r=i(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Pu(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ju(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=zu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case b:return(t=ju(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||I(t))return(t=zu(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?u(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case M:return p(e,t,(o=n._init)(n._payload),r)}if(ne(n)||I(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return h(e,t,n,(0,r._init)(r._payload),o)}if(ne(r)||I(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(n,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(n,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return r(n,d),ii&&Zo(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(n,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(n,m),u}for(d=o(n,d);m<s.length;m++)null!==(g=h(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(n,e)})),ii&&Zo(n,m),u}function g(i,s,l,u){var c=I(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return r(i,m),ii&&Zo(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return ii&&Zo(i,g),c}for(m=o(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),ii&&Zo(i,g),c}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case y:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){r(n,c.sibling),(o=i(c,a.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===M&&bi(u)===c.type){r(n,c.sibling),(o=i(c,a.props)).ref=vi(n,c,a),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===x?((o=zu(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Pu(a.type,a.key,a.props,null,n.mode,l)).ref=vi(n,o,a),l.return=n,n=l)}return s(n);case b:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=ju(a,n.mode,l)).return=n,n=o}return s(n);case M:return e(n,o,(c=a._init)(a._payload),l)}if(ne(a))return m(n,o,a,l);if(I(a))return g(n,o,a,l);yi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=Du(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var _i=xi(!0),wi=xi(!1),ki=Co(null),Si=null,Ci=null,Ei=null;function Ti(){Ei=Ci=Si=null}function Ai(e){var t=ki.current;Eo(ki),e._currentValue=t}function Ri(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Li(e,t){Si=e,Ei=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Ni(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===Si)throw Error(n(308));Ci=e,Si.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Mi=null;function Oi(e){null===Mi?Mi=[e]:Mi.push(e)}function Pi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Oi(t)):(n.next=o.next,o.next=n),t.interleaved=n,zi(e,r)}function zi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ii=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(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 Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zi(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(r)):(t.next=o.next,o.next=t),r.interleaved=t,zi(e,n)}function $i(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:Ii=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Il|=a,e.lanes=a,e.memoizedState=d}}function Ui(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Ki={},Gi=Co(Ki),Yi=Co(Ki),Vi=Co(Ki);function qi(e){if(e===Ki)throw Error(n(174));return e}function Ji(e,t){switch(To(Vi,t),To(Yi,e),To(Gi,Ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Gi),To(Gi,t)}function Qi(){Eo(Gi),Eo(Yi),Eo(Vi)}function Xi(e){qi(Vi.current);var t=qi(Gi.current),n=ue(t,e.type);t!==n&&(To(Yi,e),To(Gi,n))}function Zi(e){Yi.current===e&&(Eo(Gi),Eo(Yi))}var ea=Co(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=v.ReactCurrentDispatcher,ia=v.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,r,o,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:es,e=r(o,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(n(301));a+=1,ua=la=null,t.updateQueue=null,oa.current=ts,e=r(o,i)}while(da)}if(oa.current=Xa,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(n(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(n(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"==typeof t?t(e):t}function _a(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=la,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=o):u=u.next=f,sa.lanes|=d,Il|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,sr(o,t.memoizedState)||(bs=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Il|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function ka(){}function Sa(e,t){var r=sa,o=ba(),i=t(),a=!sr(o.memoizedState,i);if(a&&(o.memoizedState=i,bs=!0),o=o.queue,Ia(Ta.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(r.flags|=2048,Na(9,Ea.bind(null,r,o,i,t),void 0,null),null===Rl)throw Error(n(349));30&aa||Ca(r,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Aa(t)&&Ra(e)}function Ta(e,t,n){return n((function(){Aa(t)&&Ra(e)}))}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ra(e){var t=zi(e,1);null!==t&&nu(t,e,1,-1)}function La(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Va.bind(null,sa,e),[t.memoizedState,e]}function Na(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ma(){return ba().memoizedState}function Oa(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Na(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Na(t,n,i,r))}sa.flags|=e,o.memoizedState=Na(1|t,n,i,r)}function za(e,t){return Oa(8390656,8,e,t)}function Ia(e,t){return Pa(2048,8,e,t)}function Da(e,t){return Pa(4,2,e,t)}function ja(e,t){return Pa(4,4,e,t)}function Fa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!=n?n.concat([e]):null,Pa(4,4,Fa.bind(null,t,e),n)}function $a(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ka(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ga(){return ba().memoizedState}function Ya(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))Ja(t,n);else if(null!==(n=Pi(e,t,n,r))){nu(n,e,r,eu()),Qa(n,t,r)}}function Va(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))Ja(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Oi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Pi(e,t,o,r))&&(nu(n,e,r,o=eu()),Qa(n,t,r))}}function qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ja(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Xa={readContext:Ni,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Ni,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ni,useEffect:za,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Oa(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oa(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):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=Ya.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:La,useDebugValue:$a,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=La(!1),t=e[0];return e=Ka.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=sa,i=ya();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Rl)throw Error(n(349));30&aa||Ca(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,za(Ta.bind(null,o,a,e),[e]),o.flags|=2048,Na(9,Ea.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ya(),t=Rl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ni,useCallback:Ha,useContext:Ni,useEffect:Ia,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:Wa,useReducer:_a,useRef:Ma,useState:function(){return _a(xa)},useDebugValue:$a,useDeferredValue:function(e){return Ua(ba(),la.memoizedState,e)},useTransition:function(){return[_a(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Ni,useCallback:Ha,useContext:Ni,useEffect:Ia,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:Wa,useReducer:wa,useRef:Ma,useState:function(){return wa(xa)},useDebugValue:$a,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),$i(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Fi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nu(t,e,r,n),$i(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=Ao,i=t.contextType;return"object"==typeof i&&null!==i?i=Ni(i):(o=Oo(t)?No:Ro.current,i=(r=null!=(r=t.contextTypes))?Mo(e,o):Ao),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ni(i):(i=Oo(t)?No:Ro.current,o.context=Mo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Kl=r),ds(0,t)},n}function hs(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var ys=v.ReactCurrentOwner,bs=!1;function xs(e,t,n,r){t.child=null===e?wi(t,null,n,r):_i(t,e.child,n,r)}function _s(e,t,n,r,o){n=n.render;var i=t.ref;return Li(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,xs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function ws(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Mu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Us(e,t,o)}return t.flags|=1,(e=Ou(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);131072&e.flags&&(bs=!0)}}return Es(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ol,Ml),Ml|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ol,Ml),Ml|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Ml),Ml|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Ml),Ml|=r;return xs(e,t,o,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,o){var i=Oo(n)?No:Ro.current;return i=Mo(t,i),Li(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,xs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function Ts(e,t,n,r,o){if(Oo(n)){var i=!0;Do(t)}else i=!1;if(Li(t,o),null===t.stateNode)Ws(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ni(u):u=Mo(t,u=Oo(n)?No:Ro.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Ii=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Lo.current||Ii?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Ii||is(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ji(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ni(l):l=Mo(t,l=Oo(n)?No:Ro.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Ii=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Lo.current||Ii?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=Ii||is(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,i,o)}function As(e,t,n,r,o,i){Cs(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&jo(t,n,!1),Us(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,s,i)):xs(e,t,s,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?zo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&zo(0,t.context,!1),Ji(e,t.containerInfo)}function Ls(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xs(e,t,n,r),t.child}var Ns,Ms,Os,Ps,zs={dehydrated:null,treeContext:null,retryLane:0};function Is(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,r){var o,i=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),To(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Iu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=zu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Is(r),t.memoizedState=zs,e):js(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,o=cs(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=Iu({mode:"visible",children:o.children},i,0,null),(a=zu(a,i,s,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&_i(t,e.child,null,s),t.child.memoizedState=Is(s),t.memoizedState=zs,a);if(!(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var l=o.dgst;return o=l,Fs(e,t,s,o=cs(a=Error(n(419)),o,void 0))}if(l=!!(s&e.childLanes),bs||l){if(null!==(o=Rl)){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(o.suspendedLanes|s)?0:i)&&i!==a.retryLane&&(a.retryLane=i,zi(e,i),nu(o,e,i,-1))}return mu(),Fs(e,t,s,o=cs(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,oi=uo(i.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Vo[qo++]=Qo,Vo[qo++]=Xo,Vo[qo++]=Jo,Qo=e.id,Xo=e.overflow,Jo=t),t=js(t,o.children),t.flags|=4096,t)}(e,t,l,i,o,a,r);if(s){s=i.fallback,l=t.mode,o=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Ou(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==o?s=Ou(o,s):(s=zu(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Is(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=zs,i}return e=(s=e.child).sibling,i=Ou(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function js(e,t){return(t=Iu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),_i(t,e.child,null,n),(e=js(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ri(e.return,t,n)}function $s(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xs(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$s(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$s(t,!0,n,null,i);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ws(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Ou(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ou(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ks(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ys(e,t,r){var i=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Oo(t.type)&&Po(),Gs(t),null;case 3:return i=t.stateNode,Qi(),Eo(Lo),Eo(Ro),ra(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Ms(e,t),Gs(t),null;case 5:Zi(t);var a=qi(Vi.current);if(r=t.type,null!==e&&null!=t.stateNode)Os(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Gs(t),null}if(e=qi(Gi.current),fi(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[po]=t,i[ho]=s,e=!!(1&t.mode),r){case"dialog":Fr("cancel",i),Fr("close",i);break;case"iframe":case"object":case"embed":Fr("load",i);break;case"video":case"audio":for(a=0;a<zr.length;a++)Fr(zr[a],i);break;case"source":Fr("error",i);break;case"img":case"image":case"link":Fr("error",i),Fr("load",i);break;case"details":Fr("toggle",i);break;case"input":Q(i,s),Fr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Fr("invalid",i);break;case"textarea":ie(i,s),Fr("invalid",i)}for(var l in ye(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",""+u]):o.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",i)}switch(r){case"input":Y(i),ee(i,s,!0);break;case"textarea":Y(i),se(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Zr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[po]=t,e[ho]=i,Ns(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,i),r){case"dialog":Fr("cancel",e),Fr("close",e),a=i;break;case"iframe":case"object":case"embed":Fr("load",e),a=i;break;case"video":case"audio":for(a=0;a<zr.length;a++)Fr(zr[a],e);a=i;break;case"source":Fr("error",e),a=i;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),a=i;break;case"details":Fr("toggle",e),a=i;break;case"input":Q(e,i),a=J(e,i),Fr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=j({},i,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,i),a=oe(e,i),Fr("invalid",e)}for(s in ye(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Fr("scroll",e):null!=c&&g(e,s,c,l))}switch(r){case"input":Y(e),ee(e,i,!1);break;case"textarea":Y(e),se(e);break;case"option":null!=i.value&&e.setAttribute("value",""+K(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?re(e,!!i.multiple,s,!1):null!=i.defaultValue&&re(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Zr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Ps(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=qi(Vi.current),qi(Gi.current),fi(t)){if(i=t.stateNode,r=t.memoizedProps,i[po]=t,(s=i.nodeValue!==r)&&null!==(e=ri))switch(e.tag){case 3:Xr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(i.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[po]=t,t.stateNode=i}return Gs(t),null;case 13:if(Eo(ea),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,s=!1;else if(s=fi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),s=!1}else null!==ai&&(au(ai),ai=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Pl&&(Pl=3):mu())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Qi(),Ms(e,t),null===e&&Hr(t.stateNode.containerInfo),Gs(t),null;case 10:return Ai(t.type._context),Gs(t),null;case 19:if(Eo(ea),null===(s=t.memoizedState))return Gs(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)Ks(s,!1);else{if(0!==Pl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ks(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(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=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return To(ea,1&ea.current|2),t.child}e=e.sibling}null!==s.tail&&Qe()>Hl&&(t.flags|=128,i=!0,Ks(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ta(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ks(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Gs(t),null}else 2*Qe()-s.renderingStartTime>Hl&&1073741824!==r&&(t.flags|=128,i=!0,Ks(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,r=ea.current,To(ea,i?1&r|2:1&r),t):(Gs(t),null);case 22:case 23:return du(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Ml)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Vs(e,t){switch(ni(t),t.tag){case 1:return Oo(t.type)&&Po(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Eo(Lo),Eo(Ro),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(Eo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(ea),null;case 4:return Qi(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ns=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ms=function(){},Os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qi(Gi.current);var a,s=null;switch(n){case"input":i=J(e,i),r=J(e,r),s=[];break;case"select":i=j({},i,{value:void 0}),r=j({},r,{value:void 0}),s=[];break;case"textarea":i=oe(e,i),r=oe(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ps=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Js=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Xs=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Su(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[yo])),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 al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Js||Zs(n,t);case 6:var r=cl,o=dl;cl=null,fl(e,t,n),dl=o,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ht(e)):lo(cl,n.stateNode));break;case 4:r=cl,o=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Js&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Js&&(Zs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Js=(r=Js)||null!==n.memoizedState,fl(e,t,n),Js=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(n(160));pl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Su(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&o){try{nl(3,e,e.return),rl(3,e)}catch(t){Su(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return);break;case 5:if(ml(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Su(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):g(i,d,f,c)}switch(l){case"input":Z(i,a);break;case"textarea":ae(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[ho]=a}catch(t){Su(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Su(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||($l=Qe())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Js=(c=Js)||d,ml(t,e),Js=c):ml(t,e),vl(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(h=(p=Xs).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Zs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){o=p,r=p.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(o,r,e)}}break;case 5:Zs(p,p.return);break;case 22:if(null!==p.memoizedState){_l(f);continue}}null!==h?(h.return=p,Xs=h):_l(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Su(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&o&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(fe(i,""),o.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(n(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Xs=e,bl(e)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Js;s=qs;var u=Js;if(qs=a,(Js=l)&&!u)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?wl(o):null!==l?(l.return=a,Xs=l):wl(o);for(;null!==i;)Xs=i,bl(i),i=i.sibling;Xs=o,qs=s,Js=u}xl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Xs=i):xl(e)}}function xl(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Js||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Js)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:ns(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ui(t,a,o);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ui(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(n(163))}Js||512&t.flags&&ol(t)}catch(e){Su(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Xs=r;break}Xs=t.return}}function _l(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function wl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Su(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Su(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Su(t,a,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var kl,Sl=Math.ceil,Cl=v.ReactCurrentDispatcher,El=v.ReactCurrentOwner,Tl=v.ReactCurrentBatchConfig,Al=0,Rl=null,Ll=null,Nl=0,Ml=0,Ol=Co(0),Pl=0,zl=null,Il=0,Dl=0,jl=0,Fl=null,Bl=null,$l=0,Hl=1/0,Wl=null,Ul=!1,Kl=null,Gl=null,Yl=!1,Vl=null,ql=0,Jl=0,Ql=null,Xl=-1,Zl=0;function eu(){return 6&Al?Qe():-1!==Xl?Xl:Xl=Qe()}function tu(e){return 1&e.mode?2&Al&&0!==Nl?Nl&-Nl:null!==gi.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Jt(e.type):1}function nu(e,t,r,o){if(50<Jl)throw Jl=0,Ql=null,Error(n(185));vt(e,r,o),2&Al&&e===Rl||(e===Rl&&(!(2&Al)&&(Dl|=r),4===Pl&&su(e,Nl)),ru(e,o),1===r&&0===Al&&!(1&t.mode)&&(Hl=Qe()+500,Bo&&Wo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?s&n&&!(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Rl?Nl:0);if(0===r)null!==n&&Ve(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ve(n),1===t)0===e.tag?function(e){Bo=!0,Ho(e)}(lu.bind(null,e)):Ho(lu.bind(null,e)),ao((function(){!(6&Al)&&Wo()})),n=null;else{switch(xt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ru(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Xl=-1,Zl=0,6&Al)throw Error(n(327));var r=e.callbackNode;if(wu()&&e.callbackNode!==r)return null;var o=ft(e,e===Rl?Nl:0);if(0===o)return null;if(30&o||o&e.expiredLanes||t)t=gu(e,o);else{t=o;var i=Al;Al|=2;var a=hu();for(Rl===e&&Nl===t||(Wl=null,Hl=Qe()+500,fu(e,t));;)try{yu();break}catch(t){pu(e,t)}Ti(),Cl.current=a,Al=i,null!==Ll?t=0:(Rl=null,Nl=0,t=Pl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=iu(e,i))),1===t)throw r=zl,fu(e,0),su(e,o),ru(e,Qe()),r;if(6===t)su(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=gu(e,o),2===t&&(a=ht(e),0!==a&&(o=a,t=iu(e,a))),1!==t)))throw r=zl,fu(e,0),su(e,o),ru(e,Qe()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:_u(e,Bl,Wl);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=$l+500-Qe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&o)!==o){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ro(_u.bind(null,e,Bl,Wl),t);break}_u(e,Bl,Wl);break;case 4:if(su(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var s=31-at(o);a=1<<s,(s=t[s])>i&&(i=s),o&=~a}if(o=i,10<(o=(120>(o=Qe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Sl(o/1960))-o)){e.timeoutHandle=ro(_u.bind(null,e,Bl,Wl),o);break}_u(e,Bl,Wl);break;default:throw Error(n(329))}}}return ru(e,Qe()),e.callbackNode===r?ou.bind(null,e):null}function iu(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Bl,Bl=n,null!==t&&au(t)),e}function au(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function su(e,t){for(t&=~jl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Al)throw Error(n(327));wu();var t=ft(e,0);if(!(1&t))return ru(e,Qe()),null;var r=gu(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=iu(e,o))}if(1===r)throw r=zl,fu(e,0),su(e,t),ru(e,Qe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Bl,Wl),ru(e,Qe()),null}function uu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Hl=Qe()+500,Bo&&Wo())}}function cu(e){null!==Vl&&0===Vl.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,!(6&(Al=t))&&Wo()}}function du(){Ml=Ol.current,Eo(Ol)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:Qi(),Eo(Lo),Eo(Ro),ra();break;case 5:Zi(r);break;case 4:Qi();break;case 13:case 19:Eo(ea);break;case 10:Ai(r.type._context);break;case 22:case 23:du()}n=n.return}if(Rl=e,Ll=e=Ou(e.current,null),Nl=Ml=t,Pl=0,zl=null,jl=Dl=Il=0,Bl=Fl=null,null!==Mi){for(t=0;t<Mi.length;t++)if(null!==(r=(n=Mi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Mi=null}return e}function pu(e,t){for(;;){var r=Ll;try{if(Ti(),oa.current=Xa,ca){for(var o=sa.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,fa=0,El.current=null,null===r||null===r.return){Pl=1,zl=t,Ll=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Nl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(n(426))}else if(ii&&1&l.mode){var v=gs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(us(u,l));break e}}a=u=us(u,l),4!==Pl&&(Pl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,ps(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Gl&&Gl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Ll===r&&null!==r&&(Ll=r=r.return);continue}break}}function hu(){var e=Cl.current;return Cl.current=Xa,null===e?Xa:e}function mu(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Rl||!(268435455&Il)&&!(268435455&Dl)||su(Rl,Nl)}function gu(e,t){var r=Al;Al|=2;var o=hu();for(Rl===e&&Nl===t||(Wl=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(Ti(),Al=r,Cl.current=o,null!==Ll)throw Error(n(261));return Rl=null,Nl=0,Pl}function vu(){for(;null!==Ll;)bu(Ll)}function yu(){for(;null!==Ll&&!qe();)bu(Ll)}function bu(e){var t=kl(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,null===t?xu(e):Ll=t,El.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Vs(n,t)))return n.flags&=32767,void(Ll=n);if(null===e)return Pl=6,void(Ll=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ys(n,t,Ml)))return void(Ll=n);if(null!==(t=t.sibling))return void(Ll=t);Ll=t=e}while(null!==t);0===Pl&&(Pl=5)}function _u(e,t,r){var o=bt,i=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,r,o){do{wu()}while(null!==Vl);if(6&Al)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(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 o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Rl&&(Ll=Rl=null,Nl=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Yl||(Yl=!0,Ru(tt,(function(){return wu(),null}))),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=bt;bt=1;var l=Al;Al|=4,El.current=null,function(e,t){if(eo=Ut,pr(e=fr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(u=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===i&&(l=s),p===a&&++d===o&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ut=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}m=tl,tl=!1}(e,r),gl(r,e),hr(to),Ut=!!eo,to=eo=null,e.current=r,yl(r),Je(),Al=l,bt=s,Tl.transition=a}else e.current=r;if(Yl&&(Yl=!1,Vl=e,ql=i),a=e.pendingLanes,0===a&&(Gl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),ru(e,Qe()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Ul)throw Ul=!1,e=Kl,Kl=null,e;!!(1&ql)&&0!==e.tag&&wu(),a=e.pendingLanes,1&a?e===Ql?Jl++:(Jl=0,Ql=e):Jl=0,Wo()}(e,t,r,o)}finally{Tl.transition=i,bt=o}return null}function wu(){if(null!==Vl){var e=xt(ql),t=Tl.transition,r=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Vl)var o=!1;else{if(e=Vl,Vl=null,ql=0,6&Al)throw Error(n(331));var i=Al;for(Al|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(16&Xs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xs=c;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var p=(d=Xs).sibling,h=d.return;if(il(d),d===c){Xs=null;break}if(null!==p){p.return=h,Xs=p;break}Xs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Xs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(2048&(a=Xs).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var x=(s=Xs).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Xs=x;else e:for(s=b;null!==Xs;){if(2048&(l=Xs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Su(l,l.return,e)}if(l===s){Xs=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Xs=_;break e}Xs=l.return}}if(Al=i,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{bt=r,Tl.transition=t}}return!1}function ku(e,t,n){e=Bi(e,t=ps(0,t=us(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ru(e,t))}function Su(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gl||!Gl.has(r))){t=Bi(t,e=hs(t,e=us(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Nl&n)===n&&(4===Pl||3===Pl&&(130023424&Nl)===Nl&&500>Qe()-$l?fu(e,0):jl|=n),ru(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=zi(e,t))&&(vt(e,t,n),ru(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Au(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Eu(e,r)}function Ru(e,t){return Ye(e,t)}function Lu(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 Nu(e,t,n,r){return new Lu(e,t,n,r)}function Mu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Nu(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,r,o,i,a){var s=2;if(o=e,"function"==typeof e)Mu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return zu(r.children,i,a,t);case w:s=8,i|=8;break;case k:return(e=Nu(12,r,t,2|i)).elementType=k,e.lanes=a,e;case R:return(e=Nu(13,r,t,i)).elementType=R,e.lanes=a,e;case L:return(e=Nu(19,r,t,i)).elementType=L,e.lanes=a,e;case P:return Iu(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case E:s=9;break e;case T:s=11;break e;case N:s=14;break e;case M:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Nu(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function zu(e,t,n,r){return(e=Nu(7,e,r,t)).lanes=n,e}function Iu(e,t,n,r){return(e=Nu(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Nu(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Nu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,o,i,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function $u(e){if(!e)return Ao;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Oo(r))return Io(e,r,t)}return t}function Hu(e,t,n,r,o,i,a,s,l){return(e=Bu(n,r,!0,e,0,i,0,s,l)).context=$u(null),n=e.current,(i=Fi(r=eu(),o=tu(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),ru(e,r),e}function Wu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=$u(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nu(e,o,a,i),$i(e,o,a)),a}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}kl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Lo.current)bs=!0;else{if(!(e.lanes&r||128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Rs(t),hi();break;case 5:Xi(t);break;case 1:Oo(t.type)&&Do(t);break;case 4:Ji(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(ea,1&ea.current),t.flags|=128,null):n&t.child.childLanes?Ds(e,t,n):(To(ea,1&ea.current),null!==(e=Us(e,t,n))?e.sibling:null);To(ea,1&ea.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Us(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,ii&&1048576&t.flags&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ws(e,t),e=t.pendingProps;var i=Mo(t,Ro.current);Li(t,r),i=ga(null,t,o,e,i,r);var a=va();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oo(o)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Di(t),i.updater=os,t.stateNode=i,i._reactInternals=t,ls(t,o,e,r),t=As(null,t,o,!0,a,r)):(t.tag=0,ii&&a&&ti(t),xs(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Mu(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===N)return 14}return 2}(o),e=ns(o,e),i){case 0:t=Es(null,t,o,e,r);break e;case 1:t=Ts(null,t,o,e,r);break e;case 11:t=_s(null,t,o,e,r);break e;case 14:t=ws(null,t,o,ns(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Es(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 1:return o=t.type,i=t.pendingProps,Ts(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 3:e:{if(Rs(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,ji(e,t),Wi(t,o,null,r);var s=t.memoizedState;if(o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ls(e,t,o,r,i=us(Error(n(423)),t));break e}if(o!==i){t=Ls(e,t,o,r,i=us(Error(n(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,r=wi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hi(),o===i){t=Us(e,t,r);break e}xs(e,t,o,r)}t=t.child}return t;case 5:return Xi(t),null===e&&ci(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,no(o,i)?s=null:null!==a&&no(o,a)&&(t.flags|=32),Cs(e,t),xs(e,t,s,r),t.child;case 6:return null===e&&ci(t),null;case 13:return Ds(e,t,r);case 4:return Ji(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=_i(t,null,o,r):xs(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,_s(e,t,o,i=t.elementType===o?i:ns(o,i),r);case 7:return xs(e,t,t.pendingProps,r),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,To(ki,o._currentValue),o._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Lo.current){t=Us(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===a.tag){(u=Fi(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Ri(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ri(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Li(t,r),o=o(i=Ni(i)),t.flags|=1,xs(e,t,o,r),t.child;case 14:return i=ns(o=t.type,t.pendingProps),ws(e,t,o,i=ns(o.type,i),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ns(o,i),Ws(e,t),t.tag=1,Oo(o)?(e=!0,Do(t)):e=!1,Li(t,r),as(t,o,i),ls(t,o,i,r),As(null,t,o,!0,e,r);case 19:return Hs(e,t,r);case 22:return Ss(e,t,r)}throw Error(n(156,t.tag))};var Yu="function"==typeof reportError?reportError:function(e){console.error(e)};function Vu(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function Zu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Uu(a);s.call(e)}}Wu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uu(a);i.call(e)}}var a=Hu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[mo]=a.current,Hr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Uu(l);s.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[mo]=l.current,Hr(8===e.nodeType?e.parentNode:e),cu((function(){Wu(t,l,n,r)})),l}(n,t,e,o,r);return Uu(a)}qu.prototype.render=Vu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wu(e,t,null,null)},qu.prototype.unmount=Vu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Wu(null,e,null,null)})),t[mo]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Dt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Qe()),!(6&Al)&&(Hl=Qe()+500,Wo()))}break;case 13:cu((function(){var t=zi(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Gu(e,1)}},wt=function(e){if(13===e.tag){var t=zi(e,134217728);if(null!==t)nu(t,e,134217728,eu());Gu(e,134217728)}},kt=function(e){if(13===e.tag){var t=tu(e),n=zi(e,t);if(null!==n)nu(n,e,t,eu());Gu(e,t)}},St=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},we=function(e,t,r){switch(t){case"input":if(Z(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=wo(o);if(!i)throw Error(n(90));V(o),Z(o,i)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ae=uu,Re=cu;var ec={usingClientEntryPoint:!1,Events:[xo,_o,wo,Ee,Te,uu]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(e){}}return _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,_.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},_.createRoot=function(e,t){if(!Ju(e))throw Error(n(299));var r=!1,o="",i=Yu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bu(e,1,!1,null,0,r,0,o,i),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Vu(t)},_.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ke(t))?null:e.stateNode},_.flushSync=function(e){return cu(e)},_.hydrate=function(e,t,r){if(!Qu(t))throw Error(n(200));return Zu(null,e,t,!0,r)},_.hydrateRoot=function(e,t,r){if(!Ju(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=Yu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Hu(t,null,e,1,null!=r?r:null,i,0,a,s),e[mo]=t.current,Hr(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new qu(t)},_.render=function(e,t,r){if(!Qu(t))throw Error(n(200));return Zu(null,e,t,!1,r)},_.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(n(40));return!!e._reactRootContainer&&(cu((function(){Zu(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},_.unstable_batchedUpdates=uu,_.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Qu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Zu(e,t,r,!1,o)},_.version="18.3.1-next-f1338f8080-20240426",_}function z(){if(R)return x.exports;return R=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),x.exports=P(),x.exports}var I=function(){if(L)return b;L=1;var e=z();return b.createRoot=e.createRoot,b.hydrateRoot=e.hydrateRoot,b}();var D=C(),j=m(D),F=f({__proto__:null,default:j},[D]);const B=D.createContext({layout:void 0,model:void 0,element:void 0,edit:!1,initialData:void 0,emitter:void 0,lang:"en",flags:{isEnabled:()=>!1},theme:null,printingStatus:null,showMediaLibrary:void 0});function $(e){throw new Error(e)}const H="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,W=H&&"documentMode"in document?document.documentMode:null,U=H&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),K=H&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),G=!(!H||!("InputEvent"in window)||W)&&"getTargetRanges"in new window.InputEvent("input"),Y=H&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),V=H&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,q=H&&/Android/.test(navigator.userAgent),J=H&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Q=H&&q&&J,X=H&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&U&&!J,Z=0,ee=1,te=2,ne=1,re=2,oe=3,ie=4,ae=5,se=6,le=Y||V||X?" ":"​",ue="\n\n",ce=K?" ":le,de={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},fe={directionless:1,unmergeable:2},pe={center:2,end:6,justify:4,left:1,right:3,start:5},he={[re]:"center",[se]:"end",[ie]:"justify",[ne]:"left",[oe]:"right",[ae]:"start"},me={normal:0,segmented:2,token:1},ge={[Z]:"normal",[te]:"segmented",[ee]:"token"},ve="$config";function ye(e,t,n,r,o,i){let a=e.getFirstChild();for(;null!==a;){const e=a.__key;a.__parent===t&&(Go(a)&&ye(a,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),a=a.getNextSibling()}}let be=!1,xe=0;function _e(e){xe=e.timeStamp}function we(e,t,n){const r="BR"===e.nodeName,o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&void 0!==Fi(e,n)}function ke(e,t,n){const r=Ca(ya(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const a=e.nodeValue;null!==a&&Xi(t,a,o,i,!1)}function Se(e,t,n){if($r(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return Ti(t)&&n.isAttached()}function Ce(e,t,n,r){for(let o=e;o&&!Ba(o);o=ha(o)){const e=Fi(o,t);if(void 0!==e){const t=Di(e,n);if(t)return qo(t)||!Ta(o)?void 0:[o,t]}else if(o===r)return[r,Ui(n)]}}function Ee(e,t,n){be=!0;const r=performance.now()-xe>100;try{Ho(e,(()=>{const o=io()||function(e){return e.getEditorState().read((()=>{const e=io();return null!==e?e.clone():null}))}(e),i=new Map,a=e.getRootElement(),s=e._editorState,l=e._blockCursorElement;let u=!1,c="";for(let n=0;n<t.length;n++){const d=t[n],f=d.type,p=d.target,h=Ce(p,e,s,a);if(!h)continue;const[m,g]=h;if("characterData"===f)r&&Nr(g)&&Ti(p)&&Se(o,p,g)&&ke(p,g,e);else if("childList"===f){u=!0;const t=d.addedNodes;for(let n=0;n<t.length;n++){const r=t[n],o=ji(r),i=r.parentNode;if(null!=i&&r!==l&&null===o&&!we(r,i,e)){if(K){const e=(Ta(r)?r.innerText:null)||r.nodeValue;e&&(c+=e)}i.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let t=0;for(let o=0;o<r;o++){const r=n[o];(we(r,p,e)||l===r)&&(p.appendChild(r),t++)}r!==t&&i.set(m,g)}}}if(i.size>0)for(const[t,n]of i)n.reconcileObservedMutation(t,e);const d=n.takeRecords();if(d.length>0){for(let t=0;t<d.length;t++){const n=d[t],r=n.addedNodes,o=n.target;for(let t=0;t<r.length;t++){const n=r[t],i=n.parentNode;null==i||"BR"!==n.nodeName||we(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(u&&Ki(o),K&&da(e)&&o.insertRawText(c))}))}finally{be=!1}}function Te(e){const t=e._observer;if(null!==t){Ee(e,t.takeRecords(),t)}}function Ae(e){!function(e){0===xe&&ya(e).addEventListener("textInput",_e,!0)}(e),e._observer=new MutationObserver(((t,n)=>{Ee(e,t,n)}))}function Re(e){const t=new Map,n=new Set;for(let r="function"==typeof e?e:e.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){const{ownNodeConfig:e}=Ua(r);if(e&&e.stateConfigs)for(const r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}class Le{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,o=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;const{sharedConfigMap:i}=this.sharedNodeState,a=void 0!==o?o:function(e,t,n){let r=n.size;if(t)for(const o in t){const t=e.get(o);t&&n.has(t)||r++}return r}(i,n,r);void 0!==o&&a!==o&&$(`NodeState: size != computedSize (${String(o)} != ${String(a)})`);for(const e of r.keys())i.has(e.key)||$(`NodeState: sharedConfigMap missing knownState key ${e.key}`);this.size=a}getValue(e){const t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return Oe(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new Le(e,t,function(e,t,n){let r;if(n)for(const[o,i]of Object.entries(n)){const n=e.get(o);n?t.has(n)||t.set(n,n.parse(i)):(r=r||{},r[o]=i)}return r}(t.sharedConfigMap,r,n),r,this.size)}updateFromKnown(e,t){const n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);const{knownState:r,unknownState:o}=this;r.has(e)||o&&n in o||(o&&(delete o[n],this.unknownState=Oe(o)),this.size++),r.set(e,t)}updateFromUnknown(e,t){const n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}}function Ne(e){return e.__state?e.__state.sharedNodeState:mi(Oa(),e.getType()).sharedNodeState}function Me(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of Ne(n).flatKeys)e in t&&(void 0!==o&&o!==r||(o={...r}),o[e]=t[e]);return(n.__state||o)&&function(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Le(t,Ne(t));return t.__state=n,n}(e).updateFromJSON(o),n}function Oe(e){if(e)for(const t in e)return e}function Pe(e,t,n){for(const[r,o]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const t=n?n.getValue(r):r.defaultValue;if(t!==o&&!r.isEqual(t,o))return!0}return!1}function ze(e,t,n){const{unknownState:r}=t,o=n?n.unknownState:void 0;if(r)for(const[t,n]of Object.entries(r)){if(e.has(t))continue;e.add(t);if(n!==(o?o[t]:void 0))return!0}return!1}function Ie(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function De(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,a=t.__format,s=t.__style,l=e.__state,u=t.__state;return(null===n||n===i)&&(null===r||r===a)&&(null===o||o===s)&&(null===e.__state||l===u||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;const n=new Set;return!(e&&Pe(n,e,t)||t&&Pe(n,t,e)||e&&ze(n,e,t)||t&&ze(n,t,e))}(l,u))}function je(e,t){const n=e.mergeWithSibling(t),r=Ao()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Fe(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&Nr(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(De(t,r)){r=je(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&Nr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(De(r,n)){r=je(r,n);break}break}n.remove()}}else r.remove()}function Be(e){return $e(e.anchor),$e(e.focus),e}function $e(e){for(;"element"===e.type;){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),Nr(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!Go(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let He,We,Ue,Ke,Ge,Ye,Ve,qe,Je,Qe,Xe="",Ze=null,et=null,tt=!1,nt=!1;function rt(e,t){const n=Ve.get(e);if(null!==t){const n=_t(e);n.parentNode===t&&t.removeChild(n)}if(qe.has(e)||We._keyToDOMMap.delete(e),Go(n)){const e=mt(n,Ve);ot(e,0,e.length-1,null)}void 0!==n&&sa(Qe,Ue,Ke,n,"destroyed")}function ot(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&rt(t,r)}}function it(e,t){e.setProperty("text-align",t)}const at="40px";function st(e,t){const n=He.theme.indent;if("string"==typeof n){const r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}const r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||at;e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${r})`)}function lt(e,t){const n=e.style;0===t?it(n,""):1===t?it(n,"left"):2===t?it(n,"center"):3===t?it(n,"right"):4===t?it(n,"justify"):5===t?it(n,"start"):6===t&&it(n,"end")}function ut(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(Qo(e))return null;const n=e.getParentOrThrow();return Qo(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function ct(e,t){const n=qe.get(e);void 0===n&&$("createNode: node does not exist in nodeMap");const r=n.createDOM(He,We);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){const r=`__lexicalKey_${t._key}`;e[r]=n})(t,n,e),r.set(e,t)}(e,r,We),Nr(n)?r.setAttribute("data-lexical-text","true"):qo(n)&&r.setAttribute("data-lexical-decorator","true"),Go(n)){const e=n.__indent,t=n.__size;if(ut(r,n),0!==e&&st(r,e),0!==t){const e=t-1;dt(mt(n,qe),n,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&&lt(r,o),n.isInline()||pt(null,n,r)}else{const t=n.getTextContent();if(qo(n)){const t=n.decorate(We,He);null!==t&&vt(e,t),r.contentEditable="false"}Xe+=t}return null!==t&&t.insertChild(r),Object.freeze(n),sa(Qe,Ue,Ke,n,"created"),r}function dt(e,t,n,r,o){const i=Xe;Xe="";let a=n;for(;a<=r;++a){ct(e[a],o);const t=qe.get(e[a]);null!==t&&Nr(t)?null===Ze&&(Ze=t.getFormat(),et=t.getStyle()):Go(t)&&a<r&&!t.isInline()&&(Xe+=ue)}o.element.__lexicalTextContent=Xe,Xe=i+Xe}function ft(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return pr(e)?"line-break":qo(e)&&e.isInline()?"decorator":null}return"empty"}return null}function pt(e,t,n){const r=ft(e,Ve),o=ft(t,qe);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function ht(e,t,n){var r;Ze=null,et=null,function(e,t,n){const r=Xe,o=e.__size,i=t.__size;Xe="";const a=n.element;if(1===o&&1===i){const n=e.__first,r=t.__first;if(n===r)gt(n,a);else{const e=_t(n),t=ct(r,null);try{a.replaceChild(t,e)}catch(o){if("object"==typeof o&&null!=o){const i=`${o.toString()} Parent: ${a.tagName}, new child: {tag: ${t.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw o}rt(n,null)}const o=qe.get(r);Nr(o)&&null===Ze&&(Ze=o.getFormat(),et=o.getStyle())}else{const r=mt(e,Ve),s=mt(t,qe);if(r.length!==o&&$("$reconcileChildren: prevChildren.length !== prevChildrenSize"),s.length!==i&&$("$reconcileChildren: nextChildren.length !== nextChildrenSize"),0===o)0!==i&&dt(s,0,0,i-1,n);else if(0===i){if(0!==o){const e=null==n.after&&null==n.before&&null==n.element.__lexicalLineBreak;ot(r,0,o-1,e?null:a),e&&(a.textContent="")}}else!function(e,t,n,r,o,i){const a=r-1,s=o-1;let l,u,c=i.getFirstChild(),d=0,f=0;for(;d<=a&&f<=s;){const e=t[d],r=n[f];if(e===r)c=yt(gt(r,i.element)),d++,f++;else{if(void 0===u&&(u=bt(n,f)),void 0===l)l=bt(t,d);else if(!l.has(e)){d++;continue}if(!u.has(e)){c=yt(_t(e)),rt(e,i.element),d++,l.delete(e);continue}if(l.has(r)){const e=pa(We,r);e!==c&&i.withBefore(c).insertChild(e),c=yt(gt(r,i.element)),d++,f++}else ct(r,i.withBefore(c)),f++}const o=qe.get(r);null!==o&&Nr(o)?null===Ze&&(Ze=o.getFormat(),et=o.getStyle()):Go(o)&&f<=s&&!o.isInline()&&(Xe+=ue)}const p=d>a,h=f>s;if(p&&!h){const e=n[s+1],t=void 0===e?null:We.getElementByKey(e);dt(n,0,f,s,i.withBefore(t))}else h&&!p&&ot(t,d,a,i.element)}(0,r,s,o,i,n)}a.__lexicalTextContent=Xe,Xe=r+Xe}(e,t,t.getDOMSlot(n)),r=t,null==Ze||Ze===r.__textFormat||nt||r.setTextFormat(Ze),function(e){null==et||et===e.__textStyle||nt||e.setTextStyle(et)}(t)}function mt(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&$("createChildrenArray: node does not exist in nodeMap"),n.push(r),r=e.__next}return n}function gt(e,t){const n=Ve.get(e);let r=qe.get(e);void 0!==n&&void 0!==r||$("reconcileNode: prevNode or nextNode does not exist in nodeMap");const o=tt||Ye.has(e)||Ge.has(e),i=pa(We,e);if(n===r&&!o){let e;if(Go(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return Xe+=e,i}if(n!==r&&o&&sa(Qe,Ue,Ke,r,"updated"),r.updateDOM(n,i,He)){const n=ct(e,null);return null===t&&$("reconcileNode: parentDOM is null"),t.replaceChild(n,i),rt(e,null),n}if(Go(n)){Go(r)||$(`Node with key ${e} changed from ElementNode to !ElementNode`);const t=r.__indent;(tt||t!==n.__indent)&&st(i,t);const a=r.__format;if((tt||a!==n.__format)&&lt(i,a),o)ht(n,r,i),Qo(r)||r.isInline()||pt(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),Xe+=t}if((tt||r.__dir!==n.__dir)&&(ut(i,r),Qo(r)&&!tt))for(const e of r.getChildren())if(Go(e)){ut(pa(We,e.getKey()),e)}}else{const t=r.getTextContent();if(qo(r)){const t=r.decorate(We,He);null!==t&&vt(e,t)}Xe+=t}if(!nt&&Qo(r)&&r.__cachedText!==Xe){const e=r.getWritable();e.__cachedText=Xe,r=e}return Object.freeze(r),i}function vt(e,t){let n=We._pendingDecorators;const r=We._decorators;if(null===n){if(r[e]===t)return;n=$i(We)}n[e]=t}function yt(e){let t=e.nextSibling;return null!==t&&t===We._blockCursorElement&&(t=t.nextSibling),t}function bt(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function xt(e,t,n,r,o,i){Xe="",tt=2===r,We=n,He=n._config,Ue=n._nodes,Ke=We._listeners.mutation,Ge=o,Ye=i,Ve=e._nodeMap,qe=t._nodeMap,nt=t._readOnly,Je=new Map(n._keyToDOMMap);const a=new Map;return Qe=a,gt("root",null),We=void 0,Ue=void 0,Ge=void 0,Ye=void 0,Ve=void 0,qe=void 0,He=void 0,Je=void 0,Qe=void 0,a}function _t(e){const t=Je.get(e);return void 0===t&&$(`Reconciliation: could not find DOM element for node key ${e}`),t}function wt(e){return{type:e}}const kt=wt("SELECTION_CHANGE_COMMAND"),St=wt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Ct=wt("CLICK_COMMAND"),Et=wt("BEFORE_INPUT_COMMAND"),Tt=wt("INPUT_COMMAND"),At=wt("COMPOSITION_START_COMMAND"),Rt=wt("COMPOSITION_END_COMMAND"),Lt=wt("DELETE_CHARACTER_COMMAND"),Nt=wt("INSERT_LINE_BREAK_COMMAND"),Mt=wt("INSERT_PARAGRAPH_COMMAND"),Ot=wt("CONTROLLED_TEXT_INSERTION_COMMAND"),Pt=wt("PASTE_COMMAND"),zt=wt("REMOVE_TEXT_COMMAND"),It=wt("DELETE_WORD_COMMAND"),Dt=wt("DELETE_LINE_COMMAND"),jt=wt("FORMAT_TEXT_COMMAND"),Ft=wt("UNDO_COMMAND"),Bt=wt("REDO_COMMAND"),$t=wt("KEYDOWN_COMMAND"),Ht=wt("KEY_ARROW_RIGHT_COMMAND"),Wt=wt("MOVE_TO_END"),Ut=wt("KEY_ARROW_LEFT_COMMAND"),Kt=wt("MOVE_TO_START"),Gt=wt("KEY_ARROW_UP_COMMAND"),Yt=wt("KEY_ARROW_DOWN_COMMAND"),Vt=wt("KEY_ENTER_COMMAND"),qt=wt("KEY_SPACE_COMMAND"),Jt=wt("KEY_BACKSPACE_COMMAND"),Qt=wt("KEY_ESCAPE_COMMAND"),Xt=wt("KEY_DELETE_COMMAND"),Zt=wt("KEY_TAB_COMMAND"),en=wt("INSERT_TAB_COMMAND"),tn=wt("INDENT_CONTENT_COMMAND"),nn=wt("OUTDENT_CONTENT_COMMAND"),rn=wt("DROP_COMMAND"),on=wt("FORMAT_ELEMENT_COMMAND"),an=wt("DRAGSTART_COMMAND"),sn=wt("DRAGOVER_COMMAND"),ln=wt("DRAGEND_COMMAND"),un=wt("COPY_COMMAND"),cn=wt("CUT_COMMAND"),dn=wt("SELECT_ALL_COMMAND"),fn=wt("CLEAR_EDITOR_COMMAND"),pn=wt("CLEAR_HISTORY_COMMAND"),hn=wt("CAN_REDO_COMMAND"),mn=wt("CAN_UNDO_COMMAND"),gn=wt("FOCUS_COMMAND"),vn=wt("BLUR_COMMAND"),yn=wt("KEY_MODIFIER_COMMAND"),bn=Object.freeze({}),xn=[["keydown",function(e,t){if(_n=e.timeStamp,wn=e.key,t.isComposing())return;fa(t,$t,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Aa(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&Ho(t,(()=>{bi(n)||(An=!0)}))}],["compositionstart",function(e,t){fa(t,At,e)}],["compositionend",function(e,t){K?Ln=!0:V||!Y&&!X?fa(t,Rt,e):(Nn=!0,Mn=e.data)}],["input",function(e,t){e.stopPropagation(),Ho(t,(()=>{t.dispatchCommand(Tt,e)}),{event:e}),Sn=null}],["click",function(e,t){Ho(t,(()=>{const n=io(),r=Ca(ya(t)),o=ao();if(r)if($r(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!Qo(i)&&1===Wi().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()){if(i!==n.focus.getNode()){const e=Ka(i,(e=>Go(e)&&!e.isInline()));Go(e)&&e.select(0)}}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;if(Ta(n)||Ti(n)){Ki(ro(o,r,t,e))}}fa(t,Ct,e)}))}],["cut",bn],["copy",bn],["dragstart",bn],["dragover",bn],["dragend",bn],["paste",bn],["focus",bn],["blur",bn],["drop",bn]];G&&xn.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;if("deleteCompositionText"===n||K&&da(t))return;if("insertCompositionText"===n)return;fa(t,Et,e)}(e,t)]);let _n=0,wn=null,kn=0,Sn=null;const Cn=new WeakMap,En=new WeakMap;let Tn=!1,An=!1,Rn=!1,Ln=!1,Nn=!1,Mn="",On=null,Pn=[0,"",0,"root",0];function zn(e,t,n,r,o){const i=e.anchor,a=e.focus,s=i.getNode(),l=Ao(),u=Ca(ya(l)),c=null!==u?u.anchorNode:null,d=i.key,f=l.getElementByKey(d),p=n.length;return d!==a.key||!Nr(s)||(!o&&(!G||kn<r+50)||s.isDirty()&&p<2||Yi(n))&&i.offset!==a.offset&&!s.isComposing()||Ei(s)||s.isDirty()&&p>1||(o||!G)&&null!==f&&!s.isComposing()&&c!==Ri(f)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||s.getFormat()!==e.format||s.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const n=e.anchor.offset,r=t.getParentOrThrow(),o=Ci(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(Nr(t)||Go(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,s)}function In(e,t){return Ti(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function Dn(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}=e;Tn&&(Tn=!1,In(r,o)&&In(i,a)&&!On)||Ho(t,(()=>{if(!n)return void Ki(null);if(!_i(t,r,i))return;let s=io();if(On&&$r(s)&&s.isCollapsed()){const e=s.anchor,t=On.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=On.clone(),Ki(s))}if(On=null,$r(s)){const n=s.anchor,r=n.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);const o=ya(t).event,i=o?o.timeStamp:performance.now(),[a,l,u,c,d]=Pn,f=Wi(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===u&&n.key===c)jn(s,a,l);else if("text"===n.type)Nr(r)||$("Point.getNode() must return TextNode when type is text"),Fn(s,r);else if("element"===n.type&&!p){Go(r)||$("Point.getNode() must return ElementNode when type is element");const e=n.getNode();e.isEmpty()?function(e,t){const n=t.getTextFormat(),r=t.getTextStyle();jn(e,n,r)}(s,e):jn(s,0,"")}}else{const e=n.key,t=s.focus.key,r=s.getNodes(),i=r.length,l=s.isBackward(),u=l?a:o,c=l?o:a,d=l?t:e,f=l?e:t;let p=2047,h=!1;for(let e=0;e<i;e++){const t=r[e],n=t.getTextContentSize();if(Nr(t)&&0!==n&&!(0===e&&t.__key===d&&u===n||e===i-1&&t.__key===f&&0===c)&&(h=!0,p&=t.getFormat(),0===p))break}s.format=h?p:0}}fa(t,kt,void 0)}))}function jn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Fn(e,t){jn(e,t.getFormat(),t.getStyle())}function Bn(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function $n(e){const t=e.inputType,n=Bn(e),r=Ao(),o=io();if("deleteContentBackward"===t){if(null===o){const e=ao();if(!$r(e))return!0;Ki(e.clone())}if($r(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===wn&&i<_n+30&&r.isComposing()&&t){if(zi(null),_n=0,setTimeout((()=>{Ho(r,(()=>{zi(null)}))}),30),$r(o)){const e=o.anchor.getNode();e.markDirty(),Nr(e)||$("Anchor node must be a TextNode"),Fn(o,e)}}else{zi(null),e.preventDefault();const n=o.anchor.getNode(),i=n.getTextContent(),a=n.canInsertTextAfter(),s=0===o.anchor.offset&&o.focus.offset===i.length;let l=Q&&t&&!s&&a;if(l&&o.isCollapsed()&&(l=!qo(ca(o.anchor,!0))),!l){fa(r,Lt,!0);const e=io();Q&&$r(e)&&e.isCollapsed()&&(On=e,setTimeout((()=>On=null)))}}return!0}}var i;if(!$r(o))return!0;const a=e.data;null!==Sn&&Qi(!1,r,Sn),o.dirty&&null===Sn||!o.isCollapsed()||Qo(o.anchor.getNode())||null===n||o.applyDOMRange(n),Sn=null;const s=o.anchor,l=o.focus,u=s.getNode(),c=l.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===a)e.preventDefault(),fa(r,Nt,!1);else if(a===ue)e.preventDefault(),fa(r,Mt,void 0);else if(null==a&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=a&&zn(o,n,a,e.timeStamp,!0)?(e.preventDefault(),fa(r,Ot,a)):Sn=a;return kn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":fa(r,Ot,e);break;case"insertFromComposition":zi(null),fa(r,Ot,e);break;case"insertLineBreak":zi(null),fa(r,Nt,!1);break;case"insertParagraph":zi(null),Rn&&!V?(Rn=!1,fa(r,Nt,!1)):fa(r,Mt,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":fa(r,Pt,e);break;case"deleteByComposition":(function(e,t){return e!==t||Go(e)||Go(t)||!Ci(e)||!Ci(t)})(u,c)&&fa(r,zt,e);break;case"deleteByDrag":case"deleteByCut":fa(r,zt,e);break;case"deleteContent":fa(r,Lt,!1);break;case"deleteWordBackward":fa(r,It,!0);break;case"deleteWordForward":fa(r,It,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":fa(r,Dt,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":fa(r,Dt,!1);break;case"formatStrikeThrough":fa(r,jt,"strikethrough");break;case"formatBold":fa(r,jt,"bold");break;case"formatItalic":fa(r,jt,"italic");break;case"formatUnderline":fa(r,jt,"underline");break;case"historyUndo":fa(r,Ft,void 0);break;case"historyRedo":fa(r,Bt,void 0)}return!0}function Hn(e){if(Ta(e.target)&&bi(e.target))return!0;const t=Ao(),n=io(),r=e.data,o=Bn(e);if(null!=r&&$r(n)&&zn(n,o,r,e.timeStamp,!1)){Ln&&(Kn(t,r),Ln=!1);const o=n.anchor.getNode(),i=Ca(ya(t));if(null===i)return!0;const a=n.isBackward(),s=a?n.anchor.offset:n.focus.offset,l=a?n.focus.offset:n.anchor.offset;G&&!n.isCollapsed()&&Nr(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,s)+r+o.getTextContent().slice(s+l)===Ji(i.anchorNode)||fa(t,Ot,r);const u=r.length;K&&u>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=u),Y||V||X||!t.isComposing()||(_n=0,zi(null))}else{Qi(!1,t,null!==r?r:void 0),Ln&&(Kn(t,r||void 0),Ln=!1)}return function(){Co();const e=Ao();Te(e)}(),!0}function Wn(e){const t=Ao(),n=io();if($r(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();zi(r.key),(e.timeStamp<_n+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||Nr(o)&&o.getStyle()!==n.style)&&fa(t,Ot,ce)}return!0}function Un(e){return Kn(Ao(),e.data),!0}function Kn(e,t){const n=e._compositionKey;if(zi(null),null!==n&&null!=t){if(""===t){const t=Di(n),r=Ri(e.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&Nr(t)&&Xi(t,r.nodeValue,null,null,!0))}if("\n"===t[t.length-1]){const t=io();if($r(t)){const n=t.focus;return t.anchor.set(n.key,n.offset,n.type),void fa(e,Vt,null)}}}Qi(!0,e,t)}function Gn(e){const t=Ao();if(null==e.key)return!0;if(Nn&&oa(e))return Ho(t,(()=>{Kn(t,Mn)})),Nn=!1,Mn="",!0;if(function(e){return ta(e,"ArrowRight",{shiftKey:"any"})}(e))fa(t,Ht,e);else if(function(e){return ta(e,"ArrowRight",na)}(e))fa(t,Wt,e);else if(function(e){return ta(e,"ArrowLeft",{shiftKey:"any"})}(e))fa(t,Ut,e);else if(function(e){return ta(e,"ArrowLeft",na)}(e))fa(t,Kt,e);else if(function(e){return ta(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))fa(t,Gt,e);else if(function(e){return ta(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))fa(t,Yt,e);else if(function(e){return ta(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))Rn=!0,fa(t,Vt,e);else if(function(e){return" "===e.key}(e))fa(t,qt,e);else if(function(e){return U&&ta(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),Rn=!0,fa(t,Nt,!0);else if(function(e){return ta(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))Rn=!1,fa(t,Vt,e);else if(function(e){return ta(e,"Backspace",{shiftKey:"any"})||U&&ta(e,"h",{ctrlKey:!0})}(e))oa(e)?fa(t,Jt,e):(e.preventDefault(),fa(t,Lt,!0));else if(function(e){return"Escape"===e.key}(e))fa(t,Qt,e);else if(function(e){return ta(e,"Delete",{})||U&&ta(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),fa(t,Lt,!1)):fa(t,Xt,e);else if(function(e){return ta(e,"Backspace",ra)}(e))e.preventDefault(),fa(t,It,!0);else if(function(e){return ta(e,"Delete",ra)}(e))e.preventDefault(),fa(t,It,!1);else if(function(e){return U&&ta(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),fa(t,Dt,!0);else if(function(e){return U&&(ta(e,"Delete",{metaKey:!0})||ta(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),fa(t,Dt,!1);else if(function(e){return ta(e,"b",na)}(e))e.preventDefault(),fa(t,jt,"bold");else if(function(e){return ta(e,"u",na)}(e))e.preventDefault(),fa(t,jt,"underline");else if(function(e){return ta(e,"i",na)}(e))e.preventDefault(),fa(t,jt,"italic");else if(function(e){return ta(e,"Tab",{shiftKey:"any"})}(e))fa(t,Zt,e);else if(function(e){return ta(e,"z",na)}(e))e.preventDefault(),fa(t,Ft,void 0);else if(function(e){if(U)return ta(e,"z",{metaKey:!0,shiftKey:!0});return ta(e,"y",{ctrlKey:!0})||ta(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),fa(t,Bt,void 0);else{const n=t._editorState._selection;null===n||$r(n)?ia(e)&&(e.preventDefault(),fa(t,dn,e)):!function(e){return ta(e,"c",na)}(e)?!function(e){return ta(e,"x",na)}(e)?ia(e)&&(e.preventDefault(),fa(t,dn,e)):(e.preventDefault(),fa(t,cn,e)):(e.preventDefault(),fa(t,un,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(yn,e),!0}function Yn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const Vn=new Map;function qn(e){const t=function(e){const t=va(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=ki(t.anchorNode);if(null===n)return;An&&(An=!1,Ho(n,(()=>{const r=ao(),o=t.anchorNode;if(Ta(o)||Ti(o)){Ki(ro(r,t,n,e))}})));const r=Vi(n),o=r[r.length-1],i=o._key,a=Vn.get(i),s=a||o;s!==n&&Dn(t,s,!1),Dn(t,n,!0),n!==o?Vn.set(i,n):a&&Vn.delete(i)}function Jn(e){e._lexicalHandled=!0}function Qn(e){return!0===e._lexicalHandled}const Xn=function(e){{let t=!1;return()=>{t||console.warn(e),t=!0}}}("Root element not registered");function Zn(e){const t=Cn.get(e);if(void 0===t)return void Xn();const n=En.get(t);if(void 0===n)return void Xn();const r=n-1;r>=0||$("Root element count less than 0"),Cn.delete(e),En.set(t,r),0===r&&t.removeEventListener("selectionchange",qn);const o=Si(e);wi(o)?(!function(e){if(null!==e._parentEditor){const t=Vi(e),n=t[t.length-1]._key;Vn.get(n)===e&&Vn.delete(n)}else Vn.delete(e._key)}(o),e.__lexicalEditor=null):o&&$("Attempted to remove event handlers from a node that does not belong to this build of Lexical");const i=Yn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}function er(e,t,n){Co();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=io();if(!$r(t)||!Go(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();ga(o,e)&&n.set(e.__key,0,"element");ga(i,e)&&r.set(e.__key,0,"element");return t}(e);let a=!1;if($r(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(uo(t,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0),n.key===r&&(uo(n,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0)}else Wr(i)&&t&&e.isSelected()&&e.selectPrevious();if($r(i)&&t&&!a){const t=e.getIndexWithinParent();Oi(e),so(i,o,t,-1)}else Oi(e);n||ba(o)||o.canBeEmpty()||!o.isEmpty()||er(o,t),t&&i&&Qo(o)&&o.isEmpty()&&o.selectEnd()}const tr=Symbol.for("ephemeral");function nr(e){return e[tr]||!1}class rr{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=Ua(this);return void 0===e&&$(`LexicalNode: Node ${this.name} does not implement .getType().`),e}static clone(e){$(`LexicalNode: Node ${this.name} does not implement .clone().`)}$config(){return{}}config(e,t){const n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),Mi(this,e),"root"!==this.__type&&function(e,t){const n=gi(Ao(),e);void 0===n&&$(`Create node: Attempted to create node ${t.name} that was not configured to be used on the editor.`);const r=n.klass;r!==t&&$(`Create node: Type ${e} in node ${t.name} does not match registered node ${r.name} with the same type`)}(this.__type,this.constructor)}getType(){return this.__type}isInline(){$(`LexicalNode: Node ${this.constructor.name} does not implement .isInline().`)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=Di(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||io();if(null==t)return!1;const n=t.getNodes().some((e=>e.__key===this.__key));if(Nr(this))return n;if($r(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(qo(this)&&this.isInline()&&e){const n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(null===e)return-1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return null===e?null:Di(e)}getParentOrThrow(){const e=this.getParent();return null===e&&$(`Expected node ${this.__key} to have a parent.`),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(ba(t))return Go(e)||e===this&&qo(e)||$("Children of root nodes must be elements or decorators"),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&$(`Expected node ${this.__key} to have a top parent element.`),e}getParents(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return null===e?null:Di(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return null===e?null:Di(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=Go(this)?this:this.getParent(),n=Go(e)?e:e.getParent(),r=t&&n?ws(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=ws(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===bs(t):("same"!==t.type&&"ancestor"!==t.type&&$("LexicalNode.isBefore: exhaustiveness check"),!1)))}isParentOf(e){const t=ws(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){const t=this.isBefore(e),n=[],r=new Set;let o=this;for(;null!==o;){const i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;const a=Go(o)?t?o.getFirstChild():o.getLastChild():null;if(null!==a){o=a;continue}const s=t?o.getNextSibling():o.getPreviousSibling();if(null!==s){o=s;continue}const l=o.getParentOrThrow();if(r.has(l.__key)||n.push(l),l===e)break;let u=null,c=l;do{if(null===c&&$("getNodesBetween: ancestor is null"),u=t?c.getNextSibling():c.getPreviousSibling(),c=c.getParent(),null===c)break;null!==u||r.has(c.__key)||n.push(c)}while(null===u);o=u}return t||n.reverse(),n}isDirty(){const e=Ao()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(nr(this))return this;const e=Di(this.__key);return null===e&&$("Lexical node does not exist in active editor state. Avoid using the same node references between nested closures from editorState.read/editor.update."),e}getWritable(){if(nr(this))return this;Co();const e=To(),t=Ao(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,a=io();if(null!==a&&a.setCachedNodes(null),i.has(r))return Pi(o),o;const s=Da(o);return i.add(r),Pi(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){$("createDOM: base method not extended")}updateDOM(e,t,n){$("updateDOM: base method not extended")}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){$(`LexicalNode: Node ${this.name} does not implement .importJSON().`)}updateFromJSON(e){return Me(this,e)}static transform(){return null}remove(e){er(this,!0,e)}replace(e,t){Co();let n=io();null!==n&&(n=n.clone()),wa(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),l=s.__size;Oi(a);const u=r.getPreviousSibling(),c=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(er(r,!1,!0),null===u)s.__first=i;else{u.getWritable().__next=i}if(a.__prev=d,null===c)s.__last=i;else{c.getWritable().__prev=i}if(a.__next=f,a.__parent=p,s.__size=l,t&&(Go(this)&&Go(a)||$("includeChildren should only be true for ElementNodes"),this.getChildren().forEach((e=>{a.append(e)}))),$r(n)){Ki(n);const e=n.anchor,t=n.focus;e.key===o&&Fr(e,a),t.key===o&&Fr(t,a)}return Ii()===o&&zi(i),a}insertAfter(e,t=!0){Co(),wa(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=io();let a=!1,s=!1;if(null!==o){const t=e.getIndexWithinParent();if(Oi(r),$r(i)){const e=o.__key,n=i.anchor,r=i.focus;a="element"===n.type&&n.key===e&&n.offset===t+1,s="element"===r.type&&r.key===e&&r.offset===t+1}}const l=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),c=r.__key,d=n.__next;if(null===l)u.__last=c;else{l.getWritable().__prev=c}if(u.__size++,n.__next=c,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&$r(i)){const e=this.getIndexWithinParent();so(i,u,e+1);const t=u.__key;a&&i.anchor.set(t,e+2,"element"),s&&i.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){Co(),wa(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;Oi(r);const i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),s=n.__prev,l=this.getIndexWithinParent();if(null===i)a.__first=o;else{i.getWritable().__next=o}a.__size++,n.__prev=o,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;const u=io();if(t&&$r(u)){so(u,this.getParentOrThrow(),l)}return e}isParentRequired(){return!1}createParentElementNode(){return ii()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Co();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(Go(n))return n.select();if(!Nr(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){Co();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(Go(n))return n.select(0,0);if(!Nr(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}const or="historic",ir="history-merge",ar="collaboration",sr="skip-scroll-into-view",lr="skip-dom-selection",ur="skip-selection-focus";class cr extends rr{static getType(){return"linebreak"}static clone(e){return new cr(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(e){const t=e.parentElement;if(null!==t&&Na(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&hr(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&hr(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&Na(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&hr(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&hr(r))return!0}return!1}(e)?null:{conversion:dr,priority:0}}}static importJSON(e){return fr().updateFromJSON(e)}}function dr(e){return{node:fr()}}function fr(){return _a(new cr)}function pr(e){return e instanceof cr}function hr(e){return Ti(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function mr(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function gr(e,t){return 1&t?"strong":2&t?"em":"span"}function vr(e,t,n,r,o){const i=r.classList;let a=aa(o,"base");void 0!==a&&i.add(...a),a=aa(o,"underlineStrikethrough");let s=!1;const l=8&t&&4&t;void 0!==a&&(8&n&&4&n?(s=!0,l||i.add(...a)):l&&i.remove(...a));for(const e in de){const r=de[e];if(a=aa(o,e),void 0!==a)if(n&r){if(s&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...a);continue}t&r&&(!l||"underline"!==e)&&"strikethrough"!==e||i.add(...a)}else t&r&&i.remove(...a)}}function yr(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?le:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||K){const[t,n,o]=function(e,t){const n=e.length,r=t.length;let o=0,i=0;for(;o<n&&o<r&&e[o]===t[o];)o++;for(;i+o<n&&i+o<r&&e[n-i-1]===t[r-i-1];)i++;return[o,n-o-i,t.slice(o,r-i)]}(e,i);0!==n&&r.deleteData(t,n),r.insertData(t,o)}else r.nodeValue=i}}function br(e,t,n,r,o,i){yr(o,e,t);const a=i.theme.text;void 0!==a&&vr(0,0,r,e,a)}function xr(e,t){const n=document.createElement(t);return n.appendChild(e),n}class _r extends rr{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new _r(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return ge[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Ii()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=de[e];return!!(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Li(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=mr(0,n),o=gr(0,n),i=null===r?o:r,a=document.createElement(i);let s=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),null!==r&&(s=document.createElement(o),a.appendChild(s));br(s,this,0,n,this.__text,e);const l=this.__style;return""!==l&&(a.style.cssText=l),a}updateDOM(e,t,n){const r=this.__text,o=e.__format,i=this.__format,a=mr(0,o),s=mr(0,i),l=gr(0,o),u=gr(0,i);if((null===a?l:a)!==(null===s?u:s))return!0;if(a===s&&l!==u){const e=t.firstChild;null==e&&$("updateDOM: prevInnerDOM is null or undefined");const o=document.createElement(u);return br(o,this,0,i,r,n),t.replaceChild(o,e),!1}let c=t;null!==s&&null!==a&&(c=t.firstChild,null==c&&$("updateDOM: innerDOM is null or undefined")),yr(r,c,this);const d=n.theme.text;void 0!==d&&o!==i&&vr(0,o,i,c,d);const f=e.__style,p=this.__style;return f!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:Er,priority:0}),b:()=>({conversion:kr,priority:0}),code:()=>({conversion:Rr,priority:0}),em:()=>({conversion:Rr,priority:0}),i:()=>({conversion:Rr,priority:0}),mark:()=>({conversion:Rr,priority:0}),s:()=>({conversion:Rr,priority:0}),span:()=>({conversion:wr,priority:0}),strong:()=>({conversion:Rr,priority:0}),sub:()=>({conversion:Rr,priority:0}),sup:()=>({conversion:Rr,priority:0}),u:()=>({conversion:Rr,priority:0})}}static importJSON(e){return Lr().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return Ta(t)||$("Expected TextNode createDOM to always return a HTMLElement"),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=xr(t,"b")),this.hasFormat("italic")&&(t=xr(t,"i")),this.hasFormat("strikethrough")&&(t=xr(t,"s")),this.hasFormat("underline")&&(t=xr(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format="string"==typeof e?de[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?fe[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=Li(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=me[e];if(this.__mode===t)return this;const n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){Co();let n=e,r=t;const o=io(),i=this.getTextContent(),a=this.__key;if("string"==typeof i){const e=i.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!$r(o))return eo(a,n,a,r,"text","text");{const e=Ii();e!==o.anchor.key&&e!==o.focus.key||zi(a),o.setTextNodeRange(this,n,this,r)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){const o=this.getWritable(),i=o.__text,a=n.length;let s=e;s<0&&(s=a+s,s<0&&(s=0));const l=io();if(r&&$r(l)){const t=e+a;l.setTextNodeRange(o,t,o,t)}const u=i.slice(0,s)+n+i.slice(s+t);return o.__text=u,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Co();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=Ii(),i=n.length;e.sort(((e,t)=>e-t)),e.push(i);const a=[],s=e.length;for(let t=0,r=0;t<i&&r<=s;r++){const o=e[r];o>t&&(a.push(n.slice(t,o)),t=o)}const l=a.length;if(1===l)return[t];const u=a[0],c=t.getParent();let d;const f=t.getFormat(),p=t.getStyle(),h=t.__detail;let m=!1,g=null,v=null;const y=io();if($r(y)){const[e,t]=y.isBackward()?[y.focus,y.anchor]:[y.anchor,y.focus];"text"===e.type&&e.key===r&&(g=e),"text"===t.type&&t.key===r&&(v=t)}t.isSegmented()?(d=Lr(u),d.__format=f,d.__style=p,d.__detail=h,d.__state=Ie(t,d),m=!0):d=t.setTextContent(u);const b=[d];for(let e=1;e<l;e++){const n=Lr(a[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=Ie(t,n);const i=n.__key;o===r&&zi(i),b.push(n)}const x=g?g.offset:null,_=v?v.offset:null;let w=0;for(const e of b){if(!g&&!v)break;const t=w+e.getTextContentSize();if(null!==g&&null!==x&&x<=t&&x>=w&&(g.set(e.getKey(),x-w,"text"),x<t&&(g=null)),null!==v&&null!==_&&_<=t&&_>=w){v.set(e.getKey(),_-w,"text");break}w=t}if(null!==c){!function(e){const t=e.getPreviousSibling(),n=e.getNextSibling();null!==t&&Pi(t);null!==n&&Pi(n)}(this);const e=c.getWritable(),t=this.getIndexWithinParent();m?(e.splice(t,0,b),this.remove()):e.splice(t,1,b),$r(y)&&so(y,c,t,l-1)}return b}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||$("mergeWithSibling: sibling must be a previous or next sibling");const n=this.__key,r=e.__key,o=this.__text,i=o.length;Ii()===r&&zi(n);const a=io();if($r(a)){const o=a.anchor,s=a.focus;null!==o&&o.key===r&&co(o,t,n,e,i),null!==s&&s.key===r&&co(s,t,n,e,i)}const s=e.__text,l=t?s+o:o+s;this.setTextContent(l);const u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}}function wr(e){return{forChild:Mr(e.style),node:null}}function kr(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:Mr(t.style,n?void 0:"bold"),node:null}}const Sr=new WeakMap;function Cr(e){if(!Ta(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function Er(e){const t=e;null===e.parentElement&&$("Expected parentElement of Text not to be null");let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=Sr.get(n))&&!Cr(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)Sr.set(r[e],o);return o}(t)){const e=n.split(/(\r?\n|\t)/),t=[],r=e.length;for(let n=0;n<r;n++){const r=e[n];"\n"===r||"\r\n"===r?t.push(fr()):"\t"===r?t.push(Pr()):""!==r&&t.push(Lr(r))}return{node:t}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===n)return{node:null};if(" "===n[0]){let e=t,r=!0;for(;null!==e&&null!==(e=Tr(e,!1));){const t=e.textContent||"";if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let e=t,r=!0;for(;null!==e&&null!==(e=Tr(e,!0));){if((e.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:Lr(n)}}function Tr(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){const e=n.parentElement;if(null===e)return null;n=e}if(n=e,Ta(n)){const e=n.style.display;if(""===e&&!La(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(Ti(n))return n;if("BR"===n.nodeName)return null}}const Ar={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Rr(e){const t=Ar[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:Mr(e.style,t),node:null}}function Lr(e=""){return _a(new _r(e))}function Nr(e){return e instanceof _r}function Mr(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),a="italic"===e.fontStyle,s=r.includes("underline"),l=e.verticalAlign;return e=>Nr(e)?(o&&!e.hasFormat("bold")&&e.toggleFormat("bold"),i&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),a&&!e.hasFormat("italic")&&e.toggleFormat("italic"),s&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==l||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==l||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}class Or extends _r{static getType(){return"tab"}static clone(e){return new Or(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=aa(e.theme,"tab");if(void 0!==n){t.classList.add(...n)}return t}static importJSON(e){return Pr().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&$("TabNode does not support setTextContent"),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||$("TabNode does not support spliceText"),this}setDetail(e){return 2!==e&&$("TabNode does not support setDetail"),this}setMode(e){return"normal"!==e&&$("TabNode does not support setMode"),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Pr(){return _a(new Or)}function zr(e){return e instanceof Or}class Ir{key;offset;type;_selection;constructor(e,t,n){Object.defineProperty(this,"_selection",{enumerable:!1,writable:!0}),this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){if(this.key===e.key)return this.offset<e.offset;return ys(Ns(ks(this,"next")),Ns(ks(e,"next")))<0}getNode(){const e=Di(this.key);return null===e&&$("Point.getNode: node not found"),e}set(e,t,n,r){const o=this._selection,i=this.key;if(!r||this.key!==e||this.offset!==t||this.type!==n){this.key=e,this.offset=t,this.type=n;{const t=Di(e);("text"===n?Nr(t):Go(t))||$(`PointType.set: node with key ${e} is ${t?t.__type:"[not found]"} and can not be used for a ${n} point`)}So()||(Ii()===i&&zi(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0))}}}function Dr(e,t,n){return new Ir(e,t,n)}function jr(e,t){let n=t.__key,r=e.offset,o="element";if(Nr(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!Go(t)){const e=t.getNextSibling();if(Nr(e))n=e.__key,r=0,o="text";else{const e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function Fr(e,t){if(Go(t)){const n=t.getLastDescendant();Go(n)||Nr(n)?jr(e,n):jr(e,t)}else jr(e,t)}class Br{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Wr(e))return!1;const t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((e=>n.has(e)))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Br(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),n=t.length,r=t[n-1];let o;if(Nr(r))o=r.select();else{const e=r.getIndexWithinParent()+1;o=r.getParentOrThrow().select(e,e)}o.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=this._nodes,n=[];for(const e of t){const t=Di(e);null!==t&&n.push(t)}return So()||(this._cachedNodes=n),n}getTextContent(){const e=this.getNodes();let t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((io()||ao())===this&&e[0]){const t=as(e[0],"next");Cs(gs(t,t))}for(const t of e)t.remove()}}function $r(e){return e instanceof Hr}class Hr{format;style;anchor;focus;_cachedNodes;dirty;constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!$r(e)&&(this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=function(e){const t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);const o=new Set,i=new Set;for(const n of e)if(ns(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;Go(e)&&i.has(e)||t.push(e)}r&&t.push(r.caret.origin);if(ts(e.focus)&&Go(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=cs(e.focus.origin,"previous");ns(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=ds(n))o.delete(n.origin),t.pop();for(;t.length>1;){const e=t[t.length-1];if(!Go(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=Ns(e.anchor),r=Ns(e.anchor.getFlipped()),o=e=>es(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(Ps(Ts(this),"next"));return this.isCollapsed()&&t.length>1&&$(`RangeSelection.getNodes() returned ${String(t.length)} > 1 nodes in a collapsed selection`),So()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){const e=this.getNodes();if(0===e.length)return"";const t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[a,s]=Kr(this);let l="",u=!0;for(let c=0;c<e.length;c++){const d=e[c];if(Go(d)&&!d.isInline())u||(l+="\n"),u=!d.isEmpty();else if(u=!1,Nr(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=a<s?e.slice(a,s):e.slice(s,a)):e=i?e.slice(a):e.slice(s):d===n&&(e=i?e.slice(0,s):e.slice(0,a)),l+=e}else!qo(d)&&!pr(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(e){const t=Ao(),n=t.getEditorState()._selection,r=Xr(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;const[o,i]=r;this.anchor.set(o.key,o.offset,o.type,!0),this.focus.set(i.key,i.offset,i.type,!0),Be(this)}clone(){const e=this.anchor,t=this.focus;return new Hr(Dr(e.key,e.offset,e.type),Dr(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Li(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=de[e];return!!(this.format&t)}insertRawText(e){const t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){const r=t[e];"\n"===r||"\r\n"===r?n.push(fr()):"\t"===r?n.push(Pr()):n.push(Lr(r))}this.insertNodes(n)}insertText(e){const t=this.anchor,n=this.focus,r=this.format,o=this.style;let i=t,a=n;!this.isCollapsed()&&n.isBefore(t)&&(i=n,a=t),"element"===i.type&&function(e,t,n,r){const o=e.getNode(),i=o.getChildAtIndex(e.offset),a=Lr();if(a.setFormat(n),a.setStyle(r),ai(i))i.splice(0,0,[a]);else{const e=Qo(o)?ii().append(a):a;null===i?o.append(e):i.insertBefore(e)}e.is(t)&&t.set(a.__key,0,"text"),e.set(a.__key,0,"text")}(i,a,r,o),"element"===a.type&&Ss(a,Ns(ks(a,"next")));const s=i.offset;let l=a.offset;const u=this.getNodes(),c=u.length;let d=u[0];Nr(d)||$("insertText: first node is not a text node");const f=d.getTextContent().length,p=d.getParentOrThrow();let h=u[c-1];if(1===c&&"element"===a.type&&(l=f,a.set(i.key,l,"text")),this.isCollapsed()&&s===f&&(Ei(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(Nr(t)&&t.canInsertTextBefore()&&!Ei(t)||(t=Lr(),t.setFormat(r),t.setStyle(o),p.canInsertTextAfter()?d.insertAfter(t):p.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===s&&(Ei(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(Nr(t)&&!Ei(t)||(t=Lr(),t.setFormat(r),p.canInsertTextBefore()?d.insertBefore(t):p.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&s!==f){const e=Lr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||Go(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Qr(this.anchor,this.focus,null),void this.insertText(e)}if(1===c){if(Ci(d)){const t=Lr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(s!==l||t===r&&n===o){if(zr(d)){const t=Lr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=Lr(e);if(t.setFormat(r),t.setStyle(o),t.select(),0===s)d.insertBefore(t,!1);else{const[e]=d.splitText(s);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(r),d.setStyle(o)}const i=l-s;d=d.spliceText(s,i,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(d.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n))}else{const t=new Set([...d.getParentKeys(),...h.getParentKeys()]),n=Go(d)?d:d.getParentOrThrow();let r=Go(h)?h:h.getParentOrThrow(),o=h;if(!n.is(r)&&r.isInline())do{o=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===a.type&&(0!==l||""===h.getTextContent())||"element"===a.type&&h.getIndexWithinParent()<l)if(Nr(h)&&!Ci(h)&&l!==h.getTextContentSize()){if(h.isSegmented()){const e=Lr(h.getTextContent());h.replace(e),h=e}Qo(a.getNode())||"text"!==a.type||(h=h.spliceText(0,l,"")),t.add(h.__key)}else{const e=h.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?h.remove():e.remove()}else t.add(h.__key);const i=r.getChildren(),p=new Set(u),m=n.is(r),g=n.isInline()&&null===d.getNextSibling()?n:d;for(let e=i.length-1;e>=0;e--){const t=i[e];if(t.is(d)||Go(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(o)?m||g.insertAfter(t,!1):t.remove())}if(!m){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),o=r.length;(0===o||r[o-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(Ci(d))if(s===f)d.select();else{const t=Lr(e);t.select(),d.replace(t)}else d=d.spliceText(s,f-s,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(d.isComposing()?this.anchor.offset-=e.length:(this.format=d.getFormat(),this.style=d.getStyle()));for(let e=1;e<c;e++){const n=u[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const e=io()===this,t=function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=Ps(e,r),a=Rs(i.anchor,n),s=Rs(i.focus.getFlipped(),n),l=new Set,u=[];for(const e of i.iterNodeCarets(n))if(ns(e))l.add(e.origin.getKey());else if(ts(e)){const{origin:t}=e;Go(t)&&!l.has(t.getKey())||u.push(t)}for(const e of u)e.remove();for(const e of i.getTextSlices()){if(!e)continue;const{origin:t}=e.caret,n=t.getTextContentSize(),i=As(as(t,r)),l=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===o||"token"===l&&0!==e.distance)i.remove();else if(0!==e.distance){o="removeEmptySlices";let t=e.removeTextSlice();const n=e.caret.origin;if("segmented"===l){const e=t.origin,n=Lr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=ss(n,r,t.offset)}n.is(a[0].origin)&&(a[0]=t),n.is(s[0].origin)&&(s[0]=t.getFlipped())}}let c,d;for(const e of a)if(Ls(e)){c=Ns(e);break}for(const e of s)if(Ls(e)){d=Ns(e);break}const f=function(e,t,n){if(!e||!t)return null;const r=e.getParentAtCaret(),o=t.getParentAtCaret();if(!r||!o)return null;const i=r.getParents().reverse();i.push(r);const a=o.getParents().reverse();a.push(o);const s=Math.min(i.length,a.length);let l;for(l=0;l<s&&i[l]===a[l];l++);const u=(e,t)=>{let n;for(let r=l;r<e.length;r++){const o=e[r];if(ba(o))return;!n&&t(o)&&(n=o)}return n},c=u(i,Ma),d=c&&u(a,(e=>n.has(e.getKey())&&Ma(e)));return c&&d?[c,d]:null}(c,d,l);if(f){const[e,t]=f;cs(e,"previous").splice(0,t.getChildren()),t.remove()}const p=[c,d,...a,...s].find(Ls);if(p){return ms(Os(Ns(p),e.direction))}$(`$removeTextFromCaretRange: selection was lost, could not find a new anchor given candidates with keys: ${JSON.stringify(a.map((e=>e.origin.__key)))}`)}(Ts(this));Es(this,t),e&&io()!==this&&Ki(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void zi(null);const n=this.getNodes(),r=[];for(const e of n)Nr(e)&&r.push(e);const o=t=>{n.forEach((n=>{if(Go(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}}))},i=r.length;if(0===i)return this.toggleFormat(e),zi(null),void o(t);const a=this.anchor,s=this.focus,l=this.isBackward(),u=l?s:a,c=l?a:s;let d=0,f=r[0],p="element"===u.type?0:u.offset;if("text"===u.type&&p===f.getTextContentSize()&&(d=1,f=r[1],p=0),null==f)return;const h=f.getFormatFlags(e,t);o(h);const m=i-1;let g=r[m];const v="text"===c.type?c.offset:g.getTextContentSize();if(f.is(g)){if(p===v)return;if(Ei(f)||0===p&&v===f.getTextContentSize())f.setFormat(h);else{const e=f.splitText(p,v),t=0===p?e[0]:e[1];t.setFormat(h),"text"===u.type&&u.set(t.__key,0,"text"),"text"===c.type&&c.set(t.__key,v-p,"text")}return void(this.format=h)}0===p||Ei(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const y=g.getFormatFlags(e,h);v>0&&(v===g.getTextContentSize()||Ei(g)||([g]=g.splitText(v)),g.setFormat(y));for(let t=d+1;t<m;t++){const n=r[t],o=n.getFormatFlags(e,y);n.setFormat(o)}"text"===u.type&&u.set(f.__key,p,"text"),"text"===c.type&&c.set(g.__key,v,"text"),this.format=h|y}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const t=io();return $r(t)||$("Expected RangeSelection after insertParagraph"),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=Ka(t,Ma),r=e[e.length-1];if(Go(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=mo(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some((e=>(Go(e)||qo(e))&&!e.isInline()))){Go(n)||$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`);const o=mo(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=ii();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=pr(o);if(i||qo(o)&&o.isInline()||Go(o)&&o.isInline()||Nr(o)||o.isParentRequired()){if(null===n&&(n=o.createParentElementNode(),t.append(n),i))continue;null!==n&&n.append(o)}else t.append(o),n=null}return t}(e),i=o.getLastDescendant(),a=o.getChildren(),s=!Go(n)||!n.isEmpty()?this.insertParagraph():null,l=a[a.length-1];let u=a[0];(e=>Go(e)&&Ma(e)&&!e.isEmpty()&&Go(n)&&(!n.isEmpty()||n.canMergeWhenEmpty()))(u)&&(Go(n)||$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ElementNode ancestor`),n.append(...u.getChildren()),u=a[1]),u&&(null===n&&$(`Expected node ${t.constructor.name} of type ${t.getType()} to have a block ancestor`),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||$("insertRangeAfter: lastToInsert must be a later sibling of firstToInsert"),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,u));const c=Ka(i,Ma);s&&Go(c)&&(s.canMergeWhenEmpty()||Ma(l))&&(c.append(...s.getChildren()),s.remove()),Go(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const d=Go(n)?n.getLastChild():null;pr(d)&&c!==n&&d.remove()}insertParagraph(){if("root"===this.anchor.key){const e=ii();return Wi().splice(this.anchor.offset,0,[e]),e.select(),e}const e=mo(this),t=Ka(this.anchor.getNode(),Ma);Go(t)||$("Expected ancestor to be a block ElementNode");const n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...r),o.selectStart(),o):null}insertLineBreak(e){const t=fr();if(this.insertNodes([t]),e){const e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){const e=[...this.getNodes()],t=e.length;let n=e[0],r=e[t-1];const[o,i]=Kr(this),a=this.isBackward(),[s,l]=a?[this.focus,this.anchor]:[this.anchor,this.focus],[u,c]=a?[i,o]:[o,i];if(0===t)return[];if(1===t){if(Nr(n)&&!this.isCollapsed()){const e=n.splitText(u,c),t=0===u?e[0]:e[1];return t?(s.set(t.getKey(),0,"text"),l.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[n]}if(Nr(n)&&(u===n.getTextContentSize()?e.shift():0!==u&&([,n]=n.splitText(u),e[0]=n,s.set(n.getKey(),0,"text"))),Nr(r)){const t=r.getTextContent().length;0===c?e.pop():c!==t&&([r]=r.splitText(c),e[e.length-1]=r,l.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,t,n){if(vo(this,e,t,n))return;const r="move"===e,o=Ao(),i=Ca(ya(o));if(!i)return;const a=o._blockCursorElement,s=o._rootElement,l=this.focus.getNode();if(null===s||null===a||!Go(l)||l.isInline()||l.canBeEmpty()||Sa(a,o,s),this.dirty){let e=pa(o,this.anchor.key),t=pa(o,this.focus.key);"text"===this.anchor.type&&(e=Ri(e)),"text"===this.focus.type&&(t=Ri(t)),e&&t&&fo(i,e,this.anchor.offset,t,this.focus.offset)}if(function(e,t,n,r){e.modify(t,n,r)}(i,e,t?"backward":"forward",n),i.rangeCount>0){const e=i.getRangeAt(0),n=this.anchor.getNode(),o=Qo(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(ba(t))return t;t=t.getParentOrThrow()}return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!r){const n=this.getNodes(),r=[];let a=!1;for(let e=0;e<n.length;e++){const t=n[e];ga(t,o)?r.push(t):a=!0}if(a&&r.length>0)if(t){const e=r[0];Go(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];Go(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}i.anchorNode===e.startContainer&&i.anchorOffset===e.startOffset||function(e){const t=e.focus,n=e.anchor,r=n.key,o=n.offset,i=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,o,i,!0)}(this)}}"lineboundary"===n&&vo(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&Go(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){const e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(Go(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const t=this.anchor;let n=t.getNode();if(this.forwardDeletion(t,n,e))return;const r=hs(ks(t,e?"previous":"next"));if(r.getTextSlices().every((e=>null===e||0===e.distance))){let e={type:"initial"};for(const t of r.iterNodeCarets("shadowRoot"))if(ns(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(Go(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=Ns(t);Es(this,gs(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(ts(t)){if(Go(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(qo(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&Go(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=no();e.add(t.origin.getKey()),Ki(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return Es(this,gs(!t.origin.isEmpty()&&n.isEmpty()?As(as(n,t.direction)):r.anchor,t)),this.removeText()}}const o=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&Gr(this,t.getNode()))return}else{const r="text"===o.type?o.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){const t=o.offset,i=r.getTextContentSize();if(r.is(n)||e&&t!==i||!e&&0!==t)return void Vr(r,e,t)}else if(null!==n&&n.isSegmented()){const o=t.offset,i=n.getTextContentSize();if(n.is(r)||e&&0!==o||!e&&o!==i)return void Vr(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode(),i=r.getNode();if(o===i&&"text"===n.type&&"text"===r.type){const e=n.offset,i=r.offset,a=e<i,s=a?e:i,l=a?i:e,u=l-1;if(s!==u){(function(e){e.length>1||$("shouldDeleteExactlyOneCodeUnit: expecting to be called only with sequences of two or more code units");return!(Yi(e)||Yr(e))})(o.getTextContent().slice(s,l))&&(t?r.set(r.key,u,r.type):n.set(n.key,u,n.type))}}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const e=this.anchor.getNode();e.isEmpty()&&Qo(e.getParent())&&null===e.getPreviousSibling()&&Gr(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Wr(e){return e instanceof Br}function Ur(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Kr(e){const t=e.getStartEndPoints();if(null===t)return[0,0];const[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[Ur(n),Ur(r)]}function Gr(e,t){for(let n=t;n;n=n.getParent()){if(Go(n)){if(n.collapseAtStart(e))return!0;if(ba(n))break}if(n.getPreviousSibling())break}return!1}const Yr=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Vr(e,t,n){const r=e,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let a=0,s=0;for(let e=0;e<i;e++){const r=e===i-1;if(s=a,a+=o[e].length,t&&a===n||a>n||r){o.splice(e,1),r&&(s=void 0);break}}const l=o.join("").trim();""===l?r.remove():(r.setTextContent(l),r.select(s,s))}function qr(e,t,n,r){let o,i=t;if(Ta(e)){let a=!1;const s=e.childNodes,l=s.length,u=r._blockCursorElement;i===l&&(a=!0,i=l-1);let c=s[i],d=!1;if(c===u)c=s[i+1],d=!0;else if(null!==u){const n=u.parentNode;if(e===n){t>Array.prototype.indexOf.call(n.children,u)&&i--}}if(o=Gi(c),Nr(o))i=ls(o,a?"next":"previous");else{let s=Gi(e);if(null===s)return null;if(Go(s)){const l=r.getElementByKey(s.getKey());null===l&&$("$internalResolveSelectionPoint: node in DOM but not keyToDOMMap");const u=s.getDOMSlot(l);[s,i]=u.resolveChildIndex(s,l,e,t),Go(s)||$("$internalResolveSelectionPoint: resolvedElement is not an ElementNode"),a&&i>=s.getChildrenSize()&&(i=Math.max(0,s.getChildrenSize()-1));let c=s.getChildAtIndex(i);if(Go(c)&&function(e,t,n){const r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(c,0,n)){const e=a?c.getLastDescendant():c.getFirstDescendant();null===e?s=c:(c=e,s=Go(c)?c:c.getParentOrThrow()),i=0}Nr(c)?(o=c,s=null,i=ls(c,a?"next":"previous")):c!==s&&a&&!d&&(Go(s)||$("invariant"),i=Math.min(s.getChildrenSize(),i+1))}else{const n=s.getIndexWithinParent();i=0===t&&qo(s)&&Gi(e)===s?n:n+1,s=s.getParentOrThrow()}if(Go(s))return Dr(s.__key,i,"element")}}else o=Gi(e);return Nr(o)?Dr(o.__key,ls(o,i,"clamp"),"text"):null}function Jr(e,t,n){const r=e.offset,o=e.getNode();if(0===r){const r=o.getPreviousSibling(),i=o.getParent();if(t){if((n||!t)&&null===r&&Go(i)&&i.isInline()){const t=i.getPreviousSibling();Nr(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else Go(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):Nr(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&Go(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&Go(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();Nr(t)&&e.set(t.__key,0,"text")}}}function Qr(e,t,n){if("text"===e.type&&"text"===t.type){const r=e.isBefore(t),o=e.is(t);Jr(e,r,o),Jr(t,!r,o),o&&t.set(e.key,e.offset,e.type);const i=Ao();if(i.isComposing()&&i._compositionKey!==e.key&&$r(n)){const r=n.anchor,o=n.focus;e.set(r.key,r.offset,r.type,!0),t.set(o.key,o.offset,o.type,!0)}}}function Xr(e,t,n,r,o,i){if(null===e||null===n||!_i(o,e,n))return null;const a=qr(e,t,$r(i)?i.anchor:null,o);if(null===a)return null;const s=qr(n,r,$r(i)?i.focus:null,o);if(null===s)return null;if(oo("anchor",a),oo("focus",s),"element"===a.type&&"element"===s.type){const t=Gi(e),r=Gi(n);if(qo(t)&&qo(r))return null}return Qr(a,s,i),[a,s]}function Zr(e){return Go(e)&&!e.isInline()}function eo(e,t,n,r,o,i){const a=To(),s=new Hr(Dr(e,t,o),Dr(n,r,i),0,"");return s.dirty=!0,a._selection=s,s}function to(){const e=Dr("root",0,"element"),t=Dr("root",0,"element");return new Hr(e,t,0,"")}function no(){return new Br(new Set)}function ro(e,t,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,a=i?i.type:void 0,s="selectionchange"===a,l=!be&&(s||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&i&&3===i.detail||"drop"===a||void 0===a);let u,c,d,f;if($r(e)&&!l)return e.clone();if(null===t)return null;if(u=t.anchorNode,c=t.focusNode,d=t.anchorOffset,f=t.focusOffset,(s||void 0===a)&&$r(e)&&!_i(n,u,c))return e.clone();const p=Xr(u,d,c,f,n,e);if(null===p)return null;const[h,m]=p;return new Hr(h,m,$r(e)?e.format:0,$r(e)?e.style:"")}function oo(e,t){const n=Di(t.key);if(void 0===n&&$(`$validatePoint: ${e} key ${t.key} not found in current editorState`),"text"===t.type){Nr(n)||$(`$validatePoint: ${e} key ${t.key} is not a TextNode`);const r=n.getTextContentSize();t.offset<=r||$(`$validatePoint: ${e} point.offset > node.getTextContentSize() (${String(t.offset)} > ${String(r)})`)}else{Go(n)||$(`$validatePoint: ${e} key ${t.key} is not an ElementNode`);const r=n.getChildrenSize();t.offset<=r||$(`$validatePoint: ${e} point.offset > node.getChildrenSize() (${String(t.offset)} > ${String(r)})`)}}function io(){return To()._selection}function ao(){return Ao()._editorState._selection}function so(e,t,n,r=1){const o=e.anchor,i=e.focus,a=o.getNode(),s=i.getNode();if(!t.is(a)&&!t.is(s))return;const l=t.__key;if(e.isCollapsed()){const t=o.offset;if(n<=t&&r>0||n<t&&r<0){const n=Math.max(0,t+r);o.set(l,n,"element"),i.set(l,n,"element"),lo(e)}}else{const a=e.isBackward(),s=a?i:o,u=s.getNode(),c=a?o:i,d=c.getNode();if(t.is(u)){const e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(l,Math.max(0,e+r),"element")}if(t.is(d)){const e=c.offset;(n<=e&&r>0||n<e&&r<0)&&c.set(l,Math.max(0,e+r),"element")}}lo(e)}function lo(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed()){if(!Go(i))return;const e=i.getChildrenSize(),o=n>=e,a=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Nr(a)){let e=0;o&&(e=a.getTextContentSize()),t.set(a.__key,e,"text"),r.set(a.__key,e,"text")}}else{if(Go(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(Nr(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(Go(a)){const e=a.getChildrenSize(),t=o>=e,n=t?a.getChildAtIndex(e-1):a.getChildAtIndex(o);if(Nr(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}}function uo(e,t,n,r,o){let i=null,a=0,s=null;null!==r?(i=r.__key,Nr(r)?(a=r.getTextContentSize(),s="text"):Go(r)&&(a=r.getChildrenSize(),s="element")):null!==o&&(i=o.__key,Nr(o)?s="text":Go(o)&&(s="element")),null!==i&&null!==s?e.set(i,a,s):(a=t.getIndexWithinParent(),-1===a&&(a=n.getChildrenSize()),e.set(n.__key,a,"element"))}function co(e,t,n,r,o){"text"===e.type?e.set(n,e.offset+(t?0:o),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function fo(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){console.warn(e)}}function po(e,t,n,r,o,i,a){const s=r.anchorNode,l=r.focusNode,u=r.anchorOffset,c=r.focusOffset,d=document.activeElement;if(o.has(ar)&&d!==i||null!==d&&xi(d))return;if(!$r(t))return void(null!==e&&_i(n,s,l)&&r.removeAllRanges());const f=t.anchor,p=t.focus,h=f.key,m=p.key,g=pa(n,h),v=pa(n,m),y=f.offset,b=p.offset,x=t.format,_=t.style,w=t.isCollapsed();let k=g,S=v,C=!1;if("text"===f.type){k=Ri(g);const e=f.getNode();C=e.getFormat()!==x||e.getStyle()!==_}else $r(e)&&"text"===e.anchor.type&&(C=!0);if("text"===p.type&&(S=Ri(v)),null!==k&&null!==S&&(w&&(null===e||C||$r(e)&&(e.format!==x||e.style!==_))&&function(e,t,n,r,o){Pn=[e,t,n,r,o]}(x,_,y,h,performance.now()),u!==y||c!==b||s!==k||l!==S||"Range"===r.type&&w||(null!==d&&i.contains(d)||o.has(ur)||i.focus({preventScroll:!0}),"element"===f.type))){if(fo(r,k,y,S,b),!K||!t.isCollapsed()||null===i||o.has(ur)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(sr)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=$r(t)&&"element"===t.anchor.type?k.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){const n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){const r=ma(n),o=va(r);if(null===r||null===o)return;let{top:i,bottom:a}=t,s=0,l=0,u=n;for(;null!==u;){const t=u===r.body;if(t)s=0,l=ya(e).innerHeight;else{const e=u.getBoundingClientRect();s=e.top,l=e.bottom}let n=0;if(i<s?n=-(s-i):a>l&&(n=a-l),0!==n)if(t)o.scrollBy(0,n);else{const e=u.scrollTop;u.scrollTop+=n;const t=u.scrollTop-e;i-=t,a-=t}if(t)break;u=ha(u)}}(n,t,i)}}Tn=!0}}function ho(e){let t=io()||ao();null===t&&(t=Wi().selectEnd()),t.insertNodes(e)}function mo(e){let t=e;e.isCollapsed()||t.removeText();const n=io();$r(n)&&(t=n),$r(t)||$("Unexpected dirty selection to be null");const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!Ma(o);){const e=o;if([o,i]=go(o,i),e.is(o))break}return i}function go(e,t){const n=e.getParent();if(!n){const e=ii();return Wi().append(e),e.select(),[Wi(),0]}if(Nr(e)){const r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];const o=0===t?0:1;return[n,r[0].getIndexWithinParent()+o]}if(!Go(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Hr(Dr(e.__key,t,"element"),Dr(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function vo(e,t,n,r,o="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){const[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}const i=ks(e.focus,n?"previous":"next"),a="lineboundary"===r,s="move"===t;let l=i,u="decorators-and-blocks"===o;if(!Ms(l)){for(const e of l){u=!1;const{origin:t}=e;if(!qo(t)||t.isIsolated()||(l=e,!a||!t.isInline()))break}if(u)for(const e of hs(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(ns(e))e.origin.isInline()||(l=e);else{if(Go(e.origin))continue;qo(e.origin)&&!e.origin.isInline()&&(l=e)}break}}if(l===i)return!1;if(s&&!a&&qo(l.origin)&&l.origin.isKeyboardSelectable()){const e=no();return e.add(l.origin.getKey()),Ki(e),!0}return l=Ns(l),s&&Ss(e.anchor,l),Ss(e.focus,l),u||!a}let yo=null,bo=null,xo=!1,_o=!1,wo=0;const ko={characterData:!0,childList:!0,subtree:!0};function So(){return xo||null!==yo&&yo._readOnly}function Co(){xo&&$("Cannot use method in read-only mode.")}function Eo(){wo>99&&$("One or more transforms are endlessly triggering additional transforms. May have encountered infinite recursion caused by transforms that have their preconditions too lose and/or conflict with each other.")}function To(){return null===yo&&$(`Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update(), editor.read(), or editorState.read().${Ro()}`),yo}function Ao(){return null===bo&&$(`Unable to find an active editor. This method can only be used synchronously during the callback of editor.update() or editor.read().${Ro()}`),bo}function Ro(){let e=0;const t=new Set,n=di.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=Si(r);if(wi(o))e++;else if(o){let e=String(o.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function Lo(){return bo}function No(e,t,n){const r=t.__type,o=mi(e,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const a=i.length;for(let e=0;e<a&&(i[e](t),t.isAttached());e++);}function Mo(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function Oo(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const e of r)n.add(e)}function Po(e){return zo(e,Ao()._nodes)}function zo(e,t){const n=e.type,r=t.get(n);void 0===r&&$(`parseEditorState: type "${n}" + not found`);const o=r.klass;e.type!==o.getType()&&$(`LexicalNode: Node ${o.name} does not implement .importJSON().`);const i=o.importJSON(e),a=e.children;if(Go(i)&&Array.isArray(a))for(let e=0;e<a.length;e++){const n=zo(a[e],t);i.append(n)}return i}function Io(e,t,n){const r=yo,o=xo,i=bo;yo=t,xo=!0,bo=e;try{return n()}finally{yo=r,xo=o,bo=i}}function Do(e){const t=e._nodeMap;t.set=()=>{throw new Error("Cannot call set() on a frozen Lexical node map")},t.clear=()=>{throw new Error("Cannot call clear() on a frozen Lexical node map")},t.delete=()=>{throw new Error("Cannot call delete() on a frozen Lexical node map")}}function jo(e,t){const n=e._pendingEditorState,r=e._rootElement,o=e._headless||null===r;if(null===n)return;const i=e._editorState,a=i._selection,s=n._selection,l=0!==e._dirtyType,u=yo,c=xo,d=bo,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&null!==p){bo=e,yo=n,xo=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=xt(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),_o)throw t;return li(e,null,r,n),Ae(e),e._dirtyType=2,_o=!0,jo(e,i),void(_o=!1)}finally{p.observe(r,ko),e._updating=f,yo=u,xo=c,bo=d}}n._readOnly||(n._readOnly=!0,Do(n),$r(s)&&(Object.freeze(s.anchor),Object.freeze(s.focus)),Object.freeze(s));const m=e._dirtyLeaves,g=e._dirtyElements,v=e._normalizedNodes,y=e._updateTags,b=e._deferred;l&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){const n=e._decorators;let r=e._pendingDecorators||n;const o=t._nodeMap;let i;for(i in r)o.has(i)||(r===n&&(r=$i(e)),delete r[i])}(e,n);const x=o?null:Ca(ya(e));if(e._editable&&null!==x&&(l||null===s||s.dirty||!s.is(a))&&null!==r&&!y.has(lr)){bo=e,yo=n;try{if(null!==p&&p.disconnect(),l||null===s||s.dirty){const t=e._blockCursorElement;null!==t&&Sa(t,e,r),po(a,s,e,x,y,r)}!function(e,t,n){let r=e._blockCursorElement;if($r(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),a=o.offset;let s=!1,l=null;if(a===i.getChildrenSize()){ka(i.getChildAtIndex(a-1))&&(s=!0)}else{const t=i.getChildAtIndex(a);if(null!==t&&ka(t)){const n=t.getPreviousSibling();(null===n||ka(n))&&(s=!0,l=e.getElementByKey(t.__key))}}if(s){const n=e.getElementByKey(i.__key);return null===r&&(e._blockCursorElement=r=function(e){const t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;if(void 0!==r){if("string"==typeof r){const e=Fs(r);r=t.blockCursor=e}void 0!==r&&n.classList.add(...r)}return n}(e._config)),t.style.caretColor="transparent",void(null===l?n.appendChild(r):n.insertBefore(r,l))}}null!==r&&Sa(r,e,t)}(e,r,s)}finally{null!==p&&p.observe(r,ko),bo=d,yo=u}}null!==h&&function(e,t,n,r,o){const i=Array.from(e._listeners.mutation),a=i.length;for(let e=0;e<a;e++){const[a,s]=i[e];for(const e of s){const i=t.get(e);void 0!==i&&a(i,{dirtyLeaves:r,prevEditorState:o,updateTags:n})}}}(e,h,y,m,i),$r(s)||null===s||null!==a&&a.is(s)||e.dispatchCommand(kt,void 0);const _=e._pendingDecorators;null!==_&&(e._decorators=_,e._pendingDecorators=null,Fo("decorator",e,!0,_)),function(e,t,n){const r=Hi(t),o=Hi(n);r!==o&&Fo("textcontent",e,!0,o)}(e,t||i,n),Fo("update",e,!0,{dirtyElements:g,dirtyLeaves:m,editorState:n,mutatedNodes:h,normalizedNodes:v,prevEditorState:t||i,tags:y}),function(e,t){if(e._deferred=[],0!==t.length){const n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,b),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;$o(e,t,r)}}}(e)}function Fo(e,t,n,...r){const o=t._updating;t._updating=n;try{const n=Array.from(t._listeners[e]);for(let e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=o}}function Bo(e,t){const n=e._updates;let r=t||!1;for(;0!==n.length;){const t=n.shift();if(t){const[n,o]=t,i=e._pendingEditorState;let a;void 0!==o&&(a=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete&&(null===i&&$("Unexpected empty pending editor state on discrete nested update"),i._flushSync=!0),a&&e._deferred.push(a),Oo(e,o.tag)),null==i?$o(e,n,o):n()}}return r}function $o(e,t,n){const r=e._updateTags;let o,i=!1,a=!1;void 0!==n&&(o=n.onUpdate,Oo(e,n.tag),i=n.skipTransforms||!1,a=n.discrete||!1),o&&e._deferred.push(o);const s=e._editorState;let l=e._pendingEditorState,u=!1;(null===l||l._readOnly)&&(l=e._pendingEditorState=Xo(l||s),u=!0),l._flushSync=a;const c=yo,d=xo,f=bo,p=e._updating;yo=l,xo=!1,e._updating=!0,bo=e;const h=e._headless||null===e.getRootElement();pi(null);try{u&&(h?null!==s._selection&&(l._selection=s._selection.clone()):l._selection=function(e,t){const n=e.getEditorState()._selection,r=Ca(ya(e));return $r(n)||null==n?ro(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=Bo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if($r(r)){const e=r.anchor,t=r.focus;let o;if("text"===e.type&&(o=e.getNode(),o.selectionTransform(n,r)),"text"===t.type){const e=t.getNode();o!==e&&e.selectionTransform(n,r)}}}(l,e),0!==e._dirtyType&&(i?function(e,t){const n=t._dirtyLeaves,r=e._nodeMap;for(const e of n){const t=r.get(e);Nr(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Fe(t)}}(l,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=Ii(),a=new Map;let s=n,l=s.size,u=r,c=u.size;for(;l>0||c>0;){if(l>0){t._dirtyLeaves=new Set;for(const e of s){const r=o.get(e);Nr(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Fe(r),void 0!==r&&Mo(r,i)&&No(t,r,a),n.add(e)}if(s=t._dirtyLeaves,l=s.size,l>0){wo++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,u.delete("root")&&u.set("root",!0);for(const e of u){const n=e[0],s=e[1];if(r.set(n,s),!s)continue;const l=o.get(n);void 0!==l&&Mo(l,i)&&No(t,l,a)}s=t._dirtyLeaves,l=s.size,u=t._dirtyElements,c=u.size,wo++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Bo(e),function(e,t,n,r){const o=e._nodeMap,i=t._nodeMap,a=[];for(const[e]of r){const t=i.get(e);void 0!==t&&(t.isAttached()||(Go(t)&&ye(t,e,o,i,a,r),o.has(e)||r.delete(e),a.push(e)))}for(const e of a)i.delete(e);for(const e of n){const t=i.get(e);void 0===t||t.isAttached()||(o.has(e)||n.delete(e),i.delete(e))}}(s,l,e._dirtyLeaves,e._dirtyElements));r!==e._compositionKey&&(l._flushSync=!0);const o=l._selection;if($r(o)){const e=l._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||$("updateEditor: selection has been lost because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after removing/replacing a selected node.")}else Wr(o)&&0===o._nodes.size&&(l._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void jo(e)}finally{yo=c,xo=d,bo=f,e._updating=p,wo=0}const m=0!==e._dirtyType||e._deferred.length>0||function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(l,e);m?l._flushSync?(l._flushSync=!1,jo(e)):u&&yi((()=>{jo(e)})):(l._flushSync=!1,u&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Ho(e,t,n){bo===e&&void 0===n?t():$o(e,t,n)}class Wo{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new Wo(this.element,e,this.after)}withAfter(e){return new Wo(this.element,this.before,e)}withElement(e){return this.element===e?this:new Wo(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&$("ElementDOMSlot.insertChild: before is not in element"),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&$("ElementDOMSlot.removeChild: dom is not in element"),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&$("ElementDOMSlot.replaceChild: prevDom is not in element"),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(null===e)this.removeManagedLineBreak();else{const t="decorator"===e&&(X||V||Y);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,o=document.createElement("br");if(n.insertBefore(o,r),e){const e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",n.insertBefore(e,o),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=o}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){const t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}const o=Uo(t,n);o.push(r);const i=Uo(t,this.element);let a=e.getIndexWithinParent();for(let e=0;e<i.length;e++){const t=o[e],n=i[e];if(void 0===t||t<n)break;if(t>n){a+=1;break}}return[e.getParentOrThrow(),a]}}function Uo(e,t){const n=[];let r=t;for(;r!==e&&null!==r;r=r.parentNode){let e=0;for(let t=r.previousSibling;null!==t;t=t.previousSibling)e++;n.push(e)}return r!==e&&$("indexPath: root is not a parent of child"),n.reverse()}class Ko extends rr{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return he[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const e=Ao()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;null!==t;){if(Nr(t)&&e.push(t),Go(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;Go(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;Go(e);){const t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),n=t.length;if(e>=n){const e=t[n-1];return Go(e)&&e.getLastDescendant()||e||null}const r=t[e];return Go(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:Di(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&$(`Expected node ${this.__key} to have a first child.`),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:Di(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&$(`Expected node ${this.__key} to have a last child.`),e}getChildAtIndex(e){const t=this.getChildrenSize();let n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;null!==n&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="";const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContent(),Go(o)&&r!==n-1&&!o.isInline()&&(e+=ue)}return e}getTextContentSize(){let e=0;const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const o=t[r];e+=o.getTextContentSize(),Go(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){const t=pe[e];return!!(this.getFormat()&t)}return!1}hasTextFormat(e){const t=de[e];return!!(this.getTextFormat()&t)}getFormatFlags(e,t){return Li(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){Co();const n=io();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(Nr(e)||Go(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(Nr(e)||Go(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const a=this.__key;return $r(n)?(n.anchor.set(a,r,"element"),n.focus.set(a,o,"element"),n.dirty=!0,n):eo(a,r,a,o,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach((e=>e.remove())),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?pe[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){nr(this)&&$(`ElementNode.splice: Ephemeral nodes can not mutate their children (key ${this.__key} type ${this.__type})`);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||$(`ElementNode.splice: start + deleteCount > oldSize (${String(e)} + ${String(t)} > ${String(r)})`);const i=o.__key,a=[],s=[],l=this.getChildAtIndex(e+t);let u=null,c=r-t+n.length;if(0!==e)if(e===r)u=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(u=t.getPreviousSibling())}if(t>0){let e=null===u?this.getFirstChild():u.getNextSibling();for(let n=0;n<t;n++){null===e&&$("splice: sibling not found");const t=e.getNextSibling(),n=e.__key;Oi(e.getWritable()),s.push(n),e=t}}let d=u;for(const e of n){null!==d&&e.is(d)&&(u=d=d.getPreviousSibling());const t=e.getWritable();t.__parent===i&&c--,Oi(t);const n=e.__key;if(null===d)o.__first=n,t.__prev=null;else{const e=d.getWritable();e.__next=n,t.__prev=e.__key}e.__key===i&&$("append: attempting to append self"),t.__parent=i,a.push(n),d=e}if(e+t===r){if(null!==d){d.getWritable().__next=null,o.__last=d.__key}}else if(null!==l){const e=l.getWritable();if(null!==d){const t=d.getWritable();e.__prev=d.__key,t.__next=l.__key}else e.__prev=null}if(o.__size=c,s.length){const e=io();if($r(e)){const t=new Set(s),n=new Set(a),{anchor:r,focus:o}=e;Yo(r,t,n)&&uo(r,r.getNode(),this,u,l),Yo(o,t,n)&&uo(o,o.getNode(),this,u,l),0!==c||this.canBeEmpty()||ba(this)||this.remove()}}return o}getDOMSlot(e){return new Wo(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ta(t)){const e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");const n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0===t&&""===n||ba(this)||this.getChildren().some(Nr)||(0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){const n=this.getDOMSlot(e);let r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){const o=t.getElementByKey(e.getKey());null!==o&&(null==r?(n.insertChild(o),r=o):r!==o&&n.replaceChild(o,r),r=r.nextSibling)}}}function Go(e){return e instanceof Ko}function Yo(e,t,n){let r=e.getNode();for(;r;){const e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class Vo extends rr{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function qo(e){return e instanceof Vo}class Jo extends Ko{__cachedText;static getType(){return"root"}static clone(){return new Jo}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){$("getTopLevelElementOrThrow: root nodes are not top level elements")}getTextContent(){const e=this.__cachedText;return!So()&&0!==Ao()._dirtyType||null===e?super.getTextContent():e}remove(){$("remove: cannot be called on root nodes")}replace(e){$("replace: cannot be called on root nodes")}insertBefore(e){$("insertBefore: cannot be called on root nodes")}insertAfter(e){$("insertAfter: cannot be called on root nodes")}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)Go(e)||qo(e)||$("rootNode.splice: Only element or decorator nodes can be inserted to the root node");return super.splice(e,t,n)}static importJSON(e){return Wi().updateFromJSON(e)}collapseAtStart(){return!0}}function Qo(e){return e instanceof Jo}function Xo(e){return new ti(new Map(e._nodeMap))}function Zo(){return new ti(new Map([["root",new Jo]]))}function ei(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&$(`LexicalNode: Node ${n.name} does not match the serialized type. Check if .exportJSON() is implemented and it is returning the correct type.`),Go(e)){const r=t.children;Array.isArray(r)||$(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=ei(o[e]);r.push(t)}}return t}class ti{_nodeMap;_selection;_flushSync;_readOnly;constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return Io(t&&t.editor||null,this,e)}clone(e){const t=new ti(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return Io(null,this,(()=>({root:ei(Wi())})))}}class ni extends Ko{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class ri extends Ko{static getType(){return"paragraph"}static clone(e){return new ri(e.__key)}createDOM(e){const t=document.createElement("p"),n=aa(e.theme,"paragraph");if(void 0!==n){t.classList.add(...n)}return t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:oi,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ta(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return ii().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(Nr);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=ii();n.setTextFormat(e.format),n.setTextStyle(e.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){const e=this.getChildren();if(0===e.length||Nr(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function oi(e){const t=ii();return e.style&&(t.setFormat(e.style.textAlign),Fa(e,t)),{node:t}}function ii(){return _a(new ri)}function ai(e){return e instanceof ri}const si=0;function li(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Zo(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;null!==i&&(i.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}function ui(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=Ua(r),o=r.transform;if(!n.has(o)){n.add(o);const e=r.transform();e&&t.add(e)}if(e){const n=e.$transform;n&&t.add(n),r=e.extends}else{const e=Object.getPrototypeOf(r);r=e.prototype instanceof rr&&e!==rr?e:void 0}}return t}function ci(e){const t=e||{},n=Lo(),r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=Zo(),s=t.namespace||(null!==o?o._config.namespace:qi()),l=t.editorState,u=[Jo,_r,cr,Or,ri,ni,...t.nodes||[]],{onError:c,html:d}=t,f=void 0===t.editable||t.editable;let p;if(void 0===e&&null!==n)p=n._nodes;else{p=new Map;for(let e=0;e<u.length;e++){let t=u[e],n=null,r=null;if("function"!=typeof t){const e=t;t=e.replace,n=e.with,r=e.withKlass||null}Ua(t);{const e=t.name,o=Ha(t,"getType")&&t.getType();r?r.prototype instanceof t||$(`${r.name} doesn't extend the ${e}`):n&&console.warn(`Override for ${e} specifies 'replace' without 'withKlass'. 'withKlass' will be required in a future version.`),"RootNode"!==e&&"root"!==o&&"artificial"!==o&&t!==rr&&(["getType","clone"].forEach((n=>{Ha(t,n)||console.warn(`${e} must implement static "${n}" method`)})),!Ha(t,"importDOM")&&Wa(t)&&console.warn(`${e} should implement "importDOM" if using a custom "exportDOM" method to ensure HTML serialization (important for copy & paste) works as expected`),Ha(t,"importJSON")||console.warn(`${e} should implement "importJSON" method to ensure JSON and default HTML serialization works as expected`))}const o=t.getType(),i=ui(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Re(u[e]),transforms:i})}}const h=new di(a,o,p,{disableEvents:i,namespace:s,theme:r},c||console.error,function(e,t){const n=new Map,r=new Set,o=e=>{Object.keys(e).forEach((t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])}))};return e.forEach((e=>{const t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);const n=t.call(e.klass);null!==n&&o(n)})),t&&o(t),n}(p,d?d.import:void 0),f,e);return void 0!==l&&(h._pendingEditorState=l,h._dirtyType=2),function(e){e.registerCommand(Et,$n,si),e.registerCommand(Tt,Hn,si),e.registerCommand(At,Wn,si),e.registerCommand(Rt,Un,si),e.registerCommand($t,Gn,si)}(h),h}class di{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(e,t,n,r,o,i,a,s){this._createEditorArgs=s,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=qi(),this._onError=o,this._htmlConversions=i,this._editable=a,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&$('Listener for type "command" requires a "priority".');const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=r.get(e);void 0===o&&$(`registerCommand: Command ${String(e)} not found in command map`);const i=o[n];return i.add(t),()=>{i.delete(t),o.every((e=>0===e.size))&&r.delete(e)}}registerMutationListener(e,t,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,o=this._listeners.mutation;let i=o.get(t);void 0===i&&(i=new Set,o.set(t,i)),i.add(r);const a=n&&n.skipInitialization;return void 0!==a&&a||this.initializeMutationListener(t,r),()=>{i.delete(r),0===i.size&&o.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return void 0===t&&$(`Node ${e.name} has not been registered. Ensure node has been passed to createEditor.`),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=Ia(n).get(t.getType());if(!r)return;const o=new Map;for(const e of r.keys())o.set(e,"created");o.size>0&&e(o,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){const n=this.registerNodeTransformToKlass(e,t),r=[n],o=n.replaceWithKlass;if(null!=o){const e=this.registerNodeTransformToKlass(o,t);r.push(e)}return function(e,t){const n=Ia(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}if(0===r.length)return;e.update((()=>{for(const e of r)for(const t of e.keys()){const e=Di(t);e&&e.markDirty()}}),null===e._pendingEditorState?{tag:ir}:void 0)}(this,r.map((e=>e.klass.getType()))),()=>{r.forEach((e=>e.transforms.delete(t)))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return fa(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const n=aa(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,li(this,t,e,r),null!==t&&(this._config.disableEvents||Zn(t),null!=n&&t.classList.remove(...n)),null!==e){const t=va(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,Ae(this),this._updateTags.add(ir),jo(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;Cn.set(e,n);const r=En.get(n)??0;r<1&&n.addEventListener("selectionchange",qn),En.set(n,r+1),e.__lexicalEditor=t;const o=Yn(e);for(let n=0;n<xn.length;n++){const[r,i]=xn[n],a="function"==typeof i?e=>{Qn(e)||(Jn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Qn(e))return;Jn(e);const n=t.isEditable();switch(r){case"cut":return n&&fa(t,cn,e);case"copy":return fa(t,un,e);case"paste":return n&&fa(t,Pt,e);case"dragstart":return n&&fa(t,an,e);case"dragover":return n&&fa(t,sn,e);case"dragend":return n&&fa(t,ln,e);case"focus":return n&&fa(t,gn,e);case"blur":return n&&fa(t,vn,e);case"drop":return n&&fa(t,rn,e)}};e.addEventListener(r,a),o.push((()=>{e.removeEventListener(r,a)}))}}(e,this),null!=n&&e.classList.add(...n);{const t=e.parentElement;null!=t&&["flex","inline-flex"].includes(getComputedStyle(t).display)&&console.warn('When using "display: flex" or "display: inline-flex" on an element containing content editable, Chrome may have unwanted focusing behavior when clicking outside of it. Consider wrapping the content editable within a non-flex element.')}}else this._window=null,this._updateTags.add(ir),jo(this);Fo("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&$("setEditorState: the editor state is empty. Ensure the editor state's root node never becomes empty.");let n=e;n._readOnly&&(n=Xo(e),n._selection=e._selection?e._selection.clone():null),Te(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),jo(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||jo(this)}parseEditorState(e,t){return function(e,t,n){const r=Zo(),o=yo,i=xo,a=bo,s=t._dirtyElements,l=t._dirtyLeaves,u=t._cloneNotNeeded,c=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,yo=r,xo=!1,bo=t,pi(null);try{const o=t._nodes;zo(e.root,o),n&&n(),r._readOnly=!0,Do(r)}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=l,t._cloneNotNeeded=u,t._dirtyType=c,yo=o,xo=i,bo=a}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return jo(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):$o(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Ho(this,(()=>{const r=io(),o=Wi();null!==r?r.dirty||Ki(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),function(e){Co();Ao()._updateTags.add(e)}("focus"),function(e){Co();Ao()._deferred.push(e)}((()=>{n.removeAttribute("autocapitalize"),e&&e()}))})),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;null!==e&&e.blur();const t=Ca(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Fo("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}di.version="0.40.0+dev.esm";let fi=null;function pi(e){fi=e}let hi=1;function mi(e,t){const n=gi(e,t);return void 0===n&&$(`registeredNode: Type ${t} not found`),n}function gi(e,t){return e._nodes.get(t)}const yi="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function bi(e){return qo(Bi(e))}function xi(e){const t=document.activeElement;if(!Ta(t))return!1;const n=t.nodeName;return qo(Bi(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==Si(t))}function _i(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!xi(t)&&ki(t)===e}catch(e){return!1}}function wi(e){return e instanceof di}function ki(e){let t=e;for(;null!=t;){const e=Si(t);if(wi(e))return e;t=ha(t)}return null}function Si(e){return e?e.__lexicalEditor:null}function Ci(e){return zr(e)||e.isToken()}function Ei(e){return Ci(e)||e.isSegmented()}function Ti(e){return Aa(e)&&3===e.nodeType}function Ai(e){return Aa(e)&&9===e.nodeType}function Ri(e){let t=e;for(;null!=t;){if(Ti(t))return t;t=t.firstChild}return null}function Li(e,t,n){const r=de[t];if(null!==n&&(e&r)==(n&r))return e;let o=e^r;return"subscript"===t?o&=-65:"superscript"===t?o&=-33:"lowercase"===t?(o&=-513,o&=-1025):"uppercase"===t?(o&=-257,o&=-1025):"capitalize"===t&&(o&=-257,o&=-513),o}function Ni(e){return Nr(e)||pr(e)||qo(e)}function Mi(e,t){const n=function(){const e=fi;return fi=null,e}();if(null!=(t=t||n&&n.__key))return function(e,t,n){const r=yo;if(!r)return;const o=r._nodeMap.get(t);n&&t!==n.__key&&$(`Lexical node with constructor ${e.constructor.name} (type ${e.getType()}) has an incorrect clone implementation, got ${String(t)} for nodeKey when expecting ${n.__key}`);o&&o.constructor!==e.constructor&&(e.constructor.name!==o.constructor.name?$(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with constructor ${o.constructor.name}. Keys must not be re-used when the type is changed.`):$(`Lexical node with constructor ${e.constructor.name} attempted to re-use key from node in active editor state with different constructor with the same name (possibly due to invalid Hot Module Replacement). Keys must not be re-used when the type is changed.`))}(e,t,n),void(e.__key=t);Co(),Eo();const r=Ao(),o=To(),i=""+hi++;o._nodeMap.set(i,e),Go(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function Oi(e){const t=e.getParent();if(null!==t){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling(),a=null!==i?i.__key:null,s=null!==o?o.__key:null,l=null!==o?o.getWritable():null,u=null!==i?i.getWritable():null;null===o&&(r.__first=a),null===i&&(r.__last=s),null!==l&&(l.__next=a),null!==u&&(u.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Pi(e){Eo(),nr(e)&&$(`internalMarkNodeAsDirty: Ephemeral nodes must not be marked as dirty (key ${e.__key} type ${e.__type})`);const t=e.getLatest(),n=t.__parent,r=To(),o=Ao(),i=r._nodeMap,a=o._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;const e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,i,a);const s=t.__key;o._dirtyType=1,Go(e)?a.set(s,!0):o._dirtyLeaves.add(s)}function zi(e){Co();const t=Ao(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=Di(n);null!==e&&e.getWritable()}if(null!==e){const t=Di(e);null!==t&&t.getWritable()}}}function Ii(){if(So())return null;return Ao()._compositionKey}function Di(e,t){const n=(t||To())._nodeMap.get(e);return void 0===n?null:n}function ji(e,t){const n=Fi(e,Ao());return void 0!==n?Di(n,t):null}function Fi(e,t){return e[`__lexicalKey_${t._key}`]}function Bi(e,t){let n=e;for(;null!=n;){const e=ji(n,t);if(null!==e)return e;n=ha(n)}return null}function $i(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Hi(e){return e.read((()=>Wi().getTextContent()))}function Wi(){return Ui(To())}function Ui(e){return e._nodeMap.get("root")}function Ki(e){Co();const t=To();null!==e&&(Object.isFrozen(e)&&$("$setSelection called on frozen selection object. Ensure selection is cloned before passing in."),e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Gi(e){const t=Ao(),n=function(e,t){let n=e;for(;null!=n;){const e=Fi(n,t);if(void 0!==e)return e;n=ha(n)}return null}(e,t);if(null===n){return e===t.getRootElement()?Di("root"):null}return Di(n)}function Yi(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Vi(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function qi(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Ji(e){return Ti(e)?e.nodeValue:null}function Qi(e,t,n){const r=Ca(ya(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:a}=r;if(null!==o){let t=Ji(o);const r=Bi(o);if(null!==t&&Nr(r)){if(t===le&&n){const e=n.length;t=n,i=e,a=e}null!==t&&Xi(r,t,i,a,e)}}}function Xi(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const a=i.isComposing();let s=t;(a||o)&&t[t.length-1]===le&&(s=t.slice(0,-1));const l=i.getTextContent();if(o||s!==l){if(""===s){if(zi(null),Y||V||X)i.remove();else{const e=Ao();setTimeout((()=>{e.update((()=>{i.isAttached()&&i.remove()}))}),20)}return}const t=i.getParent(),o=ao(),l=i.getTextContentSize(),u=Ii(),c=i.getKey();if(i.isToken()||null!==u&&c===u&&!a||$r(o)&&(null!==t&&!t.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===e.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!a||o.focus.key===e.__key&&o.focus.offset===l&&!i.canInsertTextAfter()&&!a))return void i.markDirty();const d=io();if(!$r(d)||null===n||null===r)return void Zi(i,s,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=Lr(i.getTextContent());i.replace(e),i=e}Zi(i,s,d)}}}function Zi(e,t,n){if(e.setTextContent(t),$r(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=ls(e,o.offset,"clamp"))}}}function ea(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function ta(e,t,n){return function(e,t){return ea(e,t,"altKey")&&ea(e,t,"ctrlKey")&&ea(e,t,"shiftKey")&&ea(e,t,"metaKey")}(e,n)&&e.key.toLowerCase()===t.toLowerCase()}const na={ctrlKey:!U,metaKey:U},ra={altKey:U,ctrlKey:!U};function oa(e){return"Backspace"===e.key}function ia(e){return ta(e,"a",na)}function aa(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;const o=e[t];if("string"==typeof o){const e=Fs(o);return n[t]=e,e}return o}function sa(e,t,n,r,o){if(0===n.size)return;const i=r.__type,a=r.__key,s=t.get(i);void 0===s&&$(`Type ${i} not in registeredNodes`);const l=s.klass;let u=e.get(l);void 0===u&&(u=new Map,e.set(l,u));const c=u.get(a),d="destroyed"===c&&"created"===o;(void 0===c||d)&&u.set(a,d?"updated":o)}function la(e){const t=e.getType(),n=To();if(n._readOnly){const e=Ia(n).get(t);return e?Array.from(e.values()):[]}const r=n._nodeMap,o=[];for(const[,n]of r)n instanceof e&&n.__type===t&&n.isAttached()&&o.push(n);return o}function ua(e,t,n){const r=e.getParent();let o=n,i=e;return null!==r&&(t&&0===n?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function ca(e,t){const n=e.offset;if("element"===e.type){return ua(e.getNode(),t,n)}{const r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){const e=t?r.getPreviousSibling():r.getNextSibling();return null===e?ua(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function da(e){const t=ya(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function fa(e,t,n){return function(e,t,n){const r=Vi(e);for(let o=4;o>=0;o--)for(let i=0;i<r.length;i++){const a=r[i],s=a._commands.get(t);if(void 0!==s){const t=s[o];if(void 0!==t){const r=Array.from(t),o=r.length;let i=!1;if(Ho(a,(()=>{for(let t=0;t<o;t++)if(r[t](n,e))return void(i=!0)})),i)return i}}}return!1}(e,t,n)}function pa(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&$(`Reconciliation: could not find DOM element for node key ${t}`),n}function ha(e){const t=e.assignedSlot||e.parentElement;return Ra(t)?t.host:t}function ma(e){return Ai(e)?e:Ta(e)?e.ownerDocument:null}function ga(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function va(e){const t=ma(e);return t?t.defaultView:null}function ya(e){const t=e._window;return null===t&&$("window object not found"),t}function ba(e){return Qo(e)||Go(e)&&e.isShadowRoot()}function xa(e){const t=e.constructor.clone(e);return Mi(t,null),t.afterCloneFrom(e),t}function _a(e){const t=Ao(),n=e.getType(),r=gi(t,n);void 0===r&&$(`$applyNodeReplacement node ${e.constructor.name} with type ${n} must be registered to the editor. You can do this by passing the node class via the "nodes" array in the editor config.`);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||$(`$applyNodeReplacement failed. Expected replacement node to be an instance of ${i.name} with type ${i.getType()} but returned ${r.name} with type ${r.getType()} from original node ${e.constructor.name} with type ${n}`):t instanceof e.constructor&&r!==e.constructor||$(`$applyNodeReplacement failed. Ensure replacement node ${r.name} with type ${r.getType()} is a subclass of the original node ${e.constructor.name} with type ${n}.`),t.__key===e.__key&&$(`$applyNodeReplacement failed. Ensure that the key argument is *not* used in your replace function (from node ${e.constructor.name} with type ${n} to node ${r.name} with type ${r.getType()}), Node keys must never be re-used except by the static clone method.`),t}return e}function wa(e,t){!Qo(e.getParent())||Go(t)||qo(t)||$("Only element or decorator nodes can be inserted in to the root node")}function ka(e){return(qo(e)||Go(e)&&!e.canBeEmpty())&&!e.isInline()}function Sa(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function Ca(e){return H?(e||window).getSelection():null}function Ea(e){return Ta(e)&&"A"===e.tagName}function Ta(e){return Aa(e)&&1===e.nodeType}function Aa(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function Ra(e){return Aa(e)&&11===e.nodeType}function La(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function Na(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function Ma(e){if(qo(e)&&!e.isInline())return!0;if(!Go(e)||ba(e))return!1;const t=e.getFirstChild(),n=null===t||pr(t)||Nr(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Oa(){return Ao()}const Pa=new WeakMap,za=new Map;function Ia(e){if(!e._readOnly&&e.isEmpty())return za;e._readOnly||$("getCachedTypeToNodeMap called with a writable EditorState");let t=Pa.get(e);return t||(t=function(e){const t=new Map;for(const[n,r]of e._nodeMap){const e=r.__type;let o=t.get(e);o||(o=new Map,t.set(e,o)),o.set(n,r)}return t}(e),Pa.set(e,t)),t}function Da(e){const t=e.constructor,n=t.clone(e);return n.afterCloneFrom(e),n.__key!==e.__key&&$(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') did not return a node with the same key, make sure to specify node.__key as the last argument to the constructor`),n.__parent===e.__parent&&n.__next===e.__next&&n.__prev===e.__prev||$(`$cloneWithProperties: ${t.name}.clone(node) (with type '${t.getType()}') overrode afterCloneFrom but did not call super.afterCloneFrom(prevNode)`),n}function ja(e){return function(e){return e[tr]=!0,e}(Da(e))}function Fa(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Ba(e){return!0===e.__lexicalUnmanaged}function $a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ha(e,t){return $a(e,t)&&e[t]!==rr[t]}function Wa(e){return $a(e.prototype,"exportDOM")}function Ua(e){const t=ve in e.prototype?e.prototype[ve]():void 0,n=function(e){if(!(e===rr||e.prototype instanceof rr)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{di.version&&(n=JSON.parse(di.version))}catch(e){}$(`${e.name} (type ${t}) does not subclass LexicalNode from the lexical package used by this editor (version ${n}). All lexical and @lexical/* packages used by an editor must have identical versions. If you suspect the version does match, then the problem may be caused by multiple copies of the same lexical module (e.g. both esm and cjs, or included directly in multiple entrypoints).`)}return e===Vo||e===Ko||e===rr}(e),r=!n&&Ha(e,"getType")?e.getType():void 0;let o,i=r;if(t)if(r)o=t[r];else for(const[e,n]of Object.entries(t))i=e,o=n;if(!n&&i&&(Ha(e,"getType")||(e.getType=()=>i),Ha(e,"clone")||(0===_r.length&&0!==e.length&&$(`${e.name} (type ${i}) must implement a static clone method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.clone=t=>(pi(t),new e)),Ha(e,"importJSON")||(0===_r.length&&0!==e.length&&$(`${e.name} (type ${i}) must implement a static importJSON method since its constructor has ${String(e.length)} required arguments (expecting 0). Use an explicit default in the first argument of your constructor(prop: T=X, nodeKey?: NodeKey).`),e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!Ha(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}const Ka=(e,t)=>{let n=e;for(;null!=n&&!Qo(n);){if(t(n))return n;n=n.getParent()}return null},Ga={next:"previous",previous:"next"};class Ya{origin;constructor(e){this.origin=e}[Symbol.iterator](){return vs({hasNext:ts,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return as(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return as(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,t,n="next"){const r=n===this.direction?t:Array.from(t).reverse();let o=this;const i=this.getParentAtCaret(),a=new Map;for(let t=o.getAdjacentCaret();null!==t&&a.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();a.set(e.getKey(),e)}for(const e of r){if(a.size>0){const t=o.getNodeAtCaret();if(t)if(a.delete(t.getKey()),a.delete(e.getKey()),t.is(e)||o.origin.is(e));else{const n=e.getParent();n&&n.is(i)&&e.remove(),t.replace(e)}else null===t&&$(`NodeCaret.splice: Underflow of expected nodesToRemove during splice (keys: ${Array.from(a).join(" ")})`)}else o.insert(e);o=as(e,this.direction)}for(const e of a.values())e.remove();return this}}class Va extends Ya{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:cs(e,this.direction)}getParentCaret(e="root"){return as(Qa(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Ja(this.direction);return as(this.getNodeAtCaret(),e)||cs(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Va&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const qa={root:Qo,shadowRoot:ba};function Ja(e){return Ga[e]}function Qa(e,t="root"){return qa[t](e)?null:e}class Xa extends Ya{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:as(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return Go(this.origin)?cs(this.origin,this.direction):null}getParentCaret(e="root"){return as(Qa(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Ja(this.direction);return as(this.getNodeAtCaret(),e)||cs(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof Xa&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof Xa||e instanceof Za)&&this.direction===e.direction&&this.origin.is(e.origin)}}class Za extends Ya{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ss(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return as(Qa(this.getParentAtCaret(),e),this.direction)}getFlipped(){return ss(this.origin,Ja(this.direction),this.offset)}isSamePointCaret(e){return e instanceof Za&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof Xa||e instanceof Za)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return as(this.origin,this.direction)}}function es(e){return e instanceof Za}function ts(e){return e instanceof Xa}function ns(e){return e instanceof Va}const rs={next:class extends Za{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Za{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},os={next:class extends Xa{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Xa{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},is={next:class extends Va{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Va{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function as(e,t){return e?new os[t](e):null}function ss(e,t,n){return e?new rs[t](e,ls(e,n)):null}function ls(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&$(`$getTextNodeOffset: invalid offset ${String(t)} for size ${String(r)} at key ${e.getKey()}`),o=o<0?0:r),o}function us(e,t){return new ps(e,t)}function cs(e,t){return Go(e)?new is[t](e):null}function ds(e){return e&&function(e){return e&&e.getChildCaret()||e}(e.getAdjacentCaret())}class fs{type="node-caret-range";direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new fs(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return es(t)?function(e,t){const{direction:n,origin:r}=e,o=ls(r,"focus"===t?Ja(n):n);return us(e,o-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){const{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[us(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=es(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=es(n),o=t=>t.isSameNodeCaret(n)?null:ds(t)||t.getParentCaret(e);return vs({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:o(t),map:e=>e,step:o})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class ps{type="slice";caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),o=e.getTextContent();return ss(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}}function hs(e){return gs(e,as(Wi(),e.direction))}function ms(e){return gs(e,e)}function gs(e,t){return e.direction!==t.direction&&$("$getCaretRange: anchor and focus must be in the same direction"),new fs(e,t,e.direction)}function vs(e){const{initial:t,hasNext:n,step:r,map:o}=e;let i=t;return{[Symbol.iterator](){return this},next(){if(!n(i))return{done:!0,value:void 0};const e={done:!1,value:o(i)};return i=r(i),e}}}function ys(e,t){const n=ws(e.origin,t.origin);switch(null===n&&$(`$comparePointCaretNext: a (key ${e.origin.getKey()}) and b (key ${t.origin.getKey()}) do not have a common ancestor`),n.type){case"same":{const n="text"===e.type,r="text"===t.type;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return bs(n)}}function bs(e){const{a:t,b:n}=e,r=t.__key,o=n.__key;let i=t,a=n;for(;i&&a;i=i.getNextSibling(),a=a.getNextSibling()){if(i.__key===o)return-1;if(a.__key===r)return 1}return null===i?1:-1}function xs(e,t){return t.is(e)}function _s(e){return Go(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function ws(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=_s(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=_s(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(xs(e,r)||$("$originComparison: ancestor logic error"),{commonAncestor:r,type:"ancestor"}):null===o?(xs(t,r)||$("$originComparison: descendant logic error"),{commonAncestor:r,type:"descendant"}):((Go(i)||xs(e,i))&&(Go(o)||xs(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||$("$originComparison: branch logic error"),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function ks(e,t){const{type:n,key:r,offset:o}=e,i=function(e){const t=Di(e);return null===t&&$(`Expected node with key ${e} to exist but it's not in the nodeMap.`),t}(e.key);return"text"===n?(Nr(i)||$(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from TextNode encountered for text point`),ss(i,t,o)):(Go(i)||$(`$caretFromPoint: Node with type ${i.getType()} and key ${r} that does not inherit from ElementNode encountered for element point`),function(e,t,n){let r=cs(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return Os(r,n)}(i,e.offset,t))}function Ss(e,t){const{origin:n,direction:r}=t,o="next"===r;es(t)?e.set(n.getKey(),t.offset,"text"):ts(t)?Nr(n)?e.set(n.getKey(),ls(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(ns(t)&&Go(n)||$("$setPointFromCaret: exhaustiveness check"),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function Cs(e){const t=io(),n=$r(t)?t:to();return Es(n,e),Ki(n),n}function Es(e,t){Ss(e.anchor,t.anchor),Ss(e.focus,t.focus)}function Ts(e){const{anchor:t,focus:n}=e,r=ks(t,"next"),o=ks(n,"next"),i=ys(r,o)<=0?"next":"previous";return gs(Os(r,i),Os(o,i))}function As(e){const{direction:t,origin:n}=e,r=as(n,Ja(t)).getNodeAtCaret();return r?as(r,t):cs(n.getParentOrThrow(),t)}function Rs(e,t="root"){const n=[e];for(let r=ns(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(As(r));return n}function Ls(e){return!!e&&e.origin.isAttached()}function Ns(e){const t=function(e){let t=e;for(;ns(t);){const e=ds(t);if(!ns(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(Nr(t.origin))return es(t)?t:ss(t.origin,n,n);const r=t.getAdjacentCaret();return ts(r)&&Nr(r.origin)?ss(r.origin,n,Ja(n)):t}function Ms(e){return es(e)&&e.offset!==ls(e.origin,e.direction)}function Os(e,t){return e.direction===t?e:e.getFlipped()}function Ps(e,t){return e.direction===t?e:gs(Os(e.focus,t),Os(e.anchor,t))}function zs(e){const{origin:t,offset:n,direction:r}=e;if(n===ls(t,r))return e.getSiblingCaret();if(n===ls(t,Ja(r)))return As(e.getSiblingCaret());const[o]=t.splitText(n);return Nr(o)||$("$splitTextPointCaret: splitText must return at least one TextNode"),Os(as(o,"next"),r)}function Is(e,t){return!0}function Ds(e,{$copyElementNode:t=xa,$splitTextPointCaretNext:n=zs,rootMode:r="shadowRoot",$shouldSplit:o=Is}={}){if(es(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(ns(e)&&(!n.canBeEmpty()||!o(n,"first")))return As(i);const r=function(e){const t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&o(n,"last"))&&i.insert(t(n).splice(0,0,r))}return i}function js(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function Fs(...e){const t=[];for(const n of e)if(n&&"string"==typeof n)for(const[e]of n.matchAll(/\S+/g))t.push(e);return t}function Bs(e,...t){const n=Fs(...t);n.length>0&&e.classList.add(...n)}function $s(e,...t){const n=Fs(...t);n.length>0&&e.classList.remove(...n)}function Hs(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function Ws(e){throw new Error(e)}const Us=new Map;function Ks(e){const t={};if(!e)return t;const n=e.split(";");for(const e of n)if(""!==e){const[n,r]=e.split(/:([^]+)/);n&&r&&(t[n.trim()]=r.trim())}return t}function Gs(e){let t=Us.get(e);return void 0===t&&(t=Ks(e),Us.set(e,t)),Object.freeze(t),t}function Ys(e){const t=Oa().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function Vs(e){return Ys(Qo(e)?e:e.getParentOrThrow())}function qs(e){const t=Vs(e);return null!==t&&"rtl"===t.direction}function Js(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!Ei(t)&&null!==r){const[o,i]=r,a=e.isBackward(),s=o.getNode(),l=i.getNode(),u=t.is(s),c=t.is(l);if(u||c){const[r,o]=Kr(e),i=s.is(l),u=t.is(a?l:s),c=t.is(a?s:l);let d,f=0;if(i)f=r>o?o:r,d=r>o?r:o;else if(u){f=a?o:r,d=void 0}else if(c){f=0,d=a?r:o}const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=ja(t)),t.__text=p)}}return t}function Qs(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return Go(t)||Ws("isAtNodeEnd: node must be a TextNode or ElementNode"),e.offset===t.getChildrenSize()}function Xs(e){const t=e.getStyle(),n=Ks(t);Us.set(t,n)}function Zs(e,t){($r(e)?e.isCollapsed():Nr(e)||Go(e))||Ws("$patchStyle must only be called with a TextNode, ElementNode, or collapsed RangeSelection");const n=Gs($r(e)?e.style:Nr(e)?e.getStyle():e.getTextStyle()),r=Object.entries(t).reduce(((t,[r,o])=>("function"==typeof o?t[r]=o(n[r],e):null===o?delete t[r]:t[r]=o,t)),{...n}),o=function(e){let t="";for(const n in e)n&&(t+=`${n}: ${e[n]};`);return t}(r);$r(e)||Nr(e)?e.setStyle(o):e.setTextStyle(o),Us.set(o,r)}function el(e,t){if($r(e)&&e.isCollapsed()){Zs(e,t);const n=e.anchor.getNode();Go(n)&&n.isEmpty()&&Zs(n,t)}!function(e){const t=io();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if($r(t))for(const e of Ts(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const o=t.getNodes();for(const t of o){if(!Nr(t)||!t.canHaveFormat())continue;const[n,o]=r(t);if(o!==n)if(Ei(t)||0===n&&o===t.getTextContentSize())e(t);else{e(t.splitText(n,o)[0===n?0:1])}}$r(t)&&"text"===t.anchor.type&&"text"===t.focus.type&&t.anchor.key===t.focus.key&&function(e){if(e.isBackward()){const{anchor:t,focus:n}=e,{key:r,offset:o,type:i}=t;t.set(n.key,n.offset,n.type),n.set(r,o,i)}}(t)}((e=>{Zs(e,t)}));const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!Go(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),Zs(r,t))}}}function tl(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function nl(e){const t=rl(e);return null!==t&&"vertical-rl"===t.writingMode}function rl(e){const t=e.anchor.getNode();return Go(t)?Ys(t):Vs(t)}function ol(e,t){let n=nl(e)?!t:t;il(e)&&(n=!n);const r=ks(e.focus,n?"previous":"next");if(Ms(r))return!1;for(const e of hs(r)){if(ns(e))return!e.origin.isInline();if(!Go(e.origin)){if(qo(e.origin))return!0;break}}return!1}function il(e){const t=rl(e);return null!==t&&"rtl"===t.direction}function al(e,t,n){const r=il(e);let o;o=nl(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,o,"character")}function sl(e,t,n){const r=Gs(e.getStyle());return null!==r&&r[t]||n}function ll(e,t,n=""){let r=null;const o=e.getNodes(),i=e.anchor,a=e.focus,s=e.isBackward(),l=s?a.offset:i.offset,u=s?a.getNode():i.getNode();if($r(e)&&e.isCollapsed()&&""!==e.style){const n=Gs(e.style);if(null!==n&&t in n)return n[t]}for(let e=0;e<o.length;e++){const i=o[e];if((0===e||0!==l||!i.is(u))&&Nr(i)){const e=sl(i,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function ul(e){throw new Error(e)}const cl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,dl=cl&&"documentMode"in document?document.documentMode:null;function fl(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function pl(e){const t=Ka(e,(e=>Go(e)&&!e.isInline()));return Go(t)||ul(`Expected node ${e.__key} to have closest block element node.`),t}function hl(e){const t=io()||ao();let n;if($r(t))n=ks(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=as(r,"next"))}n=n||cs(Wi(),"previous").getFlipped().insert(ii())}const r=function(e,t,n){let r=Os(t,"next");for(let e=r;e;e=Ds(e,n))r=e;es(r)&&ul("$insertNodeToNearestRootAtCaret: An unattached TextNode can not be split");return r.insert(e.isInline()?ii().append(e):e),Os(as(e.getLatest(),"next"),t.direction)}(e,n),o=ds(r);return Cs(ms(ns(o)?Ns(o):r)),e.getLatest()}function ml(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}cl&&"InputEvent"in window&&!dl&&new window.InputEvent("input");const gl=Symbol.for("preact-signals");function vl(){if(_l>1)return void _l--;let e,t=!1;for(;void 0!==bl;){let n=bl;for(bl=void 0,wl++;void 0!==n;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Tl(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(wl=0,_l--,t)throw e}let yl,bl;function xl(e){const t=yl;yl=void 0;try{return e()}finally{yl=t}}let _l=0,wl=0,kl=0;function Sl(e){if(void 0===yl)return;let t=e.n;return void 0===t||t.t!==yl?(t={i:0,S:e,p:yl.s,n:void 0,t:yl,e:void 0,x:void 0,r:t},void 0!==yl.s&&(yl.s.n=t),yl.s=t,e.n=t,32&yl.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=yl.s,t.n=void 0,yl.s.n=t,yl.s=t),t):void 0}function Cl(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function El(e,t){return new Cl(e,t)}function Tl(e){for(let t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Al(e){for(let t=e.s;void 0!==t;t=t.n){const n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Rl(e){let t,n=e.s;for(;void 0!==n;){const e=n.p;-1===n.i?(n.S.U(n),void 0!==e&&(e.n=n.n),void 0!==n.n&&(n.n.p=e)):t=n,n.S.n=n.r,void 0!==n.r&&(n.r=void 0),n=e}e.s=t}function Ll(e,t){Cl.call(this,void 0),this.x=e,this.s=void 0,this.g=kl-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Nl(e){const t=e.u;if(e.u=void 0,"function"==typeof t){_l++;const n=yl;yl=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Ml(e),t}finally{yl=n,vl()}}}function Ml(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Nl(e)}function Ol(e){if(yl!==this)throw new Error("Out-of-order effect");Rl(this),yl=e,this.f&=-2,8&this.f&&Ml(this),vl()}function Pl(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function zl(e,t){const n=new Pl(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Il(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function Dl(e){throw new Error(e)}function jl(e,t){if(e&&t&&!Array.isArray(t)&&"object"==typeof e&&"object"==typeof t){const n=e,r=t;for(const e in r)n[e]=jl(n[e],r[e]);return e}return t}Cl.prototype.brand=gl,Cl.prototype.h=function(){return!0},Cl.prototype.S=function(e){const t=this.t;t!==e&&void 0===e.e&&(e.x=t,this.t=e,void 0!==t?t.e=e:xl((()=>{var e;null==(e=this.W)||e.call(this)})))},Cl.prototype.U=function(e){if(void 0!==this.t){const t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&xl((()=>{var e;null==(e=this.Z)||e.call(this)})))}},Cl.prototype.subscribe=function(e){return zl((()=>{const t=this.value,n=yl;yl=void 0;try{e(t)}finally{yl=n}}),{name:"sub"})},Cl.prototype.valueOf=function(){return this.value},Cl.prototype.toString=function(){return this.value+""},Cl.prototype.toJSON=function(){return this.value},Cl.prototype.peek=function(){const e=yl;yl=void 0;try{return this.value}finally{yl=e}},Object.defineProperty(Cl.prototype,"value",{get(){const e=Sl(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(wl>100)throw new Error("Cycle detected");this.v=e,this.i++,kl++,_l++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{vl()}}}}),Ll.prototype=new Cl,Ll.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===kl)return!0;if(this.g=kl,this.f|=1,this.i>0&&!Tl(this))return this.f&=-2,!0;const e=yl;try{Al(this),yl=this;const e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return yl=e,Rl(this),this.f&=-2,!0},Ll.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(let e=this.s;void 0!==e;e=e.n)e.S.S(e)}Cl.prototype.S.call(this,e)},Ll.prototype.U=function(e){if(void 0!==this.t&&(Cl.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(let e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Ll.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Ll.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=Sl(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Pl.prototype.c=function(){const e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;const e=this.x();"function"==typeof e&&(this.u=e)}finally{e()}},Pl.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Nl(this),Al(this),_l++;const e=yl;return yl=this,Ol.bind(this,e)},Pl.prototype.N=function(){2&this.f||(this.f|=2,this.o=bl,bl=this)},Pl.prototype.d=function(){this.f|=8,1&this.f||Ml(this)},Pl.prototype.dispose=function(){this.d()};const Fl=0,Bl=1,$l=2,Hl=3,Wl=4,Ul=5,Kl=6,Gl=7;function Yl(e){return e.id===Fl}function Vl(e){return e.id===$l}function ql(e){return function(e){return e.id===Bl}(e)||Dl(`LexicalBuilder: Can not apply a permanent mark from state id ${String(e.id)} (expected ${String(Bl)} temporary)`),Object.assign(e,{id:$l})}const Jl=new Set;class Ql{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:Fl}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):js;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;Vl(t)||Dl(`ExtensionRep: Can not configure from state id ${String(t.id)}`);const n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},o=function(e,t,n){return Object.assign(e,{config:t,id:Hl,registerState:n})}(t,this.mergeConfigs(),n);let i;this.state=o,this.extension.init&&(i=this.extension.init(e,o.config,n)),this.state=function(e,t,n){return Object.assign(e,{id:Wl,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;t.id!==Wl&&Dl(`ExtensionRep: register called in state id ${String(t.id)} (expected ${String(Ul)} initialized)`),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));const r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:Ul,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;n.id!==Ul&&Dl(`ExtensionRep: register called in state id ${String(n.id)} (expected ${String(Ul)} built)`);const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:Kl})}(n),()=>{const e=this.state;e.id!==Gl&&Dl(`ExtensionRep: rollbackToBuiltState called in state id ${String(n.id)} (expected ${String(Gl)} afterRegistration)`),this.state=function(e){return Object.assign(e,{id:Ul})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return t.id!==Kl&&Dl(`ExtensionRep: afterRegistration called in state id ${String(t.id)} (expected ${String(Kl)} registered)`),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:Gl})}(t),n}getSignal(){return void 0===this._signal&&Dl("ExtensionRep.getSignal() called before register"),this._signal}getInitResult(){void 0===this.extension.init&&Dl(`ExtensionRep: getInitResult() called for Extension ${this.extension.name} that does not define init`);const e=this.state;return function(e){return e.id>=Wl}(e)||Dl(`ExtensionRep: getInitResult() called for ExtensionRep in state id ${String(e.id)} < ${String(Wl)} (initialized)`),e.initResult}getInitPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){const e=this.state;return function(e){return e.id>=Hl}(e)||Dl(`ExtensionRep: getExtensionInitDependency called in state id ${String(e.id)} (expected >= ${String(Hl)} configured)`),{config:e.config}}getPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Dl(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&Dl(`LexicalExtensionBuilder: Extension ${this.extension.name} missing dependency extension ${e.name} to be in registry`),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=Gl}(e)||Dl(`ExtensionRep getState called in state id ${String(e.id)} (expected ${String(Gl)} afterRegistration)`),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||Jl}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map((([e])=>e))),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){const e=this.state;(function(e){return e.id>=Ul})(e)||Dl(`Extension ${this.extension.name} used as a dependency before build`),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}const Xl={tag:ir};function Zl(){const e=Wi();e.isEmpty()&&e.append(ii())}const eu={config:{setOptions:Xl,updateOptions:Xl},init:({$initialEditorState:e=Zl})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const o=r.getInitResult();if(!o.initialized){o.initialized=!0;const{$initialEditorState:r}=o;if(r instanceof ti)e.setEditorState(r,n);else if("function"==typeof r)e.update((()=>{r(e)}),t);else if(r&&("string"==typeof r||"object"==typeof r)){const t=e.parseEditorState(r);e.setEditorState(t,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Jo,_r,cr,Or,ri]},tu=Symbol.for("@lexical/extension/LexicalBuilder");function nu(){}function ru(e){throw e}function ou(e){return Array.isArray(e)?e:[e]}const iu="0.40.0+dev.esm";class au{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=iu,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(e){const t=[ou(eu)];for(const n of e)t.push(ou(n));return new au(t)}static maybeFromEditor(e){const t=e[tu];return t&&(t.PACKAGE_VERSION!==iu&&Dl(`LexicalBuilder.fromEditor: The given editor was created with LexicalBuilder ${t.PACKAGE_VERSION} but this version is ${iu}. A project should have exactly one copy of LexicalBuilder`),t instanceof au||Dl("LexicalBuilder.fromEditor: There are multiple copies of the same version of LexicalBuilder in your project, and this editor was created with another one. Your project, or one of its dependencies, has its package.json and/or bundler configured incorrectly.")),t}static fromEditor(e){const t=au.maybeFromEditor(e);return void 0===t&&Dl("LexicalBuilder.fromEditor: The given editor was not created with LexicalBuilder"),t}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(ci({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[tu]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=nu;function t(){try{e()}finally{e=nu}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=Hs(this.registerEditor(n),(()=>n.setRootElement(null))),n}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){const t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&Dl(`LexicalBuilder: A registered extension with name ${e.name} exists but does not match the given extension`),t}addEdge(e,t,n){const r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));const o=this.incomingEdges.get(t);o?o.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&Dl("LexicalBuilder: addExtension called after finalization");const t=ou(e),[n]=t;"string"!=typeof n.name&&Dl("LexicalBuilder: extension name must be string, not "+typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&Dl(`LexicalBuilder: Multiple extensions registered with name ${n.name}, names must be unique`),!r){r=new Ql(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&Dl(`LexicalBuilder: extension ${n.name} conflicts with ${e}`);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&Dl(`LexicalBuilder: extension ${n.name} conflicts with ${e}`),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=ou(e);this.addEdge(n.name,t[0].name,t.slice(1)),this.addExtension(t)}for(const[e,t]of n.peerDependencies||[])this.addEdge(n.name,e,t?[t]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const e=[],t=(n,r)=>{let o=n.state;if(Vl(o))return;const i=n.extension.name;var a;Yl(o)||Dl(`LexicalBuilder: Circular dependency detected for Extension ${i} from ${r||"[unknown]"}`),Yl(a=o)||Dl(`LexicalBuilder: Can not apply a temporary mark from state id ${String(a.id)} (expected ${String(Fl)} unmarked)`),o=Object.assign(a,{id:Bl}),n.state=o;const s=this.outgoingConfigEdges.get(i);if(s)for(const e of s.keys()){const n=this.extensionNameMap.get(e);n&&t(n,i)}o=ql(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())Yl(e.state)&&t(e);for(const t of e)for(const[e,n]of this.outgoingConfigEdges.get(t.extension.name)||[])if(n.length>0){const t=this.extensionNameMap.get(e);if(t)for(const e of n)t.configs.add(e)}for(const[e,...t]of this.roots)if(t.length>0){const n=this.extensionNameMap.get(e.name);void 0===n&&Dl(`LexicalBuilder: Expecting existing ExtensionRep for ${e.name}`);for(const e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){const t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],o=n.signal;for(const n of t){const t=n.register(e,o);t&&r.push(t)}for(const n of t){const t=n.afterRegistration(e);t&&r.push(t)}return Hs(...r)}buildCreateEditorArgs(){const e={},t=new Set,n=new Map,r=new Map,o={},i={},a=this.sortedExtensionReps();for(const s of a){const{extension:a}=s;if(void 0!==a.onError&&(e.onError=a.onError),void 0!==a.disableEvents&&(e.disableEvents=a.disableEvents),void 0!==a.parentEditor&&(e.parentEditor=a.parentEditor),void 0!==a.editable&&(e.editable=a.editable),void 0!==a.namespace&&(e.namespace=a.namespace),void 0!==a.$initialEditorState&&(e.$initialEditorState=a.$initialEditorState),a.nodes)for(const e of Il(a)){if("function"!=typeof e){const t=n.get(e.replace);t&&Dl(`LexicalBuilder: Extension ${a.name} can not register replacement for node ${e.replace.name} because ${t.extension.name} already did`),n.set(e.replace,s)}t.add(e)}if(a.html){if(a.html.export)for(const[e,t]of a.html.export.entries())r.set(e,t);a.html.import&&Object.assign(o,a.html.import)}a.theme&&jl(i,a.theme)}Object.keys(i).length>0&&(e.theme=i),t.size&&(e.nodes=[...t]);const s=Object.keys(o).length>0,l=r.size>0;(s||l)&&(e.html={},s&&(e.html.import=o),l&&(e.html.export=r));for(const t of a)t.init(e);return e.onError||(e.onError=ru),e}}function su(e,t){return Hs(e.registerCommand(Zt,(t=>{const n=io();if(!$r(n))return!1;t.preventDefault();const r=function(e){const t=e.getNodes().filter((e=>Zr(e)&&e.canIndent()));if(t.length>0)return!0;const n=e.anchor,r=e.focus,o=r.isBefore(n)?r:n,i=pl(o.getNode());if(i.canIndent()){const e=i.getKey();let t=to();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),t=Be(t),t.anchor.is(o))return!0}return!1}(n)?t.shiftKey?nn:tn:en;return e.dispatchCommand(r,void 0)}),si),e.registerCommand(tn,(()=>{const e="number"==typeof t?t:t?t.peek():null;if(null==e)return!1;const n=io();if(!$r(n))return!1;const r=n.getNodes().map((e=>pl(e).getIndent()));return Math.max(...r)+1>=e}),4))}const lu=new Set(["http:","https:","mailto:","sms:","tel:"]);class uu extends Ko{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new uu(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},n){super(n);const{target:r=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=o,this.__title=i}createDOM(e){const t=document.createElement("a");return this.updateLinkDOM(null,t,e),Bs(t,e.theme.link),t}updateLinkDOM(e,t,n){if(Ea(t)){e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url));for(const n of["target","rel","title"]){const r=`__${n}`,o=this[r];e&&e[r]===o||(o?t[n]=o:t.removeAttribute(n))}}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:cu,priority:1})}}static importJSON(e){return du().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=xu(e);try{const t=new URL(xu(e));if(!lu.has(t.protocol))return"about:blank"}catch(t){return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){const t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){const t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){const t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){const t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){const n=du(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!$r(t))return!1;const r=t.anchor.getNode(),o=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(o)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function cu(e){let t=null;if(Ea(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=du(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function du(e="",t){return _a(new uu(e,t))}function fu(e){return e instanceof uu}class pu extends uu{__isUnlinked;constructor(e="",t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new pu(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return hu().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){const n=this.getParentOrThrow().insertNewAfter(e,t);if(Go(n)){const e=hu(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(e),e}return null}}function hu(e="",t){return _a(new pu(e,t))}function mu(e){return e instanceof pu}const gu=wt("TOGGLE_LINK_COMMAND");function vu(e,t){if("element"===e.type){const n=e.getNode();Go(n)||function(e){throw new Error(e)}("$getPointNode: element point is not an ElementNode");return n.getChildren()[e.offset+t]||null}return null}function yu(e,t={}){let n;if(e&&"object"==typeof e){const{url:r,...o}=e;n=r,t={...o,...t}}else n=e;const{target:r,title:o}=t,i=void 0===t.rel?"noreferrer":t.rel,a=io();if(null===a||!$r(a)&&!Wr(a))return;if(Wr(a)){const e=a.getNodes();if(0===e.length)return;return void e.forEach((e=>{if(null===n){const t=Ka(e,(e=>!mu(e)&&fu(e)));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=Ka(e,(e=>!mu(e)&&fu(e)));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==i&&t.setRel(i);else{const t=du(n,{rel:i,target:r});e.insertBefore(t),t.append(e)}}}))}const s=a.extract();if(null===n){const e=new Set;return void s.forEach((t=>{const n=Ka(t,(e=>!mu(e)&&fu(e)));if(null!==n){const t=n.getKey();if(e.has(t))return;!function(e,t){const n=new Set(t.filter((t=>e.isParentOf(t))).map((e=>e.getKey()))),r=e.getChildren(),o=r=>n.has(r.getKey())||Go(r)&&t.some((t=>e.isParentOf(t)&&r.isParentOf(t))),i=r.filter(o);if(i.length===r.length)return r.forEach((t=>e.insertBefore(t))),void e.remove();const a=r.findIndex(o),s=r.findLastIndex(o),l=0===a,u=s===r.length-1;if(l)i.forEach((t=>e.insertBefore(t)));else if(u)for(let t=i.length-1;t>=0;t--)e.insertAfter(i[t]);else{for(let t=i.length-1;t>=0;t--)e.insertAfter(i[t]);const t=r.slice(s+1);if(t.length>0){const n=du(e.getURL(),{rel:e.getRel(),target:e.getTarget(),title:e.getTitle()});i[i.length-1].insertAfter(n),t.forEach((e=>n.append(e)))}}}(n,s),e.add(t)}}))}const l=new Set,u=e=>{l.has(e.getKey())||(l.add(e.getKey()),e.setURL(n),void 0!==r&&e.setTarget(r),void 0!==i&&e.setRel(i),void 0!==o&&e.setTitle(o))};if(1===s.length){const e=s[0],t=Ka(e,fu);if(null!==t)return u(t)}!function(e){const t=io();if(!$r(t))return e();const n=Be(t),r=n.isBackward(),o=vu(n.anchor,r?-1:0),i=vu(n.focus,r?0:-1),a=e();if(o||i){const e=io();if($r(e)){const t=e.clone();if(o){const e=o.getParent();e&&t.anchor.set(e.getKey(),o.getIndexWithinParent()+(r?1:0),"element")}if(i){const e=i.getParent();e&&t.focus.set(e.getKey(),i.getIndexWithinParent()+(r?0:1),"element")}Ki(Be(t))}}}((()=>{let e=null;for(const t of s){if(!t.isAttached())continue;const a=Ka(t,fu);if(a){u(a);continue}if(Go(t)){if(!t.isInline())continue;if(fu(t)){if(!(mu(t)||null!==e&&e.getParentOrThrow().isParentOf(t))){u(t),e=t;continue}for(const e of t.getChildren())t.insertBefore(e);t.remove();continue}}const s=t.getPreviousSibling();fu(s)&&s.is(e)?s.append(t):(e=du(n,{rel:i,target:r,title:o}),t.insertAfter(e),e.append(t))}}))}const bu=/^\+?[0-9\s()-]{5,}$/;function xu(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:bu.test(e)?`tel:${e}`:`https://${e}`}function _u(e,t){for(let n=0;n<t.length;n++){const r=t[n](e);if(r)return r}return null}const wu=/[.,;\s]/;function ku(e){return wu.test(e)}function Su(e){return ku(e[e.length-1])}function Cu(e){return ku(e[0])}function Eu(e){let t=e.getPreviousSibling();return Go(t)&&(t=t.getLastDescendant()),null===t||pr(t)||Nr(t)&&Su(t.getTextContent())}function Tu(e){let t=e.getNextSibling();return Go(t)&&(t=t.getFirstDescendant()),null===t||pr(t)||Nr(t)&&Cu(t.getTextContent())}function Au(e,t,n,r){if(!(e>0?ku(n[e-1]):Eu(r[0])))return!1;return t<n.length?ku(n[t]):Tu(r[r.length-1])}function Ru(e,t,n){const r=[],o=[],i=[];let a=0,s=0;const l=[...e];for(;l.length>0;){const e=l[0],u=e.getTextContent().length,c=s;s+u<=t?(r.push(e),a+=u):c>=n?i.push(e):o.push(e),s+=u,l.shift()}return[a,r,o,i]}function Lu(e,t,n,r){const o=hu(r.url,r.attributes);if(1===e.length){let i,a=e[0];0===t?[i,a]=a.splitText(n):[,i,a]=a.splitText(t,n);const s=Lr(r.text);return s.setFormat(i.getFormat()),s.setDetail(i.getDetail()),s.setStyle(i.getStyle()),o.append(s),i.replace(o),a}if(e.length>1){const r=e[0];let i,a=r.getTextContent().length;0===t?i=r:[,i]=r.splitText(t);const s=[];let l;for(let t=1;t<e.length;t++){const r=e[t],o=r.getTextContent().length,i=a;if(i<n)if(a+o<=n)s.push(r);else{const[e,t]=r.splitText(n-i);s.push(e),l=t}a+=o}const u=io(),c=u?u.getNodes().find(Nr):void 0,d=Lr(i.getTextContent());return d.setFormat(i.getFormat()),d.setDetail(i.getDetail()),d.setStyle(i.getStyle()),o.append(d,...s),c&&c===i&&($r(u)?d.select(u.anchor.offset,u.focus.offset):Wr(u)&&d.select(0,d.getTextContent().length)),i.replace(o),l}}function Nu(e,t,n){const r=e.getChildren(),o=r.length;for(let t=0;t<o;t++){const o=r[t];if(!Nr(o)||!o.isSimpleText())return Mu(e),void n(null,e.getURL())}const i=e.getTextContent(),a=_u(i,t);if(null===a||a.text!==i)return Mu(e),void n(null,e.getURL());if(!Eu(e)||!Tu(e))return Mu(e),void n(null,e.getURL());const s=e.getURL();if(s!==a.url&&(e.setURL(a.url),n(a.url,s)),a.attributes){const t=e.getRel();t!==a.attributes.rel&&(e.setRel(a.attributes.rel||null),n(a.attributes.rel||null,t));const r=e.getTarget();r!==a.attributes.target&&(e.setTarget(a.attributes.target||null),n(a.attributes.target||null,r))}}function Mu(e){const t=e.getChildren();for(let n=t.length-1;n>=0;n--)e.insertAfter(t[n]);return e.remove(),t.map((e=>e.getLatest()))}const Ou={changeHandlers:[],matchers:[]};function Pu(e,t=Ou){const{matchers:n,changeHandlers:r}=t,o=(e,t)=>{for(const n of r)n(e,t)};return Hs(e.registerNodeTransform(_r,(e=>{const t=e.getParentOrThrow(),r=e.getPreviousSibling();if(mu(t)&&!t.getIsUnlinked())Nu(t,n,o);else if(!fu(t)){if(e.isSimpleText()&&(Cu(e.getTextContent())||!mu(r))){const t=function(e){const t=[e];let n=e.getNextSibling();for(;null!==n&&Nr(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(e);!function(e,t,n){for(const t of e){const e=t.getParent();if(mu(e)&&!e.getIsUnlinked())return}let r=[...e];const o=r.map((e=>e.getTextContent())).join("");let i,a=o,s=0;for(;(i=_u(a,t))&&null!==i;){const e=i.index,t=e+i.length;if(Au(s+e,s+t,o,r)){const[o,,l,u]=Ru(r,s+e,s+t);let c=!1;for(const e of l){const t=e.getParent();if(mu(t)&&!t.getIsUnlinked()){c=!0;break}}if(c){s+=t,a=a.substring(t);continue}const d=Lu(l,s+e-o,s+t-o,i);r=d?[d,...u]:u,n(i.url,null),s=0}else s+=t;a=a.substring(t)}}(t,n,o)}!function(e,t,n){const r=e.getParent(),o=e.getPreviousSibling(),i=e.getNextSibling(),a=e.getTextContent();if(!mu(r)||r.getIsUnlinked()){if(mu(o)&&!o.getIsUnlinked()&&o.is(e.getPreviousSibling())&&e.getParent()===o.getParent()){if(!Cu(a))return Mu(o),void n(null,o.getURL());if(s=a,o.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(s):/^\.[a-zA-Z0-9]{1,}/.test(s)){const r=o.getTextContent()+a,i=_u(r,t);null!==i&&i.text===r&&(o.append(e),Nu(o,t,n),n(null,o.getURL()))}}var s;!mu(i)||i.getIsUnlinked()||Su(a)||i.is(e.getNextSibling())&&e.getParent()===i.getParent()&&(Mu(i),n(null,i.getURL()))}}(e,n,o)}})),e.registerCommand(gu,(e=>{const t=io();if(null!==e||!$r(t))return!1;return t.extract().forEach((e=>{const t=e.getParent();mu(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())})),!1}),1))}function zu(e){throw new Error(e)}function Iu(e){let t=1,n=e.getParent();for(;null!=n;){if(ec(n)){const e=n.getParent();if(sc(e)){t++,n=e.getParent();continue}zu("A ListItemNode must have a ListNode for a parent.")}return t}return t}function Du(e){let t=e.getParent();sc(t)||zu("A ListItemNode must have a ListNode for a parent.");let n=t;for(;null!==n;)n=n.getParent(),sc(n)&&(t=n);return t}function ju(e){let t=[];const n=e.getChildren().filter(ec);for(let e=0;e<n.length;e++){const r=n[e],o=r.getFirstChild();sc(o)?t=t.concat(ju(o)):t.push(r)}return t}function Fu(e){return ec(e)&&sc(e.getFirstChild())}function Bu(e){return Zu().append(e)}function $u(e,t){return ec(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function Hu(e){const t=io();if(null!==t){let n=t.getNodes();if($r(t)){const r=t.getStartEndPoints();null===r&&zu("insertList: anchor should be defined");const[o]=r,i=o.getNode(),a=i.getParent();if(ba(i)){const e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=ii();i.append(e),n=e.select().getNodes()}}else if($u(i,n)){const t=ac(e);if(ba(a)){i.replace(t);const e=Zu();Go(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(ec(i)){const e=i.getParentOrThrow();Wu(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const o=n[t];if(Go(o)&&o.isEmpty()&&!ec(o)&&!r.has(o.getKey())){Uu(o,e);continue}let i=Ni(o)?o.getParent():ec(o)&&o.isEmpty()?o:null;for(;null!=i;){const t=i.getKey();if(sc(i)){if(!r.has(t)){const n=ac(e);Wu(n,i.getChildren()),i.replace(n),r.add(t)}break}{const n=i.getParent();if(ba(n)&&!r.has(t)){r.add(t),Uu(i,e);break}i=n}}}}}function Wu(e,t){e.splice(e.getChildrenSize(),0,t)}function Uu(e,t){if(sc(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=Zu();let i;if(Wu(o,e.getChildren()),sc(n)&&t===n.getListType())n.append(o),sc(r)&&t===r.getListType()&&(Wu(n,r.getChildren()),r.remove()),i=n;else if(sc(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const n=ac(t);n.append(o),e.replace(n),i=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());const a=io();return $r(a)&&(i.getKey()===a.anchor.key&&a.anchor.set(o.getKey(),a.anchor.offset,"element"),i.getKey()===a.focus.key&&a.focus.set(o.getKey(),a.focus.offset,"element")),e.remove(),i}function Ku(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&Fu(n)&&Fu(r)&&(Ku(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function Gu(e){const t="check"!==e.getListType();let n=e.getStart();for(const r of e.getChildren())ec(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),sc(r.getFirstChild())||n++)}function Yu(e){const t=new Set;if(Fu(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(Fu(r)&&Fu(o)){const n=o.getFirstChild();if(sc(n)){n.append(e);const o=r.getFirstChild();if(sc(o)){Wu(n,o.getChildren()),r.remove(),t.add(r.getKey())}}}else if(Fu(r)){const t=r.getFirstChild();if(sc(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(Fu(o)){const t=o.getFirstChild();sc(t)&&t.append(e)}else if(sc(n)){const t=Zu().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),i=ac(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());t.append(i),i.append(e),o?o.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function Vu(e){if(Fu(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(sc(n?n.getParent():void 0)&&ec(n)&&sc(t)){const r=t?t.getFirstChild():void 0,o=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(o))n.insertAfter(e),t.isEmpty()&&n.remove();else{const r=t.getListType(),o=Zu(),i=ac(r);o.append(i),e.getPreviousSiblings().forEach((e=>i.append(e)));const a=Zu(),s=ac(r);a.append(s),Wu(s,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(a),n.replace(e)}}}function qu(){const e=io();if(!$r(e)||!e.isCollapsed())return!1;const t=e.anchor.getNode();let n=null;if(ec(t)&&0===t.getChildrenSize())n=t;else if(Nr(t)){const e=t.getParent();ec(e)&&e.getChildren().every((e=>Nr(e)&&""===e.getTextContent().trim()))&&(n=e)}if(null===n)return!1;const r=Du(n),o=n.getParent();sc(o)||zu("A ListItemNode must have a ListNode for a parent.");const i=o.getParent();let a;if(ba(i))a=ii(),r.insertAfter(a);else{if(!ec(i))return!1;a=Zu(),i.insertAfter(a)}a.setTextStyle(e.style).setTextFormat(e.format).select();const s=n.getNextSiblings();if(s.length>0){const e=ac(o.getListType());if(ec(a)){const t=Zu();t.append(e),a.insertAfter(t)}else a.insertAfter(e);e.append(...s)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){const e=t.getParent();if(null==e||!ec(e)&&!sc(e))break;t=e}t.remove()}(n),!0}class Ju extends Ko{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;const t=e.getParent();sc(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:Ko,importDOM:{li:()=>({conversion:Qu,priority:0})}})}constructor(e=1,t=void 0,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){const t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){!function(e,t,n){const r=t.getParent();!sc(r)||"check"!==r.getListType()||sc(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}(t,this,e),t.value=this.__value,function(e,t,n){const r=[],o=[],i=t.list,a=i?i.listitem:void 0;let s;i&&i.nested&&(s=i.nested.listitem);void 0!==a&&r.push(...Fs(a));if(i){const e=n.getParent(),t=sc(e)&&"check"===e.getListType(),a=n.getChecked();t&&!a||o.push(i.listitemUnchecked),t&&a||o.push(i.listitemChecked),t&&r.push(a?i.listitemChecked:i.listitemUnchecked)}if(void 0!==s){const e=Fs(s);n.getChildren().some((e=>sc(e)))?r.push(...e):o.push(...e)}o.length>0&&$s(e,...o);r.length>0&&Bs(e,...r)}(t,n.theme,this);const r=e?e.__style:"",o=this.__style;r!==o&&(""===o?t.removeAttribute("style"):t.style.cssText=o),function(e,t,n){const r=Gs(t.__textStyle);for(const t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(const t in Gs(n.__textStyle))t in r||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){const r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){const t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);const r=this.getDirection();return r&&(t.dir=r),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){const n=e[t];if(Go(n)&&this.canMergeWith(n)){const e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(ec(e))return super.replace(e);this.setIndent(0);const n=this.getParentOrThrow();if(!sc(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=ac(n.getListType());let r=this.getNextSibling();for(;r;){const e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&(Go(e)||zu("includeChildren should only be true for ElementNodes"),this.getChildren().forEach((t=>{e.append(t)}))),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){const n=this.getParentOrThrow();if(sc(n)||zu("insertAfter: list node is not parent of list item node"),ec(e))return super.insertAfter(e,t);const r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){const o=ac(n.getListType());r.forEach((e=>o.append(e))),e.insertAfter(o,t)}return e}remove(e){const t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&Fu(t)&&Fu(n)&&(Ku(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){const n=Zu().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){const t=ii();this.getChildren().forEach((e=>t.append(e)));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),o=ec(r);if(1===n.getChildrenSize())if(o)n.remove(),r.select();else{n.insertBefore(t),n.remove();const r=e.anchor,o=e.focus,i=t.getKey();"element"===r.type&&r.getNode().is(this)&&r.set(i,r.offset,"element"),"element"===o.type&&o.getNode().is(this)&&o.set(i,o.offset,"element")}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){const t=this.getWritable();return t.__value=e,t}getChecked(){const e=this.getLatest();let t;const n=this.getParent();return sc(n)&&(t=n.getListType()),"check"===t?Boolean(e.__checked):void 0}setChecked(e){const t=this.getWritable();return t.__checked=e,t}toggleChecked(){const e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){const e=this.getParent();if(null===e||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;ec(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&zu("Invalid indent value."),(e=Math.floor(e))>=0||zu("Indent value must be non-negative.");let t=this.getIndent();for(;t!==e;)t<e?(Yu(this),t++):(Vu(this),t--);return this}canInsertAfter(e){return ec(e)}canReplaceWith(e){return ec(e)}canMergeWith(e){return ec(e)||ai(e)}extractWithChild(e,t){if(!$r(t))return!1;const n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return ac("bullet")}canMergeWhenEmpty(){return!0}}function Qu(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return Xu(t);if(e.classList.contains("joplin-checkbox"))for(const t of e.children)if(t.classList.contains("checkbox-wrapper")&&t.children.length>0&&"INPUT"===t.children[0].tagName)return Xu(t.children[0]);const t=e.getAttribute("aria-checked");return{node:Zu("true"===t||"false"!==t&&void 0)}}function Xu(e){if(!("checkbox"===e.getAttribute("type")))return{node:null};return{node:Zu(e.hasAttribute("checked"))}}function Zu(e){return _a(new Ju(void 0,e))}function ec(e){return e instanceof Ju}class tc extends Ko{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();sc(t)&&e.getListType()===t.getListType()&&Ku(e,t)}(e),Gu(e)},extends:Ko,importDOM:{ol:()=>({conversion:oc,priority:0}),ul:()=>({conversion:oc,priority:0})}})}constructor(e="number",t=1,n){super(n);const r=ic[e]||e;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){const t=this.getWritable();return t.__listType=e,t.__tag="number"===e?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){const t=this.getWritable();return t.__start=e,t}createDOM(e,t){const n=this.__tag,r=document.createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,nc(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(nc(t,n.theme,this),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){const t=this.createDOM(e._config,e);return Ta(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e<n.length;e++){const t=n[e];ec(t)||(r===n&&(r=[...n]),r[e]=Zu().append(!Go(t)||sc(t)||t.isInline()?t:Lr(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return ec(e)}}function nc(e,t,n){const r=[],o=[],i=t.list;if(void 0!==i){const e=i[`${n.__tag}Depth`]||[],t=Iu(n)-1,a=t%e.length,s=e[a],l=i[n.__tag];let u;const c=i.nested,d=i.checklist;if(void 0!==c&&c.list&&(u=c.list),void 0!==l&&r.push(l),void 0!==d&&"check"===n.__listType&&r.push(d),void 0!==s){r.push(...Fs(s));for(let t=0;t<e.length;t++)t!==a&&o.push(n.__tag+t)}if(void 0!==u){const e=Fs(u);t>1?r.push(...e):o.push(...e)}}o.length>0&&$s(e,...o),r.length>0&&Bs(e,...r)}function rc(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(ec(r)){t.push(r);const e=r.getChildren();e.length>1&&e.forEach((e=>{sc(e)&&t.push(Bu(e))}))}else t.push(Bu(r))}return t}function oc(e){const t=e.nodeName.toLowerCase();let n=null;if("ol"===t){n=ac("number",e.start)}else"ul"===t&&(n=function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list")||"1"===e.getAttribute("data-is-checklist"))return!0;for(const t of e.childNodes)if(Ta(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?ac("check"):ac("bullet"));return{after:rc,node:n}}const ic={ol:"number",ul:"bullet"};function ac(e="number",t=1){return _a(new tc(e,t))}function sc(e){return e instanceof tc}const lc=wt("UPDATE_LIST_START_COMMAND"),uc=wt("INSERT_UNORDERED_LIST_COMMAND"),cc=wt("INSERT_ORDERED_LIST_COMMAND"),dc=wt("REMOVE_LIST_COMMAND");function fc(e){const t=Hs(e.registerCommand(cc,(()=>(Hu("number"),!0)),1),e.registerCommand(lc,(e=>{const{listNodeKey:t,newStart:n}=e,r=Di(t);return!!sc(r)&&("number"===r.getListType()&&(r.setStart(n),Gu(r)),!0)}),1),e.registerCommand(uc,(()=>(Hu("bullet"),!0)),1),e.registerCommand(dc,(()=>(function(){const e=io();if($r(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if($u(r,n))t.add(Du(r));else for(let e=0;e<n.length;e++){const r=n[e];if(Ni(r)){const e=fl(r,Ju);null!=e&&t.add(Du(e))}}for(const n of t){let t=n;const r=ju(n);for(const n of r){const r=ii().setTextStyle(e.style).setTextFormat(e.format);Wu(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&Ss(e.anchor,Ns(cs(r,"next"))),n.__key===e.focus.key&&Ss(e.focus,Ns(cs(r,"next"))),n.remove()}n.remove()}}}(),!0)),1),e.registerCommand(Mt,(()=>qu()),1),e.registerNodeTransform(Ju,(e=>{const t=e.getFirstChild();if(t){if(Nr(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=io();$r(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}})),e.registerNodeTransform(_r,(e=>{const t=e.getParent();if(ec(t)&&e.is(t.getFirstChild())){const n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}})));return t}function pc(e){const t=e=>{const t=e.getParent();if(sc(e.getFirstChild())||!sc(t))return;const n=Ka(e,(e=>ec(e)&&sc(e.getParent())&&ec(e.getPreviousSibling())));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(ec(n)){const r=n.getPreviousSibling();if(ec(r)){const n=function(e){let t=e,n=t.getFirstChild();for(;sc(n);){const e=n.getLastChild();if(!ec(e))break;t=e,n=t.getFirstChild()}return t}(r),o=n.getParent();if(sc(o)){const n=Iu(o);n+1<Iu(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(tc,(e=>{const n=[e];for(;n.length>0;){const e=n.shift();if(sc(e))for(const r of e.getChildren())if(ec(r)){t(r);const e=r.getFirstChild();sc(e)&&n.push(e)}}}))}const hc=D.createContext(null);function mc(){const e=D.useContext(hc);return null==e&&function(e){throw new Error(e)}("LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext"),e}var gc,vc,yc={exports:{}},bc={};var xc=(vc||(vc=1,yc.exports=function(){if(gc)return bc;gc=1;var e=C(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return bc.Fragment=n,bc.jsx=a,bc.jsxs=a,bc}()),yc.exports);const _c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,wc=_c?D.useLayoutEffect:D.useEffect,kc={tag:ir};function Sc({initialConfig:e,children:t}){const n=D.useMemo((()=>{const{theme:t,namespace:n,nodes:r,onError:o,editorState:i,html:a}=e,s=function(e,t){return{getTheme:function(){return null!=t?t:null}}}(0,t),l=ci({editable:e.editable,html:a,namespace:n,nodes:r,onError:e=>o(e,l),theme:t});return function(e,t){if(null===t)return;if(void 0===t)e.update((()=>{const t=Wi();if(t.isEmpty()){const n=ii();t.append(n);const r=_c?document.activeElement:null;(null!==io()||null!==r&&r===e.getRootElement())&&n.select()}}),kc);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,kc);break}case"object":e.setEditorState(t,kc);break;case"function":e.update((()=>{Wi().isEmpty()&&t(e)}),kc)}}(l,i),[l,s]}),[]);return wc((()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)}),[]),xc.jsx(hc.Provider,{value:n,children:t})}function Cc(e,t,n,r,o){if(null===e||0===n.size&&0===r.size&&!o)return 0;const i=t._selection,a=e._selection;if(o)return 1;if(!($r(i)&&$r(a)&&a.isCollapsed()&&i.isCollapsed()))return 0;const s=function(e,t,n){const r=e._nodeMap,o=[];for(const e of t){const t=r.get(e);void 0!==t&&o.push(t)}for(const[e,t]of n){if(!t)continue;const n=r.get(e);void 0===n||Qo(n)||o.push(n)}return o}(t,n,r);if(0===s.length)return 0;if(s.length>1){const n=t._nodeMap,r=n.get(i.anchor.key),o=n.get(a.anchor.key);return r&&o&&!e._nodeMap.has(r.__key)&&Nr(r)&&1===r.__text.length&&1===i.anchor.offset?2:0}const l=s[0],u=e._nodeMap.get(l.__key);if(!Nr(u)||!Nr(l)||u.__mode!==l.__mode)return 0;const c=u.__text,d=l.__text;if(c===d)return 0;const f=i.anchor,p=a.anchor;if(f.key!==p.key||"text"!==f.type)return 0;const h=f.offset,m=p.offset,g=d.length-c.length;return 1===g&&m===h-1?2:-1===g&&m===h+1?3:-1===g&&m===h?4:0}function Ec(e,t){let n=Date.now(),r=0;return(o,i,a,s,l,u)=>{const c=Date.now();if(u.has(or))return r=0,n=c,2;const d=Cc(o,i,s,l,e.isComposing()),f=(()=>{const f=null===a||a.editor===e,p=u.has("history-push");if(!p&&f&&u.has(ir))return 0;if(null===o)return 1;const h=i._selection;if(!(s.size>0||l.size>0))return null!==h?0:2;const m="number"==typeof t?t:t.peek();if(!1===p&&0!==d&&d===r&&c<n+m&&f)return 0;if(1===s.size){if(function(e,t,n){const r=t._nodeMap.get(e),o=n._nodeMap.get(e),i=t._selection,a=n._selection;return!($r(i)&&$r(a)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!Nr(r)||!Nr(o)||r.__parent!==o.__parent)&&JSON.stringify(t.read((()=>r.exportJSON())))===JSON.stringify(n.read((()=>o.exportJSON())))}(Array.from(s)[0],o,i))return 0}return 1})();return n=c,r=d,f}}function Tc(e){e.undoStack=[],e.redoStack=[],e.current=null}function Ac(e,t,n){const r=Ec(e,n),o=Hs(e.registerCommand(Ft,(()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==r.length){const o=t.current,i=r.pop();null!==o&&(n.push(o),e.dispatchCommand(hn,!0)),0===r.length&&e.dispatchCommand(mn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:or})}}(e,t),!0)),si),e.registerCommand(Bt,(()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==n.length){const o=t.current;null!==o&&(r.push(o),e.dispatchCommand(mn,!0));const i=n.pop();0===n.length&&e.dispatchCommand(hn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:or})}}(e,t),!0)),si),e.registerCommand(fn,(()=>(Tc(t),!1)),si),e.registerCommand(pn,(()=>(Tc(t),e.dispatchCommand(hn,!1),e.dispatchCommand(mn,!1),!0)),si),e.registerUpdateListener((({editorState:n,prevEditorState:o,dirtyLeaves:i,dirtyElements:a,tags:s})=>{const l=t.current,u=t.redoStack,c=t.undoStack,d=null===l?null:l.editorState;if(null!==l&&n===d)return;const f=r(o,n,l,i,a,s);if(1===f)0!==u.length&&(t.redoStack=[],e.dispatchCommand(hn,!1)),null!==l&&(c.push({...l}),e.dispatchCommand(mn,!0));else if(2===f)return;t.current={editor:e,editorState:n}})));return o}function Rc({delay:e,externalHistoryState:t}){const[n]=mc();return function(e,t,n=1e3){const r=D.useMemo((()=>t||{current:null,redoStack:[],undoStack:[]}),[t]);D.useEffect((()=>Ac(e,r,n)),[n,e,r])}(n,t,e),null}function Lc({hasStrictIndent:e=!1}){const[t]=mc();return D.useEffect((()=>{if(!t.hasNodes([tc,Ju]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")}),[t]),D.useEffect((()=>{if(e)return pc(t)}),[t,e]),function(e){D.useEffect((()=>fc(e)),[e])}(t),null}function Nc({maxIndent:e}){const[t]=mc();return D.useEffect((()=>su(t,e)),[t,e]),null}function Mc(e,t){const n=Ai(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!Pc.has(t.nodeName)){const n=zc(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof ni&&t.insertAfter(fr());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}function Oc(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=Go(t)&&t.excludeFromCopy("html");let a=t;null!==r&&Nr(t)&&(a=Js(r,t,"clone"));const s=Go(a)?a.getChildren():[],l=gi(e,a.getType());let u;u=l&&void 0!==l.exportDOM?l.exportDOM(e,a):a.exportDOM(e);const{element:c,after:d}=u;if(!c)return!1;const f=document.createDocumentFragment();for(let n=0;n<s.length;n++){const i=s[n],a=Oc(e,i,f,r);!o&&Go(t)&&a&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((Ta(c)||Ra(c))&&c.append(f),n.append(c),d){const e=d.call(a,c);e&&(Ra(c)?c.replaceChildren(e):c.replaceWith(e))}}else n.append(f);return o}const Pc=new Set(["STYLE","SCRIPT"]);function zc(e,t,n,r,o=new Map,i){let a=[];if(Pc.has(e.nodeName))return a;let s=null;const l=function(e,t){const{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase());let o=null;if(void 0!==r)for(const t of r){const n=t(e);null!==n&&(null===o||(o.priority||0)<=(n.priority||0))&&(o=n)}return null!==o?o.conversion:null}(e,t),u=l?l(e):null;let c=null;if(null!==u){c=u.after;const t=u.node;if(s=Array.isArray(t)?t[t.length-1]:t,null!==s){for(const[,e]of o)if(s=e(s,i),!s)break;s&&a.push(...Array.isArray(t)?t:[s])}null!=u.forChild&&o.set(e.nodeName,u.forChild)}const d=e.childNodes;let f=[];const p=(null==s||!ba(s))&&(null!=s&&Zr(s)||r);for(let e=0;e<d.length;e++)f.push(...zc(d[e],t,n,p,new Map(o),s));return null!=c&&(f=c(f)),Na(e)&&(f=Ic(e,f,p?()=>{const e=new ni;return n.push(e),e}:ii)),null==s?f.length>0?a=a.concat(f):Na(e)&&function(e){if(null==e.nextSibling||null==e.previousSibling)return!1;return La(e.nextSibling)&&La(e.previousSibling)}(e)&&(a=a.concat(fr())):Go(s)&&s.append(...f),a}function Ic(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const a=t[e];if(Zr(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),e===t.length-1||e<t.length-1&&Zr(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}function Dc(e){throw new Error(e)}function jc(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes)){const r=function(e){const t=[];for(let n=0;n<e.length;n++){const r=Po(e[n]);Nr(r)&&Xs(r),t.push(r)}return t}(e.nodes);return Fc(n,r,t)}}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{const e=(new DOMParser).parseFromString(function(e){if(window.trustedTypes&&window.trustedTypes.createPolicy){return window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e)}return e}(o),"text/html");return Fc(n,Mc(n,e),t)}catch(e){console.error(e)}const a=i||e.getData("text/uri-list");if(null!=a)if($r(t)){const e=a.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=io();if($r(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([Pr()]):n.insertText(r)}}}else t.insertRawText(a)}function Fc(e,t,n){e.dispatchCommand(St,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if($r(e)&&e.isCollapsed()){let t=null;const n=ks(e.anchor,"previous");if(n)if(es(n))t=n.origin;else{const e=gs(n,cs(Wi(),"next").getFlipped());for(const n of e){if(Nr(n.origin)){t=n.origin;break}if(Go(n.origin)&&!n.origin.isInline())break}}if(t&&Nr(t)){const n=t.getFormat(),r=t.getStyle();e.format===n&&e.style===r||(e.format=n,e.style=r,e.dirty=!0)}}}(n))}function Bc(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=Go(n)&&n.excludeFromCopy("html");let a=n;null!==t&&Nr(a)&&(a=Js(t,a,"clone"));const s=Go(a)?a.getChildren():[],l=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Dc(`LexicalNode: Node ${n.name} does not implement .exportJSON().`),Go(e)){const e=t.children;Array.isArray(e)||Dc(`LexicalNode: Node ${n.name} is an element but .exportJSON() does not have a children array.`)}return t}(a);Nr(a)&&0===a.getTextContentSize()&&(o=!1);for(let r=0;r<s.length;r++){const i=s[r],a=Bc(e,t,i,l.children);!o&&Go(n)&&a&&n.extractWithChild(i,t,"clone")&&(o=!0)}if(o&&!i)r.push(l);else if(Array.isArray(l.children))for(let e=0;e<l.children.length;e++){const t=l.children[e];r.push(t)}return o}let $c=null;async function Hc(e,t,n){if(null!==$c)return!1;if(null!==t)return new Promise(((r,o)=>{e.update((()=>{r(Wc(e,t,n))}))}));const r=e.getRootElement(),o=e._window||window,i=o.document,a=Ca(o);if(null===r||null===a)return!1;const s=i.createElement("span");s.style.cssText="position: fixed; top: -1000px;",s.append(i.createTextNode("#")),r.append(s);const l=new Range;return l.setStart(s,0),l.setEnd(s,1),a.removeAllRanges(),a.addRange(l),new Promise(((t,r)=>{const a=e.registerCommand(un,(r=>(ml(r,ClipboardEvent)&&(a(),null!==$c&&(o.clearTimeout($c),$c=null),t(Wc(e,r,n))),!0)),4);$c=o.setTimeout((()=>{a(),$c=null,t(!1)}),50),i.execCommand("copy"),s.remove()}))}function Wc(e,t,n){if(void 0===n){const t=Ca(e._window),r=io();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!_i(e,o,i))return!1;n=Kc(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(function(e,t){for(const[n]of Uc)void 0===t[n]&&e.setData(n,"");for(const n in t){const r=t[n];void 0!==r&&e.setData(n,r)}}(r,n),!0)}const Uc=[["text/html",function(e,t=io()){return null==t&&Dc("Expected valid LexicalSelection"),$r(t)&&t.isCollapsed()||0===t.getNodes().length?"":function(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=Wi().getChildren();for(let o=0;o<r.length;o++)Oc(e,r[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=io()){return null==t&&Dc("Expected valid LexicalSelection"),$r(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Wi().getChildren();for(let o=0;o<r.length;o++){Bc(e,t,r[o],n)}return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function Kc(e=io()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=Oa();for(const[r,o]of Uc){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function Gc(e,t){if(void 0!==document.caretRangeFromPoint){const n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){const n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}const Yc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Vc=Yc&&"documentMode"in document?document.documentMode:null,qc=Yc&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Jc=!(!Yc||!("InputEvent"in window)||Vc)&&"getTargetRanges"in new window.InputEvent("input"),Qc=Yc&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Xc=Yc&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Zc=Yc&&/^(?=.*Chrome).*/i.test(navigator.userAgent),ed=Yc&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&qc&&!Zc,td=wt("DRAG_DROP_PASTE_FILE");class nd extends Ko{static getType(){return"quote"}static clone(e){return new nd(e.__key)}createDOM(e){const t=document.createElement("blockquote");return Bs(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:ld,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ta(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return rd().updateFromJSON(e)}insertNewAfter(e,t){const n=ii(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=ii();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function rd(){return _a(new nd)}function od(e){return e instanceof nd}class id extends Ko{__tag;static getType(){return"heading"}static clone(e){return new id(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){const t=this.getWritable();return this.__tag=e,t}createDOM(e){const t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){Bs(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:sd,priority:0}),h2:e=>({conversion:sd,priority:0}),h3:e=>({conversion:sd,priority:0}),h4:e=>({conversion:sd,priority:0}),h5:e=>({conversion:sd,priority:0}),h6:e=>({conversion:sd,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&ad(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>ad(e)?{conversion:e=>({node:ud("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ta(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return ud(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){const n=e?e.anchor.offset:0,r=this.getLastDescendant(),o=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?ii():ud(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=ii();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?ii():ud(this.getTag());return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}extractWithChild(){return!0}}function ad(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function sd(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=ud(t),null!==e.style&&(Fa(e,n),n.setFormat(e.style.textAlign))),{node:n}}function ld(e){const t=rd();return null!==e.style&&(t.setFormat(e.style.textAlign),Fa(e,t)),{node:t}}function ud(e="h1"){return _a(new id(e))}function cd(e){return e instanceof id}function dd(e){let t=null;if(ml(e,DragEvent)?t=e.dataTransfer:ml(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];const n=t.types,r=n.includes("Files"),o=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),o]}function fd(e){const t=io();if(!$r(t))return!1;const n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){const o=r[t],i=o.getKey();if(n.has(i))continue;const a=Ka(o,(e=>Go(e)&&!e.isInline()));if(null===a)continue;const s=a.getKey();a.canIndent()&&!n.has(s)&&(n.add(s),e(a))}return n.size>0}function pd(e){return qo(Bi(e))}function hd(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function md(e){const t=Hs(e.registerCommand(Ct,(e=>{const t=io();return!!Wr(t)&&(t.clear(),!0)}),si),e.registerCommand(Lt,(e=>{const t=io();return $r(t)?(t.deleteCharacter(e),!0):!!Wr(t)&&(t.deleteNodes(),!0)}),si),e.registerCommand(It,(e=>{const t=io();return!!$r(t)&&(t.deleteWord(e),!0)}),si),e.registerCommand(Dt,(e=>{const t=io();return!!$r(t)&&(t.deleteLine(e),!0)}),si),e.registerCommand(Ot,(t=>{const n=io();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)jc(r,n,e);else if($r(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0}),si),e.registerCommand(zt,(()=>{const e=io();return!!$r(e)&&(e.removeText(),!0)}),si),e.registerCommand(jt,(e=>{const t=io();return!!$r(t)&&(t.formatText(e),!0)}),si),e.registerCommand(on,(e=>{const t=io();if(!$r(t)&&!Wr(t))return!1;const n=t.getNodes();for(const t of n){const n=Ka(t,(e=>Go(e)&&!e.isInline()));null!==n&&n.setFormat(e)}return!0}),si),e.registerCommand(Nt,(e=>{const t=io();return!!$r(t)&&(t.insertLineBreak(e),!0)}),si),e.registerCommand(Mt,(()=>{const e=io();return!!$r(e)&&(e.insertParagraph(),!0)}),si),e.registerCommand(en,(()=>(ho([Pr()]),!0)),si),e.registerCommand(tn,(()=>fd((e=>{const t=e.getIndent();e.setIndent(t+1)}))),si),e.registerCommand(nn,(()=>fd((e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}))),si),e.registerCommand(Gt,(e=>{const t=io();if(Wr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if($r(t)){const n=ca(t.focus,!0);if(!e.shiftKey&&qo(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1}),si),e.registerCommand(Yt,(e=>{const t=io();if(Wr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if($r(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Wi().getChildrenSize()}(t))return e.preventDefault(),!0;const n=ca(t.focus,!1);if(!e.shiftKey&&qo(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1}),si),e.registerCommand(Ut,(e=>{const t=io();if(Wr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),qs(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!$r(t))return!1;if(ol(t,!0)){const n=e.shiftKey;return e.preventDefault(),al(t,n,!0),!0}return!1}),si),e.registerCommand(Ht,(e=>{const t=io();if(Wr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),qs(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!$r(t))return!1;const n=e.shiftKey;return!!ol(t,!1)&&(e.preventDefault(),al(t,n,!1),!0)}),si),e.registerCommand(Jt,(t=>{if(pd(t.target))return!1;const n=io();if($r(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(Qo(n))return!1;const r=pl(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(nn,void 0);if(Xc&&"ko-KR"===navigator.language)return!1}else if(!Wr(n))return!1;return t.preventDefault(),e.dispatchCommand(Lt,!0)}),si),e.registerCommand(Xt,(t=>{if(pd(t.target))return!1;const n=io();return!(!$r(n)&&!Wr(n))&&(t.preventDefault(),e.dispatchCommand(Lt,!1))}),si),e.registerCommand(Vt,(t=>{const n=io();if(!$r(n))return!1;if(hd(n),null!==t){if((Xc||Qc||ed)&&Jc)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Nt,!1)}return e.dispatchCommand(Mt,void 0)}),si),e.registerCommand(Qt,(()=>!!$r(io())&&(e.blur(),!0)),si),e.registerCommand(rn,(t=>{const[,n]=dd(t);if(n.length>0){const r=Gc(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=Bi(o);if(null!==i){const e=to();if(Nr(i))e.anchor.set(i.getKey(),t,"text"),e.focus.set(i.getKey(),t,"text");else{const t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}Ki(Be(e))}e.dispatchCommand(td,n)}return t.preventDefault(),!0}return!!$r(io())}),si),e.registerCommand(an,(e=>{const[t]=dd(e),n=io();return!(t&&!$r(n))}),si),e.registerCommand(sn,(e=>{const[t]=dd(e),n=io();if(t&&!$r(n))return!1;const r=Gc(e.clientX,e.clientY);if(null!==r){qo(Bi(r.node))&&e.preventDefault()}return!0}),si),e.registerCommand(dn,(()=>(function(e){const t=Wi();if($r(e)){const t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Be(e),e}{const e=t.select(0,t.getChildrenSize());Ki(Be(e))}}(),!0)),si),e.registerCommand(un,(t=>(Hc(e,ml(t,ClipboardEvent)?t:null),!0)),si),e.registerCommand(cn,(t=>(async function(e,t){await Hc(t,ml(e,ClipboardEvent)?e:null),t.update((()=>{const e=io();$r(e)?e.removeText():Wr(e)&&e.getNodes().forEach((e=>e.remove()))}))}(t,e),!0)),si),e.registerCommand(Pt,(t=>{const[,n,r]=dd(t);if(n.length>0&&!r)return e.dispatchCommand(td,n),!0;if(Aa(t.target)&&xi(t.target))return!1;return null!==io()&&(function(e,t){e.preventDefault(),t.update((()=>{const n=io(),r=ml(e,InputEvent)||ml(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&jc(r,n,t)}),{tag:"paste"})}(t,e),!0)}),si),e.registerCommand(qt,(e=>{const t=io();return $r(t)&&hd(t),!1}),si),e.registerCommand(Zt,(e=>{const t=io();return $r(t)&&hd(t),!1}),si));return t}function gd(e,t,n){D.useEffect((()=>{e.hasNodes([pu])||function(e){throw new Error(e)}("LexicalAutoLinkPlugin: AutoLinkNode not registered on editor")})),D.useEffect((()=>Pu(e,{changeHandlers:n?[n]:[],matchers:t})),[e,t,n])}function vd({matchers:e,onChange:t}){const[n]=mc();return gd(n,e,t),null}const yd="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function bd(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function xd(){return function(e){const[t]=mc(),n=D.useMemo((()=>e(t)),[t,e]),[r,o]=D.useState((()=>n.initialValueFn())),i=D.useRef(r);return yd((()=>{const{initialValueFn:e,subscribe:t}=n,r=e();return i.current!==r&&(i.current=r,o(r)),t((e=>{i.current=e,o(e)}))}),[n,e]),r}(bd)}const _d={black:"#000",white:"#fff"},wd="#e57373",kd="#ef5350",Sd="#f44336",Cd="#d32f2f",Ed="#c62828",Td="#f3e5f5",Ad="#ce93d8",Rd="#ba68c8",Ld="#ab47bc",Nd="#9c27b0",Md="#7b1fa2",Od="#e3f2fd",Pd="#90caf9",zd="#42a5f5",Id="#1976d2",Dd="#1565c0",jd="#4fc3f7",Fd="#29b6f6",Bd="#03a9f4",$d="#0288d1",Hd="#01579b",Wd="#81c784",Ud="#66bb6a",Kd="#4caf50",Gd="#388e3c",Yd="#2e7d32",Vd="#1b5e20",qd="#ffb74d",Jd="#ffa726",Qd="#ff9800",Xd="#f57c00",Zd="#e65100",ef={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"};function tf(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var nf=Object.freeze({__proto__:null,default:tf}),rf="$$material";function of(){return of=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},of.apply(null,arguments)}function af(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var sf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?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=void 0!==e.speedy&&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(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n,this.isSpeedy){var r=function(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]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),lf="-ms-",uf="-moz-",cf="-webkit-",df="comm",ff="rule",pf="decl",hf="@keyframes",mf=Math.abs,gf=String.fromCharCode,vf=Object.assign;function yf(e){return e.trim()}function bf(e,t,n){return e.replace(t,n)}function xf(e,t){return e.indexOf(t)}function _f(e,t){return 0|e.charCodeAt(t)}function wf(e,t,n){return e.slice(t,n)}function kf(e){return e.length}function Sf(e){return e.length}function Cf(e,t){return t.push(e),e}var Ef=1,Tf=1,Af=0,Rf=0,Lf=0,Nf="";function Mf(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ef,column:Tf,length:a,return:""}}function Of(e,t){return vf(Mf("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pf(){return Lf=Rf>0?_f(Nf,--Rf):0,Tf--,10===Lf&&(Tf=1,Ef--),Lf}function zf(){return Lf=Rf<Af?_f(Nf,Rf++):0,Tf++,10===Lf&&(Tf=1,Ef++),Lf}function If(){return _f(Nf,Rf)}function Df(){return Rf}function jf(e,t){return wf(Nf,e,t)}function Ff(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 Bf(e){return Ef=Tf=1,Af=kf(Nf=e),Rf=0,[]}function $f(e){return Nf="",e}function Hf(e){return yf(jf(Rf-1,Kf(91===e?e+2:40===e?e+1:e)))}function Wf(e){for(;(Lf=If())&&Lf<33;)zf();return Ff(e)>2||Ff(Lf)>3?"":" "}function Uf(e,t){for(;--t&&zf()&&!(Lf<48||Lf>102||Lf>57&&Lf<65||Lf>70&&Lf<97););return jf(e,Df()+(t<6&&32==If()&&32==zf()))}function Kf(e){for(;zf();)switch(Lf){case e:return Rf;case 34:case 39:34!==e&&39!==e&&Kf(Lf);break;case 40:41===e&&Kf(e);break;case 92:zf()}return Rf}function Gf(e,t){for(;zf()&&e+Lf!==57&&(e+Lf!==84||47!==If()););return"/*"+jf(t,Rf-1)+"*"+gf(47===e?e:zf())}function Yf(e){for(;!Ff(If());)zf();return jf(e,Rf)}function Vf(e){return $f(qf("",null,null,null,[""],e=Bf(e),0,[0],e))}function qf(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,_=i,w=r,k=b;g;)switch(h=y,y=zf()){case 40:if(108!=h&&58==_f(k,d-1)){-1!=xf(k+=bf(Hf(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Hf(y);break;case 9:case 10:case 13:case 32:k+=Wf(h);break;case 92:k+=Uf(Df()-1,7);continue;case 47:switch(If()){case 42:case 47:Cf(Qf(Gf(zf(),Df()),t,n),l);break;default:k+="/"}break;case 123*m:s[u++]=kf(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(k=bf(k,/\f/g,"")),p>0&&kf(k)-d&&Cf(p>32?Xf(k+";",r,n,d-1):Xf(bf(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Cf(w=Jf(k,t,n,u,c,o,s,b,x=[],_=[],d),i),123===y)if(0===c)qf(k,t,w,w,x,i,d,s,_);else switch(99===f&&110===_f(k,3)?100:f){case 100:case 108:case 109:case 115:qf(e,w,w,r&&Cf(Jf(e,w,w,0,0,o,s,b,o,x=[],d),_),o,_,d,s,r?x:_);break;default:qf(k,w,w,w,[""],_,0,s,_)}}u=c=p=0,m=v=1,b=k="",d=a;break;case 58:d=1+kf(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Pf())continue;switch(k+=gf(y),y*m){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(kf(k)-1)*v,v=1;break;case 64:45===If()&&(k+=Hf(zf())),f=If(),c=d=kf(b=k+=Yf(Df())),y++;break;case 45:45===h&&2==kf(k)&&(m=0)}}return i}function Jf(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=Sf(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=wf(e,d+1,d=mf(m=a[h])),b=e;v<p;++v)(b=yf(m>0?f[v]+" "+y:bf(y,/&\f/g,f[v])))&&(l[g++]=b);return Mf(e,t,n,0===o?ff:s,l,u,c)}function Qf(e,t,n){return Mf(e,t,n,df,gf(Lf),wf(e,2,-2),0)}function Xf(e,t,n,r){return Mf(e,t,n,pf,wf(e,0,r),wf(e,r+1,-1),r)}function Zf(e,t){for(var n="",r=Sf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ep(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case pf:return e.return=e.return||e.value;case df:return"";case hf:return e.return=e.value+"{"+Zf(e.children,r)+"}";case ff:e.value=e.props.join(",")}return kf(n=Zf(e.children,r))?e.return=e.value+"{"+n+"}":""}function tp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var np=function(e,t,n){for(var r=0,o=0;r=o,o=If(),38===r&&12===o&&(t[n]=1),!Ff(o);)zf();return jf(e,Rf)},rp=function(e,t){return $f(function(e,t){var n=-1,r=44;do{switch(Ff(r)){case 0:38===r&&12===If()&&(t[n]=1),e[n]+=np(Rf-1,t,n);break;case 2:e[n]+=Hf(r);break;case 4:if(44===r){e[++n]=58===If()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=gf(r)}}while(r=zf());return e}(Bf(e),t))},op=new WeakMap,ip=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||op.get(n))&&!r){op.set(e,!0);for(var o=[],i=rp(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},ap=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},sp=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},lp=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},up=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},cp=function(e,t,n){lp(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),up(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!lp(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),up(e)))};function dp(e,t){switch(function(e,t){return 45^_f(e,0)?(((t<<2^_f(e,0))<<2^_f(e,1))<<2^_f(e,2))<<2^_f(e,3):0}(e,t)){case 5103:return cf+"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 cf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return cf+e+uf+e+lf+e+e;case 6828:case 4268:return cf+e+lf+e+e;case 6165:return cf+e+lf+"flex-"+e+e;case 5187:return cf+e+bf(e,/(\w+).+(:[^]+)/,cf+"box-$1$2"+lf+"flex-$1$2")+e;case 5443:return cf+e+lf+"flex-item-"+bf(e,/flex-|-self/,"")+e;case 4675:return cf+e+lf+"flex-line-pack"+bf(e,/align-content|flex-|-self/,"")+e;case 5548:return cf+e+lf+bf(e,"shrink","negative")+e;case 5292:return cf+e+lf+bf(e,"basis","preferred-size")+e;case 6060:return cf+"box-"+bf(e,"-grow","")+cf+e+lf+bf(e,"grow","positive")+e;case 4554:return cf+bf(e,/([^-])(transform)/g,"$1"+cf+"$2")+e;case 6187:return bf(bf(bf(e,/(zoom-|grab)/,cf+"$1"),/(image-set)/,cf+"$1"),e,"")+e;case 5495:case 3959:return bf(e,/(image-set\([^]*)/,cf+"$1$`$1");case 4968:return bf(bf(e,/(.+:)(flex-)?(.*)/,cf+"box-pack:$3"+lf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+cf+e+e;case 4095:case 3583:case 4068:case 2532:return bf(e,/(.+)-inline(.+)/,cf+"$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(kf(e)-1-t>6)switch(_f(e,t+1)){case 109:if(45!==_f(e,t+4))break;case 102:return bf(e,/(.+:)(.+)-([^]+)/,"$1"+cf+"$2-$3$1"+uf+(108==_f(e,t+3)?"$3":"$2-$3"))+e;case 115:return~xf(e,"stretch")?dp(bf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_f(e,t+1))break;case 6444:switch(_f(e,kf(e)-3-(~xf(e,"!important")&&10))){case 107:return bf(e,":",":"+cf)+e;case 101:return bf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+cf+(45===_f(e,14)?"inline-":"")+"box$3$1"+cf+"$2$3$1"+lf+"$2box$3")+e}break;case 5936:switch(_f(e,t+11)){case 114:return cf+e+lf+bf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return cf+e+lf+bf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return cf+e+lf+bf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return cf+e+lf+e+e}return e}var fp,pp=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case pf:e.return=dp(e.value,e.length);break;case hf:return Zf([Of(e,{value:bf(e.value,"@","@"+cf)})],r);case ff:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zf([Of(e,{props:[bf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Zf([Of(e,{props:[bf(t,/:(plac\w+)/,":"+cf+"input-$1")]}),Of(e,{props:[bf(t,/:(plac\w+)/,":-moz-$1")]}),Of(e,{props:[bf(t,/:(plac\w+)/,lf+"input-$1")]})],r)}return""}))}}],hp=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;fp=function(e){var t=e.match(hp);if(t)return t[t.length-1]};var mp,gp,vp,yp,bp=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||pp;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},s=[];o=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++)a[t[n]]=!0;s.push(e)}));var l=[ip,ap];l.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:r,a=i.length-1;a>=0;a--){var s=i[a];if(s.line<t.line)break;if(s.column<t.column){if(sp(s))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return f.compat}}),cp);var u,c=[ep,function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==df&&u.insert(e.value+"{}"))}],d=function(e){var t=Sf(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(l.concat(r,c));i=function(e,t,n,r){if(u=n,fp){var o=fp(t.styles);o&&(u={insert:function(e){n.insert(e+o)}})}!function(e){Zf(Vf(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new sf({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f},xp={exports:{}},_p={};function wp(){return gp||(gp=1,xp.exports=function(){if(mp)return _p;mp=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}function x(e){return b(e)===u}return _p.AsyncMode=l,_p.ConcurrentMode=u,_p.ContextConsumer=s,_p.ContextProvider=a,_p.Element=t,_p.ForwardRef=c,_p.Fragment=r,_p.Lazy=h,_p.Memo=p,_p.Portal=n,_p.Profiler=i,_p.StrictMode=o,_p.Suspense=d,_p.isAsyncMode=function(e){return x(e)||b(e)===l},_p.isConcurrentMode=x,_p.isContextConsumer=function(e){return b(e)===s},_p.isContextProvider=function(e){return b(e)===a},_p.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_p.isForwardRef=function(e){return b(e)===c},_p.isFragment=function(e){return b(e)===r},_p.isLazy=function(e){return b(e)===h},_p.isMemo=function(e){return b(e)===p},_p.isPortal=function(e){return b(e)===n},_p.isProfiler=function(e){return b(e)===i},_p.isStrictMode=function(e){return b(e)===o},_p.isSuspense=function(e){return b(e)===d},_p.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},_p.typeOf=b,_p}()),xp.exports}var kp=function(){if(yp)return vp;yp=1;var e=wp(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return vp=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<p.length;++g){var v=p[g];if(!(n[v]||o&&o[v]||m&&m[v]||h&&h[v])){var y=u(r,v);try{a(t,v,y)}catch(e){}}}}return t},vp}(),Sp=m(kp);function Cp(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Ep=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Tp=function(e,t,n){Ep(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Ap={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},Rp="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Lp="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Np=/[A-Z]|^ms/g,Mp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Op=function(e){return 45===e.charCodeAt(1)},Pp=function(e){return null!=e&&"boolean"!=typeof e},zp=tp((function(e){return Op(e)?e:e.replace(Np,"-$&").toLowerCase()})),Ip=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Mp,(function(e,t,n){return Kp={name:t,styles:n,next:Kp},t}))}return 1===Ap[e]||Op(e)||"number"!=typeof t||0===t?t:t+"px"},Dp=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,jp=["normal","none","initial","inherit","unset"],Fp=Ip,Bp=/^-ms-/,$p=/-(.)/g,Hp={};Ip=function(e,t){if("content"===e&&("string"!=typeof t||-1===jp.indexOf(t)&&!Dp.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Fp(e,t);return""===n||Op(e)||-1===e.indexOf("-")||void 0!==Hp[e]||(Hp[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Bp,"ms-").replace($p,(function(e,t){return t.toUpperCase()}))+"?")),n};var Wp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Up(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(r))throw new Error(Wp);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Kp={name:o.name,styles:o.styles,next:Kp},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Kp={name:a.name,styles:a.styles,next:Kp},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Up(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":Pp(s)&&(r+=zp(i)+":"+Ip(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(Wp);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Up(e,t,a);switch(i){case"animation":case"animationName":r+=zp(i)+":"+l+";";break;default:"undefined"===i&&console.error(Lp),r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Pp(a[u])&&(r+=zp(i)+":"+Ip(i,a[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=Kp,l=n(e);return Kp=s,Up(e,t,l)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var u=[],c=n.replace(Mp,(function(e,t,n){var r="animation"+u.length;return u.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}var d=n;if(null==t)return d;var f=t[d];return void 0!==f?f:d}var Kp,Gp=/label:\s*([^\s;{]+)\s*(;|$)/g;function Yp(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Kp=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=Up(n,t,i);else{var a=i;void 0===a[0]&&console.error(Rp),o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Up(n,t,e[s]),r){var l=i;void 0===l[s]&&console.error(Rp),o+=l[s]}Gp.lastIndex=0;for(var u,c="";null!==(u=Gp.exec(o));)c+="-"+u[1];var d=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:d,styles:o,next:Kp,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var Vp=!!F.useInsertionEffect&&F.useInsertionEffect,qp=Vp||function(e){return e()},Jp=Vp||D.useLayoutEffect,Qp=D.createContext("undefined"!=typeof HTMLElement?bp({key:"css"}):null);Qp.displayName="EmotionCacheContext";var Xp=Qp.Provider,Zp=function(e){return D.forwardRef((function(t,n){var r=D.useContext(Qp);return e(t,r,n)}))},eh=D.createContext({});eh.displayName="EmotionThemeContext";var th={}.hasOwnProperty,nh=function(e){var t=e.split(".");return t[t.length-1]},rh=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?nh(t[1]):void 0},oh=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),ih=function(e){return e.replace(/\$/g,"-")},ah="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",sh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",lh=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)th.call(t,r)&&(n[r]=t[r]);if(n[ah]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=rh(t[n]);if(r){if(oh.has(r))break;if(/^[A-Z]/.test(r))return ih(r)}}}((new Error).stack);o&&(n[sh]=o)}return n},uh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ep(t,n,r),qp((function(){return Tp(t,n,r)})),null},ch=Zp((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[ah],i=[r],a="";"string"==typeof e.className?a=Cp(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Yp(i,void 0,D.useContext(eh));if(-1===s.name.indexOf("-")){var l=e[sh];l&&(s=Yp([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var u={};for(var c in e)th.call(e,c)&&"css"!==c&&c!==ah&&c!==sh&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),D.createElement(D.Fragment,null,D.createElement(uh,{cache:t,serialized:s,isStringTag:"string"==typeof o}),D.createElement(o,u))}));ch.displayName="EmotionCssPropInternal";var dh,fh,ph=ch,hh=function(e,t){var n=arguments;if(null==t||!th.call(t,"css"))return D.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=ph,o[1]=lh(e,t);for(var i=2;i<r;i++)o[i]=n[i];return D.createElement.apply(null,o)};dh=hh||(hh={}),fh||(fh=dh.JSX||(dh.JSX={}));var mh=!1,gh=Zp((function(e,t){!mh&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),mh=!0);var n=Yp([e.styles],void 0,D.useContext(eh)),r=D.useRef();return Jp((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),Jp((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Tp(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function vh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yp(t)}function yh(){var e=vh.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_"}}}gh.displayName="EmotionGlobal";var bh=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var xh=function(e){var t=e.cache,n=e.serializedArr;return qp((function(){for(var e=0;e<n.length;e++)Tp(t,n[e],!1)})),null},_h=Zp((function(e,t){var n=!1,r=[],o=function(){if(n)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=Yp(o,t.registered);return r.push(a),Ep(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=Cp(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,bh(r))},theme:D.useContext(eh)},a=e.children(i);return n=!0,D.createElement(D.Fragment,null,D.createElement(xh,{cache:t,serializedArr:r}),a)}));_h.displayName="EmotionClassNames";var wh="undefined"!=typeof document,kh="undefined"!=typeof jest||"undefined"!=typeof vi;if(wh&&!kh){var Sh="undefined"!=typeof globalThis?globalThis:wh?window:global,Ch="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";Sh[Ch]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Sh[Ch]=!0}var Eh=/^((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|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)-.*))$/,Th=tp((function(e){return Eh.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ah=function(e){return"theme"!==e},Rh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Th:Ah},Lh=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Nh="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Mh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ep(t,n,r),qp((function(){return Tp(t,n,r)})),null},Oh=function e(t,n){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Lh(t,n,i),l=s||Rh(a),u=!l("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];void 0===f[0]&&console.error(Nh),d.push(f[0]);for(var p=c.length,h=1;h<p;h++)void 0===f[h]&&console.error(Nh),d.push(c[h],f[h])}var m=Zp((function(e,t,n){var r=u&&e.as||a,i="",c=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=D.useContext(eh)}"string"==typeof e.className?i=Cp(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=Yp(d.concat(c),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=u&&void 0===s?Rh(r):l,g={};for(var v in e)u&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),D.createElement(D.Fragment,null,D.createElement(Mh,{cache:t,serialized:h,isStringTag:"string"==typeof r}),D.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,of({},n,r,{shouldForwardProp:Lh(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["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"].forEach((function(e){Oh[e]=Oh(e)}));var Ph,zh,Ih,Dh,jh,Fh={exports:{}};function Bh(){if(zh)return Ph;zh=1;return Ph="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function $h(){if(Dh)return Ih;Dh=1;var e=Bh();function t(){}function n(){}return n.resetWarningCache=t,Ih=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Hh(){return jh||(jh=1,Fh.exports=$h()()),Fh.exports}var Wh=m(Hh());const Uh=new Map;function Kh(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return xc.jsx(gh,{styles:r})}
17
17
  /**
18
18
  * @mui/styled-engine v5.18.0
19
19
  *
20
20
  * @license MIT
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */function ui(e,t){return Yo(e,t)}const ci=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},di=[];function fi(e){return di[0]=e,oo(di)}var pi=Object.freeze({__proto__:null,GlobalStyles:si,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=$.useMemo((()=>{const e=`${t}-${n}`;if("object"==typeof document&&li.has(e))return li.get(e);const r=function(e,t){const n=Nr({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return li.set(e,r),r}),[t,n]);return t||n?ai.jsx(uo,{value:o,children:r}):r},ThemeContext:fo,css:Ao,default:ui,internal_processStyles:ci,internal_serializeStyles:fi,keyframes:No});function hi(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function mi(e){if($.isValidElement(e)||!hi(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=mi(e[n])})),t}function gi(e,t,n={clone:!0}){const r=n.clone?gn({},e):e;return hi(e)&&hi(t)&&Object.keys(t).forEach((o=>{$.isValidElement(t[o])?r[o]=t[o]:hi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&hi(e[o])?r[o]=gi(e[o],t[o],n):n.clone?r[o]=hi(t[o])?mi(t[o]):t[o]:r[o]=t[o]})),r}var bi=Object.freeze({__proto__:null,default:gi,isPlainObject:hi});const yi=["values","unit","step"];function xi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=vn(e,yi),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>gn({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return gn({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const _i={borderRadius:4};function Si(e,t){return t?gi(e,t,{clone:!1}):e}const Ci={xs:0,sm:600,md:900,lg:1200,xl:1536},Ei={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ci[e]}px)`};function wi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Ei;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Ei;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Ci).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function ki(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}function Ri(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Ti({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function Ai(e){if("string"!=typeof e)throw new Error(pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ni=Object.freeze({__proto__:null,default:Ai});function Li(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Oi(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Li(e,n)||r,t&&(o=t(o,r,e)),o}function Mi(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Li(e.theme,r)||{};return wi(e,i,(e=>{let r=Oi(a,o,e);return e===r&&"string"==typeof e&&(r=Oi(a,o,`${t}${"default"===e?"":Ai(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Pi={m:"margin",p:"padding"},Ii={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Di={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$i=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Di[e])return[e];e=Di[e]}const[t,n]=e.split(""),r=Pi[t],o=Ii[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),zi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Bi(e,t,n,r){var o;const i=null!=(o=Li(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Hi(e){return Bi(e,"spacing",8)}function ji(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Wi(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=ji(t,n),e)),{})}($i(n),r);return wi(e,e[n],o)}function Gi(e,t){const n=Hi(e.theme);return Object.keys(e).map((r=>Wi(e,t,r,n))).reduce(Si,{})}function Yi(e){return Gi(e,zi)}function Ui(e){return Gi(e,Fi)}function Ki(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Si(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Vi(e){return"number"!=typeof e?e:`${e}px solid`}function qi(e,t){return Mi({prop:e,themeKey:"borders",transform:t})}Yi.propTypes={},Yi.filterProps=zi,Ui.propTypes={},Ui.filterProps=Fi;const Qi=qi("border",Vi),Xi=qi("borderTop",Vi),Ji=qi("borderRight",Vi),Zi=qi("borderBottom",Vi),ea=qi("borderLeft",Vi),ta=qi("borderColor"),na=qi("borderTopColor"),ra=qi("borderRightColor"),oa=qi("borderBottomColor"),ia=qi("borderLeftColor"),aa=qi("outline",Vi),la=qi("outlineColor"),sa=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Bi(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:ji(t,e)});return wi(e,e.borderRadius,n)}return null};sa.propTypes={},sa.filterProps=["borderRadius"],Ki(Qi,Xi,Ji,Zi,ea,ta,na,ra,oa,ia,sa,aa,la);const ua=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Bi(e.theme,"spacing",8),n=e=>({gap:ji(t,e)});return wi(e,e.gap,n)}return null};ua.propTypes={},ua.filterProps=["gap"];const ca=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Bi(e.theme,"spacing",8),n=e=>({columnGap:ji(t,e)});return wi(e,e.columnGap,n)}return null};ca.propTypes={},ca.filterProps=["columnGap"];const da=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Bi(e.theme,"spacing",8),n=e=>({rowGap:ji(t,e)});return wi(e,e.rowGap,n)}return null};da.propTypes={},da.filterProps=["rowGap"];function fa(e,t){return"grey"===t?t:e}Ki(ua,ca,da,Mi({prop:"gridColumn"}),Mi({prop:"gridRow"}),Mi({prop:"gridAutoFlow"}),Mi({prop:"gridAutoColumns"}),Mi({prop:"gridAutoRows"}),Mi({prop:"gridTemplateColumns"}),Mi({prop:"gridTemplateRows"}),Mi({prop:"gridTemplateAreas"}),Mi({prop:"gridArea"}));function pa(e){return e<=1&&0!==e?100*e+"%":e}Ki(Mi({prop:"color",themeKey:"palette",transform:fa}),Mi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:fa}),Mi({prop:"backgroundColor",themeKey:"palette",transform:fa}));const ha=Mi({prop:"width",transform:pa}),ma=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Ci[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:pa(t)}};return wi(e,e.maxWidth,t)}return null};ma.filterProps=["maxWidth"];const ga=Mi({prop:"minWidth",transform:pa}),va=Mi({prop:"height",transform:pa}),ba=Mi({prop:"maxHeight",transform:pa}),ya=Mi({prop:"minHeight",transform:pa});Mi({prop:"size",cssProperty:"width",transform:pa}),Mi({prop:"size",cssProperty:"height",transform:pa});Ki(ha,ma,ga,va,ba,ya,Mi({prop:"boxSizing"}));const xa={border:{themeKey:"borders",transform:Vi},borderTop:{themeKey:"borders",transform:Vi},borderRight:{themeKey:"borders",transform:Vi},borderBottom:{themeKey:"borders",transform:Vi},borderLeft:{themeKey:"borders",transform:Vi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sa},color:{themeKey:"palette",transform:fa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:fa},backgroundColor:{themeKey:"palette",transform:fa},p:{style:Ui},pt:{style:Ui},pr:{style:Ui},pb:{style:Ui},pl:{style:Ui},px:{style:Ui},py:{style:Ui},padding:{style:Ui},paddingTop:{style:Ui},paddingRight:{style:Ui},paddingBottom:{style:Ui},paddingLeft:{style:Ui},paddingX:{style:Ui},paddingY:{style:Ui},paddingInline:{style:Ui},paddingInlineStart:{style:Ui},paddingInlineEnd:{style:Ui},paddingBlock:{style:Ui},paddingBlockStart:{style:Ui},paddingBlockEnd:{style:Ui},m:{style:Yi},mt:{style:Yi},mr:{style:Yi},mb:{style:Yi},ml:{style:Yi},mx:{style:Yi},my:{style:Yi},margin:{style:Yi},marginTop:{style:Yi},marginRight:{style:Yi},marginBottom:{style:Yi},marginLeft:{style:Yi},marginX:{style:Yi},marginY:{style:Yi},marginInline:{style:Yi},marginInlineStart:{style:Yi},marginInlineEnd:{style:Yi},marginBlock:{style:Yi},marginBlockStart:{style:Yi},marginBlockEnd:{style:Yi},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:ua},rowGap:{style:da},columnGap:{style:ca},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pa},maxWidth:{style:ma},minWidth:{transform:pa},height:{transform:pa},maxHeight:{transform:pa},minHeight:{transform:pa},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function _a(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Li(n,l)||{};if(u)return u(o);return wi(o,t,(t=>{let n=Oi(c,s,t);return t===n&&"string"==typeof t&&(n=Oi(c,s,`${e}${"default"===t?"":Ai(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const l=null!=(r=i.unstable_sxConfig)?r:xa;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=ki(i.breakpoints),s=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],s=i,"function"==typeof a?a(s):a);var a,s;if(null!=o)if("object"==typeof o)if(l[n])u=Si(u,e(n,o,i,l));else{const e=wi({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?u=Si(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=Si(u,e(n,o,i,l))})),!a&&i.modularCssLayers?{"@layer sx":Ri(s,u)}:Ri(s,u)}return Array.isArray(o)?o.map(s):s(o)}}const Sa=_a();function Ca(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}Sa.filterProps=["sx"];const Ea=["breakpoints","palette","spacing","shape"];function wa(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=vn(e,Ea),l=xi(n),s=function(e=8){if(e.mui)return e;const t=Hi({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=gi({breakpoints:l,direction:"ltr",components:{},palette:gn({mode:"light"},r),spacing:s,shape:gn({},_i,i)},a);return u.applyStyles=Ca,u=t.reduce(((e,t)=>gi(e,t)),u),u.unstable_sxConfig=gn({},xa,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Sa({sx:e,theme:this})},u}var ka=Object.freeze({__proto__:null,default:wa,private_createBreakpoints:xi,unstable_applyStyles:Ca});function Ra(e=null){const t=$.useContext(fo);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Ta=wa();function Aa(e=Ta){return Ra(e)}function Na(e){const t=fi(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function La({styles:e,themeId:t,defaultTheme:n={}}){const r=Aa(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>Na("function"==typeof e?e(o):e))):Na(i)),ai.jsx(si,{styles:i})}const Oa=["sx"];function Ma(e){const{sx:t}=e,n=vn(e,Oa),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:xa;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return hi(n)?gn({},r,n):r}:gn({},r,t),gn({},o,{sx:i})}var Pa=Object.freeze({__proto__:null,default:Sa,extendSxProp:Ma,unstable_createStyleFunctionSx:_a,unstable_defaultSxConfig:xa});const Ia=e=>e,Da=(()=>{let e=Ia;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ia}}})();function $a(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=$a(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function za(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$a(e))&&(r&&(r+=" "),r+=t);return r}const Fa=["className","component"];const Ba={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 Ha(e,t,n="Mui"){const r=Ba[t];return r?`${n}-${r}`:`${Da.generate(e)}-${t}`}function ja(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Ha(e,t,n)})),r}var Wa,Ga,Ya={exports:{}},Ua={};function Ka(){if(Wa)return Ua;Wa=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case s:case u:case f:return p;default:switch(p=p&&p.$$typeof){case a:case l:case d:case c:case i:return p;default:return h}}case t:return h}}}return Ua.ContextConsumer=i,Ua.ContextProvider=a,Ua.Element=e,Ua.ForwardRef=l,Ua.Fragment=n,Ua.Lazy=d,Ua.Memo=c,Ua.Portal=t,Ua.Profiler=o,Ua.StrictMode=r,Ua.Suspense=s,Ua.SuspenseList=u,Ua.isContextConsumer=function(e){return h(e)===i},Ua.isContextProvider=function(e){return h(e)===a},Ua.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ua.isForwardRef=function(e){return h(e)===l},Ua.isFragment=function(e){return h(e)===n},Ua.isLazy=function(e){return h(e)===d},Ua.isMemo=function(e){return h(e)===c},Ua.isPortal=function(e){return h(e)===t},Ua.isProfiler=function(e){return h(e)===o},Ua.isStrictMode=function(e){return h(e)===r},Ua.isSuspense=function(e){return h(e)===s},Ua.isSuspenseList=function(e){return h(e)===u},Ua.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===s||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===l||e.$$typeof===p||void 0!==e.getModuleId)},Ua.typeOf=h,Ua}function Va(){return Ga||(Ga=1,Ya.exports=Ka()),Ya.exports}var qa=Va();const Qa=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Xa(e){const t=`${e}`.match(Qa);return t&&t[1]||""}function Ja(e,t=""){return e.displayName||e.name||Xa(e)||t}function Za(e,t,n){const r=Ja(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var el=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ja(e,"Component");if("object"==typeof e)switch(e.$$typeof){case qa.ForwardRef:return Za(e,e.render,"ForwardRef");case qa.Memo:return Za(e,e.type,"memo");default:return}}},getFunctionName:Xa});const tl=["ownerState"],nl=["variants"],rl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ol(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function il(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const al=wa(),ll=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function sl({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function ul(e){return e?(t,n)=>n[e]:null}function cl(e,t,n){let{ownerState:r}=t,o=vn(t,tl);const i="function"==typeof e?e(gn({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap((e=>cl(e,gn({ownerState:r},o),n)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=vn(i,nl);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props(gn({ownerState:r},o,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style(gn({ownerState:r},o,r)):e.style;t.push(n?il(fi(i),n):i)}})),t}return n?il(fi(i),n):i}const dl=function(e={}){const{themeId:t,defaultTheme:n=al,rootShouldForwardProp:r=ol,slotShouldForwardProp:o=ol}=e,i=e=>Sa(gn({},e,{theme:sl(gn({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ci(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ul(ll(s))}=a,f=vn(a,rl),p=l&&l.startsWith("Mui")||s?"components":"custom",h=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let g=ol;"Root"===s||"root"===s?g=r:s?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=ui(e,gn({shouldForwardProp:g,label:undefined},f)),b=e=>"function"==typeof e&&e.__emotion_real!==e||hi(e)?r=>{const o=sl({theme:r.theme,defaultTheme:n,themeId:t});return cl(e,gn({},r,{theme:o}),o.modularCssLayers?p:void 0)}:e,y=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=sl(gn({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=cl(n,gn({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),d(e,i)})),l&&!h&&s.push((e=>{var r;const o=sl(gn({},e,{defaultTheme:n,themeId:t}));return cl({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},gn({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=v(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(y.withConfig=v.withConfig),y}}();function fl(e,t){const n=gn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=gn({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=gn({},i),Object.keys(o).forEach((e=>{n[r][e]=fl(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function pl({props:e,name:t,defaultTheme:n,themeId:r}){let o=Aa(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?fl(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const hl="undefined"!=typeof window?$.useLayoutEffect:$.useEffect;function ml(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var gl=Object.freeze({__proto__:null,default:ml});function vl(e){if(e.type)return e;if("#"===e.charAt(0))return vl(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(pn(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(pn(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function bl(e,t){return e=vl(e),t=function(e,t=0,n=1){return ml(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function yl(e){return e&&e.ownerDocument||document}function xl(e){return yl(e).defaultView||window}function _l(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Sl=0;const Cl=F["useId".toString()];function El(e){if(void 0!==Cl){const t=Cl();return null!=e?e:t}return function(e){const[t,n]=$.useState(e),r=e||t;return $.useEffect((()=>{null==t&&(Sl+=1,n(`mui-${Sl}`))}),[t]),r}(e)}function wl(e){const t=$.useRef(e);return hl((()=>{t.current=e})),$.useRef(((...e)=>(0,t.current)(...e))).current}function kl(...e){return $.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{_l(e,t)}))}),e)}const Rl={};const Tl=[];class Al{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Al}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Nl(){const e=function(e,t){const n=$.useRef(Rl);return n.current===Rl&&(n.current=e(t)),n}(Al.create).current;return function(e){$.useEffect(e,Tl)}(e.disposeEffect),e}let Ll=!0,Ol=!1;const Ml=new Al,Pl={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Il(e){e.metaKey||e.altKey||e.ctrlKey||(Ll=!0)}function Dl(){Ll=!1}function $l(){"hidden"===this.visibilityState&&Ol&&(Ll=!0)}function zl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ll||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Pl[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Fl(){const e=$.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Il,!0),t.addEventListener("mousedown",Dl,!0),t.addEventListener("pointerdown",Dl,!0),t.addEventListener("touchstart",Dl,!0),t.addEventListener("visibilitychange",$l,!0))}),[]),t=$.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!zl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Ol=!0,Ml.start(100,(()=>{Ol=!1})),t.current=!1,!0)},ref:e}}function Bl(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}function Hl(e){return"string"==typeof e}function jl(e,t,n){return void 0===e||Hl(e)?t:gn({},t,{ownerState:gn({},t.ownerState,n)})}function Wl(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Gl(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=za(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=gn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=gn({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(gn({},o,r)),l=Wl(r),s=Wl(o),u=t(a),c=za(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=gn({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),f=gn({},u,n,s,l);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const Yl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ul(e){var t;return parseInt($.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Kl=$.createContext(null);function Vl(){return $.useContext(Kl)}var ql="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ql(e){const{children:t,theme:n}=e,r=Vl(),o=$.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return gn({},e,t)}(r,n);return null!=e&&(e[ql]=null!==r),e}),[n,r]);return ai.jsx(Kl.Provider,{value:o,children:t})}const Xl=["value"],Jl=$.createContext();function Zl(e){let{value:t}=e,n=vn(e,Xl);return ai.jsx(Jl.Provider,gn({value:null==t||t},n))}const es=$.createContext(void 0);function ts({value:e,children:t}){return ai.jsx(es.Provider,{value:e,children:t})}function ns({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?fl(o.defaultProps,r):o.styleOverrides||o.variants?r:fl(o,r)}({props:e,name:t,theme:{components:$.useContext(es)}})}const rs={};function os(e,t,n,r=!1){return $.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?gn({},t,{[e]:i}):i;return r?()=>a:a}return gn({},t,e?{[e]:n}:n)}),[e,t,n,r])}function is(e){const{children:t,theme:n,themeId:r}=e,o=Ra(rs),i=Vl()||rs,a=os(r,o,n),l=os(r,i,n,!0),s="rtl"===a.direction,u=function(e){const t=Ra(),n=El()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",hl((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}}),[o,n]),o?ai.jsx(La,{styles:o}):null}(a);return ai.jsx(Ql,{theme:l,children:ai.jsx(fo.Provider,{value:a,children:ai.jsx(Zl,{value:s,children:ai.jsxs(ts,{value:null==a?void 0:a.components,children:[u,t]})})})})}function as(e){return as="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},as(e)}function ls(e){var t=function(e,t){if("object"!=as(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=as(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==as(t)?t:t+""}const ss=["component","direction","spacing","divider","children","className","useFlexGap"],us=wa(),cs=dl("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ds(e){return pl({props:e,name:"MuiStack",defaultTheme:us})}function fs(e,t){const n=$.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push($.cloneElement(t,{key:`separator-${o}`})),e)),[])}const ps=({ownerState:e,theme:t})=>{let n=gn({display:"flex",flexDirection:"column"},wi({theme:t},Ti({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=Hi(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),i=Ti({values:e.direction,base:o}),a=Ti({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));n=gi(n,wi({theme:t},a,((t,n)=>{return e.useFlexGap?{gap:ji(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:ji(r,t)}};var o})))}return n=function(e,...t){const n=ki(e),r=[n,...t].reduce(((e,t)=>gi(e,t)),{});return Ri(Object.keys(n),r)}(t.breakpoints,n),n};function hs(e,t){return gn({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ms,gs={},vs={exports:{}};function bs(){return ms||(ms=1,(e=vs).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),vs.exports;var e}var ys,xs=g(hn),_s=g(gl);function Ss(){if(ys)return gs;ys=1;var e=bs();Object.defineProperty(gs,"__esModule",{value:!0}),gs.alpha=c,gs.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),s=i(t),u=[o(a.values[0],s.values[0]),o(a.values[1],s.values[1]),o(a.values[2],s.values[2])];return l({type:"rgb",values:u})},gs.colorChannel=void 0,gs.darken=d,gs.decomposeColor=i,gs.emphasize=p,gs.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},gs.getLuminance=u,gs.hexToRgb=o,gs.hslToRgb=s,gs.lighten=f,gs.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},gs.private_safeColorChannel=void 0,gs.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},gs.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},gs.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},gs.recomposeColor=l,gs.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var t=e(xs),n=e(_s);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,l=e.substring(n+1,e.length-1);if("color"===r){if(l=l.split(" "),a=l.shift(),4===l.length&&"/"===l[3].charAt(0)&&(l[3]=l[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else l=l.split(",");return l=l.map((e=>parseFloat(e))),{type:r,values:l,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};gs.colorChannel=a;function l(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function s(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),l({type:u,values:c})}function u(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(s(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(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 c(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function f(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)}function p(e,t=.15){return u(e)>.5?d(e,t):f(e,t)}return gs.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},gs}var Cs=Ss();const Es=["mode","contrastThreshold","tonalOffset"],ws={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:Ot.white,default:Ot.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}},ks={text:{primary:Ot.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:Ot.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}};function Rs(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Cs.lighten(e.main,o):"dark"===t&&(e.dark=Cs.darken(e.main,i)))}function Ts(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=vn(e,Es),i=e.primary||function(e="light"){return"dark"===e?{main:Yt,light:Gt,dark:Ut}:{main:Kt,light:Ut,dark:Vt}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ft,light:zt,dark:Ht}:{main:jt,light:Bt,dark:Wt}}(t),l=e.error||function(e="light"){return"dark"===e?{main:It,light:Mt,dark:Dt}:{main:Dt,light:Pt,dark:$t}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Qt,light:qt,dark:Jt}:{main:Jt,light:Xt,dark:Zt}}(t),u=e.success||function(e="light"){return"dark"===e?{main:tn,light:en,dark:rn}:{main:on,light:nn,dark:an}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:sn,light:ln,dark:cn}:{main:"#ed6c02",light:un,dark:dn}}(t);function d(e){return Cs.getContrastRatio(e,ks.text.primary)>=n?ks.text.primary:ws.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=gn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(pn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(pn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Rs(e,"light",o,r),Rs(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:ks,light:ws};return gi(gn({common:gn({},Ot),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:fn,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const As=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ns={textTransform:"uppercase"},Ls='"Roboto", "Helvetica", "Arial", sans-serif';function Os(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ls,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=vn(n,As),p=o/14,h=d||(e=>e/u*p+"rem"),m=(e,t,n,o,i)=>{return gn({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Ls?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={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(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Ns),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ns),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return gi(gn({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),f,{clone:!1})}function Ms(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Ps=["none",Ms(0,2,1,-1,0,1,1,0,0,1,3,0),Ms(0,3,1,-2,0,2,2,0,0,1,5,0),Ms(0,3,3,-2,0,3,4,0,0,1,8,0),Ms(0,2,4,-1,0,4,5,0,0,1,10,0),Ms(0,3,5,-1,0,5,8,0,0,1,14,0),Ms(0,3,5,-1,0,6,10,0,0,1,18,0),Ms(0,4,5,-2,0,7,10,1,0,2,16,1),Ms(0,5,5,-3,0,8,10,1,0,3,14,2),Ms(0,5,6,-3,0,9,12,1,0,3,16,2),Ms(0,6,6,-3,0,10,14,1,0,4,18,3),Ms(0,6,7,-4,0,11,15,1,0,4,20,3),Ms(0,7,8,-4,0,12,17,2,0,5,22,4),Ms(0,7,8,-4,0,13,19,2,0,5,24,4),Ms(0,7,9,-4,0,14,21,2,0,5,26,4),Ms(0,8,9,-5,0,15,22,2,0,6,28,5),Ms(0,8,10,-5,0,16,24,2,0,6,30,5),Ms(0,8,11,-5,0,17,26,2,0,6,32,5),Ms(0,9,11,-5,0,18,28,2,0,7,34,6),Ms(0,9,12,-6,0,19,29,2,0,7,36,6),Ms(0,10,13,-6,0,20,31,3,0,8,38,7),Ms(0,10,13,-6,0,21,33,3,0,8,40,7),Ms(0,10,14,-6,0,22,35,3,0,8,42,7),Ms(0,11,14,-7,0,23,36,3,0,9,44,8),Ms(0,11,15,-7,0,24,38,3,0,9,46,8)],Is=["duration","easing","delay"],Ds={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)"},$s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zs(e){return`${Math.round(e)}ms`}function Fs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Bs(e){const t=gn({},Ds,e.easing),n=gn({},$s,e.duration);return gn({getAutoHeightDuration:Fs,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return vn(r,Is),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:zs(o)} ${i} ${"string"==typeof a?a:zs(a)}`)).join(",")}},e,{easing:t,duration:n})}const Hs={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},js=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ws(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=vn(e,js);if(e.vars&&void 0===e.generateCssVars)throw new Error(pn(18));const l=Ts(r),s=wa(e);let u=gi(s,{mixins:hs(s.breakpoints,n),palette:l,shadows:Ps.slice(),typography:Os(l,i),transitions:Bs(o),zIndex:gn({},Hs)});return u=gi(u,a),u=t.reduce(((e,t)=>gi(e,t)),u),u.unstable_sxConfig=gn({},xa,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Sa({sx:e,theme:this})},u}const Gs=Ws();function Ys(){const e=Aa(Gs);return e[mn]||e}var Us,Ks={},Vs={exports:{}};function qs(){return Us||(Us=1,function(e){function t(){return e.exports=t=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},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Vs)),Vs.exports}var Qs,Xs={exports:{}};function Js(){return Qs||(Qs=1,(e=Xs).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports),Xs.exports;var e}var Zs,eu=g(pi),tu=g(bi),nu=g(Ni),ru=g(el),ou=g(ka),iu=g(Pa);function au(){if(Zs)return Ks;Zs=1;var e=bs();Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=function(e={}){const{themeId:i,defaultTheme:l=p,rootShouldForwardProp:s=d,slotShouldForwardProp:c=d}=e,f=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:l,themeId:i}))}));return f.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:b,skipVariantsResolver:y,skipSx:x,overridesResolver:_=g(h(b))}=a,S=(0,n.default)(a,u),C=p&&p.startsWith("Mui")||b?"components":"custom",E=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,w=x||!1;let k=d;"Root"===b||"root"===b?k=s:b?k=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const R=(0,r.default)(e,(0,t.default)({shouldForwardProp:k,label:undefined},S)),T=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=m({theme:n.theme,defaultTheme:l,themeId:i});return v(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?C:void 0)}:e,A=(n,...r)=>{let o=T(n);const a=r?r.map(T):[];p&&_&&a.push((e=>{const n=m((0,t.default)({},e,{defaultTheme:l,themeId:i}));if(!n.components||!n.components[p]||!n.components[p].styleOverrides)return null;const r=n.components[p].styleOverrides,o={};return Object.entries(r).forEach((([r,i])=>{o[r]=v(i,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),_(e,o)})),p&&!E&&a.push((e=>{var n;const r=m((0,t.default)({},e,{defaultTheme:l,themeId:i}));return v({variants:null==r||null==(n=r.components)||null==(n=n[p])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),w||a.push(f);const s=a.length-r.length;if(Array.isArray(n)&&s>0){const e=new Array(s).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const u=R(o,...a);return e.muiName&&(u.muiName=e.muiName),u};return R.withConfig&&(A.withConfig=R.withConfig),A}},Ks.shouldForwardProp=d,Ks.systemDefaultTheme=void 0;var t=e(qs()),n=e(Js()),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(eu),o=tu;e(nu),e(ru);var i=e(ou),a=e(iu);const l=["ownerState"],s=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function f(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const p=Ks.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,o,i){let{ownerState:a}=o,u=(0,n.default)(o,l);const c="function"==typeof e?e((0,t.default)({ownerState:a},u)):e;if(Array.isArray(c))return c.flatMap((e=>v(e,(0,t.default)({ownerState:a},u),i)));if(c&&"object"==typeof c&&Array.isArray(c.variants)){const{variants:e=[]}=c;let o=(0,n.default)(c,s);return e.forEach((e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:a},u,a)):Object.keys(e.props).forEach((t=>{(null==a?void 0:a[t])!==e.props[t]&&u[t]!==e.props[t]&&(n=!1)})),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:a},u,a)):e.style;o.push(i?f((0,r.internal_serializeStyles)(n),i):n)}})),o}return i?f((0,r.internal_serializeStyles)(c),i):c}return Ks}const lu=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,su=m(au())({themeId:mn,defaultTheme:Gs,rootShouldForwardProp:lu}),uu=["theme"];function cu(e){let{theme:t}=e,n=vn(e,uu);const r=t[mn];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=gn({},r,{vars:null}):t&&!t.vars&&(o=gn({},t,{vars:null}))),ai.jsx(is,gn({},n,{themeId:r?mn:void 0,theme:o}))}const du=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function fu(e){return ns(e)}function pu(e,t){return pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pu(e,t)}function hu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pu(e,t)}var mu=I(),gu=m(mu),vu=!1,bu=z.createContext(null),yu="unmounted",xu="exited",_u="entering",Su="entered",Cu="exiting",Eu=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=xu,r.appearStatus=_u):o=Su:o=t.unmountOnExit||t.mountOnEnter?yu:xu,r.state={status:o},r.nextCallback=null,r}hu(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===yu?{status:xu}: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!==_u&&n!==Su&&(t=_u):n!==_u&&n!==Su||(t=Cu)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===_u){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:gu.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xu&&this.setState({status:yu})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[gu.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||vu?this.safeSetState({status:Su},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:_u},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Su},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:gu.findDOMNode(this);t&&!vu?(this.props.onExit(r),this.safeSetState({status:Cu},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:xu},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:xu},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(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:gu.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===yu)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=vn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return z.createElement(bu.Provider,{value:null},"function"==typeof n?n(e,r):z.cloneElement(z.Children.only(n),r))},t}(z.Component);function wu(){}function ku(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ru(e,t){var n=Object.create(null);return e&&$.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&$.isValidElement(e)?t(e):e}(e)})),n}function Tu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Au(e,t,n){var r=Ru(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if($.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=$.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&$.isValidElement(u)&&(o[i]=$.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Tu(a,"exit",e),enter:Tu(a,"enter",e)})):o[i]=$.cloneElement(a,{in:!1}):o[i]=$.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Tu(a,"exit",e),enter:Tu(a,"enter",e)})}})),o}Eu.contextType=bu,Eu.propTypes={},Eu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wu,onEntering:wu,onEntered:wu,onExit:wu,onExiting:wu,onExited:wu},Eu.UNMOUNTED=yu,Eu.EXITED=xu,Eu.ENTERING=_u,Eu.ENTERED=Su,Eu.EXITING=Cu;var Nu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Lu=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(ku(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}hu(t,e);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,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Ru(n.children,(function(e){return $.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Tu(e,"appear",n),enter:Tu(e,"enter",n),exit:Tu(e,"exit",n)})}))):Au(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Ru(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=gn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=vn(e,["component","childFactory"]),o=this.state.contextValue,i=Nu(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?z.createElement(bu.Provider,{value:o},i):z.createElement(bu.Provider,{value:o},z.createElement(t,r,i))},t}(z.Component);Lu.propTypes={},Lu.defaultProps={component:"div",childFactory:function(e){return e}};function Ou(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Mu(e){return Ha("MuiPaper",e)}ja("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"]);const Pu=["className","component","elevation","square","variant"],Iu=su("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return gn({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&gn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Cs.alpha("#fff",du(t.elevation))}, ${Cs.alpha("#fff",du(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Du=$.forwardRef((function(e,t){const n=fu({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=vn(n,Pu),u=gn({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Bl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Mu,o)})(u);return ai.jsx(Iu,gn({as:o,ownerState:u,className:za(c.root,r),ref:t},s))}));const $u=ja("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zu=["center","classes","className"];let Fu,Bu,Hu,ju,Wu=e=>e;const Gu=No(Fu||(Fu=Wu`
23
+ */function Gh(e,t){return Oh(e,t)}const Yh=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Vh=[];function qh(e){return Vh[0]=e,Yp(Vh)}var Jh=Object.freeze({__proto__:null,GlobalStyles:Kh,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=D.useMemo((()=>{const e=`${t}-${n}`;if("object"==typeof document&&Uh.has(e))return Uh.get(e);const r=function(e,t){const n=bp({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return Uh.set(e,r),r}),[t,n]);return t||n?xc.jsx(Xp,{value:o,children:r}):r},ThemeContext:eh,css:vh,default:Gh,internal_processStyles:Yh,internal_serializeStyles:qh,keyframes:yh});function Qh(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Xh(e){if(D.isValidElement(e)||!Qh(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Xh(e[n])})),t}function Zh(e,t,n={clone:!0}){const r=n.clone?of({},e):e;return Qh(e)&&Qh(t)&&Object.keys(t).forEach((o=>{D.isValidElement(t[o])?r[o]=t[o]:Qh(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Qh(e[o])?r[o]=Zh(e[o],t[o],n):n.clone?r[o]=Qh(t[o])?Xh(t[o]):t[o]:r[o]=t[o]})),r}var em=Object.freeze({__proto__:null,default:Zh,isPlainObject:Qh});const tm=["values","unit","step"];function nm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=af(e,tm),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>of({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return of({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const rm={borderRadius:4};function om(e,t){return t?Zh(e,t,{clone:!1}):e}const im={xs:0,sm:600,md:900,lg:1200,xl:1536},am={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${im[e]}px)`};function sm(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||am;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||am;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||im).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function lm(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}function um(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function cm({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function dm(e){if("string"!=typeof e)throw new Error(tf(7));return e.charAt(0).toUpperCase()+e.slice(1)}var fm=Object.freeze({__proto__:null,default:dm});function pm(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function hm(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:pm(e,n)||r,t&&(o=t(o,r,e)),o}function mm(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=pm(e.theme,r)||{};return sm(e,i,(e=>{let r=hm(a,o,e);return e===r&&"string"==typeof e&&(r=hm(a,o,`${t}${"default"===e?"":dm(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const gm={m:"margin",p:"padding"},vm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ym={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bm=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!ym[e])return[e];e=ym[e]}const[t,n]=e.split(""),r=gm[t],o=vm[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),xm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_m=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function wm(e,t,n,r){var o;const i=null!=(o=pm(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function km(e){return wm(e,"spacing",8)}function Sm(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Cm(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Sm(t,n),e)),{})}(bm(n),r);return sm(e,e[n],o)}function Em(e,t){const n=km(e.theme);return Object.keys(e).map((r=>Cm(e,t,r,n))).reduce(om,{})}function Tm(e){return Em(e,xm)}function Am(e){return Em(e,_m)}function Rm(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?om(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Lm(e){return"number"!=typeof e?e:`${e}px solid`}function Nm(e,t){return mm({prop:e,themeKey:"borders",transform:t})}Tm.propTypes={},Tm.filterProps=xm,Am.propTypes={},Am.filterProps=_m;const Mm=Nm("border",Lm),Om=Nm("borderTop",Lm),Pm=Nm("borderRight",Lm),zm=Nm("borderBottom",Lm),Im=Nm("borderLeft",Lm),Dm=Nm("borderColor"),jm=Nm("borderTopColor"),Fm=Nm("borderRightColor"),Bm=Nm("borderBottomColor"),$m=Nm("borderLeftColor"),Hm=Nm("outline",Lm),Wm=Nm("outlineColor"),Um=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=wm(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Sm(t,e)});return sm(e,e.borderRadius,n)}return null};Um.propTypes={},Um.filterProps=["borderRadius"],Rm(Mm,Om,Pm,zm,Im,Dm,jm,Fm,Bm,$m,Um,Hm,Wm);const Km=e=>{if(void 0!==e.gap&&null!==e.gap){const t=wm(e.theme,"spacing",8),n=e=>({gap:Sm(t,e)});return sm(e,e.gap,n)}return null};Km.propTypes={},Km.filterProps=["gap"];const Gm=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=wm(e.theme,"spacing",8),n=e=>({columnGap:Sm(t,e)});return sm(e,e.columnGap,n)}return null};Gm.propTypes={},Gm.filterProps=["columnGap"];const Ym=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=wm(e.theme,"spacing",8),n=e=>({rowGap:Sm(t,e)});return sm(e,e.rowGap,n)}return null};Ym.propTypes={},Ym.filterProps=["rowGap"];function Vm(e,t){return"grey"===t?t:e}Rm(Km,Gm,Ym,mm({prop:"gridColumn"}),mm({prop:"gridRow"}),mm({prop:"gridAutoFlow"}),mm({prop:"gridAutoColumns"}),mm({prop:"gridAutoRows"}),mm({prop:"gridTemplateColumns"}),mm({prop:"gridTemplateRows"}),mm({prop:"gridTemplateAreas"}),mm({prop:"gridArea"}));function qm(e){return e<=1&&0!==e?100*e+"%":e}Rm(mm({prop:"color",themeKey:"palette",transform:Vm}),mm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vm}),mm({prop:"backgroundColor",themeKey:"palette",transform:Vm}));const Jm=mm({prop:"width",transform:qm}),Qm=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||im[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:qm(t)}};return sm(e,e.maxWidth,t)}return null};Qm.filterProps=["maxWidth"];const Xm=mm({prop:"minWidth",transform:qm}),Zm=mm({prop:"height",transform:qm}),eg=mm({prop:"maxHeight",transform:qm}),tg=mm({prop:"minHeight",transform:qm});mm({prop:"size",cssProperty:"width",transform:qm}),mm({prop:"size",cssProperty:"height",transform:qm});Rm(Jm,Qm,Xm,Zm,eg,tg,mm({prop:"boxSizing"}));const ng={border:{themeKey:"borders",transform:Lm},borderTop:{themeKey:"borders",transform:Lm},borderRight:{themeKey:"borders",transform:Lm},borderBottom:{themeKey:"borders",transform:Lm},borderLeft:{themeKey:"borders",transform:Lm},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lm},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Um},color:{themeKey:"palette",transform:Vm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vm},backgroundColor:{themeKey:"palette",transform:Vm},p:{style:Am},pt:{style:Am},pr:{style:Am},pb:{style:Am},pl:{style:Am},px:{style:Am},py:{style:Am},padding:{style:Am},paddingTop:{style:Am},paddingRight:{style:Am},paddingBottom:{style:Am},paddingLeft:{style:Am},paddingX:{style:Am},paddingY:{style:Am},paddingInline:{style:Am},paddingInlineStart:{style:Am},paddingInlineEnd:{style:Am},paddingBlock:{style:Am},paddingBlockStart:{style:Am},paddingBlockEnd:{style:Am},m:{style:Tm},mt:{style:Tm},mr:{style:Tm},mb:{style:Tm},ml:{style:Tm},mx:{style:Tm},my:{style:Tm},margin:{style:Tm},marginTop:{style:Tm},marginRight:{style:Tm},marginBottom:{style:Tm},marginLeft:{style:Tm},marginX:{style:Tm},marginY:{style:Tm},marginInline:{style:Tm},marginInlineStart:{style:Tm},marginInlineEnd:{style:Tm},marginBlock:{style:Tm},marginBlockStart:{style:Tm},marginBlockEnd:{style:Tm},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:Km},rowGap:{style:Ym},columnGap:{style:Gm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qm},maxWidth:{style:Qm},minWidth:{transform:qm},height:{transform:qm},maxHeight:{transform:qm},minHeight:{transform:qm},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function rg(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=pm(n,s)||{};if(u)return u(o);return sm(o,t,(t=>{let n=hm(c,l,t);return t===n&&"string"==typeof t&&(n=hm(c,l,`${e}${"default"===t?"":dm(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:ng;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=lm(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])u=om(u,e(n,o,i,s));else{const e=sm({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?u=om(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=om(u,e(n,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":um(l,u)}:um(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const og=rg();function ig(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}og.filterProps=["sx"];const ag=["breakpoints","palette","spacing","shape"];function sg(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=af(e,ag),s=nm(n),l=function(e=8){if(e.mui)return e;const t=km({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Zh({breakpoints:s,direction:"ltr",components:{},palette:of({mode:"light"},r),spacing:l,shape:of({},rm,i)},a);return u.applyStyles=ig,u=t.reduce(((e,t)=>Zh(e,t)),u),u.unstable_sxConfig=of({},ng,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return og({sx:e,theme:this})},u}var lg=Object.freeze({__proto__:null,default:sg,private_createBreakpoints:nm,unstable_applyStyles:ig});function ug(e=null){const t=D.useContext(eh);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const cg=sg();function dg(e=cg){return ug(e)}function fg(e){const t=qh(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function pg({styles:e,themeId:t,defaultTheme:n={}}){const r=dg(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>fg("function"==typeof e?e(o):e))):fg(i)),xc.jsx(Kh,{styles:i})}const hg=["sx"];function mg(e){const{sx:t}=e,n=af(e,hg),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:ng;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Qh(n)?of({},r,n):r}:of({},r,t),of({},o,{sx:i})}var gg=Object.freeze({__proto__:null,default:og,extendSxProp:mg,unstable_createStyleFunctionSx:rg,unstable_defaultSxConfig:ng});const vg=e=>e,yg=(()=>{let e=vg;return{configure(t){e=t},generate:t=>e(t),reset(){e=vg}}})();function bg(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=bg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bg(e))&&(r&&(r+=" "),r+=t);return r}const _g=["className","component"];const wg={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 kg(e,t,n="Mui"){const r=wg[t];return r?`${n}-${r}`:`${yg.generate(e)}-${t}`}function Sg(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=kg(e,t,n)})),r}var Cg,Eg,Tg={exports:{}},Ag={};function Rg(){if(Cg)return Ag;Cg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case u:case f:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case c:case i:return p;default:return h}}case t:return h}}}return Ag.ContextConsumer=i,Ag.ContextProvider=a,Ag.Element=e,Ag.ForwardRef=s,Ag.Fragment=n,Ag.Lazy=d,Ag.Memo=c,Ag.Portal=t,Ag.Profiler=o,Ag.StrictMode=r,Ag.Suspense=l,Ag.SuspenseList=u,Ag.isContextConsumer=function(e){return h(e)===i},Ag.isContextProvider=function(e){return h(e)===a},Ag.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ag.isForwardRef=function(e){return h(e)===s},Ag.isFragment=function(e){return h(e)===n},Ag.isLazy=function(e){return h(e)===d},Ag.isMemo=function(e){return h(e)===c},Ag.isPortal=function(e){return h(e)===t},Ag.isProfiler=function(e){return h(e)===o},Ag.isStrictMode=function(e){return h(e)===r},Ag.isSuspense=function(e){return h(e)===l},Ag.isSuspenseList=function(e){return h(e)===u},Ag.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},Ag.typeOf=h,Ag}function Lg(){return Eg||(Eg=1,Tg.exports=Rg()),Tg.exports}var Ng=Lg();const Mg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Og(e){const t=`${e}`.match(Mg);return t&&t[1]||""}function Pg(e,t=""){return e.displayName||e.name||Og(e)||t}function zg(e,t,n){const r=Pg(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ig=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Pg(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ng.ForwardRef:return zg(e,e.render,"ForwardRef");case Ng.Memo:return zg(e,e.type,"memo");default:return}}},getFunctionName:Og});const Dg=["ownerState"],jg=["variants"],Fg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Bg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function $g(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Hg=sg(),Wg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ug({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Kg(e){return e?(t,n)=>n[e]:null}function Gg(e,t,n){let{ownerState:r}=t,o=af(t,Dg);const i="function"==typeof e?e(of({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap((e=>Gg(e,of({ownerState:r},o),n)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=af(i,jg);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props(of({ownerState:r},o,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style(of({ownerState:r},o,r)):e.style;t.push(n?$g(qh(i),n):i)}})),t}return n?$g(qh(i),n):i}const Yg=function(e={}){const{themeId:t,defaultTheme:n=Hg,rootShouldForwardProp:r=Bg,slotShouldForwardProp:o=Bg}=e,i=e=>og(of({},e,{theme:Ug(of({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Yh(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Kg(Wg(l))}=a,f=af(a,Fg),p=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=Bg;"Root"===l||"root"===l?g=r:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=Gh(e,of({shouldForwardProp:g,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||Qh(e)?r=>{const o=Ug({theme:r.theme,defaultTheme:n,themeId:t});return Gg(e,of({},r,{theme:o}),o.modularCssLayers?p:void 0)}:e,b=(r,...o)=>{let a=y(r);const l=o?o.map(y):[];s&&d&&l.push((e=>{const r=Ug(of({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Gg(n,of({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var r;const o=Ug(of({},e,{defaultTheme:n,themeId:t}));return Gg({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},of({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(b.withConfig=v.withConfig),b}}();function Vg(e,t){const n=of({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=of({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=of({},i),Object.keys(o).forEach((e=>{n[r][e]=Vg(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function qg({props:e,name:t,defaultTheme:n,themeId:r}){let o=dg(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Vg(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const Jg="undefined"!=typeof window?D.useLayoutEffect:D.useEffect;function Qg(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Xg=Object.freeze({__proto__:null,default:Qg});function Zg(e){if(e.type)return e;if("#"===e.charAt(0))return Zg(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(tf(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(tf(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function ev(e,t){return e=Zg(e),t=function(e,t=0,n=1){return Qg(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function tv(e){return e&&e.ownerDocument||document}function nv(e){return tv(e).defaultView||window}function rv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let ov=0;const iv=F["useId".toString()];function av(e){if(void 0!==iv){const t=iv();return null!=e?e:t}return function(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect((()=>{null==t&&(ov+=1,n(`mui-${ov}`))}),[t]),r}(e)}function sv(e){const t=D.useRef(e);return Jg((()=>{t.current=e})),D.useRef(((...e)=>(0,t.current)(...e))).current}function lv(...e){return D.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{rv(e,t)}))}),e)}const uv={};const cv=[];class dv{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new dv}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function fv(){const e=function(e,t){const n=D.useRef(uv);return n.current===uv&&(n.current=e(t)),n}(dv.create).current;return function(e){D.useEffect(e,cv)}(e.disposeEffect),e}let pv=!0,hv=!1;const mv=new dv,gv={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function vv(e){e.metaKey||e.altKey||e.ctrlKey||(pv=!0)}function yv(){pv=!1}function bv(){"hidden"===this.visibilityState&&hv&&(pv=!0)}function xv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return pv||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!gv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function _v(){const e=D.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",vv,!0),t.addEventListener("mousedown",yv,!0),t.addEventListener("pointerdown",yv,!0),t.addEventListener("touchstart",yv,!0),t.addEventListener("visibilitychange",bv,!0))}),[]),t=D.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!xv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(hv=!0,mv.start(100,(()=>{hv=!1})),t.current=!1,!0)},ref:e}}function wv(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}function kv(e){return"string"==typeof e}function Sv(e,t,n){return void 0===e||kv(e)?t:of({},t,{ownerState:of({},t.ownerState,n)})}function Cv(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Ev(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=xg(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=of({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=of({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(of({},o,r)),s=Cv(r),l=Cv(o),u=t(a),c=xg(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=of({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),f=of({},u,n,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const Tv=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Av(e){var t;return parseInt(D.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Rv=D.createContext(null);function Lv(){return D.useContext(Rv)}var Nv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Mv(e){const{children:t,theme:n}=e,r=Lv(),o=D.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return of({},e,t)}(r,n);return null!=e&&(e[Nv]=null!==r),e}),[n,r]);return xc.jsx(Rv.Provider,{value:o,children:t})}const Ov=["value"],Pv=D.createContext();function zv(e){let{value:t}=e,n=af(e,Ov);return xc.jsx(Pv.Provider,of({value:null==t||t},n))}const Iv=D.createContext(void 0);function Dv({value:e,children:t}){return xc.jsx(Iv.Provider,{value:e,children:t})}function jv({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Vg(o.defaultProps,r):o.styleOverrides||o.variants?r:Vg(o,r)}({props:e,name:t,theme:{components:D.useContext(Iv)}})}const Fv={};function Bv(e,t,n,r=!1){return D.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?of({},t,{[e]:i}):i;return r?()=>a:a}return of({},t,e?{[e]:n}:n)}),[e,t,n,r])}function $v(e){const{children:t,theme:n,themeId:r}=e,o=ug(Fv),i=Lv()||Fv,a=Bv(r,o,n),s=Bv(r,i,n,!0),l="rtl"===a.direction,u=function(e){const t=ug(),n=av()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Jg((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}}),[o,n]),o?xc.jsx(pg,{styles:o}):null}(a);return xc.jsx(Mv,{theme:s,children:xc.jsx(eh.Provider,{value:a,children:xc.jsx(zv,{value:l,children:xc.jsxs(Dv,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Hv(e){return Hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hv(e)}function Wv(e){var t=function(e,t){if("object"!=Hv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Hv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hv(t)?t:t+""}const Uv=["component","direction","spacing","divider","children","className","useFlexGap"],Kv=sg(),Gv=Yg("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Yv(e){return qg({props:e,name:"MuiStack",defaultTheme:Kv})}function Vv(e,t){const n=D.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(D.cloneElement(t,{key:`separator-${o}`})),e)),[])}const qv=({ownerState:e,theme:t})=>{let n=of({display:"flex",flexDirection:"column"},sm({theme:t},cm({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=km(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),i=cm({values:e.direction,base:o}),a=cm({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));n=Zh(n,sm({theme:t},a,((t,n)=>{return e.useFlexGap?{gap:Sm(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Sm(r,t)}};var o})))}return n=function(e,...t){const n=lm(e),r=[n,...t].reduce(((e,t)=>Zh(e,t)),{});return um(Object.keys(n),r)}(t.breakpoints,n),n};function Jv(e,t){return of({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Qv,Xv={},Zv={exports:{}};function ey(){return Qv||(Qv=1,(e=Zv).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),Zv.exports;var e}var ty,ny=g(nf),ry=g(Xg);function oy(){if(ty)return Xv;ty=1;var e=ey();Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.alpha=c,Xv.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),u=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:u})},Xv.colorChannel=void 0,Xv.darken=d,Xv.decomposeColor=i,Xv.emphasize=p,Xv.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Xv.getLuminance=u,Xv.hexToRgb=o,Xv.hslToRgb=l,Xv.lighten=f,Xv.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},Xv.private_safeColorChannel=void 0,Xv.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},Xv.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},Xv.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},Xv.recomposeColor=s,Xv.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var t=e(ny),n=e(ry);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Xv.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(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 c(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function f(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function p(e,t=.15){return u(e)>.5?d(e,t):f(e,t)}return Xv.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},Xv}var iy=oy();const ay=["mode","contrastThreshold","tonalOffset"],sy={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:_d.white,default:_d.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}},ly={text:{primary:_d.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:_d.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}};function uy(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=iy.lighten(e.main,o):"dark"===t&&(e.dark=iy.darken(e.main,i)))}function cy(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=af(e,ay),i=e.primary||function(e="light"){return"dark"===e?{main:Pd,light:Od,dark:zd}:{main:Id,light:zd,dark:Dd}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ad,light:Td,dark:Ld}:{main:Nd,light:Rd,dark:Md}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Sd,light:wd,dark:Cd}:{main:Cd,light:kd,dark:Ed}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Fd,light:jd,dark:$d}:{main:$d,light:Bd,dark:Hd}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ud,light:Wd,dark:Gd}:{main:Yd,light:Kd,dark:Vd}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Jd,light:qd,dark:Xd}:{main:"#ed6c02",light:Qd,dark:Zd}}(t);function d(e){return iy.getContrastRatio(e,ly.text.primary)>=n?ly.text.primary:sy.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=of({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(tf(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(tf(12,t?` (${t})`:"",JSON.stringify(e.main)));return uy(e,"light",o,r),uy(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:ly,light:sy};return Zh(of({common:of({},_d),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:ef,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const dy=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const fy={textTransform:"uppercase"},py='"Roboto", "Helvetica", "Arial", sans-serif';function hy(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=py,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=af(n,dy),p=o/14,h=d||(e=>e/u*p+"rem"),m=(e,t,n,o,i)=>{return of({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===py?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={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(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,fy),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,fy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zh(of({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function my(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const gy=["none",my(0,2,1,-1,0,1,1,0,0,1,3,0),my(0,3,1,-2,0,2,2,0,0,1,5,0),my(0,3,3,-2,0,3,4,0,0,1,8,0),my(0,2,4,-1,0,4,5,0,0,1,10,0),my(0,3,5,-1,0,5,8,0,0,1,14,0),my(0,3,5,-1,0,6,10,0,0,1,18,0),my(0,4,5,-2,0,7,10,1,0,2,16,1),my(0,5,5,-3,0,8,10,1,0,3,14,2),my(0,5,6,-3,0,9,12,1,0,3,16,2),my(0,6,6,-3,0,10,14,1,0,4,18,3),my(0,6,7,-4,0,11,15,1,0,4,20,3),my(0,7,8,-4,0,12,17,2,0,5,22,4),my(0,7,8,-4,0,13,19,2,0,5,24,4),my(0,7,9,-4,0,14,21,2,0,5,26,4),my(0,8,9,-5,0,15,22,2,0,6,28,5),my(0,8,10,-5,0,16,24,2,0,6,30,5),my(0,8,11,-5,0,17,26,2,0,6,32,5),my(0,9,11,-5,0,18,28,2,0,7,34,6),my(0,9,12,-6,0,19,29,2,0,7,36,6),my(0,10,13,-6,0,20,31,3,0,8,38,7),my(0,10,13,-6,0,21,33,3,0,8,40,7),my(0,10,14,-6,0,22,35,3,0,8,42,7),my(0,11,14,-7,0,23,36,3,0,9,44,8),my(0,11,15,-7,0,24,38,3,0,9,46,8)],vy=["duration","easing","delay"],yy={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)"},by={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xy(e){return`${Math.round(e)}ms`}function _y(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function wy(e){const t=of({},yy,e.easing),n=of({},by,e.duration);return of({getAutoHeightDuration:_y,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return af(r,vy),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:xy(o)} ${i} ${"string"==typeof a?a:xy(a)}`)).join(",")}},e,{easing:t,duration:n})}const ky={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Sy=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Cy(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=af(e,Sy);if(e.vars&&void 0===e.generateCssVars)throw new Error(tf(18));const s=cy(r),l=sg(e);let u=Zh(l,{mixins:Jv(l.breakpoints,n),palette:s,shadows:gy.slice(),typography:hy(s,i),transitions:wy(o),zIndex:of({},ky)});return u=Zh(u,a),u=t.reduce(((e,t)=>Zh(e,t)),u),u.unstable_sxConfig=of({},ng,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return og({sx:e,theme:this})},u}const Ey=Cy();function Ty(){const e=dg(Ey);return e[rf]||e}var Ay,Ry={},Ly={exports:{}};function Ny(){return Ay||(Ay=1,function(e){function t(){return e.exports=t=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},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ly)),Ly.exports}var My,Oy={exports:{}};function Py(){return My||(My=1,(e=Oy).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports),Oy.exports;var e}var zy,Iy=g(Jh),Dy=g(em),jy=g(fm),Fy=g(Ig),By=g(lg),$y=g(gg);function Hy(){if(zy)return Ry;zy=1;var e=ey();Object.defineProperty(Ry,"__esModule",{value:!0}),Ry.default=function(e={}){const{themeId:i,defaultTheme:s=p,rootShouldForwardProp:l=d,slotShouldForwardProp:c=d}=e,f=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:s,themeId:i}))}));return f.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:y,skipVariantsResolver:b,skipSx:x,overridesResolver:_=g(h(y))}=a,w=(0,n.default)(a,u),k=p&&p.startsWith("Mui")||y?"components":"custom",S=void 0!==b?b:y&&"Root"!==y&&"root"!==y||!1,C=x||!1;let E=d;"Root"===y||"root"===y?E=l:y?E=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const T=(0,r.default)(e,(0,t.default)({shouldForwardProp:E,label:undefined},w)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=m({theme:n.theme,defaultTheme:s,themeId:i});return v(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?k:void 0)}:e,R=(n,...r)=>{let o=A(n);const a=r?r.map(A):[];p&&_&&a.push((e=>{const n=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));if(!n.components||!n.components[p]||!n.components[p].styleOverrides)return null;const r=n.components[p].styleOverrides,o={};return Object.entries(r).forEach((([r,i])=>{o[r]=v(i,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),_(e,o)})),p&&!S&&a.push((e=>{var n;const r=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));return v({variants:null==r||null==(n=r.components)||null==(n=n[p])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),C||a.push(f);const l=a.length-r.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const u=T(o,...a);return e.muiName&&(u.muiName=e.muiName),u};return T.withConfig&&(R.withConfig=T.withConfig),R}},Ry.shouldForwardProp=d,Ry.systemDefaultTheme=void 0;var t=e(Ny()),n=e(Py()),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Iy),o=Dy;e(jy),e(Fy);var i=e(By),a=e($y);const s=["ownerState"],l=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function f(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const p=Ry.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,o,i){let{ownerState:a}=o,u=(0,n.default)(o,s);const c="function"==typeof e?e((0,t.default)({ownerState:a},u)):e;if(Array.isArray(c))return c.flatMap((e=>v(e,(0,t.default)({ownerState:a},u),i)));if(c&&"object"==typeof c&&Array.isArray(c.variants)){const{variants:e=[]}=c;let o=(0,n.default)(c,l);return e.forEach((e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:a},u,a)):Object.keys(e.props).forEach((t=>{(null==a?void 0:a[t])!==e.props[t]&&u[t]!==e.props[t]&&(n=!1)})),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:a},u,a)):e.style;o.push(i?f((0,r.internal_serializeStyles)(n),i):n)}})),o}return i?f((0,r.internal_serializeStyles)(c),i):c}return Ry}const Wy=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Uy=m(Hy())({themeId:rf,defaultTheme:Ey,rootShouldForwardProp:Wy}),Ky=["theme"];function Gy(e){let{theme:t}=e,n=af(e,Ky);const r=t[rf];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=of({},r,{vars:null}):t&&!t.vars&&(o=of({},t,{vars:null}))),xc.jsx($v,of({},n,{themeId:r?rf:void 0,theme:o}))}const Yy=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Vy(e){return jv(e)}function qy(e,t){return qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qy(e,t)}function Jy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qy(e,t)}var Qy=z(),Xy=m(Qy),Zy=!1,eb=j.createContext(null),tb="unmounted",nb="exited",rb="entering",ob="entered",ib="exiting",ab=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=nb,r.appearStatus=rb):o=ob:o=t.unmountOnExit||t.mountOnEnter?tb:nb,r.state={status:o},r.nextCallback=null,r}Jy(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===tb?{status:nb}: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!==rb&&n!==ob&&(t=rb):n!==rb&&n!==ob||(t=ib)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===rb){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Xy.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===nb&&this.setState({status:tb})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Xy.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Zy?this.safeSetState({status:ob},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:rb},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:ob},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Xy.findDOMNode(this);t&&!Zy?(this.props.onExit(r),this.safeSetState({status:ib},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:nb},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:nb},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(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:Xy.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===tb)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=af(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(eb.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function sb(){}function lb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ub(e,t){var n=Object.create(null);return e&&D.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&D.isValidElement(e)?t(e):e}(e)})),n}function cb(e,t,n){return null!=n[t]?n[t]:e.props[t]}function db(e,t,n){var r=ub(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(D.isValidElement(a)){var s=i in t,l=i in r,u=t[i],c=D.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&D.isValidElement(u)&&(o[i]=D.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:cb(a,"exit",e),enter:cb(a,"enter",e)})):o[i]=D.cloneElement(a,{in:!1}):o[i]=D.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:cb(a,"exit",e),enter:cb(a,"enter",e)})}})),o}ab.contextType=eb,ab.propTypes={},ab.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sb,onEntering:sb,onEntered:sb,onExit:sb,onExiting:sb,onExited:sb},ab.UNMOUNTED=tb,ab.EXITED=nb,ab.ENTERING=rb,ab.ENTERED=ob,ab.EXITING=ib;var fb=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},pb=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(lb(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Jy(t,e);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,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,ub(n.children,(function(e){return D.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:cb(e,"appear",n),enter:cb(e,"enter",n),exit:cb(e,"exit",n)})}))):db(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=ub(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=of({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=af(e,["component","childFactory"]),o=this.state.contextValue,i=fb(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(eb.Provider,{value:o},i):j.createElement(eb.Provider,{value:o},j.createElement(t,r,i))},t}(j.Component);pb.propTypes={},pb.defaultProps={component:"div",childFactory:function(e){return e}};function hb(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function mb(e){return kg("MuiPaper",e)}Sg("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"]);const gb=["className","component","elevation","square","variant"],vb=Uy("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return of({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&of({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${iy.alpha("#fff",Yy(t.elevation))}, ${iy.alpha("#fff",Yy(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),yb=D.forwardRef((function(e,t){const n=Vy({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=af(n,gb),u=of({},n,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return wv({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},mb,o)})(u);return xc.jsx(vb,of({as:o,ownerState:u,className:xg(c.root,r),ref:t},l))}));const bb=Sg("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xb=["center","classes","className"];let _b,wb,kb,Sb,Cb=e=>e;const Eb=yh(_b||(_b=Cb`
24
24
  0% {
25
25
  transform: scale(0);
26
26
  opacity: 0.1;
@@ -30,7 +30,7 @@ import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel
30
30
  transform: scale(1);
31
31
  opacity: 0.3;
32
32
  }
33
- `)),Yu=No(Bu||(Bu=Wu`
33
+ `)),Tb=yh(wb||(wb=Cb`
34
34
  0% {
35
35
  opacity: 1;
36
36
  }
@@ -38,7 +38,7 @@ import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel
38
38
  100% {
39
39
  opacity: 0;
40
40
  }
41
- `)),Uu=No(Hu||(Hu=Wu`
41
+ `)),Ab=yh(kb||(kb=Cb`
42
42
  0% {
43
43
  transform: scale(1);
44
44
  }
@@ -50,7 +50,7 @@ import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel
50
50
  100% {
51
51
  transform: scale(1);
52
52
  }
53
- `)),Ku=su("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Vu=su((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=$.useState(!1),f=za(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+i,left:-a/2+o},h=za(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),$.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),ai.jsx("span",{className:f,style:p,children:ai.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(ju||(ju=Wu`
53
+ `)),Rb=Uy("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Lb=Uy((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=D.useState(!1),f=xg(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+i,left:-a/2+o},h=xg(n.child,c&&n.childLeaving,r&&n.childPulsate);return s||c||d(!0),D.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),xc.jsx("span",{className:f,style:p,children:xc.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Sb||(Sb=Cb`
54
54
  opacity: 0;
55
55
  position: absolute;
56
56
 
@@ -93,18 +93,18 @@ import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel
93
93
  animation-iteration-count: infinite;
94
94
  animation-delay: 200ms;
95
95
  }
96
- `),$u.rippleVisible,Gu,550,(({theme:e})=>e.transitions.easing.easeInOut),$u.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),$u.child,$u.childLeaving,Yu,550,(({theme:e})=>e.transitions.easing.easeInOut),$u.childPulsate,Uu,(({theme:e})=>e.transitions.easing.easeInOut)),qu=$.forwardRef((function(e,t){const n=fu({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=vn(n,zu),[l,s]=$.useState([]),u=$.useRef(0),c=$.useRef(null);$.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=$.useRef(!1),f=Nl(),p=$.useRef(null),h=$.useRef(null),m=$.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,ai.jsx(Vu,{classes:{ripple:za(o.ripple,$u.ripple),rippleVisible:za(o.rippleVisible,$u.rippleVisible),ripplePulsate:za(o.ripplePulsate,$u.ripplePulsate),child:za(o.child,$u.child),childLeaving:za(o.childLeaving,$u.childLeaving),childPulsate:za(o.childPulsate,$u.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=$.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,f]),v=$.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=$.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void f.start(0,(()=>{b(e,t)}));p.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[f]);return $.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),ai.jsx(Ku,gn({className:za($u.root,o.root,i),ref:h},a,{children:ai.jsx(Lu,{component:null,exit:!0,children:l})}))}));function Qu(e){return Ha("MuiButtonBase",e)}const Xu=ja("MuiButtonBase",["root","disabled","focusVisible"]),Ju=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Zu=su("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${Xu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ec=$.forwardRef((function(e,t){const n=fu({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:p,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:_,onMouseLeave:S,onMouseUp:C,onTouchEnd:E,onTouchMove:w,onTouchStart:k,tabIndex:R=0,TouchRippleProps:T,touchRippleRef:A,type:N}=n,L=vn(n,Ju),O=$.useRef(null),M=$.useRef(null),P=kl(M,A),{isFocusVisibleRef:I,onFocus:D,onBlur:z,ref:F}=Fl(),[B,H]=$.useState(!1);s&&B&&H(!1),$.useImperativeHandle(r,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[j,W]=$.useState(!1);$.useEffect((()=>{W(!0)}),[]);const G=j&&!u&&!s;function Y(e,t,n=c){return wl((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}$.useEffect((()=>{B&&d&&!u&&j&&M.current.pulsate()}),[u,d,B,j]);const U=Y("start",_),K=Y("stop",m),V=Y("stop",g),q=Y("stop",C),Q=Y("stop",(e=>{B&&e.preventDefault(),S&&S(e)})),X=Y("start",k),J=Y("stop",E),Z=Y("stop",w),ee=Y("stop",(e=>{z(e),!1===I.current&&H(!1),p&&p(e)}),!1),te=wl((e=>{O.current||(O.current=e.currentTarget),D(e),!0===I.current&&(H(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=$.useRef(!1),oe=wl((e=>{d&&!re.current&&B&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=wl((e=>{d&&" "===e.key&&M.current&&B&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(L.href||L.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===N?"button":N,le.disabled=s):(L.href||L.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=kl(t,F,O),ue=gn({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:R,focusVisible:B}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Bl({root:["root",t&&"disabled",n&&"focusVisible"]},Qu,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return ai.jsxs(Zu,gn({as:ae,className:za(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:K,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:Q,onMouseUp:q,onDragLeave:V,onTouchEnd:J,onTouchMove:Z,onTouchStart:X,ref:se,tabIndex:s?-1:R,type:N},le,L,{children:[i,G?ai.jsx(qu,gn({ref:P,center:o},T)):null]}))}));function tc(e){return Ha("MuiIconButton",e)}const nc=ja("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),rc=["edge","children","className","color","disabled","disableFocusRipple","size"],oc=su(ec,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Ai(n.color)}`],n.edge&&t[`edge${Ai(n.edge)}`],t[`size${Ai(n.size)}`]]}})((({theme:e,ownerState:t})=>gn({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Cs.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return gn({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&gn({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":gn({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Cs.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${nc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),ic=$.forwardRef((function(e,t){const n=fu({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:u="medium"}=n,c=vn(n,rc),d=gn({},n,{edge:r,color:a,disabled:l,disableFocusRipple:s,size:u}),f=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return Bl({root:["root",n&&"disabled","default"!==r&&`color${Ai(r)}`,o&&`edge${Ai(o)}`,`size${Ai(i)}`]},tc,t)})(d);return ai.jsx(oc,gn({className:za(f.root,i),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},c,{ownerState:d,children:o}))}));function ac(e){return Ha("MuiTypography",e)}ja("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const lc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],sc=su("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Ai(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>gn({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),uc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},dc=$.forwardRef((function(e,t){const n=fu({props:e,name:"MuiTypography"}),r=(e=>cc[e]||e)(n.color),o=Ma(gn({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=uc}=o,p=vn(o,lc),h=gn({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:f}),m=l||(c?"p":f[d]||uc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Bl({root:["root",i,"inherit"!==e.align&&`align${Ai(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},ac,a)})(h);return ai.jsx(sc,gn({as:m,ref:t,ownerState:h,className:za(g.root,a)},p))}));var fc,pc={};function hc(){if(fc)return pc;fc=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(w()),t=eu;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return pc.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},pc}var mc=m(hc()),gc="top",vc="bottom",bc="right",yc="left",xc="auto",_c=[gc,vc,bc,yc],Sc="start",Cc="end",Ec="viewport",wc="popper",kc=_c.reduce((function(e,t){return e.concat([t+"-"+Sc,t+"-"+Cc])}),[]),Rc=[].concat(_c,[xc]).reduce((function(e,t){return e.concat([t,t+"-"+Sc,t+"-"+Cc])}),[]),Tc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ac(e){return e?(e.nodeName||"").toLowerCase():null}function Nc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Lc(e){return e instanceof Nc(e).Element||e instanceof Element}function Oc(e){return e instanceof Nc(e).HTMLElement||e instanceof HTMLElement}function Mc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Nc(e).ShadowRoot||e instanceof ShadowRoot)}var Pc={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Oc(o)&&Ac(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(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],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Oc(r)&&Ac(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ic(e){return e.split("-")[0]}var Dc=Math.max,$c=Math.min,zc=Math.round;function Fc(){var e=navigator.userAgentData;return null!=e&&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(Fc())}function Hc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Oc(e)&&(o=e.offsetWidth>0&&zc(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zc(r.height)/e.offsetHeight||1);var a=(Lc(e)?Nc(e):window).visualViewport,l=!Bc()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function jc(e){var t=Hc(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 Wc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Mc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Gc(e){return Nc(e).getComputedStyle(e)}function Yc(e){return["table","td","th"].indexOf(Ac(e))>=0}function Uc(e){return((Lc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Kc(e){return"html"===Ac(e)?e:e.assignedSlot||e.parentNode||(Mc(e)?e.host:null)||Uc(e)}function Vc(e){return Oc(e)&&"fixed"!==Gc(e).position?e.offsetParent:null}function qc(e){for(var t=Nc(e),n=Vc(e);n&&Yc(n)&&"static"===Gc(n).position;)n=Vc(n);return n&&("html"===Ac(n)||"body"===Ac(n)&&"static"===Gc(n).position)?t:n||function(e){var t=/firefox/i.test(Fc());if(/Trident/i.test(Fc())&&Oc(e)&&"fixed"===Gc(e).position)return null;var n=Kc(e);for(Mc(n)&&(n=n.host);Oc(n)&&["html","body"].indexOf(Ac(n))<0;){var r=Gc(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Qc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xc(e,t,n){return Dc(e,$c(t,n))}function Jc(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Zc(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var ed={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Ic(n.placement),s=Qc(l),u=[yc,bc].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return Jc("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Zc(e,_c))}(o.padding,n),d=jc(i),f="y"===s?gc:yc,p="y"===s?vc:bc,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],g=qc(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=c[f],x=v-d[u]-c[p],_=v/2-d[u]/2+b,S=Xc(y,_,x),C=s;n.modifiersData[r]=((t={})[C]=S,t.centerOffset=S-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Wc(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function td(e){return e.split("-")[1]}var nd={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rd(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=yc,x=gc,_=window;if(u){var S=qc(n),C="clientHeight",E="clientWidth";if(S===Nc(n)&&"static"!==Gc(S=Uc(n)).position&&"absolute"===l&&(C="scrollHeight",E="scrollWidth"),o===gc||(o===yc||o===bc)&&i===Cc)x=vc,m-=(d&&S===_&&_.visualViewport?_.visualViewport.height:S[C])-r.height,m*=s?1:-1;if(o===yc||(o===gc||o===vc)&&i===Cc)y=bc,p-=(d&&S===_&&_.visualViewport?_.visualViewport.width:S[E])-r.width,p*=s?1:-1}var w,k=Object.assign({position:l},u&&nd),R=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zc(n*o)/o||0,y:zc(r*o)/o||0}}({x:p,y:m},Nc(n)):{x:p,y:m};return p=R.x,m=R.y,s?Object.assign({},k,((w={})[x]=b?"0":"",w[y]=v?"0":"",w.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",w)):Object.assign({},k,((t={})[x]=b?m+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var od={passive:!0};var id={left:"right",right:"left",bottom:"top",top:"bottom"};function ad(e){return e.replace(/left|right|bottom|top/g,(function(e){return id[e]}))}var ld={start:"end",end:"start"};function sd(e){return e.replace(/start|end/g,(function(e){return ld[e]}))}function ud(e){var t=Nc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function cd(e){return Hc(Uc(e)).left+ud(e).scrollLeft}function dd(e){var t=Gc(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function fd(e){return["html","body","#document"].indexOf(Ac(e))>=0?e.ownerDocument.body:Oc(e)&&dd(e)?e:fd(Kc(e))}function pd(e,t){var n;void 0===t&&(t=[]);var r=fd(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Nc(r),a=o?[i].concat(i.visualViewport||[],dd(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(pd(Kc(a)))}function hd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function md(e,t,n){return t===Ec?hd(function(e,t){var n=Nc(e),r=Uc(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=Bc();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+cd(e),y:s}}(e,n)):Lc(t)?function(e,t){var n=Hc(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=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}(t,n):hd(function(e){var t,n=Uc(e),r=ud(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Dc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Dc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+cd(e),s=-r.scrollTop;return"rtl"===Gc(o||n).direction&&(l+=Dc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Uc(e)))}function gd(e,t,n,r){var o="clippingParents"===t?function(e){var t=pd(Kc(e)),n=["absolute","fixed"].indexOf(Gc(e).position)>=0&&Oc(e)?qc(e):e;return Lc(n)?t.filter((function(e){return Lc(e)&&Wc(e,n)&&"body"!==Ac(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=md(e,n,r);return t.top=Dc(o.top,t.top),t.right=$c(o.right,t.right),t.bottom=$c(o.bottom,t.bottom),t.left=Dc(o.left,t.left),t}),md(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function vd(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Ic(o):null,a=o?td(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case gc:t={x:l,y:n.y-r.height};break;case vc:t={x:l,y:n.y+n.height};break;case bc:t={x:n.x+n.width,y:s};break;case yc:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Qc(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case Sc:t[u]=t[u]-(n[c]/2-r[c]/2);break;case Cc:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function bd(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,u=n.rootBoundary,c=void 0===u?Ec:u,d=n.elementContext,f=void 0===d?wc:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=Jc("number"!=typeof g?g:Zc(g,_c)),b=f===wc?"reference":wc,y=e.rects.popper,x=e.elements[h?b:f],_=gd(Lc(x)?x:x.contextElement||Uc(e.elements.popper),s,c,a),S=Hc(e.elements.reference),C=vd({reference:S,element:y,placement:o}),E=hd(Object.assign({},y,C)),w=f===wc?E:S,k={top:_.top-w.top+v.top,bottom:w.bottom-_.bottom+v.bottom,left:_.left-w.left+v.left,right:w.right-_.right+v.right},R=e.modifiersData.offset;if(f===wc&&R){var T=R[o];Object.keys(k).forEach((function(e){var t=[bc,vc].indexOf(e)>=0?1:-1,n=[gc,vc].indexOf(e)>=0?"y":"x";k[e]+=T[n]*t}))}return k}function yd(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?Rc:s,c=td(r),d=c?l?kc:kc.filter((function(e){return td(e)===c})):_c,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=bd(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Ic(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var xd={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Ic(g),b=s||(v===g||!h?[ad(g)]:function(e){if(Ic(e)===xc)return[];var t=ad(e);return[sd(e),t,sd(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(Ic(n)===xc?yd(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,_=t.rects.popper,S=new Map,C=!0,E=y[0],w=0;w<y.length;w++){var k=y[w],R=Ic(k),T=td(k)===Sc,A=[gc,vc].indexOf(R)>=0,N=A?"width":"height",L=bd(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),O=A?T?bc:yc:T?vc:gc;x[N]>_[N]&&(O=ad(O));var M=ad(O),P=[];if(i&&P.push(L[R]<=0),l&&P.push(L[O]<=0,L[M]<=0),P.every((function(e){return e}))){E=k,C=!1;break}S.set(k,P)}if(C)for(var I=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 E=t,"break"},D=h?3:1;D>0;D--){if("break"===I(D))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function _d(e,t,n){return void 0===n&&(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 Sd(e){return[gc,bc,vc,yc].some((function(t){return e[t]>=0}))}var Cd={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Rc.reduce((function(e,n){return e[n]=function(e,t,n){var r=Ic(e),o=[yc,gc].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[yc,bc].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var Ed={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=bd(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=Ic(t.placement),b=td(t.placement),y=!b,x=Qc(v),_="x"===x?"y":"x",S=t.modifiersData.popperOffsets,C=t.rects.reference,E=t.rects.popper,w="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof w?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(S){if(i){var A,N="y"===x?gc:yc,L="y"===x?vc:bc,O="y"===x?"height":"width",M=S[x],P=M+g[N],I=M-g[L],D=p?-E[O]/2:0,$=b===Sc?C[O]:E[O],z=b===Sc?-E[O]:-C[O],F=t.elements.arrow,B=p&&F?jc(F):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=H[N],W=H[L],G=Xc(0,C[O],B[O]),Y=y?C[O]/2-D-G-j-k.mainAxis:$-G-j-k.mainAxis,U=y?-C[O]/2+D+G+W+k.mainAxis:z+G+W+k.mainAxis,K=t.elements.arrow&&qc(t.elements.arrow),V=K?"y"===x?K.clientTop||0:K.clientLeft||0:0,q=null!=(A=null==R?void 0:R[x])?A:0,Q=M+U-q,X=Xc(p?$c(P,M+Y-q-V):P,M,p?Dc(I,Q):I);S[x]=X,T[x]=X-M}if(l){var J,Z="x"===x?gc:yc,ee="x"===x?vc:bc,te=S[_],ne="y"===_?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[gc,yc].indexOf(v),ae=null!=(J=null==R?void 0:R[_])?J:0,le=ie?re:te-C[ne]-E[ne]-ae+k.altAxis,se=ie?te+C[ne]+E[ne]-ae-k.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Xc(e,t,n);return r>n?n:r}(le,te,se):Xc(p?le:re,te,p?se:oe);S[_]=ue,T[_]=ue-te}t.modifiersData[r]=T}},requiresIfExists:["offset"]};function wd(e,t,n){void 0===n&&(n=!1);var r=Oc(t),o=Oc(t)&&function(e){var t=e.getBoundingClientRect(),n=zc(t.width)/e.offsetWidth||1,r=zc(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Uc(t),a=Hc(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ac(t)||dd(i))&&(l=function(e){return e!==Nc(e)&&Oc(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:ud(e);var t}(t)),Oc(t)?((s=Hc(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=cd(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function kd(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Rd(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Td={placement:"bottom",modifiers:[],strategy:"absolute"};function Ad(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Nd(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Td:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Td,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,s={state:o,setOptions:function(n){var l="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,l),o.scrollParents={reference:Lc(e)?pd(e):e.contextElement?pd(e.contextElement):[],popper:pd(t)};var c,d,f=function(e){var t=kd(e);return Tc.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((c=[].concat(r,o.options.modifiers),d=c.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}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=f.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var l=i({state:o,name:t,instance:s,options:r}),u=function(){};a.push(l||u)}})),s.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(Ad(t,n)){o.rects={reference:wd(t,qc(n),"fixed"===o.options.strategy),popper:jc(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof a&&(o=a({state:o,options:c,name:d,instance:s})||o)}else o.reset=!1,r=-1}}},update:Rd((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){u(),l=!0}};if(!Ad(e,t))return s;function u(){a.forEach((function(e){return e()})),a=[]}return s.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var Ld=Nd({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=Nc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,od)})),l&&s.addEventListener("resize",n.update,od),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,od)})),l&&s.removeEventListener("resize",n.update,od)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=vd({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,u={placement:Ic(t.placement),variation:td(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,rd(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,rd(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Pc,Cd,xd,Ed,ed,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=bd(t,{elementContext:"reference"}),l=bd(t,{altBoundary:!0}),s=_d(a,r),u=_d(l,o,i),c=Sd(s),d=Sd(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});const Od=$.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=$.useState(null),l=kl($.isValidElement(n)?Ul(n):null,t);if(hl((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),hl((()=>{if(i&&!o)return _l(t,i),()=>{_l(t,null)}}),[t,i,o]),o){if($.isValidElement(n)){const e={ref:l};return $.cloneElement(n,e)}return ai.jsx($.Fragment,{children:n})}return ai.jsx($.Fragment,{children:i?mu.createPortal(n,i):i})}));function Md(e){return Ha("MuiPopper",e)}ja("MuiPopper",["root"]);const Pd=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Id=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Dd(e){return"function"==typeof e?e():e}const $d={},zd=$.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:l,open:s,placement:u,popperOptions:c,popperRef:d,slotProps:f={},slots:p={},TransitionProps:h}=e,m=vn(e,Pd),g=$.useRef(null),v=kl(g,t),b=$.useRef(null),y=kl(b,d),x=$.useRef(y);hl((()=>{x.current=y}),[y]),$.useImperativeHandle(d,(()=>b.current),[]);const _=function(e,t){if("ltr"===t)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}}(u,i),[S,C]=$.useState(_),[E,w]=$.useState(Dd(r));$.useEffect((()=>{b.current&&b.current.forceUpdate()})),$.useEffect((()=>{r&&w(Dd(r))}),[r]),hl((()=>{if(!E||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{C(e.placement)})(e)}}];null!=l&&(e=e.concat(l)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=Ld(E,g.current,gn({placement:_},c,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[E,a,l,s,c,_]);const k={placement:S};null!==h&&(k.TransitionProps=h);const R=(e=>{const{classes:t}=e;return Bl({root:["root"]},Md,t)})(e),T=null!=(n=p.root)?n:"div",A=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=vn(e,Yl),l=i?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(r,o),{props:s,internalRef:u}=Gl(gn({},a,{externalSlotProps:l}));return jl(n,gn({},s,{ref:kl(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:T,externalSlotProps:f.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:R.root});return ai.jsx(T,gn({},A,{children:"function"==typeof o?o(k):o}))})),Fd=$.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:s,open:u,placement:c="bottom",popperOptions:d=$d,popperRef:f,style:p,transition:h=!1,slotProps:m={},slots:g={}}=e,v=vn(e,Id),[b,y]=$.useState(!0);if(!l&&!u&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=Dd(n);x=e&&void 0!==e.nodeType?yl(e).body:yl(null).body}const _=u||!l||h&&!b?void 0:"none",S=h?{in:u,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return ai.jsx(Od,{disablePortal:a,container:x,children:ai.jsx(zd,gn({anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:h?!b:u,placement:c,popperOptions:d,popperRef:f,slotProps:m,slots:g},v,{style:gn({position:"fixed",top:0,left:0,display:_},p),TransitionProps:S,children:r}))})})),Bd=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Hd=su(Fd,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jd=$.forwardRef((function(e,t){var n;const r=mc(),o=fu({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:s,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=vn(o,Bd),_=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,S=gn({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v},x);return ai.jsx(Hd,gn({as:a,direction:null==r?void 0:r.direction,slots:{root:_},slotProps:null!=y?y:s},S,{ref:t}))})),Wd=["onChange","maxRows","minRows","style","value"];function Gd(e){return parseInt(e,10)||0}const Yd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ud(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Kd=$.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=vn(e,Wd),{current:s}=$.useRef(null!=a),u=$.useRef(null),c=kl(t,u),d=$.useRef(null),f=$.useRef(null),p=$.useCallback((()=>{const t=u.current,n=f.current;if(!t||!n)return;const i=xl(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,l=Gd(i.paddingBottom)+Gd(i.paddingTop),s=Gd(i.borderBottomWidth)+Gd(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?l+s:0),overflowing:Math.abs(p-c)<=1}}),[r,o,e.placeholder]),h=wl((()=>{const e=u.current,t=p();if(!e||!t||Ud(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n})),m=$.useCallback((()=>{const e=u.current,t=p();if(!e||!t||Ud(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[p]),g=$.useRef(-1);hl((()=>{const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}(m),t=null==u?void 0:u.current;if(!t)return;const n=xl(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{r.observe(t)})))})),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}}),[p,m,h]),hl((()=>{m()}));return ai.jsxs($.Fragment,{children:[ai.jsx("textarea",gn({value:a,onChange:e=>{s||m(),n&&n(e)},ref:c,rows:o,style:i},l)),ai.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:gn({},Yd,i,{paddingTop:0,paddingBottom:0})})]})}));const Vd=$.createContext(void 0);function qd(e){return ai.jsx(La,gn({},e,{defaultTheme:Gs,themeId:mn}))}function Qd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Xd(e){return Ha("MuiInputBase",e)}const Jd=ja("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Zd=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ef=su("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ai(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>gn({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Jd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&gn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),tf=su("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=gn({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return gn({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Jd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Jd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),nf=ai.jsx(qd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),rf=$.forwardRef((function(e,t){var n;const r=fu({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:_=!1,name:S,onBlur:C,onChange:E,onClick:w,onFocus:k,onKeyDown:R,onKeyUp:T,placeholder:A,readOnly:N,renderSuffix:L,rows:O,slotProps:M={},slots:P={},startAdornment:I,type:D="text",value:z}=r,F=vn(r,Zd),B=null!=v.value?v.value:z,{current:H}=$.useRef(null!=B),j=$.useRef(),W=$.useCallback((e=>{}),[]),G=kl(j,b,v.ref,W),[Y,U]=$.useState(!1),K=$.useContext(Vd),V=function({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}({props:r,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});V.focused=K?K.focused:Y,$.useEffect((()=>{!K&&d&&Y&&(U(!1),C&&C())}),[K,d,Y,C]);const q=K&&K.onFilled,Q=K&&K.onEmpty,X=$.useCallback((e=>{!function(e,t=!1){return e&&(Qd(e.value)&&""!==e.value||t&&Qd(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():q&&q()}),[q,Q]);hl((()=>{H&&X({value:B})}),[B,X,H]);$.useEffect((()=>{X(j.current)}),[]);let J=g,Z=v;_&&"input"===J&&(Z=gn(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Z),J=Kd);$.useEffect((()=>{K&&K.setAdornedStart(Boolean(I))}),[K,I]);const ee=gn({},r,{color:V.color||"primary",disabled:V.disabled,endAdornment:p,error:V.error,focused:V.focused,formControl:K,fullWidth:h,hiddenLabel:V.hiddenLabel,multiline:_,size:V.size,startAdornment:I,type:D}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:h}=e;return Bl({root:["root",`color${Ai(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",f&&"medium"!==f&&`size${Ai(f)}`,c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Xd,t)})(ee),ne=P.root||s.Root||ef,re=M.root||u.root||{},oe=P.input||s.Input||tf;return Z=gn({},Z,null!=(n=M.input)?n:u.input),ai.jsxs($.Fragment,{children:[!f&&nf,ai.jsxs(ne,gn({},re,!Hl(ne)&&{ownerState:gn({},ee,re.ownerState)},{ref:t,onClick:e=>{j.current&&e.currentTarget===e.target&&j.current.focus(),w&&w(e)}},F,{className:za(te.root,re.className,l,N&&"MuiInputBase-readOnly"),children:[I,ai.jsx(Vd.Provider,{value:null,children:ai.jsx(oe,gn({ownerState:ee,"aria-invalid":V.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:V.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?j.current:{value:"x"})},name:S,placeholder:A,readOnly:N,required:V.required,rows:O,value:B,onKeyDown:R,onKeyUp:T,type:D},Z,!Hl(oe)&&{as:J,ownerState:gn({},ee,Z.ownerState)},{ref:G,className:za(te.input,Z.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),K&&K.onBlur?K.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||j.current;if(null==t)throw new Error(pn(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{V.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),K&&K.onFocus?K.onFocus(e):U(!0))}}))}),p,L?L(gn({},V,{startAdornment:I})):null]}))]})})),of=ja("MuiBox",["root"]),af=Ws(),lf=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ui("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Sa);return $.forwardRef((function(e,a){const l=Aa(n),s=Ma(e),{className:u,component:c="div"}=s,d=vn(s,Fa);return ai.jsx(i,gn({as:c,ref:a,className:za(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:mn,defaultTheme:af,defaultClassName:of.root,generateClassName:Da.generate});function sf(e){return Ha("MuiButton",e)}const uf=ja("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"]),cf=$.createContext({}),df=$.createContext(void 0),ff=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],pf=e=>gn({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),hf=su(ec,{shouldForwardProp:e=>lu(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ai(n.color)}`],t[`size${Ai(n.size)}`],t[`${n.variant}Size${Ai(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return gn({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":gn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Cs.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Cs.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Cs.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":gn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${uf.focusVisible}`]:gn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${uf.disabled}`]:gn({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Cs.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${uf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${uf.disabled}`]:{boxShadow:"none"}})),mf=su("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ai(n.size)}`]]}})((({ownerState:e})=>gn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},pf(e)))),gf=su("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ai(n.size)}`]]}})((({ownerState:e})=>gn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},pf(e)))),vf=$.forwardRef((function(e,t){const n=$.useContext(cf),r=$.useContext(df),o=fu({props:fl(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=vn(o,ff),x=gn({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),_=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return gn({},a,Bl({root:["root",i,`${i}${Ai(t)}`,`size${Ai(o)}`,`${i}Size${Ai(o)}`,`color${Ai(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ai(o)}`],endIcon:["icon","endIcon",`iconSize${Ai(o)}`]},sf,a))})(x),S=g&&ai.jsx(mf,{className:_.startIcon,ownerState:x,children:g}),C=f&&ai.jsx(gf,{className:_.endIcon,ownerState:x,children:f}),E=r||"";return ai.jsxs(hf,gn({ownerState:x,className:za(n.className,_.root,s,E),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:za(_.focusVisible,p),ref:t,type:v},y,{classes:_,children:[S,i,C]}))}));function bf(e){return e.substring(2).toLowerCase()}function yf(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=$.useRef(!1),l=$.useRef(null),s=$.useRef(!1),u=$.useRef(!1);$.useEffect((()=>(setTimeout((()=>{s.current=!0}),0),()=>{s.current=!1})),[]);const c=kl(Ul(t),l),d=wl((e=>{const t=u.current;u.current=!1;const r=yl(l.current);if(!s.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(a.current)return void(a.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),i||!n&&t||o(e)})),f=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},p={ref:c};return!1!==i&&(p[i]=f(i)),$.useEffect((()=>{if(!1!==i){const e=bf(i),t=yl(l.current),n=()=>{a.current=!0};return t.addEventListener(e,d),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,d),t.removeEventListener("touchmove",n)}}}),[d,i]),!1!==r&&(p[r]=f(r)),$.useEffect((()=>{if(!1!==r){const e=bf(r),t=yl(l.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}}),[d,r]),ai.jsx($.Fragment,{children:$.cloneElement(t,p)})}function xf(e){return Ha("MuiDivider",e)}const _f=ja("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Sf=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Cf=su("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>gn({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Cs.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>gn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>gn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>gn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>gn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Ef=su("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>gn({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),wf=$.forwardRef((function(e,t){const n=fu({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,p=vn(n,Sf),h=gn({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Bl({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},xf,r)})(h);return ai.jsx(Cf,gn({as:a,className:za(m.root,i),role:c,ref:t,ownerState:h},p,{children:o?ai.jsx(Ef,{className:m.wrapper,ownerState:h,children:o}):null}))}));wf.muiSkipListHighlight=!0;const kf=function(e={}){const{createStyledComponent:t=cs,useThemeProps:n=ds,componentName:r="MuiStack"}=e,o=t(ps),i=$.forwardRef((function(e,t){const i=Ma(n(e)),{component:a="div",direction:l="column",spacing:s=0,divider:u,children:c,className:d,useFlexGap:f=!1}=i,p=vn(i,ss),h={direction:l,spacing:s,useFlexGap:f},m=Bl({root:["root"]},(e=>Ha(r,e)),{});return ai.jsx(o,gn({as:a,ownerState:h,ref:t,className:za(m.root,d)},p,{children:u?fs(c,u):c}))}));return i}({createStyledComponent:su("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>fu({props:e,name:"MuiStack"})}),Rf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Tf(e){return`scale(${e}, ${e**2})`}const Af={entering:{opacity:1,transform:Tf(1)},entered:{opacity:1,transform:"none"}},Nf="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Lf=$.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:f,style:p,timeout:h="auto",TransitionComponent:m=Eu}=e,g=vn(e,Rf),v=Nl(),b=$.useRef(),y=Ys(),x=$.useRef(null),_=kl(x,Ul(o),t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=S(u),E=S(((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=Ou({style:p,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Nf?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),w=S(s),k=S(f),R=S((e=>{const{duration:t,delay:n,easing:r}=Ou({style:p,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Nf?o:.666*o,delay:Nf?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Tf(.75),c&&c(e)})),T=S(d);return ai.jsx(m,gn({appear:r,in:a,nodeRef:x,onEnter:E,onEntered:w,onEntering:C,onExit:R,onExited:T,onExiting:k,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>$.cloneElement(o,gn({style:gn({opacity:0,transform:Tf(.75),visibility:"exited"!==e||a?void 0:"hidden"},Af[e],p,o.props.style),ref:_},t))}))}));Lf.muiSupportAuto=!0;const Of=$.createContext({});function Mf(e){return Ha("MuiList",e)}ja("MuiList",["root","padding","dense","subheader"]);const Pf=["children","className","component","dense","disablePadding","subheader"],If=su("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>gn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Df=$.forwardRef((function(e,t){const n=fu({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=vn(n,Pf),c=$.useMemo((()=>({dense:a})),[a]),d=gn({},n,{component:i,dense:a,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Bl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Mf,t)})(d);return ai.jsx(Of.Provider,{value:c,children:ai.jsxs(If,gn({as:i,className:za(f.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function $f(e){return Ha("MuiListItemIcon",e)}const zf=ja("MuiListItemIcon",["root","alignItemsFlexStart"]),Ff=["className"],Bf=su("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>gn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Hf=$.forwardRef((function(e,t){const n=fu({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=vn(n,Ff),i=gn({},n,{alignItems:$.useContext(Of).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Bl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},$f,n)})(i);return ai.jsx(Bf,gn({className:za(a.root,r),ownerState:i,ref:t},o))})),jf=ja("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Wf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Gf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Yf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Uf(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Kf(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Uf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Vf=$.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=vn(e,Wf),f=$.useRef(null),p=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});hl((()=>{r&&f.current.focus()}),[r]),$.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(yl(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const h=kl(f,t);let m=-1;$.Children.forEach(i,((e,t)=>{$.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=$.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),$.cloneElement(e,t)}return e}));return ai.jsx(Df,gn({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=yl(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Kf(t,r,s,l,Gf);else if("ArrowUp"===n)e.preventDefault(),Kf(t,r,s,l,Yf);else if("Home"===n)e.preventDefault(),Kf(t,null,s,l,Gf);else if("End"===n)e.preventDefault(),Kf(t,null,s,l,Yf);else if(1===n.length){const o=p.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Uf(r,o);o.previousKeyMatched&&(s||Kf(t,r,!1,l,Gf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function qf(e){return Ha("MuiMenuItem",e)}const Qf=ja("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Xf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Jf=su(ec,{shouldForwardProp:e=>lu(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>gn({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cs.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Cs.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Cs.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cs.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_f.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_f.inset}`]:{marginLeft:52},[`& .${jf.root}`]:{marginTop:0,marginBottom:0},[`& .${jf.inset}`]:{paddingLeft:36},[`& .${zf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&gn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${zf.root} svg`]:{fontSize:"1.25rem"}})))),Zf=$.forwardRef((function(e,t){const n=fu({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,f=vn(n,Xf),p=$.useContext(Of),h=$.useMemo((()=>({dense:i||p.dense||!1,disableGutters:l})),[p.dense,i,l]),m=$.useRef(null);hl((()=>{r&&m.current&&m.current.focus()}),[r]);const g=gn({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return gn({},a,Bl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},qf,a))})(n),b=kl(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),ai.jsx(Of.Provider,{value:h,children:ai.jsx(Jf,gn({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:za(v.focusVisible,s),className:za(v.root,d)},f,{ownerState:g,classes:v}))})}));function ep(e){return Ha("MuiTooltip",e)}const tp=ja("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),np=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const rp=su(jd,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>gn({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${tp.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${tp.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${tp.arrow}`]:gn({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${tp.arrow}`]:gn({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),op=su("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ai(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return gn({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Cs.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},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${tp.popper}[data-popper-placement*="left"] &`]:gn({transformOrigin:"right center"},t.isRtl?gn({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):gn({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${tp.popper}[data-popper-placement*="right"] &`]:gn({transformOrigin:"left center"},t.isRtl?gn({marginRight:"14px"},t.touch&&{marginRight:"24px"}):gn({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${tp.popper}[data-popper-placement*="top"] &`]:gn({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${tp.popper}[data-popper-placement*="bottom"] &`]:gn({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),ip=su("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Cs.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ap=!1;const lp=new Al;let sp={x:0,y:0};function up(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const cp=$.forwardRef((function(e,t){var n,r,o,i,a,l,s,u,c,d,f,p,h,m,g,v,b,y,x;const _=fu({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:C,components:E={},componentsProps:w={},describeChild:k=!1,disableFocusListener:R=!1,disableHoverListener:T=!1,disableInteractive:A=!1,disableTouchListener:N=!1,enterDelay:L=100,enterNextDelay:O=0,enterTouchDelay:M=700,followCursor:P=!1,id:I,leaveDelay:D=0,leaveTouchDelay:z=1500,onClose:F,onOpen:B,open:H,placement:j="bottom",PopperComponent:W,PopperProps:G={},slotProps:Y={},slots:U={},title:K,TransitionComponent:V=Lf,TransitionProps:q}=_,Q=vn(_,np),X=$.isValidElement(C)?C:ai.jsx("span",{children:C}),J=Ys(),Z=(()=>{const e=$.useContext(Jl);return null!=e&&e})(),[ee,te]=$.useState(),[ne,re]=$.useState(null),oe=$.useRef(!1),ie=A||P,ae=Nl(),le=Nl(),se=Nl(),ue=Nl(),[ce,de]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=$.useRef(void 0!==e),[i,a]=$.useState(t);return[o?e:i,$.useCallback((e=>{o||a(e)}),[])]}({controlled:H,default:!1,name:"Tooltip",state:"open"});let fe=ce;const pe=El(I),he=$.useRef(),me=wl((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ue.clear()}));$.useEffect((()=>me),[me]);const ge=e=>{lp.clear(),ap=!0,de(!0),B&&!fe&&B(e)},ve=wl((e=>{lp.start(800+D,(()=>{ap=!1})),de(!1),F&&fe&&F(e),ae.start(J.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),L||ap&&O?le.start(ap?O:L,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start(D,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:_e,onFocus:Se,ref:Ce}=Fl(),[,Ee]=$.useState(!1),we=e=>{_e(e),!1===xe.current&&(Ee(!1),ye(e))},ke=e=>{ee||te(e.currentTarget),Se(e),!0===xe.current&&(Ee(!0),be(e))},Re=e=>{oe.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Te=e=>{Re(e),se.clear(),ae.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(M,(()=>{document.body.style.WebkitUserSelect=he.current,be(e)}))},Ae=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),me(),se.start(z,(()=>{ve(e)}))};$.useEffect((()=>{if(fe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,fe]);const Ne=kl(Ul(X),Ce,te,t);K||0===K||(fe=!1);const Le=$.useRef(),Oe={},Me="string"==typeof K;k?(Oe.title=fe||!Me||T?null:K,Oe["aria-describedby"]=fe?pe:null):(Oe["aria-label"]=Me?K:null,Oe["aria-labelledby"]=fe&&!Me?pe:null);const Pe=gn({},Oe,Q,X.props,{className:za(Q.className,X.props.className),onTouchStart:Re,ref:Ne},P?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),sp={x:e.clientX,y:e.clientY},Le.current&&Le.current.update()}}:{}),Ie={};N||(Pe.onTouchStart=Te,Pe.onTouchEnd=Ae),T||(Pe.onMouseOver=up(be,Pe.onMouseOver),Pe.onMouseLeave=up(ye,Pe.onMouseLeave),ie||(Ie.onMouseOver=be,Ie.onMouseLeave=ye)),R||(Pe.onFocus=up(ke,Pe.onFocus),Pe.onBlur=up(we,Pe.onBlur),ie||(Ie.onFocus=ke,Ie.onBlur=we));const De=$.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=G.popperOptions)&&e.modifiers&&(t=t.concat(G.popperOptions.modifiers)),gn({},G.popperOptions,{modifiers:t})}),[ne,G]),$e=gn({},_,{isRtl:Z,arrow:S,disableInteractive:ie,placement:j,PopperComponentProp:W,touch:oe.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Bl({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ai(i.split("-")[0])}`],arrow:["arrow"]},ep,t)})($e),Fe=null!=(n=null!=(r=U.popper)?r:E.Popper)?n:rp,Be=null!=(o=null!=(i=null!=(a=U.transition)?a:E.Transition)?i:V)?o:Lf,He=null!=(l=null!=(s=U.tooltip)?s:E.Tooltip)?l:op,je=null!=(u=null!=(c=U.arrow)?c:E.Arrow)?u:ip,We=jl(Fe,gn({},G,null!=(d=Y.popper)?d:w.popper,{className:za(ze.popper,null==G?void 0:G.className,null==(f=null!=(p=Y.popper)?p:w.popper)?void 0:f.className)}),$e),Ge=jl(Be,gn({},q,null!=(h=Y.transition)?h:w.transition),$e),Ye=jl(He,gn({},null!=(m=Y.tooltip)?m:w.tooltip,{className:za(ze.tooltip,null==(g=null!=(v=Y.tooltip)?v:w.tooltip)?void 0:g.className)}),$e),Ue=jl(je,gn({},null!=(b=Y.arrow)?b:w.arrow,{className:za(ze.arrow,null==(y=null!=(x=Y.arrow)?x:w.arrow)?void 0:y.className)}),$e);return ai.jsxs($.Fragment,{children:[$.cloneElement(X,Pe),ai.jsx(Fe,gn({as:null!=W?W:jd,placement:j,anchorEl:P?{getBoundingClientRect:()=>({top:sp.y,left:sp.x,right:sp.x,bottom:sp.y,width:0,height:0})}:ee,popperRef:Le,open:!!ee&&fe,id:pe,transition:!0},Ie,We,{popperOptions:De,children:({TransitionProps:e})=>ai.jsx(Be,gn({timeout:J.transitions.duration.shorter},e,Ge,{children:ai.jsxs(He,gn({},Ye,{children:[K,S?ai.jsx(je,gn({},Ue,{ref:re})):null]}))}))}))]})})),dp=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"M9 1v1H2v12h12V7h1v7a1 1 0 0 1-.883.993L14 15H2a1 1 0 0 1-.993-.883L1 14V2a1 1 0 0 1 .883-.993L2 1zm7-1v5h-1V1.706l-4.5 4.501-.707-.707L14.292 1H11V0z"})}),fp=$.forwardRef(dp),pp=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}),hp=$.forwardRef(pp);var mp,gp,vp,bp={};var yp=function(){if(vp)return gp;vp=1;const e=function(){if(mp)return bp;mp=1;var e=se(),t=ke(),n=le(),r=oe(),o=w();return bp.LinkPlugin=function({validateUrl:i}){let[a]=t.useLexicalComposerContext();return o.useEffect((()=>{if(!a.hasNodes([e.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return n.mergeRegister(a.registerCommand(e.TOGGLE_LINK_COMMAND,(t=>{if(null===t)return e.toggleLink(t),!0;if("string"==typeof t)return!(void 0!==i&&!i(t)||(e.toggleLink(t),0));let{url:n,target:r,rel:o,title:a}=t;return e.toggleLink(n,{rel:o,target:r,title:a}),!0}),r.COMMAND_PRIORITY_LOW),void 0!==i?a.registerCommand(r.PASTE_COMMAND,(t=>{let n=r.$getSelection();if(!r.$isRangeSelection(n)||n.isCollapsed()||!(t instanceof ClipboardEvent)||null==t.clipboardData)return!1;let o=t.clipboardData.getData("text");return!!i(o)&&!n.getNodes().some((e=>r.$isElementNode(e)))&&(a.dispatchCommand(e.TOGGLE_LINK_COMMAND,o),t.preventDefault(),!0)}),r.COMMAND_PRIORITY_LOW):()=>{})}),[a,i]),null},bp}();return gp=e}();const xp={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},_p=12,Sp=14,Cp=16,Ep=24,wp=3,kp=300,Rp=400,Tp=600,Ap=700,Np={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var Lp='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A';function Op(e){return ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ai.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var Mp=function({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return ai.jsx("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})};function Pp(e={}){return ai.jsx(Mp,{...e,children:ai.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[ai.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),ai.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function Ip(e={}){return ai.jsx(Mp,{fontSize:"medium",...e,children:ai.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ai.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),ai.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function Dp(e){return ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ai.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function $p(e={}){return ai.jsx(Mp,{...e,children:ai.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ai.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[ai.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),ai.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function zp(e={}){return ai.jsx(Mp,{fontSize:"medium",...e,children:ai.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ai.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:ai.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Fp({className:e}){return ai.jsx(Mp,{fontSize:"small",className:e,children:ai.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:ai.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ai.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:ai.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[ai.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),ai.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Bp(e={}){return ai.jsx(Mp,{...e,children:ai.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ai.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ai.jsx("rect",{stroke:xp.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const Hp={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:wp,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var jp=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:xp.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:xp.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:ai.jsx(Op,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${xp.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:xp.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${xp.MISC_FOCUS_BORDER}`,borderRadius:wp,backgroundColor:xp.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${xp.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:xp.WHITE,color:xp.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:wp},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${xp.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:xp.GREYSCALE_0_15,backgroundColor:xp.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:xp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xp.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:xp.GREEN_PALE},"&:active":{backgroundColor:xp.GREEN_DARK},"&.Mui-focusVisible":{borderColor:xp.GREEN_PALE,boxShadow:`0 0 0 3px ${bl(xp.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:xp.BLUE_PALE},"&:active":{backgroundColor:xp.BLUE_DARK},"&.Mui-focusVisible":{borderColor:xp.BLUE_PALE,boxShadow:`0 0 0 3px ${bl(xp.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:wp,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:xp.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${xp.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:xp.GREYSCALE_0_15,backgroundColor:xp.GREYSCALE_100_60,"&:active":{backgroundColor:xp.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:xp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xp.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:xp.PURPLE,"&.Mui-focusVisible":{borderColor:xp.PURPLE,boxShadow:`0 0 0 3px ${bl(xp.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:xp.GREEN,"&.Mui-focusVisible":{borderColor:xp.GREEN,boxShadow:`0 0 0 3px ${bl(xp.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:xp.BLUE,"&.Mui-focusVisible":{borderColor:xp.BLUE,boxShadow:`0 0 0 3px ${bl(xp.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:xp.ORANGE,"&.Mui-focusVisible":{borderColor:xp.ORANGE,boxShadow:`0 0 0 3px ${bl(xp.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:xp.RED,"&.Mui-focusVisible":{borderColor:xp.RED,boxShadow:`0 0 0 3px ${bl(xp.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:xp.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:xp.PURPLE_PALE},"&:active":{backgroundColor:xp.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:xp.PURPLE_PALE,boxShadow:`0 0 0 3px ${bl(xp.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:xp.GREEN_PALE},"&:active":{backgroundColor:xp.GREEN_DARK},"&.Mui-focusVisible":{borderColor:xp.GREEN_PALE,boxShadow:`0 0 0 3px ${bl(xp.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:xp.BLUE_PALE},"&:active":{backgroundColor:xp.BLUE_DARK},"&.Mui-focusVisible":{borderColor:xp.BLUE_PALE,boxShadow:`0 0 0 3px ${bl(xp.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:xp.ORANGE_PALE},"&:active":{backgroundColor:xp.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:xp.ORANGE_PALE,boxShadow:`0 0 0 3px ${bl(xp.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:xp.RED_PALE},"&:active":{backgroundColor:xp.RED_DARK},"&.Mui-focusVisible":{borderColor:xp.RED_PALE,boxShadow:`0 0 0 3px ${bl(xp.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:xp.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:xp.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:wp,boxShadow:`inset 0 0 0 2px ${xp.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:ai.jsx(Dp,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:_p,borderRadius:wp,color:xp.TEXT_PRIMARY,backgroundColor:xp.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:xp.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${xp.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:xp.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:xp.GREYSCALE_0_05,color:xp.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:xp.GREEN,borderColor:xp.GREEN},"&.MuiChip-outlinedInfo":{color:xp.BLUE,borderColor:xp.BLUE},"&.MuiChip-outlinedWarning":{color:xp.ORANGE,borderColor:xp.ORANGE},"&.MuiChip-outlinedError":{color:xp.RED,borderColor:xp.RED}},outlined:{border:`solid 1px ${xp.GREYSCALE_0_15}`,backgroundColor:xp.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:wp,boxShadow:"none",backgroundColor:xp.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:xp.GREEN,borderColor:xp.GREEN},outlinedSecondary:{color:xp.BLUE,borderColor:xp.BLUE},label:{fontFamily:Np.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:ai.jsx(Dp,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:ai.jsx(Op,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:wp},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:wp,fontSize:Sp,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:xp.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${xp.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:xp.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:xp.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:xp.GREYSCALE_0_05}}},popupIndicator:{borderRadius:wp,border:`solid 1px ${xp.GREYSCALE_0_15}`,color:xp.GREYSCALE_0_60,marginRight:0,width:Ep,height:Ep},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${xp.GREYSCALE_0_15}`},clearIndicator:{borderRadius:wp,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:xp.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Sp}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:_p,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:xp.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:xp.GREYSCALE_25,fontSize:_p,fontFamily:Np.FONT_FAMILY,fontWeight:Tp,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:xp.TEXT_PRIMARY},"&.Mui-error":{color:xp.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:xp.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Rp,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:xp.TEXT_SECONDARY,content:"'(required)'",fontWeight:Rp,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Sp,lineHeight:"16px",backgroundColor:xp.WHITE,borderRadius:wp,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xp.GREYSCALE_0_05}`,borderColor:xp.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xp.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${xp.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${xp.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xp.RED}`,boxShadow:`0px 0px 0px 1px ${xp.RED}, inset 0 2px 0 0 ${xp.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xp.GREYSCALE_0_10}`,borderColor:xp.GREYSCALE_0_10,backgroundColor:xp.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:xp.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:xp.GREYSCALE_0_15,borderRadius:wp,boxShadow:`inset 0 2px 0 0 ${xp.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>ai.jsx(Op,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:xp.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:xp.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:xp.GREYSCALE_0_03},"&:active":{backgroundColor:xp.GREYSCALE_0_10},"&:focus":{backgroundColor:xp.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${xp.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${xp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:xp.GREYSCALE_0_30,"&:hover":{backgroundColor:xp.GREYSCALE_0_0,borderColor:xp.GREYSCALE_0_15},"& ~svg":{color:xp.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${xp.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:wp}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:xp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${xp.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:xp.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Sp,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:_p,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:_p,fontWeight:Tp,color:xp.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Tp}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${xp.GREYSCALE_0_15}, 0px 0px 0px 1px ${xp.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:ai.jsx(zp,{}),checkedIcon:ai.jsx(Ip,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:xp.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${xp.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:xp.GREEN_PALE,boxShadow:`0 0 0 3px ${bl(xp.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:xp.BLUE_PALE,boxShadow:`0 0 0 3px ${bl(xp.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:xp.GREYSCALE_0_20}},"&.Mui-disabled":{fill:xp.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:ai.jsx(Bp,{}),checkedIcon:ai.jsx(Pp,{}),indeterminateIcon:ai.jsx($p,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:wp,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:xp.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:xp.GREYSCALE_0_55,color:xp.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:xp.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:xp.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:xp.GREYSCALE_0_55,"&:hover":{color:xp.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:xp.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:xp.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Sp,color:xp.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Tp},secondary:{fontSize:_p,color:xp.GREYSCALE_45,fontWeight:Rp,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Sp,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Sp,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:xp.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:_p,borderBottom:`solid 1px ${xp.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Sp,color:xp.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:xp.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:xp.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:xp.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:`url('${Lp}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:xp.RED}}},"&.Mui-focusVisible":{backgroundColor:xp.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:xp.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:xp.GREEN,height:"24px","&.Mui-disabled":{color:xp.GREYSCALE_0_15}},rail:{backgroundColor:xp.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${xp.GREYSCALE_0_05}`,borderRadius:wp,boxShadow:`inset 0px 0px 0px 1px ${xp.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${xp.GREYSCALE_0_05}`,borderRadius:wp},thumb:{height:"16px",width:"16px",borderRadius:wp,backgroundColor:xp.WHITE,boxShadow:`0px 1px 2px 0px ${xp.GREYSCALE_0_15}, 0px 0px 0px 1px ${xp.GREYSCALE_0_05}`,"&:hover":{borderRadius:wp,boxShadow:`0 2px 4px 0 ${xp.GREYSCALE_0_30}, 0 0 0 1px ${xp.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${xp.GREYSCALE_0_15}, 0 0 0 1px ${xp.GREYSCALE_0_06}, 0 0 0 2px ${xp.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${xp.GREYSCALE_0_15}, 0 0 0 1px ${xp.GREYSCALE_0_06}, 0 0 0 2px ${xp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:xp.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:xp.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:xp.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:xp.GREYSCALE_0_15},markLabel:{color:xp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:xp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:xp.WHITE,color:xp.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:xp.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:xp.GREEN_PALE,boxShadow:`0 0 0 3px ${bl(xp.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:xp.BLUE_PALE,boxShadow:`0 0 0 3px ${bl(xp.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:xp.GREYSCALE_0_15,borderRadius:wp},thumb:{height:"16px",width:"16px",borderRadius:wp,backgroundColor:xp.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Sp,fontWeight:Tp,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${xp.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${xp.MISC_FOCUS_BORDER}`,backgroundColor:xp.GREYSCALE_0_03,borderRadius:wp},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:xp.GREYSCALE_25,"&.Mui-selected":{color:xp.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Sp,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:wp,"&:hover":{backgroundColor:xp.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${xp.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${xp.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:wp,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:xp.GREYSCALE_0_05},"&:hover":{backgroundColor:xp.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${xp.GREYSCALE_85}`,borderRight:`1px solid ${xp.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Tp,backgroundColor:xp.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:xp.GREYSCALE_98,borderBottom:`1px solid ${xp.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${xp.GREYSCALE_85}`,borderTop:`1px solid ${xp.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:xp.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:xp.GREYSCALE_0_05,"&:hover":{backgroundColor:xp.GREYSCALE_0_03}},"&&:hover":{backgroundColor:xp.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>ai.jsx(Fp,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${xp.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Sp,borderRadius:wp,padding:"7px 16px",border:`1px solid ${xp.GREYSCALE_0_15}`,backgroundColor:xp.GREYSCALE_100_60,color:xp.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:xp.GREYSCALE_0_10,border:`1px solid ${xp.GREYSCALE_0_30}`},"&:hover":{backgroundColor:xp.GREYSCALE_0_03,border:`1px solid ${xp.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:xp.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${xp.MISC_FOCUS_BORDER}`,border:`1px solid ${xp.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:xp.GREYSCALE_25,backgroundColor:xp.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:xp.GREYSCALE_0_10,border:`1px solid ${xp.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:_p,height:24,width:24,padding:7},sizeLarge:{fontSize:Cp,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Sp,borderRadius:wp}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:xp.GREYSCALE_20},tooltip:{backgroundColor:xp.GREYSCALE_20,fontSize:_p,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Hp}:{}});var Wp=()=>({mode:"light",primary:{ultraLight:xp.GREEN_ULTRA_LIGHT,light:xp.GREEN_PALE,main:xp.GREEN,dark:xp.GREEN_DARK,extraDark:xp.GREEN_EXTRA_DARK,contrastText:xp.WHITE},secondary:{ultraLight:xp.BLUE_ULTRA_LIGHT,light:xp.BLUE_PALE,main:xp.BLUE,dark:xp.BLUE_DARK,extraDark:xp.BLUE_EXTRA_DARK,contrastText:xp.WHITE},error:{ultraLight:xp.RED_ULTRA_LIGHT,light:xp.RED_PALE,main:xp.RED,dark:xp.RED_DARK,extraDark:xp.RED_EXTRA_DARK,contrastText:xp.WHITE},warning:{ultraLight:xp.ORANGE_ULTRA_LIGHT,light:xp.ORANGE_PALE,main:xp.ORANGE,dark:xp.ORANGE_DARK,extraDark:xp.ORANGE_EXTRA_DARK,contrastText:xp.WHITE},success:{ultraLight:xp.GREEN_ULTRA_LIGHT,light:xp.GREEN_PALE,main:xp.GREEN,dark:xp.GREEN_DARK,extraDark:xp.GREEN_EXTRA_DARK,contrastText:xp.WHITE},info:{ultraLight:xp.BLUE_ULTRA_LIGHT,light:xp.BLUE_PALE,main:xp.BLUE,dark:xp.BLUE_DARK,extraDark:xp.BLUE_EXTRA_DARK,contrastText:xp.WHITE},text:{primary:xp.TEXT_PRIMARY,secondary:xp.TEXT_SECONDARY,disabled:xp.GREYSCALE_0_30},action:{hover:xp.GREYSCALE_0_03,hoverOpacity:.03,selected:xp.GREYSCALE_0_05,selectedOpacity:.05,focus:xp.MISC_FOCUS_BORDER},amethyst:{ultraLight:xp.WHITE,main:xp.PURPLE,light:xp.PURPLE_PALE,dark:xp.PURPLE_DARK,extraDark:xp.GREYSCALE_0_0,contrastText:xp.WHITE},background:{paper:xp.WHITE,default:xp.GREYSCALE_95},divider:xp.GREYSCALE_0_15});var Gp=e=>Wp();var Yp=(e,t=!1)=>{const n=((e,t)=>jp(t))(0,t);return{components:n,palette:Gp(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Sp,fontWeightLight:kp,fontWeightRegular:Rp,fontWeightMedium:Tp,fontWeightBold:Ap,htmlFontSize:Sp,fontFamily:Np.FONT_FAMILY,button:{fontWeight:Tp,fontSize:Sp,textTransform:"none"},body1:{fontSize:Cp,lineHeight:"24px"},body2:{fontSize:Sp,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ep,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Cp,fontWeight:Tp,lineHeight:"16px"},h6:{fontSize:Sp,fontWeight:Tp,lineHeight:"16px"},caption:{color:xp.TEXT_SECONDARY},subtitle1:{fontSize:Sp,color:xp.TEXT_SECONDARY},subtitle2:{fontSize:_p,color:xp.TEXT_SECONDARY}},shape:{borderRadius:wp}}};const Up=(e="light",t=!1)=>Ws(Yp(e,t));var Kp,Vp,qp={},Qp={exports:{}},Xp={exports:{}};function Jp(){return Kp||(Kp=1,function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Xp)),Xp.exports}var Zp={};function eh(e,t){return function(){return null}}function th(e){return e&&"object"===as(e)&&e.constructor===Object}function nh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?gn({},e):e;return th(e)&&th(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(th(t[o])&&o in e?r[o]=nh(e[o],t[o],n):r[o]=t[o])})),r}var rh=(ri.element,function(){return null});rh.isRequired=(ri.element.isRequired,function(){return null});var oh=function(){return null};var ih,ah,lh={exports:{}},sh={};var uh=(ah||(ah=1,lh.exports=function(){if(ih)return sh;ih=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,a=60110,l=60112,s=60113,u=60120,c=60115,d=60116,f=60121,p=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),o=v("react.profiler"),i=v("react.provider"),a=v("react.context"),l=v("react.forward_ref"),s=v("react.suspense"),u=v("react.suspense_list"),c=v("react.memo"),d=v("react.lazy"),f=v("react.block"),p=v("react.server.block"),h=v("react.fundamental"),m=v("react.debug_trace_mode"),g=v("react.legacy_hidden")}function b(f){if("object"==typeof f&&null!==f){var p=f.$$typeof;switch(p){case e:switch(f=f.type){case n:case o:case r:case s:case u:return f;default:switch(f=f&&f.$$typeof){case a:case l:case d:case c:case i:return f;default:return p}}case t:return p}}}var y=i,x=e,_=l,S=n,C=d,E=c,w=t,k=o,R=r,T=s;return sh.ContextConsumer=a,sh.ContextProvider=y,sh.Element=x,sh.ForwardRef=_,sh.Fragment=S,sh.Lazy=C,sh.Memo=E,sh.Portal=w,sh.Profiler=k,sh.StrictMode=R,sh.Suspense=T,sh.isAsyncMode=function(){return!1},sh.isConcurrentMode=function(){return!1},sh.isContextConsumer=function(e){return b(e)===a},sh.isContextProvider=function(e){return b(e)===i},sh.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},sh.isForwardRef=function(e){return b(e)===l},sh.isFragment=function(e){return b(e)===n},sh.isLazy=function(e){return b(e)===d},sh.isMemo=function(e){return b(e)===c},sh.isPortal=function(e){return b(e)===t},sh.isProfiler=function(e){return b(e)===o},sh.isStrictMode=function(e){return b(e)===r},sh.isSuspense=function(e){return b(e)===s},sh.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===m||e===r||e===s||e===u||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===l||e.$$typeof===h||e.$$typeof===f||e[0]===p)},sh.typeOf=b,sh}()),lh.exports),ch=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function dh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(ch);return t&&t[1]||""}(e)||t}function fh(e,t,n){var r=dh(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var ph,hh="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),mh=ri.oneOfType([ri.func,ri.object]),gh=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:eh,deepmerge:nh,elementAcceptingRef:rh,elementTypeAcceptingRef:oh,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return dh(e,"Component");if("object"===as(e))switch(e.$$typeof){case uh.ForwardRef:return fh(e,e.render,"ForwardRef");case uh.Memo:return fh(e,e.type,"memo");default:return}}},ponyfillGlobal:hh,refType:mh}),vh=g(gh);function bh(){if(ph)return Zp;ph=1,Object.defineProperty(Zp,"__esModule",{value:!0}),Zp.hexToRgb=n,Zp.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),n=t.values;return"#".concat(n.map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})).join(""))},Zp.hslToRgb=r,Zp.decomposeColor=o,Zp.recomposeColor=i,Zp.getContrastRatio=function(e,t){var n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Zp.getLuminance=a,Zp.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?s(e,t):u(e,t)},Zp.fade=function(e,t){return l(e,t)},Zp.alpha=l,Zp.darken=s,Zp.lighten=u;var e=vh;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function n(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function r(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,l=r*Math.min(a,1-a),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-l*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),i({type:u,values:c})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(n(t));var r=t.indexOf("("),i=t.substring(0,r);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var a=t.substring(r+1,t.length-1).split(",");return{type:i,values:a=a.map((function(e){return parseFloat(e)}))}}function i(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function a(e){var t="hsl"===(e=o(e)).type?o(r(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,n){return e=o(e),n=t(n),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=n,i(e)}function s(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]*=1-n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-n;return i(e)}function u(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;return i(e)}return Zp}var yh,xh,_h,Sh={},Ch={exports:{}},Eh={exports:{}},wh={exports:{}};function kh(){return yh||(yh=1,function(e){var t=Jp().default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(wh)),wh.exports}function Rh(){return xh||(xh=1,function(e){var t=Jp().default,n=kh();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Eh)),Eh.exports}function Th(){return _h||(_h=1,function(e){var t=Rh();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Ch)),Ch.exports}var Ah,Nh={exports:{}};function Lh(){return Ah||(Ah=1,function(e){var t=Js();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Nh)),Nh.exports}var Oh,Mh={};function Ph(){if(Oh)return Mh;Oh=1;var e=bs();Object.defineProperty(Mh,"__esModule",{value:!0}),Mh.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,l=void 0===a?"px":a,s=e.step,u=void 0===s?5:s,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function f(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(l,")")}return(0,t.default)({keys:r,values:i,up:d,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(l,")")},between:f,only:function(e){return f(e,e)},width:function(e){return i[e]}},c)},Mh.keys=void 0;var t=e(qs()),n=e(Lh()),r=["xs","sm","md","lg","xl"];return Mh.keys=r,Mh}var Ih,Dh={};function $h(){if(Ih)return Dh;Ih=1;var e=bs();Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(Th()),n=e(qs());return Dh}var zh,Fh={},Bh={};function Hh(){if(zh)return Bh;zh=1,Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.default=void 0;var e={black:"#000",white:"#fff"};return Bh.default=e,Bh}var jh,Wh={};function Gh(){if(jh)return Wh;jh=1,Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return Wh.default=e,Wh}var Yh,Uh={};function Kh(){if(Yh)return Uh;Yh=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.default=void 0;var e={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"};return Uh.default=e,Uh}var Vh,qh={};function Qh(){if(Vh)return qh;Vh=1,Object.defineProperty(qh,"__esModule",{value:!0}),qh.default=void 0;var e={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"};return qh.default=e,qh}var Xh,Jh={};function Zh(){if(Xh)return Jh;Xh=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.default=void 0;var e={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"};return Jh.default=e,Jh}var em,tm={};function nm(){if(em)return tm;em=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.default=void 0;var e={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"};return tm.default=e,tm}var rm,om={};function im(){if(rm)return om;rm=1,Object.defineProperty(om,"__esModule",{value:!0}),om.default=void 0;var e={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"};return om.default=e,om}var am,lm,sm={};function um(){if(am)return sm;am=1,Object.defineProperty(sm,"__esModule",{value:!0}),sm.default=void 0;var e={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"};return sm.default=e,sm}function cm(){if(lm)return Fh;lm=1;var e=bs();Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,b=e.secondary,y=void 0===b?{light:l.default.A200,main:l.default.A400,dark:l.default.A700}:b,x=e.error,_=void 0===x?{light:s.default[300],main:s.default[500],dark:s.default[700]}:x,S=e.warning,C=void 0===S?{light:u.default[300],main:u.default[500],dark:u.default[700]}:S,E=e.info,w=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,k=e.success,R=void 0===k?{light:d.default[300],main:d.default[500],dark:d.default[700]}:k,T=e.type,A=void 0===T?"light":T,N=e.contrastThreshold,L=void 0===N?3:N,O=e.tonalOffset,M=void 0===O?.2:O,P=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function I(e){return(0,f.getContrastRatio)(e,h.text.primary)>=L?h.text.primary:p.text.primary}var D=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,M),m(e,"dark",i,M),e.contrastText||(e.contrastText=I(e.main)),e},$={dark:h,light:p};return(0,r.deepmerge)((0,t.default)({common:o.default,type:A,primary:D(v),secondary:D(y,"A400","A200","A700"),error:D(_),warning:D(C),info:D(w),success:D(R),grey:i.default,contrastThreshold:L,getContrastText:I,augmentColor:D,tonalOffset:M},$[A]),P)},Fh.dark=Fh.light=void 0;var t=e(qs()),n=e(Lh()),r=vh,o=e(Hh()),i=e(Gh()),a=e(Kh()),l=e(Qh()),s=e(Zh()),u=e(nm()),c=e(im()),d=e(um()),f=bh(),p={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},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}};Fh.light=p;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.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}};function m(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,f.lighten)(e.main,o):"dark"===t&&(e.dark=(0,f.darken)(e.main,i)))}return Fh.dark=h,Fh}var dm,fm={};function pm(){if(dm)return fm;dm=1;var e=bs();Object.defineProperty(fm,"__esModule",{value:!0}),fm.default=function(e,s){var u="function"==typeof s?s(e):s,c=u.fontFamily,d=void 0===c?l:c,f=u.fontSize,p=void 0===f?14:f,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,v=void 0===g?400:g,b=u.fontWeightMedium,y=void 0===b?500:b,x=u.fontWeightBold,_=void 0===x?700:x,S=u.htmlFontSize,C=void 0===S?16:S,E=u.allVariants,w=u.pxToRem,k=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),R=p/14,T=w||function(e){return"".concat(e/C*R,"rem")},A=function(e,n,r,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:T(n),lineHeight:r},d===l?{letterSpacing:"".concat(o(i/n),"em")}:{},a,E)},N={h1:A(m,96,1.167,-1.5),h2:A(m,60,1.2,-.5),h3:A(v,48,1.167,0),h4:A(v,34,1.235,.25),h5:A(v,24,1.334,0),h6:A(y,20,1.6,.15),subtitle1:A(v,16,1.75,.15),subtitle2:A(y,14,1.57,.1),body1:A(v,16,1.5,.15),body2:A(v,14,1.43,.15),button:A(y,14,1.75,.4,a),caption:A(v,12,1.66,.4),overline:A(v,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:T,round:i,fontFamily:d,fontSize:p,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:y,fontWeightBold:_},N),k,{clone:!1})};var t=e(qs()),n=e(Lh()),r=vh;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},l='"Roboto", "Helvetica", "Arial", sans-serif';return fm}var hm,mm={};function gm(){if(hm)return mm;hm=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return mm.default=t,mm}var vm,bm={};function ym(){if(vm)return bm;vm=1,Object.defineProperty(bm,"__esModule",{value:!0}),bm.default=void 0;var e={borderRadius:4};return bm.default=e,bm}var xm={};function _m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sm(e,t){if(e){if("string"==typeof e)return _m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_m(e,t):void 0}}function Cm(e){return function(e){if(Array.isArray(e))return _m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sm(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Em(e,t){return t?nh(e,t,{clone:!1}):e}var wm={xs:0,sm:600,md:960,lg:1280,xl:1920},km={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(wm[e],"px)")}};function Rm(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||km;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===as(t)){var o=e.theme.breakpoints||km;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}function Tm(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Am(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=Tm(e.theme,o)||{};return Rm(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Tm(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=ls(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)}))};return a.propTypes={},a.filterProps=[t],a}function Nm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?Em(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r}function Lm(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Om=Am({prop:"border",themeKey:"borders",transform:Lm}),Mm=Am({prop:"borderTop",themeKey:"borders",transform:Lm}),Pm=Am({prop:"borderRight",themeKey:"borders",transform:Lm}),Im=Am({prop:"borderBottom",themeKey:"borders",transform:Lm}),Dm=Am({prop:"borderLeft",themeKey:"borders",transform:Lm}),$m=Am({prop:"borderColor",themeKey:"palette"}),zm=Am({prop:"borderRadius",themeKey:"shape"}),Fm=Nm(Om,Mm,Pm,Im,Dm,$m,zm);function Bm(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function Hm(e){var t=function(t){var n=e(t);return t.css?gn({},Em(n,e(gn({theme:t.theme},t.css))),Bm(t.css,[e.filterProps])):t.sx?gn({},Em(n,e(gn({theme:t.theme},t.sx))),Bm(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(Cm(e.filterProps)),t}var jm=Nm(Am({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Am({prop:"display"}),Am({prop:"overflow"}),Am({prop:"textOverflow"}),Am({prop:"visibility"}),Am({prop:"whiteSpace"})),Wm=Am({prop:"flexBasis"}),Gm=Am({prop:"flexDirection"}),Ym=Am({prop:"flexWrap"}),Um=Am({prop:"justifyContent"}),Km=Am({prop:"alignItems"}),Vm=Am({prop:"alignContent"}),qm=Am({prop:"order"}),Qm=Am({prop:"flex"}),Xm=Am({prop:"flexGrow"}),Jm=Am({prop:"flexShrink"}),Zm=Am({prop:"alignSelf"}),eg=Am({prop:"justifyItems"}),tg=Am({prop:"justifySelf"}),ng=Nm(Wm,Gm,Ym,Um,Km,Vm,qm,Qm,Xm,Jm,Zm,eg,tg),rg=Am({prop:"gridGap"}),og=Am({prop:"gridColumnGap"}),ig=Am({prop:"gridRowGap"}),ag=Am({prop:"gridColumn"}),lg=Am({prop:"gridRow"}),sg=Am({prop:"gridAutoFlow"}),ug=Am({prop:"gridAutoColumns"}),cg=Am({prop:"gridAutoRows"}),dg=Am({prop:"gridTemplateColumns"}),fg=Am({prop:"gridTemplateRows"}),pg=Am({prop:"gridTemplateAreas"}),hg=Am({prop:"gridArea"}),mg=Nm(rg,og,ig,ag,lg,sg,ug,cg,dg,fg,pg,hg),gg=Am({prop:"color",themeKey:"palette"}),vg=Am({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),bg=Nm(gg,vg),yg=Am({prop:"position"}),xg=Am({prop:"zIndex",themeKey:"zIndex"}),_g=Am({prop:"top"}),Sg=Am({prop:"right"}),Cg=Am({prop:"bottom"}),Eg=Am({prop:"left"}),wg=Nm(yg,xg,_g,Sg,Cg,Eg),kg=Am({prop:"boxShadow",themeKey:"shadows"});function Rg(e){return e<=1?"".concat(100*e,"%"):e}var Tg=Am({prop:"width",transform:Rg}),Ag=Am({prop:"maxWidth",transform:Rg}),Ng=Am({prop:"minWidth",transform:Rg}),Lg=Am({prop:"height",transform:Rg}),Og=Am({prop:"maxHeight",transform:Rg}),Mg=Am({prop:"minHeight",transform:Rg}),Pg=Am({prop:"size",cssProperty:"width",transform:Rg}),Ig=Am({prop:"size",cssProperty:"height",transform:Rg}),Dg=Am({prop:"boxSizing"}),$g=Nm(Tg,Ag,Ng,Lg,Og,Mg,Dg);function zg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||Sm(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Fg={m:"margin",p:"padding"},Bg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Hg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jg=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!Hg[e])return[e];e=Hg[e]}var t=zg(e.split(""),2),n=t[0],r=t[1],o=Fg[n],i=Bg[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Wg=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Gg(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Yg(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function Ug(e){var t=Gg(e.theme);return Object.keys(e).map((function(n){if(-1===Wg.indexOf(n))return null;var r=Yg(jg(n),t),o=e[n];return Rm(e,o,r)})).reduce(Em,{})}Ug.propTypes={},Ug.filterProps=Wg;var Kg,Vg=Am({prop:"fontFamily",themeKey:"typography"}),qg=Am({prop:"fontSize",themeKey:"typography"}),Qg=Am({prop:"fontStyle",themeKey:"typography"}),Xg=Am({prop:"fontWeight",themeKey:"typography"}),Jg=Am({prop:"letterSpacing"}),Zg=Am({prop:"lineHeight"}),ev=Am({prop:"textAlign"}),tv=Nm(Vg,qg,Qg,Xg,Jg,Zg,ev),nv=Object.freeze({__proto__:null,alignContent:Vm,alignItems:Km,alignSelf:Zm,bgcolor:vg,border:Om,borderBottom:Im,borderColor:$m,borderLeft:Dm,borderRadius:zm,borderRight:Pm,borderTop:Mm,borders:Fm,bottom:Cg,boxSizing:Dg,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||km,o=r.keys.reduce((function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(gn({theme:t.theme},t[o]))),n}),null);return Em(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Cm(e.filterProps)),t},color:gg,compose:Nm,createUnarySpacing:Gg,css:function(e){return Hm(e)},display:jm,flex:Qm,flexBasis:Wm,flexDirection:Gm,flexGrow:Xm,flexShrink:Jm,flexWrap:Ym,flexbox:ng,fontFamily:Vg,fontSize:qg,fontStyle:Qg,fontWeight:Xg,grid:mg,gridArea:hg,gridAutoColumns:ug,gridAutoFlow:sg,gridAutoRows:cg,gridColumn:ag,gridColumnGap:og,gridGap:rg,gridRow:lg,gridRowGap:ig,gridTemplateAreas:pg,gridTemplateColumns:dg,gridTemplateRows:fg,height:Lg,justifyContent:Um,justifyItems:eg,justifySelf:tg,left:Eg,letterSpacing:Jg,lineHeight:Zg,maxHeight:Og,maxWidth:Ag,minHeight:Mg,minWidth:Ng,order:qm,palette:bg,position:yg,positions:wg,right:Sg,shadows:kg,sizeHeight:Ig,sizeWidth:Pg,sizing:$g,spacing:Ug,style:Am,styleFunctionSx:Hm,textAlign:ev,top:_g,typography:tv,width:Tg,zIndex:xg}),rv=g(nv);function ov(){if(Kg)return xm;Kg=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=rv;return xm}var iv,av={};function lv(){if(iv)return av;iv=1;var e=bs();Object.defineProperty(av,"__esModule",{value:!0}),av.default=av.duration=av.easing=void 0;var t=e(Lh()),n={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)"};av.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}av.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,l=void 0===a?r.standard:a,s=i.easing,u=void 0===s?n.easeInOut:s,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof l?l:o(l)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return av.default=i,av}var sv,uv,cv={};function dv(){if(sv)return cv;sv=1,Object.defineProperty(cv,"__esModule",{value:!0}),cv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return cv.default=e,cv}function fv(){if(uv)return Sh;uv=1;var e=bs();Object.defineProperty(Sh,"__esModule",{value:!0}),Sh.createMuiTheme=function(){return f.apply(void 0,arguments)},Sh.default=void 0,e(Th());var t=e(Lh()),n=vh,r=e(Ph()),o=e($h()),i=e(cm()),a=e(pm()),l=e(gm()),s=e(ym()),u=e(ov()),c=e(lv()),d=e(dv());function f(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=e.breakpoints,p=void 0===f?{}:f,h=e.mixins,m=void 0===h?{}:h,g=e.palette,v=void 0===g?{}:g,b=e.spacing,y=e.typography,x=void 0===y?{}:y,_=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),S=(0,i.default)(v),C=(0,r.default)(p),E=(0,u.default)(b),w=(0,n.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:S,props:{},shadows:l.default,typography:(0,a.default)(S,x),spacing:E,shape:s.default,transitions:c.default,zIndex:d.default},_),k=arguments.length,R=new Array(k>1?k-1:0),T=1;T<k;T++)R[T-1]=arguments[T];return w=R.reduce((function(e,t){return(0,n.deepmerge)(e,t)}),w)}var p=f;return Sh.default=p,Sh}var pv,hv={};function mv(){if(pv)return hv;pv=1;var e=bs();Object.defineProperty(hv,"__esModule",{value:!0}),hv.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=vh,n=e(fv());return hv}var gv={},vv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",bv=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function yv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,l=""===a?"":"".concat(a,"-"),s=0,u=function(){return s+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==bv.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(l).concat(r,"-").concat(e.key);return t.options.theme[vv]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(l).concat(o).concat(u())}}function xv(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var _v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sv="object"===("undefined"==typeof window?"undefined":_v(window))&&"object"===("undefined"==typeof document?"undefined":_v(document))&&9===document.nodeType;function Cv(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ls(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ev={}.constructor;function wv(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(wv);if(e.constructor!==Ev)return e;var t={};for(var n in e)t[n]=wv(e[n]);return t}function kv(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=wv(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var Rv=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Tv=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Rv(e[n]," ");else t=Rv(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Av(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Nv(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Lv(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var l=Av(n),s=l.linebreak,u=l.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var f in d){var p=d[f];null!=p&&(r&&(r+=s),r+=Nv(f+":"+u+Tv(p)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=s),r+=Nv(h+":"+u+Tv(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=s),r+=Nv(g+":"+u+Tv(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+s+r+s),Nv(""+e+u+"{"+r,--i)+Nv("}",i)):r}var Ov=/([[\].#*$><+~=|^:(),"'`\s])/g,Mv="undefined"!=typeof CSS&&CSS.escape,Pv=function(e){return Mv?Mv(e):e.replace(Ov,"\\$1")},Iv=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var l=i&&a;if(l?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return l?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var s=this.options.sheet;return s&&s.attached,this},e}(),Dv=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,l=r.sheet,s=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=s(ku(ku(o)),l),o.selectorText="."+Pv(o.id)),o}hu(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Tv(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?gn({},e,{allowEmpty:!0}):e;return Lv(this.selectorText,this.style,n)},Cv(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Iv),$v={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Dv(e,t,n)}},zv={indent:1,children:!0},Fv=/@([\w-]+)/,Bv=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Fv);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new cb(gn({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=zv);var t=Av(e).linebreak;if(null==e.indent&&(e.indent=zv.indent),null==e.children&&(e.children=zv.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Hv=/@container|@media|@supports\s+/,jv={onCreateRule:function(e,t,n){return Hv.test(e)?new Bv(e,t,n):null}},Wv={indent:1,children:!0},Gv=/@keyframes\s+([\w-]+)/,Yv=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Gv);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var l in this.id=!1===o?this.name:Pv(a(this,i)),this.rules=new cb(gn({},n,{parent:this})),t)this.rules.add(l,t[l],gn({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Wv);var t=Av(e).linebreak;if(null==e.indent&&(e.indent=Wv.indent),null==e.children&&(e.children=Wv.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Uv=/@keyframes\s+/,Kv=/\$([\w-]+)/g,Vv=function(e,t){return"string"==typeof e?e.replace(Kv,(function(e,n){return n in t?t[n]:e})):e},qv=function(e,t,n){var r=e[t],o=Vv(r,n);o!==r&&(e[t]=o)},Qv={onCreateRule:function(e,t,n){return"string"==typeof e&&Uv.test(e)?new Yv(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&qv(e,"animation-name",n.keyframes),"animation"in e&&qv(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return Vv(e,r.keyframes);default:return e}}},Xv=function(e){function t(){return e.apply(this,arguments)||this}return hu(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?gn({},e,{allowEmpty:!0}):e;return Lv(this.key,this.style,n)},t}(Iv),Jv={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Xv(e,t,n):null}},Zv=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Av(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Lv(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Lv(this.at,this.style,e)},e}(),eb=/@font-face/,tb={onCreateRule:function(e,t,n){return eb.test(e)?new Zv(e,t,n):null}},nb=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Lv(this.key,this.style,e)},e}(),rb={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new nb(e,t,n):null}},ob=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ib={"@charset":!0,"@import":!0,"@namespace":!0},ab={onCreateRule:function(e,t,n){return e in ib?new ob(e,t,n):null}},lb=[$v,jv,Qv,Jv,tb,rb,ab],sb={process:!0},ub={force:!0,process:!0},cb=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,l=r.Renderer,s=r.generateId,u=r.scoped,c=gn({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:l,generateId:s,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Pv(this.classes[d]));var f=kv(d,t,c);if(!f)return null;this.register(f);var p=void 0===c.index?this.index.length:c.index;return this.index.splice(p,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=gn({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Dv?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Yv&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Dv?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Yv&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=sb);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var l=t.style;if(i.onUpdate(n,t,a,r),r.process&&l&&l!==t.style){for(var s in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[s];u!==l[s]&&t.prop(s,u,ub)}for(var c in l){var d=t.style[c],f=l[c];null==d&&d!==f&&t.prop(c,null,ub)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=Av(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),db=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=gn({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new cb(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),fb=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),pb=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=vn(t,["attached"]),o=Av(r).linebreak,i="",a=0;a<this.registry.length;a++){var l=this.registry[a];null!=n&&l.attached!==n||(i&&(i+=o),i+=l.toString(r))}return i},Cv(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),hb=new pb,mb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),gb="2f1acc6c3a606b082e5eef5e54414ffb";null==mb[gb]&&(mb[gb]=0);var vb=mb[gb]++,bb=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+vb+o+t:i+n.key+"-"+vb+(o?"-"+o:"")+"-"+t}},yb=function(e){var t;return function(){return t||(t=e()),t}},xb=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},_b=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Tv(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Sb=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Cb=function(e,t){return e.selectorText=t,e.selectorText===t},Eb=yb((function(){return document.querySelector("head")}));function wb(e){var t=hb.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=Eb(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var kb=yb((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Rb=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Tb=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ab=function(){function e(e){this.getPropertyValue=xb,this.setProperty=_b,this.removeProperty=Sb,this.setSelector=Cb,this.hasInsertedRules=!1,this.cssRules=[],e&&hb.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=kb();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=wb(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Eb().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=Tb(n,t);if(!1===(o=Rb(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var l=Tb(n,t),s=Rb(n,a,l);return!1!==s&&(this.hasInsertedRules=!0,this.refCssRule(e,l,s),s)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof db&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Nb=0,Lb=function(){function e(e){this.id=Nb++,this.version="10.10.0",this.plugins=new fb,this.options={id:{minify:!1},createGenerateId:bb,Renderer:Sv?Ab:null,plugins:[]},this.generateId=bb({minify:!1});for(var t=0;t<lb.length;t++)this.plugins.use(lb[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=gn({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===hb.index?0:hb.index+1);var r=new db(e,gn({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),hb.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=gn({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=kv(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Ob=function(e){return new Lb(e)},Mb="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Pb(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Pb(r);i&&(t||(t={}),t[n]=i)}}return t}
96
+ `),bb.rippleVisible,Eb,550,(({theme:e})=>e.transitions.easing.easeInOut),bb.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),bb.child,bb.childLeaving,Tb,550,(({theme:e})=>e.transitions.easing.easeInOut),bb.childPulsate,Ab,(({theme:e})=>e.transitions.easing.easeInOut)),Nb=D.forwardRef((function(e,t){const n=Vy({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=af(n,xb),[s,l]=D.useState([]),u=D.useRef(0),c=D.useRef(null);D.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=D.useRef(!1),f=fv(),p=D.useRef(null),h=D.useRef(null),m=D.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,xc.jsx(Lb,{classes:{ripple:xg(o.ripple,bb.ripple),rippleVisible:xg(o.rippleVisible,bb.rippleVisible),ripplePulsate:xg(o.ripplePulsate,bb.ripplePulsate),child:xg(o.child,bb.child),childLeaving:xg(o.childLeaving,bb.childLeaving),childPulsate:xg(o.childPulsate,bb.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=D.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,f]),v=D.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=D.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void f.start(0,(()=>{y(e,t)}));p.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[f]);return D.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:y})),[v,g,y]),xc.jsx(Rb,of({className:xg(bb.root,o.root,i),ref:h},a,{children:xc.jsx(pb,{component:null,exit:!0,children:s})}))}));function Mb(e){return kg("MuiButtonBase",e)}const Ob=Sg("MuiButtonBase",["root","disabled","focusVisible"]),Pb=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],zb=Uy("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${Ob.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ib=D.forwardRef((function(e,t){const n=Vy({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:p,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:_,onMouseLeave:w,onMouseUp:k,onTouchEnd:S,onTouchMove:C,onTouchStart:E,tabIndex:T=0,TouchRippleProps:A,touchRippleRef:R,type:L}=n,N=af(n,Pb),M=D.useRef(null),O=D.useRef(null),P=lv(O,R),{isFocusVisibleRef:z,onFocus:I,onBlur:j,ref:F}=_v(),[B,$]=D.useState(!1);l&&B&&$(!1),D.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),M.current.focus()}})),[]);const[H,W]=D.useState(!1);D.useEffect((()=>{W(!0)}),[]);const U=H&&!u&&!l;function K(e,t,n=c){return sv((r=>{t&&t(r);return!n&&O.current&&O.current[e](r),!0}))}D.useEffect((()=>{B&&d&&!u&&H&&O.current.pulsate()}),[u,d,B,H]);const G=K("start",_),Y=K("stop",m),V=K("stop",g),q=K("stop",k),J=K("stop",(e=>{B&&e.preventDefault(),w&&w(e)})),Q=K("start",E),X=K("stop",S),Z=K("stop",C),ee=K("stop",(e=>{j(e),!1===z.current&&$(!1),p&&p(e)}),!1),te=sv((e=>{M.current||(M.current=e.currentTarget),I(e),!0===z.current&&($(!0),y&&y(e)),v&&v(e)})),ne=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=D.useRef(!1),oe=sv((e=>{d&&!re.current&&B&&O.current&&" "===e.key&&(re.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=sv((e=>{d&&" "===e.key&&O.current&&B&&!e.defaultPrevented&&(re.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(N.href||N.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===L?"button":L,se.disabled=l):(N.href||N.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=lv(t,F,M),ue=of({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:T,focusVisible:B}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=wv({root:["root",t&&"disabled",n&&"focusVisible"]},Mb,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return xc.jsxs(zb,of({as:ae,className:xg(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:J,onMouseUp:q,onDragLeave:V,onTouchEnd:X,onTouchMove:Z,onTouchStart:Q,ref:le,tabIndex:l?-1:T,type:L},se,N,{children:[i,U?xc.jsx(Nb,of({ref:P,center:o},A)):null]}))}));function Db(e){return kg("MuiIconButton",e)}const jb=Sg("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Fb=["edge","children","className","color","disabled","disableFocusRipple","size"],Bb=Uy(Ib,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${dm(n.color)}`],n.edge&&t[`edge${dm(n.edge)}`],t[`size${dm(n.size)}`]]}})((({theme:e,ownerState:t})=>of({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:iy.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return of({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&of({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":of({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:iy.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${jb.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),$b=D.forwardRef((function(e,t){const n=Vy({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=n,c=af(n,Fb),d=of({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:u}),f=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return wv({root:["root",n&&"disabled","default"!==r&&`color${dm(r)}`,o&&`edge${dm(o)}`,`size${dm(i)}`]},Db,t)})(d);return xc.jsx(Bb,of({className:xg(f.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function Hb(e){return kg("MuiTypography",e)}Sg("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Wb=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ub=Uy("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${dm(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>of({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Kb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Gb={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Yb=D.forwardRef((function(e,t){const n=Vy({props:e,name:"MuiTypography"}),r=(e=>Gb[e]||e)(n.color),o=mg(of({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=Kb}=o,p=af(o,Wb),h=of({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:f}),m=s||(c?"p":f[d]||Kb[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return wv({root:["root",i,"inherit"!==e.align&&`align${dm(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Hb,a)})(h);return xc.jsx(Ub,of({as:m,ref:t,ownerState:h,className:xg(g.root,a)},p))}));var Vb,qb={};function Jb(){if(Vb)return qb;Vb=1,Object.defineProperty(qb,"__esModule",{value:!0}),qb.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(C()),t=Iy;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return qb.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},qb}var Qb=m(Jb()),Xb="top",Zb="bottom",ex="right",tx="left",nx="auto",rx=[Xb,Zb,ex,tx],ox="start",ix="end",ax="viewport",sx="popper",lx=rx.reduce((function(e,t){return e.concat([t+"-"+ox,t+"-"+ix])}),[]),ux=[].concat(rx,[nx]).reduce((function(e,t){return e.concat([t,t+"-"+ox,t+"-"+ix])}),[]),cx=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function dx(e){return e?(e.nodeName||"").toLowerCase():null}function fx(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function px(e){return e instanceof fx(e).Element||e instanceof Element}function hx(e){return e instanceof fx(e).HTMLElement||e instanceof HTMLElement}function mx(e){return"undefined"!=typeof ShadowRoot&&(e instanceof fx(e).ShadowRoot||e instanceof ShadowRoot)}var gx={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];hx(o)&&dx(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(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],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});hx(r)&&dx(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function vx(e){return e.split("-")[0]}var yx=Math.max,bx=Math.min,xx=Math.round;function _x(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function wx(){return!/^((?!chrome|android).)*safari/i.test(_x())}function kx(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&hx(e)&&(o=e.offsetWidth>0&&xx(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&xx(r.height)/e.offsetHeight||1);var a=(px(e)?fx(e):window).visualViewport,s=!wx()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function Sx(e){var t=kx(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 Cx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ex(e){return fx(e).getComputedStyle(e)}function Tx(e){return["table","td","th"].indexOf(dx(e))>=0}function Ax(e){return((px(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rx(e){return"html"===dx(e)?e:e.assignedSlot||e.parentNode||(mx(e)?e.host:null)||Ax(e)}function Lx(e){return hx(e)&&"fixed"!==Ex(e).position?e.offsetParent:null}function Nx(e){for(var t=fx(e),n=Lx(e);n&&Tx(n)&&"static"===Ex(n).position;)n=Lx(n);return n&&("html"===dx(n)||"body"===dx(n)&&"static"===Ex(n).position)?t:n||function(e){var t=/firefox/i.test(_x());if(/Trident/i.test(_x())&&hx(e)&&"fixed"===Ex(e).position)return null;var n=Rx(e);for(mx(n)&&(n=n.host);hx(n)&&["html","body"].indexOf(dx(n))<0;){var r=Ex(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Mx(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ox(e,t,n){return yx(e,bx(t,n))}function Px(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function zx(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Ix={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=vx(n.placement),l=Mx(s),u=[tx,ex].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return Px("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:zx(e,rx))}(o.padding,n),d=Sx(i),f="y"===l?Xb:tx,p="y"===l?Zb:ex,h=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],g=Nx(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=c[f],x=v-d[u]-c[p],_=v/2-d[u]/2+y,w=Ox(b,_,x),k=l;n.modifiersData[r]=((t={})[k]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Cx(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Dx(e){return e.split("-")[1]}var jx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=tx,x=Xb,_=window;if(u){var w=Nx(n),k="clientHeight",S="clientWidth";if(w===fx(n)&&"static"!==Ex(w=Ax(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),o===Xb||(o===tx||o===ex)&&i===ix)x=Zb,m-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[k])-r.height,m*=l?1:-1;if(o===tx||(o===Xb||o===Zb)&&i===ix)b=ex,p-=(d&&w===_&&_.visualViewport?_.visualViewport.width:w[S])-r.width,p*=l?1:-1}var C,E=Object.assign({position:s},u&&jx),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:xx(n*o)/o||0,y:xx(r*o)/o||0}}({x:p,y:m},fx(n)):{x:p,y:m};return p=T.x,m=T.y,l?Object.assign({},E,((C={})[x]=y?"0":"",C[b]=v?"0":"",C.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},E,((t={})[x]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}var Bx={passive:!0};var $x={left:"right",right:"left",bottom:"top",top:"bottom"};function Hx(e){return e.replace(/left|right|bottom|top/g,(function(e){return $x[e]}))}var Wx={start:"end",end:"start"};function Ux(e){return e.replace(/start|end/g,(function(e){return Wx[e]}))}function Kx(e){var t=fx(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gx(e){return kx(Ax(e)).left+Kx(e).scrollLeft}function Yx(e){var t=Ex(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Vx(e){return["html","body","#document"].indexOf(dx(e))>=0?e.ownerDocument.body:hx(e)&&Yx(e)?e:Vx(Rx(e))}function qx(e,t){var n;void 0===t&&(t=[]);var r=Vx(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=fx(r),a=o?[i].concat(i.visualViewport||[],Yx(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(qx(Rx(a)))}function Jx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qx(e,t,n){return t===ax?Jx(function(e,t){var n=fx(e),r=Ax(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=wx();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Gx(e),y:l}}(e,n)):px(t)?function(e,t){var n=kx(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=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}(t,n):Jx(function(e){var t,n=Ax(e),r=Kx(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=yx(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=yx(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Gx(e),l=-r.scrollTop;return"rtl"===Ex(o||n).direction&&(s+=yx(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Ax(e)))}function Xx(e,t,n,r){var o="clippingParents"===t?function(e){var t=qx(Rx(e)),n=["absolute","fixed"].indexOf(Ex(e).position)>=0&&hx(e)?Nx(e):e;return px(n)?t.filter((function(e){return px(e)&&Cx(e,n)&&"body"!==dx(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=Qx(e,n,r);return t.top=yx(o.top,t.top),t.right=bx(o.right,t.right),t.bottom=bx(o.bottom,t.bottom),t.left=yx(o.left,t.left),t}),Qx(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Zx(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?vx(o):null,a=o?Dx(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Xb:t={x:s,y:n.y-r.height};break;case Zb:t={x:s,y:n.y+n.height};break;case ex:t={x:n.x+n.width,y:l};break;case tx:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?Mx(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case ox:t[u]=t[u]-(n[c]/2-r[c]/2);break;case ix:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function e_(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?ax:u,d=n.elementContext,f=void 0===d?sx:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=Px("number"!=typeof g?g:zx(g,rx)),y=f===sx?"reference":sx,b=e.rects.popper,x=e.elements[h?y:f],_=Xx(px(x)?x:x.contextElement||Ax(e.elements.popper),l,c,a),w=kx(e.elements.reference),k=Zx({reference:w,element:b,placement:o}),S=Jx(Object.assign({},b,k)),C=f===sx?S:w,E={top:_.top-C.top+v.top,bottom:C.bottom-_.bottom+v.bottom,left:_.left-C.left+v.left,right:C.right-_.right+v.right},T=e.modifiersData.offset;if(f===sx&&T){var A=T[o];Object.keys(E).forEach((function(e){var t=[ex,Zb].indexOf(e)>=0?1:-1,n=[Xb,Zb].indexOf(e)>=0?"y":"x";E[e]+=A[n]*t}))}return E}function t_(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?ux:l,c=Dx(r),d=c?s?lx:lx.filter((function(e){return Dx(e)===c})):rx,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=e_(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[vx(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var n_={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=vx(g),y=l||(v===g||!h?[Hx(g)]:function(e){if(vx(e)===nx)return[];var t=Hx(e);return[Ux(e),t,Ux(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(vx(n)===nx?t_(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,_=t.rects.popper,w=new Map,k=!0,S=b[0],C=0;C<b.length;C++){var E=b[C],T=vx(E),A=Dx(E)===ox,R=[Xb,Zb].indexOf(T)>=0,L=R?"width":"height",N=e_(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),M=R?A?ex:tx:A?Zb:Xb;x[L]>_[L]&&(M=Hx(M));var O=Hx(M),P=[];if(i&&P.push(N[T]<=0),s&&P.push(N[M]<=0,N[O]<=0),P.every((function(e){return e}))){S=E,k=!1;break}w.set(E,P)}if(k)for(var z=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},I=h?3:1;I>0;I--){if("break"===z(I))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function r_(e,t,n){return void 0===n&&(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 o_(e){return[Xb,ex,Zb,tx].some((function(t){return e[t]>=0}))}var i_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=ux.reduce((function(e,n){return e[n]=function(e,t,n){var r=vx(e),o=[tx,Xb].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[tx,ex].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var a_={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=e_(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=vx(t.placement),y=Dx(t.placement),b=!y,x=Mx(v),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(w){if(i){var R,L="y"===x?Xb:tx,N="y"===x?Zb:ex,M="y"===x?"height":"width",O=w[x],P=O+g[L],z=O-g[N],I=p?-S[M]/2:0,D=y===ox?k[M]:S[M],j=y===ox?-S[M]:-k[M],F=t.elements.arrow,B=p&&F?Sx(F):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=$[L],W=$[N],U=Ox(0,k[M],B[M]),K=b?k[M]/2-I-U-H-E.mainAxis:D-U-H-E.mainAxis,G=b?-k[M]/2+I+U+W+E.mainAxis:j+U+W+E.mainAxis,Y=t.elements.arrow&&Nx(t.elements.arrow),V=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,q=null!=(R=null==T?void 0:T[x])?R:0,J=O+G-q,Q=Ox(p?bx(P,O+K-q-V):P,O,p?yx(z,J):z);w[x]=Q,A[x]=Q-O}if(s){var X,Z="x"===x?Xb:tx,ee="x"===x?Zb:ex,te=w[_],ne="y"===_?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[Xb,tx].indexOf(v),ae=null!=(X=null==T?void 0:T[_])?X:0,se=ie?re:te-k[ne]-S[ne]-ae+E.altAxis,le=ie?te+k[ne]+S[ne]-ae-E.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Ox(e,t,n);return r>n?n:r}(se,te,le):Ox(p?se:re,te,p?le:oe);w[_]=ue,A[_]=ue-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function s_(e,t,n){void 0===n&&(n=!1);var r=hx(t),o=hx(t)&&function(e){var t=e.getBoundingClientRect(),n=xx(t.width)/e.offsetWidth||1,r=xx(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Ax(t),a=kx(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==dx(t)||Yx(i))&&(s=function(e){return e!==fx(e)&&hx(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Kx(e);var t}(t)),hx(t)?((l=kx(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Gx(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function l_(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function u_(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var c_={placement:"bottom",modifiers:[],strategy:"absolute"};function d_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function f_(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?c_:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},c_,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:px(e)?qx(e):e.contextElement?qx(e.contextElement):[],popper:qx(t)};var c,d,f=function(e){var t=l_(e);return cx.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((c=[].concat(r,o.options.modifiers),d=c.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}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=f.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:l,options:r}),u=function(){};a.push(s||u)}})),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(d_(t,n)){o.rects={reference:s_(t,Nx(n),"fixed"===o.options.strategy),popper:Sx(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof a&&(o=a({state:o,options:c,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:u_((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){u(),s=!0}};if(!d_(e,t))return l;function u(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var p_=f_({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=fx(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Bx)})),s&&l.addEventListener("resize",n.update,Bx),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Bx)})),s&&l.removeEventListener("resize",n.update,Bx)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Zx({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,u={placement:vx(t.placement),variation:Dx(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Fx(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fx(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},gx,i_,n_,a_,Ix,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=e_(t,{elementContext:"reference"}),s=e_(t,{altBoundary:!0}),l=r_(a,r),u=r_(s,o,i),c=o_(l),d=o_(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});const h_=D.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=D.useState(null),s=lv(D.isValidElement(n)?Av(n):null,t);if(Jg((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Jg((()=>{if(i&&!o)return rv(t,i),()=>{rv(t,null)}}),[t,i,o]),o){if(D.isValidElement(n)){const e={ref:s};return D.cloneElement(n,e)}return xc.jsx(D.Fragment,{children:n})}return xc.jsx(D.Fragment,{children:i?Qy.createPortal(n,i):i})}));function m_(e){return kg("MuiPopper",e)}Sg("MuiPopper",["root"]);const g_=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],v_=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function y_(e){return"function"==typeof e?e():e}const b_={},x_=D.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:u,popperOptions:c,popperRef:d,slotProps:f={},slots:p={},TransitionProps:h}=e,m=af(e,g_),g=D.useRef(null),v=lv(g,t),y=D.useRef(null),b=lv(y,d),x=D.useRef(b);Jg((()=>{x.current=b}),[b]),D.useImperativeHandle(d,(()=>y.current),[]);const _=function(e,t){if("ltr"===t)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}}(u,i),[w,k]=D.useState(_),[S,C]=D.useState(y_(r));D.useEffect((()=>{y.current&&y.current.forceUpdate()})),D.useEffect((()=>{r&&C(y_(r))}),[r]),Jg((()=>{if(!S||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{k(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=p_(S,g.current,of({placement:_},c,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[S,a,s,l,c,_]);const E={placement:w};null!==h&&(E.TransitionProps=h);const T=(e=>{const{classes:t}=e;return wv({root:["root"]},m_,t)})(e),A=null!=(n=p.root)?n:"div",R=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=af(e,Tv),s=i?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(r,o),{props:l,internalRef:u}=Ev(of({},a,{externalSlotProps:s}));return Sv(n,of({},l,{ref:lv(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:A,externalSlotProps:f.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:T.root});return xc.jsx(A,of({},R,{children:"function"==typeof o?o(E):o}))})),__=D.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:u,placement:c="bottom",popperOptions:d=b_,popperRef:f,style:p,transition:h=!1,slotProps:m={},slots:g={}}=e,v=af(e,v_),[y,b]=D.useState(!0);if(!s&&!u&&(!h||y))return null;let x;if(o)x=o;else if(n){const e=y_(n);x=e&&void 0!==e.nodeType?tv(e).body:tv(null).body}const _=u||!s||h&&!y?void 0:"none",w=h?{in:u,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0;return xc.jsx(h_,{disablePortal:a,container:x,children:xc.jsx(x_,of({anchorEl:n,direction:i,disablePortal:a,modifiers:l,ref:t,open:h?!y:u,placement:c,popperOptions:d,popperRef:f,slotProps:m,slots:g},v,{style:of({position:"fixed",top:0,left:0,display:_},p),TransitionProps:w,children:r}))})})),w_=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],k_=Uy(__,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),S_=D.forwardRef((function(e,t){var n;const r=Qb(),o=Vy({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v,slots:y,slotProps:b}=o,x=af(o,w_),_=null!=(n=null==y?void 0:y.root)?n:null==s?void 0:s.Root,w=of({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v},x);return xc.jsx(k_,of({as:a,direction:null==r?void 0:r.direction,slots:{root:_},slotProps:null!=b?b:l},w,{ref:t}))})),C_=["onChange","maxRows","minRows","style","value"];function E_(e){return parseInt(e,10)||0}const T_={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function A_(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const R_=D.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=af(e,C_),{current:l}=D.useRef(null!=a),u=D.useRef(null),c=lv(t,u),d=D.useRef(null),f=D.useRef(null),p=D.useCallback((()=>{const t=u.current,n=f.current;if(!t||!n)return;const i=nv(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=E_(i.paddingBottom)+E_(i.paddingTop),l=E_(i.borderBottomWidth)+E_(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-c)<=1}}),[r,o,e.placeholder]),h=sv((()=>{const e=u.current,t=p();if(!e||!t||A_(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n})),m=D.useCallback((()=>{const e=u.current,t=p();if(!e||!t||A_(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[p]),g=D.useRef(-1);Jg((()=>{const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}(m),t=null==u?void 0:u.current;if(!t)return;const n=nv(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{r.observe(t)})))})),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}}),[p,m,h]),Jg((()=>{m()}));return xc.jsxs(D.Fragment,{children:[xc.jsx("textarea",of({value:a,onChange:e=>{l||m(),n&&n(e)},ref:c,rows:o,style:i},s)),xc.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:of({},T_,i,{paddingTop:0,paddingBottom:0})})]})}));const L_=D.createContext(void 0);function N_(e){return xc.jsx(pg,of({},e,{defaultTheme:Ey,themeId:rf}))}function M_(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function O_(e){return kg("MuiInputBase",e)}const P_=Sg("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),z_=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],I_=Uy("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${dm(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>of({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${P_.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&of({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),D_=Uy("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=of({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return of({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${P_.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${P_.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),j_=xc.jsx(N_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),F_=D.forwardRef((function(e,t){var n;const r=Vy({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:y,maxRows:b,minRows:x,multiline:_=!1,name:w,onBlur:k,onChange:S,onClick:C,onFocus:E,onKeyDown:T,onKeyUp:A,placeholder:R,readOnly:L,renderSuffix:N,rows:M,slotProps:O={},slots:P={},startAdornment:z,type:I="text",value:j}=r,F=af(r,z_),B=null!=v.value?v.value:j,{current:$}=D.useRef(null!=B),H=D.useRef(),W=D.useCallback((e=>{}),[]),U=lv(H,y,v.ref,W),[K,G]=D.useState(!1),Y=D.useContext(L_),V=function({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});V.focused=Y?Y.focused:K,D.useEffect((()=>{!Y&&d&&K&&(G(!1),k&&k())}),[Y,d,K,k]);const q=Y&&Y.onFilled,J=Y&&Y.onEmpty,Q=D.useCallback((e=>{!function(e,t=!1){return e&&(M_(e.value)&&""!==e.value||t&&M_(e.defaultValue)&&""!==e.defaultValue)}(e)?J&&J():q&&q()}),[q,J]);Jg((()=>{$&&Q({value:B})}),[B,Q,$]);D.useEffect((()=>{Q(H.current)}),[]);let X=g,Z=v;_&&"input"===X&&(Z=of(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:b,minRows:x},Z),X=R_);D.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(z))}),[Y,z]);const ee=of({},r,{color:V.color||"primary",disabled:V.disabled,endAdornment:p,error:V.error,focused:V.focused,formControl:Y,fullWidth:h,hiddenLabel:V.hiddenLabel,multiline:_,size:V.size,startAdornment:z,type:I}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:h}=e;return wv({root:["root",`color${dm(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&`size${dm(f)}`,c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},O_,t)})(ee),ne=P.root||l.Root||I_,re=O.root||u.root||{},oe=P.input||l.Input||D_;return Z=of({},Z,null!=(n=O.input)?n:u.input),xc.jsxs(D.Fragment,{children:[!f&&j_,xc.jsxs(ne,of({},re,!kv(ne)&&{ownerState:of({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),C&&C(e)}},F,{className:xg(te.root,re.className,s,L&&"MuiInputBase-readOnly"),children:[z,xc.jsx(L_.Provider,{value:null,children:xc.jsx(oe,of({ownerState:ee,"aria-invalid":V.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:V.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:w,placeholder:R,readOnly:L,required:V.required,rows:M,value:B,onKeyDown:T,onKeyUp:A,type:I},Z,!kv(oe)&&{as:X,ownerState:of({},ee,Z.ownerState)},{ref:U,className:xg(te.input,Z.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(tf(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),S&&S(e,...t)},onFocus:e=>{V.disabled?e.stopPropagation():(E&&E(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):G(!0))}}))}),p,N?N(of({},V,{startAdornment:z})):null]}))]})})),B_=Sg("MuiBox",["root"]),$_=Cy(),H_=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Gh("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(og);return D.forwardRef((function(e,a){const s=dg(n),l=mg(e),{className:u,component:c="div"}=l,d=af(l,_g);return xc.jsx(i,of({as:c,ref:a,className:xg(u,o?o(r):r),theme:t&&s[t]||s},d))}))}({themeId:rf,defaultTheme:$_,defaultClassName:B_.root,generateClassName:yg.generate});function W_(e){return kg("MuiButton",e)}const U_=Sg("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"]),K_=D.createContext({}),G_=D.createContext(void 0),Y_=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],V_=e=>of({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),q_=Uy(Ib,{shouldForwardProp:e=>Wy(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${dm(n.color)}`],t[`size${dm(n.size)}`],t[`${n.variant}Size${dm(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return of({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":of({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:iy.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:iy.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:iy.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":of({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${U_.focusVisible}`]:of({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${U_.disabled}`]:of({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${iy.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${U_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${U_.disabled}`]:{boxShadow:"none"}})),J_=Uy("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${dm(n.size)}`]]}})((({ownerState:e})=>of({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},V_(e)))),Q_=Uy("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${dm(n.size)}`]]}})((({ownerState:e})=>of({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},V_(e)))),X_=D.forwardRef((function(e,t){const n=D.useContext(K_),r=D.useContext(G_),o=Vy({props:Vg(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:y="text"}=o,b=af(o,Y_),x=of({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:y}),_=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return of({},a,wv({root:["root",i,`${i}${dm(t)}`,`size${dm(o)}`,`${i}Size${dm(o)}`,`color${dm(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${dm(o)}`],endIcon:["icon","endIcon",`iconSize${dm(o)}`]},W_,a))})(x),w=g&&xc.jsx(J_,{className:_.startIcon,ownerState:x,children:g}),k=f&&xc.jsx(Q_,{className:_.endIcon,ownerState:x,children:f}),S=r||"";return xc.jsxs(q_,of({ownerState:x,className:xg(n.className,_.root,l,S),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:xg(_.focusVisible,p),ref:t,type:v},b,{classes:_,children:[w,i,k]}))}));function Z_(e){return e.substring(2).toLowerCase()}function ew(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=D.useRef(!1),s=D.useRef(null),l=D.useRef(!1),u=D.useRef(!1);D.useEffect((()=>(setTimeout((()=>{l.current=!0}),0),()=>{l.current=!1})),[]);const c=lv(Av(t),s),d=sv((e=>{const t=u.current;u.current=!1;const r=tv(s.current);if(!l.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(a.current)return void(a.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(s.current)>-1:!r.documentElement.contains(e.target)||s.current.contains(e.target),i||!n&&t||o(e)})),f=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},p={ref:c};return!1!==i&&(p[i]=f(i)),D.useEffect((()=>{if(!1!==i){const e=Z_(i),t=tv(s.current),n=()=>{a.current=!0};return t.addEventListener(e,d),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,d),t.removeEventListener("touchmove",n)}}}),[d,i]),!1!==r&&(p[r]=f(r)),D.useEffect((()=>{if(!1!==r){const e=Z_(r),t=tv(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}}),[d,r]),xc.jsx(D.Fragment,{children:D.cloneElement(t,p)})}function tw(e){return kg("MuiDivider",e)}const nw=Sg("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),rw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ow=Uy("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>of({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:iy.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>of({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>of({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>of({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>of({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),iw=Uy("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>of({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),aw=D.forwardRef((function(e,t){const n=Vy({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,p=af(n,rw),h=of({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return wv({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},tw,r)})(h);return xc.jsx(ow,of({as:a,className:xg(m.root,i),role:c,ref:t,ownerState:h},p,{children:o?xc.jsx(iw,{className:m.wrapper,ownerState:h,children:o}):null}))}));aw.muiSkipListHighlight=!0;const sw=function(e={}){const{createStyledComponent:t=Gv,useThemeProps:n=Yv,componentName:r="MuiStack"}=e,o=t(qv),i=D.forwardRef((function(e,t){const i=mg(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:u,children:c,className:d,useFlexGap:f=!1}=i,p=af(i,Uv),h={direction:s,spacing:l,useFlexGap:f},m=wv({root:["root"]},(e=>kg(r,e)),{});return xc.jsx(o,of({as:a,ownerState:h,ref:t,className:xg(m.root,d)},p,{children:u?Vv(c,u):c}))}));return i}({createStyledComponent:Uy("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Vy({props:e,name:"MuiStack"})}),lw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function uw(e){return`scale(${e}, ${e**2})`}const cw={entering:{opacity:1,transform:uw(1)},entered:{opacity:1,transform:"none"}},dw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fw=D.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:f,style:p,timeout:h="auto",TransitionComponent:m=ab}=e,g=af(e,lw),v=fv(),y=D.useRef(),b=Ty(),x=D.useRef(null),_=lv(x,Av(o),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=w(u),S=w(((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=hb({style:p,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:dw?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),C=w(l),E=w(f),T=w((e=>{const{duration:t,delay:n,easing:r}=hb({style:p,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=b.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:n}),b.transitions.create("transform",{duration:dw?o:.666*o,delay:dw?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=uw(.75),c&&c(e)})),A=w(d);return xc.jsx(m,of({appear:r,in:a,nodeRef:x,onEnter:S,onEntered:C,onEntering:k,onExit:T,onExited:A,onExiting:E,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>D.cloneElement(o,of({style:of({opacity:0,transform:uw(.75),visibility:"exited"!==e||a?void 0:"hidden"},cw[e],p,o.props.style),ref:_},t))}))}));fw.muiSupportAuto=!0;const pw=D.createContext({});function hw(e){return kg("MuiList",e)}Sg("MuiList",["root","padding","dense","subheader"]);const mw=["children","className","component","dense","disablePadding","subheader"],gw=Uy("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>of({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),vw=D.forwardRef((function(e,t){const n=Vy({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,u=af(n,mw),c=D.useMemo((()=>({dense:a})),[a]),d=of({},n,{component:i,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return wv({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},hw,t)})(d);return xc.jsx(pw.Provider,{value:c,children:xc.jsxs(gw,of({as:i,className:xg(f.root,o),ref:t,ownerState:d},u,{children:[l,r]}))})}));function yw(e){return kg("MuiListItemIcon",e)}const bw=Sg("MuiListItemIcon",["root","alignItemsFlexStart"]),xw=["className"],_w=Uy("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>of({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),ww=D.forwardRef((function(e,t){const n=Vy({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=af(n,xw),i=of({},n,{alignItems:D.useContext(pw).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return wv({root:["root","flex-start"===t&&"alignItemsFlexStart"]},yw,n)})(i);return xc.jsx(_w,of({className:xg(a.root,r),ownerState:i,ref:t},o))})),kw=Sg("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Sw=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Cw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ew(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Tw(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Aw(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Tw(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Rw=D.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=af(e,Sw),f=D.useRef(null),p=D.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jg((()=>{r&&f.current.focus()}),[r]),D.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(tv(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const h=lv(f,t);let m=-1;D.Children.forEach(i,((e,t)=>{D.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=D.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),D.cloneElement(e,t)}return e}));return xc.jsx(vw,of({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=tv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Aw(t,r,l,s,Cw);else if("ArrowUp"===n)e.preventDefault(),Aw(t,r,l,s,Ew);else if("Home"===n)e.preventDefault(),Aw(t,null,l,s,Cw);else if("End"===n)e.preventDefault(),Aw(t,null,l,s,Ew);else if(1===n.length){const o=p.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&Tw(r,o);o.previousKeyMatched&&(l||Aw(t,r,!1,s,Cw,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Lw(e){return kg("MuiMenuItem",e)}const Nw=Sg("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Mw=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ow=Uy(Ib,{shouldForwardProp:e=>Wy(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>of({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:iy.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Nw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:iy.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Nw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:iy.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:iy.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${nw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${nw.inset}`]:{marginLeft:52},[`& .${kw.root}`]:{marginTop:0,marginBottom:0},[`& .${kw.inset}`]:{paddingLeft:36},[`& .${bw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&of({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${bw.root} svg`]:{fontSize:"1.25rem"}})))),Pw=D.forwardRef((function(e,t){const n=Vy({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=n,f=af(n,Mw),p=D.useContext(pw),h=D.useMemo((()=>({dense:i||p.dense||!1,disableGutters:s})),[p.dense,i,s]),m=D.useRef(null);Jg((()=>{r&&m.current&&m.current.focus()}),[r]);const g=of({},n,{dense:h.dense,divider:a,disableGutters:s}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return of({},a,wv({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Lw,a))})(n),y=lv(m,t);let b;return n.disabled||(b=void 0!==c?c:-1),xc.jsx(pw.Provider,{value:h,children:xc.jsx(Ow,of({ref:y,role:u,tabIndex:b,component:o,focusVisibleClassName:xg(v.focusVisible,l),className:xg(v.root,d)},f,{ownerState:g,classes:v}))})}));function zw(e){return kg("MuiTooltip",e)}const Iw=Sg("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Dw=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const jw=Uy(S_,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>of({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Iw.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Iw.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Iw.arrow}`]:of({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Iw.arrow}`]:of({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Fw=Uy("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${dm(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return of({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:iy.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},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${Iw.popper}[data-popper-placement*="left"] &`]:of({transformOrigin:"right center"},t.isRtl?of({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):of({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Iw.popper}[data-popper-placement*="right"] &`]:of({transformOrigin:"left center"},t.isRtl?of({marginRight:"14px"},t.touch&&{marginRight:"24px"}):of({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Iw.popper}[data-popper-placement*="top"] &`]:of({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Iw.popper}[data-popper-placement*="bottom"] &`]:of({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),Bw=Uy("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:iy.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let $w=!1;const Hw=new dv;let Ww={x:0,y:0};function Uw(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Kw=D.forwardRef((function(e,t){var n,r,o,i,a,s,l,u,c,d,f,p,h,m,g,v,y,b,x;const _=Vy({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:k,components:S={},componentsProps:C={},describeChild:E=!1,disableFocusListener:T=!1,disableHoverListener:A=!1,disableInteractive:R=!1,disableTouchListener:L=!1,enterDelay:N=100,enterNextDelay:M=0,enterTouchDelay:O=700,followCursor:P=!1,id:z,leaveDelay:I=0,leaveTouchDelay:j=1500,onClose:F,onOpen:B,open:$,placement:H="bottom",PopperComponent:W,PopperProps:U={},slotProps:K={},slots:G={},title:Y,TransitionComponent:V=fw,TransitionProps:q}=_,J=af(_,Dw),Q=D.isValidElement(k)?k:xc.jsx("span",{children:k}),X=Ty(),Z=(()=>{const e=D.useContext(Pv);return null!=e&&e})(),[ee,te]=D.useState(),[ne,re]=D.useState(null),oe=D.useRef(!1),ie=R||P,ae=fv(),se=fv(),le=fv(),ue=fv(),[ce,de]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(void 0!==e),[i,a]=D.useState(t);return[o?e:i,D.useCallback((e=>{o||a(e)}),[])]}({controlled:$,default:!1,name:"Tooltip",state:"open"});let fe=ce;const pe=av(z),he=D.useRef(),me=sv((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ue.clear()}));D.useEffect((()=>me),[me]);const ge=e=>{Hw.clear(),$w=!0,de(!0),B&&!fe&&B(e)},ve=sv((e=>{Hw.start(800+I,(()=>{$w=!1})),de(!1),F&&fe&&F(e),ae.start(X.transitions.duration.shortest,(()=>{oe.current=!1}))})),ye=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),se.clear(),le.clear(),N||$w&&M?se.start($w?M:N,(()=>{ge(e)})):ge(e))},be=e=>{se.clear(),le.start(I,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:_e,onFocus:we,ref:ke}=_v(),[,Se]=D.useState(!1),Ce=e=>{_e(e),!1===xe.current&&(Se(!1),be(e))},Ee=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Se(!0),ye(e))},Te=e=>{oe.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Ae=e=>{Te(e),le.clear(),ae.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(O,(()=>{document.body.style.WebkitUserSelect=he.current,ye(e)}))},Re=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),le.start(j,(()=>{ve(e)}))};D.useEffect((()=>{if(fe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,fe]);const Le=lv(Av(Q),ke,te,t);Y||0===Y||(fe=!1);const Ne=D.useRef(),Me={},Oe="string"==typeof Y;E?(Me.title=fe||!Oe||A?null:Y,Me["aria-describedby"]=fe?pe:null):(Me["aria-label"]=Oe?Y:null,Me["aria-labelledby"]=fe&&!Oe?pe:null);const Pe=of({},Me,J,Q.props,{className:xg(J.className,Q.props.className),onTouchStart:Te,ref:Le},P?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),Ww={x:e.clientX,y:e.clientY},Ne.current&&Ne.current.update()}}:{}),ze={};L||(Pe.onTouchStart=Ae,Pe.onTouchEnd=Re),A||(Pe.onMouseOver=Uw(ye,Pe.onMouseOver),Pe.onMouseLeave=Uw(be,Pe.onMouseLeave),ie||(ze.onMouseOver=ye,ze.onMouseLeave=be)),T||(Pe.onFocus=Uw(Ee,Pe.onFocus),Pe.onBlur=Uw(Ce,Pe.onBlur),ie||(ze.onFocus=Ee,ze.onBlur=Ce));const Ie=D.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=U.popperOptions)&&e.modifiers&&(t=t.concat(U.popperOptions.modifiers)),of({},U.popperOptions,{modifiers:t})}),[ne,U]),De=of({},_,{isRtl:Z,arrow:w,disableInteractive:ie,placement:H,PopperComponentProp:W,touch:oe.current}),je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return wv({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${dm(i.split("-")[0])}`],arrow:["arrow"]},zw,t)})(De),Fe=null!=(n=null!=(r=G.popper)?r:S.Popper)?n:jw,Be=null!=(o=null!=(i=null!=(a=G.transition)?a:S.Transition)?i:V)?o:fw,$e=null!=(s=null!=(l=G.tooltip)?l:S.Tooltip)?s:Fw,He=null!=(u=null!=(c=G.arrow)?c:S.Arrow)?u:Bw,We=Sv(Fe,of({},U,null!=(d=K.popper)?d:C.popper,{className:xg(je.popper,null==U?void 0:U.className,null==(f=null!=(p=K.popper)?p:C.popper)?void 0:f.className)}),De),Ue=Sv(Be,of({},q,null!=(h=K.transition)?h:C.transition),De),Ke=Sv($e,of({},null!=(m=K.tooltip)?m:C.tooltip,{className:xg(je.tooltip,null==(g=null!=(v=K.tooltip)?v:C.tooltip)?void 0:g.className)}),De),Ge=Sv(He,of({},null!=(y=K.arrow)?y:C.arrow,{className:xg(je.arrow,null==(b=null!=(x=K.arrow)?x:C.arrow)?void 0:b.className)}),De);return xc.jsxs(D.Fragment,{children:[D.cloneElement(Q,Pe),xc.jsx(Fe,of({as:null!=W?W:S_,placement:H,anchorEl:P?{getBoundingClientRect:()=>({top:Ww.y,left:Ww.x,right:Ww.x,bottom:Ww.y,width:0,height:0})}:ee,popperRef:Ne,open:!!ee&&fe,id:pe,transition:!0},ze,We,{popperOptions:Ie,children:({TransitionProps:e})=>xc.jsx(Be,of({timeout:X.transitions.duration.shorter},e,Ue,{children:xc.jsxs($e,of({},Ke,{children:[Y,w?xc.jsx(He,of({},Ge,{ref:re})):null]}))}))}))]})})),Gw=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"M9 1v1H2v12h12V7h1v7a1 1 0 0 1-.883.993L14 15H2a1 1 0 0 1-.993-.883L1 14V2a1 1 0 0 1 .883-.993L2 1zm7-1v5h-1V1.706l-4.5 4.501-.707-.707L14.292 1H11V0z"})}),Yw=D.forwardRef(Gw),Vw=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}),qw=D.forwardRef(Vw);function Jw({validateUrl:e,attributes:t}){const[n]=mc();return D.useEffect((()=>{if(!n.hasNodes([uu]))throw new Error("LinkPlugin: LinkNode not registered on editor")})),D.useEffect((()=>function(e,t){return Hs(zl((()=>e.registerCommand(gu,(e=>{const n=t.validateUrl.peek(),r=t.attributes.peek();if(null===e)return yu(null),!0;if("string"==typeof e)return!(void 0!==n&&!n(e)||(yu(e,r),0));{const{url:t,target:n,rel:o,title:i}=e;return yu(t,{...r,rel:o,target:n,title:i}),!0}}),1))),zl((()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(Pt,(t=>{const o=io();if(!$r(o)||o.isCollapsed()||!ml(t,ClipboardEvent))return!1;if(null===t.clipboardData)return!1;const i=t.clipboardData.getData("text");return!!n(i)&&!o.getNodes().some((e=>Go(e)))&&(e.dispatchCommand(gu,{...r,url:i}),t.preventDefault(),!0)}),1)})))}(n,function(e,t={}){const n={};for(const r in e){const o=t[r],i=El(void 0===o?e[r]:o);n[r]=i}return n}({attributes:t,validateUrl:e}))),[n,e,t]),null}const Qw={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Xw=12,Zw=14,ek=16,tk=24,nk=3,rk=300,ok=400,ik=600,ak=700,sk={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function lk(e){return xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:xc.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function uk({fontSize:e="medium",children:t=null,className:n=""}={}){return xc.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function ck(e={}){return xc.jsx(uk,{...e,children:xc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[xc.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),xc.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function dk(e={}){return xc.jsx(uk,{fontSize:"medium",...e,children:xc.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[xc.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),xc.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function fk(e){return xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:xc.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function pk(e={}){return xc.jsx(uk,{...e,children:xc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:xc.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[xc.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),xc.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function hk(e={}){return xc.jsx(uk,{fontSize:"medium",...e,children:xc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:xc.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:xc.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function mk({className:e}){return xc.jsx(uk,{fontSize:"small",className:e,children:xc.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:xc.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:xc.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:xc.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[xc.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),xc.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function gk(e={}){return xc.jsx(uk,{...e,children:xc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:xc.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:xc.jsx("rect",{stroke:Qw.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const vk={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:nk,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var yk=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Qw.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Qw.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:xc.jsx(lk,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Qw.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Qw.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Qw.MISC_FOCUS_BORDER}`,borderRadius:nk,backgroundColor:Qw.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Qw.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Qw.WHITE,color:Qw.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:nk},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Qw.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Qw.GREYSCALE_0_15,backgroundColor:Qw.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Qw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Qw.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Qw.GREEN_PALE},"&:active":{backgroundColor:Qw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Qw.GREEN_PALE,boxShadow:`0 0 0 3px ${ev(Qw.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Qw.BLUE_PALE},"&:active":{backgroundColor:Qw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Qw.BLUE_PALE,boxShadow:`0 0 0 3px ${ev(Qw.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:nk,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Qw.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Qw.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Qw.GREYSCALE_0_42,backgroundColor:Qw.GREYSCALE_100_60,"&:active":{backgroundColor:Qw.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Qw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Qw.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Qw.PURPLE,"&.Mui-focusVisible":{borderColor:Qw.PURPLE,boxShadow:`0 0 0 3px ${ev(Qw.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Qw.GREEN,"&.Mui-focusVisible":{borderColor:Qw.GREEN,boxShadow:`0 0 0 3px ${ev(Qw.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Qw.BLUE,"&.Mui-focusVisible":{borderColor:Qw.BLUE,boxShadow:`0 0 0 3px ${ev(Qw.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Qw.ORANGE,"&.Mui-focusVisible":{borderColor:Qw.ORANGE,boxShadow:`0 0 0 3px ${ev(Qw.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Qw.RED,"&.Mui-focusVisible":{borderColor:Qw.RED,boxShadow:`0 0 0 3px ${ev(Qw.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Qw.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Qw.PURPLE_PALE},"&:active":{backgroundColor:Qw.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Qw.PURPLE_PALE,boxShadow:`0 0 0 3px ${ev(Qw.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Qw.GREEN_PALE},"&:active":{backgroundColor:Qw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Qw.GREEN_PALE,boxShadow:`0 0 0 3px ${ev(Qw.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Qw.BLUE_PALE},"&:active":{backgroundColor:Qw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Qw.BLUE_PALE,boxShadow:`0 0 0 3px ${ev(Qw.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Qw.ORANGE_PALE},"&:active":{backgroundColor:Qw.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Qw.ORANGE_PALE,boxShadow:`0 0 0 3px ${ev(Qw.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Qw.RED_PALE},"&:active":{backgroundColor:Qw.RED_DARK},"&.Mui-focusVisible":{borderColor:Qw.RED_PALE,boxShadow:`0 0 0 3px ${ev(Qw.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Qw.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Qw.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:nk,boxShadow:`inset 0 0 0 2px ${Qw.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:xc.jsx(fk,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Xw,borderRadius:nk,color:Qw.TEXT_PRIMARY,backgroundColor:Qw.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Qw.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Qw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Qw.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Qw.GREYSCALE_0_05,color:Qw.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Qw.GREEN,borderColor:Qw.GREEN},"&.MuiChip-outlinedInfo":{color:Qw.BLUE,borderColor:Qw.BLUE},"&.MuiChip-outlinedWarning":{color:Qw.ORANGE,borderColor:Qw.ORANGE},"&.MuiChip-outlinedError":{color:Qw.RED,borderColor:Qw.RED}},outlined:{border:`solid 1px ${Qw.GREYSCALE_0_15}`,backgroundColor:Qw.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:nk,boxShadow:"none",backgroundColor:Qw.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Qw.GREEN,borderColor:Qw.GREEN},outlinedSecondary:{color:Qw.BLUE,borderColor:Qw.BLUE},label:{fontFamily:sk.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:xc.jsx(fk,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:xc.jsx(lk,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:nk},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:nk,fontSize:Zw,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Qw.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Qw.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Qw.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Qw.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Qw.GREYSCALE_0_05}}},popupIndicator:{borderRadius:nk,border:`solid 1px ${Qw.GREYSCALE_0_15}`,color:Qw.GREYSCALE_0_60,marginRight:0,width:tk,height:tk},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Qw.GREYSCALE_0_15}`},clearIndicator:{borderRadius:nk,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Qw.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Zw}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Xw,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Qw.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Qw.GREYSCALE_25,fontSize:Xw,fontFamily:sk.FONT_FAMILY,fontWeight:ik,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Qw.TEXT_PRIMARY},"&.Mui-error":{color:Qw.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Qw.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ok,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Qw.TEXT_SECONDARY,content:"'(required)'",fontWeight:ok,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Zw,lineHeight:"16px",backgroundColor:Qw.WHITE,borderRadius:nk,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Qw.GREYSCALE_0_05}`,borderColor:Qw.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Qw.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Qw.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Qw.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Qw.RED}`,boxShadow:`0px 0px 0px 1px ${Qw.RED}, inset 0 2px 0 0 ${Qw.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Qw.GREYSCALE_0_10}`,borderColor:Qw.GREYSCALE_0_10,backgroundColor:Qw.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Qw.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Qw.GREYSCALE_0_15,borderRadius:nk,boxShadow:`inset 0 2px 0 0 ${Qw.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>xc.jsx(lk,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Qw.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Qw.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Qw.GREYSCALE_0_03},"&:active":{backgroundColor:Qw.GREYSCALE_0_10},"&:focus":{backgroundColor:Qw.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Qw.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Qw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Qw.GREYSCALE_0_30,"&:hover":{backgroundColor:Qw.GREYSCALE_0_0,borderColor:Qw.GREYSCALE_0_15},"& ~svg":{color:Qw.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Qw.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:nk}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Qw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Qw.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Qw.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Zw,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Xw,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Xw,fontWeight:ik,color:Qw.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:ik}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Qw.GREYSCALE_0_15}, 0px 0px 0px 1px ${Qw.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:xc.jsx(hk,{}),checkedIcon:xc.jsx(dk,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Qw.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Qw.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Qw.GREEN_PALE,boxShadow:`0 0 0 3px ${ev(Qw.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Qw.BLUE_PALE,boxShadow:`0 0 0 3px ${ev(Qw.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Qw.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Qw.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:xc.jsx(gk,{}),checkedIcon:xc.jsx(ck,{}),indeterminateIcon:xc.jsx(pk,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:nk,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Qw.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Qw.GREYSCALE_0_55,color:Qw.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Qw.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Qw.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Qw.GREYSCALE_0_55,"&:hover":{color:Qw.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Qw.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Qw.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Zw,color:Qw.TEXT_PRIMARY,lineHeight:"16px",fontWeight:ik},secondary:{fontSize:Xw,color:Qw.GREYSCALE_45,fontWeight:ok,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Zw,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Zw,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Qw.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Xw,borderBottom:`solid 1px ${Qw.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Zw,color:Qw.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Qw.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Qw.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Qw.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Qw.RED}}},"&.Mui-focusVisible":{backgroundColor:Qw.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Qw.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Qw.GREEN,height:"24px","&.Mui-disabled":{color:Qw.GREYSCALE_0_15}},rail:{backgroundColor:Qw.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Qw.GREYSCALE_0_05}`,borderRadius:nk,boxShadow:`inset 0px 0px 0px 1px ${Qw.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Qw.GREYSCALE_0_05}`,borderRadius:nk},thumb:{height:"16px",width:"16px",borderRadius:nk,backgroundColor:Qw.WHITE,boxShadow:`0px 1px 2px 0px ${Qw.GREYSCALE_0_15}, 0px 0px 0px 1px ${Qw.GREYSCALE_0_05}`,"&:hover":{borderRadius:nk,boxShadow:`0 2px 4px 0 ${Qw.GREYSCALE_0_30}, 0 0 0 1px ${Qw.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Qw.GREYSCALE_0_15}, 0 0 0 1px ${Qw.GREYSCALE_0_06}, 0 0 0 2px ${Qw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Qw.GREYSCALE_0_15}, 0 0 0 1px ${Qw.GREYSCALE_0_06}, 0 0 0 2px ${Qw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Qw.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Qw.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Qw.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Qw.GREYSCALE_0_15},markLabel:{color:Qw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Qw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Qw.WHITE,color:Qw.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Qw.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Qw.GREEN_PALE,boxShadow:`0 0 0 3px ${ev(Qw.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Qw.BLUE_PALE,boxShadow:`0 0 0 3px ${ev(Qw.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Qw.GREYSCALE_0_15,borderRadius:nk},thumb:{height:"16px",width:"16px",borderRadius:nk,backgroundColor:Qw.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Zw,fontWeight:ik,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Qw.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Qw.MISC_FOCUS_BORDER}`,backgroundColor:Qw.GREYSCALE_0_03,borderRadius:nk},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Qw.GREYSCALE_25,"&.Mui-selected":{color:Qw.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Zw,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:nk,"&:hover":{backgroundColor:Qw.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Qw.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Qw.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:nk,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Qw.GREYSCALE_0_05},"&:hover":{backgroundColor:Qw.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Qw.GREYSCALE_85}`,borderRight:`1px solid ${Qw.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ik,backgroundColor:Qw.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Qw.GREYSCALE_98,borderBottom:`1px solid ${Qw.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Qw.GREYSCALE_85}`,borderTop:`1px solid ${Qw.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Qw.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Qw.GREYSCALE_0_05,"&:hover":{backgroundColor:Qw.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Qw.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>xc.jsx(mk,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Qw.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Zw,borderRadius:nk,padding:"7px 16px",border:`1px solid ${Qw.GREYSCALE_0_15}`,backgroundColor:Qw.GREYSCALE_100_60,color:Qw.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Qw.GREYSCALE_0_10,border:`1px solid ${Qw.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Qw.GREYSCALE_0_03,border:`1px solid ${Qw.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Qw.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Qw.MISC_FOCUS_BORDER}`,border:`1px solid ${Qw.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Qw.GREYSCALE_25,backgroundColor:Qw.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Qw.GREYSCALE_0_10,border:`1px solid ${Qw.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Xw,height:24,width:24,padding:7},sizeLarge:{fontSize:ek,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Zw,borderRadius:nk}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Qw.GREYSCALE_20},tooltip:{backgroundColor:Qw.GREYSCALE_20,fontSize:Xw,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...vk}:{}}))(t);const bk=e=>({mode:"light",primary:{ultraLight:Qw.GREEN_ULTRA_LIGHT,light:Qw.GREEN_PALE,main:Qw.GREEN,dark:Qw.GREEN_DARK,extraDark:Qw.GREEN_EXTRA_DARK,contrastText:Qw.WHITE},secondary:{ultraLight:Qw.BLUE_ULTRA_LIGHT,light:Qw.BLUE_PALE,main:Qw.BLUE,dark:Qw.BLUE_DARK,extraDark:Qw.BLUE_EXTRA_DARK,contrastText:Qw.WHITE},error:{ultraLight:Qw.RED_ULTRA_LIGHT,light:Qw.RED_PALE,main:Qw.RED,dark:Qw.RED_DARK,extraDark:Qw.RED_EXTRA_DARK,contrastText:Qw.WHITE},warning:{ultraLight:Qw.ORANGE_ULTRA_LIGHT,light:Qw.ORANGE_PALE,main:Qw.ORANGE,dark:Qw.ORANGE_DARK,extraDark:Qw.ORANGE_EXTRA_DARK,contrastText:Qw.WHITE},success:{ultraLight:Qw.GREEN_ULTRA_LIGHT,light:Qw.GREEN_PALE,main:Qw.GREEN,dark:Qw.GREEN_DARK,extraDark:Qw.GREEN_EXTRA_DARK,contrastText:Qw.WHITE},info:{ultraLight:Qw.BLUE_ULTRA_LIGHT,light:Qw.BLUE_PALE,main:Qw.BLUE,dark:Qw.BLUE_DARK,extraDark:Qw.BLUE_EXTRA_DARK,contrastText:Qw.WHITE},text:{primary:Qw.TEXT_PRIMARY,secondary:Qw.TEXT_SECONDARY,disabled:Qw.GREYSCALE_0_30},action:{hover:Qw.GREYSCALE_0_03,hoverOpacity:.03,selected:Qw.GREYSCALE_0_05,selectedOpacity:.05,focus:Qw.MISC_FOCUS_BORDER},amethyst:{ultraLight:Qw.WHITE,main:Qw.PURPLE,light:Qw.PURPLE_PALE,dark:Qw.PURPLE_DARK,extraDark:Qw.GREYSCALE_0_0,contrastText:Qw.WHITE},background:{paper:Qw.WHITE,default:Qw.GREYSCALE_95},divider:Qw.GREYSCALE_0_15}),xk=(e="light",t=!1)=>Cy(((e,t=!1)=>({components:yk(0,t),palette:bk(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Zw,fontWeightLight:rk,fontWeightRegular:ok,fontWeightMedium:ik,fontWeightBold:ak,htmlFontSize:Zw,fontFamily:sk.FONT_FAMILY,button:{fontWeight:ik,fontSize:Zw,textTransform:"none"},body1:{fontSize:ek,lineHeight:"24px"},body2:{fontSize:Zw,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:tk,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ek,fontWeight:ik,lineHeight:"16px"},h6:{fontSize:Zw,fontWeight:ik,lineHeight:"16px"},caption:{color:Qw.TEXT_SECONDARY},subtitle1:{fontSize:Zw,color:Qw.TEXT_SECONDARY},subtitle2:{fontSize:Xw,color:Qw.TEXT_SECONDARY}},shape:{borderRadius:nk}}))(0,t));var _k,wk,kk={},Sk={exports:{}},Ck={exports:{}};function Ek(){return _k||(_k=1,function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ck)),Ck.exports}var Tk={};function Ak(e,t){return function(){return null}}function Rk(e){return e&&"object"===Hv(e)&&e.constructor===Object}function Lk(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?of({},e):e;return Rk(e)&&Rk(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Rk(t[o])&&o in e?r[o]=Lk(e[o],t[o],n):r[o]=t[o])})),r}var Nk=(Wh.element,function(){return null});Nk.isRequired=(Wh.element.isRequired,function(){return null});var Mk=function(){return null};var Ok,Pk,zk={exports:{}},Ik={};var Dk=(Pk||(Pk=1,zk.exports=function(){if(Ok)return Ik;Ok=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,a=60110,s=60112,l=60113,u=60120,c=60115,d=60116,f=60121,p=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),o=v("react.profiler"),i=v("react.provider"),a=v("react.context"),s=v("react.forward_ref"),l=v("react.suspense"),u=v("react.suspense_list"),c=v("react.memo"),d=v("react.lazy"),f=v("react.block"),p=v("react.server.block"),h=v("react.fundamental"),m=v("react.debug_trace_mode"),g=v("react.legacy_hidden")}function y(f){if("object"==typeof f&&null!==f){var p=f.$$typeof;switch(p){case e:switch(f=f.type){case n:case o:case r:case l:case u:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case c:case i:return f;default:return p}}case t:return p}}}var b=i,x=e,_=s,w=n,k=d,S=c,C=t,E=o,T=r,A=l;return Ik.ContextConsumer=a,Ik.ContextProvider=b,Ik.Element=x,Ik.ForwardRef=_,Ik.Fragment=w,Ik.Lazy=k,Ik.Memo=S,Ik.Portal=C,Ik.Profiler=E,Ik.StrictMode=T,Ik.Suspense=A,Ik.isAsyncMode=function(){return!1},Ik.isConcurrentMode=function(){return!1},Ik.isContextConsumer=function(e){return y(e)===a},Ik.isContextProvider=function(e){return y(e)===i},Ik.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ik.isForwardRef=function(e){return y(e)===s},Ik.isFragment=function(e){return y(e)===n},Ik.isLazy=function(e){return y(e)===d},Ik.isMemo=function(e){return y(e)===c},Ik.isPortal=function(e){return y(e)===t},Ik.isProfiler=function(e){return y(e)===o},Ik.isStrictMode=function(e){return y(e)===r},Ik.isSuspense=function(e){return y(e)===l},Ik.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===m||e===r||e===l||e===u||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===f||e[0]===p)},Ik.typeOf=y,Ik}()),zk.exports),jk=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Fk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(jk);return t&&t[1]||""}(e)||t}function Bk(e,t,n){var r=Fk(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var $k,Hk="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Wk=Wh.oneOfType([Wh.func,Wh.object]),Uk=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:Ak,deepmerge:Lk,elementAcceptingRef:Nk,elementTypeAcceptingRef:Mk,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Fk(e,"Component");if("object"===Hv(e))switch(e.$$typeof){case Dk.ForwardRef:return Bk(e,e.render,"ForwardRef");case Dk.Memo:return Bk(e,e.type,"memo");default:return}}},ponyfillGlobal:Hk,refType:Wk}),Kk=g(Uk);function Gk(){if($k)return Tk;$k=1,Object.defineProperty(Tk,"__esModule",{value:!0}),Tk.hexToRgb=n,Tk.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),n=t.values;return"#".concat(n.map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})).join(""))},Tk.hslToRgb=r,Tk.decomposeColor=o,Tk.recomposeColor=i,Tk.getContrastRatio=function(e,t){var n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Tk.getLuminance=a,Tk.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?l(e,t):u(e,t)},Tk.fade=function(e,t){return s(e,t)},Tk.alpha=s,Tk.darken=l,Tk.lighten=u;var e=Kk;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function n(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function r(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),i({type:u,values:c})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(n(t));var r=t.indexOf("("),i=t.substring(0,r);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var a=t.substring(r+1,t.length-1).split(",");return{type:i,values:a=a.map((function(e){return parseFloat(e)}))}}function i(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function a(e){var t="hsl"===(e=o(e)).type?o(r(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,n){return e=o(e),n=t(n),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=n,i(e)}function l(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]*=1-n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-n;return i(e)}function u(e,n){if(e=o(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;return i(e)}return Tk}var Yk,Vk,qk,Jk={},Qk={exports:{}},Xk={exports:{}},Zk={exports:{}};function eS(){return Yk||(Yk=1,function(e){var t=Ek().default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Zk)),Zk.exports}function tS(){return Vk||(Vk=1,function(e){var t=Ek().default,n=eS();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Xk)),Xk.exports}function nS(){return qk||(qk=1,function(e){var t=tS();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Qk)),Qk.exports}var rS,oS={exports:{}};function iS(){return rS||(rS=1,function(e){var t=Py();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],-1===n.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(oS)),oS.exports}var aS,sS={};function lS(){if(aS)return sS;aS=1;var e=ey();Object.defineProperty(sS,"__esModule",{value:!0}),sS.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:i,up:d,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return i[e]}},c)},sS.keys=void 0;var t=e(Ny()),n=e(iS()),r=["xs","sm","md","lg","xl"];return sS.keys=r,sS}var uS,cS={};function dS(){if(uS)return cS;uS=1;var e=ey();Object.defineProperty(cS,"__esModule",{value:!0}),cS.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(nS()),n=e(Ny());return cS}var fS,pS={},hS={};function mS(){if(fS)return hS;fS=1,Object.defineProperty(hS,"__esModule",{value:!0}),hS.default=void 0;var e={black:"#000",white:"#fff"};return hS.default=e,hS}var gS,vS={};function yS(){if(gS)return vS;gS=1,Object.defineProperty(vS,"__esModule",{value:!0}),vS.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return vS.default=e,vS}var bS,xS={};function _S(){if(bS)return xS;bS=1,Object.defineProperty(xS,"__esModule",{value:!0}),xS.default=void 0;var e={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"};return xS.default=e,xS}var wS,kS={};function SS(){if(wS)return kS;wS=1,Object.defineProperty(kS,"__esModule",{value:!0}),kS.default=void 0;var e={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"};return kS.default=e,kS}var CS,ES={};function TS(){if(CS)return ES;CS=1,Object.defineProperty(ES,"__esModule",{value:!0}),ES.default=void 0;var e={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"};return ES.default=e,ES}var AS,RS={};function LS(){if(AS)return RS;AS=1,Object.defineProperty(RS,"__esModule",{value:!0}),RS.default=void 0;var e={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"};return RS.default=e,RS}var NS,MS={};function OS(){if(NS)return MS;NS=1,Object.defineProperty(MS,"__esModule",{value:!0}),MS.default=void 0;var e={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"};return MS.default=e,MS}var PS,zS,IS={};function DS(){if(PS)return IS;PS=1,Object.defineProperty(IS,"__esModule",{value:!0}),IS.default=void 0;var e={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"};return IS.default=e,IS}function jS(){if(zS)return pS;zS=1;var e=ey();Object.defineProperty(pS,"__esModule",{value:!0}),pS.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,y=e.secondary,b=void 0===y?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:y,x=e.error,_=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,k=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,S=e.info,C=void 0===S?{light:c.default[300],main:c.default[500],dark:c.default[700]}:S,E=e.success,T=void 0===E?{light:d.default[300],main:d.default[500],dark:d.default[700]}:E,A=e.type,R=void 0===A?"light":A,L=e.contrastThreshold,N=void 0===L?3:L,M=e.tonalOffset,O=void 0===M?.2:M,P=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function z(e){return(0,f.getContrastRatio)(e,h.text.primary)>=N?h.text.primary:p.text.primary}var I=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=z(e.main)),e},D={dark:h,light:p};return(0,r.deepmerge)((0,t.default)({common:o.default,type:R,primary:I(v),secondary:I(b,"A400","A200","A700"),error:I(_),warning:I(k),info:I(C),success:I(T),grey:i.default,contrastThreshold:N,getContrastText:z,augmentColor:I,tonalOffset:O},D[R]),P)},pS.dark=pS.light=void 0;var t=e(Ny()),n=e(iS()),r=Kk,o=e(mS()),i=e(yS()),a=e(_S()),s=e(SS()),l=e(TS()),u=e(LS()),c=e(OS()),d=e(DS()),f=Gk(),p={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},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}};pS.light=p;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.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}};function m(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,f.lighten)(e.main,o):"dark"===t&&(e.dark=(0,f.darken)(e.main,i)))}return pS.dark=h,pS}var FS,BS={};function $S(){if(FS)return BS;FS=1;var e=ey();Object.defineProperty(BS,"__esModule",{value:!0}),BS.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,f=u.fontSize,p=void 0===f?14:f,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,v=void 0===g?400:g,y=u.fontWeightMedium,b=void 0===y?500:y,x=u.fontWeightBold,_=void 0===x?700:x,w=u.htmlFontSize,k=void 0===w?16:w,S=u.allVariants,C=u.pxToRem,E=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),T=p/14,A=C||function(e){return"".concat(e/k*T,"rem")},R=function(e,n,r,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:A(n),lineHeight:r},d===s?{letterSpacing:"".concat(o(i/n),"em")}:{},a,S)},L={h1:R(m,96,1.167,-1.5),h2:R(m,60,1.2,-.5),h3:R(v,48,1.167,0),h4:R(v,34,1.235,.25),h5:R(v,24,1.334,0),h6:R(b,20,1.6,.15),subtitle1:R(v,16,1.75,.15),subtitle2:R(b,14,1.57,.1),body1:R(v,16,1.5,.15),body2:R(v,14,1.43,.15),button:R(b,14,1.75,.4,a),caption:R(v,12,1.66,.4),overline:R(v,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:k,pxToRem:A,round:i,fontFamily:d,fontSize:p,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:_},L),E,{clone:!1})};var t=e(Ny()),n=e(iS()),r=Kk;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return BS}var HS,WS={};function US(){if(HS)return WS;HS=1,Object.defineProperty(WS,"__esModule",{value:!0}),WS.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return WS.default=t,WS}var KS,GS={};function YS(){if(KS)return GS;KS=1,Object.defineProperty(GS,"__esModule",{value:!0}),GS.default=void 0;var e={borderRadius:4};return GS.default=e,GS}var VS={};function qS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function JS(e,t){if(e){if("string"==typeof e)return qS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qS(e,t):void 0}}function QS(e){return function(e){if(Array.isArray(e))return qS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||JS(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XS(e,t){return t?Lk(e,t,{clone:!1}):e}var ZS={xs:0,sm:600,md:960,lg:1280,xl:1920},eC={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(ZS[e],"px)")}};function tC(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||eC;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Hv(t)){var o=e.theme.breakpoints||eC;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}function nC(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function rC(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=nC(e.theme,o)||{};return tC(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=nC(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=Wv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)}))};return a.propTypes={},a.filterProps=[t],a}function oC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?XS(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r}function iC(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var aC=rC({prop:"border",themeKey:"borders",transform:iC}),sC=rC({prop:"borderTop",themeKey:"borders",transform:iC}),lC=rC({prop:"borderRight",themeKey:"borders",transform:iC}),uC=rC({prop:"borderBottom",themeKey:"borders",transform:iC}),cC=rC({prop:"borderLeft",themeKey:"borders",transform:iC}),dC=rC({prop:"borderColor",themeKey:"palette"}),fC=rC({prop:"borderRadius",themeKey:"shape"}),pC=oC(aC,sC,lC,uC,cC,dC,fC);function hC(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function mC(e){var t=function(t){var n=e(t);return t.css?of({},XS(n,e(of({theme:t.theme},t.css))),hC(t.css,[e.filterProps])):t.sx?of({},XS(n,e(of({theme:t.theme},t.sx))),hC(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(QS(e.filterProps)),t}var gC=oC(rC({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),rC({prop:"display"}),rC({prop:"overflow"}),rC({prop:"textOverflow"}),rC({prop:"visibility"}),rC({prop:"whiteSpace"})),vC=rC({prop:"flexBasis"}),yC=rC({prop:"flexDirection"}),bC=rC({prop:"flexWrap"}),xC=rC({prop:"justifyContent"}),_C=rC({prop:"alignItems"}),wC=rC({prop:"alignContent"}),kC=rC({prop:"order"}),SC=rC({prop:"flex"}),CC=rC({prop:"flexGrow"}),EC=rC({prop:"flexShrink"}),TC=rC({prop:"alignSelf"}),AC=rC({prop:"justifyItems"}),RC=rC({prop:"justifySelf"}),LC=oC(vC,yC,bC,xC,_C,wC,kC,SC,CC,EC,TC,AC,RC),NC=rC({prop:"gridGap"}),MC=rC({prop:"gridColumnGap"}),OC=rC({prop:"gridRowGap"}),PC=rC({prop:"gridColumn"}),zC=rC({prop:"gridRow"}),IC=rC({prop:"gridAutoFlow"}),DC=rC({prop:"gridAutoColumns"}),jC=rC({prop:"gridAutoRows"}),FC=rC({prop:"gridTemplateColumns"}),BC=rC({prop:"gridTemplateRows"}),$C=rC({prop:"gridTemplateAreas"}),HC=rC({prop:"gridArea"}),WC=oC(NC,MC,OC,PC,zC,IC,DC,jC,FC,BC,$C,HC),UC=rC({prop:"color",themeKey:"palette"}),KC=rC({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),GC=oC(UC,KC),YC=rC({prop:"position"}),VC=rC({prop:"zIndex",themeKey:"zIndex"}),qC=rC({prop:"top"}),JC=rC({prop:"right"}),QC=rC({prop:"bottom"}),XC=rC({prop:"left"}),ZC=oC(YC,VC,qC,JC,QC,XC),eE=rC({prop:"boxShadow",themeKey:"shadows"});function tE(e){return e<=1?"".concat(100*e,"%"):e}var nE=rC({prop:"width",transform:tE}),rE=rC({prop:"maxWidth",transform:tE}),oE=rC({prop:"minWidth",transform:tE}),iE=rC({prop:"height",transform:tE}),aE=rC({prop:"maxHeight",transform:tE}),sE=rC({prop:"minHeight",transform:tE}),lE=rC({prop:"size",cssProperty:"width",transform:tE}),uE=rC({prop:"size",cssProperty:"height",transform:tE}),cE=rC({prop:"boxSizing"}),dE=oC(nE,rE,oE,iE,aE,sE,cE);function fE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||JS(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pE={m:"margin",p:"padding"},hE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gE=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!mE[e])return[e];e=mE[e]}var t=fE(e.split(""),2),n=t[0],r=t[1],o=pE[n],i=hE[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),vE=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function yE(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function bE(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function xE(e){var t=yE(e.theme);return Object.keys(e).map((function(n){if(-1===vE.indexOf(n))return null;var r=bE(gE(n),t),o=e[n];return tC(e,o,r)})).reduce(XS,{})}xE.propTypes={},xE.filterProps=vE;var _E,wE=rC({prop:"fontFamily",themeKey:"typography"}),kE=rC({prop:"fontSize",themeKey:"typography"}),SE=rC({prop:"fontStyle",themeKey:"typography"}),CE=rC({prop:"fontWeight",themeKey:"typography"}),EE=rC({prop:"letterSpacing"}),TE=rC({prop:"lineHeight"}),AE=rC({prop:"textAlign"}),RE=oC(wE,kE,SE,CE,EE,TE,AE),LE=Object.freeze({__proto__:null,alignContent:wC,alignItems:_C,alignSelf:TC,bgcolor:KC,border:aC,borderBottom:uC,borderColor:dC,borderLeft:cC,borderRadius:fC,borderRight:lC,borderTop:sC,borders:pC,bottom:QC,boxSizing:cE,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||eC,o=r.keys.reduce((function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(of({theme:t.theme},t[o]))),n}),null);return XS(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(QS(e.filterProps)),t},color:UC,compose:oC,createUnarySpacing:yE,css:function(e){return mC(e)},display:gC,flex:SC,flexBasis:vC,flexDirection:yC,flexGrow:CC,flexShrink:EC,flexWrap:bC,flexbox:LC,fontFamily:wE,fontSize:kE,fontStyle:SE,fontWeight:CE,grid:WC,gridArea:HC,gridAutoColumns:DC,gridAutoFlow:IC,gridAutoRows:jC,gridColumn:PC,gridColumnGap:MC,gridGap:NC,gridRow:zC,gridRowGap:OC,gridTemplateAreas:$C,gridTemplateColumns:FC,gridTemplateRows:BC,height:iE,justifyContent:xC,justifyItems:AC,justifySelf:RC,left:XC,letterSpacing:EE,lineHeight:TE,maxHeight:aE,maxWidth:rE,minHeight:sE,minWidth:oE,order:kC,palette:GC,position:YC,positions:ZC,right:JC,shadows:eE,sizeHeight:uE,sizeWidth:lE,sizing:dE,spacing:xE,style:rC,styleFunctionSx:mC,textAlign:AE,top:qC,typography:RE,width:nE,zIndex:VC}),NE=g(LE);function ME(){if(_E)return VS;_E=1,Object.defineProperty(VS,"__esModule",{value:!0}),VS.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=NE;return VS}var OE,PE={};function zE(){if(OE)return PE;OE=1;var e=ey();Object.defineProperty(PE,"__esModule",{value:!0}),PE.default=PE.duration=PE.easing=void 0;var t=e(iS()),n={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)"};PE.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}PE.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?r.standard:a,l=i.easing,u=void 0===l?n.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return PE.default=i,PE}var IE,DE,jE={};function FE(){if(IE)return jE;IE=1,Object.defineProperty(jE,"__esModule",{value:!0}),jE.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return jE.default=e,jE}function BE(){if(DE)return Jk;DE=1;var e=ey();Object.defineProperty(Jk,"__esModule",{value:!0}),Jk.createMuiTheme=function(){return f.apply(void 0,arguments)},Jk.default=void 0,e(nS());var t=e(iS()),n=Kk,r=e(lS()),o=e(dS()),i=e(jS()),a=e($S()),s=e(US()),l=e(YS()),u=e(ME()),c=e(zE()),d=e(FE());function f(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=e.breakpoints,p=void 0===f?{}:f,h=e.mixins,m=void 0===h?{}:h,g=e.palette,v=void 0===g?{}:g,y=e.spacing,b=e.typography,x=void 0===b?{}:b,_=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),k=(0,r.default)(p),S=(0,u.default)(y),C=(0,n.deepmerge)({breakpoints:k,direction:"ltr",mixins:(0,o.default)(k,S,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:S,shape:l.default,transitions:c.default,zIndex:d.default},_),E=arguments.length,T=new Array(E>1?E-1:0),A=1;A<E;A++)T[A-1]=arguments[A];return C=T.reduce((function(e,t){return(0,n.deepmerge)(e,t)}),C)}var p=f;return Jk.default=p,Jk}var $E,HE={};function WE(){if($E)return HE;$E=1;var e=ey();Object.defineProperty(HE,"__esModule",{value:!0}),HE.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=Kk,n=e(BE());return HE}var UE={},KE="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",GE=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function YE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==GE.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[KE]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function VE(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var qE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JE="object"===("undefined"==typeof window?"undefined":qE(window))&&"object"===("undefined"==typeof document?"undefined":qE(document))&&9===document.nodeType;function QE(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wv(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var XE={}.constructor;function ZE(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(ZE);if(e.constructor!==XE)return e;var t={};for(var n in e)t[n]=ZE(e[n]);return t}function eT(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=ZE(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var tT=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},nT=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=tT(e[n]," ");else t=tT(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function rT(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function oT(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function iT(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=rT(n),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var f in d){var p=d[f];null!=p&&(r&&(r+=l),r+=oT(f+":"+u+nT(p)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=oT(h+":"+u+nT(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=oT(g+":"+u+nT(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),oT(""+e+u+"{"+r,--i)+oT("}",i)):r}var aT=/([[\].#*$><+~=|^:(),"'`\s])/g,sT="undefined"!=typeof CSS&&CSS.escape,lT=function(e){return sT?sT(e):e.replace(aT,"\\$1")},uT=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),cT=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(lb(lb(o)),s),o.selectorText="."+lT(o.id)),o}Jy(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=nT(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?of({},e,{allowEmpty:!0}):e;return iT(this.selectorText,this.style,n)},QE(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(uT),dT={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new cT(e,t,n)}},fT={indent:1,children:!0},pT=/@([\w-]+)/,hT=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(pT);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new jT(of({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=fT);var t=rT(e).linebreak;if(null==e.indent&&(e.indent=fT.indent),null==e.children&&(e.children=fT.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),mT=/@container|@media|@supports\s+/,gT={onCreateRule:function(e,t,n){return mT.test(e)?new hT(e,t,n):null}},vT={indent:1,children:!0},yT=/@keyframes\s+([\w-]+)/,bT=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(yT);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:lT(a(this,i)),this.rules=new jT(of({},n,{parent:this})),t)this.rules.add(s,t[s],of({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=vT);var t=rT(e).linebreak;if(null==e.indent&&(e.indent=vT.indent),null==e.children&&(e.children=vT.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),xT=/@keyframes\s+/,_T=/\$([\w-]+)/g,wT=function(e,t){return"string"==typeof e?e.replace(_T,(function(e,n){return n in t?t[n]:e})):e},kT=function(e,t,n){var r=e[t],o=wT(r,n);o!==r&&(e[t]=o)},ST={onCreateRule:function(e,t,n){return"string"==typeof e&&xT.test(e)?new bT(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&kT(e,"animation-name",n.keyframes),"animation"in e&&kT(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return wT(e,r.keyframes);default:return e}}},CT=function(e){function t(){return e.apply(this,arguments)||this}return Jy(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?of({},e,{allowEmpty:!0}):e;return iT(this.key,this.style,n)},t}(uT),ET={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new CT(e,t,n):null}},TT=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=rT(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=iT(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return iT(this.at,this.style,e)},e}(),AT=/@font-face/,RT={onCreateRule:function(e,t,n){return AT.test(e)?new TT(e,t,n):null}},LT=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return iT(this.key,this.style,e)},e}(),NT={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new LT(e,t,n):null}},MT=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),OT={"@charset":!0,"@import":!0,"@namespace":!0},PT={onCreateRule:function(e,t,n){return e in OT?new MT(e,t,n):null}},zT=[dT,gT,ST,ET,RT,NT,PT],IT={process:!0},DT={force:!0,process:!0},jT=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=of({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+lT(this.classes[d]));var f=eT(d,t,c);if(!f)return null;this.register(f);var p=void 0===c.index?this.index.length:c.index;return this.index.splice(p,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=of({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof cT?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof bT&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof cT?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof bT&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=IT);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,DT)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,DT)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=rT(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),FT=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=of({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new jT(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),BT=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),$T=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=af(t,["attached"]),o=rT(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},QE(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),HT=new $T,WT="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),UT="2f1acc6c3a606b082e5eef5e54414ffb";null==WT[UT]&&(WT[UT]=0);var KT=WT[UT]++,GT=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+KT+o+t:i+n.key+"-"+KT+(o?"-"+o:"")+"-"+t}},YT=function(e){var t;return function(){return t||(t=e()),t}},VT=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},qT=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=nT(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},JT=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},QT=function(e,t){return e.selectorText=t,e.selectorText===t},XT=YT((function(){return document.querySelector("head")}));function ZT(e){var t=HT.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=XT(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var eA=YT((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),tA=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},nA=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},rA=function(){function e(e){this.getPropertyValue=VT,this.setProperty=qT,this.removeProperty=JT,this.setSelector=QT,this.hasInsertedRules=!1,this.cssRules=[],e&&HT.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=eA();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ZT(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else XT().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=nA(n,t);if(!1===(o=tA(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=nA(n,t),l=tA(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof FT&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),oA=0,iA=function(){function e(e){this.id=oA++,this.version="10.10.0",this.plugins=new BT,this.options={id:{minify:!1},createGenerateId:GT,Renderer:JE?rA:null,plugins:[]},this.generateId=GT({minify:!1});for(var t=0;t<zT.length;t++)this.plugins.use(zT[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=of({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===HT.index?0:HT.index+1);var r=new FT(e,of({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),HT.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=of({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=eT(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),aA=function(e){return new iA(e)},sA="object"==typeof CSS&&null!=CSS&&"number"in CSS;function lA(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=lA(r);i&&(t||(t={}),t[n]=i)}}return t}
97
97
  /**
98
98
  * A better abstraction over CSS.
99
99
  *
100
100
  * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
101
101
  * @website https://github.com/cssinjs/jss
102
102
  * @license MIT
103
- */Ob();var Ib=Date.now(),Db="fnValues"+Ib,$b="fnStyle"+ ++Ib,zb="@global",Fb="@global ",Bb=function(){function e(e,t,n){for(var r in this.type="global",this.at=zb,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new cb(gn({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Hb=function(){function e(e,t,n){this.type="global",this.at=zb,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,gn({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),jb=/\s*,\s*/g;function Wb(e,t){for(var n=e.split(jb),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Gb(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===zb)return new Bb(e,t,n);if("@"===e[0]&&e.substr(0,8)===Fb)return new Hb(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[zb]:null;if(o){for(var i in o)t.addRule(i,o[i],gn({},n,{selector:Wb(i,e.selector)}));delete r[zb]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===zb){var i=Wb(o.substr(7),e.selector);t.addRule(i,r[o],gn({},n,{selector:i})),delete r[o]}}(e,t))}}}var Yb=/\s*,\s*/g,Ub=/&/g,Kb=/\$([\w-]+)/g;function Vb(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(Yb),r=e.split(Yb),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(Ub,a):a+" "+s}return o}function n(e,t,n){if(n)return gn({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=gn({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,s=o,u=s.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),f="@"===c[0];if(d||f){if(a=n(s,u,a),d){var p=t(c,s.selector);l||(l=e(u,i)),p=p.replace(Kb,l);var h=s.key+"-"+c;"replaceRule"in u?u.replaceRule(h,r[c],gn({},a,{selector:p})):u.addRule(h,r[c],gn({},a,{selector:p}))}else f&&u.addRule(c,{},a).addRule(s.key,r[c],{selector:s.selector});delete r[c]}}return r}}}var qb=/[A-Z]/g,Qb=/^ms-/,Xb={};function Jb(e){return"-"+e.toLowerCase()}function Zb(e){if(Xb.hasOwnProperty(e))return Xb[e];var t=e.replace(qb,Jb);return Xb[e]=Qb.test(t)?"-"+t:t}function ey(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Zb(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(ey):t.fallbacks=ey(e.fallbacks)),t}var ty=Mb&&CSS?CSS.px:"px",ny=Mb&&CSS?CSS.ms:"ms",ry=Mb&&CSS?CSS.percent:"%";function oy(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var iy=oy({"animation-delay":ny,"animation-duration":ny,"background-position":ty,"background-position-x":ty,"background-position-y":ty,"background-size":ty,border:ty,"border-bottom":ty,"border-bottom-left-radius":ty,"border-bottom-right-radius":ty,"border-bottom-width":ty,"border-left":ty,"border-left-width":ty,"border-radius":ty,"border-right":ty,"border-right-width":ty,"border-top":ty,"border-top-left-radius":ty,"border-top-right-radius":ty,"border-top-width":ty,"border-width":ty,"border-block":ty,"border-block-end":ty,"border-block-end-width":ty,"border-block-start":ty,"border-block-start-width":ty,"border-block-width":ty,"border-inline":ty,"border-inline-end":ty,"border-inline-end-width":ty,"border-inline-start":ty,"border-inline-start-width":ty,"border-inline-width":ty,"border-start-start-radius":ty,"border-start-end-radius":ty,"border-end-start-radius":ty,"border-end-end-radius":ty,margin:ty,"margin-bottom":ty,"margin-left":ty,"margin-right":ty,"margin-top":ty,"margin-block":ty,"margin-block-end":ty,"margin-block-start":ty,"margin-inline":ty,"margin-inline-end":ty,"margin-inline-start":ty,padding:ty,"padding-bottom":ty,"padding-left":ty,"padding-right":ty,"padding-top":ty,"padding-block":ty,"padding-block-end":ty,"padding-block-start":ty,"padding-inline":ty,"padding-inline-end":ty,"padding-inline-start":ty,"mask-position-x":ty,"mask-position-y":ty,"mask-size":ty,height:ty,width:ty,"min-height":ty,"max-height":ty,"min-width":ty,"max-width":ty,bottom:ty,left:ty,top:ty,right:ty,inset:ty,"inset-block":ty,"inset-block-end":ty,"inset-block-start":ty,"inset-inline":ty,"inset-inline-end":ty,"inset-inline-start":ty,"box-shadow":ty,"text-shadow":ty,"column-gap":ty,"column-rule":ty,"column-rule-width":ty,"column-width":ty,"font-size":ty,"font-size-delta":ty,"letter-spacing":ty,"text-decoration-thickness":ty,"text-indent":ty,"text-stroke":ty,"text-stroke-width":ty,"word-spacing":ty,motion:ty,"motion-offset":ty,outline:ty,"outline-offset":ty,"outline-width":ty,perspective:ty,"perspective-origin-x":ry,"perspective-origin-y":ry,"transform-origin":ry,"transform-origin-x":ry,"transform-origin-y":ry,"transform-origin-z":ry,"transition-delay":ny,"transition-duration":ny,"vertical-align":ty,"flex-basis":ty,"shape-margin":ty,size:ty,gap:ty,grid:ty,"grid-gap":ty,"row-gap":ty,"grid-row-gap":ty,"grid-column-gap":ty,"grid-template-rows":ty,"grid-template-columns":ty,"grid-auto-rows":ty,"grid-auto-columns":ty,"box-shadow-x":ty,"box-shadow-y":ty,"box-shadow-blur":ty,"box-shadow-spread":ty,"font-line-height":ty,"text-shadow-x":ty,"text-shadow-y":ty,"text-shadow-blur":ty});function ay(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=ay(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=ay(o,t[o],n);else for(var i in t)t[i]=ay(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||iy[e];return!a||0===t&&a===ty?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ly(e){void 0===e&&(e={});var t=oy(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=ay(r,e[r],t);return e},onChangeValue:function(e,n){return ay(n,e,t)}}}var sy="",uy="",cy="",dy="",fy=Sv&&"ontouchstart"in document.documentElement;if(Sv){var py={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},hy=document.createElement("p").style;for(var my in py)if(my+"Transform"in hy){sy=my,uy=py[my];break}"Webkit"===sy&&"msHyphens"in hy&&(sy="ms",uy=py.ms,dy="edge"),"Webkit"===sy&&"-apple-trailing-word"in hy&&(cy="apple")}var gy=sy,vy=uy,by=cy,yy=dy,xy=fy;var _y={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===gy?"-webkit-"+e:vy+e)}},Sy={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===gy?vy+"print-"+e:e)}},Cy=/[-\s]+(.)?/g;function Ey(e,t){return t?t.toUpperCase():""}function wy(e){return e.replace(Cy,Ey)}function ky(e){return wy("-"+e)}var Ry,Ty={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===gy){var n="mask-image";if(wy(n)in t)return e;if(gy+ky(n)in t)return vy+e}return e}},Ay={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==by||xy?e:vy+e)}},Ny={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:vy+e)}},Ly={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:vy+e)}},Oy={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===gy||"ms"===gy&&"edge"!==yy?vy+e:e)}},My={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===gy||"ms"===gy||"apple"===by?vy+e:e)}},Py={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===gy?"WebkitColumn"+ky(e)in t&&vy+"column-"+e:"Moz"===gy&&("page"+ky(e)in t&&"page-"+e))}},Iy={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===gy)return e;var n=e.replace("-inline","");return gy+ky(n)in t&&vy+n}},Dy={supportedProperty:function(e,t){return wy(e)in t&&e}},$y={supportedProperty:function(e,t){var n=ky(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:gy+n in t?vy+e:"Webkit"!==gy&&"Webkit"+n in t&&"-webkit-"+e}},zy={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===gy?""+vy+e:e)}},Fy={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===gy?vy+"scroll-chaining":e)}},By={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Hy={supportedProperty:function(e,t){var n=By[e];return!!n&&(gy+ky(n)in t&&vy+n)}},jy={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Wy=Object.keys(jy),Gy=function(e){return vy+e},Yy={supportedProperty:function(e,t,n){var r=n.multiple;if(Wy.indexOf(e)>-1){var o=jy[e];if(!Array.isArray(o))return gy+ky(o)in t&&vy+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(gy+ky(o[0])in t))return!1;return o.map(Gy)}return!1}},Uy=[_y,Sy,Ty,Ay,Ny,Ly,Oy,My,Py,Iy,Dy,$y,zy,Fy,Hy,Yy],Ky=Uy.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Vy=Uy.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Cm(t.noPrefill)),e}),[]),qy={};if(Sv){Ry=document.createElement("p");var Qy=window.getComputedStyle(document.documentElement,"");for(var Xy in Qy)isNaN(Xy)||(qy[Qy[Xy]]=Qy[Xy]);Vy.forEach((function(e){return delete qy[e]}))}function Jy(e,t){if(void 0===t&&(t={}),!Ry)return e;if(null!=qy[e])return qy[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ry.style);for(var n=0;n<Ky.length&&(qy[e]=Ky[n](e,Ry.style,t),!qy[e]);n++);try{Ry.style[e]=""}catch(e){return!1}return qy[e]}var Zy,ex={},tx={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},nx=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function rx(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Jy(t):", "+Jy(n);return r||(t||n)}function ox(e,t){var n=t;if(!Zy||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ex[r])return ex[r];try{Zy.style[e]=n}catch(e){return ex[r]=!1,!1}if(tx[e])n=n.replace(nx,rx);else if(""===Zy.style[e]&&("-ms-flex"===(n=vy+n)&&(Zy.style[e]="-ms-flexbox"),Zy.style[e]=n,""===Zy.style[e]))return ex[r]=!1,!1;return Zy.style[e]="",ex[r]=n,ex[r]}function ix(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Jy(n);i&&i!==n&&(o=!0);var a=!1,l=ox(i,Tv(r));l&&l!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=l||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===gy?e:"@"+vy+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ox(t,Tv(e))||e}}}function ax(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=kv(e,{},n);return r[$b]=t,r},onProcessStyle:function(e,t){if(Db in t||$b in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[Db]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[$b];i&&(o.style=i(e)||{});var a=o[Db];if(a)for(var l in a)o.prop(l,a[l](e),r)}},Gb(),Vb(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=ey(e[t]);return e}return ey(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Zb(t);return t===r?e:(n.prop(r,e),null)}},ly(),"undefined"==typeof window?null:ix(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function lx(e,t){if(null==e)return{};var n,r,o=vn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=gn({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Sv&&(Zy=document.createElement("p"));var ux=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},cx=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},dx=function(e,t,n){e.get(t).delete(n)},fx=z.createContext(null);function px(){return z.useContext(fx)}var hx,mx=Ob(ax()),gx=yv(),vx=new Map,bx={disableGeneration:!1,generateClassName:gx,jss:mx,sheetsCache:null,sheetsManager:vx,sheetsRegistry:null},yx=z.createContext(bx);function xx(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=lx(e,["children","injectFirst","disableGeneration"]),l=gn({},z.useContext(yx),{disableGeneration:i},a);if(!l.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!hx){var s=document.head;hx=document.createComment("mui-inject-first"),s.insertBefore(hx,s.firstChild)}l.jss=Ob({plugins:ax().plugins,insertionPoint:hx})}return z.createElement(yx.Provider,{value:l},t)}var _x=-1e9;var Sx={};function Cx(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var l=cx(o.sheetsManager,i,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},ux(o.sheetsManager,i,r,l));var s=gn({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});s.generateId=s.serverGenerateClassName||s.generateClassName;var u=o.sheetsRegistry;if(0===l.refs){var c;o.sheetsCache&&(c=cx(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,gn({link:!1},s))).attach(),o.sheetsCache&&ux(o.sheetsCache,i,r,c)),u&&u.add(c),l.staticSheet=c,l.dynamicStyles=Pb(d)}if(l.dynamicStyles){var f=o.jss.createStyleSheet(l.dynamicStyles,gn({link:!0},s));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=sx({baseClasses:l.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=l.staticSheet.classes;l.refs+=1}}function Ex(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?Sx:i,l=lx(t,["name","classNamePrefix","Component","defaultTheme"]),s=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=gn({},o);return Object.keys(i).forEach((function(e){a[e]=nh(a[e],i[e])})),a},options:{}}}(e),u=n||r||"makeStyles";s.options={index:_x+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=px()||a,r=gn({},z.useContext(yx),l),i=z.useRef(),u=z.useRef();!function(e,t){var n,r=z.useRef([]),o=z.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),z.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:s,stylesOptions:r,theme:t};return Cx(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=cx(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(dx(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,s]),z.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),u.current=!0}));var c=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=sx({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return c}}var wx=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return Cv(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new pb;var n=yv();return z.createElement(xx,gn({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return z.createElement("style",gn({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function kx(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=kx(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Rx(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=kx(e))&&(r&&(r+=" "),r+=t);return r}function Tx(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=z.forwardRef((function(n,r){var o=n.innerRef,i=lx(n,["innerRef"]),a=px()||e;return z.createElement(t,gn({theme:a,ref:o||r},i))}));return Ir(n,t),n}}var Ax,Nx=Tx(),Lx=Object.freeze({__proto__:null,ServerStyleSheets:wx,StylesContext:yx,StylesProvider:xx,ThemeProvider:function(e){var t=e.children,n=e.theme,r=px(),o=z.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):gn({},e,t)}(r,n);return null!=e&&(e[vv]=null!==r),e}),[n,r]);return z.createElement(fx.Provider,{value:o},t)},createGenerateClassName:yv,createStyles:function(e){return e},getThemeProps:xv,jssPreset:ax,makeStyles:Ex,mergeClasses:sx,sheetsManager:vx,styled:function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=lx(r,["name"]),a=o,l=Ex("function"==typeof t?function(e){return{root:function(n){return t(gn({theme:e},n))}}}:{root:t},gn({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var s=z.forwardRef((function(t,r){var o,i,a,s=t.children,u=t.className,c=t.clone,d=t.component,f=lx(t,["children","className","clone","component"]),p=Rx(l(t).root,u),h=f;if(n&&(o=h,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),c)return z.cloneElement(s,gn({className:Rx(s.props.className,p)},h));if("function"==typeof s)return s(gn({className:p},h));var m=d||e;return z.createElement(m,gn({ref:r,className:p},h),s)}));return Ir(s,e),s}},useTheme:px,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,l=lx(t,["defaultTheme","withTheme","name"]),s=a,u=Ex(e,gn({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:s},l)),c=z.forwardRef((function(e,t){e.classes;var o,l=e.innerRef,s=lx(e,["classes","innerRef"]),c=u(gn({},n.defaultProps,e)),d=s;return("string"==typeof a||i)&&(o=px()||r,a&&(d=xv({theme:o,name:a,props:s})),i&&!d.theme&&(d.theme=o)),z.createElement(n,gn({ref:l||t,classes:c},d))}));return Ir(c,n),c}},withTheme:Nx,withThemeCreator:Tx}),Ox=g(Lx);
103
+ */aA();var uA=Date.now(),cA="fnValues"+uA,dA="fnStyle"+ ++uA,fA="@global",pA="@global ",hA=function(){function e(e,t,n){for(var r in this.type="global",this.at=fA,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new jT(of({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),mA=function(){function e(e,t,n){this.type="global",this.at=fA,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,of({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),gA=/\s*,\s*/g;function vA(e,t){for(var n=e.split(gA),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function yA(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===fA)return new hA(e,t,n);if("@"===e[0]&&e.substr(0,8)===pA)return new mA(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[fA]:null;if(o){for(var i in o)t.addRule(i,o[i],of({},n,{selector:vA(i,e.selector)}));delete r[fA]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===fA){var i=vA(o.substr(7),e.selector);t.addRule(i,r[o],of({},n,{selector:i})),delete r[o]}}(e,t))}}}var bA=/\s*,\s*/g,xA=/&/g,_A=/\$([\w-]+)/g;function wA(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(bA),r=e.split(bA),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(xA,a):a+" "+l}return o}function n(e,t,n){if(n)return of({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=of({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),f="@"===c[0];if(d||f){if(a=n(l,u,a),d){var p=t(c,l.selector);s||(s=e(u,i)),p=p.replace(_A,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,r[c],of({},a,{selector:p})):u.addRule(h,r[c],of({},a,{selector:p}))}else f&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var kA=/[A-Z]/g,SA=/^ms-/,CA={};function EA(e){return"-"+e.toLowerCase()}function TA(e){if(CA.hasOwnProperty(e))return CA[e];var t=e.replace(kA,EA);return CA[e]=SA.test(t)?"-"+t:t}function AA(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:TA(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(AA):t.fallbacks=AA(e.fallbacks)),t}var RA=sA&&CSS?CSS.px:"px",LA=sA&&CSS?CSS.ms:"ms",NA=sA&&CSS?CSS.percent:"%";function MA(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var OA=MA({"animation-delay":LA,"animation-duration":LA,"background-position":RA,"background-position-x":RA,"background-position-y":RA,"background-size":RA,border:RA,"border-bottom":RA,"border-bottom-left-radius":RA,"border-bottom-right-radius":RA,"border-bottom-width":RA,"border-left":RA,"border-left-width":RA,"border-radius":RA,"border-right":RA,"border-right-width":RA,"border-top":RA,"border-top-left-radius":RA,"border-top-right-radius":RA,"border-top-width":RA,"border-width":RA,"border-block":RA,"border-block-end":RA,"border-block-end-width":RA,"border-block-start":RA,"border-block-start-width":RA,"border-block-width":RA,"border-inline":RA,"border-inline-end":RA,"border-inline-end-width":RA,"border-inline-start":RA,"border-inline-start-width":RA,"border-inline-width":RA,"border-start-start-radius":RA,"border-start-end-radius":RA,"border-end-start-radius":RA,"border-end-end-radius":RA,margin:RA,"margin-bottom":RA,"margin-left":RA,"margin-right":RA,"margin-top":RA,"margin-block":RA,"margin-block-end":RA,"margin-block-start":RA,"margin-inline":RA,"margin-inline-end":RA,"margin-inline-start":RA,padding:RA,"padding-bottom":RA,"padding-left":RA,"padding-right":RA,"padding-top":RA,"padding-block":RA,"padding-block-end":RA,"padding-block-start":RA,"padding-inline":RA,"padding-inline-end":RA,"padding-inline-start":RA,"mask-position-x":RA,"mask-position-y":RA,"mask-size":RA,height:RA,width:RA,"min-height":RA,"max-height":RA,"min-width":RA,"max-width":RA,bottom:RA,left:RA,top:RA,right:RA,inset:RA,"inset-block":RA,"inset-block-end":RA,"inset-block-start":RA,"inset-inline":RA,"inset-inline-end":RA,"inset-inline-start":RA,"box-shadow":RA,"text-shadow":RA,"column-gap":RA,"column-rule":RA,"column-rule-width":RA,"column-width":RA,"font-size":RA,"font-size-delta":RA,"letter-spacing":RA,"text-decoration-thickness":RA,"text-indent":RA,"text-stroke":RA,"text-stroke-width":RA,"word-spacing":RA,motion:RA,"motion-offset":RA,outline:RA,"outline-offset":RA,"outline-width":RA,perspective:RA,"perspective-origin-x":NA,"perspective-origin-y":NA,"transform-origin":NA,"transform-origin-x":NA,"transform-origin-y":NA,"transform-origin-z":NA,"transition-delay":LA,"transition-duration":LA,"vertical-align":RA,"flex-basis":RA,"shape-margin":RA,size:RA,gap:RA,grid:RA,"grid-gap":RA,"row-gap":RA,"grid-row-gap":RA,"grid-column-gap":RA,"grid-template-rows":RA,"grid-template-columns":RA,"grid-auto-rows":RA,"grid-auto-columns":RA,"box-shadow-x":RA,"box-shadow-y":RA,"box-shadow-blur":RA,"box-shadow-spread":RA,"font-line-height":RA,"text-shadow-x":RA,"text-shadow-y":RA,"text-shadow-blur":RA});function PA(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=PA(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=PA(o,t[o],n);else for(var i in t)t[i]=PA(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||OA[e];return!a||0===t&&a===RA?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function zA(e){void 0===e&&(e={});var t=MA(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=PA(r,e[r],t);return e},onChangeValue:function(e,n){return PA(n,e,t)}}}var IA="",DA="",jA="",FA="",BA=JE&&"ontouchstart"in document.documentElement;if(JE){var $A={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},HA=document.createElement("p").style;for(var WA in $A)if(WA+"Transform"in HA){IA=WA,DA=$A[WA];break}"Webkit"===IA&&"msHyphens"in HA&&(IA="ms",DA=$A.ms,FA="edge"),"Webkit"===IA&&"-apple-trailing-word"in HA&&(jA="apple")}var UA=IA,KA=DA,GA=jA,YA=FA,VA=BA;var qA={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===UA?"-webkit-"+e:KA+e)}},JA={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===UA?KA+"print-"+e:e)}},QA=/[-\s]+(.)?/g;function XA(e,t){return t?t.toUpperCase():""}function ZA(e){return e.replace(QA,XA)}function eR(e){return ZA("-"+e)}var tR,nR={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===UA){var n="mask-image";if(ZA(n)in t)return e;if(UA+eR(n)in t)return KA+e}return e}},rR={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==GA||VA?e:KA+e)}},oR={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:KA+e)}},iR={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:KA+e)}},aR={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===UA||"ms"===UA&&"edge"!==YA?KA+e:e)}},sR={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===UA||"ms"===UA||"apple"===GA?KA+e:e)}},lR={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===UA?"WebkitColumn"+eR(e)in t&&KA+"column-"+e:"Moz"===UA&&("page"+eR(e)in t&&"page-"+e))}},uR={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===UA)return e;var n=e.replace("-inline","");return UA+eR(n)in t&&KA+n}},cR={supportedProperty:function(e,t){return ZA(e)in t&&e}},dR={supportedProperty:function(e,t){var n=eR(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:UA+n in t?KA+e:"Webkit"!==UA&&"Webkit"+n in t&&"-webkit-"+e}},fR={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===UA?""+KA+e:e)}},pR={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===UA?KA+"scroll-chaining":e)}},hR={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},mR={supportedProperty:function(e,t){var n=hR[e];return!!n&&(UA+eR(n)in t&&KA+n)}},gR={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},vR=Object.keys(gR),yR=function(e){return KA+e},bR={supportedProperty:function(e,t,n){var r=n.multiple;if(vR.indexOf(e)>-1){var o=gR[e];if(!Array.isArray(o))return UA+eR(o)in t&&KA+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(UA+eR(o[0])in t))return!1;return o.map(yR)}return!1}},xR=[qA,JA,nR,rR,oR,iR,aR,sR,lR,uR,cR,dR,fR,pR,mR,bR],_R=xR.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),wR=xR.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,QS(t.noPrefill)),e}),[]),kR={};if(JE){tR=document.createElement("p");var SR=window.getComputedStyle(document.documentElement,"");for(var CR in SR)isNaN(CR)||(kR[SR[CR]]=SR[CR]);wR.forEach((function(e){return delete kR[e]}))}function ER(e,t){if(void 0===t&&(t={}),!tR)return e;if(null!=kR[e])return kR[e];"transition"!==e&&"transform"!==e||(t[e]=e in tR.style);for(var n=0;n<_R.length&&(kR[e]=_R[n](e,tR.style,t),!kR[e]);n++);try{tR.style[e]=""}catch(e){return!1}return kR[e]}var TR,AR={},RR={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},LR=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function NR(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?ER(t):", "+ER(n);return r||(t||n)}function MR(e,t){var n=t;if(!TR||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=AR[r])return AR[r];try{TR.style[e]=n}catch(e){return AR[r]=!1,!1}if(RR[e])n=n.replace(LR,NR);else if(""===TR.style[e]&&("-ms-flex"===(n=KA+n)&&(TR.style[e]="-ms-flexbox"),TR.style[e]=n,""===TR.style[e]))return AR[r]=!1,!1;return TR.style[e]="",AR[r]=n,AR[r]}function OR(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=ER(n);i&&i!==n&&(o=!0);var a=!1,s=MR(i,nT(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===UA?e:"@"+KA+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return MR(t,nT(e))||e}}}function PR(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=eT(e,{},n);return r[dA]=t,r},onProcessStyle:function(e,t){if(cA in t||dA in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[cA]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[dA];i&&(o.style=i(e)||{});var a=o[cA];if(a)for(var s in a)o.prop(s,a[s](e),r)}},yA(),wA(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=AA(e[t]);return e}return AA(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=TA(t);return t===r?e:(n.prop(r,e),null)}},zA(),"undefined"==typeof window?null:OR(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function zR(e,t){if(null==e)return{};var n,r,o=af(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function IR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=of({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}JE&&(TR=document.createElement("p"));var DR=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},jR=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},FR=function(e,t,n){e.get(t).delete(n)},BR=j.createContext(null);function $R(){return j.useContext(BR)}var HR,WR=aA(PR()),UR=YE(),KR=new Map,GR={disableGeneration:!1,generateClassName:UR,jss:WR,sheetsCache:null,sheetsManager:KR,sheetsRegistry:null},YR=j.createContext(GR);function VR(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=zR(e,["children","injectFirst","disableGeneration"]),s=of({},j.useContext(YR),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!HR){var l=document.head;HR=document.createComment("mui-inject-first"),l.insertBefore(HR,l.firstChild)}s.jss=aA({plugins:PR().plugins,insertionPoint:HR})}return j.createElement(YR.Provider,{value:s},t)}var qR=-1e9;var JR={};function QR(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=jR(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},DR(o.sheetsManager,i,r,s));var l=of({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=jR(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,of({link:!1},l))).attach(),o.sheetsCache&&DR(o.sheetsCache,i,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=lA(d)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,of({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=IR({baseClasses:s.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function XR(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?JR:i,s=zR(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=of({},o);return Object.keys(i).forEach((function(e){a[e]=Lk(a[e],i[e])})),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:qR+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=$R()||a,r=of({},j.useContext(YR),s),i=j.useRef(),u=j.useRef();!function(e,t){var n,r=j.useRef([]),o=j.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),j.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return QR(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=jR(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(FR(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),j.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),u.current=!0}));var c=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=IR({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return c}}var ZR=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return QE(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new $T;var n=YE();return j.createElement(VR,of({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return j.createElement("style",of({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function eL(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=eL(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function tL(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=eL(e))&&(r&&(r+=" "),r+=t);return r}function nL(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=j.forwardRef((function(n,r){var o=n.innerRef,i=zR(n,["innerRef"]),a=$R()||e;return j.createElement(t,of({theme:a,ref:o||r},i))}));return Sp(n,t),n}}var rL,oL=nL(),iL=Object.freeze({__proto__:null,ServerStyleSheets:ZR,StylesContext:YR,StylesProvider:VR,ThemeProvider:function(e){var t=e.children,n=e.theme,r=$R(),o=j.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):of({},e,t)}(r,n);return null!=e&&(e[KE]=null!==r),e}),[n,r]);return j.createElement(BR.Provider,{value:o},t)},createGenerateClassName:YE,createStyles:function(e){return e},getThemeProps:VE,jssPreset:PR,makeStyles:XR,mergeClasses:IR,sheetsManager:KR,styled:function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=zR(r,["name"]),a=o,s=XR("function"==typeof t?function(e){return{root:function(n){return t(of({theme:e},n))}}}:{root:t},of({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=j.forwardRef((function(t,r){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,f=zR(t,["children","className","clone","component"]),p=tL(s(t).root,u),h=f;if(n&&(o=h,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),c)return j.cloneElement(l,of({className:tL(l.props.className,p)},h));if("function"==typeof l)return l(of({className:p},h));var m=d||e;return j.createElement(m,of({ref:r,className:p},h),l)}));return Sp(l,e),l}},useTheme:$R,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=zR(t,["defaultTheme","withTheme","name"]),l=a,u=XR(e,of({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),c=j.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=zR(e,["classes","innerRef"]),c=u(of({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=$R()||r,a&&(d=VE({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),j.createElement(n,of({ref:s||t,classes:c},d))}));return Sp(c,n),c}},withTheme:oL,withThemeCreator:nL}),aL=g(iL);
104
104
  /** @license Material-UI v4.11.5
105
105
  *
106
106
  * This source code is licensed under the MIT license found in the
107
107
  * LICENSE file in the root directory of this source tree.
108
- */function Mx(){if(Ax)return gv;Ax=1,Object.defineProperty(gv,"__esModule",{value:!0}),gv.default=function(t){return(0,e.createStyles)(t)};var e=Ox;return gv}var Px,Ix,Dx={},$x={};function zx(){if(Px)return $x;Px=1;var e=bs();Object.defineProperty($x,"__esModule",{value:!0}),$x.default=void 0;var t=(0,e(fv()).default)();return $x.default=t,$x}function Fx(){if(Ix)return Dx;Ix=1;var e=bs();Object.defineProperty(Dx,"__esModule",{value:!0}),Dx.default=void 0;var t=e(qs()),n=Ox,r=e(zx());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return Dx.default=o,Dx}var Bx,Hx,jx={},Wx={};function Gx(){if(Bx)return Wx;Bx=1;var e=bs();Object.defineProperty(Wx,"__esModule",{value:!0}),Wx.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},Wx.getUnit=n,Wx.toUnitless=r,Wx.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var l=a;if("px"!==o)if("em"===o)l=a/r(e);else{if("rem"!==o)return t;l=a/r(e)}return parseFloat(l.toFixed(5))+o}},Wx.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},Wx.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},Wx.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,l=e.breakpoints,s=void 0===l?[600,960,1280]:l,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),f=(o-r)/s[s.length-1];return s.forEach((function(e){var o=r+f*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e(Th());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return Wx}function Yx(){if(Hx)return jx;Hx=1;var e=bs();Object.defineProperty(jx,"__esModule",{value:!0}),jx.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,l=o.disableAlign,s=void 0!==l&&l,u=o.factor,c=void 0===u?2:u,d=o.variants,f=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,p=(0,t.default)({},e);p.typography=(0,t.default)({},p.typography);var h=p.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map((function(e){return p.breakpoints.values[e]}));return f.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,l=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!s)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;s||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:l,max:a,unit:"rem",breakpoints:g,transform:d}))}})),p};var t=e(qs()),n=vh,r=Gx();return jx}var Ux,Kx={};function Vx(){if(Ux)return Kx;Ux=1;var e=bs();Object.defineProperty(Kx,"__esModule",{value:!0}),Kx.default=void 0;var t=e(qs()),n=Ox,r=e(zx()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return Kx.default=o,Kx}var qx,Qx={};function Xx(){if(qx)return Qx;qx=1;var e=bs();Object.defineProperty(Qx,"__esModule",{value:!0}),Qx.default=function(){return(0,t.useTheme)()||n.default};var t=Ox;e(w());var n=e(zx());return Qx}var Jx,Zx={};function e_(){if(Jx)return Zx;Jx=1;var e=bs();Object.defineProperty(Zx,"__esModule",{value:!0}),Zx.default=void 0;var t=e(qs()),n=Ox,r=e(zx());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return Zx.default=o,Zx}var t_,n_,r_={};function o_(){if(t_)return r_;t_=1;var e=bs();Object.defineProperty(r_,"__esModule",{value:!0}),r_.default=void 0;var t=Ox,n=e(zx()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return r_.default=r,r_}function i_(){return n_||(n_=1,function(e){var t=bs(),n=(Vp||(Vp=1,function(e){var t=Jp().default;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}e.exports=function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=t(e)&&"function"!=typeof e)return{default:e};var o=n(r);if(o&&o.has(e))return o.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(i,l,s):i[l]=e[l]}return i.default=e,o&&o.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports}(Qp)),Qp.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=bh();Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var i=n(fv()),a=t(mv()),l=t(Mx()),s=t(Fx()),u=t(Yx()),c=t(Vx()),d=lv();Object.keys(d).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))}));var f=t(Xx()),p=t(e_()),h=t(o_()),m=Ox}(qp)),qp}var a_=i_(),l_=Object.defineProperty,s_=(e,t)=>{for(var n in t)l_(e,n,{get:t[n],enumerable:!0})};s_({},{light:()=>u_});const u_={root:{backgroundColor:xp.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&$expanded":{margin:"0px"}}};s_({},{light:()=>c_});const c_={root:{backgroundColor:xp.WHITE}};s_({},{light:()=>d_});const d_={root:{padding:"0px 16px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${xp.GREYSCALE_0_15}`,"&$focused":{borderColor:xp.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${xp.MISC_FOCUS_BORDER}`,borderRadius:wp,backgroundColor:xp.GREYSCALE_0_03},"&$expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis"}};s_({},{light:()=>f_});const f_={root:{flex:"0 0 48px",flexDirection:"row",boxShadow:`inset 0 -1px 0 0 ${xp.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:xp.WHITE,color:xp.TEXT_PRIMARY}};s_({},{light:()=>p_});const p_={inputRoot:{boxSizing:"border-box",borderRadius:wp,"&&":{padding:0},"&&& input":{padding:"8px 4px"},"&&& $endAdornment":{right:4}},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:Sp,height:"32px",'&[data-focus="true"]':{backgroundColor:xp.GREYSCALE_0_03}},endAdornment:{top:"auto",bottom:"4px",position:"absolute"},popupIndicator:{borderRadius:wp,border:`solid 1px ${xp.GREYSCALE_0_15}`,color:xp.GREYSCALE_0_60,marginRight:0,width:Ep,height:Ep,"& svg":{fontSize:"0.7em"},"& i":{lineHeight:"1 !important"}},paper:{marginTop:"5px",boxShadow:`0px 2px 4px 0px ${xp.GREYSCALE_0_15}`},clearIndicator:{"& svg":{fontSize:"0.5em",position:"absolute"},color:xp.GREYSCALE_25,width:Cp,height:Ep,borderRadius:wp,backgroundColor:"unset",marginRight:"4px","&&&&:hover":{backgroundColor:a_.alpha(xp.GREYSCALE_0,.05)}},popupIndicatorOpen:{backgroundColor:xp.GREYSCALE_0_10}};s_({},{light:()=>h_});const h_={badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}};s_({},{light:()=>m_});const m_={root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:wp,"& > $label > i:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:xp.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${xp.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:xp.GREYSCALE_0_15,backgroundColor:xp.GREYSCALE_100_60,"&:active":{backgroundColor:xp.GREYSCALE_0_10},"&$focusVisible":{borderColor:xp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xp.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},containedPrimary:{"&:hover":{backgroundColor:xp.GREEN_PALE},"&:active":{backgroundColor:xp.GREEN_DARK},"&$focusVisible":{borderColor:xp.GREEN_PALE,boxShadow:`0 0 0 3px ${a_.alpha(xp.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:xp.BLUE_PALE},"&:active":{backgroundColor:xp.BLUE_DARK},"&$focusVisible":{borderColor:xp.BLUE_PALE,boxShadow:`0 0 0 3px ${a_.alpha(xp.BLUE_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > $label > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > $label > i:only-child":{marginLeft:"-10px",marginRight:"-10px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}};s_({},{light:()=>g_});const g_={root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:wp},groupedText:{padding:"8px 16px","&:active":{backgroundColor:xp.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${xp.MISC_FOCUS_BORDER}`}},groupedOutlined:{padding:"7px 16px",borderColor:xp.GREYSCALE_0_15,backgroundColor:xp.GREYSCALE_100_60,"&:active":{backgroundColor:xp.GREYSCALE_0_10},"&$focusVisible":{borderColor:xp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xp.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:xp.GREEN_PALE},"&:active":{backgroundColor:xp.GREEN_DARK},"&$focusVisible":{borderColor:xp.GREEN_PALE,boxShadow:`0 0 0 3px ${a_.alpha(xp.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:xp.BLUE_PALE},"&:active":{backgroundColor:xp.BLUE_DARK},"&$focusVisible":{borderColor:xp.BLUE_PALE,boxShadow:`0 0 0 3px ${a_.alpha(xp.BLUE_PALE,.5)}`}}};s_({},{light:()=>v_});const v_={root:{height:"100%","& $focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:xp.GREYSCALE_0_03,"& $focusHighlight":{opacity:0}},"&:active":{backgroundColor:xp.GREYSCALE_95,boxShadow:"none"},"&$focusVisible":{borderRadius:wp,boxShadow:`inset 0 0 0 2px ${xp.MISC_FOCUS_BORDER}`,"& $focusHighlight":{opacity:0}}}};s_({},{light:()=>b_});const b_={root:{borderWidth:1,"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:3},"&:not($disabled)":{"&:not($checked)":{"&:not($indeterminate)":{"& span":{color:xp.WHITE}}}},"&$disabled":{"& span":{pointerEvents:"auto",cursor:"not-allowed",color:xp.GREYSCALE_0_25}}},colorPrimary:{"&.sprout-focus-visible i":{borderColor:xp.GREEN_PALE,boxShadow:`0 0 0 3px ${a_.alpha(xp.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible i":{borderColor:xp.BLUE_PALE,boxShadow:`0 0 0 3px ${a_.alpha(xp.BLUE_PALE,.5)}`}}};s_({},{light:()=>y_});const y_={root:{height:"24px",fontSize:_p,borderRadius:wp,color:xp.TEXT_PRIMARY,backgroundColor:xp.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:xp.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${xp.MISC_FOCUS_BORDER}`},"&$disabled":{backgroundColor:xp.GREYSCALE_0_05,color:xp.GREYSCALE_0_30,border:"none",opacity:1}},outlined:{border:`solid 1px ${xp.GREYSCALE_0_15}`,backgroundColor:xp.GREYSCALE_100_15,"$clickable&:active ":{boxSizing:"border-box",borderRadius:wp,boxShadow:"none",backgroundColor:xp.GREYSCALE_0_10},"& $deleteIconSmall":{height:13,color:"inherit"}},label:{fontFamily:Np.FONT_FAMILY,lineHeight:"16px"}};s_({},{light:()=>x_});const x_={root:{padding:"8px",backgroundColor:xp.GREYSCALE_98,borderTop:`1px ${xp.GREYSCALE_0_15} solid`}};s_({},{light:()=>__});const __={root:{padding:"24px"}};s_({},{light:()=>S_});const S_={root:{marginBottom:0}};s_({},{light:()=>C_});const C_={root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",height:"24px",padding:"12px 8px 12px 24px",fontSize:"16px",lineHeight:"24px",backgroundColor:xp.GREYSCALE_98,borderBottom:`1px ${xp.GREYSCALE_0_15} solid`}};s_({},{light:()=>E_});const E_={middle:{margin:"4px 8px"}};s_({},{light:()=>w_});const w_={root:{marginLeft:"-10px"},label:{fontSize:Sp}};s_({},{light:()=>k_});const k_={root:{fontSize:_p,lineHeight:"16px",margin:"4px 0 0 0","&$error":{color:xp.RED}},contained:{marginLeft:0,marginRight:0}};s_({},{light:()=>R_});const R_={root:{color:xp.GREYSCALE_25,fontSize:_p,fontFamily:Np.FONT_FAMILY,fontWeight:Tp,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&$focused":{color:xp.TEXT_PRIMARY},"&$error":{color:xp.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:xp.TEXT_SECONDARY,position:"absolute",content:"'(optional)'",fontWeight:Rp,marginLeft:"4px"}}},asterisk:{visibility:"hidden",display:"inline-flex","&::after":{visibility:"visible",color:xp.TEXT_SECONDARY,position:"absolute",content:"'(required)'",fontWeight:Rp,marginLeft:"4px"}}};s_({},{light:()=>T_});const T_={root:{padding:7,borderRadius:wp,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:xp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xp.MISC_FOCUS_BORDER}`},"&&&:hover":{backgroundColor:"transparent"}}};s_({},{light:()=>A_});const A_={root:{padding:"4px 8px",color:xp.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}};s_({},{light:()=>N_});const N_={input:{padding:"8px 12px",lineHeight:"16px"}};s_({},{light:()=>L_});const L_={outlined:{fontSize:`${_p}px`,fontWeight:Tp,color:xp.GREYSCALE_25,"&$shrink":{transform:"translate(0px, -8px)",fontWeight:Tp}}};s_({},{light:()=>O_});const O_={root:{color:xp.MISC_FOCUS_BORDER}};s_({},{light:()=>M_});const M_={padding:{paddingTop:"0px",paddingBottom:"0px"}};s_({},{light:()=>P_});const P_={root:{minHeight:"32px",fontSize:Sp,"&$selected":{backgroundColor:"unset","&:not($disabled)":{"&::after":{content:`url('${Lp}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:xp.RED}}}},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:xp.GREYSCALE_0_03},"&:active":{backgroundColor:xp.GREYSCALE_0_05}}};s_({},{light:()=>I_});const I_={root:{color:xp.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}};s_({},{light:()=>D_});const D_={root:{fontSize:"12px"},primary:{fontSize:Sp,color:xp.TEXT_PRIMARY,lineHeight:"16px"},secondary:{fontSize:_p,fontWeight:kp,lineHeight:"16px",color:xp.TEXT_SECONDARY}};s_({},{light:()=>$_});const $_={root:{'&[role="option"]':{color:xp.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:_p,borderBottom:`solid 1px ${xp.GREYSCALE_0_15}`,pointerEvents:"none"}}};s_({},{light:()=>z_});const z_={list:{paddingTop:4,paddingBottom:4},paper:{marginTop:4,marginBottom:4,background:xp.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15)",borderRadius:"2px"}};s_({},{light:()=>F_});const F_={root:{fontSize:Sp,height:"32px",'[class*="MuiListSubheader-root"] ~ &[role="option"]':{paddingLeft:"20px"},"& div i":{color:xp.GREYSCALE_25}}};s_({},{light:()=>B_});const B_={root:{fontSize:Sp,lineHeight:"16px",backgroundColor:xp.WHITE,borderRadius:wp,"&:not($focused):not($error):not($disabled):hover $notchedOutline":{border:`solid 1px ${xp.GREYSCALE_0_05}`,borderColor:xp.GREYSCALE_0_30},"&$focused:not($error) $notchedOutline":{border:`solid 1px ${xp.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${xp.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${xp.GREYSCALE_0_05}`},"&$focused$error $notchedOutline":{border:`solid 1px ${xp.RED}`,boxShadow:`0px 0px 0px 1px ${xp.RED}, inset 0 2px 0 0 ${xp.GREYSCALE_0_05}`},"&$disabled":{backgroundColor:"transparent"},"&$disabled $notchedOutline":{border:`solid 1px ${xp.GREYSCALE_0_10}`,borderColor:xp.GREYSCALE_0_10,backgroundColor:xp.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:xp.TEXT_PRIMARY,padding:"8px 12px","&$disabled":{opacity:.45}},notchedOutline:{borderColor:xp.GREYSCALE_0_15,borderRadius:wp,boxShadow:`inset 0 2px 0 0 ${xp.GREYSCALE_0_05}`},multiline:{padding:"8px 12px"}};s_({},{light:()=>H_});const H_={day:{"&&&:hover":{backgroundColor:xp.GREYSCALE_0_03}},daySelected:{"&&&:hover":{backgroundColor:xp.GREEN}}};s_({},{light:()=>j_});const j_={paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${xp.GREYSCALE_0_15}, 0px 0px 0px 1px ${xp.GREYSCALE_0_05}`}};s_({},{light:()=>W_});const W_={root:{fill:xp.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${xp.MISC_FOCUS_BORDER}`},"&$checked":{"&$colorPrimary":{"&.sprout-focus-visible i":{borderColor:xp.GREEN_PALE,boxShadow:`0 0 0 3px ${a_.alpha(xp.GREEN_PALE,.5)}`}},"&$colorSecondary":{"&.sprout-focus-visible i":{borderColor:xp.BLUE_PALE,boxShadow:`0 0 0 3px ${a_.alpha(xp.BLUE_PALE,.5)}`}},"&$disabled":{color:xp.GREYSCALE_0_20}},"&$disabled":{fill:xp.GREYSCALE_0_20,stroke:"none"}}};s_({},{light:()=>G_});const G_={root:{height:"32px",zIndex:1,borderRadius:"3px !important","& em":{color:xp.TEXT_SECONDARY,WebkitFontSmoothing:"antialiased","&::after":{content:""}},"& ~svg":{position:"absolute",top:"unset",right:"12px"},"&[aria-expanded=true]":{backgroundColor:xp.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:xp.GREYSCALE_0_03},"&:active":{backgroundColor:xp.GREYSCALE_0_10},"&:focus":{backgroundColor:xp.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${xp.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${xp.MISC_FOCUS_BORDER}`},"&$disabled":{opacity:"unset",color:xp.GREYSCALE_0_30,"&:hover":{backgroundColor:xp.GREYSCALE_0_0,borderColor:xp.GREYSCALE_0_15},"& ~svg":{color:xp.GREYSCALE_0_30}}},selectMenu:{height:"14px"},outlined:{border:`solid 1px ${xp.GREYSCALE_0_15}`}};s_({},{light:()=>Y_});const Y_={root:{color:xp.GREEN,height:"24px","&$disabled":{color:xp.GREYSCALE_0_15}},rail:{backgroundColor:xp.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${xp.GREYSCALE_0_05}`,borderRadius:wp,boxShadow:`inset 0px 0px 0px 1px ${xp.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${xp.GREYSCALE_0_05}`,borderRadius:wp},thumb:{height:"16px",width:"16px",borderRadius:wp,backgroundColor:xp.WHITE,boxShadow:`0px 1px 2px 0px ${xp.GREYSCALE_0_15}, 0px 0px 0px 1px ${xp.GREYSCALE_0_05}`,"&:hover":{borderRadius:wp,boxShadow:`0 2px 4px 0 ${xp.GREYSCALE_0_30}, 0 0 0 1px ${xp.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${xp.GREYSCALE_0_15}, 0 0 0 1px ${xp.GREYSCALE_0_06}, 0 0 0 2px ${xp.MISC_FOCUS_BORDER}`},"&$disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:xp.GREYSCALE_90},"& .bar":{height:"8px",width:"1px",backgroundColor:xp.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:xp.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:xp.GREYSCALE_0_15},markLabel:{color:xp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:xp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},active:{}};s_({},{light:()=>U_});const U_={root:{backgroundColor:xp.WHITE,color:xp.GREYSCALE_25}};s_({},{light:()=>K_});const K_={root:{padding:"10px",width:"60px",height:"40px"},switchBase:{padding:"11px","&$disabled":{"& $thumb":{backgroundColor:xp.GREYSCALE_100_50}},"&$checked + $track":{opacity:1},"&$disabled + $track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + $track":{borderColor:xp.GREEN_PALE,boxShadow:`0 0 0 3px ${a_.alpha(xp.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + $track":{borderColor:xp.BLUE_PALE,boxShadow:`0 0 0 3px ${a_.alpha(xp.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:xp.GREYSCALE_0_15,borderRadius:wp},thumb:{height:"16px",width:"16px",borderRadius:wp,backgroundColor:xp.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& $thumb":{height:"12px",width:"12px"},"& $switchBase":{padding:"9px 11px"}}};s_({},{light:()=>V_});const V_={root:{fontSize:Sp,fontWeight:Tp,textTransform:"none",minWidth:"auto",boxSizing:"border-box","&:hover":{borderBottom:`2px solid ${xp.GREYSCALE_80}`,paddingBottom:"4px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${xp.MISC_FOCUS_BORDER}`,paddingTop:"4px",backgroundColor:xp.GREYSCALE_0_03,borderRadius:wp,minHeight:"44px",paddingBottom:"4px",border:"none"},"&$disabled":{opacity:.3}},textColorPrimary:{color:xp.GREYSCALE_25,"&$selected":{color:xp.GREYSCALE_25}},textColorInherit:{opacity:"unset"},fullWidth:{"&.sprout-focus-visible":{paddingRight:12,paddingLeft:12}},wrapper:{alignItems:"initial"},labelIcon:{minWidth:"40px",minHeight:"48px","&.sprout-focus-visible":{minHeight:"auto",height:"30px",marginTop:9,marginBottom:9,flexDirection:"column",paddingRight:"12px",paddingBottom:"2px"},"& $wrapper":{display:"block"}}};s_({},{light:()=>q_});const q_={root:{borderLeft:`1px solid ${xp.GREYSCALE_85}`}};s_({},{light:()=>Q_});const Q_={root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${xp.GREYSCALE_85}`,borderRight:`1px solid ${xp.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Tp,backgroundColor:xp.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&$head":{height:"31px"},"&$paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:xp.GREYSCALE_98,borderBottom:`1px solid ${xp.GREYSCALE_85}`}};s_({},{light:()=>X_});const X_={root:{borderBottom:`1px solid ${xp.GREYSCALE_85}`,borderTop:`1px solid ${xp.GREYSCALE_85}`}};s_({},{light:()=>J_});const J_={root:{backgroundColor:xp.GREYSCALE_98}};s_({},{light:()=>Z_});const Z_={hover:{"&$selected":{backgroundColor:xp.GREYSCALE_0_05,"&:hover":{backgroundColor:xp.GREYSCALE_0_03}},"&&:hover":{backgroundColor:xp.GREYSCALE_0_03}}};s_({},{light:()=>eS});const eS={root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&$active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}};s_({},{light:()=>tS});const tS={scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},root:{fontSize:Sp,fontWeight:"bold"},indicator:{height:2}};s_({},{light:()=>nS});const nS={root:{height:32,lineHeight:16,width:32,fontSize:Sp,borderRadius:wp,padding:"7px 16px",border:`1px solid ${xp.GREYSCALE_0_15}`,backgroundColor:xp.GREYSCALE_100_60,color:xp.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:xp.GREYSCALE_0_10,border:`1px solid ${xp.GREYSCALE_0_30}`},"&:hover":{backgroundColor:xp.GREYSCALE_0_03,border:`1px solid ${xp.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:xp.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${xp.MISC_FOCUS_BORDER}`,border:`1px solid ${xp.MISC_FOCUS_BORDER}`,zIndex:2},"&$selected":{color:xp.GREYSCALE_25,backgroundColor:xp.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:xp.GREYSCALE_0_10,border:`1px solid ${xp.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:_p,height:24,width:24,padding:7},sizeLarge:{fontSize:Cp,height:40,width:40,lineHeight:20}};s_({},{light:()=>rS});const rS={root:{height:"32px",lineHeight:"16px",fontSize:Sp,borderRadius:wp}};s_({},{light:()=>oS});const oS={root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}};s_({},{light:()=>iS});const iS={arrow:{color:xp.GREYSCALE_20},tooltip:{backgroundColor:xp.GREYSCALE_20,fontSize:_p,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}},aS=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"m7.999 9.001-2.858-2.86a.2.2 0 0 0-.282 0l-.718.719a.2.2 0 0 0 0 .282L7 10.001l.859.858a.2.2 0 0 0 .282 0L9 10l2.859-2.859a.2.2 0 0 0 0-.282l-.718-.718a.2.2 0 0 0-.283 0L8 9Z"})}),lS=$.forwardRef(aS);var sS=Object.defineProperty,uS=Object.getOwnPropertySymbols,cS=Object.prototype.hasOwnProperty,dS=Object.prototype.propertyIsEnumerable,fS=(e,t,n)=>t in e?sS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pS=(e,t)=>{for(var n in t)sS(e,n,{get:t[n],enumerable:!0})},hS=(e,t,n)=>(fS(e,"symbol"!=typeof t?t+"":t,n),n);pS({},{DEFAULT_LANGUAGE:()=>gS,DEFAULT_LANGUAGE_SHORT:()=>vS,flattenParams:()=>kS,flattenTranslationsJSON:()=>xS,format:()=>RS,formatWithKeys:()=>TS,getLongLanguageDesc:()=>wS,getShortLanguageDesc:()=>ES,parseLangFromUrl:()=>_S,resolveLocale:()=>CS,updateLangAttribute:()=>AS});var mS=[{short:"es",long:"es-ES",label:"Spanish",translatedLabel:"Common.Spanish"},{short:"sv",long:"sv-SE",label:"Swedish",translatedLabel:"Common.Swedish"},{short:"ja",long:"ja-JP",label:"Japanese",translatedLabel:"Common.Japanese"},{short:"en",long:"en-US",label:"English",translatedLabel:"Common.English"},{short:"de",long:"de-DE",label:"German",translatedLabel:"Common.German"},{short:"fr",long:"fr-FR",label:"French",translatedLabel:"Common.French"},{short:"it",long:"it-IT",label:"Italian",translatedLabel:"Common.Italian"},{short:"nl",long:"nl-NL",label:"Dutch",translatedLabel:"Common.Dutch"},{short:"pt",long:"pt-BR",label:"Brazilian Portuguese",translatedLabel:"Common.BrazilianPortuguese"},{short:"ru",long:"ru-RU",label:"Russian",translatedLabel:"Common.Russian"},{short:"zh-CN",long:"zh-CN",label:"Simplified Chinese",translatedLabel:"Common.SimplifiedChinese"},{short:"zh-TW",long:"zh-TW",label:"Traditional Chinese",translatedLabel:"Common.TraditionalChinese"},{short:"pl",long:"pl-PL",label:"Polish",translatedLabel:"Common.Polish"},{short:"tr",long:"tr-TR",label:"Turkish",translatedLabel:"Common.Turkish"},{short:"ko",long:"ko-KR",label:"Korean",translatedLabel:"Common.Korean"},{short:"qps-ploc",long:"qps-ploc",label:'qps-ploc (f.k.a. "pseudo")'},{short:"zz",long:"zz",label:"zz"}],gS="en-US",vS="en",bS=["zh-cn","zh-tw","qps-ploc"],yS=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),xS=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),yS(e)?Object.keys(e).reduce(((t,n)=>{const r=e[n],o=yS(r)&&r.value;return o&&(t[n]=o),t}),{}):{}),_S=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},SS=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(bS.includes(e.toLocaleLowerCase()))return mS.find((({long:e})=>e.toLowerCase()===t));const[n]=t.split("-");return mS.find((({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t))},CS=(...e)=>{for(const t of e){const e=SS(t);if(e)return e.short}},ES=e=>{const t=SS(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${vS}'`),vS)},wS=e=>{const t=SS(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${gS}'`),gS)},kS=e=>Array.isArray(e[0])?e[0]:e,RS=(e,...t)=>{var n;return null==(n=e.match(/\{(\d+)\}/g))?void 0:n.length,e.replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?String(t[n]):e))},TS=(e,t)=>e.replace(/(\{)(\w+)(\})/g,((e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e})),AS=e=>{const t=ES(e);document.documentElement.setAttribute("lang",t)},NS={},LS=Array.prototype.slice,OS=function(e){return("0"+e.toString()).substr(-2)},MS=function(e){var t=typeof e;return"function"===t||"object"===t},PS=function(e){return"function"===typeof e},IS=function(e){return null!=e},DS=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},$S=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},zS=function(e){return!0===e||!1===e},FS=function(e){return null===e},BS=function(e,t,n){return void 0===n||0==+n?Math[e](t):(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n))))},HS=function(e,t){return PS(e)?e(t):e},jS=function(e,t){var n,r,o;for(n in t)t.hasOwnProperty(n)&&(r=t[n],"string"==typeof(o=r)||"[object String]"===Object.prototype.toString.call(o)||$S(r)||zS(r)||DS(r)||FS(r)?e[n]=r:(null==e[n]&&(e[n]={}),jS(e[n],r)));return e},WS={day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbr_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],month_names:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbr_month_names:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridian:["AM","PM"]},GS={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},YS={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},US={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},KS=[null,"kb","mb","gb","tb"],VS={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};NS.reset=function(){var e;for(e in VS)this[e]=VS[e]},NS.initializeOptions=function(){var e;for(e in VS)IS(this[e])||(this[e]=VS[e])},NS.initializeOptions(),NS.locales={},NS.locales.get=function(e){var t=this[e]||this[NS.locale]||this.default;return PS(t)&&(t=t(e)),!1===DS(t)&&(t=[t]),t},NS.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&NS.locale&&t.push(NS.locale),NS.fallbacks&&NS.defaultLocale&&t.push(NS.defaultLocale),t.forEach((function(e){var t=e.split("-"),r=null,o=null;3===t.length?(r=[t[0],t[1]].join("-"),o=t[0]):2===t.length&&(r=t[0]),-1===n.indexOf(e)&&n.push(e),NS.fallbacks&&[r,o].forEach((function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)}))})),t.length||t.push("en"),n},NS.pluralization={},NS.pluralization.get=function(e){return this[e]||this[NS.locale]||this.default},NS.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},NS.currentLocale=function(){return this.locale||this.defaultLocale},NS.isSet=IS,NS.lookup=function(e,t){t=t||{};var n,r,o,i,a=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);a.length;)if(n=a.shift(),r=o.split(t.separator||this.defaultSeparator),i=this.translations[n]){for(;r.length&&null!=(i=i[r.shift()]););if(null!=i)return i}if(IS(t.defaultValue))return HS(t.defaultValue,e)},NS.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&MS(n))for(;i.length;)if(r=i.shift(),IS(n[r])){o=n[r];break}return o},NS.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,a,l=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);l.length;)if(r=l.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],MS(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&IS(n.defaultValue)&&(a=MS(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},NS.meridian=function(){var e=this.lookup("time"),t=this.lookup("date");return e&&e.am&&e.pm?[e.am,e.pm]:t&&t.meridian?t.meridian:WS.meridian},NS.prepareOptions=function(){for(var e,t=LS.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(IS(n[r])||(n[r]=e[r]));return n},NS.createTranslationOptions=function(e,t){var n=[{scope:e}];return IS(t.defaults)&&(n=n.concat(t.defaults)),IS(t.defaultValue)&&n.push({message:t.defaultValue}),n},NS.translate=function(e,t){t=t||{};var n,r=this.createTranslationOptions(e,t),o=e,i=this.prepareOptions(t);return delete i.defaultValue,r.some((function(t){if(IS(t.scope)?(o=t.scope,n=this.lookup(o,i)):IS(t.message)&&(n=HS(t.message,e)),null!=n)return!0}),this)?("string"==typeof n?n=this.interpolate(n,t):DS(n)?n=n.map((function(e){return"string"==typeof e?this.interpolate(e,t):e}),this):MS(n)&&IS(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},NS.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,a=e.match(this.placeholder);if(!a)return e;for(;a.length;)o=(n=a.shift()).replace(this.placeholder,"$1"),r=IS(t[o])?t[o].toString().replace(/\$/gm,"_#$#_"):o in t?this.nullPlaceholder(n,e,t):this.missingPlaceholder(n,e,t),i=new RegExp(n.replace(/{/gm,"\\{").replace(/}/gm,"\\}")),e=e.replace(i,r);return e.replace(/_#\$#_/g,"$")},NS.pluralize=function(e,t,n){var r,o;return n=this.prepareOptions({count:String(e)},n),void 0===(o=this.pluralizationLookup(e,t,n)).translations||null==o.translations?this.missingTranslation(t,n):void 0!==o.message&&null!=o.message?this.interpolate(o.message,n):(r=this.pluralization.get(n.locale),this.missingTranslation(t+"."+r(e)[0],n))},NS.missingTranslation=function(e,t){if("guess"===this.missingBehaviour){var n=e.split(".").slice(-1)[0];return(this.missingTranslationPrefix.length>0?this.missingTranslationPrefix:"")+n.replace(/_/g," ").replace(/([a-z])([A-Z])/g,(function(e,t,n){return t+" "+n.toLowerCase()}))}return'[missing "'+[null!=t&&null!=t.locale?t.locale:this.currentLocale(),this.getFullScope(e,t)].join(t.separator||this.defaultSeparator)+'" translation]'},NS.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},NS.nullPlaceholder=function(){return NS.missingPlaceholder.apply(NS,arguments)},NS.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),GS);var n,r,o=e<0,i=function(e,t){return BS("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),a=i.split("."),l=[],s=t.format||"%n",u=o?"-":"";for(e=a[0],n=a[1];e.length>0;)l.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=l.join(t.delimiter),t.strip_insignificant_zeros&&n&&(n=n.replace(/0+$/,"")),t.precision>0&&n&&(r+=t.separator+n),r=(s=t.sign_first?"%s"+s:s.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",r).replace("%s",u)},NS.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),YS),this.toNumber(e,t)},NS.localize=function(e,t,n){switch(n||(n={}),e){case"currency":return this.toCurrency(t,n);case"number":return e=this.lookup("number.format",n),this.toNumber(t,e);case"percentage":return this.toPercentage(t,n);default:var r;return r=e.match(/^(date|time)/)?this.toTime(e,t,n):t.toString(),this.interpolate(r,n)}},NS.parseDate=function(e){var t,n,r;if(null==e)return e;if("object"==typeof e)return e;if(t=e.toString().match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})([\.,]\d{1,3})?)?(Z|\+00:?00)?/)){for(var o=1;o<=6;o++)t[o]=parseInt(t[o],10)||0;t[2]-=1,r=t[7]?1e3*("0"+t[7]):null,n=t[8]?new Date(Date.UTC(t[1],t[2],t[3],t[4],t[5],t[6],r)):new Date(t[1],t[2],t[3],t[4],t[5],t[6],r)}else"number"==typeof e?(n=new Date).setTime(e):e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)?(n=new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" "))):(e.match(/\d+ \d+:\d+:\d+ [+-]\d+ \d+/),(n=new Date).setTime(Date.parse(e)));return n},NS.strftime=function(e,t,n){n=this.lookup("date",n);var r=NS.meridian();if(n||(n={}),n=this.prepareOptions(n,WS),isNaN(e.getTime()))throw new Error("I18n.strftime() requires a valid date object, but received an invalid date.");var o=e.getDay(),i=e.getDate(),a=e.getFullYear(),l=e.getMonth()+1,s=e.getHours(),u=s,c=s>11?1:0,d=e.getSeconds(),f=e.getMinutes(),p=e.getTimezoneOffset(),h=Math.floor(Math.abs(p/60)),m=Math.abs(p)-60*h,g=(p>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(m.toString().length<2?"0"+m:m);return u>12?u-=12:0===u&&(u=12),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",n.abbr_day_names[o])).replace("%A",n.day_names[o])).replace("%b",n.abbr_month_names[l])).replace("%B",n.month_names[l])).replace("%d",OS(i))).replace("%e",i)).replace("%-d",i)).replace("%H",OS(s))).replace("%-H",s)).replace("%k",s)).replace("%I",OS(u))).replace("%-I",u)).replace("%l",u)).replace("%m",OS(l))).replace("%-m",l)).replace("%M",OS(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",OS(d))).replace("%-S",d)).replace("%w",o)).replace("%y",OS(a))).replace("%-y",OS(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",g)).replace("%Z",g)},NS.toTime=function(e,t,n){var r=this.parseDate(t),o=this.lookup(e,n);if(null==r)return r;var i=r.toString();return i.match(/invalid/i)?i:o?this.strftime(r,o,n):i},NS.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),US),this.toNumber(e,t)},NS.toHumanSize=function(e,t){for(var n,r,o,i=e,a=0;i>=1024&&a<4;)i/=1024,a+=1;return 0===a?(o=this.getFullScope("number.human.storage_units.units.byte",t),n=this.t(o,{count:i}),r=0):(o=this.getFullScope("number.human.storage_units.units."+KS[a],t),n=this.t(o),r=i-Math.floor(i)==0?0:1),t=this.prepareOptions(t,{unit:n,precision:r,format:"%n%u",delimiter:""}),this.toNumber(i,t)},NS.getFullScope=function(e,t){return t=t||{},DS(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},NS.extend=function(e,t){return void 0===e&&void 0===t?{}:jS(e,t)},NS.t=NS.translate.bind(NS),NS.l=NS.localize.bind(NS),NS.p=NS.pluralize.bind(NS);var qS={};pS(qS,{af:()=>nC,ak:()=>rC,am:()=>oC,an:()=>iC,ar:()=>aC,ars:()=>lC,as:()=>sC,asa:()=>uC,ast:()=>cC,az:()=>dC,bal:()=>fC,be:()=>pC,bem:()=>hC,bez:()=>mC,bg:()=>gC,bho:()=>vC,bm:()=>bC,bn:()=>yC,bo:()=>xC,br:()=>_C,brx:()=>SC,bs:()=>CC,ca:()=>EC,ce:()=>wC,ceb:()=>kC,cgg:()=>RC,chr:()=>TC,ckb:()=>AC,cs:()=>NC,cy:()=>LC,da:()=>OC,de:()=>MC,doi:()=>PC,dsb:()=>IC,dv:()=>DC,dz:()=>$C,ee:()=>zC,el:()=>FC,en:()=>BC,eo:()=>HC,es:()=>jC,et:()=>WC,eu:()=>GC,fa:()=>YC,ff:()=>UC,fi:()=>KC,fil:()=>VC,fo:()=>qC,fr:()=>QC,fur:()=>XC,fy:()=>JC,ga:()=>ZC,gd:()=>eE,gl:()=>tE,gsw:()=>nE,gu:()=>rE,guw:()=>oE,gv:()=>iE,ha:()=>aE,haw:()=>lE,he:()=>sE,hi:()=>uE,hnj:()=>cE,hr:()=>dE,hsb:()=>fE,hu:()=>pE,hy:()=>hE,ia:()=>mE,id:()=>gE,ig:()=>vE,ii:()=>bE,io:()=>yE,is:()=>xE,it:()=>_E,iu:()=>SE,ja:()=>CE,jbo:()=>EE,jgo:()=>wE,jmc:()=>kE,jv:()=>RE,jw:()=>TE,ka:()=>AE,kab:()=>NE,kaj:()=>LE,kcg:()=>OE,kde:()=>ME,kea:()=>PE,kk:()=>IE,kkj:()=>DE,kl:()=>$E,km:()=>zE,kn:()=>FE,ko:()=>BE,ks:()=>HE,ksb:()=>jE,ksh:()=>WE,ku:()=>GE,kw:()=>YE,ky:()=>UE,lag:()=>KE,lb:()=>VE,lg:()=>qE,lij:()=>QE,lkt:()=>XE,ln:()=>JE,lo:()=>ZE,lt:()=>ew,lv:()=>tw,mas:()=>nw,mg:()=>rw,mgo:()=>ow,mk:()=>iw,ml:()=>aw,mn:()=>lw,mo:()=>sw,mr:()=>uw,ms:()=>cw,mt:()=>dw,my:()=>fw,nah:()=>pw,naq:()=>hw,nb:()=>mw,nd:()=>gw,ne:()=>vw,nl:()=>bw,nn:()=>yw,nnh:()=>xw,no:()=>_w,nqo:()=>Sw,nr:()=>Cw,nso:()=>Ew,ny:()=>ww,nyn:()=>kw,om:()=>Rw,or:()=>Tw,os:()=>Aw,osa:()=>Nw,pa:()=>Lw,pap:()=>Ow,pcm:()=>Mw,pl:()=>Pw,prg:()=>Iw,ps:()=>Dw,pt:()=>$w,pt_PT:()=>zw,rm:()=>Fw,ro:()=>Bw,rof:()=>Hw,ru:()=>jw,rwk:()=>Ww,sah:()=>Gw,saq:()=>Yw,sat:()=>Uw,sc:()=>Kw,scn:()=>Vw,sd:()=>qw,sdh:()=>Qw,se:()=>Xw,seh:()=>Jw,ses:()=>Zw,sg:()=>ek,sh:()=>tk,shi:()=>nk,si:()=>rk,sk:()=>ok,sl:()=>ik,sma:()=>ak,smi:()=>lk,smj:()=>sk,smn:()=>uk,sms:()=>ck,sn:()=>dk,so:()=>fk,sq:()=>pk,sr:()=>hk,ss:()=>mk,ssy:()=>gk,st:()=>vk,su:()=>bk,sv:()=>yk,sw:()=>xk,syr:()=>_k,ta:()=>Sk,te:()=>Ck,teo:()=>Ek,th:()=>wk,ti:()=>kk,tig:()=>Rk,tk:()=>Tk,tl:()=>Ak,tn:()=>Nk,to:()=>Lk,tpi:()=>Ok,tr:()=>Mk,ts:()=>Pk,tzm:()=>Ik,ug:()=>Dk,uk:()=>$k,und:()=>zk,ur:()=>Fk,uz:()=>Bk,ve:()=>Hk,vec:()=>jk,vi:()=>Wk,vo:()=>Gk,vun:()=>Yk,wa:()=>Uk,wae:()=>Kk,wo:()=>Vk,xh:()=>qk,xog:()=>Qk,yi:()=>Xk,yo:()=>Jk,yue:()=>Zk,zh:()=>eR,zu:()=>tR});var QS=(e,t)=>t?"other":1==e?"one":"other",XS=(e,t)=>t?"other":0==e||1==e?"one":"other",JS=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",ZS=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},eC=(e,t)=>"other",tC=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",nC=QS,rC=XS,oC=JS,iC=QS,aC=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},lC=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},sC=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",uC=QS,cC=ZS,dC=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-1),o=n.slice(-2),i=n.slice(-3);return t?1==r||2==r||5==r||7==r||8==r||20==o||50==o||70==o||80==o?"one":3==r||4==r||100==i||200==i||300==i||400==i||500==i||600==i||700==i||800==i||900==i?"few":0==n||6==r||40==o||60==o||90==o?"many":"other":1==e?"one":"other"},fC=(e,t)=>1==e?"one":"other",pC=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?2!=o&&3!=o||12==i||13==i?"other":"few":1==o&&11!=i?"one":o>=2&&o<=4&&(i<12||i>14)?"few":r&&0==o||o>=5&&o<=9||i>=11&&i<=14?"many":"other"},hC=QS,mC=QS,gC=QS,vC=XS,bC=eC,yC=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",xC=eC,_C=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return t?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==a?"many":"other"},SC=QS,CC=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},EC=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},wC=QS,kC=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=l&&6!=l&&9!=l?"one":"other"},RC=QS,TC=QS,AC=QS,NC=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},LC=(e,t)=>t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other",OC=(e,t)=>{const n=String(e).split("."),r=n[0],o=Number(n[0])==e;return t||1!=e&&(o||0!=r&&1!=r)?"other":"one"},MC=ZS,PC=JS,IC=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),l=o.slice(-2);return t?"other":i&&1==a||1==l?"one":i&&2==a||2==l?"two":i&&(3==a||4==a)||3==l||4==l?"few":"other"},DC=QS,$C=eC,zC=QS,FC=QS,BC=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},HC=QS,jC=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e?"one":0!=r&&0==i&&o?"many":"other"},WC=ZS,GC=QS,YC=JS,UC=(e,t)=>t?"other":e>=0&&e<2?"one":"other",KC=ZS,VC=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=l&&6!=l&&9!=l?"one":"other"},qC=QS,QC=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e?"one":"other":e>=0&&e<2?"one":0!=r&&0==i&&o?"many":"other"},XC=QS,JC=ZS,ZC=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},eE=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||11==e?"one":2==e||12==e?"two":3==e||13==e?"few":"other":1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},tE=ZS,nE=QS,rE=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",oE=XS,iE=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?o?"other":"many":"few"},aE=QS,lE=QS,sE=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==r&&o||0==r&&!o?"one":2==r&&o?"two":"other"},uE=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",cE=eC,dE=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},fE=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),l=o.slice(-2);return t?"other":i&&1==a||1==l?"one":i&&2==a||2==l?"two":i&&(3==a||4==a)||3==l||4==l?"few":"other"},pE=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",hE=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",mE=ZS,gE=eC,vE=eC,bE=eC,yE=ZS,xE=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,a=r.slice(-1),l=r.slice(-2);return t?"other":i&&1==a&&11!=l||o%10==1&&o%100!=11?"one":"other"},_E=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},SE=tC,CE=eC,EE=eC,wE=QS,kE=QS,RE=eC,TE=eC,AE=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-2);return t?1==n?"one":0==n||r>=2&&r<=20||40==r||60==r||80==r?"many":"other":1==e?"one":"other"},NE=(e,t)=>t?"other":e>=0&&e<2?"one":"other",LE=QS,OE=QS,ME=eC,PE=eC,IE=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1);return t?6==o||9==o||r&&0==o&&0!=e?"many":"other":1==e?"one":"other"},DE=QS,$E=QS,zE=eC,FE=JS,BE=eC,HE=QS,jE=QS,WE=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",GE=QS,YE=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),a=r&&n[0].slice(-5),l=r&&n[0].slice(-6);return t?r&&e>=1&&e<=4||o>=1&&o<=4||o>=21&&o<=24||o>=41&&o<=44||o>=61&&o<=64||o>=81&&o<=84?"one":5==e||5==o?"many":"other":0==e?"zero":1==e?"one":2==o||22==o||42==o||62==o||82==o||r&&0==i&&(a>=1e3&&a<=2e4||4e4==a||6e4==a||8e4==a)||0!=e&&1e5==l?"two":3==o||23==o||43==o||63==o||83==o?"few":1==e||1!=o&&21!=o&&41!=o&&61!=o&&81!=o?"other":"many"},UE=QS,KE=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},VE=QS,qE=QS,QE=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e;return t?11==e||8==e||o&&e>=80&&e<=89||o&&e>=800&&e<=899?"many":"other":1==e&&r?"one":"other"},XE=eC,JE=XS,ZE=(e,t)=>t&&1==e?"one":"other",ew=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},tw=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||l>=11&&l<=19||2==o&&s>=11&&s<=19?"zero":1==a&&11!=l||2==o&&1==u&&11!=s||2!=o&&1==u?"one":"other"},nw=QS,rw=XS,ow=QS,iw=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?1==a&&11!=l?"one":2==a&&12!=l?"two":7!=a&&8!=a||17==l||18==l?"other":"many":i&&1==a&&11!=l||1==s&&11!=u?"one":"other"},aw=QS,lw=QS,sw=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},uw=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",cw=(e,t)=>t&&1==e?"one":"other",dw=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":1==e?"one":2==e?"two":0==e||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},fw=eC,pw=QS,hw=tC,mw=QS,gw=QS,vw=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?r&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},bw=ZS,yw=QS,xw=QS,_w=QS,Sw=eC,Cw=QS,Ew=XS,ww=QS,kw=QS,Rw=QS,Tw=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||5==e||r&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},Aw=QS,Nw=eC,Lw=XS,Ow=QS,Mw=JS,Pw=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},Iw=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||l>=11&&l<=19||2==o&&s>=11&&s<=19?"zero":1==a&&11!=l||2==o&&1==u&&11!=s||2!=o&&1==u?"one":"other"},Dw=QS,$w=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":0==r||1==r?"one":0!=r&&0==i&&o?"many":"other"},zw=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},Fw=QS,Bw=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},Hw=QS,jw=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},Ww=QS,Gw=eC,Yw=QS,Uw=tC,Kw=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},Vw=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},qw=QS,Qw=QS,Xw=tC,Jw=QS,Zw=eC,ek=eC,tk=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},nk=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},rk=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"";return t?"other":0==e||1==e||0==r&&1==o?"one":"other"},ok=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},ik=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":o&&(3==i||4==i)||!o?"few":"other"},ak=tC,lk=tC,sk=tC,uk=tC,ck=tC,dk=QS,fk=QS,pk=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?1==e?"one":4==o&&14!=i?"many":"other":1==e?"one":"other"},hk=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=l||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},mk=QS,gk=QS,vk=QS,bk=eC,yk=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==a||12==a?"other":"one":1==e&&r?"one":"other"},xk=ZS,_k=QS,Sk=QS,Ck=QS,Ek=QS,wk=eC,kk=XS,Rk=QS,Tk=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-1);return t?6==r||9==r||10==e?"few":"other":1==e?"one":"other"},Ak=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),l=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=l&&6!=l&&9!=l?"one":"other"},Nk=QS,Lk=eC,Ok=eC,Mk=QS,Pk=QS,Ik=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":0==e||1==e||r&&e>=11&&e<=99?"one":"other"},Dk=QS,$k=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,a=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-1),u=r.slice(-2);return t?3==a&&13!=l?"few":"other":o&&1==s&&11!=u?"one":o&&s>=2&&s<=4&&(u<12||u>14)?"few":o&&0==s||o&&s>=5&&s<=9||o&&u>=11&&u<=14?"many":"other"},zk=eC,Fk=ZS,Bk=QS,Hk=QS,jk=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},Wk=(e,t)=>t&&1==e?"one":"other",Gk=QS,Yk=QS,Uk=XS,Kk=QS,Vk=eC,qk=QS,Qk=QS,Xk=ZS,Jk=eC,Zk=eC,eR=eC,tR=JS,nR=class e{static configure(t,n=gS){e.translations=t,e.language=wS(n),e.languageShort=ES(n),AS(e.language),e.onTranslationsChangeListeners.forEach((e=>e())),e.i18nProvider=NS,NS.missingTranslation=e=>e,NS.defaultSeparator=null,NS.locale=e.language,NS.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];NS.pluralization[e.language]=e=>{try{const t=qS[r](e),n=[t];return"few"!==t&&"many"!==t||n.push("other"),n}catch(t){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}}}}static getWithKeys(t,n){var r;let o=null!=(r=e.translations[t])?r:t;return n&&Object.keys(n).length>0&&(o=TS(o,n)),o}static getPlural(t,n,r){return e.i18nProvider.t(t,((e,t)=>{for(var n in t||(t={}))cS.call(t,n)&&fS(e,n,t[n]);if(uS)for(var n of uS(t))dS.call(t,n)&&fS(e,n,t[n]);return e})({count:n},r))}static append(t){Object.assign(e.translations,t),e.onTranslationsChangeListeners.forEach((e=>e()))}static appendPlurals(t){Object.assign(e.translationsPlurals,t),e.onTranslationsChangeListeners.forEach((e=>e()))}static onTranslationsChange(t){return e.onTranslationsChangeListeners.push(t),()=>{e.onTranslationsChangeListeners.splice(e.onTranslationsChangeListeners.indexOf(t))}}};hS(nR,"translations",{}),hS(nR,"translationsPlurals",{}),hS(nR,"language"),hS(nR,"languageShort"),hS(nR,"onTranslationsChangeListeners",[]),hS(nR,"i18nProvider"),hS(nR,"get",((e,...t)=>{var n;const r=kS(t);let o=null!=(n=nR.translations[e])?n:e;return r.length>0&&(o=RS(o,...r)),o}));var rR=nR;var oR,iR,aR,lR=function(){const[e,t]=$.useState(0);return $.useEffect((()=>{const n=rR.onTranslationsChange((()=>{t(e+1)}));return()=>{n()}}),[]),rR.get},sR=rR,uR={};var cR,dR,fR,pR=function(){if(aR)return iR;aR=1;const e=function(){if(oR)return uR;oR=1;var e=ke(),t=w();return uR.AutoFocusPlugin=function({defaultSelection:n}){let[r]=e.useLexicalComposerContext();return t.useEffect((()=>{r.focus((()=>{let e=document.activeElement,t=r.getRootElement();null===t||null!==e&&t.contains(e)||t.focus({preventScroll:!0})}),{defaultSelection:n})}),[n,r]),null},uR}();return iR=e}(),hR={};var mR,gR,vR,bR,yR=function(){if(fR)return dR;fR=1;const e=function(){if(cR)return hR;cR=1;var e=ke(),t=w();function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}var r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;return hR.ContentEditable=function({ariaActiveDescendant:o,ariaAutoComplete:i,ariaControls:a,ariaDescribedBy:l,ariaExpanded:s,ariaLabel:u,ariaLabelledBy:c,ariaMultiline:d,ariaOwns:f,ariaRequired:p,autoCapitalize:h,className:m,id:g,role:v="textbox",spellCheck:b=!0,style:y,tabIndex:x,"data-testid":_,...S}){let[C]=e.useLexicalComposerContext(),[E,w]=t.useState(!1),k=t.useCallback((e=>{C.setRootElement(e)}),[C]);return r((()=>(w(C.isEditable()),C.registerEditableListener((e=>{w(e)})))),[C]),t.createElement("div",n({},S,{"aria-activedescendant":E?o:void 0,"aria-autocomplete":E?i:"none","aria-controls":E?a:void 0,"aria-describedby":l,"aria-expanded":E&&"combobox"===v?!!s:void 0,"aria-label":u,"aria-labelledby":c,"aria-multiline":d,"aria-owns":E?f:void 0,"aria-readonly":!E||void 0,"aria-required":p,autoCapitalize:h,className:m,contentEditable:E,"data-testid":_,id:g,ref:k,role:v,spellCheck:b,style:y,tabIndex:x}))},hR}();return dR=e}();function xR(){if(gR)return mR;gR=1;var e=w();function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}var n={error:null},r=function(r){function o(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=r.call.apply(r,[this].concat(o))||this).state=n,e.resetErrorBoundary=function(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];null==e.props.onReset||(t=e.props).onReset.apply(t,r),e.reset()},e}!function(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,t(e,n)}(o,r),o.getDerivedStateFromError=function(e){return{error:e}};var i=o.prototype;return i.reset=function(){this.setState(n)},i.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},i.componentDidUpdate=function(e,t){var n,r,o=this.props.resetKeys;null!==this.state.error&&null!==t.error&&function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))}(e.resetKeys,o)&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,e.resetKeys,o),this.reset())},i.render=function(){var t=this.state.error,n=this.props,r=n.fallbackRender,o=n.FallbackComponent;if(n=n.fallback,null!==t){if(t={error:t,resetErrorBoundary:this.resetErrorBoundary},e.isValidElement(n))return n;if("function"==typeof r)return r(t);if(o)return e.createElement(o,t);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},o}(e.Component);return mR=function({children:t,onError:n}){return e.createElement(r,{fallback:e.createElement("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"}},"An error was thrown."),onError:n},t)},mR}var _R,SR,CR,ER=m(function(){if(bR)return vR;bR=1;const e=xR();return vR=e}()),wR={},kR={};function RR(){if(CR)return SR;CR=1;const e=function(){if(_R)return kR;_R=1;var e=oe();function t(e,t=!0){return!e&&(e=n(),t&&(e=e.trim()),""===e)}function n(){return e.$getRoot().getTextContent()}function r(n){if(!t(n,!1))return!1;let r=(n=e.$getRoot().getChildren()).length;if(1<r)return!1;for(let t=0;t<r;t++){var o=n[t];if(e.$isDecoratorNode(o))return!1;if(e.$isElementNode(o)){if(!e.$isParagraphNode(o)||0!==o.__indent)return!1;let n=(o=o.getChildren()).length;for(let r=0;r<n;r++)if(!e.$isTextNode(o[t]))return!1}}return!0}return kR.$canShowPlaceholder=r,kR.$canShowPlaceholderCurry=function(e){return()=>r(e)},kR.$findTextIntersectionFromCharacters=function(t,n){var r=t.getFirstChild();t=0;e:for(;null!==r;){if(e.$isElementNode(r)){var o=r.getFirstChild();if(null!==o){r=o;continue}}else if(e.$isTextNode(r)){if(t+(o=r.getTextContentSize())>n)return{node:r,offset:n-t};t+=o}if(null===(o=r.getNextSibling())){for(r=r.getParent();null!==r;){if(null!==(o=r.getNextSibling())){r=o;continue e}r=r.getParent()}break}r=o}return null},kR.$isRootTextContentEmpty=t,kR.$isRootTextContentEmptyCurry=function(e,n){return()=>t(e,n)},kR.$rootTextContent=n,kR.registerLexicalTextEntity=function(t,n,r,o){let i=t=>{const n=e.$createTextNode(t.getTextContent());n.setFormat(t.getFormat()),t.replace(n)},a=t.registerNodeTransform(e.TextNode,(t=>{if(t.isSimpleText()){var a=t.getPreviousSibling(),l=t.getTextContent(),s=t;if(e.$isTextNode(a)){var u=a.getTextContent(),c=n(u+l);if(a instanceof r){if(null===c||0!==a.getLatest().__mode)return void i(a);if(0<(c=c.end-u.length))return s=u+(s=l.slice(0,c)),a.select(),a.setTextContent(s),void(c===l.length?t.remove():(a=l.slice(c),t.setTextContent(a)))}else if(null===c||c.start<u.length)return}for(;;){if(l=c=null===(t=n(l))?"":l.slice(t.end),""===c){if(u=s.getNextSibling(),e.$isTextNode(u)){if(c=s.getTextContent()+u.getTextContent(),null===(c=n(c))){u instanceof r?i(u):u.markDirty();break}if(0!==c.start)break}}else if(null!==(u=n(c))&&0===u.start)break;if(null===t)break;if(0===t.start&&e.$isTextNode(a)&&a.isTextEntity())continue;let d;if(0===t.start?[d,s]=s.splitText(t.end):[,d,s]=s.splitText(t.start,t.end),(t=o(d)).setFormat(d.getFormat()),d.replace(t),null==s)break}}}));return t=t.registerNodeTransform(r,(t=>{var o=t.getTextContent();const a=n(o);null===a||0!==a.start?i(t):o.length>a.end?t.splitText(a.end):(o=t.getPreviousSibling(),e.$isTextNode(o)&&o.isTextEntity()&&(i(o),i(t)),o=t.getNextSibling(),e.$isTextNode(o)&&o.isTextEntity()&&(i(o),t instanceof r&&i(t)))})),[a,t]},kR}();return SR=e}var TR,AR,NR,LR,OR,MR,PR={};function IR(){if(NR)return AR;NR=1;const e=function(){if(TR)return PR;TR=1;var e=oe();return PR.registerDragonSupport=function(t){let n=window.location.origin,r=r=>{if(r.origin===n){var o=t.getRootElement();if(document.activeElement===o&&"string"==typeof(o=r.data)){try{var i=JSON.parse(o)}catch(e){return}if(i&&"nuanria_messaging"===i.protocol&&"request"===i.type&&(i=i.payload)&&"makeChanges"===i.functionId&&(i=i.args)){const[n,o,a,l,s]=i;t.update((()=>{const t=e.$getSelection();if(e.$isRangeSelection(t)){var i=t.anchor;let u=i.getNode(),c=0,d=0;e.$isTextNode(u)&&0<=n&&0<=o&&(c=n,d=n+o,t.setTextNodeRange(u,c,u,d)),c===d&&""===a||(t.insertRawText(a),u=i.getNode()),e.$isTextNode(u)&&(c=l,d=l+s,c=c>(i=u.getTextContentSize())?i:c,d=d>i?i:d,t.setTextNodeRange(u,c,u,d)),r.stopImmediatePropagation()}}))}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}},PR}();return AR=e}function DR(){if(LR)return wR;LR=1;var e=ke(),t=Rt(),n=w(),r=RR(),o=le(),i=I(),a=IR(),l=pt(),s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function u(e){return e.getEditorState().read(r.$canShowPlaceholderCurry(e.isComposing()))}function c({content:r}){var[i]=e.useLexicalComposerContext();i=function(e){let[t,r]=n.useState((()=>u(e)));return s((()=>{function t(){let t=u(e);r(t)}return t(),o.mergeRegister(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(i);let a=t();return i?"function"==typeof r?r(a):r:null}return wR.RichTextPlugin=function({contentEditable:t,placeholder:r,ErrorBoundary:u}){let[d]=e.useLexicalComposerContext();return u=function(e,t){let[r,o]=n.useState((()=>e.getDecorators()));return s((()=>e.registerDecoratorListener((e=>{i.flushSync((()=>{o(e)}))}))),[e]),n.useEffect((()=>{o(e.getDecorators())}),[e]),n.useMemo((()=>{let o=[],a=Object.keys(r);for(let l=0;l<a.length;l++){let s=a[l],u=n.createElement(t,{onError:t=>e._onError(t)},n.createElement(n.Suspense,{fallback:null},r[s])),c=e.getElementByKey(s);null!==c&&o.push(i.createPortal(u,c,s))}return o}),[t,r,e])}(d,u),function(e){s((()=>o.mergeRegister(l.registerRichText(e),a.registerDragonSupport(e))),[e])}(d),n.createElement(n.Fragment,null,t,n.createElement(c,{content:r}),u)},wR}var $R=function(){if(MR)return OR;MR=1;const e=DR();return OR=e}();const zR=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"m2.604 7.672-.276.96h2.004l-.276-.96a42 42 0 0 1-.372-1.284L3.348 5.08H3.3q-.156.66-.336 1.32-.168.648-.36 1.272m-2.628 4.176L2.532 4h1.632l2.556 7.848H5.256l-.612-2.124h-2.64l-.612 2.124zm9.23.144q-.768 0-1.26-.48-.48-.48-.48-1.248 0-.948.828-1.464.828-.528 2.64-.72a1.4 1.4 0 0 0-.252-.804q-.228-.348-.828-.348-.432 0-.852.168-.408.168-.804.408l-.504-.924a6 6 0 0 1 1.104-.54 3.8 3.8 0 0 1 1.32-.228q1.104 0 1.644.66.552.648.552 1.884v3.492h-1.14l-.096-.648h-.048a4.3 4.3 0 0 1-.852.564q-.444.228-.972.228m.444-1.08q.36 0 .648-.168.3-.18.636-.48v-1.32q-1.2.156-1.668.468-.468.3-.468.744 0 .396.24.576t.612.18M14 1h1v14h-1zm-1 0h3v1h-3zm0 13h3v1h-3z"})}),FR=$.forwardRef(zR),BR=(e,t)=>ai.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[ai.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),ai.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),HR=$.forwardRef(BR),jR=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"M0 1h15v2H0zm13 4v2H0V5zM0 11V9h16v2zm0 4v-2h10v2z"})}),WR=$.forwardRef(jR),GR=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),YR=$.forwardRef(GR),UR=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),KR=$.forwardRef(UR),VR=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"M1.5 10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m13.75.75a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 1 1 0-1.5zM1.5 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m13.75.75a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1 0-1.5z"})}),qR=$.forwardRef(VR),QR=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"M5 13v1.382L7.764 13H14a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1zm-1 3v-2H2a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8zM4 6v1h8V6zm0 3v1h7V9z"})}),XR=$.forwardRef(QR),JR=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"M2.05 9q.371 0 .72.09.349.088.623.275.273.185.436.467t.163.66a1.38 1.38 0 0 1-.284.86q-.133.179-.304.334l-.173.154-.18.152-1.245 1.004H4V14H.114v-.963l2.095-1.72.123-.115q.114-.116.196-.235a.7.7 0 0 0 .121-.399.54.54 0 0 0-.182-.423q-.183-.162-.486-.162a.7.7 0 0 0-.52.203.83.83 0 0 0-.217.406l-.022.127L0 10.57l.031-.181q.06-.264.193-.48.179-.29.452-.492a2 2 0 0 1 .626-.31q.352-.105.747-.106m13.2 1.75a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5zM3 2v5H1.698V3.328l-1.024.72L0 3.208 1.806 2zm12.25 1.75a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5z"})}),ZR=$.forwardRef(JR),eT=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"M5.52 11.938 4.5 15H1L6.425 1h3.238L15 15h-3.5l-1.02-3.062zm.73-2.188h3.5L8 4.5z"})}),tT=$.forwardRef(eT),nT=(e,t)=>ai.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[ai.jsx("path",{d:"M9.034 14.99V15H3V1h6.034v.034Q9.246 1 9.466 1c1.666 0 3.017 1.522 3.017 3.4 0 1.376-.726 2.562-1.77 3.097C12.056 8.083 13 9.475 13 11.1c0 2.154-1.66 3.9-3.707 3.9q-.13 0-.259-.01M5.586 3.5v3.2h2.71a1.6 1.6 0 1 0 0-3.2zm0 5.5v3.8H8.86a1.9 1.9 0 0 0 0-3.8z"}),ai.jsx("use",{fillRule:"evenodd"})]}),rT=$.forwardRef(nT),oT=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"M4.145 0h1.71l2.391 6.833-.785.784L7.245 7h-4.49l-1.283 3.665-.944-.33zm-1.04 6h3.79l-1.75-5h-.29zm9.066-.321a1 1 0 0 0-1.414 0l-6.364 6.364a1 1 0 0 0 0 1.414l2.25 2.25A1 1 0 0 0 7.35 16h6.471v-1h-3.114l4.686-4.686a1 1 0 0 0 0-1.414zm-2.2 8.643L9.293 15H7.35L5.1 12.75l1.65-1.65zm.707-.708-3.22-3.221 4.006-4.007 3.222 3.221z"})}),iT=$.forwardRef(oT),aT=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"M8.5 0a7.99 7.99 0 0 1 6.34 3.12c1.167 1.514 1.714 3.535 1.268 5.395-.444 1.85-1.776 2.609-3.192 2.897a7 7 0 0 1-1.24.113l-.683.012c-.681.018-1.276.086-1.653.484-.577.511-.487.996-.255 1.464l.106.2.281.49c.259.484.383.957-.253 1.43-.435.324-1 .408-1.54.353A8.001 8.001 0 0 1 8.5 0m0 1a7 7 0 0 0-.315 13.993.54.54 0 0 0 .235-.063c.166-.09.182-.272.088-.437-.084-.146-.175-.29-.254-.438a3 3 0 0 1-.297-.758 1.94 1.94 0 0 1 .05-1.06c.124-.365.35-.674.64-.937.519-.525 1.201-.68 1.765-.733l.294-.02.344-.012.389-.007c.466-.006.862-.011 1.278-.096.855-.174 1.538-.52 1.971-1.128q.091-.126.173-.28c1-1.887.164-4.339-1.317-5.878A6.98 6.98 0 0 0 8.5 1m-4 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4M13 6.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-1-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2M8 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"})}),lT=$.forwardRef(aT),sT=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"M14 5H2V3h12zm-9 8H2V6h3zm1 0V6h4v7zm5 0V6h3v7zM0 2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1zm1 0v12h14V2z"})}),uT=$.forwardRef(sT),cT=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"m10.927 1.255-3.886 13.6A.2.2 0 0 1 6.85 15H5.265a.2.2 0 0 1-.192-.255l3.886-13.6A.2.2 0 0 1 9.15 1h1.584a.2.2 0 0 1 .192.255"})}),dT=$.forwardRef(cT),fT=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"m9.354 7.146-.708.708a2.33 2.33 0 0 0-3.292 0l-2.75 2.75a1.975 1.975 0 0 0 2.792 2.793l2.75-2.75.708.707-2.75 2.75a2.975 2.975 0 0 1-4.208-4.208l2.75-2.75a3.33 3.33 0 0 1 4.708 0m4.75-5.25a2.975 2.975 0 0 1 0 4.208l-2.75 2.75a3.33 3.33 0 0 1-4.708 0l.708-.708c.909.91 2.383.91 3.292 0l2.75-2.75a1.975 1.975 0 1 0-2.793-2.792l-2.75 2.75-.707-.708 2.75-2.75a2.975 2.975 0 0 1 4.207 0Z"})}),pT=$.forwardRef(fT),hT=(e,t)=>ai.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ai.jsx("path",{d:"M13 1v7.059c0 1.714-.364 2.924-1.273 3.73C10.91 12.598 9.455 13 8 13c-1.545 0-3-.403-3.818-1.21C3.455 10.983 3 9.773 3 8.059V1h2.455v7.059c0 .302 0 .706.09 1.008.091.303.182.605.364.807s.364.504.727.605c.273.1.91.202 1.455.202.909 0 1.727-.202 2-.706.364-.404.454-1.11.454-2.017V1zM3 14h10v1H3z"})}),mT=$.forwardRef(hT),gT=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,vT=[e=>{const t=gT.exec(e);if(null===t)return null;const n=t[0];return{index:t.index,length:n.length,text:n,url:n.startsWith("http")?n:`https://${n}`,attributes:{target:"_blank"}}},Et.createLinkMatcherWithRegExp(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,(e=>`mailto:${e}`))];function bT(){return $.createElement(Et.AutoLinkPlugin,{matchers:vT})}const yT=()=>{const[e]=wt.useLexicalComposerContext(),t=Tt(),n=$.useCallback((n=>{for(const[r,o]of n)"updated"!==o&&"created"!==o||e.getEditorState().read((()=>{const n=t?"pointer":"",o=e.getElementByKey(r);o&&(o.style.cursor=n)}))}),[t,e]);return $.useEffect((()=>At.mergeRegister(e.registerMutationListener(fe.LinkNode,(e=>{n(e)})),e.registerMutationListener(fe.AutoLinkNode,(e=>{n(e)})),e.registerCommand(Nt.CLICK_COMMAND,(t=>(t.metaKey&&t.target&&e.getEditorState().read((()=>{const e=Nt.$getSelection();let t;if(Nt.$isRangeSelection(e)&&(t=e.focus.getNode().getParent()),Nt.$isNodeSelection(e)&&(t=e.getNodes()[0]),fe.$isAutoLinkNode(t)||fe.$isLinkNode(t)){const e=t.getURL();setTimeout((()=>{const t=window.open(e,"_blank");null==t||t.focus()}),0)}})),!1)),Nt.COMMAND_PRIORITY_EDITOR))),[e,n]),null};function xT(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?Lt.$isAtNodeEnd(n)?r:o:Lt.$isAtNodeEnd(t)?r:o}const _T=new Set(["http:","https:","mailto:","sms:","tel:"]),ST=e=>{const t=e;return t.password="",t.username="",t};function CT(e){try{const t=new URL(e);return _T.has(t.protocol)?{url:ST(t).toString(),target:"_blank"}:{url:"about:blank"}}catch(t){return{url:e,target:"_blank"}}}const ET=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function wT(e){return"https://"===e||ET.test(e)}const kT=su(kf)((({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)}))),RT=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=$.useRef(null),[a,l]=$.useState(t);$.useEffect((()=>{l(t)}),[t]);const s=$.useCallback((()=>{n(a),window.open(CT(a).url,"_blank"),r()}),[a,r,n]),u=$.useCallback((e=>{e.preventDefault(),e.stopPropagation(),n(a)}),[a,n]),c=$.useCallback((e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))}),[a,n]),d=$.useCallback((e=>{e.preventDefault(),l(e.currentTarget.value)}),[]);return z.createElement(jd,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:1},transition:!0},(({TransitionProps:e})=>z.createElement(Lf,{...e},z.createElement(Du,{className:"tekPopperMenu"},z.createElement(kT,{direction:"row"},z.createElement(rf,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),z.createElement(ic,{onClick:s},z.createElement(fp,null)),z.createElement(ic,{onClick:u},z.createElement(hp,null)))))))},TT=()=>{const[e]=wt.useLexicalComposerContext(),t=Tt(),[n,r]=$.useState(null),[o,i]=$.useState(""),a=$.useRef(!1),l=$.useCallback((()=>{if(a.current)return a.current=!1,!1;const t=Nt.$getSelection();if(Nt.$isRangeSelection(t)){const n=xT(t),o=n.getParent();if(fe.$isAutoLinkNode(o)||fe.$isAutoLinkNode(n))return r(null),i(""),!1;let a;if(fe.$isLinkNode(o)&&(a=o),fe.$isLinkNode(n)&&(a=n),fe.$isLinkNode(a)){const t=e.getElementByKey(null==a?void 0:a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1}),[e]),s=$.useCallback((t=>{a.current=!0,e.update((()=>{e.dispatchCommand(fe.TOGGLE_LINK_COMMAND,CT(t))}),{onUpdate:()=>{r(null)}})}),[e]),u=$.useCallback((()=>{r(null)}),[]);return $.useEffect((()=>At.mergeRegister(e.registerCommand(Nt.SELECTION_CHANGE_COMMAND,(()=>l()),Nt.COMMAND_PRIORITY_LOW),e.registerCommand(Nt.CLICK_COMMAND,(()=>l()),Nt.COMMAND_PRIORITY_LOW))),[e,l]),t?z.createElement(RT,{anchorEl:n,link:o,onChanged:s,onOpened:u}):null};function AT(){return $.createElement(yp.LinkPlugin,{validateUrl:wT})}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('.tek__editor__container {\n color: #000;\n position: relative;\n line-height: 1.25;\n font-weight: 400;\n text-align: left;\n resize: none;\n height: 100%;\n overflow-y: auto;\n}\n.tek__editor__container {\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.tek__editor__container::-webkit-scrollbar {\n display: none;\n}\n\n.tek__editor__container__scrollbar:hover {\n -ms-overflow-style: auto;\n scrollbar-width: thin;\n scrollbar-color: lightgray transparent;\n}\n.tek__editor__container__scrollbar:hover::-webkit-scrollbar {\n display: block;\n}\n\n.tek__editor__Wrapper {\n position: relative;\n background-color: transparent;\n flex: 1;\n height: 100%;\n}\n\n.tek__editor__input {\n font-size: 16px;\n caret-color: rgb(5, 5, 5);\n position: relative;\n tab-size: 1;\n outline: 0;\n caret-color: #444;\n min-height: 0px;\n color: #404040;\n display: block;\n background-color: transparent;\n}\n\n.tek__editor__placeholder {\n color: #999;\n overflow: hidden;\n position: absolute;\n text-overflow: ellipsis;\n top: 0px;\n left: 0px;\n font-size: 16px;\n user-select: none;\n display: inline-block;\n pointer-events: none;\n}\n\n.tek__editor__logo {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n color: #999;\n overflow: hidden;\n}\n\n.tek__editor__paragraph {\n margin: 0 0 0 0;\n position: relative;\n cursor: auto;\n}\n\n.tek__ltr {\n text-align: left;\n}\n\n.tek__rtl {\n text-align: right;\n}\n\n.tek__h1 {\n font-size: 28px;\n color: rgb(5, 5, 5);\n font-weight: bold;\n margin: 0px 0px 0.5em;\n}\n.tek__h2 {\n font-size: 16px;\n color: rgb(101, 103, 107);\n font-weight: 700;\n margin: 0px 0px 0.25em;\n text-transform: uppercase;\n}\n.tek__h3 {\n font-size: 12px;\n text-transform: uppercase;\n margin: 0px 0px 0.25em;\n}\n\n.tek__textBase {\n -webkit-user-select: text;\n user-select: text;\n}\n\n.tek__textBold {\n font-weight: bold;\n}\n\n.tek__textItalic {\n font-style: italic;\n}\n\n.tek__textUnderline {\n text-decoration: underline;\n}\n\n.tek__ol1 {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__ol2 {\n padding: 0;\n margin: 0;\n list-style-type: upper-alpha;\n list-style-position: inside;\n}\n.tek__ol3 {\n padding: 0;\n margin: 0;\n list-style-type: lower-alpha;\n list-style-position: inside;\n}\n.tek__ol4 {\n padding: 0;\n margin: 0;\n list-style-type: upper-roman;\n list-style-position: inside;\n}\n.tek__ol5 {\n padding: 0;\n margin: 0;\n list-style-type: lower-roman;\n list-style-position: inside;\n}\n.tek__ul {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__listItem {\n margin: 0 12px;\n}\n.tek__nestedListItem {\n list-style-type: none;\n}\n.tek__nestedListItem:before,\n.tek__nestedListItem:after {\n display: none;\n}\n\n.tek__quote {\n margin: 0;\n margin-left: 12px;\n margin-bottom: 10px;\n font-size: 15px;\n color: rgb(101, 103, 107);\n border-left-color: rgb(206, 208, 212);\n border-left-width: 4px;\n border-left-style: solid;\n padding-left: 16px;\n}\n\n.tek__table {\n border-collapse: collapse;\n border-spacing: 0;\n table-layout: fixed;\n position: relative;\n margin-top: 8px;\n margin-bottom: 8px;\n padding: 0;\n overflow: hidden;\n}\n\n.tek__tableCell {\n border: 1px solid rgb(206, 208, 212);\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n line-height: 1.25;\n}\n\n.tek__tableCellNoBorder {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__tableCellNoBorderEditMode {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__resizer {\n position: absolute;\n width: 6px;\n right: 0;\n top: 0;\n bottom: 0;\n cursor: col-resize;\n user-select: none;\n background-color: #009845;\n pointer-events: all;\n z-index: 2;\n opacity: 0;\n transition: opacity 0.3s ease; /* Transition effect */\n transform: translate(-3px, 0);\n}\n.tek__resizer:hover {\n opacity: 0.2;\n}\n\n.tek__resizeContainer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n z-index: 1;\n user-select: none;\n pointer-events: none;\n margin: 0;\n padding: 0;\n}\n\n.tek__tableActionButton {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n background-color: "white";\n user-select: none;\n}\n\n.tek__tekCellHighlight {\n background-color: rgba(100, 149, 237, 0.1);\n}\n\n.tek__resizeIndicatorDisplay {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n background-color: #54565a;\n color: white;\n text-align: center;\n font-size: 12px;\n padding: 2px;\n overflow: hidden;\n border-radius: 4px;\n width: 48px;\n height: 16px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.tek__leftResizerIndicator {\n left: -54px;\n}\n\n.tek__rightResizerIndicator {\n right: -54px;\n}\n');const NT=({children:e})=>z.createElement(cu,{theme:Up()},e),LT={namespace:"text-editor-kit",theme:{ltr:"tek__ltr",rtl:"tek__rtl",paragraph:"tek__editor__paragraph",placeholder:"text_editor__placeholder",quote:"tek__quote",table:"tek__table",tableCell:"tek__tableCell",heading:{h1:"tek__h1",h2:"tek__h2",h3:"tek__h3"},text:{base:"tek__textBase",bold:"tek__textBold",italic:"tek__textItalic",underline:"tek__textUnderline"},list:{listitem:"tek__listItem",nested:{listitem:"tek__nestedListItem"},olDepth:["tek__ol1","tek__ol2","tek__ol3","tek__ol4","tek__ol5"],ul:"tek__ul"}},nodes:[vt.HeadingNode,vt.QuoteNode,Se.ListNode,Se.ListItemNode,fe.LinkNode,fe.AutoLinkNode],onError:e=>{console.log(e)}},OT=({children:e,initialConfig:t,flags:n})=>z.createElement(NT,null,z.createElement("div",{className:"tek__editor__Wrapper"},z.createElement(Pe.LexicalComposer,{initialConfig:t||LT},z.createElement("div",{className:"tek__editor__container"+((null==n?void 0:n.isEnabled("QB_26358_SN_TEXT_SCROLLBAR"))?" tek__editor__container__scrollbar":"")},e,z.createElement(Ve.ListPlugin,null),z.createElement(at.TabIndentationPlugin,null),z.createElement(AT,null),z.createElement(bT,null),z.createElement(TT,null),z.createElement(yT,null),z.createElement(je.HistoryPlugin,null)))));let MT=class e extends Nt.ElementNode{static getType(){return"TekCellNode"}static clone(t){return new e(t.__hasBorders,t.__key)}static importJSON(t){return new e(void 0===t.hasBorders||t.hasBorders)}constructor(e,t){super(t),this.__hasBorders=e}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,type:"TekCellNode",version:1}}createDOM(e,t){const n=document.createElement("td");return n.classList.add(e.theme.tableCell||""),this.__hasBorders||(t.isEditable()?n.classList.add("tek__tableCellNoBorderEditMode"):n.classList.add("tek__tableCellNoBorder")),n}updateDOM(e,t){return this.__hasBorders?t.classList.remove("tek__tableCellNoBorder"):t.classList.add("tek__tableCellNoBorder"),this.__hasBorders!==e.__hasBorders}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}};const PT=e=>new MT(e),IT=e=>e instanceof MT;let DT=class e extends Nt.ElementNode{static getType(){return"TekTableNode"}static clone(t){return new e(t.__hasBorders,t.__width,t.__key)}static importJSON(t){const n=void 0===t.hasBorders||t.hasBorders,r=void 0===t.width?"100%":t.width;return new e(n,r)}constructor(e,t,n){super(n),this.__needsUpdate=!1,this.__hasBorders=e,this.__width=t}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,width:this.__width,type:"TekTableNode",version:1}}createDOM(e){const t=document.createElement("table");return t.classList.add(e.theme.table||""),t.style.width=this.__width,t}updateDOM(e){const t=this.__needsUpdate;try{!0===e.__needsUpdate&&(this.getWritable().__needsUpdate=!1)}catch(e){}return t||this.__width!==e.__width}markNeedsUpdate(){this.getWritable().__needsUpdate=!0}canBeEmpty(){return!1}canExtractContents(){return!1}isShadowRoot(){return!0}canSelectBefore(){return!0}canIndent(){return!1}getResizeNode(){return this.getChildAtIndex(1)}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}setWidth(e){this.getWritable().__width=e}isValid(){const e=this.getChildren();return!(e.length<3)&&"TekColGroupNode"===e[0].getType()&&"TEK_TABLE_RESIZE_NODE"===e[1].getType()&&"TekRowNode"===e[2].getType()}};function $T(e){return e instanceof DT}let zT=class e extends Nt.ElementNode{static getType(){return"TekRowNode"}static clone(t){return new e(t.__key)}static importJSON(){return new e}exportJSON(){return{...super.exportJSON(),type:"TekRowNode",version:1}}createDOM(){return document.createElement("tr")}updateDOM(){return!1}isShadowRoot(){return!0}canBeEmpty(){return!1}canIndent(){return!1}};function FT(e){return e instanceof zT}const BT=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),IT(t))return t;return null},HT=e=>{let t=e;for(;null!==t;){if($T(t))return t;t=null==t?void 0:t.getParent()}return null},jT=(e,t)=>{const n=HT(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},WT=e=>null==e?void 0:e.getChildAtIndex(2),GT=e=>{const t=e.getParent();if(FT(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},YT=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,UT=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},KT=e=>{if(!e)return[];return e.getChildren().filter((e=>FT(e)))},VT=e=>{let t=!1;return KT(e).forEach((e=>{e.getChildren().forEach((e=>{const n=e;n.clear(),n.append(Nt.$createParagraphNode()),t=!0}))})),t},qT=e=>{var t;const n=Nt.$getSelection();if(Nt.$isRangeSelection(n)||Nt.$isNodeSelection(n)){const r=n.getNodes().filter((e=>IT(e)));if(r.length>0){e.preventDefault(),e.stopPropagation();const o=n.getNodes().some((e=>$T(e))),i=HT(r[0]),a=KT(i);if((null===(t=a[0])||void 0===t?void 0:t.getChildren()).length*a.length===r.length&&o)return null==i||i.selectPrevious(),null==i||i.remove(),!1;if(Nt.$isRangeSelection(n)){const e=n.focus.getNode();if($T(e))return VT(e)}return r.forEach((e=>{e.clear(),e.append(Nt.$createParagraphNode())})),(()=>{const e=Nt.$getSelection();let t=!1;if(Nt.$isRangeSelection(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=HT(n);!o&&$T(r)&&(o=r),$T(o)&&(t=VT(o))}return t})()}if(Nt.$isRangeSelection(n)){const e=n.focus.getNode();if($T(e))return VT(e)}}return!1},QT=e=>{if(e){const t=HT(e);if($T(t)){const n=e.getParent(),r=KT(t).findIndex((e=>e===n));return{i:r,j:null==n?void 0:n.getChildren().findIndex((t=>t===e)),tableNode:t,row:n}}}return{i:0,j:0,tableNode:null,row:null}},XT=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),IT(t))return t;return null},JT=e=>{const t=[];return KT(e).forEach((e=>{const n=e.getChildren();t.push(...n)})),t},ZT=(e,t)=>{JT(e).forEach((e=>{const n=t.getElementByKey(e.getKey());null==n||n.classList.add("tek__tekCellHighlight")}))},eA=Nt.createCommand("UPDATE_COL_WIDTHS_COMMAND"),tA=Nt.createCommand("BEGIN_COL_RESIZE"),nA=Nt.createCommand("END_COL_RESIZE"),rA=Nt.createCommand("INSERT_TEK_TABLE_COMMAND"),oA=({colKey:e,startX:t,onMouseDown:n})=>{const r=$.useCallback((t=>{n(t,e)}),[e,n]);return z.createElement("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},iA=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},aA=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,lA=({nodeKey:e,colWidths:t})=>{const[n]=wt.useLexicalComposerContext(),r=Tt(),[o,i]=$.useState(null),a=$.useRef(null),l=$.useRef(null),s=$.useRef(null),u=$.useRef(null),c=$.useCallback((t=>{const n=Nt.$getNodeByKey(e);if(n){const e=n.getParent();if($T(e)){const n=WT(e);if("TekRowNode"===(null==n?void 0:n.getType())){const e=n.getChildren(),r=[];let o=0;e.forEach(((e,n)=>{const i=parseFloat(t[n]);o+=i,r.push({key:e.getKey(),startX:o})})),i(r)}}}}),[e]),d=$.useCallback((e=>{if(a.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:l,nxt:c,parentDomNode:d,currentTableWidth:f}=a.current,p=e.clientX-t,h=UT(l+p,r);if(c){const e=o+p;if(e<60)return;const t=UT(e,r),l=a.current.nxtColWidth-p,d=UT(l,r);if(l<60)return;n.setAttribute("width",t),c.setAttribute("width",d),i.style.left=h,s.current&&(s.current.innerText=t),u.current&&(u.current.innerText=d)}else if(d){i.style.left="100%";const e=f+p,{clampedWidths:t,fullyClamped:n,clampedTableWidth:o}=((e,t)=>{const n=[],r=e.rows[0];let o=0,i=0;for(let e=0;e<r.cells.length;e++){const a=Math.max(r.cells[e].offsetWidth,60);60===a&&o++,i+=a;const l=a/t,s=Math.min(100*l,100);n.push(`${s.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),a=UT(e,d),l=UT(o,d);r.style.width=!n||p>0?a:l,r.querySelectorAll(":scope > colgroup col").forEach(((e,n)=>{e.setAttribute("width",t[n])})),n||s.current&&(s.current.innerText=a)}}}),[]),f=$.useCallback((()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),a.current){a.current.resizer.style.opacity="",s.current=null,u.current=null;const e=(e=>{const t=e.rows[0],n=[];for(let r=0;r<t.cells.length;r++){const o=Math.max(t.cells[r].offsetWidth,60);n.push(UT(o,e))}return n})(a.current.tableElement);a.current.tableElement.querySelectorAll(":scope > colgroup col").forEach(((t,n)=>{t.setAttribute("width",e[n])})),(e=>{const t=document.getElementById("leftGripper"),n=document.getElementById("rightGripper");t&&e.removeChild(t),n&&e.removeChild(n)})(a.current.resizer),n.dispatchCommand(nA,void 0)}a.current=null,l.current=null,n.update((()=>{const t=Nt.$getNodeByKey(e),r=jT(t,n),a=null==t?void 0:t.getParent();if(r&&a){const t=r.querySelectorAll(":scope > colgroup col"),l=[];t.forEach((e=>{l.push(e.getAttribute("width")||"0")})),a.setWidth(r.style.width);let s=0;if(o){const e=o.map(((e,t)=>{const n={...e};return s+=parseFloat(l[t]),n.startX=s,n}));i(e)}n.dispatchCommand(eA,{colWidths:l,nodeKey:e})}}))}),[d,n,e,o]),p=$.useCallback(((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read((()=>{const r=Nt.$getNodeByKey(t),o=jT(r,n);if(IT(r)){const t=GT(r);if(-1!==t&&o){const r=null==o?void 0:o.querySelectorAll(":scope > colgroup col"),i=r[t],l=r.length>t+1?r[t+1]:null,c=YT(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,h=YT(l,o),m=o.parentElement,g=.01*parseFloat(o.style.width),v=((null==m?void 0:m.offsetWidth)||0)*g,b=((e,t,n)=>{const r=iA("tek__leftResizerIndicator","leftGripper");r.innerText=aA(e);let o=null;return t?(o=iA("tek__rightResizerIndicator","rightGripper"),o.innerText=aA(t)):r.innerText=n.style.width,{left:r,right:o}})(i,l,o);s.current=b.left,u.current=b.right,d.appendChild(b.left),b.right&&d.appendChild(b.right),d.style.opacity="1",a.current={resizer:d,curColWidth:c,col:i,tableElement:o,clientX:e.clientX,left:p,nxt:l,nxtColWidth:h,parentDomNode:m,currentTableWidth:v},n.dispatchCommand(tA,void 0)}}}))}),[n,d,f]);return $.useEffect((()=>{n.getEditorState().read((()=>{c(t)}))}),[c,n,t]),z.createElement(z.Fragment,null,o&&r?o.map((e=>z.createElement(oA,{key:`${e.key}`,colKey:e.key,startX:e.startX,onMouseDown:p}))):null)},sA="TEK_TABLE_RESIZE_NODE";let uA=class e extends Nt.DecoratorNode{static getType(){return sA}static clone(t){return new e(t.__colWidths,t.__key)}static importJSON(t){return new e(t.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:sA,version:1}}createDOM(){const e=document.createElement("div");return e.classList.add("tek__resizeContainer"),e}updateDOM(){return!1}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}decorate(){return z.createElement(lA,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const cA=e=>e instanceof uA,dA=({nodeKey:e,colWidths:t})=>{const[n]=wt.useLexicalComposerContext(),[r,o]=$.useState(t);return $.useEffect((()=>{n.getEditorState().read((()=>{const t=Nt.$getNodeByKey(e),n=null==t?void 0:t.getParent();if($T(n)){const e=n.getResizeNode();if(cA(e)){const t=e.__colWidths.map((e=>e));o(t)}}}))}),[n,e]),z.createElement(z.Fragment,null,r.map(((t,n)=>z.createElement("col",{span:1,width:t,key:`${e}.${n}`}))))};let fA=class e extends Nt.DecoratorNode{static getType(){return"TekColGroupNode"}static clone(t){return new e(t.__colWidths,t.__key)}static importJSON(t){return new e(t.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:"TekColGroupNode",version:1}}createDOM(){return document.createElement("colgroup")}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}updateDOM(){return!1}decorate(){return z.createElement(dA,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}},pA=class extends Nt.DecoratorNode{constructor(e,t){super(t),this.__formatStyle=e}setFormatStyle(e){this.getWritable().__formatStyle=e}hasStyle(e){return void 0!==this.__formatStyle[e]&&""!==this.__formatStyle[e]}getTextFormatStyle(e,t){return this.hasStyle(e)?this.__formatStyle[e]:t}};const hA=[DT,MT,zT,fA,uA],mA=(e,t)=>{const n=100/e,r=Array(e).fill(`${n}%`),o=null==t?void 0:t.getChildAtIndex(0),i=null==t?void 0:t.getChildAtIndex(1);o.setColWidths(r),i.setColWidths(r),null==t||t.markNeedsUpdate()},gA=()=>{var e;const t=Nt.$getSelection();if(Nt.$isRangeSelection(t)){const n=t.anchor.getNode(),r=BT(n);if(r){const t=GT(r),n=HT(r),o=KT(n),i=((null===(e=o[0])||void 0===e?void 0:e.getChildren().length)||1)-1;if(0===i)return null==n||n.selectPrevious(),void(null==n||n.remove());o.forEach((e=>{var n;null===(n=e.getChildAtIndex(t))||void 0===n||n.remove()})),mA(i,n)}}},vA=()=>{const e=Nt.$getSelection();if(Nt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=BT(t),r=HT(n);if(r&&3===r.getChildren().length)return Nt.$setSelection(null),void r.remove();if(n){const{row:e}=QT(n);Nt.$setSelection(null),null==e||e.remove()}}},bA=()=>{const e=Nt.$getSelection();if(Nt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=HT(t),r=WT(n);if(FT(r)&&n){const e=r.getChildren().length,t=new zT;for(let r=0;r<e;r++){const e=PT(null==n?void 0:n.__hasBorders);e.append(Nt.$createParagraphNode()),t.append(e)}null==n||n.append(t)}}},yA=()=>{var e;const t=Nt.$getSelection();if(Nt.$isRangeSelection(t)){const n=t.anchor.getNode(),r=HT(n);if($T(r)){const t=KT(r);let n=null;const o=((null===(e=t[0])||void 0===e?void 0:e.getChildren().length)||-1)+1;for(let e=0;e<t.length;e++){const o=PT(r.__hasBorders);o.append(Nt.$createParagraphNode()),t[e].append(o),n=o}return mA(o,r),n}}return null},xA=su(ic)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),_A=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=wt.useLexicalComposerContext(),[o,i]=$.useState(null),a=lR(),l=Boolean(o),s=$.useCallback(((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{t()}),{onUpdate:()=>{i(null),n()}})}),[r]),u=$.useCallback((e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)}),[n]),c=$.useCallback((()=>{i(null)}),[]),d=$.useCallback((e=>{s(e,bA,t)}),[s,t]),f=$.useCallback((e=>{s(e,yA,t)}),[s,t]),p=$.useCallback((t=>{s(t,vA,e)}),[s,e]),h=$.useCallback((t=>{s(t,gA,e)}),[s,e]),m=$.useCallback((()=>{r.update((()=>{(()=>{const e=Nt.$getSelection();if(Nt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=HT(t);$T(n)&&(n.selectPrevious(),n.remove())}})()}),{onUpdate:()=>{i(null),e()}})}),[r,e]),g=$.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{(()=>{const e=Nt.$getSelection();if(Nt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=HT(t);n&&(n.toggleBorders(),JT(n).forEach((e=>{e.toggleBorders()})))}})()}))}),[r]);return $.useEffect((()=>At.mergeRegister(r.registerCommand(Nt.SELECTION_CHANGE_COMMAND,(()=>(i(null),!1)),Nt.COMMAND_PRIORITY_CRITICAL))),[r]),z.createElement(yf,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},z.createElement("div",null,z.createElement(xA,{size:"small",onClick:u},z.createElement(lS,{height:12})),z.createElement(jd,{sx:{zIndex:1},open:l,anchorEl:o,placement:"auto-end"},z.createElement(Du,{id:"tekTableMenu",className:"tekPopperMenu"},z.createElement(Vf,{dense:!0},z.createElement(Zf,{onClick:g},a("ToggleBorders")),z.createElement(wf,null),z.createElement(Zf,{onClick:d},a("AddNewRow")),z.createElement(Zf,{onClick:f},a("AddNewColumn")),z.createElement(wf,null),z.createElement(Zf,{onClick:p},a("DeleteRow")),z.createElement(Zf,{onClick:h},a("DeleteCol")),z.createElement(wf,null),z.createElement(Zf,{onClick:m},a("DeleteTable")))))))},SA=()=>{var e,t,n,r;const[o]=wt.useLexicalComposerContext(),i=Tt(),[a,l]=$.useState(null),[s,u]=$.useState(!1),c=Boolean(a),d=$.useContext(fo),f=$.useRef(null),p=$.useCallback((()=>{s||o.update((()=>{const e=Nt.$getSelection();if(Nt.$isRangeSelection(e)){const t=BT(e.anchor.getNode());if(IT(t)){const e=o.getElementByKey(t.getKey());l(e)}else l(null)}}))}),[o,s]);$.useEffect((()=>{const e=e=>{0!==e.buttons?null===f.current&&(f.current=setTimeout((()=>{u(!0),l(null)}),300)):(u(!1),clearTimeout(f.current),f.current=null)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}}),[]),$.useEffect((()=>At.mergeRegister(o.registerCommand(Nt.SELECTION_CHANGE_COMMAND,(()=>(p(),!1)),Nt.COMMAND_PRIORITY_EDITOR),o.registerCommand(tA,(()=>(l(null),!0)),Nt.COMMAND_PRIORITY_CRITICAL),o.registerCommand(nA,(()=>(p(),!0)),Nt.COMMAND_PRIORITY_CRITICAL))),[o,p]),$.useEffect((()=>{l(null)}),[i]);const h=$.useCallback((()=>{l(null)}),[]),m=$.useCallback((()=>{l(null),setTimeout((()=>{p()}),0)}),[p]),g=$.useCallback((()=>{clearTimeout(f.current)}),[]);return z.createElement(jd,{open:c&&i,anchorEl:a,placement:"top-end",sx:{zIndex:1},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt((null===(r=null===(n=null===(t=null===(e=d.components)||void 0===e?void 0:e.MuiButton)||void 0===t?void 0:t.styleOverrides)||void 0===n?void 0:n.sizeSmall)||void 0===r?void 0:r.height)||"24",10)]}}]},z.createElement(_A,{onDeleteAction:h,onAction:m,onClick:g}))},CA=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=Nt.$getNodeByKey(n),r=null==e?void 0:e.getParent();Nt.$isRootNode(r)&&null!==e&&t.push(e)}if(t.length>0){const e=Nt.$createParagraphNode();t[0].insertBefore(e),e.select(),t.forEach((e=>e.remove()))}},EA=()=>{const[e]=wt.useLexicalComposerContext(),t=Tt();return $.useEffect((()=>At.mergeRegister(e.registerMutationListener(MT,(t=>{e.update((()=>{CA(t)}))})),e.registerMutationListener(zT,(t=>{e.update((()=>{CA(t)}))})),e.registerMutationListener(DT,(t=>{e.update((()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=Nt.$getNodeByKey(e);if($T(t)&&!t.isValid()){const e=Nt.$createParagraphNode();t.insertBefore(e),e.select(),t.remove()}}}))})),e.registerCommand(rA,(()=>(e.update((()=>{const e=(()=>{const e=["50%","50%"],t=new DT(!0,"100%"),n=new fA(e),r=new uA(e),o=[];for(let t=0;t<2;t++){const t=new zT;for(let n=0;n<e.length;n++){const e=PT(!0),n=Nt.$createParagraphNode();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();At.$insertNodeToNearestRoot(e)})),!0)),Nt.COMMAND_PRIORITY_EDITOR),e.registerCommand(eA,(({colWidths:e,nodeKey:t})=>{const n=Nt.$getNodeByKey(t);if(cA(n)){n.setColWidths(e);const t=n.getParent(),r=null==t?void 0:t.getChildAtIndex(0);(function(e){return e instanceof fA})(r)&&r.setColWidths(e)}return!0}),Nt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(Nt.KEY_ENTER_COMMAND,(t=>(null==t?void 0:t.shiftKey)?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=Nt.$getSelection();if(Nt.$isRangeSelection(e)){const t=e.focus.getNode(),n=HT(t),r=XT(t);if($T(n)){const e=Nt.$createParagraphNode();e.append(Nt.$createTextNode("")),n.insertBefore(e,!1),e.select()}}})()})),!0):!!(null==t?void 0:t.ctrlKey)&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=Nt.$getSelection();if(Nt.$isRangeSelection(e)){const t=e.focus.getNode(),n=HT(t);if($T(n)){const e=Nt.$createParagraphNode();e.append(Nt.$createTextNode("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()})),!0)),Nt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(Nt.KEY_BACKSPACE_COMMAND,(e=>qT(e)),Nt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(Nt.KEY_DELETE_COMMAND,(e=>qT(e)),Nt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(Nt.KEY_TAB_COMMAND,(e=>{const t=Nt.$getSelection();if(Nt.$isRangeSelection(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),IT(t))return{depth:n,tekCell:t};n++}return{depth:Number.MAX_SAFE_INTEGER,tekCell:null}})(n);if(r<=1)return e.preventDefault(),((e,t)=>{const{i:n,j:r,tableNode:o,row:i}=e,a=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+a);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const l=o.getChildAtIndex(n+2+a);if(FT(l)){const t=null==l?void 0:l.getChildAtIndex(e);(null==t?void 0:t.getChildAtIndex(0)).selectEnd()}}}})(QT(o),!e.shiftKey),!0}return!1}),Nt.COMMAND_PRIORITY_EDITOR),e.registerCommand(Nt.CUT_COMMAND,(e=>{const t=e.target,n=Nt.$getSelection();if(t.classList.contains("tek__table")&&Nt.$isRangeSelection(n)&&$T(n.anchor.getNode()))return e.preventDefault(),e.stopPropagation(),!0;if(Nt.$isRangeSelection(n)){const t=n.getNodes().some((e=>IT(e))),r=n.getNodes().some((e=>$T(e)));if(t&&!r)return e.preventDefault(),e.stopPropagation(),!0}return!1}),Nt.COMMAND_PRIORITY_CRITICAL))),[e]),$.useEffect((()=>e.registerCommand(Nt.SELECTION_CHANGE_COMMAND,(()=>(t&&e.update((()=>{(e=>{const t=Nt.$getSelection(),n=[];if(Nt.$nodesOfType(DT).forEach((e=>{const t=JT(e);n.push(...t)})),Nt.$isRangeSelection(t)){t.getNodes().filter((e=>$T(e))).forEach((t=>{ZT(t,e)}));const n=t.focus.getNode();if($T(n))return void ZT(n,e)}if(Nt.$isRangeSelection(t)||Nt.$isNodeSelection(t)){const r=new Set(t.getNodes().map((e=>XT(e))));for(let t=0;t<n.length;t++){const o=e.getElementByKey(n[t].getKey());r.has(n[t])?null==o||o.classList.add("tek__tekCellHighlight"):null==o||o.classList.remove("tek__tekCellHighlight")}}})(e)}),{tag:"history-merge"}),!1)),Nt.COMMAND_PRIORITY_CRITICAL)),[e,t]),$.useEffect((()=>{e.update((()=>{t||(e=>{const t=[];Nt.$nodesOfType(DT).forEach((e=>{const n=JT(e);t.push(...n)})),t.forEach((t=>{const n=e.getElementByKey(t.getKey());null==n||n.classList.remove("tek__tekCellHighlight")}))})(e)}))}),[t,e]),null},wA=()=>z.createElement(z.Fragment,null,z.createElement(EA,null),z.createElement(SA,null)),kA=()=>{const e=Tt(),t=lR();return e?z.createElement("div",{className:"tek__editor__placeholder"},t("EnterText")):z.createElement("div",{className:"tek__editor__logo"},z.createElement(FR,{height:32}))},RA=({showPlaceholder:e})=>z.createElement("div",{style:{position:"relative"}},z.createElement(pR.AutoFocusPlugin,null),z.createElement($R.RichTextPlugin,{contentEditable:z.createElement(yR.ContentEditable,{className:"tek__editor__input"}),placeholder:!1!==e?z.createElement(kA,null):null,ErrorBoundary:ER})),TA=su(kf)((({theme:e})=>({background:e.palette.common.white,height:e.spacing(4),display:"flex",alignItems:"center",paddingInline:e.spacing(.5),overflow:"auto",scrollbarWidth:"thin",width:"fit-content","&::-webkit-scrollbar":{height:"0.2em"},"&::-webkit-scrollbar-track":{background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#AAA"},"&::-webkit-scrollbar-thumb:hover":{background:"#AAA"}}))),AA=["Source Sans Pro, sans-serif","American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],NA="#404040",LA="16px",OA=$.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:AA[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),MA=({children:e})=>{const t=(()=>{const[e]=wt.useLexicalComposerContext(),[t,n]=$.useState(!1),[r,o]=$.useState(!1),[i,a]=$.useState(!1),[l,s]=$.useState("paragraph"),[u,c]=$.useState(AA[0]),[d,f]=$.useState(LA),[p,h]=$.useState(NA),[m,g]=$.useState("left"),[v,b]=$.useState(!1),y=$.useCallback((()=>{const t=Nt.$getSelection();if(Nt.$isRangeSelection(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:At.$findMatchingParent(r,(e=>{const t=e.getParent();return null!==t&&Nt.$isRootOrShadowRoot(t)}));null===i&&(i=r.getTopLevelElementOrThrow());const l=i.getKey();let u=i;if(null!==e.getElementByKey(l))if(Se.$isListNode(i)){const e=At.$getNearestNodeOfType(r,Se.ListNode),t=e?e.getListType():i.getListType();s(t)}else{const e=vt.$isHeadingNode(i)?i.getTag():i.getType();s(e)}if(Se.$isListNode(i)||vt.$isHeadingNode(i)){const e=At.$getNearestNodeOfType(i,Nt.ParagraphNode);e&&(u=e)}const d=xT(t),p=d.getParent();if(fe.$isLinkNode(p)||fe.$isLinkNode(d)?b(!0):b(!1),Nt.$isParagraphNode(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const m=Lt.$getSelectionStyleValueForProperty(t,"font-family",AA[0]),v=Lt.$getSelectionStyleValueForProperty(t,"font-size",LA);c(""===m?AA[0]:m),f(""!==v&&v?v:LA),h(Lt.$getSelectionStyleValueForProperty(t,"color",NA))}else Nt.$isNodeSelection(t)&&t.getNodes().forEach((e=>{if(function(e){return e instanceof pA}(e)){const t=e;n(t.hasStyle("fontWeight")),o(t.hasStyle("fontStyle")),a(t.hasStyle("textDecoration")),h(t.getTextFormatStyle("color",NA));const r=t.getTextFormatStyle("fontSize",LA),i=t.getTextFormatStyle("fontFamily",AA[0]);f(r),c(i);const l=t.getParent();if(null!==l){const e=(e=>{if(Se.$isListItemNode(e)){const t=At.$getNearestNodeOfType(e,Se.ListNode);return t?t.getListType():e.getListType()}return vt.$isHeadingNode(e)?e.getTag():e.getType()})(l);s(e)}}}))}),[e]);return $.useEffect((()=>At.mergeRegister(e.registerUpdateListener((({editorState:e})=>{e.read((()=>y()))})),e.registerCommand(Nt.SELECTION_CHANGE_COMMAND,(()=>(e.getEditorState().read((()=>y())),!1)),Nt.COMMAND_PRIORITY_EDITOR))),[e,y]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:l,fontName:u,fontSize:d,fontColor:p,align:m,isLink:v}}})();return z.createElement(OA.Provider,{value:t},e)},PA=({children:e})=>z.createElement(MA,null,z.createElement(TA,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row"},e)),IA=({anchorEl:e,children:t})=>{const n=Boolean(e);return z.createElement(jd,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:1}},(({TransitionProps:e})=>z.createElement(Lf,{...e},z.createElement(Du,{className:"tekPopperMenu"},t))))},DA=su(dc)({fontSize:12,textOverflow:"ellipsis"}),$A=({startIcon:e,value:t,onClick:n,compact:r})=>z.createElement(cp,{title:t,PopperProps:{disablePortal:!0}},z.createElement(vf,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:z.createElement(KR,{height:12})},r?e:z.createElement(DA,null,t))),zA=su(Zf,{shouldForwardProp:e=>"active"!==e})((({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0}))),FA=[{text:"AlignLeft",align:"left",icon:()=>z.createElement(WR,{height:12})},{text:"AlignCenter",align:"center",icon:()=>z.createElement(HR,{height:12})},{text:"AlignRight",align:"right",icon:()=>z.createElement(YR,{height:12})}],BA=({compact:e})=>{const[t]=wt.useLexicalComposerContext(),[n,r]=$.useState(null),{blockFormat:o}=$.useContext(OA),i=lR(),a=$.useMemo((()=>FA.find((e=>e.align===o.align))||FA[0]),[o.align]),l=$.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),s=$.useCallback((()=>{r(null)}),[]),u=$.useCallback((e=>{r(null),t.dispatchCommand(Nt.FORMAT_ELEMENT_COMMAND,e),t.focus()}),[t]);return z.createElement(yf,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},z.createElement("div",null,z.createElement($A,{value:i(a.text),startIcon:a.icon(),onClick:l,compact:e}),z.createElement(IA,{anchorEl:n},z.createElement(Vf,{dense:!0},FA.map((e=>z.createElement(zA,{value:e.text,dense:!0,key:e.align,active:e.align===o.align,onClick:()=>u(e.align)},z.createElement(Hf,null,e.icon()),z.createElement(DA,null,i(e.text)))))))))},HA=({text:e,icon:t})=>z.createElement(z.Fragment,null,z.createElement(Hf,null,t),z.createElement(DA,null,e)),jA=({text:e,icon:t})=>z.createElement(z.Fragment,null,z.createElement(Hf,null,z.createElement(DA,{fontWeight:"bold"},t)),z.createElement(DA,null,e)),WA=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],GA=(e,t,n)=>({icon:z.createElement("span",{style:{fontSize:12,fontWeight:"bold"}},t),text:n(e)}),YA=({compact:e})=>{const[t]=wt.useLexicalComposerContext(),{blockFormat:n}=$.useContext(OA),[r,o]=$.useState(null),i=lR(),a=$.useMemo((()=>{let e={icon:z.createElement(tT,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=GA("Heading1","H1",i)),"h2"===n.blockType&&(e=GA("Heading2","H2",i)),"h3"===n.blockType&&(e=GA("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=z.createElement(XR,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=z.createElement(qR,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=z.createElement(ZR,{height:12}),e.text=i("OrderedList")),e}),[n,i]),l=$.useCallback((()=>{o(null)}),[]),s=$.useCallback((e=>{t.update((()=>{const n=Nt.$getSelection();Nt.$isRangeSelection(n)?(Lt.$patchStyleText(n,{"font-size":null}),Lt.$setBlocksType(n,e)):Nt.$isNodeSelection(n)&&n.getNodes().forEach((t=>{const n=t.getParent();null==n||n.replace(e(),!0)})),t.focus()}))}),[t]),u=$.useCallback(((e,n)=>{o(null),t.update((()=>{const r=Nt.$getSelection();Nt.$isRangeSelection(r)&&r.getNodes().forEach((r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)}))})),t.focus()}),[t]),c=$.useCallback((e=>{o(null),s((()=>vt.$createHeadingNode(e)))}),[s]),d=$.useCallback((()=>{o(null),s((()=>Nt.$createParagraphNode()))}),[s]),f=$.useCallback((()=>{o(null),s((()=>vt.$createQuoteNode()))}),[s]);return z.createElement(yf,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},z.createElement("div",null,z.createElement($A,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),z.createElement(IA,{anchorEl:r},z.createElement(Vf,{dense:!0},z.createElement(Zf,{dense:!0,onClick:d},z.createElement(HA,{text:i("Paragraph"),icon:z.createElement(tT,{height:12})})),z.createElement(Zf,{dense:!0,onClick:f},z.createElement(HA,{text:i("Quote"),icon:z.createElement(XR,{height:12})})),WA.map((e=>z.createElement(Zf,{dense:!0,onClick:()=>c(e.tag),key:e.text},z.createElement(jA,{text:i(e.text),icon:e.icon})))),z.createElement(wf,null),z.createElement(Zf,{dense:!0,onClick:()=>u("bullet",Se.INSERT_UNORDERED_LIST_COMMAND)},z.createElement(HA,{text:i("UnorderedList"),icon:z.createElement(qR,{height:12})})),z.createElement(Zf,{dense:!0,onClick:()=>u("number",Se.INSERT_ORDERED_LIST_COMMAND)},z.createElement(HA,{text:i("OrderedList"),icon:z.createElement(ZR,{height:12})}))))))},UA=su(vf,{shouldForwardProp:e=>"active"!==e})((({theme:e,active:t})=>({width:e.spacing(3),height:e.spacing(3),padding:0,background:t?e.palette.grey[300]:void 0}))),KA=(e,t)=>n=>{const r=lR();return z.createElement(cp,{title:r(t),PopperProps:{disablePortal:!0}},z.createElement("div",null,z.createElement(e,{...n,"aria-label":r(t)})))},VA=({format:e,icon:t,...n})=>{const r=$.useContext(OA),[o]=wt.useLexicalComposerContext(),i=$.useCallback((()=>{o.dispatchCommand(Nt.FORMAT_TEXT_COMMAND,e)}),[o,e]);return z.createElement(UA,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text"},t)},qA=KA(VA,"Bold"),QA=()=>z.createElement(qA,{format:"bold",icon:z.createElement(rT,{height:12})}),XA=Nt.createCommand("APPLY_TEXT_FORMAT"),JA=Nt.createCommand("CLEAR_TEXT_FORMAT"),ZA=KA(UA,"ClearFormat"),eN=()=>{const[e]=wt.useLexicalComposerContext(),t=$.useCallback((()=>{e.update((()=>{const t=Nt.$getSelection();if(Nt.$isRangeSelection(t)){const{anchor:e,focus:n}=t,r=t.getNodes();if(e.key===n.key&&e.offset===n.offset)return;r.forEach(((t,o)=>{try{if(Nt.$isTextNode(t)){0===o&&0!==e.offset&&(t=t.splitText(e.offset)[1]||t),o===r.length-1&&(t=t.splitText(n.offset)[0]||t),""!==t.__style&&t.setStyle(""),0!==t.__format&&(t.setFormat(0),At.$getNearestBlockElementAncestorOrThrow(t).setFormat(""));const i=t.getParent();(vt.$isHeadingNode(i)||vt.$isQuoteNode(i))&&i.replace(Nt.$createParagraphNode(),!0)}else(vt.$isHeadingNode(t)||vt.$isQuoteNode(t))&&t.replace(Nt.$createParagraphNode(),!0)}catch(e){}}))}e.dispatchCommand(JA,void 0)}))}),[e]);return z.createElement(ZA,{onClick:t},z.createElement(iT,{height:12}))};function tN(e){return tN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tN(e)}var nN,rN={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},oN=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,iN=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,aN=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,lN=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,sN=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,uN=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,cN=Math.floor,dN=Math.round,fN=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t,n,r,o,i,a,l,s,u,c,d,f,p=0,h=0,m=0,g=1;if(this._invalid=!1,arguments[0]instanceof e)p=arguments[0]._r,h=arguments[0]._g,m=arguments[0]._b,g=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(d=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f=arguments[0]))p=parseInt(d[1],10),h=parseInt(d[2],10),m=parseInt(d[3],10);else if(d=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))g=parseFloat(dN(d[1]/2.55)/100),p=parseInt(d[2],10),h=parseInt(d[3],10),m=parseInt(d[4],10);else if(d=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(f))p=parseInt(d[1],10),h=parseInt(d[2],10),m=parseInt(d[3],10),g=parseFloat(d[4]);else if(d=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(f))p=parseInt(d[1],16),h=parseInt(d[2],16),m=parseInt(d[3],16),g=1;else if(d=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(f))p=parseInt(d[1]+d[1],16),h=parseInt(d[2]+d[2],16),m=parseInt(d[3]+d[3],16),g=1;else if(d=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),n=(n/=100)<0?0:n>1?1:n,l=(t=(t%=360)<0?0:t>360?360:t)/60,s=(a=(o=(o/=100)<0?0:o>1?1:o)<=.5?2*o*n:(2-2*o)*n)*(1-Math.abs(l%2-1)),u=[],l=Math.floor(l)){case 0:u=[a,s,0];break;case 1:u=[s,a,0];break;case 2:u=[0,a,s];break;case 3:u=[0,s,a];break;case 4:u=[s,0,a];break;case 5:u=[a,0,s];break;default:u=[0,0,0]}c=o-.5*a,p=u[0]+c,h=u[1]+c,m=u[2]+c,p=dN(255*p),h=dN(255*h),m=dN(255*m),g=1}else if(d=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(f)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),g=parseFloat(d[7]),n=(n/=100)<0?0:n>1?1:n,l=(t=(t%=360)<0?0:t>360?360:t)/60,s=(a=(o=(o/=100)<0?0:o>1?1:o)<=.5?2*o*n:(2-2*o)*n)*(1-Math.abs(l%2-1)),u=[],l=Math.floor(l)){case 0:u=[a,s,0];break;case 1:u=[s,a,0];break;case 2:u=[0,a,s];break;case 3:u=[0,s,a];break;case 4:u=[s,0,a];break;case 5:u=[a,0,s];break;default:u=[0,0,0]}c=o-.5*a,p=u[0]+c,h=u[1]+c,m=u[2]+c,p=dN(255*p),h=dN(255*h),m=dN(255*m)}else if(d=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),i=parseFloat(d[5]),l=(t=(t%=360)<0?0:t>360?360:t)/60,s=(a=(i=(i/=100)<0?0:i>1?1:i)*(n=(n/=100)<0?0:n>1?1:n))*(1-Math.abs(l%2-1)),u=[],l=Math.floor(l)){case 0:u=[a,s,0];break;case 1:u=[s,a,0];break;case 2:u=[0,a,s];break;case 3:u=[0,s,a];break;case 4:u=[s,0,a];break;case 5:u=[a,0,s];break;default:u=[0,0,0]}c=i-a,p=u[0]+c,h=u[1]+c,m=u[2]+c,p=dN(255*p),h=dN(255*h),m=dN(255*m),g=1}else rN[f.toLowerCase()]?(r=f.toLowerCase(),p=rN[r].r,h=rN[r].g,m=rN[r].b,g="number"==typeof rN[r].a?rN[r].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(g=(4278190080&arguments[0])>>>24,g/=255,p=(16711680&arguments[0])>>16,h=(65280&arguments[0])>>8,m=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(p=(16711680&arguments[0])>>16,h=(65280&arguments[0])>>8,m=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(p=arguments[0],h=arguments[1],m=arguments[2],g=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+p+h+m+g)&&(this._invalid=!0),this._r=cN(p),this._g=cN(h),this._b=cN(m),this._a=g,this._spaces={}}var t,n;return t=e,(n=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=e.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=e.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=e.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=e.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(t){return this._spaces.hsl||(this._spaces.hsl=e.toHSL(this,t)),this._spaces.hsl}},{key:"toHSLA",value:function(t){return this._spaces.hsla||(this._spaces.hsla=e.toHSLA(this,t)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=e.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=e.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(t){return t instanceof e||(t=new e(t)),this._r===t._r&&this._g===t._g&&this._b===t._b}},{key:"blend",value:function(e,t){var n=cN(this._r+(e._r-this._r)*t),r=cN(this._g+(e._g-this._g)*t),o=cN(this._b+(e._b-this._b)*t),i=cN(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(t){(void 0===t||Number.isNaN(+t))&&(t=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new e(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*t))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==tN(o=function(e){if("object"!=tN(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tN(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();fN.toRGB=function(e){if(e instanceof fN)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=fN.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},fN.toRGBA=function(e,t){if(e instanceof fN)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=fN.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},fN.toHex=function(e){var t,n,r;return e instanceof fN?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=fN.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},fN.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new fN(e));var a=e._r/255,l=e._g/255,s=e._b/255,u=Math.max(a,l,s),c=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(u+c)/2,u===c)n=0,i=0;else{switch(o=u-c,n=r>.5?o/(2-u-c):o/(u+c),u){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},fN.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new fN(e));var a=e._r/255,l=e._g/255,s=e._b/255,u=e._a,c=Math.max(a,l,s),d=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(u,")")},fN.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new fN(e));var o=e._r/255,i=e._g/255,a=e._b/255,l=Math.max(o,i,a),s=Math.min(o,i,a),u=l;if(l===s)t=0,r=0;else{switch(t=0==(n=l-s)?0:n/u,l){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}},fN.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof fN)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},fN.blend=function(e,t,n){var r=(16711680&(e=fN.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=fN.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},fN.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new fN(r,o,i,a)},fN.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(oN.test(e)||iN.test(e)||aN.test(e)||lN.test(e)||sN.test(e)||uN.test(e)||rN[e.toLowerCase()])},fN.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},fN.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},fN.isDark=function(){var e={getLuminance:fN.prototype.getLuminance,isInvalid:fN.prototype.isInvalid};return fN.prototype.init.apply(e,[].slice.call(arguments)),fN.prototype.isDark.call(e)},fN.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},nN=fN;const pN=su(kf)((({theme:e})=>({display:"flex",flex:4,flexDirection:"row",flexWrap:"wrap",backgroundColor:e.palette.background.default,borderRadius:"4px",padding:e.spacing(.5),alignItems:"center",justifyContent:"space-around"}))),hN=su(lf)((({theme:e})=>({display:"flex",width:e.spacing(3.8),height:e.spacing(3.8),borderRadius:"4px",margin:e.spacing(.1),borderWidth:"1px",borderColor:e.palette.grey[500],borderStyle:"solid",justifyContent:"center",alignItems:"center"}))),mN=({palette:e,color:t,onColorChange:n})=>{const[r,o]=$.useState(t),i=Ys(),a=$.useCallback((e=>{o(e),n(e)}),[n]);return z.createElement(pN,null,e.map((e=>z.createElement(hN,{style:{backgroundColor:e},key:e,onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)}},e===r?z.createElement(hp,{height:12,color:i.palette.getContrastText(e)}):null))))};function gN(e,t,n){return Math.max(t,Math.min(n,e))}const vN=(e,t)=>{const n=new nN(e).toHSVComponents(),r=window.getComputedStyle(t),o=parseInt(r.width,10),i=parseInt(r.height,10);return{left:o*(n.s/100)+"px",top:i*((100-n.v)/100)+"px"}},bN=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=gN(e.clientX-n,0,o)/o*100,l=100-gN(e.clientY-r,0,i)/i*100,s=new nN(t).toHSVComponents();return s.s=a,s.v=l,s},yN=su(kf)((({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"}))),xN=su(lf)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),_N=su(lf)((({theme:e})=>({flex:.5,marginTop:e.spacing(.5),marginBottom:e.spacing(.5),borderRadius:"4px",cursor:"crosshair",position:"relative",backgroundImage:"linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000 );"}))),SN=su(lf)({width:"16px",height:"16px",borderRadius:"2px"}),CN=su(kf)({flexDirection:"row",alignItems:"center"}),EN=su(lf)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),wN=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=$.useState(n),a=$.useRef(n),[l,s]=$.useState(!0),[u,c]=$.useState(o),d=$.useRef(null),f=$.useRef(null),p=$.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,m]=$.useState({left:"0",top:"0"});$.useEffect((()=>{r.some((e=>e===n))||s(!1)}),[n,r]);const g=$.useCallback((e=>{if(!d.current&&(d.current=e,e)){const t=vN(o,e);m(t)}}),[o]),v=$.useMemo((()=>`hsl(${new nN(o).toHSVComponents().h}, 100%, 50%)`),[o]),b=$.useCallback((t=>{t.preventDefault(),t.stopPropagation();const n=bN(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new nN(r);if(a.current=o.toHex(),f.current&&d.current){const e=d.current.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;f.current.style.left=`${n}px`,f.current.style.top=`${r}px`}e(a.current),c(a.current),i(a.current)}),[e]),y=$.useCallback((t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=gN(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,l=new nN(t).toHSVComponents();return l.h=i,l.s=a,l})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new nN(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)}),[e]),x=$.useCallback((t=>{a.current=t,e(a.current),i(a.current),c(t)}),[e]),_=$.useCallback((t=>{if(c(t.target.value),!new nN(t.target.value).isInvalid()&&(a.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(a.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(a.current,{tag:"collaboration"}),d.current)){const e=vN(a.current,d.current);m(e)}}),[e]);return z.createElement(yN,null,l?z.createElement(mN,{palette:r,color:o,onColorChange:x}):z.createElement(z.Fragment,null,z.createElement(xN,{style:{backgroundColor:v},ref:g,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),f.current&&e.target===f.current){const{left:t,top:n}=f.current.style,r=parseInt(t||"0",10),o=parseInt(n||"0",10);f.current.style.cursor="pointer",d.current&&(d.current.style.cursor="pointer"),p.current={left:r,top:o,on:!0,clientX:e.clientX,clientY:e.clientY}}},onMouseMove:e=>{if(e.preventDefault(),e.stopPropagation(),p.current.on&&f.current&&d.current){const t=e.clientX-p.current.clientX,n=e.clientY-p.current.clientY,r=p.current.left+t,o=p.current.top+n,l=bN(e,a.current),s=`hsv(${l.h},${l.s},${l.v})`,u=new nN(s).toHex();f.current.style.left=`${r}px`,f.current.style.top=`${o}px`,f.current.style.backgroundColor=u,a.current=u,c(a.current),i(u)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),p.current.on?e(a.current):b(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1}},z.createElement(EN,{ref:f,style:{...h,backgroundColor:o}})),z.createElement(_N,{onClick:y})),z.createElement(CN,null,z.createElement(SN,{style:{backgroundColor:o}}),z.createElement(rf,{style:{flex:1},value:u,onChange:_}),z.createElement(ic,{onClick:()=>s(!l)},z.createElement(lT,{height:12})),z.createElement(ic,{onClick:t},z.createElement(hp,{height:12}))))},kN=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],RN=KA(vf,"Color"),TN=({colorPalette:e})=>{const[t]=wt.useLexicalComposerContext(),[n,r]=$.useState(null),{blockFormat:o}=$.useContext(OA),i=$.useCallback(((e,n)=>{t.update((()=>{const t=Nt.$getSelection();Nt.$isRangeSelection(t)&&Lt.$patchStyleText(t,{color:e})}),n),t.dispatchCommand(XA,{styleKey:"color",styleValue:e})}),[t]),a=()=>{r(null)};return z.createElement(yf,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},z.createElement("div",null,z.createElement(RN,{variant:"text",size:"small",endIcon:z.createElement(KR,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}},z.createElement(lf,{sx:{backgroundColor:o.fontColor,width:12,height:12}})),z.createElement(IA,{anchorEl:n},z.createElement(wN,{onClick:i,onClose:a,startColor:o.fontColor,palette:e||kN}))))},AN=({compact:e,fonts:t})=>{const[n]=wt.useLexicalComposerContext(),[r,o]=$.useState(null),{blockFormat:i}=$.useContext(OA),a=$.useMemo((()=>t||AA),[t]),l=$.useCallback((e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update((()=>{const e=Nt.$getSelection();Nt.$isRangeSelection(e)&&Lt.$patchStyleText(e,{"font-family":t||AA[0]}),n.dispatchCommand(XA,{styleKey:"fontFamily",styleValue:t||AA[0]}),n.focus()}))}),[n]);return z.createElement(yf,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},z.createElement("div",null,z.createElement($A,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:z.createElement("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"}},"T"),compact:e}),z.createElement(IA,{anchorEl:r},z.createElement(Vf,{dense:!0,style:{maxHeight:200,overflow:"auto"}},a.map((e=>z.createElement(zA,{"data-font-name":e,key:e,onClick:l,active:e===i.fontName},z.createElement(DA,null,e))))))))},NN=e=>parseInt(e,10),LN=({fontSize:e,onSelected:t})=>{const[n,r]=$.useState(""),o=$.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)}),[]),i=$.useCallback((()=>{const e=NN(n);e&&t(`${e}px`)}),[t,n]),a=$.useCallback((e=>{"Enter"===e.key&&(e.preventDefault(),i())}),[i]);return z.createElement(kf,{direction:"row"},z.createElement(rf,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),z.createElement(ic,{disabled:!NN(n),onClick:i},z.createElement(hp,{height:12})))},ON=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],MN=({compact:e})=>{const[t]=wt.useLexicalComposerContext(),[n,r]=$.useState(null),{blockFormat:o}=$.useContext(OA),i=$.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),a=$.useCallback((()=>{r(null)}),[]),l=$.useCallback((e=>{r(null),e.length>0&&t.update((()=>{const n=Nt.$getSelection();Nt.$isRangeSelection(n)&&Lt.$patchStyleText(n,{"font-size":e}),t.dispatchCommand(XA,{styleKey:"fontSize",styleValue:`${e}`})}))}),[t]),s=$.useCallback((e=>{const{fontSize:t}=e.currentTarget.dataset;l(t||"16px")}),[l]),u=$.useCallback((e=>{l(e)}),[l]);return z.createElement(yf,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},z.createElement("div",null,z.createElement($A,{startIcon:e?z.createElement(DA,null,o.fontSize):void 0,value:o.fontSize,onClick:i,compact:e}),z.createElement(IA,{anchorEl:n},z.createElement(LN,{fontSize:o.fontSize,onSelected:u}),z.createElement(wf,null),z.createElement(Vf,{dense:!0,style:{maxHeight:200,overflow:"auto"}},ON.map((e=>z.createElement(Zf,{"data-font-size":e,key:e,onClick:s},z.createElement(DA,null,e))))))))},PN=KA(UA,"InsertTable"),IN=()=>{const[e]=wt.useLexicalComposerContext(),t=$.useCallback((()=>{e.dispatchCommand(rA,void 0)}),[e]);return z.createElement(PN,{onClick:t},z.createElement(uT,{height:12}))},DN=KA(VA,"Italic"),$N=()=>z.createElement(DN,{format:"italic",icon:z.createElement(dT,{height:12})}),zN=KA(UA,"InsertHyperlink"),FN=()=>{const[e]=wt.useLexicalComposerContext(),{blockFormat:t}=$.useContext(OA),n=$.useCallback((()=>{t.isLink?e.dispatchCommand(fe.TOGGLE_LINK_COMMAND,null):e.dispatchCommand(fe.TOGGLE_LINK_COMMAND,CT("https://"))}),[e,t.isLink]);return z.createElement(zN,{onClick:n},z.createElement(pT,{height:12}))},BN=KA(VA,"Underline"),HN=()=>z.createElement(BN,{format:"underline",icon:z.createElement(mT,{height:12})}),jN=()=>z.createElement(wf,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var WN={AddNewColumn:{value:"Spalte hinzufügen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Zeile hinzufügen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Zentrieren",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Linksbündig",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechtsbündig",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fett",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textausrichtung",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Schriftgröße",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Format löschen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Schriftfarbe",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Spalte löschen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Zeile löschen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabelle löschen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geben Sie Text ein...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Überschrift 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Überschrift 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Überschrift 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Link einfügen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Großer Text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link zu",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Mittlerer Text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sortierte Liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Absatz",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Listenstil",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Kleiner Text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Rahmen wechseln",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-Link",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Unterstreichen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Unsortierte Liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},GN={AlignLeft:{value:"Align left",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)"},AlignCenter:{value:"Align center",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)"},AlignRight:{value:"Align right",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)"},SmallText:{value:"Small text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)"},MediumText:{value:"Medium text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)"},LargeText:{value:"Large text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)"},UnorderedList:{value:"Unordered list",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)"},OrderedList:{value:"Ordered list",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)"},ChangeTextSize:{value:"Text size",comment:"Change text size in toolbar menu label. (dfk 221011)"},BoldText:{value:"Bold",comment:"Bold text label in toolbar menu label. (dfk 221011)"},ItalicizeText:{value:"Italic",comment:"Italicize text label in toolbar menu label. (dfk 221011)"},UnderlineText:{value:"Underline",comment:"Underline text label in toolbar menu label. (dfk 221011)"},ChangeTextAlignment:{value:"Text alignment",comment:"Change text alignment label in toolbar menu label. (dfk 221011)"},SetTextListStyle:{value:"List style",comment:"Set text list style label in toolbar menu label. (dfk 221011)"},InsertHyperlink:{value:"Insert link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)"},LinkTo:{value:"Link to",comment:"Generic link label. (dfk 221011)"},URLLink:{value:"URL link",comment:"URL link label. (dfk 221011)"},Paragraph:{value:"Paragraph",comment:"Paragraph format for the text"},Heading1:{value:"Heading 1",comment:"HTML Header 1 format for the text"},Heading2:{value:"Heading 2",comment:"HTML Header 2 format for the text"},Heading3:{value:"Heading 3",comment:"HTML Header 2 format for the text"},Color:{value:"Font color",comment:"Button label for color picker"},ToggleBorders:{value:"Toggle borders",comment:"Menu option to toggle table borders"},AddNewRow:{value:"Add row",comment:"Menu option to add row to table"},AddNewColumn:{value:"Add column",comment:"Menu option to add column to table"},DeleteRow:{value:"Delete row",comment:"Menu option to delete row to table"},DeleteCol:{value:"Delete column",comment:"Menu option to delete column to table"},DeleteTable:{value:"Delete table",comment:"Menu option to delete table"},ClearFormat:{value:"Clear format",comment:"Clear the selected text format"},EnterText:{value:"Enter some text...",comment:"Prompt to user when the text object is empty"}},YN={AddNewColumn:{value:"Añadir columna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Añadir fila",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinear centrado",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinear a la izquierda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinear a la derecha",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrita",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alineación de texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamaño de texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Borrar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Color de fuente",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Eliminar columna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Eliminar fila",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Eliminar tabla",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Escriba algún texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabecera 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabecera 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabecera 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insertar enlace",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Cursiva",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Enlazar a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto mediano",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Párrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo de lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeño",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Ajustar bordes",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Enlace URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Subrayado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista no ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},UN={AddNewColumn:{value:"Ajouter une colonne",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Ajouter une ligne",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrer",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Aligner à gauche",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Aligner à droite",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Gras",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alignement du texte",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Taille du texte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Effacer le format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Couleur de police",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Supprimer une colonne",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Supprimer une ligne",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Supprimer la table",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Saisissez un texte...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"En-tête 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"En-tête 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"En-tête 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insérer un lien",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Italique",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texte de grande taille",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Lien vers",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texte de taille moyenne",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Liste triée",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraphe",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Style de liste",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texte de petite taille",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Basculer les bords",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Lien URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Souligner",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Liste non triée",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},KN={AddNewColumn:{value:"Aggiungi colonna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Aggiungi riga",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Allinea al centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Allinea a sinistra",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Allinea a destra",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Grassetto",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Allineamento testo",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Dimensione testo",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Cancella formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Colore carattere",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Elimina colonna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Elimina riga",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Elimina tabella",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Inserisci del testo...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Intestazione 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Intestazione 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Intestazione 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserisci collegamento",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Corsivo",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Testo grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Collega a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Testo medio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Elenco ordinato",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Stile elenco",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Testo piccolo",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Attiva/Disattiva bordi",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Collegamento URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sottolineato",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Elenco non ordinato",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},VN={AddNewColumn:{value:"列を追加",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"行を追加",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"中央揃え",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"左揃え",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"右揃え",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"太字",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"テキストの配置",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"テキスト サイズ",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"書式をクリア",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"フォントの色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"列を削除",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"行を削除",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"テーブルを削除",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"テキストを入力してください...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"見出し 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"見出し 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"見出し 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"リンクを挿入",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"テキスト大",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"リンク先",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"テキスト中",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"順序付きリスト",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"リスト スタイル",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"テキスト小",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"境界線の切り替え",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL リンク",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"順序なしリスト",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},qN={AddNewColumn:{value:"열 추가",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"행 추가",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"중앙 맞춤",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"왼쪽 맞춤",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"오른쪽 맞춤",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"굵게",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"텍스트 맞춤",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"텍스트 크기",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"형식 지우기",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"글꼴 색",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"열 삭제",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"행 삭제",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"테이블 삭제",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"텍스트 입력...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"머리글 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"머리글 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"머리글 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"링크 삽입",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"기울임꼴",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"큰 텍스트",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"연결 대상",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"중간 텍스트",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"순서가 지정된 목록",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"단락",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"목록 스타일",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"작은 텍스트",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"테두리 설정/해제",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 링크",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"밑줄",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"순서가 지정되지 않은 목록",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},QN={AddNewColumn:{value:"Kolom toevoegen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Rij toevoegen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Op midden uitlijnen",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Links uitlijnen",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechts uitlijnen",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Vet",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Tekstuitlijning",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tekstgrootte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Opmaak wissen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Tekstkleur",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Kolom verwijderen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Rij verwijderen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabel verwijderen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geef tekst op...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Koptekst 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Koptekst 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Koptekst 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Koppeling invoegen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Cursief",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Tekst groot",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Koppelen met",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Tekst medium",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Geordende lijst",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Alinea",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Lijststijl",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Tekst klein",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Randen in-/uitschakelen",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-koppeling",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Onderstrepen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Ongeordende lijst",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},XN={AddNewColumn:{value:"Dodaj kolumnę",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Dodaj wiersz",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Wyrównaj do środka",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Wyrównaj do lewej",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Wyrównaj do prawej",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Pogrubienie",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Wyrównanie tekstu",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Wielkość tekstu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Wyczyść format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Kolor czcionki",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Usuń kolumnę",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Usuń wiersz",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Usuń tabelę",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Wprowadź tekst...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Nagłówek 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Nagłówek 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Nagłówek 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Wstaw łącze",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Kursywa",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Duży tekst",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Łącze do:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Średni tekst",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista uporządkowana",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Akapit",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Styl listy",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Mały tekst",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Przełącz obramowania",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Łącze URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Podkreślenie",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista nieuporządkowana",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},JN={AddNewColumn:{value:"Adicionar coluna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Adicionar linha",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinhar centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinhar à esquerda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinhar à direita",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrito",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alinhamento do texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamanho do texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Limpar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Cor da fonte",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Excluir coluna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Excluir linha",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Excluir tabela",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Digite algum texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabeçalho 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabeçallho 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabeçalho 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserir link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Itálico",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link para",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto médio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Parágrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo em lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeno",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Alternar bordas",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Link da URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sublinhado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista não ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},ZN={AddNewColumn:{value:"Добавить столбец",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Добавить строку",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Выровнять по центру",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Выровнять по левой стороне",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Выровнять по правой стороне",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Полужирный",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Выравнивание текста",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Размер текста",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Очистить формат",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Цвет шрифта",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Удалить столбец",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Удалить строку",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Удалить таблицу",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Введите текст...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Заголовок 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Заголовок 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Заголовок 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Вставить ссылку",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Курсив",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Крупный текст",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Ссылка на",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Средний текст",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Упорядоченный список",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Абзац",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Стиль списка",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Мелкий текст",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Переключить границы",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-ссылка",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Подчеркивание",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Неупорядоченный список",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},eL={AddNewColumn:{value:"Lägg till kolumn",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Lägg till rad",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrera",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Vänsterjustera",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Högerjustera",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fetstil",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textjustering",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Textstorlek",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Rensa format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Teckenfärg",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Ta bort kolumn",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Ta bort rad",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Ta bort tabell",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Skriv in text...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Rubrik 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Rubrik 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Rubrik 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Infoga länk",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Stor text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Länka till",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Medelstor text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sorterad lista",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Stycke",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Som lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Liten text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kantlinjer på/av",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-länk",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Understrykning",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Osorterad lista",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},tL={AddNewColumn:{value:"Sütun ekle",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Satır ekle",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Ortaya hizala",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Sola hizala",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Sağa hizala",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Kalın",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Metin hizalaması",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Metin boyutu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Biçimi temizle",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Yazı tipi rengi",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Sütun sil",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Satır sil",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabloyu sil",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Metin girin...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Başlık 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Başlık 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Başlık 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Bağlantı ekle",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"İtalik",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Büyük metin",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Bağlantı:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Orta boy metin",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sıralı liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraf",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Liste stili",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Küçük metin",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kenarlıkları değiştir",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL bağlantısı",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Altını çiz",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Sırasız liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}};const nL={de:WN,es:YN,en:GN,fr:UN,it:KN,ja:VN,ko:qN,nl:QN,pl:XN,pt:JN,ru:ZN,sv:eL,tr:tL,"de-de":WN,"es-es":YN,"en-us":GN,"fr-fr":UN,"it-it":KN,"ja-jp":VN,"ko-kr":qN,"nl-nl":QN,"pl-pl":XN,"pt-br":JN,"ru-ru":ZN,"sv-se":eL,"tr-tr":tL,"zh-cn":{AddNewColumn:{value:"添加列",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"添加行",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"居中对齐",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左对齐",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右对齐",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"加粗",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文本对齐",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文本大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字体颜色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"删除列",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"删除行",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"删除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"输入一些文本...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"标题 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"标题 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"标题 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入链接",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文本",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"链接到",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文本",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"有序列表",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"列表样式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文本",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切换边框",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 链接",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下划线",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"无序列表",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},"zh-tw":{AddNewColumn:{value:"新增欄",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"新增列",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"置中對齊",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左對齊",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右對齊",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"粗體",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文字對齊方式",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文字大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字型色彩",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"刪除欄",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"刪除列",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"刪除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"輸入一些文字...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"標頭 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"標頭 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"標頭 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入連結",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"斜體字",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文字",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"連結至",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文字",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"排序清單",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"清單樣式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文字",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切換框線",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 連結",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"底線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"未排序清單",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}}};function rL(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oL,iL,aL,lL={};var sL,uL=function(){if(aL)return iL;aL=1;const e=function(){if(oL)return lL;oL=1;var e=ke(),t=oe(),n=w();function r(e,n){return e.getEditorState().read((()=>{let e=t.$getNodeByKey(n);return null!==e&&e.isSelected()}))}return lL.useLexicalNodeSelection=function(o){let[i]=e.useLexicalComposerContext(),[a,l]=n.useState((()=>r(i,o)));n.useEffect((()=>{let e=!0,t=i.registerUpdateListener((()=>{e&&l(r(i,o))}));return()=>{e=!1,t()}}),[i,o]);let s=n.useCallback((e=>{i.update((()=>{let n=t.$getSelection();t.$isNodeSelection(n)||(n=t.$createNodeSelection(),t.$setSelection(n)),e?n.add(o):n.delete(o)}))}),[i,o]),u=n.useCallback((()=>{i.update((()=>{const e=t.$getSelection();t.$isNodeSelection(e)&&e.clear()}))}),[i]);return[a,s,u]},lL}();return iL=e}(),cL={};var dL=function(){if(sL)return cL;sL=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,l=Math.floor,s=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,b=0,y=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,b=arguments[0]._b,y=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),b=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))y=parseFloat(s(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),b=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),b=parseInt(h[3],10),y=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),b=parseInt(h[3],16),y=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),b=parseInt(h[3]+h[3],16),y=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,b=f[2]+p,g=s(255*g),v=s(255*v),b=s(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),y=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,b=f[2]+p,g=s(255*g),v=s(255*v),b=s(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,b=f[2]+p,g=s(255*g),v=s(255*v),b=s(255*b),y=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,b=e[o].b,y="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(y=(4278190080&arguments[0])>>>24,y/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],b=arguments[2],y=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+b+y)&&(this._invalid=!0),this._r=l(g),this._g=l(v),this._b=l(b),this._a=y,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=l(this._r+(e._r-this._r)*t),r=l(this._g+(e._g-this._g)*t),o=l(this._b+(e._b-this._b)*t),i=l(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(a,l,s),d=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,l=e._g/255,s=e._b/255,c=e._a,d=Math.max(a,l,s),f=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,l=Math.max(o,i,a),s=Math.min(o,i,a),c=l;if(l===s)t=0,r=0;else{switch(t=0==(n=l-s)?0:n/c,l){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(l){return!(arguments.length>1||"string"!=typeof l)&&(t.test(l)||n.test(l)||r.test(l)||o.test(l)||i.test(l)||a.test(l)||e[l.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},cL.Color=u,cL}();async function fL(e,t){!async function(e,t){try{if(e&&t){const n=t(await e.getProperties());await e.setProperties(n)}}catch(e){console.error(e)}}(e,(e=>{const{qHyperCubeDef:n}=e;if(n){var r;const e=null===(r=n.qMeasures)||void 0===r?void 0:r.filter((e=>!(null==t?void 0:t.find((t=>{var n;return t===(null==e||null===(n=e.qDef)||void 0===n?void 0:n.cId)})))));n.qMeasures=e,n.qInterColumnSortOrder=[]}return{...e,qHyperCubeDef:n}}))}function pL(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function hL(e,t){return null==t?void 0:t.getNodes().some((t=>t.getKey()===e))}var mL,gL;var vL=function(){if(gL)return mL;gL=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},mL=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,l;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(l=r.slice()).length,a=0;a<o;a++)l[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},mL}();let bL=[];const yL=new vL.EventEmitter;yL.isSelected=e=>{var t;const n=null==e||null===(t=e.qDef)||void 0===t?void 0:t.cId;return-1!==bL.indexOf(n)},yL.setSelected=e=>{bL!==e&&(bL=e,yL.emit("change"))};function xL({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=$.useContext(B),[a]=wt.useLexicalComposerContext(),l=Tt(),[s,u,c]=uL.useLexicalNodeSelection(n),d=$.useRef(null),[f,p]=$.useState(t);$.useEffect((()=>{p(t)}),[t]);const h=$.useMemo((()=>{let e;return s?e="rgba(0, 152, 69, 0.25)":l&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}}),[s,l]),m=$.useMemo((()=>r&&o?function(e,t){const{qHyperCube:n}=t;if(n){var r;const t=null===(r=n.qMeasureInfo)||void 0===r?void 0:r.findIndex((t=>t.cId===e));if(void 0!==t&&-1!==t){var o,i;const e=null==n||null===(o=n.qDataPages)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.qMatrix)||void 0===o?void 0:o[0][t];if(1===(null==e||null===(i=e.qAttrExps)||void 0===i||null===(i=i.qValues)||void 0===i?void 0:i.length)){var a;const t=null===(a=e.qAttrExps.qValues[0])||void 0===a?void 0:a.qText;if(t){const n=new dL.Color(t);return{value:(null==e?void 0:e.qText)||"",expressionColor:n.toHex()}}}return{value:(null==e?void 0:e.qText)||""}}}return{value:""}}(e,r):{value:""}),[r]);$.useEffect((()=>At.mergeRegister(a.registerCommand(Nt.FORMAT_TEXT_COMMAND,(e=>(a.update((()=>{const t=e,r=Nt.$getSelection();if(Nt.$isRangeSelection(r)&&s){if(hL(n,r)){const e=((e,t)=>{const n={};switch(e){case"bold":n.fontWeight=t;break;case"italic":n.fontStyle=t;break;case"underline":n.textDecoration=t}return n})(t,r.hasFormat(t)?t:"");p((t=>({...t,...e})))}}else if(s&&Nt.$isNodeSelection(r)&&hL(n,r)&&d.current){const e=pL(d.current.style);p(((e,t)=>{const n={};switch(e){case"bold":t.fontWeight?"bold"===t.fontWeight&&(n.fontWeight=""):n.fontWeight="bold";break;case"italic":n.fontStyle="italic"===t.fontStyle?"":"italic";break;case"underline":n.textDecoration="underline"===t.textDecoration?"":"underline"}return{...t,...n}})(t,e))}})),!1)),Nt.COMMAND_PRIORITY_HIGH),a.registerCommand(XA,(e=>(a.getEditorState().read((()=>{if("color"===e.styleKey&&m.expressionColor)return!1;if(d.current&&s){const r=Nt.$getSelection();if(hL(n,r)){var t;const n=pL(null===(t=d.current)||void 0===t?void 0:t.style);n[e.styleKey]=e.styleValue,p(n)}}})),!1)),Nt.COMMAND_PRIORITY_EDITOR),a.registerCommand(JA,(()=>(a.getEditorState().read((()=>{if(d.current&&s){const e=Nt.$getSelection();if(hL(n,e)){const e={};m.expressionColor&&(e.color=m.expressionColor),p(e)}}})),!1)),Nt.COMMAND_PRIORITY_EDITOR),a.registerCommand(Nt.SELECTION_CHANGE_COMMAND,(()=>(null!=i&&i.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update((()=>{const e=[],t=Nt.$getSelection(),n=null==t?void 0:t.getNodes();null==n||n.forEach((t=>{null!=t&&t.getExpressionId&&e.push(null==t?void 0:t.getExpressionId())})),yL.setSelected(e)})),!1)),Nt.COMMAND_PRIORITY_LOW))),[a,u,c,s,n,m]),$.useEffect((()=>{l||(c(),null!=i&&i.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&yL.setSelected([]))}),[l,c]),$.useEffect((()=>{a.update((()=>{!function(e,t){const n=Nt.$getNodeByKey(e);var r;n&&(null===(r=n.setFormatStyle)||void 0===r||r.call(n,t))}(n,f)}))}),[f,a]);const g=$.useCallback((e=>{if(l){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),c(),u(!0)):r<t.width&&a.update((()=>{const e=Nt.$getSelection();if(Nt.$isNodeSelection(e)){const t=Nt.$getNodeByKey(n);null==t||t.selectPrevious(),e.delete(n)}}))}}),[c,l,a]);return z.createElement("span",{style:{...h,...f,color:m.expressionColor?m.expressionColor:f.color},onClick:g,ref:d,id:e},m.value)}const _L="qlik.expression.node";class SL extends pA{static getType(){return _L}static clone(e){return new SL(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new SL(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:_L,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),rL(this,"__expressionId",void 0),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return z.createElement(xL,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function CL(e){return e instanceof SL}function EL(){const[e]=wt.useLexicalComposerContext(),t=Tt(),{edit:n,model:r,emitter:o}=$.useContext(B);return $.useEffect((()=>{const t=()=>{r&&async function(e,t){try{const n=await t.getProperties();n.text=JSON.stringify(e),await t.setProperties(n)}catch(e){console.error(e)}}(e.getEditorState().toJSON(),r)},n=t=>{const n=e.parseEditorState(t);t!==JSON.stringify(e.getEditorState().toJSON())&&e.setEditorState(n)};return null==o||o.on("saveDocument",t),null==o||o.on("reloadData",n),()=>{null==o||o.removeListener("saveDocument",t),null==o||o.removeListener("reloadData",n)}}),[o,r]),$.useEffect((()=>{e.setEditable(n)}),[n]),$.useEffect((()=>{t&&e.focus()}),[t,e]),null}class wL{constructor(){rL(this,"nodeStore",void 0),rL(this,"pendingDeletes",void 0),this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Nt.$getNodeByKey(e);if(CL(n)&&(this.nodeStore.set(e,n),"created"===t)){const e=this.pendingDeletes.findIndex((e=>n.getExpressionId()===e));-1!==e&&this.pendingDeletes.splice(e,1)}}else if("destroyed"===t){const t=this.nodeStore.get(e);t&&(this.pendingDeletes.push(t.getExpressionId()),this.nodeStore.delete(e))}}sync(){const e=this.pendingDeletes;return this.pendingDeletes=[],e}}function kL(){let e;const{layout:t,readyToPrint:n}=$.useContext(B),[r]=wt.useLexicalComposerContext();$.useEffect((()=>(e=r.registerUpdateListener((({dirtyElements:r,dirtyLeaves:o,prevEditorState:i})=>{0===r.size&&0===o.size||i.isEmpty()||(()=>{const r=null==n?void 0:n.findIndex((e=>e.id===t.qInfo.qId));r>-1&&(n[r].resolve(),n.splice(r,1),e())})()})),()=>{e()})),[])}function RL(){const{layout:e,emitter:t}=$.useContext(B),[n]=wt.useLexicalComposerContext(),r=$.useRef(new wL),o=Tt();return kL(),$.useEffect((()=>{const e=n.registerMutationListener(SL,(e=>{n.getEditorState().read((()=>{for(const[t,n]of e)r.current.update(t,n)}))}));return()=>{e()}}),[n]),$.useEffect((()=>{e&&n.update((()=>{var t;const n=null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo;if(n){const e=Nt.$nodesOfType(SL),t=((e,t)=>e.reduce(((e,n)=>(t.find((e=>e.cId===n.getExpressionId()))||e.push(n),e)),[]))(e,n);if(t.forEach((e=>{e.remove()})),n.length>e.length){const e=Nt.$getSelection(),{cId:t}=n[n.length-1],r=new SL(t,{}),o=Nt.$createTextNode(" "),i=Nt.$createTextNode("");Nt.$isRangeSelection(e)?e.insertNodes([i,r,o]):At.$insertNodeToNearestRoot(r)}}}))}),[e,n]),$.useEffect((()=>n.registerCommand(Nt.KEY_DOWN_COMMAND,(e=>("Backspace"===e.key&&n.update((()=>{const e=Nt.$getSelection();Nt.$isNodeSelection(e)&&e.getNodes().forEach((e=>{CL(e)&&(e.selectPrevious(),e.remove())}))})),!1)),Nt.COMMAND_PRIORITY_LOW)),[n]),$.useEffect((()=>{if(!o){const e=r.current.sync();e.length>0&&(null==t||t.emit("onNodeDestroyed",e))}}),[o,t]),null}const TL=/"/g;function AL(){const{model:e,emitter:t}=$.useContext(B),[n]=wt.useLexicalComposerContext(),r=$.useRef(new Map);return $.useEffect((()=>{const o=n.registerMutationListener(Nt.TextNode,(e=>{e.forEach(((e,t)=>{if("destroyed"===e)r.current.delete(t);else{var o;const e=null===(o=n.getElementByKey(t))||void 0===o?void 0:o.style.fontFamily;e&&r.current.set(t,e)}}))}));async function i(){if(e){!async function(e,t){try{const n=await t.getProperties();n.fontsUsed=e,await t.setProperties(n)}catch(e){console.error(e)}}(Array.from(new Set(r.current.values())).map((e=>e.replace(TL,""))),e)}}return null==t||t.on("saveDocument",i),()=>{null==t||t.removeListener("saveDocument",i),o()}}),[n]),null}function NL(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LL,OL="top",ML="top-right",PL="right",IL="bottom-right",DL="bottom",$L="bottom-left",zL="left",FL="top-left";NL(NL(NL(NL(NL(NL(NL(NL(NL(NL(LL={},"equal-equal",[OL,DL]),"equal-higher",[DL,IL]),"equal-lower",[OL,ML]),"equal-void",[OL,DL]),"higher-equal",[zL,$L,OL,ML]),"higher-higher-acute",[DL,$L,zL,ML]),"higher-higher-obtuse",[DL,OL]),"higher-lower-negative",[OL,ML,PL]),"higher-lower-positive",[DL,$L,zL]),"higher-void",[OL]),NL(NL(NL(NL(NL(NL(NL(NL(NL(NL(LL,"lower-equal",[OL]),"lower-higher-negative",[OL,FL]),"lower-higher-positive",[IL]),"lower-lower-acute",[OL,FL,zL,ML,PL]),"lower-lower-obtuse",[OL,DL]),"lower-void",[OL]),"void-equal",[OL]),"void-higher",[OL,DL]),"void-lower",[OL,DL,zL]),"void-void",[OL]),NL(LL,"unclassified",[OL,DL,PL,zL,ML,IL,$L,FL]);var BL,HL,jL=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],WL=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var GL=function(){if(HL)return BL;HL=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return BL=function e(){var t,n,r,s,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,c,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},BL}();function YL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function UL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function KL(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(GL);var VL=1/.7,qL="\\s*([+-]?\\d+)\\s*",QL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",XL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",JL=/^#([0-9a-f]{3,8})$/,ZL=new RegExp(`^rgb\\(${qL},${qL},${qL}\\)$`),eO=new RegExp(`^rgb\\(${XL},${XL},${XL}\\)$`),tO=new RegExp(`^rgba\\(${qL},${qL},${qL},${QL}\\)$`),nO=new RegExp(`^rgba\\(${XL},${XL},${XL},${QL}\\)$`),rO=new RegExp(`^hsl\\(${QL},${XL},${XL}\\)$`),oO=new RegExp(`^hsla\\(${QL},${XL},${XL},${QL}\\)$`),iO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function aO(){return this.rgb().formatHex()}function lO(){return this.rgb().formatRgb()}function sO(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=JL.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?uO(t):3===n?new pO(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?cO(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?cO(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ZL.exec(e))?new pO(t[1],t[2],t[3],1):(t=eO.exec(e))?new pO(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=tO.exec(e))?cO(t[1],t[2],t[3],t[4]):(t=nO.exec(e))?cO(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=rO.exec(e))?yO(t[1],t[2]/100,t[3]/100,1):(t=oO.exec(e))?yO(t[1],t[2]/100,t[3]/100,t[4]):iO.hasOwnProperty(e)?uO(iO[e]):"transparent"===e?new pO(NaN,NaN,NaN,0):null}function uO(e){return new pO(e>>16&255,e>>8&255,255&e,1)}function cO(e,t,n,r){return r<=0&&(e=t=n=NaN),new pO(e,t,n,r)}function dO(e){return e instanceof KL||(e=sO(e)),e?new pO((e=e.rgb()).r,e.g,e.b,e.opacity):new pO}function fO(e,t,n,r){return 1===arguments.length?dO(e):new pO(e,t,n,null==r?1:r)}function pO(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function hO(){return`#${bO(this.r)}${bO(this.g)}${bO(this.b)}`}function mO(){const e=gO(this.opacity);return`${1===e?"rgb(":"rgba("}${vO(this.r)}, ${vO(this.g)}, ${vO(this.b)}${1===e?")":`, ${e})`}`}function gO(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vO(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function bO(e){return((e=vO(e))<16?"0":"")+e.toString(16)}function yO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _O(e,t,n,r)}function xO(e){if(e instanceof _O)return new _O(e.h,e.s,e.l,e.opacity);if(e instanceof KL||(e=sO(e)),!e)return new _O;if(e instanceof _O)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new _O(a,l,s,e.opacity)}function _O(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function SO(e){return(e=(e||0)%360)<0?e+360:e}function CO(e){return Math.max(0,Math.min(1,e||0))}function EO(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}YL(KL,sO,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:aO,formatHex:aO,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return xO(this).formatHsl()},formatRgb:lO,toString:lO}),YL(pO,fO,UL(KL,{brighter(e){return e=null==e?VL:Math.pow(VL,e),new pO(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new pO(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pO(vO(this.r),vO(this.g),vO(this.b),gO(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hO,formatHex:hO,formatHex8:function(){return`#${bO(this.r)}${bO(this.g)}${bO(this.b)}${bO(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:mO,toString:mO})),YL(_O,(function(e,t,n,r){return 1===arguments.length?xO(e):new _O(e,t,n,null==r?1:r)}),UL(KL,{brighter(e){return e=null==e?VL:Math.pow(VL,e),new _O(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _O(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new pO(EO(e>=240?e-240:e+120,o,r),EO(e,o,r),EO(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new _O(SO(this.h),CO(this.s),CO(this.l),gO(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=gO(this.opacity);return`${1===e?"hsl(":"hsla("}${SO(this.h)}, ${100*CO(this.s)}%, ${100*CO(this.l)}%${1===e?")":`, ${e})`}`}}));const wO=Math.PI/180,kO=180/Math.PI,RO=4/29,TO=6/29,AO=3*TO*TO;function NO(e){if(e instanceof LO)return new LO(e.l,e.a,e.b,e.opacity);if(e instanceof DO)return $O(e);e instanceof pO||(e=dO(e));var t,n,r=IO(e.r),o=IO(e.g),i=IO(e.b),a=OO((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=OO((.4360747*r+.3850649*o+.1430804*i)/.96422),n=OO((.0139322*r+.0971045*o+.7141733*i)/.82521)),new LO(116*a-16,500*(t-a),200*(a-n),e.opacity)}function LO(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function OO(e){return e>.008856451679035631?Math.pow(e,1/3):e/AO+RO}function MO(e){return e>TO?e*e*e:AO*(e-RO)}function PO(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function IO(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function DO(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function $O(e){if(isNaN(e.h))return new LO(e.l,0,0,e.opacity);var t=e.h*wO;return new LO(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}YL(LO,(function(e,t,n,r){return 1===arguments.length?NO(e):new LO(e,t,n,null==r?1:r)}),UL(KL,{brighter(e){return new LO(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new LO(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new pO(PO(3.1338561*(t=.96422*MO(t))-1.6168667*(e=1*MO(e))-.4906146*(n=.82521*MO(n))),PO(-.9787684*t+1.9161415*e+.033454*n),PO(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),YL(DO,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof DO)return new DO(e.h,e.c,e.l,e.opacity);if(e instanceof LO||(e=NO(e)),0===e.a&&0===e.b)return new DO(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*kO;return new DO(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new DO(e,t,n,null==r?1:r)}),UL(KL,{brighter(e){return new DO(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new DO(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return $O(this).rgb()}}));var zO=e=>()=>e;function FO(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):zO(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?FO:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):zO(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=fO(e)).r,(t=fO(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=FO(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var BO,HO="center",jO="bottom";function WO(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function GO(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=UO)):void 0===t&&(t=YO);for(var n,r,o,i,a,l=new qO(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new qO(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(VO)}function YO(e){return e.children}function UO(e){return Array.isArray(e)?e[1]:null}function KO(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function VO(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function qO(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:HO,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:HO,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:HO,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:HO},{key:"DataRangeIncludingZero",alignment:jO},{key:"LimitedData",alignment:jO},{key:"NegativeOrZeroValues",alignment:jO}].reduce((function(e,t){return e[t.key]=t,e}),{}),qO.prototype=GO.prototype={constructor:qO,count:function(){return this.eachAfter(WO)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return GO(this).eachBefore(KO)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},BO=function(e){
108
+ */function sL(){if(rL)return UE;rL=1,Object.defineProperty(UE,"__esModule",{value:!0}),UE.default=function(t){return(0,e.createStyles)(t)};var e=aL;return UE}var lL,uL,cL={},dL={};function fL(){if(lL)return dL;lL=1;var e=ey();Object.defineProperty(dL,"__esModule",{value:!0}),dL.default=void 0;var t=(0,e(BE()).default)();return dL.default=t,dL}function pL(){if(uL)return cL;uL=1;var e=ey();Object.defineProperty(cL,"__esModule",{value:!0}),cL.default=void 0;var t=e(Ny()),n=aL,r=e(fL());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return cL.default=o,cL}var hL,mL,gL={},vL={};function yL(){if(hL)return vL;hL=1;var e=ey();Object.defineProperty(vL,"__esModule",{value:!0}),vL.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},vL.getUnit=n,vL.toUnitless=r,vL.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},vL.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},vL.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},vL.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),f=(o-r)/l[l.length-1];return l.forEach((function(e){var o=r+f*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e(nS());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return vL}function bL(){if(mL)return gL;mL=1;var e=ey();Object.defineProperty(gL,"__esModule",{value:!0}),gL.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,f=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,p=(0,t.default)({},e);p.typography=(0,t.default)({},p.typography);var h=p.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map((function(e){return p.breakpoints.values[e]}));return f.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),p};var t=e(Ny()),n=Kk,r=yL();return gL}var xL,_L={};function wL(){if(xL)return _L;xL=1;var e=ey();Object.defineProperty(_L,"__esModule",{value:!0}),_L.default=void 0;var t=e(Ny()),n=aL,r=e(fL()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return _L.default=o,_L}var kL,SL={};function CL(){if(kL)return SL;kL=1;var e=ey();Object.defineProperty(SL,"__esModule",{value:!0}),SL.default=function(){return(0,t.useTheme)()||n.default};var t=aL;e(C());var n=e(fL());return SL}var EL,TL={};function AL(){if(EL)return TL;EL=1;var e=ey();Object.defineProperty(TL,"__esModule",{value:!0}),TL.default=void 0;var t=e(Ny()),n=aL,r=e(fL());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return TL.default=o,TL}var RL,LL,NL={};function ML(){if(RL)return NL;RL=1;var e=ey();Object.defineProperty(NL,"__esModule",{value:!0}),NL.default=void 0;var t=aL,n=e(fL()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return NL.default=r,NL}function OL(){return LL||(LL=1,function(e){var t=ey(),n=(wk||(wk=1,function(e){var t=Ek().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Sk)),Sk.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Gk();Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var i=n(BE()),a=t(WE()),s=t(sL()),l=t(pL()),u=t(bL()),c=t(wL()),d=zE();Object.keys(d).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))}));var f=t(CL()),p=t(AL()),h=t(ML()),m=aL}(kk)),kk}var PL=OL();PL.alpha(Qw.GREYSCALE_0,.05),PL.alpha(Qw.GREEN_PALE,.5),PL.alpha(Qw.BLUE_PALE,.5),PL.alpha(Qw.GREEN_PALE,.5),PL.alpha(Qw.BLUE_PALE,.5),PL.alpha(Qw.GREEN_PALE,.5),PL.alpha(Qw.BLUE_PALE,.5),PL.alpha(Qw.GREEN_PALE,.5),PL.alpha(Qw.BLUE_PALE,.5),PL.alpha(Qw.GREEN_PALE,.5),PL.alpha(Qw.BLUE_PALE,.5);const zL=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"m7.999 9.001-2.858-2.86a.2.2 0 0 0-.282 0l-.718.719a.2.2 0 0 0 0 .282L7 10.001l.859.858a.2.2 0 0 0 .282 0L9 10l2.859-2.859a.2.2 0 0 0 0-.282l-.718-.718a.2.2 0 0 0-.283 0L8 9Z"})}),IL=D.forwardRef(zL);var DL=Object.defineProperty,jL=(e,t)=>{for(var n in t)DL(e,n,{get:t[n],enumerable:!0})},FL=(e,t,n)=>((e,t,n)=>t in e?DL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),BL={};jL(BL,{af:()=>YL,ak:()=>VL,am:()=>qL,an:()=>JL,ar:()=>QL,ars:()=>XL,as:()=>ZL,asa:()=>eN,ast:()=>tN,az:()=>nN,bal:()=>rN,be:()=>oN,bem:()=>iN,bez:()=>aN,bg:()=>sN,bho:()=>lN,blo:()=>uN,bm:()=>cN,bn:()=>dN,bo:()=>fN,br:()=>pN,brx:()=>hN,bs:()=>mN,ca:()=>gN,ce:()=>vN,ceb:()=>yN,cgg:()=>bN,chr:()=>xN,ckb:()=>_N,cs:()=>wN,cy:()=>kN,da:()=>SN,de:()=>CN,doi:()=>EN,dsb:()=>TN,dv:()=>AN,dz:()=>RN,ee:()=>LN,el:()=>NN,en:()=>MN,eo:()=>ON,es:()=>PN,et:()=>zN,eu:()=>IN,fa:()=>DN,ff:()=>jN,fi:()=>FN,fil:()=>BN,fo:()=>$N,fr:()=>HN,fur:()=>WN,fy:()=>UN,ga:()=>KN,gd:()=>GN,gl:()=>YN,gsw:()=>VN,gu:()=>qN,guw:()=>JN,gv:()=>QN,ha:()=>XN,haw:()=>ZN,he:()=>eM,hi:()=>tM,hnj:()=>nM,hr:()=>rM,hsb:()=>oM,hu:()=>iM,hy:()=>aM,ia:()=>sM,id:()=>lM,ig:()=>uM,ii:()=>cM,io:()=>dM,is:()=>fM,it:()=>pM,iu:()=>hM,ja:()=>mM,jbo:()=>gM,jgo:()=>vM,jmc:()=>yM,jv:()=>bM,jw:()=>xM,ka:()=>_M,kab:()=>wM,kaj:()=>kM,kcg:()=>SM,kde:()=>CM,kea:()=>EM,kk:()=>TM,kkj:()=>AM,kl:()=>RM,km:()=>LM,kn:()=>NM,ko:()=>MM,ks:()=>OM,ksb:()=>PM,ksh:()=>zM,ku:()=>IM,kw:()=>DM,ky:()=>jM,lag:()=>FM,lb:()=>BM,lg:()=>$M,lij:()=>HM,lkt:()=>WM,ln:()=>UM,lo:()=>KM,lt:()=>GM,lv:()=>YM,mas:()=>VM,mg:()=>qM,mgo:()=>JM,mk:()=>QM,ml:()=>XM,mn:()=>ZM,mo:()=>eO,mr:()=>tO,ms:()=>nO,mt:()=>rO,my:()=>oO,nah:()=>iO,naq:()=>aO,nb:()=>sO,nd:()=>lO,ne:()=>uO,nl:()=>cO,nn:()=>dO,nnh:()=>fO,no:()=>pO,nqo:()=>hO,nr:()=>mO,nso:()=>gO,ny:()=>vO,nyn:()=>yO,om:()=>bO,or:()=>xO,os:()=>_O,osa:()=>wO,pa:()=>kO,pap:()=>SO,pcm:()=>CO,pl:()=>EO,prg:()=>TO,ps:()=>AO,pt:()=>RO,pt_PT:()=>LO,rm:()=>NO,ro:()=>MO,rof:()=>OO,ru:()=>PO,rwk:()=>zO,sah:()=>IO,saq:()=>DO,sat:()=>jO,sc:()=>FO,scn:()=>BO,sd:()=>$O,sdh:()=>HO,se:()=>WO,seh:()=>UO,ses:()=>KO,sg:()=>GO,sh:()=>YO,shi:()=>VO,si:()=>qO,sk:()=>JO,sl:()=>QO,sma:()=>XO,smi:()=>ZO,smj:()=>eP,smn:()=>tP,sms:()=>nP,sn:()=>rP,so:()=>oP,sq:()=>iP,sr:()=>aP,ss:()=>sP,ssy:()=>lP,st:()=>uP,su:()=>cP,sv:()=>dP,sw:()=>fP,syr:()=>pP,ta:()=>hP,te:()=>mP,teo:()=>gP,th:()=>vP,ti:()=>yP,tig:()=>bP,tk:()=>xP,tl:()=>_P,tn:()=>wP,to:()=>kP,tpi:()=>SP,tr:()=>CP,ts:()=>EP,tzm:()=>TP,ug:()=>AP,uk:()=>RP,und:()=>LP,ur:()=>NP,uz:()=>MP,ve:()=>OP,vec:()=>PP,vi:()=>zP,vo:()=>IP,vun:()=>DP,wa:()=>jP,wae:()=>FP,wo:()=>BP,xh:()=>$P,xog:()=>HP,yi:()=>WP,yo:()=>UP,yue:()=>KP,zh:()=>GP,zu:()=>YP});var $L=(e,t)=>t?"other":1==e?"one":"other",HL=(e,t)=>t?"other":0==e||1==e?"one":"other",WL=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",UL=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},KL=(e,t)=>"other",GL=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",YL=$L,VL=HL,qL=WL,JL=$L,QL=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},XL=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},ZL=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",eN=$L,tN=UL,nN=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-1),o=n.slice(-2),i=n.slice(-3);return t?1==r||2==r||5==r||7==r||8==r||20==o||50==o||70==o||80==o?"one":3==r||4==r||100==i||200==i||300==i||400==i||500==i||600==i||700==i||800==i||900==i?"few":0==n||6==r||40==o||60==o||90==o?"many":"other":1==e?"one":"other"},rN=(e,t)=>1==e?"one":"other",oN=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?2!=o&&3!=o||12==i||13==i?"other":"few":1==o&&11!=i?"one":o>=2&&o<=4&&(i<12||i>14)?"few":r&&0==o||o>=5&&o<=9||i>=11&&i<=14?"many":"other"},iN=$L,aN=$L,sN=$L,lN=HL,uN=(e,t)=>{const n=String(e).split(".")[0];return t?0==n?"zero":1==n?"one":2==n||3==n||4==n||5==n||6==n?"few":"other":0==e?"zero":1==e?"one":"other"},cN=KL,dN=(e,t)=>t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",fN=KL,pN=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return t?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==a?"many":"other"},hN=$L,mN=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},gN=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},vN=$L,yN=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},bN=$L,xN=$L,_N=$L,wN=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},kN=(e,t)=>t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other",SN=(e,t)=>{const n=String(e).split("."),r=n[0],o=Number(n[0])==e;return t||1!=e&&(o||0!=r&&1!=r)?"other":"one"},CN=UL,EN=WL,TN=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return t?"other":i&&1==a||1==s?"one":i&&2==a||2==s?"two":i&&(3==a||4==a)||3==s||4==s?"few":"other"},AN=$L,RN=KL,LN=$L,NN=$L,MN=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},ON=$L,PN=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e?"one":0!=r&&0==i&&o?"many":"other"},zN=UL,IN=$L,DN=WL,jN=(e,t)=>t?"other":e>=0&&e<2?"one":"other",FN=UL,BN=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},$N=$L,HN=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e?"one":"other":e>=0&&e<2?"one":0!=r&&0==i&&o?"many":"other"},WN=$L,UN=UL,KN=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},GN=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||11==e?"one":2==e||12==e?"two":3==e||13==e?"few":"other":1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},YN=UL,VN=$L,qN=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",JN=HL,QN=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?o?"other":"many":"few"},XN=$L,ZN=$L,eM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==r&&o||0==r&&!o?"one":2==r&&o?"two":"other"},tM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",nM=KL,rM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},oM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return t?"other":i&&1==a||1==s?"one":i&&2==a||2==s?"two":i&&(3==a||4==a)||3==s||4==s?"few":"other"},iM=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",aM=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",sM=UL,lM=KL,uM=KL,cM=KL,dM=UL,fM=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,a=r.slice(-1),s=r.slice(-2);return t?"other":i&&1==a&&11!=s||o%10==1&&o%100!=11?"one":"other"},pM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},hM=GL,mM=KL,gM=KL,vM=$L,yM=$L,bM=KL,xM=KL,_M=(e,t)=>{const n=String(e).split(".")[0],r=n.slice(-2);return t?1==n?"one":0==n||r>=2&&r<=20||40==r||60==r||80==r?"many":"other":1==e?"one":"other"},wM=(e,t)=>t?"other":e>=0&&e<2?"one":"other",kM=$L,SM=$L,CM=KL,EM=KL,TM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1);return t?6==o||9==o||r&&0==o&&0!=e?"many":"other":1==e?"one":"other"},AM=$L,RM=$L,LM=KL,NM=WL,MM=KL,OM=$L,PM=$L,zM=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",IM=$L,DM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),a=r&&n[0].slice(-5),s=r&&n[0].slice(-6);return t?r&&e>=1&&e<=4||o>=1&&o<=4||o>=21&&o<=24||o>=41&&o<=44||o>=61&&o<=64||o>=81&&o<=84?"one":5==e||5==o?"many":"other":0==e?"zero":1==e?"one":2==o||22==o||42==o||62==o||82==o||r&&0==i&&(a>=1e3&&a<=2e4||4e4==a||6e4==a||8e4==a)||0!=e&&1e5==s?"two":3==o||23==o||43==o||63==o||83==o?"few":1==e||1!=o&&21!=o&&41!=o&&61!=o&&81!=o?"other":"many"},jM=$L,FM=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},BM=$L,$M=$L,HM=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e;return t?11==e||8==e||o&&e>=80&&e<=89||o&&e>=800&&e<=899?"many":"other":1==e&&r?"one":"other"},WM=KL,UM=HL,KM=(e,t)=>t&&1==e?"one":"other",GM=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},YM=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||s>=11&&s<=19||2==o&&l>=11&&l<=19?"zero":1==a&&11!=s||2==o&&1==u&&11!=l||2!=o&&1==u?"one":"other"},VM=$L,qM=HL,JM=$L,QM=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?1==a&&11!=s?"one":2==a&&12!=s?"two":7!=a&&8!=a||17==s||18==s?"other":"many":i&&1==a&&11!=s||1==l&&11!=u?"one":"other"},XM=$L,ZM=$L,eO=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},tO=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",nO=(e,t)=>t&&1==e?"one":"other",rO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":1==e?"one":2==e?"two":0==e||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},oO=KL,iO=$L,aO=GL,sO=$L,lO=$L,uO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?r&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},cO=UL,dO=$L,fO=$L,pO=$L,hO=KL,mO=$L,gO=HL,vO=$L,yO=$L,bO=$L,xO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?1==e||5==e||r&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},_O=$L,wO=KL,kO=HL,SO=$L,CO=WL,EO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},TO=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==a||s>=11&&s<=19||2==o&&l>=11&&l<=19?"zero":1==a&&11!=s||2==o&&1==u&&11!=l||2!=o&&1==u?"one":"other"},AO=$L,RO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":0==r||1==r?"one":0!=r&&0==i&&o?"many":"other"},LO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},NO=$L,MO=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},OO=$L,PO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},zO=$L,IO=KL,DO=$L,jO=GL,FO=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},BO=(e,t)=>{const n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},$O=$L,HO=$L,WO=GL,UO=$L,KO=KL,GO=KL,YO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},VO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},qO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"";return t?"other":0==e||1==e||0==r&&1==o?"one":"other"},JO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1];return t?"other":1==e&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},QO=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":o&&(3==i||4==i)||!o?"few":"other"},XO=GL,ZO=GL,eP=GL,tP=GL,nP=GL,rP=$L,oP=$L,iP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?1==e?"one":4==o&&14!=i?"many":"other":1==e?"one":"other"},aP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==a&&11!=s||1==l&&11!=u?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},sP=$L,lP=$L,uP=$L,cP=KL,dP=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==a||12==a?"other":"one":1==e&&r?"one":"other"},fP=UL,pP=$L,hP=$L,mP=$L,gP=$L,vP=KL,yP=HL,bP=$L,xP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-1);return t?6==r||9==r||10==e?"few":"other":1==e?"one":"other"},_P=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=a&&6!=a&&9!=a||!i&&4!=s&&6!=s&&9!=s?"one":"other"},wP=$L,kP=KL,SP=KL,CP=$L,EP=$L,TP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e;return t?"other":0==e||1==e||r&&e>=11&&e<=99?"one":"other"},AP=$L,RP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-1),u=r.slice(-2);return t?3==a&&13!=s?"few":"other":o&&1==l&&11!=u?"one":o&&l>=2&&l<=4&&(u<12||u>14)?"few":o&&0==l||o&&l>=5&&l<=9||o&&u>=11&&u<=14?"many":"other"},LP=KL,NP=UL,MP=$L,OP=$L,PP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&o?"one":0!=r&&0==i&&o?"many":"other"},zP=(e,t)=>t&&1==e?"one":"other",IP=$L,DP=$L,jP=HL,FP=$L,BP=KL,$P=$L,HP=$L,WP=UL,UP=KL,KP=KL,GP=KL,YP=WL,VP={},qP=Array.prototype.slice,JP=function(e){return("0"+e.toString()).substr(-2)},QP=function(e){var t=typeof e;return"function"===t||"object"===t},XP=function(e){return"function"===typeof e},ZP=function(e){return null!=e},ez=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},tz=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},nz=function(e){return!0===e||!1===e},rz=function(e){return null===e},oz=function(e,t,n){return void 0===n||0==+n?Math[e](t):(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n))))},iz=function(e,t){return XP(e)?e(t):e},az=function(e,t){var n,r,o;for(n in t)t.hasOwnProperty(n)&&(r=t[n],"string"==typeof(o=r)||"[object String]"===Object.prototype.toString.call(o)||tz(r)||nz(r)||ez(r)||rz(r)?e[n]=r:(null==e[n]&&(e[n]={}),az(e[n],r)));return e},sz={day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbr_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],month_names:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbr_month_names:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridian:["AM","PM"]},lz={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},uz={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},cz={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},dz=[null,"kb","mb","gb","tb"],fz={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};VP.reset=function(){var e;for(e in fz)this[e]=fz[e]},VP.initializeOptions=function(){var e;for(e in fz)ZP(this[e])||(this[e]=fz[e])},VP.initializeOptions(),VP.locales={},VP.locales.get=function(e){var t=this[e]||this[VP.locale]||this.default;return XP(t)&&(t=t(e)),!1===ez(t)&&(t=[t]),t},VP.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&VP.locale&&t.push(VP.locale),VP.fallbacks&&VP.defaultLocale&&t.push(VP.defaultLocale),t.forEach((function(e){var t=e.split("-"),r=null,o=null;3===t.length?(r=[t[0],t[1]].join("-"),o=t[0]):2===t.length&&(r=t[0]),-1===n.indexOf(e)&&n.push(e),VP.fallbacks&&[r,o].forEach((function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)}))})),t.length||t.push("en"),n},VP.pluralization={},VP.pluralization.get=function(e){return this[e]||this[VP.locale]||this.default},VP.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},VP.currentLocale=function(){return this.locale||this.defaultLocale},VP.isSet=ZP,VP.lookup=function(e,t){t=t||{};var n,r,o,i,a=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);a.length;)if(n=a.shift(),r=o.split(t.separator||this.defaultSeparator),i=this.translations[n]){for(;r.length&&null!=(i=i[r.shift()]););if(null!=i)return i}if(ZP(t.defaultValue))return iz(t.defaultValue,e)},VP.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&QP(n))for(;i.length;)if(r=i.shift(),ZP(n[r])){o=n[r];break}return o},VP.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,a,s=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);s.length;)if(r=s.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],QP(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&ZP(n.defaultValue)&&(a=QP(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},VP.meridian=function(){var e=this.lookup("time"),t=this.lookup("date");return e&&e.am&&e.pm?[e.am,e.pm]:t&&t.meridian?t.meridian:sz.meridian},VP.prepareOptions=function(){for(var e,t=qP.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(ZP(n[r])||(n[r]=e[r]));return n},VP.createTranslationOptions=function(e,t){var n=[{scope:e}];return ZP(t.defaults)&&(n=n.concat(t.defaults)),ZP(t.defaultValue)&&n.push({message:t.defaultValue}),n},VP.translate=function(e,t){t=t||{};var n,r=this.createTranslationOptions(e,t),o=e,i=this.prepareOptions(t);return delete i.defaultValue,r.some((function(t){if(ZP(t.scope)?(o=t.scope,n=this.lookup(o,i)):ZP(t.message)&&(n=iz(t.message,e)),null!=n)return!0}),this)?("string"==typeof n?n=this.interpolate(n,t):ez(n)?n=n.map((function(e){return"string"==typeof e?this.interpolate(e,t):e}),this):QP(n)&&ZP(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},VP.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,a=e.match(this.placeholder);if(!a)return e;for(;a.length;)o=(n=a.shift()).replace(this.placeholder,"$1"),r=ZP(t[o])?t[o].toString().replace(/\$/gm,"_#$#_"):o in t?this.nullPlaceholder(n,e,t):this.missingPlaceholder(n,e,t),i=new RegExp(n.replace(/{/gm,"\\{").replace(/}/gm,"\\}")),e=e.replace(i,r);return e.replace(/_#\$#_/g,"$")},VP.pluralize=function(e,t,n){var r,o;return n=this.prepareOptions({count:String(e)},n),void 0===(o=this.pluralizationLookup(e,t,n)).translations||null==o.translations?this.missingTranslation(t,n):void 0!==o.message&&null!=o.message?this.interpolate(o.message,n):(r=this.pluralization.get(n.locale),this.missingTranslation(t+"."+r(e)[0],n))},VP.missingTranslation=function(e,t){if("guess"===this.missingBehaviour){var n=e.split(".").slice(-1)[0];return(this.missingTranslationPrefix.length>0?this.missingTranslationPrefix:"")+n.replace(/_/g," ").replace(/([a-z])([A-Z])/g,(function(e,t,n){return t+" "+n.toLowerCase()}))}return'[missing "'+[null!=t&&null!=t.locale?t.locale:this.currentLocale(),this.getFullScope(e,t)].join(t.separator||this.defaultSeparator)+'" translation]'},VP.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},VP.nullPlaceholder=function(){return VP.missingPlaceholder.apply(VP,arguments)},VP.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),lz);var n,r,o=e<0,i=function(e,t){return oz("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),a=i.split("."),s=[],l=t.format||"%n",u=o?"-":"";for(e=a[0],n=a[1];e.length>0;)s.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=s.join(t.delimiter),t.strip_insignificant_zeros&&n&&(n=n.replace(/0+$/,"")),t.precision>0&&n&&(r+=t.separator+n),r=(l=t.sign_first?"%s"+l:l.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",r).replace("%s",u)},VP.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),uz),this.toNumber(e,t)},VP.localize=function(e,t,n){switch(n||(n={}),e){case"currency":return this.toCurrency(t,n);case"number":return e=this.lookup("number.format",n),this.toNumber(t,e);case"percentage":return this.toPercentage(t,n);default:var r;return r=e.match(/^(date|time)/)?this.toTime(e,t,n):t.toString(),this.interpolate(r,n)}},VP.parseDate=function(e){var t,n,r;if(null==e)return e;if("object"==typeof e)return e;if(t=e.toString().match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})([\.,]\d{1,3})?)?(Z|\+00:?00)?/)){for(var o=1;o<=6;o++)t[o]=parseInt(t[o],10)||0;t[2]-=1,r=t[7]?1e3*("0"+t[7]):null,n=t[8]?new Date(Date.UTC(t[1],t[2],t[3],t[4],t[5],t[6],r)):new Date(t[1],t[2],t[3],t[4],t[5],t[6],r)}else"number"==typeof e?(n=new Date).setTime(e):e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)?(n=new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" "))):(e.match(/\d+ \d+:\d+:\d+ [+-]\d+ \d+/),(n=new Date).setTime(Date.parse(e)));return n},VP.strftime=function(e,t,n){n=this.lookup("date",n);var r=VP.meridian();if(n||(n={}),n=this.prepareOptions(n,sz),isNaN(e.getTime()))throw new Error("I18n.strftime() requires a valid date object, but received an invalid date.");var o=e.getDay(),i=e.getDate(),a=e.getFullYear(),s=e.getMonth()+1,l=e.getHours(),u=l,c=l>11?1:0,d=e.getSeconds(),f=e.getMinutes(),p=e.getTimezoneOffset(),h=Math.floor(Math.abs(p/60)),m=Math.abs(p)-60*h,g=(p>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(m.toString().length<2?"0"+m:m);return u>12?u-=12:0===u&&(u=12),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",n.abbr_day_names[o])).replace("%A",n.day_names[o])).replace("%b",n.abbr_month_names[s])).replace("%B",n.month_names[s])).replace("%d",JP(i))).replace("%e",i)).replace("%-d",i)).replace("%H",JP(l))).replace("%-H",l)).replace("%k",l)).replace("%I",JP(u))).replace("%-I",u)).replace("%l",u)).replace("%m",JP(s))).replace("%-m",s)).replace("%M",JP(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",JP(d))).replace("%-S",d)).replace("%w",o)).replace("%y",JP(a))).replace("%-y",JP(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",g)).replace("%Z",g)},VP.toTime=function(e,t,n){var r=this.parseDate(t),o=this.lookup(e,n);if(null==r)return r;var i=r.toString();return i.match(/invalid/i)?i:o?this.strftime(r,o,n):i},VP.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),cz),this.toNumber(e,t)},VP.toHumanSize=function(e,t){for(var n,r,o,i=e,a=0;i>=1024&&a<4;)i/=1024,a+=1;return 0===a?(o=this.getFullScope("number.human.storage_units.units.byte",t),n=this.t(o,{count:i}),r=0):(o=this.getFullScope("number.human.storage_units.units."+dz[a],t),n=this.t(o),r=i-Math.floor(i)==0?0:1),t=this.prepareOptions(t,{unit:n,precision:r,format:"%n%u",delimiter:""}),this.toNumber(i,t)},VP.getFullScope=function(e,t){return t=t||{},ez(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},VP.extend=function(e,t){return void 0===e&&void 0===t?{}:az(e,t)},VP.t=VP.translate.bind(VP),VP.l=VP.localize.bind(VP),VP.p=VP.pluralize.bind(VP);jL({},{DEFAULT_LANGUAGE:()=>hz,DEFAULT_LANGUAGE_SHORT:()=>mz,flattenParams:()=>Sz,flattenTranslationsJSON:()=>yz,format:()=>Cz,formatWithKeys:()=>Ez,getLongLanguageDesc:()=>kz,getShortLanguageDesc:()=>wz,parseLangFromUrl:()=>bz,resolveLocale:()=>_z,updateLangAttribute:()=>Tz});var pz=[{short:"es",long:"es-ES",label:"Spanish",translatedLabel:"Common.Spanish"},{short:"sv",long:"sv-SE",label:"Swedish",translatedLabel:"Common.Swedish"},{short:"ja",long:"ja-JP",label:"Japanese",translatedLabel:"Common.Japanese"},{short:"en",long:"en-US",label:"English",translatedLabel:"Common.English"},{short:"de",long:"de-DE",label:"German",translatedLabel:"Common.German"},{short:"fr",long:"fr-FR",label:"French",translatedLabel:"Common.French"},{short:"it",long:"it-IT",label:"Italian",translatedLabel:"Common.Italian"},{short:"nl",long:"nl-NL",label:"Dutch",translatedLabel:"Common.Dutch"},{short:"pt",long:"pt-BR",label:"Brazilian Portuguese",translatedLabel:"Common.BrazilianPortuguese"},{short:"ru",long:"ru-RU",label:"Russian",translatedLabel:"Common.Russian"},{short:"zh-CN",long:"zh-CN",label:"Simplified Chinese",translatedLabel:"Common.SimplifiedChinese"},{short:"zh-TW",long:"zh-TW",label:"Traditional Chinese",translatedLabel:"Common.TraditionalChinese"},{short:"pl",long:"pl-PL",label:"Polish",translatedLabel:"Common.Polish"},{short:"tr",long:"tr-TR",label:"Turkish",translatedLabel:"Common.Turkish"},{short:"ko",long:"ko-KR",label:"Korean",translatedLabel:"Common.Korean"},{short:"qps-ploc",long:"qps-ploc",label:'qps-ploc (f.k.a. "pseudo")'},{short:"zz",long:"zz",label:"zz"}],hz="en-US",mz="en",gz=["zh-cn","zh-tw","qps-ploc"],vz=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),yz=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),vz(e)?Object.keys(e).reduce(((t,n)=>{const r=e[n],o=vz(r)&&r.value;return o&&(t[n]=o),t}),{}):{}),bz=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},xz=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(gz.includes(e.toLocaleLowerCase()))return pz.find((({long:e})=>e.toLowerCase()===t));const[n]=t.split("-");return pz.find((({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t))},_z=(...e)=>{for(const t of e){const e=xz(t);if(e)return e.short}},wz=e=>{const t=xz(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${mz}'`),mz)},kz=e=>{const t=xz(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${hz}'`),hz)},Sz=e=>Array.isArray(e[0])?e[0]:e,Cz=(e,...t)=>{var n;return null==(n=e.match(/\{(\d+)\}/g))?void 0:n.length,e.replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?String(t[n]):e))},Ez=(e,t)=>e.replace(/(\{)(\w+)(\})/g,((e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e})),Tz=e=>{const t=wz(e);document.documentElement.setAttribute("lang",t)},Az=class e{static configure(t,n=hz){e.translations=t,e.language=kz(n),e.languageShort=wz(n),Tz(e.language),e.onTranslationsChangeListeners.forEach((e=>{e()})),e.i18nProvider=VP,VP.missingTranslation=e=>e,VP.defaultSeparator=null,VP.locale=e.language,VP.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];VP.pluralization[e.language]=e=>{try{const t=BL[r](e),n=[t];return"few"!==t&&"many"!==t||n.push("other"),n}catch(t){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}}}}static getWithKeys(t,n){var r;let o=null!=(r=e.translations[t])?r:t;return n&&Object.keys(n).length>0&&(o=Ez(o,n)),o}static getPlural(t,n,r){return e.i18nProvider.t(t,{count:n,...r})}static append(t){Object.assign(e.translations,t),e.onTranslationsChangeListeners.forEach((e=>{e()}))}static appendPlurals(t){Object.assign(e.translationsPlurals,t),e.onTranslationsChangeListeners.forEach((e=>{e()}))}static onTranslationsChange(t){return e.onTranslationsChangeListeners.push(t),()=>{e.onTranslationsChangeListeners.splice(e.onTranslationsChangeListeners.indexOf(t))}}};FL(Az,"translations",{}),FL(Az,"translationsPlurals",{}),FL(Az,"language"),FL(Az,"languageShort"),FL(Az,"onTranslationsChangeListeners",[]),FL(Az,"i18nProvider"),FL(Az,"get",((e,...t)=>{var n;const r=Sz(t);let o=null!=(n=Az.translations[e])?n:e;return r.length>0&&(o=Cz(o,...r)),o}));var Rz=Az;var Lz=function(){const[e,t]=D.useState(0);return D.useEffect((()=>{const n=Rz.onTranslationsChange((()=>{t(e+1)}));return()=>{n()}}),[]),Rz.get},Nz=Rz;function Mz({defaultSelection:e}){const[t]=mc();return D.useEffect((()=>{t.focus((()=>{const e=document.activeElement,n=t.getRootElement();null===n||null!==e&&n.contains(e)||n.focus({preventScroll:!0})}),{defaultSelection:e})}),[e,t]),null}function Oz(e,t=!0){if(e)return!1;let n=Wi().getTextContent();return t&&(n=n.trim()),""===n}function Pz(e){return()=>function(e){if(!Oz(e,!1))return!1;const t=Wi().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(qo(n))return!1;if(Go(n)){if(!ai(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!Nr(t[e]))return!1}}return!0}(e)}const zz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function Iz({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:i,ariaExpanded:a,ariaInvalid:s,ariaLabel:l,ariaLabelledBy:u,ariaMultiline:c,ariaOwns:d,ariaRequired:f,autoCapitalize:p,className:h,id:m,role:g="textbox",spellCheck:v=!0,style:y,tabIndex:b,"data-testid":x,..._},w){const[k,S]=D.useState(e.isEditable()),C=D.useCallback((t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)}),[e]),E=D.useMemo((()=>function(...e){return t=>{for(const n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(w,C)),[C,w]);return zz((()=>(S(e.isEditable()),e.registerEditableListener((e=>{S(e)})))),[e]),xc.jsx("div",{"aria-activedescendant":k?t:void 0,"aria-autocomplete":k?n:"none","aria-controls":k?r:void 0,"aria-describedby":o,...null!=i?{"aria-errormessage":i}:{},"aria-expanded":k&&"combobox"===g?!!a:void 0,...null!=s?{"aria-invalid":s}:{},"aria-label":l,"aria-labelledby":u,"aria-multiline":c,"aria-owns":k?d:void 0,"aria-readonly":!k||void 0,"aria-required":f,autoCapitalize:p,className:h,contentEditable:k,"data-testid":x,id:m,ref:E,role:g,spellCheck:v,style:y,tabIndex:b,..._})}const Dz=D.forwardRef(Iz);function jz(e){return e.getEditorState().read(Pz(e.isComposing()))}const Fz=D.forwardRef(Bz);function Bz(e,t){const{placeholder:n,...r}=e,[o]=mc();return xc.jsxs(xc.Fragment,{children:[xc.jsx(Dz,{editor:o,...r,ref:t}),null!=n&&xc.jsx($z,{editor:o,content:n})]})}function $z({content:e,editor:t}){const n=function(e){const[t,n]=D.useState((()=>jz(e)));return zz((()=>{function t(){const t=jz(e);n(t)}return t(),Hs(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t),[r,o]=D.useState(t.isEditable());if(D.useLayoutEffect((()=>(o(t.isEditable()),t.registerEditableListener((e=>{o(e)})))),[t]),!n)return null;let i=null;return"function"==typeof e?i=e(r):null!==e&&(i=e),null===i?null:xc.jsx("div",{"aria-hidden":!0,children:i})}const Hz=D.createContext(null),Wz={didCatch:!1,error:null};class Uz extends D.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Wz}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:t}=this.state;null!==t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(Wz))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&null!==t.error&&function(e=[],t=[]){return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:"keys"}),this.setState(Wz))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=D.createElement(n,e);else{if(void 0===r)throw i;a=r}}return D.createElement(Hz.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function Kz({children:e,onError:t}){return xc.jsx(Uz,{fallback:xc.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const Gz={name:"@lexical/react/ReactProvider"};function Yz(e){throw new Error(e)}const Vz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?D.useLayoutEffect:D.useEffect;function qz({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=D.useState((()=>e.getDecorators()));return Vz((()=>e.registerDecoratorListener((e=>{Qy.flushSync((()=>{r(e)}))}))),[e]),D.useEffect((()=>{r(e.getDecorators())}),[e]),D.useMemo((()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const a=o[i],s=xc.jsx(t,{onError:t=>e._onError(t),children:xc.jsx(D.Suspense,{fallback:null,children:n[a]})}),l=e.getElementByKey(a);null!==l&&r.push(Qy.createPortal(s,l,a))}return r}),[t,n,e])}(e,t)}function Jz({editor:e,ErrorBoundary:t}){return function(e){const t=au.maybeFromEditor(e);if(t&&t.hasExtensionByName(Gz.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&Yz(`LexicalBuilder: @lexical/react legacy text plugins conflict with the ${e} extension. Remove the legacy <RichTextPlugin/> or <PlainTextPlugin/> component.`);return!0}return!1}(e)?null:xc.jsx(qz,{editor:e,ErrorBoundary:t})}function Qz(e){return e.getEditorState().read(Pz(e.isComposing()))}function Xz(e){Vz((()=>Hs(md(e),function(e){const t=window.location.origin,n=n=>{if(n.origin!==t)return;const r=e.getRootElement();if(document.activeElement!==r)return;const o=n.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){const r=t.payload;if(r&&"makeChanges"===r.functionId){const t=r.args;if(t){const[r,o,i,a,s]=t;e.update((()=>{const e=io();if($r(e)){const t=e.anchor;let l=t.getNode(),u=0,c=0;if(Nr(l)&&r>=0&&o>=0&&(u=r,c=r+o,e.setTextNodeRange(l,u,l,c)),u===c&&""===i||(e.insertRawText(i),l=t.getNode()),Nr(l)){u=a,c=a+s;const t=l.getTextContentSize();u=u>t?t:u,c=c>t?t:c,e.setTextNodeRange(l,u,l,c)}n.stopImmediatePropagation()}}))}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(e))),[e])}function Zz({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=mc();return Xz(r),xc.jsxs(xc.Fragment,{children:[e,xc.jsx(eI,{content:t}),xc.jsx(Jz,{editor:r,ErrorBoundary:n})]})}function eI({content:e}){const[t]=mc(),n=function(e){const[t,n]=D.useState((()=>Qz(e)));return Vz((()=>{function t(){const t=Qz(e);n(t)}return t(),Hs(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t),r=xd();return n?"function"==typeof e?e(r):e:null}const tI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"m2.604 7.672-.276.96h2.004l-.276-.96a42 42 0 0 1-.372-1.284L3.348 5.08H3.3q-.156.66-.336 1.32-.168.648-.36 1.272m-2.628 4.176L2.532 4h1.632l2.556 7.848H5.256l-.612-2.124h-2.64l-.612 2.124zm9.23.144q-.768 0-1.26-.48-.48-.48-.48-1.248 0-.948.828-1.464.828-.528 2.64-.72a1.4 1.4 0 0 0-.252-.804q-.228-.348-.828-.348-.432 0-.852.168-.408.168-.804.408l-.504-.924a6 6 0 0 1 1.104-.54 3.8 3.8 0 0 1 1.32-.228q1.104 0 1.644.66.552.648.552 1.884v3.492h-1.14l-.096-.648h-.048a4.3 4.3 0 0 1-.852.564q-.444.228-.972.228m.444-1.08q.36 0 .648-.168.3-.18.636-.48v-1.32q-1.2.156-1.668.468-.468.3-.468.744 0 .396.24.576t.612.18M14 1h1v14h-1zm-1 0h3v1h-3zm0 13h3v1h-3z"})}),nI=D.forwardRef(tI),rI=(e,t)=>xc.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[xc.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),xc.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),oI=D.forwardRef(rI),iI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:xc.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})}),aI=D.forwardRef(iI),sI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),lI=D.forwardRef(sI),uI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),cI=D.forwardRef(uI),dI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:xc.jsx("path",{d:"M2.5 10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16 12H7v-1h9zM2.5 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16 5H7V4h9z"})}),fI=D.forwardRef(dI),pI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"M5 13v1.382L7.764 13H14a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1zm-1 3v-2H2a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8zM4 6v1h8V6zm0 3v1h7V9z"})}),hI=D.forwardRef(pI),mI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:xc.jsx("path",{d:"M2.05 9q.372 0 .72.09.349.089.623.274.273.186.436.468t.163.66a1.38 1.38 0 0 1-.284.86 2.3 2.3 0 0 1-.304.333l-.174.155-.18.152-1.243 1.004H4V14H.114v-.963l2.095-1.72.123-.115q.114-.116.195-.235a.7.7 0 0 0 .122-.399.54.54 0 0 0-.182-.422.7.7 0 0 0-.486-.163.7.7 0 0 0-.52.204.83.83 0 0 0-.217.406l-.022.127L0 10.568l.031-.18q.06-.263.193-.48a1.8 1.8 0 0 1 .452-.492 2 2 0 0 1 .626-.31Q1.655 9 2.05 9M16 12H6v-1h10zM3 7H1.697V3.328l-1.022.72L0 3.208 1.807 2H3zm13-2H6V4h10z"})}),gI=D.forwardRef(mI),vI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"M5.52 11.938 4.5 15H1L6.425 1h3.238L15 15h-3.5l-1.02-3.062zm.73-2.188h3.5L8 4.5z"})}),yI=D.forwardRef(vI),bI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:xc.jsx("path",{fillRule:"evenodd",d:"M12.483 4.4c0 1.376-.726 2.562-1.77 3.097C12.056 8.083 13 9.475 13 11.1c0 2.154-1.66 3.9-3.707 3.9H3V1h6.466c1.666 0 3.017 1.522 3.017 3.4m-6.897 2h2.91a1.6 1.6 0 0 0 0-3.2h-2.91zm0 6.4h3.1a1.9 1.9 0 0 0 0-3.8h-3.1z",clipRule:"evenodd"})}),xI=D.forwardRef(bI),_I=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"M4.145 0h1.71l2.391 6.833-.785.784L7.245 7h-4.49l-1.283 3.665-.944-.33zm-1.04 6h3.79l-1.75-5h-.29zm9.066-.321a1 1 0 0 0-1.414 0l-6.364 6.364a1 1 0 0 0 0 1.414l2.25 2.25A1 1 0 0 0 7.35 16h6.471v-1h-3.114l4.686-4.686a1 1 0 0 0 0-1.414zm-2.2 8.643L9.293 15H7.35L5.1 12.75l1.65-1.65zm.707-.708-3.22-3.221 4.006-4.007 3.222 3.221z"})}),wI=D.forwardRef(_I),kI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"M8.5 0a7.99 7.99 0 0 1 6.34 3.12c1.167 1.514 1.714 3.535 1.268 5.395-.444 1.85-1.776 2.609-3.192 2.897a7 7 0 0 1-1.24.113l-.683.012c-.681.018-1.276.086-1.653.484-.577.511-.487.996-.255 1.464l.106.2.281.49c.259.484.383.957-.253 1.43-.435.324-1 .408-1.54.353A8.001 8.001 0 0 1 8.5 0m0 1a7 7 0 0 0-.315 13.993.54.54 0 0 0 .235-.063c.166-.09.182-.272.088-.437-.084-.146-.175-.29-.254-.438a3 3 0 0 1-.297-.758 1.94 1.94 0 0 1 .05-1.06c.124-.365.35-.674.64-.937.519-.525 1.201-.68 1.765-.733l.294-.02.344-.012.389-.007c.466-.006.862-.011 1.278-.096.855-.174 1.538-.52 1.971-1.128q.091-.126.173-.28c1-1.887.164-4.339-1.317-5.878A6.98 6.98 0 0 0 8.5 1m-4 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4M13 6.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2m-1-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2M8 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"})}),SI=D.forwardRef(kI),CI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"M14 5H2V3h12zm-9 8H2V6h3zm1 0V6h4v7zm5 0V6h3v7zM0 2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1zm1 0v12h14V2z"})}),EI=D.forwardRef(CI),TI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:xc.jsx("path",{d:"M7.041 14.855A.2.2 0 0 1 6.85 15H5.265a.2.2 0 0 1-.192-.255l3.886-13.6A.2.2 0 0 1 9.15 1h1.584a.2.2 0 0 1 .192.255z"})}),AI=D.forwardRef(TI),RI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"m9.354 7.146-.708.708a2.33 2.33 0 0 0-3.292 0l-2.75 2.75a1.975 1.975 0 0 0 2.792 2.793l2.75-2.75.708.707-2.75 2.75a2.975 2.975 0 0 1-4.208-4.208l2.75-2.75a3.33 3.33 0 0 1 4.708 0m4.75-5.25a2.975 2.975 0 0 1 0 4.208l-2.75 2.75a3.33 3.33 0 0 1-4.708 0l.708-.708c.909.91 2.383.91 3.292 0l2.75-2.75a1.975 1.975 0 1 0-2.793-2.792l-2.75 2.75-.707-.708 2.75-2.75a2.975 2.975 0 0 1 4.207 0Z"})}),LI=D.forwardRef(RI),NI=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"M13 1v7.059c0 1.714-.364 2.924-1.273 3.73C10.91 12.598 9.455 13 8 13c-1.545 0-3-.403-3.818-1.21C3.455 10.983 3 9.773 3 8.059V1h2.455v7.059c0 .302 0 .706.09 1.008.091.303.182.605.364.807s.364.504.727.605c.273.1.91.202 1.455.202.909 0 1.727-.202 2-.706.364-.404.454-1.11.454-2.017V1zM3 14h10v1H3z"})}),MI=D.forwardRef(NI);var OI,PI,zI={exports:{}},II={};function DI(e){return DI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DI(e)}var jI=(PI||(PI=1,zI.exports=function(){if(OI)return II;OI=1;var e=j,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return II.Fragment=n,II.jsx=a,II.jsxs=a,II}()),zI.exports);const FI=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,BI=[e=>{const t=FI.exec(e);if(null===t)return null;const n=t[0];return{index:t.index,length:n.length,text:n,url:n.startsWith("http")?n:`https://${n}`,attributes:{target:"_blank"}}},function(e,t=e=>e){return n=>{const r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,(e=>`mailto:${e}`))];function $I(){return jI.jsx(vd,{matchers:BI})}const HI=()=>{const[e]=mc(),t=xd(),n=D.useCallback((n=>{for(const[r,o]of n)"updated"!==o&&"created"!==o||e.getEditorState().read((()=>{const n=t?"pointer":"",o=e.getElementByKey(r);o&&(o.style.cursor=n)}))}),[t,e]);return D.useEffect((()=>Hs(e.registerMutationListener(uu,(e=>{n(e)})),e.registerMutationListener(pu,(e=>{n(e)})),e.registerCommand(Ct,(t=>(t.metaKey&&t.target&&e.getEditorState().read((()=>{const e=io();let t;if($r(e)&&(t=e.focus.getNode().getParent()),Wr(e)&&(t=e.getNodes()[0]),mu(t)||fu(t)){const e=t.getURL();setTimeout((()=>{const t=window.open(e,"_blank");t?.focus()}),0)}})),!1)),si))),[e,n]),null};function WI(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?Qs(n)?r:o:Qs(t)?r:o}const UI=new Set(["http:","https:","mailto:","sms:","tel:"]),KI=e=>{const t=e;return t.password="",t.username="",t};function GI(e){try{const t=new URL(e);return UI.has(t.protocol)?{url:KI(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const YI=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function VI(e){return"https://"===e||YI.test(e)}const qI=Uy(sw)((({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)}))),JI=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=D.useRef(null),[a,s]=D.useState(t);D.useEffect((()=>{s(t)}),[t]);const l=D.useCallback((()=>{n(a),window.open(GI(a).url,"_blank"),r()}),[a,r,n]),u=D.useCallback((e=>{e.preventDefault(),e.stopPropagation(),n(a)}),[a,n]),c=D.useCallback((e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))}),[a,n]),d=D.useCallback((e=>{e.preventDefault(),s(e.currentTarget.value)}),[]);return jI.jsx(S_,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:1},transition:!0,children:({TransitionProps:e})=>jI.jsx(fw,{...e,children:jI.jsx(yb,{className:"tekPopperMenu",children:jI.jsxs(qI,{direction:"row",children:[jI.jsx(F_,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),jI.jsx($b,{onClick:l,children:jI.jsx(Yw,{})}),jI.jsx($b,{onClick:u,children:jI.jsx(qw,{})})]})})})})},QI=()=>{const[e]=mc(),t=xd(),[n,r]=D.useState(null),[o,i]=D.useState(""),a=D.useRef(!1),s=D.useCallback((()=>{if(a.current)return a.current=!1,!1;const t=io();if($r(t)){const n=WI(t),o=n.getParent();if(mu(o)||mu(n))return r(null),i(""),!1;let a;if(fu(o)&&(a=o),fu(n)&&(a=n),fu(a)){const t=e.getElementByKey(a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1}),[e]),l=D.useCallback((t=>{a.current=!0,e.update((()=>{e.dispatchCommand(gu,GI(t))}),{onUpdate:()=>{r(null)}})}),[e]),u=D.useCallback((()=>{r(null)}),[]);return D.useEffect((()=>Hs(e.registerCommand(kt,(()=>s()),1),e.registerCommand(Ct,(()=>s()),1))),[e,s]),t?jI.jsx(JI,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function XI(){return jI.jsx(Jw,{validateUrl:VI})}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('.tek__editor__container {\n color: #000;\n position: relative;\n line-height: 1.25;\n font-weight: 400;\n text-align: left;\n resize: none;\n height: 100%;\n overflow-y: auto;\n}\n.tek__editor__container {\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.tek__editor__container::-webkit-scrollbar {\n display: none;\n}\n\n.tek__editor__container__scrollbar:hover {\n -ms-overflow-style: auto;\n scrollbar-width: thin;\n scrollbar-color: lightgray transparent;\n}\n.tek__editor__container__scrollbar:hover::-webkit-scrollbar {\n display: block;\n}\n\n.tek__editor__Wrapper {\n position: relative;\n background-color: transparent;\n flex: 1;\n height: 100%;\n}\n\n.tek__editor__input {\n font-size: 16px;\n caret-color: rgb(5, 5, 5);\n position: relative;\n tab-size: 1;\n outline: 0;\n caret-color: #444;\n min-height: 0px;\n color: #404040;\n display: block;\n background-color: transparent;\n}\n\n.tek__editor__placeholder {\n color: #999;\n overflow: hidden;\n position: absolute;\n text-overflow: ellipsis;\n top: 0px;\n left: 0px;\n font-size: 16px;\n user-select: none;\n display: inline-block;\n pointer-events: none;\n}\n\n.tek__editor__logo {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n color: #999;\n overflow: hidden;\n}\n\n.tek__editor__paragraph {\n margin: 0 0 0 0;\n position: relative;\n cursor: auto;\n}\n\n.tek__ltr {\n text-align: left;\n}\n\n.tek__rtl {\n text-align: right;\n}\n\n.tek__h1 {\n font-size: 28px;\n color: rgb(5, 5, 5);\n font-weight: bold;\n margin: 0px 0px 0.5em;\n}\n.tek__h2 {\n font-size: 16px;\n color: rgb(101, 103, 107);\n font-weight: 700;\n margin: 0px 0px 0.25em;\n text-transform: uppercase;\n}\n.tek__h3 {\n font-size: 12px;\n text-transform: uppercase;\n margin: 0px 0px 0.25em;\n}\n\n.tek__textBase {\n -webkit-user-select: text;\n user-select: text;\n}\n\n.tek__textBold {\n font-weight: bold;\n}\n\n.tek__textItalic {\n font-style: italic;\n}\n\n.tek__textUnderline {\n text-decoration: underline;\n}\n\n.tek__ol1 {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__ol2 {\n padding: 0;\n margin: 0;\n list-style-type: upper-alpha;\n list-style-position: inside;\n}\n.tek__ol3 {\n padding: 0;\n margin: 0;\n list-style-type: lower-alpha;\n list-style-position: inside;\n}\n.tek__ol4 {\n padding: 0;\n margin: 0;\n list-style-type: upper-roman;\n list-style-position: inside;\n}\n.tek__ol5 {\n padding: 0;\n margin: 0;\n list-style-type: lower-roman;\n list-style-position: inside;\n}\n.tek__ul {\n padding: 0;\n margin: 0;\n list-style-position: inside;\n}\n.tek__listItem {\n margin: 0 12px;\n}\n.tek__nestedListItem {\n list-style-type: none;\n}\n.tek__nestedListItem:before,\n.tek__nestedListItem:after {\n display: none;\n}\n\n.tek__quote {\n margin: 0;\n margin-left: 12px;\n margin-bottom: 10px;\n font-size: 15px;\n color: rgb(101, 103, 107);\n border-left-color: rgb(206, 208, 212);\n border-left-width: 4px;\n border-left-style: solid;\n padding-left: 16px;\n}\n\n.tek__table {\n border-collapse: collapse;\n border-spacing: 0;\n table-layout: fixed;\n position: relative;\n margin-top: 8px;\n margin-bottom: 8px;\n padding: 0;\n overflow: hidden;\n}\n\n.tek__tableCell {\n border: 1px solid rgb(206, 208, 212);\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n line-height: 1.25;\n}\n\n.tek__tableCellNoBorder {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__tableCellNoBorderEditMode {\n border: none;\n background: transparent;\n vertical-align: center;\n text-align: start;\n padding: 6px 8px;\n position: relative;\n cursor: default;\n outline: none;\n margin: 8px;\n}\n\n.tek__resizer {\n position: absolute;\n width: 6px;\n right: 0;\n top: 0;\n bottom: 0;\n cursor: col-resize;\n user-select: none;\n background-color: #009845;\n pointer-events: all;\n z-index: 2;\n opacity: 0;\n transition: opacity 0.3s ease; /* Transition effect */\n transform: translate(-3px, 0);\n}\n.tek__resizer:hover {\n opacity: 0.2;\n}\n\n.tek__resizeContainer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n z-index: 1;\n user-select: none;\n pointer-events: none;\n margin: 0;\n padding: 0;\n}\n\n.tek__tableActionButton {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n background-color: "white";\n user-select: none;\n}\n\n.tek__tekCellHighlight {\n background-color: rgba(100, 149, 237, 0.1);\n}\n\n.tek__resizeIndicatorDisplay {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n background-color: #54565a;\n color: white;\n text-align: center;\n font-size: 12px;\n padding: 2px;\n overflow: hidden;\n border-radius: 4px;\n width: 48px;\n height: 16px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.tek__leftResizerIndicator {\n left: -54px;\n}\n\n.tek__rightResizerIndicator {\n right: -54px;\n}\n');const ZI=({children:e})=>jI.jsx(Gy,{theme:xk(),children:e}),eD={namespace:"text-editor-kit",theme:{ltr:"tek__ltr",rtl:"tek__rtl",paragraph:"tek__editor__paragraph",placeholder:"text_editor__placeholder",quote:"tek__quote",table:"tek__table",tableCell:"tek__tableCell",heading:{h1:"tek__h1",h2:"tek__h2",h3:"tek__h3"},text:{base:"tek__textBase",bold:"tek__textBold",italic:"tek__textItalic",underline:"tek__textUnderline"},list:{listitem:"tek__listItem",nested:{listitem:"tek__nestedListItem"},olDepth:["tek__ol1","tek__ol2","tek__ol3","tek__ol4","tek__ol5"],ul:"tek__ul"},image:"tek__image"},nodes:[id,nd,tc,Ju,uu,pu],onError:e=>{console.log(e)}},tD=({children:e,initialConfig:t,flags:n})=>jI.jsx(ZI,{children:jI.jsx("div",{className:"tek__editor__Wrapper",children:jI.jsx(Sc,{initialConfig:t||eD,children:jI.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,jI.jsx(Lc,{}),jI.jsx(Nc,{}),jI.jsx(XI,{}),jI.jsx($I,{}),jI.jsx(QI,{}),jI.jsx(HI,{}),jI.jsx(Rc,{})]})})})});let nD=class e extends Ko{__hasBorders;static getType(){return"TekCellNode"}static clone(t){return new e(t.__hasBorders,t.__key)}static importJSON(t){return new e(void 0===t.hasBorders||t.hasBorders)}constructor(e,t){super(t),this.__hasBorders=e}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,type:"TekCellNode",version:1}}createDOM(e,t){const n=document.createElement("td");return n.classList.add(e.theme.tableCell||""),this.__hasBorders||(t.isEditable()?n.classList.add("tek__tableCellNoBorderEditMode"):n.classList.add("tek__tableCellNoBorder")),n}updateDOM(e,t){return this.__hasBorders?t.classList.remove("tek__tableCellNoBorder"):t.classList.add("tek__tableCellNoBorder"),this.__hasBorders!==e.__hasBorders}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}};const rD=e=>new nD(e),oD=e=>e instanceof nD;let iD=class e extends Ko{__needsUpdate;__hasBorders;__width;static getType(){return"TekTableNode"}static clone(t){return new e(t.__hasBorders,t.__width,t.__key)}static importJSON(t){const n=void 0===t.hasBorders||t.hasBorders,r=void 0===t.width?"100%":t.width;return new e(n,r)}constructor(e,t,n){super(n),this.__needsUpdate=!1,this.__hasBorders=e,this.__width=t}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,width:this.__width,type:"TekTableNode",version:1}}createDOM(e){const t=document.createElement("table");return t.classList.add(e.theme.table||""),t.style.width=this.__width,t}updateDOM(e){const t=this.__needsUpdate;try{e.__needsUpdate&&(this.getWritable().__needsUpdate=!1)}catch{}return t||this.__width!==e.__width}markNeedsUpdate(){this.getWritable().__needsUpdate=!0}canBeEmpty(){return!1}canExtractContents(){return!1}isShadowRoot(){return!0}canSelectBefore(){return!0}canIndent(){return!1}getResizeNode(){return this.getChildAtIndex(1)}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}setWidth(e){this.getWritable().__width=e}isValid(){const e=this.getChildren();return!(e.length<3)&&"TekColGroupNode"===e[0].getType()&&"TEK_TABLE_RESIZE_NODE"===e[1].getType()&&"TekRowNode"===e[2].getType()}};function aD(e){return e instanceof iD}let sD=class e extends Ko{static getType(){return"TekRowNode"}static clone(t){return new e(t.__key)}static importJSON(){return new e}exportJSON(){return{...super.exportJSON(),type:"TekRowNode",version:1}}createDOM(){return document.createElement("tr")}updateDOM(){return!1}isShadowRoot(){return!0}canBeEmpty(){return!1}canIndent(){return!1}};function lD(e){return e instanceof sD}const uD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),oD(t))return t;return null},cD=e=>{let t=e;for(;null!==t;){if(aD(t))return t;t=t?.getParent()}return null},dD=(e,t)=>{const n=cD(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},fD=e=>{const t=e?.getChildAtIndex(2);return t},pD=e=>{const t=e.getParent();if(lD(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},hD=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,mD=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},gD=e=>e?e.getChildren().filter((e=>lD(e))):[],vD=e=>{let t=!1;return gD(e).forEach((e=>{e.getChildren().forEach((e=>{const n=e;n.clear(),n.append(ii()),t=!0}))})),t},yD=e=>{const t=io();if($r(t)||Wr(t)){const n=t.getNodes().filter((e=>oD(e)));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some((e=>aD(e))),o=cD(n[0]),i=gD(o),a=i[0]?.getChildren();if(a.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if($r(t)){const e=t.focus.getNode();if(aD(e))return vD(e)}return n.forEach((e=>{e.clear(),e.append(ii())})),(()=>{const e=io();let t=!1;if($r(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=cD(n);!o&&aD(r)&&(o=r),aD(o)&&(t=vD(o))}return t})()}if($r(t)){const e=t.focus.getNode();if(aD(e))return vD(e)}}return!1},bD=e=>{if(e){const t=cD(e);if(aD(t)){const n=e.getParent(),r=gD(t).findIndex((e=>e===n)),o=n?.getChildren().findIndex((t=>t===e));return{i:r,j:o,tableNode:t,row:n}}}return{i:0,j:0,tableNode:null,row:null}},xD=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),oD(t))return t;return null},_D=e=>{const t=[];return gD(e).forEach((e=>{const n=e.getChildren();t.push(...n)})),t},wD=(e,t)=>{_D(e).forEach((e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")}))},kD=wt("UPDATE_COL_WIDTHS_COMMAND"),SD=wt("BEGIN_COL_RESIZE"),CD=wt("END_COL_RESIZE"),ED=wt("INSERT_TEK_TABLE_COMMAND"),TD=({colKey:e,startX:t,onMouseDown:n})=>{const r=D.useCallback((t=>{n(t,e)}),[e,n]);return jI.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},AD=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},RD=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,LD=({nodeKey:e,colWidths:t})=>{const[n]=mc(),r=xd(),[o,i]=D.useState(null),a=D.useRef(null),s=D.useRef(null),l=D.useRef(null),u=D.useRef(null),c=D.useCallback((t=>{const n=Di(e);if(n){const e=n.getParent();if(aD(e)){const n=fD(e);if("TekRowNode"===n?.getType()){const e=n.getChildren(),r=[];let o=0;e.forEach(((e,n)=>{const i=parseFloat(t[n]);o+=i,r.push({key:e.getKey(),startX:o})})),i(r)}}}}),[e]),d=D.useCallback((e=>{if(a.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:s,nxt:c,parentDomNode:d,currentTableWidth:f}=a.current,p=e.clientX-t,h=mD(s+p,r);if(c){const e=o+p;if(e<60)return;const t=mD(e,r),s=a.current.nxtColWidth-p,d=mD(s,r);if(s<60)return;n.setAttribute("width",t),c.setAttribute("width",d),i.style.left=h,l.current&&(l.current.innerText=t),u.current&&(u.current.innerText=d)}else if(d){i.style.left="100%";const e=f+p,{clampedWidths:t,fullyClamped:n,clampedTableWidth:o}=((e,t)=>{const n=[],r=e.rows[0];let o=0,i=0;for(let e=0;e<r.cells.length;e++){const a=Math.max(r.cells[e].offsetWidth,60);60===a&&o++,i+=a;const s=a/t,l=Math.min(100*s,100);n.push(`${l.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),a=mD(e,d),s=mD(o,d);r.style.width=!n||p>0?a:s,r.querySelectorAll(":scope > colgroup col").forEach(((e,n)=>{e.setAttribute("width",t[n])})),n||l.current&&(l.current.innerText=a)}}}),[]),f=D.useCallback((()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),a.current){a.current.resizer.style.opacity="",l.current=null,u.current=null;const e=(e=>{const t=e.rows[0],n=[];for(let r=0;r<t.cells.length;r++){const o=Math.max(t.cells[r].offsetWidth,60);n.push(mD(o,e))}return n})(a.current.tableElement);a.current.tableElement.querySelectorAll(":scope > colgroup col").forEach(((t,n)=>{t.setAttribute("width",e[n])})),(e=>{const t=document.getElementById("leftGripper"),n=document.getElementById("rightGripper");t&&e.removeChild(t),n&&e.removeChild(n)})(a.current.resizer),n.dispatchCommand(CD,void 0)}a.current=null,s.current=null,n.update((()=>{const t=Di(e),r=dD(t,n),a=t?.getParent();if(r&&a){const t=r.querySelectorAll(":scope > colgroup col"),s=[];t.forEach((e=>{s.push(e.getAttribute("width")||"0")})),a.setWidth(r.style.width);let l=0;if(o){const e=o.map(((e,t)=>{const n={...e};return l+=parseFloat(s[t]),n.startX=l,n}));i(e)}n.dispatchCommand(kD,{colWidths:s,nodeKey:e})}}))}),[d,n,e,o]),p=D.useCallback(((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read((()=>{const r=Di(t),o=dD(r,n);if(oD(r)){const t=pD(r);if(-1!==t&&o){const r=o.querySelectorAll(":scope > colgroup col"),i=r[t],s=r.length>t+1?r[t+1]:null,c=hD(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,h=hD(s,o),m=o.parentElement,g=.01*parseFloat(o.style.width),v=(m?.offsetWidth||0)*g,y=((e,t,n)=>{const r=AD("tek__leftResizerIndicator","leftGripper");r.innerText=RD(e);let o=null;return t?(o=AD("tek__rightResizerIndicator","rightGripper"),o.innerText=RD(t)):r.innerText=n.style.width,{left:r,right:o}})(i,s,o);l.current=y.left,u.current=y.right,d.appendChild(y.left),y.right&&d.appendChild(y.right),d.style.opacity="1",a.current={resizer:d,curColWidth:c,col:i,tableElement:o,clientX:e.clientX,left:p,nxt:s,nxtColWidth:h,parentDomNode:m,currentTableWidth:v},n.dispatchCommand(SD,void 0)}}}))}),[n,d,f]);return D.useEffect((()=>{n.getEditorState().read((()=>{c(t)}))}),[c,n,t]),jI.jsx(jI.Fragment,{children:o&&r?o.map((e=>jI.jsx(TD,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key))):null})},ND="TEK_TABLE_RESIZE_NODE";class MD extends Vo{__colWidths;static getType(){return ND}static clone(e){return new MD(e.__colWidths,e.__key)}static importJSON(e){return new MD(e.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:ND,version:1}}createDOM(){const e=document.createElement("div");return e.classList.add("tek__resizeContainer"),e}updateDOM(){return!1}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}decorate(){return jI.jsx(LD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}const OD=e=>e instanceof MD,PD=({nodeKey:e,colWidths:t})=>{const[n]=mc(),[r,o]=D.useState(t);return D.useEffect((()=>{n.getEditorState().read((()=>{const t=Di(e),n=t?.getParent();if(aD(n)){const e=n.getResizeNode();if(OD(e)){const t=e.__colWidths.map((e=>e));o(t)}}}))}),[n,e]),jI.jsx(jI.Fragment,{children:r.map(((t,n)=>jI.jsx("col",{span:1,width:t},`${e}.${n}`)))})};class zD extends Vo{__colWidths;static getType(){return"TekColGroupNode"}static clone(e){return new zD(e.__colWidths,e.__key)}static importJSON(e){return new zD(e.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:"TekColGroupNode",version:1}}createDOM(){return document.createElement("colgroup")}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}updateDOM(){return!1}decorate(){return jI.jsx(PD,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class ID extends Vo{__formatStyle;constructor(e,t){super(t),this.__formatStyle=e}setFormatStyle(e){this.getWritable().__formatStyle=e}hasStyle(e){return void 0!==this.__formatStyle[e]&&""!==this.__formatStyle[e]}getTextFormatStyle(e,t){return this.hasStyle(e)?this.__formatStyle[e]:t}}const DD=[iD,nD,sD,zD,MD],jD=(e,t)=>{const n=100/e,r=Array(e).fill(`${n}%`),o=t?.getChildAtIndex(0),i=t?.getChildAtIndex(1);o.setColWidths(r),i.setColWidths(r),t?.markNeedsUpdate()},FD=()=>{const e=io();if($r(e)){const t=e.anchor.getNode(),n=uD(t);if(n){const e=pD(n),t=cD(n),r=gD(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach((t=>{t.getChildAtIndex(e)?.remove()})),jD(o,t)}}},BD=()=>{const e=io();if($r(e)){const t=e.anchor.getNode(),n=uD(t),r=cD(n);if(r&&3===r.getChildren().length)return Ki(null),void r.remove();if(n){const{row:e}=bD(n);Ki(null),e?.remove()}}},$D=()=>{const e=io();if($r(e)){const t=e.anchor.getNode(),n=cD(t),r=fD(n);if(lD(r)&&n){const e=r.getChildren().length,t=new sD;for(let r=0;r<e;r++){const e=rD(n?.__hasBorders);e.append(ii()),t.append(e)}n?.append(t)}}},HD=()=>{const e=io();if($r(e)){const t=e.anchor.getNode(),n=cD(t);if(aD(n)){const e=gD(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=rD(n.__hasBorders);o.append(ii()),e[r].append(o),t=o}return jD(r,n),t}}return null},WD=Uy($b)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),UD=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=mc(),[o,i]=D.useState(null),a=Lz(),s=Boolean(o),l=D.useCallback(((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{t()}),{onUpdate:()=>{i(null),n()}})}),[r]),u=D.useCallback((e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)}),[n]),c=D.useCallback((()=>{i(null)}),[]),d=D.useCallback((e=>{l(e,$D,t)}),[l,t]),f=D.useCallback((e=>{l(e,HD,t)}),[l,t]),p=D.useCallback((t=>{l(t,BD,e)}),[l,e]),h=D.useCallback((t=>{l(t,FD,e)}),[l,e]),m=D.useCallback((()=>{r.update((()=>{(()=>{const e=io();if($r(e)){const t=e.anchor.getNode(),n=cD(t);aD(n)&&(n.selectPrevious(),n.remove())}})()}),{onUpdate:()=>{i(null),e()}})}),[r,e]),g=D.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{(()=>{const e=io();if($r(e)){const t=e.anchor.getNode(),n=cD(t);n&&(n.toggleBorders(),_D(n).forEach((e=>{e.toggleBorders()})))}})()}))}),[r]);return D.useEffect((()=>Hs(r.registerCommand(kt,(()=>(i(null),!1)),4))),[r]),jI.jsx(ew,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:jI.jsxs("div",{children:[jI.jsx(WD,{size:"small",onClick:u,children:jI.jsx(IL,{height:12})}),jI.jsx(S_,{sx:{zIndex:1},open:s,anchorEl:o,placement:"auto-end",children:jI.jsx(yb,{id:"tekTableMenu",className:"tekPopperMenu",children:jI.jsxs(Rw,{dense:!0,children:[jI.jsx(Pw,{onClick:g,children:a("ToggleBorders")}),jI.jsx(aw,{}),jI.jsx(Pw,{onClick:d,children:a("AddNewRow")}),jI.jsx(Pw,{onClick:f,children:a("AddNewColumn")}),jI.jsx(aw,{}),jI.jsx(Pw,{onClick:p,children:a("DeleteRow")}),jI.jsx(Pw,{onClick:h,children:a("DeleteCol")}),jI.jsx(aw,{}),jI.jsx(Pw,{onClick:m,children:a("DeleteTable")})]})})})]})})},KD=()=>{const[e]=mc(),t=xd(),[n,r]=D.useState(null),[o,i]=D.useState(!1),a=Boolean(n),s=D.useContext(eh),l=D.useRef(null),u=D.useCallback((()=>{o||e.update((()=>{const t=io();if($r(t)){const n=uD(t.anchor.getNode());if(oD(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}}))}),[e,o]);D.useEffect((()=>{const e=e=>{0!==e.buttons?null===l.current&&(l.current=setTimeout((()=>{i(!0),r(null)}),300)):(i(!1),clearTimeout(l.current),l.current=null)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}}),[]),D.useEffect((()=>Hs(e.registerCommand(kt,(()=>(u(),!1)),si),e.registerCommand(SD,(()=>(r(null),!0)),4),e.registerCommand(CD,(()=>(u(),!0)),4))),[e,u]),D.useEffect((()=>{r(null)}),[t]);const c=D.useCallback((()=>{r(null)}),[]),d=D.useCallback((()=>{r(null),setTimeout((()=>{u()}),0)}),[u]),f=D.useCallback((()=>{clearTimeout(l.current)}),[]);return jI.jsx(S_,{open:!!a&&t,anchorEl:n,placement:"top-end",sx:{zIndex:1},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt(s.components?.MuiButton?.styleOverrides?.sizeSmall?.height||"24",10)]}}],children:jI.jsx(UD,{onDeleteAction:c,onAction:d,onClick:f})})},GD=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=Di(n),r=e?.getParent();Qo(r)&&null!==e&&t.push(e)}if(t.length>0){const e=ii();t[0].insertBefore(e),e.select(),t.forEach((e=>{e.remove()}))}},YD=()=>{const[e]=mc(),t=xd();return D.useEffect((()=>Hs(e.registerMutationListener(nD,(t=>{e.update((()=>{GD(t)}))})),e.registerMutationListener(sD,(t=>{e.update((()=>{GD(t)}))})),e.registerMutationListener(iD,(t=>{e.update((()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=Di(e);if(aD(t)&&!t.isValid()){const e=ii();t.insertBefore(e),e.select(),t.remove()}}}))})),e.registerCommand(ED,(()=>(e.update((()=>{const e=(()=>{const e=["50%","50%"],t=new iD(!0,"100%"),n=new zD(e),r=new MD(e),o=[];for(let t=0;t<2;t++){const t=new sD;for(let n=0;n<e.length;n++){const e=rD(!0),n=ii();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();hl(e)})),!0)),si),e.registerCommand(kD,(({colWidths:e,nodeKey:t})=>{const n=Di(t);if(OD(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof zD})(r)&&r.setColWidths(e)}return!0}),4),e.registerCommand(Vt,(t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=io();if($r(e)){const t=e.focus.getNode(),n=cD(t),r=xD(t);if(aD(n)){const e=ii();e.append(Lr("")),n.insertBefore(e,!1),e.select()}}})()})),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=io();if($r(e)){const t=e.focus.getNode(),n=cD(t);if(aD(n)){const e=ii();e.append(Lr("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()})),!0)),4),e.registerCommand(Jt,(e=>yD(e)),4),e.registerCommand(Xt,(e=>yD(e)),4),e.registerCommand(Zt,(e=>{const t=io();if($r(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),oD(t))return{depth:n,tekCell:t};n++}return{depth:Number.MAX_SAFE_INTEGER,tekCell:null}})(n);if(r<=1)return e.preventDefault(),((e,t)=>{const{i:n,j:r,tableNode:o,row:i}=e,a=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+a);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const s=o.getChildAtIndex(n+2+a);if(lD(s)){const t=s?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(bD(o),!e.shiftKey),!0}return!1}),si),e.registerCommand(cn,(e=>{const t=e?.target,n=io();if(t.classList.contains("tek__table")&&$r(n)&&aD(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if($r(n)){const t=n.getNodes().some((e=>oD(e))),r=n.getNodes().some((e=>aD(e)));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1}),4))),[e]),D.useEffect((()=>e.registerCommand(kt,(()=>(t&&e.update((()=>{(e=>{const t=io(),n=[];if(la(iD).forEach((e=>{const t=_D(e);n.push(...t)})),$r(t)){t.getNodes().filter((e=>aD(e))).forEach((t=>{wD(t,e)}));const n=t.focus.getNode();if(aD(n))return void wD(n,e)}if($r(t)||Wr(t)){const r=new Set(t.getNodes().map((e=>xD(e))));for(let t=0;t<n.length;t++){const o=e.getElementByKey(n[t].getKey());r.has(n[t])?o?.classList.add("tek__tekCellHighlight"):o?.classList.remove("tek__tekCellHighlight")}}})(e)}),{tag:"history-merge"}),!1)),4)),[e,t]),D.useEffect((()=>{e.update((()=>{t||(e=>{const t=[];la(iD).forEach((e=>{const n=_D(e);t.push(...n)})),t.forEach((t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")}))})(e)}))}),[t,e]),null},VD=()=>jI.jsxs(jI.Fragment,{children:[jI.jsx(YD,{}),jI.jsx(KD,{})]}),qD=()=>{const e=xd(),t=Lz();return e?jI.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):jI.jsx("div",{className:"tek__editor__logo",children:jI.jsx(nI,{height:32})})},JD=({showPlaceholder:e})=>jI.jsxs("div",{style:{position:"relative"},children:[jI.jsx(Mz,{}),jI.jsx(Zz,{contentEditable:jI.jsx(Fz,{className:"tek__editor__input"}),placeholder:!1!==e?jI.jsx(qD,{}):null,ErrorBoundary:Kz})]}),QD=Uy(sw)((({theme:e})=>({background:e.palette.common.white,height:e.spacing(4),display:"flex",alignItems:"center",paddingInline:e.spacing(.5),overflow:"auto",scrollbarWidth:"thin",width:"fit-content","&::-webkit-scrollbar":{height:"0.2em"},"&::-webkit-scrollbar-track":{background:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#AAA"},"&::-webkit-scrollbar-thumb:hover":{background:"#AAA"}}))),XD=["Source Sans Pro, sans-serif","American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],ZD="#404040",ej="16px",tj=D.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:XD[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),nj=({children:e})=>{const t=(()=>{const[e]=mc(),[t,n]=D.useState(!1),[r,o]=D.useState(!1),[i,a]=D.useState(!1),[s,l]=D.useState("paragraph"),[u,c]=D.useState(XD[0]),[d,f]=D.useState(ej),[p,h]=D.useState(ZD),[m,g]=D.useState("left"),[v,y]=D.useState(!1),b=D.useCallback((()=>{const t=io();if($r(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:Ka(r,(e=>{const t=e.getParent();return null!==t&&ba(t)}));null===i&&(i=r.getTopLevelElementOrThrow());const s=i.getKey();let u=i;if(null!==e.getElementByKey(s))if(sc(i)){const e=fl(r,tc),t=e?e.getListType():i.getListType();l(t)}else{const e=cd(i)?i.getTag():i.getType();l(e)}if(sc(i)||cd(i)){const e=fl(i,ri);e&&(u=e)}const d=WI(t);if(fu(d.getParent())||fu(d)?y(!0):y(!1),ai(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const p=ll(t,"font-family",XD[0]),m=ll(t,"font-size",ej);c(""===p?XD[0]:p),f(""!==m&&m?m:ej),h(ll(t,"color",ZD))}else Wr(t)&&t.getNodes().forEach((e=>{if(function(e){return e instanceof ID}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),a(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",ZD));const t=e.getTextFormatStyle("fontSize",ej),r=e.getTextFormatStyle("fontFamily",XD[0]);f(t),c(r);const i=e.getParent();if(null!==i){const e=(e=>{if(ec(e)){const t=fl(e,tc);return t?t.getListType():"bullet"}return cd(e)?e.getTag():e.getType()})(i);l(e)}}}))}),[e]);return D.useEffect((()=>Hs(e.registerUpdateListener((({editorState:e})=>{e.read((()=>{b()}))})),e.registerCommand(kt,(()=>(e.getEditorState().read((()=>{b()})),!1)),si))),[e,b]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:s,fontName:u,fontSize:d,fontColor:p,align:m,isLink:v}}})();return jI.jsx(tj.Provider,{value:t,children:e})},rj=({children:e})=>jI.jsx(nj,{children:jI.jsx(QD,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),oj=({anchorEl:e,children:t})=>{const n=Boolean(e);return jI.jsx(S_,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:1},children:({TransitionProps:e})=>jI.jsx(fw,{...e,children:jI.jsx(yb,{className:"tekPopperMenu",children:t})})})},ij=Uy(Yb)({fontSize:12,textOverflow:"ellipsis"}),aj=({startIcon:e,value:t,onClick:n,compact:r})=>jI.jsx(Kw,{title:t,PopperProps:{disablePortal:!0},children:jI.jsx(X_,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:jI.jsx(cI,{height:12}),children:r?e:jI.jsx(ij,{children:t})})}),sj=Uy(Pw,{shouldForwardProp:e=>"active"!==e})((({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0}))),lj=[{text:"AlignLeft",align:"left",icon:()=>jI.jsx(aI,{height:12})},{text:"AlignCenter",align:"center",icon:()=>jI.jsx(oI,{height:12})},{text:"AlignRight",align:"right",icon:()=>jI.jsx(lI,{height:12})}],uj=({compact:e=!1})=>{const[t]=mc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(tj),i=Lz(),a=D.useMemo((()=>lj.find((e=>e.align===o.align))||lj[0]),[o.align]),s=D.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),l=D.useCallback((()=>{r(null)}),[]),u=D.useCallback((e=>{r(null),t.dispatchCommand(on,e),t.focus()}),[t]);return jI.jsx(ew,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:jI.jsxs("div",{children:[jI.jsx(aj,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e}),jI.jsx(oj,{anchorEl:n,children:jI.jsx(Rw,{dense:!0,children:lj.map((e=>jI.jsxs(sj,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[jI.jsx(ww,{children:e.icon()}),jI.jsx(ij,{children:i(e.text)})]},e.align)))})})]})})},cj=({text:e,icon:t})=>jI.jsxs(jI.Fragment,{children:[jI.jsx(ww,{children:t}),jI.jsx(ij,{children:e})]}),dj=({text:e,icon:t})=>jI.jsxs(jI.Fragment,{children:[jI.jsx(ww,{children:jI.jsx(ij,{fontWeight:"bold",children:t})}),jI.jsx(ij,{children:e})]}),fj=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],pj=(e,t,n)=>({icon:jI.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),hj=({compact:e=!1})=>{const[t]=mc(),{blockFormat:n}=D.useContext(tj),[r,o]=D.useState(null),i=Lz(),a=D.useMemo((()=>{let e={icon:jI.jsx(yI,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=pj("Heading1","H1",i)),"h2"===n.blockType&&(e=pj("Heading2","H2",i)),"h3"===n.blockType&&(e=pj("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=jI.jsx(hI,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=jI.jsx(fI,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=jI.jsx(gI,{height:12}),e.text=i("OrderedList")),e}),[n,i]),s=D.useCallback((()=>{o(null)}),[]),l=D.useCallback((e=>{t.update((()=>{const n=io();$r(n)?(el(n,{"font-size":null}),function(e,t,n=tl){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=to(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=Ka(e.getNode(),Ma),a=Ka(t.getNode(),Ma);Go(n)&&o.set(n.getKey(),n),Go(a)&&o.set(a.getKey(),a)}for(const t of e.getNodes())if(Go(t)&&Ma(t))o.set(t.getKey(),t);else if(null===r){const e=Ka(t,Ma);Go(e)&&o.set(e.getKey(),e)}for(const[e,r]of o){const o=t();n(r,o),r.replace(o,!0),i&&(e===i.anchor.key&&i.anchor.set(o.getKey(),i.anchor.offset,i.anchor.type),e===i.focus.key&&i.focus.set(o.getKey(),i.focus.offset,i.focus.type))}i&&e.is(io())&&Ki(i)}(n,e)):Wr(n)&&n.getNodes().forEach((t=>{const n=t.getParent();n?.replace(e(),!0)})),t.focus()}))}),[t]),u=D.useCallback(((e,n)=>{o(null),t.update((()=>{const r=io();$r(r)&&r.getNodes().forEach((r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)}))})),t.focus()}),[t]),c=D.useCallback((e=>{o(null),l((()=>ud(e)))}),[l]),d=D.useCallback((()=>{o(null),l((()=>ii()))}),[l]),f=D.useCallback((()=>{o(null),l((()=>rd()))}),[l]);return jI.jsx(ew,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:jI.jsxs("div",{children:[jI.jsx(aj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),jI.jsx(oj,{anchorEl:r,children:jI.jsxs(Rw,{dense:!0,children:[jI.jsx(Pw,{dense:!0,onClick:d,children:jI.jsx(cj,{text:i("Paragraph"),icon:jI.jsx(yI,{height:12})})}),jI.jsx(Pw,{dense:!0,onClick:f,children:jI.jsx(cj,{text:i("Quote"),icon:jI.jsx(hI,{height:12})})}),fj.map((e=>jI.jsx(Pw,{dense:!0,onClick:()=>{c(e.tag)},children:jI.jsx(dj,{text:i(e.text),icon:e.icon})},e.text))),jI.jsx(aw,{}),jI.jsx(Pw,{dense:!0,onClick:()=>{u("bullet",uc)},children:jI.jsx(cj,{text:i("UnorderedList"),icon:jI.jsx(fI,{height:12})})}),jI.jsx(Pw,{dense:!0,onClick:()=>{u("number",cc)},children:jI.jsx(cj,{text:i("OrderedList"),icon:jI.jsx(gI,{height:12})})})]})})]})})},mj=Uy(X_,{shouldForwardProp:e=>"active"!==e})((({theme:e,active:t})=>({width:e.spacing(3),height:e.spacing(3),padding:0,background:t?e.palette.grey[300]:void 0}))),gj=(e,t)=>{const n=n=>{const r=Lz();return jI.jsx(Kw,{title:r(t),PopperProps:{disablePortal:!0},children:jI.jsx("div",{children:jI.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},vj=({format:e,icon:t,...n})=>{const r=D.useContext(tj),[o]=mc(),i=D.useCallback((()=>{o.dispatchCommand(jt,e)}),[o,e]);return jI.jsx(mj,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},yj=gj(vj,"Bold"),bj=()=>jI.jsx(yj,{format:"bold",icon:jI.jsx(xI,{height:12})}),xj=wt("APPLY_TEXT_FORMAT"),_j=wt("CLEAR_TEXT_FORMAT"),wj=gj(mj,"ClearFormat"),kj=()=>{const[e]=mc(),t=D.useCallback((()=>{e.update((()=>{const t=io();if($r(t)){const{anchor:e,focus:n}=t,r=t.getNodes();if(e.key===n.key&&e.offset===n.offset)return;r.forEach(((t,o)=>{try{if(Nr(t)){let i=t;0===o&&0!==e.offset&&(i=i.splitText(e.offset)[1]||i),o===r.length-1&&(i=i.splitText(n.offset)[0]||i),""!==i.__style&&i.setStyle(""),0!==i.__format&&(i.setFormat(0),pl(i).setFormat(""));const a=i.getParent();(cd(a)||od(a))&&a.replace(ii(),!0)}else(cd(t)||od(t))&&t.replace(ii(),!0)}catch{}}))}e.dispatchCommand(_j,void 0)}))}),[e]);return jI.jsx(wj,{onClick:t,children:jI.jsx(wI,{height:12})})};var Sj,Cj={},Ej=function(){if(Sj)return Cj;Sj=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,s=Math.floor,l=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,y=0,b=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,y=arguments[0]._b,b=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))b=parseFloat(l(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),y=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10),b=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),y=parseInt(h[3],16),b=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),y=parseInt(h[3]+h[3],16),b=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),b=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,y=e[o].b,b="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(b=(4278190080&arguments[0])>>>24,b/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],y=arguments[2],b=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+y+b)&&(this._invalid=!0),this._r=s(g),this._g=s(v),this._b=s(y),this._a=b,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=s(this._r+(e._r-this._r)*t),r=s(this._g+(e._g-this._g)*t),o=s(this._b+(e._b-this._b)*t),i=s(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==DI(o=function(e){if("object"!=DI(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=DI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,d=Math.max(a,s,l),f=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(t=0==(n=s-l)?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(s){return!(arguments.length>1||"string"!=typeof s)&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s)||e[s.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},Cj.Color=u,Cj}();const Tj=Uy(sw)((({theme:e})=>({display:"flex",flex:4,flexDirection:"row",flexWrap:"wrap",backgroundColor:e.palette.background.default,borderRadius:"4px",padding:e.spacing(.5),alignItems:"center",justifyContent:"space-around"}))),Aj=Uy(H_)((({theme:e})=>({display:"flex",width:e.spacing(3.8),height:e.spacing(3.8),borderRadius:"4px",margin:e.spacing(.1),borderWidth:"1px",borderColor:e.palette.grey[500],borderStyle:"solid",justifyContent:"center",alignItems:"center"}))),Rj=({palette:e,color:t,onColorChange:n})=>{const[r,o]=D.useState(t),i=Ty(),a=D.useCallback((e=>{o(e),n(e)}),[n]);return jI.jsx(Tj,{children:e.map((e=>jI.jsx(Aj,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?jI.jsx(qw,{height:12,color:i.palette.getContrastText(e)}):null},e)))})};function Lj(e,t,n){return Math.max(t,Math.min(n,e))}const Nj=(e,t)=>{const n=new Ej.Color(e).toHSVComponents(),r=window.getComputedStyle(t),o=parseInt(r.width,10),i=parseInt(r.height,10);return{left:o*(n.s/100)+"px",top:i*((100-n.v)/100)+"px"}},Mj=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=Lj(e.clientX-n,0,o)/o*100,s=100-Lj(e.clientY-r,0,i)/i*100,l=new Ej.Color(t).toHSVComponents();return l.s=a,l.v=s,l},Oj=Uy(sw)((({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"}))),Pj=Uy(H_)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),zj=Uy(H_)((({theme:e})=>({flex:.5,marginTop:e.spacing(.5),marginBottom:e.spacing(.5),borderRadius:"4px",cursor:"crosshair",position:"relative",backgroundImage:"linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000 );"}))),Ij=Uy(H_)({width:"16px",height:"16px",borderRadius:"2px"}),Dj=Uy(sw)({flexDirection:"row",alignItems:"center"}),jj=Uy(H_)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),Fj=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=D.useState(n),a=D.useRef(n),[s,l]=D.useState(!0),[u,c]=D.useState(o),d=D.useRef(null),f=D.useRef(null),p=D.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,m]=D.useState({left:"0",top:"0"});D.useEffect((()=>{r.some((e=>e===n))||l(!1)}),[n,r]);const g=D.useCallback((e=>{if(!d.current&&(d.current=e,e)){const t=Nj(o,e);m(t)}}),[o]),v=D.useMemo((()=>`hsl(${new Ej.Color(o).toHSVComponents().h}, 100%, 50%)`),[o]),y=D.useCallback((t=>{t.preventDefault(),t.stopPropagation();const n=Mj(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Ej.Color(r);if(a.current=o.toHex(),f.current&&d.current){const e=d.current.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;f.current.style.left=`${n}px`,f.current.style.top=`${r}px`}e(a.current),c(a.current),i(a.current)}),[e]),b=D.useCallback((t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=Lj(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new Ej.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new Ej.Color(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)}),[e]),x=D.useCallback((t=>{a.current=t,e(a.current),i(a.current),c(t)}),[e]),_=D.useCallback((t=>{if(c(t.target.value),!new Ej.Color(t.target.value).isInvalid()&&(a.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(a.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(a.current,{tag:"collaboration"}),d.current)){const e=Nj(a.current,d.current);m(e)}}),[e]);return jI.jsxs(Oj,{children:[s?jI.jsx(Rj,{palette:r,color:o,onColorChange:x}):jI.jsxs(jI.Fragment,{children:[jI.jsx(Pj,{style:{backgroundColor:v},ref:g,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),f.current&&e.target===f.current){const{left:t,top:n}=f.current.style,r=parseInt(t||"0",10),o=parseInt(n||"0",10);f.current.style.cursor="pointer",d.current&&(d.current.style.cursor="pointer"),p.current={left:r,top:o,on:!0,clientX:e.clientX,clientY:e.clientY}}},onMouseMove:e=>{if(e.preventDefault(),e.stopPropagation(),p.current.on&&f.current&&d.current){const t=e.clientX-p.current.clientX,n=e.clientY-p.current.clientY,r=p.current.left+t,o=p.current.top+n,s=Mj(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new Ej.Color(l).toHex();f.current.style.left=`${r}px`,f.current.style.top=`${o}px`,f.current.style.backgroundColor=u,a.current=u,c(a.current),i(u)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),p.current.on?e(a.current):y(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1},children:jI.jsx(jj,{ref:f,style:{...h,backgroundColor:o}})}),jI.jsx(zj,{onClick:b})]}),jI.jsxs(Dj,{children:[jI.jsx(Ij,{style:{backgroundColor:o}}),jI.jsx(F_,{style:{flex:1},value:u,onChange:_}),jI.jsx($b,{onClick:()=>{l(!s)},children:jI.jsx(SI,{height:12})}),jI.jsx($b,{onClick:t,children:jI.jsx(qw,{height:12})})]})]})},Bj=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],$j=gj(X_,"Color"),Hj=({colorPalette:e=Bj})=>{const[t]=mc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(tj),i=D.useCallback(((e,n)=>{t.update((()=>{const t=io();$r(t)&&el(t,{color:e})}),n),t.dispatchCommand(xj,{styleKey:"color",styleValue:e})}),[t]),a=()=>{r(null)};return jI.jsx(ew,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:jI.jsxs("div",{children:[jI.jsx($j,{variant:"text",size:"small",endIcon:jI.jsx(cI,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:jI.jsx(H_,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),jI.jsx(oj,{anchorEl:n,children:jI.jsx(Fj,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};gj(mj,"Export");const Wj=({compact:e=!1,fonts:t=XD})=>{const[n]=mc(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(tj),a=D.useMemo((()=>t),[t]),s=D.useCallback((e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update((()=>{const e=io();$r(e)&&el(e,{"font-family":t||XD[0]}),n.dispatchCommand(xj,{styleKey:"fontFamily",styleValue:t||XD[0]}),n.focus()}))}),[n]);return jI.jsx(ew,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:jI.jsxs("div",{children:[jI.jsx(aj,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:jI.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),jI.jsx(oj,{anchorEl:r,children:jI.jsx(Rw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map((e=>jI.jsx(sj,{"data-font-name":e,onClick:s,active:e===i.fontName,children:jI.jsx(ij,{children:e})},e)))})})]})})},Uj=e=>parseInt(e,10),Kj=({fontSize:e,onSelected:t})=>{const[n,r]=D.useState(""),o=D.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)}),[]),i=D.useCallback((()=>{const e=Uj(n);e&&t(`${e}px`)}),[t,n]),a=D.useCallback((e=>{"Enter"===e.key&&(e.preventDefault(),i())}),[i]);return jI.jsxs(sw,{direction:"row",children:[jI.jsx(F_,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),jI.jsx($b,{disabled:!Uj(n),onClick:i,children:jI.jsx(qw,{height:12})})]})},Gj=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],Yj=({compact:e=!1})=>{const[t]=mc(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(tj),i=D.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),a=D.useCallback((()=>{r(null)}),[]),s=D.useCallback((e=>{r(null),e.length>0&&t.update((()=>{const n=io();$r(n)&&el(n,{"font-size":e}),t.dispatchCommand(xj,{styleKey:"fontSize",styleValue:e})}))}),[t]),l=D.useCallback((e=>{const{fontSize:t}=e.currentTarget.dataset;s(t||"16px")}),[s]),u=D.useCallback((e=>{s(e)}),[s]);return jI.jsx(ew,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:jI.jsxs("div",{children:[jI.jsx(aj,{startIcon:e?jI.jsx(ij,{children:o.fontSize}):void 0,value:o.fontSize,onClick:i,compact:e}),jI.jsxs(oj,{anchorEl:n,children:[jI.jsx(Kj,{fontSize:o.fontSize,onSelected:u}),jI.jsx(aw,{}),jI.jsx(Rw,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:Gj.map((e=>jI.jsx(Pw,{"data-font-size":e,onClick:l,children:jI.jsx(ij,{children:e})},e)))})]})]})})},Vj=gj(mj,"InsertTable"),qj=()=>{const[e]=mc(),t=D.useCallback((()=>{e.dispatchCommand(ED,void 0)}),[e]);return jI.jsx(Vj,{onClick:t,children:jI.jsx(EI,{height:12})})},Jj=gj(vj,"Italic"),Qj=()=>jI.jsx(Jj,{format:"italic",icon:jI.jsx(AI,{height:12})}),Xj=gj(mj,"InsertHyperlink"),Zj=()=>{const[e]=mc(),{blockFormat:t}=D.useContext(tj),n=D.useCallback((()=>{t.isLink?e.dispatchCommand(gu,null):e.dispatchCommand(gu,GI("https://"))}),[e,t.isLink]);return jI.jsx(Xj,{onClick:n,children:jI.jsx(LI,{height:12})})};gj(mj,"Toggle");const eF=gj(vj,"Underline"),tF=()=>jI.jsx(eF,{format:"underline",icon:jI.jsx(MI,{height:12})}),nF=()=>jI.jsx(aw,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var rF={AddNewColumn:{value:"Spalte hinzufügen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Zeile hinzufügen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Zentrieren",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Linksbündig",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechtsbündig",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fett",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textausrichtung",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Schriftgröße",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Format löschen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Schriftfarbe",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Spalte löschen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Zeile löschen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabelle löschen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geben Sie Text ein...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Überschrift 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Überschrift 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Überschrift 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Link einfügen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Großer Text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link zu",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Mittlerer Text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sortierte Liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Absatz",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Listenstil",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Kleiner Text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Rahmen wechseln",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-Link",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Unterstreichen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Unsortierte Liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},oF={AlignLeft:{value:"Align left",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)"},AlignCenter:{value:"Align center",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)"},AlignRight:{value:"Align right",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)"},SmallText:{value:"Small text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)"},MediumText:{value:"Medium text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)"},LargeText:{value:"Large text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)"},UnorderedList:{value:"Unordered list",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)"},OrderedList:{value:"Ordered list",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)"},ChangeTextSize:{value:"Text size",comment:"Change text size in toolbar menu label. (dfk 221011)"},BoldText:{value:"Bold",comment:"Bold text label in toolbar menu label. (dfk 221011)"},ItalicizeText:{value:"Italic",comment:"Italicize text label in toolbar menu label. (dfk 221011)"},UnderlineText:{value:"Underline",comment:"Underline text label in toolbar menu label. (dfk 221011)"},ChangeTextAlignment:{value:"Text alignment",comment:"Change text alignment label in toolbar menu label. (dfk 221011)"},SetTextListStyle:{value:"List style",comment:"Set text list style label in toolbar menu label. (dfk 221011)"},InsertHyperlink:{value:"Insert link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)"},LinkTo:{value:"Link to",comment:"Generic link label. (dfk 221011)"},URLLink:{value:"URL link",comment:"URL link label. (dfk 221011)"},Paragraph:{value:"Paragraph",comment:"Paragraph format for the text"},Heading1:{value:"Heading 1",comment:"HTML Header 1 format for the text"},Heading2:{value:"Heading 2",comment:"HTML Header 2 format for the text"},Heading3:{value:"Heading 3",comment:"HTML Header 2 format for the text"},Color:{value:"Font color",comment:"Button label for color picker"},ToggleBorders:{value:"Toggle borders",comment:"Menu option to toggle table borders"},AddNewRow:{value:"Add row",comment:"Menu option to add row to table"},AddNewColumn:{value:"Add column",comment:"Menu option to add column to table"},DeleteRow:{value:"Delete row",comment:"Menu option to delete row to table"},DeleteCol:{value:"Delete column",comment:"Menu option to delete column to table"},DeleteTable:{value:"Delete table",comment:"Menu option to delete table"},ClearFormat:{value:"Clear format",comment:"Clear the selected text format"},EnterText:{value:"Enter some text...",comment:"Prompt to user when the text object is empty"},InsertTable:{value:"Insert table",comment:"Label for toolbar menu option to insert a table. (tew 260205)"},InsertImage:{value:"Insert image",comment:"Label for toolbar menu option to insert an image. (tew 260205)"}},iF={AddNewColumn:{value:"Añadir columna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Añadir fila",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinear centrado",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinear a la izquierda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinear a la derecha",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrita",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alineación de texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamaño de texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Borrar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Color de fuente",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Eliminar columna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Eliminar fila",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Eliminar tabla",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Escriba algún texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabecera 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabecera 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabecera 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insertar enlace",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Cursiva",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Enlazar a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto mediano",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Párrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo de lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeño",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Ajustar bordes",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Enlace URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Subrayado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista no ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},aF={AddNewColumn:{value:"Ajouter une colonne",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Ajouter une ligne",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrer",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Aligner à gauche",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Aligner à droite",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Gras",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alignement du texte",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Taille du texte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Effacer le format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Couleur de police",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Supprimer une colonne",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Supprimer une ligne",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Supprimer la table",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Saisissez un texte...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"En-tête 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"En-tête 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"En-tête 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insérer un lien",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Italique",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texte de grande taille",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Lien vers",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texte de taille moyenne",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Liste triée",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraphe",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Style de liste",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texte de petite taille",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Basculer les bords",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Lien URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Souligner",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Liste non triée",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},sF={AddNewColumn:{value:"Aggiungi colonna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Aggiungi riga",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Allinea al centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Allinea a sinistra",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Allinea a destra",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Grassetto",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Allineamento testo",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Dimensione testo",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Cancella formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Colore carattere",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Elimina colonna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Elimina riga",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Elimina tabella",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Inserisci del testo...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Intestazione 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Intestazione 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Intestazione 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserisci collegamento",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Corsivo",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Testo grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Collega a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Testo medio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Elenco ordinato",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Stile elenco",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Testo piccolo",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Attiva/Disattiva bordi",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Collegamento URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sottolineato",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Elenco non ordinato",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},lF={AddNewColumn:{value:"列を追加",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"行を追加",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"中央揃え",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"左揃え",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"右揃え",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"太字",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"テキストの配置",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"テキスト サイズ",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"書式をクリア",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"フォントの色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"列を削除",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"行を削除",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"テーブルを削除",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"テキストを入力してください...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"見出し 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"見出し 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"見出し 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"リンクを挿入",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"テキスト大",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"リンク先",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"テキスト中",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"順序付きリスト",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"リスト スタイル",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"テキスト小",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"境界線の切り替え",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL リンク",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"順序なしリスト",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},uF={AddNewColumn:{value:"열 추가",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"행 추가",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"중앙 맞춤",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"왼쪽 맞춤",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"오른쪽 맞춤",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"굵게",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"텍스트 맞춤",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"텍스트 크기",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"형식 지우기",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"글꼴 색",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"열 삭제",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"행 삭제",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"테이블 삭제",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"텍스트 입력...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"머리글 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"머리글 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"머리글 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"링크 삽입",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"기울임꼴",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"큰 텍스트",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"연결 대상",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"중간 텍스트",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"순서가 지정된 목록",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"단락",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"목록 스타일",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"작은 텍스트",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"테두리 설정/해제",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 링크",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"밑줄",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"순서가 지정되지 않은 목록",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},cF={AddNewColumn:{value:"Kolom toevoegen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Rij toevoegen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Op midden uitlijnen",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Links uitlijnen",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechts uitlijnen",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Vet",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Tekstuitlijning",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tekstgrootte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Opmaak wissen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Tekstkleur",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Kolom verwijderen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Rij verwijderen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabel verwijderen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geef tekst op...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Koptekst 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Koptekst 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Koptekst 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Koppeling invoegen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Cursief",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Tekst groot",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Koppelen met",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Tekst medium",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Geordende lijst",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Alinea",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Lijststijl",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Tekst klein",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Randen in-/uitschakelen",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-koppeling",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Onderstrepen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Ongeordende lijst",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},dF={AddNewColumn:{value:"Dodaj kolumnę",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Dodaj wiersz",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Wyrównaj do środka",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Wyrównaj do lewej",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Wyrównaj do prawej",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Pogrubienie",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Wyrównanie tekstu",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Wielkość tekstu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Wyczyść format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Kolor czcionki",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Usuń kolumnę",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Usuń wiersz",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Usuń tabelę",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Wprowadź tekst...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Nagłówek 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Nagłówek 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Nagłówek 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Wstaw łącze",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Kursywa",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Duży tekst",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Łącze do:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Średni tekst",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista uporządkowana",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Akapit",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Styl listy",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Mały tekst",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Przełącz obramowania",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Łącze URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Podkreślenie",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista nieuporządkowana",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},fF={AddNewColumn:{value:"Adicionar coluna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Adicionar linha",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinhar centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinhar à esquerda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinhar à direita",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrito",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alinhamento do texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamanho do texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Limpar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Cor da fonte",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Excluir coluna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Excluir linha",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Excluir tabela",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Digite algum texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabeçalho 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabeçallho 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabeçalho 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserir link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Itálico",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link para",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto médio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Parágrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo em lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeno",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Alternar bordas",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Link da URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sublinhado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista não ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},pF={AddNewColumn:{value:"Добавить столбец",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Добавить строку",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Выровнять по центру",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Выровнять по левой стороне",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Выровнять по правой стороне",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Полужирный",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Выравнивание текста",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Размер текста",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Очистить формат",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Цвет шрифта",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Удалить столбец",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Удалить строку",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Удалить таблицу",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Введите текст...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Заголовок 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Заголовок 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Заголовок 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Вставить ссылку",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Курсив",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Крупный текст",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Ссылка на",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Средний текст",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Упорядоченный список",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Абзац",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Стиль списка",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Мелкий текст",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Переключить границы",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-ссылка",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Подчеркивание",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Неупорядоченный список",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},hF={AddNewColumn:{value:"Lägg till kolumn",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Lägg till rad",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrera",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Vänsterjustera",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Högerjustera",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fetstil",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textjustering",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Textstorlek",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Rensa format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Teckenfärg",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Ta bort kolumn",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Ta bort rad",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Ta bort tabell",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Skriv in text...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Rubrik 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Rubrik 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Rubrik 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Infoga länk",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Stor text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Länka till",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Medelstor text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sorterad lista",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Stycke",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Som lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Liten text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kantlinjer på/av",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-länk",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Understrykning",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Osorterad lista",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},mF={AddNewColumn:{value:"Sütun ekle",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Satır ekle",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Ortaya hizala",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Sola hizala",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Sağa hizala",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Kalın",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Metin hizalaması",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Metin boyutu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Biçimi temizle",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Yazı tipi rengi",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Sütun sil",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Satır sil",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabloyu sil",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Metin girin...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Başlık 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Başlık 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Başlık 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Bağlantı ekle",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"İtalik",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Büyük metin",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Bağlantı:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Orta boy metin",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sıralı liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraf",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Liste stili",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Küçük metin",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kenarlıkları değiştir",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL bağlantısı",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Altını çiz",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Sırasız liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}};const gF={de:rF,es:iF,en:oF,fr:aF,it:sF,ja:lF,ko:uF,nl:cF,pl:dF,pt:fF,ru:pF,sv:hF,tr:mF,"de-de":rF,"es-es":iF,"en-us":oF,"fr-fr":aF,"it-it":sF,"ja-jp":lF,"ko-kr":uF,"nl-nl":cF,"pl-pl":dF,"pt-br":fF,"ru-ru":pF,"sv-se":hF,"tr-tr":mF,"zh-cn":{AddNewColumn:{value:"添加列",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"添加行",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"居中对齐",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左对齐",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右对齐",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"加粗",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文本对齐",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文本大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字体颜色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"删除列",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"删除行",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"删除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"输入一些文本...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"标题 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"标题 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"标题 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入链接",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文本",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"链接到",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文本",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"有序列表",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"列表样式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文本",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切换边框",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 链接",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下划线",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"无序列表",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},"zh-tw":{AddNewColumn:{value:"新增欄",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"新增列",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"置中對齊",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左對齊",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右對齊",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"粗體",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文字對齊方式",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文字大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字型色彩",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"刪除欄",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"刪除列",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"刪除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"輸入一些文字...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"標頭 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"標頭 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"標頭 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入連結",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"斜體字",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文字",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"連結至",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文字",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"排序清單",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"清單樣式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文字",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切換框線",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 連結",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"底線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"未排序清單",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}}};function vF(e,t){return e.getEditorState().read((()=>{const e=Di(t);return null!==e&&e.isSelected()}))}function yF(e){const[t]=mc(),[n,r]=D.useState((()=>vF(t,e)));D.useEffect((()=>{let n=!0;const o=t.registerUpdateListener((()=>{n&&r(vF(t,e))}));return()=>{n=!1,o()}}),[t,e]);return[n,D.useCallback((n=>{t.update((()=>{let t=io();Wr(t)||(t=no(),Ki(t)),Wr(t)&&(n?t.add(e):t.delete(e))}))}),[t,e]),D.useCallback((()=>{t.update((()=>{const e=io();Wr(e)&&e.clear()}))}),[t])]}var bF,xF={};var _F=function(){if(bF)return xF;bF=1;var e={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,n=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,o=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,i=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,s=Math.floor,l=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,a,u,c,d,f,p,h,m,g=0,v=0,y=0,b=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,y=arguments[0]._b,b=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m=arguments[0]))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10);else if(h=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(m))b=parseFloat(l(h[1]/2.55)/100),g=parseInt(h[2],10),v=parseInt(h[3],10),y=parseInt(h[4],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(m))g=parseInt(h[1],10),v=parseInt(h[2],10),y=parseInt(h[3],10),b=parseFloat(h[4]);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(m))g=parseInt(h[1],16),v=parseInt(h[2],16),y=parseInt(h[3],16),b=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(m))g=parseInt(h[1]+h[1],16),v=parseInt(h[2]+h[2],16),y=parseInt(h[3]+h[3],16),b=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),i=parseFloat(h[5]),b=parseFloat(h[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(m)){switch(n=parseFloat(h[1]),r=parseFloat(h[3]),a=parseFloat(h[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(a=(a/=100)<0?0:a>1?1:a)*(r=(r/=100)<0?0:r>1?1:r))*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=a-u,g=f[0]+p,v=f[1]+p,y=f[2]+p,g=l(255*g),v=l(255*v),y=l(255*y),b=1}else e[m.toLowerCase()]?(o=m.toLowerCase(),g=e[o].r,v=e[o].g,y=e[o].b,b="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(b=(4278190080&arguments[0])>>>24,b/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,y=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],y=arguments[2],b=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+y+b)&&(this._invalid=!0),this._r=s(g),this._g=s(v),this._b=s(y),this._a=b,this._spaces={}}var n,r;return n=t,(r=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=t.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=t.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=t.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(e){return this._spaces.hsl||(this._spaces.hsl=t.toHSL(this,e)),this._spaces.hsl}},{key:"toHSLA",value:function(e){return this._spaces.hsla||(this._spaces.hsla=t.toHSLA(this,e)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=t.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=t.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}},{key:"isEqual",value:function(e){return e instanceof t||(e=new t(e)),this._r===e._r&&this._g===e._g&&this._b===e._b}},{key:"blend",value:function(e,t){var n=s(this._r+(e._r-this._r)*t),r=s(this._g+(e._g-this._g)*t),o=s(this._b+(e._b-this._b)*t),i=s(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new t(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"))?o:String(o),r)}var o}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();return u.toRGB=function(e){if(e instanceof u)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},u.toRGBA=function(e,t){if(e instanceof u)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=u.toNumber(e));var n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")},u.toHex=function(e){var t,n,r;return e instanceof u?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=u.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))},u.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},u.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new u(e));var a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,d=Math.max(a,s,l),f=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")},u.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new u(e));var o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(t=0==(n=s-l)?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}},u.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof u)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,n=0,r=0,o=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(n=parseInt(e[1],10),r=parseInt(e[2],10),o=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16))),(n<<16)+(r<<8)+o},u.blend=function(e,t,n){var r=(16711680&(e=u.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=u.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},u.getBlend=function(e,t,n){var r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new u(r,o,i,a)},u.isCSSColor=function(s){return!(arguments.length>1||"string"!=typeof s)&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s)||e[s.toLowerCase()])},u.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},u.getContrast=function(e,t){if(e&&t){var n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}},u.isDark=function(){var e={getLuminance:u.prototype.getLuminance,isInvalid:u.prototype.isInvalid};return u.prototype.init.apply(e,[].slice.call(arguments)),u.prototype.isDark.call(e)},u.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},xF.Color=u,xF}();async function wF(e,t){await async function(e,t){try{if(e&&t){const n=t(await e.getProperties());await e.setProperties(n)}}catch(e){console.error(e)}}(e,(e=>{const{qHyperCubeDef:n}=e;if(n){const e=n.qMeasures?.filter((e=>{const n=t?.find((t=>t===e?.qDef?.cId));return!n}));n.qMeasures=e,n.qInterColumnSortOrder=[]}return{...e,qHyperCubeDef:n}}))}function kF(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function SF(e,t){return t?.getNodes().some((t=>t.getKey()===e))}var CF,EF;var TF=function(){if(EF)return CF;EF=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},CF=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,s;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(s=r.slice()).length,a=0;a<o;a++)s[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},CF}();let AF=[];const RF=new TF.EventEmitter;RF.isSelected=e=>{const t=e?.qDef?.cId;return-1!==AF.indexOf(t)},RF.setSelected=e=>{AF!==e&&(AF=e,RF.emit("change"))};function LF({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=D.useContext(B),[a]=mc(),s=xd(),[l,u,c]=yF(n),d=D.useRef(null),[f,p]=D.useState(t);D.useEffect((()=>{p(t)}),[t]);const h=D.useMemo((()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":s&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}}),[l,s]),m=D.useMemo((()=>r&&o?function(e,t){const{qHyperCube:n}=t;if(n){const t=n.qMeasureInfo?.findIndex((t=>t.cId===e));if(void 0!==t&&-1!==t){const e=n?.qDataPages?.[0]?.qMatrix?.[0][t];if(1===e?.qAttrExps?.qValues?.length){const t=e.qAttrExps.qValues[0]?.qText;if(t){const n=new _F.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""}),[r,e,o]);D.useEffect((()=>Hs(a.registerCommand(jt,(e=>(a.update((()=>{const t=e,r=io();if($r(r)&&l){if(SF(n,r)){const e=((e,t)=>{const n={};switch(e){case"bold":n.fontWeight=t;break;case"italic":n.fontStyle=t;break;case"underline":n.textDecoration=t}return n})(t,r.hasFormat(t)?t:"");p((t=>({...t,...e})))}}else if(l&&Wr(r)&&SF(n,r)&&d.current){const e=kF(d.current.style);p(((e,t)=>{const n={};switch(e){case"bold":t.fontWeight?"bold"===t.fontWeight&&(n.fontWeight=""):n.fontWeight="bold";break;case"italic":n.fontStyle="italic"===t.fontStyle?"":"italic";break;case"underline":n.textDecoration="underline"===t.textDecoration?"":"underline"}return{...t,...n}})(t,e))}})),!1)),3),a.registerCommand(xj,(e=>(a.getEditorState().read((()=>{if("color"===e.styleKey&&m.expressionColor)return!1;if(d.current&&l){const t=io();if(SF(n,t)){const t=kF(d.current?.style);t[e.styleKey]=e.styleValue,p(t)}}})),!1)),si),a.registerCommand(_j,(()=>(a.getEditorState().read((()=>{if(d.current&&l){const e=io();if(SF(n,e)){const e={};m.expressionColor&&(e.color=m.expressionColor),p(e)}}})),!1)),si),a.registerCommand(kt,(()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update((()=>{const e=[],t=io(),n=t?.getNodes();n?.forEach((t=>{t?.getExpressionId&&e.push(t?.getExpressionId())})),RF.setSelected(e)})),!1)),1))),[a,u,c,l,n,m]),D.useEffect((()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&RF.setSelected([]))}),[s,c,i]),D.useEffect((()=>{a.update((()=>{!function(e,t){const n=Di(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,f)}))}),[f,a,n]);const g=D.useCallback((e=>{if(s){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),c(),u(!0)):r<t.width&&a.update((()=>{const e=io();if(Wr(e)){const t=Di(n);t?.selectPrevious(),e.delete(n)}}))}}),[s,c,u,a,n]);return xc.jsx("span",{style:{...h,...f,color:m.expressionColor?m.expressionColor:f.color},onClick:g,ref:d,id:e,children:m.value})}const NF="qlik.expression.node";class MF extends ID{static getType(){return NF}static clone(e){return new MF(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new MF(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:NF,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return xc.jsx(LF,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function OF(e){return e instanceof MF}const PF="ImageNode",zF=wt("INSERT_IMAGE_COMMAND"),IF=()=>{const e={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};return e.id()},DF=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===PF)r.id||(r.id=IF()),t.add(r.id),r.tempUrlDef&&(n.add({id:r.id,url:{qStaticContentUrlDef:{qUrl:r.tempUrlDef}}}),delete r.tempUrl,delete r.tempUrlDef);else if("children"in r&&Array.isArray(r.children))for(const e of r.children)DF(e,t,n);return{imageIds:t,newPropertyImages:n}},jF=(e,t)=>e?.images?.find((e=>e.id===t))?.url.qStaticContentUrl.qUrl||"";async function FF(e,t,n){try{const r=await t.getProperties();if(r.text=JSON.stringify(e),n?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const{images:t,jsonData:n}=((e,t)=>{const n=e,r=t.images||[];let o=new Set;if(n.root){const e=DF(n.root);o=e.imageIds,e.newPropertyImages.forEach((e=>{r.push(e)}))}const i=[],a=new Set;return r.forEach((e=>{o.has(e.id)&&!a.has(e.id)&&(a.add(e.id),i.push(e))})),{images:i,jsonData:n}})(e,r);r.images=t,r.text=JSON.stringify(n)}await t.setProperties(r)}catch(e){console.error(e)}}function BF(){const[e]=mc(),t=xd(),{edit:n,model:r,emitter:o,flags:i}=D.useContext(B);return D.useEffect((()=>{const t=()=>{r&&FF(e.getEditorState().toJSON(),r,i)},n=t=>{const n=e.parseEditorState(t);t!==JSON.stringify(e.getEditorState().toJSON())&&e.setEditorState(n)};return o?.on("saveDocument",t),o?.on("reloadData",n),()=>{o?.removeListener("saveDocument",t),o?.removeListener("reloadData",n)}}),[o,r]),D.useEffect((()=>{e.setEditable(n)}),[n]),D.useEffect((()=>{t&&e.focus()}),[t,e]),null}class $F{constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Di(e);if(OF(n)&&(this.nodeStore.set(e,n),"created"===t)){const e=this.pendingDeletes.findIndex((e=>n.getExpressionId()===e));-1!==e&&this.pendingDeletes.splice(e,1)}}else if("destroyed"===t){const t=this.nodeStore.get(e);t&&(this.pendingDeletes.push(t.getExpressionId()),this.nodeStore.delete(e))}}sync(){const e=this.pendingDeletes;return this.pendingDeletes=[],e}}function HF(){const{layout:e,emitter:t}=D.useContext(B),[n]=mc(),r=D.useRef(new $F),o=xd();return D.useEffect((()=>{const e=n.registerMutationListener(MF,(e=>{n.getEditorState().read((()=>{for(const[t,n]of e)r.current.update(t,n)}))}));return()=>{e()}}),[n]),D.useEffect((()=>{e&&n.update((()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=la(MF),t=((e,t)=>{const n=e.reduce(((e,n)=>{const r=t.find((e=>e.cId===n.getExpressionId()));return r||e.push(n),e}),[]);return n})(e,n);if(t.forEach((e=>{e.remove()})),n.length>e.length){const e=io(),{cId:t}=n[n.length-1],r=new MF(t,{}),o=Lr(" "),i=Lr("");$r(e)?e.insertNodes([i,r,o]):hl(r)}}}))}),[e,n]),D.useEffect((()=>n.registerCommand($t,(e=>("Backspace"===e.key&&n.update((()=>{const e=io();Wr(e)&&e.getNodes().forEach((e=>{OF(e)&&(e.selectPrevious(),e.remove())}))})),!1)),1)),[n]),D.useEffect((()=>{if(!o){const e=r.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}}),[o,t]),null}const WF=/"/g;function UF(){const{model:e,emitter:t}=D.useContext(B),[n]=mc(),r=D.useRef(new Map);return D.useEffect((()=>{const o=n.registerMutationListener(_r,(e=>{e.forEach(((e,t)=>{if("destroyed"===e)r.current.delete(t);else{const e=n.getElementByKey(t)?.style.fontFamily;e&&r.current.set(t,e)}}))}));async function i(){if(e){!async function(e,t){try{const n=await t.getProperties();n.fontsUsed=e,await t.setProperties(n)}catch(e){console.error(e)}}(Array.from(new Set(r.current.values())).map((e=>e.replace(WF,""))),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}}),[n,t,e]),null}function KF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GF,YF="top",VF="top-right",qF="right",JF="bottom-right",QF="bottom",XF="bottom-left",ZF="left",eB="top-left";KF(KF(KF(KF(KF(KF(KF(KF(KF(KF(GF={},"equal-equal",[YF,QF]),"equal-higher",[QF,JF]),"equal-lower",[YF,VF]),"equal-void",[YF,QF]),"higher-equal",[ZF,XF,YF,VF]),"higher-higher-acute",[QF,XF,ZF,VF]),"higher-higher-obtuse",[QF,YF]),"higher-lower-negative",[YF,VF,qF]),"higher-lower-positive",[QF,XF,ZF]),"higher-void",[YF]),KF(KF(KF(KF(KF(KF(KF(KF(KF(KF(GF,"lower-equal",[YF]),"lower-higher-negative",[YF,eB]),"lower-higher-positive",[JF]),"lower-lower-acute",[YF,eB,ZF,VF,qF]),"lower-lower-obtuse",[YF,QF]),"lower-void",[YF]),"void-equal",[YF]),"void-higher",[YF,QF]),"void-lower",[YF,QF,ZF]),"void-void",[YF]),KF(GF,"unclassified",[YF,QF,qF,ZF,VF,JF,XF,eB]);var tB,nB,rB=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],oB=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var iB=function(){if(nB)return tB;nB=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return tB=function e(){var t,n,r,l,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},tB}();function aB(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sB(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function lB(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(iB);var uB=1/.7,cB="\\s*([+-]?\\d+)\\s*",dB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pB=/^#([0-9a-f]{3,8})$/,hB=new RegExp(`^rgb\\(${cB},${cB},${cB}\\)$`),mB=new RegExp(`^rgb\\(${fB},${fB},${fB}\\)$`),gB=new RegExp(`^rgba\\(${cB},${cB},${cB},${dB}\\)$`),vB=new RegExp(`^rgba\\(${fB},${fB},${fB},${dB}\\)$`),yB=new RegExp(`^hsl\\(${dB},${fB},${fB}\\)$`),bB=new RegExp(`^hsla\\(${dB},${fB},${fB},${dB}\\)$`),xB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _B(){return this.rgb().formatHex()}function wB(){return this.rgb().formatRgb()}function kB(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?SB(t):3===n?new AB(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?CB(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?CB(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=hB.exec(e))?new AB(t[1],t[2],t[3],1):(t=mB.exec(e))?new AB(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=gB.exec(e))?CB(t[1],t[2],t[3],t[4]):(t=vB.exec(e))?CB(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=yB.exec(e))?PB(t[1],t[2]/100,t[3]/100,1):(t=bB.exec(e))?PB(t[1],t[2]/100,t[3]/100,t[4]):xB.hasOwnProperty(e)?SB(xB[e]):"transparent"===e?new AB(NaN,NaN,NaN,0):null}function SB(e){return new AB(e>>16&255,e>>8&255,255&e,1)}function CB(e,t,n,r){return r<=0&&(e=t=n=NaN),new AB(e,t,n,r)}function EB(e){return e instanceof lB||(e=kB(e)),e?new AB((e=e.rgb()).r,e.g,e.b,e.opacity):new AB}function TB(e,t,n,r){return 1===arguments.length?EB(e):new AB(e,t,n,null==r?1:r)}function AB(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function RB(){return`#${OB(this.r)}${OB(this.g)}${OB(this.b)}`}function LB(){const e=NB(this.opacity);return`${1===e?"rgb(":"rgba("}${MB(this.r)}, ${MB(this.g)}, ${MB(this.b)}${1===e?")":`, ${e})`}`}function NB(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function MB(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function OB(e){return((e=MB(e))<16?"0":"")+e.toString(16)}function PB(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new IB(e,t,n,r)}function zB(e){if(e instanceof IB)return new IB(e.h,e.s,e.l,e.opacity);if(e instanceof lB||(e=kB(e)),!e)return new IB;if(e instanceof IB)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new IB(a,s,l,e.opacity)}function IB(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function DB(e){return(e=(e||0)%360)<0?e+360:e}function jB(e){return Math.max(0,Math.min(1,e||0))}function FB(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}aB(lB,kB,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_B,formatHex:_B,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return zB(this).formatHsl()},formatRgb:wB,toString:wB}),aB(AB,TB,sB(lB,{brighter(e){return e=null==e?uB:Math.pow(uB,e),new AB(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new AB(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new AB(MB(this.r),MB(this.g),MB(this.b),NB(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:RB,formatHex:RB,formatHex8:function(){return`#${OB(this.r)}${OB(this.g)}${OB(this.b)}${OB(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:LB,toString:LB})),aB(IB,(function(e,t,n,r){return 1===arguments.length?zB(e):new IB(e,t,n,null==r?1:r)}),sB(lB,{brighter(e){return e=null==e?uB:Math.pow(uB,e),new IB(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new IB(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new AB(FB(e>=240?e-240:e+120,o,r),FB(e,o,r),FB(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new IB(DB(this.h),jB(this.s),jB(this.l),NB(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=NB(this.opacity);return`${1===e?"hsl(":"hsla("}${DB(this.h)}, ${100*jB(this.s)}%, ${100*jB(this.l)}%${1===e?")":`, ${e})`}`}}));const BB=Math.PI/180,$B=180/Math.PI,HB=4/29,WB=6/29,UB=3*WB*WB;function KB(e){if(e instanceof GB)return new GB(e.l,e.a,e.b,e.opacity);if(e instanceof QB)return XB(e);e instanceof AB||(e=EB(e));var t,n,r=JB(e.r),o=JB(e.g),i=JB(e.b),a=YB((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=YB((.4360747*r+.3850649*o+.1430804*i)/.96422),n=YB((.0139322*r+.0971045*o+.7141733*i)/.82521)),new GB(116*a-16,500*(t-a),200*(a-n),e.opacity)}function GB(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function YB(e){return e>.008856451679035631?Math.pow(e,1/3):e/UB+HB}function VB(e){return e>WB?e*e*e:UB*(e-HB)}function qB(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function JB(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function QB(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function XB(e){if(isNaN(e.h))return new GB(e.l,0,0,e.opacity);var t=e.h*BB;return new GB(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}aB(GB,(function(e,t,n,r){return 1===arguments.length?KB(e):new GB(e,t,n,null==r?1:r)}),sB(lB,{brighter(e){return new GB(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new GB(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new AB(qB(3.1338561*(t=.96422*VB(t))-1.6168667*(e=1*VB(e))-.4906146*(n=.82521*VB(n))),qB(-.9787684*t+1.9161415*e+.033454*n),qB(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),aB(QB,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof QB)return new QB(e.h,e.c,e.l,e.opacity);if(e instanceof GB||(e=KB(e)),0===e.a&&0===e.b)return new QB(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*$B;return new QB(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new QB(e,t,n,null==r?1:r)}),sB(lB,{brighter(e){return new QB(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new QB(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return XB(this).rgb()}}));var ZB=e=>()=>e;function e$(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):ZB(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?e$:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ZB(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=TB(e)).r,(t=TB(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=e$(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var t$,n$="center",r$="bottom";function o$(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function i$(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=s$)):void 0===t&&(t=a$);for(var n,r,o,i,a,s=new c$(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new c$(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(u$)}function a$(e){return e.children}function s$(e){return Array.isArray(e)?e[1]:null}function l$(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function u$(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function c$(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:n$,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:n$,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:n$,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:n$},{key:"DataRangeIncludingZero",alignment:r$},{key:"LimitedData",alignment:r$},{key:"NegativeOrZeroValues",alignment:r$}].reduce((function(e,t){return e[t.key]=t,e}),{}),c$.prototype=i$.prototype={constructor:c$,count:function(){return this.eachAfter(o$)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return i$(this).eachBefore(l$)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},t$=function(e){
109
109
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
110
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=f-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,f):"";if(n=(t="-"===(e=e.substring(p,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%s,f=d.length,y=0;y<f;y++)m+=d.charAt(y),!((y-v+1)%s)&&y<f-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},BO({exports:{}});const QO=e=>`text-toolbar.${null==e?void 0:e.id}`;function XO(){const{element:e,edit:t,model:n,flags:r,theme:o}=$.useContext(B),i=$.useMemo((()=>(null==e?void 0:e.closest(".qv-inner-object"))||e),[e]),a=$.useMemo((()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?WL:jL}(r)),[r]),l=$.useMemo((()=>(e=>{const t=null==e?void 0:e.getDataColorPickerPalettes();if(t&&(null==t?void 0:t.length)>0)return["#404040",...t[0].colors.filter((e=>"none"!==e))]})(o)),[o]);return z.createElement(jd,{open:t,anchorEl:i,placement:"top",transition:!0,sx:{zIndex:1},id:QO(n)},(({TransitionProps:e})=>z.createElement(Lf,{...e},z.createElement(Du,{sx:{borderRadius:1,padding:.25}},z.createElement(PA,null,z.createElement(YA,{compact:!0}),z.createElement(jN,null),z.createElement(AN,{compact:!0,fonts:a}),z.createElement(MN,{compact:!0}),z.createElement(jN,null),z.createElement(QA,null),z.createElement($N,null),z.createElement(HN,null),z.createElement(FN,null),z.createElement(TN,{colorPalette:l}),z.createElement(jN,null),z.createElement(BA,{compact:!0}),z.createElement(jN,null),z.createElement(eN,null),z.createElement(jN,null),z.createElement(IN,null))))))}function JO({interactionState:e}){const{initialData:t,lang:n,flags:r}=$.useContext(B),o=!(!1===(null==e?void 0:e.edit)&&null!=r&&r.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));$.useEffect((()=>{!function(e){const t=Object.entries(nL[e.toLowerCase()]).reduce(((e,[t,n])=>({...e,[t]:n.value})),{});sR.append(t)}(n)}),[n]);const i=$.useMemo((()=>{if(void 0!==t){return(e=>{var t;let n=LT.nodes;e.nodes&&(n=null===(t=LT.nodes)||void 0===t?void 0:t.concat(e.nodes));const r=e.initialData?e.initialData:void 0;return{...LT,nodes:n,editorState:r}})({initialData:t||void 0,nodes:[...hA,SL]})}return null}),[t]);return i?z.createElement("div",{className:"hideScrollBar"},z.createElement(OT,{initialConfig:i,flags:r},z.createElement(XO,null),z.createElement(RA,{showPlaceholder:o}),z.createElement(wA,null),z.createElement(RL,null),z.createElement(EL,null),z.createElement(AL,null))):null}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".hideScrollBar {\n overflow-y: scroll;\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n height: 100%;\n position: relative;\n}\n\n.hideScrollBar::-webkit-scrollbar {\n display: none;\n}\n");const ZO={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:yL,items:{divider:{uses:"divider"},aggrFunc:{ref:"qDef.qAggrFunc",type:"string",defaultValue:"None",show:!1},measureColoring:{translation:"properties.color",component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"expressionColor"}]}}}}},eM={uses:"settings",items:{general:{items:{showTitles:{defaultValue:!1}}},presentation:{type:"items",translation:"properties.presentation",items:{styleEditor:{component:"styling-panel",chartTitle:"Object.Text",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0}}}}};class tM{constructor(){rL(this,"selectedModelId",void 0),rL(this,"getSelectedModelId",(()=>this.selectedModelId)),rL(this,"snTexts",{}),rL(this,"getSnTexts",(()=>this.snTexts)),rL(this,"sync",(({modelId:e})=>{this.snTexts[e]={propertiesHaveBeenModified:!1}})),rL(this,"setSelectedModelId",(e=>{this.selectedModelId=e})),rL(this,"setPropertiesHaveBeenModified",((e,t)=>{this.snTexts[e]={propertiesHaveBeenModified:t}})),rL(this,"setPropertiesHaveBeenModifiedForSelectedModel",(e=>{this.selectedModelId&&(this.snTexts[this.selectedModelId]={propertiesHaveBeenModified:e})})),rL(this,"destroy",(e=>{delete this.snTexts[e]}))}}function nM(f){const m=new tM,{flags:g}=f,v=[];return{qae:{properties:p,data:h(m)},component(){const f=n(),p=(n=>{const r=e((()=>D.createRoot(n)),[n]);return t((()=>()=>{null==r||r.unmount()}),[r]),r})(f),h=r(),b=o(),y=i(),x=a(),_=l(),[S,C]=s(!1),[E,w]=s(void 0),[k,R]=s(1),T=u(),[A,N]=s(!1),[L,O]=s(null);c((()=>new Promise((e=>{var t;const n={id:null==h||null===(t=h.qInfo)||void 0===t?void 0:t.qId,resolve:e};v.push(n)}))),[]);const M=e=>{e||R(0),(e=>!!e.qExtendsId)(h)||(!0===e&&N(!0),C(e),x.emit("njs-internal-edit-change",e))};t((()=>{const e=e=>{fL(b,e)};return x.on("onNodeDestroyed",e),()=>{x.removeListener("onNodeDestroyed",e)}}),[x,b]),t((()=>{2===k&&y.edit&&y.select&&M(!0)}),[k,y]),t((()=>{h&&void 0===E&&(w(h.text||null),O(null==h?void 0:h.text))}),[h,E]),t((()=>{const e=()=>{y.edit&&y.select&&R((e=>e+1))},t=e=>{const t=document.getElementById(QO(b));f.contains(e.target)||null!=t&&t.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(null!=n&&n.contains(e))return!0;for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(e.target)||M(!1)};if(!y.edit||!y.select){var n;M(!1);const e=(null==b?void 0:b.id)&&(null===(n=m.getSnTexts()[b.id])||void 0===n?void 0:n.propertiesHaveBeenModified);(A||e)&&(x.emit("saveDocument"),m.setPropertiesHaveBeenModified(b.id,!1))}return f.addEventListener("click",e),document.addEventListener("mousedown",t),()=>{f.removeEventListener("click",e),document.removeEventListener("mousedown",t)}}),[f,y,b]),t((()=>{(({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:l,flags:s,theme:u,interactionState:c,readyToPrint:d})=>{e.render(z.createElement(z.StrictMode,null,z.createElement(B.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:l,flags:s,theme:u,readyToPrint:d}},z.createElement(JO,{interactionState:c}))))})({rootElement:p,layout:h,model:b,element:f,edit:S,initialData:E,emitter:x,lang:_.language(),flags:g,theme:T,interactionState:y,readyToPrint:v})}),[h,p,b,f,S,f,E,x,g,T,y]),t((()=>{!S&&A&&x.emit("saveDocument")}),[S,x,A]),t((()=>{if(h){const e=h;e.text&&e.text!==L&&(O(e.text),x.emit("reloadData",e.text))}}),[h,L,x]),d((()=>({updateActiveState(e){e?m.setSelectedModelId(b.id):b.id===m.getSelectedModelId()&&m.setSelectedModelId(void 0)}})),[])},ext:{definition:{type:"items",component:"accordion",items:{data:ZO,settings:eM}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}}}}export{nM as default};
110
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=f-g,y=e.substring(v,v+1),b=v+("."===y||","===y?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-v+1)%l)&&b<f-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},t$({exports:{}});const d$=e=>`text-toolbar.${e?.id}`,f$=(e,t)=>xc.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:xc.jsx("path",{d:"M3.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1M1 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm14 1v4.293L13.207 5.5a1 1 0 0 0-1.414 0L8 9.293 7.207 8.5a1 1 0 0 0-1.414 0l-4.5 4.5H1V3zm0 5.707V13h-3.293l-3-3L12.5 6.207zM10.293 13H2.707L6.5 9.207z"})}),p$=D.forwardRef(f$),h$=gj(mj,"InsertImage"),m$=()=>{const{flags:e,showMediaLibrary:t}=D.useContext(B),[n]=mc(),r=D.useCallback((()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(zF,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})}),[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?xc.jsx(h$,{onClick:r,children:xc.jsx(p$,{height:12})}):null};function g$(){const{element:e,edit:t,model:n,flags:r,theme:o}=D.useContext(B),i=D.useMemo((()=>{const t=e?.closest(".qv-inner-object");return t||e}),[e]),a=D.useMemo((()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?oB:rB}(r)),[r]),s=D.useMemo((()=>(e=>{const t=e?.getDataColorPickerPalettes();if(t&&t?.length>0)return["#404040",...t[0].colors.filter((e=>"none"!==e))]})(o)),[o]);return xc.jsx(S_,{open:t,anchorEl:i,placement:"top",transition:!0,sx:{zIndex:1},id:d$(n),children:({TransitionProps:e})=>xc.jsx(fw,{...e,children:xc.jsx(yb,{sx:{borderRadius:1,padding:.25},children:xc.jsxs(rj,{children:[xc.jsx(hj,{compact:!0}),xc.jsx(nF,{}),xc.jsx(Wj,{compact:!0,fonts:a}),xc.jsx(Yj,{compact:!0}),xc.jsx(nF,{}),xc.jsx(bj,{}),xc.jsx(Qj,{}),xc.jsx(tF,{}),xc.jsx(Zj,{}),xc.jsx(Hj,{colorPalette:s}),xc.jsx(nF,{}),xc.jsx(uj,{compact:!0}),xc.jsx(nF,{}),xc.jsx(kj,{}),xc.jsx(nF,{}),xc.jsx(qj,{}),xc.jsx(m$,{})]})})})})}function v$(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}v$(".hideScrollBar {\n overflow-y: scroll;\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n height: 100%;\n position: relative;\n}\n\n.hideScrollBar::-webkit-scrollbar {\n display: none;\n}\n");v$(".tek__editor__container span.tek__image {\n display: inline-block;\n position: relative;\n user-select: none;\n}\n\n.tek__editor__container .tek__image img {\n max-width: 100%;\n}\n\n.tek__editor__container .tek__image img.focused {\n user-select: none;\n}\n\n.tek__editor__container .tek__image img.focused {\n cursor: grab;\n outline: 2px solid var(--sprout-selected-border-default-color);\n outline-offset: -3px;\n}\n\n.tek__editor__container .tek__image img.focused.draggable:active {\n cursor: grabbing;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer {\n display: block;\n width: 6px;\n height: 6px;\n position: absolute;\n background-color: var(--sprout-selected-border-default-color);\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_n {\n top: -2px;\n left: 48%;\n cursor: n-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_ne {\n top: -2px;\n right: -1px;\n cursor: ne-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_e {\n bottom: 48%;\n right: -1px;\n cursor: e-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_se {\n bottom: 3px;\n right: -1px;\n cursor: nwse-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_s {\n bottom: 3px;\n left: 48%;\n cursor: s-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_sw {\n bottom: 3px;\n left: -1px;\n cursor: sw-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_w {\n bottom: 48%;\n left: -1px;\n cursor: w-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_nw {\n top: -2px;\n left: -1px;\n cursor: nw-resize;\n}\n\n.tek__editor__container .image_control_wrapper__resizing {\n touch-action: none;\n}\n");const y$=1,b$=8,x$=2,_$=4;function w$({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=D.useRef(null),a=D.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=D.useRef({priority:"",value:"default"}),l=o.getRootElement();let u=r;u||(u=null!==l?l.getBoundingClientRect().width-20:100);const c=null!==l?l.getBoundingClientRect().height-20:100,d=(t,r)=>{const o=n.current,u=i.current;if(null!==o&&null!==u){const{width:n,height:i}=o.getBoundingClientRect(),c=a.current;c.startWidth=n,c.startHeight=i,c.ratio=n/i,c.currentWidth=n,c.currentHeight=i,c.startX=t.clientX,c.startY=t.clientY,c.isResizing=!0,c.direction=r,(e=>{let t;t=e===y$||e===_$?"ew":e===b$||e===x$?"ns":e&b$&&e&_$||e&x$&&e&y$?"nwse":"nesw",null!==l&&l.style.setProperty("cursor",`${t}-resize`,"important"),null!==document.body&&(document.body.style.setProperty("cursor",`${t}-resize`,"important"),s.current.value=document.body.style.getPropertyValue("-webkit-user-select"),s.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))})(r),e(),u.classList.add("image_control_wrapper__resizing"),o.style.height=`${i}px`,o.style.width=`${n}px`,document.addEventListener("pointermove",f),document.addEventListener("pointerup",p)}},f=e=>{const t=n.current,r=a.current,o=r.direction&(y$|_$),i=r.direction&(x$|b$);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&y$?-n:n;const o=k$(r.startWidth+n,50,u),i=o/r.ratio;t.style.width=`${o}px`,t.style.height=`${i}px`,r.currentHeight=i,r.currentWidth=o}else if(i){let n=Math.floor(r.startY-e.clientY);n=r.direction&x$?-n:n;const o=k$(r.startHeight+n,50,c);t.style.height=`${o}px`,r.currentHeight=o}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&y$?-n:n;const o=k$(r.startWidth+n,50,u);t.style.width=`${o}px`,r.currentWidth=o}},p=()=>{const e=n.current,r=a.current,o=i.current;if(null!==e&&null!==o&&r.isResizing){const e=r.currentWidth,n=r.currentHeight;r.startWidth=0,r.startHeight=0,r.ratio=0,r.startX=0,r.startY=0,r.currentWidth=0,r.currentHeight=0,r.isResizing=!1,o.classList.remove("image_control_wrapper__resizing"),null!==l&&l.style.setProperty("cursor","default"),null!==document.body&&(document.body.style.setProperty("cursor","default"),document.body.style.setProperty("-webkit-user-select",s.current.value,s.current.priority)),t(e,n),document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",p)}};return xc.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[xc.jsx("div",{className:"tek__image_resizer tek__image_resizer_n",onPointerDown:e=>{d(e,b$)}}),xc.jsx("div",{className:"tek__image_resizer tek__image_resizer_ne",onPointerDown:e=>{d(e,b$|y$)}}),xc.jsx("div",{className:"tek__image_resizer tek__image_resizer_e",onPointerDown:e=>{d(e,y$)}}),xc.jsx("div",{className:"tek__image_resizer tek__image_resizer_se",onPointerDown:e=>{d(e,x$|y$)}}),xc.jsx("div",{className:"tek__image_resizer tek__image_resizer_s",onPointerDown:e=>{d(e,x$)}}),xc.jsx("div",{className:"tek__image_resizer tek__image_resizer_sw",onPointerDown:e=>{d(e,x$|_$)}}),xc.jsx("div",{className:"tek__image_resizer tek__image_resizer_w",onPointerDown:e=>{d(e,_$)}}),xc.jsx("div",{className:"tek__image_resizer tek__image_resizer_nw",onPointerDown:e=>{d(e,b$|_$)}})]})}const k$=(e,t,n)=>Math.min(Math.max(e,t),n),S$=new Map;const C$=({altText:e,className:t,imageRef:n,src:r,width:o,height:i,maxWidth:a,onError:s,onLoad:l})=>{const u=function(e){return e.toLowerCase().endsWith(".svg")}(r),c=(e=>{let t=S$.get(e);if(t&&"error"in t&&"boolean"==typeof t.error)return t;if(!t)throw t=new Promise((t=>{const n=new Image;n.src=e,n.onload=()=>{t({error:!1,height:n.naturalHeight,width:n.naturalWidth})},n.onerror=()=>{t({error:!0})}})).then((t=>(S$.set(e,t),t))),S$.set(e,t),t;throw t})(r);D.useEffect((()=>{c.error&&s()}),[c.error,s]);const d=(()=>{if(c.error)return{height:100,maxWidth:a,width:100};if(!u)return{height:i,maxWidth:a,width:o};let e=c.width,t=c.height;if(a&&e>a){const n=a/e;e=a,t=Math.round(t*n)}if(t>500){const n=500/t;t=500,e=Math.round(e*n)}return{height:t,maxWidth:a,width:e}})();return xc.jsx("img",{className:t||void 0,src:r,alt:e,ref:n,style:d,onError:s,draggable:"false","data-testid":"sn-text-image",onLoad:l})};function E$({tempUrl:e,imageId:t,altText:n,width:r,height:o,maxWidth:i,resizable:a,nodeKey:s}){const l=D.useRef(null),[u,c,d]=yF(s),[f,p]=D.useState(!1),[h]=mc(),m=xd(),{layout:g,printingStatus:v}=D.useContext(B),y=D.useMemo((()=>e||jF(g,t)),[e,g,t]);D.useEffect((()=>{!m&&u&&d()}),[m,u,d]);const b=D.useCallback((e=>{const t=e;return!!f||t.target===l.current&&(t.shiftKey?c(!u):(d(),c(!0)),!0)}),[f,u,c,d]),x=D.useCallback((()=>!!u&&(Ki(null),h.focus(),!0)),[u,h]);D.useEffect((()=>Hs(h.registerCommand(Ct,b,1),h.registerCommand(an,(e=>e.target===l.current&&(e.preventDefault(),!0)),1),h.registerCommand(Qt,x,1))),[h,b,x]);const _=u&&!f&&m,w=(u||f)&&m;return xc.jsx(D.Suspense,{fallback:null,children:xc.jsxs(xc.Fragment,{children:[xc.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:xc.jsx(C$,{className:`${w?"focused":""} ${_?"draggable":""}`,src:y,altText:n,imageRef:l,width:r,height:o,maxWidth:i,onLoad:()=>v?.resolve(t,!1),onError:()=>v?.resolve(t,!1)})}),a&&u&&w?xc.jsx(w$,{editor:h,imageRef:l,maxWidth:i,onResizeStart:()=>{p(!0)},onResizeEnd:(e,t)=>{setTimeout((()=>{p(!1)}),200),h.update((()=>{const n=Di(s);n?.getType()===PF&&n.setWidthAndHeight(e,t)}))}}):null]})})}class T$ extends Vo{constructor(e){super(e.key),this.__props={id:e.id,altText:e.altText||"",width:e.width||"inherit",height:e.height||"inherit",method:e.method||"mediaLibrary",tempUrl:e.tempUrl,tempUrlDef:e.tempUrlDef}}static getType(){return PF}static clone(e){return new T$({...e.__props,key:e.getKey()})}decorate(){return xc.jsx(E$,{tempUrl:this.__props.tempUrl,imageId:this.__props.id,altText:this.__props.altText,width:this.__props.width,height:this.__props.height,nodeKey:this.getKey(),resizable:!0})}createDOM(e){const t=document.createElement("span"),n=e.theme.image;return void 0!==n&&(t.className=n),t}updateDOM(){return!1}exportJSON(){return{...this.__props,type:PF,version:1}}static importJSON(e){return A$(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const A$=e=>new T$(e),R$=document.createElement("img");function L$(e){const t=e.target;return!!(t&&Ta(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&Ta(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function N$(){const e=io();if(!Wr(e))return null;const t=e.getNodes()[0];return t.getType()===PF?t:null}function M$(e,t){const n=N$();if(!n)return!1;const r=function(e){const t=e.dataTransfer?.getData("application/x-lexical-drag");if(!t)return null;const{type:n,data:r}=JSON.parse(t);return n!==PF?null:r}(e);if(!r)return!1;const o=Ka(n,(e=>!mu(e)&&fu(e)));if(e.preventDefault(),L$(e)){const i=function(e){let t;const n=function(e){const t=e;let n;return n=null===t?null:9===t.nodeType?t.defaultView:t.ownerDocument.defaultView,function(e){return null==e?null:e.getSelection()}(n)}(e.target),r=document.caretPositionFromPoint(e.clientX,e.clientY);if(r&&null!==n)n.collapse(r.offsetNode,r.offset),t=n.getRangeAt(0);else{if(!e.rangeParent||null===n)throw Error("Cannot get the selection when dragging");n.collapse(e.rangeParent,e.rangeOffset||0),t=n.getRangeAt(0)}return t}(e);n.remove();const a=to();null!=i&&a.applyDOMRange(i),Ki(a),t.dispatchCommand(zF,{...r}),o&&t.dispatchCommand(gu,o.getURL())}return!0}R$.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const O$=()=>{const[e]=mc(),{emitter:t,layout:n,model:r}=D.useContext(B),[o,i]=D.useState();return D.useEffect((()=>{"function"==typeof r?.getProperties&&r?.getProperties().then((e=>{i(e)}))}),[n,r]),D.useEffect((()=>Hs(e.registerCommand(zF,(({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(e.update((()=>{const e=A$({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});ho([e]),ba(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,ii).selectEnd()})),!0)),si),e.registerCommand(un,(t=>{const r=io();if(!r)return!1;const i=r.getNodes().some((e=>e.getType()===T$.getType()));if(!i)return!1;const a=Kc(r),s=a["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===T$.getType()){const t={...e};return t.tempUrl=t.tempUrl||jF(n,e.id),t.tempUrlDef=t.tempUrlDef||((e,t)=>e?.images?.find((e=>e.id===t))?.url.qStaticContentUrlDef.qUrl||"")(o,e.id),delete t.id,t}if("children"in e&&Array.isArray(e.children)&&e.children.length>0){const t={...e};return t.children=e.children.map(l),t}return e},u=JSON.parse(s);if(Array.isArray(u.nodes)){u.nodes=u.nodes.map(l);const n={...a,"application/x-lexical-editor":JSON.stringify(u)};return Hc(e,ml(t,ClipboardEvent)?t:null,n),!0}return!1}),3),e.registerCommand(an,(e=>function(e){const t=N$();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(R$,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:PF})),!0)}(e)),3),e.registerCommand(sn,(e=>function(e){return!!N$()&&(L$(e)||e.preventDefault(),!1)}(e)),1),e.registerCommand(rn,(t=>M$(t,e)),3))),[e,t,o,n]),null};const P$=()=>((()=>{const e=D.useRef(null),{printingStatus:t}=D.useContext(B),[n]=mc();D.useEffect((()=>(t&&(e.current=n.registerUpdateListener((()=>{requestAnimationFrame((()=>{e.current?.(),t?.resolve(void 0,!1)}))}))),()=>{e.current?.()})),[n,t])})(),null);function z$({interactionState:e}){const{initialData:t,lang:n,flags:r,showMediaLibrary:o}=D.useContext(B),i=e?.edit,a=!(!1===i&&r?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));D.useEffect((()=>{!function(e){const t=Object.entries(gF[e.toLowerCase()]).reduce(((e,[t,n])=>({...e,[t]:n.value})),{});Nz.configure(t,e)}(n)}),[n]);const s=D.useMemo((()=>{if(void 0!==t){const n=t||void 0,o=[...DD,MF];return r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push(T$):o.push((e=PF,class t extends Vo{constructor(e={},t){super(t),this.__data=e}static getType(){return e}static clone(e){return new t(e.__data,e.__key)}decorate(){return null}createDOM(){return document.createElement("span")}updateDOM(){return!1}exportDOM(){return{element:null}}exportJSON(){return{type:e,version:1}}static importJSON(e){return new t(e)}isSelectable(){return!1}isKeyboardSelectable(){return!1}})),(e=>{let t=eD.nodes;e.nodes&&(t=eD.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...eD,nodes:t,editorState:n}})({initialData:n,nodes:o})}var e;return null}),[t,r]);return s?xc.jsx("div",{className:"hideScrollBar",children:xc.jsxs(tD,{initialConfig:s,flags:r,children:[xc.jsx(g$,{}),xc.jsx(JD,{showPlaceholder:a}),xc.jsx(VD,{}),o&&r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?xc.jsx(O$,{}):null,xc.jsx(HF,{}),xc.jsx(BF,{}),xc.jsx(UF,{}),xc.jsx(P$,{})]})}):null}const I$={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:RF,items:{divider:{uses:"divider"},aggrFunc:{ref:"qDef.qAggrFunc",type:"string",defaultValue:"None",show:!1},measureColoring:{translation:"properties.color",component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"expressionColor"}]}}}}},D$={uses:"settings",items:{general:{items:{showTitles:{defaultValue:!1}}},presentation:{type:"items",translation:"properties.presentation",items:{styleEditor:{component:"styling-panel",chartTitle:"Object.Text",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0}}}}};class j${getSelectedModelId=()=>this.selectedModelId;snTexts={};getSnTexts=()=>this.snTexts;sync=({modelId:e})=>{this.snTexts[e]={propertiesHaveBeenModified:!1}};setSelectedModelId=e=>{this.selectedModelId=e};setPropertiesHaveBeenModified=(e,t)=>{this.snTexts[e]={propertiesHaveBeenModified:t}};setPropertiesHaveBeenModifiedForSelectedModel=e=>{this.selectedModelId&&(this.snTexts[this.selectedModelId]={propertiesHaveBeenModified:e})};destroy=e=>{delete this.snTexts[e]}}const F$=({propertyPanelHandlerData:e,flags:r})=>{const u=o(),c=i(),d=a(),f=s(),p=l(),[h,m]=n(!1),[g,v]=n(1),[y,b]=n(!1),x=e=>{e||v(0),(e=>!!e.qExtendsId)(c)||(e&&b(!0),m(e),p.emit("njs-internal-edit-change",e))};return t((()=>{2===g&&f.edit&&f.select&&x(!0)}),[g,f]),t((()=>{const t=()=>{f.edit&&f.select&&v((e=>e+1))},n=e=>{const t=document.getElementById(d$(d));u.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(n?.contains(e))return!0;if(r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")){const t=document.querySelector('[qva-outside-ignore-for="media-toolbar"]');if(t?.contains(e))return!0}for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(e.target)||x(!1)};if(!f.edit||!f.select){x(!1);const t=d?.id&&e.getSnTexts()[d.id]?.propertiesHaveBeenModified;d&&(y||t)&&(p.emit("saveDocument"),e.setPropertiesHaveBeenModified(d.id,!1))}return u.addEventListener("click",t),document.addEventListener("mousedown",n),()=>{u.removeEventListener("click",t),document.removeEventListener("mousedown",n)}}),[u,f,d]),t((()=>{!h&&y&&p.emit("saveDocument")}),[h,p,y]),{edit:h}};function B$(f){const m=new j$,{flags:g}=f;return{qae:{properties:p,data:h(m)},component(){const p=o(),h=(n=>{const r=e((()=>I.createRoot(n)),[n]);return t((()=>()=>{r?.unmount()}),[r]),r})(p),v=i(),y=a(),b=s(),x=l(),[_,w]=n(null),k=u(),[S,C]=n(void 0),E=c(),{printingStatus:T}=(({layout:e,flags:o})=>{const[i,a]=n(null);return r((()=>new Promise((t=>{const n=new Set;o.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&e.images&&e.images.forEach((e=>{e.id&&n.add(e.id)})),a({resolve:(e,r)=>{e&&n.delete(e),(0===n.size||r)&&(a(null),t?.(e))}})}))),[]),t((()=>{let e;return i&&(e=setTimeout((()=>{i.resolve(void 0,!0)}),9e3)),()=>{e&&clearTimeout(e)}}),[i]),{printingStatus:i}})({layout:v,flags:g});t((()=>{const e=e=>{wF(y,e)};return x.on("onNodeDestroyed",e),()=>{x.removeListener("onNodeDestroyed",e)}}),[x,y]),t((()=>{v&&void 0===S&&(C(v.text||null),w(v?.text))}),[v,S]);const{edit:A}=F$({propertyPanelHandlerData:m,flags:g});t((()=>{(({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,interactionState:c,printingStatus:d,showMediaLibrary:f})=>{e.render(xc.jsx(j.StrictMode,{children:xc.jsx(B.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:a,lang:s,flags:l,theme:u,printingStatus:d,showMediaLibrary:f},children:xc.jsx(z$,{interactionState:c})})}))})({rootElement:h,layout:v,model:y,element:p,edit:A,initialData:S,emitter:x,lang:k.language(),flags:g,theme:E,interactionState:b,printingStatus:T,showMediaLibrary:f.anything?.sense?.showMediaLibrary})}),[v,h,y,p,A,p,S,x,g,E,b]),t((()=>{if(v){const e=v;e.text&&e.text!==_&&(w(e.text),x.emit("reloadData",e.text))}}),[v,_,x]),d((()=>({updateActiveState(e){e?m.setSelectedModelId(y?.id):y?.id===m.getSelectedModelId()&&m.setSelectedModelId(void 0)}})),[])},ext:{definition:{type:"items",component:"accordion",items:{data:I$,settings:D$}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}}}}export{B$ as default};