@nebula.js/sn-text 1.2.4 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js CHANGED
@@ -1,20 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-text v1.2.4
3
- * Copyright (c) 2024 QlikTech International AB
2
+ * @nebula.js/sn-text v1.2.6
3
+ * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel as o,useInteractionState as i,useEmitter as l,useTranslator as a,useState as s,useTheme as u,useImperativeHandle as c}from"@nebula.js/stardust";function d(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 f={version:"1.2.4",showTitles:!1,text:null,fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!1},p=e=>{const t=()=>{e.setPropertiesHaveBeenModifiedForSelectedModel(!0)};return{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:0,max:100,added(e){e.qDef={...e.qDef,qAggrFunc:"None"},t()},removed:t,replaced:t,moved:t}}]}};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var h={exports:{}},g={},v={exports:{}},b={},y=Symbol.for("react.element"),x=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),S=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),N=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),A=Symbol.iterator;var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,M={};function P(e,t,n){this.props=e,this.context=t,this.refs=M,this.updater=n||O}function I(){}function D(e,t,n){this.props=e,this.context=t,this.refs=M,this.updater=n||O}P.prototype.isReactComponent={},P.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")},P.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},I.prototype=P.prototype;var z=D.prototype=new I;z.constructor=D,L(z,P.prototype),z.isPureReactComponent=!0;var $=Array.isArray,F=Object.prototype.hasOwnProperty,B={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,n){var r,o={},i=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)F.call(t,r)&&!H.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return{$$typeof:y,type:e,key:i,ref:l,props:o,_owner:B.current}}function W(e){return"object"==typeof e&&null!==e&&e.$$typeof===y}var K=/\/+/g;function U(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 G(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var l=!1;if(null===e)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case y:case x:l=!0}}if(l)return o=o(l=e),e=""===r?"."+U(l,0):r,$(o)?(n="",null!=e&&(n=e.replace(K,"$&/")+"/"),G(o,t,n,"",(function(e){return e}))):null!=o&&(W(o)&&(o=function(e,t){return{$$typeof:y,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(K,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",$(e))for(var a=0;a<e.length;a++){var s=r+U(i=e[a],a);l+=G(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),a=0;!(i=e.next()).done;)l+=G(i=i.value,t,n,s=r+U(i,a++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Y(e,t,n){if(null==e)return e;var r=[],o=0;return G(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function V(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 Q={current:null},q={transition:null},X={ReactCurrentDispatcher:Q,ReactCurrentBatchConfig:q,ReactCurrentOwner:B};b.Children={map:Y,forEach:function(e,t,n){Y(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return Y(e,(function(){t++})),t},toArray:function(e){return Y(e,(function(e){return e}))||[]},only:function(e){if(!W(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},b.Component=P,b.Fragment=_,b.Profiler=C,b.PureComponent=D,b.StrictMode=E,b.Suspense=T,b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,b.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=L({},e.props),o=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=B.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)F.call(t,s)&&!H.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==a?a[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:y,type:e.type,key:o,ref:i,props:r,_owner:l}},b.createContext=function(e){return(e={$$typeof:S,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:w,_context:e},e.Consumer=e},b.createElement=j,b.createFactory=function(e){var t=j.bind(null,e);return t.type=e,t},b.createRef=function(){return{current:null}},b.forwardRef=function(e){return{$$typeof:k,render:e}},b.isValidElement=W,b.lazy=function(e){return{$$typeof:R,_payload:{_status:-1,_result:e},_init:V}},b.memo=function(e,t){return{$$typeof:N,type:e,compare:void 0===t?null:t}},b.startTransition=function(e){var t=q.transition;q.transition={};try{e()}finally{q.transition=t}},b.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},b.useCallback=function(e,t){return Q.current.useCallback(e,t)},b.useContext=function(e){return Q.current.useContext(e)},b.useDebugValue=function(){},b.useDeferredValue=function(e){return Q.current.useDeferredValue(e)},b.useEffect=function(e,t){return Q.current.useEffect(e,t)},b.useId=function(){return Q.current.useId()},b.useImperativeHandle=function(e,t,n){return Q.current.useImperativeHandle(e,t,n)},b.useInsertionEffect=function(e,t){return Q.current.useInsertionEffect(e,t)},b.useLayoutEffect=function(e,t){return Q.current.useLayoutEffect(e,t)},b.useMemo=function(e,t){return Q.current.useMemo(e,t)},b.useReducer=function(e,t,n){return Q.current.useReducer(e,t,n)},b.useRef=function(e){return Q.current.useRef(e)},b.useState=function(e){return Q.current.useState(e)},b.useSyncExternalStore=function(e,t,n){return Q.current.useSyncExternalStore(e,t,n)},b.useTransition=function(){return Q.current.useTransition()},b.version="18.2.0",v.exports=b;var J=v.exports,Z=m(J),ee=d({__proto__:null,default:Z},[J]),te={exports:{}},ne={};
8
- /**
9
- * @license React
10
- * scheduler.production.min.js
11
- *
12
- * Copyright (c) Facebook, Inc. and its affiliates.
13
- *
14
- * This source code is licensed under the MIT license found in the
15
- * LICENSE file in the root directory of this source tree.
16
- */
17
- !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,l=i>>>1;r<l;){var a=2*(r+1)-1,s=e[a],u=a+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[a]=n,r=a);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 l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],c=1,d=null,f=3,p=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(h=!1,y(e),!m)if(null!==n(s))m=!0,L(_);else{var t=n(u);null!==t&&M(x,t.startTime-e)}}function _(t,o){m=!1,h&&(h=!1,v(S),S=-1),p=!0;var i=f;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!N());){var l=d.callback;if("function"==typeof l){d.callback=null,f=d.priorityLevel;var a=l(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof a?d.callback=a:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&M(x,g.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,C=!1,w=null,S=-1,k=5,T=-1;function N(){return!(e.unstable_now()-T<k)}function R(){if(null!==w){var t=e.unstable_now();T=t;var n=!0;try{n=w(!0,t)}finally{n?E():(C=!1,w=null)}}else C=!1}if("function"==typeof b)E=function(){b(R)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,O=A.port2;A.port1.onmessage=R,E=function(){O.postMessage(null)}}else E=function(){g(R,0)};function L(e){w=e,C||(C=!0,E())}function M(t,n){S=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,L(_))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var l=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?l+i:l:i=l,r){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>l?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(h?(v(S),S=-1):h=!0,M(x,i-l))):(r.sortIndex=a,t(s,r),m||p||(m=!0,L(_))),r},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(ne),te.exports=ne;var re=te.exports,oe=J,ie=re;
7
+ import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel as o,useInteractionState as i,useEmitter as l,useTranslator as a,useState as s,useTheme as u,usePromise as c,useImperativeHandle as d}from"@nebula.js/stardust";function f(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}const p={version:"1.2.6",showTitles:!1,text:null,fontsUsed:[],components:[],qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]},disableNavMenu:!0,showDetails:!1},m=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 h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g,v,b={},y={exports:{}},x={},_={exports:{}},E={};function C(){if(g)return E;g=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"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,m={};function h(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}h.prototype.isReactComponent={},h.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")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=h.prototype;var y=b.prototype=new v;y.constructor=b,p(y,h.prototype),y.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function S(t,n,r){var o,i={},l=null,a=null;if(null!=n)for(o in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(l=""+n.key),n)_.call(n,o)&&!w.hasOwnProperty(o)&&(i[o]=n[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in s=t.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:e,type:t,key:l,ref:a,props:i,_owner:C.current}}function k(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var T=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(n,r,o,i,l){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var s=!1;if(null===n)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0}}if(s)return l=l(s=n),n=""===i?"."+N(s,0):i,x(l)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),R(l,r,o,"",(function(e){return e}))):null!=l&&(k(l)&&(l=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(l,o+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(T,"$&/")+"/")+n)),r.push(l)),1;if(s=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+N(a=n[u],u);s+=R(a,r,o,c,l)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(a=n.next()).done;)s+=R(a=a.value,r,o,c=i+N(a,u++),l);else if("object"===a)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function A(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function O(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 L={current:null},M={transition:null},P={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:M,ReactCurrentOwner:C};return E.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},E.Component=h,E.Fragment=n,E.Profiler=o,E.PureComponent=b,E.StrictMode=r,E.Suspense=s,E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,E.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,l=t.ref,a=t._owner;if(null!=n){if(void 0!==n.ref&&(l=n.ref,a=C.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(u in n)_.call(n,u)&&!w.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==s?s[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:e,type:t.type,key:i,ref:l,props:o,_owner:a}},E.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},E.createElement=S,E.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},E.createRef=function(){return{current:null}},E.forwardRef=function(e){return{$$typeof:a,render:e}},E.isValidElement=k,E.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:O}},E.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},E.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},E.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},E.useCallback=function(e,t){return L.current.useCallback(e,t)},E.useContext=function(e){return L.current.useContext(e)},E.useDebugValue=function(){},E.useDeferredValue=function(e){return L.current.useDeferredValue(e)},E.useEffect=function(e,t){return L.current.useEffect(e,t)},E.useId=function(){return L.current.useId()},E.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},E.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},E.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},E.useMemo=function(e,t){return L.current.useMemo(e,t)},E.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},E.useRef=function(e){return L.current.useRef(e)},E.useState=function(e){return L.current.useState(e)},E.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},E.useTransition=function(){return L.current.useTransition()},E.version="18.2.0",E}function w(){return v||(v=1,_.exports=C()),_.exports}var S,k,T,N,R,A={exports:{}},O={};function L(){return k||(k=1,A.exports=(S||(S=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,l=i>>>1;r<l;){var a=2*(r+1)-1,s=e[a],u=a+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[a]=n,r=a);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 l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],c=1,d=null,f=3,p=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(h=!1,y(e),!m)if(null!==n(s))m=!0,L(_);else{var t=n(u);null!==t&&M(x,t.startTime-e)}}function _(t,o){m=!1,h&&(h=!1,v(S),S=-1),p=!0;var i=f;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!N());){var l=d.callback;if("function"==typeof l){d.callback=null,f=d.priorityLevel;var a=l(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof a?d.callback=a:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&M(x,g.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,C=!1,w=null,S=-1,k=5,T=-1;function N(){return!(e.unstable_now()-T<k)}function R(){if(null!==w){var t=e.unstable_now();T=t;var n=!0;try{n=w(!0,t)}finally{n?E():(C=!1,w=null)}}else C=!1}if("function"==typeof b)E=function(){b(R)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,O=A.port2;A.port1.onmessage=R,E=function(){O.postMessage(null)}}else E=function(){g(R,0)};function L(e){w=e,C||(C=!0,E())}function M(t,n){S=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,L(_))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var l=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?l+i:l,r){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>l?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(h?(v(S),S=-1):h=!0,M(x,i-l))):(r.sortIndex=a,t(s,r),m||p||(m=!0,L(_))),r},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(O)),O)),A.exports}
18
8
  /**
19
9
  * @license React
20
10
  * react-dom.production.min.js
@@ -23,23 +13,14 @@ import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel
23
13
  *
24
14
  * This source code is licensed under the MIT license found in the
25
15
  * LICENSE file in the root directory of this source tree.
26
- */function le(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 ae=new Set,se={};function ue(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(se[e]=t,e=0;e<t.length;e++)ae.add(t[e])}var de=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),fe=Object.prototype.hasOwnProperty,pe=/^[: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]*$/,me={},he={};function ge(e,t,n,r,o,i,l){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=l}var ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ve[e]=new ge(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ve[t]=new ge(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ve[e]=new ge(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ve[e]=new ge(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){ve[e]=new ge(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ve[e]=new ge(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ve[e]=new ge(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ve[e]=new ge(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ve[e]=new ge(e,5,!1,e.toLowerCase(),null,!1,!1)}));var be=/[\-:]([a-z])/g;function ye(e){return e[1].toUpperCase()}function xe(e,t,n,r){var o=ve.hasOwnProperty(t)?ve[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!!fe.call(he,e)||!fe.call(me,e)&&(pe.test(e)?he[e]=!0:(me[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(be,ye);ve[t]=new ge(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(be,ye);ve[t]=new ge(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(be,ye);ve[t]=new ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ve[e]=new ge(e,1,!1,e.toLowerCase(),null,!1,!1)})),ve.xlinkHref=new ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ve[e]=new ge(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _e=oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ee=Symbol.for("react.element"),Ce=Symbol.for("react.portal"),we=Symbol.for("react.fragment"),Se=Symbol.for("react.strict_mode"),ke=Symbol.for("react.profiler"),Te=Symbol.for("react.provider"),Ne=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),Ae=Symbol.for("react.suspense"),Oe=Symbol.for("react.suspense_list"),Le=Symbol.for("react.memo"),Me=Symbol.for("react.lazy"),Pe=Symbol.for("react.offscreen"),Ie=Symbol.iterator;function De(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ie&&e[Ie]||e["@@iterator"])?e:null}var ze,$e=Object.assign;function Fe(e){if(void 0===ze)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ze=t&&t[1]||""}return"\n"+ze+e}var Be=!1;function He(e,t){if(!e||Be)return"";Be=!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"),l=o.length-1,a=i.length-1;1<=l&&0<=a&&o[l]!==i[a];)a--;for(;1<=l&&0<=a;l--,a--)if(o[l]!==i[a]){if(1!==l||1!==a)do{if(l--,0>--a||o[l]!==i[a]){var s="\n"+o[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=l&&0<=a);break}}}finally{Be=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fe(e):""}function je(e){switch(e.tag){case 5:return Fe(e.type);case 16:return Fe("Lazy");case 13:return Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 2:case 15:return e=He(e.type,!1);case 11:return e=He(e.type.render,!1);case 1:return e=He(e.type,!0);default:return""}}function We(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 we:return"Fragment";case Ce:return"Portal";case ke:return"Profiler";case Se:return"StrictMode";case Ae:return"Suspense";case Oe:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ne:return(e.displayName||"Context")+".Consumer";case Te:return(e._context.displayName||"Context")+".Provider";case Re:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Le:return null!==(t=e.displayName||null)?t:We(e.type)||"Memo";case Me:t=e._payload,e=e._init;try{return We(e(t))}catch(e){}}return null}function Ke(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 We(t);case 8:return t===Se?"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 Ue(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Ge(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ye(e){e._valueTracker||(e._valueTracker=function(e){var t=Ge(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 Ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ge(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Qe(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 qe(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Xe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Ue(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 Je(e,t){null!=(t=t.checked)&&xe(e,"checked",t,!1)}function Ze(e,t){Je(e,t);var n=Ue(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")?tt(e,t.type,n):t.hasOwnProperty("defaultValue")&&tt(e,t.type,Ue(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function et(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 tt(e,t,n){"number"===t&&Qe(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nt=Array.isArray;function rt(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=""+Ue(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 ot(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(le(91));return $e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function it(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(le(92));if(nt(n)){if(1<n.length)throw Error(le(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Ue(n)}}function lt(e,t){var n=Ue(t.value),r=Ue(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 at(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function st(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 ut(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?st(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ct,dt=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((ct=ct||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ct.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ft(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 pt={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},mt=["Webkit","ms","Moz","O"];function ht(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pt.hasOwnProperty(e)&&pt[e]?(""+t).trim():t+"px"}function gt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ht(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pt).forEach((function(e){mt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pt[t]=pt[e]}))}));var vt=$e({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 bt(e,t){if(t){if(vt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(le(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(le(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(le(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(le(62))}}function yt(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 xt=null;function _t(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Et=null,Ct=null,wt=null;function St(e){if(e=xi(e)){if("function"!=typeof Et)throw Error(le(280));var t=e.stateNode;t&&(t=Ei(t),Et(e.stateNode,e.type,t))}}function kt(e){Ct?wt?wt.push(e):wt=[e]:Ct=e}function Tt(){if(Ct){var e=Ct,t=wt;if(wt=Ct=null,St(e),t)for(e=0;e<t.length;e++)St(t[e])}}function Nt(e,t){return e(t)}function Rt(){}var At=!1;function Ot(e,t,n){if(At)return e(t,n);At=!0;try{return Nt(e,t,n)}finally{At=!1,(null!==Ct||null!==wt)&&(Rt(),Tt())}}function Lt(e,t){var n=e.stateNode;if(null===n)return null;var r=Ei(n);if(null===r)return null;n=r[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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(le(231,t,typeof n));return n}var Mt=!1;if(de)try{var Pt={};Object.defineProperty(Pt,"passive",{get:function(){Mt=!0}}),window.addEventListener("test",Pt,Pt),window.removeEventListener("test",Pt,Pt)}catch(qF){Mt=!1}function It(e,t,n,r,o,i,l,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Dt=!1,zt=null,$t=!1,Ft=null,Bt={onError:function(e){Dt=!0,zt=e}};function Ht(e,t,n,r,o,i,l,a,s){Dt=!1,zt=null,It.apply(Bt,arguments)}function jt(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 Wt(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 Kt(e){if(jt(e)!==e)throw Error(le(188))}function Ut(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=jt(e)))throw Error(le(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Kt(o),e;if(i===r)return Kt(o),t;i=i.sibling}throw Error(le(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,a=o.child;a;){if(a===n){l=!0,n=o,r=i;break}if(a===r){l=!0,r=o,n=i;break}a=a.sibling}if(!l){for(a=i.child;a;){if(a===n){l=!0,n=i,r=o;break}if(a===r){l=!0,r=i,n=o;break}a=a.sibling}if(!l)throw Error(le(189))}}if(n.alternate!==r)throw Error(le(190))}if(3!==n.tag)throw Error(le(188));return n.stateNode.current===n?e:t}(e),null!==e?Gt(e):null}function Gt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Gt(e);if(null!==t)return t;e=e.sibling}return null}var Yt=ie.unstable_scheduleCallback,Vt=ie.unstable_cancelCallback,Qt=ie.unstable_shouldYield,qt=ie.unstable_requestPaint,Xt=ie.unstable_now,Jt=ie.unstable_getCurrentPriorityLevel,Zt=ie.unstable_ImmediatePriority,en=ie.unstable_UserBlockingPriority,tn=ie.unstable_NormalPriority,nn=ie.unstable_LowPriority,rn=ie.unstable_IdlePriority,on=null,ln=null;var an=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(sn(e)/un|0)|0},sn=Math.log,un=Math.LN2;var cn=64,dn=4194304;function fn(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 pn(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=268435455&n;if(0!==l){var a=l&~o;0!==a?r=fn(a):0!==(i&=l)&&(r=fn(i))}else 0!==(l=n&~o)?r=fn(l):0!==i&&(r=fn(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-an(t)),r|=e[n],t&=~o;return r}function mn(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 hn(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gn(){var e=cn;return!(4194240&(cn<<=1))&&(cn=64),e}function vn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-an(t)]=n}function yn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-an(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var xn=0;function _n(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var En,Cn,wn,Sn,kn,Tn=!1,Nn=[],Rn=null,An=null,On=null,Ln=new Map,Mn=new Map,Pn=[],In="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 Dn(e,t){switch(e){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":An=null;break;case"mouseover":case"mouseout":On=null;break;case"pointerover":case"pointerout":Ln.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mn.delete(t.pointerId)}}function zn(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=xi(t))&&Cn(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function $n(e){var t=yi(e.target);if(null!==t){var n=jt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Wt(n)))return e.blockedOn=t,void kn(e.priority,(function(){wn(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 Fn(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xi(n))&&Cn(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xt=r,n.target.dispatchEvent(r),xt=null,t.shift()}return!0}function Bn(e,t,n){Fn(e)&&n.delete(t)}function Hn(){Tn=!1,null!==Rn&&Fn(Rn)&&(Rn=null),null!==An&&Fn(An)&&(An=null),null!==On&&Fn(On)&&(On=null),Ln.forEach(Bn),Mn.forEach(Bn)}function jn(e,t){e.blockedOn===t&&(e.blockedOn=null,Tn||(Tn=!0,ie.unstable_scheduleCallback(ie.unstable_NormalPriority,Hn)))}function Wn(e){function t(t){return jn(t,e)}if(0<Nn.length){jn(Nn[0],e);for(var n=1;n<Nn.length;n++){var r=Nn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rn&&jn(Rn,e),null!==An&&jn(An,e),null!==On&&jn(On,e),Ln.forEach(t),Mn.forEach(t),n=0;n<Pn.length;n++)(r=Pn[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Pn.length&&null===(n=Pn[0]).blockedOn;)$n(n),null===n.blockedOn&&Pn.shift()}var Kn=_e.ReactCurrentBatchConfig,Un=!0;function Gn(e,t,n,r){var o=xn,i=Kn.transition;Kn.transition=null;try{xn=1,Vn(e,t,n,r)}finally{xn=o,Kn.transition=i}}function Yn(e,t,n,r){var o=xn,i=Kn.transition;Kn.transition=null;try{xn=4,Vn(e,t,n,r)}finally{xn=o,Kn.transition=i}}function Vn(e,t,n,r){if(Un){var o=qn(e,t,n,r);if(null===o)Uo(e,t,r,Qn,n),Dn(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Rn=zn(Rn,e,t,n,r,o),!0;case"dragenter":return An=zn(An,e,t,n,r,o),!0;case"mouseover":return On=zn(On,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ln.set(i,zn(Ln.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Mn.set(i,zn(Mn.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Dn(e,r),4&t&&-1<In.indexOf(e)){for(;null!==o;){var i=xi(o);if(null!==i&&En(i),null===(i=qn(e,t,n,r))&&Uo(e,t,r,Qn,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Uo(e,t,r,null,n)}}var Qn=null;function qn(e,t,n,r){if(Qn=null,null!==(e=yi(e=_t(r))))if(null===(t=jt(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Wt(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 Qn=e,null}function Xn(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(Jt()){case Zt:return 1;case en:return 4;case tn:case nn:return 16;case rn:return 536870912;default:return 16}default:return 16}}var Jn=null,Zn=null,er=null;function tr(){if(er)return er;var e,t,n=Zn,r=n.length,o="value"in Jn?Jn.value:Jn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var l=r-e;for(t=1;t<=l&&n[r-t]===o[i-t];t++);return er=o.slice(e,1<t?1-t:void 0)}function nr(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 rr(){return!0}function or(){return!1}function ir(e){function t(t,n,r,o,i){for(var l in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(l)&&(t=e[l],this[l]=t?t(o):o[l]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:or,this.isPropagationStopped=or,this}return $e(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=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var lr,ar,sr,ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=ir(ur),dr=$e({},ur,{view:0,detail:0}),fr=ir(dr),pr=$e({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sr,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!==sr&&(sr&&"mousemove"===e.type?(lr=e.screenX-sr.screenX,ar=e.screenY-sr.screenY):ar=lr=0,sr=e),lr)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),mr=ir(pr),hr=ir($e({},pr,{dataTransfer:0})),gr=ir($e({},dr,{relatedTarget:0})),vr=ir($e({},ur,{animationName:0,elapsedTime:0,pseudoElement:0})),br=$e({},ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=ir(br),xr=ir($e({},ur,{data:0})),_r={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Er={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"},Cr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cr[e])&&!!t[e]}function Sr(){return wr}var kr=$e({},dr,{key:function(e){if(e.key){var t=_r[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Er[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sr,charCode:function(e){return"keypress"===e.type?nr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tr=ir(kr),Nr=ir($e({},pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rr=ir($e({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sr})),Ar=ir($e({},ur,{propertyName:0,elapsedTime:0,pseudoElement:0})),Or=$e({},pr,{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}),Lr=ir(Or),Mr=[9,13,27,32],Pr=de&&"CompositionEvent"in window,Ir=null;de&&"documentMode"in document&&(Ir=document.documentMode);var Dr=de&&"TextEvent"in window&&!Ir,zr=de&&(!Pr||Ir&&8<Ir&&11>=Ir),$r=String.fromCharCode(32),Fr=!1;function Br(e,t){switch(e){case"keyup":return-1!==Mr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var jr=!1;var Wr={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 Kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wr[e.type]:"textarea"===t}function Ur(e,t,n,r){kt(r),0<(t=Yo(t,"onChange")).length&&(n=new cr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gr=null,Yr=null;function Vr(e){Fo(e,0)}function Qr(e){if(Ve(_i(e)))return e}function qr(e,t){if("change"===e)return t}var Xr=!1;if(de){var Jr;if(de){var Zr="oninput"in document;if(!Zr){var eo=document.createElement("div");eo.setAttribute("oninput","return;"),Zr="function"==typeof eo.oninput}Jr=Zr}else Jr=!1;Xr=Jr&&(!document.documentMode||9<document.documentMode)}function to(){Gr&&(Gr.detachEvent("onpropertychange",no),Yr=Gr=null)}function no(e){if("value"===e.propertyName&&Qr(Yr)){var t=[];Ur(t,Yr,e,_t(e)),Ot(Vr,t)}}function ro(e,t,n){"focusin"===e?(to(),Yr=n,(Gr=t).attachEvent("onpropertychange",no)):"focusout"===e&&to()}function oo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qr(Yr)}function io(e,t){if("click"===e)return Qr(t)}function lo(e,t){if("input"===e||"change"===e)return Qr(t)}var ao="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function so(e,t){if(ao(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(!fe.call(t,o)||!ao(e[o],t[o]))return!1}return!0}function uo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function co(e,t){var n,r=uo(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=uo(r)}}function fo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function po(){for(var e=window,t=Qe();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Qe((e=t.contentWindow).document)}return t}function mo(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 ho(e){var t=po(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fo(n.ownerDocument.documentElement,n)){if(null!==r&&mo(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=co(n,i);var l=co(n,r);o&&l&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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 go=de&&"documentMode"in document&&11>=document.documentMode,vo=null,bo=null,yo=null,xo=!1;function _o(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;xo||null==vo||vo!==Qe(r)||("selectionStart"in(r=vo)&&mo(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},yo&&so(yo,r)||(yo=r,0<(r=Yo(bo,"onSelect")).length&&(t=new cr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vo)))}function Eo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Co={animationend:Eo("Animation","AnimationEnd"),animationiteration:Eo("Animation","AnimationIteration"),animationstart:Eo("Animation","AnimationStart"),transitionend:Eo("Transition","TransitionEnd")},wo={},So={};function ko(e){if(wo[e])return wo[e];if(!Co[e])return e;var t,n=Co[e];for(t in n)if(n.hasOwnProperty(t)&&t in So)return wo[e]=n[t];return e}de&&(So=document.createElement("div").style,"AnimationEvent"in window||(delete Co.animationend.animation,delete Co.animationiteration.animation,delete Co.animationstart.animation),"TransitionEvent"in window||delete Co.transitionend.transition);var To=ko("animationend"),No=ko("animationiteration"),Ro=ko("animationstart"),Ao=ko("transitionend"),Oo=new Map,Lo="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 Mo(e,t){Oo.set(e,t),ue(t,[e])}for(var Po=0;Po<Lo.length;Po++){var Io=Lo[Po];Mo(Io.toLowerCase(),"on"+(Io[0].toUpperCase()+Io.slice(1)))}Mo(To,"onAnimationEnd"),Mo(No,"onAnimationIteration"),Mo(Ro,"onAnimationStart"),Mo("dblclick","onDoubleClick"),Mo("focusin","onFocus"),Mo("focusout","onBlur"),Mo(Ao,"onTransitionEnd"),ce("onMouseEnter",["mouseout","mouseover"]),ce("onMouseLeave",["mouseout","mouseover"]),ce("onPointerEnter",["pointerout","pointerover"]),ce("onPointerLeave",["pointerout","pointerover"]),ue("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ue("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ue("onBeforeInput",["compositionend","keypress","textInput","paste"]),ue("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ue("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ue("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Do="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(" "),zo=new Set("cancel close invalid load scroll toggle".split(" ").concat(Do));function $o(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,a,s){if(Ht.apply(this,arguments),Dt){if(!Dt)throw Error(le(198));var u=zt;Dt=!1,zt=null,$t||($t=!0,Ft=u)}}(r,t,void 0,e),e.currentTarget=null}function Fo(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 l=r.length-1;0<=l;l--){var a=r[l],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==i&&o.isPropagationStopped())break e;$o(o,a,u),i=s}else for(l=0;l<r.length;l++){if(s=(a=r[l]).instance,u=a.currentTarget,a=a.listener,s!==i&&o.isPropagationStopped())break e;$o(o,a,u),i=s}}}if($t)throw e=Ft,$t=!1,Ft=null,e}function Bo(e,t){var n=t[gi];void 0===n&&(n=t[gi]=new Set);var r=e+"__bubble";n.has(r)||(Ko(t,e,2,!1),n.add(r))}function Ho(e,t,n){var r=0;t&&(r|=4),Ko(n,e,r,t)}var jo="_reactListening"+Math.random().toString(36).slice(2);function Wo(e){if(!e[jo]){e[jo]=!0,ae.forEach((function(t){"selectionchange"!==t&&(zo.has(t)||Ho(t,!1,e),Ho(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jo]||(t[jo]=!0,Ho("selectionchange",!1,t))}}function Ko(e,t,n,r){switch(Xn(t)){case 1:var o=Gn;break;case 4:o=Yn;break;default:o=Vn}n=o.bind(null,t,n,e),o=void 0,!Mt||"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 Uo(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var a=r.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===l)for(l=r.return;null!==l;){var s=l.tag;if((3===s||4===s)&&((s=l.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;l=l.return}for(;null!==a;){if(null===(l=yi(a)))return;if(5===(s=l.tag)||6===s){r=i=l;continue e}a=a.parentNode}}r=r.return}Ot((function(){var r=i,o=_t(n),l=[];e:{var a=Oo.get(e);if(void 0!==a){var s=cr,u=e;switch(e){case"keypress":if(0===nr(n))break e;case"keydown":case"keyup":s=Tr;break;case"focusin":u="focus",s=gr;break;case"focusout":u="blur",s=gr;break;case"beforeblur":case"afterblur":s=gr;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=hr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Rr;break;case To:case No:case Ro:s=vr;break;case Ao:s=Ar;break;case"scroll":s=fr;break;case"wheel":s=Lr;break;case"copy":case"cut":case"paste":s=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Nr}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==a?a+"Capture":null:a;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&(null!=(h=Lt(m,f))&&c.push(Go(m,h,p)))),d)break;m=m.return}0<c.length&&(a=new s(a,u,null,n,o),l.push({event:a,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===xt||!(u=n.relatedTarget||n.fromElement)||!yi(u)&&!u[hi])&&(s||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?yi(u):null)&&(u!==(d=jt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=mr,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nr,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?a:_i(s),p=null==u?a:_i(u),(a=new c(h,m+"leave",s,n,o)).target=d,a.relatedTarget=p,h=null,yi(o)===r&&((c=new c(f,m+"enter",u,n,o)).target=p,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(f=u,m=0,p=c=s;p;p=Vo(p))m++;for(p=0,h=f;h;h=Vo(h))p++;for(;0<m-p;)c=Vo(c),m--;for(;0<p-m;)f=Vo(f),p--;for(;m--;){if(c===f||null!==f&&c===f.alternate)break e;c=Vo(c),f=Vo(f)}c=null}else c=null;null!==s&&Qo(l,a,s,c,!1),null!==u&&null!==d&&Qo(l,d,u,c,!0)}if("select"===(s=(a=r?_i(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===s&&"file"===a.type)var g=qr;else if(Kr(a))if(Xr)g=lo;else{g=oo;var v=ro}else(s=a.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=io);switch(g&&(g=g(e,r))?Ur(l,g,n,o):(v&&v(e,a,r),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&tt(a,"number",a.value)),v=r?_i(r):window,e){case"focusin":(Kr(v)||"true"===v.contentEditable)&&(vo=v,bo=r,yo=null);break;case"focusout":yo=bo=vo=null;break;case"mousedown":xo=!0;break;case"contextmenu":case"mouseup":case"dragend":xo=!1,_o(l,n,o);break;case"selectionchange":if(go)break;case"keydown":case"keyup":_o(l,n,o)}var b;if(Pr)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 jr?Br(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(zr&&"ko"!==n.locale&&(jr||"onCompositionStart"!==y?"onCompositionEnd"===y&&jr&&(b=tr()):(Zn="value"in(Jn=o)?Jn.value:Jn.textContent,jr=!0)),0<(v=Yo(r,y)).length&&(y=new xr(y,e,null,n,o),l.push({event:y,listeners:v}),b?y.data=b:null!==(b=Hr(n))&&(y.data=b))),(b=Dr?function(e,t){switch(e){case"compositionend":return Hr(t);case"keypress":return 32!==t.which?null:(Fr=!0,$r);case"textInput":return(e=t.data)===$r&&Fr?null:e;default:return null}}(e,n):function(e,t){if(jr)return"compositionend"===e||!Pr&&Br(e,t)?(e=tr(),er=Zn=Jn=null,jr=!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 zr&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Yo(r,"onBeforeInput")).length&&(o=new xr("onBeforeInput","beforeinput",null,n,o),l.push({event:o,listeners:r}),o.data=b))}Fo(l,t)}))}function Go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yo(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=Lt(e,n))&&r.unshift(Go(e,i,o)),null!=(i=Lt(e,t))&&r.push(Go(e,i,o))),e=e.return}return r}function Vo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qo(e,t,n,r,o){for(var i=t._reactName,l=[];null!==n&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(null!==s&&s===r)break;5===a.tag&&null!==u&&(a=u,o?null!=(s=Lt(n,i))&&l.unshift(Go(n,s,a)):o||null!=(s=Lt(n,i))&&l.push(Go(n,s,a))),n=n.return}0!==l.length&&e.push({event:t,listeners:l})}var qo=/\r\n?/g,Xo=/\u0000|\uFFFD/g;function Jo(e){return("string"==typeof e?e:""+e).replace(qo,"\n").replace(Xo,"")}function Zo(e,t,n){if(t=Jo(t),Jo(e)!==t&&n)throw Error(le(425))}function ei(){}var ti=null,ni=null;function ri(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 oi="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,li="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==li?function(e){return li.resolve(null).then(e).catch(si)}:oi;function si(e){setTimeout((function(){throw e}))}function ui(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 Wn(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wn(t)}function ci(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 di(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 fi=Math.random().toString(36).slice(2),pi="__reactFiber$"+fi,mi="__reactProps$"+fi,hi="__reactContainer$"+fi,gi="__reactEvents$"+fi,vi="__reactListeners$"+fi,bi="__reactHandles$"+fi;function yi(e){var t=e[pi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[pi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=di(e);null!==e;){if(n=e[pi])return n;e=di(e)}return t}n=(e=n).parentNode}return null}function xi(e){return!(e=e[pi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(le(33))}function Ei(e){return e[mi]||null}var Ci=[],wi=-1;function Si(e){return{current:e}}function ki(e){0>wi||(e.current=Ci[wi],Ci[wi]=null,wi--)}function Ti(e,t){wi++,Ci[wi]=e.current,e.current=t}var Ni={},Ri=Si(Ni),Ai=Si(!1),Oi=Ni;function Li(e,t){var n=e.type.contextTypes;if(!n)return Ni;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 Mi(e){return null!=(e=e.childContextTypes)}function Pi(){ki(Ai),ki(Ri)}function Ii(e,t,n){if(Ri.current!==Ni)throw Error(le(168));Ti(Ri,t),Ti(Ai,n)}function Di(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(le(108,Ke(e)||"Unknown",o));return $e({},n,r)}function zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ni,Oi=Ri.current,Ti(Ri,e),Ti(Ai,Ai.current),!0}function $i(e,t,n){var r=e.stateNode;if(!r)throw Error(le(169));n?(e=Di(e,t,Oi),r.__reactInternalMemoizedMergedChildContext=e,ki(Ai),ki(Ri),Ti(Ri,e)):ki(Ai),Ti(Ai,n)}var Fi=null,Bi=!1,Hi=!1;function ji(e){null===Fi?Fi=[e]:Fi.push(e)}function Wi(){if(!Hi&&null!==Fi){Hi=!0;var e=0,t=xn;try{var n=Fi;for(xn=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fi=null,Bi=!1}catch(t){throw null!==Fi&&(Fi=Fi.slice(e+1)),Yt(Zt,Wi),t}finally{xn=t,Hi=!1}}return null}var Ki=[],Ui=0,Gi=null,Yi=0,Vi=[],Qi=0,qi=null,Xi=1,Ji="";function Zi(e,t){Ki[Ui++]=Yi,Ki[Ui++]=Gi,Gi=e,Yi=t}function el(e,t,n){Vi[Qi++]=Xi,Vi[Qi++]=Ji,Vi[Qi++]=qi,qi=e;var r=Xi;e=Ji;var o=32-an(r)-1;r&=~(1<<o),n+=1;var i=32-an(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,Xi=1<<32-an(t)+o|n<<o|r,Ji=i+e}else Xi=1<<i|n<<o|r,Ji=e}function tl(e){null!==e.return&&(Zi(e,1),el(e,1,0))}function nl(e){for(;e===Gi;)Gi=Ki[--Ui],Ki[Ui]=null,Yi=Ki[--Ui],Ki[Ui]=null;for(;e===qi;)qi=Vi[--Qi],Vi[Qi]=null,Ji=Vi[--Qi],Vi[Qi]=null,Xi=Vi[--Qi],Vi[Qi]=null}var rl=null,ol=null,il=!1,ll=null;function al(e,t){var n=Lc(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 sl(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,rl=e,ol=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,rl=e,ol=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qi?{id:Xi,overflow:Ji}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,rl=e,ol=null,!0);default:return!1}}function ul(e){return!(!(1&e.mode)||128&e.flags)}function cl(e){if(il){var t=ol;if(t){var n=t;if(!sl(e,t)){if(ul(e))throw Error(le(418));t=ci(n.nextSibling);var r=rl;t&&sl(e,t)?al(r,n):(e.flags=-4097&e.flags|2,il=!1,rl=e)}}else{if(ul(e))throw Error(le(418));e.flags=-4097&e.flags|2,il=!1,rl=e}}}function dl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;rl=e}function fl(e){if(e!==rl)return!1;if(!il)return dl(e),il=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=ol)){if(ul(e))throw pl(),Error(le(418));for(;t;)al(e,t),t=ci(t.nextSibling)}if(dl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(le(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ol=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ol=null}}else ol=rl?ci(e.stateNode.nextSibling):null;return!0}function pl(){for(var e=ol;e;)e=ci(e.nextSibling)}function ml(){ol=rl=null,il=!1}function hl(e){null===ll?ll=[e]:ll.push(e)}var gl=_e.ReactCurrentBatchConfig;function vl(e,t){if(e&&e.defaultProps){for(var n in t=$e({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bl=Si(null),yl=null,xl=null,_l=null;function El(){_l=xl=yl=null}function Cl(e){var t=bl.current;ki(bl),e._currentValue=t}function wl(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 Sl(e,t){yl=e,_l=xl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(xs=!0),e.firstContext=null)}function kl(e){var t=e._currentValue;if(_l!==e)if(e={context:e,memoizedValue:t,next:null},null===xl){if(null===yl)throw Error(le(308));xl=e,yl.dependencies={lanes:0,firstContext:e}}else xl=xl.next=e;return t}var Tl=null;function Nl(e){null===Tl?Tl=[e]:Tl.push(e)}function Rl(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Nl(t)):(n.next=o.next,o.next=n),t.interleaved=n,Al(e,r)}function Al(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 Ol=!1;function Ll(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ml(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 Pl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Il(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ru){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Al(e,n)}return null===(o=r.interleaved)?(t.next=t,Nl(r)):(t.next=o.next,o.next=t),r.interleaved=t,Al(e,n)}function Dl(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yn(e,n)}}function zl(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 l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=l:i=i.next=l,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 $l(e,t,n,r){var o=e.updateQueue;Ol=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var s=a,u=s.next;s.next=null,null===l?i=u:l.next=u,l=s;var c=e.alternate;null!==c&&((a=(c=c.updateQueue).lastBaseUpdate)!==l&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(l=0,c=u=s=null,a=i;;){var f=a.lane,p=a.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,h=a;switch(f=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=h.payload)?m.call(p,d,f):m))break e;d=$e({},d,f);break e;case 2:Ol=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,l|=f;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(f=a).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{l|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);zu|=l,e.lanes=l,e.memoizedState=d}}function Fl(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(le(191,o));o.call(r)}}}var Bl=(new oe.Component).refs;function Hl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:$e({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var jl={isMounted:function(e){return!!(e=e._reactInternals)&&jt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),i=Pl(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Il(e,i,o))&&(rc(t,e,o,r),Dl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),i=Pl(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Il(e,i,o))&&(rc(t,e,o,r),Dl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=Pl(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Il(e,o,r))&&(rc(t,e,r,n),Dl(t,e,r))}};function Wl(e,t,n,r,o,i,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,l):!t.prototype||!t.prototype.isPureReactComponent||(!so(n,r)||!so(o,i))}function Kl(e,t,n){var r=!1,o=Ni,i=t.contextType;return"object"==typeof i&&null!==i?i=kl(i):(o=Mi(t)?Oi:Ri.current,i=(r=null!=(r=t.contextTypes))?Li(e,o):Ni),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=jl,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ul(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&&jl.enqueueReplaceState(t,t.state,null)}function Gl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Bl,Ll(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=kl(i):(i=Mi(t)?Oi:Ri.current,o.context=Li(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Hl(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&&jl.enqueueReplaceState(o,o.state,null),$l(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Yl(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(le(309));var r=n.stateNode}if(!r)throw Error(le(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Bl&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(le(284));if(!n._owner)throw Error(le(290,e))}return e}function Vl(e,t){throw e=Object.prototype.toString.call(t),Error(le(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ql(e){return(0,e._init)(e._payload)}function ql(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(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 o(e,t){return(e=Pc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function a(e,t,n,r){return null===t||6!==t.tag?((t=$c(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===we?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Me&&Ql(i)===t.type)?((r=o(t,n.props)).ref=Yl(e,t,n),r.return=e,r):((r=Ic(n.type,n.key,n.props,null,e.mode,r)).ref=Yl(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=Dc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=$c(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ee:return(n=Ic(t.type,t.key,t.props,null,e.mode,n)).ref=Yl(e,null,t),n.return=e,n;case Ce:return(t=Fc(t,e.mode,n)).return=e,t;case Me:return d(e,(0,t._init)(t._payload),n)}if(nt(t)||De(t))return(t=Dc(t,e.mode,n,null)).return=e,t;Vl(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:a(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ee:return n.key===o?s(e,t,n,r):null;case Ce:return n.key===o?u(e,t,n,r):null;case Me:return f(e,t,(o=n._init)(n._payload),r)}if(nt(n)||De(n))return null!==o?null:c(e,t,n,r,null);Vl(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return a(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ee:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ce:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Me:return p(e,t,n,(0,r._init)(r._payload),o)}if(nt(r)||De(r))return c(t,e=e.get(n)||null,r,o,null);Vl(t,r)}return null}function m(o,l,a,s){for(var u=null,c=null,m=l,h=l=0,g=null;null!==m&&h<a.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var v=f(o,m,a[h],s);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),l=i(v,l,h),null===c?u=v:c.sibling=v,c=v,m=g}if(h===a.length)return n(o,m),il&&Zi(o,h),u;if(null===m){for(;h<a.length;h++)null!==(m=d(o,a[h],s))&&(l=i(m,l,h),null===c?u=m:c.sibling=m,c=m);return il&&Zi(o,h),u}for(m=r(o,m);h<a.length;h++)null!==(g=p(m,o,h,a[h],s))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),l=i(g,l,h),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach((function(e){return t(o,e)})),il&&Zi(o,h),u}function h(o,l,a,s){var u=De(a);if("function"!=typeof u)throw Error(le(150));if(null==(a=u.call(a)))throw Error(le(151));for(var c=u=null,m=l,h=l=0,g=null,v=a.next();null!==m&&!v.done;h++,v=a.next()){m.index>h?(g=m,m=null):g=m.sibling;var b=f(o,m,v.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),l=i(b,l,h),null===c?u=b:c.sibling=b,c=b,m=g}if(v.done)return n(o,m),il&&Zi(o,h),u;if(null===m){for(;!v.done;h++,v=a.next())null!==(v=d(o,v.value,s))&&(l=i(v,l,h),null===c?u=v:c.sibling=v,c=v);return il&&Zi(o,h),u}for(m=r(o,m);!v.done;h++,v=a.next())null!==(v=p(m,o,h,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),l=i(v,l,h),null===c?u=v:c.sibling=v,c=v);return e&&m.forEach((function(e){return t(o,e)})),il&&Zi(o,h),u}return function e(r,i,a,s){if("object"==typeof a&&null!==a&&a.type===we&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case Ee:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===we){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===Me&&Ql(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=Yl(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===we?((i=Dc(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Ic(a.type,a.key,a.props,null,r.mode,s)).ref=Yl(r,i,a),s.return=r,r=s)}return l(r);case Ce:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Fc(a,r.mode,s)).return=r,r=i}return l(r);case Me:return e(r,i,(c=a._init)(a._payload),s)}if(nt(a))return m(r,i,a,s);if(De(a))return h(r,i,a,s);Vl(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=$c(a,r.mode,s)).return=r,r=i),l(r)):n(r,i)}}var Xl=ql(!0),Jl=ql(!1),Zl={},ea=Si(Zl),ta=Si(Zl),na=Si(Zl);function ra(e){if(e===Zl)throw Error(le(174));return e}function oa(e,t){switch(Ti(na,t),Ti(ta,e),Ti(ea,Zl),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ut(null,"");break;default:t=ut(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ki(ea),Ti(ea,t)}function ia(){ki(ea),ki(ta),ki(na)}function la(e){ra(na.current);var t=ra(ea.current),n=ut(t,e.type);t!==n&&(Ti(ta,e),Ti(ea,n))}function aa(e){ta.current===e&&(ki(ea),ki(ta))}var sa=Si(0);function ua(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 ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=_e.ReactCurrentDispatcher,pa=_e.ReactCurrentBatchConfig,ma=0,ha=null,ga=null,va=null,ba=!1,ya=!1,xa=0,_a=0;function Ea(){throw Error(le(321))}function Ca(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ao(e[n],t[n]))return!1;return!0}function wa(e,t,n,r,o,i){if(ma=i,ha=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?as:ss,e=n(r,o),ya){i=0;do{if(ya=!1,xa=0,25<=i)throw Error(le(301));i+=1,va=ga=null,t.updateQueue=null,fa.current=us,e=n(r,o)}while(ya)}if(fa.current=ls,t=null!==ga&&null!==ga.next,ma=0,va=ga=ha=null,ba=!1,t)throw Error(le(300));return e}function Sa(){var e=0!==xa;return xa=0,e}function ka(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ha.memoizedState=va=e:va=va.next=e,va}function Ta(){if(null===ga){var e=ha.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===va?ha.memoizedState:va.next;if(null!==t)va=t,ga=e;else{if(null===e)throw Error(le(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===va?ha.memoizedState=va=e:va=va.next=e}return va}function Na(e,t){return"function"==typeof t?t(e):t}function Ra(e){var t=Ta(),n=t.queue;if(null===n)throw Error(le(311));n.lastRenderedReducer=e;var r=ga,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var a=l=null,s=null,u=i;do{var c=u.lane;if((ma&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(a=s=d,l=r):s=s.next=d,ha.lanes|=c,zu|=c}u=u.next}while(null!==u&&u!==i);null===s?l=r:s.next=a,ao(r,t.memoizedState)||(xs=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,ha.lanes|=i,zu|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Aa(e){var t=Ta(),n=t.queue;if(null===n)throw Error(le(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);ao(i,t.memoizedState)||(xs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Oa(){}function La(e,t){var n=ha,r=Ta(),o=t(),i=!ao(r.memoizedState,o);if(i&&(r.memoizedState=o,xs=!0),r=r.queue,Ka(Ia.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,Fa(9,Pa.bind(null,n,r,o,t),void 0,null),null===Au)throw Error(le(349));30&ma||Ma(n,t,o)}return o}function Ma(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ha.updateQueue)?(t={lastEffect:null,stores:null},ha.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pa(e,t,n,r){t.value=n,t.getSnapshot=r,Da(t)&&za(e)}function Ia(e,t,n){return n((function(){Da(t)&&za(e)}))}function Da(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ao(e,n)}catch(e){return!0}}function za(e){var t=Al(e,1);null!==t&&rc(t,e,1,-1)}function $a(e){var t=ka();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ha,e),[t.memoizedState,e]}function Fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ha.updateQueue)?(t={lastEffect:null,stores:null},ha.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 Ba(){return Ta().memoizedState}function Ha(e,t,n,r){var o=ka();ha.flags|=e,o.memoizedState=Fa(1|t,n,void 0,void 0===r?null:r)}function ja(e,t,n,r){var o=Ta();r=void 0===r?null:r;var i=void 0;if(null!==ga){var l=ga.memoizedState;if(i=l.destroy,null!==r&&Ca(r,l.deps))return void(o.memoizedState=Fa(t,n,i,r))}ha.flags|=e,o.memoizedState=Fa(1|t,n,i,r)}function Wa(e,t){return Ha(8390656,8,e,t)}function Ka(e,t){return ja(2048,8,e,t)}function Ua(e,t){return ja(4,2,e,t)}function Ga(e,t){return ja(4,4,e,t)}function Ya(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 Va(e,t,n){return n=null!=n?n.concat([e]):null,ja(4,4,Ya.bind(null,t,e),n)}function Qa(){}function qa(e,t){var n=Ta();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ca(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=Ta();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ca(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 21&ma?(ao(n,t)||(n=gn(),ha.lanes|=n,zu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=n)}function Za(e,t){var n=xn;xn=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{xn=n,pa.transition=r}}function es(){return Ta().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))os(t,n);else if(null!==(n=Rl(e,t,n,r))){rc(n,e,r,tc()),is(n,t,r)}}function ns(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))os(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,ao(a,l)){var s=t.interleaved;return null===s?(o.next=o,Nl(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Rl(e,t,o,r))&&(rc(n,e,r,o=tc()),is(n,t,r))}}function rs(e){var t=e.alternate;return e===ha||null!==t&&t===ha}function os(e,t){ya=ba=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function is(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yn(e,n)}}var ls={readContext:kl,useCallback:Ea,useContext:Ea,useEffect:Ea,useImperativeHandle:Ea,useInsertionEffect:Ea,useLayoutEffect:Ea,useMemo:Ea,useReducer:Ea,useRef:Ea,useState:Ea,useDebugValue:Ea,useDeferredValue:Ea,useTransition:Ea,useMutableSource:Ea,useSyncExternalStore:Ea,useId:Ea,unstable_isNewReconciler:!1},as={readContext:kl,useCallback:function(e,t){return ka().memoizedState=[e,void 0===t?null:t],e},useContext:kl,useEffect:Wa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ha(4194308,4,Ya.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ha(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ha(4,2,e,t)},useMemo:function(e,t){var n=ka();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ka();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=ts.bind(null,ha,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ka().memoizedState=e},useState:$a,useDebugValue:Qa,useDeferredValue:function(e){return ka().memoizedState=e},useTransition:function(){var e=$a(!1),t=e[0];return e=Za.bind(null,e[1]),ka().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ha,o=ka();if(il){if(void 0===n)throw Error(le(407));n=n()}else{if(n=t(),null===Au)throw Error(le(349));30&ma||Ma(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Wa(Ia.bind(null,r,i,e),[e]),r.flags|=2048,Fa(9,Pa.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ka(),t=Au.identifierPrefix;if(il){var n=Ji;t=":"+t+"R"+(n=(Xi&~(1<<32-an(Xi)-1)).toString(32)+n),0<(n=xa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_a++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ss={readContext:kl,useCallback:qa,useContext:kl,useEffect:Ka,useImperativeHandle:Va,useInsertionEffect:Ua,useLayoutEffect:Ga,useMemo:Xa,useReducer:Ra,useRef:Ba,useState:function(){return Ra(Na)},useDebugValue:Qa,useDeferredValue:function(e){return Ja(Ta(),ga.memoizedState,e)},useTransition:function(){return[Ra(Na)[0],Ta().memoizedState]},useMutableSource:Oa,useSyncExternalStore:La,useId:es,unstable_isNewReconciler:!1},us={readContext:kl,useCallback:qa,useContext:kl,useEffect:Ka,useImperativeHandle:Va,useInsertionEffect:Ua,useLayoutEffect:Ga,useMemo:Xa,useReducer:Aa,useRef:Ba,useState:function(){return Aa(Na)},useDebugValue:Qa,useDeferredValue:function(e){var t=Ta();return null===ga?t.memoizedState=e:Ja(t,ga.memoizedState,e)},useTransition:function(){return[Aa(Na)[0],Ta().memoizedState]},useMutableSource:Oa,useSyncExternalStore:La,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=je(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 ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function ms(e,t,n){(n=Pl(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uu||(Uu=!0,Gu=r),fs(0,t)},n}function hs(e,t,n){(n=Pl(-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(){fs(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!=typeof r&&(null===Yu?Yu=new Set([this]):Yu.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 ps;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=kc.bind(null,e,t,n),t.then(e,e))}function vs(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 bs(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=Pl(-1,1)).tag=2,Il(n,t,1))),n.lanes|=1),e)}var ys=_e.ReactCurrentOwner,xs=!1;function _s(e,t,n,r){t.child=null===e?Jl(t,null,n,r):Xl(t,e.child,n,r)}function Es(e,t,n,r,o){n=n.render;var i=t.ref;return Sl(t,o),r=wa(e,t,n,r,i,o),n=Sa(),null===e||xs?(il&&n&&tl(t),t.flags|=1,_s(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function Cs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Mc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ic(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ws(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if((n=null!==(n=n.compare)?n:so)(l,r)&&e.ref===t.ref)return Us(e,t,o)}return t.flags|=1,(e=Pc(i,r)).ref=t.ref,e.return=t,t.child=e}function ws(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(so(i,r)&&e.ref===t.ref){if(xs=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);131072&e.flags&&(xs=!0)}}return Ts(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,Ti(Pu,Mu),Mu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ti(Pu,Mu),Mu|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ti(Pu,Mu),Mu|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ti(Pu,Mu),Mu|=r;return _s(e,t,o,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,o){var i=Mi(n)?Oi:Ri.current;return i=Li(t,i),Sl(t,o),n=wa(e,t,n,r,i,o),r=Sa(),null===e||xs?(il&&r&&tl(t),t.flags|=1,_s(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function Ns(e,t,n,r,o){if(Mi(n)){var i=!0;zi(t)}else i=!1;if(Sl(t,o),null===t.stateNode)Ks(e,t),Kl(t,n,r),Gl(t,n,r,o),r=!0;else if(null===e){var l=t.stateNode,a=t.memoizedProps;l.props=a;var s=l.context,u=n.contextType;"object"==typeof u&&null!==u?u=kl(u):u=Li(t,u=Mi(n)?Oi:Ri.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof l.getSnapshotBeforeUpdate;d||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(a!==r||s!==u)&&Ul(t,l,r,u),Ol=!1;var f=t.memoizedState;l.state=f,$l(t,r,l,o),s=t.memoizedState,a!==r||f!==s||Ai.current||Ol?("function"==typeof c&&(Hl(t,n,c,r),s=t.memoizedState),(a=Ol||Wl(t,n,a,r,f,s,u))?(d||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.flags|=4194308)):("function"==typeof l.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=u,r=a):("function"==typeof l.componentDidMount&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Ml(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:vl(t.type,a),l.props=u,d=t.pendingProps,f=l.context,"object"==typeof(s=n.contextType)&&null!==s?s=kl(s):s=Li(t,s=Mi(n)?Oi:Ri.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(a!==d||f!==s)&&Ul(t,l,r,s),Ol=!1,f=t.memoizedState,l.state=f,$l(t,r,l,o);var m=t.memoizedState;a!==d||f!==m||Ai.current||Ol?("function"==typeof p&&(Hl(t,n,p,r),m=t.memoizedState),(u=Ol||Wl(t,n,u,r,f,m,s)||!1)?(c||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(r,m,s),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof l.componentDidUpdate&&(t.flags|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof l.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),l.props=r,l.state=m,l.context=s,r=u):("function"!=typeof l.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Rs(e,t,n,r,i,o)}function Rs(e,t,n,r,o,i){ks(e,t);var l=!!(128&t.flags);if(!r&&!l)return o&&$i(t,n,!1),Us(e,t,i);r=t.stateNode,ys.current=t;var a=l&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&l?(t.child=Xl(t,e.child,null,i),t.child=Xl(t,null,a,i)):_s(e,t,a,i),t.memoizedState=r.state,o&&$i(t,n,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Ii(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ii(0,t.context,!1),oa(e,t.containerInfo)}function Os(e,t,n,r,o){return ml(),hl(o),t.flags|=256,_s(e,t,n,r),t.child}var Ls,Ms,Ps,Is,Ds={dehydrated:null,treeContext:null,retryLane:0};function zs(e){return{baseLanes:e,cachePool:null,transitions:null}}function $s(e,t,n){var r,o=t.pendingProps,i=sa.current,l=!1,a=!!(128&t.flags);if((r=a)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ti(sa,1&i),null===e)return cl(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=o.children,e=o.fallback,l?(o=t.mode,l=t.child,a={mode:"hidden",children:a},1&o||null===l?l=zc(a,o,0,null):(l.childLanes=0,l.pendingProps=a),e=Dc(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=zs(n),t.memoizedState=Ds,e):Fs(t,a));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,l,r=ds(Error(le(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=zc({mode:"visible",children:r.children},o,0,null),(i=Dc(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Xl(t,e.child,null,l),t.child.memoizedState=zs(l),t.memoizedState=Ds,i);if(!(1&t.mode))return Bs(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var a=r.dgst;return r=a,Bs(e,t,l,r=ds(i=Error(le(419)),r,void 0))}if(a=!!(l&e.childLanes),xs||a){if(null!==(r=Au)){switch(l&-l){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|l)?0:o)&&o!==i.retryLane&&(i.retryLane=o,Al(e,o),rc(r,e,o,-1))}return gc(),Bs(e,t,l,r=ds(Error(le(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Nc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ol=ci(o.nextSibling),rl=t,il=!0,ll=null,null!==e&&(Vi[Qi++]=Xi,Vi[Qi++]=Ji,Vi[Qi++]=qi,Xi=e.id,Ji=e.overflow,qi=t),t=Fs(t,r.children),t.flags|=4096,t)}(e,t,a,o,r,i,n);if(l){l=o.fallback,a=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&a||t.child===i?(o=Pc(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?l=Pc(r,l):(l=Dc(l,a,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,a=null===(a=e.child.memoizedState)?zs(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},l.memoizedState=a,l.childLanes=e.childLanes&~n,t.memoizedState=Ds,o}return e=(l=e.child).sibling,o=Pc(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fs(e,t){return(t=zc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&hl(r),Xl(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),wl(e.return,t,n)}function js(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(_s(e,t,r.children,n),2&(r=sa.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&&Hs(e,n,t);else if(19===e.tag)Hs(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(Ti(sa,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),js(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===ua(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}js(t,!0,n,null,i);break;case"together":js(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ks(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zu|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(le(153));if(null!==t.child){for(n=Pc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gs(e,t){if(!il)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 Ys(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,n){var r=t.pendingProps;switch(nl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(t),null;case 1:case 17:return Mi(t.type)&&Pi(),Ys(t),null;case 3:return r=t.stateNode,ia(),ki(Ai),ki(Ri),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fl(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ll&&(ac(ll),ll=null))),Ms(e,t),Ys(t),null;case 5:aa(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Ps(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(le(166));return Ys(t),null}if(e=ra(ea.current),fl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[pi]=t,r[mi]=i,e=!!(1&t.mode),n){case"dialog":Bo("cancel",r),Bo("close",r);break;case"iframe":case"object":case"embed":Bo("load",r);break;case"video":case"audio":for(o=0;o<Do.length;o++)Bo(Do[o],r);break;case"source":Bo("error",r);break;case"img":case"image":case"link":Bo("error",r),Bo("load",r);break;case"details":Bo("toggle",r);break;case"input":Xe(r,i),Bo("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Bo("invalid",r);break;case"textarea":it(r,i),Bo("invalid",r)}for(var l in bt(n,i),o=null,i)if(i.hasOwnProperty(l)){var a=i[l];"children"===l?"string"==typeof a?r.textContent!==a&&(!0!==i.suppressHydrationWarning&&Zo(r.textContent,a,e),o=["children",a]):"number"==typeof a&&r.textContent!==""+a&&(!0!==i.suppressHydrationWarning&&Zo(r.textContent,a,e),o=["children",""+a]):se.hasOwnProperty(l)&&null!=a&&"onScroll"===l&&Bo("scroll",r)}switch(n){case"input":Ye(r),et(r,i,!0);break;case"textarea":Ye(r),at(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=ei)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=st(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pi]=t,e[mi]=r,Ls(e,t,!1,!1),t.stateNode=e;e:{switch(l=yt(n,r),n){case"dialog":Bo("cancel",e),Bo("close",e),o=r;break;case"iframe":case"object":case"embed":Bo("load",e),o=r;break;case"video":case"audio":for(o=0;o<Do.length;o++)Bo(Do[o],e);o=r;break;case"source":Bo("error",e),o=r;break;case"img":case"image":case"link":Bo("error",e),Bo("load",e),o=r;break;case"details":Bo("toggle",e),o=r;break;case"input":Xe(e,r),o=qe(e,r),Bo("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=$e({},r,{value:void 0}),Bo("invalid",e);break;case"textarea":it(e,r),o=ot(e,r),Bo("invalid",e)}for(i in bt(n,o),a=o)if(a.hasOwnProperty(i)){var s=a[i];"style"===i?gt(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&dt(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&ft(e,s):"number"==typeof s&&ft(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(se.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Bo("scroll",e):null!=s&&xe(e,i,s,l))}switch(n){case"input":Ye(e),et(e,r,!1);break;case"textarea":Ye(e),at(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Ue(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?rt(e,!!r.multiple,i,!1):null!=r.defaultValue&&rt(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ei)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ys(t),null;case 6:if(e&&null!=t.stateNode)Is(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(le(166));if(n=ra(na.current),ra(ea.current),fl(t)){if(r=t.stateNode,n=t.memoizedProps,r[pi]=t,(i=r.nodeValue!==n)&&null!==(e=rl))switch(e.tag){case 3:Zo(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zo(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pi]=t,t.stateNode=r}return Ys(t),null;case 13:if(ki(sa),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(il&&null!==ol&&1&t.mode&&!(128&t.flags))pl(),ml(),t.flags|=98560,i=!1;else if(i=fl(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(le(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(le(317));i[pi]=t}else ml(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ys(t),i=!1}else null!==ll&&(ac(ll),ll=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&sa.current?0===Iu&&(Iu=3):gc())),null!==t.updateQueue&&(t.flags|=4),Ys(t),null);case 4:return ia(),Ms(e,t),null===e&&Wo(t.stateNode.containerInfo),Ys(t),null;case 10:return Cl(t.type._context),Ys(t),null;case 19:if(ki(sa),null===(i=t.memoizedState))return Ys(t),null;if(r=!!(128&t.flags),null===(l=i.rendering))if(r)Gs(i,!1);else{if(0!==Iu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ua(e))){for(t.flags|=128,Gs(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ti(sa,1&sa.current|2),t.child}e=e.sibling}null!==i.tail&&Xt()>Wu&&(t.flags|=128,r=!0,Gs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!il)return Ys(t),null}else 2*Xt()-i.renderingStartTime>Wu&&1073741824!==n&&(t.flags|=128,r=!0,Gs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xt(),t.sibling=null,n=sa.current,Ti(sa,r?1&n|2:1&n),t):(Ys(t),null);case 22:case 23:return fc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Mu)&&(Ys(t),6&t.subtreeFlags&&(t.flags|=8192)):Ys(t),null;case 24:case 25:return null}throw Error(le(156,t.tag))}function Qs(e,t){switch(nl(t),t.tag){case 1:return Mi(t.type)&&Pi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),ki(Ai),ki(Ri),da(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return aa(t),null;case 13:if(ki(sa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(le(340));ml()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ki(sa),null;case 4:return ia(),null;case 10:return Cl(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Ls=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ms=function(){},Ps=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,l=null;switch(n){case"input":o=qe(e,o),r=qe(e,r),l=[];break;case"select":o=$e({},o,{value:void 0}),r=$e({},r,{value:void 0}),l=[];break;case"textarea":o=ot(e,o),r=ot(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ei)}for(u in bt(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var a=o[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(se.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var s=r[u];if(a=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(null!=s||null!=a))if("style"===u)if(a){for(i in a)!a.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&a[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(l||(l=[]),l.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,a=a?a.__html:void 0,null!=s&&a!==s&&(l=l||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(l=l||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(se.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Bo("scroll",e),l||a===s||(l=[])):(l=l||[]).push(u,s))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}},Is=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Xs=!1,Js="function"==typeof WeakSet?WeakSet:Set,Zs=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Sc(e,t,n)}else n.current=null}function tu(e,t,n){try{n()}catch(n){Sc(e,t,n)}}var nu=!1;function ru(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&&tu(t,n,i)}o=o.next}while(o!==r)}}function ou(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 iu(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 lu(e){var t=e.alternate;null!==t&&(e.alternate=null,lu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pi],delete t[mi],delete t[gi],delete t[vi],delete t[bi])),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 au(e){return 5===e.tag||3===e.tag||4===e.tag}function su(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(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 uu(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=ei));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function cu(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(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}var du=null,fu=!1;function pu(e,t,n){for(n=n.child;null!==n;)mu(e,t,n),n=n.sibling}function mu(e,t,n){if(ln&&"function"==typeof ln.onCommitFiberUnmount)try{ln.onCommitFiberUnmount(on,n)}catch(e){}switch(n.tag){case 5:Xs||eu(n,t);case 6:var r=du,o=fu;du=null,pu(e,t,n),fu=o,null!==(du=r)&&(fu?(e=du,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):du.removeChild(n.stateNode));break;case 18:null!==du&&(fu?(e=du,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),Wn(e)):ui(du,n.stateNode));break;case 4:r=du,o=fu,du=n.stateNode.containerInfo,fu=!0,pu(e,t,n),du=r,fu=o;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,void 0!==l&&(2&i||4&i)&&tu(n,t,l),o=o.next}while(o!==r)}pu(e,t,n);break;case 1:if(!Xs&&(eu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Sc(n,t,e)}pu(e,t,n);break;case 21:pu(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,pu(e,t,n),Xs=r):pu(e,t,n);break;default:pu(e,t,n)}}function hu(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=Rc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,a=l;e:for(;null!==a;){switch(a.tag){case 5:du=a.stateNode,fu=!1;break e;case 3:case 4:du=a.stateNode.containerInfo,fu=!0;break e}a=a.return}if(null===du)throw Error(le(160));mu(i,l,o),du=null,fu=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Sc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vu(t,e),t=t.sibling}function vu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gu(t,e),bu(e),4&r){try{ru(3,e,e.return),ou(3,e)}catch(t){Sc(e,e.return,t)}try{ru(5,e,e.return)}catch(t){Sc(e,e.return,t)}}break;case 1:gu(t,e),bu(e),512&r&&null!==n&&eu(n,n.return);break;case 5:if(gu(t,e),bu(e),512&r&&null!==n&&eu(n,n.return),32&e.flags){var o=e.stateNode;try{ft(o,"")}catch(t){Sc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,a=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===a&&"radio"===i.type&&null!=i.name&&Je(o,i),yt(a,l);var u=yt(a,i);for(l=0;l<s.length;l+=2){var c=s[l],d=s[l+1];"style"===c?gt(o,d):"dangerouslySetInnerHTML"===c?dt(o,d):"children"===c?ft(o,d):xe(o,c,d,u)}switch(a){case"input":Ze(o,i);break;case"textarea":lt(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?rt(o,!!i.multiple,p,!1):f!==!!i.multiple&&(null!=i.defaultValue?rt(o,!!i.multiple,i.defaultValue,!0):rt(o,!!i.multiple,i.multiple?[]:"",!1))}o[mi]=i}catch(t){Sc(e,e.return,t)}}break;case 6:if(gu(t,e),bu(e),4&r){if(null===e.stateNode)throw Error(le(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Sc(e,e.return,t)}}break;case 3:if(gu(t,e),bu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wn(t.containerInfo)}catch(t){Sc(e,e.return,t)}break;case 4:default:gu(t,e),bu(e);break;case 13:gu(t,e),bu(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(ju=Xt())),4&r&&hu(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(u=Xs)||c,gu(t,e),Xs=u):gu(t,e),bu(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(Zs=e,c=e.child;null!==c;){for(d=Zs=c;null!==Zs;){switch(p=(f=Zs).child,f.tag){case 0:case 11:case 14:case 15:ru(4,f,f.return);break;case 1:eu(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Sc(r,n,e)}}break;case 5:eu(f,f.return);break;case 22:if(null!==f.memoizedState){Eu(d);continue}}null!==p?(p.return=f,Zs=p):Eu(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(a=d.stateNode,l=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,a.style.display=ht("display",l))}catch(t){Sc(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){Sc(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gu(t,e),bu(e),4&r&&hu(e);case 21:}}function bu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(au(n)){var r=n;break e}n=n.return}throw Error(le(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(ft(o,""),r.flags&=-33),cu(e,su(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;uu(e,su(e),i);break;default:throw Error(le(161))}}catch(t){Sc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yu(e,t,n){Zs=e,xu(e)}function xu(e,t,n){for(var r=!!(1&e.mode);null!==Zs;){var o=Zs,i=o.child;if(22===o.tag&&r){var l=null!==o.memoizedState||qs;if(!l){var a=o.alternate,s=null!==a&&null!==a.memoizedState||Xs;a=qs;var u=Xs;if(qs=l,(Xs=s)&&!u)for(Zs=o;null!==Zs;)s=(l=Zs).child,22===l.tag&&null!==l.memoizedState?Cu(o):null!==s?(s.return=l,Zs=s):Cu(o);for(;null!==i;)Zs=i,xu(i),i=i.sibling;Zs=o,qs=a,Xs=u}_u(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Zs=i):_u(e)}}function _u(e){for(;null!==Zs;){var t=Zs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xs||ou(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:vl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Fl(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fl(t,l,n)}break;case 5:var a=t.stateNode;if(null===n&&4&t.flags){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.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 u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Wn(d)}}}break;default:throw Error(le(163))}Xs||512&t.flags&&iu(t)}catch(e){Sc(t,t.return,e)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function Eu(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function Cu(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ou(4,t)}catch(e){Sc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Sc(t,o,e)}}var i=t.return;try{iu(t)}catch(e){Sc(t,i,e)}break;case 5:var l=t.return;try{iu(t)}catch(e){Sc(t,l,e)}}}catch(e){Sc(t,t.return,e)}if(t===e){Zs=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Zs=a;break}Zs=t.return}}var wu,Su=Math.ceil,ku=_e.ReactCurrentDispatcher,Tu=_e.ReactCurrentOwner,Nu=_e.ReactCurrentBatchConfig,Ru=0,Au=null,Ou=null,Lu=0,Mu=0,Pu=Si(0),Iu=0,Du=null,zu=0,$u=0,Fu=0,Bu=null,Hu=null,ju=0,Wu=1/0,Ku=null,Uu=!1,Gu=null,Yu=null,Vu=!1,Qu=null,qu=0,Xu=0,Ju=null,Zu=-1,ec=0;function tc(){return 6&Ru?Xt():-1!==Zu?Zu:Zu=Xt()}function nc(e){return 1&e.mode?2&Ru&&0!==Lu?Lu&-Lu:null!==gl.transition?(0===ec&&(ec=gn()),ec):0!==(e=xn)?e:e=void 0===(e=window.event)?16:Xn(e.type):1}function rc(e,t,n,r){if(50<Xu)throw Xu=0,Ju=null,Error(le(185));bn(e,n,r),2&Ru&&e===Au||(e===Au&&(!(2&Ru)&&($u|=n),4===Iu&&sc(e,Lu)),oc(e,r),1===n&&0===Ru&&!(1&t.mode)&&(Wu=Xt()+500,Bi&&Wi()))}function oc(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 l=31-an(i),a=1<<l,s=o[l];-1===s?a&n&&!(a&r)||(o[l]=mn(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=pn(e,e===Au?Lu:0);if(0===r)null!==n&&Vt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Vt(n),1===t)0===e.tag?function(e){Bi=!0,ji(e)}(uc.bind(null,e)):ji(uc.bind(null,e)),ai((function(){!(6&Ru)&&Wi()})),n=null;else{switch(_n(r)){case 1:n=Zt;break;case 4:n=en;break;case 16:default:n=tn;break;case 536870912:n=rn}n=Ac(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Zu=-1,ec=0,6&Ru)throw Error(le(327));var n=e.callbackNode;if(Cc()&&e.callbackNode!==n)return null;var r=pn(e,e===Au?Lu:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=vc(e,r);else{t=r;var o=Ru;Ru|=2;var i=hc();for(Au===e&&Lu===t||(Ku=null,Wu=Xt()+500,pc(e,t));;)try{yc();break}catch(t){mc(e,t)}El(),ku.current=i,Ru=o,null!==Ou?t=0:(Au=null,Lu=0,t=Iu)}if(0!==t){if(2===t&&(0!==(o=hn(e))&&(r=o,t=lc(e,o))),1===t)throw n=Du,pc(e,0),sc(e,r),oc(e,Xt()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,!(30&r||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(!ao(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}(o)||(t=vc(e,r),2===t&&(i=hn(e),0!==i&&(r=i,t=lc(e,i))),1!==t)))throw n=Du,pc(e,0),sc(e,r),oc(e,Xt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(le(345));case 2:case 5:Ec(e,Hu,Ku);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=ju+500-Xt())){if(0!==pn(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=oi(Ec.bind(null,e,Hu,Ku),t);break}Ec(e,Hu,Ku);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-an(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Xt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Su(r/1960))-r)){e.timeoutHandle=oi(Ec.bind(null,e,Hu,Ku),r);break}Ec(e,Hu,Ku);break;default:throw Error(le(329))}}}return oc(e,Xt()),e.callbackNode===n?ic.bind(null,e):null}function lc(e,t){var n=Bu;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=vc(e,t))&&(t=Hu,Hu=n,null!==t&&ac(t)),e}function ac(e){null===Hu?Hu=e:Hu.push.apply(Hu,e)}function sc(e,t){for(t&=~Fu,t&=~$u,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-an(t),r=1<<n;e[n]=-1,t&=~r}}function uc(e){if(6&Ru)throw Error(le(327));Cc();var t=pn(e,0);if(!(1&t))return oc(e,Xt()),null;var n=vc(e,t);if(0!==e.tag&&2===n){var r=hn(e);0!==r&&(t=r,n=lc(e,r))}if(1===n)throw n=Du,pc(e,0),sc(e,t),oc(e,Xt()),n;if(6===n)throw Error(le(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ec(e,Hu,Ku),oc(e,Xt()),null}function cc(e,t){var n=Ru;Ru|=1;try{return e(t)}finally{0===(Ru=n)&&(Wu=Xt()+500,Bi&&Wi())}}function dc(e){null!==Qu&&0===Qu.tag&&!(6&Ru)&&Cc();var t=Ru;Ru|=1;var n=Nu.transition,r=xn;try{if(Nu.transition=null,xn=1,e)return e()}finally{xn=r,Nu.transition=n,!(6&(Ru=t))&&Wi()}}function fc(){Mu=Pu.current,ki(Pu)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Ou)for(n=Ou.return;null!==n;){var r=n;switch(nl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Pi();break;case 3:ia(),ki(Ai),ki(Ri),da();break;case 5:aa(r);break;case 4:ia();break;case 13:case 19:ki(sa);break;case 10:Cl(r.type._context);break;case 22:case 23:fc()}n=n.return}if(Au=e,Ou=e=Pc(e.current,null),Lu=Mu=t,Iu=0,Du=null,Fu=$u=zu=0,Hu=Bu=null,null!==Tl){for(t=0;t<Tl.length;t++)if(null!==(r=(n=Tl[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var l=i.next;i.next=o,r.next=l}n.pending=r}Tl=null}return e}function mc(e,t){for(;;){var n=Ou;try{if(El(),fa.current=ls,ba){for(var r=ha.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ba=!1}if(ma=0,va=ga=ha=null,ya=!1,xa=0,Tu.current=null,null===n||null===n.return){Iu=1,Du=t,Ou=null;break}e:{var i=e,l=n.return,a=n,s=t;if(t=Lu,a.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=a,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=vs(l);if(null!==p){p.flags&=-257,bs(p,l,a,0,t),1&p.mode&&gs(i,u,t),s=u;var m=(t=p).updateQueue;if(null===m){var h=new Set;h.add(s),t.updateQueue=h}else m.add(s);break e}if(!(1&t)){gs(i,u,t),gc();break e}s=Error(le(426))}else if(il&&1&a.mode){var g=vs(l);if(null!==g){!(65536&g.flags)&&(g.flags|=256),bs(g,l,a,0,t),hl(cs(s,a));break e}}i=s=cs(s,a),4!==Iu&&(Iu=2),null===Bu?Bu=[i]:Bu.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,zl(i,ms(0,s,t));break e;case 1:a=s;var v=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Yu&&Yu.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,zl(i,hs(i,a,t));break e}}i=i.return}while(null!==i)}_c(n)}catch(e){t=e,Ou===n&&null!==n&&(Ou=n=n.return);continue}break}}function hc(){var e=ku.current;return ku.current=ls,null===e?ls:e}function gc(){0!==Iu&&3!==Iu&&2!==Iu||(Iu=4),null===Au||!(268435455&zu)&&!(268435455&$u)||sc(Au,Lu)}function vc(e,t){var n=Ru;Ru|=2;var r=hc();for(Au===e&&Lu===t||(Ku=null,pc(e,t));;)try{bc();break}catch(t){mc(e,t)}if(El(),Ru=n,ku.current=r,null!==Ou)throw Error(le(261));return Au=null,Lu=0,Iu}function bc(){for(;null!==Ou;)xc(Ou)}function yc(){for(;null!==Ou&&!Qt();)xc(Ou)}function xc(e){var t=wu(e.alternate,e,Mu);e.memoizedProps=e.pendingProps,null===t?_c(e):Ou=t,Tu.current=null}function _c(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Qs(n,t)))return n.flags&=32767,void(Ou=n);if(null===e)return Iu=6,void(Ou=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Vs(n,t,Mu)))return void(Ou=n);if(null!==(t=t.sibling))return void(Ou=t);Ou=t=e}while(null!==t);0===Iu&&(Iu=5)}function Ec(e,t,n){var r=xn,o=Nu.transition;try{Nu.transition=null,xn=1,function(e,t,n,r){do{Cc()}while(null!==Qu);if(6&Ru)throw Error(le(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(le(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.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-an(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Au&&(Ou=Au=null,Lu=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Vu||(Vu=!0,Ac(tn,(function(){return Cc(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=Nu.transition,Nu.transition=null;var l=xn;xn=1;var a=Ru;Ru|=4,Tu.current=null,function(e,t){if(ti=Un,mo(e=po())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,a=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==o&&3!==d.nodeType||(a=l+o),d!==i||0!==r&&3!==d.nodeType||(s=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=l),f===i&&++c===r&&(s=l),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===a||-1===s?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ni={focusedElem:e,selectionRange:n},Un=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,g=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:vl(t.type,h),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(le(163))}}catch(e){Sc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=nu,nu=!1}(e,n),vu(n,e),ho(ni),Un=!!ti,ni=ti=null,e.current=n,yu(n),qt(),Ru=a,xn=l,Nu.transition=i}else e.current=n;if(Vu&&(Vu=!1,Qu=e,qu=o),i=e.pendingLanes,0===i&&(Yu=null),function(e){if(ln&&"function"==typeof ln.onCommitFiberRoot)try{ln.onCommitFiberRoot(on,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),oc(e,Xt()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Uu)throw Uu=!1,e=Gu,Gu=null,e;!!(1&qu)&&0!==e.tag&&Cc(),i=e.pendingLanes,1&i?e===Ju?Xu++:(Xu=0,Ju=e):Xu=0,Wi()}(e,t,n,r)}finally{Nu.transition=o,xn=r}return null}function Cc(){if(null!==Qu){var e=_n(qu),t=Nu.transition,n=xn;try{if(Nu.transition=null,xn=16>e?16:e,null===Qu)var r=!1;else{if(e=Qu,Qu=null,qu=0,6&Ru)throw Error(le(331));var o=Ru;for(Ru|=4,Zs=e.current;null!==Zs;){var i=Zs,l=i.child;if(16&Zs.flags){var a=i.deletions;if(null!==a){for(var s=0;s<a.length;s++){var u=a[s];for(Zs=u;null!==Zs;){var c=Zs;switch(c.tag){case 0:case 11:case 15:ru(8,c,i)}var d=c.child;if(null!==d)d.return=c,Zs=d;else for(;null!==Zs;){var f=(c=Zs).sibling,p=c.return;if(lu(c),c===u){Zs=null;break}if(null!==f){f.return=p,Zs=f;break}Zs=p}}}var m=i.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(null!==h)}}Zs=i}}if(2064&i.subtreeFlags&&null!==l)l.return=i,Zs=l;else e:for(;null!==Zs;){if(2048&(i=Zs).flags)switch(i.tag){case 0:case 11:case 15:ru(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Zs=v;break e}Zs=i.return}}var b=e.current;for(Zs=b;null!==Zs;){var y=(l=Zs).child;if(2064&l.subtreeFlags&&null!==y)y.return=l,Zs=y;else e:for(l=b;null!==Zs;){if(2048&(a=Zs).flags)try{switch(a.tag){case 0:case 11:case 15:ou(9,a)}}catch(e){Sc(a,a.return,e)}if(a===l){Zs=null;break e}var x=a.sibling;if(null!==x){x.return=a.return,Zs=x;break e}Zs=a.return}}if(Ru=o,Wi(),ln&&"function"==typeof ln.onPostCommitFiberRoot)try{ln.onPostCommitFiberRoot(on,e)}catch(e){}r=!0}return r}finally{xn=n,Nu.transition=t}}return!1}function wc(e,t,n){e=Il(e,t=ms(0,t=cs(n,t),1),1),t=tc(),null!==e&&(bn(e,1,t),oc(e,t))}function Sc(e,t,n){if(3===e.tag)wc(e,e,n);else for(;null!==t;){if(3===t.tag){wc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Yu||!Yu.has(r))){t=Il(t,e=hs(t,e=cs(n,e),1),1),e=tc(),null!==t&&(bn(t,1,e),oc(t,e));break}}t=t.return}}function kc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Au===e&&(Lu&n)===n&&(4===Iu||3===Iu&&(130023424&Lu)===Lu&&500>Xt()-ju?pc(e,0):Fu|=n),oc(e,t)}function Tc(e,t){0===t&&(1&e.mode?(t=dn,!(130023424&(dn<<=1))&&(dn=4194304)):t=1);var n=tc();null!==(e=Al(e,t))&&(bn(e,t,n),oc(e,n))}function Nc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Rc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(le(314))}null!==r&&r.delete(t),Tc(e,n)}function Ac(e,t){return Yt(e,t)}function Oc(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 Lc(e,t,n,r){return new Oc(e,t,n,r)}function Mc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pc(e,t){var n=e.alternate;return null===n?((n=Lc(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 Ic(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Mc(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case we:return Dc(n.children,o,i,t);case Se:l=8,o|=8;break;case ke:return(e=Lc(12,n,t,2|o)).elementType=ke,e.lanes=i,e;case Ae:return(e=Lc(13,n,t,o)).elementType=Ae,e.lanes=i,e;case Oe:return(e=Lc(19,n,t,o)).elementType=Oe,e.lanes=i,e;case Pe:return zc(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Te:l=10;break e;case Ne:l=9;break e;case Re:l=11;break e;case Le:l=14;break e;case Me:l=16,r=null;break e}throw Error(le(130,null==e?e:typeof e,""))}return(t=Lc(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Dc(e,t,n,r){return(e=Lc(7,e,r,t)).lanes=n,e}function zc(e,t,n,r){return(e=Lc(22,e,r,t)).elementType=Pe,e.lanes=n,e.stateNode={isHidden:!1},e}function $c(e,t,n){return(e=Lc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Lc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(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=vn(0),this.expirationTimes=vn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vn(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hc(e,t,n,r,o,i,l,a,s){return e=new Bc(e,t,n,a,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Lc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ll(i),e}function jc(e){if(!e)return Ni;e:{if(jt(e=e._reactInternals)!==e||1!==e.tag)throw Error(le(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(le(171))}if(1===e.tag){var n=e.type;if(Mi(n))return Di(e,n,t)}return t}function Wc(e,t,n,r,o,i,l,a,s){return(e=Hc(n,r,!0,e,0,i,0,a,s)).context=jc(null),n=e.current,(i=Pl(r=tc(),o=nc(n))).callback=null!=t?t:null,Il(n,i,o),e.current.lanes=o,bn(e,o,r),oc(e,r),e}function Kc(e,t,n,r){var o=t.current,i=tc(),l=nc(o);return n=jc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Pl(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Il(o,t,l))&&(rc(e,o,l,i),Dl(e,o,l)),l}function Uc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}wu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)xs=!0;else{if(!(e.lanes&n||128&t.flags))return xs=!1,function(e,t,n){switch(t.tag){case 3:As(t),ml();break;case 5:la(t);break;case 1:Mi(t.type)&&zi(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ti(bl,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ti(sa,1&sa.current),t.flags|=128,null):n&t.child.childLanes?$s(e,t,n):(Ti(sa,1&sa.current),null!==(e=Us(e,t,n))?e.sibling:null);Ti(sa,1&sa.current);break;case 19:if(r=!!(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),Ti(sa,sa.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Us(e,t,n)}(e,t,n);xs=!!(131072&e.flags)}else xs=!1,il&&1048576&t.flags&&el(t,Yi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ks(e,t),e=t.pendingProps;var o=Li(t,Ri.current);Sl(t,n),o=wa(null,t,r,e,o,n);var i=Sa();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mi(r)?(i=!0,zi(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ll(t),o.updater=jl,t.stateNode=o,o._reactInternals=t,Gl(t,r,e,n),t=Rs(null,t,r,!0,i,n)):(t.tag=0,il&&i&&tl(t),_s(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ks(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Mc(e)?1:0;if(null!=e){if((e=e.$$typeof)===Re)return 11;if(e===Le)return 14}return 2}(r),e=vl(r,e),o){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=Ns(null,t,r,e,n);break e;case 11:t=Es(null,t,r,e,n);break e;case 14:t=Cs(null,t,r,vl(r.type,e),n);break e}throw Error(le(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ts(e,t,r,o=t.elementType===r?o:vl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ns(e,t,r,o=t.elementType===r?o:vl(r,o),n);case 3:e:{if(As(t),null===e)throw Error(le(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ml(e,t),$l(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Os(e,t,r,n,o=cs(Error(le(423)),t));break e}if(r!==o){t=Os(e,t,r,n,o=cs(Error(le(424)),t));break e}for(ol=ci(t.stateNode.containerInfo.firstChild),rl=t,il=!0,ll=null,n=Jl(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ml(),r===o){t=Us(e,t,n);break e}_s(e,t,r,n)}t=t.child}return t;case 5:return la(t),null===e&&cl(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,ri(r,o)?l=null:null!==i&&ri(r,i)&&(t.flags|=32),ks(e,t),_s(e,t,l,n),t.child;case 6:return null===e&&cl(t),null;case 13:return $s(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xl(t,null,r,n):_s(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Es(e,t,r,o=t.elementType===r?o:vl(r,o),n);case 7:return _s(e,t,t.pendingProps,n),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Ti(bl,r._currentValue),r._currentValue=l,null!==i)if(ao(i.value,l)){if(i.children===o.children&&!Ai.current){t=Us(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var a=i.dependencies;if(null!==a){l=i.child;for(var s=a.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=Pl(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),wl(i.return,n,t),a.lanes|=n;break}s=s.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(le(341));l.lanes|=n,null!==(a=l.alternate)&&(a.lanes|=n),wl(l,n,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}_s(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Sl(t,n),r=r(o=kl(o)),t.flags|=1,_s(e,t,r,n),t.child;case 14:return o=vl(r=t.type,t.pendingProps),Cs(e,t,r,o=vl(r.type,o),n);case 15:return ws(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vl(r,o),Ks(e,t),t.tag=1,Mi(r)?(e=!0,zi(t)):e=!1,Sl(t,n),Kl(t,r,o),Gl(t,r,o,n),Rs(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return Ss(e,t,n)}throw Error(le(156,t.tag))};var Vc="function"==typeof reportError?reportError:function(e){console.error(e)};function Qc(e){this._internalRoot=e}function qc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function ed(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if("function"==typeof o){var a=o;o=function(){var e=Uc(l);a.call(e)}}Kc(t,l,e,o)}else l=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uc(l);i.call(e)}}var l=Wc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=l,e[hi]=l.current,Wo(8===e.nodeType?e.parentNode:e),dc(),l}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=Uc(s);a.call(e)}}var s=Hc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=s,e[hi]=s.current,Wo(8===e.nodeType?e.parentNode:e),dc((function(){Kc(t,s,n,r)})),s}(n,t,e,o,r);return Uc(l)}qc.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(le(409));Kc(e,t,null,null)},qc.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Kc(null,e,null,null)})),t[hi]=null}},qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pn.length&&0!==t&&t<Pn[n].priority;n++);Pn.splice(n,0,e),0===n&&$n(e)}},En=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=fn(t.pendingLanes);0!==n&&(yn(t,1|n),oc(t,Xt()),!(6&Ru)&&(Wu=Xt()+500,Wi()))}break;case 13:dc((function(){var t=Al(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Yc(e,1)}},Cn=function(e){if(13===e.tag){var t=Al(e,134217728);if(null!==t)rc(t,e,134217728,tc());Yc(e,134217728)}},wn=function(e){if(13===e.tag){var t=nc(e),n=Al(e,t);if(null!==n)rc(n,e,t,tc());Yc(e,t)}},Sn=function(){return xn},kn=function(e,t){var n=xn;try{return xn=e,t()}finally{xn=n}},Et=function(e,t,n){switch(t){case"input":if(Ze(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ei(r);if(!o)throw Error(le(90));Ve(r),Ze(r,o)}}}break;case"textarea":lt(e,n);break;case"select":null!=(t=n.value)&&rt(e,!!n.multiple,t,!1)}},Nt=cc,Rt=dc;var td={usingClientEntryPoint:!1,Events:[xi,_i,Ei,kt,Tt,cc]},nd={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rd={bundleType:nd.bundleType,version:nd.version,rendererPackageName:nd.rendererPackageName,rendererConfig:nd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_e.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ut(e))?null:e.stateNode},findFiberByHostInstance:nd.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var od=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!od.isDisabled&&od.supportsFiber)try{on=od.inject(rd),ln=od}catch(qF){}}g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=td,g.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(le(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ce,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},g.createRoot=function(e,t){if(!Xc(e))throw Error(le(299));var n=!1,r="",o=Vc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Hc(e,1,!1,null,0,n,0,r,o),e[hi]=t.current,Wo(8===e.nodeType?e.parentNode:e),new Qc(t)},g.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(le(188));throw e=Object.keys(e).join(","),Error(le(268,e))}return e=null===(e=Ut(t))?null:e.stateNode},g.flushSync=function(e){return dc(e)},g.hydrate=function(e,t,n){if(!Jc(t))throw Error(le(200));return ed(null,e,t,!0,n)},g.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(le(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=Vc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,o,0,i,l),e[hi]=t.current,Wo(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new qc(t)},g.render=function(e,t,n){if(!Jc(t))throw Error(le(200));return ed(null,e,t,!1,n)},g.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(le(40));return!!e._reactRootContainer&&(dc((function(){ed(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},g.unstable_batchedUpdates=cc,g.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(le(200));if(null==e||void 0===e._reactInternals)throw Error(le(38));return ed(e,t,n,!1,r)},g.version="18.2.0-next-9e3b772b8-20220608",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)}}(),h.exports=g;var id,ld=h.exports,ad=m(ld),sd=ld;id=sd.createRoot,sd.hydrateRoot;const ud=J.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});var cd={},dd={},fd={},pd={};let md={},hd={},gd={},vd={},bd={},yd={},xd={},_d={},Ed={},Cd={},wd={},Sd={},kd={},Td={},Nd={},Rd={},Ad={},Od={},Ld={},Md={},Pd={},Id={},Dd={},zd={},$d={},Fd={},Bd={},Hd={},jd={},Wd={},Kd={},Ud={},Gd={},Yd={},Vd={};function Qd(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let qd="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Xd=qd&&"documentMode"in document?document.documentMode:null,Jd=qd&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Zd=qd&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ef=!(!qd||!("InputEvent"in window)||Xd)&&"getTargetRanges"in new window.InputEvent("input"),tf=qd&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),nf=qd&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,rf=qd&&/^(?=.*Chrome).*/i.test(navigator.userAgent),of=qd&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!rf,lf=tf||nf||of?" ":"​",af=Zd?" ":lf,sf=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,uf=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,cf={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},df={directionless:1,unmergeable:2},ff={center:2,end:6,justify:4,left:1,right:3,start:5},pf={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},mf={normal:0,segmented:2,token:1},hf={0:"normal",2:"segmented",1:"token"},gf=!1,vf=0;function bf(e){vf=e.timeStamp}function yf(e,t,n){return t.__lexicalLineBreak===e||void 0!==e[`__lexicalKey_${n._key}`]}function xf(e,t,n){gf=!0;let r=100<performance.now()-vf;try{$h(e,(()=>{let o=ph()||function(e){return e.getEditorState().read((()=>{let e=ph();return null!==e?e.clone():null}))}(e);var i=new Map,l=e.getRootElement(),a=e._editorState,s=e._blockCursorElement;let u=!1,c="";for(var d=0;d<t.length;d++){var f=t[d],p=f.type,m=f.target,h=Kf(m,a);if(!(null===h&&m!==l||Bh(h)))if("characterData"===p){if(f=r&&jm(h))e:{p=m;var g=h;if(Xm(f=o)){var v=f.anchor.getNode();if(v.is(g)&&f.format!==v.getFormat()){f=!1;break e}}f=3===p.nodeType&&g.isAttached()}f&&(p=f=null,null!==(g=yp(e._window))&&g.anchorNode===m&&(f=g.anchorOffset,p=g.focusOffset),null!==(m=m.nodeValue)&&ep(h,m,f,p,!1))}else if("childList"===p){for(u=!0,p=f.addedNodes,g=0;g<p.length;g++){var b=Wf(v=p[g]),y=v.parentNode;null==y||v===s||null!==b||"BR"===v.nodeName&&yf(v,y,e)||(Zd&&(b=v.innerText||v.nodeValue)&&(c+=b),y.removeChild(v))}if(0<(p=(f=f.removedNodes).length)){for(g=0,v=0;v<p;v++)("BR"===(y=f[v]).nodeName&&yf(y,m,e)||s===y)&&(m.appendChild(y),g++);p!==g&&(m===l&&(h=a._nodeMap.get("root")),i.set(m,h))}}}if(0<i.size)for(let[t,n]of i)if(jh(n))for(i=n.getChildrenKeys(),l=t.firstChild,a=0;a<i.length;a++)null!==(s=e.getElementByKey(i[a]))&&(null==l?(t.appendChild(s),l=s):l!==s&&t.replaceChild(s,l),l=l.nextSibling);else jm(n)&&n.markDirty();if(0<(i=n.takeRecords()).length){for(l=0;l<i.length;l++)for(a=(s=i[l]).addedNodes,s=s.target,d=0;d<a.length;d++)null==(m=(h=a[d]).parentNode)||"BR"!==h.nodeName||yf(h,s,e)||m.removeChild(h);n.takeRecords()}null!==o&&(u&&(o.dirty=!0,Vf(o)),Zd&&lp(e)&&o.insertRawText(c))}))}finally{gf=!1}}function _f(e){let t=e._observer;if(null!==t){xf(e,t.takeRecords(),t)}}function Ef(e){0===vf&&dp(e).addEventListener("textInput",bf,!0),e._observer=new MutationObserver(((t,n)=>{xf(e,t,n)}))}function Cf(e,t){let n=e.__mode,r=e.__format;e=e.__style;let o=t.__mode,i=t.__format;return t=t.__style,!(null!==n&&n!==o||null!==r&&r!==i||null!==e&&e!==t)}function wf(e,t){let n=e.mergeWithSibling(t),r=Rh()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Sf(e){if(""===e.__text&&e.isSimpleText()&&!e.isUnmergeable())e.remove();else{for(var t;null!==(t=e.getPreviousSibling())&&jm(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){Cf(t,e)&&(e=wf(t,e));break}t.remove()}for(var n;null!==(n=e.getNextSibling())&&jm(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){Cf(e,n)&&wf(e,n);break}n.remove()}}}function kf(e){return Tf(e.anchor),Tf(e.focus),e}function Tf(e){for(;"element"===e.type;){var t=e.getNode(),n=e.offset;if(n===t.getChildrenSize()?(t=t.getChildAtIndex(n-1),n=!0):(t=t.getChildAtIndex(n),n=!1),jm(t)){e.set(t.__key,n?t.getTextContentSize():0,"text");break}if(!jh(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element")}}let Nf=1,Rf="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function Af(e){let t=document.activeElement;if(null===t)return!1;let n=t.nodeName;return Bh(Kf(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==t.__lexicalEditor)}function Of(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!Af(t)&&Lf(t)===e}catch(e){return!1}}function Lf(e){for(;null!=e;){let t=e.__lexicalEditor;if(null!=t)return t;e=up(e)}return null}function Mf(e){return e.isToken()||e.isSegmented()}function Pf(e){for(;null!=e;){if(3===e.nodeType)return e;e=e.firstChild}return null}function If(e,t,n){return!(e&(t=cf[t]))||null!==n&&n&t?null===n||n&t?e|t:e:e^t}function Df(e){return jm(e)||km(e)||Bh(e)}function zf(e,t){if(null!=t)e.__key=t;else{Th(),99<wh&&Qd(14),t=Rh();var n=Nh(),r=""+Nf++;n._nodeMap.set(r,e),jh(e)?t._dirtyElements.set(r,!0):t._dirtyLeaves.add(r),t._cloneNotNeeded.add(r),t._dirtyType=1,e.__key=r}}function $f(e){var t=e.getParent();if(null!==t){let o=e.getWritable();t=t.getWritable();var n=e.getPreviousSibling();if(e=e.getNextSibling(),null===n)if(null!==e){var r=e.getWritable();t.__first=e.__key,r.__prev=null}else t.__first=null;else{if(r=n.getWritable(),null!==e){let t=e.getWritable();t.__prev=r.__key,r.__next=t.__key}else r.__next=null;o.__prev=null}null===e?null!==n?(e=n.getWritable(),t.__last=n.__key,e.__next=null):t.__last=null:(e=e.getWritable(),null!==n?((n=n.getWritable()).__next=e.__key,e.__prev=n.__key):e.__prev=null,o.__next=null),t.__size--,o.__parent=null}}function Ff(e){99<wh&&Qd(14);var t=e.getLatest(),n=t.__parent,r=Nh();let o=Rh(),i=r._nodeMap;if(r=o._dirtyElements,null!==n)e:for(;null!==n&&!r.has(n);){let e=i.get(n);if(void 0===e)break;r.set(n,!1),n=e.__parent}t=t.__key,o._dirtyType=1,jh(e)?r.set(t,!0):o._dirtyLeaves.add(t)}function Bf(e){Th();var t=Rh();let n=t._compositionKey;e!==n&&(t._compositionKey=e,null!==n&&(null!==(t=jf(n))&&t.getWritable()),null!==e&&(null!==(e=jf(e))&&e.getWritable()))}function Hf(){return kh()?null:Rh()._compositionKey}function jf(e,t){return void 0===(e=(t||Nh())._nodeMap.get(e))?null:e}function Wf(e,t){return void 0!==(e=e[`__lexicalKey_${Rh()._key}`])?jf(e,t):null}function Kf(e,t){for(;null!=e;){let n=Wf(e,t);if(null!==n)return n;e=up(e)}return null}function Uf(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t}function Gf(e){return e.read((()=>Yf().getTextContent()))}function Yf(){return Nh()._nodeMap.get("root")}function Vf(e){Th();let t=Nh();null!==e&&(e.dirty=!0,e._cachedNodes=null),t._selection=e}function Qf(e){var t,n=Rh();e:{for(t=e;null!=t;){let e=t[`__lexicalKey_${n._key}`];if(void 0!==e){t=e;break e}t=up(t)}t=null}return null===t?e===(n=n.getRootElement())?jf("root"):null:jf(t)}function qf(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Xf(e){let t=[];for(;null!==e;)t.push(e),e=e._parentEditor;return t}function Jf(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Zf(e,t,n){if(null!==(t=yp(t._window))){var r=t.anchorNode,{anchorOffset:o,focusOffset:i}=t;if(null!==r&&(t=3===r.nodeType?r.nodeValue:null,r=Kf(r),null!==t&&jm(r))){if(t===lf&&n){t=n,i=o=n.length}null!==t&&ep(r,t,o,i,e)}}}function ep(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){let u=i.isComposing(),c=t;if((u||o)&&t[t.length-1]===lf&&(c=t.slice(0,-1)),t=i.getTextContent(),o||c!==t)if(""===c)if(Bf(null),tf||nf||of)i.remove();else{let e=Rh();setTimeout((()=>{e.update((()=>{i.isAttached()&&i.remove()}))}),20)}else{o=i.getParent(),t=mh();var l=i.getTextContentSize(),a=Hf(),s=i.getKey();i.isToken()||null!==a&&s===a&&!u||Xm(t)&&(null!==o&&!o.canInsertTextBefore()&&0===t.anchor.offset||t.anchor.key===e.__key&&0===t.anchor.offset&&!i.canInsertTextBefore()||t.focus.key===e.__key&&t.focus.offset===l&&!i.canInsertTextAfter())?i.markDirty():(Xm(e=ph())&&null!==n&&null!==r&&(e.setTextNodeRange(i,n,i,r),i.isSegmented()&&(n=Hm(n=i.getTextContent()),i.replace(n),i=n)),i.setTextContent(c))}}}function tp(){var e=Yf();Vf(kf(e=e.select(0,e.getChildrenSize())))}function np(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];return void 0!==r?r:"string"==typeof(e=e[t])?(e=e.split(" "),n[t]=e):e}function rp(e,t,n,r,o){0!==n.size&&(n=r.__type,r=r.__key,void 0===(t=t.get(n))&&Qd(33,n),n=t.klass,void 0===(t=e.get(n))&&(t=new Map,e.set(n,t)),n="destroyed"===(e=t.get(r))&&"created"===o,(void 0===e||n)&&t.set(r,n?"updated":o))}function op(e,t,n){let r=e.getParent(),o=n;return null!==r&&(t&&0===n?(o=e.getIndexWithinParent(),e=r):t||n!==e.getChildrenSize()||(o=e.getIndexWithinParent()+1,e=r)),e.getChildAtIndex(t?o-1:o)}function ip(e,t){var n=e.offset;return"element"===e.type?op(e=e.getNode(),t,n):(e=e.getNode(),t&&0===n||!t&&n===e.getTextContentSize()?null===(n=t?e.getPreviousSibling():e.getNextSibling())?op(e.getParentOrThrow(),t,e.getIndexWithinParent()+(t?0:1)):n:null)}function lp(e){return"insertFromPaste"===(e=(e=dp(e).event)&&e.inputType)||"insertFromPasteAsQuotation"===e}function ap(e){return!Uh(e)&&!e.isLastChild()&&!e.isInline()}function sp(e,t){return void 0===(e=e._keyToDOMMap.get(t))&&Qd(75,t),e}function up(e){return null!==(e=e.assignedSlot||e.parentElement)&&11===e.nodeType?e.host:e}function cp(e,t){for(e=e.getParent();null!==e;){if(e.is(t))return!0;e=e.getParent()}return!1}function dp(e){return null===(e=e._window)&&Qd(78),e}function fp(e){for(e=e.getParentOrThrow();null!==e&&!pp(e);)e=e.getParentOrThrow();return e}function pp(e){return Uh(e)||jh(e)&&e.isShadowRoot()}function mp(e){return zf(e=e.constructor.clone(e),null),e}function hp(e){var t=Rh();let n=e.constructor.getType();return void 0===(t=t._nodes.get(n))&&Qd(97),null!==(t=t.replace)?((t=t(e))instanceof e.constructor||Qd(98),t):e}function gp(e,t){!Uh(e=e.getParent())||jh(t)||Bh(t)||Qd(99)}function vp(e){return(Bh(e)||jh(e)&&!e.canBeEmpty())&&!e.isInline()}function bp(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null,null!==(t=e.parentElement)&&t.removeChild(e)}function yp(e){return qd?(e||window).getSelection():null}function xp(e,t){let n=e.getChildAtIndex(t);null==n&&(n=e),pp(e)&&Qd(102);let r=e=>{const t=e.getParentOrThrow(),o=pp(t),i=e!==n||o?mp(e):e;if(o)return e.insertAfter(i),[e,i,i];const[l,a,s]=r(t);return e=e.getNextSiblings(),s.append(i,...e),[l,a,i]},[o,i]=r(n);return[o,i]}function _p(e,t){for(;e!==Yf()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function Ep(e){let t=[],n=[e];for(;0<n.length;){let r=n.pop();void 0===r&&Qd(112),jh(r)&&n.unshift(...r.getChildren()),r!==e&&t.push(r)}return t}function Cp(e,t,n,r,o,i){for(e=e.getFirstChild();null!==e;){let l=e.__key;e.__parent===t&&(jh(e)&&Cp(e,l,n,r,o,i),n.has(l)||i.delete(l),o.push(l)),e=e.getNextSibling()}}let wp,Sp,kp,Tp,Np,Rp,Ap,Op,Lp,Mp,Pp="",Ip="",Dp="",zp=!1,$p=!1,Fp=null;function Bp(e,t){let n=Ap.get(e);if(null!==t){let n=em(e);n.parentNode===t&&t.removeChild(n)}Op.has(e)||Sp._keyToDOMMap.delete(e),jh(n)&&Hp(e=qp(n,Ap),0,e.length-1,null),void 0!==n&&rp(Mp,kp,Tp,n,"destroyed")}function Hp(e,t,n,r){for(;t<=n;++t){let n=e[t];void 0!==n&&Bp(n,r)}}function jp(e,t){e.setProperty("text-align",t)}function Wp(e,t){var n=wp.theme.indent;if("string"==typeof n){let r=e.classList.contains(n);0<t&&!r?e.classList.add(n):1>t&&r&&e.classList.remove(n)}n=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px",e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${n})`)}function Kp(e,t){e=e.style,0===t?jp(e,""):1===t?jp(e,"left"):2===t?jp(e,"center"):3===t?jp(e,"right"):4===t?jp(e,"justify"):5===t?jp(e,"start"):6===t&&jp(e,"end")}function Up(e,t,n){let r=Op.get(e);void 0===r&&Qd(60);let o=r.createDOM(wp,Sp);var i=Sp._keyToDOMMap;if(o["__lexicalKey_"+Sp._key]=e,i.set(e,o),jm(r)?o.setAttribute("data-lexical-text","true"):Bh(r)&&o.setAttribute("data-lexical-decorator","true"),jh(r)){if(e=r.__indent,i=r.__size,0!==e&&Wp(o,e),0!==i){--i,e=qp(r,Op);var l=Ip;Ip="",Gp(e,r,0,i,o,null),Qp(r,o),Ip=l}0!==(e=r.__format)&&Kp(o,e),r.isInline()||Vp(null,r,o),ap(r)&&(Pp+="\n\n",Dp+="\n\n")}else i=r.getTextContent(),Bh(r)?(null!==(l=r.decorate(Sp,wp))&&Jp(e,l),o.contentEditable="false"):jm(r)&&(r.isDirectionless()||(Ip+=i)),Pp+=i,Dp+=i;return null!==t&&(null!=n?t.insertBefore(o,n):null!=(n=t.__lexicalLineBreak)?t.insertBefore(o,n):t.appendChild(o)),rp(Mp,kp,Tp,r,"created"),o}function Gp(e,t,n,r,o,i){let l=Pp;for(Pp="";n<=r;++n)Up(e[n],o,i);ap(t)&&(Pp+="\n\n"),o.__lexicalTextContent=Pp,Pp=l+Pp}function Yp(e,t){return km(e=t.get(e))||Bh(e)&&e.isInline()}function Vp(e,t,n){e=null!==e&&(0===e.__size||Yp(e.__last,Ap)),t=0===t.__size||Yp(t.__last,Op),e?t||(null!=(t=n.__lexicalLineBreak)&&n.removeChild(t),n.__lexicalLineBreak=null):t&&(t=document.createElement("br"),n.__lexicalLineBreak=t,n.appendChild(t))}function Qp(e,t){var n=t.__lexicalDir;if(t.__lexicalDirTextContent!==Ip||n!==Fp){let i=""===Ip;if(i)var r=Fp;else r=Ip,r=sf.test(r)?"rtl":uf.test(r)?"ltr":null;if(r!==n){let l=t.classList,a=wp.theme;var o=null!==n?a[n]:void 0;let s=null!==r?a[r]:void 0;void 0!==o&&("string"==typeof o&&(o=o.split(" "),o=a[n]=o),l.remove(...o)),null===r||i&&"ltr"===r?t.removeAttribute("dir"):(void 0!==s&&("string"==typeof s&&(n=s.split(" "),s=a[r]=n),void 0!==s&&l.add(...s)),t.dir=r),$p||(e.getWritable().__dir=r)}Fp=r,t.__lexicalDirTextContent=Ip,t.__lexicalDir=r}}function qp(e,t){let n=[];for(e=e.__first;null!==e;){let r=t.get(e);void 0===r&&Qd(101),n.push(e),e=r.__next}return n}function Xp(e,t){var n=Ap.get(e),r=Op.get(e);void 0!==n&&void 0!==r||Qd(61);var o=zp||Rp.has(e)||Np.has(e);let i=sp(Sp,e);if(n===r&&!o)return jh(n)?(void 0!==(r=i.__lexicalTextContent)&&(Pp+=r,Dp+=r),void 0!==(r=i.__lexicalDirTextContent)&&(Ip+=r)):(r=n.getTextContent(),jm(n)&&!n.isDirectionless()&&(Ip+=r),Dp+=r,Pp+=r),i;if(n!==r&&o&&rp(Mp,kp,Tp,r,"updated"),r.updateDOM(n,i,wp))return r=Up(e,null,null),null===t&&Qd(62),t.replaceChild(r,i),Bp(e,null),r;if(jh(n)&&jh(r)){if((e=r.__indent)!==n.__indent&&Wp(i,e),(e=r.__format)!==n.__format&&Kp(i,e),o){e=r,o=Ip,Ip="",t=Pp;var l=n.__size,a=e.__size;if(Pp="",1===l&&1===a){var s=n.__first,u=e.__first;if(s===u)Xp(s,i);else{var c=em(s);u=Up(u,null,null),i.replaceChild(u,c),Bp(s,null)}}else{u=qp(n,Ap);var d=qp(e,Op);if(0===l)0!==a&&Gp(d,e,0,a-1,i,null);else if(0===a)0!==l&&(Hp(u,0,l-1,(s=null==i.__lexicalLineBreak)?null:i),s&&(i.textContent=""));else{var f=u;u=d,d=l-1,l=a-1;let t=i.firstChild,n=0;for(a=0;n<=d&&a<=l;){var p=f[n];let e=u[a];if(p===e)t=Zp(Xp(e,i)),n++,a++;else{void 0===s&&(s=new Set(f)),void 0===c&&(c=new Set(u));let r=c.has(p),o=s.has(e);r?(o?((p=sp(Sp,e))===t?t=Zp(Xp(e,i)):(null!=t?i.insertBefore(p,t):i.appendChild(p),Xp(e,i)),n++):Up(e,i,t),a++):(t=Zp(em(p)),Bp(p,i),n++)}}c=a>l,(s=n>d)&&!c?Gp(u,e,a,l,i,s=void 0===(s=u[l+1])?null:Sp.getElementByKey(s)):c&&!s&&Hp(f,n,d,i)}}ap(e)&&(Pp+="\n\n"),i.__lexicalTextContent=Pp,Pp=t+Pp,Qp(e,i),Ip=o,Uh(r)||r.isInline()||Vp(n,r,i)}ap(r)&&(Pp+="\n\n",Dp+="\n\n")}else n=r.getTextContent(),Bh(r)?null!==(o=r.decorate(Sp,wp))&&Jp(e,o):jm(r)&&!r.isDirectionless()&&(Ip+=n),Pp+=n,Dp+=n;return!$p&&Uh(r)&&r.__cachedText!==Dp&&((r=r.getWritable()).__cachedText=Dp),i}function Jp(e,t){let n=Sp._pendingDecorators,r=Sp._decorators;if(null===n){if(r[e]===t)return;n=Uf(Sp)}n[e]=t}function Zp(e){return null!==(e=e.nextSibling)&&e===Sp._blockCursorElement&&(e=e.nextSibling),e}function em(e){let t=Lp.get(e);return void 0===t&&Qd(75,e),t}let tm=Object.freeze({}),nm=[["keydown",function(e,t){if(rm=e.timeStamp,om=e.keyCode,!t.isComposing()){var{keyCode:n,shiftKey:r,ctrlKey:o,metaKey:i,altKey:l}=e;if(!Ih(t,Td,e)){if(39!==n||o||i||l)if(39!==n||l||r||!o&&!i)if(37!==n||o||i||l)if(37!==n||l||r||!o&&!i)if(38!==n||o||i)if(40!==n||o||i)if(13===n&&r)cm=!0,Ih(t,Pd,e);else if(32===n)Ih(t,Id,e);else if(Jd&&o&&79===n)e.preventDefault(),cm=!0,Ih(t,vd,!0);else if(13!==n||r)if(Jd?l||i||!(8===n||72===n&&o):o||l||i||8!==n)if(27===n)Ih(t,zd,e);else if(Jd?r||l||i||!(46===n||68===n&&o):o||l||i||46!==n)if(8===n&&(Jd?l:o))e.preventDefault(),Ih(t,Ed,!0);else if(46===n&&(Jd?l:o))e.preventDefault(),Ih(t,Ed,!1);else if(Jd&&i&&8===n)e.preventDefault(),Ih(t,Cd,!0);else if(Jd&&i&&46===n)e.preventDefault(),Ih(t,Cd,!1);else if(66===n&&!l&&(Jd?i:o))e.preventDefault(),Ih(t,wd,"bold");else if(85===n&&!l&&(Jd?i:o))e.preventDefault(),Ih(t,wd,"underline");else if(73===n&&!l&&(Jd?i:o))e.preventDefault(),Ih(t,wd,"italic");else if(9!==n||l||o||i)if(90===n&&!r&&(Jd?i:o))e.preventDefault(),Ih(t,Sd,void 0);else{var a=Jd?90===n&&i&&r:89===n&&o||90===n&&o&&r;a?(e.preventDefault(),Ih(t,kd,void 0)):th(t._editorState._selection)?(a=!r&&(67===n&&(Jd?i:o)))?(e.preventDefault(),Ih(t,Kd,e)):(a=!r&&(88===n&&(Jd?i:o)))?(e.preventDefault(),Ih(t,Ud,e)):65===n&&(Jd?i:o)&&(e.preventDefault(),t.update((()=>{tp()}))):!Zd&&65===n&&(Jd?i:o)&&(e.preventDefault(),t.update((()=>{tp()})))}else Ih(t,Fd,e);else 46===n?Ih(t,$d,e):(e.preventDefault(),Ih(t,gd,!1));else 8===n?Ih(t,Dd,e):(e.preventDefault(),Ih(t,gd,!0));else cm=!1,Ih(t,Pd,e);else Ih(t,Md,e);else Ih(t,Ld,e);else Ih(t,Od,e);else Ih(t,Ad,e);else Ih(t,Rd,e);else Ih(t,Nd,e);(o||r||l||i)&&Ih(t,Vd,e)}}}],["pointerdown",function(e,t){let n=e.target;e=e.pointerType,n instanceof Node&&"touch"!==e&&$h(t,(()=>{Bh(Kf(n))||(um=!0)}))}],["compositionstart",function(e,t){$h(t,(()=>{let n=ph();if(Xm(n)&&!t.isComposing()){let r=n.anchor,o=n.anchor.getNode();Bf(r.key),(e.timeStamp<rm+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||o.getStyle()!==n.style)&&Ih(t,yd,af)}}))}],["compositionend",function(e,t){Zd?dm=!0:$h(t,(()=>{vm(t,e.data)}))}],["input",function(e,t){e.stopPropagation(),$h(t,(()=>{var n=ph(),r=e.data,o=gm(e);if(null!=r&&Xm(n)&&pm(n,o,r,e.timeStamp,!1)){dm&&(vm(t,r),dm=!1);var i=n.anchor,l=i.getNode();if(null===(o=yp(t._window)))return;let a=i.offset;(i=ef&&!n.isCollapsed()&&jm(l)&&null!==o.anchorNode)&&(i=(l=l.getTextContent().slice(0,a)+r+l.getTextContent().slice(a+n.focus.offset))===(3===(o=o.anchorNode).nodeType?o.nodeValue:null)),i||Ih(t,yd,r),r=r.length,Zd&&1<r&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=r),tf||nf||of||!t.isComposing()||(rm=0,Bf(null))}else Zf(!1,t,null!==r?r:void 0),dm&&(vm(t,r||void 0),dm=!1);Th(),_f(n=Rh())})),lm=null}],["click",function(e,t){$h(t,(()=>{let n=ph();var r=yp(t._window);let o=mh();if(r)if(Xm(n)){let t=n.anchor;var i=t.getNode();"element"===t.type&&0===t.offset&&n.isCollapsed()&&!Uh(i)&&1===Yf().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o)?(r.removeAllRanges(),n.dirty=!0):3!==e.detail||n.isCollapsed()||i!==(r=n.focus.getNode())&&(jh(i)?i.select(0):i.getParentOrThrow().select(0))}else"touch"===e.pointerType&&(null!==(i=r.anchorNode)&&(1===(i=i.nodeType)||3===i))&&Vf(r=fh(o,r,t));Ih(t,hd,e)}))}],["cut",tm],["copy",tm],["dragstart",tm],["dragover",tm],["dragend",tm],["paste",tm],["focus",tm],["blur",tm],["drop",tm]];ef&&nm.push(["beforeinput",(e,t)=>function(e,t){let n=e.inputType,r=gm(e);"deleteCompositionText"===n||Zd&&lp(t)||"insertCompositionText"!==n&&$h(t,(()=>{let o=ph();if("deleteContentBackward"===n){if(null===o){var i=mh();if(!Xm(i))return;Vf(i.clone())}if(Xm(o))return void(229===om&&e.timeStamp<rm+30&&t.isComposing()&&o.anchor.key===o.focus.key?(Bf(null),rm=0,setTimeout((()=>{$h(t,(()=>{Bf(null)}))}),30),Xm(o)&&(i=o.anchor.getNode(),i.markDirty(),o.format=i.getFormat(),o.style=i.getStyle())):(e.preventDefault(),Ih(t,gd,!0)))}if(Xm(o)){i=e.data,null!==lm&&Zf(!1,t,lm),o.dirty&&null===lm||!o.isCollapsed()||Uh(o.anchor.getNode())||null===r||o.applyDOMRange(r),lm=null;var l=o.focus,a=o.anchor.getNode();if(l=l.getNode(),"insertText"===n||"insertTranspose"===n)"\n"===i?(e.preventDefault(),Ih(t,vd,!1)):"\n\n"===i?(e.preventDefault(),Ih(t,bd,void 0)):null==i&&e.dataTransfer?(i=e.dataTransfer.getData("text/plain"),e.preventDefault(),o.insertRawText(i)):null!=i&&pm(o,r,i,e.timeStamp,!0)?(e.preventDefault(),Ih(t,yd,i)):lm=i,im=e.timeStamp;else switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Ih(t,yd,e);break;case"insertFromComposition":Bf(null),Ih(t,yd,e);break;case"insertLineBreak":Bf(null),Ih(t,vd,!1);break;case"insertParagraph":Bf(null),cm&&!nf?(cm=!1,Ih(t,vd,!1)):Ih(t,bd,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Ih(t,xd,e);break;case"deleteByComposition":(function(e,t){return e!==t||jh(e)||jh(t)||!e.isToken()||!t.isToken()})(a,l)&&Ih(t,_d,e);break;case"deleteByDrag":case"deleteByCut":Ih(t,_d,e);break;case"deleteContent":Ih(t,gd,!1);break;case"deleteWordBackward":Ih(t,Ed,!0);break;case"deleteWordForward":Ih(t,Ed,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Ih(t,Cd,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Ih(t,Cd,!1);break;case"formatStrikeThrough":Ih(t,wd,"strikethrough");break;case"formatBold":Ih(t,wd,"bold");break;case"formatItalic":Ih(t,wd,"italic");break;case"formatUnderline":Ih(t,wd,"underline");break;case"historyUndo":Ih(t,Sd,void 0);break;case"historyRedo":Ih(t,kd,void 0)}}}))}(e,t)]);let rm=0,om=0,im=0,lm=null,am=0,sm=!1,um=!1,cm=!1,dm=!1,fm=[0,"",0,"root",0];function pm(e,t,n,r,o){let i=e.anchor,l=e.focus,a=i.getNode();var s=Rh();let u=yp(s._window),c=null!==u?u.anchorNode:null,d=i.key;s=s.getElementByKey(d);let f=n.length;return d!==l.key||!jm(a)||(!o&&(!ef||im<r+50)||a.isDirty()&&2>f||qf(n))&&i.offset!==l.offset&&!a.isComposing()||Mf(a)||a.isDirty()&&1<f||(o||!ef)&&null!==s&&!a.isComposing()&&c!==Pf(s)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;e=e.anchor.offset;let n=t.getParentOrThrow(),r=t.isToken();return 0===e?((e=!t.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=(jm(t=t.getPreviousSibling())||jh(t)&&t.isInline())&&!t.canInsertTextAfter()),e):e===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()||r)}(e,a)}function mm(e,t){return null!==e&&null!==e.nodeValue&&3===e.nodeType&&0!==t&&t!==e.nodeValue.length}function hm(e,t,n){let{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:l}=e;sm&&(sm=!1,mm(r,o)&&mm(i,l))||$h(t,(()=>{if(n){if(Of(t,r,i)){var o=ph();if(Xm(o)){var l=o.anchor,a=l.getNode();if(o.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(o.dirty=!0);var s=dp(t).event;s=s?s.timeStamp:performance.now();let[n,r,i,u,c]=fm;s<c+200&&l.offset===i&&l.key===u?(o.format=n,o.style=r):"text"===l.type?(o.format=a.getFormat(),o.style=a.getStyle()):"element"===l.type&&(o.format=0,o.style="")}else{l=255,a=!1;let e=(s=o.getNodes()).length;for(let t=0;t<e;t++){let e=s[t];if(jm(e)&&(a=!0,0===(l&=e.getFormat())))break}o.format=a?l:0}}Ih(t,md,void 0)}}else Vf(null)}))}function gm(e){return e.getTargetRanges?0===(e=e.getTargetRanges()).length?null:e[0]:null}function vm(e,t){var n=e._compositionKey;if(Bf(null),null!==n&&null!=t){if(""===t)return t=jf(n),void(null!==(e=Pf(e.getElementByKey(n)))&&null!==e.nodeValue&&jm(t)&&ep(t,e.nodeValue,null,null,!0));if("\n"===t[t.length-1]&&Xm(n=ph()))return t=n.focus,n.anchor.set(t.key,t.offset,t.type),void Ih(e,Pd,null)}Zf(!0,e,t)}function bm(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}let ym=new Map;function xm(e){let t=yp(null==(e=e.target)?null:9===e.nodeType?e.defaultView:e.ownerDocument.defaultView);if(null!==t){var n=Lf(t.anchorNode);if(null!==n){um&&(um=!1,$h(n,(()=>{var e=mh(),r=t.anchorNode;null!==r&&(1===(r=r.nodeType)||3===r)&&Vf(e=fh(e,t,n))})));var r=(e=(e=Xf(n))[e.length-1])._key,o=ym.get(r),i=o||e;i!==n&&hm(t,i,!1),hm(t,n,!0),n!==e?ym.set(r,n):o&&ym.delete(r)}}}function _m(e,t,n){Th();var r=e.__key;let o=e.getParent();if(null!==o){var i=ph();if(Xm(i)&&jh(e)){var{anchor:l,focus:a}=i,s=l.getNode(),u=a.getNode();cp(s,e)&&l.set(e.__key,0,"element"),cp(u,e)&&a.set(e.__key,0,"element")}if(u=!1,Xm(s=i)&&t){i=s.anchor;let t=s.focus;i.key===r&&(vh(i,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0),t.key===r&&(vh(t,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0)}else th(s)&&t&&e.isSelected()&&e.selectPrevious();Xm(s)&&t&&!u?(r=e.getIndexWithinParent(),$f(e),hh(s,o,r,-1)):$f(e),n||pp(o)||o.canBeEmpty()||!o.isEmpty()||_m(o,t),t&&Uh(o)&&o.isEmpty()&&o.selectEnd()}}class Em{static getType(){Qd(64,this.name)}static clone(){Qd(65,this.name)}constructor(e){this.__type=this.constructor.getType(),this.__next=this.__prev=this.__parent=null,zf(this,e)}getType(){return this.__type}isAttached(){for(var e=this.__key;null!==e;){if("root"===e)return!0;if(null===(e=jf(e)))break;e=e.__parent}return!1}isSelected(e){if(null==(e=e||ph()))return!1;let t=e.getNodes().some((e=>e.__key===this.__key));return(jm(this)||!Xm(e)||"element"!==e.anchor.type||"element"!==e.focus.type||e.anchor.key!==e.focus.key||e.anchor.offset!==e.focus.offset)&&t}getKey(){return this.__key}getIndexWithinParent(){var e=this.getParent();if(null===e)return-1;e=e.getFirstChild();let t=0;for(;null!==e;){if(this.is(e))return t;t++,e=e.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return null===e?null:jf(e)}getParentOrThrow(){let e=this.getParent();return null===e&&Qd(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(pp(t))return e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&Qd(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:jf(e)}getPreviousSiblings(){let e=[];var t=this.getParent();if(null===t)return e;for(t=t.getFirstChild();null!==t&&!t.is(this);)e.push(t),t=t.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:jf(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=this.getParents();var n=e.getParents();jh(this)&&t.unshift(this),jh(e)&&n.unshift(e),e=t.length;var r=n.length;if(0===e||0===r||t[e-1]!==n[r-1])return null;for(n=new Set(n),r=0;r<e;r++){let e=t[r];if(n.has(e))return e}return null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){if(this===e)return!1;if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;var t=this.getCommonAncestor(e);let n=this;for(;;){var r=n.getParentOrThrow();if(r===t){r=n.getIndexWithinParent();break}n=r}for(n=e;;){if((e=n.getParentOrThrow())===t){t=n.getIndexWithinParent();break}n=e}return r<t}isParentOf(e){let t=this.__key;if(t===e.__key)return!1;for(;null!==e;){if(e.__key===t)return!0;e=e.getParent()}return!1}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set;for(var o=this;;){var i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;if(null!==(i=jh(o)?t?o.getFirstChild():o.getLastChild():null))o=i;else if(null!==(i=t?o.getNextSibling():o.getPreviousSibling()))o=i;else{if(o=o.getParentOrThrow(),r.has(o.__key)||n.push(o),o===e)break;i=o;do{null===i&&Qd(68),o=t?i.getNextSibling():i.getPreviousSibling(),null!==(i=i.getParent())&&(null!==o||r.has(i.__key)||n.push(i))}while(null===o)}}return t||n.reverse(),n}isDirty(){let e=Rh()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=jf(this.__key);return null===e&&Qd(113),e}getWritable(){Th();var e=Nh(),t=Rh();e=e._nodeMap;let n=this.__key,r=this.getLatest(),o=r.__parent;t=t._cloneNotNeeded;var i=ph();return null!==i&&(i._cachedNodes=null),t.has(n)?(Ff(r),r):((i=r.constructor.clone(r)).__parent=o,i.__next=r.__next,i.__prev=r.__prev,jh(r)&&jh(i)?(i.__first=r.__first,i.__last=r.__last,i.__size=r.__size,i.__indent=r.__indent,i.__format=r.__format,i.__dir=r.__dir):jm(r)&&jm(i)&&(i.__format=r.__format,i.__style=r.__style,i.__mode=r.__mode,i.__detail=r.__detail),t.add(n),i.__key=n,Ff(i),e.set(n,i),i)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){Qd(70)}updateDOM(){Qd(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){Qd(72)}static importJSON(){Qd(18,this.name)}static transform(){return null}remove(e){_m(this,!0,e)}replace(e,t){Th();var n=ph();null!==n&&(n=n.clone()),gp(this,e);let r=this.getLatest(),o=this.__key,i=e.__key,l=e.getWritable(),a=(e=this.getParentOrThrow().getWritable()).__size;$f(l);let s=r.getPreviousSibling(),u=r.getNextSibling(),c=r.__prev,d=r.__next,f=r.__parent;return _m(r,!1,!0),null===s?e.__first=i:s.getWritable().__next=i,l.__prev=c,null===u?e.__last=i:u.getWritable().__prev=i,l.__next=d,l.__parent=f,e.__size=a,t&&this.getChildren().forEach((e=>{l.append(e)})),Xm(n)&&(Vf(n),t=n.anchor,n=n.focus,t.key===o&&Ym(t,l),n.key===o&&Ym(n,l)),Hf()===o&&Bf(i),l}insertAfter(e,t=!0){Th(),gp(this,e);var n=this.getWritable();let r=e.getWritable();var o=r.getParent();let i=ph();var l=!1,a=!1;if(null!==o){var s=e.getIndexWithinParent();$f(r),Xm(i)&&(a=o.__key,l=i.anchor,o=i.focus,l="element"===l.type&&l.key===a&&l.offset===s+1,a="element"===o.type&&o.key===a&&o.offset===s+1)}o=this.getNextSibling(),s=this.getParentOrThrow().getWritable();let u=r.__key,c=n.__next;return null===o?s.__last=u:o.getWritable().__prev=u,s.__size++,n.__next=u,r.__next=c,r.__prev=n.__key,r.__parent=n.__parent,t&&Xm(i)&&(hh(i,s,(t=this.getIndexWithinParent())+1),n=s.__key,l&&i.anchor.set(n,t+2,"element"),a&&i.focus.set(n,t+2,"element")),e}insertBefore(e,t=!0){Th(),gp(this,e);var n=this.getWritable();let r=e.getWritable(),o=r.__key;$f(r);let i=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),a=n.__prev,s=this.getIndexWithinParent();return null===i?l.__first=o:i.getWritable().__next=o,l.__size++,n.__prev=o,r.__prev=a,r.__next=n.__key,r.__parent=n.__parent,n=ph(),t&&Xm(n)&&hh(n,t=this.getParentOrThrow(),s),e}isParentRequired(){return!1}createParentElementNode(){return Xh()}selectPrevious(e,t){Th();let n=this.getPreviousSibling(),r=this.getParentOrThrow();return null===n?r.select(0,0):jh(n)?n.select():jm(n)?n.select(e,t):(e=n.getIndexWithinParent()+1,r.select(e,e))}selectNext(e,t){Th();let n=this.getNextSibling(),r=this.getParentOrThrow();return null===n?r.select():jh(n)?n.select(0,0):jm(n)?n.select(e,t):(e=n.getIndexWithinParent(),r.select(e,e))}markDirty(){this.getWritable()}}let Cm=class e extends Em{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}static importDOM(){return{br:e=>{let t,n,r=e.parentElement;return null!==r&&((t=r.firstChild)===e||t.nextSibling===e&&3===t.nodeType&&null!==(t.textContent||"").match(/^[\s|\r?\n|\t]+$/))&&((n=r.lastChild)===e||n.previousSibling===e&&3===n.nodeType&&null!==(n.textContent||"").match(/^[\s|\r?\n|\t]+$/))?null:{conversion:wm,priority:0}}}}static importJSON(){return Sm()}exportJSON(){return{type:"linebreak",version:1}}};function wm(){return{node:Sm()}}function Sm(){return hp(new Cm)}function km(e){return e instanceof Cm}function Tm(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function Nm(e,t){return 1&t?"strong":2&t?"em":"span"}function Rm(e,t,n,r,o){e=r.classList,void 0!==(r=np(o,"base"))&&e.add(...r);let i=!1,l=8&t&&4&t;var a=8&n&&4&n;void 0!==(r=np(o,"underlineStrikethrough"))&&(a?(i=!0,l||e.add(...r)):l&&e.remove(...r));for(let s in cf)a=cf[s],void 0!==(r=np(o,s))&&(n&a&&(!i||"underline"!==s&&"strikethrough"!==s)?(!(t&a)||l&&"underline"===s||"strikethrough"===s)&&e.add(...r):t&a&&e.remove(...r))}function Am(e,t,n){let r=t.firstChild;if(e+=(n=n.isComposing())?lf:"",null==r)t.textContent=e;else if((t=r.nodeValue)!==e)if(n||Zd){n=t.length;let o=e.length,i=0,l=0;for(;i<n&&i<o&&t[i]===e[i];)i++;for(;l+i<n&&l+i<o&&t[n-l-1]===e[o-l-1];)l++;e=[i,n-i-l,e.slice(i,o-l)];let[a,s,u]=e;0!==s&&r.deleteData(a,s),r.insertData(a,u)}else r.nodeValue=e}function Om(e,t){return(t=document.createElement(t)).appendChild(e),t}let Lm=class e extends Em{static getType(){return"text"}static clone(t){return new e(t.__text,t.__key)}constructor(e,t){super(t),this.__text=e,this.__format=0,this.__style="",this.__detail=this.__mode=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return hf[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Hf()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){return e=cf[e],!!(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return If(this.getLatest().__format,e,t)}createDOM(e){var t=this.__format,n=Tm(0,t);let r=Nm(0,t),o=document.createElement(null===n?r:n),i=o;return null!==n&&(i=document.createElement(r),o.appendChild(i)),n=i,Am(this.__text,n,this),void 0!==(e=e.theme.text)&&Rm(r,0,t,n,e),""!==(t=this.__style)&&(o.style.cssText=t),o}updateDOM(e,t,n){let r=this.__text;var o=e.__format,i=this.__format,l=Tm(0,o);let a=Tm(0,i);var s=Nm(0,o);let u=Nm(0,i);return(null===l?s:l)!==(null===a?u:a)||(l===a&&s!==u?(null==(o=t.firstChild)&&Qd(48),Am(r,e=l=document.createElement(u),this),void 0!==(n=n.theme.text)&&Rm(u,0,i,e,n),t.replaceChild(l,o),!1):(s=t,null!==a&&null!==l&&(null==(s=t.firstChild)&&Qd(49)),Am(r,s,this),void 0!==(n=n.theme.text)&&o!==i&&Rm(u,o,i,s,n),i=this.__style,e.__style!==i&&(t.style.cssText=i),!1))}static importDOM(){return{"#text":()=>({conversion:Dm,priority:0}),b:()=>({conversion:Pm,priority:0}),code:()=>({conversion:Bm,priority:0}),em:()=>({conversion:Bm,priority:0}),i:()=>({conversion:Bm,priority:0}),s:()=>({conversion:Bm,priority:0}),span:()=>({conversion:Mm,priority:0}),strong:()=>({conversion:Bm,priority:0}),sub:()=>({conversion:Bm,priority:0}),sup:()=>({conversion:Bm,priority:0}),u:()=>({conversion:Bm,priority:0})}}static importJSON(e){let t=Hm(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){return({element:e}=super.exportDOM(e)),null!==e&&(this.hasFormat("bold")&&(e=Om(e,"b")),this.hasFormat("italic")&&(e=Om(e,"i")),this.hasFormat("strikethrough")&&(e=Om(e,"s")),this.hasFormat("underline")&&(e=Om(e,"u"))),{element:e}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?cf[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?df[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){return e=cf[e],this.setFormat(this.getFormat()^e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){if(e=mf[e],this.__mode===e)return this;let t=this.getWritable();return t.__mode=e,t}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){Th();let n=ph();var r=this.getTextContent();let o=this.__key;return"string"==typeof r?(r=r.length,void 0===e&&(e=r),void 0===t&&(t=r)):t=e=0,Xm(n)?((r=Hf())!==n.anchor.key&&r!==n.focus.key||Bf(o),n.setTextNodeRange(this,e,this,t),n):ch(o,e,o,t,"text","text")}spliceText(e,t,n,r){let o=this.getWritable(),i=o.__text,l=n.length,a=e;0>a&&(a=l+a,0>a&&(a=0));let s=ph();return r&&Xm(s)&&(e+=l,s.setTextNodeRange(o,e,o,e)),t=i.slice(0,a)+n+i.slice(a+t),o.__text=t,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Th();var t=this.getLatest(),n=t.getTextContent(),r=t.__key,o=Hf(),i=new Set(e);e=[];for(var l=n.length,a="",s=0;s<l;s++)""!==a&&i.has(s)&&(e.push(a),a=""),a+=n[s];if(""!==a&&e.push(a),0===(i=e.length))return[];if(e[0]===n)return[t];var u=e[0];n=t.getParentOrThrow(),s=t.getFormat();let c=t.getStyle(),d=t.__detail;l=!1,t.isSegmented()?((a=Hm(u)).__format=s,a.__style=c,a.__detail=d,l=!0):(a=t.getWritable()).__text=u,t=ph(),a=[a],u=u.length;for(let n=1;n<i;n++){var f=e[n],p=f.length;(f=Hm(f).getWritable()).__format=s,f.__style=c,f.__detail=d;let i=f.__key;if(p=u+p,Xm(t)){let e=t.anchor,n=t.focus;e.key===r&&"text"===e.type&&e.offset>u&&e.offset<=p&&(e.key=i,e.offset-=u,t.dirty=!0),n.key===r&&"text"===n.type&&n.offset>u&&n.offset<=p&&(n.key=i,n.offset-=u,t.dirty=!0)}o===r&&Bf(i),u=p,a.push(f)}return r=this.getPreviousSibling(),o=this.getNextSibling(),null!==r&&Ff(r),null!==o&&Ff(o),r=n.getWritable(),o=this.getIndexWithinParent(),l?(r.splice(o,0,a),this.remove()):r.splice(o,1,a),Xm(t)&&hh(t,n,o,i-1),a}mergeWithSibling(e){var t=e===this.getPreviousSibling();t||e===this.getNextSibling()||Qd(50);var n=this.__key;let r=e.__key,o=this.__text,i=o.length;Hf()===r&&Bf(n);let l=ph();if(Xm(l)){let o=l.anchor,a=l.focus;null!==o&&o.key===r&&(bh(o,t,n,e,i),l.dirty=!0),null!==a&&a.key===r&&(bh(a,t,n,e,i),l.dirty=!0)}return n=e.__text,this.setTextContent(t?n+o:o+n),t=this.getWritable(),e.remove(),t}isTextEntity(){return!1}};function Mm(e){let t="700"===e.style.fontWeight,n="line-through"===e.style.textDecoration,r="italic"===e.style.fontStyle,o="underline"===e.style.textDecoration,i=e.style.verticalAlign;return{forChild:e=>jm(e)?(t&&e.toggleFormat("bold"),n&&e.toggleFormat("strikethrough"),r&&e.toggleFormat("italic"),o&&e.toggleFormat("underline"),"sub"===i&&e.toggleFormat("subscript"),"super"===i&&e.toggleFormat("superscript"),e):e,node:null}}function Pm(e){let t="normal"===e.style.fontWeight;return{forChild:e=>(jm(e)&&!t&&e.toggleFormat("bold"),e),node:null}}let Im=new WeakMap;function Dm(e){null===e.parentElement&&Qd(129);for(var t,n=e.textContent||"",r=e.parentNode,o=[e];null!==r&&void 0===(t=Im.get(r))&&!("PRE"===r.nodeName||1===r.nodeType&&r.style.whiteSpace.startsWith("pre"));)o.push(r),r=r.parentNode;for(t=void 0===t?r:t,r=0;r<o.length;r++)Im.set(o[r],t);if(null!==t){for(e=[],o=(n=n.split(/(\r?\n|\t)/)).length,t=0;t<o;t++)"\n"===(r=n[t])||"\r\n"===r?e.push(Sm()):"\t"===r?e.push(Km()):""!==r&&e.push(Hm(r));return{node:e}}if(""===(n=n.replace(/\r?\n|\t/gm," ").replace("\r","").replace(/\s+/g," ")))return{node:null};if(" "===n[0]){for(o=e,t=!0;null!==o&&null!==(o=$m(o,!1));)if(0<(r=o.textContent||"").length){r.match(/(?:\s|\r?\n|\t)$/)&&(n=n.slice(1)),t=!1;break}t&&(n=n.slice(1))}if(" "===n[n.length-1]){for(o=!0;null!==e&&null!==(e=$m(e,!0));)if(0<(e.textContent||"").replace(/^[\s|\r?\n|\t]+/,"").length){o=!1;break}o&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:Hm(n)}}let zm=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function $m(e,t){for(;;){for(var n=void 0;null===(n=t?e.nextSibling:e.previousSibling);)if(null===(e=e.parentElement))return null;if(1===(e=n).nodeType&&(""===(n=e.style.display)&&null===e.nodeName.match(zm)||""!==n&&!n.startsWith("inline")))return null;for(;null!==(n=t?e.firstChild:e.lastChild);)e=n;if(3===e.nodeType)return e;if("BR"===e.nodeName)return null}}let Fm={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Bm(e){let t=Fm[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:e=>(jm(e)&&!e.hasFormat(t)&&e.toggleFormat(t),e),node:null}}function Hm(e=""){return hp(new Lm(e))}function jm(e){return e instanceof Lm}let Wm=class e extends Lm{static getType(){return"tab"}static clone(t){let n=new e(t.__key);return n.__text=t.__text,n.__format=t.__format,n.__style=t.__style,n}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}static importJSON(e){let t=Km();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(){Qd(126)}setDetail(){Qd(127)}setMode(){Qd(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function Km(){return hp(new Wm)}let Um=class{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),n=e.getNode(),r=this.offset;if(e=e.offset,jh(t)){var o=t.getDescendantByIndex(r);t=null!=o?o:t}return jh(n)&&(o=n.getDescendantByIndex(e),n=null!=o?o:n),t===n?r<e:t.isBefore(n)}getNode(){let e=jf(this.key);return null===e&&Qd(20),e}set(e,t,n){let r=this._selection,o=this.key;this.key=e,this.offset=t,this.type=n,kh()||(Hf()===o&&Bf(e),null!==r&&(r._cachedNodes=null,r.dirty=!0))}};function Gm(e,t){let n=t.__key,r=e.offset,o="element";if(jm(t))o="text",r>(t=t.getTextContentSize())&&(r=t);else if(!jh(t)){var i=t.getNextSibling();jm(i)?(n=i.__key,r=0,o="text"):(i=t.getParent())&&(n=i.__key,r=t.getIndexWithinParent()+1)}e.set(n,r,o)}function Ym(e,t){if(jh(t)){let n=t.getLastDescendant();jh(n)||jm(n)?Gm(e,n):Gm(e,t)}else Gm(e,t)}function Vm(e,t,n,r){let o=e.getNode(),i=o.getChildAtIndex(e.offset),l=Hm(),a=Uh(o)?Xh().append(l):l;l.setFormat(n),l.setStyle(r),null===i?o.append(a):(i.insertBefore(a),"element"===t.type&&t.key===e.key&&t.offset!==e.offset&&t.set(t.key,t.offset+1,"element")),e.is(t)&&t.set(l.__key,0,"text"),e.set(l.__key,0,"text")}function Qm(e,t,n,r){e.key=t,e.offset=n,e.type=r}class qm{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!th(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((e=>n.has(e)))}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new qm(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.getNodes(),r=n.length;var o=n[r-1];if(jm(o))o=o.select();else{let e=o.getIndexWithinParent()+1;o=o.getParentOrThrow().select(e,e)}for(o.insertNodes(e,t),e=0;e<r;e++)n[e].remove();return!0}getNodes(){var e=this._cachedNodes;if(null!==e)return e;var t=this._nodes;e=[];for(let n of t)null!==(t=jf(n))&&e.push(t);return kh()||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}function Xm(e){return e instanceof eh}let Jm=class e{constructor(e,t,n){this.gridKey=e,this.anchor=t,this.focus=n,this.dirty=!1,this._cachedNodes=null,t._selection=this,n._selection=this}is(e){return!!Zm(e)&&(this.gridKey===e.gridKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus))}set(e,t,n){this.dirty=!0,this.gridKey=e,this.anchor.key=t,this.focus.key=n,this._cachedNodes=null}clone(){return new e(this.gridKey,this.anchor,this.focus)}isCollapsed(){return!1}isBackward(){return this.focus.isBefore(this.anchor)}getCharacterOffsets(){return rh(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.focus.getNode();return kf(n.select(0,n.getChildrenSize())).insertNodes(e,t)}getShape(){var e=jf(this.anchor.key);null===e&&Qd(21);var t=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var n=jf(this.focus.key);null===n&&Qd(22);var r=n.getIndexWithinParent();let o=n.getParentOrThrow().getIndexWithinParent();return n=Math.min(t,r),t=Math.max(t,r),r=Math.min(e,o),e=Math.max(e,o),{fromX:Math.min(n,t),fromY:Math.min(r,e),toX:Math.max(n,t),toY:Math.max(r,e)}}getNodes(){function e(e){let{cell:t,startColumn:n,startRow:r}=e;a=Math.min(a,n),s=Math.min(s,r),u=Math.max(u,n+t.__colSpan-1),c=Math.max(c,r+t.__rowSpan-1)}var t=this._cachedNodes;if(null!==t)return t;var n=this.anchor.getNode();t=this.focus.getNode(),n=_p(n,tg);var r=_p(t,tg);tg(n)||Qd(103),tg(r)||Qd(104),ig(t=n.getParent())||Qd(105),rg(t=t.getParent())||Qd(106);let[o,i,l]=yh(t,n,r),a=Math.min(i.startColumn,l.startColumn),s=Math.min(i.startRow,l.startRow),u=Math.max(i.startColumn+i.cell.__colSpan-1,l.startColumn+l.cell.__colSpan-1),c=Math.max(i.startRow+i.cell.__rowSpan-1,l.startRow+l.cell.__rowSpan-1);n=a,r=s;for(var d=a,f=s;a<n||s<r||u>d||c>f;){if(a<n){var p=f-r;--n;for(var m=0;m<=p;m++)e(o[r+m][n])}if(s<r)for(p=d-n,--r,m=0;m<=p;m++)e(o[r][n+m]);if(u>d)for(p=f-r,d+=1,m=0;m<=p;m++)e(o[r+m][d]);if(c>f)for(p=d-n,f+=1,m=0;m<=p;m++)e(o[f][n+m])}for(t=[t],n=null,r=s;r<=c;r++)for(d=a;d<=u;d++)({cell:f}=o[r][d]),ig(p=f.getParent())||Qd(107),p!==n&&t.push(p),t.push(f,...Ep(f)),n=p;return kh()||(this._cachedNodes=t),t}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}};function Zm(e){return e instanceof Jm}let eh=class e{constructor(e,t,n,r){this.anchor=e,this.focus=t,this.dirty=!1,this.format=n,this.style=r,this._cachedNodes=null,e._selection=this,t._selection=this}is(e){return!!Xm(e)&&(this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style)}isBackward(){return this.focus.isBefore(this.anchor)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){var e=this._cachedNodes;if(null!==e)return e;e=this.anchor;var t=this.focus,n=e.isBefore(t),r=n?e:t;n=n?t:e,e=r.getNode(),t=n.getNode();let o=r.offset;return r=n.offset,jh(e)&&(n=e.getDescendantByIndex(o),e=null!=n?n:e),jh(t)&&(null!==(n=t.getDescendantByIndex(r))&&n!==e&&t.getChildAtIndex(r)===n&&(n=n.getPreviousSibling()),t=null!=n?n:t),e=e.is(t)?jh(e)&&0<e.getChildrenSize()?[]:[e]:e.getNodesBetween(t),kh()||(this._cachedNodes=e),e}setTextNodeRange(e,t,n,r){Qm(this.anchor,e.__key,t,"text"),Qm(this.focus,n.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[l,a]=rh(this),s="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(jh(d)&&!d.isInline())u||(s+="\n"),u=!d.isEmpty();else if(u=!1,jm(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=l<a?e.slice(l,a):e.slice(a,l)):e=i?e.slice(l):e.slice(a):d===n&&(e=i?e.slice(0,a):e.slice(0,l)),s+=e}else!Bh(d)&&!km(d)||d===n&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let t=Rh(),n=t.getEditorState()._selection;if(null!==(e=sh(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n))){var[r,o]=e;Qm(this.anchor,r.key,r.offset,r.type),Qm(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let t=this.anchor,n=this.focus;return new e(new Um(t.key,t.offset,t.type),new Um(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=If(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){return!!(this.format&cf[e])}insertRawText(e){let t=[],n=(e=e.split(/(\r?\n|\t)/)).length;for(let r=0;r<n;r++){let n=e[r];"\n"===n||"\r\n"===n?t.push(Sm()):"\t"===n?t.push(Km()):t.push(Hm(n))}this.insertNodes(t)}insertText(e){var t=this.anchor,n=this.focus,r=this.isCollapsed()||t.isBefore(n),o=this.format,i=this.style;r&&"element"===t.type?Vm(t,n,o,i):r||"element"!==n.type||Vm(n,t,o,i);var l=this.getNodes(),a=l.length,s=r?n:t;n=(r?t:n).offset;var u=s.offset;jm(t=l[0])||Qd(26),r=t.getTextContent().length;var c=t.getParentOrThrow(),d=l[a-1];if(this.isCollapsed()&&n===r&&(t.isSegmented()||t.isToken()||!t.canInsertTextAfter()||!c.canInsertTextAfter()&&null===t.getNextSibling())){var f=t.getNextSibling();if(jm(f)&&f.canInsertTextBefore()&&!Mf(f)||((f=Hm()).setFormat(o),c.canInsertTextAfter()?t.insertAfter(f):c.insertAfter(f)),f.select(0,0),t=f,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===n&&(t.isSegmented()||t.isToken()||!t.canInsertTextBefore()||!c.canInsertTextBefore()&&null===t.getPreviousSibling())){if(jm(f=t.getPreviousSibling())&&!Mf(f)||((f=Hm()).setFormat(o),c.canInsertTextBefore()?t.insertBefore(f):c.insertBefore(f)),f.select(),t=f,""!==e)return void this.insertText(e)}else if(t.isSegmented()&&n!==r)(c=Hm(t.getTextContent())).setFormat(o),t.replace(c),t=c;else if(!(this.isCollapsed()||""===e||(f=d.getParent(),c.canInsertTextBefore()&&c.canInsertTextAfter()&&(!jh(f)||f.canInsertTextBefore()&&f.canInsertTextAfter()))))return this.insertText(""),ah(this.anchor,this.focus,null),void this.insertText(e);if(1===a)if(t.isToken())(e=Hm(e)).select(),t.replace(e);else{if(l=t.getFormat(),a=t.getStyle(),n===u&&(l!==o||a!==i)){if(""!==t.getTextContent())return(l=Hm(e)).setFormat(o),l.setStyle(i),l.select(),0===n?t.insertBefore(l,!1):([a]=t.splitText(n),a.insertAfter(l,!1)),void(l.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length));t.setFormat(o),t.setStyle(i)}""===(t=t.spliceText(n,u-n,e,!0)).getTextContent()?t.remove():"text"===this.anchor.type&&(t.isComposing()?this.anchor.offset-=e.length:(this.format=l,this.style=a))}else{if(o=new Set([...t.getParentKeys(),...d.getParentKeys()]),f=jh(t)?t:t.getParentOrThrow(),i=jh(d)?d:d.getParentOrThrow(),c=d,!f.is(i)&&i.isInline())do{c=i,i=i.getParentOrThrow()}while(i.isInline());"text"===s.type&&(0!==u||""===d.getTextContent())||"element"===s.type&&d.getIndexWithinParent()<u?jm(d)&&!d.isToken()&&u!==d.getTextContentSize()?(d.isSegmented()&&(s=Hm(d.getTextContent()),d.replace(s),d=s),d=d.spliceText(0,u,""),o.add(d.__key)):(s=d.getParentOrThrow()).canBeEmpty()||1!==s.getChildrenSize()?d.remove():s.remove():o.add(d.__key),s=i.getChildren(),u=new Set(l),d=f.is(i),f=f.isInline()&&null===t.getNextSibling()?f:t;for(let e=s.length-1;0<=e;e--){let n=s[e];if(n.is(t)||jh(n)&&n.isParentOf(t))break;n.isAttached()&&(!u.has(n)||n.is(c)?d||f.insertAfter(n,!1):n.remove())}if(!d)for(s=i,u=null;null!==s;)(0===(d=(i=s.getChildren()).length)||i[d-1].is(u))&&(o.delete(s.__key),u=s),s=s.getParent();for(t.isToken()?n===r?t.select():((e=Hm(e)).select(),t.replace(e)):""===(t=t.spliceText(n,r-n,e,!0)).getTextContent()?t.remove():t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length),e=1;e<a;e++)t=l[e],o.has(t.__key)||t.remove()}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())this.toggleFormat(e),Bf(null);else{var t=this.getNodes(),n=[];for(var r of t)jm(r)&&n.push(r);var o=n.length;if(0===o)this.toggleFormat(e),Bf(null);else{r=this.anchor;var i=this.focus,l=this.isBackward();t=l?i:r,r=l?r:i;var a=0,s=n[0];if(i="element"===t.type?0:t.offset,"text"===t.type&&i===s.getTextContentSize()&&(a=1,s=n[1],i=0),null!=s){l=s.getFormatFlags(e,null);var u=o-1,c=n[u];if(o="text"===r.type?r.offset:c.getTextContentSize(),s.is(c))i!==o&&(0===i&&o===s.getTextContentSize()?s.setFormat(l):(e=s.splitText(i,o),(e=0===i?e[0]:e[1]).setFormat(l),"text"===t.type&&t.set(e.__key,0,"text"),"text"===r.type&&r.set(e.__key,o-i,"text")),this.format=l);else{0!==i&&([,s]=s.splitText(i),i=0),s.setFormat(l);var d=c.getFormatFlags(e,l);for(0<o&&(o!==c.getTextContentSize()&&([c]=c.splitText(o)),c.setFormat(d)),a+=1;a<u;a++){let t=n[a];if(!t.isToken()){let n=t.getFormatFlags(e,d);t.setFormat(n)}}"text"===t.type&&t.set(s.__key,i,"text"),"text"===r.type&&r.set(c.__key,o,"text"),this.format=l|d}}}}}insertNodes(e,t){if(!this.isCollapsed()){var n=this.isBackward()?this.anchor:this.focus,r=n.getNode().getNextSibling();if(r=r?r.getKey():null,n=(n=n.getNode().getPreviousSibling())?n.getKey():null,this.removeText(),this.isCollapsed()&&"element"===this.focus.type){if(this.focus.key===r&&0===this.focus.offset){var o=Hm();this.focus.getNode().insertBefore(o)}else this.focus.key===n&&this.focus.offset===this.focus.getNode().getChildrenSize()&&(o=Hm(),this.focus.getNode().insertAfter(o));o&&(this.focus.set(o.__key,0,"text"),this.anchor.set(o.__key,0,"text"))}}n=(o=this.anchor).offset;var i=o.getNode();r=i,"element"===o.type&&(r=null===(r=(o=o.getNode()).getChildAtIndex(n-1))?o:r),o=[];var l=i.getNextSiblings(),a=pp(i)?null:i.getTopLevelElementOrThrow();if(jm(i))if(r=i.getTextContent().length,0===n&&0!==r)r=null!==(r=i.getPreviousSibling())?r:i.getParentOrThrow(),o.push(i);else if(n===r)r=i;else{if(i.isToken())return!1;[r,i]=i.splitText(n),o.push(i)}i=r,o.push(...l),l=e[0];var s=!1,u=null;for(let t=0;t<e.length;t++){var c=e[t];if(pp(r)||Bh(r)||!jh(c)||c.isInline())s&&!jh(c)&&!Bh(c)&&pp(r.getParent())&&Qd(28);else{if(c.is(l)){if(jh(r)&&r.isEmpty()&&r.canReplaceWith(c)){r.replace(c),r=c,s=!0;continue}if(Df(s=c.getFirstDescendant())){for(var d=s.getParentOrThrow();d.isInline();)d=d.getParentOrThrow();if(s=(u=d.getChildren()).length,jh(r)){var f=r.getFirstChild();for(let e=0;e<s;e++){let t=u[e];null===f?r.append(t):f.insertAfter(t),f=t}}else{for(f=s-1;0<=f;f--)r.insertAfter(u[f]);r=r.getParentOrThrow()}if(u=u[s-1],d.remove(),s=!0,d.is(c))continue}}jm(r)&&(null===a&&Qd(27),r=a)}s=!1,jh(r)&&!r.isInline()?(u=c,Bh(c)&&!c.isInline()?r=r.insertAfter(c,!1):jh(c)?!c.canBeEmpty()&&c.isEmpty()||(Uh(r)?(null!==(d=r.getChildAtIndex(n))?d.insertBefore(c):r.append(c),r=c):c.isInline()?(r.append(c),r=c):r=r.insertAfter(c,!1)):(null!==(d=r.getFirstChild())?d.insertBefore(c):r.append(c),r=c)):!jh(c)||jh(c)&&c.isInline()||Bh(r)&&!r.isInline()?(u=c,Xm(this)&&Bh(c)&&(jh(r)||jm(r))&&!c.isInline()?(jm(r)?(d=r.getParentOrThrow(),[r]=r.splitText(n),r=r.getIndexWithinParent()+1):(d=r,r=n),[,r]=xp(d,r),r=r.insertBefore(c)):r=r.insertAfter(c,!1)):(c=r.getParentOrThrow(),km(r)&&r.remove(),r=c,t--)}if(t&&(jm(i)?i.select():jm(e=r.getPreviousSibling())?e.select():(e=r.getIndexWithinParent(),r.getParentOrThrow().select(e,e))),jh(r)){if(e=jm(u)?u:jh(u)&&u.isInline()?u.getLastDescendant():r.getLastDescendant(),t||(null===e?r.select():jm(e)?""===e.getTextContent()?e.selectPrevious():e.select():e.selectNext()),0!==o.length)for(t=r,e=o.length-1;0<=e;e--)a=(n=o[e]).getParentOrThrow(),!jh(r)||uh(n)||Bh(n)&&(!n.isInline()||n.isIsolated())?jh(r)||uh(n)?jh(n)&&!n.canInsertAfter(r)?(jh(i=a.constructor.clone(a))||Qd(29),i.append(n),r.insertAfter(i)):r.insertAfter(n):(r.insertBefore(n),r=n):(t===r?r.append(n):r.insertBefore(n),r=n),a.isEmpty()&&!a.canBeEmpty()&&a.remove()}else t||(jm(r)?r.select():(t=r.getParentOrThrow(),e=r.getIndexWithinParent()+1,t.select(e,e)));return!0}insertParagraph(){this.isCollapsed()||this.removeText();var e=this.anchor,t=e.offset,n=[];if("text"===e.type){var r=e.getNode(),o=r.getNextSiblings().reverse(),i=r.getParentOrThrow(),l=i.isInline(),a=l?i.getTextContentSize():r.getTextContentSize();0===t?o.push(r):(l&&(n=i.getNextSiblings()),t===a||l&&t===r.getTextContentSize()||([,r]=r.splitText(t),o.push(r)))}else{if(pp(i=e.getNode()))return o=Xh(),n=i.getChildAtIndex(t),o.select(),void(null!==n?n.insertBefore(o,!1):i.append(o));o=i.getChildren().slice(t).reverse()}if(r=o.length,0===t&&0<r&&i.isInline()){if(jh(o=(n=i.getParentOrThrow()).insertNewAfter(this,!1)))for(n=n.getChildren(),i=0;i<n.length;i++)o.append(n[i])}else if(null===(l=i.insertNewAfter(this,!1)))this.insertLineBreak();else if(jh(l))if(a=i.getFirstChild(),0===t&&(i.is(e.getNode())||a&&a.is(e.getNode()))&&0<r)i.insertBefore(l);else{if(i=null,t=n.length,e=l.getParentOrThrow(),0<t)for(a=0;a<t;a++)e.append(n[a]);if(0!==r)for(n=0;n<r;n++)t=o[n],null===i?l.append(t):i.insertBefore(t),i=t;l.canBeEmpty()||0!==l.getChildrenSize()?l.selectStart():(l.selectPrevious(),l.remove())}}insertLineBreak(e){let t=Sm();var n=this.anchor;"element"===n.type&&(Uh(n=n.getNode())&&this.insertParagraph()),e?this.insertNodes([t],!0):this.insertNodes([t])&&t.selectNext(0,0)}getCharacterOffsets(){return rh(this)}extract(){var e=this.getNodes(),t=e.length,n=t-1,r=this.anchor;let o=this.focus;var i=e[0];let l=e[n],[a,s]=rh(this);return 0===t?[]:1===t?jm(i)&&!this.isCollapsed()?(e=a>s?s:a,n=i.splitText(e,a>s?a:s),null!=(e=0===e?n[0]:n[1])?[e]:[]):[i]:(t=r.isBefore(o),jm(i)&&((r=t?a:s)===i.getTextContentSize()?e.shift():0!==r&&([,i]=i.splitText(r),e[0]=i)),jm(l)&&(i=l.getTextContent().length,0===(t=t?s:a)?e.pop():t!==i&&([l]=l.splitText(t),e[n]=l)),e)}modify(e,t,n){var r=this.focus,o=this.anchor,i="move"===e,l=ip(r,t);if(Bh(l)&&!l.isIsolated())i&&l.isKeyboardSelectable()?((t=dh()).add(l.__key),Vf(t)):jm(e=t?l.getPreviousSibling():l.getNextSibling())?(l=e.__key,t=t?e.getTextContent().length:0,r.set(l,t,"text"),i&&o.set(l,t,"text")):(n=l.getParentOrThrow(),jh(e)?(n=e.__key,l=t?e.getChildrenSize():0):(l=l.getIndexWithinParent(),n=n.__key,t||l++),r.set(n,l,"element"),i&&o.set(n,l,"element"));else if(r=yp((o=Rh())._window)){var a=o._blockCursorElement,s=o._rootElement;if(null===s||null===a||!jh(l)||l.isInline()||l.canBeEmpty()||bp(a,o,s),r.modify(e,t?"backward":"forward",n),0<r.rangeCount&&(l=r.getRangeAt(0),o=Uh(o=this.anchor.getNode())?o:fp(o),this.applyDOMRange(l),this.dirty=!0,!i)){for(i=this.getNodes(),e=[],n=!1,a=0;a<i.length;a++)cp(s=i[a],o)?e.push(s):n=!0;n&&0<e.length&&(t?jh(t=e[0])?t.selectStart():t.getParentOrThrow().selectStart():jh(t=e[e.length-1])?t.selectEnd():t.getParentOrThrow().selectEnd()),r.anchorNode===l.startContainer&&r.anchorOffset===l.startOffset||(t=this.focus,r=(i=this.anchor).key,l=i.offset,o=i.type,Qm(i,t.key,t.offset,t.type),Qm(t,r,l,o),this._cachedNodes=null)}}}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){var n=this.anchor,r=this.focus,o=n.getNode();if(!e&&("element"===n.type&&jh(o)&&n.offset===o.getChildrenSize()||"text"===n.type&&n.offset===o.getTextContentSize())){var i=o.getParent();if(jh(i=o.getNextSibling()||(null===i?null:i.getNextSibling()))&&i.isShadowRoot())return}if(Bh(i=ip(r,e))&&!i.isIsolated())return void(i.isKeyboardSelectable()&&jh(o)&&0===o.getChildrenSize()?(o.remove(),e=dh(),e.add(i.__key),Vf(e)):(i.remove(),Rh().dispatchCommand(md,void 0)));if(!e&&jh(i)&&jh(o)&&o.isEmpty())return o.remove(),void i.selectStart();if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===n.offset&&("element"===n.type?n.getNode():n.getNode().getParentOrThrow()).collapseAtStart(this))return}else{if(i="text"===r.type?r.getNode():null,o="text"===n.type?n.getNode():null,null!==i&&i.isSegmented()){if(n=r.offset,r=i.getTextContentSize(),i.is(o)||e&&n!==r||!e&&0!==n)return void oh(i,e,n)}else if(null!==o&&o.isSegmented()&&(n=n.offset,r=o.getTextContentSize(),o.is(i)||e&&0!==n||!e&&n!==r))return void oh(o,e,n);if(o=this.anchor,i=this.focus,(n=o.getNode())===(r=i.getNode())&&"text"===o.type&&"text"===i.type){var l=o.offset,a=i.offset;let t=l<a;(r=t?l:a)!==(l=(a=t?a:l)-1)&&(qf(n=n.getTextContent().slice(r,a))||(e?i.offset=l:o.offset=l))}}}this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset&&((e=this.anchor.getNode()).isEmpty()&&Uh(e.getParent())&&0===e.getIndexWithinParent()&&e.collapseAtStart(this))}deleteLine(e){this.isCollapsed()&&("text"===this.anchor.type&&this.modify("extend",e,"lineboundary"),0===(e?this.focus:this.anchor).offset&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}};function th(e){return e instanceof qm}function nh(e){let t=e.offset;return"text"===e.type?t:t===(e=e.getNode()).getChildrenSize()?e.getTextContent().length:0}function rh(e){let t=e.anchor;return e=e.focus,"element"===t.type&&"element"===e.type&&t.key===e.key&&t.offset===e.offset?[0,0]:[nh(t),nh(e)]}function oh(e,t,n){let r=e.getTextContent().split(/(?=\s)/g),o=r.length,i=0,l=0;for(let e=0;e<o;e++){let a=e===o-1;if(l=i,i+=r[e].length,t&&i===n||i>n||a){r.splice(e,1),a&&(l=void 0);break}}""===(t=r.join("").trim())?e.remove():(e.setTextContent(t),e.select(l,l))}function ih(e,t,n,r){var o=t;if(1===e.nodeType){let a=!1;var i=e.childNodes,l=i.length;o===l&&(a=!0,o=l-1);let s=i[o];if(l=!1,s===r._blockCursorElement?(s=i[o+1],l=!0):null!==r._blockCursorElement&&o--,jm(r=Qf(s)))o=a?r.getTextContentSize():0;else{if(null===(i=Qf(e)))return null;if(jh(i)?((t=jh(e=i.getChildAtIndex(o)))&&(t=e.getParent(),t=null===n||null===t||!t.canBeEmpty()||t!==n.getNode()),t&&(null===(n=a?e.getLastDescendant():e.getFirstDescendant())?(i=e,o=0):i=jh(e=n)?e:e.getParentOrThrow()),jm(e)?(r=e,i=null,o=a?e.getTextContentSize():0):e!==i&&a&&!l&&o++):(o=i.getIndexWithinParent(),o=0===t&&Bh(i)&&Qf(e)===i?o:o+1,i=i.getParentOrThrow()),jh(i))return new Um(i.__key,o,"element")}}else r=Qf(e);return jm(r)?new Um(r.__key,o,"text"):null}function lh(e,t,n){var r=e.offset,o=e.getNode();0===r?(r=o.getPreviousSibling(),o=o.getParent(),t?(n||!t)&&null===r&&jh(o)&&o.isInline()&&(jm(t=o.getPreviousSibling())&&(e.key=t.__key,e.offset=t.getTextContent().length)):jh(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):jm(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)):r===o.getTextContent().length&&(r=o.getNextSibling(),o=o.getParent(),t&&jh(r)&&r.isInline()?(e.key=r.__key,e.offset=0,e.type="element"):(n||t)&&null===r&&jh(o)&&o.isInline()&&!o.canInsertTextAfter()&&(jm(t=o.getNextSibling())&&(e.key=t.__key,e.offset=0)))}function ah(e,t,n){if("text"===e.type&&"text"===t.type){var r=e.isBefore(t);let o=e.is(t);lh(e,r,o),lh(t,!r,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type),(r=Rh()).isComposing()&&r._compositionKey!==e.key&&Xm(n)&&(r=n.anchor,n=n.focus,Qm(e,r.key,r.offset,r.type),Qm(t,n.key,n.offset,n.type))}}function sh(e,t,n,r,o,i){return null!==e&&null!==n&&Of(o,e,n)?null===(t=ih(e,t,Xm(i)?i.anchor:null,o))||null===(r=ih(n,r,Xm(i)?i.focus:null,o))||"element"===t.type&&"element"===r.type&&(e=Qf(e),n=Qf(n),Bh(e)&&Bh(n))?null:(ah(t,r,i),[t,r]):null}function uh(e){return jh(e)&&!e.isInline()}function ch(e,t,n,r,o,i){let l=Nh();return(e=new eh(new Um(e,t,o),new Um(n,r,i),0,"")).dirty=!0,l._selection=e}function dh(){return new qm(new Set)}function fh(e,t,n){var r=n._window;if(null===r)return null;var o=r.event,i=o?o.type:void 0;let l;if(r="selectionchange"===i,o=!gf&&(r||"beforeinput"===i||"compositionstart"===i||"compositionend"===i||"click"===i&&o&&3===o.detail||"drop"===i||void 0===i),Xm(e)&&!o)return e.clone();if(null===t)return null;if(o=t.anchorNode,i=t.focusNode,l=t.anchorOffset,t=t.focusOffset,r&&Xm(e)&&!Of(n,o,i))return e.clone();if(null===(n=sh(o,l,i,t,n,e)))return null;let[a,s]=n;return new eh(a,s,Xm(e)?e.format:0,Xm(e)?e.style:"")}function ph(){return Nh()._selection}function mh(){return Rh()._editorState._selection}function hh(e,t,n,r=1){var o=e.anchor,i=e.focus,l=o.getNode(),a=i.getNode();if(t.is(l)||t.is(a)){if(l=t.__key,e.isCollapsed())(n<=(t=o.offset)&&0<r||n<t&&0>r)&&(n=Math.max(0,t+r),o.set(l,n,"element"),i.set(l,n,"element"),gh(e));else{let u=e.isBackward();var s=(a=u?i:o).getNode();i=(o=u?o:i).getNode(),t.is(s)&&((n<=(s=a.offset)&&0<r||n<s&&0>r)&&a.set(l,Math.max(0,s+r),"element")),t.is(i)&&((n<=(t=o.offset)&&0<r||n<t&&0>r)&&o.set(l,Math.max(0,t+r),"element"))}gh(e)}}function gh(e){var t=e.anchor,n=t.offset;let r=e.focus;var o=r.offset,i=t.getNode(),l=r.getNode();if(e.isCollapsed())jh(i)&&(jm(l=(o=n>=(l=i.getChildrenSize()))?i.getChildAtIndex(l-1):i.getChildAtIndex(n))&&(n=0,o&&(n=l.getTextContentSize()),t.set(l.__key,n,"text"),r.set(l.__key,n,"text")));else{if(jh(i)){let r=i.getChildrenSize();jm(n=(e=n>=r)?i.getChildAtIndex(r-1):i.getChildAtIndex(n))&&(i=0,e&&(i=n.getTextContentSize()),t.set(n.__key,i,"text"))}jh(l)&&(jm(o=(t=o>=(n=l.getChildrenSize()))?l.getChildAtIndex(n-1):l.getChildAtIndex(o))&&(l=0,t&&(l=o.getTextContentSize()),r.set(o.__key,l,"text")))}}function vh(e,t,n,r,o){let i=null,l=0,a=null;null!==r?(i=r.__key,jm(r)?(l=r.getTextContentSize(),a="text"):jh(r)&&(l=r.getChildrenSize(),a="element")):null!==o&&(i=o.__key,jm(o)?a="text":jh(o)&&(a="element")),null!==i&&null!==a?e.set(i,l,a):(l=t.getIndexWithinParent(),-1===l&&(l=n.getChildrenSize()),e.set(n.__key,l,"element"))}function bh(e,t,n,r,o){"text"===e.type?(e.key=n,t||(e.offset+=o)):e.offset>r.getIndexWithinParent()&&--e.offset}function yh(e,t,n){let r=[],o=null,i=null;e=e.getChildren();for(let c=0;c<e.length;c++){var l=e[c];ig(l)||Qd(108);var a=l.getChildren();l=0;for(let e of a){for(tg(e)||Qd(109);void 0!==r[c]&&void 0!==r[c][l];)l++;var s=l,u=e;let d={cell:u,startColumn:s,startRow:a=c},f=u.__rowSpan,p=u.__colSpan;for(let e=0;e<f;e++){void 0===r[a+e]&&(r[a+e]=[]);for(let t=0;t<p;t++)r[a+e][s+t]=d}t.is(u)&&(o=d),n.is(u)&&(i=d),l+=e.__colSpan}}return null===o&&Qd(110),null===i&&Qd(111),[r,o,i]}let xh=null,_h=null,Eh=!1,Ch=!1,wh=0,Sh={characterData:!0,childList:!0,subtree:!0};function kh(){return Eh||null!==xh&&xh._readOnly}function Th(){Eh&&Qd(13)}function Nh(){return null===xh&&Qd(15),xh}function Rh(){return null===_h&&Qd(16),_h}function Ah(e,t,n){var r=t.__type;let o=e._nodes.get(r);for(void 0===o&&Qd(30,r),void 0===(e=n.get(r))&&(e=Array.from(o.transforms),n.set(r,e)),n=e.length,r=0;r<n&&(e[r](t),t.isAttached());r++);}function Oh(e,t){var n=e.type,r=t.get(n);if(void 0===r&&Qd(17,n),n=r.klass,e.type!==n.getType()&&Qd(18,n.name),n=n.importJSON(e),e=e.children,jh(n)&&Array.isArray(e))for(r=0;r<e.length;r++){let o=Oh(e[r],t);n.append(o)}return n}function Lh(e,t){let n=xh,r=Eh,o=_h;xh=e,Eh=!0,_h=null;try{return t()}finally{xh=n,Eh=r,_h=o}}function Mh(e,t){let n=e._pendingEditorState,r=e._rootElement,o=e._headless||null===r;if(null!==n){var i=e._editorState,l=i._selection,a=n._selection,s=0!==e._dirtyType,u=xh,c=Eh,d=_h,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!o&&s&&null!==p){_h=e,xh=n,Eh=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect();var h=r,g=o;Ip=Dp=Pp="",zp=2===t,Fp=null,Sp=e,wp=e._config,kp=e._nodes,Tp=Sp._listeners.mutation,Np=h,Rp=g,Ap=i._nodeMap,Op=n._nodeMap,$p=n._readOnly,Lp=new Map(e._keyToDOMMap);let l=new Map;Mp=l,Xp("root",null),Mp=Lp=wp=Op=Ap=Rp=Np=kp=Sp=void 0,m=l}catch(t){if(t instanceof Error&&e._onError(t),Ch)throw t;return Jh(e,null,r,n),Ef(e),e._dirtyType=2,Ch=!0,Mh(e,i),void(Ch=!1)}finally{p.observe(r,Sh),e._updating=f,xh=u,Eh=c,_h=d}}n._readOnly||(n._readOnly=!0);var v=e._dirtyLeaves,b=e._dirtyElements,y=e._normalizedNodes,x=e._updateTags,_=e._deferred;s&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set);var E,C=e._decorators,w=e._pendingDecorators||C,S=n._nodeMap;for(E in w)S.has(E)||(w===C&&(w=Uf(e)),delete w[E]);var k=o?null:yp(e._window);if(e._editable&&null!==k&&(s||null===a||a.dirty)){_h=e,xh=n;try{if(null!==p&&p.disconnect(),s||null===a||a.dirty){let t=e._blockCursorElement;null!==t&&bp(t,e,r);e:{let t=k.anchorNode,n=k.focusNode,o=k.anchorOffset,i=k.focusOffset,s=document.activeElement;if(!(x.has("collaboration")&&s!==r||null!==s&&Af(s)))if(Xm(a)){var T=a.anchor,N=a.focus,R=T.key,A=N.key,O=sp(e,R),L=sp(e,A),M=T.offset,P=N.offset,I=a.format,D=a.style,z=a.isCollapsed(),$=O,F=L,B=!1;if("text"===T.type){$=Pf(O);let e=T.getNode();B=e.getFormat()!==I||e.getStyle()!==D}else Xm(l)&&"text"===l.anchor.type&&(B=!0);if("text"===N.type&&(F=Pf(L)),null!==$&&null!==F){if(z&&(null===l||B||Xm(l)&&(l.format!==I||l.style!==D))){var H=performance.now();fm=[I,D,M,R,H]}if(o===M&&i===P&&t===$&&n===F&&("Range"!==k.type||!z)&&(null!==s&&r.contains(s)||r.focus({preventScroll:!0}),"element"!==T.type))break e;try{k.setBaseAndExtent($,M,F,P)}catch(e){}if(!x.has("skip-scroll-into-view")&&a.isCollapsed()&&null!==r&&r===document.activeElement){let t=a instanceof eh&&"element"===a.anchor.type?$.childNodes[M]||null:0<k.rangeCount?k.getRangeAt(0):null;if(null!==t){let n;if(t instanceof Text){let e=document.createRange();e.selectNode(t),n=e.getBoundingClientRect()}else n=t.getBoundingClientRect();let o=r.ownerDocument,i=o.defaultView;if(null!==i)for(var j,W,{top:K,bottom:U}=n,G=r;null!==G;){let t=G===o.body;if(t)j=0,W=dp(e).innerHeight;else{let e=G.getBoundingClientRect();j=e.top,W=e.bottom}let n=0;if(K<j?n=-(j-K):U>W&&(n=U-W),0!==n)if(t)i.scrollBy(0,n);else{let e=G.scrollTop;G.scrollTop+=n;let t=G.scrollTop-e;K-=t,U-=t}if(t)break;G=up(G)}}}sm=!0}}else null!==l&&Of(e,t,n)&&k.removeAllRanges()}}e:{let t=e._blockCursorElement;if(Xm(a)&&a.isCollapsed()&&"element"===a.anchor.type&&r.contains(document.activeElement)){let n=a.anchor,o=n.getNode(),i=n.offset,l=o.getChildrenSize(),s=!1,u=null;if(i===l){vp(o.getChildAtIndex(i-1))&&(s=!0)}else{let t=o.getChildAtIndex(i);if(vp(t)){let n=t.getPreviousSibling();(null===n||vp(n))&&(s=!0,u=e.getElementByKey(t.__key))}}if(s){let n=e.getElementByKey(o.__key);if(null===t){let n=e._config.theme,r=document.createElement("div");r.contentEditable="false",r.setAttribute("data-lexical-cursor","true");let o=n.blockCursor;if(void 0!==o){if("string"==typeof o){let e=o.split(" ");o=n.blockCursor=e}void 0!==o&&r.classList.add(...o)}e._blockCursorElement=t=r}r.style.caretColor="transparent",null===u?n.appendChild(t):n.insertBefore(t,u);break e}}null!==t&&bp(t,e,r)}null!==p&&p.observe(r,Sh)}finally{_h=d,xh=u}}if(null!==m){var Y=m;let t=Array.from(e._listeners.mutation),n=t.length;for(let e=0;e<n;e++){let[n,r]=t[e],o=Y.get(r);void 0!==o&&n(o,{dirtyLeaves:v,updateTags:x})}}Xm(a)||null===a||null!==l&&l.is(a)||e.dispatchCommand(md,void 0);var V=e._pendingDecorators;null!==V&&(e._decorators=V,e._pendingDecorators=null,Ph("decorator",e,!0,V));var Q=Gf(t||i),q=Gf(n);if(Q!==q&&Ph("textcontent",e,!0,q),Ph("update",e,!0,{dirtyElements:b,dirtyLeaves:v,editorState:n,normalizedNodes:y,prevEditorState:t||i,tags:x}),e._deferred=[],0!==_.length){let t=e._updating;e._updating=!0;try{for(let e=0;e<_.length;e++)_[e]()}finally{e._updating=t}}var X=e._updates;if(0!==X.length){let t=X.shift();if(t){let[n,r]=t;zh(e,n,r)}}}}function Ph(e,t,n,...r){let o=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=o}}function Ih(e,t,n){if(!1===e._updating||_h!==e){let r=!1;return e.update((()=>{r=Ih(e,t,n)})),r}let r=Xf(e);for(let i=4;0<=i;i--)for(let l=0;l<r.length;l++){var o=r[l]._commands.get(t);if(void 0!==o&&void 0!==(o=o[i])){let t=(o=Array.from(o)).length;for(let r=0;r<t;r++)if(!0===o[r](n,e))return!0}}return!1}function Dh(e,t){let n=e._updates;for(t=t||!1;0!==n.length;){var r=n.shift();if(r){let n,[o,i]=r;void 0!==i&&(r=i.onUpdate,n=i.tag,i.skipTransforms&&(t=!0),r&&e._deferred.push(r),n&&e._updateTags.add(n)),o()}}return t}function zh(e,t,n){let r=e._updateTags;var o,i=o=!1;if(void 0!==n){var l=n.onUpdate;null!=(o=n.tag)&&r.add(o),o=n.skipTransforms||!1,i=n.discrete||!1}l&&e._deferred.push(l),n=e._editorState;let a=!1;(null===(l=e._pendingEditorState)||l._readOnly)&&(l=e._pendingEditorState=new Vh(new Map((l||n)._nodeMap)),a=!0),l._flushSync=i,i=xh;let s=Eh,u=_h,c=e._updating;xh=l,Eh=!1,e._updating=!0,_h=e;try{a&&(e._headless?null!=n._selection&&(l._selection=n._selection.clone()):l._selection=function(e){let t=e.getEditorState()._selection,n=yp(e._window);return th(t)||Zm(t)?t.clone():fh(t,n,e)}(e));let r=e._compositionKey;t(),o=Dh(e,o),function(e,t){if(t=t.getEditorState()._selection,Xm(e=e._selection)){var n=e.anchor;let r,o=e.focus;"text"===n.type&&(r=n.getNode(),r.selectionTransform(t,e)),"text"===o.type&&r!==(n=o.getNode())&&n.selectionTransform(t,e)}}(l,e),0!==e._dirtyType&&(o?function(e,t){t=t._dirtyLeaves,e=e._nodeMap;for(let n of t)jm(t=e.get(n))&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Sf(t)}(l,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements;e=e._nodeMap;let o=Hf(),i=new Map;var l=n;let a=l.size;for(var s=r,u=s.size;0<a||0<u;){if(0<a){t._dirtyLeaves=new Set;for(let r of l)jm(l=e.get(r))&&l.isAttached()&&l.isSimpleText()&&!l.isUnmergeable()&&Sf(l),void 0!==l&&void 0!==l&&l.__key!==o&&l.isAttached()&&Ah(t,l,i),n.add(r);if(a=(l=t._dirtyLeaves).size,0<a){wh++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map;for(let n of s)s=n[0],u=n[1],("root"===s||u)&&(void 0!==(l=e.get(s))&&void 0!==l&&l.__key!==o&&l.isAttached()&&Ah(t,l,i),r.set(s,u));a=(l=t._dirtyLeaves).size,u=(s=t._dirtyElements).size,wh++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Dh(e),function(e,t,n,r){e=e._nodeMap,t=t._nodeMap;let o=[];for(let[n]of r){let i=t.get(n);void 0===i||i.isAttached()||(jh(i)&&Cp(i,n,e,t,o,r),e.has(n)||r.delete(n),o.push(n))}for(let e of o)t.delete(e);for(let o of n)void 0===(r=t.get(o))||r.isAttached()||(e.has(o)||n.delete(o),t.delete(o))}(n,l,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(l._flushSync=!0);let i=l._selection;if(Xm(i)){let e=l._nodeMap,t=i.focus.key;void 0!==e.get(i.anchor.key)&&void 0!==e.get(t)||Qd(19)}else th(i)&&0===i._nodes.size&&(l._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=n,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Mh(e)}finally{xh=i,Eh=s,_h=u,e._updating=c,wh=0}0!==e._dirtyType||function(e,t){if(t=t.getEditorState()._selection,e=e._selection,null!==e){if(e.dirty||!e.is(t))return!0}else if(null!==t)return!0;return!1}(l,e)?l._flushSync?(l._flushSync=!1,Mh(e)):a&&Rf((()=>{Mh(e)})):(l._flushSync=!1,a&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function $h(e,t,n){e._updating?e._updates.push([t,n]):zh(e,t,n)}class Fh extends Em{constructor(e){super(e)}decorate(){Qd(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Bh(e){return e instanceof Fh}class Hh extends Em{constructor(e){super(e),this.__last=this.__first=null,this.__indent=this.__format=this.__size=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return pf[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){let e=Rh()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;null!==t;){if(jm(t)&&e.push(t),jh(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;null!==e;){if(jh(e)){let t=e.getFirstChild();if(null!==t){e=t;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;null!==e;){if(jh(e)){let t=e.getLastChild();if(null!==t){e=t;continue}}break}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;return e>=n?jh(e=t[n-1])&&e.getLastDescendant()||e||null:jh(e=t[e])&&e.getFirstDescendant()||e||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:jf(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&Qd(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:jf(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&Qd(96,this.__key),e}getChildAtIndex(e){var t=this.getChildrenSize();let n;if(e<t/2){for(n=this.getFirstChild(),t=0;null!==n&&t<=e;){if(t===e)return n;n=n.getNextSibling(),t++}return null}for(n=this.getLastChild(),--t;null!==n&&t>=e;){if(t===e)return n;n=n.getPreviousSibling(),t--}return null}getTextContent(){let e="",t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let o=t[r];e+=o.getTextContent(),jh(o)&&r!==n-1&&!o.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let o=t[r];e+=o.getTextContentSize(),jh(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return""!==e&&(e=ff[e],!!(this.getFormat()&e))}select(e,t){Th();let n=ph(),r=e,o=t;var i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){if(jm(e=this.getFirstChild())||jh(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)&&(jm(e=this.getLastChild())||jh(e)))return e.select();return void 0===r&&(r=i),void 0===o&&(o=i),i=this.__key,Xm(n)?(n.anchor.set(i,r,"element"),n.focus.set(i,o,"element"),n.dirty=!0,n):ch(i,r,i,o,"element","element")}selectStart(){let e=this.getFirstDescendant();return jh(e)||jm(e)?e.select(0,0):null!==e?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return jh(e)||jm(e)?e.select():null!==e?e.selectNext():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach((e=>e.remove())),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?ff[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let r=n.length,o=this.getChildrenSize(),i=this.getWritable(),l=i.__key;var a=[],s=[];let u=this.getChildAtIndex(e+t),c=null,d=o-t+r;if(0!==e)if(e===o)c=this.getLastChild();else{var f=this.getChildAtIndex(e);null!==f&&(c=f.getPreviousSibling())}if(0<t){var p=null===c?this.getFirstChild():c.getNextSibling();for(f=0;f<t;f++){null===p&&Qd(100);var m=p.getNextSibling(),h=p.__key;$f(p=p.getWritable()),s.push(h),p=m}}for(f=c,m=0;m<r;m++){h=n[m],null!==f&&h.is(f)&&(c=f=f.getPreviousSibling()),(p=h.getWritable()).__parent===l&&d--,$f(p);let e=h.__key;null===f?(i.__first=e,p.__prev=null):((f=f.getWritable()).__next=e,p.__prev=f.__key),h.__key===l&&Qd(76),p.__parent=l,a.push(e),f=h}if(e+t===o?null!==f&&(f.getWritable().__next=null,i.__last=f.__key):null!==u&&(e=u.getWritable(),null!==f?(t=f.getWritable(),e.__prev=f.__key,t.__next=u.__key):e.__prev=null),i.__size=d,s.length&&Xm(e=ph())){s=new Set(s),a=new Set(a);let{anchor:t,focus:n}=e;Wh(t,s,a)&&vh(t,t.getNode(),this,c,u),Wh(n,s,a)&&vh(n,n.getNode(),this,c,u),0!==d||this.canBeEmpty()||pp(this)||this.remove()}return i}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(){return null}canIndent(){return!0}collapseAtStart(){return!1}excludeFromCopy(){return!1}canExtractContents(){return!0}canReplaceWith(){return!0}canInsertAfter(){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(){return!1}extractWithChild(){return!1}}function jh(e){return e instanceof Hh}function Wh(e,t,n){for(e=e.getNode();e;){let r=e.__key;if(t.has(r)&&!n.has(r))return!0;e=e.getParent()}return!1}class Kh extends Hh{static getType(){return"root"}static clone(){return new Kh}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){Qd(51)}getTextContent(){let e=this.__cachedText;return!kh()&&0!==Rh()._dirtyType||null===e?super.getTextContent():e}remove(){Qd(52)}replace(){Qd(53)}insertBefore(){Qd(54)}insertAfter(){Qd(55)}updateDOM(){return!1}append(...e){for(let t=0;t<e.length;t++){let n=e[t];jh(n)||Bh(n)||Qd(56)}return super.append(...e)}static importJSON(e){let t=Yf();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function Uh(e){return e instanceof Kh}function Gh(){return new Vh(new Map([["root",new Kh]]))}function Yh(e){let t=e.exportJSON();var n=e.constructor;t.type!==n.getType()&&Qd(130,n.name);let r=t.children;if(jh(e))for(Array.isArray(r)||Qd(59,n.name),e=e.getChildren(),n=0;n<e.length;n++){let t=Yh(e[n]);r.push(t)}return t}class Vh{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._readOnly=this._flushSync=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e){return Lh(this,e)}clone(e){return(e=new Vh(this._nodeMap,void 0===e?this._selection:e))._readOnly=!0,e}toJSON(){return Lh(this,(()=>({root:Yh(Yf())})))}}class Qh extends Hh{static getType(){return"paragraph"}static clone(e){return new Qh(e.__key)}createDOM(e){let t=document.createElement("p");return void 0!==(e=np(e.theme,"paragraph"))&&t.classList.add(...e),t}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:qh,priority:0})}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t),0<(t=this.getIndent())&&(e.style.textIndent=20*t+"px")}return{element:e}}static importJSON(e){let t=Xh();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(e,t){e=Xh();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.getChildren();if(0===e.length||jm(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 qh(e){let t=Xh();return e.style&&(t.setFormat(e.style.textAlign),0<(e=parseInt(e.style.textIndent,10)/20)&&t.setIndent(e)),{node:t}}function Xh(){return hp(new Qh)}function Jh(e,t,n,r){let o=e._keyToDOMMap;o.clear(),e._editorState=Gh(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null,null!==(r=e._observer)&&(r.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}class Zh{constructor(e,t,n,r,o,i,l){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Jf(),this._onError=o,this._htmlConversions=i,this._editable=l,this._headless=null!==t&&t._headless,this._blockCursorElement=this._window=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&Qd(35);let r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=r.get(e);void 0===o&&Qd(36,String(e));let i=o[n];return i.add(t),()=>{i.delete(t),o.every((e=>0===e.size))&&r.delete(e)}}registerMutationListener(e,t){void 0===this._nodes.get(e.getType())&&Qd(37,e.name);let n=this._listeners.mutation;return n.set(t,e),()=>{n.delete(t)}}registerNodeTransformToKlass(e,t){var n=e.getType();return void 0===(n=this._nodes.get(n))&&Qd(37,e.name),n.transforms.add(t),n}registerNodeTransform(e,t){var n=this.registerNodeTransformToKlass(e,t);let r=[n];return null!=(n=n.replaceWithKlass)&&(n=this.registerNodeTransformToKlass(n,t),r.push(n)),function(e,t){$h(e,(()=>{var e=Nh();if(!e.isEmpty())if("root"===t)Yf().markDirty();else{e=e._nodeMap;for(let[,t]of e)t.markDirty()}}),null===e._pendingEditorState?{tag:"history-merge"}:void 0)}(this,e.getType()),()=>{r.forEach((e=>e.transforms.delete(t)))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return Ih(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let i=np(this._config.theme,"root");var n=this._pendingEditorState||this._editorState;if(this._rootElement=e,Jh(this,t,e,n),null!==t){if(!this._config.disableEvents){0!==am&&(am--,0===am&&t.ownerDocument.removeEventListener("selectionchange",xm));var r=t.__lexicalEditor;if(null!=r){if(null!==r._parentEditor){var o=Xf(r);o=o[o.length-1]._key,ym.get(o)===r&&ym.delete(o)}else ym.delete(r._key);t.__lexicalEditor=null}for(r=bm(t),o=0;o<r.length;o++)r[o]();t.__lexicalEventHandles=[]}null!=i&&t.classList.remove(...i)}null!==e?(n=(n=e.ownerDocument)&&n.defaultView||null,(r=e.style).userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=n,this._dirtyType=2,Ef(this),this._updateTags.add("history-merge"),Mh(this),this._config.disableEvents||function(e,t){0===am&&e.ownerDocument.addEventListener("selectionchange",xm),am++,e.__lexicalEditor=t;let n=bm(e);for(let r=0;r<nm.length;r++){let[o,i]=nm[r],l="function"==typeof i?e=>{!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()&&i(e,t))}:e=>{if(!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()))switch(o){case"cut":return Ih(t,Ud,e);case"copy":return Ih(t,Kd,e);case"paste":return Ih(t,xd,e);case"dragstart":return Ih(t,Hd,e);case"dragover":return Ih(t,jd,e);case"dragend":return Ih(t,Wd,e);case"focus":return Ih(t,Gd,e);case"blur":return Ih(t,Yd,e);case"drop":return Ih(t,Bd,e)}};e.addEventListener(o,l),n.push((()=>{e.removeEventListener(o,l)}))}}(e,this),null!=i&&e.classList.add(...i)):(this._editorState=n,this._window=this._pendingEditorState=null),Ph("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&Qd(38),_f(this);let n=this._pendingEditorState,r=this._updateTags;t=void 0!==t?t.tag:null,null===n||n.isEmpty()||(null!=t&&r.add(t),Mh(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=t&&r.add(t),Mh(this)}parseEditorState(e,t){e="string"==typeof e?JSON.parse(e):e;let n=Gh(),r=xh,o=Eh,i=_h,l=this._dirtyElements,a=this._dirtyLeaves,s=this._cloneNotNeeded,u=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,xh=n,Eh=!1,_h=this;try{Oh(e.root,this._nodes),t&&t(),n._readOnly=!0}catch(e){e instanceof Error&&this._onError(e)}finally{this._dirtyElements=l,this._dirtyLeaves=a,this._cloneNotNeeded=s,this._dirtyType=u,xh=r,Eh=o,_h=i}return n}update(e,t){$h(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),$h(this,(()=>{let e=ph(),n=Yf();null!==e?e.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===t.defaultSelection?n.selectStart():n.selectEnd())}),{onUpdate:()=>{n.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;null!==e&&e.blur(),null!==(e=yp(this._window))&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ph("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class eg extends Hh{constructor(e,t){super(t),this.__colSpan=e,this.__rowSpan=1}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan,rowSpan:this.__rowSpan}}getColSpan(){return this.__colSpan}setColSpan(e){return this.getWritable().__colSpan=e,this}getRowSpan(){return this.__rowSpan}setRowSpan(e){return this.getWritable().__rowSpan=e,this}}function tg(e){return e instanceof eg}class ng extends Hh{}function rg(e){return e instanceof ng}class og extends Hh{}function ig(e){return e instanceof og}pd.$addUpdateTag=function(e){Th(),Rh()._updateTags.add(e)},pd.$applyNodeReplacement=hp,pd.$copyNode=mp,pd.$createLineBreakNode=Sm,pd.$createNodeSelection=dh,pd.$createParagraphNode=Xh,pd.$createRangeSelection=function(){let e=new Um("root",0,"element"),t=new Um("root",0,"element");return new eh(e,t,0,"")},pd.$createTabNode=Km,pd.$createTextNode=Hm,pd.$getAdjacentNode=ip,pd.$getNearestNodeFromDOMNode=Kf,pd.$getNearestRootOrShadowRoot=fp,pd.$getNodeByKey=jf,pd.$getPreviousSelection=mh,pd.$getRoot=Yf,pd.$getSelection=ph,pd.$getTextContent=function(){let e=ph();return null===e?"":e.getTextContent()},pd.$hasAncestor=cp,pd.$hasUpdateTag=function(e){return Rh()._updateTags.has(e)},pd.$insertNodes=function(e,t){let n=ph()||mh();return null===n&&(n=Yf().selectEnd()),n.insertNodes(e,t)},pd.$isBlockElementNode=uh,pd.$isDecoratorNode=Bh,pd.$isElementNode=jh,pd.$isInlineElementOrDecoratorNode=function(e){return jh(e)&&e.isInline()||Bh(e)&&e.isInline()},pd.$isLeafNode=Df,pd.$isLineBreakNode=km,pd.$isNodeSelection=th,pd.$isParagraphNode=function(e){return e instanceof Qh},pd.$isRangeSelection=Xm,pd.$isRootNode=Uh,pd.$isRootOrShadowRoot=pp,pd.$isTabNode=function(e){return e instanceof Wm},pd.$isTextNode=jm,pd.$nodesOfType=function(e){var t=Nh();let n=t._readOnly,r=e.getType();t=t._nodeMap;let o=[];for(let[,i]of t)i instanceof e&&i.__type===r&&(n||i.isAttached())&&o.push(i);return o},pd.$normalizeSelection__EXPERIMENTAL=kf,pd.$parseSerializedNode=function(e){return Oh(e,Rh()._nodes)},pd.$setCompositionKey=Bf,pd.$setSelection=Vf,pd.$splitNode=xp,pd.BLUR_COMMAND=Yd,pd.CAN_REDO_COMMAND={},pd.CAN_UNDO_COMMAND={},pd.CLEAR_EDITOR_COMMAND={},pd.CLEAR_HISTORY_COMMAND={},pd.CLICK_COMMAND=hd,pd.COMMAND_PRIORITY_CRITICAL=4,pd.COMMAND_PRIORITY_EDITOR=0,pd.COMMAND_PRIORITY_HIGH=3,pd.COMMAND_PRIORITY_LOW=1,pd.COMMAND_PRIORITY_NORMAL=2,pd.CONTROLLED_TEXT_INSERTION_COMMAND=yd,pd.COPY_COMMAND=Kd,pd.CUT_COMMAND=Ud,pd.DELETE_CHARACTER_COMMAND=gd,pd.DELETE_LINE_COMMAND=Cd,pd.DELETE_WORD_COMMAND=Ed,pd.DEPRECATED_$computeGridMap=yh,pd.DEPRECATED_$createGridSelection=function(){let e=new Um("root",0,"element"),t=new Um("root",0,"element");return new Jm("root",e,t)},pd.DEPRECATED_$getNodeTriplet=function(e){e instanceof eg||(e instanceof Em?tg(e=_p(e,tg))||Qd(114):tg(e=_p(e.getNode(),tg))||Qd(114));let t=e.getParent();ig(t)||Qd(115);let n=t.getParent();return rg(n)||Qd(116),[e,t,n]},pd.DEPRECATED_$isGridCellNode=tg,pd.DEPRECATED_$isGridNode=rg,pd.DEPRECATED_$isGridRowNode=ig,pd.DEPRECATED_$isGridSelection=Zm,pd.DEPRECATED_GridCellNode=eg,pd.DEPRECATED_GridNode=ng,pd.DEPRECATED_GridRowNode=og,pd.DRAGEND_COMMAND=Wd,pd.DRAGOVER_COMMAND=jd,pd.DRAGSTART_COMMAND=Hd,pd.DROP_COMMAND=Bd,pd.DecoratorNode=Fh,pd.ElementNode=Hh,pd.FOCUS_COMMAND=Gd,pd.FORMAT_ELEMENT_COMMAND={},pd.FORMAT_TEXT_COMMAND=wd,pd.INDENT_CONTENT_COMMAND={},pd.INSERT_LINE_BREAK_COMMAND=vd,pd.INSERT_PARAGRAPH_COMMAND=bd,pd.INSERT_TAB_COMMAND={},pd.KEY_ARROW_DOWN_COMMAND=Md,pd.KEY_ARROW_LEFT_COMMAND=Ad,pd.KEY_ARROW_RIGHT_COMMAND=Nd,pd.KEY_ARROW_UP_COMMAND=Ld,pd.KEY_BACKSPACE_COMMAND=Dd,pd.KEY_DELETE_COMMAND=$d,pd.KEY_DOWN_COMMAND=Td,pd.KEY_ENTER_COMMAND=Pd,pd.KEY_ESCAPE_COMMAND=zd,pd.KEY_MODIFIER_COMMAND=Vd,pd.KEY_SPACE_COMMAND=Id,pd.KEY_TAB_COMMAND=Fd,pd.LineBreakNode=Cm,pd.MOVE_TO_END=Rd,pd.MOVE_TO_START=Od,pd.OUTDENT_CONTENT_COMMAND={},pd.PASTE_COMMAND=xd,pd.ParagraphNode=Qh,pd.REDO_COMMAND=kd,pd.REMOVE_TEXT_COMMAND=_d,pd.RootNode=Kh,pd.SELECTION_CHANGE_COMMAND=md,pd.TabNode=Wm,pd.TextNode=Lm,pd.UNDO_COMMAND=Sd,pd.createCommand=function(){return{}},pd.createEditor=function(e){var t=e||{},n=_h,r=t.theme||{};let o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,l=Gh(),a=t.namespace||(null!==o?o._config.namespace:Jf()),s=t.editorState,u=[Kh,Lm,Cm,Wm,Qh,...t.nodes||[]],c=t.onError;if(t=void 0===t.editable||t.editable,void 0===e&&null!==n)e=n._nodes;else for(e=new Map,n=0;n<u.length;n++){let t=u[n],r=null;var d=null;"function"!=typeof t&&(t=(d=t).replace,r=d.with,d=d.withKlass?d.withKlass:null);let o=t.getType(),i=t.transform(),l=new Set;null!==i&&l.add(i),e.set(o,{klass:t,replace:r,replaceWithKlass:d,transforms:l})}return r=new Zh(l,o,e,{disableEvents:i,namespace:a,theme:r},c||console.error,function(e){let t=new Map,n=new Set;return e.forEach((e=>{if(null!=(e=null!=e.klass.importDOM?e.klass.importDOM.bind(e.klass):null)&&!n.has(e)){n.add(e);var r=e();null!==r&&Object.keys(r).forEach((e=>{let n=t.get(e);void 0===n&&(n=[],t.set(e,n)),n.push(r[e])}))}})),t}(e),t),void 0!==s&&(r._pendingEditorState=s,r._dirtyType=2),r},pd.getNearestEditorFromDOMNode=Lf,pd.isSelectionCapturedInDecoratorInput=Af,pd.isSelectionWithinEditor=Of;var lg=pd,ag=lg;let sg=new Map;function ug(e){for(;null!=e;){if(e.nodeType===Node.TEXT_NODE)return e;e=e.firstChild}return null}function cg(e){let t=e.parentNode;if(null==t)throw Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function dg(e){let t={};e=e.split(";");for(let n of e)if(""!==n){let[e,r]=n.split(/:([^]+)/);t[e.trim()]=r.trim()}return t}function fg(e){let t=sg.get(e);return void 0===t&&(t=dg(e),sg.set(e,t)),t}function pg(e,t){var n=fg("getStyle"in e?e.getStyle():e.style);t=Object.entries(t).reduce(((e,[t,n])=>(null===n?delete e[t]:e[t]=n,e)),{...n}),n=function(e){let t="";for(let n in e)n&&(t+=`${n}: ${e[n]};`);return t}(t),e.setStyle(n),sg.set(n,t)}function mg(e){for(;null!==e&&!ag.$isRootOrShadowRoot(e);){let t=e.getLatest(),n=e.getParent();0===t.getChildrenSize()&&e.remove(!0),e=n}}function hg(e,t,n,r,o=null){if(0!==t.length){var i=t[0],l=new Map,a=[];(i=ag.$isElementNode(i)?i:i.getParentOrThrow()).isInline()&&(i=i.getParentOrThrow());for(var s=!1;null!==i;){var u=i.getPreviousSibling();if(null!==u){i=u,s=!0;break}if(i=i.getParentOrThrow(),ag.$isRootOrShadowRoot(i))break}u=new Set;for(var c=0;c<n;c++){var d=t[c];ag.$isElementNode(d)&&0===d.getChildrenSize()&&u.add(d.getKey())}var f=new Set;for(c=0;c<n;c++){var p=(d=t[c]).getParent();if(null!==p&&p.isInline()&&(p=p.getParent()),null!==p&&ag.$isLeafNode(d)&&!f.has(d.getKey())){if(d=p.getKey(),void 0===l.get(d)){let e=r();e.setFormat(p.getFormatType()),e.setIndent(p.getIndent()),a.push(e),l.set(d,e),p.getChildren().forEach((t=>{e.append(t),f.add(t.getKey()),ag.$isElementNode(t)&&t.getChildrenKeys().forEach((e=>f.add(e)))})),mg(p)}}else u.has(d.getKey())&&((p=r()).setFormat(d.getFormatType()),p.setIndent(d.getIndent()),a.push(p),d.remove(!0))}if(null!==o)for(t=0;t<a.length;t++)o.append(a[t]);if(t=null,ag.$isRootOrShadowRoot(i))if(s)if(null!==o)i.insertAfter(o);else for(o=a.length-1;0<=o;o--)i.insertAfter(a[o]);else if(s=i.getFirstChild(),ag.$isElementNode(s)&&(i=s),null===s)if(o)i.append(o);else for(o=0;o<a.length;o++)s=a[o],i.append(s),t=s;else if(null!==o)s.insertBefore(o);else for(i=0;i<a.length;i++)o=a[i],s.insertBefore(o),t=o;else if(o)i.insertAfter(o);else for(o=a.length-1;0<=o;o--)s=a[o],i.insertAfter(s),t=s;a=ag.$getPreviousSelection(),ag.$isRangeSelection(a)&&a.anchor.getNode().isAttached()&&a.focus.getNode().isAttached()?ag.$setSelection(a.clone()):null!==t?t.selectEnd():e.dirty=!0}}function gg(e,t,n,r){e.modify(t?"extend":"move",n,r)}function vg(e){return e=e.anchor.getNode(),"rtl"===(ag.$isRootNode(e)?e:e.getParentOrThrow()).getDirection()}fd.$addNodeStyle=function(e){let t=dg(e=e.getStyle());sg.set(e,t)},fd.$cloneWithProperties=function(e){let t=(e=e.getLatest()).constructor.clone(e);return t.__parent=e.__parent,t.__next=e.__next,t.__prev=e.__prev,ag.$isElementNode(e)&&ag.$isElementNode(t)?(t.__first=e.__first,t.__last=e.__last,t.__size=e.__size,t.__format=e.__format,t.__indent=e.__indent,t.__dir=e.__dir,t):(ag.$isTextNode(e)&&ag.$isTextNode(t)&&(t.__format=e.__format,t.__style=e.__style,t.__mode=e.__mode,t.__detail=e.__detail),t)},fd.$getSelectionStyleValueForProperty=function(e,t,n=""){let r=null,o=e.getNodes();var i=e.anchor,l=e.focus,a=e.isBackward();let s=a?l.offset:i.offset;if(i=a?l.getNode():i.getNode(),""!==e.style&&(null!==(e=fg(e.style))&&t in e))return e[t];for(e=0;e<o.length;e++){var u=o[e];if((0===e||0!==s||!u.is(i))&&ag.$isTextNode(u))if(l=t,a=n,l=null!==(u=fg(u=u.getStyle()))&&u[l]||a,null===r)r=l;else if(r!==l){r="";break}}return null===r?n:r},fd.$isAtNodeEnd=function(e){return"text"===e.type?e.offset===e.getNode().getTextContentSize():e.offset===e.getNode().getChildrenSize()},fd.$isParentElementRTL=vg,fd.$moveCaretSelection=gg,fd.$moveCharacter=function(e,t,n){let r=vg(e);gg(e,t,n?!r:r,"character")},fd.$patchStyleText=function(e,t){var n=e.getNodes();let r=n.length-1,o=n[0],i=n[r];if(e.isCollapsed())pg(e,t);else{var l=e.anchor,a=e.focus,s=o.getTextContent().length,u=a.offset,c=l.offset,d=l.isBefore(a),f=d?c:u;e=d?u:c;var p=d?l.type:a.type,m=d?a.type:l.type;if(l=d?a.key:l.key,ag.$isTextNode(o)&&f===s&&(a=o.getNextSibling(),ag.$isTextNode(a)&&(f=c=0,o=a)),1===n.length)ag.$isTextNode(o)&&((f="element"===p?0:c>u?u:c)!==(e="element"===m?s:c>u?c:u)&&(0===f&&e===s?(pg(o,t),o.select(f,e)):(n=o.splitText(f,e),pg(n=0===f?n[0]:n[1],t),n.select(0,e-f))));else for(ag.$isTextNode(o)&&f<o.getTextContentSize()&&(0!==f&&(o=o.splitText(f)[1]),pg(o,t)),ag.$isTextNode(i)&&(f=i.getTextContent().length,i.__key!==l&&0!==e&&(e=f),e!==f&&([i]=i.splitText(e)),0!==e&&pg(i,t)),e=1;e<r;e++)s=(f=n[e]).getKey(),ag.$isTextNode(f)&&s!==o.getKey()&&s!==i.getKey()&&!f.isToken()&&pg(f,t)}},fd.$selectAll=function(e){let t=e.anchor;e=e.focus;var n=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();let r=n.getFirstDescendant();n=n.getLastDescendant();let o="element",i="element",l=0;ag.$isTextNode(r)?o="text":ag.$isElementNode(r)||null===r||(r=r.getParentOrThrow()),ag.$isTextNode(n)?(i="text",l=n.getTextContentSize()):ag.$isElementNode(n)||null===n||(n=n.getParentOrThrow()),r&&n&&(t.set(r.getKey(),0,o),e.set(n.getKey(),l,i))},fd.$setBlocksType=function(e,t){if("root"===e.anchor.key){t=t();var n=ag.$getRoot();(e=n.getFirstChild())?e.replace(t,!0):n.append(t)}else for(n=e.getNodes(),e=e.anchor.getNode().getParentOrThrow(),-1===n.indexOf(e)&&n.push(e),e.isInline()&&(e=e.getParentOrThrow(),-1===n.indexOf(e)&&n.push(e)),e=0;e<n.length;e++){let i=n[e];var r=i;if(!ag.$isElementNode(r)||ag.$isRootOrShadowRoot(r))r=!1;else{var o=r.getFirstChild();o=null===o||ag.$isTextNode(o)||o.isInline(),r=!r.isInline()&&!1!==r.canBeEmpty()&&o}r&&((r=t()).setFormat(i.getFormatType()),r.setIndent(i.getIndent()),i.replace(r,!0))}},fd.$shouldOverrideDefaultCharacterSelection=function(e,t){return e=ag.$getAdjacentNode(e.focus,t),ag.$isDecoratorNode(e)&&!e.isIsolated()||ag.$isElementNode(e)&&!e.isInline()&&!e.canBeEmpty()},fd.$sliceSelectedTextNodeContent=function(e,t){if(t.isSelected()&&!t.isSegmented()&&!t.isToken()&&(ag.$isRangeSelection(e)||ag.DEPRECATED_$isGridSelection(e))){var n=e.anchor.getNode(),r=e.focus.getNode(),o=t.is(n),i=t.is(r);if(o||i){o=e.isBackward();let l,[a,s]=e.getCharacterOffsets();e=n.is(r),i=t.is(o?r:n),r=t.is(o?n:r),n=0,e?(n=a>s?s:a,l=a>s?a:s):i?(n=o?s:a,l=void 0):r&&(n=0,l=o=o?a:s),t.__text=t.__text.slice(n,l)}}return t},fd.$wrapNodes=function(e,t,n=null){var r=e.getNodes();let o=r.length;var i=e.anchor;if(0===o||1===o&&"element"===i.type&&0===i.getNode().getChildrenSize()){r=(e="text"===i.type?i.getNode().getParentOrThrow():i.getNode()).getChildren();let o=t();o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),r.forEach((e=>o.append(e))),n&&(o=n.append(o)),e.replace(o)}else{i=null;var l=[];for(let a=0;a<o;a++){let o=r[a];ag.$isRootOrShadowRoot(o)?(hg(e,l,l.length,t,n),l=[],i=o):null===i||null!==i&&ag.$hasAncestor(o,i)?l.push(o):(hg(e,l,l.length,t,n),l=[o])}hg(e,l,l.length,t,n)}},fd.createDOMRange=function(e,t,n,r,o){let i=t.getKey(),l=r.getKey(),a=document.createRange(),s=e.getElementByKey(i);if(e=e.getElementByKey(l),ag.$isTextNode(t)&&(s=ug(s)),ag.$isTextNode(r)&&(e=ug(e)),void 0===t||void 0===r||null===s||null===e)return null;"BR"===s.nodeName&&([s,n]=cg(s)),"BR"===e.nodeName&&([e,o]=cg(e)),t=s.firstChild,s===e&&null!=t&&"BR"===t.nodeName&&0===n&&0===o&&(o=1);try{a.setStart(s,n),a.setEnd(e,o)}catch(e){return null}return!a.collapsed||n===o&&i===l||(a.setStart(e,o),a.setEnd(s,n)),a},fd.createRectsFromDOMRange=function(e,t){var n=e.getRootElement();if(null===n)return[];e=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);let r,o=(t=Array.from(t.getClientRects())).length;t.sort(((e,t)=>{let n=e.top-t.top;return 3>=Math.abs(n)?e.left-t.left:n}));for(let i=0;i<o;i++){let l=t[i],a=l.width+n===e.width;r&&r.top<=l.top&&r.top+r.height>l.top&&r.left+r.width>l.left||a?(t.splice(i--,1),o--):r=l}return t},fd.getStyleObjectFromCSS=fg,fd.trimTextContentFromAnchor=function(e,t,n){let r=t.getNode();if(ag.$isElementNode(r)){var o=r.getDescendantByIndex(t.offset);null!==o&&(r=o)}for(;0<n&&null!==r;){var i=r.getPreviousSibling(),l=0;if(null===i){for(var a=(o=r.getParentOrThrow()).getPreviousSibling();null===a;){if(null===(o=o.getParent())){i=null;break}a=o.getPreviousSibling()}null!==o&&(l=o.isInline()?0:2,i=ag.$isElementNode(a)?a.getLastDescendant():a)}if(""===(a=r.getTextContent())&&ag.$isElementNode(r)&&!r.isInline()&&(a="\n\n"),o=r.getTextContentSize(),!ag.$isTextNode(r)||n>=o)a=r.getParent(),r.remove(),null==a||0!==a.getChildrenSize()||ag.$isRootNode(a)||a.remove(),n-=o+l,r=i;else{let s=r.getKey();l=e.getEditorState().read((()=>{const e=ag.$getNodeByKey(s);return ag.$isTextNode(e)&&e.isSimpleText()?e.getTextContent():null})),i=o-n;let u=a.slice(0,i);null!==l&&l!==a?(n=ag.$getPreviousSelection(),o=r,r.isSimpleText()?r.setTextContent(l):(o=ag.$createTextNode(l),r.replace(o)),ag.$isRangeSelection(n)&&n.isCollapsed()&&(n=n.anchor.offset,o.select(n,n))):r.isSimpleText()?(l=t.key===s,(a=t.offset)<n&&(a=o),n=l?a-n:0,o=l?a:i,l&&0===n?([n]=r.splitText(n,o),n.remove()):([,n]=r.splitText(n,o),n.remove())):(n=ag.$createTextNode(u),r.replace(n)),n=0}}};var bg=fd,yg=bg,xg=lg;function _g(e,t){for(let n of t)if(e.type.startsWith(n))return!0;return!1}function Eg(e,t){for(;e!==xg.$getRoot()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function Cg(e){return 1===e.nodeType}dd.$splitNode=xg.$splitNode,dd.$dfs=function(e,t){let n=[];e=(e||xg.$getRoot()).getLatest(),t=t||(xg.$isElementNode(e)?e.getLastDescendant():e);for(var r=e,o=0;null!==(r=r.getParent());)o++;for(r=o;null!==e&&!e.is(t);)if(n.push({depth:r,node:e}),xg.$isElementNode(e)&&0<e.getChildrenSize())e=e.getFirstChild(),r++;else for(o=null;null===o&&null!==e;)null===(o=e.getNextSibling())?(e=e.getParent(),r--):e=o;return null!==e&&e.is(t)&&n.push({depth:r,node:e}),n},dd.$findMatchingParent=Eg,dd.$getNearestBlockElementAncestorOrThrow=function(e){let t=Eg(e,(e=>xg.$isElementNode(e)&&!e.isInline()));return xg.$isElementNode(t)||function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(4,e.__key),t},dd.$getNearestNodeOfType=function(e,t){for(;null!=e;){if(e instanceof t)return e;e=e.getParent()}return null},dd.$insertNodeToNearestRoot=function(e){var t=xg.$getSelection()||xg.$getPreviousSelection();if(xg.$isRangeSelection(t)){var{focus:n}=t;if(t=n.getNode(),n=n.offset,xg.$isRootOrShadowRoot(t))null==(n=t.getChildAtIndex(n))?t.append(e):n.insertBefore(e),e.selectNext();else{let r,o;xg.$isTextNode(t)?(r=t.getParentOrThrow(),o=t.getIndexWithinParent(),0<n&&(o+=1,t.splitText(n))):(r=t,o=n),[,t]=xg.$splitNode(r,o),t.insertBefore(e),t.selectStart()}}else xg.$isNodeSelection(t)||xg.DEPRECATED_$isGridSelection(t)?(t=t.getNodes())[t.length-1].getTopLevelElementOrThrow().insertAfter(e):xg.$getRoot().append(e),t=xg.$createParagraphNode(),e.insertAfter(t),t.select();return e.getLatest()},dd.$restoreEditorState=function(e,t){let n=new Map,r=e._pendingEditorState;for(let[e,r]of t._nodeMap){let t=yg.$cloneWithProperties(r);xg.$isTextNode(t)&&(t.__text=r.__text),n.set(e,t)}r&&(r._nodeMap=n),e._dirtyType=2,e=t._selection,xg.$setSelection(null===e?null:e.clone())},dd.$wrapNodeInElement=function(e,t){return t=t(),e.replace(t),t.append(e),t},dd.addClassNamesToElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&(t=t.split(" ").filter((e=>""!==e)),e.classList.add(...t))}))},dd.isHTMLAnchorElement=function(e){return Cg(e)&&"A"===e.tagName},dd.isHTMLElement=Cg,dd.isMimeType=_g,dd.mediaFileReader=function(e,t){let n=e[Symbol.iterator]();return new Promise(((e,r)=>{let o=[],i=()=>{const{done:l,value:a}=n.next();if(l)return e(o);const s=new FileReader;s.addEventListener("error",r),s.addEventListener("load",(()=>{const e=s.result;"string"==typeof e&&o.push({file:a,result:e}),i()})),_g(a,t)?s.readAsDataURL(a):i()};i()}))},dd.mergeRegister=function(...e){return()=>{e.forEach((e=>e()))}},dd.objectKlassEquals=function(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name},dd.registerNestedElementResolver=function(e,t,n,r){return e.registerNodeTransform(t,(e=>{e:{for(var o=e.getChildren(),i=0;i<o.length;i++)if(o[i]instanceof t){o=null;break e}for(o=e;null!==o;)if(i=o,(o=o.getParent())instanceof t){o={child:i,parent:o};break e}o=null}if(null!==o){const{child:t,parent:l}=o;if(t.is(e)){if(r(l,e),o=(e=t.getNextSiblings()).length,l.insertAfter(t),0!==o){i=n(l),t.insertAfter(i);for(let t=0;t<o;t++)i.append(e[t])}l.canBeEmpty()||0!==l.getChildrenSize()||l.remove()}}}))},dd.removeClassNamesFromElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&e.classList.remove(...t.split(" "))}))};var wg=dd,Sg=wg,kg=lg;let Tg=new Set(["http:","https:","mailto:","sms:","tel:"]),Ng=class e extends kg.ElementNode{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);let{target:r=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=o,this.__title=i}createDOM(e){let t=document.createElement("a");return t.href=this.sanitizeUrl(this.__url),null!==this.__target&&(t.target=this.__target),null!==this.__rel&&(t.rel=this.__rel),null!==this.__title&&(t.title=this.__title),Sg.addClassNamesToElement(t,e.theme.link),t}updateDOM(e,t){let n=this.__url,r=this.__target,o=this.__rel,i=this.__title;return n!==e.__url&&(t.href=n),r!==e.__target&&(r?t.target=r:t.removeAttribute("target")),o!==e.__rel&&(o?t.rel=o:t.removeAttribute("rel")),i!==e.__title&&(i?t.title=i:t.removeAttribute("title")),!1}static importDOM(){return{a:()=>({conversion:Rg,priority:1})}}static importJSON(e){let t=Ag(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}sanitizeUrl(e){try{let t=new URL(e);if(!Tg.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,t=!0){return e=this.getParentOrThrow().insertNewAfter(e,t),kg.$isElementNode(e)?(t=Ag(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),e.append(t),t):null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t){if(!kg.$isRangeSelection(t))return!1;e=t.anchor.getNode();let n=t.focus.getNode();return this.isParentOf(e)&&this.isParentOf(n)&&0<t.getTextContent().length}};function Rg(e){let t=null;if(Sg.isHTMLAnchorElement(e)){let n=e.textContent;null!==n&&""!==n&&(t=Ag(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Ag(e,t){return kg.$applyNodeReplacement(new Ng(e,t))}function Og(e){return e instanceof Ng}let Lg=class e extends Ng{static getType(){return"autolink"}static clone(t){return new e(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}static importJSON(e){let t=Mg(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e,t=!0){return e=this.getParentOrThrow().insertNewAfter(e,t),kg.$isElementNode(e)?(t=Mg(this.__url,{rel:this._rel,target:this.__target,title:this.__title}),e.append(t),t):null}};function Mg(e,t){return kg.$applyNodeReplacement(new Lg(e,t))}let Pg=kg.createCommand("TOGGLE_LINK_COMMAND");cd.$createAutoLinkNode=Mg,cd.$createLinkNode=Ag,cd.$isAutoLinkNode=function(e){return e instanceof Lg},cd.$isLinkNode=Og,cd.AutoLinkNode=Lg,cd.LinkNode=Ng,cd.TOGGLE_LINK_COMMAND=Pg,cd.toggleLink=function(e,t={}){let{target:n,title:r}=t,o=void 0===t.rel?"noreferrer":t.rel;if(t=kg.$getSelection(),kg.$isRangeSelection(t))if(t=t.extract(),null===e)t.forEach((e=>{if(Og(e=e.getParent())){let t=e.getChildren();for(let n=0;n<t.length;n++)e.insertBefore(t[n]);e.remove()}}));else{if(1===t.length){var i=t[0];if(i=Og(i)?i:function(e,t){for(;null!==e&&null!==(e=e.getParent())&&!t(e););return e}(i,Og),null!==i)return i.setURL(e),void 0!==n&&i.setTarget(n),null!==o&&i.setRel(o),void(void 0!==r&&i.setTitle(r))}let l=null,a=null;t.forEach((t=>{var i=t.getParent();if(i!==a&&null!==i&&(!kg.$isElementNode(t)||t.isInline()))if(Og(i))a=i,i.setURL(e),void 0!==n&&i.setTarget(n),null!==o&&a.setRel(o),void 0!==r&&a.setTitle(r);else if(i.is(l)||(l=i,a=Ag(e,{rel:o,target:n}),Og(i)?null===t.getPreviousSibling()?i.insertBefore(a):i.insertAfter(a):t.insertBefore(a)),Og(t)){if(!t.is(a)){if(null!==a){i=t.getChildren();for(let e=0;e<i.length;e++)a.append(i[e])}t.remove()}}else null!==a&&a.append(t)}))}};var Ig=cd,Dg={},zg=lg,$g=wg;function Fg(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Bg(e){let t=1;for(e=e.getParent();null!=e;){if(nv(e)){if(uv(e=e.getParent())){t++,e=e.getParent();continue}Fg(40)}break}return t}function Hg(e){uv(e=e.getParent())||Fg(40);let t=e;for(;null!==t;)t=t.getParent(),uv(t)&&(e=t);return e}function jg(e){let t=[];e=e.getChildren().filter(nv);for(let n=0;n<e.length;n++){let r=e[n],o=r.getFirstChild();uv(o)?t=t.concat(jg(o)):t.push(r)}return t}function Wg(e){return nv(e)&&uv(e.getFirstChild())}function Kg(e){return tv().append(e)}function Ug(e,t){return nv(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function Gg(e,t){e.splice(e.getChildrenSize(),0,t)}function Yg(e,t){if(uv(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),o=tv();return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),Gg(o,e.getChildren()),uv(n)&&t===n.getListType()?(n.append(o),e.remove(),uv(r)&&t===r.getListType()&&(Gg(n,r.getChildren()),r.remove()),n):uv(r)&&t===r.getListType()?(r.getFirstChildOrThrow().insertBefore(o),e.remove(),r):((t=sv(t)).append(o),e.replace(t),Qg(t),t)}function Vg(e,t){var n=e.getLastChild();let r=t.getFirstChild();n&&r&&Wg(n)&&Wg(r)&&(Vg(n.getFirstChild(),r.getFirstChild()),r.remove()),0<(n=t.getChildren()).length&&(e.append(...n),Qg(e)),t.remove()}function Qg(e,t){if(void 0!==(e=t||e.getChildren()))for(t=0;t<e.length;t++){let i=e[t];if(nv(i)){let e=i.getValue();var n=i,r=n.getParent(),o=1;for(null!=r&&(uv(r)?o=r.getStart():Fg(44)),n=n.getPreviousSiblings(),r=0;r<n.length;r++){let e=n[r];nv(e)&&!uv(e.getFirstChild())&&o++}e!==o&&i.setValue(o)}}}function qg(e){if(!Wg(e)){var t=e.getParent(),n=t?t.getParent():void 0,r=n?n.getParent():void 0;if(uv(r)&&nv(n)&&uv(t)){var o=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(o))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{var l=t.getListType();o=tv();let r=sv(l);o.append(r),e.getPreviousSiblings().forEach((e=>r.append(e))),i=tv(),l=sv(l),i.append(l),Gg(l,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(i),n.replace(e)}Qg(t),Qg(r)}}}let Xg=class e extends zg.ElementNode{static getType(){return"listitem"}static clone(t){return new e(t.__value,t.__checked,t.__key)}constructor(e,t,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}createDOM(e){let t=document.createElement("li"),n=this.getParent();return uv(n)&&"check"===n.getListType()&&Zg(t,this,null),t.value=this.__value,Jg(t,e.theme,this),t}updateDOM(e,t,n){let r=this.getParent();return uv(r)&&"check"===r.getListType()&&Zg(t,this,e),t.value=this.__value,Jg(t,n.theme,this),!1}static transform(){return e=>{let t=e.getParent();uv(t)&&(Qg(t),"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0))}}static importDOM(){return{li:()=>({conversion:ev,priority:0})}}static importJSON(e){let t=tv();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if(zg.$isElementNode(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(nv(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!uv(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=sv(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&this.getChildren().forEach((t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){var n=this.getParentOrThrow();uv(n)||Fg(39);var r=this.getNextSiblings();if(nv(e))return t=super.insertAfter(e,t),uv(e=e.getParentOrThrow())&&Qg(e),t;if(uv(e)){for(n=e,r=(e=e.getChildren()).length-1;0<=r;r--)n=e[r],this.insertAfter(n,t);return n}if(n.insertAfter(e,t),0!==r.length){let o=sv(n.getListType());r.forEach((e=>o.append(e))),e.insertAfter(o,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&Wg(t)&&Wg(n)?(Vg(t.getFirstChild(),n.getFirstChild()),n.remove()):n&&(uv(e=n.getParent())&&Qg(e))}insertNewAfter(e,t=!0){return e=tv(null==this.__checked&&void 0),this.insertAfter(e,t),e}collapseAtStart(e){let t=zg.$createParagraphNode();this.getChildren().forEach((e=>t.append(e)));var n=this.getParentOrThrow(),r=n.getParentOrThrow();let o=nv(r);return 1===n.getChildrenSize()?o?(n.remove(),r.select()):(n.insertBefore(t),n.remove(),n=e.anchor,e=e.focus,r=t.getKey(),"element"===n.type&&n.getNode().is(this)&&n.set(r,n.offset,"element"),"element"===e.type&&e.getNode().is(this)&&e.set(r,e.offset,"element")):(n.insertBefore(t),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(null===e)return this.getLatest().__indent;e=e.getParentOrThrow();let t=0;for(;nv(e);)e=e.getParentOrThrow().getParentOrThrow(),t++;return t}setIndent(e){"number"==typeof e&&-1<e||Fg(117);let t=this.getIndent();for(;t!==e;)if(t<e){e:{var n=new Set;if(Wg(this)||n.has(this.getKey()))break e;let e=this.getParent();var r=this.getNextSibling(),o=this.getPreviousSibling();if(Wg(r)&&Wg(o)){if(uv(o=o.getFirstChild())){o.append(this);var i=r.getFirstChild();uv(i)&&(Gg(o,i=i.getChildren()),r.remove(),n.add(r.getKey())),Qg(o)}}else Wg(r)?uv(r=r.getFirstChild())&&(null!==(n=r.getFirstChild())&&n.insertBefore(this),Qg(r)):Wg(o)?uv(r=o.getFirstChild())&&(r.append(this),Qg(r)):uv(e)&&(n=tv(),i=sv(e.getListType()),n.append(i),i.append(this),o?o.insertAfter(n):r?r.insertBefore(n):e.append(n),Qg(i));uv(e)&&Qg(e)}t++}else qg(this),t--;return this}insertBefore(e){if(nv(e)){let e=this.getParentOrThrow();if(uv(e)){Qg(e,this.getNextSiblings())}}return super.insertBefore(e)}canInsertAfter(e){return nv(e)}canReplaceWith(e){return nv(e)}canMergeWith(e){return zg.$isParagraphNode(e)||nv(e)}extractWithChild(e,t){if(!zg.$isRangeSelection(t))return!1;e=t.anchor.getNode();let n=t.focus.getNode();return this.isParentOf(e)&&this.isParentOf(n)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return sv("bullet")}};function Jg(e,t,n){let r=[],o=[];var i=(t=t.list)?t.listitem:void 0;if(t&&t.nested)var l=t.nested.listitem;if(void 0!==i&&(i=i.split(" "),r.push(...i)),t){i=uv(i=n.getParent())&&"check"===i.getListType();let e=n.getChecked();i&&!e||o.push(t.listitemUnchecked),i&&e||o.push(t.listitemChecked),i&&r.push(e?t.listitemChecked:t.listitemUnchecked)}void 0!==l&&(l=l.split(" "),n.getChildren().some((e=>uv(e)))?r.push(...l):o.push(...l)),0<o.length&&$g.removeClassNamesFromElement(e,...o),0<r.length&&$g.addClassNamesToElement(e,...r)}function Zg(e,t,n){uv(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}function ev(e){return{node:tv(e=$g.isHTMLElement(e)&&"true"===e.getAttribute("aria-checked"))}}function tv(e){return zg.$applyNodeReplacement(new Xg(void 0,e))}function nv(e){return e instanceof Xg}let rv=class e extends zg.ElementNode{static getType(){return"list"}static clone(t){return new e(t.__listType||av[t.__tag],t.__start,t.__key)}constructor(e,t,n){super(n),this.__listType=e=av[e]||e,this.__tag="number"===e?"ol":"ul",this.__start=t}getTag(){return this.__tag}setListType(e){let t=this.getWritable();t.__listType=e,t.__tag="number"===e?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e){let t=document.createElement(this.__tag);return 1!==this.__start&&t.setAttribute("start",String(this.__start)),t.__lexicalListType=this.__listType,ov(t,e.theme,this),t}updateDOM(e,t,n){return e.__tag!==this.__tag||(ov(t,n.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:lv,priority:0}),ul:()=>({conversion:lv,priority:0})}}static importJSON(e){let t=sv(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportDOM(e){return({element:e}=super.exportDOM(e)),e&&(1!==this.__start&&e.setAttribute("start",String(this.__start)),"check"===this.__listType&&e.setAttribute("__lexicalListType","check")),{element:e}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let n=0;n<e.length;n++){var t=e[n];if(nv(t))super.append(t);else{let e=tv();uv(t)?e.append(t):zg.$isElementNode(t)?(t=zg.$createTextNode(t.getTextContent()),e.append(t)):e.append(t),super.append(e)}}return Qg(this),this}extractWithChild(e){return nv(e)}};function ov(e,t,n){let r=[],o=[];var i=t.list;if(void 0!==i){let e=i[`${n.__tag}Depth`]||[],a=(t=Bg(n)-1)%e.length;var l=e[a];let s,u=i[n.__tag];if(void 0!==(i=i.nested)&&i.list&&(s=i.list),void 0!==u&&r.push(u),void 0!==l)for(l=l.split(" "),r.push(...l),l=0;l<e.length;l++)l!==a&&o.push(n.__tag+l);void 0!==s&&(n=s.split(" "),1<t?r.push(...n):o.push(...n))}0<o.length&&$g.removeClassNamesFromElement(e,...o),0<r.length&&$g.addClassNamesToElement(e,...r)}function iv(e){let t=[];for(let r=0;r<e.length;r++){var n=e[r];nv(n)?(t.push(n),1<(n=n.getChildren()).length&&n.forEach((e=>{uv(e)&&t.push(Kg(e))}))):t.push(Kg(n))}return t}function lv(e){let t=e.nodeName.toLowerCase(),n=null;return"ol"===t?n=sv("number",e.start):"ul"===t&&(n=$g.isHTMLElement(e)&&"check"===e.getAttribute("__lexicallisttype")?sv("check"):sv("bullet")),{after:iv,node:n}}let av={ol:"number",ul:"bullet"};function sv(e,t=1){return zg.$applyNodeReplacement(new rv(e,t))}function uv(e){return e instanceof rv}let cv=zg.createCommand("INSERT_UNORDERED_LIST_COMMAND"),dv=zg.createCommand("INSERT_ORDERED_LIST_COMMAND"),fv=zg.createCommand("INSERT_CHECK_LIST_COMMAND"),pv=zg.createCommand("REMOVE_LIST_COMMAND");Dg.$createListItemNode=tv,Dg.$createListNode=sv,Dg.$getListDepth=Bg,Dg.$handleListInsertParagraph=function(){var e=zg.$getSelection();if(!zg.$isRangeSelection(e)||!e.isCollapsed())return!1;if(!nv(e=e.anchor.getNode())||""!==e.getTextContent())return!1;var t=Hg(e),n=e.getParent();uv(n)||Fg(40);let r,o=n.getParent();if(zg.$isRootOrShadowRoot(o))r=zg.$createParagraphNode(),t.insertAfter(r);else{if(!nv(o))return!1;r=tv(),o.insertAfter(r)}if(r.select(),0<(t=e.getNextSiblings()).length){let e=sv(n.getListType());zg.$isParagraphNode(r)?r.insertAfter(e):((n=tv()).append(e),r.insertAfter(n)),t.forEach((t=>{t.remove(),e.append(t)}))}return function(e){for(;null==e.getNextSibling()&&null==e.getPreviousSibling();){let t=e.getParent();if(null==t||!nv(e)&&!uv(e))break;e=t}e.remove()}(e),!0},Dg.$isListItemNode=nv,Dg.$isListNode=uv,Dg.INSERT_CHECK_LIST_COMMAND=fv,Dg.INSERT_ORDERED_LIST_COMMAND=dv,Dg.INSERT_UNORDERED_LIST_COMMAND=cv,Dg.ListItemNode=Xg,Dg.ListNode=rv,Dg.REMOVE_LIST_COMMAND=pv,Dg.insertList=function(e,t){e.update((()=>{var e=zg.$getSelection();if(zg.$isRangeSelection(e)||zg.DEPRECATED_$isGridSelection(e)){var n=e.getNodes(),r=(e=e.anchor.getNode()).getParent();if(Ug(e,n))n=sv(t),zg.$isRootOrShadowRoot(r)?(e.replace(n),r=tv(),zg.$isElementNode(e)&&(r.setFormat(e.getFormatType()),r.setIndent(e.getIndent())),n.append(r)):nv(e)&&(Gg(n,(e=e.getParentOrThrow()).getChildren()),e.replace(n));else for(e=new Set,r=0;r<n.length;r++){var o=n[r];if(zg.$isElementNode(o)&&o.isEmpty()&&!e.has(o.getKey()))Yg(o,t);else if(zg.$isLeafNode(o))for(o=o.getParent();null!=o;){let n=o.getKey();if(uv(o)){if(!e.has(n)){var i=sv(t);Gg(i,o.getChildren()),o.replace(i),Qg(i),e.add(n)}break}if(i=o.getParent(),zg.$isRootOrShadowRoot(i)&&!e.has(n)){e.add(n),Yg(o,t);break}o=i}}}}))},Dg.removeList=function(e){e.update((()=>{let e=zg.$getSelection();if(zg.$isRangeSelection(e)){var t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(Ug(r,n))t.add(Hg(r));else for(r=0;r<n.length;r++){var o=n[r];zg.$isLeafNode(o)&&(null!=(o=$g.$getNearestNodeOfType(o,Xg))&&t.add(Hg(o)))}for(let r of t){t=r,n=jg(r);for(let r of n)Gg(n=zg.$createParagraphNode(),r.getChildren()),t.insertAfter(n),t=n,r.__key===e.anchor.key&&e.anchor.set(n.getKey(),0,"element"),r.__key===e.focus.key&&e.focus.set(n.getKey(),0,"element"),r.remove();r.remove()}}}))};var mv=Dg,hv={},gv={},vv=J;let bv=vv.createContext(null);gv.LexicalComposerContext=bv,gv.createLexicalComposerContext=function(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}},gv.useLexicalComposerContext=function(){let e=vv.useContext(bv);return null==e&&function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e};var yv=gv,xv=yv,_v=lg,Ev=J;let Cv="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;var wv=Cv?Ev.useLayoutEffect:Ev.useEffect;let Sv={tag:"history-merge"};hv.LexicalComposer=function({initialConfig:e,children:t}){let n=Ev.useMemo((()=>{const{theme:t,namespace:n,editor__DEPRECATED:r,nodes:o,onError:i,editorState:l}=e,a=xv.createLexicalComposerContext(null,t);let s=r||null;if(null===s){const r=_v.createEditor({editable:e.editable,namespace:n,nodes:o,onError:e=>i(e,r),theme:t});!function(e,t){if(null!==t)if(void 0===t)e.update((()=>{var t=_v.$getRoot();if(t.isEmpty()){let n=_v.$createParagraphNode();t.append(n),t=Cv?document.activeElement:null,(null!==_v.$getSelection()||null!==t&&t===e.getRootElement())&&n.select()}}),Sv);else if(null!==t)switch(typeof t){case"string":let n=e.parseEditorState(t);e.setEditorState(n,Sv);break;case"object":e.setEditorState(t,Sv);break;case"function":e.update((()=>{_v.$getRoot().isEmpty()&&t(e)}),Sv)}}(r,l),s=r}return[s,a]}),[]);return wv((()=>{let t=e.editable,[r]=n;r.setEditable(void 0===t||t)}),[]),Ev.createElement(xv.LexicalComposerContext.Provider,{value:n},t)};var kv=hv,Tv={},Nv={},Rv=wg,Av=lg;function Ov(e,t){let n=Date.now(),r=0;return(o,i,l,a,s,u)=>{let c=Date.now();if(u.has("historic"))return r=0,n=c,2;let d=function(e,t,n,r,o){if(null===e||0===n.size&&0===r.size&&!o)return 0;var i=t._selection,l=e._selection;if(o)return 1;if(!(Av.$isRangeSelection(i)&&Av.$isRangeSelection(l)&&l.isCollapsed()&&i.isCollapsed()))return 0;o=t._nodeMap;let a=[];for(let e of n)void 0!==(n=o.get(e))&&a.push(n);for(let[e,t]of r)t&&(void 0===(r=o.get(e))||Av.$isRootNode(r)||a.push(r));return 0===a.length?0:1<a.length?(t=(r=t._nodeMap).get(i.anchor.key),l=r.get(l.anchor.key),t&&l&&!e._nodeMap.has(t.__key)&&Av.$isTextNode(t)&&1===t.__text.length&&1===i.anchor.offset?2:0):(t=a[0],e=e._nodeMap.get(t.__key),Av.$isTextNode(e)&&Av.$isTextNode(t)&&e.__mode===t.__mode?(e=e.__text)===(t=t.__text)?0:(i=i.anchor,l=l.anchor,i.key!==l.key||"text"!==i.type?0:(i=i.offset,l=l.offset,1==(e=t.length-e.length)&&l===i-1?2:-1===e&&l===i+1?3:-1===e&&l===i?4:0)):0)}(o,i,a,s,e.isComposing()),f=(()=>{var f=null===l||l.editor===e,p=u.has("history-push");if(!p&&f&&u.has("history-merge"))return 0;if(null===o)return 1;var m=i._selection;if(!(0<a.size||0<s.size))return null!==m?0:2;if(!1===p&&0!==d&&d===r&&c<n+t&&f)return 0;if(1===a.size){{p=Array.from(a)[0],f=o._nodeMap.get(p),p=i._nodeMap.get(p),m=o._selection;let e=i._selection,t=!1;Av.$isRangeSelection(m)&&Av.$isRangeSelection(e)&&(t="element"===m.anchor.type&&"element"===m.focus.type&&"text"===e.anchor.type&&"text"===e.focus.type),f=!(t||!Av.$isTextNode(f)||!Av.$isTextNode(p))&&(f.__type===p.__type&&f.__text===p.__text&&f.__mode===p.__mode&&f.__detail===p.__detail&&f.__style===p.__style&&f.__format===p.__format&&f.__parent===p.__parent)}if(f)return 0}return 1})();return n=c,r=d,f}}Nv.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},Nv.registerHistory=function(e,t,n){let r=Ov(e,n);n=({editorState:n,prevEditorState:o,dirtyLeaves:i,dirtyElements:l,tags:a})=>{const s=t.current,u=t.redoStack,c=t.undoStack,d=null===s?null:s.editorState;if(null===s||n!==d){if(1===(o=r(o,n,s,i,l,a)))0!==u.length&&(t.redoStack=[],e.dispatchCommand(Av.CAN_REDO_COMMAND,!1)),null!==s&&(c.push({...s}),e.dispatchCommand(Av.CAN_UNDO_COMMAND,!0));else if(2===o)return;t.current={editor:e,editorState:n}}};let o=Rv.mergeRegister(e.registerCommand(Av.UNDO_COMMAND,(()=>{let n=t.redoStack,r=t.undoStack;if(0!==r.length){let o=t.current,i=r.pop();null!==o&&(n.push(o),e.dispatchCommand(Av.CAN_REDO_COMMAND,!0)),0===r.length&&e.dispatchCommand(Av.CAN_UNDO_COMMAND,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:"historic"})}return!0}),Av.COMMAND_PRIORITY_EDITOR),e.registerCommand(Av.REDO_COMMAND,(()=>{let n=t.redoStack;var r=t.undoStack;if(0!==n.length){let o=t.current;null!==o&&(r.push(o),e.dispatchCommand(Av.CAN_UNDO_COMMAND,!0)),r=n.pop(),0===n.length&&e.dispatchCommand(Av.CAN_REDO_COMMAND,!1),t.current=r||null,r&&r.editor.setEditorState(r.editorState,{tag:"historic"})}return!0}),Av.COMMAND_PRIORITY_EDITOR),e.registerCommand(Av.CLEAR_EDITOR_COMMAND,(()=>(t.undoStack=[],t.redoStack=[],t.current=null,!1)),Av.COMMAND_PRIORITY_EDITOR),e.registerCommand(Av.CLEAR_HISTORY_COMMAND,(()=>(t.undoStack=[],t.redoStack=[],t.current=null,e.dispatchCommand(Av.CAN_REDO_COMMAND,!1),e.dispatchCommand(Av.CAN_UNDO_COMMAND,!1),!0)),Av.COMMAND_PRIORITY_EDITOR),e.registerUpdateListener(n)),i=e.registerUpdateListener(n);return()=>{o(),i()}};var Lv=yv,Mv=Nv,Pv=J;Tv.createEmptyHistoryState=Mv.createEmptyHistoryState,Tv.HistoryPlugin=function({externalHistoryState:e}){let[t]=Lv.useLexicalComposerContext();return function(e,t,n=1e3){let r=Pv.useMemo((()=>t||Mv.createEmptyHistoryState()),[t]);Pv.useEffect((()=>Mv.registerHistory(e,r,n)),[n,e,r])}(t,e),null};var Iv=Tv,Dv={},zv=mv,$v=yv,Fv=J,Bv=wg,Hv=lg;Dv.ListPlugin=function(){let[e]=$v.useLexicalComposerContext();return Fv.useEffect((()=>{if(!e.hasNodes([zv.ListNode,zv.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")}),[e]),function(e){Fv.useEffect((()=>Bv.mergeRegister(e.registerCommand(zv.INSERT_ORDERED_LIST_COMMAND,(()=>(zv.insertList(e,"number"),!0)),Hv.COMMAND_PRIORITY_LOW),e.registerCommand(zv.INSERT_UNORDERED_LIST_COMMAND,(()=>(zv.insertList(e,"bullet"),!0)),Hv.COMMAND_PRIORITY_LOW),e.registerCommand(zv.REMOVE_LIST_COMMAND,(()=>(zv.removeList(e),!0)),Hv.COMMAND_PRIORITY_LOW),e.registerCommand(Hv.INSERT_PARAGRAPH_COMMAND,(()=>!!zv.$handleListInsertParagraph()),Hv.COMMAND_PRIORITY_LOW))),[e])}(e),null};var jv=Dv,Wv={},Kv=yv,Uv=wg,Gv=lg,Yv=J;function Vv(e){return e.registerCommand(Gv.KEY_TAB_COMMAND,(t=>{let n=Gv.$getSelection();return!!Gv.$isRangeSelection(n)&&(t.preventDefault(),t=function(e){var t=e.getNodes();if(0<function(e,t){let n=[];for(let r=0;r<e.length;r++){let o=t(e[r]);null!==o&&n.push(o)}return n}(t,(e=>Gv.$isBlockElementNode(e)&&e.canIndent()?e:null)).length)return!0;if(t=e.anchor,t=(e=(e=e.focus).isBefore(t)?e:t).getNode(),(t=Uv.$getNearestBlockElementAncestorOrThrow(t)).canIndent()){t=t.getKey();let n=Gv.$createRangeSelection();if(n.anchor.set(t,0,"element"),n.focus.set(t,0,"element"),n=Gv.$normalizeSelection__EXPERIMENTAL(n),n.anchor.is(e))return!0}return!1}(n)?t.shiftKey?Gv.OUTDENT_CONTENT_COMMAND:Gv.INDENT_CONTENT_COMMAND:Gv.INSERT_TAB_COMMAND,e.dispatchCommand(t,void 0))}),Gv.COMMAND_PRIORITY_EDITOR)}Wv.TabIndentationPlugin=function(){let[e]=Kv.useLexicalComposerContext();return Yv.useEffect((()=>Vv(e))),null},Wv.registerTabIndentation=Vv;var Qv=Wv,qv={},Xv={},Jv={},Zv=bg,eb=lg;function tb(e,t,n,r=null){let o=null==r||t.isSelected(r),i=eb.$isElementNode(t)&&t.excludeFromCopy("html");var l=t;null!==r&&(l=Zv.$cloneWithProperties(t),l=eb.$isTextNode(l)&&null!=r?Zv.$sliceSelectedTextNodeContent(r,l):l);let a=eb.$isElementNode(l)?l.getChildren():[],{element:s,after:u}=l.exportDOM(e);if(!s)return!1;let c=document.createDocumentFragment();for(let n=0;n<a.length;n++){let i=a[n],l=tb(e,i,c,r);!o&&eb.$isElementNode(t)&&l&&t.extractWithChild(i,r,"html")&&(o=!0)}return o&&!i?(s.append(c),n.append(s),u&&(e=u.call(l,s))&&s.replaceWith(e)):n.append(c),o}let nb=new Set(["STYLE","SCRIPT"]);function rb(e,t,n=new Map,r){let o=[];if(nb.has(e.nodeName))return o;let i=null;var l,{nodeName:a}=e,s=t._htmlConversions.get(a.toLowerCase());if(a=null,void 0!==s)for(l of s)null!==(s=l(e))&&(null===a||a.priority<s.priority)&&(a=s);if(a=(l=null!==a?a.conversion:null)?l(e):null,l=null,null!==a){if(l=a.after,s=a.node,i=Array.isArray(s)?s[s.length-1]:s,null!==i){for(var[,u]of n)if(i=u(i,r),!i)break;i&&o.push(...Array.isArray(s)?s:[i])}null!=a.forChild&&n.set(e.nodeName,a.forChild)}for(e=e.childNodes,r=[],u=0;u<e.length;u++)r.push(...rb(e[u],t,new Map(n),i));return null!=l&&(r=l(r)),null==i?o=o.concat(r):eb.$isElementNode(i)&&i.append(...r),o}Jv.$generateHtmlFromNodes=function(e,t){if("undefined"==typeof document||"undefined"==typeof window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let n=document.createElement("div"),r=eb.$getRoot().getChildren();for(let o=0;o<r.length;o++)tb(e,r[o],n,t);return n.innerHTML},Jv.$generateNodesFromDOM=function(e,t){t=t.body?t.body.childNodes:[];let n=[];for(let o=0;o<t.length;o++){var r=t[o];nb.has(r.nodeName)||null!==(r=rb(r,e))&&(n=n.concat(r))}return n};var ob=Jv,ib=bg,lb=wg,ab=lg;function sb(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let ub="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function cb(e){let t=ab.$getSelection();if(null==t)throw Error("Expected valid LexicalSelection");return ab.$isRangeSelection(t)&&t.isCollapsed()||0===t.getNodes().length?"":ob.$generateHtmlFromNodes(e,t)}function db(e){let t=ab.$getSelection();if(null==t)throw Error("Expected valid LexicalSelection");return ab.$isRangeSelection(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(mb(e,t))}function fb(e,t,n){(ab.DEPRECATED_$isGridSelection(n)||null!==lb.$findMatchingParent(n.anchor.getNode(),(e=>ab.DEPRECATED_$isGridCellNode(e)))&&null!==lb.$findMatchingParent(n.focus.getNode(),(e=>ab.DEPRECATED_$isGridCellNode(e))))&&1===t.length&&ab.DEPRECATED_$isGridNode(t[0])?function(e,t,n,r){1===e.length&&ab.DEPRECATED_$isGridNode(e[0])||sb(42);var o=e[0];e=o.getChildren(),n=o.getFirstChildOrThrow().getChildrenSize();var i=o.getChildrenSize(),l=lb.$findMatchingParent(t.anchor.getNode(),(e=>ab.DEPRECATED_$isGridCellNode(e)));t=(o=l&&lb.$findMatchingParent(l,(e=>ab.DEPRECATED_$isGridRowNode(e))))&&lb.$findMatchingParent(o,(e=>ab.DEPRECATED_$isGridNode(e))),ab.DEPRECATED_$isGridCellNode(l)&&ab.DEPRECATED_$isGridRowNode(o)&&ab.DEPRECATED_$isGridNode(t)||sb(43);var a=o.getIndexWithinParent(),s=Math.min(t.getChildrenSize()-1,a+i-1);let u,c;i=l.getIndexWithinParent(),l=Math.min(o.getChildrenSize()-1,i+n-1),n=Math.min(i,l),o=Math.min(a,s),i=Math.max(i,l),a=Math.max(a,s),s=t.getChildren(),l=0;for(let t=o;t<=a;t++){var d=s[t];ab.DEPRECATED_$isGridRowNode(d)||sb(24);var f=e[l];ab.DEPRECATED_$isGridRowNode(f)||sb(24),d=d.getChildren(),f=f.getChildren();let r=0;for(let e=n;e<=i;e++){let l=d[e];ab.DEPRECATED_$isGridCellNode(l)||sb(25);let s=f[r];ab.DEPRECATED_$isGridCellNode(s)||sb(25),t===o&&e===n?u=l.getKey():t===a&&e===i&&(c=l.getKey());let p=l.getChildren();s.getChildren().forEach((e=>{ab.$isTextNode(e)&&ab.$createParagraphNode().append(e),l.append(e)})),p.forEach((e=>e.remove())),r++}l++}u&&c&&(e=ab.DEPRECATED_$createGridSelection(),e.set(t.getKey(),u,c),ab.$setSelection(e),r.dispatchCommand(ab.SELECTION_CHANGE_COMMAND,void 0))}(t,n,!1,e):function(e,t){let n=[],r=null;for(let t=0;t<e.length;t++){let o=e[t],i=ab.$isLineBreakNode(o);if(i||ab.$isDecoratorNode(o)&&o.isInline()||ab.$isElementNode(o)&&o.isInline()||ab.$isTextNode(o)||o.isParentRequired()){if(null===r&&(r=o.createParentElementNode(),n.push(r),i))continue;null!==r&&r.append(o)}else n.push(o),r=null}ab.$isRangeSelection(t)?t.insertNodes(n):ab.DEPRECATED_$isGridSelection(t)&&(e=t.anchor.getNode(),ab.DEPRECATED_$isGridCellNode(e)||sb(41),e.append(...n))}(t,n)}function pb(e,t,n,r=[]){let o=null==t||n.isSelected(t),i=ab.$isElementNode(n)&&n.excludeFromCopy("html");var l=n;if(null!==t){var a=ib.$cloneWithProperties(n);l=a=ab.$isTextNode(a)&&null!=t?ib.$sliceSelectedTextNodeContent(t,a):a}let s=ab.$isElementNode(l)?l.getChildren():[];var u=l;a=u.exportJSON();var c=u.constructor;a.type!==c.getType()&&sb(58,c.name);let d=a.children;for(ab.$isElementNode(u)&&(Array.isArray(d)||sb(59,c.name)),ab.$isTextNode(l)&&(0<(l=l.__text).length?a.text=l:o=!1),l=0;l<s.length;l++)c=pb(e,t,u=s[l],a.children),!o&&ab.$isElementNode(n)&&c&&n.extractWithChild(u,t,"clone")&&(o=!0);if(o&&!i)r.push(a);else if(Array.isArray(a.children))for(e=0;e<a.children.length;e++)r.push(a.children[e]);return o}function mb(e,t){let n=[],r=ab.$getRoot().getChildren();for(let o=0;o<r.length;o++)pb(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function hb(e){let t=[];for(let n=0;n<e.length;n++){let r=ab.$parseSerializedNode(e[n]);ab.$isTextNode(r)&&ib.$addNodeStyle(r),t.push(r)}return t}let gb=null;function vb(e,t){var n=ub?(e._window||window).getSelection():null;if(!n)return!1;var r=n.anchorNode;if(n=n.focusNode,null!==r&&null!==n&&!ab.isSelectionWithinEditor(e,r,n))return!1;if(t.preventDefault(),t=t.clipboardData,r=ab.$getSelection(),null===t||null===r)return!1;n=cb(e),e=db(e);let o="";return null!==r&&(o=r.getTextContent()),null!==n&&t.setData("text/html",n),null!==e&&t.setData("application/x-lexical-editor",e),t.setData("text/plain",o),!0}Xv.$generateJSONFromSelectedNodes=mb,Xv.$generateNodesFromSerializedNodes=hb,Xv.$getHtmlContent=cb,Xv.$getLexicalContent=db,Xv.$insertDataTransferForPlainText=function(e,t){null!=(e=e.getData("text/plain")||e.getData("text/uri-list"))&&t.insertRawText(e)},Xv.$insertDataTransferForRichText=function(e,t,n){var r=e.getData("application/x-lexical-editor");if(r)try{let e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes)){return fb(n,hb(e.nodes),t)}}catch(e){}if(r=e.getData("text/html"))try{var o=(new DOMParser).parseFromString(r,"text/html"),i=ob.$generateNodesFromDOM(n,o);return fb(n,i,t)}catch(e){}if(null!=(e=e.getData("text/plain")||e.getData("text/uri-list")))if(ab.$isRangeSelection(t))for(n=(e=e.split(/(\r?\n|\t)/)).length,o=0;o<n;o++)"\n"===(i=e[o])||"\r\n"===i?t.insertParagraph():"\t"===i?t.insertNodes([ab.$createTabNode()]):t.insertText(i);else t.insertRawText(e)},Xv.$insertGeneratedNodes=fb,Xv.copyToClipboard=async function(e,t){if(null!==gb)return!1;if(null!==t)return new Promise((n=>{e.update((()=>{n(vb(e,t))}))}));var n=e.getRootElement();let r=null==e._window?window.document:e._window.document,o=ub?(e._window||window).getSelection():null;if(null===n||null===o)return!1;let i=r.createElement("span");return i.style.cssText="position: fixed; top: -1000px;",i.append(r.createTextNode("#")),n.append(i),(n=new Range).setStart(i,0),n.setEnd(i,1),o.removeAllRanges(),o.addRange(n),new Promise((t=>{let n=e.registerCommand(ab.COPY_COMMAND,(r=>(lb.objectKlassEquals(r,ClipboardEvent)&&(n(),null!==gb&&(window.clearTimeout(gb),gb=null),t(vb(e,r))),!0)),ab.COMMAND_PRIORITY_CRITICAL);gb=window.setTimeout((()=>{n(),gb=null,t(!1)}),50),r.execCommand("copy"),i.remove()}))};var bb=Xv,yb=bg,xb=wg,_b=lg;function Eb(e,t){return void 0!==document.caretRangeFromPoint?null===(e=document.caretRangeFromPoint(e,t))?null:{node:e.startContainer,offset:e.startOffset}:"undefined"!==document.caretPositionFromPoint?null===(e=document.caretPositionFromPoint(e,t))?null:{node:e.offsetNode,offset:e.offset}:null}let Cb="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,wb=Cb&&"documentMode"in document?document.documentMode:null,Sb=!(!Cb||!("InputEvent"in window)||wb)&&"getTargetRanges"in new window.InputEvent("input"),kb=Cb&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Tb=Cb&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Nb=Cb&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Rb=Cb&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Nb,Ab=_b.createCommand("DRAG_DROP_PASTE_FILE"),Ob=class e extends _b.ElementNode{static getType(){return"quote"}static clone(t){return new e(t.__key)}constructor(e){super(e)}createDOM(e){let t=document.createElement("blockquote");return xb.addClassNamesToElement(t,e.theme.quote),t}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:Db,priority:0})}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}static importJSON(e){let t=Lb();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(e,t){e=_b.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=_b.$createParagraphNode();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}};function Lb(){return _b.$applyNodeReplacement(new Ob)}let Mb=class e extends _b.ElementNode{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}createDOM(e){let t=this.__tag,n=document.createElement(t);return void 0!==(e=e.theme.heading)&&xb.addClassNamesToElement(n,e[t]),n}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:Ib,priority:0}),h2:()=>({conversion:Ib,priority:0}),h3:()=>({conversion:Ib,priority:0}),h4:()=>({conversion:Ib,priority:0}),h5:()=>({conversion:Ib,priority:0}),h6:()=>({conversion:Ib,priority:0}),p:e=>null!==(e=e.firstChild)&&Pb(e)?{conversion:()=>({node:null}),priority:3}:null,span:e=>Pb(e)?{conversion:()=>({node:zb("h1")}),priority:3}:null}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}static importJSON(e){let t=zb(e.tag);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(e,t=!0){e=0<(e=e?e.anchor.offset:0)&&e<this.getTextContentSize()?zb(this.getTag()):_b.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.isEmpty()?_b.$createParagraphNode():zb(this.getTag());return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}extractWithChild(){return!0}};function Pb(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function Ib(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=zb(t),null!==e.style&&n.setFormat(e.style.textAlign)),{node:n}}function Db(e){let t=Lb();return null!==e.style&&t.setFormat(e.style.textAlign),{node:t}}function zb(e){return _b.$applyNodeReplacement(new Mb(e))}function $b(e){let t=null;if(e instanceof DragEvent?t=e.dataTransfer:e instanceof ClipboardEvent&&(t=e.clipboardData),null===t)return[!1,[],!1];var n=t.types;return e=n.includes("Files"),n=n.includes("text/html")||n.includes("text/plain"),[e,Array.from(t.files),n]}function Fb(e){var t=_b.$getSelection();if(!_b.$isRangeSelection(t))return!1;let n=new Set;t=t.getNodes();for(let i=0;i<t.length;i++){var r=t[i],o=r.getKey();n.has(o)||(o=(r=xb.$getNearestBlockElementAncestorOrThrow(r)).getKey(),r.canIndent()&&!n.has(o)&&(n.add(o),e(r)))}return 0<n.size}function Bb(e){return e=_b.$getNearestNodeFromDOMNode(e),_b.$isDecoratorNode(e)}qv.$createHeadingNode=zb,qv.$createQuoteNode=Lb,qv.$isHeadingNode=function(e){return e instanceof Mb},qv.$isQuoteNode=function(e){return e instanceof Ob},qv.DRAG_DROP_PASTE=Ab,qv.HeadingNode=Mb,qv.QuoteNode=Ob,qv.eventFiles=$b,qv.registerRichText=function(e){return xb.mergeRegister(e.registerCommand(_b.CLICK_COMMAND,(()=>{const e=_b.$getSelection();return!!_b.$isNodeSelection(e)&&(e.clear(),!0)}),0),e.registerCommand(_b.DELETE_CHARACTER_COMMAND,(e=>{const t=_b.$getSelection();return!!_b.$isRangeSelection(t)&&(t.deleteCharacter(e),!0)}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.DELETE_WORD_COMMAND,(e=>{const t=_b.$getSelection();return!!_b.$isRangeSelection(t)&&(t.deleteWord(e),!0)}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.DELETE_LINE_COMMAND,(e=>{const t=_b.$getSelection();return!!_b.$isRangeSelection(t)&&(t.deleteLine(e),!0)}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.CONTROLLED_TEXT_INSERTION_COMMAND,(t=>{const n=_b.$getSelection();if("string"==typeof t)_b.$isRangeSelection(n)?n.insertText(t):_b.DEPRECATED_$isGridSelection(n);else{if(!_b.$isRangeSelection(n)&&!_b.DEPRECATED_$isGridSelection(n))return!1;const r=t.dataTransfer;null!=r?bb.$insertDataTransferForRichText(r,n,e):_b.$isRangeSelection(n)&&(t=t.data)&&n.insertText(t)}return!0}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.REMOVE_TEXT_COMMAND,(()=>{const e=_b.$getSelection();return!!_b.$isRangeSelection(e)&&(e.removeText(),!0)}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.FORMAT_TEXT_COMMAND,(e=>{const t=_b.$getSelection();return!!_b.$isRangeSelection(t)&&(t.formatText(e),!0)}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.FORMAT_ELEMENT_COMMAND,(e=>{var t=_b.$getSelection();if(!_b.$isRangeSelection(t)&&!_b.$isNodeSelection(t))return!1;t=t.getNodes();for(const n of t)t=xb.$findMatchingParent(n,(e=>_b.$isElementNode(e)&&!e.isInline())),null!==t&&t.setFormat(e);return!0}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.INSERT_LINE_BREAK_COMMAND,(e=>{const t=_b.$getSelection();return!!_b.$isRangeSelection(t)&&(t.insertLineBreak(e),!0)}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.INSERT_PARAGRAPH_COMMAND,(()=>{const e=_b.$getSelection();return!!_b.$isRangeSelection(e)&&(e.insertParagraph(),!0)}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.INSERT_TAB_COMMAND,(()=>(_b.$insertNodes([_b.$createTabNode()]),!0)),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.INDENT_CONTENT_COMMAND,(()=>Fb((e=>{const t=e.getIndent();e.setIndent(t+1)}))),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.OUTDENT_CONTENT_COMMAND,(()=>Fb((e=>{const t=e.getIndent();0<t&&e.setIndent(t-1)}))),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.KEY_ARROW_UP_COMMAND,(e=>{var t=_b.$getSelection();if(_b.$isNodeSelection(t)&&!Bb(e.target)){if(0<(e=t.getNodes()).length)return e[0].selectPrevious(),!0}else if(_b.$isRangeSelection(t)&&(t=_b.$getAdjacentNode(t.focus,!0),!e.shiftKey&&_b.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline()))return t.selectPrevious(),e.preventDefault(),!0;return!1}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.KEY_ARROW_DOWN_COMMAND,(e=>{var t=_b.$getSelection();if(_b.$isNodeSelection(t)){if(0<(e=t.getNodes()).length)return e[0].selectNext(0,0),!0}else if(_b.$isRangeSelection(t)){let n=t.focus;if("root"===n.key&&n.offset===_b.$getRoot().getChildrenSize())return e.preventDefault(),!0;if(t=_b.$getAdjacentNode(t.focus,!1),!e.shiftKey&&_b.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline())return t.selectNext(),e.preventDefault(),!0}return!1}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.KEY_ARROW_LEFT_COMMAND,(e=>{const t=_b.$getSelection();if(_b.$isNodeSelection(t)){var n=t.getNodes();if(0<n.length)return e.preventDefault(),n[0].selectPrevious(),!0}return!!_b.$isRangeSelection(t)&&(!!yb.$shouldOverrideDefaultCharacterSelection(t,!0)&&(n=e.shiftKey,e.preventDefault(),yb.$moveCharacter(t,n,!0),!0))}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.KEY_ARROW_RIGHT_COMMAND,(e=>{const t=_b.$getSelection();if(_b.$isNodeSelection(t)&&!Bb(e.target)){var n=t.getNodes();if(0<n.length)return e.preventDefault(),n[0].selectNext(0,0),!0}return!!_b.$isRangeSelection(t)&&(n=e.shiftKey,!!yb.$shouldOverrideDefaultCharacterSelection(t,!1)&&(e.preventDefault(),yb.$moveCharacter(t,n,!1),!0))}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.KEY_BACKSPACE_COMMAND,(t=>{if(Bb(t.target))return!1;const n=_b.$getSelection();if(!_b.$isRangeSelection(n))return!1;t.preventDefault(),({anchor:t}=n);const r=t.getNode();return n.isCollapsed()&&0===t.offset&&!_b.$isRootNode(r)&&0<xb.$getNearestBlockElementAncestorOrThrow(r).getIndent()?e.dispatchCommand(_b.OUTDENT_CONTENT_COMMAND,void 0):e.dispatchCommand(_b.DELETE_CHARACTER_COMMAND,!0)}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.KEY_DELETE_COMMAND,(t=>{if(Bb(t.target))return!1;const n=_b.$getSelection();return!!_b.$isRangeSelection(n)&&(t.preventDefault(),e.dispatchCommand(_b.DELETE_CHARACTER_COMMAND,!1))}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.KEY_ENTER_COMMAND,(t=>{const n=_b.$getSelection();if(!_b.$isRangeSelection(n))return!1;if(null!==t){if((Tb||kb||Rb)&&Sb)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(_b.INSERT_LINE_BREAK_COMMAND,!1)}return e.dispatchCommand(_b.INSERT_PARAGRAPH_COMMAND,void 0)}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.KEY_ESCAPE_COMMAND,(()=>{const t=_b.$getSelection();return!!_b.$isRangeSelection(t)&&(e.blur(),!0)}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.DROP_COMMAND,(t=>{const[,n]=$b(t);if(0<n.length){var r=Eb(t.clientX,t.clientY);if(null!==r){const{offset:t,node:i}=r;var o=_b.$getNearestNodeFromDOMNode(i);if(null!==o){if(r=_b.$createRangeSelection(),_b.$isTextNode(o))r.anchor.set(o.getKey(),t,"text"),r.focus.set(o.getKey(),t,"text");else{const e=o.getParentOrThrow().getKey();o=o.getIndexWithinParent()+1,r.anchor.set(e,o,"element"),r.focus.set(e,o,"element")}r=_b.$normalizeSelection__EXPERIMENTAL(r),_b.$setSelection(r)}e.dispatchCommand(Ab,n)}return t.preventDefault(),!0}return t=_b.$getSelection(),!!_b.$isRangeSelection(t)}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.DRAGSTART_COMMAND,(e=>{[e]=$b(e);const t=_b.$getSelection();return!(e&&!_b.$isRangeSelection(t))}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.DRAGOVER_COMMAND,(e=>{var[t]=$b(e);const n=_b.$getSelection();return!(t&&!_b.$isRangeSelection(n))&&(null!==(t=Eb(e.clientX,e.clientY))&&(t=_b.$getNearestNodeFromDOMNode(t.node),_b.$isDecoratorNode(t)&&e.preventDefault()),!0)}),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.COPY_COMMAND,(t=>(bb.copyToClipboard(e,xb.objectKlassEquals(t,ClipboardEvent)?t:null),!0)),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.CUT_COMMAND,(t=>(async function(e,t){await bb.copyToClipboard(t,xb.objectKlassEquals(e,ClipboardEvent)?e:null),t.update((()=>{let e=_b.$getSelection();_b.$isRangeSelection(e)?e.removeText():_b.$isNodeSelection(e)&&e.getNodes().forEach((e=>e.remove()))}))}(t,e),!0)),_b.COMMAND_PRIORITY_EDITOR),e.registerCommand(_b.PASTE_COMMAND,(t=>{const[,n,r]=$b(t);if(0<n.length&&!r)return e.dispatchCommand(Ab,n),!0;if(_b.isSelectionCapturedInDecoratorInput(t.target))return!1;const o=_b.$getSelection();return!(!_b.$isRangeSelection(o)&&!_b.DEPRECATED_$isGridSelection(o))&&(function(e,t){e.preventDefault(),t.update((()=>{let n=_b.$getSelection(),r=e instanceof InputEvent||e instanceof KeyboardEvent?null:e.clipboardData;null!=r&&(_b.$isRangeSelection(n)||_b.DEPRECATED_$isGridSelection(n))&&bb.$insertDataTransferForRichText(r,n,t)}),{tag:"paste"})}(t,e),!0)}),_b.COMMAND_PRIORITY_EDITOR))};var Hb=qv,jb={},Wb=Ig,Kb=yv,Ub=wg,Gb=lg,Yb=J;function Vb(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}let Qb=/[.,;\s]/;function qb(e){var t;return e=e.getPreviousSibling(),Gb.$isElementNode(e)&&(e=e.getLastDescendant()),!(t=null===e||Gb.$isLineBreakNode(e))&&(t=Gb.$isTextNode(e))&&(e=e.getTextContent(),t=Qb.test(e[e.length-1])),t}function Xb(e){return e=e.getNextSibling(),Gb.$isElementNode(e)&&(e=e.getFirstDescendant()),null===e||Gb.$isLineBreakNode(e)||Gb.$isTextNode(e)&&Qb.test(e.getTextContent()[0])}function Jb(e,t,n){var r=e.getChildren();let o=r.length;for(let t=0;t<o;t++){let o=r[t];if(!Gb.$isTextNode(o)||!o.isSimpleText())return Zb(e),void n(null,e.getURL())}null===(t=Vb(r=e.getTextContent(),t))||t.text!==r?(Zb(e),n(null,e.getURL())):qb(e)&&Xb(e)?((r=e.getURL())!==t.url&&(e.setURL(t.url),n(t.url,r)),t.attributes&&((r=e.getRel())!==t.attributes.rel&&(e.setRel(t.attributes.rel||null),n(t.attributes.rel||null,r)),(r=e.getTarget())!==t.attributes.target&&(e.setTarget(t.attributes.target||null),n(t.attributes.target||null,r)))):(Zb(e),n(null,e.getURL()))}function Zb(e){let t=e.getChildren();var n=t.length;for(--n;0<=n;n--)e.insertAfter(t[n]);return e.remove(),t.map((e=>e.getLatest()))}function ey(e,t,n){Yb.useEffect((()=>{e.hasNodes([Wb.AutoLinkNode])||function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);let r=(e,t)=>{n&&n(e,t)};return Ub.mergeRegister(e.registerNodeTransform(Gb.TextNode,(e=>{var o=e.getParentOrThrow(),i=e.getPreviousSibling();if(Wb.$isAutoLinkNode(o))Jb(o,t,r);else if(!Wb.$isLinkNode(o)){if(e.isSimpleText()&&(Qb.test(e.getTextContent()[0])||!Wb.$isAutoLinkNode(i))){i=o=e.getTextContent();let r=0,f=e;for(var l;(l=Vb(i,t))&&null!==l;){let t=l.index,p=l.length,m=t+p;var a=r+t,s=r+m,u=o,c=e;if((0<a?Qb.test(u[a-1]):qb(c))&&(s<u.length?Qb.test(u[s]):Xb(c))){var d=void 0;0===r+t?[d,f]=f.splitText(r+p):[,d,f]=f.splitText(r+t,r+t+p),a=Wb.$createAutoLinkNode(l.url,l.attributes),(s=Gb.$createTextNode(l.text)).setFormat(d.getFormat()),s.setDetail(d.getDetail()),a.append(s),d.replace(a),n&&n(l.url,null),r=0}else r+=m;i=i.substring(m)}}o=e.getPreviousSibling(),l=e.getNextSibling(),d=e.getTextContent(),Wb.$isAutoLinkNode(o)&&!Qb.test(d[0])&&(o.append(e),Jb(o,t,r),e=o.getURL(),n&&n(null,e)),Wb.$isAutoLinkNode(l)&&!Qb.test(d[d.length-1])&&(Zb(l),Jb(l,t,r),e=l.getURL(),n&&n(null,e))}})))}),[e,t,n])}jb.AutoLinkPlugin=function({matchers:e,onChange:t}){let[n]=Kb.useLexicalComposerContext();return ey(n,e,t),null},jb.createLinkMatcherWithRegExp=function(e,t=e=>e){return n=>{let r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(n)}}};var ty=jb,ny=yv,ry=J,oy="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?ry.useLayoutEffect:ry.useEffect;function iy(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}const ly=function(){return function(e){let[t]=ny.useLexicalComposerContext(),n=ry.useMemo((()=>e(t)),[t,e]),r=ry.useRef(n.initialValueFn()),[o,i]=ry.useState(r.current);return oy((()=>{let{initialValueFn:e,subscribe:t}=n,o=e();return r.current!==o&&(r.current=o,i(o)),t((e=>{r.current=e,i(e)}))}),[n,e]),o}(iy)};var ay=ly,sy=m(ay);const uy={black:"#000",white:"#fff"},cy="#e57373",dy="#ef5350",fy="#f44336",py="#d32f2f",my="#c62828",hy="#f3e5f5",gy="#ce93d8",vy="#ba68c8",by="#ab47bc",yy="#9c27b0",xy="#7b1fa2",_y="#e3f2fd",Ey="#90caf9",Cy="#42a5f5",wy="#1976d2",Sy="#1565c0",ky="#4fc3f7",Ty="#29b6f6",Ny="#03a9f4",Ry="#0288d1",Ay="#01579b",Oy="#81c784",Ly="#66bb6a",My="#4caf50",Py="#388e3c",Iy="#2e7d32",Dy="#1b5e20",zy="#ffb74d",$y="#ffa726",Fy="#ff9800",By="#f57c00",Hy="#e65100",jy={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 Wy(){return Wy=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},Wy.apply(null,arguments)}function Ky(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 Uy(e){if(!Ky(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Uy(e[n])})),t}function Gy(e,t,n={clone:!0}){const r=n.clone?Wy({},e):e;return Ky(e)&&Ky(t)&&Object.keys(t).forEach((o=>{Ky(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ky(e[o])?r[o]=Gy(e[o],t[o],n):n.clone?r[o]=Ky(t[o])?Uy(t[o]):t[o]:r[o]=t[o]})),r}function Yy(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 Vy,Qy={},qy=Symbol.for("react.element"),Xy=Symbol.for("react.portal"),Jy=Symbol.for("react.fragment"),Zy=Symbol.for("react.strict_mode"),ex=Symbol.for("react.profiler"),tx=Symbol.for("react.provider"),nx=Symbol.for("react.context"),rx=Symbol.for("react.server_context"),ox=Symbol.for("react.forward_ref"),ix=Symbol.for("react.suspense"),lx=Symbol.for("react.suspense_list"),ax=Symbol.for("react.memo"),sx=Symbol.for("react.lazy"),ux=Symbol.for("react.offscreen");
27
- /**
28
- * @license React
29
- * react-is.production.min.js
30
- *
31
- * Copyright (c) Facebook, Inc. and its affiliates.
32
- *
33
- * This source code is licensed under the MIT license found in the
34
- * LICENSE file in the root directory of this source tree.
35
- */function cx(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case qy:switch(e=e.type){case Jy:case ex:case Zy:case ix:case lx:return e;default:switch(e=e&&e.$$typeof){case rx:case nx:case ox:case sx:case ax:case tx:return e;default:return t}}case Xy:return t}}}function dx(e){if("string"!=typeof e)throw new Error(Yy(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fx(e){return e&&e.ownerDocument||document}function px(e){return fx(e).defaultView||window}function mx(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Vy=Symbol.for("react.module.reference"),Qy.ContextConsumer=nx,Qy.ContextProvider=tx,Qy.Element=qy,Qy.ForwardRef=ox,Qy.Fragment=Jy,Qy.Lazy=sx,Qy.Memo=ax,Qy.Portal=Xy,Qy.Profiler=ex,Qy.StrictMode=Zy,Qy.Suspense=ix,Qy.SuspenseList=lx,Qy.isAsyncMode=function(){return!1},Qy.isConcurrentMode=function(){return!1},Qy.isContextConsumer=function(e){return cx(e)===nx},Qy.isContextProvider=function(e){return cx(e)===tx},Qy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===qy},Qy.isForwardRef=function(e){return cx(e)===ox},Qy.isFragment=function(e){return cx(e)===Jy},Qy.isLazy=function(e){return cx(e)===sx},Qy.isMemo=function(e){return cx(e)===ax},Qy.isPortal=function(e){return cx(e)===Xy},Qy.isProfiler=function(e){return cx(e)===ex},Qy.isStrictMode=function(e){return cx(e)===Zy},Qy.isSuspense=function(e){return cx(e)===ix},Qy.isSuspenseList=function(e){return cx(e)===lx},Qy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Jy||e===ex||e===Zy||e===ix||e===lx||e===ux||"object"==typeof e&&null!==e&&(e.$$typeof===sx||e.$$typeof===ax||e.$$typeof===tx||e.$$typeof===nx||e.$$typeof===ox||e.$$typeof===Vy||void 0!==e.getModuleId)},Qy.typeOf=cx;const hx="undefined"!=typeof window?J.useLayoutEffect:J.useEffect;let gx=0;const vx=ee["useId".toString()];function bx(e){if(void 0!==vx){const t=vx();return null!=e?e:t}return function(e){const[t,n]=J.useState(e),r=e||t;return J.useEffect((()=>{null==t&&(gx+=1,n(`mui-${gx}`))}),[t]),r}(e)}function yx(e){const t=J.useRef(e);return hx((()=>{t.current=e})),J.useRef(((...e)=>(0,t.current)(...e))).current}function xx(...e){return J.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{mx(e,t)}))}),e)}class _x{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new _x}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}let Ex=!0,Cx=!1;const wx=new _x,Sx={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 kx(e){e.metaKey||e.altKey||e.ctrlKey||(Ex=!0)}function Tx(){Ex=!1}function Nx(){"hidden"===this.visibilityState&&Cx&&(Ex=!0)}function Rx(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ex||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Sx[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ax(){const e=J.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",kx,!0),t.addEventListener("mousedown",Tx,!0),t.addEventListener("pointerdown",Tx,!0),t.addEventListener("touchstart",Tx,!0),t.addEventListener("visibilitychange",Nx,!0))}),[]),t=J.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Rx(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Cx=!0,wx.start(100,(()=>{Cx=!1})),t.current=!1,!0)},ref:e}}function Ox(e,t){const n=Wy({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Wy({},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]=Wy({},i),Object.keys(o).forEach((e=>{n[r][e]=Ox(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Lx(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}const Mx=e=>e,Px=(()=>{let e=Mx;return{configure(t){e=t},generate:t=>e(t),reset(){e=Mx}}})(),Ix={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 Dx(e,t,n="Mui"){const r=Ix[t];return r?`${n}-${r}`:`${Px.generate(e)}-${t}`}function zx(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Dx(e,t,n)})),r}function $x(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Fx(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=Fx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bx(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fx(e))&&(r&&(r+=" "),r+=t);return r}var Hx="$$material";function jx(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Wx=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Kx=jx((function(e){return Wx.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Ux=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}(),Gx="-ms-",Yx="-moz-",Vx="-webkit-",Qx="comm",qx="rule",Xx="decl",Jx="@keyframes",Zx=Math.abs,e_=String.fromCharCode,t_=Object.assign;function n_(e){return e.trim()}function r_(e,t,n){return e.replace(t,n)}function o_(e,t){return e.indexOf(t)}function i_(e,t){return 0|e.charCodeAt(t)}function l_(e,t,n){return e.slice(t,n)}function a_(e){return e.length}function s_(e){return e.length}function u_(e,t){return t.push(e),e}var c_=1,d_=1,f_=0,p_=0,m_=0,h_="";function g_(e,t,n,r,o,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:c_,column:d_,length:l,return:""}}function v_(e,t){return t_(g_("",null,null,"",null,null,0),e,{length:-e.length},t)}function b_(){return m_=p_>0?i_(h_,--p_):0,d_--,10===m_&&(d_=1,c_--),m_}function y_(){return m_=p_<f_?i_(h_,p_++):0,d_++,10===m_&&(d_=1,c_++),m_}function x_(){return i_(h_,p_)}function __(){return p_}function E_(e,t){return l_(h_,e,t)}function C_(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 w_(e){return c_=d_=1,f_=a_(h_=e),p_=0,[]}function S_(e){return h_="",e}function k_(e){return n_(E_(p_-1,R_(91===e?e+2:40===e?e+1:e)))}function T_(e){for(;(m_=x_())&&m_<33;)y_();return C_(e)>2||C_(m_)>3?"":" "}function N_(e,t){for(;--t&&y_()&&!(m_<48||m_>102||m_>57&&m_<65||m_>70&&m_<97););return E_(e,__()+(t<6&&32==x_()&&32==y_()))}function R_(e){for(;y_();)switch(m_){case e:return p_;case 34:case 39:34!==e&&39!==e&&R_(m_);break;case 40:41===e&&R_(e);break;case 92:y_()}return p_}function A_(e,t){for(;y_()&&e+m_!==57&&(e+m_!==84||47!==x_()););return"/*"+E_(t,p_-1)+"*"+e_(47===e?e:y_())}function O_(e){for(;!C_(x_());)y_();return E_(e,p_)}function L_(e){return S_(M_("",null,null,null,[""],e=w_(e),0,[0],e))}function M_(e,t,n,r,o,i,l,a,s){for(var u=0,c=0,d=l,f=0,p=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,_=i,E=r,C=y;g;)switch(m=b,b=y_()){case 40:if(108!=m&&58==i_(C,d-1)){-1!=o_(C+=r_(k_(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=k_(b);break;case 9:case 10:case 13:case 32:C+=T_(m);break;case 92:C+=N_(__()-1,7);continue;case 47:switch(x_()){case 42:case 47:u_(I_(A_(y_(),__()),t,n),s);break;default:C+="/"}break;case 123*h:a[u++]=a_(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=r_(C,/\f/g,"")),p>0&&a_(C)-d&&u_(p>32?D_(C+";",r,n,d-1):D_(r_(C," ","")+";",r,n,d-2),s);break;case 59:C+=";";default:if(u_(E=P_(C,t,n,u,c,o,a,y,x=[],_=[],d),i),123===b)if(0===c)M_(C,t,E,E,x,i,d,a,_);else switch(99===f&&110===i_(C,3)?100:f){case 100:case 108:case 109:case 115:M_(e,E,E,r&&u_(P_(e,E,E,0,0,o,a,y,o,x=[],d),_),o,_,d,a,r?x:_);break;default:M_(C,E,E,E,[""],_,0,a,_)}}u=c=p=0,h=v=1,y=C="",d=l;break;case 58:d=1+a_(C),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==b_())continue;switch(C+=e_(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:a[u++]=(a_(C)-1)*v,v=1;break;case 64:45===x_()&&(C+=k_(y_())),f=x_(),c=d=a_(y=C+=O_(__())),b++;break;case 45:45===m&&2==a_(C)&&(h=0)}}return i}function P_(e,t,n,r,o,i,l,a,s,u,c){for(var d=o-1,f=0===o?i:[""],p=s_(f),m=0,h=0,g=0;m<r;++m)for(var v=0,b=l_(e,d+1,d=Zx(h=l[m])),y=e;v<p;++v)(y=n_(h>0?f[v]+" "+b:r_(b,/&\f/g,f[v])))&&(s[g++]=y);return g_(e,t,n,0===o?qx:a,s,u,c)}function I_(e,t,n){return g_(e,t,n,Qx,e_(m_),l_(e,2,-2),0)}function D_(e,t,n,r){return g_(e,t,n,Xx,l_(e,0,r),l_(e,r+1,-1),r)}function z_(e,t){for(var n="",r=s_(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function $_(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Xx:return e.return=e.return||e.value;case Qx:return"";case Jx:return e.return=e.value+"{"+z_(e.children,r)+"}";case qx:e.value=e.props.join(",")}return a_(n=z_(e.children,r))?e.return=e.value+"{"+n+"}":""}function F_(e){var t=s_(e);return function(n,r,o,i){for(var l="",a=0;a<t;a++)l+=e[a](n,r,o,i)||"";return l}}var B_="undefined"!=typeof document,H_=function(e,t,n){for(var r=0,o=0;r=o,o=x_(),38===r&&12===o&&(t[n]=1),!C_(o);)y_();return E_(e,p_)},j_=function(e,t){return S_(function(e,t){var n=-1,r=44;do{switch(C_(r)){case 0:38===r&&12===x_()&&(t[n]=1),e[n]+=H_(p_-1,t,n);break;case 2:e[n]+=k_(r);break;case 4:if(44===r){e[++n]=58===x_()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=e_(r)}}while(r=y_());return e}(w_(e),t))},W_=new WeakMap,K_=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)||W_.get(n))&&!r){W_.set(e,!0);for(var o=[],i=j_(t,o),l=n.props,a=0,s=0;a<i.length;a++)for(var u=0;u<l.length;u++,s++)e.props[s]=o[a]?i[a].replace(/&\f/g,l[u]):l[u]+" "+i[a]}}},U_=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function G_(e,t){switch(function(e,t){return 45^i_(e,0)?(((t<<2^i_(e,0))<<2^i_(e,1))<<2^i_(e,2))<<2^i_(e,3):0}(e,t)){case 5103:return Vx+"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 Vx+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Vx+e+Yx+e+Gx+e+e;case 6828:case 4268:return Vx+e+Gx+e+e;case 6165:return Vx+e+Gx+"flex-"+e+e;case 5187:return Vx+e+r_(e,/(\w+).+(:[^]+)/,Vx+"box-$1$2"+Gx+"flex-$1$2")+e;case 5443:return Vx+e+Gx+"flex-item-"+r_(e,/flex-|-self/,"")+e;case 4675:return Vx+e+Gx+"flex-line-pack"+r_(e,/align-content|flex-|-self/,"")+e;case 5548:return Vx+e+Gx+r_(e,"shrink","negative")+e;case 5292:return Vx+e+Gx+r_(e,"basis","preferred-size")+e;case 6060:return Vx+"box-"+r_(e,"-grow","")+Vx+e+Gx+r_(e,"grow","positive")+e;case 4554:return Vx+r_(e,/([^-])(transform)/g,"$1"+Vx+"$2")+e;case 6187:return r_(r_(r_(e,/(zoom-|grab)/,Vx+"$1"),/(image-set)/,Vx+"$1"),e,"")+e;case 5495:case 3959:return r_(e,/(image-set\([^]*)/,Vx+"$1$`$1");case 4968:return r_(r_(e,/(.+:)(flex-)?(.*)/,Vx+"box-pack:$3"+Gx+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Vx+e+e;case 4095:case 3583:case 4068:case 2532:return r_(e,/(.+)-inline(.+)/,Vx+"$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(a_(e)-1-t>6)switch(i_(e,t+1)){case 109:if(45!==i_(e,t+4))break;case 102:return r_(e,/(.+:)(.+)-([^]+)/,"$1"+Vx+"$2-$3$1"+Yx+(108==i_(e,t+3)?"$3":"$2-$3"))+e;case 115:return~o_(e,"stretch")?G_(r_(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==i_(e,t+1))break;case 6444:switch(i_(e,a_(e)-3-(~o_(e,"!important")&&10))){case 107:return r_(e,":",":"+Vx)+e;case 101:return r_(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Vx+(45===i_(e,14)?"inline-":"")+"box$3$1"+Vx+"$2$3$1"+Gx+"$2box$3")+e}break;case 5936:switch(i_(e,t+11)){case 114:return Vx+e+Gx+r_(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Vx+e+Gx+r_(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Vx+e+Gx+r_(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Vx+e+Gx+e+e}return e}var Y_,V_,Q_=B_?void 0:(Y_=function(){return jx((function(){var e={};return function(t){return e[t]}}))},V_=new WeakMap,function(e){if(V_.has(e))return V_.get(e);var t=Y_(e);return V_.set(e,t),t}),q_=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xx:e.return=G_(e.value,e.length);break;case Jx:return z_([v_(e,{value:r_(e.value,"@","@"+Vx)})],r);case qx: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 z_([v_(e,{props:[r_(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return z_([v_(e,{props:[r_(t,/:(plac\w+)/,":"+Vx+"input-$1")]}),v_(e,{props:[r_(t,/:(plac\w+)/,":-moz-$1")]}),v_(e,{props:[r_(t,/:(plac\w+)/,Gx+"input-$1")]})],r)}return""}))}}],X_=function(e){var t=e.key;if(B_&&"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||q_,l={},a=[];B_&&(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++)l[t[n]]=!0;a.push(e)})));var s,u=[K_,U_];if(B_){var c,d=[$_,(s=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],f=F_(u.concat(i,d));o=function(e,t,n,r){c=n,function(e){z_(L_(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var p=[$_],m=F_(u.concat(i,p)),h=Q_(i)(t),g=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return z_(L_(e),m)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),i):r?void(v.inserted[o]=i):i}}var v={key:t,sheet:new Ux({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:o};return v.sheet.hydrate(a),v},J_={exports:{}},Z_={},eE="function"==typeof Symbol&&Symbol.for,tE=eE?Symbol.for("react.element"):60103,nE=eE?Symbol.for("react.portal"):60106,rE=eE?Symbol.for("react.fragment"):60107,oE=eE?Symbol.for("react.strict_mode"):60108,iE=eE?Symbol.for("react.profiler"):60114,lE=eE?Symbol.for("react.provider"):60109,aE=eE?Symbol.for("react.context"):60110,sE=eE?Symbol.for("react.async_mode"):60111,uE=eE?Symbol.for("react.concurrent_mode"):60111,cE=eE?Symbol.for("react.forward_ref"):60112,dE=eE?Symbol.for("react.suspense"):60113,fE=eE?Symbol.for("react.suspense_list"):60120,pE=eE?Symbol.for("react.memo"):60115,mE=eE?Symbol.for("react.lazy"):60116,hE=eE?Symbol.for("react.block"):60121,gE=eE?Symbol.for("react.fundamental"):60117,vE=eE?Symbol.for("react.responder"):60118,bE=eE?Symbol.for("react.scope"):60119;function yE(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case tE:switch(e=e.type){case sE:case uE:case rE:case iE:case oE:case dE:return e;default:switch(e=e&&e.$$typeof){case aE:case cE:case mE:case pE:case lE:return e;default:return t}}case nE:return t}}}function xE(e){return yE(e)===uE}Z_.AsyncMode=sE,Z_.ConcurrentMode=uE,Z_.ContextConsumer=aE,Z_.ContextProvider=lE,Z_.Element=tE,Z_.ForwardRef=cE,Z_.Fragment=rE,Z_.Lazy=mE,Z_.Memo=pE,Z_.Portal=nE,Z_.Profiler=iE,Z_.StrictMode=oE,Z_.Suspense=dE,Z_.isAsyncMode=function(e){return xE(e)||yE(e)===sE},Z_.isConcurrentMode=xE,Z_.isContextConsumer=function(e){return yE(e)===aE},Z_.isContextProvider=function(e){return yE(e)===lE},Z_.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===tE},Z_.isForwardRef=function(e){return yE(e)===cE},Z_.isFragment=function(e){return yE(e)===rE},Z_.isLazy=function(e){return yE(e)===mE},Z_.isMemo=function(e){return yE(e)===pE},Z_.isPortal=function(e){return yE(e)===nE},Z_.isProfiler=function(e){return yE(e)===iE},Z_.isStrictMode=function(e){return yE(e)===oE},Z_.isSuspense=function(e){return yE(e)===dE},Z_.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===rE||e===uE||e===iE||e===oE||e===dE||e===fE||"object"==typeof e&&null!==e&&(e.$$typeof===mE||e.$$typeof===pE||e.$$typeof===lE||e.$$typeof===aE||e.$$typeof===cE||e.$$typeof===gE||e.$$typeof===vE||e.$$typeof===bE||e.$$typeof===hE)},Z_.typeOf=yE,J_.exports=Z_;var _E=J_.exports,EE={};EE[_E.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},EE[_E.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var CE="undefined"!=typeof document;var wE=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===CE&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},SE=function(e,t,n){wE(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var l=e.insert(t===i?"."+r:"",i,e.sheet,!0);CE||void 0===l||(o+=l),i=i.next}while(void 0!==i);if(!CE&&0!==o.length)return o}};var kE={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},TE=/[A-Z]|^ms/g,NE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,RE=function(e){return 45===e.charCodeAt(1)},AE=function(e){return null!=e&&"boolean"!=typeof e},OE=jx((function(e){return RE(e)?e:e.replace(TE,"-$&").toLowerCase()})),LE=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(NE,(function(e,t,n){return PE={name:t,styles:n,next:PE},t}))}return 1===kE[e]||RE(e)||"number"!=typeof t||0===t?t:t+"px"};function ME(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 PE={name:o.name,styles:o.styles,next:PE},o.name;var i=n;if(void 0!==i.styles){var l=i.next;if(void 0!==l)for(;void 0!==l;)PE={name:l.name,styles:l.styles,next:PE},l=l.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ME(e,t,n[o])+";";else for(var i in n){var l=n[i];if("object"!=typeof l){var a=l;null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":AE(a)&&(r+=OE(i)+":"+LE(i,a)+";")}else if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var s=ME(e,t,l);switch(i){case"animation":case"animationName":r+=OE(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<l.length;u++)AE(l[u])&&(r+=OE(i)+":"+LE(i,l[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=PE,s=n(e);return PE=a,ME(e,t,s)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var PE,IE=/label:\s*([^\s;{]+)\s*(;|$)/g;function DE(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="";PE=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ME(n,t,i)):o+=i[0];for(var l=1;l<e.length;l++){if(o+=ME(n,t,e[l]),r)o+=i[l]}IE.lastIndex=0;for(var a,s="";null!==(a=IE.exec(o));)s+="-"+a[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)+s;return{name:u,styles:o,next:PE}}var zE="undefined"!=typeof document,$E=function(e){return e()},FE=!!ee.useInsertionEffect&&ee.useInsertionEffect,BE=zE&&FE||$E,HE=FE||J.useLayoutEffect,jE="undefined"!=typeof document,WE=J.createContext("undefined"!=typeof HTMLElement?X_({key:"css"}):null);WE.Provider;var KE=function(e){return J.forwardRef((function(t,n){var r=J.useContext(WE);return e(t,r,n)}))};jE||(KE=function(e){return function(t){var n=J.useContext(WE);return null===n?(n=X_({key:"css"}),J.createElement(WE.Provider,{value:n},e(t,n))):e(t,n)}});var UE=J.createContext({}),GE=KE((function(e,t){var n=DE([e.styles],void 0,J.useContext(UE));if(!jE){for(var r,o=n.name,i=n.styles,l=n.next;void 0!==l;)o+=" "+l.name,i+=l.styles,l=l.next;var a=!0===t.compat,s=t.insert("",{name:o,styles:i},t.sheet,a);return a?null:J.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:s},r.nonce=t.sheet.nonce,r))}var u=J.useRef();return HE((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),u.current=[r,o],function(){r.flush()}}),[t]),HE((function(){var e=u.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&SE(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function YE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return DE(t)}var VE=function(){var e=YE.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_"}}},QE=Kx,qE=function(e){return"theme"!==e},XE=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?QE:qE},JE=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},ZE="undefined"!=typeof document,eC=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;wE(t,n,r);var o=BE((function(){return SE(t,n,r)}));if(!ZE&&void 0!==o){for(var i,l=n.name,a=n.next;void 0!==a;)l+=" "+a.name,a=a.next;return J.createElement("style",((i={})["data-emotion"]=t.key+" "+l,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},tC=function e(t,n){var r,o,i=t.__emotion_real===t,l=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var a=JE(t,n,i),s=a||XE(l),u=!s("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;p<f;p++)d.push(c[p],c[0][p])}var m=KE((function(e,t,n){var r,i,c,f,p=u&&e.as||l,m="",h=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=J.useContext(UE)}"string"==typeof e.className?(r=t.registered,i=h,c=e.className,f="",c.split(" ").forEach((function(e){void 0!==r[e]?i.push(r[e]+";"):e&&(f+=e+" ")})),m=f):null!=e.className&&(m=e.className+" ");var b=DE(d.concat(h),t.registered,g);m+=t.key+"-"+b.name,void 0!==o&&(m+=" "+o);var y=u&&void 0===a?XE(p):s,x={};for(var _ in e)u&&"as"===_||y(_)&&(x[_]=e[_]);return x.className=m,x.ref=n,J.createElement(J.Fragment,null,J.createElement(eC,{cache:t,serialized:b,isStringTag:"string"==typeof p}),J.createElement(p,x))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=l,m.__emotion_styles=d,m.__emotion_forwardProp=a,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,Wy({},n,r,{shouldForwardProp:JE(m,r,!0)})).apply(void 0,d)},m}}.bind();["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){tC[e]=tC(e)}));var nC={exports:{}},rC={},oC=J,iC=Symbol.for("react.element"),lC=Symbol.for("react.fragment"),aC=Object.prototype.hasOwnProperty,sC=oC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uC={key:!0,ref:!0,__self:!0,__source:!0};function cC(e,t,n){var r,o={},i=null,l=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(l=t.ref),t)aC.call(t,r)&&!uC.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:iC,type:e,key:i,ref:l,props:o,_owner:sC.current}}rC.Fragment=lC,rC.jsx=cC,rC.jsxs=cC,nC.exports=rC;var dC=nC.exports;function fC(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 dC.jsx(GE,{styles:r})}
16
+ */function M(){if(T)return x;T=1;var e=w(),t=L();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){l(e,t),l(e+"Capture",t)}function l(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var a=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function f(e,t,n,r,o,i,l){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=l}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function h(e){return e[1].toUpperCase()}function g(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!s.call(d,e)||!s.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,h);p[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,h);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,h);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),y=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),k=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),I=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||e["@@iterator"])?e:null}var z,$=Object.assign;function F(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+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"),l=o.length-1,a=i.length-1;1<=l&&0<=a&&o[l]!==i[a];)a--;for(;1<=l&&0<=a;l--,a--)if(o[l]!==i[a]){if(1!==l||1!==a)do{if(l--,0>--a||o[l]!==i[a]){var s="\n"+o[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=l&&0<=a);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function j(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 1:return e=H(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case y:return"Portal";case C:return"Profiler";case E:return"StrictMode";case R:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===E?"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 U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function Z(e,t){J(e,t);var n=U(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,U(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=""+U(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 $({},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:U(r)}}function le(e,t){var n=U(t.value),r=U(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 ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=$({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 Ee=null,Ce=null,we=null;function Se(e){if(e=xo(e)){if("function"!=typeof Ee)throw Error(n(280));var t=e.stateNode;t&&(t=Eo(t),Ee(e.stateNode,e.type,t))}}function ke(e){Ce?we?we.push(e):we=[e]:Ce=e}function Te(){if(Ce){var e=Ce,t=we;if(we=Ce=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Ne(e,t){return e(t)}function Re(){}var Ae=!1;function Oe(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Ne(e,t,n)}finally{Ae=!1,(null!==Ce||null!==we)&&(Re(),Te())}}function Le(e,t){var r=e.stateNode;if(null===r)return null;var o=Eo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Me=!1;if(a)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(e){Me=!1}function Ie(e,t,n,r,o,i,l,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var De=!1,ze=null,$e=!1,Fe=null,Be={onError:function(e){De=!0,ze=e}};function He(e,t,n,r,o,i,l,a,s){De=!1,ze=null,Ie.apply(Be,arguments)}function je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ke(e){if(je(e)!==e)throw Error(n(188))}function Ue(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=je(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var l=i.alternate;if(null===l){if(null!==(o=i.return)){r=o;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===r)return Ke(i),e;if(l===o)return Ke(i),t;l=l.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=l;else{for(var a=!1,s=i.child;s;){if(s===r){a=!0,r=i,o=l;break}if(s===o){a=!0,o=i,r=l;break}s=s.sibling}if(!a){for(s=l.child;s;){if(s===r){a=!0,r=l,o=i;break}if(s===o){a=!0,o=l,r=i;break}s=s.sibling}if(!a)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ye=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,Qe=t.unstable_shouldYield,qe=t.unstable_requestPaint,Xe=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,Ze=t.unstable_ImmediatePriority,et=t.unstable_UserBlockingPriority,tt=t.unstable_NormalPriority,nt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,it=null;var lt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(at(e)/st|0)|0},at=Math.log,st=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=268435455&n;if(0!==l){var a=l&~o;0!==a?r=dt(a):0!==(i&=l)&&(r=dt(i))}else 0!==(l=n&~o)?r=dt(l):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-lt(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 mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-lt(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lt(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,Et,Ct,wt,St,kt=!1,Tt=[],Nt=null,Rt=null,At=null,Ot=new Map,Lt=new Map,Mt=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Dt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&Et(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zt(e){var t=yo(e.target);if(null!==t){var n=je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void St(e.priority,(function(){Ct(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function $t(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))&&Et(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){$t(e)&&n.delete(t)}function Bt(){kt=!1,null!==Nt&&$t(Nt)&&(Nt=null),null!==Rt&&$t(Rt)&&(Rt=null),null!==At&&$t(At)&&(At=null),Ot.forEach(Ft),Lt.forEach(Ft)}function Ht(e,n){e.blockedOn===n&&(e.blockedOn=null,kt||(kt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function jt(e){function t(t){return Ht(t,e)}if(0<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!==Nt&&Ht(Nt,e),null!==Rt&&Ht(Rt,e),null!==At&&Ht(At,e),Ot.forEach(t),Lt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)zt(n),null===n.blockedOn&&Mt.shift()}var Wt=v.ReactCurrentBatchConfig,Kt=!0;function Ut(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=1,Yt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Gt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=4,Yt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Yt(e,t,n,r){if(Kt){var o=Qt(e,t,n,r);if(null===o)Kr(e,t,r,Vt,n),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Nt=Dt(Nt,e,t,n,r,o),!0;case"dragenter":return Rt=Dt(Rt,e,t,n,r,o),!0;case"mouseover":return At=Dt(At,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ot.set(i,Dt(Ot.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lt.set(i,Dt(Lt.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))&&Kr(e,t,r,Vt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Kr(e,t,r,null,n)}}var Vt=null;function Qt(e,t,n,r){if(Vt=null,null!==(e=yo(e=_e(r))))if(null===(t=je(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vt=e,null}function qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var l=r-e;for(t=1;t<=l&&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 l in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(l)&&(t=e[l],this[l]=t?t(o):o[l]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return $(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 ln,an,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=$({},un,{view:0,detail:0}),fn=on(dn),pn=$({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(ln=e.screenX-sn.screenX,an=e.screenY-sn.screenY):an=ln=0,sn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:an}}),mn=on(pn),hn=on($({},pn,{dataTransfer:0})),gn=on($({},dn,{relatedTarget:0})),vn=on($({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=$({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),xn=on($({},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"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function Sn(){return wn}var kn=$({},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?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,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(kn),Nn=on($({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on($({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),An=on($({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=$({},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}),Ln=on(On),Mn=[9,13,27,32],Pn=a&&"CompositionEvent"in window,In=null;a&&"documentMode"in document&&(In=document.documentMode);var Dn=a&&"TextEvent"in window&&!In,zn=a&&(!Pn||In&&8<In&&11>=In),$n=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var jn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Kn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Un(e,t,n,r){ke(r),0<(t=Gr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Yn=null;function Vn(e){$r(e,0)}function Qn(e){if(V(_o(e)))return e}function qn(e,t){if("change"===e)return t}var Xn=!1;if(a){var Jn;if(a){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Yn=Gn=null)}function nr(e){if("value"===e.propertyName&&Qn(Yn)){var t=[];Un(t,Yn,e,_e(e)),Oe(Vn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Yn)}function ir(e,t){if("click"===e)return Qn(t)}function lr(e,t){if("input"===e||"change"===e)return Qn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!s.call(t,o)||!ar(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 mr(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 l=cr(n,r);o&&l&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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 hr=a&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Q(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Cr={},wr={};function Sr(e){if(Cr[e])return Cr[e];if(!Er[e])return e;var t,n=Er[e];for(t in n)if(n.hasOwnProperty(t)&&t in wr)return Cr[e]=n[t];return e}a&&(wr=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);var kr=Sr("animationend"),Tr=Sr("animationiteration"),Nr=Sr("animationstart"),Rr=Sr("transitionend"),Ar=new Map,Or="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 Lr(e,t){Ar.set(e,t),i(t,[e])}for(var Mr=0;Mr<Or.length;Mr++){var Pr=Or[Mr];Lr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Lr(kr,"onAnimationEnd"),Lr(Tr,"onAnimationIteration"),Lr(Nr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Rr,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function zr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,l,a,s,u){if(He.apply(this,arguments),De){if(!De)throw Error(n(198));var c=ze;De=!1,ze=null,$e||($e=!0,Fe=c)}}(o,t,void 0,e),e.currentTarget=null}function $r(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 l=r.length-1;0<=l;l--){var a=r[l],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==i&&o.isPropagationStopped())break e;zr(o,a,u),i=s}else for(l=0;l<r.length;l++){if(s=(a=r[l]).instance,u=a.currentTarget,a=a.listener,s!==i&&o.isPropagationStopped())break e;zr(o,a,u),i=s}}}if($e)throw e=Fe,$e=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function jr(e){if(!e[Hr]){e[Hr]=!0,r.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,Br("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(qt(t)){case 1:var o=Ut;break;case 4:o=Gt;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Kr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var a=r.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===l)for(l=r.return;null!==l;){var s=l.tag;if((3===s||4===s)&&((s=l.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;l=l.return}for(;null!==a;){if(null===(l=yo(a)))return;if(5===(s=l.tag)||6===s){r=i=l;continue e}a=a.parentNode}}r=r.return}Oe((function(){var r=i,o=_e(n),l=[];e:{var a=Ar.get(e);if(void 0!==a){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Tn;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Rn;break;case kr:case Tr:case Nr:s=vn;break;case Rr:s=An;break;case"scroll":s=fn;break;case"wheel":s=Ln;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Nn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==a?a+"Capture":null:a;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&(null!=(h=Le(m,f))&&c.push(Ur(m,h,p)))),d)break;m=m.return}0<c.length&&(a=new s(a,u,null,n,o),l.push({event:a,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!yo(u)&&!u[ho])&&(s||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?yo(u):null)&&(u!==(d=je(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=mn,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nn,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?a:_o(s),p=null==u?a:_o(u),(a=new c(h,m+"leave",s,n,o)).target=d,a.relatedTarget=p,h=null,yo(o)===r&&((c=new c(f,m+"enter",u,n,o)).target=p,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(f=u,m=0,p=c=s;p;p=Yr(p))m++;for(p=0,h=f;h;h=Yr(h))p++;for(;0<m-p;)c=Yr(c),m--;for(;0<p-m;)f=Yr(f),p--;for(;m--;){if(c===f||null!==f&&c===f.alternate)break e;c=Yr(c),f=Yr(f)}c=null}else c=null;null!==s&&Vr(l,a,s,c,!1),null!==u&&null!==d&&Vr(l,d,u,c,!0)}if("select"===(s=(a=r?_o(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===s&&"file"===a.type)var g=qn;else if(Kn(a))if(Xn)g=lr;else{g=or;var v=rr}else(s=a.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=ir);switch(g&&(g=g(e,r))?Un(l,g,n,o):(v&&v(e,a,r),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&te(a,"number",a.value)),v=r?_o(r):window,e){case"focusin":(Kn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,br=null);break;case"focusout":br=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(l,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":xr(l,n,o)}var b;if(Pn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else jn?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(zn&&"ko"!==n.locale&&(jn||"onCompositionStart"!==y?"onCompositionEnd"===y&&jn&&(b=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,jn=!0)),0<(v=Gr(r,y)).length&&(y=new xn(y,e,null,n,o),l.push({event:y,listeners:v}),b?y.data=b:null!==(b=Hn(n))&&(y.data=b))),(b=Dn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Fn=!0,$n);case"textInput":return(e=t.data)===$n&&Fn?null:e;default:return null}}(e,n):function(e,t){if(jn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Zt=Jt=Xt=null,jn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),l.push({event:o,listeners:r}),o.data=b))}$r(l,t)}))}function Ur(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=Le(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=Le(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vr(e,t,n,r,o){for(var i=t._reactName,l=[];null!==n&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(null!==s&&s===r)break;5===a.tag&&null!==u&&(a=u,o?null!=(s=Le(n,i))&&l.unshift(Ur(n,s,a)):o||null!=(s=Le(n,i))&&l.push(Ur(n,s,a))),n=n.return}0!==l.length&&e.push({event:t,listeners:l})}var Qr=/\r\n?/g,qr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(qr,"")}function Jr(e,t,r){if(t=Xr(t),Xr(e)!==t&&r)throw Error(n(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,lo="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(ao)}:ro;function ao(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void jt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);jt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,mo="__reactProps$"+fo,ho="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ho]||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[ho])||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 Eo(e){return e[mo]||null}var Co=[],wo=-1;function So(e){return{current:e}}function ko(e){0>wo||(e.current=Co[wo],Co[wo]=null,wo--)}function To(e,t){wo++,Co[wo]=e.current,e.current=t}var No={},Ro=So(No),Ao=So(!1),Oo=No;function Lo(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!=(e=e.childContextTypes)}function Po(){ko(Ao),ko(Ro)}function Io(e,t,r){if(Ro.current!==No)throw Error(n(168));To(Ro,t),To(Ao,r)}function Do(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,K(e)||"Unknown",i));return $({},r,o)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,Oo=Ro.current,To(Ro,e),To(Ao,Ao.current),!0}function $o(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Do(e,t,Oo),o.__reactInternalMemoizedMergedChildContext=e,ko(Ao),ko(Ro),To(Ro,e)):ko(Ao),To(Ao,r)}var Fo=null,Bo=!1,Ho=!1;function jo(e){null===Fo?Fo=[e]:Fo.push(e)}function Wo(){if(!Ho&&null!==Fo){Ho=!0;var e=0,t=yt;try{var n=Fo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ye(Ze,Wo),t}finally{yt=t,Ho=!1}}return null}var Ko=[],Uo=0,Go=null,Yo=0,Vo=[],Qo=0,qo=null,Xo=1,Jo="";function Zo(e,t){Ko[Uo++]=Yo,Ko[Uo++]=Go,Go=e,Yo=t}function ei(e,t,n){Vo[Qo++]=Xo,Vo[Qo++]=Jo,Vo[Qo++]=qo,qo=e;var r=Xo;e=Jo;var o=32-lt(r)-1;r&=~(1<<o),n+=1;var i=32-lt(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,Xo=1<<32-lt(t)+o|n<<o|r,Jo=i+e}else Xo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Go;)Go=Ko[--Uo],Ko[Uo]=null,Yo=Ko[--Uo],Ko[Uo]=null;for(;e===qo;)qo=Vo[--Qo],Vo[Qo]=null,Jo=Vo[--Qo],Vo[Qo]=null,Xo=Vo[--Qo],Vo[Qo]=null}var ri=null,oi=null,ii=!1,li=null;function ai(e,t){var n=Lu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qo?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var r=t;if(!si(e,t)){if(ui(e))throw Error(n(418));t=uo(r.nextSibling);var o=ri;t&&si(e,t)?ai(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;)ai(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 mi(){oi=ri=null,ii=!1}function hi(e){null===li?li=[e]:li.push(e)}var gi=v.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=$({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bi=So(null),yi=null,xi=null,_i=null;function Ei(){_i=xi=yi=null}function Ci(e){var t=bi.current;ko(bi),e._currentValue=t}function wi(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 Si(e,t){yi=e,_i=xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(xa=!0),e.firstContext=null)}function ki(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===xi){if(null===yi)throw Error(n(308));xi=e,yi.dependencies={lanes:0,firstContext:e}}else xi=xi.next=e;return t}var Ti=null;function Ni(e){null===Ti?Ti=[e]:Ti.push(e)}function Ri(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ni(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ai(e,r)}function Ai(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 Oi=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mi(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 Pi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ii(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Rs){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ai(e,n)}return null===(o=r.interleaved)?(t.next=t,Ni(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ai(e,n)}function Di(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 zi(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 l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=l:i=i.next=l,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;Oi=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var s=a,u=s.next;s.next=null,null===l?i=u:l.next=u,l=s;var c=e.alternate;null!==c&&((a=(c=c.updateQueue).lastBaseUpdate)!==l&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(l=0,c=u=s=null,a=i;;){var f=a.lane,p=a.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,h=a;switch(f=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=h.payload)?m.call(p,d,f):m))break e;d=$({},d,f);break e;case 2:Oi=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,l|=f;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(f=a).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{l|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);zs|=l,e.lanes=l,e.memoizedState=d}}function Fi(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 Bi=(new e.Component).refs;function Hi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:$({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ji={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=Pi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ii(e,i,o))&&(ru(t,e,o,r),Di(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=Pi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ii(e,i,o))&&(ru(t,e,o,r),Di(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=Pi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ii(e,o,r))&&(ru(t,e,r,n),Di(t,e,r))}};function Wi(e,t,n,r,o,i,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,l):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,i))}function Ki(e,t,n){var r=!1,o=No,i=t.contextType;return"object"==typeof i&&null!==i?i=ki(i):(o=Mo(t)?Oo:Ro.current,i=(r=null!=(r=t.contextTypes))?Lo(e,o):No),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ji,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ui(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&&ji.enqueueReplaceState(t,t.state,null)}function Gi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Bi,Li(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ki(i):(i=Mo(t)?Oo:Ro.current,o.context=Lo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Hi(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&&ji.enqueueReplaceState(o,o.state,null),$i(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Yi(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,l=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===l?t.ref:(t=function(e){var t=i.refs;t===Bi&&(t=i.refs={}),null===e?delete t[l]:t[l]=e},t._stringRef=l,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Vi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qi(e){return(0,e._init)(e._payload)}function qi(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=Pu(e,t)).index=0,e.sibling=null,e}function l(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 a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=$u(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===_?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===M&&Qi(o)===t.type)?((r=i(t,n.props)).ref=Yi(e,t,n),r.return=e,r):((r=Iu(n.type,n.key,n.props,null,e.mode,r)).ref=Yi(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=Fu(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=Du(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=$u(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=Iu(t.type,t.key,t.props,null,e.mode,n)).ref=Yi(e,null,t),n.return=e,n;case y:return(t=Fu(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||D(t))return(t=Du(t,e.mode,n,null)).return=e,t;Vi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===o?u(e,t,n,r):null;case y:return n.key===o?c(e,t,n,r):null;case M:return p(e,t,(o=n._init)(n._payload),r)}if(ne(n)||D(n))return null!==o?null:d(e,t,n,r,null);Vi(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case y:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return m(e,t,n,(0,r._init)(r._payload),o)}if(ne(r)||D(r))return d(t,e=e.get(n)||null,r,o,null);Vi(t,r)}return null}function h(n,i,a,s){for(var u=null,c=null,d=i,h=i=0,g=null;null!==d&&h<a.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var v=p(n,d,a[h],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=l(v,i,h),null===c?u=v:c.sibling=v,c=v,d=g}if(h===a.length)return r(n,d),ii&&Zo(n,h),u;if(null===d){for(;h<a.length;h++)null!==(d=f(n,a[h],s))&&(i=l(d,i,h),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(n,h),u}for(d=o(n,d);h<a.length;h++)null!==(g=m(d,n,h,a[h],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),i=l(g,i,h),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(n,e)})),ii&&Zo(n,h),u}function g(i,a,s,u){var c=D(s);if("function"!=typeof c)throw Error(n(150));if(null==(s=c.call(s)))throw Error(n(151));for(var d=c=null,h=a,g=a=0,v=null,b=s.next();null!==h&&!b.done;g++,b=s.next()){h.index>g?(v=h,h=null):v=h.sibling;var y=p(i,h,b.value,u);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(i,h),a=l(y,a,g),null===d?c=y:d.sibling=y,d=y,h=v}if(b.done)return r(i,h),ii&&Zo(i,g),c;if(null===h){for(;!b.done;g++,b=s.next())null!==(b=f(i,b.value,u))&&(a=l(b,a,g),null===d?c=b:d.sibling=b,d=b);return ii&&Zo(i,g),c}for(h=o(i,h);!b.done;g++,b=s.next())null!==(b=m(h,i,g,b.value,u))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),a=l(b,a,g),null===d?c=b:d.sibling=b,d=b);return e&&h.forEach((function(e){return t(i,e)})),ii&&Zo(i,g),c}return function e(n,o,l,s){if("object"==typeof l&&null!==l&&l.type===_&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case b:e:{for(var u=l.key,c=o;null!==c;){if(c.key===u){if((u=l.type)===_){if(7===c.tag){r(n,c.sibling),(o=i(c,l.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===M&&Qi(u)===c.type){r(n,c.sibling),(o=i(c,l.props)).ref=Yi(n,c,l),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}l.type===_?((o=Du(l.props.children,n.mode,s,l.key)).return=n,n=o):((s=Iu(l.type,l.key,l.props,null,n.mode,s)).ref=Yi(n,o,l),s.return=n,n=s)}return a(n);case y:e:{for(c=l.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===l.containerInfo&&o.stateNode.implementation===l.implementation){r(n,o.sibling),(o=i(o,l.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=Fu(l,n.mode,s)).return=n,n=o}return a(n);case M:return e(n,o,(c=l._init)(l._payload),s)}if(ne(l))return h(n,o,l,s);if(D(l))return g(n,o,l,s);Vi(n,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,l)).return=n,n=o):(r(n,o),(o=$u(l,n.mode,s)).return=n,n=o),a(n)):r(n,o)}}var Xi=qi(!0),Ji=qi(!1),Zi={},el=So(Zi),tl=So(Zi),nl=So(Zi);function rl(e){if(e===Zi)throw Error(n(174));return e}function ol(e,t){switch(To(nl,t),To(tl,e),To(el,Zi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko(el),To(el,t)}function il(){ko(el),ko(tl),ko(nl)}function ll(e){rl(nl.current);var t=rl(el.current),n=ue(t,e.type);t!==n&&(To(tl,e),To(el,n))}function al(e){tl.current===e&&(ko(el),ko(tl))}var sl=So(0);function ul(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 cl=[];function dl(){for(var e=0;e<cl.length;e++)cl[e]._workInProgressVersionPrimary=null;cl.length=0}var fl=v.ReactCurrentDispatcher,pl=v.ReactCurrentBatchConfig,ml=0,hl=null,gl=null,vl=null,bl=!1,yl=!1,xl=0,_l=0;function El(){throw Error(n(321))}function Cl(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function wl(e,t,r,o,i,l){if(ml=l,hl=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fl.current=null===e||null===e.memoizedState?aa:sa,e=r(o,i),yl){l=0;do{if(yl=!1,xl=0,25<=l)throw Error(n(301));l+=1,vl=gl=null,t.updateQueue=null,fl.current=ua,e=r(o,i)}while(yl)}if(fl.current=la,t=null!==gl&&null!==gl.next,ml=0,vl=gl=hl=null,bl=!1,t)throw Error(n(300));return e}function Sl(){var e=0!==xl;return xl=0,e}function kl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vl?hl.memoizedState=vl=e:vl=vl.next=e,vl}function Tl(){if(null===gl){var e=hl.alternate;e=null!==e?e.memoizedState:null}else e=gl.next;var t=null===vl?hl.memoizedState:vl.next;if(null!==t)vl=t,gl=e;else{if(null===e)throw Error(n(310));e={memoizedState:(gl=e).memoizedState,baseState:gl.baseState,baseQueue:gl.baseQueue,queue:gl.queue,next:null},null===vl?hl.memoizedState=vl=e:vl=vl.next=e}return vl}function Nl(e,t){return"function"==typeof t?t(e):t}function Rl(e){var t=Tl(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=gl,i=o.baseQueue,l=r.pending;if(null!==l){if(null!==i){var a=i.next;i.next=l.next,l.next=a}o.baseQueue=i=l,r.pending=null}if(null!==i){l=i.next,o=o.baseState;var s=a=null,u=null,c=l;do{var d=c.lane;if((ml&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,a=o):u=u.next=f,hl.lanes|=d,zs|=d}c=c.next}while(null!==c&&c!==l);null===u?a=o:u.next=s,ar(o,t.memoizedState)||(xa=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{l=i.lane,hl.lanes|=l,zs|=l,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Al(e){var t=Tl(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,l=t.memoizedState;if(null!==i){r.pending=null;var a=i=i.next;do{l=e(l,a.action),a=a.next}while(a!==i);ar(l,t.memoizedState)||(xa=!0),t.memoizedState=l,null===t.baseQueue&&(t.baseState=l),r.lastRenderedState=l}return[l,o]}function Ol(){}function Ll(e,t){var r=hl,o=Tl(),i=t(),l=!ar(o.memoizedState,i);if(l&&(o.memoizedState=i,xa=!0),o=o.queue,Kl(Il.bind(null,r,o,e),[e]),o.getSnapshot!==t||l||null!==vl&&1&vl.memoizedState.tag){if(r.flags|=2048,Fl(9,Pl.bind(null,r,o,i,t),void 0,null),null===As)throw Error(n(349));30&ml||Ml(r,t,i)}return i}function Ml(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hl.updateQueue)?(t={lastEffect:null,stores:null},hl.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pl(e,t,n,r){t.value=n,t.getSnapshot=r,Dl(t)&&zl(e)}function Il(e,t,n){return n((function(){Dl(t)&&zl(e)}))}function Dl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(e){return!0}}function zl(e){var t=Ai(e,1);null!==t&&ru(t,e,1,-1)}function $l(e){var t=kl();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:e},t.queue=e,e=e.dispatch=na.bind(null,hl,e),[t.memoizedState,e]}function Fl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hl.updateQueue)?(t={lastEffect:null,stores:null},hl.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 Bl(){return Tl().memoizedState}function Hl(e,t,n,r){var o=kl();hl.flags|=e,o.memoizedState=Fl(1|t,n,void 0,void 0===r?null:r)}function jl(e,t,n,r){var o=Tl();r=void 0===r?null:r;var i=void 0;if(null!==gl){var l=gl.memoizedState;if(i=l.destroy,null!==r&&Cl(r,l.deps))return void(o.memoizedState=Fl(t,n,i,r))}hl.flags|=e,o.memoizedState=Fl(1|t,n,i,r)}function Wl(e,t){return Hl(8390656,8,e,t)}function Kl(e,t){return jl(2048,8,e,t)}function Ul(e,t){return jl(4,2,e,t)}function Gl(e,t){return jl(4,4,e,t)}function Yl(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 Vl(e,t,n){return n=null!=n?n.concat([e]):null,jl(4,4,Yl.bind(null,t,e),n)}function Ql(){}function ql(e,t){var n=Tl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Cl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xl(e,t){var n=Tl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Cl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jl(e,t,n){return 21&ml?(ar(n,t)||(n=ht(),hl.lanes|=n,zs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xa=!0),e.memoizedState=n)}function Zl(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=pl.transition;pl.transition={};try{e(!1),t()}finally{yt=n,pl.transition=r}}function ea(){return Tl().memoizedState}function ta(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ra(e))oa(t,n);else if(null!==(n=Ri(e,t,n,r))){ru(n,e,r,tu()),ia(n,t,r)}}function na(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ra(e))oa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,ar(a,l)){var s=t.interleaved;return null===s?(o.next=o,Ni(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ri(e,t,o,r))&&(ru(n,e,r,o=tu()),ia(n,t,r))}}function ra(e){var t=e.alternate;return e===hl||null!==t&&t===hl}function oa(e,t){yl=bl=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ia(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var la={readContext:ki,useCallback:El,useContext:El,useEffect:El,useImperativeHandle:El,useInsertionEffect:El,useLayoutEffect:El,useMemo:El,useReducer:El,useRef:El,useState:El,useDebugValue:El,useDeferredValue:El,useTransition:El,useMutableSource:El,useSyncExternalStore:El,useId:El,unstable_isNewReconciler:!1},aa={readContext:ki,useCallback:function(e,t){return kl().memoizedState=[e,void 0===t?null:t],e},useContext:ki,useEffect:Wl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Hl(4194308,4,Yl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hl(4,2,e,t)},useMemo:function(e,t){var n=kl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kl();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=ta.bind(null,hl,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},kl().memoizedState=e},useState:$l,useDebugValue:Ql,useDeferredValue:function(e){return kl().memoizedState=e},useTransition:function(){var e=$l(!1),t=e[0];return e=Zl.bind(null,e[1]),kl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=hl,i=kl();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===As)throw Error(n(349));30&ml||Ml(o,t,r)}i.memoizedState=r;var l={value:r,getSnapshot:t};return i.queue=l,Wl(Il.bind(null,o,l,e),[e]),o.flags|=2048,Fl(9,Pl.bind(null,o,l,r,t),void 0,null),r},useId:function(){var e=kl(),t=As.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-lt(Xo)-1)).toString(32)+n),0<(n=xl++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_l++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sa={readContext:ki,useCallback:ql,useContext:ki,useEffect:Kl,useImperativeHandle:Vl,useInsertionEffect:Ul,useLayoutEffect:Gl,useMemo:Xl,useReducer:Rl,useRef:Bl,useState:function(){return Rl(Nl)},useDebugValue:Ql,useDeferredValue:function(e){return Jl(Tl(),gl.memoizedState,e)},useTransition:function(){return[Rl(Nl)[0],Tl().memoizedState]},useMutableSource:Ol,useSyncExternalStore:Ll,useId:ea,unstable_isNewReconciler:!1},ua={readContext:ki,useCallback:ql,useContext:ki,useEffect:Kl,useImperativeHandle:Vl,useInsertionEffect:Ul,useLayoutEffect:Gl,useMemo:Xl,useReducer:Al,useRef:Bl,useState:function(){return Al(Nl)},useDebugValue:Ql,useDeferredValue:function(e){var t=Tl();return null===gl?t.memoizedState=e:Jl(t,gl.memoizedState,e)},useTransition:function(){return[Al(Nl)[0],Tl().memoizedState]},useMutableSource:Ol,useSyncExternalStore:Ll,useId:ea,unstable_isNewReconciler:!1};function ca(e,t){try{var n="",r=t;do{n+=j(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function da(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fa(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pa="function"==typeof WeakMap?WeakMap:Map;function ma(e,t,n){(n=Pi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Us||(Us=!0,Gs=r),fa(0,t)},n}function ha(e,t,n){(n=Pi(-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(){fa(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fa(0,t),"function"!=typeof r&&(null===Ys?Ys=new Set([this]):Ys.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ga(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pa;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=ku.bind(null,e,t,n),t.then(e,e))}function va(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 ba(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=Pi(-1,1)).tag=2,Ii(n,t,1))),n.lanes|=1),e)}var ya=v.ReactCurrentOwner,xa=!1;function _a(e,t,n,r){t.child=null===e?Ji(t,null,n,r):Xi(t,e.child,n,r)}function Ea(e,t,n,r,o){n=n.render;var i=t.ref;return Si(t,o),r=wl(e,t,n,r,i,o),n=Sl(),null===e||xa?(ii&&n&&ti(t),t.flags|=1,_a(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Ca(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Mu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Iu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,wa(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(l,r)&&e.ref===t.ref)return Ua(e,t,o)}return t.flags|=1,(e=Pu(i,r)).ref=t.ref,e.return=t,t.child=e}function wa(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(xa=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Ua(e,t,o);131072&e.flags&&(xa=!0)}}return Ta(e,t,n,r,o)}function Sa(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(Ps,Ms),Ms|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ps,Ms),Ms|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ps,Ms),Ms|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ps,Ms),Ms|=r;return _a(e,t,o,n),t.child}function ka(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ta(e,t,n,r,o){var i=Mo(n)?Oo:Ro.current;return i=Lo(t,i),Si(t,o),n=wl(e,t,n,r,i,o),r=Sl(),null===e||xa?(ii&&r&&ti(t),t.flags|=1,_a(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Na(e,t,n,r,o){if(Mo(n)){var i=!0;zo(t)}else i=!1;if(Si(t,o),null===t.stateNode)Ka(e,t),Ki(t,n,r),Gi(t,n,r,o),r=!0;else if(null===e){var l=t.stateNode,a=t.memoizedProps;l.props=a;var s=l.context,u=n.contextType;"object"==typeof u&&null!==u?u=ki(u):u=Lo(t,u=Mo(n)?Oo:Ro.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof l.getSnapshotBeforeUpdate;d||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(a!==r||s!==u)&&Ui(t,l,r,u),Oi=!1;var f=t.memoizedState;l.state=f,$i(t,r,l,o),s=t.memoizedState,a!==r||f!==s||Ao.current||Oi?("function"==typeof c&&(Hi(t,n,c,r),s=t.memoizedState),(a=Oi||Wi(t,n,a,r,f,s,u))?(d||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.flags|=4194308)):("function"==typeof l.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=u,r=a):("function"==typeof l.componentDidMount&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Mi(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:vi(t.type,a),l.props=u,d=t.pendingProps,f=l.context,"object"==typeof(s=n.contextType)&&null!==s?s=ki(s):s=Lo(t,s=Mo(n)?Oo:Ro.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(a!==d||f!==s)&&Ui(t,l,r,s),Oi=!1,f=t.memoizedState,l.state=f,$i(t,r,l,o);var m=t.memoizedState;a!==d||f!==m||Ao.current||Oi?("function"==typeof p&&(Hi(t,n,p,r),m=t.memoizedState),(u=Oi||Wi(t,n,u,r,f,m,s)||!1)?(c||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(r,m,s),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof l.componentDidUpdate&&(t.flags|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof l.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),l.props=r,l.state=m,l.context=s,r=u):("function"!=typeof l.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ra(e,t,n,r,i,o)}function Ra(e,t,n,r,o,i){ka(e,t);var l=!!(128&t.flags);if(!r&&!l)return o&&$o(t,n,!1),Ua(e,t,i);r=t.stateNode,ya.current=t;var a=l&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&l?(t.child=Xi(t,e.child,null,i),t.child=Xi(t,null,a,i)):_a(e,t,a,i),t.memoizedState=r.state,o&&$o(t,n,!0),t.child}function Aa(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),ol(e,t.containerInfo)}function Oa(e,t,n,r,o){return mi(),hi(o),t.flags|=256,_a(e,t,n,r),t.child}var La,Ma,Pa,Ia,Da={dehydrated:null,treeContext:null,retryLane:0};function za(e){return{baseLanes:e,cachePool:null,transitions:null}}function $a(e,t,r){var o,i=t.pendingProps,l=sl.current,a=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&l)),o?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(l|=1),To(sl,1&l),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},1&i||null===a?a=zu(s,i,0,null):(a.childLanes=0,a.pendingProps=s),e=Du(e,i,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=za(r),t.memoizedState=Da,e):Fa(t,s));if(null!==(l=e.memoizedState)&&null!==(o=l.dehydrated))return function(e,t,r,o,i,l,a){if(r)return 256&t.flags?(t.flags&=-257,Ba(e,t,a,o=da(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(l=o.fallback,i=t.mode,o=zu({mode:"visible",children:o.children},i,0,null),(l=Du(l,i,a,null)).flags|=2,o.return=t,l.return=t,o.sibling=l,t.child=o,1&t.mode&&Xi(t,e.child,null,a),t.child.memoizedState=za(a),t.memoizedState=Da,l);if(!(1&t.mode))return Ba(e,t,a,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var s=o.dgst;return o=s,Ba(e,t,a,o=da(l=Error(n(419)),o,void 0))}if(s=!!(a&e.childLanes),xa||s){if(null!==(o=As)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(o.suspendedLanes|a)?0:i)&&i!==l.retryLane&&(l.retryLane=i,Ai(e,i),ru(o,e,i,-1))}return gu(),Ba(e,t,a,o=da(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Nu.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,oi=uo(i.nextSibling),ri=t,ii=!0,li=null,null!==e&&(Vo[Qo++]=Xo,Vo[Qo++]=Jo,Vo[Qo++]=qo,Xo=e.id,Jo=e.overflow,qo=t),t=Fa(t,o.children),t.flags|=4096,t)}(e,t,s,i,o,l,r);if(a){a=i.fallback,s=t.mode,o=(l=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&s||t.child===l?(i=Pu(l,u)).subtreeFlags=14680064&l.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==o?a=Pu(o,a):(a=Du(a,s,r,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?za(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~r,t.memoizedState=Da,i}return e=(a=e.child).sibling,i=Pu(a,{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 Fa(e,t){return(t=zu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ba(e,t,n,r){return null!==r&&hi(r),Xi(t,e.child,null,n),(e=Fa(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ha(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),wi(e.return,t,n)}function ja(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 Wa(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(_a(e,t,r.children,n),2&(r=sl.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&&Ha(e,n,t);else if(19===e.tag)Ha(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(sl,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ul(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ja(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===ul(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ja(t,!0,n,null,i);break;case"together":ja(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ka(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),zs|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Pu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Pu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ga(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 Ya(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 Va(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 Ya(t),null;case 1:case 17:return Mo(t.type)&&Po(),Ya(t),null;case 3:return i=t.stateNode,il(),ko(Ao),ko(Ro),dl(),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!==li&&(au(li),li=null))),Ma(e,t),Ya(t),null;case 5:al(t);var l=rl(nl.current);if(r=t.type,null!==e&&null!=t.stateNode)Pa(e,t,r,i,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Ya(t),null}if(e=rl(el.current),fi(t)){i=t.stateNode,r=t.type;var a=t.memoizedProps;switch(i[po]=t,i[mo]=a,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(l=0;l<Ir.length;l++)Fr(Ir[l],i);break;case"source":Fr("error",i);break;case"img":case"image":case"link":Fr("error",i),Fr("load",i);break;case"details":Fr("toggle",i);break;case"input":X(i,a),Fr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",i);break;case"textarea":ie(i,a),Fr("invalid",i)}for(var s in be(r,a),l=null,a)if(a.hasOwnProperty(s)){var u=a[s];"children"===s?"string"==typeof u?i.textContent!==u&&(!0!==a.suppressHydrationWarning&&Jr(i.textContent,u,e),l=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Jr(i.textContent,u,e),l=["children",""+u]):o.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Fr("scroll",i)}switch(r){case"input":Y(i),ee(i,a,!0);break;case"textarea":Y(i),ae(i);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(i.onclick=Zr)}i=l,t.updateQueue=i,null!==i&&(t.flags|=4)}else{s=9===l.nodeType?l:l.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=s.createElement(r,{is:i.is}):(e=s.createElement(r),"select"===r&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,r),e[po]=t,e[mo]=i,La(e,t,!1,!1),t.stateNode=e;e:{switch(s=ye(r,i),r){case"dialog":Fr("cancel",e),Fr("close",e),l=i;break;case"iframe":case"object":case"embed":Fr("load",e),l=i;break;case"video":case"audio":for(l=0;l<Ir.length;l++)Fr(Ir[l],e);l=i;break;case"source":Fr("error",e),l=i;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),l=i;break;case"details":Fr("toggle",e),l=i;break;case"input":X(e,i),l=q(e,i),Fr("invalid",e);break;case"option":default:l=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},l=$({},i,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,i),l=oe(e,i),Fr("invalid",e)}for(a in be(r,l),u=l)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==r||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(o.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Fr("scroll",e):null!=c&&g(e,a,c,s))}switch(r){case"input":Y(e),ee(e,i,!1);break;case"textarea":Y(e),ae(e);break;case"option":null!=i.value&&e.setAttribute("value",""+U(i.value));break;case"select":e.multiple=!!i.multiple,null!=(a=i.value)?re(e,!!i.multiple,a,!1):null!=i.defaultValue&&re(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof l.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 Ya(t),null;case 6:if(e&&null!=t.stateNode)Ia(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=rl(nl.current),rl(el.current),fi(t)){if(i=t.stateNode,r=t.memoizedProps,i[po]=t,(a=i.nodeValue!==r)&&null!==(e=ri))switch(e.tag){case 3:Jr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(i.nodeValue,r,!!(1&e.mode))}a&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[po]=t,t.stateNode=i}return Ya(t),null;case 13:if(ko(sl),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),mi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!a)throw Error(n(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(n(317));a[po]=t}else mi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ya(t),a=!1}else null!==li&&(au(li),li=null),a=!0;if(!a)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&sl.current?0===Is&&(Is=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ya(t),null);case 4:return il(),Ma(e,t),null===e&&jr(t.stateNode.containerInfo),Ya(t),null;case 10:return Ci(t.type._context),Ya(t),null;case 19:if(ko(sl),null===(a=t.memoizedState))return Ya(t),null;if(i=!!(128&t.flags),null===(s=a.rendering))if(i)Ga(a,!1);else{if(0!==Is||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ul(e))){for(t.flags|=128,Ga(a,!1),null!==(i=s.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(a=r).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return To(sl,1&sl.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Ws&&(t.flags|=128,i=!0,Ga(a,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ul(s))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ga(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ii)return Ya(t),null}else 2*Xe()-a.renderingStartTime>Ws&&1073741824!==r&&(t.flags|=128,i=!0,Ga(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=a.last)?r.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,r=sl.current,To(sl,i?1&r|2:1&r),t):(Ya(t),null);case 22:case 23:return fu(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Ms)&&(Ya(t),6&t.subtreeFlags&&(t.flags|=8192)):Ya(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Qa(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&Po(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return il(),ko(Ao),ko(Ro),dl(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return al(t),null;case 13:if(ko(sl),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));mi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(sl),null;case 4:return il(),null;case 10:return Ci(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}La=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}},Ma=function(){},Pa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,rl(el.current);var l,a=null;switch(n){case"input":i=q(e,i),r=q(e,r),a=[];break;case"select":i=$({},i,{value:void 0}),r=$({},r,{value:void 0}),a=[];break;case"textarea":i=oe(e,i),r=oe(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in be(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(l in s)!s.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&s[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),a||s===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ia=function(e,t,n,r){n!==r&&(t.flags|=4)};var qa=!1,Xa=!1,Ja="function"==typeof WeakSet?WeakSet:Set,Za=null;function es(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 ts(e,t,n){try{n()}catch(n){Su(e,t,n)}}var ns=!1;function rs(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&&ts(t,n,i)}o=o.next}while(o!==r)}}function os(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 is(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 ls(e){var t=e.alternate;null!==t&&(e.alternate=null,ls(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[mo],delete t[go],delete t[vo],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function as(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(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(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function cs(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(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var ds=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)ms(e,t,n),n=n.sibling}function ms(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xa||es(n,t);case 6:var r=ds,o=fs;ds=null,ps(e,t,n),fs=o,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),jt(e)):so(ds,n.stateNode));break;case 4:r=ds,o=fs,ds=n.stateNode.containerInfo,fs=!0,ps(e,t,n),ds=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Xa&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,void 0!==l&&(2&i||4&i)&&ts(n,t,l),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Xa&&(es(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)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Xa=(r=Xa)||null!==n.memoizedState,ps(e,t,n),Xa=r):ps(e,t,n);break;default:ps(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ja),t.forEach((function(t){var r=Ru.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gs(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var l=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(n(160));ms(l,a,i),ds=null,fs=!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;)vs(t,e),t=t.sibling}function vs(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),bs(e),4&o){try{rs(3,e,e.return),os(3,e)}catch(t){Su(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:gs(t,e),bs(e),512&o&&null!==r&&es(r,r.return);break;case 5:if(gs(t,e),bs(e),512&o&&null!==r&&es(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 l=e.memoizedProps,a=null!==r?r.memoizedProps:l,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===l.type&&null!=l.name&&J(i,l),ye(s,a);var c=ye(s,l);for(a=0;a<u.length;a+=2){var d=u[a],f=u[a+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):g(i,d,f,c)}switch(s){case"input":Z(i,l);break;case"textarea":le(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var m=l.value;null!=m?re(i,!!l.multiple,m,!1):p!==!!l.multiple&&(null!=l.defaultValue?re(i,!!l.multiple,l.defaultValue,!0):re(i,!!l.multiple,l.multiple?[]:"",!1))}i[mo]=l}catch(t){Su(e,e.return,t)}}break;case 6:if(gs(t,e),bs(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(t){Su(e,e.return,t)}}break;case 3:if(gs(t,e),bs(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{jt(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:gs(t,e),bs(e);break;case 13:gs(t,e),bs(e),8192&(i=e.child).flags&&(l=null!==i.memoizedState,i.stateNode.isHidden=l,!l||null!==i.alternate&&null!==i.alternate.memoizedState||(js=Xe())),4&o&&hs(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Xa=(c=Xa)||d,gs(t,e),Xa=c):gs(t,e),bs(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Za=e,d=e.child;null!==d;){for(f=Za=d;null!==Za;){switch(m=(p=Za).child,p.tag){case 0:case 11:case 14:case 15:rs(4,p,p.return);break;case 1:es(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){o=p,r=p.return;try{t=o,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Su(o,r,e)}}break;case 5:es(p,p.return);break;case 22:if(null!==p.memoizedState){Es(f);continue}}null!==m?(m.return=p,Za=m):Es(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(l=i.style).setProperty?l.setProperty("display","none","important"):l.display="none":(s=f.stateNode,a=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=he("display",a))}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:gs(t,e),bs(e),4&o&&hs(e);case 21:}}function bs(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(as(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(fe(i,""),o.flags&=-33),cs(e,ss(e),i);break;case 3:case 4:var l=o.stateNode.containerInfo;us(e,ss(e),l);break;default:throw Error(n(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ys(e,t,n){Za=e,xs(e)}function xs(e,t,n){for(var r=!!(1&e.mode);null!==Za;){var o=Za,i=o.child;if(22===o.tag&&r){var l=null!==o.memoizedState||qa;if(!l){var a=o.alternate,s=null!==a&&null!==a.memoizedState||Xa;a=qa;var u=Xa;if(qa=l,(Xa=s)&&!u)for(Za=o;null!==Za;)s=(l=Za).child,22===l.tag&&null!==l.memoizedState?Cs(o):null!==s?(s.return=l,Za=s):Cs(o);for(;null!==i;)Za=i,xs(i),i=i.sibling;Za=o,qa=a,Xa=u}_s(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Za=i):_s(e)}}function _s(e){for(;null!==Za;){var t=Za;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xa||os(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Xa)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:vi(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;null!==l&&Fi(t,l,o);break;case 3:var a=t.updateQueue;if(null!==a){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Fi(t,a,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&jt(f)}}}break;default:throw Error(n(163))}Xa||512&t.flags&&is(t)}catch(e){Su(t,t.return,e)}}if(t===e){Za=null;break}if(null!==(r=t.sibling)){r.return=t.return,Za=r;break}Za=t.return}}function Es(e){for(;null!==Za;){var t=Za;if(t===e){Za=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Za=n;break}Za=t.return}}function Cs(e){for(;null!==Za;){var t=Za;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{os(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{is(t)}catch(e){Su(t,i,e)}break;case 5:var l=t.return;try{is(t)}catch(e){Su(t,l,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Za=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Za=a;break}Za=t.return}}var ws,Ss=Math.ceil,ks=v.ReactCurrentDispatcher,Ts=v.ReactCurrentOwner,Ns=v.ReactCurrentBatchConfig,Rs=0,As=null,Os=null,Ls=0,Ms=0,Ps=So(0),Is=0,Ds=null,zs=0,$s=0,Fs=0,Bs=null,Hs=null,js=0,Ws=1/0,Ks=null,Us=!1,Gs=null,Ys=null,Vs=!1,Qs=null,qs=0,Xs=0,Js=null,Zs=-1,eu=0;function tu(){return 6&Rs?Xe():-1!==Zs?Zs:Zs=Xe()}function nu(e){return 1&e.mode?2&Rs&&0!==Ls?Ls&-Ls:null!==gi.transition?(0===eu&&(eu=ht()),eu):0!==(e=yt)?e:e=void 0===(e=window.event)?16:qt(e.type):1}function ru(e,t,r,o){if(50<Xs)throw Xs=0,Js=null,Error(n(185));vt(e,r,o),2&Rs&&e===As||(e===As&&(!(2&Rs)&&($s|=r),4===Is&&su(e,Ls)),ou(e,o),1===r&&0===Rs&&!(1&t.mode)&&(Ws=Xe()+500,Bo&&Wo()))}function ou(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 l=31-lt(i),a=1<<l,s=o[l];-1===s?a&n&&!(a&r)||(o[l]=pt(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=ft(e,e===As?Ls:0);if(0===r)null!==n&&Ve(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ve(n),1===t)0===e.tag?function(e){Bo=!0,jo(e)}(uu.bind(null,e)):jo(uu.bind(null,e)),lo((function(){!(6&Rs)&&Wo()})),n=null;else{switch(xt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Au(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Zs=-1,eu=0,6&Rs)throw Error(n(327));var r=e.callbackNode;if(Cu()&&e.callbackNode!==r)return null;var o=ft(e,e===As?Ls:0);if(0===o)return null;if(30&o||o&e.expiredLanes||t)t=vu(e,o);else{t=o;var i=Rs;Rs|=2;var l=hu();for(As===e&&Ls===t||(Ks=null,Ws=Xe()+500,pu(e,t));;)try{yu();break}catch(t){mu(e,t)}Ei(),ks.current=l,Rs=i,null!==Os?t=0:(As=null,Ls=0,t=Is)}if(0!==t){if(2===t&&(0!==(i=mt(e))&&(o=i,t=lu(e,i))),1===t)throw r=Ds,pu(e,0),su(e,o),ou(e,Xe()),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(!ar(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=vu(e,o),2===t&&(l=mt(e),0!==l&&(o=l,t=lu(e,l))),1!==t)))throw r=Ds,pu(e,0),su(e,o),ou(e,Xe()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:Eu(e,Hs,Ks);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=js+500-Xe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&o)!==o){tu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ro(Eu.bind(null,e,Hs,Ks),t);break}Eu(e,Hs,Ks);break;case 4:if(su(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var a=31-lt(o);l=1<<a,(a=t[a])>i&&(i=a),o&=~l}if(o=i,10<(o=(120>(o=Xe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Ss(o/1960))-o)){e.timeoutHandle=ro(Eu.bind(null,e,Hs,Ks),o);break}Eu(e,Hs,Ks);break;default:throw Error(n(329))}}}return ou(e,Xe()),e.callbackNode===r?iu.bind(null,e):null}function lu(e,t){var n=Bs;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Hs,Hs=n,null!==t&&au(t)),e}function au(e){null===Hs?Hs=e:Hs.push.apply(Hs,e)}function su(e,t){for(t&=~Fs,t&=~$s,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(6&Rs)throw Error(n(327));Cu();var t=ft(e,0);if(!(1&t))return ou(e,Xe()),null;var r=vu(e,t);if(0!==e.tag&&2===r){var o=mt(e);0!==o&&(t=o,r=lu(e,o))}if(1===r)throw r=Ds,pu(e,0),su(e,t),ou(e,Xe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Eu(e,Hs,Ks),ou(e,Xe()),null}function cu(e,t){var n=Rs;Rs|=1;try{return e(t)}finally{0===(Rs=n)&&(Ws=Xe()+500,Bo&&Wo())}}function du(e){null!==Qs&&0===Qs.tag&&!(6&Rs)&&Cu();var t=Rs;Rs|=1;var n=Ns.transition,r=yt;try{if(Ns.transition=null,yt=1,e)return e()}finally{yt=r,Ns.transition=n,!(6&(Rs=t))&&Wo()}}function fu(){Ms=Ps.current,ko(Ps)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:il(),ko(Ao),ko(Ro),dl();break;case 5:al(r);break;case 4:il();break;case 13:case 19:ko(sl);break;case 10:Ci(r.type._context);break;case 22:case 23:fu()}n=n.return}if(As=e,Os=e=Pu(e.current,null),Ls=Ms=t,Is=0,Ds=null,Fs=$s=zs=0,Hs=Bs=null,null!==Ti){for(t=0;t<Ti.length;t++)if(null!==(r=(n=Ti[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var l=i.next;i.next=o,r.next=l}n.pending=r}Ti=null}return e}function mu(e,t){for(;;){var r=Os;try{if(Ei(),fl.current=la,bl){for(var o=hl.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}bl=!1}if(ml=0,vl=gl=hl=null,yl=!1,xl=0,Ts.current=null,null===r||null===r.return){Is=1,Ds=t,Os=null;break}e:{var l=e,a=r.return,s=r,u=t;if(t=Ls,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=va(a);if(null!==m){m.flags&=-257,ba(m,a,s,0,t),1&m.mode&&ga(l,c,t),u=c;var h=(t=m).updateQueue;if(null===h){var g=new Set;g.add(u),t.updateQueue=g}else h.add(u);break e}if(!(1&t)){ga(l,c,t),gu();break e}u=Error(n(426))}else if(ii&&1&s.mode){var v=va(a);if(null!==v){!(65536&v.flags)&&(v.flags|=256),ba(v,a,s,0,t),hi(ca(u,s));break e}}l=u=ca(u,s),4!==Is&&(Is=2),null===Bs?Bs=[l]:Bs.push(l),l=a;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t,zi(l,ma(0,u,t));break e;case 1:s=u;var b=l.type,y=l.stateNode;if(!(128&l.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Ys&&Ys.has(y)))){l.flags|=65536,t&=-t,l.lanes|=t,zi(l,ha(l,s,t));break e}}l=l.return}while(null!==l)}_u(r)}catch(e){t=e,Os===r&&null!==r&&(Os=r=r.return);continue}break}}function hu(){var e=ks.current;return ks.current=la,null===e?la:e}function gu(){0!==Is&&3!==Is&&2!==Is||(Is=4),null===As||!(268435455&zs)&&!(268435455&$s)||su(As,Ls)}function vu(e,t){var r=Rs;Rs|=2;var o=hu();for(As===e&&Ls===t||(Ks=null,pu(e,t));;)try{bu();break}catch(t){mu(e,t)}if(Ei(),Rs=r,ks.current=o,null!==Os)throw Error(n(261));return As=null,Ls=0,Is}function bu(){for(;null!==Os;)xu(Os)}function yu(){for(;null!==Os&&!Qe();)xu(Os)}function xu(e){var t=ws(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?_u(e):Os=t,Ts.current=null}function _u(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Qa(n,t)))return n.flags&=32767,void(Os=n);if(null===e)return Is=6,void(Os=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Va(n,t,Ms)))return void(Os=n);if(null!==(t=t.sibling))return void(Os=t);Os=t=e}while(null!==t);0===Is&&(Is=5)}function Eu(e,t,r){var o=yt,i=Ns.transition;try{Ns.transition=null,yt=1,function(e,t,r,o){do{Cu()}while(null!==Qs);if(6&Rs)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 l=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-lt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,l),e===As&&(Os=As=null,Ls=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Vs||(Vs=!0,Au(tt,(function(){return Cu(),null}))),l=!!(15990&r.flags),!!(15990&r.subtreeFlags)||l){l=Ns.transition,Ns.transition=null;var a=yt;yt=1;var s=Rs;Rs|=4,Ts.current=null,function(e,t){if(eo=Kt,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,l=o.focusNode;o=o.focusOffset;try{r.nodeType,l.nodeType}catch(e){r=null;break e}var a=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==r||0!==i&&3!==f.nodeType||(s=a+i),f!==l||0!==o&&3!==f.nodeType||(u=a+o),3===f.nodeType&&(a+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===r&&++c===i&&(s=a),p===l&&++d===o&&(u=a),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}r=-1===s||-1===u?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Kt=!1,Za=t;null!==Za;)if(e=(t=Za).child,1028&t.subtreeFlags&&null!==e)e.return=t,Za=e;else for(;null!==Za;){t=Za;try{var h=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!==h){var g=h.memoizedProps,v=h.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:vi(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Za=e;break}Za=t.return}h=ns,ns=!1}(e,r),vs(r,e),mr(to),Kt=!!eo,to=eo=null,e.current=r,ys(r),qe(),Rs=s,yt=a,Ns.transition=l}else e.current=r;if(Vs&&(Vs=!1,Qs=e,qs=i),l=e.pendingLanes,0===l&&(Ys=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),ou(e,Xe()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Us)throw Us=!1,e=Gs,Gs=null,e;!!(1&qs)&&0!==e.tag&&Cu(),l=e.pendingLanes,1&l?e===Js?Xs++:(Xs=0,Js=e):Xs=0,Wo()}(e,t,r,o)}finally{Ns.transition=i,yt=o}return null}function Cu(){if(null!==Qs){var e=xt(qs),t=Ns.transition,r=yt;try{if(Ns.transition=null,yt=16>e?16:e,null===Qs)var o=!1;else{if(e=Qs,Qs=null,qs=0,6&Rs)throw Error(n(331));var i=Rs;for(Rs|=4,Za=e.current;null!==Za;){var l=Za,a=l.child;if(16&Za.flags){var s=l.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Za=c;null!==Za;){var d=Za;switch(d.tag){case 0:case 11:case 15:rs(8,d,l)}var f=d.child;if(null!==f)f.return=d,Za=f;else for(;null!==Za;){var p=(d=Za).sibling,m=d.return;if(ls(d),d===c){Za=null;break}if(null!==p){p.return=m,Za=p;break}Za=m}}}var h=l.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Za=l}}if(2064&l.subtreeFlags&&null!==a)a.return=l,Za=a;else e:for(;null!==Za;){if(2048&(l=Za).flags)switch(l.tag){case 0:case 11:case 15:rs(9,l,l.return)}var b=l.sibling;if(null!==b){b.return=l.return,Za=b;break e}Za=l.return}}var y=e.current;for(Za=y;null!==Za;){var x=(a=Za).child;if(2064&a.subtreeFlags&&null!==x)x.return=a,Za=x;else e:for(a=y;null!==Za;){if(2048&(s=Za).flags)try{switch(s.tag){case 0:case 11:case 15:os(9,s)}}catch(e){Su(s,s.return,e)}if(s===a){Za=null;break e}var _=s.sibling;if(null!==_){_.return=s.return,Za=_;break e}Za=s.return}}if(Rs=i,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{yt=r,Ns.transition=t}}return!1}function wu(e,t,n){e=Ii(e,t=ma(0,t=ca(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),ou(e,t))}function Su(e,t,n){if(3===e.tag)wu(e,e,n);else for(;null!==t;){if(3===t.tag){wu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ys||!Ys.has(r))){t=Ii(t,e=ha(t,e=ca(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),ou(t,e));break}}t=t.return}}function ku(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,As===e&&(Ls&n)===n&&(4===Is||3===Is&&(130023424&Ls)===Ls&&500>Xe()-js?pu(e,0):Fs|=n),ou(e,t)}function Tu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=tu();null!==(e=Ai(e,t))&&(vt(e,t,n),ou(e,n))}function Nu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tu(e,n)}function Ru(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),Tu(e,r)}function Au(e,t){return Ye(e,t)}function Ou(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lu(e,t,n,r){return new Ou(e,t,n,r)}function Mu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pu(e,t){var n=e.alternate;return null===n?((n=Lu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Iu(e,t,r,o,i,l){var a=2;if(o=e,"function"==typeof e)Mu(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case _:return Du(r.children,i,l,t);case E:a=8,i|=8;break;case C:return(e=Lu(12,r,t,2|i)).elementType=C,e.lanes=l,e;case R:return(e=Lu(13,r,t,i)).elementType=R,e.lanes=l,e;case A:return(e=Lu(19,r,t,i)).elementType=A,e.lanes=l,e;case P:return zu(r,i,l,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:a=10;break e;case k:a=9;break e;case N:a=11;break e;case O:a=14;break e;case M:a=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Lu(a,r,t,i)).elementType=e,t.type=o,t.lanes=l,t}function Du(e,t,n,r){return(e=Lu(7,e,r,t)).lanes=n,e}function zu(e,t,n,r){return(e=Lu(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function $u(e,t,n){return(e=Lu(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Lu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hu(e,t,n,r,o,i,l,a,s){return e=new Bu(e,t,n,a,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Lu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function ju(e){if(!e)return No;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Mo(r))return Do(e,r,t)}return t}function Wu(e,t,n,r,o,i,l,a,s){return(e=Hu(n,r,!0,e,0,i,0,a,s)).context=ju(null),n=e.current,(i=Pi(r=tu(),o=nu(n))).callback=null!=t?t:null,Ii(n,i,o),e.current.lanes=o,vt(e,o,r),ou(e,r),e}function Ku(e,t,n,r){var o=t.current,i=tu(),l=nu(o);return n=ju(n),null===t.context?t.context=n:t.pendingContext=n,(t=Pi(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ii(o,t,l))&&(ru(e,o,l,i),Di(e,o,l)),l}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yu(e,t){Gu(e,t),(e=e.alternate)&&Gu(e,t)}ws=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ao.current)xa=!0;else{if(!(e.lanes&r||128&t.flags))return xa=!1,function(e,t,n){switch(t.tag){case 3:Aa(t),mi();break;case 5:ll(t);break;case 1:Mo(t.type)&&zo(t);break;case 4:ol(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(bi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(sl,1&sl.current),t.flags|=128,null):n&t.child.childLanes?$a(e,t,n):(To(sl,1&sl.current),null!==(e=Ua(e,t,n))?e.sibling:null);To(sl,1&sl.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Wa(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(sl,sl.current),r)break;return null;case 22:case 23:return t.lanes=0,Sa(e,t,n)}return Ua(e,t,n)}(e,t,r);xa=!!(131072&e.flags)}else xa=!1,ii&&1048576&t.flags&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ka(e,t),e=t.pendingProps;var i=Lo(t,Ro.current);Si(t,r),i=wl(null,t,o,e,i,r);var l=Sl();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(o)?(l=!0,zo(t)):l=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Li(t),i.updater=ji,t.stateNode=i,i._reactInternals=t,Gi(t,o,e,r),t=Ra(null,t,o,!0,l,r)):(t.tag=0,ii&&l&&ti(t),_a(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Ka(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Mu(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===O)return 14}return 2}(o),e=vi(o,e),i){case 0:t=Ta(null,t,o,e,r);break e;case 1:t=Na(null,t,o,e,r);break e;case 11:t=Ea(null,t,o,e,r);break e;case 14:t=Ca(null,t,o,vi(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Ta(e,t,o,i=t.elementType===o?i:vi(o,i),r);case 1:return o=t.type,i=t.pendingProps,Na(e,t,o,i=t.elementType===o?i:vi(o,i),r);case 3:e:{if(Aa(t),null===e)throw Error(n(387));o=t.pendingProps,i=(l=t.memoizedState).element,Mi(e,t),$i(t,o,null,r);var a=t.memoizedState;if(o=a.element,l.isDehydrated){if(l={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=l,t.memoizedState=l,256&t.flags){t=Oa(e,t,o,r,i=ca(Error(n(423)),t));break e}if(o!==i){t=Oa(e,t,o,r,i=ca(Error(n(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,li=null,r=Ji(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(mi(),o===i){t=Ua(e,t,r);break e}_a(e,t,o,r)}t=t.child}return t;case 5:return ll(t),null===e&&ci(t),o=t.type,i=t.pendingProps,l=null!==e?e.memoizedProps:null,a=i.children,no(o,i)?a=null:null!==l&&no(o,l)&&(t.flags|=32),ka(e,t),_a(e,t,a,r),t.child;case 6:return null===e&&ci(t),null;case 13:return $a(e,t,r);case 4:return ol(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Xi(t,null,o,r):_a(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,Ea(e,t,o,i=t.elementType===o?i:vi(o,i),r);case 7:return _a(e,t,t.pendingProps,r),t.child;case 8:case 12:return _a(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,l=t.memoizedProps,a=i.value,To(bi,o._currentValue),o._currentValue=a,null!==l)if(ar(l.value,a)){if(l.children===i.children&&!Ao.current){t=Ua(e,t,r);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var s=l.dependencies;if(null!==s){a=l.child;for(var u=s.firstContext;null!==u;){if(u.context===o){if(1===l.tag){(u=Pi(-1,r&-r)).tag=2;var c=l.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}}l.lanes|=r,null!==(u=l.alternate)&&(u.lanes|=r),wi(l.return,r,t),s.lanes|=r;break}u=u.next}}else if(10===l.tag)a=l.type===t.type?null:l.child;else if(18===l.tag){if(null===(a=l.return))throw Error(n(341));a.lanes|=r,null!==(s=a.alternate)&&(s.lanes|=r),wi(a,r,t),a=l.sibling}else a=l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}_a(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Si(t,r),o=o(i=ki(i)),t.flags|=1,_a(e,t,o,r),t.child;case 14:return i=vi(o=t.type,t.pendingProps),Ca(e,t,o,i=vi(o.type,i),r);case 15:return wa(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:vi(o,i),Ka(e,t),t.tag=1,Mo(o)?(e=!0,zo(t)):e=!1,Si(t,r),Ki(t,o,i),Gi(t,o,i,r),Ra(null,t,o,!0,e,r);case 19:return Wa(e,t,r);case 22:return Sa(e,t,r)}throw Error(n(156,t.tag))};var Vu="function"==typeof reportError?reportError:function(e){console.error(e)};function Qu(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Xu(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 Zu(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if("function"==typeof o){var a=o;o=function(){var e=Uu(l);a.call(e)}}Ku(t,l,e,o)}else l=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uu(l);i.call(e)}}var l=Wu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=l,e[ho]=l.current,jr(8===e.nodeType?e.parentNode:e),du(),l}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=Uu(s);a.call(e)}}var s=Hu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=s,e[ho]=s.current,jr(8===e.nodeType?e.parentNode:e),du((function(){Ku(t,s,n,r)})),s}(n,t,e,o,r);return Uu(l)}qu.prototype.render=Qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Ku(e,t,null,null)},qu.prototype.unmount=Qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du((function(){Ku(null,e,null,null)})),t[ho]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=wt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&zt(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),ou(t,Xe()),!(6&Rs)&&(Ws=Xe()+500,Wo()))}break;case 13:du((function(){var t=Ai(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Yu(e,1)}},Et=function(e){if(13===e.tag){var t=Ai(e,134217728);if(null!==t)ru(t,e,134217728,tu());Yu(e,134217728)}},Ct=function(e){if(13===e.tag){var t=nu(e),n=Ai(e,t);if(null!==n)ru(n,e,t,tu());Yu(e,t)}},wt=function(){return yt},St=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Ee=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=Eo(o);if(!i)throw Error(n(90));V(o),Z(o,i)}}}break;case"textarea":le(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ne=cu,Re=du;var tc={usingClientEntryPoint:!1,Events:[xo,_o,Eo,ke,Te,cu]},nc={findFiberByHostInstance:yo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(e){}}return x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,x.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:y,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},x.createRoot=function(e,t){if(!Xu(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=Hu(e,1,!1,null,0,r,0,o,i),e[ho]=t.current,jr(8===e.nodeType?e.parentNode:e),new Qu(t)},x.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=Ue(t))?null:e.stateNode},x.flushSync=function(e){return du(e)},x.hydrate=function(e,t,r){if(!Ju(t))throw Error(n(200));return ec(null,e,t,!0,r)},x.hydrateRoot=function(e,t,r){if(!Xu(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,l="",a=Vu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(l=r.identifierPrefix),void 0!==r.onRecoverableError&&(a=r.onRecoverableError)),t=Wu(t,null,e,1,null!=r?r:null,i,0,l,a),e[ho]=t.current,jr(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new qu(t)},x.render=function(e,t,r){if(!Ju(t))throw Error(n(200));return ec(null,e,t,!1,r)},x.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(n(40));return!!e._reactRootContainer&&(du((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[ho]=null}))})),!0)},x.unstable_batchedUpdates=cu,x.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 ec(e,t,r,!1,o)},x.version="18.2.0-next-9e3b772b8-20220608",x}function P(){if(N)return y.exports;return N=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)}}(),y.exports=M(),y.exports}var I=function(){if(R)return b;R=1;var e=P();return b.createRoot=e.createRoot,b.hydrateRoot=e.hydrateRoot,b}();var D=w(),z=h(D),$=f({__proto__:null,default:z},[D]);const F=D.createContext({layout:void 0,model:void 0,element:void 0,edit:!1,initialData:void 0,emitter:void 0,lang:"en",flags:{isEnabled:()=>!1},theme:null,readyToPrint:[]});var B,H,j,W,K,U,G,Y,V,Q,q,X,J={},Z={},ee={},te={};function ne(){if(B)return te;B=1;let e={},t={},n={},r={},o={},i={},l={},a={},s={},u={},c={},d={},f={},p={},m={},h={},g={},v={},b={},y={},x={},_={},E={},C={},w={},S={},k={},T={},N={},R={},A={},O={},L={},M={},P={};function I(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let D="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,z=D&&"documentMode"in document?document.documentMode:null,$=D&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),F=D&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),H=!(!D||!("InputEvent"in window)||z)&&"getTargetRanges"in new window.InputEvent("input"),j=D&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),W=D&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,K=D&&/^(?=.*Chrome).*/i.test(navigator.userAgent),U=D&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!K,G=j||W||U?" ":"​",Y=F?" ":G,V=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,Q=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,q={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},X={directionless:1,unmergeable:2},J={center:2,end:6,justify:4,left:1,right:3,start:5},Z={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},ee={normal:0,segmented:2,token:1},ne={0:"normal",2:"segmented",1:"token"},re=!1,oe=0;function ie(e){oe=e.timeStamp}function le(e,t,n){return t.__lexicalLineBreak===e||void 0!==e[`__lexicalKey_${n._key}`]}function ae(e,t,n){re=!0;let r=100<performance.now()-oe;try{kr(e,(()=>{let o=tr()||function(e){return e.getEditorState().read((()=>{let e=tr();return null!==e?e.clone():null}))}(e);var i=new Map,l=e.getRootElement(),a=e._editorState,s=e._blockCursorElement;let u=!1,c="";for(var d=0;d<t.length;d++){var f=t[d],p=f.type,m=f.target,h=Oe(m,a);if(!(null===h&&m!==l||Nr(h)))if("characterData"===p){if(f=r&&An(h))e:{p=m;var g=h;if(Fn(f=o)){var v=f.anchor.getNode();if(v.is(g)&&f.format!==v.getFormat()){f=!1;break e}}f=3===p.nodeType&&g.isAttached()}f&&(p=f=null,null!==(g=lt(e._window))&&g.anchorNode===m&&(f=g.anchorOffset,p=g.focusOffset),null!==(m=m.nodeValue)&&He(h,m,f,p,!1))}else if("childList"===p){for(u=!0,p=f.addedNodes,g=0;g<p.length;g++){var b=Ae(v=p[g]),y=v.parentNode;null==y||v===s||null!==b||"BR"===v.nodeName&&le(v,y,e)||(F&&(b=v.innerText||v.nodeValue)&&(c+=b),y.removeChild(v))}if(0<(p=(f=f.removedNodes).length)){for(g=0,v=0;v<p;v++)("BR"===(y=f[v]).nodeName&&le(y,m,e)||s===y)&&(m.appendChild(y),g++);p!==g&&(m===l&&(h=a._nodeMap.get("root")),i.set(m,h))}}}if(0<i.size)for(let[t,n]of i)if(Ar(n))for(i=n.getChildrenKeys(),l=t.firstChild,a=0;a<i.length;a++)null!==(s=e.getElementByKey(i[a]))&&(null==l?(t.appendChild(s),l=s):l!==s&&t.replaceChild(s,l),l=l.nextSibling);else An(n)&&n.markDirty();if(0<(i=n.takeRecords()).length){for(l=0;l<i.length;l++)for(a=(s=i[l]).addedNodes,s=s.target,d=0;d<a.length;d++)null==(m=(h=a[d]).parentNode)||"BR"!==h.nodeName||le(h,s,e)||m.removeChild(h);n.takeRecords()}null!==o&&(u&&(o.dirty=!0,Ie(o)),F&&Ye(e)&&o.insertRawText(c))}))}finally{re=!1}}function se(e){let t=e._observer;if(null!==t){ae(e,t.takeRecords(),t)}}function ue(e){0===oe&&Je(e).addEventListener("textInput",ie,!0),e._observer=new MutationObserver(((t,n)=>{ae(e,t,n)}))}function ce(e,t){let n=e.__mode,r=e.__format;e=e.__style;let o=t.__mode,i=t.__format;return t=t.__style,!(null!==n&&n!==o||null!==r&&r!==i||null!==e&&e!==t)}function de(e,t){let n=e.mergeWithSibling(t),r=vr()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function fe(e){if(""===e.__text&&e.isSimpleText()&&!e.isUnmergeable())e.remove();else{for(var t;null!==(t=e.getPreviousSibling())&&An(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){ce(t,e)&&(e=de(t,e));break}t.remove()}for(var n;null!==(n=e.getNextSibling())&&An(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){ce(e,n)&&de(e,n);break}n.remove()}}}function pe(e){return me(e.anchor),me(e.focus),e}function me(e){for(;"element"===e.type;){var t=e.getNode(),n=e.offset;if(n===t.getChildrenSize()?(t=t.getChildAtIndex(n-1),n=!0):(t=t.getChildAtIndex(n),n=!1),An(t)){e.set(t.__key,n?t.getTextContentSize():0,"text");break}if(!Ar(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element")}}let he=1,ge="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function ve(e){let t=document.activeElement;if(null===t)return!1;let n=t.nodeName;return Nr(Oe(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==t.__lexicalEditor)}function be(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!ve(t)&&ye(t)===e}catch(e){return!1}}function ye(e){for(;null!=e;){let t=e.__lexicalEditor;if(null!=t)return t;e=qe(e)}return null}function xe(e){return e.isToken()||e.isSegmented()}function _e(e){for(;null!=e;){if(3===e.nodeType)return e;e=e.firstChild}return null}function Ee(e,t,n){return!(e&(t=q[t]))||null!==n&&n&t?null===n||n&t?e|t:e:e^t}function Ce(e){return An(e)||mn(e)||Nr(e)}function we(e,t){if(null!=t)e.__key=t;else{hr(),99<fr&&I(14),t=vr();var n=gr(),r=""+he++;n._nodeMap.set(r,e),Ar(e)?t._dirtyElements.set(r,!0):t._dirtyLeaves.add(r),t._cloneNotNeeded.add(r),t._dirtyType=1,e.__key=r}}function Se(e){var t=e.getParent();if(null!==t){let o=e.getWritable();t=t.getWritable();var n=e.getPreviousSibling();if(e=e.getNextSibling(),null===n)if(null!==e){var r=e.getWritable();t.__first=e.__key,r.__prev=null}else t.__first=null;else{if(r=n.getWritable(),null!==e){let t=e.getWritable();t.__prev=r.__key,r.__next=t.__key}else r.__next=null;o.__prev=null}null===e?null!==n?(e=n.getWritable(),t.__last=n.__key,e.__next=null):t.__last=null:(e=e.getWritable(),null!==n?((n=n.getWritable()).__next=e.__key,e.__prev=n.__key):e.__prev=null,o.__next=null),t.__size--,o.__parent=null}}function ke(e){99<fr&&I(14);var t=e.getLatest(),n=t.__parent,r=gr();let o=vr(),i=r._nodeMap;if(r=o._dirtyElements,null!==n)e:for(;null!==n&&!r.has(n);){let e=i.get(n);if(void 0===e)break;r.set(n,!1),n=e.__parent}t=t.__key,o._dirtyType=1,Ar(e)?r.set(t,!0):o._dirtyLeaves.add(t)}function Te(e){hr();var t=vr();let n=t._compositionKey;e!==n&&(t._compositionKey=e,null!==n&&(null!==(t=Re(n))&&t.getWritable()),null!==e&&(null!==(e=Re(e))&&e.getWritable()))}function Ne(){return mr()?null:vr()._compositionKey}function Re(e,t){return void 0===(e=(t||gr())._nodeMap.get(e))?null:e}function Ae(e,t){return void 0!==(e=e[`__lexicalKey_${vr()._key}`])?Re(e,t):null}function Oe(e,t){for(;null!=e;){let n=Ae(e,t);if(null!==n)return n;e=qe(e)}return null}function Le(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t}function Me(e){return e.read((()=>Pe().getTextContent()))}function Pe(){return gr()._nodeMap.get("root")}function Ie(e){hr();let t=gr();null!==e&&(e.dirty=!0,e._cachedNodes=null),t._selection=e}function De(e){var t,n=vr();e:{for(t=e;null!=t;){let e=t[`__lexicalKey_${n._key}`];if(void 0!==e){t=e;break e}t=qe(t)}t=null}return null===t?e===(n=n.getRootElement())?Re("root"):null:Re(t)}function ze(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function $e(e){let t=[];for(;null!==e;)t.push(e),e=e._parentEditor;return t}function Fe(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Be(e,t,n){if(null!==(t=lt(t._window))){var r=t.anchorNode,{anchorOffset:o,focusOffset:i}=t;if(null!==r&&(t=3===r.nodeType?r.nodeValue:null,r=Oe(r),null!==t&&An(r))){if(t===G&&n){t=n,i=o=n.length}null!==t&&He(r,t,o,i,e)}}}function He(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){let u=i.isComposing(),c=t;if((u||o)&&t[t.length-1]===G&&(c=t.slice(0,-1)),t=i.getTextContent(),o||c!==t)if(""===c)if(Te(null),j||W||U)i.remove();else{let e=vr();setTimeout((()=>{e.update((()=>{i.isAttached()&&i.remove()}))}),20)}else{o=i.getParent(),t=nr();var l=i.getTextContentSize(),a=Ne(),s=i.getKey();i.isToken()||null!==a&&s===a&&!u||Fn(t)&&(null!==o&&!o.canInsertTextBefore()&&0===t.anchor.offset||t.anchor.key===e.__key&&0===t.anchor.offset&&!i.canInsertTextBefore()||t.focus.key===e.__key&&t.focus.offset===l&&!i.canInsertTextAfter())?i.markDirty():(Fn(e=tr())&&null!==n&&null!==r&&(e.setTextNodeRange(i,n,i,r),i.isSegmented()&&(n=Rn(n=i.getTextContent()),i.replace(n),i=n)),i.setTextContent(c))}}}function je(){var e=Pe();Ie(pe(e=e.select(0,e.getChildrenSize())))}function We(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];return void 0!==r?r:"string"==typeof(e=e[t])?(e=e.split(" "),n[t]=e):e}function Ke(e,t,n,r,o){0!==n.size&&(n=r.__type,r=r.__key,void 0===(t=t.get(n))&&I(33,n),n=t.klass,void 0===(t=e.get(n))&&(t=new Map,e.set(n,t)),n="destroyed"===(e=t.get(r))&&"created"===o,(void 0===e||n)&&t.set(r,n?"updated":o))}function Ue(e,t,n){let r=e.getParent(),o=n;return null!==r&&(t&&0===n?(o=e.getIndexWithinParent(),e=r):t||n!==e.getChildrenSize()||(o=e.getIndexWithinParent()+1,e=r)),e.getChildAtIndex(t?o-1:o)}function Ge(e,t){var n=e.offset;return"element"===e.type?Ue(e=e.getNode(),t,n):(e=e.getNode(),t&&0===n||!t&&n===e.getTextContentSize()?null===(n=t?e.getPreviousSibling():e.getNextSibling())?Ue(e.getParentOrThrow(),t,e.getIndexWithinParent()+(t?0:1)):n:null)}function Ye(e){return"insertFromPaste"===(e=(e=Je(e).event)&&e.inputType)||"insertFromPasteAsQuotation"===e}function Ve(e){return!Mr(e)&&!e.isLastChild()&&!e.isInline()}function Qe(e,t){return void 0===(e=e._keyToDOMMap.get(t))&&I(75,t),e}function qe(e){return null!==(e=e.assignedSlot||e.parentElement)&&11===e.nodeType?e.host:e}function Xe(e,t){for(e=e.getParent();null!==e;){if(e.is(t))return!0;e=e.getParent()}return!1}function Je(e){return null===(e=e._window)&&I(78),e}function Ze(e){for(e=e.getParentOrThrow();null!==e&&!et(e);)e=e.getParentOrThrow();return e}function et(e){return Mr(e)||Ar(e)&&e.isShadowRoot()}function tt(e){return we(e=e.constructor.clone(e),null),e}function nt(e){var t=vr();let n=e.constructor.getType();return void 0===(t=t._nodes.get(n))&&I(97),null!==(t=t.replace)?((t=t(e))instanceof e.constructor||I(98),t):e}function rt(e,t){!Mr(e=e.getParent())||Ar(t)||Nr(t)||I(99)}function ot(e){return(Nr(e)||Ar(e)&&!e.canBeEmpty())&&!e.isInline()}function it(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null,null!==(t=e.parentElement)&&t.removeChild(e)}function lt(e){return D?(e||window).getSelection():null}function at(e,t){let n=e.getChildAtIndex(t);null==n&&(n=e),et(e)&&I(102);let r=e=>{const t=e.getParentOrThrow(),o=et(t),i=e!==n||o?tt(e):e;if(o)return e.insertAfter(i),[e,i,i];const[l,a,s]=r(t);return e=e.getNextSiblings(),s.append(i,...e),[l,a,i]},[o,i]=r(n);return[o,i]}function st(e,t){for(;e!==Pe()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function ut(e){let t=[],n=[e];for(;0<n.length;){let r=n.pop();void 0===r&&I(112),Ar(r)&&n.unshift(...r.getChildren()),r!==e&&t.push(r)}return t}function ct(e,t,n,r,o,i){for(e=e.getFirstChild();null!==e;){let l=e.__key;e.__parent===t&&(Ar(e)&&ct(e,l,n,r,o,i),n.has(l)||i.delete(l),o.push(l)),e=e.getNextSibling()}}let dt,ft,pt,mt,ht,gt,vt,bt,yt,xt,_t="",Et="",Ct="",wt=!1,St=!1,kt=null;function Tt(e,t){let n=vt.get(e);if(null!==t){let n=Ht(e);n.parentNode===t&&t.removeChild(n)}bt.has(e)||ft._keyToDOMMap.delete(e),Ar(n)&&Nt(e=zt(n,vt),0,e.length-1,null),void 0!==n&&Ke(xt,pt,mt,n,"destroyed")}function Nt(e,t,n,r){for(;t<=n;++t){let n=e[t];void 0!==n&&Tt(n,r)}}function Rt(e,t){e.setProperty("text-align",t)}function At(e,t){var n=dt.theme.indent;if("string"==typeof n){let r=e.classList.contains(n);0<t&&!r?e.classList.add(n):1>t&&r&&e.classList.remove(n)}n=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px",e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${n})`)}function Ot(e,t){e=e.style,0===t?Rt(e,""):1===t?Rt(e,"left"):2===t?Rt(e,"center"):3===t?Rt(e,"right"):4===t?Rt(e,"justify"):5===t?Rt(e,"start"):6===t&&Rt(e,"end")}function Lt(e,t,n){let r=bt.get(e);void 0===r&&I(60);let o=r.createDOM(dt,ft);var i=ft._keyToDOMMap;if(o["__lexicalKey_"+ft._key]=e,i.set(e,o),An(r)?o.setAttribute("data-lexical-text","true"):Nr(r)&&o.setAttribute("data-lexical-decorator","true"),Ar(r)){if(e=r.__indent,i=r.__size,0!==e&&At(o,e),0!==i){--i,e=zt(r,bt);var l=Et;Et="",Mt(e,r,0,i,o,null),Dt(r,o),Et=l}0!==(e=r.__format)&&Ot(o,e),r.isInline()||It(null,r,o),Ve(r)&&(_t+="\n\n",Ct+="\n\n")}else i=r.getTextContent(),Nr(r)?(null!==(l=r.decorate(ft,dt))&&Ft(e,l),o.contentEditable="false"):An(r)&&(r.isDirectionless()||(Et+=i)),_t+=i,Ct+=i;return null!==t&&(null!=n?t.insertBefore(o,n):null!=(n=t.__lexicalLineBreak)?t.insertBefore(o,n):t.appendChild(o)),Ke(xt,pt,mt,r,"created"),o}function Mt(e,t,n,r,o,i){let l=_t;for(_t="";n<=r;++n)Lt(e[n],o,i);Ve(t)&&(_t+="\n\n"),o.__lexicalTextContent=_t,_t=l+_t}function Pt(e,t){return mn(e=t.get(e))||Nr(e)&&e.isInline()}function It(e,t,n){e=null!==e&&(0===e.__size||Pt(e.__last,vt)),t=0===t.__size||Pt(t.__last,bt),e?t||(null!=(t=n.__lexicalLineBreak)&&n.removeChild(t),n.__lexicalLineBreak=null):t&&(t=document.createElement("br"),n.__lexicalLineBreak=t,n.appendChild(t))}function Dt(e,t){var n=t.__lexicalDir;if(t.__lexicalDirTextContent!==Et||n!==kt){let i=""===Et;if(i)var r=kt;else r=Et,r=V.test(r)?"rtl":Q.test(r)?"ltr":null;if(r!==n){let l=t.classList,a=dt.theme;var o=null!==n?a[n]:void 0;let s=null!==r?a[r]:void 0;void 0!==o&&("string"==typeof o&&(o=o.split(" "),o=a[n]=o),l.remove(...o)),null===r||i&&"ltr"===r?t.removeAttribute("dir"):(void 0!==s&&("string"==typeof s&&(n=s.split(" "),s=a[r]=n),void 0!==s&&l.add(...s)),t.dir=r),St||(e.getWritable().__dir=r)}kt=r,t.__lexicalDirTextContent=Et,t.__lexicalDir=r}}function zt(e,t){let n=[];for(e=e.__first;null!==e;){let r=t.get(e);void 0===r&&I(101),n.push(e),e=r.__next}return n}function $t(e,t){var n=vt.get(e),r=bt.get(e);void 0!==n&&void 0!==r||I(61);var o=wt||gt.has(e)||ht.has(e);let i=Qe(ft,e);if(n===r&&!o)return Ar(n)?(void 0!==(r=i.__lexicalTextContent)&&(_t+=r,Ct+=r),void 0!==(r=i.__lexicalDirTextContent)&&(Et+=r)):(r=n.getTextContent(),An(n)&&!n.isDirectionless()&&(Et+=r),Ct+=r,_t+=r),i;if(n!==r&&o&&Ke(xt,pt,mt,r,"updated"),r.updateDOM(n,i,dt))return r=Lt(e,null,null),null===t&&I(62),t.replaceChild(r,i),Tt(e,null),r;if(Ar(n)&&Ar(r)){if((e=r.__indent)!==n.__indent&&At(i,e),(e=r.__format)!==n.__format&&Ot(i,e),o){e=r,o=Et,Et="",t=_t;var l=n.__size,a=e.__size;if(_t="",1===l&&1===a){var s=n.__first,u=e.__first;if(s===u)$t(s,i);else{var c=Ht(s);u=Lt(u,null,null),i.replaceChild(u,c),Tt(s,null)}}else{u=zt(n,vt);var d=zt(e,bt);if(0===l)0!==a&&Mt(d,e,0,a-1,i,null);else if(0===a)0!==l&&(Nt(u,0,l-1,(s=null==i.__lexicalLineBreak)?null:i),s&&(i.textContent=""));else{var f=u;u=d,d=l-1,l=a-1;let t=i.firstChild,n=0;for(a=0;n<=d&&a<=l;){var p=f[n];let e=u[a];if(p===e)t=Bt($t(e,i)),n++,a++;else{void 0===s&&(s=new Set(f)),void 0===c&&(c=new Set(u));let r=c.has(p),o=s.has(e);r?(o?((p=Qe(ft,e))===t?t=Bt($t(e,i)):(null!=t?i.insertBefore(p,t):i.appendChild(p),$t(e,i)),n++):Lt(e,i,t),a++):(t=Bt(Ht(p)),Tt(p,i),n++)}}c=a>l,(s=n>d)&&!c?Mt(u,e,a,l,i,s=void 0===(s=u[l+1])?null:ft.getElementByKey(s)):c&&!s&&Nt(f,n,d,i)}}Ve(e)&&(_t+="\n\n"),i.__lexicalTextContent=_t,_t=t+_t,Dt(e,i),Et=o,Mr(r)||r.isInline()||It(n,r,i)}Ve(r)&&(_t+="\n\n",Ct+="\n\n")}else n=r.getTextContent(),Nr(r)?null!==(o=r.decorate(ft,dt))&&Ft(e,o):An(r)&&!r.isDirectionless()&&(Et+=n),_t+=n,Ct+=n;return!St&&Mr(r)&&r.__cachedText!==Ct&&((r=r.getWritable()).__cachedText=Ct),i}function Ft(e,t){let n=ft._pendingDecorators,r=ft._decorators;if(null===n){if(r[e]===t)return;n=Le(ft)}n[e]=t}function Bt(e){return null!==(e=e.nextSibling)&&e===ft._blockCursorElement&&(e=e.nextSibling),e}function Ht(e){let t=yt.get(e);return void 0===t&&I(75,e),t}let jt=Object.freeze({}),Wt=[["keydown",function(e,t){if(Kt=e.timeStamp,Ut=e.keyCode,!t.isComposing()){var{keyCode:o,shiftKey:i,ctrlKey:l,metaKey:a,altKey:k}=e;if(!Cr(t,p,e)){if(39!==o||l||a||k)if(39!==o||k||i||!l&&!a)if(37!==o||l||a||k)if(37!==o||k||i||!l&&!a)if(38!==o||l||a)if(40!==o||l||a)if(13===o&&i)Xt=!0,Cr(t,x,e);else if(32===o)Cr(t,_,e);else if($&&l&&79===o)e.preventDefault(),Xt=!0,Cr(t,r,!0);else if(13!==o||i)if($?k||a||!(8===o||72===o&&l):l||k||a||8!==o)if(27===o)Cr(t,C,e);else if($?i||k||a||!(46===o||68===o&&l):l||k||a||46!==o)if(8===o&&($?k:l))e.preventDefault(),Cr(t,s,!0);else if(46===o&&($?k:l))e.preventDefault(),Cr(t,s,!1);else if($&&a&&8===o)e.preventDefault(),Cr(t,u,!0);else if($&&a&&46===o)e.preventDefault(),Cr(t,u,!1);else if(66===o&&!k&&($?a:l))e.preventDefault(),Cr(t,c,"bold");else if(85===o&&!k&&($?a:l))e.preventDefault(),Cr(t,c,"underline");else if(73===o&&!k&&($?a:l))e.preventDefault(),Cr(t,c,"italic");else if(9!==o||k||l||a)if(90===o&&!i&&($?a:l))e.preventDefault(),Cr(t,d,void 0);else{var T=$?90===o&&a&&i:89===o&&l||90===o&&l&&i;T?(e.preventDefault(),Cr(t,f,void 0)):Wn(t._editorState._selection)?(T=!i&&(67===o&&($?a:l)))?(e.preventDefault(),Cr(t,A,e)):(T=!i&&(88===o&&($?a:l)))?(e.preventDefault(),Cr(t,O,e)):65===o&&($?a:l)&&(e.preventDefault(),t.update((()=>{je()}))):!F&&65===o&&($?a:l)&&(e.preventDefault(),t.update((()=>{je()})))}else Cr(t,S,e);else 46===o?Cr(t,w,e):(e.preventDefault(),Cr(t,n,!1));else 8===o?Cr(t,E,e):(e.preventDefault(),Cr(t,n,!0));else Xt=!1,Cr(t,x,e);else Cr(t,y,e);else Cr(t,b,e);else Cr(t,v,e);else Cr(t,g,e);else Cr(t,h,e);else Cr(t,m,e);(l||i||k||a)&&Cr(t,P,e)}}}],["pointerdown",function(e,t){let n=e.target;e=e.pointerType,n instanceof Node&&"touch"!==e&&kr(t,(()=>{Nr(Oe(n))||(qt=!0)}))}],["compositionstart",function(e,t){kr(t,(()=>{let n=tr();if(Fn(n)&&!t.isComposing()){let r=n.anchor,o=n.anchor.getNode();Te(r.key),(e.timeStamp<Kt+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||o.getStyle()!==n.style)&&Cr(t,i,Y)}}))}],["compositionend",function(e,t){F?Jt=!0:kr(t,(()=>{on(t,e.data)}))}],["input",function(e,t){e.stopPropagation(),kr(t,(()=>{var n=tr(),r=e.data,o=rn(e);if(null!=r&&Fn(n)&&en(n,o,r,e.timeStamp,!1)){Jt&&(on(t,r),Jt=!1);var l=n.anchor,a=l.getNode();if(null===(o=lt(t._window)))return;let s=l.offset;(l=H&&!n.isCollapsed()&&An(a)&&null!==o.anchorNode)&&(l=(a=a.getTextContent().slice(0,s)+r+a.getTextContent().slice(s+n.focus.offset))===(3===(o=o.anchorNode).nodeType?o.nodeValue:null)),l||Cr(t,i,r),r=r.length,F&&1<r&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=r),j||W||U||!t.isComposing()||(Kt=0,Te(null))}else Be(!1,t,null!==r?r:void 0),Jt&&(on(t,r||void 0),Jt=!1);hr(),se(n=vr())})),Yt=null}],["click",function(e,n){kr(n,(()=>{let r=tr();var o=lt(n._window);let i=nr();if(o)if(Fn(r)){let t=r.anchor;var l=t.getNode();"element"===t.type&&0===t.offset&&r.isCollapsed()&&!Mr(l)&&1===Pe().getChildrenSize()&&l.getTopLevelElementOrThrow().isEmpty()&&null!==i&&r.is(i)?(o.removeAllRanges(),r.dirty=!0):3!==e.detail||r.isCollapsed()||l!==(o=r.focus.getNode())&&(Ar(l)?l.select(0):l.getParentOrThrow().select(0))}else"touch"===e.pointerType&&(null!==(l=o.anchorNode)&&(1===(l=l.nodeType)||3===l))&&Ie(o=er(i,o,n));Cr(n,t,e)}))}],["cut",jt],["copy",jt],["dragstart",jt],["dragover",jt],["dragend",jt],["paste",jt],["focus",jt],["blur",jt],["drop",jt]];H&&Wt.push(["beforeinput",(e,t)=>function(e,t){let p=e.inputType,m=rn(e);"deleteCompositionText"===p||F&&Ye(t)||"insertCompositionText"!==p&&kr(t,(()=>{let h=tr();if("deleteContentBackward"===p){if(null===h){var g=nr();if(!Fn(g))return;Ie(g.clone())}if(Fn(h))return void(229===Ut&&e.timeStamp<Kt+30&&t.isComposing()&&h.anchor.key===h.focus.key?(Te(null),Kt=0,setTimeout((()=>{kr(t,(()=>{Te(null)}))}),30),Fn(h)&&(g=h.anchor.getNode(),g.markDirty(),h.format=g.getFormat(),h.style=g.getStyle())):(e.preventDefault(),Cr(t,n,!0)))}if(Fn(h)){g=e.data,null!==Yt&&Be(!1,t,Yt),h.dirty&&null===Yt||!h.isCollapsed()||Mr(h.anchor.getNode())||null===m||h.applyDOMRange(m),Yt=null;var v=h.focus,b=h.anchor.getNode();if(v=v.getNode(),"insertText"===p||"insertTranspose"===p)"\n"===g?(e.preventDefault(),Cr(t,r,!1)):"\n\n"===g?(e.preventDefault(),Cr(t,o,void 0)):null==g&&e.dataTransfer?(g=e.dataTransfer.getData("text/plain"),e.preventDefault(),h.insertRawText(g)):null!=g&&en(h,m,g,e.timeStamp,!0)?(e.preventDefault(),Cr(t,i,g)):Yt=g,Gt=e.timeStamp;else switch(e.preventDefault(),p){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Cr(t,i,e);break;case"insertFromComposition":Te(null),Cr(t,i,e);break;case"insertLineBreak":Te(null),Cr(t,r,!1);break;case"insertParagraph":Te(null),Xt&&!W?(Xt=!1,Cr(t,r,!1)):Cr(t,o,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Cr(t,l,e);break;case"deleteByComposition":(function(e,t){return e!==t||Ar(e)||Ar(t)||!e.isToken()||!t.isToken()})(b,v)&&Cr(t,a,e);break;case"deleteByDrag":case"deleteByCut":Cr(t,a,e);break;case"deleteContent":Cr(t,n,!1);break;case"deleteWordBackward":Cr(t,s,!0);break;case"deleteWordForward":Cr(t,s,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Cr(t,u,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Cr(t,u,!1);break;case"formatStrikeThrough":Cr(t,c,"strikethrough");break;case"formatBold":Cr(t,c,"bold");break;case"formatItalic":Cr(t,c,"italic");break;case"formatUnderline":Cr(t,c,"underline");break;case"historyUndo":Cr(t,d,void 0);break;case"historyRedo":Cr(t,f,void 0)}}}))}(e,t)]);let Kt=0,Ut=0,Gt=0,Yt=null,Vt=0,Qt=!1,qt=!1,Xt=!1,Jt=!1,Zt=[0,"",0,"root",0];function en(e,t,n,r,o){let i=e.anchor,l=e.focus,a=i.getNode();var s=vr();let u=lt(s._window),c=null!==u?u.anchorNode:null,d=i.key;s=s.getElementByKey(d);let f=n.length;return d!==l.key||!An(a)||(!o&&(!H||Gt<r+50)||a.isDirty()&&2>f||ze(n))&&i.offset!==l.offset&&!a.isComposing()||xe(a)||a.isDirty()&&1<f||(o||!H)&&null!==s&&!a.isComposing()&&c!==_e(s)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;e=e.anchor.offset;let n=t.getParentOrThrow(),r=t.isToken();return 0===e?((e=!t.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=(An(t=t.getPreviousSibling())||Ar(t)&&t.isInline())&&!t.canInsertTextAfter()),e):e===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()||r)}(e,a)}function tn(e,t){return null!==e&&null!==e.nodeValue&&3===e.nodeType&&0!==t&&t!==e.nodeValue.length}function nn(t,n,r){let{anchorNode:o,anchorOffset:i,focusNode:l,focusOffset:a}=t;Qt&&(Qt=!1,tn(o,i)&&tn(l,a))||kr(n,(()=>{if(r){if(be(n,o,l)){var i=tr();if(Fn(i)){var a=i.anchor,s=a.getNode();if(i.isCollapsed()){"Range"===t.type&&t.anchorNode===t.focusNode&&(i.dirty=!0);var u=Je(n).event;u=u?u.timeStamp:performance.now();let[e,r,o,l,c]=Zt;u<c+200&&a.offset===o&&a.key===l?(i.format=e,i.style=r):"text"===a.type?(i.format=s.getFormat(),i.style=s.getStyle()):"element"===a.type&&(i.format=0,i.style="")}else{a=255,s=!1;let e=(u=i.getNodes()).length;for(let t=0;t<e;t++){let e=u[t];if(An(e)&&(s=!0,0===(a&=e.getFormat())))break}i.format=s?a:0}}Cr(n,e,void 0)}}else Ie(null)}))}function rn(e){return e.getTargetRanges?0===(e=e.getTargetRanges()).length?null:e[0]:null}function on(e,t){var n=e._compositionKey;if(Te(null),null!==n&&null!=t){if(""===t)return t=Re(n),void(null!==(e=_e(e.getElementByKey(n)))&&null!==e.nodeValue&&An(t)&&He(t,e.nodeValue,null,null,!0));if("\n"===t[t.length-1]&&Fn(n=tr()))return t=n.focus,n.anchor.set(t.key,t.offset,t.type),void Cr(e,x,null)}Be(!0,e,t)}function ln(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}let an=new Map;function sn(e){let t=lt(null==(e=e.target)?null:9===e.nodeType?e.defaultView:e.ownerDocument.defaultView);if(null!==t){var n=ye(t.anchorNode);if(null!==n){qt&&(qt=!1,kr(n,(()=>{var e=nr(),r=t.anchorNode;null!==r&&(1===(r=r.nodeType)||3===r)&&Ie(e=er(e,t,n))})));var r=(e=(e=$e(n))[e.length-1])._key,o=an.get(r),i=o||e;i!==n&&nn(t,i,!1),nn(t,n,!0),n!==e?an.set(r,n):o&&an.delete(r)}}}function un(e,t,n){hr();var r=e.__key;let o=e.getParent();if(null!==o){var i=tr();if(Fn(i)&&Ar(e)){var{anchor:l,focus:a}=i,s=l.getNode(),u=a.getNode();Xe(s,e)&&l.set(e.__key,0,"element"),Xe(u,e)&&a.set(e.__key,0,"element")}if(u=!1,Fn(s=i)&&t){i=s.anchor;let t=s.focus;i.key===r&&(ir(i,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0),t.key===r&&(ir(t,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0)}else Wn(s)&&t&&e.isSelected()&&e.selectPrevious();Fn(s)&&t&&!u?(r=e.getIndexWithinParent(),Se(e),rr(s,o,r,-1)):Se(e),n||et(o)||o.canBeEmpty()||!o.isEmpty()||un(o,t),t&&Mr(o)&&o.isEmpty()&&o.selectEnd()}}class cn{static getType(){I(64,this.name)}static clone(){I(65,this.name)}constructor(e){this.__type=this.constructor.getType(),this.__next=this.__prev=this.__parent=null,we(this,e)}getType(){return this.__type}isAttached(){for(var e=this.__key;null!==e;){if("root"===e)return!0;if(null===(e=Re(e)))break;e=e.__parent}return!1}isSelected(e){if(null==(e=e||tr()))return!1;let t=e.getNodes().some((e=>e.__key===this.__key));return(An(this)||!Fn(e)||"element"!==e.anchor.type||"element"!==e.focus.type||e.anchor.key!==e.focus.key||e.anchor.offset!==e.focus.offset)&&t}getKey(){return this.__key}getIndexWithinParent(){var e=this.getParent();if(null===e)return-1;e=e.getFirstChild();let t=0;for(;null!==e;){if(this.is(e))return t;t++,e=e.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return null===e?null:Re(e)}getParentOrThrow(){let e=this.getParent();return null===e&&I(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(et(t))return e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&I(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:Re(e)}getPreviousSiblings(){let e=[];var t=this.getParent();if(null===t)return e;for(t=t.getFirstChild();null!==t&&!t.is(this);)e.push(t),t=t.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:Re(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=this.getParents();var n=e.getParents();Ar(this)&&t.unshift(this),Ar(e)&&n.unshift(e),e=t.length;var r=n.length;if(0===e||0===r||t[e-1]!==n[r-1])return null;for(n=new Set(n),r=0;r<e;r++){let e=t[r];if(n.has(e))return e}return null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){if(this===e)return!1;if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;var t=this.getCommonAncestor(e);let n=this;for(;;){var r=n.getParentOrThrow();if(r===t){r=n.getIndexWithinParent();break}n=r}for(n=e;;){if((e=n.getParentOrThrow())===t){t=n.getIndexWithinParent();break}n=e}return r<t}isParentOf(e){let t=this.__key;if(t===e.__key)return!1;for(;null!==e;){if(e.__key===t)return!0;e=e.getParent()}return!1}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set;for(var o=this;;){var i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;if(null!==(i=Ar(o)?t?o.getFirstChild():o.getLastChild():null))o=i;else if(null!==(i=t?o.getNextSibling():o.getPreviousSibling()))o=i;else{if(o=o.getParentOrThrow(),r.has(o.__key)||n.push(o),o===e)break;i=o;do{null===i&&I(68),o=t?i.getNextSibling():i.getPreviousSibling(),null!==(i=i.getParent())&&(null!==o||r.has(i.__key)||n.push(i))}while(null===o)}}return t||n.reverse(),n}isDirty(){let e=vr()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=Re(this.__key);return null===e&&I(113),e}getWritable(){hr();var e=gr(),t=vr();e=e._nodeMap;let n=this.__key,r=this.getLatest(),o=r.__parent;t=t._cloneNotNeeded;var i=tr();return null!==i&&(i._cachedNodes=null),t.has(n)?(ke(r),r):((i=r.constructor.clone(r)).__parent=o,i.__next=r.__next,i.__prev=r.__prev,Ar(r)&&Ar(i)?(i.__first=r.__first,i.__last=r.__last,i.__size=r.__size,i.__indent=r.__indent,i.__format=r.__format,i.__dir=r.__dir):An(r)&&An(i)&&(i.__format=r.__format,i.__style=r.__style,i.__mode=r.__mode,i.__detail=r.__detail),t.add(n),i.__key=n,ke(i),e.set(n,i),i)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){I(70)}updateDOM(){I(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){I(72)}static importJSON(){I(18,this.name)}static transform(){return null}remove(e){un(this,!0,e)}replace(e,t){hr();var n=tr();null!==n&&(n=n.clone()),rt(this,e);let r=this.getLatest(),o=this.__key,i=e.__key,l=e.getWritable(),a=(e=this.getParentOrThrow().getWritable()).__size;Se(l);let s=r.getPreviousSibling(),u=r.getNextSibling(),c=r.__prev,d=r.__next,f=r.__parent;return un(r,!1,!0),null===s?e.__first=i:s.getWritable().__next=i,l.__prev=c,null===u?e.__last=i:u.getWritable().__prev=i,l.__next=d,l.__parent=f,e.__size=a,t&&this.getChildren().forEach((e=>{l.append(e)})),Fn(n)&&(Ie(n),t=n.anchor,n=n.focus,t.key===o&&In(t,l),n.key===o&&In(n,l)),Ne()===o&&Te(i),l}insertAfter(e,t=!0){hr(),rt(this,e);var n=this.getWritable();let r=e.getWritable();var o=r.getParent();let i=tr();var l=!1,a=!1;if(null!==o){var s=e.getIndexWithinParent();Se(r),Fn(i)&&(a=o.__key,l=i.anchor,o=i.focus,l="element"===l.type&&l.key===a&&l.offset===s+1,a="element"===o.type&&o.key===a&&o.offset===s+1)}o=this.getNextSibling(),s=this.getParentOrThrow().getWritable();let u=r.__key,c=n.__next;return null===o?s.__last=u:o.getWritable().__prev=u,s.__size++,n.__next=u,r.__next=c,r.__prev=n.__key,r.__parent=n.__parent,t&&Fn(i)&&(rr(i,s,(t=this.getIndexWithinParent())+1),n=s.__key,l&&i.anchor.set(n,t+2,"element"),a&&i.focus.set(n,t+2,"element")),e}insertBefore(e,t=!0){hr(),rt(this,e);var n=this.getWritable();let r=e.getWritable(),o=r.__key;Se(r);let i=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),a=n.__prev,s=this.getIndexWithinParent();return null===i?l.__first=o:i.getWritable().__next=o,l.__size++,n.__prev=o,r.__prev=a,r.__next=n.__key,r.__parent=n.__parent,n=tr(),t&&Fn(n)&&rr(n,t=this.getParentOrThrow(),s),e}isParentRequired(){return!1}createParentElementNode(){return Fr()}selectPrevious(e,t){hr();let n=this.getPreviousSibling(),r=this.getParentOrThrow();return null===n?r.select(0,0):Ar(n)?n.select():An(n)?n.select(e,t):(e=n.getIndexWithinParent()+1,r.select(e,e))}selectNext(e,t){hr();let n=this.getNextSibling(),r=this.getParentOrThrow();return null===n?r.select():Ar(n)?n.select(0,0):An(n)?n.select(e,t):(e=n.getIndexWithinParent(),r.select(e,e))}markDirty(){this.getWritable()}}class dn extends cn{static getType(){return"linebreak"}static clone(e){return new dn(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>{let t,n,r=e.parentElement;return null!==r&&((t=r.firstChild)===e||t.nextSibling===e&&3===t.nodeType&&null!==(t.textContent||"").match(/^[\s|\r?\n|\t]+$/))&&((n=r.lastChild)===e||n.previousSibling===e&&3===n.nodeType&&null!==(n.textContent||"").match(/^[\s|\r?\n|\t]+$/))?null:{conversion:fn,priority:0}}}}static importJSON(){return pn()}exportJSON(){return{type:"linebreak",version:1}}}function fn(){return{node:pn()}}function pn(){return nt(new dn)}function mn(e){return e instanceof dn}function hn(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function gn(e,t){return 1&t?"strong":2&t?"em":"span"}function vn(e,t,n,r,o){e=r.classList,void 0!==(r=We(o,"base"))&&e.add(...r);let i=!1,l=8&t&&4&t;var a=8&n&&4&n;void 0!==(r=We(o,"underlineStrikethrough"))&&(a?(i=!0,l||e.add(...r)):l&&e.remove(...r));for(let s in q)a=q[s],void 0!==(r=We(o,s))&&(n&a&&(!i||"underline"!==s&&"strikethrough"!==s)?(!(t&a)||l&&"underline"===s||"strikethrough"===s)&&e.add(...r):t&a&&e.remove(...r))}function bn(e,t,n){let r=t.firstChild;if(e+=(n=n.isComposing())?G:"",null==r)t.textContent=e;else if((t=r.nodeValue)!==e)if(n||F){n=t.length;let o=e.length,i=0,l=0;for(;i<n&&i<o&&t[i]===e[i];)i++;for(;l+i<n&&l+i<o&&t[n-l-1]===e[o-l-1];)l++;e=[i,n-i-l,e.slice(i,o-l)];let[a,s,u]=e;0!==s&&r.deleteData(a,s),r.insertData(a,u)}else r.nodeValue=e}function yn(e,t){return(t=document.createElement(t)).appendChild(e),t}class xn extends cn{static getType(){return"text"}static clone(e){return new xn(e.__text,e.__key)}constructor(e,t){super(t),this.__text=e,this.__format=0,this.__style="",this.__detail=this.__mode=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return ne[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Ne()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){return e=q[e],!!(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Ee(this.getLatest().__format,e,t)}createDOM(e){var t=this.__format,n=hn(0,t);let r=gn(0,t),o=document.createElement(null===n?r:n),i=o;return null!==n&&(i=document.createElement(r),o.appendChild(i)),n=i,bn(this.__text,n,this),void 0!==(e=e.theme.text)&&vn(r,0,t,n,e),""!==(t=this.__style)&&(o.style.cssText=t),o}updateDOM(e,t,n){let r=this.__text;var o=e.__format,i=this.__format,l=hn(0,o);let a=hn(0,i);var s=gn(0,o);let u=gn(0,i);return(null===l?s:l)!==(null===a?u:a)||(l===a&&s!==u?(null==(o=t.firstChild)&&I(48),bn(r,e=l=document.createElement(u),this),void 0!==(n=n.theme.text)&&vn(u,0,i,e,n),t.replaceChild(l,o),!1):(s=t,null!==a&&null!==l&&(null==(s=t.firstChild)&&I(49)),bn(r,s,this),void 0!==(n=n.theme.text)&&o!==i&&vn(u,o,i,s,n),i=this.__style,e.__style!==i&&(t.style.cssText=i),!1))}static importDOM(){return{"#text":()=>({conversion:wn,priority:0}),b:()=>({conversion:En,priority:0}),code:()=>({conversion:Nn,priority:0}),em:()=>({conversion:Nn,priority:0}),i:()=>({conversion:Nn,priority:0}),s:()=>({conversion:Nn,priority:0}),span:()=>({conversion:_n,priority:0}),strong:()=>({conversion:Nn,priority:0}),sub:()=>({conversion:Nn,priority:0}),sup:()=>({conversion:Nn,priority:0}),u:()=>({conversion:Nn,priority:0})}}static importJSON(e){let t=Rn(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){return({element:e}=super.exportDOM(e)),null!==e&&(this.hasFormat("bold")&&(e=yn(e,"b")),this.hasFormat("italic")&&(e=yn(e,"i")),this.hasFormat("strikethrough")&&(e=yn(e,"s")),this.hasFormat("underline")&&(e=yn(e,"u"))),{element:e}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?q[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?X[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){return e=q[e],this.setFormat(this.getFormat()^e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){if(e=ee[e],this.__mode===e)return this;let t=this.getWritable();return t.__mode=e,t}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){hr();let n=tr();var r=this.getTextContent();let o=this.__key;return"string"==typeof r?(r=r.length,void 0===e&&(e=r),void 0===t&&(t=r)):t=e=0,Fn(n)?((r=Ne())!==n.anchor.key&&r!==n.focus.key||Te(o),n.setTextNodeRange(this,e,this,t),n):Jn(o,e,o,t,"text","text")}spliceText(e,t,n,r){let o=this.getWritable(),i=o.__text,l=n.length,a=e;0>a&&(a=l+a,0>a&&(a=0));let s=tr();return r&&Fn(s)&&(e+=l,s.setTextNodeRange(o,e,o,e)),t=i.slice(0,a)+n+i.slice(a+t),o.__text=t,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){hr();var t=this.getLatest(),n=t.getTextContent(),r=t.__key,o=Ne(),i=new Set(e);e=[];for(var l=n.length,a="",s=0;s<l;s++)""!==a&&i.has(s)&&(e.push(a),a=""),a+=n[s];if(""!==a&&e.push(a),0===(i=e.length))return[];if(e[0]===n)return[t];var u=e[0];n=t.getParentOrThrow(),s=t.getFormat();let c=t.getStyle(),d=t.__detail;l=!1,t.isSegmented()?((a=Rn(u)).__format=s,a.__style=c,a.__detail=d,l=!0):(a=t.getWritable()).__text=u,t=tr(),a=[a],u=u.length;for(let n=1;n<i;n++){var f=e[n],p=f.length;(f=Rn(f).getWritable()).__format=s,f.__style=c,f.__detail=d;let i=f.__key;if(p=u+p,Fn(t)){let e=t.anchor,n=t.focus;e.key===r&&"text"===e.type&&e.offset>u&&e.offset<=p&&(e.key=i,e.offset-=u,t.dirty=!0),n.key===r&&"text"===n.type&&n.offset>u&&n.offset<=p&&(n.key=i,n.offset-=u,t.dirty=!0)}o===r&&Te(i),u=p,a.push(f)}return r=this.getPreviousSibling(),o=this.getNextSibling(),null!==r&&ke(r),null!==o&&ke(o),r=n.getWritable(),o=this.getIndexWithinParent(),l?(r.splice(o,0,a),this.remove()):r.splice(o,1,a),Fn(t)&&rr(t,n,o,i-1),a}mergeWithSibling(e){var t=e===this.getPreviousSibling();t||e===this.getNextSibling()||I(50);var n=this.__key;let r=e.__key,o=this.__text,i=o.length;Ne()===r&&Te(n);let l=tr();if(Fn(l)){let o=l.anchor,a=l.focus;null!==o&&o.key===r&&(lr(o,t,n,e,i),l.dirty=!0),null!==a&&a.key===r&&(lr(a,t,n,e,i),l.dirty=!0)}return n=e.__text,this.setTextContent(t?n+o:o+n),t=this.getWritable(),e.remove(),t}isTextEntity(){return!1}}function _n(e){let t="700"===e.style.fontWeight,n="line-through"===e.style.textDecoration,r="italic"===e.style.fontStyle,o="underline"===e.style.textDecoration,i=e.style.verticalAlign;return{forChild:e=>An(e)?(t&&e.toggleFormat("bold"),n&&e.toggleFormat("strikethrough"),r&&e.toggleFormat("italic"),o&&e.toggleFormat("underline"),"sub"===i&&e.toggleFormat("subscript"),"super"===i&&e.toggleFormat("superscript"),e):e,node:null}}function En(e){let t="normal"===e.style.fontWeight;return{forChild:e=>(An(e)&&!t&&e.toggleFormat("bold"),e),node:null}}let Cn=new WeakMap;function wn(e){null===e.parentElement&&I(129);for(var t,n=e.textContent||"",r=e.parentNode,o=[e];null!==r&&void 0===(t=Cn.get(r))&&!("PRE"===r.nodeName||1===r.nodeType&&r.style.whiteSpace.startsWith("pre"));)o.push(r),r=r.parentNode;for(t=void 0===t?r:t,r=0;r<o.length;r++)Cn.set(o[r],t);if(null!==t){for(e=[],o=(n=n.split(/(\r?\n|\t)/)).length,t=0;t<o;t++)"\n"===(r=n[t])||"\r\n"===r?e.push(pn()):"\t"===r?e.push(Ln()):""!==r&&e.push(Rn(r));return{node:e}}if(""===(n=n.replace(/\r?\n|\t/gm," ").replace("\r","").replace(/\s+/g," ")))return{node:null};if(" "===n[0]){for(o=e,t=!0;null!==o&&null!==(o=kn(o,!1));)if(0<(r=o.textContent||"").length){r.match(/(?:\s|\r?\n|\t)$/)&&(n=n.slice(1)),t=!1;break}t&&(n=n.slice(1))}if(" "===n[n.length-1]){for(o=!0;null!==e&&null!==(e=kn(e,!0));)if(0<(e.textContent||"").replace(/^[\s|\r?\n|\t]+/,"").length){o=!1;break}o&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:Rn(n)}}let Sn=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function kn(e,t){for(;;){for(var n=void 0;null===(n=t?e.nextSibling:e.previousSibling);)if(null===(e=e.parentElement))return null;if(1===(e=n).nodeType&&(""===(n=e.style.display)&&null===e.nodeName.match(Sn)||""!==n&&!n.startsWith("inline")))return null;for(;null!==(n=t?e.firstChild:e.lastChild);)e=n;if(3===e.nodeType)return e;if("BR"===e.nodeName)return null}}let Tn={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Nn(e){let t=Tn[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:e=>(An(e)&&!e.hasFormat(t)&&e.toggleFormat(t),e),node:null}}function Rn(e=""){return nt(new xn(e))}function An(e){return e instanceof xn}class On extends xn{static getType(){return"tab"}static clone(e){let t=new On(e.__key);return t.__text=e.__text,t.__format=e.__format,t.__style=e.__style,t}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}static importJSON(e){let t=Ln();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(){I(126)}setDetail(){I(127)}setMode(){I(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Ln(){return nt(new On)}class Mn{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),n=e.getNode(),r=this.offset;if(e=e.offset,Ar(t)){var o=t.getDescendantByIndex(r);t=null!=o?o:t}return Ar(n)&&(o=n.getDescendantByIndex(e),n=null!=o?o:n),t===n?r<e:t.isBefore(n)}getNode(){let e=Re(this.key);return null===e&&I(20),e}set(e,t,n){let r=this._selection,o=this.key;this.key=e,this.offset=t,this.type=n,mr()||(Ne()===o&&Te(e),null!==r&&(r._cachedNodes=null,r.dirty=!0))}}function Pn(e,t){let n=t.__key,r=e.offset,o="element";if(An(t))o="text",r>(t=t.getTextContentSize())&&(r=t);else if(!Ar(t)){var i=t.getNextSibling();An(i)?(n=i.__key,r=0,o="text"):(i=t.getParent())&&(n=i.__key,r=t.getIndexWithinParent()+1)}e.set(n,r,o)}function In(e,t){if(Ar(t)){let n=t.getLastDescendant();Ar(n)||An(n)?Pn(e,n):Pn(e,t)}else Pn(e,t)}function Dn(e,t,n,r){let o=e.getNode(),i=o.getChildAtIndex(e.offset),l=Rn(),a=Mr(o)?Fr().append(l):l;l.setFormat(n),l.setStyle(r),null===i?o.append(a):(i.insertBefore(a),"element"===t.type&&t.key===e.key&&t.offset!==e.offset&&t.set(t.key,t.offset+1,"element")),e.is(t)&&t.set(l.__key,0,"text"),e.set(l.__key,0,"text")}function zn(e,t,n,r){e.key=t,e.offset=n,e.type=r}class $n{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!Wn(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((e=>n.has(e)))}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new $n(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.getNodes(),r=n.length;var o=n[r-1];if(An(o))o=o.select();else{let e=o.getIndexWithinParent()+1;o=o.getParentOrThrow().select(e,e)}for(o.insertNodes(e,t),e=0;e<r;e++)n[e].remove();return!0}getNodes(){var e=this._cachedNodes;if(null!==e)return e;var t=this._nodes;e=[];for(let n of t)null!==(t=Re(n))&&e.push(t);return mr()||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}function Fn(e){return e instanceof jn}class Bn{constructor(e,t,n){this.gridKey=e,this.anchor=t,this.focus=n,this.dirty=!1,this._cachedNodes=null,t._selection=this,n._selection=this}is(e){return!!Hn(e)&&(this.gridKey===e.gridKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus))}set(e,t,n){this.dirty=!0,this.gridKey=e,this.anchor.key=t,this.focus.key=n,this._cachedNodes=null}clone(){return new Bn(this.gridKey,this.anchor,this.focus)}isCollapsed(){return!1}isBackward(){return this.focus.isBefore(this.anchor)}getCharacterOffsets(){return Un(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.focus.getNode();return pe(n.select(0,n.getChildrenSize())).insertNodes(e,t)}getShape(){var e=Re(this.anchor.key);null===e&&I(21);var t=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var n=Re(this.focus.key);null===n&&I(22);var r=n.getIndexWithinParent();let o=n.getParentOrThrow().getIndexWithinParent();return n=Math.min(t,r),t=Math.max(t,r),r=Math.min(e,o),e=Math.max(e,o),{fromX:Math.min(n,t),fromY:Math.min(r,e),toX:Math.max(n,t),toY:Math.max(r,e)}}getNodes(){function e(e){let{cell:t,startColumn:n,startRow:r}=e;a=Math.min(a,n),s=Math.min(s,r),u=Math.max(u,n+t.__colSpan-1),c=Math.max(c,r+t.__rowSpan-1)}var t=this._cachedNodes;if(null!==t)return t;var n=this.anchor.getNode();t=this.focus.getNode(),n=st(n,Wr);var r=st(t,Wr);Wr(n)||I(103),Wr(r)||I(104),Yr(t=n.getParent())||I(105),Ur(t=t.getParent())||I(106);let[o,i,l]=ar(t,n,r),a=Math.min(i.startColumn,l.startColumn),s=Math.min(i.startRow,l.startRow),u=Math.max(i.startColumn+i.cell.__colSpan-1,l.startColumn+l.cell.__colSpan-1),c=Math.max(i.startRow+i.cell.__rowSpan-1,l.startRow+l.cell.__rowSpan-1);n=a,r=s;for(var d=a,f=s;a<n||s<r||u>d||c>f;){if(a<n){var p=f-r;--n;for(var m=0;m<=p;m++)e(o[r+m][n])}if(s<r)for(p=d-n,--r,m=0;m<=p;m++)e(o[r][n+m]);if(u>d)for(p=f-r,d+=1,m=0;m<=p;m++)e(o[r+m][d]);if(c>f)for(p=d-n,f+=1,m=0;m<=p;m++)e(o[f][n+m])}for(t=[t],n=null,r=s;r<=c;r++)for(d=a;d<=u;d++)({cell:f}=o[r][d]),Yr(p=f.getParent())||I(107),p!==n&&t.push(p),t.push(f,...ut(f)),n=p;return mr()||(this._cachedNodes=t),t}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}function Hn(e){return e instanceof Bn}class jn{constructor(e,t,n,r){this.anchor=e,this.focus=t,this.dirty=!1,this.format=n,this.style=r,this._cachedNodes=null,e._selection=this,t._selection=this}is(e){return!!Fn(e)&&(this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style)}isBackward(){return this.focus.isBefore(this.anchor)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){var e=this._cachedNodes;if(null!==e)return e;e=this.anchor;var t=this.focus,n=e.isBefore(t),r=n?e:t;n=n?t:e,e=r.getNode(),t=n.getNode();let o=r.offset;return r=n.offset,Ar(e)&&(n=e.getDescendantByIndex(o),e=null!=n?n:e),Ar(t)&&(null!==(n=t.getDescendantByIndex(r))&&n!==e&&t.getChildAtIndex(r)===n&&(n=n.getPreviousSibling()),t=null!=n?n:t),e=e.is(t)?Ar(e)&&0<e.getChildrenSize()?[]:[e]:e.getNodesBetween(t),mr()||(this._cachedNodes=e),e}setTextNodeRange(e,t,n,r){zn(this.anchor,e.__key,t,"text"),zn(this.focus,n.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[l,a]=Un(this),s="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(Ar(d)&&!d.isInline())u||(s+="\n"),u=!d.isEmpty();else if(u=!1,An(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===o.type&&o.offset!==r.offset||(e=l<a?e.slice(l,a):e.slice(a,l)):e=i?e.slice(l):e.slice(a):d===n&&(e=i?e.slice(0,a):e.slice(0,l)),s+=e}else!Nr(d)&&!mn(d)||d===n&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let t=vr(),n=t.getEditorState()._selection;if(null!==(e=qn(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n))){var[r,o]=e;zn(this.anchor,r.key,r.offset,r.type),zn(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,t=this.focus;return new jn(new Mn(e.key,e.offset,e.type),new Mn(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Ee(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){return!!(this.format&q[e])}insertRawText(e){let t=[],n=(e=e.split(/(\r?\n|\t)/)).length;for(let r=0;r<n;r++){let n=e[r];"\n"===n||"\r\n"===n?t.push(pn()):"\t"===n?t.push(Ln()):t.push(Rn(n))}this.insertNodes(t)}insertText(e){var t=this.anchor,n=this.focus,r=this.isCollapsed()||t.isBefore(n),o=this.format,i=this.style;r&&"element"===t.type?Dn(t,n,o,i):r||"element"!==n.type||Dn(n,t,o,i);var l=this.getNodes(),a=l.length,s=r?n:t;n=(r?t:n).offset;var u=s.offset;An(t=l[0])||I(26),r=t.getTextContent().length;var c=t.getParentOrThrow(),d=l[a-1];if(this.isCollapsed()&&n===r&&(t.isSegmented()||t.isToken()||!t.canInsertTextAfter()||!c.canInsertTextAfter()&&null===t.getNextSibling())){var f=t.getNextSibling();if(An(f)&&f.canInsertTextBefore()&&!xe(f)||((f=Rn()).setFormat(o),c.canInsertTextAfter()?t.insertAfter(f):c.insertAfter(f)),f.select(0,0),t=f,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===n&&(t.isSegmented()||t.isToken()||!t.canInsertTextBefore()||!c.canInsertTextBefore()&&null===t.getPreviousSibling())){if(An(f=t.getPreviousSibling())&&!xe(f)||((f=Rn()).setFormat(o),c.canInsertTextBefore()?t.insertBefore(f):c.insertBefore(f)),f.select(),t=f,""!==e)return void this.insertText(e)}else if(t.isSegmented()&&n!==r)(c=Rn(t.getTextContent())).setFormat(o),t.replace(c),t=c;else if(!(this.isCollapsed()||""===e||(f=d.getParent(),c.canInsertTextBefore()&&c.canInsertTextAfter()&&(!Ar(f)||f.canInsertTextBefore()&&f.canInsertTextAfter()))))return this.insertText(""),Qn(this.anchor,this.focus,null),void this.insertText(e);if(1===a)if(t.isToken())(e=Rn(e)).select(),t.replace(e);else{if(l=t.getFormat(),a=t.getStyle(),n===u&&(l!==o||a!==i)){if(""!==t.getTextContent())return(l=Rn(e)).setFormat(o),l.setStyle(i),l.select(),0===n?t.insertBefore(l,!1):([a]=t.splitText(n),a.insertAfter(l,!1)),void(l.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length));t.setFormat(o),t.setStyle(i)}""===(t=t.spliceText(n,u-n,e,!0)).getTextContent()?t.remove():"text"===this.anchor.type&&(t.isComposing()?this.anchor.offset-=e.length:(this.format=l,this.style=a))}else{if(o=new Set([...t.getParentKeys(),...d.getParentKeys()]),f=Ar(t)?t:t.getParentOrThrow(),i=Ar(d)?d:d.getParentOrThrow(),c=d,!f.is(i)&&i.isInline())do{c=i,i=i.getParentOrThrow()}while(i.isInline());"text"===s.type&&(0!==u||""===d.getTextContent())||"element"===s.type&&d.getIndexWithinParent()<u?An(d)&&!d.isToken()&&u!==d.getTextContentSize()?(d.isSegmented()&&(s=Rn(d.getTextContent()),d.replace(s),d=s),d=d.spliceText(0,u,""),o.add(d.__key)):(s=d.getParentOrThrow()).canBeEmpty()||1!==s.getChildrenSize()?d.remove():s.remove():o.add(d.__key),s=i.getChildren(),u=new Set(l),d=f.is(i),f=f.isInline()&&null===t.getNextSibling()?f:t;for(let e=s.length-1;0<=e;e--){let n=s[e];if(n.is(t)||Ar(n)&&n.isParentOf(t))break;n.isAttached()&&(!u.has(n)||n.is(c)?d||f.insertAfter(n,!1):n.remove())}if(!d)for(s=i,u=null;null!==s;)(0===(d=(i=s.getChildren()).length)||i[d-1].is(u))&&(o.delete(s.__key),u=s),s=s.getParent();for(t.isToken()?n===r?t.select():((e=Rn(e)).select(),t.replace(e)):""===(t=t.spliceText(n,r-n,e,!0)).getTextContent()?t.remove():t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length),e=1;e<a;e++)t=l[e],o.has(t.__key)||t.remove()}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())this.toggleFormat(e),Te(null);else{var t=this.getNodes(),n=[];for(var r of t)An(r)&&n.push(r);var o=n.length;if(0===o)this.toggleFormat(e),Te(null);else{r=this.anchor;var i=this.focus,l=this.isBackward();t=l?i:r,r=l?r:i;var a=0,s=n[0];if(i="element"===t.type?0:t.offset,"text"===t.type&&i===s.getTextContentSize()&&(a=1,s=n[1],i=0),null!=s){l=s.getFormatFlags(e,null);var u=o-1,c=n[u];if(o="text"===r.type?r.offset:c.getTextContentSize(),s.is(c))i!==o&&(0===i&&o===s.getTextContentSize()?s.setFormat(l):(e=s.splitText(i,o),(e=0===i?e[0]:e[1]).setFormat(l),"text"===t.type&&t.set(e.__key,0,"text"),"text"===r.type&&r.set(e.__key,o-i,"text")),this.format=l);else{0!==i&&([,s]=s.splitText(i),i=0),s.setFormat(l);var d=c.getFormatFlags(e,l);for(0<o&&(o!==c.getTextContentSize()&&([c]=c.splitText(o)),c.setFormat(d)),a+=1;a<u;a++){let t=n[a];if(!t.isToken()){let n=t.getFormatFlags(e,d);t.setFormat(n)}}"text"===t.type&&t.set(s.__key,i,"text"),"text"===r.type&&r.set(c.__key,o,"text"),this.format=l|d}}}}}insertNodes(e,t){if(!this.isCollapsed()){var n=this.isBackward()?this.anchor:this.focus,r=n.getNode().getNextSibling();if(r=r?r.getKey():null,n=(n=n.getNode().getPreviousSibling())?n.getKey():null,this.removeText(),this.isCollapsed()&&"element"===this.focus.type){if(this.focus.key===r&&0===this.focus.offset){var o=Rn();this.focus.getNode().insertBefore(o)}else this.focus.key===n&&this.focus.offset===this.focus.getNode().getChildrenSize()&&(o=Rn(),this.focus.getNode().insertAfter(o));o&&(this.focus.set(o.__key,0,"text"),this.anchor.set(o.__key,0,"text"))}}n=(o=this.anchor).offset;var i=o.getNode();r=i,"element"===o.type&&(r=null===(r=(o=o.getNode()).getChildAtIndex(n-1))?o:r),o=[];var l=i.getNextSiblings(),a=et(i)?null:i.getTopLevelElementOrThrow();if(An(i))if(r=i.getTextContent().length,0===n&&0!==r)r=null!==(r=i.getPreviousSibling())?r:i.getParentOrThrow(),o.push(i);else if(n===r)r=i;else{if(i.isToken())return!1;[r,i]=i.splitText(n),o.push(i)}i=r,o.push(...l),l=e[0];var s=!1,u=null;for(let t=0;t<e.length;t++){var c=e[t];if(et(r)||Nr(r)||!Ar(c)||c.isInline())s&&!Ar(c)&&!Nr(c)&&et(r.getParent())&&I(28);else{if(c.is(l)){if(Ar(r)&&r.isEmpty()&&r.canReplaceWith(c)){r.replace(c),r=c,s=!0;continue}if(Ce(s=c.getFirstDescendant())){for(var d=s.getParentOrThrow();d.isInline();)d=d.getParentOrThrow();if(s=(u=d.getChildren()).length,Ar(r)){var f=r.getFirstChild();for(let e=0;e<s;e++){let t=u[e];null===f?r.append(t):f.insertAfter(t),f=t}}else{for(f=s-1;0<=f;f--)r.insertAfter(u[f]);r=r.getParentOrThrow()}if(u=u[s-1],d.remove(),s=!0,d.is(c))continue}}An(r)&&(null===a&&I(27),r=a)}s=!1,Ar(r)&&!r.isInline()?(u=c,Nr(c)&&!c.isInline()?r=r.insertAfter(c,!1):Ar(c)?!c.canBeEmpty()&&c.isEmpty()||(Mr(r)?(null!==(d=r.getChildAtIndex(n))?d.insertBefore(c):r.append(c),r=c):c.isInline()?(r.append(c),r=c):r=r.insertAfter(c,!1)):(null!==(d=r.getFirstChild())?d.insertBefore(c):r.append(c),r=c)):!Ar(c)||Ar(c)&&c.isInline()||Nr(r)&&!r.isInline()?(u=c,Fn(this)&&Nr(c)&&(Ar(r)||An(r))&&!c.isInline()?(An(r)?(d=r.getParentOrThrow(),[r]=r.splitText(n),r=r.getIndexWithinParent()+1):(d=r,r=n),[,r]=at(d,r),r=r.insertBefore(c)):r=r.insertAfter(c,!1)):(c=r.getParentOrThrow(),mn(r)&&r.remove(),r=c,t--)}if(t&&(An(i)?i.select():An(e=r.getPreviousSibling())?e.select():(e=r.getIndexWithinParent(),r.getParentOrThrow().select(e,e))),Ar(r)){if(e=An(u)?u:Ar(u)&&u.isInline()?u.getLastDescendant():r.getLastDescendant(),t||(null===e?r.select():An(e)?""===e.getTextContent()?e.selectPrevious():e.select():e.selectNext()),0!==o.length)for(t=r,e=o.length-1;0<=e;e--)a=(n=o[e]).getParentOrThrow(),!Ar(r)||Xn(n)||Nr(n)&&(!n.isInline()||n.isIsolated())?Ar(r)||Xn(n)?Ar(n)&&!n.canInsertAfter(r)?(Ar(i=a.constructor.clone(a))||I(29),i.append(n),r.insertAfter(i)):r.insertAfter(n):(r.insertBefore(n),r=n):(t===r?r.append(n):r.insertBefore(n),r=n),a.isEmpty()&&!a.canBeEmpty()&&a.remove()}else t||(An(r)?r.select():(t=r.getParentOrThrow(),e=r.getIndexWithinParent()+1,t.select(e,e)));return!0}insertParagraph(){this.isCollapsed()||this.removeText();var e=this.anchor,t=e.offset,n=[];if("text"===e.type){var r=e.getNode(),o=r.getNextSiblings().reverse(),i=r.getParentOrThrow(),l=i.isInline(),a=l?i.getTextContentSize():r.getTextContentSize();0===t?o.push(r):(l&&(n=i.getNextSiblings()),t===a||l&&t===r.getTextContentSize()||([,r]=r.splitText(t),o.push(r)))}else{if(et(i=e.getNode()))return o=Fr(),n=i.getChildAtIndex(t),o.select(),void(null!==n?n.insertBefore(o,!1):i.append(o));o=i.getChildren().slice(t).reverse()}if(r=o.length,0===t&&0<r&&i.isInline()){if(Ar(o=(n=i.getParentOrThrow()).insertNewAfter(this,!1)))for(n=n.getChildren(),i=0;i<n.length;i++)o.append(n[i])}else if(null===(l=i.insertNewAfter(this,!1)))this.insertLineBreak();else if(Ar(l))if(a=i.getFirstChild(),0===t&&(i.is(e.getNode())||a&&a.is(e.getNode()))&&0<r)i.insertBefore(l);else{if(i=null,t=n.length,e=l.getParentOrThrow(),0<t)for(a=0;a<t;a++)e.append(n[a]);if(0!==r)for(n=0;n<r;n++)t=o[n],null===i?l.append(t):i.insertBefore(t),i=t;l.canBeEmpty()||0!==l.getChildrenSize()?l.selectStart():(l.selectPrevious(),l.remove())}}insertLineBreak(e){let t=pn();var n=this.anchor;"element"===n.type&&(Mr(n=n.getNode())&&this.insertParagraph()),e?this.insertNodes([t],!0):this.insertNodes([t])&&t.selectNext(0,0)}getCharacterOffsets(){return Un(this)}extract(){var e=this.getNodes(),t=e.length,n=t-1,r=this.anchor;let o=this.focus;var i=e[0];let l=e[n],[a,s]=Un(this);return 0===t?[]:1===t?An(i)&&!this.isCollapsed()?(e=a>s?s:a,n=i.splitText(e,a>s?a:s),null!=(e=0===e?n[0]:n[1])?[e]:[]):[i]:(t=r.isBefore(o),An(i)&&((r=t?a:s)===i.getTextContentSize()?e.shift():0!==r&&([,i]=i.splitText(r),e[0]=i)),An(l)&&(i=l.getTextContent().length,0===(t=t?s:a)?e.pop():t!==i&&([l]=l.splitText(t),e[n]=l)),e)}modify(e,t,n){var r=this.focus,o=this.anchor,i="move"===e,l=Ge(r,t);if(Nr(l)&&!l.isIsolated())i&&l.isKeyboardSelectable()?((t=Zn()).add(l.__key),Ie(t)):An(e=t?l.getPreviousSibling():l.getNextSibling())?(l=e.__key,t=t?e.getTextContent().length:0,r.set(l,t,"text"),i&&o.set(l,t,"text")):(n=l.getParentOrThrow(),Ar(e)?(n=e.__key,l=t?e.getChildrenSize():0):(l=l.getIndexWithinParent(),n=n.__key,t||l++),r.set(n,l,"element"),i&&o.set(n,l,"element"));else if(r=lt((o=vr())._window)){var a=o._blockCursorElement,s=o._rootElement;if(null===s||null===a||!Ar(l)||l.isInline()||l.canBeEmpty()||it(a,o,s),r.modify(e,t?"backward":"forward",n),0<r.rangeCount&&(l=r.getRangeAt(0),o=Mr(o=this.anchor.getNode())?o:Ze(o),this.applyDOMRange(l),this.dirty=!0,!i)){for(i=this.getNodes(),e=[],n=!1,a=0;a<i.length;a++)Xe(s=i[a],o)?e.push(s):n=!0;n&&0<e.length&&(t?Ar(t=e[0])?t.selectStart():t.getParentOrThrow().selectStart():Ar(t=e[e.length-1])?t.selectEnd():t.getParentOrThrow().selectEnd()),r.anchorNode===l.startContainer&&r.anchorOffset===l.startOffset||(t=this.focus,r=(i=this.anchor).key,l=i.offset,o=i.type,zn(i,t.key,t.offset,t.type),zn(t,r,l,o),this._cachedNodes=null)}}}deleteCharacter(t){let n=this.isCollapsed();if(this.isCollapsed()){var r=this.anchor,o=this.focus,i=r.getNode();if(!t&&("element"===r.type&&Ar(i)&&r.offset===i.getChildrenSize()||"text"===r.type&&r.offset===i.getTextContentSize())){var l=i.getParent();if(Ar(l=i.getNextSibling()||(null===l?null:l.getNextSibling()))&&l.isShadowRoot())return}if(Nr(l=Ge(o,t))&&!l.isIsolated())return void(l.isKeyboardSelectable()&&Ar(i)&&0===i.getChildrenSize()?(i.remove(),t=Zn(),t.add(l.__key),Ie(t)):(l.remove(),vr().dispatchCommand(e,void 0)));if(!t&&Ar(l)&&Ar(i)&&i.isEmpty())return i.remove(),void l.selectStart();if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===r.offset&&("element"===r.type?r.getNode():r.getNode().getParentOrThrow()).collapseAtStart(this))return}else{if(l="text"===o.type?o.getNode():null,i="text"===r.type?r.getNode():null,null!==l&&l.isSegmented()){if(r=o.offset,o=l.getTextContentSize(),l.is(i)||t&&r!==o||!t&&0!==r)return void Gn(l,t,r)}else if(null!==i&&i.isSegmented()&&(r=r.offset,o=i.getTextContentSize(),i.is(l)||t&&0!==r||!t&&r!==o))return void Gn(i,t,r);if(i=this.anchor,l=this.focus,(r=i.getNode())===(o=l.getNode())&&"text"===i.type&&"text"===l.type){var a=i.offset,s=l.offset;let e=a<s;(o=e?a:s)!==(a=(s=e?s:a)-1)&&(ze(r=r.getTextContent().slice(o,s))||(t?l.offset=a:i.offset=a))}}}this.removeText(),t&&!n&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset&&((t=this.anchor.getNode()).isEmpty()&&Mr(t.getParent())&&0===t.getIndexWithinParent()&&t.collapseAtStart(this))}deleteLine(e){this.isCollapsed()&&("text"===this.anchor.type&&this.modify("extend",e,"lineboundary"),0===(e?this.focus:this.anchor).offset&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}}function Wn(e){return e instanceof $n}function Kn(e){let t=e.offset;return"text"===e.type?t:t===(e=e.getNode()).getChildrenSize()?e.getTextContent().length:0}function Un(e){let t=e.anchor;return e=e.focus,"element"===t.type&&"element"===e.type&&t.key===e.key&&t.offset===e.offset?[0,0]:[Kn(t),Kn(e)]}function Gn(e,t,n){let r=e.getTextContent().split(/(?=\s)/g),o=r.length,i=0,l=0;for(let e=0;e<o;e++){let a=e===o-1;if(l=i,i+=r[e].length,t&&i===n||i>n||a){r.splice(e,1),a&&(l=void 0);break}}""===(t=r.join("").trim())?e.remove():(e.setTextContent(t),e.select(l,l))}function Yn(e,t,n,r){var o=t;if(1===e.nodeType){let a=!1;var i=e.childNodes,l=i.length;o===l&&(a=!0,o=l-1);let s=i[o];if(l=!1,s===r._blockCursorElement?(s=i[o+1],l=!0):null!==r._blockCursorElement&&o--,An(r=De(s)))o=a?r.getTextContentSize():0;else{if(null===(i=De(e)))return null;if(Ar(i)?((t=Ar(e=i.getChildAtIndex(o)))&&(t=e.getParent(),t=null===n||null===t||!t.canBeEmpty()||t!==n.getNode()),t&&(null===(n=a?e.getLastDescendant():e.getFirstDescendant())?(i=e,o=0):i=Ar(e=n)?e:e.getParentOrThrow()),An(e)?(r=e,i=null,o=a?e.getTextContentSize():0):e!==i&&a&&!l&&o++):(o=i.getIndexWithinParent(),o=0===t&&Nr(i)&&De(e)===i?o:o+1,i=i.getParentOrThrow()),Ar(i))return new Mn(i.__key,o,"element")}}else r=De(e);return An(r)?new Mn(r.__key,o,"text"):null}function Vn(e,t,n){var r=e.offset,o=e.getNode();0===r?(r=o.getPreviousSibling(),o=o.getParent(),t?(n||!t)&&null===r&&Ar(o)&&o.isInline()&&(An(t=o.getPreviousSibling())&&(e.key=t.__key,e.offset=t.getTextContent().length)):Ar(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):An(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)):r===o.getTextContent().length&&(r=o.getNextSibling(),o=o.getParent(),t&&Ar(r)&&r.isInline()?(e.key=r.__key,e.offset=0,e.type="element"):(n||t)&&null===r&&Ar(o)&&o.isInline()&&!o.canInsertTextAfter()&&(An(t=o.getNextSibling())&&(e.key=t.__key,e.offset=0)))}function Qn(e,t,n){if("text"===e.type&&"text"===t.type){var r=e.isBefore(t);let o=e.is(t);Vn(e,r,o),Vn(t,!r,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type),(r=vr()).isComposing()&&r._compositionKey!==e.key&&Fn(n)&&(r=n.anchor,n=n.focus,zn(e,r.key,r.offset,r.type),zn(t,n.key,n.offset,n.type))}}function qn(e,t,n,r,o,i){return null!==e&&null!==n&&be(o,e,n)?null===(t=Yn(e,t,Fn(i)?i.anchor:null,o))||null===(r=Yn(n,r,Fn(i)?i.focus:null,o))||"element"===t.type&&"element"===r.type&&(e=De(e),n=De(n),Nr(e)&&Nr(n))?null:(Qn(t,r,i),[t,r]):null}function Xn(e){return Ar(e)&&!e.isInline()}function Jn(e,t,n,r,o,i){let l=gr();return(e=new jn(new Mn(e,t,o),new Mn(n,r,i),0,"")).dirty=!0,l._selection=e}function Zn(){return new $n(new Set)}function er(e,t,n){var r=n._window;if(null===r)return null;var o=r.event,i=o?o.type:void 0;let l;if(r="selectionchange"===i,o=!re&&(r||"beforeinput"===i||"compositionstart"===i||"compositionend"===i||"click"===i&&o&&3===o.detail||"drop"===i||void 0===i),Fn(e)&&!o)return e.clone();if(null===t)return null;if(o=t.anchorNode,i=t.focusNode,l=t.anchorOffset,t=t.focusOffset,r&&Fn(e)&&!be(n,o,i))return e.clone();if(null===(n=qn(o,l,i,t,n,e)))return null;let[a,s]=n;return new jn(a,s,Fn(e)?e.format:0,Fn(e)?e.style:"")}function tr(){return gr()._selection}function nr(){return vr()._editorState._selection}function rr(e,t,n,r=1){var o=e.anchor,i=e.focus,l=o.getNode(),a=i.getNode();if(t.is(l)||t.is(a)){if(l=t.__key,e.isCollapsed())(n<=(t=o.offset)&&0<r||n<t&&0>r)&&(n=Math.max(0,t+r),o.set(l,n,"element"),i.set(l,n,"element"),or(e));else{let u=e.isBackward();var s=(a=u?i:o).getNode();i=(o=u?o:i).getNode(),t.is(s)&&((n<=(s=a.offset)&&0<r||n<s&&0>r)&&a.set(l,Math.max(0,s+r),"element")),t.is(i)&&((n<=(t=o.offset)&&0<r||n<t&&0>r)&&o.set(l,Math.max(0,t+r),"element"))}or(e)}}function or(e){var t=e.anchor,n=t.offset;let r=e.focus;var o=r.offset,i=t.getNode(),l=r.getNode();if(e.isCollapsed())Ar(i)&&(An(l=(o=n>=(l=i.getChildrenSize()))?i.getChildAtIndex(l-1):i.getChildAtIndex(n))&&(n=0,o&&(n=l.getTextContentSize()),t.set(l.__key,n,"text"),r.set(l.__key,n,"text")));else{if(Ar(i)){let r=i.getChildrenSize();An(n=(e=n>=r)?i.getChildAtIndex(r-1):i.getChildAtIndex(n))&&(i=0,e&&(i=n.getTextContentSize()),t.set(n.__key,i,"text"))}Ar(l)&&(An(o=(t=o>=(n=l.getChildrenSize()))?l.getChildAtIndex(n-1):l.getChildAtIndex(o))&&(l=0,t&&(l=o.getTextContentSize()),r.set(o.__key,l,"text")))}}function ir(e,t,n,r,o){let i=null,l=0,a=null;null!==r?(i=r.__key,An(r)?(l=r.getTextContentSize(),a="text"):Ar(r)&&(l=r.getChildrenSize(),a="element")):null!==o&&(i=o.__key,An(o)?a="text":Ar(o)&&(a="element")),null!==i&&null!==a?e.set(i,l,a):(l=t.getIndexWithinParent(),-1===l&&(l=n.getChildrenSize()),e.set(n.__key,l,"element"))}function lr(e,t,n,r,o){"text"===e.type?(e.key=n,t||(e.offset+=o)):e.offset>r.getIndexWithinParent()&&--e.offset}function ar(e,t,n){let r=[],o=null,i=null;e=e.getChildren();for(let c=0;c<e.length;c++){var l=e[c];Yr(l)||I(108);var a=l.getChildren();l=0;for(let e of a){for(Wr(e)||I(109);void 0!==r[c]&&void 0!==r[c][l];)l++;var s=l,u=e;let d={cell:u,startColumn:s,startRow:a=c},f=u.__rowSpan,p=u.__colSpan;for(let e=0;e<f;e++){void 0===r[a+e]&&(r[a+e]=[]);for(let t=0;t<p;t++)r[a+e][s+t]=d}t.is(u)&&(o=d),n.is(u)&&(i=d),l+=e.__colSpan}}return null===o&&I(110),null===i&&I(111),[r,o,i]}let sr=null,ur=null,cr=!1,dr=!1,fr=0,pr={characterData:!0,childList:!0,subtree:!0};function mr(){return cr||null!==sr&&sr._readOnly}function hr(){cr&&I(13)}function gr(){return null===sr&&I(15),sr}function vr(){return null===ur&&I(16),ur}function br(e,t,n){var r=t.__type;let o=e._nodes.get(r);for(void 0===o&&I(30,r),void 0===(e=n.get(r))&&(e=Array.from(o.transforms),n.set(r,e)),n=e.length,r=0;r<n&&(e[r](t),t.isAttached());r++);}function yr(e,t){var n=e.type,r=t.get(n);if(void 0===r&&I(17,n),n=r.klass,e.type!==n.getType()&&I(18,n.name),n=n.importJSON(e),e=e.children,Ar(n)&&Array.isArray(e))for(r=0;r<e.length;r++){let o=yr(e[r],t);n.append(o)}return n}function xr(e,t){let n=sr,r=cr,o=ur;sr=e,cr=!0,ur=null;try{return t()}finally{sr=n,cr=r,ur=o}}function _r(t,n){let r=t._pendingEditorState,o=t._rootElement,i=t._headless||null===o;if(null!==r){var l=t._editorState,a=l._selection,s=r._selection,u=0!==t._dirtyType,c=sr,d=cr,f=ur,p=t._updating,m=t._observer,h=null;if(t._pendingEditorState=null,t._editorState=r,!i&&u&&null!==m){ur=t,sr=r,cr=!1,t._updating=!0;try{let e=t._dirtyType,n=t._dirtyElements,o=t._dirtyLeaves;m.disconnect();var g=n,v=o;Et=Ct=_t="",wt=2===e,kt=null,ft=t,dt=t._config,pt=t._nodes,mt=ft._listeners.mutation,ht=g,gt=v,vt=l._nodeMap,bt=r._nodeMap,St=r._readOnly,yt=new Map(t._keyToDOMMap);let i=new Map;xt=i,$t("root",null),xt=yt=dt=bt=vt=gt=ht=pt=ft=void 0,h=i}catch(e){if(e instanceof Error&&t._onError(e),dr)throw e;return Br(t,null,o,r),ue(t),t._dirtyType=2,dr=!0,_r(t,l),void(dr=!1)}finally{m.observe(o,pr),t._updating=p,sr=c,cr=d,ur=f}}r._readOnly||(r._readOnly=!0);var b=t._dirtyLeaves,y=t._dirtyElements,x=t._normalizedNodes,_=t._updateTags,E=t._deferred;u&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set);var C,w=t._decorators,S=t._pendingDecorators||w,k=r._nodeMap;for(C in S)k.has(C)||(S===w&&(S=Le(t)),delete S[C]);var T=i?null:lt(t._window);if(t._editable&&null!==T&&(u||null===s||s.dirty)){ur=t,sr=r;try{if(null!==m&&m.disconnect(),u||null===s||s.dirty){let e=t._blockCursorElement;null!==e&&it(e,t,o);e:{let e=T.anchorNode,n=T.focusNode,r=T.anchorOffset,i=T.focusOffset,l=document.activeElement;if(!(_.has("collaboration")&&l!==o||null!==l&&ve(l)))if(Fn(s)){var N=s.anchor,R=s.focus,A=N.key,O=R.key,L=Qe(t,A),M=Qe(t,O),P=N.offset,I=R.offset,D=s.format,z=s.style,$=s.isCollapsed(),F=L,B=M,H=!1;if("text"===N.type){F=_e(L);let e=N.getNode();H=e.getFormat()!==D||e.getStyle()!==z}else Fn(a)&&"text"===a.anchor.type&&(H=!0);if("text"===R.type&&(B=_e(M)),null!==F&&null!==B){if($&&(null===a||H||Fn(a)&&(a.format!==D||a.style!==z))){var j=performance.now();Zt=[D,z,P,A,j]}if(r===P&&i===I&&e===F&&n===B&&("Range"!==T.type||!$)&&(null!==l&&o.contains(l)||o.focus({preventScroll:!0}),"element"!==N.type))break e;try{T.setBaseAndExtent(F,P,B,I)}catch(e){}if(!_.has("skip-scroll-into-view")&&s.isCollapsed()&&null!==o&&o===document.activeElement){let e=s instanceof jn&&"element"===s.anchor.type?F.childNodes[P]||null:0<T.rangeCount?T.getRangeAt(0):null;if(null!==e){let n;if(e instanceof Text){let t=document.createRange();t.selectNode(e),n=t.getBoundingClientRect()}else n=e.getBoundingClientRect();let r=o.ownerDocument,i=r.defaultView;if(null!==i)for(var W,K,{top:U,bottom:G}=n,Y=o;null!==Y;){let e=Y===r.body;if(e)W=0,K=Je(t).innerHeight;else{let e=Y.getBoundingClientRect();W=e.top,K=e.bottom}let n=0;if(U<W?n=-(W-U):G>K&&(n=G-K),0!==n)if(e)i.scrollBy(0,n);else{let e=Y.scrollTop;Y.scrollTop+=n;let t=Y.scrollTop-e;U-=t,G-=t}if(e)break;Y=qe(Y)}}}Qt=!0}}else null!==a&&be(t,e,n)&&T.removeAllRanges()}}e:{let e=t._blockCursorElement;if(Fn(s)&&s.isCollapsed()&&"element"===s.anchor.type&&o.contains(document.activeElement)){let n=s.anchor,r=n.getNode(),i=n.offset,l=r.getChildrenSize(),a=!1,u=null;if(i===l){ot(r.getChildAtIndex(i-1))&&(a=!0)}else{let e=r.getChildAtIndex(i);if(ot(e)){let n=e.getPreviousSibling();(null===n||ot(n))&&(a=!0,u=t.getElementByKey(e.__key))}}if(a){let n=t.getElementByKey(r.__key);if(null===e){let n=t._config.theme,r=document.createElement("div");r.contentEditable="false",r.setAttribute("data-lexical-cursor","true");let o=n.blockCursor;if(void 0!==o){if("string"==typeof o){let e=o.split(" ");o=n.blockCursor=e}void 0!==o&&r.classList.add(...o)}t._blockCursorElement=e=r}o.style.caretColor="transparent",null===u?n.appendChild(e):n.insertBefore(e,u);break e}}null!==e&&it(e,t,o)}null!==m&&m.observe(o,pr)}finally{ur=f,sr=c}}if(null!==h){var V=h;let e=Array.from(t._listeners.mutation),n=e.length;for(let t=0;t<n;t++){let[n,r]=e[t],o=V.get(r);void 0!==o&&n(o,{dirtyLeaves:b,updateTags:_})}}Fn(s)||null===s||null!==a&&a.is(s)||t.dispatchCommand(e,void 0);var Q=t._pendingDecorators;null!==Q&&(t._decorators=Q,t._pendingDecorators=null,Er("decorator",t,!0,Q));var q=Me(n||l),X=Me(r);if(q!==X&&Er("textcontent",t,!0,X),Er("update",t,!0,{dirtyElements:y,dirtyLeaves:b,editorState:r,normalizedNodes:x,prevEditorState:n||l,tags:_}),t._deferred=[],0!==E.length){let e=t._updating;t._updating=!0;try{for(let e=0;e<E.length;e++)E[e]()}finally{t._updating=e}}var J=t._updates;if(0!==J.length){let e=J.shift();if(e){let[n,r]=e;Sr(t,n,r)}}}}function Er(e,t,n,...r){let o=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=o}}function Cr(e,t,n){if(!1===e._updating||ur!==e){let r=!1;return e.update((()=>{r=Cr(e,t,n)})),r}let r=$e(e);for(let i=4;0<=i;i--)for(let l=0;l<r.length;l++){var o=r[l]._commands.get(t);if(void 0!==o&&void 0!==(o=o[i])){let t=(o=Array.from(o)).length;for(let r=0;r<t;r++)if(!0===o[r](n,e))return!0}}return!1}function wr(e,t){let n=e._updates;for(t=t||!1;0!==n.length;){var r=n.shift();if(r){let n,[o,i]=r;void 0!==i&&(r=i.onUpdate,n=i.tag,i.skipTransforms&&(t=!0),r&&e._deferred.push(r),n&&e._updateTags.add(n)),o()}}return t}function Sr(e,t,n){let r=e._updateTags;var o,i=o=!1;if(void 0!==n){var l=n.onUpdate;null!=(o=n.tag)&&r.add(o),o=n.skipTransforms||!1,i=n.discrete||!1}l&&e._deferred.push(l),n=e._editorState;let a=!1;(null===(l=e._pendingEditorState)||l._readOnly)&&(l=e._pendingEditorState=new Dr(new Map((l||n)._nodeMap)),a=!0),l._flushSync=i,i=sr;let s=cr,u=ur,c=e._updating;sr=l,cr=!1,e._updating=!0,ur=e;try{a&&(e._headless?null!=n._selection&&(l._selection=n._selection.clone()):l._selection=function(e){let t=e.getEditorState()._selection,n=lt(e._window);return Wn(t)||Hn(t)?t.clone():er(t,n,e)}(e));let r=e._compositionKey;t(),o=wr(e,o),function(e,t){if(t=t.getEditorState()._selection,Fn(e=e._selection)){var n=e.anchor;let r,o=e.focus;"text"===n.type&&(r=n.getNode(),r.selectionTransform(t,e)),"text"===o.type&&r!==(n=o.getNode())&&n.selectionTransform(t,e)}}(l,e),0!==e._dirtyType&&(o?function(e,t){t=t._dirtyLeaves,e=e._nodeMap;for(let n of t)An(t=e.get(n))&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&fe(t)}(l,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements;e=e._nodeMap;let o=Ne(),i=new Map;var l=n;let a=l.size;for(var s=r,u=s.size;0<a||0<u;){if(0<a){t._dirtyLeaves=new Set;for(let r of l)An(l=e.get(r))&&l.isAttached()&&l.isSimpleText()&&!l.isUnmergeable()&&fe(l),void 0!==l&&void 0!==l&&l.__key!==o&&l.isAttached()&&br(t,l,i),n.add(r);if(a=(l=t._dirtyLeaves).size,0<a){fr++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map;for(let n of s)s=n[0],u=n[1],("root"===s||u)&&(void 0!==(l=e.get(s))&&void 0!==l&&l.__key!==o&&l.isAttached()&&br(t,l,i),r.set(s,u));a=(l=t._dirtyLeaves).size,u=(s=t._dirtyElements).size,fr++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),wr(e),function(e,t,n,r){e=e._nodeMap,t=t._nodeMap;let o=[];for(let[n]of r){let i=t.get(n);void 0===i||i.isAttached()||(Ar(i)&&ct(i,n,e,t,o,r),e.has(n)||r.delete(n),o.push(n))}for(let e of o)t.delete(e);for(let o of n)void 0===(r=t.get(o))||r.isAttached()||(e.has(o)||n.delete(o),t.delete(o))}(n,l,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(l._flushSync=!0);let i=l._selection;if(Fn(i)){let e=l._nodeMap,t=i.focus.key;void 0!==e.get(i.anchor.key)&&void 0!==e.get(t)||I(19)}else Wn(i)&&0===i._nodes.size&&(l._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=n,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void _r(e)}finally{sr=i,cr=s,ur=u,e._updating=c,fr=0}0!==e._dirtyType||function(e,t){if(t=t.getEditorState()._selection,e=e._selection,null!==e){if(e.dirty||!e.is(t))return!0}else if(null!==t)return!0;return!1}(l,e)?l._flushSync?(l._flushSync=!1,_r(e)):a&&ge((()=>{_r(e)})):(l._flushSync=!1,a&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function kr(e,t,n){e._updating?e._updates.push([t,n]):Sr(e,t,n)}class Tr extends cn{constructor(e){super(e)}decorate(){I(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Nr(e){return e instanceof Tr}class Rr extends cn{constructor(e){super(e),this.__last=this.__first=null,this.__indent=this.__format=this.__size=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return Z[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){let e=vr()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;null!==t;){if(An(t)&&e.push(t),Ar(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;null!==e;){if(Ar(e)){let t=e.getFirstChild();if(null!==t){e=t;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;null!==e;){if(Ar(e)){let t=e.getLastChild();if(null!==t){e=t;continue}}break}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;return e>=n?Ar(e=t[n-1])&&e.getLastDescendant()||e||null:Ar(e=t[e])&&e.getFirstDescendant()||e||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:Re(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&I(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:Re(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&I(96,this.__key),e}getChildAtIndex(e){var t=this.getChildrenSize();let n;if(e<t/2){for(n=this.getFirstChild(),t=0;null!==n&&t<=e;){if(t===e)return n;n=n.getNextSibling(),t++}return null}for(n=this.getLastChild(),--t;null!==n&&t>=e;){if(t===e)return n;n=n.getPreviousSibling(),t--}return null}getTextContent(){let e="",t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let o=t[r];e+=o.getTextContent(),Ar(o)&&r!==n-1&&!o.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let o=t[r];e+=o.getTextContentSize(),Ar(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return""!==e&&(e=J[e],!!(this.getFormat()&e))}select(e,t){hr();let n=tr(),r=e,o=t;var i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){if(An(e=this.getFirstChild())||Ar(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)&&(An(e=this.getLastChild())||Ar(e)))return e.select();return void 0===r&&(r=i),void 0===o&&(o=i),i=this.__key,Fn(n)?(n.anchor.set(i,r,"element"),n.focus.set(i,o,"element"),n.dirty=!0,n):Jn(i,r,i,o,"element","element")}selectStart(){let e=this.getFirstDescendant();return Ar(e)||An(e)?e.select(0,0):null!==e?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return Ar(e)||An(e)?e.select():null!==e?e.selectNext():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach((e=>e.remove())),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?J[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let r=n.length,o=this.getChildrenSize(),i=this.getWritable(),l=i.__key;var a=[],s=[];let u=this.getChildAtIndex(e+t),c=null,d=o-t+r;if(0!==e)if(e===o)c=this.getLastChild();else{var f=this.getChildAtIndex(e);null!==f&&(c=f.getPreviousSibling())}if(0<t){var p=null===c?this.getFirstChild():c.getNextSibling();for(f=0;f<t;f++){null===p&&I(100);var m=p.getNextSibling(),h=p.__key;Se(p=p.getWritable()),s.push(h),p=m}}for(f=c,m=0;m<r;m++){h=n[m],null!==f&&h.is(f)&&(c=f=f.getPreviousSibling()),(p=h.getWritable()).__parent===l&&d--,Se(p);let e=h.__key;null===f?(i.__first=e,p.__prev=null):((f=f.getWritable()).__next=e,p.__prev=f.__key),h.__key===l&&I(76),p.__parent=l,a.push(e),f=h}if(e+t===o?null!==f&&(f.getWritable().__next=null,i.__last=f.__key):null!==u&&(e=u.getWritable(),null!==f?(t=f.getWritable(),e.__prev=f.__key,t.__next=u.__key):e.__prev=null),i.__size=d,s.length&&Fn(e=tr())){s=new Set(s),a=new Set(a);let{anchor:t,focus:n}=e;Or(t,s,a)&&ir(t,t.getNode(),this,c,u),Or(n,s,a)&&ir(n,n.getNode(),this,c,u),0!==d||this.canBeEmpty()||et(this)||this.remove()}return i}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(){return null}canIndent(){return!0}collapseAtStart(){return!1}excludeFromCopy(){return!1}canExtractContents(){return!0}canReplaceWith(){return!0}canInsertAfter(){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(){return!1}extractWithChild(){return!1}}function Ar(e){return e instanceof Rr}function Or(e,t,n){for(e=e.getNode();e;){let r=e.__key;if(t.has(r)&&!n.has(r))return!0;e=e.getParent()}return!1}class Lr extends Rr{static getType(){return"root"}static clone(){return new Lr}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){I(51)}getTextContent(){let e=this.__cachedText;return!mr()&&0!==vr()._dirtyType||null===e?super.getTextContent():e}remove(){I(52)}replace(){I(53)}insertBefore(){I(54)}insertAfter(){I(55)}updateDOM(){return!1}append(...e){for(let t=0;t<e.length;t++){let n=e[t];Ar(n)||Nr(n)||I(56)}return super.append(...e)}static importJSON(e){let t=Pe();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function Mr(e){return e instanceof Lr}function Pr(){return new Dr(new Map([["root",new Lr]]))}function Ir(e){let t=e.exportJSON();var n=e.constructor;t.type!==n.getType()&&I(130,n.name);let r=t.children;if(Ar(e))for(Array.isArray(r)||I(59,n.name),e=e.getChildren(),n=0;n<e.length;n++){let t=Ir(e[n]);r.push(t)}return t}class Dr{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._readOnly=this._flushSync=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e){return xr(this,e)}clone(e){return(e=new Dr(this._nodeMap,void 0===e?this._selection:e))._readOnly=!0,e}toJSON(){return xr(this,(()=>({root:Ir(Pe())})))}}class zr extends Rr{static getType(){return"paragraph"}static clone(e){return new zr(e.__key)}createDOM(e){let t=document.createElement("p");return void 0!==(e=We(e.theme,"paragraph"))&&t.classList.add(...e),t}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:$r,priority:0})}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t),0<(t=this.getIndent())&&(e.style.textIndent=20*t+"px")}return{element:e}}static importJSON(e){let t=Fr();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(e,t){e=Fr();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.getChildren();if(0===e.length||An(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 $r(e){let t=Fr();return e.style&&(t.setFormat(e.style.textAlign),0<(e=parseInt(e.style.textIndent,10)/20)&&t.setIndent(e)),{node:t}}function Fr(){return nt(new zr)}function Br(e,t,n,r){let o=e._keyToDOMMap;o.clear(),e._editorState=Pr(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null,null!==(r=e._observer)&&(r.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}class Hr{constructor(e,t,n,r,o,i,l){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Fe(),this._onError=o,this._htmlConversions=i,this._editable=l,this._headless=null!==t&&t._headless,this._blockCursorElement=this._window=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&I(35);let r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=r.get(e);void 0===o&&I(36,String(e));let i=o[n];return i.add(t),()=>{i.delete(t),o.every((e=>0===e.size))&&r.delete(e)}}registerMutationListener(e,t){void 0===this._nodes.get(e.getType())&&I(37,e.name);let n=this._listeners.mutation;return n.set(t,e),()=>{n.delete(t)}}registerNodeTransformToKlass(e,t){var n=e.getType();return void 0===(n=this._nodes.get(n))&&I(37,e.name),n.transforms.add(t),n}registerNodeTransform(e,t){var n=this.registerNodeTransformToKlass(e,t);let r=[n];return null!=(n=n.replaceWithKlass)&&(n=this.registerNodeTransformToKlass(n,t),r.push(n)),function(e,t){kr(e,(()=>{var e=gr();if(!e.isEmpty())if("root"===t)Pe().markDirty();else{e=e._nodeMap;for(let[,t]of e)t.markDirty()}}),null===e._pendingEditorState?{tag:"history-merge"}:void 0)}(this,e.getType()),()=>{r.forEach((e=>e.transforms.delete(t)))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return Cr(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let i=We(this._config.theme,"root");var n=this._pendingEditorState||this._editorState;if(this._rootElement=e,Br(this,t,e,n),null!==t){if(!this._config.disableEvents){0!==Vt&&(Vt--,0===Vt&&t.ownerDocument.removeEventListener("selectionchange",sn));var r=t.__lexicalEditor;if(null!=r){if(null!==r._parentEditor){var o=$e(r);o=o[o.length-1]._key,an.get(o)===r&&an.delete(o)}else an.delete(r._key);t.__lexicalEditor=null}for(r=ln(t),o=0;o<r.length;o++)r[o]();t.__lexicalEventHandles=[]}null!=i&&t.classList.remove(...i)}null!==e?(n=(n=e.ownerDocument)&&n.defaultView||null,(r=e.style).userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=n,this._dirtyType=2,ue(this),this._updateTags.add("history-merge"),_r(this),this._config.disableEvents||function(e,t){0===Vt&&e.ownerDocument.addEventListener("selectionchange",sn),Vt++,e.__lexicalEditor=t;let n=ln(e);for(let r=0;r<Wt.length;r++){let[o,i]=Wt[r],a="function"==typeof i?e=>{!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()&&i(e,t))}:e=>{if(!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()))switch(o){case"cut":return Cr(t,O,e);case"copy":return Cr(t,A,e);case"paste":return Cr(t,l,e);case"dragstart":return Cr(t,T,e);case"dragover":return Cr(t,N,e);case"dragend":return Cr(t,R,e);case"focus":return Cr(t,L,e);case"blur":return Cr(t,M,e);case"drop":return Cr(t,k,e)}};e.addEventListener(o,a),n.push((()=>{e.removeEventListener(o,a)}))}}(e,this),null!=i&&e.classList.add(...i)):(this._editorState=n,this._window=this._pendingEditorState=null),Er("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&I(38),se(this);let n=this._pendingEditorState,r=this._updateTags;t=void 0!==t?t.tag:null,null===n||n.isEmpty()||(null!=t&&r.add(t),_r(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=t&&r.add(t),_r(this)}parseEditorState(e,t){e="string"==typeof e?JSON.parse(e):e;let n=Pr(),r=sr,o=cr,i=ur,l=this._dirtyElements,a=this._dirtyLeaves,s=this._cloneNotNeeded,u=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,sr=n,cr=!1,ur=this;try{yr(e.root,this._nodes),t&&t(),n._readOnly=!0}catch(e){e instanceof Error&&this._onError(e)}finally{this._dirtyElements=l,this._dirtyLeaves=a,this._cloneNotNeeded=s,this._dirtyType=u,sr=r,cr=o,ur=i}return n}update(e,t){kr(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),kr(this,(()=>{let e=tr(),n=Pe();null!==e?e.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===t.defaultSelection?n.selectStart():n.selectEnd())}),{onUpdate:()=>{n.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;null!==e&&e.blur(),null!==(e=lt(this._window))&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Er("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class jr extends Rr{constructor(e,t){super(t),this.__colSpan=e,this.__rowSpan=1}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan,rowSpan:this.__rowSpan}}getColSpan(){return this.__colSpan}setColSpan(e){return this.getWritable().__colSpan=e,this}getRowSpan(){return this.__rowSpan}setRowSpan(e){return this.getWritable().__rowSpan=e,this}}function Wr(e){return e instanceof jr}class Kr extends Rr{}function Ur(e){return e instanceof Kr}class Gr extends Rr{}function Yr(e){return e instanceof Gr}return te.$addUpdateTag=function(e){hr(),vr()._updateTags.add(e)},te.$applyNodeReplacement=nt,te.$copyNode=tt,te.$createLineBreakNode=pn,te.$createNodeSelection=Zn,te.$createParagraphNode=Fr,te.$createRangeSelection=function(){let e=new Mn("root",0,"element"),t=new Mn("root",0,"element");return new jn(e,t,0,"")},te.$createTabNode=Ln,te.$createTextNode=Rn,te.$getAdjacentNode=Ge,te.$getNearestNodeFromDOMNode=Oe,te.$getNearestRootOrShadowRoot=Ze,te.$getNodeByKey=Re,te.$getPreviousSelection=nr,te.$getRoot=Pe,te.$getSelection=tr,te.$getTextContent=function(){let e=tr();return null===e?"":e.getTextContent()},te.$hasAncestor=Xe,te.$hasUpdateTag=function(e){return vr()._updateTags.has(e)},te.$insertNodes=function(e,t){let n=tr()||nr();return null===n&&(n=Pe().selectEnd()),n.insertNodes(e,t)},te.$isBlockElementNode=Xn,te.$isDecoratorNode=Nr,te.$isElementNode=Ar,te.$isInlineElementOrDecoratorNode=function(e){return Ar(e)&&e.isInline()||Nr(e)&&e.isInline()},te.$isLeafNode=Ce,te.$isLineBreakNode=mn,te.$isNodeSelection=Wn,te.$isParagraphNode=function(e){return e instanceof zr},te.$isRangeSelection=Fn,te.$isRootNode=Mr,te.$isRootOrShadowRoot=et,te.$isTabNode=function(e){return e instanceof On},te.$isTextNode=An,te.$nodesOfType=function(e){var t=gr();let n=t._readOnly,r=e.getType();t=t._nodeMap;let o=[];for(let[,i]of t)i instanceof e&&i.__type===r&&(n||i.isAttached())&&o.push(i);return o},te.$normalizeSelection__EXPERIMENTAL=pe,te.$parseSerializedNode=function(e){return yr(e,vr()._nodes)},te.$setCompositionKey=Te,te.$setSelection=Ie,te.$splitNode=at,te.BLUR_COMMAND=M,te.CAN_REDO_COMMAND={},te.CAN_UNDO_COMMAND={},te.CLEAR_EDITOR_COMMAND={},te.CLEAR_HISTORY_COMMAND={},te.CLICK_COMMAND=t,te.COMMAND_PRIORITY_CRITICAL=4,te.COMMAND_PRIORITY_EDITOR=0,te.COMMAND_PRIORITY_HIGH=3,te.COMMAND_PRIORITY_LOW=1,te.COMMAND_PRIORITY_NORMAL=2,te.CONTROLLED_TEXT_INSERTION_COMMAND=i,te.COPY_COMMAND=A,te.CUT_COMMAND=O,te.DELETE_CHARACTER_COMMAND=n,te.DELETE_LINE_COMMAND=u,te.DELETE_WORD_COMMAND=s,te.DEPRECATED_$computeGridMap=ar,te.DEPRECATED_$createGridSelection=function(){let e=new Mn("root",0,"element"),t=new Mn("root",0,"element");return new Bn("root",e,t)},te.DEPRECATED_$getNodeTriplet=function(e){e instanceof jr||(e instanceof cn?Wr(e=st(e,Wr))||I(114):Wr(e=st(e.getNode(),Wr))||I(114));let t=e.getParent();Yr(t)||I(115);let n=t.getParent();return Ur(n)||I(116),[e,t,n]},te.DEPRECATED_$isGridCellNode=Wr,te.DEPRECATED_$isGridNode=Ur,te.DEPRECATED_$isGridRowNode=Yr,te.DEPRECATED_$isGridSelection=Hn,te.DEPRECATED_GridCellNode=jr,te.DEPRECATED_GridNode=Kr,te.DEPRECATED_GridRowNode=Gr,te.DRAGEND_COMMAND=R,te.DRAGOVER_COMMAND=N,te.DRAGSTART_COMMAND=T,te.DROP_COMMAND=k,te.DecoratorNode=Tr,te.ElementNode=Rr,te.FOCUS_COMMAND=L,te.FORMAT_ELEMENT_COMMAND={},te.FORMAT_TEXT_COMMAND=c,te.INDENT_CONTENT_COMMAND={},te.INSERT_LINE_BREAK_COMMAND=r,te.INSERT_PARAGRAPH_COMMAND=o,te.INSERT_TAB_COMMAND={},te.KEY_ARROW_DOWN_COMMAND=y,te.KEY_ARROW_LEFT_COMMAND=g,te.KEY_ARROW_RIGHT_COMMAND=m,te.KEY_ARROW_UP_COMMAND=b,te.KEY_BACKSPACE_COMMAND=E,te.KEY_DELETE_COMMAND=w,te.KEY_DOWN_COMMAND=p,te.KEY_ENTER_COMMAND=x,te.KEY_ESCAPE_COMMAND=C,te.KEY_MODIFIER_COMMAND=P,te.KEY_SPACE_COMMAND=_,te.KEY_TAB_COMMAND=S,te.LineBreakNode=dn,te.MOVE_TO_END=h,te.MOVE_TO_START=v,te.OUTDENT_CONTENT_COMMAND={},te.PASTE_COMMAND=l,te.ParagraphNode=zr,te.REDO_COMMAND=f,te.REMOVE_TEXT_COMMAND=a,te.RootNode=Lr,te.SELECTION_CHANGE_COMMAND=e,te.TabNode=On,te.TextNode=xn,te.UNDO_COMMAND=d,te.createCommand=function(){return{}},te.createEditor=function(e){var t=e||{},n=ur,r=t.theme||{};let o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,l=Pr(),a=t.namespace||(null!==o?o._config.namespace:Fe()),s=t.editorState,u=[Lr,xn,dn,On,zr,...t.nodes||[]],c=t.onError;if(t=void 0===t.editable||t.editable,void 0===e&&null!==n)e=n._nodes;else for(e=new Map,n=0;n<u.length;n++){let t=u[n],r=null;var d=null;"function"!=typeof t&&(t=(d=t).replace,r=d.with,d=d.withKlass?d.withKlass:null);let o=t.getType(),i=t.transform(),l=new Set;null!==i&&l.add(i),e.set(o,{klass:t,replace:r,replaceWithKlass:d,transforms:l})}return r=new Hr(l,o,e,{disableEvents:i,namespace:a,theme:r},c||console.error,function(e){let t=new Map,n=new Set;return e.forEach((e=>{if(null!=(e=null!=e.klass.importDOM?e.klass.importDOM.bind(e.klass):null)&&!n.has(e)){n.add(e);var r=e();null!==r&&Object.keys(r).forEach((e=>{let n=t.get(e);void 0===n&&(n=[],t.set(e,n)),n.push(r[e])}))}})),t}(e),t),void 0!==s&&(r._pendingEditorState=s,r._dirtyType=2),r},te.getNearestEditorFromDOMNode=ye,te.isSelectionCapturedInDecoratorInput=ve,te.isSelectionWithinEditor=be,te}function re(){if(j)return H;j=1;const e=ne();return H=e}function oe(){if(U)return K;U=1;const e=function(){if(W)return ee;W=1;var e=re();let t=new Map;function n(e){for(;null!=e;){if(e.nodeType===Node.TEXT_NODE)return e;e=e.firstChild}return null}function r(e){let t=e.parentNode;if(null==t)throw Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function o(e){let t={};e=e.split(";");for(let n of e)if(""!==n){let[e,r]=n.split(/:([^]+)/);t[e.trim()]=r.trim()}return t}function i(e){let n=t.get(e);return void 0===n&&(n=o(e),t.set(e,n)),n}function l(e,n){var r=i("getStyle"in e?e.getStyle():e.style);n=Object.entries(n).reduce(((e,[t,n])=>(null===n?delete e[t]:e[t]=n,e)),{...r}),r=function(e){let t="";for(let n in e)n&&(t+=`${n}: ${e[n]};`);return t}(n),e.setStyle(r),t.set(r,n)}function a(t){for(;null!==t&&!e.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();0===e.getChildrenSize()&&t.remove(!0),t=n}}function s(t,n,r,o,i=null){if(0!==n.length){var l=n[0],s=new Map,u=[];(l=e.$isElementNode(l)?l:l.getParentOrThrow()).isInline()&&(l=l.getParentOrThrow());for(var c=!1;null!==l;){var d=l.getPreviousSibling();if(null!==d){l=d,c=!0;break}if(l=l.getParentOrThrow(),e.$isRootOrShadowRoot(l))break}d=new Set;for(var f=0;f<r;f++){var p=n[f];e.$isElementNode(p)&&0===p.getChildrenSize()&&d.add(p.getKey())}var m=new Set;for(f=0;f<r;f++){var h=(p=n[f]).getParent();if(null!==h&&h.isInline()&&(h=h.getParent()),null!==h&&e.$isLeafNode(p)&&!m.has(p.getKey())){if(p=h.getKey(),void 0===s.get(p)){let t=o();t.setFormat(h.getFormatType()),t.setIndent(h.getIndent()),u.push(t),s.set(p,t),h.getChildren().forEach((n=>{t.append(n),m.add(n.getKey()),e.$isElementNode(n)&&n.getChildrenKeys().forEach((e=>m.add(e)))})),a(h)}}else d.has(p.getKey())&&((h=o()).setFormat(p.getFormatType()),h.setIndent(p.getIndent()),u.push(h),p.remove(!0))}if(null!==i)for(n=0;n<u.length;n++)i.append(u[n]);if(n=null,e.$isRootOrShadowRoot(l))if(c)if(null!==i)l.insertAfter(i);else for(i=u.length-1;0<=i;i--)l.insertAfter(u[i]);else if(c=l.getFirstChild(),e.$isElementNode(c)&&(l=c),null===c)if(i)l.append(i);else for(i=0;i<u.length;i++)c=u[i],l.append(c),n=c;else if(null!==i)c.insertBefore(i);else for(l=0;l<u.length;l++)i=u[l],c.insertBefore(i),n=i;else if(i)l.insertAfter(i);else for(i=u.length-1;0<=i;i--)c=u[i],l.insertAfter(c),n=c;u=e.$getPreviousSelection(),e.$isRangeSelection(u)&&u.anchor.getNode().isAttached()&&u.focus.getNode().isAttached()?e.$setSelection(u.clone()):null!==n?n.selectEnd():t.dirty=!0}}function u(e,t,n,r){e.modify(t?"extend":"move",n,r)}function c(t){return t=t.anchor.getNode(),"rtl"===(e.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()}return ee.$addNodeStyle=function(e){let n=o(e=e.getStyle());t.set(e,n)},ee.$cloneWithProperties=function(t){let n=(t=t.getLatest()).constructor.clone(t);return n.__parent=t.__parent,n.__next=t.__next,n.__prev=t.__prev,e.$isElementNode(t)&&e.$isElementNode(n)?(n.__first=t.__first,n.__last=t.__last,n.__size=t.__size,n.__format=t.__format,n.__indent=t.__indent,n.__dir=t.__dir,n):(e.$isTextNode(t)&&e.$isTextNode(n)&&(n.__format=t.__format,n.__style=t.__style,n.__mode=t.__mode,n.__detail=t.__detail),n)},ee.$getSelectionStyleValueForProperty=function(t,n,r=""){let o=null,l=t.getNodes();var a=t.anchor,s=t.focus,u=t.isBackward();let c=u?s.offset:a.offset;if(a=u?s.getNode():a.getNode(),""!==t.style&&null!==(t=i(t.style))&&n in t)return t[n];for(t=0;t<l.length;t++){var d=l[t];if((0===t||0!==c||!d.is(a))&&e.$isTextNode(d))if(s=n,u=r,s=null!==(d=i(d=d.getStyle()))&&d[s]||u,null===o)o=s;else if(o!==s){o="";break}}return null===o?r:o},ee.$isAtNodeEnd=function(e){return"text"===e.type?e.offset===e.getNode().getTextContentSize():e.offset===e.getNode().getChildrenSize()},ee.$isParentElementRTL=c,ee.$moveCaretSelection=u,ee.$moveCharacter=function(e,t,n){let r=c(e);u(e,t,n?!r:r,"character")},ee.$patchStyleText=function(t,n){var r=t.getNodes();let o=r.length-1,i=r[0],a=r[o];if(t.isCollapsed())l(t,n);else{var s=t.anchor,u=t.focus,c=i.getTextContent().length,d=u.offset,f=s.offset,p=s.isBefore(u),m=p?f:d;t=p?d:f;var h=p?s.type:u.type,g=p?u.type:s.type;if(s=p?u.key:s.key,e.$isTextNode(i)&&m===c&&(u=i.getNextSibling(),e.$isTextNode(u)&&(m=f=0,i=u)),1===r.length)e.$isTextNode(i)&&(m="element"===h?0:f>d?d:f)!==(t="element"===g?c:f>d?f:d)&&(0===m&&t===c?(l(i,n),i.select(m,t)):(r=i.splitText(m,t),l(r=0===m?r[0]:r[1],n),r.select(0,t-m)));else for(e.$isTextNode(i)&&m<i.getTextContentSize()&&(0!==m&&(i=i.splitText(m)[1]),l(i,n)),e.$isTextNode(a)&&(m=a.getTextContent().length,a.__key!==s&&0!==t&&(t=m),t!==m&&([a]=a.splitText(t)),0!==t&&l(a,n)),t=1;t<o;t++)c=(m=r[t]).getKey(),e.$isTextNode(m)&&c!==i.getKey()&&c!==a.getKey()&&!m.isToken()&&l(m,n)}},ee.$selectAll=function(t){let n=t.anchor;t=t.focus;var r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();let o=r.getFirstDescendant();r=r.getLastDescendant();let i="element",l="element",a=0;e.$isTextNode(o)?i="text":e.$isElementNode(o)||null===o||(o=o.getParentOrThrow()),e.$isTextNode(r)?(l="text",a=r.getTextContentSize()):e.$isElementNode(r)||null===r||(r=r.getParentOrThrow()),o&&r&&(n.set(o.getKey(),0,i),t.set(r.getKey(),a,l))},ee.$setBlocksType=function(t,n){if("root"===t.anchor.key){n=n();var r=e.$getRoot();(t=r.getFirstChild())?t.replace(n,!0):r.append(n)}else for(r=t.getNodes(),t=t.anchor.getNode().getParentOrThrow(),-1===r.indexOf(t)&&r.push(t),t.isInline()&&(t=t.getParentOrThrow(),-1===r.indexOf(t)&&r.push(t)),t=0;t<r.length;t++){let l=r[t];var o=l;if(!e.$isElementNode(o)||e.$isRootOrShadowRoot(o))o=!1;else{var i=o.getFirstChild();i=null===i||e.$isTextNode(i)||i.isInline(),o=!o.isInline()&&!1!==o.canBeEmpty()&&i}o&&((o=n()).setFormat(l.getFormatType()),o.setIndent(l.getIndent()),l.replace(o,!0))}},ee.$shouldOverrideDefaultCharacterSelection=function(t,n){return t=e.$getAdjacentNode(t.focus,n),e.$isDecoratorNode(t)&&!t.isIsolated()||e.$isElementNode(t)&&!t.isInline()&&!t.canBeEmpty()},ee.$sliceSelectedTextNodeContent=function(t,n){if(n.isSelected()&&!n.isSegmented()&&!n.isToken()&&(e.$isRangeSelection(t)||e.DEPRECATED_$isGridSelection(t))){var r=t.anchor.getNode(),o=t.focus.getNode(),i=n.is(r),l=n.is(o);if(i||l){i=t.isBackward();let e,[a,s]=t.getCharacterOffsets();t=r.is(o),l=n.is(i?o:r),o=n.is(i?r:o),r=0,t?(r=a>s?s:a,e=a>s?a:s):l?(r=i?s:a,e=void 0):o&&(r=0,e=i=i?a:s),n.__text=n.__text.slice(r,e)}}return n},ee.$wrapNodes=function(t,n,r=null){var o=t.getNodes();let i=o.length;var l=t.anchor;if(0===i||1===i&&"element"===l.type&&0===l.getNode().getChildrenSize()){o=(t="text"===l.type?l.getNode().getParentOrThrow():l.getNode()).getChildren();let e=n();e.setFormat(t.getFormatType()),e.setIndent(t.getIndent()),o.forEach((t=>e.append(t))),r&&(e=r.append(e)),t.replace(e)}else{l=null;var a=[];for(let u=0;u<i;u++){let i=o[u];e.$isRootOrShadowRoot(i)?(s(t,a,a.length,n,r),a=[],l=i):null===l||null!==l&&e.$hasAncestor(i,l)?a.push(i):(s(t,a,a.length,n,r),a=[i])}s(t,a,a.length,n,r)}},ee.createDOMRange=function(t,o,i,l,a){let s=o.getKey(),u=l.getKey(),c=document.createRange(),d=t.getElementByKey(s);if(t=t.getElementByKey(u),e.$isTextNode(o)&&(d=n(d)),e.$isTextNode(l)&&(t=n(t)),void 0===o||void 0===l||null===d||null===t)return null;"BR"===d.nodeName&&([d,i]=r(d)),"BR"===t.nodeName&&([t,a]=r(t)),o=d.firstChild,d===t&&null!=o&&"BR"===o.nodeName&&0===i&&0===a&&(a=1);try{c.setStart(d,i),c.setEnd(t,a)}catch(e){return null}return!c.collapsed||i===a&&s===u||(c.setStart(t,a),c.setEnd(d,i)),c},ee.createRectsFromDOMRange=function(e,t){var n=e.getRootElement();if(null===n)return[];e=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);let r,o=(t=Array.from(t.getClientRects())).length;t.sort(((e,t)=>{let n=e.top-t.top;return 3>=Math.abs(n)?e.left-t.left:n}));for(let i=0;i<o;i++){let l=t[i],a=l.width+n===e.width;r&&r.top<=l.top&&r.top+r.height>l.top&&r.left+r.width>l.left||a?(t.splice(i--,1),o--):r=l}return t},ee.getStyleObjectFromCSS=i,ee.trimTextContentFromAnchor=function(t,n,r){let o=n.getNode();if(e.$isElementNode(o)){var i=o.getDescendantByIndex(n.offset);null!==i&&(o=i)}for(;0<r&&null!==o;){var l=o.getPreviousSibling(),a=0;if(null===l){for(var s=(i=o.getParentOrThrow()).getPreviousSibling();null===s;){if(null===(i=i.getParent())){l=null;break}s=i.getPreviousSibling()}null!==i&&(a=i.isInline()?0:2,l=e.$isElementNode(s)?s.getLastDescendant():s)}if(""===(s=o.getTextContent())&&e.$isElementNode(o)&&!o.isInline()&&(s="\n\n"),i=o.getTextContentSize(),!e.$isTextNode(o)||r>=i)s=o.getParent(),o.remove(),null==s||0!==s.getChildrenSize()||e.$isRootNode(s)||s.remove(),r-=i+a,o=l;else{let u=o.getKey();a=t.getEditorState().read((()=>{const t=e.$getNodeByKey(u);return e.$isTextNode(t)&&t.isSimpleText()?t.getTextContent():null})),l=i-r;let c=s.slice(0,l);null!==a&&a!==s?(r=e.$getPreviousSelection(),i=o,o.isSimpleText()?o.setTextContent(a):(i=e.$createTextNode(a),o.replace(i)),e.$isRangeSelection(r)&&r.isCollapsed()&&(r=r.anchor.offset,i.select(r,r))):o.isSimpleText()?(a=n.key===u,(s=n.offset)<r&&(s=i),r=a?s-r:0,i=a?s:l,a&&0===r?([r]=o.splitText(r,i),r.remove()):([,r]=o.splitText(r,i),r.remove())):(r=e.$createTextNode(c),o.replace(r)),r=0}}},ee}();return K=e}function ie(){if(G)return Z;G=1;var e=oe(),t=re();function n(e,t){for(let n of t)if(e.type.startsWith(n))return!0;return!1}function r(e,n){for(;e!==t.$getRoot()&&null!=e;){if(n(e))return e;e=e.getParent()}return null}function o(e){return 1===e.nodeType}return Z.$splitNode=t.$splitNode,Z.$dfs=function(e,n){let r=[];e=(e||t.$getRoot()).getLatest(),n=n||(t.$isElementNode(e)?e.getLastDescendant():e);for(var o=e,i=0;null!==(o=o.getParent());)i++;for(o=i;null!==e&&!e.is(n);)if(r.push({depth:o,node:e}),t.$isElementNode(e)&&0<e.getChildrenSize())e=e.getFirstChild(),o++;else for(i=null;null===i&&null!==e;)null===(i=e.getNextSibling())?(e=e.getParent(),o--):e=i;return null!==e&&e.is(n)&&r.push({depth:o,node:e}),r},Z.$findMatchingParent=r,Z.$getNearestBlockElementAncestorOrThrow=function(e){let n=r(e,(e=>t.$isElementNode(e)&&!e.isInline()));return t.$isElementNode(n)||function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(4,e.__key),n},Z.$getNearestNodeOfType=function(e,t){for(;null!=e;){if(e instanceof t)return e;e=e.getParent()}return null},Z.$insertNodeToNearestRoot=function(e){var n=t.$getSelection()||t.$getPreviousSelection();if(t.$isRangeSelection(n)){var{focus:r}=n;if(n=r.getNode(),r=r.offset,t.$isRootOrShadowRoot(n))null==(r=n.getChildAtIndex(r))?n.append(e):r.insertBefore(e),e.selectNext();else{let o,i;t.$isTextNode(n)?(o=n.getParentOrThrow(),i=n.getIndexWithinParent(),0<r&&(i+=1,n.splitText(r))):(o=n,i=r),[,n]=t.$splitNode(o,i),n.insertBefore(e),n.selectStart()}}else t.$isNodeSelection(n)||t.DEPRECATED_$isGridSelection(n)?(n=n.getNodes())[n.length-1].getTopLevelElementOrThrow().insertAfter(e):t.$getRoot().append(e),n=t.$createParagraphNode(),e.insertAfter(n),n.select();return e.getLatest()},Z.$restoreEditorState=function(n,r){let o=new Map,i=n._pendingEditorState;for(let[n,i]of r._nodeMap){let r=e.$cloneWithProperties(i);t.$isTextNode(r)&&(r.__text=i.__text),o.set(n,r)}i&&(i._nodeMap=o),n._dirtyType=2,n=r._selection,t.$setSelection(null===n?null:n.clone())},Z.$wrapNodeInElement=function(e,t){return t=t(),e.replace(t),t.append(e),t},Z.addClassNamesToElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&(t=t.split(" ").filter((e=>""!==e)),e.classList.add(...t))}))},Z.isHTMLAnchorElement=function(e){return o(e)&&"A"===e.tagName},Z.isHTMLElement=o,Z.isMimeType=n,Z.mediaFileReader=function(e,t){let r=e[Symbol.iterator]();return new Promise(((e,o)=>{let i=[],l=()=>{const{done:a,value:s}=r.next();if(a)return e(i);const u=new FileReader;u.addEventListener("error",o),u.addEventListener("load",(()=>{const e=u.result;"string"==typeof e&&i.push({file:s,result:e}),l()})),n(s,t)?u.readAsDataURL(s):l()};l()}))},Z.mergeRegister=function(...e){return()=>{e.forEach((e=>e()))}},Z.objectKlassEquals=function(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name},Z.registerNestedElementResolver=function(e,t,n,r){return e.registerNodeTransform(t,(e=>{e:{for(var o=e.getChildren(),i=0;i<o.length;i++)if(o[i]instanceof t){o=null;break e}for(o=e;null!==o;)if(i=o,(o=o.getParent())instanceof t){o={child:i,parent:o};break e}o=null}if(null!==o){const{child:t,parent:l}=o;if(t.is(e)){if(r(l,e),o=(e=t.getNextSiblings()).length,l.insertAfter(t),0!==o){i=n(l),t.insertAfter(i);for(let t=0;t<o;t++)i.append(e[t])}l.canBeEmpty()||0!==l.getChildrenSize()||l.remove()}}}))},Z.removeClassNamesFromElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&e.classList.remove(...t.split(" "))}))},Z}function le(){if(V)return Y;V=1;const e=ie();return Y=e}function ae(){if(X)return q;X=1;const e=function(){if(Q)return J;Q=1;var e=le(),t=re();let n=new Set(["http:","https:","mailto:","sms:","tel:"]);class r extends t.ElementNode{static getType(){return"link"}static clone(e){return new r(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,t={},n){super(n);let{target:r=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=o,this.__title=i}createDOM(t){let n=document.createElement("a");return n.href=this.sanitizeUrl(this.__url),null!==this.__target&&(n.target=this.__target),null!==this.__rel&&(n.rel=this.__rel),null!==this.__title&&(n.title=this.__title),e.addClassNamesToElement(n,t.theme.link),n}updateDOM(e,t){let n=this.__url,r=this.__target,o=this.__rel,i=this.__title;return n!==e.__url&&(t.href=n),r!==e.__target&&(r?t.target=r:t.removeAttribute("target")),o!==e.__rel&&(o?t.rel=o:t.removeAttribute("rel")),i!==e.__title&&(i?t.title=i:t.removeAttribute("title")),!1}static importDOM(){return{a:()=>({conversion:o,priority:1})}}static importJSON(e){let t=i(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}sanitizeUrl(e){try{let t=new URL(e);if(!n.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,n=!0){return e=this.getParentOrThrow().insertNewAfter(e,n),t.$isElementNode(e)?(n=i(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),e.append(n),n):null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!t.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0<n.getTextContent().length}}function o(t){let n=null;if(e.isHTMLAnchorElement(t)){let e=t.textContent;null!==e&&""!==e&&(n=i(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:n}}function i(e,n){return t.$applyNodeReplacement(new r(e,n))}function l(e){return e instanceof r}class a extends r{static getType(){return"autolink"}static clone(e){return new a(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}static importJSON(e){let t=s(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e,n=!0){return e=this.getParentOrThrow().insertNewAfter(e,n),t.$isElementNode(e)?(n=s(this.__url,{rel:this._rel,target:this.__target,title:this.__title}),e.append(n),n):null}}function s(e,n){return t.$applyNodeReplacement(new a(e,n))}let u=t.createCommand("TOGGLE_LINK_COMMAND");return J.$createAutoLinkNode=s,J.$createLinkNode=i,J.$isAutoLinkNode=function(e){return e instanceof a},J.$isLinkNode=l,J.AutoLinkNode=a,J.LinkNode=r,J.TOGGLE_LINK_COMMAND=u,J.toggleLink=function(e,n={}){let{target:r,title:o}=n,a=void 0===n.rel?"noreferrer":n.rel;if(n=t.$getSelection(),t.$isRangeSelection(n))if(n=n.extract(),null===e)n.forEach((e=>{if(l(e=e.getParent())){let t=e.getChildren();for(let n=0;n<t.length;n++)e.insertBefore(t[n]);e.remove()}}));else{if(1===n.length){var s=n[0];if(s=l(s)?s:function(e,t){for(;null!==e&&null!==(e=e.getParent())&&!t(e););return e}(s,l),null!==s)return s.setURL(e),void 0!==r&&s.setTarget(r),null!==a&&s.setRel(a),void(void 0!==o&&s.setTitle(o))}let u=null,c=null;n.forEach((n=>{var s=n.getParent();if(s!==c&&null!==s&&(!t.$isElementNode(n)||n.isInline()))if(l(s))c=s,s.setURL(e),void 0!==r&&s.setTarget(r),null!==a&&c.setRel(a),void 0!==o&&c.setTitle(o);else if(s.is(u)||(u=s,c=i(e,{rel:a,target:r}),l(s)?null===n.getPreviousSibling()?s.insertBefore(c):s.insertAfter(c):n.insertBefore(c)),l(n)){if(!n.is(c)){if(null!==c){s=n.getChildren();for(let e=0;e<s.length;e++)c.append(s[e])}n.remove()}}else null!==c&&c.append(n)}))}},J}();return q=e}var se,ue,ce,de=ae(),fe={};function pe(){if(se)return fe;se=1;var e=re(),t=le();function n(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function r(e){let t=1;for(e=e.getParent();null!=e;){if(y(e)){if(k(e=e.getParent())){t++,e=e.getParent();continue}n(40)}break}return t}function o(e){k(e=e.getParent())||n(40);let t=e;for(;null!==t;)t=t.getParent(),k(t)&&(e=t);return e}function i(e){let t=[];e=e.getChildren().filter(y);for(let n=0;n<e.length;n++){let r=e[n],o=r.getFirstChild();k(o)?t=t.concat(i(o)):t.push(r)}return t}function l(e){return y(e)&&k(e.getFirstChild())}function a(e){return b().append(e)}function s(e,t){return y(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function u(e,t){e.splice(e.getChildrenSize(),0,t)}function c(e,t){if(k(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),o=b();return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),u(o,e.getChildren()),k(n)&&t===n.getListType()?(n.append(o),e.remove(),k(r)&&t===r.getListType()&&(u(n,r.getChildren()),r.remove()),n):k(r)&&t===r.getListType()?(r.getFirstChildOrThrow().insertBefore(o),e.remove(),r):((t=S(t)).append(o),e.replace(t),f(t),t)}function d(e,t){var n=e.getLastChild();let r=t.getFirstChild();n&&r&&l(n)&&l(r)&&(d(n.getFirstChild(),r.getFirstChild()),r.remove()),0<(n=t.getChildren()).length&&(e.append(...n),f(e)),t.remove()}function f(e,t){if(void 0!==(e=t||e.getChildren()))for(t=0;t<e.length;t++){let l=e[t];if(y(l)){let e=l.getValue();var r=l,o=r.getParent(),i=1;for(null!=o&&(k(o)?i=o.getStart():n(44)),r=r.getPreviousSiblings(),o=0;o<r.length;o++){let e=r[o];y(e)&&!k(e.getFirstChild())&&i++}e!==i&&l.setValue(i)}}}function p(e){if(!l(e)){var t=e.getParent(),n=t?t.getParent():void 0,r=n?n.getParent():void 0;if(k(r)&&y(n)&&k(t)){var o=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(o))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{var a=t.getListType();o=b();let r=S(a);o.append(r),e.getPreviousSiblings().forEach((e=>r.append(e))),i=b(),a=S(a),i.append(a),u(a,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(i),n.replace(e)}f(t),f(r)}}}class m extends e.ElementNode{static getType(){return"listitem"}static clone(e){return new m(e.__value,e.__checked,e.__key)}constructor(e,t,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}createDOM(e){let t=document.createElement("li"),n=this.getParent();return k(n)&&"check"===n.getListType()&&g(t,this,null),t.value=this.__value,h(t,e.theme,this),t}updateDOM(e,t,n){let r=this.getParent();return k(r)&&"check"===r.getListType()&&g(t,this,e),t.value=this.__value,h(t,n.theme,this),!1}static transform(){return e=>{let t=e.getParent();k(t)&&(f(t),"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0))}}static importDOM(){return{li:()=>({conversion:v,priority:0})}}static importJSON(e){let t=b();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...t){for(let n=0;n<t.length;n++){let r=t[n];if(e.$isElementNode(r)&&this.canMergeWith(r)){let e=r.getChildren();this.append(...e),r.remove()}else super.append(r)}return this}replace(e,t){if(y(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!k(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=S(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&this.getChildren().forEach((t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){var r=this.getParentOrThrow();k(r)||n(39);var o=this.getNextSiblings();if(y(e))return t=super.insertAfter(e,t),k(e=e.getParentOrThrow())&&f(e),t;if(k(e)){for(r=e,o=(e=e.getChildren()).length-1;0<=o;o--)r=e[o],this.insertAfter(r,t);return r}if(r.insertAfter(e,t),0!==o.length){let n=S(r.getListType());o.forEach((e=>n.append(e))),e.insertAfter(n,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&l(t)&&l(n)?(d(t.getFirstChild(),n.getFirstChild()),n.remove()):n&&(k(e=n.getParent())&&f(e))}insertNewAfter(e,t=!0){return e=b(null==this.__checked&&void 0),this.insertAfter(e,t),e}collapseAtStart(t){let n=e.$createParagraphNode();this.getChildren().forEach((e=>n.append(e)));var r=this.getParentOrThrow(),o=r.getParentOrThrow();let i=y(o);return 1===r.getChildrenSize()?i?(r.remove(),o.select()):(r.insertBefore(n),r.remove(),r=t.anchor,t=t.focus,o=n.getKey(),"element"===r.type&&r.getNode().is(this)&&r.set(o,r.offset,"element"),"element"===t.type&&t.getNode().is(this)&&t.set(o,t.offset,"element")):(r.insertBefore(n),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(null===e)return this.getLatest().__indent;e=e.getParentOrThrow();let t=0;for(;y(e);)e=e.getParentOrThrow().getParentOrThrow(),t++;return t}setIndent(e){"number"==typeof e&&-1<e||n(117);let t=this.getIndent();for(;t!==e;)if(t<e){e:{var r=new Set;if(l(this)||r.has(this.getKey()))break e;let e=this.getParent();var o=this.getNextSibling(),i=this.getPreviousSibling();if(l(o)&&l(i)){if(k(i=i.getFirstChild())){i.append(this);var a=o.getFirstChild();k(a)&&(u(i,a=a.getChildren()),o.remove(),r.add(o.getKey())),f(i)}}else l(o)?k(o=o.getFirstChild())&&(null!==(r=o.getFirstChild())&&r.insertBefore(this),f(o)):l(i)?k(o=i.getFirstChild())&&(o.append(this),f(o)):k(e)&&(r=b(),a=S(e.getListType()),r.append(a),a.append(this),i?i.insertAfter(r):o?o.insertBefore(r):e.append(r),f(a));k(e)&&f(e)}t++}else p(this),t--;return this}insertBefore(e){if(y(e)){let e=this.getParentOrThrow();if(k(e)){f(e,this.getNextSiblings())}}return super.insertBefore(e)}canInsertAfter(e){return y(e)}canReplaceWith(e){return y(e)}canMergeWith(t){return e.$isParagraphNode(t)||y(t)}extractWithChild(t,n){if(!e.$isRangeSelection(n))return!1;t=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(t)&&this.isParentOf(r)&&this.getTextContent().length===n.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return S("bullet")}}function h(e,n,r){let o=[],i=[];var l=(n=n.list)?n.listitem:void 0;if(n&&n.nested)var a=n.nested.listitem;if(void 0!==l&&(l=l.split(" "),o.push(...l)),n){l=k(l=r.getParent())&&"check"===l.getListType();let e=r.getChecked();l&&!e||i.push(n.listitemUnchecked),l&&e||i.push(n.listitemChecked),l&&o.push(e?n.listitemChecked:n.listitemUnchecked)}void 0!==a&&(a=a.split(" "),r.getChildren().some((e=>k(e)))?o.push(...a):i.push(...a)),0<i.length&&t.removeClassNamesFromElement(e,...i),0<o.length&&t.addClassNamesToElement(e,...o)}function g(e,t,n){k(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}function v(e){return{node:b(e=t.isHTMLElement(e)&&"true"===e.getAttribute("aria-checked"))}}function b(t){return e.$applyNodeReplacement(new m(void 0,t))}function y(e){return e instanceof m}class x extends e.ElementNode{static getType(){return"list"}static clone(e){return new x(e.__listType||w[e.__tag],e.__start,e.__key)}constructor(e,t,n){super(n),this.__listType=e=w[e]||e,this.__tag="number"===e?"ol":"ul",this.__start=t}getTag(){return this.__tag}setListType(e){let t=this.getWritable();t.__listType=e,t.__tag="number"===e?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e){let t=document.createElement(this.__tag);return 1!==this.__start&&t.setAttribute("start",String(this.__start)),t.__lexicalListType=this.__listType,_(t,e.theme,this),t}updateDOM(e,t,n){return e.__tag!==this.__tag||(_(t,n.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:C,priority:0}),ul:()=>({conversion:C,priority:0})}}static importJSON(e){let t=S(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportDOM(e){return({element:e}=super.exportDOM(e)),e&&(1!==this.__start&&e.setAttribute("start",String(this.__start)),"check"===this.__listType&&e.setAttribute("__lexicalListType","check")),{element:e}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...t){for(let r=0;r<t.length;r++){var n=t[r];if(y(n))super.append(n);else{let t=b();k(n)?t.append(n):e.$isElementNode(n)?(n=e.$createTextNode(n.getTextContent()),t.append(n)):t.append(n),super.append(t)}}return f(this),this}extractWithChild(e){return y(e)}}function _(e,n,o){let i=[],l=[];var a=n.list;if(void 0!==a){let e=a[`${o.__tag}Depth`]||[],t=(n=r(o)-1)%e.length;var s=e[t];let u,c=a[o.__tag];if(void 0!==(a=a.nested)&&a.list&&(u=a.list),void 0!==c&&i.push(c),void 0!==s)for(s=s.split(" "),i.push(...s),s=0;s<e.length;s++)s!==t&&l.push(o.__tag+s);void 0!==u&&(o=u.split(" "),1<n?i.push(...o):l.push(...o))}0<l.length&&t.removeClassNamesFromElement(e,...l),0<i.length&&t.addClassNamesToElement(e,...i)}function E(e){let t=[];for(let r=0;r<e.length;r++){var n=e[r];y(n)?(t.push(n),1<(n=n.getChildren()).length&&n.forEach((e=>{k(e)&&t.push(a(e))}))):t.push(a(n))}return t}function C(e){let n=e.nodeName.toLowerCase(),r=null;return"ol"===n?r=S("number",e.start):"ul"===n&&(r=t.isHTMLElement(e)&&"check"===e.getAttribute("__lexicallisttype")?S("check"):S("bullet")),{after:E,node:r}}let w={ol:"number",ul:"bullet"};function S(t,n=1){return e.$applyNodeReplacement(new x(t,n))}function k(e){return e instanceof x}let T=e.createCommand("INSERT_UNORDERED_LIST_COMMAND"),N=e.createCommand("INSERT_ORDERED_LIST_COMMAND"),R=e.createCommand("INSERT_CHECK_LIST_COMMAND"),A=e.createCommand("REMOVE_LIST_COMMAND");return fe.$createListItemNode=b,fe.$createListNode=S,fe.$getListDepth=r,fe.$handleListInsertParagraph=function(){var t=e.$getSelection();if(!e.$isRangeSelection(t)||!t.isCollapsed())return!1;if(!y(t=t.anchor.getNode())||""!==t.getTextContent())return!1;var r=o(t),i=t.getParent();k(i)||n(40);let l,a=i.getParent();if(e.$isRootOrShadowRoot(a))l=e.$createParagraphNode(),r.insertAfter(l);else{if(!y(a))return!1;l=b(),a.insertAfter(l)}if(l.select(),0<(r=t.getNextSiblings()).length){let t=S(i.getListType());e.$isParagraphNode(l)?l.insertAfter(t):((i=b()).append(t),l.insertAfter(i)),r.forEach((e=>{e.remove(),t.append(e)}))}return function(e){for(;null==e.getNextSibling()&&null==e.getPreviousSibling();){let t=e.getParent();if(null==t||!y(e)&&!k(e))break;e=t}e.remove()}(t),!0},fe.$isListItemNode=y,fe.$isListNode=k,fe.INSERT_CHECK_LIST_COMMAND=R,fe.INSERT_ORDERED_LIST_COMMAND=N,fe.INSERT_UNORDERED_LIST_COMMAND=T,fe.ListItemNode=m,fe.ListNode=x,fe.REMOVE_LIST_COMMAND=A,fe.insertList=function(t,n){t.update((()=>{var t=e.$getSelection();if(e.$isRangeSelection(t)||e.DEPRECATED_$isGridSelection(t)){var r=t.getNodes(),o=(t=t.anchor.getNode()).getParent();if(s(t,r))r=S(n),e.$isRootOrShadowRoot(o)?(t.replace(r),o=b(),e.$isElementNode(t)&&(o.setFormat(t.getFormatType()),o.setIndent(t.getIndent())),r.append(o)):y(t)&&(u(r,(t=t.getParentOrThrow()).getChildren()),t.replace(r));else for(t=new Set,o=0;o<r.length;o++){var i=r[o];if(e.$isElementNode(i)&&i.isEmpty()&&!t.has(i.getKey()))c(i,n);else if(e.$isLeafNode(i))for(i=i.getParent();null!=i;){let r=i.getKey();if(k(i)){if(!t.has(r)){var l=S(n);u(l,i.getChildren()),i.replace(l),f(l),t.add(r)}break}if(l=i.getParent(),e.$isRootOrShadowRoot(l)&&!t.has(r)){t.add(r),c(i,n);break}i=l}}}}))},fe.removeList=function(n){n.update((()=>{let n=e.$getSelection();if(e.$isRangeSelection(n)){var r=new Set,l=n.getNodes(),a=n.anchor.getNode();if(s(a,l))r.add(o(a));else for(a=0;a<l.length;a++){var c=l[a];e.$isLeafNode(c)&&(null!=(c=t.$getNearestNodeOfType(c,m))&&r.add(o(c)))}for(let t of r){r=t,l=i(t);for(let t of l)u(l=e.$createParagraphNode(),t.getChildren()),r.insertAfter(l),r=l,t.__key===n.anchor.key&&n.anchor.set(l.getKey(),0,"element"),t.__key===n.focus.key&&n.focus.set(l.getKey(),0,"element"),t.remove();t.remove()}}}))},fe}function me(){if(ce)return ue;ce=1;const e=pe();return ue=e}var he,ge,ve,be,ye,xe,_e=me(),Ee={},Ce={};function we(){if(he)return Ce;he=1;var e=w();let t=e.createContext(null);return Ce.LexicalComposerContext=t,Ce.createLexicalComposerContext=function(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}},Ce.useLexicalComposerContext=function(){let n=e.useContext(t);return null==n&&function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),n},Ce}function Se(){if(ve)return ge;ve=1;const e=we();return ge=e}function ke(){if(be)return Ee;be=1;var e=Se(),t=re(),n=w();let r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;var o=r?n.useLayoutEffect:n.useEffect;let i={tag:"history-merge"};return Ee.LexicalComposer=function({initialConfig:l,children:a}){let s=n.useMemo((()=>{const{theme:n,namespace:o,editor__DEPRECATED:a,nodes:s,onError:u,editorState:c}=l,d=e.createLexicalComposerContext(null,n);let f=a||null;if(null===f){const e=t.createEditor({editable:l.editable,namespace:o,nodes:s,onError:t=>u(t,e),theme:n});!function(e,n){if(null!==n)if(void 0===n)e.update((()=>{var n=t.$getRoot();if(n.isEmpty()){let o=t.$createParagraphNode();n.append(o),n=r?document.activeElement:null,(null!==t.$getSelection()||null!==n&&n===e.getRootElement())&&o.select()}}),i);else if(null!==n)switch(typeof n){case"string":let r=e.parseEditorState(n);e.setEditorState(r,i);break;case"object":e.setEditorState(n,i);break;case"function":e.update((()=>{t.$getRoot().isEmpty()&&n(e)}),i)}}(e,c),f=e}return[f,d]}),[]);return o((()=>{let e=l.editable,[t]=s;t.setEditable(void 0===e||e)}),[]),n.createElement(e.LexicalComposerContext.Provider,{value:s},a)},Ee}var Te,Ne,Re,Ae,Oe,Le,Me=function(){if(xe)return ye;xe=1;const e=ke();return ye=e}(),Pe={},Ie={};function De(){if(Te)return Ie;Te=1;var e=le(),t=re();function n(e,n){let r=Date.now(),o=0;return(i,l,a,s,u,c)=>{let d=Date.now();if(c.has("historic"))return o=0,r=d,2;let f=function(e,n,r,o,i){if(null===e||0===r.size&&0===o.size&&!i)return 0;var l=n._selection,a=e._selection;if(i)return 1;if(!(t.$isRangeSelection(l)&&t.$isRangeSelection(a)&&a.isCollapsed()&&l.isCollapsed()))return 0;i=n._nodeMap;let s=[];for(let e of r)void 0!==(r=i.get(e))&&s.push(r);for(let[e,n]of o)n&&(void 0===(o=i.get(e))||t.$isRootNode(o)||s.push(o));return 0===s.length?0:1<s.length?(n=(o=n._nodeMap).get(l.anchor.key),a=o.get(a.anchor.key),n&&a&&!e._nodeMap.has(n.__key)&&t.$isTextNode(n)&&1===n.__text.length&&1===l.anchor.offset?2:0):(n=s[0],e=e._nodeMap.get(n.__key),t.$isTextNode(e)&&t.$isTextNode(n)&&e.__mode===n.__mode?(e=e.__text)===(n=n.__text)?0:(l=l.anchor,a=a.anchor,l.key!==a.key||"text"!==l.type?0:(l=l.offset,a=a.offset,1==(e=n.length-e.length)&&a===l-1?2:-1===e&&a===l+1?3:-1===e&&a===l?4:0)):0)}(i,l,s,u,e.isComposing()),p=(()=>{var p=null===a||a.editor===e,m=c.has("history-push");if(!m&&p&&c.has("history-merge"))return 0;if(null===i)return 1;var h=l._selection;if(!(0<s.size||0<u.size))return null!==h?0:2;if(!1===m&&0!==f&&f===o&&d<r+n&&p)return 0;if(1===s.size){{m=Array.from(s)[0],p=i._nodeMap.get(m),m=l._nodeMap.get(m),h=i._selection;let e=l._selection,n=!1;t.$isRangeSelection(h)&&t.$isRangeSelection(e)&&(n="element"===h.anchor.type&&"element"===h.focus.type&&"text"===e.anchor.type&&"text"===e.focus.type),p=!(n||!t.$isTextNode(p)||!t.$isTextNode(m))&&(p.__type===m.__type&&p.__text===m.__text&&p.__mode===m.__mode&&p.__detail===m.__detail&&p.__style===m.__style&&p.__format===m.__format&&p.__parent===m.__parent)}if(p)return 0}return 1})();return r=d,o=f,p}}return Ie.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},Ie.registerHistory=function(r,o,i){let l=n(r,i);i=({editorState:e,prevEditorState:n,dirtyLeaves:i,dirtyElements:a,tags:s})=>{const u=o.current,c=o.redoStack,d=o.undoStack,f=null===u?null:u.editorState;if(null===u||e!==f){if(1===(n=l(n,e,u,i,a,s)))0!==c.length&&(o.redoStack=[],r.dispatchCommand(t.CAN_REDO_COMMAND,!1)),null!==u&&(d.push({...u}),r.dispatchCommand(t.CAN_UNDO_COMMAND,!0));else if(2===n)return;o.current={editor:r,editorState:e}}};let a=e.mergeRegister(r.registerCommand(t.UNDO_COMMAND,(()=>{let e=o.redoStack,n=o.undoStack;if(0!==n.length){let i=o.current,l=n.pop();null!==i&&(e.push(i),r.dispatchCommand(t.CAN_REDO_COMMAND,!0)),0===n.length&&r.dispatchCommand(t.CAN_UNDO_COMMAND,!1),o.current=l||null,l&&l.editor.setEditorState(l.editorState,{tag:"historic"})}return!0}),t.COMMAND_PRIORITY_EDITOR),r.registerCommand(t.REDO_COMMAND,(()=>{let e=o.redoStack;var n=o.undoStack;if(0!==e.length){let i=o.current;null!==i&&(n.push(i),r.dispatchCommand(t.CAN_UNDO_COMMAND,!0)),n=e.pop(),0===e.length&&r.dispatchCommand(t.CAN_REDO_COMMAND,!1),o.current=n||null,n&&n.editor.setEditorState(n.editorState,{tag:"historic"})}return!0}),t.COMMAND_PRIORITY_EDITOR),r.registerCommand(t.CLEAR_EDITOR_COMMAND,(()=>(o.undoStack=[],o.redoStack=[],o.current=null,!1)),t.COMMAND_PRIORITY_EDITOR),r.registerCommand(t.CLEAR_HISTORY_COMMAND,(()=>(o.undoStack=[],o.redoStack=[],o.current=null,r.dispatchCommand(t.CAN_REDO_COMMAND,!1),r.dispatchCommand(t.CAN_UNDO_COMMAND,!1),!0)),t.COMMAND_PRIORITY_EDITOR),r.registerUpdateListener(i)),s=r.registerUpdateListener(i);return()=>{a(),s()}},Ie}function ze(){if(Ae)return Pe;Ae=1;var e=Se(),t=function(){if(Re)return Ne;Re=1;const e=De();return Ne=e}(),n=w();return Pe.createEmptyHistoryState=t.createEmptyHistoryState,Pe.HistoryPlugin=function({externalHistoryState:r}){let[o]=e.useLexicalComposerContext();return function(e,r,o=1e3){let i=n.useMemo((()=>r||t.createEmptyHistoryState()),[r]);n.useEffect((()=>t.registerHistory(e,i,o)),[o,e,i])}(o,r),null},Pe}var $e,Fe,Be,He=function(){if(Le)return Oe;Le=1;const e=ze();return Oe=e}(),je={};function We(){if($e)return je;$e=1;var e=me(),t=Se(),n=w(),r=le(),o=re();return je.ListPlugin=function(){let[i]=t.useLexicalComposerContext();return n.useEffect((()=>{if(!i.hasNodes([e.ListNode,e.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")}),[i]),function(t){n.useEffect((()=>r.mergeRegister(t.registerCommand(e.INSERT_ORDERED_LIST_COMMAND,(()=>(e.insertList(t,"number"),!0)),o.COMMAND_PRIORITY_LOW),t.registerCommand(e.INSERT_UNORDERED_LIST_COMMAND,(()=>(e.insertList(t,"bullet"),!0)),o.COMMAND_PRIORITY_LOW),t.registerCommand(e.REMOVE_LIST_COMMAND,(()=>(e.removeList(t),!0)),o.COMMAND_PRIORITY_LOW),t.registerCommand(o.INSERT_PARAGRAPH_COMMAND,(()=>!!e.$handleListInsertParagraph()),o.COMMAND_PRIORITY_LOW))),[t])}(i),null},je}var Ke,Ue,Ge,Ye=function(){if(Be)return Fe;Be=1;const e=We();return Fe=e}(),Ve={};function Qe(){if(Ke)return Ve;Ke=1;var e=Se(),t=le(),n=re(),r=w();function o(e){return e.registerCommand(n.KEY_TAB_COMMAND,(r=>{let o=n.$getSelection();return!!n.$isRangeSelection(o)&&(r.preventDefault(),r=function(e){var r=e.getNodes();if(0<function(e,t){let n=[];for(let r=0;r<e.length;r++){let o=t(e[r]);null!==o&&n.push(o)}return n}(r,(e=>n.$isBlockElementNode(e)&&e.canIndent()?e:null)).length)return!0;if(r=e.anchor,r=(e=(e=e.focus).isBefore(r)?e:r).getNode(),(r=t.$getNearestBlockElementAncestorOrThrow(r)).canIndent()){r=r.getKey();let t=n.$createRangeSelection();if(t.anchor.set(r,0,"element"),t.focus.set(r,0,"element"),t=n.$normalizeSelection__EXPERIMENTAL(t),t.anchor.is(e))return!0}return!1}(o)?r.shiftKey?n.OUTDENT_CONTENT_COMMAND:n.INDENT_CONTENT_COMMAND:n.INSERT_TAB_COMMAND,e.dispatchCommand(r,void 0))}),n.COMMAND_PRIORITY_EDITOR)}return Ve.TabIndentationPlugin=function(){let[t]=e.useLexicalComposerContext();return r.useEffect((()=>o(t))),null},Ve.registerTabIndentation=o,Ve}var qe,Xe,Je,Ze,et,tt,nt,rt,ot,it=function(){if(Ge)return Ue;Ge=1;const e=Qe();return Ue=e}(),lt={},at={},st={};function ut(){if(Je)return Xe;Je=1;const e=function(){if(qe)return st;qe=1;var e=oe(),t=re();function n(r,o,i,l=null){let a=null==l||o.isSelected(l),s=t.$isElementNode(o)&&o.excludeFromCopy("html");var u=o;null!==l&&(u=e.$cloneWithProperties(o),u=t.$isTextNode(u)&&null!=l?e.$sliceSelectedTextNodeContent(l,u):u);let c=t.$isElementNode(u)?u.getChildren():[],{element:d,after:f}=u.exportDOM(r);if(!d)return!1;let p=document.createDocumentFragment();for(let e=0;e<c.length;e++){let i=c[e],s=n(r,i,p,l);!a&&t.$isElementNode(o)&&s&&o.extractWithChild(i,l,"html")&&(a=!0)}return a&&!s?(d.append(p),i.append(d),f&&(r=f.call(u,d))&&d.replaceWith(r)):i.append(p),a}let r=new Set(["STYLE","SCRIPT"]);function o(e,n,i=new Map,l){let a=[];if(r.has(e.nodeName))return a;let s=null;var u,{nodeName:c}=e,d=n._htmlConversions.get(c.toLowerCase());if(c=null,void 0!==d)for(u of d)null!==(d=u(e))&&(null===c||c.priority<d.priority)&&(c=d);if(c=(u=null!==c?c.conversion:null)?u(e):null,u=null,null!==c){if(u=c.after,d=c.node,s=Array.isArray(d)?d[d.length-1]:d,null!==s){for(var[,f]of i)if(s=f(s,l),!s)break;s&&a.push(...Array.isArray(d)?d:[s])}null!=c.forChild&&i.set(e.nodeName,c.forChild)}for(e=e.childNodes,l=[],f=0;f<e.length;f++)l.push(...o(e[f],n,new Map(i),s));return null!=u&&(l=u(l)),null==s?a=a.concat(l):t.$isElementNode(s)&&s.append(...l),a}return st.$generateHtmlFromNodes=function(e,r){if("undefined"==typeof document||"undefined"==typeof window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let o=document.createElement("div"),i=t.$getRoot().getChildren();for(let t=0;t<i.length;t++)n(e,i[t],o,r);return o.innerHTML},st.$generateNodesFromDOM=function(e,t){t=t.body?t.body.childNodes:[];let n=[];for(let l=0;l<t.length;l++){var i=t[l];r.has(i.nodeName)||null!==(i=o(i,e))&&(n=n.concat(i))}return n},st}();return Xe=e}function ct(){if(Ze)return at;Ze=1;var e=ut(),t=oe(),n=le(),r=re();function o(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function l(t){let n=r.$getSelection();if(null==n)throw Error("Expected valid LexicalSelection");return r.$isRangeSelection(n)&&n.isCollapsed()||0===n.getNodes().length?"":e.$generateHtmlFromNodes(t,n)}function a(e){let t=r.$getSelection();if(null==t)throw Error("Expected valid LexicalSelection");return r.$isRangeSelection(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(c(e,t))}function s(e,t,i){(r.DEPRECATED_$isGridSelection(i)||null!==n.$findMatchingParent(i.anchor.getNode(),(e=>r.DEPRECATED_$isGridCellNode(e)))&&null!==n.$findMatchingParent(i.focus.getNode(),(e=>r.DEPRECATED_$isGridCellNode(e))))&&1===t.length&&r.DEPRECATED_$isGridNode(t[0])?function(e,t,i,l){1===e.length&&r.DEPRECATED_$isGridNode(e[0])||o(42);var a=e[0];e=a.getChildren(),i=a.getFirstChildOrThrow().getChildrenSize();var s=a.getChildrenSize(),u=n.$findMatchingParent(t.anchor.getNode(),(e=>r.DEPRECATED_$isGridCellNode(e)));t=(a=u&&n.$findMatchingParent(u,(e=>r.DEPRECATED_$isGridRowNode(e))))&&n.$findMatchingParent(a,(e=>r.DEPRECATED_$isGridNode(e))),r.DEPRECATED_$isGridCellNode(u)&&r.DEPRECATED_$isGridRowNode(a)&&r.DEPRECATED_$isGridNode(t)||o(43);var c=a.getIndexWithinParent(),d=Math.min(t.getChildrenSize()-1,c+s-1);let f,p;s=u.getIndexWithinParent(),u=Math.min(a.getChildrenSize()-1,s+i-1),i=Math.min(s,u),a=Math.min(c,d),s=Math.max(s,u),c=Math.max(c,d),d=t.getChildren(),u=0;for(let t=a;t<=c;t++){var m=d[t];r.DEPRECATED_$isGridRowNode(m)||o(24);var h=e[u];r.DEPRECATED_$isGridRowNode(h)||o(24),m=m.getChildren(),h=h.getChildren();let n=0;for(let e=i;e<=s;e++){let l=m[e];r.DEPRECATED_$isGridCellNode(l)||o(25);let u=h[n];r.DEPRECATED_$isGridCellNode(u)||o(25),t===a&&e===i?f=l.getKey():t===c&&e===s&&(p=l.getKey());let d=l.getChildren();u.getChildren().forEach((e=>{r.$isTextNode(e)&&r.$createParagraphNode().append(e),l.append(e)})),d.forEach((e=>e.remove())),n++}u++}f&&p&&(e=r.DEPRECATED_$createGridSelection(),e.set(t.getKey(),f,p),r.$setSelection(e),l.dispatchCommand(r.SELECTION_CHANGE_COMMAND,void 0))}(t,i,!1,e):function(e,t){let n=[],i=null;for(let t=0;t<e.length;t++){let o=e[t],l=r.$isLineBreakNode(o);if(l||r.$isDecoratorNode(o)&&o.isInline()||r.$isElementNode(o)&&o.isInline()||r.$isTextNode(o)||o.isParentRequired()){if(null===i&&(i=o.createParentElementNode(),n.push(i),l))continue;null!==i&&i.append(o)}else n.push(o),i=null}r.$isRangeSelection(t)?t.insertNodes(n):r.DEPRECATED_$isGridSelection(t)&&(e=t.anchor.getNode(),r.DEPRECATED_$isGridCellNode(e)||o(41),e.append(...n))}(t,i)}function u(e,n,i,l=[]){let a=null==n||i.isSelected(n),s=r.$isElementNode(i)&&i.excludeFromCopy("html");var c=i;if(null!==n){var d=t.$cloneWithProperties(i);c=d=r.$isTextNode(d)&&null!=n?t.$sliceSelectedTextNodeContent(n,d):d}let f=r.$isElementNode(c)?c.getChildren():[];var p=c;d=p.exportJSON();var m=p.constructor;d.type!==m.getType()&&o(58,m.name);let h=d.children;for(r.$isElementNode(p)&&(Array.isArray(h)||o(59,m.name)),r.$isTextNode(c)&&(0<(c=c.__text).length?d.text=c:a=!1),c=0;c<f.length;c++)m=u(e,n,p=f[c],d.children),!a&&r.$isElementNode(i)&&m&&i.extractWithChild(p,n,"clone")&&(a=!0);if(a&&!s)l.push(d);else if(Array.isArray(d.children))for(e=0;e<d.children.length;e++)l.push(d.children[e]);return a}function c(e,t){let n=[],o=r.$getRoot().getChildren();for(let r=0;r<o.length;r++)u(e,t,o[r],n);return{namespace:e._config.namespace,nodes:n}}function d(e){let n=[];for(let o=0;o<e.length;o++){let i=r.$parseSerializedNode(e[o]);r.$isTextNode(i)&&t.$addNodeStyle(i),n.push(i)}return n}let f=null;function p(e,t){var n=i?(e._window||window).getSelection():null;if(!n)return!1;var o=n.anchorNode;if(n=n.focusNode,null!==o&&null!==n&&!r.isSelectionWithinEditor(e,o,n))return!1;if(t.preventDefault(),t=t.clipboardData,o=r.$getSelection(),null===t||null===o)return!1;n=l(e),e=a(e);let s="";return null!==o&&(s=o.getTextContent()),null!==n&&t.setData("text/html",n),null!==e&&t.setData("application/x-lexical-editor",e),t.setData("text/plain",s),!0}return at.$generateJSONFromSelectedNodes=c,at.$generateNodesFromSerializedNodes=d,at.$getHtmlContent=l,at.$getLexicalContent=a,at.$insertDataTransferForPlainText=function(e,t){null!=(e=e.getData("text/plain")||e.getData("text/uri-list"))&&t.insertRawText(e)},at.$insertDataTransferForRichText=function(t,n,o){var i=t.getData("application/x-lexical-editor");if(i)try{let e=JSON.parse(i);if(e.namespace===o._config.namespace&&Array.isArray(e.nodes)){return s(o,d(e.nodes),n)}}catch(e){}if(i=t.getData("text/html"))try{var l=(new DOMParser).parseFromString(i,"text/html"),a=e.$generateNodesFromDOM(o,l);return s(o,a,n)}catch(e){}if(null!=(t=t.getData("text/plain")||t.getData("text/uri-list")))if(r.$isRangeSelection(n))for(o=(t=t.split(/(\r?\n|\t)/)).length,l=0;l<o;l++)"\n"===(a=t[l])||"\r\n"===a?n.insertParagraph():"\t"===a?n.insertNodes([r.$createTabNode()]):n.insertText(a);else n.insertRawText(t)},at.$insertGeneratedNodes=s,at.copyToClipboard=async function(e,t){if(null!==f)return!1;if(null!==t)return new Promise((n=>{e.update((()=>{n(p(e,t))}))}));var o=e.getRootElement();let l=null==e._window?window.document:e._window.document,a=i?(e._window||window).getSelection():null;if(null===o||null===a)return!1;let s=l.createElement("span");return s.style.cssText="position: fixed; top: -1000px;",s.append(l.createTextNode("#")),o.append(s),(o=new Range).setStart(s,0),o.setEnd(s,1),a.removeAllRanges(),a.addRange(o),new Promise((t=>{let o=e.registerCommand(r.COPY_COMMAND,(r=>(n.objectKlassEquals(r,ClipboardEvent)&&(o(),null!==f&&(window.clearTimeout(f),f=null),t(p(e,r))),!0)),r.COMMAND_PRIORITY_CRITICAL);f=window.setTimeout((()=>{o(),f=null,t(!1)}),50),l.execCommand("copy"),s.remove()}))},at}function dt(){if(nt)return lt;nt=1;var e=function(){if(tt)return et;tt=1;const e=ct();return et=e}(),t=oe(),n=le(),r=re();function o(e,t){return void 0!==document.caretRangeFromPoint?null===(e=document.caretRangeFromPoint(e,t))?null:{node:e.startContainer,offset:e.startOffset}:"undefined"!==document.caretPositionFromPoint?null===(e=document.caretPositionFromPoint(e,t))?null:{node:e.offsetNode,offset:e.offset}:null}let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,l=i&&"documentMode"in document?document.documentMode:null,a=!(!i||!("InputEvent"in window)||l)&&"getTargetRanges"in new window.InputEvent("input"),s=i&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),u=i&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c=i&&/^(?=.*Chrome).*/i.test(navigator.userAgent),d=i&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!c,f=r.createCommand("DRAG_DROP_PASTE_FILE");class p extends r.ElementNode{static getType(){return"quote"}static clone(e){return new p(e.__key)}constructor(e){super(e)}createDOM(e){let t=document.createElement("blockquote");return n.addClassNamesToElement(t,e.theme.quote),t}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:b,priority:0})}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}static importJSON(e){let t=m();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(e,t){e=r.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=r.$createParagraphNode();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}}function m(){return r.$applyNodeReplacement(new p)}class h extends r.ElementNode{static getType(){return"heading"}static clone(e){return new h(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}createDOM(e){let t=this.__tag,r=document.createElement(t);return void 0!==(e=e.theme.heading)&&n.addClassNamesToElement(r,e[t]),r}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:v,priority:0}),h2:()=>({conversion:v,priority:0}),h3:()=>({conversion:v,priority:0}),h4:()=>({conversion:v,priority:0}),h5:()=>({conversion:v,priority:0}),h6:()=>({conversion:v,priority:0}),p:e=>null!==(e=e.firstChild)&&g(e)?{conversion:()=>({node:null}),priority:3}:null,span:e=>g(e)?{conversion:()=>({node:y("h1")}),priority:3}:null}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}static importJSON(e){let t=y(e.tag);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(e,t=!0){e=0<(e=e?e.anchor.offset:0)&&e<this.getTextContentSize()?y(this.getTag()):r.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.isEmpty()?r.$createParagraphNode():y(this.getTag());return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}extractWithChild(){return!0}}function g(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function v(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=y(t),null!==e.style&&n.setFormat(e.style.textAlign)),{node:n}}function b(e){let t=m();return null!==e.style&&t.setFormat(e.style.textAlign),{node:t}}function y(e){return r.$applyNodeReplacement(new h(e))}function x(e){let t=null;if(e instanceof DragEvent?t=e.dataTransfer:e instanceof ClipboardEvent&&(t=e.clipboardData),null===t)return[!1,[],!1];var n=t.types;return e=n.includes("Files"),n=n.includes("text/html")||n.includes("text/plain"),[e,Array.from(t.files),n]}function _(e){var t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;let o=new Set;t=t.getNodes();for(let r=0;r<t.length;r++){var i=t[r],l=i.getKey();o.has(l)||(l=(i=n.$getNearestBlockElementAncestorOrThrow(i)).getKey(),i.canIndent()&&!o.has(l)&&(o.add(l),e(i)))}return 0<o.size}function E(e){return e=r.$getNearestNodeFromDOMNode(e),r.$isDecoratorNode(e)}return lt.$createHeadingNode=y,lt.$createQuoteNode=m,lt.$isHeadingNode=function(e){return e instanceof h},lt.$isQuoteNode=function(e){return e instanceof p},lt.DRAG_DROP_PASTE=f,lt.HeadingNode=h,lt.QuoteNode=p,lt.eventFiles=x,lt.registerRichText=function(i){return n.mergeRegister(i.registerCommand(r.CLICK_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isNodeSelection(e)&&(e.clear(),!0)}),0),i.registerCommand(r.DELETE_CHARACTER_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.deleteCharacter(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DELETE_WORD_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.deleteWord(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DELETE_LINE_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.deleteLine(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.CONTROLLED_TEXT_INSERTION_COMMAND,(t=>{const n=r.$getSelection();if("string"==typeof t)r.$isRangeSelection(n)?n.insertText(t):r.DEPRECATED_$isGridSelection(n);else{if(!r.$isRangeSelection(n)&&!r.DEPRECATED_$isGridSelection(n))return!1;const o=t.dataTransfer;null!=o?e.$insertDataTransferForRichText(o,n,i):r.$isRangeSelection(n)&&(t=t.data)&&n.insertText(t)}return!0}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.REMOVE_TEXT_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isRangeSelection(e)&&(e.removeText(),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.FORMAT_TEXT_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.formatText(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.FORMAT_ELEMENT_COMMAND,(e=>{var t=r.$getSelection();if(!r.$isRangeSelection(t)&&!r.$isNodeSelection(t))return!1;t=t.getNodes();for(const o of t)t=n.$findMatchingParent(o,(e=>r.$isElementNode(e)&&!e.isInline())),null!==t&&t.setFormat(e);return!0}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INSERT_LINE_BREAK_COMMAND,(e=>{const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(t.insertLineBreak(e),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INSERT_PARAGRAPH_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isRangeSelection(e)&&(e.insertParagraph(),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INSERT_TAB_COMMAND,(()=>(r.$insertNodes([r.$createTabNode()]),!0)),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.INDENT_CONTENT_COMMAND,(()=>_((e=>{const t=e.getIndent();e.setIndent(t+1)}))),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.OUTDENT_CONTENT_COMMAND,(()=>_((e=>{const t=e.getIndent();0<t&&e.setIndent(t-1)}))),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_UP_COMMAND,(e=>{var t=r.$getSelection();if(r.$isNodeSelection(t)&&!E(e.target)){if(0<(e=t.getNodes()).length)return e[0].selectPrevious(),!0}else if(r.$isRangeSelection(t)&&(t=r.$getAdjacentNode(t.focus,!0),!e.shiftKey&&r.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline()))return t.selectPrevious(),e.preventDefault(),!0;return!1}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_DOWN_COMMAND,(e=>{var t=r.$getSelection();if(r.$isNodeSelection(t)){if(0<(e=t.getNodes()).length)return e[0].selectNext(0,0),!0}else if(r.$isRangeSelection(t)){let n=t.focus;if("root"===n.key&&n.offset===r.$getRoot().getChildrenSize())return e.preventDefault(),!0;if(t=r.$getAdjacentNode(t.focus,!1),!e.shiftKey&&r.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline())return t.selectNext(),e.preventDefault(),!0}return!1}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_LEFT_COMMAND,(e=>{const n=r.$getSelection();if(r.$isNodeSelection(n)){var o=n.getNodes();if(0<o.length)return e.preventDefault(),o[0].selectPrevious(),!0}return!!r.$isRangeSelection(n)&&(!!t.$shouldOverrideDefaultCharacterSelection(n,!0)&&(o=e.shiftKey,e.preventDefault(),t.$moveCharacter(n,o,!0),!0))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ARROW_RIGHT_COMMAND,(e=>{const n=r.$getSelection();if(r.$isNodeSelection(n)&&!E(e.target)){var o=n.getNodes();if(0<o.length)return e.preventDefault(),o[0].selectNext(0,0),!0}return!!r.$isRangeSelection(n)&&(o=e.shiftKey,!!t.$shouldOverrideDefaultCharacterSelection(n,!1)&&(e.preventDefault(),t.$moveCharacter(n,o,!1),!0))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_BACKSPACE_COMMAND,(e=>{if(E(e.target))return!1;const t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;e.preventDefault(),({anchor:e}=t);const o=e.getNode();return t.isCollapsed()&&0===e.offset&&!r.$isRootNode(o)&&0<n.$getNearestBlockElementAncestorOrThrow(o).getIndent()?i.dispatchCommand(r.OUTDENT_CONTENT_COMMAND,void 0):i.dispatchCommand(r.DELETE_CHARACTER_COMMAND,!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_DELETE_COMMAND,(e=>{if(E(e.target))return!1;const t=r.$getSelection();return!!r.$isRangeSelection(t)&&(e.preventDefault(),i.dispatchCommand(r.DELETE_CHARACTER_COMMAND,!1))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ENTER_COMMAND,(e=>{const t=r.$getSelection();if(!r.$isRangeSelection(t))return!1;if(null!==e){if((u||s||d)&&a)return!1;if(e.preventDefault(),e.shiftKey)return i.dispatchCommand(r.INSERT_LINE_BREAK_COMMAND,!1)}return i.dispatchCommand(r.INSERT_PARAGRAPH_COMMAND,void 0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.KEY_ESCAPE_COMMAND,(()=>{const e=r.$getSelection();return!!r.$isRangeSelection(e)&&(i.blur(),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DROP_COMMAND,(e=>{const[,t]=x(e);if(0<t.length){var n=o(e.clientX,e.clientY);if(null!==n){const{offset:e,node:o}=n;var l=r.$getNearestNodeFromDOMNode(o);if(null!==l){if(n=r.$createRangeSelection(),r.$isTextNode(l))n.anchor.set(l.getKey(),e,"text"),n.focus.set(l.getKey(),e,"text");else{const e=l.getParentOrThrow().getKey();l=l.getIndexWithinParent()+1,n.anchor.set(e,l,"element"),n.focus.set(e,l,"element")}n=r.$normalizeSelection__EXPERIMENTAL(n),r.$setSelection(n)}i.dispatchCommand(f,t)}return e.preventDefault(),!0}return e=r.$getSelection(),!!r.$isRangeSelection(e)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DRAGSTART_COMMAND,(e=>{[e]=x(e);const t=r.$getSelection();return!(e&&!r.$isRangeSelection(t))}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.DRAGOVER_COMMAND,(e=>{var[t]=x(e);const n=r.$getSelection();return!(t&&!r.$isRangeSelection(n))&&(null!==(t=o(e.clientX,e.clientY))&&(t=r.$getNearestNodeFromDOMNode(t.node),r.$isDecoratorNode(t)&&e.preventDefault()),!0)}),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.COPY_COMMAND,(t=>(e.copyToClipboard(i,n.objectKlassEquals(t,ClipboardEvent)?t:null),!0)),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.CUT_COMMAND,(t=>(async function(t,o){await e.copyToClipboard(o,n.objectKlassEquals(t,ClipboardEvent)?t:null),o.update((()=>{let e=r.$getSelection();r.$isRangeSelection(e)?e.removeText():r.$isNodeSelection(e)&&e.getNodes().forEach((e=>e.remove()))}))}(t,i),!0)),r.COMMAND_PRIORITY_EDITOR),i.registerCommand(r.PASTE_COMMAND,(t=>{const[,n,o]=x(t);if(0<n.length&&!o)return i.dispatchCommand(f,n),!0;if(r.isSelectionCapturedInDecoratorInput(t.target))return!1;const l=r.$getSelection();return!(!r.$isRangeSelection(l)&&!r.DEPRECATED_$isGridSelection(l))&&(function(t,n){t.preventDefault(),n.update((()=>{let o=r.$getSelection(),i=t instanceof InputEvent||t instanceof KeyboardEvent?null:t.clipboardData;null!=i&&(r.$isRangeSelection(o)||r.DEPRECATED_$isGridSelection(o))&&e.$insertDataTransferForRichText(i,o,n)}),{tag:"paste"})}(t,i),!0)}),r.COMMAND_PRIORITY_EDITOR))},lt}function ft(){if(ot)return rt;ot=1;const e=dt();return rt=e}var pt,mt,ht,gt=ft(),vt={};function bt(){if(pt)return vt;pt=1;var e=ae(),t=Se(),n=le(),r=re(),o=w();function i(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}let l=/[.,;\s]/;function a(e){var t;return e=e.getPreviousSibling(),r.$isElementNode(e)&&(e=e.getLastDescendant()),!(t=null===e||r.$isLineBreakNode(e))&&(t=r.$isTextNode(e))&&(e=e.getTextContent(),t=l.test(e[e.length-1])),t}function s(e){return e=e.getNextSibling(),r.$isElementNode(e)&&(e=e.getFirstDescendant()),null===e||r.$isLineBreakNode(e)||r.$isTextNode(e)&&l.test(e.getTextContent()[0])}function u(e,t,n){var o=e.getChildren();let l=o.length;for(let t=0;t<l;t++){let i=o[t];if(!r.$isTextNode(i)||!i.isSimpleText())return c(e),void n(null,e.getURL())}null===(t=i(o=e.getTextContent(),t))||t.text!==o?(c(e),n(null,e.getURL())):a(e)&&s(e)?((o=e.getURL())!==t.url&&(e.setURL(t.url),n(t.url,o)),t.attributes&&((o=e.getRel())!==t.attributes.rel&&(e.setRel(t.attributes.rel||null),n(t.attributes.rel||null,o)),(o=e.getTarget())!==t.attributes.target&&(e.setTarget(t.attributes.target||null),n(t.attributes.target||null,o)))):(c(e),n(null,e.getURL()))}function c(e){let t=e.getChildren();var n=t.length;for(--n;0<=n;n--)e.insertAfter(t[n]);return e.remove(),t.map((e=>e.getLatest()))}function d(t,d,f){o.useEffect((()=>{t.hasNodes([e.AutoLinkNode])||function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);let o=(e,t)=>{f&&f(e,t)};return n.mergeRegister(t.registerNodeTransform(r.TextNode,(t=>{var n=t.getParentOrThrow(),p=t.getPreviousSibling();if(e.$isAutoLinkNode(n))u(n,d,o);else if(!e.$isLinkNode(n)){if(t.isSimpleText()&&(l.test(t.getTextContent()[0])||!e.$isAutoLinkNode(p))){p=n=t.getTextContent();let o=0,u=t;for(var m;(m=i(p,d))&&null!==m;){let i=m.index,c=m.length,d=i+c;var h=o+i,g=o+d,v=n,b=t;if((0<h?l.test(v[h-1]):a(b))&&(g<v.length?l.test(v[g]):s(b))){var y=void 0;0===o+i?[y,u]=u.splitText(o+c):[,y,u]=u.splitText(o+i,o+i+c),h=e.$createAutoLinkNode(m.url,m.attributes),(g=r.$createTextNode(m.text)).setFormat(y.getFormat()),g.setDetail(y.getDetail()),h.append(g),y.replace(h),f&&f(m.url,null),o=0}else o+=d;p=p.substring(d)}}n=t.getPreviousSibling(),m=t.getNextSibling(),y=t.getTextContent(),e.$isAutoLinkNode(n)&&!l.test(y[0])&&(n.append(t),u(n,d,o),t=n.getURL(),f&&f(null,t)),e.$isAutoLinkNode(m)&&!l.test(y[y.length-1])&&(c(m),u(m,d,o),t=m.getURL(),f&&f(null,t))}})))}),[t,d,f])}return vt.AutoLinkPlugin=function({matchers:e,onChange:n}){let[r]=t.useLexicalComposerContext();return d(r,e,n),null},vt.createLinkMatcherWithRegExp=function(e,t=e=>e){return n=>{let r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(n)}}},vt}var yt,xt,_t,Et,Ct=function(){if(ht)return mt;ht=1;const e=bt();return mt=e}(),wt=Se();function St(){if(xt)return yt;xt=1;var e=Se(),t=w(),n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function r(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}return yt=function(){return function(r){let[o]=e.useLexicalComposerContext(),i=t.useMemo((()=>r(o)),[o,r]),l=t.useRef(i.initialValueFn()),[a,s]=t.useState(l.current);return n((()=>{let{initialValueFn:e,subscribe:t}=i,n=e();return l.current!==n&&(l.current=n,s(n)),t((e=>{l.current=e,s(e)}))}),[i,r]),a}(r)},yt}function kt(){if(Et)return _t;Et=1;const e=St();return _t=e}var Tt=h(kt()),Nt=le(),Rt=re(),At=oe();const Ot={black:"#000",white:"#fff"},Lt="#e57373",Mt="#ef5350",Pt="#f44336",It="#d32f2f",Dt="#c62828",zt="#f3e5f5",$t="#ce93d8",Ft="#ba68c8",Bt="#ab47bc",Ht="#9c27b0",jt="#7b1fa2",Wt="#e3f2fd",Kt="#90caf9",Ut="#42a5f5",Gt="#1976d2",Yt="#1565c0",Vt="#4fc3f7",Qt="#29b6f6",qt="#03a9f4",Xt="#0288d1",Jt="#01579b",Zt="#81c784",en="#66bb6a",tn="#4caf50",nn="#388e3c",rn="#2e7d32",on="#1b5e20",ln="#ffb74d",an="#ffa726",sn="#ff9800",un="#f57c00",cn="#e65100",dn={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 fn(){return fn=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},fn.apply(null,arguments)}function pn(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 mn(e){if(!pn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=mn(e[n])})),t}function hn(e,t,n={clone:!0}){const r=n.clone?fn({},e):e;return pn(e)&&pn(t)&&Object.keys(t).forEach((o=>{pn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&pn(e[o])?r[o]=hn(e[o],t[o],n):n.clone?r[o]=pn(t[o])?mn(t[o]):t[o]:r[o]=t[o]})),r}function gn(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 vn,bn,yn={exports:{}},xn={};function _n(e){if("string"!=typeof e)throw new Error(gn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function En(e){return e&&e.ownerDocument||document}function Cn(e){return En(e).defaultView||window}function wn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}bn||(bn=1,yn.exports=function(){if(vn)return xn;vn=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case s:case a:case u:case p:case f:case l:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),xn.ContextConsumer=a,xn.ContextProvider=l,xn.Element=t,xn.ForwardRef=u,xn.Fragment=r,xn.Lazy=p,xn.Memo=f,xn.Portal=n,xn.Profiler=i,xn.StrictMode=o,xn.Suspense=c,xn.SuspenseList=d,xn.isAsyncMode=function(){return!1},xn.isConcurrentMode=function(){return!1},xn.isContextConsumer=function(e){return h(e)===a},xn.isContextProvider=function(e){return h(e)===l},xn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xn.isForwardRef=function(e){return h(e)===u},xn.isFragment=function(e){return h(e)===r},xn.isLazy=function(e){return h(e)===p},xn.isMemo=function(e){return h(e)===f},xn.isPortal=function(e){return h(e)===n},xn.isProfiler=function(e){return h(e)===i},xn.isStrictMode=function(e){return h(e)===o},xn.isSuspense=function(e){return h(e)===c},xn.isSuspenseList=function(e){return h(e)===d},xn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===c||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===l||t.$$typeof===a||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},xn.typeOf=h,xn}()),yn.exports;const Sn="undefined"!=typeof window?D.useLayoutEffect:D.useEffect;let kn=0;const Tn=$["useId".toString()];function Nn(e){if(void 0!==Tn){const t=Tn();return null!=e?e:t}return function(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect((()=>{null==t&&(kn+=1,n(`mui-${kn}`))}),[t]),r}(e)}function Rn(e){const t=D.useRef(e);return Sn((()=>{t.current=e})),D.useRef(((...e)=>(0,t.current)(...e))).current}function An(...e){return D.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{wn(e,t)}))}),e)}class On{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new On}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}let Ln=!0,Mn=!1;const Pn=new On,In={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 Dn(e){e.metaKey||e.altKey||e.ctrlKey||(Ln=!0)}function zn(){Ln=!1}function $n(){"hidden"===this.visibilityState&&Mn&&(Ln=!0)}function Fn(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ln||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!In[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Bn(){const e=D.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Dn,!0),t.addEventListener("mousedown",zn,!0),t.addEventListener("pointerdown",zn,!0),t.addEventListener("touchstart",zn,!0),t.addEventListener("visibilitychange",$n,!0))}),[]),t=D.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Fn(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Mn=!0,Pn.start(100,(()=>{Mn=!1})),t.current=!1,!0)},ref:e}}function Hn(e,t){const n=fn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=fn({},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]=fn({},i),Object.keys(o).forEach((e=>{n[r][e]=Hn(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function jn(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}const Wn=e=>e,Kn=(()=>{let e=Wn;return{configure(t){e=t},generate:t=>e(t),reset(){e=Wn}}})(),Un={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 Gn(e,t,n="Mui"){const r=Un[t];return r?`${n}-${r}`:`${Kn.generate(e)}-${t}`}function Yn(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Gn(e,t,n)})),r}function Vn(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Qn(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=Qn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Qn(e))&&(r&&(r+=" "),r+=t);return r}var Xn="$$material";function Jn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Zn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,er=Jn((function(e){return Zn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var tr=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}(),nr="-ms-",rr="-moz-",or="-webkit-",ir="comm",lr="rule",ar="decl",sr="@keyframes",ur=Math.abs,cr=String.fromCharCode,dr=Object.assign;function fr(e){return e.trim()}function pr(e,t,n){return e.replace(t,n)}function mr(e,t){return e.indexOf(t)}function hr(e,t){return 0|e.charCodeAt(t)}function gr(e,t,n){return e.slice(t,n)}function vr(e){return e.length}function br(e){return e.length}function yr(e,t){return t.push(e),e}var xr=1,_r=1,Er=0,Cr=0,wr=0,Sr="";function kr(e,t,n,r,o,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:xr,column:_r,length:l,return:""}}function Tr(e,t){return dr(kr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Nr(){return wr=Cr>0?hr(Sr,--Cr):0,_r--,10===wr&&(_r=1,xr--),wr}function Rr(){return wr=Cr<Er?hr(Sr,Cr++):0,_r++,10===wr&&(_r=1,xr++),wr}function Ar(){return hr(Sr,Cr)}function Or(){return Cr}function Lr(e,t){return gr(Sr,e,t)}function Mr(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 Pr(e){return xr=_r=1,Er=vr(Sr=e),Cr=0,[]}function Ir(e){return Sr="",e}function Dr(e){return fr(Lr(Cr-1,Fr(91===e?e+2:40===e?e+1:e)))}function zr(e){for(;(wr=Ar())&&wr<33;)Rr();return Mr(e)>2||Mr(wr)>3?"":" "}function $r(e,t){for(;--t&&Rr()&&!(wr<48||wr>102||wr>57&&wr<65||wr>70&&wr<97););return Lr(e,Or()+(t<6&&32==Ar()&&32==Rr()))}function Fr(e){for(;Rr();)switch(wr){case e:return Cr;case 34:case 39:34!==e&&39!==e&&Fr(wr);break;case 40:41===e&&Fr(e);break;case 92:Rr()}return Cr}function Br(e,t){for(;Rr()&&e+wr!==57&&(e+wr!==84||47!==Ar()););return"/*"+Lr(t,Cr-1)+"*"+cr(47===e?e:Rr())}function Hr(e){for(;!Mr(Ar());)Rr();return Lr(e,Cr)}function jr(e){return Ir(Wr("",null,null,null,[""],e=Pr(e),0,[0],e))}function Wr(e,t,n,r,o,i,l,a,s){for(var u=0,c=0,d=l,f=0,p=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,_=i,E=r,C=y;g;)switch(m=b,b=Rr()){case 40:if(108!=m&&58==hr(C,d-1)){-1!=mr(C+=pr(Dr(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=Dr(b);break;case 9:case 10:case 13:case 32:C+=zr(m);break;case 92:C+=$r(Or()-1,7);continue;case 47:switch(Ar()){case 42:case 47:yr(Ur(Br(Rr(),Or()),t,n),s);break;default:C+="/"}break;case 123*h:a[u++]=vr(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=pr(C,/\f/g,"")),p>0&&vr(C)-d&&yr(p>32?Gr(C+";",r,n,d-1):Gr(pr(C," ","")+";",r,n,d-2),s);break;case 59:C+=";";default:if(yr(E=Kr(C,t,n,u,c,o,a,y,x=[],_=[],d),i),123===b)if(0===c)Wr(C,t,E,E,x,i,d,a,_);else switch(99===f&&110===hr(C,3)?100:f){case 100:case 108:case 109:case 115:Wr(e,E,E,r&&yr(Kr(e,E,E,0,0,o,a,y,o,x=[],d),_),o,_,d,a,r?x:_);break;default:Wr(C,E,E,E,[""],_,0,a,_)}}u=c=p=0,h=v=1,y=C="",d=l;break;case 58:d=1+vr(C),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Nr())continue;switch(C+=cr(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:a[u++]=(vr(C)-1)*v,v=1;break;case 64:45===Ar()&&(C+=Dr(Rr())),f=Ar(),c=d=vr(y=C+=Hr(Or())),b++;break;case 45:45===m&&2==vr(C)&&(h=0)}}return i}function Kr(e,t,n,r,o,i,l,a,s,u,c){for(var d=o-1,f=0===o?i:[""],p=br(f),m=0,h=0,g=0;m<r;++m)for(var v=0,b=gr(e,d+1,d=ur(h=l[m])),y=e;v<p;++v)(y=fr(h>0?f[v]+" "+b:pr(b,/&\f/g,f[v])))&&(s[g++]=y);return kr(e,t,n,0===o?lr:a,s,u,c)}function Ur(e,t,n){return kr(e,t,n,ir,cr(wr),gr(e,2,-2),0)}function Gr(e,t,n,r){return kr(e,t,n,ar,gr(e,0,r),gr(e,r+1,-1),r)}function Yr(e,t){for(var n="",r=br(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Vr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ar:return e.return=e.return||e.value;case ir:return"";case sr:return e.return=e.value+"{"+Yr(e.children,r)+"}";case lr:e.value=e.props.join(",")}return vr(n=Yr(e.children,r))?e.return=e.value+"{"+n+"}":""}var Qr=function(e,t,n){for(var r=0,o=0;r=o,o=Ar(),38===r&&12===o&&(t[n]=1),!Mr(o);)Rr();return Lr(e,Cr)},qr=function(e,t){return Ir(function(e,t){var n=-1,r=44;do{switch(Mr(r)){case 0:38===r&&12===Ar()&&(t[n]=1),e[n]+=Qr(Cr-1,t,n);break;case 2:e[n]+=Dr(r);break;case 4:if(44===r){e[++n]=58===Ar()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=cr(r)}}while(r=Rr());return e}(Pr(e),t))},Xr=new WeakMap,Jr=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)||Xr.get(n))&&!r){Xr.set(e,!0);for(var o=[],i=qr(t,o),l=n.props,a=0,s=0;a<i.length;a++)for(var u=0;u<l.length;u++,s++)e.props[s]=o[a]?i[a].replace(/&\f/g,l[u]):l[u]+" "+i[a]}}},Zr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function eo(e,t){switch(function(e,t){return 45^hr(e,0)?(((t<<2^hr(e,0))<<2^hr(e,1))<<2^hr(e,2))<<2^hr(e,3):0}(e,t)){case 5103:return or+"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 or+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return or+e+rr+e+nr+e+e;case 6828:case 4268:return or+e+nr+e+e;case 6165:return or+e+nr+"flex-"+e+e;case 5187:return or+e+pr(e,/(\w+).+(:[^]+)/,or+"box-$1$2"+nr+"flex-$1$2")+e;case 5443:return or+e+nr+"flex-item-"+pr(e,/flex-|-self/,"")+e;case 4675:return or+e+nr+"flex-line-pack"+pr(e,/align-content|flex-|-self/,"")+e;case 5548:return or+e+nr+pr(e,"shrink","negative")+e;case 5292:return or+e+nr+pr(e,"basis","preferred-size")+e;case 6060:return or+"box-"+pr(e,"-grow","")+or+e+nr+pr(e,"grow","positive")+e;case 4554:return or+pr(e,/([^-])(transform)/g,"$1"+or+"$2")+e;case 6187:return pr(pr(pr(e,/(zoom-|grab)/,or+"$1"),/(image-set)/,or+"$1"),e,"")+e;case 5495:case 3959:return pr(e,/(image-set\([^]*)/,or+"$1$`$1");case 4968:return pr(pr(e,/(.+:)(flex-)?(.*)/,or+"box-pack:$3"+nr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+or+e+e;case 4095:case 3583:case 4068:case 2532:return pr(e,/(.+)-inline(.+)/,or+"$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(vr(e)-1-t>6)switch(hr(e,t+1)){case 109:if(45!==hr(e,t+4))break;case 102:return pr(e,/(.+:)(.+)-([^]+)/,"$1"+or+"$2-$3$1"+rr+(108==hr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~mr(e,"stretch")?eo(pr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==hr(e,t+1))break;case 6444:switch(hr(e,vr(e)-3-(~mr(e,"!important")&&10))){case 107:return pr(e,":",":"+or)+e;case 101:return pr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+or+(45===hr(e,14)?"inline-":"")+"box$3$1"+or+"$2$3$1"+nr+"$2box$3")+e}break;case 5936:switch(hr(e,t+11)){case 114:return or+e+nr+pr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return or+e+nr+pr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return or+e+nr+pr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return or+e+nr+e+e}return e}var to,no,ro,oo,io=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ar:e.return=eo(e.value,e.length);break;case sr:return Yr([Tr(e,{value:pr(e.value,"@","@"+or)})],r);case lr: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 Yr([Tr(e,{props:[pr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Yr([Tr(e,{props:[pr(t,/:(plac\w+)/,":"+or+"input-$1")]}),Tr(e,{props:[pr(t,/:(plac\w+)/,":-moz-$1")]}),Tr(e,{props:[pr(t,/:(plac\w+)/,nr+"input-$1")]})],r)}return""}))}}],lo=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||io,l={},a=[];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++)l[t[n]]=!0;a.push(e)}));var s,u,c=[Vr,(u=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=br(e);return function(n,r,o,i){for(var l="",a=0;a<t;a++)l+=e[a](n,r,o,i)||"";return l}}([Jr,Zr].concat(i,c));o=function(e,t,n,r){s=n,function(e){Yr(jr(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new tr({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:o};return f.sheet.hydrate(a),f},ao={exports:{}},so={};function uo(){return no||(no=1,ao.exports=function(){if(to)return so;to=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,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case s:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case a:case c:case m:case p:case l:return e;default:return f}}case n:return f}}}function x(e){return y(e)===u}return so.AsyncMode=s,so.ConcurrentMode=u,so.ContextConsumer=a,so.ContextProvider=l,so.Element=t,so.ForwardRef=c,so.Fragment=r,so.Lazy=m,so.Memo=p,so.Portal=n,so.Profiler=i,so.StrictMode=o,so.Suspense=d,so.isAsyncMode=function(e){return x(e)||y(e)===s},so.isConcurrentMode=x,so.isContextConsumer=function(e){return y(e)===a},so.isContextProvider=function(e){return y(e)===l},so.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},so.isForwardRef=function(e){return y(e)===c},so.isFragment=function(e){return y(e)===r},so.isLazy=function(e){return y(e)===m},so.isMemo=function(e){return y(e)===p},so.isPortal=function(e){return y(e)===n},so.isProfiler=function(e){return y(e)===i},so.isStrictMode=function(e){return y(e)===o},so.isSuspense=function(e){return y(e)===d},so.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===m||e.$$typeof===p||e.$$typeof===l||e.$$typeof===a||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===h)},so.typeOf=y,so}()),ao.exports}!function(){if(oo)return ro;oo=1;var e=uo(),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 l=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;ro=function e(t,r,o){if("string"!=typeof r){if(d){var f=c(r);f&&f!==d&&e(t,f,o)}var p=a(r);s&&(p=p.concat(s(r)));for(var m=i(t),h=i(r),g=0;g<p.length;++g){var v=p[g];if(!(n[v]||o&&o[v]||h&&h[v]||m&&m[v])){var b=u(r,v);try{l(t,v,b)}catch(e){}}}}return t}}();var co=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},fo=function(e,t,n){co(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 po={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},mo=/[A-Z]|^ms/g,ho=/_EMO_([^_]+?)_([^]*?)_EMO_/g,go=function(e){return 45===e.charCodeAt(1)},vo=function(e){return null!=e&&"boolean"!=typeof e},bo=Jn((function(e){return go(e)?e:e.replace(mo,"-$&").toLowerCase()})),yo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ho,(function(e,t,n){return _o={name:t,styles:n,next:_o},t}))}return 1===po[e]||go(e)||"number"!=typeof t||0===t?t:t+"px"};function xo(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 _o={name:o.name,styles:o.styles,next:_o},o.name;var i=n;if(void 0!==i.styles){var l=i.next;if(void 0!==l)for(;void 0!==l;)_o={name:l.name,styles:l.styles,next:_o},l=l.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=xo(e,t,n[o])+";";else for(var i in n){var l=n[i];if("object"!=typeof l){var a=l;null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":vo(a)&&(r+=bo(i)+":"+yo(i,a)+";")}else if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var s=xo(e,t,l);switch(i){case"animation":case"animationName":r+=bo(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<l.length;u++)vo(l[u])&&(r+=bo(i)+":"+yo(i,l[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=_o,s=n(e);return _o=a,xo(e,t,s)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var _o,Eo=/label:\s*([^\s;{]+)\s*(;|$)/g;function Co(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="";_o=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=xo(n,t,i)):o+=i[0];for(var l=1;l<e.length;l++){if(o+=xo(n,t,e[l]),r)o+=i[l]}Eo.lastIndex=0;for(var a,s="";null!==(a=Eo.exec(o));)s+="-"+a[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)+s;return{name:u,styles:o,next:_o}}var wo=!!$.useInsertionEffect&&$.useInsertionEffect,So=wo||function(e){return e()},ko=wo||D.useLayoutEffect,To=D.createContext("undefined"!=typeof HTMLElement?lo({key:"css"}):null);To.Provider;var No=function(e){return D.forwardRef((function(t,n){var r=D.useContext(To);return e(t,r,n)}))},Ro=D.createContext({}),Ao=No((function(e,t){var n=Co([e.styles],void 0,D.useContext(Ro)),r=D.useRef();return ko((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,l=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==l&&(i=!0,l.setAttribute("data-emotion",e),o.hydrate([l])),r.current=[o,i],function(){o.flush()}}),[t]),ko((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&fo(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 Oo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Co(t)}var Lo=function(){var e=Oo.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_"}}},Mo=er,Po=function(e){return"theme"!==e},Io=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Mo:Po},Do=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},zo=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return co(t,n,r),So((function(){return fo(t,n,r)})),null},$o=function e(t,n){var r,o,i=t.__emotion_real===t,l=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var a=Do(t,n,i),s=a||Io(l),u=!s("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;p<f;p++)d.push(c[p],c[0][p])}var m=No((function(e,t,n){var r,i,c,f,p=u&&e.as||l,m="",h=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=D.useContext(Ro)}"string"==typeof e.className?(r=t.registered,i=h,c=e.className,f="",c.split(" ").forEach((function(e){void 0!==r[e]?i.push(r[e]+";"):e&&(f+=e+" ")})),m=f):null!=e.className&&(m=e.className+" ");var b=Co(d.concat(h),t.registered,g);m+=t.key+"-"+b.name,void 0!==o&&(m+=" "+o);var y=u&&void 0===a?Io(p):s,x={};for(var _ in e)u&&"as"===_||y(_)&&(x[_]=e[_]);return x.className=m,x.ref=n,D.createElement(D.Fragment,null,D.createElement(zo,{cache:t,serialized:b,isStringTag:"string"==typeof p}),D.createElement(p,x))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=l,m.__emotion_styles=d,m.__emotion_forwardProp=a,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,fn({},n,r,{shouldForwardProp:Do(m,r,!0)})).apply(void 0,d)},m}}.bind();["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){$o[e]=$o(e)}));var Fo,Bo,Ho={exports:{}},jo={};var Wo=(Bo||(Bo=1,Ho.exports=function(){if(Fo)return jo;Fo=1;var e=w(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(e,n,l){var a,s={},u=null,c=null;for(a in void 0!==l&&(u=""+l),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,a)&&!i.hasOwnProperty(a)&&(s[a]=n[a]);if(e&&e.defaultProps)for(a in n=e.defaultProps)void 0===s[a]&&(s[a]=n[a]);return{$$typeof:t,type:e,key:u,ref:c,props:s,_owner:o.current}}return jo.Fragment=n,jo.jsx=l,jo.jsxs=l,jo}()),Ho.exports);function Ko(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 Wo.jsx(Ao,{styles:r})}
36
17
  /**
37
18
  * @mui/styled-engine v5.16.6
38
19
  *
39
20
  * @license MIT
40
21
  * This source code is licensed under the MIT license found in the
41
22
  * LICENSE file in the root directory of this source tree.
42
- */function pC(e,t){return tC(e,t)}const mC=["values","unit","step"];function hC(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=$x(e,mC),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)=>Wy({},e,{[t.key]:t.val})),{})})(t),l=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=l.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:o)-r/100}${n})`}return Wy({keys:l,values:i,up:a,down:s,between:u,only:function(e){return l.indexOf(e)+1<l.length?u(e,l[l.indexOf(e)+1]):a(e)},not:function(e){const t=l.indexOf(e);return 0===t?a(l[1]):t===l.length-1?s(l[t]):u(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const gC={borderRadius:4};function vC(e,t){return t?Gy(e,t,{clone:!1}):e}const bC={xs:0,sm:600,md:900,lg:1200,xl:1536},yC={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bC[e]}px)`};function xC(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||yC;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||yC;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||bC).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function _C(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function EC(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function CC({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 wC(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 SC(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:wC(e,n)||r,t&&(o=t(o,r,e)),o}function kC(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],l=wC(e.theme,r)||{};return xC(e,i,(e=>{let r=SC(l,o,e);return e===r&&"string"==typeof e&&(r=SC(l,o,`${t}${"default"===e?"":dx(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const TC={m:"margin",p:"padding"},NC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},RC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},AC=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!RC[e])return[e];e=RC[e]}const[t,n]=e.split(""),r=TC[t],o=NC[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),OC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],LC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function MC(e,t,n,r){var o;const i=null!=(o=wC(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 PC(e){return MC(e,"spacing",8)}function IC(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 DC(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=IC(t,n),e)),{})}(AC(n),r);return xC(e,e[n],o)}function zC(e,t){const n=PC(e.theme);return Object.keys(e).map((r=>DC(e,t,r,n))).reduce(vC,{})}function $C(e){return zC(e,OC)}function FC(e){return zC(e,LC)}function BC(...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]?vC(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function HC(e){return"number"!=typeof e?e:`${e}px solid`}function jC(e,t){return kC({prop:e,themeKey:"borders",transform:t})}$C.propTypes={},$C.filterProps=OC,FC.propTypes={},FC.filterProps=LC;const WC=jC("border",HC),KC=jC("borderTop",HC),UC=jC("borderRight",HC),GC=jC("borderBottom",HC),YC=jC("borderLeft",HC),VC=jC("borderColor"),QC=jC("borderTopColor"),qC=jC("borderRightColor"),XC=jC("borderBottomColor"),JC=jC("borderLeftColor"),ZC=jC("outline",HC),ew=jC("outlineColor"),tw=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=MC(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:IC(t,e)});return xC(e,e.borderRadius,n)}return null};tw.propTypes={},tw.filterProps=["borderRadius"],BC(WC,KC,UC,GC,YC,VC,QC,qC,XC,JC,tw,ZC,ew);const nw=e=>{if(void 0!==e.gap&&null!==e.gap){const t=MC(e.theme,"spacing",8),n=e=>({gap:IC(t,e)});return xC(e,e.gap,n)}return null};nw.propTypes={},nw.filterProps=["gap"];const rw=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=MC(e.theme,"spacing",8),n=e=>({columnGap:IC(t,e)});return xC(e,e.columnGap,n)}return null};rw.propTypes={},rw.filterProps=["columnGap"];const ow=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=MC(e.theme,"spacing",8),n=e=>({rowGap:IC(t,e)});return xC(e,e.rowGap,n)}return null};ow.propTypes={},ow.filterProps=["rowGap"];function iw(e,t){return"grey"===t?t:e}BC(nw,rw,ow,kC({prop:"gridColumn"}),kC({prop:"gridRow"}),kC({prop:"gridAutoFlow"}),kC({prop:"gridAutoColumns"}),kC({prop:"gridAutoRows"}),kC({prop:"gridTemplateColumns"}),kC({prop:"gridTemplateRows"}),kC({prop:"gridTemplateAreas"}),kC({prop:"gridArea"}));function lw(e){return e<=1&&0!==e?100*e+"%":e}BC(kC({prop:"color",themeKey:"palette",transform:iw}),kC({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:iw}),kC({prop:"backgroundColor",themeKey:"palette",transform:iw}));const aw=kC({prop:"width",transform:lw}),sw=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])||bC[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:lw(t)}};return xC(e,e.maxWidth,t)}return null};sw.filterProps=["maxWidth"];const uw=kC({prop:"minWidth",transform:lw}),cw=kC({prop:"height",transform:lw}),dw=kC({prop:"maxHeight",transform:lw}),fw=kC({prop:"minHeight",transform:lw});kC({prop:"size",cssProperty:"width",transform:lw}),kC({prop:"size",cssProperty:"height",transform:lw});BC(aw,sw,uw,cw,dw,fw,kC({prop:"boxSizing"}));const pw={border:{themeKey:"borders",transform:HC},borderTop:{themeKey:"borders",transform:HC},borderRight:{themeKey:"borders",transform:HC},borderBottom:{themeKey:"borders",transform:HC},borderLeft:{themeKey:"borders",transform:HC},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:HC},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tw},color:{themeKey:"palette",transform:iw},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:iw},backgroundColor:{themeKey:"palette",transform:iw},p:{style:FC},pt:{style:FC},pr:{style:FC},pb:{style:FC},pl:{style:FC},px:{style:FC},py:{style:FC},padding:{style:FC},paddingTop:{style:FC},paddingRight:{style:FC},paddingBottom:{style:FC},paddingLeft:{style:FC},paddingX:{style:FC},paddingY:{style:FC},paddingInline:{style:FC},paddingInlineStart:{style:FC},paddingInlineEnd:{style:FC},paddingBlock:{style:FC},paddingBlockStart:{style:FC},paddingBlockEnd:{style:FC},m:{style:$C},mt:{style:$C},mr:{style:$C},mb:{style:$C},ml:{style:$C},mx:{style:$C},my:{style:$C},margin:{style:$C},marginTop:{style:$C},marginRight:{style:$C},marginBottom:{style:$C},marginLeft:{style:$C},marginX:{style:$C},marginY:{style:$C},marginInline:{style:$C},marginInlineStart:{style:$C},marginInlineEnd:{style:$C},marginBlock:{style:$C},marginBlockStart:{style:$C},marginBlockEnd:{style:$C},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:nw},rowGap:{style:ow},columnGap:{style:rw},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:lw},maxWidth:{style:sw},minWidth:{transform:lw},height:{transform:lw},maxHeight:{transform:lw},minHeight:{transform:lw},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const mw=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:l=e,themeKey:a,transform:s,style:u}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const c=wC(n,a)||{};if(u)return u(o);return xC(o,t,(t=>{let n=SC(c,s,t);return t===n&&"string"==typeof t&&(n=SC(c,s,`${e}${"default"===t?"":dx(t)}`,t)),!1===l?n:{[l]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const l=null!=(r=i.unstable_sxConfig)?r:pw;function a(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=_C(i.breakpoints),a=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],u=i,"function"==typeof a?a(u):a);var a,u;if(null!=o)if("object"==typeof o)if(l[n])s=vC(s,e(n,o,i,l));else{const e=xC({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)?s=vC(s,e):s[n]=t({sx:o,theme:i})}else s=vC(s,e(n,o,i,l))})),EC(a,s)}return Array.isArray(o)?o.map(a):a(o)}}();function hw(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:{}}mw.filterProps=["sx"];const gw=["breakpoints","palette","spacing","shape"];function vw(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=$x(e,gw),a=hC(n),s=function(e=8){if(e.mui)return e;const t=PC({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=Gy({breakpoints:a,direction:"ltr",components:{},palette:Wy({mode:"light"},r),spacing:s,shape:Wy({},gC,i)},l);return u.applyStyles=hw,u=t.reduce(((e,t)=>Gy(e,t)),u),u.unstable_sxConfig=Wy({},pw,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return mw({sx:e,theme:this})},u}function bw(e=null){const t=J.useContext(UE);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const yw=vw();function xw(e=yw){return bw(e)}function _w({styles:e,themeId:t,defaultTheme:n={}}){const r=xw(n),o="function"==typeof e?e(t&&r[t]||r):e;return dC.jsx(fC,{styles:o})}const Ew=["sx"];function Cw(e){const{sx:t}=e,n=$x(e,Ew),{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:pw;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 Ky(n)?Wy({},r,n):r}:Wy({},r,t),Wy({},o,{sx:i})}const ww=["className","component"];const Sw=["ownerState"],kw=["variants"],Tw=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Nw(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Rw=vw(),Aw=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ow({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Lw(e){return e?(t,n)=>n[e]:null}function Mw(e,t){let{ownerState:n}=t,r=$x(t,Sw);const o="function"==typeof e?e(Wy({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Mw(e,Wy({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=$x(o,kw);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Wy({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Wy({ownerState:n},r,n)):e.style))})),t}return o}function Pw(e={}){const{themeId:t,defaultTheme:n=Rw,rootShouldForwardProp:r=Nw,slotShouldForwardProp:o=Nw}=e,i=e=>mw(Wy({},e,{theme:Ow(Wy({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,l={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Lw(Aw(s))}=l,f=$x(l,Tw),p=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Nw;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=pC(e,Wy({shouldForwardProp:h,label:undefined},f)),v=e=>"function"==typeof e&&e.__emotion_real!==e||Ky(e)?r=>Mw(e,Wy({},r,{theme:Ow({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let l=v(r);const s=o?o.map(v):[];a&&d&&s.push((e=>{const r=Ow(Wy({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[a]||!r.components[a].styleOverrides)return null;const o=r.components[a].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Mw(n,Wy({},e,{theme:r}))})),d(e,i)})),a&&!p&&s.push((e=>{var r;const o=Ow(Wy({},e,{defaultTheme:n,themeId:t}));return Mw({variants:null==o||null==(r=o.components)||null==(r=r[a])?void 0:r.variants},Wy({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");l=[...r,...e],l.raw=[...r.raw,...e]}const c=g(l,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}const Iw=Pw();function Dw({props:e,name:t,defaultTheme:n,themeId:r}){let o=xw(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?Ox(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function zw(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function $w(e){if(e.type)return e;if("#"===e.charAt(0))return $w(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(Yy(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(Yy(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Fw(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 Bw(e){let t="hsl"===(e=$w(e)).type||"hsla"===e.type?$w(function(e){e=$w(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(a+="a",s.push(t[3])),Fw({type:a,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Hw(e,t){return e=$w(e),t=zw(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Fw(e)}const jw=J.createContext(null);function Ww(){return J.useContext(jw)}var Kw="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Uw(e){const{children:t,theme:n}=e,r=Ww(),o=J.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Wy({},e,t)}(r,n);return null!=e&&(e[Kw]=null!==r),e}),[n,r]);return dC.jsx(jw.Provider,{value:o,children:t})}const Gw=["value"],Yw=J.createContext();function Vw(e){let{value:t}=e,n=$x(e,Gw);return dC.jsx(Yw.Provider,Wy({value:null==t||t},n))}const Qw=J.createContext(void 0);function qw({value:e,children:t}){return dC.jsx(Qw.Provider,{value:e,children:t})}const Xw={};function Jw(e,t,n,r=!1){return J.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),l=e?Wy({},t,{[e]:i}):i;return r?()=>l:l}return Wy({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Zw(e){const{children:t,theme:n,themeId:r}=e,o=bw(Xw),i=Ww()||Xw,l=Jw(r,o,n),a=Jw(r,i,n,!0),s="rtl"===l.direction;return dC.jsx(Uw,{theme:a,children:dC.jsx(UE.Provider,{value:l,children:dC.jsx(Vw,{value:s,children:dC.jsx(qw,{value:null==l?void 0:l.components,children:t})})})})}const eS=["component","direction","spacing","divider","children","className","useFlexGap"],tS=vw(),nS=Iw("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function rS(e){return Dw({props:e,name:"MuiStack",defaultTheme:tS})}function oS(e,t){const n=J.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(J.cloneElement(t,{key:`separator-${o}`})),e)),[])}const iS=({ownerState:e,theme:t})=>{let n=Wy({display:"flex",flexDirection:"column"},xC({theme:t},CC({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=PC(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=CC({values:e.direction,base:o}),l=CC({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=Gy(n,xC({theme:t},l,((t,n)=>{return e.useFlexGap?{gap:IC(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]}`]:IC(r,t)}};var o})))}return n=function(e,...t){const n=_C(e),r=[n,...t].reduce(((e,t)=>Gy(e,t)),{});return EC(Object.keys(n),r)}(t.breakpoints,n),n};const lS=["mode","contrastThreshold","tonalOffset"],aS={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:uy.white,default:uy.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}},sS={text:{primary:uy.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:uy.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 uS(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=function(e,t){if(e=$w(e),t=zw(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 Fw(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=$w(e),t=zw(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 Fw(e)}(e.main,i)))}function cS(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=$x(e,lS),i=e.primary||function(e="light"){return"dark"===e?{main:Ey,light:_y,dark:Cy}:{main:wy,light:Cy,dark:Sy}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:gy,light:hy,dark:by}:{main:yy,light:vy,dark:xy}}(t),a=e.error||function(e="light"){return"dark"===e?{main:fy,light:cy,dark:py}:{main:py,light:dy,dark:my}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ty,light:ky,dark:Ry}:{main:Ry,light:Ny,dark:Ay}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ly,light:Oy,dark:Py}:{main:Iy,light:My,dark:Dy}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:$y,light:zy,dark:By}:{main:"#ed6c02",light:Fy,dark:Hy}}(t);function d(e){const t=function(e,t){const n=Bw(e),r=Bw(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,sS.text.primary)>=n?sS.text.primary:aS.text.primary;return t}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Wy({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Yy(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Yy(12,t?` (${t})`:"",JSON.stringify(e.main)));return uS(e,"light",o,r),uS(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:sS,light:aS};return Gy(Wy({common:Wy({},uy),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:jy,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const dS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const fS={textTransform:"uppercase"},pS='"Roboto", "Helvetica", "Arial", sans-serif';function mS(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=pS,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=$x(n,dS),p=o/14,m=d||(e=>e/u*p+"rem"),h=(e,t,n,o,i)=>{return Wy({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===pS?{letterSpacing:(l=o/t,Math.round(1e5*l)/1e5)+"em"}:{},i,c);var l},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(l,48,1.167,0),h4:h(l,34,1.235,.25),h5:h(l,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(l,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(l,16,1.5,.15),body2:h(l,14,1.43,.15),button:h(a,14,1.75,.4,fS),caption:h(l,12,1.66,.4),overline:h(l,12,2.66,1,fS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gy(Wy({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:s},g),f,{clone:!1})}function hS(...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 gS=["none",hS(0,2,1,-1,0,1,1,0,0,1,3,0),hS(0,3,1,-2,0,2,2,0,0,1,5,0),hS(0,3,3,-2,0,3,4,0,0,1,8,0),hS(0,2,4,-1,0,4,5,0,0,1,10,0),hS(0,3,5,-1,0,5,8,0,0,1,14,0),hS(0,3,5,-1,0,6,10,0,0,1,18,0),hS(0,4,5,-2,0,7,10,1,0,2,16,1),hS(0,5,5,-3,0,8,10,1,0,3,14,2),hS(0,5,6,-3,0,9,12,1,0,3,16,2),hS(0,6,6,-3,0,10,14,1,0,4,18,3),hS(0,6,7,-4,0,11,15,1,0,4,20,3),hS(0,7,8,-4,0,12,17,2,0,5,22,4),hS(0,7,8,-4,0,13,19,2,0,5,24,4),hS(0,7,9,-4,0,14,21,2,0,5,26,4),hS(0,8,9,-5,0,15,22,2,0,6,28,5),hS(0,8,10,-5,0,16,24,2,0,6,30,5),hS(0,8,11,-5,0,17,26,2,0,6,32,5),hS(0,9,11,-5,0,18,28,2,0,7,34,6),hS(0,9,12,-6,0,19,29,2,0,7,36,6),hS(0,10,13,-6,0,20,31,3,0,8,38,7),hS(0,10,13,-6,0,21,33,3,0,8,40,7),hS(0,10,14,-6,0,22,35,3,0,8,42,7),hS(0,11,14,-7,0,23,36,3,0,9,44,8),hS(0,11,15,-7,0,24,38,3,0,9,46,8)],vS=["duration","easing","delay"],bS={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)"},yS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xS(e){return`${Math.round(e)}ms`}function _S(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ES(e){const t=Wy({},bS,e.easing),n=Wy({},yS,e.duration);return Wy({getAutoHeightDuration:_S,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:l=0}=r;return $x(r,vS),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:xS(o)} ${i} ${"string"==typeof l?l:xS(l)}`)).join(",")}},e,{easing:t,duration:n})}const CS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},wS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function SS(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=$x(e,wS);if(e.vars)throw new Error(Yy(18));const a=cS(r),s=vw(e);let u=Gy(s,{mixins:(c=s.breakpoints,d=n,Wy({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:a,shadows:gS.slice(),typography:mS(a,i),transitions:ES(o),zIndex:Wy({},CS)});var c,d;return u=Gy(u,l),u=t.reduce(((e,t)=>Gy(e,t)),u),u.unstable_sxConfig=Wy({},pw,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return mw({sx:e,theme:this})},u}const kS=SS();function TS(){const e=xw(kS);return e[Hx]||e}function NS({props:e,name:t}){return Dw({props:e,name:t,defaultTheme:kS,themeId:Hx})}const RS=e=>Nw(e)&&"classes"!==e,AS=Pw({themeId:Hx,defaultTheme:kS,rootShouldForwardProp:RS}),OS=["theme"];function LS(e){let{theme:t}=e,n=$x(e,OS);const r=t[Hx];return dC.jsx(Zw,Wy({},n,{themeId:r?Hx:void 0,theme:r||t}))}const MS=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function PS(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=PS(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function IS(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=PS(e))&&(r&&(r+=" "),r+=t);return r}function DS(e){return"string"==typeof e}function zS(e,t,n){return void 0===e||DS(e)?t:Wy({},t,{ownerState:Wy({},t.ownerState,n)})}const $S={disableDefaultClasses:!1},FS=J.createContext($S);function BS(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 HS(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=IS(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=Wy({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),l=Wy({},n,o,r);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=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}(Wy({},o,r)),a=BS(r),s=BS(o),u=t(l),c=IS(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=Wy({},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=Wy({},u,n,s,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const jS=["elementType","externalSlotProps","ownerState"];function WS(e){return e.substring(2).toLowerCase()}function KS(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,l=J.useRef(!1),a=J.useRef(null),s=J.useRef(!1),u=J.useRef(!1);J.useEffect((()=>(setTimeout((()=>{s.current=!0}),0),()=>{s.current=!1})),[]);const c=xx(t.ref,a),d=yx((e=>{const t=u.current;u.current=!1;const r=fx(a.current);if(!s.current||!a.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(l.current)return void(l.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(a.current)>-1:!r.documentElement.contains(e.target)||a.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)),J.useEffect((()=>{if(!1!==i){const e=WS(i),t=fx(a.current),n=()=>{l.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)),J.useEffect((()=>{if(!1!==r){const e=WS(r),t=fx(a.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}}),[d,r]),dC.jsx(J.Fragment,{children:J.cloneElement(t,p)})}var US="top",GS="bottom",YS="right",VS="left",QS="auto",qS=[US,GS,YS,VS],XS="start",JS="end",ZS="viewport",ek="popper",tk=qS.reduce((function(e,t){return e.concat([t+"-"+XS,t+"-"+JS])}),[]),nk=[].concat(qS,[QS]).reduce((function(e,t){return e.concat([t,t+"-"+XS,t+"-"+JS])}),[]),rk=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ok(e){return e?(e.nodeName||"").toLowerCase():null}function ik(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lk(e){return e instanceof ik(e).Element||e instanceof Element}function ak(e){return e instanceof ik(e).HTMLElement||e instanceof HTMLElement}function sk(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ik(e).ShadowRoot||e instanceof ShadowRoot)}var uk={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];ak(o)&&ok(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}),{});ak(r)&&ok(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ck(e){return e.split("-")[0]}var dk=Math.max,fk=Math.min,pk=Math.round;function mk(){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 hk(){return!/^((?!chrome|android).)*safari/i.test(mk())}function gk(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&ak(e)&&(o=e.offsetWidth>0&&pk(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&pk(r.height)/e.offsetHeight||1);var l=(lk(e)?ik(e):window).visualViewport,a=!hk()&&n,s=(r.left+(a&&l?l.offsetLeft:0))/o,u=(r.top+(a&&l?l.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function vk(e){var t=gk(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 bk(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yk(e){return ik(e).getComputedStyle(e)}function xk(e){return["table","td","th"].indexOf(ok(e))>=0}function _k(e){return((lk(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ek(e){return"html"===ok(e)?e:e.assignedSlot||e.parentNode||(sk(e)?e.host:null)||_k(e)}function Ck(e){return ak(e)&&"fixed"!==yk(e).position?e.offsetParent:null}function wk(e){for(var t=ik(e),n=Ck(e);n&&xk(n)&&"static"===yk(n).position;)n=Ck(n);return n&&("html"===ok(n)||"body"===ok(n)&&"static"===yk(n).position)?t:n||function(e){var t=/firefox/i.test(mk());if(/Trident/i.test(mk())&&ak(e)&&"fixed"===yk(e).position)return null;var n=Ek(e);for(sk(n)&&(n=n.host);ak(n)&&["html","body"].indexOf(ok(n))<0;){var r=yk(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 Sk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kk(e,t,n){return dk(e,fk(t,n))}function Tk(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Nk(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Rk={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=ck(n.placement),s=Sk(a),u=[VS,YS].indexOf(a)>=0?"height":"width";if(i&&l){var c=function(e,t){return Tk("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Nk(e,qS))}(o.padding,n),d=vk(i),f="y"===s?US:VS,p="y"===s?GS:YS,m=n.rects.reference[u]+n.rects.reference[s]-l[s]-n.rects.popper[u],h=l[s]-n.rects.reference[s],g=wk(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=c[f],x=v-d[u]-c[p],_=v/2-d[u]/2+b,E=kk(y,_,x),C=s;n.modifiersData[r]=((t={})[C]=E,t.centerOffset=E-_,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)))&&bk(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ak(e){return e.split("-")[1]}var Ok={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Lk(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=l.x,p=void 0===f?0:f,m=l.y,h=void 0===m?0:m,g="function"==typeof c?c({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=l.hasOwnProperty("x"),b=l.hasOwnProperty("y"),y=VS,x=US,_=window;if(u){var E=wk(n),C="clientHeight",w="clientWidth";if(E===ik(n)&&"static"!==yk(E=_k(n)).position&&"absolute"===a&&(C="scrollHeight",w="scrollWidth"),o===US||(o===VS||o===YS)&&i===JS)x=GS,h-=(d&&E===_&&_.visualViewport?_.visualViewport.height:E[C])-r.height,h*=s?1:-1;if(o===VS||(o===US||o===GS)&&i===JS)y=YS,p-=(d&&E===_&&_.visualViewport?_.visualViewport.width:E[w])-r.width,p*=s?1:-1}var S,k=Object.assign({position:a},u&&Ok),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:pk(n*o)/o||0,y:pk(r*o)/o||0}}({x:p,y:h},ik(n)):{x:p,y:h};return p=T.x,h=T.y,s?Object.assign({},k,((S={})[x]=b?"0":"",S[y]=v?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},k,((t={})[x]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var Mk={passive:!0};var Pk={left:"right",right:"left",bottom:"top",top:"bottom"};function Ik(e){return e.replace(/left|right|bottom|top/g,(function(e){return Pk[e]}))}var Dk={start:"end",end:"start"};function zk(e){return e.replace(/start|end/g,(function(e){return Dk[e]}))}function $k(e){var t=ik(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fk(e){return gk(_k(e)).left+$k(e).scrollLeft}function Bk(e){var t=yk(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Hk(e){return["html","body","#document"].indexOf(ok(e))>=0?e.ownerDocument.body:ak(e)&&Bk(e)?e:Hk(Ek(e))}function jk(e,t){var n;void 0===t&&(t=[]);var r=Hk(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ik(r),l=o?[i].concat(i.visualViewport||[],Bk(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(jk(Ek(l)))}function Wk(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kk(e,t,n){return t===ZS?Wk(function(e,t){var n=ik(e),r=_k(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;var u=hk();(u||!u&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a+Fk(e),y:s}}(e,n)):lk(t)?function(e,t){var n=gk(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):Wk(function(e){var t,n=_k(e),r=$k(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=dk(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=dk(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Fk(e),s=-r.scrollTop;return"rtl"===yk(o||n).direction&&(a+=dk(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(_k(e)))}function Uk(e,t,n,r){var o="clippingParents"===t?function(e){var t=jk(Ek(e)),n=["absolute","fixed"].indexOf(yk(e).position)>=0&&ak(e)?wk(e):e;return lk(n)?t.filter((function(e){return lk(e)&&bk(e,n)&&"body"!==ok(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),l=i[0],a=i.reduce((function(t,n){var o=Kk(e,n,r);return t.top=dk(o.top,t.top),t.right=fk(o.right,t.right),t.bottom=fk(o.bottom,t.bottom),t.left=dk(o.left,t.left),t}),Kk(e,l,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Gk(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?ck(o):null,l=o?Ak(o):null,a=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case US:t={x:a,y:n.y-r.height};break;case GS:t={x:a,y:n.y+n.height};break;case YS:t={x:n.x+n.width,y:s};break;case VS:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Sk(i):null;if(null!=u){var c="y"===u?"height":"width";switch(l){case XS:t[u]=t[u]-(n[c]/2-r[c]/2);break;case JS:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function Yk(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,l=void 0===i?e.strategy:i,a=n.boundary,s=void 0===a?"clippingParents":a,u=n.rootBoundary,c=void 0===u?ZS:u,d=n.elementContext,f=void 0===d?ek:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=Tk("number"!=typeof g?g:Nk(g,qS)),b=f===ek?"reference":ek,y=e.rects.popper,x=e.elements[m?b:f],_=Uk(lk(x)?x:x.contextElement||_k(e.elements.popper),s,c,l),E=gk(e.elements.reference),C=Gk({reference:E,element:y,strategy:"absolute",placement:o}),w=Wk(Object.assign({},y,C)),S=f===ek?w:E,k={top:_.top-S.top+v.top,bottom:S.bottom-_.bottom+v.bottom,left:_.left-S.left+v.left,right:S.right-_.right+v.right},T=e.modifiersData.offset;if(f===ek&&T){var N=T[o];Object.keys(k).forEach((function(e){var t=[YS,GS].indexOf(e)>=0?1:-1,n=[US,GS].indexOf(e)>=0?"y":"x";k[e]+=N[n]*t}))}return k}function Vk(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?nk:s,c=Ak(r),d=c?a?tk:tk.filter((function(e){return Ak(e)===c})):qS,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]=Yk(e,{placement:n,boundary:o,rootBoundary:i,padding:l})[ck(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var Qk={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,l=n.altAxis,a=void 0===l||l,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,v=ck(g),b=s||(v===g||!m?[Ik(g)]:function(e){if(ck(e)===QS)return[];var t=Ik(e);return[zk(e),t,zk(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(ck(n)===QS?Vk(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),x=t.rects.reference,_=t.rects.popper,E=new Map,C=!0,w=y[0],S=0;S<y.length;S++){var k=y[S],T=ck(k),N=Ak(k)===XS,R=[US,GS].indexOf(T)>=0,A=R?"width":"height",O=Yk(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),L=R?N?YS:VS:N?GS:US;x[A]>_[A]&&(L=Ik(L));var M=Ik(L),P=[];if(i&&P.push(O[T]<=0),a&&P.push(O[L]<=0,O[M]<=0),P.every((function(e){return e}))){w=k,C=!1;break}E.set(k,P)}if(C)for(var I=function(e){var t=y.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return w=t,"break"},D=m?3:1;D>0;D--){if("break"===I(D))break}t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qk(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 Xk(e){return[US,YS,GS,VS].some((function(t){return e[t]>=0}))}var Jk={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,l=nk.reduce((function(e,n){return e[n]=function(e,t,n){var r=ck(e),o=[VS,US].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[VS,YS].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}(n,t.rects,i),e}),{}),a=l[t.placement],s=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=l}};var Zk={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,l=n.altAxis,a=void 0!==l&&l,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=Yk(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=ck(t.placement),b=Ak(t.placement),y=!b,x=Sk(v),_="x"===x?"y":"x",E=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(E){if(i){var R,A="y"===x?US:VS,O="y"===x?GS:YS,L="y"===x?"height":"width",M=E[x],P=M+g[A],I=M-g[O],D=p?-w[L]/2:0,z=b===XS?C[L]:w[L],$=b===XS?-w[L]:-C[L],F=t.elements.arrow,B=p&&F?vk(F):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=H[A],W=H[O],K=kk(0,C[L],B[L]),U=y?C[L]/2-D-K-j-k.mainAxis:z-K-j-k.mainAxis,G=y?-C[L]/2+D+K+W+k.mainAxis:$+K+W+k.mainAxis,Y=t.elements.arrow&&wk(t.elements.arrow),V=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,Q=null!=(R=null==T?void 0:T[x])?R:0,q=M+G-Q,X=kk(p?fk(P,M+U-Q-V):P,M,p?dk(I,q):I);E[x]=X,N[x]=X-M}if(a){var J,Z="x"===x?US:VS,ee="x"===x?GS:YS,te=E[_],ne="y"===_?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[US,VS].indexOf(v),le=null!=(J=null==T?void 0:T[_])?J:0,ae=ie?re:te-C[ne]-w[ne]-le+k.altAxis,se=ie?te+C[ne]+w[ne]-le-k.altAxis:oe,ue=p&&ie?function(e,t,n){var r=kk(e,t,n);return r>n?n:r}(ae,te,se):kk(p?ae:re,te,p?se:oe);E[_]=ue,N[_]=ue-te}t.modifiersData[r]=N}},requiresIfExists:["offset"]};function eT(e,t,n){void 0===n&&(n=!1);var r=ak(t),o=ak(t)&&function(e){var t=e.getBoundingClientRect(),n=pk(t.width)/e.offsetWidth||1,r=pk(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=_k(t),l=gk(e,o,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==ok(t)||Bk(i))&&(a=function(e){return e!==ik(e)&&ak(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:$k(e);var t}(t)),ak(t)?((s=gk(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Fk(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function tT(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 nT(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var rT={placement:"bottom",modifiers:[],strategy:"absolute"};function oT(){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 iT(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?rT:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},rT,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],a=!1,s={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:lk(e)?jk(e):e.contextElement?jk(e.contextElement):[],popper:jk(t)};var c,d,f=function(e){var t=tT(e);return rk.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 a=i({state:o,name:t,instance:s,options:r}),u=function(){};l.push(a||u)}})),s.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,n=e.popper;if(oT(t,n)){o.rects={reference:eT(t,wk(n),"fixed"===o.options.strategy),popper:vk(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],l=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof l&&(o=l({state:o,options:c,name:d,instance:s})||o)}else o.reset=!1,r=-1}}},update:nT((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){u(),a=!0}};if(!oT(e,t))return s;function u(){l.forEach((function(e){return e()})),l=[]}return s.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var lT=iT({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,l=r.resize,a=void 0===l||l,s=ik(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Mk)})),a&&s.addEventListener("resize",n.update,Mk),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Mk)})),a&&s.removeEventListener("resize",n.update,Mk)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Gk({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",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,l=void 0===i||i,a=n.roundOffsets,s=void 0===a||a,u={placement:ck(t.placement),variation:Ak(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,Lk(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lk(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},uk,Jk,Qk,Zk,Rk,{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,l=Yk(t,{elementContext:"reference"}),a=Yk(t,{altBoundary:!0}),s=qk(l,r),u=qk(a,o,i),c=Xk(s),d=Xk(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});const aT=J.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,l]=J.useState(null),a=xx(J.isValidElement(n)?n.ref:null,t);if(hx((()=>{o||l(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),hx((()=>{if(i&&!o)return mx(t,i),()=>{mx(t,null)}}),[t,i,o]),o){if(J.isValidElement(n)){const e={ref:a};return J.cloneElement(n,e)}return dC.jsx(J.Fragment,{children:n})}return dC.jsx(J.Fragment,{children:i?ld.createPortal(n,i):i})}));function sT(e){return Dx("MuiPopper",e)}zx("MuiPopper",["root"]);const uT=["anchorEl","children","component","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],cT=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function dT(e){return"function"==typeof e?e():e}const fT=()=>Lx({root:["root"]},function(e){const{disableDefaultClasses:t}=J.useContext(FS);return n=>t?"":e(n)}(sT)),pT={},mT=J.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,component:i,direction:l,disablePortal:a,modifiers:s,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:p={},slots:m={},TransitionProps:h}=e,g=$x(e,uT),v=J.useRef(null),b=xx(v,t),y=J.useRef(null),x=xx(y,f),_=J.useRef(x);hx((()=>{_.current=x}),[x]),J.useImperativeHandle(f,(()=>y.current),[]);const E=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}}(c,l),[C,w]=J.useState(E),[S,k]=J.useState(dT(r));J.useEffect((()=>{y.current&&y.current.forceUpdate()})),J.useEffect((()=>{r&&k(dT(r))}),[r]),hx((()=>{if(!S||!u)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{w(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=lT(S,v.current,Wy({placement:E},d,{modifiers:e}));return _.current(t),()=>{t.destroy(),_.current(null)}}),[S,a,s,u,d,E]);const T={placement:C};null!==h&&(T.TransitionProps=h);const N=fT(),R=null!=(n=null!=i?i:m.root)?n:"div",A=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=$x(e,jS),l=function(e,t){return"function"==typeof e?e(t):e}(r,o),{props:a,internalRef:s}=HS(Wy({},i,{externalSlotProps:l}));return zS(n,Wy({},a,{ref:xx(s,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:R,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:N.root});return dC.jsx(R,Wy({},A,{children:"function"==typeof o?o(T):o}))})),hT=J.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:l=!1,keepMounted:a=!1,modifiers:s,open:u,placement:c="bottom",popperOptions:d=pT,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={}}=e,v=$x(e,cT),[b,y]=J.useState(!0);if(!a&&!u&&(!m||b))return null;let x;if(o)x=o;else if(n){const e=dT(n);x=e&&void 0!==e.nodeType?fx(e).body:fx(null).body}const _=u||!a||m&&!b?void 0:"none",E=m?{in:u,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return dC.jsx(aT,{disablePortal:l,container:x,children:dC.jsx(mT,Wy({anchorEl:n,direction:i,disablePortal:l,modifiers:s,ref:t,open:m?!b:u,placement:c,popperOptions:d,popperRef:f,slotProps:h,slots:g},v,{style:Wy({position:"fixed",top:0,left:0,display:_},p),TransitionProps:E,children:r}))})})),gT=["onChange","maxRows","minRows","style","value"];function vT(e){return parseInt(e,10)||0}const bT={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function yT(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const xT=J.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:l}=e,a=$x(e,gT),{current:s}=J.useRef(null!=l),u=J.useRef(null),c=xx(t,u),d=J.useRef(null),f=J.useRef(0),[p,m]=J.useState({outerHeightStyle:0}),h=J.useCallback((()=>{const t=u.current,n=px(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const l=n.boxSizing,a=vT(n.paddingBottom)+vT(n.paddingTop),s=vT(n.borderBottomWidth)+vT(n.borderTopWidth),c=i.scrollHeight;i.value="x";const f=i.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*f,p)),r&&(p=Math.min(Number(r)*f,p)),p=Math.max(p,f);return{outerHeightStyle:p+("border-box"===l?a+s:0),overflow:Math.abs(p-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return f.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(f.current+=1,{overflow:r,outerHeightStyle:n}):e},v=J.useCallback((()=>{const e=h();yT(e)||m((t=>g(t,e)))}),[h]);J.useEffect((()=>{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}((()=>{f.current=0,u.current&&(()=>{const e=h();yT(e)||ld.flushSync((()=>{m((t=>g(t,e)))}))})()}));let t;const n=u.current,r=px(n);return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),r.removeEventListener("resize",e),t&&t.disconnect()}})),hx((()=>{v()})),J.useEffect((()=>{f.current=0}),[l]);return dC.jsxs(J.Fragment,{children:[dC.jsx("textarea",Wy({value:l,onChange:e=>{f.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:Wy({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},i)},a)),dC.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Wy({},bT,i,{padding:0})})]})}));function _T(e,t){return _T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_T(e,t)}function ET(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_T(e,t)}var CT=!1,wT=Z.createContext(null),ST="unmounted",kT="exited",TT="entering",NT="entered",RT="exiting",AT=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=kT,r.appearStatus=TT):o=NT:o=t.unmountOnExit||t.mountOnEnter?ST:kT,r.state={status:o},r.nextCallback=null,r}ET(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ST?{status:kT}: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!==TT&&n!==NT&&(t=TT):n!==TT&&n!==NT||(t=RT)}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===TT){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ad.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kT&&this.setState({status:ST})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ad.findDOMNode(this),r],i=o[0],l=o[1],a=this.getTimeouts(),s=r?a.appear:a.enter;!e&&!n||CT?this.safeSetState({status:NT},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:TT},(function(){t.props.onEntering(i,l),t.onTransitionEnd(s,(function(){t.safeSetState({status:NT},(function(){t.props.onEntered(i,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ad.findDOMNode(this);t&&!CT?(this.props.onExit(r),this.safeSetState({status:RT},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:kT},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:kT},(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:ad.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],l=o[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ST)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=$x(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z.createElement(wT.Provider,{value:null},"function"==typeof n?n(e,r):Z.cloneElement(Z.Children.only(n),r))},t}(Z.Component);function OT(){}function LT(e,t){var n=Object.create(null);return e&&J.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&J.isValidElement(e)?t(e):e}(e)})),n}function MT(e,t,n){return null!=n[t]?n[t]:e.props[t]}function PT(e,t,n){var r=LT(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 l in e)l in t?i.length&&(o[l]=i,i=[]):i.push(l);var a={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];a[o[s][r]]=n(u)}a[s]=n(s)}for(r=0;r<i.length;r++)a[i[r]]=n(i[r]);return a}(t,r);return Object.keys(o).forEach((function(i){var l=o[i];if(J.isValidElement(l)){var a=i in t,s=i in r,u=t[i],c=J.isValidElement(u)&&!u.props.in;!s||a&&!c?s||!a||c?s&&a&&J.isValidElement(u)&&(o[i]=J.cloneElement(l,{onExited:n.bind(null,l),in:u.props.in,exit:MT(l,"exit",e),enter:MT(l,"enter",e)})):o[i]=J.cloneElement(l,{in:!1}):o[i]=J.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:MT(l,"exit",e),enter:MT(l,"enter",e)})}})),o}AT.contextType=wT,AT.propTypes={},AT.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:OT,onEntering:OT,onEntered:OT,onExit:OT,onExiting:OT,onExited:OT},AT.UNMOUNTED=ST,AT.EXITED=kT,AT.ENTERING=TT,AT.ENTERED=NT,AT.EXITING=RT;var IT=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},DT=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}ET(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,LT(n.children,(function(e){return J.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:MT(e,"appear",n),enter:MT(e,"enter",n),exit:MT(e,"exit",n)})}))):PT(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=LT(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Wy({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=$x(e,["component","childFactory"]),o=this.state.contextValue,i=IT(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Z.createElement(wT.Provider,{value:o},i):Z.createElement(wT.Provider,{value:o},Z.createElement(t,r,i))},t}(Z.Component);DT.propTypes={},DT.defaultProps={component:"div",childFactory:function(e){return e}};function zT(e,t){var n,r;const{timeout:o,easing:i,style:l={}}=e;return{duration:null!=(n=l.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=l.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:l.transitionDelay}}function $T(e){return Dx("MuiPaper",e)}zx("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 FT=["className","component","elevation","square","variant"],BT=AS("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 Wy({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&&Wy({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Hw("#fff",MS(t.elevation))}, ${Hw("#fff",MS(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),HT=J.forwardRef((function(e,t){const n=NS({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:l=!1,variant:a="elevation"}=n,s=$x(n,FT),u=Wy({},n,{component:o,elevation:i,square:l,variant:a}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Lx({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},$T,o)})(u);return dC.jsx(BT,Wy({as:o,ownerState:u,className:IS(c.root,r),ref:t},s))}));const jT=zx("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),WT=["center","classes","className"];let KT,UT,GT,YT,VT=e=>e;const QT=VE(KT||(KT=VT`
23
+ */function Uo(e,t){return $o(e,t)}const Go=["values","unit","step"];function Yo(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Vn(e,Go),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)=>fn({},e,{[t.key]:t.val})),{})})(t),l=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=l.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:o)-r/100}${n})`}return fn({keys:l,values:i,up:a,down:s,between:u,only:function(e){return l.indexOf(e)+1<l.length?u(e,l[l.indexOf(e)+1]):a(e)},not:function(e){const t=l.indexOf(e);return 0===t?a(l[1]):t===l.length-1?s(l[t]):u(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Vo={borderRadius:4};function Qo(e,t){return t?hn(e,t,{clone:!1}):e}const qo={xs:0,sm:600,md:900,lg:1200,xl:1536},Xo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qo[e]}px)`};function Jo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Xo;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Xo;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||qo).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Zo(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function ei(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function ti({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function ni(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 ri(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ni(e,n)||r,t&&(o=t(o,r,e)),o}function oi(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],l=ni(e.theme,r)||{};return Jo(e,i,(e=>{let r=ri(l,o,e);return e===r&&"string"==typeof e&&(r=ri(l,o,`${t}${"default"===e?"":_n(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const ii={m:"margin",p:"padding"},li={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ai={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},si=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!ai[e])return[e];e=ai[e]}const[t,n]=e.split(""),r=ii[t],o=li[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),ui=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ci=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function di(e,t,n,r){var o;const i=null!=(o=ni(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 fi(e){return di(e,"spacing",8)}function pi(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 mi(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=pi(t,n),e)),{})}(si(n),r);return Jo(e,e[n],o)}function hi(e,t){const n=fi(e.theme);return Object.keys(e).map((r=>mi(e,t,r,n))).reduce(Qo,{})}function gi(e){return hi(e,ui)}function vi(e){return hi(e,ci)}function bi(...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]?Qo(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function yi(e){return"number"!=typeof e?e:`${e}px solid`}function xi(e,t){return oi({prop:e,themeKey:"borders",transform:t})}gi.propTypes={},gi.filterProps=ui,vi.propTypes={},vi.filterProps=ci;const _i=xi("border",yi),Ei=xi("borderTop",yi),Ci=xi("borderRight",yi),wi=xi("borderBottom",yi),Si=xi("borderLeft",yi),ki=xi("borderColor"),Ti=xi("borderTopColor"),Ni=xi("borderRightColor"),Ri=xi("borderBottomColor"),Ai=xi("borderLeftColor"),Oi=xi("outline",yi),Li=xi("outlineColor"),Mi=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=di(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:pi(t,e)});return Jo(e,e.borderRadius,n)}return null};Mi.propTypes={},Mi.filterProps=["borderRadius"],bi(_i,Ei,Ci,wi,Si,ki,Ti,Ni,Ri,Ai,Mi,Oi,Li);const Pi=e=>{if(void 0!==e.gap&&null!==e.gap){const t=di(e.theme,"spacing",8),n=e=>({gap:pi(t,e)});return Jo(e,e.gap,n)}return null};Pi.propTypes={},Pi.filterProps=["gap"];const Ii=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=di(e.theme,"spacing",8),n=e=>({columnGap:pi(t,e)});return Jo(e,e.columnGap,n)}return null};Ii.propTypes={},Ii.filterProps=["columnGap"];const Di=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=di(e.theme,"spacing",8),n=e=>({rowGap:pi(t,e)});return Jo(e,e.rowGap,n)}return null};Di.propTypes={},Di.filterProps=["rowGap"];function zi(e,t){return"grey"===t?t:e}bi(Pi,Ii,Di,oi({prop:"gridColumn"}),oi({prop:"gridRow"}),oi({prop:"gridAutoFlow"}),oi({prop:"gridAutoColumns"}),oi({prop:"gridAutoRows"}),oi({prop:"gridTemplateColumns"}),oi({prop:"gridTemplateRows"}),oi({prop:"gridTemplateAreas"}),oi({prop:"gridArea"}));function $i(e){return e<=1&&0!==e?100*e+"%":e}bi(oi({prop:"color",themeKey:"palette",transform:zi}),oi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zi}),oi({prop:"backgroundColor",themeKey:"palette",transform:zi}));const Fi=oi({prop:"width",transform:$i}),Bi=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])||qo[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:$i(t)}};return Jo(e,e.maxWidth,t)}return null};Bi.filterProps=["maxWidth"];const Hi=oi({prop:"minWidth",transform:$i}),ji=oi({prop:"height",transform:$i}),Wi=oi({prop:"maxHeight",transform:$i}),Ki=oi({prop:"minHeight",transform:$i});oi({prop:"size",cssProperty:"width",transform:$i}),oi({prop:"size",cssProperty:"height",transform:$i});bi(Fi,Bi,Hi,ji,Wi,Ki,oi({prop:"boxSizing"}));const Ui={border:{themeKey:"borders",transform:yi},borderTop:{themeKey:"borders",transform:yi},borderRight:{themeKey:"borders",transform:yi},borderBottom:{themeKey:"borders",transform:yi},borderLeft:{themeKey:"borders",transform:yi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:yi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Mi},color:{themeKey:"palette",transform:zi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zi},backgroundColor:{themeKey:"palette",transform:zi},p:{style:vi},pt:{style:vi},pr:{style:vi},pb:{style:vi},pl:{style:vi},px:{style:vi},py:{style:vi},padding:{style:vi},paddingTop:{style:vi},paddingRight:{style:vi},paddingBottom:{style:vi},paddingLeft:{style:vi},paddingX:{style:vi},paddingY:{style:vi},paddingInline:{style:vi},paddingInlineStart:{style:vi},paddingInlineEnd:{style:vi},paddingBlock:{style:vi},paddingBlockStart:{style:vi},paddingBlockEnd:{style:vi},m:{style:gi},mt:{style:gi},mr:{style:gi},mb:{style:gi},ml:{style:gi},mx:{style:gi},my:{style:gi},margin:{style:gi},marginTop:{style:gi},marginRight:{style:gi},marginBottom:{style:gi},marginLeft:{style:gi},marginX:{style:gi},marginY:{style:gi},marginInline:{style:gi},marginInlineStart:{style:gi},marginInlineEnd:{style:gi},marginBlock:{style:gi},marginBlockStart:{style:gi},marginBlockEnd:{style:gi},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:Pi},rowGap:{style:Di},columnGap:{style:Ii},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$i},maxWidth:{style:Bi},minWidth:{transform:$i},height:{transform:$i},maxHeight:{transform:$i},minHeight:{transform:$i},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Gi=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:l=e,themeKey:a,transform:s,style:u}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const c=ni(n,a)||{};if(u)return u(o);return Jo(o,t,(t=>{let n=ri(c,s,t);return t===n&&"string"==typeof t&&(n=ri(c,s,`${e}${"default"===t?"":_n(t)}`,t)),!1===l?n:{[l]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const l=null!=(r=i.unstable_sxConfig)?r:Ui;function a(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=Zo(i.breakpoints),a=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],u=i,"function"==typeof a?a(u):a);var a,u;if(null!=o)if("object"==typeof o)if(l[n])s=Qo(s,e(n,o,i,l));else{const e=Jo({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)?s=Qo(s,e):s[n]=t({sx:o,theme:i})}else s=Qo(s,e(n,o,i,l))})),ei(a,s)}return Array.isArray(o)?o.map(a):a(o)}}();function Yi(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:{}}Gi.filterProps=["sx"];const Vi=["breakpoints","palette","spacing","shape"];function Qi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=Vn(e,Vi),a=Yo(n),s=function(e=8){if(e.mui)return e;const t=fi({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=hn({breakpoints:a,direction:"ltr",components:{},palette:fn({mode:"light"},r),spacing:s,shape:fn({},Vo,i)},l);return u.applyStyles=Yi,u=t.reduce(((e,t)=>hn(e,t)),u),u.unstable_sxConfig=fn({},Ui,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return Gi({sx:e,theme:this})},u}function qi(e=null){const t=D.useContext(Ro);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Xi=Qi();function Ji(e=Xi){return qi(e)}function Zi({styles:e,themeId:t,defaultTheme:n={}}){const r=Ji(n),o="function"==typeof e?e(t&&r[t]||r):e;return Wo.jsx(Ko,{styles:o})}const el=["sx"];function tl(e){const{sx:t}=e,n=Vn(e,el),{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:Ui;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 pn(n)?fn({},r,n):r}:fn({},r,t),fn({},o,{sx:i})}const nl=["className","component"];const rl=["ownerState"],ol=["variants"],il=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ll(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const al=Qi(),sl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ul({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function cl(e){return e?(t,n)=>n[e]:null}function dl(e,t){let{ownerState:n}=t,r=Vn(t,rl);const o="function"==typeof e?e(fn({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>dl(e,fn({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Vn(o,ol);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(fn({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(fn({ownerState:n},r,n)):e.style))})),t}return o}function fl(e={}){const{themeId:t,defaultTheme:n=al,rootShouldForwardProp:r=ll,slotShouldForwardProp:o=ll}=e,i=e=>Gi(fn({},e,{theme:ul(fn({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,l={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=cl(sl(s))}=l,f=Vn(l,il),p=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ll;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Uo(e,fn({shouldForwardProp:h,label:undefined},f)),v=e=>"function"==typeof e&&e.__emotion_real!==e||pn(e)?r=>dl(e,fn({},r,{theme:ul({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let l=v(r);const s=o?o.map(v):[];a&&d&&s.push((e=>{const r=ul(fn({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[a]||!r.components[a].styleOverrides)return null;const o=r.components[a].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=dl(n,fn({},e,{theme:r}))})),d(e,i)})),a&&!p&&s.push((e=>{var r;const o=ul(fn({},e,{defaultTheme:n,themeId:t}));return dl({variants:null==o||null==(r=o.components)||null==(r=r[a])?void 0:r.variants},fn({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");l=[...r,...e],l.raw=[...r.raw,...e]}const c=g(l,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}const pl=fl();function ml({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ji(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?Hn(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function hl(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function gl(e){if(e.type)return e;if("#"===e.charAt(0))return gl(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(gn(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(gn(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function vl(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 bl(e){let t="hsl"===(e=gl(e)).type||"hsla"===e.type?gl(function(e){e=gl(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(a+="a",s.push(t[3])),vl({type:a,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function yl(e,t){return e=gl(e),t=hl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,vl(e)}const xl=D.createContext(null);function _l(){return D.useContext(xl)}var El="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Cl(e){const{children:t,theme:n}=e,r=_l(),o=D.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return fn({},e,t)}(r,n);return null!=e&&(e[El]=null!==r),e}),[n,r]);return Wo.jsx(xl.Provider,{value:o,children:t})}const wl=["value"],Sl=D.createContext();function kl(e){let{value:t}=e,n=Vn(e,wl);return Wo.jsx(Sl.Provider,fn({value:null==t||t},n))}const Tl=D.createContext(void 0);function Nl({value:e,children:t}){return Wo.jsx(Tl.Provider,{value:e,children:t})}const Rl={};function Al(e,t,n,r=!1){return D.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),l=e?fn({},t,{[e]:i}):i;return r?()=>l:l}return fn({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Ol(e){const{children:t,theme:n,themeId:r}=e,o=qi(Rl),i=_l()||Rl,l=Al(r,o,n),a=Al(r,i,n,!0),s="rtl"===l.direction;return Wo.jsx(Cl,{theme:a,children:Wo.jsx(Ro.Provider,{value:l,children:Wo.jsx(kl,{value:s,children:Wo.jsx(Nl,{value:null==l?void 0:l.components,children:t})})})})}const Ll=["component","direction","spacing","divider","children","className","useFlexGap"],Ml=Qi(),Pl=pl("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Il(e){return ml({props:e,name:"MuiStack",defaultTheme:Ml})}function Dl(e,t){const n=D.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(D.cloneElement(t,{key:`separator-${o}`})),e)),[])}const zl=({ownerState:e,theme:t})=>{let n=fn({display:"flex",flexDirection:"column"},Jo({theme:t},ti({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=fi(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),i=ti({values:e.direction,base:o}),l=ti({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));n=hn(n,Jo({theme:t},l,((t,n)=>{return e.useFlexGap?{gap:pi(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]}`]:pi(r,t)}};var o})))}return n=function(e,...t){const n=Zo(e),r=[n,...t].reduce(((e,t)=>hn(e,t)),{});return ei(Object.keys(n),r)}(t.breakpoints,n),n};const $l=["mode","contrastThreshold","tonalOffset"],Fl={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ot.white,default:Ot.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Bl={text:{primary:Ot.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ot.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Hl(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=function(e,t){if(e=gl(e),t=hl(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 vl(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=gl(e),t=hl(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 vl(e)}(e.main,i)))}function jl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Vn(e,$l),i=e.primary||function(e="light"){return"dark"===e?{main:Kt,light:Wt,dark:Ut}:{main:Gt,light:Ut,dark:Yt}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:$t,light:zt,dark:Bt}:{main:Ht,light:Ft,dark:jt}}(t),a=e.error||function(e="light"){return"dark"===e?{main:Pt,light:Lt,dark:It}:{main:It,light:Mt,dark:Dt}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Qt,light:Vt,dark:Xt}:{main:Xt,light:qt,dark:Jt}}(t),u=e.success||function(e="light"){return"dark"===e?{main:en,light:Zt,dark:nn}:{main:rn,light:tn,dark:on}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:an,light:ln,dark:un}:{main:"#ed6c02",light:sn,dark:cn}}(t);function d(e){const t=function(e,t){const n=bl(e),r=bl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Bl.text.primary)>=n?Bl.text.primary:Fl.text.primary;return t}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=fn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(gn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(gn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Hl(e,"light",o,r),Hl(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:Bl,light:Fl};return hn(fn({common:fn({},Ot),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:dn,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const Wl=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Kl={textTransform:"uppercase"},Ul='"Roboto", "Helvetica", "Arial", sans-serif';function Gl(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ul,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Vn(n,Wl),p=o/14,m=d||(e=>e/u*p+"rem"),h=(e,t,n,o,i)=>{return fn({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Ul?{letterSpacing:(l=o/t,Math.round(1e5*l)/1e5)+"em"}:{},i,c);var l},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(l,48,1.167,0),h4:h(l,34,1.235,.25),h5:h(l,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(l,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(l,16,1.5,.15),body2:h(l,14,1.43,.15),button:h(a,14,1.75,.4,Kl),caption:h(l,12,1.66,.4),overline:h(l,12,2.66,1,Kl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return hn(fn({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:s},g),f,{clone:!1})}function Yl(...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 Vl=["none",Yl(0,2,1,-1,0,1,1,0,0,1,3,0),Yl(0,3,1,-2,0,2,2,0,0,1,5,0),Yl(0,3,3,-2,0,3,4,0,0,1,8,0),Yl(0,2,4,-1,0,4,5,0,0,1,10,0),Yl(0,3,5,-1,0,5,8,0,0,1,14,0),Yl(0,3,5,-1,0,6,10,0,0,1,18,0),Yl(0,4,5,-2,0,7,10,1,0,2,16,1),Yl(0,5,5,-3,0,8,10,1,0,3,14,2),Yl(0,5,6,-3,0,9,12,1,0,3,16,2),Yl(0,6,6,-3,0,10,14,1,0,4,18,3),Yl(0,6,7,-4,0,11,15,1,0,4,20,3),Yl(0,7,8,-4,0,12,17,2,0,5,22,4),Yl(0,7,8,-4,0,13,19,2,0,5,24,4),Yl(0,7,9,-4,0,14,21,2,0,5,26,4),Yl(0,8,9,-5,0,15,22,2,0,6,28,5),Yl(0,8,10,-5,0,16,24,2,0,6,30,5),Yl(0,8,11,-5,0,17,26,2,0,6,32,5),Yl(0,9,11,-5,0,18,28,2,0,7,34,6),Yl(0,9,12,-6,0,19,29,2,0,7,36,6),Yl(0,10,13,-6,0,20,31,3,0,8,38,7),Yl(0,10,13,-6,0,21,33,3,0,8,40,7),Yl(0,10,14,-6,0,22,35,3,0,8,42,7),Yl(0,11,14,-7,0,23,36,3,0,9,44,8),Yl(0,11,15,-7,0,24,38,3,0,9,46,8)],Ql=["duration","easing","delay"],ql={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)"},Xl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jl(e){return`${Math.round(e)}ms`}function Zl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ea(e){const t=fn({},ql,e.easing),n=fn({},Xl,e.duration);return fn({getAutoHeightDuration:Zl,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:l=0}=r;return Vn(r,Ql),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Jl(o)} ${i} ${"string"==typeof l?l:Jl(l)}`)).join(",")}},e,{easing:t,duration:n})}const ta={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},na=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ra(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=Vn(e,na);if(e.vars)throw new Error(gn(18));const a=jl(r),s=Qi(e);let u=hn(s,{mixins:(c=s.breakpoints,d=n,fn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:a,shadows:Vl.slice(),typography:Gl(a,i),transitions:ea(o),zIndex:fn({},ta)});var c,d;return u=hn(u,l),u=t.reduce(((e,t)=>hn(e,t)),u),u.unstable_sxConfig=fn({},Ui,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return Gi({sx:e,theme:this})},u}const oa=ra();function ia(){const e=Ji(oa);return e[Xn]||e}function la({props:e,name:t}){return ml({props:e,name:t,defaultTheme:oa,themeId:Xn})}const aa=e=>ll(e)&&"classes"!==e,sa=fl({themeId:Xn,defaultTheme:oa,rootShouldForwardProp:aa}),ua=["theme"];function ca(e){let{theme:t}=e,n=Vn(e,ua);const r=t[Xn];return Wo.jsx(Ol,fn({},n,{themeId:r?Xn:void 0,theme:r||t}))}const da=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function fa(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=fa(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function pa(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=fa(e))&&(r&&(r+=" "),r+=t);return r}function ma(e){return"string"==typeof e}function ha(e,t,n){return void 0===e||ma(e)?t:fn({},t,{ownerState:fn({},t.ownerState,n)})}const ga={disableDefaultClasses:!1},va=D.createContext(ga);function ba(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 ya(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=pa(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=fn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),l=fn({},n,o,r);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=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}(fn({},o,r)),a=ba(r),s=ba(o),u=t(l),c=pa(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=fn({},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=fn({},u,n,s,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const xa=["elementType","externalSlotProps","ownerState"];function _a(e){return e.substring(2).toLowerCase()}function Ea(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,l=D.useRef(!1),a=D.useRef(null),s=D.useRef(!1),u=D.useRef(!1);D.useEffect((()=>(setTimeout((()=>{s.current=!0}),0),()=>{s.current=!1})),[]);const c=An(t.ref,a),d=Rn((e=>{const t=u.current;u.current=!1;const r=En(a.current);if(!s.current||!a.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(l.current)return void(l.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(a.current)>-1:!r.documentElement.contains(e.target)||a.current.contains(e.target),i||!n&&t||o(e)})),f=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},p={ref:c};return!1!==i&&(p[i]=f(i)),D.useEffect((()=>{if(!1!==i){const e=_a(i),t=En(a.current),n=()=>{l.current=!0};return t.addEventListener(e,d),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,d),t.removeEventListener("touchmove",n)}}}),[d,i]),!1!==r&&(p[r]=f(r)),D.useEffect((()=>{if(!1!==r){const e=_a(r),t=En(a.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}}),[d,r]),Wo.jsx(D.Fragment,{children:D.cloneElement(t,p)})}var Ca="top",wa="bottom",Sa="right",ka="left",Ta="auto",Na=[Ca,wa,Sa,ka],Ra="start",Aa="end",Oa="viewport",La="popper",Ma=Na.reduce((function(e,t){return e.concat([t+"-"+Ra,t+"-"+Aa])}),[]),Pa=[].concat(Na,[Ta]).reduce((function(e,t){return e.concat([t,t+"-"+Ra,t+"-"+Aa])}),[]),Ia=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Da(e){return e?(e.nodeName||"").toLowerCase():null}function za(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $a(e){return e instanceof za(e).Element||e instanceof Element}function Fa(e){return e instanceof za(e).HTMLElement||e instanceof HTMLElement}function Ba(e){return"undefined"!=typeof ShadowRoot&&(e instanceof za(e).ShadowRoot||e instanceof ShadowRoot)}var Ha={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];Fa(o)&&Da(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}),{});Fa(r)&&Da(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ja(e){return e.split("-")[0]}var Wa=Math.max,Ka=Math.min,Ua=Math.round;function Ga(){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 Ya(){return!/^((?!chrome|android).)*safari/i.test(Ga())}function Va(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Fa(e)&&(o=e.offsetWidth>0&&Ua(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ua(r.height)/e.offsetHeight||1);var l=($a(e)?za(e):window).visualViewport,a=!Ya()&&n,s=(r.left+(a&&l?l.offsetLeft:0))/o,u=(r.top+(a&&l?l.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function Qa(e){var t=Va(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 qa(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ba(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Xa(e){return za(e).getComputedStyle(e)}function Ja(e){return["table","td","th"].indexOf(Da(e))>=0}function Za(e){return(($a(e)?e.ownerDocument:e.document)||window.document).documentElement}function es(e){return"html"===Da(e)?e:e.assignedSlot||e.parentNode||(Ba(e)?e.host:null)||Za(e)}function ts(e){return Fa(e)&&"fixed"!==Xa(e).position?e.offsetParent:null}function ns(e){for(var t=za(e),n=ts(e);n&&Ja(n)&&"static"===Xa(n).position;)n=ts(n);return n&&("html"===Da(n)||"body"===Da(n)&&"static"===Xa(n).position)?t:n||function(e){var t=/firefox/i.test(Ga());if(/Trident/i.test(Ga())&&Fa(e)&&"fixed"===Xa(e).position)return null;var n=es(e);for(Ba(n)&&(n=n.host);Fa(n)&&["html","body"].indexOf(Da(n))<0;){var r=Xa(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 rs(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function os(e,t,n){return Wa(e,Ka(t,n))}function is(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ls(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var as={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=ja(n.placement),s=rs(a),u=[ka,Sa].indexOf(a)>=0?"height":"width";if(i&&l){var c=function(e,t){return is("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ls(e,Na))}(o.padding,n),d=Qa(i),f="y"===s?Ca:ka,p="y"===s?wa:Sa,m=n.rects.reference[u]+n.rects.reference[s]-l[s]-n.rects.popper[u],h=l[s]-n.rects.reference[s],g=ns(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=c[f],x=v-d[u]-c[p],_=v/2-d[u]/2+b,E=os(y,_,x),C=s;n.modifiersData[r]=((t={})[C]=E,t.centerOffset=E-_,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)))&&qa(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ss(e){return e.split("-")[1]}var us={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cs(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=l.x,p=void 0===f?0:f,m=l.y,h=void 0===m?0:m,g="function"==typeof c?c({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=l.hasOwnProperty("x"),b=l.hasOwnProperty("y"),y=ka,x=Ca,_=window;if(u){var E=ns(n),C="clientHeight",w="clientWidth";if(E===za(n)&&"static"!==Xa(E=Za(n)).position&&"absolute"===a&&(C="scrollHeight",w="scrollWidth"),o===Ca||(o===ka||o===Sa)&&i===Aa)x=wa,h-=(d&&E===_&&_.visualViewport?_.visualViewport.height:E[C])-r.height,h*=s?1:-1;if(o===ka||(o===Ca||o===wa)&&i===Aa)y=Sa,p-=(d&&E===_&&_.visualViewport?_.visualViewport.width:E[w])-r.width,p*=s?1:-1}var S,k=Object.assign({position:a},u&&us),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ua(n*o)/o||0,y:Ua(r*o)/o||0}}({x:p,y:h},za(n)):{x:p,y:h};return p=T.x,h=T.y,s?Object.assign({},k,((S={})[x]=b?"0":"",S[y]=v?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},k,((t={})[x]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var ds={passive:!0};var fs={left:"right",right:"left",bottom:"top",top:"bottom"};function ps(e){return e.replace(/left|right|bottom|top/g,(function(e){return fs[e]}))}var ms={start:"end",end:"start"};function hs(e){return e.replace(/start|end/g,(function(e){return ms[e]}))}function gs(e){var t=za(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function vs(e){return Va(Za(e)).left+gs(e).scrollLeft}function bs(e){var t=Xa(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ys(e){return["html","body","#document"].indexOf(Da(e))>=0?e.ownerDocument.body:Fa(e)&&bs(e)?e:ys(es(e))}function xs(e,t){var n;void 0===t&&(t=[]);var r=ys(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=za(r),l=o?[i].concat(i.visualViewport||[],bs(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(xs(es(l)))}function _s(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Es(e,t,n){return t===Oa?_s(function(e,t){var n=za(e),r=Za(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;var u=Ya();(u||!u&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a+vs(e),y:s}}(e,n)):$a(t)?function(e,t){var n=Va(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):_s(function(e){var t,n=Za(e),r=gs(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Wa(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Wa(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+vs(e),s=-r.scrollTop;return"rtl"===Xa(o||n).direction&&(a+=Wa(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(Za(e)))}function Cs(e,t,n,r){var o="clippingParents"===t?function(e){var t=xs(es(e)),n=["absolute","fixed"].indexOf(Xa(e).position)>=0&&Fa(e)?ns(e):e;return $a(n)?t.filter((function(e){return $a(e)&&qa(e,n)&&"body"!==Da(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),l=i[0],a=i.reduce((function(t,n){var o=Es(e,n,r);return t.top=Wa(o.top,t.top),t.right=Ka(o.right,t.right),t.bottom=Ka(o.bottom,t.bottom),t.left=Wa(o.left,t.left),t}),Es(e,l,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ws(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?ja(o):null,l=o?ss(o):null,a=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Ca:t={x:a,y:n.y-r.height};break;case wa:t={x:a,y:n.y+n.height};break;case Sa:t={x:n.x+n.width,y:s};break;case ka:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?rs(i):null;if(null!=u){var c="y"===u?"height":"width";switch(l){case Ra:t[u]=t[u]-(n[c]/2-r[c]/2);break;case Aa:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function Ss(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,l=void 0===i?e.strategy:i,a=n.boundary,s=void 0===a?"clippingParents":a,u=n.rootBoundary,c=void 0===u?Oa:u,d=n.elementContext,f=void 0===d?La:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=is("number"!=typeof g?g:ls(g,Na)),b=f===La?"reference":La,y=e.rects.popper,x=e.elements[m?b:f],_=Cs($a(x)?x:x.contextElement||Za(e.elements.popper),s,c,l),E=Va(e.elements.reference),C=ws({reference:E,element:y,placement:o}),w=_s(Object.assign({},y,C)),S=f===La?w:E,k={top:_.top-S.top+v.top,bottom:S.bottom-_.bottom+v.bottom,left:_.left-S.left+v.left,right:S.right-_.right+v.right},T=e.modifiersData.offset;if(f===La&&T){var N=T[o];Object.keys(k).forEach((function(e){var t=[Sa,wa].indexOf(e)>=0?1:-1,n=[Ca,wa].indexOf(e)>=0?"y":"x";k[e]+=N[n]*t}))}return k}function ks(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?Pa:s,c=ss(r),d=c?a?Ma:Ma.filter((function(e){return ss(e)===c})):Na,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]=Ss(e,{placement:n,boundary:o,rootBoundary:i,padding:l})[ja(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var Ts={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,l=n.altAxis,a=void 0===l||l,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,v=ja(g),b=s||(v===g||!m?[ps(g)]:function(e){if(ja(e)===Ta)return[];var t=ps(e);return[hs(e),t,hs(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(ja(n)===Ta?ks(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),x=t.rects.reference,_=t.rects.popper,E=new Map,C=!0,w=y[0],S=0;S<y.length;S++){var k=y[S],T=ja(k),N=ss(k)===Ra,R=[Ca,wa].indexOf(T)>=0,A=R?"width":"height",O=Ss(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),L=R?N?Sa:ka:N?wa:Ca;x[A]>_[A]&&(L=ps(L));var M=ps(L),P=[];if(i&&P.push(O[T]<=0),a&&P.push(O[L]<=0,O[M]<=0),P.every((function(e){return e}))){w=k,C=!1;break}E.set(k,P)}if(C)for(var I=function(e){var t=y.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return w=t,"break"},D=m?3:1;D>0;D--){if("break"===I(D))break}t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ns(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 Rs(e){return[Ca,Sa,wa,ka].some((function(t){return e[t]>=0}))}var As={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,l=Pa.reduce((function(e,n){return e[n]=function(e,t,n){var r=ja(e),o=[ka,Ca].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[ka,Sa].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}(n,t.rects,i),e}),{}),a=l[t.placement],s=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=l}};var Os={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,l=n.altAxis,a=void 0!==l&&l,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=Ss(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=ja(t.placement),b=ss(t.placement),y=!b,x=rs(v),_="x"===x?"y":"x",E=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(E){if(i){var R,A="y"===x?Ca:ka,O="y"===x?wa:Sa,L="y"===x?"height":"width",M=E[x],P=M+g[A],I=M-g[O],D=p?-w[L]/2:0,z=b===Ra?C[L]:w[L],$=b===Ra?-w[L]:-C[L],F=t.elements.arrow,B=p&&F?Qa(F):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=H[A],W=H[O],K=os(0,C[L],B[L]),U=y?C[L]/2-D-K-j-k.mainAxis:z-K-j-k.mainAxis,G=y?-C[L]/2+D+K+W+k.mainAxis:$+K+W+k.mainAxis,Y=t.elements.arrow&&ns(t.elements.arrow),V=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,Q=null!=(R=null==T?void 0:T[x])?R:0,q=M+G-Q,X=os(p?Ka(P,M+U-Q-V):P,M,p?Wa(I,q):I);E[x]=X,N[x]=X-M}if(a){var J,Z="x"===x?Ca:ka,ee="x"===x?wa:Sa,te=E[_],ne="y"===_?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[Ca,ka].indexOf(v),le=null!=(J=null==T?void 0:T[_])?J:0,ae=ie?re:te-C[ne]-w[ne]-le+k.altAxis,se=ie?te+C[ne]+w[ne]-le-k.altAxis:oe,ue=p&&ie?function(e,t,n){var r=os(e,t,n);return r>n?n:r}(ae,te,se):os(p?ae:re,te,p?se:oe);E[_]=ue,N[_]=ue-te}t.modifiersData[r]=N}},requiresIfExists:["offset"]};function Ls(e,t,n){void 0===n&&(n=!1);var r=Fa(t),o=Fa(t)&&function(e){var t=e.getBoundingClientRect(),n=Ua(t.width)/e.offsetWidth||1,r=Ua(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Za(t),l=Va(e,o,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Da(t)||bs(i))&&(a=function(e){return e!==za(e)&&Fa(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:gs(e);var t}(t)),Fa(t)?((s=Va(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=vs(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function Ms(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 Ps(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Is={placement:"bottom",modifiers:[],strategy:"absolute"};function Ds(){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 zs(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Is:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Is,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],a=!1,s={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:$a(e)?xs(e):e.contextElement?xs(e.contextElement):[],popper:xs(t)};var c,d,f=function(e){var t=Ms(e);return Ia.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 a=i({state:o,name:t,instance:s,options:r}),u=function(){};l.push(a||u)}})),s.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,n=e.popper;if(Ds(t,n)){o.rects={reference:Ls(t,ns(n),"fixed"===o.options.strategy),popper:Qa(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],l=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof l&&(o=l({state:o,options:c,name:d,instance:s})||o)}else o.reset=!1,r=-1}}},update:Ps((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){u(),a=!0}};if(!Ds(e,t))return s;function u(){l.forEach((function(e){return e()})),l=[]}return s.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var $s=zs({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,l=r.resize,a=void 0===l||l,s=za(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,ds)})),a&&s.addEventListener("resize",n.update,ds),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,ds)})),a&&s.removeEventListener("resize",n.update,ds)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ws({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,l=void 0===i||i,a=n.roundOffsets,s=void 0===a||a,u={placement:ja(t.placement),variation:ss(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,cs(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,cs(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ha,As,Ts,Os,as,{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,l=Ss(t,{elementContext:"reference"}),a=Ss(t,{altBoundary:!0}),s=Ns(l,r),u=Ns(a,o,i),c=Rs(s),d=Rs(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),Fs=P(),Bs=h(Fs);const Hs=D.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,l]=D.useState(null),a=An(D.isValidElement(n)?n.ref:null,t);if(Sn((()=>{o||l(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Sn((()=>{if(i&&!o)return wn(t,i),()=>{wn(t,null)}}),[t,i,o]),o){if(D.isValidElement(n)){const e={ref:a};return D.cloneElement(n,e)}return Wo.jsx(D.Fragment,{children:n})}return Wo.jsx(D.Fragment,{children:i?Fs.createPortal(n,i):i})}));function js(e){return Gn("MuiPopper",e)}Yn("MuiPopper",["root"]);const Ws=["anchorEl","children","component","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ks=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Us(e){return"function"==typeof e?e():e}const Gs=()=>jn({root:["root"]},function(e){const{disableDefaultClasses:t}=D.useContext(va);return n=>t?"":e(n)}(js)),Ys={},Vs=D.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,component:i,direction:l,disablePortal:a,modifiers:s,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:p={},slots:m={},TransitionProps:h}=e,g=Vn(e,Ws),v=D.useRef(null),b=An(v,t),y=D.useRef(null),x=An(y,f),_=D.useRef(x);Sn((()=>{_.current=x}),[x]),D.useImperativeHandle(f,(()=>y.current),[]);const E=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}}(c,l),[C,w]=D.useState(E),[S,k]=D.useState(Us(r));D.useEffect((()=>{y.current&&y.current.forceUpdate()})),D.useEffect((()=>{r&&k(Us(r))}),[r]),Sn((()=>{if(!S||!u)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{w(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=$s(S,v.current,fn({placement:E},d,{modifiers:e}));return _.current(t),()=>{t.destroy(),_.current(null)}}),[S,a,s,u,d,E]);const T={placement:C};null!==h&&(T.TransitionProps=h);const N=Gs(),R=null!=(n=null!=i?i:m.root)?n:"div",A=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=Vn(e,xa),l=function(e,t){return"function"==typeof e?e(t):e}(r,o),{props:a,internalRef:s}=ya(fn({},i,{externalSlotProps:l}));return ha(n,fn({},a,{ref:An(s,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:R,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:N.root});return Wo.jsx(R,fn({},A,{children:"function"==typeof o?o(T):o}))})),Qs=D.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:l=!1,keepMounted:a=!1,modifiers:s,open:u,placement:c="bottom",popperOptions:d=Ys,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={}}=e,v=Vn(e,Ks),[b,y]=D.useState(!0);if(!a&&!u&&(!m||b))return null;let x;if(o)x=o;else if(n){const e=Us(n);x=e&&void 0!==e.nodeType?En(e).body:En(null).body}const _=u||!a||m&&!b?void 0:"none",E=m?{in:u,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return Wo.jsx(Hs,{disablePortal:l,container:x,children:Wo.jsx(Vs,fn({anchorEl:n,direction:i,disablePortal:l,modifiers:s,ref:t,open:m?!b:u,placement:c,popperOptions:d,popperRef:f,slotProps:h,slots:g},v,{style:fn({position:"fixed",top:0,left:0,display:_},p),TransitionProps:E,children:r}))})})),qs=["onChange","maxRows","minRows","style","value"];function Xs(e){return parseInt(e,10)||0}const Js={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Zs(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const eu=D.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:l}=e,a=Vn(e,qs),{current:s}=D.useRef(null!=l),u=D.useRef(null),c=An(t,u),d=D.useRef(null),f=D.useRef(0),[p,m]=D.useState({outerHeightStyle:0}),h=D.useCallback((()=>{const t=u.current,n=Cn(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const l=n.boxSizing,a=Xs(n.paddingBottom)+Xs(n.paddingTop),s=Xs(n.borderBottomWidth)+Xs(n.borderTopWidth),c=i.scrollHeight;i.value="x";const f=i.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*f,p)),r&&(p=Math.min(Number(r)*f,p)),p=Math.max(p,f);return{outerHeightStyle:p+("border-box"===l?a+s:0),overflow:Math.abs(p-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return f.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(f.current+=1,{overflow:r,outerHeightStyle:n}):e},v=D.useCallback((()=>{const e=h();Zs(e)||m((t=>g(t,e)))}),[h]);D.useEffect((()=>{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}((()=>{f.current=0,u.current&&(()=>{const e=h();Zs(e)||Fs.flushSync((()=>{m((t=>g(t,e)))}))})()}));let t;const n=u.current,r=Cn(n);return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),r.removeEventListener("resize",e),t&&t.disconnect()}})),Sn((()=>{v()})),D.useEffect((()=>{f.current=0}),[l]);return Wo.jsxs(D.Fragment,{children:[Wo.jsx("textarea",fn({value:l,onChange:e=>{f.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:fn({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},i)},a)),Wo.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:fn({},Js,i,{padding:0})})]})}));function tu(e,t){return tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tu(e,t)}function nu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tu(e,t)}var ru=!1,ou=z.createContext(null),iu="unmounted",lu="exited",au="entering",su="entered",uu="exiting",cu=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=lu,r.appearStatus=au):o=su:o=t.unmountOnExit||t.mountOnEnter?iu:lu,r.state={status:o},r.nextCallback=null,r}nu(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===iu?{status:lu}: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!==au&&n!==su&&(t=au):n!==au&&n!==su||(t=uu)}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===au){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Bs.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lu&&this.setState({status:iu})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Bs.findDOMNode(this),r],i=o[0],l=o[1],a=this.getTimeouts(),s=r?a.appear:a.enter;!e&&!n||ru?this.safeSetState({status:su},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:au},(function(){t.props.onEntering(i,l),t.onTransitionEnd(s,(function(){t.safeSetState({status:su},(function(){t.props.onEntered(i,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Bs.findDOMNode(this);t&&!ru?(this.props.onExit(r),this.safeSetState({status:uu},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:lu},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:lu},(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:Bs.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],l=o[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===iu)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Vn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return z.createElement(ou.Provider,{value:null},"function"==typeof n?n(e,r):z.cloneElement(z.Children.only(n),r))},t}(z.Component);function du(){}function fu(e,t){var n=Object.create(null);return e&&D.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&D.isValidElement(e)?t(e):e}(e)})),n}function pu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function mu(e,t,n){var r=fu(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 l in e)l in t?i.length&&(o[l]=i,i=[]):i.push(l);var a={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];a[o[s][r]]=n(u)}a[s]=n(s)}for(r=0;r<i.length;r++)a[i[r]]=n(i[r]);return a}(t,r);return Object.keys(o).forEach((function(i){var l=o[i];if(D.isValidElement(l)){var a=i in t,s=i in r,u=t[i],c=D.isValidElement(u)&&!u.props.in;!s||a&&!c?s||!a||c?s&&a&&D.isValidElement(u)&&(o[i]=D.cloneElement(l,{onExited:n.bind(null,l),in:u.props.in,exit:pu(l,"exit",e),enter:pu(l,"enter",e)})):o[i]=D.cloneElement(l,{in:!1}):o[i]=D.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:pu(l,"exit",e),enter:pu(l,"enter",e)})}})),o}cu.contextType=ou,cu.propTypes={},cu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:du,onEntering:du,onEntered:du,onExit:du,onExiting:du,onExited:du},cu.UNMOUNTED=iu,cu.EXITED=lu,cu.ENTERING=au,cu.ENTERED=su,cu.EXITING=uu;var hu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},gu=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}nu(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,fu(n.children,(function(e){return D.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:pu(e,"appear",n),enter:pu(e,"enter",n),exit:pu(e,"exit",n)})}))):mu(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=fu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=fn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Vn(e,["component","childFactory"]),o=this.state.contextValue,i=hu(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?z.createElement(ou.Provider,{value:o},i):z.createElement(ou.Provider,{value:o},z.createElement(t,r,i))},t}(z.Component);gu.propTypes={},gu.defaultProps={component:"div",childFactory:function(e){return e}};function vu(e,t){var n,r;const{timeout:o,easing:i,style:l={}}=e;return{duration:null!=(n=l.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=l.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:l.transitionDelay}}function bu(e){return Gn("MuiPaper",e)}Yn("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 yu=["className","component","elevation","square","variant"],xu=sa("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 fn({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&&fn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${yl("#fff",da(t.elevation))}, ${yl("#fff",da(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),_u=D.forwardRef((function(e,t){const n=la({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:l=!1,variant:a="elevation"}=n,s=Vn(n,yu),u=fn({},n,{component:o,elevation:i,square:l,variant:a}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return jn({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},bu,o)})(u);return Wo.jsx(xu,fn({as:o,ownerState:u,className:pa(c.root,r),ref:t},s))}));const Eu=Yn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Cu=["center","classes","className"];let wu,Su,ku,Tu,Nu=e=>e;const Ru=Lo(wu||(wu=Nu`
43
24
  0% {
44
25
  transform: scale(0);
45
26
  opacity: 0.1;
@@ -49,7 +30,7 @@ import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel
49
30
  transform: scale(1);
50
31
  opacity: 0.3;
51
32
  }
52
- `)),qT=VE(UT||(UT=VT`
33
+ `)),Au=Lo(Su||(Su=Nu`
53
34
  0% {
54
35
  opacity: 1;
55
36
  }
@@ -57,7 +38,7 @@ import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel
57
38
  100% {
58
39
  opacity: 0;
59
40
  }
60
- `)),XT=VE(GT||(GT=VT`
41
+ `)),Ou=Lo(ku||(ku=Nu`
61
42
  0% {
62
43
  transform: scale(1);
63
44
  }
@@ -69,7 +50,7 @@ import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel
69
50
  100% {
70
51
  transform: scale(1);
71
52
  }
72
- `)),JT=AS("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ZT=AS((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:l,in:a,onExited:s,timeout:u}=e,[c,d]=J.useState(!1),f=IS(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:l,height:l,top:-l/2+i,left:-l/2+o},m=IS(n.child,c&&n.childLeaving,r&&n.childPulsate);return a||c||d(!0),J.useEffect((()=>{if(!a&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,a,u]),dC.jsx("span",{className:f,style:p,children:dC.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(YT||(YT=VT`
53
+ `)),Lu=sa("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Mu=sa((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:l,in:a,onExited:s,timeout:u}=e,[c,d]=D.useState(!1),f=pa(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:l,height:l,top:-l/2+i,left:-l/2+o},m=pa(n.child,c&&n.childLeaving,r&&n.childPulsate);return a||c||d(!0),D.useEffect((()=>{if(!a&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,a,u]),Wo.jsx("span",{className:f,style:p,children:Wo.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Tu||(Tu=Nu`
73
54
  opacity: 0;
74
55
  position: absolute;
75
56
 
@@ -112,6 +93,6 @@ import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel
112
93
  animation-iteration-count: infinite;
113
94
  animation-delay: 200ms;
114
95
  }
115
- `),jT.rippleVisible,QT,550,(({theme:e})=>e.transitions.easing.easeInOut),jT.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),jT.child,jT.childLeaving,qT,550,(({theme:e})=>e.transitions.easing.easeInOut),jT.childPulsate,XT,(({theme:e})=>e.transitions.easing.easeInOut)),eN=J.forwardRef((function(e,t){const n=NS({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,l=$x(n,WT),[a,s]=J.useState([]),u=J.useRef(0),c=J.useRef(null);J.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[a]);const d=J.useRef(!1),f=J.useRef(null),p=J.useRef(null),m=J.useRef(null);J.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const h=J.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:l}=e;s((e=>[...e,dC.jsx(ZT,{classes:{ripple:IS(o.ripple,jT.ripple),rippleVisible:IS(o.rippleVisible,jT.rippleVisible),ripplePulsate:IS(o.ripplePulsate,jT.ripplePulsate),child:IS(o.child,jT.child),childLeaving:IS(o.childLeaving,jT.childLeaving),childPulsate:IS(o.childPulsate,jT.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=l}),[o]),g=J.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:l=!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 a=l?null:m.current,s=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.current=setTimeout((()=>{p.current&&(p.current(),p.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=J.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=J.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void(f.current=setTimeout((()=>{b(e,t)})));p.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return J.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),dC.jsx(JT,Wy({className:IS(jT.root,o.root,i),ref:m},l,{children:dC.jsx(DT,{component:null,exit:!0,children:a})}))}));function tN(e){return Dx("MuiButtonBase",e)}const nN=zx("MuiButtonBase",["root","disabled","focusVisible"]),rN=["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"],oN=AS("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"},[`&.${nN.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),iN=J.forwardRef((function(e,t){const n=NS({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:l,component:a="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:p,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:_,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:S,onTouchStart:k,tabIndex:T=0,TouchRippleProps:N,touchRippleRef:R,type:A}=n,O=$x(n,rN),L=J.useRef(null),M=J.useRef(null),P=xx(M,R),{isFocusVisibleRef:I,onFocus:D,onBlur:z,ref:$}=Ax(),[F,B]=J.useState(!1);s&&F&&B(!1),J.useImperativeHandle(r,(()=>({focusVisible:()=>{B(!0),L.current.focus()}})),[]);const[H,j]=J.useState(!1);J.useEffect((()=>{j(!0)}),[]);const W=H&&!u&&!s;function K(e,t,n=c){return yx((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}J.useEffect((()=>{F&&d&&!u&&H&&M.current.pulsate()}),[u,d,F,H]);const U=K("start",_),G=K("stop",h),Y=K("stop",g),V=K("stop",C),Q=K("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),q=K("start",k),X=K("stop",w),Z=K("stop",S),ee=K("stop",(e=>{z(e),!1===I.current&&B(!1),p&&p(e)}),!1),te=yx((e=>{L.current||(L.current=e.currentTarget),D(e),!0===I.current&&(B(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=L.current;return a&&"button"!==a&&!("A"===e.tagName&&e.href)},re=J.useRef(!1),oe=yx((e=>{d&&!re.current&&F&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=yx((e=>{d&&" "===e.key&&M.current&&F&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let le=a;"button"===le&&(O.href||O.to)&&(le=f);const ae={};"button"===le?(ae.type=void 0===A?"button":A,ae.disabled=s):(O.href||O.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const se=xx(t,$,L),ue=Wy({},n,{centerRipple:o,component:a,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:T,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Lx({root:["root",t&&"disabled",n&&"focusVisible"]},tN,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return dC.jsxs(oN,Wy({as:le,className:IS(ce.root,l),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:Q,onMouseUp:V,onDragLeave:Y,onTouchEnd:X,onTouchMove:Z,onTouchStart:q,ref:se,tabIndex:s?-1:T,type:A},ae,O,{children:[i,W?dC.jsx(eN,Wy({ref:P,center:o},N)):null]}))}));function lN(e){return Dx("MuiIconButton",e)}const aN=zx("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),sN=["edge","children","className","color","disabled","disableFocusRipple","size"],uN=AS(iN,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${dx(n.color)}`],n.edge&&t[`edge${dx(n.edge)}`],t[`size${dx(n.size)}`]]}})((({theme:e,ownerState:t})=>Wy({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})`:Hw(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 Wy({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Wy({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Wy({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Hw(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)},{[`&.${aN.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),cN=J.forwardRef((function(e,t){const n=NS({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:l="default",disabled:a=!1,disableFocusRipple:s=!1,size:u="medium"}=n,c=$x(n,sN),d=Wy({},n,{edge:r,color:l,disabled:a,disableFocusRipple:s,size:u}),f=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return Lx({root:["root",n&&"disabled","default"!==r&&`color${dx(r)}`,o&&`edge${dx(o)}`,`size${dx(i)}`]},lN,t)})(d);return dC.jsx(uN,Wy({className:IS(f.root,i),centerRipple:!0,focusRipple:!s,disabled:a,ref:t,ownerState:d},c,{children:o}))}));function dN(e){return Dx("MuiTypography",e)}zx("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const fN=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],pN=AS("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${dx(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Wy({margin:0},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}))),mN={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hN={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gN=J.forwardRef((function(e,t){const n=NS({props:e,name:"MuiTypography"}),r=(e=>hN[e]||e)(n.color),o=Cw(Wy({},n,{color:r})),{align:i="inherit",className:l,component:a,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=mN}=o,p=$x(o,fN),m=Wy({},o,{align:i,color:r,className:l,component:a,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:f}),h=a||(c?"p":f[d]||mN[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e;return Lx({root:["root",i,"inherit"!==e.align&&`align${dx(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},dN,l)})(m);return dC.jsx(pN,Wy({as:h,ref:t,ownerState:m,className:IS(g.root,l)},p))})),vN=["components","componentsProps","slots","slotProps"],bN=AS(hT,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yN=J.forwardRef((function(e,t){var n;const r=bw(),o=NS({props:e,name:"MuiPopper"}),{components:i,componentsProps:l,slots:a,slotProps:s}=o,u=$x(o,vN),c=null!=(n=null==a?void 0:a.root)?n:null==i?void 0:i.Root;return dC.jsx(bN,Wy({direction:null==r?void 0:r.direction,slots:{root:c},slotProps:null!=s?s:l},u,{ref:t}))}));const xN=J.createContext(void 0);function _N(e){return dC.jsx(_w,Wy({},e,{defaultTheme:kS,themeId:Hx}))}function EN(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function CN(e){return Dx("MuiInputBase",e)}const wN=zx("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),SN=["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"],kN=AS("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${dx(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>Wy({},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",[`&.${wN.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Wy({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),TN=AS("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=Wy({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 Wy({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] + .${wN.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},[`&.${wN.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"})})),NN=dC.jsx(_N,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),RN=J.forwardRef((function(e,t){var n;const r=NS({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:l,className:a,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:_=!1,name:E,onBlur:C,onChange:w,onClick:S,onFocus:k,onKeyDown:T,onKeyUp:N,placeholder:R,readOnly:A,renderSuffix:O,rows:L,slotProps:M={},slots:P={},startAdornment:I,type:D="text",value:z}=r,$=$x(r,SN),F=null!=v.value?v.value:z,{current:B}=J.useRef(null!=F),H=J.useRef(),j=J.useCallback((e=>{}),[]),W=xx(H,b,v.ref,j),[K,U]=J.useState(!1),G=J.useContext(xN),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:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:K,J.useEffect((()=>{!G&&d&&K&&(U(!1),C&&C())}),[G,d,K,C]);const V=G&&G.onFilled,Q=G&&G.onEmpty,q=J.useCallback((e=>{!function(e,t=!1){return e&&(EN(e.value)&&""!==e.value||t&&EN(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():V&&V()}),[V,Q]);hx((()=>{B&&q({value:F})}),[F,q,B]);J.useEffect((()=>{q(H.current)}),[]);let X=g,Z=v;_&&"input"===X&&(Z=Wy(L?{type:void 0,minRows:L,maxRows:L}:{type:void 0,maxRows:y,minRows:x},Z),X=xT);J.useEffect((()=>{G&&G.setAdornedStart(Boolean(I))}),[G,I]);const ee=Wy({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:p,error:Y.error,focused:Y.focused,formControl:G,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:_,size:Y.size,startAdornment:I,type:D}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:l,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:m}=e;return Lx({root:["root",`color${dx(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",l&&"focused",a&&"formControl","small"===f&&"sizeSmall",c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},CN,t)})(ee),ne=P.root||s.Root||kN,re=M.root||u.root||{},oe=P.input||s.Input||TN;return Z=Wy({},Z,null!=(n=M.input)?n:u.input),dC.jsxs(J.Fragment,{children:[!f&&NN,dC.jsxs(ne,Wy({},re,!DS(ne)&&{ownerState:Wy({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),S&&S(e)}},$,{className:IS(te.root,re.className,a,A&&"MuiInputBase-readOnly"),children:[I,dC.jsx(xN.Provider,{value:null,children:dC.jsx(oe,Wy({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:l,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{q("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:E,placeholder:R,readOnly:A,required:Y.required,rows:L,value:F,onKeyDown:T,onKeyUp:N,type:D},Z,!DS(oe)&&{as:X,ownerState:Wy({},ee,Z.ownerState)},{ref:W,className:IS(te.input,Z.className,A&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!B){const t=e.target||H.current;if(null==t)throw new Error(Yy(1));q({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),p,O?O(Wy({},Y,{startAdornment:I})):null]}))]})})),AN=SS(),ON=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=pC("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(mw);return J.forwardRef((function(e,l){const a=xw(n),s=Cw(e),{className:u,component:c="div"}=s,d=$x(s,ww);return dC.jsx(i,Wy({as:c,ref:l,className:Bx(u,o?o(r):r),theme:t&&a[t]||a},d))}))}({themeId:Hx,defaultTheme:AN,defaultClassName:"MuiBox-root",generateClassName:Px.generate});function LN(e){return Dx("MuiButton",e)}const MN=zx("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),PN=J.createContext({}),IN=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],DN=e=>Wy({},"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}}),zN=AS(iN,{shouldForwardProp:e=>RS(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${dx(n.color)}`],t[`size${dx(n.size)}`],t[`${n.variant}Size${dx(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 Wy({},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":Wy({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Hw(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})`:Hw(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})`:Hw(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":Wy({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${MN.focusVisible}`]:Wy({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${MN.disabled}`]:Wy({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 ${Hw(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"},[`&.${MN.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${MN.disabled}`]:{boxShadow:"none"}})),$N=AS("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${dx(n.size)}`]]}})((({ownerState:e})=>Wy({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},DN(e)))),FN=AS("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${dx(n.size)}`]]}})((({ownerState:e})=>Wy({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},DN(e)))),BN=J.forwardRef((function(e,t){const n=J.useContext(PN),r=NS({props:Ox(n,e),name:"MuiButton"}),{children:o,color:i="primary",component:l="button",className:a,disabled:s=!1,disableElevation:u=!1,disableFocusRipple:c=!1,endIcon:d,focusVisibleClassName:f,fullWidth:p=!1,size:m="medium",startIcon:h,type:g,variant:v="text"}=r,b=$x(r,IN),y=Wy({},r,{color:i,component:l,disabled:s,disableElevation:u,disableFocusRipple:c,fullWidth:p,size:m,type:g,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:l}=e;return Wy({},l,Lx({root:["root",i,`${i}${dx(t)}`,`size${dx(o)}`,`${i}Size${dx(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${dx(o)}`],endIcon:["endIcon",`iconSize${dx(o)}`]},LN,l))})(y),_=h&&dC.jsx($N,{className:x.startIcon,ownerState:y,children:h}),E=d&&dC.jsx(FN,{className:x.endIcon,ownerState:y,children:d});return dC.jsxs(zN,Wy({ownerState:y,className:IS(n.className,x.root,a),component:l,disabled:s,focusRipple:!c,focusVisibleClassName:IS(x.focusVisible,f),ref:t,type:g},b,{classes:x,children:[_,o,E]}))}));function HN(e){return Dx("MuiDivider",e)}const jN=zx("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),WN=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],KN=AS("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})=>Wy({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)`:Hw(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"})),(({theme:e,ownerState:t})=>Wy({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>Wy({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>Wy({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),UN=AS("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Wy({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)`}))),GN=J.forwardRef((function(e,t){const n=NS({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:l=(o?"div":"hr"),flexItem:a=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==l?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,p=$x(n,WN),m=Wy({},n,{absolute:r,component:l,flexItem:a,light:s,orientation:u,role:c,textAlign:d,variant:f}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:l,textAlign:a,variant:s}=e;return Lx({root:["root",t&&"absolute",s,i&&"light","vertical"===l&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===l&&"withChildrenVertical","right"===a&&"vertical"!==l&&"textAlignRight","left"===a&&"vertical"!==l&&"textAlignLeft"],wrapper:["wrapper","vertical"===l&&"wrapperVertical"]},HN,r)})(m);return dC.jsx(KN,Wy({as:l,className:IS(h.root,i),role:c,ref:t,ownerState:m},p,{children:o?dC.jsx(UN,{className:h.wrapper,ownerState:m,children:o}):null}))})),YN=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function VN(e){return`scale(${e}, ${e**2})`}const QN={entering:{opacity:1,transform:VN(1)},entered:{opacity:1,transform:"none"}},qN="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),XN=J.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:l,onEnter:a,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:f,style:p,timeout:m="auto",TransitionComponent:h=AT}=e,g=$x(e,YN),v=J.useRef(),b=J.useRef(),y=TS(),x=J.useRef(null),_=xx(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=zT({style:p,timeout:m,easing:i},{mode:"enter"});let l;"auto"===m?(l=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=l):l=n,e.style.transition=[y.transitions.create("opacity",{duration:l,delay:r}),y.transitions.create("transform",{duration:qN?l:.666*l,delay:r,easing:o})].join(","),a&&a(e,t)})),S=E(s),k=E(f),T=E((e=>{const{duration:t,delay:n,easing:r}=zT({style:p,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(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:qN?o:.666*o,delay:qN?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=VN(.75),c&&c(e)})),N=E(d);return J.useEffect((()=>()=>{clearTimeout(v.current)}),[]),dC.jsx(h,Wy({appear:r,in:l,nodeRef:x,onEnter:w,onEntered:S,onEntering:C,onExit:T,onExited:N,onExiting:k,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>J.cloneElement(o,Wy({style:Wy({opacity:0,transform:VN(.75),visibility:"exited"!==e||l?void 0:"hidden"},QN[e],p,o.props.style),ref:_},t))}))}));XN.muiSupportAuto=!0;const JN=J.createContext({});function ZN(e){return Dx("MuiList",e)}zx("MuiList",["root","padding","dense","subheader"]);const eR=["children","className","component","dense","disablePadding","subheader"],tR=AS("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})=>Wy({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),nR=J.forwardRef((function(e,t){const n=NS({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:l=!1,disablePadding:a=!1,subheader:s}=n,u=$x(n,eR),c=J.useMemo((()=>({dense:l})),[l]),d=Wy({},n,{component:i,dense:l,disablePadding:a}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Lx({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},ZN,t)})(d);return dC.jsx(JN.Provider,{value:c,children:dC.jsxs(tR,Wy({as:i,className:IS(f.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function rR(e){return Dx("MuiListItemIcon",e)}const oR=zx("MuiListItemIcon",["root","alignItemsFlexStart"]),iR=["className"],lR=AS("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})=>Wy({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),aR=J.forwardRef((function(e,t){const n=NS({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=$x(n,iR),i=Wy({},n,{alignItems:J.useContext(JN).alignItems}),l=(e=>{const{alignItems:t,classes:n}=e;return Lx({root:["root","flex-start"===t&&"alignItemsFlexStart"]},rR,n)})(i);return dC.jsx(lR,Wy({className:IS(l.root,r),ownerState:i,ref:t},o))})),sR=zx("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),uR=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function cR(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function dR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function fR(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 pR(e,t,n,r,o,i){let l=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}const t=!r&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&fR(a,i)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const mR=J.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:l,disabledItemsFocusable:a=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=$x(e,uR),f=J.useRef(null),p=J.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});hx((()=>{r&&f.current.focus()}),[r]),J.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,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)}(fx(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=xx(f,t);let h=-1;J.Children.forEach(i,((e,t)=>{J.isValidElement(e)&&(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1)))}));const g=J.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),J.cloneElement(e,t)}return e}));return dC.jsx(nR,Wy({role:"menu",ref:m,className:l,onKeyDown:e=>{const t=f.current,n=e.key,r=fx(t).activeElement;if("ArrowDown"===n)e.preventDefault(),pR(t,r,s,a,cR);else if("ArrowUp"===n)e.preventDefault(),pR(t,r,s,a,dR);else if("Home"===n)e.preventDefault(),pR(t,null,s,a,cR);else if("End"===n)e.preventDefault(),pR(t,null,s,a,dR);else if(1===n.length){const o=p.current,i=n.toLowerCase(),l=performance.now();o.keys.length>0&&(l-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=l,o.keys.push(i);const s=r&&!o.repeating&&fR(r,o);o.previousKeyMatched&&(s||pR(t,r,!1,a,cR,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function hR(e){return Dx("MuiMenuItem",e)}const gR=zx("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),vR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],bR=AS(iN,{shouldForwardProp:e=>RS(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})=>Wy({},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"}},[`&.${gR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Hw(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Hw(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hw(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})`:Hw(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jN.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jN.inset}`]:{marginLeft:52},[`& .${sR.root}`]:{marginTop:0,marginBottom:0},[`& .${sR.inset}`]:{paddingLeft:36},[`& .${oR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Wy({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oR.root} svg`]:{fontSize:"1.25rem"}})))),yR=J.forwardRef((function(e,t){const n=NS({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:l=!1,disableGutters:a=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,f=$x(n,vR),p=J.useContext(JN),m=J.useMemo((()=>({dense:i||p.dense||!1,disableGutters:a})),[p.dense,i,a]),h=J.useRef(null);hx((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Wy({},n,{dense:m.dense,divider:l,disableGutters:a}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:l}=e;return Wy({},l,Lx({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},hR,l))})(n),b=xx(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),dC.jsx(JN.Provider,{value:m,children:dC.jsx(bR,Wy({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:IS(v.focusVisible,s),className:IS(v.root,d)},f,{ownerState:g,classes:v}))})}));function xR(e){return Dx("MuiTooltip",e)}const _R=zx("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ER=["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 CR=AS(yN,{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})=>Wy({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_R.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_R.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_R.arrow}`]:Wy({},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"] .${_R.arrow}`]:Wy({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),wR=AS("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${dx(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return Wy({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Hw(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},{[`.${_R.popper}[data-popper-placement*="left"] &`]:Wy({transformOrigin:"right center"},t.isRtl?Wy({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Wy({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_R.popper}[data-popper-placement*="right"] &`]:Wy({transformOrigin:"left center"},t.isRtl?Wy({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Wy({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_R.popper}[data-popper-placement*="top"] &`]:Wy({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_R.popper}[data-popper-placement*="bottom"] &`]:Wy({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),SR=AS("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:Hw(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let kR=!1,TR=null,NR={x:0,y:0};function RR(e,t){return n=>{t&&t(n),e(n)}}const AR=J.forwardRef((function(e,t){var n,r,o,i,l,a,s,u,c,d,f,p,m,h,g,v,b,y,x;const _=NS({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:C,components:w={},componentsProps:S={},describeChild:k=!1,disableFocusListener:T=!1,disableHoverListener:N=!1,disableInteractive:R=!1,disableTouchListener:A=!1,enterDelay:O=100,enterNextDelay:L=0,enterTouchDelay:M=700,followCursor:P=!1,id:I,leaveDelay:D=0,leaveTouchDelay:z=1500,onClose:$,onOpen:F,open:B,placement:H="bottom",PopperComponent:j,PopperProps:W={},slotProps:K={},slots:U={},title:G,TransitionComponent:Y=XN,TransitionProps:V}=_,Q=$x(_,ER),q=TS(),X="rtl"===q.direction,[Z,ee]=J.useState(),[te,ne]=J.useState(null),re=J.useRef(!1),oe=R||P,ie=J.useRef(),le=J.useRef(),ae=J.useRef(),se=J.useRef(),[ue,ce]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=J.useRef(void 0!==e),[i,l]=J.useState(t);return[o?e:i,J.useCallback((e=>{o||l(e)}),[])]}({controlled:B,default:!1,name:"Tooltip",state:"open"});let de=ue;const fe=bx(I),pe=J.useRef(),me=J.useCallback((()=>{void 0!==pe.current&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),clearTimeout(se.current)}),[]);J.useEffect((()=>()=>{clearTimeout(ie.current),clearTimeout(le.current),clearTimeout(ae.current),me()}),[me]);const he=e=>{clearTimeout(TR),kR=!0,ce(!0),F&&!de&&F(e)},ge=yx((e=>{clearTimeout(TR),TR=setTimeout((()=>{kR=!1}),800+D),ce(!1),$&&de&&$(e),clearTimeout(ie.current),ie.current=setTimeout((()=>{re.current=!1}),q.transitions.duration.shortest)})),ve=e=>{re.current&&"touchstart"!==e.type||(Z&&Z.removeAttribute("title"),clearTimeout(le.current),clearTimeout(ae.current),O||kR&&L?le.current=setTimeout((()=>{he(e)}),kR?L:O):he(e))},be=e=>{clearTimeout(le.current),clearTimeout(ae.current),ae.current=setTimeout((()=>{ge(e)}),D)},{isFocusVisibleRef:ye,onBlur:xe,onFocus:_e,ref:Ee}=Ax(),[,Ce]=J.useState(!1),we=e=>{xe(e),!1===ye.current&&(Ce(!1),be(e))},Se=e=>{Z||ee(e.currentTarget),_e(e),!0===ye.current&&(Ce(!0),ve(e))},ke=e=>{re.current=!0;const t=C.props;t.onTouchStart&&t.onTouchStart(e)},Te=ve,Ne=be,Re=e=>{ke(e),clearTimeout(ae.current),clearTimeout(ie.current),me(),pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.current=setTimeout((()=>{document.body.style.WebkitUserSelect=pe.current,ve(e)}),M)},Ae=e=>{C.props.onTouchEnd&&C.props.onTouchEnd(e),me(),clearTimeout(ae.current),ae.current=setTimeout((()=>{ge(e)}),z)};J.useEffect((()=>{if(de)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ge(e)}}),[ge,de]);const Oe=xx(C.ref,Ee,ee,t);G||0===G||(de=!1);const Le=J.useRef(),Me={},Pe="string"==typeof G;k?(Me.title=de||!Pe||N?null:G,Me["aria-describedby"]=de?fe:null):(Me["aria-label"]=Pe?G:null,Me["aria-labelledby"]=de&&!Pe?fe:null);const Ie=Wy({},Me,Q,C.props,{className:IS(Q.className,C.props.className),onTouchStart:ke,ref:Oe},P?{onMouseMove:e=>{const t=C.props;t.onMouseMove&&t.onMouseMove(e),NR={x:e.clientX,y:e.clientY},Le.current&&Le.current.update()}}:{}),De={};A||(Ie.onTouchStart=Re,Ie.onTouchEnd=Ae),N||(Ie.onMouseOver=RR(Te,Ie.onMouseOver),Ie.onMouseLeave=RR(Ne,Ie.onMouseLeave),oe||(De.onMouseOver=Te,De.onMouseLeave=Ne)),T||(Ie.onFocus=RR(Se,Ie.onFocus),Ie.onBlur=RR(we,Ie.onBlur),oe||(De.onFocus=Se,De.onBlur=we));const ze=J.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=W.popperOptions)&&e.modifiers&&(t=t.concat(W.popperOptions.modifiers)),Wy({},W.popperOptions,{modifiers:t})}),[te,W]),$e=Wy({},_,{isRtl:X,arrow:E,disableInteractive:oe,placement:H,PopperComponentProp:j,touch:re.current}),Fe=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Lx({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${dx(i.split("-")[0])}`],arrow:["arrow"]},xR,t)})($e),Be=null!=(n=null!=(r=U.popper)?r:w.Popper)?n:CR,He=null!=(o=null!=(i=null!=(l=U.transition)?l:w.Transition)?i:Y)?o:XN,je=null!=(a=null!=(s=U.tooltip)?s:w.Tooltip)?a:wR,We=null!=(u=null!=(c=U.arrow)?c:w.Arrow)?u:SR,Ke=zS(Be,Wy({},W,null!=(d=K.popper)?d:S.popper,{className:IS(Fe.popper,null==W?void 0:W.className,null==(f=null!=(p=K.popper)?p:S.popper)?void 0:f.className)}),$e),Ue=zS(He,Wy({},V,null!=(m=K.transition)?m:S.transition),$e),Ge=zS(je,Wy({},null!=(h=K.tooltip)?h:S.tooltip,{className:IS(Fe.tooltip,null==(g=null!=(v=K.tooltip)?v:S.tooltip)?void 0:g.className)}),$e),Ye=zS(We,Wy({},null!=(b=K.arrow)?b:S.arrow,{className:IS(Fe.arrow,null==(y=null!=(x=K.arrow)?x:S.arrow)?void 0:y.className)}),$e);return dC.jsxs(J.Fragment,{children:[J.cloneElement(C,Ie),dC.jsx(Be,Wy({as:null!=j?j:yN,placement:H,anchorEl:P?{getBoundingClientRect:()=>({top:NR.y,left:NR.x,right:NR.x,bottom:NR.y,width:0,height:0})}:Z,popperRef:Le,open:!!Z&&de,id:fe,transition:!0},De,Ke,{popperOptions:ze,children:({TransitionProps:e})=>dC.jsx(He,Wy({timeout:q.transitions.duration.shorter},e,Ue,{children:dC.jsxs(je,Wy({},Ge,{children:[G,E?dC.jsx(We,Wy({},Ye,{ref:ne})):null]}))}))}))]})})),OR=function(e={}){const{createStyledComponent:t=nS,useThemeProps:n=rS,componentName:r="MuiStack"}=e,o=t(iS);return J.forwardRef((function(e,t){const i=Cw(n(e)),{component:l="div",direction:a="column",spacing:s=0,divider:u,children:c,className:d,useFlexGap:f=!1}=i,p=$x(i,eS),m={direction:a,spacing:s,useFlexGap:f},h=Lx({root:["root"]},(e=>Dx(r,e)),{});return dC.jsx(o,Wy({as:l,ownerState:m,ref:t,className:Bx(h.root,d)},p,{children:u?oS(c,u):c}))}))}({createStyledComponent:AS("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>NS({props:e,name:"MuiStack"})});function LR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const MR=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){LR(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("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"})),PR=J.forwardRef(MR);function IR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const DR=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){IR(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})),zR=J.forwardRef(DR);var $R={},FR=Ig,BR=yv,HR=wg,jR=lg,WR=J;$R.LinkPlugin=function({validateUrl:e}){let[t]=BR.useLexicalComposerContext();return WR.useEffect((()=>{if(!t.hasNodes([FR.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return HR.mergeRegister(t.registerCommand(FR.TOGGLE_LINK_COMMAND,(t=>{if(null===t)return FR.toggleLink(t),!0;if("string"==typeof t)return!(void 0!==e&&!e(t))&&(FR.toggleLink(t),!0);let{url:n,target:r,rel:o,title:i}=t;return FR.toggleLink(n,{rel:o,target:r,title:i}),!0}),jR.COMMAND_PRIORITY_LOW),void 0!==e?t.registerCommand(jR.PASTE_COMMAND,(n=>{let r=jR.$getSelection();if(!jR.$isRangeSelection(r)||r.isCollapsed()||!(n instanceof ClipboardEvent)||null==n.clipboardData)return!1;let o=n.clipboardData.getData("text");return!!e(o)&&(!r.getNodes().some((e=>jR.$isElementNode(e)))&&(t.dispatchCommand(FR.TOGGLE_LINK_COMMAND,o),n.preventDefault(),!0))}),jR.COMMAND_PRIORITY_LOW):()=>{})}),[t,e]),null};var KR=$R;function UR(e){if(e.type)return e;if("#"===e.charAt(0))return UR(function(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(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(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."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function GR(e,t){return e=UR(e),t=function(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)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(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(", "),")")}(e)}const YR={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",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)"},VR=12,QR=14,qR=16,XR=24,JR=3,ZR=300,eA=400,tA=600,nA=700,rA={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};GR(YR.GREYSCALE_0,.05),GR(YR.GREEN_PALE,.5),GR(YR.BLUE_PALE,.5),GR(YR.GREEN_PALE,.5),GR(YR.BLUE_PALE,.5),GR(YR.GREEN_PALE,.5),GR(YR.BLUE_PALE,.5);var oA;function iA(){return iA=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},iA.apply(null,arguments)}GR(YR.GREEN_PALE,.5),GR(YR.BLUE_PALE,.5),GR(YR.GREEN_PALE,.5),GR(YR.BLUE_PALE,.5);var lA,aA=function(e){return J.createElement("svg",iA({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),oA||(oA=J.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function sA(){return sA=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},sA.apply(null,arguments)}var uA=function(e){return J.createElement("svg",sA({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),lA||(lA=J.createElement("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.345z"})))};function cA({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return dC.jsx("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function dA(e={}){return dC.jsx(cA,{...e,children:dC.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[dC.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),dC.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 fA(e={}){return dC.jsx(cA,{...e,children:dC.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:dC.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[dC.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),dC.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function pA(e={}){return dC.jsx(cA,{fontSize:"medium",...e,children:dC.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:dC.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:dC.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function mA(e={}){return dC.jsx(cA,{fontSize:"medium",...e,children:dC.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[dC.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),dC.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 hA({className:e}){return dC.jsx(cA,{fontSize:"small",className:e,children:dC.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:dC.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:dC.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:dC.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[dC.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"}),dC.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 gA(e={}){return dC.jsx(cA,{...e,children:dC.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:dC.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:dC.jsx("rect",{stroke:YR.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}dC.jsx(uA,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),dC.jsx(aA,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),dC.jsx(pA,{}),dC.jsx(mA,{}),dC.jsx((function(e={}){return dC.jsx(cA,{...e,children:dC.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:dC.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:dC.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),dC.jsx(dA,{}),dC.jsx(fA,{}),dC.jsx(aA,{style:{color:YR.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const vA={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:JR,"& > 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 bA=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:YR.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:YR.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:dC.jsx(aA,{"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 ${YR.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:YR.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${YR.MISC_FOCUS_BORDER}`,borderRadius:JR,backgroundColor:YR.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 ${YR.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:YR.WHITE,color:YR.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:JR},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${YR.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:YR.GREYSCALE_0_15,backgroundColor:YR.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:YR.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${YR.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:YR.GREEN_PALE},"&:active":{backgroundColor:YR.GREEN_DARK},"&.Mui-focusVisible":{borderColor:YR.GREEN_PALE,boxShadow:`0 0 0 3px ${Hw(YR.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:YR.BLUE_PALE},"&:active":{backgroundColor:YR.BLUE_DARK},"&.Mui-focusVisible":{borderColor:YR.BLUE_PALE,boxShadow:`0 0 0 3px ${Hw(YR.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:JR,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:YR.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${YR.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:YR.GREYSCALE_0_15,backgroundColor:YR.GREYSCALE_100_60,"&:active":{backgroundColor:YR.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:YR.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${YR.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:YR.PURPLE,"&.Mui-focusVisible":{borderColor:YR.PURPLE,boxShadow:`0 0 0 3px ${Hw(YR.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:YR.GREEN,"&.Mui-focusVisible":{borderColor:YR.GREEN,boxShadow:`0 0 0 3px ${Hw(YR.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:YR.BLUE,"&.Mui-focusVisible":{borderColor:YR.BLUE,boxShadow:`0 0 0 3px ${Hw(YR.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:YR.ORANGE,"&.Mui-focusVisible":{borderColor:YR.ORANGE,boxShadow:`0 0 0 3px ${Hw(YR.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:YR.RED,"&.Mui-focusVisible":{borderColor:YR.RED,boxShadow:`0 0 0 3px ${Hw(YR.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:YR.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:YR.PURPLE_PALE},"&:active":{backgroundColor:YR.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:YR.PURPLE_PALE,boxShadow:`0 0 0 3px ${Hw(YR.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:YR.GREEN_PALE},"&:active":{backgroundColor:YR.GREEN_DARK},"&.Mui-focusVisible":{borderColor:YR.GREEN_PALE,boxShadow:`0 0 0 3px ${Hw(YR.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:YR.BLUE_PALE},"&:active":{backgroundColor:YR.BLUE_DARK},"&.Mui-focusVisible":{borderColor:YR.BLUE_PALE,boxShadow:`0 0 0 3px ${Hw(YR.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:YR.ORANGE_PALE},"&:active":{backgroundColor:YR.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:YR.ORANGE_PALE,boxShadow:`0 0 0 3px ${Hw(YR.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:YR.RED_PALE},"&:active":{backgroundColor:YR.RED_DARK},"&.Mui-focusVisible":{borderColor:YR.RED_PALE,boxShadow:`0 0 0 3px ${Hw(YR.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:YR.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:YR.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:JR,boxShadow:`inset 0 0 0 2px ${YR.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:dC.jsx(uA,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:VR,borderRadius:JR,color:YR.TEXT_PRIMARY,backgroundColor:YR.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:YR.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${YR.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:YR.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:YR.GREYSCALE_0_05,color:YR.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:YR.GREEN,borderColor:YR.GREEN},"&.MuiChip-outlinedInfo":{color:YR.BLUE,borderColor:YR.BLUE},"&.MuiChip-outlinedWarning":{color:YR.ORANGE,borderColor:YR.ORANGE},"&.MuiChip-outlinedError":{color:YR.RED,borderColor:YR.RED}},outlined:{border:`solid 1px ${YR.GREYSCALE_0_15}`,backgroundColor:YR.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:JR,boxShadow:"none",backgroundColor:YR.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:YR.GREEN,borderColor:YR.GREEN},outlinedSecondary:{color:YR.BLUE,borderColor:YR.BLUE},label:{fontFamily:rA.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:dC.jsx(uA,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:dC.jsx(aA,{"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:JR},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:JR,fontSize:QR,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:YR.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${YR.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:YR.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:YR.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:YR.GREYSCALE_0_05}}},popupIndicator:{borderRadius:JR,border:`solid 1px ${YR.GREYSCALE_0_15}`,color:YR.GREYSCALE_0_60,marginRight:0,width:XR,height:XR},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${YR.GREYSCALE_0_15}`},clearIndicator:{borderRadius:JR,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:YR.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:QR}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:VR,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:YR.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:YR.GREYSCALE_25,fontSize:VR,fontFamily:rA.FONT_FAMILY,fontWeight:tA,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:YR.TEXT_PRIMARY},"&.Mui-error":{color:YR.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:YR.TEXT_SECONDARY,content:"'(optional)'",fontWeight:eA,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:YR.TEXT_SECONDARY,content:"'(required)'",fontWeight:eA,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:QR,lineHeight:"16px",backgroundColor:YR.WHITE,borderRadius:JR,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${YR.GREYSCALE_0_05}`,borderColor:YR.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${YR.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${YR.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${YR.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${YR.RED}`,boxShadow:`0px 0px 0px 1px ${YR.RED}, inset 0 2px 0 0 ${YR.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${YR.GREYSCALE_0_10}`,borderColor:YR.GREYSCALE_0_10,backgroundColor:YR.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:YR.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:YR.GREYSCALE_0_15,borderRadius:JR,boxShadow:`inset 0 2px 0 0 ${YR.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>dC.jsx(aA,{...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:YR.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:YR.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:YR.GREYSCALE_0_03},"&:active":{backgroundColor:YR.GREYSCALE_0_10},"&:focus":{backgroundColor:YR.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${YR.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${YR.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:YR.GREYSCALE_0_30,"&:hover":{backgroundColor:YR.GREYSCALE_0_0,borderColor:YR.GREYSCALE_0_15},"& ~svg":{color:YR.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${YR.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:JR}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:YR.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${YR.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:YR.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:QR,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:VR,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:VR,fontWeight:tA,color:YR.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:tA}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${YR.GREYSCALE_0_15}, 0px 0px 0px 1px ${YR.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:dC.jsx(pA,{}),checkedIcon:dC.jsx(mA,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:YR.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${YR.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:YR.GREEN_PALE,boxShadow:`0 0 0 3px ${Hw(YR.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:YR.BLUE_PALE,boxShadow:`0 0 0 3px ${Hw(YR.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:YR.GREYSCALE_0_20}},"&.Mui-disabled":{fill:YR.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:dC.jsx(gA,{}),checkedIcon:dC.jsx(dA,{}),indeterminateIcon:dC.jsx(fA,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:JR,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:YR.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:YR.GREYSCALE_0_55,color:YR.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:YR.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:YR.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:YR.GREYSCALE_0_55,"&:hover":{color:YR.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:YR.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:YR.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:QR,color:YR.TEXT_PRIMARY,lineHeight:"16px",fontWeight:tA},secondary:{fontSize:VR,color:YR.GREYSCALE_45,fontWeight:eA,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:QR,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:QR,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:YR.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:VR,borderBottom:`solid 1px ${YR.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:QR,color:YR.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:YR.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:YR.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:YR.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:YR.RED}}},"&.Mui-focusVisible":{backgroundColor:YR.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:YR.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:YR.GREEN,height:"24px","&.Mui-disabled":{color:YR.GREYSCALE_0_15}},rail:{backgroundColor:YR.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${YR.GREYSCALE_0_05}`,borderRadius:JR,boxShadow:`inset 0px 0px 0px 1px ${YR.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${YR.GREYSCALE_0_05}`,borderRadius:JR},thumb:{height:"16px",width:"16px",borderRadius:JR,backgroundColor:YR.WHITE,boxShadow:`0px 1px 2px 0px ${YR.GREYSCALE_0_15}, 0px 0px 0px 1px ${YR.GREYSCALE_0_05}`,"&:hover":{borderRadius:JR,boxShadow:`0 2px 4px 0 ${YR.GREYSCALE_0_30}, 0 0 0 1px ${YR.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${YR.GREYSCALE_0_15}, 0 0 0 1px ${YR.GREYSCALE_0_06}, 0 0 0 2px ${YR.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${YR.GREYSCALE_0_15}, 0 0 0 1px ${YR.GREYSCALE_0_06}, 0 0 0 2px ${YR.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:YR.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:YR.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:YR.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:YR.GREYSCALE_0_15},markLabel:{color:YR.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:YR.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:YR.WHITE,color:YR.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:YR.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:YR.GREEN_PALE,boxShadow:`0 0 0 3px ${Hw(YR.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:YR.BLUE_PALE,boxShadow:`0 0 0 3px ${Hw(YR.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:YR.GREYSCALE_0_15,borderRadius:JR},thumb:{height:"16px",width:"16px",borderRadius:JR,backgroundColor:YR.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:QR,fontWeight:tA,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${YR.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${YR.MISC_FOCUS_BORDER}`,backgroundColor:YR.GREYSCALE_0_03,borderRadius:JR},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:YR.GREYSCALE_25,"&.Mui-selected":{color:YR.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:QR,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:JR,"&:hover":{backgroundColor:YR.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 ${YR.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${YR.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:JR,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:YR.GREYSCALE_0_05},"&:hover":{backgroundColor:YR.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${YR.GREYSCALE_85}`,borderRight:`1px solid ${YR.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:tA,backgroundColor:YR.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:YR.GREYSCALE_98,borderBottom:`1px solid ${YR.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${YR.GREYSCALE_85}`,borderTop:`1px solid ${YR.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:YR.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:YR.GREYSCALE_0_05,"&:hover":{backgroundColor:YR.GREYSCALE_0_03}},"&&:hover":{backgroundColor:YR.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>dC.jsx(hA,{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 ${YR.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:QR,borderRadius:JR,padding:"7px 16px",border:`1px solid ${YR.GREYSCALE_0_15}`,backgroundColor:YR.GREYSCALE_100_60,color:YR.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:YR.GREYSCALE_0_10,border:`1px solid ${YR.GREYSCALE_0_30}`},"&:hover":{backgroundColor:YR.GREYSCALE_0_03,border:`1px solid ${YR.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:YR.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${YR.MISC_FOCUS_BORDER}`,border:`1px solid ${YR.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:YR.GREYSCALE_25,backgroundColor:YR.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:YR.GREYSCALE_0_10,border:`1px solid ${YR.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:VR,height:24,width:24,padding:7},sizeLarge:{fontSize:qR,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:QR,borderRadius:JR}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:YR.GREYSCALE_20},tooltip:{backgroundColor:YR.GREYSCALE_20,fontSize:VR,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...vA}:{}}))(t);const yA=e=>({mode:"light",primary:{ultraLight:YR.GREEN_ULTRA_LIGHT,light:YR.GREEN_PALE,main:YR.GREEN,dark:YR.GREEN_DARK,extraDark:YR.GREEN_EXTRA_DARK,contrastText:YR.WHITE},secondary:{ultraLight:YR.BLUE_ULTRA_LIGHT,light:YR.BLUE_PALE,main:YR.BLUE,dark:YR.BLUE_DARK,extraDark:YR.BLUE_EXTRA_DARK,contrastText:YR.WHITE},error:{ultraLight:YR.RED_ULTRA_LIGHT,light:YR.RED_PALE,main:YR.RED,dark:YR.RED_DARK,extraDark:YR.RED_EXTRA_DARK,contrastText:YR.WHITE},warning:{ultraLight:YR.ORANGE_ULTRA_LIGHT,light:YR.ORANGE_PALE,main:YR.ORANGE,dark:YR.ORANGE_DARK,extraDark:YR.ORANGE_EXTRA_DARK,contrastText:YR.WHITE},success:{ultraLight:YR.GREEN_ULTRA_LIGHT,light:YR.GREEN_PALE,main:YR.GREEN,dark:YR.GREEN_DARK,extraDark:YR.GREEN_EXTRA_DARK,contrastText:YR.WHITE},info:{ultraLight:YR.BLUE_ULTRA_LIGHT,light:YR.BLUE_PALE,main:YR.BLUE,dark:YR.BLUE_DARK,extraDark:YR.BLUE_EXTRA_DARK,contrastText:YR.WHITE},text:{primary:YR.TEXT_PRIMARY,secondary:YR.TEXT_SECONDARY,disabled:YR.GREYSCALE_0_30},action:{hover:YR.GREYSCALE_0_03,hoverOpacity:.03,selected:YR.GREYSCALE_0_05,selectedOpacity:.05,focus:YR.MISC_FOCUS_BORDER},amethyst:{ultraLight:YR.WHITE,main:YR.PURPLE,light:YR.PURPLE_PALE,dark:YR.PURPLE_DARK,extraDark:YR.GREYSCALE_0_0,contrastText:YR.WHITE},background:{paper:YR.WHITE,default:YR.GREYSCALE_95},divider:YR.GREYSCALE_0_15}),xA=(e="light",t=!1)=>SS(((e,t=!1)=>({components:bA(0,t),palette:yA(),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:QR,fontWeightLight:ZR,fontWeightRegular:eA,fontWeightMedium:tA,fontWeightBold:nA,htmlFontSize:QR,fontFamily:rA.FONT_FAMILY,button:{fontWeight:tA,fontSize:QR,textTransform:"none"},body1:{fontSize:qR,lineHeight:"24px"},body2:{fontSize:QR,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:XR,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:qR,fontWeight:tA,lineHeight:"16px"},h6:{fontSize:QR,fontWeight:tA,lineHeight:"16px"},caption:{color:YR.TEXT_SECONDARY},subtitle1:{fontSize:QR,color:YR.TEXT_SECONDARY},subtitle2:{fontSize:VR,color:YR.TEXT_SECONDARY}},shape:{borderRadius:JR}}))(0,t));function _A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const EA=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_A(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("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"})),CA=J.forwardRef(EA);var wA=Object.defineProperty,SA=Object.getOwnPropertySymbols,kA=Object.prototype.hasOwnProperty,TA=Object.prototype.propertyIsEnumerable,NA=(e,t,n)=>t in e?wA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,RA=(e,t)=>{for(var n in t)wA(e,n,{get:t[n],enumerable:!0})},AA=(e,t,n)=>(NA(e,"symbol"!=typeof t?t+"":t,n),n);RA({},{DEFAULT_LANGUAGE:()=>LA,DEFAULT_LANGUAGE_SHORT:()=>MA,flattenParams:()=>jA,flattenTranslationsJSON:()=>DA,format:()=>WA,formatWithKeys:()=>KA,getLongLanguageDesc:()=>HA,getShortLanguageDesc:()=>BA,parseLangFromUrl:()=>zA,resolveLocale:()=>FA,updateLangAttribute:()=>UA});var OA=[{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"}],LA="en-US",MA="en",PA=["zh-cn","zh-tw","qps-ploc"],IA=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),DA=e=>IA(e)?Object.keys(e).reduce(((t,n)=>{const r=e[n],o=IA(r)&&r.value;return o&&(t[n]=o),t}),{}):{},zA=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},$A=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(PA.includes(e.toLocaleLowerCase()))return OA.find((({long:e})=>e.toLowerCase()===t));const[n]=t.split("-");return OA.find((({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t))},FA=(...e)=>{for(const t of e){const e=$A(t);if(e)return e.short}},BA=e=>{const t=$A(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${MA}'`),MA)},HA=e=>{const t=$A(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${LA}'`),LA)},jA=e=>Array.isArray(e[0])?e[0]:e,WA=(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))},KA=(e,t)=>e.replace(/(\{)(\w+)(\})/g,((e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e})),UA=e=>{const t=BA(e);document.documentElement.setAttribute("lang",t)},GA={},YA=Array.prototype.slice,VA=function(e){return("0"+e.toString()).substr(-2)},QA=function(e){var t=typeof e;return"function"===t||"object"===t},qA=function(e){return"function"===typeof e},XA=function(e){return null!=e},JA=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},ZA=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},eO=function(e){return!0===e||!1===e},tO=function(e){return null===e},nO=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))))},rO=function(e,t){return qA(e)?e(t):e},oO=function(e,t){var n,r,o;for(n in t)t.hasOwnProperty(n)&&(r=t[n],"string"==typeof(o=r)||"[object String]"===Object.prototype.toString.call(o)||ZA(r)||eO(r)||JA(r)||tO(r)?e[n]=r:(null==e[n]&&(e[n]={}),oO(e[n],r)));return e},iO={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"]},lO={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},aO={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},sO={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},uO=[null,"kb","mb","gb","tb"],cO={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};GA.reset=function(){var e;for(e in cO)this[e]=cO[e]},GA.initializeOptions=function(){var e;for(e in cO)XA(this[e])||(this[e]=cO[e])},GA.initializeOptions(),GA.locales={},GA.locales.get=function(e){var t=this[e]||this[GA.locale]||this.default;return qA(t)&&(t=t(e)),!1===JA(t)&&(t=[t]),t},GA.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&GA.locale&&t.push(GA.locale),GA.fallbacks&&GA.defaultLocale&&t.push(GA.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),GA.fallbacks&&[r,o].forEach((function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)}))})),t.length||t.push("en"),n},GA.pluralization={},GA.pluralization.get=function(e){return this[e]||this[GA.locale]||this.default},GA.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},GA.currentLocale=function(){return this.locale||this.defaultLocale},GA.isSet=XA,GA.lookup=function(e,t){t=t||{};var n,r,o,i,l=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);l.length;)if(n=l.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(XA(t.defaultValue))return rO(t.defaultValue,e)},GA.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&QA(n))for(;i.length;)if(r=i.shift(),XA(n[r])){o=n[r];break}return o},GA.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,l,a=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);a.length;)if(r=a.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],QA(i));)0===o.length&&(l=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=l)break}return null==l&&XA(n.defaultValue)&&(l=QA(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:l,translations:i}},GA.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:iO.meridian},GA.prepareOptions=function(){for(var e,t=YA.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(XA(n[r])||(n[r]=e[r]));return n},GA.createTranslationOptions=function(e,t){var n=[{scope:e}];return XA(t.defaults)&&(n=n.concat(t.defaults)),XA(t.defaultValue)&&n.push({message:t.defaultValue}),n},GA.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(XA(t.scope)?(o=t.scope,n=this.lookup(o,i)):XA(t.message)&&(n=rO(t.message,e)),null!=n)return!0}),this)?("string"==typeof n?n=this.interpolate(n,t):JA(n)?n=n.map((function(e){return"string"==typeof e?this.interpolate(e,t):e}),this):QA(n)&&XA(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},GA.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,l=e.match(this.placeholder);if(!l)return e;for(;l.length;)o=(n=l.shift()).replace(this.placeholder,"$1"),r=XA(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,"$")},GA.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))},GA.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]'},GA.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},GA.nullPlaceholder=function(){return GA.missingPlaceholder.apply(GA,arguments)},GA.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),lO);var n,r,o=e<0,i=function(e,t){return nO("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),l=i.split("."),a=[],s=t.format||"%n",u=o?"-":"";for(e=l[0],n=l[1];e.length>0;)a.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=a.join(t.delimiter),t.strip_insignificant_zeros&&n&&(n=n.replace(/0+$/,"")),t.precision>0&&n&&(r+=t.separator+n),r=(s=t.sign_first?"%s"+s:s.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",r).replace("%s",u)},GA.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),aO),this.toNumber(e,t)},GA.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)}},GA.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},GA.strftime=function(e,t,n){n=this.lookup("date",n);var r=GA.meridian();if(n||(n={}),n=this.prepareOptions(n,iO),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(),l=e.getFullYear(),a=e.getMonth()+1,s=e.getHours(),u=s,c=s>11?1:0,d=e.getSeconds(),f=e.getMinutes(),p=e.getTimezoneOffset(),m=Math.floor(Math.abs(p/60)),h=Math.abs(p)-60*m,g=(p>0?"-":"+")+(m.toString().length<2?"0"+m:m)+(h.toString().length<2?"0"+h:h);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[a])).replace("%B",n.month_names[a])).replace("%d",VA(i))).replace("%e",i)).replace("%-d",i)).replace("%H",VA(s))).replace("%-H",s)).replace("%k",s)).replace("%I",VA(u))).replace("%-I",u)).replace("%l",u)).replace("%m",VA(a))).replace("%-m",a)).replace("%M",VA(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",VA(d))).replace("%-S",d)).replace("%w",o)).replace("%y",VA(l))).replace("%-y",VA(l).replace(/^0+/,""))).replace("%Y",l)).replace("%z",g)).replace("%Z",g)},GA.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},GA.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),sO),this.toNumber(e,t)},GA.toHumanSize=function(e,t){for(var n,r,o,i=e,l=0;i>=1024&&l<4;)i/=1024,l+=1;return 0===l?(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."+uO[l],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)},GA.getFullScope=function(e,t){return t=t||{},JA(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},GA.extend=function(e,t){return void 0===e&&void 0===t?{}:oO(e,t)},GA.t=GA.translate.bind(GA),GA.l=GA.localize.bind(GA),GA.p=GA.pluralize.bind(GA);var dO={};RA(dO,{af:()=>bO,ak:()=>yO,am:()=>xO,an:()=>_O,ar:()=>EO,ars:()=>CO,as:()=>wO,asa:()=>SO,ast:()=>kO,az:()=>TO,bal:()=>NO,be:()=>RO,bem:()=>AO,bez:()=>OO,bg:()=>LO,bho:()=>MO,bm:()=>PO,bn:()=>IO,bo:()=>DO,br:()=>zO,brx:()=>$O,bs:()=>FO,ca:()=>BO,ce:()=>HO,ceb:()=>jO,cgg:()=>WO,chr:()=>KO,ckb:()=>UO,cs:()=>GO,cy:()=>YO,da:()=>VO,de:()=>QO,doi:()=>qO,dsb:()=>XO,dv:()=>JO,dz:()=>ZO,ee:()=>eL,el:()=>tL,en:()=>nL,eo:()=>rL,es:()=>oL,et:()=>iL,eu:()=>lL,fa:()=>aL,ff:()=>sL,fi:()=>uL,fil:()=>cL,fo:()=>dL,fr:()=>fL,fur:()=>pL,fy:()=>mL,ga:()=>hL,gd:()=>gL,gl:()=>vL,gsw:()=>bL,gu:()=>yL,guw:()=>xL,gv:()=>_L,ha:()=>EL,haw:()=>CL,he:()=>wL,hi:()=>SL,hnj:()=>kL,hr:()=>TL,hsb:()=>NL,hu:()=>RL,hy:()=>AL,ia:()=>OL,id:()=>LL,ig:()=>ML,ii:()=>PL,io:()=>IL,is:()=>DL,it:()=>zL,iu:()=>$L,ja:()=>FL,jbo:()=>BL,jgo:()=>HL,jmc:()=>jL,jv:()=>WL,jw:()=>KL,ka:()=>UL,kab:()=>GL,kaj:()=>YL,kcg:()=>VL,kde:()=>QL,kea:()=>qL,kk:()=>XL,kkj:()=>JL,kl:()=>ZL,km:()=>eM,kn:()=>tM,ko:()=>nM,ks:()=>rM,ksb:()=>oM,ksh:()=>iM,ku:()=>lM,kw:()=>aM,ky:()=>sM,lag:()=>uM,lb:()=>cM,lg:()=>dM,lij:()=>fM,lkt:()=>pM,ln:()=>mM,lo:()=>hM,lt:()=>gM,lv:()=>vM,mas:()=>bM,mg:()=>yM,mgo:()=>xM,mk:()=>_M,ml:()=>EM,mn:()=>CM,mo:()=>wM,mr:()=>SM,ms:()=>kM,mt:()=>TM,my:()=>NM,nah:()=>RM,naq:()=>AM,nb:()=>OM,nd:()=>LM,ne:()=>MM,nl:()=>PM,nn:()=>IM,nnh:()=>DM,no:()=>zM,nqo:()=>$M,nr:()=>FM,nso:()=>BM,ny:()=>HM,nyn:()=>jM,om:()=>WM,or:()=>KM,os:()=>UM,osa:()=>GM,pa:()=>YM,pap:()=>VM,pcm:()=>QM,pl:()=>qM,prg:()=>XM,ps:()=>JM,pt:()=>ZM,pt_PT:()=>eP,rm:()=>tP,ro:()=>nP,rof:()=>rP,ru:()=>oP,rwk:()=>iP,sah:()=>lP,saq:()=>aP,sat:()=>sP,sc:()=>uP,scn:()=>cP,sd:()=>dP,sdh:()=>fP,se:()=>pP,seh:()=>mP,ses:()=>hP,sg:()=>gP,sh:()=>vP,shi:()=>bP,si:()=>yP,sk:()=>xP,sl:()=>_P,sma:()=>EP,smi:()=>CP,smj:()=>wP,smn:()=>SP,sms:()=>kP,sn:()=>TP,so:()=>NP,sq:()=>RP,sr:()=>AP,ss:()=>OP,ssy:()=>LP,st:()=>MP,su:()=>PP,sv:()=>IP,sw:()=>DP,syr:()=>zP,ta:()=>$P,te:()=>FP,teo:()=>BP,th:()=>HP,ti:()=>jP,tig:()=>WP,tk:()=>KP,tl:()=>UP,tn:()=>GP,to:()=>YP,tpi:()=>VP,tr:()=>QP,ts:()=>qP,tzm:()=>XP,ug:()=>JP,uk:()=>ZP,und:()=>eI,ur:()=>tI,uz:()=>nI,ve:()=>rI,vec:()=>oI,vi:()=>iI,vo:()=>lI,vun:()=>aI,wa:()=>sI,wae:()=>uI,wo:()=>cI,xh:()=>dI,xog:()=>fI,yi:()=>pI,yo:()=>mI,yue:()=>hI,zh:()=>gI,zu:()=>vI});var fO=(e,t)=>t?"other":1==e?"one":"other",pO=(e,t)=>t?"other":0==e||1==e?"one":"other",mO=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",hO=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},gO=(e,t)=>"other",vO=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",bO=fO,yO=pO,xO=mO,_O=fO,EO=(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"},CO=(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"},wO=(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",SO=fO,kO=hO,TO=(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"},NO=(e,t)=>1==e?"one":"other",RO=(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"},AO=fO,OO=fO,LO=fO,MO=pO,PO=gO,IO=(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",DO=gO,zO=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),l=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==l?"many":"other"},$O=fO,FO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==l&&11!=a||1==s&&11!=u?"one":i&&l>=2&&l<=4&&(a<12||a>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},BO=(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"},HO=fO,jO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=l&&6!=l&&9!=l||!i&&4!=a&&6!=a&&9!=a?"one":"other"},WO=fO,KO=fO,UO=fO,GO=(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"},YO=(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",VO=(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"},QO=hO,qO=mO,XO=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-2),a=o.slice(-2);return t?"other":i&&1==l||1==a?"one":i&&2==l||2==a?"two":i&&(3==l||4==l)||3==a||4==a?"few":"other"},JO=fO,ZO=gO,eL=fO,tL=fO,nL=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),l=o&&n[0].slice(-2);return t?1==i&&11!=l?"one":2==i&&12!=l?"two":3==i&&13!=l?"few":"other":1==e&&r?"one":"other"},rL=fO,oL=(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"},iL=hO,lL=fO,aL=mO,sL=(e,t)=>t?"other":e>=0&&e<2?"one":"other",uL=hO,cL=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=l&&6!=l&&9!=l||!i&&4!=a&&6!=a&&9!=a?"one":"other"},dL=fO,fL=(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"},pL=fO,mL=hO,hL=(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"},gL=(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"},vL=hO,bL=fO,yL=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",xL=pO,_L=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),l=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=l&&20!=l&&40!=l&&60!=l&&80!=l?o?"other":"many":"few"},EL=fO,CL=fO,wL=(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"},SL=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",kL=gO,TL=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==l&&11!=a||1==s&&11!=u?"one":i&&l>=2&&l<=4&&(a<12||a>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},NL=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-2),a=o.slice(-2);return t?"other":i&&1==l||1==a?"one":i&&2==l||2==a?"two":i&&(3==l||4==l)||3==a||4==a?"few":"other"},RL=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",AL=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",OL=hO,LL=gO,ML=gO,PL=gO,IL=hO,DL=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,l=r.slice(-1),a=r.slice(-2);return t?"other":i&&1==l&&11!=a||o%10==1&&o%100!=11?"one":"other"},zL=(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"},$L=vO,FL=gO,BL=gO,HL=fO,jL=fO,WL=gO,KL=gO,UL=(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"},GL=(e,t)=>t?"other":e>=0&&e<2?"one":"other",YL=fO,VL=fO,QL=gO,qL=gO,XL=(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"},JL=fO,ZL=fO,eM=gO,tM=mO,nM=gO,rM=fO,oM=fO,iM=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",lM=fO,aM=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),l=r&&n[0].slice(-5),a=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&&(l>=1e3&&l<=2e4||4e4==l||6e4==l||8e4==l)||0!=e&&1e5==a?"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=fO,uM=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},cM=fO,dM=fO,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"},pM=gO,mM=pO,hM=(e,t)=>t&&1==e?"one":"other",gM=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),l=o&&n[0].slice(-2);return t?"other":1==i&&(l<11||l>19)?"one":i>=2&&i<=9&&(l<11||l>19)?"few":0!=r?"many":"other"},vM=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,l=i&&n[0].slice(-1),a=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==l||a>=11&&a<=19||2==o&&s>=11&&s<=19?"zero":1==l&&11!=a||2==o&&1==u&&11!=s||2!=o&&1==u?"one":"other"},bM=fO,yM=pO,xM=fO,_M=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?1==l&&11!=a?"one":2==l&&12!=a?"two":7!=l&&8!=l||17==a||18==a?"other":"many":i&&1==l&&11!=a||1==s&&11!=u?"one":"other"},EM=fO,CM=fO,wM=(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"},SM=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",kM=(e,t)=>t&&1==e?"one":"other",TM=(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"},NM=gO,RM=fO,AM=vO,OM=fO,LM=fO,MM=(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"},PM=hO,IM=fO,DM=fO,zM=fO,$M=gO,FM=fO,BM=pO,HM=fO,jM=fO,WM=fO,KM=(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"},UM=fO,GM=gO,YM=pO,VM=fO,QM=mO,qM=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),l=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(l<12||l>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&l>=12&&l<=14?"many":"other"},XM=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,l=i&&n[0].slice(-1),a=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==l||a>=11&&a<=19||2==o&&s>=11&&s<=19?"zero":1==l&&11!=a||2==o&&1==u&&11!=s||2!=o&&1==u?"one":"other"},JM=fO,ZM=(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"},eP=(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"},tP=fO,nP=(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"},rP=fO,oP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),l=r.slice(-2);return t?"other":o&&1==i&&11!=l?"one":o&&i>=2&&i<=4&&(l<12||l>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&l>=11&&l<=14?"many":"other"},iP=fO,lP=gO,aP=fO,sP=vO,uP=(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"},cP=(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"},dP=fO,fP=fO,pP=vO,mP=fO,hP=gO,gP=gO,vP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==l&&11!=a||1==s&&11!=u?"one":i&&l>=2&&l<=4&&(a<12||a>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},bP=(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"},yP=(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"},xP=(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"},_P=(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"},EP=vO,CP=vO,wP=vO,SP=vO,kP=vO,TP=fO,NP=fO,RP=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return t?1==e?"one":4==o&&14!=i?"many":"other":1==e?"one":"other"},AP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==l&&11!=a||1==s&&11!=u?"one":i&&l>=2&&l<=4&&(a<12||a>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},OP=fO,LP=fO,MP=fO,PP=gO,IP=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),l=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==l||12==l?"other":"one":1==e&&r?"one":"other"},DP=hO,zP=fO,$P=fO,FP=fO,BP=fO,HP=gO,jP=pO,WP=fO,KP=(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"},UP=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=l&&6!=l&&9!=l||!i&&4!=a&&6!=a&&9!=a?"one":"other"},GP=fO,YP=gO,VP=gO,QP=fO,qP=fO,XP=(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"},JP=fO,ZP=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,l=i&&n[0].slice(-1),a=i&&n[0].slice(-2),s=r.slice(-1),u=r.slice(-2);return t?3==l&&13!=a?"few":"other":o&&1==s&&11!=u?"one":o&&s>=2&&s<=4&&(u<12||u>14)?"few":o&&0==s||o&&s>=5&&s<=9||o&&u>=11&&u<=14?"many":"other"},eI=gO,tI=hO,nI=fO,rI=fO,oI=(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"},iI=(e,t)=>t&&1==e?"one":"other",lI=fO,aI=fO,sI=pO,uI=fO,cI=gO,dI=fO,fI=fO,pI=hO,mI=gO,hI=gO,gI=gO,vI=mO,bI=class e{static configure(t,n=LA){e.translations=t,e.language=HA(n),e.languageShort=BA(n),UA(e.language),e.onTranslationsChangeListeners.forEach((e=>e())),e.i18nProvider=GA,GA.missingTranslation=e=>e,GA.defaultSeparator=null,GA.locale=e.language,GA.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];GA.pluralization[e.language]=e=>{try{const t=dO[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=KA(o,n)),o}static getPlural(t,n,r){return e.i18nProvider.t(t,((e,t)=>{for(var n in t||(t={}))kA.call(t,n)&&NA(e,n,t[n]);if(SA)for(var n of SA(t))TA.call(t,n)&&NA(e,n,t[n]);return e})({count:n},r))}static append(t){Object.assign(e.translations,t),e.onTranslationsChangeListeners.forEach((e=>e()))}static appendPlurals(t){Object.assign(e.translationsPlurals,t),e.onTranslationsChangeListeners.forEach((e=>e()))}static onTranslationsChange(t){return e.onTranslationsChangeListeners.push(t),()=>{e.onTranslationsChangeListeners.splice(e.onTranslationsChangeListeners.indexOf(t))}}};AA(bI,"translations",{}),AA(bI,"translationsPlurals",{}),AA(bI,"language"),AA(bI,"languageShort"),AA(bI,"onTranslationsChangeListeners",[]),AA(bI,"i18nProvider"),AA(bI,"get",((e,...t)=>{var n;const r=jA(t);let o=null!=(n=bI.translations[e])?n:e;return r.length>0&&(o=WA(o,...r)),o}));var yI=bI;var xI=function(){const[e,t]=J.useState(0);return J.useEffect((()=>{const n=yI.onTranslationsChange((()=>{t(e+1)}));return()=>{n()}}),[]),yI.get},_I=yI,EI={},CI=yv,wI=J;EI.AutoFocusPlugin=function({defaultSelection:e}){let[t]=CI.useLexicalComposerContext();return wI.useEffect((()=>{t.focus((()=>{let e=document.activeElement,n=t.getRootElement();null===n||null!==e&&n.contains(e)||n.focus({preventScroll:!0})}),{defaultSelection:e})}),[e,t]),null};var SI=EI,kI={},TI=yv,NI=J;function RI(){return RI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RI.apply(this,arguments)}var AI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?NI.useLayoutEffect:NI.useEffect;kI.ContentEditable=function({ariaActiveDescendant:e,ariaAutoComplete:t,ariaControls:n,ariaDescribedBy:r,ariaExpanded:o,ariaLabel:i,ariaLabelledBy:l,ariaMultiline:a,ariaOwns:s,ariaRequired:u,autoCapitalize:c,className:d,id:f,role:p="textbox",spellCheck:m=!0,style:h,tabIndex:g,"data-testid":v,...b}){let[y]=TI.useLexicalComposerContext(),[x,_]=NI.useState(!1),E=NI.useCallback((e=>{y.setRootElement(e)}),[y]);return AI((()=>(_(y.isEditable()),y.registerEditableListener((e=>{_(e)})))),[y]),NI.createElement("div",RI({},b,{"aria-activedescendant":x?e:void 0,"aria-autocomplete":x?t:"none","aria-controls":x?n:void 0,"aria-describedby":r,"aria-expanded":x&&"combobox"===p?!!o:void 0,"aria-label":i,"aria-labelledby":l,"aria-multiline":a,"aria-owns":x?s:void 0,"aria-readonly":!x||void 0,"aria-required":u,autoCapitalize:c,className:d,contentEditable:x,"data-testid":v,id:f,ref:E,role:p,spellCheck:m,style:h,tabIndex:g}))};var OI=kI,LI=J;function MI(e,t){return MI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MI(e,t)}var PI={error:null},II=function(e){function t(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state=PI,t.resetErrorBoundary=function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t.props.onReset||(e=t.props).onReset.apply(e,r),t.reset()},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,MI(e,t)}(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.setState(PI)},n.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},n.componentDidUpdate=function(e,t){var n,r,o=this.props.resetKeys;null!==this.state.error&&null!==t.error&&function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))}(e.resetKeys,o)&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,e.resetKeys,o),this.reset())},n.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,r=t.FallbackComponent;if(t=t.fallback,null!==e){if(e={error:e,resetErrorBoundary:this.resetErrorBoundary},LI.isValidElement(t))return t;if("function"==typeof n)return n(e);if(r)return LI.createElement(r,e);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(LI.Component);const DI=function({children:e,onError:t}){return LI.createElement(II,{fallback:LI.createElement("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"}},"An error was thrown."),onError:t},e)};var zI=m(DI),$I={},FI={},BI=lg;function HI(e,t=!0){return!e&&(e=jI(),t&&(e=e.trim()),""===e)}function jI(){return BI.$getRoot().getTextContent()}function WI(e){if(!HI(e,!1))return!1;let t=(e=BI.$getRoot().getChildren()).length;if(1<t)return!1;for(let r=0;r<t;r++){var n=e[r];if(BI.$isDecoratorNode(n))return!1;if(BI.$isElementNode(n)){if(!BI.$isParagraphNode(n)||0!==n.__indent)return!1;let e=(n=n.getChildren()).length;for(let t=0;t<e;t++)if(!BI.$isTextNode(n[r]))return!1}}return!0}FI.$canShowPlaceholder=WI,FI.$canShowPlaceholderCurry=function(e){return()=>WI(e)},FI.$findTextIntersectionFromCharacters=function(e,t){var n=e.getFirstChild();e=0;e:for(;null!==n;){if(BI.$isElementNode(n)){var r=n.getFirstChild();if(null!==r){n=r;continue}}else if(BI.$isTextNode(n)){if(e+(r=n.getTextContentSize())>t)return{node:n,offset:t-e};e+=r}if(null===(r=n.getNextSibling())){for(n=n.getParent();null!==n;){if(null!==(r=n.getNextSibling())){n=r;continue e}n=n.getParent()}break}n=r}return null},FI.$isRootTextContentEmpty=HI,FI.$isRootTextContentEmptyCurry=function(e,t){return()=>HI(e,t)},FI.$rootTextContent=jI,FI.registerLexicalTextEntity=function(e,t,n,r){let o=e=>{const t=BI.$createTextNode(e.getTextContent());t.setFormat(e.getFormat()),e.replace(t)},i=e.registerNodeTransform(BI.TextNode,(e=>{if(e.isSimpleText()){var i=e.getPreviousSibling(),l=e.getTextContent(),a=e;if(BI.$isTextNode(i)){var s=i.getTextContent(),u=t(s+l);if(i instanceof n){if(null===u||0!==i.getLatest().__mode)return void o(i);if(0<(u=u.end-s.length))return a=s+(a=l.slice(0,u)),i.select(),i.setTextContent(a),void(u===l.length?e.remove():(i=l.slice(u),e.setTextContent(i)))}else if(null===u||u.start<s.length)return}for(;;){if(l=u=null===(e=t(l))?"":l.slice(e.end),""===u){if(s=a.getNextSibling(),BI.$isTextNode(s)){if(u=a.getTextContent()+s.getTextContent(),null===(u=t(u))){s instanceof n?o(s):s.markDirty();break}if(0!==u.start)break}}else if(null!==(s=t(u))&&0===s.start)break;if(null===e)break;if(0===e.start&&BI.$isTextNode(i)&&i.isTextEntity())continue;let c;if(0===e.start?[c,a]=a.splitText(e.end):[,c,a]=a.splitText(e.start,e.end),(e=r(c)).setFormat(c.getFormat()),c.replace(e),null==a)break}}}));return e=e.registerNodeTransform(n,(e=>{var r=e.getTextContent();const i=t(r);null===i||0!==i.start?o(e):r.length>i.end?e.splitText(i.end):(r=e.getPreviousSibling(),BI.$isTextNode(r)&&r.isTextEntity()&&(o(r),o(e)),r=e.getNextSibling(),BI.$isTextNode(r)&&r.isTextEntity()&&(o(r),e instanceof n&&o(e)))})),[i,e]};var KI=FI,UI={},GI=lg;UI.registerDragonSupport=function(e){let t=window.location.origin,n=n=>{if(n.origin===t){var r=e.getRootElement();if(document.activeElement===r&&"string"==typeof(r=n.data)){try{var o=JSON.parse(r)}catch(e){return}if(o&&"nuanria_messaging"===o.protocol&&"request"===o.type&&(o=o.payload)&&"makeChanges"===o.functionId&&(o=o.args)){const[t,r,i,l,a]=o;e.update((()=>{const e=GI.$getSelection();if(GI.$isRangeSelection(e)){var o=e.anchor;let s=o.getNode(),u=0,c=0;GI.$isTextNode(s)&&0<=t&&0<=r&&(u=t,c=t+r,e.setTextNodeRange(s,u,s,c)),u===c&&""===i||(e.insertRawText(i),s=o.getNode()),GI.$isTextNode(s)&&(u=l,c=l+a,u=u>(o=s.getTextContentSize())?o:u,c=c>o?o:c,e.setTextNodeRange(s,u,s,c)),n.stopImmediatePropagation()}}))}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}};var YI=yv,VI=ay,QI=J,qI=KI,XI=wg,JI=ld,ZI=UI,eD=Hb,tD="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?QI.useLayoutEffect:QI.useEffect;function nD(e){return e.getEditorState().read(qI.$canShowPlaceholderCurry(e.isComposing()))}function rD({content:e}){var[t]=YI.useLexicalComposerContext();t=function(e){let[t,n]=QI.useState((()=>nD(e)));return tD((()=>{function t(){let t=nD(e);n(t)}return t(),XI.mergeRegister(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t);let n=VI();return t?"function"==typeof e?e(n):e:null}$I.RichTextPlugin=function({contentEditable:e,placeholder:t,ErrorBoundary:n}){let[r]=YI.useLexicalComposerContext();return n=function(e,t){let[n,r]=QI.useState((()=>e.getDecorators()));return tD((()=>e.registerDecoratorListener((e=>{JI.flushSync((()=>{r(e)}))}))),[e]),QI.useEffect((()=>{r(e.getDecorators())}),[e]),QI.useMemo((()=>{let r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){let l=o[i],a=QI.createElement(t,{onError:t=>e._onError(t)},QI.createElement(QI.Suspense,{fallback:null},n[l])),s=e.getElementByKey(l);null!==s&&r.push(JI.createPortal(a,s,l))}return r}),[t,n,e])}(r,n),function(e){tD((()=>XI.mergeRegister(eD.registerRichText(e),ZI.registerDragonSupport(e))),[e])}(r),QI.createElement(QI.Fragment,null,e,QI.createElement(rD,{content:t}),n)};var oD=$I;function iD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("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"})),aD=J.forwardRef(lD);function sD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),Z.createElement("use",{transform:"matrix(-1 0 0 1 16 0)"})),cD=J.forwardRef(uD);function dD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("path",{d:"M0 1h15v2H0zm13 4v2H0V5zM0 11V9h16v2zm0 4v-2h10v2z"})),pD=J.forwardRef(fD);function mD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})),gD=J.forwardRef(hD);function vD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),yD=J.forwardRef(bD);function xD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _D=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("path",{d:"M1.5 10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m13.75.75a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 1 1 0-1.5zM1.5 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m13.75.75a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1 0-1.5z"})),ED=J.forwardRef(_D);function CD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){CD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("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"})),SD=J.forwardRef(wD);function kD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("path",{d:"M2.05 9q.371 0 .72.09.349.088.623.275.273.185.436.467t.163.66a1.38 1.38 0 0 1-.284.86q-.133.179-.304.334l-.173.154-.18.152-1.245 1.004H4V14H.114v-.963l2.095-1.72.123-.115q.114-.116.196-.235a.7.7 0 0 0 .121-.399.54.54 0 0 0-.182-.423q-.183-.162-.486-.162a.7.7 0 0 0-.52.203.83.83 0 0 0-.217.406l-.022.127L0 10.57l.031-.181q.06-.264.193-.48.179-.29.452-.492a2 2 0 0 1 .626-.31q.352-.105.747-.106m13.2 1.75a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5zM3 2v5H1.698V3.328l-1.024.72L0 3.208 1.806 2zm12.25 1.75a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5z"})),ND=J.forwardRef(TD);function RD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){RD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("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"})),OD=J.forwardRef(AD);function LD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const MD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){LD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("path",{d:"M9.034 14.99V15H3V1h6.034v.034Q9.246 1 9.466 1c1.666 0 3.017 1.522 3.017 3.4 0 1.376-.726 2.562-1.77 3.097C12.056 8.083 13 9.475 13 11.1c0 2.154-1.66 3.9-3.707 3.9q-.13 0-.259-.01M5.586 3.5v3.2h2.71a1.6 1.6 0 1 0 0-3.2zm0 5.5v3.8H8.86a1.9 1.9 0 0 0 0-3.8z"}),Z.createElement("use",{fillRule:"evenodd"})),PD=J.forwardRef(MD);function ID(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const DD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ID(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("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"})),zD=J.forwardRef(DD);function $D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$D(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("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"})),BD=J.forwardRef(FD);function HD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("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"})),WD=J.forwardRef(jD);function KD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const UD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){KD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("path",{d:"m10.927 1.255-3.886 13.6A.2.2 0 0 1 6.85 15H5.265a.2.2 0 0 1-.192-.255l3.886-13.6A.2.2 0 0 1 9.15 1h1.584a.2.2 0 0 1 .192.255"})),GD=J.forwardRef(UD);function YD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const VD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("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"})),QD=J.forwardRef(VD);function qD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XD=(e,t)=>Z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Z.createElement("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"})),JD=J.forwardRef(XD),ZD=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,ez=[e=>{const t=ZD.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"}}},ty.createLinkMatcherWithRegExp(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,(e=>`mailto:${e}`))];function tz(){return J.createElement(ty.AutoLinkPlugin,{matchers:ez})}const nz=()=>{const[e]=yv.useLexicalComposerContext(),t=sy(),n=J.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 J.useEffect((()=>wg.mergeRegister(e.registerMutationListener(Ig.LinkNode,(e=>{n(e)})),e.registerMutationListener(Ig.AutoLinkNode,(e=>{n(e)})),e.registerCommand(lg.CLICK_COMMAND,(t=>(t.metaKey&&t.target&&e.getEditorState().read((()=>{const e=lg.$getSelection();let t;if(lg.$isRangeSelection(e)&&(t=e.focus.getNode().getParent()),lg.$isNodeSelection(e)&&(t=e.getNodes()[0]),Ig.$isAutoLinkNode(t)||Ig.$isLinkNode(t)){const e=t.getURL();setTimeout((()=>{const t=window.open(e,"_blank");null==t||t.focus()}),0)}})),!1)),lg.COMMAND_PRIORITY_EDITOR))),[e,n]),null};function rz(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?bg.$isAtNodeEnd(n)?r:o:bg.$isAtNodeEnd(t)?r:o}const oz=new Set(["http:","https:","mailto:","sms:","tel:"]),iz=e=>{const t=e;return t.password="",t.username="",t};function lz(e,t){try{const n=new URL(e);return oz.has(n.protocol)?(null==t?void 0:t.isEnabled("QB_27044_TEXT_REMOVE_URL_CREDENTIALS"))?{url:iz(n).toString(),target:"_blank"}:{url:e,target:"_blank"}:{url:"about:blank"}}catch(t){return{url:e,target:"_blank"}}}const az=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function sz(e){return"https://"===e||az.test(e)}const uz=AS(OR)((({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)}))),cz=({anchorEl:e,link:t,onChanged:n,onOpened:r,flags:o})=>{const i=Boolean(e),l=J.useRef(null),[a,s]=J.useState(t);J.useEffect((()=>{s(t)}),[t]);const u=J.useCallback((()=>{n(a),window.open(lz(a,o).url,"_blank"),r()}),[a,r,n,o]),c=J.useCallback((e=>{e.preventDefault(),e.stopPropagation(),n(a)}),[a,n]),d=J.useCallback((e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))}),[a,n]),f=J.useCallback((e=>{e.preventDefault(),s(e.currentTarget.value)}),[]);return Z.createElement(yN,{open:i,anchorEl:e,placement:"bottom-start",sx:{zIndex:1},transition:!0},(({TransitionProps:e})=>Z.createElement(XN,{...e},Z.createElement(HT,{className:"tekPopperMenu"},Z.createElement(uz,{direction:"row"},Z.createElement(RN,{ref:l,placeholder:t,margin:"dense",size:"small",value:a,onChange:f,onKeyDown:d}),Z.createElement(cN,{onClick:u},Z.createElement(PR,null)),Z.createElement(cN,{onClick:c},Z.createElement(zR,null)))))))},dz=({flags:e})=>{const[t]=yv.useLexicalComposerContext(),n=sy(),[r,o]=J.useState(null),[i,l]=J.useState(""),a=J.useRef(!1),s=J.useCallback((()=>{if(a.current)return a.current=!1,!1;const e=lg.$getSelection();if(lg.$isRangeSelection(e)){const n=rz(e),r=n.getParent();if(Ig.$isAutoLinkNode(r)||Ig.$isAutoLinkNode(n))return o(null),l(""),!1;let i;if(Ig.$isLinkNode(r)&&(i=r),Ig.$isLinkNode(n)&&(i=n),Ig.$isLinkNode(i)){const e=t.getElementByKey(null==i?void 0:i.getKey());return l(i.getURL()),o(e),!0}o(null),l("")}return!1}),[t]),u=J.useCallback((n=>{a.current=!0,t.update((()=>{t.dispatchCommand(Ig.TOGGLE_LINK_COMMAND,lz(n,e))}),{onUpdate:()=>{o(null)}})}),[t,e]),c=J.useCallback((()=>{o(null)}),[]);return J.useEffect((()=>wg.mergeRegister(t.registerCommand(lg.SELECTION_CHANGE_COMMAND,(()=>s()),lg.COMMAND_PRIORITY_LOW),t.registerCommand(lg.CLICK_COMMAND,(()=>s()),lg.COMMAND_PRIORITY_LOW))),[t,s]),n?Z.createElement(cz,{anchorEl:r,link:i,onChanged:u,onOpened:c,flags:e}):null};function fz(){return J.createElement(KR.LinkPlugin,{validateUrl:sz})}!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 pz=({children:e})=>Z.createElement(LS,{theme:xA()},e),mz={namespace:"text-editor-kit",theme:{ltr:"tek__ltr",rtl:"tek__rtl",paragraph:"tek__editor__paragraph",placeholder:"text_editor__placeholder",quote:"tek__quote",table:"tek__table",tableCell:"tek__tableCell",heading:{h1:"tek__h1",h2:"tek__h2",h3:"tek__h3"},text:{base:"tek__textBase",bold:"tek__textBold",italic:"tek__textItalic",underline:"tek__textUnderline"},list:{listitem:"tek__listItem",nested:{listitem:"tek__nestedListItem"},olDepth:["tek__ol1","tek__ol2","tek__ol3","tek__ol4","tek__ol5"],ul:"tek__ul"}},nodes:[Hb.HeadingNode,Hb.QuoteNode,mv.ListNode,mv.ListItemNode,Ig.LinkNode,Ig.AutoLinkNode],onError:e=>{console.log(e)}},hz=({children:e,initialConfig:t,flags:n})=>Z.createElement(pz,null,Z.createElement("div",{className:"tek__editor__Wrapper"},Z.createElement(kv.LexicalComposer,{initialConfig:t||mz},Z.createElement("div",{className:"tek__editor__container"+((null==n?void 0:n.isEnabled("QB_26358_SN_TEXT_SCROLLBAR"))?" tek__editor__container__scrollbar":"")},e,Z.createElement(jv.ListPlugin,null),Z.createElement(Qv.TabIndentationPlugin,null),Z.createElement(fz,null),Z.createElement(tz,null),Z.createElement(dz,{flags:n}),Z.createElement(nz,null),Z.createElement(Iv.HistoryPlugin,null)))));class gz extends lg.ElementNode{static getType(){return"TekCellNode"}static clone(e){return new gz(e.__hasBorders,e.__key)}static importJSON(e){return new gz(void 0===e.hasBorders||e.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 vz=e=>new gz(e),bz=e=>e instanceof gz;class yz extends lg.ElementNode{static getType(){return"TekTableNode"}static clone(e){return new yz(e.__hasBorders,e.__width,e.__key)}static importJSON(e){const t=void 0===e.hasBorders||e.hasBorders,n=void 0===e.width?"100%":e.width;return new yz(t,n)}constructor(e,t,n){super(n),this.__needsUpdate=!1,this.__hasBorders=e,this.__width=t}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,width:this.__width,type:"TekTableNode",version:1}}createDOM(e){const t=document.createElement("table");return t.classList.add(e.theme.table||""),t.style.width=this.__width,t}updateDOM(e){const t=this.__needsUpdate;try{!0===e.__needsUpdate&&(this.getWritable().__needsUpdate=!1)}catch(e){}return t||this.__width!==e.__width}markNeedsUpdate(){this.getWritable().__needsUpdate=!0}canBeEmpty(){return!1}canExtractContents(){return!1}isShadowRoot(){return!0}canSelectBefore(){return!0}canIndent(){return!1}getResizeNode(){return this.getChildAtIndex(1)}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}setWidth(e){this.getWritable().__width=e}isValid(){const e=this.getChildren();return!(e.length<3)&&"TekColGroupNode"===e[0].getType()&&"TEK_TABLE_RESIZE_NODE"===e[1].getType()&&"TekRowNode"===e[2].getType()}}function xz(e){return e instanceof yz}class _z extends lg.ElementNode{static getType(){return"TekRowNode"}static clone(e){return new _z(e.__key)}static importJSON(){return new _z}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 Ez(e){return e instanceof _z}const Cz=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),bz(t))return t;return null},wz=e=>{let t=e;for(;null!==t;){if(xz(t))return t;t=null==t?void 0:t.getParent()}return null},Sz=(e,t)=>{const n=wz(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},kz=e=>null==e?void 0:e.getChildAtIndex(2),Tz=e=>{const t=e.getParent();if(Ez(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},Nz=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,Rz=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},Az=e=>{if(!e)return[];return e.getChildren().filter((e=>Ez(e)))},Oz=e=>{let t=!1;return Az(e).forEach((e=>{e.getChildren().forEach((e=>{const n=e;n.clear(),n.append(lg.$createParagraphNode()),t=!0}))})),t},Lz=e=>{var t;const n=lg.$getSelection();if(lg.$isRangeSelection(n)||lg.$isNodeSelection(n)){const r=n.getNodes().filter((e=>bz(e)));if(r.length>0){e.preventDefault(),e.stopPropagation();const o=n.getNodes().some((e=>xz(e))),i=wz(r[0]),l=Az(i);if((null===(t=l[0])||void 0===t?void 0:t.getChildren()).length*l.length===r.length&&o)return null==i||i.selectPrevious(),null==i||i.remove(),!1;if(lg.$isRangeSelection(n)){const e=n.focus.getNode();if(xz(e))return Oz(e)}return r.forEach((e=>{e.clear(),e.append(lg.$createParagraphNode())})),(()=>{const e=lg.$getSelection();let t=!1;if(lg.$isRangeSelection(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=wz(n);!o&&xz(r)&&(o=r),xz(o)&&(t=Oz(o))}return t})()}if(lg.$isRangeSelection(n)){const e=n.focus.getNode();if(xz(e))return Oz(e)}}return!1},Mz=e=>{if(e){const t=wz(e);if(xz(t)){const n=e.getParent(),r=Az(t).findIndex((e=>e===n));return{i:r,j:null==n?void 0:n.getChildren().findIndex((t=>t===e)),tableNode:t,row:n}}}return{i:0,j:0,tableNode:null,row:null}},Pz=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),bz(t))return t;return null},Iz=e=>{const t=[];return Az(e).forEach((e=>{const n=e.getChildren();t.push(...n)})),t},Dz=(e,t)=>{Iz(e).forEach((e=>{const n=t.getElementByKey(e.getKey());null==n||n.classList.add("tek__tekCellHighlight")}))},zz=lg.createCommand("UPDATE_COL_WIDTHS_COMMAND"),$z=lg.createCommand("BEGIN_COL_RESIZE"),Fz=lg.createCommand("END_COL_RESIZE"),Bz=lg.createCommand("INSERT_TEK_TABLE_COMMAND"),Hz=({colKey:e,startX:t,onMouseDown:n})=>{const r=J.useCallback((t=>{n(t,e)}),[e,n]);return Z.createElement("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},jz=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},Wz=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,Kz=({nodeKey:e,colWidths:t})=>{const[n]=yv.useLexicalComposerContext(),r=sy(),[o,i]=J.useState(null),l=J.useRef(null),a=J.useRef(null),s=J.useRef(null),u=J.useRef(null),c=J.useCallback((t=>{const n=lg.$getNodeByKey(e);if(n){const e=n.getParent();if(xz(e)){const n=kz(e);if("TekRowNode"===(null==n?void 0:n.getType())){const e=n.getChildren(),r=[];let o=0;e.forEach(((e,n)=>{const i=parseFloat(t[n]);o+=i,r.push({key:e.getKey(),startX:o})})),i(r)}}}}),[e]),d=J.useCallback((e=>{if(l.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:a,nxt:c,parentDomNode:d,currentTableWidth:f}=l.current,p=e.clientX-t,m=Rz(a+p,r);if(c){const e=o+p;if(e<60)return;const t=Rz(e,r),a=l.current.nxtColWidth-p,d=Rz(a,r);if(a<60)return;n.setAttribute("width",t),c.setAttribute("width",d),i.style.left=m,s.current&&(s.current.innerText=t),u.current&&(u.current.innerText=d)}else if(d){i.style.left="100%";const e=f+p,{clampedWidths:t,fullyClamped:n,clampedTableWidth:o}=((e,t)=>{const n=[],r=e.rows[0];let o=0,i=0;for(let e=0;e<r.cells.length;e++){const l=Math.max(r.cells[e].offsetWidth,60);60===l&&o++,i+=l;const a=l/t,s=Math.min(100*a,100);n.push(`${s.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),l=Rz(e,d),a=Rz(o,d);r.style.width=!n||p>0?l:a,r.querySelectorAll(":scope > colgroup col").forEach(((e,n)=>{e.setAttribute("width",t[n])})),n||s.current&&(s.current.innerText=l)}}}),[]),f=J.useCallback((()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),l.current){l.current.resizer.style.opacity="",s.current=null,u.current=null;const e=(e=>{const t=e.rows[0],n=[];for(let r=0;r<t.cells.length;r++){const o=Math.max(t.cells[r].offsetWidth,60);n.push(Rz(o,e))}return n})(l.current.tableElement);l.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)})(l.current.resizer),n.dispatchCommand(Fz,void 0)}l.current=null,a.current=null,n.update((()=>{const t=lg.$getNodeByKey(e),r=Sz(t,n),l=null==t?void 0:t.getParent();if(r&&l){const t=r.querySelectorAll(":scope > colgroup col"),a=[];t.forEach((e=>{a.push(e.getAttribute("width")||"0")})),l.setWidth(r.style.width);let s=0;if(o){const e=o.map(((e,t)=>{const n={...e};return s+=parseFloat(a[t]),n.startX=s,n}));i(e)}n.dispatchCommand(zz,{colWidths:a,nodeKey:e})}}))}),[d,n,e,o]),p=J.useCallback(((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read((()=>{const r=lg.$getNodeByKey(t),o=Sz(r,n);if(bz(r)){const t=Tz(r);if(-1!==t&&o){const r=null==o?void 0:o.querySelectorAll(":scope > colgroup col"),i=r[t],a=r.length>t+1?r[t+1]:null,c=Nz(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,m=Nz(a,o),h=o.parentElement,g=.01*parseFloat(o.style.width),v=((null==h?void 0:h.offsetWidth)||0)*g,b=((e,t,n)=>{const r=jz("tek__leftResizerIndicator","leftGripper");r.innerText=Wz(e);let o=null;return t?(o=jz("tek__rightResizerIndicator","rightGripper"),o.innerText=Wz(t)):r.innerText=n.style.width,{left:r,right:o}})(i,a,o);s.current=b.left,u.current=b.right,d.appendChild(b.left),b.right&&d.appendChild(b.right),d.style.opacity="1",l.current={resizer:d,curColWidth:c,col:i,tableElement:o,clientX:e.clientX,left:p,nxt:a,nxtColWidth:m,parentDomNode:h,currentTableWidth:v},n.dispatchCommand($z,void 0)}}}))}),[n,d,f]);return J.useEffect((()=>{n.getEditorState().read((()=>{c(t)}))}),[c,n,t]),Z.createElement(Z.Fragment,null,o&&r?o.map((e=>Z.createElement(Hz,{key:`${e.key}`,colKey:e.key,startX:e.startX,onMouseDown:p}))):null)},Uz="TEK_TABLE_RESIZE_NODE";class Gz extends lg.DecoratorNode{static getType(){return Uz}static clone(e){return new Gz(e.__colWidths,e.__key)}static importJSON(e){return new Gz(e.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:Uz,version:1}}createDOM(){const e=document.createElement("div");return e.classList.add("tek__resizeContainer"),e}updateDOM(){return!1}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}decorate(){return Z.createElement(Kz,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}const Yz=e=>e instanceof Gz,Vz=({nodeKey:e,colWidths:t})=>{const[n]=yv.useLexicalComposerContext(),[r,o]=J.useState(t);return J.useEffect((()=>{n.getEditorState().read((()=>{const t=lg.$getNodeByKey(e),n=null==t?void 0:t.getParent();if(xz(n)){const e=n.getResizeNode();if(Yz(e)){const t=e.__colWidths.map((e=>e));o(t)}}}))}),[n,e]),Z.createElement(Z.Fragment,null,r.map(((t,n)=>Z.createElement("col",{span:1,width:t,key:`${e}.${n}`}))))};class Qz extends lg.DecoratorNode{static getType(){return"TekColGroupNode"}static clone(e){return new Qz(e.__colWidths,e.__key)}static importJSON(e){return new Qz(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 Z.createElement(Vz,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class qz extends lg.DecoratorNode{constructor(e,t){super(t),this.__formatStyle=e}setFormatStyle(e){this.getWritable().__formatStyle=e}hasStyle(e){return void 0!==this.__formatStyle[e]&&""!==this.__formatStyle[e]}getTextFormatStyle(e,t){return this.hasStyle(e)?this.__formatStyle[e]:t}}const Xz=[yz,gz,_z,Qz,Gz],Jz=(e,t)=>{const n=100/e,r=Array(e).fill(`${n}%`),o=null==t?void 0:t.getChildAtIndex(0),i=null==t?void 0:t.getChildAtIndex(1);o.setColWidths(r),i.setColWidths(r),null==t||t.markNeedsUpdate()},Zz=()=>{var e;const t=lg.$getSelection();if(lg.$isRangeSelection(t)){const n=t.anchor.getNode(),r=Cz(n);if(r){const t=Tz(r),n=wz(r),o=Az(n),i=((null===(e=o[0])||void 0===e?void 0:e.getChildren().length)||1)-1;if(0===i)return null==n||n.selectPrevious(),void(null==n||n.remove());o.forEach((e=>{var n;null===(n=e.getChildAtIndex(t))||void 0===n||n.remove()})),Jz(i,n)}}},e$=()=>{const e=lg.$getSelection();if(lg.$isRangeSelection(e)){const t=e.anchor.getNode(),n=Cz(t),r=wz(n);if(r&&3===r.getChildren().length)return lg.$setSelection(null),void r.remove();if(n){const{row:e}=Mz(n);lg.$setSelection(null),null==e||e.remove()}}},t$=()=>{const e=lg.$getSelection();if(lg.$isRangeSelection(e)){const t=e.anchor.getNode(),n=wz(t),r=kz(n);if(Ez(r)&&n){const e=r.getChildren().length,t=new _z;for(let r=0;r<e;r++){const e=vz(null==n?void 0:n.__hasBorders);e.append(lg.$createParagraphNode()),t.append(e)}null==n||n.append(t)}}},n$=()=>{var e;const t=lg.$getSelection();if(lg.$isRangeSelection(t)){const n=t.anchor.getNode(),r=wz(n);if(xz(r)){const t=Az(r);let n=null;const o=((null===(e=t[0])||void 0===e?void 0:e.getChildren().length)||-1)+1;for(let e=0;e<t.length;e++){const o=vz(r.__hasBorders);o.append(lg.$createParagraphNode()),t[e].append(o),n=o}return Jz(o,r),n}}return null},r$=AS(cN)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),o$=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=yv.useLexicalComposerContext(),[o,i]=J.useState(null),l=xI(),a=Boolean(o),s=J.useCallback(((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{t()}),{onUpdate:()=>{i(null),n()}})}),[r]),u=J.useCallback((e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)}),[n]),c=J.useCallback((()=>{i(null)}),[]),d=J.useCallback((e=>{s(e,t$,t)}),[s,t]),f=J.useCallback((e=>{s(e,n$,t)}),[s,t]),p=J.useCallback((t=>{s(t,e$,e)}),[s,e]),m=J.useCallback((t=>{s(t,Zz,e)}),[s,e]),h=J.useCallback((()=>{r.update((()=>{(()=>{const e=lg.$getSelection();if(lg.$isRangeSelection(e)){const t=e.anchor.getNode(),n=wz(t);xz(n)&&(n.selectPrevious(),n.remove())}})()}),{onUpdate:()=>{i(null),e()}})}),[r,e]),g=J.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{(()=>{const e=lg.$getSelection();if(lg.$isRangeSelection(e)){const t=e.anchor.getNode(),n=wz(t);n&&(n.toggleBorders(),Iz(n).forEach((e=>{e.toggleBorders()})))}})()}))}),[r]);return J.useEffect((()=>wg.mergeRegister(r.registerCommand(lg.SELECTION_CHANGE_COMMAND,(()=>(i(null),!1)),lg.COMMAND_PRIORITY_CRITICAL))),[r]),Z.createElement(KS,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},Z.createElement("div",null,Z.createElement(r$,{size:"small",onClick:u},Z.createElement(CA,{height:12})),Z.createElement(yN,{sx:{zIndex:1},open:a,anchorEl:o,placement:"auto-end"},Z.createElement(HT,{id:"tekTableMenu",className:"tekPopperMenu"},Z.createElement(mR,{dense:!0},Z.createElement(yR,{onClick:g},l("ToggleBorders")),Z.createElement(GN,null),Z.createElement(yR,{onClick:d},l("AddNewRow")),Z.createElement(yR,{onClick:f},l("AddNewColumn")),Z.createElement(GN,null),Z.createElement(yR,{onClick:p},l("DeleteRow")),Z.createElement(yR,{onClick:m},l("DeleteCol")),Z.createElement(GN,null),Z.createElement(yR,{onClick:h},l("DeleteTable")))))))},i$=()=>{var e,t,n,r;const[o]=yv.useLexicalComposerContext(),i=sy(),[l,a]=J.useState(null),[s,u]=J.useState(!1),c=Boolean(l),d=J.useContext(UE),f=J.useRef(null),p=J.useCallback((()=>{s||o.update((()=>{const e=lg.$getSelection();if(lg.$isRangeSelection(e)){const t=Cz(e.anchor.getNode());if(bz(t)){const e=o.getElementByKey(t.getKey());a(e)}else a(null)}}))}),[o,s]);J.useEffect((()=>{const e=e=>{0!==e.buttons?null===f.current&&(f.current=setTimeout((()=>{u(!0),a(null)}),300)):(u(!1),clearTimeout(f.current),f.current=null)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}}),[]),J.useEffect((()=>wg.mergeRegister(o.registerCommand(lg.SELECTION_CHANGE_COMMAND,(()=>(p(),!1)),lg.COMMAND_PRIORITY_EDITOR),o.registerCommand($z,(()=>(a(null),!0)),lg.COMMAND_PRIORITY_CRITICAL),o.registerCommand(Fz,(()=>(p(),!0)),lg.COMMAND_PRIORITY_CRITICAL))),[o,p]),J.useEffect((()=>{a(null)}),[i]);const m=J.useCallback((()=>{a(null)}),[]),h=J.useCallback((()=>{a(null),setTimeout((()=>{p()}),0)}),[p]),g=J.useCallback((()=>{clearTimeout(f.current)}),[]);return Z.createElement(yN,{open:c&&i,anchorEl:l,placement:"top-end",sx:{zIndex:1},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt((null===(r=null===(n=null===(t=null===(e=d.components)||void 0===e?void 0:e.MuiButton)||void 0===t?void 0:t.styleOverrides)||void 0===n?void 0:n.sizeSmall)||void 0===r?void 0:r.height)||"24",10)]}}]},Z.createElement(o$,{onDeleteAction:m,onAction:h,onClick:g}))},l$=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=lg.$getNodeByKey(n),r=null==e?void 0:e.getParent();lg.$isRootNode(r)&&null!==e&&t.push(e)}if(t.length>0){const e=lg.$createParagraphNode();t[0].insertBefore(e),e.select(),t.forEach((e=>e.remove()))}},a$=()=>{const[e]=yv.useLexicalComposerContext(),t=sy();return J.useEffect((()=>wg.mergeRegister(e.registerMutationListener(gz,(t=>{e.update((()=>{l$(t)}))})),e.registerMutationListener(_z,(t=>{e.update((()=>{l$(t)}))})),e.registerMutationListener(yz,(t=>{e.update((()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=lg.$getNodeByKey(e);if(xz(t)&&!t.isValid()){const e=lg.$createParagraphNode();t.insertBefore(e),e.select(),t.remove()}}}))})),e.registerCommand(Bz,(()=>(e.update((()=>{const e=(()=>{const e=["50%","50%"],t=new yz(!0,"100%"),n=new Qz(e),r=new Gz(e),o=[];for(let t=0;t<2;t++){const t=new _z;for(let n=0;n<e.length;n++){const e=vz(!0),n=lg.$createParagraphNode();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();wg.$insertNodeToNearestRoot(e)})),!0)),lg.COMMAND_PRIORITY_EDITOR),e.registerCommand(zz,(({colWidths:e,nodeKey:t})=>{const n=lg.$getNodeByKey(t);if(Yz(n)){n.setColWidths(e);const t=n.getParent(),r=null==t?void 0:t.getChildAtIndex(0);(function(e){return e instanceof Qz})(r)&&r.setColWidths(e)}return!0}),lg.COMMAND_PRIORITY_CRITICAL),e.registerCommand(lg.KEY_ENTER_COMMAND,(t=>(null==t?void 0:t.shiftKey)?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=lg.$getSelection();if(lg.$isRangeSelection(e)){const t=e.focus.getNode(),n=wz(t),r=Pz(t);if(xz(n)){const e=lg.$createParagraphNode();e.append(lg.$createTextNode("")),n.insertBefore(e,!1),e.select()}}})()})),!0):!!(null==t?void 0:t.ctrlKey)&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=lg.$getSelection();if(lg.$isRangeSelection(e)){const t=e.focus.getNode(),n=wz(t);if(xz(n)){const e=lg.$createParagraphNode();e.append(lg.$createTextNode("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()})),!0)),lg.COMMAND_PRIORITY_CRITICAL),e.registerCommand(lg.KEY_BACKSPACE_COMMAND,(e=>Lz(e)),lg.COMMAND_PRIORITY_CRITICAL),e.registerCommand(lg.KEY_DELETE_COMMAND,(e=>Lz(e)),lg.COMMAND_PRIORITY_CRITICAL),e.registerCommand(lg.KEY_TAB_COMMAND,(e=>{const t=lg.$getSelection();if(lg.$isRangeSelection(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),bz(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,l=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+l);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const a=o.getChildAtIndex(n+2+l);if(Ez(a)){const t=null==a?void 0:a.getChildAtIndex(e);(null==t?void 0:t.getChildAtIndex(0)).selectEnd()}}}})(Mz(o),!e.shiftKey),!0}return!1}),lg.COMMAND_PRIORITY_EDITOR),e.registerCommand(lg.CUT_COMMAND,(e=>{const t=e.target,n=lg.$getSelection();if(t.classList.contains("tek__table")&&lg.$isRangeSelection(n)&&xz(n.anchor.getNode()))return e.preventDefault(),e.stopPropagation(),!0;if(lg.$isRangeSelection(n)){const t=n.getNodes().some((e=>bz(e))),r=n.getNodes().some((e=>xz(e)));if(t&&!r)return e.preventDefault(),e.stopPropagation(),!0}return!1}),lg.COMMAND_PRIORITY_CRITICAL))),[e]),J.useEffect((()=>e.registerCommand(lg.SELECTION_CHANGE_COMMAND,(()=>(t&&e.update((()=>{(e=>{const t=lg.$getSelection(),n=[];if(lg.$nodesOfType(yz).forEach((e=>{const t=Iz(e);n.push(...t)})),lg.$isRangeSelection(t)){t.getNodes().filter((e=>xz(e))).forEach((t=>{Dz(t,e)}));const n=t.focus.getNode();if(xz(n))return void Dz(n,e)}if(lg.$isRangeSelection(t)||lg.$isNodeSelection(t)){const r=new Set(t.getNodes().map((e=>Pz(e))));for(let t=0;t<n.length;t++){const o=e.getElementByKey(n[t].getKey());r.has(n[t])?null==o||o.classList.add("tek__tekCellHighlight"):null==o||o.classList.remove("tek__tekCellHighlight")}}})(e)}),{tag:"history-merge"}),!1)),lg.COMMAND_PRIORITY_CRITICAL)),[e,t]),J.useEffect((()=>{e.update((()=>{t||(e=>{const t=[];lg.$nodesOfType(yz).forEach((e=>{const n=Iz(e);t.push(...n)})),t.forEach((t=>{const n=e.getElementByKey(t.getKey());null==n||n.classList.remove("tek__tekCellHighlight")}))})(e)}))}),[t,e]),null},s$=()=>Z.createElement(Z.Fragment,null,Z.createElement(a$,null),Z.createElement(i$,null)),u$=()=>{const e=sy(),t=xI();return e?Z.createElement("div",{className:"tek__editor__placeholder"},t("EnterText")):Z.createElement("div",{className:"tek__editor__logo"},Z.createElement(aD,{height:32}))},c$=({showPlaceholder:e})=>Z.createElement("div",{style:{position:"relative"}},Z.createElement(SI.AutoFocusPlugin,null),Z.createElement(oD.RichTextPlugin,{contentEditable:Z.createElement(OI.ContentEditable,{className:"tek__editor__input"}),placeholder:!1!==e?Z.createElement(u$,null):null,ErrorBoundary:zI})),d$=AS(OR)((({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"}}))),f$=["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"],p$="#404040",m$="16px",h$=J.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:f$[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),g$=({children:e})=>{const t=(()=>{const[e]=yv.useLexicalComposerContext(),[t,n]=J.useState(!1),[r,o]=J.useState(!1),[i,l]=J.useState(!1),[a,s]=J.useState("paragraph"),[u,c]=J.useState(f$[0]),[d,f]=J.useState(m$),[p,m]=J.useState(p$),[h,g]=J.useState("left"),[v,b]=J.useState(!1),y=J.useCallback((()=>{const t=lg.$getSelection();if(lg.$isRangeSelection(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:wg.$findMatchingParent(r,(e=>{const t=e.getParent();return null!==t&&lg.$isRootOrShadowRoot(t)}));null===i&&(i=r.getTopLevelElementOrThrow());const a=i.getKey();let u=i;if(null!==e.getElementByKey(a))if(mv.$isListNode(i)){const e=wg.$getNearestNodeOfType(r,mv.ListNode),t=e?e.getListType():i.getListType();s(t)}else{const e=Hb.$isHeadingNode(i)?i.getTag():i.getType();s(e)}if(mv.$isListNode(i)||Hb.$isHeadingNode(i)){const e=wg.$getNearestNodeOfType(i,lg.ParagraphNode);e&&(u=e)}const d=rz(t),p=d.getParent();if(Ig.$isLinkNode(p)||Ig.$isLinkNode(d)?b(!0):b(!1),lg.$isParagraphNode(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),l(t.hasFormat("underline"));const h=bg.$getSelectionStyleValueForProperty(t,"font-family",f$[0]),v=bg.$getSelectionStyleValueForProperty(t,"font-size",m$);c(""===h?f$[0]:h),f(""!==v&&v?v:m$),m(bg.$getSelectionStyleValueForProperty(t,"color",p$))}else lg.$isNodeSelection(t)&&t.getNodes().forEach((e=>{if(function(e){return e instanceof qz}(e)){const t=e;n(t.hasStyle("fontWeight")),o(t.hasStyle("fontStyle")),l(t.hasStyle("textDecoration")),m(t.getTextFormatStyle("color",p$));const r=t.getTextFormatStyle("fontSize",m$),i=t.getTextFormatStyle("fontFamily",f$[0]);f(r),c(i);const a=t.getParent();if(null!==a){const e=(e=>{if(mv.$isListItemNode(e)){const t=wg.$getNearestNodeOfType(e,mv.ListNode);return t?t.getListType():e.getListType()}return Hb.$isHeadingNode(e)?e.getTag():e.getType()})(a);s(e)}}}))}),[e]);return J.useEffect((()=>wg.mergeRegister(e.registerUpdateListener((({editorState:e})=>{e.read((()=>y()))})),e.registerCommand(lg.SELECTION_CHANGE_COMMAND,(()=>(e.getEditorState().read((()=>y())),!1)),lg.COMMAND_PRIORITY_EDITOR))),[e,y]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:a,fontName:u,fontSize:d,fontColor:p,align:h,isLink:v}}})();return Z.createElement(h$.Provider,{value:t},e)},v$=({children:e})=>Z.createElement(g$,null,Z.createElement(d$,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row"},e)),b$=({anchorEl:e,children:t})=>{const n=Boolean(e);return Z.createElement(yN,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:1}},(({TransitionProps:e})=>Z.createElement(XN,{...e},Z.createElement(HT,{className:"tekPopperMenu"},t))))},y$=AS(gN)({fontSize:12,textOverflow:"ellipsis"}),x$=({startIcon:e,value:t,onClick:n,compact:r})=>Z.createElement(AR,{title:t,PopperProps:{disablePortal:!0}},Z.createElement(BN,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:Z.createElement(yD,{height:12})},r?e:Z.createElement(y$,null,t))),_$=AS(yR,{shouldForwardProp:e=>"active"!==e})((({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0}))),E$=[{text:"AlignLeft",align:"left",icon:()=>Z.createElement(pD,{height:12})},{text:"AlignCenter",align:"center",icon:()=>Z.createElement(cD,{height:12})},{text:"AlignRight",align:"right",icon:()=>Z.createElement(gD,{height:12})}],C$=({compact:e})=>{const[t]=yv.useLexicalComposerContext(),[n,r]=J.useState(null),{blockFormat:o}=J.useContext(h$),i=xI(),l=J.useMemo((()=>E$.find((e=>e.align===o.align))||E$[0]),[o.align]),a=J.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),s=J.useCallback((()=>{r(null)}),[]),u=J.useCallback((e=>{r(null),t.dispatchCommand(lg.FORMAT_ELEMENT_COMMAND,e),t.focus()}),[t]);return Z.createElement(KS,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},Z.createElement("div",null,Z.createElement(x$,{value:i(l.text),startIcon:l.icon(),onClick:a,compact:e}),Z.createElement(b$,{anchorEl:n},Z.createElement(mR,{dense:!0},E$.map((e=>Z.createElement(_$,{value:e.text,dense:!0,key:e.align,active:e.align===o.align,onClick:()=>u(e.align)},Z.createElement(aR,null,e.icon()),Z.createElement(y$,null,i(e.text)))))))))},w$=({text:e,icon:t})=>Z.createElement(Z.Fragment,null,Z.createElement(aR,null,t),Z.createElement(y$,null,e)),S$=({text:e,icon:t})=>Z.createElement(Z.Fragment,null,Z.createElement(aR,null,Z.createElement(y$,{fontWeight:"bold"},t)),Z.createElement(y$,null,e)),k$=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],T$=(e,t,n)=>({icon:Z.createElement("span",{style:{fontSize:12,fontWeight:"bold"}},t),text:n(e)}),N$=({compact:e})=>{const[t]=yv.useLexicalComposerContext(),{blockFormat:n}=J.useContext(h$),[r,o]=J.useState(null),i=xI(),l=J.useMemo((()=>{let e={icon:Z.createElement(OD,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=T$("Heading1","H1",i)),"h2"===n.blockType&&(e=T$("Heading2","H2",i)),"h3"===n.blockType&&(e=T$("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=Z.createElement(SD,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=Z.createElement(ED,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=Z.createElement(ND,{height:12}),e.text=i("OrderedList")),e}),[n,i]),a=J.useCallback((()=>{o(null)}),[]),s=J.useCallback((e=>{t.update((()=>{const n=lg.$getSelection();lg.$isRangeSelection(n)?(bg.$patchStyleText(n,{"font-size":null}),bg.$setBlocksType(n,e)):lg.$isNodeSelection(n)&&n.getNodes().forEach((t=>{const n=t.getParent();null==n||n.replace(e(),!0)})),t.focus()}))}),[t]),u=J.useCallback(((e,n)=>{o(null),t.update((()=>{const r=lg.$getSelection();lg.$isRangeSelection(r)&&r.getNodes().forEach((r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)}))})),t.focus()}),[t]),c=J.useCallback((e=>{o(null),s((()=>Hb.$createHeadingNode(e)))}),[s]),d=J.useCallback((()=>{o(null),s((()=>lg.$createParagraphNode()))}),[s]),f=J.useCallback((()=>{o(null),s((()=>Hb.$createQuoteNode()))}),[s]);return Z.createElement(KS,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},Z.createElement("div",null,Z.createElement(x$,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:l.text,startIcon:l.icon,compact:e}),Z.createElement(b$,{anchorEl:r},Z.createElement(mR,{dense:!0},Z.createElement(yR,{dense:!0,onClick:d},Z.createElement(w$,{text:i("Paragraph"),icon:Z.createElement(OD,{height:12})})),Z.createElement(yR,{dense:!0,onClick:f},Z.createElement(w$,{text:i("Quote"),icon:Z.createElement(SD,{height:12})})),k$.map((e=>Z.createElement(yR,{dense:!0,onClick:()=>c(e.tag),key:e.text},Z.createElement(S$,{text:i(e.text),icon:e.icon})))),Z.createElement(GN,null),Z.createElement(yR,{dense:!0,onClick:()=>u("bullet",mv.INSERT_UNORDERED_LIST_COMMAND)},Z.createElement(w$,{text:i("UnorderedList"),icon:Z.createElement(ED,{height:12})})),Z.createElement(yR,{dense:!0,onClick:()=>u("number",mv.INSERT_ORDERED_LIST_COMMAND)},Z.createElement(w$,{text:i("OrderedList"),icon:Z.createElement(ND,{height:12})}))))))},R$=AS(BN,{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}))),A$=(e,t)=>n=>{const r=xI();return Z.createElement(AR,{title:r(t),PopperProps:{disablePortal:!0}},Z.createElement("div",null,Z.createElement(e,{...n,"aria-label":r(t)})))},O$=({format:e,icon:t,...n})=>{const r=J.useContext(h$),[o]=yv.useLexicalComposerContext(),i=J.useCallback((()=>{o.dispatchCommand(lg.FORMAT_TEXT_COMMAND,e)}),[o,e]);return Z.createElement(R$,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text"},t)},L$=A$(O$,"Bold"),M$=()=>Z.createElement(L$,{format:"bold",icon:Z.createElement(PD,{height:12})}),P$=lg.createCommand("APPLY_TEXT_FORMAT"),I$=lg.createCommand("CLEAR_TEXT_FORMAT"),D$=A$(R$,"ClearFormat"),z$=()=>{const[e]=yv.useLexicalComposerContext(),t=J.useCallback((()=>{e.update((()=>{const t=lg.$getSelection();if(lg.$isRangeSelection(t)){const{anchor:e,focus:n}=t,r=t.getNodes();if(e.key===n.key&&e.offset===n.offset)return;r.forEach(((t,o)=>{try{if(lg.$isTextNode(t)){0===o&&0!==e.offset&&(t=t.splitText(e.offset)[1]||t),o===r.length-1&&(t=t.splitText(n.offset)[0]||t),""!==t.__style&&t.setStyle(""),0!==t.__format&&(t.setFormat(0),wg.$getNearestBlockElementAncestorOrThrow(t).setFormat(""));const i=t.getParent();(Hb.$isHeadingNode(i)||Hb.$isQuoteNode(i))&&i.replace(lg.$createParagraphNode(),!0)}else(Hb.$isHeadingNode(t)||Hb.$isQuoteNode(t))&&t.replace(lg.$createParagraphNode(),!0)}catch(e){}}))}e.dispatchCommand(I$,void 0)}))}),[e]);return Z.createElement(D$,{onClick:t},Z.createElement(zD,{height:12}))};function $$(e){return $$="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)}var F$,B$={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}},H$=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,j$=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,W$=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,K$=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,U$=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,G$=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,Y$=Math.floor,V$=Math.round,Q$=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t,n,r,o,i,l,a,s,u,c,d,f,p=0,m=0,h=0,g=1;if(this._invalid=!1,arguments[0]instanceof e)p=arguments[0]._r,m=arguments[0]._g,h=arguments[0]._b,g=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(d=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f=arguments[0]))p=parseInt(d[1],10),m=parseInt(d[2],10),h=parseInt(d[3],10);else if(d=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))g=parseFloat(V$(d[1]/2.55)/100),p=parseInt(d[2],10),m=parseInt(d[3],10),h=parseInt(d[4],10);else if(d=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(f))p=parseInt(d[1],10),m=parseInt(d[2],10),h=parseInt(d[3],10),g=parseFloat(d[4]);else if(d=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(f))p=parseInt(d[1],16),m=parseInt(d[2],16),h=parseInt(d[3],16),g=1;else if(d=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(f))p=parseInt(d[1]+d[1],16),m=parseInt(d[2]+d[2],16),h=parseInt(d[3]+d[3],16),g=1;else if(d=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),n=(n/=100)<0?0:n>1?1:n,a=(t=(t%=360)<0?0:t>360?360:t)/60,s=(l=(o=(o/=100)<0?0:o>1?1:o)<=.5?2*o*n:(2-2*o)*n)*(1-Math.abs(a%2-1)),u=[],a=Math.floor(a)){case 0:u=[l,s,0];break;case 1:u=[s,l,0];break;case 2:u=[0,l,s];break;case 3:u=[0,s,l];break;case 4:u=[s,0,l];break;case 5:u=[l,0,s];break;default:u=[0,0,0]}c=o-.5*l,p=u[0]+c,m=u[1]+c,h=u[2]+c,p=V$(255*p),m=V$(255*m),h=V$(255*h),g=1}else if(d=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(f)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),g=parseFloat(d[7]),n=(n/=100)<0?0:n>1?1:n,a=(t=(t%=360)<0?0:t>360?360:t)/60,s=(l=(o=(o/=100)<0?0:o>1?1:o)<=.5?2*o*n:(2-2*o)*n)*(1-Math.abs(a%2-1)),u=[],a=Math.floor(a)){case 0:u=[l,s,0];break;case 1:u=[s,l,0];break;case 2:u=[0,l,s];break;case 3:u=[0,s,l];break;case 4:u=[s,0,l];break;case 5:u=[l,0,s];break;default:u=[0,0,0]}c=o-.5*l,p=u[0]+c,m=u[1]+c,h=u[2]+c,p=V$(255*p),m=V$(255*m),h=V$(255*h)}else if(d=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),i=parseFloat(d[5]),a=(t=(t%=360)<0?0:t>360?360:t)/60,s=(l=(i=(i/=100)<0?0:i>1?1:i)*(n=(n/=100)<0?0:n>1?1:n))*(1-Math.abs(a%2-1)),u=[],a=Math.floor(a)){case 0:u=[l,s,0];break;case 1:u=[s,l,0];break;case 2:u=[0,l,s];break;case 3:u=[0,s,l];break;case 4:u=[s,0,l];break;case 5:u=[l,0,s];break;default:u=[0,0,0]}c=i-l,p=u[0]+c,m=u[1]+c,h=u[2]+c,p=V$(255*p),m=V$(255*m),h=V$(255*h),g=1}else B$[f.toLowerCase()]?(r=f.toLowerCase(),p=B$[r].r,m=B$[r].g,h=B$[r].b,g="number"==typeof B$[r].a?B$[r].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(g=(4278190080&arguments[0])>>>24,g/=255,p=(16711680&arguments[0])>>16,m=(65280&arguments[0])>>8,h=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(p=(16711680&arguments[0])>>16,m=(65280&arguments[0])>>8,h=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(p=arguments[0],m=arguments[1],h=arguments[2],g=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+p+m+h+g)&&(this._invalid=!0),this._r=Y$(p),this._g=Y$(m),this._b=Y$(h),this._a=g,this._spaces={}}var t,n;return t=e,(n=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=e.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=e.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=e.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=e.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(t){return this._spaces.hsl||(this._spaces.hsl=e.toHSL(this,t)),this._spaces.hsl}},{key:"toHSLA",value:function(t){return this._spaces.hsla||(this._spaces.hsla=e.toHSLA(this,t)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=e.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=e.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),l=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(l,")")}},{key:"isEqual",value:function(t){return t instanceof e||(t=new e(t)),this._r===t._r&&this._g===t._g&&this._b===t._b}},{key:"blend",value:function(e,t){var n=Y$(this._r+(e._r-this._r)*t),r=Y$(this._g+(e._g-this._g)*t),o=Y$(this._b+(e._b-this._b)*t),i=Y$(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(t){(void 0===t||Number.isNaN(+t))&&(t=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new e(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*t))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==$$(o=function(e){if("object"!=$$(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Q$.toRGB=function(e){if(e instanceof Q$)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=Q$.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},Q$.toRGBA=function(e,t){if(e instanceof Q$)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=Q$.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,")")},Q$.toHex=function(e){var t,n,r;return e instanceof Q$?(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=Q$.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))},Q$.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new Q$(e));var l=e._r/255,a=e._g/255,s=e._b/255,u=Math.max(l,a,s),c=Math.min(l,a,s);if(r=t?.21*l+.72*a+.07*s:(u+c)/2,u===c)n=0,i=0;else{switch(o=u-c,n=r>.5?o/(2-u-c):o/(u+c),u){case l:i=(a-s)/o+(a<s?6:0);break;case a:i=(s-l)/o+2;break;case s:i=(l-a)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},Q$.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new Q$(e));var l=e._r/255,a=e._g/255,s=e._b/255,u=e._a,c=Math.max(l,a,s),d=Math.min(l,a,s);if(r=t?.21*l+.72*a+.07*s:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case l:i=(a-s)/o+(a<s?6:0);break;case a:i=(s-l)/o+2;break;case s:i=(l-a)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(u,")")},Q$.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new Q$(e));var o=e._r/255,i=e._g/255,l=e._b/255,a=Math.max(o,i,l),s=Math.min(o,i,l),u=a;if(a===s)t=0,r=0;else{switch(t=0==(n=a-s)?0:n/u,a){case o:r=(i-l)/n+(i<l?6:0);break;case i:r=(l-o)/n+2;break;case l:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}},Q$.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof Q$)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},Q$.blend=function(e,t,n){var r=(16711680&(e=Q$.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=Q$.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},Q$.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,l=e._a+(t._a-e._a)*n;return new Q$(r,o,i,l)},Q$.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(H$.test(e)||j$.test(e)||W$.test(e)||K$.test(e)||U$.test(e)||G$.test(e)||B$[e.toLowerCase()])},Q$.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},Q$.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)}},Q$.isDark=function(){var e={getLuminance:Q$.prototype.getLuminance,isInvalid:Q$.prototype.isInvalid};return Q$.prototype.init.apply(e,[].slice.call(arguments)),Q$.prototype.isDark.call(e)},Q$.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},F$=Q$;const q$=AS(OR)((({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"}))),X$=AS(ON)((({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"}))),J$=({palette:e,color:t,onColorChange:n})=>{const[r,o]=J.useState(t),i=TS(),l=J.useCallback((e=>{o(e),n(e)}),[n]);return Z.createElement(q$,null,e.map((e=>Z.createElement(X$,{style:{backgroundColor:e},key:e,onClick:t=>{t.preventDefault(),t.stopPropagation(),l(e)}},e===r?Z.createElement(zR,{height:12,color:i.palette.getContrastText(e)}):null))))};function Z$(e,t,n){return Math.max(t,Math.min(n,e))}const eF=(e,t)=>{const n=new F$(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"}},tF=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),l=Z$(e.clientX-n,0,o)/o*100,a=100-Z$(e.clientY-r,0,i)/i*100,s=new F$(t).toHSVComponents();return s.s=l,s.v=a,s},nF=AS(OR)((({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"}))),rF=AS(ON)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),oF=AS(ON)((({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 );"}))),iF=AS(ON)({width:"16px",height:"16px",borderRadius:"2px"}),lF=AS(OR)({flexDirection:"row",alignItems:"center"}),aF=AS(ON)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),sF=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=J.useState(n),l=J.useRef(n),[a,s]=J.useState(!0),[u,c]=J.useState(o),d=J.useRef(null),f=J.useRef(null),p=J.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[m,h]=J.useState({left:"0",top:"0"});J.useEffect((()=>{r.some((e=>e===n))||s(!1)}),[n,r]);const g=J.useCallback((e=>{if(!d.current&&(d.current=e,e)){const t=eF(o,e);h(t)}}),[o]),v=J.useMemo((()=>`hsl(${new F$(o).toHSVComponents().h}, 100%, 50%)`),[o]),b=J.useCallback((t=>{t.preventDefault(),t.stopPropagation();const n=tF(t,l.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new F$(r);if(l.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(l.current),c(l.current),i(l.current)}),[e]),y=J.useCallback((t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=Z$(e.clientX-r,0,n),i=Math.round(o/n*360),l=o/n*100,a=new F$(t).toHSVComponents();return a.h=i,a.s=l,a})(t,l.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new F$(r);l.current=o.toHex(),e(l.current),c(l.current),i(l.current)}),[e]),x=J.useCallback((t=>{l.current=t,e(l.current),i(l.current),c(t)}),[e]),_=J.useCallback((t=>{if(c(t.target.value),!new F$(t.target.value).isInvalid()&&(l.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(l.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(l.current,{tag:"collaboration"}),d.current)){const e=eF(l.current,d.current);h(e)}}),[e]);return Z.createElement(nF,null,a?Z.createElement(J$,{palette:r,color:o,onColorChange:x}):Z.createElement(Z.Fragment,null,Z.createElement(rF,{style:{backgroundColor:v},ref:g,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),f.current&&e.target===f.current){const{left:t,top:n}=f.current.style,r=parseInt(t||"0",10),o=parseInt(n||"0",10);f.current.style.cursor="pointer",d.current&&(d.current.style.cursor="pointer"),p.current={left:r,top:o,on:!0,clientX:e.clientX,clientY:e.clientY}}},onMouseMove:e=>{if(e.preventDefault(),e.stopPropagation(),p.current.on&&f.current&&d.current){const t=e.clientX-p.current.clientX,n=e.clientY-p.current.clientY,r=p.current.left+t,o=p.current.top+n,a=tF(e,l.current),s=`hsv(${a.h},${a.s},${a.v})`,u=new F$(s).toHex();f.current.style.left=`${r}px`,f.current.style.top=`${o}px`,f.current.style.backgroundColor=u,l.current=u,c(l.current),i(u)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),p.current.on?e(l.current):b(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1}},Z.createElement(aF,{ref:f,style:{...m,backgroundColor:o}})),Z.createElement(oF,{onClick:y})),Z.createElement(lF,null,Z.createElement(iF,{style:{backgroundColor:o}}),Z.createElement(RN,{style:{flex:1},value:u,onChange:_}),Z.createElement(cN,{onClick:()=>s(!a)},Z.createElement(BD,{height:12})),Z.createElement(cN,{onClick:t},Z.createElement(zR,{height:12}))))},uF=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],cF=A$(BN,"Color"),dF=({colorPalette:e})=>{const[t]=yv.useLexicalComposerContext(),[n,r]=J.useState(null),{blockFormat:o}=J.useContext(h$),i=J.useCallback(((e,n)=>{t.update((()=>{const t=lg.$getSelection();lg.$isRangeSelection(t)&&bg.$patchStyleText(t,{color:e})}),n),t.dispatchCommand(P$,{styleKey:"color",styleValue:e})}),[t]),l=()=>{r(null)};return Z.createElement(KS,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},Z.createElement("div",null,Z.createElement(cF,{variant:"text",size:"small",endIcon:Z.createElement(yD,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}},Z.createElement(ON,{sx:{backgroundColor:o.fontColor,width:12,height:12}})),Z.createElement(b$,{anchorEl:n},Z.createElement(sF,{onClick:i,onClose:l,startColor:o.fontColor,palette:e||uF}))))},fF=({compact:e,fonts:t})=>{const[n]=yv.useLexicalComposerContext(),[r,o]=J.useState(null),{blockFormat:i}=J.useContext(h$),l=J.useMemo((()=>t||f$),[t]),a=J.useCallback((e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update((()=>{const e=lg.$getSelection();lg.$isRangeSelection(e)&&bg.$patchStyleText(e,{"font-family":t||f$[0]}),n.dispatchCommand(P$,{styleKey:"fontFamily",styleValue:t||f$[0]}),n.focus()}))}),[n]);return Z.createElement(KS,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},Z.createElement("div",null,Z.createElement(x$,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:Z.createElement("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"}},"T"),compact:e}),Z.createElement(b$,{anchorEl:r},Z.createElement(mR,{dense:!0,style:{maxHeight:200,overflow:"auto"}},l.map((e=>Z.createElement(_$,{"data-font-name":e,key:e,onClick:a,active:e===i.fontName},Z.createElement(y$,null,e))))))))},pF=e=>parseInt(e,10),mF=({fontSize:e,onSelected:t})=>{const[n,r]=J.useState(""),o=J.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)}),[]),i=J.useCallback((()=>{const e=pF(n);e&&t(`${e}px`)}),[t,n]),l=J.useCallback((e=>{"Enter"===e.key&&(e.preventDefault(),i())}),[i]);return Z.createElement(OR,{direction:"row"},Z.createElement(RN,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:l}),Z.createElement(cN,{disabled:!pF(n),onClick:i},Z.createElement(zR,{height:12})))},hF=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],gF=({compact:e})=>{const[t]=yv.useLexicalComposerContext(),[n,r]=J.useState(null),{blockFormat:o}=J.useContext(h$),i=J.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),l=J.useCallback((()=>{r(null)}),[]),a=J.useCallback((e=>{r(null),e.length>0&&t.update((()=>{const n=lg.$getSelection();lg.$isRangeSelection(n)&&bg.$patchStyleText(n,{"font-size":e}),t.dispatchCommand(P$,{styleKey:"fontSize",styleValue:`${e}`})}))}),[t]),s=J.useCallback((e=>{const{fontSize:t}=e.currentTarget.dataset;a(t||"16px")}),[a]),u=J.useCallback((e=>{a(e)}),[a]);return Z.createElement(KS,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},Z.createElement("div",null,Z.createElement(x$,{startIcon:e?Z.createElement(y$,null,o.fontSize):void 0,value:o.fontSize,onClick:i,compact:e}),Z.createElement(b$,{anchorEl:n},Z.createElement(mF,{fontSize:o.fontSize,onSelected:u}),Z.createElement(GN,null),Z.createElement(mR,{dense:!0,style:{maxHeight:200,overflow:"auto"}},hF.map((e=>Z.createElement(yR,{"data-font-size":e,key:e,onClick:s},Z.createElement(y$,null,e))))))))},vF=A$(R$,"InsertTable"),bF=()=>{const[e]=yv.useLexicalComposerContext(),t=J.useCallback((()=>{e.dispatchCommand(Bz,void 0)}),[e]);return Z.createElement(vF,{onClick:t},Z.createElement(WD,{height:12}))},yF=A$(O$,"Italic"),xF=()=>Z.createElement(yF,{format:"italic",icon:Z.createElement(GD,{height:12})}),_F=A$(R$,"InsertHyperlink"),EF=()=>{const[e]=yv.useLexicalComposerContext(),{blockFormat:t}=J.useContext(h$),n=J.useCallback((()=>{t.isLink?e.dispatchCommand(Ig.TOGGLE_LINK_COMMAND,null):e.dispatchCommand(Ig.TOGGLE_LINK_COMMAND,lz("https://"))}),[e,t.isLink]);return Z.createElement(_F,{onClick:n},Z.createElement(QD,{height:12}))},CF=A$(O$,"Underline"),wF=()=>Z.createElement(CF,{format:"underline",icon:Z.createElement(JD,{height:12})}),SF=()=>Z.createElement(GN,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var kF={AddNewColumn:{value:"Spalte hinzufügen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Zeile hinzufügen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Zentrieren",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Linksbündig",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechtsbündig",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fett",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textausrichtung",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Schriftgröße",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Format löschen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Schriftfarbe",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Spalte löschen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Zeile löschen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabelle löschen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geben Sie Text ein...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Überschrift 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Überschrift 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Überschrift 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Link einfügen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Großer Text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link zu",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Mittlerer Text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sortierte Liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Absatz",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Listenstil",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Kleiner Text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Rahmen wechseln",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-Link",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Unterstreichen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Unsortierte Liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},TF={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"}},NF={AddNewColumn:{value:"Añadir columna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Añadir fila",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinear centrado",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinear a la izquierda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinear a la derecha",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrita",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alineación de texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamaño de texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Borrar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Color de fuente",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Eliminar columna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Eliminar fila",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Eliminar tabla",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Escriba algún texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabecera 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabecera 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabecera 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insertar enlace",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Cursiva",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Enlazar a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto mediano",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Párrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo de lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeño",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Ajustar bordes",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Enlace URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Subrayado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista no ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},RF={AddNewColumn:{value:"Ajouter une colonne",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Ajouter une ligne",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrer",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Aligner à gauche",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Aligner à droite",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Gras",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alignement du texte",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Taille du texte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Effacer le format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Couleur de police",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Supprimer une colonne",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Supprimer une ligne",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Supprimer la table",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Saisissez un texte...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"En-tête 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"En-tête 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"En-tête 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insérer un lien",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Italique",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texte de grande taille",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Lien vers",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texte de taille moyenne",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Liste triée",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraphe",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Style de liste",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texte de petite taille",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Basculer les bords",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Lien URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Souligner",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Liste non triée",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},AF={AddNewColumn:{value:"Aggiungi colonna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Aggiungi riga",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Allinea al centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Allinea a sinistra",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Allinea a destra",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Grassetto",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Allineamento testo",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Dimensione testo",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Cancella formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Colore carattere",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Elimina colonna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Elimina riga",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Elimina tabella",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Inserisci del testo...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Intestazione 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Intestazione 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Intestazione 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserisci collegamento",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Corsivo",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Testo grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Collega a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Testo medio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Elenco ordinato",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Stile elenco",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Testo piccolo",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Attiva/Disattiva bordi",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Collegamento URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sottolineato",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Elenco non ordinato",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},OF={AddNewColumn:{value:"列を追加",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"行を追加",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"中央揃え",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"左揃え",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"右揃え",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"太字",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"テキストの配置",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"テキスト サイズ",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"書式をクリア",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"フォントの色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"列を削除",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"行を削除",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"テーブルを削除",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"テキストを入力してください...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"見出し 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"見出し 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"見出し 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"リンクを挿入",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"テキスト大",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"リンク先",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"テキスト中",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"順序付きリスト",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"リスト スタイル",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"テキスト小",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"境界線の切り替え",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL リンク",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"順序なしリスト",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},LF={AddNewColumn:{value:"열 추가",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"행 추가",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"중앙 맞춤",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"왼쪽 맞춤",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"오른쪽 맞춤",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"굵게",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"텍스트 맞춤",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"텍스트 크기",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"형식 지우기",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"글꼴 색",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"열 삭제",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"행 삭제",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"테이블 삭제",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"텍스트 입력...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"머리글 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"머리글 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"머리글 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"링크 삽입",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"기울임꼴",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"큰 텍스트",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"연결 대상",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"중간 텍스트",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"순서가 지정된 목록",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"단락",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"목록 스타일",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"작은 텍스트",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"테두리 설정/해제",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 링크",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"밑줄",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"순서가 지정되지 않은 목록",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},MF={AddNewColumn:{value:"Kolom toevoegen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Rij toevoegen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Op midden uitlijnen",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Links uitlijnen",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechts uitlijnen",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Vet",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Tekstuitlijning",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tekstgrootte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Opmaak wissen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Tekstkleur",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Kolom verwijderen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Rij verwijderen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabel verwijderen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geef tekst op...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Koptekst 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Koptekst 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Koptekst 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Koppeling invoegen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Cursief",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Tekst groot",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Koppelen met",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Tekst medium",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Geordende lijst",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Alinea",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Lijststijl",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Tekst klein",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Randen in-/uitschakelen",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-koppeling",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Onderstrepen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Ongeordende lijst",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},PF={AddNewColumn:{value:"Dodaj kolumnę",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Dodaj wiersz",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Wyrównaj do środka",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Wyrównaj do lewej",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Wyrównaj do prawej",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Pogrubienie",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Wyrównanie tekstu",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Wielkość tekstu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Wyczyść format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Kolor czcionki",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Usuń kolumnę",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Usuń wiersz",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Usuń tabelę",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Wprowadź tekst...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Nagłówek 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Nagłówek 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Nagłówek 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Wstaw łącze",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Kursywa",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Duży tekst",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Łącze do:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Średni tekst",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista uporządkowana",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Akapit",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Styl listy",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Mały tekst",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Przełącz obramowania",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Łącze URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Podkreślenie",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista nieuporządkowana",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},IF={AddNewColumn:{value:"Adicionar coluna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Adicionar linha",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinhar centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinhar à esquerda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinhar à direita",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrito",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alinhamento do texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamanho do texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Limpar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Cor da fonte",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Excluir coluna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Excluir linha",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Excluir tabela",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Digite algum texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabeçalho 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabeçallho 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabeçalho 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserir link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Itálico",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link para",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto médio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Parágrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo em lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeno",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Alternar bordas",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Link da URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sublinhado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista não ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},DF={AddNewColumn:{value:"Добавить столбец",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Добавить строку",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Выровнять по центру",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Выровнять по левой стороне",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Выровнять по правой стороне",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Полужирный",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Выравнивание текста",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Размер текста",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Очистить формат",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Цвет шрифта",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Удалить столбец",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Удалить строку",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Удалить таблицу",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Введите текст...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Заголовок 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Заголовок 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Заголовок 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Вставить ссылку",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Курсив",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Крупный текст",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Ссылка на",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Средний текст",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Упорядоченный список",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Абзац",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Стиль списка",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Мелкий текст",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Переключить границы",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-ссылка",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Подчеркивание",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Неупорядоченный список",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},zF={AddNewColumn:{value:"Lägg till kolumn",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Lägg till rad",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrera",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Vänsterjustera",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Högerjustera",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fetstil",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textjustering",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Textstorlek",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Rensa format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Teckenfärg",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Ta bort kolumn",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Ta bort rad",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Ta bort tabell",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Skriv in text...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Rubrik 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Rubrik 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Rubrik 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Infoga länk",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Stor text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Länka till",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Medelstor text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sorterad lista",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Stycke",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Som lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Liten text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kantlinjer på/av",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-länk",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Understrykning",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Osorterad lista",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},$F={AddNewColumn:{value:"Sütun ekle",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Satır ekle",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Ortaya hizala",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Sola hizala",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Sağa hizala",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Kalın",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Metin hizalaması",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Metin boyutu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Biçimi temizle",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Yazı tipi rengi",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Sütun sil",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Satır sil",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabloyu sil",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Metin girin...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Başlık 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Başlık 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Başlık 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Bağlantı ekle",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"İtalik",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Büyük metin",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Bağlantı:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Orta boy metin",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sıralı liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraf",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Liste stili",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Küçük metin",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kenarlıkları değiştir",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL bağlantısı",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Altını çiz",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Sırasız liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}};const FF={de:kF,es:NF,en:TF,fr:RF,it:AF,ja:OF,ko:LF,nl:MF,pl:PF,pt:IF,ru:DF,sv:zF,tr:$F,"de-de":kF,"es-es":NF,"en-us":TF,"fr-fr":RF,"it-it":AF,"ja-jp":OF,"ko-kr":LF,"nl-nl":MF,"pl-pl":PF,"pt-br":IF,"ru-ru":DF,"sv-se":zF,"tr-tr":$F,"zh-cn":{AddNewColumn:{value:"添加列",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"添加行",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"居中对齐",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左对齐",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右对齐",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"加粗",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文本对齐",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文本大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字体颜色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"删除列",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"删除行",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"删除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"输入一些文本...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"标题 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"标题 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"标题 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入链接",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文本",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"链接到",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文本",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"有序列表",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"列表样式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文本",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切换边框",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 链接",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下划线",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"无序列表",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},"zh-tw":{AddNewColumn:{value:"新增欄",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"新增列",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"置中對齊",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左對齊",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右對齊",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"粗體",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文字對齊方式",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文字大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字型色彩",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"刪除欄",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"刪除列",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"刪除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"輸入一些文字...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"標頭 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"標頭 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"標頭 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入連結",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"斜體字",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文字",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"連結至",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文字",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"排序清單",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"清單樣式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文字",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切換框線",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 連結",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"底線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"未排序清單",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}}};function BF(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||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HF={},jF=yv,WF=lg,KF=J;function UF(e,t){return e.getEditorState().read((()=>{let e=WF.$getNodeByKey(t);return null!==e&&e.isSelected()}))}HF.useLexicalNodeSelection=function(e){let[t]=jF.useLexicalComposerContext(),[n,r]=KF.useState((()=>UF(t,e)));KF.useEffect((()=>{let n=!0,o=t.registerUpdateListener((()=>{n&&r(UF(t,e))}));return()=>{n=!1,o()}}),[t,e]);let o=KF.useCallback((n=>{t.update((()=>{let t=WF.$getSelection();WF.$isNodeSelection(t)||(t=WF.$createNodeSelection(),WF.$setSelection(t)),n?t.add(e):t.delete(e)}))}),[t,e]),i=KF.useCallback((()=>{t.update((()=>{const e=WF.$getSelection();WF.$isNodeSelection(e)&&e.clear()}))}),[t]);return[n,o,i]};var GF,YF=HF;var VF={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}},QF=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,qF=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,XF=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,JF=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,ZF=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,eB=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,tB=Math.floor,nB=Math.round,rB=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t,n,r,o,i,l,a,s,u,c,d,f,p=0,m=0,h=0,g=1;if(this._invalid=!1,arguments[0]instanceof e)p=arguments[0]._r,m=arguments[0]._g,h=arguments[0]._b,g=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(d=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f=arguments[0]))p=parseInt(d[1],10),m=parseInt(d[2],10),h=parseInt(d[3],10);else if(d=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))g=parseFloat(nB(d[1]/2.55)/100),p=parseInt(d[2],10),m=parseInt(d[3],10),h=parseInt(d[4],10);else if(d=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(f))p=parseInt(d[1],10),m=parseInt(d[2],10),h=parseInt(d[3],10),g=parseFloat(d[4]);else if(d=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(f))p=parseInt(d[1],16),m=parseInt(d[2],16),h=parseInt(d[3],16),g=1;else if(d=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(f))p=parseInt(d[1]+d[1],16),m=parseInt(d[2]+d[2],16),h=parseInt(d[3]+d[3],16),g=1;else if(d=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),n=(n/=100)<0?0:n>1?1:n,a=(t=(t%=360)<0?0:t>360?360:t)/60,s=(l=(o=(o/=100)<0?0:o>1?1:o)<=.5?2*o*n:(2-2*o)*n)*(1-Math.abs(a%2-1)),u=[],a=Math.floor(a)){case 0:u=[l,s,0];break;case 1:u=[s,l,0];break;case 2:u=[0,l,s];break;case 3:u=[0,s,l];break;case 4:u=[s,0,l];break;case 5:u=[l,0,s];break;default:u=[0,0,0]}c=o-.5*l,p=u[0]+c,m=u[1]+c,h=u[2]+c,p=nB(255*p),m=nB(255*m),h=nB(255*h),g=1}else if(d=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(f)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),g=parseFloat(d[7]),n=(n/=100)<0?0:n>1?1:n,a=(t=(t%=360)<0?0:t>360?360:t)/60,s=(l=(o=(o/=100)<0?0:o>1?1:o)<=.5?2*o*n:(2-2*o)*n)*(1-Math.abs(a%2-1)),u=[],a=Math.floor(a)){case 0:u=[l,s,0];break;case 1:u=[s,l,0];break;case 2:u=[0,l,s];break;case 3:u=[0,s,l];break;case 4:u=[s,0,l];break;case 5:u=[l,0,s];break;default:u=[0,0,0]}c=o-.5*l,p=u[0]+c,m=u[1]+c,h=u[2]+c,p=nB(255*p),m=nB(255*m),h=nB(255*h)}else if(d=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),i=parseFloat(d[5]),a=(t=(t%=360)<0?0:t>360?360:t)/60,s=(l=(i=(i/=100)<0?0:i>1?1:i)*(n=(n/=100)<0?0:n>1?1:n))*(1-Math.abs(a%2-1)),u=[],a=Math.floor(a)){case 0:u=[l,s,0];break;case 1:u=[s,l,0];break;case 2:u=[0,l,s];break;case 3:u=[0,s,l];break;case 4:u=[s,0,l];break;case 5:u=[l,0,s];break;default:u=[0,0,0]}c=i-l,p=u[0]+c,m=u[1]+c,h=u[2]+c,p=nB(255*p),m=nB(255*m),h=nB(255*h),g=1}else VF[f.toLowerCase()]?(r=f.toLowerCase(),p=VF[r].r,m=VF[r].g,h=VF[r].b,g="number"==typeof VF[r].a?VF[r].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(g=(4278190080&arguments[0])>>>24,g/=255,p=(16711680&arguments[0])>>16,m=(65280&arguments[0])>>8,h=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(p=(16711680&arguments[0])>>16,m=(65280&arguments[0])>>8,h=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(p=arguments[0],m=arguments[1],h=arguments[2],g=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+p+m+h+g)&&(this._invalid=!0),this._r=tB(p),this._g=tB(m),this._b=tB(h),this._a=g,this._spaces={}}var t,n;return t=e,(n=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=e.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=e.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=e.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=e.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(t){return this._spaces.hsl||(this._spaces.hsl=e.toHSL(this,t)),this._spaces.hsl}},{key:"toHSLA",value:function(t){return this._spaces.hsla||(this._spaces.hsla=e.toHSLA(this,t)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=e.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=e.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),l=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(l,")")}},{key:"isEqual",value:function(t){return t instanceof e||(t=new e(t)),this._r===t._r&&this._g===t._g&&this._b===t._b}},{key:"blend",value:function(e,t){var n=tB(this._r+(e._r-this._r)*t),r=tB(this._g+(e._g-this._g)*t),o=tB(this._b+(e._b-this._b)*t),i=tB(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(t){(void 0===t||Number.isNaN(+t))&&(t=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new e(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*t))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();async function oB(e,t){!async function(e,t){try{if(e&&t){const n=t(await e.getProperties());await e.setProperties(n)}}catch(e){console.error(e)}}(e,(e=>{const{qHyperCubeDef:n}=e;if(n){var r;const e=null===(r=n.qMeasures)||void 0===r?void 0:r.filter((e=>{const n=null==t?void 0:t.find((t=>{var n;return t===(null==e||null===(n=e.qDef)||void 0===n?void 0:n.cId)}));return!n}));n.qMeasures=e,n.qInterColumnSortOrder=[]}return{...e,qHyperCubeDef:n}}))}rB.toRGB=function(e){if(e instanceof rB)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=rB.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},rB.toRGBA=function(e,t){if(e instanceof rB)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=rB.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,")")},rB.toHex=function(e){var t,n,r;return e instanceof rB?(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=rB.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))},rB.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new rB(e));var l=e._r/255,a=e._g/255,s=e._b/255,u=Math.max(l,a,s),c=Math.min(l,a,s);if(r=t?.21*l+.72*a+.07*s:(u+c)/2,u===c)n=0,i=0;else{switch(o=u-c,n=r>.5?o/(2-u-c):o/(u+c),u){case l:i=(a-s)/o+(a<s?6:0);break;case a:i=(s-l)/o+2;break;case s:i=(l-a)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},rB.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new rB(e));var l=e._r/255,a=e._g/255,s=e._b/255,u=e._a,c=Math.max(l,a,s),d=Math.min(l,a,s);if(r=t?.21*l+.72*a+.07*s:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case l:i=(a-s)/o+(a<s?6:0);break;case a:i=(s-l)/o+2;break;case s:i=(l-a)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(u,")")},rB.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new rB(e));var o=e._r/255,i=e._g/255,l=e._b/255,a=Math.max(o,i,l),s=Math.min(o,i,l),u=a;if(a===s)t=0,r=0;else{switch(t=0==(n=a-s)?0:n/u,a){case o:r=(i-l)/n+(i<l?6:0);break;case i:r=(l-o)/n+2;break;case l:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}},rB.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof rB)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},rB.blend=function(e,t,n){var r=(16711680&(e=rB.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=rB.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},rB.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,l=e._a+(t._a-e._a)*n;return new rB(r,o,i,l)},rB.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(QF.test(e)||qF.test(e)||XF.test(e)||JF.test(e)||ZF.test(e)||eB.test(e)||VF[e.toLowerCase()])},rB.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},rB.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)}},rB.isDark=function(){var e={getLuminance:rB.prototype.getLuminance,isInvalid:rB.prototype.isInvalid};return rB.prototype.init.apply(e,[].slice.call(arguments)),rB.prototype.isDark.call(e)},rB.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},GF=rB;function iB(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function lB(e,t){return null==t?void 0:t.getNodes().some((t=>t.getKey()===e))}function aB({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o}=J.useContext(ud),[i]=yv.useLexicalComposerContext(),l=sy(),[a,s,u]=YF.useLexicalNodeSelection(n),c=J.useRef(null),[d,f]=J.useState(t);J.useEffect((()=>{f(t)}),[t]);const p=J.useMemo((()=>{let e;return a?e="rgba(0, 152, 69, 0.25)":l&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}}),[a,l]),m=J.useMemo((()=>r&&o?function(e,t){const{qHyperCube:n}=t;if(n){var r;const t=null===(r=n.qMeasureInfo)||void 0===r?void 0:r.findIndex((t=>t.cId===e));if(void 0!==t&&-1!==t){var o,i;const e=null==n||null===(o=n.qDataPages)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.qMatrix)||void 0===o?void 0:o[0][t];if(1===(null==e||null===(i=e.qAttrExps)||void 0===i||null===(i=i.qValues)||void 0===i?void 0:i.length)){var l;const t=null===(l=e.qAttrExps.qValues[0])||void 0===l?void 0:l.qText;if(t){const n=new GF(t);return{value:(null==e?void 0:e.qText)||"",expressionColor:n.toHex()}}}return{value:(null==e?void 0:e.qText)||""}}}return{value:""}}(e,r):{value:""}),[r]);J.useEffect((()=>wg.mergeRegister(i.registerCommand(lg.FORMAT_TEXT_COMMAND,(e=>(i.update((()=>{const t=e,r=lg.$getSelection();if(lg.$isRangeSelection(r)&&a){if(lB(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:"");f((t=>({...t,...e})))}}else if(a&&lg.$isNodeSelection(r)&&lB(n,r)&&c.current){const e=iB(c.current.style);f(((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)),lg.COMMAND_PRIORITY_HIGH),i.registerCommand(P$,(e=>(i.getEditorState().read((()=>{if("color"===e.styleKey&&m.expressionColor)return!1;if(c.current&&a){const r=lg.$getSelection();if(lB(n,r)){var t;const n=iB(null===(t=c.current)||void 0===t?void 0:t.style);n[e.styleKey]=e.styleValue,f(n)}}})),!1)),lg.COMMAND_PRIORITY_EDITOR),i.registerCommand(I$,(()=>(i.getEditorState().read((()=>{if(c.current&&a){const e=lg.$getSelection();if(lB(n,e)){const e={};m.expressionColor&&(e.color=m.expressionColor),f(e)}}})),!1)),lg.COMMAND_PRIORITY_EDITOR))),[i,s,u,a,n,m]),J.useEffect((()=>{l||u()}),[l,u]),J.useEffect((()=>{i.update((()=>{!function(e,t){const n=lg.$getNodeByKey(e);var r;n&&(null===(r=n.setFormatStyle)||void 0===r||r.call(n,t))}(n,d)}))}),[d,i]);const h=J.useCallback((e=>{if(l){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),u(),s(!0)):r<t.width&&i.update((()=>{const e=lg.$getSelection();if(lg.$isNodeSelection(e)){const t=lg.$getNodeByKey(n);null==t||t.selectPrevious(),e.delete(n)}}))}}),[u,l,i]);return Z.createElement("span",{style:{...p,...d,color:m.expressionColor?m.expressionColor:d.color},onClick:h,ref:c,id:e},m.value)}const sB="qlik.expression.node";class uB extends qz{static getType(){return sB}static clone(e){return new uB(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new uB(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:sB,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),BF(this,"__expressionId",void 0),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return Z.createElement(aB,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function cB(e){return e instanceof uB}function dB(){const[e]=yv.useLexicalComposerContext(),t=sy(),{edit:n,model:r,emitter:o}=J.useContext(ud);return J.useEffect((()=>{const t=()=>{r&&async function(e,t){try{const n=await t.getProperties();n.text=JSON.stringify(e),await t.setProperties(n)}catch(e){console.error(e)}}(e.getEditorState().toJSON(),r)},n=t=>{const n=e.parseEditorState(t);t!==JSON.stringify(e.getEditorState().toJSON())&&e.setEditorState(n)};return null==o||o.on("saveDocument",t),null==o||o.on("reloadData",n),()=>{null==o||o.removeListener("saveDocument",t),null==o||o.removeListener("reloadData",n)}}),[o,r]),J.useEffect((()=>{e.setEditable(n)}),[n]),J.useEffect((()=>{t&&e.focus()}),[t,e]),null}class fB{constructor(){BF(this,"nodeStore",void 0),BF(this,"pendingDeletes",void 0),this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=lg.$getNodeByKey(e);if(cB(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 pB(){const{layout:e,emitter:t}=J.useContext(ud),[n]=yv.useLexicalComposerContext(),r=J.useRef(new fB),o=sy();return J.useEffect((()=>n.registerMutationListener(uB,(e=>{n.getEditorState().read((()=>{for(const[t,n]of e)r.current.update(t,n)}))}))),[n]),J.useEffect((()=>{e&&n.update((()=>{var t;const n=null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo;if(n){const e=lg.$nodesOfType(uB),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=lg.$getSelection(),{cId:t}=n[n.length-1],r=new uB(t,{}),o=lg.$createTextNode(" "),i=lg.$createTextNode("");lg.$isRangeSelection(e)?e.insertNodes([i,r,o]):wg.$insertNodeToNearestRoot(r)}}}))}),[e,n]),J.useEffect((()=>n.registerCommand(lg.KEY_DOWN_COMMAND,(e=>("Backspace"===e.key&&n.update((()=>{const e=lg.$getSelection();lg.$isNodeSelection(e)&&e.getNodes().forEach((e=>{cB(e)&&(e.selectPrevious(),e.remove())}))})),!1)),lg.COMMAND_PRIORITY_LOW)),[n]),J.useEffect((()=>{if(!o){const e=r.current.sync();e.length>0&&(null==t||t.emit("onNodeDestroyed",e))}}),[o,t]),null}const mB=/"/g;function hB(){const{model:e,emitter:t}=J.useContext(ud),[n]=yv.useLexicalComposerContext(),r=J.useRef(new Map);return J.useEffect((()=>{const o=n.registerMutationListener(lg.TextNode,(e=>{e.forEach(((e,t)=>{if("destroyed"===e)r.current.delete(t);else{var o;const e=null===(o=n.getElementByKey(t))||void 0===o?void 0:o.style.fontFamily;e&&r.current.set(t,e)}}))}));async function i(){if(e){!async function(e,t){try{const n=await t.getProperties();n.fontsUsed=e,await t.setProperties(n)}catch(e){console.error(e)}}(Array.from(new Set(r.current.values())).map((e=>e.replace(mB,""))),e)}}return null==t||t.on("saveDocument",i),()=>{null==t||t.removeListener("saveDocument",i),o()}}),[n]),null}var gB=["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"],vB=["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 bB=Object.prototype.hasOwnProperty,yB=Object.prototype.toString,xB=Object.defineProperty,_B=Object.getOwnPropertyDescriptor,EB=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===yB.call(e)},CB=function(e){if(!e||"[object Object]"!==yB.call(e))return!1;var t,n=bB.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&bB.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||bB.call(e,t)},wB=function(e,t){xB&&"__proto__"===t.name?xB(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},SB=function(e,t){if("__proto__"===t){if(!bB.call(e,t))return;if(_B)return _B(e,t).value}return e[t]};function kB(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function TB(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function NB(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,l,a=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[1]||{},s=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=SB(a,n),a!==(o=SB(t,n))&&(c&&o&&(CB(o)||(i=EB(o)))?(i?(i=!1,l=r&&EB(r)?r:[]):l=r&&CB(r)?r:{},wB(a,{name:n,newValue:e(c,l,o)})):void 0!==o&&wB(a,{name:n,newValue:o}));return a}));var RB=1/.7,AB="\\s*([+-]?\\d+)\\s*",OB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",LB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",MB=/^#([0-9a-f]{3,8})$/,PB=new RegExp(`^rgb\\(${AB},${AB},${AB}\\)$`),IB=new RegExp(`^rgb\\(${LB},${LB},${LB}\\)$`),DB=new RegExp(`^rgba\\(${AB},${AB},${AB},${OB}\\)$`),zB=new RegExp(`^rgba\\(${LB},${LB},${LB},${OB}\\)$`),$B=new RegExp(`^hsl\\(${OB},${LB},${LB}\\)$`),FB=new RegExp(`^hsla\\(${OB},${LB},${LB},${OB}\\)$`),BB={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 HB(){return this.rgb().formatHex()}function jB(){return this.rgb().formatRgb()}function WB(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=MB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?KB(t):3===n?new VB(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?UB(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?UB(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=PB.exec(e))?new VB(t[1],t[2],t[3],1):(t=IB.exec(e))?new VB(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=DB.exec(e))?UB(t[1],t[2],t[3],t[4]):(t=zB.exec(e))?UB(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$B.exec(e))?eH(t[1],t[2]/100,t[3]/100,1):(t=FB.exec(e))?eH(t[1],t[2]/100,t[3]/100,t[4]):BB.hasOwnProperty(e)?KB(BB[e]):"transparent"===e?new VB(NaN,NaN,NaN,0):null}function KB(e){return new VB(e>>16&255,e>>8&255,255&e,1)}function UB(e,t,n,r){return r<=0&&(e=t=n=NaN),new VB(e,t,n,r)}function GB(e){return e instanceof NB||(e=WB(e)),e?new VB((e=e.rgb()).r,e.g,e.b,e.opacity):new VB}function YB(e,t,n,r){return 1===arguments.length?GB(e):new VB(e,t,n,null==r?1:r)}function VB(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function QB(){return`#${ZB(this.r)}${ZB(this.g)}${ZB(this.b)}`}function qB(){const e=XB(this.opacity);return`${1===e?"rgb(":"rgba("}${JB(this.r)}, ${JB(this.g)}, ${JB(this.b)}${1===e?")":`, ${e})`}`}function XB(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function JB(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ZB(e){return((e=JB(e))<16?"0":"")+e.toString(16)}function eH(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new nH(e,t,n,r)}function tH(e){if(e instanceof nH)return new nH(e.h,e.s,e.l,e.opacity);if(e instanceof NB||(e=WB(e)),!e)return new nH;if(e instanceof nH)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),l=NaN,a=i-o,s=(i+o)/2;return a?(l=t===i?(n-r)/a+6*(n<r):n===i?(r-t)/a+2:(t-n)/a+4,a/=s<.5?i+o:2-i-o,l*=60):a=s>0&&s<1?0:l,new nH(l,a,s,e.opacity)}function nH(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function rH(e){return(e=(e||0)%360)<0?e+360:e}function oH(e){return Math.max(0,Math.min(1,e||0))}function iH(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}kB(NB,WB,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:HB,formatHex:HB,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return tH(this).formatHsl()},formatRgb:jB,toString:jB}),kB(VB,YB,TB(NB,{brighter(e){return e=null==e?RB:Math.pow(RB,e),new VB(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new VB(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new VB(JB(this.r),JB(this.g),JB(this.b),XB(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:QB,formatHex:QB,formatHex8:function(){return`#${ZB(this.r)}${ZB(this.g)}${ZB(this.b)}${ZB(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:qB,toString:qB})),kB(nH,(function(e,t,n,r){return 1===arguments.length?tH(e):new nH(e,t,n,null==r?1:r)}),TB(NB,{brighter(e){return e=null==e?RB:Math.pow(RB,e),new nH(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new nH(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 VB(iH(e>=240?e-240:e+120,o,r),iH(e,o,r),iH(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new nH(rH(this.h),oH(this.s),oH(this.l),XB(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=XB(this.opacity);return`${1===e?"hsl(":"hsla("}${rH(this.h)}, ${100*oH(this.s)}%, ${100*oH(this.l)}%${1===e?")":`, ${e})`}`}}));const lH=Math.PI/180,aH=180/Math.PI,sH=4/29,uH=6/29,cH=3*uH*uH;function dH(e){if(e instanceof fH)return new fH(e.l,e.a,e.b,e.opacity);if(e instanceof vH)return bH(e);e instanceof VB||(e=GB(e));var t,n,r=gH(e.r),o=gH(e.g),i=gH(e.b),l=pH((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=l:(t=pH((.4360747*r+.3850649*o+.1430804*i)/.96422),n=pH((.0139322*r+.0971045*o+.7141733*i)/.82521)),new fH(116*l-16,500*(t-l),200*(l-n),e.opacity)}function fH(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function pH(e){return e>.008856451679035631?Math.pow(e,1/3):e/cH+sH}function mH(e){return e>uH?e*e*e:cH*(e-sH)}function hH(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function gH(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vH(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function bH(e){if(isNaN(e.h))return new fH(e.l,0,0,e.opacity);var t=e.h*lH;return new fH(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}kB(fH,(function(e,t,n,r){return 1===arguments.length?dH(e):new fH(e,t,n,null==r?1:r)}),TB(NB,{brighter(e){return new fH(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new fH(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 VB(hH(3.1338561*(t=.96422*mH(t))-1.6168667*(e=1*mH(e))-.4906146*(n=.82521*mH(n))),hH(-.9787684*t+1.9161415*e+.033454*n),hH(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),kB(vH,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof vH)return new vH(e.h,e.c,e.l,e.opacity);if(e instanceof fH||(e=dH(e)),0===e.a&&0===e.b)return new vH(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*aH;return new vH(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new vH(e,t,n,null==r?1:r)}),TB(NB,{brighter(e){return new vH(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new vH(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return bH(this).rgb()}}));var yH,xH=e=>()=>e;function _H(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):xH(isNaN(e)?t:e)}function EH(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 CH(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=SH)):void 0===t&&(t=wH);for(var n,r,o,i,l,a=new NH(e),s=[a];n=s.pop();)if((o=t(n.data))&&(l=(o=Array.from(o)).length))for(n.children=o,i=l-1;i>=0;--i)s.push(r=o[i]=new NH(o[i])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(TH)}function wH(e){return e.children}function SH(e){return Array.isArray(e)?e[1]:null}function kH(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function TH(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function NH(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?_H: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):xH(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=YB(e)).r,(t=YB(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),l=_H(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=l(t),e+""}}return r.gamma=e,r}(1),NH.prototype=CH.prototype={constructor:NH,count:function(){return this.eachAfter(EH)},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,l=[i],a=[],s=-1;i=l.pop();)if(a.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)l.push(n[r]);for(;i=a.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],l=-1;o=i.pop();)if(e.call(t,o,++l,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 CH(this).eachBefore(kH)},[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)}},yH=function(e){
96
+ `),Eu.rippleVisible,Ru,550,(({theme:e})=>e.transitions.easing.easeInOut),Eu.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Eu.child,Eu.childLeaving,Au,550,(({theme:e})=>e.transitions.easing.easeInOut),Eu.childPulsate,Ou,(({theme:e})=>e.transitions.easing.easeInOut)),Pu=D.forwardRef((function(e,t){const n=la({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,l=Vn(n,Cu),[a,s]=D.useState([]),u=D.useRef(0),c=D.useRef(null);D.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[a]);const d=D.useRef(!1),f=D.useRef(null),p=D.useRef(null),m=D.useRef(null);D.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const h=D.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:l}=e;s((e=>[...e,Wo.jsx(Mu,{classes:{ripple:pa(o.ripple,Eu.ripple),rippleVisible:pa(o.rippleVisible,Eu.rippleVisible),ripplePulsate:pa(o.ripplePulsate,Eu.ripplePulsate),child:pa(o.child,Eu.child),childLeaving:pa(o.childLeaving,Eu.childLeaving),childPulsate:pa(o.childPulsate,Eu.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=l}),[o]),g=D.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:l=!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 a=l?null:m.current,s=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.current=setTimeout((()=>{p.current&&(p.current(),p.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=D.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=D.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void(f.current=setTimeout((()=>{b(e,t)})));p.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return D.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Wo.jsx(Lu,fn({className:pa(Eu.root,o.root,i),ref:m},l,{children:Wo.jsx(gu,{component:null,exit:!0,children:a})}))}));function Iu(e){return Gn("MuiButtonBase",e)}const Du=Yn("MuiButtonBase",["root","disabled","focusVisible"]),zu=["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"],$u=sa("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"},[`&.${Du.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Fu=D.forwardRef((function(e,t){const n=la({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:l,component:a="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:p,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:_,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:S,onTouchStart:k,tabIndex:T=0,TouchRippleProps:N,touchRippleRef:R,type:A}=n,O=Vn(n,zu),L=D.useRef(null),M=D.useRef(null),P=An(M,R),{isFocusVisibleRef:I,onFocus:z,onBlur:$,ref:F}=Bn(),[B,H]=D.useState(!1);s&&B&&H(!1),D.useImperativeHandle(r,(()=>({focusVisible:()=>{H(!0),L.current.focus()}})),[]);const[j,W]=D.useState(!1);D.useEffect((()=>{W(!0)}),[]);const K=j&&!u&&!s;function U(e,t,n=c){return Rn((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}D.useEffect((()=>{B&&d&&!u&&j&&M.current.pulsate()}),[u,d,B,j]);const G=U("start",_),Y=U("stop",h),V=U("stop",g),Q=U("stop",C),q=U("stop",(e=>{B&&e.preventDefault(),E&&E(e)})),X=U("start",k),J=U("stop",w),Z=U("stop",S),ee=U("stop",(e=>{$(e),!1===I.current&&H(!1),p&&p(e)}),!1),te=Rn((e=>{L.current||(L.current=e.currentTarget),z(e),!0===I.current&&(H(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=L.current;return a&&"button"!==a&&!("A"===e.tagName&&e.href)},re=D.useRef(!1),oe=Rn((e=>{d&&!re.current&&B&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Rn((e=>{d&&" "===e.key&&M.current&&B&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let le=a;"button"===le&&(O.href||O.to)&&(le=f);const ae={};"button"===le?(ae.type=void 0===A?"button":A,ae.disabled=s):(O.href||O.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const se=An(t,F,L),ue=fn({},n,{centerRipple:o,component:a,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:T,focusVisible:B}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=jn({root:["root",t&&"disabled",n&&"focusVisible"]},Iu,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Wo.jsxs($u,fn({as:le,className:pa(ce.root,l),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:q,onMouseUp:Q,onDragLeave:V,onTouchEnd:J,onTouchMove:Z,onTouchStart:X,ref:se,tabIndex:s?-1:T,type:A},ae,O,{children:[i,K?Wo.jsx(Pu,fn({ref:P,center:o},N)):null]}))}));function Bu(e){return Gn("MuiIconButton",e)}const Hu=Yn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ju=["edge","children","className","color","disabled","disableFocusRipple","size"],Wu=sa(Fu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${_n(n.color)}`],n.edge&&t[`edge${_n(n.edge)}`],t[`size${_n(n.size)}`]]}})((({theme:e,ownerState:t})=>fn({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})`:yl(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 fn({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&fn({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":fn({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yl(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)},{[`&.${Hu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),Ku=D.forwardRef((function(e,t){const n=la({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:l="default",disabled:a=!1,disableFocusRipple:s=!1,size:u="medium"}=n,c=Vn(n,ju),d=fn({},n,{edge:r,color:l,disabled:a,disableFocusRipple:s,size:u}),f=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return jn({root:["root",n&&"disabled","default"!==r&&`color${_n(r)}`,o&&`edge${_n(o)}`,`size${_n(i)}`]},Bu,t)})(d);return Wo.jsx(Wu,fn({className:pa(f.root,i),centerRipple:!0,focusRipple:!s,disabled:a,ref:t,ownerState:d},c,{children:o}))}));function Uu(e){return Gn("MuiTypography",e)}Yn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Gu=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Yu=sa("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${_n(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>fn({margin:0},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}))),Vu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Qu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qu=D.forwardRef((function(e,t){const n=la({props:e,name:"MuiTypography"}),r=(e=>Qu[e]||e)(n.color),o=tl(fn({},n,{color:r})),{align:i="inherit",className:l,component:a,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=Vu}=o,p=Vn(o,Gu),m=fn({},o,{align:i,color:r,className:l,component:a,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:f}),h=a||(c?"p":f[d]||Vu[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e;return jn({root:["root",i,"inherit"!==e.align&&`align${_n(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Uu,l)})(m);return Wo.jsx(Yu,fn({as:h,ref:t,ownerState:m,className:pa(g.root,l)},p))})),Xu=["components","componentsProps","slots","slotProps"],Ju=sa(Qs,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zu=D.forwardRef((function(e,t){var n;const r=qi(),o=la({props:e,name:"MuiPopper"}),{components:i,componentsProps:l,slots:a,slotProps:s}=o,u=Vn(o,Xu),c=null!=(n=null==a?void 0:a.root)?n:null==i?void 0:i.Root;return Wo.jsx(Ju,fn({direction:null==r?void 0:r.direction,slots:{root:c},slotProps:null!=s?s:l},u,{ref:t}))}));const ec=D.createContext(void 0);function tc(e){return Wo.jsx(Zi,fn({},e,{defaultTheme:oa,themeId:Xn}))}function nc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function rc(e){return Gn("MuiInputBase",e)}const oc=Yn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ic=["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"],lc=sa("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${_n(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>fn({},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",[`&.${oc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&fn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),ac=sa("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=fn({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 fn({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] + .${oc.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},[`&.${oc.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"})})),sc=Wo.jsx(tc,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),uc=D.forwardRef((function(e,t){var n;const r=la({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:l,className:a,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:_=!1,name:E,onBlur:C,onChange:w,onClick:S,onFocus:k,onKeyDown:T,onKeyUp:N,placeholder:R,readOnly:A,renderSuffix:O,rows:L,slotProps:M={},slots:P={},startAdornment:I,type:z="text",value:$}=r,F=Vn(r,ic),B=null!=v.value?v.value:$,{current:H}=D.useRef(null!=B),j=D.useRef(),W=D.useCallback((e=>{}),[]),K=An(j,b,v.ref,W),[U,G]=D.useState(!1),Y=D.useContext(ec),V=function({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});V.focused=Y?Y.focused:U,D.useEffect((()=>{!Y&&d&&U&&(G(!1),C&&C())}),[Y,d,U,C]);const Q=Y&&Y.onFilled,q=Y&&Y.onEmpty,X=D.useCallback((e=>{!function(e,t=!1){return e&&(nc(e.value)&&""!==e.value||t&&nc(e.defaultValue)&&""!==e.defaultValue)}(e)?q&&q():Q&&Q()}),[Q,q]);Sn((()=>{H&&X({value:B})}),[B,X,H]);D.useEffect((()=>{X(j.current)}),[]);let J=g,Z=v;_&&"input"===J&&(Z=fn(L?{type:void 0,minRows:L,maxRows:L}:{type:void 0,maxRows:y,minRows:x},Z),J=eu);D.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(I))}),[Y,I]);const ee=fn({},r,{color:V.color||"primary",disabled:V.disabled,endAdornment:p,error:V.error,focused:V.focused,formControl:Y,fullWidth:m,hiddenLabel:V.hiddenLabel,multiline:_,size:V.size,startAdornment:I,type:z}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:l,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:m}=e;return jn({root:["root",`color${_n(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",l&&"focused",a&&"formControl","small"===f&&"sizeSmall",c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},rc,t)})(ee),ne=P.root||s.Root||lc,re=M.root||u.root||{},oe=P.input||s.Input||ac;return Z=fn({},Z,null!=(n=M.input)?n:u.input),Wo.jsxs(D.Fragment,{children:[!f&&sc,Wo.jsxs(ne,fn({},re,!ma(ne)&&{ownerState:fn({},ee,re.ownerState)},{ref:t,onClick:e=>{j.current&&e.currentTarget===e.target&&j.current.focus(),S&&S(e)}},F,{className:pa(te.root,re.className,a,A&&"MuiInputBase-readOnly"),children:[I,Wo.jsx(ec.Provider,{value:null,children:Wo.jsx(oe,fn({ownerState:ee,"aria-invalid":V.error,"aria-describedby":o,autoComplete:i,autoFocus:l,defaultValue:c,disabled:V.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?j.current:{value:"x"})},name:E,placeholder:R,readOnly:A,required:V.required,rows:L,value:B,onKeyDown:T,onKeyUp:N,type:z},Z,!ma(oe)&&{as:J,ownerState:fn({},ee,Z.ownerState)},{ref:K,className:pa(te.input,Z.className,A&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||j.current;if(null==t)throw new Error(gn(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{V.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):G(!0))}}))}),p,O?O(fn({},V,{startAdornment:I})):null]}))]})})),cc=ra(),dc=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Uo("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Gi);return D.forwardRef((function(e,l){const a=Ji(n),s=tl(e),{className:u,component:c="div"}=s,d=Vn(s,nl);return Wo.jsx(i,fn({as:c,ref:l,className:qn(u,o?o(r):r),theme:t&&a[t]||a},d))}))}({themeId:Xn,defaultTheme:cc,defaultClassName:"MuiBox-root",generateClassName:Kn.generate});function fc(e){return Gn("MuiButton",e)}const pc=Yn("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),mc=D.createContext({}),hc=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],gc=e=>fn({},"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}}),vc=sa(Fu,{shouldForwardProp:e=>aa(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${_n(n.color)}`],t[`size${_n(n.size)}`],t[`${n.variant}Size${_n(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 fn({},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":fn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yl(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})`:yl(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})`:yl(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":fn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${pc.focusVisible}`]:fn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${pc.disabled}`]:fn({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 ${yl(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"},[`&.${pc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pc.disabled}`]:{boxShadow:"none"}})),bc=sa("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${_n(n.size)}`]]}})((({ownerState:e})=>fn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},gc(e)))),yc=sa("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${_n(n.size)}`]]}})((({ownerState:e})=>fn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},gc(e)))),xc=D.forwardRef((function(e,t){const n=D.useContext(mc),r=la({props:Hn(n,e),name:"MuiButton"}),{children:o,color:i="primary",component:l="button",className:a,disabled:s=!1,disableElevation:u=!1,disableFocusRipple:c=!1,endIcon:d,focusVisibleClassName:f,fullWidth:p=!1,size:m="medium",startIcon:h,type:g,variant:v="text"}=r,b=Vn(r,hc),y=fn({},r,{color:i,component:l,disabled:s,disableElevation:u,disableFocusRipple:c,fullWidth:p,size:m,type:g,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:l}=e;return fn({},l,jn({root:["root",i,`${i}${_n(t)}`,`size${_n(o)}`,`${i}Size${_n(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${_n(o)}`],endIcon:["endIcon",`iconSize${_n(o)}`]},fc,l))})(y),_=h&&Wo.jsx(bc,{className:x.startIcon,ownerState:y,children:h}),E=d&&Wo.jsx(yc,{className:x.endIcon,ownerState:y,children:d});return Wo.jsxs(vc,fn({ownerState:y,className:pa(n.className,x.root,a),component:l,disabled:s,focusRipple:!c,focusVisibleClassName:pa(x.focusVisible,f),ref:t,type:g},b,{classes:x,children:[_,o,E]}))}));function _c(e){return Gn("MuiDivider",e)}const Ec=Yn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Cc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],wc=sa("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})=>fn({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)`:yl(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"})),(({theme:e,ownerState:t})=>fn({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>fn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>fn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Sc=sa("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>fn({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)`}))),kc=D.forwardRef((function(e,t){const n=la({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:l=(o?"div":"hr"),flexItem:a=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==l?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,p=Vn(n,Cc),m=fn({},n,{absolute:r,component:l,flexItem:a,light:s,orientation:u,role:c,textAlign:d,variant:f}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:l,textAlign:a,variant:s}=e;return jn({root:["root",t&&"absolute",s,i&&"light","vertical"===l&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===l&&"withChildrenVertical","right"===a&&"vertical"!==l&&"textAlignRight","left"===a&&"vertical"!==l&&"textAlignLeft"],wrapper:["wrapper","vertical"===l&&"wrapperVertical"]},_c,r)})(m);return Wo.jsx(wc,fn({as:l,className:pa(h.root,i),role:c,ref:t,ownerState:m},p,{children:o?Wo.jsx(Sc,{className:h.wrapper,ownerState:m,children:o}):null}))})),Tc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Nc(e){return`scale(${e}, ${e**2})`}const Rc={entering:{opacity:1,transform:Nc(1)},entered:{opacity:1,transform:"none"}},Ac="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Oc=D.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:l,onEnter:a,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:f,style:p,timeout:m="auto",TransitionComponent:h=cu}=e,g=Vn(e,Tc),v=D.useRef(),b=D.useRef(),y=ia(),x=D.useRef(null),_=An(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=vu({style:p,timeout:m,easing:i},{mode:"enter"});let l;"auto"===m?(l=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=l):l=n,e.style.transition=[y.transitions.create("opacity",{duration:l,delay:r}),y.transitions.create("transform",{duration:Ac?l:.666*l,delay:r,easing:o})].join(","),a&&a(e,t)})),S=E(s),k=E(f),T=E((e=>{const{duration:t,delay:n,easing:r}=vu({style:p,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(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:Ac?o:.666*o,delay:Ac?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Nc(.75),c&&c(e)})),N=E(d);return D.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Wo.jsx(h,fn({appear:r,in:l,nodeRef:x,onEnter:w,onEntered:S,onEntering:C,onExit:T,onExited:N,onExiting:k,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>D.cloneElement(o,fn({style:fn({opacity:0,transform:Nc(.75),visibility:"exited"!==e||l?void 0:"hidden"},Rc[e],p,o.props.style),ref:_},t))}))}));Oc.muiSupportAuto=!0;const Lc=D.createContext({});function Mc(e){return Gn("MuiList",e)}Yn("MuiList",["root","padding","dense","subheader"]);const Pc=["children","className","component","dense","disablePadding","subheader"],Ic=sa("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})=>fn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Dc=D.forwardRef((function(e,t){const n=la({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:l=!1,disablePadding:a=!1,subheader:s}=n,u=Vn(n,Pc),c=D.useMemo((()=>({dense:l})),[l]),d=fn({},n,{component:i,dense:l,disablePadding:a}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return jn({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Mc,t)})(d);return Wo.jsx(Lc.Provider,{value:c,children:Wo.jsxs(Ic,fn({as:i,className:pa(f.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function zc(e){return Gn("MuiListItemIcon",e)}const $c=Yn("MuiListItemIcon",["root","alignItemsFlexStart"]),Fc=["className"],Bc=sa("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})=>fn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Hc=D.forwardRef((function(e,t){const n=la({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Vn(n,Fc),i=fn({},n,{alignItems:D.useContext(Lc).alignItems}),l=(e=>{const{alignItems:t,classes:n}=e;return jn({root:["root","flex-start"===t&&"alignItemsFlexStart"]},zc,n)})(i);return Wo.jsx(Bc,fn({className:pa(l.root,r),ownerState:i,ref:t},o))})),jc=Yn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Wc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Kc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Uc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Gc(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 Yc(e,t,n,r,o,i){let l=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}const t=!r&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&Gc(a,i)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const Vc=D.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:l,disabledItemsFocusable:a=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Vn(e,Wc),f=D.useRef(null),p=D.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Sn((()=>{r&&f.current.focus()}),[r]),D.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,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)}(En(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=An(f,t);let h=-1;D.Children.forEach(i,((e,t)=>{D.isValidElement(e)&&(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1)))}));const g=D.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),D.cloneElement(e,t)}return e}));return Wo.jsx(Dc,fn({role:"menu",ref:m,className:l,onKeyDown:e=>{const t=f.current,n=e.key,r=En(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Yc(t,r,s,a,Kc);else if("ArrowUp"===n)e.preventDefault(),Yc(t,r,s,a,Uc);else if("Home"===n)e.preventDefault(),Yc(t,null,s,a,Kc);else if("End"===n)e.preventDefault(),Yc(t,null,s,a,Uc);else if(1===n.length){const o=p.current,i=n.toLowerCase(),l=performance.now();o.keys.length>0&&(l-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=l,o.keys.push(i);const s=r&&!o.repeating&&Gc(r,o);o.previousKeyMatched&&(s||Yc(t,r,!1,a,Kc,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Qc(e){return Gn("MuiMenuItem",e)}const qc=Yn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Xc=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Jc=sa(Fu,{shouldForwardProp:e=>aa(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})=>fn({},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"}},[`&.${qc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yl(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})`:yl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ec.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ec.inset}`]:{marginLeft:52},[`& .${jc.root}`]:{marginTop:0,marginBottom:0},[`& .${jc.inset}`]:{paddingLeft:36},[`& .${$c.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&fn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${$c.root} svg`]:{fontSize:"1.25rem"}})))),Zc=D.forwardRef((function(e,t){const n=la({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:l=!1,disableGutters:a=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,f=Vn(n,Xc),p=D.useContext(Lc),m=D.useMemo((()=>({dense:i||p.dense||!1,disableGutters:a})),[p.dense,i,a]),h=D.useRef(null);Sn((()=>{r&&h.current&&h.current.focus()}),[r]);const g=fn({},n,{dense:m.dense,divider:l,disableGutters:a}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:l}=e;return fn({},l,jn({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Qc,l))})(n),b=An(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Wo.jsx(Lc.Provider,{value:m,children:Wo.jsx(Jc,fn({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:pa(v.focusVisible,s),className:pa(v.root,d)},f,{ownerState:g,classes:v}))})}));function ed(e){return Gn("MuiTooltip",e)}const td=Yn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),nd=["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 rd=sa(Zu,{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})=>fn({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${td.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${td.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${td.arrow}`]:fn({},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"] .${td.arrow}`]:fn({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),od=sa("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${_n(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return fn({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:yl(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},{[`.${td.popper}[data-popper-placement*="left"] &`]:fn({transformOrigin:"right center"},t.isRtl?fn({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):fn({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${td.popper}[data-popper-placement*="right"] &`]:fn({transformOrigin:"left center"},t.isRtl?fn({marginRight:"14px"},t.touch&&{marginRight:"24px"}):fn({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${td.popper}[data-popper-placement*="top"] &`]:fn({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${td.popper}[data-popper-placement*="bottom"] &`]:fn({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),id=sa("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:yl(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ld=!1,ad=null,sd={x:0,y:0};function ud(e,t){return n=>{t&&t(n),e(n)}}const cd=D.forwardRef((function(e,t){var n,r,o,i,l,a,s,u,c,d,f,p,m,h,g,v,b,y,x;const _=la({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:C,components:w={},componentsProps:S={},describeChild:k=!1,disableFocusListener:T=!1,disableHoverListener:N=!1,disableInteractive:R=!1,disableTouchListener:A=!1,enterDelay:O=100,enterNextDelay:L=0,enterTouchDelay:M=700,followCursor:P=!1,id:I,leaveDelay:z=0,leaveTouchDelay:$=1500,onClose:F,onOpen:B,open:H,placement:j="bottom",PopperComponent:W,PopperProps:K={},slotProps:U={},slots:G={},title:Y,TransitionComponent:V=Oc,TransitionProps:Q}=_,q=Vn(_,nd),X=ia(),J="rtl"===X.direction,[Z,ee]=D.useState(),[te,ne]=D.useState(null),re=D.useRef(!1),oe=R||P,ie=D.useRef(),le=D.useRef(),ae=D.useRef(),se=D.useRef(),[ue,ce]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(void 0!==e),[i,l]=D.useState(t);return[o?e:i,D.useCallback((e=>{o||l(e)}),[])]}({controlled:H,default:!1,name:"Tooltip",state:"open"});let de=ue;const fe=Nn(I),pe=D.useRef(),me=D.useCallback((()=>{void 0!==pe.current&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),clearTimeout(se.current)}),[]);D.useEffect((()=>()=>{clearTimeout(ie.current),clearTimeout(le.current),clearTimeout(ae.current),me()}),[me]);const he=e=>{clearTimeout(ad),ld=!0,ce(!0),B&&!de&&B(e)},ge=Rn((e=>{clearTimeout(ad),ad=setTimeout((()=>{ld=!1}),800+z),ce(!1),F&&de&&F(e),clearTimeout(ie.current),ie.current=setTimeout((()=>{re.current=!1}),X.transitions.duration.shortest)})),ve=e=>{re.current&&"touchstart"!==e.type||(Z&&Z.removeAttribute("title"),clearTimeout(le.current),clearTimeout(ae.current),O||ld&&L?le.current=setTimeout((()=>{he(e)}),ld?L:O):he(e))},be=e=>{clearTimeout(le.current),clearTimeout(ae.current),ae.current=setTimeout((()=>{ge(e)}),z)},{isFocusVisibleRef:ye,onBlur:xe,onFocus:_e,ref:Ee}=Bn(),[,Ce]=D.useState(!1),we=e=>{xe(e),!1===ye.current&&(Ce(!1),be(e))},Se=e=>{Z||ee(e.currentTarget),_e(e),!0===ye.current&&(Ce(!0),ve(e))},ke=e=>{re.current=!0;const t=C.props;t.onTouchStart&&t.onTouchStart(e)},Te=ve,Ne=be,Re=e=>{ke(e),clearTimeout(ae.current),clearTimeout(ie.current),me(),pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.current=setTimeout((()=>{document.body.style.WebkitUserSelect=pe.current,ve(e)}),M)},Ae=e=>{C.props.onTouchEnd&&C.props.onTouchEnd(e),me(),clearTimeout(ae.current),ae.current=setTimeout((()=>{ge(e)}),$)};D.useEffect((()=>{if(de)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ge(e)}}),[ge,de]);const Oe=An(C.ref,Ee,ee,t);Y||0===Y||(de=!1);const Le=D.useRef(),Me={},Pe="string"==typeof Y;k?(Me.title=de||!Pe||N?null:Y,Me["aria-describedby"]=de?fe:null):(Me["aria-label"]=Pe?Y:null,Me["aria-labelledby"]=de&&!Pe?fe:null);const Ie=fn({},Me,q,C.props,{className:pa(q.className,C.props.className),onTouchStart:ke,ref:Oe},P?{onMouseMove:e=>{const t=C.props;t.onMouseMove&&t.onMouseMove(e),sd={x:e.clientX,y:e.clientY},Le.current&&Le.current.update()}}:{}),De={};A||(Ie.onTouchStart=Re,Ie.onTouchEnd=Ae),N||(Ie.onMouseOver=ud(Te,Ie.onMouseOver),Ie.onMouseLeave=ud(Ne,Ie.onMouseLeave),oe||(De.onMouseOver=Te,De.onMouseLeave=Ne)),T||(Ie.onFocus=ud(Se,Ie.onFocus),Ie.onBlur=ud(we,Ie.onBlur),oe||(De.onFocus=Se,De.onBlur=we));const ze=D.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=K.popperOptions)&&e.modifiers&&(t=t.concat(K.popperOptions.modifiers)),fn({},K.popperOptions,{modifiers:t})}),[te,K]),$e=fn({},_,{isRtl:J,arrow:E,disableInteractive:oe,placement:j,PopperComponentProp:W,touch:re.current}),Fe=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return jn({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${_n(i.split("-")[0])}`],arrow:["arrow"]},ed,t)})($e),Be=null!=(n=null!=(r=G.popper)?r:w.Popper)?n:rd,He=null!=(o=null!=(i=null!=(l=G.transition)?l:w.Transition)?i:V)?o:Oc,je=null!=(a=null!=(s=G.tooltip)?s:w.Tooltip)?a:od,We=null!=(u=null!=(c=G.arrow)?c:w.Arrow)?u:id,Ke=ha(Be,fn({},K,null!=(d=U.popper)?d:S.popper,{className:pa(Fe.popper,null==K?void 0:K.className,null==(f=null!=(p=U.popper)?p:S.popper)?void 0:f.className)}),$e),Ue=ha(He,fn({},Q,null!=(m=U.transition)?m:S.transition),$e),Ge=ha(je,fn({},null!=(h=U.tooltip)?h:S.tooltip,{className:pa(Fe.tooltip,null==(g=null!=(v=U.tooltip)?v:S.tooltip)?void 0:g.className)}),$e),Ye=ha(We,fn({},null!=(b=U.arrow)?b:S.arrow,{className:pa(Fe.arrow,null==(y=null!=(x=U.arrow)?x:S.arrow)?void 0:y.className)}),$e);return Wo.jsxs(D.Fragment,{children:[D.cloneElement(C,Ie),Wo.jsx(Be,fn({as:null!=W?W:Zu,placement:j,anchorEl:P?{getBoundingClientRect:()=>({top:sd.y,left:sd.x,right:sd.x,bottom:sd.y,width:0,height:0})}:Z,popperRef:Le,open:!!Z&&de,id:fe,transition:!0},De,Ke,{popperOptions:ze,children:({TransitionProps:e})=>Wo.jsx(He,fn({timeout:X.transitions.duration.shorter},e,Ue,{children:Wo.jsxs(je,fn({},Ge,{children:[Y,E?Wo.jsx(We,fn({},Ye,{ref:ne})):null]}))}))}))]})})),dd=function(e={}){const{createStyledComponent:t=Pl,useThemeProps:n=Il,componentName:r="MuiStack"}=e,o=t(zl);return D.forwardRef((function(e,t){const i=tl(n(e)),{component:l="div",direction:a="column",spacing:s=0,divider:u,children:c,className:d,useFlexGap:f=!1}=i,p=Vn(i,Ll),m={direction:a,spacing:s,useFlexGap:f},h=jn({root:["root"]},(e=>Gn(r,e)),{});return Wo.jsx(o,fn({as:l,ownerState:m,ref:t,className:qn(h.root,d)},p,{children:u?Dl(c,u):c}))}))}({createStyledComponent:sa("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>la({props:e,name:"MuiStack"})});function fd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pd=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fd(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("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"})),md=D.forwardRef(pd);function hd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gd=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hd(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})),vd=D.forwardRef(gd);var bd,yd,xd,_d={};var Ed=function(){if(xd)return yd;xd=1;const e=function(){if(bd)return _d;bd=1;var e=ae(),t=Se(),n=le(),r=re(),o=w();return _d.LinkPlugin=function({validateUrl:i}){let[l]=t.useLexicalComposerContext();return o.useEffect((()=>{if(!l.hasNodes([e.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return n.mergeRegister(l.registerCommand(e.TOGGLE_LINK_COMMAND,(t=>{if(null===t)return e.toggleLink(t),!0;if("string"==typeof t)return!(void 0!==i&&!i(t)||(e.toggleLink(t),0));let{url:n,target:r,rel:o,title:l}=t;return e.toggleLink(n,{rel:o,target:r,title:l}),!0}),r.COMMAND_PRIORITY_LOW),void 0!==i?l.registerCommand(r.PASTE_COMMAND,(t=>{let n=r.$getSelection();if(!r.$isRangeSelection(n)||n.isCollapsed()||!(t instanceof ClipboardEvent)||null==t.clipboardData)return!1;let o=t.clipboardData.getData("text");return!!i(o)&&!n.getNodes().some((e=>r.$isElementNode(e)))&&(l.dispatchCommand(e.TOGGLE_LINK_COMMAND,o),t.preventDefault(),!0)}),r.COMMAND_PRIORITY_LOW):()=>{})}),[l,i]),null},_d}();return yd=e}();function Cd(e){if(e.type)return e;if("#"===e.charAt(0))return Cd(function(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(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(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."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function wd(e,t){return e=Cd(e),t=function(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)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(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(", "),")")}(e)}const Sd={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)"},kd=12,Td=14,Nd=16,Rd=24,Ad=3,Od=300,Ld=400,Md=600,Pd=700,Id={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};wd(Sd.GREYSCALE_0,.05),wd(Sd.GREEN_PALE,.5),wd(Sd.BLUE_PALE,.5),wd(Sd.GREEN_PALE,.5),wd(Sd.BLUE_PALE,.5),wd(Sd.GREEN_PALE,.5),wd(Sd.BLUE_PALE,.5);var Dd;function zd(){return zd=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},zd.apply(null,arguments)}wd(Sd.GREEN_PALE,.5),wd(Sd.BLUE_PALE,.5),wd(Sd.GREEN_PALE,.5),wd(Sd.BLUE_PALE,.5);var $d,Fd=function(e){return D.createElement("svg",zd({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Dd||(Dd=D.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Bd(){return Bd=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},Bd.apply(null,arguments)}var Hd=function(e){return D.createElement("svg",Bd({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),$d||($d=D.createElement("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.345z"})))};function jd({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wo.jsx("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function Wd(e={}){return Wo.jsx(jd,{...e,children:Wo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Wo.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wo.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 Kd(e={}){return Wo.jsx(jd,{...e,children:Wo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Wo.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Wo.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wo.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Ud(e={}){return Wo.jsx(jd,{fontSize:"medium",...e,children:Wo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Wo.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Wo.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Gd(e={}){return Wo.jsx(jd,{fontSize:"medium",...e,children:Wo.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Wo.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wo.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 Yd({className:e}){return Wo.jsx(jd,{fontSize:"small",className:e,children:Wo.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Wo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Wo.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Wo.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Wo.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"}),Wo.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 Vd(e={}){return Wo.jsx(jd,{...e,children:Wo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Wo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Wo.jsx("rect",{stroke:Sd.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Wo.jsx(Hd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Wo.jsx(Fd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Wo.jsx(Ud,{}),Wo.jsx(Gd,{}),Wo.jsx((function(e={}){return Wo.jsx(jd,{...e,children:Wo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Wo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Wo.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Wo.jsx(Wd,{}),Wo.jsx(Kd,{}),Wo.jsx(Fd,{style:{color:Sd.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const Qd={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:Ad,"& > 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 qd=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Sd.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Sd.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wo.jsx(Fd,{"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 ${Sd.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Sd.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Sd.MISC_FOCUS_BORDER}`,borderRadius:Ad,backgroundColor:Sd.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 ${Sd.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Sd.WHITE,color:Sd.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:Ad},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Sd.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Sd.GREYSCALE_0_15,backgroundColor:Sd.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Sd.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Sd.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Sd.GREEN_PALE},"&:active":{backgroundColor:Sd.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Sd.GREEN_PALE,boxShadow:`0 0 0 3px ${yl(Sd.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Sd.BLUE_PALE},"&:active":{backgroundColor:Sd.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Sd.BLUE_PALE,boxShadow:`0 0 0 3px ${yl(Sd.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:Ad,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Sd.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Sd.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Sd.GREYSCALE_0_15,backgroundColor:Sd.GREYSCALE_100_60,"&:active":{backgroundColor:Sd.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Sd.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Sd.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Sd.PURPLE,"&.Mui-focusVisible":{borderColor:Sd.PURPLE,boxShadow:`0 0 0 3px ${yl(Sd.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Sd.GREEN,"&.Mui-focusVisible":{borderColor:Sd.GREEN,boxShadow:`0 0 0 3px ${yl(Sd.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Sd.BLUE,"&.Mui-focusVisible":{borderColor:Sd.BLUE,boxShadow:`0 0 0 3px ${yl(Sd.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Sd.ORANGE,"&.Mui-focusVisible":{borderColor:Sd.ORANGE,boxShadow:`0 0 0 3px ${yl(Sd.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Sd.RED,"&.Mui-focusVisible":{borderColor:Sd.RED,boxShadow:`0 0 0 3px ${yl(Sd.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Sd.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Sd.PURPLE_PALE},"&:active":{backgroundColor:Sd.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Sd.PURPLE_PALE,boxShadow:`0 0 0 3px ${yl(Sd.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Sd.GREEN_PALE},"&:active":{backgroundColor:Sd.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Sd.GREEN_PALE,boxShadow:`0 0 0 3px ${yl(Sd.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Sd.BLUE_PALE},"&:active":{backgroundColor:Sd.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Sd.BLUE_PALE,boxShadow:`0 0 0 3px ${yl(Sd.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Sd.ORANGE_PALE},"&:active":{backgroundColor:Sd.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Sd.ORANGE_PALE,boxShadow:`0 0 0 3px ${yl(Sd.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Sd.RED_PALE},"&:active":{backgroundColor:Sd.RED_DARK},"&.Mui-focusVisible":{borderColor:Sd.RED_PALE,boxShadow:`0 0 0 3px ${yl(Sd.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:Sd.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Sd.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ad,boxShadow:`inset 0 0 0 2px ${Sd.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wo.jsx(Hd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:kd,borderRadius:Ad,color:Sd.TEXT_PRIMARY,backgroundColor:Sd.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Sd.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Sd.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Sd.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Sd.GREYSCALE_0_05,color:Sd.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Sd.GREEN,borderColor:Sd.GREEN},"&.MuiChip-outlinedInfo":{color:Sd.BLUE,borderColor:Sd.BLUE},"&.MuiChip-outlinedWarning":{color:Sd.ORANGE,borderColor:Sd.ORANGE},"&.MuiChip-outlinedError":{color:Sd.RED,borderColor:Sd.RED}},outlined:{border:`solid 1px ${Sd.GREYSCALE_0_15}`,backgroundColor:Sd.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ad,boxShadow:"none",backgroundColor:Sd.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Sd.GREEN,borderColor:Sd.GREEN},outlinedSecondary:{color:Sd.BLUE,borderColor:Sd.BLUE},label:{fontFamily:Id.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wo.jsx(Hd,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wo.jsx(Fd,{"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:Ad},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ad,fontSize:Td,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Sd.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Sd.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Sd.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Sd.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Sd.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ad,border:`solid 1px ${Sd.GREYSCALE_0_15}`,color:Sd.GREYSCALE_0_60,marginRight:0,width:Rd,height:Rd},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Sd.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ad,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Sd.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Td}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:kd,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Sd.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Sd.GREYSCALE_25,fontSize:kd,fontFamily:Id.FONT_FAMILY,fontWeight:Md,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Sd.TEXT_PRIMARY},"&.Mui-error":{color:Sd.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Sd.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ld,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Sd.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ld,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Td,lineHeight:"16px",backgroundColor:Sd.WHITE,borderRadius:Ad,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Sd.GREYSCALE_0_05}`,borderColor:Sd.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Sd.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Sd.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Sd.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Sd.RED}`,boxShadow:`0px 0px 0px 1px ${Sd.RED}, inset 0 2px 0 0 ${Sd.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Sd.GREYSCALE_0_10}`,borderColor:Sd.GREYSCALE_0_10,backgroundColor:Sd.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Sd.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Sd.GREYSCALE_0_15,borderRadius:Ad,boxShadow:`inset 0 2px 0 0 ${Sd.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wo.jsx(Fd,{...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:Sd.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Sd.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Sd.GREYSCALE_0_03},"&:active":{backgroundColor:Sd.GREYSCALE_0_10},"&:focus":{backgroundColor:Sd.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Sd.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Sd.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Sd.GREYSCALE_0_30,"&:hover":{backgroundColor:Sd.GREYSCALE_0_0,borderColor:Sd.GREYSCALE_0_15},"& ~svg":{color:Sd.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Sd.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ad}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Sd.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Sd.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Sd.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Td,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:kd,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:kd,fontWeight:Md,color:Sd.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Md}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Sd.GREYSCALE_0_15}, 0px 0px 0px 1px ${Sd.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wo.jsx(Ud,{}),checkedIcon:Wo.jsx(Gd,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Sd.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Sd.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Sd.GREEN_PALE,boxShadow:`0 0 0 3px ${yl(Sd.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Sd.BLUE_PALE,boxShadow:`0 0 0 3px ${yl(Sd.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Sd.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Sd.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wo.jsx(Vd,{}),checkedIcon:Wo.jsx(Wd,{}),indeterminateIcon:Wo.jsx(Kd,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ad,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Sd.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Sd.GREYSCALE_0_55,color:Sd.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:Sd.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Sd.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Sd.GREYSCALE_0_55,"&:hover":{color:Sd.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:Sd.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Sd.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Td,color:Sd.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Md},secondary:{fontSize:kd,color:Sd.GREYSCALE_45,fontWeight:Ld,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Td,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Td,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Sd.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:kd,borderBottom:`solid 1px ${Sd.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Td,color:Sd.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Sd.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Sd.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Sd.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Sd.RED}}},"&.Mui-focusVisible":{backgroundColor:Sd.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:Sd.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:Sd.GREEN,height:"24px","&.Mui-disabled":{color:Sd.GREYSCALE_0_15}},rail:{backgroundColor:Sd.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Sd.GREYSCALE_0_05}`,borderRadius:Ad,boxShadow:`inset 0px 0px 0px 1px ${Sd.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Sd.GREYSCALE_0_05}`,borderRadius:Ad},thumb:{height:"16px",width:"16px",borderRadius:Ad,backgroundColor:Sd.WHITE,boxShadow:`0px 1px 2px 0px ${Sd.GREYSCALE_0_15}, 0px 0px 0px 1px ${Sd.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ad,boxShadow:`0 2px 4px 0 ${Sd.GREYSCALE_0_30}, 0 0 0 1px ${Sd.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Sd.GREYSCALE_0_15}, 0 0 0 1px ${Sd.GREYSCALE_0_06}, 0 0 0 2px ${Sd.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Sd.GREYSCALE_0_15}, 0 0 0 1px ${Sd.GREYSCALE_0_06}, 0 0 0 2px ${Sd.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Sd.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Sd.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Sd.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Sd.GREYSCALE_0_15},markLabel:{color:Sd.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Sd.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Sd.WHITE,color:Sd.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:Sd.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:Sd.GREEN_PALE,boxShadow:`0 0 0 3px ${yl(Sd.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Sd.BLUE_PALE,boxShadow:`0 0 0 3px ${yl(Sd.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Sd.GREYSCALE_0_15,borderRadius:Ad},thumb:{height:"16px",width:"16px",borderRadius:Ad,backgroundColor:Sd.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:Td,fontWeight:Md,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Sd.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Sd.MISC_FOCUS_BORDER}`,backgroundColor:Sd.GREYSCALE_0_03,borderRadius:Ad},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Sd.GREYSCALE_25,"&.Mui-selected":{color:Sd.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Td,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ad,"&:hover":{backgroundColor:Sd.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 ${Sd.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Sd.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ad,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Sd.GREYSCALE_0_05},"&:hover":{backgroundColor:Sd.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Sd.GREYSCALE_85}`,borderRight:`1px solid ${Sd.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Md,backgroundColor:Sd.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:Sd.GREYSCALE_98,borderBottom:`1px solid ${Sd.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Sd.GREYSCALE_85}`,borderTop:`1px solid ${Sd.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Sd.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Sd.GREYSCALE_0_05,"&:hover":{backgroundColor:Sd.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Sd.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wo.jsx(Yd,{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 ${Sd.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Td,borderRadius:Ad,padding:"7px 16px",border:`1px solid ${Sd.GREYSCALE_0_15}`,backgroundColor:Sd.GREYSCALE_100_60,color:Sd.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Sd.GREYSCALE_0_10,border:`1px solid ${Sd.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Sd.GREYSCALE_0_03,border:`1px solid ${Sd.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Sd.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Sd.MISC_FOCUS_BORDER}`,border:`1px solid ${Sd.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Sd.GREYSCALE_25,backgroundColor:Sd.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Sd.GREYSCALE_0_10,border:`1px solid ${Sd.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:kd,height:24,width:24,padding:7},sizeLarge:{fontSize:Nd,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Td,borderRadius:Ad}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Sd.GREYSCALE_20},tooltip:{backgroundColor:Sd.GREYSCALE_20,fontSize:kd,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Qd}:{}}))(t);const Xd=e=>({mode:"light",primary:{ultraLight:Sd.GREEN_ULTRA_LIGHT,light:Sd.GREEN_PALE,main:Sd.GREEN,dark:Sd.GREEN_DARK,extraDark:Sd.GREEN_EXTRA_DARK,contrastText:Sd.WHITE},secondary:{ultraLight:Sd.BLUE_ULTRA_LIGHT,light:Sd.BLUE_PALE,main:Sd.BLUE,dark:Sd.BLUE_DARK,extraDark:Sd.BLUE_EXTRA_DARK,contrastText:Sd.WHITE},error:{ultraLight:Sd.RED_ULTRA_LIGHT,light:Sd.RED_PALE,main:Sd.RED,dark:Sd.RED_DARK,extraDark:Sd.RED_EXTRA_DARK,contrastText:Sd.WHITE},warning:{ultraLight:Sd.ORANGE_ULTRA_LIGHT,light:Sd.ORANGE_PALE,main:Sd.ORANGE,dark:Sd.ORANGE_DARK,extraDark:Sd.ORANGE_EXTRA_DARK,contrastText:Sd.WHITE},success:{ultraLight:Sd.GREEN_ULTRA_LIGHT,light:Sd.GREEN_PALE,main:Sd.GREEN,dark:Sd.GREEN_DARK,extraDark:Sd.GREEN_EXTRA_DARK,contrastText:Sd.WHITE},info:{ultraLight:Sd.BLUE_ULTRA_LIGHT,light:Sd.BLUE_PALE,main:Sd.BLUE,dark:Sd.BLUE_DARK,extraDark:Sd.BLUE_EXTRA_DARK,contrastText:Sd.WHITE},text:{primary:Sd.TEXT_PRIMARY,secondary:Sd.TEXT_SECONDARY,disabled:Sd.GREYSCALE_0_30},action:{hover:Sd.GREYSCALE_0_03,hoverOpacity:.03,selected:Sd.GREYSCALE_0_05,selectedOpacity:.05,focus:Sd.MISC_FOCUS_BORDER},amethyst:{ultraLight:Sd.WHITE,main:Sd.PURPLE,light:Sd.PURPLE_PALE,dark:Sd.PURPLE_DARK,extraDark:Sd.GREYSCALE_0_0,contrastText:Sd.WHITE},background:{paper:Sd.WHITE,default:Sd.GREYSCALE_95},divider:Sd.GREYSCALE_0_15}),Jd=(e="light",t=!1)=>ra(((e,t=!1)=>({components:qd(0,t),palette:Xd(),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:Td,fontWeightLight:Od,fontWeightRegular:Ld,fontWeightMedium:Md,fontWeightBold:Pd,htmlFontSize:Td,fontFamily:Id.FONT_FAMILY,button:{fontWeight:Md,fontSize:Td,textTransform:"none"},body1:{fontSize:Nd,lineHeight:"24px"},body2:{fontSize:Td,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Rd,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Nd,fontWeight:Md,lineHeight:"16px"},h6:{fontSize:Td,fontWeight:Md,lineHeight:"16px"},caption:{color:Sd.TEXT_SECONDARY},subtitle1:{fontSize:Td,color:Sd.TEXT_SECONDARY},subtitle2:{fontSize:kd,color:Sd.TEXT_SECONDARY}},shape:{borderRadius:Ad}}))(0,t));function Zd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ef=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Zd(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("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"})),tf=D.forwardRef(ef);var nf=Object.defineProperty,rf=Object.getOwnPropertySymbols,of=Object.prototype.hasOwnProperty,lf=Object.prototype.propertyIsEnumerable,af=(e,t,n)=>t in e?nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sf=(e,t)=>{for(var n in t)nf(e,n,{get:t[n],enumerable:!0})},uf=(e,t,n)=>(af(e,"symbol"!=typeof t?t+"":t,n),n);sf({},{DEFAULT_LANGUAGE:()=>df,DEFAULT_LANGUAGE_SHORT:()=>ff,flattenParams:()=>_f,flattenTranslationsJSON:()=>hf,format:()=>Ef,formatWithKeys:()=>Cf,getLongLanguageDesc:()=>xf,getShortLanguageDesc:()=>yf,parseLangFromUrl:()=>gf,resolveLocale:()=>bf,updateLangAttribute:()=>wf});var cf=[{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"}],df="en-US",ff="en",pf=["zh-cn","zh-tw","qps-ploc"],mf=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),hf=e=>mf(e)?Object.keys(e).reduce(((t,n)=>{const r=e[n],o=mf(r)&&r.value;return o&&(t[n]=o),t}),{}):{},gf=()=>{var e;return null!=(e=new URLSearchParams(window.location.search).get("lang"))?e:void 0},vf=e=>{if(!e)return;"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");const t=e.toLowerCase();if(pf.includes(e.toLocaleLowerCase()))return cf.find((({long:e})=>e.toLowerCase()===t));const[n]=t.split("-");return cf.find((({short:e})=>e.toLowerCase()===n||e.toLowerCase()===t))},bf=(...e)=>{for(const t of e){const e=vf(t);if(e)return e.short}},yf=e=>{const t=vf(e);return t?t.short:(console.warn(`Language '${e}' not supported, falling back to '${ff}'`),ff)},xf=e=>{const t=vf(e);return t?t.long:(console.warn(`Language '${e}' not supported, falling back to '${df}'`),df)},_f=e=>Array.isArray(e[0])?e[0]:e,Ef=(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))},Cf=(e,t)=>e.replace(/(\{)(\w+)(\})/g,((e,n,r)=>{var o;return t[r],null!=(o=t[r])?o:e})),wf=e=>{const t=yf(e);document.documentElement.setAttribute("lang",t)},Sf={},kf=Array.prototype.slice,Tf=function(e){return("0"+e.toString()).substr(-2)},Nf=function(e){var t=typeof e;return"function"===t||"object"===t},Rf=function(e){return"function"===typeof e},Af=function(e){return null!=e},Of=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},Lf=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},Mf=function(e){return!0===e||!1===e},Pf=function(e){return null===e},If=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))))},Df=function(e,t){return Rf(e)?e(t):e},zf=function(e,t){var n,r,o;for(n in t)t.hasOwnProperty(n)&&(r=t[n],"string"==typeof(o=r)||"[object String]"===Object.prototype.toString.call(o)||Lf(r)||Mf(r)||Of(r)||Pf(r)?e[n]=r:(null==e[n]&&(e[n]={}),zf(e[n],r)));return e},$f={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"]},Ff={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},Bf={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},Hf={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},jf=[null,"kb","mb","gb","tb"],Wf={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};Sf.reset=function(){var e;for(e in Wf)this[e]=Wf[e]},Sf.initializeOptions=function(){var e;for(e in Wf)Af(this[e])||(this[e]=Wf[e])},Sf.initializeOptions(),Sf.locales={},Sf.locales.get=function(e){var t=this[e]||this[Sf.locale]||this.default;return Rf(t)&&(t=t(e)),!1===Of(t)&&(t=[t]),t},Sf.locales.default=function(e){var t=[],n=[];return e&&t.push(e),!e&&Sf.locale&&t.push(Sf.locale),Sf.fallbacks&&Sf.defaultLocale&&t.push(Sf.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),Sf.fallbacks&&[r,o].forEach((function(t){null!=t&&t!==e&&-1===n.indexOf(t)&&n.push(t)}))})),t.length||t.push("en"),n},Sf.pluralization={},Sf.pluralization.get=function(e){return this[e]||this[Sf.locale]||this.default},Sf.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},Sf.currentLocale=function(){return this.locale||this.defaultLocale},Sf.isSet=Af,Sf.lookup=function(e,t){t=t||{};var n,r,o,i,l=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);l.length;)if(n=l.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(Af(t.defaultValue))return Df(t.defaultValue,e)},Sf.pluralizationLookupWithoutFallback=function(e,t,n){var r,o,i=this.pluralization.get(t)(e);if(n&&Nf(n))for(;i.length;)if(r=i.shift(),Af(n[r])){o=n[r];break}return o},Sf.pluralizationLookup=function(e,t,n){n=n||{};var r,o,i,l,a=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);a.length;)if(r=a.shift(),o=t.split(n.separator||this.defaultSeparator),i=this.translations[r]){for(;o.length&&(i=i[o.shift()],Nf(i));)0===o.length&&(l=this.pluralizationLookupWithoutFallback(e,r,i));if(null!=l)break}return null==l&&Af(n.defaultValue)&&(l=Nf(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,i=n.defaultValue),{message:l,translations:i}},Sf.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:$f.meridian},Sf.prepareOptions=function(){for(var e,t=kf.call(arguments),n={};t.length;)if("object"==typeof(e=t.shift()))for(var r in e)e.hasOwnProperty(r)&&(Af(n[r])||(n[r]=e[r]));return n},Sf.createTranslationOptions=function(e,t){var n=[{scope:e}];return Af(t.defaults)&&(n=n.concat(t.defaults)),Af(t.defaultValue)&&n.push({message:t.defaultValue}),n},Sf.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(Af(t.scope)?(o=t.scope,n=this.lookup(o,i)):Af(t.message)&&(n=Df(t.message,e)),null!=n)return!0}),this)?("string"==typeof n?n=this.interpolate(n,t):Of(n)?n=n.map((function(e){return"string"==typeof e?this.interpolate(e,t):e}),this):Nf(n)&&Af(t.count)&&(n=this.pluralize(t.count,o,t)),n):this.missingTranslation(e,t)},Sf.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,l=e.match(this.placeholder);if(!l)return e;for(;l.length;)o=(n=l.shift()).replace(this.placeholder,"$1"),r=Af(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,"$")},Sf.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))},Sf.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]'},Sf.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},Sf.nullPlaceholder=function(){return Sf.missingPlaceholder.apply(Sf,arguments)},Sf.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),Ff);var n,r,o=e<0,i=function(e,t){return If("round",e,-t).toFixed(t)}(Math.abs(e),t.precision).toString(),l=i.split("."),a=[],s=t.format||"%n",u=o?"-":"";for(e=l[0],n=l[1];e.length>0;)a.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);return r=a.join(t.delimiter),t.strip_insignificant_zeros&&n&&(n=n.replace(/0+$/,"")),t.precision>0&&n&&(r+=t.separator+n),r=(s=t.sign_first?"%s"+s:s.replace("%n","%s%n")).replace("%u",t.unit).replace("%n",r).replace("%s",u)},Sf.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),Bf),this.toNumber(e,t)},Sf.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)}},Sf.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},Sf.strftime=function(e,t,n){n=this.lookup("date",n);var r=Sf.meridian();if(n||(n={}),n=this.prepareOptions(n,$f),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(),l=e.getFullYear(),a=e.getMonth()+1,s=e.getHours(),u=s,c=s>11?1:0,d=e.getSeconds(),f=e.getMinutes(),p=e.getTimezoneOffset(),m=Math.floor(Math.abs(p/60)),h=Math.abs(p)-60*m,g=(p>0?"-":"+")+(m.toString().length<2?"0"+m:m)+(h.toString().length<2?"0"+h:h);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[a])).replace("%B",n.month_names[a])).replace("%d",Tf(i))).replace("%e",i)).replace("%-d",i)).replace("%H",Tf(s))).replace("%-H",s)).replace("%k",s)).replace("%I",Tf(u))).replace("%-I",u)).replace("%l",u)).replace("%m",Tf(a))).replace("%-m",a)).replace("%M",Tf(f))).replace("%-M",f)).replace("%p",r[c])).replace("%P",r[c].toLowerCase())).replace("%S",Tf(d))).replace("%-S",d)).replace("%w",o)).replace("%y",Tf(l))).replace("%-y",Tf(l).replace(/^0+/,""))).replace("%Y",l)).replace("%z",g)).replace("%Z",g)},Sf.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},Sf.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),Hf),this.toNumber(e,t)},Sf.toHumanSize=function(e,t){for(var n,r,o,i=e,l=0;i>=1024&&l<4;)i/=1024,l+=1;return 0===l?(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."+jf[l],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)},Sf.getFullScope=function(e,t){return t=t||{},Of(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},Sf.extend=function(e,t){return void 0===e&&void 0===t?{}:zf(e,t)},Sf.t=Sf.translate.bind(Sf),Sf.l=Sf.localize.bind(Sf),Sf.p=Sf.pluralize.bind(Sf);var Kf={};sf(Kf,{af:()=>Xf,ak:()=>Jf,am:()=>Zf,an:()=>ep,ar:()=>tp,ars:()=>np,as:()=>rp,asa:()=>op,ast:()=>ip,az:()=>lp,bal:()=>ap,be:()=>sp,bem:()=>up,bez:()=>cp,bg:()=>dp,bho:()=>fp,bm:()=>pp,bn:()=>mp,bo:()=>hp,br:()=>gp,brx:()=>vp,bs:()=>bp,ca:()=>yp,ce:()=>xp,ceb:()=>_p,cgg:()=>Ep,chr:()=>Cp,ckb:()=>wp,cs:()=>Sp,cy:()=>kp,da:()=>Tp,de:()=>Np,doi:()=>Rp,dsb:()=>Ap,dv:()=>Op,dz:()=>Lp,ee:()=>Mp,el:()=>Pp,en:()=>Ip,eo:()=>Dp,es:()=>zp,et:()=>$p,eu:()=>Fp,fa:()=>Bp,ff:()=>Hp,fi:()=>jp,fil:()=>Wp,fo:()=>Kp,fr:()=>Up,fur:()=>Gp,fy:()=>Yp,ga:()=>Vp,gd:()=>Qp,gl:()=>qp,gsw:()=>Xp,gu:()=>Jp,guw:()=>Zp,gv:()=>em,ha:()=>tm,haw:()=>nm,he:()=>rm,hi:()=>om,hnj:()=>im,hr:()=>lm,hsb:()=>am,hu:()=>sm,hy:()=>um,ia:()=>cm,id:()=>dm,ig:()=>fm,ii:()=>pm,io:()=>mm,is:()=>hm,it:()=>gm,iu:()=>vm,ja:()=>bm,jbo:()=>ym,jgo:()=>xm,jmc:()=>_m,jv:()=>Em,jw:()=>Cm,ka:()=>wm,kab:()=>Sm,kaj:()=>km,kcg:()=>Tm,kde:()=>Nm,kea:()=>Rm,kk:()=>Am,kkj:()=>Om,kl:()=>Lm,km:()=>Mm,kn:()=>Pm,ko:()=>Im,ks:()=>Dm,ksb:()=>zm,ksh:()=>$m,ku:()=>Fm,kw:()=>Bm,ky:()=>Hm,lag:()=>jm,lb:()=>Wm,lg:()=>Km,lij:()=>Um,lkt:()=>Gm,ln:()=>Ym,lo:()=>Vm,lt:()=>Qm,lv:()=>qm,mas:()=>Xm,mg:()=>Jm,mgo:()=>Zm,mk:()=>eh,ml:()=>th,mn:()=>nh,mo:()=>rh,mr:()=>oh,ms:()=>ih,mt:()=>lh,my:()=>ah,nah:()=>sh,naq:()=>uh,nb:()=>ch,nd:()=>dh,ne:()=>fh,nl:()=>ph,nn:()=>mh,nnh:()=>hh,no:()=>gh,nqo:()=>vh,nr:()=>bh,nso:()=>yh,ny:()=>xh,nyn:()=>_h,om:()=>Eh,or:()=>Ch,os:()=>wh,osa:()=>Sh,pa:()=>kh,pap:()=>Th,pcm:()=>Nh,pl:()=>Rh,prg:()=>Ah,ps:()=>Oh,pt:()=>Lh,pt_PT:()=>Mh,rm:()=>Ph,ro:()=>Ih,rof:()=>Dh,ru:()=>zh,rwk:()=>$h,sah:()=>Fh,saq:()=>Bh,sat:()=>Hh,sc:()=>jh,scn:()=>Wh,sd:()=>Kh,sdh:()=>Uh,se:()=>Gh,seh:()=>Yh,ses:()=>Vh,sg:()=>Qh,sh:()=>qh,shi:()=>Xh,si:()=>Jh,sk:()=>Zh,sl:()=>eg,sma:()=>tg,smi:()=>ng,smj:()=>rg,smn:()=>og,sms:()=>ig,sn:()=>lg,so:()=>ag,sq:()=>sg,sr:()=>ug,ss:()=>cg,ssy:()=>dg,st:()=>fg,su:()=>pg,sv:()=>mg,sw:()=>hg,syr:()=>gg,ta:()=>vg,te:()=>bg,teo:()=>yg,th:()=>xg,ti:()=>_g,tig:()=>Eg,tk:()=>Cg,tl:()=>wg,tn:()=>Sg,to:()=>kg,tpi:()=>Tg,tr:()=>Ng,ts:()=>Rg,tzm:()=>Ag,ug:()=>Og,uk:()=>Lg,und:()=>Mg,ur:()=>Pg,uz:()=>Ig,ve:()=>Dg,vec:()=>zg,vi:()=>$g,vo:()=>Fg,vun:()=>Bg,wa:()=>Hg,wae:()=>jg,wo:()=>Wg,xh:()=>Kg,xog:()=>Ug,yi:()=>Gg,yo:()=>Yg,yue:()=>Vg,zh:()=>Qg,zu:()=>qg});var Uf=(e,t)=>t?"other":1==e?"one":"other",Gf=(e,t)=>t?"other":0==e||1==e?"one":"other",Yf=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",Vf=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},Qf=(e,t)=>"other",qf=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",Xf=Uf,Jf=Gf,Zf=Yf,ep=Uf,tp=(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"},np=(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"},rp=(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",op=Uf,ip=Vf,lp=(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"},ap=(e,t)=>1==e?"one":"other",sp=(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"},up=Uf,cp=Uf,dp=Uf,fp=Gf,pp=Qf,mp=(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",hp=Qf,gp=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),l=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==l?"many":"other"},vp=Uf,bp=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==l&&11!=a||1==s&&11!=u?"one":i&&l>=2&&l<=4&&(a<12||a>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},yp=(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"},xp=Uf,_p=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=o.slice(-1);return t?"other":i&&(1==r||2==r||3==r)||i&&4!=l&&6!=l&&9!=l||!i&&4!=a&&6!=a&&9!=a?"one":"other"},Ep=Uf,Cp=Uf,wp=Uf,Sp=(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"},kp=(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",Tp=(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"},Np=Vf,Rp=Yf,Ap=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-2),a=o.slice(-2);return t?"other":i&&1==l||1==a?"one":i&&2==l||2==a?"two":i&&(3==l||4==l)||3==a||4==a?"few":"other"},Op=Uf,Lp=Qf,Mp=Uf,Pp=Uf,Ip=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),l=o&&n[0].slice(-2);return t?1==i&&11!=l?"one":2==i&&12!=l?"two":3==i&&13!=l?"few":"other":1==e&&r?"one":"other"},Dp=Uf,zp=(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"},$p=Vf,Fp=Uf,Bp=Yf,Hp=(e,t)=>t?"other":e>=0&&e<2?"one":"other",jp=Vf,Wp=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=l&&6!=l&&9!=l||!i&&4!=a&&6!=a&&9!=a?"one":"other"},Kp=Uf,Up=(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"},Gp=Uf,Yp=Vf,Vp=(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"},Qp=(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"},qp=Vf,Xp=Uf,Jp=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",Zp=Gf,em=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),l=r.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=l&&20!=l&&40!=l&&60!=l&&80!=l?o?"other":"many":"few"},tm=Uf,nm=Uf,rm=(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"},om=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",im=Qf,lm=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==l&&11!=a||1==s&&11!=u?"one":i&&l>=2&&l<=4&&(a<12||a>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},am=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-2),a=o.slice(-2);return t?"other":i&&1==l||1==a?"one":i&&2==l||2==a?"two":i&&(3==l||4==l)||3==a||4==a?"few":"other"},sm=(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",um=(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",cm=Vf,dm=Qf,fm=Qf,pm=Qf,mm=Vf,hm=(e,t)=>{const n=String(e).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==e,l=r.slice(-1),a=r.slice(-2);return t?"other":i&&1==l&&11!=a||o%10==1&&o%100!=11?"one":"other"},gm=(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"},vm=qf,bm=Qf,ym=Qf,xm=Uf,_m=Uf,Em=Qf,Cm=Qf,wm=(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"},Sm=(e,t)=>t?"other":e>=0&&e<2?"one":"other",km=Uf,Tm=Uf,Nm=Qf,Rm=Qf,Am=(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"},Om=Uf,Lm=Uf,Mm=Qf,Pm=Yf,Im=Qf,Dm=Uf,zm=Uf,$m=(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",Fm=Uf,Bm=(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e,o=r&&n[0].slice(-2),i=r&&n[0].slice(-3),l=r&&n[0].slice(-5),a=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&&(l>=1e3&&l<=2e4||4e4==l||6e4==l||8e4==l)||0!=e&&1e5==a?"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"},Hm=Uf,jm=(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},Wm=Uf,Km=Uf,Um=(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"},Gm=Qf,Ym=Gf,Vm=(e,t)=>t&&1==e?"one":"other",Qm=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=Number(n[0])==e,i=o&&n[0].slice(-1),l=o&&n[0].slice(-2);return t?"other":1==i&&(l<11||l>19)?"one":i>=2&&i<=9&&(l<11||l>19)?"few":0!=r?"many":"other"},qm=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,l=i&&n[0].slice(-1),a=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==l||a>=11&&a<=19||2==o&&s>=11&&s<=19?"zero":1==l&&11!=a||2==o&&1==u&&11!=s||2!=o&&1==u?"one":"other"},Xm=Uf,Jm=Gf,Zm=Uf,eh=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?1==l&&11!=a?"one":2==l&&12!=a?"two":7!=l&&8!=l||17==a||18==a?"other":"many":i&&1==l&&11!=a||1==s&&11!=u?"one":"other"},th=Uf,nh=Uf,rh=(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"},oh=(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",ih=(e,t)=>t&&1==e?"one":"other",lh=(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"},ah=Qf,sh=Uf,uh=qf,ch=Uf,dh=Uf,fh=(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"},ph=Vf,mh=Uf,hh=Uf,gh=Uf,vh=Qf,bh=Uf,yh=Gf,xh=Uf,_h=Uf,Eh=Uf,Ch=(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"},wh=Uf,Sh=Qf,kh=Gf,Th=Uf,Nh=Yf,Rh=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),l=r.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(l<12||l>14)?"few":o&&1!=r&&(0==i||1==i)||o&&i>=5&&i<=9||o&&l>=12&&l<=14?"many":"other"},Ah=(e,t)=>{const n=String(e).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==e,l=i&&n[0].slice(-1),a=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return t?"other":i&&0==l||a>=11&&a<=19||2==o&&s>=11&&s<=19?"zero":1==l&&11!=a||2==o&&1==u&&11!=s||2!=o&&1==u?"one":"other"},Oh=Uf,Lh=(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"},Mh=(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"},Ph=Uf,Ih=(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"},Dh=Uf,zh=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-1),l=r.slice(-2);return t?"other":o&&1==i&&11!=l?"one":o&&i>=2&&i<=4&&(l<12||l>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&l>=11&&l<=14?"many":"other"},$h=Uf,Fh=Qf,Bh=Uf,Hh=qf,jh=(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"},Wh=(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"},Kh=Uf,Uh=Uf,Gh=qf,Yh=Uf,Vh=Qf,Qh=Qf,qh=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==l&&11!=a||1==s&&11!=u?"one":i&&l>=2&&l<=4&&(a<12||a>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},Xh=(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"},Jh=(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"},Zh=(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"},eg=(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"},tg=qf,ng=qf,rg=qf,og=qf,ig=qf,lg=Uf,ag=Uf,sg=(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"},ug=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=r.slice(-2),s=o.slice(-1),u=o.slice(-2);return t?"other":i&&1==l&&11!=a||1==s&&11!=u?"one":i&&l>=2&&l<=4&&(a<12||a>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},cg=Uf,dg=Uf,fg=Uf,pg=Qf,mg=(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),l=o&&n[0].slice(-2);return t?1!=i&&2!=i||11==l||12==l?"other":"one":1==e&&r?"one":"other"},hg=Vf,gg=Uf,vg=Uf,bg=Uf,yg=Uf,xg=Qf,_g=Gf,Eg=Uf,Cg=(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"},wg=(e,t)=>{const n=String(e).split("."),r=n[0],o=n[1]||"",i=!n[1],l=r.slice(-1),a=o.slice(-1);return t?1==e?"one":"other":i&&(1==r||2==r||3==r)||i&&4!=l&&6!=l&&9!=l||!i&&4!=a&&6!=a&&9!=a?"one":"other"},Sg=Uf,kg=Qf,Tg=Qf,Ng=Uf,Rg=Uf,Ag=(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"},Og=Uf,Lg=(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,l=i&&n[0].slice(-1),a=i&&n[0].slice(-2),s=r.slice(-1),u=r.slice(-2);return t?3==l&&13!=a?"few":"other":o&&1==s&&11!=u?"one":o&&s>=2&&s<=4&&(u<12||u>14)?"few":o&&0==s||o&&s>=5&&s<=9||o&&u>=11&&u<=14?"many":"other"},Mg=Qf,Pg=Vf,Ig=Uf,Dg=Uf,zg=(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"},$g=(e,t)=>t&&1==e?"one":"other",Fg=Uf,Bg=Uf,Hg=Gf,jg=Uf,Wg=Qf,Kg=Uf,Ug=Uf,Gg=Vf,Yg=Qf,Vg=Qf,Qg=Qf,qg=Yf,Xg=class e{static configure(t,n=df){e.translations=t,e.language=xf(n),e.languageShort=yf(n),wf(e.language),e.onTranslationsChangeListeners.forEach((e=>e())),e.i18nProvider=Sf,Sf.missingTranslation=e=>e,Sf.defaultSeparator=null,Sf.locale=e.language,Sf.translations={[e.language]:e.translationsPlurals};const r=e.languageShort.split("-")[0];Sf.pluralization[e.language]=e=>{try{const t=Kf[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=Cf(o,n)),o}static getPlural(t,n,r){return e.i18nProvider.t(t,((e,t)=>{for(var n in t||(t={}))of.call(t,n)&&af(e,n,t[n]);if(rf)for(var n of rf(t))lf.call(t,n)&&af(e,n,t[n]);return e})({count:n},r))}static append(t){Object.assign(e.translations,t),e.onTranslationsChangeListeners.forEach((e=>e()))}static appendPlurals(t){Object.assign(e.translationsPlurals,t),e.onTranslationsChangeListeners.forEach((e=>e()))}static onTranslationsChange(t){return e.onTranslationsChangeListeners.push(t),()=>{e.onTranslationsChangeListeners.splice(e.onTranslationsChangeListeners.indexOf(t))}}};uf(Xg,"translations",{}),uf(Xg,"translationsPlurals",{}),uf(Xg,"language"),uf(Xg,"languageShort"),uf(Xg,"onTranslationsChangeListeners",[]),uf(Xg,"i18nProvider"),uf(Xg,"get",((e,...t)=>{var n;const r=_f(t);let o=null!=(n=Xg.translations[e])?n:e;return r.length>0&&(o=Ef(o,...r)),o}));var Jg=Xg;var Zg,ev,tv,nv=function(){const[e,t]=D.useState(0);return D.useEffect((()=>{const n=Jg.onTranslationsChange((()=>{t(e+1)}));return()=>{n()}}),[]),Jg.get},rv=Jg,ov={};var iv,lv,av,sv=function(){if(tv)return ev;tv=1;const e=function(){if(Zg)return ov;Zg=1;var e=Se(),t=w();return ov.AutoFocusPlugin=function({defaultSelection:n}){let[r]=e.useLexicalComposerContext();return t.useEffect((()=>{r.focus((()=>{let e=document.activeElement,t=r.getRootElement();null===t||null!==e&&t.contains(e)||t.focus({preventScroll:!0})}),{defaultSelection:n})}),[n,r]),null},ov}();return ev=e}(),uv={};var cv,dv,fv,pv,mv=function(){if(av)return lv;av=1;const e=function(){if(iv)return uv;iv=1;var e=Se(),t=w();function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}var r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;return uv.ContentEditable=function({ariaActiveDescendant:o,ariaAutoComplete:i,ariaControls:l,ariaDescribedBy:a,ariaExpanded:s,ariaLabel:u,ariaLabelledBy:c,ariaMultiline:d,ariaOwns:f,ariaRequired:p,autoCapitalize:m,className:h,id:g,role:v="textbox",spellCheck:b=!0,style:y,tabIndex:x,"data-testid":_,...E}){let[C]=e.useLexicalComposerContext(),[w,S]=t.useState(!1),k=t.useCallback((e=>{C.setRootElement(e)}),[C]);return r((()=>(S(C.isEditable()),C.registerEditableListener((e=>{S(e)})))),[C]),t.createElement("div",n({},E,{"aria-activedescendant":w?o:void 0,"aria-autocomplete":w?i:"none","aria-controls":w?l:void 0,"aria-describedby":a,"aria-expanded":w&&"combobox"===v?!!s:void 0,"aria-label":u,"aria-labelledby":c,"aria-multiline":d,"aria-owns":w?f:void 0,"aria-readonly":!w||void 0,"aria-required":p,autoCapitalize:m,className:h,contentEditable:w,"data-testid":_,id:g,ref:k,role:v,spellCheck:b,style:y,tabIndex:x}))},uv}();return lv=e}();function hv(){if(dv)return cv;dv=1;var e=w();function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}var n={error:null},r=function(r){function o(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=r.call.apply(r,[this].concat(o))||this).state=n,e.resetErrorBoundary=function(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];null==e.props.onReset||(t=e.props).onReset.apply(t,r),e.reset()},e}!function(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,t(e,n)}(o,r),o.getDerivedStateFromError=function(e){return{error:e}};var i=o.prototype;return i.reset=function(){this.setState(n)},i.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},i.componentDidUpdate=function(e,t){var n,r,o=this.props.resetKeys;null!==this.state.error&&null!==t.error&&function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))}(e.resetKeys,o)&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,e.resetKeys,o),this.reset())},i.render=function(){var t=this.state.error,n=this.props,r=n.fallbackRender,o=n.FallbackComponent;if(n=n.fallback,null!==t){if(t={error:t,resetErrorBoundary:this.resetErrorBoundary},e.isValidElement(n))return n;if("function"==typeof r)return r(t);if(o)return e.createElement(o,t);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},o}(e.Component);return cv=function({children:t,onError:n}){return e.createElement(r,{fallback:e.createElement("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"}},"An error was thrown."),onError:n},t)},cv}var gv,vv,bv,yv=h(function(){if(pv)return fv;pv=1;const e=hv();return fv=e}()),xv={},_v={};function Ev(){if(bv)return vv;bv=1;const e=function(){if(gv)return _v;gv=1;var e=re();function t(e,t=!0){return!e&&(e=n(),t&&(e=e.trim()),""===e)}function n(){return e.$getRoot().getTextContent()}function r(n){if(!t(n,!1))return!1;let r=(n=e.$getRoot().getChildren()).length;if(1<r)return!1;for(let t=0;t<r;t++){var o=n[t];if(e.$isDecoratorNode(o))return!1;if(e.$isElementNode(o)){if(!e.$isParagraphNode(o)||0!==o.__indent)return!1;let n=(o=o.getChildren()).length;for(let r=0;r<n;r++)if(!e.$isTextNode(o[t]))return!1}}return!0}return _v.$canShowPlaceholder=r,_v.$canShowPlaceholderCurry=function(e){return()=>r(e)},_v.$findTextIntersectionFromCharacters=function(t,n){var r=t.getFirstChild();t=0;e:for(;null!==r;){if(e.$isElementNode(r)){var o=r.getFirstChild();if(null!==o){r=o;continue}}else if(e.$isTextNode(r)){if(t+(o=r.getTextContentSize())>n)return{node:r,offset:n-t};t+=o}if(null===(o=r.getNextSibling())){for(r=r.getParent();null!==r;){if(null!==(o=r.getNextSibling())){r=o;continue e}r=r.getParent()}break}r=o}return null},_v.$isRootTextContentEmpty=t,_v.$isRootTextContentEmptyCurry=function(e,n){return()=>t(e,n)},_v.$rootTextContent=n,_v.registerLexicalTextEntity=function(t,n,r,o){let i=t=>{const n=e.$createTextNode(t.getTextContent());n.setFormat(t.getFormat()),t.replace(n)},l=t.registerNodeTransform(e.TextNode,(t=>{if(t.isSimpleText()){var l=t.getPreviousSibling(),a=t.getTextContent(),s=t;if(e.$isTextNode(l)){var u=l.getTextContent(),c=n(u+a);if(l instanceof r){if(null===c||0!==l.getLatest().__mode)return void i(l);if(0<(c=c.end-u.length))return s=u+(s=a.slice(0,c)),l.select(),l.setTextContent(s),void(c===a.length?t.remove():(l=a.slice(c),t.setTextContent(l)))}else if(null===c||c.start<u.length)return}for(;;){if(a=c=null===(t=n(a))?"":a.slice(t.end),""===c){if(u=s.getNextSibling(),e.$isTextNode(u)){if(c=s.getTextContent()+u.getTextContent(),null===(c=n(c))){u instanceof r?i(u):u.markDirty();break}if(0!==c.start)break}}else if(null!==(u=n(c))&&0===u.start)break;if(null===t)break;if(0===t.start&&e.$isTextNode(l)&&l.isTextEntity())continue;let d;if(0===t.start?[d,s]=s.splitText(t.end):[,d,s]=s.splitText(t.start,t.end),(t=o(d)).setFormat(d.getFormat()),d.replace(t),null==s)break}}}));return t=t.registerNodeTransform(r,(t=>{var o=t.getTextContent();const l=n(o);null===l||0!==l.start?i(t):o.length>l.end?t.splitText(l.end):(o=t.getPreviousSibling(),e.$isTextNode(o)&&o.isTextEntity()&&(i(o),i(t)),o=t.getNextSibling(),e.$isTextNode(o)&&o.isTextEntity()&&(i(o),t instanceof r&&i(t)))})),[l,t]},_v}();return vv=e}var Cv,wv,Sv,kv,Tv,Nv,Rv={};function Av(){if(Sv)return wv;Sv=1;const e=function(){if(Cv)return Rv;Cv=1;var e=re();return Rv.registerDragonSupport=function(t){let n=window.location.origin,r=r=>{if(r.origin===n){var o=t.getRootElement();if(document.activeElement===o&&"string"==typeof(o=r.data)){try{var i=JSON.parse(o)}catch(e){return}if(i&&"nuanria_messaging"===i.protocol&&"request"===i.type&&(i=i.payload)&&"makeChanges"===i.functionId&&(i=i.args)){const[n,o,l,a,s]=i;t.update((()=>{const t=e.$getSelection();if(e.$isRangeSelection(t)){var i=t.anchor;let u=i.getNode(),c=0,d=0;e.$isTextNode(u)&&0<=n&&0<=o&&(c=n,d=n+o,t.setTextNodeRange(u,c,u,d)),c===d&&""===l||(t.insertRawText(l),u=i.getNode()),e.$isTextNode(u)&&(c=a,d=a+s,c=c>(i=u.getTextContentSize())?i:c,d=d>i?i:d,t.setTextNodeRange(u,c,u,d)),r.stopImmediatePropagation()}}))}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}},Rv}();return wv=e}function Ov(){if(kv)return xv;kv=1;var e=Se(),t=kt(),n=w(),r=Ev(),o=le(),i=P(),l=Av(),a=ft(),s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function u(e){return e.getEditorState().read(r.$canShowPlaceholderCurry(e.isComposing()))}function c({content:r}){var[i]=e.useLexicalComposerContext();i=function(e){let[t,r]=n.useState((()=>u(e)));return s((()=>{function t(){let t=u(e);r(t)}return t(),o.mergeRegister(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(i);let l=t();return i?"function"==typeof r?r(l):r:null}return xv.RichTextPlugin=function({contentEditable:t,placeholder:r,ErrorBoundary:u}){let[d]=e.useLexicalComposerContext();return u=function(e,t){let[r,o]=n.useState((()=>e.getDecorators()));return s((()=>e.registerDecoratorListener((e=>{i.flushSync((()=>{o(e)}))}))),[e]),n.useEffect((()=>{o(e.getDecorators())}),[e]),n.useMemo((()=>{let o=[],l=Object.keys(r);for(let a=0;a<l.length;a++){let s=l[a],u=n.createElement(t,{onError:t=>e._onError(t)},n.createElement(n.Suspense,{fallback:null},r[s])),c=e.getElementByKey(s);null!==c&&o.push(i.createPortal(u,c,s))}return o}),[t,r,e])}(d,u),function(e){s((()=>o.mergeRegister(a.registerRichText(e),l.registerDragonSupport(e))),[e])}(d),n.createElement(n.Fragment,null,t,n.createElement(c,{content:r}),u)},xv}var Lv=function(){if(Nv)return Tv;Nv=1;const e=Ov();return Tv=e}();function Mv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pv=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("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"})),Iv=D.forwardRef(Pv);function Dv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zv=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Dv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("path",{d:"M0 1h16v2H0zm15 4v2H1V5zM0 11V9h16v2zm3 4v-2h10v2z"}),z.createElement("use",{transform:"matrix(-1 0 0 1 16 0)"})),$v=D.forwardRef(zv);function Fv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bv=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Fv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("path",{d:"M0 1h15v2H0zm13 4v2H0V5zM0 11V9h16v2zm0 4v-2h10v2z"})),Hv=D.forwardRef(Bv);function jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wv=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("path",{d:"M16 1v2H1V1zM3 5h13v2H3zm13 6H0V9h16zm0 4H6v-2h10z"})),Kv=D.forwardRef(Wv);function Uv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gv=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Uv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),Yv=D.forwardRef(Gv);function Vv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qv=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("path",{d:"M1.5 10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m13.75.75a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 1 1 0-1.5zM1.5 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m13.75.75a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1 0-1.5z"})),qv=D.forwardRef(Qv);function Xv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jv=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xv(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("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"})),Zv=D.forwardRef(Jv);function eb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tb=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("path",{d:"M2.05 9q.371 0 .72.09.349.088.623.275.273.185.436.467t.163.66a1.38 1.38 0 0 1-.284.86q-.133.179-.304.334l-.173.154-.18.152-1.245 1.004H4V14H.114v-.963l2.095-1.72.123-.115q.114-.116.196-.235a.7.7 0 0 0 .121-.399.54.54 0 0 0-.182-.423q-.183-.162-.486-.162a.7.7 0 0 0-.52.203.83.83 0 0 0-.217.406l-.022.127L0 10.57l.031-.181q.06-.264.193-.48.179-.29.452-.492a2 2 0 0 1 .626-.31q.352-.105.747-.106m13.2 1.75a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5zM3 2v5H1.698V3.328l-1.024.72L0 3.208 1.806 2zm12.25 1.75a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5z"})),nb=D.forwardRef(tb);function rb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ob=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("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"})),ib=D.forwardRef(ob);function lb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ab=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("path",{d:"M9.034 14.99V15H3V1h6.034v.034Q9.246 1 9.466 1c1.666 0 3.017 1.522 3.017 3.4 0 1.376-.726 2.562-1.77 3.097C12.056 8.083 13 9.475 13 11.1c0 2.154-1.66 3.9-3.707 3.9q-.13 0-.259-.01M5.586 3.5v3.2h2.71a1.6 1.6 0 1 0 0-3.2zm0 5.5v3.8H8.86a1.9 1.9 0 0 0 0-3.8z"}),z.createElement("use",{fillRule:"evenodd"})),sb=D.forwardRef(ab);function ub(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cb=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ub(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("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"})),db=D.forwardRef(cb);function fb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pb=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("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"})),mb=D.forwardRef(pb);function hb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gb=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("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"})),vb=D.forwardRef(gb);function bb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yb=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){bb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("path",{d:"m10.927 1.255-3.886 13.6A.2.2 0 0 1 6.85 15H5.265a.2.2 0 0 1-.192-.255l3.886-13.6A.2.2 0 0 1 9.15 1h1.584a.2.2 0 0 1 .192.255"})),xb=D.forwardRef(yb);function _b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Eb=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_b(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("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"})),Cb=D.forwardRef(Eb);function wb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sb=(e,t)=>z.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),z.createElement("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"})),kb=D.forwardRef(Sb),Tb=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Nb=[e=>{const t=Tb.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"}}},Ct.createLinkMatcherWithRegExp(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,(e=>`mailto:${e}`))];function Rb(){return D.createElement(Ct.AutoLinkPlugin,{matchers:Nb})}const Ab=()=>{const[e]=wt.useLexicalComposerContext(),t=Tt(),n=D.useCallback((n=>{for(const[r,o]of n)"updated"!==o&&"created"!==o||e.getEditorState().read((()=>{const n=t?"pointer":"",o=e.getElementByKey(r);o&&(o.style.cursor=n)}))}),[t,e]);return D.useEffect((()=>Nt.mergeRegister(e.registerMutationListener(de.LinkNode,(e=>{n(e)})),e.registerMutationListener(de.AutoLinkNode,(e=>{n(e)})),e.registerCommand(Rt.CLICK_COMMAND,(t=>(t.metaKey&&t.target&&e.getEditorState().read((()=>{const e=Rt.$getSelection();let t;if(Rt.$isRangeSelection(e)&&(t=e.focus.getNode().getParent()),Rt.$isNodeSelection(e)&&(t=e.getNodes()[0]),de.$isAutoLinkNode(t)||de.$isLinkNode(t)){const e=t.getURL();setTimeout((()=>{const t=window.open(e,"_blank");null==t||t.focus()}),0)}})),!1)),Rt.COMMAND_PRIORITY_EDITOR))),[e,n]),null};function Ob(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?At.$isAtNodeEnd(n)?r:o:At.$isAtNodeEnd(t)?r:o}const Lb=new Set(["http:","https:","mailto:","sms:","tel:"]),Mb=e=>{const t=e;return t.password="",t.username="",t};function Pb(e,t){try{const n=new URL(e);return Lb.has(n.protocol)?(null==t?void 0:t.isEnabled("QB_27044_TEXT_REMOVE_URL_CREDENTIALS"))?{url:Mb(n).toString(),target:"_blank"}:{url:e,target:"_blank"}:{url:"about:blank"}}catch(t){return{url:e,target:"_blank"}}}const Ib=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function Db(e){return"https://"===e||Ib.test(e)}const zb=sa(dd)((({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)}))),$b=({anchorEl:e,link:t,onChanged:n,onOpened:r,flags:o})=>{const i=Boolean(e),l=D.useRef(null),[a,s]=D.useState(t);D.useEffect((()=>{s(t)}),[t]);const u=D.useCallback((()=>{n(a),window.open(Pb(a,o).url,"_blank"),r()}),[a,r,n,o]),c=D.useCallback((e=>{e.preventDefault(),e.stopPropagation(),n(a)}),[a,n]),d=D.useCallback((e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(a))}),[a,n]),f=D.useCallback((e=>{e.preventDefault(),s(e.currentTarget.value)}),[]);return z.createElement(Zu,{open:i,anchorEl:e,placement:"bottom-start",sx:{zIndex:1},transition:!0},(({TransitionProps:e})=>z.createElement(Oc,{...e},z.createElement(_u,{className:"tekPopperMenu"},z.createElement(zb,{direction:"row"},z.createElement(uc,{ref:l,placeholder:t,margin:"dense",size:"small",value:a,onChange:f,onKeyDown:d}),z.createElement(Ku,{onClick:u},z.createElement(md,null)),z.createElement(Ku,{onClick:c},z.createElement(vd,null)))))))},Fb=({flags:e})=>{const[t]=wt.useLexicalComposerContext(),n=Tt(),[r,o]=D.useState(null),[i,l]=D.useState(""),a=D.useRef(!1),s=D.useCallback((()=>{if(a.current)return a.current=!1,!1;const e=Rt.$getSelection();if(Rt.$isRangeSelection(e)){const n=Ob(e),r=n.getParent();if(de.$isAutoLinkNode(r)||de.$isAutoLinkNode(n))return o(null),l(""),!1;let i;if(de.$isLinkNode(r)&&(i=r),de.$isLinkNode(n)&&(i=n),de.$isLinkNode(i)){const e=t.getElementByKey(null==i?void 0:i.getKey());return l(i.getURL()),o(e),!0}o(null),l("")}return!1}),[t]),u=D.useCallback((n=>{a.current=!0,t.update((()=>{t.dispatchCommand(de.TOGGLE_LINK_COMMAND,Pb(n,e))}),{onUpdate:()=>{o(null)}})}),[t,e]),c=D.useCallback((()=>{o(null)}),[]);return D.useEffect((()=>Nt.mergeRegister(t.registerCommand(Rt.SELECTION_CHANGE_COMMAND,(()=>s()),Rt.COMMAND_PRIORITY_LOW),t.registerCommand(Rt.CLICK_COMMAND,(()=>s()),Rt.COMMAND_PRIORITY_LOW))),[t,s]),n?z.createElement($b,{anchorEl:r,link:i,onChanged:u,onOpened:c,flags:e}):null};function Bb(){return D.createElement(Ed.LinkPlugin,{validateUrl:Db})}!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 Hb=({children:e})=>z.createElement(ca,{theme:Jd()},e),jb={namespace:"text-editor-kit",theme:{ltr:"tek__ltr",rtl:"tek__rtl",paragraph:"tek__editor__paragraph",placeholder:"text_editor__placeholder",quote:"tek__quote",table:"tek__table",tableCell:"tek__tableCell",heading:{h1:"tek__h1",h2:"tek__h2",h3:"tek__h3"},text:{base:"tek__textBase",bold:"tek__textBold",italic:"tek__textItalic",underline:"tek__textUnderline"},list:{listitem:"tek__listItem",nested:{listitem:"tek__nestedListItem"},olDepth:["tek__ol1","tek__ol2","tek__ol3","tek__ol4","tek__ol5"],ul:"tek__ul"}},nodes:[gt.HeadingNode,gt.QuoteNode,_e.ListNode,_e.ListItemNode,de.LinkNode,de.AutoLinkNode],onError:e=>{console.log(e)}},Wb=({children:e,initialConfig:t,flags:n})=>z.createElement(Hb,null,z.createElement("div",{className:"tek__editor__Wrapper"},z.createElement(Me.LexicalComposer,{initialConfig:t||jb},z.createElement("div",{className:"tek__editor__container"+((null==n?void 0:n.isEnabled("QB_26358_SN_TEXT_SCROLLBAR"))?" tek__editor__container__scrollbar":"")},e,z.createElement(Ye.ListPlugin,null),z.createElement(it.TabIndentationPlugin,null),z.createElement(Bb,null),z.createElement(Rb,null),z.createElement(Fb,{flags:n}),z.createElement(Ab,null),z.createElement(He.HistoryPlugin,null)))));class Kb extends Rt.ElementNode{static getType(){return"TekCellNode"}static clone(e){return new Kb(e.__hasBorders,e.__key)}static importJSON(e){return new Kb(void 0===e.hasBorders||e.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 Ub=e=>new Kb(e),Gb=e=>e instanceof Kb;class Yb extends Rt.ElementNode{static getType(){return"TekTableNode"}static clone(e){return new Yb(e.__hasBorders,e.__width,e.__key)}static importJSON(e){const t=void 0===e.hasBorders||e.hasBorders,n=void 0===e.width?"100%":e.width;return new Yb(t,n)}constructor(e,t,n){super(n),this.__needsUpdate=!1,this.__hasBorders=e,this.__width=t}exportJSON(){return{...super.exportJSON(),hasBorders:this.__hasBorders,width:this.__width,type:"TekTableNode",version:1}}createDOM(e){const t=document.createElement("table");return t.classList.add(e.theme.table||""),t.style.width=this.__width,t}updateDOM(e){const t=this.__needsUpdate;try{!0===e.__needsUpdate&&(this.getWritable().__needsUpdate=!1)}catch(e){}return t||this.__width!==e.__width}markNeedsUpdate(){this.getWritable().__needsUpdate=!0}canBeEmpty(){return!1}canExtractContents(){return!1}isShadowRoot(){return!0}canSelectBefore(){return!0}canIndent(){return!1}getResizeNode(){return this.getChildAtIndex(1)}toggleBorders(){this.getWritable().__hasBorders=!this.__hasBorders}setWidth(e){this.getWritable().__width=e}isValid(){const e=this.getChildren();return!(e.length<3)&&"TekColGroupNode"===e[0].getType()&&"TEK_TABLE_RESIZE_NODE"===e[1].getType()&&"TekRowNode"===e[2].getType()}}function Vb(e){return e instanceof Yb}class Qb extends Rt.ElementNode{static getType(){return"TekRowNode"}static clone(e){return new Qb(e.__key)}static importJSON(){return new Qb}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 qb(e){return e instanceof Qb}const Xb=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),Gb(t))return t;return null},Jb=e=>{let t=e;for(;null!==t;){if(Vb(t))return t;t=null==t?void 0:t.getParent()}return null},Zb=(e,t)=>{const n=Jb(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},ey=e=>null==e?void 0:e.getChildAtIndex(2),ty=e=>{const t=e.getParent();if(qb(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},ny=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,ry=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},oy=e=>{if(!e)return[];return e.getChildren().filter((e=>qb(e)))},iy=e=>{let t=!1;return oy(e).forEach((e=>{e.getChildren().forEach((e=>{const n=e;n.clear(),n.append(Rt.$createParagraphNode()),t=!0}))})),t},ly=e=>{var t;const n=Rt.$getSelection();if(Rt.$isRangeSelection(n)||Rt.$isNodeSelection(n)){const r=n.getNodes().filter((e=>Gb(e)));if(r.length>0){e.preventDefault(),e.stopPropagation();const o=n.getNodes().some((e=>Vb(e))),i=Jb(r[0]),l=oy(i);if((null===(t=l[0])||void 0===t?void 0:t.getChildren()).length*l.length===r.length&&o)return null==i||i.selectPrevious(),null==i||i.remove(),!1;if(Rt.$isRangeSelection(n)){const e=n.focus.getNode();if(Vb(e))return iy(e)}return r.forEach((e=>{e.clear(),e.append(Rt.$createParagraphNode())})),(()=>{const e=Rt.$getSelection();let t=!1;if(Rt.$isRangeSelection(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=Jb(n);!o&&Vb(r)&&(o=r),Vb(o)&&(t=iy(o))}return t})()}if(Rt.$isRangeSelection(n)){const e=n.focus.getNode();if(Vb(e))return iy(e)}}return!1},ay=e=>{if(e){const t=Jb(e);if(Vb(t)){const n=e.getParent(),r=oy(t).findIndex((e=>e===n));return{i:r,j:null==n?void 0:n.getChildren().findIndex((t=>t===e)),tableNode:t,row:n}}}return{i:0,j:0,tableNode:null,row:null}},sy=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),Gb(t))return t;return null},uy=e=>{const t=[];return oy(e).forEach((e=>{const n=e.getChildren();t.push(...n)})),t},cy=(e,t)=>{uy(e).forEach((e=>{const n=t.getElementByKey(e.getKey());null==n||n.classList.add("tek__tekCellHighlight")}))},dy=Rt.createCommand("UPDATE_COL_WIDTHS_COMMAND"),fy=Rt.createCommand("BEGIN_COL_RESIZE"),py=Rt.createCommand("END_COL_RESIZE"),my=Rt.createCommand("INSERT_TEK_TABLE_COMMAND"),hy=({colKey:e,startX:t,onMouseDown:n})=>{const r=D.useCallback((t=>{n(t,e)}),[e,n]);return z.createElement("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},gy=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},vy=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,by=({nodeKey:e,colWidths:t})=>{const[n]=wt.useLexicalComposerContext(),r=Tt(),[o,i]=D.useState(null),l=D.useRef(null),a=D.useRef(null),s=D.useRef(null),u=D.useRef(null),c=D.useCallback((t=>{const n=Rt.$getNodeByKey(e);if(n){const e=n.getParent();if(Vb(e)){const n=ey(e);if("TekRowNode"===(null==n?void 0:n.getType())){const e=n.getChildren(),r=[];let o=0;e.forEach(((e,n)=>{const i=parseFloat(t[n]);o+=i,r.push({key:e.getKey(),startX:o})})),i(r)}}}}),[e]),d=D.useCallback((e=>{if(l.current){const{clientX:t,col:n,tableElement:r,curColWidth:o,resizer:i,left:a,nxt:c,parentDomNode:d,currentTableWidth:f}=l.current,p=e.clientX-t,m=ry(a+p,r);if(c){const e=o+p;if(e<60)return;const t=ry(e,r),a=l.current.nxtColWidth-p,d=ry(a,r);if(a<60)return;n.setAttribute("width",t),c.setAttribute("width",d),i.style.left=m,s.current&&(s.current.innerText=t),u.current&&(u.current.innerText=d)}else if(d){i.style.left="100%";const e=f+p,{clampedWidths:t,fullyClamped:n,clampedTableWidth:o}=((e,t)=>{const n=[],r=e.rows[0];let o=0,i=0;for(let e=0;e<r.cells.length;e++){const l=Math.max(r.cells[e].offsetWidth,60);60===l&&o++,i+=l;const a=l/t,s=Math.min(100*a,100);n.push(`${s.toFixed(2)}%`)}return{clampedWidths:n,fullyClamped:o===r.cells.length,clampedTableWidth:i}})(r,e),l=ry(e,d),a=ry(o,d);r.style.width=!n||p>0?l:a,r.querySelectorAll(":scope > colgroup col").forEach(((e,n)=>{e.setAttribute("width",t[n])})),n||s.current&&(s.current.innerText=l)}}}),[]),f=D.useCallback((()=>{if(document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),l.current){l.current.resizer.style.opacity="",s.current=null,u.current=null;const e=(e=>{const t=e.rows[0],n=[];for(let r=0;r<t.cells.length;r++){const o=Math.max(t.cells[r].offsetWidth,60);n.push(ry(o,e))}return n})(l.current.tableElement);l.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)})(l.current.resizer),n.dispatchCommand(py,void 0)}l.current=null,a.current=null,n.update((()=>{const t=Rt.$getNodeByKey(e),r=Zb(t,n),l=null==t?void 0:t.getParent();if(r&&l){const t=r.querySelectorAll(":scope > colgroup col"),a=[];t.forEach((e=>{a.push(e.getAttribute("width")||"0")})),l.setWidth(r.style.width);let s=0;if(o){const e=o.map(((e,t)=>{const n={...e};return s+=parseFloat(a[t]),n.startX=s,n}));i(e)}n.dispatchCommand(dy,{colWidths:a,nodeKey:e})}}))}),[d,n,e,o]),p=D.useCallback(((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read((()=>{const r=Rt.$getNodeByKey(t),o=Zb(r,n);if(Gb(r)){const t=ty(r);if(-1!==t&&o){const r=null==o?void 0:o.querySelectorAll(":scope > colgroup col"),i=r[t],a=r.length>t+1?r[t+1]:null,c=ny(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,m=ny(a,o),h=o.parentElement,g=.01*parseFloat(o.style.width),v=((null==h?void 0:h.offsetWidth)||0)*g,b=((e,t,n)=>{const r=gy("tek__leftResizerIndicator","leftGripper");r.innerText=vy(e);let o=null;return t?(o=gy("tek__rightResizerIndicator","rightGripper"),o.innerText=vy(t)):r.innerText=n.style.width,{left:r,right:o}})(i,a,o);s.current=b.left,u.current=b.right,d.appendChild(b.left),b.right&&d.appendChild(b.right),d.style.opacity="1",l.current={resizer:d,curColWidth:c,col:i,tableElement:o,clientX:e.clientX,left:p,nxt:a,nxtColWidth:m,parentDomNode:h,currentTableWidth:v},n.dispatchCommand(fy,void 0)}}}))}),[n,d,f]);return D.useEffect((()=>{n.getEditorState().read((()=>{c(t)}))}),[c,n,t]),z.createElement(z.Fragment,null,o&&r?o.map((e=>z.createElement(hy,{key:`${e.key}`,colKey:e.key,startX:e.startX,onMouseDown:p}))):null)},yy="TEK_TABLE_RESIZE_NODE";class xy extends Rt.DecoratorNode{static getType(){return yy}static clone(e){return new xy(e.__colWidths,e.__key)}static importJSON(e){return new xy(e.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:yy,version:1}}createDOM(){const e=document.createElement("div");return e.classList.add("tek__resizeContainer"),e}updateDOM(){return!1}setColWidths(e){this.getWritable().__colWidths=e}removeCol(e){this.getWritable().__colWidths.splice(e,1)}decorate(){return z.createElement(by,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}const _y=e=>e instanceof xy,Ey=({nodeKey:e,colWidths:t})=>{const[n]=wt.useLexicalComposerContext(),[r,o]=D.useState(t);return D.useEffect((()=>{n.getEditorState().read((()=>{const t=Rt.$getNodeByKey(e),n=null==t?void 0:t.getParent();if(Vb(n)){const e=n.getResizeNode();if(_y(e)){const t=e.__colWidths.map((e=>e));o(t)}}}))}),[n,e]),z.createElement(z.Fragment,null,r.map(((t,n)=>z.createElement("col",{span:1,width:t,key:`${e}.${n}`}))))};class Cy extends Rt.DecoratorNode{static getType(){return"TekColGroupNode"}static clone(e){return new Cy(e.__colWidths,e.__key)}static importJSON(e){return new Cy(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 z.createElement(Ey,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class wy extends Rt.DecoratorNode{constructor(e,t){super(t),this.__formatStyle=e}setFormatStyle(e){this.getWritable().__formatStyle=e}hasStyle(e){return void 0!==this.__formatStyle[e]&&""!==this.__formatStyle[e]}getTextFormatStyle(e,t){return this.hasStyle(e)?this.__formatStyle[e]:t}}const Sy=[Yb,Kb,Qb,Cy,xy],ky=(e,t)=>{const n=100/e,r=Array(e).fill(`${n}%`),o=null==t?void 0:t.getChildAtIndex(0),i=null==t?void 0:t.getChildAtIndex(1);o.setColWidths(r),i.setColWidths(r),null==t||t.markNeedsUpdate()},Ty=()=>{var e;const t=Rt.$getSelection();if(Rt.$isRangeSelection(t)){const n=t.anchor.getNode(),r=Xb(n);if(r){const t=ty(r),n=Jb(r),o=oy(n),i=((null===(e=o[0])||void 0===e?void 0:e.getChildren().length)||1)-1;if(0===i)return null==n||n.selectPrevious(),void(null==n||n.remove());o.forEach((e=>{var n;null===(n=e.getChildAtIndex(t))||void 0===n||n.remove()})),ky(i,n)}}},Ny=()=>{const e=Rt.$getSelection();if(Rt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=Xb(t),r=Jb(n);if(r&&3===r.getChildren().length)return Rt.$setSelection(null),void r.remove();if(n){const{row:e}=ay(n);Rt.$setSelection(null),null==e||e.remove()}}},Ry=()=>{const e=Rt.$getSelection();if(Rt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=Jb(t),r=ey(n);if(qb(r)&&n){const e=r.getChildren().length,t=new Qb;for(let r=0;r<e;r++){const e=Ub(null==n?void 0:n.__hasBorders);e.append(Rt.$createParagraphNode()),t.append(e)}null==n||n.append(t)}}},Ay=()=>{var e;const t=Rt.$getSelection();if(Rt.$isRangeSelection(t)){const n=t.anchor.getNode(),r=Jb(n);if(Vb(r)){const t=oy(r);let n=null;const o=((null===(e=t[0])||void 0===e?void 0:e.getChildren().length)||-1)+1;for(let e=0;e<t.length;e++){const o=Ub(r.__hasBorders);o.append(Rt.$createParagraphNode()),t[e].append(o),n=o}return ky(o,r),n}}return null},Oy=sa(Ku)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),Ly=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=wt.useLexicalComposerContext(),[o,i]=D.useState(null),l=nv(),a=Boolean(o),s=D.useCallback(((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{t()}),{onUpdate:()=>{i(null),n()}})}),[r]),u=D.useCallback((e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)}),[n]),c=D.useCallback((()=>{i(null)}),[]),d=D.useCallback((e=>{s(e,Ry,t)}),[s,t]),f=D.useCallback((e=>{s(e,Ay,t)}),[s,t]),p=D.useCallback((t=>{s(t,Ny,e)}),[s,e]),m=D.useCallback((t=>{s(t,Ty,e)}),[s,e]),h=D.useCallback((()=>{r.update((()=>{(()=>{const e=Rt.$getSelection();if(Rt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=Jb(t);Vb(n)&&(n.selectPrevious(),n.remove())}})()}),{onUpdate:()=>{i(null),e()}})}),[r,e]),g=D.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{(()=>{const e=Rt.$getSelection();if(Rt.$isRangeSelection(e)){const t=e.anchor.getNode(),n=Jb(t);n&&(n.toggleBorders(),uy(n).forEach((e=>{e.toggleBorders()})))}})()}))}),[r]);return D.useEffect((()=>Nt.mergeRegister(r.registerCommand(Rt.SELECTION_CHANGE_COMMAND,(()=>(i(null),!1)),Rt.COMMAND_PRIORITY_CRITICAL))),[r]),z.createElement(Ea,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},z.createElement("div",null,z.createElement(Oy,{size:"small",onClick:u},z.createElement(tf,{height:12})),z.createElement(Zu,{sx:{zIndex:1},open:a,anchorEl:o,placement:"auto-end"},z.createElement(_u,{id:"tekTableMenu",className:"tekPopperMenu"},z.createElement(Vc,{dense:!0},z.createElement(Zc,{onClick:g},l("ToggleBorders")),z.createElement(kc,null),z.createElement(Zc,{onClick:d},l("AddNewRow")),z.createElement(Zc,{onClick:f},l("AddNewColumn")),z.createElement(kc,null),z.createElement(Zc,{onClick:p},l("DeleteRow")),z.createElement(Zc,{onClick:m},l("DeleteCol")),z.createElement(kc,null),z.createElement(Zc,{onClick:h},l("DeleteTable")))))))},My=()=>{var e,t,n,r;const[o]=wt.useLexicalComposerContext(),i=Tt(),[l,a]=D.useState(null),[s,u]=D.useState(!1),c=Boolean(l),d=D.useContext(Ro),f=D.useRef(null),p=D.useCallback((()=>{s||o.update((()=>{const e=Rt.$getSelection();if(Rt.$isRangeSelection(e)){const t=Xb(e.anchor.getNode());if(Gb(t)){const e=o.getElementByKey(t.getKey());a(e)}else a(null)}}))}),[o,s]);D.useEffect((()=>{const e=e=>{0!==e.buttons?null===f.current&&(f.current=setTimeout((()=>{u(!0),a(null)}),300)):(u(!1),clearTimeout(f.current),f.current=null)};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}}),[]),D.useEffect((()=>Nt.mergeRegister(o.registerCommand(Rt.SELECTION_CHANGE_COMMAND,(()=>(p(),!1)),Rt.COMMAND_PRIORITY_EDITOR),o.registerCommand(fy,(()=>(a(null),!0)),Rt.COMMAND_PRIORITY_CRITICAL),o.registerCommand(py,(()=>(p(),!0)),Rt.COMMAND_PRIORITY_CRITICAL))),[o,p]),D.useEffect((()=>{a(null)}),[i]);const m=D.useCallback((()=>{a(null)}),[]),h=D.useCallback((()=>{a(null),setTimeout((()=>{p()}),0)}),[p]),g=D.useCallback((()=>{clearTimeout(f.current)}),[]);return z.createElement(Zu,{open:c&&i,anchorEl:l,placement:"top-end",sx:{zIndex:1},disablePortal:!0,modifiers:[{name:"offset",options:{offset:[-6,-parseInt((null===(r=null===(n=null===(t=null===(e=d.components)||void 0===e?void 0:e.MuiButton)||void 0===t?void 0:t.styleOverrides)||void 0===n?void 0:n.sizeSmall)||void 0===r?void 0:r.height)||"24",10)]}}]},z.createElement(Ly,{onDeleteAction:m,onAction:h,onClick:g}))},Py=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=Rt.$getNodeByKey(n),r=null==e?void 0:e.getParent();Rt.$isRootNode(r)&&null!==e&&t.push(e)}if(t.length>0){const e=Rt.$createParagraphNode();t[0].insertBefore(e),e.select(),t.forEach((e=>e.remove()))}},Iy=()=>{const[e]=wt.useLexicalComposerContext(),t=Tt();return D.useEffect((()=>Nt.mergeRegister(e.registerMutationListener(Kb,(t=>{e.update((()=>{Py(t)}))})),e.registerMutationListener(Qb,(t=>{e.update((()=>{Py(t)}))})),e.registerMutationListener(Yb,(t=>{e.update((()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=Rt.$getNodeByKey(e);if(Vb(t)&&!t.isValid()){const e=Rt.$createParagraphNode();t.insertBefore(e),e.select(),t.remove()}}}))})),e.registerCommand(my,(()=>(e.update((()=>{const e=(()=>{const e=["50%","50%"],t=new Yb(!0,"100%"),n=new Cy(e),r=new xy(e),o=[];for(let t=0;t<2;t++){const t=new Qb;for(let n=0;n<e.length;n++){const e=Ub(!0),n=Rt.$createParagraphNode();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();Nt.$insertNodeToNearestRoot(e)})),!0)),Rt.COMMAND_PRIORITY_EDITOR),e.registerCommand(dy,(({colWidths:e,nodeKey:t})=>{const n=Rt.$getNodeByKey(t);if(_y(n)){n.setColWidths(e);const t=n.getParent(),r=null==t?void 0:t.getChildAtIndex(0);(function(e){return e instanceof Cy})(r)&&r.setColWidths(e)}return!0}),Rt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(Rt.KEY_ENTER_COMMAND,(t=>(null==t?void 0:t.shiftKey)?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=Rt.$getSelection();if(Rt.$isRangeSelection(e)){const t=e.focus.getNode(),n=Jb(t),r=sy(t);if(Vb(n)){const e=Rt.$createParagraphNode();e.append(Rt.$createTextNode("")),n.insertBefore(e,!1),e.select()}}})()})),!0):!!(null==t?void 0:t.ctrlKey)&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=Rt.$getSelection();if(Rt.$isRangeSelection(e)){const t=e.focus.getNode(),n=Jb(t);if(Vb(n)){const e=Rt.$createParagraphNode();e.append(Rt.$createTextNode("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()})),!0)),Rt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(Rt.KEY_BACKSPACE_COMMAND,(e=>ly(e)),Rt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(Rt.KEY_DELETE_COMMAND,(e=>ly(e)),Rt.COMMAND_PRIORITY_CRITICAL),e.registerCommand(Rt.KEY_TAB_COMMAND,(e=>{const t=Rt.$getSelection();if(Rt.$isRangeSelection(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),Gb(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,l=t?1:-1;if(i&&o){const e=i.getChildAtIndex(r+l);if(e)e.getChildAtIndex(0).selectEnd();else{let e=0;t||0!==r||(e=i.getChildren().length-1);const a=o.getChildAtIndex(n+2+l);if(qb(a)){const t=null==a?void 0:a.getChildAtIndex(e);(null==t?void 0:t.getChildAtIndex(0)).selectEnd()}}}})(ay(o),!e.shiftKey),!0}return!1}),Rt.COMMAND_PRIORITY_EDITOR),e.registerCommand(Rt.CUT_COMMAND,(e=>{const t=e.target,n=Rt.$getSelection();if(t.classList.contains("tek__table")&&Rt.$isRangeSelection(n)&&Vb(n.anchor.getNode()))return e.preventDefault(),e.stopPropagation(),!0;if(Rt.$isRangeSelection(n)){const t=n.getNodes().some((e=>Gb(e))),r=n.getNodes().some((e=>Vb(e)));if(t&&!r)return e.preventDefault(),e.stopPropagation(),!0}return!1}),Rt.COMMAND_PRIORITY_CRITICAL))),[e]),D.useEffect((()=>e.registerCommand(Rt.SELECTION_CHANGE_COMMAND,(()=>(t&&e.update((()=>{(e=>{const t=Rt.$getSelection(),n=[];if(Rt.$nodesOfType(Yb).forEach((e=>{const t=uy(e);n.push(...t)})),Rt.$isRangeSelection(t)){t.getNodes().filter((e=>Vb(e))).forEach((t=>{cy(t,e)}));const n=t.focus.getNode();if(Vb(n))return void cy(n,e)}if(Rt.$isRangeSelection(t)||Rt.$isNodeSelection(t)){const r=new Set(t.getNodes().map((e=>sy(e))));for(let t=0;t<n.length;t++){const o=e.getElementByKey(n[t].getKey());r.has(n[t])?null==o||o.classList.add("tek__tekCellHighlight"):null==o||o.classList.remove("tek__tekCellHighlight")}}})(e)}),{tag:"history-merge"}),!1)),Rt.COMMAND_PRIORITY_CRITICAL)),[e,t]),D.useEffect((()=>{e.update((()=>{t||(e=>{const t=[];Rt.$nodesOfType(Yb).forEach((e=>{const n=uy(e);t.push(...n)})),t.forEach((t=>{const n=e.getElementByKey(t.getKey());null==n||n.classList.remove("tek__tekCellHighlight")}))})(e)}))}),[t,e]),null},Dy=()=>z.createElement(z.Fragment,null,z.createElement(Iy,null),z.createElement(My,null)),zy=()=>{const e=Tt(),t=nv();return e?z.createElement("div",{className:"tek__editor__placeholder"},t("EnterText")):z.createElement("div",{className:"tek__editor__logo"},z.createElement(Iv,{height:32}))},$y=({showPlaceholder:e})=>z.createElement("div",{style:{position:"relative"}},z.createElement(sv.AutoFocusPlugin,null),z.createElement(Lv.RichTextPlugin,{contentEditable:z.createElement(mv.ContentEditable,{className:"tek__editor__input"}),placeholder:!1!==e?z.createElement(zy,null):null,ErrorBoundary:yv})),Fy=sa(dd)((({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"}}))),By=["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"],Hy="#404040",jy="16px",Wy=D.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:By[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),Ky=({children:e})=>{const t=(()=>{const[e]=wt.useLexicalComposerContext(),[t,n]=D.useState(!1),[r,o]=D.useState(!1),[i,l]=D.useState(!1),[a,s]=D.useState("paragraph"),[u,c]=D.useState(By[0]),[d,f]=D.useState(jy),[p,m]=D.useState(Hy),[h,g]=D.useState("left"),[v,b]=D.useState(!1),y=D.useCallback((()=>{const t=Rt.$getSelection();if(Rt.$isRangeSelection(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:Nt.$findMatchingParent(r,(e=>{const t=e.getParent();return null!==t&&Rt.$isRootOrShadowRoot(t)}));null===i&&(i=r.getTopLevelElementOrThrow());const a=i.getKey();let u=i;if(null!==e.getElementByKey(a))if(_e.$isListNode(i)){const e=Nt.$getNearestNodeOfType(r,_e.ListNode),t=e?e.getListType():i.getListType();s(t)}else{const e=gt.$isHeadingNode(i)?i.getTag():i.getType();s(e)}if(_e.$isListNode(i)||gt.$isHeadingNode(i)){const e=Nt.$getNearestNodeOfType(i,Rt.ParagraphNode);e&&(u=e)}const d=Ob(t),p=d.getParent();if(de.$isLinkNode(p)||de.$isLinkNode(d)?b(!0):b(!1),Rt.$isParagraphNode(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),l(t.hasFormat("underline"));const h=At.$getSelectionStyleValueForProperty(t,"font-family",By[0]),v=At.$getSelectionStyleValueForProperty(t,"font-size",jy);c(""===h?By[0]:h),f(""!==v&&v?v:jy),m(At.$getSelectionStyleValueForProperty(t,"color",Hy))}else Rt.$isNodeSelection(t)&&t.getNodes().forEach((e=>{if(function(e){return e instanceof wy}(e)){const t=e;n(t.hasStyle("fontWeight")),o(t.hasStyle("fontStyle")),l(t.hasStyle("textDecoration")),m(t.getTextFormatStyle("color",Hy));const r=t.getTextFormatStyle("fontSize",jy),i=t.getTextFormatStyle("fontFamily",By[0]);f(r),c(i);const a=t.getParent();if(null!==a){const e=(e=>{if(_e.$isListItemNode(e)){const t=Nt.$getNearestNodeOfType(e,_e.ListNode);return t?t.getListType():e.getListType()}return gt.$isHeadingNode(e)?e.getTag():e.getType()})(a);s(e)}}}))}),[e]);return D.useEffect((()=>Nt.mergeRegister(e.registerUpdateListener((({editorState:e})=>{e.read((()=>y()))})),e.registerCommand(Rt.SELECTION_CHANGE_COMMAND,(()=>(e.getEditorState().read((()=>y())),!1)),Rt.COMMAND_PRIORITY_EDITOR))),[e,y]),{textFormat:{bold:t,italic:r,underline:i},blockFormat:{blockType:a,fontName:u,fontSize:d,fontColor:p,align:h,isLink:v}}})();return z.createElement(Wy.Provider,{value:t},e)},Uy=({children:e})=>z.createElement(Ky,null,z.createElement(Fy,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row"},e)),Gy=({anchorEl:e,children:t})=>{const n=Boolean(e);return z.createElement(Zu,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:1}},(({TransitionProps:e})=>z.createElement(Oc,{...e},z.createElement(_u,{className:"tekPopperMenu"},t))))},Yy=sa(qu)({fontSize:12,textOverflow:"ellipsis"}),Vy=({startIcon:e,value:t,onClick:n,compact:r})=>z.createElement(cd,{title:t,PopperProps:{disablePortal:!0}},z.createElement(xc,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:z.createElement(Yv,{height:12})},r?e:z.createElement(Yy,null,t))),Qy=sa(Zc,{shouldForwardProp:e=>"active"!==e})((({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0}))),qy=[{text:"AlignLeft",align:"left",icon:()=>z.createElement(Hv,{height:12})},{text:"AlignCenter",align:"center",icon:()=>z.createElement($v,{height:12})},{text:"AlignRight",align:"right",icon:()=>z.createElement(Kv,{height:12})}],Xy=({compact:e})=>{const[t]=wt.useLexicalComposerContext(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(Wy),i=nv(),l=D.useMemo((()=>qy.find((e=>e.align===o.align))||qy[0]),[o.align]),a=D.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),s=D.useCallback((()=>{r(null)}),[]),u=D.useCallback((e=>{r(null),t.dispatchCommand(Rt.FORMAT_ELEMENT_COMMAND,e),t.focus()}),[t]);return z.createElement(Ea,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},z.createElement("div",null,z.createElement(Vy,{value:i(l.text),startIcon:l.icon(),onClick:a,compact:e}),z.createElement(Gy,{anchorEl:n},z.createElement(Vc,{dense:!0},qy.map((e=>z.createElement(Qy,{value:e.text,dense:!0,key:e.align,active:e.align===o.align,onClick:()=>u(e.align)},z.createElement(Hc,null,e.icon()),z.createElement(Yy,null,i(e.text)))))))))},Jy=({text:e,icon:t})=>z.createElement(z.Fragment,null,z.createElement(Hc,null,t),z.createElement(Yy,null,e)),Zy=({text:e,icon:t})=>z.createElement(z.Fragment,null,z.createElement(Hc,null,z.createElement(Yy,{fontWeight:"bold"},t)),z.createElement(Yy,null,e)),ex=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],tx=(e,t,n)=>({icon:z.createElement("span",{style:{fontSize:12,fontWeight:"bold"}},t),text:n(e)}),nx=({compact:e})=>{const[t]=wt.useLexicalComposerContext(),{blockFormat:n}=D.useContext(Wy),[r,o]=D.useState(null),i=nv(),l=D.useMemo((()=>{let e={icon:z.createElement(ib,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=tx("Heading1","H1",i)),"h2"===n.blockType&&(e=tx("Heading2","H2",i)),"h3"===n.blockType&&(e=tx("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=z.createElement(Zv,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=z.createElement(qv,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=z.createElement(nb,{height:12}),e.text=i("OrderedList")),e}),[n,i]),a=D.useCallback((()=>{o(null)}),[]),s=D.useCallback((e=>{t.update((()=>{const n=Rt.$getSelection();Rt.$isRangeSelection(n)?(At.$patchStyleText(n,{"font-size":null}),At.$setBlocksType(n,e)):Rt.$isNodeSelection(n)&&n.getNodes().forEach((t=>{const n=t.getParent();null==n||n.replace(e(),!0)})),t.focus()}))}),[t]),u=D.useCallback(((e,n)=>{o(null),t.update((()=>{const r=Rt.$getSelection();Rt.$isRangeSelection(r)&&r.getNodes().forEach((r=>{const o=r.getParent();o&&o.getType()!==e&&t.dispatchCommand(n,void 0)}))})),t.focus()}),[t]),c=D.useCallback((e=>{o(null),s((()=>gt.$createHeadingNode(e)))}),[s]),d=D.useCallback((()=>{o(null),s((()=>Rt.$createParagraphNode()))}),[s]),f=D.useCallback((()=>{o(null),s((()=>gt.$createQuoteNode()))}),[s]);return z.createElement(Ea,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},z.createElement("div",null,z.createElement(Vy,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:l.text,startIcon:l.icon,compact:e}),z.createElement(Gy,{anchorEl:r},z.createElement(Vc,{dense:!0},z.createElement(Zc,{dense:!0,onClick:d},z.createElement(Jy,{text:i("Paragraph"),icon:z.createElement(ib,{height:12})})),z.createElement(Zc,{dense:!0,onClick:f},z.createElement(Jy,{text:i("Quote"),icon:z.createElement(Zv,{height:12})})),ex.map((e=>z.createElement(Zc,{dense:!0,onClick:()=>c(e.tag),key:e.text},z.createElement(Zy,{text:i(e.text),icon:e.icon})))),z.createElement(kc,null),z.createElement(Zc,{dense:!0,onClick:()=>u("bullet",_e.INSERT_UNORDERED_LIST_COMMAND)},z.createElement(Jy,{text:i("UnorderedList"),icon:z.createElement(qv,{height:12})})),z.createElement(Zc,{dense:!0,onClick:()=>u("number",_e.INSERT_ORDERED_LIST_COMMAND)},z.createElement(Jy,{text:i("OrderedList"),icon:z.createElement(nb,{height:12})}))))))},rx=sa(xc,{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}))),ox=(e,t)=>n=>{const r=nv();return z.createElement(cd,{title:r(t),PopperProps:{disablePortal:!0}},z.createElement("div",null,z.createElement(e,{...n,"aria-label":r(t)})))},ix=({format:e,icon:t,...n})=>{const r=D.useContext(Wy),[o]=wt.useLexicalComposerContext(),i=D.useCallback((()=>{o.dispatchCommand(Rt.FORMAT_TEXT_COMMAND,e)}),[o,e]);return z.createElement(rx,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text"},t)},lx=ox(ix,"Bold"),ax=()=>z.createElement(lx,{format:"bold",icon:z.createElement(sb,{height:12})}),sx=Rt.createCommand("APPLY_TEXT_FORMAT"),ux=Rt.createCommand("CLEAR_TEXT_FORMAT"),cx=ox(rx,"ClearFormat"),dx=()=>{const[e]=wt.useLexicalComposerContext(),t=D.useCallback((()=>{e.update((()=>{const t=Rt.$getSelection();if(Rt.$isRangeSelection(t)){const{anchor:e,focus:n}=t,r=t.getNodes();if(e.key===n.key&&e.offset===n.offset)return;r.forEach(((t,o)=>{try{if(Rt.$isTextNode(t)){0===o&&0!==e.offset&&(t=t.splitText(e.offset)[1]||t),o===r.length-1&&(t=t.splitText(n.offset)[0]||t),""!==t.__style&&t.setStyle(""),0!==t.__format&&(t.setFormat(0),Nt.$getNearestBlockElementAncestorOrThrow(t).setFormat(""));const i=t.getParent();(gt.$isHeadingNode(i)||gt.$isQuoteNode(i))&&i.replace(Rt.$createParagraphNode(),!0)}else(gt.$isHeadingNode(t)||gt.$isQuoteNode(t))&&t.replace(Rt.$createParagraphNode(),!0)}catch(e){}}))}e.dispatchCommand(ux,void 0)}))}),[e]);return z.createElement(cx,{onClick:t},z.createElement(db,{height:12}))};function fx(e){return fx="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},fx(e)}var px,mx={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}},hx=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,gx=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,vx=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,bx=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,yx=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,xx=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,_x=Math.floor,Ex=Math.round,Cx=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t,n,r,o,i,l,a,s,u,c,d,f,p=0,m=0,h=0,g=1;if(this._invalid=!1,arguments[0]instanceof e)p=arguments[0]._r,m=arguments[0]._g,h=arguments[0]._b,g=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(d=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f=arguments[0]))p=parseInt(d[1],10),m=parseInt(d[2],10),h=parseInt(d[3],10);else if(d=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))g=parseFloat(Ex(d[1]/2.55)/100),p=parseInt(d[2],10),m=parseInt(d[3],10),h=parseInt(d[4],10);else if(d=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(f))p=parseInt(d[1],10),m=parseInt(d[2],10),h=parseInt(d[3],10),g=parseFloat(d[4]);else if(d=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(f))p=parseInt(d[1],16),m=parseInt(d[2],16),h=parseInt(d[3],16),g=1;else if(d=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(f))p=parseInt(d[1]+d[1],16),m=parseInt(d[2]+d[2],16),h=parseInt(d[3]+d[3],16),g=1;else if(d=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),n=(n/=100)<0?0:n>1?1:n,a=(t=(t%=360)<0?0:t>360?360:t)/60,s=(l=(o=(o/=100)<0?0:o>1?1:o)<=.5?2*o*n:(2-2*o)*n)*(1-Math.abs(a%2-1)),u=[],a=Math.floor(a)){case 0:u=[l,s,0];break;case 1:u=[s,l,0];break;case 2:u=[0,l,s];break;case 3:u=[0,s,l];break;case 4:u=[s,0,l];break;case 5:u=[l,0,s];break;default:u=[0,0,0]}c=o-.5*l,p=u[0]+c,m=u[1]+c,h=u[2]+c,p=Ex(255*p),m=Ex(255*m),h=Ex(255*h),g=1}else if(d=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(f)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),g=parseFloat(d[7]),n=(n/=100)<0?0:n>1?1:n,a=(t=(t%=360)<0?0:t>360?360:t)/60,s=(l=(o=(o/=100)<0?0:o>1?1:o)<=.5?2*o*n:(2-2*o)*n)*(1-Math.abs(a%2-1)),u=[],a=Math.floor(a)){case 0:u=[l,s,0];break;case 1:u=[s,l,0];break;case 2:u=[0,l,s];break;case 3:u=[0,s,l];break;case 4:u=[s,0,l];break;case 5:u=[l,0,s];break;default:u=[0,0,0]}c=o-.5*l,p=u[0]+c,m=u[1]+c,h=u[2]+c,p=Ex(255*p),m=Ex(255*m),h=Ex(255*h)}else if(d=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),i=parseFloat(d[5]),a=(t=(t%=360)<0?0:t>360?360:t)/60,s=(l=(i=(i/=100)<0?0:i>1?1:i)*(n=(n/=100)<0?0:n>1?1:n))*(1-Math.abs(a%2-1)),u=[],a=Math.floor(a)){case 0:u=[l,s,0];break;case 1:u=[s,l,0];break;case 2:u=[0,l,s];break;case 3:u=[0,s,l];break;case 4:u=[s,0,l];break;case 5:u=[l,0,s];break;default:u=[0,0,0]}c=i-l,p=u[0]+c,m=u[1]+c,h=u[2]+c,p=Ex(255*p),m=Ex(255*m),h=Ex(255*h),g=1}else mx[f.toLowerCase()]?(r=f.toLowerCase(),p=mx[r].r,m=mx[r].g,h=mx[r].b,g="number"==typeof mx[r].a?mx[r].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(g=(4278190080&arguments[0])>>>24,g/=255,p=(16711680&arguments[0])>>16,m=(65280&arguments[0])>>8,h=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(p=(16711680&arguments[0])>>16,m=(65280&arguments[0])>>8,h=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(p=arguments[0],m=arguments[1],h=arguments[2],g=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+p+m+h+g)&&(this._invalid=!0),this._r=_x(p),this._g=_x(m),this._b=_x(h),this._a=g,this._spaces={}}var t,n;return t=e,(n=[{key:"isInvalid",value:function(){return this._invalid}},{key:"setAlpha",value:function(e){this._a=e,this._spaces={}}},{key:"getAlpha",value:function(){return this._a}},{key:"toRGB",value:function(){return this._spaces.rgb||(this._spaces.rgb=e.toRGB(this)),this._spaces.rgb}},{key:"toRGBA",value:function(){return this._spaces.rgba||(this._spaces.rgba=e.toRGBA(this)),this._spaces.rgba}},{key:"toString",value:function(){return this._spaces.rgb||(this._spaces.rgb=e.toRGB(this)),this._spaces.rgb}},{key:"toHex",value:function(){return this._spaces.hex||(this._spaces.hex=e.toHex(this)),this._spaces.hex}},{key:"toHSL",value:function(t){return this._spaces.hsl||(this._spaces.hsl=e.toHSL(this,t)),this._spaces.hsl}},{key:"toHSLA",value:function(t){return this._spaces.hsla||(this._spaces.hsla=e.toHSLA(this,t)),this._spaces.hsla}},{key:"toHSV",value:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}},{key:"toHSVComponents",value:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=e.toHSVComponents(this)),this._spaces.hsvComp}},{key:"toNumber",value:function(){return this._spaces.num||(this._spaces.num=e.toNumber(this)),this._spaces.num}},{key:"isDark",value:function(){return this.isInvalid()||this.getLuminance()<125}},{key:"getLuminance",value:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}},{key:"shiftLuminance",value:function(e){var t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]),i=parseFloat(n[5]),l=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(l,")")}},{key:"isEqual",value:function(t){return t instanceof e||(t=new e(t)),this._r===t._r&&this._g===t._g&&this._b===t._b}},{key:"blend",value:function(e,t){var n=_x(this._r+(e._r-this._r)*t),r=_x(this._g+(e._g-this._g)*t),o=_x(this._b+(e._b-this._b)*t),i=_x(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(t){(void 0===t||Number.isNaN(+t))&&(t=1);var n=this.getLuminance(),r=this._g<126?1:1+this._g/512;return new e(this.shiftLuminance(20*(n*r<220?.8+1/(n+1)*4:-(.8+n/255*1))*t))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==fx(o=function(e){if("object"!=fx(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Cx.toRGB=function(e){if(e instanceof Cx)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=Cx.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},Cx.toRGBA=function(e,t){if(e instanceof Cx)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=Cx.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,")")},Cx.toHex=function(e){var t,n,r;return e instanceof Cx?(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=Cx.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))},Cx.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new Cx(e));var l=e._r/255,a=e._g/255,s=e._b/255,u=Math.max(l,a,s),c=Math.min(l,a,s);if(r=t?.21*l+.72*a+.07*s:(u+c)/2,u===c)n=0,i=0;else{switch(o=u-c,n=r>.5?o/(2-u-c):o/(u+c),u){case l:i=(a-s)/o+(a<s?6:0);break;case a:i=(s-l)/o+2;break;case s:i=(l-a)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")},Cx.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new Cx(e));var l=e._r/255,a=e._g/255,s=e._b/255,u=e._a,c=Math.max(l,a,s),d=Math.min(l,a,s);if(r=t?.21*l+.72*a+.07*s:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case l:i=(a-s)/o+(a<s?6:0);break;case a:i=(s-l)/o+2;break;case s:i=(l-a)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(u,")")},Cx.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new Cx(e));var o=e._r/255,i=e._g/255,l=e._b/255,a=Math.max(o,i,l),s=Math.min(o,i,l),u=a;if(a===s)t=0,r=0;else{switch(t=0==(n=a-s)?0:n/u,a){case o:r=(i-l)/n+(i<l?6:0);break;case i:r=(l-o)/n+2;break;case l:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}},Cx.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof Cx)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},Cx.blend=function(e,t,n){var r=(16711680&(e=Cx.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=Cx.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},Cx.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,l=e._a+(t._a-e._a)*n;return new Cx(r,o,i,l)},Cx.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(hx.test(e)||gx.test(e)||vx.test(e)||bx.test(e)||yx.test(e)||xx.test(e)||mx[e.toLowerCase()])},Cx.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},Cx.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)}},Cx.isDark=function(){var e={getLuminance:Cx.prototype.getLuminance,isInvalid:Cx.prototype.isInvalid};return Cx.prototype.init.apply(e,[].slice.call(arguments)),Cx.prototype.isDark.call(e)},Cx.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},px=Cx;const wx=sa(dd)((({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"}))),Sx=sa(dc)((({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"}))),kx=({palette:e,color:t,onColorChange:n})=>{const[r,o]=D.useState(t),i=ia(),l=D.useCallback((e=>{o(e),n(e)}),[n]);return z.createElement(wx,null,e.map((e=>z.createElement(Sx,{style:{backgroundColor:e},key:e,onClick:t=>{t.preventDefault(),t.stopPropagation(),l(e)}},e===r?z.createElement(vd,{height:12,color:i.palette.getContrastText(e)}):null))))};function Tx(e,t,n){return Math.max(t,Math.min(n,e))}const Nx=(e,t)=>{const n=new px(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"}},Rx=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),l=Tx(e.clientX-n,0,o)/o*100,a=100-Tx(e.clientY-r,0,i)/i*100,s=new px(t).toHSVComponents();return s.s=l,s.v=a,s},Ax=sa(dd)((({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"}))),Ox=sa(dc)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),Lx=sa(dc)((({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 );"}))),Mx=sa(dc)({width:"16px",height:"16px",borderRadius:"2px"}),Px=sa(dd)({flexDirection:"row",alignItems:"center"}),Ix=sa(dc)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),Dx=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=D.useState(n),l=D.useRef(n),[a,s]=D.useState(!0),[u,c]=D.useState(o),d=D.useRef(null),f=D.useRef(null),p=D.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[m,h]=D.useState({left:"0",top:"0"});D.useEffect((()=>{r.some((e=>e===n))||s(!1)}),[n,r]);const g=D.useCallback((e=>{if(!d.current&&(d.current=e,e)){const t=Nx(o,e);h(t)}}),[o]),v=D.useMemo((()=>`hsl(${new px(o).toHSVComponents().h}, 100%, 50%)`),[o]),b=D.useCallback((t=>{t.preventDefault(),t.stopPropagation();const n=Rx(t,l.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new px(r);if(l.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(l.current),c(l.current),i(l.current)}),[e]),y=D.useCallback((t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=Tx(e.clientX-r,0,n),i=Math.round(o/n*360),l=o/n*100,a=new px(t).toHSVComponents();return a.h=i,a.s=l,a})(t,l.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new px(r);l.current=o.toHex(),e(l.current),c(l.current),i(l.current)}),[e]),x=D.useCallback((t=>{l.current=t,e(l.current),i(l.current),c(t)}),[e]),_=D.useCallback((t=>{if(c(t.target.value),!new px(t.target.value).isInvalid()&&(l.current=t.target.value,i(t.target.value),t.target.value.startsWith("#")&&7===t.target.value.length?e(l.current,{tag:"collaboration"}):t.target.value.startsWith("#")||e(l.current,{tag:"collaboration"}),d.current)){const e=Nx(l.current,d.current);h(e)}}),[e]);return z.createElement(Ax,null,a?z.createElement(kx,{palette:r,color:o,onColorChange:x}):z.createElement(z.Fragment,null,z.createElement(Ox,{style:{backgroundColor:v},ref:g,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),f.current&&e.target===f.current){const{left:t,top:n}=f.current.style,r=parseInt(t||"0",10),o=parseInt(n||"0",10);f.current.style.cursor="pointer",d.current&&(d.current.style.cursor="pointer"),p.current={left:r,top:o,on:!0,clientX:e.clientX,clientY:e.clientY}}},onMouseMove:e=>{if(e.preventDefault(),e.stopPropagation(),p.current.on&&f.current&&d.current){const t=e.clientX-p.current.clientX,n=e.clientY-p.current.clientY,r=p.current.left+t,o=p.current.top+n,a=Rx(e,l.current),s=`hsv(${a.h},${a.s},${a.v})`,u=new px(s).toHex();f.current.style.left=`${r}px`,f.current.style.top=`${o}px`,f.current.style.backgroundColor=u,l.current=u,c(l.current),i(u)}},onMouseUp:t=>{t.preventDefault(),t.stopPropagation(),p.current.on?e(l.current):b(t),d.current&&(d.current.style.cursor="crosshair"),f.current&&(f.current.style.cursor="pointer"),p.current.on=!1}},z.createElement(Ix,{ref:f,style:{...m,backgroundColor:o}})),z.createElement(Lx,{onClick:y})),z.createElement(Px,null,z.createElement(Mx,{style:{backgroundColor:o}}),z.createElement(uc,{style:{flex:1},value:u,onChange:_}),z.createElement(Ku,{onClick:()=>s(!a)},z.createElement(mb,{height:12})),z.createElement(Ku,{onClick:t},z.createElement(vd,{height:12}))))},zx=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],$x=ox(xc,"Color"),Fx=({colorPalette:e})=>{const[t]=wt.useLexicalComposerContext(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(Wy),i=D.useCallback(((e,n)=>{t.update((()=>{const t=Rt.$getSelection();Rt.$isRangeSelection(t)&&At.$patchStyleText(t,{color:e})}),n),t.dispatchCommand(sx,{styleKey:"color",styleValue:e})}),[t]),l=()=>{r(null)};return z.createElement(Ea,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},z.createElement("div",null,z.createElement($x,{variant:"text",size:"small",endIcon:z.createElement(Yv,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}},z.createElement(dc,{sx:{backgroundColor:o.fontColor,width:12,height:12}})),z.createElement(Gy,{anchorEl:n},z.createElement(Dx,{onClick:i,onClose:l,startColor:o.fontColor,palette:e||zx}))))},Bx=({compact:e,fonts:t})=>{const[n]=wt.useLexicalComposerContext(),[r,o]=D.useState(null),{blockFormat:i}=D.useContext(Wy),l=D.useMemo((()=>t||By),[t]),a=D.useCallback((e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update((()=>{const e=Rt.$getSelection();Rt.$isRangeSelection(e)&&At.$patchStyleText(e,{"font-family":t||By[0]}),n.dispatchCommand(sx,{styleKey:"fontFamily",styleValue:t||By[0]}),n.focus()}))}),[n]);return z.createElement(Ea,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},z.createElement("div",null,z.createElement(Vy,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:z.createElement("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"}},"T"),compact:e}),z.createElement(Gy,{anchorEl:r},z.createElement(Vc,{dense:!0,style:{maxHeight:200,overflow:"auto"}},l.map((e=>z.createElement(Qy,{"data-font-name":e,key:e,onClick:a,active:e===i.fontName},z.createElement(Yy,null,e))))))))},Hx=e=>parseInt(e,10),jx=({fontSize:e,onSelected:t})=>{const[n,r]=D.useState(""),o=D.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)}),[]),i=D.useCallback((()=>{const e=Hx(n);e&&t(`${e}px`)}),[t,n]),l=D.useCallback((e=>{"Enter"===e.key&&(e.preventDefault(),i())}),[i]);return z.createElement(dd,{direction:"row"},z.createElement(uc,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:l}),z.createElement(Ku,{disabled:!Hx(n),onClick:i},z.createElement(vd,{height:12})))},Wx=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],Kx=({compact:e})=>{const[t]=wt.useLexicalComposerContext(),[n,r]=D.useState(null),{blockFormat:o}=D.useContext(Wy),i=D.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),l=D.useCallback((()=>{r(null)}),[]),a=D.useCallback((e=>{r(null),e.length>0&&t.update((()=>{const n=Rt.$getSelection();Rt.$isRangeSelection(n)&&At.$patchStyleText(n,{"font-size":e}),t.dispatchCommand(sx,{styleKey:"fontSize",styleValue:`${e}`})}))}),[t]),s=D.useCallback((e=>{const{fontSize:t}=e.currentTarget.dataset;a(t||"16px")}),[a]),u=D.useCallback((e=>{a(e)}),[a]);return z.createElement(Ea,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},z.createElement("div",null,z.createElement(Vy,{startIcon:e?z.createElement(Yy,null,o.fontSize):void 0,value:o.fontSize,onClick:i,compact:e}),z.createElement(Gy,{anchorEl:n},z.createElement(jx,{fontSize:o.fontSize,onSelected:u}),z.createElement(kc,null),z.createElement(Vc,{dense:!0,style:{maxHeight:200,overflow:"auto"}},Wx.map((e=>z.createElement(Zc,{"data-font-size":e,key:e,onClick:s},z.createElement(Yy,null,e))))))))},Ux=ox(rx,"InsertTable"),Gx=()=>{const[e]=wt.useLexicalComposerContext(),t=D.useCallback((()=>{e.dispatchCommand(my,void 0)}),[e]);return z.createElement(Ux,{onClick:t},z.createElement(vb,{height:12}))},Yx=ox(ix,"Italic"),Vx=()=>z.createElement(Yx,{format:"italic",icon:z.createElement(xb,{height:12})}),Qx=ox(rx,"InsertHyperlink"),qx=()=>{const[e]=wt.useLexicalComposerContext(),{blockFormat:t}=D.useContext(Wy),n=D.useCallback((()=>{t.isLink?e.dispatchCommand(de.TOGGLE_LINK_COMMAND,null):e.dispatchCommand(de.TOGGLE_LINK_COMMAND,Pb("https://"))}),[e,t.isLink]);return z.createElement(Qx,{onClick:n},z.createElement(Cb,{height:12}))},Xx=ox(ix,"Underline"),Jx=()=>z.createElement(Xx,{format:"underline",icon:z.createElement(kb,{height:12})}),Zx=()=>z.createElement(kc,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var e_={AddNewColumn:{value:"Spalte hinzufügen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Zeile hinzufügen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Zentrieren",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Linksbündig",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechtsbündig",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fett",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textausrichtung",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Schriftgröße",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Format löschen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Schriftfarbe",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Spalte löschen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Zeile löschen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabelle löschen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geben Sie Text ein...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Überschrift 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Überschrift 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Überschrift 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Link einfügen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Großer Text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link zu",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Mittlerer Text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sortierte Liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Absatz",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Listenstil",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Kleiner Text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Rahmen wechseln",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-Link",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Unterstreichen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Unsortierte Liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},t_={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"}},n_={AddNewColumn:{value:"Añadir columna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Añadir fila",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinear centrado",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinear a la izquierda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinear a la derecha",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrita",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alineación de texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamaño de texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Borrar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Color de fuente",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Eliminar columna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Eliminar fila",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Eliminar tabla",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Escriba algún texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabecera 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabecera 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabecera 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insertar enlace",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Cursiva",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Enlazar a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto mediano",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Párrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo de lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeño",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Ajustar bordes",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Enlace URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Subrayado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista no ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},r_={AddNewColumn:{value:"Ajouter une colonne",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Ajouter une ligne",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrer",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Aligner à gauche",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Aligner à droite",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Gras",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alignement du texte",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Taille du texte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Effacer le format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Couleur de police",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Supprimer une colonne",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Supprimer une ligne",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Supprimer la table",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Saisissez un texte...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"En-tête 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"En-tête 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"En-tête 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Insérer un lien",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Italique",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texte de grande taille",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Lien vers",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texte de taille moyenne",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Liste triée",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraphe",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Style de liste",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texte de petite taille",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Basculer les bords",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Lien URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Souligner",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Liste non triée",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},o_={AddNewColumn:{value:"Aggiungi colonna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Aggiungi riga",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Allinea al centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Allinea a sinistra",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Allinea a destra",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Grassetto",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Allineamento testo",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Dimensione testo",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Cancella formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Colore carattere",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Elimina colonna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Elimina riga",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Elimina tabella",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Inserisci del testo...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Intestazione 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Intestazione 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Intestazione 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserisci collegamento",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Corsivo",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Testo grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Collega a",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Testo medio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Elenco ordinato",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Stile elenco",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Testo piccolo",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Attiva/Disattiva bordi",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Collegamento URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sottolineato",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Elenco non ordinato",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},i_={AddNewColumn:{value:"列を追加",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"行を追加",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"中央揃え",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"左揃え",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"右揃え",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"太字",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"テキストの配置",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"テキスト サイズ",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"書式をクリア",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"フォントの色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"列を削除",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"行を削除",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"テーブルを削除",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"テキストを入力してください...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"見出し 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"見出し 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"見出し 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"リンクを挿入",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"テキスト大",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"リンク先",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"テキスト中",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"順序付きリスト",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"リスト スタイル",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"テキスト小",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"境界線の切り替え",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL リンク",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"順序なしリスト",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},l_={AddNewColumn:{value:"열 추가",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"행 추가",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"중앙 맞춤",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"왼쪽 맞춤",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"오른쪽 맞춤",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"굵게",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"텍스트 맞춤",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"텍스트 크기",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"형식 지우기",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"글꼴 색",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"열 삭제",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"행 삭제",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"테이블 삭제",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"텍스트 입력...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"머리글 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"머리글 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"머리글 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"링크 삽입",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"기울임꼴",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"큰 텍스트",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"연결 대상",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"중간 텍스트",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"순서가 지정된 목록",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"단락",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"목록 스타일",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"작은 텍스트",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"테두리 설정/해제",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 링크",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"밑줄",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"순서가 지정되지 않은 목록",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},a_={AddNewColumn:{value:"Kolom toevoegen",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Rij toevoegen",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Op midden uitlijnen",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Links uitlijnen",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Rechts uitlijnen",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Vet",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Tekstuitlijning",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tekstgrootte",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Opmaak wissen",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Tekstkleur",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Kolom verwijderen",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Rij verwijderen",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabel verwijderen",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Geef tekst op...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Koptekst 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Koptekst 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Koptekst 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Koppeling invoegen",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Cursief",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Tekst groot",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Koppelen met",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Tekst medium",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Geordende lijst",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Alinea",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Lijststijl",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Tekst klein",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Randen in-/uitschakelen",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-koppeling",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Onderstrepen",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Ongeordende lijst",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},s_={AddNewColumn:{value:"Dodaj kolumnę",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Dodaj wiersz",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Wyrównaj do środka",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Wyrównaj do lewej",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Wyrównaj do prawej",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Pogrubienie",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Wyrównanie tekstu",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Wielkość tekstu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Wyczyść format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Kolor czcionki",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Usuń kolumnę",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Usuń wiersz",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Usuń tabelę",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Wprowadź tekst...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Nagłówek 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Nagłówek 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Nagłówek 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Wstaw łącze",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Kursywa",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Duży tekst",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Łącze do:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Średni tekst",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista uporządkowana",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Akapit",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Styl listy",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Mały tekst",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Przełącz obramowania",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Łącze URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Podkreślenie",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista nieuporządkowana",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},u_={AddNewColumn:{value:"Adicionar coluna",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Adicionar linha",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Alinhar centro",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Alinhar à esquerda",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Alinhar à direita",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Negrito",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Alinhamento do texto",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Tamanho do texto",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Limpar formato",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Cor da fonte",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Excluir coluna",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Excluir linha",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Excluir tabela",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Digite algum texto...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Cabeçalho 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Cabeçallho 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Cabeçalho 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Inserir link",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Itálico",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Texto grande",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Link para",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Texto médio",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Lista ordenada",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Parágrafo",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Estilo em lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Texto pequeno",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Alternar bordas",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"Link da URL",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Sublinhado",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Lista não ordenada",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},c_={AddNewColumn:{value:"Добавить столбец",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Добавить строку",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Выровнять по центру",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Выровнять по левой стороне",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Выровнять по правой стороне",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Полужирный",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Выравнивание текста",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Размер текста",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Очистить формат",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Цвет шрифта",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Удалить столбец",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Удалить строку",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Удалить таблицу",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Введите текст...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Заголовок 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Заголовок 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Заголовок 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Вставить ссылку",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Курсив",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Крупный текст",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Ссылка на",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Средний текст",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Упорядоченный список",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Абзац",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Стиль списка",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Мелкий текст",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Переключить границы",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-ссылка",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Подчеркивание",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Неупорядоченный список",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},d_={AddNewColumn:{value:"Lägg till kolumn",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Lägg till rad",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Centrera",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Vänsterjustera",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Högerjustera",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Fetstil",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Textjustering",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Textstorlek",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Rensa format",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Teckenfärg",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Ta bort kolumn",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Ta bort rad",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Ta bort tabell",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Skriv in text...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Rubrik 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Rubrik 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Rubrik 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Infoga länk",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"Kursiv",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Stor text",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Länka till",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Medelstor text",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sorterad lista",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Stycke",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Som lista",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Liten text",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kantlinjer på/av",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL-länk",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Understrykning",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Osorterad lista",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},f_={AddNewColumn:{value:"Sütun ekle",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"Satır ekle",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"Ortaya hizala",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"Sola hizala",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"Sağa hizala",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"Kalın",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"Metin hizalaması",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"Metin boyutu",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"Biçimi temizle",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"Yazı tipi rengi",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"Sütun sil",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"Satır sil",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"Tabloyu sil",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"Metin girin...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"Başlık 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"Başlık 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"Başlık 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"Bağlantı ekle",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"İtalik",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"Büyük metin",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"Bağlantı:",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"Orta boy metin",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"Sıralı liste",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"Paragraf",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"Liste stili",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"Küçük metin",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"Kenarlıkları değiştir",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL bağlantısı",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"Altını çiz",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"Sırasız liste",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}};const p_={de:e_,es:n_,en:t_,fr:r_,it:o_,ja:i_,ko:l_,nl:a_,pl:s_,pt:u_,ru:c_,sv:d_,tr:f_,"de-de":e_,"es-es":n_,"en-us":t_,"fr-fr":r_,"it-it":o_,"ja-jp":i_,"ko-kr":l_,"nl-nl":a_,"pl-pl":s_,"pt-br":u_,"ru-ru":c_,"sv-se":d_,"tr-tr":f_,"zh-cn":{AddNewColumn:{value:"添加列",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"添加行",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"居中对齐",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左对齐",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右对齐",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"加粗",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文本对齐",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文本大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字体颜色",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"删除列",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"删除行",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"删除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"输入一些文本...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"标题 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"标题 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"标题 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入链接",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"斜体",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文本",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"链接到",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文本",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"有序列表",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"列表样式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文本",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切换边框",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 链接",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"下划线",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"无序列表",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}},"zh-tw":{AddNewColumn:{value:"新增欄",comment:"Menu option to add column to table",version:"+vQaijK7E48vJ9H9MJsd3Q=="},AddNewRow:{value:"新增列",comment:"Menu option to add row to table",version:"o5g9uoLTxIYAznEdFR0ioA=="},AlignCenter:{value:"置中對齊",comment:"Align center text format dropdown in toolbar menu label. (dfk 221011)",version:"33xAsCk52eZdrns6ESQAYQ=="},AlignLeft:{value:"靠左對齊",comment:"Align left text format dropdown in toolbar menu label. (dfk 221011)",version:"Xy6widnhx5lnasAS62KjOw=="},AlignRight:{value:"靠右對齊",comment:"Align right text format dropdown in toolbar menu label. (dfk 221011)",version:"uRJLJvO4eCo/vRYCoR/eCQ=="},BoldText:{value:"粗體",comment:"Bold text label in toolbar menu label. (dfk 221011)",version:"EmmVb6LoUIGAXaw+1ubcXg=="},ChangeTextAlignment:{value:"文字對齊方式",comment:"Change text alignment label in toolbar menu label. (dfk 221011)",version:"IzmYkHFKuHvhNY4z6j3BSA=="},ChangeTextSize:{value:"文字大小",comment:"Change text size in toolbar menu label. (dfk 221011)",version:"aEi5MBJWXKnW/bq2ny1Jzw=="},ClearFormat:{value:"清除格式",comment:"Clear the selected text format",version:"Q2OEIvJHrH8MsE4RQNfMWQ=="},Color:{value:"字型色彩",comment:"Button label for color picker",version:"ZSR6BBl1PNHGAiXYyfyFOw=="},DeleteCol:{value:"刪除欄",comment:"Menu option to delete column to table",version:"KdwEyWDvorWo9POIi4ZsEg=="},DeleteRow:{value:"刪除列",comment:"Menu option to delete row to table",version:"HNt6G95YEKMB64vvyDklHA=="},DeleteTable:{value:"刪除表格",comment:"Menu option to delete table",version:"t1C38w3fJ267Gr6tdoHuQQ=="},EnterText:{value:"輸入一些文字...",comment:"Prompt to user when the text object is empty",version:"PgCz8azF8kkBE7eC4afWjg=="},Heading1:{value:"標頭 1",comment:"HTML Header 1 format for the text",version:"hnjaVlzIU3eTAQZeaBzzzA=="},Heading2:{value:"標頭 2",comment:"HTML Header 2 format for the text",version:"pYerzmSdfRZrsIWHcPZJrA=="},Heading3:{value:"標頭 3",comment:"HTML Header 2 format for the text",version:"xHJCPRmh19YJg/dKSmbuFA=="},InsertHyperlink:{value:"插入連結",comment:"Insert hyperlink label in toolbar menu label. (dfk 221011)",version:"ej9rwxwF6Vh7XrQ28DuWmQ=="},ItalicizeText:{value:"斜體字",comment:"Italicize text label in toolbar menu label. (dfk 221011)",version:"1qaKn3zXIiq9tmUO81pOmw=="},LargeText:{value:"大型文字",comment:"Large text in text size dropdown in toolbar menu label. (dfk 221011)",version:"Ga4ivSCgHaK3NyfLFnD/hw=="},LinkTo:{value:"連結至",comment:"Generic link label. (dfk 221011)",version:"+3NC9+yOccLuyYnxJrdFcQ=="},MediumText:{value:"中型文字",comment:"Medium text in text size dropdown in toolbar menu label. (dfk 221011)",version:"duW4rbX+lr/NEogVsD8MfQ=="},OrderedList:{value:"排序清單",comment:"Ordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"FddCEQTnAmH1gV8D430F/g=="},Paragraph:{value:"段落",comment:"Paragraph format for the text",version:"pHFeBq44ok2V7M2esInoFA=="},SetTextListStyle:{value:"清單樣式",comment:"Set text list style label in toolbar menu label. (dfk 221011)",version:"aIB7vJ7tZ0Nddeg4AaZriQ=="},SmallText:{value:"小型文字",comment:"Small text in text size dropdown in toolbar menu label. (dfk 221011)",version:"KW+o3yZafqHkbzyid96v4g=="},ToggleBorders:{value:"切換框線",comment:"Menu option to toggle table borders",version:"X8/Cbk95LroUwE8LKSnn+A=="},URLLink:{value:"URL 連結",comment:"URL link label. (dfk 221011)",version:"NuOom1L7yZrPKpIzy2/XXg=="},UnderlineText:{value:"底線",comment:"Underline text label in toolbar menu label. (dfk 221011)",version:"5ob75WGKK4whhNVPsicswQ=="},UnorderedList:{value:"未排序清單",comment:"Unordered list in list format dropdown in toolbar menu label. (dfk 221011)",version:"GIyyLYfHs+U9DgkelqqdpA=="}}};function m_(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||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h_,g_,v_,b_={};var y_,x_=function(){if(v_)return g_;v_=1;const e=function(){if(h_)return b_;h_=1;var e=Se(),t=re(),n=w();function r(e,n){return e.getEditorState().read((()=>{let e=t.$getNodeByKey(n);return null!==e&&e.isSelected()}))}return b_.useLexicalNodeSelection=function(o){let[i]=e.useLexicalComposerContext(),[l,a]=n.useState((()=>r(i,o)));n.useEffect((()=>{let e=!0,t=i.registerUpdateListener((()=>{e&&a(r(i,o))}));return()=>{e=!1,t()}}),[i,o]);let s=n.useCallback((e=>{i.update((()=>{let n=t.$getSelection();t.$isNodeSelection(n)||(n=t.$createNodeSelection(),t.$setSelection(n)),e?n.add(o):n.delete(o)}))}),[i,o]),u=n.useCallback((()=>{i.update((()=>{const e=t.$getSelection();t.$isNodeSelection(e)&&e.clear()}))}),[i]);return[l,s,u]},b_}();return g_=e}(),__={};var E_=function(){if(y_)return __;y_=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,l=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,a=Math.floor,s=Math.round,u=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,r,o,i,l,u,c,d,f,p,m,h,g=0,v=0,b=0,y=1;if(this._invalid=!1,arguments[0]instanceof t)g=arguments[0]._r,v=arguments[0]._g,b=arguments[0]._b,y=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(m=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h=arguments[0]))g=parseInt(m[1],10),v=parseInt(m[2],10),b=parseInt(m[3],10);else if(m=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))y=parseFloat(s(m[1]/2.55)/100),g=parseInt(m[2],10),v=parseInt(m[3],10),b=parseInt(m[4],10);else if(m=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))g=parseInt(m[1],10),v=parseInt(m[2],10),b=parseInt(m[3],10),y=parseFloat(m[4]);else if(m=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))g=parseInt(m[1],16),v=parseInt(m[2],16),b=parseInt(m[3],16),y=1;else if(m=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))g=parseInt(m[1]+m[1],16),v=parseInt(m[2]+m[2],16),b=parseInt(m[3]+m[3],16),y=1;else if(m=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(n=parseFloat(m[1]),r=parseFloat(m[3]),i=parseFloat(m[5]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,b=f[2]+p,g=s(255*g),v=s(255*v),b=s(255*b),y=1}else if(m=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(n=parseFloat(m[1]),r=parseFloat(m[3]),i=parseFloat(m[5]),y=parseFloat(m[7]),r=(r/=100)<0?0:r>1?1:r,c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(i=(i/=100)<0?0:i>1?1:i)<=.5?2*i*r:(2-2*i)*r)*(1-Math.abs(c%2-1)),f=[],c=Math.floor(c)){case 0:f=[u,d,0];break;case 1:f=[d,u,0];break;case 2:f=[0,u,d];break;case 3:f=[0,d,u];break;case 4:f=[d,0,u];break;case 5:f=[u,0,d];break;default:f=[0,0,0]}p=i-.5*u,g=f[0]+p,v=f[1]+p,b=f[2]+p,g=s(255*g),v=s(255*v),b=s(255*b)}else if(m=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(n=parseFloat(m[1]),r=parseFloat(m[3]),l=parseFloat(m[5]),c=(n=(n%=360)<0?0:n>360?360:n)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)*(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=l-u,g=f[0]+p,v=f[1]+p,b=f[2]+p,g=s(255*g),v=s(255*v),b=s(255*b),y=1}else e[h.toLowerCase()]?(o=h.toLowerCase(),g=e[o].r,v=e[o].g,b=e[o].b,y="number"==typeof e[o].a?e[o].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(y=(4278190080&arguments[0])>>>24,y/=255,g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(g=(16711680&arguments[0])>>16,v=(65280&arguments[0])>>8,b=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(g=arguments[0],v=arguments[1],b=arguments[2],y=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+g+v+b+y)&&(this._invalid=!0),this._r=a(g),this._g=a(v),this._b=a(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]),l=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(l,")")}},{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=a(this._r+(e._r-this._r)*t),r=a(this._g+(e._g-this._g)*t),o=a(this._b+(e._b-this._b)*t),i=a(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){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof 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 l=e._r/255,a=e._g/255,s=e._b/255,c=Math.max(l,a,s),d=Math.min(l,a,s);if(r=t?.21*l+.72*a+.07*s:(c+d)/2,c===d)n=0,i=0;else{switch(o=c-d,n=r>.5?o/(2-c-d):o/(c+d),c){case l:i=(a-s)/o+(a<s?6:0);break;case a:i=(s-l)/o+2;break;case s:i=(l-a)/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 l=e._r/255,a=e._g/255,s=e._b/255,c=e._a,d=Math.max(l,a,s),f=Math.min(l,a,s);if(r=t?.21*l+.72*a+.07*s:(d+f)/2,d===f)n=0,i=0;else{switch(o=d-f,n=r>.5?o/(2-d-f):o/(d+f),d){case l:i=(a-s)/o+(a<s?6:0);break;case a:i=(s-l)/o+2;break;case s:i=(l-a)/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,l=e._b/255,a=Math.max(o,i,l),s=Math.min(o,i,l),c=a;if(a===s)t=0,r=0;else{switch(t=0==(n=a-s)?0:n/c,a){case o:r=(i-l)/n+(i<l?6:0);break;case i:r=(l-o)/n+2;break;case l: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,l=e._a+(t._a-e._a)*n;return new u(r,o,i,l)},u.isCSSColor=function(a){return!(arguments.length>1||"string"!=typeof a)&&(t.test(a)||n.test(a)||r.test(a)||o.test(a)||i.test(a)||l.test(a)||e[a.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},__.Color=u,__}();async function C_(e,t){!async function(e,t){try{if(e&&t){const n=t(await e.getProperties());await e.setProperties(n)}}catch(e){console.error(e)}}(e,(e=>{const{qHyperCubeDef:n}=e;if(n){var r;const e=null===(r=n.qMeasures)||void 0===r?void 0:r.filter((e=>!(null==t?void 0:t.find((t=>{var n;return t===(null==e||null===(n=e.qDef)||void 0===n?void 0:n.cId)})))));n.qMeasures=e,n.qInterColumnSortOrder=[]}return{...e,qHyperCubeDef:n}}))}function w_(e){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function S_(e,t){return null==t?void 0:t.getNodes().some((t=>t.getKey()===e))}function k_({cId:e,initStyle:t,nodeKey:n}){const{layout:r,theme:o}=D.useContext(F),[i]=wt.useLexicalComposerContext(),l=Tt(),[a,s,u]=x_.useLexicalNodeSelection(n),c=D.useRef(null),[d,f]=D.useState(t);D.useEffect((()=>{f(t)}),[t]);const p=D.useMemo((()=>{let e;return a?e="rgba(0, 152, 69, 0.25)":l&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}}),[a,l]),m=D.useMemo((()=>r&&o?function(e,t){const{qHyperCube:n}=t;if(n){var r;const t=null===(r=n.qMeasureInfo)||void 0===r?void 0:r.findIndex((t=>t.cId===e));if(void 0!==t&&-1!==t){var o,i;const e=null==n||null===(o=n.qDataPages)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.qMatrix)||void 0===o?void 0:o[0][t];if(1===(null==e||null===(i=e.qAttrExps)||void 0===i||null===(i=i.qValues)||void 0===i?void 0:i.length)){var l;const t=null===(l=e.qAttrExps.qValues[0])||void 0===l?void 0:l.qText;if(t){const n=new E_.Color(t);return{value:(null==e?void 0:e.qText)||"",expressionColor:n.toHex()}}}return{value:(null==e?void 0:e.qText)||""}}}return{value:""}}(e,r):{value:""}),[r]);D.useEffect((()=>Nt.mergeRegister(i.registerCommand(Rt.FORMAT_TEXT_COMMAND,(e=>(i.update((()=>{const t=e,r=Rt.$getSelection();if(Rt.$isRangeSelection(r)&&a){if(S_(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:"");f((t=>({...t,...e})))}}else if(a&&Rt.$isNodeSelection(r)&&S_(n,r)&&c.current){const e=w_(c.current.style);f(((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)),Rt.COMMAND_PRIORITY_HIGH),i.registerCommand(sx,(e=>(i.getEditorState().read((()=>{if("color"===e.styleKey&&m.expressionColor)return!1;if(c.current&&a){const r=Rt.$getSelection();if(S_(n,r)){var t;const n=w_(null===(t=c.current)||void 0===t?void 0:t.style);n[e.styleKey]=e.styleValue,f(n)}}})),!1)),Rt.COMMAND_PRIORITY_EDITOR),i.registerCommand(ux,(()=>(i.getEditorState().read((()=>{if(c.current&&a){const e=Rt.$getSelection();if(S_(n,e)){const e={};m.expressionColor&&(e.color=m.expressionColor),f(e)}}})),!1)),Rt.COMMAND_PRIORITY_EDITOR))),[i,s,u,a,n,m]),D.useEffect((()=>{l||u()}),[l,u]),D.useEffect((()=>{i.update((()=>{!function(e,t){const n=Rt.$getNodeByKey(e);var r;n&&(null===(r=n.setFormatStyle)||void 0===r||r.call(n,t))}(n,d)}))}),[d,i]);const h=D.useCallback((e=>{if(l){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),u(),s(!0)):r<t.width&&i.update((()=>{const e=Rt.$getSelection();if(Rt.$isNodeSelection(e)){const t=Rt.$getNodeByKey(n);null==t||t.selectPrevious(),e.delete(n)}}))}}),[u,l,i]);return z.createElement("span",{style:{...p,...d,color:m.expressionColor?m.expressionColor:d.color},onClick:h,ref:c,id:e},m.value)}const T_="qlik.expression.node";class N_ extends wy{static getType(){return T_}static clone(e){return new N_(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new N_(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:T_,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),m_(this,"__expressionId",void 0),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return z.createElement(k_,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function R_(e){return e instanceof N_}function A_(){const[e]=wt.useLexicalComposerContext(),t=Tt(),{edit:n,model:r,emitter:o}=D.useContext(F);return D.useEffect((()=>{const t=()=>{r&&async function(e,t){try{const n=await t.getProperties();n.text=JSON.stringify(e),await t.setProperties(n)}catch(e){console.error(e)}}(e.getEditorState().toJSON(),r)},n=t=>{const n=e.parseEditorState(t);t!==JSON.stringify(e.getEditorState().toJSON())&&e.setEditorState(n)};return null==o||o.on("saveDocument",t),null==o||o.on("reloadData",n),()=>{null==o||o.removeListener("saveDocument",t),null==o||o.removeListener("reloadData",n)}}),[o,r]),D.useEffect((()=>{e.setEditable(n)}),[n]),D.useEffect((()=>{t&&e.focus()}),[t,e]),null}class O_{constructor(){m_(this,"nodeStore",void 0),m_(this,"pendingDeletes",void 0),this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=Rt.$getNodeByKey(e);if(R_(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 L_(){let e;const{layout:t,readyToPrint:n}=D.useContext(F),[r]=wt.useLexicalComposerContext();D.useEffect((()=>(e=r.registerUpdateListener((({dirtyElements:r,dirtyLeaves:o,prevEditorState:i})=>{0===r.size&&0===o.size||i.isEmpty()||(()=>{const r=null==n?void 0:n.findIndex((e=>e.id===t.qInfo.qId));r>-1&&(n[r].resolve(),n.splice(r,1),e())})()})),()=>{e()})),[])}function M_(){const{layout:e,emitter:t}=D.useContext(F),[n]=wt.useLexicalComposerContext(),r=D.useRef(new O_),o=Tt();return L_(),D.useEffect((()=>{const e=n.registerMutationListener(N_,(e=>{n.getEditorState().read((()=>{for(const[t,n]of e)r.current.update(t,n)}))}));return()=>{e()}}),[n]),D.useEffect((()=>{e&&n.update((()=>{var t;const n=null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo;if(n){const e=Rt.$nodesOfType(N_),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=Rt.$getSelection(),{cId:t}=n[n.length-1],r=new N_(t,{}),o=Rt.$createTextNode(" "),i=Rt.$createTextNode("");Rt.$isRangeSelection(e)?e.insertNodes([i,r,o]):Nt.$insertNodeToNearestRoot(r)}}}))}),[e,n]),D.useEffect((()=>n.registerCommand(Rt.KEY_DOWN_COMMAND,(e=>("Backspace"===e.key&&n.update((()=>{const e=Rt.$getSelection();Rt.$isNodeSelection(e)&&e.getNodes().forEach((e=>{R_(e)&&(e.selectPrevious(),e.remove())}))})),!1)),Rt.COMMAND_PRIORITY_LOW)),[n]),D.useEffect((()=>{if(!o){const e=r.current.sync();e.length>0&&(null==t||t.emit("onNodeDestroyed",e))}}),[o,t]),null}const P_=/"/g;function I_(){const{model:e,emitter:t}=D.useContext(F),[n]=wt.useLexicalComposerContext(),r=D.useRef(new Map);return D.useEffect((()=>{const o=n.registerMutationListener(Rt.TextNode,(e=>{e.forEach(((e,t)=>{if("destroyed"===e)r.current.delete(t);else{var o;const e=null===(o=n.getElementByKey(t))||void 0===o?void 0:o.style.fontFamily;e&&r.current.set(t,e)}}))}));async function i(){if(e){!async function(e,t){try{const n=await t.getProperties();n.fontsUsed=e,await t.setProperties(n)}catch(e){console.error(e)}}(Array.from(new Set(r.current.values())).map((e=>e.replace(P_,""))),e)}}return null==t||t.on("saveDocument",i),()=>{null==t||t.removeListener("saveDocument",i),o()}}),[n]),null}var D_=["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"],z_=["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 $_=Object.prototype.hasOwnProperty,F_=Object.prototype.toString,B_=Object.defineProperty,H_=Object.getOwnPropertyDescriptor,j_=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===F_.call(e)},W_=function(e){if(!e||"[object Object]"!==F_.call(e))return!1;var t,n=$_.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&$_.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||$_.call(e,t)},K_=function(e,t){B_&&"__proto__"===t.name?B_(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},U_=function(e,t){if("__proto__"===t){if(!$_.call(e,t))return;if(H_)return H_(e,t).value}return e[t]};function G_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Y_(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function V_(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,l,a=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[1]||{},s=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=U_(a,n),a!==(o=U_(t,n))&&(c&&o&&(W_(o)||(i=j_(o)))?(i?(i=!1,l=r&&j_(r)?r:[]):l=r&&W_(r)?r:{},K_(a,{name:n,newValue:e(c,l,o)})):void 0!==o&&K_(a,{name:n,newValue:o}));return a}));var Q_=1/.7,q_="\\s*([+-]?\\d+)\\s*",X_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",J_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Z_=/^#([0-9a-f]{3,8})$/,eE=new RegExp(`^rgb\\(${q_},${q_},${q_}\\)$`),tE=new RegExp(`^rgb\\(${J_},${J_},${J_}\\)$`),nE=new RegExp(`^rgba\\(${q_},${q_},${q_},${X_}\\)$`),rE=new RegExp(`^rgba\\(${J_},${J_},${J_},${X_}\\)$`),oE=new RegExp(`^hsl\\(${X_},${J_},${J_}\\)$`),iE=new RegExp(`^hsla\\(${X_},${J_},${J_},${X_}\\)$`),lE={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 aE(){return this.rgb().formatHex()}function sE(){return this.rgb().formatRgb()}function uE(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Z_.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?cE(t):3===n?new mE(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?dE(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?dE(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=eE.exec(e))?new mE(t[1],t[2],t[3],1):(t=tE.exec(e))?new mE(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=nE.exec(e))?dE(t[1],t[2],t[3],t[4]):(t=rE.exec(e))?dE(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=oE.exec(e))?xE(t[1],t[2]/100,t[3]/100,1):(t=iE.exec(e))?xE(t[1],t[2]/100,t[3]/100,t[4]):lE.hasOwnProperty(e)?cE(lE[e]):"transparent"===e?new mE(NaN,NaN,NaN,0):null}function cE(e){return new mE(e>>16&255,e>>8&255,255&e,1)}function dE(e,t,n,r){return r<=0&&(e=t=n=NaN),new mE(e,t,n,r)}function fE(e){return e instanceof V_||(e=uE(e)),e?new mE((e=e.rgb()).r,e.g,e.b,e.opacity):new mE}function pE(e,t,n,r){return 1===arguments.length?fE(e):new mE(e,t,n,null==r?1:r)}function mE(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function hE(){return`#${yE(this.r)}${yE(this.g)}${yE(this.b)}`}function gE(){const e=vE(this.opacity);return`${1===e?"rgb(":"rgba("}${bE(this.r)}, ${bE(this.g)}, ${bE(this.b)}${1===e?")":`, ${e})`}`}function vE(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function bE(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yE(e){return((e=bE(e))<16?"0":"")+e.toString(16)}function xE(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new EE(e,t,n,r)}function _E(e){if(e instanceof EE)return new EE(e.h,e.s,e.l,e.opacity);if(e instanceof V_||(e=uE(e)),!e)return new EE;if(e instanceof EE)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),l=NaN,a=i-o,s=(i+o)/2;return a?(l=t===i?(n-r)/a+6*(n<r):n===i?(r-t)/a+2:(t-n)/a+4,a/=s<.5?i+o:2-i-o,l*=60):a=s>0&&s<1?0:l,new EE(l,a,s,e.opacity)}function EE(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function CE(e){return(e=(e||0)%360)<0?e+360:e}function wE(e){return Math.max(0,Math.min(1,e||0))}function SE(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}G_(V_,uE,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:aE,formatHex:aE,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _E(this).formatHsl()},formatRgb:sE,toString:sE}),G_(mE,pE,Y_(V_,{brighter(e){return e=null==e?Q_:Math.pow(Q_,e),new mE(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new mE(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new mE(bE(this.r),bE(this.g),bE(this.b),vE(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:hE,formatHex:hE,formatHex8:function(){return`#${yE(this.r)}${yE(this.g)}${yE(this.b)}${yE(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:gE,toString:gE})),G_(EE,(function(e,t,n,r){return 1===arguments.length?_E(e):new EE(e,t,n,null==r?1:r)}),Y_(V_,{brighter(e){return e=null==e?Q_:Math.pow(Q_,e),new EE(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new EE(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 mE(SE(e>=240?e-240:e+120,o,r),SE(e,o,r),SE(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new EE(CE(this.h),wE(this.s),wE(this.l),vE(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=vE(this.opacity);return`${1===e?"hsl(":"hsla("}${CE(this.h)}, ${100*wE(this.s)}%, ${100*wE(this.l)}%${1===e?")":`, ${e})`}`}}));const kE=Math.PI/180,TE=180/Math.PI,NE=4/29,RE=6/29,AE=3*RE*RE;function OE(e){if(e instanceof LE)return new LE(e.l,e.a,e.b,e.opacity);if(e instanceof zE)return $E(e);e instanceof mE||(e=fE(e));var t,n,r=DE(e.r),o=DE(e.g),i=DE(e.b),l=ME((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=l:(t=ME((.4360747*r+.3850649*o+.1430804*i)/.96422),n=ME((.0139322*r+.0971045*o+.7141733*i)/.82521)),new LE(116*l-16,500*(t-l),200*(l-n),e.opacity)}function LE(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ME(e){return e>.008856451679035631?Math.pow(e,1/3):e/AE+NE}function PE(e){return e>RE?e*e*e:AE*(e-NE)}function IE(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function DE(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function zE(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function $E(e){if(isNaN(e.h))return new LE(e.l,0,0,e.opacity);var t=e.h*kE;return new LE(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}G_(LE,(function(e,t,n,r){return 1===arguments.length?OE(e):new LE(e,t,n,null==r?1:r)}),Y_(V_,{brighter(e){return new LE(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new LE(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 mE(IE(3.1338561*(t=.96422*PE(t))-1.6168667*(e=1*PE(e))-.4906146*(n=.82521*PE(n))),IE(-.9787684*t+1.9161415*e+.033454*n),IE(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),G_(zE,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof zE)return new zE(e.h,e.c,e.l,e.opacity);if(e instanceof LE||(e=OE(e)),0===e.a&&0===e.b)return new zE(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*TE;return new zE(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new zE(e,t,n,null==r?1:r)}),Y_(V_,{brighter(e){return new zE(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new zE(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return $E(this).rgb()}}));var FE,BE=e=>()=>e;function HE(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):BE(isNaN(e)?t:e)}function jE(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 WE(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=UE)):void 0===t&&(t=KE);for(var n,r,o,i,l,a=new VE(e),s=[a];n=s.pop();)if((o=t(n.data))&&(l=(o=Array.from(o)).length))for(n.children=o,i=l-1;i>=0;--i)s.push(r=o[i]=new VE(o[i])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(YE)}function KE(e){return e.children}function UE(e){return Array.isArray(e)?e[1]:null}function GE(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function YE(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function VE(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?HE: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):BE(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=pE(e)).r,(t=pE(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),l=HE(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=l(t),e+""}}return r.gamma=e,r}(1),VE.prototype=WE.prototype={constructor:VE,count:function(){return this.eachAfter(jE)},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,l=[i],a=[],s=-1;i=l.pop();)if(a.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)l.push(n[r]);for(;i=a.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],l=-1;o=i.pop();)if(e.call(t,o,++l,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 WE(this).eachBefore(GE)},[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)}},FE=function(e){
116
97
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
117
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,l,a,s,u,c,d,f=e.length,p=e.search(/[0-9\-\+#]/),m=p>0?e.substring(0,p):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=f-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,f):"";if(n=(t="-"===(e=e.substring(p,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",a=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=a)&&(t=(+t).toFixed(a+1)),c=e[0].split(i),e[0]=c.join(""),(l=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-l;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,f=d.length,y=0;y<f;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<f-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},yH({exports:{}});const RH=e=>`text-toolbar.${null==e?void 0:e.id}`;function AH(){const{element:e,edit:t,model:n,flags:r,theme:o}=J.useContext(ud),i=J.useMemo((()=>(null==e?void 0:e.closest(".qv-inner-object"))||e),[e]),l=J.useMemo((()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?vB:gB}(r)),[r]),a=J.useMemo((()=>(e=>{const t=null==e?void 0:e.getDataColorPickerPalettes();if(t&&(null==t?void 0:t.length)>0)return["#404040",...t[0].colors.filter((e=>"none"!==e))]})(o)),[o]);return Z.createElement(yN,{open:t,anchorEl:i,placement:"top",transition:!0,sx:{zIndex:1},id:RH(n)},(({TransitionProps:e})=>Z.createElement(XN,{...e},Z.createElement(HT,{sx:{borderRadius:1,padding:.25}},Z.createElement(v$,null,Z.createElement(N$,{compact:!0}),Z.createElement(SF,null),Z.createElement(fF,{compact:!0,fonts:l}),Z.createElement(gF,{compact:!0}),Z.createElement(SF,null),Z.createElement(M$,null),Z.createElement(xF,null),Z.createElement(wF,null),Z.createElement(EF,null),Z.createElement(dF,{colorPalette:a}),Z.createElement(SF,null),Z.createElement(C$,{compact:!0}),Z.createElement(SF,null),Z.createElement(z$,null),Z.createElement(SF,null),Z.createElement(bF,null))))))}function OH({interactionState:e}){const{initialData:t,lang:n,flags:r}=J.useContext(ud),o=!(!1===(null==e?void 0:e.edit)&&null!=r&&r.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));J.useEffect((()=>{!function(e){const t=Object.entries(FF[e.toLowerCase()]).reduce(((e,[t,n])=>({...e,[t]:n.value})),{});_I.append(t)}(n)}),[n]);const i=J.useMemo((()=>{if(void 0!==t){return(e=>{var t;let n=mz.nodes;e.nodes&&(n=null===(t=mz.nodes)||void 0===t?void 0:t.concat(e.nodes));const r=e.initialData?e.initialData:void 0;return{...mz,nodes:n,editorState:r}})({initialData:t||void 0,nodes:[...Xz,uB]})}return null}),[t]);return i?Z.createElement("div",{className:"hideScrollBar"},Z.createElement(hz,{initialConfig:i,flags:r},Z.createElement(AH,null),Z.createElement(c$,{showPlaceholder:o}),Z.createElement(s$,null),Z.createElement(pB,null),Z.createElement(dB,null),Z.createElement(hB,null))):null}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".hideScrollBar {\n overflow-y: scroll;\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n height: 100%;\n position: relative;\n}\n\n.hideScrollBar::-webkit-scrollbar {\n display: none;\n}\n");const LH={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",disabledRef:"",grouped:!0,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"}]}}}}},MH={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 PH{constructor(){BF(this,"selectedModelId",void 0),BF(this,"getSelectedModelId",(()=>this.selectedModelId)),BF(this,"snTexts",{}),BF(this,"getSnTexts",(()=>this.snTexts)),BF(this,"sync",(({modelId:e})=>{this.snTexts[e]={propertiesHaveBeenModified:!1}})),BF(this,"setSelectedModelId",(e=>{this.selectedModelId=e})),BF(this,"setPropertiesHaveBeenModified",((e,t)=>{this.snTexts[e]={propertiesHaveBeenModified:t}})),BF(this,"setPropertiesHaveBeenModifiedForSelectedModel",(e=>{this.selectedModelId&&(this.snTexts[this.selectedModelId]={propertiesHaveBeenModified:e})})),BF(this,"destroy",(e=>{delete this.snTexts[e]}))}}function IH(d){const m=new PH,{flags:h}=d;return{qae:{properties:f,data:p(m)},component(){const d=n(),f=(n=>{const r=e((()=>id(n)),[n]);return t((()=>()=>{null==r||r.unmount()}),[r]),r})(d),p=r(),g=o(),v=i(),b=l(),y=a(),[x,_]=s(!1),[E,C]=s(void 0),[w,S]=s(1),k=u(),[T,N]=s(!1),[R,A]=s(null),O=e=>{e||S(0),(e=>{var t;return(null===(t=e.qExtendsId)||void 0===t?void 0:t.length)>0})(p)||(!0===e&&N(!0),_(e),b.emit("njs-internal-edit-change",e))};t((()=>{const e=e=>{oB(g,e)};return b.on("onNodeDestroyed",e),()=>{b.removeListener("onNodeDestroyed",e)}}),[b,g]),t((()=>{2===w&&v.edit&&v.select&&O(!0)}),[w,v]),t((()=>{p&&void 0===E&&(C(p.text||null),A(null==p?void 0:p.text))}),[p,E]),t((()=>{const e=()=>{v.edit&&v.select&&S((e=>e+1))},t=e=>{const t=document.getElementById(RH(g));d.contains(e.target)||null!=t&&t.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(null!=n&&n.contains(e))return!0;for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(e.target)||O(!1)};if(!v.edit||!v.select){var n;O(!1);const e=(null==g?void 0:g.id)&&(null===(n=m.getSnTexts()[g.id])||void 0===n?void 0:n.propertiesHaveBeenModified);(T||e)&&(b.emit("saveDocument"),m.setPropertiesHaveBeenModified(g.id,!1))}return d.addEventListener("click",e),document.addEventListener("mousedown",t),()=>{d.removeEventListener("click",e),document.removeEventListener("mousedown",t)}}),[d,v,g]),t((()=>{(({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:l,lang:a,flags:s,theme:u,interactionState:c})=>{e.render(Z.createElement(Z.StrictMode,null,Z.createElement(ud.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:l,lang:a,flags:s,theme:u}},Z.createElement(OH,{interactionState:c}))))})({rootElement:f,layout:p,model:g,element:d,edit:x,initialData:E,emitter:b,lang:y.language(),flags:h,theme:k,interactionState:v})}),[p,f,g,d,x,d,E,b,h,k,v]),t((()=>{!x&&T&&b.emit("saveDocument")}),[x,b,T]),t((()=>{if(p){const e=p;e.text&&e.text!==R&&(A(e.text),b.emit("reloadData",e.text))}}),[p,R,b]),c((()=>({updateActiveState(e){e?m.setSelectedModelId(g.id):g.id===m.getSelectedModelId()&&m.setSelectedModelId(void 0)}})),[])},ext:{definition:{type:"items",component:"accordion",items:{data:LH,settings:MH}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}}}}export{IH as default};
98
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,l,a,s,u,c,d,f=e.length,p=e.search(/[0-9\-\+#]/),m=p>0?e.substring(0,p):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=f-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,f):"";if(n=(t="-"===(e=e.substring(p,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",a=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=a)&&(t=(+t).toFixed(a+1)),c=e[0].split(i),e[0]=c.join(""),(l=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-l;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,f=d.length,y=0;y<f;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<f-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},FE({exports:{}});const QE=e=>`text-toolbar.${null==e?void 0:e.id}`;function qE(){const{element:e,edit:t,model:n,flags:r,theme:o}=D.useContext(F),i=D.useMemo((()=>(null==e?void 0:e.closest(".qv-inner-object"))||e),[e]),l=D.useMemo((()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?z_:D_}(r)),[r]),a=D.useMemo((()=>(e=>{const t=null==e?void 0:e.getDataColorPickerPalettes();if(t&&(null==t?void 0:t.length)>0)return["#404040",...t[0].colors.filter((e=>"none"!==e))]})(o)),[o]);return z.createElement(Zu,{open:t,anchorEl:i,placement:"top",transition:!0,sx:{zIndex:1},id:QE(n)},(({TransitionProps:e})=>z.createElement(Oc,{...e},z.createElement(_u,{sx:{borderRadius:1,padding:.25}},z.createElement(Uy,null,z.createElement(nx,{compact:!0}),z.createElement(Zx,null),z.createElement(Bx,{compact:!0,fonts:l}),z.createElement(Kx,{compact:!0}),z.createElement(Zx,null),z.createElement(ax,null),z.createElement(Vx,null),z.createElement(Jx,null),z.createElement(qx,null),z.createElement(Fx,{colorPalette:a}),z.createElement(Zx,null),z.createElement(Xy,{compact:!0}),z.createElement(Zx,null),z.createElement(dx,null),z.createElement(Zx,null),z.createElement(Gx,null))))))}function XE({interactionState:e}){const{initialData:t,lang:n,flags:r}=D.useContext(F),o=!(!1===(null==e?void 0:e.edit)&&null!=r&&r.isEnabled("GV_661_SN_TEXT_REMOVE_ICON_ANALYSIS_MODE"));D.useEffect((()=>{!function(e){const t=Object.entries(p_[e.toLowerCase()]).reduce(((e,[t,n])=>({...e,[t]:n.value})),{});rv.append(t)}(n)}),[n]);const i=D.useMemo((()=>{if(void 0!==t){return(e=>{var t;let n=jb.nodes;e.nodes&&(n=null===(t=jb.nodes)||void 0===t?void 0:t.concat(e.nodes));const r=e.initialData?e.initialData:void 0;return{...jb,nodes:n,editorState:r}})({initialData:t||void 0,nodes:[...Sy,N_]})}return null}),[t]);return i?z.createElement("div",{className:"hideScrollBar"},z.createElement(Wb,{initialConfig:i,flags:r},z.createElement(qE,null),z.createElement($y,{showPlaceholder:o}),z.createElement(Dy,null),z.createElement(M_,null),z.createElement(A_,null),z.createElement(I_,null))):null}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".hideScrollBar {\n overflow-y: scroll;\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n height: 100%;\n position: relative;\n}\n\n.hideScrollBar::-webkit-scrollbar {\n display: none;\n}\n");const JE={uses:"data",addTranslation:"Properties.AddData",items:{dimensions:{disableRef:"",show:!1},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",disabledRef:"",grouped:!0,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"}]}}}}},ZE={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 eC{constructor(){m_(this,"selectedModelId",void 0),m_(this,"getSelectedModelId",(()=>this.selectedModelId)),m_(this,"snTexts",{}),m_(this,"getSnTexts",(()=>this.snTexts)),m_(this,"sync",(({modelId:e})=>{this.snTexts[e]={propertiesHaveBeenModified:!1}})),m_(this,"setSelectedModelId",(e=>{this.selectedModelId=e})),m_(this,"setPropertiesHaveBeenModified",((e,t)=>{this.snTexts[e]={propertiesHaveBeenModified:t}})),m_(this,"setPropertiesHaveBeenModifiedForSelectedModel",(e=>{this.selectedModelId&&(this.snTexts[this.selectedModelId]={propertiesHaveBeenModified:e})})),m_(this,"destroy",(e=>{delete this.snTexts[e]}))}}function tC(f){const h=new eC,{flags:g}=f,v=[];return{qae:{properties:p,data:m(h)},component(){const f=n(),p=(n=>{const r=e((()=>I.createRoot(n)),[n]);return t((()=>()=>{null==r||r.unmount()}),[r]),r})(f),m=r(),b=o(),y=i(),x=l(),_=a(),[E,C]=s(!1),[w,S]=s(void 0),[k,T]=s(1),N=u(),[R,A]=s(!1),[O,L]=s(null);c((()=>new Promise((e=>{var t;const n={id:null==m||null===(t=m.qInfo)||void 0===t?void 0:t.qId,resolve:e};v.push(n)}))),[]);const M=e=>{e||T(0),(e=>!!e.qExtendsId)(m)||(!0===e&&A(!0),C(e),x.emit("njs-internal-edit-change",e))};t((()=>{const e=e=>{C_(b,e)};return x.on("onNodeDestroyed",e),()=>{x.removeListener("onNodeDestroyed",e)}}),[x,b]),t((()=>{2===k&&y.edit&&y.select&&M(!0)}),[k,y]),t((()=>{m&&void 0===w&&(S(m.text||null),L(null==m?void 0:m.text))}),[m,w]),t((()=>{const e=()=>{y.edit&&y.select&&T((e=>e+1))},t=e=>{const t=document.getElementById(QE(b));f.contains(e.target)||null!=t&&t.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(null!=n&&n.contains(e))return!0;for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(e.target)||M(!1)};if(!y.edit||!y.select){var n;M(!1);const e=(null==b?void 0:b.id)&&(null===(n=h.getSnTexts()[b.id])||void 0===n?void 0:n.propertiesHaveBeenModified);(R||e)&&(x.emit("saveDocument"),h.setPropertiesHaveBeenModified(b.id,!1))}return f.addEventListener("click",e),document.addEventListener("mousedown",t),()=>{f.removeEventListener("click",e),document.removeEventListener("mousedown",t)}}),[f,y,b]),t((()=>{(({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:l,lang:a,flags:s,theme:u,interactionState:c,readyToPrint:d})=>{e.render(z.createElement(z.StrictMode,null,z.createElement(F.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:l,lang:a,flags:s,theme:u,readyToPrint:d}},z.createElement(XE,{interactionState:c}))))})({rootElement:p,layout:m,model:b,element:f,edit:E,initialData:w,emitter:x,lang:_.language(),flags:g,theme:N,interactionState:y,readyToPrint:v})}),[m,p,b,f,E,f,w,x,g,N,y]),t((()=>{!E&&R&&x.emit("saveDocument")}),[E,x,R]),t((()=>{if(m){const e=m;e.text&&e.text!==O&&(L(e.text),x.emit("reloadData",e.text))}}),[m,O,x]),d((()=>({updateActiveState(e){e?h.setSelectedModelId(b.id):b.id===h.getSelectedModelId()&&h.setSelectedModelId(void 0)}})),[])},ext:{definition:{type:"items",component:"accordion",items:{data:JE,settings:ZE}},exportProperties:null,importProperties:null,support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}}}}export{tC as default};