@nebula.js/sn-text 1.4.7 → 1.5.0

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.
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-text v1.4.7
2
+ * @nebula.js/sn-text v1.5.0
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-text"]=t(e.stardust)}(this,function(e){"use strict";function t(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 n={version:"1.4.7",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!1,images:[]},r=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 o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(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 a,s,l={},u={exports:{}},c={},d={exports:{}},f={};function p(){if(a)return f;a=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"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var x=y.prototype=new b;x.constructor=y,g(x,v.prototype),x.isPureReactComponent=!0;var _=Array.isArray,w=Object.prototype.hasOwnProperty,k={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)w.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:k.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 L(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,_(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),L(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+":",_(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=L(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=L(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 R(e,t,n){if(null==e)return e;var r=[],o=0;return L(e,r,"","",function(e){return t.call(n,e,o++)}),r}function M(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 N={current:null},O={transition:null},P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:O,ReactCurrentOwner:k};function I(){throw Error("act(...) is not supported in production builds of React.")}return f.Children={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(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}},f.Component=v,f.Fragment=n,f.Profiler=o,f.PureComponent=y,f.StrictMode=r,f.Suspense=u,f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,f.act=I,f.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=g({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=k.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)w.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}},f.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},f.createElement=C,f.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},f.createRef=function(){return{current:null}},f.forwardRef=function(e){return{$$typeof:l,render:e}},f.isValidElement=E,f.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},f.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},f.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},f.unstable_act=I,f.useCallback=function(e,t){return N.current.useCallback(e,t)},f.useContext=function(e){return N.current.useContext(e)},f.useDebugValue=function(){},f.useDeferredValue=function(e){return N.current.useDeferredValue(e)},f.useEffect=function(e,t){return N.current.useEffect(e,t)},f.useId=function(){return N.current.useId()},f.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},f.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},f.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},f.useMemo=function(e,t){return N.current.useMemo(e,t)},f.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},f.useRef=function(e){return N.current.useRef(e)},f.useState=function(e){return N.current.useState(e)},f.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},f.useTransition=function(){return N.current.useTransition()},f.version="18.3.1",f}function h(){return s||(s=1,d.exports=p()),d.exports}var g,m,v,b,y,x={exports:{}},_={};function w(){return m||(m=1,x.exports=(g||(g=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,g=!1,m="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(l,o)}o=n(u)}}function x(e){if(g=!1,y(e),!h)if(null!==n(l))h=!0,N(_);else{var t=n(u);null!==t&&O(x,t.startTime-e)}}function _(t,o){h=!1,g&&(g=!1,v(C),C=-1),p=!0;var i=f;try{for(y(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),y(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var m=n(u);null!==m&&O(x,m.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 L(){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 b)w=function(){b(L)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,M=R.port2;R.port1.onmessage=L,w=function(){M.postMessage(null)}}else w=function(){m(L,0)};function N(e){S=e,k||(k=!0,w())}function O(t,n){C=m(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,N(_))},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)&&(g?(v(C),C=-1):g=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,N(_))),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}}}}(_)),_)),x.exports}
7
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-text"]=t(e.stardust)}(this,function(e){"use strict";function t(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 n={version:"1.5.0",showTitles:!1,text:"",fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!0,images:[]},r=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 o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(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 a,s,l={},u={exports:{}},c={},d={exports:{}},f={};function p(){if(a)return f;a=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"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var x=y.prototype=new b;x.constructor=y,g(x,v.prototype),x.isPureReactComponent=!0;var _=Array.isArray,w=Object.prototype.hasOwnProperty,k={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)w.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:k.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 L(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,_(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),L(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+":",_(n))for(var u=0;u<n.length;u++){var c=i+A(s=n[u],u);l+=L(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=L(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 R(e,t,n){if(null==e)return e;var r=[],o=0;return L(e,r,"","",function(e){return t.call(n,e,o++)}),r}function M(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 N={current:null},O={transition:null},P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:O,ReactCurrentOwner:k};function I(){throw Error("act(...) is not supported in production builds of React.")}return f.Children={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(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}},f.Component=v,f.Fragment=n,f.Profiler=o,f.PureComponent=y,f.StrictMode=r,f.Suspense=u,f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,f.act=I,f.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=g({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=k.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)w.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}},f.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},f.createElement=C,f.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},f.createRef=function(){return{current:null}},f.forwardRef=function(e){return{$$typeof:l,render:e}},f.isValidElement=E,f.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},f.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},f.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},f.unstable_act=I,f.useCallback=function(e,t){return N.current.useCallback(e,t)},f.useContext=function(e){return N.current.useContext(e)},f.useDebugValue=function(){},f.useDeferredValue=function(e){return N.current.useDeferredValue(e)},f.useEffect=function(e,t){return N.current.useEffect(e,t)},f.useId=function(){return N.current.useId()},f.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},f.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},f.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},f.useMemo=function(e,t){return N.current.useMemo(e,t)},f.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},f.useRef=function(e){return N.current.useRef(e)},f.useState=function(e){return N.current.useState(e)},f.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},f.useTransition=function(){return N.current.useTransition()},f.version="18.3.1",f}function h(){return s||(s=1,d.exports=p()),d.exports}var g,m,v,b,y,x={exports:{}},_={};function w(){return m||(m=1,x.exports=(g||(g=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,g=!1,m="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(l,o)}o=n(u)}}function x(e){if(g=!1,y(e),!h)if(null!==n(l))h=!0,N(_);else{var t=n(u);null!==t&&O(x,t.startTime-e)}}function _(t,o){h=!1,g&&(g=!1,v(C),C=-1),p=!0;var i=f;try{for(y(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),y(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var m=n(u);null!==m&&O(x,m.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 L(){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 b)w=function(){b(L)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,M=R.port2;R.port1.onmessage=L,w=function(){M.postMessage(null)}}else w=function(){m(L,0)};function N(e){S=e,k||(k=!0,w())}function O(t,n){C=m(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,N(_))},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)&&(g?(v(C),C=-1):g=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,N(_))),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}}}}(_)),_)),x.exports}
8
8
  /**
9
9
  * @license React
10
10
  * react-dom.production.min.js
@@ -13,14 +13,14 @@
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 k(){if(v)return c;v=1;var e=h(),t=w();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]*$/,d={},f={};function p(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 g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new p(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new p(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new p(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){g[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new p(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new p(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new p(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=g.hasOwnProperty(t)?g[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(f,e)||!l.call(d,e)&&(u.test(e)?f[e]=!0:(d[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(m,b);g[t]=new p(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(m,b);g[t]=new p(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(m,b);g[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),A=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),I=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||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 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,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 W(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 $(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 S:return"Fragment";case k:return"Portal";case E:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case M:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case L: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:$(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return $(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 $(t);case 8:return t===C?"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 V(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 Y(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 Q(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 J(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)&&y(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 ge(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 me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(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 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 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 Le(){}var Re=!1;function Me(e,t,n){if(Re)return e(t,n);Re=!0;try{return Ae(e,t,n)}finally{Re=!1,(null!==ke||null!==Se)&&(Le(),Te())}}function Ne(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 Ie(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 ze=!1,De=null,je=!1,Fe=null,Be={onError:function(e){ze=!0,De=e}};function He(e,t,n,r,o,i,a,s,l){ze=!1,De=null,Ie.apply(Be,arguments)}function We(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 $e(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(We(e)!==e)throw Error(n(188))}function Ke(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=We(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 Ve=t.unstable_scheduleCallback,Ye=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Qe=t.unstable_requestPaint,Je=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&&0===(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 gt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function mt(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,wt,kt,St,Ct,Et=!1,Tt=[],At=null,Lt=null,Rt=null,Mt=new Map,Nt=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 It(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function zt(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=yo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(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!==Lt&&jt(Lt)&&(Lt=null),null!==Rt&&jt(Rt)&&(Rt=null),Mt.forEach(Ft),Nt.forEach(Ft)}function Ht(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Wt(e){function t(t){return Ht(t,e)}if(0<Tt.length){Ht(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Ht(At,e),null!==Lt&&Ht(Lt,e),null!==Rt&&Ht(Rt,e),Mt.forEach(t),Nt.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 $t=x.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var o=yt,i=$t.transition;$t.transition=null;try{yt=1,Vt(e,t,n,r)}finally{yt=o,$t.transition=i}}function Gt(e,t,n,r){var o=yt,i=$t.transition;$t.transition=null;try{yt=4,Vt(e,t,n,r)}finally{yt=o,$t.transition=i}}function Vt(e,t,n,r){if(Ut){var o=qt(e,t,n,r);if(null===o)Ur(e,t,r,Yt,n),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=zt(At,e,t,n,r,o),!0;case"dragenter":return Lt=zt(Lt,e,t,n,r,o),!0;case"mouseover":return Rt=zt(Rt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Mt.set(i,zt(Mt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Nt.set(i,zt(Nt.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))&&Ur(e,t,r,Yt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Yt=null;function qt(e,t,n,r){if(Yt=null,null!==(e=yo(e=_e(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(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 Yt=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(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 Jt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Jt?Jt.value:Jt.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),gn=on(j({},pn,{dataTransfer:0})),mn=on(j({},dn,{relatedTarget:0})),vn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),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})),Ln=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Rn=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=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}),Nn=on(Mn),On=[9,13,27,32],Pn=s&&"CompositionEvent"in window,In=null;s&&"documentMode"in document&&(In=document.documentMode);var zn=s&&"TextEvent"in window&&!In,Dn=s&&(!Pn||In&&8<In&&11>=In),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 Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var $n={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?!!$n[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,Vn=null;function Yn(e){jr(e,0)}function qn(e){if(Y(_o(e)))return e}function Qn(e,t){if("change"===e)return t}var Jn=!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;Jn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Vn=Gn=null)}function nr(e){if("value"===e.propertyName&&qn(Vn)){var t=[];Kn(t,Vn,e,_e(e)),Me(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Vn)}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 gr=s&&"documentMode"in document&&11>=document.documentMode,mr=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==mr||mr!==q(r)||("selectionStart"in(r=mr)&&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&&lr(br,r)||(br=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}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"),Lr=Cr("transitionend"),Rr=new Map,Mr="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 Nr(e,t){Rr.set(e,t),i(t,[e])}for(var Or=0;Or<Mr.length;Or++){var Pr=Mr[Or];Nr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Nr(Er,"onAnimationEnd"),Nr(Tr,"onAnimationIteration"),Nr(Ar,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Lr,"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(" "),zr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));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(He.apply(this,arguments),ze){if(!ze)throw Error(n(198));var c=De;ze=!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[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Hr]){e[Hr]=!0,r.forEach(function(t){"selectionchange"!==t&&(zr.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 $r(e,t,n,r){switch(Qt(t)){case 1:var o=Kt;break;case 4:o=Gt;break;default:o=Vt}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=yo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Me(function(){var r=i,o=_e(n),a=[];e:{var s=Rr.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=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;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=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ln;break;case Er:case Tr:case Ar:l=vn;break;case Lr:l=Rn;break;case"scroll":l=fn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=yn;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 g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Ne(h,f))&&c.push(Kr(h,g,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)||!yo(u)&&!u[go])&&(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)?yo(u):null)&&(u!==(d=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:_o(l),p=null==u?s:_o(u),(s=new c(g,h+"leave",l,n,o)).target=d,s.relatedTarget=p,g=null,yo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,g=c),d=g,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Vr(p))h++;for(p=0,g=f;g;g=Vr(g))p++;for(;0<h-p;)c=Vr(c),h--;for(;0<p-h;)f=Vr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Vr(c),f=Vr(f)}c=null}else c=null;null!==l&&Yr(a,s,l,c,!1),null!==u&&null!==d&&Yr(a,d,u,c,!0)}if("select"===(l=(s=r?_o(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Qn;else if(Un(s))if(Jn)m=ar;else{m=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ir);switch(m&&(m=m(e,r))?Kn(a,m,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)&&(mr=v,vr=r,br=null);break;case"focusout":br=vr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,o);break;case"selectionchange":if(gr)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 Wn?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Dn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Wn&&(b=en()):(Xt="value"in(Jt=o)?Jt.value:Jt.textContent,Wn=!0)),0<(v=Gr(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=zn?function(e,t){switch(e){case"compositionend":return Hn(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(Wn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Zt=Xt=Jt=null,Wn=!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=b))}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=Ne(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Ne(e,t))&&r.push(Kr(e,i,o))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(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=Ne(n,i))&&a.unshift(Kr(n,l,s)):o||null!=(l=Ne(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,Qr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Qr,"")}function Xr(e,t,r){if(t=Jr(t),Jr(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 Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(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,go="__reactContainer$"+fo,mo="__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[go]||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[go])||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={},Lo=Co(Ao),Ro=Co(!1),Mo=Ao;function No(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(Ro),Eo(Lo)}function Io(e,t,r){if(Lo.current!==Ao)throw Error(n(168));To(Lo,t),To(Ro,r)}function zo(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,Mo=Lo.current,To(Lo,e),To(Ro,Ro.current),!0}function jo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=zo(e,t,Mo),o.__reactInternalMemoizedMergedChildContext=e,Eo(Ro),Eo(Lo),To(Lo,e)):Eo(Ro),To(Ro,r)}var Fo=null,Bo=!1,Ho=!1;function Wo(e){null===Fo?Fo=[e]:Fo.push(e)}function $o(){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)),Ve(Ze,$o),t}finally{yt=t,Ho=!1}}return null}var Uo=[],Ko=0,Go=null,Vo=0,Yo=[],qo=0,Qo=null,Jo=1,Xo="";function Zo(e,t){Uo[Ko++]=Vo,Uo[Ko++]=Go,Go=e,Vo=t}function ei(e,t,n){Yo[qo++]=Jo,Yo[qo++]=Xo,Yo[qo++]=Qo,Qo=e;var r=Jo;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,Jo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Jo=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,Vo=Uo[--Ko],Uo[Ko]=null;for(;e===Qo;)Qo=Yo[--qo],Yo[qo]=null,Xo=Yo[--qo],Yo[qo]=null,Jo=Yo[--qo],Yo[qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Mu(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!==Qo?{id:Jo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mu(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 gi(e){null===ai?ai=[e]:ai.push(e)}var mi=x.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=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===S?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=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=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=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case k:return(t=ju(t,e.mode,n)).return=e,t;case O:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||z(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:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?u(e,t,n,r):null;case k: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)||z(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 l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k: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)||z(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function g(n,i,s,l){for(var u=null,c=null,d=i,g=i=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=p(n,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,g),null===c?u=v:c.sibling=v,c=v,d=m}if(g===s.length)return r(n,d),ii&&Zo(n,g),u;if(null===d){for(;g<s.length;g++)null!==(d=f(n,s[g],l))&&(i=a(d,i,g),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(n,g),u}for(d=o(n,d);g<s.length;g++)null!==(m=h(d,n,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=a(m,i,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(n,e)}),ii&&Zo(n,g),u}function m(i,s,l,u){var c=z(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,g=s,m=s=0,v=null,b=l.next();null!==g&&!b.done;m++,b=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var y=p(i,g,b.value,u);if(null===y){null===g&&(g=v);break}e&&g&&null===y.alternate&&t(i,g),s=a(y,s,m),null===d?c=y:d.sibling=y,d=y,g=v}if(b.done)return r(i,g),ii&&Zo(i,m),c;if(null===g){for(;!b.done;m++,b=l.next())null!==(b=f(i,b.value,u))&&(s=a(b,s,m),null===d?c=b:d.sibling=b,d=b);return ii&&Zo(i,m),c}for(g=o(i,g);!b.done;m++,b=l.next())null!==(b=h(g,i,m,b.value,u))&&(e&&null!==b.alternate&&g.delete(null===b.key?m:b.key),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b);return e&&g.forEach(function(e){return t(i,e)}),ii&&Zo(i,m),c}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===S){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===S?((o=Iu(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 k: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 O:return e(n,o,(c=a._init)(a._payload),l)}if(ne(a))return g(n,o,a,l);if(z(a))return m(n,o,a,l);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=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 Li(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 Ri(e,t){Si=e,Ei=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Mi(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 Ni=null;function Oi(e){null===Ni?Ni=[e]:Ni.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,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 zi=!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,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(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 Wi(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 $i(e,t,n,r){var o=e.updateQueue;zi=!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,g=s;switch(f=t,p=n,g.tag){case 1:if("function"==typeof(h=g.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=g.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:zi=!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);zl|=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),Vi=Co(Ki),Yi=Co(Ki);function qi(e){if(e===Ki)throw Error(n(174));return e}function Qi(e,t){switch(To(Yi,t),To(Vi,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 Ji(){Eo(Gi),Eo(Vi),Eo(Yi)}function Xi(e){qi(Yi.current);var t=qi(Gi.current),n=ue(t,e.type);t!==n&&(To(Vi,e),To(Gi,n))}function Zi(e){Vi.current===e&&(Eo(Gi),Eo(Vi))}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=x.ReactCurrentDispatcher,ia=x.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(n(321))}function ga(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 ma(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 ba(){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 ya(){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=ya(),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,zl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,sr(o,t.memoizedState)||(ys=!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,zl|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(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 s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(ys=!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=ya(),i=t(),a=!sr(o.memoizedState,i);if(a&&(o.memoizedState=i,ys=!0),o=o.queue,za(Ta.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(r.flags|=2048,Ma(9,Ea.bind(null,r,o,i,t),void 0,null),null===Ll)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)&&La(e)}function Ta(e,t,n){return n(function(){Aa(t)&&La(e)})}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function La(e){var t=Ii(e,1);null!==t&&nu(t,e,1,-1)}function Ra(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=Ya.bind(null,sa,e),[t.memoizedState,e]}function Ma(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 Na(){return ya().memoizedState}function Oa(e,t,n,r){var o=ba();sa.flags|=e,o.memoizedState=Ma(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!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Ma(t,n,i,r))}sa.flags|=e,o.memoizedState=Ma(1|t,n,i,r)}function Ia(e,t){return Oa(8390656,8,e,t)}function za(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 Ha(){}function Wa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&aa?(sr(n,t)||(n=gt(),sa.lanes|=n,zl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n)}function Ka(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 Ga(){return ya().memoizedState}function Va(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()),Ja(n,t,r)}}function Ya(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,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()),Ja(n,t,r))}}function qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}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 Ja(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Xa={readContext:Mi,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:Mi,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Mi,useEffect:Ia,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=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=Va.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Ra,useDebugValue:Ha,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Ra(!1),t=e[0];return e=Ka.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=sa,i=ba();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ll)throw Error(n(349));30&aa||Ca(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ia(Ta.bind(null,o,a,e),[e]),o.flags|=2048,Ma(9,Ea.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ba(),t=Ll.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Jo&~(1<<32-at(Jo)-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:Mi,useCallback:Wa,useContext:Mi,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:$a,useReducer:_a,useRef:Na,useState:function(){return _a(xa)},useDebugValue:Ha,useDeferredValue:function(e){return Ua(ya(),la.memoizedState,e)},useTransition:function(){return[_a(xa)[0],ya().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Mi,useCallback:Wa,useContext:Mi,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:$a,useReducer:wa,useRef:Na,useState:function(){return wa(xa)},useDebugValue:Ha,useDeferredValue:function(e){var t=ya();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ya().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)&&We(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 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=Mi(i):(o=Oo(t)?Mo:Lo.current,i=(r=null!=(r=t.contextTypes))?No(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=Mi(i):(i=Oo(t)?Mo:Lo.current,o.context=No(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),$i(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+=W(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 gs(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 ms(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 bs=x.ReactCurrentOwner,ys=!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 Ri(t,o),r=ma(e,t,n,r,i,o),n=va(),null===e||ys?(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||Nu(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,0===(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(ys=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);131072&e.flags&&(ys=!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,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ol,Nl),Nl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Nl),Nl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Nl),Nl|=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)?Mo:Lo.current;return i=No(t,i),Ri(t,o),n=ma(e,t,n,r,i,o),r=va(),null===e||ys?(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(Ri(t,o),null===t.stateNode)$s(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=Mi(u):u=No(t,u=Oo(n)?Mo:Lo.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),zi=!1;var f=t.memoizedState;a.state=f,$i(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Ro.current||zi?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=zi||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=Mi(l):l=No(t,l=Oo(n)?Mo:Lo.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),zi=!1,f=t.memoizedState,a.state=f,$i(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Ro.current||zi?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=zi||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,bs.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 Ls(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 Rs(e,t,n,r,o){return hi(),gi(o),t.flags|=256,xs(e,t,n,r),t.child}var Ms,Ns,Os,Ps,Is={dehydrated:null,treeContext:null,retryLane:0};function zs(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=zu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Iu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=zs(r),t.memoizedState=Is,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=zu({mode:"visible",children:o.children},i,0,null),(a=Iu(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=zs(s),t.memoizedState=Is,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=0!==(s&e.childLanes),ys||l){if(null!==(o=Ll)){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=0!==(i&(o.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ii(e,i),nu(o,e,i,-1))}return gu(),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&&(Yo[qo++]=Jo,Yo[qo++]=Xo,Yo[qo++]=Qo,Jo=e.id,Xo=e.overflow,Qo=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=Iu(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)?zs(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Is,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=zu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&gi(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),Li(e.return,t,n)}function Hs(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 Ws(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),Hs(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}Hs(t,!0,n,null,i);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function $s(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),zl|=t.lanes,0===(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 Vs(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,Ji(),Eo(Ro),Eo(Lo),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))),Ns(e,t),Gs(t),null;case 5:Zi(t);var a=qi(Yi.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<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":J(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 be(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":V(i),ee(i,s,!0);break;case"textarea":V(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,Ms(e,t,!1,!1),t.stateNode=e;e:{switch(l=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":J(e,i),a=Q(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 be(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?me(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&&y(e,s,c,l))}switch(r){case"input":V(e),ee(e,i,!1);break;case"textarea":V(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(Yi.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):gu())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Ji(),Ns(e,t),null===e&&Wr(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&&Je()>Wl&&(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*Je()-s.renderingStartTime>Wl&&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=Je(),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&Nl)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ys(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 Ji(),Eo(Ro),Eo(Lo),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 Ji(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ms=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}},Ns=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=Q(e,i),r=Q(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 be(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,Qs=!1,Js="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[mo],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 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:Qs||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),Wt(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(!Qs&&(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(!Qs&&(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?(Qs=(r=Qs)||null!==n.memoizedState,fl(e,t,n),Qs=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 Js),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gl(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;)ml(t,e),t=t.sibling}function ml(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(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:gl(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return);break;case 5:if(gl(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),ye(l,s);var c=ye(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?me(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):y(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(gl(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(gl(t,e),vl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(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||(Hl=Je())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Qs=(c=Qs)||d,gl(t,e),Qs=c):gl(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 g=p.stateNode;if("function"==typeof g.componentWillUnmount){o=p,r=p.return;try{t=o,g.props=t.memoizedProps,g.state=t.memoizedState,g.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=ge("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:gl(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 bl(e,t,n){Xs=e,yl(e)}function yl(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||Qs;s=qs;var u=Qs;if(qs=a,(Qs=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,yl(i),i=i.sibling;Xs=o,qs=s,Qs=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:Qs||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Qs)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&&Wt(f)}}}break;default:throw Error(n(163))}Qs||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=x.ReactCurrentDispatcher,El=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,Al=0,Ll=null,Rl=null,Ml=0,Nl=0,Ol=Co(0),Pl=0,Il=null,zl=0,Dl=0,jl=0,Fl=null,Bl=null,Hl=0,Wl=1/0,$l=null,Ul=!1,Kl=null,Gl=null,Vl=!1,Yl=null,ql=0,Ql=0,Jl=null,Xl=-1,Zl=0;function eu(){return 6&Al?Je():-1!==Xl?Xl:Xl=Je()}function tu(e){return 1&e.mode?2&Al&&0!==Ml?Ml&-Ml:null!==mi.transition?(0===Zl&&(Zl=gt()),Zl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function nu(e,t,r,o){if(50<Ql)throw Ql=0,Jl=null,Error(n(185));vt(e,r,o),2&Al&&e===Ll||(e===Ll&&(!(2&Al)&&(Dl|=r),4===Pl&&su(e,Ml)),ru(e,o),1===r&&0===Al&&!(1&t.mode)&&(Wl=Je()+500,Bo&&$o()))}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?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Ll?Ml:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Bo=!0,Wo(e)}(lu.bind(null,e)):Wo(lu.bind(null,e)),ao(function(){!(6&Al)&&$o()}),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=Lu(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===Ll?Ml:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=mu(e,o);else{t=o;var i=Al;Al|=2;var a=hu();for(Ll===e&&Ml===t||($l=null,Wl=Je()+500,fu(e,t));;)try{bu();break}catch(t){pu(e,t)}Ti(),Cl.current=a,Al=i,null!==Rl?t=0:(Ll=null,Ml=0,t=Pl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=iu(e,i))),1===t)throw r=Il,fu(e,0),su(e,o),ru(e,Je()),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=mu(e,o),2===t&&(a=ht(e),0!==a&&(o=a,t=iu(e,a))),1!==t)))throw r=Il,fu(e,0),su(e,o),ru(e,Je()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:_u(e,Bl,$l);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=Hl+500-Je())){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,$l),t);break}_u(e,Bl,$l);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=Je()-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,$l),o);break}_u(e,Bl,$l);break;default:throw Error(n(329))}}}return ru(e,Je()),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=mu(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,Je()),null;var r=mu(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=Il,fu(e,0),su(e,t),ru(e,Je()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Bl,$l),ru(e,Je()),null}function uu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Wl=Je()+500,Bo&&$o())}}function cu(e){null!==Yl&&0===Yl.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=Tl.transition,r=yt;try{if(Tl.transition=null,yt=1,e)return e()}finally{yt=r,Tl.transition=n,!(6&(Al=t))&&$o()}}function du(){Nl=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!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:Ji(),Eo(Ro),Eo(Lo),ra();break;case 5:Zi(r);break;case 4:Ji();break;case 13:case 19:Eo(ea);break;case 10:Ai(r.type._context);break;case 22:case 23:du()}n=n.return}if(Ll=e,Rl=e=Ou(e.current,null),Ml=Nl=t,Pl=0,Il=null,jl=Dl=zl=0,Bl=Fl=null,null!==Ni){for(t=0;t<Ni.length;t++)if(null!==(r=(n=Ni[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}Ni=null}return e}function pu(e,t){for(;;){var r=Rl;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,Il=t,Rl=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Ml,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=ms(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&gs(a,c,t),u=c;var g=(t=h).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(!(1&t)){gs(a,c,t),gu();break e}u=Error(n(426))}else if(ii&&1&l.mode){var v=ms(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),gi(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,Wi(a,ps(0,u,t));break e;case 1:l=u;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Gl&&Gl.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Rl===r&&null!==r&&(Rl=r=r.return);continue}break}}function hu(){var e=Cl.current;return Cl.current=Xa,null===e?Xa:e}function gu(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Ll||!(268435455&zl)&&!(268435455&Dl)||su(Ll,Ml)}function mu(e,t){var r=Al;Al|=2;var o=hu();for(Ll===e&&Ml===t||($l=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(Ti(),Al=r,Cl.current=o,null!==Rl)throw Error(n(261));return Ll=null,Ml=0,Pl}function vu(){for(;null!==Rl;)yu(Rl)}function bu(){for(;null!==Rl&&!qe();)yu(Rl)}function yu(e){var t=kl(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?xu(e):Rl=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=Ys(n,t)))return n.flags&=32767,void(Rl=n);if(null===e)return Pl=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Vs(n,t,Nl)))return void(Rl=n);if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Pl&&(Pl=5)}function _u(e,t,r){var o=yt,i=Tl.transition;try{Tl.transition=null,yt=1,function(e,t,r,o){do{wu()}while(null!==Yl);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===Ll&&(Rl=Ll=null,Ml=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Vl||(Vl=!0,Lu(tt,function(){return wu(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=yt;yt=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 g=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!==g){var m=g.memoizedProps,v=g.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),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){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}g=tl,tl=!1}(e,r),ml(r,e),hr(to),Ut=!!eo,to=eo=null,e.current=r,bl(r),Qe(),Al=l,yt=s,Tl.transition=a}else e.current=r;if(Vl&&(Vl=!1,Yl=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,Je()),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===Jl?Ql++:(Ql=0,Jl=e):Ql=0,$o()}(e,t,r,o)}finally{Tl.transition=i,yt=o}return null}function wu(){if(null!==Yl){var e=xt(ql),t=Tl.transition,r=yt;try{if(Tl.transition=null,yt=16>e?16:e,null===Yl)var o=!1;else{if(e=Yl,Yl=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 g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}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 b=a.sibling;if(null!==b){b.return=a.return,Xs=b;break e}Xs=a.return}}var y=e.current;for(Xs=y;null!==Xs;){var x=(s=Xs).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Xs=x;else e:for(s=y;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,$o(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{yt=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,Ll===e&&(Ml&n)===n&&(4===Pl||3===Pl&&(130023424&Ml)===Ml&&500>Je()-Hl?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=Ii(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 Lu(e,t){return Ve(e,t)}function Ru(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 Mu(e,t,n,r){return new Ru(e,t,n,r)}function Nu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Mu(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)Nu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Iu(r.children,i,a,t);case C:s=8,i|=8;break;case E:return(e=Mu(12,r,t,2|i)).elementType=E,e.lanes=a,e;case R:return(e=Mu(13,r,t,i)).elementType=R,e.lanes=a,e;case M:return(e=Mu(19,r,t,i)).elementType=M,e.lanes=a,e;case P:return zu(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case A:s=9;break e;case L:s=11;break e;case N:s=14;break e;case O:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Mu(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Iu(e,t,n,r){return(e=Mu(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=Mu(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Mu(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Mu(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=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(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=Mu(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 Hu(e){if(!e)return Ao;e:{if(We(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 zo(e,r,t)}return t}function Wu(e,t,n,r,o,i,a,s,l){return(e=Bu(n,r,!0,e,0,i,0,s,l)).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 $u(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 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||Ro.current)ys=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Ls(t),hi();break;case 5:Xi(t);break;case 1:Oo(t.type)&&Do(t);break;case 4:Qi(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):0!==(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=0!==(n&t.childLanes),128&e.flags){if(r)return Ws(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);ys=!!(131072&e.flags)}else ys=!1,ii&&1048576&t.flags&&ei(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;$s(e,t),e=t.pendingProps;var i=No(t,Lo.current);Ri(t,r),i=ma(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($s(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Nu(e)?1:0;if(null!=e){if((e=e.$$typeof)===L)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(Ls(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,ji(e,t),$i(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=Rs(e,t,o,r,i=us(Error(n(423)),t));break e}if(o!==i){t=Rs(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 Qi(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&&!Ro.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),Li(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),Li(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,Ri(t,r),o=o(i=Mi(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),$s(e,t),t.tag=1,Oo(o)?(e=!0,Do(t)):e=!1,Ri(t,r),as(t,o,i),ls(t,o,i,r),As(null,t,o,!0,e,r);case 19:return Ws(e,t,r);case 22:return Ss(e,t,r)}throw Error(n(156,t.tag))};var Vu="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(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 Ju(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)}}$u(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=Wu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[go]=a.current,Wr(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[go]=l.current,Wr(8===e.nodeType?e.parentNode:e),cu(function(){$u(t,l,n,r)}),l}(n,t,e,o,r);return Uu(a)}qu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));$u(e,t,null,null)},qu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){$u(null,e,null,null)}),t[go]=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&&(bt(t,1|n),ru(t,Je()),!(6&Al)&&(Wl=Je()+500,$o()))}break;case 13:cu(function(){var t=Ii(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=Ii(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=Ii(e,t);if(null!==n)nu(n,e,t,eu());Gu(e,t)}},St=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=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));Y(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,Le=cu;var ec={usingClientEntryPoint:!1,Events:[xo,_o,wo,Ee,Te,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:x.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 c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,c.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:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},c.createRoot=function(e,t){if(!Qu(e))throw Error(n(299));var r=!1,o="",i=Vu;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[go]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Yu(t)},c.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},c.flushSync=function(e){return cu(e)},c.hydrate=function(e,t,r){if(!Ju(t))throw Error(n(200));return Zu(null,e,t,!0,r)},c.hydrateRoot=function(e,t,r){if(!Qu(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=Vu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Wu(t,null,e,1,null!=r?r:null,i,0,a,s),e[go]=t.current,Wr(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)},c.render=function(e,t,r){if(!Ju(t))throw Error(n(200));return Zu(null,e,t,!1,r)},c.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(n(40));return!!e._reactRootContainer&&(cu(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[go]=null})}),!0)},c.unstable_batchedUpdates=uu,c.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Ju(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Zu(e,t,r,!1,o)},c.version="18.3.1-next-f1338f8080-20240426",c}function S(){if(b)return u.exports;return b=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)}}(),u.exports=k(),u.exports}var C=function(){if(y)return l;y=1;var e=S();return l.createRoot=e.createRoot,l.hydrateRoot=e.hydrateRoot,l}();var E=h(),T=o(E),A=t({__proto__:null,default:T},[E]);const L=E.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 R(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function M(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const N="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,O=N&&"documentMode"in document?document.documentMode:null,P=N&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),I=N&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),z=!(!N||!("InputEvent"in window)||O)&&"getTargetRanges"in new window.InputEvent("input"),D=N&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),j=N&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,F=N&&/Android/.test(navigator.userAgent),B=N&&/^(?=.*Chrome).*/i.test(navigator.userAgent),H=N&&F&&B,W=N&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&P&&!B,$=0,U=1,K=2,G=1,V=2,Y=3,q=4,Q=5,J=6,X=D||j||W?" ":"​",Z="\n\n",ee=I?" ":X,te={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},ne={directionless:1,unmergeable:2},re={center:2,end:6,justify:4,left:1,right:3,start:5},oe={[V]:"center",[J]:"end",[q]:"justify",[G]:"left",[Y]:"right",[Q]:"start"},ie={normal:0,segmented:2,token:1},ae={[$]:"normal",[K]:"segmented",[U]:"token"},se="$config";function le(e,t,n,r,o,i){let a=e.getFirstChild();for(;null!==a;){const e=a.__key;a.__parent===t&&(To(a)&&le(a,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),a=a.getNextSibling()}}let ue=!1,ce=0;function de(e){ce=e.timeStamp}function fe(e,t,n){const r="BR"===e.nodeName,o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&void 0!==bi(e,n)}function pe(e,t,n){const r=oa(Ji(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const a=e.nodeValue;null!==a&&Mi(t,a,o,i,!1)}function he(e,t,n){if(Er(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return ai(t)&&n.isAttached()}function ge(e,t,n,r){for(let o=e;o&&!ba(o);o=Vi(o)){const e=bi(o,t);if(void 0!==e){const t=mi(e,n);if(t)return Ro(t)||!aa(o)?void 0:[o,t]}else if(o===r)return[r,ki(n)]}}function me(e,t,n){ue=!0;const r=performance.now()-ce>100;try{ko(e,()=>{const o=$r()||function(e){return e.getEditorState().read(()=>{const e=$r();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=ge(p,e,s,a);if(!h)continue;const[g,m]=h;if("characterData"===f)r&&mr(m)&&ai(p)&&he(o,p,m)&&pe(p,m,e);else if("childList"===f){u=!0;const t=d.addedNodes;for(let n=0;n<t.length;n++){const r=t[n],o=vi(r),i=r.parentNode;if(null!=i&&r!==l&&null===o&&!fe(r,i,e)){if(I){const e=(aa(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];(fe(r,p,e)||l===r)&&(p.appendChild(r),t++)}r!==t&&i.set(g,m)}}}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||fe(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(u&&Si(o),I&&Ui(e)&&o.insertRawText(c))})}finally{ue=!1}}function ve(e){const t=e._observer;null!==t&&me(e,t.takeRecords(),t)}function be(e){!function(e){0===ce&&Ji(e).addEventListener("textInput",de,!0)}(e),e._observer=new MutationObserver((t,n)=>{me(e,t,n)})}function ye(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}=xa(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}}let xe=class e{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);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 we(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;const{sharedNodeState:n,unknownState:r}=this,o=new Map(this.knownState);return new e(t,n,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}(n.sharedConfigMap,o,r),o,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=we(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 _e(e){return e.__state?e.__state.sharedNodeState:qo(fa(),e.getType()).sharedNodeState}function we(e){if(e)for(const t in e)return e}function ke(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 Se(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)&&(e.add(t),n!==(o?o[t]:void 0)))return!0;return!1}function Ce(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Ee(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&&ke(n,e,t)||t&&ke(n,t,e)||e&&Se(n,e,t)||t&&Se(n,t,e))}(l,u))}function Te(e,t){const n=e.mergeWithSibling(t),r=co()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Ae(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&mr(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(Ee(t,r)){r=Te(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&mr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Ee(r,n)){r=Te(r,n);break}break}n.remove()}}else r.remove()}function Le(e){return Re(e.anchor),Re(e.focus),e}function Re(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),mr(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!To(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Me,Ne,Oe,Pe,Ie,ze,De,je,Fe,Be,He="",We=null,$e=null,Ue=!1,Ke=!1;function Ge(e,t){const n=De.get(e);if(null!==t){const n=lt(e);n.parentNode===t&&t.removeChild(n)}if(je.has(e)||Ne._keyToDOMMap.delete(e),To(n)){const e=rt(n,De);Ve(e,0,e.length-1,null)}void 0!==n&&Bi(Be,Oe,Pe,n,"destroyed")}function Ve(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&Ge(t,r)}}function Ye(e,t){e.setProperty("text-align",t)}const qe="40px";function Qe(e,t){const n=Me.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")||qe;e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${r})`)}function Je(e,t){const n=e.style;0===t?Ye(n,""):1===t?Ye(n,"left"):2===t?Ye(n,"center"):3===t?Ye(n,"right"):4===t?Ye(n,"justify"):5===t?Ye(n,"start"):6===t&&Ye(n,"end")}function Xe(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(No(e))return null;const n=e.getParentOrThrow();return No(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function Ze(e,t){const n=je.get(e);void 0===n&&R(60);const r=n.createDOM(Me,Ne);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){e[`__lexicalKey_${t._key}`]=n})(t,n,e),r.set(e,t)}(e,r,Ne),mr(n)?r.setAttribute("data-lexical-text","true"):Ro(n)&&r.setAttribute("data-lexical-decorator","true"),To(n)){const e=n.__indent,t=n.__size;if(Xe(r,n),0!==e&&Qe(r,e),0!==t){const e=t-1;et(rt(n,je),n,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&&Je(r,o),n.isInline()||nt(null,n,r)}else{const t=n.getTextContent();if(Ro(n)){const t=n.decorate(Ne,Me);null!==t&&it(e,t),r.contentEditable="false"}He+=t}return null!==t&&t.insertChild(r),Bi(Be,Oe,Pe,n,"created"),r}function et(e,t,n,r,o){const i=He;He="";let a=n;for(;a<=r;++a){Ze(e[a],o);const t=je.get(e[a]);null!==t&&mr(t)?null===We&&(We=t.getFormat(),$e=t.getStyle()):To(t)&&a<r&&!t.isInline()&&(He+=Z)}o.element.__lexicalTextContent=He,He=i+He}function tt(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return Xn(e)?"line-break":Ro(e)&&e.isInline()?"decorator":null}return"empty"}return null}function nt(e,t,n){const r=tt(e,De),o=tt(t,je);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function rt(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&R(101),n.push(r),r=e.__next}return n}function ot(e,t){const n=De.get(e);let r=je.get(e);void 0!==n&&void 0!==r||R(61);const o=Ue||ze.has(e)||Ie.has(e),i=Gi(Ne,e);if(n===r&&!o){let e;if(To(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return He+=e,i}if(n!==r&&o&&Bi(Be,Oe,Pe,r,"updated"),r.updateDOM(n,i,Me)){const n=Ze(e,null);return null===t&&R(62),t.replaceChild(n,i),Ge(e,null),n}if(To(n)){To(r)||R(334,e);const t=r.__indent;(Ue||t!==n.__indent)&&Qe(i,t);const a=r.__format;if((Ue||a!==n.__format)&&Je(i,a),o)(function(e,t,n){var r;We=null,$e=null,function(e,t,n){const r=He,o=e.__size,i=t.__size;He="";const a=n.element;if(1===o&&1===i){const n=e.__first,o=t.__first;if(n===o)ot(n,a);else{const e=lt(n),t=Ze(o,null);try{a.replaceChild(t,e)}catch(r){if("object"==typeof r&&null!=r){const i=`${r.toString()} Parent: ${a.tagName}, new child: {tag: ${t.tagName} key: ${o}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw r}Ge(n,null)}const i=je.get(o);mr(i)&&null===We&&(We=i.getFormat(),$e=i.getStyle())}else{const r=rt(e,De),s=rt(t,je);if(r.length!==o&&R(227),s.length!==i&&R(228),0===o)0!==i&&et(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;Ve(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=at(ot(r,i.element)),d++,f++;else{if(void 0===u&&(u=st(n,f)),void 0===l)l=st(t,d);else if(!l.has(e)){d++;continue}if(!u.has(e)){c=at(lt(e)),Ge(e,i.element),d++,l.delete(e);continue}if(l.has(r)){const e=Gi(Ne,r);e!==c&&i.withBefore(c).insertChild(e),c=at(ot(r,i.element)),d++,f++}else Ze(r,i.withBefore(c)),f++}const o=je.get(r);null!==o&&mr(o)?null===We&&(We=o.getFormat(),$e=o.getStyle()):To(o)&&f<=s&&!o.isInline()&&(He+=Z)}const p=d>a,h=f>s;if(p&&!h){const e=n[s+1],t=void 0===e?null:Ne.getElementByKey(e);et(n,0,f,s,i.withBefore(t))}else h&&!p&&Ve(t,d,a,i.element)}(0,r,s,o,i,n)}a.__lexicalTextContent=He,He=r+He}(e,t,t.getDOMSlot(n)),r=t,null==We||We===r.__textFormat||Ke||r.setTextFormat(We),function(e){null==$e||$e===e.__textStyle||Ke||e.setTextStyle($e)}(t)})(n,r,i),No(r)||r.isInline()||nt(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),He+=t}if((Ue||r.__dir!==n.__dir)&&(Xe(i,r),No(r)&&!Ue))for(const e of r.getChildren())To(e)&&Xe(Gi(Ne,e.getKey()),e)}else{const t=r.getTextContent();if(Ro(r)){const t=r.decorate(Ne,Me);null!==t&&it(e,t)}He+=t}if(!Ke&&No(r)&&r.__cachedText!==He){const e=r.getWritable();e.__cachedText=He,r=e}return i}function it(e,t){let n=Ne._pendingDecorators;const r=Ne._decorators;if(null===n){if(r[e]===t)return;n=xi(Ne)}n[e]=t}function at(e){let t=e.nextSibling;return null!==t&&t===Ne._blockCursorElement&&(t=t.nextSibling),t}function st(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function lt(e){const t=Fe.get(e);return void 0===t&&R(75,e),t}function ut(e){return{type:e}}const ct=ut("SELECTION_CHANGE_COMMAND"),dt=ut("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),ft=ut("CLICK_COMMAND"),pt=ut("BEFORE_INPUT_COMMAND"),ht=ut("INPUT_COMMAND"),gt=ut("COMPOSITION_START_COMMAND"),mt=ut("COMPOSITION_END_COMMAND"),vt=ut("DELETE_CHARACTER_COMMAND"),bt=ut("INSERT_LINE_BREAK_COMMAND"),yt=ut("INSERT_PARAGRAPH_COMMAND"),xt=ut("CONTROLLED_TEXT_INSERTION_COMMAND"),_t=ut("PASTE_COMMAND"),wt=ut("REMOVE_TEXT_COMMAND"),kt=ut("DELETE_WORD_COMMAND"),St=ut("DELETE_LINE_COMMAND"),Ct=ut("FORMAT_TEXT_COMMAND"),Et=ut("UNDO_COMMAND"),Tt=ut("REDO_COMMAND"),At=ut("KEYDOWN_COMMAND"),Lt=ut("KEY_ARROW_RIGHT_COMMAND"),Rt=ut("MOVE_TO_END"),Mt=ut("KEY_ARROW_LEFT_COMMAND"),Nt=ut("MOVE_TO_START"),Ot=ut("KEY_ARROW_UP_COMMAND"),Pt=ut("KEY_ARROW_DOWN_COMMAND"),It=ut("KEY_ENTER_COMMAND"),zt=ut("KEY_SPACE_COMMAND"),Dt=ut("KEY_BACKSPACE_COMMAND"),jt=ut("KEY_ESCAPE_COMMAND"),Ft=ut("KEY_DELETE_COMMAND"),Bt=ut("KEY_TAB_COMMAND"),Ht=ut("INSERT_TAB_COMMAND"),Wt=ut("INDENT_CONTENT_COMMAND"),$t=ut("OUTDENT_CONTENT_COMMAND"),Ut=ut("DROP_COMMAND"),Kt=ut("FORMAT_ELEMENT_COMMAND"),Gt=ut("DRAGSTART_COMMAND"),Vt=ut("DRAGOVER_COMMAND"),Yt=ut("DRAGEND_COMMAND"),qt=ut("COPY_COMMAND"),Qt=ut("CUT_COMMAND"),Jt=ut("SELECT_ALL_COMMAND"),Xt=ut("CLEAR_EDITOR_COMMAND"),Zt=ut("CLEAR_HISTORY_COMMAND"),en=ut("CAN_REDO_COMMAND"),tn=ut("CAN_UNDO_COMMAND"),nn=ut("FOCUS_COMMAND"),rn=ut("BLUR_COMMAND"),on=ut("KEY_MODIFIER_COMMAND"),an=Object.freeze({}),sn=[["keydown",function(e,t){ln=e.timeStamp,un=e.key,t.isComposing()||Ki(t,At,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;sa(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&ko(t,()=>{Xo(n)||(gn=!0)})}],["compositionstart",function(e,t){Ki(t,gt,e)}],["compositionend",function(e,t){I?vn=!0:j||!D&&!W?Ki(t,mt,e):(bn=!0,yn=e.data)}],["input",function(e,t){e.stopPropagation(),ko(t,()=>{t.dispatchCommand(ht,e)},{event:e}),dn=null}],["click",function(e,t){ko(t,()=>{const n=$r(),r=oa(Ji(t)),o=Ur();if(r)if(Er(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!No(i)&&1===wi().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()&&i!==n.focus.getNode()){const e=_a(i,e=>To(e)&&!e.isInline());To(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;(aa(n)||ai(n))&&Si(Wr(o,r,t,e))}Ki(t,ft,e)})}],["cut",an],["copy",an],["dragstart",an],["dragover",an],["dragend",an],["paste",an],["focus",an],["blur",an],["drop",an]];z&&sn.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;"deleteCompositionText"===n||I&&Ui(t)||"insertCompositionText"!==n&&Ki(t,pt,e)}(e,t)]);let ln=0,un=null,cn=0,dn=null;const fn=new WeakMap,pn=new WeakMap;let hn=!1,gn=!1,mn=!1,vn=!1,bn=!1,yn="",xn=null,_n=[0,"",0,"root",0];function wn(e,t,n,r,o){const i=e.anchor,a=e.focus,s=i.getNode(),l=co(),u=oa(Ji(l)),c=null!==u?u.anchorNode:null,d=i.key,f=l.getElementByKey(d),p=n.length;return d!==a.key||!mr(s)||(!o&&(!z||cn<r+50)||s.isDirty()&&p<2||Ei(n))&&i.offset!==a.offset&&!s.isComposing()||ii(s)||s.isDirty()&&p>1||(o||!z)&&null!==f&&!s.isComposing()&&c!==li(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=oi(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(mr(t)||To(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,s)}function kn(e,t){return ai(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function Sn(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}=e;hn&&(hn=!1,kn(r,o)&&kn(i,a)&&!xn)||ko(t,()=>{if(!n)return void Si(null);if(!ei(t,r,i))return;let s=$r();if(xn&&Er(s)&&s.isCollapsed()){const e=s.anchor,t=xn.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=xn.clone(),Si(s))}if(xn=null,Er(s)){const n=s.anchor,r=n.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);const o=Ji(t).event,i=o?o.timeStamp:performance.now(),[a,l,u,c,d]=_n,f=wi(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===u&&n.key===c)Cn(s,a,l);else if("text"===n.type)mr(r)||R(141),En(s,r);else if("element"===n.type&&!p){To(r)||R(259);const e=n.getNode();e.isEmpty()?function(e,t){Cn(e,t.getTextFormat(),t.getTextStyle())}(s,e):Cn(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(mr(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}}Ki(t,ct,void 0)})}function Cn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function En(e,t){Cn(e,t.getFormat(),t.getStyle())}function Tn(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function An(e){const t=e.inputType,n=Tn(e),r=co(),o=$r();if("deleteContentBackward"===t){if(null===o){const e=Ur();if(!Er(e))return!0;Si(e.clone())}if(Er(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===un&&i<ln+30&&r.isComposing()&&t){if(hi(null),ln=0,setTimeout(()=>{ko(r,()=>{hi(null)})},30),Er(o)){const e=o.anchor.getNode();e.markDirty(),mr(e)||R(142),En(o,e)}}else{hi(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=H&&t&&!s&&a;if(l&&o.isCollapsed()&&(l=!Ro($i(o.anchor,!0))),!l){Ki(r,vt,!0);const e=$r();H&&Er(e)&&e.isCollapsed()&&(xn=e,setTimeout(()=>xn=null))}}return!0}}var i;if(!Er(o))return!0;const a=e.data;null!==dn&&Ri(!1,r,dn),o.dirty&&null===dn||!o.isCollapsed()||No(o.anchor.getNode())||null===n||o.applyDOMRange(n),dn=null;const s=o.anchor,l=o.focus,u=s.getNode(),c=l.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===a)e.preventDefault(),Ki(r,bt,!1);else if(a===Z)e.preventDefault(),Ki(r,yt,void 0);else if(null==a&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=a&&wn(o,n,a,e.timeStamp,!0)?(e.preventDefault(),Ki(r,xt,a)):dn=a;return cn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Ki(r,xt,e);break;case"insertFromComposition":hi(null),Ki(r,xt,e);break;case"insertLineBreak":hi(null),Ki(r,bt,!1);break;case"insertParagraph":hi(null),mn&&!j?(mn=!1,Ki(r,bt,!1)):Ki(r,yt,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Ki(r,_t,e);break;case"deleteByComposition":(function(e,t){return e!==t||To(e)||To(t)||!oi(e)||!oi(t)})(u,c)&&Ki(r,wt,e);break;case"deleteByDrag":case"deleteByCut":Ki(r,wt,e);break;case"deleteContent":Ki(r,vt,!1);break;case"deleteWordBackward":Ki(r,kt,!0);break;case"deleteWordForward":Ki(r,kt,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Ki(r,St,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Ki(r,St,!1);break;case"formatStrikeThrough":Ki(r,Ct,"strikethrough");break;case"formatBold":Ki(r,Ct,"bold");break;case"formatItalic":Ki(r,Ct,"italic");break;case"formatUnderline":Ki(r,Ct,"underline");break;case"historyUndo":Ki(r,Et,void 0);break;case"historyRedo":Ki(r,Tt,void 0)}return!0}function Ln(e){if(aa(e.target)&&Xo(e.target))return!0;const t=co(),n=$r(),r=e.data,o=Tn(e);if(null!=r&&Er(n)&&wn(n,o,r,e.timeStamp,!1)){vn&&(Nn(t,r),vn=!1);const o=n.anchor.getNode(),i=oa(Ji(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;z&&!n.isCollapsed()&&mr(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,s)+r+o.getTextContent().slice(s+l)===Li(i.anchorNode)||Ki(t,xt,r);const u=r.length;I&&u>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=u),D||j||W||!t.isComposing()||(ln=0,hi(null))}else Ri(!1,t,null!==r?r:void 0),vn&&(Nn(t,r||void 0),vn=!1);return function(){so();ve(co())}(),!0}function Rn(e){const t=co(),n=$r();if(Er(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();hi(r.key),(e.timeStamp<ln+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||mr(o)&&o.getStyle()!==n.style)&&Ki(t,xt,ee)}return!0}function Mn(e){return Nn(co(),e.data),!0}function Nn(e,t){const n=e._compositionKey;if(hi(null),null!==n&&null!=t){if(""===t){const t=mi(n),r=li(e.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&mr(t)&&Mi(t,r.nodeValue,null,null,!0))}if("\n"===t[t.length-1]){const t=$r();if(Er(t)){const n=t.focus;return t.anchor.set(n.key,n.offset,n.type),void Ki(e,It,null)}}}Ri(!0,e,t)}function On(e){const t=co();if(null==e.key)return!0;if(bn&&Di(e))return ko(t,()=>{Nn(t,yn)}),bn=!1,yn="",!0;if(function(e){return Pi(e,"ArrowRight",{shiftKey:"any"})}(e))Ki(t,Lt,e);else if(function(e){return Pi(e,"ArrowRight",Ii)}(e))Ki(t,Rt,e);else if(function(e){return Pi(e,"ArrowLeft",{shiftKey:"any"})}(e))Ki(t,Mt,e);else if(function(e){return Pi(e,"ArrowLeft",Ii)}(e))Ki(t,Nt,e);else if(function(e){return Pi(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))Ki(t,Ot,e);else if(function(e){return Pi(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))Ki(t,Pt,e);else if(function(e){return Pi(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))mn=!0,Ki(t,It,e);else if(function(e){return" "===e.key}(e))Ki(t,zt,e);else if(function(e){return P&&Pi(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),mn=!0,Ki(t,bt,!0);else if(function(e){return Pi(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))mn=!1,Ki(t,It,e);else if(function(e){return Pi(e,"Backspace",{shiftKey:"any"})||P&&Pi(e,"h",{ctrlKey:!0})}(e))Di(e)?Ki(t,Dt,e):(e.preventDefault(),Ki(t,vt,!0));else if(function(e){return"Escape"===e.key}(e))Ki(t,jt,e);else if(function(e){return Pi(e,"Delete",{})||P&&Pi(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),Ki(t,vt,!1)):Ki(t,Ft,e);else if(function(e){return Pi(e,"Backspace",zi)}(e))e.preventDefault(),Ki(t,kt,!0);else if(function(e){return Pi(e,"Delete",zi)}(e))e.preventDefault(),Ki(t,kt,!1);else if(function(e){return P&&Pi(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),Ki(t,St,!0);else if(function(e){return P&&(Pi(e,"Delete",{metaKey:!0})||Pi(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),Ki(t,St,!1);else if(function(e){return Pi(e,"b",Ii)}(e))e.preventDefault(),Ki(t,Ct,"bold");else if(function(e){return Pi(e,"u",Ii)}(e))e.preventDefault(),Ki(t,Ct,"underline");else if(function(e){return Pi(e,"i",Ii)}(e))e.preventDefault(),Ki(t,Ct,"italic");else if(function(e){return Pi(e,"Tab",{shiftKey:"any"})}(e))Ki(t,Bt,e);else if(function(e){return Pi(e,"z",Ii)}(e))e.preventDefault(),Ki(t,Et,void 0);else if(function(e){return P?Pi(e,"z",{metaKey:!0,shiftKey:!0}):Pi(e,"y",{ctrlKey:!0})||Pi(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),Ki(t,Tt,void 0);else{const n=t._editorState._selection;null===n||Er(n)?ji(e)&&(e.preventDefault(),Ki(t,Jt,e)):function(e){return Pi(e,"c",Ii)}(e)?(e.preventDefault(),Ki(t,qt,e)):function(e){return Pi(e,"x",Ii)}(e)?(e.preventDefault(),Ki(t,Qt,e)):ji(e)&&(e.preventDefault(),Ki(t,Jt,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(on,e),!0}function Pn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const In=new Map;function zn(e){const t=function(e){const t=Qi(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=ni(t.anchorNode);if(null===n)return;gn&&(gn=!1,ko(n,()=>{const r=Ur(),o=t.anchorNode;(aa(o)||ai(o))&&Si(Wr(r,t,n,e))}));const r=Ti(n),o=r[r.length-1],i=o._key,a=In.get(i),s=a||o;s!==n&&Sn(t,s,!1),Sn(t,n,!0),n!==o?In.set(i,n):a&&In.delete(i)}function Dn(e){e._lexicalHandled=!0}function jn(e){return!0===e._lexicalHandled}function Fn(e,t,n){so();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=$r();if(!Er(t)||!To(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();return qi(o,e)&&n.set(e.__key,0,"element"),qi(i,e)&&r.set(e.__key,0,"element"),t}(e);let a=!1;if(Er(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(Vr(t,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0),n.key===r&&(Vr(n,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0)}else Ar(i)&&t&&e.isSelected()&&e.selectPrevious();if(Er(i)&&t&&!a){const t=e.getIndexWithinParent();fi(e),Kr(i,o,t,-1)}else fi(e);n||Xi(o)||o.canBeEmpty()||!o.isEmpty()||Fn(o,t),t&&i&&No(o)&&o.isEmpty()&&o.selectEnd()}const Bn=Symbol.for("ephemeral");function Hn(e){return e[Bn]||!1}let Wn=class{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=xa(this);return void 0===e&&R(64,this.name),e}static clone(e){R(65,this.name)}$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}),di(this,e)}getType(){return this.__type}isInline(){R(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=mi(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||$r();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if(mr(this))return n;if(Er(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(Ro(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:mi(e)}getParentOrThrow(){const e=this.getParent();return null===e&&R(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(Xi(t))return To(e)||e===this&&Ro(e)||R(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&R(67,this.__key),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:mi(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:mi(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=To(this)?this:this.getParent(),n=To(e)?e:e.getParent(),r=t&&n?Xa(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=Xa(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===qa(t):("same"!==t.type&&"ancestor"!==t.type&&R(279),!1)))}isParentOf(e){const t=Xa(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=To(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&&R(68),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=co()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(Hn(this))return this;const e=mi(this.__key);return null===e&&R(113),e}getWritable(){if(Hn(this))return this;so();const e=uo(),t=co(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,a=$r();if(null!==a&&a.setCachedNodes(null),i.has(r))return pi(o),o;const s=ma(o);return i.add(r),pi(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){R(70)}updateDOM(e,t,n){R(71)}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){R(18,this.name)}updateFromJSON(e){return function(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of _e(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 xe(t,_e(t));return t.__state=n,n}(e).updateFromJSON(o),n}(this,e)}static transform(){return null}remove(e){Fn(this,!0,e)}replace(e,t){so();let n=$r();null!==n&&(n=n.clone()),ta(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),l=s.__size;fi(a);const u=r.getPreviousSibling(),c=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(Fn(r,!1,!0),null===u?s.__first=i:u.getWritable().__next=i,a.__prev=d,null===c?s.__last=i:c.getWritable().__prev=i,a.__next=f,a.__parent=p,s.__size=l,t&&(To(this)&&To(a)||R(139),this.getChildren().forEach(e=>{a.append(e)})),Er(n)){Si(n);const e=n.anchor,t=n.focus;e.key===o&&Sr(e,a),t.key===o&&Sr(t,a)}return gi()===o&&hi(i),a}insertAfter(e,t=!0){so(),ta(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=$r();let a=!1,s=!1;if(null!==o){const t=e.getIndexWithinParent();if(fi(r),Er(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:l.getWritable().__prev=c,u.__size++,n.__next=c,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Er(i)){const e=this.getIndexWithinParent();Kr(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){so(),ta(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;fi(r);const i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),s=n.__prev,l=this.getIndexWithinParent();null===i?a.__first=o:i.getWritable().__next=o,a.__size++,n.__prev=o,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;const u=$r();return t&&Er(u)&&Kr(u,this.getParentOrThrow(),l),e}isParentRequired(){return!1}createParentElementNode(){return Bo()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){so();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(To(n))return n.select();if(!mr(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){so();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(To(n))return n.select(0,0);if(!mr(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}};const $n="historic",Un="history-merge",Kn="collaboration",Gn="skip-scroll-into-view",Vn="skip-dom-selection",Yn="skip-selection-focus";let qn=class e extends Wn{static getType(){return"linebreak"}static clone(t){return new e(t.__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&&ca(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&Zn(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&Zn(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&ca(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&Zn(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&Zn(r))return!0}return!1}(e)?null:{conversion:Qn,priority:0}}}static importJSON(e){return Jn().updateFromJSON(e)}};function Qn(e){return{node:Jn()}}function Jn(){return ea(new qn)}function Xn(e){return e instanceof qn}function Zn(e){return ai(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function er(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function tr(e,t){return 1&t?"strong":2&t?"em":"span"}function nr(e,t,n,r,o){const i=r.classList;let a=Fi(o,"base");void 0!==a&&i.add(...a),a=Fi(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 te){const r=te[e];if(a=Fi(o,e),void 0!==a)if(n&r){if(s&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...a);continue}(0===(t&r)||l&&"underline"===e||"strikethrough"===e)&&i.add(...a)}else t&r&&i.remove(...a)}}function rr(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?X:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||I){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 or(e,t,n,r,o,i){rr(o,e,t);const a=i.theme.text;void 0!==a&&nr(0,0,r,e,a)}function ir(e,t){const n=document.createElement(t);return n.appendChild(e),n}let ar=class e extends Wn{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(t){return new e(t.__text,t.__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 ae[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===gi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=te[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return ui(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=er(0,n),o=tr(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)),or(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=er(0,o),s=er(0,i),l=tr(0,o),u=tr(0,i);if((null===a?l:a)!==(null===s?u:s))return!0;if(a===s&&l!==u){const e=t.firstChild;null==e&&R(48);const o=document.createElement(u);return or(o,this,0,i,r,n),t.replaceChild(o,e),!1}let c=t;null!==s&&null!==a&&(c=t.firstChild,null==c&&R(49)),rr(r,c,this);const d=n.theme.text;void 0!==d&&o!==i&&nr(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:dr,priority:0}),b:()=>({conversion:lr,priority:0}),code:()=>({conversion:hr,priority:0}),em:()=>({conversion:hr,priority:0}),i:()=>({conversion:hr,priority:0}),mark:()=>({conversion:hr,priority:0}),s:()=>({conversion:hr,priority:0}),span:()=>({conversion:sr,priority:0}),strong:()=>({conversion:hr,priority:0}),sub:()=>({conversion:hr,priority:0}),sup:()=>({conversion:hr,priority:0}),u:()=>({conversion:hr,priority:0})}}static importJSON(e){return gr().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 aa(t)||R(132),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=ir(t,"b")),this.hasFormat("italic")&&(t=ir(t,"i")),this.hasFormat("strikethrough")&&(t=ir(t,"s")),this.hasFormat("underline")&&(t=ir(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?te[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?ne[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=ui(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=ie[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){so();let n=e,r=t;const o=$r(),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(!Er(o))return Fr(a,n,a,r,"text","text");{const e=gi();e!==o.anchor.key&&e!==o.focus.key||hi(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=$r();if(r&&Er(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){so();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=gi(),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 g=!1,m=null,v=null;const b=$r();if(Er(b)){const[e,t]=b.isBackward()?[b.focus,b.anchor]:[b.anchor,b.focus];"text"===e.type&&e.key===r&&(m=e),"text"===t.type&&t.key===r&&(v=t)}t.isSegmented()?(d=gr(u),d.__format=f,d.__style=p,d.__detail=h,d.__state=Ce(t,d),g=!0):d=t.setTextContent(u);const y=[d];for(let e=1;e<l;e++){const n=gr(a[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=Ce(t,n);const i=n.__key;o===r&&hi(i),y.push(n)}const x=m?m.offset:null,_=v?v.offset:null;let w=0;for(const e of y){if(!m&&!v)break;const t=w+e.getTextContentSize();if(null!==m&&null!==x&&x<=t&&x>=w&&(m.set(e.getKey(),x-w,"text"),x<t&&(m=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();g?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),Er(b)&&Kr(b,c,t,l-1)}return y}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||R(50);const n=this.__key,r=e.__key,o=this.__text,i=o.length;gi()===r&&hi(n);const a=$r();if(Er(a)){const o=a.anchor,s=a.focus;null!==o&&o.key===r&&Yr(o,t,n,e,i),null!==s&&s.key===r&&Yr(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 sr(e){return{forChild:vr(e.style),node:null}}function lr(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:vr(t.style,n?void 0:"bold"),node:null}}const ur=new WeakMap;function cr(e){if(!aa(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function dr(e){const t=e;null===e.parentElement&&R(129);let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=ur.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++)ur.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(Jn()):"\t"===r?t.push(yr()):""!==r&&t.push(gr(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=fr(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=fr(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:gr(n)}}function fr(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,aa(n)){const e=n.style.display;if(""===e&&!ua(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(ai(n))return n;if("BR"===n.nodeName)return null}}const pr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function hr(e){const t=pr[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:vr(e.style,t),node:null}}function gr(e=""){return ea(new ar(e))}function mr(e){return e instanceof ar}function vr(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=>mr(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 br extends ar{static getType(){return"tab"}static clone(e){return new br(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=Fi(e.theme,"tab");return void 0!==n&&t.classList.add(...n),t}static importJSON(e){return yr().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&M(126),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||R(286),this}setDetail(e){return 2!==e&&R(127),this}setMode(e){return"normal"!==e&&R(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function yr(){return ea(new br)}function xr(e){return e instanceof br}class _r{key;offset;type;_selection;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){return this.key===e.key?this.offset<e.offset:Ya(ss(Za(this,"next")),ss(Za(e,"next")))<0}getNode(){const e=mi(this.key);return null===e&&R(20),e}set(e,t,n,r){const o=this._selection,i=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,ao()||(gi()===i&&hi(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0)))}}function wr(e,t,n){return new _r(e,t,n)}function kr(e,t){let n=t.__key,r=e.offset,o="element";if(mr(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!To(t)){const e=t.getNextSibling();if(mr(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 Sr(e,t){if(To(t)){const n=t.getLastDescendant();To(n)||mr(n)?kr(e,n):kr(e,t)}else kr(e,t)}class Cr{_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(!Ar(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 Cr(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(mr(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=mi(e);null!==t&&n.push(t)}return ao()||(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(($r()||Ur())===this&&e[0]){const t=za(e[0],"next");ts(Ga(t,t))}for(const t of e)t.remove()}}function Er(e){return e instanceof Tr}let Tr=class e{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!!Er(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(Na(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;To(e)&&i.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),Ma(e.focus)&&To(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=Ba(e.focus.origin,"previous");Na(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=Ha(n))o.delete(n.origin),t.pop();for(;t.length>1;){const e=t[t.length-1];if(!To(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=ss(e.anchor),r=ss(e.anchor.getFlipped()),o=e=>Ra(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(cs(rs(this),"next"));return ao()||(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]=Rr(this);let l="",u=!0;for(let c=0;c<e.length;c++){const d=e[c];if(To(d)&&!d.isInline())u||(l+="\n"),u=!d.isEmpty();else if(u=!1,mr(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!Ro(d)&&!Xn(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(e){const t=co(),n=t.getEditorState()._selection,r=Dr(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),Le(this)}clone(){const t=this.anchor,n=this.focus;return new e(wr(t.key,t.offset,t.type),wr(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=ui(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=te[e];return 0!==(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(Jn()):"\t"===r?n.push(yr()):n.push(gr(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=gr();if(a.setFormat(n),a.setStyle(r),Ho(i))i.splice(0,0,[a]);else{const e=No(o)?Bo().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&&es(a,ss(Za(a,"next")));const s=i.offset;let l=a.offset;const u=this.getNodes(),c=u.length;let d=u[0];mr(d)||R(26);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&&(ii(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(mr(t)&&t.canInsertTextBefore()&&!ii(t)||(t=gr(),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&&(ii(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(mr(t)&&!ii(t)||(t=gr(),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=gr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||To(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),zr(this.anchor,this.focus,null),void this.insertText(e)}if(1===c){if(oi(d)){const t=gr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(s!==l||t===r&&n===o){if(xr(d)){const t=gr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=gr(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=To(d)?d:d.getParentOrThrow();let r=To(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(mr(h)&&!oi(h)&&l!==h.getTextContentSize()){if(h.isSegmented()){const e=gr(h.getTextContent());h.replace(e),h=e}No(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),g=n.is(r),m=n.isInline()&&null===d.getNextSibling()?n:d;for(let e=i.length-1;e>=0;e--){const t=i[e];if(t.is(d)||To(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(o)?g||m.insertAfter(t,!1):t.remove())}if(!g){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(oi(d))if(s===f)d.select();else{const t=gr(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=$r()===this;ns(this,function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=cs(e,r),a=is(i.anchor,n),s=is(i.focus.getFlipped(),n),l=new Set,u=[];for(const e of i.iterNodeCarets(n))if(Na(e))l.add(e.origin.getKey());else if(Ma(e)){const{origin:t}=e;To(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=os(za(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=gr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=Da(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(as(e)){c=ss(e);break}for(const e of s)if(as(e)){d=ss(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(Xi(o))return;!n&&t(o)&&(n=o)}return n},c=u(i,da),d=c&&u(a,e=>n.has(e.getKey())&&da(e));return c&&d?[c,d]:null}(c,d,l);if(f){const[e,t]=f;Ba(e,"previous").splice(0,t.getChildren()),t.remove()}const p=[c,d,...a,...s].find(as);if(p)return Ka(us(ss(p),e.direction));R(269,JSON.stringify(a.map(e=>e.origin.__key)))}(rs(this))),e&&$r()!==this&&Si(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void hi(null);const n=this.getNodes(),r=[];for(const e of n)mr(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(To(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),hi(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 g=i-1;let m=r[g];const v="text"===c.type?c.offset:m.getTextContentSize();if(f.is(m)){if(p===v)return;if(ii(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||ii(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const b=m.getFormatFlags(e,h);v>0&&(v===m.getTextContentSize()||ii(m)||([m]=m.splitText(v)),m.setFormat(b));for(let t=d+1;t<g;t++){const n=r[t],o=n.getFormatFlags(e,b);n.setFormat(o)}"text"===u.type&&u.set(f.__key,p,"text"),"text"===c.type&&c.set(m.__key,v,"text"),this.format=h|b}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const t=$r();return Er(t)||R(134),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=_a(t,da),r=e[e.length-1];if(To(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=Jr(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(To(e)||Ro(e))&&!e.isInline())){To(n)||R(211,t.constructor.name,t.getType());const o=Jr(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=Bo();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=Xn(o);if(i||Ro(o)&&o.isInline()||To(o)&&o.isInline()||mr(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=To(n)&&n.isEmpty()?null:this.insertParagraph(),l=a[a.length-1];let u=a[0];var c;To(c=u)&&da(c)&&!c.isEmpty()&&To(n)&&(!n.isEmpty()||n.canMergeWhenEmpty())&&(To(n)||R(211,t.constructor.name,t.getType()),n.append(...u.getChildren()),u=a[1]),u&&(null===n&&R(212,t.constructor.name,t.getType()),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||R(140),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,u));const d=_a(i,da);s&&To(d)&&(s.canMergeWhenEmpty()||da(l))&&(d.append(...s.getChildren()),s.remove()),To(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const f=To(n)?n.getLastChild():null;Xn(f)&&d!==n&&f.remove()}insertParagraph(){if("root"===this.anchor.key){const e=Bo();return wi().splice(this.anchor.offset,0,[e]),e.select(),e}const e=Jr(this),t=_a(this.anchor.getNode(),da);To(t)||R(213);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=Jn();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]=Rr(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(mr(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(mr(n)&&(u===n.getTextContentSize()?e.shift():0!==u&&([,n]=n.splitText(u),e[0]=n,s.set(n.getKey(),0,"text"))),mr(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(Zr(this,e,t,n))return;const r="move"===e,o=co(),i=oa(Ji(o));if(!i)return;const a=o._blockCursorElement,s=o._rootElement,l=this.focus.getNode();if(null===s||null===a||!To(l)||l.isInline()||l.canBeEmpty()||ra(a,o,s),this.dirty){let e=Gi(o,this.anchor.key),t=Gi(o,this.focus.key);"text"===this.anchor.type&&(e=li(e)),"text"===this.focus.type&&(t=li(t)),e&&t&&qr(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=No(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(Xi(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];qi(t,o)?r.push(t):a=!0}if(a&&r.length>0)if(t){const e=r[0];To(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];To(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&&Zr(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&To(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(To(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=Ua(Za(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(Na(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(To(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=ss(t);ns(this,Ga(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(Ma(t)){if(To(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(Ro(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&To(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=Hr();e.add(t.origin.getKey()),Si(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return ns(this,Ga(!t.origin.isEmpty()&&n.isEmpty()?os(za(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&&Mr(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 Or(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 Or(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode();if(o===r.getNode()&&"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;s!==u&&function(e){return!(Ei(e)||Nr(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()&&No(e.getParent())&&null===e.getPreviousSibling()&&Mr(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 Ar(e){return e instanceof Cr}function Lr(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Rr(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]:[Lr(n),Lr(r)]}function Mr(e,t){for(let n=t;n;n=n.getParent()){if(To(n)){if(n.collapseAtStart(e))return!0;if(Xi(n))break}if(n.getPreviousSibling())break}return!1}const Nr=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Or(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 Pr(e,t,n,r){let o,i=t;if(aa(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;e===n&&t>Array.prototype.indexOf.call(n.children,u)&&i--}if(o=Ci(c),mr(o))i=ja(o,a?"next":"previous");else{let s=Ci(e);if(null===s)return null;if(To(s)){const l=r.getElementByKey(s.getKey());null===l&&R(214);const u=s.getDOMSlot(l);[s,i]=u.resolveChildIndex(s,l,e,t),To(s)||R(215),a&&i>=s.getChildrenSize()&&(i=Math.max(0,s.getChildrenSize()-1));let c=s.getChildAtIndex(i);if(To(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=To(c)?c:c.getParentOrThrow()),i=0}mr(c)?(o=c,s=null,i=ja(c,a?"next":"previous")):c!==s&&a&&!d&&(To(s)||R(216),i=Math.min(s.getChildrenSize(),i+1))}else{const n=s.getIndexWithinParent();i=0===t&&Ro(s)&&Ci(e)===s?n:n+1,s=s.getParentOrThrow()}if(To(s))return wr(s.__key,i,"element")}}else o=Ci(e);return mr(o)?wr(o.__key,ja(o,i,"clamp"),"text"):null}function Ir(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&&To(i)&&i.isInline()){const t=i.getPreviousSibling();mr(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else To(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):mr(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&To(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&To(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();mr(t)&&e.set(t.__key,0,"text")}}}function zr(e,t,n){if("text"===e.type&&"text"===t.type){const r=e.isBefore(t),o=e.is(t);Ir(e,r,o),Ir(t,!r,o),o&&t.set(e.key,e.offset,e.type);const i=co();if(i.isComposing()&&i._compositionKey!==e.key&&Er(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 Dr(e,t,n,r,o,i){if(null===e||null===n||!ei(o,e,n))return null;const a=Pr(e,t,Er(i)?i.anchor:null,o);if(null===a)return null;const s=Pr(n,r,Er(i)?i.focus:null,o);if(null===s)return null;if("element"===a.type&&"element"===s.type){const t=Ci(e),r=Ci(n);if(Ro(t)&&Ro(r))return null}return zr(a,s,i),[a,s]}function jr(e){return To(e)&&!e.isInline()}function Fr(e,t,n,r,o,i){const a=uo(),s=new Tr(wr(e,t,o),wr(n,r,i),0,"");return s.dirty=!0,a._selection=s,s}function Br(){const e=wr("root",0,"element"),t=wr("root",0,"element");return new Tr(e,t,0,"")}function Hr(){return new Cr(new Set)}function Wr(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=!ue&&(s||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&i&&3===i.detail||"drop"===a||void 0===a);let u,c,d,f;if(Er(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)&&Er(e)&&!ei(n,u,c))return e.clone();const p=Dr(u,d,c,f,n,e);if(null===p)return null;const[h,g]=p;return new Tr(h,g,Er(e)?e.format:0,Er(e)?e.style:"")}function $r(){return uo()._selection}function Ur(){return co()._editorState._selection}function Kr(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"),Gr(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")}}Gr(e)}function Gr(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed()){if(!To(i))return;const e=i.getChildrenSize(),o=n>=e,a=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(mr(a)){let e=0;o&&(e=a.getTextContentSize()),t.set(a.__key,e,"text"),r.set(a.__key,e,"text")}return}if(To(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(mr(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(To(a)){const e=a.getChildrenSize(),t=o>=e,n=t?a.getChildAtIndex(e-1):a.getChildAtIndex(o);if(mr(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function Vr(e,t,n,r,o){let i=null,a=0,s=null;null!==r?(i=r.__key,mr(r)?(a=r.getTextContentSize(),s="text"):To(r)&&(a=r.getChildrenSize(),s="element")):null!==o&&(i=o.__key,mr(o)?s="text":To(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 Yr(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 qr(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){}}function Qr(e){let t=$r()||Ur();null===t&&(t=wi().selectEnd()),t.insertNodes(e)}function Jr(e){let t=e;e.isCollapsed()||t.removeText();const n=$r();Er(n)&&(t=n),Er(t)||R(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!da(o);){const e=o;if([o,i]=Xr(o,i),e.is(o))break}return i}function Xr(e,t){const n=e.getParent();if(!n){const e=Bo();return wi().append(e),e.select(),[wi(),0]}if(mr(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(!To(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Tr(wr(e.__key,t,"element"),wr(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function Zr(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=Za(e.focus,n?"previous":"next"),a="lineboundary"===r,s="move"===t;let l=i,u="decorators-and-blocks"===o;if(!ls(l)){for(const e of l){u=!1;const{origin:t}=e;if(!Ro(t)||t.isIsolated()||(l=e,!a||!t.isInline()))break}if(u)for(const e of Ua(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(Na(e))e.origin.isInline()||(l=e);else{if(To(e.origin))continue;Ro(e.origin)&&!e.origin.isInline()&&(l=e)}break}}if(l===i)return!1;if(s&&!a&&Ro(l.origin)&&l.origin.isKeyboardSelectable()){const e=Hr();return e.add(l.origin.getKey()),Si(e),!0}return l=ss(l),s&&es(e.anchor,l),es(e.focus,l),u||!a}let eo=null,to=null,no=!1,ro=!1,oo=0;const io={characterData:!0,childList:!0,subtree:!0};function ao(){return no||null!==eo&&eo._readOnly}function so(){no&&R(13)}function lo(){oo>99&&R(14)}function uo(){return null===eo&&R(195,fo()),eo}function co(){return null===to&&R(196,fo()),to}function fo(){let e=0;const t=new Set,n=Ko.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=ri(r);if(ti(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 po(e,t,n){const r=t.__type,o=qo(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 ho(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function go(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 mo(e){return vo(e,co()._nodes)}function vo(e,t){const n=e.type,r=t.get(n);void 0===r&&R(17,n);const o=r.klass;e.type!==o.getType()&&R(18,o.name);const i=o.importJSON(e),a=e.children;if(To(i)&&Array.isArray(a))for(let e=0;e<a.length;e++){const n=vo(a[e],t);i.append(n)}return i}function bo(e,t,n){const r=eo,o=no,i=to;eo=t,no=!0,to=e;try{return n()}finally{eo=r,no=o,to=i}}function yo(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=eo,c=no,d=to,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&null!==p){to=e,eo=n,no=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=function(e,t,n,r,o,i){He="",Ue=2===r,Ne=n,Me=n._config,Oe=n._nodes,Pe=Ne._listeners.mutation,Ie=o,ze=i,De=e._nodeMap,je=t._nodeMap,Ke=t._readOnly,Fe=new Map(n._keyToDOMMap);const a=new Map;return Be=a,ot("root",null),Ne=void 0,Oe=void 0,Ie=void 0,ze=void 0,De=void 0,je=void 0,Me=void 0,Fe=void 0,Be=void 0,a}(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),ro)throw t;return Wo(e,null,r,n),be(e),e._dirtyType=2,ro=!0,yo(e,i),void(ro=!1)}finally{p.observe(r,io),e._updating=f,eo=u,no=c,to=d}}n._readOnly||(n._readOnly=!0);const g=e._dirtyLeaves,m=e._dirtyElements,v=e._normalizedNodes,b=e._updateTags,y=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=xi(e)),delete r[i])}(e,n);const x=o?null:oa(Ji(e));if(e._editable&&null!==x&&(l||null===s||s.dirty||!s.is(a))&&null!==r&&!b.has(Vn)){to=e,eo=n;try{if(null!==p&&p.disconnect(),l||null===s||s.dirty){const t=e._blockCursorElement;null!==t&&ra(t,e,r),function(e,t,n,r,o,i){const a=r.anchorNode,s=r.focusNode,l=r.anchorOffset,u=r.focusOffset,c=document.activeElement;if(o.has(Kn)&&c!==i||null!==c&&Zo(c))return;if(!Er(t))return void(null!==e&&ei(n,a,s)&&r.removeAllRanges());const d=t.anchor,f=t.focus,p=d.key,h=f.key,g=Gi(n,p),m=Gi(n,h),v=d.offset,b=f.offset,y=t.format,x=t.style,_=t.isCollapsed();let w=g,k=m,S=!1;if("text"===d.type){w=li(g);const e=d.getNode();S=e.getFormat()!==y||e.getStyle()!==x}else Er(e)&&"text"===e.anchor.type&&(S=!0);var C,E,T,A,L;if("text"===f.type&&(k=li(m)),null!==w&&null!==k&&(_&&(null===e||S||Er(e)&&(e.format!==y||e.style!==x))&&(C=y,E=x,T=v,A=p,L=performance.now(),_n=[C,E,T,A,L]),l!==v||u!==b||a!==w||s!==k||"Range"===r.type&&_||(null!==c&&i.contains(c)||o.has(Yn)||i.focus({preventScroll:!0}),"element"===d.type))){if(qr(r,w,v,k,b),!I||!t.isCollapsed()||null===i||o.has(Yn)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(Gn)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=Er(t)&&"element"===t.anchor.type?w.childNodes[v]||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=Yi(n),o=Qi(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=Ji(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=Vi(u)}}(n,t,i)}}hn=!0}}(a,s,e,x,b,r)}!function(e,t,n){let r=e._blockCursorElement;if(Er(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())na(i.getChildAtIndex(a-1))&&(s=!0);else{const t=i.getChildAtIndex(a);if(null!==t&&na(t)){const n=t.getPreviousSibling();(null===n||na(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=gs(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&&ra(r,e,t)}(e,r,s)}finally{null!==p&&p.observe(r,io),to=d,eo=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,b,g,i),Er(s)||null===s||null!==a&&a.is(s)||e.dispatchCommand(ct,void 0);const _=e._pendingDecorators;null!==_&&(e._decorators=_,e._pendingDecorators=null,xo("decorator",e,!0,_)),function(e,t,n){const r=_i(t),o=_i(n);r!==o&&xo("textcontent",e,!0,o)}(e,t||i,n),xo("update",e,!0,{dirtyElements:m,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:v,prevEditorState:t||i,tags:b}),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,y),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;wo(e,t,r)}}}(e)}function xo(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 _o(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&&R(191),i._flushSync=!0),a&&e._deferred.push(a),go(e,o.tag)),null==i?wo(e,n,o):n()}}return r}function wo(e,t,n){const r=e._updateTags;let o,i=!1,a=!1;void 0!==n&&(o=n.onUpdate,go(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=Oo(l||s),u=!0),l._flushSync=a;const c=eo,d=no,f=to,p=e._updating;eo=l,no=!1,e._updating=!0,to=e;const h=e._headless||null===e.getRootElement();Vo(null);try{u&&(h?null!==s._selection&&(l._selection=s._selection.clone()):l._selection=function(e,t){const n=e.getEditorState()._selection,r=oa(Ji(e));return Er(n)||null==n?Wr(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=_o(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(Er(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);mr(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Ae(t)}}(l,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=gi(),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);mr(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Ae(r),void 0!==r&&ho(r,i)&&po(t,r,a),n.add(e)}if(s=t._dirtyLeaves,l=s.size,l>0){oo++;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&&ho(l,i)&&po(t,l,a)}s=t._dirtyLeaves,l=s.size,u=t._dirtyElements,c=u.size,oo++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),_o(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()||(To(t)&&le(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(Er(o)){const e=l._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||R(19)}else Ar(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 yo(e)}finally{eo=c,no=d,to=f,e._updating=p,oo=0}const g=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);g?l._flushSync?(l._flushSync=!1,yo(e)):u&&Jo(()=>{yo(e)}):(l._flushSync=!1,u&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function ko(e,t,n){to===e&&void 0===n?t():wo(e,t,n)}class So{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new So(this.element,e,this.after)}withAfter(e){return new So(this.element,this.before,e)}withElement(e){return this.element===e?this:new So(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&R(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&R(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&R(224),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&&(W||j||D);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=Co(t,n);o.push(r);const i=Co(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 Co(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&&R(225),n.reverse()}class Eo extends Wn{__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 oe[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=co()._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(mr(t)&&e.push(t),To(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;To(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;To(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 To(e)&&e.getLastDescendant()||e||null}const r=t[e];return To(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:mi(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&R(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:mi(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&R(96,this.__key),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(),To(o)&&r!==n-1&&!o.isInline()&&(e+=Z)}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(),To(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=re[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=te[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return ui(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){so();const n=$r();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(mr(e)||To(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(mr(e)||To(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const a=this.__key;return Er(n)?(n.anchor.set(a,r,"element"),n.focus.set(a,o,"element"),n.dirty=!0,n):Fr(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?re[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){Hn(this)&&R(324,this.__key,this.__type);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||R(226,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&&R(100);const t=e.getNextSibling(),n=e.__key;fi(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--,fi(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&&R(76),t.__parent=i,a.push(n),d=e}if(e+t===r)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=$r();if(Er(e)){const t=new Set(s),n=new Set(a),{anchor:r,focus:o}=e;Ao(r,t,n)&&Vr(r,r.getNode(),this,u,l),Ao(o,t,n)&&Vr(o,o.getNode(),this,u,l),0!==c||this.canBeEmpty()||Xi(this)||this.remove()}}return o}getDOMSlot(e){return new So(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(aa(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||Xi(this)||this.getChildren().some(mr)||(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 To(e){return e instanceof Eo}function Ao(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 Lo extends Wn{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ro(e){return e instanceof Lo}class Mo extends Eo{__cachedText;static getType(){return"root"}static clone(){return new Mo}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){R(51)}getTextContent(){const e=this.__cachedText;return!ao()&&0!==co()._dirtyType||null===e?super.getTextContent():e}remove(){R(52)}replace(e){R(53)}insertBefore(e){R(54)}insertAfter(e){R(55)}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)To(e)||Ro(e)||R(282);return super.splice(e,t,n)}static importJSON(e){return wi().updateFromJSON(e)}collapseAtStart(){return!0}}function No(e){return e instanceof Mo}function Oo(e){return new zo(new Map(e._nodeMap))}function Po(){return new zo(new Map([["root",new Mo]]))}function Io(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&R(130,n.name),To(e)){const r=t.children;Array.isArray(r)||R(59,n.name);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=Io(o[e]);r.push(t)}}return t}class zo{_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 bo(t&&t.editor||null,this,e)}clone(e){const t=new zo(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return bo(null,this,()=>({root:Io(wi())}))}}class Do extends Eo{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class jo extends Eo{static getType(){return"paragraph"}static clone(e){return new jo(e.__key)}createDOM(e){const t=document.createElement("p"),n=Fi(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:Fo,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(aa(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return Bo().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(mr);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=Bo();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||mr(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 Fo(e){const t=Bo();return e.style&&(t.setFormat(e.style.textAlign),va(e,t)),{node:t}}function Bo(){return ea(new jo)}function Ho(e){return e instanceof jo}function Wo(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Po(),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 $o(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=xa(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 Wn&&e!==Wn?e:void 0}}return t}function Uo(e){const t=e||{},n=to,r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=Po(),s=t.namespace||(null!==o?o._config.namespace:Ai()),l=t.editorState,u=[Mo,ar,qn,br,jo,Do,...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}xa(t);const o=t.getType(),i=$o(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:ye(u[e]),transforms:i})}}const h=new Ko(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(pt,An,0),e.registerCommand(ht,Ln,0),e.registerCommand(gt,Rn,0),e.registerCommand(mt,Mn,0),e.registerCommand(At,On,0)}(h),h}class Ko{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=Ai(),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&&R(35);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&&R(36,String(e));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&&R(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=ga(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=ga(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}0!==r.length&&e.update(()=>{for(const e of r)for(const t of e.keys()){const e=mi(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:Un}: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 Ki(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=Fi(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Wo(this,t,e,r),null!==t&&(this._config.disableEvents||function(e){const t=fn.get(e);if(void 0===t)return;const n=pn.get(t);if(void 0===n)return;const r=n-1;r>=0||R(164),fn.delete(e),pn.set(t,r),0===r&&t.removeEventListener("selectionchange",zn);const o=ri(e);ti(o)?(function(e){if(null!==e._parentEditor){const t=Ti(e),n=t[t.length-1]._key;In.get(n)===e&&In.delete(n)}else In.delete(e._key)}(o),e.__lexicalEditor=null):o&&R(198);const i=Pn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}(t),null!=n&&t.classList.remove(...n)),null!==e){const t=Qi(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,be(this),this._updateTags.add(Un),yo(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;fn.set(e,n);const r=pn.get(n)??0;r<1&&n.addEventListener("selectionchange",zn),pn.set(n,r+1),e.__lexicalEditor=t;const o=Pn(e);for(let n=0;n<sn.length;n++){const[r,i]=sn[n],a="function"==typeof i?e=>{jn(e)||(Dn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(jn(e))return;Dn(e);const n=t.isEditable();switch(r){case"cut":return n&&Ki(t,Qt,e);case"copy":return Ki(t,qt,e);case"paste":return n&&Ki(t,_t,e);case"dragstart":return n&&Ki(t,Gt,e);case"dragover":return n&&Ki(t,Vt,e);case"dragend":return n&&Ki(t,Yt,e);case"focus":return n&&Ki(t,nn,e);case"blur":return n&&Ki(t,rn,e);case"drop":return n&&Ki(t,Ut,e)}};e.addEventListener(r,a),o.push(()=>{e.removeEventListener(r,a)})}}(e,this),null!=n&&e.classList.add(...n)}else this._window=null,this._updateTags.add(Un),yo(this);xo("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&R(38);let n=e;n._readOnly&&(n=Oo(e),n._selection=e._selection?e._selection.clone():null),ve(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),yo(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||yo(this)}parseEditorState(e,t){return function(e,t,n){const r=Po(),o=eo,i=no,a=to,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,eo=r,no=!1,to=t,Vo(null);try{const o=t._nodes;vo(e.root,o),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=l,t._cloneNotNeeded=u,t._dirtyType=c,eo=o,no=i,to=a}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return yo(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):wo(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),ko(this,()=>{const r=$r(),o=wi();null!==r?r.dirty||Si(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),function(e){so(),co()._updateTags.add(e)}("focus"),function(e){so(),co()._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=oa(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,xo("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}Ko.version="0.40.0+prod.esm";let Go=null;function Vo(e){Go=e}let Yo=1;function qo(e,t){const n=Qo(e,t);return void 0===n&&R(30,t),n}function Qo(e,t){return e._nodes.get(t)}const Jo="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function Xo(e){return Ro(yi(e))}function Zo(e){const t=document.activeElement;if(!aa(t))return!1;const n=t.nodeName;return Ro(yi(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==ri(t))}function ei(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!Zo(t)&&ni(t)===e}catch(e){return!1}}function ti(e){return e instanceof Ko}function ni(e){let t=e;for(;null!=t;){const e=ri(t);if(ti(e))return e;t=Vi(t)}return null}function ri(e){return e?e.__lexicalEditor:null}function oi(e){return xr(e)||e.isToken()}function ii(e){return oi(e)||e.isSegmented()}function ai(e){return sa(e)&&3===e.nodeType}function si(e){return sa(e)&&9===e.nodeType}function li(e){let t=e;for(;null!=t;){if(ai(t))return t;t=t.firstChild}return null}function ui(e,t,n){const r=te[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 ci(e){return mr(e)||Xn(e)||Ro(e)}function di(e,t){const n=function(){const e=Go;return Go=null,e}();if(null!=(t=t||n&&n.__key))return void(e.__key=t);so(),lo();const r=co(),o=uo(),i=""+Yo++;o._nodeMap.set(i,e),To(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function fi(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){lo(),Hn(e)&&R(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=uo(),o=co(),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,To(e)?a.set(s,!0):o._dirtyLeaves.add(s)}function hi(e){so();const t=co(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=mi(n);null!==e&&e.getWritable()}if(null!==e){const t=mi(e);null!==t&&t.getWritable()}}}function gi(){return ao()?null:co()._compositionKey}function mi(e,t){const n=(t||uo())._nodeMap.get(e);return void 0===n?null:n}function vi(e,t){const n=bi(e,co());return void 0!==n?mi(n,t):null}function bi(e,t){return e[`__lexicalKey_${t._key}`]}function yi(e,t){let n=e;for(;null!=n;){const e=vi(n,t);if(null!==e)return e;n=Vi(n)}return null}function xi(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function _i(e){return e.read(()=>wi().getTextContent())}function wi(){return ki(uo())}function ki(e){return e._nodeMap.get("root")}function Si(e){so();const t=uo();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Ci(e){const t=co(),n=function(e,t){let n=e;for(;null!=n;){const e=bi(n,t);if(void 0!==e)return e;n=Vi(n)}return null}(e,t);return null===n?e===t.getRootElement()?mi("root"):null:mi(n)}function Ei(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Ti(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function Ai(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Li(e){return ai(e)?e.nodeValue:null}function Ri(e,t,n){const r=oa(Ji(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:a}=r;if(null!==o){let t=Li(o);const r=yi(o);if(null!==t&&mr(r)){if(t===X&&n){const e=n.length;t=n,i=e,a=e}null!==t&&Mi(r,t,i,a,e)}}}function Mi(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]===X&&(s=t.slice(0,-1));const l=i.getTextContent();if(o||s!==l){if(""===s){if(hi(null),D||j||W)i.remove();else{const e=co();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=Ur(),l=i.getTextContentSize(),u=gi(),c=i.getKey();if(i.isToken()||null!==u&&c===u&&!a||Er(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=$r();if(!Er(d)||null===n||null===r)return void Ni(i,s,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=gr(i.getTextContent());i.replace(e),i=e}Ni(i,s,d)}}}function Ni(e,t,n){if(e.setTextContent(t),Er(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=ja(e,o.offset,"clamp"))}}}function Oi(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function Pi(e,t,n){return function(e,t){return Oi(e,t,"altKey")&&Oi(e,t,"ctrlKey")&&Oi(e,t,"shiftKey")&&Oi(e,t,"metaKey")}(e,n)&&e.key.toLowerCase()===t.toLowerCase()}const Ii={ctrlKey:!P,metaKey:P},zi={altKey:P,ctrlKey:!P};function Di(e){return"Backspace"===e.key}function ji(e){return Pi(e,"a",Ii)}function Fi(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=gs(o);return n[t]=e,e}return o}function Bi(e,t,n,r,o){if(0===n.size)return;const i=r.__type,a=r.__key,s=t.get(i);void 0===s&&R(33,i);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 Hi(e){const t=e.getType(),n=uo();if(n._readOnly){const e=ga(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 Wi(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 $i(e,t){const n=e.offset;if("element"===e.type)return Wi(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?Wi(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function Ui(e){const t=Ji(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Ki(e,t,n){return function(e,t,n){const r=Ti(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(ko(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 Gi(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&R(75,t),n}function Vi(e){const t=e.assignedSlot||e.parentElement;return la(t)?t.host:t}function Yi(e){return si(e)?e:aa(e)?e.ownerDocument:null}function qi(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function Qi(e){const t=Yi(e);return t?t.defaultView:null}function Ji(e){const t=e._window;return null===t&&R(78),t}function Xi(e){return No(e)||To(e)&&e.isShadowRoot()}function Zi(e){const t=e.constructor.clone(e);return di(t,null),t.afterCloneFrom(e),t}function ea(e){const t=co(),n=e.getType(),r=Qo(t,n);void 0===r&&R(200,e.constructor.name,n);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||R(201,i.name,i.getType(),r.name,r.getType(),e.constructor.name,n):t instanceof e.constructor&&r!==e.constructor||R(202,r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&R(203,e.constructor.name,n,r.name,r.getType()),t}return e}function ta(e,t){!No(e.getParent())||To(t)||Ro(t)||R(99)}function na(e){return(Ro(e)||To(e)&&!e.canBeEmpty())&&!e.isInline()}function ra(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function oa(e){return N?(e||window).getSelection():null}function ia(e){return aa(e)&&"A"===e.tagName}function aa(e){return sa(e)&&1===e.nodeType}function sa(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function la(e){return sa(e)&&11===e.nodeType}function ua(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 ca(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 da(e){if(Ro(e)&&!e.isInline())return!0;if(!To(e)||Xi(e))return!1;const t=e.getFirstChild(),n=null===t||Xn(t)||mr(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function fa(){return co()}const pa=new WeakMap,ha=new Map;function ga(e){if(!e._readOnly&&e.isEmpty())return ha;e._readOnly||R(192);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 ma(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function va(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 ya(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==Wn[t]}function xa(e){const t=se in e.prototype?e.prototype[se]():void 0,n=function(e){if(!(e===Wn||e.prototype instanceof Wn)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{Ko.version&&(n=JSON.parse(Ko.version))}catch(e){}R(290,e.name,t,n)}return e===Lo||e===Eo||e===Wn}(e),r=!n&&ya(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&&(ya(e,"getType")||(e.getType=()=>i),ya(e,"clone")||(e.clone=t=>(Vo(t),new e)),ya(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!ya(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}const _a=(e,t)=>{let n=e;for(;null!=n&&!No(n);){if(t(n))return n;n=n.getParent()}return null},wa={next:"previous",previous:"next"};class ka{origin;constructor(e){this.origin=e}[Symbol.iterator](){return Va({hasNext:Ma,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return za(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return za(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&&R(263,Array.from(a).join(" "))}else o.insert(e);o=za(e,this.direction)}for(const e of a.values())e.remove();return this}}class Sa extends ka{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Ba(e,this.direction)}getParentCaret(e="root"){return za(Ta(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Ea(this.direction);return za(this.getNodeAtCaret(),e)||Ba(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Sa&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const Ca={root:No,shadowRoot:Xi};function Ea(e){return wa[e]}function Ta(e,t="root"){return Ca[t](e)?null:e}class Aa extends ka{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:za(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return To(this.origin)?Ba(this.origin,this.direction):null}getParentCaret(e="root"){return za(Ta(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Ea(this.direction);return za(this.getNodeAtCaret(),e)||Ba(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof Aa&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof Aa||e instanceof La)&&this.direction===e.direction&&this.origin.is(e.origin)}}class La extends ka{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Da(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return za(Ta(this.getParentAtCaret(),e),this.direction)}getFlipped(){return Da(this.origin,Ea(this.direction),this.offset)}isSamePointCaret(e){return e instanceof La&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof Aa||e instanceof La)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return za(this.origin,this.direction)}}function Ra(e){return e instanceof La}function Ma(e){return e instanceof Aa}function Na(e){return e instanceof Sa}const Oa={next:class extends La{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends La{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Pa={next:class extends Aa{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Aa{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Ia={next:class extends Sa{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Sa{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function za(e,t){return e?new Pa[t](e):null}function Da(e,t,n){return e?new Oa[t](e,ja(e,n)):null}function ja(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&M(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function Fa(e,t){return new $a(e,t)}function Ba(e,t){return To(e)?new Ia[t](e):null}function Ha(e){return e&&function(e){return e&&e.getChildCaret()||e}(e.getAdjacentCaret())}let Wa=class e{type="node-caret-range";direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){const t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new e(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return Ra(t)?function(e,t){const{direction:n,origin:r}=e;return Fa(e,ja(r,"focus"===t?Ea(n):n)-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[Fa(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=Ra(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=Ra(n),o=t=>t.isSameNodeCaret(n)?null:Ha(t)||t.getParentCaret(e);return Va({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 $a{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 Da(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}}function Ua(e){return Ga(e,za(wi(),e.direction))}function Ka(e){return Ga(e,e)}function Ga(e,t){return e.direction!==t.direction&&R(265),new Wa(e,t,e.direction)}function Va(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 Ya(e,t){const n=Xa(e.origin,t.origin);switch(null===n&&R(275,e.origin.getKey(),t.origin.getKey()),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 qa(n)}}function qa(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 Qa(e,t){return t.is(e)}function Ja(e){return To(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Xa(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=Ja(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=Ja(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(Qa(e,r)||R(276),{commonAncestor:r,type:"ancestor"}):null===o?(Qa(t,r)||R(277),{commonAncestor:r,type:"descendant"}):((To(i)||Qa(e,i))&&(To(o)||Qa(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||R(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function Za(e,t){const{type:n,key:r,offset:o}=e,i=function(e){const t=mi(e);return null===t&&R(63,e),t}(e.key);return"text"===n?(mr(i)||R(266,i.getType(),r),Da(i,t,o)):(To(i)||R(267,i.getType(),r),function(e,t,n){let r=Ba(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return us(r,n)}(i,e.offset,t))}function es(e,t){const{origin:n,direction:r}=t,o="next"===r;Ra(t)?e.set(n.getKey(),t.offset,"text"):Ma(t)?mr(n)?e.set(n.getKey(),ja(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(Na(t)&&To(n)||R(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function ts(e){const t=$r(),n=Er(t)?t:Br();return ns(n,e),Si(n),n}function ns(e,t){es(e.anchor,t.anchor),es(e.focus,t.focus)}function rs(e){const{anchor:t,focus:n}=e,r=Za(t,"next"),o=Za(n,"next"),i=Ya(r,o)<=0?"next":"previous";return Ga(us(r,i),us(o,i))}function os(e){const{direction:t,origin:n}=e,r=za(n,Ea(t)).getNodeAtCaret();return r?za(r,t):Ba(n.getParentOrThrow(),t)}function is(e,t="root"){const n=[e];for(let r=Na(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(os(r));return n}function as(e){return!!e&&e.origin.isAttached()}function ss(e){const t=function(e){let t=e;for(;Na(t);){const e=Ha(t);if(!Na(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(mr(t.origin))return Ra(t)?t:Da(t.origin,n,n);const r=t.getAdjacentCaret();return Ma(r)&&mr(r.origin)?Da(r.origin,n,Ea(n)):t}function ls(e){return Ra(e)&&e.offset!==ja(e.origin,e.direction)}function us(e,t){return e.direction===t?e:e.getFlipped()}function cs(e,t){return e.direction===t?e:Ga(us(e.focus,t),us(e.anchor,t))}function ds(e){const{origin:t,offset:n,direction:r}=e;if(n===ja(t,r))return e.getSiblingCaret();if(n===ja(t,Ea(r)))return os(e.getSiblingCaret());const[o]=t.splitText(n);return mr(o)||R(281),us(za(o,"next"),r)}function fs(e,t){return!0}function ps(e,{$copyElementNode:t=Zi,$splitTextPointCaretNext:n=ds,rootMode:r="shadowRoot",$shouldSplit:o=fs}={}){if(Ra(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(Na(e)&&(!n.canBeEmpty()||!o(n,"first")))return os(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 hs(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function gs(...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 ms(e,...t){const n=gs(...t);n.length>0&&e.classList.add(...n)}function vs(e,...t){const n=gs(...t);n.length>0&&e.classList.remove(...n)}function bs(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function ys(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const xs=new Map;function _s(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 ws(e){let t=xs.get(e);return void 0===t&&(t=_s(e),xs.set(e,t)),t}function ks(e){const t=fa().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function Ss(e){return ks(No(e)?e:e.getParentOrThrow())}function Cs(e){const t=Ss(e);return null!==t&&"rtl"===t.direction}function Es(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!ii(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]=Rr(e),i=s.is(l),u=t.is(a?l:s),c=t.is(a?s:l);let d,f=0;i?(f=r>o?o:r,d=r>o?r:o):u?(f=a?o:r,d=void 0):c&&(f=0,d=a?r:o);const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=function(e){return(t=ma(e))[Bn]=!0,t;var t}(t)),t.__text=p)}}return t}function Ts(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return To(t)||ys(177),e.offset===t.getChildrenSize()}function As(e){const t=e.getStyle(),n=_s(t);xs.set(t,n)}function Ls(e,t){(Er(e)?e.isCollapsed():mr(e)||To(e))||ys(280);const n=ws(Er(e)?e.style:mr(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);Er(e)||mr(e)?e.setStyle(o):e.setTextStyle(o),xs.set(o,r)}function Rs(e,t){if(Er(e)&&e.isCollapsed()){Ls(e,t);const n=e.anchor.getNode();To(n)&&n.isEmpty()&&Ls(n,t)}!function(e){const t=$r();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if(Er(t))for(const e of rs(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const o=t.getNodes();for(const t of o){if(!mr(t)||!t.canHaveFormat())continue;const[n,o]=r(t);o!==n&&(ii(t)||0===n&&o===t.getTextContentSize()?e(t):e(t.splitText(n,o)[0===n?0:1]))}Er(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=>{Ls(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!To(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),Ls(r,t))}}}function Ms(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function Ns(e){const t=Os(e);return null!==t&&"vertical-rl"===t.writingMode}function Os(e){const t=e.anchor.getNode();return To(t)?ks(t):Ss(t)}function Ps(e,t){let n=Ns(e)?!t:t;Is(e)&&(n=!n);const r=Za(e.focus,n?"previous":"next");if(ls(r))return!1;for(const e of Ua(r)){if(Na(e))return!e.origin.isInline();if(!To(e.origin)){if(Ro(e.origin))return!0;break}}return!1}function Is(e){const t=Os(e);return null!==t&&"rtl"===t.direction}function zs(e,t,n){const r=Is(e);let o;o=Ns(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,o,"character")}function Ds(e,t,n){const r=ws(e.getStyle());return null!==r&&r[t]||n}function js(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(Er(e)&&e.isCollapsed()&&""!==e.style){const n=ws(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))&&mr(i)){const e=Ds(i,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function Fs(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Bs="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Hs=Bs&&"documentMode"in document?document.documentMode:null;function Ws(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function $s(e){const t=_a(e,e=>To(e)&&!e.isInline());return To(t)||Fs(4,e.__key),t}function Us(e){const t=$r()||Ur();let n;if(Er(t))n=Za(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=za(r,"next"))}n=n||Ba(wi(),"previous").getFlipped().insert(Bo())}const r=function(e,t,n){let r=us(t,"next");for(let e=r;e;e=ps(e,n))r=e;return Ra(r)&&Fs(283),r.insert(e.isInline()?Bo().append(e):e),us(za(e.getLatest(),"next"),t.direction)}(e,n),o=Ha(r);return ts(Ka(Na(o)?ss(o):r)),e.getLatest()}function Ks(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}Bs&&"InputEvent"in window&&!Hs&&new window.InputEvent("input");const Gs=Symbol.for("preact-signals");function Vs(){if(Js>1)return void Js--;let e,t=!1;for(;void 0!==qs;){let n=qs;for(qs=void 0,Xs++;void 0!==n;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&rl(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Xs=0,Js--,t)throw e}let Ys,qs;function Qs(e){const t=Ys;Ys=void 0;try{return e()}finally{Ys=t}}let Js=0,Xs=0,Zs=0;function el(e){if(void 0===Ys)return;let t=e.n;return void 0===t||t.t!==Ys?(t={i:0,S:e,p:Ys.s,n:void 0,t:Ys,e:void 0,x:void 0,r:t},void 0!==Ys.s&&(Ys.s.n=t),Ys.s=t,e.n=t,32&Ys.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=Ys.s,t.n=void 0,Ys.s.n=t,Ys.s=t),t):void 0}function tl(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 nl(e,t){return new tl(e,t)}function rl(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 ol(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 il(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 al(e,t){tl.call(this,void 0),this.x=e,this.s=void 0,this.g=Zs-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 sl(e){const t=e.u;if(e.u=void 0,"function"==typeof t){Js++;const n=Ys;Ys=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,ll(e),t}finally{Ys=n,Vs()}}}function ll(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,sl(e)}function ul(e){if(Ys!==this)throw new Error("Out-of-order effect");il(this),Ys=e,this.f&=-2,8&this.f&&ll(this),Vs()}function cl(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 dl(e,t){const n=new cl(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function fl(e,t={}){const n={};for(const r in e){const o=t[r],i=nl(void 0===o?e[r]:o);n[r]=i}return n}function pl(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function hl(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function gl(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]=gl(n[e],r[e]);return e}return t}tl.prototype.brand=Gs,tl.prototype.h=function(){return!0},tl.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:Qs(()=>{var e;null==(e=this.W)||e.call(this)}))},tl.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&&Qs(()=>{var e;null==(e=this.Z)||e.call(this)}))}},tl.prototype.subscribe=function(e){return dl(()=>{const t=this.value,n=Ys;Ys=void 0;try{e(t)}finally{Ys=n}},{name:"sub"})},tl.prototype.valueOf=function(){return this.value},tl.prototype.toString=function(){return this.value+""},tl.prototype.toJSON=function(){return this.value},tl.prototype.peek=function(){const e=Ys;Ys=void 0;try{return this.value}finally{Ys=e}},Object.defineProperty(tl.prototype,"value",{get(){const e=el(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(Xs>100)throw new Error("Cycle detected");this.v=e,this.i++,Zs++,Js++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{Vs()}}}}),al.prototype=new tl,al.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===Zs)return!0;if(this.g=Zs,this.f|=1,this.i>0&&!rl(this))return this.f&=-2,!0;const e=Ys;try{ol(this),Ys=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 Ys=e,il(this),this.f&=-2,!0},al.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)}tl.prototype.S.call(this,e)},al.prototype.U=function(e){if(void 0!==this.t&&(tl.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)}},al.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(al.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=el(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),cl.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()}},cl.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,sl(this),ol(this),Js++;const e=Ys;return Ys=this,ul.bind(this,e)},cl.prototype.N=function(){2&this.f||(this.f|=2,this.o=qs,qs=this)},cl.prototype.d=function(){this.f|=8,1&this.f||ll(this)},cl.prototype.dispose=function(){this.d()};function ml(e){return 0===e.id}function vl(e){return 2===e.id}const bl=new Set;let yl=class{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:0}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):hs;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;vl(t)||hl(306,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:3,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:4,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;4!==t.id&&hl(307,String(t.id),String(5)),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:5,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;5!==n.id&&hl(308,String(n.id),String(5));const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:6})}(n),()=>{const e=this.state;7!==e.id&&hl(309,String(n.id),String(7)),this.state=function(e){return Object.assign(e,{id:5})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return 6!==t.id&&hl(310,String(t.id),String(6)),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:7})}(t),n}getSignal(){return void 0===this._signal&&hl(311),this._signal}getInitResult(){void 0===this.extension.init&&hl(312,this.extension.name);const e=this.state;return function(e){return e.id>=4}(e)||hl(313,String(e.id),String(4)),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>=3}(e)||hl(314,String(e.id),String(3)),{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&&hl(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&hl(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=7}(e)||hl(316,String(e.id),String(7)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||bl}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>=5})(e)||hl(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}};const xl={tag:Un};function _l(){const e=wi();e.isEmpty()&&e.append(Bo())}const wl={config:{setOptions:xl,updateOptions:xl},init:({$initialEditorState:e=_l})=>({$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(function(e){return e instanceof zo}(r))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:[Mo,ar,qn,br,jo]},kl=Symbol.for("@lexical/extension/LexicalBuilder");function Sl(){}function Cl(e){throw e}function El(e){return Array.isArray(e)?e:[e]}const Tl="0.40.0+prod.esm";let Al=class e{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=Tl,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(t){const n=[El(wl)];for(const e of t)n.push(El(e));return new e(n)}static maybeFromEditor(t){const n=t[kl];return n&&(n.PACKAGE_VERSION!==Tl&&hl(292,n.PACKAGE_VERSION,Tl),n instanceof e||hl(293)),n}static fromEditor(t){const n=e.maybeFromEditor(t);return void 0===n&&hl(294),n}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(Uo({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[kl]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=Sl;function t(){try{e()}finally{e=Sl}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=bs(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&&hl(295,e.name),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&&hl(296);const t=El(e),[n]=t;"string"!=typeof n.name&&hl(297,typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&hl(298,n.name),!r){r=new yl(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&hl(299,n.name,e);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&hl(299,n.name,e),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=El(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;ml(o)||hl(300,i,r||"[unknown]"),ml(a=o)||hl(304,String(a.id),String(0)),o=Object.assign(a,{id:1}),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=function(e){return function(e){return 1===e.id}(e)||hl(305,String(e.id),String(1)),Object.assign(e,{id:2})}(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())ml(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&&hl(301,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 bs(...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 pl(a)){if("function"!=typeof e){const t=n.get(e.replace);t&&hl(302,a.name,e.replace.name,t.extension.name),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&&gl(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=Cl),e}};const Ll=new Set(["http:","https:","mailto:","sms:","tel:"]);let Rl=class e extends Eo{__url;__target;__rel;__title;static getType(){return"link"}static clone(t){return new e(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__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),ms(t,e.theme.link),t}updateLinkDOM(e,t,n){if(ia(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:Ml,priority:1})}}static importJSON(e){return Nl().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=Hl(e);try{const t=new URL(Hl(e));if(!Ll.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=Nl(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(!Er(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 Ml(e){let t=null;if(ia(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=Nl(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Nl(e="",t){return ea(new Rl(e,t))}function Ol(e){return e instanceof Rl}let Pl=class e extends Rl{__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(t){return new e(t.__url,{isUnlinked:t.__isUnlinked,rel:t.__rel,target:t.__target,title:t.__title},t.__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 Il().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(To(n)){const e=Il(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(e),e}return null}};function Il(e="",t){return ea(new Pl(e,t))}function zl(e){return e instanceof Pl}const Dl=ut("TOGGLE_LINK_COMMAND");function jl(e,t){if("element"===e.type){const n=e.getNode();return To(n)||function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[e.offset+t]||null}return null}function Fl(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=$r();if(null===a||!Er(a)&&!Ar(a))return;if(Ar(a)){const e=a.getNodes();if(0===e.length)return;return void e.forEach(e=>{if(null===n){const t=_a(e,e=>!zl(e)&&Ol(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=_a(e,e=>!zl(e)&&Ol(e));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==i&&t.setRel(i);else{const t=Nl(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=_a(t,e=>!zl(e)&&Ol(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())||To(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=Nl(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=_a(e,Ol);if(null!==t)return u(t)}!function(e){const t=$r();if(!Er(t))return e();const n=Le(t),r=n.isBackward(),o=jl(n.anchor,r?-1:0),i=jl(n.focus,r?0:-1);if(e(),o||i){const e=$r();if(Er(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")}Si(Le(t))}}}(()=>{let e=null;for(const t of s){if(!t.isAttached())continue;const a=_a(t,Ol);if(a){u(a);continue}if(To(t)){if(!t.isInline())continue;if(Ol(t)){if(!(zl(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();Ol(s)&&s.is(e)?s.append(t):(e=Nl(n,{rel:i,target:r,title:o}),t.insertAfter(e),e.append(t))}})}const Bl=/^\+?[0-9\s()-]{5,}$/;function Hl(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:Bl.test(e)?`tel:${e}`:`https://${e}`}function Wl(e,t){for(let n=0;n<t.length;n++){const r=t[n](e);if(r)return r}return null}const $l=/[.,;\s]/;function Ul(e){return $l.test(e)}function Kl(e){return Ul(e[e.length-1])}function Gl(e){return Ul(e[0])}function Vl(e){let t=e.getPreviousSibling();return To(t)&&(t=t.getLastDescendant()),null===t||Xn(t)||mr(t)&&Kl(t.getTextContent())}function Yl(e){let t=e.getNextSibling();return To(t)&&(t=t.getFirstDescendant()),null===t||Xn(t)||mr(t)&&Gl(t.getTextContent())}function ql(e,t,n,r){return!!(e>0?Ul(n[e-1]):Vl(r[0]))&&(t<n.length?Ul(n[t]):Yl(r[r.length-1]))}function Ql(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 Jl(e,t,n,r){const o=Il(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=gr(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=$r(),c=u?u.getNodes().find(mr):void 0,d=gr(i.getTextContent());return d.setFormat(i.getFormat()),d.setDetail(i.getDetail()),d.setStyle(i.getStyle()),o.append(d,...s),c&&c===i&&(Er(u)?d.select(u.anchor.offset,u.focus.offset):Ar(u)&&d.select(0,d.getTextContent().length)),i.replace(o),l}}function Xl(e,t,n){const r=e.getChildren(),o=r.length;for(let t=0;t<o;t++){const o=r[t];if(!mr(o)||!o.isSimpleText())return Zl(e),void n(null,e.getURL())}const i=e.getTextContent(),a=Wl(i,t);if(null===a||a.text!==i)return Zl(e),void n(null,e.getURL());if(!Vl(e)||!Yl(e))return Zl(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 Zl(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 eu={changeHandlers:[],matchers:[]};function tu(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function nu(e){let t=1,n=e.getParent();for(;null!=n;){if(yu(n)){const e=n.getParent();if(Eu(e)){t++,n=e.getParent();continue}tu(40)}return t}return t}function ru(e){let t=e.getParent();Eu(t)||tu(40);let n=t;for(;null!==n;)n=n.getParent(),Eu(n)&&(t=n);return t}function ou(e){let t=[];const n=e.getChildren().filter(yu);for(let e=0;e<n.length;e++){const r=n[e],o=r.getFirstChild();Eu(o)?t=t.concat(ou(o)):t.push(r)}return t}function iu(e){return yu(e)&&Eu(e.getFirstChild())}function au(e){return bu().append(e)}function su(e,t){return yu(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function lu(e){const t=$r();if(null!==t){let n=t.getNodes();if(Er(t)){const r=t.getStartEndPoints();null===r&&tu(143);const[o]=r,i=o.getNode(),a=i.getParent();if(Xi(i)){const e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=Bo();i.append(e),n=e.select().getNodes()}}else if(su(i,n)){const t=Cu(e);if(Xi(a)){i.replace(t);const e=bu();To(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(yu(i)){const e=i.getParentOrThrow();uu(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const o=n[t];if(To(o)&&o.isEmpty()&&!yu(o)&&!r.has(o.getKey())){cu(o,e);continue}let i=ci(o)?o.getParent():yu(o)&&o.isEmpty()?o:null;for(;null!=i;){const t=i.getKey();if(Eu(i)){if(!r.has(t)){const n=Cu(e);uu(n,i.getChildren()),i.replace(n),r.add(t)}break}{const n=i.getParent();if(Xi(n)&&!r.has(t)){r.add(t),cu(i,e);break}i=n}}}}}function uu(e,t){e.splice(e.getChildrenSize(),0,t)}function cu(e,t){if(Eu(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=bu();let i;if(uu(o,e.getChildren()),Eu(n)&&t===n.getListType())n.append(o),Eu(r)&&t===r.getListType()&&(uu(n,r.getChildren()),r.remove()),i=n;else if(Eu(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const n=Cu(t);n.append(o),e.replace(n),i=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());const a=$r();return Er(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 du(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&iu(n)&&iu(r)&&(du(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function fu(e){const t="check"!==e.getListType();let n=e.getStart();for(const r of e.getChildren())yu(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),Eu(r.getFirstChild())||n++)}function pu(e){const t=new Set;if(iu(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(iu(r)&&iu(o)){const n=o.getFirstChild();if(Eu(n)){n.append(e);const o=r.getFirstChild();Eu(o)&&(uu(n,o.getChildren()),r.remove(),t.add(r.getKey()))}}else if(iu(r)){const t=r.getFirstChild();if(Eu(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(iu(o)){const t=o.getFirstChild();Eu(t)&&t.append(e)}else if(Eu(n)){const t=bu().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),i=Cu(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 hu(e){if(iu(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(Eu(n?n.getParent():void 0)&&yu(n)&&Eu(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=bu(),i=Cu(r);o.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));const a=bu(),s=Cu(r);a.append(s),uu(s,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(a),n.replace(e)}}}let gu=class extends Eo{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;const t=e.getParent();Eu(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:Eo,importDOM:{li:()=>({conversion:mu,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();!Eu(r)||"check"!==r.getListType()||Eu(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;if(i&&i.nested&&(s=i.nested.listitem),void 0!==a&&r.push(...gs(a)),i){const e=n.getParent(),t=Eu(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=gs(s);n.getChildren().some(e=>Eu(e))?r.push(...e):o.push(...e)}o.length>0&&vs(e,...o),r.length>0&&ms(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=ws(t.__textStyle);for(const t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(const t in ws(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(To(n)&&this.canMergeWith(n)){const e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(yu(e))return super.replace(e);this.setIndent(0);const n=this.getParentOrThrow();if(!Eu(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=Cu(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&&(To(e)||tu(139),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){const n=this.getParentOrThrow();if(Eu(n)||tu(39),yu(e))return super.insertAfter(e,t);const r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){const o=Cu(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&&iu(t)&&iu(n)&&(du(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){const n=bu().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){const t=Bo();this.getChildren().forEach(e=>t.append(e));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),o=yu(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 Eu(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(;yu(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&tu(117),(e=Math.floor(e))>=0||tu(199);let t=this.getIndent();for(;t!==e;)t<e?(pu(this),t++):(hu(this),t--);return this}canInsertAfter(e){return yu(e)}canReplaceWith(e){return yu(e)}canMergeWith(e){return yu(e)||Ho(e)}extractWithChild(e,t){if(!Er(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 Cu("bullet")}canMergeWhenEmpty(){return!0}};function mu(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return vu(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 vu(t.children[0]);const t=e.getAttribute("aria-checked");return{node:bu("true"===t||"false"!==t&&void 0)}}function vu(e){return"checkbox"!==e.getAttribute("type")?{node:null}:{node:bu(e.hasAttribute("checked"))}}function bu(e){return ea(new gu(void 0,e))}function yu(e){return e instanceof gu}class xu extends Eo{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();Eu(t)&&e.getListType()===t.getListType()&&du(e,t)}(e),fu(e)},extends:Eo,importDOM:{ol:()=>({conversion:ku,priority:0}),ul:()=>({conversion:ku,priority:0})}})}constructor(e="number",t=1,n){super(n);const r=Su[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,_u(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(_u(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 aa(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];yu(t)||(r===n&&(r=[...n]),r[e]=bu().append(!To(t)||Eu(t)||t.isInline()?t:gr(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return yu(e)}}function _u(e,t,n){const r=[],o=[],i=t.list;if(void 0!==i){const e=i[`${n.__tag}Depth`]||[],t=nu(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(...gs(s));for(let t=0;t<e.length;t++)t!==a&&o.push(n.__tag+t)}if(void 0!==u){const e=gs(u);t>1?r.push(...e):o.push(...e)}}o.length>0&&vs(e,...o),r.length>0&&ms(e,...r)}function wu(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(yu(r)){t.push(r);const e=r.getChildren();e.length>1&&e.forEach(e=>{Eu(e)&&t.push(au(e))})}else t.push(au(r))}return t}function ku(e){const t=e.nodeName.toLowerCase();let n=null;return"ol"===t?n=Cu("number",e.start):"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(aa(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?Cu("check"):Cu("bullet")),{after:wu,node:n}}const Su={ol:"number",ul:"bullet"};function Cu(e="number",t=1){return ea(new xu(e,t))}function Eu(e){return e instanceof xu}const Tu=ut("UPDATE_LIST_START_COMMAND"),Au=ut("INSERT_UNORDERED_LIST_COMMAND"),Lu=ut("INSERT_ORDERED_LIST_COMMAND"),Ru=ut("REMOVE_LIST_COMMAND");function Mu(e){return bs(e.registerCommand(Lu,()=>(lu("number"),!0),1),e.registerCommand(Tu,e=>{const{listNodeKey:t,newStart:n}=e,r=mi(t);return!!Eu(r)&&("number"===r.getListType()&&(r.setStart(n),fu(r)),!0)},1),e.registerCommand(Au,()=>(lu("bullet"),!0),1),e.registerCommand(Ru,()=>(function(){const e=$r();if(Er(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(su(r,n))t.add(ru(r));else for(let e=0;e<n.length;e++){const r=n[e];if(ci(r)){const e=Ws(r,gu);null!=e&&t.add(ru(e))}}for(const n of t){let t=n;const r=ou(n);for(const n of r){const r=Bo().setTextStyle(e.style).setTextFormat(e.format);uu(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&es(e.anchor,ss(Ba(r,"next"))),n.__key===e.focus.key&&es(e.focus,ss(Ba(r,"next"))),n.remove()}n.remove()}}}(),!0),1),e.registerCommand(yt,()=>function(){const e=$r();if(!Er(e)||!e.isCollapsed())return!1;const t=e.anchor.getNode();let n=null;if(yu(t)&&0===t.getChildrenSize())n=t;else if(mr(t)){const e=t.getParent();yu(e)&&e.getChildren().every(e=>mr(e)&&""===e.getTextContent().trim())&&(n=e)}if(null===n)return!1;const r=ru(n),o=n.getParent();Eu(o)||tu(40);const i=o.getParent();let a;if(Xi(i))a=Bo(),r.insertAfter(a);else{if(!yu(i))return!1;a=bu(),i.insertAfter(a)}a.setTextStyle(e.style).setTextFormat(e.format).select();const s=n.getNextSiblings();if(s.length>0){const e=Cu(o.getListType());if(yu(a)){const t=bu();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||!yu(e)&&!Eu(e))break;t=e}t.remove()}(n),!0}(),1),e.registerNodeTransform(gu,e=>{const t=e.getFirstChild();if(t){if(mr(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=$r();Er(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(ar,e=>{const t=e.getParent();if(yu(t)&&e.is(t.getFirstChild())){const n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}))}const Nu=E.createContext(null);function Ou(){const e=E.useContext(Nu);return null==e&&function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}var Pu,Iu,zu={exports:{}},Du={};var ju=(Iu||(Iu=1,zu.exports=function(){if(Pu)return Du;Pu=1;var e=h(),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 Du.Fragment=n,Du.jsx=a,Du.jsxs=a,Du}()),zu.exports);const Fu="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Bu=Fu?E.useLayoutEffect:E.useEffect,Hu={tag:Un};function Wu({initialConfig:e,children:t}){const n=E.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=Uo({editable:e.editable,html:a,namespace:n,nodes:r,onError:e=>o(e,l),theme:t});return function(e,t){if(null!==t)if(void 0===t)e.update(()=>{const t=wi();if(t.isEmpty()){const n=Bo();t.append(n);const r=Fu?document.activeElement:null;(null!==$r()||null!==r&&r===e.getRootElement())&&n.select()}},Hu);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Hu);break}case"object":e.setEditorState(t,Hu);break;case"function":e.update(()=>{wi().isEmpty()&&t(e)},Hu)}}(l,i),[l,s]},[]);return Bu(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),ju.jsx(Nu.Provider,{value:n,children:t})}function $u(e,t){let n=Date.now(),r=0;return(o,i,a,s,l,u)=>{const c=Date.now();if(u.has($n))return r=0,n=c,2;const d=function(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(!(Er(i)&&Er(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||No(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)&&mr(r)&&1===r.__text.length&&1===i.anchor.offset?2:0}const l=s[0],u=e._nodeMap.get(l.__key);if(!mr(u)||!mr(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,g=p.offset,m=d.length-c.length;return 1===m&&g===h-1?2:-1===m&&g===h+1?3:-1===m&&g===h?4:0}(o,i,s,l,e.isComposing()),f=(()=>{const f=null===a||a.editor===e,p=u.has("history-push");if(!p&&f&&u.has(Un))return 0;if(null===o)return 1;const h=i._selection;if(!(s.size>0||l.size>0))return null!==h?0:2;const g="number"==typeof t?t:t.peek();return!1===p&&0!==d&&d===r&&c<n+g&&f||1===s.size&&function(e,t,n){const r=t._nodeMap.get(e),o=n._nodeMap.get(e),i=t._selection,a=n._selection;return!(Er(i)&&Er(a)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!mr(r)||!mr(o)||r.__parent!==o.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>o.exportJSON()))}(Array.from(s)[0],o,i)?0:1})();return n=c,r=d,f}}function Uu(e){e.undoStack=[],e.redoStack=[],e.current=null}function Ku(e,t,n){const r=$u(e,n),o=bs(e.registerCommand(Et,()=>(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(en,!0)),0===r.length&&e.dispatchCommand(tn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:$n})}}(e,t),!0),0),e.registerCommand(Tt,()=>(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(tn,!0));const i=n.pop();0===n.length&&e.dispatchCommand(en,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:$n})}}(e,t),!0),0),e.registerCommand(Xt,()=>(Uu(t),!1),0),e.registerCommand(Zt,()=>(Uu(t),e.dispatchCommand(en,!1),e.dispatchCommand(tn,!1),!0),0),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(en,!1)),null!==l&&(c.push({...l}),e.dispatchCommand(tn,!0));else if(2===f)return;t.current={editor:e,editorState:n}}));return o}function Gu(){return{current:null,redoStack:[],undoStack:[]}}function Vu({delay:e,externalHistoryState:t}){const[n]=Ou();return function(e,t,n=1e3){const r=E.useMemo(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);E.useEffect(()=>Ku(e,r,n),[n,e,r])}(n,t,e),null}function Yu({hasStrictIndent:e=!1}){const[t]=Ou();return E.useEffect(()=>{if(!t.hasNodes([xu,gu]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),E.useEffect(()=>{if(e)return function(e){const t=e=>{const t=e.getParent();if(Eu(e.getFirstChild())||!Eu(t))return;const n=_a(e,e=>yu(e)&&Eu(e.getParent())&&yu(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(yu(n)){const r=n.getPreviousSibling();if(yu(r)){const n=function(e){let t=e,n=t.getFirstChild();for(;Eu(n);){const e=n.getLastChild();if(!yu(e))break;t=e,n=t.getFirstChild()}return t}(r),o=n.getParent();if(Eu(o)){const n=nu(o);n+1<nu(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(xu,e=>{const n=[e];for(;n.length>0;){const e=n.shift();if(Eu(e))for(const r of e.getChildren())if(yu(r)){t(r);const e=r.getFirstChild();Eu(e)&&n.push(e)}}})}(t)},[t,e]),function(e){E.useEffect(()=>Mu(e),[e])}(t),null}function qu({maxIndent:e}){const[t]=Ou();return E.useEffect(()=>function(e,t){return bs(e.registerCommand(Bt,t=>{const n=$r();if(!Er(n))return!1;t.preventDefault();const r=function(e){if(e.getNodes().filter(e=>jr(e)&&e.canIndent()).length>0)return!0;const t=e.anchor,n=e.focus,r=n.isBefore(t)?n:t,o=$s(r.getNode());if(o.canIndent()){const e=o.getKey();let t=Br();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),t=Le(t),t.anchor.is(r))return!0}return!1}(n)?t.shiftKey?$t:Wt:Ht;return e.dispatchCommand(r,void 0)},0),e.registerCommand(Wt,()=>{const e="number"==typeof t?t:t?t.peek():null;if(null==e)return!1;const n=$r();if(!Er(n))return!1;const r=n.getNodes().map(e=>$s(e).getIndent());return Math.max(...r)+1>=e},4))}(t,e),[t,e]),null}function Qu(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=To(t)&&t.excludeFromCopy("html");let a=t;null!==r&&mr(t)&&(a=Es(r,t,"clone"));const s=To(a)?a.getChildren():[],l=Qo(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=Qu(e,i,f,r);!o&&To(t)&&a&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((aa(c)||la(c))&&c.append(f),n.append(c),d){const e=d.call(a,c);e&&(la(c)?c.replaceChildren(e):c.replaceWith(e))}}else n.append(f);return o}const Ju=new Set(["STYLE","SCRIPT"]);function Xu(e,t,n,r,o=new Map,i){let a=[];if(Ju.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||!Xi(s))&&(null!=s&&jr(s)||r);for(let e=0;e<d.length;e++)f.push(...Xu(d[e],t,n,p,new Map(o),s));return null!=c&&(f=c(f)),ca(e)&&(f=function(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const a=t[e];if(jr(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),e===t.length-1||e<t.length-1&&jr(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}(e,f,p?()=>{const e=new Do;return n.push(e),e}:Bo)),null==s?f.length>0?a=a.concat(f):ca(e)&&function(e){return null!=e.nextSibling&&null!=e.previousSibling&&(ua(e.nextSibling)&&ua(e.previousSibling))}(e)&&(a=a.concat(Jn())):To(s)&&s.append(...f),a}function Zu(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function ec(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))return tc(n,function(e){const t=[];for(let n=0;n<e.length;n++){const r=mo(e[n]);mr(r)&&As(r),t.push(r)}return t}(e.nodes),t)}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{return tc(n,function(e,t){const n=si(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!Ju.has(t.nodeName)){const n=Xu(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof Do&&t.insertAfter(Jn());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}(n,(new DOMParser).parseFromString(function(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e):e}(o),"text/html")),t)}catch(e){console.error(e)}const a=i||e.getData("text/uri-list");if(null!=a)if(Er(t)){const e=a.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=$r();if(Er(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([yr()]):n.insertText(r)}}}else t.insertRawText(a)}function tc(e,t,n){e.dispatchCommand(dt,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Er(e)&&e.isCollapsed()){let t=null;const n=Za(e.anchor,"previous");if(n)if(Ra(n))t=n.origin;else{const e=Ga(n,Ba(wi(),"next").getFlipped());for(const n of e){if(mr(n.origin)){t=n.origin;break}if(To(n.origin)&&!n.origin.isInline())break}}if(t&&mr(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 nc(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=To(n)&&n.excludeFromCopy("html");let a=n;null!==t&&mr(a)&&(a=Es(t,a,"clone"));const s=To(a)?a.getChildren():[],l=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Zu(58,n.name),To(e)){const e=t.children;Array.isArray(e)||Zu(59,n.name)}return t}(a);mr(a)&&0===a.getTextContentSize()&&(o=!1);for(let r=0;r<s.length;r++){const i=s[r],a=nc(e,t,i,l.children);!o&&To(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 rc=null;async function oc(e,t,n){if(null!==rc)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(ic(e,t,n))})});const r=e.getRootElement(),o=e._window||window,i=o.document,a=oa(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(qt,r=>(Ks(r,ClipboardEvent)&&(a(),null!==rc&&(o.clearTimeout(rc),rc=null),t(ic(e,r,n))),!0),4);rc=o.setTimeout(()=>{a(),rc=null,t(!1)},50),i.execCommand("copy"),s.remove()})}function ic(e,t,n){if(void 0===n){const t=oa(e._window),r=$r();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!ei(e,o,i))return!1;n=sc(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(function(e,t){for(const[n]of ac)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 ac=[["text/html",function(e,t=$r()){return null==t&&Zu(166),Er(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++)Qu(e,r[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=$r()){return null==t&&Zu(166),Er(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++)nc(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function sc(e=$r()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=fa();for(const[r,o]of ac){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function lc(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 uc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,cc=uc&&"documentMode"in document?document.documentMode:null,dc=uc&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),fc=!(!uc||!("InputEvent"in window)||cc)&&"getTargetRanges"in new window.InputEvent("input"),pc=uc&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),hc=uc&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,gc=uc&&/^(?=.*Chrome).*/i.test(navigator.userAgent),mc=uc&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&dc&&!gc,vc=ut("DRAG_DROP_PASTE_FILE");let bc=class e extends Eo{static getType(){return"quote"}static clone(t){return new e(t.__key)}createDOM(e){const t=document.createElement("blockquote");return ms(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:Sc,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(aa(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 yc().updateFromJSON(e)}insertNewAfter(e,t){const n=Bo(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=Bo();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function yc(){return ea(new bc)}function xc(e){return e instanceof bc}let _c=class e extends Eo{__tag;static getType(){return"heading"}static clone(t){return new e(t.__tag,t.__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){ms(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:kc,priority:0}),h2:e=>({conversion:kc,priority:0}),h3:e=>({conversion:kc,priority:0}),h4:e=>({conversion:kc,priority:0}),h5:e=>({conversion:kc,priority:0}),h6:e=>({conversion:kc,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&wc(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>wc(e)?{conversion:e=>({node:Cc("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(aa(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 Cc(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?Bo():Cc(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=Bo();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?Bo():Cc(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}};function wc(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function kc(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=Cc(t),null!==e.style&&(va(e,n),n.setFormat(e.style.textAlign))),{node:n}}function Sc(e){const t=yc();return null!==e.style&&(t.setFormat(e.style.textAlign),va(e,t)),{node:t}}function Cc(e="h1"){return ea(new _c(e))}function Ec(e){return e instanceof _c}function Tc(e){let t=null;if(Ks(e,DragEvent)?t=e.dataTransfer:Ks(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 Ac(e){const t=$r();if(!Er(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=_a(o,e=>To(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 Lc(e){return Ro(yi(e))}function Rc(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Mc(e){return bs(e.registerCommand(ft,e=>{const t=$r();return!!Ar(t)&&(t.clear(),!0)},0),e.registerCommand(vt,e=>{const t=$r();return Er(t)?(t.deleteCharacter(e),!0):!!Ar(t)&&(t.deleteNodes(),!0)},0),e.registerCommand(kt,e=>{const t=$r();return!!Er(t)&&(t.deleteWord(e),!0)},0),e.registerCommand(St,e=>{const t=$r();return!!Er(t)&&(t.deleteLine(e),!0)},0),e.registerCommand(xt,t=>{const n=$r();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)ec(r,n,e);else if(Er(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},0),e.registerCommand(wt,()=>{const e=$r();return!!Er(e)&&(e.removeText(),!0)},0),e.registerCommand(Ct,e=>{const t=$r();return!!Er(t)&&(t.formatText(e),!0)},0),e.registerCommand(Kt,e=>{const t=$r();if(!Er(t)&&!Ar(t))return!1;const n=t.getNodes();for(const t of n){const n=_a(t,e=>To(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},0),e.registerCommand(bt,e=>{const t=$r();return!!Er(t)&&(t.insertLineBreak(e),!0)},0),e.registerCommand(yt,()=>{const e=$r();return!!Er(e)&&(e.insertParagraph(),!0)},0),e.registerCommand(Ht,()=>(Qr([yr()]),!0),0),e.registerCommand(Wt,()=>Ac(e=>{const t=e.getIndent();e.setIndent(t+1)}),0),e.registerCommand($t,()=>Ac(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),0),e.registerCommand(Ot,e=>{const t=$r();if(Ar(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(Er(t)){const n=$i(t.focus,!0);if(!e.shiftKey&&Ro(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},0),e.registerCommand(Pt,e=>{const t=$r();if(Ar(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(Er(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===wi().getChildrenSize()}(t))return e.preventDefault(),!0;const n=$i(t.focus,!1);if(!e.shiftKey&&Ro(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},0),e.registerCommand(Mt,e=>{const t=$r();if(Ar(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Cs(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!Er(t))return!1;if(Ps(t,!0)){const n=e.shiftKey;return e.preventDefault(),zs(t,n,!0),!0}return!1},0),e.registerCommand(Lt,e=>{const t=$r();if(Ar(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Cs(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!Er(t))return!1;const n=e.shiftKey;return!!Ps(t,!1)&&(e.preventDefault(),zs(t,n,!1),!0)},0),e.registerCommand(Dt,t=>{if(Lc(t.target))return!1;const n=$r();if(Er(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(No(n))return!1;const r=$s(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand($t,void 0);if(hc&&"ko-KR"===navigator.language)return!1}else if(!Ar(n))return!1;return t.preventDefault(),e.dispatchCommand(vt,!0)},0),e.registerCommand(Ft,t=>{if(Lc(t.target))return!1;const n=$r();return!(!Er(n)&&!Ar(n))&&(t.preventDefault(),e.dispatchCommand(vt,!1))},0),e.registerCommand(It,t=>{const n=$r();if(!Er(n))return!1;if(Rc(n),null!==t){if((hc||pc||mc)&&fc)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(bt,!1)}return e.dispatchCommand(yt,void 0)},0),e.registerCommand(jt,()=>!!Er($r())&&(e.blur(),!0),0),e.registerCommand(Ut,t=>{const[,n]=Tc(t);if(n.length>0){const r=lc(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=yi(o);if(null!==i){const e=Br();if(mr(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")}Si(Le(e))}e.dispatchCommand(vc,n)}return t.preventDefault(),!0}return!!Er($r())},0),e.registerCommand(Gt,e=>{const[t]=Tc(e),n=$r();return!(t&&!Er(n))},0),e.registerCommand(Vt,e=>{const[t]=Tc(e),n=$r();if(t&&!Er(n))return!1;const r=lc(e.clientX,e.clientY);if(null!==r){Ro(yi(r.node))&&e.preventDefault()}return!0},0),e.registerCommand(Jt,()=>(function(e){const t=wi();if(Er(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"),Le(e),e}{const e=t.select(0,t.getChildrenSize());Si(Le(e))}}(),!0),0),e.registerCommand(qt,t=>(oc(e,Ks(t,ClipboardEvent)?t:null),!0),0),e.registerCommand(Qt,t=>(async function(e,t){await oc(t,Ks(e,ClipboardEvent)?e:null),t.update(()=>{const e=$r();Er(e)?e.removeText():Ar(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),0),e.registerCommand(_t,t=>{const[,n,r]=Tc(t);return n.length>0&&!r?(e.dispatchCommand(vc,n),!0):(!sa(t.target)||!Zo(t.target))&&(null!==$r()&&(function(e,t){e.preventDefault(),t.update(()=>{const n=$r(),r=Ks(e,InputEvent)||Ks(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&ec(r,n,t)},{tag:"paste"})}(t,e),!0))},0),e.registerCommand(zt,e=>{const t=$r();return Er(t)&&Rc(t),!1},0),e.registerCommand(Bt,e=>{const t=$r();return Er(t)&&Rc(t),!1},0))}function Nc(e,t,n){E.useEffect(()=>{e.hasNodes([Pl])||function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77)}),E.useEffect(()=>function(e,t=eu){const{matchers:n,changeHandlers:r}=t,o=(e,t)=>{for(const n of r)n(e,t)};return bs(e.registerNodeTransform(ar,e=>{const t=e.getParentOrThrow(),r=e.getPreviousSibling();if(zl(t)&&!t.getIsUnlinked())Xl(t,n,o);else if(!Ol(t)){if(e.isSimpleText()&&(Gl(e.getTextContent())||!zl(r))){const t=function(e){const t=[e];let n=e.getNextSibling();for(;null!==n&&mr(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(zl(e)&&!e.getIsUnlinked())return}let r=[...e];const o=r.map(e=>e.getTextContent()).join("");let i,a=o,s=0;for(;(i=Wl(a,t))&&null!==i;){const e=i.index,t=e+i.length;if(ql(s+e,s+t,o,r)){const[o,,l,u]=Ql(r,s+e,s+t);let c=!1;for(const e of l){const t=e.getParent();if(zl(t)&&!t.getIsUnlinked()){c=!0;break}}if(c){s+=t,a=a.substring(t);continue}const d=Jl(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(!zl(r)||r.getIsUnlinked()){if(zl(o)&&!o.getIsUnlinked()&&o.is(e.getPreviousSibling())&&e.getParent()===o.getParent()){if(!Gl(a))return Zl(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=Wl(r,t);null!==i&&i.text===r&&(o.append(e),Xl(o,t,n),n(null,o.getURL()))}}var s;!zl(i)||i.getIsUnlinked()||Kl(a)||i.is(e.getNextSibling())&&e.getParent()===i.getParent()&&(Zl(i),n(null,i.getURL()))}}(e,n,o)}}),e.registerCommand(Dl,e=>{const t=$r();return!(null!==e||!Er(t)||(t.extract().forEach(e=>{const t=e.getParent();zl(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),1))},1))}(e,{changeHandlers:n?[n]:[],matchers:t}),[e,t,n])}function Oc({matchers:e,onChange:t}){const[n]=Ou();return Nc(n,e,t),null}const Pc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function Ic(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function zc(){return function(e){const[t]=Ou(),n=E.useMemo(()=>e(t),[t,e]),[r,o]=E.useState(()=>n.initialValueFn()),i=E.useRef(r);return Pc(()=>{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}(Ic)}const Dc={black:"#000",white:"#fff"},jc="#e57373",Fc="#ef5350",Bc="#f44336",Hc="#d32f2f",Wc="#c62828",$c="#f3e5f5",Uc="#ce93d8",Kc="#ba68c8",Gc="#ab47bc",Vc="#9c27b0",Yc="#7b1fa2",qc="#e3f2fd",Qc="#90caf9",Jc="#42a5f5",Xc="#1976d2",Zc="#1565c0",ed="#4fc3f7",td="#29b6f6",nd="#03a9f4",rd="#0288d1",od="#01579b",id="#81c784",ad="#66bb6a",sd="#4caf50",ld="#388e3c",ud="#2e7d32",cd="#1b5e20",dd="#ffb74d",fd="#ffa726",pd="#ff9800",hd="#f57c00",gd="#e65100",md={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 vd(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 bd=Object.freeze({__proto__:null,default:vd}),yd="$$material";function xd(){return xd=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},xd.apply(null,arguments)}function _d(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 wd=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];if(this.isSpeedy){var n=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{n.insertRule(e,n.cssRules.length)}catch(e){}}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},e}(),kd="-ms-",Sd="-moz-",Cd="-webkit-",Ed="comm",Td="rule",Ad="decl",Ld="@keyframes",Rd=Math.abs,Md=String.fromCharCode,Nd=Object.assign;function Od(e){return e.trim()}function Pd(e,t,n){return e.replace(t,n)}function Id(e,t){return e.indexOf(t)}function zd(e,t){return 0|e.charCodeAt(t)}function Dd(e,t,n){return e.slice(t,n)}function jd(e){return e.length}function Fd(e){return e.length}function Bd(e,t){return t.push(e),e}var Hd=1,Wd=1,$d=0,Ud=0,Kd=0,Gd="";function Vd(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Hd,column:Wd,length:a,return:""}}function Yd(e,t){return Nd(Vd("",null,null,"",null,null,0),e,{length:-e.length},t)}function qd(){return Kd=Ud>0?zd(Gd,--Ud):0,Wd--,10===Kd&&(Wd=1,Hd--),Kd}function Qd(){return Kd=Ud<$d?zd(Gd,Ud++):0,Wd++,10===Kd&&(Wd=1,Hd++),Kd}function Jd(){return zd(Gd,Ud)}function Xd(){return Ud}function Zd(e,t){return Dd(Gd,e,t)}function ef(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 tf(e){return Hd=Wd=1,$d=jd(Gd=e),Ud=0,[]}function nf(e){return Gd="",e}function rf(e){return Od(Zd(Ud-1,sf(91===e?e+2:40===e?e+1:e)))}function of(e){for(;(Kd=Jd())&&Kd<33;)Qd();return ef(e)>2||ef(Kd)>3?"":" "}function af(e,t){for(;--t&&Qd()&&!(Kd<48||Kd>102||Kd>57&&Kd<65||Kd>70&&Kd<97););return Zd(e,Xd()+(t<6&&32==Jd()&&32==Qd()))}function sf(e){for(;Qd();)switch(Kd){case e:return Ud;case 34:case 39:34!==e&&39!==e&&sf(Kd);break;case 40:41===e&&sf(e);break;case 92:Qd()}return Ud}function lf(e,t){for(;Qd()&&e+Kd!==57&&(e+Kd!==84||47!==Jd()););return"/*"+Zd(t,Ud-1)+"*"+Md(47===e?e:Qd())}function uf(e){for(;!ef(Jd());)Qd();return Zd(e,Ud)}function cf(e){return nf(df("",null,null,null,[""],e=tf(e),0,[0],e))}function df(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,h=0,g=1,m=1,v=1,b=0,y="",x=o,_=i,w=r,k=y;m;)switch(h=b,b=Qd()){case 40:if(108!=h&&58==zd(k,d-1)){-1!=Id(k+=Pd(rf(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=rf(b);break;case 9:case 10:case 13:case 32:k+=of(h);break;case 92:k+=af(Xd()-1,7);continue;case 47:switch(Jd()){case 42:case 47:Bd(pf(lf(Qd(),Xd()),t,n),l);break;default:k+="/"}break;case 123*g:s[u++]=jd(k)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:-1==v&&(k=Pd(k,/\f/g,"")),p>0&&jd(k)-d&&Bd(p>32?hf(k+";",r,n,d-1):hf(Pd(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Bd(w=ff(k,t,n,u,c,o,s,y,x=[],_=[],d),i),123===b)if(0===c)df(k,t,w,w,x,i,d,s,_);else switch(99===f&&110===zd(k,3)?100:f){case 100:case 108:case 109:case 115:df(e,w,w,r&&Bd(ff(e,w,w,0,0,o,s,y,o,x=[],d),_),o,_,d,s,r?x:_);break;default:df(k,w,w,w,[""],_,0,s,_)}}u=c=p=0,g=v=1,y=k="",d=a;break;case 58:d=1+jd(k),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==qd())continue;switch(k+=Md(b),b*g){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(jd(k)-1)*v,v=1;break;case 64:45===Jd()&&(k+=rf(Qd())),f=Jd(),c=d=jd(y=k+=uf(Xd())),b++;break;case 45:45===h&&2==jd(k)&&(g=0)}}return i}function ff(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=Fd(f),h=0,g=0,m=0;h<r;++h)for(var v=0,b=Dd(e,d+1,d=Rd(g=a[h])),y=e;v<p;++v)(y=Od(g>0?f[v]+" "+b:Pd(b,/&\f/g,f[v])))&&(l[m++]=y);return Vd(e,t,n,0===o?Td:s,l,u,c)}function pf(e,t,n){return Vd(e,t,n,Ed,Md(Kd),Dd(e,2,-2),0)}function hf(e,t,n,r){return Vd(e,t,n,Ad,Dd(e,0,r),Dd(e,r+1,-1),r)}function gf(e,t){for(var n="",r=Fd(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function mf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ad:return e.return=e.return||e.value;case Ed:return"";case Ld:return e.return=e.value+"{"+gf(e.children,r)+"}";case Td:e.value=e.props.join(",")}return jd(n=gf(e.children,r))?e.return=e.value+"{"+n+"}":""}function vf(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var bf=function(e,t,n){for(var r=0,o=0;r=o,o=Jd(),38===r&&12===o&&(t[n]=1),!ef(o);)Qd();return Zd(e,Ud)},yf=function(e,t){return nf(function(e,t){var n=-1,r=44;do{switch(ef(r)){case 0:38===r&&12===Jd()&&(t[n]=1),e[n]+=bf(Ud-1,t,n);break;case 2:e[n]+=rf(r);break;case 4:if(44===r){e[++n]=58===Jd()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Md(r)}}while(r=Qd());return e}(tf(e),t))},xf=new WeakMap,_f=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)||xf.get(n))&&!r){xf.set(e,!0);for(var o=[],i=yf(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]}}},wf=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function kf(e,t){switch(function(e,t){return 45^zd(e,0)?(((t<<2^zd(e,0))<<2^zd(e,1))<<2^zd(e,2))<<2^zd(e,3):0}(e,t)){case 5103:return Cd+"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 Cd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Cd+e+Sd+e+kd+e+e;case 6828:case 4268:return Cd+e+kd+e+e;case 6165:return Cd+e+kd+"flex-"+e+e;case 5187:return Cd+e+Pd(e,/(\w+).+(:[^]+)/,Cd+"box-$1$2"+kd+"flex-$1$2")+e;case 5443:return Cd+e+kd+"flex-item-"+Pd(e,/flex-|-self/,"")+e;case 4675:return Cd+e+kd+"flex-line-pack"+Pd(e,/align-content|flex-|-self/,"")+e;case 5548:return Cd+e+kd+Pd(e,"shrink","negative")+e;case 5292:return Cd+e+kd+Pd(e,"basis","preferred-size")+e;case 6060:return Cd+"box-"+Pd(e,"-grow","")+Cd+e+kd+Pd(e,"grow","positive")+e;case 4554:return Cd+Pd(e,/([^-])(transform)/g,"$1"+Cd+"$2")+e;case 6187:return Pd(Pd(Pd(e,/(zoom-|grab)/,Cd+"$1"),/(image-set)/,Cd+"$1"),e,"")+e;case 5495:case 3959:return Pd(e,/(image-set\([^]*)/,Cd+"$1$`$1");case 4968:return Pd(Pd(e,/(.+:)(flex-)?(.*)/,Cd+"box-pack:$3"+kd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Cd+e+e;case 4095:case 3583:case 4068:case 2532:return Pd(e,/(.+)-inline(.+)/,Cd+"$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(jd(e)-1-t>6)switch(zd(e,t+1)){case 109:if(45!==zd(e,t+4))break;case 102:return Pd(e,/(.+:)(.+)-([^]+)/,"$1"+Cd+"$2-$3$1"+Sd+(108==zd(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Id(e,"stretch")?kf(Pd(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==zd(e,t+1))break;case 6444:switch(zd(e,jd(e)-3-(~Id(e,"!important")&&10))){case 107:return Pd(e,":",":"+Cd)+e;case 101:return Pd(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Cd+(45===zd(e,14)?"inline-":"")+"box$3$1"+Cd+"$2$3$1"+kd+"$2box$3")+e}break;case 5936:switch(zd(e,t+11)){case 114:return Cd+e+kd+Pd(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Cd+e+kd+Pd(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Cd+e+kd+Pd(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Cd+e+kd+e+e}return e}var Sf,Cf,Ef,Tf,Af=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ad:e.return=kf(e.value,e.length);break;case Ld:return gf([Yd(e,{value:Pd(e.value,"@","@"+Cd)})],r);case Td: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 gf([Yd(e,{props:[Pd(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return gf([Yd(e,{props:[Pd(t,/:(plac\w+)/,":"+Cd+"input-$1")]}),Yd(e,{props:[Pd(t,/:(plac\w+)/,":-moz-$1")]}),Yd(e,{props:[Pd(t,/:(plac\w+)/,kd+"input-$1")]})],r)}return""})}}],Lf=function(e){var t=e.key;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,o,i=e.stylisPlugins||Af,a={},s=[];r=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,u,c=[mf,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=Fd(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([_f,wf].concat(i,c));o=function(e,t,n,r){l=n,function(e){gf(cf(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new wd({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return f.sheet.hydrate(s),f},Rf={exports:{}},Mf={};function Nf(){return Cf||(Cf=1,Rf.exports=function(){if(Sf)return Mf;Sf=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,g=e?Symbol.for("react.block"):60121,m=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 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 y(e)===u}return Mf.AsyncMode=l,Mf.ConcurrentMode=u,Mf.ContextConsumer=s,Mf.ContextProvider=a,Mf.Element=t,Mf.ForwardRef=c,Mf.Fragment=r,Mf.Lazy=h,Mf.Memo=p,Mf.Portal=n,Mf.Profiler=i,Mf.StrictMode=o,Mf.Suspense=d,Mf.isAsyncMode=function(e){return x(e)||y(e)===l},Mf.isConcurrentMode=x,Mf.isContextConsumer=function(e){return y(e)===s},Mf.isContextProvider=function(e){return y(e)===a},Mf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Mf.isForwardRef=function(e){return y(e)===c},Mf.isFragment=function(e){return y(e)===r},Mf.isLazy=function(e){return y(e)===h},Mf.isMemo=function(e){return y(e)===p},Mf.isPortal=function(e){return y(e)===n},Mf.isProfiler=function(e){return y(e)===i},Mf.isStrictMode=function(e){return y(e)===o},Mf.isSuspense=function(e){return y(e)===d},Mf.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===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Mf.typeOf=y,Mf}()),Rf.exports}var Of=function(){if(Tf)return Ef;Tf=1;var e=Nf(),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 Ef=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),g=i(r),m=0;m<p.length;++m){var v=p[m];if(!(n[v]||o&&o[v]||g&&g[v]||h&&h[v])){var b=u(r,v);try{a(t,v,b)}catch(e){}}}}return t},Ef}(),Pf=o(Of);function If(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var zf=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Df=function(e,t,n){zf(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 jf={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},Ff=/[A-Z]|^ms/g,Bf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hf=function(e){return 45===e.charCodeAt(1)},Wf=function(e){return null!=e&&"boolean"!=typeof e},$f=vf(function(e){return Hf(e)?e:e.replace(Ff,"-$&").toLowerCase()}),Uf=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Bf,function(e,t,n){return Gf={name:t,styles:n,next:Gf},t})}return 1===jf[e]||Hf(e)||"number"!=typeof t||0===t?t:t+"px"};function Kf(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Gf={name:o.name,styles:o.styles,next:Gf},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Gf={name:a.name,styles:a.styles,next:Gf},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+=Kf(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]+"}":Wf(s)&&(r+=$f(i)+":"+Uf(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Kf(e,t,a);switch(i){case"animation":case"animationName":r+=$f(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Wf(a[u])&&(r+=$f(i)+":"+Uf(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Gf,l=n(e);return Gf=s,Kf(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Gf,Vf=/label:\s*([^\s;{]+)\s*(;|$)/g;function Yf(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="";Gf=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Kf(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Kf(n,t,e[a]),r)o+=i[a]}Vf.lastIndex=0;for(var s,l="";null!==(s=Vf.exec(o));)l+="-"+s[1];var u=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)+l;return{name:u,styles:o,next:Gf}}var qf,Qf,Jf=!!A.useInsertionEffect&&A.useInsertionEffect,Xf=Jf||function(e){return e()},Zf=Jf||E.useLayoutEffect,ep=E.createContext("undefined"!=typeof HTMLElement?Lf({key:"css"}):null),tp=ep.Provider,np=function(e){return E.forwardRef(function(t,n){var r=E.useContext(ep);return e(t,r,n)})},rp=E.createContext({}),op={}.hasOwnProperty,ip="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ap=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return zf(t,n,r),Xf(function(){return Df(t,n,r)}),null},sp=np(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[ip],i=[r],a="";"string"==typeof e.className?a=If(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Yf(i,void 0,E.useContext(rp));a+=t.key+"-"+s.name;var l={};for(var u in e)op.call(e,u)&&"css"!==u&&u!==ip&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),E.createElement(E.Fragment,null,E.createElement(ap,{cache:t,serialized:s,isStringTag:"string"==typeof o}),E.createElement(o,l))}),lp=sp,up=function(e,t){var n=arguments;if(null==t||!op.call(t,"css"))return E.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=lp,o[1]=function(e,t){var n={};for(var r in t)op.call(t,r)&&(n[r]=t[r]);return n[ip]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return E.createElement.apply(null,o)};qf=up||(up={}),Qf||(Qf=qf.JSX||(qf.JSX={}));var cp=np(function(e,t){var n=Yf([e.styles],void 0,E.useContext(rp)),r=E.useRef();return Zf(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]),Zf(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Df(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 dp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yf(t)}function fp(){var e=dp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var pp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,hp=vf(function(e){return pp.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),gp=function(e){return"theme"!==e},mp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?hp:gp},vp=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},bp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return zf(t,n,r),Xf(function(){return Df(t,n,r)}),null},yp=function e(t,n){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=vp(t,n,i),l=s||mp(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];d.push(f[0]);for(var p=c.length,h=1;h<p;h++)d.push(c[h],f[h])}var g=np(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=E.useContext(rp)}"string"==typeof e.className?i=If(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=Yf(d.concat(c),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=u&&void 0===s?mp(r):l,m={};for(var v in e)u&&"as"===v||g(v)&&(m[v]=e[v]);return m.className=i,n&&(m.ref=n),E.createElement(E.Fragment,null,E.createElement(bp,{cache:t,serialized:h,isStringTag:"string"==typeof r}),E.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,xd({},n,r,{shouldForwardProp:vp(g,r,!0)})).apply(void 0,d)},g}}.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){yp[e]=yp(e)});var xp,_p,wp,kp,Sp,Cp={exports:{}};function Ep(){if(_p)return xp;_p=1;return xp="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Tp(){if(kp)return wp;kp=1;var e=Ep();function t(){}function n(){}return n.resetWarningCache=t,wp=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 Ap(){return Sp||(Sp=1,Cp.exports=Tp()()),Cp.exports}var Lp=o(Ap());const Rp=new Map;function Mp(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 ju.jsx(cp,{styles:r})}
16
+ */function k(){if(v)return c;v=1;var e=h(),t=w();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]*$/,d={},f={};function p(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 g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new p(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new p(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new p(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){g[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new p(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new p(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new p(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=g.hasOwnProperty(t)?g[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(f,e)||!l.call(d,e)&&(u.test(e)?f[e]=!0:(d[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(m,b);g[t]=new p(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(m,b);g[t]=new p(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(m,b);g[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),A=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),I=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||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 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,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 W(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 $(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 S:return"Fragment";case k:return"Portal";case E:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case M:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case L: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:$(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return $(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 $(t);case 8:return t===C?"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 V(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 Y(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 Q(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 J(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)&&y(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 ge(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 me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(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 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 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 Le(){}var Re=!1;function Me(e,t,n){if(Re)return e(t,n);Re=!0;try{return Ae(e,t,n)}finally{Re=!1,(null!==ke||null!==Se)&&(Le(),Te())}}function Ne(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 Ie(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 ze=!1,De=null,je=!1,Fe=null,Be={onError:function(e){ze=!0,De=e}};function He(e,t,n,r,o,i,a,s,l){ze=!1,De=null,Ie.apply(Be,arguments)}function We(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 $e(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(We(e)!==e)throw Error(n(188))}function Ke(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=We(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 Ve=t.unstable_scheduleCallback,Ye=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Qe=t.unstable_requestPaint,Je=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&&0===(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 gt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function mt(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,wt,kt,St,Ct,Et=!1,Tt=[],At=null,Lt=null,Rt=null,Mt=new Map,Nt=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 It(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function zt(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=yo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(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!==Lt&&jt(Lt)&&(Lt=null),null!==Rt&&jt(Rt)&&(Rt=null),Mt.forEach(Ft),Nt.forEach(Ft)}function Ht(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Wt(e){function t(t){return Ht(t,e)}if(0<Tt.length){Ht(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Ht(At,e),null!==Lt&&Ht(Lt,e),null!==Rt&&Ht(Rt,e),Mt.forEach(t),Nt.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 $t=x.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var o=yt,i=$t.transition;$t.transition=null;try{yt=1,Vt(e,t,n,r)}finally{yt=o,$t.transition=i}}function Gt(e,t,n,r){var o=yt,i=$t.transition;$t.transition=null;try{yt=4,Vt(e,t,n,r)}finally{yt=o,$t.transition=i}}function Vt(e,t,n,r){if(Ut){var o=qt(e,t,n,r);if(null===o)Ur(e,t,r,Yt,n),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=zt(At,e,t,n,r,o),!0;case"dragenter":return Lt=zt(Lt,e,t,n,r,o),!0;case"mouseover":return Rt=zt(Rt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Mt.set(i,zt(Mt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Nt.set(i,zt(Nt.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))&&Ur(e,t,r,Yt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Yt=null;function qt(e,t,n,r){if(Yt=null,null!==(e=yo(e=_e(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(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 Yt=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(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 Jt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Jt?Jt.value:Jt.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),gn=on(j({},pn,{dataTransfer:0})),mn=on(j({},dn,{relatedTarget:0})),vn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),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})),Ln=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Rn=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=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}),Nn=on(Mn),On=[9,13,27,32],Pn=s&&"CompositionEvent"in window,In=null;s&&"documentMode"in document&&(In=document.documentMode);var zn=s&&"TextEvent"in window&&!In,Dn=s&&(!Pn||In&&8<In&&11>=In),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 Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var $n={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?!!$n[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,Vn=null;function Yn(e){jr(e,0)}function qn(e){if(Y(_o(e)))return e}function Qn(e,t){if("change"===e)return t}var Jn=!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;Jn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Vn=Gn=null)}function nr(e){if("value"===e.propertyName&&qn(Vn)){var t=[];Kn(t,Vn,e,_e(e)),Me(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Vn)}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 gr=s&&"documentMode"in document&&11>=document.documentMode,mr=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==mr||mr!==q(r)||("selectionStart"in(r=mr)&&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&&lr(br,r)||(br=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}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"),Lr=Cr("transitionend"),Rr=new Map,Mr="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 Nr(e,t){Rr.set(e,t),i(t,[e])}for(var Or=0;Or<Mr.length;Or++){var Pr=Mr[Or];Nr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Nr(Er,"onAnimationEnd"),Nr(Tr,"onAnimationIteration"),Nr(Ar,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Lr,"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(" "),zr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));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(He.apply(this,arguments),ze){if(!ze)throw Error(n(198));var c=De;ze=!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[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Hr]){e[Hr]=!0,r.forEach(function(t){"selectionchange"!==t&&(zr.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 $r(e,t,n,r){switch(Qt(t)){case 1:var o=Kt;break;case 4:o=Gt;break;default:o=Vt}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=yo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Me(function(){var r=i,o=_e(n),a=[];e:{var s=Rr.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=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;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=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ln;break;case Er:case Tr:case Ar:l=vn;break;case Lr:l=Rn;break;case"scroll":l=fn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=yn;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 g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Ne(h,f))&&c.push(Kr(h,g,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)||!yo(u)&&!u[go])&&(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)?yo(u):null)&&(u!==(d=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=hn,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:_o(l),p=null==u?s:_o(u),(s=new c(g,h+"leave",l,n,o)).target=d,s.relatedTarget=p,g=null,yo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,g=c),d=g,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Vr(p))h++;for(p=0,g=f;g;g=Vr(g))p++;for(;0<h-p;)c=Vr(c),h--;for(;0<p-h;)f=Vr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Vr(c),f=Vr(f)}c=null}else c=null;null!==l&&Yr(a,s,l,c,!1),null!==u&&null!==d&&Yr(a,d,u,c,!0)}if("select"===(l=(s=r?_o(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Qn;else if(Un(s))if(Jn)m=ar;else{m=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ir);switch(m&&(m=m(e,r))?Kn(a,m,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)&&(mr=v,vr=r,br=null);break;case"focusout":br=vr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,o);break;case"selectionchange":if(gr)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 Wn?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Dn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Wn&&(b=en()):(Xt="value"in(Jt=o)?Jt.value:Jt.textContent,Wn=!0)),0<(v=Gr(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=zn?function(e,t){switch(e){case"compositionend":return Hn(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(Wn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Zt=Xt=Jt=null,Wn=!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=b))}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=Ne(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Ne(e,t))&&r.push(Kr(e,i,o))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(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=Ne(n,i))&&a.unshift(Kr(n,l,s)):o||null!=(l=Ne(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,Qr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Qr,"")}function Xr(e,t,r){if(t=Jr(t),Jr(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 Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(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,go="__reactContainer$"+fo,mo="__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[go]||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[go])||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={},Lo=Co(Ao),Ro=Co(!1),Mo=Ao;function No(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(Ro),Eo(Lo)}function Io(e,t,r){if(Lo.current!==Ao)throw Error(n(168));To(Lo,t),To(Ro,r)}function zo(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,Mo=Lo.current,To(Lo,e),To(Ro,Ro.current),!0}function jo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=zo(e,t,Mo),o.__reactInternalMemoizedMergedChildContext=e,Eo(Ro),Eo(Lo),To(Lo,e)):Eo(Ro),To(Ro,r)}var Fo=null,Bo=!1,Ho=!1;function Wo(e){null===Fo?Fo=[e]:Fo.push(e)}function $o(){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)),Ve(Ze,$o),t}finally{yt=t,Ho=!1}}return null}var Uo=[],Ko=0,Go=null,Vo=0,Yo=[],qo=0,Qo=null,Jo=1,Xo="";function Zo(e,t){Uo[Ko++]=Vo,Uo[Ko++]=Go,Go=e,Vo=t}function ei(e,t,n){Yo[qo++]=Jo,Yo[qo++]=Xo,Yo[qo++]=Qo,Qo=e;var r=Jo;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,Jo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Jo=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,Vo=Uo[--Ko],Uo[Ko]=null;for(;e===Qo;)Qo=Yo[--qo],Yo[qo]=null,Xo=Yo[--qo],Yo[qo]=null,Jo=Yo[--qo],Yo[qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Mu(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!==Qo?{id:Jo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mu(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 gi(e){null===ai?ai=[e]:ai.push(e)}var mi=x.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=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===S?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=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=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=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case k:return(t=ju(t,e.mode,n)).return=e,t;case O:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||z(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:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?u(e,t,n,r):null;case k: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)||z(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 l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k: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)||z(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function g(n,i,s,l){for(var u=null,c=null,d=i,g=i=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=p(n,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,g),null===c?u=v:c.sibling=v,c=v,d=m}if(g===s.length)return r(n,d),ii&&Zo(n,g),u;if(null===d){for(;g<s.length;g++)null!==(d=f(n,s[g],l))&&(i=a(d,i,g),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(n,g),u}for(d=o(n,d);g<s.length;g++)null!==(m=h(d,n,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=a(m,i,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(n,e)}),ii&&Zo(n,g),u}function m(i,s,l,u){var c=z(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,g=s,m=s=0,v=null,b=l.next();null!==g&&!b.done;m++,b=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var y=p(i,g,b.value,u);if(null===y){null===g&&(g=v);break}e&&g&&null===y.alternate&&t(i,g),s=a(y,s,m),null===d?c=y:d.sibling=y,d=y,g=v}if(b.done)return r(i,g),ii&&Zo(i,m),c;if(null===g){for(;!b.done;m++,b=l.next())null!==(b=f(i,b.value,u))&&(s=a(b,s,m),null===d?c=b:d.sibling=b,d=b);return ii&&Zo(i,m),c}for(g=o(i,g);!b.done;m++,b=l.next())null!==(b=h(g,i,m,b.value,u))&&(e&&null!==b.alternate&&g.delete(null===b.key?m:b.key),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b);return e&&g.forEach(function(e){return t(i,e)}),ii&&Zo(i,m),c}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===S){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===S?((o=Iu(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 k: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 O:return e(n,o,(c=a._init)(a._payload),l)}if(ne(a))return g(n,o,a,l);if(z(a))return m(n,o,a,l);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=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 Li(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 Ri(e,t){Si=e,Ei=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Mi(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 Ni=null;function Oi(e){null===Ni?Ni=[e]:Ni.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,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 zi=!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,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(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 Wi(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 $i(e,t,n,r){var o=e.updateQueue;zi=!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,g=s;switch(f=t,p=n,g.tag){case 1:if("function"==typeof(h=g.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=g.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:zi=!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);zl|=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),Vi=Co(Ki),Yi=Co(Ki);function qi(e){if(e===Ki)throw Error(n(174));return e}function Qi(e,t){switch(To(Yi,t),To(Vi,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 Ji(){Eo(Gi),Eo(Vi),Eo(Yi)}function Xi(e){qi(Yi.current);var t=qi(Gi.current),n=ue(t,e.type);t!==n&&(To(Vi,e),To(Gi,n))}function Zi(e){Vi.current===e&&(Eo(Gi),Eo(Vi))}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=x.ReactCurrentDispatcher,ia=x.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(n(321))}function ga(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 ma(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 ba(){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 ya(){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=ya(),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,zl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,sr(o,t.memoizedState)||(ys=!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,zl|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(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 s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(ys=!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=ya(),i=t(),a=!sr(o.memoizedState,i);if(a&&(o.memoizedState=i,ys=!0),o=o.queue,za(Ta.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(r.flags|=2048,Ma(9,Ea.bind(null,r,o,i,t),void 0,null),null===Ll)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)&&La(e)}function Ta(e,t,n){return n(function(){Aa(t)&&La(e)})}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function La(e){var t=Ii(e,1);null!==t&&nu(t,e,1,-1)}function Ra(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=Ya.bind(null,sa,e),[t.memoizedState,e]}function Ma(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 Na(){return ya().memoizedState}function Oa(e,t,n,r){var o=ba();sa.flags|=e,o.memoizedState=Ma(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!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Ma(t,n,i,r))}sa.flags|=e,o.memoizedState=Ma(1|t,n,i,r)}function Ia(e,t){return Oa(8390656,8,e,t)}function za(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 Ha(){}function Wa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&aa?(sr(n,t)||(n=gt(),sa.lanes|=n,zl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n)}function Ka(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 Ga(){return ya().memoizedState}function Va(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()),Ja(n,t,r)}}function Ya(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,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()),Ja(n,t,r))}}function qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}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 Ja(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Xa={readContext:Mi,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:Mi,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Mi,useEffect:Ia,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=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=Va.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Ra,useDebugValue:Ha,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Ra(!1),t=e[0];return e=Ka.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=sa,i=ba();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ll)throw Error(n(349));30&aa||Ca(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ia(Ta.bind(null,o,a,e),[e]),o.flags|=2048,Ma(9,Ea.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ba(),t=Ll.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Jo&~(1<<32-at(Jo)-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:Mi,useCallback:Wa,useContext:Mi,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:$a,useReducer:_a,useRef:Na,useState:function(){return _a(xa)},useDebugValue:Ha,useDeferredValue:function(e){return Ua(ya(),la.memoizedState,e)},useTransition:function(){return[_a(xa)[0],ya().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Mi,useCallback:Wa,useContext:Mi,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:Da,useLayoutEffect:ja,useMemo:$a,useReducer:wa,useRef:Na,useState:function(){return wa(xa)},useDebugValue:Ha,useDeferredValue:function(e){var t=ya();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ya().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)&&We(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 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=Mi(i):(o=Oo(t)?Mo:Lo.current,i=(r=null!=(r=t.contextTypes))?No(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=Mi(i):(i=Oo(t)?Mo:Lo.current,o.context=No(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),$i(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+=W(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 gs(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 ms(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 bs=x.ReactCurrentOwner,ys=!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 Ri(t,o),r=ma(e,t,n,r,i,o),n=va(),null===e||ys?(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||Nu(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,0===(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(ys=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);131072&e.flags&&(ys=!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,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ol,Nl),Nl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ol,Nl),Nl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ol,Nl),Nl|=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)?Mo:Lo.current;return i=No(t,i),Ri(t,o),n=ma(e,t,n,r,i,o),r=va(),null===e||ys?(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(Ri(t,o),null===t.stateNode)$s(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=Mi(u):u=No(t,u=Oo(n)?Mo:Lo.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),zi=!1;var f=t.memoizedState;a.state=f,$i(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Ro.current||zi?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=zi||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=Mi(l):l=No(t,l=Oo(n)?Mo:Lo.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),zi=!1,f=t.memoizedState,a.state=f,$i(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Ro.current||zi?("function"==typeof p&&(rs(t,n,p,r),h=t.memoizedState),(u=zi||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,bs.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 Ls(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 Rs(e,t,n,r,o){return hi(),gi(o),t.flags|=256,xs(e,t,n,r),t.child}var Ms,Ns,Os,Ps,Is={dehydrated:null,treeContext:null,retryLane:0};function zs(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=zu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Iu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=zs(r),t.memoizedState=Is,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=zu({mode:"visible",children:o.children},i,0,null),(a=Iu(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=zs(s),t.memoizedState=Is,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=0!==(s&e.childLanes),ys||l){if(null!==(o=Ll)){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=0!==(i&(o.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ii(e,i),nu(o,e,i,-1))}return gu(),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&&(Yo[qo++]=Jo,Yo[qo++]=Xo,Yo[qo++]=Qo,Jo=e.id,Xo=e.overflow,Qo=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=Iu(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)?zs(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Is,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=zu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&gi(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),Li(e.return,t,n)}function Hs(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 Ws(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),Hs(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}Hs(t,!0,n,null,i);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function $s(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),zl|=t.lanes,0===(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 Vs(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,Ji(),Eo(Ro),Eo(Lo),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))),Ns(e,t),Gs(t),null;case 5:Zi(t);var a=qi(Yi.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<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":J(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 be(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":V(i),ee(i,s,!0);break;case"textarea":V(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,Ms(e,t,!1,!1),t.stateNode=e;e:{switch(l=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":J(e,i),a=Q(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 be(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?me(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&&y(e,s,c,l))}switch(r){case"input":V(e),ee(e,i,!1);break;case"textarea":V(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(Yi.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):gu())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Ji(),Ns(e,t),null===e&&Wr(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&&Je()>Wl&&(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*Je()-s.renderingStartTime>Wl&&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=Je(),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&Nl)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ys(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 Ji(),Eo(Ro),Eo(Lo),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 Ji(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ms=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}},Ns=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=Q(e,i),r=Q(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 be(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,Qs=!1,Js="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[mo],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 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:Qs||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),Wt(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(!Qs&&(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(!Qs&&(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?(Qs=(r=Qs)||null!==n.memoizedState,fl(e,t,n),Qs=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 Js),t.forEach(function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gl(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;)ml(t,e),t=t.sibling}function ml(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(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:gl(t,e),vl(e),512&o&&null!==r&&Zs(r,r.return);break;case 5:if(gl(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),ye(l,s);var c=ye(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?me(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):y(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(gl(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(gl(t,e),vl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(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||(Hl=Je())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Qs=(c=Qs)||d,gl(t,e),Qs=c):gl(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 g=p.stateNode;if("function"==typeof g.componentWillUnmount){o=p,r=p.return;try{t=o,g.props=t.memoizedProps,g.state=t.memoizedState,g.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=ge("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:gl(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 bl(e,t,n){Xs=e,yl(e)}function yl(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||Qs;s=qs;var u=Qs;if(qs=a,(Qs=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,yl(i),i=i.sibling;Xs=o,qs=s,Qs=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:Qs||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Qs)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&&Wt(f)}}}break;default:throw Error(n(163))}Qs||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=x.ReactCurrentDispatcher,El=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,Al=0,Ll=null,Rl=null,Ml=0,Nl=0,Ol=Co(0),Pl=0,Il=null,zl=0,Dl=0,jl=0,Fl=null,Bl=null,Hl=0,Wl=1/0,$l=null,Ul=!1,Kl=null,Gl=null,Vl=!1,Yl=null,ql=0,Ql=0,Jl=null,Xl=-1,Zl=0;function eu(){return 6&Al?Je():-1!==Xl?Xl:Xl=Je()}function tu(e){return 1&e.mode?2&Al&&0!==Ml?Ml&-Ml:null!==mi.transition?(0===Zl&&(Zl=gt()),Zl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function nu(e,t,r,o){if(50<Ql)throw Ql=0,Jl=null,Error(n(185));vt(e,r,o),2&Al&&e===Ll||(e===Ll&&(!(2&Al)&&(Dl|=r),4===Pl&&su(e,Ml)),ru(e,o),1===r&&0===Al&&!(1&t.mode)&&(Wl=Je()+500,Bo&&$o()))}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?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Ll?Ml:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Bo=!0,Wo(e)}(lu.bind(null,e)):Wo(lu.bind(null,e)),ao(function(){!(6&Al)&&$o()}),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=Lu(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===Ll?Ml:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=mu(e,o);else{t=o;var i=Al;Al|=2;var a=hu();for(Ll===e&&Ml===t||($l=null,Wl=Je()+500,fu(e,t));;)try{bu();break}catch(t){pu(e,t)}Ti(),Cl.current=a,Al=i,null!==Rl?t=0:(Ll=null,Ml=0,t=Pl)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(o=i,t=iu(e,i))),1===t)throw r=Il,fu(e,0),su(e,o),ru(e,Je()),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=mu(e,o),2===t&&(a=ht(e),0!==a&&(o=a,t=iu(e,a))),1!==t)))throw r=Il,fu(e,0),su(e,o),ru(e,Je()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:_u(e,Bl,$l);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=Hl+500-Je())){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,$l),t);break}_u(e,Bl,$l);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=Je()-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,$l),o);break}_u(e,Bl,$l);break;default:throw Error(n(329))}}}return ru(e,Je()),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=mu(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,Je()),null;var r=mu(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=Il,fu(e,0),su(e,t),ru(e,Je()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Bl,$l),ru(e,Je()),null}function uu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Wl=Je()+500,Bo&&$o())}}function cu(e){null!==Yl&&0===Yl.tag&&!(6&Al)&&wu();var t=Al;Al|=1;var n=Tl.transition,r=yt;try{if(Tl.transition=null,yt=1,e)return e()}finally{yt=r,Tl.transition=n,!(6&(Al=t))&&$o()}}function du(){Nl=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!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:Ji(),Eo(Ro),Eo(Lo),ra();break;case 5:Zi(r);break;case 4:Ji();break;case 13:case 19:Eo(ea);break;case 10:Ai(r.type._context);break;case 22:case 23:du()}n=n.return}if(Ll=e,Rl=e=Ou(e.current,null),Ml=Nl=t,Pl=0,Il=null,jl=Dl=zl=0,Bl=Fl=null,null!==Ni){for(t=0;t<Ni.length;t++)if(null!==(r=(n=Ni[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}Ni=null}return e}function pu(e,t){for(;;){var r=Rl;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,Il=t,Rl=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Ml,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=ms(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&gs(a,c,t),u=c;var g=(t=h).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(!(1&t)){gs(a,c,t),gu();break e}u=Error(n(426))}else if(ii&&1&l.mode){var v=ms(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),gi(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,Wi(a,ps(0,u,t));break e;case 1:l=u;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Gl&&Gl.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Rl===r&&null!==r&&(Rl=r=r.return);continue}break}}function hu(){var e=Cl.current;return Cl.current=Xa,null===e?Xa:e}function gu(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Ll||!(268435455&zl)&&!(268435455&Dl)||su(Ll,Ml)}function mu(e,t){var r=Al;Al|=2;var o=hu();for(Ll===e&&Ml===t||($l=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(Ti(),Al=r,Cl.current=o,null!==Rl)throw Error(n(261));return Ll=null,Ml=0,Pl}function vu(){for(;null!==Rl;)yu(Rl)}function bu(){for(;null!==Rl&&!qe();)yu(Rl)}function yu(e){var t=kl(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?xu(e):Rl=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=Ys(n,t)))return n.flags&=32767,void(Rl=n);if(null===e)return Pl=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Vs(n,t,Nl)))return void(Rl=n);if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Pl&&(Pl=5)}function _u(e,t,r){var o=yt,i=Tl.transition;try{Tl.transition=null,yt=1,function(e,t,r,o){do{wu()}while(null!==Yl);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===Ll&&(Rl=Ll=null,Ml=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Vl||(Vl=!0,Lu(tt,function(){return wu(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=yt;yt=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 g=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!==g){var m=g.memoizedProps,v=g.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),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){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}g=tl,tl=!1}(e,r),ml(r,e),hr(to),Ut=!!eo,to=eo=null,e.current=r,bl(r),Qe(),Al=l,yt=s,Tl.transition=a}else e.current=r;if(Vl&&(Vl=!1,Yl=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,Je()),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===Jl?Ql++:(Ql=0,Jl=e):Ql=0,$o()}(e,t,r,o)}finally{Tl.transition=i,yt=o}return null}function wu(){if(null!==Yl){var e=xt(ql),t=Tl.transition,r=yt;try{if(Tl.transition=null,yt=16>e?16:e,null===Yl)var o=!1;else{if(e=Yl,Yl=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 g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}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 b=a.sibling;if(null!==b){b.return=a.return,Xs=b;break e}Xs=a.return}}var y=e.current;for(Xs=y;null!==Xs;){var x=(s=Xs).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Xs=x;else e:for(s=y;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,$o(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{yt=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,Ll===e&&(Ml&n)===n&&(4===Pl||3===Pl&&(130023424&Ml)===Ml&&500>Je()-Hl?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=Ii(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 Lu(e,t){return Ve(e,t)}function Ru(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 Mu(e,t,n,r){return new Ru(e,t,n,r)}function Nu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Mu(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)Nu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Iu(r.children,i,a,t);case C:s=8,i|=8;break;case E:return(e=Mu(12,r,t,2|i)).elementType=E,e.lanes=a,e;case R:return(e=Mu(13,r,t,i)).elementType=R,e.lanes=a,e;case M:return(e=Mu(19,r,t,i)).elementType=M,e.lanes=a,e;case P:return zu(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case A:s=9;break e;case L:s=11;break e;case N:s=14;break e;case O:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Mu(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Iu(e,t,n,r){return(e=Mu(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=Mu(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Mu(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Mu(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=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(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=Mu(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 Hu(e){if(!e)return Ao;e:{if(We(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 zo(e,r,t)}return t}function Wu(e,t,n,r,o,i,a,s,l){return(e=Bu(n,r,!0,e,0,i,0,s,l)).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 $u(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 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||Ro.current)ys=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Ls(t),hi();break;case 5:Xi(t);break;case 1:Oo(t.type)&&Do(t);break;case 4:Qi(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):0!==(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=0!==(n&t.childLanes),128&e.flags){if(r)return Ws(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);ys=!!(131072&e.flags)}else ys=!1,ii&&1048576&t.flags&&ei(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;$s(e,t),e=t.pendingProps;var i=No(t,Lo.current);Ri(t,r),i=ma(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($s(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Nu(e)?1:0;if(null!=e){if((e=e.$$typeof)===L)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(Ls(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,ji(e,t),$i(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=Rs(e,t,o,r,i=us(Error(n(423)),t));break e}if(o!==i){t=Rs(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 Qi(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&&!Ro.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),Li(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),Li(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,Ri(t,r),o=o(i=Mi(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),$s(e,t),t.tag=1,Oo(o)?(e=!0,Do(t)):e=!1,Ri(t,r),as(t,o,i),ls(t,o,i,r),As(null,t,o,!0,e,r);case 19:return Ws(e,t,r);case 22:return Ss(e,t,r)}throw Error(n(156,t.tag))};var Vu="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(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 Ju(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)}}$u(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=Wu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[go]=a.current,Wr(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[go]=l.current,Wr(8===e.nodeType?e.parentNode:e),cu(function(){$u(t,l,n,r)}),l}(n,t,e,o,r);return Uu(a)}qu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));$u(e,t,null,null)},qu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){$u(null,e,null,null)}),t[go]=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&&(bt(t,1|n),ru(t,Je()),!(6&Al)&&(Wl=Je()+500,$o()))}break;case 13:cu(function(){var t=Ii(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=Ii(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=Ii(e,t);if(null!==n)nu(n,e,t,eu());Gu(e,t)}},St=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=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));Y(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,Le=cu;var ec={usingClientEntryPoint:!1,Events:[xo,_o,wo,Ee,Te,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:x.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 c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,c.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:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},c.createRoot=function(e,t){if(!Qu(e))throw Error(n(299));var r=!1,o="",i=Vu;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[go]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Yu(t)},c.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},c.flushSync=function(e){return cu(e)},c.hydrate=function(e,t,r){if(!Ju(t))throw Error(n(200));return Zu(null,e,t,!0,r)},c.hydrateRoot=function(e,t,r){if(!Qu(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=Vu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Wu(t,null,e,1,null!=r?r:null,i,0,a,s),e[go]=t.current,Wr(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)},c.render=function(e,t,r){if(!Ju(t))throw Error(n(200));return Zu(null,e,t,!1,r)},c.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(n(40));return!!e._reactRootContainer&&(cu(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[go]=null})}),!0)},c.unstable_batchedUpdates=uu,c.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Ju(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Zu(e,t,r,!1,o)},c.version="18.3.1-next-f1338f8080-20240426",c}function S(){if(b)return u.exports;return b=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)}}(),u.exports=k(),u.exports}var C=function(){if(y)return l;y=1;var e=S();return l.createRoot=e.createRoot,l.hydrateRoot=e.hydrateRoot,l}();var E=h(),T=o(E),A=t({__proto__:null,default:T},[E]);const L=E.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 R(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function M(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const N="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,O=N&&"documentMode"in document?document.documentMode:null,P=N&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),I=N&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),z=!(!N||!("InputEvent"in window)||O)&&"getTargetRanges"in new window.InputEvent("input"),D=N&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),j=N&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,F=N&&/Android/.test(navigator.userAgent),B=N&&/^(?=.*Chrome).*/i.test(navigator.userAgent),H=N&&F&&B,W=N&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&P&&!B,$=0,U=1,K=2,G=1,V=2,Y=3,q=4,Q=5,J=6,X=D||j||W?" ":"​",Z="\n\n",ee=I?" ":X,te={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},ne={directionless:1,unmergeable:2},re={center:2,end:6,justify:4,left:1,right:3,start:5},oe={[V]:"center",[J]:"end",[q]:"justify",[G]:"left",[Y]:"right",[Q]:"start"},ie={normal:0,segmented:2,token:1},ae={[$]:"normal",[K]:"segmented",[U]:"token"},se="$config";function le(e,t,n,r,o,i){let a=e.getFirstChild();for(;null!==a;){const e=a.__key;a.__parent===t&&(No(a)&&le(a,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),a=a.getNextSibling()}}let ue=!1,ce=0;function de(e){ce=e.timeStamp}function fe(e,t,n){const r="BR"===e.nodeName,o=t.__lexicalLineBreak;return o&&(e===o||r&&e.previousSibling===o)||r&&void 0!==ki(e,n)}function pe(e,t,n){const r=ca(ra(n));let o=null,i=null;null!==r&&r.anchorNode===e&&(o=r.anchorOffset,i=r.focusOffset);const a=e.nodeValue;null!==a&&zi(t,a,o,i,!1)}function he(e,t,n){if(Rr(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return di(t)&&n.isAttached()}function ge(e,t,n,r){for(let o=e;o&&!Sa(o);o=Xi(o)){const e=ki(o,t);if(void 0!==e){const t=_i(e,n);if(t)return Io(t)||!fa(o)?void 0:[o,t]}else if(o===r)return[r,Ai(n)]}}function me(e,t,n){ue=!0;const r=performance.now()-ce>100;try{Ao(e,()=>{const o=Vr()||function(e){return e.getEditorState().read(()=>{const e=Vr();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=ge(p,e,s,a);if(!h)continue;const[g,m]=h;if("characterData"===f)r&&xr(m)&&di(p)&&he(o,p,m)&&pe(p,m,e);else if("childList"===f){u=!0;const t=d.addedNodes;for(let n=0;n<t.length;n++){const r=t[n],o=wi(r),i=r.parentNode;if(null!=i&&r!==l&&null===o&&!fe(r,i,e)){if(I){const e=(fa(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];(fe(r,p,e)||l===r)&&(p.appendChild(r),t++)}r!==t&&i.set(g,m)}}}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||fe(n,o,e)||i.removeChild(n)}}n.takeRecords()}null!==o&&(u&&Li(o),I&&qi(e)&&o.insertRawText(c))})}finally{ue=!1}}function ve(e){const t=e._observer;null!==t&&me(e,t.takeRecords(),t)}function be(e){!function(e){0===ce&&ra(e).addEventListener("textInput",de,!0)}(e),e._observer=new MutationObserver((t,n)=>{me(e,t,n)})}let ye=class{key;parse;unparse;isEqual;defaultValue;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||Se).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0)}};function xe(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}=Ea(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}}let _e=class e{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);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 ke(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;const{sharedNodeState:n,unknownState:r}=this,o=new Map(this.knownState);return new e(t,n,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}(n.sharedConfigMap,o,r),o,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=ke(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 we(e){return e.__state?e.__state.sharedNodeState:ei(ba(),e.getType()).sharedNodeState}function ke(e){if(e)for(const t in e)return e}function Se(e){return e}function Ce(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 Ee(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)&&(e.add(t),n!==(o?o[t]:void 0)))return!0;return!1}function Te(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Ae(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&&Ce(n,e,t)||t&&Ce(n,t,e)||e&&Ee(n,e,t)||t&&Ee(n,t,e))}(l,u))}function Le(e,t){const n=e.mergeWithSibling(t),r=mo()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Re(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&xr(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(Ae(t,r)){r=Le(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&xr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Ae(r,n)){r=Le(r,n);break}break}n.remove()}}else r.remove()}function Me(e){return Ne(e.anchor),Ne(e.focus),e}function Ne(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),xr(r)){e.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!No(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Oe,Pe,Ie,ze,De,je,Fe,Be,He,We,$e="",Ue=null,Ke=null,Ge=!1,Ve=!1;function Ye(e,t){const n=Fe.get(e);if(null!==t){const n=ct(e);n.parentNode===t&&t.removeChild(n)}if(Be.has(e)||Pe._keyToDOMMap.delete(e),No(n)){const e=it(n,Fe);qe(e,0,e.length-1,null)}void 0!==n&&Ki(We,Ie,ze,n,"destroyed")}function qe(e,t,n,r){for(let o=t;o<=n;++o){const t=e[o];void 0!==t&&Ye(t,r)}}function Qe(e,t){e.setProperty("text-align",t)}const Je="40px";function Xe(e,t){const n=Oe.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)}if(0===t)return void e.style.setProperty("padding-inline-start","");const r=getComputedStyle(Pe._rootElement||e).getPropertyValue("--lexical-indent-base-value")||Je;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function Ze(e,t){const n=e.style;0===t?Qe(n,""):1===t?Qe(n,"left"):2===t?Qe(n,"center"):3===t?Qe(n,"right"):4===t?Qe(n,"justify"):5===t?Qe(n,"start"):6===t&&Qe(n,"end")}function et(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(Do(e))return null;const n=e.getParentOrThrow();return Do(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function tt(e,t){const n=Be.get(e);void 0===n&&R(60);const r=n.createDOM(Oe,Pe);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){e[`__lexicalKey_${t._key}`]=n})(t,n,e),r.set(e,t)}(e,r,Pe),xr(n)?r.setAttribute("data-lexical-text","true"):Io(n)&&r.setAttribute("data-lexical-decorator","true"),No(n)){const e=n.__indent,t=n.__size;if(et(r,n),0!==e&&Xe(r,e),0!==t){const e=t-1;nt(it(n,Be),n,0,e,n.getDOMSlot(r))}const o=n.__format;0!==o&&Ze(r,o),n.isInline()||ot(null,n,r)}else{const t=n.getTextContent();if(Io(n)){const t=n.decorate(Pe,Oe);null!==t&&st(e,t),r.contentEditable="false"}$e+=t}return null!==t&&t.insertChild(r),Ki(We,Ie,ze,n,"created"),r}function nt(e,t,n,r,o){const i=$e;$e="";let a=n;for(;a<=r;++a){tt(e[a],o);const t=Be.get(e[a]);null!==t&&xr(t)?null===Ue&&(Ue=t.getFormat(),Ke=t.getStyle()):No(t)&&a<r&&!t.isInline()&&($e+=Z)}o.element.__lexicalTextContent=$e,$e=i+$e}function rt(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return nr(e)?"line-break":Io(e)&&e.isInline()?"decorator":null}return"empty"}return null}function ot(e,t,n){const r=rt(e,Fe),o=rt(t,Be);r!==o&&t.getDOMSlot(n).setManagedLineBreak(o)}function it(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&R(101),n.push(r),r=e.__next}return n}function at(e,t){const n=Fe.get(e);let r=Be.get(e);void 0!==n&&void 0!==r||R(61);const o=Ge||je.has(e)||De.has(e),i=Ji(Pe,e);if(n===r&&!o){let e;if(No(n)){const t=i.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),i.__lexicalTextContent=e)}else e=n.getTextContent();return $e+=e,i}if(n!==r&&o&&Ki(We,Ie,ze,r,"updated"),r.updateDOM(n,i,Oe)){const n=tt(e,null);return null===t&&R(62),t.replaceChild(n,i),Ye(e,null),n}if(No(n)){No(r)||R(334,e);const t=r.__indent;(Ge||t!==n.__indent)&&Xe(i,t);const a=r.__format;if((Ge||a!==n.__format)&&Ze(i,a),o)(function(e,t,n){var r;Ue=null,Ke=null,function(e,t,n){const r=$e,o=e.__size,i=t.__size;$e="";const a=n.element;if(1===o&&1===i){const n=e.__first,o=t.__first;if(n===o)at(n,a);else{const e=ct(n),t=tt(o,null);try{a.replaceChild(t,e)}catch(r){if("object"==typeof r&&null!=r){const i=`${r.toString()} Parent: ${a.tagName}, new child: {tag: ${t.tagName} key: ${o}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(i)}throw r}Ye(n,null)}const i=Be.get(o);xr(i)&&null===Ue&&(Ue=i.getFormat(),Ke=i.getStyle())}else{const r=it(e,Fe),s=it(t,Be);if(r.length!==o&&R(227),s.length!==i&&R(228),0===o)0!==i&&nt(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;qe(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=lt(at(r,i.element)),d++,f++;else{if(void 0===u&&(u=ut(n,f)),void 0===l)l=ut(t,d);else if(!l.has(e)){d++;continue}if(!u.has(e)){c=lt(ct(e)),Ye(e,i.element),d++,l.delete(e);continue}if(l.has(r)){const e=Ji(Pe,r);e!==c&&i.withBefore(c).insertChild(e),c=lt(at(r,i.element)),d++,f++}else tt(r,i.withBefore(c)),f++}const o=Be.get(r);null!==o&&xr(o)?null===Ue&&(Ue=o.getFormat(),Ke=o.getStyle()):No(o)&&f<=s&&!o.isInline()&&($e+=Z)}const p=d>a,h=f>s;if(p&&!h){const e=n[s+1],t=void 0===e?null:Pe.getElementByKey(e);nt(n,0,f,s,i.withBefore(t))}else h&&!p&&qe(t,d,a,i.element)}(0,r,s,o,i,n)}a.__lexicalTextContent=$e,$e=r+$e}(e,t,t.getDOMSlot(n)),r=t,null==Ue||Ue===r.__textFormat||Ve||r.setTextFormat(Ue),function(e){null==Ke||Ke===e.__textStyle||Ve||e.setTextStyle(Ke)}(t)})(n,r,i),Do(r)||r.isInline()||ot(n,r,i);else{const e=i.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),i.__lexicalTextContent=t),$e+=t}if((Ge||r.__dir!==n.__dir)&&(et(i,r),Do(r)&&!Ge))for(const e of r.getChildren())No(e)&&et(Ji(Pe,e.getKey()),e)}else{const t=r.getTextContent();if(Io(r)){const t=r.decorate(Pe,Oe);null!==t&&st(e,t)}$e+=t}if(!Ve&&Do(r)&&r.__cachedText!==$e){const e=r.getWritable();e.__cachedText=$e,r=e}return i}function st(e,t){let n=Pe._pendingDecorators;const r=Pe._decorators;if(null===n){if(r[e]===t)return;n=Ci(Pe)}n[e]=t}function lt(e){let t=e.nextSibling;return null!==t&&t===Pe._blockCursorElement&&(t=t.nextSibling),t}function ut(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function ct(e){const t=He.get(e);return void 0===t&&R(75,e),t}function dt(e){return{type:e}}const ft=dt("SELECTION_CHANGE_COMMAND"),pt=dt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),ht=dt("CLICK_COMMAND"),gt=dt("BEFORE_INPUT_COMMAND"),mt=dt("INPUT_COMMAND"),vt=dt("COMPOSITION_START_COMMAND"),bt=dt("COMPOSITION_END_COMMAND"),yt=dt("DELETE_CHARACTER_COMMAND"),xt=dt("INSERT_LINE_BREAK_COMMAND"),_t=dt("INSERT_PARAGRAPH_COMMAND"),wt=dt("CONTROLLED_TEXT_INSERTION_COMMAND"),kt=dt("PASTE_COMMAND"),St=dt("REMOVE_TEXT_COMMAND"),Ct=dt("DELETE_WORD_COMMAND"),Et=dt("DELETE_LINE_COMMAND"),Tt=dt("FORMAT_TEXT_COMMAND"),At=dt("UNDO_COMMAND"),Lt=dt("REDO_COMMAND"),Rt=dt("KEYDOWN_COMMAND"),Mt=dt("KEY_ARROW_RIGHT_COMMAND"),Nt=dt("MOVE_TO_END"),Ot=dt("KEY_ARROW_LEFT_COMMAND"),Pt=dt("MOVE_TO_START"),It=dt("KEY_ARROW_UP_COMMAND"),zt=dt("KEY_ARROW_DOWN_COMMAND"),Dt=dt("KEY_ENTER_COMMAND"),jt=dt("KEY_SPACE_COMMAND"),Ft=dt("KEY_BACKSPACE_COMMAND"),Bt=dt("KEY_ESCAPE_COMMAND"),Ht=dt("KEY_DELETE_COMMAND"),Wt=dt("KEY_TAB_COMMAND"),$t=dt("INSERT_TAB_COMMAND"),Ut=dt("INDENT_CONTENT_COMMAND"),Kt=dt("OUTDENT_CONTENT_COMMAND"),Gt=dt("DROP_COMMAND"),Vt=dt("FORMAT_ELEMENT_COMMAND"),Yt=dt("DRAGSTART_COMMAND"),qt=dt("DRAGOVER_COMMAND"),Qt=dt("DRAGEND_COMMAND"),Jt=dt("COPY_COMMAND"),Xt=dt("CUT_COMMAND"),Zt=dt("SELECT_ALL_COMMAND"),en=dt("CLEAR_EDITOR_COMMAND"),tn=dt("CLEAR_HISTORY_COMMAND"),nn=dt("CAN_REDO_COMMAND"),rn=dt("CAN_UNDO_COMMAND"),on=dt("FOCUS_COMMAND"),an=dt("BLUR_COMMAND"),sn=dt("KEY_MODIFIER_COMMAND"),ln=Object.freeze({}),un=[["keydown",function(e,t){cn=e.timeStamp,dn=e.key,t.isComposing()||Qi(t,Rt,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;pa(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&Ao(t,()=>{ri(n)||(vn=!0)})}],["compositionstart",function(e,t){Qi(t,vt,e)}],["compositionend",function(e,t){I?yn=!0:j||!D&&!W?Qi(t,bt,e):(xn=!0,_n=e.data)}],["input",function(e,t){e.stopPropagation(),Ao(t,()=>{t.dispatchCommand(mt,e)},{event:e}),pn=null}],["click",function(e,t){Ao(t,()=>{const n=Vr(),r=ca(ra(t)),o=Yr();if(r)if(Rr(n)){const t=n.anchor,i=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!Do(i)&&1===Ti().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()&&i!==n.focus.getNode()){const e=Ta(i,e=>No(e)&&!e.isInline());No(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;(fa(n)||di(n))&&Li(Gr(o,r,t,e))}Qi(t,ht,e)})}],["cut",ln],["copy",ln],["dragstart",ln],["dragover",ln],["dragend",ln],["paste",ln],["focus",ln],["blur",ln],["drop",ln]];z&&un.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;"deleteCompositionText"===n||I&&qi(t)||"insertCompositionText"!==n&&Qi(t,gt,e)}(e,t)]);let cn=0,dn=null,fn=0,pn=null;const hn=new WeakMap,gn=new WeakMap;let mn=!1,vn=!1,bn=!1,yn=!1,xn=!1,_n="",wn=null,kn=[0,"",0,"root",0];function Sn(e,t,n,r,o){const i=e.anchor,a=e.focus,s=i.getNode(),l=mo(),u=ca(ra(l)),c=null!==u?u.anchorNode:null,d=i.key,f=l.getElementByKey(d),p=n.length;return d!==a.key||!xr(s)||(!o&&(!z||fn<r+50)||s.isDirty()&&p<2||Mi(n))&&i.offset!==a.offset&&!s.isComposing()||ci(s)||s.isDirty()&&p>1||(o||!z)&&null!==f&&!s.isComposing()&&c!==pi(f)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||!s.isComposing()&&(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=ui(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(xr(t)||No(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,s)}function Cn(e,t){return di(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function En(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}=e;mn&&(mn=!1,Cn(r,o)&&Cn(i,a)&&!wn)||Ao(t,()=>{if(!n)return void Li(null);if(!ii(t,r,i))return;let s=Vr();if(wn&&Rr(s)&&s.isCollapsed()){const e=s.anchor,t=wn.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=wn.clone(),Li(s))}if(wn=null,Rr(s)){const n=s.anchor,r=n.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);const o=ra(t).event,i=o?o.timeStamp:performance.now(),[a,l,u,c,d]=kn,f=Ti(),p=!1===t.isComposing()&&""===f.getTextContent();if(i<d+200&&n.offset===u&&n.key===c)Tn(s,a,l);else if("text"===n.type)xr(r)||R(141),An(s,r);else if("element"===n.type&&!p){No(r)||R(259);const e=n.getNode();e.isEmpty()?function(e,t){Tn(e,t.getTextFormat(),t.getTextStyle())}(s,e):Tn(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(xr(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}}Qi(t,ft,void 0)})}function Tn(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function An(e,t){Tn(e,t.getFormat(),t.getStyle())}function Ln(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function Rn(e){const t=e.inputType,n=Ln(e),r=mo(),o=Vr();if("deleteContentBackward"===t){if(null===o){const e=Yr();if(!Rr(e))return!0;Li(e.clone())}if(Rr(o)){const t=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===dn&&i<cn+30&&r.isComposing()&&t){if(yi(null),cn=0,setTimeout(()=>{Ao(r,()=>{yi(null)})},30),Rr(o)){const e=o.anchor.getNode();e.markDirty(),xr(e)||R(142),An(o,e)}}else{yi(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=H&&t&&!s&&a;if(l&&o.isCollapsed()&&(l=!Io(Yi(o.anchor,!0))),!l){Qi(r,yt,!0);const e=Vr();H&&Rr(e)&&e.isCollapsed()&&(wn=e,setTimeout(()=>wn=null))}}return!0}}var i;if(!Rr(o))return!0;const a=e.data;null!==pn&&Ii(!1,r,pn),o.dirty&&null===pn||!o.isCollapsed()||Do(o.anchor.getNode())||null===n||o.applyDOMRange(n),pn=null;const s=o.anchor,l=o.focus,u=s.getNode(),c=l.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===a)e.preventDefault(),Qi(r,xt,!1);else if(a===Z)e.preventDefault(),Qi(r,_t,void 0);else if(null==a&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=a&&Sn(o,n,a,e.timeStamp,!0)?(e.preventDefault(),Qi(r,wt,a)):pn=a;return fn=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Qi(r,wt,e);break;case"insertFromComposition":yi(null),Qi(r,wt,e);break;case"insertLineBreak":yi(null),Qi(r,xt,!1);break;case"insertParagraph":yi(null),bn&&!j?(bn=!1,Qi(r,xt,!1)):Qi(r,_t,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Qi(r,kt,e);break;case"deleteByComposition":(function(e,t){return e!==t||No(e)||No(t)||!ui(e)||!ui(t)})(u,c)&&Qi(r,St,e);break;case"deleteByDrag":case"deleteByCut":Qi(r,St,e);break;case"deleteContent":Qi(r,yt,!1);break;case"deleteWordBackward":Qi(r,Ct,!0);break;case"deleteWordForward":Qi(r,Ct,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Qi(r,Et,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Qi(r,Et,!1);break;case"formatStrikeThrough":Qi(r,Tt,"strikethrough");break;case"formatBold":Qi(r,Tt,"bold");break;case"formatItalic":Qi(r,Tt,"italic");break;case"formatUnderline":Qi(r,Tt,"underline");break;case"historyUndo":Qi(r,At,void 0);break;case"historyRedo":Qi(r,Lt,void 0)}return!0}function Mn(e){if(fa(e.target)&&ri(e.target))return!0;const t=mo(),n=Vr(),r=e.data,o=Ln(e);if(null!=r&&Rr(n)&&Sn(n,o,r,e.timeStamp,!1)){yn&&(Pn(t,r),yn=!1);const o=n.anchor.getNode(),i=ca(ra(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;z&&!n.isCollapsed()&&xr(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,s)+r+o.getTextContent().slice(s+l)===Pi(i.anchorNode)||Qi(t,wt,r);const u=r.length;I&&u>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=u),H&&t.isComposing()&&(cn=0,yi(null))}else Ii(!1,t,null!==r?r:void 0),yn&&(Pn(t,r||void 0),yn=!1);return function(){po();ve(mo())}(),!0}function Nn(e){const t=mo(),n=Vr();if(Rr(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();yi(r.key),ea(Jn),(e.timeStamp<cn+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||xr(o)&&o.getStyle()!==n.style)&&Qi(t,wt,ee)}return!0}function On(e){return Pn(mo(),e.data),ea(Xn),!0}function Pn(e,t){const n=e._compositionKey;if(yi(null),null!==n&&null!=t){if(""===t){const t=_i(n),r=pi(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&xr(t)){const n=ca(ra(e));let o=null,i=null;null!==n&&n.anchorNode===r&&(o=n.anchorOffset,i=n.focusOffset),zi(t,r.nodeValue,o,i,!0)}return}if("\n"===t[t.length-1]){const t=Vr();if(Rr(t)||Nr(t)){if(Rr(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void Qi(e,Dt,null)}}}Ii(!0,e,t)}function In(e){const t=mo();if(null==e.key)return!0;if(xn){if(Wi(e))return Ao(t,()=>{Pn(t,_n)}),xn=!1,_n="",!0;xn=!1,_n=""}if(function(e){return Fi(e,"ArrowRight",{shiftKey:"any"})}(e))Qi(t,Mt,e);else if(function(e){return Fi(e,"ArrowRight",Bi)}(e))Qi(t,Nt,e);else if(function(e){return Fi(e,"ArrowLeft",{shiftKey:"any"})}(e))Qi(t,Ot,e);else if(function(e){return Fi(e,"ArrowLeft",Bi)}(e))Qi(t,Pt,e);else if(function(e){return Fi(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))Qi(t,It,e);else if(function(e){return Fi(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))Qi(t,zt,e);else if(function(e){return Fi(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))bn=!0,Qi(t,Dt,e);else if(function(e){return" "===e.key}(e))Qi(t,jt,e);else if(function(e){return P&&Fi(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),bn=!0,Qi(t,xt,!0);else if(function(e){return Fi(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))bn=!1,Qi(t,Dt,e);else if(function(e){return Fi(e,"Backspace",{shiftKey:"any"})||P&&Fi(e,"h",{ctrlKey:!0})}(e))Wi(e)?Qi(t,Ft,e):(e.preventDefault(),Qi(t,yt,!0));else if(function(e){return"Escape"===e.key}(e))Qi(t,Bt,e);else if(function(e){return Fi(e,"Delete",{})||P&&Fi(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),Qi(t,yt,!1)):Qi(t,Ht,e);else if(function(e){return Fi(e,"Backspace",Hi)}(e))e.preventDefault(),Qi(t,Ct,!0);else if(function(e){return Fi(e,"Delete",Hi)}(e))e.preventDefault(),Qi(t,Ct,!1);else if(function(e){return P&&Fi(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),Qi(t,Et,!0);else if(function(e){return P&&(Fi(e,"Delete",{metaKey:!0})||Fi(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),Qi(t,Et,!1);else if(function(e){return Fi(e,"b",Bi)}(e))e.preventDefault(),Qi(t,Tt,"bold");else if(function(e){return Fi(e,"u",Bi)}(e))e.preventDefault(),Qi(t,Tt,"underline");else if(function(e){return Fi(e,"i",Bi)}(e))e.preventDefault(),Qi(t,Tt,"italic");else if(function(e){return Fi(e,"Tab",{shiftKey:"any"})}(e))Qi(t,Wt,e);else if(function(e){return Fi(e,"z",Bi)}(e))e.preventDefault(),Qi(t,At,void 0);else if(function(e){return P?Fi(e,"z",{metaKey:!0,shiftKey:!0}):Fi(e,"y",{ctrlKey:!0})||Fi(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),Qi(t,Lt,void 0);else{const n=t._editorState._selection;null===n||Rr(n)?$i(e)&&(e.preventDefault(),Qi(t,Zt,e)):function(e){return Fi(e,"c",Bi)}(e)?(e.preventDefault(),Qi(t,Jt,e)):function(e){return Fi(e,"x",Bi)}(e)?(e.preventDefault(),Qi(t,Xt,e)):$i(e)&&(e.preventDefault(),Qi(t,Zt,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(sn,e),!0}function zn(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const Dn=new Map;function jn(e){const t=function(e){const t=na(e);return t?t.getSelection():null}(e.target);if(null===t)return;const n=si(t.anchorNode);if(null===n)return;vn&&(vn=!1,Ao(n,()=>{const r=Yr(),o=t.anchorNode;(fa(o)||di(o))&&Li(Gr(r,t,n,e))}));const r=Ni(n),o=r[r.length-1],i=o._key,a=Dn.get(i),s=a||o;s!==n&&En(t,s,!1),En(t,n,!0),n!==o?Dn.set(i,n):a&&Dn.delete(i)}function Fn(e){e._lexicalHandled=!0}function Bn(e){return!0===e._lexicalHandled}function Hn(e,t,n){po();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=Vr();if(!Rr(t)||!No(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();return ta(o,e)&&n.set(e.__key,0,"element"),ta(i,e)&&r.set(e.__key,0,"element"),t}(e);let a=!1;if(Rr(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(Jr(t,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0),n.key===r&&(Jr(n,e,o,e.getPreviousSibling(),e.getNextSibling()),a=!0)}else Nr(i)&&t&&e.isSelected()&&e.selectPrevious();if(Rr(i)&&t&&!a){const t=e.getIndexWithinParent();vi(e),qr(i,o,t,-1)}else vi(e);n||oa(o)||o.canBeEmpty()||!o.isEmpty()||Hn(o,t),t&&i&&Do(o)&&o.isEmpty()&&o.selectEnd()}const Wn=Symbol.for("ephemeral");function $n(e){return e[Wn]||!1}let Un=class{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=Ea(this);return void 0===e&&R(64,this.name),e}static clone(e){R(65,this.name)}$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)}getType(){return this.__type}isInline(){R(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=_i(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||Vr();if(null==t)return!1;const n=t.getNodes().some(e=>e.__key===this.__key);if(xr(this))return n;if(Rr(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(Io(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:_i(e)}getParentOrThrow(){const e=this.getParent();return null===e&&R(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(oa(t))return No(e)||e===this&&Io(e)||R(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&R(67,this.__key),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:_i(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:_i(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=No(this)?this:this.getParent(),n=No(e)?e:e.getParent(),r=t&&n?os(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=os(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===ts(t):("same"!==t.type&&"ancestor"!==t.type&&R(279),!1)))}isParentOf(e){const t=os(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=No(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&&R(68),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=mo()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if($n(this))return this;const e=_i(this.__key);return null===e&&R(113),e}getWritable(){if($n(this))return this;po();const e=go(),t=mo(),n=e._nodeMap,r=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,a=Vr();if(null!==a&&a.setCachedNodes(null),i.has(r))return bi(o),o;const s=wa(o);return i.add(r),bi(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){R(70)}updateDOM(e,t,n){R(71)}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){R(18,this.name)}updateFromJSON(e){return function(e,t){const n=e.getWritable(),r=t.$;let o=r;for(const e of we(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 _e(t,we(t));return t.__state=n,n}(e).updateFromJSON(o),n}(this,e)}static transform(){return null}remove(e){Hn(this,!0,e)}replace(e,t){po();let n=Vr();null!==n&&(n=n.clone()),sa(this,e);const r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),l=s.__size;vi(a);const u=r.getPreviousSibling(),c=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(Hn(r,!1,!0),null===u?s.__first=i:u.getWritable().__next=i,a.__prev=d,null===c?s.__last=i:c.getWritable().__prev=i,a.__next=f,a.__parent=p,s.__size=l,t&&(No(this)&&No(a)||R(139),this.getChildren().forEach(e=>{a.append(e)})),Rr(n)){Li(n);const e=n.anchor,t=n.focus;e.key===o&&Ar(e,a),t.key===o&&Ar(t,a)}return xi()===o&&yi(i),a}insertAfter(e,t=!0){po(),sa(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=Vr();let a=!1,s=!1;if(null!==o){const t=e.getIndexWithinParent();if(vi(r),Rr(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:l.getWritable().__prev=c,u.__size++,n.__next=c,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Rr(i)){const e=this.getIndexWithinParent();qr(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){po(),sa(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;vi(r);const i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),s=n.__prev,l=this.getIndexWithinParent();null===i?a.__first=o:i.getWritable().__next=o,a.__size++,n.__prev=o,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;const u=Vr();return t&&Rr(u)&&qr(u,this.getParentOrThrow(),l),e}isParentRequired(){return!1}createParentElementNode(){return Ko()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){po();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(No(n))return n.select();if(!xr(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){po();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(No(n))return n.select(0,0);if(!xr(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}};const Kn="historic",Gn="history-merge",Vn="collaboration",Yn="skip-scroll-into-view",qn="skip-dom-selection",Qn="skip-selection-focus",Jn="composition-start",Xn="composition-end";let Zn=class e extends Un{static getType(){return"linebreak"}static clone(t){return new e(t.__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&&ma(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&rr(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&rr(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&ma(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&rr(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&rr(r))return!0}return!1}(e)?null:{conversion:er,priority:0}}}static importJSON(e){return tr().updateFromJSON(e)}};function er(e){return{node:tr()}}function tr(){return aa(new Zn)}function nr(e){return e instanceof Zn}function rr(e){return di(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function or(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function ir(e,t){return 1&t?"strong":2&t?"em":"span"}function ar(e,t,n,r,o){const i=r.classList;let a=Ui(o,"base");void 0!==a&&i.add(...a),a=Ui(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 te){const r=te[e];if(a=Ui(o,e),void 0!==a)if(n&r){if(s&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...a);continue}(0===(t&r)||l&&"underline"===e||"strikethrough"===e)&&i.add(...a)}else t&r&&i.remove(...a)}}function sr(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?X:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||I){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 lr(e,t,n,r,o,i){sr(o,e,t);const a=i.theme.text;void 0!==a&&ar(0,0,r,e,a)}function ur(e,t){const n=document.createElement(t);return n.appendChild(e),n}let cr=class e extends Un{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(t){return new e(t.__text,t.__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 ae[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===xi()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=te[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return hi(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=or(0,n),o=ir(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)),lr(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=or(0,o),s=or(0,i),l=ir(0,o),u=ir(0,i);if((null===a?l:a)!==(null===s?u:s))return!0;if(a===s&&l!==u){const e=t.firstChild;null==e&&R(48);const o=document.createElement(u);return lr(o,this,0,i,r,n),t.replaceChild(o,e),!1}let c=t;null!==s&&null!==a&&(c=t.firstChild,null==c&&R(49)),sr(r,c,this);const d=n.theme.text;void 0!==d&&o!==i&&ar(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:gr,priority:0}),b:()=>({conversion:fr,priority:0}),code:()=>({conversion:br,priority:0}),em:()=>({conversion:br,priority:0}),i:()=>({conversion:br,priority:0}),mark:()=>({conversion:br,priority:0}),s:()=>({conversion:br,priority:0}),span:()=>({conversion:dr,priority:0}),strong:()=>({conversion:br,priority:0}),sub:()=>({conversion:br,priority:0}),sup:()=>({conversion:br,priority:0}),u:()=>({conversion:br,priority:0})}}static importJSON(e){return yr().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 fa(t)||R(132),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=ur(t,"b")),this.hasFormat("italic")&&(t=ur(t,"i")),this.hasFormat("strikethrough")&&(t=ur(t,"s")),this.hasFormat("underline")&&(t=ur(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?te[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?ne[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=hi(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=ie[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){po();let n=e,r=t;const o=Vr(),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(!Rr(o))return $r(a,n,a,r,"text","text");{const e=xi();e!==o.anchor.key&&e!==o.focus.key||yi(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=Vr();if(r&&Rr(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){po();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,o=xi(),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 g=!1,m=null,v=null;const b=Vr();if(Rr(b)){const[e,t]=b.isBackward()?[b.focus,b.anchor]:[b.anchor,b.focus];"text"===e.type&&e.key===r&&(m=e),"text"===t.type&&t.key===r&&(v=t)}t.isSegmented()?(d=yr(u),d.__format=f,d.__style=p,d.__detail=h,d.__state=Te(t,d),g=!0):d=t.setTextContent(u);const y=[d];for(let e=1;e<l;e++){const n=yr(a[e]);n.__format=f,n.__style=p,n.__detail=h,n.__state=Te(t,n);const i=n.__key;o===r&&yi(i),y.push(n)}const x=m?m.offset:null,_=v?v.offset:null;let w=0;for(const e of y){if(!m&&!v)break;const t=w+e.getTextContentSize();if(null!==m&&null!==x&&x<=t&&x>=w&&(m.set(e.getKey(),x-w,"text"),x<t&&(m=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&&bi(t),null!==n&&bi(n)}(this);const e=c.getWritable(),t=this.getIndexWithinParent();g?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),Rr(b)&&qr(b,c,t,l-1)}return y}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||R(50);const n=this.__key,r=e.__key,o=this.__text,i=o.length;xi()===r&&yi(n);const a=Vr();if(Rr(a)){const o=a.anchor,s=a.focus;null!==o&&o.key===r&&Xr(o,t,n,e,i),null!==s&&s.key===r&&Xr(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 dr(e){return{forChild:_r(e.style),node:null}}function fr(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:_r(t.style,n?void 0:"bold"),node:null}}const pr=new WeakMap;function hr(e){if(!fa(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function gr(e){const t=e;null===e.parentElement&&R(129);let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=pr.get(n))&&!hr(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e<r.length;e++)pr.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(tr()):"\t"===r?t.push(kr()):""!==r&&t.push(yr(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=mr(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=mr(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:yr(n)}}function mr(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,fa(n)){const e=n.style.display;if(""===e&&!ga(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(di(n))return n;if("BR"===n.nodeName)return null}}const vr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function br(e){const t=vr[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:_r(e.style,t),node:null}}function yr(e=""){return aa(new cr(e))}function xr(e){return e instanceof cr}function _r(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=>xr(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 wr extends cr{static getType(){return"tab"}static clone(e){return new wr(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=Ui(e.theme,"tab");return void 0!==n&&t.classList.add(...n),t}static importJSON(e){return kr().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&M(126),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||R(286),this}setDetail(e){return 2!==e&&R(127),this}setMode(e){return"normal"!==e&&R(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function kr(){return aa(new wr)}function Sr(e){return e instanceof wr}class Cr{key;offset;type;_selection;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){return this.key===e.key?this.offset<e.offset:es(ps(is(this,"next")),ps(is(e,"next")))<0}getNode(){const e=_i(this.key);return null===e&&R(20),e}set(e,t,n,r){const o=this._selection,i=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,fo()||(xi()===i&&yi(e),null!==o&&(o.setCachedNodes(null),o.dirty=!0)))}}function Er(e,t,n){return new Cr(e,t,n)}function Tr(e,t){let n=t.__key,r=e.offset,o="element";if(xr(t)){o="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!No(t)){const e=t.getNextSibling();if(xr(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 Ar(e,t){if(No(t)){const n=t.getLastDescendant();No(n)||xr(n)?Tr(e,n):Tr(e,t)}else Tr(e,t)}let Lr=class e{_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(!Nr(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 e(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(xr(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=_i(e);null!==t&&n.push(t)}return fo()||(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((Vr()||Yr())===this&&e[0]){const t=Wa(e[0],"next");ss(Xa(t,t))}for(const t of e)t.remove()}};function Rr(e){return e instanceof Mr}class Mr{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!!Rr(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(ja(n)){const{origin:e}=n;0===t.length?o.add(e):(i.add(e),t.push(e))}else{const{origin:e}=n;No(e)&&i.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),Da(e.focus)&&No(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=Ga(e.focus.origin,"previous");ja(n)&&o.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=Va(n))o.delete(n.origin),t.pop();for(;t.length>1;){const e=t[t.length-1];if(!No(e)||i.has(e)||e.isEmpty()||o.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=ps(e.anchor),r=ps(e.anchor.getFlipped()),o=e=>za(e)?e.origin:e.getNodeAtCaret(),i=o(n)||o(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(i)}return t}(ms(us(this),"next"));return fo()||(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]=Pr(this);let l="",u=!0;for(let c=0;c<e.length;c++){const d=e[c];if(No(d)&&!d.isInline())u||(l+="\n"),u=!d.isEmpty();else if(u=!1,xr(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!Io(d)&&!nr(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(e){const t=mo(),n=t.getEditorState()._selection,r=Hr(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),Me(this)}clone(){const e=this.anchor,t=this.focus;return new Mr(Er(e.key,e.offset,e.type),Er(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=hi(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=te[e];return 0!==(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(tr()):"\t"===r?n.push(kr()):n.push(yr(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=yr();if(a.setFormat(n),a.setStyle(r),Go(i))i.splice(0,0,[a]);else{const e=Do(o)?Ko().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&&as(a,ps(is(a,"next")));const s=i.offset;let l=a.offset;const u=this.getNodes(),c=u.length;let d=u[0];xr(d)||R(26);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&&(ci(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(xr(t)&&t.canInsertTextBefore()&&!ci(t)||(t=yr(),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&&(ci(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(xr(t)&&!ci(t)||(t=yr(),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=yr(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=h.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||No(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),Br(this.anchor,this.focus),void this.insertText(e)}if(1===c){if(ui(d)){const t=yr(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(s!==l||t===r&&n===o){if(Sr(d)){const t=yr(e);return t.setFormat(r),t.setStyle(o),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=yr(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&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length))}else{const t=new Set([...d.getParentKeys(),...h.getParentKeys()]),n=No(d)?d:d.getParentOrThrow();let r=No(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(xr(h)&&!ui(h)&&l!==h.getTextContentSize()){if(h.isSegmented()){const e=yr(h.getTextContent());h.replace(e),h=e}Do(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),g=n.is(r),m=n.isInline()&&null===d.getNextSibling()?n:d;for(let e=i.length-1;e>=0;e--){const t=i[e];if(t.is(d)||No(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(o)?g||m.insertAfter(t,!1):t.remove())}if(!g){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(ui(d))if(s===f)d.select();else{const t=yr(e);t.select(),d.replace(t)}else d=d.spliceText(s,f-s,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<c;e++){const n=u[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const e=Vr()===this;ls(this,function(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let o=t;const i=ms(e,r),a=ds(i.anchor,n),s=ds(i.focus.getFlipped(),n),l=new Set,u=[];for(const e of i.iterNodeCarets(n))if(ja(e))l.add(e.origin.getKey());else if(Da(e)){const{origin:t}=e;No(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=cs(Wa(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=yr(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());i.replaceOrInsert(n),t=$a(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(fs(e)){c=ps(e);break}for(const e of s)if(fs(e)){d=ps(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(oa(o))return;!n&&t(o)&&(n=o)}return n},c=u(i,va),d=c&&u(a,e=>n.has(e.getKey())&&va(e));return c&&d?[c,d]:null}(c,d,l);if(f){const[e,t]=f;Ga(e,"previous").splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){const e=n;n=n.getParent(),e.remove(!0)}}const p=[c,d,...a,...s].find(fs);if(p)return Ja(gs(ps(p),e.direction));R(269,JSON.stringify(a.map(e=>e.origin.__key)))}(us(this))),e&&Vr()!==this&&Li(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void yi(null);const n=this.getNodes(),r=[];for(const e of n)xr(e)&&r.push(e);const o=t=>{n.forEach(n=>{if(No(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},i=r.length;if(0===i)return this.toggleFormat(e),yi(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 g=i-1;let m=r[g];const v="text"===c.type?c.offset:m.getTextContentSize();if(f.is(m)){if(p===v)return;if(ci(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||ci(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);const b=m.getFormatFlags(e,h);v>0&&(v===m.getTextContentSize()||ci(m)||([m]=m.splitText(v)),m.setFormat(b));for(let t=d+1;t<g;t++){const n=r[t],o=n.getFormatFlags(e,b);n.setFormat(o)}"text"===u.type&&u.set(f.__key,p,"text"),"text"===c.type&&c.set(m.__key,v,"text"),this.format=h|b}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const t=Vr();return Rr(t)||R(134),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=Ta(t,va),r=e[e.length-1];if(No(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=no(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(No(e)||Io(e))&&!e.isInline())){No(n)||R(211,t.constructor.name,t.getType());const o=no(this);return n.splice(o,0,e),void r.selectEnd()}const o=function(e){const t=Ko();let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=nr(o);if(i||Io(o)&&o.isInline()||No(o)&&o.isInline()||xr(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=No(n)&&n.isEmpty()?null:this.insertParagraph(),l=a[a.length-1];let u=a[0];var c;No(c=u)&&va(c)&&!c.isEmpty()&&No(n)&&(!n.isEmpty()||n.canMergeWhenEmpty())&&(No(n)||R(211,t.constructor.name,t.getType()),n.append(...u.getChildren()),u=a[1]),u&&(null===n&&R(212,t.constructor.name,t.getType()),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||R(140),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(n,u));const d=Ta(i,va);s&&No(d)&&(s.canMergeWhenEmpty()||va(l))&&(d.append(...s.getChildren()),s.remove()),No(n)&&n.isEmpty()&&n.remove(),i.selectEnd();const f=No(n)?n.getLastChild():null;nr(f)&&d!==n&&f.remove()}insertParagraph(){if("root"===this.anchor.key){const e=Ko();return Ti().splice(this.anchor.offset,0,[e]),e.select(),e}const e=no(this),t=Ta(this.anchor.getNode(),va);No(t)||R(213);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=tr();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]=Pr(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(xr(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(xr(n)&&(u===n.getTextContentSize()?e.shift():0!==u&&([,n]=n.splitText(u),e[0]=n,s.set(n.getKey(),0,"text"))),xr(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(oo(this,e,t,n))return;const r="move"===e,o=mo(),i=ca(ra(o));if(!i)return;const a=o._blockCursorElement,s=o._rootElement,l=this.focus.getNode();if(null===s||null===a||!No(l)||l.isInline()||l.canBeEmpty()||ua(a,o,s),this.dirty){let e=Ji(o,this.anchor.key),t=Ji(o,this.focus.key);"text"===this.anchor.type&&(e=pi(e)),"text"===this.focus.type&&(t=pi(t)),e&&t&&Zr(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=Do(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(oa(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];ta(t,o)?r.push(t):a=!0}if(a&&r.length>0)if(t){const e=r[0];No(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];No(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&&oo(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&No(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(No(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=Qa(is(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(ja(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(No(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=ps(t);ls(this,Xa(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(Da(t)){if(No(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(Io(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&No(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=Kr();e.add(t.origin.getKey()),Li(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return ls(this,Xa(!t.origin.isEmpty()&&n.isEmpty()?cs(Wa(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&&Ir(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 Dr(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 Dr(n,e,o)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode();if(o===r.getNode()&&"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;s!==u&&function(e){return!(Mi(e)||zr(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()&&Do(e.getParent())&&null===e.getPreviousSibling()&&Ir(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 Nr(e){return e instanceof Lr}function Or(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Pr(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]:[Or(n),Or(r)]}function Ir(e,t){for(let n=t;n;n=n.getParent()){if(No(n)){if(n.collapseAtStart(e))return!0;if(oa(n))break}if(n.getPreviousSibling())break}return!1}const zr=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Dr(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 jr(e,t,n,r){let o,i=t;if(fa(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;e===n&&t>Array.prototype.indexOf.call(n.children,u)&&i--}if(o=Ri(c),xr(o))i=Ua(o,a?"next":"previous");else{let s=Ri(e);if(null===s)return null;if(No(s)){const l=r.getElementByKey(s.getKey());null===l&&R(214);const u=s.getDOMSlot(l);[s,i]=u.resolveChildIndex(s,l,e,t),No(s)||R(215),a&&i>=s.getChildrenSize()&&(i=Math.max(0,s.getChildrenSize()-1));let c=s.getChildAtIndex(i);if(No(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=No(c)?c:c.getParentOrThrow()),i=0}xr(c)?(o=c,s=null,i=Ua(c,a?"next":"previous")):c!==s&&a&&!d&&(No(s)||R(216),i=Math.min(s.getChildrenSize(),i+1))}else{const n=s.getIndexWithinParent();i=0===t&&Io(s)&&Ri(e)===s?n:n+1,s=s.getParentOrThrow()}if(No(s))return Er(s.__key,i,"element")}}else o=Ri(e);return xr(o)?Er(o.__key,Ua(o,i,"clamp"),"text"):null}function Fr(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&&No(i)&&i.isInline()){const t=i.getPreviousSibling();xr(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else No(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):xr(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&No(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&No(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();xr(t)&&e.set(t.__key,0,"text")}}}function Br(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);Fr(e,n,r),Fr(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function Hr(e,t,n,r,o,i){if(null===e||null===n||!ii(o,e,n))return null;const a=jr(e,t,Rr(i)?i.anchor:null,o);if(null===a)return null;const s=jr(n,r,Rr(i)?i.focus:null,o);if(null===s)return null;if("element"===a.type&&"element"===s.type){const t=Ri(e),r=Ri(n);if(Io(t)&&Io(r))return null}return Br(a,s),[a,s]}function Wr(e){return No(e)&&!e.isInline()}function $r(e,t,n,r,o,i){const a=go(),s=new Mr(Er(e,t,o),Er(n,r,i),0,"");return s.dirty=!0,a._selection=s,s}function Ur(){const e=Er("root",0,"element"),t=Er("root",0,"element");return new Mr(e,t,0,"")}function Kr(){return new Lr(new Set)}function Gr(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=!ue&&(s||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&i&&3===i.detail||"drop"===a||void 0===a);let u,c,d,f;if(Rr(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)&&Rr(e)&&!ii(n,u,c))return e.clone();const p=Hr(u,d,c,f,n,e);if(null===p)return null;const[h,g]=p;let m=0,v="";if(Rr(e)){const t=e.anchor;if(h.key===t.key)m=e.format,v=e.style;else{const e=h.getNode();xr(e)?(m=e.getFormat(),v=e.getStyle()):No(e)&&(m=e.getTextFormat(),v=e.getTextStyle())}}return new Mr(h,g,m,v)}function Vr(){return go()._selection}function Yr(){return mo()._editorState._selection}function qr(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"),Qr(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")}}Qr(e)}function Qr(e){const t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed()){if(!No(i))return;const e=i.getChildrenSize(),o=n>=e,a=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(xr(a)){let e=0;o&&(e=a.getTextContentSize()),t.set(a.__key,e,"text"),r.set(a.__key,e,"text")}return}if(No(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(xr(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(No(a)){const e=a.getChildrenSize(),t=o>=e,n=t?a.getChildAtIndex(e-1):a.getChildAtIndex(o);if(xr(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function Jr(e,t,n,r,o){let i=null,a=0,s=null;null!==r?(i=r.__key,xr(r)?(a=r.getTextContentSize(),s="text"):No(r)&&(a=r.getChildrenSize(),s="element")):null!==o&&(i=o.__key,xr(o)?s="text":No(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 Xr(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 Zr(e,t,n,r,o){try{e.setBaseAndExtent(t,n,r,o)}catch(e){}}function eo(e,t,n){const r=Ji(e,t.getKey());if(No(t)){const e=t.getDOMSlot(r);return[e.element,n+e.getFirstChildOffset()]}return[r,n]}function to(e){let t=Vr()||Yr();null===t&&(t=Ti().selectEnd()),t.insertNodes(e)}function no(e){let t=e;e.isCollapsed()||t.removeText();const n=Vr();Rr(n)&&(t=n),Rr(t)||R(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!va(o);){const e=o;if([o,i]=ro(o,i),e.is(o))break}return i}function ro(e,t){const n=e.getParent();if(!n){const e=Ko();return Ti().append(e),e.select(),[Ti(),0]}if(xr(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(!No(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Mr(Er(e.__key,t,"element"),Er(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function oo(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=is(e.focus,n?"previous":"next"),a="lineboundary"===r,s="move"===t;let l=i,u="decorators-and-blocks"===o;if(!hs(l)){for(const e of l){u=!1;const{origin:t}=e;if(!Io(t)||t.isIsolated()||(l=e,!a||!t.isInline()))break}if(u)for(const e of Qa(i).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(ja(e))e.origin.isInline()||(l=e);else{if(No(e.origin))continue;Io(e.origin)&&!e.origin.isInline()&&(l=e)}break}}if(l===i)return!1;if(s&&!a&&Io(l.origin)&&l.origin.isKeyboardSelectable()){const e=Kr();return e.add(l.origin.getKey()),Li(e),!0}return l=ps(l),s&&as(e.anchor,l),as(e.focus,l),u||!a}let io=null,ao=null,so=!1,lo=!1,uo=0;const co={characterData:!0,childList:!0,subtree:!0};function fo(){return so||null!==io&&io._readOnly}function po(){so&&R(13)}function ho(){uo>99&&R(14)}function go(){return null===io&&R(195,vo()),io}function mo(){return null===ao&&R(196,vo()),ao}function vo(){let e=0;const t=new Set,n=Qo.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=li(r);if(ai(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 bo(e,t,n){const r=t.__type,o=ei(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 yo(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function xo(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 _o(e){return wo(e,mo()._nodes)}function wo(e,t){const n=e.type,r=t.get(n);void 0===r&&R(17,n);const o=r.klass;e.type!==o.getType()&&R(18,o.name);const i=o.importJSON(e),a=e.children;if(No(i)&&Array.isArray(a))for(let e=0;e<a.length;e++){const n=wo(a[e],t);i.append(n)}return i}function ko(e,t,n){const r=io,o=so,i=ao;io=t,so=!0,ao=e;try{return n()}finally{io=r,so=o,ao=i}}function So(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=io,c=so,d=ao,f=e._updating,p=e._observer;let h=null;if(e._pendingEditorState=null,e._editorState=n,!o&&l&&null!==p){ao=e,io=n,so=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect(),h=function(e,t,n,r,o,i){$e="",Ge=2===r,Pe=n,Oe=n._config,Ie=n._nodes,ze=Pe._listeners.mutation,De=o,je=i,Fe=e._nodeMap,Be=t._nodeMap,Ve=t._readOnly,He=new Map(n._keyToDOMMap);const a=new Map;return We=a,at("root",null),Pe=void 0,Ie=void 0,De=void 0,je=void 0,Fe=void 0,Be=void 0,Oe=void 0,He=void 0,We=void 0,a}(i,n,e,t,r,o)}catch(t){if(t instanceof Error&&e._onError(t),lo)throw t;return Vo(e,null,r,n),be(e),e._dirtyType=2,lo=!0,So(e,i),void(lo=!1)}finally{p.observe(r,co),e._updating=f,io=u,so=c,ao=d}}n._readOnly||(n._readOnly=!0);const g=e._dirtyLeaves,m=e._dirtyElements,v=e._normalizedNodes,b=e._updateTags,y=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=Ci(e)),delete r[i])}(e,n);const x=o?null:ca(ra(e));if(e._editable&&null!==x&&(l||null===s||s.dirty||!s.is(a))&&null!==r&&!b.has(qn)){ao=e,io=n;try{if(null!==p&&p.disconnect(),l||null===s||s.dirty){const t=e._blockCursorElement;null!==t&&ua(t,e,r),function(e,t,n,r,o,i){const a=r.anchorNode,s=r.focusNode,l=r.anchorOffset,u=r.focusOffset,c=document.activeElement;if(o.has(Vn)&&c!==i||null!==c&&oi(c))return;if(!Rr(t))return void(null!==e&&ii(n,a,s)&&r.removeAllRanges());const d=t.anchor,f=t.focus,p=d.getNode(),h=f.getNode(),[g,m]=eo(n,p,d.offset),[v,b]=eo(n,h,f.offset),y=t.format,x=t.style,_=t.isCollapsed();let w=g,k=v,S=!1;var C,E,T,A,L;if("text"===d.type?(w=pi(g),S=p.getFormat()!==y||p.getStyle()!==x):Rr(e)&&"text"===e.anchor.type&&(S=!0),"text"===f.type&&(k=pi(v)),null!==w&&null!==k&&(_&&(null===e||S||Rr(e)&&(e.format!==y||e.style!==x))&&(C=y,E=x,T=m,A=d.key,L=performance.now(),kn=[C,E,T,A,L]),l!==m||u!==b||a!==w||s!==k||"Range"===r.type&&_||(null!==c&&i.contains(c)||o.has(Qn)||i.focus({preventScroll:!0}),"element"===d.type))){if(Zr(r,w,m,k,b),!I||!t.isCollapsed()||null===i||o.has(Qn)||null!==document.activeElement&&i.contains(document.activeElement)||i.focus({preventScroll:!0}),!o.has(Yn)&&t.isCollapsed()&&null!==i&&i===document.activeElement){const e=Rr(t)&&"element"===t.anchor.type?w.childNodes[m]||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=Zi(n),o=na(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=ra(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=Xi(u)}}(n,t,i)}}mn=!0}}(a,s,e,x,b,r)}!function(e,t,n){let r=e._blockCursorElement;if(Rr(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())la(i.getChildAtIndex(a-1))&&(s=!0);else{const t=i.getChildAtIndex(a);if(null!==t&&la(t)){const n=t.getPreviousSibling();(null===n||la(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=_s(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&&ua(r,e,t)}(e,r,s)}finally{null!==p&&p.observe(r,co),ao=d,io=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,b,g,i),Rr(s)||null===s||null!==a&&a.is(s)||e.dispatchCommand(ft,void 0);const _=e._pendingDecorators;null!==_&&(e._decorators=_,e._pendingDecorators=null,Co("decorator",e,!0,_)),function(e,t,n){const r=Ei(t),o=Ei(n);r!==o&&Co("textcontent",e,!0,o)}(e,t||i,n),Co("update",e,!0,{dirtyElements:m,dirtyLeaves:g,editorState:n,mutatedNodes:h,normalizedNodes:v,prevEditorState:t||i,tags:b}),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,y),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;To(e,t,r)}}}(e)}function Co(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 Eo(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&&R(191),i._flushSync=!0),a&&e._deferred.push(a),xo(e,o.tag)),null==i?To(e,n,o):n()}}return r}function To(e,t,n){const r=e._updateTags;let o,i=!1,a=!1;void 0!==n&&(o=n.onUpdate,xo(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=jo(l||s),u=!0),l._flushSync=a;const c=io,d=so,f=ao,p=e._updating;io=l,so=!1,e._updating=!0,ao=e;const h=e._headless||null===e.getRootElement();Xo(null);try{u&&(h?null!==s._selection&&(l._selection=s._selection.clone()):l._selection=function(e,t){const n=e.getEditorState()._selection,r=ca(ra(e));return Rr(n)||null==n?Gr(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),i=Eo(e,i),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(Rr(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);xr(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Re(t)}}(l,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,o=e._nodeMap,i=xi(),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);xr(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Re(r),void 0!==r&&yo(r,i)&&bo(t,r,a),n.add(e)}if(s=t._dirtyLeaves,l=s.size,l>0){uo++;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&&yo(l,i)&&bo(t,l,a)}s=t._dirtyLeaves,l=s.size,u=t._dirtyElements,c=u.size,uo++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Eo(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()||(No(t)&&le(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(Rr(o)){const e=l._nodeMap,t=o.anchor.key,n=o.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||R(19)}else Nr(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 So(e)}finally{io=c,so=d,ao=f,e._updating=p,uo=0}const g=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);g?l._flushSync?(l._flushSync=!1,So(e)):u&&ni(()=>{So(e)}):(l._flushSync=!1,u&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Ao(e,t,n){ao===e&&void 0===n?t():To(e,t,n)}class Lo{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new Lo(this.element,e,this.after)}withAfter(e){return new Lo(this.element,this.before,e)}withElement(e){return this.element===e?this:new Lo(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&R(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&R(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&R(224),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&&(W||j||D);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=Ro(t,n);o.push(r);const i=Ro(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 Ro(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&&R(225),n.reverse()}class Mo extends Un{__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 oe[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=mo()._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(xr(t)&&e.push(t),No(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;No(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;No(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 No(e)&&e.getLastDescendant()||e||null}const r=t[e];return No(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:_i(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&R(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:_i(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&R(96,this.__key),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(),No(o)&&r!==n-1&&!o.isInline()&&(e+=Z)}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(),No(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=re[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=te[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return hi(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){po();const n=Vr();let r=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(xr(e)||No(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)){const e=this.getLastChild();if(xr(e)||No(e))return e.select()}void 0===r&&(r=i),void 0===o&&(o=i);const a=this.__key;return Rr(n)?(n.anchor.set(a,r,"element"),n.focus.set(a,o,"element"),n.dirty=!0,n):$r(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?re[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){$n(this)&&R(324,this.__key,this.__type);const r=this.getChildrenSize(),o=this.getWritable();e+t<=r||R(226,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&&R(100);const t=e.getNextSibling(),n=e.__key;vi(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--,vi(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&&R(76),t.__parent=i,a.push(n),d=e}if(e+t===r)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=Vr();if(Rr(e)){const t=new Set(s),n=new Set(a),{anchor:r,focus:o}=e;Oo(r,t,n)&&Jr(r,r.getNode(),this,u,l),Oo(o,t,n)&&Jr(o,o.getNode(),this,u,l),0!==c||this.canBeEmpty()||oa(this)||this.remove()}}return o}getDOMSlot(e){return new Lo(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(fa(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||oa(this)||this.getChildren().some(xr)||(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 No(e){return e instanceof Mo}function Oo(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 Po extends Un{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Io(e){return e instanceof Po}let zo=class e extends Mo{__cachedText;static getType(){return"root"}static clone(){return new e}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){R(51)}getTextContent(){const e=this.__cachedText;return!fo()&&0!==mo()._dirtyType||null===e?super.getTextContent():e}remove(){R(52)}replace(e){R(53)}insertBefore(e){R(54)}insertAfter(e){R(55)}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)No(e)||Io(e)||R(282);return super.splice(e,t,n)}static importJSON(e){return Ti().updateFromJSON(e)}collapseAtStart(){return!0}};function Do(e){return e instanceof zo}function jo(e){return new Ho(new Map(e._nodeMap))}function Fo(){return new Ho(new Map([["root",new zo]]))}function Bo(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&R(130,n.name),No(e)){const r=t.children;Array.isArray(r)||R(59,n.name);const o=e.getChildren();for(let e=0;e<o.length;e++){const t=Bo(o[e]);r.push(t)}}return t}class Ho{_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 ko(t&&t.editor||null,this,e)}clone(e){const t=new Ho(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return ko(null,this,()=>({root:Bo(Ti())}))}}class Wo extends Mo{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class $o extends Mo{static getType(){return"paragraph"}static clone(e){return new $o(e.__key)}createDOM(e){const t=document.createElement("p"),n=Ui(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:Uo,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fa(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return Ko().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(xr);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=Ko();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||xr(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 Uo(e){const t=Ko();if(e.style&&(t.setFormat(e.style.textAlign),ka(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in re&&t.setFormat(n)}return{node:t}}function Ko(){return aa(new $o)}function Go(e){return e instanceof $o}function Vo(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Fo(),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 Yo(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=Ea(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 Un&&e!==Un?e:void 0}}return t}function qo(e){const t=e||{},n=ao,r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,a=Fo(),s=t.namespace||(null!==o?o._config.namespace:Oi()),l=t.editorState,u=[zo,cr,Zn,wr,$o,Wo,...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}Ea(t);const o=t.getType(),i=Yo(t);p.set(o,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:xe(u[e]),transforms:i})}}const h=new Qo(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(gt,Rn,0),e.registerCommand(mt,Mn,0),e.registerCommand(vt,Nn,0),e.registerCommand(bt,On,0),e.registerCommand(Rt,In,0)}(h),h}let Qo=class{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=Oi(),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&&R(35);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&&R(36,String(e));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&&R(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=_a(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=_a(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}0!==r.length&&e.update(()=>{for(const e of r)for(const t of e.keys()){const e=_i(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:Gn}: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 Qi(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=Ui(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Vo(this,t,e,r),null!==t&&(this._config.disableEvents||function(e){const t=hn.get(e);if(void 0===t)return;const n=gn.get(t);if(void 0===n)return;const r=n-1;r>=0||R(164),hn.delete(e),gn.set(t,r),0===r&&t.removeEventListener("selectionchange",jn);const o=li(e);ai(o)?(function(e){if(null!==e._parentEditor){const t=Ni(e),n=t[t.length-1]._key;Dn.get(n)===e&&Dn.delete(n)}else Dn.delete(e._key)}(o),e.__lexicalEditor=null):o&&R(198);const i=zn(e);for(let e=0;e<i.length;e++)i[e]();e.__lexicalEventHandles=[]}(t),null!=n&&t.classList.remove(...n)),null!==e){const t=na(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,be(this),this._updateTags.add(Gn),So(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;hn.set(e,n);const r=gn.get(n)??0;r<1&&n.addEventListener("selectionchange",jn),gn.set(n,r+1),e.__lexicalEditor=t;const o=zn(e);for(let n=0;n<un.length;n++){const[r,i]=un[n],a="function"==typeof i?e=>{Bn(e)||(Fn(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Bn(e))return;Fn(e);const n=t.isEditable();switch(r){case"cut":return n&&Qi(t,Xt,e);case"copy":return Qi(t,Jt,e);case"paste":return n&&Qi(t,kt,e);case"dragstart":return n&&Qi(t,Yt,e);case"dragover":return n&&Qi(t,qt,e);case"dragend":return n&&Qi(t,Qt,e);case"focus":return n&&Qi(t,on,e);case"blur":return n&&Qi(t,an,e);case"drop":return n&&Qi(t,Gt,e)}};e.addEventListener(r,a),o.push(()=>{e.removeEventListener(r,a)})}}(e,this),null!=n&&e.classList.add(...n)}else this._window=null,this._updateTags.add(Gn),So(this);Co("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&R(38);let n=e;n._readOnly&&(n=jo(e),n._selection=e._selection?e._selection.clone():null),ve(this);const r=this._pendingEditorState,o=this._updateTags,i=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=i&&o.add(i),So(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&o.add(i),this._updating||So(this)}parseEditorState(e,t){return function(e,t,n){const r=Fo(),o=io,i=so,a=ao,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,io=r,so=!1,ao=t,Xo(null);try{const o=t._nodes;wo(e.root,o),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=l,t._cloneNotNeeded=u,t._dirtyType=c,io=o,so=i,ao=a}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return So(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):To(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Ao(this,()=>{const r=Vr(),o=Ti();null!==r?r.dirty||Li(r.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),ea("focus"),function(e){po(),mo()._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,Co("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}};Qo.version="0.41.0+prod.esm";let Jo=null;function Xo(e){Jo=e}let Zo=1;function ei(e,t){const n=ti(e,t);return void 0===n&&R(30,t),n}function ti(e,t){return e._nodes.get(t)}const ni="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function ri(e){return Io(Si(e))}function oi(e){const t=document.activeElement;if(!fa(t))return!1;const n=t.nodeName;return Io(Si(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==li(t))}function ii(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!oi(t)&&si(t)===e}catch(e){return!1}}function ai(e){return e instanceof Qo}function si(e){let t=e;for(;null!=t;){const e=li(t);if(ai(e))return e;t=Xi(t)}return null}function li(e){return e?e.__lexicalEditor:null}function ui(e){return Sr(e)||e.isToken()}function ci(e){return ui(e)||e.isSegmented()}function di(e){return pa(e)&&3===e.nodeType}function fi(e){return pa(e)&&9===e.nodeType}function pi(e){let t=e;for(;null!=t;){if(di(t))return t;t=t.firstChild}return null}function hi(e,t,n){const r=te[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 gi(e){return xr(e)||nr(e)||Io(e)}function mi(e,t){const n=function(){const e=Jo;return Jo=null,e}();if(null!=(t=t||n&&n.__key))return void(e.__key=t);po(),ho();const r=mo(),o=go(),i=""+Zo++;o._nodeMap.set(i,e),No(e)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,e.__key=i}function vi(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 bi(e){ho(),$n(e)&&R(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=go(),o=mo(),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,No(e)?a.set(s,!0):o._dirtyLeaves.add(s)}function yi(e){po();const t=mo(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=_i(n);null!==e&&e.getWritable()}if(null!==e){const t=_i(e);null!==t&&t.getWritable()}}}function xi(){return fo()?null:mo()._compositionKey}function _i(e,t){const n=(t||go())._nodeMap.get(e);return void 0===n?null:n}function wi(e,t){const n=ki(e,mo());return void 0!==n?_i(n,t):null}function ki(e,t){return e[`__lexicalKey_${t._key}`]}function Si(e,t){let n=e;for(;null!=n;){const e=wi(n,t);if(null!==e)return e;n=Xi(n)}return null}function Ci(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Ei(e){return e.read(()=>Ti().getTextContent())}function Ti(){return Ai(go())}function Ai(e){return e._nodeMap.get("root")}function Li(e){po();const t=go();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Ri(e){const t=mo(),n=function(e,t){let n=e;for(;null!=n;){const e=ki(n,t);if(void 0!==e)return e;n=Xi(n)}return null}(e,t);return null===n?e===t.getRootElement()?_i("root"):null:_i(n)}function Mi(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Ni(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function Oi(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Pi(e){return di(e)?e.nodeValue:null}function Ii(e,t,n){const r=ca(ra(t));if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:a}=r;if(null!==o){let t=Pi(o);const r=Si(o);if(null!==t&&xr(r)){if((t===X||t===ee)&&n){const e=n.length;t=n,i=e,a=e}null!==t&&zi(r,t,i,a,e)}}}function zi(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const a=i.isComposing();let s=t;if((a||o)&&(t.endsWith(X)&&(s=t.slice(0,-X.length)),o)){const e=ee;let t;for(;-1!==(t=s.indexOf(e));)s=s.slice(0,t)+s.slice(t+e.length),null!==n&&n>t&&(n=Math.max(t,n-e.length)),null!==r&&r>t&&(r=Math.max(t,r-e.length))}const l=i.getTextContent();if(o||s!==l){if(""===s){if(yi(null),D||j||W)i.remove();else{const e=mo();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}const t=i.getParent(),o=Yr(),l=i.getTextContentSize(),u=xi(),c=i.getKey();if(i.isToken()||null!==u&&c===u&&!a||Rr(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=Vr();if(!Rr(d)||null===n||null===r)return void Di(i,s,d);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=yr(i.getTextContent());i.replace(e),i=e}Di(i,s,d)}}}function Di(e,t,n){if(e.setTextContent(t),Rr(n)){const t=e.getKey();for(const r of["anchor","focus"]){const o=n[r];"text"===o.type&&o.key===t&&(o.offset=Ua(e,o.offset,"clamp"))}}}function ji(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function Fi(e,t,n){if(!function(e,t){return ji(e,t,"altKey")&&ji(e,t,"ctrlKey")&&ji(e,t,"shiftKey")&&ji(e,t,"metaKey")}(e,n))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1)return!1;if(1===e.key.length&&e.key.charCodeAt(0)<=127)return!1;const r="Key"+t.toUpperCase();return e.code===r}const Bi={ctrlKey:!P,metaKey:P},Hi={altKey:P,ctrlKey:!P};function Wi(e){return"Backspace"===e.key}function $i(e){return Fi(e,"a",Bi)}function Ui(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=_s(o);return n[t]=e,e}return o}function Ki(e,t,n,r,o){if(0===n.size)return;const i=r.__type,a=r.__key,s=t.get(i);void 0===s&&R(33,i);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 Gi(e){const t=e.getType(),n=go();if(n._readOnly){const e=_a(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 Vi(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 Yi(e,t){const n=e.offset;if("element"===e.type)return Vi(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?Vi(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function qi(e){const t=ra(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Qi(e,t,n){return function(e,t,n){const r=Ni(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(Ao(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 Ji(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&R(75,t),n}function Xi(e){const t=e.assignedSlot||e.parentElement;return ha(t)?t.host:t}function Zi(e){return fi(e)?e:fa(e)?e.ownerDocument:null}function ea(e){po(),mo()._updateTags.add(e)}function ta(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function na(e){const t=Zi(e);return t?t.defaultView:null}function ra(e){const t=e._window;return null===t&&R(78),t}function oa(e){return Do(e)||No(e)&&e.isShadowRoot()}function ia(e){const t=e.constructor.clone(e);return mi(t,null),t.afterCloneFrom(e),t}function aa(e){const t=mo(),n=e.getType(),r=ti(t,n);void 0===r&&R(200,e.constructor.name,n);const{replace:o,replaceWithKlass:i}=r;if(null!==o){const t=o(e),r=t.constructor;return null!==i?t instanceof i||R(201,i.name,i.getType(),r.name,r.getType(),e.constructor.name,n):t instanceof e.constructor&&r!==e.constructor||R(202,r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&R(203,e.constructor.name,n,r.name,r.getType()),t}return e}function sa(e,t){!Do(e.getParent())||No(t)||Io(t)||R(99)}function la(e){return(Io(e)||No(e)&&!e.canBeEmpty())&&!e.isInline()}function ua(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function ca(e){return N?(e||window).getSelection():null}function da(e){return fa(e)&&"A"===e.tagName}function fa(e){return pa(e)&&1===e.nodeType}function pa(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function ha(e){return pa(e)&&11===e.nodeType}function ga(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 ma(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 va(e){if(Io(e)&&!e.isInline())return!0;if(!No(e)||oa(e))return!1;const t=e.getFirstChild(),n=null===t||nr(t)||xr(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function ba(){return mo()}const ya=new WeakMap,xa=new Map;function _a(e){if(!e._readOnly&&e.isEmpty())return xa;e._readOnly||R(192);let t=ya.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),ya.set(e,t)),t}function wa(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function ka(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Sa(e){return!0===e.__lexicalUnmanaged}function Ca(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==Un[t]}function Ea(e){const t=se in e.prototype?e.prototype[se]():void 0,n=function(e){if(!(e===Un||e.prototype instanceof Un)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{Qo.version&&(n=JSON.parse(Qo.version))}catch(e){}R(290,e.name,t,n)}return e===Po||e===Mo||e===Un}(e),r=!n&&Ca(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&&(Ca(e,"getType")||(e.getType=()=>i),Ca(e,"clone")||(e.clone=t=>(Xo(t),new e)),Ca(e,"importJSON")||(e.importJSON=o&&o.$importJSON||(t=>(new e).updateFromJSON(t))),!Ca(e,"importDOM")&&o)){const{importDOM:t}=o;t&&(e.importDOM=()=>t)}return{ownNodeConfig:o,ownNodeType:i}}const Ta=(e,t)=>{let n=e;for(;null!=n&&!Do(n);){if(t(n))return n;n=n.getParent()}return null},Aa={next:"previous",previous:"next"};class La{origin;constructor(e){this.origin=e}[Symbol.iterator](){return Za({hasNext:Da,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Wa(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Wa(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&&R(263,Array.from(a).join(" "))}else o.insert(e);o=Wa(e,this.direction)}for(const e of a.values())e.remove();return this}}class Ra extends La{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Ga(e,this.direction)}getParentCaret(e="root"){return Wa(Oa(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Na(this.direction);return Wa(this.getNodeAtCaret(),e)||Ga(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Ra&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const Ma={root:Do,shadowRoot:oa};function Na(e){return Aa[e]}function Oa(e,t="root"){return Ma[t](e)?null:e}let Pa=class e extends La{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Wa(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return No(this.origin)?Ga(this.origin,this.direction):null}getParentCaret(e="root"){return Wa(Oa(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Na(this.direction);return Wa(this.getNodeAtCaret(),e)||Ga(this.origin.getParentOrThrow(),e)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof e||t instanceof Ia)&&this.direction===t.direction&&this.origin.is(t.origin)}},Ia=class e extends La{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:$a(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return Wa(Oa(this.getParentAtCaret(),e),this.direction)}getFlipped(){return $a(this.origin,Na(this.direction),this.offset)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof Pa||t instanceof e)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Wa(this.origin,this.direction)}};function za(e){return e instanceof Ia}function Da(e){return e instanceof Pa}function ja(e){return e instanceof Ra}const Fa={next:class extends Ia{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Ia{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Ba={next:class extends Pa{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Pa{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Ha={next:class extends Ra{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Ra{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function Wa(e,t){return e?new Ba[t](e):null}function $a(e,t,n){return e?new Fa[t](e,Ua(e,n)):null}function Ua(e,t,n="error"){const r=e.getTextContentSize();let o="next"===t?r:"previous"===t?0:t;return(o<0||o>r)&&("clamp"!==n&&M(284,String(t),String(r),e.getKey()),o=o<0?0:r),o}function Ka(e,t){return new qa(e,t)}function Ga(e,t){return No(e)?new Ha[t](e):null}function Va(e){return e&&function(e){return e&&e.getChildCaret()||e}(e.getAdjacentCaret())}class Ya{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 Ya(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return za(t)?function(e,t){const{direction:n,origin:r}=e;return Ka(e,Ua(r,"focus"===t?Na(n):n)-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[Ka(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=za(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=za(n),o=t=>t.isSameNodeCaret(n)?null:Va(t)||t.getParentCaret(e);return Za({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")}}let qa=class{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 $a(e.setTextContent(o.slice(0,n)+o.slice(r)),t,n)}};function Qa(e){return Xa(e,Wa(Ti(),e.direction))}function Ja(e){return Xa(e,e)}function Xa(e,t){return e.direction!==t.direction&&R(265),new Ya(e,t,e.direction)}function Za(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 es(e,t){const n=os(e.origin,t.origin);switch(null===n&&R(275,e.origin.getKey(),t.origin.getKey()),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 ts(n)}}function ts(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 ns(e,t){return t.is(e)}function rs(e){return No(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function os(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=rs(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,o]=rs(t);r;o=r,r=r.getParent()){const i=n.get(r);if(void 0!==i)return null===i?(ns(e,r)||R(276),{commonAncestor:r,type:"ancestor"}):null===o?(ns(t,r)||R(277),{commonAncestor:r,type:"descendant"}):((No(i)||ns(e,i))&&(No(o)||ns(t,o))&&r.is(i.getParent())&&r.is(o.getParent())||R(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function is(e,t){const{type:n,key:r,offset:o}=e,i=function(e){const t=_i(e);return null===t&&R(63,e),t}(e.key);return"text"===n?(xr(i)||R(266,i.getType(),r),$a(i,t,o)):(No(i)||R(267,i.getType(),r),function(e,t,n){let r=Ga(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return gs(r,n)}(i,e.offset,t))}function as(e,t){const{origin:n,direction:r}=t,o="next"===r;za(t)?e.set(n.getKey(),t.offset,"text"):Da(t)?xr(n)?e.set(n.getKey(),Ua(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(o?1:0),"element"):(ja(t)&&No(n)||R(268),e.set(n.getKey(),o?0:n.getChildrenSize(),"element"))}function ss(e){const t=Vr(),n=Rr(t)?t:Ur();return ls(n,e),Li(n),n}function ls(e,t){as(e.anchor,t.anchor),as(e.focus,t.focus)}function us(e){const{anchor:t,focus:n}=e,r=is(t,"next"),o=is(n,"next"),i=es(r,o)<=0?"next":"previous";return Xa(gs(r,i),gs(o,i))}function cs(e){const{direction:t,origin:n}=e,r=Wa(n,Na(t)).getNodeAtCaret();return r?Wa(r,t):Ga(n.getParentOrThrow(),t)}function ds(e,t="root"){const n=[e];for(let r=ja(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(cs(r));return n}function fs(e){return!!e&&e.origin.isAttached()}function ps(e){const t=function(e){let t=e;for(;ja(t);){const e=Va(t);if(!ja(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(xr(t.origin))return za(t)?t:$a(t.origin,n,n);const r=t.getAdjacentCaret();return Da(r)&&xr(r.origin)?$a(r.origin,n,Na(n)):t}function hs(e){return za(e)&&e.offset!==Ua(e.origin,e.direction)}function gs(e,t){return e.direction===t?e:e.getFlipped()}function ms(e,t){return e.direction===t?e:Xa(gs(e.focus,t),gs(e.anchor,t))}function vs(e){const{origin:t,offset:n,direction:r}=e;if(n===Ua(t,r))return e.getSiblingCaret();if(n===Ua(t,Na(r)))return cs(e.getSiblingCaret());const[o]=t.splitText(n);return xr(o)||R(281),gs(Wa(o,"next"),r)}function bs(e,t){return!0}function ys(e,{$copyElementNode:t=ia,$splitTextPointCaretNext:n=vs,rootMode:r="shadowRoot",$shouldSplit:o=bs}={}){if(za(e))return n(e);const i=e.getParentCaret(r);if(i){const{origin:n}=i;if(ja(e)&&(!n.canBeEmpty()||!o(n,"first")))return cs(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 xs(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function _s(...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 ws(e,...t){const n=_s(...t);n.length>0&&e.classList.add(...n)}function ks(e,...t){const n=_s(...t);n.length>0&&e.classList.remove(...n)}function Ss(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function Cs(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Es=new Map;function Ts(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 As(e){let t=Es.get(e);return void 0===t&&(t=Ts(e),Es.set(e,t)),t}function Ls(e){const t=ba().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function Rs(e){return Ls(Do(e)?e:e.getParentOrThrow())}function Ms(e){const t=Rs(e);return null!==t&&"rtl"===t.direction}function Ns(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!ci(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]=Pr(e),i=s.is(l),u=t.is(a?l:s),c=t.is(a?s:l);let d,f=0;i?(f=r>o?o:r,d=r>o?r:o):u?(f=a?o:r,d=void 0):c&&(f=0,d=a?r:o);const p=t.__text.slice(f,d);p!==t.__text&&("clone"===n&&(t=function(e){return(t=wa(e))[Wn]=!0,t;var t}(t)),t.__text=p)}}return t}function Os(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return No(t)||Cs(177),e.offset===t.getChildrenSize()}function Ps(e){const t=e.getStyle(),n=Ts(t);Es.set(t,n)}function Is(e,t){(Rr(e)?e.isCollapsed():xr(e)||No(e))||Cs(280);const n=As(Rr(e)?e.style:xr(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);Rr(e)||xr(e)?e.setStyle(o):e.setTextStyle(o),Es.set(o,r)}function zs(e,t){if(Rr(e)&&e.isCollapsed()){Is(e,t);const n=e.anchor.getNode();No(n)&&n.isEmpty()&&Is(n,t)}!function(e){const t=Vr();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if(Rr(t))for(const e of us(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const o=t.getNodes();for(const t of o){if(!xr(t)||!t.canHaveFormat())continue;const[n,o]=r(t);o!==n&&(ci(t)||0===n&&o===t.getTextContentSize()?e(t):e(t.splitText(n,o)[0===n?0:1]))}Rr(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=>{Is(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!No(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),Is(r,t))}}}function Ds(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function js(e){const t=Fs(e);return null!==t&&"vertical-rl"===t.writingMode}function Fs(e){const t=e.anchor.getNode();return No(t)?Ls(t):Rs(t)}function Bs(e,t){let n=js(e)?!t:t;Hs(e)&&(n=!n);const r=is(e.focus,n?"previous":"next");if(hs(r))return!1;for(const e of Qa(r)){if(ja(e))return!e.origin.isInline();if(!No(e.origin)){if(Io(e.origin))return!0;break}}return!1}function Hs(e){const t=Fs(e);return null!==t&&"rtl"===t.direction}function Ws(e,t,n){const r=Hs(e);let o;o=js(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,o,"character")}function $s(e,t,n){const r=As(e.getStyle());return null!==r&&r[t]||n}function Us(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(Rr(e)&&e.isCollapsed()&&""!==e.style){const n=As(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))&&xr(i)){const e=$s(i,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function Ks(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Gs="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Vs=Gs&&"documentMode"in document?document.documentMode:null;function Ys(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function qs(e){const t=Ta(e,e=>No(e)&&!e.isInline());return No(t)||Ks(4,e.__key),t}function Qs(e){const t=Vr()||Yr();let n;if(Rr(t))n=is(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=Wa(r,"next"))}n=n||Ga(Ti(),"previous").getFlipped().insert(Ko())}const r=Js(e,n),o=Va(r);return ss(Ja(ja(o)?ps(o):r)),e.getLatest()}function Js(e,t,n){let r=gs(t,"next");for(let e=r;e;e=ys(e,n))r=e;return za(r)&&Ks(283),r.insert(e.isInline()?Ko().append(e):e),gs(Wa(e.getLatest(),"next"),t.direction)}function Xs(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function Zs(e){const t=Vr();if(!Rr(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=Ta(o,e=>No(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}Gs&&"InputEvent"in window&&!Vs&&new window.InputEvent("input");const el=Symbol.for("preact-signals");function tl(){if(il>1)return void il--;let e,t=!1;for(;void 0!==rl;){let n=rl;for(rl=void 0,al++;void 0!==n;){const r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&dl(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(al=0,il--,t)throw e}let nl,rl;function ol(e){const t=nl;nl=void 0;try{return e()}finally{nl=t}}let il=0,al=0,sl=0;function ll(e){if(void 0===nl)return;let t=e.n;return void 0===t||t.t!==nl?(t={i:0,S:e,p:nl.s,n:void 0,t:nl,e:void 0,x:void 0,r:t},void 0!==nl.s&&(nl.s.n=t),nl.s=t,e.n=t,32&nl.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=nl.s,t.n=void 0,nl.s.n=t,nl.s=t),t):void 0}function ul(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 cl(e,t){return new ul(e,t)}function dl(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 fl(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 pl(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 hl(e,t){ul.call(this,void 0),this.x=e,this.s=void 0,this.g=sl-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 gl(e){const t=e.u;if(e.u=void 0,"function"==typeof t){il++;const n=nl;nl=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,ml(e),t}finally{nl=n,tl()}}}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,gl(e)}function vl(e){if(nl!==this)throw new Error("Out-of-order effect");pl(this),nl=e,this.f&=-2,8&this.f&&ml(this),tl()}function bl(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 yl(e,t){const n=new bl(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function xl(e,t={}){const n={};for(const r in e){const o=t[r],i=cl(void 0===o?e[r]:o);n[r]=i}return n}function _l(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function wl(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function kl(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]=kl(n[e],r[e]);return e}return t}ul.prototype.brand=el,ul.prototype.h=function(){return!0},ul.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:ol(()=>{var e;null==(e=this.W)||e.call(this)}))},ul.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&&ol(()=>{var e;null==(e=this.Z)||e.call(this)}))}},ul.prototype.subscribe=function(e){return yl(()=>{const t=this.value,n=nl;nl=void 0;try{e(t)}finally{nl=n}},{name:"sub"})},ul.prototype.valueOf=function(){return this.value},ul.prototype.toString=function(){return this.value+""},ul.prototype.toJSON=function(){return this.value},ul.prototype.peek=function(){const e=nl;nl=void 0;try{return this.value}finally{nl=e}},Object.defineProperty(ul.prototype,"value",{get(){const e=ll(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(al>100)throw new Error("Cycle detected");this.v=e,this.i++,sl++,il++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{tl()}}}}),hl.prototype=new ul,hl.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===sl)return!0;if(this.g=sl,this.f|=1,this.i>0&&!dl(this))return this.f&=-2,!0;const e=nl;try{fl(this),nl=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 nl=e,pl(this),this.f&=-2,!0},hl.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)}ul.prototype.S.call(this,e)},hl.prototype.U=function(e){if(void 0!==this.t&&(ul.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)}},hl.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(hl.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=ll(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),bl.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()}},bl.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,gl(this),fl(this),il++;const e=nl;return nl=this,vl.bind(this,e)},bl.prototype.N=function(){2&this.f||(this.f|=2,this.o=rl,rl=this)},bl.prototype.d=function(){this.f|=8,1&this.f||ml(this)},bl.prototype.dispose=function(){this.d()},function(e,t){new ye(e,t)}("format",{parse:e=>"number"==typeof e?e:0});function Sl(e){return 0===e.id}function Cl(e){return 2===e.id}const El=new Set;let Tl=class{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:0}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):xs;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;Cl(t)||wl(306,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:3,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:4,initResult:t,registerState:n})}(o,i,r)}build(e){const t=this.state;let n;4!==t.id&&wl(307,String(t.id),String(5)),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:5,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;5!==n.id&&wl(308,String(n.id),String(5));const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:6})}(n),()=>{const e=this.state;7!==e.id&&wl(309,String(n.id),String(7)),this.state=function(e){return Object.assign(e,{id:5})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return 6!==t.id&&wl(310,String(t.id),String(6)),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:7})}(t),n}getSignal(){return void 0===this._signal&&wl(311),this._signal}getInitResult(){void 0===this.extension.init&&wl(312,this.extension.name);const e=this.state;return function(e){return e.id>=4}(e)||wl(313,String(e.id),String(4)),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>=3}(e)||wl(314,String(e.id),String(3)),{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&&wl(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&wl(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=7}(e)||wl(316,String(e.id),String(7)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||El}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>=5})(e)||wl(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}};const Al={tag:Gn};function Ll(){const e=Ti();e.isEmpty()&&e.append(Ko())}const Rl={config:{setOptions:Al,updateOptions:Al},init:({$initialEditorState:e=Ll})=>({$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(function(e){return e instanceof Ho}(r))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:[zo,cr,Zn,wr,$o]},Ml=Symbol.for("@lexical/extension/LexicalBuilder");function Nl(){}function Ol(e){throw e}function Pl(e){return Array.isArray(e)?e:[e]}const Il="0.41.0+prod.esm";let zl=class e{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=Il,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(t){const n=[Pl(Rl)];for(const e of t)n.push(Pl(e));return new e(n)}static maybeFromEditor(t){const n=t[Ml];return n&&(n.PACKAGE_VERSION!==Il&&wl(292,n.PACKAGE_VERSION,Il),n instanceof e||wl(293)),n}static fromEditor(t){const n=e.maybeFromEditor(t);return void 0===n&&wl(294),n}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(qo({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[Ml]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=Nl;function t(){try{e()}finally{e=Nl}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=Ss(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&&wl(295,e.name),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&&wl(296);const t=Pl(e),[n]=t;"string"!=typeof n.name&&wl(297,typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&wl(298,n.name),!r){r=new Tl(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&wl(299,n.name,e);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&wl(299,n.name,e),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=Pl(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(Cl(o))return;const i=n.extension.name;var a;Sl(o)||wl(300,i,r||"[unknown]"),Sl(a=o)||wl(304,String(a.id),String(0)),o=Object.assign(a,{id:1}),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=function(e){return function(e){return 1===e.id}(e)||wl(305,String(e.id),String(1)),Object.assign(e,{id:2})}(o),n.state=o,e.push(n)};for(const e of this.extensionNameMap.values())Sl(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&&wl(301,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 Ss(...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 _l(a)){if("function"!=typeof e){const t=n.get(e.replace);t&&wl(302,a.name,e.replace.name,t.extension.name),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&&kl(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=Ol),e}};function Dl(e){return e.canBeEmpty()}const jl=new Set(["http:","https:","mailto:","sms:","tel:"]);let Fl=class e extends Mo{__url;__target;__rel;__title;static getType(){return"link"}static clone(t){return new e(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__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),ws(t,e.theme.link),t}updateLinkDOM(e,t,n){if(da(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:$l,priority:1})}}static importJSON(e){return Ul().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=Zl(e);try{const t=new URL(Zl(e));if(!jl.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=Ul(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(!Rr(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 Bl(e){const t=is(e,"next");return[t,t.getFlipped()]}function Hl(e,t){for(const n of t)if(n.origin.isAttached()){return void as(e,ps(n))}}function Wl(e){const t=Vr();let n=null,r=null;Rr(t)&&(n=Bl(t.anchor),r=Bl(t.focus));for(const t of Ga(e,"next")){const n=t.origin;if(No(n)&&!n.isInline()){const r=n.getChildren();if(r.length>0){const t=ia(e);t.append(...r),n.append(t)}Js(n,cs(t),{$shouldSplit:()=>!1})}}if(e.isEmpty()){const t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}Rr(t)&&(Hl(t.anchor,n),Hl(t.focus,r),Me(t))}function $l(e){let t=null;if(da(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=Ul(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Ul(e="",t){return aa(new Fl(e,t))}function Kl(e){return e instanceof Fl}let Gl=class e extends Fl{__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(t){return new e(t.__url,{isUnlinked:t.__isUnlinked,rel:t.__rel,target:t.__target,title:t.__title},t.__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 Vl().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=Vl(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}};function Vl(e="",t){return aa(new Gl(e,t))}function Yl(e){return e instanceof Gl}const ql=dt("TOGGLE_LINK_COMMAND");function Ql(e,t){if("element"===e.type){const n=e.getNode();return No(n)||function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[e.offset+t]||null}return null}function Jl(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=Vr();if(null===a||!Rr(a)&&!Nr(a))return;if(Nr(a)){const e=a.getNodes();if(0===e.length)return;return void e.forEach(e=>{if(null===n){const t=Ta(e,e=>!Yl(e)&&Kl(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=Ta(e,e=>!Yl(e)&&Kl(e));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==i&&t.setRel(i);else{const t=Ul(n,{rel:i,target:r});e.insertBefore(t),t.append(e)}}})}if(a.isCollapsed()&&null===n)for(const e of a.getNodes()){const t=Ta(e,e=>!Yl(e)&&Kl(e));return void(null!==t&&(t.getChildren().forEach(e=>{t.insertBefore(e)}),t.remove()))}const s=a.extract();if(null===n){const e=new Set;return void s.forEach(t=>{const n=Ta(t,e=>!Yl(e)&&Kl(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())||No(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=Ul(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=Ta(e,Kl);if(null!==t)return u(t)}!function(e){const t=Vr();if(!Rr(t))return e();const n=Me(t),r=n.isBackward(),o=Ql(n.anchor,r?-1:0),i=Ql(n.focus,r?0:-1);if(e(),o||i){const e=Vr();if(Rr(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")}Li(Me(t))}}}(()=>{let e=null;for(const t of s){if(!t.isAttached())continue;const a=Ta(t,Kl);if(a){u(a);continue}if(No(t)){if(!t.isInline())continue;if(Kl(t)){if(!(Yl(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();Kl(s)&&s.is(e)?s.append(t):(e=Ul(n,{rel:i,target:r,title:o}),t.insertAfter(e),e.append(t))}})}const Xl=/^\+?[0-9\s()-]{5,}$/;function Zl(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:Xl.test(e)?`tel:${e}`:`https://${e}`}function eu(e,t){for(let n=0;n<t.length;n++){const r=t[n](e);if(r)return r}return null}const tu=/[.,;\s]/;function nu(e){return tu.test(e)}function ru(e){return nu(e[e.length-1])}function ou(e){return nu(e[0])}function iu(e){let t=e.getPreviousSibling();return No(t)&&(t=t.getLastDescendant()),null===t||nr(t)||xr(t)&&ru(t.getTextContent())}function au(e){let t=e.getNextSibling();return No(t)&&(t=t.getFirstDescendant()),null===t||nr(t)||xr(t)&&ou(t.getTextContent())}function su(e,t,n,r){return!!(e>0?nu(n[e-1]):iu(r[0]))&&(t<n.length?nu(n[t]):au(r[r.length-1]))}function lu(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 uu(e,t,n,r){const o=Vl(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=yr(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=Vr(),c=u?u.getNodes().find(xr):void 0,d=yr(i.getTextContent());return d.setFormat(i.getFormat()),d.setDetail(i.getDetail()),d.setStyle(i.getStyle()),o.append(d,...s),c&&c===i&&(Rr(u)?d.select(u.anchor.offset,u.focus.offset):Nr(u)&&d.select(0,d.getTextContent().length)),i.replace(o),l}}function cu(e,t,n){const r=e.getChildren(),o=r.length;for(let t=0;t<o;t++){const o=r[t];if(!xr(o)||!o.isSimpleText())return du(e),void n(null,e.getURL())}const i=e.getTextContent(),a=eu(i,t);if(null===a||a.text!==i)return du(e),void n(null,e.getURL());if(!iu(e)||!au(e))return du(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 du(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 fu={changeHandlers:[],excludeParents:[],matchers:[]};function pu(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function hu(e){let t=1,n=e.getParent();for(;null!=n;){if(Mu(n)){const e=n.getParent();if(ju(e)){t++,n=e.getParent();continue}pu(40)}return t}return t}function gu(e){let t=e.getParent();ju(t)||pu(40);let n=t;for(;null!==n;)n=n.getParent(),ju(n)&&(t=n);return t}function mu(e){let t=[];const n=e.getChildren().filter(Mu);for(let e=0;e<n.length;e++){const r=n[e],o=r.getFirstChild();ju(o)?t=t.concat(mu(o)):t.push(r)}return t}function vu(e){return Mu(e)&&ju(e.getFirstChild())}function bu(e){return Ru().append(e)}function yu(e,t){return Mu(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function xu(e){const t=Vr();if(null!==t){let n=t.getNodes();if(Rr(t)){const r=t.getStartEndPoints();null===r&&pu(143);const[o]=r,i=o.getNode(),a=i.getParent();if(oa(i)){const e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=Ko();i.append(e),n=e.select().getNodes()}}else if(yu(i,n)){const t=Du(e);if(oa(a)){i.replace(t);const e=Ru();No(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(Mu(i)){const e=i.getParentOrThrow();_u(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const o=n[t];if(No(o)&&o.isEmpty()&&!Mu(o)&&!r.has(o.getKey())){wu(o,e);continue}let i=gi(o)?o.getParent():Mu(o)&&o.isEmpty()?o:null;for(;null!=i;){const t=i.getKey();if(ju(i)){if(!r.has(t)){const n=Du(e);_u(n,i.getChildren()),i.replace(n),r.add(t)}break}{const n=i.getParent();if(oa(n)&&!r.has(t)){r.add(t),wu(i,e);break}i=n}}}}}function _u(e,t){e.splice(e.getChildrenSize(),0,t)}function wu(e,t){if(ju(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),o=Ru();let i;if(_u(o,e.getChildren()),ju(n)&&t===n.getListType())n.append(o),ju(r)&&t===r.getListType()&&(_u(n,r.getChildren()),r.remove()),i=n;else if(ju(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(o),i=r;else{const n=Du(t);n.append(o),e.replace(n),i=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());const a=Vr();return Rr(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&&vu(n)&&vu(r)&&(ku(n.getFirstChild(),r.getFirstChild()),r.remove());const o=t.getChildren();o.length>0&&e.append(...o),t.remove()}function Su(e){const t="check"!==e.getListType();let n=e.getStart();for(const r of e.getChildren())Mu(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),ju(r.getFirstChild())||n++)}function Cu(e){const t=new Set;if(vu(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),o=e.getPreviousSibling();if(vu(r)&&vu(o)){const n=o.getFirstChild();if(ju(n)){n.append(e);const o=r.getFirstChild();ju(o)&&(_u(n,o.getChildren()),r.remove(),t.add(r.getKey()))}}else if(vu(r)){const t=r.getFirstChild();if(ju(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(vu(o)){const t=o.getFirstChild();ju(t)&&t.append(e)}else if(ju(n)){const t=Ru().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),i=Du(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 Eu(e){if(vu(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(ju(n?n.getParent():void 0)&&Mu(n)&&ju(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=Ru(),i=Du(r);o.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));const a=Ru(),s=Du(r);a.append(s),_u(s,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(a),n.replace(e)}}}let Tu=class extends Mo{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;const t=e.getParent();ju(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:Mo,importDOM:{li:()=>({conversion:Au,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();!ju(r)||"check"!==r.getListType()||ju(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;if(i&&i.nested&&(s=i.nested.listitem),void 0!==a&&r.push(..._s(a)),i){const e=n.getParent(),t=ju(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=_s(s);n.getChildren().some(e=>ju(e))?r.push(...e):o.push(...e)}o.length>0&&ks(e,...o),r.length>0&&ws(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=As(t.__textStyle);for(const t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(const t in As(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(No(n)&&this.canMergeWith(n)){const e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(Mu(e))return super.replace(e);this.setIndent(0);const n=this.getParentOrThrow();if(!ju(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=Du(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&&(No(e)||pu(139),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){const n=this.getParentOrThrow();if(ju(n)||pu(39),Mu(e))return super.insertAfter(e,t);const r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){const o=Du(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&&vu(t)&&vu(n)&&(ku(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){const n=Ru().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){const t=Ko();this.getChildren().forEach(e=>t.append(e));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),o=Mu(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 ju(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(;Mu(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&pu(117),(e=Math.floor(e))>=0||pu(199);let t=this.getIndent();for(;t!==e;)t<e?(Cu(this),t++):(Eu(this),t--);return this}canInsertAfter(e){return Mu(e)}canReplaceWith(e){return Mu(e)}canMergeWith(e){return Mu(e)||Go(e)}extractWithChild(e,t){if(!Rr(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 Du("bullet")}canMergeWhenEmpty(){return!0}};function Au(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return Lu(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 Lu(t.children[0]);const t=e.getAttribute("aria-checked");return{node:Ru("true"===t||"false"!==t&&void 0)}}function Lu(e){return"checkbox"!==e.getAttribute("type")?{node:null}:{node:Ru(e.hasAttribute("checked"))}}function Ru(e){return aa(new Tu(void 0,e))}function Mu(e){return e instanceof Tu}let Nu=class extends Mo{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();ju(t)&&e.getListType()===t.getListType()&&ku(e,t)}(e),Su(e)},extends:Mo,importDOM:{ol:()=>({conversion:Iu,priority:0}),ul:()=>({conversion:Iu,priority:0})}})}constructor(e="number",t=1,n){super(n);const r=zu[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,Ou(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(Ou(t,n.theme,this),e.__start!==this.__start&&t.setAttribute("start",String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){const t=this.createDOM(e._config,e);return fa(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];Mu(t)||(r===n&&(r=[...n]),r[e]=Ru().append(!No(t)||ju(t)||t.isInline()?t:yr(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return Mu(e)}};function Ou(e,t,n){const r=[],o=[],i=t.list;if(void 0!==i){const e=i[`${n.__tag}Depth`]||[],t=hu(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(..._s(s));for(let t=0;t<e.length;t++)t!==a&&o.push(n.__tag+t)}if(void 0!==u){const e=_s(u);t>1?r.push(...e):o.push(...e)}}o.length>0&&ks(e,...o),r.length>0&&ws(e,...r)}function Pu(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(Mu(r)){t.push(r);const e=r.getChildren();e.length>1&&e.forEach(e=>{ju(e)&&t.push(bu(e))})}else t.push(bu(r))}return t}function Iu(e){const t=e.nodeName.toLowerCase();let n=null;return"ol"===t?n=Du("number",e.start):"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(fa(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?Du("check"):Du("bullet")),{after:Pu,node:n}}const zu={ol:"number",ul:"bullet"};function Du(e="number",t=1){return aa(new Nu(e,t))}function ju(e){return e instanceof Nu}const Fu=dt("UPDATE_LIST_START_COMMAND"),Bu=dt("INSERT_UNORDERED_LIST_COMMAND"),Hu=dt("INSERT_ORDERED_LIST_COMMAND"),Wu=dt("REMOVE_LIST_COMMAND");function $u(e,t){return Ss(e.registerCommand(Hu,()=>(xu("number"),!0),1),e.registerCommand(Fu,e=>{const{listNodeKey:t,newStart:n}=e,r=_i(t);return!!ju(r)&&("number"===r.getListType()&&(r.setStart(n),Su(r)),!0)},1),e.registerCommand(Bu,()=>(xu("bullet"),!0),1),e.registerCommand(Wu,()=>(function(){const e=Vr();if(Rr(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(yu(r,n))t.add(gu(r));else for(let e=0;e<n.length;e++){const r=n[e];if(gi(r)){const e=Ys(r,Tu);null!=e&&t.add(gu(e))}}for(const n of t){let t=n;const r=mu(n);for(const n of r){const r=Ko().setTextStyle(e.style).setTextFormat(e.format);_u(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&as(e.anchor,ps(Ga(r,"next"))),n.__key===e.focus.key&&as(e.focus,ps(Ga(r,"next"))),n.remove()}n.remove()}}}(),!0),1),e.registerCommand(_t,()=>function(e=!1){const t=Vr();if(!Rr(t)||!t.isCollapsed())return!1;const n=t.anchor.getNode();let r=null;if(Mu(n)&&0===n.getChildrenSize())r=n;else if(xr(n)){const e=n.getParent();Mu(e)&&e.getChildren().every(e=>xr(e)&&""===e.getTextContent().trim())&&(r=e)}if(null===r)return!1;const o=gu(r),i=r.getParent();ju(i)||pu(40);const a=i.getParent();let s;if(oa(a))s=Ko(),o.insertAfter(s);else{if(!Mu(a))return!1;s=Ru(),a.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const l=r.getNextSiblings();if(l.length>0){const t=e?function(e,t){return e.getStart()+t.getIndexWithinParent()}(i,r):1,n=Du(i.getListType(),t);if(Mu(s)){const e=Ru();e.append(n),s.insertAfter(e)}else s.insertAfter(n);n.append(...l)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){const e=t.getParent();if(null==e||!Mu(e)&&!ju(e))break;t=e}t.remove()}(r),!0}(!(!t||!t.restoreNumbering)),1),e.registerNodeTransform(Tu,e=>{const t=e.getFirstChild();if(t){if(xr(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=Vr();Rr(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(cr,e=>{const t=e.getParent();if(Mu(t)&&e.is(t.getFirstChild())){const n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}))}const Uu=E.createContext(null);function Ku(){const e=E.useContext(Uu);return null==e&&function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}var Gu,Vu,Yu={exports:{}},qu={};var Qu=(Vu||(Vu=1,Yu.exports=function(){if(Gu)return qu;Gu=1;var e=h(),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 qu.Fragment=n,qu.jsx=a,qu.jsxs=a,qu}()),Yu.exports);const Ju="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Xu=Ju?E.useLayoutEffect:E.useEffect,Zu={tag:Gn};function ec({initialConfig:e,children:t}){const n=E.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=qo({editable:e.editable,html:a,namespace:n,nodes:r,onError:e=>o(e,l),theme:t});return function(e,t){if(null!==t)if(void 0===t)e.update(()=>{const t=Ti();if(t.isEmpty()){const n=Ko();t.append(n);const r=Ju?document.activeElement:null;(null!==Vr()||null!==r&&r===e.getRootElement())&&n.select()}},Zu);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Zu);break}case"object":e.setEditorState(t,Zu);break;case"function":e.update(()=>{Ti().isEmpty()&&t(e)},Zu)}}(l,i),[l,s]},[]);return Xu(()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),Qu.jsx(Uu.Provider,{value:n,children:t})}function tc(e,t){let n=Date.now(),r=0,o=Date.now(),i=0,a=null;return(s,l,u,c,d,f)=>{const p=Date.now();if(f.has(Jn)&&(o=n,i=r,a=s),f.has(Kn))return r=0,n=p,2;f.has(Xn)&&a&&(n=o,r=i,s=a);const h=function(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(!(Rr(i)&&Rr(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||Do(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)&&xr(r)&&1===r.__text.length&&1===i.anchor.offset?2:0}const l=s[0],u=e._nodeMap.get(l.__key);if(!xr(u)||!xr(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,g=p.offset,m=d.length-c.length;return 1===m&&g===h-1?2:-1===m&&g===h+1?3:-1===m&&g===h?4:0}(s,l,c,d,e.isComposing()),g=(()=>{const o=null===u||u.editor===e,i=f.has("history-push");if(!i&&o&&f.has(Gn))return 0;if(1===h)return 2;if(null===s)return 1;const a=l._selection;if(!(c.size>0||d.size>0))return null!==a?0:2;const g="number"==typeof t?t:t.peek();return!1===i&&0!==h&&h===r&&p<n+g&&o||1===c.size&&function(e,t,n){const r=t._nodeMap.get(e),o=n._nodeMap.get(e),i=t._selection,a=n._selection;return!(Rr(i)&&Rr(a)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!xr(r)||!xr(o)||r.__parent!==o.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>o.exportJSON()))}(Array.from(c)[0],s,l)?0:1})();return n=p,r=h,g}}function nc(e){e.undoStack=[],e.redoStack=[],e.current=null}function rc(e,t,n){const r=tc(e,n),o=Ss(e.registerCommand(At,()=>(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(nn,!0)),0===r.length&&e.dispatchCommand(rn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:Kn})}}(e,t),!0),0),e.registerCommand(Lt,()=>(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(rn,!0));const i=n.pop();0===n.length&&e.dispatchCommand(nn,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:Kn})}}(e,t),!0),0),e.registerCommand(en,()=>(nc(t),!1),0),e.registerCommand(tn,()=>(nc(t),e.dispatchCommand(nn,!1),e.dispatchCommand(rn,!1),!0),0),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(nn,!1)),null!==l&&(c.push({...l}),e.dispatchCommand(rn,!0));else if(2===f)return;t.current={editor:e,editorState:n}}));return o}function oc(){return{current:null,redoStack:[],undoStack:[]}}function ic({delay:e,externalHistoryState:t}){const[n]=Ku();return function(e,t,n=1e3){const r=E.useMemo(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);E.useEffect(()=>rc(e,r,n),[n,e,r])}(n,t,e),null}function ac({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){const[n]=Ku();return E.useEffect(()=>{if(!n.hasNodes([Nu,Tu]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),E.useEffect(()=>Ss($u(n,{restoreNumbering:t}),e?function(e){const t=e=>{const t=e.getParent();if(ju(e.getFirstChild())||!ju(t))return;const n=Ta(e,e=>Mu(e)&&ju(e.getParent())&&Mu(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(Mu(n)){const r=n.getPreviousSibling();if(Mu(r)){const n=function(e){let t=e,n=t.getFirstChild();for(;ju(n);){const e=n.getLastChild();if(!Mu(e))break;t=e,n=t.getFirstChild()}return t}(r),o=n.getParent();if(ju(o)){const n=hu(o);n+1<hu(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(Nu,e=>{const n=[e];for(;n.length>0;){const e=n.shift();if(ju(e))for(const r of e.getChildren())if(Mu(r)){t(r);const e=r.getFirstChild();ju(e)&&n.push(e)}}})}(n):()=>{}),[n,e,t]),function(e){E.useEffect(()=>$u(e),[e])}(n),null}function sc({maxIndent:e,$canIndent:t}){const[n]=Ku();return E.useEffect(()=>function(e,t,n=Dl){return Ss(e.registerCommand(Wt,t=>{const n=Vr();if(!Rr(n))return!1;t.preventDefault();const r=function(e){if(e.getNodes().filter(e=>Wr(e)&&e.canIndent()).length>0)return!0;const t=e.anchor,n=e.focus,r=n.isBefore(t)?n:t,o=qs(r.getNode());if(o.canIndent()){const e=o.getKey();let t=Ur();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),t=Me(t),t.anchor.is(r))return!0}return!1}(n)?t.shiftKey?Kt:Ut:$t;return e.dispatchCommand(r,void 0)},0),e.registerCommand(Ut,()=>{const e="number"==typeof t?t:t?t.peek():null;if(!Rr(Vr()))return!1;const r="function"==typeof n?n:n.peek();return Zs(t=>{if(r(t)){const n=t.getIndent()+1;(!e||n<e)&&t.setIndent(n)}})},4))}(n,e,t),[n,e,t]),null}function lc(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=No(t)&&t.excludeFromCopy("html");let a=t;null!==r&&xr(t)&&(a=Ns(r,t,"clone"));const s=No(a)?a.getChildren():[],l=ti(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=lc(e,i,f,r);!o&&No(t)&&a&&t.extractWithChild(i,r,"html")&&(o=!0)}if(o&&!i){if((fa(c)||ha(c))&&c.append(f),n.append(c),d){const e=d.call(a,c);e&&(ha(c)?c.replaceChildren(e):c.replaceWith(e))}}else n.append(f);return o}const uc=new Set(["STYLE","SCRIPT"]);function cc(e,t,n,r,o=new Map,i){let a=[];if(uc.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||!oa(s))&&(null!=s&&Wr(s)||r);for(let e=0;e<d.length;e++)f.push(...cc(d[e],t,n,p,new Map(o),s));return null!=c&&(f=c(f)),ma(e)&&(f=function(e,t,n){const r=e.style.textAlign,o=[];let i=[];for(let e=0;e<t.length;e++){const a=t[e];if(Wr(a))r&&!a.getFormat()&&a.setFormat(r),o.push(a);else if(i.push(a),e===t.length-1||e<t.length-1&&Wr(t[e+1])){const e=n();e.setFormat(r),e.append(...i),o.push(e),i=[]}}return o}(e,f,p?()=>{const e=new Wo;return n.push(e),e}:Ko)),null==s?f.length>0?a=a.concat(f):ma(e)&&function(e){return null!=e.nextSibling&&null!=e.previousSibling&&(ga(e.nextSibling)&&ga(e.previousSibling))}(e)&&(a=a.concat(tr())):No(s)&&s.append(...f),a}function dc(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function fc(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))return pc(n,function(e){const t=[];for(let n=0;n<e.length;n++){const r=_o(e[n]);xr(r)&&Ps(r),t.push(r)}return t}(e.nodes),t)}catch(e){console.error(e)}const o=e.getData("text/html"),i=e.getData("text/plain");if(o&&i!==o)try{return pc(n,function(e,t){const n=fi(t)?t.body.childNodes:t.childNodes;let r=[];const o=[];for(const t of n)if(!uc.has(t.nodeName)){const n=cc(t,e,o,!1);null!==n&&(r=r.concat(n))}return function(e){for(const t of e)t.getNextSibling()instanceof Wo&&t.insertAfter(tr());for(const t of e){const e=t.getChildren();for(const n of e)t.insertBefore(n);t.remove()}}(o),r}(n,(new DOMParser).parseFromString(function(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e):e}(o),"text/html")),t)}catch(e){console.error(e)}const a=i||e.getData("text/uri-list");if(null!=a)if(Rr(t)){const e=a.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=Vr();if(Rr(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([kr()]):n.insertText(r)}}}else t.insertRawText(a)}function pc(e,t,n){e.dispatchCommand(pt,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Rr(e)&&e.isCollapsed()){let t=null;const n=is(e.anchor,"previous");if(n)if(za(n))t=n.origin;else{const e=Xa(n,Ga(Ti(),"next").getFlipped());for(const n of e){if(xr(n.origin)){t=n.origin;break}if(No(n.origin)&&!n.origin.isInline())break}}if(t&&xr(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 hc(e,t,n,r=[]){let o=null===t||n.isSelected(t);const i=No(n)&&n.excludeFromCopy("html");let a=n;null!==t&&xr(a)&&(a=Ns(t,a,"clone"));const s=No(a)?a.getChildren():[],l=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&dc(58,n.name),No(e)){const e=t.children;Array.isArray(e)||dc(59,n.name)}return t}(a);xr(a)&&0===a.getTextContentSize()&&(o=!1);for(let r=0;r<s.length;r++){const i=s[r],a=hc(e,t,i,l.children);!o&&No(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 gc=null;async function mc(e,t,n){if(null!==gc)return!1;if(null!==t)return new Promise((r,o)=>{e.update(()=>{r(vc(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(Jt,r=>(Xs(r,ClipboardEvent)&&(a(),null!==gc&&(o.clearTimeout(gc),gc=null),t(vc(e,r,n))),!0),4);gc=o.setTimeout(()=>{a(),gc=null,t(!1)},50),i.execCommand("copy"),s.remove()})}function vc(e,t,n){if(void 0===n){const t=ca(e._window),r=Vr();if(!r||r.isCollapsed())return!1;if(!t)return!1;const o=t.anchorNode,i=t.focusNode;if(null!==o&&null!==i&&!ii(e,o,i))return!1;n=yc(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(function(e,t){for(const[n]of bc)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 bc=[["text/html",function(e,t=Vr()){return null==t&&dc(166),Rr(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=Ti().getChildren();for(let o=0;o<r.length;o++)lc(e,r[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=Vr()){return null==t&&dc(166),Rr(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Ti().getChildren();for(let o=0;o<r.length;o++)hc(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function yc(e=Vr()){const t={"text/plain":e?e.getTextContent():""};if(e){const n=ba();for(const[r,o]of bc){const i=o(n,e);null!==i&&(t[r]=i)}}return t}function xc(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 _c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,wc=_c&&"documentMode"in document?document.documentMode:null,kc=_c&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Sc=!(!_c||!("InputEvent"in window)||wc)&&"getTargetRanges"in new window.InputEvent("input"),Cc=_c&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Ec=_c&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Tc=_c&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Ac=_c&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&kc&&!Tc,Lc=dt("DRAG_DROP_PASTE_FILE");let Rc=class e extends Mo{static getType(){return"quote"}static clone(t){return new e(t.__key)}createDOM(e){const t=document.createElement("blockquote");return ws(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:zc,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fa(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 Mc().updateFromJSON(e)}insertNewAfter(e,t){const n=Ko(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=Ko();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Mc(){return aa(new Rc)}function Nc(e){return e instanceof Rc}let Oc=class e extends Mo{__tag;static getType(){return"heading"}static clone(t){return new e(t.__tag,t.__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){ws(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:Ic,priority:0}),h2:e=>({conversion:Ic,priority:0}),h3:e=>({conversion:Ic,priority:0}),h4:e=>({conversion:Ic,priority:0}),h5:e=>({conversion:Ic,priority:0}),h6:e=>({conversion:Ic,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&Pc(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>Pc(e)?{conversion:e=>({node:Dc("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(fa(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 Dc(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?Ko():Dc(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),0===n&&!this.isEmpty()&&e){const e=Ko();e.select(),this.replace(e,!0)}return o}collapseAtStart(){const e=this.isEmpty()?Ko():Dc(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}};function Pc(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function Ic(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=Dc(t),null!==e.style&&(ka(e,n),n.setFormat(e.style.textAlign))),{node:n}}function zc(e){const t=Mc();return null!==e.style&&(t.setFormat(e.style.textAlign),ka(e,t)),{node:t}}function Dc(e="h1"){return aa(new Oc(e))}function jc(e){return e instanceof Oc}function Fc(e){let t=null;if(Xs(e,DragEvent)?t=e.dataTransfer:Xs(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 Bc(e){return Io(Si(e))}function Hc(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Wc(e){return Ss(e.registerCommand(ht,e=>{const t=Vr();return!!Nr(t)&&(t.clear(),!0)},0),e.registerCommand(yt,e=>{const t=Vr();return Rr(t)?(t.deleteCharacter(e),!0):!!Nr(t)&&(t.deleteNodes(),!0)},0),e.registerCommand(Ct,e=>{const t=Vr();return!!Rr(t)&&(t.deleteWord(e),!0)},0),e.registerCommand(Et,e=>{const t=Vr();return!!Rr(t)&&(t.deleteLine(e),!0)},0),e.registerCommand(wt,t=>{const n=Vr();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)fc(r,n,e);else if(Rr(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0},0),e.registerCommand(St,()=>{const e=Vr();return!!Rr(e)&&(e.removeText(),!0)},0),e.registerCommand(Tt,e=>{const t=Vr();return!!Rr(t)&&(t.formatText(e),!0)},0),e.registerCommand(Vt,e=>{const t=Vr();if(!Rr(t)&&!Nr(t))return!1;const n=t.getNodes();for(const t of n){const n=Ta(t,e=>No(e)&&!e.isInline());null!==n&&n.setFormat(e)}return!0},0),e.registerCommand(xt,e=>{const t=Vr();return!!Rr(t)&&(t.insertLineBreak(e),!0)},0),e.registerCommand(_t,()=>{const e=Vr();return!!Rr(e)&&(e.insertParagraph(),!0)},0),e.registerCommand($t,()=>{const e=kr(),t=Vr();return Rr(t)&&(e.setFormat(t.format),e.setStyle(t.style)),to([e]),!0},0),e.registerCommand(Ut,()=>Zs(e=>{const t=e.getIndent();e.setIndent(t+1)}),0),e.registerCommand(Kt,()=>Zs(e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),0),e.registerCommand(It,e=>{const t=Vr();if(Nr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(Rr(t)){const n=Yi(t.focus,!0);if(!e.shiftKey&&Io(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},0),e.registerCommand(zt,e=>{const t=Vr();if(Nr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(Rr(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Ti().getChildrenSize()}(t))return e.preventDefault(),!0;const n=Yi(t.focus,!1);if(!e.shiftKey&&Io(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},0),e.registerCommand(Ot,e=>{const t=Vr();if(Nr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Ms(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!Rr(t))return!1;if(Bs(t,!0)){const n=e.shiftKey;return e.preventDefault(),Ws(t,n,!0),!0}return!1},0),e.registerCommand(Mt,e=>{const t=Vr();if(Nr(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),Ms(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!Rr(t))return!1;const n=e.shiftKey;return!!Bs(t,!1)&&(e.preventDefault(),Ws(t,n,!1),!0)},0),e.registerCommand(Ft,t=>{if(Bc(t.target))return!1;const n=Vr();if(Rr(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(Do(n))return!1;const r=qs(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(Kt,void 0);if(Ec&&"ko-KR"===navigator.language)return!1}else if(!Nr(n))return!1;return t.preventDefault(),e.dispatchCommand(yt,!0)},0),e.registerCommand(Ht,t=>{if(Bc(t.target))return!1;const n=Vr();return!(!Rr(n)&&!Nr(n))&&(t.preventDefault(),e.dispatchCommand(yt,!1))},0),e.registerCommand(Dt,t=>{const n=Vr();if(!Rr(n))return!1;if(Hc(n),null!==t){if((Ec||Cc||Ac)&&Sc)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(xt,!1)}return e.dispatchCommand(_t,void 0)},0),e.registerCommand(Bt,()=>!!Rr(Vr())&&(e.blur(),!0),0),e.registerCommand(Gt,t=>{const[,n]=Fc(t);if(n.length>0){const r=xc(t.clientX,t.clientY);if(null!==r){const{offset:t,node:o}=r,i=Si(o);if(null!==i){const e=Ur();if(xr(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")}Li(Me(e))}e.dispatchCommand(Lc,n)}return t.preventDefault(),!0}return!!Rr(Vr())},0),e.registerCommand(Yt,e=>{const[t]=Fc(e),n=Vr();return!(t&&!Rr(n))},0),e.registerCommand(qt,e=>{const[t]=Fc(e),n=Vr();if(t&&!Rr(n))return!1;const r=xc(e.clientX,e.clientY);if(null!==r){Io(Si(r.node))&&e.preventDefault()}return!0},0),e.registerCommand(Zt,()=>(function(e){const t=Ti();if(Rr(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"),Me(e),e}{const e=t.select(0,t.getChildrenSize());Li(Me(e))}}(),!0),0),e.registerCommand(Jt,t=>(mc(e,Xs(t,ClipboardEvent)?t:null),!0),0),e.registerCommand(Xt,t=>(async function(e,t){await mc(t,Xs(e,ClipboardEvent)?e:null),t.update(()=>{const e=Vr();Rr(e)?e.removeText():Nr(e)&&e.getNodes().forEach(e=>e.remove())})}(t,e),!0),0),e.registerCommand(kt,t=>{const[,n,r]=Fc(t);return n.length>0&&!r?(e.dispatchCommand(Lc,n),!0):(!pa(t.target)||!oi(t.target))&&(null!==Vr()&&(function(e,t){e.preventDefault(),t.update(()=>{const n=Vr(),r=Xs(e,InputEvent)||Xs(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&fc(r,n,t)},{tag:"paste"})}(t,e),!0))},0),e.registerCommand(jt,e=>{const t=Vr();return Rr(t)&&Hc(t),!1},0),e.registerCommand(Wt,e=>{const t=Vr();return Rr(t)&&Hc(t),!1},0))}function $c(e,t,n,r){E.useEffect(()=>{e.hasNodes([Gl])||function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77)}),E.useEffect(()=>function(e,t=fu){const{matchers:n,changeHandlers:r,excludeParents:o}=t,i=(e,t)=>{for(const n of r)n(e,t)};return Ss(e.registerNodeTransform(cr,e=>{const t=e.getParentOrThrow(),r=e.getPreviousSibling();if(Yl(t)&&!t.getIsUnlinked())cu(t,n,i);else if(!Kl(t)&&!o.some(e=>e(t))){if(e.isSimpleText()&&(ou(e.getTextContent())||!Yl(r))){const t=function(e){const t=[e];let n=e.getNextSibling();for(;null!==n&&xr(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(Yl(e)&&!e.getIsUnlinked())return}let r=[...e];const o=r.map(e=>e.getTextContent()).join("");let i,a=o,s=0;for(;(i=eu(a,t))&&null!==i;){const e=i.index,t=e+i.length;if(su(s+e,s+t,o,r)){const[o,,l,u]=lu(r,s+e,s+t);let c=!1;for(const e of l){const t=e.getParent();if(Yl(t)&&!t.getIsUnlinked()){c=!0;break}}if(c){s+=t,a=a.substring(t);continue}const d=uu(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,i)}!function(e,t,n){const r=e.getParent(),o=e.getPreviousSibling(),i=e.getNextSibling(),a=e.getTextContent();if(!Yl(r)||r.getIsUnlinked()){if(Yl(o)&&!o.getIsUnlinked()&&o.is(e.getPreviousSibling())&&e.getParent()===o.getParent()){if(!ou(a))return du(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=eu(r,t);null!==i&&i.text===r&&(o.append(e),cu(o,t,n),n(null,o.getURL()))}}var s;!Yl(i)||i.getIsUnlinked()||ru(a)||i.is(e.getNextSibling())&&e.getParent()===i.getParent()&&(du(i),n(null,i.getURL()))}}(e,n,i)}}),e.registerCommand(ql,e=>{const t=Vr();return!(null!==e||!Rr(t)||(t.extract().forEach(e=>{const t=e.getParent();Yl(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),1))},1))}(e,{changeHandlers:n?[n]:[],excludeParents:r??[],matchers:t}),[e,t,n,r])}function Uc({matchers:e,onChange:t,excludeParents:n}){const[r]=Ku();return $c(r,e,t,n),null}const Kc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function Gc(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Vc(){return function(e){const[t]=Ku(),n=E.useMemo(()=>e(t),[t,e]),[r,o]=E.useState(()=>n.initialValueFn()),i=E.useRef(r);return Kc(()=>{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}(Gc)}const Yc={black:"#000",white:"#fff"},qc="#e57373",Qc="#ef5350",Jc="#f44336",Xc="#d32f2f",Zc="#c62828",ed="#f3e5f5",td="#ce93d8",nd="#ba68c8",rd="#ab47bc",od="#9c27b0",id="#7b1fa2",ad="#e3f2fd",sd="#90caf9",ld="#42a5f5",ud="#1976d2",cd="#1565c0",dd="#4fc3f7",fd="#29b6f6",pd="#03a9f4",hd="#0288d1",gd="#01579b",md="#81c784",vd="#66bb6a",bd="#4caf50",yd="#388e3c",xd="#2e7d32",_d="#1b5e20",wd="#ffb74d",kd="#ffa726",Sd="#ff9800",Cd="#f57c00",Ed="#e65100",Td={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 Ad(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 Ld=Object.freeze({__proto__:null,default:Ad}),Rd="$$material";function Md(){return Md=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},Md.apply(null,arguments)}function Nd(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 Od=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];if(this.isSpeedy){var n=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{n.insertRule(e,n.cssRules.length)}catch(e){}}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},e}(),Pd="-ms-",Id="-moz-",zd="-webkit-",Dd="comm",jd="rule",Fd="decl",Bd="@keyframes",Hd=Math.abs,Wd=String.fromCharCode,$d=Object.assign;function Ud(e){return e.trim()}function Kd(e,t,n){return e.replace(t,n)}function Gd(e,t){return e.indexOf(t)}function Vd(e,t){return 0|e.charCodeAt(t)}function Yd(e,t,n){return e.slice(t,n)}function qd(e){return e.length}function Qd(e){return e.length}function Jd(e,t){return t.push(e),e}var Xd=1,Zd=1,ef=0,tf=0,nf=0,rf="";function of(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Xd,column:Zd,length:a,return:""}}function af(e,t){return $d(of("",null,null,"",null,null,0),e,{length:-e.length},t)}function sf(){return nf=tf>0?Vd(rf,--tf):0,Zd--,10===nf&&(Zd=1,Xd--),nf}function lf(){return nf=tf<ef?Vd(rf,tf++):0,Zd++,10===nf&&(Zd=1,Xd++),nf}function uf(){return Vd(rf,tf)}function cf(){return tf}function df(e,t){return Yd(rf,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 pf(e){return Xd=Zd=1,ef=qd(rf=e),tf=0,[]}function hf(e){return rf="",e}function gf(e){return Ud(df(tf-1,bf(91===e?e+2:40===e?e+1:e)))}function mf(e){for(;(nf=uf())&&nf<33;)lf();return ff(e)>2||ff(nf)>3?"":" "}function vf(e,t){for(;--t&&lf()&&!(nf<48||nf>102||nf>57&&nf<65||nf>70&&nf<97););return df(e,cf()+(t<6&&32==uf()&&32==lf()))}function bf(e){for(;lf();)switch(nf){case e:return tf;case 34:case 39:34!==e&&39!==e&&bf(nf);break;case 40:41===e&&bf(e);break;case 92:lf()}return tf}function yf(e,t){for(;lf()&&e+nf!==57&&(e+nf!==84||47!==uf()););return"/*"+df(t,tf-1)+"*"+Wd(47===e?e:lf())}function xf(e){for(;!ff(uf());)lf();return df(e,tf)}function _f(e){return hf(wf("",null,null,null,[""],e=pf(e),0,[0],e))}function wf(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,h=0,g=1,m=1,v=1,b=0,y="",x=o,_=i,w=r,k=y;m;)switch(h=b,b=lf()){case 40:if(108!=h&&58==Vd(k,d-1)){-1!=Gd(k+=Kd(gf(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=gf(b);break;case 9:case 10:case 13:case 32:k+=mf(h);break;case 92:k+=vf(cf()-1,7);continue;case 47:switch(uf()){case 42:case 47:Jd(Sf(yf(lf(),cf()),t,n),l);break;default:k+="/"}break;case 123*g:s[u++]=qd(k)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:-1==v&&(k=Kd(k,/\f/g,"")),p>0&&qd(k)-d&&Jd(p>32?Cf(k+";",r,n,d-1):Cf(Kd(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Jd(w=kf(k,t,n,u,c,o,s,y,x=[],_=[],d),i),123===b)if(0===c)wf(k,t,w,w,x,i,d,s,_);else switch(99===f&&110===Vd(k,3)?100:f){case 100:case 108:case 109:case 115:wf(e,w,w,r&&Jd(kf(e,w,w,0,0,o,s,y,o,x=[],d),_),o,_,d,s,r?x:_);break;default:wf(k,w,w,w,[""],_,0,s,_)}}u=c=p=0,g=v=1,y=k="",d=a;break;case 58:d=1+qd(k),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==sf())continue;switch(k+=Wd(b),b*g){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(qd(k)-1)*v,v=1;break;case 64:45===uf()&&(k+=gf(lf())),f=uf(),c=d=qd(y=k+=xf(cf())),b++;break;case 45:45===h&&2==qd(k)&&(g=0)}}return i}function kf(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],p=Qd(f),h=0,g=0,m=0;h<r;++h)for(var v=0,b=Yd(e,d+1,d=Hd(g=a[h])),y=e;v<p;++v)(y=Ud(g>0?f[v]+" "+b:Kd(b,/&\f/g,f[v])))&&(l[m++]=y);return of(e,t,n,0===o?jd:s,l,u,c)}function Sf(e,t,n){return of(e,t,n,Dd,Wd(nf),Yd(e,2,-2),0)}function Cf(e,t,n,r){return of(e,t,n,Fd,Yd(e,0,r),Yd(e,r+1,-1),r)}function Ef(e,t){for(var n="",r=Qd(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Tf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Fd:return e.return=e.return||e.value;case Dd:return"";case Bd:return e.return=e.value+"{"+Ef(e.children,r)+"}";case jd:e.value=e.props.join(",")}return qd(n=Ef(e.children,r))?e.return=e.value+"{"+n+"}":""}function Af(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Lf=function(e,t,n){for(var r=0,o=0;r=o,o=uf(),38===r&&12===o&&(t[n]=1),!ff(o);)lf();return df(e,tf)},Rf=function(e,t){return hf(function(e,t){var n=-1,r=44;do{switch(ff(r)){case 0:38===r&&12===uf()&&(t[n]=1),e[n]+=Lf(tf-1,t,n);break;case 2:e[n]+=gf(r);break;case 4:if(44===r){e[++n]=58===uf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Wd(r)}}while(r=lf());return e}(pf(e),t))},Mf=new WeakMap,Nf=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)||Mf.get(n))&&!r){Mf.set(e,!0);for(var o=[],i=Rf(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]}}},Of=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Pf(e,t){switch(function(e,t){return 45^Vd(e,0)?(((t<<2^Vd(e,0))<<2^Vd(e,1))<<2^Vd(e,2))<<2^Vd(e,3):0}(e,t)){case 5103:return zd+"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 zd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zd+e+Id+e+Pd+e+e;case 6828:case 4268:return zd+e+Pd+e+e;case 6165:return zd+e+Pd+"flex-"+e+e;case 5187:return zd+e+Kd(e,/(\w+).+(:[^]+)/,zd+"box-$1$2"+Pd+"flex-$1$2")+e;case 5443:return zd+e+Pd+"flex-item-"+Kd(e,/flex-|-self/,"")+e;case 4675:return zd+e+Pd+"flex-line-pack"+Kd(e,/align-content|flex-|-self/,"")+e;case 5548:return zd+e+Pd+Kd(e,"shrink","negative")+e;case 5292:return zd+e+Pd+Kd(e,"basis","preferred-size")+e;case 6060:return zd+"box-"+Kd(e,"-grow","")+zd+e+Pd+Kd(e,"grow","positive")+e;case 4554:return zd+Kd(e,/([^-])(transform)/g,"$1"+zd+"$2")+e;case 6187:return Kd(Kd(Kd(e,/(zoom-|grab)/,zd+"$1"),/(image-set)/,zd+"$1"),e,"")+e;case 5495:case 3959:return Kd(e,/(image-set\([^]*)/,zd+"$1$`$1");case 4968:return Kd(Kd(e,/(.+:)(flex-)?(.*)/,zd+"box-pack:$3"+Pd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zd+e+e;case 4095:case 3583:case 4068:case 2532:return Kd(e,/(.+)-inline(.+)/,zd+"$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(qd(e)-1-t>6)switch(Vd(e,t+1)){case 109:if(45!==Vd(e,t+4))break;case 102:return Kd(e,/(.+:)(.+)-([^]+)/,"$1"+zd+"$2-$3$1"+Id+(108==Vd(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Gd(e,"stretch")?Pf(Kd(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Vd(e,t+1))break;case 6444:switch(Vd(e,qd(e)-3-(~Gd(e,"!important")&&10))){case 107:return Kd(e,":",":"+zd)+e;case 101:return Kd(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zd+(45===Vd(e,14)?"inline-":"")+"box$3$1"+zd+"$2$3$1"+Pd+"$2box$3")+e}break;case 5936:switch(Vd(e,t+11)){case 114:return zd+e+Pd+Kd(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zd+e+Pd+Kd(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zd+e+Pd+Kd(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return zd+e+Pd+e+e}return e}var If,zf,Df,jf,Ff=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Fd:e.return=Pf(e.value,e.length);break;case Bd:return Ef([af(e,{value:Kd(e.value,"@","@"+zd)})],r);case jd: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 Ef([af(e,{props:[Kd(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ef([af(e,{props:[Kd(t,/:(plac\w+)/,":"+zd+"input-$1")]}),af(e,{props:[Kd(t,/:(plac\w+)/,":-moz-$1")]}),af(e,{props:[Kd(t,/:(plac\w+)/,Pd+"input-$1")]})],r)}return""})}}],Bf=function(e){var t=e.key;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,o,i=e.stylisPlugins||Ff,a={},s=[];r=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,u,c=[Tf,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=Qd(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Nf,Of].concat(i,c));o=function(e,t,n,r){l=n,function(e){Ef(_f(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Od({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return f.sheet.hydrate(s),f},Hf={exports:{}},Wf={};function $f(){return zf||(zf=1,Hf.exports=function(){if(If)return Wf;If=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,g=e?Symbol.for("react.block"):60121,m=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 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 y(e)===u}return Wf.AsyncMode=l,Wf.ConcurrentMode=u,Wf.ContextConsumer=s,Wf.ContextProvider=a,Wf.Element=t,Wf.ForwardRef=c,Wf.Fragment=r,Wf.Lazy=h,Wf.Memo=p,Wf.Portal=n,Wf.Profiler=i,Wf.StrictMode=o,Wf.Suspense=d,Wf.isAsyncMode=function(e){return x(e)||y(e)===l},Wf.isConcurrentMode=x,Wf.isContextConsumer=function(e){return y(e)===s},Wf.isContextProvider=function(e){return y(e)===a},Wf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Wf.isForwardRef=function(e){return y(e)===c},Wf.isFragment=function(e){return y(e)===r},Wf.isLazy=function(e){return y(e)===h},Wf.isMemo=function(e){return y(e)===p},Wf.isPortal=function(e){return y(e)===n},Wf.isProfiler=function(e){return y(e)===i},Wf.isStrictMode=function(e){return y(e)===o},Wf.isSuspense=function(e){return y(e)===d},Wf.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===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Wf.typeOf=y,Wf}()),Hf.exports}var Uf=function(){if(jf)return Df;jf=1;var e=$f(),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 Df=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),g=i(r),m=0;m<p.length;++m){var v=p[m];if(!(n[v]||o&&o[v]||g&&g[v]||h&&h[v])){var b=u(r,v);try{a(t,v,b)}catch(e){}}}}return t},Df}(),Kf=o(Uf);function Gf(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Vf=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Yf=function(e,t,n){Vf(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 qf={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},Qf=/[A-Z]|^ms/g,Jf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xf=function(e){return 45===e.charCodeAt(1)},Zf=function(e){return null!=e&&"boolean"!=typeof e},ep=Af(function(e){return Xf(e)?e:e.replace(Qf,"-$&").toLowerCase()}),tp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Jf,function(e,t,n){return rp={name:t,styles:n,next:rp},t})}return 1===qf[e]||Xf(e)||"number"!=typeof t||0===t?t:t+"px"};function np(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return rp={name:o.name,styles:o.styles,next:rp},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)rp={name:a.name,styles:a.styles,next:rp},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+=np(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]+"}":Zf(s)&&(r+=ep(i)+":"+tp(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=np(e,t,a);switch(i){case"animation":case"animationName":r+=ep(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Zf(a[u])&&(r+=ep(i)+":"+tp(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=rp,l=n(e);return rp=s,np(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var rp,op=/label:\s*([^\s;{]+)\s*(;|$)/g;function ip(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="";rp=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=np(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=np(n,t,e[a]),r)o+=i[a]}op.lastIndex=0;for(var s,l="";null!==(s=op.exec(o));)l+="-"+s[1];var u=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)+l;return{name:u,styles:o,next:rp}}var ap,sp,lp=!!A.useInsertionEffect&&A.useInsertionEffect,up=lp||function(e){return e()},cp=lp||E.useLayoutEffect,dp=E.createContext("undefined"!=typeof HTMLElement?Bf({key:"css"}):null),fp=dp.Provider,pp=function(e){return E.forwardRef(function(t,n){var r=E.useContext(dp);return e(t,r,n)})},hp=E.createContext({}),gp={}.hasOwnProperty,mp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Vf(t,n,r),up(function(){return Yf(t,n,r)}),null},bp=pp(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[mp],i=[r],a="";"string"==typeof e.className?a=Gf(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=ip(i,void 0,E.useContext(hp));a+=t.key+"-"+s.name;var l={};for(var u in e)gp.call(e,u)&&"css"!==u&&u!==mp&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),E.createElement(E.Fragment,null,E.createElement(vp,{cache:t,serialized:s,isStringTag:"string"==typeof o}),E.createElement(o,l))}),yp=bp,xp=function(e,t){var n=arguments;if(null==t||!gp.call(t,"css"))return E.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=yp,o[1]=function(e,t){var n={};for(var r in t)gp.call(t,r)&&(n[r]=t[r]);return n[mp]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return E.createElement.apply(null,o)};ap=xp||(xp={}),sp||(sp=ap.JSX||(ap.JSX={}));var _p=pp(function(e,t){var n=ip([e.styles],void 0,E.useContext(hp)),r=E.useRef();return cp(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]),cp(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Yf(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 wp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ip(t)}function kp(){var e=wp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Sp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Cp=Af(function(e){return Sp.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Ep=function(e){return"theme"!==e},Tp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Cp:Ep},Ap=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},Lp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Vf(t,n,r),up(function(){return Yf(t,n,r)}),null},Rp=function e(t,n){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=Ap(t,n,i),l=s||Tp(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];d.push(f[0]);for(var p=c.length,h=1;h<p;h++)d.push(c[h],f[h])}var g=pp(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=E.useContext(hp)}"string"==typeof e.className?i=Gf(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var h=ip(d.concat(c),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=u&&void 0===s?Tp(r):l,m={};for(var v in e)u&&"as"===v||g(v)&&(m[v]=e[v]);return m.className=i,n&&(m.ref=n),E.createElement(E.Fragment,null,E.createElement(Lp,{cache:t,serialized:h,isStringTag:"string"==typeof r}),E.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,Md({},n,r,{shouldForwardProp:Ap(g,r,!0)})).apply(void 0,d)},g}}.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){Rp[e]=Rp(e)});var Mp,Np,Op,Pp,Ip,zp={exports:{}};function Dp(){if(Np)return Mp;Np=1;return Mp="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function jp(){if(Pp)return Op;Pp=1;var e=Dp();function t(){}function n(){}return n.resetWarningCache=t,Op=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 Fp(){return Ip||(Ip=1,zp.exports=jp()()),zp.exports}var Bp=o(Fp());const Hp=new Map;function Wp(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 Qu.jsx(_p,{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 Np(e,t){return yp(e,t)}const Op=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Pp=[];function Ip(e){return Pp[0]=e,Yf(Pp)}var zp=Object.freeze({__proto__:null,GlobalStyles:Mp,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=E.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&Rp.has(e))return Rp.get(e);const r=function(e,t){const n=Lf({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 Rp.set(e,r),r},[t,n]);return t||n?ju.jsx(tp,{value:o,children:r}):r},ThemeContext:rp,css:dp,default:Np,internal_processStyles:Op,internal_serializeStyles:Ip,keyframes:fp});function Dp(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 jp(e){if(E.isValidElement(e)||!Dp(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=jp(e[n])}),t}function Fp(e,t,n={clone:!0}){const r=n.clone?xd({},e):e;return Dp(e)&&Dp(t)&&Object.keys(t).forEach(o=>{E.isValidElement(t[o])?r[o]=t[o]:Dp(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Dp(e[o])?r[o]=Fp(e[o],t[o],n):n.clone?r[o]=Dp(t[o])?jp(t[o]):t[o]:r[o]=t[o]}),r}var Bp=Object.freeze({__proto__:null,default:Fp,isPlainObject:Dp});const Hp=["values","unit","step"];function Wp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=_d(e,Hp),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)=>xd({},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 xd({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 $p={borderRadius:4};function Up(e,t){return t?Fp(e,t,{clone:!1}):e}const Kp={xs:0,sm:600,md:900,lg:1200,xl:1536},Gp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Kp[e]}px)`};function Vp(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Gp;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||Gp;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||Kp).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function Yp(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}function qp(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function Qp({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 Jp(e){if("string"!=typeof e)throw new Error(vd(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Xp=Object.freeze({__proto__:null,default:Jp});function Zp(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 eh(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Zp(e,n)||r,t&&(o=t(o,r,e)),o}function th(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=Zp(e.theme,r)||{};return Vp(e,i,e=>{let r=eh(a,o,e);return e===r&&"string"==typeof e&&(r=eh(a,o,`${t}${"default"===e?"":Jp(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const nh={m:"margin",p:"padding"},rh={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},oh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ih=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!oh[e])return[e];e=oh[e]}const[t,n]=e.split(""),r=nh[t],o=rh[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),ah=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],sh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function lh(e,t,n,r){var o;const i=null!=(o=Zp(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 uh(e){return lh(e,"spacing",8)}function ch(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 dh(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=ch(t,n),e),{})}(ih(n),r);return Vp(e,e[n],o)}function fh(e,t){const n=uh(e.theme);return Object.keys(e).map(r=>dh(e,t,r,n)).reduce(Up,{})}function ph(e){return fh(e,ah)}function hh(e){return fh(e,sh)}function gh(...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]?Up(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function mh(e){return"number"!=typeof e?e:`${e}px solid`}function vh(e,t){return th({prop:e,themeKey:"borders",transform:t})}ph.propTypes={},ph.filterProps=ah,hh.propTypes={},hh.filterProps=sh;const bh=vh("border",mh),yh=vh("borderTop",mh),xh=vh("borderRight",mh),_h=vh("borderBottom",mh),wh=vh("borderLeft",mh),kh=vh("borderColor"),Sh=vh("borderTopColor"),Ch=vh("borderRightColor"),Eh=vh("borderBottomColor"),Th=vh("borderLeftColor"),Ah=vh("outline",mh),Lh=vh("outlineColor"),Rh=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=lh(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:ch(t,e)});return Vp(e,e.borderRadius,n)}return null};Rh.propTypes={},Rh.filterProps=["borderRadius"],gh(bh,yh,xh,_h,wh,kh,Sh,Ch,Eh,Th,Rh,Ah,Lh);const Mh=e=>{if(void 0!==e.gap&&null!==e.gap){const t=lh(e.theme,"spacing",8),n=e=>({gap:ch(t,e)});return Vp(e,e.gap,n)}return null};Mh.propTypes={},Mh.filterProps=["gap"];const Nh=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=lh(e.theme,"spacing",8),n=e=>({columnGap:ch(t,e)});return Vp(e,e.columnGap,n)}return null};Nh.propTypes={},Nh.filterProps=["columnGap"];const Oh=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=lh(e.theme,"spacing",8),n=e=>({rowGap:ch(t,e)});return Vp(e,e.rowGap,n)}return null};Oh.propTypes={},Oh.filterProps=["rowGap"];function Ph(e,t){return"grey"===t?t:e}gh(Mh,Nh,Oh,th({prop:"gridColumn"}),th({prop:"gridRow"}),th({prop:"gridAutoFlow"}),th({prop:"gridAutoColumns"}),th({prop:"gridAutoRows"}),th({prop:"gridTemplateColumns"}),th({prop:"gridTemplateRows"}),th({prop:"gridTemplateAreas"}),th({prop:"gridArea"}));function Ih(e){return e<=1&&0!==e?100*e+"%":e}gh(th({prop:"color",themeKey:"palette",transform:Ph}),th({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ph}),th({prop:"backgroundColor",themeKey:"palette",transform:Ph}));const zh=th({prop:"width",transform:Ih}),Dh=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])||Kp[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:Ih(t)}};return Vp(e,e.maxWidth,t)}return null};Dh.filterProps=["maxWidth"];const jh=th({prop:"minWidth",transform:Ih}),Fh=th({prop:"height",transform:Ih}),Bh=th({prop:"maxHeight",transform:Ih}),Hh=th({prop:"minHeight",transform:Ih});th({prop:"size",cssProperty:"width",transform:Ih}),th({prop:"size",cssProperty:"height",transform:Ih});gh(zh,Dh,jh,Fh,Bh,Hh,th({prop:"boxSizing"}));const Wh={border:{themeKey:"borders",transform:mh},borderTop:{themeKey:"borders",transform:mh},borderRight:{themeKey:"borders",transform:mh},borderBottom:{themeKey:"borders",transform:mh},borderLeft:{themeKey:"borders",transform:mh},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:mh},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Rh},color:{themeKey:"palette",transform:Ph},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ph},backgroundColor:{themeKey:"palette",transform:Ph},p:{style:hh},pt:{style:hh},pr:{style:hh},pb:{style:hh},pl:{style:hh},px:{style:hh},py:{style:hh},padding:{style:hh},paddingTop:{style:hh},paddingRight:{style:hh},paddingBottom:{style:hh},paddingLeft:{style:hh},paddingX:{style:hh},paddingY:{style:hh},paddingInline:{style:hh},paddingInlineStart:{style:hh},paddingInlineEnd:{style:hh},paddingBlock:{style:hh},paddingBlockStart:{style:hh},paddingBlockEnd:{style:hh},m:{style:ph},mt:{style:ph},mr:{style:ph},mb:{style:ph},ml:{style:ph},mx:{style:ph},my:{style:ph},margin:{style:ph},marginTop:{style:ph},marginRight:{style:ph},marginBottom:{style:ph},marginLeft:{style:ph},marginX:{style:ph},marginY:{style:ph},marginInline:{style:ph},marginInlineStart:{style:ph},marginInlineEnd:{style:ph},marginBlock:{style:ph},marginBlockStart:{style:ph},marginBlockEnd:{style:ph},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:Mh},rowGap:{style:Oh},columnGap:{style:Nh},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ih},maxWidth:{style:Dh},minWidth:{transform:Ih},height:{transform:Ih},maxHeight:{transform:Ih},minHeight:{transform:Ih},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function $h(){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=Zp(n,s)||{};if(u)return u(o);return Vp(o,t,t=>{let n=eh(c,l,t);return t===n&&"string"==typeof t&&(n=eh(c,l,`${e}${"default"===t?"":Jp(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:Wh;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=Yp(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=Up(u,e(n,o,i,s));else{const e=Vp({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=Up(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=Up(u,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":qp(l,u)}:qp(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const Uh=$h();function Kh(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:{}}Uh.filterProps=["sx"];const Gh=["breakpoints","palette","spacing","shape"];function Vh(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=_d(e,Gh),s=Wp(n),l=function(e=8){if(e.mui)return e;const t=uh({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=Fp({breakpoints:s,direction:"ltr",components:{},palette:xd({mode:"light"},r),spacing:l,shape:xd({},$p,i)},a);return u.applyStyles=Kh,u=t.reduce((e,t)=>Fp(e,t),u),u.unstable_sxConfig=xd({},Wh,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Uh({sx:e,theme:this})},u}var Yh=Object.freeze({__proto__:null,default:Vh,private_createBreakpoints:Wp,unstable_applyStyles:Kh});function qh(e=null){const t=E.useContext(rp);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Qh=Vh();function Jh(e=Qh){return qh(e)}function Xh(e){const t=Ip(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Zh({styles:e,themeId:t,defaultTheme:n={}}){const r=Jh(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>Xh("function"==typeof e?e(o):e)):Xh(i)),ju.jsx(Mp,{styles:i})}const eg=["sx"];function tg(e){const{sx:t}=e,n=_d(e,eg),{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:Wh;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 Dp(n)?xd({},r,n):r}:xd({},r,t),xd({},o,{sx:i})}var ng=Object.freeze({__proto__:null,default:Uh,extendSxProp:tg,unstable_createStyleFunctionSx:$h,unstable_defaultSxConfig:Wh});const rg=e=>e,og=(()=>{let e=rg;return{configure(t){e=t},generate:t=>e(t),reset(){e=rg}}})();function ig(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=ig(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ag(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ig(e))&&(r&&(r+=" "),r+=t);return r}const sg=["className","component"];const lg={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 ug(e,t,n="Mui"){const r=lg[t];return r?`${n}-${r}`:`${og.generate(e)}-${t}`}function cg(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=ug(e,t,n)}),r}var dg,fg,pg={exports:{}},hg={};function gg(){if(dg)return hg;dg=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 hg.ContextConsumer=i,hg.ContextProvider=a,hg.Element=e,hg.ForwardRef=s,hg.Fragment=n,hg.Lazy=d,hg.Memo=c,hg.Portal=t,hg.Profiler=o,hg.StrictMode=r,hg.Suspense=l,hg.SuspenseList=u,hg.isContextConsumer=function(e){return h(e)===i},hg.isContextProvider=function(e){return h(e)===a},hg.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},hg.isForwardRef=function(e){return h(e)===s},hg.isFragment=function(e){return h(e)===n},hg.isLazy=function(e){return h(e)===d},hg.isMemo=function(e){return h(e)===c},hg.isPortal=function(e){return h(e)===t},hg.isProfiler=function(e){return h(e)===o},hg.isStrictMode=function(e){return h(e)===r},hg.isSuspense=function(e){return h(e)===l},hg.isSuspenseList=function(e){return h(e)===u},hg.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)},hg.typeOf=h,hg}function mg(){return fg||(fg=1,pg.exports=gg()),pg.exports}var vg=mg();const bg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function yg(e){const t=`${e}`.match(bg);return t&&t[1]||""}function xg(e,t=""){return e.displayName||e.name||yg(e)||t}function _g(e,t,n){const r=xg(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var wg=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return xg(e,"Component");if("object"==typeof e)switch(e.$$typeof){case vg.ForwardRef:return _g(e,e.render,"ForwardRef");case vg.Memo:return _g(e,e.type,"memo");default:return}}},getFunctionName:yg});const kg=["ownerState"],Sg=["variants"],Cg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Eg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Tg(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Ag=Vh(),Lg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Rg({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Mg(e){return e?(t,n)=>n[e]:null}function Ng(e,t,n){let{ownerState:r}=t,o=_d(t,kg);const i="function"==typeof e?e(xd({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(e=>Ng(e,xd({ownerState:r},o),n));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=_d(i,Sg);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props(xd({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(xd({ownerState:r},o,r)):e.style;t.push(n?Tg(Ip(i),n):i)}}),t}return n?Tg(Ip(i),n):i}const Og=function(e={}){const{themeId:t,defaultTheme:n=Ag,rootShouldForwardProp:r=Eg,slotShouldForwardProp:o=Eg}=e,i=e=>Uh(xd({},e,{theme:Rg(xd({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Op(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Mg(Lg(l))}=a,f=_d(a,Cg),p=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,g=c||!1;let m=Eg;"Root"===l||"root"===l?m=r:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=Np(e,xd({shouldForwardProp:m,label:void 0},f)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Dp(e)?r=>{const o=Rg({theme:r.theme,defaultTheme:n,themeId:t});return Ng(e,xd({},r,{theme:o}),o.modularCssLayers?p:void 0)}:e,y=(r,...o)=>{let a=b(r);const l=o?o.map(b):[];s&&d&&l.push(e=>{const r=Rg(xd({},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]=Ng(n,xd({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),d(e,i)}),s&&!h&&l.push(e=>{var r;const o=Rg(xd({},e,{defaultTheme:n,themeId:t}));return Ng({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},xd({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),g||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&&(y.withConfig=v.withConfig),y}}();function Pg(e,t){const n=xd({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=xd({},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]=xd({},i),Object.keys(o).forEach(e=>{n[r][e]=Pg(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}function Ig({props:e,name:t,defaultTheme:n,themeId:r}){let o=Jh(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?Pg(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const zg="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;function Dg(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var jg=Object.freeze({__proto__:null,default:Dg});function Fg(e){if(e.type)return e;if("#"===e.charAt(0))return Fg(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(vd(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(vd(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function Bg(e,t){return e=Fg(e),t=function(e,t=0,n=1){return Dg(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 Hg(e){return e&&e.ownerDocument||document}function Wg(e){return Hg(e).defaultView||window}function $g(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Ug=0;const Kg=A["useId".toString()];function Gg(e){if(void 0!==Kg){const t=Kg();return null!=e?e:t}return function(e){const[t,n]=E.useState(e),r=e||t;return E.useEffect(()=>{null==t&&(Ug+=1,n(`mui-${Ug}`))},[t]),r}(e)}function Vg(e){const t=E.useRef(e);return zg(()=>{t.current=e}),E.useRef((...e)=>(0,t.current)(...e)).current}function Yg(...e){return E.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{$g(e,t)})},e)}const qg={};const Qg=[];class Jg{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Jg}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function Xg(){const e=function(e,t){const n=E.useRef(qg);return n.current===qg&&(n.current=e(t)),n}(Jg.create).current;return function(e){E.useEffect(e,Qg)}(e.disposeEffect),e}let Zg=!0,em=!1;const tm=new Jg,nm={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 rm(e){e.metaKey||e.altKey||e.ctrlKey||(Zg=!0)}function om(){Zg=!1}function im(){"hidden"===this.visibilityState&&em&&(Zg=!0)}function am(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Zg||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!nm[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function sm(){const e=E.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",rm,!0),t.addEventListener("mousedown",om,!0),t.addEventListener("pointerdown",om,!0),t.addEventListener("touchstart",om,!0),t.addEventListener("visibilitychange",im,!0))},[]),t=E.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!am(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(em=!0,tm.start(100,()=>{em=!1}),t.current=!1,!0)},ref:e}}function lm(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 um(e){return"string"==typeof e}function cm(e,t,n){return void 0===e||um(e)?t:xd({},t,{ownerState:xd({},t.ownerState,n)})}function dm(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 fm(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=ag(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=xd({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=xd({},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}(xd({},o,r)),s=dm(r),l=dm(o),u=t(a),c=ag(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=xd({},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=xd({},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 pm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function hm(e){var t;return parseInt(E.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const gm=E.createContext(null);function mm(){return E.useContext(gm)}var vm="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function bm(e){const{children:t,theme:n}=e,r=mm(),o=E.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return xd({},e,t)}(r,n);return null!=e&&(e[vm]=null!==r),e},[n,r]);return ju.jsx(gm.Provider,{value:o,children:t})}const ym=["value"],xm=E.createContext();function _m(e){let{value:t}=e,n=_d(e,ym);return ju.jsx(xm.Provider,xd({value:null==t||t},n))}const wm=E.createContext(void 0);function km({value:e,children:t}){return ju.jsx(wm.Provider,{value:e,children:t})}function Sm({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?Pg(o.defaultProps,r):o.styleOverrides||o.variants?r:Pg(o,r)}({props:e,name:t,theme:{components:E.useContext(wm)}})}const Cm={};function Em(e,t,n,r=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?xd({},t,{[e]:i}):i;return r?()=>a:a}return xd({},t,e?{[e]:n}:n)},[e,t,n,r])}function Tm(e){const{children:t,theme:n,themeId:r}=e,o=qh(Cm),i=mm()||Cm,a=Em(r,o,n),s=Em(r,i,n,!0),l="rtl"===a.direction,u=function(e){const t=qh(),n=Gg()||"",{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};`:"",zg(()=>{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?ju.jsx(Zh,{styles:o}):null}(a);return ju.jsx(bm,{theme:s,children:ju.jsx(rp.Provider,{value:a,children:ju.jsx(_m,{value:l,children:ju.jsxs(km,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Am(e){return Am="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},Am(e)}function Lm(e){var t=function(e,t){if("object"!=Am(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Am(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Am(t)?t:t+""}const Rm=["component","direction","spacing","divider","children","className","useFlexGap"],Mm=Vh(),Nm=Og("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Om(e){return Ig({props:e,name:"MuiStack",defaultTheme:Mm})}function Pm(e,t){const n=E.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(E.cloneElement(t,{key:`separator-${o}`})),e),[])}const Im=({ownerState:e,theme:t})=>{let n=xd({display:"flex",flexDirection:"column"},Vp({theme:t},Qp({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const r=uh(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=Qp({values:e.direction,base:o}),a=Qp({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=Fp(n,Vp({theme:t},a,(t,n)=>{return e.useFlexGap?{gap:ch(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]}`]:ch(r,t)}};var o}))}return n=function(e,...t){const n=Yp(e),r=[n,...t].reduce((e,t)=>Fp(e,t),{});return qp(Object.keys(n),r)}(t.breakpoints,n),n};function zm(e,t){return xd({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Dm,jm={},Fm={exports:{}};function Bm(){return Dm||(Dm=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Fm)),Fm.exports}var Hm,Wm=i(bd),$m=i(jg);function Um(){if(Hm)return jm;Hm=1;var e=Bm();Object.defineProperty(jm,"__esModule",{value:!0}),jm.alpha=c,jm.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})},jm.colorChannel=void 0,jm.darken=d,jm.decomposeColor=i,jm.emphasize=p,jm.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},jm.getLuminance=u,jm.hexToRgb=o,jm.hslToRgb=l,jm.lighten=f,jm.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},jm.private_safeColorChannel=void 0,jm.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},jm.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},jm.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},jm.recomposeColor=s,jm.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(Wm),n=e($m);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(" ")};jm.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 jm.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},jm}var Km=Um();const Gm=["mode","contrastThreshold","tonalOffset"],Vm={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:Dc.white,default:Dc.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}},Ym={text:{primary:Dc.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:Dc.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 qm(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=Km.lighten(e.main,o):"dark"===t&&(e.dark=Km.darken(e.main,i)))}function Qm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=_d(e,Gm),i=e.primary||function(e="light"){return"dark"===e?{main:Qc,light:qc,dark:Jc}:{main:Xc,light:Jc,dark:Zc}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Uc,light:$c,dark:Gc}:{main:Vc,light:Kc,dark:Yc}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Bc,light:jc,dark:Hc}:{main:Hc,light:Fc,dark:Wc}}(t),l=e.info||function(e="light"){return"dark"===e?{main:td,light:ed,dark:rd}:{main:rd,light:nd,dark:od}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ad,light:id,dark:ld}:{main:ud,light:sd,dark:cd}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:fd,light:dd,dark:hd}:{main:"#ed6c02",light:pd,dark:gd}}(t);function d(e){return Km.getContrastRatio(e,Ym.text.primary)>=n?Ym.text.primary:Vm.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=xd({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(vd(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(vd(12,t?` (${t})`:"",JSON.stringify(e.main)));return qm(e,"light",o,r),qm(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:Ym,light:Vm};return Fp(xd({common:xd({},Dc),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:md,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const Jm=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Xm={textTransform:"uppercase"},Zm='"Roboto", "Helvetica", "Arial", sans-serif';function ev(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Zm,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=_d(n,Jm),p=o/14,h=d||(e=>e/u*p+"rem"),g=(e,t,n,o,i)=>{return xd({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Zm?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,Xm),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Xm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Fp(xd({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},m),f,{clone:!1})}function tv(...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 nv=["none",tv(0,2,1,-1,0,1,1,0,0,1,3,0),tv(0,3,1,-2,0,2,2,0,0,1,5,0),tv(0,3,3,-2,0,3,4,0,0,1,8,0),tv(0,2,4,-1,0,4,5,0,0,1,10,0),tv(0,3,5,-1,0,5,8,0,0,1,14,0),tv(0,3,5,-1,0,6,10,0,0,1,18,0),tv(0,4,5,-2,0,7,10,1,0,2,16,1),tv(0,5,5,-3,0,8,10,1,0,3,14,2),tv(0,5,6,-3,0,9,12,1,0,3,16,2),tv(0,6,6,-3,0,10,14,1,0,4,18,3),tv(0,6,7,-4,0,11,15,1,0,4,20,3),tv(0,7,8,-4,0,12,17,2,0,5,22,4),tv(0,7,8,-4,0,13,19,2,0,5,24,4),tv(0,7,9,-4,0,14,21,2,0,5,26,4),tv(0,8,9,-5,0,15,22,2,0,6,28,5),tv(0,8,10,-5,0,16,24,2,0,6,30,5),tv(0,8,11,-5,0,17,26,2,0,6,32,5),tv(0,9,11,-5,0,18,28,2,0,7,34,6),tv(0,9,12,-6,0,19,29,2,0,7,36,6),tv(0,10,13,-6,0,20,31,3,0,8,38,7),tv(0,10,13,-6,0,21,33,3,0,8,40,7),tv(0,10,14,-6,0,22,35,3,0,8,42,7),tv(0,11,14,-7,0,23,36,3,0,9,44,8),tv(0,11,15,-7,0,24,38,3,0,9,46,8)],rv=["duration","easing","delay"],ov={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)"},iv={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function av(e){return`${Math.round(e)}ms`}function sv(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function lv(e){const t=xd({},ov,e.easing),n=xd({},iv,e.duration);return xd({getAutoHeightDuration:sv,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return _d(r,rv),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:av(o)} ${i} ${"string"==typeof a?a:av(a)}`).join(",")}},e,{easing:t,duration:n})}const uv={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},cv=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dv(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=_d(e,cv);if(e.vars&&void 0===e.generateCssVars)throw new Error(vd(18));const s=Qm(r),l=Vh(e);let u=Fp(l,{mixins:zm(l.breakpoints,n),palette:s,shadows:nv.slice(),typography:ev(s,i),transitions:lv(o),zIndex:xd({},uv)});return u=Fp(u,a),u=t.reduce((e,t)=>Fp(e,t),u),u.unstable_sxConfig=xd({},Wh,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Uh({sx:e,theme:this})},u}const fv=dv();function pv(){const e=Jh(fv);return e[yd]||e}var hv,gv={},mv={exports:{}};function vv(){return hv||(hv=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}(mv)),mv.exports}var bv,yv={exports:{}};function xv(){return bv||(bv=1,function(e){e.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}(yv)),yv.exports}var _v,wv=i(zp),kv=i(Bp),Sv=i(Xp),Cv=i(wg),Ev=i(Yh),Tv=i(ng);function Av(){if(_v)return gv;_v=1;var e=Bm();Object.defineProperty(gv,"__esModule",{value:!0}),gv.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:g((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:b,skipVariantsResolver:y,skipSx:x,overridesResolver:_=m(h(b))}=a,w=(0,n.default)(a,u),k=p&&p.startsWith("Mui")||b?"components":"custom",S=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,C=x||!1;let E=d;"Root"===b||"root"===b?E=l:b?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:void 0},w)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=g({theme:n.theme,defaultTheme:s,themeId:i});return v(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?k:void 0)}:e,L=(n,...r)=>{let o=A(n);const a=r?r.map(A):[];p&&_&&a.push(e=>{const n=g((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=g((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&&(L.withConfig=T.withConfig),L}},gv.shouldForwardProp=d,gv.systemDefaultTheme=void 0;var t=e(vv()),n=e(xv()),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}(wv),o=kv;e(Sv),e(Cv);var i=e(Ev),a=e(Tv);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=gv.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function m(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 gv}const Lv=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Rv=o(Av())({themeId:yd,defaultTheme:fv,rootShouldForwardProp:Lv}),Mv=["theme"];function Nv(e){let{theme:t}=e,n=_d(e,Mv);const r=t[yd];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=xd({},r,{vars:null}):t&&!t.vars&&(o=xd({},t,{vars:null}))),ju.jsx(Tm,xd({},n,{themeId:r?yd:void 0,theme:o}))}const Ov=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Pv(e){return Sm(e)}function Iv(e,t){return Iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Iv(e,t)}function zv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Iv(e,t)}var Dv=S(),jv=o(Dv),Fv=!1,Bv=T.createContext(null),Hv="unmounted",Wv="exited",$v="entering",Uv="entered",Kv="exiting",Gv=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=Wv,r.appearStatus=$v):o=Uv:o=t.unmountOnExit||t.mountOnEnter?Hv:Wv,r.state={status:o},r.nextCallback=null,r}zv(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Hv?{status:Wv}: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!==$v&&n!==Uv&&(t=$v):n!==$v&&n!==Uv||(t=Kv)}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===$v){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:jv.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wv&&this.setState({status:Hv})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[jv.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Fv?this.safeSetState({status:Uv},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:$v},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Uv},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:jv.findDOMNode(this);t&&!Fv?(this.props.onExit(r),this.safeSetState({status:Kv},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Wv},function(){e.props.onExited(r)})})})):this.safeSetState({status:Wv},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:jv.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===Hv)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=_d(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return T.createElement(Bv.Provider,{value:null},"function"==typeof n?n(e,r):T.cloneElement(T.Children.only(n),r))},t}(T.Component);function Vv(){}function Yv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qv(e,t){var n=Object.create(null);return e&&E.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&E.isValidElement(e)?t(e):e}(e)}),n}function Qv(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Jv(e,t,n){var r=qv(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(E.isValidElement(a)){var s=i in t,l=i in r,u=t[i],c=E.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&E.isValidElement(u)&&(o[i]=E.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Qv(a,"exit",e),enter:Qv(a,"enter",e)})):o[i]=E.cloneElement(a,{in:!1}):o[i]=E.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Qv(a,"exit",e),enter:Qv(a,"enter",e)})}}),o}Gv.contextType=Bv,Gv.propTypes={},Gv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vv,onEntering:Vv,onEntered:Vv,onExit:Vv,onExiting:Vv,onExited:Vv},Gv.UNMOUNTED=Hv,Gv.EXITED=Wv,Gv.ENTERING=$v,Gv.ENTERED=Uv,Gv.EXITING=Kv;var Xv=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Zv=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Yv(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}zv(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,qv(n.children,function(e){return E.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Qv(e,"appear",n),enter:Qv(e,"enter",n),exit:Qv(e,"exit",n)})})):Jv(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=qv(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=xd({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=_d(e,["component","childFactory"]),o=this.state.contextValue,i=Xv(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?T.createElement(Bv.Provider,{value:o},i):T.createElement(Bv.Provider,{value:o},T.createElement(t,r,i))},t}(T.Component);Zv.propTypes={},Zv.defaultProps={component:"div",childFactory:function(e){return e}};function eb(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 tb(e){return ug("MuiPaper",e)}cg("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 nb=["className","component","elevation","square","variant"],rb=Rv("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 xd({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&&xd({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Km.alpha("#fff",Ov(t.elevation))}, ${Km.alpha("#fff",Ov(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),ob=E.forwardRef(function(e,t){const n=Pv({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=_d(n,nb),u=xd({},n,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return lm({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},tb,o)})(u);return ju.jsx(rb,xd({as:o,ownerState:u,className:ag(c.root,r),ref:t},l))});const ib=cg("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ab=["center","classes","className"];let sb,lb,ub,cb,db=e=>e;const fb=fp(sb||(sb=db`
23
+ */function $p(e,t){return Rp(e,t)}const Up=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Kp=[];function Gp(e){return Kp[0]=e,ip(Kp)}var Vp=Object.freeze({__proto__:null,GlobalStyles:Wp,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=E.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&Hp.has(e))return Hp.get(e);const r=function(e,t){const n=Bf({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 Hp.set(e,r),r},[t,n]);return t||n?Qu.jsx(fp,{value:o,children:r}):r},ThemeContext:hp,css:wp,default:$p,internal_processStyles:Up,internal_serializeStyles:Gp,keyframes:kp});function Yp(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 qp(e){if(E.isValidElement(e)||!Yp(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=qp(e[n])}),t}function Qp(e,t,n={clone:!0}){const r=n.clone?Md({},e):e;return Yp(e)&&Yp(t)&&Object.keys(t).forEach(o=>{E.isValidElement(t[o])?r[o]=t[o]:Yp(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Yp(e[o])?r[o]=Qp(e[o],t[o],n):n.clone?r[o]=Yp(t[o])?qp(t[o]):t[o]:r[o]=t[o]}),r}var Jp=Object.freeze({__proto__:null,default:Qp,isPlainObject:Yp});const Xp=["values","unit","step"];function Zp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Nd(e,Xp),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)=>Md({},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 Md({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 eh={borderRadius:4};function th(e,t){return t?Qp(e,t,{clone:!1}):e}const nh={xs:0,sm:600,md:900,lg:1200,xl:1536},rh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${nh[e]}px)`};function oh(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||rh;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||rh;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||nh).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function ih(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}function ah(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function sh({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 lh(e){if("string"!=typeof e)throw new Error(Ad(7));return e.charAt(0).toUpperCase()+e.slice(1)}var uh=Object.freeze({__proto__:null,default:lh});function ch(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 dh(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ch(e,n)||r,t&&(o=t(o,r,e)),o}function fh(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=ch(e.theme,r)||{};return oh(e,i,e=>{let r=dh(a,o,e);return e===r&&"string"==typeof e&&(r=dh(a,o,`${t}${"default"===e?"":lh(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const ph={m:"margin",p:"padding"},hh={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mh=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!gh[e])return[e];e=gh[e]}const[t,n]=e.split(""),r=ph[t],o=hh[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),vh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function yh(e,t,n,r){var o;const i=null!=(o=ch(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 xh(e){return yh(e,"spacing",8)}function _h(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 wh(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=_h(t,n),e),{})}(mh(n),r);return oh(e,e[n],o)}function kh(e,t){const n=xh(e.theme);return Object.keys(e).map(r=>wh(e,t,r,n)).reduce(th,{})}function Sh(e){return kh(e,vh)}function Ch(e){return kh(e,bh)}function Eh(...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]?th(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Th(e){return"number"!=typeof e?e:`${e}px solid`}function Ah(e,t){return fh({prop:e,themeKey:"borders",transform:t})}Sh.propTypes={},Sh.filterProps=vh,Ch.propTypes={},Ch.filterProps=bh;const Lh=Ah("border",Th),Rh=Ah("borderTop",Th),Mh=Ah("borderRight",Th),Nh=Ah("borderBottom",Th),Oh=Ah("borderLeft",Th),Ph=Ah("borderColor"),Ih=Ah("borderTopColor"),zh=Ah("borderRightColor"),Dh=Ah("borderBottomColor"),jh=Ah("borderLeftColor"),Fh=Ah("outline",Th),Bh=Ah("outlineColor"),Hh=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=yh(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:_h(t,e)});return oh(e,e.borderRadius,n)}return null};Hh.propTypes={},Hh.filterProps=["borderRadius"],Eh(Lh,Rh,Mh,Nh,Oh,Ph,Ih,zh,Dh,jh,Hh,Fh,Bh);const Wh=e=>{if(void 0!==e.gap&&null!==e.gap){const t=yh(e.theme,"spacing",8),n=e=>({gap:_h(t,e)});return oh(e,e.gap,n)}return null};Wh.propTypes={},Wh.filterProps=["gap"];const $h=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=yh(e.theme,"spacing",8),n=e=>({columnGap:_h(t,e)});return oh(e,e.columnGap,n)}return null};$h.propTypes={},$h.filterProps=["columnGap"];const Uh=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=yh(e.theme,"spacing",8),n=e=>({rowGap:_h(t,e)});return oh(e,e.rowGap,n)}return null};Uh.propTypes={},Uh.filterProps=["rowGap"];function Kh(e,t){return"grey"===t?t:e}Eh(Wh,$h,Uh,fh({prop:"gridColumn"}),fh({prop:"gridRow"}),fh({prop:"gridAutoFlow"}),fh({prop:"gridAutoColumns"}),fh({prop:"gridAutoRows"}),fh({prop:"gridTemplateColumns"}),fh({prop:"gridTemplateRows"}),fh({prop:"gridTemplateAreas"}),fh({prop:"gridArea"}));function Gh(e){return e<=1&&0!==e?100*e+"%":e}Eh(fh({prop:"color",themeKey:"palette",transform:Kh}),fh({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Kh}),fh({prop:"backgroundColor",themeKey:"palette",transform:Kh}));const Vh=fh({prop:"width",transform:Gh}),Yh=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])||nh[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:Gh(t)}};return oh(e,e.maxWidth,t)}return null};Yh.filterProps=["maxWidth"];const qh=fh({prop:"minWidth",transform:Gh}),Qh=fh({prop:"height",transform:Gh}),Jh=fh({prop:"maxHeight",transform:Gh}),Xh=fh({prop:"minHeight",transform:Gh});fh({prop:"size",cssProperty:"width",transform:Gh}),fh({prop:"size",cssProperty:"height",transform:Gh});Eh(Vh,Yh,qh,Qh,Jh,Xh,fh({prop:"boxSizing"}));const Zh={border:{themeKey:"borders",transform:Th},borderTop:{themeKey:"borders",transform:Th},borderRight:{themeKey:"borders",transform:Th},borderBottom:{themeKey:"borders",transform:Th},borderLeft:{themeKey:"borders",transform:Th},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Th},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hh},color:{themeKey:"palette",transform:Kh},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Kh},backgroundColor:{themeKey:"palette",transform:Kh},p:{style:Ch},pt:{style:Ch},pr:{style:Ch},pb:{style:Ch},pl:{style:Ch},px:{style:Ch},py:{style:Ch},padding:{style:Ch},paddingTop:{style:Ch},paddingRight:{style:Ch},paddingBottom:{style:Ch},paddingLeft:{style:Ch},paddingX:{style:Ch},paddingY:{style:Ch},paddingInline:{style:Ch},paddingInlineStart:{style:Ch},paddingInlineEnd:{style:Ch},paddingBlock:{style:Ch},paddingBlockStart:{style:Ch},paddingBlockEnd:{style:Ch},m:{style:Sh},mt:{style:Sh},mr:{style:Sh},mb:{style:Sh},ml:{style:Sh},mx:{style:Sh},my:{style:Sh},margin:{style:Sh},marginTop:{style:Sh},marginRight:{style:Sh},marginBottom:{style:Sh},marginLeft:{style:Sh},marginX:{style:Sh},marginY:{style:Sh},marginInline:{style:Sh},marginInlineStart:{style:Sh},marginInlineEnd:{style:Sh},marginBlock:{style:Sh},marginBlockStart:{style:Sh},marginBlockEnd:{style:Sh},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:Wh},rowGap:{style:Uh},columnGap:{style:$h},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gh},maxWidth:{style:Yh},minWidth:{transform:Gh},height:{transform:Gh},maxHeight:{transform:Gh},minHeight:{transform:Gh},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function eg(){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=ch(n,s)||{};if(u)return u(o);return oh(o,t,t=>{let n=dh(c,l,t);return t===n&&"string"==typeof t&&(n=dh(c,l,`${e}${"default"===t?"":lh(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:Zh;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=ih(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=th(u,e(n,o,i,s));else{const e=oh({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=th(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=th(u,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":ah(l,u)}:ah(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const tg=eg();function ng(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:{}}tg.filterProps=["sx"];const rg=["breakpoints","palette","spacing","shape"];function og(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Nd(e,rg),s=Zp(n),l=function(e=8){if(e.mui)return e;const t=xh({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=Qp({breakpoints:s,direction:"ltr",components:{},palette:Md({mode:"light"},r),spacing:l,shape:Md({},eh,i)},a);return u.applyStyles=ng,u=t.reduce((e,t)=>Qp(e,t),u),u.unstable_sxConfig=Md({},Zh,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return tg({sx:e,theme:this})},u}var ig=Object.freeze({__proto__:null,default:og,private_createBreakpoints:Zp,unstable_applyStyles:ng});function ag(e=null){const t=E.useContext(hp);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const sg=og();function lg(e=sg){return ag(e)}function ug(e){const t=Gp(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function cg({styles:e,themeId:t,defaultTheme:n={}}){const r=lg(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>ug("function"==typeof e?e(o):e)):ug(i)),Qu.jsx(Wp,{styles:i})}const dg=["sx"];function fg(e){const{sx:t}=e,n=Nd(e,dg),{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:Zh;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 Yp(n)?Md({},r,n):r}:Md({},r,t),Md({},o,{sx:i})}var pg=Object.freeze({__proto__:null,default:tg,extendSxProp:fg,unstable_createStyleFunctionSx:eg,unstable_defaultSxConfig:Zh});const hg=e=>e,gg=(()=>{let e=hg;return{configure(t){e=t},generate:t=>e(t),reset(){e=hg}}})();function mg(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=mg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=mg(e))&&(r&&(r+=" "),r+=t);return r}const bg=["className","component"];const yg={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 xg(e,t,n="Mui"){const r=yg[t];return r?`${n}-${r}`:`${gg.generate(e)}-${t}`}function _g(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=xg(e,t,n)}),r}var wg,kg,Sg={exports:{}},Cg={};function Eg(){if(wg)return Cg;wg=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 Cg.ContextConsumer=i,Cg.ContextProvider=a,Cg.Element=e,Cg.ForwardRef=s,Cg.Fragment=n,Cg.Lazy=d,Cg.Memo=c,Cg.Portal=t,Cg.Profiler=o,Cg.StrictMode=r,Cg.Suspense=l,Cg.SuspenseList=u,Cg.isContextConsumer=function(e){return h(e)===i},Cg.isContextProvider=function(e){return h(e)===a},Cg.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Cg.isForwardRef=function(e){return h(e)===s},Cg.isFragment=function(e){return h(e)===n},Cg.isLazy=function(e){return h(e)===d},Cg.isMemo=function(e){return h(e)===c},Cg.isPortal=function(e){return h(e)===t},Cg.isProfiler=function(e){return h(e)===o},Cg.isStrictMode=function(e){return h(e)===r},Cg.isSuspense=function(e){return h(e)===l},Cg.isSuspenseList=function(e){return h(e)===u},Cg.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)},Cg.typeOf=h,Cg}function Tg(){return kg||(kg=1,Sg.exports=Eg()),Sg.exports}var Ag=Tg();const Lg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Rg(e){const t=`${e}`.match(Lg);return t&&t[1]||""}function Mg(e,t=""){return e.displayName||e.name||Rg(e)||t}function Ng(e,t,n){const r=Mg(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Og=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Mg(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ag.ForwardRef:return Ng(e,e.render,"ForwardRef");case Ag.Memo:return Ng(e,e.type,"memo");default:return}}},getFunctionName:Rg});const Pg=["ownerState"],Ig=["variants"],zg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Dg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function jg(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Fg=og(),Bg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Hg({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Wg(e){return e?(t,n)=>n[e]:null}function $g(e,t,n){let{ownerState:r}=t,o=Nd(t,Pg);const i="function"==typeof e?e(Md({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(e=>$g(e,Md({ownerState:r},o),n));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=Nd(i,Ig);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props(Md({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(Md({ownerState:r},o,r)):e.style;t.push(n?jg(Gp(i),n):i)}}),t}return n?jg(Gp(i),n):i}const Ug=function(e={}){const{themeId:t,defaultTheme:n=Fg,rootShouldForwardProp:r=Dg,slotShouldForwardProp:o=Dg}=e,i=e=>tg(Md({},e,{theme:Hg(Md({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Up(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Wg(Bg(l))}=a,f=Nd(a,zg),p=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,g=c||!1;let m=Dg;"Root"===l||"root"===l?m=r:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=$p(e,Md({shouldForwardProp:m,label:void 0},f)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Yp(e)?r=>{const o=Hg({theme:r.theme,defaultTheme:n,themeId:t});return $g(e,Md({},r,{theme:o}),o.modularCssLayers?p:void 0)}:e,y=(r,...o)=>{let a=b(r);const l=o?o.map(b):[];s&&d&&l.push(e=>{const r=Hg(Md({},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]=$g(n,Md({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),d(e,i)}),s&&!h&&l.push(e=>{var r;const o=Hg(Md({},e,{defaultTheme:n,themeId:t}));return $g({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},Md({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),g||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&&(y.withConfig=v.withConfig),y}}();function Kg(e,t){const n=Md({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Md({},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]=Md({},i),Object.keys(o).forEach(e=>{n[r][e]=Kg(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}function Gg({props:e,name:t,defaultTheme:n,themeId:r}){let o=lg(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?Kg(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const Vg="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;function Yg(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var qg=Object.freeze({__proto__:null,default:Yg});function Qg(e){if(e.type)return e;if("#"===e.charAt(0))return Qg(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(Ad(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(Ad(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function Jg(e,t){return e=Qg(e),t=function(e,t=0,n=1){return Yg(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 Xg(e){return e&&e.ownerDocument||document}function Zg(e){return Xg(e).defaultView||window}function em(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let tm=0;const nm=A["useId".toString()];function rm(e){if(void 0!==nm){const t=nm();return null!=e?e:t}return function(e){const[t,n]=E.useState(e),r=e||t;return E.useEffect(()=>{null==t&&(tm+=1,n(`mui-${tm}`))},[t]),r}(e)}function om(e){const t=E.useRef(e);return Vg(()=>{t.current=e}),E.useRef((...e)=>(0,t.current)(...e)).current}function im(...e){return E.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{em(e,t)})},e)}const am={};const sm=[];class lm{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new lm}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function um(){const e=function(e,t){const n=E.useRef(am);return n.current===am&&(n.current=e(t)),n}(lm.create).current;return function(e){E.useEffect(e,sm)}(e.disposeEffect),e}let cm=!0,dm=!1;const fm=new lm,pm={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 hm(e){e.metaKey||e.altKey||e.ctrlKey||(cm=!0)}function gm(){cm=!1}function mm(){"hidden"===this.visibilityState&&dm&&(cm=!0)}function vm(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return cm||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!pm[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function bm(){const e=E.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",hm,!0),t.addEventListener("mousedown",gm,!0),t.addEventListener("pointerdown",gm,!0),t.addEventListener("touchstart",gm,!0),t.addEventListener("visibilitychange",mm,!0))},[]),t=E.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!vm(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(dm=!0,fm.start(100,()=>{dm=!1}),t.current=!1,!0)},ref:e}}function ym(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 xm(e){return"string"==typeof e}function _m(e,t,n){return void 0===e||xm(e)?t:Md({},t,{ownerState:Md({},t.ownerState,n)})}function wm(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 km(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=vg(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Md({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Md({},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}(Md({},o,r)),s=wm(r),l=wm(o),u=t(a),c=vg(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=Md({},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=Md({},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 Sm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Cm(e){var t;return parseInt(E.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Em=E.createContext(null);function Tm(){return E.useContext(Em)}var Am="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Lm(e){const{children:t,theme:n}=e,r=Tm(),o=E.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Md({},e,t)}(r,n);return null!=e&&(e[Am]=null!==r),e},[n,r]);return Qu.jsx(Em.Provider,{value:o,children:t})}const Rm=["value"],Mm=E.createContext();function Nm(e){let{value:t}=e,n=Nd(e,Rm);return Qu.jsx(Mm.Provider,Md({value:null==t||t},n))}const Om=E.createContext(void 0);function Pm({value:e,children:t}){return Qu.jsx(Om.Provider,{value:e,children:t})}function Im({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?Kg(o.defaultProps,r):o.styleOverrides||o.variants?r:Kg(o,r)}({props:e,name:t,theme:{components:E.useContext(Om)}})}const zm={};function Dm(e,t,n,r=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Md({},t,{[e]:i}):i;return r?()=>a:a}return Md({},t,e?{[e]:n}:n)},[e,t,n,r])}function jm(e){const{children:t,theme:n,themeId:r}=e,o=ag(zm),i=Tm()||zm,a=Dm(r,o,n),s=Dm(r,i,n,!0),l="rtl"===a.direction,u=function(e){const t=ag(),n=rm()||"",{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};`:"",Vg(()=>{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?Qu.jsx(cg,{styles:o}):null}(a);return Qu.jsx(Lm,{theme:s,children:Qu.jsx(hp.Provider,{value:a,children:Qu.jsx(Nm,{value:l,children:Qu.jsxs(Pm,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Fm(e){return Fm="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},Fm(e)}function Bm(e){var t=function(e,t){if("object"!=Fm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Fm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fm(t)?t:t+""}const Hm=["component","direction","spacing","divider","children","className","useFlexGap"],Wm=og(),$m=Ug("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Um(e){return Gg({props:e,name:"MuiStack",defaultTheme:Wm})}function Km(e,t){const n=E.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(E.cloneElement(t,{key:`separator-${o}`})),e),[])}const Gm=({ownerState:e,theme:t})=>{let n=Md({display:"flex",flexDirection:"column"},oh({theme:t},sh({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const r=xh(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=sh({values:e.direction,base:o}),a=sh({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=Qp(n,oh({theme:t},a,(t,n)=>{return e.useFlexGap?{gap:_h(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]}`]:_h(r,t)}};var o}))}return n=function(e,...t){const n=ih(e),r=[n,...t].reduce((e,t)=>Qp(e,t),{});return ah(Object.keys(n),r)}(t.breakpoints,n),n};function Vm(e,t){return Md({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ym,qm={},Qm={exports:{}};function Jm(){return Ym||(Ym=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Qm)),Qm.exports}var Xm,Zm=i(Ld),ev=i(qg);function tv(){if(Xm)return qm;Xm=1;var e=Jm();Object.defineProperty(qm,"__esModule",{value:!0}),qm.alpha=c,qm.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})},qm.colorChannel=void 0,qm.darken=d,qm.decomposeColor=i,qm.emphasize=p,qm.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},qm.getLuminance=u,qm.hexToRgb=o,qm.hslToRgb=l,qm.lighten=f,qm.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},qm.private_safeColorChannel=void 0,qm.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},qm.private_safeEmphasize=function(e,t,n){try{return p(e,t)}catch(t){return e}},qm.private_safeLighten=function(e,t,n){try{return f(e,t)}catch(t){return e}},qm.recomposeColor=s,qm.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(Zm),n=e(ev);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(" ")};qm.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 qm.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},qm}var nv=tv();const rv=["mode","contrastThreshold","tonalOffset"],ov={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:Yc.white,default:Yc.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}},iv={text:{primary:Yc.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:Yc.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 av(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=nv.lighten(e.main,o):"dark"===t&&(e.dark=nv.darken(e.main,i)))}function sv(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Nd(e,rv),i=e.primary||function(e="light"){return"dark"===e?{main:sd,light:ad,dark:ld}:{main:ud,light:ld,dark:cd}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:td,light:ed,dark:rd}:{main:od,light:nd,dark:id}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Jc,light:qc,dark:Xc}:{main:Xc,light:Qc,dark:Zc}}(t),l=e.info||function(e="light"){return"dark"===e?{main:fd,light:dd,dark:hd}:{main:hd,light:pd,dark:gd}}(t),u=e.success||function(e="light"){return"dark"===e?{main:vd,light:md,dark:yd}:{main:xd,light:bd,dark:_d}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:kd,light:wd,dark:Cd}:{main:"#ed6c02",light:Sd,dark:Ed}}(t);function d(e){return nv.getContrastRatio(e,iv.text.primary)>=n?iv.text.primary:ov.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Md({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Ad(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Ad(12,t?` (${t})`:"",JSON.stringify(e.main)));return av(e,"light",o,r),av(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:iv,light:ov};return Qp(Md({common:Md({},Yc),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:Td,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const lv=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const uv={textTransform:"uppercase"},cv='"Roboto", "Helvetica", "Arial", sans-serif';function dv(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=cv,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Nd(n,lv),p=o/14,h=d||(e=>e/u*p+"rem"),g=(e,t,n,o,i)=>{return Md({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===cv?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,uv),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,uv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qp(Md({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},m),f,{clone:!1})}function fv(...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 pv=["none",fv(0,2,1,-1,0,1,1,0,0,1,3,0),fv(0,3,1,-2,0,2,2,0,0,1,5,0),fv(0,3,3,-2,0,3,4,0,0,1,8,0),fv(0,2,4,-1,0,4,5,0,0,1,10,0),fv(0,3,5,-1,0,5,8,0,0,1,14,0),fv(0,3,5,-1,0,6,10,0,0,1,18,0),fv(0,4,5,-2,0,7,10,1,0,2,16,1),fv(0,5,5,-3,0,8,10,1,0,3,14,2),fv(0,5,6,-3,0,9,12,1,0,3,16,2),fv(0,6,6,-3,0,10,14,1,0,4,18,3),fv(0,6,7,-4,0,11,15,1,0,4,20,3),fv(0,7,8,-4,0,12,17,2,0,5,22,4),fv(0,7,8,-4,0,13,19,2,0,5,24,4),fv(0,7,9,-4,0,14,21,2,0,5,26,4),fv(0,8,9,-5,0,15,22,2,0,6,28,5),fv(0,8,10,-5,0,16,24,2,0,6,30,5),fv(0,8,11,-5,0,17,26,2,0,6,32,5),fv(0,9,11,-5,0,18,28,2,0,7,34,6),fv(0,9,12,-6,0,19,29,2,0,7,36,6),fv(0,10,13,-6,0,20,31,3,0,8,38,7),fv(0,10,13,-6,0,21,33,3,0,8,40,7),fv(0,10,14,-6,0,22,35,3,0,8,42,7),fv(0,11,14,-7,0,23,36,3,0,9,44,8),fv(0,11,15,-7,0,24,38,3,0,9,46,8)],hv=["duration","easing","delay"],gv={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)"},mv={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vv(e){return`${Math.round(e)}ms`}function bv(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function yv(e){const t=Md({},gv,e.easing),n=Md({},mv,e.duration);return Md({getAutoHeightDuration:bv,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Nd(r,hv),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:vv(o)} ${i} ${"string"==typeof a?a:vv(a)}`).join(",")}},e,{easing:t,duration:n})}const xv={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_v=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function wv(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Nd(e,_v);if(e.vars&&void 0===e.generateCssVars)throw new Error(Ad(18));const s=sv(r),l=og(e);let u=Qp(l,{mixins:Vm(l.breakpoints,n),palette:s,shadows:pv.slice(),typography:dv(s,i),transitions:yv(o),zIndex:Md({},xv)});return u=Qp(u,a),u=t.reduce((e,t)=>Qp(e,t),u),u.unstable_sxConfig=Md({},Zh,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return tg({sx:e,theme:this})},u}const kv=wv();function Sv(){const e=lg(kv);return e[Rd]||e}var Cv,Ev={},Tv={exports:{}};function Av(){return Cv||(Cv=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}(Tv)),Tv.exports}var Lv,Rv={exports:{}};function Mv(){return Lv||(Lv=1,function(e){e.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}(Rv)),Rv.exports}var Nv,Ov=i(Vp),Pv=i(Jp),Iv=i(uh),zv=i(Og),Dv=i(ig),jv=i(pg);function Fv(){if(Nv)return Ev;Nv=1;var e=Jm();Object.defineProperty(Ev,"__esModule",{value:!0}),Ev.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:g((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:b,skipVariantsResolver:y,skipSx:x,overridesResolver:_=m(h(b))}=a,w=(0,n.default)(a,u),k=p&&p.startsWith("Mui")||b?"components":"custom",S=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,C=x||!1;let E=d;"Root"===b||"root"===b?E=l:b?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:void 0},w)),A=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=g({theme:n.theme,defaultTheme:s,themeId:i});return v(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?k:void 0)}:e,L=(n,...r)=>{let o=A(n);const a=r?r.map(A):[];p&&_&&a.push(e=>{const n=g((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=g((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&&(L.withConfig=T.withConfig),L}},Ev.shouldForwardProp=d,Ev.systemDefaultTheme=void 0;var t=e(Av()),n=e(Mv()),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}(Ov),o=Pv;e(Iv),e(zv);var i=e(Dv),a=e(jv);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=Ev.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function m(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 Ev}const Bv=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Hv=o(Fv())({themeId:Rd,defaultTheme:kv,rootShouldForwardProp:Bv}),Wv=["theme"];function $v(e){let{theme:t}=e,n=Nd(e,Wv);const r=t[Rd];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=Md({},r,{vars:null}):t&&!t.vars&&(o=Md({},t,{vars:null}))),Qu.jsx(jm,Md({},n,{themeId:r?Rd:void 0,theme:o}))}const Uv=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Kv(e){return Im(e)}function Gv(e,t){return Gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gv(e,t)}function Vv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gv(e,t)}var Yv=S(),qv=o(Yv),Qv=!1,Jv=T.createContext(null),Xv="unmounted",Zv="exited",eb="entering",tb="entered",nb="exiting",rb=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=Zv,r.appearStatus=eb):o=tb:o=t.unmountOnExit||t.mountOnEnter?Xv:Zv,r.state={status:o},r.nextCallback=null,r}Vv(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Xv?{status:Zv}: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!==eb&&n!==tb&&(t=eb):n!==eb&&n!==tb||(t=nb)}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===eb){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:qv.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zv&&this.setState({status:Xv})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[qv.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Qv?this.safeSetState({status:tb},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:eb},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:tb},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:qv.findDOMNode(this);t&&!Qv?(this.props.onExit(r),this.safeSetState({status:nb},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Zv},function(){e.props.onExited(r)})})})):this.safeSetState({status:Zv},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:qv.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===Xv)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=Nd(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return T.createElement(Jv.Provider,{value:null},"function"==typeof n?n(e,r):T.cloneElement(T.Children.only(n),r))},t}(T.Component);function ob(){}function ib(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ab(e,t){var n=Object.create(null);return e&&E.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&E.isValidElement(e)?t(e):e}(e)}),n}function sb(e,t,n){return null!=n[t]?n[t]:e.props[t]}function lb(e,t,n){var r=ab(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(E.isValidElement(a)){var s=i in t,l=i in r,u=t[i],c=E.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&E.isValidElement(u)&&(o[i]=E.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:sb(a,"exit",e),enter:sb(a,"enter",e)})):o[i]=E.cloneElement(a,{in:!1}):o[i]=E.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:sb(a,"exit",e),enter:sb(a,"enter",e)})}}),o}rb.contextType=Jv,rb.propTypes={},rb.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ob,onEntering:ob,onEntered:ob,onExit:ob,onExiting:ob,onExited:ob},rb.UNMOUNTED=Xv,rb.EXITED=Zv,rb.ENTERING=eb,rb.ENTERED=tb,rb.EXITING=nb;var ub=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},cb=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(ib(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Vv(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,ab(n.children,function(e){return E.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:sb(e,"appear",n),enter:sb(e,"enter",n),exit:sb(e,"exit",n)})})):lb(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=ab(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Md({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Nd(e,["component","childFactory"]),o=this.state.contextValue,i=ub(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?T.createElement(Jv.Provider,{value:o},i):T.createElement(Jv.Provider,{value:o},T.createElement(t,r,i))},t}(T.Component);cb.propTypes={},cb.defaultProps={component:"div",childFactory:function(e){return e}};function db(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 fb(e){return xg("MuiPaper",e)}_g("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 pb=["className","component","elevation","square","variant"],hb=Hv("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 Md({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&&Md({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${nv.alpha("#fff",Uv(t.elevation))}, ${nv.alpha("#fff",Uv(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),gb=E.forwardRef(function(e,t){const n=Kv({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Nd(n,pb),u=Md({},n,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return ym({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},fb,o)})(u);return Qu.jsx(hb,Md({as:o,ownerState:u,className:vg(c.root,r),ref:t},l))});const mb=_g("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),vb=["center","classes","className"];let bb,yb,xb,_b,wb=e=>e;const kb=kp(bb||(bb=wb`
24
24
  0% {
25
25
  transform: scale(0);
26
26
  opacity: 0.1;
@@ -30,7 +30,7 @@
30
30
  transform: scale(1);
31
31
  opacity: 0.3;
32
32
  }
33
- `)),pb=fp(lb||(lb=db`
33
+ `)),Sb=kp(yb||(yb=wb`
34
34
  0% {
35
35
  opacity: 1;
36
36
  }
@@ -38,7 +38,7 @@
38
38
  100% {
39
39
  opacity: 0;
40
40
  }
41
- `)),hb=fp(ub||(ub=db`
41
+ `)),Cb=kp(xb||(xb=wb`
42
42
  0% {
43
43
  transform: scale(1);
44
44
  }
@@ -50,7 +50,7 @@
50
50
  100% {
51
51
  transform: scale(1);
52
52
  }
53
- `)),gb=Rv("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),mb=Rv(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]=E.useState(!1),f=ag(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+i,left:-a/2+o},h=ag(n.child,c&&n.childLeaving,r&&n.childPulsate);return s||c||d(!0),E.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,s,u]),ju.jsx("span",{className:f,style:p,children:ju.jsx("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})(cb||(cb=db`
53
+ `)),Eb=Hv("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Tb=Hv(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]=E.useState(!1),f=vg(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+i,left:-a/2+o},h=vg(n.child,c&&n.childLeaving,r&&n.childPulsate);return s||c||d(!0),E.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,s,u]),Qu.jsx("span",{className:f,style:p,children:Qu.jsx("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})(_b||(_b=wb`
54
54
  opacity: 0;
55
55
  position: absolute;
56
56
 
@@ -93,18 +93,18 @@
93
93
  animation-iteration-count: infinite;
94
94
  animation-delay: 200ms;
95
95
  }
96
- `),ib.rippleVisible,fb,550,({theme:e})=>e.transitions.easing.easeInOut,ib.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ib.child,ib.childLeaving,pb,550,({theme:e})=>e.transitions.easing.easeInOut,ib.childPulsate,hb,({theme:e})=>e.transitions.easing.easeInOut),vb=E.forwardRef(function(e,t){const n=Pv({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=_d(n,ab),[s,l]=E.useState([]),u=E.useRef(0),c=E.useRef(null);E.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=E.useRef(!1),f=Xg(),p=E.useRef(null),h=E.useRef(null),g=E.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,ju.jsx(mb,{classes:{ripple:ag(o.ripple,ib.ripple),rippleVisible:ag(o.rippleVisible,ib.rippleVisible),ripplePulsate:ag(o.ripplePulsate,ib.ripplePulsate),child:ag(o.child,ib.child),childLeaving:ag(o.childLeaving,ib.childLeaving),childPulsate:ag(o.childPulsate,ib.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)]),u.current+=1,c.current=a},[o]),m=E.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,m;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)m=Math.sqrt((2*l.width**2+l.height**2)/3),m%2==0&&(m+=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;m=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},[r,g,f]),v=E.useCallback(()=>{m({},{pulsate:!0})},[m]),b=E.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,l(e=>e.length>0?e.slice(1):e),c.current=t},[f]);return E.useImperativeHandle(t,()=>({pulsate:v,start:m,stop:b}),[v,m,b]),ju.jsx(gb,xd({className:ag(ib.root,o.root,i),ref:h},a,{children:ju.jsx(Zv,{component:null,exit:!0,children:s})}))});function bb(e){return ug("MuiButtonBase",e)}const yb=cg("MuiButtonBase",["root","disabled","focusVisible"]),xb=["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"],_b=Rv("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"},[`&.${yb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),wb=E.forwardRef(function(e,t){const n=Pv({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:g,onDragLeave:m,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:_,onMouseLeave:w,onMouseUp:k,onTouchEnd:S,onTouchMove:C,onTouchStart:T,tabIndex:A=0,TouchRippleProps:L,touchRippleRef:R,type:M}=n,N=_d(n,xb),O=E.useRef(null),P=E.useRef(null),I=Yg(P,R),{isFocusVisibleRef:z,onFocus:D,onBlur:j,ref:F}=sm(),[B,H]=E.useState(!1);l&&B&&H(!1),E.useImperativeHandle(r,()=>({focusVisible:()=>{H(!0),O.current.focus()}}),[]);const[W,$]=E.useState(!1);E.useEffect(()=>{$(!0)},[]);const U=W&&!u&&!l;function K(e,t,n=c){return Vg(r=>{t&&t(r);return!n&&P.current&&P.current[e](r),!0})}E.useEffect(()=>{B&&d&&!u&&W&&P.current.pulsate()},[u,d,B,W]);const G=K("start",_),V=K("stop",g),Y=K("stop",m),q=K("stop",k),Q=K("stop",e=>{B&&e.preventDefault(),w&&w(e)}),J=K("start",T),X=K("stop",S),Z=K("stop",C),ee=K("stop",e=>{j(e),!1===z.current&&H(!1),p&&p(e)},!1),te=Vg(e=>{O.current||(O.current=e.currentTarget),D(e),!0===z.current&&(H(!0),b&&b(e)),v&&v(e)}),ne=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=E.useRef(!1),oe=Vg(e=>{d&&!re.current&&B&&P.current&&" "===e.key&&(re.current=!0,P.current.stop(e,()=>{P.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=Vg(e=>{d&&" "===e.key&&P.current&&B&&!e.defaultPrevented&&(re.current=!1,P.current.stop(e,()=>{P.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===M?"button":M,se.disabled=l):(N.href||N.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Yg(t,F,O),ue=xd({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:B}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=lm({root:["root",t&&"disabled",n&&"focusVisible"]},bb,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return ju.jsxs(_b,xd({as:ae,className:ag(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:V,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:Q,onMouseUp:q,onDragLeave:Y,onTouchEnd:X,onTouchMove:Z,onTouchStart:J,ref:le,tabIndex:l?-1:A,type:M},se,N,{children:[i,U?ju.jsx(vb,xd({ref:I,center:o},L)):null]}))});function kb(e){return ug("MuiIconButton",e)}const Sb=cg("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Cb=["edge","children","className","color","disabled","disableFocusRipple","size"],Eb=Rv(wb,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Jp(n.color)}`],n.edge&&t[`edge${Jp(n.edge)}`],t[`size${Jp(n.size)}`]]}})(({theme:e,ownerState:t})=>xd({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})`:Km.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 xd({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&xd({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":xd({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Km.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)},{[`&.${Sb.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Tb=E.forwardRef(function(e,t){const n=Pv({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=_d(n,Cb),d=xd({},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 lm({root:["root",n&&"disabled","default"!==r&&`color${Jp(r)}`,o&&`edge${Jp(o)}`,`size${Jp(i)}`]},kb,t)})(d);return ju.jsx(Eb,xd({className:ag(f.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function Ab(e){return ug("MuiTypography",e)}cg("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Lb=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Rb=Rv("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${Jp(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>xd({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})),Mb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Nb={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ob=E.forwardRef(function(e,t){const n=Pv({props:e,name:"MuiTypography"}),r=(e=>Nb[e]||e)(n.color),o=tg(xd({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=Mb}=o,p=_d(o,Lb),h=xd({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:f}),g=s||(c?"p":f[d]||Mb[d])||"span",m=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return lm({root:["root",i,"inherit"!==e.align&&`align${Jp(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Ab,a)})(h);return ju.jsx(Rb,xd({as:g,ref:t,ownerState:h,className:ag(m.root,a)},p))});var Pb,Ib={};function zb(){if(Pb)return Ib;Pb=1,Object.defineProperty(Ib,"__esModule",{value:!0}),Ib.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}(h()),t=wv;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 Ib.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},Ib}var Db=o(zb()),jb="top",Fb="bottom",Bb="right",Hb="left",Wb="auto",$b=[jb,Fb,Bb,Hb],Ub="start",Kb="end",Gb="viewport",Vb="popper",Yb=$b.reduce(function(e,t){return e.concat([t+"-"+Ub,t+"-"+Kb])},[]),qb=[].concat($b,[Wb]).reduce(function(e,t){return e.concat([t,t+"-"+Ub,t+"-"+Kb])},[]),Qb=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Jb(e){return e?(e.nodeName||"").toLowerCase():null}function Xb(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zb(e){return e instanceof Xb(e).Element||e instanceof Element}function ey(e){return e instanceof Xb(e).HTMLElement||e instanceof HTMLElement}function ty(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Xb(e).ShadowRoot||e instanceof ShadowRoot)}var ny={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];ey(o)&&Jb(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},{});ey(r)&&Jb(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function ry(e){return e.split("-")[0]}var oy=Math.max,iy=Math.min,ay=Math.round;function sy(){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 ly(){return!/^((?!chrome|android).)*safari/i.test(sy())}function uy(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&ey(e)&&(o=e.offsetWidth>0&&ay(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ay(r.height)/e.offsetHeight||1);var a=(Zb(e)?Xb(e):window).visualViewport,s=!ly()&&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 cy(e){var t=uy(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 dy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ty(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fy(e){return Xb(e).getComputedStyle(e)}function py(e){return["table","td","th"].indexOf(Jb(e))>=0}function hy(e){return((Zb(e)?e.ownerDocument:e.document)||window.document).documentElement}function gy(e){return"html"===Jb(e)?e:e.assignedSlot||e.parentNode||(ty(e)?e.host:null)||hy(e)}function my(e){return ey(e)&&"fixed"!==fy(e).position?e.offsetParent:null}function vy(e){for(var t=Xb(e),n=my(e);n&&py(n)&&"static"===fy(n).position;)n=my(n);return n&&("html"===Jb(n)||"body"===Jb(n)&&"static"===fy(n).position)?t:n||function(e){var t=/firefox/i.test(sy());if(/Trident/i.test(sy())&&ey(e)&&"fixed"===fy(e).position)return null;var n=gy(e);for(ty(n)&&(n=n.host);ey(n)&&["html","body"].indexOf(Jb(n))<0;){var r=fy(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 by(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yy(e,t,n){return oy(e,iy(t,n))}function xy(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function _y(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var wy={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=ry(n.placement),l=by(s),u=[Hb,Bb].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return xy("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:_y(e,$b))}(o.padding,n),d=cy(i),f="y"===l?jb:Hb,p="y"===l?Fb:Bb,h=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],g=a[l]-n.rects.reference[l],m=vy(i),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=h/2-g/2,y=c[f],x=v-d[u]-c[p],_=v/2-d[u]/2+b,w=yy(y,_,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)))&&dy(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ky(e){return e.split("-")[1]}var Sy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cy(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,g=void 0===h?0:h,m="function"==typeof c?c({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Hb,x=jb,_=window;if(u){var w=vy(n),k="clientHeight",S="clientWidth";if(w===Xb(n)&&"static"!==fy(w=hy(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),o===jb||(o===Hb||o===Bb)&&i===Kb)x=Fb,g-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[k])-r.height,g*=l?1:-1;if(o===Hb||(o===jb||o===Fb)&&i===Kb)y=Bb,p-=(d&&w===_&&_.visualViewport?_.visualViewport.width:w[S])-r.width,p*=l?1:-1}var C,E=Object.assign({position:s},u&&Sy),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ay(n*o)/o||0,y:ay(r*o)/o||0}}({x:p,y:g},Xb(n)):{x:p,y:g};return p=T.x,g=T.y,l?Object.assign({},E,((C={})[x]=b?"0":"",C[y]=v?"0":"",C.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",C)):Object.assign({},E,((t={})[x]=b?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var Ey={passive:!0};var Ty={left:"right",right:"left",bottom:"top",top:"bottom"};function Ay(e){return e.replace(/left|right|bottom|top/g,function(e){return Ty[e]})}var Ly={start:"end",end:"start"};function Ry(e){return e.replace(/start|end/g,function(e){return Ly[e]})}function My(e){var t=Xb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ny(e){return uy(hy(e)).left+My(e).scrollLeft}function Oy(e){var t=fy(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Py(e){return["html","body","#document"].indexOf(Jb(e))>=0?e.ownerDocument.body:ey(e)&&Oy(e)?e:Py(gy(e))}function Iy(e,t){var n;void 0===t&&(t=[]);var r=Py(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Xb(r),a=o?[i].concat(i.visualViewport||[],Oy(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Iy(gy(a)))}function zy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Dy(e,t,n){return t===Gb?zy(function(e,t){var n=Xb(e),r=hy(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=ly();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Ny(e),y:l}}(e,n)):Zb(t)?function(e,t){var n=uy(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):zy(function(e){var t,n=hy(e),r=My(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=oy(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=oy(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Ny(e),l=-r.scrollTop;return"rtl"===fy(o||n).direction&&(s+=oy(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(hy(e)))}function jy(e,t,n,r){var o="clippingParents"===t?function(e){var t=Iy(gy(e)),n=["absolute","fixed"].indexOf(fy(e).position)>=0&&ey(e)?vy(e):e;return Zb(n)?t.filter(function(e){return Zb(e)&&dy(e,n)&&"body"!==Jb(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(t,n){var o=Dy(e,n,r);return t.top=oy(o.top,t.top),t.right=iy(o.right,t.right),t.bottom=iy(o.bottom,t.bottom),t.left=oy(o.left,t.left),t},Dy(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 Fy(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?ry(o):null,a=o?ky(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case jb:t={x:s,y:n.y-r.height};break;case Fb:t={x:s,y:n.y+n.height};break;case Bb:t={x:n.x+n.width,y:l};break;case Hb:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?by(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case Ub:t[u]=t[u]-(n[c]/2-r[c]/2);break;case Kb:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function By(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?Gb:u,d=n.elementContext,f=void 0===d?Vb:d,p=n.altBoundary,h=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,v=xy("number"!=typeof m?m:_y(m,$b)),b=f===Vb?"reference":Vb,y=e.rects.popper,x=e.elements[h?b:f],_=jy(Zb(x)?x:x.contextElement||hy(e.elements.popper),l,c,a),w=uy(e.elements.reference),k=Fy({reference:w,element:y,placement:o}),S=zy(Object.assign({},y,k)),C=f===Vb?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===Vb&&T){var A=T[o];Object.keys(E).forEach(function(e){var t=[Bb,Fb].indexOf(e)>=0?1:-1,n=[jb,Fb].indexOf(e)>=0?"y":"x";E[e]+=A[n]*t})}return E}function Hy(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?qb:l,c=ky(r),d=c?s?Yb:Yb.filter(function(e){return ky(e)===c}):$b,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]=By(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ry(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var Wy={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,g=n.allowedAutoPlacements,m=t.options.placement,v=ry(m),b=l||(v===m||!h?[Ay(m)]:function(e){if(ry(e)===Wb)return[];var t=Ay(e);return[Ry(e),t,Ry(t)]}(m)),y=[m].concat(b).reduce(function(e,n){return e.concat(ry(n)===Wb?Hy(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):n)},[]),x=t.rects.reference,_=t.rects.popper,w=new Map,k=!0,S=y[0],C=0;C<y.length;C++){var E=y[C],T=ry(E),A=ky(E)===Ub,L=[jb,Fb].indexOf(T)>=0,R=L?"width":"height",M=By(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),N=L?A?Bb:Hb:A?Fb:jb;x[R]>_[R]&&(N=Ay(N));var O=Ay(N),P=[];if(i&&P.push(M[T]<=0),s&&P.push(M[N]<=0,M[O]<=0),P.every(function(e){return e})){S=E,k=!1;break}w.set(E,P)}if(k)for(var I=function(e){var t=y.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"},z=h?3:1;z>0;z--){if("break"===I(z))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function $y(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 Uy(e){return[jb,Bb,Fb,Hb].some(function(t){return e[t]>=0})}var Ky={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=qb.reduce(function(e,n){return e[n]=function(e,t,n){var r=ry(e),o=[Hb,jb].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,[Hb,Bb].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 Gy={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,g=void 0===h?0:h,m=By(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=ry(t.placement),b=ky(t.placement),y=!b,x=by(v),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,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 L,R="y"===x?jb:Hb,M="y"===x?Fb:Bb,N="y"===x?"height":"width",O=w[x],P=O+m[R],I=O-m[M],z=p?-S[N]/2:0,D=b===Ub?k[N]:S[N],j=b===Ub?-S[N]:-k[N],F=t.elements.arrow,B=p&&F?cy(F):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=H[R],$=H[M],U=yy(0,k[N],B[N]),K=y?k[N]/2-z-U-W-E.mainAxis:D-U-W-E.mainAxis,G=y?-k[N]/2+z+U+$+E.mainAxis:j+U+$+E.mainAxis,V=t.elements.arrow&&vy(t.elements.arrow),Y=V?"y"===x?V.clientTop||0:V.clientLeft||0:0,q=null!=(L=null==T?void 0:T[x])?L:0,Q=O+G-q,J=yy(p?iy(P,O+K-q-Y):P,O,p?oy(I,Q):I);w[x]=J,A[x]=J-O}if(s){var X,Z="x"===x?jb:Hb,ee="x"===x?Fb:Bb,te=w[_],ne="y"===_?"height":"width",re=te+m[Z],oe=te-m[ee],ie=-1!==[jb,Hb].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=yy(e,t,n);return r>n?n:r}(se,te,le):yy(p?se:re,te,p?le:oe);w[_]=ue,A[_]=ue-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function Vy(e,t,n){void 0===n&&(n=!1);var r=ey(t),o=ey(t)&&function(e){var t=e.getBoundingClientRect(),n=ay(t.width)/e.offsetWidth||1,r=ay(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=hy(t),a=uy(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Jb(t)||Oy(i))&&(s=function(e){return e!==Xb(e)&&ey(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:My(e);var t}(t)),ey(t)?((l=uy(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ny(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Yy(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 qy(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var Qy={placement:"bottom",modifiers:[],strategy:"absolute"};function Jy(){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 Xy(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Qy:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qy,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:Zb(e)?Iy(e):e.contextElement?Iy(e.contextElement):[],popper:Iy(t)};var c,d,f=function(e){var t=Yy(e);return Qb.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(Jy(t,n)){o.rects={reference:Vy(t,vy(n),"fixed"===o.options.strategy),popper:cy(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:qy(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){u(),s=!0}};if(!Jy(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 Zy=Xy({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=Xb(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",n.update,Ey)}),s&&l.addEventListener("resize",n.update,Ey),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",n.update,Ey)}),s&&l.removeEventListener("resize",n.update,Ey)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Fy({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:ry(t.placement),variation:ky(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,Cy(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,Cy(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:{}},ny,Ky,Wy,Gy,wy,{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=By(t,{elementContext:"reference"}),s=By(t,{altBoundary:!0}),l=$y(a,r),u=$y(s,o,i),c=Uy(l),d=Uy(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 ex=E.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=E.useState(null),s=Yg(E.isValidElement(n)?hm(n):null,t);if(zg(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),zg(()=>{if(i&&!o)return $g(t,i),()=>{$g(t,null)}},[t,i,o]),o){if(E.isValidElement(n)){const e={ref:s};return E.cloneElement(n,e)}return ju.jsx(E.Fragment,{children:n})}return ju.jsx(E.Fragment,{children:i?Dv.createPortal(n,i):i})});function tx(e){return ug("MuiPopper",e)}cg("MuiPopper",["root"]);const nx=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],rx=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ox(e){return"function"==typeof e?e():e}const ix={},ax=E.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,g=_d(e,nx),m=E.useRef(null),v=Yg(m,t),b=E.useRef(null),y=Yg(b,d),x=E.useRef(y);zg(()=>{x.current=y},[y]),E.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),[w,k]=E.useState(_),[S,C]=E.useState(ox(r));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{r&&C(ox(r))},[r]),zg(()=>{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=Zy(S,m.current,xd({placement:_},c,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}},[S,a,s,l,c,_]);const T={placement:w};null!==h&&(T.TransitionProps=h);const A=(e=>{const{classes:t}=e;return lm({root:["root"]},tx,t)})(e),L=null!=(n=p.root)?n:"div",R=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=_d(e,pm),s=i?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(r,o),{props:l,internalRef:u}=fm(xd({},a,{externalSlotProps:s}));return cm(n,xd({},l,{ref:Yg(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:L,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:A.root});return ju.jsx(L,xd({},R,{children:"function"==typeof o?o(T):o}))}),sx=E.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=ix,popperRef:f,style:p,transition:h=!1,slotProps:g={},slots:m={}}=e,v=_d(e,rx),[b,y]=E.useState(!0);if(!s&&!u&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=ox(n);x=e&&void 0!==e.nodeType?Hg(e).body:Hg(null).body}const _=u||!s||h&&!b?void 0:"none",w=h?{in:u,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return ju.jsx(ex,{disablePortal:a,container:x,children:ju.jsx(ax,xd({anchorEl:n,direction:i,disablePortal:a,modifiers:l,ref:t,open:h?!b:u,placement:c,popperOptions:d,popperRef:f,slotProps:g,slots:m},v,{style:xd({position:"fixed",top:0,left:0,display:_},p),TransitionProps:w,children:r}))})}),lx=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ux=Rv(sx,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cx=E.forwardRef(function(e,t){var n;const r=Db(),o=Pv({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:g,popperRef:m,transition:v,slots:b,slotProps:y}=o,x=_d(o,lx),_=null!=(n=null==b?void 0:b.root)?n:null==s?void 0:s.Root,w=xd({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:g,popperRef:m,transition:v},x);return ju.jsx(ux,xd({as:a,direction:null==r?void 0:r.direction,slots:{root:_},slotProps:null!=y?y:l},w,{ref:t}))}),dx=["onChange","maxRows","minRows","style","value"];function fx(e){return parseInt(e,10)||0}const px={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function hx(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const gx=E.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=_d(e,dx),{current:l}=E.useRef(null!=a),u=E.useRef(null),c=Yg(t,u),d=E.useRef(null),f=E.useRef(null),p=E.useCallback(()=>{const t=u.current,n=f.current;if(!t||!n)return;const i=Wg(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=fx(i.paddingBottom)+fx(i.paddingTop),l=fx(i.borderBottomWidth)+fx(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=Vg(()=>{const e=u.current,t=p();if(!e||!t||hx(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),g=E.useCallback(()=>{const e=u.current,t=p();if(!e||!t||hx(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[p]),m=E.useRef(-1);zg(()=>{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}(g),t=null==u?void 0:u.current;if(!t)return;const n=Wg(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(m.current),g(),m.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(m.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[p,g,h]),zg(()=>{g()});return ju.jsxs(E.Fragment,{children:[ju.jsx("textarea",xd({value:a,onChange:e=>{l||g(),n&&n(e)},ref:c,rows:o,style:i},s)),ju.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:xd({},px,i,{paddingTop:0,paddingBottom:0})})]})});const mx=E.createContext(void 0);function vx(e){return ju.jsx(Zh,xd({},e,{defaultTheme:fv,themeId:yd}))}function bx(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function yx(e){return ug("MuiInputBase",e)}const xx=cg("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),_x=["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"],wx=Rv("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${Jp(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>xd({},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",[`&.${xx.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&xd({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),kx=Rv("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=xd({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 xd({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] + .${xx.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},[`&.${xx.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"})}),Sx=ju.jsx(vx,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cx=E.forwardRef(function(e,t){var n;const r=Pv({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:g,inputComponent:m="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:_=!1,name:w,onBlur:k,onChange:S,onClick:C,onFocus:T,onKeyDown:A,onKeyUp:L,placeholder:R,readOnly:M,renderSuffix:N,rows:O,slotProps:P={},slots:I={},startAdornment:z,type:D="text",value:j}=r,F=_d(r,_x),B=null!=v.value?v.value:j,{current:H}=E.useRef(null!=B),W=E.useRef(),$=E.useCallback(e=>{},[]),U=Yg(W,b,v.ref,$),[K,G]=E.useState(!1),V=E.useContext(mx),Y=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:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=V?V.focused:K,E.useEffect(()=>{!V&&d&&K&&(G(!1),k&&k())},[V,d,K,k]);const q=V&&V.onFilled,Q=V&&V.onEmpty,J=E.useCallback(e=>{!function(e,t=!1){return e&&(bx(e.value)&&""!==e.value||t&&bx(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():q&&q()},[q,Q]);zg(()=>{H&&J({value:B})},[B,J,H]);E.useEffect(()=>{J(W.current)},[]);let X=m,Z=v;_&&"input"===X&&(Z=xd(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Z),X=gx);E.useEffect(()=>{V&&V.setAdornedStart(Boolean(z))},[V,z]);const ee=xd({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:p,error:Y.error,focused:Y.focused,formControl:V,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:_,size:Y.size,startAdornment:z,type:D}),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 lm({root:["root",`color${Jp(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&`size${Jp(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"]},yx,t)})(ee),ne=I.root||l.Root||wx,re=P.root||u.root||{},oe=I.input||l.Input||kx;return Z=xd({},Z,null!=(n=P.input)?n:u.input),ju.jsxs(E.Fragment,{children:[!f&&Sx,ju.jsxs(ne,xd({},re,!um(ne)&&{ownerState:xd({},ee,re.ownerState)},{ref:t,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),C&&C(e)}},F,{className:ag(te.root,re.className,s,M&&"MuiInputBase-readOnly"),children:[z,ju.jsx(mx.Provider,{value:null,children:ju.jsx(oe,xd({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:w,placeholder:R,readOnly:M,required:Y.required,rows:O,value:B,onKeyDown:A,onKeyUp:L,type:D},Z,!um(oe)&&{as:X,ownerState:xd({},ee,Z.ownerState)},{ref:U,className:ag(te.input,Z.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||W.current;if(null==t)throw new Error(vd(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),S&&S(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(T&&T(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),p,N?N(xd({},Y,{startAdornment:z})):null]}))]})}),Ex=cg("MuiBox",["root"]),Tx=dv(),Ax=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Np("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Uh);return E.forwardRef(function(e,a){const s=Jh(n),l=tg(e),{className:u,component:c="div"}=l,d=_d(l,sg);return ju.jsx(i,xd({as:c,ref:a,className:ag(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:yd,defaultTheme:Tx,defaultClassName:Ex.root,generateClassName:og.generate});function Lx(e){return ug("MuiButton",e)}const Rx=cg("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"]),Mx=E.createContext({}),Nx=E.createContext(void 0),Ox=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Px=e=>xd({},"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}}),Ix=Rv(wb,{shouldForwardProp:e=>Lv(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Jp(n.color)}`],t[`size${Jp(n.size)}`],t[`${n.variant}Size${Jp(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 xd({},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":xd({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Km.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})`:Km.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})`:Km.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":xd({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Rx.focusVisible}`]:xd({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Rx.disabled}`]:xd({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 ${Km.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"},[`&.${Rx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Rx.disabled}`]:{boxShadow:"none"}}),zx=Rv("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Jp(n.size)}`]]}})(({ownerState:e})=>xd({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Px(e))),Dx=Rv("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Jp(n.size)}`]]}})(({ownerState:e})=>xd({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Px(e))),jx=E.forwardRef(function(e,t){const n=E.useContext(Mx),r=E.useContext(Nx),o=Pv({props:Pg(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:g="medium",startIcon:m,type:v,variant:b="text"}=o,y=_d(o,Ox),x=xd({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:g,type:v,variant:b}),_=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return xd({},a,lm({root:["root",i,`${i}${Jp(t)}`,`size${Jp(o)}`,`${i}Size${Jp(o)}`,`color${Jp(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Jp(o)}`],endIcon:["icon","endIcon",`iconSize${Jp(o)}`]},Lx,a))})(x),w=m&&ju.jsx(zx,{className:_.startIcon,ownerState:x,children:m}),k=f&&ju.jsx(Dx,{className:_.endIcon,ownerState:x,children:f}),S=r||"";return ju.jsxs(Ix,xd({ownerState:x,className:ag(n.className,_.root,l,S),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:ag(_.focusVisible,p),ref:t,type:v},y,{classes:_,children:[w,i,k]}))});function Fx(e){return e.substring(2).toLowerCase()}function Bx(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=E.useRef(!1),s=E.useRef(null),l=E.useRef(!1),u=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=Yg(hm(t),s),d=Vg(e=>{const t=u.current;u.current=!1;const r=Hg(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)),E.useEffect(()=>{if(!1!==i){const e=Fx(i),t=Hg(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)),E.useEffect(()=>{if(!1!==r){const e=Fx(r),t=Hg(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),ju.jsx(E.Fragment,{children:E.cloneElement(t,p)})}function Hx(e){return ug("MuiDivider",e)}const Wx=cg("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$x=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ux=Rv("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})=>xd({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)`:Km.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})=>xd({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>xd({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>xd({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>xd({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Kx=Rv("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>xd({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)`})),Gx=E.forwardRef(function(e,t){const n=Pv({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=_d(n,$x),h=xd({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:f}),g=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return lm({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"]},Hx,r)})(h);return ju.jsx(Ux,xd({as:a,className:ag(g.root,i),role:c,ref:t,ownerState:h},p,{children:o?ju.jsx(Kx,{className:g.wrapper,ownerState:h,children:o}):null}))});Gx.muiSkipListHighlight=!0;const Vx=function(e={}){const{createStyledComponent:t=Nm,useThemeProps:n=Om,componentName:r="MuiStack"}=e,o=t(Im),i=E.forwardRef(function(e,t){const i=tg(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:u,children:c,className:d,useFlexGap:f=!1}=i,p=_d(i,Rm),h={direction:s,spacing:l,useFlexGap:f},g=lm({root:["root"]},e=>ug(r,e),{});return ju.jsx(o,xd({as:a,ownerState:h,ref:t,className:ag(g.root,d)},p,{children:u?Pm(c,u):c}))});return i}({createStyledComponent:Rv("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Pv({props:e,name:"MuiStack"})}),Yx=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function qx(e){return`scale(${e}, ${e**2})`}const Qx={entering:{opacity:1,transform:qx(1)},entered:{opacity:1,transform:"none"}},Jx="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Xx=E.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:g=Gv}=e,m=_d(e,Yx),v=Xg(),b=E.useRef(),y=pv(),x=E.useRef(null),_=Yg(x,hm(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}=eb({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:Jx?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),C=w(l),T=w(f),A=w(e=>{const{duration:t,delay:n,easing:r}=eb({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:Jx?o:.666*o,delay:Jx?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=qx(.75),c&&c(e)}),L=w(d);return ju.jsx(g,xd({appear:r,in:a,nodeRef:x,onEnter:S,onEntered:C,onEntering:k,onExit:A,onExited:L,onExiting:T,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},m,{children:(e,t)=>E.cloneElement(o,xd({style:xd({opacity:0,transform:qx(.75),visibility:"exited"!==e||a?void 0:"hidden"},Qx[e],p,o.props.style),ref:_},t))}))});Xx.muiSupportAuto=!0;const Zx=E.createContext({});function e_(e){return ug("MuiList",e)}cg("MuiList",["root","padding","dense","subheader"]);const t_=["children","className","component","dense","disablePadding","subheader"],n_=Rv("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})=>xd({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),r_=E.forwardRef(function(e,t){const n=Pv({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,u=_d(n,t_),c=E.useMemo(()=>({dense:a}),[a]),d=xd({},n,{component:i,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return lm({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},e_,t)})(d);return ju.jsx(Zx.Provider,{value:c,children:ju.jsxs(n_,xd({as:i,className:ag(f.root,o),ref:t,ownerState:d},u,{children:[l,r]}))})});function o_(e){return ug("MuiListItemIcon",e)}const i_=cg("MuiListItemIcon",["root","alignItemsFlexStart"]),a_=["className"],s_=Rv("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})=>xd({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),l_=E.forwardRef(function(e,t){const n=Pv({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=_d(n,a_),i=xd({},n,{alignItems:E.useContext(Zx).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return lm({root:["root","flex-start"===t&&"alignItemsFlexStart"]},o_,n)})(i);return ju.jsx(s_,xd({className:ag(a.root,r),ownerState:i,ref:t},o))}),u_=cg("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),c_=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function d_(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function f_(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function p_(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 h_(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")&&p_(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const g_=E.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=_d(e,c_),f=E.useRef(null),p=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});zg(()=>{r&&f.current.focus()},[r]),E.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)}(Hg(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const h=Yg(f,t);let g=-1;E.Children.forEach(i,(e,t)=>{E.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))});const m=E.Children.map(i,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),E.cloneElement(e,t)}return e});return ju.jsx(r_,xd({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=Hg(t).activeElement;if("ArrowDown"===n)e.preventDefault(),h_(t,r,l,s,d_);else if("ArrowUp"===n)e.preventDefault(),h_(t,r,l,s,f_);else if("Home"===n)e.preventDefault(),h_(t,null,l,s,d_);else if("End"===n)e.preventDefault(),h_(t,null,l,s,f_);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&&p_(r,o);o.previousKeyMatched&&(l||h_(t,r,!1,s,d_,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:m}))});function m_(e){return ug("MuiMenuItem",e)}const v_=cg("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),b_=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],y_=Rv(wb,{shouldForwardProp:e=>Lv(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})=>xd({},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"}},[`&.${v_.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Km.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${v_.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Km.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${v_.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Km.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})`:Km.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${v_.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${v_.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Wx.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Wx.inset}`]:{marginLeft:52},[`& .${u_.root}`]:{marginTop:0,marginBottom:0},[`& .${u_.inset}`]:{paddingLeft:36},[`& .${i_.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&xd({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${i_.root} svg`]:{fontSize:"1.25rem"}}))),x_=E.forwardRef(function(e,t){const n=Pv({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=_d(n,b_),p=E.useContext(Zx),h=E.useMemo(()=>({dense:i||p.dense||!1,disableGutters:s}),[p.dense,i,s]),g=E.useRef(null);zg(()=>{r&&g.current&&g.current.focus()},[r]);const m=xd({},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 xd({},a,lm({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},m_,a))})(n),b=Yg(g,t);let y;return n.disabled||(y=void 0!==c?c:-1),ju.jsx(Zx.Provider,{value:h,children:ju.jsx(y_,xd({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:ag(v.focusVisible,l),className:ag(v.root,d)},f,{ownerState:m,classes:v}))})});function __(e){return ug("MuiTooltip",e)}const w_=cg("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),k_=["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 S_=Rv(cx,{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})=>xd({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${w_.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${w_.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${w_.arrow}`]:xd({},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"] .${w_.arrow}`]:xd({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),C_=Rv("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${Jp(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>{return xd({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Km.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},{[`.${w_.popper}[data-popper-placement*="left"] &`]:xd({transformOrigin:"right center"},t.isRtl?xd({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):xd({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${w_.popper}[data-popper-placement*="right"] &`]:xd({transformOrigin:"left center"},t.isRtl?xd({marginRight:"14px"},t.touch&&{marginRight:"24px"}):xd({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${w_.popper}[data-popper-placement*="top"] &`]:xd({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${w_.popper}[data-popper-placement*="bottom"] &`]:xd({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n}),E_=Rv("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:Km.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let T_=!1;const A_=new Jg;let L_={x:0,y:0};function R_(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const M_=E.forwardRef(function(e,t){var n,r,o,i,a,s,l,u,c,d,f,p,h,g,m,v,b,y,x;const _=Pv({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:k,components:S={},componentsProps:C={},describeChild:T=!1,disableFocusListener:A=!1,disableHoverListener:L=!1,disableInteractive:R=!1,disableTouchListener:M=!1,enterDelay:N=100,enterNextDelay:O=0,enterTouchDelay:P=700,followCursor:I=!1,id:z,leaveDelay:D=0,leaveTouchDelay:j=1500,onClose:F,onOpen:B,open:H,placement:W="bottom",PopperComponent:$,PopperProps:U={},slotProps:K={},slots:G={},title:V,TransitionComponent:Y=Xx,TransitionProps:q}=_,Q=_d(_,k_),J=E.isValidElement(k)?k:ju.jsx("span",{children:k}),X=pv(),Z=(()=>{const e=E.useContext(xm);return null!=e&&e})(),[ee,te]=E.useState(),[ne,re]=E.useState(null),oe=E.useRef(!1),ie=R||I,ae=Xg(),se=Xg(),le=Xg(),ue=Xg(),[ce,de]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=E.useRef(void 0!==e),[i,a]=E.useState(t);return[o?e:i,E.useCallback(e=>{o||a(e)},[])]}({controlled:H,default:!1,name:"Tooltip",state:"open"});let fe=ce;const pe=Gg(z),he=E.useRef(),ge=Vg(()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ue.clear()});E.useEffect(()=>ge,[ge]);const me=e=>{A_.clear(),T_=!0,de(!0),B&&!fe&&B(e)},ve=Vg(e=>{A_.start(800+D,()=>{T_=!1}),de(!1),F&&fe&&F(e),ae.start(X.transitions.duration.shortest,()=>{oe.current=!1})}),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),se.clear(),le.clear(),N||T_&&O?se.start(T_?O:N,()=>{me(e)}):me(e))},ye=e=>{se.clear(),le.start(D,()=>{ve(e)})},{isFocusVisibleRef:xe,onBlur:_e,onFocus:we,ref:ke}=sm(),[,Se]=E.useState(!1),Ce=e=>{_e(e),!1===xe.current&&(Se(!1),ye(e))},Ee=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Se(!0),be(e))},Te=e=>{oe.current=!0;const t=J.props;t.onTouchStart&&t.onTouchStart(e)},Ae=e=>{Te(e),le.clear(),ae.clear(),ge(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(P,()=>{document.body.style.WebkitUserSelect=he.current,be(e)})},Le=e=>{J.props.onTouchEnd&&J.props.onTouchEnd(e),ge(),le.start(j,()=>{ve(e)})};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 Re=Yg(hm(J),ke,te,t);V||0===V||(fe=!1);const Me=E.useRef(),Ne={},Oe="string"==typeof V;T?(Ne.title=fe||!Oe||L?null:V,Ne["aria-describedby"]=fe?pe:null):(Ne["aria-label"]=Oe?V:null,Ne["aria-labelledby"]=fe&&!Oe?pe:null);const Pe=xd({},Ne,Q,J.props,{className:ag(Q.className,J.props.className),onTouchStart:Te,ref:Re},I?{onMouseMove:e=>{const t=J.props;t.onMouseMove&&t.onMouseMove(e),L_={x:e.clientX,y:e.clientY},Me.current&&Me.current.update()}}:{}),Ie={};M||(Pe.onTouchStart=Ae,Pe.onTouchEnd=Le),L||(Pe.onMouseOver=R_(be,Pe.onMouseOver),Pe.onMouseLeave=R_(ye,Pe.onMouseLeave),ie||(Ie.onMouseOver=be,Ie.onMouseLeave=ye)),A||(Pe.onFocus=R_(Ee,Pe.onFocus),Pe.onBlur=R_(Ce,Pe.onBlur),ie||(Ie.onFocus=Ee,Ie.onBlur=Ce));const ze=E.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)),xd({},U.popperOptions,{modifiers:t})},[ne,U]),De=xd({},_,{isRtl:Z,arrow:w,disableInteractive:ie,placement:W,PopperComponentProp:$,touch:oe.current}),je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return lm({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Jp(i.split("-")[0])}`],arrow:["arrow"]},__,t)})(De),Fe=null!=(n=null!=(r=G.popper)?r:S.Popper)?n:S_,Be=null!=(o=null!=(i=null!=(a=G.transition)?a:S.Transition)?i:Y)?o:Xx,He=null!=(s=null!=(l=G.tooltip)?l:S.Tooltip)?s:C_,We=null!=(u=null!=(c=G.arrow)?c:S.Arrow)?u:E_,$e=cm(Fe,xd({},U,null!=(d=K.popper)?d:C.popper,{className:ag(je.popper,null==U?void 0:U.className,null==(f=null!=(p=K.popper)?p:C.popper)?void 0:f.className)}),De),Ue=cm(Be,xd({},q,null!=(h=K.transition)?h:C.transition),De),Ke=cm(He,xd({},null!=(g=K.tooltip)?g:C.tooltip,{className:ag(je.tooltip,null==(m=null!=(v=K.tooltip)?v:C.tooltip)?void 0:m.className)}),De),Ge=cm(We,xd({},null!=(b=K.arrow)?b:C.arrow,{className:ag(je.arrow,null==(y=null!=(x=K.arrow)?x:C.arrow)?void 0:y.className)}),De);return ju.jsxs(E.Fragment,{children:[E.cloneElement(J,Pe),ju.jsx(Fe,xd({as:null!=$?$:cx,placement:W,anchorEl:I?{getBoundingClientRect:()=>({top:L_.y,left:L_.x,right:L_.x,bottom:L_.y,width:0,height:0})}:ee,popperRef:Me,open:!!ee&&fe,id:pe,transition:!0},Ie,$e,{popperOptions:ze,children:({TransitionProps:e})=>ju.jsx(Be,xd({timeout:X.transitions.duration.shorter},e,Ue,{children:ju.jsxs(He,xd({},Ke,{children:[V,w?ju.jsx(We,xd({},Ge,{ref:re})):null]}))}))}))]})}),N_=(e,t)=>ju.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:ju.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"})}),O_=E.forwardRef(N_),P_=(e,t)=>ju.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:ju.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}),I_=E.forwardRef(P_);function z_({validateUrl:e,attributes:t}){const[n]=Ou();return E.useEffect(()=>{if(!n.hasNodes([Rl]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),E.useEffect(()=>function(e,t){return bs(dl(()=>e.registerCommand(Dl,e=>{const n=t.validateUrl.peek(),r=t.attributes.peek();if(null===e)return Fl(null),!0;if("string"==typeof e)return!(void 0!==n&&!n(e)||(Fl(e,r),0));{const{url:t,target:n,rel:o,title:i}=e;return Fl(t,{...r,rel:o,target:n,title:i}),!0}},1)),dl(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(_t,t=>{const o=$r();if(!Er(o)||o.isCollapsed()||!Ks(t,ClipboardEvent))return!1;if(null===t.clipboardData)return!1;const i=t.clipboardData.getData("text");return!!n(i)&&!o.getNodes().some(e=>To(e))&&(e.dispatchCommand(Dl,{...r,url:i}),t.preventDefault(),!0)},1)}))}(n,fl({attributes:t,validateUrl:e})),[n,e,t]),null}const D_={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)"},j_=12,F_=14,B_=16,H_=24,W_=3,$_=300,U_=400,K_=600,G_=700,V_={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Y_(e){return ju.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ju.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function q_({fontSize:e="medium",children:t=null,className:n=""}={}){return ju.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 Q_(e={}){return ju.jsx(q_,{...e,children:ju.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[ju.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),ju.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 J_(e={}){return ju.jsx(q_,{fontSize:"medium",...e,children:ju.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ju.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),ju.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 X_(e){return ju.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ju.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 Z_(e={}){return ju.jsx(q_,{...e,children:ju.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ju.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[ju.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),ju.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function ew(e={}){return ju.jsx(q_,{fontSize:"medium",...e,children:ju.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ju.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:ju.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function tw({className:e}){return ju.jsx(q_,{fontSize:"small",className:e,children:ju.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:ju.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ju.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:ju.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[ju.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"}),ju.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 nw(e={}){return ju.jsx(q_,{...e,children:ju.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ju.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ju.jsx("rect",{stroke:D_.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const rw={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:W_,"& > 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 ow=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:D_.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:D_.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:ju.jsx(Y_,{"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 ${D_.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:D_.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${D_.MISC_FOCUS_BORDER}`,borderRadius:W_,backgroundColor:D_.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 ${D_.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:D_.WHITE,color:D_.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:W_},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${D_.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:D_.GREYSCALE_0_15,backgroundColor:D_.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:D_.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${D_.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:D_.GREEN_PALE},"&:active":{backgroundColor:D_.GREEN_DARK},"&.Mui-focusVisible":{borderColor:D_.GREEN_PALE,boxShadow:`0 0 0 3px ${Bg(D_.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:D_.BLUE_PALE},"&:active":{backgroundColor:D_.BLUE_DARK},"&.Mui-focusVisible":{borderColor:D_.BLUE_PALE,boxShadow:`0 0 0 3px ${Bg(D_.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:W_,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:D_.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${D_.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:D_.GREYSCALE_0_42,backgroundColor:D_.GREYSCALE_100_60,"&:active":{backgroundColor:D_.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:D_.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${D_.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:D_.PURPLE,"&.Mui-focusVisible":{borderColor:D_.PURPLE,boxShadow:`0 0 0 3px ${Bg(D_.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:D_.GREEN,"&.Mui-focusVisible":{borderColor:D_.GREEN,boxShadow:`0 0 0 3px ${Bg(D_.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:D_.BLUE,"&.Mui-focusVisible":{borderColor:D_.BLUE,boxShadow:`0 0 0 3px ${Bg(D_.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:D_.ORANGE,"&.Mui-focusVisible":{borderColor:D_.ORANGE,boxShadow:`0 0 0 3px ${Bg(D_.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:D_.RED,"&.Mui-focusVisible":{borderColor:D_.RED,boxShadow:`0 0 0 3px ${Bg(D_.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:D_.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:D_.PURPLE_PALE},"&:active":{backgroundColor:D_.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:D_.PURPLE_PALE,boxShadow:`0 0 0 3px ${Bg(D_.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:D_.GREEN_PALE},"&:active":{backgroundColor:D_.GREEN_DARK},"&.Mui-focusVisible":{borderColor:D_.GREEN_PALE,boxShadow:`0 0 0 3px ${Bg(D_.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:D_.BLUE_PALE},"&:active":{backgroundColor:D_.BLUE_DARK},"&.Mui-focusVisible":{borderColor:D_.BLUE_PALE,boxShadow:`0 0 0 3px ${Bg(D_.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:D_.ORANGE_PALE},"&:active":{backgroundColor:D_.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:D_.ORANGE_PALE,boxShadow:`0 0 0 3px ${Bg(D_.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:D_.RED_PALE},"&:active":{backgroundColor:D_.RED_DARK},"&.Mui-focusVisible":{borderColor:D_.RED_PALE,boxShadow:`0 0 0 3px ${Bg(D_.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:D_.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:D_.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:W_,boxShadow:`inset 0 0 0 2px ${D_.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:ju.jsx(X_,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:j_,borderRadius:W_,color:D_.TEXT_PRIMARY,backgroundColor:D_.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:D_.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${D_.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:D_.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:D_.GREYSCALE_0_05,color:D_.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:D_.GREEN,borderColor:D_.GREEN},"&.MuiChip-outlinedInfo":{color:D_.BLUE,borderColor:D_.BLUE},"&.MuiChip-outlinedWarning":{color:D_.ORANGE,borderColor:D_.ORANGE},"&.MuiChip-outlinedError":{color:D_.RED,borderColor:D_.RED}},outlined:{border:`solid 1px ${D_.GREYSCALE_0_15}`,backgroundColor:D_.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:W_,boxShadow:"none",backgroundColor:D_.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:D_.GREEN,borderColor:D_.GREEN},outlinedSecondary:{color:D_.BLUE,borderColor:D_.BLUE},label:{fontFamily:V_.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:ju.jsx(X_,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:ju.jsx(Y_,{"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:W_},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:W_,fontSize:F_,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:D_.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${D_.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:D_.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:D_.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:D_.GREYSCALE_0_05}}},popupIndicator:{borderRadius:W_,border:`solid 1px ${D_.GREYSCALE_0_15}`,color:D_.GREYSCALE_0_60,marginRight:0,width:H_,height:H_},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${D_.GREYSCALE_0_15}`},clearIndicator:{borderRadius:W_,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:D_.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:F_}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:j_,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:D_.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:D_.GREYSCALE_25,fontSize:j_,fontFamily:V_.FONT_FAMILY,fontWeight:K_,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:D_.TEXT_PRIMARY},"&.Mui-error":{color:D_.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:D_.TEXT_SECONDARY,content:"'(optional)'",fontWeight:U_,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:D_.TEXT_SECONDARY,content:"'(required)'",fontWeight:U_,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:F_,lineHeight:"16px",backgroundColor:D_.WHITE,borderRadius:W_,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${D_.GREYSCALE_0_05}`,borderColor:D_.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${D_.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${D_.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${D_.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${D_.RED}`,boxShadow:`0px 0px 0px 1px ${D_.RED}, inset 0 2px 0 0 ${D_.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${D_.GREYSCALE_0_10}`,borderColor:D_.GREYSCALE_0_10,backgroundColor:D_.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:D_.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:D_.GREYSCALE_0_15,borderRadius:W_,boxShadow:`inset 0 2px 0 0 ${D_.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>ju.jsx(Y_,{...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:D_.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:D_.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:D_.GREYSCALE_0_03},"&:active":{backgroundColor:D_.GREYSCALE_0_10},"&:focus":{backgroundColor:D_.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${D_.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${D_.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:D_.GREYSCALE_0_30,"&:hover":{backgroundColor:D_.GREYSCALE_0_0,borderColor:D_.GREYSCALE_0_15},"& ~svg":{color:D_.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${D_.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:W_}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:D_.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${D_.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:D_.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:F_,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:j_,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:j_,fontWeight:K_,color:D_.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:K_}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${D_.GREYSCALE_0_15}, 0px 0px 0px 1px ${D_.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:ju.jsx(ew,{}),checkedIcon:ju.jsx(J_,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:D_.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${D_.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:D_.GREEN_PALE,boxShadow:`0 0 0 3px ${Bg(D_.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:D_.BLUE_PALE,boxShadow:`0 0 0 3px ${Bg(D_.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:D_.GREYSCALE_0_20}},"&.Mui-disabled":{fill:D_.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:ju.jsx(nw,{}),checkedIcon:ju.jsx(Q_,{}),indeterminateIcon:ju.jsx(Z_,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:W_,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:D_.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:D_.GREYSCALE_0_55,color:D_.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:D_.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:D_.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:D_.GREYSCALE_0_55,"&:hover":{color:D_.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:D_.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:D_.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:F_,color:D_.TEXT_PRIMARY,lineHeight:"16px",fontWeight:K_},secondary:{fontSize:j_,color:D_.GREYSCALE_45,fontWeight:U_,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:F_,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:F_,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:D_.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:j_,borderBottom:`solid 1px ${D_.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:F_,color:D_.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:D_.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:D_.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:D_.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:D_.RED}}},"&.Mui-focusVisible":{backgroundColor:D_.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:D_.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:D_.GREEN,height:"24px","&.Mui-disabled":{color:D_.GREYSCALE_0_15}},rail:{backgroundColor:D_.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${D_.GREYSCALE_0_05}`,borderRadius:W_,boxShadow:`inset 0px 0px 0px 1px ${D_.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${D_.GREYSCALE_0_05}`,borderRadius:W_},thumb:{height:"16px",width:"16px",borderRadius:W_,backgroundColor:D_.WHITE,boxShadow:`0px 1px 2px 0px ${D_.GREYSCALE_0_15}, 0px 0px 0px 1px ${D_.GREYSCALE_0_05}`,"&:hover":{borderRadius:W_,boxShadow:`0 2px 4px 0 ${D_.GREYSCALE_0_30}, 0 0 0 1px ${D_.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${D_.GREYSCALE_0_15}, 0 0 0 1px ${D_.GREYSCALE_0_06}, 0 0 0 2px ${D_.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${D_.GREYSCALE_0_15}, 0 0 0 1px ${D_.GREYSCALE_0_06}, 0 0 0 2px ${D_.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:D_.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:D_.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:D_.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:D_.GREYSCALE_0_15},markLabel:{color:D_.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:D_.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:D_.WHITE,color:D_.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:D_.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:D_.GREEN_PALE,boxShadow:`0 0 0 3px ${Bg(D_.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:D_.BLUE_PALE,boxShadow:`0 0 0 3px ${Bg(D_.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:D_.GREYSCALE_0_15,borderRadius:W_},thumb:{height:"16px",width:"16px",borderRadius:W_,backgroundColor:D_.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:F_,fontWeight:K_,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${D_.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${D_.MISC_FOCUS_BORDER}`,backgroundColor:D_.GREYSCALE_0_03,borderRadius:W_},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:D_.GREYSCALE_25,"&.Mui-selected":{color:D_.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:F_,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:W_,"&:hover":{backgroundColor:D_.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 ${D_.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${D_.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:W_,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:D_.GREYSCALE_0_05},"&:hover":{backgroundColor:D_.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${D_.GREYSCALE_85}`,borderRight:`1px solid ${D_.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:K_,backgroundColor:D_.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:D_.GREYSCALE_98,borderBottom:`1px solid ${D_.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${D_.GREYSCALE_85}`,borderTop:`1px solid ${D_.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:D_.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:D_.GREYSCALE_0_05,"&:hover":{backgroundColor:D_.GREYSCALE_0_03}},"&&:hover":{backgroundColor:D_.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>ju.jsx(tw,{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 ${D_.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:F_,borderRadius:W_,padding:"7px 16px",border:`1px solid ${D_.GREYSCALE_0_15}`,backgroundColor:D_.GREYSCALE_100_60,color:D_.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:D_.GREYSCALE_0_10,border:`1px solid ${D_.GREYSCALE_0_30}`},"&:hover":{backgroundColor:D_.GREYSCALE_0_03,border:`1px solid ${D_.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:D_.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${D_.MISC_FOCUS_BORDER}`,border:`1px solid ${D_.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:D_.GREYSCALE_25,backgroundColor:D_.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:D_.GREYSCALE_0_10,border:`1px solid ${D_.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:j_,height:24,width:24,padding:7},sizeLarge:{fontSize:B_,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:F_,borderRadius:W_}}},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:D_.GREYSCALE_20},tooltip:{backgroundColor:D_.GREYSCALE_20,fontSize:j_,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...rw}:{}}))(t);const iw=e=>({mode:"light",primary:{ultraLight:D_.GREEN_ULTRA_LIGHT,light:D_.GREEN_PALE,main:D_.GREEN,dark:D_.GREEN_DARK,extraDark:D_.GREEN_EXTRA_DARK,contrastText:D_.WHITE},secondary:{ultraLight:D_.BLUE_ULTRA_LIGHT,light:D_.BLUE_PALE,main:D_.BLUE,dark:D_.BLUE_DARK,extraDark:D_.BLUE_EXTRA_DARK,contrastText:D_.WHITE},error:{ultraLight:D_.RED_ULTRA_LIGHT,light:D_.RED_PALE,main:D_.RED,dark:D_.RED_DARK,extraDark:D_.RED_EXTRA_DARK,contrastText:D_.WHITE},warning:{ultraLight:D_.ORANGE_ULTRA_LIGHT,light:D_.ORANGE_PALE,main:D_.ORANGE,dark:D_.ORANGE_DARK,extraDark:D_.ORANGE_EXTRA_DARK,contrastText:D_.WHITE},success:{ultraLight:D_.GREEN_ULTRA_LIGHT,light:D_.GREEN_PALE,main:D_.GREEN,dark:D_.GREEN_DARK,extraDark:D_.GREEN_EXTRA_DARK,contrastText:D_.WHITE},info:{ultraLight:D_.BLUE_ULTRA_LIGHT,light:D_.BLUE_PALE,main:D_.BLUE,dark:D_.BLUE_DARK,extraDark:D_.BLUE_EXTRA_DARK,contrastText:D_.WHITE},text:{primary:D_.TEXT_PRIMARY,secondary:D_.TEXT_SECONDARY,disabled:D_.GREYSCALE_0_30},action:{hover:D_.GREYSCALE_0_03,hoverOpacity:.03,selected:D_.GREYSCALE_0_05,selectedOpacity:.05,focus:D_.MISC_FOCUS_BORDER},amethyst:{ultraLight:D_.WHITE,main:D_.PURPLE,light:D_.PURPLE_PALE,dark:D_.PURPLE_DARK,extraDark:D_.GREYSCALE_0_0,contrastText:D_.WHITE},background:{paper:D_.WHITE,default:D_.GREYSCALE_95},divider:D_.GREYSCALE_0_15}),aw=(e="light",t=!1)=>dv(((e,t=!1)=>({components:ow(0,t),palette:iw(),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:F_,fontWeightLight:$_,fontWeightRegular:U_,fontWeightMedium:K_,fontWeightBold:G_,htmlFontSize:F_,fontFamily:V_.FONT_FAMILY,button:{fontWeight:K_,fontSize:F_,textTransform:"none"},body1:{fontSize:B_,lineHeight:"24px"},body2:{fontSize:F_,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:H_,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:B_,fontWeight:K_,lineHeight:"16px"},h6:{fontSize:F_,fontWeight:K_,lineHeight:"16px"},caption:{color:D_.TEXT_SECONDARY},subtitle1:{fontSize:F_,color:D_.TEXT_SECONDARY},subtitle2:{fontSize:j_,color:D_.TEXT_SECONDARY}},shape:{borderRadius:W_}}))(0,t));var sw,lw,uw={},cw={exports:{}},dw={exports:{}};function fw(){return sw||(sw=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}(dw)),dw.exports}var pw={};function hw(e,t){return function(){return null}}function gw(e){return e&&"object"===Am(e)&&e.constructor===Object}function mw(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?xd({},e):e;return gw(e)&&gw(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(gw(t[o])&&o in e?r[o]=mw(e[o],t[o],n):r[o]=t[o])}),r}var vw=(Lp.element,function(){return null});vw.isRequired=(Lp.element.isRequired,function(){return null});var bw=function(){return null};var yw,xw,_w={exports:{}},ww={};var kw=(xw||(xw=1,_w.exports=function(){if(yw)return ww;yw=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,g=60129,m=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"),g=v("react.debug_trace_mode"),m=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 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 y=i,x=e,_=s,w=n,k=d,S=c,C=t,E=o,T=r,A=l;return ww.ContextConsumer=a,ww.ContextProvider=y,ww.Element=x,ww.ForwardRef=_,ww.Fragment=w,ww.Lazy=k,ww.Memo=S,ww.Portal=C,ww.Profiler=E,ww.StrictMode=T,ww.Suspense=A,ww.isAsyncMode=function(){return!1},ww.isConcurrentMode=function(){return!1},ww.isContextConsumer=function(e){return b(e)===a},ww.isContextProvider=function(e){return b(e)===i},ww.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},ww.isForwardRef=function(e){return b(e)===s},ww.isFragment=function(e){return b(e)===n},ww.isLazy=function(e){return b(e)===d},ww.isMemo=function(e){return b(e)===c},ww.isPortal=function(e){return b(e)===t},ww.isProfiler=function(e){return b(e)===o},ww.isStrictMode=function(e){return b(e)===r},ww.isSuspense=function(e){return b(e)===l},ww.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===g||e===r||e===l||e===u||e===m||"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)},ww.typeOf=b,ww}()),_w.exports),Sw=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Cw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Sw);return t&&t[1]||""}(e)||t}function Ew(e,t,n){var r=Cw(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var Tw,Aw="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Lw=Lp.oneOfType([Lp.func,Lp.object]),Rw=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:hw,deepmerge:mw,elementAcceptingRef:vw,elementTypeAcceptingRef:bw,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 Cw(e,"Component");if("object"===Am(e))switch(e.$$typeof){case kw.ForwardRef:return Ew(e,e.render,"ForwardRef");case kw.Memo:return Ew(e,e.type,"memo");default:return}}},ponyfillGlobal:Aw,refType:Lw}),Mw=i(Rw);function Nw(){if(Tw)return pw;Tw=1,Object.defineProperty(pw,"__esModule",{value:!0}),pw.hexToRgb=n,pw.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(""))},pw.hslToRgb=r,pw.decomposeColor=o,pw.recomposeColor=i,pw.getContrastRatio=function(e,t){var n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},pw.getLuminance=a,pw.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)},pw.fade=function(e,t){return s(e,t)},pw.alpha=s,pw.darken=l,pw.lighten=u;var e=Mw;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 pw}var Ow,Pw,Iw,zw={},Dw={exports:{}},jw={exports:{}},Fw={exports:{}};function Bw(){return Ow||(Ow=1,function(e){var t=fw().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}(Fw)),Fw.exports}function Hw(){return Pw||(Pw=1,function(e){var t=fw().default,n=Bw();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(jw)),jw.exports}function Ww(){return Iw||(Iw=1,function(e){var t=Hw();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}(Dw)),Dw.exports}var $w,Uw={exports:{}};function Kw(){return $w||($w=1,function(e){var t=xv();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}(Uw)),Uw.exports}var Gw,Vw={};function Yw(){if(Gw)return Vw;Gw=1;var e=Bm();Object.defineProperty(Vw,"__esModule",{value:!0}),Vw.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)},Vw.keys=void 0;var t=e(vv()),n=e(Kw()),r=["xs","sm","md","lg","xl"];return Vw.keys=r,Vw}var qw,Qw={};function Jw(){if(qw)return Qw;qw=1;var e=Bm();Object.defineProperty(Qw,"__esModule",{value:!0}),Qw.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(Ww()),n=e(vv());return Qw}var Xw,Zw={},ek={};function tk(){if(Xw)return ek;Xw=1,Object.defineProperty(ek,"__esModule",{value:!0}),ek.default=void 0;var e={black:"#000",white:"#fff"};return ek.default=e,ek}var nk,rk={};function ok(){if(nk)return rk;nk=1,Object.defineProperty(rk,"__esModule",{value:!0}),rk.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 rk.default=e,rk}var ik,ak={};function sk(){if(ik)return ak;ik=1,Object.defineProperty(ak,"__esModule",{value:!0}),ak.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 ak.default=e,ak}var lk,uk={};function ck(){if(lk)return uk;lk=1,Object.defineProperty(uk,"__esModule",{value:!0}),uk.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 uk.default=e,uk}var dk,fk={};function pk(){if(dk)return fk;dk=1,Object.defineProperty(fk,"__esModule",{value:!0}),fk.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 fk.default=e,fk}var hk,gk={};function mk(){if(hk)return gk;hk=1,Object.defineProperty(gk,"__esModule",{value:!0}),gk.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 gk.default=e,gk}var vk,bk={};function yk(){if(vk)return bk;vk=1,Object.defineProperty(bk,"__esModule",{value:!0}),bk.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 bk.default=e,bk}var xk,_k,wk={};function kk(){if(xk)return wk;xk=1,Object.defineProperty(wk,"__esModule",{value:!0}),wk.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 wk.default=e,wk}function Sk(){if(_k)return Zw;_k=1;var e=Bm();Object.defineProperty(Zw,"__esModule",{value:!0}),Zw.default=function(e){var m=e.primary,v=void 0===m?{light:a.default[300],main:a.default[500],dark:a.default[700]}:m,b=e.secondary,y=void 0===b?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:b,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,L=void 0===A?"light":A,R=e.contrastThreshold,M=void 0===R?3:R,N=e.tonalOffset,O=void 0===N?.2:N,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)>=M?h.text.primary:p.text.primary}var z=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 g(e,"light",o,O),g(e,"dark",i,O),e.contrastText||(e.contrastText=I(e.main)),e},D={dark:h,light:p};return(0,r.deepmerge)((0,t.default)({common:o.default,type:L,primary:z(v),secondary:z(y,"A400","A200","A700"),error:z(_),warning:z(k),info:z(C),success:z(T),grey:i.default,contrastThreshold:M,getContrastText:I,augmentColor:z,tonalOffset:O},D[L]),P)},Zw.dark=Zw.light=void 0;var t=e(vv()),n=e(Kw()),r=Mw,o=e(tk()),i=e(ok()),a=e(sk()),s=e(ck()),l=e(pk()),u=e(mk()),c=e(yk()),d=e(kk()),f=Nw(),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}};Zw.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 g(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 Zw.dark=h,Zw}var Ck,Ek={};function Tk(){if(Ck)return Ek;Ck=1;var e=Bm();Object.defineProperty(Ek,"__esModule",{value:!0}),Ek.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,g=void 0===h?300:h,m=u.fontWeightRegular,v=void 0===m?400:m,b=u.fontWeightMedium,y=void 0===b?500:b,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")},L=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)},R={h1:L(g,96,1.167,-1.5),h2:L(g,60,1.2,-.5),h3:L(v,48,1.167,0),h4:L(v,34,1.235,.25),h5:L(v,24,1.334,0),h6:L(y,20,1.6,.15),subtitle1:L(v,16,1.75,.15),subtitle2:L(y,14,1.57,.1),body1:L(v,16,1.5,.15),body2:L(v,14,1.43,.15),button:L(y,14,1.75,.4,a),caption:L(v,12,1.66,.4),overline:L(v,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:k,pxToRem:A,round:i,fontFamily:d,fontSize:p,fontWeightLight:g,fontWeightRegular:v,fontWeightMedium:y,fontWeightBold:_},R),E,{clone:!1})};var t=e(vv()),n=e(Kw()),r=Mw;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 Ek}var Ak,Lk={};function Rk(){if(Ak)return Lk;Ak=1,Object.defineProperty(Lk,"__esModule",{value:!0}),Lk.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 Lk.default=t,Lk}var Mk,Nk={};function Ok(){if(Mk)return Nk;Mk=1,Object.defineProperty(Nk,"__esModule",{value:!0}),Nk.default=void 0;var e={borderRadius:4};return Nk.default=e,Nk}var Pk={};function Ik(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 zk(e,t){if(e){if("string"==typeof e)return Ik(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)?Ik(e,t):void 0}}function Dk(e){return function(e){if(Array.isArray(e))return Ik(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zk(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 jk(e,t){return t?mw(e,t,{clone:!1}):e}var Fk={xs:0,sm:600,md:960,lg:1280,xl:1920},Bk={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Fk[e],"px)")}};function Hk(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||Bk;return t.reduce(function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e},{})}if("object"===Am(t)){var o=e.theme.breakpoints||Bk;return Object.keys(t).reduce(function(e,r){return e[o.up(r)]=n(t[r]),e},{})}return n(t)}function Wk(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function $k(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=Wk(e.theme,o)||{};return Hk(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Wk(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=Lm(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 Uk(){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?jk(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function Kk(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Gk=$k({prop:"border",themeKey:"borders",transform:Kk}),Vk=$k({prop:"borderTop",themeKey:"borders",transform:Kk}),Yk=$k({prop:"borderRight",themeKey:"borders",transform:Kk}),qk=$k({prop:"borderBottom",themeKey:"borders",transform:Kk}),Qk=$k({prop:"borderLeft",themeKey:"borders",transform:Kk}),Jk=$k({prop:"borderColor",themeKey:"palette"}),Xk=$k({prop:"borderRadius",themeKey:"shape"}),Zk=Uk(Gk,Vk,Yk,qk,Qk,Jk,Xk);function eS(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function tS(e){var t=function(t){var n=e(t);return t.css?xd({},jk(n,e(xd({theme:t.theme},t.css))),eS(t.css,[e.filterProps])):t.sx?xd({},jk(n,e(xd({theme:t.theme},t.sx))),eS(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(Dk(e.filterProps)),t}var nS=Uk($k({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),$k({prop:"display"}),$k({prop:"overflow"}),$k({prop:"textOverflow"}),$k({prop:"visibility"}),$k({prop:"whiteSpace"})),rS=$k({prop:"flexBasis"}),oS=$k({prop:"flexDirection"}),iS=$k({prop:"flexWrap"}),aS=$k({prop:"justifyContent"}),sS=$k({prop:"alignItems"}),lS=$k({prop:"alignContent"}),uS=$k({prop:"order"}),cS=$k({prop:"flex"}),dS=$k({prop:"flexGrow"}),fS=$k({prop:"flexShrink"}),pS=$k({prop:"alignSelf"}),hS=$k({prop:"justifyItems"}),gS=$k({prop:"justifySelf"}),mS=Uk(rS,oS,iS,aS,sS,lS,uS,cS,dS,fS,pS,hS,gS),vS=$k({prop:"gridGap"}),bS=$k({prop:"gridColumnGap"}),yS=$k({prop:"gridRowGap"}),xS=$k({prop:"gridColumn"}),_S=$k({prop:"gridRow"}),wS=$k({prop:"gridAutoFlow"}),kS=$k({prop:"gridAutoColumns"}),SS=$k({prop:"gridAutoRows"}),CS=$k({prop:"gridTemplateColumns"}),ES=$k({prop:"gridTemplateRows"}),TS=$k({prop:"gridTemplateAreas"}),AS=$k({prop:"gridArea"}),LS=Uk(vS,bS,yS,xS,_S,wS,kS,SS,CS,ES,TS,AS),RS=$k({prop:"color",themeKey:"palette"}),MS=$k({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),NS=Uk(RS,MS),OS=$k({prop:"position"}),PS=$k({prop:"zIndex",themeKey:"zIndex"}),IS=$k({prop:"top"}),zS=$k({prop:"right"}),DS=$k({prop:"bottom"}),jS=$k({prop:"left"}),FS=Uk(OS,PS,IS,zS,DS,jS),BS=$k({prop:"boxShadow",themeKey:"shadows"});function HS(e){return e<=1?"".concat(100*e,"%"):e}var WS=$k({prop:"width",transform:HS}),$S=$k({prop:"maxWidth",transform:HS}),US=$k({prop:"minWidth",transform:HS}),KS=$k({prop:"height",transform:HS}),GS=$k({prop:"maxHeight",transform:HS}),VS=$k({prop:"minHeight",transform:HS}),YS=$k({prop:"size",cssProperty:"width",transform:HS}),qS=$k({prop:"size",cssProperty:"height",transform:HS}),QS=$k({prop:"boxSizing"}),JS=Uk(WS,$S,US,KS,GS,VS,QS);function XS(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)||zk(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 ZS={m:"margin",p:"padding"},eC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},tC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},nC=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(!tC[e])return[e];e=tC[e]}var t=XS(e.split(""),2),n=t[0],r=t[1],o=ZS[n],i=eC[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),rC=["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 oC(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 iC(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 aC(e){var t=oC(e.theme);return Object.keys(e).map(function(n){if(-1===rC.indexOf(n))return null;var r=iC(nC(n),t),o=e[n];return Hk(e,o,r)}).reduce(jk,{})}aC.propTypes={},aC.filterProps=rC;var sC,lC=$k({prop:"fontFamily",themeKey:"typography"}),uC=$k({prop:"fontSize",themeKey:"typography"}),cC=$k({prop:"fontStyle",themeKey:"typography"}),dC=$k({prop:"fontWeight",themeKey:"typography"}),fC=$k({prop:"letterSpacing"}),pC=$k({prop:"lineHeight"}),hC=$k({prop:"textAlign"}),gC=Uk(lC,uC,cC,dC,fC,pC,hC),mC=Object.freeze({__proto__:null,alignContent:lS,alignItems:sS,alignSelf:pS,bgcolor:MS,border:Gk,borderBottom:qk,borderColor:Jk,borderLeft:Qk,borderRadius:Xk,borderRight:Yk,borderTop:Vk,borders:Zk,bottom:DS,boxSizing:QS,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||Bk,o=r.keys.reduce(function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(xd({theme:t.theme},t[o]))),n},null);return jk(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Dk(e.filterProps)),t},color:RS,compose:Uk,createUnarySpacing:oC,css:function(e){return tS(e)},display:nS,flex:cS,flexBasis:rS,flexDirection:oS,flexGrow:dS,flexShrink:fS,flexWrap:iS,flexbox:mS,fontFamily:lC,fontSize:uC,fontStyle:cC,fontWeight:dC,grid:LS,gridArea:AS,gridAutoColumns:kS,gridAutoFlow:wS,gridAutoRows:SS,gridColumn:xS,gridColumnGap:bS,gridGap:vS,gridRow:_S,gridRowGap:yS,gridTemplateAreas:TS,gridTemplateColumns:CS,gridTemplateRows:ES,height:KS,justifyContent:aS,justifyItems:hS,justifySelf:gS,left:jS,letterSpacing:fC,lineHeight:pC,maxHeight:GS,maxWidth:$S,minHeight:VS,minWidth:US,order:uS,palette:NS,position:OS,positions:FS,right:zS,shadows:BS,sizeHeight:qS,sizeWidth:YS,sizing:JS,spacing:aC,style:$k,styleFunctionSx:tS,textAlign:hC,top:IS,typography:gC,width:WS,zIndex:PS}),vC=i(mC);function bC(){if(sC)return Pk;sC=1,Object.defineProperty(Pk,"__esModule",{value:!0}),Pk.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=vC;return Pk}var yC,xC={};function _C(){if(yC)return xC;yC=1;var e=Bm();Object.defineProperty(xC,"__esModule",{value:!0}),xC.default=xC.duration=xC.easing=void 0;var t=e(Kw()),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)"};xC.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")}xC.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 xC.default=i,xC}var wC,kC,SC={};function CC(){if(wC)return SC;wC=1,Object.defineProperty(SC,"__esModule",{value:!0}),SC.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return SC.default=e,SC}function EC(){if(kC)return zw;kC=1;var e=Bm();Object.defineProperty(zw,"__esModule",{value:!0}),zw.createMuiTheme=function(){return f.apply(void 0,arguments)},zw.default=void 0,e(Ww());var t=e(Kw()),n=Mw,r=e(Yw()),o=e(Jw()),i=e(Sk()),a=e(Tk()),s=e(Rk()),l=e(Ok()),u=e(bC()),c=e(_C()),d=e(CC());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,g=void 0===h?{}:h,m=e.palette,v=void 0===m?{}:m,b=e.spacing,y=e.typography,x=void 0===y?{}:y,_=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),k=(0,r.default)(p),S=(0,u.default)(b),C=(0,n.deepmerge)({breakpoints:k,direction:"ltr",mixins:(0,o.default)(k,S,g),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 zw.default=p,zw}var TC,AC={};function LC(){if(TC)return AC;TC=1;var e=Bm();Object.defineProperty(AC,"__esModule",{value:!0}),AC.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=Mw,n=e(EC());return AC}var RC={},MC="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",NC=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function OC(){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!==NC.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[MC]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function PC(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 IC="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},zC="object"===("undefined"==typeof window?"undefined":IC(window))&&"object"===("undefined"==typeof document?"undefined":IC(document))&&9===document.nodeType;function DC(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,Lm(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var jC={}.constructor;function FC(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(FC);if(e.constructor!==jC)return e;var t={};for(var n in e)t[n]=FC(e[n]);return t}function BC(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=FC(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var HC=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},WC=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+=HC(e[n]," ");else t=HC(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function $C(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function UC(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function KC(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=$C(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+=UC(f+":"+u+WC(p)+";",i))}}else for(var h in a){var g=a[h];null!=g&&(r&&(r+=l),r+=UC(h+":"+u+WC(g)+";",i))}for(var m in t){var v=t[m];null!=v&&"fallbacks"!==m&&(r&&(r+=l),r+=UC(m+":"+u+WC(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),UC(""+e+u+"{"+r,--i)+UC("}",i)):r}var GC=/([[\].#*$><+~=|^:(),"'`\s])/g,VC="undefined"!=typeof CSS&&CSS.escape,YC=function(e){return VC?VC(e):e.replace(GC,"\\$1")},qC=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}(),QC=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(Yv(Yv(o)),s),o.selectorText="."+YC(o.id)),o}zv(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]=WC(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?xd({},e,{allowEmpty:!0}):e;return KC(this.selectorText,this.style,n)},DC(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}(qC),JC={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new QC(e,t,n)}},XC={indent:1,children:!0},ZC=/@([\w-]+)/,eE=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(ZC);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new SE(xd({},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=XC);var t=$C(e).linebreak;if(null==e.indent&&(e.indent=XC.indent),null==e.children&&(e.children=XC.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),tE=/@container|@media|@supports\s+/,nE={onCreateRule:function(e,t,n){return tE.test(e)?new eE(e,t,n):null}},rE={indent:1,children:!0},oE=/@keyframes\s+([\w-]+)/,iE=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(oE);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:YC(a(this,i)),this.rules=new SE(xd({},n,{parent:this})),t)this.rules.add(s,t[s],xd({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=rE);var t=$C(e).linebreak;if(null==e.indent&&(e.indent=rE.indent),null==e.children&&(e.children=rE.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}(),aE=/@keyframes\s+/,sE=/\$([\w-]+)/g,lE=function(e,t){return"string"==typeof e?e.replace(sE,function(e,n){return n in t?t[n]:e}):e},uE=function(e,t,n){var r=e[t],o=lE(r,n);o!==r&&(e[t]=o)},cE={onCreateRule:function(e,t,n){return"string"==typeof e&&aE.test(e)?new iE(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&uE(e,"animation-name",n.keyframes),"animation"in e&&uE(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 lE(e,r.keyframes);default:return e}}},dE=function(e){function t(){return e.apply(this,arguments)||this}return zv(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?xd({},e,{allowEmpty:!0}):e;return KC(this.key,this.style,n)},t}(qC),fE={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new dE(e,t,n):null}},pE=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=$C(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=KC(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return KC(this.at,this.style,e)},e}(),hE=/@font-face/,gE={onCreateRule:function(e,t,n){return hE.test(e)?new pE(e,t,n):null}},mE=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 KC(this.key,this.style,e)},e}(),vE={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new mE(e,t,n):null}},bE=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}(),yE={"@charset":!0,"@import":!0,"@namespace":!0},xE={onCreateRule:function(e,t,n){return e in yE?new bE(e,t,n):null}},_E=[JC,nE,cE,fE,gE,vE,xE],wE={process:!0},kE={force:!0,process:!0},SE=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=xd({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="."+YC(this.classes[d]));var f=BC(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=xd({},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 QC?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof iE&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof QC?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof iE&&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=wE);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,kE)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,kE)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=$C(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}(),CE=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=xd({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new SE(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}(),EE=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}(),TE=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=_d(t,["attached"]),o=$C(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},DC(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),AE=new TE,LE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),RE="2f1acc6c3a606b082e5eef5e54414ffb";null==LE[RE]&&(LE[RE]=0);var ME=LE[RE]++,NE=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")+ME+o+t:i+n.key+"-"+ME+(o?"-"+o:"")+"-"+t}},OE=function(e){var t;return function(){return t||(t=e()),t}},PE=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},IE=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=WC(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},zE=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},DE=function(e,t){return e.selectorText=t,e.selectorText===t},jE=OE(function(){return document.querySelector("head")});function FE(e){var t=AE.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=jE(),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 BE=OE(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),HE=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]},WE=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},$E=function(){function e(e){this.getPropertyValue=PE,this.setProperty=IE,this.removeProperty=zE,this.setSelector=DE,this.hasInsertedRules=!1,this.cssRules=[],e&&AE.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=BE();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=FE(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 jE().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=WE(n,t);if(!1===(o=HE(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=WE(n,t),l=HE(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 CE&&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}(),UE=0,KE=function(){function e(e){this.id=UE++,this.version="10.10.0",this.plugins=new EE,this.options={id:{minify:!1},createGenerateId:NE,Renderer:zC?$E:null,plugins:[]},this.generateId=NE({minify:!1});for(var t=0;t<_E.length;t++)this.plugins.use(_E[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=xd({},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===AE.index?0:AE.index+1);var r=new CE(e,xd({},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(),AE.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=xd({},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=BC(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}(),GE=function(e){return new KE(e)},VE="object"==typeof CSS&&null!=CSS&&"number"in CSS;function YE(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=YE(r);i&&(t||(t={}),t[n]=i)}}return t}
96
+ `),mb.rippleVisible,kb,550,({theme:e})=>e.transitions.easing.easeInOut,mb.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,mb.child,mb.childLeaving,Sb,550,({theme:e})=>e.transitions.easing.easeInOut,mb.childPulsate,Cb,({theme:e})=>e.transitions.easing.easeInOut),Ab=E.forwardRef(function(e,t){const n=Kv({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Nd(n,vb),[s,l]=E.useState([]),u=E.useRef(0),c=E.useRef(null);E.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=E.useRef(!1),f=um(),p=E.useRef(null),h=E.useRef(null),g=E.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,Qu.jsx(Tb,{classes:{ripple:vg(o.ripple,mb.ripple),rippleVisible:vg(o.rippleVisible,mb.rippleVisible),ripplePulsate:vg(o.ripplePulsate,mb.ripplePulsate),child:vg(o.child,mb.child),childLeaving:vg(o.childLeaving,mb.childLeaving),childPulsate:vg(o.childPulsate,mb.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)]),u.current+=1,c.current=a},[o]),m=E.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,m;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)m=Math.sqrt((2*l.width**2+l.height**2)/3),m%2==0&&(m+=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;m=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:m,cb:n})},[r,g,f]),v=E.useCallback(()=>{m({},{pulsate:!0})},[m]),b=E.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,l(e=>e.length>0?e.slice(1):e),c.current=t},[f]);return E.useImperativeHandle(t,()=>({pulsate:v,start:m,stop:b}),[v,m,b]),Qu.jsx(Eb,Md({className:vg(mb.root,o.root,i),ref:h},a,{children:Qu.jsx(cb,{component:null,exit:!0,children:s})}))});function Lb(e){return xg("MuiButtonBase",e)}const Rb=_g("MuiButtonBase",["root","disabled","focusVisible"]),Mb=["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"],Nb=Hv("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"},[`&.${Rb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ob=E.forwardRef(function(e,t){const n=Kv({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:g,onDragLeave:m,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:_,onMouseLeave:w,onMouseUp:k,onTouchEnd:S,onTouchMove:C,onTouchStart:T,tabIndex:A=0,TouchRippleProps:L,touchRippleRef:R,type:M}=n,N=Nd(n,Mb),O=E.useRef(null),P=E.useRef(null),I=im(P,R),{isFocusVisibleRef:z,onFocus:D,onBlur:j,ref:F}=bm(),[B,H]=E.useState(!1);l&&B&&H(!1),E.useImperativeHandle(r,()=>({focusVisible:()=>{H(!0),O.current.focus()}}),[]);const[W,$]=E.useState(!1);E.useEffect(()=>{$(!0)},[]);const U=W&&!u&&!l;function K(e,t,n=c){return om(r=>{t&&t(r);return!n&&P.current&&P.current[e](r),!0})}E.useEffect(()=>{B&&d&&!u&&W&&P.current.pulsate()},[u,d,B,W]);const G=K("start",_),V=K("stop",g),Y=K("stop",m),q=K("stop",k),Q=K("stop",e=>{B&&e.preventDefault(),w&&w(e)}),J=K("start",T),X=K("stop",S),Z=K("stop",C),ee=K("stop",e=>{j(e),!1===z.current&&H(!1),p&&p(e)},!1),te=om(e=>{O.current||(O.current=e.currentTarget),D(e),!0===z.current&&(H(!0),b&&b(e)),v&&v(e)}),ne=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=E.useRef(!1),oe=om(e=>{d&&!re.current&&B&&P.current&&" "===e.key&&(re.current=!0,P.current.stop(e,()=>{P.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=om(e=>{d&&" "===e.key&&P.current&&B&&!e.defaultPrevented&&(re.current=!1,P.current.stop(e,()=>{P.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===M?"button":M,se.disabled=l):(N.href||N.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=im(t,F,O),ue=Md({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:B}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ym({root:["root",t&&"disabled",n&&"focusVisible"]},Lb,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Qu.jsxs(Nb,Md({as:ae,className:vg(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:V,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:Q,onMouseUp:q,onDragLeave:Y,onTouchEnd:X,onTouchMove:Z,onTouchStart:J,ref:le,tabIndex:l?-1:A,type:M},se,N,{children:[i,U?Qu.jsx(Ab,Md({ref:I,center:o},L)):null]}))});function Pb(e){return xg("MuiIconButton",e)}const Ib=_g("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),zb=["edge","children","className","color","disabled","disableFocusRipple","size"],Db=Hv(Ob,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${lh(n.color)}`],n.edge&&t[`edge${lh(n.edge)}`],t[`size${lh(n.size)}`]]}})(({theme:e,ownerState:t})=>Md({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})`:nv.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 Md({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Md({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Md({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nv.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)},{[`&.${Ib.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),jb=E.forwardRef(function(e,t){const n=Kv({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=Nd(n,zb),d=Md({},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 ym({root:["root",n&&"disabled","default"!==r&&`color${lh(r)}`,o&&`edge${lh(o)}`,`size${lh(i)}`]},Pb,t)})(d);return Qu.jsx(Db,Md({className:vg(f.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function Fb(e){return xg("MuiTypography",e)}_g("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Bb=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Hb=Hv("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${lh(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Md({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})),Wb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},$b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ub=E.forwardRef(function(e,t){const n=Kv({props:e,name:"MuiTypography"}),r=(e=>$b[e]||e)(n.color),o=fg(Md({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=Wb}=o,p=Nd(o,Bb),h=Md({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:f}),g=s||(c?"p":f[d]||Wb[d])||"span",m=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return ym({root:["root",i,"inherit"!==e.align&&`align${lh(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Fb,a)})(h);return Qu.jsx(Hb,Md({as:g,ref:t,ownerState:h,className:vg(m.root,a)},p))});var Kb,Gb={};function Vb(){if(Kb)return Gb;Kb=1,Object.defineProperty(Gb,"__esModule",{value:!0}),Gb.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}(h()),t=Ov;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 Gb.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},Gb}var Yb=o(Vb()),qb="top",Qb="bottom",Jb="right",Xb="left",Zb="auto",ey=[qb,Qb,Jb,Xb],ty="start",ny="end",ry="viewport",oy="popper",iy=ey.reduce(function(e,t){return e.concat([t+"-"+ty,t+"-"+ny])},[]),ay=[].concat(ey,[Zb]).reduce(function(e,t){return e.concat([t,t+"-"+ty,t+"-"+ny])},[]),sy=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ly(e){return e?(e.nodeName||"").toLowerCase():null}function uy(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cy(e){return e instanceof uy(e).Element||e instanceof Element}function dy(e){return e instanceof uy(e).HTMLElement||e instanceof HTMLElement}function fy(e){return"undefined"!=typeof ShadowRoot&&(e instanceof uy(e).ShadowRoot||e instanceof ShadowRoot)}var py={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];dy(o)&&ly(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},{});dy(r)&&ly(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function hy(e){return e.split("-")[0]}var gy=Math.max,my=Math.min,vy=Math.round;function by(){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 yy(){return!/^((?!chrome|android).)*safari/i.test(by())}function xy(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&dy(e)&&(o=e.offsetWidth>0&&vy(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&vy(r.height)/e.offsetHeight||1);var a=(cy(e)?uy(e):window).visualViewport,s=!yy()&&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 _y(e){var t=xy(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 wy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&fy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ky(e){return uy(e).getComputedStyle(e)}function Sy(e){return["table","td","th"].indexOf(ly(e))>=0}function Cy(e){return((cy(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ey(e){return"html"===ly(e)?e:e.assignedSlot||e.parentNode||(fy(e)?e.host:null)||Cy(e)}function Ty(e){return dy(e)&&"fixed"!==ky(e).position?e.offsetParent:null}function Ay(e){for(var t=uy(e),n=Ty(e);n&&Sy(n)&&"static"===ky(n).position;)n=Ty(n);return n&&("html"===ly(n)||"body"===ly(n)&&"static"===ky(n).position)?t:n||function(e){var t=/firefox/i.test(by());if(/Trident/i.test(by())&&dy(e)&&"fixed"===ky(e).position)return null;var n=Ey(e);for(fy(n)&&(n=n.host);dy(n)&&["html","body"].indexOf(ly(n))<0;){var r=ky(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 Ly(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ry(e,t,n){return gy(e,my(t,n))}function My(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ny(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Oy={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=hy(n.placement),l=Ly(s),u=[Xb,Jb].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return My("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ny(e,ey))}(o.padding,n),d=_y(i),f="y"===l?qb:Xb,p="y"===l?Qb:Jb,h=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],g=a[l]-n.rects.reference[l],m=Ay(i),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=h/2-g/2,y=c[f],x=v-d[u]-c[p],_=v/2-d[u]/2+b,w=Ry(y,_,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)))&&wy(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Py(e){return e.split("-")[1]}var Iy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zy(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,g=void 0===h?0:h,m="function"==typeof c?c({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Xb,x=qb,_=window;if(u){var w=Ay(n),k="clientHeight",S="clientWidth";if(w===uy(n)&&"static"!==ky(w=Cy(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),o===qb||(o===Xb||o===Jb)&&i===ny)x=Qb,g-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[k])-r.height,g*=l?1:-1;if(o===Xb||(o===qb||o===Qb)&&i===ny)y=Jb,p-=(d&&w===_&&_.visualViewport?_.visualViewport.width:w[S])-r.width,p*=l?1:-1}var C,E=Object.assign({position:s},u&&Iy),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:vy(n*o)/o||0,y:vy(r*o)/o||0}}({x:p,y:g},uy(n)):{x:p,y:g};return p=T.x,g=T.y,l?Object.assign({},E,((C={})[x]=b?"0":"",C[y]=v?"0":"",C.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",C)):Object.assign({},E,((t={})[x]=b?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var Dy={passive:!0};var jy={left:"right",right:"left",bottom:"top",top:"bottom"};function Fy(e){return e.replace(/left|right|bottom|top/g,function(e){return jy[e]})}var By={start:"end",end:"start"};function Hy(e){return e.replace(/start|end/g,function(e){return By[e]})}function Wy(e){var t=uy(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function $y(e){return xy(Cy(e)).left+Wy(e).scrollLeft}function Uy(e){var t=ky(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ky(e){return["html","body","#document"].indexOf(ly(e))>=0?e.ownerDocument.body:dy(e)&&Uy(e)?e:Ky(Ey(e))}function Gy(e,t){var n;void 0===t&&(t=[]);var r=Ky(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=uy(r),a=o?[i].concat(i.visualViewport||[],Uy(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Gy(Ey(a)))}function Vy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yy(e,t,n){return t===ry?Vy(function(e,t){var n=uy(e),r=Cy(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=yy();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+$y(e),y:l}}(e,n)):cy(t)?function(e,t){var n=xy(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):Vy(function(e){var t,n=Cy(e),r=Wy(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=gy(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=gy(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+$y(e),l=-r.scrollTop;return"rtl"===ky(o||n).direction&&(s+=gy(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Cy(e)))}function qy(e,t,n,r){var o="clippingParents"===t?function(e){var t=Gy(Ey(e)),n=["absolute","fixed"].indexOf(ky(e).position)>=0&&dy(e)?Ay(e):e;return cy(n)?t.filter(function(e){return cy(e)&&wy(e,n)&&"body"!==ly(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(t,n){var o=Yy(e,n,r);return t.top=gy(o.top,t.top),t.right=my(o.right,t.right),t.bottom=my(o.bottom,t.bottom),t.left=gy(o.left,t.left),t},Yy(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 Qy(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?hy(o):null,a=o?Py(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case qb:t={x:s,y:n.y-r.height};break;case Qb:t={x:s,y:n.y+n.height};break;case Jb:t={x:n.x+n.width,y:l};break;case Xb:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?Ly(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case ty:t[u]=t[u]-(n[c]/2-r[c]/2);break;case ny:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function Jy(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?ry:u,d=n.elementContext,f=void 0===d?oy:d,p=n.altBoundary,h=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,v=My("number"!=typeof m?m:Ny(m,ey)),b=f===oy?"reference":oy,y=e.rects.popper,x=e.elements[h?b:f],_=qy(cy(x)?x:x.contextElement||Cy(e.elements.popper),l,c,a),w=xy(e.elements.reference),k=Qy({reference:w,element:y,placement:o}),S=Vy(Object.assign({},y,k)),C=f===oy?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===oy&&T){var A=T[o];Object.keys(E).forEach(function(e){var t=[Jb,Qb].indexOf(e)>=0?1:-1,n=[qb,Qb].indexOf(e)>=0?"y":"x";E[e]+=A[n]*t})}return E}function Xy(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?ay:l,c=Py(r),d=c?s?iy:iy.filter(function(e){return Py(e)===c}):ey,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]=Jy(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[hy(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}var Zy={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,g=n.allowedAutoPlacements,m=t.options.placement,v=hy(m),b=l||(v===m||!h?[Fy(m)]:function(e){if(hy(e)===Zb)return[];var t=Fy(e);return[Hy(e),t,Hy(t)]}(m)),y=[m].concat(b).reduce(function(e,n){return e.concat(hy(n)===Zb?Xy(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):n)},[]),x=t.rects.reference,_=t.rects.popper,w=new Map,k=!0,S=y[0],C=0;C<y.length;C++){var E=y[C],T=hy(E),A=Py(E)===ty,L=[qb,Qb].indexOf(T)>=0,R=L?"width":"height",M=Jy(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),N=L?A?Jb:Xb:A?Qb:qb;x[R]>_[R]&&(N=Fy(N));var O=Fy(N),P=[];if(i&&P.push(M[T]<=0),s&&P.push(M[N]<=0,M[O]<=0),P.every(function(e){return e})){S=E,k=!1;break}w.set(E,P)}if(k)for(var I=function(e){var t=y.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"},z=h?3:1;z>0;z--){if("break"===I(z))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ex(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 tx(e){return[qb,Jb,Qb,Xb].some(function(t){return e[t]>=0})}var nx={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=ay.reduce(function(e,n){return e[n]=function(e,t,n){var r=hy(e),o=[Xb,qb].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,[Xb,Jb].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 rx={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,g=void 0===h?0:h,m=Jy(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=hy(t.placement),b=Py(t.placement),y=!b,x=Ly(v),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,C="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,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 L,R="y"===x?qb:Xb,M="y"===x?Qb:Jb,N="y"===x?"height":"width",O=w[x],P=O+m[R],I=O-m[M],z=p?-S[N]/2:0,D=b===ty?k[N]:S[N],j=b===ty?-S[N]:-k[N],F=t.elements.arrow,B=p&&F?_y(F):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=H[R],$=H[M],U=Ry(0,k[N],B[N]),K=y?k[N]/2-z-U-W-E.mainAxis:D-U-W-E.mainAxis,G=y?-k[N]/2+z+U+$+E.mainAxis:j+U+$+E.mainAxis,V=t.elements.arrow&&Ay(t.elements.arrow),Y=V?"y"===x?V.clientTop||0:V.clientLeft||0:0,q=null!=(L=null==T?void 0:T[x])?L:0,Q=O+G-q,J=Ry(p?my(P,O+K-q-Y):P,O,p?gy(I,Q):I);w[x]=J,A[x]=J-O}if(s){var X,Z="x"===x?qb:Xb,ee="x"===x?Qb:Jb,te=w[_],ne="y"===_?"height":"width",re=te+m[Z],oe=te-m[ee],ie=-1!==[qb,Xb].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=Ry(e,t,n);return r>n?n:r}(se,te,le):Ry(p?se:re,te,p?le:oe);w[_]=ue,A[_]=ue-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function ox(e,t,n){void 0===n&&(n=!1);var r=dy(t),o=dy(t)&&function(e){var t=e.getBoundingClientRect(),n=vy(t.width)/e.offsetWidth||1,r=vy(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Cy(t),a=xy(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==ly(t)||Uy(i))&&(s=function(e){return e!==uy(e)&&dy(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Wy(e);var t}(t)),dy(t)?((l=xy(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=$y(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ix(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 ax(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var sx={placement:"bottom",modifiers:[],strategy:"absolute"};function lx(){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 ux(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?sx:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},sx,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:cy(e)?Gy(e):e.contextElement?Gy(e.contextElement):[],popper:Gy(t)};var c,d,f=function(e){var t=ix(e);return sy.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(lx(t,n)){o.rects={reference:ox(t,Ay(n),"fixed"===o.options.strategy),popper:_y(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:ax(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){u(),s=!0}};if(!lx(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 cx=ux({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=uy(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",n.update,Dy)}),s&&l.addEventListener("resize",n.update,Dy),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",n.update,Dy)}),s&&l.removeEventListener("resize",n.update,Dy)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Qy({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:hy(t.placement),variation:Py(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,zy(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,zy(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:{}},py,nx,Zy,rx,Oy,{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=Jy(t,{elementContext:"reference"}),s=Jy(t,{altBoundary:!0}),l=ex(a,r),u=ex(s,o,i),c=tx(l),d=tx(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 dx=E.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=E.useState(null),s=im(E.isValidElement(n)?Cm(n):null,t);if(Vg(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Vg(()=>{if(i&&!o)return em(t,i),()=>{em(t,null)}},[t,i,o]),o){if(E.isValidElement(n)){const e={ref:s};return E.cloneElement(n,e)}return Qu.jsx(E.Fragment,{children:n})}return Qu.jsx(E.Fragment,{children:i?Yv.createPortal(n,i):i})});function fx(e){return xg("MuiPopper",e)}_g("MuiPopper",["root"]);const px=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],hx=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function gx(e){return"function"==typeof e?e():e}const mx={},vx=E.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,g=Nd(e,px),m=E.useRef(null),v=im(m,t),b=E.useRef(null),y=im(b,d),x=E.useRef(y);Vg(()=>{x.current=y},[y]),E.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),[w,k]=E.useState(_),[S,C]=E.useState(gx(r));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{r&&C(gx(r))},[r]),Vg(()=>{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=cx(S,m.current,Md({placement:_},c,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}},[S,a,s,l,c,_]);const T={placement:w};null!==h&&(T.TransitionProps=h);const A=(e=>{const{classes:t}=e;return ym({root:["root"]},fx,t)})(e),L=null!=(n=p.root)?n:"div",R=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Nd(e,Sm),s=i?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(r,o),{props:l,internalRef:u}=km(Md({},a,{externalSlotProps:s}));return _m(n,Md({},l,{ref:im(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:L,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:A.root});return Qu.jsx(L,Md({},R,{children:"function"==typeof o?o(T):o}))}),bx=E.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=mx,popperRef:f,style:p,transition:h=!1,slotProps:g={},slots:m={}}=e,v=Nd(e,hx),[b,y]=E.useState(!0);if(!s&&!u&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=gx(n);x=e&&void 0!==e.nodeType?Xg(e).body:Xg(null).body}const _=u||!s||h&&!b?void 0:"none",w=h?{in:u,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return Qu.jsx(dx,{disablePortal:a,container:x,children:Qu.jsx(vx,Md({anchorEl:n,direction:i,disablePortal:a,modifiers:l,ref:t,open:h?!b:u,placement:c,popperOptions:d,popperRef:f,slotProps:g,slots:m},v,{style:Md({position:"fixed",top:0,left:0,display:_},p),TransitionProps:w,children:r}))})}),yx=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],xx=Hv(bx,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_x=E.forwardRef(function(e,t){var n;const r=Yb(),o=Kv({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:g,popperRef:m,transition:v,slots:b,slotProps:y}=o,x=Nd(o,yx),_=null!=(n=null==b?void 0:b.root)?n:null==s?void 0:s.Root,w=Md({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:g,popperRef:m,transition:v},x);return Qu.jsx(xx,Md({as:a,direction:null==r?void 0:r.direction,slots:{root:_},slotProps:null!=y?y:l},w,{ref:t}))}),wx=["onChange","maxRows","minRows","style","value"];function kx(e){return parseInt(e,10)||0}const Sx={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Cx(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Ex=E.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=Nd(e,wx),{current:l}=E.useRef(null!=a),u=E.useRef(null),c=im(t,u),d=E.useRef(null),f=E.useRef(null),p=E.useCallback(()=>{const t=u.current,n=f.current;if(!t||!n)return;const i=Zg(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=kx(i.paddingBottom)+kx(i.paddingTop),l=kx(i.borderBottomWidth)+kx(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=om(()=>{const e=u.current,t=p();if(!e||!t||Cx(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),g=E.useCallback(()=>{const e=u.current,t=p();if(!e||!t||Cx(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[p]),m=E.useRef(-1);Vg(()=>{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}(g),t=null==u?void 0:u.current;if(!t)return;const n=Zg(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(m.current),g(),m.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(m.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[p,g,h]),Vg(()=>{g()});return Qu.jsxs(E.Fragment,{children:[Qu.jsx("textarea",Md({value:a,onChange:e=>{l||g(),n&&n(e)},ref:c,rows:o,style:i},s)),Qu.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:Md({},Sx,i,{paddingTop:0,paddingBottom:0})})]})});const Tx=E.createContext(void 0);function Ax(e){return Qu.jsx(cg,Md({},e,{defaultTheme:kv,themeId:Rd}))}function Lx(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Rx(e){return xg("MuiInputBase",e)}const Mx=_g("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Nx=["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"],Ox=Hv("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${lh(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>Md({},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",[`&.${Mx.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Md({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Px=Hv("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=Md({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 Md({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] + .${Mx.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},[`&.${Mx.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"})}),Ix=Qu.jsx(Ax,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),zx=E.forwardRef(function(e,t){var n;const r=Kv({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:g,inputComponent:m="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:_=!1,name:w,onBlur:k,onChange:S,onClick:C,onFocus:T,onKeyDown:A,onKeyUp:L,placeholder:R,readOnly:M,renderSuffix:N,rows:O,slotProps:P={},slots:I={},startAdornment:z,type:D="text",value:j}=r,F=Nd(r,Nx),B=null!=v.value?v.value:j,{current:H}=E.useRef(null!=B),W=E.useRef(),$=E.useCallback(e=>{},[]),U=im(W,b,v.ref,$),[K,G]=E.useState(!1),V=E.useContext(Tx),Y=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:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=V?V.focused:K,E.useEffect(()=>{!V&&d&&K&&(G(!1),k&&k())},[V,d,K,k]);const q=V&&V.onFilled,Q=V&&V.onEmpty,J=E.useCallback(e=>{!function(e,t=!1){return e&&(Lx(e.value)&&""!==e.value||t&&Lx(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():q&&q()},[q,Q]);Vg(()=>{H&&J({value:B})},[B,J,H]);E.useEffect(()=>{J(W.current)},[]);let X=m,Z=v;_&&"input"===X&&(Z=Md(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Z),X=Ex);E.useEffect(()=>{V&&V.setAdornedStart(Boolean(z))},[V,z]);const ee=Md({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:p,error:Y.error,focused:Y.focused,formControl:V,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:_,size:Y.size,startAdornment:z,type:D}),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 ym({root:["root",`color${lh(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&`size${lh(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"]},Rx,t)})(ee),ne=I.root||l.Root||Ox,re=P.root||u.root||{},oe=I.input||l.Input||Px;return Z=Md({},Z,null!=(n=P.input)?n:u.input),Qu.jsxs(E.Fragment,{children:[!f&&Ix,Qu.jsxs(ne,Md({},re,!xm(ne)&&{ownerState:Md({},ee,re.ownerState)},{ref:t,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),C&&C(e)}},F,{className:vg(te.root,re.className,s,M&&"MuiInputBase-readOnly"),children:[z,Qu.jsx(Tx.Provider,{value:null,children:Qu.jsx(oe,Md({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:w,placeholder:R,readOnly:M,required:Y.required,rows:O,value:B,onKeyDown:A,onKeyUp:L,type:D},Z,!xm(oe)&&{as:X,ownerState:Md({},ee,Z.ownerState)},{ref:U,className:vg(te.input,Z.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||W.current;if(null==t)throw new Error(Ad(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),S&&S(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(T&&T(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),p,N?N(Md({},Y,{startAdornment:z})):null]}))]})}),Dx=_g("MuiBox",["root"]),jx=wv(),Fx=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=$p("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(tg);return E.forwardRef(function(e,a){const s=lg(n),l=fg(e),{className:u,component:c="div"}=l,d=Nd(l,bg);return Qu.jsx(i,Md({as:c,ref:a,className:vg(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:Rd,defaultTheme:jx,defaultClassName:Dx.root,generateClassName:gg.generate});function Bx(e){return xg("MuiButton",e)}const Hx=_g("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"]),Wx=E.createContext({}),$x=E.createContext(void 0),Ux=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Kx=e=>Md({},"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}}),Gx=Hv(Ob,{shouldForwardProp:e=>Bv(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${lh(n.color)}`],t[`size${lh(n.size)}`],t[`${n.variant}Size${lh(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 Md({},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":Md({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:nv.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})`:nv.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})`:nv.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":Md({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Hx.focusVisible}`]:Md({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Hx.disabled}`]:Md({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 ${nv.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"},[`&.${Hx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Hx.disabled}`]:{boxShadow:"none"}}),Vx=Hv("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${lh(n.size)}`]]}})(({ownerState:e})=>Md({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Kx(e))),Yx=Hv("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${lh(n.size)}`]]}})(({ownerState:e})=>Md({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Kx(e))),qx=E.forwardRef(function(e,t){const n=E.useContext(Wx),r=E.useContext($x),o=Kv({props:Kg(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:g="medium",startIcon:m,type:v,variant:b="text"}=o,y=Nd(o,Ux),x=Md({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:g,type:v,variant:b}),_=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Md({},a,ym({root:["root",i,`${i}${lh(t)}`,`size${lh(o)}`,`${i}Size${lh(o)}`,`color${lh(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${lh(o)}`],endIcon:["icon","endIcon",`iconSize${lh(o)}`]},Bx,a))})(x),w=m&&Qu.jsx(Vx,{className:_.startIcon,ownerState:x,children:m}),k=f&&Qu.jsx(Yx,{className:_.endIcon,ownerState:x,children:f}),S=r||"";return Qu.jsxs(Gx,Md({ownerState:x,className:vg(n.className,_.root,l,S),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:vg(_.focusVisible,p),ref:t,type:v},y,{classes:_,children:[w,i,k]}))});function Qx(e){return e.substring(2).toLowerCase()}function Jx(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=E.useRef(!1),s=E.useRef(null),l=E.useRef(!1),u=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=im(Cm(t),s),d=om(e=>{const t=u.current;u.current=!1;const r=Xg(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)),E.useEffect(()=>{if(!1!==i){const e=Qx(i),t=Xg(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)),E.useEffect(()=>{if(!1!==r){const e=Qx(r),t=Xg(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),Qu.jsx(E.Fragment,{children:E.cloneElement(t,p)})}function Xx(e){return xg("MuiDivider",e)}const Zx=_g("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),e_=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],t_=Hv("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})=>Md({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)`:nv.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})=>Md({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Md({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Md({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Md({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),n_=Hv("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Md({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)`})),r_=E.forwardRef(function(e,t){const n=Kv({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=Nd(n,e_),h=Md({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:f}),g=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return ym({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"]},Xx,r)})(h);return Qu.jsx(t_,Md({as:a,className:vg(g.root,i),role:c,ref:t,ownerState:h},p,{children:o?Qu.jsx(n_,{className:g.wrapper,ownerState:h,children:o}):null}))});r_.muiSkipListHighlight=!0;const o_=function(e={}){const{createStyledComponent:t=$m,useThemeProps:n=Um,componentName:r="MuiStack"}=e,o=t(Gm),i=E.forwardRef(function(e,t){const i=fg(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:u,children:c,className:d,useFlexGap:f=!1}=i,p=Nd(i,Hm),h={direction:s,spacing:l,useFlexGap:f},g=ym({root:["root"]},e=>xg(r,e),{});return Qu.jsx(o,Md({as:a,ownerState:h,ref:t,className:vg(g.root,d)},p,{children:u?Km(c,u):c}))});return i}({createStyledComponent:Hv("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Kv({props:e,name:"MuiStack"})}),i_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function a_(e){return`scale(${e}, ${e**2})`}const s_={entering:{opacity:1,transform:a_(1)},entered:{opacity:1,transform:"none"}},l_="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),u_=E.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:g=rb}=e,m=Nd(e,i_),v=um(),b=E.useRef(),y=Sv(),x=E.useRef(null),_=im(x,Cm(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}=db({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:l_?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),C=w(l),T=w(f),A=w(e=>{const{duration:t,delay:n,easing:r}=db({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:l_?o:.666*o,delay:l_?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=a_(.75),c&&c(e)}),L=w(d);return Qu.jsx(g,Md({appear:r,in:a,nodeRef:x,onEnter:S,onEntered:C,onEntering:k,onExit:A,onExited:L,onExiting:T,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},m,{children:(e,t)=>E.cloneElement(o,Md({style:Md({opacity:0,transform:a_(.75),visibility:"exited"!==e||a?void 0:"hidden"},s_[e],p,o.props.style),ref:_},t))}))});u_.muiSupportAuto=!0;const c_=E.createContext({});function d_(e){return xg("MuiList",e)}_g("MuiList",["root","padding","dense","subheader"]);const f_=["children","className","component","dense","disablePadding","subheader"],p_=Hv("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})=>Md({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),h_=E.forwardRef(function(e,t){const n=Kv({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,u=Nd(n,f_),c=E.useMemo(()=>({dense:a}),[a]),d=Md({},n,{component:i,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ym({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},d_,t)})(d);return Qu.jsx(c_.Provider,{value:c,children:Qu.jsxs(p_,Md({as:i,className:vg(f.root,o),ref:t,ownerState:d},u,{children:[l,r]}))})});function g_(e){return xg("MuiListItemIcon",e)}const m_=_g("MuiListItemIcon",["root","alignItemsFlexStart"]),v_=["className"],b_=Hv("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})=>Md({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),y_=E.forwardRef(function(e,t){const n=Kv({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Nd(n,v_),i=Md({},n,{alignItems:E.useContext(c_).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return ym({root:["root","flex-start"===t&&"alignItemsFlexStart"]},g_,n)})(i);return Qu.jsx(b_,Md({className:vg(a.root,r),ownerState:i,ref:t},o))}),x_=_g("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),__=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function w_(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function k_(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function S_(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 C_(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")&&S_(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const E_=E.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=Nd(e,__),f=E.useRef(null),p=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Vg(()=>{r&&f.current.focus()},[r]),E.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)}(Xg(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const h=im(f,t);let g=-1;E.Children.forEach(i,(e,t)=>{E.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))});const m=E.Children.map(i,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),E.cloneElement(e,t)}return e});return Qu.jsx(h_,Md({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=Xg(t).activeElement;if("ArrowDown"===n)e.preventDefault(),C_(t,r,l,s,w_);else if("ArrowUp"===n)e.preventDefault(),C_(t,r,l,s,k_);else if("Home"===n)e.preventDefault(),C_(t,null,l,s,w_);else if("End"===n)e.preventDefault(),C_(t,null,l,s,k_);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&&S_(r,o);o.previousKeyMatched&&(l||C_(t,r,!1,s,w_,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:m}))});function T_(e){return xg("MuiMenuItem",e)}const A_=_g("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),L_=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],R_=Hv(Ob,{shouldForwardProp:e=>Bv(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})=>Md({},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"}},[`&.${A_.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nv.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${A_.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nv.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${A_.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nv.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})`:nv.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${A_.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${A_.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Zx.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Zx.inset}`]:{marginLeft:52},[`& .${x_.root}`]:{marginTop:0,marginBottom:0},[`& .${x_.inset}`]:{paddingLeft:36},[`& .${m_.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Md({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${m_.root} svg`]:{fontSize:"1.25rem"}}))),M_=E.forwardRef(function(e,t){const n=Kv({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=Nd(n,L_),p=E.useContext(c_),h=E.useMemo(()=>({dense:i||p.dense||!1,disableGutters:s}),[p.dense,i,s]),g=E.useRef(null);Vg(()=>{r&&g.current&&g.current.focus()},[r]);const m=Md({},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 Md({},a,ym({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},T_,a))})(n),b=im(g,t);let y;return n.disabled||(y=void 0!==c?c:-1),Qu.jsx(c_.Provider,{value:h,children:Qu.jsx(R_,Md({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:vg(v.focusVisible,l),className:vg(v.root,d)},f,{ownerState:m,classes:v}))})});function N_(e){return xg("MuiTooltip",e)}const O_=_g("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),P_=["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 I_=Hv(_x,{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})=>Md({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${O_.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${O_.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${O_.arrow}`]:Md({},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"] .${O_.arrow}`]:Md({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),z_=Hv("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${lh(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>{return Md({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:nv.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},{[`.${O_.popper}[data-popper-placement*="left"] &`]:Md({transformOrigin:"right center"},t.isRtl?Md({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Md({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${O_.popper}[data-popper-placement*="right"] &`]:Md({transformOrigin:"left center"},t.isRtl?Md({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Md({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${O_.popper}[data-popper-placement*="top"] &`]:Md({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${O_.popper}[data-popper-placement*="bottom"] &`]:Md({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n}),D_=Hv("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:nv.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let j_=!1;const F_=new lm;let B_={x:0,y:0};function H_(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const W_=E.forwardRef(function(e,t){var n,r,o,i,a,s,l,u,c,d,f,p,h,g,m,v,b,y,x;const _=Kv({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:k,components:S={},componentsProps:C={},describeChild:T=!1,disableFocusListener:A=!1,disableHoverListener:L=!1,disableInteractive:R=!1,disableTouchListener:M=!1,enterDelay:N=100,enterNextDelay:O=0,enterTouchDelay:P=700,followCursor:I=!1,id:z,leaveDelay:D=0,leaveTouchDelay:j=1500,onClose:F,onOpen:B,open:H,placement:W="bottom",PopperComponent:$,PopperProps:U={},slotProps:K={},slots:G={},title:V,TransitionComponent:Y=u_,TransitionProps:q}=_,Q=Nd(_,P_),J=E.isValidElement(k)?k:Qu.jsx("span",{children:k}),X=Sv(),Z=(()=>{const e=E.useContext(Mm);return null!=e&&e})(),[ee,te]=E.useState(),[ne,re]=E.useState(null),oe=E.useRef(!1),ie=R||I,ae=um(),se=um(),le=um(),ue=um(),[ce,de]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=E.useRef(void 0!==e),[i,a]=E.useState(t);return[o?e:i,E.useCallback(e=>{o||a(e)},[])]}({controlled:H,default:!1,name:"Tooltip",state:"open"});let fe=ce;const pe=rm(z),he=E.useRef(),ge=om(()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ue.clear()});E.useEffect(()=>ge,[ge]);const me=e=>{F_.clear(),j_=!0,de(!0),B&&!fe&&B(e)},ve=om(e=>{F_.start(800+D,()=>{j_=!1}),de(!1),F&&fe&&F(e),ae.start(X.transitions.duration.shortest,()=>{oe.current=!1})}),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),se.clear(),le.clear(),N||j_&&O?se.start(j_?O:N,()=>{me(e)}):me(e))},ye=e=>{se.clear(),le.start(D,()=>{ve(e)})},{isFocusVisibleRef:xe,onBlur:_e,onFocus:we,ref:ke}=bm(),[,Se]=E.useState(!1),Ce=e=>{_e(e),!1===xe.current&&(Se(!1),ye(e))},Ee=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Se(!0),be(e))},Te=e=>{oe.current=!0;const t=J.props;t.onTouchStart&&t.onTouchStart(e)},Ae=e=>{Te(e),le.clear(),ae.clear(),ge(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(P,()=>{document.body.style.WebkitUserSelect=he.current,be(e)})},Le=e=>{J.props.onTouchEnd&&J.props.onTouchEnd(e),ge(),le.start(j,()=>{ve(e)})};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 Re=im(Cm(J),ke,te,t);V||0===V||(fe=!1);const Me=E.useRef(),Ne={},Oe="string"==typeof V;T?(Ne.title=fe||!Oe||L?null:V,Ne["aria-describedby"]=fe?pe:null):(Ne["aria-label"]=Oe?V:null,Ne["aria-labelledby"]=fe&&!Oe?pe:null);const Pe=Md({},Ne,Q,J.props,{className:vg(Q.className,J.props.className),onTouchStart:Te,ref:Re},I?{onMouseMove:e=>{const t=J.props;t.onMouseMove&&t.onMouseMove(e),B_={x:e.clientX,y:e.clientY},Me.current&&Me.current.update()}}:{}),Ie={};M||(Pe.onTouchStart=Ae,Pe.onTouchEnd=Le),L||(Pe.onMouseOver=H_(be,Pe.onMouseOver),Pe.onMouseLeave=H_(ye,Pe.onMouseLeave),ie||(Ie.onMouseOver=be,Ie.onMouseLeave=ye)),A||(Pe.onFocus=H_(Ee,Pe.onFocus),Pe.onBlur=H_(Ce,Pe.onBlur),ie||(Ie.onFocus=Ee,Ie.onBlur=Ce));const ze=E.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)),Md({},U.popperOptions,{modifiers:t})},[ne,U]),De=Md({},_,{isRtl:Z,arrow:w,disableInteractive:ie,placement:W,PopperComponentProp:$,touch:oe.current}),je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return ym({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${lh(i.split("-")[0])}`],arrow:["arrow"]},N_,t)})(De),Fe=null!=(n=null!=(r=G.popper)?r:S.Popper)?n:I_,Be=null!=(o=null!=(i=null!=(a=G.transition)?a:S.Transition)?i:Y)?o:u_,He=null!=(s=null!=(l=G.tooltip)?l:S.Tooltip)?s:z_,We=null!=(u=null!=(c=G.arrow)?c:S.Arrow)?u:D_,$e=_m(Fe,Md({},U,null!=(d=K.popper)?d:C.popper,{className:vg(je.popper,null==U?void 0:U.className,null==(f=null!=(p=K.popper)?p:C.popper)?void 0:f.className)}),De),Ue=_m(Be,Md({},q,null!=(h=K.transition)?h:C.transition),De),Ke=_m(He,Md({},null!=(g=K.tooltip)?g:C.tooltip,{className:vg(je.tooltip,null==(m=null!=(v=K.tooltip)?v:C.tooltip)?void 0:m.className)}),De),Ge=_m(We,Md({},null!=(b=K.arrow)?b:C.arrow,{className:vg(je.arrow,null==(y=null!=(x=K.arrow)?x:C.arrow)?void 0:y.className)}),De);return Qu.jsxs(E.Fragment,{children:[E.cloneElement(J,Pe),Qu.jsx(Fe,Md({as:null!=$?$:_x,placement:W,anchorEl:I?{getBoundingClientRect:()=>({top:B_.y,left:B_.x,right:B_.x,bottom:B_.y,width:0,height:0})}:ee,popperRef:Me,open:!!ee&&fe,id:pe,transition:!0},Ie,$e,{popperOptions:ze,children:({TransitionProps:e})=>Qu.jsx(Be,Md({timeout:X.transitions.duration.shorter},e,Ue,{children:Qu.jsxs(He,Md({},Ke,{children:[V,w?Qu.jsx(We,Md({},Ge,{ref:re})):null]}))}))}))]})}),$_=(e,t)=>Qu.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:Qu.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"})}),U_=E.forwardRef($_),K_=(e,t)=>Qu.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:Qu.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}),G_=E.forwardRef(K_);function V_({validateUrl:e,attributes:t}){const[n]=Ku();return E.useEffect(()=>{if(!n.hasNodes([Fl]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),E.useEffect(()=>function(e,t){return Ss(e.registerNodeTransform(Fl,Wl),yl(()=>e.registerCommand(ql,e=>{const n=t.validateUrl.peek(),r=t.attributes.peek();if(null===e)return Jl(null),!0;if("string"==typeof e)return!(void 0!==n&&!n(e)||(Jl(e,r),0));{const{url:t,target:n,rel:o,title:i}=e;return Jl(t,{...r,rel:o,target:n,title:i}),!0}},1)),yl(()=>{const n=t.validateUrl.value;if(!n)return;const r=t.attributes.value;return e.registerCommand(kt,t=>{const o=Vr();if(!Rr(o)||o.isCollapsed()||!Xs(t,ClipboardEvent))return!1;if(null===t.clipboardData)return!1;const i=t.clipboardData.getData("text");return!!n(i)&&!o.getNodes().some(e=>No(e))&&(e.dispatchCommand(ql,{...r,url:i}),t.preventDefault(),!0)},1)}))}(n,xl({attributes:t,validateUrl:e})),[n,e,t]),null}const Y_={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)"},q_=12,Q_=14,J_=16,X_=24,Z_=3,ew=300,tw=400,nw=600,rw=700,ow={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function iw(e){return Qu.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Qu.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function aw({fontSize:e="medium",children:t=null,className:n=""}={}){return Qu.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 sw(e={}){return Qu.jsx(aw,{...e,children:Qu.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Qu.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Qu.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 lw(e={}){return Qu.jsx(aw,{fontSize:"medium",...e,children:Qu.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Qu.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Qu.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 uw(e){return Qu.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Qu.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 cw(e={}){return Qu.jsx(aw,{...e,children:Qu.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Qu.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Qu.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Qu.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function dw(e={}){return Qu.jsx(aw,{fontSize:"medium",...e,children:Qu.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Qu.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Qu.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function fw({className:e}){return Qu.jsx(aw,{fontSize:"small",className:e,children:Qu.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Qu.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Qu.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Qu.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Qu.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"}),Qu.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 pw(e={}){return Qu.jsx(aw,{...e,children:Qu.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Qu.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Qu.jsx("rect",{stroke:Y_.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const hw={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:Z_,"& > 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 gw=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Y_.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Y_.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Qu.jsx(iw,{"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 ${Y_.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Y_.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Y_.MISC_FOCUS_BORDER}`,borderRadius:Z_,backgroundColor:Y_.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 ${Y_.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Y_.WHITE,color:Y_.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:Z_},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Y_.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Y_.GREYSCALE_0_15,backgroundColor:Y_.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Y_.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Y_.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Y_.GREEN_PALE},"&:active":{backgroundColor:Y_.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Y_.GREEN_PALE,boxShadow:`0 0 0 3px ${Jg(Y_.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Y_.BLUE_PALE},"&:active":{backgroundColor:Y_.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Y_.BLUE_PALE,boxShadow:`0 0 0 3px ${Jg(Y_.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:Z_,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Y_.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Y_.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Y_.GREYSCALE_0_42,backgroundColor:Y_.GREYSCALE_100_60,"&:active":{backgroundColor:Y_.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Y_.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Y_.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Y_.PURPLE,"&.Mui-focusVisible":{borderColor:Y_.PURPLE,boxShadow:`0 0 0 3px ${Jg(Y_.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Y_.GREEN,"&.Mui-focusVisible":{borderColor:Y_.GREEN,boxShadow:`0 0 0 3px ${Jg(Y_.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Y_.BLUE,"&.Mui-focusVisible":{borderColor:Y_.BLUE,boxShadow:`0 0 0 3px ${Jg(Y_.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Y_.ORANGE,"&.Mui-focusVisible":{borderColor:Y_.ORANGE,boxShadow:`0 0 0 3px ${Jg(Y_.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Y_.RED,"&.Mui-focusVisible":{borderColor:Y_.RED,boxShadow:`0 0 0 3px ${Jg(Y_.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Y_.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Y_.PURPLE_PALE},"&:active":{backgroundColor:Y_.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Y_.PURPLE_PALE,boxShadow:`0 0 0 3px ${Jg(Y_.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Y_.GREEN_PALE},"&:active":{backgroundColor:Y_.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Y_.GREEN_PALE,boxShadow:`0 0 0 3px ${Jg(Y_.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Y_.BLUE_PALE},"&:active":{backgroundColor:Y_.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Y_.BLUE_PALE,boxShadow:`0 0 0 3px ${Jg(Y_.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Y_.ORANGE_PALE},"&:active":{backgroundColor:Y_.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Y_.ORANGE_PALE,boxShadow:`0 0 0 3px ${Jg(Y_.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Y_.RED_PALE},"&:active":{backgroundColor:Y_.RED_DARK},"&.Mui-focusVisible":{borderColor:Y_.RED_PALE,boxShadow:`0 0 0 3px ${Jg(Y_.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:Y_.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Y_.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Z_,boxShadow:`inset 0 0 0 2px ${Y_.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Qu.jsx(uw,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:q_,borderRadius:Z_,color:Y_.TEXT_PRIMARY,backgroundColor:Y_.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Y_.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Y_.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Y_.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Y_.GREYSCALE_0_05,color:Y_.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Y_.GREEN,borderColor:Y_.GREEN},"&.MuiChip-outlinedInfo":{color:Y_.BLUE,borderColor:Y_.BLUE},"&.MuiChip-outlinedWarning":{color:Y_.ORANGE,borderColor:Y_.ORANGE},"&.MuiChip-outlinedError":{color:Y_.RED,borderColor:Y_.RED}},outlined:{border:`solid 1px ${Y_.GREYSCALE_0_15}`,backgroundColor:Y_.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Z_,boxShadow:"none",backgroundColor:Y_.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Y_.GREEN,borderColor:Y_.GREEN},outlinedSecondary:{color:Y_.BLUE,borderColor:Y_.BLUE},label:{fontFamily:ow.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Qu.jsx(uw,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Qu.jsx(iw,{"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:Z_},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Z_,fontSize:Q_,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Y_.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Y_.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Y_.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Y_.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Y_.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Z_,border:`solid 1px ${Y_.GREYSCALE_0_15}`,color:Y_.GREYSCALE_0_60,marginRight:0,width:X_,height:X_},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Y_.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Z_,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Y_.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Q_}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:q_,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Y_.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Y_.GREYSCALE_25,fontSize:q_,fontFamily:ow.FONT_FAMILY,fontWeight:nw,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Y_.TEXT_PRIMARY},"&.Mui-error":{color:Y_.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Y_.TEXT_SECONDARY,content:"'(optional)'",fontWeight:tw,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Y_.TEXT_SECONDARY,content:"'(required)'",fontWeight:tw,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Q_,lineHeight:"16px",backgroundColor:Y_.WHITE,borderRadius:Z_,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Y_.GREYSCALE_0_05}`,borderColor:Y_.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Y_.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Y_.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Y_.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Y_.RED}`,boxShadow:`0px 0px 0px 1px ${Y_.RED}, inset 0 2px 0 0 ${Y_.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Y_.GREYSCALE_0_10}`,borderColor:Y_.GREYSCALE_0_10,backgroundColor:Y_.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Y_.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Y_.GREYSCALE_0_15,borderRadius:Z_,boxShadow:`inset 0 2px 0 0 ${Y_.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Qu.jsx(iw,{...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:Y_.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Y_.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Y_.GREYSCALE_0_03},"&:active":{backgroundColor:Y_.GREYSCALE_0_10},"&:focus":{backgroundColor:Y_.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Y_.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Y_.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Y_.GREYSCALE_0_30,"&:hover":{backgroundColor:Y_.GREYSCALE_0_0,borderColor:Y_.GREYSCALE_0_15},"& ~svg":{color:Y_.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Y_.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Z_}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Y_.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Y_.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Y_.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Q_,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:q_,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:q_,fontWeight:nw,color:Y_.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:nw}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Y_.GREYSCALE_0_15}, 0px 0px 0px 1px ${Y_.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Qu.jsx(dw,{}),checkedIcon:Qu.jsx(lw,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Y_.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Y_.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Y_.GREEN_PALE,boxShadow:`0 0 0 3px ${Jg(Y_.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Y_.BLUE_PALE,boxShadow:`0 0 0 3px ${Jg(Y_.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Y_.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Y_.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Qu.jsx(pw,{}),checkedIcon:Qu.jsx(sw,{}),indeterminateIcon:Qu.jsx(cw,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Z_,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Y_.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Y_.GREYSCALE_0_55,color:Y_.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:Y_.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Y_.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Y_.GREYSCALE_0_55,"&:hover":{color:Y_.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:Y_.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Y_.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Q_,color:Y_.TEXT_PRIMARY,lineHeight:"16px",fontWeight:nw},secondary:{fontSize:q_,color:Y_.GREYSCALE_45,fontWeight:tw,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Q_,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Q_,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Y_.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:q_,borderBottom:`solid 1px ${Y_.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Q_,color:Y_.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Y_.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Y_.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Y_.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:Y_.RED}}},"&.Mui-focusVisible":{backgroundColor:Y_.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:Y_.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:Y_.GREEN,height:"24px","&.Mui-disabled":{color:Y_.GREYSCALE_0_15}},rail:{backgroundColor:Y_.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Y_.GREYSCALE_0_05}`,borderRadius:Z_,boxShadow:`inset 0px 0px 0px 1px ${Y_.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Y_.GREYSCALE_0_05}`,borderRadius:Z_},thumb:{height:"16px",width:"16px",borderRadius:Z_,backgroundColor:Y_.WHITE,boxShadow:`0px 1px 2px 0px ${Y_.GREYSCALE_0_15}, 0px 0px 0px 1px ${Y_.GREYSCALE_0_05}`,"&:hover":{borderRadius:Z_,boxShadow:`0 2px 4px 0 ${Y_.GREYSCALE_0_30}, 0 0 0 1px ${Y_.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Y_.GREYSCALE_0_15}, 0 0 0 1px ${Y_.GREYSCALE_0_06}, 0 0 0 2px ${Y_.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Y_.GREYSCALE_0_15}, 0 0 0 1px ${Y_.GREYSCALE_0_06}, 0 0 0 2px ${Y_.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Y_.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Y_.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Y_.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Y_.GREYSCALE_0_15},markLabel:{color:Y_.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Y_.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Y_.WHITE,color:Y_.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:Y_.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:Y_.GREEN_PALE,boxShadow:`0 0 0 3px ${Jg(Y_.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Y_.BLUE_PALE,boxShadow:`0 0 0 3px ${Jg(Y_.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Y_.GREYSCALE_0_15,borderRadius:Z_},thumb:{height:"16px",width:"16px",borderRadius:Z_,backgroundColor:Y_.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:Q_,fontWeight:nw,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Y_.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Y_.MISC_FOCUS_BORDER}`,backgroundColor:Y_.GREYSCALE_0_03,borderRadius:Z_},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Y_.GREYSCALE_25,"&.Mui-selected":{color:Y_.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Q_,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Z_,"&:hover":{backgroundColor:Y_.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 ${Y_.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Y_.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Z_,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Y_.GREYSCALE_0_05},"&:hover":{backgroundColor:Y_.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Y_.GREYSCALE_85}`,borderRight:`1px solid ${Y_.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:nw,backgroundColor:Y_.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:Y_.GREYSCALE_98,borderBottom:`1px solid ${Y_.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Y_.GREYSCALE_85}`,borderTop:`1px solid ${Y_.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Y_.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Y_.GREYSCALE_0_05,"&:hover":{backgroundColor:Y_.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Y_.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Qu.jsx(fw,{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 ${Y_.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Q_,borderRadius:Z_,padding:"7px 16px",border:`1px solid ${Y_.GREYSCALE_0_15}`,backgroundColor:Y_.GREYSCALE_100_60,color:Y_.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Y_.GREYSCALE_0_10,border:`1px solid ${Y_.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Y_.GREYSCALE_0_03,border:`1px solid ${Y_.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Y_.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Y_.MISC_FOCUS_BORDER}`,border:`1px solid ${Y_.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Y_.GREYSCALE_25,backgroundColor:Y_.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Y_.GREYSCALE_0_10,border:`1px solid ${Y_.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:q_,height:24,width:24,padding:7},sizeLarge:{fontSize:J_,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Q_,borderRadius:Z_}}},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:Y_.GREYSCALE_20},tooltip:{backgroundColor:Y_.GREYSCALE_20,fontSize:q_,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...hw}:{}}))(t);const mw=e=>({mode:"light",primary:{ultraLight:Y_.GREEN_ULTRA_LIGHT,light:Y_.GREEN_PALE,main:Y_.GREEN,dark:Y_.GREEN_DARK,extraDark:Y_.GREEN_EXTRA_DARK,contrastText:Y_.WHITE},secondary:{ultraLight:Y_.BLUE_ULTRA_LIGHT,light:Y_.BLUE_PALE,main:Y_.BLUE,dark:Y_.BLUE_DARK,extraDark:Y_.BLUE_EXTRA_DARK,contrastText:Y_.WHITE},error:{ultraLight:Y_.RED_ULTRA_LIGHT,light:Y_.RED_PALE,main:Y_.RED,dark:Y_.RED_DARK,extraDark:Y_.RED_EXTRA_DARK,contrastText:Y_.WHITE},warning:{ultraLight:Y_.ORANGE_ULTRA_LIGHT,light:Y_.ORANGE_PALE,main:Y_.ORANGE,dark:Y_.ORANGE_DARK,extraDark:Y_.ORANGE_EXTRA_DARK,contrastText:Y_.WHITE},success:{ultraLight:Y_.GREEN_ULTRA_LIGHT,light:Y_.GREEN_PALE,main:Y_.GREEN,dark:Y_.GREEN_DARK,extraDark:Y_.GREEN_EXTRA_DARK,contrastText:Y_.WHITE},info:{ultraLight:Y_.BLUE_ULTRA_LIGHT,light:Y_.BLUE_PALE,main:Y_.BLUE,dark:Y_.BLUE_DARK,extraDark:Y_.BLUE_EXTRA_DARK,contrastText:Y_.WHITE},text:{primary:Y_.TEXT_PRIMARY,secondary:Y_.TEXT_SECONDARY,disabled:Y_.GREYSCALE_0_30},action:{hover:Y_.GREYSCALE_0_03,hoverOpacity:.03,selected:Y_.GREYSCALE_0_05,selectedOpacity:.05,focus:Y_.MISC_FOCUS_BORDER},amethyst:{ultraLight:Y_.WHITE,main:Y_.PURPLE,light:Y_.PURPLE_PALE,dark:Y_.PURPLE_DARK,extraDark:Y_.GREYSCALE_0_0,contrastText:Y_.WHITE},background:{paper:Y_.WHITE,default:Y_.GREYSCALE_95},divider:Y_.GREYSCALE_0_15}),vw=(e="light",t=!1)=>wv(((e,t=!1)=>({components:gw(0,t),palette:mw(),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:Q_,fontWeightLight:ew,fontWeightRegular:tw,fontWeightMedium:nw,fontWeightBold:rw,htmlFontSize:Q_,fontFamily:ow.FONT_FAMILY,button:{fontWeight:nw,fontSize:Q_,textTransform:"none"},body1:{fontSize:J_,lineHeight:"24px"},body2:{fontSize:Q_,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:X_,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:J_,fontWeight:nw,lineHeight:"16px"},h6:{fontSize:Q_,fontWeight:nw,lineHeight:"16px"},caption:{color:Y_.TEXT_SECONDARY},subtitle1:{fontSize:Q_,color:Y_.TEXT_SECONDARY},subtitle2:{fontSize:q_,color:Y_.TEXT_SECONDARY}},shape:{borderRadius:Z_}}))(0,t));var bw,yw,xw={},_w={exports:{}},ww={exports:{}};function kw(){return bw||(bw=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}(ww)),ww.exports}var Sw={};function Cw(e,t){return function(){return null}}function Ew(e){return e&&"object"===Fm(e)&&e.constructor===Object}function Tw(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Md({},e):e;return Ew(e)&&Ew(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(Ew(t[o])&&o in e?r[o]=Tw(e[o],t[o],n):r[o]=t[o])}),r}var Aw=(Bp.element,function(){return null});Aw.isRequired=(Bp.element.isRequired,function(){return null});var Lw=function(){return null};var Rw,Mw,Nw={exports:{}},Ow={};var Pw=(Mw||(Mw=1,Nw.exports=function(){if(Rw)return Ow;Rw=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,g=60129,m=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"),g=v("react.debug_trace_mode"),m=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 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 y=i,x=e,_=s,w=n,k=d,S=c,C=t,E=o,T=r,A=l;return Ow.ContextConsumer=a,Ow.ContextProvider=y,Ow.Element=x,Ow.ForwardRef=_,Ow.Fragment=w,Ow.Lazy=k,Ow.Memo=S,Ow.Portal=C,Ow.Profiler=E,Ow.StrictMode=T,Ow.Suspense=A,Ow.isAsyncMode=function(){return!1},Ow.isConcurrentMode=function(){return!1},Ow.isContextConsumer=function(e){return b(e)===a},Ow.isContextProvider=function(e){return b(e)===i},Ow.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ow.isForwardRef=function(e){return b(e)===s},Ow.isFragment=function(e){return b(e)===n},Ow.isLazy=function(e){return b(e)===d},Ow.isMemo=function(e){return b(e)===c},Ow.isPortal=function(e){return b(e)===t},Ow.isProfiler=function(e){return b(e)===o},Ow.isStrictMode=function(e){return b(e)===r},Ow.isSuspense=function(e){return b(e)===l},Ow.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===g||e===r||e===l||e===u||e===m||"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)},Ow.typeOf=b,Ow}()),Nw.exports),Iw=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function zw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Iw);return t&&t[1]||""}(e)||t}function Dw(e,t,n){var r=zw(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var jw,Fw="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Bw=Bp.oneOfType([Bp.func,Bp.object]),Hw=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,o){return null},chainPropTypes:Cw,deepmerge:Tw,elementAcceptingRef:Aw,elementTypeAcceptingRef:Lw,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 zw(e,"Component");if("object"===Fm(e))switch(e.$$typeof){case Pw.ForwardRef:return Dw(e,e.render,"ForwardRef");case Pw.Memo:return Dw(e,e.type,"memo");default:return}}},ponyfillGlobal:Fw,refType:Bw}),Ww=i(Hw);function $w(){if(jw)return Sw;jw=1,Object.defineProperty(Sw,"__esModule",{value:!0}),Sw.hexToRgb=n,Sw.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(""))},Sw.hslToRgb=r,Sw.decomposeColor=o,Sw.recomposeColor=i,Sw.getContrastRatio=function(e,t){var n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Sw.getLuminance=a,Sw.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)},Sw.fade=function(e,t){return s(e,t)},Sw.alpha=s,Sw.darken=l,Sw.lighten=u;var e=Ww;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 Sw}var Uw,Kw,Gw,Vw={},Yw={exports:{}},qw={exports:{}},Qw={exports:{}};function Jw(){return Uw||(Uw=1,function(e){var t=kw().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}(Qw)),Qw.exports}function Xw(){return Kw||(Kw=1,function(e){var t=kw().default,n=Jw();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(qw)),qw.exports}function Zw(){return Gw||(Gw=1,function(e){var t=Xw();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}(Yw)),Yw.exports}var ek,tk={exports:{}};function nk(){return ek||(ek=1,function(e){var t=Mv();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}(tk)),tk.exports}var rk,ok={};function ik(){if(rk)return ok;rk=1;var e=Jm();Object.defineProperty(ok,"__esModule",{value:!0}),ok.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)},ok.keys=void 0;var t=e(Av()),n=e(nk()),r=["xs","sm","md","lg","xl"];return ok.keys=r,ok}var ak,sk={};function lk(){if(ak)return sk;ak=1;var e=Jm();Object.defineProperty(sk,"__esModule",{value:!0}),sk.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(Zw()),n=e(Av());return sk}var uk,ck={},dk={};function fk(){if(uk)return dk;uk=1,Object.defineProperty(dk,"__esModule",{value:!0}),dk.default=void 0;var e={black:"#000",white:"#fff"};return dk.default=e,dk}var pk,hk={};function gk(){if(pk)return hk;pk=1,Object.defineProperty(hk,"__esModule",{value:!0}),hk.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 hk.default=e,hk}var mk,vk={};function bk(){if(mk)return vk;mk=1,Object.defineProperty(vk,"__esModule",{value:!0}),vk.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 vk.default=e,vk}var yk,xk={};function _k(){if(yk)return xk;yk=1,Object.defineProperty(xk,"__esModule",{value:!0}),xk.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 xk.default=e,xk}var wk,kk={};function Sk(){if(wk)return kk;wk=1,Object.defineProperty(kk,"__esModule",{value:!0}),kk.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 kk.default=e,kk}var Ck,Ek={};function Tk(){if(Ck)return Ek;Ck=1,Object.defineProperty(Ek,"__esModule",{value:!0}),Ek.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 Ek.default=e,Ek}var Ak,Lk={};function Rk(){if(Ak)return Lk;Ak=1,Object.defineProperty(Lk,"__esModule",{value:!0}),Lk.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 Lk.default=e,Lk}var Mk,Nk,Ok={};function Pk(){if(Mk)return Ok;Mk=1,Object.defineProperty(Ok,"__esModule",{value:!0}),Ok.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 Ok.default=e,Ok}function Ik(){if(Nk)return ck;Nk=1;var e=Jm();Object.defineProperty(ck,"__esModule",{value:!0}),ck.default=function(e){var m=e.primary,v=void 0===m?{light:a.default[300],main:a.default[500],dark:a.default[700]}:m,b=e.secondary,y=void 0===b?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:b,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,L=void 0===A?"light":A,R=e.contrastThreshold,M=void 0===R?3:R,N=e.tonalOffset,O=void 0===N?.2:N,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)>=M?h.text.primary:p.text.primary}var z=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 g(e,"light",o,O),g(e,"dark",i,O),e.contrastText||(e.contrastText=I(e.main)),e},D={dark:h,light:p};return(0,r.deepmerge)((0,t.default)({common:o.default,type:L,primary:z(v),secondary:z(y,"A400","A200","A700"),error:z(_),warning:z(k),info:z(C),success:z(T),grey:i.default,contrastThreshold:M,getContrastText:I,augmentColor:z,tonalOffset:O},D[L]),P)},ck.dark=ck.light=void 0;var t=e(Av()),n=e(nk()),r=Ww,o=e(fk()),i=e(gk()),a=e(bk()),s=e(_k()),l=e(Sk()),u=e(Tk()),c=e(Rk()),d=e(Pk()),f=$w(),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}};ck.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 g(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 ck.dark=h,ck}var zk,Dk={};function jk(){if(zk)return Dk;zk=1;var e=Jm();Object.defineProperty(Dk,"__esModule",{value:!0}),Dk.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,g=void 0===h?300:h,m=u.fontWeightRegular,v=void 0===m?400:m,b=u.fontWeightMedium,y=void 0===b?500:b,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")},L=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)},R={h1:L(g,96,1.167,-1.5),h2:L(g,60,1.2,-.5),h3:L(v,48,1.167,0),h4:L(v,34,1.235,.25),h5:L(v,24,1.334,0),h6:L(y,20,1.6,.15),subtitle1:L(v,16,1.75,.15),subtitle2:L(y,14,1.57,.1),body1:L(v,16,1.5,.15),body2:L(v,14,1.43,.15),button:L(y,14,1.75,.4,a),caption:L(v,12,1.66,.4),overline:L(v,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:k,pxToRem:A,round:i,fontFamily:d,fontSize:p,fontWeightLight:g,fontWeightRegular:v,fontWeightMedium:y,fontWeightBold:_},R),E,{clone:!1})};var t=e(Av()),n=e(nk()),r=Ww;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 Dk}var Fk,Bk={};function Hk(){if(Fk)return Bk;Fk=1,Object.defineProperty(Bk,"__esModule",{value:!0}),Bk.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 Bk.default=t,Bk}var Wk,$k={};function Uk(){if(Wk)return $k;Wk=1,Object.defineProperty($k,"__esModule",{value:!0}),$k.default=void 0;var e={borderRadius:4};return $k.default=e,$k}var Kk={};function Gk(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 Vk(e,t){if(e){if("string"==typeof e)return Gk(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)?Gk(e,t):void 0}}function Yk(e){return function(e){if(Array.isArray(e))return Gk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vk(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 qk(e,t){return t?Tw(e,t,{clone:!1}):e}var Qk={xs:0,sm:600,md:960,lg:1280,xl:1920},Jk={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Qk[e],"px)")}};function Xk(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||Jk;return t.reduce(function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e},{})}if("object"===Fm(t)){var o=e.theme.breakpoints||Jk;return Object.keys(t).reduce(function(e,r){return e[o.up(r)]=n(t[r]),e},{})}return n(t)}function Zk(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function eS(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=Zk(e.theme,o)||{};return Xk(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Zk(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return(t=Bm(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 tS(){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?qk(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function nS(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var rS=eS({prop:"border",themeKey:"borders",transform:nS}),oS=eS({prop:"borderTop",themeKey:"borders",transform:nS}),iS=eS({prop:"borderRight",themeKey:"borders",transform:nS}),aS=eS({prop:"borderBottom",themeKey:"borders",transform:nS}),sS=eS({prop:"borderLeft",themeKey:"borders",transform:nS}),lS=eS({prop:"borderColor",themeKey:"palette"}),uS=eS({prop:"borderRadius",themeKey:"shape"}),cS=tS(rS,oS,iS,aS,sS,lS,uS);function dS(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function fS(e){var t=function(t){var n=e(t);return t.css?Md({},qk(n,e(Md({theme:t.theme},t.css))),dS(t.css,[e.filterProps])):t.sx?Md({},qk(n,e(Md({theme:t.theme},t.sx))),dS(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(Yk(e.filterProps)),t}var pS=tS(eS({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),eS({prop:"display"}),eS({prop:"overflow"}),eS({prop:"textOverflow"}),eS({prop:"visibility"}),eS({prop:"whiteSpace"})),hS=eS({prop:"flexBasis"}),gS=eS({prop:"flexDirection"}),mS=eS({prop:"flexWrap"}),vS=eS({prop:"justifyContent"}),bS=eS({prop:"alignItems"}),yS=eS({prop:"alignContent"}),xS=eS({prop:"order"}),_S=eS({prop:"flex"}),wS=eS({prop:"flexGrow"}),kS=eS({prop:"flexShrink"}),SS=eS({prop:"alignSelf"}),CS=eS({prop:"justifyItems"}),ES=eS({prop:"justifySelf"}),TS=tS(hS,gS,mS,vS,bS,yS,xS,_S,wS,kS,SS,CS,ES),AS=eS({prop:"gridGap"}),LS=eS({prop:"gridColumnGap"}),RS=eS({prop:"gridRowGap"}),MS=eS({prop:"gridColumn"}),NS=eS({prop:"gridRow"}),OS=eS({prop:"gridAutoFlow"}),PS=eS({prop:"gridAutoColumns"}),IS=eS({prop:"gridAutoRows"}),zS=eS({prop:"gridTemplateColumns"}),DS=eS({prop:"gridTemplateRows"}),jS=eS({prop:"gridTemplateAreas"}),FS=eS({prop:"gridArea"}),BS=tS(AS,LS,RS,MS,NS,OS,PS,IS,zS,DS,jS,FS),HS=eS({prop:"color",themeKey:"palette"}),WS=eS({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),$S=tS(HS,WS),US=eS({prop:"position"}),KS=eS({prop:"zIndex",themeKey:"zIndex"}),GS=eS({prop:"top"}),VS=eS({prop:"right"}),YS=eS({prop:"bottom"}),qS=eS({prop:"left"}),QS=tS(US,KS,GS,VS,YS,qS),JS=eS({prop:"boxShadow",themeKey:"shadows"});function XS(e){return e<=1?"".concat(100*e,"%"):e}var ZS=eS({prop:"width",transform:XS}),eC=eS({prop:"maxWidth",transform:XS}),tC=eS({prop:"minWidth",transform:XS}),nC=eS({prop:"height",transform:XS}),rC=eS({prop:"maxHeight",transform:XS}),oC=eS({prop:"minHeight",transform:XS}),iC=eS({prop:"size",cssProperty:"width",transform:XS}),aC=eS({prop:"size",cssProperty:"height",transform:XS}),sC=eS({prop:"boxSizing"}),lC=tS(ZS,eC,tC,nC,rC,oC,sC);function uC(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)||Vk(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 cC={m:"margin",p:"padding"},dC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pC=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(!fC[e])return[e];e=fC[e]}var t=uC(e.split(""),2),n=t[0],r=t[1],o=cC[n],i=dC[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),hC=["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 gC(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 mC(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 vC(e){var t=gC(e.theme);return Object.keys(e).map(function(n){if(-1===hC.indexOf(n))return null;var r=mC(pC(n),t),o=e[n];return Xk(e,o,r)}).reduce(qk,{})}vC.propTypes={},vC.filterProps=hC;var bC,yC=eS({prop:"fontFamily",themeKey:"typography"}),xC=eS({prop:"fontSize",themeKey:"typography"}),_C=eS({prop:"fontStyle",themeKey:"typography"}),wC=eS({prop:"fontWeight",themeKey:"typography"}),kC=eS({prop:"letterSpacing"}),SC=eS({prop:"lineHeight"}),CC=eS({prop:"textAlign"}),EC=tS(yC,xC,_C,wC,kC,SC,CC),TC=Object.freeze({__proto__:null,alignContent:yS,alignItems:bS,alignSelf:SS,bgcolor:WS,border:rS,borderBottom:aS,borderColor:lS,borderLeft:sS,borderRadius:uS,borderRight:iS,borderTop:oS,borders:cS,bottom:YS,boxSizing:sC,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||Jk,o=r.keys.reduce(function(n,o){return t[o]&&((n=n||{})[r.up(o)]=e(Md({theme:t.theme},t[o]))),n},null);return qk(n,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Yk(e.filterProps)),t},color:HS,compose:tS,createUnarySpacing:gC,css:function(e){return fS(e)},display:pS,flex:_S,flexBasis:hS,flexDirection:gS,flexGrow:wS,flexShrink:kS,flexWrap:mS,flexbox:TS,fontFamily:yC,fontSize:xC,fontStyle:_C,fontWeight:wC,grid:BS,gridArea:FS,gridAutoColumns:PS,gridAutoFlow:OS,gridAutoRows:IS,gridColumn:MS,gridColumnGap:LS,gridGap:AS,gridRow:NS,gridRowGap:RS,gridTemplateAreas:jS,gridTemplateColumns:zS,gridTemplateRows:DS,height:nC,justifyContent:vS,justifyItems:CS,justifySelf:ES,left:qS,letterSpacing:kC,lineHeight:SC,maxHeight:rC,maxWidth:eC,minHeight:oC,minWidth:tC,order:xS,palette:$S,position:US,positions:QS,right:VS,shadows:JS,sizeHeight:aC,sizeWidth:iC,sizing:lC,spacing:vC,style:eS,styleFunctionSx:fS,textAlign:CC,top:GS,typography:EC,width:ZS,zIndex:KS}),AC=i(TC);function LC(){if(bC)return Kk;bC=1,Object.defineProperty(Kk,"__esModule",{value:!0}),Kk.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=AC;return Kk}var RC,MC={};function NC(){if(RC)return MC;RC=1;var e=Jm();Object.defineProperty(MC,"__esModule",{value:!0}),MC.default=MC.duration=MC.easing=void 0;var t=e(nk()),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)"};MC.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")}MC.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 MC.default=i,MC}var OC,PC,IC={};function zC(){if(OC)return IC;OC=1,Object.defineProperty(IC,"__esModule",{value:!0}),IC.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return IC.default=e,IC}function DC(){if(PC)return Vw;PC=1;var e=Jm();Object.defineProperty(Vw,"__esModule",{value:!0}),Vw.createMuiTheme=function(){return f.apply(void 0,arguments)},Vw.default=void 0,e(Zw());var t=e(nk()),n=Ww,r=e(ik()),o=e(lk()),i=e(Ik()),a=e(jk()),s=e(Hk()),l=e(Uk()),u=e(LC()),c=e(NC()),d=e(zC());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,g=void 0===h?{}:h,m=e.palette,v=void 0===m?{}:m,b=e.spacing,y=e.typography,x=void 0===y?{}:y,_=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),k=(0,r.default)(p),S=(0,u.default)(b),C=(0,n.deepmerge)({breakpoints:k,direction:"ltr",mixins:(0,o.default)(k,S,g),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 Vw.default=p,Vw}var jC,FC={};function BC(){if(jC)return FC;jC=1;var e=Jm();Object.defineProperty(FC,"__esModule",{value:!0}),FC.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=Ww,n=e(DC());return FC}var HC={},WC="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",$C=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function UC(){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!==$C.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[WC]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function KC(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 GC="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},VC="object"===("undefined"==typeof window?"undefined":GC(window))&&"object"===("undefined"==typeof document?"undefined":GC(document))&&9===document.nodeType;function YC(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,Bm(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var qC={}.constructor;function QC(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(QC);if(e.constructor!==qC)return e;var t={};for(var n in e)t[n]=QC(e[n]);return t}function JC(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=QC(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var XC=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},ZC=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+=XC(e[n]," ");else t=XC(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function eE(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function tE(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function nE(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=eE(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+=tE(f+":"+u+ZC(p)+";",i))}}else for(var h in a){var g=a[h];null!=g&&(r&&(r+=l),r+=tE(h+":"+u+ZC(g)+";",i))}for(var m in t){var v=t[m];null!=v&&"fallbacks"!==m&&(r&&(r+=l),r+=tE(m+":"+u+ZC(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),tE(""+e+u+"{"+r,--i)+tE("}",i)):r}var rE=/([[\].#*$><+~=|^:(),"'`\s])/g,oE="undefined"!=typeof CSS&&CSS.escape,iE=function(e){return oE?oE(e):e.replace(rE,"\\$1")},aE=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}(),sE=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(ib(ib(o)),s),o.selectorText="."+iE(o.id)),o}Vv(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]=ZC(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Md({},e,{allowEmpty:!0}):e;return nE(this.selectorText,this.style,n)},YC(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}(aE),lE={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new sE(e,t,n)}},uE={indent:1,children:!0},cE=/@([\w-]+)/,dE=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(cE);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new IE(Md({},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=uE);var t=eE(e).linebreak;if(null==e.indent&&(e.indent=uE.indent),null==e.children&&(e.children=uE.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),fE=/@container|@media|@supports\s+/,pE={onCreateRule:function(e,t,n){return fE.test(e)?new dE(e,t,n):null}},hE={indent:1,children:!0},gE=/@keyframes\s+([\w-]+)/,mE=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(gE);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:iE(a(this,i)),this.rules=new IE(Md({},n,{parent:this})),t)this.rules.add(s,t[s],Md({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=hE);var t=eE(e).linebreak;if(null==e.indent&&(e.indent=hE.indent),null==e.children&&(e.children=hE.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}(),vE=/@keyframes\s+/,bE=/\$([\w-]+)/g,yE=function(e,t){return"string"==typeof e?e.replace(bE,function(e,n){return n in t?t[n]:e}):e},xE=function(e,t,n){var r=e[t],o=yE(r,n);o!==r&&(e[t]=o)},_E={onCreateRule:function(e,t,n){return"string"==typeof e&&vE.test(e)?new mE(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&xE(e,"animation-name",n.keyframes),"animation"in e&&xE(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 yE(e,r.keyframes);default:return e}}},wE=function(e){function t(){return e.apply(this,arguments)||this}return Vv(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Md({},e,{allowEmpty:!0}):e;return nE(this.key,this.style,n)},t}(aE),kE={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new wE(e,t,n):null}},SE=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=eE(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=nE(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return nE(this.at,this.style,e)},e}(),CE=/@font-face/,EE={onCreateRule:function(e,t,n){return CE.test(e)?new SE(e,t,n):null}},TE=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 nE(this.key,this.style,e)},e}(),AE={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new TE(e,t,n):null}},LE=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}(),RE={"@charset":!0,"@import":!0,"@namespace":!0},ME={onCreateRule:function(e,t,n){return e in RE?new LE(e,t,n):null}},NE=[lE,pE,_E,kE,EE,AE,ME],OE={process:!0},PE={force:!0,process:!0},IE=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=Md({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="."+iE(this.classes[d]));var f=JC(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=Md({},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 sE?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof mE&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof sE?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof mE&&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=OE);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,PE)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,PE)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=eE(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}(),zE=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Md({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new IE(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}(),DE=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}(),jE=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=Nd(t,["attached"]),o=eE(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},YC(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),FE=new jE,BE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),HE="2f1acc6c3a606b082e5eef5e54414ffb";null==BE[HE]&&(BE[HE]=0);var WE=BE[HE]++,$E=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")+WE+o+t:i+n.key+"-"+WE+(o?"-"+o:"")+"-"+t}},UE=function(e){var t;return function(){return t||(t=e()),t}},KE=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},GE=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=ZC(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},VE=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},YE=function(e,t){return e.selectorText=t,e.selectorText===t},qE=UE(function(){return document.querySelector("head")});function QE(e){var t=FE.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=qE(),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 JE=UE(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),XE=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]},ZE=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},eT=function(){function e(e){this.getPropertyValue=KE,this.setProperty=GE,this.removeProperty=VE,this.setSelector=YE,this.hasInsertedRules=!1,this.cssRules=[],e&&FE.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=JE();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=QE(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 qE().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=ZE(n,t);if(!1===(o=XE(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=ZE(n,t),l=XE(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 zE&&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}(),tT=0,nT=function(){function e(e){this.id=tT++,this.version="10.10.0",this.plugins=new DE,this.options={id:{minify:!1},createGenerateId:$E,Renderer:VC?eT:null,plugins:[]},this.generateId=$E({minify:!1});for(var t=0;t<NE.length;t++)this.plugins.use(NE[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=Md({},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===FE.index?0:FE.index+1);var r=new zE(e,Md({},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(),FE.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=Md({},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=JC(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}(),rT=function(e){return new nT(e)},oT="object"==typeof CSS&&null!=CSS&&"number"in CSS;function iT(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=iT(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
- */GE();var qE=Date.now(),QE="fnValues"+qE,JE="fnStyle"+ ++qE,XE="@global",ZE="@global ",eT=function(){function e(e,t,n){for(var r in this.type="global",this.at=XE,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new SE(xd({},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}(),tT=function(){function e(e,t,n){this.type="global",this.at=XE,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,xd({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),nT=/\s*,\s*/g;function rT(e,t){for(var n=e.split(nT),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function oT(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===XE)return new eT(e,t,n);if("@"===e[0]&&e.substr(0,8)===ZE)return new tT(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[XE]:null;if(o){for(var i in o)t.addRule(i,o[i],xd({},n,{selector:rT(i,e.selector)}));delete r[XE]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===XE){var i=rT(o.substr(7),e.selector);t.addRule(i,r[o],xd({},n,{selector:i})),delete r[o]}}(e,t))}}}var iT=/\s*,\s*/g,aT=/&/g,sT=/\$([\w-]+)/g;function lT(){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(iT),r=e.split(iT),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(aT,a):a+" "+l}return o}function n(e,t,n){if(n)return xd({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=xd({},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(sT,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,r[c],xd({},a,{selector:p})):u.addRule(h,r[c],xd({},a,{selector:p}))}else f&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var uT=/[A-Z]/g,cT=/^ms-/,dT={};function fT(e){return"-"+e.toLowerCase()}function pT(e){if(dT.hasOwnProperty(e))return dT[e];var t=e.replace(uT,fT);return dT[e]=cT.test(t)?"-"+t:t}function hT(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:pT(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(hT):t.fallbacks=hT(e.fallbacks)),t}var gT=VE&&CSS?CSS.px:"px",mT=VE&&CSS?CSS.ms:"ms",vT=VE&&CSS?CSS.percent:"%";function bT(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 yT=bT({"animation-delay":mT,"animation-duration":mT,"background-position":gT,"background-position-x":gT,"background-position-y":gT,"background-size":gT,border:gT,"border-bottom":gT,"border-bottom-left-radius":gT,"border-bottom-right-radius":gT,"border-bottom-width":gT,"border-left":gT,"border-left-width":gT,"border-radius":gT,"border-right":gT,"border-right-width":gT,"border-top":gT,"border-top-left-radius":gT,"border-top-right-radius":gT,"border-top-width":gT,"border-width":gT,"border-block":gT,"border-block-end":gT,"border-block-end-width":gT,"border-block-start":gT,"border-block-start-width":gT,"border-block-width":gT,"border-inline":gT,"border-inline-end":gT,"border-inline-end-width":gT,"border-inline-start":gT,"border-inline-start-width":gT,"border-inline-width":gT,"border-start-start-radius":gT,"border-start-end-radius":gT,"border-end-start-radius":gT,"border-end-end-radius":gT,margin:gT,"margin-bottom":gT,"margin-left":gT,"margin-right":gT,"margin-top":gT,"margin-block":gT,"margin-block-end":gT,"margin-block-start":gT,"margin-inline":gT,"margin-inline-end":gT,"margin-inline-start":gT,padding:gT,"padding-bottom":gT,"padding-left":gT,"padding-right":gT,"padding-top":gT,"padding-block":gT,"padding-block-end":gT,"padding-block-start":gT,"padding-inline":gT,"padding-inline-end":gT,"padding-inline-start":gT,"mask-position-x":gT,"mask-position-y":gT,"mask-size":gT,height:gT,width:gT,"min-height":gT,"max-height":gT,"min-width":gT,"max-width":gT,bottom:gT,left:gT,top:gT,right:gT,inset:gT,"inset-block":gT,"inset-block-end":gT,"inset-block-start":gT,"inset-inline":gT,"inset-inline-end":gT,"inset-inline-start":gT,"box-shadow":gT,"text-shadow":gT,"column-gap":gT,"column-rule":gT,"column-rule-width":gT,"column-width":gT,"font-size":gT,"font-size-delta":gT,"letter-spacing":gT,"text-decoration-thickness":gT,"text-indent":gT,"text-stroke":gT,"text-stroke-width":gT,"word-spacing":gT,motion:gT,"motion-offset":gT,outline:gT,"outline-offset":gT,"outline-width":gT,perspective:gT,"perspective-origin-x":vT,"perspective-origin-y":vT,"transform-origin":vT,"transform-origin-x":vT,"transform-origin-y":vT,"transform-origin-z":vT,"transition-delay":mT,"transition-duration":mT,"vertical-align":gT,"flex-basis":gT,"shape-margin":gT,size:gT,gap:gT,grid:gT,"grid-gap":gT,"row-gap":gT,"grid-row-gap":gT,"grid-column-gap":gT,"grid-template-rows":gT,"grid-template-columns":gT,"grid-auto-rows":gT,"grid-auto-columns":gT,"box-shadow-x":gT,"box-shadow-y":gT,"box-shadow-blur":gT,"box-shadow-spread":gT,"font-line-height":gT,"text-shadow-x":gT,"text-shadow-y":gT,"text-shadow-blur":gT});function xT(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=xT(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=xT(o,t[o],n);else for(var i in t)t[i]=xT(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||yT[e];return!a||0===t&&a===gT?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function _T(e){void 0===e&&(e={});var t=bT(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=xT(r,e[r],t);return e},onChangeValue:function(e,n){return xT(n,e,t)}}}var wT="",kT="",ST="",CT="",ET=zC&&"ontouchstart"in document.documentElement;if(zC){var TT={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},AT=document.createElement("p").style;for(var LT in TT)if(LT+"Transform"in AT){wT=LT,kT=TT[LT];break}"Webkit"===wT&&"msHyphens"in AT&&(wT="ms",kT=TT.ms,CT="edge"),"Webkit"===wT&&"-apple-trailing-word"in AT&&(ST="apple")}var RT=wT,MT=kT,NT=ST,OT=CT,PT=ET;var IT={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===RT?"-webkit-"+e:MT+e)}},zT={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===RT?MT+"print-"+e:e)}},DT=/[-\s]+(.)?/g;function jT(e,t){return t?t.toUpperCase():""}function FT(e){return e.replace(DT,jT)}function BT(e){return FT("-"+e)}var HT,WT={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===RT){var n="mask-image";if(FT(n)in t)return e;if(RT+BT(n)in t)return MT+e}return e}},$T={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==NT||PT?e:MT+e)}},UT={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:MT+e)}},KT={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:MT+e)}},GT={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===RT||"ms"===RT&&"edge"!==OT?MT+e:e)}},VT={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===RT||"ms"===RT||"apple"===NT?MT+e:e)}},YT={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===RT?"WebkitColumn"+BT(e)in t&&MT+"column-"+e:"Moz"===RT&&("page"+BT(e)in t&&"page-"+e))}},qT={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===RT)return e;var n=e.replace("-inline","");return RT+BT(n)in t&&MT+n}},QT={supportedProperty:function(e,t){return FT(e)in t&&e}},JT={supportedProperty:function(e,t){var n=BT(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:RT+n in t?MT+e:"Webkit"!==RT&&"Webkit"+n in t&&"-webkit-"+e}},XT={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===RT?""+MT+e:e)}},ZT={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===RT?MT+"scroll-chaining":e)}},eA={"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"},tA={supportedProperty:function(e,t){var n=eA[e];return!!n&&(RT+BT(n)in t&&MT+n)}},nA={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"},rA=Object.keys(nA),oA=function(e){return MT+e},iA={supportedProperty:function(e,t,n){var r=n.multiple;if(rA.indexOf(e)>-1){var o=nA[e];if(!Array.isArray(o))return RT+BT(o)in t&&MT+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(RT+BT(o[0])in t))return!1;return o.map(oA)}return!1}},aA=[IT,zT,WT,$T,UT,KT,GT,VT,YT,qT,QT,JT,XT,ZT,tA,iA],sA=aA.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),lA=aA.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Dk(t.noPrefill)),e},[]),uA={};if(zC){HT=document.createElement("p");var cA=window.getComputedStyle(document.documentElement,"");for(var dA in cA)isNaN(dA)||(uA[cA[dA]]=cA[dA]);lA.forEach(function(e){return delete uA[e]})}function fA(e,t){if(void 0===t&&(t={}),!HT)return e;if(null!=uA[e])return uA[e];"transition"!==e&&"transform"!==e||(t[e]=e in HT.style);for(var n=0;n<sA.length&&(uA[e]=sA[n](e,HT.style,t),!uA[e]);n++);try{HT.style[e]=""}catch(e){return!1}return uA[e]}var pA,hA={},gA={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},mA=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function vA(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?fA(t):", "+fA(n);return r||(t||n)}function bA(e,t){var n=t;if(!pA||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=hA[r])return hA[r];try{pA.style[e]=n}catch(e){return hA[r]=!1,!1}if(gA[e])n=n.replace(mA,vA);else if(""===pA.style[e]&&("-ms-flex"===(n=MT+n)&&(pA.style[e]="-ms-flexbox"),pA.style[e]=n,""===pA.style[e]))return hA[r]=!1,!1;return pA.style[e]="",hA[r]=n,hA[r]}function yA(){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=fA(n);i&&i!==n&&(o=!0);var a=!1,s=bA(i,WC(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"===RT?e:"@"+MT+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return bA(t,WC(e))||e}}}function xA(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=BC(e,{},n);return r[JE]=t,r},onProcessStyle:function(e,t){if(QE in t||JE 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[QE]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[JE];i&&(o.style=i(e)||{});var a=o[QE];if(a)for(var s in a)o.prop(s,a[s](e),r)}},oT(),lT(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=hT(e[t]);return e}return hT(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=pT(t);return t===r?e:(n.prop(r,e),null)}},_T(),"undefined"==typeof window?null:yA(),(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 _A(e,t){if(null==e)return{};var n,r,o=_d(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 wA(){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=xd({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}zC&&(pA=document.createElement("p"));var kA=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},SA=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},CA=function(e,t,n){e.get(t).delete(n)},EA=T.createContext(null);function TA(){return T.useContext(EA)}var AA,LA=GE(xA()),RA=OC(),MA=new Map,NA={disableGeneration:!1,generateClassName:RA,jss:LA,sheetsCache:null,sheetsManager:MA,sheetsRegistry:null},OA=T.createContext(NA);function PA(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=_A(e,["children","injectFirst","disableGeneration"]),s=xd({},T.useContext(OA),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!AA){var l=document.head;AA=document.createComment("mui-inject-first"),l.insertBefore(AA,l.firstChild)}s.jss=GE({plugins:xA().plugins,insertionPoint:AA})}return T.createElement(OA.Provider,{value:s},t)}var IA=-1e9;var zA={};function DA(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=SA(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},kA(o.sheetsManager,i,r,s));var l=xd({},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=SA(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,xd({link:!1},l))).attach(),o.sheetsCache&&kA(o.sheetsCache,i,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=YE(d)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,xd({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=wA({baseClasses:s.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function jA(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?zA:i,s=_A(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=xd({},o);return Object.keys(i).forEach(function(e){a[e]=mw(a[e],i[e])}),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:IA+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=TA()||a,r=xd({},T.useContext(OA),s),i=T.useRef(),u=T.useRef();!function(e,t){var n,r=T.useRef([]),o=T.useMemo(function(){return{}},t);r.current!==o&&(r.current=o,n=e()),T.useEffect(function(){return function(){n&&n()}},[o])}(function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return DA(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=SA(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(CA(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]),T.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=wA({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return c}}var FA=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 DC(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new TE;var n=OC();return T.createElement(PA,xd({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 T.createElement("style",xd({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function BA(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=BA(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function HA(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=BA(e))&&(r&&(r+=" "),r+=t);return r}function WA(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=T.forwardRef(function(n,r){var o=n.innerRef,i=_A(n,["innerRef"]),a=TA()||e;return T.createElement(t,xd({theme:a,ref:o||r},i))});return Pf(n,t),n}}var $A,UA=WA(),KA=Object.freeze({__proto__:null,ServerStyleSheets:FA,StylesContext:OA,StylesProvider:PA,ThemeProvider:function(e){var t=e.children,n=e.theme,r=TA(),o=T.useMemo(function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):xd({},e,t)}(r,n);return null!=e&&(e[MC]=null!==r),e},[n,r]);return T.createElement(EA.Provider,{value:o},t)},createGenerateClassName:OC,createStyles:function(e){return e},getThemeProps:PC,jssPreset:xA,makeStyles:jA,mergeClasses:wA,sheetsManager:MA,styled:function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=_A(r,["name"]),a=o,s=jA("function"==typeof t?function(e){return{root:function(n){return t(xd({theme:e},n))}}}:{root:t},xd({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=T.forwardRef(function(t,r){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,f=_A(t,["children","className","clone","component"]),p=HA(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 T.cloneElement(l,xd({className:HA(l.props.className,p)},h));if("function"==typeof l)return l(xd({className:p},h));var g=d||e;return T.createElement(g,xd({ref:r,className:p},h),l)});return Pf(l,e),l}},useTheme:TA,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=_A(t,["defaultTheme","withTheme","name"]),l=a,u=jA(e,xd({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),c=T.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=_A(e,["classes","innerRef"]),c=u(xd({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=TA()||r,a&&(d=PC({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),T.createElement(n,xd({ref:s||t,classes:c},d))});return Pf(c,n),c}},withTheme:UA,withThemeCreator:WA}),GA=i(KA);
103
+ */rT();var aT=Date.now(),sT="fnValues"+aT,lT="fnStyle"+ ++aT,uT="@global",cT="@global ",dT=function(){function e(e,t,n){for(var r in this.type="global",this.at=uT,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new IE(Md({},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}(),fT=function(){function e(e,t,n){this.type="global",this.at=uT,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,Md({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),pT=/\s*,\s*/g;function hT(e,t){for(var n=e.split(pT),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function gT(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===uT)return new dT(e,t,n);if("@"===e[0]&&e.substr(0,8)===cT)return new fT(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[uT]:null;if(o){for(var i in o)t.addRule(i,o[i],Md({},n,{selector:hT(i,e.selector)}));delete r[uT]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===uT){var i=hT(o.substr(7),e.selector);t.addRule(i,r[o],Md({},n,{selector:i})),delete r[o]}}(e,t))}}}var mT=/\s*,\s*/g,vT=/&/g,bT=/\$([\w-]+)/g;function yT(){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(mT),r=e.split(mT),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(vT,a):a+" "+l}return o}function n(e,t,n){if(n)return Md({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Md({},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(bT,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,r[c],Md({},a,{selector:p})):u.addRule(h,r[c],Md({},a,{selector:p}))}else f&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var xT=/[A-Z]/g,_T=/^ms-/,wT={};function kT(e){return"-"+e.toLowerCase()}function ST(e){if(wT.hasOwnProperty(e))return wT[e];var t=e.replace(xT,kT);return wT[e]=_T.test(t)?"-"+t:t}function CT(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ST(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(CT):t.fallbacks=CT(e.fallbacks)),t}var ET=oT&&CSS?CSS.px:"px",TT=oT&&CSS?CSS.ms:"ms",AT=oT&&CSS?CSS.percent:"%";function LT(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 RT=LT({"animation-delay":TT,"animation-duration":TT,"background-position":ET,"background-position-x":ET,"background-position-y":ET,"background-size":ET,border:ET,"border-bottom":ET,"border-bottom-left-radius":ET,"border-bottom-right-radius":ET,"border-bottom-width":ET,"border-left":ET,"border-left-width":ET,"border-radius":ET,"border-right":ET,"border-right-width":ET,"border-top":ET,"border-top-left-radius":ET,"border-top-right-radius":ET,"border-top-width":ET,"border-width":ET,"border-block":ET,"border-block-end":ET,"border-block-end-width":ET,"border-block-start":ET,"border-block-start-width":ET,"border-block-width":ET,"border-inline":ET,"border-inline-end":ET,"border-inline-end-width":ET,"border-inline-start":ET,"border-inline-start-width":ET,"border-inline-width":ET,"border-start-start-radius":ET,"border-start-end-radius":ET,"border-end-start-radius":ET,"border-end-end-radius":ET,margin:ET,"margin-bottom":ET,"margin-left":ET,"margin-right":ET,"margin-top":ET,"margin-block":ET,"margin-block-end":ET,"margin-block-start":ET,"margin-inline":ET,"margin-inline-end":ET,"margin-inline-start":ET,padding:ET,"padding-bottom":ET,"padding-left":ET,"padding-right":ET,"padding-top":ET,"padding-block":ET,"padding-block-end":ET,"padding-block-start":ET,"padding-inline":ET,"padding-inline-end":ET,"padding-inline-start":ET,"mask-position-x":ET,"mask-position-y":ET,"mask-size":ET,height:ET,width:ET,"min-height":ET,"max-height":ET,"min-width":ET,"max-width":ET,bottom:ET,left:ET,top:ET,right:ET,inset:ET,"inset-block":ET,"inset-block-end":ET,"inset-block-start":ET,"inset-inline":ET,"inset-inline-end":ET,"inset-inline-start":ET,"box-shadow":ET,"text-shadow":ET,"column-gap":ET,"column-rule":ET,"column-rule-width":ET,"column-width":ET,"font-size":ET,"font-size-delta":ET,"letter-spacing":ET,"text-decoration-thickness":ET,"text-indent":ET,"text-stroke":ET,"text-stroke-width":ET,"word-spacing":ET,motion:ET,"motion-offset":ET,outline:ET,"outline-offset":ET,"outline-width":ET,perspective:ET,"perspective-origin-x":AT,"perspective-origin-y":AT,"transform-origin":AT,"transform-origin-x":AT,"transform-origin-y":AT,"transform-origin-z":AT,"transition-delay":TT,"transition-duration":TT,"vertical-align":ET,"flex-basis":ET,"shape-margin":ET,size:ET,gap:ET,grid:ET,"grid-gap":ET,"row-gap":ET,"grid-row-gap":ET,"grid-column-gap":ET,"grid-template-rows":ET,"grid-template-columns":ET,"grid-auto-rows":ET,"grid-auto-columns":ET,"box-shadow-x":ET,"box-shadow-y":ET,"box-shadow-blur":ET,"box-shadow-spread":ET,"font-line-height":ET,"text-shadow-x":ET,"text-shadow-y":ET,"text-shadow-blur":ET});function MT(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=MT(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=MT(o,t[o],n);else for(var i in t)t[i]=MT(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||RT[e];return!a||0===t&&a===ET?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function NT(e){void 0===e&&(e={});var t=LT(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=MT(r,e[r],t);return e},onChangeValue:function(e,n){return MT(n,e,t)}}}var OT="",PT="",IT="",zT="",DT=VC&&"ontouchstart"in document.documentElement;if(VC){var jT={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},FT=document.createElement("p").style;for(var BT in jT)if(BT+"Transform"in FT){OT=BT,PT=jT[BT];break}"Webkit"===OT&&"msHyphens"in FT&&(OT="ms",PT=jT.ms,zT="edge"),"Webkit"===OT&&"-apple-trailing-word"in FT&&(IT="apple")}var HT=OT,WT=PT,$T=IT,UT=zT,KT=DT;var GT={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===HT?"-webkit-"+e:WT+e)}},VT={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===HT?WT+"print-"+e:e)}},YT=/[-\s]+(.)?/g;function qT(e,t){return t?t.toUpperCase():""}function QT(e){return e.replace(YT,qT)}function JT(e){return QT("-"+e)}var XT,ZT={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===HT){var n="mask-image";if(QT(n)in t)return e;if(HT+JT(n)in t)return WT+e}return e}},eA={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==$T||KT?e:WT+e)}},tA={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:WT+e)}},nA={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:WT+e)}},rA={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===HT||"ms"===HT&&"edge"!==UT?WT+e:e)}},oA={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===HT||"ms"===HT||"apple"===$T?WT+e:e)}},iA={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===HT?"WebkitColumn"+JT(e)in t&&WT+"column-"+e:"Moz"===HT&&("page"+JT(e)in t&&"page-"+e))}},aA={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===HT)return e;var n=e.replace("-inline","");return HT+JT(n)in t&&WT+n}},sA={supportedProperty:function(e,t){return QT(e)in t&&e}},lA={supportedProperty:function(e,t){var n=JT(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:HT+n in t?WT+e:"Webkit"!==HT&&"Webkit"+n in t&&"-webkit-"+e}},uA={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===HT?""+WT+e:e)}},cA={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===HT?WT+"scroll-chaining":e)}},dA={"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"},fA={supportedProperty:function(e,t){var n=dA[e];return!!n&&(HT+JT(n)in t&&WT+n)}},pA={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"},hA=Object.keys(pA),gA=function(e){return WT+e},mA={supportedProperty:function(e,t,n){var r=n.multiple;if(hA.indexOf(e)>-1){var o=pA[e];if(!Array.isArray(o))return HT+JT(o)in t&&WT+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(HT+JT(o[0])in t))return!1;return o.map(gA)}return!1}},vA=[GT,VT,ZT,eA,tA,nA,rA,oA,iA,aA,sA,lA,uA,cA,fA,mA],bA=vA.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),yA=vA.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Yk(t.noPrefill)),e},[]),xA={};if(VC){XT=document.createElement("p");var _A=window.getComputedStyle(document.documentElement,"");for(var wA in _A)isNaN(wA)||(xA[_A[wA]]=_A[wA]);yA.forEach(function(e){return delete xA[e]})}function kA(e,t){if(void 0===t&&(t={}),!XT)return e;if(null!=xA[e])return xA[e];"transition"!==e&&"transform"!==e||(t[e]=e in XT.style);for(var n=0;n<bA.length&&(xA[e]=bA[n](e,XT.style,t),!xA[e]);n++);try{XT.style[e]=""}catch(e){return!1}return xA[e]}var SA,CA={},EA={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},TA=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function AA(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?kA(t):", "+kA(n);return r||(t||n)}function LA(e,t){var n=t;if(!SA||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=CA[r])return CA[r];try{SA.style[e]=n}catch(e){return CA[r]=!1,!1}if(EA[e])n=n.replace(TA,AA);else if(""===SA.style[e]&&("-ms-flex"===(n=WT+n)&&(SA.style[e]="-ms-flexbox"),SA.style[e]=n,""===SA.style[e]))return CA[r]=!1,!1;return SA.style[e]="",CA[r]=n,CA[r]}function RA(){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=kA(n);i&&i!==n&&(o=!0);var a=!1,s=LA(i,ZC(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"===HT?e:"@"+WT+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return LA(t,ZC(e))||e}}}function MA(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=JC(e,{},n);return r[lT]=t,r},onProcessStyle:function(e,t){if(sT in t||lT 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[sT]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[lT];i&&(o.style=i(e)||{});var a=o[sT];if(a)for(var s in a)o.prop(s,a[s](e),r)}},gT(),yT(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=CT(e[t]);return e}return CT(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=ST(t);return t===r?e:(n.prop(r,e),null)}},NT(),"undefined"==typeof window?null:RA(),(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 NA(e,t){if(null==e)return{};var n,r,o=Nd(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 OA(){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=Md({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}VC&&(SA=document.createElement("p"));var PA=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},IA=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},zA=function(e,t,n){e.get(t).delete(n)},DA=T.createContext(null);function jA(){return T.useContext(DA)}var FA,BA=rT(MA()),HA=UC(),WA=new Map,$A={disableGeneration:!1,generateClassName:HA,jss:BA,sheetsCache:null,sheetsManager:WA,sheetsRegistry:null},UA=T.createContext($A);function KA(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=NA(e,["children","injectFirst","disableGeneration"]),s=Md({},T.useContext(UA),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!FA){var l=document.head;FA=document.createComment("mui-inject-first"),l.insertBefore(FA,l.firstChild)}s.jss=rT({plugins:MA().plugins,insertionPoint:FA})}return T.createElement(UA.Provider,{value:s},t)}var GA=-1e9;var VA={};function YA(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=IA(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},PA(o.sheetsManager,i,r,s));var l=Md({},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=IA(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,Md({link:!1},l))).attach(),o.sheetsCache&&PA(o.sheetsCache,i,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=iT(d)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,Md({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=OA({baseClasses:s.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function qA(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?VA:i,s=NA(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=Md({},o);return Object.keys(i).forEach(function(e){a[e]=Tw(a[e],i[e])}),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:GA+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=jA()||a,r=Md({},T.useContext(UA),s),i=T.useRef(),u=T.useRef();!function(e,t){var n,r=T.useRef([]),o=T.useMemo(function(){return{}},t);r.current!==o&&(r.current=o,n=e()),T.useEffect(function(){return function(){n&&n()}},[o])}(function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return YA(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=IA(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(zA(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]),T.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=OA({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return c}}var QA=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 YC(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new jE;var n=UC();return T.createElement(KA,Md({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 T.createElement("style",Md({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function JA(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=JA(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function XA(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=JA(e))&&(r&&(r+=" "),r+=t);return r}function ZA(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=T.forwardRef(function(n,r){var o=n.innerRef,i=NA(n,["innerRef"]),a=jA()||e;return T.createElement(t,Md({theme:a,ref:o||r},i))});return Kf(n,t),n}}var eL,tL=ZA(),nL=Object.freeze({__proto__:null,ServerStyleSheets:QA,StylesContext:UA,StylesProvider:KA,ThemeProvider:function(e){var t=e.children,n=e.theme,r=jA(),o=T.useMemo(function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Md({},e,t)}(r,n);return null!=e&&(e[WC]=null!==r),e},[n,r]);return T.createElement(DA.Provider,{value:o},t)},createGenerateClassName:UC,createStyles:function(e){return e},getThemeProps:KC,jssPreset:MA,makeStyles:qA,mergeClasses:OA,sheetsManager:WA,styled:function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=NA(r,["name"]),a=o,s=qA("function"==typeof t?function(e){return{root:function(n){return t(Md({theme:e},n))}}}:{root:t},Md({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=T.forwardRef(function(t,r){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,f=NA(t,["children","className","clone","component"]),p=XA(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 T.cloneElement(l,Md({className:XA(l.props.className,p)},h));if("function"==typeof l)return l(Md({className:p},h));var g=d||e;return T.createElement(g,Md({ref:r,className:p},h),l)});return Kf(l,e),l}},useTheme:jA,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=NA(t,["defaultTheme","withTheme","name"]),l=a,u=qA(e,Md({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),c=T.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=NA(e,["classes","innerRef"]),c=u(Md({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=jA()||r,a&&(d=KC({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),T.createElement(n,Md({ref:s||t,classes:c},d))});return Kf(c,n),c}},withTheme:tL,withThemeCreator:ZA}),rL=i(nL);
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 VA(){if($A)return RC;$A=1,Object.defineProperty(RC,"__esModule",{value:!0}),RC.default=function(t){return(0,e.createStyles)(t)};var e=GA;return RC}var YA,qA,QA={},JA={};function XA(){if(YA)return JA;YA=1;var e=Bm();Object.defineProperty(JA,"__esModule",{value:!0}),JA.default=void 0;var t=(0,e(EC()).default)();return JA.default=t,JA}function ZA(){if(qA)return QA;qA=1;var e=Bm();Object.defineProperty(QA,"__esModule",{value:!0}),QA.default=void 0;var t=e(vv()),n=GA,r=e(XA());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 QA.default=o,QA}var eL,tL,nL={},rL={};function oL(){if(eL)return rL;eL=1;var e=Bm();Object.defineProperty(rL,"__esModule",{value:!0}),rL.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},rL.getUnit=n,rL.toUnitless=r,rL.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}},rL.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},rL.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},rL.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(Ww());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return rL}function iL(){if(tL)return nL;tL=1;var e=Bm();Object.defineProperty(nL,"__esModule",{value:!0}),nL.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,g=(0,r.convertLength)(h.htmlFontSize),m=a.map(function(e){return p.breakpoints.values[e]});return f.forEach(function(e){var o=h[e],i=parseFloat(g(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(g(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:m,transform:d}))}}),p};var t=e(vv()),n=Mw,r=oL();return nL}var aL,sL={};function lL(){if(aL)return sL;aL=1;var e=Bm();Object.defineProperty(sL,"__esModule",{value:!0}),sL.default=void 0;var t=e(vv()),n=GA,r=e(XA()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return sL.default=o,sL}var uL,cL={};function dL(){if(uL)return cL;uL=1;var e=Bm();Object.defineProperty(cL,"__esModule",{value:!0}),cL.default=function(){return(0,t.useTheme)()||n.default};var t=GA;e(h());var n=e(XA());return cL}var fL,pL={};function hL(){if(fL)return pL;fL=1;var e=Bm();Object.defineProperty(pL,"__esModule",{value:!0}),pL.default=void 0;var t=e(vv()),n=GA,r=e(XA());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return pL.default=o,pL}var gL,mL,vL={};function bL(){if(gL)return vL;gL=1;var e=Bm();Object.defineProperty(vL,"__esModule",{value:!0}),vL.default=void 0;var t=GA,n=e(XA()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return vL.default=r,vL}function yL(){return mL||(mL=1,function(e){var t=Bm(),n=(lw||(lw=1,function(e){var t=fw().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}(cw)),cw.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 g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var o=Nw();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(EC()),a=t(LC()),s=t(VA()),l=t(ZA()),u=t(iL()),c=t(lL()),d=_C();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(dL()),p=t(hL()),h=t(bL()),g=GA}(uw)),uw}var xL=yL();xL.alpha(D_.GREYSCALE_0,.05),xL.alpha(D_.GREEN_PALE,.5),xL.alpha(D_.BLUE_PALE,.5),xL.alpha(D_.GREEN_PALE,.5),xL.alpha(D_.BLUE_PALE,.5),xL.alpha(D_.GREEN_PALE,.5),xL.alpha(D_.BLUE_PALE,.5),xL.alpha(D_.GREEN_PALE,.5),xL.alpha(D_.BLUE_PALE,.5),xL.alpha(D_.GREEN_PALE,.5),xL.alpha(D_.BLUE_PALE,.5);const _L=(e,t)=>ju.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:ju.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"})}),wL=E.forwardRef(_L);var kL=Object.defineProperty,SL=(e,t)=>{for(var n in t)kL(e,n,{get:t[n],enumerable:!0})},CL=(e,t,n)=>((e,t,n)=>t in e?kL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),EL={};SL(EL,{af:()=>OL,ak:()=>PL,am:()=>IL,an:()=>zL,ar:()=>DL,ars:()=>jL,as:()=>FL,asa:()=>BL,ast:()=>HL,az:()=>WL,bal:()=>$L,be:()=>UL,bem:()=>KL,bez:()=>GL,bg:()=>VL,bho:()=>YL,blo:()=>qL,bm:()=>QL,bn:()=>JL,bo:()=>XL,br:()=>ZL,brx:()=>eR,bs:()=>tR,ca:()=>nR,ce:()=>rR,ceb:()=>oR,cgg:()=>iR,chr:()=>aR,ckb:()=>sR,cs:()=>lR,cy:()=>uR,da:()=>cR,de:()=>dR,doi:()=>fR,dsb:()=>pR,dv:()=>hR,dz:()=>gR,ee:()=>mR,el:()=>vR,en:()=>bR,eo:()=>yR,es:()=>xR,et:()=>_R,eu:()=>wR,fa:()=>kR,ff:()=>SR,fi:()=>CR,fil:()=>ER,fo:()=>TR,fr:()=>AR,fur:()=>LR,fy:()=>RR,ga:()=>MR,gd:()=>NR,gl:()=>OR,gsw:()=>PR,gu:()=>IR,guw:()=>zR,gv:()=>DR,ha:()=>jR,haw:()=>FR,he:()=>BR,hi:()=>HR,hnj:()=>WR,hr:()=>$R,hsb:()=>UR,hu:()=>KR,hy:()=>GR,ia:()=>VR,id:()=>YR,ig:()=>qR,ii:()=>QR,io:()=>JR,is:()=>XR,it:()=>ZR,iu:()=>eM,ja:()=>tM,jbo:()=>nM,jgo:()=>rM,jmc:()=>oM,jv:()=>iM,jw:()=>aM,ka:()=>sM,kab:()=>lM,kaj:()=>uM,kcg:()=>cM,kde:()=>dM,kea:()=>fM,kk:()=>pM,kkj:()=>hM,kl:()=>gM,km:()=>mM,kn:()=>vM,ko:()=>bM,ks:()=>yM,ksb:()=>xM,ksh:()=>_M,ku:()=>wM,kw:()=>kM,ky:()=>SM,lag:()=>CM,lb:()=>EM,lg:()=>TM,lij:()=>AM,lkt:()=>LM,ln:()=>RM,lo:()=>MM,lt:()=>NM,lv:()=>OM,mas:()=>PM,mg:()=>IM,mgo:()=>zM,mk:()=>DM,ml:()=>jM,mn:()=>FM,mo:()=>BM,mr:()=>HM,ms:()=>WM,mt:()=>$M,my:()=>UM,nah:()=>KM,naq:()=>GM,nb:()=>VM,nd:()=>YM,ne:()=>qM,nl:()=>QM,nn:()=>JM,nnh:()=>XM,no:()=>ZM,nqo:()=>eN,nr:()=>tN,nso:()=>nN,ny:()=>rN,nyn:()=>oN,om:()=>iN,or:()=>aN,os:()=>sN,osa:()=>lN,pa:()=>uN,pap:()=>cN,pcm:()=>dN,pl:()=>fN,prg:()=>pN,ps:()=>hN,pt:()=>gN,pt_PT:()=>mN,rm:()=>vN,ro:()=>bN,rof:()=>yN,ru:()=>xN,rwk:()=>_N,sah:()=>wN,saq:()=>kN,sat:()=>SN,sc:()=>CN,scn:()=>EN,sd:()=>TN,sdh:()=>AN,se:()=>LN,seh:()=>RN,ses:()=>MN,sg:()=>NN,sh:()=>ON,shi:()=>PN,si:()=>IN,sk:()=>zN,sl:()=>DN,sma:()=>jN,smi:()=>FN,smj:()=>BN,smn:()=>HN,sms:()=>WN,sn:()=>$N,so:()=>UN,sq:()=>KN,sr:()=>GN,ss:()=>VN,ssy:()=>YN,st:()=>qN,su:()=>QN,sv:()=>JN,sw:()=>XN,syr:()=>ZN,ta:()=>eO,te:()=>tO,teo:()=>nO,th:()=>rO,ti:()=>oO,tig:()=>iO,tk:()=>aO,tl:()=>sO,tn:()=>lO,to:()=>uO,tpi:()=>cO,tr:()=>dO,ts:()=>fO,tzm:()=>pO,ug:()=>hO,uk:()=>gO,und:()=>mO,ur:()=>vO,uz:()=>bO,ve:()=>yO,vec:()=>xO,vi:()=>_O,vo:()=>wO,vun:()=>kO,wa:()=>SO,wae:()=>CO,wo:()=>EO,xh:()=>TO,xog:()=>AO,yi:()=>LO,yo:()=>RO,yue:()=>MO,zh:()=>NO,zu:()=>OO});var TL=(e,t)=>t?"other":1==e?"one":"other",AL=(e,t)=>t?"other":0==e||1==e?"one":"other",LL=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",RL=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},ML=(e,t)=>"other",NL=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",OL=TL,PL=AL,IL=LL,zL=TL,DL=(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"},jL=(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"},FL=(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",BL=TL,HL=RL,WL=(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"},$L=(e,t)=>1==e?"one":"other",UL=(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"},KL=TL,GL=TL,VL=TL,YL=AL,qL=(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"},QL=ML,JL=(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",XL=ML,ZL=(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"},eR=TL,tR=(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"},nR=(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"},rR=TL,oR=(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"},iR=TL,aR=TL,sR=TL,lR=(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"},uR=(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",cR=(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"},dR=RL,fR=LL,pR=(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"},hR=TL,gR=ML,mR=TL,vR=TL,bR=(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"},yR=TL,xR=(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"},_R=RL,wR=TL,kR=LL,SR=(e,t)=>t?"other":e>=0&&e<2?"one":"other",CR=RL,ER=(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"},TR=TL,AR=(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"},LR=TL,RR=RL,MR=(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"},NR=(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"},OR=RL,PR=TL,IR=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",zR=AL,DR=(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"},jR=TL,FR=TL,BR=(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"},HR=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",WR=ML,$R=(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"},UR=(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"},KR=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",GR=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",VR=RL,YR=ML,qR=ML,QR=ML,JR=RL,XR=(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"},ZR=(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"},eM=NL,tM=ML,nM=ML,rM=TL,oM=TL,iM=ML,aM=ML,sM=(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"},lM=(e,t)=>t?"other":e>=0&&e<2?"one":"other",uM=TL,cM=TL,dM=ML,fM=ML,pM=(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"},hM=TL,gM=TL,mM=ML,vM=LL,bM=ML,yM=TL,xM=TL,_M=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",wM=TL,kM=(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"},SM=TL,CM=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},EM=TL,TM=TL,AM=(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"},LM=ML,RM=AL,MM=(e,t)=>t&&1==e?"one":"other",NM=(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"},OM=(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"},PM=TL,IM=AL,zM=TL,DM=(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"},jM=TL,FM=TL,BM=(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"},HM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",WM=(e,t)=>t&&1==e?"one":"other",$M=(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"},UM=ML,KM=TL,GM=NL,VM=TL,YM=TL,qM=(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"},QM=RL,JM=TL,XM=TL,ZM=TL,eN=ML,tN=TL,nN=AL,rN=TL,oN=TL,iN=TL,aN=(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"},sN=TL,lN=ML,uN=AL,cN=TL,dN=LL,fN=(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"},pN=(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"},hN=TL,gN=(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"},mN=(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"},vN=TL,bN=(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"},yN=TL,xN=(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"},_N=TL,wN=ML,kN=TL,SN=NL,CN=(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"},EN=(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"},TN=TL,AN=TL,LN=NL,RN=TL,MN=ML,NN=ML,ON=(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"},PN=(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"},IN=(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"},zN=(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"},DN=(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"},jN=NL,FN=NL,BN=NL,HN=NL,WN=NL,$N=TL,UN=TL,KN=(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"},GN=(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"},VN=TL,YN=TL,qN=TL,QN=ML,JN=(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"},XN=RL,ZN=TL,eO=TL,tO=TL,nO=TL,rO=ML,oO=AL,iO=TL,aO=(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"},sO=(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"},lO=TL,uO=ML,cO=ML,dO=TL,fO=TL,pO=(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"},hO=TL,gO=(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"},mO=ML,vO=RL,bO=TL,yO=TL,xO=(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"},_O=(e,t)=>t&&1==e?"one":"other",wO=TL,kO=TL,SO=AL,CO=TL,EO=ML,TO=TL,AO=TL,LO=RL,RO=ML,MO=ML,NO=ML,OO=LL,PO={},IO=Array.prototype.slice,zO=function(e){return("0"+e.toString()).substr(-2)},DO=function(e){var t=typeof e;return"function"===t||"object"===t},jO=function(e){return"function"===typeof e},FO=function(e){return null!=e},BO=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},HO=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},WO=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},$O=function(e){return!0===e||!1===e},UO=function(e){return null===e},KO=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))))},GO=function(e,t){return jO(e)?e(t):e},VO=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],HO(r)||WO(r)||$O(r)||BO(r)||UO(r)?e[n]=r:(null==e[n]&&(e[n]={}),VO(e[n],r)));return e},YO={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"]},qO={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},QO={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},JO={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},XO=[null,"kb","mb","gb","tb"],ZO={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};PO.reset=function(){var e;for(e in ZO)this[e]=ZO[e]},PO.initializeOptions=function(){var e;for(e in ZO)FO(this[e])||(this[e]=ZO[e])},PO.initializeOptions(),PO.locales={},PO.locales.get=function(e){var t=this[e]||this[PO.locale]||this.default;return jO(t)&&(t=t(e)),!1===BO(t)&&(t=[t]),t},PO.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&PO.locale&&t.push(PO.locale),PO.fallbacks&&PO.defaultLocale&&t.push(PO.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),PO.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},PO.pluralization={},PO.pluralization.get=function(e){return this[e]||this[PO.locale]||this.default},PO.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},PO.currentLocale=function(){return this.locale||this.defaultLocale},PO.isSet=FO,PO.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(FO(t.defaultValue))return GO(t.defaultValue,e)},PO.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&DO(n))for(;i.length;)if(r=i.shift(),FO(n[r])){o=n[r];break}return o},PO.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()],DO(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&FO(n.defaultValue)&&(a=DO(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},PO.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:YO.meridian},PO.prepareOptions=function(){for(var e,t=IO.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(FO(n[r])||(n[r]=e[r]));return n},PO.createTranslationOptions=function(e,t){var n=[{scope:e}];return FO(t.defaults)&&(n=n.concat(t.defaults)),FO(t.defaultValue)&&n.push({message:t.defaultValue}),n},PO.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(FO(t.scope)?(o=t.scope,n=this.lookup(o,i)):FO(t.message)&&(n=GO(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):BO(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):DO(n)&&FO(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},PO.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=FO(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,"$")},PO.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))},PO.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]'},PO.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},PO.nullPlaceholder=function(){return PO.missingPlaceholder.apply(PO,arguments)},PO.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),qO);var n,r,o=e<0,i=function(e,t){return KO("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)},PO.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),QO),this.toNumber(e,t)},PO.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)}},PO.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},PO.strftime=function(e,t,n){n=this.lookup("date",n);var r=PO.meridian();if(n||(n={}),n=this.prepareOptions(n,YO),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)),g=Math.abs(p)-60*h,m=(p>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(g.toString().length<2?"0"+g:g);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",zO(i))).replace("%e",i)).replace("%-d",i)).replace("%H",zO(l))).replace("%-H",l)).replace("%k",l)).replace("%I",zO(u))).replace("%-I",u)).replace("%l",u)).replace("%m",zO(s))).replace("%-m",s)).replace("%M",zO(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",zO(d))).replace("%-S",d)).replace("%w",o)).replace("%y",zO(a))).replace("%-y",zO(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",m)).replace("%Z",m)},PO.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},PO.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),JO),this.toNumber(e,t)},PO.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."+XO[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)},PO.getFullScope=function(e,t){return t=t||{},BO(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},PO.extend=function(e,t){return void 0===e&&void 0===t?{}:VO(e,t)},PO.t=PO.translate.bind(PO),PO.l=PO.localize.bind(PO),PO.p=PO.pluralize.bind(PO);SL({},{DEFAULT_LANGUAGE:()=>tP,DEFAULT_LANGUAGE_SHORT:()=>nP,flattenParams:()=>dP,flattenTranslationsJSON:()=>iP,format:()=>fP,formatWithKeys:()=>pP,getLongLanguageDesc:()=>cP,getShortLanguageDesc:()=>uP,parseLangFromUrl:()=>aP,resolveLocale:()=>lP,updateLangAttribute:()=>hP});var eP=[{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"}],tP="en-US",nP="en",rP=["zh-cn","zh-tw","qps-ploc"],oP=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),iP=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),oP(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=oP(r)&&r.value;return o&&(t[n]=o),t},{}):{}),aP=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},sP=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(rP.includes(e.toLocaleLowerCase()))return eP.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return eP.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},lP=(...e)=>{for(const t of e){const e=sP(t);if(e)return e.short}},uP=e=>{const t=sP(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${nP}'`),nP)},cP=e=>{const t=sP(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${tP}'`),tP)},dP=e=>Array.isArray(e[0])?e[0]:e,fP=(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)},pP=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),hP=e=>{const t=uP(e);document.documentElement.setAttribute("lang",t)},gP=class e{static configure(t,n=tP){e.translations=t,e.language=cP(n),e.languageShort=uP(n),hP(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=PO,PO.missingTranslation=e=>e,PO.defaultSeparator=null,PO.locale=e.language,PO.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];PO.pluralization[e.language]=e=>{try{const t=EL[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=pP(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))}}};CL(gP,"translations",{}),CL(gP,"translationsPlurals",{}),CL(gP,"language"),CL(gP,"languageShort"),CL(gP,"onTranslationsChangeListeners",[]),CL(gP,"i18nProvider"),CL(gP,"get",(e,...t)=>{var n;const r=dP(t);let o=null!=(n=gP.translations[e])?n:e;return r.length>0&&(o=fP(o,...r)),o});var mP=gP;var vP=function(){const[e,t]=E.useState(0);return E.useEffect(()=>{const n=mP.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),mP.get},bP=mP;function yP({defaultSelection:e}){const[t]=Ou();return E.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 xP(e,t=!0){if(e)return!1;let n=wi().getTextContent();return t&&(n=n.trim()),""===n}function _P(e){return()=>function(e){if(!xP(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(Ro(n))return!1;if(To(n)){if(!Ho(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!mr(t[e]))return!1}}return!0}(e)}const wP="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function kP({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:g,role:m="textbox",spellCheck:v=!0,style:b,tabIndex:y,"data-testid":x,..._},w){const[k,S]=E.useState(e.isEditable()),C=E.useCallback(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),T=E.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 wP(()=>(S(e.isEditable()),e.registerEditableListener(e=>{S(e)})),[e]),ju.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"===m?!!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:g,ref:T,role:m,spellCheck:v,style:b,tabIndex:y,..._})}const SP=E.forwardRef(kP);function CP(e){return e.getEditorState().read(_P(e.isComposing()))}const EP=E.forwardRef(TP);function TP(e,t){const{placeholder:n,...r}=e,[o]=Ou();return ju.jsxs(ju.Fragment,{children:[ju.jsx(SP,{editor:o,...r,ref:t}),null!=n&&ju.jsx(AP,{editor:o,content:n})]})}function AP({content:e,editor:t}){const n=function(e){const[t,n]=E.useState(()=>CP(e));return wP(()=>{function t(){const t=CP(e);n(t)}return t(),bs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=E.useState(t.isEditable());if(E.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:ju.jsx("div",{"aria-hidden":!0,children:i})}const LP=E.createContext(null),RP={didCatch:!1,error:null};class MP extends E.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=RP}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(RP))}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(RP))}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=E.createElement(n,e);else{if(void 0===r)throw i;a=r}}return E.createElement(LP.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function NP({children:e,onError:t}){return ju.jsx(MP,{fallback:ju.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const OP={name:"@lexical/react/ReactProvider"};function PP(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const IP="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function zP({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=E.useState(()=>e.getDecorators());return IP(()=>e.registerDecoratorListener(e=>{Dv.flushSync(()=>{r(e)})}),[e]),E.useEffect(()=>{r(e.getDecorators())},[e]),E.useMemo(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const a=o[i],s=ju.jsx(t,{onError:t=>e._onError(t),children:ju.jsx(E.Suspense,{fallback:null,children:n[a]})}),l=e.getElementByKey(a);null!==l&&r.push(Dv.createPortal(s,l,a))}return r},[t,n,e])}(e,t)}function DP({editor:e,ErrorBoundary:t}){return function(e){const t=Al.maybeFromEditor(e);if(t&&t.hasExtensionByName(OP.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&PP(320,e);return!0}return!1}(e)?null:ju.jsx(zP,{editor:e,ErrorBoundary:t})}function jP(e){return e.getEditorState().read(_P(e.isComposing()))}function FP({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Ou();return function(e){IP(()=>bs(Mc(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=$r();if(Er(e)){const t=e.anchor;let l=t.getNode(),u=0,c=0;if(mr(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()),mr(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])}(r),ju.jsxs(ju.Fragment,{children:[e,ju.jsx(BP,{content:t}),ju.jsx(DP,{editor:r,ErrorBoundary:n})]})}function BP({content:e}){const[t]=Ou(),n=function(e){const[t,n]=E.useState(()=>jP(e));return IP(()=>{function t(){const t=jP(e);n(t)}return t(),bs(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=zc();return n?"function"==typeof e?e(r):e:null}const HP=(e,t)=>ju.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:ju.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"})}),WP=E.forwardRef(HP),$P=(e,t)=>ju.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:[ju.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),ju.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),UP=E.forwardRef($P),KP=(e,t)=>ju.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:ju.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})}),GP=E.forwardRef(KP),VP=(e,t)=>ju.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:ju.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),YP=E.forwardRef(VP),qP=(e,t)=>ju.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:ju.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),QP=E.forwardRef(qP),JP=(e,t)=>ju.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:ju.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"})}),XP=E.forwardRef(JP),ZP=(e,t)=>ju.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:ju.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"})}),eI=E.forwardRef(ZP),tI=(e,t)=>ju.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:ju.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"})}),nI=E.forwardRef(tI),rI=(e,t)=>ju.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:ju.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"})}),oI=E.forwardRef(rI),iI=(e,t)=>ju.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:ju.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"})}),aI=E.forwardRef(iI),sI=(e,t)=>ju.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:ju.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"})}),lI=E.forwardRef(sI),uI=(e,t)=>ju.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:ju.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"})}),cI=E.forwardRef(uI),dI=(e,t)=>ju.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:ju.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"})}),fI=E.forwardRef(dI),pI=(e,t)=>ju.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:ju.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"})}),hI=E.forwardRef(pI),gI=(e,t)=>ju.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:ju.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"})}),mI=E.forwardRef(gI),vI=(e,t)=>ju.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:ju.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"})}),bI=E.forwardRef(vI);var yI,xI,_I={exports:{}},wI={};function kI(e){return kI="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},kI(e)}var SI=(xI||(xI=1,_I.exports=function(){if(yI)return wI;yI=1;var e=T,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 wI.Fragment=n,wI.jsx=a,wI.jsxs=a,wI}()),_I.exports);const CI=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,EI=[e=>{const t=CI.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 TI(){return SI.jsx(Oc,{matchers:EI})}const AI=()=>{const[e]=Ou(),t=zc(),n=E.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 E.useEffect(()=>bs(e.registerMutationListener(Rl,e=>{n(e)}),e.registerMutationListener(Pl,e=>{n(e)}),e.registerCommand(ft,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=$r();let t;if(Er(e)&&(t=e.focus.getNode().getParent()),Ar(e)&&(t=e.getNodes()[0]),zl(t)||Ol(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),0)),[e,n]),null};function LI(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?Ts(n)?r:o:Ts(t)?r:o}const RI=new Set(["http:","https:","mailto:","sms:","tel:"]),MI=e=>{const t=e;return t.password="",t.username="",t};function NI(e){try{const t=new URL(e);return RI.has(t.protocol)?{url:MI(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const OI=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function PI(e){return"https://"===e||OI.test(e)}const II=Rv(Vx)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),zI=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=E.useRef(null),[a,s]=E.useState(t);E.useEffect(()=>{s(t)},[t]);const l=E.useCallback(()=>{n(a),window.open(NI(a).url,"_blank"),r()},[a,r,n]),u=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(a)},[a,n]),c=E.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))},[a,n]),d=E.useCallback(e=>{e.preventDefault(),s(e.currentTarget.value)},[]);return SI.jsx(cx,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>SI.jsx(Xx,{...e,children:SI.jsx(ob,{className:"tekPopperMenu",children:SI.jsxs(II,{direction:"row",children:[SI.jsx(Cx,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),SI.jsx(Tb,{onClick:l,children:SI.jsx(O_,{})}),SI.jsx(Tb,{onClick:u,children:SI.jsx(I_,{})})]})})})})},DI=()=>{const[e]=Ou(),t=zc(),[n,r]=E.useState(null),[o,i]=E.useState(""),a=E.useRef(!1),s=E.useCallback(()=>{if(a.current)return a.current=!1,!1;const t=$r();if(Er(t)){const n=LI(t),o=n.getParent();if(zl(o)||zl(n))return r(null),i(""),!1;let a;if(Ol(o)&&(a=o),Ol(n)&&(a=n),Ol(a)){const t=e.getElementByKey(a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1},[e]),l=E.useCallback(t=>{a.current=!0,e.update(()=>{e.dispatchCommand(Dl,NI(t))},{onUpdate:()=>{r(null)}})},[e]),u=E.useCallback(()=>{r(null)},[]);return E.useEffect(()=>bs(e.registerCommand(ct,()=>s(),1),e.registerCommand(ft,()=>s(),1)),[e,s]),t?SI.jsx(zI,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function jI(){return SI.jsx(z_,{validateUrl:PI})}!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 FI=({children:e})=>SI.jsx(Nv,{theme:aw(),children:e}),BI={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:[_c,bc,xu,gu,Rl,Pl],onError:e=>{console.log(e)}},HI=({children:e,initialConfig:t,flags:n})=>SI.jsx(FI,{children:SI.jsx("div",{className:"tek__editor__Wrapper",children:SI.jsx(Wu,{initialConfig:t||BI,children:SI.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,SI.jsx(Yu,{}),SI.jsx(qu,{}),SI.jsx(jI,{}),SI.jsx(TI,{}),SI.jsx(DI,{}),SI.jsx(AI,{}),SI.jsx(Vu,{})]})})})});let WI=class e extends Eo{__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 $I=e=>new WI(e),UI=e=>e instanceof WI;let KI=class e extends Eo{__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 GI(e){return e instanceof KI}let VI=class e extends Eo{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 YI(e){return e instanceof VI}const qI=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),UI(t))return t;return null},QI=e=>{let t=e;for(;null!==t;){if(GI(t))return t;t=t?.getParent()}return null},JI=(e,t)=>{const n=QI(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},XI=e=>{const t=e?.getChildAtIndex(2);return t},ZI=e=>{const t=e.getParent();if(YI(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},ez=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,tz=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},nz=e=>e?e.getChildren().filter(e=>YI(e)):[],rz=e=>{let t=!1;return nz(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(Bo()),t=!0})}),t},oz=e=>{const t=$r();if(Er(t)||Ar(t)){const n=t.getNodes().filter(e=>UI(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>GI(e)),o=QI(n[0]),i=nz(o),a=i[0]?.getChildren();if(a.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Er(t)){const e=t.focus.getNode();if(GI(e))return rz(e)}return n.forEach(e=>{e.clear(),e.append(Bo())}),(()=>{const e=$r();let t=!1;if(Er(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=QI(n);!o&&GI(r)&&(o=r),GI(o)&&(t=rz(o))}return t})()}if(Er(t)){const e=t.focus.getNode();if(GI(e))return rz(e)}}return!1},iz=e=>{if(e){const t=QI(e);if(GI(t)){const n=e.getParent(),r=nz(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}},az=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),UI(t))return t;return null},sz=e=>{const t=[];return nz(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},lz=(e,t)=>{sz(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},uz=ut("UPDATE_COL_WIDTHS_COMMAND"),cz=ut("BEGIN_COL_RESIZE"),dz=ut("END_COL_RESIZE"),fz=ut("INSERT_TEK_TABLE_COMMAND"),pz=({colKey:e,startX:t,onMouseDown:n})=>{const r=E.useCallback(t=>{n(t,e)},[e,n]);return SI.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},hz=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},gz=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,mz=({nodeKey:e,colWidths:t})=>{const[n]=Ou(),r=zc(),[o,i]=E.useState(null),a=E.useRef(null),s=E.useRef(null),l=E.useRef(null),u=E.useRef(null),c=E.useCallback(t=>{const n=mi(e);if(n){const e=n.getParent();if(GI(e)){const n=XI(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=E.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=tz(s+p,r);if(c){const e=o+p;if(e<60)return;const t=tz(e,r),s=a.current.nxtColWidth-p,d=tz(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=tz(e,d),s=tz(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=E.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(tz(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(dz,void 0)}a.current=null,s.current=null,n.update(()=>{const t=mi(e),r=JI(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(uz,{colWidths:s,nodeKey:e})}})},[d,n,e,o]),p=E.useCallback((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read(()=>{const r=mi(t),o=JI(r,n);if(UI(r)){const t=ZI(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=ez(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,h=ez(s,o),g=o.parentElement,m=.01*parseFloat(o.style.width),v=(g?.offsetWidth||0)*m,b=((e,t,n)=>{const r=hz("tek__leftResizerIndicator","leftGripper");r.innerText=gz(e);let o=null;return t?(o=hz("tek__rightResizerIndicator","rightGripper"),o.innerText=gz(t)):r.innerText=n.style.width,{left:r,right:o}})(i,s,o);l.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:s,nxtColWidth:h,parentDomNode:g,currentTableWidth:v},n.dispatchCommand(cz,void 0)}}})},[n,d,f]);return E.useEffect(()=>{n.getEditorState().read(()=>{c(t)})},[c,n,t]),SI.jsx(SI.Fragment,{children:o&&r?o.map(e=>SI.jsx(pz,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},vz="TEK_TABLE_RESIZE_NODE";let bz=class e extends Lo{__colWidths;static getType(){return vz}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:vz,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 SI.jsx(mz,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const yz=e=>e instanceof bz,xz=({nodeKey:e,colWidths:t})=>{const[n]=Ou(),[r,o]=E.useState(t);return E.useEffect(()=>{n.getEditorState().read(()=>{const t=mi(e),n=t?.getParent();if(GI(n)){const e=n.getResizeNode();if(yz(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),SI.jsx(SI.Fragment,{children:r.map((t,n)=>SI.jsx("col",{span:1,width:t},`${e}.${n}`))})};class _z extends Lo{__colWidths;static getType(){return"TekColGroupNode"}static clone(e){return new _z(e.__colWidths,e.__key)}static importJSON(e){return new _z(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 SI.jsx(xz,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class wz extends Lo{__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 kz=[KI,WI,VI,_z,bz],Sz=(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()},Cz=()=>{const e=$r();if(Er(e)){const t=e.anchor.getNode(),n=qI(t);if(n){const e=ZI(n),t=QI(n),r=nz(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),Sz(o,t)}}},Ez=()=>{const e=$r();if(Er(e)){const t=e.anchor.getNode(),n=qI(t),r=QI(n);if(r&&3===r.getChildren().length)return Si(null),void r.remove();if(n){const{row:e}=iz(n);Si(null),e?.remove()}}},Tz=()=>{const e=$r();if(Er(e)){const t=e.anchor.getNode(),n=QI(t),r=XI(n);if(YI(r)&&n){const e=r.getChildren().length,t=new VI;for(let r=0;r<e;r++){const e=$I(n?.__hasBorders);e.append(Bo()),t.append(e)}n?.append(t)}}},Az=()=>{const e=$r();if(Er(e)){const t=e.anchor.getNode(),n=QI(t);if(GI(n)){const e=nz(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=$I(n.__hasBorders);o.append(Bo()),e[r].append(o),t=o}return Sz(r,n),t}}return null},Lz=Rv(Tb)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),Rz=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Ou(),[o,i]=E.useState(null),a=vP(),s=Boolean(o),l=E.useCallback((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{t()},{onUpdate:()=>{i(null),n()}})},[r]),u=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)},[n]),c=E.useCallback(()=>{i(null)},[]),d=E.useCallback(e=>{l(e,Tz,t)},[l,t]),f=E.useCallback(e=>{l(e,Az,t)},[l,t]),p=E.useCallback(t=>{l(t,Ez,e)},[l,e]),h=E.useCallback(t=>{l(t,Cz,e)},[l,e]),g=E.useCallback(()=>{r.update(()=>{(()=>{const e=$r();if(Er(e)){const t=e.anchor.getNode(),n=QI(t);GI(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),m=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=$r();if(Er(e)){const t=e.anchor.getNode(),n=QI(t);n&&(n.toggleBorders(),sz(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return E.useEffect(()=>bs(r.registerCommand(ct,()=>(i(null),!1),4)),[r]),SI.jsx(Bx,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:SI.jsxs("div",{children:[SI.jsx(Lz,{size:"small",onClick:u,children:SI.jsx(wL,{height:12})}),SI.jsx(cx,{sx:{zIndex:2},open:s,anchorEl:o,placement:"auto-end",children:SI.jsx(ob,{id:"tekTableMenu",className:"tekPopperMenu",children:SI.jsxs(g_,{dense:!0,children:[SI.jsx(x_,{onClick:m,children:a("ToggleBorders")}),SI.jsx(Gx,{}),SI.jsx(x_,{onClick:d,children:a("AddNewRow")}),SI.jsx(x_,{onClick:f,children:a("AddNewColumn")}),SI.jsx(Gx,{}),SI.jsx(x_,{onClick:p,children:a("DeleteRow")}),SI.jsx(x_,{onClick:h,children:a("DeleteCol")}),SI.jsx(Gx,{}),SI.jsx(x_,{onClick:g,children:a("DeleteTable")})]})})})]})})},Mz=()=>{const[e]=Ou(),t=zc(),[n,r]=E.useState(null),[o,i]=E.useState(!1),a=Boolean(n),s=E.useContext(rp),l=E.useRef(null),u=E.useCallback(()=>{o||e.update(()=>{const t=$r();if(Er(t)){const n=qI(t.anchor.getNode());if(UI(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}})},[e,o]);E.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)}},[]),E.useEffect(()=>bs(e.registerCommand(ct,()=>(u(),!1),0),e.registerCommand(cz,()=>(r(null),!0),4),e.registerCommand(dz,()=>(u(),!0),4)),[e,u]),E.useEffect(()=>{r(null)},[t]);const c=E.useCallback(()=>{r(null)},[]),d=E.useCallback(()=>{r(null),setTimeout(()=>{u()},0)},[u]),f=E.useCallback(()=>{clearTimeout(l.current)},[]);return SI.jsx(cx,{open:!!a&&t,anchorEl:n,placement:"top-end",sx:{zIndex:2},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt(s.components?.MuiButton?.styleOverrides?.sizeSmall?.height||"24",10)]}}],children:SI.jsx(Rz,{onDeleteAction:c,onAction:d,onClick:f})})},Nz=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=mi(n),r=e?.getParent();No(r)&&null!==e&&t.push(e)}if(t.length>0){const e=Bo();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},Oz=()=>{const[e]=Ou(),t=zc();return E.useEffect(()=>bs(e.registerMutationListener(WI,t=>{e.update(()=>{Nz(t)})}),e.registerMutationListener(VI,t=>{e.update(()=>{Nz(t)})}),e.registerMutationListener(KI,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=mi(e);if(GI(t)&&!t.isValid()){const e=Bo();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(fz,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new KI(!0,"100%"),n=new _z(e),r=new bz(e),o=[];for(let t=0;t<2;t++){const t=new VI;for(let n=0;n<e.length;n++){const e=$I(!0),n=Bo();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();Us(e)}),!0),0),e.registerCommand(uz,({colWidths:e,nodeKey:t})=>{const n=mi(t);if(yz(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof _z})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(It,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=$r();if(Er(e)){const t=e.focus.getNode(),n=QI(t),r=az(t);if(GI(n)){const e=Bo();e.append(gr("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=$r();if(Er(e)){const t=e.focus.getNode(),n=QI(t);if(GI(n)){const e=Bo();e.append(gr("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Dt,e=>oz(e),4),e.registerCommand(Ft,e=>oz(e),4),e.registerCommand(Bt,e=>{const t=$r();if(Er(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),UI(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(YI(s)){const t=s?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(iz(o),!e.shiftKey),!0}return!1},0),e.registerCommand(Qt,e=>{const t=e?.target,n=$r();if(t.classList.contains("tek__table")&&Er(n)&&GI(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Er(n)){const t=n.getNodes().some(e=>UI(e)),r=n.getNodes().some(e=>GI(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),E.useEffect(()=>e.registerCommand(ct,()=>(t&&e.update(()=>{(e=>{const t=$r(),n=[];if(Hi(KI).forEach(e=>{const t=sz(e);n.push(...t)}),Er(t)){t.getNodes().filter(e=>GI(e)).forEach(t=>{lz(t,e)});const n=t.focus.getNode();if(GI(n))return void lz(n,e)}if(Er(t)||Ar(t)){const r=new Set(t.getNodes().map(e=>az(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]),E.useEffect(()=>{e.update(()=>{t||(e=>{const t=[];Hi(KI).forEach(e=>{const n=sz(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},Pz=()=>SI.jsxs(SI.Fragment,{children:[SI.jsx(Oz,{}),SI.jsx(Mz,{})]}),Iz=()=>{const e=zc(),t=vP();return e?SI.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):SI.jsx("div",{className:"tek__editor__logo",children:SI.jsx(WP,{height:32})})},zz=({showPlaceholder:e})=>SI.jsxs("div",{style:{position:"relative"},children:[SI.jsx(yP,{}),SI.jsx(FP,{contentEditable:SI.jsx(EP,{className:"tek__editor__input"}),placeholder:!1!==e?SI.jsx(Iz,{}):null,ErrorBoundary:NP})]}),Dz=Rv(Vx)(({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"}})),jz=["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"],Fz="#404040",Bz="16px",Hz=E.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:jz[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),Wz=({children:e})=>{const t=(()=>{const[e]=Ou(),[t,n]=E.useState(!1),[r,o]=E.useState(!1),[i,a]=E.useState(!1),[s,l]=E.useState("paragraph"),[u,c]=E.useState(jz[0]),[d,f]=E.useState(Bz),[p,h]=E.useState(Fz),[g,m]=E.useState("left"),[v,b]=E.useState(!1),y=E.useCallback(()=>{const t=$r();if(Er(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:_a(r,e=>{const t=e.getParent();return null!==t&&Xi(t)});null===i&&(i=r.getTopLevelElementOrThrow());const s=i.getKey();let u=i;if(null!==e.getElementByKey(s))if(Eu(i)){const e=Ws(r,xu),t=e?e.getListType():i.getListType();l(t)}else{const e=Ec(i)?i.getTag():i.getType();l(e)}if(Eu(i)||Ec(i)){const e=Ws(i,jo);e&&(u=e)}const d=LI(t);if(Ol(d.getParent())||Ol(d)?b(!0):b(!1),Ho(u)){const e=u.getFormatType();m(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const p=js(t,"font-family",jz[0]),g=js(t,"font-size",Bz);c(""===p?jz[0]:p),f(""!==g&&g?g:Bz),h(js(t,"color",Fz))}else Ar(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof wz}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),a(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",Fz));const t=e.getTextFormatStyle("fontSize",Bz),r=e.getTextFormatStyle("fontFamily",jz[0]);f(t),c(r);const i=e.getParent();if(null!==i){const e=(e=>{if(yu(e)){const t=Ws(e,xu);return t?t.getListType():"bullet"}return Ec(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return E.useEffect(()=>bs(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{y()})}),e.registerCommand(ct,()=>(e.getEditorState().read(()=>{y()}),!1),0)),[e,y]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:s,fontName:u,fontSize:d,fontColor:p,align:g,isLink:v}}})();return SI.jsx(Hz.Provider,{value:t,children:e})},$z=({children:e})=>SI.jsx(Wz,{children:SI.jsx(Dz,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),Uz=({anchorEl:e,children:t})=>{const n=Boolean(e);return SI.jsx(cx,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>SI.jsx(Xx,{...e,children:SI.jsx(ob,{className:"tekPopperMenu",children:t})})})},Kz=Rv(Ob)({fontSize:12,textOverflow:"ellipsis"}),Gz=({startIcon:e,value:t,onClick:n,compact:r})=>SI.jsx(M_,{title:t,PopperProps:{disablePortal:!0},children:SI.jsx(jx,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:SI.jsx(QP,{height:12}),children:r?e:SI.jsx(Kz,{children:t})})}),Vz=Rv(x_,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),Yz=[{text:"AlignLeft",align:"left",icon:()=>SI.jsx(GP,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>SI.jsx(UP,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>SI.jsx(YP,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],qz=({compact:e=!1})=>{const[t]=Ou(),[n,r]=E.useState(null),{blockFormat:o}=E.useContext(Hz),i=vP(),a=E.useMemo(()=>Yz.find(e=>e.align===o.align)||Yz[0],[o.align]),s=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),l=E.useCallback(()=>{r(null)},[]),u=E.useCallback(e=>{r(null),t.dispatchCommand(Kt,e),t.focus()},[t]);return SI.jsx(Bx,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:SI.jsxs("div",{children:[SI.jsx(Gz,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e,"data-testid":"editor-toolbar-align-btn"}),SI.jsx(Uz,{anchorEl:n,children:SI.jsx(g_,{dense:!0,children:Yz.map(e=>SI.jsxs(Vz,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[SI.jsx(l_,{children:e.icon()}),SI.jsx(Kz,{children:i(e.text)})]},e.align))})})]})})},Qz=({text:e,icon:t})=>SI.jsxs(SI.Fragment,{children:[SI.jsx(l_,{children:t}),SI.jsx(Kz,{children:e})]}),Jz=({text:e,icon:t})=>SI.jsxs(SI.Fragment,{children:[SI.jsx(l_,{children:SI.jsx(Kz,{fontWeight:"bold",children:t})}),SI.jsx(Kz,{children:e})]}),Xz=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],Zz=(e,t,n)=>({icon:SI.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),eD=({compact:e=!1})=>{const[t]=Ou(),{blockFormat:n}=E.useContext(Hz),[r,o]=E.useState(null),i=vP(),a=E.useMemo(()=>{let e={icon:SI.jsx(oI,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=Zz("Heading1","H1",i)),"h2"===n.blockType&&(e=Zz("Heading2","H2",i)),"h3"===n.blockType&&(e=Zz("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=SI.jsx(eI,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=SI.jsx(XP,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=SI.jsx(nI,{height:12}),e.text=i("OrderedList")),e},[n,i]),s=E.useCallback(()=>{o(null)},[]),l=E.useCallback(e=>{t.update(()=>{const n=$r();Er(n)?(Rs(n,{"font-size":null}),function(e,t,n=Ms){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=Br(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=_a(e.getNode(),da),a=_a(t.getNode(),da);To(n)&&o.set(n.getKey(),n),To(a)&&o.set(a.getKey(),a)}for(const t of e.getNodes())if(To(t)&&da(t))o.set(t.getKey(),t);else if(null===r){const e=_a(t,da);To(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($r())&&Si(i)}(n,e)):Ar(n)&&n.getNodes().forEach(t=>{const n=t.getParent();n?.replace(e(),!0)}),t.focus()})},[t]),u=E.useCallback((e,n)=>{o(null),t.update(()=>{const r=$r();Er(r)&&r.getNodes().forEach(r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)})}),t.focus()},[t]),c=E.useCallback(e=>{o(null),l(()=>Cc(e))},[l]),d=E.useCallback(()=>{o(null),l(()=>Bo())},[l]),f=E.useCallback(()=>{o(null),l(()=>yc())},[l]);return SI.jsx(Bx,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:SI.jsxs("div",{children:[SI.jsx(Gz,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),SI.jsx(Uz,{anchorEl:r,children:SI.jsxs(g_,{dense:!0,children:[SI.jsx(x_,{dense:!0,onClick:d,children:SI.jsx(Qz,{text:i("Paragraph"),icon:SI.jsx(oI,{height:12})})}),SI.jsx(x_,{dense:!0,onClick:f,children:SI.jsx(Qz,{text:i("Quote"),icon:SI.jsx(eI,{height:12})})}),Xz.map(e=>SI.jsx(x_,{dense:!0,onClick:()=>{c(e.tag)},children:SI.jsx(Jz,{text:i(e.text),icon:e.icon})},e.text)),SI.jsx(Gx,{}),SI.jsx(x_,{dense:!0,onClick:()=>{u("bullet",Au)},children:SI.jsx(Qz,{text:i("UnorderedList"),icon:SI.jsx(XP,{height:12})})}),SI.jsx(x_,{dense:!0,onClick:()=>{u("number",Lu)},children:SI.jsx(Qz,{text:i("OrderedList"),icon:SI.jsx(nI,{height:12})})})]})})]})})},tD=Rv(jx,{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})),nD=(e,t)=>{const n=n=>{const r=vP();return SI.jsx(M_,{title:r(t),PopperProps:{disablePortal:!0},children:SI.jsx("div",{children:SI.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},rD=({format:e,icon:t,...n})=>{const r=E.useContext(Hz),[o]=Ou(),i=E.useCallback(()=>{o.dispatchCommand(Ct,e)},[o,e]);return SI.jsx(tD,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},oD=nD(rD,"Bold"),iD=()=>SI.jsx(oD,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:SI.jsx(aI,{height:12})}),aD=ut("APPLY_TEXT_FORMAT"),sD=ut("CLEAR_TEXT_FORMAT"),lD=nD(tD,"ClearFormat"),uD=()=>{const[e]=Ou(),t=E.useCallback(()=>{e.update(()=>{const t=$r();if(Er(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(mr(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),$s(i).setFormat(""));const a=i.getParent();(Ec(a)||xc(a))&&a.replace(Bo(),!0)}else(Ec(t)||xc(t))&&t.replace(Bo(),!0)}catch{}})}e.dispatchCommand(sD,void 0)})},[e]);return SI.jsx(lD,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:SI.jsx(lI,{height:12})})};var cD,dD={},fD=function(){if(cD)return dD;cD=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,g,m=0,v=0,b=0,y=1;if(this._invalid=!1,arguments[0]instanceof t)m=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(g=arguments[0]))m=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(g))y=parseFloat(l(h[1]/2.55)/100),m=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(g))m=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(g))m=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(g))m=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(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else e[g.toLowerCase()]?(o=g.toLowerCase(),m=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,m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(m=arguments[0],v=arguments[1],b=arguments[2],y=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+m+v+b+y)&&(this._invalid=!0),this._r=s(m),this._g=s(v),this._b=s(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=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"==kI(o=function(e){if("object"!=kI(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kI(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},dD.Color=u,dD}();const pD=Rv(Vx)(({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"})),hD=Rv(Ax)(({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"})),gD=({palette:e,color:t,onColorChange:n})=>{const[r,o]=E.useState(t),i=pv(),a=E.useCallback(e=>{o(e),n(e)},[n]);return SI.jsx(pD,{children:e.map(e=>SI.jsx(hD,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?SI.jsx(I_,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function mD(e,t,n){return Math.max(t,Math.min(n,e))}const vD=(e,t)=>{const n=new fD.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"}},bD=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=mD(e.clientX-n,0,o)/o*100,s=100-mD(e.clientY-r,0,i)/i*100,l=new fD.Color(t).toHSVComponents();return l.s=a,l.v=s,l},yD=Rv(Vx)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),xD=Rv(Ax)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),_D=Rv(Ax)(({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 );"})),wD=Rv(Ax)({width:"16px",height:"16px",borderRadius:"2px"}),kD=Rv(Vx)({flexDirection:"row",alignItems:"center"}),SD=Rv(Ax)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),CD=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=E.useState(n),a=E.useRef(n),[s,l]=E.useState(!0),[u,c]=E.useState(o),d=E.useRef(null),f=E.useRef(null),p=E.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,g]=E.useState({left:"0",top:"0"});E.useEffect(()=>{r.some(e=>e===n)||l(!1)},[n,r]);const m=E.useCallback(e=>{if(!d.current&&(d.current=e,e)){const t=vD(o,e);g(t)}},[o]),v=E.useMemo(()=>`hsl(${new fD.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),b=E.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=bD(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new fD.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]),y=E.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=mD(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new fD.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new fD.Color(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)},[e]),x=E.useCallback(t=>{a.current=t,e(a.current),i(a.current),c(t)},[e]),_=E.useCallback(t=>{if(c(t.target.value),!new fD.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=vD(a.current,d.current);g(e)}},[e]);return SI.jsxs(yD,{children:[s?SI.jsx(gD,{palette:r,color:o,onColorChange:x}):SI.jsxs(SI.Fragment,{children:[SI.jsx(xD,{style:{backgroundColor:v},ref:m,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=bD(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new fD.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):b(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1},children:SI.jsx(SD,{ref:f,style:{...h,backgroundColor:o}})}),SI.jsx(_D,{onClick:y})]}),SI.jsxs(kD,{children:[SI.jsx(wD,{style:{backgroundColor:o}}),SI.jsx(Cx,{style:{flex:1},value:u,onChange:_}),SI.jsx(Tb,{onClick:()=>{l(!s)},children:SI.jsx(cI,{height:12})}),SI.jsx(Tb,{onClick:t,children:SI.jsx(I_,{height:12})})]})]})},ED=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],TD=nD(jx,"Color"),AD=({colorPalette:e=ED})=>{const[t]=Ou(),[n,r]=E.useState(null),{blockFormat:o}=E.useContext(Hz),i=E.useCallback((e,n)=>{t.update(()=>{const t=$r();Er(t)&&Rs(t,{color:e})},n),t.dispatchCommand(aD,{styleKey:"color",styleValue:e})},[t]),a=()=>{r(null)};return SI.jsx(Bx,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:SI.jsxs("div",{children:[SI.jsx(TD,{variant:"text",size:"small",endIcon:SI.jsx(QP,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:SI.jsx(Ax,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),SI.jsx(Uz,{anchorEl:n,children:SI.jsx(CD,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};nD(tD,"Export");const LD=({compact:e=!1,fonts:t=jz})=>{const[n]=Ou(),[r,o]=E.useState(null),{blockFormat:i}=E.useContext(Hz),a=E.useMemo(()=>t,[t]),s=E.useCallback(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=$r();Er(e)&&Rs(e,{"font-family":t||jz[0]}),n.dispatchCommand(aD,{styleKey:"fontFamily",styleValue:t||jz[0]}),n.focus()})},[n]);return SI.jsx(Bx,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:SI.jsxs("div",{children:[SI.jsx(Gz,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:SI.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),SI.jsx(Uz,{anchorEl:r,children:SI.jsx(g_,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map(e=>SI.jsx(Vz,{"data-font-name":e,onClick:s,active:e===i.fontName,children:SI.jsx(Kz,{children:e})},e))})})]})})},RD=e=>parseInt(e,10),MD=({fontSize:e,onSelected:t})=>{const[n,r]=E.useState(""),o=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)},[]),i=E.useCallback(()=>{const e=RD(n);e&&t(`${e}px`)},[t,n]),a=E.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return SI.jsxs(Vx,{direction:"row",children:[SI.jsx(Cx,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),SI.jsx(Tb,{disabled:!RD(n),onClick:i,children:SI.jsx(I_,{height:12})})]})},ND=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],OD=({compact:e=!1})=>{const[t]=Ou(),[n,r]=E.useState(null),{blockFormat:o}=E.useContext(Hz),i=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),a=E.useCallback(()=>{r(null)},[]),s=E.useCallback(e=>{r(null),e.length>0&&t.update(()=>{const n=$r();Er(n)&&Rs(n,{"font-size":e}),t.dispatchCommand(aD,{styleKey:"fontSize",styleValue:e})})},[t]),l=E.useCallback(e=>{const{fontSize:t}=e.currentTarget.dataset;s(t||"16px")},[s]),u=E.useCallback(e=>{s(e)},[s]);return SI.jsx(Bx,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:SI.jsxs("div",{children:[SI.jsx(Gz,{startIcon:e?SI.jsx(Kz,{children:o.fontSize}):void 0,value:o.fontSize,onClick:i,compact:e}),SI.jsxs(Uz,{anchorEl:n,children:[SI.jsx(MD,{fontSize:o.fontSize,onSelected:u}),SI.jsx(Gx,{}),SI.jsx(g_,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:ND.map(e=>SI.jsx(x_,{"data-font-size":e,onClick:l,children:SI.jsx(Kz,{children:e})},e))})]})]})})},PD=nD(tD,"InsertTable"),ID=()=>{const[e]=Ou(),t=E.useCallback(()=>{e.dispatchCommand(fz,void 0)},[e]);return SI.jsx(PD,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:SI.jsx(fI,{height:12})})},zD=nD(rD,"Italic"),DD=()=>SI.jsx(zD,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:SI.jsx(hI,{height:12})}),jD=nD(tD,"InsertHyperlink"),FD=()=>{const[e]=Ou(),{blockFormat:t}=E.useContext(Hz),n=E.useCallback(()=>{t.isLink?e.dispatchCommand(Dl,null):e.dispatchCommand(Dl,NI("https://"))},[e,t.isLink]);return SI.jsx(jD,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:SI.jsx(mI,{height:12})})};nD(tD,"Toggle");const BD=nD(rD,"Underline"),HD=()=>SI.jsx(BD,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:SI.jsx(bI,{height:12})}),WD=()=>SI.jsx(Gx,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var $D={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=="},InsertImage:{value:"Bild einfügen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabelle einfügen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},UD={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)"}},KD={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=="},InsertImage:{value:"Insertar imagen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insertar tabla",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},GD={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=="},InsertImage:{value:"Insérer une image",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insérer une table",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},VD={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=="},InsertImage:{value:"Inserisci immagine",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserisci tabella",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},YD={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=="},InsertImage:{value:"画像を挿入",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"テーブルを挿入",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},qD={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=="},InsertImage:{value:"이미지 삽입",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"테이블 삽입",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},QD={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=="},InsertImage:{value:"Afbeelding invoegen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabel invoegen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},JD={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=="},InsertImage:{value:"Wstaw grafikę",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Wstaw tabelę",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},XD={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=="},InsertImage:{value:"Inserir imagem",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserir tabela",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},ZD={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=="},InsertImage:{value:"Вставить изображение",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Вставить таблицу",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},ej={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=="},InsertImage:{value:"Infoga bild",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Infoga tabell",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},tj={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=="},InsertImage:{value:"Görüntü ekle",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tablo ekle",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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 nj={de:$D,es:KD,en:UD,fr:GD,it:VD,ja:YD,ko:qD,nl:QD,pl:JD,pt:XD,ru:ZD,sv:ej,tr:tj,"de-de":$D,"es-es":KD,"en-us":UD,"fr-fr":GD,"it-it":VD,"ja-jp":YD,"ko-kr":qD,"nl-nl":QD,"pl-pl":JD,"pt-br":XD,"ru-ru":ZD,"sv-se":ej,"tr-tr":tj,"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=="},InsertImage:{value:"插入图像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="},InsertImage:{value:"插入影像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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 rj(e,t){return e.getEditorState().read(()=>{const e=mi(t);return null!==e&&e.isSelected()})}function oj(e){const[t]=Ou(),[n,r]=E.useState(()=>rj(t,e));return E.useEffect(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(rj(t,e))});return()=>{n=!1,o()}},[t,e]),[n,E.useCallback(n=>{t.update(()=>{let t=$r();Ar(t)||(t=Hr(),Si(t)),Ar(t)&&(n?t.add(e):t.delete(e))})},[t,e]),E.useCallback(()=>{t.update(()=>{const e=$r();Ar(e)&&e.clear()})},[t])]}var ij,aj={};var sj=function(){if(ij)return aj;ij=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,g,m=0,v=0,b=0,y=1;if(this._invalid=!1,arguments[0]instanceof t)m=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(g=arguments[0]))m=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(g))y=parseFloat(l(h[1]/2.55)/100),m=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(g))m=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(g))m=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(g))m=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(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else e[g.toLowerCase()]?(o=g.toLowerCase(),m=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,m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(m=arguments[0],v=arguments[1],b=arguments[2],y=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+m+v+b+y)&&(this._invalid=!0),this._r=s(m),this._g=s(v),this._b=s(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=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},aj.Color=u,aj}();async function lj(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 uj(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function cj(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var dj,fj;var pj=function(){if(fj)return dj;fj=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},dj=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},dj}();let hj=[];const gj=new pj.EventEmitter;gj.isSelected=e=>{const t=e?.qDef?.cId;return-1!==hj.indexOf(t)},gj.setSelected=e=>{hj!==e&&(hj=e,gj.emit("change"))};function mj({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=E.useContext(L),[a]=Ou(),s=zc(),[l,u,c]=oj(n),d=E.useRef(null),[f,p]=E.useState(t);E.useEffect(()=>{p(t)},[t]);const h=E.useMemo(()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":s&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}},[l,s]),g=E.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 sj.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);E.useEffect(()=>bs(a.registerCommand(Ct,e=>(a.update(()=>{const t=e,r=$r();if(Er(r)&&l){if(cj(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&&Ar(r)&&cj(n,r)&&d.current){const e=uj(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(aD,e=>(a.getEditorState().read(()=>{if("color"===e.styleKey&&g.expressionColor)return!1;if(d.current&&l){const t=$r();if(cj(n,t)){const t=uj(d.current?.style);t[e.styleKey]=e.styleValue,p(t)}}}),!1),0),a.registerCommand(sD,()=>(a.getEditorState().read(()=>{if(d.current&&l){const e=$r();if(cj(n,e)){const e={};g.expressionColor&&(e.color=g.expressionColor),p(e)}}}),!1),0),a.registerCommand(ct,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update(()=>{const e=[],t=$r(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),gj.setSelected(e)}),!1),1)),[a,u,c,l,n,g]),E.useEffect(()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&gj.setSelected([]))},[s,c,i]),E.useEffect(()=>{a.update(()=>{!function(e,t){const n=mi(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,f)})},[f,a,n]);const m=E.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=$r();if(Ar(e)){const t=mi(n);t?.selectPrevious(),e.delete(n)}})}},[s,c,u,a,n]);return ju.jsx("span",{style:{...h,...f,color:g.expressionColor?g.expressionColor:f.color},onClick:m,ref:d,id:e,children:g.value})}const vj="qlik.expression.node";class bj extends wz{static getType(){return vj}static clone(e){return new bj(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new bj(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:vj,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 ju.jsx(mj,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function yj(e){return e instanceof bj}const xj="ImageNode",_j=ut("INSERT_IMAGE_COMMAND"),wj=()=>{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()},kj=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===xj)r.id||(r.id=wj()),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)kj(e,t,n);return{imageIds:t,newPropertyImages:n}},Sj=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function Cj(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=kj(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 Ej(){const[e]=Ou(),t=zc(),{edit:n,model:r,emitter:o,flags:i}=E.useContext(L);return E.useEffect(()=>{const t=()=>{r&&Cj(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]),E.useEffect(()=>{e.setEditable(n)},[n]),E.useEffect(()=>{t&&e.focus()},[t,e]),null}class Tj{constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=mi(e);if(yj(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 Aj(){const{layout:e,emitter:t}=E.useContext(L),[n]=Ou(),r=E.useRef(new Tj),o=zc();return E.useEffect(()=>{const e=n.registerMutationListener(bj,e=>{n.getEditorState().read(()=>{for(const[t,n]of e)r.current.update(t,n)})});return()=>{e()}},[n]),E.useEffect(()=>{e&&n.update(()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=Hi(bj),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=$r(),{cId:t}=n[n.length-1],r=new bj(t,{}),o=gr(" "),i=gr("");Er(e)?e.insertNodes([i,r,o]):Us(r)}}})},[e,n]),E.useEffect(()=>n.registerCommand(At,e=>("Backspace"===e.key&&n.update(()=>{const e=$r();Ar(e)&&e.getNodes().forEach(e=>{yj(e)&&(e.selectPrevious(),e.remove())})}),!1),1),[n]),E.useEffect(()=>{if(!o){const e=r.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}},[o,t]),null}const Lj=/"/g;function Rj(){const{model:e,emitter:t}=E.useContext(L),[n]=Ou(),r=E.useRef(new Map);return E.useEffect(()=>{const o=n.registerMutationListener(ar,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(Lj,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function Mj(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 Nj,Oj="top",Pj="top-right",Ij="right",zj="bottom-right",Dj="bottom",jj="bottom-left",Fj="left",Bj="top-left";Mj(Mj(Mj(Mj(Mj(Mj(Mj(Mj(Mj(Mj(Nj={},"equal-equal",[Oj,Dj]),"equal-higher",[Dj,zj]),"equal-lower",[Oj,Pj]),"equal-void",[Oj,Dj]),"higher-equal",[Fj,jj,Oj,Pj]),"higher-higher-acute",[Dj,jj,Fj,Pj]),"higher-higher-obtuse",[Dj,Oj]),"higher-lower-negative",[Oj,Pj,Ij]),"higher-lower-positive",[Dj,jj,Fj]),"higher-void",[Oj]),Mj(Mj(Mj(Mj(Mj(Mj(Mj(Mj(Mj(Mj(Nj,"lower-equal",[Oj]),"lower-higher-negative",[Oj,Bj]),"lower-higher-positive",[zj]),"lower-lower-acute",[Oj,Bj,Fj,Pj,Ij]),"lower-lower-obtuse",[Oj,Dj]),"lower-void",[Oj]),"void-equal",[Oj]),"void-higher",[Oj,Dj]),"void-lower",[Oj,Dj,Fj]),"void-void",[Oj]),Mj(Nj,"unclassified",[Oj,Dj,Ij,Fj,Pj,zj,jj,Bj]);var Hj,Wj,$j=["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"],Uj=["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 Kj=function(){if(Wj)return Hj;Wj=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 Hj=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},Hj}();function Gj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Vj(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Yj(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Kj);var qj=1/.7,Qj="\\s*([+-]?\\d+)\\s*",Jj="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xj="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Zj=/^#([0-9a-f]{3,8})$/,eF=new RegExp(`^rgb\\(${Qj},${Qj},${Qj}\\)$`),tF=new RegExp(`^rgb\\(${Xj},${Xj},${Xj}\\)$`),nF=new RegExp(`^rgba\\(${Qj},${Qj},${Qj},${Jj}\\)$`),rF=new RegExp(`^rgba\\(${Xj},${Xj},${Xj},${Jj}\\)$`),oF=new RegExp(`^hsl\\(${Jj},${Xj},${Xj}\\)$`),iF=new RegExp(`^hsla\\(${Jj},${Xj},${Xj},${Jj}\\)$`),aF={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 sF(){return this.rgb().formatHex()}function lF(){return this.rgb().formatRgb()}function uF(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Zj.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?cF(t):3===n?new hF(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?dF(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?dF(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=eF.exec(e))?new hF(t[1],t[2],t[3],1):(t=tF.exec(e))?new hF(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=nF.exec(e))?dF(t[1],t[2],t[3],t[4]):(t=rF.exec(e))?dF(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=oF.exec(e))?xF(t[1],t[2]/100,t[3]/100,1):(t=iF.exec(e))?xF(t[1],t[2]/100,t[3]/100,t[4]):aF.hasOwnProperty(e)?cF(aF[e]):"transparent"===e?new hF(NaN,NaN,NaN,0):null}function cF(e){return new hF(e>>16&255,e>>8&255,255&e,1)}function dF(e,t,n,r){return r<=0&&(e=t=n=NaN),new hF(e,t,n,r)}function fF(e){return e instanceof Yj||(e=uF(e)),e?new hF((e=e.rgb()).r,e.g,e.b,e.opacity):new hF}function pF(e,t,n,r){return 1===arguments.length?fF(e):new hF(e,t,n,null==r?1:r)}function hF(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function gF(){return`#${yF(this.r)}${yF(this.g)}${yF(this.b)}`}function mF(){const e=vF(this.opacity);return`${1===e?"rgb(":"rgba("}${bF(this.r)}, ${bF(this.g)}, ${bF(this.b)}${1===e?")":`, ${e})`}`}function vF(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function bF(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yF(e){return((e=bF(e))<16?"0":"")+e.toString(16)}function xF(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wF(e,t,n,r)}function _F(e){if(e instanceof wF)return new wF(e.h,e.s,e.l,e.opacity);if(e instanceof Yj||(e=uF(e)),!e)return new wF;if(e instanceof wF)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 wF(a,s,l,e.opacity)}function wF(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function kF(e){return(e=(e||0)%360)<0?e+360:e}function SF(e){return Math.max(0,Math.min(1,e||0))}function CF(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Gj(Yj,uF,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sF,formatHex:sF,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _F(this).formatHsl()},formatRgb:lF,toString:lF}),Gj(hF,pF,Vj(Yj,{brighter(e){return e=null==e?qj:Math.pow(qj,e),new hF(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new hF(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new hF(bF(this.r),bF(this.g),bF(this.b),vF(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:gF,formatHex:gF,formatHex8:function(){return`#${yF(this.r)}${yF(this.g)}${yF(this.b)}${yF(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:mF,toString:mF})),Gj(wF,function(e,t,n,r){return 1===arguments.length?_F(e):new wF(e,t,n,null==r?1:r)},Vj(Yj,{brighter(e){return e=null==e?qj:Math.pow(qj,e),new wF(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new wF(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 hF(CF(e>=240?e-240:e+120,o,r),CF(e,o,r),CF(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new wF(kF(this.h),SF(this.s),SF(this.l),vF(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=vF(this.opacity);return`${1===e?"hsl(":"hsla("}${kF(this.h)}, ${100*SF(this.s)}%, ${100*SF(this.l)}%${1===e?")":`, ${e})`}`}}));const EF=Math.PI/180,TF=180/Math.PI,AF=4/29,LF=6/29,RF=3*LF*LF;function MF(e){if(e instanceof NF)return new NF(e.l,e.a,e.b,e.opacity);if(e instanceof DF)return jF(e);e instanceof hF||(e=fF(e));var t,n,r=zF(e.r),o=zF(e.g),i=zF(e.b),a=OF((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=OF((.4360747*r+.3850649*o+.1430804*i)/.96422),n=OF((.0139322*r+.0971045*o+.7141733*i)/.82521)),new NF(116*a-16,500*(t-a),200*(a-n),e.opacity)}function NF(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function OF(e){return e>.008856451679035631?Math.pow(e,1/3):e/RF+AF}function PF(e){return e>LF?e*e*e:RF*(e-AF)}function IF(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zF(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function DF(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function jF(e){if(isNaN(e.h))return new NF(e.l,0,0,e.opacity);var t=e.h*EF;return new NF(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Gj(NF,function(e,t,n,r){return 1===arguments.length?MF(e):new NF(e,t,n,null==r?1:r)},Vj(Yj,{brighter(e){return new NF(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new NF(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 hF(IF(3.1338561*(t=.96422*PF(t))-1.6168667*(e=1*PF(e))-.4906146*(n=.82521*PF(n))),IF(-.9787684*t+1.9161415*e+.033454*n),IF(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Gj(DF,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof DF)return new DF(e.h,e.c,e.l,e.opacity);if(e instanceof NF||(e=MF(e)),0===e.a&&0===e.b)return new DF(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*TF;return new DF(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new DF(e,t,n,null==r?1:r)},Vj(Yj,{brighter(e){return new DF(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new DF(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return jF(this).rgb()}}));var FF=e=>()=>e;function BF(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):FF(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?BF: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):FF(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=pF(e)).r,(t=pF(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=BF(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 HF,WF="center",$F="bottom";function UF(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 KF(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=VF)):void 0===t&&(t=GF);for(var n,r,o,i,a,s=new QF(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 QF(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(qF)}function GF(e){return e.children}function VF(e){return Array.isArray(e)?e[1]:null}function YF(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function qF(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function QF(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:WF,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:WF,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:WF,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:WF},{key:"DataRangeIncludingZero",alignment:$F},{key:"LimitedData",alignment:$F},{key:"NegativeOrZeroValues",alignment:$F}].reduce(function(e,t){return e[t.key]=t,e},{}),QF.prototype=KF.prototype={constructor:QF,count:function(){return this.eachAfter(UF)},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 KF(this).eachBefore(YF)},[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)}},HF=function(e){
108
+ */function oL(){if(eL)return HC;eL=1,Object.defineProperty(HC,"__esModule",{value:!0}),HC.default=function(t){return(0,e.createStyles)(t)};var e=rL;return HC}var iL,aL,sL={},lL={};function uL(){if(iL)return lL;iL=1;var e=Jm();Object.defineProperty(lL,"__esModule",{value:!0}),lL.default=void 0;var t=(0,e(DC()).default)();return lL.default=t,lL}function cL(){if(aL)return sL;aL=1;var e=Jm();Object.defineProperty(sL,"__esModule",{value:!0}),sL.default=void 0;var t=e(Av()),n=rL,r=e(uL());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 sL.default=o,sL}var dL,fL,pL={},hL={};function gL(){if(dL)return hL;dL=1;var e=Jm();Object.defineProperty(hL,"__esModule",{value:!0}),hL.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},hL.getUnit=n,hL.toUnitless=r,hL.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}},hL.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},hL.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},hL.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(Zw());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return hL}function mL(){if(fL)return pL;fL=1;var e=Jm();Object.defineProperty(pL,"__esModule",{value:!0}),pL.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,g=(0,r.convertLength)(h.htmlFontSize),m=a.map(function(e){return p.breakpoints.values[e]});return f.forEach(function(e){var o=h[e],i=parseFloat(g(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(g(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:m,transform:d}))}}),p};var t=e(Av()),n=Ww,r=gL();return pL}var vL,bL={};function yL(){if(vL)return bL;vL=1;var e=Jm();Object.defineProperty(bL,"__esModule",{value:!0}),bL.default=void 0;var t=e(Av()),n=rL,r=e(uL()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return bL.default=o,bL}var xL,_L={};function wL(){if(xL)return _L;xL=1;var e=Jm();Object.defineProperty(_L,"__esModule",{value:!0}),_L.default=function(){return(0,t.useTheme)()||n.default};var t=rL;e(h());var n=e(uL());return _L}var kL,SL={};function CL(){if(kL)return SL;kL=1;var e=Jm();Object.defineProperty(SL,"__esModule",{value:!0}),SL.default=void 0;var t=e(Av()),n=rL,r=e(uL());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return SL.default=o,SL}var EL,TL,AL={};function LL(){if(EL)return AL;EL=1;var e=Jm();Object.defineProperty(AL,"__esModule",{value:!0}),AL.default=void 0;var t=rL,n=e(uL()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return AL.default=r,AL}function RL(){return TL||(TL=1,function(e){var t=Jm(),n=(yw||(yw=1,function(e){var t=kw().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}(_w)),_w.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 g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var o=$w();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(DC()),a=t(BC()),s=t(oL()),l=t(cL()),u=t(mL()),c=t(yL()),d=NC();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(wL()),p=t(CL()),h=t(LL()),g=rL}(xw)),xw}var ML=RL();ML.alpha(Y_.GREYSCALE_0,.05),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5),ML.alpha(Y_.GREEN_PALE,.5),ML.alpha(Y_.BLUE_PALE,.5);const NL=(e,t)=>Qu.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:Qu.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"})}),OL=E.forwardRef(NL);var PL=Object.defineProperty,IL=(e,t)=>{for(var n in t)PL(e,n,{get:t[n],enumerable:!0})},zL=(e,t,n)=>((e,t,n)=>t in e?PL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),DL={};IL(DL,{af:()=>UL,ak:()=>KL,am:()=>GL,an:()=>VL,ar:()=>YL,ars:()=>qL,as:()=>QL,asa:()=>JL,ast:()=>XL,az:()=>ZL,bal:()=>eR,be:()=>tR,bem:()=>nR,bez:()=>rR,bg:()=>oR,bho:()=>iR,blo:()=>aR,bm:()=>sR,bn:()=>lR,bo:()=>uR,br:()=>cR,brx:()=>dR,bs:()=>fR,ca:()=>pR,ce:()=>hR,ceb:()=>gR,cgg:()=>mR,chr:()=>vR,ckb:()=>bR,cs:()=>yR,cy:()=>xR,da:()=>_R,de:()=>wR,doi:()=>kR,dsb:()=>SR,dv:()=>CR,dz:()=>ER,ee:()=>TR,el:()=>AR,en:()=>LR,eo:()=>RR,es:()=>MR,et:()=>NR,eu:()=>OR,fa:()=>PR,ff:()=>IR,fi:()=>zR,fil:()=>DR,fo:()=>jR,fr:()=>FR,fur:()=>BR,fy:()=>HR,ga:()=>WR,gd:()=>$R,gl:()=>UR,gsw:()=>KR,gu:()=>GR,guw:()=>VR,gv:()=>YR,ha:()=>qR,haw:()=>QR,he:()=>JR,hi:()=>XR,hnj:()=>ZR,hr:()=>eM,hsb:()=>tM,hu:()=>nM,hy:()=>rM,ia:()=>oM,id:()=>iM,ig:()=>aM,ii:()=>sM,io:()=>lM,is:()=>uM,it:()=>cM,iu:()=>dM,ja:()=>fM,jbo:()=>pM,jgo:()=>hM,jmc:()=>gM,jv:()=>mM,jw:()=>vM,ka:()=>bM,kab:()=>yM,kaj:()=>xM,kcg:()=>_M,kde:()=>wM,kea:()=>kM,kk:()=>SM,kkj:()=>CM,kl:()=>EM,km:()=>TM,kn:()=>AM,ko:()=>LM,ks:()=>RM,ksb:()=>MM,ksh:()=>NM,ku:()=>OM,kw:()=>PM,ky:()=>IM,lag:()=>zM,lb:()=>DM,lg:()=>jM,lij:()=>FM,lkt:()=>BM,ln:()=>HM,lo:()=>WM,lt:()=>$M,lv:()=>UM,mas:()=>KM,mg:()=>GM,mgo:()=>VM,mk:()=>YM,ml:()=>qM,mn:()=>QM,mo:()=>JM,mr:()=>XM,ms:()=>ZM,mt:()=>eN,my:()=>tN,nah:()=>nN,naq:()=>rN,nb:()=>oN,nd:()=>iN,ne:()=>aN,nl:()=>sN,nn:()=>lN,nnh:()=>uN,no:()=>cN,nqo:()=>dN,nr:()=>fN,nso:()=>pN,ny:()=>hN,nyn:()=>gN,om:()=>mN,or:()=>vN,os:()=>bN,osa:()=>yN,pa:()=>xN,pap:()=>_N,pcm:()=>wN,pl:()=>kN,prg:()=>SN,ps:()=>CN,pt:()=>EN,pt_PT:()=>TN,rm:()=>AN,ro:()=>LN,rof:()=>RN,ru:()=>MN,rwk:()=>NN,sah:()=>ON,saq:()=>PN,sat:()=>IN,sc:()=>zN,scn:()=>DN,sd:()=>jN,sdh:()=>FN,se:()=>BN,seh:()=>HN,ses:()=>WN,sg:()=>$N,sh:()=>UN,shi:()=>KN,si:()=>GN,sk:()=>VN,sl:()=>YN,sma:()=>qN,smi:()=>QN,smj:()=>JN,smn:()=>XN,sms:()=>ZN,sn:()=>eO,so:()=>tO,sq:()=>nO,sr:()=>rO,ss:()=>oO,ssy:()=>iO,st:()=>aO,su:()=>sO,sv:()=>lO,sw:()=>uO,syr:()=>cO,ta:()=>dO,te:()=>fO,teo:()=>pO,th:()=>hO,ti:()=>gO,tig:()=>mO,tk:()=>vO,tl:()=>bO,tn:()=>yO,to:()=>xO,tpi:()=>_O,tr:()=>wO,ts:()=>kO,tzm:()=>SO,ug:()=>CO,uk:()=>EO,und:()=>TO,ur:()=>AO,uz:()=>LO,ve:()=>RO,vec:()=>MO,vi:()=>NO,vo:()=>OO,vun:()=>PO,wa:()=>IO,wae:()=>zO,wo:()=>DO,xh:()=>jO,xog:()=>FO,yi:()=>BO,yo:()=>HO,yue:()=>WO,zh:()=>$O,zu:()=>UO});var jL=(e,t)=>t?"other":1==e?"one":"other",FL=(e,t)=>t?"other":0==e||1==e?"one":"other",BL=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",HL=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},WL=(e,t)=>"other",$L=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",UL=jL,KL=FL,GL=BL,VL=jL,YL=(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"},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"},QL=(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",JL=jL,XL=HL,ZL=(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"},eR=(e,t)=>1==e?"one":"other",tR=(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"},nR=jL,rR=jL,oR=jL,iR=FL,aR=(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"},sR=WL,lR=(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",uR=WL,cR=(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"},dR=jL,fR=(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"},pR=(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"},hR=jL,gR=(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"},mR=jL,vR=jL,bR=jL,yR=(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"},xR=(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",_R=(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"},wR=HL,kR=BL,SR=(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"},CR=jL,ER=WL,TR=jL,AR=jL,LR=(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"},RR=jL,MR=(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"},NR=HL,OR=jL,PR=BL,IR=(e,t)=>t?"other":e>=0&&e<2?"one":"other",zR=HL,DR=(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"},jR=jL,FR=(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"},BR=jL,HR=HL,WR=(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"},$R=(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"},UR=HL,KR=jL,GR=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",VR=FL,YR=(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"},qR=jL,QR=jL,JR=(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"},XR=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",ZR=WL,eM=(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"},tM=(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"},nM=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",rM=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",oM=HL,iM=WL,aM=WL,sM=WL,lM=HL,uM=(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"},cM=(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"},dM=$L,fM=WL,pM=WL,hM=jL,gM=jL,mM=WL,vM=WL,bM=(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"},yM=(e,t)=>t?"other":e>=0&&e<2?"one":"other",xM=jL,_M=jL,wM=WL,kM=WL,SM=(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"},CM=jL,EM=jL,TM=WL,AM=BL,LM=WL,RM=jL,MM=jL,NM=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",OM=jL,PM=(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"},IM=jL,zM=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},DM=jL,jM=jL,FM=(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"},BM=WL,HM=FL,WM=(e,t)=>t&&1==e?"one":"other",$M=(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"},UM=(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"},KM=jL,GM=FL,VM=jL,YM=(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"},qM=jL,QM=jL,JM=(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"},XM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",ZM=(e,t)=>t&&1==e?"one":"other",eN=(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"},tN=WL,nN=jL,rN=$L,oN=jL,iN=jL,aN=(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"},sN=HL,lN=jL,uN=jL,cN=jL,dN=WL,fN=jL,pN=FL,hN=jL,gN=jL,mN=jL,vN=(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"},bN=jL,yN=WL,xN=FL,_N=jL,wN=BL,kN=(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"},SN=(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"},CN=jL,EN=(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"},TN=(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"},AN=jL,LN=(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"},RN=jL,MN=(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"},NN=jL,ON=WL,PN=jL,IN=$L,zN=(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"},DN=(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"},jN=jL,FN=jL,BN=$L,HN=jL,WN=WL,$N=WL,UN=(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"},KN=(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"},GN=(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"},VN=(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"},YN=(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"},qN=$L,QN=$L,JN=$L,XN=$L,ZN=$L,eO=jL,tO=jL,nO=(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"},rO=(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"},oO=jL,iO=jL,aO=jL,sO=WL,lO=(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"},uO=HL,cO=jL,dO=jL,fO=jL,pO=jL,hO=WL,gO=FL,mO=jL,vO=(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"},bO=(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"},yO=jL,xO=WL,_O=WL,wO=jL,kO=jL,SO=(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"},CO=jL,EO=(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"},TO=WL,AO=HL,LO=jL,RO=jL,MO=(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"},NO=(e,t)=>t&&1==e?"one":"other",OO=jL,PO=jL,IO=FL,zO=jL,DO=WL,jO=jL,FO=jL,BO=HL,HO=WL,WO=WL,$O=WL,UO=BL,KO={},GO=Array.prototype.slice,VO=function(e){return("0"+e.toString()).substr(-2)},YO=function(e){var t=typeof e;return"function"===t||"object"===t},qO=function(e){return"function"===typeof e},QO=function(e){return null!=e},JO=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},XO=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},ZO=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},eP=function(e){return!0===e||!1===e},tP=function(e){return null===e},nP=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))))},rP=function(e,t){return qO(e)?e(t):e},oP=function(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],XO(r)||ZO(r)||eP(r)||JO(r)||tP(r)?e[n]=r:(null==e[n]&&(e[n]={}),oP(e[n],r)));return e},iP={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"]},aP={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},sP={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},lP={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},uP=[null,"kb","mb","gb","tb"],cP={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};KO.reset=function(){var e;for(e in cP)this[e]=cP[e]},KO.initializeOptions=function(){var e;for(e in cP)QO(this[e])||(this[e]=cP[e])},KO.initializeOptions(),KO.locales={},KO.locales.get=function(e){var t=this[e]||this[KO.locale]||this.default;return qO(t)&&(t=t(e)),!1===JO(t)&&(t=[t]),t},KO.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&KO.locale&&t.push(KO.locale),KO.fallbacks&&KO.defaultLocale&&t.push(KO.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),KO.fallbacks&&[r,o].forEach(function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)})}),t.length||t.push("en"),n},KO.pluralization={},KO.pluralization.get=function(e){return this[e]||this[KO.locale]||this.default},KO.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},KO.currentLocale=function(){return this.locale||this.defaultLocale},KO.isSet=QO,KO.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(QO(t.defaultValue))return rP(t.defaultValue,e)},KO.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&YO(n))for(;i.length;)if(r=i.shift(),QO(n[r])){o=n[r];break}return o},KO.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()],YO(i));)0===o.length&&(a=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=a)break}return null==a&&QO(n.defaultValue)&&(a=YO(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:a,translations:i}},KO.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:iP.meridian},KO.prepareOptions=function(){for(var e,t=GO.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(QO(n[r])||(n[r]=e[r]));return n},KO.createTranslationOptions=function(e,t){var n=[{scope:e}];return QO(t.defaults)&&(n=n.concat(t.defaults)),QO(t.defaultValue)&&n.push({message:t.defaultValue}),n},KO.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(QO(t.scope)?(o=t.scope,n=this.lookup(o,i)):QO(t.message)&&(n=rP(t.message,e)),null!=n)return!0},this)?("string"==typeof n?n=this.interpolate(n,t):JO(n)?n=n.map(function(e){return"string"==typeof e?this.interpolate(e,t):e},this):YO(n)&&QO(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},KO.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=QO(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,"$")},KO.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))},KO.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]'},KO.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},KO.nullPlaceholder=function(){return KO.missingPlaceholder.apply(KO,arguments)},KO.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),aP);var n,r,o=e<0,i=function(e,t){return nP("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)},KO.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),sP),this.toNumber(e,t)},KO.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)}},KO.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},KO.strftime=function(e,t,n){n=this.lookup("date",n);var r=KO.meridian();if(n||(n={}),n=this.prepareOptions(n,iP),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)),g=Math.abs(p)-60*h,m=(p>0?"-":"+")+(h.toString().length<2?"0"+h:h)+(g.toString().length<2?"0"+g:g);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",VO(i))).replace("%e",i)).replace("%-d",i)).replace("%H",VO(l))).replace("%-H",l)).replace("%k",l)).replace("%I",VO(u))).replace("%-I",u)).replace("%l",u)).replace("%m",VO(s))).replace("%-m",s)).replace("%M",VO(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",VO(d))).replace("%-S",d)).replace("%w",o)).replace("%y",VO(a))).replace("%-y",VO(a).replace(/^0+/,""))).replace("%Y",a)).replace("%z",m)).replace("%Z",m)},KO.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},KO.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),lP),this.toNumber(e,t)},KO.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."+uP[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)},KO.getFullScope=function(e,t){return t=t||{},JO(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},KO.extend=function(e,t){return void 0===e&&void 0===t?{}:oP(e,t)},KO.t=KO.translate.bind(KO),KO.l=KO.localize.bind(KO),KO.p=KO.pluralize.bind(KO);IL({},{DEFAULT_LANGUAGE:()=>fP,DEFAULT_LANGUAGE_SHORT:()=>pP,flattenParams:()=>wP,flattenTranslationsJSON:()=>mP,format:()=>kP,formatWithKeys:()=>SP,getLongLanguageDesc:()=>_P,getShortLanguageDesc:()=>xP,parseLangFromUrl:()=>vP,resolveLocale:()=>yP,updateLangAttribute:()=>CP});var dP=[{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"}],fP="en-US",pP="en",hP=["zh-cn","zh-tw","qps-ploc"],gP=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),mP=e=>(console.warn("Deprecated, use `buildUtils.flattenTranslationsJSON` instead"),gP(e)?Object.keys(e).reduce((t,n)=>{const r=e[n],o=gP(r)&&r.value;return o&&(t[n]=o),t},{}):{}),vP=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},bP=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(hP.includes(e.toLocaleLowerCase()))return dP.find(({long:e})=>e.toLowerCase()===t);const[n]=t.split("-");return dP.find(({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t)},yP=(...e)=>{for(const t of e){const e=bP(t);if(e)return e.short}},xP=e=>{const t=bP(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${pP}'`),pP)},_P=e=>{const t=bP(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${fP}'`),fP)},wP=e=>Array.isArray(e[0])?e[0]:e,kP=(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)},SP=(e,t)=>e.replace(/(\{)(\w+)(\})/g,(e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e}),CP=e=>{const t=xP(e);document.documentElement.setAttribute("lang",t)},EP=class e{static configure(t,n=fP){e.translations=t,e.language=_P(n),e.languageShort=xP(n),CP(e.language),e.onTranslationsChangeListeners.forEach(e=>{e()}),e.i18nProvider=KO,KO.missingTranslation=e=>e,KO.defaultSeparator=null,KO.locale=e.language,KO.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];KO.pluralization[e.language]=e=>{try{const t=DL[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=SP(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))}}};zL(EP,"translations",{}),zL(EP,"translationsPlurals",{}),zL(EP,"language"),zL(EP,"languageShort"),zL(EP,"onTranslationsChangeListeners",[]),zL(EP,"i18nProvider"),zL(EP,"get",(e,...t)=>{var n;const r=wP(t);let o=null!=(n=EP.translations[e])?n:e;return r.length>0&&(o=kP(o,...r)),o});var TP=EP;var AP=function(){const[e,t]=E.useState(0);return E.useEffect(()=>{const n=TP.onTranslationsChange(()=>{t(e+1)});return()=>{n()}},[]),TP.get},LP=TP;function RP({defaultSelection:e}){const[t]=Ku();return E.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 MP(e,t=!0){if(e)return!1;let n=Ti().getTextContent();return t&&(n=n.trim()),""===n}function NP(e){return()=>function(e){if(!MP(e,!1))return!1;const t=Ti().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){const n=t[e];if(Io(n))return!1;if(No(n)){if(!Go(n))return!1;if(0!==n.__indent)return!1;const t=n.getChildren(),r=t.length;for(let n=0;n<r;n++)if(!xr(t[e]))return!1}}return!0}(e)}const OP="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function PP({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:g,role:m="textbox",spellCheck:v=!0,style:b,tabIndex:y,"data-testid":x,..._},w){const[k,S]=E.useState(e.isEditable()),C=E.useCallback(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),T=E.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 OP(()=>(S(e.isEditable()),e.registerEditableListener(e=>{S(e)})),[e]),Qu.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"===m?!!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:g,ref:T,role:m,spellCheck:v,style:b,tabIndex:y,..._})}const IP=E.forwardRef(PP);function zP(e){return e.getEditorState().read(NP(e.isComposing()))}const DP=E.forwardRef(jP);function jP(e,t){const{placeholder:n,...r}=e,[o]=Ku();return Qu.jsxs(Qu.Fragment,{children:[Qu.jsx(IP,{editor:o,...r,ref:t}),null!=n&&Qu.jsx(FP,{editor:o,content:n})]})}function FP({content:e,editor:t}){const n=function(e){const[t,n]=E.useState(()=>zP(e));return OP(()=>{function t(){const t=zP(e);n(t)}return t(),Ss(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=E.useState(t.isEditable());if(E.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:Qu.jsx("div",{"aria-hidden":!0,children:i})}const BP=E.createContext(null),HP={didCatch:!1,error:null};class WP extends E.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=HP}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(HP))}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(HP))}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=E.createElement(n,e);else{if(void 0===r)throw i;a=r}}return E.createElement(BP.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function $P({children:e,onError:t}){return Qu.jsx(WP,{fallback:Qu.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}const UP={name:"@lexical/react/ReactProvider"};function KP(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const GP="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?E.useLayoutEffect:E.useEffect;function VP({editor:e,ErrorBoundary:t}){return function(e,t){const[n,r]=E.useState(()=>e.getDecorators());return GP(()=>e.registerDecoratorListener(e=>{Yv.flushSync(()=>{r(e)})}),[e]),E.useEffect(()=>{r(e.getDecorators())},[e]),E.useMemo(()=>{const r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){const a=o[i],s=Qu.jsx(t,{onError:t=>e._onError(t),children:Qu.jsx(E.Suspense,{fallback:null,children:n[a]})}),l=e.getElementByKey(a);null!==l&&r.push(Yv.createPortal(s,l,a))}return r},[t,n,e])}(e,t)}function YP({editor:e,ErrorBoundary:t}){return function(e){const t=zl.maybeFromEditor(e);if(t&&t.hasExtensionByName(UP.name)){for(const e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&KP(320,e);return!0}return!1}(e)?null:Qu.jsx(VP,{editor:e,ErrorBoundary:t})}function qP(e){return e.getEditorState().read(NP(e.isComposing()))}function QP({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){const[r]=Ku();return function(e){GP(()=>Ss(Wc(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=Vr();if(Rr(e)){const t=e.anchor;let l=t.getNode(),u=0,c=0;if(xr(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()),xr(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])}(r),Qu.jsxs(Qu.Fragment,{children:[e,Qu.jsx(JP,{content:t}),Qu.jsx(YP,{editor:r,ErrorBoundary:n})]})}function JP({content:e}){const[t]=Ku(),n=function(e){const[t,n]=E.useState(()=>qP(e));return GP(()=>{function t(){const t=qP(e);n(t)}return t(),Ss(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=Vc();return n?"function"==typeof e?e(r):e:null}const XP=(e,t)=>Qu.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:Qu.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"})}),ZP=E.forwardRef(XP),eI=(e,t)=>Qu.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:[Qu.jsx("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Qu.jsx("use",{transform:"matrix(-1 0 0 1 16 0)"})]}),tI=E.forwardRef(eI),nI=(e,t)=>Qu.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:Qu.jsx("path",{fillRule:"evenodd",d:"M15 1v1H0V1zm-2 5H0V5h13zM0 9h16v1H0zm0 4h10v1H0z",clipRule:"evenodd"})}),rI=E.forwardRef(nI),oI=(e,t)=>Qu.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:Qu.jsx("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})}),iI=E.forwardRef(oI),aI=(e,t)=>Qu.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:Qu.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}),sI=E.forwardRef(aI),lI=(e,t)=>Qu.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:Qu.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"})}),uI=E.forwardRef(lI),cI=(e,t)=>Qu.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:Qu.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"})}),dI=E.forwardRef(cI),fI=(e,t)=>Qu.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:Qu.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"})}),pI=E.forwardRef(fI),hI=(e,t)=>Qu.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:Qu.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"})}),gI=E.forwardRef(hI),mI=(e,t)=>Qu.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:Qu.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"})}),vI=E.forwardRef(mI),bI=(e,t)=>Qu.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:Qu.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"})}),yI=E.forwardRef(bI),xI=(e,t)=>Qu.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:Qu.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"})}),_I=E.forwardRef(xI),wI=(e,t)=>Qu.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:Qu.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"})}),kI=E.forwardRef(wI),SI=(e,t)=>Qu.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:Qu.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"})}),CI=E.forwardRef(SI),EI=(e,t)=>Qu.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:Qu.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"})}),TI=E.forwardRef(EI),AI=(e,t)=>Qu.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:Qu.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"})}),LI=E.forwardRef(AI);var RI,MI,NI={exports:{}},OI={};function PI(e){return PI="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},PI(e)}var II=(MI||(MI=1,NI.exports=function(){if(RI)return OI;RI=1;var e=T,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 OI.Fragment=n,OI.jsx=a,OI.jsxs=a,OI}()),NI.exports);const zI=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,DI=[e=>{const t=zI.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 jI(){return II.jsx(Uc,{matchers:DI})}const FI=()=>{const[e]=Ku(),t=Vc(),n=E.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 E.useEffect(()=>Ss(e.registerMutationListener(Fl,e=>{n(e)}),e.registerMutationListener(Gl,e=>{n(e)}),e.registerCommand(ht,t=>(t.metaKey&&t.target&&e.getEditorState().read(()=>{const e=Vr();let t;if(Rr(e)&&(t=e.focus.getNode().getParent()),Nr(e)&&(t=e.getNodes()[0]),Yl(t)||Kl(t)){const e=t.getURL();setTimeout(()=>{const t=window.open(e,"_blank");t?.focus()},0)}}),!1),0)),[e,n]),null};function BI(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?Os(n)?r:o:Os(t)?r:o}const HI=new Set(["http:","https:","mailto:","sms:","tel:"]),WI=e=>{const t=e;return t.password="",t.username="",t};function $I(e){try{const t=new URL(e);return HI.has(t.protocol)?{url:WI(t).toString(),target:"_blank"}:{url:"about:blank"}}catch{return{url:e,target:"_blank"}}}const UI=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function KI(e){return"https://"===e||UI.test(e)}const GI=Hv(o_)(({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)})),VI=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=E.useRef(null),[a,s]=E.useState(t);E.useEffect(()=>{s(t)},[t]);const l=E.useCallback(()=>{n(a),window.open($I(a).url,"_blank"),r()},[a,r,n]),u=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(a)},[a,n]),c=E.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))},[a,n]),d=E.useCallback(e=>{e.preventDefault(),s(e.currentTarget.value)},[]);return II.jsx(_x,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:2},transition:!0,children:({TransitionProps:e})=>II.jsx(u_,{...e,children:II.jsx(gb,{className:"tekPopperMenu",children:II.jsxs(GI,{direction:"row",children:[II.jsx(zx,{ref:i,placeholder:t,margin:"dense",size:"small",value:a,onChange:d,onKeyDown:c}),II.jsx(jb,{onClick:l,children:II.jsx(U_,{})}),II.jsx(jb,{onClick:u,children:II.jsx(G_,{})})]})})})})},YI=()=>{const[e]=Ku(),t=Vc(),[n,r]=E.useState(null),[o,i]=E.useState(""),a=E.useRef(!1),s=E.useCallback(()=>{if(a.current)return a.current=!1,!1;const t=Vr();if(Rr(t)){const n=BI(t),o=n.getParent();if(Yl(o)||Yl(n))return r(null),i(""),!1;let a;if(Kl(o)&&(a=o),Kl(n)&&(a=n),Kl(a)){const t=e.getElementByKey(a.getKey());return i(a.getURL()),r(t),!0}r(null),i("")}return!1},[e]),l=E.useCallback(t=>{a.current=!0,e.update(()=>{e.dispatchCommand(ql,$I(t))},{onUpdate:()=>{r(null)}})},[e]),u=E.useCallback(()=>{r(null)},[]);return E.useEffect(()=>Ss(e.registerCommand(ft,()=>s(),1),e.registerCommand(ht,()=>s(),1)),[e,s]),t?II.jsx(VI,{anchorEl:n,link:o,onChanged:l,onOpened:u}):null};function qI(){return II.jsx(V_,{validateUrl:KI})}!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 QI=({children:e})=>II.jsx($v,{theme:vw(),children:e}),JI={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:[Oc,Rc,Nu,Tu,Fl,Gl],onError:e=>{console.log(e)}},XI=({children:e,initialConfig:t,flags:n})=>II.jsx(QI,{children:II.jsx("div",{className:"tek__editor__Wrapper",children:II.jsx(ec,{initialConfig:t||JI,children:II.jsxs("div",{className:"tek__editor__container"+(n?.isEnabled("QB_26358_SN_TEXT_SCROLLBAR")?" tek__editor__container__scrollbar":""),children:[e,II.jsx(ac,{}),II.jsx(sc,{}),II.jsx(qI,{}),II.jsx(jI,{}),II.jsx(YI,{}),II.jsx(FI,{}),II.jsx(ic,{})]})})})});let ZI=class e extends Mo{__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 ez=e=>new ZI(e),tz=e=>e instanceof ZI;let nz=class e extends Mo{__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 rz(e){return e instanceof nz}let oz=class e extends Mo{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 iz(e){return e instanceof oz}const az=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),tz(t))return t;return null},sz=e=>{let t=e;for(;null!==t;){if(rz(t))return t;t=t?.getParent()}return null},lz=(e,t)=>{const n=sz(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},uz=e=>{const t=e?.getChildAtIndex(2);return t},cz=e=>{const t=e.getParent();if(iz(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},dz=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,fz=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},pz=e=>e?e.getChildren().filter(e=>iz(e)):[],hz=e=>{let t=!1;return pz(e).forEach(e=>{e.getChildren().forEach(e=>{const n=e;n.clear(),n.append(Ko()),t=!0})}),t},gz=e=>{const t=Vr();if(Rr(t)||Nr(t)){const n=t.getNodes().filter(e=>tz(e));if(n.length>0){e.preventDefault(),e.stopPropagation();const r=t.getNodes().some(e=>rz(e)),o=sz(n[0]),i=pz(o),a=i[0]?.getChildren();if(a.length*i.length===n.length&&r)return o?.selectPrevious(),o?.remove(),!1;if(Rr(t)){const e=t.focus.getNode();if(rz(e))return hz(e)}return n.forEach(e=>{e.clear(),e.append(Ko())}),(()=>{const e=Vr();let t=!1;if(Rr(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=sz(n);!o&&rz(r)&&(o=r),rz(o)&&(t=hz(o))}return t})()}if(Rr(t)){const e=t.focus.getNode();if(rz(e))return hz(e)}}return!1},mz=e=>{if(e){const t=sz(e);if(rz(t)){const n=e.getParent(),r=pz(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}},vz=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),tz(t))return t;return null},bz=e=>{const t=[];return pz(e).forEach(e=>{const n=e.getChildren();t.push(...n)}),t},yz=(e,t)=>{bz(e).forEach(e=>{const n=t.getElementByKey(e.getKey());n?.classList.add("tek__tekCellHighlight")})},xz=dt("UPDATE_COL_WIDTHS_COMMAND"),_z=dt("BEGIN_COL_RESIZE"),wz=dt("END_COL_RESIZE"),kz=dt("INSERT_TEK_TABLE_COMMAND"),Sz=({colKey:e,startX:t,onMouseDown:n})=>{const r=E.useCallback(t=>{n(t,e)},[e,n]);return II.jsx("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},Cz=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},Ez=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,Tz=({nodeKey:e,colWidths:t})=>{const[n]=Ku(),r=Vc(),[o,i]=E.useState(null),a=E.useRef(null),s=E.useRef(null),l=E.useRef(null),u=E.useRef(null),c=E.useCallback(t=>{const n=_i(e);if(n){const e=n.getParent();if(rz(e)){const n=uz(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=E.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=fz(s+p,r);if(c){const e=o+p;if(e<60)return;const t=fz(e,r),s=a.current.nxtColWidth-p,d=fz(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=fz(e,d),s=fz(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=E.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(fz(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(wz,void 0)}a.current=null,s.current=null,n.update(()=>{const t=_i(e),r=lz(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(xz,{colWidths:s,nodeKey:e})}})},[d,n,e,o]),p=E.useCallback((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read(()=>{const r=_i(t),o=lz(r,n);if(tz(r)){const t=cz(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=dz(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,h=dz(s,o),g=o.parentElement,m=.01*parseFloat(o.style.width),v=(g?.offsetWidth||0)*m,b=((e,t,n)=>{const r=Cz("tek__leftResizerIndicator","leftGripper");r.innerText=Ez(e);let o=null;return t?(o=Cz("tek__rightResizerIndicator","rightGripper"),o.innerText=Ez(t)):r.innerText=n.style.width,{left:r,right:o}})(i,s,o);l.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:s,nxtColWidth:h,parentDomNode:g,currentTableWidth:v},n.dispatchCommand(_z,void 0)}}})},[n,d,f]);return E.useEffect(()=>{n.getEditorState().read(()=>{c(t)})},[c,n,t]),II.jsx(II.Fragment,{children:o&&r?o.map(e=>II.jsx(Sz,{colKey:e.key,startX:e.startX,onMouseDown:p},e.key)):null})},Az="TEK_TABLE_RESIZE_NODE";let Lz=class e extends Po{__colWidths;static getType(){return Az}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:Az,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 II.jsx(Tz,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}};const Rz=e=>e instanceof Lz,Mz=({nodeKey:e,colWidths:t})=>{const[n]=Ku(),[r,o]=E.useState(t);return E.useEffect(()=>{n.getEditorState().read(()=>{const t=_i(e),n=t?.getParent();if(rz(n)){const e=n.getResizeNode();if(Rz(e)){const t=e.__colWidths.map(e=>e);o(t)}}})},[n,e]),II.jsx(II.Fragment,{children:r.map((t,n)=>II.jsx("col",{span:1,width:t},`${e}.${n}`))})};class Nz extends Po{__colWidths;static getType(){return"TekColGroupNode"}static clone(e){return new Nz(e.__colWidths,e.__key)}static importJSON(e){return new Nz(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 II.jsx(Mz,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class Oz extends Po{__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 Pz=[nz,ZI,oz,Nz,Lz],Iz=(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()},zz=()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=az(t);if(n){const e=cz(n),t=sz(n),r=pz(t),o=(r[0]?.getChildren().length||1)-1;if(0===o)return t?.selectPrevious(),void t?.remove();r.forEach(t=>{t.getChildAtIndex(e)?.remove()}),Iz(o,t)}}},Dz=()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=az(t),r=sz(n);if(r&&3===r.getChildren().length)return Li(null),void r.remove();if(n){const{row:e}=mz(n);Li(null),e?.remove()}}},jz=()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=sz(t),r=uz(n);if(iz(r)&&n){const e=r.getChildren().length,t=new oz;for(let r=0;r<e;r++){const e=ez(n?.__hasBorders);e.append(Ko()),t.append(e)}n?.append(t)}}},Fz=()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=sz(t);if(rz(n)){const e=pz(n);let t=null;const r=(e[0]?.getChildren().length||-1)+1;for(let r=0;r<e.length;r++){const o=ez(n.__hasBorders);o.append(Ko()),e[r].append(o),t=o}return Iz(r,n),t}}return null},Bz=Hv(jb)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),Hz=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=Ku(),[o,i]=E.useState(null),a=AP(),s=Boolean(o),l=E.useCallback((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{t()},{onUpdate:()=>{i(null),n()}})},[r]),u=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)},[n]),c=E.useCallback(()=>{i(null)},[]),d=E.useCallback(e=>{l(e,jz,t)},[l,t]),f=E.useCallback(e=>{l(e,Fz,t)},[l,t]),p=E.useCallback(t=>{l(t,Dz,e)},[l,e]),h=E.useCallback(t=>{l(t,zz,e)},[l,e]),g=E.useCallback(()=>{r.update(()=>{(()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=sz(t);rz(n)&&(n.selectPrevious(),n.remove())}})()},{onUpdate:()=>{i(null),e()}})},[r,e]),m=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r.update(()=>{(()=>{const e=Vr();if(Rr(e)){const t=e.anchor.getNode(),n=sz(t);n&&(n.toggleBorders(),bz(n).forEach(e=>{e.toggleBorders()}))}})()})},[r]);return E.useEffect(()=>Ss(r.registerCommand(ft,()=>(i(null),!1),4)),[r]),II.jsx(Jx,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(Bz,{size:"small",onClick:u,children:II.jsx(OL,{height:12})}),II.jsx(_x,{sx:{zIndex:2},open:s,anchorEl:o,placement:"auto-end",children:II.jsx(gb,{id:"tekTableMenu",className:"tekPopperMenu",children:II.jsxs(E_,{dense:!0,children:[II.jsx(M_,{onClick:m,children:a("ToggleBorders")}),II.jsx(r_,{}),II.jsx(M_,{onClick:d,children:a("AddNewRow")}),II.jsx(M_,{onClick:f,children:a("AddNewColumn")}),II.jsx(r_,{}),II.jsx(M_,{onClick:p,children:a("DeleteRow")}),II.jsx(M_,{onClick:h,children:a("DeleteCol")}),II.jsx(r_,{}),II.jsx(M_,{onClick:g,children:a("DeleteTable")})]})})})]})})},Wz=()=>{const[e]=Ku(),t=Vc(),[n,r]=E.useState(null),[o,i]=E.useState(!1),a=Boolean(n),s=E.useContext(hp),l=E.useRef(null),u=E.useCallback(()=>{o||e.update(()=>{const t=Vr();if(Rr(t)){const n=az(t.anchor.getNode());if(tz(n)){const t=e.getElementByKey(n.getKey());r(t)}else r(null)}})},[e,o]);E.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)}},[]),E.useEffect(()=>Ss(e.registerCommand(ft,()=>(u(),!1),0),e.registerCommand(_z,()=>(r(null),!0),4),e.registerCommand(wz,()=>(u(),!0),4)),[e,u]),E.useEffect(()=>{r(null)},[t]);const c=E.useCallback(()=>{r(null)},[]),d=E.useCallback(()=>{r(null),setTimeout(()=>{u()},0)},[u]),f=E.useCallback(()=>{clearTimeout(l.current)},[]);return II.jsx(_x,{open:!!a&&t,anchorEl:n,placement:"top-end",sx:{zIndex:2},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt(s.components?.MuiButton?.styleOverrides?.sizeSmall?.height||"24",10)]}}],children:II.jsx(Hz,{onDeleteAction:c,onAction:d,onClick:f})})},$z=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=_i(n),r=e?.getParent();Do(r)&&null!==e&&t.push(e)}if(t.length>0){const e=Ko();t[0].insertBefore(e),e.select(),t.forEach(e=>{e.remove()})}},Uz=()=>{const[e]=Ku(),t=Vc();return E.useEffect(()=>Ss(e.registerMutationListener(ZI,t=>{e.update(()=>{$z(t)})}),e.registerMutationListener(oz,t=>{e.update(()=>{$z(t)})}),e.registerMutationListener(nz,t=>{e.update(()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=_i(e);if(rz(t)&&!t.isValid()){const e=Ko();t.insertBefore(e),e.select(),t.remove()}}})}),e.registerCommand(kz,()=>(e.update(()=>{const e=(()=>{const e=["50%","50%"],t=new nz(!0,"100%"),n=new Nz(e),r=new Lz(e),o=[];for(let t=0;t<2;t++){const t=new oz;for(let n=0;n<e.length;n++){const e=ez(!0),n=Ko();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();Qs(e)}),!0),0),e.registerCommand(xz,({colWidths:e,nodeKey:t})=>{const n=_i(t);if(Rz(n)){n.setColWidths(e);const t=n.getParent(),r=t?.getChildAtIndex(0);(function(e){return e instanceof Nz})(r)&&r.setColWidths(e)}return!0},4),e.registerCommand(Dt,t=>t?.shiftKey?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=Vr();if(Rr(e)){const t=e.focus.getNode(),n=sz(t),r=vz(t);if(rz(n)){const e=Ko();e.append(yr("")),n.insertBefore(e,!1),e.select()}}})()}),!0):!!t?.ctrlKey&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update(()=>{(()=>{const e=Vr();if(Rr(e)){const t=e.focus.getNode(),n=sz(t);if(rz(n)){const e=Ko();e.append(yr("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()}),!0),4),e.registerCommand(Ft,e=>gz(e),4),e.registerCommand(Ht,e=>gz(e),4),e.registerCommand(Wt,e=>{const t=Vr();if(Rr(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),tz(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(iz(s)){const t=s?.getChildAtIndex(e);(t?.getChildAtIndex(0)).selectEnd()}}}})(mz(o),!e.shiftKey),!0}return!1},0),e.registerCommand(Xt,e=>{const t=e?.target,n=Vr();if(t.classList.contains("tek__table")&&Rr(n)&&rz(n.anchor.getNode()))return e?.preventDefault(),e?.stopPropagation(),!0;if(Rr(n)){const t=n.getNodes().some(e=>tz(e)),r=n.getNodes().some(e=>rz(e));if(t&&!r)return e?.preventDefault(),e?.stopPropagation(),!0}return!1},4)),[e]),E.useEffect(()=>e.registerCommand(ft,()=>(t&&e.update(()=>{(e=>{const t=Vr(),n=[];if(Gi(nz).forEach(e=>{const t=bz(e);n.push(...t)}),Rr(t)){t.getNodes().filter(e=>rz(e)).forEach(t=>{yz(t,e)});const n=t.focus.getNode();if(rz(n))return void yz(n,e)}if(Rr(t)||Nr(t)){const r=new Set(t.getNodes().map(e=>vz(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]),E.useEffect(()=>{e.update(()=>{t||(e=>{const t=[];Gi(nz).forEach(e=>{const n=bz(e);t.push(...n)}),t.forEach(t=>{const n=e.getElementByKey(t.getKey());n?.classList.remove("tek__tekCellHighlight")})})(e)})},[t,e]),null},Kz=()=>II.jsxs(II.Fragment,{children:[II.jsx(Uz,{}),II.jsx(Wz,{})]}),Gz=()=>{const e=Vc(),t=AP();return e?II.jsx("div",{className:"tek__editor__placeholder",children:t("EnterText")}):II.jsx("div",{className:"tek__editor__logo",children:II.jsx(ZP,{height:32})})},Vz=({showPlaceholder:e})=>II.jsxs("div",{style:{position:"relative"},children:[II.jsx(RP,{}),II.jsx(QP,{contentEditable:II.jsx(DP,{className:"tek__editor__input"}),placeholder:!1!==e?II.jsx(Gz,{}):null,ErrorBoundary:$P})]}),Yz=Hv(o_)(({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"}})),qz=["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"],Qz="#404040",Jz="16px",Xz=E.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:qz[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),Zz=({children:e})=>{const t=(()=>{const[e]=Ku(),[t,n]=E.useState(!1),[r,o]=E.useState(!1),[i,a]=E.useState(!1),[s,l]=E.useState("paragraph"),[u,c]=E.useState(qz[0]),[d,f]=E.useState(Jz),[p,h]=E.useState(Qz),[g,m]=E.useState("left"),[v,b]=E.useState(!1),y=E.useCallback(()=>{const t=Vr();if(Rr(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:Ta(r,e=>{const t=e.getParent();return null!==t&&oa(t)});null===i&&(i=r.getTopLevelElementOrThrow());const s=i.getKey();let u=i;if(null!==e.getElementByKey(s))if(ju(i)){const e=Ys(r,Nu),t=e?e.getListType():i.getListType();l(t)}else{const e=jc(i)?i.getTag():i.getType();l(e)}if(ju(i)||jc(i)){const e=Ys(i,$o);e&&(u=e)}const d=BI(t);if(Kl(d.getParent())||Kl(d)?b(!0):b(!1),Go(u)){const e=u.getFormatType();m(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),a(t.hasFormat("underline"));const p=Us(t,"font-family",qz[0]),g=Us(t,"font-size",Jz);c(""===p?qz[0]:p),f(""!==g&&g?g:Jz),h(Us(t,"color",Qz))}else Nr(t)&&t.getNodes().forEach(e=>{if(function(e){return e instanceof Oz}(e)){n(e.hasStyle("fontWeight")),o(e.hasStyle("fontStyle")),a(e.hasStyle("textDecoration")),h(e.getTextFormatStyle("color",Qz));const t=e.getTextFormatStyle("fontSize",Jz),r=e.getTextFormatStyle("fontFamily",qz[0]);f(t),c(r);const i=e.getParent();if(null!==i){const e=(e=>{if(Mu(e)){const t=Ys(e,Nu);return t?t.getListType():"bullet"}return jc(e)?e.getTag():e.getType()})(i);l(e)}}})},[e]);return E.useEffect(()=>Ss(e.registerUpdateListener(({editorState:e})=>{e.read(()=>{y()})}),e.registerCommand(ft,()=>(e.getEditorState().read(()=>{y()}),!1),0)),[e,y]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:s,fontName:u,fontSize:d,fontColor:p,align:g,isLink:v}}})();return II.jsx(Xz.Provider,{value:t,children:e})},eD=({children:e})=>II.jsx(Zz,{children:II.jsx(Yz,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row",children:e})}),tD=({anchorEl:e,children:t})=>{const n=Boolean(e);return II.jsx(_x,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:2},children:({TransitionProps:e})=>II.jsx(u_,{...e,children:II.jsx(gb,{className:"tekPopperMenu",children:t})})})},nD=Hv(Ub)({fontSize:12,textOverflow:"ellipsis"}),rD=({startIcon:e,value:t,onClick:n,compact:r})=>II.jsx(W_,{title:t,PopperProps:{disablePortal:!0},children:II.jsx(qx,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:II.jsx(sI,{height:12}),children:r?e:II.jsx(nD,{children:t})})}),oD=Hv(M_,{shouldForwardProp:e=>"active"!==e})(({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0})),iD=[{text:"AlignLeft",align:"left",icon:()=>II.jsx(rI,{height:12}),"data-testid":"editor-toolbar-alignLeft-btn"},{text:"AlignCenter",align:"center",icon:()=>II.jsx(tI,{height:12}),"data-testid":"editor-toolbar-alignCenter-btn"},{text:"AlignRight",align:"right",icon:()=>II.jsx(iI,{height:12}),"data-testid":"editor-toolbar-alignRight-btn"}],aD=({compact:e=!1})=>{const[t]=Ku(),[n,r]=E.useState(null),{blockFormat:o}=E.useContext(Xz),i=AP(),a=E.useMemo(()=>iD.find(e=>e.align===o.align)||iD[0],[o.align]),s=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),l=E.useCallback(()=>{r(null)},[]),u=E.useCallback(e=>{r(null),t.dispatchCommand(Vt,e),t.focus()},[t]);return II.jsx(Jx,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(rD,{value:i(a.text),startIcon:a.icon(),onClick:s,compact:e,"data-testid":"editor-toolbar-align-btn"}),II.jsx(tD,{anchorEl:n,children:II.jsx(E_,{dense:!0,children:iD.map(e=>II.jsxs(oD,{value:e.text,dense:!0,active:e.align===o.align,onClick:()=>{u(e.align)},children:[II.jsx(y_,{children:e.icon()}),II.jsx(nD,{children:i(e.text)})]},e.align))})})]})})},sD=({text:e,icon:t})=>II.jsxs(II.Fragment,{children:[II.jsx(y_,{children:t}),II.jsx(nD,{children:e})]}),lD=({text:e,icon:t})=>II.jsxs(II.Fragment,{children:[II.jsx(y_,{children:II.jsx(nD,{fontWeight:"bold",children:t})}),II.jsx(nD,{children:e})]}),uD=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],cD=(e,t,n)=>({icon:II.jsx("span",{style:{fontSize:12,fontWeight:"bold"},children:t}),text:n(e)}),dD=({compact:e=!1})=>{const[t]=Ku(),{blockFormat:n}=E.useContext(Xz),[r,o]=E.useState(null),i=AP(),a=E.useMemo(()=>{let e={icon:II.jsx(gI,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=cD("Heading1","H1",i)),"h2"===n.blockType&&(e=cD("Heading2","H2",i)),"h3"===n.blockType&&(e=cD("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=II.jsx(dI,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=II.jsx(uI,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=II.jsx(pI,{height:12}),e.text=i("OrderedList")),e},[n,i]),s=E.useCallback(()=>{o(null)},[]),l=E.useCallback(e=>{t.update(()=>{const n=Vr();Rr(n)?(zs(n,{"font-size":null}),function(e,t,n=Ds){if(null===e)return;const r=e.getStartEndPoints(),o=new Map;let i=null;if(r){const[e,t]=r;i=Ur(),i.anchor.set(e.key,e.offset,e.type),i.focus.set(t.key,t.offset,t.type);const n=Ta(e.getNode(),va),a=Ta(t.getNode(),va);No(n)&&o.set(n.getKey(),n),No(a)&&o.set(a.getKey(),a)}for(const t of e.getNodes())if(No(t)&&va(t))o.set(t.getKey(),t);else if(null===r){const e=Ta(t,va);No(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(Vr())&&Li(i)}(n,e)):Nr(n)&&n.getNodes().forEach(t=>{const n=t.getParent();n?.replace(e(),!0)}),t.focus()})},[t]),u=E.useCallback((e,n)=>{o(null),t.update(()=>{const r=Vr();Rr(r)&&r.getNodes().forEach(r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)})}),t.focus()},[t]),c=E.useCallback(e=>{o(null),l(()=>Dc(e))},[l]),d=E.useCallback(()=>{o(null),l(()=>Ko())},[l]),f=E.useCallback(()=>{o(null),l(()=>Mc())},[l]);return II.jsx(Jx,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(rD,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:a.text,startIcon:a.icon,compact:e}),II.jsx(tD,{anchorEl:r,children:II.jsxs(E_,{dense:!0,children:[II.jsx(M_,{dense:!0,onClick:d,children:II.jsx(sD,{text:i("Paragraph"),icon:II.jsx(gI,{height:12})})}),II.jsx(M_,{dense:!0,onClick:f,children:II.jsx(sD,{text:i("Quote"),icon:II.jsx(dI,{height:12})})}),uD.map(e=>II.jsx(M_,{dense:!0,onClick:()=>{c(e.tag)},children:II.jsx(lD,{text:i(e.text),icon:e.icon})},e.text)),II.jsx(r_,{}),II.jsx(M_,{dense:!0,onClick:()=>{u("bullet",Bu)},children:II.jsx(sD,{text:i("UnorderedList"),icon:II.jsx(uI,{height:12})})}),II.jsx(M_,{dense:!0,onClick:()=>{u("number",Hu)},children:II.jsx(sD,{text:i("OrderedList"),icon:II.jsx(pI,{height:12})})})]})})]})})},fD=Hv(qx,{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})),pD=(e,t)=>{const n=n=>{const r=AP();return II.jsx(W_,{title:r(t),PopperProps:{disablePortal:!0},children:II.jsx("div",{children:II.jsx(e,{...n,"aria-label":r(t)})})})};return n.displayName=`withToolTip(${e.displayName||e.name})`,n},hD=({format:e,icon:t,...n})=>{const r=E.useContext(Xz),[o]=Ku(),i=E.useCallback(()=>{o.dispatchCommand(Tt,e)},[o,e]);return II.jsx(fD,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text",children:t})},gD=pD(hD,"Bold"),mD=()=>II.jsx(gD,{format:"bold","data-testid":"editor-toolbar-bold-btn",icon:II.jsx(vI,{height:12})}),vD=dt("APPLY_TEXT_FORMAT"),bD=dt("CLEAR_TEXT_FORMAT"),yD=pD(fD,"ClearFormat"),xD=()=>{const[e]=Ku(),t=E.useCallback(()=>{e.update(()=>{const t=Vr();if(Rr(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(xr(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),qs(i).setFormat(""));const a=i.getParent();(jc(a)||Nc(a))&&a.replace(Ko(),!0)}else(jc(t)||Nc(t))&&t.replace(Ko(),!0)}catch{}})}e.dispatchCommand(bD,void 0)})},[e]);return II.jsx(yD,{"data-testid":"editor-toolbar-clearFormat-btn",onClick:t,children:II.jsx(yI,{height:12})})};var _D,wD={},kD=function(){if(_D)return wD;_D=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,g,m=0,v=0,b=0,y=1;if(this._invalid=!1,arguments[0]instanceof t)m=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(g=arguments[0]))m=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(g))y=parseFloat(l(h[1]/2.55)/100),m=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(g))m=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(g))m=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(g))m=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(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else e[g.toLowerCase()]?(o=g.toLowerCase(),m=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,m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(m=arguments[0],v=arguments[1],b=arguments[2],y=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+m+v+b+y)&&(this._invalid=!0),this._r=s(m),this._g=s(v),this._b=s(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=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"==PI(o=function(e){if("object"!=PI(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=PI(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},wD.Color=u,wD}();const SD=Hv(o_)(({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"})),CD=Hv(Fx)(({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"})),ED=({palette:e,color:t,onColorChange:n})=>{const[r,o]=E.useState(t),i=Sv(),a=E.useCallback(e=>{o(e),n(e)},[n]);return II.jsx(SD,{children:e.map(e=>II.jsx(CD,{style:{backgroundColor:e},onClick:t=>{t.preventDefault(),t.stopPropagation(),a(e)},children:e===r?II.jsx(G_,{height:12,color:i.palette.getContrastText(e)}):null},e))})};function TD(e,t,n){return Math.max(t,Math.min(n,e))}const AD=(e,t)=>{const n=new kD.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"}},LD=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),a=TD(e.clientX-n,0,o)/o*100,s=100-TD(e.clientY-r,0,i)/i*100,l=new kD.Color(t).toHSVComponents();return l.s=a,l.v=s,l},RD=Hv(o_)(({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"})),MD=Hv(Fx)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),ND=Hv(Fx)(({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 );"})),OD=Hv(Fx)({width:"16px",height:"16px",borderRadius:"2px"}),PD=Hv(o_)({flexDirection:"row",alignItems:"center"}),ID=Hv(Fx)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),zD=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=E.useState(n),a=E.useRef(n),[s,l]=E.useState(!0),[u,c]=E.useState(o),d=E.useRef(null),f=E.useRef(null),p=E.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[h,g]=E.useState({left:"0",top:"0"});E.useEffect(()=>{r.some(e=>e===n)||l(!1)},[n,r]);const m=E.useCallback(e=>{if(!d.current&&(d.current=e,e)){const t=AD(o,e);g(t)}},[o]),v=E.useMemo(()=>`hsl(${new kD.Color(o).toHSVComponents().h}, 100%, 50%)`,[o]),b=E.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=LD(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new kD.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]),y=E.useCallback(t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=TD(e.clientX-r,0,n),i=Math.round(o/n*360),a=o/n*100,s=new kD.Color(t).toHSVComponents();return s.h=i,s.s=a,s})(t,a.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new kD.Color(r);a.current=o.toHex(),e(a.current),c(a.current),i(a.current)},[e]),x=E.useCallback(t=>{a.current=t,e(a.current),i(a.current),c(t)},[e]),_=E.useCallback(t=>{if(c(t.target.value),!new kD.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=AD(a.current,d.current);g(e)}},[e]);return II.jsxs(RD,{children:[s?II.jsx(ED,{palette:r,color:o,onColorChange:x}):II.jsxs(II.Fragment,{children:[II.jsx(MD,{style:{backgroundColor:v},ref:m,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=LD(e,a.current),l=`hsv(${s.h},${s.s},${s.v})`,u=new kD.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):b(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1},children:II.jsx(ID,{ref:f,style:{...h,backgroundColor:o}})}),II.jsx(ND,{onClick:y})]}),II.jsxs(PD,{children:[II.jsx(OD,{style:{backgroundColor:o}}),II.jsx(zx,{style:{flex:1},value:u,onChange:_}),II.jsx(jb,{onClick:()=>{l(!s)},children:II.jsx(_I,{height:12})}),II.jsx(jb,{onClick:t,children:II.jsx(G_,{height:12})})]})]})},DD=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],jD=pD(qx,"Color"),FD=({colorPalette:e=DD})=>{const[t]=Ku(),[n,r]=E.useState(null),{blockFormat:o}=E.useContext(Xz),i=E.useCallback((e,n)=>{t.update(()=>{const t=Vr();Rr(t)&&zs(t,{color:e})},n),t.dispatchCommand(vD,{styleKey:"color",styleValue:e})},[t]),a=()=>{r(null)};return II.jsx(Jx,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(jD,{variant:"text",size:"small",endIcon:II.jsx(sI,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},children:II.jsx(Fx,{sx:{backgroundColor:o.fontColor,width:12,height:12}})}),II.jsx(tD,{anchorEl:n,children:II.jsx(zD,{onClick:i,onClose:a,startColor:o.fontColor,palette:e})})]})})};pD(fD,"Export");const BD=({compact:e=!1,fonts:t=qz})=>{const[n]=Ku(),[r,o]=E.useState(null),{blockFormat:i}=E.useContext(Xz),a=E.useMemo(()=>t,[t]),s=E.useCallback(e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update(()=>{const e=Vr();Rr(e)&&zs(e,{"font-family":t||qz[0]}),n.dispatchCommand(vD,{styleKey:"fontFamily",styleValue:t||qz[0]}),n.focus()})},[n]);return II.jsx(Jx,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(rD,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:II.jsx("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"},children:"T"}),compact:e}),II.jsx(tD,{anchorEl:r,children:II.jsx(E_,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:a.map(e=>II.jsx(oD,{"data-font-name":e,onClick:s,active:e===i.fontName,children:II.jsx(nD,{children:e})},e))})})]})})},HD=e=>parseInt(e,10),WD=({fontSize:e,onSelected:t})=>{const[n,r]=E.useState(""),o=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)},[]),i=E.useCallback(()=>{const e=HD(n);e&&t(`${e}px`)},[t,n]),a=E.useCallback(e=>{"Enter"===e.key&&(e.preventDefault(),i())},[i]);return II.jsxs(o_,{direction:"row",children:[II.jsx(zx,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:a}),II.jsx(jb,{disabled:!HD(n),onClick:i,children:II.jsx(G_,{height:12})})]})},$D=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],UD=({compact:e=!1})=>{const[t]=Ku(),[n,r]=E.useState(null),{blockFormat:o}=E.useContext(Xz),i=E.useCallback(e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)},[n]),a=E.useCallback(()=>{r(null)},[]),s=E.useCallback(e=>{r(null),e.length>0&&t.update(()=>{const n=Vr();Rr(n)&&zs(n,{"font-size":e}),t.dispatchCommand(vD,{styleKey:"fontSize",styleValue:e})})},[t]),l=E.useCallback(e=>{const{fontSize:t}=e.currentTarget.dataset;s(t||"16px")},[s]),u=E.useCallback(e=>{s(e)},[s]);return II.jsx(Jx,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:II.jsxs("div",{children:[II.jsx(rD,{startIcon:e?II.jsx(nD,{children:o.fontSize}):void 0,value:o.fontSize,onClick:i,compact:e}),II.jsxs(tD,{anchorEl:n,children:[II.jsx(WD,{fontSize:o.fontSize,onSelected:u}),II.jsx(r_,{}),II.jsx(E_,{dense:!0,style:{maxHeight:200,overflow:"auto"},children:$D.map(e=>II.jsx(M_,{"data-font-size":e,onClick:l,children:II.jsx(nD,{children:e})},e))})]})]})})},KD=pD(fD,"InsertTable"),GD=()=>{const[e]=Ku(),t=E.useCallback(()=>{e.dispatchCommand(kz,void 0)},[e]);return II.jsx(KD,{onClick:t,"data-testid":"editor-toolbar-insertTable-btn",children:II.jsx(kI,{height:12})})},VD=pD(hD,"Italic"),YD=()=>II.jsx(VD,{"data-testid":"editor-toolbar-italic-btn",format:"italic",icon:II.jsx(CI,{height:12})}),qD=pD(fD,"InsertHyperlink"),QD=()=>{const[e]=Ku(),{blockFormat:t}=E.useContext(Xz),n=E.useCallback(()=>{t.isLink?e.dispatchCommand(ql,null):e.dispatchCommand(ql,$I("https://"))},[e,t.isLink]);return II.jsx(qD,{"data-testid":"editor-toolbar-link-btn",onClick:n,children:II.jsx(TI,{height:12})})};pD(fD,"Toggle");const JD=pD(hD,"Underline"),XD=()=>II.jsx(JD,{"data-testid":"editor-toolbar-underline-btn",format:"underline",icon:II.jsx(LI,{height:12})}),ZD=()=>II.jsx(r_,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var ej={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=="},InsertImage:{value:"Bild einfügen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabelle einfügen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},tj={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)"}},nj={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=="},InsertImage:{value:"Insertar imagen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insertar tabla",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},rj={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=="},InsertImage:{value:"Insérer une image",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Insérer une table",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},oj={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=="},InsertImage:{value:"Inserisci immagine",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserisci tabella",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},ij={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=="},InsertImage:{value:"画像を挿入",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"テーブルを挿入",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},aj={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=="},InsertImage:{value:"이미지 삽입",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"테이블 삽입",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},sj={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=="},InsertImage:{value:"Afbeelding invoegen",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tabel invoegen",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},lj={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=="},InsertImage:{value:"Wstaw grafikę",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Wstaw tabelę",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},uj={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=="},InsertImage:{value:"Inserir imagem",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Inserir tabela",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},cj={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=="},InsertImage:{value:"Вставить изображение",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Вставить таблицу",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},dj={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=="},InsertImage:{value:"Infoga bild",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Infoga tabell",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="}},fj={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=="},InsertImage:{value:"Görüntü ekle",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"Tablo ekle",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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 pj={de:ej,es:nj,en:tj,fr:rj,it:oj,ja:ij,ko:aj,nl:sj,pl:lj,pt:uj,ru:cj,sv:dj,tr:fj,"de-de":ej,"es-es":nj,"en-us":tj,"fr-fr":rj,"it-it":oj,"ja-jp":ij,"ko-kr":aj,"nl-nl":sj,"pl-pl":lj,"pt-br":uj,"ru-ru":cj,"sv-se":dj,"tr-tr":fj,"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=="},InsertImage:{value:"插入图像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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=="},InsertImage:{value:"插入影像",comment:"Label for toolbar menu option to insert an image. (tew 260205)",version:"WkGyZIiaf2vkOz3sLRe8yw=="},InsertTable:{value:"插入表格",comment:"Label for toolbar menu option to insert a table. (tew 260205)",version:"MDUMiPnfA3w0N2bSdGExNg=="},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 hj(e,t){return e.getEditorState().read(()=>{const e=_i(t);return null!==e&&e.isSelected()})}function gj(e){const[t]=Ku(),[n,r]=E.useState(()=>hj(t,e));return E.useEffect(()=>{let n=!0;const o=t.registerUpdateListener(()=>{n&&r(hj(t,e))});return()=>{n=!1,o()}},[t,e]),[n,E.useCallback(n=>{t.update(()=>{let t=Vr();Nr(t)||(t=Kr(),Li(t)),Nr(t)&&(n?t.add(e):t.delete(e))})},[t,e]),E.useCallback(()=>{t.update(()=>{const e=Vr();Nr(e)&&e.clear()})},[t])]}var mj,vj={};var bj=function(){if(mj)return vj;mj=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,g,m=0,v=0,b=0,y=1;if(this._invalid=!1,arguments[0]instanceof t)m=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(g=arguments[0]))m=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(g))y=parseFloat(l(h[1]/2.55)/100),m=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(g))m=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(g))m=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(g))m=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(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(g)){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,m=f[0]+p,v=f[1]+p,b=f[2]+p,m=l(255*m),v=l(255*v),b=l(255*b),y=1}else e[g.toLowerCase()]?(o=g.toLowerCase(),m=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,m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(m=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(m=arguments[0],v=arguments[1],b=arguments[2],y=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+m+v+b+y)&&(this._invalid=!0),this._r=s(m),this._g=s(v),this._b=s(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=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},vj.Color=u,vj}();async function yj(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 xj(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function _j(e,t){return t?.getNodes().some(t=>t.getKey()===e)}var wj,kj;var Sj=function(){if(kj)return wj;kj=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},wj=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},wj}();let Cj=[];const Ej=new Sj.EventEmitter;Ej.isSelected=e=>{const t=e?.qDef?.cId;return-1!==Cj.indexOf(t)},Ej.setSelected=e=>{Cj!==e&&(Cj=e,Ej.emit("change"))};function Tj({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o,flags:i}=E.useContext(L),[a]=Ku(),s=Vc(),[l,u,c]=gj(n),d=E.useRef(null),[f,p]=E.useState(t);E.useEffect(()=>{p(t)},[t]);const h=E.useMemo(()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":s&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}},[l,s]),g=E.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 bj.Color(t);return{value:e?.qText||"",expressionColor:n.toHex()}}}return{value:e?.qText||""}}}return{value:""}}(e,r):{value:""},[r,e,o]);E.useEffect(()=>Ss(a.registerCommand(Tt,e=>(a.update(()=>{const t=e,r=Vr();if(Rr(r)&&l){if(_j(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&&Nr(r)&&_j(n,r)&&d.current){const e=xj(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(vD,e=>(a.getEditorState().read(()=>{if("color"===e.styleKey&&g.expressionColor)return!1;if(d.current&&l){const t=Vr();if(_j(n,t)){const t=xj(d.current?.style);t[e.styleKey]=e.styleValue,p(t)}}}),!1),0),a.registerCommand(bD,()=>(a.getEditorState().read(()=>{if(d.current&&l){const e=Vr();if(_j(n,e)){const e={};g.expressionColor&&(e.color=g.expressionColor),p(e)}}}),!1),0),a.registerCommand(ft,()=>(i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&a.update(()=>{const e=[],t=Vr(),n=t?.getNodes();n?.forEach(t=>{t?.getExpressionId&&e.push(t?.getExpressionId())}),Ej.setSelected(e)}),!1),1)),[a,u,c,l,n,g]),E.useEffect(()=>{s||(c(),i?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE")&&Ej.setSelected([]))},[s,c,i]),E.useEffect(()=>{a.update(()=>{!function(e,t){const n=_i(e);n&&"setFormatStyle"in n&&"function"==typeof n.setFormatStyle&&n.setFormatStyle(t)}(n,f)})},[f,a,n]);const m=E.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=Vr();if(Nr(e)){const t=_i(n);t?.selectPrevious(),e.delete(n)}})}},[s,c,u,a,n]);return Qu.jsx("span",{style:{...h,...f,color:g.expressionColor?g.expressionColor:f.color},onClick:m,ref:d,id:e,children:g.value})}const Aj="qlik.expression.node";class Lj extends Oz{static getType(){return Aj}static clone(e){return new Lj(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new Lj(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:Aj,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 Qu.jsx(Tj,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function Rj(e){return e instanceof Lj}const Mj="ImageNode",Nj=dt("INSERT_IMAGE_COMMAND"),Oj=()=>{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()},Pj=(e,t=new Set,n=new Set)=>{const r=e;if(r.type===Mj)r.id||(r.id=Oj()),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)Pj(e,t,n);return{imageIds:t,newPropertyImages:n}},Ij=(e,t)=>e?.images?.find(e=>e.id===t)?.url.qStaticContentUrl.qUrl||"";async function zj(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=Pj(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 Dj(){const[e]=Ku(),t=Vc(),{edit:n,model:r,emitter:o,flags:i}=E.useContext(L);return E.useEffect(()=>{const t=()=>{r&&zj(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]),E.useEffect(()=>{e.setEditable(n)},[n]),E.useEffect(()=>{t&&e.focus()},[t,e]),null}class jj{constructor(){this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=_i(e);if(Rj(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 Fj(){const{layout:e,emitter:t}=E.useContext(L),[n]=Ku(),r=E.useRef(new jj),o=Vc();return E.useEffect(()=>{const e=n.registerMutationListener(Lj,e=>{n.getEditorState().read(()=>{for(const[t,n]of e)r.current.update(t,n)})});return()=>{e()}},[n]),E.useEffect(()=>{e&&n.update(()=>{const t=e,n=t.qHyperCube?.qMeasureInfo;if(n){const e=Gi(Lj),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=Vr(),{cId:t}=n[n.length-1],r=new Lj(t,{}),o=yr(" "),i=yr("");Rr(e)?e.insertNodes([i,r,o]):Qs(r)}}})},[e,n]),E.useEffect(()=>n.registerCommand(Rt,e=>("Backspace"===e.key&&n.update(()=>{const e=Vr();Nr(e)&&e.getNodes().forEach(e=>{Rj(e)&&(e.selectPrevious(),e.remove())})}),!1),1),[n]),E.useEffect(()=>{if(!o){const e=r.current.sync();e.length>0&&t?.emit("onNodeDestroyed",e)}},[o,t]),null}const Bj=/"/g;function Hj(){const{model:e,emitter:t}=E.useContext(L),[n]=Ku(),r=E.useRef(new Map);return E.useEffect(()=>{const o=n.registerMutationListener(cr,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(Bj,"")),e)}}return t?.on("saveDocument",i),()=>{t?.removeListener("saveDocument",i),o()}},[n,t,e]),null}function Wj(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 $j,Uj="top",Kj="top-right",Gj="right",Vj="bottom-right",Yj="bottom",qj="bottom-left",Qj="left",Jj="top-left";Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj($j={},"equal-equal",[Uj,Yj]),"equal-higher",[Yj,Vj]),"equal-lower",[Uj,Kj]),"equal-void",[Uj,Yj]),"higher-equal",[Qj,qj,Uj,Kj]),"higher-higher-acute",[Yj,qj,Qj,Kj]),"higher-higher-obtuse",[Yj,Uj]),"higher-lower-negative",[Uj,Kj,Gj]),"higher-lower-positive",[Yj,qj,Qj]),"higher-void",[Uj]),Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj($j,"lower-equal",[Uj]),"lower-higher-negative",[Uj,Jj]),"lower-higher-positive",[Vj]),"lower-lower-acute",[Uj,Jj,Qj,Kj,Gj]),"lower-lower-obtuse",[Uj,Yj]),"lower-void",[Uj]),"void-equal",[Uj]),"void-higher",[Uj,Yj]),"void-lower",[Uj,Yj,Qj]),"void-void",[Uj]),Wj($j,"unclassified",[Uj,Yj,Gj,Qj,Kj,Vj,qj,Jj]);var Xj,Zj,eF=["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"],tF=["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 nF=function(){if(Zj)return Xj;Zj=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 Xj=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},Xj}();function rF(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function oF(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function iF(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(nF);var aF=1/.7,sF="\\s*([+-]?\\d+)\\s*",lF="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",uF="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cF=/^#([0-9a-f]{3,8})$/,dF=new RegExp(`^rgb\\(${sF},${sF},${sF}\\)$`),fF=new RegExp(`^rgb\\(${uF},${uF},${uF}\\)$`),pF=new RegExp(`^rgba\\(${sF},${sF},${sF},${lF}\\)$`),hF=new RegExp(`^rgba\\(${uF},${uF},${uF},${lF}\\)$`),gF=new RegExp(`^hsl\\(${lF},${uF},${uF}\\)$`),mF=new RegExp(`^hsla\\(${lF},${uF},${uF},${lF}\\)$`),vF={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 bF(){return this.rgb().formatHex()}function yF(){return this.rgb().formatRgb()}function xF(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cF.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_F(t):3===n?new CF(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?wF(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?wF(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=dF.exec(e))?new CF(t[1],t[2],t[3],1):(t=fF.exec(e))?new CF(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=pF.exec(e))?wF(t[1],t[2],t[3],t[4]):(t=hF.exec(e))?wF(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=gF.exec(e))?MF(t[1],t[2]/100,t[3]/100,1):(t=mF.exec(e))?MF(t[1],t[2]/100,t[3]/100,t[4]):vF.hasOwnProperty(e)?_F(vF[e]):"transparent"===e?new CF(NaN,NaN,NaN,0):null}function _F(e){return new CF(e>>16&255,e>>8&255,255&e,1)}function wF(e,t,n,r){return r<=0&&(e=t=n=NaN),new CF(e,t,n,r)}function kF(e){return e instanceof iF||(e=xF(e)),e?new CF((e=e.rgb()).r,e.g,e.b,e.opacity):new CF}function SF(e,t,n,r){return 1===arguments.length?kF(e):new CF(e,t,n,null==r?1:r)}function CF(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function EF(){return`#${RF(this.r)}${RF(this.g)}${RF(this.b)}`}function TF(){const e=AF(this.opacity);return`${1===e?"rgb(":"rgba("}${LF(this.r)}, ${LF(this.g)}, ${LF(this.b)}${1===e?")":`, ${e})`}`}function AF(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function LF(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function RF(e){return((e=LF(e))<16?"0":"")+e.toString(16)}function MF(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new OF(e,t,n,r)}function NF(e){if(e instanceof OF)return new OF(e.h,e.s,e.l,e.opacity);if(e instanceof iF||(e=xF(e)),!e)return new OF;if(e instanceof OF)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 OF(a,s,l,e.opacity)}function OF(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function PF(e){return(e=(e||0)%360)<0?e+360:e}function IF(e){return Math.max(0,Math.min(1,e||0))}function zF(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}rF(iF,xF,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:bF,formatHex:bF,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return NF(this).formatHsl()},formatRgb:yF,toString:yF}),rF(CF,SF,oF(iF,{brighter(e){return e=null==e?aF:Math.pow(aF,e),new CF(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new CF(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new CF(LF(this.r),LF(this.g),LF(this.b),AF(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:EF,formatHex:EF,formatHex8:function(){return`#${RF(this.r)}${RF(this.g)}${RF(this.b)}${RF(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:TF,toString:TF})),rF(OF,function(e,t,n,r){return 1===arguments.length?NF(e):new OF(e,t,n,null==r?1:r)},oF(iF,{brighter(e){return e=null==e?aF:Math.pow(aF,e),new OF(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new OF(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 CF(zF(e>=240?e-240:e+120,o,r),zF(e,o,r),zF(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new OF(PF(this.h),IF(this.s),IF(this.l),AF(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=AF(this.opacity);return`${1===e?"hsl(":"hsla("}${PF(this.h)}, ${100*IF(this.s)}%, ${100*IF(this.l)}%${1===e?")":`, ${e})`}`}}));const DF=Math.PI/180,jF=180/Math.PI,FF=4/29,BF=6/29,HF=3*BF*BF;function WF(e){if(e instanceof $F)return new $F(e.l,e.a,e.b,e.opacity);if(e instanceof YF)return qF(e);e instanceof CF||(e=kF(e));var t,n,r=VF(e.r),o=VF(e.g),i=VF(e.b),a=UF((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=UF((.4360747*r+.3850649*o+.1430804*i)/.96422),n=UF((.0139322*r+.0971045*o+.7141733*i)/.82521)),new $F(116*a-16,500*(t-a),200*(a-n),e.opacity)}function $F(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function UF(e){return e>.008856451679035631?Math.pow(e,1/3):e/HF+FF}function KF(e){return e>BF?e*e*e:HF*(e-FF)}function GF(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function VF(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function YF(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function qF(e){if(isNaN(e.h))return new $F(e.l,0,0,e.opacity);var t=e.h*DF;return new $F(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}rF($F,function(e,t,n,r){return 1===arguments.length?WF(e):new $F(e,t,n,null==r?1:r)},oF(iF,{brighter(e){return new $F(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new $F(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 CF(GF(3.1338561*(t=.96422*KF(t))-1.6168667*(e=1*KF(e))-.4906146*(n=.82521*KF(n))),GF(-.9787684*t+1.9161415*e+.033454*n),GF(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),rF(YF,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof YF)return new YF(e.h,e.c,e.l,e.opacity);if(e instanceof $F||(e=WF(e)),0===e.a&&0===e.b)return new YF(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*jF;return new YF(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new YF(e,t,n,null==r?1:r)},oF(iF,{brighter(e){return new YF(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new YF(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return qF(this).rgb()}}));var QF=e=>()=>e;function JF(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):QF(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?JF: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):QF(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=SF(e)).r,(t=SF(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=JF(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 XF,ZF="center",eB="bottom";function tB(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 nB(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=oB)):void 0===t&&(t=rB);for(var n,r,o,i,a,s=new sB(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 sB(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(aB)}function rB(e){return e.children}function oB(e){return Array.isArray(e)?e[1]:null}function iB(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function aB(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function sB(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:ZF,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:ZF,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:ZF,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:ZF},{key:"DataRangeIncludingZero",alignment:eB},{key:"LimitedData",alignment:eB},{key:"NegativeOrZeroValues",alignment:eB}].reduce(function(e,t){return e[t.key]=t,e},{}),sB.prototype=nB.prototype={constructor:sB,count:function(){return this.eachAfter(tB)},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 nB(this).eachBefore(iB)},[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)}},XF=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,s,l,u,c,d,f=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",g=e.split("").reverse().join(""),m=g.search(/[0-9\-\+#]/),v=f-m,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=m>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))+"",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(g="",v=(d=t[0]).length%l,f=d.length,y=0;y<f;y++)g+=d.charAt(y),!((y-v+1)%l)&&y<f-l&&(g+=i);t[0]=g}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},HF({exports:{}});const JF=e=>`text-toolbar.${e?.id}`,XF=(e,t)=>ju.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:ju.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"})}),ZF=E.forwardRef(XF),eB=nD(tD,"InsertImage"),tB=()=>{const{flags:e,showMediaLibrary:t}=E.useContext(L),[n]=Ou(),r=E.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(_j,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?ju.jsx(eB,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:ju.jsx(ZF,{height:12})}):null};function nB(){const{element:e,edit:t,model:n,flags:r,theme:o}=E.useContext(L),i=E.useMemo(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),a=E.useMemo(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Uj:$j}(r),[r]),s=E.useMemo(()=>(e=>{const t=e?.getDataColorPickerPalettes();if(t&&t?.length>0)return["#404040",...t[0].colors.filter(e=>"none"!==e)]})(o),[o]);return ju.jsx(cx,{open:t,anchorEl:i,placement:"top",transition:!0,sx:{zIndex:2},id:JF(n),children:({TransitionProps:e})=>ju.jsx(Xx,{...e,children:ju.jsx(ob,{sx:{borderRadius:1,padding:.25},children:ju.jsxs($z,{children:[ju.jsx(eD,{compact:!0}),ju.jsx(WD,{}),ju.jsx(LD,{compact:!0,fonts:a}),ju.jsx(OD,{compact:!0}),ju.jsx(WD,{}),ju.jsx(iD,{}),ju.jsx(DD,{}),ju.jsx(HD,{}),ju.jsx(FD,{}),ju.jsx(AD,{colorPalette:s}),ju.jsx(WD,{}),ju.jsx(qz,{compact:!0}),ju.jsx(WD,{}),ju.jsx(uD,{}),ju.jsx(WD,{}),ju.jsx(ID,{}),ju.jsx(tB,{})]})})})})}function rB(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))}}rB(".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");rB(".tek__editor__container span.tek__image {\n display: inline-block;\n position: relative;\n user-select: none;\n max-width: 100%;\n overflow: hidden;\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: 4px;\n right: -1px;\n cursor: nwse-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_s {\n bottom: 4px;\n left: 48%;\n cursor: s-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_sw {\n bottom: 4px;\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 oB=1,iB=8,aB=2,sB=4;function lB({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=E.useRef(null),a=E.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=E.useRef({priority:"",value:"default"}),l=o.getRootElement();let u=r;u||(u=null!==l?l.getBoundingClientRect().width:100);const c=null!==l?l.getBoundingClientRect().height: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===oB||e===sB?"ew":e===iB||e===aB?"ns":e&iB&&e&sB||e&aB&&e&oB?"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&(oB|sB),i=r.direction&(aB|iB);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&oB?-n:n;const o=uB(r.startWidth+n,20,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&aB?-n:n;const o=uB(r.startHeight+n,20,c);t.style.height=`${o}px`,r.currentHeight=o}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&oB?-n:n;const o=uB(r.startWidth+n,20,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 ju.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[ju.jsx("div",{className:"tek__image_resizer tek__image_resizer_n",onPointerDown:e=>{d(e,iB)}}),ju.jsx("div",{className:"tek__image_resizer tek__image_resizer_ne",onPointerDown:e=>{d(e,iB|oB)}}),ju.jsx("div",{className:"tek__image_resizer tek__image_resizer_e",onPointerDown:e=>{d(e,oB)}}),ju.jsx("div",{className:"tek__image_resizer tek__image_resizer_se",onPointerDown:e=>{d(e,aB|oB)}}),ju.jsx("div",{className:"tek__image_resizer tek__image_resizer_s",onPointerDown:e=>{d(e,aB)}}),ju.jsx("div",{className:"tek__image_resizer tek__image_resizer_sw",onPointerDown:e=>{d(e,aB|sB)}}),ju.jsx("div",{className:"tek__image_resizer tek__image_resizer_w",onPointerDown:e=>{d(e,sB)}}),ju.jsx("div",{className:"tek__image_resizer tek__image_resizer_nw",onPointerDown:e=>{d(e,iB|sB)}})]})}const uB=(e,t,n)=>Math.min(Math.max(e,t),n),cB=new Map,dB=({altText:e,className:t,imageRef:n,src:r,width:o,height:i,maxWidth:a,maxHeight:s,onError:l,onLoad:u})=>{const c=(e=>{let t=cB.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=>(cB.set(e,t),t)),cB.set(e,t),t;throw t})(r);E.useEffect(()=>{c.error&&l()},[c.error,l]);const d=(()=>{if(c.error)return{height:100,maxWidth:a,width:100};let e=!1,t="inherit"===o?c.width:o,n="inherit"===i?c.height:i;if(a&&t>a){const r=a/t;t=a,n=Math.round(n*r),e=!0}if(s&&n>s){const r=s/n;n=s,t=Math.round(t*r),e=!0}return{height:e?n:i,maxWidth:a,width:e?t:o}})();return ju.jsx("img",{className:t||void 0,src:r,alt:e,ref:n,style:d,onError:l,draggable:"false","data-testid":"sn-text-image",onLoad:u})};function fB({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=E.useRef(null),[l,u,c]=oj(a),[d,f]=E.useState(!1),[p]=Ou(),h=zc(),{layout:g,printingStatus:m}=E.useContext(L),v=void 0,b=E.useMemo(()=>e||Sj(g,t),[e,g,t]);E.useEffect(()=>{!h&&l&&c()},[h,l,c]);const y=E.useCallback(e=>{const t=e;return!!d||t.target===s.current&&(t.shiftKey?u(!l):(c(),u(!0)),!0)},[d,l,u,c]),x=E.useCallback(()=>!!l&&(Si(null),p.focus(),!0),[l,p]);E.useEffect(()=>bs(p.registerCommand(ft,y,1),p.registerCommand(Gt,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(jt,x,1)),[p,y,x]);const _=l&&!d&&h,w=(l||d)&&h;return ju.jsx(E.Suspense,{fallback:null,children:ju.jsxs(ju.Fragment,{children:[ju.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:ju.jsx(dB,{className:`${w?"focused":""} ${_?"draggable":""}`,src:b,altText:n,imageRef:s,width:r,height:o,maxWidth:v,onLoad:()=>m?.resolve(t,!1),onError:()=>m?.resolve(t,!1)})}),i&&l&&w?ju.jsx(lB,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=mi(a);n?.getType()===xj&&n.setWidthAndHeight(e,t)})}}):null]})})}class pB extends Lo{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 xj}static clone(e){return new pB({...e.__props,key:e.getKey()})}decorate(){return ju.jsx(fB,{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:xj,version:1}}static importJSON(e){return hB(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const hB=e=>new pB(e),gB=document.createElement("img");function mB(e){const t=e.target;return!!(t&&aa(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&aa(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function vB(){const e=$r();if(!Ar(e))return null;const t=e.getNodes()[0];return t.getType()===xj?t:null}function bB(e,t){const n=vB();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!==xj?null:r}(e);if(!r)return!1;const o=_a(n,e=>!zl(e)&&Ol(e));if(e.preventDefault(),mB(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=Br();null!=i&&a.applyDOMRange(i),Si(a),t.dispatchCommand(_j,{...r}),o&&t.dispatchCommand(Dl,o.getURL())}return!0}gB.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const yB=()=>{const[e]=Ou(),{emitter:t,layout:n,model:r}=E.useContext(L),[o,i]=E.useState();return E.useEffect(()=>{"function"==typeof r?.getProperties&&r?.getProperties().then(e=>{i(e)})},[n,r]),E.useEffect(()=>bs(e.registerCommand(_j,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(e.update(()=>{const e=hB({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});Qr([e]),Xi(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,Bo).selectEnd()}),!0),0),e.registerCommand(qt,t=>{const r=$r();if(!r)return!1;const i=r.getNodes().some(e=>e.getType()===pB.getType());if(!i)return!1;const a=sc(r),s=a["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===pB.getType()){const t={...e};return t.tempUrl=t.tempUrl||Sj(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 oc(e,Ks(t,ClipboardEvent)?t:null,n),!0}return!1},3),e.registerCommand(Gt,e=>function(e){const t=vB();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(gB,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:xj})),!0)}(e),3),e.registerCommand(Vt,e=>function(e){return!!vB()&&(mB(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(Ut,t=>bB(t,e),3)),[e,t,o,n]),null};const xB=()=>((()=>{const e=E.useRef(null),{printingStatus:t}=E.useContext(L),[n]=Ou();E.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function _B({interactionState:e}){const{initialData:t,lang:n,flags:r,showMediaLibrary:o}=E.useContext(L),i=e?.edit,a=!(!1===i&&r?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));E.useEffect(()=>{!function(e){const t=Object.entries(nj[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});bP.configure(t,e)}(n)},[n]);const s=E.useMemo(()=>{if(void 0!==t){const n=t||void 0,o=[...kz,bj];return r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push(pB):o.push((e=xj,class t extends Lo{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=BI.nodes;e.nodes&&(t=BI.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...BI,nodes:t,editorState:n}})({initialData:n,nodes:o})}var e;return null},[t,r]);return s?ju.jsx("div",{className:"hideScrollBar",children:ju.jsxs(HI,{initialConfig:s,flags:r,children:[ju.jsx(nB,{}),ju.jsx(zz,{showPlaceholder:a}),ju.jsx(Pz,{}),o&&r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?ju.jsx(yB,{}):null,ju.jsx(Aj,{}),ju.jsx(Ej,{}),ju.jsx(Rj,{}),ju.jsx(xB,{})]})}):null}const wB={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:gj,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"}]}}}}},kB={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 SB{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 CB=({propertyPanelHandlerData:t,flags:n})=>{const r=e.useElement(),o=e.useStaleLayout(),i=e.useModel(),a=e.useInteractionState(),s=e.useEmitter(),[l,u]=e.useState(!1),[c,d]=e.useState(1),[f,p]=e.useState(!1),h=e=>{e||d(0),(e=>!!e.qExtendsId)(o)||(e&&p(!0),u(e),s.emit("njs-internal-edit-change",e))};return e.useEffect(()=>{2===c&&a.edit&&a.select&&h(!0)},[c,a]),e.useEffect(()=>{const e=()=>{a.edit&&a.select&&d(e=>e+1)},o=e=>{const t=document.getElementById(JF(i));r.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),r=document.getElementById("tekTableMenu");if(r?.contains(e))return!0;if(n?.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)||h(!1)};if(!a.edit||!a.select){h(!1);const e=i?.id&&t.getSnTexts()[i.id]?.propertiesHaveBeenModified;i&&(f||e)&&(s.emit("saveDocument"),t.setPropertiesHaveBeenModified(i.id,!1))}return r.addEventListener("click",e),document.addEventListener("mousedown",o),()=>{r.removeEventListener("click",e),document.removeEventListener("mousedown",o)}},[r,a,i]),e.useEffect(()=>{!l&&f&&s.emit("saveDocument")},[l,s,f]),{edit:l}};return function(t){const o=new SB,{flags:i}=t;return{qae:{properties:n,data:r(o)},component(){const n=e.useElement(),r=(t=>{const n=e.useMemo(()=>C.createRoot(t),[t]);return e.useEffect(()=>()=>{n?.unmount()},[n]),n})(n),a=e.useStaleLayout(),s=e.useModel(),l=e.useInteractionState(),u=e.useEmitter(),[c,d]=e.useState(null),f=e.useTranslator(),[p,h]=e.useState(void 0),g=e.useTheme(),{printingStatus:m}=(({layout:t,flags:n})=>{const[r,o]=e.useState(null);return e.usePromise(()=>new Promise(e=>{const r=new Set;n.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&t.images&&t.images.forEach(e=>{e.id&&r.add(e.id)}),o({resolve:(t,n)=>{t&&r.delete(t),(0===r.size||n)&&(o(null),e?.(t))}})}),[]),e.useEffect(()=>{let e;return r&&(e=setTimeout(()=>{r.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[r]),{printingStatus:r}})({layout:a,flags:i});e.useEffect(()=>{const e=e=>{lj(s,e)};return u.on("onNodeDestroyed",e),()=>{u.removeListener("onNodeDestroyed",e)}},[u,s]),e.useEffect(()=>{a&&void 0===p&&(h(a.text||null),d(a?.text))},[a,p]);const{edit:v}=CB({propertyPanelHandlerData:o,flags:i});e.useEffect(()=>{(({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(ju.jsx(T.StrictMode,{children:ju.jsx(L.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:ju.jsx(_B,{interactionState:c})})}))})({rootElement:r,layout:a,model:s,element:n,edit:v,initialData:p,emitter:u,lang:f.language(),flags:i,theme:g,interactionState:l,printingStatus:m,showMediaLibrary:t.anything?.sense?.showMediaLibrary})},[a,r,s,n,v,n,p,u,i,g,l]),e.useEffect(()=>{if(a){const e=a;e.text&&e.text!==c&&(d(e.text),u.emit("reloadData",e.text))}},[a,c,u]),e.useImperativeHandle(()=>({updateActiveState(e){e?o.setSelectedModelId(s?.id):s?.id===o.getSelectedModelId()&&o.setSelectedModelId(void 0)}}),[])},ext:{definition:{type:"items",component:"accordion",items:{data:wB,settings:kB}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}}}}});
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):"",g=e.split("").reverse().join(""),m=g.search(/[0-9\-\+#]/),v=f-m,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=m>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))+"",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(g="",v=(d=t[0]).length%l,f=d.length,y=0;y<f;y++)g+=d.charAt(y),!((y-v+1)%l)&&y<f-l&&(g+=i);t[0]=g}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},XF({exports:{}});const lB=e=>`text-toolbar.${e?.id}`,uB=(e,t)=>Qu.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:Qu.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"})}),cB=E.forwardRef(uB),dB=pD(fD,"InsertImage"),fB=()=>{const{flags:e,showMediaLibrary:t}=E.useContext(L),[n]=Ku(),r=E.useCallback(()=>{t?.({onConfirm:(e,t)=>{n.dispatchCommand(Nj,{method:"mediaLibrary",tempUrl:e,tempUrlDef:t})},onCancel:()=>{}})},[n,t]);return t&&e?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Qu.jsx(dB,{onClick:r,"data-testid":"editor-toolbar-insertImage-btn",children:Qu.jsx(cB,{height:12})}):null};function pB(){const{element:e,edit:t,model:n,flags:r,theme:o}=E.useContext(L),i=E.useMemo(()=>{const t=e?.closest(".qv-inner-object");return t||e},[e]),a=E.useMemo(()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?tF:eF}(r),[r]),s=E.useMemo(()=>(e=>{const t=e?.getDataColorPickerPalettes();if(t&&t?.length>0)return["#404040",...t[0].colors.filter(e=>"none"!==e)]})(o),[o]);return Qu.jsx(_x,{open:t,anchorEl:i,placement:"top",transition:!0,sx:{zIndex:2},id:lB(n),children:({TransitionProps:e})=>Qu.jsx(u_,{...e,children:Qu.jsx(gb,{sx:{borderRadius:1,padding:.25},children:Qu.jsxs(eD,{children:[Qu.jsx(dD,{compact:!0}),Qu.jsx(ZD,{}),Qu.jsx(BD,{compact:!0,fonts:a}),Qu.jsx(UD,{compact:!0}),Qu.jsx(ZD,{}),Qu.jsx(mD,{}),Qu.jsx(YD,{}),Qu.jsx(XD,{}),Qu.jsx(QD,{}),Qu.jsx(FD,{colorPalette:s}),Qu.jsx(ZD,{}),Qu.jsx(aD,{compact:!0}),Qu.jsx(ZD,{}),Qu.jsx(xD,{}),Qu.jsx(ZD,{}),Qu.jsx(GD,{}),Qu.jsx(fB,{})]})})})})}function hB(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))}}hB(".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");hB(".tek__editor__container span.tek__image {\n display: inline-block;\n position: relative;\n user-select: none;\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.tek__hitbox {\n display: block;\n width: 18px;\n height: 18px;\n position: absolute;\n}\n.tek__editor__container .tek__image .tek__image_resizer.tek__visual_cue {\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: 4px;\n right: -1px;\n cursor: nwse-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_s {\n bottom: 4px;\n left: 48%;\n cursor: s-resize;\n}\n\n.tek__editor__container .tek__image .tek__image_resizer.tek__image_resizer_sw {\n bottom: 4px;\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 gB=1,mB=8,vB=2,bB=4;function yB({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:o}){const i=E.useRef(null),a=E.useRef({direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0,currentHeight:0,currentWidth:0}),s=E.useRef({priority:"",value:"default"}),l=o.getRootElement();let u=r;u||(u=null!==l?l.getBoundingClientRect().width:100);const c=null!==l?l.getBoundingClientRect().height: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===gB||e===bB?"ew":e===mB||e===vB?"ns":e&mB&&e&bB||e&vB&&e&gB?"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&(gB|bB),i=r.direction&(vB|mB);if(null!==t&&r.isResizing)if(o&&i){let n=Math.floor(r.startX-e.clientX);n=r.direction&gB?-n:n;const o=xB(r.startWidth+n,20,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&vB?-n:n;const o=xB(r.startHeight+n,20,c);t.style.height=`${o}px`,r.currentHeight=o}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&gB?-n:n;const o=xB(r.startWidth+n,20,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 Qu.jsxs("div",{ref:i,"data-testid":"sn-text-image-resizer",children:[Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_n",onPointerDown:e=>{d(e,mB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_ne"}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_ne",onPointerDown:e=>{d(e,mB|gB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_e",onPointerDown:e=>{d(e,gB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_se"}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_se",onPointerDown:e=>{d(e,vB|gB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_s",onPointerDown:e=>{d(e,vB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_sw"}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_sw",onPointerDown:e=>{d(e,vB|bB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_w",onPointerDown:e=>{d(e,bB)}}),Qu.jsx("div",{className:"tek__image_resizer tek__visual_cue tek__image_resizer_nw"}),Qu.jsx("div",{className:"tek__image_resizer tek__hitbox tek__image_resizer_nw",onPointerDown:e=>{d(e,mB|bB)}})]})}const xB=(e,t,n)=>Math.min(Math.max(e,t),n),_B=new Map,wB=({altText:e,className:t,imageRef:n,src:r,width:o,height:i,maxWidth:a,maxHeight:s,onError:l,onLoad:u,onContextMenu:c})=>{const d=(e=>{let t=_B.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=>(_B.set(e,t),t)),_B.set(e,t),t;throw t})(r);E.useEffect(()=>{d.error&&l()},[d.error,l]);const f=(()=>{if(d.error)return{height:100,maxWidth:a,width:100};let e=!1,t="inherit"===o?d.width:o,n="inherit"===i?d.height:i;if(a&&t>a){const r=a/t;t=a,n=Math.round(n*r),e=!0}if(s&&n>s){const r=s/n;n=s,t=Math.round(t*r),e=!0}return{height:e?n:i,maxWidth:a,width:e?t:o}})();return Qu.jsx("img",{className:t||void 0,src:r,alt:e,ref:n,style:f,onError:l,draggable:"false","data-testid":"sn-text-image",onLoad:u,onContextMenu:c})};function kB({tempUrl:e,imageId:t,altText:n,width:r,height:o,resizable:i,nodeKey:a}){const s=E.useRef(null),[l,u,c]=gj(a),[d,f]=E.useState(!1),[p]=Ku(),h=Vc(),{layout:g,printingStatus:m}=E.useContext(L),v=void 0,b=E.useMemo(()=>e||Ij(g,t),[e,g,t]);E.useEffect(()=>{!h&&l&&c()},[h,l,c]);const y=E.useCallback(e=>{const t=e;return!!d||t.target===s.current&&(t.shiftKey?u(!l):(c(),u(!0)),!0)},[d,l,u,c]),x=E.useCallback(()=>!!l&&(Li(null),p.focus(),!0),[l,p]);E.useEffect(()=>Ss(p.registerCommand(ht,y,1),p.registerCommand(Yt,e=>e.target===s.current&&(e.preventDefault(),!0),1),p.registerCommand(Bt,x,1)),[p,y,x]);const _=l&&!d&&h,w=(l||d)&&h;return Qu.jsx(E.Suspense,{fallback:null,children:Qu.jsxs(Qu.Fragment,{children:[Qu.jsx("div",{draggable:_,"data-testid":"sn-text-image-container",children:Qu.jsx(wB,{className:`${w?"focused":""} ${_?"draggable":""}`,src:b,altText:n,imageRef:s,width:r,height:o,maxWidth:v,onLoad:()=>m?.resolve(t,!1),onError:()=>m?.resolve(t,!1),onContextMenu:e=>{p.dispatchCommand(ht,e.nativeEvent)}})}),i&&l&&w?Qu.jsx(yB,{editor:p,imageRef:s,maxWidth:v,onResizeStart:()=>{f(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{f(!1)},200),p.update(()=>{const n=_i(a);n?.getType()===Mj&&n.setWidthAndHeight(e,t)})}}):null]})})}var SB=e=>e.replace(/\\\*/g,"*").replace(/\\\[/g,"[").replace(/\\\]/g,"]").replace(/\\_/g,"_").replace(/\\\(/g,"(").replace(/\\\)/g,")").replace(/\\~/g,"~").replace(/\\-/g,"-"),CB=e=>null!=e.parentElement&&"LI"===e.parentElement.tagName&&null===e.previousSibling&&"checkbox"===e.getAttribute("aria-roledescription"),EB=e=>{const t=e.replace((()=>{const e=document.createElement("a");return e.href="../",e.href})(),"").replace(/^\.\.\//i,"/");return"/"!==t[0]?`/${t}`:t};class TB extends Po{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 Mj}static clone(e){return new TB({...e.__props,key:e.getKey()})}decorate(){return Qu.jsx(kB,{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:Mj,version:1}}static importDOM(){return{figure:()=>({conversion:()=>({after:e=>e.filter(e=>e.getType()===TB.getType()),node:null}),priority:0}),img:()=>({conversion:e=>{const t=e,n=t.getAttribute("src");if(!n||n.startsWith("file:///")||CB(t))return null;const{alt:r,width:o="inherit",height:i="inherit"}=t;let a=SB(n);a=EB(a),a=decodeURIComponent(a);return{node:AB({altText:r,height:i,tempUrl:a,tempUrlDef:a,width:o})}},priority:0})}}static importJSON(e){return AB(e)}setWidthAndHeight(e,t){const n=this.getWritable();n.__props.width=e,n.__props.height=t}}const AB=e=>new TB(e),LB=document.createElement("img");function RB(e){const t=e.target;return!!(t&&fa(t)&&!t.closest("code, span.tek__image")&&t.parentElement&&fa(t.parentElement)&&t.parentElement.closest("div.tek__editor__input"))}function MB(){const e=Vr();if(!Nr(e))return null;const t=e.getNodes()[0];return t.getType()===Mj?t:null}function NB(e,t){const n=MB();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!==Mj?null:r}(e);if(!r)return!1;const o=Ta(n,e=>!Yl(e)&&Kl(e));if(e.preventDefault(),RB(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=Ur();null!=i&&a.applyDOMRange(i),Li(a),t.dispatchCommand(Nj,{...r}),o&&t.dispatchCommand(ql,o.getURL())}return!0}LB.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const OB=()=>{const[e]=Ku(),{emitter:t,layout:n,model:r}=E.useContext(L),[o,i]=E.useState();return E.useEffect(()=>{"function"==typeof r?.getProperties&&r?.getProperties().then(e=>{i(e)})},[n,r]),E.useEffect(()=>Ss(e.registerCommand(Nj,({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s})=>(e.update(()=>{const e=AB({id:t,tempUrl:n,tempUrlDef:r,altText:o,height:i,width:a,method:s});to([e]),oa(e.getParentOrThrow())&&function(e,t){const n=t();return e.replace(n),n.append(e),n}(e,Ko).selectEnd()}),!0),0),e.registerCommand(Jt,t=>{const r=Vr();if(!r)return!1;const i=r.getNodes().some(e=>e.getType()===TB.getType());if(!i)return!1;const a=yc(r),s=a["application/x-lexical-editor"];if(!s)return!1;const l=e=>{if(e.type===TB.getType()){const t={...e};return t.tempUrl=t.tempUrl||Ij(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 mc(e,Xs(t,ClipboardEvent)?t:null,n),!0}return!1},3),e.registerCommand(Yt,e=>function(e){const t=MB();if(!t)return!1;const n=e.dataTransfer;return!!n&&(n.setData("text/plain","_"),n.setDragImage(LB,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{...t.__props,key:t.getKey()},type:Mj})),!0)}(e),3),e.registerCommand(qt,e=>function(e){return!!MB()&&(RB(e)||e.preventDefault(),!1)}(e),1),e.registerCommand(Gt,t=>NB(t,e),3)),[e,t,o,n]),null};const PB=()=>((()=>{const e=E.useRef(null),{printingStatus:t}=E.useContext(L),[n]=Ku();E.useEffect(()=>(t&&(e.current=n.registerUpdateListener(()=>{requestAnimationFrame(()=>{e.current?.(),t?.resolve(void 0,!1)})})),()=>{e.current?.()}),[n,t])})(),null);function IB({interactionState:e}){const{initialData:t,lang:n,flags:r,showMediaLibrary:o}=E.useContext(L),i=e?.edit,a=!(!1===i&&r?.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));E.useEffect(()=>{!function(e){const t=Object.entries(pj[e.toLowerCase()]).reduce((e,[t,n])=>({...e,[t]:n.value}),{});LP.configure(t,e)}(n)},[n]);const s=E.useMemo(()=>{if(void 0!==t){const n=t||void 0,o=[...Pz,Lj];return r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?o.push(TB):o.push((e=Mj,class t extends Po{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=JI.nodes;e.nodes&&(t=JI.nodes?.concat(e.nodes));const n=e.initialData?e.initialData:void 0;return{...JI,nodes:t,editorState:n}})({initialData:n,nodes:o})}var e;return null},[t,r]);return s?Qu.jsx("div",{className:"hideScrollBar",children:Qu.jsxs(XI,{initialConfig:s,flags:r,children:[Qu.jsx(pB,{}),Qu.jsx(Vz,{showPlaceholder:a}),Qu.jsx(Kz,{}),o&&r?.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")?Qu.jsx(OB,{}):null,Qu.jsx(Fj,{}),Qu.jsx(Dj,{}),Qu.jsx(Hj,{}),Qu.jsx(PB,{})]})}):null}const zB={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{ref:"qHyperCubeDef.qMeasures",disabledRef:"",selections:Ej,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"}]}}}}},DB={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 jB{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 FB=({propertyPanelHandlerData:t,flags:n})=>{const r=e.useElement(),o=e.useStaleLayout(),i=e.useModel(),a=e.useInteractionState(),s=e.useEmitter(),[l,u]=e.useState(!1),[c,d]=e.useState(1),[f,p]=e.useState(!1),h=e=>{e||d(0),(e=>!!e.qExtendsId)(o)||(e&&p(!0),u(e),s.emit("njs-internal-edit-change",e))};return e.useEffect(()=>{2===c&&a.edit&&a.select&&h(!0)},[c,a]),e.useEffect(()=>{const e=()=>{a.edit&&a.select&&d(e=>e+1)},o=e=>{const t=document.getElementById(lB(i));r.contains(e.target)||t?.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),r=document.getElementById("tekTableMenu");if(r?.contains(e))return!0;if(n?.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)||h(!1)};if(!a.edit||!a.select){h(!1);const e=i?.id&&t.getSnTexts()[i.id]?.propertiesHaveBeenModified;i&&(f||e)&&(s.emit("saveDocument"),t.setPropertiesHaveBeenModified(i.id,!1))}return r.addEventListener("click",e),document.addEventListener("mousedown",o),()=>{r.removeEventListener("click",e),document.removeEventListener("mousedown",o)}},[r,a,i]),e.useEffect(()=>{!l&&f&&s.emit("saveDocument")},[l,s,f]),{edit:l}};return function(t){const o=new jB,{flags:i}=t;return{qae:{properties:n,data:r(o)},component(){const n=e.useElement(),r=(t=>{const n=e.useMemo(()=>C.createRoot(t),[t]);return e.useEffect(()=>()=>{n?.unmount()},[n]),n})(n),a=e.useStaleLayout(),s=e.useModel(),l=e.useInteractionState(),u=e.useEmitter(),[c,d]=e.useState(null),f=e.useTranslator(),[p,h]=e.useState(void 0),g=e.useTheme(),{printingStatus:m}=(({layout:t,flags:n})=>{const[r,o]=e.useState(null);return e.usePromise(()=>new Promise(e=>{const r=new Set;n.isEnabled("TLV_801_SN_TEXT_IMAGE_SUPPORT")&&t.images&&t.images.forEach(e=>{e.id&&r.add(e.id)}),o({resolve:(t,n)=>{t&&r.delete(t),(0===r.size||n)&&(o(null),e?.(t))}})}),[]),e.useEffect(()=>{let e;return r&&(e=setTimeout(()=>{r.resolve(void 0,!0)},9e3)),()=>{e&&clearTimeout(e)}},[r]),{printingStatus:r}})({layout:a,flags:i});e.useEffect(()=>{const e=e=>{yj(s,e)};return u.on("onNodeDestroyed",e),()=>{u.removeListener("onNodeDestroyed",e)}},[u,s]),e.useEffect(()=>{a&&void 0===p&&(h(a.text||null),d(a?.text))},[a,p]);const{edit:v}=FB({propertyPanelHandlerData:o,flags:i});e.useEffect(()=>{(({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(Qu.jsx(T.StrictMode,{children:Qu.jsx(L.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:Qu.jsx(IB,{interactionState:c})})}))})({rootElement:r,layout:a,model:s,element:n,edit:v,initialData:p,emitter:u,lang:f.language(),flags:i,theme:g,interactionState:l,printingStatus:m,showMediaLibrary:t.anything?.sense?.showMediaLibrary})},[a,r,s,n,v,n,p,u,i,g,l]),e.useEffect(()=>{if(a){const e=a;e.text&&e.text!==c&&(d(e.text),u.emit("reloadData",e.text))}},[a,c,u]),e.useImperativeHandle(()=>({updateActiveState(e){e?o.setSelectedModelId(s?.id):s?.id===o.getSelectedModelId()&&o.setSelectedModelId(void 0)}}),[])},ext:{definition:{type:"items",component:"accordion",items:{data:zB,settings:DB}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}}}}});