@nebula.js/sn-text 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -0
- package/api-spec/spec.json +51 -0
- package/core/esm/index.js +117 -0
- package/core/package.json +6 -0
- package/dist/sn-text.esm.js +354 -0
- package/dist/sn-text.esm.js.map +1 -0
- package/dist/sn-text.js +117 -0
- package/dist/sn-text.js.map +1 -0
- package/dist/sn-text.systemjs.js +98 -0
- package/package.json +125 -0
- package/sn-text-ext/dist/sn-text.js +117 -0
- package/sn-text-ext/sn-text.js +1 -0
- package/sn-text-ext/sn-text.qext +10 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @nebula.js/sn-text v0.1.0
|
|
3
|
+
* Copyright (c) 2023 QlikTech International AB
|
|
4
|
+
* Released under the MIT license.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@nebula.js/stardust")):"function"==typeof define&&define.amd?define(["@nebula.js/stardust"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["sn-text"]=t(e.stardust)}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o={exports:{}};!function(e){!function(t,n){e.exports?e.exports=n(t):t.I18n=n(t)}(n,(function(e){var t=e&&e.I18n||{},n=Array.prototype.slice,r=function(e){return("0"+e.toString()).substr(-2)},o=function(e){var t=typeof e;return"function"===t||"object"===t},i=function(e){return"function"===typeof e},l=function(e){return null!=e},a=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},s=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},u=function(e){return!0===e||!1===e},c=function(e){return null===e},d=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))))},f=function(e,t){return i(e)?e(t):e},p=function(e,t){var n,r,o;for(n in t)t.hasOwnProperty(n)&&(r=t[n],"string"==typeof(o=r)||"[object String]"===Object.prototype.toString.call(o)||s(r)||u(r)||a(r)||c(r)?e[n]=r:(null==e[n]&&(e[n]={}),p(e[n],r)));return e},m={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"]},h={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1},g={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},v={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},b=[null,"kb","mb","gb","tb"],y={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};return t.reset=function(){var e;for(e in y)this[e]=y[e]},t.initializeOptions=function(){var e;for(e in y)l(this[e])||(this[e]=y[e])},t.initializeOptions(),t.locales={},t.locales.get=function(e){var n=this[e]||this[t.locale]||this.default;return i(n)&&(n=n(e)),!1===a(n)&&(n=[n]),n},t.locales.default=function(e){var n=[],r=[];return e&&n.push(e),!e&&t.locale&&n.push(t.locale),t.fallbacks&&t.defaultLocale&&n.push(t.defaultLocale),n.forEach((function(e){var n=e.split("-"),o=null,i=null;3===n.length?(o=[n[0],n[1]].join("-"),i=n[0]):2===n.length&&(o=n[0]),-1===r.indexOf(e)&&r.push(e),t.fallbacks&&[o,i].forEach((function(t){null!=t&&t!==e&&-1===r.indexOf(t)&&r.push(t)}))})),n.length||n.push("en"),r},t.pluralization={},t.pluralization.get=function(e){return this[e]||this[t.locale]||this.default},t.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one"];default:return["other"]}},t.currentLocale=function(){return this.locale||this.defaultLocale},t.isSet=l,t.lookup=function(e,t){t=t||{};var n,r,o,i,a=this.locales.get(t.locale).slice();for(o=this.getFullScope(e,t);a.length;)if(n=a.shift(),r=o.split(t.separator||this.defaultSeparator),i=this.translations[n]){for(;r.length&&null!=(i=i[r.shift()]););if(null!=i)return i}if(l(t.defaultValue))return f(t.defaultValue,e)},t.pluralizationLookupWithoutFallback=function(e,t,n){var r,i,a=this.pluralization.get(t)(e);if(n&&o(n))for(;a.length;)if(r=a.shift(),l(n[r])){i=n[r];break}return i},t.pluralizationLookup=function(e,t,n){n=n||{};var r,i,a,s,u=this.locales.get(n.locale).slice();for(t=this.getFullScope(t,n);u.length;)if(r=u.shift(),i=t.split(n.separator||this.defaultSeparator),a=this.translations[r]){for(;i.length&&(a=a[i.shift()],o(a));)0===i.length&&(s=this.pluralizationLookupWithoutFallback(e,r,a));if(null!=s)break}return null==s&&l(n.defaultValue)&&(s=o(n.defaultValue)?this.pluralizationLookupWithoutFallback(e,n.locale,n.defaultValue):n.defaultValue,a=n.defaultValue),{message:s,translations:a}},t.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:m.meridian},t.prepareOptions=function(){for(var e,t=n.call(arguments),r={};t.length;)if("object"==typeof(e=t.shift()))for(var o in e)e.hasOwnProperty(o)&&(l(r[o])||(r[o]=e[o]));return r},t.createTranslationOptions=function(e,t){var n=[{scope:e}];return l(t.defaults)&&(n=n.concat(t.defaults)),l(t.defaultValue)&&n.push({message:t.defaultValue}),n},t.translate=function(e,t){t=t||{};var n,r=this.createTranslationOptions(e,t),i=e,s=this.prepareOptions(t);return delete s.defaultValue,r.some((function(t){if(l(t.scope)?(i=t.scope,n=this.lookup(i,s)):l(t.message)&&(n=f(t.message,e)),null!=n)return!0}),this)?("string"==typeof n?n=this.interpolate(n,t):a(n)?n=n.map((function(e){return"string"==typeof e?this.interpolate(e,t):e}),this):o(n)&&l(t.count)&&(n=this.pluralize(t.count,i,t)),n):this.missingTranslation(e,t)},t.interpolate=function(e,t){if(null==e)return e;t=t||{};var n,r,o,i,a=e.match(this.placeholder);if(!a)return e;for(;a.length;)o=(n=a.shift()).replace(this.placeholder,"$1"),r=l(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,"$")},t.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))},t.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]'},t.missingPlaceholder=function(e,t,n){return"[missing "+e+" value]"},t.nullPlaceholder=function(){return t.missingPlaceholder.apply(t,arguments)},t.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),h);var n,r,o=e<0,i=function(e,t){return d("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)},t.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format",t),this.lookup("number.format",t),g),this.toNumber(e,t)},t.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)}},t.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},t.strftime=function(e,n,o){o=this.lookup("date",o);var i=t.meridian();if(o||(o={}),o=this.prepareOptions(o,m),isNaN(e.getTime()))throw new Error("I18n.strftime() requires a valid date object, but received an invalid date.");var l=e.getDay(),a=e.getDate(),s=e.getFullYear(),u=e.getMonth()+1,c=e.getHours(),d=c,f=c>11?1:0,p=e.getSeconds(),h=e.getMinutes(),g=e.getTimezoneOffset(),v=Math.floor(Math.abs(g/60)),b=Math.abs(g)-60*v,y=(g>0?"-":"+")+(v.toString().length<2?"0"+v:v)+(b.toString().length<2?"0"+b:b);return d>12?d-=12:0===d&&(d=12),n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n.replace("%a",o.abbr_day_names[l])).replace("%A",o.day_names[l])).replace("%b",o.abbr_month_names[u])).replace("%B",o.month_names[u])).replace("%d",r(a))).replace("%e",a)).replace("%-d",a)).replace("%H",r(c))).replace("%-H",c)).replace("%k",c)).replace("%I",r(d))).replace("%-I",d)).replace("%l",d)).replace("%m",r(u))).replace("%-m",u)).replace("%M",r(h))).replace("%-M",h)).replace("%p",i[f])).replace("%P",i[f].toLowerCase())).replace("%S",r(p))).replace("%-S",p)).replace("%w",l)).replace("%y",r(s))).replace("%-y",r(s).replace(/^0+/,""))).replace("%Y",s)).replace("%z",y)).replace("%Z",y)},t.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},t.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format",t),this.lookup("number.format",t),v),this.toNumber(e,t)},t.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."+b[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)},t.getFullScope=function(e,t){return t=t||{},a(e)&&(e=e.join(t.separator||this.defaultSeparator)),t.scope&&(e=[t.scope,e].join(t.separator||this.defaultSeparator)),e},t.extend=function(e,t){return void 0===e&&void 0===t?{}:p(e,t)},t.t=t.translate.bind(t),t.l=t.localize.bind(t),t.p=t.pluralize.bind(t),t}))}(o);var i=r(o.exports),l={exports:{}},a={},s=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.iterator;var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function E(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||x}function C(){}function k(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||x}E.prototype.isReactComponent={},E.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")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=E.prototype;var S=k.prototype=new C;S.constructor=k,_(S,E.prototype),S.isPureReactComponent=!0;var T=Array.isArray,N=Object.prototype.hasOwnProperty,R={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function O(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)N.call(t,r)&&!A.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return{$$typeof:s,type:e,key:i,ref:l,props:o,_owner:R.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===s}var L=/\/+/g;function P(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 I(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 s:case u:l=!0}}if(l)return o=o(l=e),e=""===r?"."+P(l,0):r,T(o)?(n="",null!=e&&(n=e.replace(L,"$&/")+"/"),I(o,t,n,"",(function(e){return e}))):null!=o&&(M(o)&&(o=function(e,t){return{$$typeof:s,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(L,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",T(e))for(var a=0;a<e.length;a++){var c=r+P(i=e[a],a);l+=I(i,t,n,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),a=0;!(i=e.next()).done;)l+=I(i=i.value,t,n,c=r+P(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 D(e,t,n){if(null==e)return e;var r=[],o=0;return I(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function $(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 z={current:null},F={transition:null},B={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:F,ReactCurrentOwner:R};a.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!M(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},a.Component=E,a.Fragment=c,a.Profiler=f,a.PureComponent=k,a.StrictMode=d,a.Suspense=g,a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,a.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=_({},e.props),o=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=R.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)N.call(t,u)&&!A.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==a?a[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:s,type:e.type,key:o,ref:i,props:r,_owner:l}},a.createContext=function(e){return(e={$$typeof:m,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:p,_context:e},e.Consumer=e},a.createElement=O,a.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},a.createRef=function(){return{current:null}},a.forwardRef=function(e){return{$$typeof:h,render:e}},a.isValidElement=M,a.lazy=function(e){return{$$typeof:b,_payload:{_status:-1,_result:e},_init:$}},a.memo=function(e,t){return{$$typeof:v,type:e,compare:void 0===t?null:t}},a.startTransition=function(e){var t=F.transition;F.transition={};try{e()}finally{F.transition=t}},a.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},a.useCallback=function(e,t){return z.current.useCallback(e,t)},a.useContext=function(e){return z.current.useContext(e)},a.useDebugValue=function(){},a.useDeferredValue=function(e){return z.current.useDeferredValue(e)},a.useEffect=function(e,t){return z.current.useEffect(e,t)},a.useId=function(){return z.current.useId()},a.useImperativeHandle=function(e,t,n){return z.current.useImperativeHandle(e,t,n)},a.useInsertionEffect=function(e,t){return z.current.useInsertionEffect(e,t)},a.useLayoutEffect=function(e,t){return z.current.useLayoutEffect(e,t)},a.useMemo=function(e,t){return z.current.useMemo(e,t)},a.useReducer=function(e,t,n){return z.current.useReducer(e,t,n)},a.useRef=function(e){return z.current.useRef(e)},a.useState=function(e){return z.current.useState(e)},a.useSyncExternalStore=function(e,t,n){return z.current.useSyncExternalStore(e,t,n)},a.useTransition=function(){return z.current.useTransition()},a.version="18.2.0",l.exports=a;var H=l.exports,W=r(H),j=t({__proto__:null,default:W},[H]),K=function(){return K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},K.apply(this,arguments)};var U=[{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"}],Y="en-US",G=["zh-cn","zh-tw","qps-ploc"],V=function(e){if(e){"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");var t=e.toLowerCase();if(G.includes(e.toLocaleLowerCase()))return U.find((function(e){return e.long.toLowerCase()===t}));var n=t.split("-")[0];return U.find((function(e){var r=e.short;return r.toLowerCase()===n||r.toLowerCase()===t}))}},Q=function(e){var t=V(e);return t?t.short:(console.warn("Language '".concat(e,"' not supported, falling back to '").concat("en","'")),"en")},X=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return null===(t=e.match(/\{(\d+)\}/g))||void 0===t?void 0:t.length,e.replace(/\{(\d+)\}/g,(function(e,t){return void 0!==n[t]?String(n[t]):e}))};const q=(e,t)=>t?"other":1==e?"one":"other",J=(e,t)=>t?"other":0==e||1==e?"one":"other",Z=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",ee=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},te=(e,t)=>"other",ne=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",re=te,oe=q,ie=J,le=Z,ae=q,se=q,ue=ee,ce=q,de=q,fe=q,pe=J,me=te,he=te,ge=q,ve=q,be=q,ye=q,xe=q,_e=ee,we=Z,Ee=q,Ce=te,ke=q,Se=q,Te=q,Ne=q,Re=ee,Ae=q,Oe=Z,Me=ee,Le=q,Pe=q,Ie=ee,De=ee,$e=q,ze=J,Fe=q,Be=q,He=ee,We=te,je=te,Ke=te,Ue=ee,Ye=ne,Ge=te,Ve=te,Qe=q,Xe=ee,qe=q,Je=te,Ze=te,et=q,tt=q,nt=te,rt=te,ot=q,it=q,lt=te,at=Z,st=te,ut=q,ct=q,dt=q,ft=q,pt=q,mt=q,ht=te,gt=J,vt=q,bt=J,yt=q,xt=q,_t=q,wt=te,Et=q,Ct=ne,kt=q,St=q,Tt=ee,Nt=q,Rt=q,At=q,Ot=te,Mt=q,Lt=J,Pt=q,It=q,Dt=q,$t=q,zt=te,Ft=J,Bt=q,Ht=Z,Wt=q,jt=ee,Kt=q,Ut=q,Yt=te,Gt=q,Vt=te,Qt=q,Xt=ne,qt=q,Jt=q,Zt=ne,en=q,tn=te,nn=te,rn=ne,on=ne,ln=ne,an=ne,sn=ne,un=q,cn=q,dn=q,fn=q,pn=q,mn=te,hn=ee,gn=q,vn=q,bn=q,yn=q,xn=te,_n=J,wn=q,En=q,Cn=te,kn=q,Sn=q,Tn=q,Nn=ee,Rn=q,An=q,On=q,Mn=q,Ln=J,Pn=q,In=te,Dn=q,$n=q,zn=ee,Fn=te,Bn=te,Hn=te,Wn=Z;var jn=Object.freeze({__proto__:null,_in:re,af:oe,ak:ie,am:le,an:ae,ar:(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"},ars:(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"},as:(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",asa:se,ast:ue,az:(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"},be:(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"},bem:ce,bez:de,bg:fe,bho:pe,bm:me,bn:(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",bo:he,br:(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"},brx:ge,bs:(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"},ca:(e,t)=>{const n=!String(e).split(".")[1];return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&n?"one":"other"},ce:ve,ceb:(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"},cgg:be,chr:ye,ckb:xe,cs:(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"},cy:(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",da:(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"},de:_e,doi:we,dsb:(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"},dv:Ee,dz:Ce,ee:ke,el:Se,en:(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"},eo:Te,es:Ne,et:Re,eu:Ae,fa:Oe,ff:(e,t)=>t?"other":e>=0&&e<2?"one":"other",fi:Me,fil:(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"},fo:Le,fr:(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t?1==e?"one":"other":e>=0&&e<2?"one":0!=r&&0==i&&o?"many":"other"},fur:Pe,fy:Ie,ga:(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"},gd:(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"},gl:De,gsw:$e,gu:(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",guw:ze,gv:(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"},ha:Fe,haw:Be,he:(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,l=i&&n[0].slice(-1);return t?"other":1==e&&o?"one":2==r&&o?"two":o&&(e<0||e>10)&&i&&0==l?"many":"other"},hi:(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",hr:(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"},hsb:(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"},hu:(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",hy:(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",ia:He,id:We,ig:je,ii:Ke,io:Ue,is:(e,t)=>{const n=String(e).split("."),r=n[0],o=Number(n[0])==e,i=r.slice(-1),l=r.slice(-2);return t?"other":o&&1==i&&11!=l||!o?"one":"other"},it:(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"},iu:Ye,iw:(e,t)=>{const n=String(e).split("."),r=n[0],o=!n[1],i=Number(n[0])==e,l=i&&n[0].slice(-1);return t?"other":1==e&&o?"one":2==r&&o?"two":o&&(e<0||e>10)&&i&&0==l?"many":"other"},ja:Ge,jbo:Ve,jgo:Qe,ji:Xe,jmc:qe,jv:Je,jw:Ze,ka:(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"},kab:(e,t)=>t?"other":e>=0&&e<2?"one":"other",kaj:et,kcg:tt,kde:nt,kea:rt,kk:(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"},kkj:ot,kl:it,km:lt,kn:at,ko:st,ks:ut,ksb:ct,ksh:(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",ku:dt,kw:(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"},ky:ft,lag:(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},lb:pt,lg:mt,lij:(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"},lkt:ht,ln:gt,lo:(e,t)=>t&&1==e?"one":"other",lt:(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"},lv:(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"},mas:vt,mg:bt,mgo:yt,mk:(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"},ml:xt,mn:_t,mo:(e,t)=>{const n=String(e).split("."),r=!n[1],o=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||o>=2&&o<=19?"few":"other"},mr:(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",ms:(e,t)=>t&&1==e?"one":"other",mt:(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-2);return t?"other":1==e?"one":0==e||r>=2&&r<=10?"few":r>=11&&r<=19?"many":"other"},my:wt,nah:Et,naq:Ct,nb:kt,nd:St,ne:(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"},nl:Tt,nn:Nt,nnh:Rt,no:At,nqo:Ot,nr:Mt,nso:Lt,ny:Pt,nyn:It,om:Dt,or:(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"},os:$t,osa:zt,pa:Ft,pap:Bt,pcm:Ht,pl:(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"},prg:(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"},ps:Wt,pt:(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==n||1==n?"one":"other"},pt_PT:jt,rm:Kt,ro:(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||o>=2&&o<=19?"few":"other"},rof:Ut,root:Yt,ru:(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"},rwk:Gt,sah:Vt,saq:Qt,sat:Xt,sc:(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"},scn:(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"},sd:qt,sdh:Jt,se:Zt,seh:en,ses:tn,sg:nn,sh:(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"},shi:(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"},si:(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"},sk:(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"},sl:(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"},sma:rn,smi:on,smj:ln,smn:an,sms:sn,sn:un,so:cn,sq:(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"},sr:(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"},ss:dn,ssy:fn,st:pn,su:mn,sv:(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"},sw:hn,syr:gn,ta:vn,te:bn,teo:yn,th:xn,ti:_n,tig:wn,tk:(e,t)=>{const n=String(e).split("."),r=Number(n[0])==e&&n[0].slice(-1);return t?6==r||9==r||10==e?"few":"other":1==e?"one":"other"},tl:(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"},tn:En,to:Cn,tr:kn,ts:Sn,tzm:(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"},ug:Tn,uk:(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"},ur:Nn,uz:Rn,ve:An,vi:(e,t)=>t&&1==e?"one":"other",vo:On,vun:Mn,wa:Ln,wae:Pn,wo:In,xh:Dn,xog:$n,yi:zn,yo:Fn,yue:Bn,zh:Hn,zu:Wn}),Kn=function(){function e(){}return e.configure=function(t,n){var r,o,l;void 0===n&&(n=Y),e.translations=t,e.language=(l=V(o=n))?l.long:(console.warn("Language '".concat(o,"' not supported, falling back to '").concat(Y,"'")),Y),e.languageShort=Q(n),function(e){var t=Q(e);document.documentElement.getAttribute("lang")||document.documentElement.setAttribute("lang",t)}(e.language),e.onTranslationsChangeListeners.forEach((function(e){return e()})),e.i18nProvider=i,i.missingTranslation=function(e){return e},i.defaultSeparator=null,i.locale=e.language,i.translations=((r={})[e.language]=e.translationsPlurals,r);var a=e.languageShort.split("-")[0];i.pluralization[e.language]=function(e){try{var t=jn[a](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"]}}}},e.getWithKeys=function(t,n){var r,o=null!==(r=e.translations[t])&&void 0!==r?r:t;return n&&Object.keys(n).length>0&&(o=function(e,t){return e.replace(/(\{)(\w+)(\})/g,(function(e,n,r){var o;return t[r],null!==(o=t[r])&&void 0!==o?o:e}))}(o,n)),o},e.getPlural=function(t,n,r){return e.i18nProvider.t(t,K({count:n},r))},e.append=function(t){Object.assign(e.translations,t),e.onTranslationsChangeListeners.forEach((function(e){return e()}))},e.appendPlurals=function(t){Object.assign(e.translationsPlurals,t),e.onTranslationsChangeListeners.forEach((function(e){return e()}))},e.onTranslationsChange=function(t){return e.onTranslationsChangeListeners.push(t),function(){e.onTranslationsChangeListeners.splice(e.onTranslationsChangeListeners.indexOf(t))}},e.translations={},e.translationsPlurals={},e.onTranslationsChangeListeners=[],e.get=function(t){for(var n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i,l=(i=r,Array.isArray(i[0])?i[0]:i),a=null!==(n=e.translations[t])&&void 0!==n?n:t;return l.length>0&&(a=X.apply(void 0,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([a],l,!1))),a},e}();function Un(){var e=H.useState(0),t=e[0],n=e[1];return H.useEffect((function(){var e=Kn.onTranslationsChange((function(){n(t+1)}));return function(){e()}}),[]),Kn.get}const Yn={version:"0.1.0",title:"",subtitle:"",footnote:"",showTitles:!1,text:null,qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]}};var Gn={targets:[{path:"/qHyperCubeDef",measures:{min:0,max:10},dimensions:{min:0,max:0}}]},Vn={exports:{}},Qn={},Xn={exports:{}},qn={};
|
|
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,M(_);else{var t=n(u);null!==t&&L(x,t.startTime-e)}}function _(t,o){m=!1,h&&(h=!1,v(k),k=-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&&L(x,g.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,E=!1,C=null,k=-1,S=5,T=-1;function N(){return!(e.unstable_now()-T<S)}function R(){if(null!==C){var t=e.unstable_now();T=t;var n=!0;try{n=C(!0,t)}finally{n?w():(E=!1,C=null)}}else E=!1}if("function"==typeof b)w=function(){b(R)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,O=A.port2;A.port1.onmessage=R,w=function(){O.postMessage(null)}}else w=function(){g(R,0)};function M(e){C=e,E||(E=!0,w())}function L(t,n){k=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,M(_))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=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(k),k=-1):h=!0,L(x,i-l))):(r.sortIndex=a,t(s,r),m||p||(m=!0,M(_))),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}}}}(qn),Xn.exports=qn;var Jn=Xn.exports,Zn=H,er=Jn;
|
|
18
|
+
/**
|
|
19
|
+
* @license React
|
|
20
|
+
* react-dom.production.min.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/function tr(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 nr=new Set,rr={};function or(e,t){ir(e,t),ir(e+"Capture",t)}function ir(e,t){for(rr[e]=t,e=0;e<t.length;e++)nr.add(t[e])}var lr=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ar=Object.prototype.hasOwnProperty,sr=/^[: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]*$/,ur={},cr={};function dr(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 fr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){fr[e]=new dr(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];fr[t]=new dr(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){fr[e]=new dr(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){fr[e]=new dr(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){fr[e]=new dr(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){fr[e]=new dr(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){fr[e]=new dr(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){fr[e]=new dr(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){fr[e]=new dr(e,5,!1,e.toLowerCase(),null,!1,!1)}));var pr=/[\-:]([a-z])/g;function mr(e){return e[1].toUpperCase()}function hr(e,t,n,r){var o=fr.hasOwnProperty(t)?fr[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!!ar.call(cr,e)||!ar.call(ur,e)&&(sr.test(e)?cr[e]=!0:(ur[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(pr,mr);fr[t]=new dr(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(pr,mr);fr[t]=new dr(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(pr,mr);fr[t]=new dr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){fr[e]=new dr(e,1,!1,e.toLowerCase(),null,!1,!1)})),fr.xlinkHref=new dr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){fr[e]=new dr(e,1,!1,e.toLowerCase(),null,!0,!0)}));var gr=Zn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vr=Symbol.for("react.element"),br=Symbol.for("react.portal"),yr=Symbol.for("react.fragment"),xr=Symbol.for("react.strict_mode"),_r=Symbol.for("react.profiler"),wr=Symbol.for("react.provider"),Er=Symbol.for("react.context"),Cr=Symbol.for("react.forward_ref"),kr=Symbol.for("react.suspense"),Sr=Symbol.for("react.suspense_list"),Tr=Symbol.for("react.memo"),Nr=Symbol.for("react.lazy"),Rr=Symbol.for("react.offscreen"),Ar=Symbol.iterator;function Or(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ar&&e[Ar]||e["@@iterator"])?e:null}var Mr,Lr=Object.assign;function Pr(e){if(void 0===Mr)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Mr=t&&t[1]||""}return"\n"+Mr+e}var Ir=!1;function Dr(e,t){if(!e||Ir)return"";Ir=!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{Ir=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pr(e):""}function $r(e){switch(e.tag){case 5:return Pr(e.type);case 16:return Pr("Lazy");case 13:return Pr("Suspense");case 19:return Pr("SuspenseList");case 0:case 2:case 15:return e=Dr(e.type,!1);case 11:return e=Dr(e.type.render,!1);case 1:return e=Dr(e.type,!0);default:return""}}function zr(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 yr:return"Fragment";case br:return"Portal";case _r:return"Profiler";case xr:return"StrictMode";case kr:return"Suspense";case Sr:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Er:return(e.displayName||"Context")+".Consumer";case wr:return(e._context.displayName||"Context")+".Provider";case Cr:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Tr:return null!==(t=e.displayName||null)?t:zr(e.type)||"Memo";case Nr:t=e._payload,e=e._init;try{return zr(e(t))}catch(e){}}return null}function Fr(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 zr(t);case 8:return t===xr?"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 Br(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Hr(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Wr(e){e._valueTracker||(e._valueTracker=function(e){var t=Hr(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 jr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Hr(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Kr(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 Ur(e,t){var n=t.checked;return Lr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Yr(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Br(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 Gr(e,t){null!=(t=t.checked)&&hr(e,"checked",t,!1)}function Vr(e,t){Gr(e,t);var n=Br(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")?Xr(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xr(e,t.type,Br(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Qr(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 Xr(e,t,n){"number"===t&&Kr(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qr=Array.isArray;function Jr(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=""+Br(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 Zr(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(tr(91));return Lr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eo(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(tr(92));if(qr(n)){if(1<n.length)throw Error(tr(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Br(n)}}function to(e,t){var n=Br(t.value),r=Br(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 no(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ro(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 oo(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ro(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var io,lo=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((io=io||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=io.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ao(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 so={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},uo=["Webkit","ms","Moz","O"];function co(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||so.hasOwnProperty(e)&&so[e]?(""+t).trim():t+"px"}function fo(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=co(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(so).forEach((function(e){uo.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),so[t]=so[e]}))}));var po=Lr({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 mo(e,t){if(t){if(po[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(tr(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(tr(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(tr(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(tr(62))}}function ho(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 go=null;function vo(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var bo=null,yo=null,xo=null;function _o(e){if(e=ms(e)){if("function"!=typeof bo)throw Error(tr(280));var t=e.stateNode;t&&(t=gs(t),bo(e.stateNode,e.type,t))}}function wo(e){yo?xo?xo.push(e):xo=[e]:yo=e}function Eo(){if(yo){var e=yo,t=xo;if(xo=yo=null,_o(e),t)for(e=0;e<t.length;e++)_o(t[e])}}function Co(e,t){return e(t)}function ko(){}var So=!1;function To(e,t,n){if(So)return e(t,n);So=!0;try{return Co(e,t,n)}finally{So=!1,(null!==yo||null!==xo)&&(ko(),Eo())}}function No(e,t){var n=e.stateNode;if(null===n)return null;var r=gs(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(tr(231,t,typeof n));return n}var Ro=!1;if(lr)try{var Ao={};Object.defineProperty(Ao,"passive",{get:function(){Ro=!0}}),window.addEventListener("test",Ao,Ao),window.removeEventListener("test",Ao,Ao)}catch(N$){Ro=!1}function Oo(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 Mo=!1,Lo=null,Po=!1,Io=null,Do={onError:function(e){Mo=!0,Lo=e}};function $o(e,t,n,r,o,i,l,a,s){Mo=!1,Lo=null,Oo.apply(Do,arguments)}function zo(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fo(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 Bo(e){if(zo(e)!==e)throw Error(tr(188))}function Ho(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=zo(e)))throw Error(tr(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 Bo(o),e;if(i===r)return Bo(o),t;i=i.sibling}throw Error(tr(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(tr(189))}}if(n.alternate!==r)throw Error(tr(190))}if(3!==n.tag)throw Error(tr(188));return n.stateNode.current===n?e:t}(e),null!==e?Wo(e):null}function Wo(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Wo(e);if(null!==t)return t;e=e.sibling}return null}var jo=er.unstable_scheduleCallback,Ko=er.unstable_cancelCallback,Uo=er.unstable_shouldYield,Yo=er.unstable_requestPaint,Go=er.unstable_now,Vo=er.unstable_getCurrentPriorityLevel,Qo=er.unstable_ImmediatePriority,Xo=er.unstable_UserBlockingPriority,qo=er.unstable_NormalPriority,Jo=er.unstable_LowPriority,Zo=er.unstable_IdlePriority,ei=null,ti=null;var ni=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ri(e)/oi|0)|0},ri=Math.log,oi=Math.LN2;var ii=64,li=4194304;function ai(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 si(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=ai(a):0!==(i&=l)&&(r=ai(i))}else 0!==(l=n&~o)?r=ai(l):0!==i&&(r=ai(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-ni(t)),r|=e[n],t&=~o;return r}function ui(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 ci(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function di(){var e=ii;return 0==(4194240&(ii<<=1))&&(ii=64),e}function fi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pi(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ni(t)]=n}function mi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ni(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var hi=0;function gi(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var vi,bi,yi,xi,_i,wi=!1,Ei=[],Ci=null,ki=null,Si=null,Ti=new Map,Ni=new Map,Ri=[],Ai="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 Oi(e,t){switch(e){case"focusin":case"focusout":Ci=null;break;case"dragenter":case"dragleave":ki=null;break;case"mouseover":case"mouseout":Si=null;break;case"pointerover":case"pointerout":Ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ni.delete(t.pointerId)}}function Mi(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=ms(t))&&bi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Li(e){var t=ps(e.target);if(null!==t){var n=zo(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fo(n)))return e.blockedOn=t,void _i(e.priority,(function(){yi(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 Pi(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ui(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ms(n))&&bi(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);go=r,n.target.dispatchEvent(r),go=null,t.shift()}return!0}function Ii(e,t,n){Pi(e)&&n.delete(t)}function Di(){wi=!1,null!==Ci&&Pi(Ci)&&(Ci=null),null!==ki&&Pi(ki)&&(ki=null),null!==Si&&Pi(Si)&&(Si=null),Ti.forEach(Ii),Ni.forEach(Ii)}function $i(e,t){e.blockedOn===t&&(e.blockedOn=null,wi||(wi=!0,er.unstable_scheduleCallback(er.unstable_NormalPriority,Di)))}function zi(e){function t(t){return $i(t,e)}if(0<Ei.length){$i(Ei[0],e);for(var n=1;n<Ei.length;n++){var r=Ei[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ci&&$i(Ci,e),null!==ki&&$i(ki,e),null!==Si&&$i(Si,e),Ti.forEach(t),Ni.forEach(t),n=0;n<Ri.length;n++)(r=Ri[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ri.length&&null===(n=Ri[0]).blockedOn;)Li(n),null===n.blockedOn&&Ri.shift()}var Fi=gr.ReactCurrentBatchConfig,Bi=!0;function Hi(e,t,n,r){var o=hi,i=Fi.transition;Fi.transition=null;try{hi=1,ji(e,t,n,r)}finally{hi=o,Fi.transition=i}}function Wi(e,t,n,r){var o=hi,i=Fi.transition;Fi.transition=null;try{hi=4,ji(e,t,n,r)}finally{hi=o,Fi.transition=i}}function ji(e,t,n,r){if(Bi){var o=Ui(e,t,n,r);if(null===o)Fa(e,t,r,Ki,n),Oi(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ci=Mi(Ci,e,t,n,r,o),!0;case"dragenter":return ki=Mi(ki,e,t,n,r,o),!0;case"mouseover":return Si=Mi(Si,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ti.set(i,Mi(Ti.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Ni.set(i,Mi(Ni.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Oi(e,r),4&t&&-1<Ai.indexOf(e)){for(;null!==o;){var i=ms(o);if(null!==i&&vi(i),null===(i=Ui(e,t,n,r))&&Fa(e,t,r,Ki,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Fa(e,t,r,null,n)}}var Ki=null;function Ui(e,t,n,r){if(Ki=null,null!==(e=ps(e=vo(r))))if(null===(t=zo(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fo(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 Ki=e,null}function Yi(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(Vo()){case Qo:return 1;case Xo:return 4;case qo:case Jo:return 16;case Zo:return 536870912;default:return 16}default:return 16}}var Gi=null,Vi=null,Qi=null;function Xi(){if(Qi)return Qi;var e,t,n=Vi,r=n.length,o="value"in Gi?Gi.value:Gi.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 Qi=o.slice(e,1<t?1-t:void 0)}function qi(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 Ji(){return!0}function Zi(){return!1}function el(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)?Ji:Zi,this.isPropagationStopped=Zi,this}return Lr(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=Ji)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ji)},persist:function(){},isPersistent:Ji}),t}var tl,nl,rl,ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},il=el(ol),ll=Lr({},ol,{view:0,detail:0}),al=el(ll),sl=Lr({},ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xl,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!==rl&&(rl&&"mousemove"===e.type?(tl=e.screenX-rl.screenX,nl=e.screenY-rl.screenY):nl=tl=0,rl=e),tl)},movementY:function(e){return"movementY"in e?e.movementY:nl}}),ul=el(sl),cl=el(Lr({},sl,{dataTransfer:0})),dl=el(Lr({},ll,{relatedTarget:0})),fl=el(Lr({},ol,{animationName:0,elapsedTime:0,pseudoElement:0})),pl=Lr({},ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ml=el(pl),hl=el(Lr({},ol,{data:0})),gl={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vl={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"},bl={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yl(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=bl[e])&&!!t[e]}function xl(){return yl}var _l=Lr({},ll,{key:function(e){if(e.key){var t=gl[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=qi(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?vl[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xl,charCode:function(e){return"keypress"===e.type?qi(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?qi(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),wl=el(_l),El=el(Lr({},sl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cl=el(Lr({},ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xl})),kl=el(Lr({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sl=Lr({},sl,{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}),Tl=el(Sl),Nl=[9,13,27,32],Rl=lr&&"CompositionEvent"in window,Al=null;lr&&"documentMode"in document&&(Al=document.documentMode);var Ol=lr&&"TextEvent"in window&&!Al,Ml=lr&&(!Rl||Al&&8<Al&&11>=Al),Ll=String.fromCharCode(32),Pl=!1;function Il(e,t){switch(e){case"keyup":return-1!==Nl.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dl(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $l=!1;var zl={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 Fl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zl[e.type]:"textarea"===t}function Bl(e,t,n,r){wo(r),0<(t=Ha(t,"onChange")).length&&(n=new il("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hl=null,Wl=null;function jl(e){La(e,0)}function Kl(e){if(jr(hs(e)))return e}function Ul(e,t){if("change"===e)return t}var Yl=!1;if(lr){var Gl;if(lr){var Vl="oninput"in document;if(!Vl){var Ql=document.createElement("div");Ql.setAttribute("oninput","return;"),Vl="function"==typeof Ql.oninput}Gl=Vl}else Gl=!1;Yl=Gl&&(!document.documentMode||9<document.documentMode)}function Xl(){Hl&&(Hl.detachEvent("onpropertychange",ql),Wl=Hl=null)}function ql(e){if("value"===e.propertyName&&Kl(Wl)){var t=[];Bl(t,Wl,e,vo(e)),To(jl,t)}}function Jl(e,t,n){"focusin"===e?(Xl(),Wl=n,(Hl=t).attachEvent("onpropertychange",ql)):"focusout"===e&&Xl()}function Zl(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kl(Wl)}function ea(e,t){if("click"===e)return Kl(t)}function ta(e,t){if("input"===e||"change"===e)return Kl(t)}var na="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ra(e,t){if(na(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(!ar.call(t,o)||!na(e[o],t[o]))return!1}return!0}function oa(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ia(e,t){var n,r=oa(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=oa(r)}}function la(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?la(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function aa(){for(var e=window,t=Kr();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Kr((e=t.contentWindow).document)}return t}function sa(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 ua(e){var t=aa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&la(n.ownerDocument.documentElement,n)){if(null!==r&&sa(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=ia(n,i);var l=ia(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 ca=lr&&"documentMode"in document&&11>=document.documentMode,da=null,fa=null,pa=null,ma=!1;function ha(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ma||null==da||da!==Kr(r)||("selectionStart"in(r=da)&&sa(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},pa&&ra(pa,r)||(pa=r,0<(r=Ha(fa,"onSelect")).length&&(t=new il("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=da)))}function ga(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var va={animationend:ga("Animation","AnimationEnd"),animationiteration:ga("Animation","AnimationIteration"),animationstart:ga("Animation","AnimationStart"),transitionend:ga("Transition","TransitionEnd")},ba={},ya={};function xa(e){if(ba[e])return ba[e];if(!va[e])return e;var t,n=va[e];for(t in n)if(n.hasOwnProperty(t)&&t in ya)return ba[e]=n[t];return e}lr&&(ya=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);var _a=xa("animationend"),wa=xa("animationiteration"),Ea=xa("animationstart"),Ca=xa("transitionend"),ka=new Map,Sa="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 Ta(e,t){ka.set(e,t),or(t,[e])}for(var Na=0;Na<Sa.length;Na++){var Ra=Sa[Na];Ta(Ra.toLowerCase(),"on"+(Ra[0].toUpperCase()+Ra.slice(1)))}Ta(_a,"onAnimationEnd"),Ta(wa,"onAnimationIteration"),Ta(Ea,"onAnimationStart"),Ta("dblclick","onDoubleClick"),Ta("focusin","onFocus"),Ta("focusout","onBlur"),Ta(Ca,"onTransitionEnd"),ir("onMouseEnter",["mouseout","mouseover"]),ir("onMouseLeave",["mouseout","mouseover"]),ir("onPointerEnter",["pointerout","pointerover"]),ir("onPointerLeave",["pointerout","pointerover"]),or("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),or("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),or("onBeforeInput",["compositionend","keypress","textInput","paste"]),or("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),or("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),or("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Aa="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(" "),Oa=new Set("cancel close invalid load scroll toggle".split(" ").concat(Aa));function Ma(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,a,s){if($o.apply(this,arguments),Mo){if(!Mo)throw Error(tr(198));var u=Lo;Mo=!1,Lo=null,Po||(Po=!0,Io=u)}}(r,t,void 0,e),e.currentTarget=null}function La(e,t){t=0!=(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;Ma(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;Ma(o,a,u),i=s}}}if(Po)throw e=Io,Po=!1,Io=null,e}function Pa(e,t){var n=t[cs];void 0===n&&(n=t[cs]=new Set);var r=e+"__bubble";n.has(r)||(za(t,e,2,!1),n.add(r))}function Ia(e,t,n){var r=0;t&&(r|=4),za(n,e,r,t)}var Da="_reactListening"+Math.random().toString(36).slice(2);function $a(e){if(!e[Da]){e[Da]=!0,nr.forEach((function(t){"selectionchange"!==t&&(Oa.has(t)||Ia(t,!1,e),Ia(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Da]||(t[Da]=!0,Ia("selectionchange",!1,t))}}function za(e,t,n,r){switch(Yi(t)){case 1:var o=Hi;break;case 4:o=Wi;break;default:o=ji}n=o.bind(null,t,n,e),o=void 0,!Ro||"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 Fa(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(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=ps(a)))return;if(5===(s=l.tag)||6===s){r=i=l;continue e}a=a.parentNode}}r=r.return}To((function(){var r=i,o=vo(n),l=[];e:{var a=ka.get(e);if(void 0!==a){var s=il,u=e;switch(e){case"keypress":if(0===qi(n))break e;case"keydown":case"keyup":s=wl;break;case"focusin":u="focus",s=dl;break;case"focusout":u="blur",s=dl;break;case"beforeblur":case"afterblur":s=dl;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=ul;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=cl;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Cl;break;case _a:case wa:case Ea:s=fl;break;case Ca:s=kl;break;case"scroll":s=al;break;case"wheel":s=Tl;break;case"copy":case"cut":case"paste":s=ml;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=El}var c=0!=(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=No(m,f))&&c.push(Ba(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(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===go||!(u=n.relatedTarget||n.fromElement)||!ps(u)&&!u[us])&&(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)?ps(u):null)&&(u!==(d=zo(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=ul,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=El,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?a:hs(s),p=null==u?a:hs(u),(a=new c(h,m+"leave",s,n,o)).target=d,a.relatedTarget=p,h=null,ps(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=Wa(p))m++;for(p=0,h=f;h;h=Wa(h))p++;for(;0<m-p;)c=Wa(c),m--;for(;0<p-m;)f=Wa(f),p--;for(;m--;){if(c===f||null!==f&&c===f.alternate)break e;c=Wa(c),f=Wa(f)}c=null}else c=null;null!==s&&ja(l,a,s,c,!1),null!==u&&null!==d&&ja(l,d,u,c,!0)}if("select"===(s=(a=r?hs(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===s&&"file"===a.type)var g=Ul;else if(Fl(a))if(Yl)g=ta;else{g=Zl;var v=Jl}else(s=a.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=ea);switch(g&&(g=g(e,r))?Bl(l,g,n,o):(v&&v(e,a,r),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&Xr(a,"number",a.value)),v=r?hs(r):window,e){case"focusin":(Fl(v)||"true"===v.contentEditable)&&(da=v,fa=r,pa=null);break;case"focusout":pa=fa=da=null;break;case"mousedown":ma=!0;break;case"contextmenu":case"mouseup":case"dragend":ma=!1,ha(l,n,o);break;case"selectionchange":if(ca)break;case"keydown":case"keyup":ha(l,n,o)}var b;if(Rl)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 $l?Il(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Ml&&"ko"!==n.locale&&($l||"onCompositionStart"!==y?"onCompositionEnd"===y&&$l&&(b=Xi()):(Vi="value"in(Gi=o)?Gi.value:Gi.textContent,$l=!0)),0<(v=Ha(r,y)).length&&(y=new hl(y,e,null,n,o),l.push({event:y,listeners:v}),b?y.data=b:null!==(b=Dl(n))&&(y.data=b))),(b=Ol?function(e,t){switch(e){case"compositionend":return Dl(t);case"keypress":return 32!==t.which?null:(Pl=!0,Ll);case"textInput":return(e=t.data)===Ll&&Pl?null:e;default:return null}}(e,n):function(e,t){if($l)return"compositionend"===e||!Rl&&Il(e,t)?(e=Xi(),Qi=Vi=Gi=null,$l=!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 Ml&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ha(r,"onBeforeInput")).length&&(o=new hl("onBeforeInput","beforeinput",null,n,o),l.push({event:o,listeners:r}),o.data=b))}La(l,t)}))}function Ba(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ha(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=No(e,n))&&r.unshift(Ba(e,i,o)),null!=(i=No(e,t))&&r.push(Ba(e,i,o))),e=e.return}return r}function Wa(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ja(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=No(n,i))&&l.unshift(Ba(n,s,a)):o||null!=(s=No(n,i))&&l.push(Ba(n,s,a))),n=n.return}0!==l.length&&e.push({event:t,listeners:l})}var Ka=/\r\n?/g,Ua=/\u0000|\uFFFD/g;function Ya(e){return("string"==typeof e?e:""+e).replace(Ka,"\n").replace(Ua,"")}function Ga(e,t,n){if(t=Ya(t),Ya(e)!==t&&n)throw Error(tr(425))}function Va(){}var Qa=null,Xa=null;function qa(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 Ja="function"==typeof setTimeout?setTimeout:void 0,Za="function"==typeof clearTimeout?clearTimeout:void 0,es="function"==typeof Promise?Promise:void 0,ts="function"==typeof queueMicrotask?queueMicrotask:void 0!==es?function(e){return es.resolve(null).then(e).catch(ns)}:Ja;function ns(e){setTimeout((function(){throw e}))}function rs(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 zi(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);zi(t)}function os(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 is(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 ls=Math.random().toString(36).slice(2),as="__reactFiber$"+ls,ss="__reactProps$"+ls,us="__reactContainer$"+ls,cs="__reactEvents$"+ls,ds="__reactListeners$"+ls,fs="__reactHandles$"+ls;function ps(e){var t=e[as];if(t)return t;for(var n=e.parentNode;n;){if(t=n[us]||n[as]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=is(e);null!==e;){if(n=e[as])return n;e=is(e)}return t}n=(e=n).parentNode}return null}function ms(e){return!(e=e[as]||e[us])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function hs(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(tr(33))}function gs(e){return e[ss]||null}var vs=[],bs=-1;function ys(e){return{current:e}}function xs(e){0>bs||(e.current=vs[bs],vs[bs]=null,bs--)}function _s(e,t){bs++,vs[bs]=e.current,e.current=t}var ws={},Es=ys(ws),Cs=ys(!1),ks=ws;function Ss(e,t){var n=e.type.contextTypes;if(!n)return ws;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 Ts(e){return null!=(e=e.childContextTypes)}function Ns(){xs(Cs),xs(Es)}function Rs(e,t,n){if(Es.current!==ws)throw Error(tr(168));_s(Es,t),_s(Cs,n)}function As(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(tr(108,Fr(e)||"Unknown",o));return Lr({},n,r)}function Os(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ws,ks=Es.current,_s(Es,e),_s(Cs,Cs.current),!0}function Ms(e,t,n){var r=e.stateNode;if(!r)throw Error(tr(169));n?(e=As(e,t,ks),r.__reactInternalMemoizedMergedChildContext=e,xs(Cs),xs(Es),_s(Es,e)):xs(Cs),_s(Cs,n)}var Ls=null,Ps=!1,Is=!1;function Ds(e){null===Ls?Ls=[e]:Ls.push(e)}function $s(){if(!Is&&null!==Ls){Is=!0;var e=0,t=hi;try{var n=Ls;for(hi=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ls=null,Ps=!1}catch(t){throw null!==Ls&&(Ls=Ls.slice(e+1)),jo(Qo,$s),t}finally{hi=t,Is=!1}}return null}var zs=[],Fs=0,Bs=null,Hs=0,Ws=[],js=0,Ks=null,Us=1,Ys="";function Gs(e,t){zs[Fs++]=Hs,zs[Fs++]=Bs,Bs=e,Hs=t}function Vs(e,t,n){Ws[js++]=Us,Ws[js++]=Ys,Ws[js++]=Ks,Ks=e;var r=Us;e=Ys;var o=32-ni(r)-1;r&=~(1<<o),n+=1;var i=32-ni(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,Us=1<<32-ni(t)+o|n<<o|r,Ys=i+e}else Us=1<<i|n<<o|r,Ys=e}function Qs(e){null!==e.return&&(Gs(e,1),Vs(e,1,0))}function Xs(e){for(;e===Bs;)Bs=zs[--Fs],zs[Fs]=null,Hs=zs[--Fs],zs[Fs]=null;for(;e===Ks;)Ks=Ws[--js],Ws[js]=null,Ys=Ws[--js],Ws[js]=null,Us=Ws[--js],Ws[js]=null}var qs=null,Js=null,Zs=!1,eu=null;function tu(e,t){var n=Tp(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 nu(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,qs=e,Js=os(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,qs=e,Js=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ks?{id:Us,overflow:Ys}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Tp(18,null,null,0)).stateNode=t,n.return=e,e.child=n,qs=e,Js=null,!0);default:return!1}}function ru(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ou(e){if(Zs){var t=Js;if(t){var n=t;if(!nu(e,t)){if(ru(e))throw Error(tr(418));t=os(n.nextSibling);var r=qs;t&&nu(e,t)?tu(r,n):(e.flags=-4097&e.flags|2,Zs=!1,qs=e)}}else{if(ru(e))throw Error(tr(418));e.flags=-4097&e.flags|2,Zs=!1,qs=e}}}function iu(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;qs=e}function lu(e){if(e!==qs)return!1;if(!Zs)return iu(e),Zs=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!qa(e.type,e.memoizedProps)),t&&(t=Js)){if(ru(e))throw au(),Error(tr(418));for(;t;)tu(e,t),t=os(t.nextSibling)}if(iu(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(tr(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Js=os(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Js=null}}else Js=qs?os(e.stateNode.nextSibling):null;return!0}function au(){for(var e=Js;e;)e=os(e.nextSibling)}function su(){Js=qs=null,Zs=!1}function uu(e){null===eu?eu=[e]:eu.push(e)}var cu=gr.ReactCurrentBatchConfig;function du(e,t){if(e&&e.defaultProps){for(var n in t=Lr({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var fu=ys(null),pu=null,mu=null,hu=null;function gu(){hu=mu=pu=null}function vu(e){var t=fu.current;xs(fu),e._currentValue=t}function bu(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 yu(e,t){pu=e,hu=mu=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(md=!0),e.firstContext=null)}function xu(e){var t=e._currentValue;if(hu!==e)if(e={context:e,memoizedValue:t,next:null},null===mu){if(null===pu)throw Error(tr(308));mu=e,pu.dependencies={lanes:0,firstContext:e}}else mu=mu.next=e;return t}var _u=null;function wu(e){null===_u?_u=[e]:_u.push(e)}function Eu(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,wu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Cu(e,r)}function Cu(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 ku=!1;function Su(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Tu(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 Nu(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ru(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Cf)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Cu(e,n)}return null===(o=r.interleaved)?(t.next=t,wu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Cu(e,n)}function Au(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mi(e,n)}}function Ou(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 Mu(e,t,n,r){var o=e.updateQueue;ku=!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=Lr({},d,f);break e;case 2:ku=!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);Mf|=l,e.lanes=l,e.memoizedState=d}}function Lu(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(tr(191,o));o.call(r)}}}var Pu=(new Zn.Component).refs;function Iu(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Lr({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Du={isMounted:function(e){return!!(e=e._reactInternals)&&zo(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xf(),o=qf(e),i=Nu(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ru(e,i,o))&&(Jf(t,e,o,r),Au(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xf(),o=qf(e),i=Nu(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ru(e,i,o))&&(Jf(t,e,o,r),Au(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xf(),r=qf(e),o=Nu(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ru(e,o,r))&&(Jf(t,e,r,n),Au(t,e,r))}};function $u(e,t,n,r,o,i,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,l):!t.prototype||!t.prototype.isPureReactComponent||(!ra(n,r)||!ra(o,i))}function zu(e,t,n){var r=!1,o=ws,i=t.contextType;return"object"==typeof i&&null!==i?i=xu(i):(o=Ts(t)?ks:Es.current,i=(r=null!=(r=t.contextTypes))?Ss(e,o):ws),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Du,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Fu(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&&Du.enqueueReplaceState(t,t.state,null)}function Bu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Pu,Su(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=xu(i):(i=Ts(t)?ks:Es.current,o.context=Ss(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Iu(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&&Du.enqueueReplaceState(o,o.state,null),Mu(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Hu(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(tr(309));var r=n.stateNode}if(!r)throw Error(tr(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===Pu&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(tr(284));if(!n._owner)throw Error(tr(290,e))}return e}function Wu(e,t){throw e=Object.prototype.toString.call(t),Error(tr(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ju(e){return(0,e._init)(e._payload)}function Ku(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=Rp(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=Lp(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===yr?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Nr&&ju(i)===t.type)?((r=o(t,n.props)).ref=Hu(e,t,n),r.return=e,r):((r=Ap(n.type,n.key,n.props,null,e.mode,r)).ref=Hu(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=Pp(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=Op(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=Lp(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case vr:return(n=Ap(t.type,t.key,t.props,null,e.mode,n)).ref=Hu(e,null,t),n.return=e,n;case br:return(t=Pp(t,e.mode,n)).return=e,t;case Nr:return d(e,(0,t._init)(t._payload),n)}if(qr(t)||Or(t))return(t=Op(t,e.mode,n,null)).return=e,t;Wu(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 vr:return n.key===o?s(e,t,n,r):null;case br:return n.key===o?u(e,t,n,r):null;case Nr:return f(e,t,(o=n._init)(n._payload),r)}if(qr(n)||Or(n))return null!==o?null:c(e,t,n,r,null);Wu(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 vr:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case br:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Nr:return p(e,t,n,(0,r._init)(r._payload),o)}if(qr(r)||Or(r))return c(t,e=e.get(n)||null,r,o,null);Wu(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),Zs&&Gs(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 Zs&&Gs(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)})),Zs&&Gs(o,h),u}function h(o,l,a,s){var u=Or(a);if("function"!=typeof u)throw Error(tr(150));if(null==(a=u.call(a)))throw Error(tr(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),Zs&&Gs(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 Zs&&Gs(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)})),Zs&&Gs(o,h),u}return function e(r,i,a,s){if("object"==typeof a&&null!==a&&a.type===yr&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case vr:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===yr){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===Nr&&ju(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=Hu(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===yr?((i=Op(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Ap(a.type,a.key,a.props,null,r.mode,s)).ref=Hu(r,i,a),s.return=r,r=s)}return l(r);case br: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=Pp(a,r.mode,s)).return=r,r=i}return l(r);case Nr:return e(r,i,(c=a._init)(a._payload),s)}if(qr(a))return m(r,i,a,s);if(Or(a))return h(r,i,a,s);Wu(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=Lp(a,r.mode,s)).return=r,r=i),l(r)):n(r,i)}}var Uu=Ku(!0),Yu=Ku(!1),Gu={},Vu=ys(Gu),Qu=ys(Gu),Xu=ys(Gu);function qu(e){if(e===Gu)throw Error(tr(174));return e}function Ju(e,t){switch(_s(Xu,t),_s(Qu,e),_s(Vu,Gu),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:oo(null,"");break;default:t=oo(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xs(Vu),_s(Vu,t)}function Zu(){xs(Vu),xs(Qu),xs(Xu)}function ec(e){qu(Xu.current);var t=qu(Vu.current),n=oo(t,e.type);t!==n&&(_s(Qu,e),_s(Vu,n))}function tc(e){Qu.current===e&&(xs(Vu),xs(Qu))}var nc=ys(0);function rc(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(0!=(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 oc=[];function ic(){for(var e=0;e<oc.length;e++)oc[e]._workInProgressVersionPrimary=null;oc.length=0}var lc=gr.ReactCurrentDispatcher,ac=gr.ReactCurrentBatchConfig,sc=0,uc=null,cc=null,dc=null,fc=!1,pc=!1,mc=0,hc=0;function gc(){throw Error(tr(321))}function vc(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!na(e[n],t[n]))return!1;return!0}function bc(e,t,n,r,o,i){if(sc=i,uc=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,lc.current=null===e||null===e.memoizedState?td:nd,e=n(r,o),pc){i=0;do{if(pc=!1,mc=0,25<=i)throw Error(tr(301));i+=1,dc=cc=null,t.updateQueue=null,lc.current=rd,e=n(r,o)}while(pc)}if(lc.current=ed,t=null!==cc&&null!==cc.next,sc=0,dc=cc=uc=null,fc=!1,t)throw Error(tr(300));return e}function yc(){var e=0!==mc;return mc=0,e}function xc(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===dc?uc.memoizedState=dc=e:dc=dc.next=e,dc}function _c(){if(null===cc){var e=uc.alternate;e=null!==e?e.memoizedState:null}else e=cc.next;var t=null===dc?uc.memoizedState:dc.next;if(null!==t)dc=t,cc=e;else{if(null===e)throw Error(tr(310));e={memoizedState:(cc=e).memoizedState,baseState:cc.baseState,baseQueue:cc.baseQueue,queue:cc.queue,next:null},null===dc?uc.memoizedState=dc=e:dc=dc.next=e}return dc}function wc(e,t){return"function"==typeof t?t(e):t}function Ec(e){var t=_c(),n=t.queue;if(null===n)throw Error(tr(311));n.lastRenderedReducer=e;var r=cc,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((sc&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,uc.lanes|=c,Mf|=c}u=u.next}while(null!==u&&u!==i);null===s?l=r:s.next=a,na(r,t.memoizedState)||(md=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,uc.lanes|=i,Mf|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Cc(e){var t=_c(),n=t.queue;if(null===n)throw Error(tr(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);na(i,t.memoizedState)||(md=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function kc(){}function Sc(e,t){var n=uc,r=_c(),o=t(),i=!na(r.memoizedState,o);if(i&&(r.memoizedState=o,md=!0),r=r.queue,zc(Rc.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==dc&&1&dc.memoizedState.tag){if(n.flags|=2048,Lc(9,Nc.bind(null,n,r,o,t),void 0,null),null===kf)throw Error(tr(349));0!=(30&sc)||Tc(n,t,o)}return o}function Tc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=uc.updateQueue)?(t={lastEffect:null,stores:null},uc.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Nc(e,t,n,r){t.value=n,t.getSnapshot=r,Ac(t)&&Oc(e)}function Rc(e,t,n){return n((function(){Ac(t)&&Oc(e)}))}function Ac(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!na(e,n)}catch(e){return!0}}function Oc(e){var t=Cu(e,1);null!==t&&Jf(t,e,1,-1)}function Mc(e){var t=xc();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wc,lastRenderedState:e},t.queue=e,e=e.dispatch=Xc.bind(null,uc,e),[t.memoizedState,e]}function Lc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=uc.updateQueue)?(t={lastEffect:null,stores:null},uc.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 Pc(){return _c().memoizedState}function Ic(e,t,n,r){var o=xc();uc.flags|=e,o.memoizedState=Lc(1|t,n,void 0,void 0===r?null:r)}function Dc(e,t,n,r){var o=_c();r=void 0===r?null:r;var i=void 0;if(null!==cc){var l=cc.memoizedState;if(i=l.destroy,null!==r&&vc(r,l.deps))return void(o.memoizedState=Lc(t,n,i,r))}uc.flags|=e,o.memoizedState=Lc(1|t,n,i,r)}function $c(e,t){return Ic(8390656,8,e,t)}function zc(e,t){return Dc(2048,8,e,t)}function Fc(e,t){return Dc(4,2,e,t)}function Bc(e,t){return Dc(4,4,e,t)}function Hc(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 Wc(e,t,n){return n=null!=n?n.concat([e]):null,Dc(4,4,Hc.bind(null,t,e),n)}function jc(){}function Kc(e,t){var n=_c();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&vc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Uc(e,t){var n=_c();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&vc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Yc(e,t,n){return 0==(21&sc)?(e.baseState&&(e.baseState=!1,md=!0),e.memoizedState=n):(na(n,t)||(n=di(),uc.lanes|=n,Mf|=n,e.baseState=!0),t)}function Gc(e,t){var n=hi;hi=0!==n&&4>n?n:4,e(!0);var r=ac.transition;ac.transition={};try{e(!1),t()}finally{hi=n,ac.transition=r}}function Vc(){return _c().memoizedState}function Qc(e,t,n){var r=qf(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qc(e))Jc(t,n);else if(null!==(n=Eu(e,t,n,r))){Jf(n,e,r,Xf()),Zc(n,t,r)}}function Xc(e,t,n){var r=qf(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qc(e))Jc(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,na(a,l)){var s=t.interleaved;return null===s?(o.next=o,wu(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Eu(e,t,o,r))&&(Jf(n,e,r,o=Xf()),Zc(n,t,r))}}function qc(e){var t=e.alternate;return e===uc||null!==t&&t===uc}function Jc(e,t){pc=fc=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mi(e,n)}}var ed={readContext:xu,useCallback:gc,useContext:gc,useEffect:gc,useImperativeHandle:gc,useInsertionEffect:gc,useLayoutEffect:gc,useMemo:gc,useReducer:gc,useRef:gc,useState:gc,useDebugValue:gc,useDeferredValue:gc,useTransition:gc,useMutableSource:gc,useSyncExternalStore:gc,useId:gc,unstable_isNewReconciler:!1},td={readContext:xu,useCallback:function(e,t){return xc().memoizedState=[e,void 0===t?null:t],e},useContext:xu,useEffect:$c,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ic(4194308,4,Hc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ic(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ic(4,2,e,t)},useMemo:function(e,t){var n=xc();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xc();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=Qc.bind(null,uc,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xc().memoizedState=e},useState:Mc,useDebugValue:jc,useDeferredValue:function(e){return xc().memoizedState=e},useTransition:function(){var e=Mc(!1),t=e[0];return e=Gc.bind(null,e[1]),xc().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=uc,o=xc();if(Zs){if(void 0===n)throw Error(tr(407));n=n()}else{if(n=t(),null===kf)throw Error(tr(349));0!=(30&sc)||Tc(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,$c(Rc.bind(null,r,i,e),[e]),r.flags|=2048,Lc(9,Nc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=xc(),t=kf.identifierPrefix;if(Zs){var n=Ys;t=":"+t+"R"+(n=(Us&~(1<<32-ni(Us)-1)).toString(32)+n),0<(n=mc++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=hc++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},nd={readContext:xu,useCallback:Kc,useContext:xu,useEffect:zc,useImperativeHandle:Wc,useInsertionEffect:Fc,useLayoutEffect:Bc,useMemo:Uc,useReducer:Ec,useRef:Pc,useState:function(){return Ec(wc)},useDebugValue:jc,useDeferredValue:function(e){return Yc(_c(),cc.memoizedState,e)},useTransition:function(){return[Ec(wc)[0],_c().memoizedState]},useMutableSource:kc,useSyncExternalStore:Sc,useId:Vc,unstable_isNewReconciler:!1},rd={readContext:xu,useCallback:Kc,useContext:xu,useEffect:zc,useImperativeHandle:Wc,useInsertionEffect:Fc,useLayoutEffect:Bc,useMemo:Uc,useReducer:Cc,useRef:Pc,useState:function(){return Cc(wc)},useDebugValue:jc,useDeferredValue:function(e){var t=_c();return null===cc?t.memoizedState=e:Yc(t,cc.memoizedState,e)},useTransition:function(){return[Cc(wc)[0],_c().memoizedState]},useMutableSource:kc,useSyncExternalStore:Sc,useId:Vc,unstable_isNewReconciler:!1};function od(e,t){try{var n="",r=t;do{n+=$r(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 id(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ld(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ad="function"==typeof WeakMap?WeakMap:Map;function sd(e,t,n){(n=Nu(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bf||(Bf=!0,Hf=r),ld(0,t)},n}function ud(e,t,n){(n=Nu(-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(){ld(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ld(0,t),"function"!=typeof r&&(null===Wf?Wf=new Set([this]):Wf.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function cd(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ad;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=_p.bind(null,e,t,n),t.then(e,e))}function dd(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 fd(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Nu(-1,1)).tag=2,Ru(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var pd=gr.ReactCurrentOwner,md=!1;function hd(e,t,n,r){t.child=null===e?Yu(t,null,n,r):Uu(t,e.child,n,r)}function gd(e,t,n,r,o){n=n.render;var i=t.ref;return yu(t,o),r=bc(e,t,n,r,i,o),n=yc(),null===e||md?(Zs&&n&&Qs(t),t.flags|=1,hd(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fd(e,t,o))}function vd(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Np(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ap(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,bd(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var l=i.memoizedProps;if((n=null!==(n=n.compare)?n:ra)(l,r)&&e.ref===t.ref)return Fd(e,t,o)}return t.flags|=1,(e=Rp(i,r)).ref=t.ref,e.return=t,t.child=e}function bd(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ra(i,r)&&e.ref===t.ref){if(md=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Fd(e,t,o);0!=(131072&e.flags)&&(md=!0)}}return _d(e,t,n,r,o)}function yd(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_s(Rf,Nf),Nf|=n;else{if(0==(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,_s(Rf,Nf),Nf|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,_s(Rf,Nf),Nf|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,_s(Rf,Nf),Nf|=r;return hd(e,t,o,n),t.child}function xd(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _d(e,t,n,r,o){var i=Ts(n)?ks:Es.current;return i=Ss(t,i),yu(t,o),n=bc(e,t,n,r,i,o),r=yc(),null===e||md?(Zs&&r&&Qs(t),t.flags|=1,hd(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fd(e,t,o))}function wd(e,t,n,r,o){if(Ts(n)){var i=!0;Os(t)}else i=!1;if(yu(t,o),null===t.stateNode)zd(e,t),zu(t,n,r),Bu(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=xu(u):u=Ss(t,u=Ts(n)?ks:Es.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)&&Fu(t,l,r,u),ku=!1;var f=t.memoizedState;l.state=f,Mu(t,r,l,o),s=t.memoizedState,a!==r||f!==s||Cs.current||ku?("function"==typeof c&&(Iu(t,n,c,r),s=t.memoizedState),(a=ku||$u(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,Tu(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:du(t.type,a),l.props=u,d=t.pendingProps,f=l.context,"object"==typeof(s=n.contextType)&&null!==s?s=xu(s):s=Ss(t,s=Ts(n)?ks:Es.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)&&Fu(t,l,r,s),ku=!1,f=t.memoizedState,l.state=f,Mu(t,r,l,o);var m=t.memoizedState;a!==d||f!==m||Cs.current||ku?("function"==typeof p&&(Iu(t,n,p,r),m=t.memoizedState),(u=ku||$u(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 Ed(e,t,n,r,i,o)}function Ed(e,t,n,r,o,i){xd(e,t);var l=0!=(128&t.flags);if(!r&&!l)return o&&Ms(t,n,!1),Fd(e,t,i);r=t.stateNode,pd.current=t;var a=l&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&l?(t.child=Uu(t,e.child,null,i),t.child=Uu(t,null,a,i)):hd(e,t,a,i),t.memoizedState=r.state,o&&Ms(t,n,!0),t.child}function Cd(e){var t=e.stateNode;t.pendingContext?Rs(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Rs(0,t.context,!1),Ju(e,t.containerInfo)}function kd(e,t,n,r,o){return su(),uu(o),t.flags|=256,hd(e,t,n,r),t.child}var Sd,Td,Nd,Rd,Ad={dehydrated:null,treeContext:null,retryLane:0};function Od(e){return{baseLanes:e,cachePool:null,transitions:null}}function Md(e,t,n){var r,o=t.pendingProps,i=nc.current,l=!1,a=0!=(128&t.flags);if((r=a)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),_s(nc,1&i),null===e)return ou(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(a=o.children,e=o.fallback,l?(o=t.mode,l=t.child,a={mode:"hidden",children:a},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=a):l=Mp(a,o,0,null),e=Op(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Od(n),t.memoizedState=Ad,e):Ld(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,Pd(e,t,l,r=id(Error(tr(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Mp({mode:"visible",children:r.children},o,0,null),(i=Op(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Uu(t,e.child,null,l),t.child.memoizedState=Od(l),t.memoizedState=Ad,i);if(0==(1&t.mode))return Pd(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var a=r.dgst;return r=a,Pd(e,t,l,r=id(i=Error(tr(419)),r,void 0))}if(a=0!=(l&e.childLanes),md||a){if(null!==(r=kf)){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=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Cu(e,o),Jf(r,e,o,-1))}return dp(),Pd(e,t,l,r=id(Error(tr(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ep.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Js=os(o.nextSibling),qs=t,Zs=!0,eu=null,null!==e&&(Ws[js++]=Us,Ws[js++]=Ys,Ws[js++]=Ks,Us=e.id,Ys=e.overflow,Ks=t),t=Ld(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 0==(1&a)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Rp(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?l=Rp(r,l):(l=Op(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)?Od(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},l.memoizedState=a,l.childLanes=e.childLanes&~n,t.memoizedState=Ad,o}return e=(l=e.child).sibling,o=Rp(l,{mode:"visible",children:o.children}),0==(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 Ld(e,t){return(t=Mp({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Pd(e,t,n,r){return null!==r&&uu(r),Uu(t,e.child,null,n),(e=Ld(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Id(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),bu(e.return,t,n)}function Dd(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 $d(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(hd(e,t,r.children,n),0!=(2&(r=nc.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Id(e,n,t);else if(19===e.tag)Id(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(_s(nc,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===rc(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Dd(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===rc(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Dd(t,!0,n,null,i);break;case"together":Dd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zd(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fd(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Mf|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(tr(153));if(null!==t.child){for(n=Rp(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rp(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Bd(e,t){if(!Zs)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 Hd(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 Wd(e,t,n){var r=t.pendingProps;switch(Xs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hd(t),null;case 1:case 17:return Ts(t.type)&&Ns(),Hd(t),null;case 3:return r=t.stateNode,Zu(),xs(Cs),xs(Es),ic(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(lu(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==eu&&(np(eu),eu=null))),Td(e,t),Hd(t),null;case 5:tc(t);var o=qu(Xu.current);if(n=t.type,null!==e&&null!=t.stateNode)Nd(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(tr(166));return Hd(t),null}if(e=qu(Vu.current),lu(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[as]=t,r[ss]=i,e=0!=(1&t.mode),n){case"dialog":Pa("cancel",r),Pa("close",r);break;case"iframe":case"object":case"embed":Pa("load",r);break;case"video":case"audio":for(o=0;o<Aa.length;o++)Pa(Aa[o],r);break;case"source":Pa("error",r);break;case"img":case"image":case"link":Pa("error",r),Pa("load",r);break;case"details":Pa("toggle",r);break;case"input":Yr(r,i),Pa("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Pa("invalid",r);break;case"textarea":eo(r,i),Pa("invalid",r)}for(var l in mo(n,i),o=null,i)if(i.hasOwnProperty(l)){var a=i[l];"children"===l?"string"==typeof a?r.textContent!==a&&(!0!==i.suppressHydrationWarning&&Ga(r.textContent,a,e),o=["children",a]):"number"==typeof a&&r.textContent!==""+a&&(!0!==i.suppressHydrationWarning&&Ga(r.textContent,a,e),o=["children",""+a]):rr.hasOwnProperty(l)&&null!=a&&"onScroll"===l&&Pa("scroll",r)}switch(n){case"input":Wr(r),Qr(r,i,!0);break;case"textarea":Wr(r),no(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Va)}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=ro(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[as]=t,e[ss]=r,Sd(e,t,!1,!1),t.stateNode=e;e:{switch(l=ho(n,r),n){case"dialog":Pa("cancel",e),Pa("close",e),o=r;break;case"iframe":case"object":case"embed":Pa("load",e),o=r;break;case"video":case"audio":for(o=0;o<Aa.length;o++)Pa(Aa[o],e);o=r;break;case"source":Pa("error",e),o=r;break;case"img":case"image":case"link":Pa("error",e),Pa("load",e),o=r;break;case"details":Pa("toggle",e),o=r;break;case"input":Yr(e,r),o=Ur(e,r),Pa("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Lr({},r,{value:void 0}),Pa("invalid",e);break;case"textarea":eo(e,r),o=Zr(e,r),Pa("invalid",e)}for(i in mo(n,o),a=o)if(a.hasOwnProperty(i)){var s=a[i];"style"===i?fo(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&lo(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&ao(e,s):"number"==typeof s&&ao(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(rr.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Pa("scroll",e):null!=s&&hr(e,i,s,l))}switch(n){case"input":Wr(e),Qr(e,r,!1);break;case"textarea":Wr(e),no(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Br(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?Jr(e,!!r.multiple,i,!1):null!=r.defaultValue&&Jr(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Va)}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 Hd(t),null;case 6:if(e&&null!=t.stateNode)Rd(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(tr(166));if(n=qu(Xu.current),qu(Vu.current),lu(t)){if(r=t.stateNode,n=t.memoizedProps,r[as]=t,(i=r.nodeValue!==n)&&null!==(e=qs))switch(e.tag){case 3:Ga(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ga(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[as]=t,t.stateNode=r}return Hd(t),null;case 13:if(xs(nc),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Zs&&null!==Js&&0!=(1&t.mode)&&0==(128&t.flags))au(),su(),t.flags|=98560,i=!1;else if(i=lu(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(tr(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(tr(317));i[as]=t}else su(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Hd(t),i=!1}else null!==eu&&(np(eu),eu=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&nc.current)?0===Af&&(Af=3):dp())),null!==t.updateQueue&&(t.flags|=4),Hd(t),null);case 4:return Zu(),Td(e,t),null===e&&$a(t.stateNode.containerInfo),Hd(t),null;case 10:return vu(t.type._context),Hd(t),null;case 19:if(xs(nc),null===(i=t.memoizedState))return Hd(t),null;if(r=0!=(128&t.flags),null===(l=i.rendering))if(r)Bd(i,!1);else{if(0!==Af||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=rc(e))){for(t.flags|=128,Bd(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 _s(nc,1&nc.current|2),t.child}e=e.sibling}null!==i.tail&&Go()>zf&&(t.flags|=128,r=!0,Bd(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=rc(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Bd(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!Zs)return Hd(t),null}else 2*Go()-i.renderingStartTime>zf&&1073741824!==n&&(t.flags|=128,r=!0,Bd(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=Go(),t.sibling=null,n=nc.current,_s(nc,r?1&n|2:1&n),t):(Hd(t),null);case 22:case 23:return ap(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Nf)&&(Hd(t),6&t.subtreeFlags&&(t.flags|=8192)):Hd(t),null;case 24:case 25:return null}throw Error(tr(156,t.tag))}function jd(e,t){switch(Xs(t),t.tag){case 1:return Ts(t.type)&&Ns(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zu(),xs(Cs),xs(Es),ic(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return tc(t),null;case 13:if(xs(nc),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(tr(340));su()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xs(nc),null;case 4:return Zu(),null;case 10:return vu(t.type._context),null;case 22:case 23:return ap(),null;default:return null}}Sd=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}},Td=function(){},Nd=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,qu(Vu.current);var i,l=null;switch(n){case"input":o=Ur(e,o),r=Ur(e,r),l=[];break;case"select":o=Lr({},o,{value:void 0}),r=Lr({},r,{value:void 0}),l=[];break;case"textarea":o=Zr(e,o),r=Zr(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Va)}for(u in mo(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&&(rr.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&&(rr.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Pa("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)}},Rd=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kd=!1,Ud=!1,Yd="function"==typeof WeakSet?WeakSet:Set,Gd=null;function Vd(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){xp(e,t,n)}else n.current=null}function Qd(e,t,n){try{n()}catch(n){xp(e,t,n)}}var Xd=!1;function qd(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&&Qd(t,n,i)}o=o.next}while(o!==r)}}function Jd(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 Zd(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 ef(e){var t=e.alternate;null!==t&&(e.alternate=null,ef(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[as],delete t[ss],delete t[cs],delete t[ds],delete t[fs])),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 tf(e){return 5===e.tag||3===e.tag||4===e.tag}function nf(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||tf(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 rf(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=Va));else if(4!==r&&null!==(e=e.child))for(rf(e,t,n),e=e.sibling;null!==e;)rf(e,t,n),e=e.sibling}function of(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(of(e,t,n),e=e.sibling;null!==e;)of(e,t,n),e=e.sibling}var lf=null,af=!1;function sf(e,t,n){for(n=n.child;null!==n;)uf(e,t,n),n=n.sibling}function uf(e,t,n){if(ti&&"function"==typeof ti.onCommitFiberUnmount)try{ti.onCommitFiberUnmount(ei,n)}catch(e){}switch(n.tag){case 5:Ud||Vd(n,t);case 6:var r=lf,o=af;lf=null,sf(e,t,n),af=o,null!==(lf=r)&&(af?(e=lf,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):lf.removeChild(n.stateNode));break;case 18:null!==lf&&(af?(e=lf,n=n.stateNode,8===e.nodeType?rs(e.parentNode,n):1===e.nodeType&&rs(e,n),zi(e)):rs(lf,n.stateNode));break;case 4:r=lf,o=af,lf=n.stateNode.containerInfo,af=!0,sf(e,t,n),lf=r,af=o;break;case 0:case 11:case 14:case 15:if(!Ud&&(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&&(0!=(2&i)||0!=(4&i))&&Qd(n,t,l),o=o.next}while(o!==r)}sf(e,t,n);break;case 1:if(!Ud&&(Vd(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xp(n,t,e)}sf(e,t,n);break;case 21:sf(e,t,n);break;case 22:1&n.mode?(Ud=(r=Ud)||null!==n.memoizedState,sf(e,t,n),Ud=r):sf(e,t,n);break;default:sf(e,t,n)}}function cf(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Yd),t.forEach((function(t){var r=Cp.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function df(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:lf=a.stateNode,af=!1;break e;case 3:case 4:lf=a.stateNode.containerInfo,af=!0;break e}a=a.return}if(null===lf)throw Error(tr(160));uf(i,l,o),lf=null,af=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){xp(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ff(t,e),t=t.sibling}function ff(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(df(t,e),pf(e),4&r){try{qd(3,e,e.return),Jd(3,e)}catch(t){xp(e,e.return,t)}try{qd(5,e,e.return)}catch(t){xp(e,e.return,t)}}break;case 1:df(t,e),pf(e),512&r&&null!==n&&Vd(n,n.return);break;case 5:if(df(t,e),pf(e),512&r&&null!==n&&Vd(n,n.return),32&e.flags){var o=e.stateNode;try{ao(o,"")}catch(t){xp(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&&Gr(o,i),ho(a,l);var u=ho(a,i);for(l=0;l<s.length;l+=2){var c=s[l],d=s[l+1];"style"===c?fo(o,d):"dangerouslySetInnerHTML"===c?lo(o,d):"children"===c?ao(o,d):hr(o,c,d,u)}switch(a){case"input":Vr(o,i);break;case"textarea":to(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?Jr(o,!!i.multiple,p,!1):f!==!!i.multiple&&(null!=i.defaultValue?Jr(o,!!i.multiple,i.defaultValue,!0):Jr(o,!!i.multiple,i.multiple?[]:"",!1))}o[ss]=i}catch(t){xp(e,e.return,t)}}break;case 6:if(df(t,e),pf(e),4&r){if(null===e.stateNode)throw Error(tr(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){xp(e,e.return,t)}}break;case 3:if(df(t,e),pf(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zi(t.containerInfo)}catch(t){xp(e,e.return,t)}break;case 4:default:df(t,e),pf(e);break;case 13:df(t,e),pf(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||($f=Go())),4&r&&cf(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(Ud=(u=Ud)||c,df(t,e),Ud=u):df(t,e),pf(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(Gd=e,c=e.child;null!==c;){for(d=Gd=c;null!==Gd;){switch(p=(f=Gd).child,f.tag){case 0:case 11:case 14:case 15:qd(4,f,f.return);break;case 1:Vd(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){xp(r,n,e)}}break;case 5:Vd(f,f.return);break;case 22:if(null!==f.memoizedState){vf(d);continue}}null!==p?(p.return=f,Gd=p):vf(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=co("display",l))}catch(t){xp(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){xp(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:df(t,e),pf(e),4&r&&cf(e);case 21:}}function pf(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(tf(n)){var r=n;break e}n=n.return}throw Error(tr(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(ao(o,""),r.flags&=-33),of(e,nf(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;rf(e,nf(e),i);break;default:throw Error(tr(161))}}catch(t){xp(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function mf(e,t,n){Gd=e,hf(e)}function hf(e,t,n){for(var r=0!=(1&e.mode);null!==Gd;){var o=Gd,i=o.child;if(22===o.tag&&r){var l=null!==o.memoizedState||Kd;if(!l){var a=o.alternate,s=null!==a&&null!==a.memoizedState||Ud;a=Kd;var u=Ud;if(Kd=l,(Ud=s)&&!u)for(Gd=o;null!==Gd;)s=(l=Gd).child,22===l.tag&&null!==l.memoizedState?bf(o):null!==s?(s.return=l,Gd=s):bf(o);for(;null!==i;)Gd=i,hf(i),i=i.sibling;Gd=o,Kd=a,Ud=u}gf(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Gd=i):gf(e)}}function gf(e){for(;null!==Gd;){var t=Gd;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ud||Jd(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ud)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:du(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Lu(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}Lu(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&&zi(d)}}}break;default:throw Error(tr(163))}Ud||512&t.flags&&Zd(t)}catch(e){xp(t,t.return,e)}}if(t===e){Gd=null;break}if(null!==(n=t.sibling)){n.return=t.return,Gd=n;break}Gd=t.return}}function vf(e){for(;null!==Gd;){var t=Gd;if(t===e){Gd=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Gd=n;break}Gd=t.return}}function bf(e){for(;null!==Gd;){var t=Gd;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jd(4,t)}catch(e){xp(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){xp(t,o,e)}}var i=t.return;try{Zd(t)}catch(e){xp(t,i,e)}break;case 5:var l=t.return;try{Zd(t)}catch(e){xp(t,l,e)}}}catch(e){xp(t,t.return,e)}if(t===e){Gd=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Gd=a;break}Gd=t.return}}var yf,xf=Math.ceil,_f=gr.ReactCurrentDispatcher,wf=gr.ReactCurrentOwner,Ef=gr.ReactCurrentBatchConfig,Cf=0,kf=null,Sf=null,Tf=0,Nf=0,Rf=ys(0),Af=0,Of=null,Mf=0,Lf=0,Pf=0,If=null,Df=null,$f=0,zf=1/0,Ff=null,Bf=!1,Hf=null,Wf=null,jf=!1,Kf=null,Uf=0,Yf=0,Gf=null,Vf=-1,Qf=0;function Xf(){return 0!=(6&Cf)?Go():-1!==Vf?Vf:Vf=Go()}function qf(e){return 0==(1&e.mode)?1:0!=(2&Cf)&&0!==Tf?Tf&-Tf:null!==cu.transition?(0===Qf&&(Qf=di()),Qf):0!==(e=hi)?e:e=void 0===(e=window.event)?16:Yi(e.type)}function Jf(e,t,n,r){if(50<Yf)throw Yf=0,Gf=null,Error(tr(185));pi(e,n,r),0!=(2&Cf)&&e===kf||(e===kf&&(0==(2&Cf)&&(Lf|=n),4===Af&&rp(e,Tf)),Zf(e,r),1===n&&0===Cf&&0==(1&t.mode)&&(zf=Go()+500,Ps&&$s()))}function Zf(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-ni(i),a=1<<l,s=o[l];-1===s?0!=(a&n)&&0==(a&r)||(o[l]=ui(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=si(e,e===kf?Tf:0);if(0===r)null!==n&&Ko(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ko(n),1===t)0===e.tag?function(e){Ps=!0,Ds(e)}(op.bind(null,e)):Ds(op.bind(null,e)),ts((function(){0==(6&Cf)&&$s()})),n=null;else{switch(gi(r)){case 1:n=Qo;break;case 4:n=Xo;break;case 16:default:n=qo;break;case 536870912:n=Zo}n=kp(n,ep.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ep(e,t){if(Vf=-1,Qf=0,0!=(6&Cf))throw Error(tr(327));var n=e.callbackNode;if(bp()&&e.callbackNode!==n)return null;var r=si(e,e===kf?Tf:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=fp(e,r);else{t=r;var o=Cf;Cf|=2;var i=cp();for(kf===e&&Tf===t||(Ff=null,zf=Go()+500,sp(e,t));;)try{mp();break}catch(t){up(e,t)}gu(),_f.current=i,Cf=o,null!==Sf?t=0:(kf=null,Tf=0,t=Af)}if(0!==t){if(2===t&&(0!==(o=ci(e))&&(r=o,t=tp(e,o))),1===t)throw n=Of,sp(e,0),rp(e,r),Zf(e,Go()),n;if(6===t)rp(e,r);else{if(o=e.current.alternate,0==(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(!na(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)&&(2===(t=fp(e,r))&&(0!==(i=ci(e))&&(r=i,t=tp(e,i))),1===t))throw n=Of,sp(e,0),rp(e,r),Zf(e,Go()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(tr(345));case 2:case 5:vp(e,Df,Ff);break;case 3:if(rp(e,r),(130023424&r)===r&&10<(t=$f+500-Go())){if(0!==si(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Xf(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ja(vp.bind(null,e,Df,Ff),t);break}vp(e,Df,Ff);break;case 4:if(rp(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-ni(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Go()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xf(r/1960))-r)){e.timeoutHandle=Ja(vp.bind(null,e,Df,Ff),r);break}vp(e,Df,Ff);break;default:throw Error(tr(329))}}}return Zf(e,Go()),e.callbackNode===n?ep.bind(null,e):null}function tp(e,t){var n=If;return e.current.memoizedState.isDehydrated&&(sp(e,t).flags|=256),2!==(e=fp(e,t))&&(t=Df,Df=n,null!==t&&np(t)),e}function np(e){null===Df?Df=e:Df.push.apply(Df,e)}function rp(e,t){for(t&=~Pf,t&=~Lf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ni(t),r=1<<n;e[n]=-1,t&=~r}}function op(e){if(0!=(6&Cf))throw Error(tr(327));bp();var t=si(e,0);if(0==(1&t))return Zf(e,Go()),null;var n=fp(e,t);if(0!==e.tag&&2===n){var r=ci(e);0!==r&&(t=r,n=tp(e,r))}if(1===n)throw n=Of,sp(e,0),rp(e,t),Zf(e,Go()),n;if(6===n)throw Error(tr(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vp(e,Df,Ff),Zf(e,Go()),null}function ip(e,t){var n=Cf;Cf|=1;try{return e(t)}finally{0===(Cf=n)&&(zf=Go()+500,Ps&&$s())}}function lp(e){null!==Kf&&0===Kf.tag&&0==(6&Cf)&&bp();var t=Cf;Cf|=1;var n=Ef.transition,r=hi;try{if(Ef.transition=null,hi=1,e)return e()}finally{hi=r,Ef.transition=n,0==(6&(Cf=t))&&$s()}}function ap(){Nf=Rf.current,xs(Rf)}function sp(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Za(n)),null!==Sf)for(n=Sf.return;null!==n;){var r=n;switch(Xs(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ns();break;case 3:Zu(),xs(Cs),xs(Es),ic();break;case 5:tc(r);break;case 4:Zu();break;case 13:case 19:xs(nc);break;case 10:vu(r.type._context);break;case 22:case 23:ap()}n=n.return}if(kf=e,Sf=e=Rp(e.current,null),Tf=Nf=t,Af=0,Of=null,Pf=Lf=Mf=0,Df=If=null,null!==_u){for(t=0;t<_u.length;t++)if(null!==(r=(n=_u[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}_u=null}return e}function up(e,t){for(;;){var n=Sf;try{if(gu(),lc.current=ed,fc){for(var r=uc.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}fc=!1}if(sc=0,dc=cc=uc=null,pc=!1,mc=0,wf.current=null,null===n||null===n.return){Af=1,Of=t,Sf=null;break}e:{var i=e,l=n.return,a=n,s=t;if(t=Tf,a.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=a,d=c.tag;if(0==(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=dd(l);if(null!==p){p.flags&=-257,fd(p,l,a,0,t),1&p.mode&&cd(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(0==(1&t)){cd(i,u,t),dp();break e}s=Error(tr(426))}else if(Zs&&1&a.mode){var g=dd(l);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),fd(g,l,a,0,t),uu(od(s,a));break e}}i=s=od(s,a),4!==Af&&(Af=2),null===If?If=[i]:If.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ou(i,sd(0,s,t));break e;case 1:a=s;var v=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Wf||!Wf.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Ou(i,ud(i,a,t));break e}}i=i.return}while(null!==i)}gp(n)}catch(e){t=e,Sf===n&&null!==n&&(Sf=n=n.return);continue}break}}function cp(){var e=_f.current;return _f.current=ed,null===e?ed:e}function dp(){0!==Af&&3!==Af&&2!==Af||(Af=4),null===kf||0==(268435455&Mf)&&0==(268435455&Lf)||rp(kf,Tf)}function fp(e,t){var n=Cf;Cf|=2;var r=cp();for(kf===e&&Tf===t||(Ff=null,sp(e,t));;)try{pp();break}catch(t){up(e,t)}if(gu(),Cf=n,_f.current=r,null!==Sf)throw Error(tr(261));return kf=null,Tf=0,Af}function pp(){for(;null!==Sf;)hp(Sf)}function mp(){for(;null!==Sf&&!Uo();)hp(Sf)}function hp(e){var t=yf(e.alternate,e,Nf);e.memoizedProps=e.pendingProps,null===t?gp(e):Sf=t,wf.current=null}function gp(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Wd(n,t,Nf)))return void(Sf=n)}else{if(null!==(n=jd(n,t)))return n.flags&=32767,void(Sf=n);if(null===e)return Af=6,void(Sf=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Sf=t);Sf=t=e}while(null!==t);0===Af&&(Af=5)}function vp(e,t,n){var r=hi,o=Ef.transition;try{Ef.transition=null,hi=1,function(e,t,n,r){do{bp()}while(null!==Kf);if(0!=(6&Cf))throw Error(tr(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(tr(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-ni(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===kf&&(Sf=kf=null,Tf=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||jf||(jf=!0,kp(qo,(function(){return bp(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Ef.transition,Ef.transition=null;var l=hi;hi=1;var a=Cf;Cf|=4,wf.current=null,function(e,t){if(Qa=Bi,sa(e=aa())){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(Xa={focusedElem:e,selectionRange:n},Bi=!1,Gd=t;null!==Gd;)if(e=(t=Gd).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Gd=e;else for(;null!==Gd;){t=Gd;try{var m=t.alternate;if(0!=(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:du(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(tr(163))}}catch(e){xp(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Gd=e;break}Gd=t.return}m=Xd,Xd=!1}(e,n),ff(n,e),ua(Xa),Bi=!!Qa,Xa=Qa=null,e.current=n,mf(n),Yo(),Cf=a,hi=l,Ef.transition=i}else e.current=n;if(jf&&(jf=!1,Kf=e,Uf=o),i=e.pendingLanes,0===i&&(Wf=null),function(e){if(ti&&"function"==typeof ti.onCommitFiberRoot)try{ti.onCommitFiberRoot(ei,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),Zf(e,Go()),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(Bf)throw Bf=!1,e=Hf,Hf=null,e;0!=(1&Uf)&&0!==e.tag&&bp(),i=e.pendingLanes,0!=(1&i)?e===Gf?Yf++:(Yf=0,Gf=e):Yf=0,$s()}(e,t,n,r)}finally{Ef.transition=o,hi=r}return null}function bp(){if(null!==Kf){var e=gi(Uf),t=Ef.transition,n=hi;try{if(Ef.transition=null,hi=16>e?16:e,null===Kf)var r=!1;else{if(e=Kf,Kf=null,Uf=0,0!=(6&Cf))throw Error(tr(331));var o=Cf;for(Cf|=4,Gd=e.current;null!==Gd;){var i=Gd,l=i.child;if(0!=(16&Gd.flags)){var a=i.deletions;if(null!==a){for(var s=0;s<a.length;s++){var u=a[s];for(Gd=u;null!==Gd;){var c=Gd;switch(c.tag){case 0:case 11:case 15:qd(8,c,i)}var d=c.child;if(null!==d)d.return=c,Gd=d;else for(;null!==Gd;){var f=(c=Gd).sibling,p=c.return;if(ef(c),c===u){Gd=null;break}if(null!==f){f.return=p,Gd=f;break}Gd=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)}}Gd=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,Gd=l;else e:for(;null!==Gd;){if(0!=(2048&(i=Gd).flags))switch(i.tag){case 0:case 11:case 15:qd(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Gd=v;break e}Gd=i.return}}var b=e.current;for(Gd=b;null!==Gd;){var y=(l=Gd).child;if(0!=(2064&l.subtreeFlags)&&null!==y)y.return=l,Gd=y;else e:for(l=b;null!==Gd;){if(0!=(2048&(a=Gd).flags))try{switch(a.tag){case 0:case 11:case 15:Jd(9,a)}}catch(e){xp(a,a.return,e)}if(a===l){Gd=null;break e}var x=a.sibling;if(null!==x){x.return=a.return,Gd=x;break e}Gd=a.return}}if(Cf=o,$s(),ti&&"function"==typeof ti.onPostCommitFiberRoot)try{ti.onPostCommitFiberRoot(ei,e)}catch(e){}r=!0}return r}finally{hi=n,Ef.transition=t}}return!1}function yp(e,t,n){e=Ru(e,t=sd(0,t=od(n,t),1),1),t=Xf(),null!==e&&(pi(e,1,t),Zf(e,t))}function xp(e,t,n){if(3===e.tag)yp(e,e,n);else for(;null!==t;){if(3===t.tag){yp(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wf||!Wf.has(r))){t=Ru(t,e=ud(t,e=od(n,e),1),1),e=Xf(),null!==t&&(pi(t,1,e),Zf(t,e));break}}t=t.return}}function _p(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Xf(),e.pingedLanes|=e.suspendedLanes&n,kf===e&&(Tf&n)===n&&(4===Af||3===Af&&(130023424&Tf)===Tf&&500>Go()-$f?sp(e,0):Pf|=n),Zf(e,t)}function wp(e,t){0===t&&(0==(1&e.mode)?t=1:(t=li,0==(130023424&(li<<=1))&&(li=4194304)));var n=Xf();null!==(e=Cu(e,t))&&(pi(e,t,n),Zf(e,n))}function Ep(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),wp(e,n)}function Cp(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(tr(314))}null!==r&&r.delete(t),wp(e,n)}function kp(e,t){return jo(e,t)}function Sp(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 Tp(e,t,n,r){return new Sp(e,t,n,r)}function Np(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rp(e,t){var n=e.alternate;return null===n?((n=Tp(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 Ap(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Np(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case yr:return Op(n.children,o,i,t);case xr:l=8,o|=8;break;case _r:return(e=Tp(12,n,t,2|o)).elementType=_r,e.lanes=i,e;case kr:return(e=Tp(13,n,t,o)).elementType=kr,e.lanes=i,e;case Sr:return(e=Tp(19,n,t,o)).elementType=Sr,e.lanes=i,e;case Rr:return Mp(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case wr:l=10;break e;case Er:l=9;break e;case Cr:l=11;break e;case Tr:l=14;break e;case Nr:l=16,r=null;break e}throw Error(tr(130,null==e?e:typeof e,""))}return(t=Tp(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Op(e,t,n,r){return(e=Tp(7,e,r,t)).lanes=n,e}function Mp(e,t,n,r){return(e=Tp(22,e,r,t)).elementType=Rr,e.lanes=n,e.stateNode={isHidden:!1},e}function Lp(e,t,n){return(e=Tp(6,e,null,t)).lanes=n,e}function Pp(e,t,n){return(t=Tp(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ip(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=fi(0),this.expirationTimes=fi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Dp(e,t,n,r,o,i,l,a,s){return e=new Ip(e,t,n,a,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Tp(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Su(i),e}function $p(e){if(!e)return ws;e:{if(zo(e=e._reactInternals)!==e||1!==e.tag)throw Error(tr(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ts(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(tr(171))}if(1===e.tag){var n=e.type;if(Ts(n))return As(e,n,t)}return t}function zp(e,t,n,r,o,i,l,a,s){return(e=Dp(n,r,!0,e,0,i,0,a,s)).context=$p(null),n=e.current,(i=Nu(r=Xf(),o=qf(n))).callback=null!=t?t:null,Ru(n,i,o),e.current.lanes=o,pi(e,o,r),Zf(e,r),e}function Fp(e,t,n,r){var o=t.current,i=Xf(),l=qf(o);return n=$p(n),null===t.context?t.context=n:t.pendingContext=n,(t=Nu(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ru(o,t,l))&&(Jf(e,o,l,i),Au(e,o,l)),l}function Bp(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wp(e,t){Hp(e,t),(e=e.alternate)&&Hp(e,t)}yf=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Cs.current)md=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return md=!1,function(e,t,n){switch(t.tag){case 3:Cd(t),su();break;case 5:ec(t);break;case 1:Ts(t.type)&&Os(t);break;case 4:Ju(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_s(fu,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_s(nc,1&nc.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Md(e,t,n):(_s(nc,1&nc.current),null!==(e=Fd(e,t,n))?e.sibling:null);_s(nc,1&nc.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return $d(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),_s(nc,nc.current),r)break;return null;case 22:case 23:return t.lanes=0,yd(e,t,n)}return Fd(e,t,n)}(e,t,n);md=0!=(131072&e.flags)}else md=!1,Zs&&0!=(1048576&t.flags)&&Vs(t,Hs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zd(e,t),e=t.pendingProps;var o=Ss(t,Es.current);yu(t,n),o=bc(null,t,r,e,o,n);var i=yc();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,Ts(r)?(i=!0,Os(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Su(t),o.updater=Du,t.stateNode=o,o._reactInternals=t,Bu(t,r,e,n),t=Ed(null,t,r,!0,i,n)):(t.tag=0,Zs&&i&&Qs(t),hd(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zd(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Np(e)?1:0;if(null!=e){if((e=e.$$typeof)===Cr)return 11;if(e===Tr)return 14}return 2}(r),e=du(r,e),o){case 0:t=_d(null,t,r,e,n);break e;case 1:t=wd(null,t,r,e,n);break e;case 11:t=gd(null,t,r,e,n);break e;case 14:t=vd(null,t,r,du(r.type,e),n);break e}throw Error(tr(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,_d(e,t,r,o=t.elementType===r?o:du(r,o),n);case 1:return r=t.type,o=t.pendingProps,wd(e,t,r,o=t.elementType===r?o:du(r,o),n);case 3:e:{if(Cd(t),null===e)throw Error(tr(387));r=t.pendingProps,o=(i=t.memoizedState).element,Tu(e,t),Mu(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=kd(e,t,r,n,o=od(Error(tr(423)),t));break e}if(r!==o){t=kd(e,t,r,n,o=od(Error(tr(424)),t));break e}for(Js=os(t.stateNode.containerInfo.firstChild),qs=t,Zs=!0,eu=null,n=Yu(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(su(),r===o){t=Fd(e,t,n);break e}hd(e,t,r,n)}t=t.child}return t;case 5:return ec(t),null===e&&ou(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,qa(r,o)?l=null:null!==i&&qa(r,i)&&(t.flags|=32),xd(e,t),hd(e,t,l,n),t.child;case 6:return null===e&&ou(t),null;case 13:return Md(e,t,n);case 4:return Ju(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Uu(t,null,r,n):hd(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,gd(e,t,r,o=t.elementType===r?o:du(r,o),n);case 7:return hd(e,t,t.pendingProps,n),t.child;case 8:case 12:return hd(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,_s(fu,r._currentValue),r._currentValue=l,null!==i)if(na(i.value,l)){if(i.children===o.children&&!Cs.current){t=Fd(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=Nu(-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),bu(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(tr(341));l.lanes|=n,null!==(a=l.alternate)&&(a.lanes|=n),bu(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}hd(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,yu(t,n),r=r(o=xu(o)),t.flags|=1,hd(e,t,r,n),t.child;case 14:return o=du(r=t.type,t.pendingProps),vd(e,t,r,o=du(r.type,o),n);case 15:return bd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:du(r,o),zd(e,t),t.tag=1,Ts(r)?(e=!0,Os(t)):e=!1,yu(t,n),zu(t,r,o),Bu(t,r,o,n),Ed(null,t,r,!0,e,n);case 19:return $d(e,t,n);case 22:return yd(e,t,n)}throw Error(tr(156,t.tag))};var jp="function"==typeof reportError?reportError:function(e){console.error(e)};function Kp(e){this._internalRoot=e}function Up(e){this._internalRoot=e}function Yp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Vp(){}function Qp(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=Bp(l);a.call(e)}}Fp(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=Bp(l);i.call(e)}}var l=zp(t,r,e,0,null,!1,0,"",Vp);return e._reactRootContainer=l,e[us]=l.current,$a(8===e.nodeType?e.parentNode:e),lp(),l}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=Bp(s);a.call(e)}}var s=Dp(e,0,!1,null,0,!1,0,"",Vp);return e._reactRootContainer=s,e[us]=s.current,$a(8===e.nodeType?e.parentNode:e),lp((function(){Fp(t,s,n,r)})),s}(n,t,e,o,r);return Bp(l)}Up.prototype.render=Kp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(tr(409));Fp(e,t,null,null)},Up.prototype.unmount=Kp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;lp((function(){Fp(null,e,null,null)})),t[us]=null}},Up.prototype.unstable_scheduleHydration=function(e){if(e){var t=xi();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ri.length&&0!==t&&t<Ri[n].priority;n++);Ri.splice(n,0,e),0===n&&Li(e)}},vi=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ai(t.pendingLanes);0!==n&&(mi(t,1|n),Zf(t,Go()),0==(6&Cf)&&(zf=Go()+500,$s()))}break;case 13:lp((function(){var t=Cu(e,1);if(null!==t){var n=Xf();Jf(t,e,1,n)}})),Wp(e,1)}},bi=function(e){if(13===e.tag){var t=Cu(e,134217728);if(null!==t)Jf(t,e,134217728,Xf());Wp(e,134217728)}},yi=function(e){if(13===e.tag){var t=qf(e),n=Cu(e,t);if(null!==n)Jf(n,e,t,Xf());Wp(e,t)}},xi=function(){return hi},_i=function(e,t){var n=hi;try{return hi=e,t()}finally{hi=n}},bo=function(e,t,n){switch(t){case"input":if(Vr(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=gs(r);if(!o)throw Error(tr(90));jr(r),Vr(r,o)}}}break;case"textarea":to(e,n);break;case"select":null!=(t=n.value)&&Jr(e,!!n.multiple,t,!1)}},Co=ip,ko=lp;var Xp={usingClientEntryPoint:!1,Events:[ms,hs,gs,wo,Eo,ip]},qp={findFiberByHostInstance:ps,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Jp={bundleType:qp.bundleType,version:qp.version,rendererPackageName:qp.rendererPackageName,rendererConfig:qp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ho(e))?null:e.stateNode},findFiberByHostInstance:qp.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 Zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zp.isDisabled&&Zp.supportsFiber)try{ei=Zp.inject(Jp),ti=Zp}catch(N$){}}Qn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xp,Qn.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yp(t))throw Error(tr(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:br,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Qn.createRoot=function(e,t){if(!Yp(e))throw Error(tr(299));var n=!1,r="",o=jp;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Dp(e,1,!1,null,0,n,0,r,o),e[us]=t.current,$a(8===e.nodeType?e.parentNode:e),new Kp(t)},Qn.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(tr(188));throw e=Object.keys(e).join(","),Error(tr(268,e))}return e=null===(e=Ho(t))?null:e.stateNode},Qn.flushSync=function(e){return lp(e)},Qn.hydrate=function(e,t,n){if(!Gp(t))throw Error(tr(200));return Qp(null,e,t,!0,n)},Qn.hydrateRoot=function(e,t,n){if(!Yp(e))throw Error(tr(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=jp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=zp(t,null,e,1,null!=n?n:null,o,0,i,l),e[us]=t.current,$a(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 Up(t)},Qn.render=function(e,t,n){if(!Gp(t))throw Error(tr(200));return Qp(null,e,t,!1,n)},Qn.unmountComponentAtNode=function(e){if(!Gp(e))throw Error(tr(40));return!!e._reactRootContainer&&(lp((function(){Qp(null,null,e,!1,(function(){e._reactRootContainer=null,e[us]=null}))})),!0)},Qn.unstable_batchedUpdates=ip,Qn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gp(n))throw Error(tr(200));if(null==e||void 0===e._reactInternals)throw Error(tr(38));return Qp(e,t,n,!1,r)},Qn.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)}}(),Vn.exports=Qn;var em,tm=Vn.exports,nm=r(tm),rm=tm;em=rm.createRoot,rm.hydrateRoot;const om=H.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 im={},lm={},am={},sm={};let um={},cm={},dm={},fm={},pm={},mm={},hm={},gm={},vm={},bm={},ym={},xm={},_m={},wm={},Em={},Cm={},km={},Sm={},Tm={},Nm={},Rm={},Am={},Om={},Mm={},Lm={},Pm={},Im={},Dm={},$m={},zm={},Fm={},Bm={},Hm={},Wm={},jm={};function Km(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 Um="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Ym=Um&&"documentMode"in document?document.documentMode:null,Gm=Um&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Vm=Um&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Qm=!(!Um||!("InputEvent"in window)||Ym)&&"getTargetRanges"in new window.InputEvent("input"),Xm=Um&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),qm=Um&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Jm=Um&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Zm=Um&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Jm,eh=Xm||qm||Zm?" ":"",th=Vm?" ":eh,nh=/^[^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]/,rh=/^[^\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]/,oh={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},ih={directionless:1,unmergeable:2},lh={center:2,end:6,justify:4,left:1,right:3,start:5},ah={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},sh={normal:0,segmented:2,token:1},uh={0:"normal",2:"segmented",1:"token"},ch=!1,dh=0;function fh(e){dh=e.timeStamp}function ph(e,t,n){return t.__lexicalLineBreak===e||void 0!==e[`__lexicalKey_${n._key}`]}function mh(e,t,n){ch=!0;let r=100<performance.now()-dh;try{Mb(e,(()=>{let o=ab()||function(e){return e.getEditorState().read((()=>{let e=ab();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=zh(m,a);if(!(null===h&&m!==l||Pb(h)))if("characterData"===p){if(f=r&&Dv(h))e:{p=m;var g=h;if(Uv(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=pg(e._window))&&g.anchorNode===m&&(f=g.anchorOffset,p=g.focusOffset),null!==(m=m.nodeValue)&&Vh(h,m,f,p,!1))}else if("childList"===p){for(u=!0,p=f.addedNodes,g=0;g<p.length;g++){var b=$h(v=p[g]),y=v.parentNode;null==y||v===s||null!==b||"BR"===v.nodeName&&ph(v,y,e)||(Vm&&(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&&ph(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(Db(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 Dv(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||ph(h,s,e)||m.removeChild(h);n.takeRecords()}null!==o&&(u&&(o.dirty=!0,Wh(o)),Vm&&eg(e)&&o.insertRawText(c))}))}finally{ch=!1}}function hh(e){let t=e._observer;if(null!==t){mh(e,t.takeRecords(),t)}}function gh(e){0===dh&&ig(e).addEventListener("textInput",fh,!0),e._observer=new MutationObserver(((t,n)=>{mh(e,t,n)}))}function vh(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 bh(e,t){let n=e.mergeWithSibling(t),r=Eb()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function yh(e){if(""===e.__text&&e.isSimpleText()&&!e.isUnmergeable())e.remove();else{for(var t;null!==(t=e.getPreviousSibling())&&Dv(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){vh(t,e)&&(e=bh(t,e));break}t.remove()}for(var n;null!==(n=e.getNextSibling())&&Dv(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){vh(e,n)&&bh(e,n);break}n.remove()}}}function xh(e){return _h(e.anchor),_h(e.focus),e}function _h(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),Dv(t)){e.set(t.__key,n?t.getTextContentSize():0,"text");break}if(!Db(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element")}}let wh=1,Eh="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function Ch(e){let t=document.activeElement;if(null===t)return!1;let n=t.nodeName;return Pb(zh(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==t.__lexicalEditor)}function kh(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!Ch(t)&&Sh(t)===e}catch(e){return!1}}function Sh(e){for(;null!=e;){let t=e.__lexicalEditor;if(null!=t)return t;e=rg(e)}return null}function Th(e){return e.isToken()||e.isSegmented()}function Nh(e){for(;null!=e;){if(3===e.nodeType)return e;e=e.firstChild}return null}function Rh(e,t,n){return e&(t=oh[t])&&(null===n||0==(n&t))?e^t:null===n||n&t?e|t:e}function Ah(e){return Dv(e)||xv(e)||Pb(e)}function Oh(e,t){if(null!=t)e.__key=t;else{_b(),99<bb&&Km(14),t=Eb();var n=wb(),r=""+wh++;n._nodeMap.set(r,e),Db(e)?t._dirtyElements.set(r,!0):t._dirtyLeaves.add(r),t._cloneNotNeeded.add(r),t._dirtyType=1,e.__key=r}}function Mh(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 Lh(e){99<bb&&Km(14);var t=e.getLatest(),n=t.__parent,r=wb();let o=Eb(),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,Db(e)?r.set(t,!0):o._dirtyLeaves.add(t)}function Ph(e){_b();var t=Eb();let n=t._compositionKey;e!==n&&(t._compositionKey=e,null!==n&&(null!==(t=Dh(n))&&t.getWritable()),null!==e&&(null!==(e=Dh(e))&&e.getWritable()))}function Ih(){return xb()?null:Eb()._compositionKey}function Dh(e,t){return void 0===(e=(t||wb())._nodeMap.get(e))?null:e}function $h(e,t){return void 0!==(e=e[`__lexicalKey_${Eb()._key}`])?Dh(e,t):null}function zh(e,t){for(;null!=e;){let n=$h(e,t);if(null!==n)return n;e=rg(e)}return null}function Fh(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t}function Bh(e){return e.read((()=>Hh().getTextContent()))}function Hh(){return wb()._nodeMap.get("root")}function Wh(e){_b();let t=wb();null!==e&&(e.dirty=!0,e._cachedNodes=null),t._selection=e}function jh(e){var t,n=Eb();e:{for(t=e;null!=t;){let e=t[`__lexicalKey_${n._key}`];if(void 0!==e){t=e;break e}t=rg(t)}t=null}return null===t?e===(n=n.getRootElement())?Dh("root"):null:Dh(t)}function Kh(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Uh(e){let t=[];for(;null!==e;)t.push(e),e=e._parentEditor;return t}function Yh(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Gh(e,t,n){if(null!==(t=pg(t._window))){var r=t.anchorNode,{anchorOffset:o,focusOffset:i}=t;if(null!==r&&(t=3===r.nodeType?r.nodeValue:null,r=zh(r),null!==t&&Dv(r))){if(t===eh&&n){t=n,i=o=n.length}null!==t&&Vh(r,t,o,i,e)}}}function Vh(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]===eh&&(c=t.slice(0,-1)),t=i.getTextContent(),o||c!==t)if(""===c)if(Ph(null),Xm||qm||Zm)i.remove();else{let e=Eb();setTimeout((()=>{e.update((()=>{i.isAttached()&&i.remove()}))}),20)}else{o=i.getParent(),t=sb();var l=i.getTextContentSize(),a=Ih(),s=i.getKey();i.isToken()||null!==a&&s===a&&!u||Uv(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():(Uv(e=ab())&&null!==n&&null!==r&&(e.setTextNodeRange(i,n,i,r),i.isSegmented()&&(n=Iv(n=i.getTextContent()),i.replace(n),i=n)),i.setTextContent(c))}}}function Qh(){var e=Hh();Wh(xh(e=e.select(0,e.getChildrenSize())))}function Xh(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 qh(e,t,n,r,o){0!==n.size&&(n=r.__type,r=r.__key,void 0===(t=t.get(n))&&Km(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 Jh(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 Zh(e,t){var n=e.offset;return"element"===e.type?Jh(e=e.getNode(),t,n):(e=e.getNode(),t&&0===n||!t&&n===e.getTextContentSize()?null===(n=t?e.getPreviousSibling():e.getNextSibling())?Jh(e.getParentOrThrow(),t,e.getIndexWithinParent()+(t?0:1)):n:null)}function eg(e){return"insertFromPaste"===(e=(e=ig(e).event)&&e.inputType)||"insertFromPasteAsQuotation"===e}function tg(e){return!Fb(e)&&!e.isLastChild()&&!e.isInline()}function ng(e,t){return void 0===(e=e._keyToDOMMap.get(t))&&Km(75,t),e}function rg(e){return null!==(e=e.assignedSlot||e.parentElement)&&11===e.nodeType?e.host:e}function og(e,t){for(e=e.getParent();null!==e;){if(e.is(t))return!0;e=e.getParent()}return!1}function ig(e){return null===(e=e._window)&&Km(78),e}function lg(e){for(e=e.getParentOrThrow();null!==e&&!ag(e);)e=e.getParentOrThrow();return e}function ag(e){return Fb(e)||Db(e)&&e.isShadowRoot()}function sg(e){return Oh(e=e.constructor.clone(e),null),e}function ug(e){var t=Eb();let n=e.constructor.getType();return void 0===(t=t._nodes.get(n))&&Km(97),null!==(t=t.replace)?((t=t(e))instanceof e.constructor||Km(98),t):e}function cg(e,t){!Fb(e=e.getParent())||Db(t)||Pb(t)||Km(99)}function dg(e){return(Pb(e)||Db(e)&&!e.canBeEmpty())&&!e.isInline()}function fg(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null,null!==(t=e.parentElement)&&t.removeChild(e)}function pg(e){return Um?(e||window).getSelection():null}function mg(e,t){let n=e.getChildAtIndex(t);null==n&&(n=e),ag(e)&&Km(102);let r=e=>{const t=e.getParentOrThrow(),o=ag(t),i=e!==n||o?sg(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 hg(e,t){for(;e!==Hh()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function gg(e){let t=[],n=[e];for(;0<n.length;){let r=n.pop();void 0===r&&Km(112),Db(r)&&n.unshift(...r.getChildren()),r!==e&&t.push(r)}return t}function vg(e,t,n,r,o,i){for(e=e.getFirstChild();null!==e;){let l=e.__key;e.__parent===t&&(Db(e)&&vg(e,l,n,r,o,i),n.has(l)||i.delete(l),o.push(l)),e=e.getNextSibling()}}let bg,yg,xg,_g,wg,Eg,Cg,kg,Sg,Tg,Ng="",Rg="",Ag="",Og=!1,Mg=!1,Lg=null;function Pg(e,t){let n=Cg.get(e);if(null!==t){let n=Vg(e);n.parentNode===t&&t.removeChild(n)}kg.has(e)||yg._keyToDOMMap.delete(e),Db(n)&&Ig(e=Kg(n,Cg),0,e.length-1,null),void 0!==n&&qh(Tg,xg,_g,n,"destroyed")}function Ig(e,t,n,r){for(;t<=n;++t){let n=e[t];void 0!==n&&Pg(n,r)}}function Dg(e,t){e.setProperty("text-align",t)}function $g(e,t){var n=bg.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 zg(e,t){e=e.style,0===t?Dg(e,""):1===t?Dg(e,"left"):2===t?Dg(e,"center"):3===t?Dg(e,"right"):4===t?Dg(e,"justify"):5===t?Dg(e,"start"):6===t&&Dg(e,"end")}function Fg(e,t,n){let r=kg.get(e);void 0===r&&Km(60);let o=r.createDOM(bg,yg);var i=yg._keyToDOMMap;if(o["__lexicalKey_"+yg._key]=e,i.set(e,o),Dv(r)?o.setAttribute("data-lexical-text","true"):Pb(r)&&o.setAttribute("data-lexical-decorator","true"),Db(r)){if(e=r.__indent,i=r.__size,0!==e&&$g(o,e),0!==i){--i,e=Kg(r,kg);var l=Rg;Rg="",Bg(e,r,0,i,o,null),jg(r,o),Rg=l}0!==(e=r.__format)&&zg(o,e),r.isInline()||Wg(null,r,o),tg(r)&&(Ng+="\n\n",Ag+="\n\n")}else i=r.getTextContent(),Pb(r)?(null!==(l=r.decorate(yg,bg))&&Yg(e,l),o.contentEditable="false"):Dv(r)&&(r.isDirectionless()||(Rg+=i)),Ng+=i,Ag+=i;return null!==t&&(null!=n?t.insertBefore(o,n):null!=(n=t.__lexicalLineBreak)?t.insertBefore(o,n):t.appendChild(o)),qh(Tg,xg,_g,r,"created"),o}function Bg(e,t,n,r,o,i){let l=Ng;for(Ng="";n<=r;++n)Fg(e[n],o,i);tg(t)&&(Ng+="\n\n"),o.__lexicalTextContent=Ng,Ng=l+Ng}function Hg(e,t){return xv(e=t.get(e))||Pb(e)&&e.isInline()}function Wg(e,t,n){e=null!==e&&(0===e.__size||Hg(e.__last,Cg)),t=0===t.__size||Hg(t.__last,kg),e?t||(null!=(t=n.__lexicalLineBreak)&&n.removeChild(t),n.__lexicalLineBreak=null):t&&(t=document.createElement("br"),n.__lexicalLineBreak=t,n.appendChild(t))}function jg(e,t){var n=t.__lexicalDir;if(t.__lexicalDirTextContent!==Rg||n!==Lg){let i=""===Rg;if(i)var r=Lg;else r=Rg,r=nh.test(r)?"rtl":rh.test(r)?"ltr":null;if(r!==n){let l=t.classList,a=bg.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),Mg||(e.getWritable().__dir=r)}Lg=r,t.__lexicalDirTextContent=Rg,t.__lexicalDir=r}}function Kg(e,t){let n=[];for(e=e.__first;null!==e;){let r=t.get(e);void 0===r&&Km(101),n.push(e),e=r.__next}return n}function Ug(e,t){var n=Cg.get(e),r=kg.get(e);void 0!==n&&void 0!==r||Km(61);var o=Og||Eg.has(e)||wg.has(e);let i=ng(yg,e);if(n===r&&!o)return Db(n)?(void 0!==(r=i.__lexicalTextContent)&&(Ng+=r,Ag+=r),void 0!==(r=i.__lexicalDirTextContent)&&(Rg+=r)):(r=n.getTextContent(),Dv(n)&&!n.isDirectionless()&&(Rg+=r),Ag+=r,Ng+=r),i;if(n!==r&&o&&qh(Tg,xg,_g,r,"updated"),r.updateDOM(n,i,bg))return r=Fg(e,null,null),null===t&&Km(62),t.replaceChild(r,i),Pg(e,null),r;if(Db(n)&&Db(r)){if((e=r.__indent)!==n.__indent&&$g(i,e),(e=r.__format)!==n.__format&&zg(i,e),o){e=r,o=Rg,Rg="",t=Ng;var l=n.__size,a=e.__size;if(Ng="",1===l&&1===a){var s=n.__first,u=e.__first;if(s===u)Ug(s,i);else{var c=Vg(s);u=Fg(u,null,null),i.replaceChild(u,c),Pg(s,null)}}else{u=Kg(n,Cg);var d=Kg(e,kg);if(0===l)0!==a&&Bg(d,e,0,a-1,i,null);else if(0===a)0!==l&&(Ig(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=Gg(Ug(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=ng(yg,e))===t?t=Gg(Ug(e,i)):(null!=t?i.insertBefore(p,t):i.appendChild(p),Ug(e,i)),n++):Fg(e,i,t),a++):(t=Gg(Vg(p)),Pg(p,i),n++)}}c=a>l,(s=n>d)&&!c?Bg(u,e,a,l,i,s=void 0===(s=u[l+1])?null:yg.getElementByKey(s)):c&&!s&&Ig(f,n,d,i)}}tg(e)&&(Ng+="\n\n"),i.__lexicalTextContent=Ng,Ng=t+Ng,jg(e,i),Rg=o,Fb(r)||r.isInline()||Wg(n,r,i)}tg(r)&&(Ng+="\n\n",Ag+="\n\n")}else n=r.getTextContent(),Pb(r)?null!==(o=r.decorate(yg,bg))&&Yg(e,o):Dv(r)&&!r.isDirectionless()&&(Rg+=n),Ng+=n,Ag+=n;return!Mg&&Fb(r)&&r.__cachedText!==Ag&&((r=r.getWritable()).__cachedText=Ag),i}function Yg(e,t){let n=yg._pendingDecorators,r=yg._decorators;if(null===n){if(r[e]===t)return;n=Fh(yg)}n[e]=t}function Gg(e){return null!==(e=e.nextSibling)&&e===yg._blockCursorElement&&(e=e.nextSibling),e}function Vg(e){let t=Sg.get(e);return void 0===t&&Km(75,e),t}let Qg=Object.freeze({}),Xg=[["keydown",function(e,t){if(qg=e.timeStamp,Jg=e.keyCode,!t.isComposing()){var{keyCode:n,shiftKey:r,ctrlKey:o,metaKey:i,altKey:l}=e;if(!Rb(t,wm,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)ov=!0,Rb(t,Rm,e);else if(32===n)Rb(t,Am,e);else if(Gm&&o&&79===n)e.preventDefault(),ov=!0,Rb(t,fm,!0);else if(13!==n||r)if(Gm?l||i||!(8===n||72===n&&o):o||l||i||8!==n)if(27===n)Rb(t,Mm,e);else if(Gm?r||l||i||!(46===n||68===n&&o):o||l||i||46!==n)if(8===n&&(Gm?l:o))e.preventDefault(),Rb(t,vm,!0);else if(46===n&&(Gm?l:o))e.preventDefault(),Rb(t,vm,!1);else if(Gm&&i&&8===n)e.preventDefault(),Rb(t,bm,!0);else if(Gm&&i&&46===n)e.preventDefault(),Rb(t,bm,!1);else if(66===n&&!l&&(Gm?i:o))e.preventDefault(),Rb(t,ym,"bold");else if(85===n&&!l&&(Gm?i:o))e.preventDefault(),Rb(t,ym,"underline");else if(73===n&&!l&&(Gm?i:o))e.preventDefault(),Rb(t,ym,"italic");else if(9!==n||l||o||i)if(90===n&&!r&&(Gm?i:o))e.preventDefault(),Rb(t,xm,void 0);else{var a=Gm?90===n&&i&&r:89===n&&o||90===n&&o&&r;a?(e.preventDefault(),Rb(t,_m,void 0)):Qv(t._editorState._selection)?(a=!r&&(67===n&&(Gm?i:o)))?(e.preventDefault(),Rb(t,Fm,e)):(a=!r&&(88===n&&(Gm?i:o)))?(e.preventDefault(),Rb(t,Bm,e)):65===n&&(Gm?i:o)&&(e.preventDefault(),t.update((()=>{Qh()}))):!Vm&&65===n&&(Gm?i:o)&&(e.preventDefault(),t.update((()=>{Qh()})))}else Rb(t,Pm,e);else 46===n?Rb(t,Lm,e):(e.preventDefault(),Rb(t,dm,!1));else 8===n?Rb(t,Om,e):(e.preventDefault(),Rb(t,dm,!0));else ov=!1,Rb(t,Rm,e);else Rb(t,Nm,e);else Rb(t,Tm,e);else Rb(t,Sm,e);else Rb(t,km,e);else Rb(t,Cm,e);else Rb(t,Em,e);(o||r||l||i)&&Rb(t,jm,e)}}}],["pointerdown",function(e,t){let n=e.target;e=e.pointerType,n instanceof Node&&"touch"!==e&&Mb(t,(()=>{Pb(zh(n))||(rv=!0)}))}],["compositionstart",function(e,t){Mb(t,(()=>{let n=ab();if(Uv(n)&&!t.isComposing()){let r=n.anchor,o=n.anchor.getNode();Ph(r.key),(e.timeStamp<qg+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||o.getStyle()!==n.style)&&Rb(t,mm,th)}}))}],["compositionend",function(e,t){Vm?iv=!0:Mb(t,(()=>{dv(t,e.data)}))}],["input",function(e,t){e.stopPropagation(),Mb(t,(()=>{var n=ab(),r=e.data,o=cv(e);if(null!=r&&Uv(n)&&av(n,o,r,e.timeStamp,!1)){iv&&(dv(t,r),iv=!1);var i=n.anchor,l=i.getNode();if(null===(o=pg(t._window)))return;let a=i.offset;(i=Qm&&!n.isCollapsed()&&Dv(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||Rb(t,mm,r),r=r.length,Vm&&1<r&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=r),Xm||qm||Zm||!t.isComposing()||(qg=0,Ph(null))}else Gh(!1,t,null!==r?r:void 0),iv&&(dv(t,r||void 0),iv=!1);_b(),hh(n=Eb())})),ev=null}],["click",function(e,t){Mb(t,(()=>{let n=ab();var r=pg(t._window);let o=sb();if(r)if(Uv(n)){let t=n.anchor;var i=t.getNode();"element"===t.type&&0===t.offset&&n.isCollapsed()&&!Fb(i)&&1===Hh().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o)?(r.removeAllRanges(),n.dirty=!0):3!==e.detail||n.isCollapsed()||i!==(r=n.focus.getNode())&&(Db(i)?i.select(0):i.getParentOrThrow().select(0))}else"touch"===e.pointerType&&(null!==(i=r.anchorNode)&&(1===(i=i.nodeType)||3===i))&&Wh(r=lb(o,r,t));Rb(t,cm,e)}))}],["cut",Qg],["copy",Qg],["dragstart",Qg],["dragover",Qg],["dragend",Qg],["paste",Qg],["focus",Qg],["blur",Qg],["drop",Qg]];Qm&&Xg.push(["beforeinput",(e,t)=>function(e,t){let n=e.inputType,r=cv(e);"deleteCompositionText"===n||Vm&&eg(t)||"insertCompositionText"!==n&&Mb(t,(()=>{let o=ab();if("deleteContentBackward"===n){if(null===o){var i=sb();if(!Uv(i))return;Wh(i.clone())}if(Uv(o))return void(229===Jg&&e.timeStamp<qg+30&&t.isComposing()&&o.anchor.key===o.focus.key?(Ph(null),qg=0,setTimeout((()=>{Mb(t,(()=>{Ph(null)}))}),30),Uv(o)&&(i=o.anchor.getNode(),i.markDirty(),o.format=i.getFormat(),o.style=i.getStyle())):(e.preventDefault(),Rb(t,dm,!0)))}if(Uv(o)){i=e.data,null!==ev&&Gh(!1,t,ev),o.dirty&&null===ev||!o.isCollapsed()||Fb(o.anchor.getNode())||null===r||o.applyDOMRange(r),ev=null;var l=o.focus,a=o.anchor.getNode();if(l=l.getNode(),"insertText"===n||"insertTranspose"===n)"\n"===i?(e.preventDefault(),Rb(t,fm,!1)):"\n\n"===i?(e.preventDefault(),Rb(t,pm,void 0)):null==i&&e.dataTransfer?(i=e.dataTransfer.getData("text/plain"),e.preventDefault(),o.insertRawText(i)):null!=i&&av(o,r,i,e.timeStamp,!0)?(e.preventDefault(),Rb(t,mm,i)):ev=i,Zg=e.timeStamp;else switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Rb(t,mm,e);break;case"insertFromComposition":Ph(null),Rb(t,mm,e);break;case"insertLineBreak":Ph(null),Rb(t,fm,!1);break;case"insertParagraph":Ph(null),ov&&!qm?(ov=!1,Rb(t,fm,!1)):Rb(t,pm,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Rb(t,hm,e);break;case"deleteByComposition":(function(e,t){return e!==t||Db(e)||Db(t)||!e.isToken()||!t.isToken()})(a,l)&&Rb(t,gm,e);break;case"deleteByDrag":case"deleteByCut":Rb(t,gm,e);break;case"deleteContent":Rb(t,dm,!1);break;case"deleteWordBackward":Rb(t,vm,!0);break;case"deleteWordForward":Rb(t,vm,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Rb(t,bm,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Rb(t,bm,!1);break;case"formatStrikeThrough":Rb(t,ym,"strikethrough");break;case"formatBold":Rb(t,ym,"bold");break;case"formatItalic":Rb(t,ym,"italic");break;case"formatUnderline":Rb(t,ym,"underline");break;case"historyUndo":Rb(t,xm,void 0);break;case"historyRedo":Rb(t,_m,void 0)}}}))}(e,t)]);let qg=0,Jg=0,Zg=0,ev=null,tv=0,nv=!1,rv=!1,ov=!1,iv=!1,lv=[0,"",0,"root",0];function av(e,t,n,r,o){let i=e.anchor,l=e.focus,a=i.getNode();var s=Eb();let u=pg(s._window),c=null!==u?u.anchorNode:null,d=i.key;s=s.getElementByKey(d);let f=n.length;return d!==l.key||!Dv(a)||(!o&&(!Qm||Zg<r+50)||a.isDirty()&&2>f||Kh(n))&&i.offset!==l.offset&&!a.isComposing()||Th(a)||a.isDirty()&&1<f||(o||!Qm)&&null!==s&&!a.isComposing()&&c!==Nh(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=(Dv(t=t.getPreviousSibling())||Db(t)&&t.isInline())&&!t.canInsertTextAfter()),e):e===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()||r)}(e,a)}function sv(e,t){return null!==e&&null!==e.nodeValue&&3===e.nodeType&&0!==t&&t!==e.nodeValue.length}function uv(e,t,n){let{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:l}=e;nv&&(nv=!1,sv(r,o)&&sv(i,l))||Mb(t,(()=>{if(n){if(kh(t,r,i)){var o=ab();if(Uv(o)){var l=o.anchor,a=l.getNode();if(o.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(o.dirty=!0);var s=ig(t).event;s=s?s.timeStamp:performance.now();let[n,r,i,u,c]=lv;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(Dv(e)&&(a=!0,0===(l&=e.getFormat())))break}o.format=a?l:0}}Rb(t,um,void 0)}}else Wh(null)}))}function cv(e){return e.getTargetRanges?0===(e=e.getTargetRanges()).length?null:e[0]:null}function dv(e,t){var n=e._compositionKey;if(Ph(null),null!==n&&null!=t){if(""===t)return t=Dh(n),void(null!==(e=Nh(e.getElementByKey(n)))&&null!==e.nodeValue&&Dv(t)&&Vh(t,e.nodeValue,null,null,!0));if("\n"===t[t.length-1]&&Uv(n=ab()))return t=n.focus,n.anchor.set(t.key,t.offset,t.type),void Rb(e,Rm,null)}Gh(!0,e,t)}function fv(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}let pv=new Map;function mv(e){let t=pg(null==(e=e.target)?null:9===e.nodeType?e.defaultView:e.ownerDocument.defaultView);if(null!==t){var n=Sh(t.anchorNode);if(null!==n){rv&&(rv=!1,Mb(n,(()=>{var e=sb(),r=t.anchorNode;null!==r&&(1===(r=r.nodeType)||3===r)&&Wh(e=lb(e,t,n))})));var r=(e=(e=Uh(n))[e.length-1])._key,o=pv.get(r),i=o||e;i!==n&&uv(t,i,!1),uv(t,n,!0),n!==e?pv.set(r,n):o&&pv.delete(r)}}}function hv(e,t,n){_b();var r=e.__key;let o=e.getParent();if(null!==o){var i=ab();if(Uv(i)&&Db(e)){var{anchor:l,focus:a}=i,s=l.getNode(),u=a.getNode();og(s,e)&&l.set(e.__key,0,"element"),og(u,e)&&a.set(e.__key,0,"element")}if(u=!1,Uv(s=i)&&t){i=s.anchor;let t=s.focus;i.key===r&&(db(i,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0),t.key===r&&(db(t,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0)}else Qv(s)&&t&&e.isSelected()&&e.selectPrevious();Uv(s)&&t&&!u?(r=e.getIndexWithinParent(),Mh(e),ub(s,o,r,-1)):Mh(e),n||ag(o)||o.canBeEmpty()||!o.isEmpty()||hv(o,t),t&&Fb(o)&&o.isEmpty()&&o.selectEnd()}}class gv{static getType(){Km(64,this.name)}static clone(){Km(65,this.name)}constructor(e){this.__type=this.constructor.getType(),this.__next=this.__prev=this.__parent=null,Oh(this,e)}getType(){return this.__type}isAttached(){for(var e=this.__key;null!==e;){if("root"===e)return!0;if(null===(e=Dh(e)))break;e=e.__parent}return!1}isSelected(e){if(null==(e=e||ab()))return!1;let t=e.getNodes().some((e=>e.__key===this.__key));return(Dv(this)||!Uv(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:Dh(e)}getParentOrThrow(){let e=this.getParent();return null===e&&Km(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(ag(t))return e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&Km(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:Dh(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:Dh(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();Db(this)&&t.unshift(this),Db(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=Db(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&&Km(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=Eb()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=Dh(this.__key);return null===e&&Km(113),e}getWritable(){_b();var e=wb(),t=Eb();e=e._nodeMap;let n=this.__key,r=this.getLatest(),o=r.__parent;t=t._cloneNotNeeded;var i=ab();return null!==i&&(i._cachedNodes=null),t.has(n)?(Lh(r),r):((i=r.constructor.clone(r)).__parent=o,i.__next=r.__next,i.__prev=r.__prev,Db(r)&&Db(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):Dv(r)&&Dv(i)&&(i.__format=r.__format,i.__style=r.__style,i.__mode=r.__mode,i.__detail=r.__detail),t.add(n),i.__key=n,Lh(i),e.set(n,i),i)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){Km(70)}updateDOM(){Km(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){Km(72)}static importJSON(){Km(18,this.name)}static transform(){return null}remove(e){hv(this,!0,e)}replace(e,t){_b();var n=ab();null!==n&&(n=n.clone()),cg(this,e);let r=this.getLatest(),o=this.__key,i=e.__key,l=e.getWritable(),a=(e=this.getParentOrThrow().getWritable()).__size;Mh(l);let s=r.getPreviousSibling(),u=r.getNextSibling(),c=r.__prev,d=r.__next,f=r.__parent;return hv(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)})),Uv(n)&&(Wh(n),t=n.anchor,n=n.focus,t.key===o&&Hv(t,l),n.key===o&&Hv(n,l)),Ih()===o&&Ph(i),l}insertAfter(e,t=!0){_b(),cg(this,e);var n=this.getWritable();let r=e.getWritable();var o=r.getParent();let i=ab();var l=!1,a=!1;if(null!==o){var s=e.getIndexWithinParent();Mh(r),Uv(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&&Uv(i)&&(ub(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){_b(),cg(this,e);var n=this.getWritable();let r=e.getWritable(),o=r.__key;Mh(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=ab(),t&&Uv(n)&&ub(n,t=this.getParentOrThrow(),s),e}isParentRequired(){return!1}createParentElementNode(){return Ub()}selectPrevious(e,t){_b();let n=this.getPreviousSibling(),r=this.getParentOrThrow();return null===n?r.select(0,0):Db(n)?n.select():Dv(n)?n.select(e,t):(e=n.getIndexWithinParent()+1,r.select(e,e))}selectNext(e,t){_b();let n=this.getNextSibling(),r=this.getParentOrThrow();return null===n?r.select():Db(n)?n.select(0,0):Dv(n)?n.select(e,t):(e=n.getIndexWithinParent(),r.select(e,e))}markDirty(){this.getWritable()}}let vv=class e extends gv{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:bv,priority:0}}}}static importJSON(){return yv()}exportJSON(){return{type:"linebreak",version:1}}};function bv(){return{node:yv()}}function yv(){return ug(new vv)}function xv(e){return e instanceof vv}function _v(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function wv(e,t){return 1&t?"strong":2&t?"em":"span"}function Ev(e,t,n,r,o){e=r.classList,void 0!==(r=Xh(o,"base"))&&e.add(...r);let i=!1,l=8&t&&4&t;var a=8&n&&4&n;void 0!==(r=Xh(o,"underlineStrikethrough"))&&(a?(i=!0,l||e.add(...r)):l&&e.remove(...r));for(let s in oh)a=oh[s],void 0!==(r=Xh(o,s))&&(n&a&&(!i||"underline"!==s&&"strikethrough"!==s)?(0==(t&a)||l&&"underline"===s||"strikethrough"===s)&&e.add(...r):t&a&&e.remove(...r))}function Cv(e,t,n){let r=t.firstChild;if(e+=(n=n.isComposing())?eh:"",null==r)t.textContent=e;else if((t=r.nodeValue)!==e)if(n||Vm){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 kv(e,t){return(t=document.createElement(t)).appendChild(e),t}let Sv=class e extends gv{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 uh[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Ih()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return 0!=(1&this.getLatest().__detail)}isUnmergeable(){return 0!=(2&this.getLatest().__detail)}hasFormat(e){return e=oh[e],0!=(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Rh(this.getLatest().__format,e,t)}createDOM(e){var t=this.__format,n=_v(0,t);let r=wv(0,t),o=document.createElement(null===n?r:n),i=o;return null!==n&&(i=document.createElement(r),o.appendChild(i)),n=i,Cv(this.__text,n,this),void 0!==(e=e.theme.text)&&Ev(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=_v(0,o);let a=_v(0,i);var s=wv(0,o);let u=wv(0,i);return(null===l?s:l)!==(null===a?u:a)||(l===a&&s!==u?(null==(o=t.firstChild)&&Km(48),Cv(r,e=l=document.createElement(u),this),void 0!==(n=n.theme.text)&&Ev(u,0,i,e,n),t.replaceChild(l,o),!1):(s=t,null!==a&&null!==l&&(null==(s=t.firstChild)&&Km(49)),Cv(r,s,this),void 0!==(n=n.theme.text)&&o!==i&&Ev(u,o,i,s,n),i=this.__style,e.__style!==i&&(t.style.cssText=i),!1))}static importDOM(){return{"#text":()=>({conversion:Av,priority:0}),b:()=>({conversion:Nv,priority:0}),code:()=>({conversion:Pv,priority:0}),em:()=>({conversion:Pv,priority:0}),i:()=>({conversion:Pv,priority:0}),s:()=>({conversion:Pv,priority:0}),span:()=>({conversion:Tv,priority:0}),strong:()=>({conversion:Pv,priority:0}),sub:()=>({conversion:Pv,priority:0}),sup:()=>({conversion:Pv,priority:0}),u:()=>({conversion:Pv,priority:0})}}static importJSON(e){let t=Iv(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=kv(e,"b")),this.hasFormat("italic")&&(e=kv(e,"i")),this.hasFormat("strikethrough")&&(e=kv(e,"s")),this.hasFormat("underline")&&(e=kv(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?oh[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?ih[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){return e=oh[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=sh[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){_b();let n=ab();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,Uv(n)?((r=Ih())!==n.anchor.key&&r!==n.focus.key||Ph(o),n.setTextNodeRange(this,e,this,t),n):ob(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=ab();return r&&Uv(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){_b();var t=this.getLatest(),n=t.getTextContent(),r=t.__key,o=Ih(),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=Iv(u)).__format=s,a.__style=c,a.__detail=d,l=!0):(a=t.getWritable()).__text=u,t=ab(),a=[a],u=u.length;for(let n=1;n<i;n++){var f=e[n],p=f.length;(f=Iv(f).getWritable()).__format=s,f.__style=c,f.__detail=d;let i=f.__key;if(p=u+p,Uv(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&&Ph(i),u=p,a.push(f)}return r=this.getPreviousSibling(),o=this.getNextSibling(),null!==r&&Lh(r),null!==o&&Lh(o),r=n.getWritable(),o=this.getIndexWithinParent(),l?(r.splice(o,0,a),this.remove()):r.splice(o,1,a),Uv(t)&&ub(t,n,o,i-1),a}mergeWithSibling(e){var t=e===this.getPreviousSibling();t||e===this.getNextSibling()||Km(50);var n=this.__key;let r=e.__key,o=this.__text,i=o.length;Ih()===r&&Ph(n);let l=ab();if(Uv(l)){let o=l.anchor,a=l.focus;null!==o&&o.key===r&&(fb(o,t,n,e,i),l.dirty=!0),null!==a&&a.key===r&&(fb(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 Tv(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=>Dv(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 Nv(e){let t="normal"===e.style.fontWeight;return{forChild:e=>(Dv(e)&&!t&&e.toggleFormat("bold"),e),node:null}}let Rv=new WeakMap;function Av(e){null===e.parentElement&&Km(129);for(var t,n=e.textContent||"",r=e.parentNode,o=[e];null!==r&&void 0===(t=Rv.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++)Rv.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(yv()):"\t"===r?e.push(zv()):""!==r&&e.push(Iv(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=Mv(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=Mv(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:Iv(n)}}let Ov=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 Mv(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(Ov)||""!==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 Lv={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Pv(e){let t=Lv[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:e=>(Dv(e)&&!e.hasFormat(t)&&e.toggleFormat(t),e),node:null}}function Iv(e=""){return ug(new Sv(e))}function Dv(e){return e instanceof Sv}let $v=class e extends Sv{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=zv();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(){Km(126)}setDetail(){Km(127)}setMode(){Km(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function zv(){return ug(new $v)}let Fv=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,Db(t)){var o=t.getDescendantByIndex(r);t=null!=o?o:t}return Db(n)&&(o=n.getDescendantByIndex(e),n=null!=o?o:n),t===n?r<e:t.isBefore(n)}getNode(){let e=Dh(this.key);return null===e&&Km(20),e}set(e,t,n){let r=this._selection,o=this.key;this.key=e,this.offset=t,this.type=n,xb()||(Ih()===o&&Ph(e),null!==r&&(r._cachedNodes=null,r.dirty=!0))}};function Bv(e,t){let n=t.__key,r=e.offset,o="element";if(Dv(t))o="text",r>(t=t.getTextContentSize())&&(r=t);else if(!Db(t)){var i=t.getNextSibling();Dv(i)?(n=i.__key,r=0,o="text"):(i=t.getParent())&&(n=i.__key,r=t.getIndexWithinParent()+1)}e.set(n,r,o)}function Hv(e,t){if(Db(t)){let n=t.getLastDescendant();Db(n)||Dv(n)?Bv(e,n):Bv(e,t)}else Bv(e,t)}function Wv(e,t,n,r){let o=e.getNode(),i=o.getChildAtIndex(e.offset),l=Iv(),a=Fb(o)?Ub().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 jv(e,t,n,r){e.key=t,e.offset=n,e.type=r}class Kv{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!Qv(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 Kv(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(Dv(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=Dh(n))&&e.push(t);return xb()||(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 Uv(e){return e instanceof Vv}let Yv=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!!Gv(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 qv(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.focus.getNode();return xh(n.select(0,n.getChildrenSize())).insertNodes(e,t)}getShape(){var e=Dh(this.anchor.key);null===e&&Km(21);var t=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var n=Dh(this.focus.key);null===n&&Km(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=hg(n,Qb);var r=hg(t,Qb);Qb(n)||Km(103),Qb(r)||Km(104),Zb(t=n.getParent())||Km(105),qb(t=t.getParent())||Km(106);let[o,i,l]=pb(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]),Zb(p=f.getParent())||Km(107),p!==n&&t.push(p),t.push(f,...gg(f)),n=p;return xb()||(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 Gv(e){return e instanceof Yv}let Vv=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!!Uv(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,Db(e)&&(n=e.getDescendantByIndex(o),e=null!=n?n:e),Db(t)&&(null!==(n=t.getDescendantByIndex(r))&&n!==e&&t.getChildAtIndex(r)===n&&(n=n.getPreviousSibling()),t=null!=n?n:t),e=e.is(t)?Db(e)&&0<e.getChildrenSize()?[]:[e]:e.getNodesBetween(t),xb()||(this._cachedNodes=e),e}setTextNodeRange(e,t,n,r){jv(this.anchor,e.__key,t,"text"),jv(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]=qv(this),s="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(Db(d)&&!d.isInline())u||(s+="\n"),u=!d.isEmpty();else if(u=!1,Dv(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!Pb(d)&&!xv(d)||d===n&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let t=Eb(),n=t.getEditorState()._selection;if(null!==(e=nb(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n))){var[r,o]=e;jv(this.anchor,r.key,r.offset,r.type),jv(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let t=this.anchor,n=this.focus;return new e(new Fv(t.key,t.offset,t.type),new Fv(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=Rh(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){return 0!=(this.format&oh[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(yv()):"\t"===n?t.push(zv()):t.push(Iv(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?Wv(t,n,o,i):r||"element"!==n.type||Wv(n,t,o,i);var l=this.getNodes(),a=l.length,s=r?n:t;n=(r?t:n).offset;var u=s.offset;Dv(t=l[0])||Km(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(Dv(f)&&f.canInsertTextBefore()&&!Th(f)||((f=Iv()).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(Dv(f=t.getPreviousSibling())&&!Th(f)||((f=Iv()).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=Iv(t.getTextContent())).setFormat(o),t.replace(c),t=c;else if(!(this.isCollapsed()||""===e||(f=d.getParent(),c.canInsertTextBefore()&&c.canInsertTextAfter()&&(!Db(f)||f.canInsertTextBefore()&&f.canInsertTextAfter()))))return this.insertText(""),tb(this.anchor,this.focus,null),void this.insertText(e);if(1===a)if(t.isToken())(e=Iv(e)).select(),t.replace(e);else{if(l=t.getFormat(),a=t.getStyle(),n===u&&(l!==o||a!==i)){if(""!==t.getTextContent())return(l=Iv(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=Db(t)?t:t.getParentOrThrow(),i=Db(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?Dv(d)&&!d.isToken()&&u!==d.getTextContentSize()?(d.isSegmented()&&(s=Iv(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)||Db(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=Iv(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),Ph(null);else{var t=this.getNodes(),n=[];for(var r of t)Dv(r)&&n.push(r);var o=n.length;if(0===o)this.toggleFormat(e),Ph(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=Iv();this.focus.getNode().insertBefore(o)}else this.focus.key===n&&this.focus.offset===this.focus.getNode().getChildrenSize()&&(o=Iv(),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=ag(i)?null:i.getTopLevelElementOrThrow();if(Dv(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(ag(r)||Pb(r)||!Db(c)||c.isInline())s&&!Db(c)&&!Pb(c)&&ag(r.getParent())&&Km(28);else{if(c.is(l)){if(Db(r)&&r.isEmpty()&&r.canReplaceWith(c)){r.replace(c),r=c,s=!0;continue}if(Ah(s=c.getFirstDescendant())){for(var d=s.getParentOrThrow();d.isInline();)d=d.getParentOrThrow();if(s=(u=d.getChildren()).length,Db(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}}Dv(r)&&(null===a&&Km(27),r=a)}s=!1,Db(r)&&!r.isInline()?(u=c,Pb(c)&&!c.isInline()?r=r.insertAfter(c,!1):Db(c)?!c.canBeEmpty()&&c.isEmpty()||(Fb(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)):!Db(c)||Db(c)&&c.isInline()||Pb(r)&&!r.isInline()?(u=c,Uv(this)&&Pb(c)&&(Db(r)||Dv(r))&&!c.isInline()?(Dv(r)?(d=r.getParentOrThrow(),[r]=r.splitText(n),r=r.getIndexWithinParent()+1):(d=r,r=n),[,r]=mg(d,r),r=r.insertBefore(c)):r=r.insertAfter(c,!1)):(c=r.getParentOrThrow(),xv(r)&&r.remove(),r=c,t--)}if(t&&(Dv(i)?i.select():Dv(e=r.getPreviousSibling())?e.select():(e=r.getIndexWithinParent(),r.getParentOrThrow().select(e,e))),Db(r)){if(e=Dv(u)?u:Db(u)&&u.isInline()?u.getLastDescendant():r.getLastDescendant(),t||(null===e?r.select():Dv(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(),!Db(r)||rb(n)||Pb(n)&&(!n.isInline()||n.isIsolated())?Db(r)||rb(n)?Db(n)&&!n.canInsertAfter(r)?(Db(i=a.constructor.clone(a))||Km(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||(Dv(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(ag(i=e.getNode()))return o=Ub(),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(Db(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(Db(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=yv();var n=this.anchor;"element"===n.type&&(Fb(n=n.getNode())&&this.insertParagraph()),e?this.insertNodes([t],!0):this.insertNodes([t])&&t.selectNext(0,0)}getCharacterOffsets(){return qv(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]=qv(this);return 0===t?[]:1===t?Dv(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),Dv(i)&&((r=t?a:s)===i.getTextContentSize()?e.shift():0!==r&&([,i]=i.splitText(r),e[0]=i)),Dv(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=Zh(r,t);if(Pb(l)&&!l.isIsolated())i&&l.isKeyboardSelectable()?((t=ib()).add(l.__key),Wh(t)):Dv(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(),Db(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=pg((o=Eb())._window)){var a=o._blockCursorElement,s=o._rootElement;if(null===s||null===a||!Db(l)||l.isInline()||l.canBeEmpty()||fg(a,o,s),r.modify(e,t?"backward":"forward",n),0<r.rangeCount&&(l=r.getRangeAt(0),o=Fb(o=this.anchor.getNode())?o:lg(o),this.applyDOMRange(l),this.dirty=!0,!i)){for(i=this.getNodes(),e=[],n=!1,a=0;a<i.length;a++)og(s=i[a],o)?e.push(s):n=!0;n&&0<e.length&&(t?Db(t=e[0])?t.selectStart():t.getParentOrThrow().selectStart():Db(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,jv(i,t.key,t.offset,t.type),jv(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&&Db(o)&&n.offset===o.getChildrenSize()||"text"===n.type&&n.offset===o.getTextContentSize())){var i=o.getParent();if(Db(i=o.getNextSibling()||(null===i?null:i.getNextSibling()))&&i.isShadowRoot())return}if(Pb(i=Zh(r,e))&&!i.isIsolated())return void(i.isKeyboardSelectable()&&Db(o)&&0===o.getChildrenSize()?(o.remove(),e=ib(),e.add(i.__key),Wh(e)):(i.remove(),Eb().dispatchCommand(um,void 0)));if(!e&&Db(i)&&Db(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 Jv(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 Jv(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)&&(Kh(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()&&Fb(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 Qv(e){return e instanceof Kv}function Xv(e){let t=e.offset;return"text"===e.type?t:t===(e=e.getNode()).getChildrenSize()?e.getTextContent().length:0}function qv(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]:[Xv(t),Xv(e)]}function Jv(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 Zv(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--,Dv(r=jh(s)))o=a?r.getTextContentSize():0;else{if(null===(i=jh(e)))return null;if(Db(i)?((t=Db(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=Db(e=n)?e:e.getParentOrThrow()),Dv(e)?(r=e,i=null,o=a?e.getTextContentSize():0):e!==i&&a&&!l&&o++):(o=i.getIndexWithinParent(),o=0===t&&Pb(i)&&jh(e)===i?o:o+1,i=i.getParentOrThrow()),Db(i))return new Fv(i.__key,o,"element")}}else r=jh(e);return Dv(r)?new Fv(r.__key,o,"text"):null}function eb(e,t,n){var r=e.offset,o=e.getNode();0===r?(r=o.getPreviousSibling(),o=o.getParent(),t?(n||!t)&&null===r&&Db(o)&&o.isInline()&&(Dv(t=o.getPreviousSibling())&&(e.key=t.__key,e.offset=t.getTextContent().length)):Db(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):Dv(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)):r===o.getTextContent().length&&(r=o.getNextSibling(),o=o.getParent(),t&&Db(r)&&r.isInline()?(e.key=r.__key,e.offset=0,e.type="element"):(n||t)&&null===r&&Db(o)&&o.isInline()&&!o.canInsertTextAfter()&&(Dv(t=o.getNextSibling())&&(e.key=t.__key,e.offset=0)))}function tb(e,t,n){if("text"===e.type&&"text"===t.type){var r=e.isBefore(t);let o=e.is(t);eb(e,r,o),eb(t,!r,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type),(r=Eb()).isComposing()&&r._compositionKey!==e.key&&Uv(n)&&(r=n.anchor,n=n.focus,jv(e,r.key,r.offset,r.type),jv(t,n.key,n.offset,n.type))}}function nb(e,t,n,r,o,i){return null!==e&&null!==n&&kh(o,e,n)?null===(t=Zv(e,t,Uv(i)?i.anchor:null,o))||null===(r=Zv(n,r,Uv(i)?i.focus:null,o))||"element"===t.type&&"element"===r.type&&(e=jh(e),n=jh(n),Pb(e)&&Pb(n))?null:(tb(t,r,i),[t,r]):null}function rb(e){return Db(e)&&!e.isInline()}function ob(e,t,n,r,o,i){let l=wb();return(e=new Vv(new Fv(e,t,o),new Fv(n,r,i),0,"")).dirty=!0,l._selection=e}function ib(){return new Kv(new Set)}function lb(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=!ch&&(r||"beforeinput"===i||"compositionstart"===i||"compositionend"===i||"click"===i&&o&&3===o.detail||"drop"===i||void 0===i),Uv(e)&&!o)return e.clone();if(null===t)return null;if(o=t.anchorNode,i=t.focusNode,l=t.anchorOffset,t=t.focusOffset,r&&Uv(e)&&!kh(n,o,i))return e.clone();if(null===(n=nb(o,l,i,t,n,e)))return null;let[a,s]=n;return new Vv(a,s,Uv(e)?e.format:0,Uv(e)?e.style:"")}function ab(){return wb()._selection}function sb(){return Eb()._editorState._selection}function ub(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"),cb(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"))}cb(e)}}function cb(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())Db(i)&&(Dv(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(Db(i)){let r=i.getChildrenSize();Dv(n=(e=n>=r)?i.getChildAtIndex(r-1):i.getChildAtIndex(n))&&(i=0,e&&(i=n.getTextContentSize()),t.set(n.__key,i,"text"))}Db(l)&&(Dv(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 db(e,t,n,r,o){let i=null,l=0,a=null;null!==r?(i=r.__key,Dv(r)?(l=r.getTextContentSize(),a="text"):Db(r)&&(l=r.getChildrenSize(),a="element")):null!==o&&(i=o.__key,Dv(o)?a="text":Db(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 fb(e,t,n,r,o){"text"===e.type?(e.key=n,t||(e.offset+=o)):e.offset>r.getIndexWithinParent()&&--e.offset}function pb(e,t,n){let r=[],o=null,i=null;e=e.getChildren();for(let c=0;c<e.length;c++){var l=e[c];Zb(l)||Km(108);var a=l.getChildren();l=0;for(let e of a){for(Qb(e)||Km(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&&Km(110),null===i&&Km(111),[r,o,i]}let mb=null,hb=null,gb=!1,vb=!1,bb=0,yb={characterData:!0,childList:!0,subtree:!0};function xb(){return gb||null!==mb&&mb._readOnly}function _b(){gb&&Km(13)}function wb(){return null===mb&&Km(15),mb}function Eb(){return null===hb&&Km(16),hb}function Cb(e,t,n){var r=t.__type;let o=e._nodes.get(r);for(void 0===o&&Km(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 kb(e,t){var n=e.type,r=t.get(n);if(void 0===r&&Km(17,n),n=r.klass,e.type!==n.getType()&&Km(18,n.name),n=n.importJSON(e),e=e.children,Db(n)&&Array.isArray(e))for(r=0;r<e.length;r++){let o=kb(e[r],t);n.append(o)}return n}function Sb(e,t){let n=mb,r=gb,o=hb;mb=e,gb=!0,hb=null;try{return t()}finally{mb=n,gb=r,hb=o}}function Tb(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=mb,c=gb,d=hb,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!o&&s&&null!==p){hb=e,mb=n,gb=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect();var h=r,g=o;Rg=Ag=Ng="",Og=2===t,Lg=null,yg=e,bg=e._config,xg=e._nodes,_g=yg._listeners.mutation,wg=h,Eg=g,Cg=i._nodeMap,kg=n._nodeMap,Mg=n._readOnly,Sg=new Map(e._keyToDOMMap);let l=new Map;Tg=l,Ug("root",null),Tg=Sg=bg=kg=Cg=Eg=wg=xg=yg=void 0,m=l}catch(t){if(t instanceof Error&&e._onError(t),vb)throw t;return Yb(e,null,r,n),gh(e),e._dirtyType=2,vb=!0,Tb(e,i),void(vb=!1)}finally{p.observe(r,yb),e._updating=f,mb=u,gb=c,hb=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 w,E=e._decorators,C=e._pendingDecorators||E,k=n._nodeMap;for(w in C)k.has(w)||(C===E&&(C=Fh(e)),delete C[w]);var S=o?null:pg(e._window);if(e._editable&&null!==S&&(s||null===a||a.dirty)){hb=e,mb=n;try{if(null!==p&&p.disconnect(),s||null===a||a.dirty){let t=e._blockCursorElement;null!==t&&fg(t,e,r);e:{let t=S.anchorNode,n=S.focusNode,o=S.anchorOffset,i=S.focusOffset,s=document.activeElement;if(!(x.has("collaboration")&&s!==r||null!==s&&Ch(s)))if(Uv(a)){var T=a.anchor,N=a.focus,R=T.key,A=N.key,O=ng(e,R),M=ng(e,A),L=T.offset,P=N.offset,I=a.format,D=a.style,$=a.isCollapsed(),z=O,F=M,B=!1;if("text"===T.type){z=Nh(O);let e=T.getNode();B=e.getFormat()!==I||e.getStyle()!==D}else Uv(l)&&"text"===l.anchor.type&&(B=!0);if("text"===N.type&&(F=Nh(M)),null!==z&&null!==F){if($&&(null===l||B||Uv(l)&&(l.format!==I||l.style!==D))){var H=performance.now();lv=[I,D,L,R,H]}if(o===L&&i===P&&t===z&&n===F&&("Range"!==S.type||!$)&&(null!==s&&r.contains(s)||r.focus({preventScroll:!0}),"element"!==T.type))break e;try{S.setBaseAndExtent(z,L,F,P)}catch(e){}if(!x.has("skip-scroll-into-view")&&a.isCollapsed()&&null!==r&&r===document.activeElement){let t=a instanceof Vv&&"element"===a.anchor.type?z.childNodes[L]||null:0<S.rangeCount?S.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 W,j,{top:K,bottom:U}=n,Y=r;null!==Y;){let t=Y===o.body;if(t)W=0,j=ig(e).innerHeight;else{let e=Y.getBoundingClientRect();W=e.top,j=e.bottom}let n=0;if(K<W?n=-(W-K):U>j&&(n=U-j),0!==n)if(t)i.scrollBy(0,n);else{let e=Y.scrollTop;Y.scrollTop+=n;let t=Y.scrollTop-e;K-=t,U-=t}if(t)break;Y=rg(Y)}}}nv=!0}}else null!==l&&kh(e,t,n)&&S.removeAllRanges()}}e:{let t=e._blockCursorElement;if(Uv(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){dg(o.getChildAtIndex(i-1))&&(s=!0)}else{let t=o.getChildAtIndex(i);if(dg(t)){let n=t.getPreviousSibling();(null===n||dg(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&&fg(t,e,r)}null!==p&&p.observe(r,yb)}finally{hb=d,mb=u}}if(null!==m){var G=m;let t=Array.from(e._listeners.mutation),n=t.length;for(let e=0;e<n;e++){let[n,r]=t[e],o=G.get(r);void 0!==o&&n(o,{dirtyLeaves:v,updateTags:x})}}Uv(a)||null===a||null!==l&&l.is(a)||e.dispatchCommand(um,void 0);var V=e._pendingDecorators;null!==V&&(e._decorators=V,e._pendingDecorators=null,Nb("decorator",e,!0,V));var Q=Bh(t||i),X=Bh(n);if(Q!==X&&Nb("textcontent",e,!0,X),Nb("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 q=e._updates;if(0!==q.length){let t=q.shift();if(t){let[n,r]=t;Ob(e,n,r)}}}}function Nb(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 Rb(e,t,n){if(!1===e._updating||hb!==e){let r=!1;return e.update((()=>{r=Rb(e,t,n)})),r}let r=Uh(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 Ab(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 Ob(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 Wb(new Map((l||n)._nodeMap)),a=!0),l._flushSync=i,i=mb;let s=gb,u=hb,c=e._updating;mb=l,gb=!1,e._updating=!0,hb=e;try{a&&(e._headless?null!=n._selection&&(l._selection=n._selection.clone()):l._selection=function(e){let t=e.getEditorState()._selection,n=pg(e._window);return Qv(t)||Gv(t)?t.clone():lb(t,n,e)}(e));let r=e._compositionKey;t(),o=Ab(e,o),function(e,t){if(t=t.getEditorState()._selection,Uv(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)Dv(t=e.get(n))&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&yh(t)}(l,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements;e=e._nodeMap;let o=Ih(),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)Dv(l=e.get(r))&&l.isAttached()&&l.isSimpleText()&&!l.isUnmergeable()&&yh(l),void 0!==l&&void 0!==l&&l.__key!==o&&l.isAttached()&&Cb(t,l,i),n.add(r);if(a=(l=t._dirtyLeaves).size,0<a){bb++;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()&&Cb(t,l,i),r.set(s,u));a=(l=t._dirtyLeaves).size,u=(s=t._dirtyElements).size,bb++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Ab(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()||(Db(i)&&vg(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(Uv(i)){let e=l._nodeMap,t=i.focus.key;void 0!==e.get(i.anchor.key)&&void 0!==e.get(t)||Km(19)}else Qv(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 Tb(e)}finally{mb=i,gb=s,hb=u,e._updating=c,bb=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,Tb(e)):a&&Eh((()=>{Tb(e)})):(l._flushSync=!1,a&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Mb(e,t,n){e._updating?e._updates.push([t,n]):Ob(e,t,n)}class Lb extends gv{constructor(e){super(e)}decorate(){Km(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Pb(e){return e instanceof Lb}class Ib extends gv{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 ah[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=Eb()._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(Dv(t)&&e.push(t),Db(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;null!==e;){if(Db(e)){let t=e.getFirstChild();if(null!==t){e=t;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;null!==e;){if(Db(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?Db(e=t[n-1])&&e.getLastDescendant()||e||null:Db(e=t[e])&&e.getFirstDescendant()||e||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:Dh(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&Km(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:Dh(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&Km(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(),Db(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(),Db(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return""!==e&&(e=lh[e],0!=(this.getFormat()&e))}select(e,t){_b();let n=ab(),r=e,o=t;var i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){if(Dv(e=this.getFirstChild())||Db(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)&&(Dv(e=this.getLastChild())||Db(e)))return e.select();return void 0===r&&(r=i),void 0===o&&(o=i),i=this.__key,Uv(n)?(n.anchor.set(i,r,"element"),n.focus.set(i,o,"element"),n.dirty=!0,n):ob(i,r,i,o,"element","element")}selectStart(){let e=this.getFirstDescendant();return Db(e)||Dv(e)?e.select(0,0):null!==e?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return Db(e)||Dv(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?lh[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&&Km(100);var m=p.getNextSibling(),h=p.__key;Mh(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--,Mh(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&&Km(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&&Uv(e=ab())){s=new Set(s),a=new Set(a);let{anchor:t,focus:n}=e;$b(t,s,a)&&db(t,t.getNode(),this,c,u),$b(n,s,a)&&db(n,n.getNode(),this,c,u),0!==d||this.canBeEmpty()||ag(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 Db(e){return e instanceof Ib}function $b(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 zb extends Ib{static getType(){return"root"}static clone(){return new zb}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){Km(51)}getTextContent(){let e=this.__cachedText;return!xb()&&0!==Eb()._dirtyType||null===e?super.getTextContent():e}remove(){Km(52)}replace(){Km(53)}insertBefore(){Km(54)}insertAfter(){Km(55)}updateDOM(){return!1}append(...e){for(let t=0;t<e.length;t++){let n=e[t];Db(n)||Pb(n)||Km(56)}return super.append(...e)}static importJSON(e){let t=Hh();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 Fb(e){return e instanceof zb}function Bb(){return new Wb(new Map([["root",new zb]]))}function Hb(e){let t=e.exportJSON();var n=e.constructor;t.type!==n.getType()&&Km(130,n.name);let r=t.children;if(Db(e))for(Array.isArray(r)||Km(59,n.name),e=e.getChildren(),n=0;n<e.length;n++){let t=Hb(e[n]);r.push(t)}return t}class Wb{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 Sb(this,e)}clone(e){return(e=new Wb(this._nodeMap,void 0===e?this._selection:e))._readOnly=!0,e}toJSON(){return Sb(this,(()=>({root:Hb(Hh())})))}}class jb extends Ib{static getType(){return"paragraph"}static clone(e){return new jb(e.__key)}createDOM(e){let t=document.createElement("p");return void 0!==(e=Xh(e.theme,"paragraph"))&&t.classList.add(...e),t}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:Kb,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=Ub();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=Ub();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.getChildren();if(0===e.length||Dv(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 Kb(e){let t=Ub();return e.style&&(t.setFormat(e.style.textAlign),0<(e=parseInt(e.style.textIndent,10)/20)&&t.setIndent(e)),{node:t}}function Ub(){return ug(new jb)}function Yb(e,t,n,r){let o=e._keyToDOMMap;o.clear(),e._editorState=Bb(),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 Gb{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=Yh(),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&&Km(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&&Km(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())&&Km(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))&&Km(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){Mb(e,(()=>{var e=wb();if(!e.isEmpty())if("root"===t)Hh().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 Rb(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=Xh(this._config.theme,"root");var n=this._pendingEditorState||this._editorState;if(this._rootElement=e,Yb(this,t,e,n),null!==t){if(!this._config.disableEvents){0!==tv&&(tv--,0===tv&&t.ownerDocument.removeEventListener("selectionchange",mv));var r=t.__lexicalEditor;if(null!=r){if(null!==r._parentEditor){var o=Uh(r);o=o[o.length-1]._key,pv.get(o)===r&&pv.delete(o)}else pv.delete(r._key);t.__lexicalEditor=null}for(r=fv(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,gh(this),this._updateTags.add("history-merge"),Tb(this),this._config.disableEvents||function(e,t){0===tv&&e.ownerDocument.addEventListener("selectionchange",mv),tv++,e.__lexicalEditor=t;let n=fv(e);for(let r=0;r<Xg.length;r++){let[o,i]=Xg[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 Rb(t,Bm,e);case"copy":return Rb(t,Fm,e);case"paste":return Rb(t,hm,e);case"dragstart":return Rb(t,Dm,e);case"dragover":return Rb(t,$m,e);case"dragend":return Rb(t,zm,e);case"focus":return Rb(t,Hm,e);case"blur":return Rb(t,Wm,e);case"drop":return Rb(t,Im,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),Nb("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&Km(38),hh(this);let n=this._pendingEditorState,r=this._updateTags;t=void 0!==t?t.tag:null,null===n||n.isEmpty()||(null!=t&&r.add(t),Tb(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=t&&r.add(t),Tb(this)}parseEditorState(e,t){e="string"==typeof e?JSON.parse(e):e;let n=Bb(),r=mb,o=gb,i=hb,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,mb=n,gb=!1,hb=this;try{kb(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,mb=r,gb=o,hb=i}return n}update(e,t){Mb(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Mb(this,(()=>{let e=ab(),n=Hh();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=pg(this._window))&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Nb("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class Vb extends Ib{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 Qb(e){return e instanceof Vb}class Xb extends Ib{}function qb(e){return e instanceof Xb}class Jb extends Ib{}function Zb(e){return e instanceof Jb}sm.$addUpdateTag=function(e){_b(),Eb()._updateTags.add(e)},sm.$applyNodeReplacement=ug,sm.$copyNode=sg,sm.$createLineBreakNode=yv,sm.$createNodeSelection=ib,sm.$createParagraphNode=Ub,sm.$createRangeSelection=function(){let e=new Fv("root",0,"element"),t=new Fv("root",0,"element");return new Vv(e,t,0,"")},sm.$createTabNode=zv,sm.$createTextNode=Iv,sm.$getAdjacentNode=Zh,sm.$getNearestNodeFromDOMNode=zh,sm.$getNearestRootOrShadowRoot=lg,sm.$getNodeByKey=Dh,sm.$getPreviousSelection=sb,sm.$getRoot=Hh,sm.$getSelection=ab,sm.$getTextContent=function(){let e=ab();return null===e?"":e.getTextContent()},sm.$hasAncestor=og,sm.$hasUpdateTag=function(e){return Eb()._updateTags.has(e)},sm.$insertNodes=function(e,t){let n=ab()||sb();return null===n&&(n=Hh().selectEnd()),n.insertNodes(e,t)},sm.$isBlockElementNode=rb,sm.$isDecoratorNode=Pb,sm.$isElementNode=Db,sm.$isInlineElementOrDecoratorNode=function(e){return Db(e)&&e.isInline()||Pb(e)&&e.isInline()},sm.$isLeafNode=Ah,sm.$isLineBreakNode=xv,sm.$isNodeSelection=Qv,sm.$isParagraphNode=function(e){return e instanceof jb},sm.$isRangeSelection=Uv,sm.$isRootNode=Fb,sm.$isRootOrShadowRoot=ag,sm.$isTabNode=function(e){return e instanceof $v},sm.$isTextNode=Dv,sm.$nodesOfType=function(e){var t=wb();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},sm.$normalizeSelection__EXPERIMENTAL=xh,sm.$parseSerializedNode=function(e){return kb(e,Eb()._nodes)},sm.$setCompositionKey=Ph,sm.$setSelection=Wh,sm.$splitNode=mg,sm.BLUR_COMMAND=Wm,sm.CAN_REDO_COMMAND={},sm.CAN_UNDO_COMMAND={},sm.CLEAR_EDITOR_COMMAND={},sm.CLEAR_HISTORY_COMMAND={},sm.CLICK_COMMAND=cm,sm.COMMAND_PRIORITY_CRITICAL=4,sm.COMMAND_PRIORITY_EDITOR=0,sm.COMMAND_PRIORITY_HIGH=3,sm.COMMAND_PRIORITY_LOW=1,sm.COMMAND_PRIORITY_NORMAL=2,sm.CONTROLLED_TEXT_INSERTION_COMMAND=mm,sm.COPY_COMMAND=Fm,sm.CUT_COMMAND=Bm,sm.DELETE_CHARACTER_COMMAND=dm,sm.DELETE_LINE_COMMAND=bm,sm.DELETE_WORD_COMMAND=vm,sm.DEPRECATED_$computeGridMap=pb,sm.DEPRECATED_$createGridSelection=function(){let e=new Fv("root",0,"element"),t=new Fv("root",0,"element");return new Yv("root",e,t)},sm.DEPRECATED_$getNodeTriplet=function(e){e instanceof Vb||(e instanceof gv?Qb(e=hg(e,Qb))||Km(114):Qb(e=hg(e.getNode(),Qb))||Km(114));let t=e.getParent();Zb(t)||Km(115);let n=t.getParent();return qb(n)||Km(116),[e,t,n]},sm.DEPRECATED_$isGridCellNode=Qb,sm.DEPRECATED_$isGridNode=qb,sm.DEPRECATED_$isGridRowNode=Zb,sm.DEPRECATED_$isGridSelection=Gv,sm.DEPRECATED_GridCellNode=Vb,sm.DEPRECATED_GridNode=Xb,sm.DEPRECATED_GridRowNode=Jb,sm.DRAGEND_COMMAND=zm,sm.DRAGOVER_COMMAND=$m,sm.DRAGSTART_COMMAND=Dm,sm.DROP_COMMAND=Im,sm.DecoratorNode=Lb,sm.ElementNode=Ib,sm.FOCUS_COMMAND=Hm,sm.FORMAT_ELEMENT_COMMAND={},sm.FORMAT_TEXT_COMMAND=ym,sm.INDENT_CONTENT_COMMAND={},sm.INSERT_LINE_BREAK_COMMAND=fm,sm.INSERT_PARAGRAPH_COMMAND=pm,sm.INSERT_TAB_COMMAND={},sm.KEY_ARROW_DOWN_COMMAND=Nm,sm.KEY_ARROW_LEFT_COMMAND=km,sm.KEY_ARROW_RIGHT_COMMAND=Em,sm.KEY_ARROW_UP_COMMAND=Tm,sm.KEY_BACKSPACE_COMMAND=Om,sm.KEY_DELETE_COMMAND=Lm,sm.KEY_DOWN_COMMAND=wm,sm.KEY_ENTER_COMMAND=Rm,sm.KEY_ESCAPE_COMMAND=Mm,sm.KEY_MODIFIER_COMMAND=jm,sm.KEY_SPACE_COMMAND=Am,sm.KEY_TAB_COMMAND=Pm,sm.LineBreakNode=vv,sm.MOVE_TO_END=Cm,sm.MOVE_TO_START=Sm,sm.OUTDENT_CONTENT_COMMAND={},sm.PASTE_COMMAND=hm,sm.ParagraphNode=jb,sm.REDO_COMMAND=_m,sm.REMOVE_TEXT_COMMAND=gm,sm.RootNode=zb,sm.SELECTION_CHANGE_COMMAND=um,sm.TabNode=$v,sm.TextNode=Sv,sm.UNDO_COMMAND=xm,sm.createCommand=function(){return{}},sm.createEditor=function(e){var t=e||{},n=hb,r=t.theme||{};let o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,l=Bb(),a=t.namespace||(null!==o?o._config.namespace:Yh()),s=t.editorState,u=[zb,Sv,vv,$v,jb,...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 Gb(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},sm.getNearestEditorFromDOMNode=Sh,sm.isSelectionCapturedInDecoratorInput=Ch,sm.isSelectionWithinEditor=kh;var ey=sm,ty=ey;let ny=new Map;function ry(e){for(;null!=e;){if(e.nodeType===Node.TEXT_NODE)return e;e=e.firstChild}return null}function oy(e){let t=e.parentNode;if(null==t)throw Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function iy(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 ly(e){let t=ny.get(e);return void 0===t&&(t=iy(e),ny.set(e,t)),t}function ay(e,t){var n=ly("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),ny.set(n,t)}function sy(e){for(;null!==e&&!ty.$isRootOrShadowRoot(e);){let t=e.getLatest(),n=e.getParent();0===t.getChildrenSize()&&e.remove(!0),e=n}}function uy(e,t,n,r,o=null){if(0!==t.length){var i=t[0],l=new Map,a=[];(i=ty.$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(),ty.$isRootOrShadowRoot(i))break}u=new Set;for(var c=0;c<n;c++){var d=t[c];ty.$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&&ty.$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()),ty.$isElementNode(t)&&t.getChildrenKeys().forEach((e=>f.add(e)))})),sy(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,ty.$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(),ty.$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=ty.$getPreviousSelection(),ty.$isRangeSelection(a)&&a.anchor.getNode().isAttached()&&a.focus.getNode().isAttached()?ty.$setSelection(a.clone()):null!==t?t.selectEnd():e.dirty=!0}}function cy(e,t,n,r){e.modify(t?"extend":"move",n,r)}function dy(e){return e=e.anchor.getNode(),"rtl"===(ty.$isRootNode(e)?e:e.getParentOrThrow()).getDirection()}am.$addNodeStyle=function(e){let t=iy(e=e.getStyle());ny.set(e,t)},am.$cloneWithProperties=function(e){let t=(e=e.getLatest()).constructor.clone(e);return t.__parent=e.__parent,t.__next=e.__next,t.__prev=e.__prev,ty.$isElementNode(e)&&ty.$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):(ty.$isTextNode(e)&&ty.$isTextNode(t)&&(t.__format=e.__format,t.__style=e.__style,t.__mode=e.__mode,t.__detail=e.__detail),t)},am.$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=ly(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))&&ty.$isTextNode(u))if(l=t,a=n,l=null!==(u=ly(u=u.getStyle()))&&u[l]||a,null===r)r=l;else if(r!==l){r="";break}}return null===r?n:r},am.$isAtNodeEnd=function(e){return"text"===e.type?e.offset===e.getNode().getTextContentSize():e.offset===e.getNode().getChildrenSize()},am.$isParentElementRTL=dy,am.$moveCaretSelection=cy,am.$moveCharacter=function(e,t,n){let r=dy(e);cy(e,t,n?!r:r,"character")},am.$patchStyleText=function(e,t){var n=e.getNodes();let r=n.length-1,o=n[0],i=n[r];if(e.isCollapsed())ay(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,ty.$isTextNode(o)&&f===s&&(a=o.getNextSibling(),ty.$isTextNode(a)&&(f=c=0,o=a)),1===n.length)ty.$isTextNode(o)&&((f="element"===p?0:c>u?u:c)!==(e="element"===m?s:c>u?c:u)&&(0===f&&e===s?(ay(o,t),o.select(f,e)):(n=o.splitText(f,e),ay(n=0===f?n[0]:n[1],t),n.select(0,e-f))));else for(ty.$isTextNode(o)&&f<o.getTextContentSize()&&(0!==f&&(o=o.splitText(f)[1]),ay(o,t)),ty.$isTextNode(i)&&(f=i.getTextContent().length,i.__key!==l&&0!==e&&(e=f),e!==f&&([i]=i.splitText(e)),0!==e&&ay(i,t)),e=1;e<r;e++)s=(f=n[e]).getKey(),ty.$isTextNode(f)&&s!==o.getKey()&&s!==i.getKey()&&!f.isToken()&&ay(f,t)}},am.$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;ty.$isTextNode(r)?o="text":ty.$isElementNode(r)||null===r||(r=r.getParentOrThrow()),ty.$isTextNode(n)?(i="text",l=n.getTextContentSize()):ty.$isElementNode(n)||null===n||(n=n.getParentOrThrow()),r&&n&&(t.set(r.getKey(),0,o),e.set(n.getKey(),l,i))},am.$setBlocksType=function(e,t){if("root"===e.anchor.key){t=t();var n=ty.$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(!ty.$isElementNode(r)||ty.$isRootOrShadowRoot(r))r=!1;else{var o=r.getFirstChild();o=null===o||ty.$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))}},am.$shouldOverrideDefaultCharacterSelection=function(e,t){return e=ty.$getAdjacentNode(e.focus,t),ty.$isDecoratorNode(e)&&!e.isIsolated()||ty.$isElementNode(e)&&!e.isInline()&&!e.canBeEmpty()},am.$sliceSelectedTextNodeContent=function(e,t){if(t.isSelected()&&!t.isSegmented()&&!t.isToken()&&(ty.$isRangeSelection(e)||ty.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},am.$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];ty.$isRootOrShadowRoot(o)?(uy(e,l,l.length,t,n),l=[],i=o):null===i||null!==i&&ty.$hasAncestor(o,i)?l.push(o):(uy(e,l,l.length,t,n),l=[o])}uy(e,l,l.length,t,n)}},am.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),ty.$isTextNode(t)&&(s=ry(s)),ty.$isTextNode(r)&&(e=ry(e)),void 0===t||void 0===r||null===s||null===e)return null;"BR"===s.nodeName&&([s,n]=oy(s)),"BR"===e.nodeName&&([e,o]=oy(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},am.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},am.getStyleObjectFromCSS=ly,am.trimTextContentFromAnchor=function(e,t,n){let r=t.getNode();if(ty.$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=ty.$isElementNode(a)?a.getLastDescendant():a)}if(""===(a=r.getTextContent())&&ty.$isElementNode(r)&&!r.isInline()&&(a="\n\n"),o=r.getTextContentSize(),!ty.$isTextNode(r)||n>=o)a=r.getParent(),r.remove(),null==a||0!==a.getChildrenSize()||ty.$isRootNode(a)||a.remove(),n-=o+l,r=i;else{let s=r.getKey();l=e.getEditorState().read((()=>{const e=ty.$getNodeByKey(s);return ty.$isTextNode(e)&&e.isSimpleText()?e.getTextContent():null})),i=o-n;let u=a.slice(0,i);null!==l&&l!==a?(n=ty.$getPreviousSelection(),o=r,r.isSimpleText()?r.setTextContent(l):(o=ty.$createTextNode(l),r.replace(o)),ty.$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=ty.$createTextNode(u),r.replace(n)),n=0}}};var fy=am,py=fy,my=ey;function hy(e,t){for(let n of t)if(e.type.startsWith(n))return!0;return!1}function gy(e,t){for(;e!==my.$getRoot()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function vy(e){return 1===e.nodeType}lm.$splitNode=my.$splitNode,lm.$dfs=function(e,t){let n=[];e=(e||my.$getRoot()).getLatest(),t=t||(my.$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}),my.$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},lm.$findMatchingParent=gy,lm.$getNearestBlockElementAncestorOrThrow=function(e){let t=gy(e,(e=>my.$isElementNode(e)&&!e.isInline()));return my.$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},lm.$getNearestNodeOfType=function(e,t){for(;null!=e;){if(e instanceof t)return e;e=e.getParent()}return null},lm.$insertNodeToNearestRoot=function(e){var t=my.$getSelection()||my.$getPreviousSelection();if(my.$isRangeSelection(t)){var{focus:n}=t;if(t=n.getNode(),n=n.offset,my.$isRootOrShadowRoot(t))null==(n=t.getChildAtIndex(n))?t.append(e):n.insertBefore(e),e.selectNext();else{let r,o;my.$isTextNode(t)?(r=t.getParentOrThrow(),o=t.getIndexWithinParent(),0<n&&(o+=1,t.splitText(n))):(r=t,o=n),[,t]=my.$splitNode(r,o),t.insertBefore(e),t.selectStart()}}else my.$isNodeSelection(t)||my.DEPRECATED_$isGridSelection(t)?(t=t.getNodes())[t.length-1].getTopLevelElementOrThrow().insertAfter(e):my.$getRoot().append(e),t=my.$createParagraphNode(),e.insertAfter(t),t.select();return e.getLatest()},lm.$restoreEditorState=function(e,t){let n=new Map,r=e._pendingEditorState;for(let[e,r]of t._nodeMap){let t=py.$cloneWithProperties(r);my.$isTextNode(t)&&(t.__text=r.__text),n.set(e,t)}r&&(r._nodeMap=n),e._dirtyType=2,e=t._selection,my.$setSelection(null===e?null:e.clone())},lm.$wrapNodeInElement=function(e,t){return t=t(),e.replace(t),t.append(e),t},lm.addClassNamesToElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&(t=t.split(" ").filter((e=>""!==e)),e.classList.add(...t))}))},lm.isHTMLAnchorElement=function(e){return vy(e)&&"A"===e.tagName},lm.isHTMLElement=vy,lm.isMimeType=hy,lm.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()})),hy(a,t)?s.readAsDataURL(a):i()};i()}))},lm.mergeRegister=function(...e){return()=>{e.forEach((e=>e()))}},lm.objectKlassEquals=function(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name},lm.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()}}}))},lm.removeClassNamesFromElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&e.classList.remove(...t.split(" "))}))};var by=lm,yy=by,xy=ey;let _y=new Set(["http:","https:","mailto:","sms:","tel:"]),wy=class e extends xy.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),yy.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:Ey,priority:1})}}static importJSON(e){let t=Cy(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(!_y.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),xy.$isElementNode(e)?(t=Cy(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(!xy.$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 Ey(e){let t=null;if(yy.isHTMLAnchorElement(e)){let n=e.textContent;null!==n&&""!==n&&(t=Cy(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Cy(e,t){return xy.$applyNodeReplacement(new wy(e,t))}function ky(e){return e instanceof wy}let Sy=class e extends wy{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=Ty(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),xy.$isElementNode(e)?(t=Ty(this.__url,{rel:this._rel,target:this.__target,title:this.__title}),e.append(t),t):null}};function Ty(e,t){return xy.$applyNodeReplacement(new Sy(e,t))}let Ny=xy.createCommand("TOGGLE_LINK_COMMAND");im.$createAutoLinkNode=Ty,im.$createLinkNode=Cy,im.$isAutoLinkNode=function(e){return e instanceof Sy},im.$isLinkNode=ky,im.AutoLinkNode=Sy,im.LinkNode=wy,im.TOGGLE_LINK_COMMAND=Ny,im.toggleLink=function(e,t={}){let{target:n,title:r}=t,o=void 0===t.rel?"noreferrer":t.rel;if(t=xy.$getSelection(),xy.$isRangeSelection(t))if(t=t.extract(),null===e)t.forEach((e=>{if(ky(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=ky(i)?i:function(e,t){for(;null!==e&&null!==(e=e.getParent())&&!t(e););return e}(i,ky),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&&(!xy.$isElementNode(t)||t.isInline()))if(ky(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=Cy(e,{rel:o,target:n}),ky(i)?null===t.getPreviousSibling()?i.insertBefore(a):i.insertAfter(a):t.insertBefore(a)),ky(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 Ry=im,Ay={},Oy=ey,My=by;function Ly(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 Py(e){let t=1;for(e=e.getParent();null!=e;){if(Xy(e)){if(rx(e=e.getParent())){t++,e=e.getParent();continue}Ly(40)}break}return t}function Iy(e){rx(e=e.getParent())||Ly(40);let t=e;for(;null!==t;)t=t.getParent(),rx(t)&&(e=t);return e}function Dy(e){let t=[];e=e.getChildren().filter(Xy);for(let n=0;n<e.length;n++){let r=e[n],o=r.getFirstChild();rx(o)?t=t.concat(Dy(o)):t.push(r)}return t}function $y(e){return Xy(e)&&rx(e.getFirstChild())}function zy(e){return Qy().append(e)}function Fy(e,t){return Xy(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function By(e,t){e.splice(e.getChildrenSize(),0,t)}function Hy(e,t){if(rx(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),o=Qy();return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),By(o,e.getChildren()),rx(n)&&t===n.getListType()?(n.append(o),e.remove(),rx(r)&&t===r.getListType()&&(By(n,r.getChildren()),r.remove()),n):rx(r)&&t===r.getListType()?(r.getFirstChildOrThrow().insertBefore(o),e.remove(),r):((t=nx(t)).append(o),e.replace(t),jy(t),t)}function Wy(e,t){var n=e.getLastChild();let r=t.getFirstChild();n&&r&&$y(n)&&$y(r)&&(Wy(n.getFirstChild(),r.getFirstChild()),r.remove()),0<(n=t.getChildren()).length&&(e.append(...n),jy(e)),t.remove()}function jy(e,t){if(void 0!==(e=t||e.getChildren()))for(t=0;t<e.length;t++){let i=e[t];if(Xy(i)){let e=i.getValue();var n=i,r=n.getParent(),o=1;for(null!=r&&(rx(r)?o=r.getStart():Ly(44)),n=n.getPreviousSiblings(),r=0;r<n.length;r++){let e=n[r];Xy(e)&&!rx(e.getFirstChild())&&o++}e!==o&&i.setValue(o)}}}function Ky(e){if(!$y(e)){var t=e.getParent(),n=t?t.getParent():void 0,r=n?n.getParent():void 0;if(rx(r)&&Xy(n)&&rx(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=Qy();let r=nx(l);o.append(r),e.getPreviousSiblings().forEach((e=>r.append(e))),i=Qy(),l=nx(l),i.append(l),By(l,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(i),n.replace(e)}jy(t),jy(r)}}}let Uy=class e extends Oy.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 rx(n)&&"check"===n.getListType()&&Gy(t,this,null),t.value=this.__value,Yy(t,e.theme,this),t}updateDOM(e,t,n){let r=this.getParent();return rx(r)&&"check"===r.getListType()&&Gy(t,this,e),t.value=this.__value,Yy(t,n.theme,this),!1}static transform(){return e=>{let t=e.getParent();rx(t)&&(jy(t),"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0))}}static importDOM(){return{li:()=>({conversion:Vy,priority:0})}}static importJSON(e){let t=Qy();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(Oy.$isElementNode(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(Xy(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!rx(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=nx(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();rx(n)||Ly(39);var r=this.getNextSiblings();if(Xy(e))return t=super.insertAfter(e,t),rx(e=e.getParentOrThrow())&&jy(e),t;if(rx(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=nx(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&&$y(t)&&$y(n)?(Wy(t.getFirstChild(),n.getFirstChild()),n.remove()):n&&(rx(e=n.getParent())&&jy(e))}insertNewAfter(e,t=!0){return e=Qy(null==this.__checked&&void 0),this.insertAfter(e,t),e}collapseAtStart(e){let t=Oy.$createParagraphNode();this.getChildren().forEach((e=>t.append(e)));var n=this.getParentOrThrow(),r=n.getParentOrThrow();let o=Xy(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(;Xy(e);)e=e.getParentOrThrow().getParentOrThrow(),t++;return t}setIndent(e){"number"==typeof e&&-1<e||Ly(117);let t=this.getIndent();for(;t!==e;)if(t<e){e:{var n=new Set;if($y(this)||n.has(this.getKey()))break e;let e=this.getParent();var r=this.getNextSibling(),o=this.getPreviousSibling();if($y(r)&&$y(o)){if(rx(o=o.getFirstChild())){o.append(this);var i=r.getFirstChild();rx(i)&&(By(o,i=i.getChildren()),r.remove(),n.add(r.getKey())),jy(o)}}else $y(r)?rx(r=r.getFirstChild())&&(null!==(n=r.getFirstChild())&&n.insertBefore(this),jy(r)):$y(o)?rx(r=o.getFirstChild())&&(r.append(this),jy(r)):rx(e)&&(n=Qy(),i=nx(e.getListType()),n.append(i),i.append(this),o?o.insertAfter(n):r?r.insertBefore(n):e.append(n),jy(i));rx(e)&&jy(e)}t++}else Ky(this),t--;return this}insertBefore(e){if(Xy(e)){let e=this.getParentOrThrow();if(rx(e)){jy(e,this.getNextSiblings())}}return super.insertBefore(e)}canInsertAfter(e){return Xy(e)}canReplaceWith(e){return Xy(e)}canMergeWith(e){return Oy.$isParagraphNode(e)||Xy(e)}extractWithChild(e,t){if(!Oy.$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 nx("bullet")}};function Yy(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=rx(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=>rx(e)))?r.push(...l):o.push(...l)),0<o.length&&My.removeClassNamesFromElement(e,...o),0<r.length&&My.addClassNamesToElement(e,...r)}function Gy(e,t,n){rx(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 Vy(e){return{node:Qy(e=My.isHTMLElement(e)&&"true"===e.getAttribute("aria-checked"))}}function Qy(e){return Oy.$applyNodeReplacement(new Uy(void 0,e))}function Xy(e){return e instanceof Uy}let qy=class e extends Oy.ElementNode{static getType(){return"list"}static clone(t){return new e(t.__listType||tx[t.__tag],t.__start,t.__key)}constructor(e,t,n){super(n),this.__listType=e=tx[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,Jy(t,e.theme,this),t}updateDOM(e,t,n){return e.__tag!==this.__tag||(Jy(t,n.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:ex,priority:0}),ul:()=>({conversion:ex,priority:0})}}static importJSON(e){let t=nx(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(Xy(t))super.append(t);else{let e=Qy();rx(t)?e.append(t):Oy.$isElementNode(t)?(t=Oy.$createTextNode(t.getTextContent()),e.append(t)):e.append(t),super.append(e)}}return jy(this),this}extractWithChild(e){return Xy(e)}};function Jy(e,t,n){let r=[],o=[];var i=t.list;if(void 0!==i){let e=i[`${n.__tag}Depth`]||[],a=(t=Py(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&&My.removeClassNamesFromElement(e,...o),0<r.length&&My.addClassNamesToElement(e,...r)}function Zy(e){let t=[];for(let r=0;r<e.length;r++){var n=e[r];Xy(n)?(t.push(n),1<(n=n.getChildren()).length&&n.forEach((e=>{rx(e)&&t.push(zy(e))}))):t.push(zy(n))}return t}function ex(e){let t=e.nodeName.toLowerCase(),n=null;return"ol"===t?n=nx("number",e.start):"ul"===t&&(n=My.isHTMLElement(e)&&"check"===e.getAttribute("__lexicallisttype")?nx("check"):nx("bullet")),{after:Zy,node:n}}let tx={ol:"number",ul:"bullet"};function nx(e,t=1){return Oy.$applyNodeReplacement(new qy(e,t))}function rx(e){return e instanceof qy}let ox=Oy.createCommand("INSERT_UNORDERED_LIST_COMMAND"),ix=Oy.createCommand("INSERT_ORDERED_LIST_COMMAND"),lx=Oy.createCommand("INSERT_CHECK_LIST_COMMAND"),ax=Oy.createCommand("REMOVE_LIST_COMMAND");Ay.$createListItemNode=Qy,Ay.$createListNode=nx,Ay.$getListDepth=Py,Ay.$handleListInsertParagraph=function(){var e=Oy.$getSelection();if(!Oy.$isRangeSelection(e)||!e.isCollapsed())return!1;if(!Xy(e=e.anchor.getNode())||""!==e.getTextContent())return!1;var t=Iy(e),n=e.getParent();rx(n)||Ly(40);let r,o=n.getParent();if(Oy.$isRootOrShadowRoot(o))r=Oy.$createParagraphNode(),t.insertAfter(r);else{if(!Xy(o))return!1;r=Qy(),o.insertAfter(r)}if(r.select(),0<(t=e.getNextSiblings()).length){let e=nx(n.getListType());Oy.$isParagraphNode(r)?r.insertAfter(e):((n=Qy()).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||!Xy(e)&&!rx(e))break;e=t}e.remove()}(e),!0},Ay.$isListItemNode=Xy,Ay.$isListNode=rx,Ay.INSERT_CHECK_LIST_COMMAND=lx,Ay.INSERT_ORDERED_LIST_COMMAND=ix,Ay.INSERT_UNORDERED_LIST_COMMAND=ox,Ay.ListItemNode=Uy,Ay.ListNode=qy,Ay.REMOVE_LIST_COMMAND=ax,Ay.insertList=function(e,t){e.update((()=>{var e=Oy.$getSelection();if(Oy.$isRangeSelection(e)||Oy.DEPRECATED_$isGridSelection(e)){var n=e.getNodes(),r=(e=e.anchor.getNode()).getParent();if(Fy(e,n))n=nx(t),Oy.$isRootOrShadowRoot(r)?(e.replace(n),r=Qy(),Oy.$isElementNode(e)&&(r.setFormat(e.getFormatType()),r.setIndent(e.getIndent())),n.append(r)):Xy(e)&&(By(n,(e=e.getParentOrThrow()).getChildren()),e.replace(n));else for(e=new Set,r=0;r<n.length;r++){var o=n[r];if(Oy.$isElementNode(o)&&o.isEmpty()&&!e.has(o.getKey()))Hy(o,t);else if(Oy.$isLeafNode(o))for(o=o.getParent();null!=o;){let n=o.getKey();if(rx(o)){if(!e.has(n)){var i=nx(t);By(i,o.getChildren()),o.replace(i),jy(i),e.add(n)}break}if(i=o.getParent(),Oy.$isRootOrShadowRoot(i)&&!e.has(n)){e.add(n),Hy(o,t);break}o=i}}}}))},Ay.removeList=function(e){e.update((()=>{let e=Oy.$getSelection();if(Oy.$isRangeSelection(e)){var t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(Fy(r,n))t.add(Iy(r));else for(r=0;r<n.length;r++){var o=n[r];Oy.$isLeafNode(o)&&(null!=(o=My.$getNearestNodeOfType(o,Uy))&&t.add(Iy(o)))}for(let r of t){t=r,n=Dy(r);for(let r of n)By(n=Oy.$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 sx=Ay,ux={},cx={},dx=H;let fx=dx.createContext(null);cx.LexicalComposerContext=fx,cx.createLexicalComposerContext=function(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}},cx.useLexicalComposerContext=function(){let e=dx.useContext(fx);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 px=cx,mx=px,hx=ey,gx=H;let vx="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;var bx=vx?gx.useLayoutEffect:gx.useEffect;let yx={tag:"history-merge"};ux.LexicalComposer=function({initialConfig:e,children:t}){let n=gx.useMemo((()=>{const{theme:t,namespace:n,editor__DEPRECATED:r,nodes:o,onError:i,editorState:l}=e,a=mx.createLexicalComposerContext(null,t);let s=r||null;if(null===s){const r=hx.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=hx.$getRoot();if(t.isEmpty()){let n=hx.$createParagraphNode();t.append(n),t=vx?document.activeElement:null,(null!==hx.$getSelection()||null!==t&&t===e.getRootElement())&&n.select()}}),yx);else if(null!==t)switch(typeof t){case"string":let n=e.parseEditorState(t);e.setEditorState(n,yx);break;case"object":e.setEditorState(t,yx);break;case"function":e.update((()=>{hx.$getRoot().isEmpty()&&t(e)}),yx)}}(r,l),s=r}return[s,a]}),[]);return bx((()=>{let t=e.editable,[r]=n;r.setEditable(void 0===t||t)}),[]),gx.createElement(mx.LexicalComposerContext.Provider,{value:n},t)};var xx=ux,_x={},wx={},Ex=by,Cx=ey;function kx(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(!(Cx.$isRangeSelection(i)&&Cx.$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))||Cx.$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)&&Cx.$isTextNode(t)&&1===t.__text.length&&1===i.anchor.offset?2:0):(t=a[0],e=e._nodeMap.get(t.__key),Cx.$isTextNode(e)&&Cx.$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;Cx.$isRangeSelection(m)&&Cx.$isRangeSelection(e)&&(t="element"===m.anchor.type&&"element"===m.focus.type&&"text"===e.anchor.type&&"text"===e.focus.type),f=!(t||!Cx.$isTextNode(f)||!Cx.$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}}wx.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},wx.registerHistory=function(e,t,n){let r=kx(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(Cx.CAN_REDO_COMMAND,!1)),null!==s&&(c.push({...s}),e.dispatchCommand(Cx.CAN_UNDO_COMMAND,!0));else if(2===o)return;t.current={editor:e,editorState:n}}};let o=Ex.mergeRegister(e.registerCommand(Cx.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(Cx.CAN_REDO_COMMAND,!0)),0===r.length&&e.dispatchCommand(Cx.CAN_UNDO_COMMAND,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:"historic"})}return!0}),Cx.COMMAND_PRIORITY_EDITOR),e.registerCommand(Cx.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(Cx.CAN_UNDO_COMMAND,!0)),r=n.pop(),0===n.length&&e.dispatchCommand(Cx.CAN_REDO_COMMAND,!1),t.current=r||null,r&&r.editor.setEditorState(r.editorState,{tag:"historic"})}return!0}),Cx.COMMAND_PRIORITY_EDITOR),e.registerCommand(Cx.CLEAR_EDITOR_COMMAND,(()=>(t.undoStack=[],t.redoStack=[],t.current=null,!1)),Cx.COMMAND_PRIORITY_EDITOR),e.registerCommand(Cx.CLEAR_HISTORY_COMMAND,(()=>(t.undoStack=[],t.redoStack=[],t.current=null,e.dispatchCommand(Cx.CAN_REDO_COMMAND,!1),e.dispatchCommand(Cx.CAN_UNDO_COMMAND,!1),!0)),Cx.COMMAND_PRIORITY_EDITOR),e.registerUpdateListener(n)),i=e.registerUpdateListener(n);return()=>{o(),i()}};var Sx=px,Tx=wx,Nx=H;_x.createEmptyHistoryState=Tx.createEmptyHistoryState,_x.HistoryPlugin=function({externalHistoryState:e}){let[t]=Sx.useLexicalComposerContext();return function(e,t,n=1e3){let r=Nx.useMemo((()=>t||Tx.createEmptyHistoryState()),[t]);Nx.useEffect((()=>Tx.registerHistory(e,r,n)),[n,e,r])}(t,e),null};var Rx=_x,Ax={},Ox=sx,Mx=px,Lx=H,Px=by,Ix=ey;Ax.ListPlugin=function(){let[e]=Mx.useLexicalComposerContext();return Lx.useEffect((()=>{if(!e.hasNodes([Ox.ListNode,Ox.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")}),[e]),function(e){Lx.useEffect((()=>Px.mergeRegister(e.registerCommand(Ox.INSERT_ORDERED_LIST_COMMAND,(()=>(Ox.insertList(e,"number"),!0)),Ix.COMMAND_PRIORITY_LOW),e.registerCommand(Ox.INSERT_UNORDERED_LIST_COMMAND,(()=>(Ox.insertList(e,"bullet"),!0)),Ix.COMMAND_PRIORITY_LOW),e.registerCommand(Ox.REMOVE_LIST_COMMAND,(()=>(Ox.removeList(e),!0)),Ix.COMMAND_PRIORITY_LOW),e.registerCommand(Ix.INSERT_PARAGRAPH_COMMAND,(()=>!!Ox.$handleListInsertParagraph()),Ix.COMMAND_PRIORITY_LOW))),[e])}(e),null};var Dx=Ax,$x={},zx=px,Fx=by,Bx=ey,Hx=H;function Wx(e){return e.registerCommand(Bx.KEY_TAB_COMMAND,(t=>{let n=Bx.$getSelection();return!!Bx.$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=>Bx.$isBlockElementNode(e)&&e.canIndent()?e:null)).length)return!0;if(t=e.anchor,t=(e=(e=e.focus).isBefore(t)?e:t).getNode(),(t=Fx.$getNearestBlockElementAncestorOrThrow(t)).canIndent()){t=t.getKey();let n=Bx.$createRangeSelection();if(n.anchor.set(t,0,"element"),n.focus.set(t,0,"element"),n=Bx.$normalizeSelection__EXPERIMENTAL(n),n.anchor.is(e))return!0}return!1}(n)?t.shiftKey?Bx.OUTDENT_CONTENT_COMMAND:Bx.INDENT_CONTENT_COMMAND:Bx.INSERT_TAB_COMMAND,e.dispatchCommand(t,void 0))}),Bx.COMMAND_PRIORITY_EDITOR)}$x.TabIndentationPlugin=function(){let[e]=zx.useLexicalComposerContext();return Hx.useEffect((()=>Wx(e))),null},$x.registerTabIndentation=Wx;var jx=$x,Kx={},Ux={},Yx={},Gx=fy,Vx=ey;function Qx(e,t,n,r=null){let o=null==r||t.isSelected(r),i=Vx.$isElementNode(t)&&t.excludeFromCopy("html");var l=t;null!==r&&(l=Gx.$cloneWithProperties(t),l=Vx.$isTextNode(l)&&null!=r?Gx.$sliceSelectedTextNodeContent(r,l):l);let a=Vx.$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=Qx(e,i,c,r);!o&&Vx.$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 Xx=new Set(["STYLE","SCRIPT"]);function qx(e,t,n=new Map,r){let o=[];if(Xx.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(...qx(e[u],t,new Map(n),i));return null!=l&&(r=l(r)),null==i?o=o.concat(r):Vx.$isElementNode(i)&&i.append(...r),o}Yx.$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=Vx.$getRoot().getChildren();for(let o=0;o<r.length;o++)Qx(e,r[o],n,t);return n.innerHTML},Yx.$generateNodesFromDOM=function(e,t){t=t.body?t.body.childNodes:[];let n=[];for(let o=0;o<t.length;o++){var r=t[o];Xx.has(r.nodeName)||null!==(r=qx(r,e))&&(n=n.concat(r))}return n};var Jx=Yx,Zx=fy,e_=by,t_=ey;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.`)}let r_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function o_(e){let t=t_.$getSelection();if(null==t)throw Error("Expected valid LexicalSelection");return t_.$isRangeSelection(t)&&t.isCollapsed()||0===t.getNodes().length?"":Jx.$generateHtmlFromNodes(e,t)}function i_(e){let t=t_.$getSelection();if(null==t)throw Error("Expected valid LexicalSelection");return t_.$isRangeSelection(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(s_(e,t))}function l_(e,t,n){(t_.DEPRECATED_$isGridSelection(n)||null!==e_.$findMatchingParent(n.anchor.getNode(),(e=>t_.DEPRECATED_$isGridCellNode(e)))&&null!==e_.$findMatchingParent(n.focus.getNode(),(e=>t_.DEPRECATED_$isGridCellNode(e))))&&1===t.length&&t_.DEPRECATED_$isGridNode(t[0])?function(e,t,n,r){1===e.length&&t_.DEPRECATED_$isGridNode(e[0])||n_(42);var o=e[0];e=o.getChildren(),n=o.getFirstChildOrThrow().getChildrenSize();var i=o.getChildrenSize(),l=e_.$findMatchingParent(t.anchor.getNode(),(e=>t_.DEPRECATED_$isGridCellNode(e)));t=(o=l&&e_.$findMatchingParent(l,(e=>t_.DEPRECATED_$isGridRowNode(e))))&&e_.$findMatchingParent(o,(e=>t_.DEPRECATED_$isGridNode(e))),t_.DEPRECATED_$isGridCellNode(l)&&t_.DEPRECATED_$isGridRowNode(o)&&t_.DEPRECATED_$isGridNode(t)||n_(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];t_.DEPRECATED_$isGridRowNode(d)||n_(24);var f=e[l];t_.DEPRECATED_$isGridRowNode(f)||n_(24),d=d.getChildren(),f=f.getChildren();let r=0;for(let e=n;e<=i;e++){let l=d[e];t_.DEPRECATED_$isGridCellNode(l)||n_(25);let s=f[r];t_.DEPRECATED_$isGridCellNode(s)||n_(25),t===o&&e===n?u=l.getKey():t===a&&e===i&&(c=l.getKey());let p=l.getChildren();s.getChildren().forEach((e=>{t_.$isTextNode(e)&&t_.$createParagraphNode().append(e),l.append(e)})),p.forEach((e=>e.remove())),r++}l++}u&&c&&(e=t_.DEPRECATED_$createGridSelection(),e.set(t.getKey(),u,c),t_.$setSelection(e),r.dispatchCommand(t_.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=t_.$isLineBreakNode(o);if(i||t_.$isDecoratorNode(o)&&o.isInline()||t_.$isElementNode(o)&&o.isInline()||t_.$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}t_.$isRangeSelection(t)?t.insertNodes(n):t_.DEPRECATED_$isGridSelection(t)&&(e=t.anchor.getNode(),t_.DEPRECATED_$isGridCellNode(e)||n_(41),e.append(...n))}(t,n)}function a_(e,t,n,r=[]){let o=null==t||n.isSelected(t),i=t_.$isElementNode(n)&&n.excludeFromCopy("html");var l=n;if(null!==t){var a=Zx.$cloneWithProperties(n);l=a=t_.$isTextNode(a)&&null!=t?Zx.$sliceSelectedTextNodeContent(t,a):a}let s=t_.$isElementNode(l)?l.getChildren():[];var u=l;a=u.exportJSON();var c=u.constructor;a.type!==c.getType()&&n_(58,c.name);let d=a.children;for(t_.$isElementNode(u)&&(Array.isArray(d)||n_(59,c.name)),t_.$isTextNode(l)&&(0<(l=l.__text).length?a.text=l:o=!1),l=0;l<s.length;l++)c=a_(e,t,u=s[l],a.children),!o&&t_.$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 s_(e,t){let n=[],r=t_.$getRoot().getChildren();for(let o=0;o<r.length;o++)a_(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function u_(e){let t=[];for(let n=0;n<e.length;n++){let r=t_.$parseSerializedNode(e[n]);t_.$isTextNode(r)&&Zx.$addNodeStyle(r),t.push(r)}return t}let c_=null;function d_(e,t){var n=r_?(e._window||window).getSelection():null;if(!n)return!1;var r=n.anchorNode;if(n=n.focusNode,null!==r&&null!==n&&!t_.isSelectionWithinEditor(e,r,n))return!1;if(t.preventDefault(),t=t.clipboardData,r=t_.$getSelection(),null===t||null===r)return!1;n=o_(e),e=i_(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}Ux.$generateJSONFromSelectedNodes=s_,Ux.$generateNodesFromSerializedNodes=u_,Ux.$getHtmlContent=o_,Ux.$getLexicalContent=i_,Ux.$insertDataTransferForPlainText=function(e,t){null!=(e=e.getData("text/plain")||e.getData("text/uri-list"))&&t.insertRawText(e)},Ux.$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 l_(n,u_(e.nodes),t)}}catch(e){}if(r=e.getData("text/html"))try{var o=(new DOMParser).parseFromString(r,"text/html"),i=Jx.$generateNodesFromDOM(n,o);return l_(n,i,t)}catch(e){}if(null!=(e=e.getData("text/plain")||e.getData("text/uri-list")))if(t_.$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([t_.$createTabNode()]):t.insertText(i);else t.insertRawText(e)},Ux.$insertGeneratedNodes=l_,Ux.copyToClipboard=async function(e,t){if(null!==c_)return!1;if(null!==t)return new Promise((n=>{e.update((()=>{n(d_(e,t))}))}));var n=e.getRootElement();let r=null==e._window?window.document:e._window.document,o=r_?(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(t_.COPY_COMMAND,(r=>(e_.objectKlassEquals(r,ClipboardEvent)&&(n(),null!==c_&&(window.clearTimeout(c_),c_=null),t(d_(e,r))),!0)),t_.COMMAND_PRIORITY_CRITICAL);c_=window.setTimeout((()=>{n(),c_=null,t(!1)}),50),r.execCommand("copy"),i.remove()}))};var f_=Ux,p_=fy,m_=by,h_=ey;function g_(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 v_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,b_=v_&&"documentMode"in document?document.documentMode:null,y_=!(!v_||!("InputEvent"in window)||b_)&&"getTargetRanges"in new window.InputEvent("input"),x_=v_&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),__=v_&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,w_=v_&&/^(?=.*Chrome).*/i.test(navigator.userAgent),E_=v_&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!w_,C_=h_.createCommand("DRAG_DROP_PASTE_FILE"),k_=class e extends h_.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 m_.addClassNamesToElement(t,e.theme.quote),t}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:A_,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=S_();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(e,t){e=h_.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=h_.$createParagraphNode();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}};function S_(){return h_.$applyNodeReplacement(new k_)}let T_=class e extends h_.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)&&m_.addClassNamesToElement(n,e[t]),n}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:R_,priority:0}),h2:()=>({conversion:R_,priority:0}),h3:()=>({conversion:R_,priority:0}),h4:()=>({conversion:R_,priority:0}),h5:()=>({conversion:R_,priority:0}),h6:()=>({conversion:R_,priority:0}),p:e=>null!==(e=e.firstChild)&&N_(e)?{conversion:()=>({node:null}),priority:3}:null,span:e=>N_(e)?{conversion:()=>({node:O_("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=O_(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()?O_(this.getTag()):h_.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.isEmpty()?h_.$createParagraphNode():O_(this.getTag());return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}extractWithChild(){return!0}};function N_(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function R_(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=O_(t),null!==e.style&&n.setFormat(e.style.textAlign)),{node:n}}function A_(e){let t=S_();return null!==e.style&&t.setFormat(e.style.textAlign),{node:t}}function O_(e){return h_.$applyNodeReplacement(new T_(e))}function M_(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 L_(e){var t=h_.$getSelection();if(!h_.$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=m_.$getNearestBlockElementAncestorOrThrow(r)).getKey(),r.canIndent()&&!n.has(o)&&(n.add(o),e(r)))}return 0<n.size}function P_(e){return e=h_.$getNearestNodeFromDOMNode(e),h_.$isDecoratorNode(e)}Kx.$createHeadingNode=O_,Kx.$createQuoteNode=S_,Kx.$isHeadingNode=function(e){return e instanceof T_},Kx.$isQuoteNode=function(e){return e instanceof k_},Kx.DRAG_DROP_PASTE=C_,Kx.HeadingNode=T_,Kx.QuoteNode=k_,Kx.eventFiles=M_,Kx.registerRichText=function(e){return m_.mergeRegister(e.registerCommand(h_.CLICK_COMMAND,(()=>{const e=h_.$getSelection();return!!h_.$isNodeSelection(e)&&(e.clear(),!0)}),0),e.registerCommand(h_.DELETE_CHARACTER_COMMAND,(e=>{const t=h_.$getSelection();return!!h_.$isRangeSelection(t)&&(t.deleteCharacter(e),!0)}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.DELETE_WORD_COMMAND,(e=>{const t=h_.$getSelection();return!!h_.$isRangeSelection(t)&&(t.deleteWord(e),!0)}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.DELETE_LINE_COMMAND,(e=>{const t=h_.$getSelection();return!!h_.$isRangeSelection(t)&&(t.deleteLine(e),!0)}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.CONTROLLED_TEXT_INSERTION_COMMAND,(t=>{const n=h_.$getSelection();if("string"==typeof t)h_.$isRangeSelection(n)?n.insertText(t):h_.DEPRECATED_$isGridSelection(n);else{if(!h_.$isRangeSelection(n)&&!h_.DEPRECATED_$isGridSelection(n))return!1;const r=t.dataTransfer;null!=r?f_.$insertDataTransferForRichText(r,n,e):h_.$isRangeSelection(n)&&(t=t.data)&&n.insertText(t)}return!0}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.REMOVE_TEXT_COMMAND,(()=>{const e=h_.$getSelection();return!!h_.$isRangeSelection(e)&&(e.removeText(),!0)}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.FORMAT_TEXT_COMMAND,(e=>{const t=h_.$getSelection();return!!h_.$isRangeSelection(t)&&(t.formatText(e),!0)}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.FORMAT_ELEMENT_COMMAND,(e=>{var t=h_.$getSelection();if(!h_.$isRangeSelection(t)&&!h_.$isNodeSelection(t))return!1;t=t.getNodes();for(const n of t)t=m_.$findMatchingParent(n,(e=>h_.$isElementNode(e)&&!e.isInline())),null!==t&&t.setFormat(e);return!0}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.INSERT_LINE_BREAK_COMMAND,(e=>{const t=h_.$getSelection();return!!h_.$isRangeSelection(t)&&(t.insertLineBreak(e),!0)}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.INSERT_PARAGRAPH_COMMAND,(()=>{const e=h_.$getSelection();return!!h_.$isRangeSelection(e)&&(e.insertParagraph(),!0)}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.INSERT_TAB_COMMAND,(()=>(h_.$insertNodes([h_.$createTabNode()]),!0)),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.INDENT_CONTENT_COMMAND,(()=>L_((e=>{const t=e.getIndent();e.setIndent(t+1)}))),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.OUTDENT_CONTENT_COMMAND,(()=>L_((e=>{const t=e.getIndent();0<t&&e.setIndent(t-1)}))),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.KEY_ARROW_UP_COMMAND,(e=>{var t=h_.$getSelection();if(h_.$isNodeSelection(t)&&!P_(e.target)){if(0<(e=t.getNodes()).length)return e[0].selectPrevious(),!0}else if(h_.$isRangeSelection(t)&&(t=h_.$getAdjacentNode(t.focus,!0),!e.shiftKey&&h_.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline()))return t.selectPrevious(),e.preventDefault(),!0;return!1}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.KEY_ARROW_DOWN_COMMAND,(e=>{var t=h_.$getSelection();if(h_.$isNodeSelection(t)){if(0<(e=t.getNodes()).length)return e[0].selectNext(0,0),!0}else if(h_.$isRangeSelection(t)){let n=t.focus;if("root"===n.key&&n.offset===h_.$getRoot().getChildrenSize())return e.preventDefault(),!0;if(t=h_.$getAdjacentNode(t.focus,!1),!e.shiftKey&&h_.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline())return t.selectNext(),e.preventDefault(),!0}return!1}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.KEY_ARROW_LEFT_COMMAND,(e=>{const t=h_.$getSelection();if(h_.$isNodeSelection(t)){var n=t.getNodes();if(0<n.length)return e.preventDefault(),n[0].selectPrevious(),!0}return!!h_.$isRangeSelection(t)&&(!!p_.$shouldOverrideDefaultCharacterSelection(t,!0)&&(n=e.shiftKey,e.preventDefault(),p_.$moveCharacter(t,n,!0),!0))}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.KEY_ARROW_RIGHT_COMMAND,(e=>{const t=h_.$getSelection();if(h_.$isNodeSelection(t)&&!P_(e.target)){var n=t.getNodes();if(0<n.length)return e.preventDefault(),n[0].selectNext(0,0),!0}return!!h_.$isRangeSelection(t)&&(n=e.shiftKey,!!p_.$shouldOverrideDefaultCharacterSelection(t,!1)&&(e.preventDefault(),p_.$moveCharacter(t,n,!1),!0))}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.KEY_BACKSPACE_COMMAND,(t=>{if(P_(t.target))return!1;const n=h_.$getSelection();if(!h_.$isRangeSelection(n))return!1;t.preventDefault(),({anchor:t}=n);const r=t.getNode();return n.isCollapsed()&&0===t.offset&&!h_.$isRootNode(r)&&0<m_.$getNearestBlockElementAncestorOrThrow(r).getIndent()?e.dispatchCommand(h_.OUTDENT_CONTENT_COMMAND,void 0):e.dispatchCommand(h_.DELETE_CHARACTER_COMMAND,!0)}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.KEY_DELETE_COMMAND,(t=>{if(P_(t.target))return!1;const n=h_.$getSelection();return!!h_.$isRangeSelection(n)&&(t.preventDefault(),e.dispatchCommand(h_.DELETE_CHARACTER_COMMAND,!1))}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.KEY_ENTER_COMMAND,(t=>{const n=h_.$getSelection();if(!h_.$isRangeSelection(n))return!1;if(null!==t){if((__||x_||E_)&&y_)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(h_.INSERT_LINE_BREAK_COMMAND,!1)}return e.dispatchCommand(h_.INSERT_PARAGRAPH_COMMAND,void 0)}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.KEY_ESCAPE_COMMAND,(()=>{const t=h_.$getSelection();return!!h_.$isRangeSelection(t)&&(e.blur(),!0)}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.DROP_COMMAND,(t=>{const[,n]=M_(t);if(0<n.length){var r=g_(t.clientX,t.clientY);if(null!==r){const{offset:t,node:i}=r;var o=h_.$getNearestNodeFromDOMNode(i);if(null!==o){if(r=h_.$createRangeSelection(),h_.$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=h_.$normalizeSelection__EXPERIMENTAL(r),h_.$setSelection(r)}e.dispatchCommand(C_,n)}return t.preventDefault(),!0}return t=h_.$getSelection(),!!h_.$isRangeSelection(t)}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.DRAGSTART_COMMAND,(e=>{[e]=M_(e);const t=h_.$getSelection();return!(e&&!h_.$isRangeSelection(t))}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.DRAGOVER_COMMAND,(e=>{var[t]=M_(e);const n=h_.$getSelection();return!(t&&!h_.$isRangeSelection(n))&&(null!==(t=g_(e.clientX,e.clientY))&&(t=h_.$getNearestNodeFromDOMNode(t.node),h_.$isDecoratorNode(t)&&e.preventDefault()),!0)}),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.COPY_COMMAND,(t=>(f_.copyToClipboard(e,m_.objectKlassEquals(t,ClipboardEvent)?t:null),!0)),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.CUT_COMMAND,(t=>(async function(e,t){await f_.copyToClipboard(t,m_.objectKlassEquals(e,ClipboardEvent)?e:null),t.update((()=>{let e=h_.$getSelection();h_.$isRangeSelection(e)?e.removeText():h_.$isNodeSelection(e)&&e.getNodes().forEach((e=>e.remove()))}))}(t,e),!0)),h_.COMMAND_PRIORITY_EDITOR),e.registerCommand(h_.PASTE_COMMAND,(t=>{const[,n,r]=M_(t);if(0<n.length&&!r)return e.dispatchCommand(C_,n),!0;if(h_.isSelectionCapturedInDecoratorInput(t.target))return!1;const o=h_.$getSelection();return!(!h_.$isRangeSelection(o)&&!h_.DEPRECATED_$isGridSelection(o))&&(function(e,t){e.preventDefault(),t.update((()=>{let n=h_.$getSelection(),r=e instanceof InputEvent||e instanceof KeyboardEvent?null:e.clipboardData;null!=r&&(h_.$isRangeSelection(n)||h_.DEPRECATED_$isGridSelection(n))&&f_.$insertDataTransferForRichText(r,n,t)}),{tag:"paste"})}(t,e),!0)}),h_.COMMAND_PRIORITY_EDITOR))};var I_=Kx,D_={},$_=Ry,z_=px,F_=by,B_=ey,H_=H;function W_(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}let j_=/[.,;\s]/;function K_(e){var t;return e=e.getPreviousSibling(),B_.$isElementNode(e)&&(e=e.getLastDescendant()),!(t=null===e||B_.$isLineBreakNode(e))&&(t=B_.$isTextNode(e))&&(e=e.getTextContent(),t=j_.test(e[e.length-1])),t}function U_(e){return e=e.getNextSibling(),B_.$isElementNode(e)&&(e=e.getFirstDescendant()),null===e||B_.$isLineBreakNode(e)||B_.$isTextNode(e)&&j_.test(e.getTextContent()[0])}function Y_(e,t,n){var r=e.getChildren();let o=r.length;for(let t=0;t<o;t++){let o=r[t];if(!B_.$isTextNode(o)||!o.isSimpleText())return G_(e),void n(null,e.getURL())}null===(t=W_(r=e.getTextContent(),t))||t.text!==r?(G_(e),n(null,e.getURL())):K_(e)&&U_(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)))):(G_(e),n(null,e.getURL()))}function G_(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 V_(e,t,n){H_.useEffect((()=>{e.hasNodes([$_.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 F_.mergeRegister(e.registerNodeTransform(B_.TextNode,(e=>{var o=e.getParentOrThrow(),i=e.getPreviousSibling();if($_.$isAutoLinkNode(o))Y_(o,t,r);else if(!$_.$isLinkNode(o)){if(e.isSimpleText()&&(j_.test(e.getTextContent()[0])||!$_.$isAutoLinkNode(i))){i=o=e.getTextContent();let r=0,f=e;for(var l;(l=W_(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?j_.test(u[a-1]):K_(c))&&(s<u.length?j_.test(u[s]):U_(c))){var d=void 0;0===r+t?[d,f]=f.splitText(r+p):[,d,f]=f.splitText(r+t,r+t+p),a=$_.$createAutoLinkNode(l.url,l.attributes),(s=B_.$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(),$_.$isAutoLinkNode(o)&&!j_.test(d[0])&&(o.append(e),Y_(o,t,r),e=o.getURL(),n&&n(null,e)),$_.$isAutoLinkNode(l)&&!j_.test(d[d.length-1])&&(G_(l),Y_(l,t,r),e=l.getURL(),n&&n(null,e))}})))}),[e,t,n])}D_.AutoLinkPlugin=function({matchers:e,onChange:t}){let[n]=z_.useLexicalComposerContext();return V_(n,e,t),null},D_.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 Q_=D_,X_=px,q_=H,J_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?q_.useLayoutEffect:q_.useEffect;function Z_(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}const ew=function(){return function(e){let[t]=X_.useLexicalComposerContext(),n=q_.useMemo((()=>e(t)),[t,e]),r=q_.useRef(n.initialValueFn()),[o,i]=q_.useState(r.current);return J_((()=>{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}(Z_)};var tw=ew,nw=r(tw);var rw={black:"#000",white:"#fff"};var ow={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var iw={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var lw={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var aw={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var sw={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var uw={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var cw={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 dw(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function fw(e){if(!dw(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=fw(e[n])})),t}function pw(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return dw(e)&&dw(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(dw(t[o])&&o in e&&dw(e[o])?r[o]=pw(e[o],t[o],n):n.clone?r[o]=dw(t[o])?fw(t[o]):t[o]:r[o]=t[o])})),r}function mw(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 hw,gw={},vw=Symbol.for("react.element"),bw=Symbol.for("react.portal"),yw=Symbol.for("react.fragment"),xw=Symbol.for("react.strict_mode"),_w=Symbol.for("react.profiler"),ww=Symbol.for("react.provider"),Ew=Symbol.for("react.context"),Cw=Symbol.for("react.server_context"),kw=Symbol.for("react.forward_ref"),Sw=Symbol.for("react.suspense"),Tw=Symbol.for("react.suspense_list"),Nw=Symbol.for("react.memo"),Rw=Symbol.for("react.lazy"),Aw=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 Ow(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case vw:switch(e=e.type){case yw:case _w:case xw:case Sw:case Tw:return e;default:switch(e=e&&e.$$typeof){case Cw:case Ew:case kw:case Rw:case Nw:case ww:return e;default:return t}}case bw:return t}}}function Mw(e){if("string"!=typeof e)throw new Error(mw(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Lw(e){return e&&e.ownerDocument||document}function Pw(e){return Lw(e).defaultView||window}function Iw(e,t){"function"==typeof e?e(t):e&&(e.current=t)}hw=Symbol.for("react.module.reference"),gw.ContextConsumer=Ew,gw.ContextProvider=ww,gw.Element=vw,gw.ForwardRef=kw,gw.Fragment=yw,gw.Lazy=Rw,gw.Memo=Nw,gw.Portal=bw,gw.Profiler=_w,gw.StrictMode=xw,gw.Suspense=Sw,gw.SuspenseList=Tw,gw.isAsyncMode=function(){return!1},gw.isConcurrentMode=function(){return!1},gw.isContextConsumer=function(e){return Ow(e)===Ew},gw.isContextProvider=function(e){return Ow(e)===ww},gw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===vw},gw.isForwardRef=function(e){return Ow(e)===kw},gw.isFragment=function(e){return Ow(e)===yw},gw.isLazy=function(e){return Ow(e)===Rw},gw.isMemo=function(e){return Ow(e)===Nw},gw.isPortal=function(e){return Ow(e)===bw},gw.isProfiler=function(e){return Ow(e)===_w},gw.isStrictMode=function(e){return Ow(e)===xw},gw.isSuspense=function(e){return Ow(e)===Sw},gw.isSuspenseList=function(e){return Ow(e)===Tw},gw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===yw||e===_w||e===xw||e===Sw||e===Tw||e===Aw||"object"==typeof e&&null!==e&&(e.$$typeof===Rw||e.$$typeof===Nw||e.$$typeof===ww||e.$$typeof===Ew||e.$$typeof===kw||e.$$typeof===hw||void 0!==e.getModuleId)},gw.typeOf=Ow;var Dw="undefined"!=typeof window?H.useLayoutEffect:H.useEffect;let $w=0;const zw=j["useId".toString()];function Fw(e){if(void 0!==zw){const t=zw();return null!=e?e:t}return function(e){const[t,n]=H.useState(e),r=e||t;return H.useEffect((()=>{null==t&&($w+=1,n(`mui-${$w}`))}),[t]),r}(e)}function Bw(e){const t=H.useRef(e);return Dw((()=>{t.current=e})),H.useCallback(((...e)=>(0,t.current)(...e)),[])}function Hw(...e){return H.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Iw(e,t)}))}),e)}let Ww,jw=!0,Kw=!1;const Uw={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 Yw(e){e.metaKey||e.altKey||e.ctrlKey||(jw=!0)}function Gw(){jw=!1}function Vw(){"hidden"===this.visibilityState&&Kw&&(jw=!0)}function Qw(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return jw||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Uw[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Xw(){const e=H.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Yw,!0),t.addEventListener("mousedown",Gw,!0),t.addEventListener("pointerdown",Gw,!0),t.addEventListener("touchstart",Gw,!0),t.addEventListener("visibilitychange",Vw,!0))}),[]),t=H.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Qw(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Kw=!0,window.clearTimeout(Ww),Ww=window.setTimeout((()=>{Kw=!1}),100),t.current=!1,!0)},ref:e}}function qw(e,t){const n={...t};return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]={...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]={...i},Object.keys(o).forEach((e=>{n[r][e]=qw(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Jw(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 Zw=e=>e;var eE=(()=>{let e=Zw;return{configure(t){e=t},generate:t=>e(t),reset(){e=Zw}}})();const tE={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function nE(e,t,n="Mui"){const r=tE[t];return r?`${n}-${r}`:`${eE.generate(e)}-${t}`}function rE(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=nE(e,t,n)})),r}var oE="$$material";function iE(){return iE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iE.apply(this,arguments)}function lE(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function aE(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var sE=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,uE=aE((function(e){return sE.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var cE=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){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),dE="-ms-",fE="-moz-",pE="-webkit-",mE="comm",hE="rule",gE="decl",vE="@keyframes",bE=Math.abs,yE=String.fromCharCode,xE=Object.assign;function _E(e){return e.trim()}function wE(e,t,n){return e.replace(t,n)}function EE(e,t){return e.indexOf(t)}function CE(e,t){return 0|e.charCodeAt(t)}function kE(e,t,n){return e.slice(t,n)}function SE(e){return e.length}function TE(e){return e.length}function NE(e,t){return t.push(e),e}var RE=1,AE=1,OE=0,ME=0,LE=0,PE="";function IE(e,t,n,r,o,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:RE,column:AE,length:l,return:""}}function DE(e,t){return xE(IE("",null,null,"",null,null,0),e,{length:-e.length},t)}function $E(){return LE=ME>0?CE(PE,--ME):0,AE--,10===LE&&(AE=1,RE--),LE}function zE(){return LE=ME<OE?CE(PE,ME++):0,AE++,10===LE&&(AE=1,RE++),LE}function FE(){return CE(PE,ME)}function BE(){return ME}function HE(e,t){return kE(PE,e,t)}function WE(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function jE(e){return RE=AE=1,OE=SE(PE=e),ME=0,[]}function KE(e){return PE="",e}function UE(e){return _E(HE(ME-1,VE(91===e?e+2:40===e?e+1:e)))}function YE(e){for(;(LE=FE())&&LE<33;)zE();return WE(e)>2||WE(LE)>3?"":" "}function GE(e,t){for(;--t&&zE()&&!(LE<48||LE>102||LE>57&&LE<65||LE>70&&LE<97););return HE(e,BE()+(t<6&&32==FE()&&32==zE()))}function VE(e){for(;zE();)switch(LE){case e:return ME;case 34:case 39:34!==e&&39!==e&&VE(LE);break;case 40:41===e&&VE(e);break;case 92:zE()}return ME}function QE(e,t){for(;zE()&&e+LE!==57&&(e+LE!==84||47!==FE()););return"/*"+HE(t,ME-1)+"*"+yE(47===e?e:zE())}function XE(e){for(;!WE(FE());)zE();return HE(e,ME)}function qE(e){return KE(JE("",null,null,null,[""],e=jE(e),0,[0],e))}function JE(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,w=r,E=y;g;)switch(m=b,b=zE()){case 40:if(108!=m&&58==CE(E,d-1)){-1!=EE(E+=wE(UE(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=UE(b);break;case 9:case 10:case 13:case 32:E+=YE(m);break;case 92:E+=GE(BE()-1,7);continue;case 47:switch(FE()){case 42:case 47:NE(eC(QE(zE(),BE()),t,n),s);break;default:E+="/"}break;case 123*h:a[u++]=SE(E)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(E=wE(E,/\f/g,"")),p>0&&SE(E)-d&&NE(p>32?tC(E+";",r,n,d-1):tC(wE(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(NE(w=ZE(E,t,n,u,c,o,a,y,x=[],_=[],d),i),123===b)if(0===c)JE(E,t,w,w,x,i,d,a,_);else switch(99===f&&110===CE(E,3)?100:f){case 100:case 108:case 109:case 115:JE(e,w,w,r&&NE(ZE(e,w,w,0,0,o,a,y,o,x=[],d),_),o,_,d,a,r?x:_);break;default:JE(E,w,w,w,[""],_,0,a,_)}}u=c=p=0,h=v=1,y=E="",d=l;break;case 58:d=1+SE(E),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==$E())continue;switch(E+=yE(b),b*h){case 38:v=c>0?1:(E+="\f",-1);break;case 44:a[u++]=(SE(E)-1)*v,v=1;break;case 64:45===FE()&&(E+=UE(zE())),f=FE(),c=d=SE(y=E+=XE(BE())),b++;break;case 45:45===m&&2==SE(E)&&(h=0)}}return i}function ZE(e,t,n,r,o,i,l,a,s,u,c){for(var d=o-1,f=0===o?i:[""],p=TE(f),m=0,h=0,g=0;m<r;++m)for(var v=0,b=kE(e,d+1,d=bE(h=l[m])),y=e;v<p;++v)(y=_E(h>0?f[v]+" "+b:wE(b,/&\f/g,f[v])))&&(s[g++]=y);return IE(e,t,n,0===o?hE:a,s,u,c)}function eC(e,t,n){return IE(e,t,n,mE,yE(LE),kE(e,2,-2),0)}function tC(e,t,n,r){return IE(e,t,n,gE,kE(e,0,r),kE(e,r+1,-1),r)}function nC(e,t){for(var n="",r=TE(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function rC(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case gE:return e.return=e.return||e.value;case mE:return"";case vE:return e.return=e.value+"{"+nC(e.children,r)+"}";case hE:e.value=e.props.join(",")}return SE(n=nC(e.children,r))?e.return=e.value+"{"+n+"}":""}function oC(e){var t=TE(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 iC=function(e,t,n){for(var r=0,o=0;r=o,o=FE(),38===r&&12===o&&(t[n]=1),!WE(o);)zE();return HE(e,ME)},lC=function(e,t){return KE(function(e,t){var n=-1,r=44;do{switch(WE(r)){case 0:38===r&&12===FE()&&(t[n]=1),e[n]+=iC(ME-1,t,n);break;case 2:e[n]+=UE(r);break;case 4:if(44===r){e[++n]=58===FE()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=yE(r)}}while(r=zE());return e}(jE(e),t))},aC=new WeakMap,sC=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)||aC.get(n))&&!r){aC.set(e,!0);for(var o=[],i=lC(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]}}},uC=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function cC(e,t){switch(function(e,t){return 45^CE(e,0)?(((t<<2^CE(e,0))<<2^CE(e,1))<<2^CE(e,2))<<2^CE(e,3):0}(e,t)){case 5103:return pE+"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 pE+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pE+e+fE+e+dE+e+e;case 6828:case 4268:return pE+e+dE+e+e;case 6165:return pE+e+dE+"flex-"+e+e;case 5187:return pE+e+wE(e,/(\w+).+(:[^]+)/,pE+"box-$1$2"+dE+"flex-$1$2")+e;case 5443:return pE+e+dE+"flex-item-"+wE(e,/flex-|-self/,"")+e;case 4675:return pE+e+dE+"flex-line-pack"+wE(e,/align-content|flex-|-self/,"")+e;case 5548:return pE+e+dE+wE(e,"shrink","negative")+e;case 5292:return pE+e+dE+wE(e,"basis","preferred-size")+e;case 6060:return pE+"box-"+wE(e,"-grow","")+pE+e+dE+wE(e,"grow","positive")+e;case 4554:return pE+wE(e,/([^-])(transform)/g,"$1"+pE+"$2")+e;case 6187:return wE(wE(wE(e,/(zoom-|grab)/,pE+"$1"),/(image-set)/,pE+"$1"),e,"")+e;case 5495:case 3959:return wE(e,/(image-set\([^]*)/,pE+"$1$`$1");case 4968:return wE(wE(e,/(.+:)(flex-)?(.*)/,pE+"box-pack:$3"+dE+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pE+e+e;case 4095:case 3583:case 4068:case 2532:return wE(e,/(.+)-inline(.+)/,pE+"$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(SE(e)-1-t>6)switch(CE(e,t+1)){case 109:if(45!==CE(e,t+4))break;case 102:return wE(e,/(.+:)(.+)-([^]+)/,"$1"+pE+"$2-$3$1"+fE+(108==CE(e,t+3)?"$3":"$2-$3"))+e;case 115:return~EE(e,"stretch")?cC(wE(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==CE(e,t+1))break;case 6444:switch(CE(e,SE(e)-3-(~EE(e,"!important")&&10))){case 107:return wE(e,":",":"+pE)+e;case 101:return wE(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pE+(45===CE(e,14)?"inline-":"")+"box$3$1"+pE+"$2$3$1"+dE+"$2box$3")+e}break;case 5936:switch(CE(e,t+11)){case 114:return pE+e+dE+wE(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pE+e+dE+wE(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pE+e+dE+wE(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pE+e+dE+e+e}return e}var dC,fC,pC="undefined"!=typeof document,mC=pC?void 0:(dC=function(){return aE((function(){var e={};return function(t){return e[t]}}))},fC=new WeakMap,function(e){if(fC.has(e))return fC.get(e);var t=dC(e);return fC.set(e,t),t}),hC=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case gE:e.return=cC(e.value,e.length);break;case vE:return nC([DE(e,{value:wE(e.value,"@","@"+pE)})],r);case hE: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 nC([DE(e,{props:[wE(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return nC([DE(e,{props:[wE(t,/:(plac\w+)/,":"+pE+"input-$1")]}),DE(e,{props:[wE(t,/:(plac\w+)/,":-moz-$1")]}),DE(e,{props:[wE(t,/:(plac\w+)/,dE+"input-$1")]})],r)}return""}))}}],gC=function(e){var t=e.key;if(pC&&"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||hC,l={},a=[];pC&&(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=[sC,uC];if(pC){var c,d=[rC,(s=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],f=oC(u.concat(i,d));o=function(e,t,n,r){c=n,function(e){nC(qE(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var p=[rC],m=oC(u.concat(i,p)),h=mC(i)(t),g=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return nC(qE(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 cE({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},vC={exports:{}},bC={},yC="function"==typeof Symbol&&Symbol.for,xC=yC?Symbol.for("react.element"):60103,_C=yC?Symbol.for("react.portal"):60106,wC=yC?Symbol.for("react.fragment"):60107,EC=yC?Symbol.for("react.strict_mode"):60108,CC=yC?Symbol.for("react.profiler"):60114,kC=yC?Symbol.for("react.provider"):60109,SC=yC?Symbol.for("react.context"):60110,TC=yC?Symbol.for("react.async_mode"):60111,NC=yC?Symbol.for("react.concurrent_mode"):60111,RC=yC?Symbol.for("react.forward_ref"):60112,AC=yC?Symbol.for("react.suspense"):60113,OC=yC?Symbol.for("react.suspense_list"):60120,MC=yC?Symbol.for("react.memo"):60115,LC=yC?Symbol.for("react.lazy"):60116,PC=yC?Symbol.for("react.block"):60121,IC=yC?Symbol.for("react.fundamental"):60117,DC=yC?Symbol.for("react.responder"):60118,$C=yC?Symbol.for("react.scope"):60119;function zC(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case xC:switch(e=e.type){case TC:case NC:case wC:case CC:case EC:case AC:return e;default:switch(e=e&&e.$$typeof){case SC:case RC:case LC:case MC:case kC:return e;default:return t}}case _C:return t}}}function FC(e){return zC(e)===NC}bC.AsyncMode=TC,bC.ConcurrentMode=NC,bC.ContextConsumer=SC,bC.ContextProvider=kC,bC.Element=xC,bC.ForwardRef=RC,bC.Fragment=wC,bC.Lazy=LC,bC.Memo=MC,bC.Portal=_C,bC.Profiler=CC,bC.StrictMode=EC,bC.Suspense=AC,bC.isAsyncMode=function(e){return FC(e)||zC(e)===TC},bC.isConcurrentMode=FC,bC.isContextConsumer=function(e){return zC(e)===SC},bC.isContextProvider=function(e){return zC(e)===kC},bC.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===xC},bC.isForwardRef=function(e){return zC(e)===RC},bC.isFragment=function(e){return zC(e)===wC},bC.isLazy=function(e){return zC(e)===LC},bC.isMemo=function(e){return zC(e)===MC},bC.isPortal=function(e){return zC(e)===_C},bC.isProfiler=function(e){return zC(e)===CC},bC.isStrictMode=function(e){return zC(e)===EC},bC.isSuspense=function(e){return zC(e)===AC},bC.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===wC||e===NC||e===CC||e===EC||e===AC||e===OC||"object"==typeof e&&null!==e&&(e.$$typeof===LC||e.$$typeof===MC||e.$$typeof===kC||e.$$typeof===SC||e.$$typeof===RC||e.$$typeof===IC||e.$$typeof===DC||e.$$typeof===$C||e.$$typeof===PC)},bC.typeOf=zC,vC.exports=bC;var BC=vC.exports,HC={};HC[BC.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},HC[BC.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var WC="undefined"!=typeof document;var jC=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===WC&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},KC=function(e,t,n){jC(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);WC||void 0===l||(o+=l),i=i.next}while(void 0!==i);if(!WC&&0!==o.length)return o}};var UC={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,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},YC=/[A-Z]|^ms/g,GC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,VC=function(e){return 45===e.charCodeAt(1)},QC=function(e){return null!=e&&"boolean"!=typeof e},XC=aE((function(e){return VC(e)?e:e.replace(YC,"-$&").toLowerCase()})),qC=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(GC,(function(e,t,n){return ZC={name:t,styles:n,next:ZC},t}))}return 1===UC[e]||VC(e)||"number"!=typeof t||0===t?t:t+"px"};function JC(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ZC={name:n.name,styles:n.styles,next:ZC},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ZC={name:r.name,styles:r.styles,next:ZC},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=JC(e,t,n[o])+";";else for(var i in n){var l=n[i];if("object"!=typeof l)null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":QC(l)&&(r+=XC(i)+":"+qC(i,l)+";");else if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var a=JC(e,t,l);switch(i){case"animation":case"animationName":r+=XC(i)+":"+a+";";break;default:r+=i+"{"+a+"}"}}else for(var s=0;s<l.length;s++)QC(l[s])&&(r+=XC(i)+":"+qC(i,l[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ZC,i=n(e);return ZC=o,JC(e,t,i)}}if(null==t)return n;var l=t[n];return void 0!==l?l:n}var ZC,ek=/label:\s*([^\s;\n{]+)\s*(;|$)/g,tk=function(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="";ZC=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=JC(n,t,i)):o+=i[0];for(var l=1;l<e.length;l++)o+=JC(n,t,e[l]),r&&(o+=i[l]);ek.lastIndex=0;for(var a,s="";null!==(a=ek.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:ZC}},nk="undefined"!=typeof document,rk=function(e){return e()},ok=!!j.useInsertionEffect&&j.useInsertionEffect,ik=nk&&ok||rk,lk=ok||H.useLayoutEffect,ak="undefined"!=typeof document,sk=H.createContext("undefined"!=typeof HTMLElement?gC({key:"css"}):null);sk.Provider;var uk=function(e){return H.forwardRef((function(t,n){var r=H.useContext(sk);return e(t,r,n)}))};ak||(uk=function(e){return function(t){var n=H.useContext(sk);return null===n?(n=gC({key:"css"}),H.createElement(sk.Provider,{value:n},e(t,n))):e(t,n)}});var ck=H.createContext({}),dk=uk((function(e,t){var n=e.styles,r=tk([n],void 0,H.useContext(ck));if(!ak){for(var o,i=r.name,l=r.styles,a=r.next;void 0!==a;)i+=" "+a.name,l+=a.styles,a=a.next;var s=!0===t.compat,u=t.insert("",{name:i,styles:l},t.sheet,s);return s?null:H.createElement("style",((o={})["data-emotion"]=t.key+"-global "+i,o.dangerouslySetInnerHTML={__html:u},o.nonce=t.sheet.nonce,o))}var c=H.useRef();return lk((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),c.current=[n,o],function(){n.flush()}}),[t]),lk((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&KC(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function fk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tk(t)}var pk=function(){var e=fk.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_"}}},mk=uE,hk=function(e){return"theme"!==e},gk=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?mk:hk},vk=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},bk="undefined"!=typeof document,yk=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;jC(t,n,r);var o=ik((function(){return KC(t,n,r)}));if(!bk&&void 0!==o){for(var i,l=n.name,a=n.next;void 0!==a;)l+=" "+a.name,a=a.next;return H.createElement("style",((i={})["data-emotion"]=t.key+" "+l,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},xk=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=vk(t,n,i),s=a||gk(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=uk((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=H.useContext(ck)}"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]+";"):f+=e+" "})),m=f):null!=e.className&&(m=e.className+" ");var b=tk(d.concat(h),t.registered,g);m+=t.key+"-"+b.name,void 0!==o&&(m+=" "+o);var y=u&&void 0===a?gk(p):s,x={};for(var _ in e)u&&"as"===_||y(_)&&(x[_]=e[_]);return x.className=m,x.ref=n,H.createElement(H.Fragment,null,H.createElement(yk,{cache:t,serialized:b,isStringTag:"string"==typeof p}),H.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,iE({},n,r,{shouldForwardProp:vk(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){xk[e]=xk(e)}));var _k={exports:{}},wk={},Ek=H,Ck=Symbol.for("react.element"),kk=Symbol.for("react.fragment"),Sk=Object.prototype.hasOwnProperty,Tk=Ek.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Nk={key:!0,ref:!0,__self:!0,__source:!0};function Rk(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)Sk.call(t,r)&&!Nk.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:Ck,type:e,key:i,ref:l,props:o,_owner:Tk.current}}wk.Fragment=kk,wk.jsx=Rk,wk.jsxs=Rk,_k.exports=wk;var Ak=_k.exports;function Ok(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 Ak.jsx(dk,{styles:r})}
|
|
36
|
+
/**
|
|
37
|
+
* @mui/styled-engine v5.13.2
|
|
38
|
+
*
|
|
39
|
+
* @license MIT
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/function Mk(e,t){return xk(e,t)}const Lk=["values","unit","step"],Pk=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)=>iE({},e,{[t.key]:t.val})),{})};var Ik={borderRadius:4};function Dk(e,t){return t?pw(e,t,{clone:!1}):e}const $k={xs:0,sm:600,md:900,lg:1200,xl:1536},zk={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${$k[e]}px)`};function Fk(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||zk;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||zk;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||$k).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Bk(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Hk(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Wk({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 jk(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 Kk(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:jk(e,n)||r,t&&(o=t(o,r,e)),o}function Uk(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=jk(e.theme,r)||{};return Fk(e,i,(e=>{let r=Kk(l,o,e);return e===r&&"string"==typeof e&&(r=Kk(l,o,`${t}${"default"===e?"":Mw(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Yk={m:"margin",p:"padding"},Gk={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Vk={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Qk=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Vk[e])return[e];e=Vk[e]}const[t,n]=e.split(""),r=Yk[t],o=Gk[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Xk=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qk=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Jk(e,t,n,r){var o;const i=null!=(o=jk(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 Zk(e){return Jk(e,"spacing",8)}function eS(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 tS(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=eS(t,n),e)),{})}(Qk(n),r);return Fk(e,e[n],o)}function nS(e,t){const n=Zk(e.theme);return Object.keys(e).map((r=>tS(e,t,r,n))).reduce(Dk,{})}function rS(e){return nS(e,Xk)}function oS(e){return nS(e,qk)}function iS(...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]?Dk(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function lS(e){return"number"!=typeof e?e:`${e}px solid`}rS.propTypes={},rS.filterProps=Xk,oS.propTypes={},oS.filterProps=qk;const aS=Uk({prop:"border",themeKey:"borders",transform:lS}),sS=Uk({prop:"borderTop",themeKey:"borders",transform:lS}),uS=Uk({prop:"borderRight",themeKey:"borders",transform:lS}),cS=Uk({prop:"borderBottom",themeKey:"borders",transform:lS}),dS=Uk({prop:"borderLeft",themeKey:"borders",transform:lS}),fS=Uk({prop:"borderColor",themeKey:"palette"}),pS=Uk({prop:"borderTopColor",themeKey:"palette"}),mS=Uk({prop:"borderRightColor",themeKey:"palette"}),hS=Uk({prop:"borderBottomColor",themeKey:"palette"}),gS=Uk({prop:"borderLeftColor",themeKey:"palette"}),vS=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Jk(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:eS(t,e)});return Fk(e,e.borderRadius,n)}return null};vS.propTypes={},vS.filterProps=["borderRadius"],iS(aS,sS,uS,cS,dS,fS,pS,mS,hS,gS,vS);const bS=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Jk(e.theme,"spacing",8),n=e=>({gap:eS(t,e)});return Fk(e,e.gap,n)}return null};bS.propTypes={},bS.filterProps=["gap"];const yS=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Jk(e.theme,"spacing",8),n=e=>({columnGap:eS(t,e)});return Fk(e,e.columnGap,n)}return null};yS.propTypes={},yS.filterProps=["columnGap"];const xS=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Jk(e.theme,"spacing",8),n=e=>({rowGap:eS(t,e)});return Fk(e,e.rowGap,n)}return null};xS.propTypes={},xS.filterProps=["rowGap"];function _S(e,t){return"grey"===t?t:e}iS(bS,yS,xS,Uk({prop:"gridColumn"}),Uk({prop:"gridRow"}),Uk({prop:"gridAutoFlow"}),Uk({prop:"gridAutoColumns"}),Uk({prop:"gridAutoRows"}),Uk({prop:"gridTemplateColumns"}),Uk({prop:"gridTemplateRows"}),Uk({prop:"gridTemplateAreas"}),Uk({prop:"gridArea"}));function wS(e){return e<=1&&0!==e?100*e+"%":e}iS(Uk({prop:"color",themeKey:"palette",transform:_S}),Uk({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_S}),Uk({prop:"backgroundColor",themeKey:"palette",transform:_S}));const ES=Uk({prop:"width",transform:wS}),CS=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||$k[t]||wS(t)}};return Fk(e,e.maxWidth,t)}return null};CS.filterProps=["maxWidth"];const kS=Uk({prop:"minWidth",transform:wS}),SS=Uk({prop:"height",transform:wS}),TS=Uk({prop:"maxHeight",transform:wS}),NS=Uk({prop:"minHeight",transform:wS});Uk({prop:"size",cssProperty:"width",transform:wS}),Uk({prop:"size",cssProperty:"height",transform:wS});iS(ES,CS,kS,SS,TS,NS,Uk({prop:"boxSizing"}));var RS={border:{themeKey:"borders",transform:lS},borderTop:{themeKey:"borders",transform:lS},borderRight:{themeKey:"borders",transform:lS},borderBottom:{themeKey:"borders",transform:lS},borderLeft:{themeKey:"borders",transform:lS},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vS},color:{themeKey:"palette",transform:_S},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_S},backgroundColor:{themeKey:"palette",transform:_S},p:{style:oS},pt:{style:oS},pr:{style:oS},pb:{style:oS},pl:{style:oS},px:{style:oS},py:{style:oS},padding:{style:oS},paddingTop:{style:oS},paddingRight:{style:oS},paddingBottom:{style:oS},paddingLeft:{style:oS},paddingX:{style:oS},paddingY:{style:oS},paddingInline:{style:oS},paddingInlineStart:{style:oS},paddingInlineEnd:{style:oS},paddingBlock:{style:oS},paddingBlockStart:{style:oS},paddingBlockEnd:{style:oS},m:{style:rS},mt:{style:rS},mr:{style:rS},mb:{style:rS},ml:{style:rS},mx:{style:rS},my:{style:rS},margin:{style:rS},marginTop:{style:rS},marginRight:{style:rS},marginBottom:{style:rS},marginLeft:{style:rS},marginX:{style:rS},marginY:{style:rS},marginInline:{style:rS},marginInlineStart:{style:rS},marginInlineEnd:{style:rS},marginBlock:{style:rS},marginBlockStart:{style:rS},marginBlockEnd:{style:rS},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:bS},rowGap:{style:xS},columnGap:{style:yS},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wS},maxWidth:{style:CS},minWidth:{transform:wS},height:{transform:wS},maxHeight:{transform:wS},minHeight:{transform:wS},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const AS=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=jk(n,a)||{};if(u)return u(o);return Fk(o,t,(t=>{let n=Kk(c,s,t);return t===n&&"string"==typeof t&&(n=Kk(c,s,`${e}${"default"===t?"":Mw(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:RS;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=Bk(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=Dk(s,e(n,o,i,l));else{const e=Fk({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=Dk(s,e):s[n]=t({sx:o,theme:i})}else s=Dk(s,e(n,o,i,l))})),Hk(a,s)}return Array.isArray(o)?o.map(a):a(o)}}();AS.filterProps=["sx"];var OS=AS;const MS=["breakpoints","palette","spacing","shape"];function LS(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=lE(e,MS),a=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=lE(e,Lk),i=Pk(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 iE({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)}(n),s=function(e=8){if(e.mui)return e;const t=Zk({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=pw({breakpoints:a,direction:"ltr",components:{},palette:iE({mode:"light"},r),spacing:s,shape:iE({},Ik,i)},l);return u=t.reduce(((e,t)=>pw(e,t)),u),u.unstable_sxConfig=iE({},RS,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return OS({sx:e,theme:this})},u}function PS(e=null){const t=H.useContext(ck);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const IS=LS();function DS(e=IS){return PS(e)}function $S({styles:e,themeId:t,defaultTheme:n={}}){const r=DS(n),o="function"==typeof e?e(t&&r[t]||r):e;return Ak.jsx(Ok,{styles:o})}const zS=["sx"],FS=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:RS;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function BS(e){const{sx:t}=e,n=lE(e,zS),{systemProps:r,otherProps:o}=FS(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return dw(n)?iE({},r,n):r}:iE({},r,t),iE({},o,{sx:i})}function HS(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=HS(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function WS(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=HS(e))&&(r&&(r+=" "),r+=t);return r}const jS=["className","component"];const KS=["variant"];function US(e){return 0===e.length}function YS(e){const{variant:t}=e,n=lE(e,KS);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?US(r)?e[t]:Mw(e[t]):`${US(r)?t:Mw(t)}${Mw(e[t].toString())}`})),r}const GS=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function VS(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const QS=LS();function XS({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function qS(e={}){const{themeId:t,defaultTheme:n=QS,rootShouldForwardProp:r=VS,slotShouldForwardProp:o=VS}=e,i=e=>OS(iE({},e,{theme:XS(iE({},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}=l,f=lE(l,GS),p=void 0!==u?u:s&&"Root"!==s||!1,m=c||!1;let h=VS;"Root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Mk(e,iE({shouldForwardProp:h,label:undefined},f)),v=(r,...o)=>{const l=o?o.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>e(iE({},r,{theme:XS(iE({},r,{defaultTheme:n,themeId:t}))})):e)):[];let s=r;a&&d&&l.push((e=>{const r=XS(iE({},e,{defaultTheme:n,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o(iE({},e,{theme:r})):o})),d(e,t)}return null})),a&&!p&&l.push((e=>{const r=XS(iE({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o,i;const{ownerState:l={}}=e,a=[],s=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return s&&s.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{l[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&a.push(t[YS(n.props)])})),a})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=YS(e.props);r[t]=e.style})),r})(a,r),r,a)})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>r(iE({},e,{theme:XS(iE({},e,{defaultTheme:n,themeId:t}))})));const c=g(s,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}var JS=qS();function ZS({props:e,name:t,defaultTheme:n,themeId:r}){let o=DS(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?qw(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function eT(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function tT(e){if(e.type)return e;if("#"===e.charAt(0))return tT(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(mw(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(mw(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function nT(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 rT(e){let t="hsl"===(e=tT(e)).type||"hsla"===e.type?tT(function(e){e=tT(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])),nT({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 oT(e,t){return e=tT(e),t=eT(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,nT(e)}var iT=H.createContext(null);function lT(){return H.useContext(iT)}var aT="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function sT(e){const{children:t,theme:n}=e,r=lT(),o=H.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return{...e,...t}}(r,n);return null!=e&&(e[aT]=null!==r),e}),[n,r]);return Ak.jsx(iT.Provider,{value:o,children:t})}const uT={};function cT(e,t,n,r=!1){return H.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),l=e?iE({},t,{[e]:i}):i;return r?()=>l:l}return iE({},t,e?{[e]:n}:n)}),[e,t,n,r])}function dT(e){const{children:t,theme:n,themeId:r}=e,o=PS(uT),i=lT()||uT,l=cT(r,o,n),a=cT(r,i,n,!0);return Ak.jsx(sT,{theme:a,children:Ak.jsx(ck.Provider,{value:l,children:t})})}const fT=["component","direction","spacing","divider","children","className","useFlexGap"],pT=LS(),mT=JS("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function hT(e){return ZS({props:e,name:"MuiStack",defaultTheme:pT})}function gT(e,t){const n=H.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(H.cloneElement(t,{key:`separator-${o}`})),e)),[])}const vT=({ownerState:e,theme:t})=>{let n=iE({display:"flex",flexDirection:"column"},Fk({theme:t},Wk({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=Zk(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=Wk({values:e.direction,base:o}),l=Wk({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=pw(n,Fk({theme:t},l,((t,n)=>{return e.useFlexGap?{gap:eS(r,t)}:{"& > :not(style) + :not(style)":{margin:0,[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:eS(r,t)}};var o})))}return n=function(e,...t){const n=Bk(e),r=[n,...t].reduce(((e,t)=>pw(e,t)),{});return Hk(Object.keys(n),r)}(t.breakpoints,n),n};const bT=["mode","contrastThreshold","tonalOffset"],yT={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:rw.white,default:rw.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}},xT={text:{primary:rw.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:rw.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 _T(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=tT(e),t=eT(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 nT(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=tT(e),t=eT(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 nT(e)}(e.main,i)))}function wT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=lE(e,bT),i=e.primary||function(e="light"){return"dark"===e?{main:lw[200],light:lw[50],dark:lw[400]}:{main:lw[700],light:lw[400],dark:lw[800]}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:iw[200],light:iw[50],dark:iw[400]}:{main:iw[500],light:iw[300],dark:iw[700]}}(t),a=e.error||function(e="light"){return"dark"===e?{main:ow[500],light:ow[300],dark:ow[700]}:{main:ow[700],light:ow[400],dark:ow[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:aw[400],light:aw[300],dark:aw[700]}:{main:aw[700],light:aw[500],dark:aw[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:sw[400],light:sw[300],dark:sw[700]}:{main:sw[800],light:sw[500],dark:sw[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:uw[400],light:uw[300],dark:uw[700]}:{main:"#ed6c02",light:uw[500],dark:uw[900]}}(t);function d(e){const t=function(e,t){const n=rT(e),r=rT(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,xT.text.primary)>=n?xT.text.primary:yT.text.primary;return t}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=iE({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(mw(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(mw(12,t?` (${t})`:"",JSON.stringify(e.main)));return _T(e,"light",o,r),_T(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:xT,light:yT};return pw(iE({common:iE({},rw),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:cw,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const ET=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const CT={textTransform:"uppercase"},kT='"Roboto", "Helvetica", "Arial", sans-serif';function ST(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=kT,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=lE(n,ET),p=o/14,m=d||(e=>e/u*p+"rem"),h=(e,t,n,o,i)=>{return iE({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===kT?{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,CT),caption:h(l,12,1.66,.4),overline:h(l,12,2.66,1,CT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pw(iE({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:s},g),f,{clone:!1})}function TT(...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(",")}var NT=["none",TT(0,2,1,-1,0,1,1,0,0,1,3,0),TT(0,3,1,-2,0,2,2,0,0,1,5,0),TT(0,3,3,-2,0,3,4,0,0,1,8,0),TT(0,2,4,-1,0,4,5,0,0,1,10,0),TT(0,3,5,-1,0,5,8,0,0,1,14,0),TT(0,3,5,-1,0,6,10,0,0,1,18,0),TT(0,4,5,-2,0,7,10,1,0,2,16,1),TT(0,5,5,-3,0,8,10,1,0,3,14,2),TT(0,5,6,-3,0,9,12,1,0,3,16,2),TT(0,6,6,-3,0,10,14,1,0,4,18,3),TT(0,6,7,-4,0,11,15,1,0,4,20,3),TT(0,7,8,-4,0,12,17,2,0,5,22,4),TT(0,7,8,-4,0,13,19,2,0,5,24,4),TT(0,7,9,-4,0,14,21,2,0,5,26,4),TT(0,8,9,-5,0,15,22,2,0,6,28,5),TT(0,8,10,-5,0,16,24,2,0,6,30,5),TT(0,8,11,-5,0,17,26,2,0,6,32,5),TT(0,9,11,-5,0,18,28,2,0,7,34,6),TT(0,9,12,-6,0,19,29,2,0,7,36,6),TT(0,10,13,-6,0,20,31,3,0,8,38,7),TT(0,10,13,-6,0,21,33,3,0,8,40,7),TT(0,10,14,-6,0,22,35,3,0,8,42,7),TT(0,11,14,-7,0,23,36,3,0,9,44,8),TT(0,11,15,-7,0,24,38,3,0,9,46,8)];const RT=["duration","easing","delay"],AT={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)"},OT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function MT(e){return`${Math.round(e)}ms`}function LT(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function PT(e){const t=iE({},AT,e.easing),n=iE({},OT,e.duration);return iE({getAutoHeightDuration:LT,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:l=0}=r;return lE(r,RT),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:MT(o)} ${i} ${"string"==typeof l?l:MT(l)}`)).join(",")}},e,{easing:t,duration:n})}var IT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const DT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function $T(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=lE(e,DT);if(e.vars)throw new Error(mw(18));const a=wT(r),s=LS(e);let u=pw(s,{mixins:(c=s.breakpoints,d=n,iE({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:a,shadows:NT.slice(),typography:ST(a,i),transitions:PT(o),zIndex:iE({},IT)});var c,d;return u=pw(u,l),u=t.reduce(((e,t)=>pw(e,t)),u),u.unstable_sxConfig=iE({},RS,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return OS({sx:e,theme:this})},u}var zT=$T();function FT(){const e=DS(zT);return e[oE]||e}function BT({props:e,name:t}){return ZS({props:e,name:t,defaultTheme:zT,themeId:oE})}const HT=e=>VS(e)&&"classes"!==e;var WT=qS({themeId:oE,defaultTheme:zT,rootShouldForwardProp:HT});const jT=["theme"];function KT(e){let{theme:t}=e,n=lE(e,jT);const r=t[oE];return Ak.jsx(dT,iE({},n,{themeId:r?oE:void 0,theme:r||t}))}var UT=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function YT(e){return"string"==typeof e}function GT(e,t,n){return void 0===e||YT(e)?t:iE({},t,{ownerState:iE({},t.ownerState,n)})}const VT={disableDefaultClasses:!1},QT=H.createContext(VT);function XT(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 qT(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=WS(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=iE({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),l=iE({},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}(iE({},o,r)),a=XT(r),s=XT(o),u=t(l),c=WS(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=iE({},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=iE({},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 JT=["elementType","externalSlotProps","ownerState"];function ZT(e){return e.substring(2).toLowerCase()}function eN(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,l=H.useRef(!1),a=H.useRef(null),s=H.useRef(!1),u=H.useRef(!1);H.useEffect((()=>(setTimeout((()=>{s.current=!0}),0),()=>{s.current=!1})),[]);const c=Hw(t.ref,a),d=Bw((e=>{const t=u.current;u.current=!1;const r=Lw(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)),H.useEffect((()=>{if(!1!==i){const e=ZT(i),t=Lw(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)),H.useEffect((()=>{if(!1!==r){const e=ZT(r),t=Lw(a.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}}),[d,r]),Ak.jsx(H.Fragment,{children:H.cloneElement(t,p)})}var tN="top",nN="bottom",rN="right",oN="left",iN="auto",lN=[tN,nN,rN,oN],aN="start",sN="end",uN="clippingParents",cN="viewport",dN="popper",fN="reference",pN=lN.reduce((function(e,t){return e.concat([t+"-"+aN,t+"-"+sN])}),[]),mN=[].concat(lN,[iN]).reduce((function(e,t){return e.concat([t,t+"-"+aN,t+"-"+sN])}),[]),hN=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function gN(e){return e?(e.nodeName||"").toLowerCase():null}function vN(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bN(e){return e instanceof vN(e).Element||e instanceof Element}function yN(e){return e instanceof vN(e).HTMLElement||e instanceof HTMLElement}function xN(e){return"undefined"!=typeof ShadowRoot&&(e instanceof vN(e).ShadowRoot||e instanceof ShadowRoot)}var _N={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];yN(o)&&gN(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}),{});yN(r)&&gN(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function wN(e){return e.split("-")[0]}var EN=Math.max,CN=Math.min,kN=Math.round;function SN(){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 TN(){return!/^((?!chrome|android).)*safari/i.test(SN())}function NN(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&yN(e)&&(o=e.offsetWidth>0&&kN(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&kN(r.height)/e.offsetHeight||1);var l=(bN(e)?vN(e):window).visualViewport,a=!TN()&&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 RN(e){var t=NN(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 AN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xN(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ON(e){return vN(e).getComputedStyle(e)}function MN(e){return["table","td","th"].indexOf(gN(e))>=0}function LN(e){return((bN(e)?e.ownerDocument:e.document)||window.document).documentElement}function PN(e){return"html"===gN(e)?e:e.assignedSlot||e.parentNode||(xN(e)?e.host:null)||LN(e)}function IN(e){return yN(e)&&"fixed"!==ON(e).position?e.offsetParent:null}function DN(e){for(var t=vN(e),n=IN(e);n&&MN(n)&&"static"===ON(n).position;)n=IN(n);return n&&("html"===gN(n)||"body"===gN(n)&&"static"===ON(n).position)?t:n||function(e){var t=/firefox/i.test(SN());if(/Trident/i.test(SN())&&yN(e)&&"fixed"===ON(e).position)return null;var n=PN(e);for(xN(n)&&(n=n.host);yN(n)&&["html","body"].indexOf(gN(n))<0;){var r=ON(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 $N(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zN(e,t,n){return EN(e,CN(t,n))}function FN(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function BN(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var HN={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=wN(n.placement),s=$N(a),u=[oN,rN].indexOf(a)>=0?"height":"width";if(i&&l){var c=function(e,t){return FN("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:BN(e,lN))}(o.padding,n),d=RN(i),f="y"===s?tN:oN,p="y"===s?nN:rN,m=n.rects.reference[u]+n.rects.reference[s]-l[s]-n.rects.popper[u],h=l[s]-n.rects.reference[s],g=DN(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,w=zN(y,_,x),E=s;n.modifiersData[r]=((t={})[E]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&AN(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function WN(e){return e.split("-")[1]}var jN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function KN(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=oN,x=tN,_=window;if(u){var w=DN(n),E="clientHeight",C="clientWidth";if(w===vN(n)&&"static"!==ON(w=LN(n)).position&&"absolute"===a&&(E="scrollHeight",C="scrollWidth"),o===tN||(o===oN||o===rN)&&i===sN)x=nN,h-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[E])-r.height,h*=s?1:-1;if(o===oN||(o===tN||o===nN)&&i===sN)y=rN,p-=(d&&w===_&&_.visualViewport?_.visualViewport.width:w[C])-r.width,p*=s?1:-1}var k,S=Object.assign({position:a},u&&jN),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:kN(n*o)/o||0,y:kN(r*o)/o||0}}({x:p,y:h},vN(n)):{x:p,y:h};return p=T.x,h=T.y,s?Object.assign({},S,((k={})[x]=b?"0":"",k[y]=v?"0":"",k.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",k)):Object.assign({},S,((t={})[x]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var UN={passive:!0};var YN={left:"right",right:"left",bottom:"top",top:"bottom"};function GN(e){return e.replace(/left|right|bottom|top/g,(function(e){return YN[e]}))}var VN={start:"end",end:"start"};function QN(e){return e.replace(/start|end/g,(function(e){return VN[e]}))}function XN(e){var t=vN(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qN(e){return NN(LN(e)).left+XN(e).scrollLeft}function JN(e){var t=ON(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ZN(e){return["html","body","#document"].indexOf(gN(e))>=0?e.ownerDocument.body:yN(e)&&JN(e)?e:ZN(PN(e))}function eR(e,t){var n;void 0===t&&(t=[]);var r=ZN(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=vN(r),l=o?[i].concat(i.visualViewport||[],JN(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(eR(PN(l)))}function tR(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nR(e,t,n){return t===cN?tR(function(e,t){var n=vN(e),r=LN(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;var u=TN();(u||!u&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a+qN(e),y:s}}(e,n)):bN(t)?function(e,t){var n=NN(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):tR(function(e){var t,n=LN(e),r=XN(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=EN(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=EN(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+qN(e),s=-r.scrollTop;return"rtl"===ON(o||n).direction&&(a+=EN(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(LN(e)))}function rR(e,t,n,r){var o="clippingParents"===t?function(e){var t=eR(PN(e)),n=["absolute","fixed"].indexOf(ON(e).position)>=0&&yN(e)?DN(e):e;return bN(n)?t.filter((function(e){return bN(e)&&AN(e,n)&&"body"!==gN(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),l=i[0],a=i.reduce((function(t,n){var o=nR(e,n,r);return t.top=EN(o.top,t.top),t.right=CN(o.right,t.right),t.bottom=CN(o.bottom,t.bottom),t.left=EN(o.left,t.left),t}),nR(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 oR(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?wN(o):null,l=o?WN(o):null,a=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case tN:t={x:a,y:n.y-r.height};break;case nN:t={x:a,y:n.y+n.height};break;case rN:t={x:n.x+n.width,y:s};break;case oN:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?$N(i):null;if(null!=u){var c="y"===u?"height":"width";switch(l){case aN:t[u]=t[u]-(n[c]/2-r[c]/2);break;case sN:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function iR(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?uN:a,u=n.rootBoundary,c=void 0===u?cN:u,d=n.elementContext,f=void 0===d?dN:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=FN("number"!=typeof g?g:BN(g,lN)),b=f===dN?fN:dN,y=e.rects.popper,x=e.elements[m?b:f],_=rR(bN(x)?x:x.contextElement||LN(e.elements.popper),s,c,l),w=NN(e.elements.reference),E=oR({reference:w,element:y,strategy:"absolute",placement:o}),C=tR(Object.assign({},y,E)),k=f===dN?C:w,S={top:_.top-k.top+v.top,bottom:k.bottom-_.bottom+v.bottom,left:_.left-k.left+v.left,right:k.right-_.right+v.right},T=e.modifiersData.offset;if(f===dN&&T){var N=T[o];Object.keys(S).forEach((function(e){var t=[rN,nN].indexOf(e)>=0?1:-1,n=[tN,nN].indexOf(e)>=0?"y":"x";S[e]+=N[n]*t}))}return S}function lR(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?mN:s,c=WN(r),d=c?a?pN:pN.filter((function(e){return WN(e)===c})):lN,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]=iR(e,{placement:n,boundary:o,rootBoundary:i,padding:l})[wN(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var aR={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=wN(g),b=s||(v===g||!m?[GN(g)]:function(e){if(wN(e)===iN)return[];var t=GN(e);return[QN(e),t,QN(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(wN(n)===iN?lR(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),x=t.rects.reference,_=t.rects.popper,w=new Map,E=!0,C=y[0],k=0;k<y.length;k++){var S=y[k],T=wN(S),N=WN(S)===aN,R=[tN,nN].indexOf(T)>=0,A=R?"width":"height",O=iR(t,{placement:S,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),M=R?N?rN:oN:N?nN:tN;x[A]>_[A]&&(M=GN(M));var L=GN(M),P=[];if(i&&P.push(O[T]<=0),a&&P.push(O[M]<=0,O[L]<=0),P.every((function(e){return e}))){C=S,E=!1;break}w.set(S,P)}if(E)for(var I=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},D=m?3:1;D>0;D--){if("break"===I(D))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sR(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 uR(e){return[tN,rN,nN,oN].some((function(t){return e[t]>=0}))}var cR={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=mN.reduce((function(e,n){return e[n]=function(e,t,n){var r=wN(e),o=[oN,tN].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,[oN,rN].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 dR={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=iR(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=wN(t.placement),b=WN(t.placement),y=!b,x=$N(v),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(w){if(i){var R,A="y"===x?tN:oN,O="y"===x?nN:rN,M="y"===x?"height":"width",L=w[x],P=L+g[A],I=L-g[O],D=p?-C[M]/2:0,$=b===aN?E[M]:C[M],z=b===aN?-C[M]:-E[M],F=t.elements.arrow,B=p&&F?RN(F):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=H[A],j=H[O],K=zN(0,E[M],B[M]),U=y?E[M]/2-D-K-W-S.mainAxis:$-K-W-S.mainAxis,Y=y?-E[M]/2+D+K+j+S.mainAxis:z+K+j+S.mainAxis,G=t.elements.arrow&&DN(t.elements.arrow),V=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Q=null!=(R=null==T?void 0:T[x])?R:0,X=L+Y-Q,q=zN(p?CN(P,L+U-Q-V):P,L,p?EN(I,X):I);w[x]=q,N[x]=q-L}if(a){var J,Z="x"===x?tN:oN,ee="x"===x?nN:rN,te=w[_],ne="y"===_?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[tN,oN].indexOf(v),le=null!=(J=null==T?void 0:T[_])?J:0,ae=ie?re:te-E[ne]-C[ne]-le+S.altAxis,se=ie?te+E[ne]+C[ne]-le-S.altAxis:oe,ue=p&&ie?function(e,t,n){var r=zN(e,t,n);return r>n?n:r}(ae,te,se):zN(p?ae:re,te,p?se:oe);w[_]=ue,N[_]=ue-te}t.modifiersData[r]=N}},requiresIfExists:["offset"]};function fR(e,t,n){void 0===n&&(n=!1);var r=yN(t),o=yN(t)&&function(e){var t=e.getBoundingClientRect(),n=kN(t.width)/e.offsetWidth||1,r=kN(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=LN(t),l=NN(e,o,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==gN(t)||JN(i))&&(a=function(e){return e!==vN(e)&&yN(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:XN(e);var t}(t)),yN(t)?((s=NN(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=qN(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function pR(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 mR(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var hR={placement:"bottom",modifiers:[],strategy:"absolute"};function gR(){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 vR(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?hR:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},hR,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:bN(e)?eR(e):e.contextElement?eR(e.contextElement):[],popper:eR(t)};var c,d,f=function(e){var t=pR(e);return hN.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(gR(t,n)){o.rects={reference:fR(t,DN(n),"fixed"===o.options.strategy),popper:RN(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:mR((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){u(),a=!0}};if(!gR(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 bR=vR({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=vN(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,UN)})),a&&s.addEventListener("resize",n.update,UN),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,UN)})),a&&s.removeEventListener("resize",n.update,UN)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=oR({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:wN(t.placement),variation:WN(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,KN(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,KN(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:{}},_N,cR,aR,dR,HN,{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=iR(t,{elementContext:"reference"}),a=iR(t,{altBoundary:!0}),s=sR(l,r),u=sR(a,o,i),c=uR(s),d=uR(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})}}]});var yR=H.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,l]=H.useState(null),a=Hw(H.isValidElement(n)?n.ref:null,t);if(Dw((()=>{o||l(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Dw((()=>{if(i&&!o)return Iw(t,i),()=>{Iw(t,null)}}),[t,i,o]),o){if(H.isValidElement(n)){const e={ref:a};return H.cloneElement(n,e)}return Ak.jsx(H.Fragment,{children:n})}return Ak.jsx(H.Fragment,{children:i?tm.createPortal(n,i):i})}));function xR(e){return nE("MuiPopper",e)}rE("MuiPopper",["root"]);const _R=["anchorEl","children","component","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],wR=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ER(e){return"function"==typeof e?e():e}const CR=()=>Jw({root:["root"]},function(e){const{disableDefaultClasses:t}=H.useContext(QT);return n=>t?"":e(n)}(xR)),kR={},SR=H.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=lE(e,_R),v=H.useRef(null),b=Hw(v,t),y=H.useRef(null),x=Hw(y,f),_=H.useRef(x);Dw((()=>{_.current=x}),[x]),H.useImperativeHandle(f,(()=>y.current),[]);const w=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),[E,C]=H.useState(w),[k,S]=H.useState(ER(r));H.useEffect((()=>{y.current&&y.current.forceUpdate()})),H.useEffect((()=>{r&&S(ER(r))}),[r]),Dw((()=>{if(!k||!u)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{C(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=bR(k,v.current,iE({placement:w},d,{modifiers:e}));return _.current(t),()=>{t.destroy(),_.current(null)}}),[k,a,s,u,d,w]);const T={placement:E};null!==h&&(T.TransitionProps=h);const N=CR(),R=null!=(n=null!=i?i:m.root)?n:"div",A=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=lE(e,JT),l=function(e,t){return"function"==typeof e?e(t):e}(r,o),{props:a,internalRef:s}=qT(iE({},i,{externalSlotProps:l}));return GT(n,iE({},a,{ref:Hw(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 Ak.jsx(R,iE({},A,{children:"function"==typeof o?o(T):o}))})),TR=H.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=kR,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={}}=e,v=lE(e,wR),[b,y]=H.useState(!0);if(!a&&!u&&(!m||b))return null;let x;if(o)x=o;else if(n){const e=ER(n);x=e&&void 0!==e.nodeType?Lw(e).body:Lw(null).body}const _=u||!a||m&&!b?void 0:"none",w=m?{in:u,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return Ak.jsx(yR,{disablePortal:l,container:x,children:Ak.jsx(SR,iE({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:iE({position:"fixed",top:0,left:0,display:_},p),TransitionProps:w,children:r}))})}));var NR=TR;const RR=["onChange","maxRows","minRows","style","value"];function AR(e){return parseInt(e,10)||0}const OR={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function MR(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const LR=H.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:l}=e,a=lE(e,RR),{current:s}=H.useRef(null!=l),u=H.useRef(null),c=Hw(t,u),d=H.useRef(null),f=H.useRef(0),[p,m]=H.useState({outerHeightStyle:0}),h=H.useCallback((()=>{const t=u.current,n=Pw(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=AR(n.paddingBottom)+AR(n.paddingTop),s=AR(n.borderBottomWidth)+AR(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=H.useCallback((()=>{const e=h();MR(e)||m((t=>g(t,e)))}),[h]);H.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();MR(e)||tm.flushSync((()=>{m((t=>g(t,e)))}))})()}));let t;const n=u.current,r=Pw(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()}})),Dw((()=>{v()})),H.useEffect((()=>{f.current=0}),[l]);return Ak.jsxs(H.Fragment,{children:[Ak.jsx("textarea",iE({value:l,onChange:e=>{f.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:iE({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},i)},a)),Ak.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:iE({},OR,i,{padding:0})})]})}));var PR=LR;function IR(e,t){return IR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IR(e,t)}function DR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,IR(e,t)}var $R=!1,zR=W.createContext(null),FR="unmounted",BR="exited",HR="entering",WR="entered",jR="exiting",KR=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=BR,r.appearStatus=HR):o=WR:o=t.unmountOnExit||t.mountOnEnter?FR:BR,r.state={status:o},r.nextCallback=null,r}DR(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===FR?{status:BR}: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!==HR&&n!==WR&&(t=HR):n!==HR&&n!==WR||(t=jR)}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===HR){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:nm.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===BR&&this.setState({status:FR})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[nm.findDOMNode(this),r],i=o[0],l=o[1],a=this.getTimeouts(),s=r?a.appear:a.enter;!e&&!n||$R?this.safeSetState({status:WR},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:HR},(function(){t.props.onEntering(i,l),t.onTransitionEnd(s,(function(){t.safeSetState({status:WR},(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:nm.findDOMNode(this);t&&!$R?(this.props.onExit(r),this.safeSetState({status:jR},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:BR},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:BR},(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:nm.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===FR)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=lE(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(zR.Provider,{value:null},"function"==typeof n?n(e,r):W.cloneElement(W.Children.only(n),r))},t}(W.Component);function UR(){}KR.contextType=zR,KR.propTypes={},KR.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:UR,onEntering:UR,onEntered:UR,onExit:UR,onExiting:UR,onExited:UR},KR.UNMOUNTED=FR,KR.EXITED=BR,KR.ENTERING=HR,KR.ENTERED=WR,KR.EXITING=jR;var YR=KR;function GR(e,t){var n=Object.create(null);return e&&H.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&H.isValidElement(e)?t(e):e}(e)})),n}function VR(e,t,n){return null!=n[t]?n[t]:e.props[t]}function QR(e,t,n){var r=GR(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(H.isValidElement(l)){var a=i in t,s=i in r,u=t[i],c=H.isValidElement(u)&&!u.props.in;!s||a&&!c?s||!a||c?s&&a&&H.isValidElement(u)&&(o[i]=H.cloneElement(l,{onExited:n.bind(null,l),in:u.props.in,exit:VR(l,"exit",e),enter:VR(l,"enter",e)})):o[i]=H.cloneElement(l,{in:!1}):o[i]=H.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:VR(l,"exit",e),enter:VR(l,"enter",e)})}})),o}var XR=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},qR=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}DR(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,GR(n.children,(function(e){return H.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:VR(e,"appear",n),enter:VR(e,"enter",n),exit:VR(e,"exit",n)})}))):QR(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=GR(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=iE({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=lE(e,["component","childFactory"]),o=this.state.contextValue,i=XR(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?W.createElement(zR.Provider,{value:o},i):W.createElement(zR.Provider,{value:o},W.createElement(t,r,i))},t}(W.Component);qR.propTypes={},qR.defaultProps={component:"div",childFactory:function(e){return e}};var JR=qR;function ZR(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 eA(e){return nE("MuiPaper",e)}rE("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 tA=["className","component","elevation","square","variant"],nA=WT("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 iE({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&&iE({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${oT("#fff",UT(t.elevation))}, ${oT("#fff",UT(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var rA=H.forwardRef((function(e,t){const n=BT({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:l=!1,variant:a="elevation"}=n,s=lE(n,tA),u=iE({},n,{component:o,elevation:i,square:l,variant:a}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Jw({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},eA,o)})(u);return Ak.jsx(nA,iE({as:o,ownerState:u,className:WS(c.root,r),ref:t},s))}));var oA=rE("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const iA=["center","classes","className"];let lA,aA,sA,uA,cA=e=>e;const dA=pk(lA||(lA=cA`
|
|
43
|
+
0% {
|
|
44
|
+
transform: scale(0);
|
|
45
|
+
opacity: 0.1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
100% {
|
|
49
|
+
transform: scale(1);
|
|
50
|
+
opacity: 0.3;
|
|
51
|
+
}
|
|
52
|
+
`)),fA=pk(aA||(aA=cA`
|
|
53
|
+
0% {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
100% {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
}
|
|
60
|
+
`)),pA=pk(sA||(sA=cA`
|
|
61
|
+
0% {
|
|
62
|
+
transform: scale(1);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
50% {
|
|
66
|
+
transform: scale(0.92);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
100% {
|
|
70
|
+
transform: scale(1);
|
|
71
|
+
}
|
|
72
|
+
`)),mA=WT("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),hA=WT((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]=H.useState(!1),f=WS(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:l,height:l,top:-l/2+i,left:-l/2+o},m=WS(n.child,c&&n.childLeaving,r&&n.childPulsate);return a||c||d(!0),H.useEffect((()=>{if(!a&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,a,u]),Ak.jsx("span",{className:f,style:p,children:Ak.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(uA||(uA=cA`
|
|
73
|
+
opacity: 0;
|
|
74
|
+
position: absolute;
|
|
75
|
+
|
|
76
|
+
&.${0} {
|
|
77
|
+
opacity: 0.3;
|
|
78
|
+
transform: scale(1);
|
|
79
|
+
animation-name: ${0};
|
|
80
|
+
animation-duration: ${0}ms;
|
|
81
|
+
animation-timing-function: ${0};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.${0} {
|
|
85
|
+
animation-duration: ${0}ms;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
& .${0} {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
display: block;
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 100%;
|
|
93
|
+
border-radius: 50%;
|
|
94
|
+
background-color: currentColor;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
& .${0} {
|
|
98
|
+
opacity: 0;
|
|
99
|
+
animation-name: ${0};
|
|
100
|
+
animation-duration: ${0}ms;
|
|
101
|
+
animation-timing-function: ${0};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
& .${0} {
|
|
105
|
+
position: absolute;
|
|
106
|
+
/* @noflip */
|
|
107
|
+
left: 0px;
|
|
108
|
+
top: 0;
|
|
109
|
+
animation-name: ${0};
|
|
110
|
+
animation-duration: 2500ms;
|
|
111
|
+
animation-timing-function: ${0};
|
|
112
|
+
animation-iteration-count: infinite;
|
|
113
|
+
animation-delay: 200ms;
|
|
114
|
+
}
|
|
115
|
+
`),oA.rippleVisible,dA,550,(({theme:e})=>e.transitions.easing.easeInOut),oA.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),oA.child,oA.childLeaving,fA,550,(({theme:e})=>e.transitions.easing.easeInOut),oA.childPulsate,pA,(({theme:e})=>e.transitions.easing.easeInOut)),gA=H.forwardRef((function(e,t){const n=BT({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,l=lE(n,iA),[a,s]=H.useState([]),u=H.useRef(0),c=H.useRef(null);H.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[a]);const d=H.useRef(!1),f=H.useRef(null),p=H.useRef(null),m=H.useRef(null);H.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const h=H.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:l}=e;s((e=>[...e,Ak.jsx(hA,{classes:{ripple:WS(o.ripple,oA.ripple),rippleVisible:WS(o.rippleVisible,oA.rippleVisible),ripplePulsate:WS(o.ripplePulsate,oA.ripplePulsate),child:WS(o.child,oA.child),childLeaving:WS(o.childLeaving,oA.childLeaving),childPulsate:WS(o.childPulsate,oA.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=l}),[o]),g=H.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=H.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=H.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 H.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Ak.jsx(mA,iE({className:WS(oA.root,o.root,i),ref:m},l,{children:Ak.jsx(JR,{component:null,exit:!0,children:a})}))}));var vA=gA;function bA(e){return nE("MuiButtonBase",e)}var yA=rE("MuiButtonBase",["root","disabled","focusVisible"]);const xA=["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"],_A=WT("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"},[`&.${yA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),wA=H.forwardRef((function(e,t){const n=BT({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:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:S,tabIndex:T=0,TouchRippleProps:N,touchRippleRef:R,type:A}=n,O=lE(n,xA),M=H.useRef(null),L=H.useRef(null),P=Hw(L,R),{isFocusVisibleRef:I,onFocus:D,onBlur:$,ref:z}=Xw(),[F,B]=H.useState(!1);s&&F&&B(!1),H.useImperativeHandle(r,(()=>({focusVisible:()=>{B(!0),M.current.focus()}})),[]);const[W,j]=H.useState(!1);H.useEffect((()=>{j(!0)}),[]);const K=W&&!u&&!s;function U(e,t,n=c){return Bw((r=>{t&&t(r);return!n&&L.current&&L.current[e](r),!0}))}H.useEffect((()=>{F&&d&&!u&&W&&L.current.pulsate()}),[u,d,F,W]);const Y=U("start",_),G=U("stop",h),V=U("stop",g),Q=U("stop",E),X=U("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),q=U("start",S),J=U("stop",C),Z=U("stop",k),ee=U("stop",(e=>{$(e),!1===I.current&&B(!1),p&&p(e)}),!1),te=Bw((e=>{M.current||(M.current=e.currentTarget),D(e),!0===I.current&&(B(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=M.current;return a&&"button"!==a&&!("A"===e.tagName&&e.href)},re=H.useRef(!1),oe=Bw((e=>{d&&!re.current&&F&&L.current&&" "===e.key&&(re.current=!0,L.current.stop(e,(()=>{L.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=Bw((e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(re.current=!1,L.current.stop(e,(()=>{L.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=Hw(t,z,M),ue=iE({},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=Jw({root:["root",t&&"disabled",n&&"focusVisible"]},bA,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ak.jsxs(_A,iE({as:le,className:WS(ce.root,l),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:Y,onMouseLeave:X,onMouseUp:Q,onDragLeave:V,onTouchEnd:J,onTouchMove:Z,onTouchStart:q,ref:se,tabIndex:s?-1:T,type:A},ae,O,{children:[i,K?Ak.jsx(vA,iE({ref:P,center:o},N)):null]}))}));var EA=wA;function CA(e){return nE("MuiIconButton",e)}var kA=rE("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const SA=["edge","children","className","color","disabled","disableFocusRipple","size"],TA=WT(EA,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Mw(n.color)}`],n.edge&&t[`edge${Mw(n.edge)}`],t[`size${Mw(n.size)}`]]}})((({theme:e,ownerState:t})=>iE({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})`:oT(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 iE({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&iE({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":iE({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:oT(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)},{[`&.${kA.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),NA=H.forwardRef((function(e,t){const n=BT({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=lE(n,SA),d=iE({},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 Jw({root:["root",n&&"disabled","default"!==r&&`color${Mw(r)}`,o&&`edge${Mw(o)}`,`size${Mw(i)}`]},CA,t)})(d);return Ak.jsx(TA,iE({className:WS(f.root,i),centerRipple:!0,focusRipple:!s,disabled:a,ref:t,ownerState:d},c,{children:o}))}));var RA=NA;function AA(e){return nE("MuiTypography",e)}rE("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const OA=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],MA=WT("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${Mw(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>iE({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}))),LA={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},PA={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},IA=H.forwardRef((function(e,t){const n=BT({props:e,name:"MuiTypography"}),r=(e=>PA[e]||e)(n.color),o=BS(iE({},n,{color:r})),{align:i="inherit",className:l,component:a,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=LA}=o,p=lE(o,OA),m=iE({},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]||LA[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e;return Jw({root:["root",i,"inherit"!==e.align&&`align${Mw(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},AA,l)})(m);return Ak.jsx(MA,iE({as:h,ref:t,ownerState:m,className:WS(g.root,l)},p))}));var DA=IA;const $A=["components","componentsProps","slots","slotProps"],zA=WT(NR,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),FA=H.forwardRef((function(e,t){var n;const r=PS(),o=BT({props:e,name:"MuiPopper"}),{components:i,componentsProps:l,slots:a,slotProps:s}=o,u=lE(o,$A),c=null!=(n=null==a?void 0:a.root)?n:null==i?void 0:i.Root;return Ak.jsx(zA,iE({direction:null==r?void 0:r.direction,slots:{root:c},slotProps:null!=s?s:l},u,{ref:t}))}));var BA=FA;var HA=H.createContext(void 0);function WA(e){return Ak.jsx($S,iE({},e,{defaultTheme:zT,themeId:oE}))}function jA(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function KA(e){return nE("MuiInputBase",e)}var UA=rE("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const YA=["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"],GA=WT("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${Mw(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>iE({},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",[`&.${UA.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&iE({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),VA=WT("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=iE({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 iE({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] + .${UA.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},[`&.${UA.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"})})),QA=Ak.jsx(WA,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),XA=H.forwardRef((function(e,t){var n;const r=BT({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:w,onBlur:E,onChange:C,onClick:k,onFocus:S,onKeyDown:T,onKeyUp:N,placeholder:R,readOnly:A,renderSuffix:O,rows:M,slotProps:L={},slots:P={},startAdornment:I,type:D="text",value:$}=r,z=lE(r,YA),F=null!=v.value?v.value:$,{current:B}=H.useRef(null!=F),W=H.useRef(),j=H.useCallback((e=>{}),[]),K=Hw(W,b,v.ref,j),[U,Y]=H.useState(!1),G=H.useContext(HA),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:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});V.focused=G?G.focused:U,H.useEffect((()=>{!G&&d&&U&&(Y(!1),E&&E())}),[G,d,U,E]);const Q=G&&G.onFilled,X=G&&G.onEmpty,q=H.useCallback((e=>{!function(e,t=!1){return e&&(jA(e.value)&&""!==e.value||t&&jA(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Q&&Q()}),[Q,X]);Dw((()=>{B&&q({value:F})}),[F,q,B]);H.useEffect((()=>{q(W.current)}),[]);let J=g,Z=v;_&&"input"===J&&(Z=iE(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:y,minRows:x},Z),J=PR);H.useEffect((()=>{G&&G.setAdornedStart(Boolean(I))}),[G,I]);const ee=iE({},r,{color:V.color||"primary",disabled:V.disabled,endAdornment:p,error:V.error,focused:V.focused,formControl:G,fullWidth:m,hiddenLabel:V.hiddenLabel,multiline:_,size:V.size,startAdornment:I,type:D}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:l,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:m}=e;return Jw({root:["root",`color${Mw(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"]},KA,t)})(ee),ne=P.root||s.Root||GA,re=L.root||u.root||{},oe=P.input||s.Input||VA;return Z=iE({},Z,null!=(n=L.input)?n:u.input),Ak.jsxs(H.Fragment,{children:[!f&&QA,Ak.jsxs(ne,iE({},re,!YT(ne)&&{ownerState:iE({},ee,re.ownerState)},{ref:t,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),k&&k(e)}},z,{className:WS(te.root,re.className,a,A&&"MuiInputBase-readOnly"),children:[I,Ak.jsx(HA.Provider,{value:null,children:Ak.jsx(oe,iE({ownerState:ee,"aria-invalid":V.error,"aria-describedby":o,autoComplete:i,autoFocus:l,defaultValue:c,disabled:V.disabled,id:h,onAnimationStart:e=>{q("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:w,placeholder:R,readOnly:A,required:V.required,rows:M,value:F,onKeyDown:T,onKeyUp:N,type:D},Z,!YT(oe)&&{as:J,ownerState:iE({},ee,Z.ownerState)},{ref:K,className:WS(te.input,Z.className,A&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):Y(!1)},onChange:(e,...t)=>{if(!B){const t=e.target||W.current;if(null==t)throw new Error(mw(1));q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{V.disabled?e.stopPropagation():(S&&S(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):Y(!0))}}))}),p,O?O(iE({},V,{startAdornment:I})):null]}))]})}));var qA=XA;const JA=$T(),ZA=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Mk("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(OS);return H.forwardRef((function(e,l){const a=DS(n),s=BS(e),{className:u,component:c="div"}=s,d=lE(s,jS);return Ak.jsx(i,iE({as:c,ref:l,className:WS(u,o?o(r):r),theme:t&&a[t]||a},d))}))}({themeId:oE,defaultTheme:JA,defaultClassName:"MuiBox-root",generateClassName:eE.generate});var eO=ZA;function tO(e){return nE("MuiButton",e)}var nO=rE("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"]);var rO=H.createContext({});const oO=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],iO=e=>iE({},"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}}),lO=WT(EA,{shouldForwardProp:e=>HT(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Mw(n.color)}`],t[`size${Mw(n.size)}`],t[`${n.variant}Size${Mw(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 iE({},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":iE({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:oT(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})`:oT(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})`:oT(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":iE({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${nO.focusVisible}`]:iE({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${nO.disabled}`]:iE({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 ${oT(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"},[`&.${nO.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nO.disabled}`]:{boxShadow:"none"}})),aO=WT("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Mw(n.size)}`]]}})((({ownerState:e})=>iE({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},iO(e)))),sO=WT("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Mw(n.size)}`]]}})((({ownerState:e})=>iE({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},iO(e)))),uO=H.forwardRef((function(e,t){const n=H.useContext(rO),r=BT({props:qw(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=lE(r,oO),y=iE({},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 iE({},l,Jw({root:["root",i,`${i}${Mw(t)}`,`size${Mw(o)}`,`${i}Size${Mw(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Mw(o)}`],endIcon:["endIcon",`iconSize${Mw(o)}`]},tO,l))})(y),_=h&&Ak.jsx(aO,{className:x.startIcon,ownerState:y,children:h}),w=d&&Ak.jsx(sO,{className:x.endIcon,ownerState:y,children:d});return Ak.jsxs(lO,iE({ownerState:y,className:WS(n.className,x.root,a),component:l,disabled:s,focusRipple:!c,focusVisibleClassName:WS(x.focusVisible,f),ref:t,type:g},b,{classes:x,children:[_,o,w]}))}));var cO=uO;function dO(e){return nE("MuiDivider",e)}var fO=rE("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const pO=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],mO=WT("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})=>iE({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)`:oT(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})=>iE({},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})=>iE({},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})=>iE({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),hO=WT("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>iE({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)`}))),gO=H.forwardRef((function(e,t){const n=BT({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=lE(n,pO),m=iE({},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 Jw({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"]},dO,r)})(m);return Ak.jsx(mO,iE({as:l,className:WS(h.root,i),role:c,ref:t,ownerState:m},p,{children:o?Ak.jsx(hO,{className:h.wrapper,ownerState:m,children:o}):null}))}));var vO=gO;const bO=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function yO(e){return`scale(${e}, ${e**2})`}const xO={entering:{opacity:1,transform:yO(1)},entered:{opacity:1,transform:"none"}},_O="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),wO=H.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=YR}=e,g=lE(e,bO),v=H.useRef(),b=H.useRef(),y=FT(),x=H.useRef(null),_=Hw(x,o.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(u),C=w(((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=ZR({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:_O?l:.666*l,delay:r,easing:o})].join(","),a&&a(e,t)})),k=w(s),S=w(f),T=w((e=>{const{duration:t,delay:n,easing:r}=ZR({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:_O?o:.666*o,delay:_O?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=yO(.75),c&&c(e)})),N=w(d);return H.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Ak.jsx(h,iE({appear:r,in:l,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:T,onExited:N,onExiting:S,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)=>H.cloneElement(o,iE({style:iE({opacity:0,transform:yO(.75),visibility:"exited"!==e||l?void 0:"hidden"},xO[e],p,o.props.style),ref:_},t))}))}));wO.muiSupportAuto=!0;var EO=wO;var CO=H.createContext({});function kO(e){return nE("MuiList",e)}rE("MuiList",["root","padding","dense","subheader"]);const SO=["children","className","component","dense","disablePadding","subheader"],TO=WT("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})=>iE({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var NO=H.forwardRef((function(e,t){const n=BT({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:l=!1,disablePadding:a=!1,subheader:s}=n,u=lE(n,SO),c=H.useMemo((()=>({dense:l})),[l]),d=iE({},n,{component:i,dense:l,disablePadding:a}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Jw({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},kO,t)})(d);return Ak.jsx(CO.Provider,{value:c,children:Ak.jsxs(TO,iE({as:i,className:WS(f.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function RO(e){return nE("MuiListItemIcon",e)}var AO=rE("MuiListItemIcon",["root","alignItemsFlexStart"]);const OO=["className"],MO=WT("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})=>iE({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var LO=H.forwardRef((function(e,t){const n=BT({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=lE(n,OO),i=iE({},n,{alignItems:H.useContext(CO).alignItems}),l=(e=>{const{alignItems:t,classes:n}=e;return Jw({root:["root","flex-start"===t&&"alignItemsFlexStart"]},RO,n)})(i);return Ak.jsx(MO,iE({className:WS(l.root,r),ownerState:i,ref:t},o))}));var PO=rE("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const IO=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function DO(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $O(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function zO(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 FO(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")&&zO(a,i)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}var BO=H.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=lE(e,IO),f=H.useRef(null),p=H.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Dw((()=>{r&&f.current.focus()}),[r]),H.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)}(Lw(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=Hw(f,t);let h=-1;H.Children.forEach(i,((e,t)=>{H.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=H.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),H.cloneElement(e,t)}return e}));return Ak.jsx(NO,iE({role:"menu",ref:m,className:l,onKeyDown:e=>{const t=f.current,n=e.key,r=Lw(t).activeElement;if("ArrowDown"===n)e.preventDefault(),FO(t,r,s,a,DO);else if("ArrowUp"===n)e.preventDefault(),FO(t,r,s,a,$O);else if("Home"===n)e.preventDefault(),FO(t,null,s,a,DO);else if("End"===n)e.preventDefault(),FO(t,null,s,a,$O);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&&zO(r,o);o.previousKeyMatched&&(s||FO(t,r,!1,a,DO,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function HO(e){return nE("MuiMenuItem",e)}var WO=rE("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const jO=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],KO=WT(EA,{shouldForwardProp:e=>HT(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})=>iE({},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"}},[`&.${WO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:oT(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${WO.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:oT(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${WO.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:oT(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})`:oT(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${WO.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${WO.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fO.inset}`]:{marginLeft:52},[`& .${PO.root}`]:{marginTop:0,marginBottom:0},[`& .${PO.inset}`]:{paddingLeft:36},[`& .${AO.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&iE({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${AO.root} svg`]:{fontSize:"1.25rem"}}))));var UO=H.forwardRef((function(e,t){const n=BT({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=lE(n,jO),p=H.useContext(CO),m=H.useMemo((()=>({dense:i||p.dense||!1,disableGutters:a})),[p.dense,i,a]),h=H.useRef(null);Dw((()=>{r&&h.current&&h.current.focus()}),[r]);const g=iE({},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 iE({},l,Jw({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},HO,l))})(n),b=Hw(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Ak.jsx(CO.Provider,{value:m,children:Ak.jsx(KO,iE({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:WS(v.focusVisible,s),className:WS(v.root,d)},f,{ownerState:g,classes:v}))})}));function YO(e){return nE("MuiTooltip",e)}var GO=rE("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const VO=["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 QO=WT(BA,{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})=>iE({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${GO.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${GO.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${GO.arrow}`]:iE({},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"] .${GO.arrow}`]:iE({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),XO=WT("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${Mw(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return iE({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:oT(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},{[`.${GO.popper}[data-popper-placement*="left"] &`]:iE({transformOrigin:"right center"},t.isRtl?iE({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):iE({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${GO.popper}[data-popper-placement*="right"] &`]:iE({transformOrigin:"left center"},t.isRtl?iE({marginRight:"14px"},t.touch&&{marginRight:"24px"}):iE({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${GO.popper}[data-popper-placement*="top"] &`]:iE({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${GO.popper}[data-popper-placement*="bottom"] &`]:iE({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),qO=WT("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:oT(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let JO=!1,ZO=null,eM={x:0,y:0};function tM(e,t){return n=>{t&&t(n),e(n)}}const nM=H.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 _=BT({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:S=!1,disableFocusListener:T=!1,disableHoverListener:N=!1,disableInteractive:R=!1,disableTouchListener:A=!1,enterDelay:O=100,enterNextDelay:M=0,enterTouchDelay:L=700,followCursor:P=!1,id:I,leaveDelay:D=0,leaveTouchDelay:$=1500,onClose:z,onOpen:F,open:B,placement:W="bottom",PopperComponent:j,PopperProps:K={},slotProps:U={},slots:Y={},title:G,TransitionComponent:V=EO,TransitionProps:Q}=_,X=lE(_,VO),q=FT(),J="rtl"===q.direction,[Z,ee]=H.useState(),[te,ne]=H.useState(null),re=H.useRef(!1),oe=R||P,ie=H.useRef(),le=H.useRef(),ae=H.useRef(),se=H.useRef(),[ue,ce]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=H.useRef(void 0!==e),[i,l]=H.useState(t);return[o?e:i,H.useCallback((e=>{o||l(e)}),[])]}({controlled:B,default:!1,name:"Tooltip",state:"open"});let de=ue;const fe=Fw(I),pe=H.useRef(),me=H.useCallback((()=>{void 0!==pe.current&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),clearTimeout(se.current)}),[]);H.useEffect((()=>()=>{clearTimeout(ie.current),clearTimeout(le.current),clearTimeout(ae.current),me()}),[me]);const he=e=>{clearTimeout(ZO),JO=!0,ce(!0),F&&!de&&F(e)},ge=Bw((e=>{clearTimeout(ZO),ZO=setTimeout((()=>{JO=!1}),800+D),ce(!1),z&&de&&z(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||JO&&M?le.current=setTimeout((()=>{he(e)}),JO?M:O):he(e))},be=e=>{clearTimeout(le.current),clearTimeout(ae.current),ae.current=setTimeout((()=>{ge(e)}),D)},{isFocusVisibleRef:ye,onBlur:xe,onFocus:_e,ref:we}=Xw(),[,Ee]=H.useState(!1),Ce=e=>{xe(e),!1===ye.current&&(Ee(!1),be(e))},ke=e=>{Z||ee(e.currentTarget),_e(e),!0===ye.current&&(Ee(!0),ve(e))},Se=e=>{re.current=!0;const t=E.props;t.onTouchStart&&t.onTouchStart(e)},Te=ve,Ne=be,Re=e=>{Se(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)}),L)},Ae=e=>{E.props.onTouchEnd&&E.props.onTouchEnd(e),me(),clearTimeout(ae.current),ae.current=setTimeout((()=>{ge(e)}),$)};H.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=Hw(E.ref,we,ee,t);G||0===G||(de=!1);const Me=H.useRef(),Le={},Pe="string"==typeof G;S?(Le.title=de||!Pe||N?null:G,Le["aria-describedby"]=de?fe:null):(Le["aria-label"]=Pe?G:null,Le["aria-labelledby"]=de&&!Pe?fe:null);const Ie=iE({},Le,X,E.props,{className:WS(X.className,E.props.className),onTouchStart:Se,ref:Oe},P?{onMouseMove:e=>{const t=E.props;t.onMouseMove&&t.onMouseMove(e),eM={x:e.clientX,y:e.clientY},Me.current&&Me.current.update()}}:{}),De={};A||(Ie.onTouchStart=Re,Ie.onTouchEnd=Ae),N||(Ie.onMouseOver=tM(Te,Ie.onMouseOver),Ie.onMouseLeave=tM(Ne,Ie.onMouseLeave),oe||(De.onMouseOver=Te,De.onMouseLeave=Ne)),T||(Ie.onFocus=tM(ke,Ie.onFocus),Ie.onBlur=tM(Ce,Ie.onBlur),oe||(De.onFocus=ke,De.onBlur=Ce));const $e=H.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)),iE({},K.popperOptions,{modifiers:t})}),[te,K]),ze=iE({},_,{isRtl:J,arrow:w,disableInteractive:oe,placement:W,PopperComponentProp:j,touch:re.current}),Fe=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Jw({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Mw(i.split("-")[0])}`],arrow:["arrow"]},YO,t)})(ze),Be=null!=(n=null!=(r=Y.popper)?r:C.Popper)?n:QO,He=null!=(o=null!=(i=null!=(l=Y.transition)?l:C.Transition)?i:V)?o:EO,We=null!=(a=null!=(s=Y.tooltip)?s:C.Tooltip)?a:XO,je=null!=(u=null!=(c=Y.arrow)?c:C.Arrow)?u:qO,Ke=GT(Be,iE({},K,null!=(d=U.popper)?d:k.popper,{className:WS(Fe.popper,null==K?void 0:K.className,null==(f=null!=(p=U.popper)?p:k.popper)?void 0:f.className)}),ze),Ue=GT(He,iE({},Q,null!=(m=U.transition)?m:k.transition),ze),Ye=GT(We,iE({},null!=(h=U.tooltip)?h:k.tooltip,{className:WS(Fe.tooltip,null==(g=null!=(v=U.tooltip)?v:k.tooltip)?void 0:g.className)}),ze),Ge=GT(je,iE({},null!=(b=U.arrow)?b:k.arrow,{className:WS(Fe.arrow,null==(y=null!=(x=U.arrow)?x:k.arrow)?void 0:y.className)}),ze);return Ak.jsxs(H.Fragment,{children:[H.cloneElement(E,Ie),Ak.jsx(Be,iE({as:null!=j?j:BA,placement:W,anchorEl:P?{getBoundingClientRect:()=>({top:eM.y,left:eM.x,right:eM.x,bottom:eM.y,width:0,height:0})}:Z,popperRef:Me,open:!!Z&&de,id:fe,transition:!0},De,Ke,{popperOptions:$e,children:({TransitionProps:e})=>Ak.jsx(He,iE({timeout:q.transitions.duration.shorter},e,Ue,{children:Ak.jsxs(We,iE({},Ye,{children:[G,w?Ak.jsx(je,iE({},Ge,{ref:ne})):null]}))}))}))]})}));var rM=nM;const oM=function(e={}){const{createStyledComponent:t=mT,useThemeProps:n=hT,componentName:r="MuiStack"}=e,o=t(vT);return H.forwardRef((function(e,t){const i=BS(n(e)),{component:l="div",direction:a="column",spacing:s=0,divider:u,children:c,className:d,useFlexGap:f=!1}=i,p=lE(i,fT),m={direction:a,spacing:s,useFlexGap:f},h=Jw({root:["root"]},(e=>nE(r,e)),{});return Ak.jsx(o,iE({as:l,ownerState:m,ref:t,className:WS(h.root,d)},p,{children:u?gT(c,u):c}))}))}({createStyledComponent:WT("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>BT({props:e,name:"MuiStack"})});var iM=oM;function lM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aM=(e,t)=>W.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){lM(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),W.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 1h7Zm7-1v5h-1V1.706l-4.5 4.501-.707-.707L14.292 1H11V0h5Z"})),sM=H.forwardRef(aM);function uM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cM=(e,t)=>W.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){uM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"tick_svg__tick-a",d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})),W.createElement("use",{xlinkHref:"#tick_svg__tick-a",fillRule:"evenodd"})),dM=H.forwardRef(cM);var fM={},pM=Ry,mM=px,hM=by,gM=ey,vM=H;fM.LinkPlugin=function({validateUrl:e}){let[t]=mM.useLexicalComposerContext();return vM.useEffect((()=>{if(!t.hasNodes([pM.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return hM.mergeRegister(t.registerCommand(pM.TOGGLE_LINK_COMMAND,(t=>{if(null===t)return pM.toggleLink(t),!0;if("string"==typeof t)return!(void 0!==e&&!e(t))&&(pM.toggleLink(t),!0);let{url:n,target:r,rel:o,title:i}=t;return pM.toggleLink(n,{rel:o,target:r,title:i}),!0}),gM.COMMAND_PRIORITY_LOW),void 0!==e?t.registerCommand(gM.PASTE_COMMAND,(n=>{let r=gM.$getSelection();if(!gM.$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=>gM.$isElementNode(e)))&&(t.dispatchCommand(pM.TOGGLE_LINK_COMMAND,o),n.preventDefault(),!0))}),gM.COMMAND_PRIORITY_LOW):()=>{})}),[t,e]),null};var bM=fM;function yM(e){if(e.type)return e;if("#"===e.charAt(0))return yM(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 xM(e,t){return e=yM(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 _M={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",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:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},wM=12,EM=14,CM=16,kM=24,SM=3,TM=300,NM=400,RM=600,AM=700,OM={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};xM(_M.GREYSCALE_0,.05),xM(_M.GREEN_PALE,.5),xM(_M.BLUE_PALE,.5),xM(_M.GREEN_PALE,.5),xM(_M.BLUE_PALE,.5),xM(_M.GREEN_PALE,.5),xM(_M.BLUE_PALE,.5);var MM,LM;function PM(){return PM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PM.apply(this,arguments)}xM(_M.GREEN_PALE,.5),xM(_M.BLUE_PALE,.5),xM(_M.GREEN_PALE,.5),xM(_M.BLUE_PALE,.5);var IM,DM,$M=function(e){return H.createElement("svg",PM({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),MM||(MM=H.createElement("defs",null,H.createElement("path",{id:"ArrowDown_svg__a",d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"}))),LM||(LM=H.createElement("use",{xlinkHref:"#ArrowDown_svg__a",fillRule:"evenodd"})))};function zM(){return zM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zM.apply(this,arguments)}var FM=function(e){return H.createElement("svg",zM({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),IM||(IM=H.createElement("defs",null,H.createElement("path",{id:"Close_svg__a",d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"}))),DM||(DM=H.createElement("use",{xlinkHref:"#Close_svg__a"})))};function BM({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return W.createElement("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},t)}var HM=(e={})=>W.createElement(BM,{...e},W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},W.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),W.createElement("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"}))),WM=(e={})=>W.createElement(BM,{...e},W.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},W.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},W.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),W.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),jM=(e={})=>W.createElement(BM,{fontSize:"medium",...e},W.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},W.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},W.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),KM=(e={})=>W.createElement(BM,{fontSize:"medium",...e},W.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},W.createElement("defs",null,W.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),W.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},W.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},W.createElement("use",{href:"#radio-checked-path-1"})),W.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),W.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),UM=({className:e})=>W.createElement(BM,{fontSize:"small",className:e},W.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},W.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},W.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},W.createElement("g",{transform:"translate(4.324187, 1.300372)"},W.createElement("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"}),W.createElement("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"})))))),YM=(e={})=>W.createElement(BM,{...e},W.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},W.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},W.createElement("rect",{stroke:_M.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const GM={MuiAccordion:{styleOverrides:{root:{backgroundColor:_M.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:_M.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:W.createElement($M,{"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 ${_M.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:_M.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${_M.MISC_FOCUS_BORDER}`,borderRadius:SM,backgroundColor:_M.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 ${_M.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:_M.WHITE,color:_M.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:SM},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_M.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:_M.GREYSCALE_0_15,backgroundColor:_M.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:_M.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_M.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:_M.GREEN_PALE},"&:active":{backgroundColor:_M.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_M.GREEN_PALE,boxShadow:`0 0 0 3px ${oT(_M.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:_M.BLUE_PALE},"&:active":{backgroundColor:_M.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_M.BLUE_PALE,boxShadow:`0 0 0 3px ${oT(_M.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:SM,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:_M.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_M.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:_M.GREYSCALE_0_15,backgroundColor:_M.GREYSCALE_100_60,"&:active":{backgroundColor:_M.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:_M.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_M.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:_M.PURPLE,"&.Mui-focusVisible":{borderColor:_M.PURPLE,boxShadow:`0 0 0 3px ${oT(_M.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:_M.GREEN,"&.Mui-focusVisible":{borderColor:_M.GREEN,boxShadow:`0 0 0 3px ${oT(_M.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:_M.BLUE,"&.Mui-focusVisible":{borderColor:_M.BLUE,boxShadow:`0 0 0 3px ${oT(_M.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:_M.ORANGE,"&.Mui-focusVisible":{borderColor:_M.ORANGE,boxShadow:`0 0 0 3px ${oT(_M.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:_M.RED,"&.Mui-focusVisible":{borderColor:_M.RED,boxShadow:`0 0 0 3px ${oT(_M.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:_M.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:_M.PURPLE_PALE},"&:active":{backgroundColor:_M.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:_M.PURPLE_PALE,boxShadow:`0 0 0 3px ${oT(_M.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:_M.GREEN_PALE},"&:active":{backgroundColor:_M.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_M.GREEN_PALE,boxShadow:`0 0 0 3px ${oT(_M.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:_M.BLUE_PALE},"&:active":{backgroundColor:_M.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_M.BLUE_PALE,boxShadow:`0 0 0 3px ${oT(_M.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:_M.ORANGE_PALE},"&:active":{backgroundColor:_M.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:_M.ORANGE_PALE,boxShadow:`0 0 0 3px ${oT(_M.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:_M.RED_PALE},"&:active":{backgroundColor:_M.RED_DARK},"&.Mui-focusVisible":{borderColor:_M.RED_PALE,boxShadow:`0 0 0 3px ${oT(_M.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:_M.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:_M.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:SM,boxShadow:`inset 0 0 0 2px ${_M.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:W.createElement(FM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:wM,borderRadius:SM,color:_M.TEXT_PRIMARY,backgroundColor:_M.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:_M.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${_M.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:_M.GREYSCALE_0_05,color:_M.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:_M.GREEN,borderColor:_M.GREEN},"&.MuiChip-outlinedInfo":{color:_M.BLUE,borderColor:_M.BLUE},"&.MuiChip-outlinedWarning":{color:_M.ORANGE,borderColor:_M.ORANGE},"&.MuiChip-outlinedError":{color:_M.RED,borderColor:_M.RED}},outlined:{border:`solid 1px ${_M.GREYSCALE_0_15}`,backgroundColor:_M.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:SM,boxShadow:"none",backgroundColor:_M.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:_M.GREEN,borderColor:_M.GREEN},outlinedSecondary:{color:_M.BLUE,borderColor:_M.BLUE},label:{fontFamily:OM.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:W.createElement(FM,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:W.createElement($M,{"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:SM},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:EM,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:_M.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:_M.GREYSCALE_0_10},"&:hover":{backgroundColor:_M.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:SM,border:`solid 1px ${_M.GREYSCALE_0_15}`,color:_M.GREYSCALE_0_60,marginRight:0,width:kM,height:kM},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${_M.GREYSCALE_0_15}`},clearIndicator:{borderRadius:SM,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:_M.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:EM}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:wM,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:_M.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:_M.GREYSCALE_25,fontSize:wM,fontFamily:OM.FONT_FAMILY,fontWeight:RM,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:_M.TEXT_PRIMARY},"&.Mui-error":{color:_M.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:_M.TEXT_SECONDARY,content:"'(optional)'",fontWeight:NM,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:_M.TEXT_SECONDARY,content:"'(required)'",fontWeight:NM,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:EM,lineHeight:"16px",backgroundColor:_M.WHITE,borderRadius:SM,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_M.GREYSCALE_0_05}`,borderColor:_M.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_M.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${_M.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${_M.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_M.RED}`,boxShadow:`0px 0px 0px 1px ${_M.RED}, inset 0 2px 0 0 ${_M.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_M.GREYSCALE_0_10}`,borderColor:_M.GREYSCALE_0_10,backgroundColor:_M.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:_M.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:_M.GREYSCALE_0_15,borderRadius:SM,boxShadow:`inset 0 2px 0 0 ${_M.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>W.createElement($M,{...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:_M.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:_M.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:_M.GREYSCALE_0_03},"&:active":{backgroundColor:_M.GREYSCALE_0_10},"&:focus":{backgroundColor:_M.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${_M.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${_M.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:_M.GREYSCALE_0_30,"&:hover":{backgroundColor:_M.GREYSCALE_0_0,borderColor:_M.GREYSCALE_0_15},"& ~svg":{color:_M.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${_M.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:SM}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:_M.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${_M.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:_M.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:EM,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:wM,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:wM,fontWeight:RM,color:_M.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:RM}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${_M.GREYSCALE_0_15}, 0px 0px 0px 1px ${_M.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:W.createElement(jM,null),checkedIcon:W.createElement(KM,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:_M.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${_M.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:_M.GREEN_PALE,boxShadow:`0 0 0 3px ${oT(_M.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:_M.BLUE_PALE,boxShadow:`0 0 0 3px ${oT(_M.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:_M.GREYSCALE_0_20}},"&.Mui-disabled":{fill:_M.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:W.createElement(YM,null),checkedIcon:W.createElement(HM,null),indeterminateIcon:W.createElement(WM,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:SM,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:_M.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:_M.GREYSCALE_0_55,color:_M.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:_M.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:_M.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:_M.GREYSCALE_0_55,"&:hover":{color:_M.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:_M.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:_M.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:EM,color:_M.TEXT_PRIMARY,lineHeight:"16px",fontWeight:RM},secondary:{fontSize:wM,color:_M.GREYSCALE_45,fontWeight:NM,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:EM,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:_M.GREYSCALE_0_03},"&:active":{backgroundColor:_M.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:EM,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:_M.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:wM,borderBottom:`solid 1px ${_M.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:EM,color:_M.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:_M.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:_M.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:_M.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:_M.RED}}},"&.Mui-focusVisible":{backgroundColor:_M.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:_M.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:_M.GREEN,height:"24px","&.Mui-disabled":{color:_M.GREYSCALE_0_15}},rail:{backgroundColor:_M.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${_M.GREYSCALE_0_05}`,borderRadius:SM,boxShadow:`inset 0px 0px 0px 1px ${_M.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${_M.GREYSCALE_0_05}`,borderRadius:SM},thumb:{height:"16px",width:"16px",borderRadius:SM,backgroundColor:_M.WHITE,boxShadow:`0px 1px 2px 0px ${_M.GREYSCALE_0_15}, 0px 0px 0px 1px ${_M.GREYSCALE_0_05}`,"&:hover":{borderRadius:SM,boxShadow:`0 2px 4px 0 ${_M.GREYSCALE_0_30}, 0 0 0 1px ${_M.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${_M.GREYSCALE_0_15}, 0 0 0 1px ${_M.GREYSCALE_0_06}, 0 0 0 2px ${_M.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${_M.GREYSCALE_0_15}, 0 0 0 1px ${_M.GREYSCALE_0_06}, 0 0 0 2px ${_M.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:_M.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:_M.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:_M.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:_M.GREYSCALE_0_15},markLabel:{color:_M.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:_M.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:_M.WHITE,color:_M.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:_M.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:_M.GREEN_PALE,boxShadow:`0 0 0 3px ${oT(_M.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:_M.BLUE_PALE,boxShadow:`0 0 0 3px ${oT(_M.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:_M.GREYSCALE_0_15,borderRadius:SM},thumb:{height:"16px",width:"16px",borderRadius:SM,backgroundColor:_M.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:EM,fontWeight:RM,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${_M.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${_M.MISC_FOCUS_BORDER}`,backgroundColor:_M.GREYSCALE_0_03,borderRadius:SM},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:_M.GREYSCALE_25,"&.Mui-selected":{color:_M.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:EM,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${_M.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${_M.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${_M.GREYSCALE_85}`,borderRight:`1px solid ${_M.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:RM,backgroundColor:_M.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:_M.GREYSCALE_98,borderBottom:`1px solid ${_M.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${_M.GREYSCALE_85}`,borderTop:`1px solid ${_M.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:_M.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:_M.GREYSCALE_0_05,"&:hover":{backgroundColor:_M.GREYSCALE_0_03}},"&&:hover":{backgroundColor:_M.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>W.createElement(UM,{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 ${_M.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:EM,borderRadius:SM,padding:"7px 16px",border:`1px solid ${_M.GREYSCALE_0_15}`,backgroundColor:_M.GREYSCALE_100_60,color:_M.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:_M.GREYSCALE_0_10,border:`1px solid ${_M.GREYSCALE_0_30}`},"&:hover":{backgroundColor:_M.GREYSCALE_0_03,border:`1px solid ${_M.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:_M.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${_M.MISC_FOCUS_BORDER}`,border:`1px solid ${_M.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:_M.GREYSCALE_25,backgroundColor:_M.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:_M.GREYSCALE_0_10,border:`1px solid ${_M.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:wM,height:24,width:24,padding:7},sizeLarge:{fontSize:CM,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:EM,borderRadius:SM}}},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:_M.GREYSCALE_20},tooltip:{backgroundColor:_M.GREYSCALE_20,fontSize:wM,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var VM=e=>GM;const QM={mode:"light",primary:{light:_M.GREEN_PALE,main:_M.GREEN,dark:_M.GREEN_DARK,contrastText:_M.WHITE},secondary:{light:_M.BLUE_PALE,main:_M.BLUE,dark:_M.BLUE_DARK,contrastText:_M.WHITE},error:{light:_M.RED_PALE,main:_M.RED,dark:_M.RED_DARK,contrastText:_M.WHITE},warning:{light:_M.ORANGE_PALE,main:_M.ORANGE,dark:_M.ORANGE_DARK,contrastText:_M.WHITE},success:{light:_M.GREEN_PALE,main:_M.GREEN,dark:_M.GREEN_DARK,contrastText:_M.WHITE},info:{light:_M.BLUE_PALE,main:_M.BLUE,dark:_M.BLUE_DARK,contrastText:_M.WHITE},text:{primary:_M.TEXT_PRIMARY,secondary:_M.TEXT_SECONDARY,disabled:_M.GREYSCALE_0_30},action:{hover:_M.GREYSCALE_0_03,hoverOpacity:.05,selected:_M.GREYSCALE_0_05},amethyst:{main:_M.PURPLE,light:_M.PURPLE_PALE,dark:_M.PURPLE_DARK,contrastText:_M.WHITE},background:{paper:_M.WHITE,default:_M.GREYSCALE_95},divider:_M.GREYSCALE_0_15},XM=e=>QM,qM=(e="light")=>$T({components:VM(),palette:XM(),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:EM,fontWeightLight:TM,fontWeightRegular:NM,fontWeightMedium:RM,fontWeightBold:AM,htmlFontSize:EM,fontFamily:OM.FONT_FAMILY,button:{fontWeight:RM,fontSize:EM,textTransform:"none"},body1:{fontSize:CM,lineHeight:"24px"},body2:{fontSize:EM,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:kM,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:CM,fontWeight:RM,lineHeight:"16px"},h6:{fontSize:EM,fontWeight:RM,lineHeight:"16px"},caption:{color:_M.TEXT_SECONDARY},subtitle1:{fontSize:EM,color:_M.TEXT_SECONDARY},subtitle2:{fontSize:wM,color:_M.TEXT_SECONDARY}},shape:{borderRadius:SM}});function JM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ZM=(e,t)=>W.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){JM(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),W.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"})),eL=H.forwardRef(ZM);var tL={},nL=px,rL=H;tL.AutoFocusPlugin=function({defaultSelection:e}){let[t]=nL.useLexicalComposerContext();return rL.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 oL=tL,iL={},lL=px,aL=H;function sL(){return sL=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},sL.apply(this,arguments)}var uL="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?aL.useLayoutEffect:aL.useEffect;iL.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]=lL.useLexicalComposerContext(),[x,_]=aL.useState(!1),w=aL.useCallback((e=>{y.setRootElement(e)}),[y]);return uL((()=>(_(y.isEditable()),y.registerEditableListener((e=>{_(e)})))),[y]),aL.createElement("div",sL({},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:w,role:p,spellCheck:m,style:h,tabIndex:g}))};var cL=iL,dL=H;function fL(e,t){return fL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fL(e,t)}var pL={error:null},mL=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=pL,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,fL(e,t)}(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.setState(pL)},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},dL.isValidElement(t))return t;if("function"==typeof n)return n(e);if(r)return dL.createElement(r,e);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(dL.Component);const hL=function({children:e,onError:t}){return dL.createElement(mL,{fallback:dL.createElement("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"}},"An error was thrown."),onError:t},e)};var gL=r(hL),vL={},bL={},yL=ey;function xL(e,t=!0){return!e&&(e=_L(),t&&(e=e.trim()),""===e)}function _L(){return yL.$getRoot().getTextContent()}function wL(e){if(!xL(e,!1))return!1;let t=(e=yL.$getRoot().getChildren()).length;if(1<t)return!1;for(let r=0;r<t;r++){var n=e[r];if(yL.$isDecoratorNode(n))return!1;if(yL.$isElementNode(n)){if(!yL.$isParagraphNode(n)||0!==n.__indent)return!1;let e=(n=n.getChildren()).length;for(let t=0;t<e;t++)if(!yL.$isTextNode(n[r]))return!1}}return!0}bL.$canShowPlaceholder=wL,bL.$canShowPlaceholderCurry=function(e){return()=>wL(e)},bL.$findTextIntersectionFromCharacters=function(e,t){var n=e.getFirstChild();e=0;e:for(;null!==n;){if(yL.$isElementNode(n)){var r=n.getFirstChild();if(null!==r){n=r;continue}}else if(yL.$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},bL.$isRootTextContentEmpty=xL,bL.$isRootTextContentEmptyCurry=function(e,t){return()=>xL(e,t)},bL.$rootTextContent=_L,bL.registerLexicalTextEntity=function(e,t,n,r){let o=e=>{const t=yL.$createTextNode(e.getTextContent());t.setFormat(e.getFormat()),e.replace(t)},i=e.registerNodeTransform(yL.TextNode,(e=>{if(e.isSimpleText()){var i=e.getPreviousSibling(),l=e.getTextContent(),a=e;if(yL.$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(),yL.$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&&yL.$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(),yL.$isTextNode(r)&&r.isTextEntity()&&(o(r),o(e)),r=e.getNextSibling(),yL.$isTextNode(r)&&r.isTextEntity()&&(o(r),e instanceof n&&o(e)))})),[i,e]};var EL=bL,CL={},kL=ey;CL.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=kL.$getSelection();if(kL.$isRangeSelection(e)){var o=e.anchor;let s=o.getNode(),u=0,c=0;kL.$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()),kL.$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 SL=px,TL=tw,NL=H,RL=EL,AL=by,OL=tm,ML=CL,LL=I_,PL="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?NL.useLayoutEffect:NL.useEffect;function IL(e){return e.getEditorState().read(RL.$canShowPlaceholderCurry(e.isComposing()))}function DL({content:e}){var[t]=SL.useLexicalComposerContext();t=function(e){let[t,n]=NL.useState((()=>IL(e)));return PL((()=>{function t(){let t=IL(e);n(t)}return t(),AL.mergeRegister(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t);let n=TL();return t?"function"==typeof e?e(n):e:null}vL.RichTextPlugin=function({contentEditable:e,placeholder:t,ErrorBoundary:n}){let[r]=SL.useLexicalComposerContext();return n=function(e,t){let[n,r]=NL.useState((()=>e.getDecorators()));return PL((()=>e.registerDecoratorListener((e=>{OL.flushSync((()=>{r(e)}))}))),[e]),NL.useEffect((()=>{r(e.getDecorators())}),[e]),NL.useMemo((()=>{let r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){let l=o[i],a=NL.createElement(t,{onError:t=>e._onError(t)},NL.createElement(NL.Suspense,{fallback:null},n[l])),s=e.getElementByKey(l);null!==s&&r.push(OL.createPortal(a,s,l))}return r}),[t,n,e])}(r,n),function(e){PL((()=>AL.mergeRegister(LL.registerRichText(e),ML.registerDragonSupport(e))),[e])}(r),NL.createElement(NL.Fragment,null,e,NL.createElement(DL,{content:t}),n)};var $L=vL;function zL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FL=(e,t)=>W.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){zL(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),W.createElement("path",{d:"m2.604 7.672-.276.96h2.004l-.276-.96a41.471 41.471 0 0 1-.372-1.284L3.348 5.08H3.3c-.104.44-.216.88-.336 1.32-.112.432-.232.856-.36 1.272Zm-2.628 4.176L2.532 4h1.632l2.556 7.848H5.256l-.612-2.124h-2.64l-.612 2.124H-.024Zm9.23.144c-.512 0-.932-.16-1.26-.48-.32-.32-.48-.736-.48-1.248 0-.632.276-1.12.828-1.464.552-.352 1.432-.592 2.64-.72a1.412 1.412 0 0 0-.252-.804c-.152-.232-.428-.348-.828-.348-.288 0-.572.056-.852.168-.272.112-.54.248-.804.408l-.504-.924a5.903 5.903 0 0 1 1.104-.54 3.816 3.816 0 0 1 1.32-.228c.736 0 1.284.22 1.644.66.368.432.552 1.06.552 1.884v3.492h-1.14l-.096-.648h-.048a4.253 4.253 0 0 1-.852.564c-.296.152-.62.228-.972.228Zm.444-1.08c.24 0 .456-.056.648-.168.2-.12.412-.28.636-.48v-1.32c-.8.104-1.356.26-1.668.468-.312.2-.468.448-.468.744 0 .264.08.456.24.576.16.12.364.18.612.18ZM14 1h1v14h-1V1Zm-1 0h3v1h-3V1Zm0 13h3v1h-3v-1Z"})),BL=H.forwardRef(FL);function HL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WL=(e,t)=>W.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){HL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"align_center_svg__align_center-a",d:"M0 1h16v2H0V1Zm15 4v2H1V5h14ZM0 11V9h16v2H0Zm3 4v-2h10v2H3Z"})),W.createElement("use",{xlinkHref:"#align_center_svg__align_center-a",transform:"matrix(-1 0 0 1 16 0)"})),jL=H.forwardRef(WL);function KL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const UL=(e,t)=>W.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){KL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"align_left_svg__align_left-a",d:"M0 1h15v2H0V1Zm13 4v2H0V5h13ZM0 11V9h16v2H0Zm0 4v-2h10v2H0Z"})),W.createElement("use",{xlinkHref:"#align_left_svg__align_left-a"})),YL=H.forwardRef(UL);function GL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const VL=(e,t)=>W.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){GL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"align_right_svg__luiicons_align_right-a",d:"M16 1v2H1V1h15ZM3 5h13v2H3V5Zm13 6H0V9h16v2Zm0 4H6v-2h10v2Z"})),W.createElement("use",{xlinkHref:"#align_right_svg__luiicons_align_right-a"})),QL=H.forwardRef(VL);function XL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qL=(e,t)=>W.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){XL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"arrow_down_svg__down-a",d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})),W.createElement("use",{xlinkHref:"#arrow_down_svg__down-a",fillRule:"evenodd"})),JL=H.forwardRef(qL);function ZL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const eP=(e,t)=>W.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){ZL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"bullet-list_svg__bullet-list-a",d:"M1.5 10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm13.75.75a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 1 1 0-1.5h9.5ZM1.5 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm13.75.75a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1 0-1.5h9.5Z"})),W.createElement("use",{xlinkHref:"#bullet-list_svg__bullet-list-a"})),tP=H.forwardRef(eP);function nP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rP=(e,t)=>W.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){nP(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),W.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 1h3Zm-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 2H8l-4 2ZM4 6v1h8V6H4Zm0 3v1h7V9H4Z"})),oP=H.forwardRef(rP);function iP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lP=(e,t)=>W.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){iP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"numbered-list_svg__numbered-list-a",d:"M2.05 9c.247 0 .488.03.72.09.233.059.44.15.623.275.182.123.327.28.436.467.109.188.163.408.163.66a1.378 1.378 0 0 1-.284.86c-.089.12-.19.23-.304.334l-.173.154-.18.152-1.245 1.004H4V14H.114v-.963l2.095-1.72.123-.115c.076-.077.142-.156.196-.235a.694.694 0 0 0 .121-.399.539.539 0 0 0-.182-.423c-.122-.108-.284-.162-.486-.162a.7.7 0 0 0-.52.203.829.829 0 0 0-.217.406l-.022.127L0 10.57l.031-.181c.04-.176.104-.336.193-.48.119-.193.27-.357.452-.492a2.02 2.02 0 0 1 .626-.31c.235-.07.484-.106.747-.106Zm13.2 1.75a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5ZM3 2v5H1.698V3.328l-1.024.72L0 3.208 1.806 2H3Zm12.25 1.75a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h8.5Z"})),W.createElement("use",{xlinkHref:"#numbered-list_svg__numbered-list-a"})),aP=H.forwardRef(lP);function sP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uP=(e,t)=>W.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){sP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"text_svg__text_image-a",d:"M5.52 11.938 4.5 15H1L6.425 1h3.237L15 15h-3.5l-1.02-3.063H5.52Zm.73-2.188h3.5L8 4.5 6.25 9.75Z"})),W.createElement("use",{xlinkHref:"#text_svg__text_image-a"})),cP=H.forwardRef(uP);function dP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fP=(e,t)=>W.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){dP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"bold_svg__bold-a",d:"M9.034 14.99V15H3V1h6.034v.034C9.175 1.012 9.32 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.9-.087 0-.173-.003-.259-.01ZM5.586 3.5v3.2h2.71a1.6 1.6 0 1 0 0-3.2h-2.71Zm0 5.5v3.8H8.86a1.9 1.9 0 0 0 0-3.8H5.586Z"})),W.createElement("use",{xlinkHref:"#bold_svg__bold-a",fillRule:"evenodd"})),pP=H.forwardRef(fP);function mP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hP=(e,t)=>W.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){mP(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),W.createElement("path",{d:"M4.145 0h1.71l2.391 6.833-.785.784L7.245 7h-4.49l-1.283 3.665-.944-.33L4.145 0Zm-1.04 6h3.79l-1.75-5h-.29l-1.75 5Zm9.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.414L12.17 5.68Zm-2.2 8.643L9.293 15H7.35L5.1 12.75l1.65-1.65 3.221 3.222Zm.707-.708-3.22-3.221 4.006-4.007 3.222 3.221-4.008 4.007Z"})),gP=H.forwardRef(hP);function vP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bP=(e,t)=>W.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){vP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"palette_outline_svg__palette_outline-a",d:"M8.5 0a7.987 7.987 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.897a6.952 6.952 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 0Zm0 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.025 3.025 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.128.06-.084.119-.177.173-.28 1-1.887.164-4.339-1.317-5.878A6.981 6.981 0 0 0 8.5 1Zm-4 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM13 6.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm-1-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM8 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z"})),W.createElement("use",{xlinkHref:"#palette_outline_svg__palette_outline-a"})),yP=H.forwardRef(bP);function xP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _P=(e,t)=>W.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){xP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"table_svg__table-a",d:"M1 1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1Zm0 3v10h14V4H1Zm6 1h3v2H7V5Zm4 0h3v2h-3V5ZM2 5h4v2H2V5Zm5 3h3v2H7V8Zm4 0h3v2h-3V8ZM2 8h4v2H2V8Zm5 3h3v2H7v-2Zm4 0h3v2h-3v-2Zm-9 0h4v2H2v-2Z"})),W.createElement("use",{xlinkHref:"#table_svg__table-a",fillRule:"evenodd"})),wP=H.forwardRef(_P);function EP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CP=(e,t)=>W.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){EP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"italic_svg__luiicons_italic-a",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.255Z"})),W.createElement("use",{xlinkHref:"#italic_svg__luiicons_italic-a"})),kP=H.forwardRef(CP);function SP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TP=(e,t)=>W.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){SP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"link_outline_svg__link_outline-a",d:"m9.354 7.146-.708.708a2.328 2.328 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 0Zm4.75-5.25a2.975 2.975 0 0 1 0 4.208l-2.75 2.75a3.328 3.328 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"})),W.createElement("use",{xlinkHref:"#link_outline_svg__link_outline-a"})),NP=H.forwardRef(TP);function RP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AP=(e,t)=>W.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){RP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),W.createElement("defs",null,W.createElement("path",{id:"underline_svg__underline-a",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.807.182.202.364.504.727.605.273.1.91.202 1.455.202.909 0 1.727-.202 2-.706.364-.404.454-1.11.454-2.017V1H13ZM3 14h10v1H3v-1Z"})),W.createElement("use",{xlinkHref:"#underline_svg__underline-a"})),OP=H.forwardRef(AP),MP=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,LP=[e=>{const t=MP.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"}}},Q_.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 PP(){return H.createElement(Q_.AutoLinkPlugin,{matchers:LP})}const IP=()=>{const[e]=px.useLexicalComposerContext(),t=nw(),n=H.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 H.useEffect((()=>by.mergeRegister(e.registerMutationListener(Ry.LinkNode,(e=>{n(e)})),e.registerMutationListener(Ry.AutoLinkNode,(e=>{n(e)})),e.registerCommand(ey.CLICK_COMMAND,(t=>(t.metaKey&&t.target&&e.getEditorState().read((()=>{const e=ey.$getSelection();let t;if(ey.$isRangeSelection(e)&&(t=e.focus.getNode().getParent()),ey.$isNodeSelection(e)&&(t=e.getNodes()[0]),Ry.$isAutoLinkNode(t)||Ry.$isLinkNode(t)){const e=t.getURL();setTimeout((()=>{const t=window.open(e,"_blank");null==t||t.focus()}),0)}})),!1)),ey.COMMAND_PRIORITY_EDITOR))),[e,n]),null};function DP(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?fy.$isAtNodeEnd(n)?r:o:fy.$isAtNodeEnd(t)?r:o}const $P=new Set(["http:","https:","mailto:","sms:","tel:"]);function zP(e){try{const t=new URL(e);if(!$P.has(t.protocol))return{url:"about:blank"}}catch(t){return{url:e,target:"_blank"}}return{url:e,target:"_blank"}}const FP=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function BP(e){return"https://"===e||FP.test(e)}const HP=WT(iM)((({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)}))),WP=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=H.useRef(null),[l,a]=H.useState(t);H.useEffect((()=>{a(t)}),[t]);const s=H.useCallback((()=>{window.open(l,"_blank"),r()}),[l,r]),u=H.useCallback((e=>{e.preventDefault(),e.stopPropagation(),n(l)}),[l,n]),c=H.useCallback((e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(l))}),[l,n]),d=H.useCallback((e=>{e.preventDefault(),a(e.currentTarget.value)}),[]);return W.createElement(BA,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:1},transition:!0},(({TransitionProps:e})=>W.createElement(EO,{...e},W.createElement(rA,{className:"tekPopperMenu"},W.createElement(HP,{direction:"row"},W.createElement(qA,{ref:i,placeholder:t,margin:"dense",size:"small",value:l,onChange:d,onKeyDown:c}),W.createElement(RA,{onClick:s},W.createElement(sM,null)),W.createElement(RA,{onClick:u},W.createElement(dM,null)))))))},jP=()=>{const[e]=px.useLexicalComposerContext(),t=nw(),[n,r]=H.useState(null),[o,i]=H.useState(""),l=H.useRef(!1),a=H.useCallback((()=>{if(l.current)return l.current=!1,!1;const t=ey.$getSelection();if(ey.$isRangeSelection(t)){const n=DP(t),o=n.getParent();if(Ry.$isAutoLinkNode(o)||Ry.$isAutoLinkNode(n))return r(null),i(""),!1;let l;if(Ry.$isLinkNode(o)&&(l=o),Ry.$isLinkNode(n)&&(l=n),Ry.$isLinkNode(l)){const t=e.getElementByKey(null==l?void 0:l.getKey());return i(l.getURL()),r(t),!0}r(null),i("")}return!1}),[e]),s=H.useCallback((t=>{l.current=!0,e.update((()=>{e.dispatchCommand(Ry.TOGGLE_LINK_COMMAND,zP(t))}),{onUpdate:()=>{r(null)}})}),[e]),u=H.useCallback((()=>{r(null)}),[]);return H.useEffect((()=>by.mergeRegister(e.registerCommand(ey.SELECTION_CHANGE_COMMAND,(()=>a()),ey.COMMAND_PRIORITY_LOW),e.registerCommand(ey.CLICK_COMMAND,(()=>a()),ey.COMMAND_PRIORITY_LOW))),[e,a]),t?W.createElement(WP,{anchorEl:n,link:o,onChanged:s,onOpened:u}):null};function KP(){return H.createElement(bM.LinkPlugin,{validateUrl:BP})}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('.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}\n\n.tek__editor__Wrapper {\n overflow-y: auto;\n position: "relative";\n background-color: transparent;\n flex: 1;\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n}\n\n.tek__editor__Wrapper::-webkit-scrollbar {\n display: none;\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: 80px;\n color: #404040;\n display: block;\n background-color: transparent;\n -ms-overflow-style: none; /* Internet Explorer and Edge */\n scrollbar-width: none; /* Firefox */\n}\n\n.tek__editor__input::-webkit-scrollbar {\n display: none;\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__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: 1px dotted rgba(206, 208, 212, 0.25);\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 UP=({children:e})=>W.createElement(KT,{theme:qM()},e),YP={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:{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:[I_.HeadingNode,I_.QuoteNode,sx.ListNode,sx.ListItemNode,Ry.LinkNode,Ry.AutoLinkNode],onError:e=>{console.log(e)}},GP=({children:e,initialConfig:t})=>W.createElement(UP,null,W.createElement("div",{className:"tek__editor__Wrapper"},W.createElement(xx.LexicalComposer,{initialConfig:t||YP},W.createElement("div",{className:"tek__editor__container"},e,W.createElement(Dx.ListPlugin,null),W.createElement(jx.TabIndentationPlugin,null),W.createElement(KP,null),W.createElement(PP,null),W.createElement(jP,null),W.createElement(IP,null),W.createElement(Rx.HistoryPlugin,null)))));class VP extends ey.ElementNode{static getType(){return"TekCellNode"}static clone(e){return new VP(e.__hasBorders,e.__key)}static importJSON(e){return new VP(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 QP=e=>new VP(e),XP=e=>e instanceof VP;class qP extends ey.ElementNode{static getType(){return"TekTableNode"}static clone(e){return new qP(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 qP(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 JP(e){return e instanceof qP}class ZP extends ey.ElementNode{static getType(){return"TekRowNode"}static clone(e){return new ZP(e.__key)}static importJSON(){return new ZP}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 eI(e){return e instanceof ZP}const tI=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),XP(t))return t;return null},nI=e=>{let t=e;for(;null!==t;){if(JP(t))return t;t=null==t?void 0:t.getParent()}return null},rI=(e,t)=>{const n=nI(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},oI=e=>null==e?void 0:e.getChildAtIndex(2),iI=e=>{const t=e.getParent();if(eI(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},lI=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,aI=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},sI=e=>{if(!e)return[];return e.getChildren().filter((e=>eI(e)))},uI=e=>{let t=!1;return sI(e).forEach((e=>{e.getChildren().forEach((e=>{const n=e;n.clear(),n.append(ey.$createParagraphNode()),t=!0}))})),t},cI=e=>{var t;const n=ey.$getSelection();if(ey.$isRangeSelection(n)||ey.$isNodeSelection(n)){const r=n.getNodes().filter((e=>XP(e)));if(r.length>0){e.preventDefault(),e.stopPropagation();const o=n.getNodes().some((e=>JP(e))),i=nI(r[0]),l=sI(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(ey.$isRangeSelection(n)){const e=n.focus.getNode();if(JP(e))return uI(e)}return r.forEach((e=>{e.clear(),e.append(ey.$createParagraphNode())})),(()=>{const e=ey.$getSelection();let t=!1;if(ey.$isRangeSelection(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=nI(n);!o&&JP(r)&&(o=r),JP(o)&&(t=uI(o))}return t})()}if(ey.$isRangeSelection(n)){const e=n.focus.getNode();if(JP(e))return uI(e)}}return!1},dI=e=>{if(e){const t=nI(e);if(JP(t)){const n=e.getParent(),r=sI(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}},fI=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),XP(t))return t;return null},pI=e=>{const t=[];return sI(e).forEach((e=>{const n=e.getChildren();t.push(...n)})),t},mI=(e,t)=>{pI(e).forEach((e=>{const n=t.getElementByKey(e.getKey());null==n||n.classList.add("tek__tekCellHighlight")}))},hI=ey.createCommand("UPDATE_COL_WIDTHS_COMMAND"),gI=ey.createCommand("BEGIN_COL_RESIZE"),vI=ey.createCommand("END_COL_RESIZE"),bI=ey.createCommand("INSERT_TEK_TABLE_COMMAND"),yI=({colKey:e,startX:t,onMouseDown:n})=>{const r=H.useCallback((t=>{n(t,e)}),[e,n]);return W.createElement("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},xI=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},_I=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,wI=({nodeKey:e,colWidths:t})=>{const[n]=px.useLexicalComposerContext(),r=nw(),[o,i]=H.useState(null),l=H.useRef(null),a=H.useRef(null),s=H.useRef(null),u=H.useRef(null),c=H.useCallback((t=>{const n=ey.$getNodeByKey(e);if(n){const e=n.getParent();if(JP(e)){const n=oI(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=H.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=aI(a+p,r);if(c){const e=o+p;if(e<60)return;const t=aI(e,r),a=l.current.nxtColWidth-p,d=aI(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=aI(e,d),a=aI(o,d);r.style.width=!n||p>0?l:a,r.querySelectorAll("colgroup col").forEach(((e,n)=>{e.setAttribute("width",t[n])})),n||s.current&&(s.current.innerText=l)}}}),[]),f=H.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(aI(o,e))}return n})(l.current.tableElement);l.current.tableElement.querySelectorAll("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(vI,void 0)}l.current=null,a.current=null,n.update((()=>{const t=ey.$getNodeByKey(e),r=rI(t,n),l=null==t?void 0:t.getParent();if(r&&l){const t=r.querySelectorAll("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(hI,{colWidths:a,nodeKey:e})}}))}),[d,n,e,o]),p=H.useCallback(((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read((()=>{const r=ey.$getNodeByKey(t),o=rI(r,n);if(XP(r)){const t=iI(r);if(-1!==t&&o){const r=null==o?void 0:o.querySelectorAll("colgroup col"),i=r[t],a=r.length>t+1?r[t+1]:null,c=lI(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,m=lI(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=xI("tek__leftResizerIndicator","leftGripper");r.innerText=_I(e);let o=null;return t?(o=xI("tek__rightResizerIndicator","rightGripper"),o.innerText=_I(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(gI,void 0)}}}))}),[n,d,f]);return H.useEffect((()=>{n.getEditorState().read((()=>{c(t)}))}),[c,n,t]),W.createElement(W.Fragment,null,o&&r?o.map((e=>W.createElement(yI,{key:`${e.key}`,colKey:e.key,startX:e.startX,onMouseDown:p}))):null)},EI="TEK_TABLE_RESIZE_NODE";class CI extends ey.DecoratorNode{static getType(){return EI}static clone(e){return new CI(e.__colWidths,e.__key)}static importJSON(e){return new CI(e.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:EI,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 W.createElement(wI,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}const kI=e=>e instanceof CI,SI=({nodeKey:e,colWidths:t})=>{const[n]=px.useLexicalComposerContext(),[r,o]=H.useState(t);return H.useEffect((()=>{n.getEditorState().read((()=>{const t=ey.$getNodeByKey(e),n=null==t?void 0:t.getParent();if(JP(n)){const e=n.getResizeNode();if(kI(e)){const t=e.__colWidths.map((e=>e));o(t)}}}))}),[n,e]),W.createElement(W.Fragment,null,r.map(((t,n)=>W.createElement("col",{span:1,width:t,key:`${e}.${n}`}))))};class TI extends ey.DecoratorNode{static getType(){return"TekColGroupNode"}static clone(e){return new TI(e.__colWidths,e.__key)}static importJSON(e){return new TI(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 W.createElement(SI,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class NI extends ey.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 RI=[qP,VP,ZP,TI,CI],AI=(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()},OI=()=>{var e;const t=ey.$getSelection();if(ey.$isRangeSelection(t)){const n=t.anchor.getNode(),r=tI(n);if(r){const t=iI(r),n=nI(r),o=sI(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()})),AI(i,n)}}},MI=()=>{const e=ey.$getSelection();if(ey.$isRangeSelection(e)){const t=e.anchor.getNode(),n=tI(t),r=nI(n);if(r&&3===r.getChildren().length)return ey.$setSelection(null),void r.remove();if(n){const{row:e}=dI(n);ey.$setSelection(null),null==e||e.remove()}}},LI=()=>{const e=ey.$getSelection();if(ey.$isRangeSelection(e)){const t=e.anchor.getNode(),n=nI(t),r=oI(n);if(eI(r)&&n){const e=r.getChildren().length,t=new ZP;for(let r=0;r<e;r++){const e=QP(null==n?void 0:n.__hasBorders);e.append(ey.$createParagraphNode()),t.append(e)}null==n||n.append(t)}}},PI=()=>{var e;const t=ey.$getSelection();if(ey.$isRangeSelection(t)){const n=t.anchor.getNode(),r=nI(n);if(JP(r)){const t=sI(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=QP(r.__hasBorders);o.append(ey.$createParagraphNode()),t[e].append(o),n=o}return AI(o,r),n}}return null},II=WT(RA)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),DI=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=px.useLexicalComposerContext(),[o,i]=H.useState(null),l=Un(),a=Boolean(o),s=H.useCallback(((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{t()}),{onUpdate:()=>{i(null),n()}})}),[r]),u=H.useCallback((e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)}),[n]),c=H.useCallback((()=>{i(null)}),[]),d=H.useCallback((e=>{s(e,LI,t)}),[s,t]),f=H.useCallback((e=>{s(e,PI,t)}),[s,t]),p=H.useCallback((t=>{s(t,MI,e)}),[s,e]),m=H.useCallback((t=>{s(t,OI,e)}),[s,e]),h=H.useCallback((()=>{r.update((()=>{(()=>{const e=ey.$getSelection();if(ey.$isRangeSelection(e)){const t=e.anchor.getNode(),n=nI(t);JP(n)&&(n.selectPrevious(),n.remove())}})()}),{onUpdate:()=>{i(null),e()}})}),[r,e]),g=H.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{(()=>{const e=ey.$getSelection();if(ey.$isRangeSelection(e)){const t=e.anchor.getNode(),n=nI(t);n&&(n.toggleBorders(),pI(n).forEach((e=>{e.toggleBorders()})))}})()}))}),[r]);return H.useEffect((()=>by.mergeRegister(r.registerCommand(ey.SELECTION_CHANGE_COMMAND,(()=>(i(null),!1)),ey.COMMAND_PRIORITY_CRITICAL))),[r]),W.createElement(eN,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},W.createElement("div",null,W.createElement(II,{size:"small",onClick:u},W.createElement(eL,{height:12})),W.createElement(BA,{sx:{zIndex:1},open:a,anchorEl:o,placement:"auto-end"},W.createElement(rA,{id:"tekTableMenu",className:"tekPopperMenu"},W.createElement(BO,{dense:!0},W.createElement(UO,{onClick:g},l("ToggleBorders")),W.createElement(vO,null),W.createElement(UO,{onClick:d},l("AddNewRow")),W.createElement(UO,{onClick:f},l("AddNewColumn")),W.createElement(vO,null),W.createElement(UO,{onClick:p},l("DeleteRow")),W.createElement(UO,{onClick:m},l("DeleteCol")),W.createElement(vO,null),W.createElement(UO,{onClick:h},l("DeleteTable")))))))},$I=()=>{var e,t,n,r;const[o]=px.useLexicalComposerContext(),i=nw(),[l,a]=H.useState(null),[s,u]=H.useState(!1),c=Boolean(l),d=H.useContext(ck),f=H.useRef(null),p=H.useCallback((()=>{s||o.update((()=>{const e=ey.$getSelection();if(ey.$isRangeSelection(e)){const t=tI(e.anchor.getNode());if(XP(t)){const e=o.getElementByKey(t.getKey());a(e)}else a(null)}}))}),[o,s]);H.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)}}),[]),H.useEffect((()=>by.mergeRegister(o.registerCommand(ey.SELECTION_CHANGE_COMMAND,(()=>(p(),!1)),ey.COMMAND_PRIORITY_EDITOR),o.registerCommand(gI,(()=>(a(null),!0)),ey.COMMAND_PRIORITY_CRITICAL),o.registerCommand(vI,(()=>(p(),!0)),ey.COMMAND_PRIORITY_CRITICAL))),[o,p]),H.useEffect((()=>{a(null)}),[i]);const m=H.useCallback((()=>{a(null)}),[]),h=H.useCallback((()=>{a(null),setTimeout((()=>{p()}),0)}),[p]),g=H.useCallback((()=>{clearTimeout(f.current)}),[]);return W.createElement(BA,{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)]}}]},W.createElement(DI,{onDeleteAction:m,onAction:h,onClick:g}))},zI=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=ey.$getNodeByKey(n),r=null==e?void 0:e.getParent();ey.$isRootNode(r)&&null!==e&&t.push(e)}if(t.length>0){const e=ey.$createParagraphNode();t[0].insertBefore(e),e.select(),t.forEach((e=>e.remove()))}},FI=()=>{const[e]=px.useLexicalComposerContext(),t=nw();return H.useEffect((()=>by.mergeRegister(e.registerMutationListener(VP,(t=>{e.update((()=>{zI(t)}))})),e.registerMutationListener(ZP,(t=>{e.update((()=>{zI(t)}))})),e.registerMutationListener(qP,(t=>{e.update((()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=ey.$getNodeByKey(e);if(JP(t)&&!t.isValid()){const e=ey.$createParagraphNode();t.insertBefore(e),e.select(),t.remove()}}}))})),e.registerCommand(bI,(()=>(e.update((()=>{const e=(()=>{const e=["50%","50%"],t=new qP(!0,"100%"),n=new TI(e),r=new CI(e),o=[];for(let t=0;t<2;t++){const t=new ZP;for(let n=0;n<e.length;n++){const e=QP(!0),n=ey.$createParagraphNode();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();by.$insertNodeToNearestRoot(e)})),!0)),ey.COMMAND_PRIORITY_EDITOR),e.registerCommand(hI,(({colWidths:e,nodeKey:t})=>{const n=ey.$getNodeByKey(t);if(kI(n)){n.setColWidths(e);const t=n.getParent(),r=null==t?void 0:t.getChildAtIndex(0);(function(e){return e instanceof TI})(r)&&r.setColWidths(e)}return!0}),ey.COMMAND_PRIORITY_CRITICAL),e.registerCommand(ey.KEY_ENTER_COMMAND,(t=>(null==t?void 0:t.shiftKey)?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=ey.$getSelection();if(ey.$isRangeSelection(e)){const t=e.focus.getNode(),n=nI(t),r=fI(t);if(JP(n)){const e=ey.$createParagraphNode();e.append(ey.$createTextNode("")),n.insertBefore(e,!1),e.select()}}})()})),!0):!!(null==t?void 0:t.ctrlKey)&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=ey.$getSelection();if(ey.$isRangeSelection(e)){const t=e.focus.getNode(),n=nI(t);if(JP(n)){const e=ey.$createParagraphNode();e.append(ey.$createTextNode("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()})),!0)),ey.COMMAND_PRIORITY_CRITICAL),e.registerCommand(ey.KEY_BACKSPACE_COMMAND,(e=>cI(e)),ey.COMMAND_PRIORITY_CRITICAL),e.registerCommand(ey.KEY_DELETE_COMMAND,(e=>cI(e)),ey.COMMAND_PRIORITY_CRITICAL),e.registerCommand(ey.KEY_TAB_COMMAND,(e=>{const t=ey.$getSelection();if(ey.$isRangeSelection(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),XP(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(eI(a)){const t=null==a?void 0:a.getChildAtIndex(e);(null==t?void 0:t.getChildAtIndex(0)).selectEnd()}}}})(dI(o),!e.shiftKey),!0}return!1}),ey.COMMAND_PRIORITY_EDITOR),e.registerCommand(ey.CUT_COMMAND,(e=>{const t=e.target,n=ey.$getSelection();if(t.classList.contains("tek__table")&&ey.$isRangeSelection(n)&&JP(n.anchor.getNode()))return e.preventDefault(),e.stopPropagation(),!0;if(ey.$isRangeSelection(n)){const t=n.getNodes().some((e=>XP(e))),r=n.getNodes().some((e=>JP(e)));if(t&&!r)return e.preventDefault(),e.stopPropagation(),!0}return!1}),ey.COMMAND_PRIORITY_CRITICAL))),[e]),H.useEffect((()=>e.registerCommand(ey.SELECTION_CHANGE_COMMAND,(()=>(t&&e.update((()=>{(e=>{const t=ey.$getSelection(),n=[];if(ey.$nodesOfType(qP).forEach((e=>{const t=pI(e);n.push(...t)})),ey.$isRangeSelection(t)){t.getNodes().filter((e=>JP(e))).forEach((t=>{mI(t,e)}));const n=t.focus.getNode();if(JP(n))return void mI(n,e)}if(ey.$isRangeSelection(t)||ey.$isNodeSelection(t)){const r=new Set(t.getNodes().map((e=>fI(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)),ey.COMMAND_PRIORITY_CRITICAL)),[e,t]),H.useEffect((()=>{e.update((()=>{t||(e=>{const t=[];ey.$nodesOfType(qP).forEach((e=>{const n=pI(e);t.push(...n)})),t.forEach((t=>{const n=e.getElementByKey(t.getKey());null==n||n.classList.remove("tek__tekCellHighlight")}))})(e)}))}),[t,e]),null},BI=()=>W.createElement(W.Fragment,null,W.createElement(FI,null),W.createElement($I,null)),HI=()=>{const e=nw(),t=Un();return e?W.createElement("div",{className:"tek__editor__placeholder"},t("EnterText")):W.createElement("div",{className:"tek__editor__logo"},W.createElement(BL,{height:32}))},WI=()=>W.createElement("div",{style:{position:"relative"}},W.createElement(oL.AutoFocusPlugin,null),W.createElement($L.RichTextPlugin,{contentEditable:W.createElement(cL.ContentEditable,{className:"tek__editor__input"}),placeholder:W.createElement(HI,null),ErrorBoundary:gL})),jI=WT(iM)((({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"}}))),KI=["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"],UI="#404040",YI="16px",GI=H.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:KI[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),VI=({children:e})=>{const t=(()=>{const[e]=px.useLexicalComposerContext(),[t,n]=H.useState(!1),[r,o]=H.useState(!1),[i,l]=H.useState(!1),[a,s]=H.useState("paragraph"),[u,c]=H.useState(KI[0]),[d,f]=H.useState(YI),[p,m]=H.useState(UI),[h,g]=H.useState("left"),[v,b]=H.useState(!1),y=H.useCallback((()=>{const t=ey.$getSelection();if(ey.$isRangeSelection(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:by.$findMatchingParent(r,(e=>{const t=e.getParent();return null!==t&&ey.$isRootOrShadowRoot(t)}));null===i&&(i=r.getTopLevelElementOrThrow());const a=i.getKey();let u=i;if(null!==e.getElementByKey(a))if(sx.$isListNode(i)){const e=by.$getNearestNodeOfType(r,sx.ListNode),t=e?e.getListType():i.getListType();s(t)}else{const e=I_.$isHeadingNode(i)?i.getTag():i.getType();s(e)}if(sx.$isListNode(i)||I_.$isHeadingNode(i)){const e=by.$getNearestNodeOfType(i,ey.ParagraphNode);e&&(u=e)}const d=DP(t),p=d.getParent();if(Ry.$isLinkNode(p)||Ry.$isLinkNode(d)?b(!0):b(!1),ey.$isParagraphNode(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),l(t.hasFormat("underline"));const h=fy.$getSelectionStyleValueForProperty(t,"font-family",KI[0]),v=fy.$getSelectionStyleValueForProperty(t,"font-size",YI);c(""===h?KI[0]:h),f(""!==v&&v?v:YI),m(fy.$getSelectionStyleValueForProperty(t,"color",UI))}else ey.$isNodeSelection(t)&&t.getNodes().forEach((e=>{if(function(e){return e instanceof NI}(e)){const t=e;n(t.hasStyle("fontWeight")),o(t.hasStyle("fontStyle")),l(t.hasStyle("textDecoration")),m(t.getTextFormatStyle("color",UI));const r=t.getTextFormatStyle("fontSize",YI),i=t.getTextFormatStyle("fontFamily",KI[0]);f(r),c(i)}}))}),[e]);return H.useEffect((()=>by.mergeRegister(e.registerUpdateListener((({editorState:e})=>{e.read((()=>y()))})),e.registerCommand(ey.SELECTION_CHANGE_COMMAND,(()=>(e.getEditorState().read((()=>y())),!1)),ey.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 W.createElement(GI.Provider,{value:t},e)},QI=({children:e})=>W.createElement(VI,null,W.createElement(jI,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row"},e)),XI=({anchorEl:e,children:t})=>{const n=Boolean(e);return W.createElement(BA,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:1}},(({TransitionProps:e})=>W.createElement(EO,{...e},W.createElement(rA,{className:"tekPopperMenu"},t))))},qI=WT(DA)({fontSize:12,textOverflow:"ellipsis"}),JI=({startIcon:e,value:t,onClick:n,compact:r})=>W.createElement(rM,{title:t,PopperProps:{disablePortal:!0}},W.createElement(cO,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:W.createElement(JL,{height:12})},r?e:W.createElement(qI,null,t))),ZI=WT(UO,{shouldForwardProp:e=>"active"!==e})((({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0}))),eD=[{text:"AlignLeft",align:"left",icon:()=>W.createElement(YL,{height:12})},{text:"AlignCenter",align:"center",icon:()=>W.createElement(jL,{height:12})},{text:"AlignRight",align:"right",icon:()=>W.createElement(QL,{height:12})}],tD=({compact:e})=>{const[t]=px.useLexicalComposerContext(),[n,r]=H.useState(null),{blockFormat:o}=H.useContext(GI),i=Un(),l=H.useMemo((()=>eD.find((e=>e.align===o.align))||eD[0]),[o.align]),a=H.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),s=H.useCallback((()=>{r(null)}),[]),u=H.useCallback((e=>{r(null),t.dispatchCommand(ey.FORMAT_ELEMENT_COMMAND,e),t.focus()}),[t]);return W.createElement(eN,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},W.createElement("div",null,W.createElement(JI,{value:i(l.text),startIcon:l.icon(),onClick:a,compact:e}),W.createElement(XI,{anchorEl:n},W.createElement(BO,{dense:!0},eD.map((e=>W.createElement(ZI,{value:e.text,dense:!0,key:e.align,active:e.align===o.align,onClick:()=>u(e.align)},W.createElement(LO,null,e.icon()),W.createElement(qI,null,i(e.text)))))))))},nD=({text:e,icon:t})=>W.createElement(W.Fragment,null,W.createElement(LO,null,t),W.createElement(qI,null,e)),rD=({text:e,icon:t})=>W.createElement(W.Fragment,null,W.createElement(LO,null,W.createElement(qI,{fontWeight:"bold"},t)),W.createElement(qI,null,e)),oD=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],iD=(e,t,n)=>({icon:W.createElement("span",{style:{fontSize:12,fontWeight:"bold"}},t),text:n(e)}),lD=({compact:e})=>{const[t]=px.useLexicalComposerContext(),{blockFormat:n}=H.useContext(GI),[r,o]=H.useState(null),i=Un(),l=H.useMemo((()=>{let e={icon:W.createElement(cP,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=iD("Heading1","H1",i)),"h2"===n.blockType&&(e=iD("Heading2","H2",i)),"h3"===n.blockType&&(e=iD("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=W.createElement(oP,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=W.createElement(tP,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=W.createElement(aP,{height:12}),e.text=i("OrderedList")),e}),[n,i]),a=H.useCallback((()=>{o(null)}),[]),s=H.useCallback((e=>{t.update((()=>{const n=ey.$getSelection();ey.$isRangeSelection(n)&&(fy.$patchStyleText(n,{"font-size":null}),fy.$setBlocksType(n,e)),t.focus()}))}),[t]),u=H.useCallback(((e,r)=>{o(null),n.blockType!==e?t.dispatchCommand(r,void 0):t.dispatchCommand(sx.REMOVE_LIST_COMMAND,void 0),t.focus()}),[n,t]),c=H.useCallback((e=>{o(null),s((()=>I_.$createHeadingNode(e)))}),[s]),d=H.useCallback((()=>{o(null),s((()=>ey.$createParagraphNode()))}),[s]),f=H.useCallback((()=>{o(null),s((()=>I_.$createQuoteNode()))}),[s]);return W.createElement(eN,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},W.createElement("div",null,W.createElement(JI,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:l.text,startIcon:l.icon,compact:e}),W.createElement(XI,{anchorEl:r},W.createElement(BO,{dense:!0},W.createElement(UO,{dense:!0,onClick:d},W.createElement(nD,{text:i("Paragraph"),icon:W.createElement(cP,{height:12})})),W.createElement(UO,{dense:!0,onClick:f},W.createElement(nD,{text:i("Quote"),icon:W.createElement(oP,{height:12})})),oD.map((e=>W.createElement(UO,{dense:!0,onClick:()=>c(e.tag),key:e.text},W.createElement(rD,{text:i(e.text),icon:e.icon})))),W.createElement(vO,null),W.createElement(UO,{dense:!0,onClick:()=>u("bullet",sx.INSERT_UNORDERED_LIST_COMMAND)},W.createElement(nD,{text:i("UnorderedList"),icon:W.createElement(tP,{height:12})})),W.createElement(UO,{dense:!0,onClick:()=>u("list",sx.INSERT_ORDERED_LIST_COMMAND)},W.createElement(nD,{text:i("OrderedList"),icon:W.createElement(aP,{height:12})}))))))},aD=WT(cO,{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}))),sD=(e,t)=>n=>{const r=Un();return W.createElement(rM,{title:r(t),PopperProps:{disablePortal:!0}},W.createElement("div",null,W.createElement(e,{...n,"aria-label":r(t)})))},uD=({format:e,icon:t,...n})=>{const r=H.useContext(GI),[o]=px.useLexicalComposerContext(),i=H.useCallback((()=>{o.dispatchCommand(ey.FORMAT_TEXT_COMMAND,e)}),[o,e]);return W.createElement(aD,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text"},t)},cD=sD(uD,"Bold"),dD=()=>W.createElement(cD,{format:"bold",icon:W.createElement(pP,{height:12})}),fD=ey.createCommand("APPLY_TEXT_FORMAT"),pD=ey.createCommand("CLEAR_TEXT_FORMAT"),mD=sD(aD,"ClearFormat"),hD=()=>{const[e]=px.useLexicalComposerContext(),t=H.useCallback((()=>{e.update((()=>{const t=ey.$getSelection();if(ey.$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(ey.$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),by.$getNearestBlockElementAncestorOrThrow(t).setFormat(""));const i=t.getParent();(I_.$isHeadingNode(i)||I_.$isQuoteNode(i))&&i.replace(ey.$createParagraphNode(),!0)}else(I_.$isHeadingNode(t)||I_.$isQuoteNode(t))&&t.replace(ey.$createParagraphNode(),!0)}catch(e){}}))}e.dispatchCommand(pD,void 0)}))}),[e]);return W.createElement(mD,{onClick:t},W.createElement(gP,{height:12}))};function gD(e){return gD="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},gD(e)}var vD,bD={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}},yD=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,xD=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,_D=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,wD=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,ED=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,CD=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,kD=Math.floor,SD=Math.round,TD=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(SD(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=SD(255*p),m=SD(255*m),h=SD(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=SD(255*p),m=SD(255*m),h=SD(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=SD(255*p),m=SD(255*m),h=SD(255*h),g=1}else bD[f.toLowerCase()]?(r=f.toLowerCase(),p=bD[r].r,m=bD[r].g,h=bD[r].b,g="number"==typeof bD[r].a?bD[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=kD(p),this._g=kD(m),this._b=kD(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=kD(this._r+(e._r-this._r)*t),r=kD(this._g+(e._g-this._g)*t),o=kD(this._b+(e._b-this._b)*t),i=kD(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"==gD(o=function(e,t){if("object"!=gD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=gD(r))return r;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}();TD.toRGB=function(e){if(e instanceof TD)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=TD.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},TD.toRGBA=function(e,t){if(e instanceof TD)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=TD.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,")")},TD.toHex=function(e){var t,n,r;return e instanceof TD?(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=TD.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))},TD.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new TD(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,")")},TD.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new TD(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,")")},TD.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new TD(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}},TD.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof TD)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},TD.blend=function(e,t,n){var r=(16711680&(e=TD.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=TD.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},TD.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 TD(r,o,i,l)},TD.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(yD.test(e)||xD.test(e)||_D.test(e)||wD.test(e)||ED.test(e)||CD.test(e)||bD[e.toLowerCase()])},TD.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},TD.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)}},TD.isDark=function(){var e={getLuminance:TD.prototype.getLuminance,isInvalid:TD.prototype.isInvalid};return TD.prototype.init.apply(e,[].slice.call(arguments)),TD.prototype.isDark.call(e)},TD.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},vD=TD;const ND=WT(iM)((({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"}))),RD=WT(eO)((({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"}))),AD=({palette:e,color:t,onColorChange:n})=>{const[r,o]=H.useState(t),i=FT(),l=H.useCallback((e=>{o(e),n(e)}),[n]);return W.createElement(ND,null,e.map((e=>W.createElement(RD,{style:{backgroundColor:e},key:e,onClick:t=>{t.preventDefault(),t.stopPropagation(),l(e)}},e===r?W.createElement(dM,{height:12,color:i.palette.getContrastText(e)}):null))))};function OD(e,t,n){return Math.max(t,Math.min(n,e))}const MD=(e,t)=>{const n=new vD(e).toHSVComponents(),r=window.getComputedStyle(t),o=parseInt(r.width,10),i=parseInt(r.height,10);return{left:o*(n.s/100)+"px",top:i*((100-n.v)/100)+"px"}},LD=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),l=OD(e.clientX-n,0,o)/o*100,a=100-OD(e.clientY-r,0,i)/i*100,s=new vD(t).toHSVComponents();return s.s=l,s.v=a,s},PD=WT(iM)((({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"}))),ID=WT(eO)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),DD=WT(eO)((({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 );"}))),$D=WT(eO)({width:"16px",height:"16px",borderRadius:"2px"}),zD=WT(iM)({flexDirection:"row",alignItems:"center"}),FD=WT(eO)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),BD=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=H.useState(n),l=H.useRef(n),[a,s]=H.useState(!0),[u,c]=H.useState(o),d=H.useRef(null),f=H.useRef(null),p=H.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[m,h]=H.useState({left:"0",top:"0"});H.useEffect((()=>{r.some((e=>e===n))||s(!1)}),[n,r]);const g=H.useCallback((e=>{if(!d.current&&(d.current=e,e)){const t=MD(o,e);h(t)}}),[o]),v=H.useMemo((()=>`hsl(${new vD(o).toHSVComponents().h}, 100%, 50%)`),[o]),b=H.useCallback((t=>{t.preventDefault(),t.stopPropagation();const n=LD(t,l.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new vD(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=H.useCallback((t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=OD(e.clientX-r,0,n),i=Math.round(o/n*360),l=o/n*100,a=new vD(t).toHSVComponents();return a.h=i,a.s=l,a})(t,l.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new vD(r);l.current=o.toHex(),e(l.current),c(l.current),i(l.current)}),[e]),x=H.useCallback((t=>{l.current=t,e(l.current),i(l.current),c(t)}),[e]),_=H.useCallback((t=>{if(c(t.target.value),!new vD(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=MD(l.current,d.current);h(e)}}),[e]);return W.createElement(PD,null,a?W.createElement(AD,{palette:r,color:o,onColorChange:x}):W.createElement(W.Fragment,null,W.createElement(ID,{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=LD(e,l.current),s=`hsv(${a.h},${a.s},${a.v})`,u=new vD(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}},W.createElement(FD,{ref:f,style:{...m,backgroundColor:o}})),W.createElement(DD,{onClick:y})),W.createElement(zD,null,W.createElement($D,{style:{backgroundColor:o}}),W.createElement(qA,{style:{flex:1},value:u,onChange:_}),W.createElement(RA,{onClick:()=>s(!a)},W.createElement(yP,{height:12})),W.createElement(RA,{onClick:t},W.createElement(dM,{height:12}))))},HD=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],WD=sD(cO,"Color"),jD=({colorPalette:e})=>{const[t]=px.useLexicalComposerContext(),[n,r]=H.useState(null),{blockFormat:o}=H.useContext(GI),i=H.useCallback(((e,n)=>{t.update((()=>{const t=ey.$getSelection();ey.$isRangeSelection(t)&&fy.$patchStyleText(t,{color:e})}),n),t.dispatchCommand(fD,{styleKey:"color",styleValue:e})}),[t]),l=()=>{r(null)};return W.createElement(eN,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},W.createElement("div",null,W.createElement(WD,{variant:"text",size:"small",endIcon:W.createElement(JL,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}},W.createElement(eO,{sx:{backgroundColor:o.fontColor,width:12,height:12}})),W.createElement(XI,{anchorEl:n},W.createElement(BD,{onClick:i,onClose:l,startColor:o.fontColor,palette:e||HD}))))},KD=({compact:e,fonts:t})=>{const[n]=px.useLexicalComposerContext(),[r,o]=H.useState(null),{blockFormat:i}=H.useContext(GI),l=H.useMemo((()=>t||KI),[t]),a=H.useCallback((e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update((()=>{const e=ey.$getSelection();ey.$isRangeSelection(e)&&fy.$patchStyleText(e,{"font-family":t||KI[0]}),n.dispatchCommand(fD,{styleKey:"fontFamily",styleValue:t||KI[0]}),n.focus()}))}),[n]);return W.createElement(eN,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},W.createElement("div",null,W.createElement(JI,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:W.createElement("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"}},"T"),compact:e}),W.createElement(XI,{anchorEl:r},W.createElement(BO,{dense:!0,style:{maxHeight:200,overflow:"auto"}},l.map((e=>W.createElement(ZI,{"data-font-name":e,key:e,onClick:a,active:e===i.fontName},W.createElement(qI,null,e))))))))},UD=e=>parseInt(e,10),YD=({fontSize:e,onSelected:t})=>{const[n,r]=H.useState(""),o=H.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)}),[]),i=H.useCallback((()=>{const e=UD(n);e&&t(`${e}px`)}),[t,n]),l=H.useCallback((e=>{"Enter"===e.key&&(e.preventDefault(),i())}),[i]);return W.createElement(iM,{direction:"row"},W.createElement(qA,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:l}),W.createElement(RA,{disabled:!UD(n),onClick:i},W.createElement(dM,{height:12})))},GD=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],VD=({compact:e})=>{const[t]=px.useLexicalComposerContext(),[n,r]=H.useState(null),{blockFormat:o}=H.useContext(GI),i=H.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),l=H.useCallback((()=>{r(null)}),[]),a=H.useCallback((e=>{r(null),e.length>0&&t.update((()=>{const n=ey.$getSelection();ey.$isRangeSelection(n)&&fy.$patchStyleText(n,{"font-size":e}),t.dispatchCommand(fD,{styleKey:"fontSize",styleValue:`${e}`})}))}),[t]),s=H.useCallback((e=>{const{fontSize:t}=e.currentTarget.dataset;a(t||"16px")}),[a]),u=H.useCallback((e=>{a(e)}),[a]);return W.createElement(eN,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},W.createElement("div",null,W.createElement(JI,{startIcon:e?W.createElement(qI,null,o.fontSize):void 0,value:o.fontSize,onClick:i,compact:e}),W.createElement(XI,{anchorEl:n},W.createElement(YD,{fontSize:o.fontSize,onSelected:u}),W.createElement(vO,null),W.createElement(BO,{dense:!0,style:{maxHeight:200,overflow:"auto"}},GD.map((e=>W.createElement(UO,{"data-font-size":e,key:e,onClick:s},W.createElement(qI,null,e))))))))},QD=sD(aD,"InsertTable"),XD=()=>{const[e]=px.useLexicalComposerContext(),t=H.useCallback((()=>{e.dispatchCommand(bI,void 0)}),[e]);return W.createElement(QD,{onClick:t},W.createElement(wP,{height:12}))},qD=sD(uD,"Italic"),JD=()=>W.createElement(qD,{format:"italic",icon:W.createElement(kP,{height:12})}),ZD=sD(aD,"InsertHyperlink"),e$=()=>{const[e]=px.useLexicalComposerContext(),{blockFormat:t}=H.useContext(GI),n=H.useCallback((()=>{t.isLink?e.dispatchCommand(Ry.TOGGLE_LINK_COMMAND,null):e.dispatchCommand(Ry.TOGGLE_LINK_COMMAND,zP("https://"))}),[e,t.isLink]);return W.createElement(ZD,{onClick:n},W.createElement(NP,{height:12}))},t$=sD(uD,"Underline"),n$=()=>W.createElement(t$,{format:"underline",icon:W.createElement(OP,{height:12})}),r$=()=>W.createElement(vO,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var o$={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=="},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=="}},i$={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"}},l$={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=="},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=="}},a$={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=="},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=="}},s$={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=="},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=="}},u$={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=="},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=="}},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=="},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:"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=="},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=="}},f$={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=="},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=="}},p$={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=="},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=="}},m$={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=="},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=="}},h$={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=="},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=="}},g$={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=="},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 v$={de:o$,es:l$,en:i$,fr:a$,it:s$,ja:u$,ko:c$,nl:d$,pl:f$,pt:p$,ru:m$,sv:h$,tr:g$,"de-de":o$,"es-es":l$,"en-us":i$,"fr-fr":a$,"it-it":s$,"ja-jp":u$,"ko-kr":c$,"nl-nl":d$,"pl-pl":f$,"pt-br":p$,"ru-ru":m$,"sv-se":h$,"tr-tr":g$,"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=="},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=="},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 b$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y$={},x$=px,_$=ey,w$=H;function E$(e,t){return e.getEditorState().read((()=>{let e=_$.$getNodeByKey(t);return null!==e&&e.isSelected()}))}y$.useLexicalNodeSelection=function(e){let[t]=x$.useLexicalComposerContext(),[n,r]=w$.useState((()=>E$(t,e)));w$.useEffect((()=>{let n=!0,o=t.registerUpdateListener((()=>{n&&r(E$(t,e))}));return()=>{n=!1,o()}}),[t,e]);let o=w$.useCallback((n=>{t.update((()=>{let t=_$.$getSelection();_$.$isNodeSelection(t)||(t=_$.$createNodeSelection(),_$.$setSelection(t)),n?t.add(e):t.delete(e)}))}),[t,e]),i=w$.useCallback((()=>{t.update((()=>{const e=_$.$getSelection();_$.$isNodeSelection(e)&&e.clear()}))}),[t]);return[n,o,i]};var C$,k$=y$;var S$={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,A$=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,O$=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,M$=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,L$=Math.floor,P$=Math.round,I$=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(P$(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=P$(255*p),m=P$(255*m),h=P$(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=P$(255*p),m=P$(255*m),h=P$(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=P$(255*p),m=P$(255*m),h=P$(255*h),g=1}else S$[f.toLowerCase()]?(r=f.toLowerCase(),p=S$[r].r,m=S$[r].g,h=S$[r].b,g="number"==typeof S$[r].a?S$[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=L$(p),this._g=L$(m),this._b=L$(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=L$(this._r+(e._r-this._r)*t),r=L$(this._g+(e._g-this._g)*t),o=L$(this._b+(e._b-this._b)*t),i=L$(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}},{key:"createShiftedColor",value:function(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,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;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 D$(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}}))}I$.toRGB=function(e){if(e instanceof I$)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=I$.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},I$.toRGBA=function(e,t){if(e instanceof I$)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=I$.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,")")},I$.toHex=function(e){var t,n,r;return e instanceof I$?(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=I$.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))},I$.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new I$(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,")")},I$.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new I$(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,")")},I$.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new I$(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}},I$.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof I$)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},I$.blend=function(e,t,n){var r=(16711680&(e=I$.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=I$.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},I$.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 I$(r,o,i,l)},I$.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(T$.test(e)||N$.test(e)||R$.test(e)||A$.test(e)||O$.test(e)||M$.test(e)||S$[e.toLowerCase()])},I$.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},I$.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)}},I$.isDark=function(){var e={getLuminance:I$.prototype.getLuminance,isInvalid:I$.prototype.isInvalid};return I$.prototype.init.apply(e,[].slice.call(arguments)),I$.prototype.isDark.call(e)},I$.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},C$=I$;function $$(e,t){return{fontWeight:e.fontWeight,fontStyle:e.fontStyle,textDecoration:e.textDecoration,color:t.expressionColor?t.expressionColor:e.color,fontSize:e.fontSize,fontFamily:e.fontFamily}}function z$(e,t){return null==t?void 0:t.getNodes().some((t=>t.getKey()===e))}function F$({cId:e,initStyle:t,nodeKey:n}){const{layout:r}=H.useContext(om),[o]=px.useLexicalComposerContext(),i=nw(),[l,a,s]=k$.useLexicalNodeSelection(n),u=H.useRef(null),[c,d]=H.useState(t);H.useEffect((()=>{d(t)}),[t]);const f=H.useMemo((()=>{let e;return l?e="rgba(0, 152, 69, 0.25)":i&&(e="rgba(0, 0, 0, 0.075)"),{backgroundColor:e}}),[l,i]),p=H.useMemo((()=>{const t=function(e,t,n){var r;const{qHyperCube:o}=t,i=null==o||null===(r=o.qMeasureInfo)||void 0===r?void 0:r.findIndex((t=>t.cId===e));if(void 0!==i&&-1!==i){var l,a,s,u;const e=null==o||null===(l=o.qDataPages)||void 0===l||null===(a=l[0])||void 0===a||null===(s=a.qMatrix)||void 0===s?void 0:s[0][i];return null==n||n(e,null==o||null===(u=o.qMeasureInfo)||void 0===u?void 0:u[i]),e}return null}(e,r);if(t){const e=function(e){var t,n;if(1===(null===(t=e.qAttrExps)||void 0===t||null===(n=t.qValues)||void 0===n?void 0:n.length)){var r;const t=null===(r=e.qAttrExps.qValues[0])||void 0===r?void 0:r.qText;if(t)return new C$(t).toHex()}return null}(t);return{value:t.qText||"",expressionColor:e}}return{value:""}}),[r]);H.useEffect((()=>{d((e=>$$(e,p)))}),[p]),H.useEffect((()=>{by.mergeRegister(o.registerCommand(ey.FORMAT_TEXT_COMMAND,(e=>(o.update((()=>{const t=e,r=ey.$getSelection();if(ey.$isRangeSelection(r)&&l){if(z$(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:"");d((t=>({...t,...e})))}}else if(l&&ey.$isNodeSelection(r)&&z$(n,r)&&u.current){const e=$$(u.current.style,p);d(((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)),ey.COMMAND_PRIORITY_HIGH),o.registerCommand(fD,(e=>(o.getEditorState().read((()=>{if("color"===e.styleKey&&p.expressionColor)return!1;if(u.current&&l){const r=ey.$getSelection();if(z$(n,r)){var t;const n=$$(null===(t=u.current)||void 0===t?void 0:t.style,p);n[e.styleKey]=e.styleValue,d(n)}}})),!1)),ey.COMMAND_PRIORITY_EDITOR),o.registerCommand(pD,(()=>(o.getEditorState().read((()=>{if(u.current&&l){const e=ey.$getSelection();if(z$(n,e)){const e={};p.expressionColor&&(e.color=p.expressionColor),d(e)}}})),!1)),ey.COMMAND_PRIORITY_EDITOR))}),[o,a,s,l,n,p]),H.useEffect((()=>{i||s()}),[i,s]),H.useEffect((()=>{o.update((()=>{!function(e,t){const n=ey.$getNodeByKey(e);var r;n&&(null===(r=n.setFormatStyle)||void 0===r||r.call(n,t))}(n,c)}))}),[c,o]);const m=H.useCallback((e=>{if(i){const t=e.currentTarget.getBoundingClientRect(),r=e.clientX-t.left;r>3?(e.preventDefault(),e.stopPropagation(),s(),a(!0)):r<t.width&&o.update((()=>{const e=ey.$getSelection();if(ey.$isNodeSelection(e)){const t=ey.$getNodeByKey(n);null==t||t.selectPrevious(),e.delete(n)}}))}}),[s,i,o]);return W.createElement("span",{style:{...f,...c},onClick:m,ref:u,id:e},p.value)}const B$="qlik.expression.node";class H$ extends NI{static getType(){return B$}static clone(e){return new H$(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new H$(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:B$,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),b$(this,"__expressionId",void 0),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return W.createElement(F$,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function W$(e){return e instanceof H$}function j$(){const[e]=px.useLexicalComposerContext(),t=nw(),{edit:n,model:r,emitter:o}=H.useContext(om);return H.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)};return null==o||o.on("saveDocument",t),null==o||o.on("reloadData",(t=>{const n=e.parseEditorState(t);t!==JSON.stringify(e.getEditorState().toJSON())&&e.setEditorState(n)})),()=>{null==o||o.removeListener("saveDocument",t),null==o||o.removeListener("reloadData",t)}}),[o,r]),H.useEffect((()=>{e.setEditable(n)}),[n]),H.useEffect((()=>{t&&e.focus()}),[t,e]),null}const K$=(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};class U${constructor(){b$(this,"nodeStore",void 0),b$(this,"pendingDeletes",void 0),this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=ey.$getNodeByKey(e);if(W$(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 Y$(){const{layout:e,emitter:t}=H.useContext(om),[n]=px.useLexicalComposerContext(),r=H.useRef(new U$),o=nw();return H.useEffect((()=>n.registerMutationListener(H$,(e=>{n.getEditorState().read((()=>{for(const[t,n]of e)r.current.update(t,n)}))}))),[n]),H.useEffect((()=>{e&&n.update((()=>{var t;const n=null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo;if(n){const e=ey.$nodesOfType(H$);if(K$(e,n).forEach((e=>{e.remove()})),n.length>e.length){const e=ey.$getSelection(),{cId:t}=n[n.length-1],r=new H$(t,{}),o=ey.$createTextNode(" "),i=ey.$createTextNode("");ey.$isRangeSelection(e)?e.insertNodes([i,r,o]):by.$insertNodeToNearestRoot(r)}}}))}),[e,n]),H.useEffect((()=>n.registerCommand(ey.KEY_DOWN_COMMAND,(e=>("Backspace"===e.key&&n.update((()=>{const e=ey.$getSelection();ey.$isNodeSelection(e)&&e.getNodes().forEach((e=>{W$(e)&&(e.selectPrevious(),e.remove())}))})),!1)),ey.COMMAND_PRIORITY_LOW)),[n]),H.useEffect((()=>{if(!o){const e=r.current.sync();e.length>0&&(null==t||t.emit("onNodeDestroyed",e))}}),[o,t]),null}var G$=Object.prototype.hasOwnProperty,V$=Object.prototype.toString,Q$=Object.defineProperty,X$=Object.getOwnPropertyDescriptor,q$=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===V$.call(e)},J$=function(e){if(!e||"[object Object]"!==V$.call(e))return!1;var t,n=G$.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&G$.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||G$.call(e,t)},Z$=function(e,t){Q$&&"__proto__"===t.name?Q$(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ez=function(e,t){if("__proto__"===t){if(!G$.call(e,t))return;if(X$)return X$(e,t).value}return e[t]};function tz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function nz(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function rz(){}!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=ez(a,n),a!==(o=ez(t,n))&&(c&&o&&(J$(o)||(i=q$(o)))?(i?(i=!1,l=r&&q$(r)?r:[]):l=r&&J$(r)?r:{},Z$(a,{name:n,newValue:e(c,l,o)})):void 0!==o&&Z$(a,{name:n,newValue:o}));return a}));var oz=1/.7,iz="\\s*([+-]?\\d+)\\s*",lz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",az="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sz=/^#([0-9a-f]{3,8})$/,uz=new RegExp(`^rgb\\(${iz},${iz},${iz}\\)$`),cz=new RegExp(`^rgb\\(${az},${az},${az}\\)$`),dz=new RegExp(`^rgba\\(${iz},${iz},${iz},${lz}\\)$`),fz=new RegExp(`^rgba\\(${az},${az},${az},${lz}\\)$`),pz=new RegExp(`^hsl\\(${lz},${az},${az}\\)$`),mz=new RegExp(`^hsla\\(${lz},${az},${az},${lz}\\)$`),hz={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 gz(){return this.rgb().formatHex()}function vz(){return this.rgb().formatRgb()}function bz(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?yz(t):3===n?new Ez(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?xz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?xz(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=uz.exec(e))?new Ez(t[1],t[2],t[3],1):(t=cz.exec(e))?new Ez(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=dz.exec(e))?xz(t[1],t[2],t[3],t[4]):(t=fz.exec(e))?xz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=pz.exec(e))?Rz(t[1],t[2]/100,t[3]/100,1):(t=mz.exec(e))?Rz(t[1],t[2]/100,t[3]/100,t[4]):hz.hasOwnProperty(e)?yz(hz[e]):"transparent"===e?new Ez(NaN,NaN,NaN,0):null}function yz(e){return new Ez(e>>16&255,e>>8&255,255&e,1)}function xz(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ez(e,t,n,r)}function _z(e){return e instanceof rz||(e=bz(e)),e?new Ez((e=e.rgb()).r,e.g,e.b,e.opacity):new Ez}function wz(e,t,n,r){return 1===arguments.length?_z(e):new Ez(e,t,n,null==r?1:r)}function Ez(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Cz(){return`#${Nz(this.r)}${Nz(this.g)}${Nz(this.b)}`}function kz(){const e=Sz(this.opacity);return`${1===e?"rgb(":"rgba("}${Tz(this.r)}, ${Tz(this.g)}, ${Tz(this.b)}${1===e?")":`, ${e})`}`}function Sz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Tz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nz(e){return((e=Tz(e))<16?"0":"")+e.toString(16)}function Rz(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Oz(e,t,n,r)}function Az(e){if(e instanceof Oz)return new Oz(e.h,e.s,e.l,e.opacity);if(e instanceof rz||(e=bz(e)),!e)return new Oz;if(e instanceof Oz)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 Oz(l,a,s,e.opacity)}function Oz(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Mz(e){return(e=(e||0)%360)<0?e+360:e}function Lz(e){return Math.max(0,Math.min(1,e||0))}function Pz(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}tz(rz,bz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:gz,formatHex:gz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Az(this).formatHsl()},formatRgb:vz,toString:vz}),tz(Ez,wz,nz(rz,{brighter(e){return e=null==e?oz:Math.pow(oz,e),new Ez(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ez(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ez(Tz(this.r),Tz(this.g),Tz(this.b),Sz(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:Cz,formatHex:Cz,formatHex8:function(){return`#${Nz(this.r)}${Nz(this.g)}${Nz(this.b)}${Nz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:kz,toString:kz})),tz(Oz,(function(e,t,n,r){return 1===arguments.length?Az(e):new Oz(e,t,n,null==r?1:r)}),nz(rz,{brighter(e){return e=null==e?oz:Math.pow(oz,e),new Oz(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Oz(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 Ez(Pz(e>=240?e-240:e+120,o,r),Pz(e,o,r),Pz(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Oz(Mz(this.h),Lz(this.s),Lz(this.l),Sz(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=Sz(this.opacity);return`${1===e?"hsl(":"hsla("}${Mz(this.h)}, ${100*Lz(this.s)}%, ${100*Lz(this.l)}%${1===e?")":`, ${e})`}`}}));const Iz=Math.PI/180,Dz=180/Math.PI,$z=4/29,zz=6/29,Fz=3*zz*zz;function Bz(e){if(e instanceof Hz)return new Hz(e.l,e.a,e.b,e.opacity);if(e instanceof Yz)return Gz(e);e instanceof Ez||(e=_z(e));var t,n,r=Uz(e.r),o=Uz(e.g),i=Uz(e.b),l=Wz((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=l:(t=Wz((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Wz((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Hz(116*l-16,500*(t-l),200*(l-n),e.opacity)}function Hz(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Wz(e){return e>.008856451679035631?Math.pow(e,1/3):e/Fz+$z}function jz(e){return e>zz?e*e*e:Fz*(e-$z)}function Kz(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Uz(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Yz(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Gz(e){if(isNaN(e.h))return new Hz(e.l,0,0,e.opacity);var t=e.h*Iz;return new Hz(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}tz(Hz,(function(e,t,n,r){return 1===arguments.length?Bz(e):new Hz(e,t,n,null==r?1:r)}),nz(rz,{brighter(e){return new Hz(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Hz(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 Ez(Kz(3.1338561*(t=.96422*jz(t))-1.6168667*(e=1*jz(e))-.4906146*(n=.82521*jz(n))),Kz(-.9787684*t+1.9161415*e+.033454*n),Kz(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),tz(Yz,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Yz)return new Yz(e.h,e.c,e.l,e.opacity);if(e instanceof Hz||(e=Bz(e)),0===e.a&&0===e.b)return new Yz(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Dz;return new Yz(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Yz(e,t,n,null==r?1:r)}),nz(rz,{brighter(e){return new Yz(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Yz(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Gz(this).rgb()}}));var Vz,Qz=e=>()=>e;function Xz(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Qz(isNaN(e)?t:e)}function qz(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 Jz(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=eF)):void 0===t&&(t=Zz);for(var n,r,o,i,l,a=new rF(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 rF(o[i])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(nF)}function Zz(e){return e.children}function eF(e){return Array.isArray(e)?e[1]:null}function tF(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function nF(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function rF(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Xz: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):Qz(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=wz(e)).r,(t=wz(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),l=Xz(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),rF.prototype=Jz.prototype={constructor:rF,count:function(){return this.eachAfter(qz)},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 Jz(this).eachBefore(tF)},[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)}},Vz=function(e){
|
|
116
|
+
/*! 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}},Vz({exports:{}});var oF=["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"],iF=["Abril Fatface, serif","Bangers, fantasy","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Nixie One, sans-serif","Noto Sans, sans-serif","PT Serif, serif","Permanent Marker, fantasy","Rammetto One, fantasy","Roboto, sans-serif","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Open Sans, sans-serif","Montserrat, sans-serif","Raleway, sans-serif","Bebas Neue, sans serif","Lobster, fantasy","Pacifico, cursive","Inter, sans-serif","Indie Flower, fantasy","Yanone Kaffeesatz, sans-serif"];const lF=e=>`text-toolbar.${null==e?void 0:e.id}`,aF=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))]};function sF(){const{element:e,edit:t,model:n,flags:r,theme:o}=H.useContext(om),i=H.useMemo((()=>(null==e?void 0:e.closest(".qv-inner-object"))||e),[e]),l=H.useMemo((()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?iF:oF}(r)),[r]),a=H.useMemo((()=>aF(o)),[o]);return W.createElement(BA,{open:t,anchorEl:i,placement:"top",transition:!0,sx:{zIndex:1},id:lF(n)},(({TransitionProps:e})=>W.createElement(EO,{...e},W.createElement(rA,{sx:{borderRadius:1,padding:.25}},W.createElement(QI,null,W.createElement(lD,{compact:!0}),W.createElement(r$,null),W.createElement(KD,{compact:!0,fonts:l}),W.createElement(VD,{compact:!0}),W.createElement(r$,null),W.createElement(dD,null),W.createElement(JD,null),W.createElement(n$,null),W.createElement(e$,null),W.createElement(jD,{colorPalette:a}),W.createElement(r$,null),W.createElement(tD,{compact:!0}),W.createElement(r$,null),W.createElement(hD,null),W.createElement(r$,null),W.createElement(XD,null))))))}function uF(){const{initialData:e,lang:t}=H.useContext(om);H.useEffect((()=>{!function(e){const t=Object.entries(v$[e]).reduce(((e,[t,n])=>({...e,[t]:n.value})),{});Kn.append(t)}(t)}),[t]);const n=H.useMemo((()=>{if(void 0!==e){return(e=>{var t;let n=YP.nodes;e.nodes&&(n=null===(t=YP.nodes)||void 0===t?void 0:t.concat(e.nodes));const r=e.initialData?e.initialData:void 0;return{...YP,nodes:n,editorState:r}})({initialData:e||void 0,nodes:[...RI,H$]})}return null}),[e]);return n?W.createElement("div",{className:"hideScrollBar"},W.createElement(GP,{initialConfig:n},W.createElement(sF,null),W.createElement(WI,null),W.createElement(BI,null),W.createElement(Y$,null),W.createElement(j$,null))):null}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".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 cF={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"},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"}]}}}}},dF={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}}}}};return Kn.configure({},"en-US"),function(t){const{flags:n}=t;return{qae:{properties:Yn,data:Gn},component(){const t=e.useElement(),r=(t=>{const n=e.useMemo((()=>em(t)),[t]);return e.useEffect((()=>()=>{null==n||n.unmount()}),[n]),n})(t),o=e.useStaleLayout(),i=e.useModel(),l=e.useInteractionState(),a=e.useEmitter(),[s,u]=e.useState(!1),[c,d]=e.useState(void 0),[f,p]=e.useState(1),m=e.useTheme(),[h,g]=e.useState(!1),[v,b]=e.useState(null),y=e=>{e||p(0),(e=>{var t;return(null===(t=e.qExtendsId)||void 0===t?void 0:t.length)>0})(o)||(!0===e&&g(!0),u(e),a.emit("njs-internal-edit-change",e))};e.useEffect((()=>{const e=e=>{D$(i,e)};return a.on("onNodeDestroyed",e),()=>{a.removeListener("onNodeDestroyed",e)}}),[a,i]),e.useEffect((()=>{2===f&&l.edit&&l.select&&y(!0)}),[f,l]),e.useEffect((()=>{o&&void 0===c&&(d(o.text||null),b(null==o?void 0:o.text))}),[o,c]),e.useEffect((()=>{const e=()=>{l.edit&&l.select&&p((e=>e+1))},n=e=>{const n=document.getElementById(lF(i));t.contains(e.target)||null!=n&&n.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)||y(!1)};return l.edit&&l.select||(y(!1),a.emit("saveDocument")),t.addEventListener("click",e),document.addEventListener("mousedown",n),()=>{t.removeEventListener("click",e),document.removeEventListener("mousedown",n)}}),[t,l,i]),e.useEffect((()=>{(({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:l,lang:a,flags:s,theme:u})=>{e.render(W.createElement(W.StrictMode,null,W.createElement(om.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:l,lang:a,flags:s,theme:u}},W.createElement(uF,null))))})({rootElement:r,layout:o,model:i,element:t,edit:s,initialData:c,emitter:a,lang:"en",flags:n,theme:m})}),[o,r,i,t,s,t,c,a,n,m]),e.useEffect((()=>{!s&&h&&a.emit("saveDocument")}),[s,a,h]),e.useEffect((()=>{if(o){const e=o;e.text&&e.text!==v&&(b(e.text),a.emit("reloadData",e.text))}}),[o,v,a])},ext:{definition:{type:"items",component:"accordion",items:{data:cF,settings:dF}},support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}}}}}));
|