@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
|
+
import{useMemo as e,useEffect as t,useElement as n,useStaleLayout as r,useModel as o,useInteractionState as i,useEmitter as l,useState as a,useTheme as s}from"@nebula.js/stardust";function u(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 c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var f,p={exports:{}};f=p,function(e,t){f.exports?f.exports=t(e):e.I18n=t(e)}(c,(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}));var m=d(p.exports),h={exports:{}},g={},v=Symbol.for("react.element"),b=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),E=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),N=Symbol.iterator;var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,O={};function M(e,t,n){this.props=e,this.context=t,this.refs=O,this.updater=n||R}function L(){}function P(e,t,n){this.props=e,this.context=t,this.refs=O,this.updater=n||R}M.prototype.isReactComponent={},M.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},M.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},L.prototype=M.prototype;var I=P.prototype=new L;I.constructor=P,A(I,M.prototype),I.isPureReactComponent=!0;var D=Array.isArray,$=Object.prototype.hasOwnProperty,z={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function B(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)$.call(t,r)&&!F.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return{$$typeof:v,type:e,key:i,ref:l,props:o,_owner:z.current}}function H(e){return"object"==typeof e&&null!==e&&e.$$typeof===v}var W=/\/+/g;function j(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 K(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 v:case b:l=!0}}if(l)return o=o(l=e),e=""===r?"."+j(l,0):r,D(o)?(n="",null!=e&&(n=e.replace(W,"$&/")+"/"),K(o,t,n,"",(function(e){return e}))):null!=o&&(H(o)&&(o=function(e,t){return{$$typeof:v,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(W,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",D(e))for(var a=0;a<e.length;a++){var s=r+j(i=e[a],a);l+=K(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),a=0;!(i=e.next()).done;)l+=K(i=i.value,t,n,s=r+j(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 U(e,t,n){if(null==e)return e;var r=[],o=0;return K(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function Y(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 G={current:null},V={transition:null},Q={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:V,ReactCurrentOwner:z};g.Children={map:U,forEach:function(e,t,n){U(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return U(e,(function(){t++})),t},toArray:function(e){return U(e,(function(e){return e}))||[]},only:function(e){if(!H(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},g.Component=M,g.Fragment=y,g.Profiler=_,g.PureComponent=P,g.StrictMode=x,g.Suspense=k,g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,g.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=A({},e.props),o=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=z.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)$.call(t,s)&&!F.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==a?a[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:v,type:e.type,key:o,ref:i,props:r,_owner:l}},g.createContext=function(e){return(e={$$typeof:E,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:w,_context:e},e.Consumer=e},g.createElement=B,g.createFactory=function(e){var t=B.bind(null,e);return t.type=e,t},g.createRef=function(){return{current:null}},g.forwardRef=function(e){return{$$typeof:C,render:e}},g.isValidElement=H,g.lazy=function(e){return{$$typeof:T,_payload:{_status:-1,_result:e},_init:Y}},g.memo=function(e,t){return{$$typeof:S,type:e,compare:void 0===t?null:t}},g.startTransition=function(e){var t=V.transition;V.transition={};try{e()}finally{V.transition=t}},g.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},g.useCallback=function(e,t){return G.current.useCallback(e,t)},g.useContext=function(e){return G.current.useContext(e)},g.useDebugValue=function(){},g.useDeferredValue=function(e){return G.current.useDeferredValue(e)},g.useEffect=function(e,t){return G.current.useEffect(e,t)},g.useId=function(){return G.current.useId()},g.useImperativeHandle=function(e,t,n){return G.current.useImperativeHandle(e,t,n)},g.useInsertionEffect=function(e,t){return G.current.useInsertionEffect(e,t)},g.useLayoutEffect=function(e,t){return G.current.useLayoutEffect(e,t)},g.useMemo=function(e,t){return G.current.useMemo(e,t)},g.useReducer=function(e,t,n){return G.current.useReducer(e,t,n)},g.useRef=function(e){return G.current.useRef(e)},g.useState=function(e){return G.current.useState(e)},g.useSyncExternalStore=function(e,t,n){return G.current.useSyncExternalStore(e,t,n)},g.useTransition=function(){return G.current.useTransition()},g.version="18.2.0",h.exports=g;var X=h.exports,q=d(X),J=u({__proto__:null,default:q},[X]),Z=function(){return Z=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},Z.apply(this,arguments)};var ee=[{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"}],te="en-US",ne=["zh-cn","zh-tw","qps-ploc"],re=function(e){if(e){"zh-hk"!==e.toLocaleLowerCase()&&"zh-mo"!==e.toLocaleLowerCase()||(e="zh-TW");var t=e.toLowerCase();if(ne.includes(e.toLocaleLowerCase()))return ee.find((function(e){return e.long.toLowerCase()===t}));var n=t.split("-")[0];return ee.find((function(e){var r=e.short;return r.toLowerCase()===n||r.toLowerCase()===t}))}},oe=function(e){var t=re(e);return t?t.short:(console.warn("Language '".concat(e,"' not supported, falling back to '").concat("en","'")),"en")},ie=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 le=(e,t)=>t?"other":1==e?"one":"other",ae=(e,t)=>t?"other":0==e||1==e?"one":"other",se=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",ue=(e,t)=>{const n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},ce=(e,t)=>"other",de=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",fe=ce,pe=le,me=ae,he=se,ge=le,ve=le,be=ue,ye=le,xe=le,_e=le,we=ae,Ee=ce,Ce=ce,ke=le,Se=le,Te=le,Ne=le,Re=le,Ae=ue,Oe=se,Me=le,Le=ce,Pe=le,Ie=le,De=le,$e=le,ze=ue,Fe=le,Be=se,He=ue,We=le,je=le,Ke=ue,Ue=ue,Ye=le,Ge=ae,Ve=le,Qe=le,Xe=ue,qe=ce,Je=ce,Ze=ce,et=ue,tt=de,nt=ce,rt=ce,ot=le,it=ue,lt=le,at=ce,st=ce,ut=le,ct=le,dt=ce,ft=ce,pt=le,mt=le,ht=ce,gt=se,vt=ce,bt=le,yt=le,xt=le,_t=le,wt=le,Et=le,Ct=ce,kt=ae,St=le,Tt=ae,Nt=le,Rt=le,At=le,Ot=ce,Mt=le,Lt=de,Pt=le,It=le,Dt=ue,$t=le,zt=le,Ft=le,Bt=ce,Ht=le,Wt=ae,jt=le,Kt=le,Ut=le,Yt=le,Gt=ce,Vt=ae,Qt=le,Xt=se,qt=le,Jt=ue,Zt=le,en=le,tn=ce,nn=le,rn=ce,on=le,ln=de,an=le,sn=le,un=de,cn=le,dn=ce,fn=ce,pn=de,mn=de,hn=de,gn=de,vn=de,bn=le,yn=le,xn=le,_n=le,wn=le,En=ce,Cn=ue,kn=le,Sn=le,Tn=le,Nn=le,Rn=ce,An=ae,On=le,Mn=le,Ln=ce,Pn=le,In=le,Dn=le,$n=ue,zn=le,Fn=le,Bn=le,Hn=le,Wn=ae,jn=le,Kn=ce,Un=le,Yn=le,Gn=ue,Vn=ce,Qn=ce,Xn=ce,qn=se;var Jn=Object.freeze({__proto__:null,_in:fe,af:pe,ak:me,am:he,an:ge,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:ve,ast:be,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:ye,bez:xe,bg:_e,bho:we,bm:Ee,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:Ce,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:ke,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:Se,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:Te,chr:Ne,ckb:Re,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:Ae,doi:Oe,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:Me,dz:Le,ee:Pe,el:Ie,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:De,es:$e,et:ze,eu:Fe,fa:Be,ff:(e,t)=>t?"other":e>=0&&e<2?"one":"other",fi:He,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:We,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:je,fy:Ke,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:Ue,gsw:Ye,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:Ge,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:Ve,haw:Qe,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:Xe,id:qe,ig:Je,ii:Ze,io:et,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:tt,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:nt,jbo:rt,jgo:ot,ji:it,jmc:lt,jv:at,jw:st,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:ut,kcg:ct,kde:dt,kea:ft,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:pt,kl:mt,km:ht,kn:gt,ko:vt,ks:bt,ksb:yt,ksh:(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",ku:xt,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:_t,lag:(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},lb:wt,lg:Et,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:Ct,ln:kt,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:St,mg:Tt,mgo:Nt,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:Rt,mn:At,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:Ot,nah:Mt,naq:Lt,nb:Pt,nd:It,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:Dt,nn:$t,nnh:zt,no:Ft,nqo:Bt,nr:Ht,nso:Wt,ny:jt,nyn:Kt,om:Ut,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:Yt,osa:Gt,pa:Vt,pap:Qt,pcm:Xt,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:qt,pt:(e,t)=>{const n=String(e).split(".")[0];return t?"other":0==n||1==n?"one":"other"},pt_PT:Jt,rm:Zt,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:en,root:tn,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:nn,sah:rn,saq:on,sat:ln,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:an,sdh:sn,se:un,seh:cn,ses:dn,sg:fn,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:pn,smi:mn,smj:hn,smn:gn,sms:vn,sn:bn,so:yn,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:xn,ssy:_n,st:wn,su:En,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:Cn,syr:kn,ta:Sn,te:Tn,teo:Nn,th:Rn,ti:An,tig:On,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:Mn,to:Ln,tr:Pn,ts:In,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:Dn,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:$n,uz:zn,ve:Fn,vi:(e,t)=>t&&1==e?"one":"other",vo:Bn,vun:Hn,wa:Wn,wae:jn,wo:Kn,xh:Un,xog:Yn,yi:Gn,yo:Vn,yue:Qn,zh:Xn,zu:qn}),Zn=function(){function e(){}return e.configure=function(t,n){var r,o,i;void 0===n&&(n=te),e.translations=t,e.language=(i=re(o=n))?i.long:(console.warn("Language '".concat(o,"' not supported, falling back to '").concat(te,"'")),te),e.languageShort=oe(n),function(e){var t=oe(e);document.documentElement.getAttribute("lang")||document.documentElement.setAttribute("lang",t)}(e.language),e.onTranslationsChangeListeners.forEach((function(e){return e()})),e.i18nProvider=m,m.missingTranslation=function(e){return e},m.defaultSeparator=null,m.locale=e.language,m.translations=((r={})[e.language]=e.translationsPlurals,r);var l=e.languageShort.split("-")[0];m.pluralization[e.language]=function(e){try{var t=Jn[l](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,Z({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=ie.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 er(){var e=X.useState(0),t=e[0],n=e[1];return X.useEffect((function(){var e=Zn.onTranslationsChange((function(){n(t+1)}));return function(){e()}}),[]),Zn.get}const tr={version:"0.1.0",title:"",subtitle:"",footnote:"",showTitles:!1,text:null,qHyperCubeDef:{qDimensions:[],qMeasures:[],qSuppressZero:!1,qSuppressMissing:!0,qInitialDataFetch:[{qWidth:500,qHeight:10}]}};var nr={targets:[{path:"/qHyperCubeDef",measures:{min:0,max:10},dimensions:{min:0,max:0}}]},rr={exports:{}},or={},ir={exports:{}},lr={};
|
|
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}}}}(lr),ir.exports=lr;var ar=ir.exports,sr=X,ur=ar;
|
|
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 cr(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 dr=new Set,fr={};function pr(e,t){mr(e,t),mr(e+"Capture",t)}function mr(e,t){for(fr[e]=t,e=0;e<t.length;e++)dr.add(t[e])}var hr=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),gr=Object.prototype.hasOwnProperty,vr=/^[: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]*$/,br={},yr={};function xr(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 _r={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){_r[e]=new xr(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];_r[t]=new xr(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){_r[e]=new xr(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){_r[e]=new xr(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){_r[e]=new xr(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){_r[e]=new xr(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){_r[e]=new xr(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){_r[e]=new xr(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){_r[e]=new xr(e,5,!1,e.toLowerCase(),null,!1,!1)}));var wr=/[\-:]([a-z])/g;function Er(e){return e[1].toUpperCase()}function Cr(e,t,n,r){var o=_r.hasOwnProperty(t)?_r[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!!gr.call(yr,e)||!gr.call(br,e)&&(vr.test(e)?yr[e]=!0:(br[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(wr,Er);_r[t]=new xr(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(wr,Er);_r[t]=new xr(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(wr,Er);_r[t]=new xr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){_r[e]=new xr(e,1,!1,e.toLowerCase(),null,!1,!1)})),_r.xlinkHref=new xr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){_r[e]=new xr(e,1,!1,e.toLowerCase(),null,!0,!0)}));var kr=sr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sr=Symbol.for("react.element"),Tr=Symbol.for("react.portal"),Nr=Symbol.for("react.fragment"),Rr=Symbol.for("react.strict_mode"),Ar=Symbol.for("react.profiler"),Or=Symbol.for("react.provider"),Mr=Symbol.for("react.context"),Lr=Symbol.for("react.forward_ref"),Pr=Symbol.for("react.suspense"),Ir=Symbol.for("react.suspense_list"),Dr=Symbol.for("react.memo"),$r=Symbol.for("react.lazy"),zr=Symbol.for("react.offscreen"),Fr=Symbol.iterator;function Br(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Fr&&e[Fr]||e["@@iterator"])?e:null}var Hr,Wr=Object.assign;function jr(e){if(void 0===Hr)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Hr=t&&t[1]||""}return"\n"+Hr+e}var Kr=!1;function Ur(e,t){if(!e||Kr)return"";Kr=!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{Kr=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?jr(e):""}function Yr(e){switch(e.tag){case 5:return jr(e.type);case 16:return jr("Lazy");case 13:return jr("Suspense");case 19:return jr("SuspenseList");case 0:case 2:case 15:return e=Ur(e.type,!1);case 11:return e=Ur(e.type.render,!1);case 1:return e=Ur(e.type,!0);default:return""}}function Gr(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 Nr:return"Fragment";case Tr:return"Portal";case Ar:return"Profiler";case Rr:return"StrictMode";case Pr:return"Suspense";case Ir:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Mr:return(e.displayName||"Context")+".Consumer";case Or:return(e._context.displayName||"Context")+".Provider";case Lr:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Dr:return null!==(t=e.displayName||null)?t:Gr(e.type)||"Memo";case $r:t=e._payload,e=e._init;try{return Gr(e(t))}catch(e){}}return null}function Vr(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 Gr(t);case 8:return t===Rr?"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 Qr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Xr(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function qr(e){e._valueTracker||(e._valueTracker=function(e){var t=Xr(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=Xr(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Zr(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 eo(e,t){var n=t.checked;return Wr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function to(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Qr(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 no(e,t){null!=(t=t.checked)&&Cr(e,"checked",t,!1)}function ro(e,t){no(e,t);var n=Qr(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")?io(e,t.type,n):t.hasOwnProperty("defaultValue")&&io(e,t.type,Qr(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function oo(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 io(e,t,n){"number"===t&&Zr(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var lo=Array.isArray;function ao(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=""+Qr(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 so(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(cr(91));return Wr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function uo(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(cr(92));if(lo(n)){if(1<n.length)throw Error(cr(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Qr(n)}}function co(e,t){var n=Qr(t.value),r=Qr(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 fo(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function po(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 mo(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?po(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ho,go=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((ho=ho||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ho.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function vo(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 bo={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},yo=["Webkit","ms","Moz","O"];function xo(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||bo.hasOwnProperty(e)&&bo[e]?(""+t).trim():t+"px"}function _o(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=xo(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(bo).forEach((function(e){yo.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bo[t]=bo[e]}))}));var wo=Wr({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 Eo(e,t){if(t){if(wo[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(cr(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(cr(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(cr(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(cr(62))}}function Co(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 ko=null;function So(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var To=null,No=null,Ro=null;function Ao(e){if(e=Es(e)){if("function"!=typeof To)throw Error(cr(280));var t=e.stateNode;t&&(t=ks(t),To(e.stateNode,e.type,t))}}function Oo(e){No?Ro?Ro.push(e):Ro=[e]:No=e}function Mo(){if(No){var e=No,t=Ro;if(Ro=No=null,Ao(e),t)for(e=0;e<t.length;e++)Ao(t[e])}}function Lo(e,t){return e(t)}function Po(){}var Io=!1;function Do(e,t,n){if(Io)return e(t,n);Io=!0;try{return Lo(e,t,n)}finally{Io=!1,(null!==No||null!==Ro)&&(Po(),Mo())}}function $o(e,t){var n=e.stateNode;if(null===n)return null;var r=ks(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(cr(231,t,typeof n));return n}var zo=!1;if(hr)try{var Fo={};Object.defineProperty(Fo,"passive",{get:function(){zo=!0}}),window.addEventListener("test",Fo,Fo),window.removeEventListener("test",Fo,Fo)}catch($$){zo=!1}function Bo(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 Ho=!1,Wo=null,jo=!1,Ko=null,Uo={onError:function(e){Ho=!0,Wo=e}};function Yo(e,t,n,r,o,i,l,a,s){Ho=!1,Wo=null,Bo.apply(Uo,arguments)}function Go(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 Vo(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 Qo(e){if(Go(e)!==e)throw Error(cr(188))}function Xo(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Go(e)))throw Error(cr(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 Qo(o),e;if(i===r)return Qo(o),t;i=i.sibling}throw Error(cr(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(cr(189))}}if(n.alternate!==r)throw Error(cr(190))}if(3!==n.tag)throw Error(cr(188));return n.stateNode.current===n?e:t}(e),null!==e?qo(e):null}function qo(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qo(e);if(null!==t)return t;e=e.sibling}return null}var Jo=ur.unstable_scheduleCallback,Zo=ur.unstable_cancelCallback,ei=ur.unstable_shouldYield,ti=ur.unstable_requestPaint,ni=ur.unstable_now,ri=ur.unstable_getCurrentPriorityLevel,oi=ur.unstable_ImmediatePriority,ii=ur.unstable_UserBlockingPriority,li=ur.unstable_NormalPriority,ai=ur.unstable_LowPriority,si=ur.unstable_IdlePriority,ui=null,ci=null;var di=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(fi(e)/pi|0)|0},fi=Math.log,pi=Math.LN2;var mi=64,hi=4194304;function gi(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 vi(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=gi(a):0!==(i&=l)&&(r=gi(i))}else 0!==(l=n&~o)?r=gi(l):0!==i&&(r=gi(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-di(t)),r|=e[n],t&=~o;return r}function bi(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 yi(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function xi(){var e=mi;return 0==(4194240&(mi<<=1))&&(mi=64),e}function _i(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wi(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-di(t)]=n}function Ei(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-di(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Ci=0;function ki(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Si,Ti,Ni,Ri,Ai,Oi=!1,Mi=[],Li=null,Pi=null,Ii=null,Di=new Map,$i=new Map,zi=[],Fi="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 Bi(e,t){switch(e){case"focusin":case"focusout":Li=null;break;case"dragenter":case"dragleave":Pi=null;break;case"mouseover":case"mouseout":Ii=null;break;case"pointerover":case"pointerout":Di.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$i.delete(t.pointerId)}}function Hi(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=Es(t))&&Ti(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Wi(e){var t=ws(e.target);if(null!==t){var n=Go(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Vo(n)))return e.blockedOn=t,void Ai(e.priority,(function(){Ni(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 ji(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=el(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Es(n))&&Ti(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ko=r,n.target.dispatchEvent(r),ko=null,t.shift()}return!0}function Ki(e,t,n){ji(e)&&n.delete(t)}function Ui(){Oi=!1,null!==Li&&ji(Li)&&(Li=null),null!==Pi&&ji(Pi)&&(Pi=null),null!==Ii&&ji(Ii)&&(Ii=null),Di.forEach(Ki),$i.forEach(Ki)}function Yi(e,t){e.blockedOn===t&&(e.blockedOn=null,Oi||(Oi=!0,ur.unstable_scheduleCallback(ur.unstable_NormalPriority,Ui)))}function Gi(e){function t(t){return Yi(t,e)}if(0<Mi.length){Yi(Mi[0],e);for(var n=1;n<Mi.length;n++){var r=Mi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Li&&Yi(Li,e),null!==Pi&&Yi(Pi,e),null!==Ii&&Yi(Ii,e),Di.forEach(t),$i.forEach(t),n=0;n<zi.length;n++)(r=zi[n]).blockedOn===e&&(r.blockedOn=null);for(;0<zi.length&&null===(n=zi[0]).blockedOn;)Wi(n),null===n.blockedOn&&zi.shift()}var Vi=kr.ReactCurrentBatchConfig,Qi=!0;function Xi(e,t,n,r){var o=Ci,i=Vi.transition;Vi.transition=null;try{Ci=1,Ji(e,t,n,r)}finally{Ci=o,Vi.transition=i}}function qi(e,t,n,r){var o=Ci,i=Vi.transition;Vi.transition=null;try{Ci=4,Ji(e,t,n,r)}finally{Ci=o,Vi.transition=i}}function Ji(e,t,n,r){if(Qi){var o=el(e,t,n,r);if(null===o)Va(e,t,r,Zi,n),Bi(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Li=Hi(Li,e,t,n,r,o),!0;case"dragenter":return Pi=Hi(Pi,e,t,n,r,o),!0;case"mouseover":return Ii=Hi(Ii,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Di.set(i,Hi(Di.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,$i.set(i,Hi($i.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Bi(e,r),4&t&&-1<Fi.indexOf(e)){for(;null!==o;){var i=Es(o);if(null!==i&&Si(i),null===(i=el(e,t,n,r))&&Va(e,t,r,Zi,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Va(e,t,r,null,n)}}var Zi=null;function el(e,t,n,r){if(Zi=null,null!==(e=ws(e=So(r))))if(null===(t=Go(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Vo(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 Zi=e,null}function tl(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(ri()){case oi:return 1;case ii:return 4;case li:case ai:return 16;case si:return 536870912;default:return 16}default:return 16}}var nl=null,rl=null,ol=null;function il(){if(ol)return ol;var e,t,n=rl,r=n.length,o="value"in nl?nl.value:nl.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 ol=o.slice(e,1<t?1-t:void 0)}function ll(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 al(){return!0}function sl(){return!1}function ul(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)?al:sl,this.isPropagationStopped=sl,this}return Wr(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=al)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=al)},persist:function(){},isPersistent:al}),t}var cl,dl,fl,pl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ml=ul(pl),hl=Wr({},pl,{view:0,detail:0}),gl=ul(hl),vl=Wr({},hl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rl,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!==fl&&(fl&&"mousemove"===e.type?(cl=e.screenX-fl.screenX,dl=e.screenY-fl.screenY):dl=cl=0,fl=e),cl)},movementY:function(e){return"movementY"in e?e.movementY:dl}}),bl=ul(vl),yl=ul(Wr({},vl,{dataTransfer:0})),xl=ul(Wr({},hl,{relatedTarget:0})),_l=ul(Wr({},pl,{animationName:0,elapsedTime:0,pseudoElement:0})),wl=Wr({},pl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),El=ul(wl),Cl=ul(Wr({},pl,{data:0})),kl={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sl={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"},Tl={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nl(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Tl[e])&&!!t[e]}function Rl(){return Nl}var Al=Wr({},hl,{key:function(e){if(e.key){var t=kl[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ll(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sl[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rl,charCode:function(e){return"keypress"===e.type?ll(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ll(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ol=ul(Al),Ml=ul(Wr({},vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ll=ul(Wr({},hl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rl})),Pl=ul(Wr({},pl,{propertyName:0,elapsedTime:0,pseudoElement:0})),Il=Wr({},vl,{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}),Dl=ul(Il),$l=[9,13,27,32],zl=hr&&"CompositionEvent"in window,Fl=null;hr&&"documentMode"in document&&(Fl=document.documentMode);var Bl=hr&&"TextEvent"in window&&!Fl,Hl=hr&&(!zl||Fl&&8<Fl&&11>=Fl),Wl=String.fromCharCode(32),jl=!1;function Kl(e,t){switch(e){case"keyup":return-1!==$l.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ul(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Yl=!1;var Gl={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 Vl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gl[e.type]:"textarea"===t}function Ql(e,t,n,r){Oo(r),0<(t=Xa(t,"onChange")).length&&(n=new ml("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xl=null,ql=null;function Jl(e){Wa(e,0)}function Zl(e){if(Jr(Cs(e)))return e}function ea(e,t){if("change"===e)return t}var ta=!1;if(hr){var na;if(hr){var ra="oninput"in document;if(!ra){var oa=document.createElement("div");oa.setAttribute("oninput","return;"),ra="function"==typeof oa.oninput}na=ra}else na=!1;ta=na&&(!document.documentMode||9<document.documentMode)}function ia(){Xl&&(Xl.detachEvent("onpropertychange",la),ql=Xl=null)}function la(e){if("value"===e.propertyName&&Zl(ql)){var t=[];Ql(t,ql,e,So(e)),Do(Jl,t)}}function aa(e,t,n){"focusin"===e?(ia(),ql=n,(Xl=t).attachEvent("onpropertychange",la)):"focusout"===e&&ia()}function sa(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zl(ql)}function ua(e,t){if("click"===e)return Zl(t)}function ca(e,t){if("input"===e||"change"===e)return Zl(t)}var da="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function fa(e,t){if(da(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(!gr.call(t,o)||!da(e[o],t[o]))return!1}return!0}function pa(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ma(e,t){var n,r=pa(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=pa(r)}}function ha(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ha(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ga(){for(var e=window,t=Zr();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Zr((e=t.contentWindow).document)}return t}function va(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 ba(e){var t=ga(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ha(n.ownerDocument.documentElement,n)){if(null!==r&&va(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=ma(n,i);var l=ma(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 ya=hr&&"documentMode"in document&&11>=document.documentMode,xa=null,_a=null,wa=null,Ea=!1;function Ca(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Ea||null==xa||xa!==Zr(r)||("selectionStart"in(r=xa)&&va(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},wa&&fa(wa,r)||(wa=r,0<(r=Xa(_a,"onSelect")).length&&(t=new ml("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xa)))}function ka(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sa={animationend:ka("Animation","AnimationEnd"),animationiteration:ka("Animation","AnimationIteration"),animationstart:ka("Animation","AnimationStart"),transitionend:ka("Transition","TransitionEnd")},Ta={},Na={};function Ra(e){if(Ta[e])return Ta[e];if(!Sa[e])return e;var t,n=Sa[e];for(t in n)if(n.hasOwnProperty(t)&&t in Na)return Ta[e]=n[t];return e}hr&&(Na=document.createElement("div").style,"AnimationEvent"in window||(delete Sa.animationend.animation,delete Sa.animationiteration.animation,delete Sa.animationstart.animation),"TransitionEvent"in window||delete Sa.transitionend.transition);var Aa=Ra("animationend"),Oa=Ra("animationiteration"),Ma=Ra("animationstart"),La=Ra("transitionend"),Pa=new Map,Ia="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 Da(e,t){Pa.set(e,t),pr(t,[e])}for(var $a=0;$a<Ia.length;$a++){var za=Ia[$a];Da(za.toLowerCase(),"on"+(za[0].toUpperCase()+za.slice(1)))}Da(Aa,"onAnimationEnd"),Da(Oa,"onAnimationIteration"),Da(Ma,"onAnimationStart"),Da("dblclick","onDoubleClick"),Da("focusin","onFocus"),Da("focusout","onBlur"),Da(La,"onTransitionEnd"),mr("onMouseEnter",["mouseout","mouseover"]),mr("onMouseLeave",["mouseout","mouseover"]),mr("onPointerEnter",["pointerout","pointerover"]),mr("onPointerLeave",["pointerout","pointerover"]),pr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pr("onBeforeInput",["compositionend","keypress","textInput","paste"]),pr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fa="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(" "),Ba=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fa));function Ha(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,a,s){if(Yo.apply(this,arguments),Ho){if(!Ho)throw Error(cr(198));var u=Wo;Ho=!1,Wo=null,jo||(jo=!0,Ko=u)}}(r,t,void 0,e),e.currentTarget=null}function Wa(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;Ha(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;Ha(o,a,u),i=s}}}if(jo)throw e=Ko,jo=!1,Ko=null,e}function ja(e,t){var n=t[ys];void 0===n&&(n=t[ys]=new Set);var r=e+"__bubble";n.has(r)||(Ga(t,e,2,!1),n.add(r))}function Ka(e,t,n){var r=0;t&&(r|=4),Ga(n,e,r,t)}var Ua="_reactListening"+Math.random().toString(36).slice(2);function Ya(e){if(!e[Ua]){e[Ua]=!0,dr.forEach((function(t){"selectionchange"!==t&&(Ba.has(t)||Ka(t,!1,e),Ka(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ua]||(t[Ua]=!0,Ka("selectionchange",!1,t))}}function Ga(e,t,n,r){switch(tl(t)){case 1:var o=Xi;break;case 4:o=qi;break;default:o=Ji}n=o.bind(null,t,n,e),o=void 0,!zo||"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 Va(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=ws(a)))return;if(5===(s=l.tag)||6===s){r=i=l;continue e}a=a.parentNode}}r=r.return}Do((function(){var r=i,o=So(n),l=[];e:{var a=Pa.get(e);if(void 0!==a){var s=ml,u=e;switch(e){case"keypress":if(0===ll(n))break e;case"keydown":case"keyup":s=Ol;break;case"focusin":u="focus",s=xl;break;case"focusout":u="blur",s=xl;break;case"beforeblur":case"afterblur":s=xl;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=bl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=yl;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ll;break;case Aa:case Oa:case Ma:s=_l;break;case La:s=Pl;break;case"scroll":s=gl;break;case"wheel":s=Dl;break;case"copy":case"cut":case"paste":s=El;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Ml}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=$o(m,f))&&c.push(Qa(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===ko||!(u=n.relatedTarget||n.fromElement)||!ws(u)&&!u[bs])&&(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)?ws(u):null)&&(u!==(d=Go(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=bl,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Ml,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?a:Cs(s),p=null==u?a:Cs(u),(a=new c(h,m+"leave",s,n,o)).target=d,a.relatedTarget=p,h=null,ws(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=qa(p))m++;for(p=0,h=f;h;h=qa(h))p++;for(;0<m-p;)c=qa(c),m--;for(;0<p-m;)f=qa(f),p--;for(;m--;){if(c===f||null!==f&&c===f.alternate)break e;c=qa(c),f=qa(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?Cs(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===s&&"file"===a.type)var g=ea;else if(Vl(a))if(ta)g=ca;else{g=sa;var v=aa}else(s=a.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=ua);switch(g&&(g=g(e,r))?Ql(l,g,n,o):(v&&v(e,a,r),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&io(a,"number",a.value)),v=r?Cs(r):window,e){case"focusin":(Vl(v)||"true"===v.contentEditable)&&(xa=v,_a=r,wa=null);break;case"focusout":wa=_a=xa=null;break;case"mousedown":Ea=!0;break;case"contextmenu":case"mouseup":case"dragend":Ea=!1,Ca(l,n,o);break;case"selectionchange":if(ya)break;case"keydown":case"keyup":Ca(l,n,o)}var b;if(zl)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 Yl?Kl(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Hl&&"ko"!==n.locale&&(Yl||"onCompositionStart"!==y?"onCompositionEnd"===y&&Yl&&(b=il()):(rl="value"in(nl=o)?nl.value:nl.textContent,Yl=!0)),0<(v=Xa(r,y)).length&&(y=new Cl(y,e,null,n,o),l.push({event:y,listeners:v}),b?y.data=b:null!==(b=Ul(n))&&(y.data=b))),(b=Bl?function(e,t){switch(e){case"compositionend":return Ul(t);case"keypress":return 32!==t.which?null:(jl=!0,Wl);case"textInput":return(e=t.data)===Wl&&jl?null:e;default:return null}}(e,n):function(e,t){if(Yl)return"compositionend"===e||!zl&&Kl(e,t)?(e=il(),ol=rl=nl=null,Yl=!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 Hl&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Xa(r,"onBeforeInput")).length&&(o=new Cl("onBeforeInput","beforeinput",null,n,o),l.push({event:o,listeners:r}),o.data=b))}Wa(l,t)}))}function Qa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xa(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=$o(e,n))&&r.unshift(Qa(e,i,o)),null!=(i=$o(e,t))&&r.push(Qa(e,i,o))),e=e.return}return r}function qa(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=$o(n,i))&&l.unshift(Qa(n,s,a)):o||null!=(s=$o(n,i))&&l.push(Qa(n,s,a))),n=n.return}0!==l.length&&e.push({event:t,listeners:l})}var Za=/\r\n?/g,es=/\u0000|\uFFFD/g;function ts(e){return("string"==typeof e?e:""+e).replace(Za,"\n").replace(es,"")}function ns(e,t,n){if(t=ts(t),ts(e)!==t&&n)throw Error(cr(425))}function rs(){}var os=null,is=null;function ls(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 as="function"==typeof setTimeout?setTimeout:void 0,ss="function"==typeof clearTimeout?clearTimeout:void 0,us="function"==typeof Promise?Promise:void 0,cs="function"==typeof queueMicrotask?queueMicrotask:void 0!==us?function(e){return us.resolve(null).then(e).catch(ds)}:as;function ds(e){setTimeout((function(){throw e}))}function fs(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 Gi(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Gi(t)}function ps(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 ms(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 hs=Math.random().toString(36).slice(2),gs="__reactFiber$"+hs,vs="__reactProps$"+hs,bs="__reactContainer$"+hs,ys="__reactEvents$"+hs,xs="__reactListeners$"+hs,_s="__reactHandles$"+hs;function ws(e){var t=e[gs];if(t)return t;for(var n=e.parentNode;n;){if(t=n[bs]||n[gs]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ms(e);null!==e;){if(n=e[gs])return n;e=ms(e)}return t}n=(e=n).parentNode}return null}function Es(e){return!(e=e[gs]||e[bs])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Cs(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(cr(33))}function ks(e){return e[vs]||null}var Ss=[],Ts=-1;function Ns(e){return{current:e}}function Rs(e){0>Ts||(e.current=Ss[Ts],Ss[Ts]=null,Ts--)}function As(e,t){Ts++,Ss[Ts]=e.current,e.current=t}var Os={},Ms=Ns(Os),Ls=Ns(!1),Ps=Os;function Is(e,t){var n=e.type.contextTypes;if(!n)return Os;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 Ds(e){return null!=(e=e.childContextTypes)}function $s(){Rs(Ls),Rs(Ms)}function zs(e,t,n){if(Ms.current!==Os)throw Error(cr(168));As(Ms,t),As(Ls,n)}function Fs(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(cr(108,Vr(e)||"Unknown",o));return Wr({},n,r)}function Bs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Os,Ps=Ms.current,As(Ms,e),As(Ls,Ls.current),!0}function Hs(e,t,n){var r=e.stateNode;if(!r)throw Error(cr(169));n?(e=Fs(e,t,Ps),r.__reactInternalMemoizedMergedChildContext=e,Rs(Ls),Rs(Ms),As(Ms,e)):Rs(Ls),As(Ls,n)}var Ws=null,js=!1,Ks=!1;function Us(e){null===Ws?Ws=[e]:Ws.push(e)}function Ys(){if(!Ks&&null!==Ws){Ks=!0;var e=0,t=Ci;try{var n=Ws;for(Ci=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ws=null,js=!1}catch(t){throw null!==Ws&&(Ws=Ws.slice(e+1)),Jo(oi,Ys),t}finally{Ci=t,Ks=!1}}return null}var Gs=[],Vs=0,Qs=null,Xs=0,qs=[],Js=0,Zs=null,eu=1,tu="";function nu(e,t){Gs[Vs++]=Xs,Gs[Vs++]=Qs,Qs=e,Xs=t}function ru(e,t,n){qs[Js++]=eu,qs[Js++]=tu,qs[Js++]=Zs,Zs=e;var r=eu;e=tu;var o=32-di(r)-1;r&=~(1<<o),n+=1;var i=32-di(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,eu=1<<32-di(t)+o|n<<o|r,tu=i+e}else eu=1<<i|n<<o|r,tu=e}function ou(e){null!==e.return&&(nu(e,1),ru(e,1,0))}function iu(e){for(;e===Qs;)Qs=Gs[--Vs],Gs[Vs]=null,Xs=Gs[--Vs],Gs[Vs]=null;for(;e===Zs;)Zs=qs[--Js],qs[Js]=null,tu=qs[--Js],qs[Js]=null,eu=qs[--Js],qs[Js]=null}var lu=null,au=null,su=!1,uu=null;function cu(e,t){var n=Dp(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 du(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,lu=e,au=ps(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,lu=e,au=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zs?{id:eu,overflow:tu}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Dp(18,null,null,0)).stateNode=t,n.return=e,e.child=n,lu=e,au=null,!0);default:return!1}}function fu(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function pu(e){if(su){var t=au;if(t){var n=t;if(!du(e,t)){if(fu(e))throw Error(cr(418));t=ps(n.nextSibling);var r=lu;t&&du(e,t)?cu(r,n):(e.flags=-4097&e.flags|2,su=!1,lu=e)}}else{if(fu(e))throw Error(cr(418));e.flags=-4097&e.flags|2,su=!1,lu=e}}}function mu(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;lu=e}function hu(e){if(e!==lu)return!1;if(!su)return mu(e),su=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ls(e.type,e.memoizedProps)),t&&(t=au)){if(fu(e))throw gu(),Error(cr(418));for(;t;)cu(e,t),t=ps(t.nextSibling)}if(mu(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(cr(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){au=ps(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}au=null}}else au=lu?ps(e.stateNode.nextSibling):null;return!0}function gu(){for(var e=au;e;)e=ps(e.nextSibling)}function vu(){au=lu=null,su=!1}function bu(e){null===uu?uu=[e]:uu.push(e)}var yu=kr.ReactCurrentBatchConfig;function xu(e,t){if(e&&e.defaultProps){for(var n in t=Wr({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var _u=Ns(null),wu=null,Eu=null,Cu=null;function ku(){Cu=Eu=wu=null}function Su(e){var t=_u.current;Rs(_u),e._currentValue=t}function Tu(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 Nu(e,t){wu=e,Cu=Eu=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ed=!0),e.firstContext=null)}function Ru(e){var t=e._currentValue;if(Cu!==e)if(e={context:e,memoizedValue:t,next:null},null===Eu){if(null===wu)throw Error(cr(308));Eu=e,wu.dependencies={lanes:0,firstContext:e}}else Eu=Eu.next=e;return t}var Au=null;function Ou(e){null===Au?Au=[e]:Au.push(e)}function Mu(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ou(t)):(n.next=o.next,o.next=n),t.interleaved=n,Lu(e,r)}function Lu(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 Pu=!1;function Iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Du(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 $u(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zu(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Lf)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Lu(e,n)}return null===(o=r.interleaved)?(t.next=t,Ou(r)):(t.next=o.next,o.next=t),r.interleaved=t,Lu(e,n)}function Fu(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,Ei(e,n)}}function Bu(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 Hu(e,t,n,r){var o=e.updateQueue;Pu=!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=Wr({},d,f);break e;case 2:Pu=!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);Hf|=l,e.lanes=l,e.memoizedState=d}}function Wu(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(cr(191,o));o.call(r)}}}var ju=(new sr.Component).refs;function Ku(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Wr({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Uu={isMounted:function(e){return!!(e=e._reactInternals)&&Go(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ip(),o=lp(e),i=$u(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=zu(e,i,o))&&(ap(t,e,o,r),Fu(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ip(),o=lp(e),i=$u(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=zu(e,i,o))&&(ap(t,e,o,r),Fu(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ip(),r=lp(e),o=$u(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=zu(e,o,r))&&(ap(t,e,r,n),Fu(t,e,r))}};function Yu(e,t,n,r,o,i,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,l):!t.prototype||!t.prototype.isPureReactComponent||(!fa(n,r)||!fa(o,i))}function Gu(e,t,n){var r=!1,o=Os,i=t.contextType;return"object"==typeof i&&null!==i?i=Ru(i):(o=Ds(t)?Ps:Ms.current,i=(r=null!=(r=t.contextTypes))?Is(e,o):Os),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Uu,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Vu(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&&Uu.enqueueReplaceState(t,t.state,null)}function Qu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ju,Iu(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ru(i):(i=Ds(t)?Ps:Ms.current,o.context=Is(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ku(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&&Uu.enqueueReplaceState(o,o.state,null),Hu(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Xu(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(cr(309));var r=n.stateNode}if(!r)throw Error(cr(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===ju&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(cr(284));if(!n._owner)throw Error(cr(290,e))}return e}function qu(e,t){throw e=Object.prototype.toString.call(t),Error(cr(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ju(e){return(0,e._init)(e._payload)}function Zu(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=zp(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=Wp(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===Nr?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===$r&&Ju(i)===t.type)?((r=o(t,n.props)).ref=Xu(e,t,n),r.return=e,r):((r=Fp(n.type,n.key,n.props,null,e.mode,r)).ref=Xu(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=jp(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=Bp(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=Wp(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Sr:return(n=Fp(t.type,t.key,t.props,null,e.mode,n)).ref=Xu(e,null,t),n.return=e,n;case Tr:return(t=jp(t,e.mode,n)).return=e,t;case $r:return d(e,(0,t._init)(t._payload),n)}if(lo(t)||Br(t))return(t=Bp(t,e.mode,n,null)).return=e,t;qu(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 Sr:return n.key===o?s(e,t,n,r):null;case Tr:return n.key===o?u(e,t,n,r):null;case $r:return f(e,t,(o=n._init)(n._payload),r)}if(lo(n)||Br(n))return null!==o?null:c(e,t,n,r,null);qu(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 Sr:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Tr:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case $r:return p(e,t,n,(0,r._init)(r._payload),o)}if(lo(r)||Br(r))return c(t,e=e.get(n)||null,r,o,null);qu(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),su&&nu(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 su&&nu(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)})),su&&nu(o,h),u}function h(o,l,a,s){var u=Br(a);if("function"!=typeof u)throw Error(cr(150));if(null==(a=u.call(a)))throw Error(cr(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),su&&nu(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 su&&nu(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)})),su&&nu(o,h),u}return function e(r,i,a,s){if("object"==typeof a&&null!==a&&a.type===Nr&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case Sr:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===Nr){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===$r&&Ju(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=Xu(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===Nr?((i=Bp(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Fp(a.type,a.key,a.props,null,r.mode,s)).ref=Xu(r,i,a),s.return=r,r=s)}return l(r);case Tr: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=jp(a,r.mode,s)).return=r,r=i}return l(r);case $r:return e(r,i,(c=a._init)(a._payload),s)}if(lo(a))return m(r,i,a,s);if(Br(a))return h(r,i,a,s);qu(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=Wp(a,r.mode,s)).return=r,r=i),l(r)):n(r,i)}}var ec=Zu(!0),tc=Zu(!1),nc={},rc=Ns(nc),oc=Ns(nc),ic=Ns(nc);function lc(e){if(e===nc)throw Error(cr(174));return e}function ac(e,t){switch(As(ic,t),As(oc,e),As(rc,nc),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mo(null,"");break;default:t=mo(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Rs(rc),As(rc,t)}function sc(){Rs(rc),Rs(oc),Rs(ic)}function uc(e){lc(ic.current);var t=lc(rc.current),n=mo(t,e.type);t!==n&&(As(oc,e),As(rc,n))}function cc(e){oc.current===e&&(Rs(rc),Rs(oc))}var dc=Ns(0);function fc(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 pc=[];function mc(){for(var e=0;e<pc.length;e++)pc[e]._workInProgressVersionPrimary=null;pc.length=0}var hc=kr.ReactCurrentDispatcher,gc=kr.ReactCurrentBatchConfig,vc=0,bc=null,yc=null,xc=null,_c=!1,wc=!1,Ec=0,Cc=0;function kc(){throw Error(cr(321))}function Sc(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!da(e[n],t[n]))return!1;return!0}function Tc(e,t,n,r,o,i){if(vc=i,bc=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hc.current=null===e||null===e.memoizedState?cd:dd,e=n(r,o),wc){i=0;do{if(wc=!1,Ec=0,25<=i)throw Error(cr(301));i+=1,xc=yc=null,t.updateQueue=null,hc.current=fd,e=n(r,o)}while(wc)}if(hc.current=ud,t=null!==yc&&null!==yc.next,vc=0,xc=yc=bc=null,_c=!1,t)throw Error(cr(300));return e}function Nc(){var e=0!==Ec;return Ec=0,e}function Rc(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===xc?bc.memoizedState=xc=e:xc=xc.next=e,xc}function Ac(){if(null===yc){var e=bc.alternate;e=null!==e?e.memoizedState:null}else e=yc.next;var t=null===xc?bc.memoizedState:xc.next;if(null!==t)xc=t,yc=e;else{if(null===e)throw Error(cr(310));e={memoizedState:(yc=e).memoizedState,baseState:yc.baseState,baseQueue:yc.baseQueue,queue:yc.queue,next:null},null===xc?bc.memoizedState=xc=e:xc=xc.next=e}return xc}function Oc(e,t){return"function"==typeof t?t(e):t}function Mc(e){var t=Ac(),n=t.queue;if(null===n)throw Error(cr(311));n.lastRenderedReducer=e;var r=yc,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((vc&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,bc.lanes|=c,Hf|=c}u=u.next}while(null!==u&&u!==i);null===s?l=r:s.next=a,da(r,t.memoizedState)||(Ed=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,bc.lanes|=i,Hf|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Lc(e){var t=Ac(),n=t.queue;if(null===n)throw Error(cr(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);da(i,t.memoizedState)||(Ed=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Pc(){}function Ic(e,t){var n=bc,r=Ac(),o=t(),i=!da(r.memoizedState,o);if(i&&(r.memoizedState=o,Ed=!0),r=r.queue,Gc(zc.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==xc&&1&xc.memoizedState.tag){if(n.flags|=2048,Wc(9,$c.bind(null,n,r,o,t),void 0,null),null===Pf)throw Error(cr(349));0!=(30&vc)||Dc(n,t,o)}return o}function Dc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=bc.updateQueue)?(t={lastEffect:null,stores:null},bc.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function $c(e,t,n,r){t.value=n,t.getSnapshot=r,Fc(t)&&Bc(e)}function zc(e,t,n){return n((function(){Fc(t)&&Bc(e)}))}function Fc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!da(e,n)}catch(e){return!0}}function Bc(e){var t=Lu(e,1);null!==t&&ap(t,e,1,-1)}function Hc(e){var t=Rc();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Oc,lastRenderedState:e},t.queue=e,e=e.dispatch=id.bind(null,bc,e),[t.memoizedState,e]}function Wc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=bc.updateQueue)?(t={lastEffect:null,stores:null},bc.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 jc(){return Ac().memoizedState}function Kc(e,t,n,r){var o=Rc();bc.flags|=e,o.memoizedState=Wc(1|t,n,void 0,void 0===r?null:r)}function Uc(e,t,n,r){var o=Ac();r=void 0===r?null:r;var i=void 0;if(null!==yc){var l=yc.memoizedState;if(i=l.destroy,null!==r&&Sc(r,l.deps))return void(o.memoizedState=Wc(t,n,i,r))}bc.flags|=e,o.memoizedState=Wc(1|t,n,i,r)}function Yc(e,t){return Kc(8390656,8,e,t)}function Gc(e,t){return Uc(2048,8,e,t)}function Vc(e,t){return Uc(4,2,e,t)}function Qc(e,t){return Uc(4,4,e,t)}function Xc(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 qc(e,t,n){return n=null!=n?n.concat([e]):null,Uc(4,4,Xc.bind(null,t,e),n)}function Jc(){}function Zc(e,t){var n=Ac();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ed(e,t){var n=Ac();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function td(e,t,n){return 0==(21&vc)?(e.baseState&&(e.baseState=!1,Ed=!0),e.memoizedState=n):(da(n,t)||(n=xi(),bc.lanes|=n,Hf|=n,e.baseState=!0),t)}function nd(e,t){var n=Ci;Ci=0!==n&&4>n?n:4,e(!0);var r=gc.transition;gc.transition={};try{e(!1),t()}finally{Ci=n,gc.transition=r}}function rd(){return Ac().memoizedState}function od(e,t,n){var r=lp(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ld(e))ad(t,n);else if(null!==(n=Mu(e,t,n,r))){ap(n,e,r,ip()),sd(n,t,r)}}function id(e,t,n){var r=lp(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ld(e))ad(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,da(a,l)){var s=t.interleaved;return null===s?(o.next=o,Ou(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Mu(e,t,o,r))&&(ap(n,e,r,o=ip()),sd(n,t,r))}}function ld(e){var t=e.alternate;return e===bc||null!==t&&t===bc}function ad(e,t){wc=_c=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sd(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ei(e,n)}}var ud={readContext:Ru,useCallback:kc,useContext:kc,useEffect:kc,useImperativeHandle:kc,useInsertionEffect:kc,useLayoutEffect:kc,useMemo:kc,useReducer:kc,useRef:kc,useState:kc,useDebugValue:kc,useDeferredValue:kc,useTransition:kc,useMutableSource:kc,useSyncExternalStore:kc,useId:kc,unstable_isNewReconciler:!1},cd={readContext:Ru,useCallback:function(e,t){return Rc().memoizedState=[e,void 0===t?null:t],e},useContext:Ru,useEffect:Yc,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Kc(4194308,4,Xc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kc(4,2,e,t)},useMemo:function(e,t){var n=Rc();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rc();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=od.bind(null,bc,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Rc().memoizedState=e},useState:Hc,useDebugValue:Jc,useDeferredValue:function(e){return Rc().memoizedState=e},useTransition:function(){var e=Hc(!1),t=e[0];return e=nd.bind(null,e[1]),Rc().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=bc,o=Rc();if(su){if(void 0===n)throw Error(cr(407));n=n()}else{if(n=t(),null===Pf)throw Error(cr(349));0!=(30&vc)||Dc(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Yc(zc.bind(null,r,i,e),[e]),r.flags|=2048,Wc(9,$c.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Rc(),t=Pf.identifierPrefix;if(su){var n=tu;t=":"+t+"R"+(n=(eu&~(1<<32-di(eu)-1)).toString(32)+n),0<(n=Ec++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Cc++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},dd={readContext:Ru,useCallback:Zc,useContext:Ru,useEffect:Gc,useImperativeHandle:qc,useInsertionEffect:Vc,useLayoutEffect:Qc,useMemo:ed,useReducer:Mc,useRef:jc,useState:function(){return Mc(Oc)},useDebugValue:Jc,useDeferredValue:function(e){return td(Ac(),yc.memoizedState,e)},useTransition:function(){return[Mc(Oc)[0],Ac().memoizedState]},useMutableSource:Pc,useSyncExternalStore:Ic,useId:rd,unstable_isNewReconciler:!1},fd={readContext:Ru,useCallback:Zc,useContext:Ru,useEffect:Gc,useImperativeHandle:qc,useInsertionEffect:Vc,useLayoutEffect:Qc,useMemo:ed,useReducer:Lc,useRef:jc,useState:function(){return Lc(Oc)},useDebugValue:Jc,useDeferredValue:function(e){var t=Ac();return null===yc?t.memoizedState=e:td(t,yc.memoizedState,e)},useTransition:function(){return[Lc(Oc)[0],Ac().memoizedState]},useMutableSource:Pc,useSyncExternalStore:Ic,useId:rd,unstable_isNewReconciler:!1};function pd(e,t){try{var n="",r=t;do{n+=Yr(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 md(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hd(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var gd="function"==typeof WeakMap?WeakMap:Map;function vd(e,t,n){(n=$u(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qf||(Qf=!0,Xf=r),hd(0,t)},n}function bd(e,t,n){(n=$u(-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(){hd(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){hd(0,t),"function"!=typeof r&&(null===qf?qf=new Set([this]):qf.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function yd(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new gd;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=Ap.bind(null,e,t,n),t.then(e,e))}function xd(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 _d(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=$u(-1,1)).tag=2,zu(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var wd=kr.ReactCurrentOwner,Ed=!1;function Cd(e,t,n,r){t.child=null===e?tc(t,null,n,r):ec(t,e.child,n,r)}function kd(e,t,n,r,o){n=n.render;var i=t.ref;return Nu(t,o),r=Tc(e,t,n,r,i,o),n=Nc(),null===e||Ed?(su&&n&&ou(t),t.flags|=1,Cd(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vd(e,t,o))}function Sd(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||$p(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Fp(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Td(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var l=i.memoizedProps;if((n=null!==(n=n.compare)?n:fa)(l,r)&&e.ref===t.ref)return Vd(e,t,o)}return t.flags|=1,(e=zp(i,r)).ref=t.ref,e.return=t,t.child=e}function Td(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(fa(i,r)&&e.ref===t.ref){if(Ed=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Vd(e,t,o);0!=(131072&e.flags)&&(Ed=!0)}}return Ad(e,t,n,r,o)}function Nd(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},As(zf,$f),$f|=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,As(zf,$f),$f|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,As(zf,$f),$f|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,As(zf,$f),$f|=r;return Cd(e,t,o,n),t.child}function Rd(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ad(e,t,n,r,o){var i=Ds(n)?Ps:Ms.current;return i=Is(t,i),Nu(t,o),n=Tc(e,t,n,r,i,o),r=Nc(),null===e||Ed?(su&&r&&ou(t),t.flags|=1,Cd(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vd(e,t,o))}function Od(e,t,n,r,o){if(Ds(n)){var i=!0;Bs(t)}else i=!1;if(Nu(t,o),null===t.stateNode)Gd(e,t),Gu(t,n,r),Qu(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=Ru(u):u=Is(t,u=Ds(n)?Ps:Ms.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)&&Vu(t,l,r,u),Pu=!1;var f=t.memoizedState;l.state=f,Hu(t,r,l,o),s=t.memoizedState,a!==r||f!==s||Ls.current||Pu?("function"==typeof c&&(Ku(t,n,c,r),s=t.memoizedState),(a=Pu||Yu(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,Du(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:xu(t.type,a),l.props=u,d=t.pendingProps,f=l.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ru(s):s=Is(t,s=Ds(n)?Ps:Ms.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)&&Vu(t,l,r,s),Pu=!1,f=t.memoizedState,l.state=f,Hu(t,r,l,o);var m=t.memoizedState;a!==d||f!==m||Ls.current||Pu?("function"==typeof p&&(Ku(t,n,p,r),m=t.memoizedState),(u=Pu||Yu(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 Md(e,t,n,r,i,o)}function Md(e,t,n,r,o,i){Rd(e,t);var l=0!=(128&t.flags);if(!r&&!l)return o&&Hs(t,n,!1),Vd(e,t,i);r=t.stateNode,wd.current=t;var a=l&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&l?(t.child=ec(t,e.child,null,i),t.child=ec(t,null,a,i)):Cd(e,t,a,i),t.memoizedState=r.state,o&&Hs(t,n,!0),t.child}function Ld(e){var t=e.stateNode;t.pendingContext?zs(0,t.pendingContext,t.pendingContext!==t.context):t.context&&zs(0,t.context,!1),ac(e,t.containerInfo)}function Pd(e,t,n,r,o){return vu(),bu(o),t.flags|=256,Cd(e,t,n,r),t.child}var Id,Dd,$d,zd,Fd={dehydrated:null,treeContext:null,retryLane:0};function Bd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Hd(e,t,n){var r,o=t.pendingProps,i=dc.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),As(dc,1&i),null===e)return pu(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=Hp(a,o,0,null),e=Bp(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Bd(n),t.memoizedState=Fd,e):Wd(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,jd(e,t,l,r=md(Error(cr(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Hp({mode:"visible",children:r.children},o,0,null),(i=Bp(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&ec(t,e.child,null,l),t.child.memoizedState=Bd(l),t.memoizedState=Fd,i);if(0==(1&t.mode))return jd(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var a=r.dgst;return r=a,jd(e,t,l,r=md(i=Error(cr(419)),r,void 0))}if(a=0!=(l&e.childLanes),Ed||a){if(null!==(r=Pf)){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,Lu(e,o),ap(r,e,o,-1))}return xp(),jd(e,t,l,r=md(Error(cr(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Mp.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,au=ps(o.nextSibling),lu=t,su=!0,uu=null,null!==e&&(qs[Js++]=eu,qs[Js++]=tu,qs[Js++]=Zs,eu=e.id,tu=e.overflow,Zs=t),t=Wd(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=zp(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?l=zp(r,l):(l=Bp(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)?Bd(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},l.memoizedState=a,l.childLanes=e.childLanes&~n,t.memoizedState=Fd,o}return e=(l=e.child).sibling,o=zp(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 Wd(e,t){return(t=Hp({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function jd(e,t,n,r){return null!==r&&bu(r),ec(t,e.child,null,n),(e=Wd(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Kd(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Tu(e.return,t,n)}function Ud(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 Yd(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Cd(e,t,r.children,n),0!=(2&(r=dc.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&&Kd(e,n,t);else if(19===e.tag)Kd(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(As(dc,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===fc(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ud(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===fc(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ud(t,!0,n,null,i);break;case"together":Ud(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gd(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vd(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Hf|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(cr(153));if(null!==t.child){for(n=zp(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zp(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Qd(e,t){if(!su)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 Xd(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 qd(e,t,n){var r=t.pendingProps;switch(iu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xd(t),null;case 1:case 17:return Ds(t.type)&&$s(),Xd(t),null;case 3:return r=t.stateNode,sc(),Rs(Ls),Rs(Ms),mc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(hu(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==uu&&(dp(uu),uu=null))),Dd(e,t),Xd(t),null;case 5:cc(t);var o=lc(ic.current);if(n=t.type,null!==e&&null!=t.stateNode)$d(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(cr(166));return Xd(t),null}if(e=lc(rc.current),hu(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[gs]=t,r[vs]=i,e=0!=(1&t.mode),n){case"dialog":ja("cancel",r),ja("close",r);break;case"iframe":case"object":case"embed":ja("load",r);break;case"video":case"audio":for(o=0;o<Fa.length;o++)ja(Fa[o],r);break;case"source":ja("error",r);break;case"img":case"image":case"link":ja("error",r),ja("load",r);break;case"details":ja("toggle",r);break;case"input":to(r,i),ja("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ja("invalid",r);break;case"textarea":uo(r,i),ja("invalid",r)}for(var l in Eo(n,i),o=null,i)if(i.hasOwnProperty(l)){var a=i[l];"children"===l?"string"==typeof a?r.textContent!==a&&(!0!==i.suppressHydrationWarning&&ns(r.textContent,a,e),o=["children",a]):"number"==typeof a&&r.textContent!==""+a&&(!0!==i.suppressHydrationWarning&&ns(r.textContent,a,e),o=["children",""+a]):fr.hasOwnProperty(l)&&null!=a&&"onScroll"===l&&ja("scroll",r)}switch(n){case"input":qr(r),oo(r,i,!0);break;case"textarea":qr(r),fo(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=rs)}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=po(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[gs]=t,e[vs]=r,Id(e,t,!1,!1),t.stateNode=e;e:{switch(l=Co(n,r),n){case"dialog":ja("cancel",e),ja("close",e),o=r;break;case"iframe":case"object":case"embed":ja("load",e),o=r;break;case"video":case"audio":for(o=0;o<Fa.length;o++)ja(Fa[o],e);o=r;break;case"source":ja("error",e),o=r;break;case"img":case"image":case"link":ja("error",e),ja("load",e),o=r;break;case"details":ja("toggle",e),o=r;break;case"input":to(e,r),o=eo(e,r),ja("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Wr({},r,{value:void 0}),ja("invalid",e);break;case"textarea":uo(e,r),o=so(e,r),ja("invalid",e)}for(i in Eo(n,o),a=o)if(a.hasOwnProperty(i)){var s=a[i];"style"===i?_o(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&go(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&vo(e,s):"number"==typeof s&&vo(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(fr.hasOwnProperty(i)?null!=s&&"onScroll"===i&&ja("scroll",e):null!=s&&Cr(e,i,s,l))}switch(n){case"input":qr(e),oo(e,r,!1);break;case"textarea":qr(e),fo(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Qr(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ao(e,!!r.multiple,i,!1):null!=r.defaultValue&&ao(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=rs)}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 Xd(t),null;case 6:if(e&&null!=t.stateNode)zd(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(cr(166));if(n=lc(ic.current),lc(rc.current),hu(t)){if(r=t.stateNode,n=t.memoizedProps,r[gs]=t,(i=r.nodeValue!==n)&&null!==(e=lu))switch(e.tag){case 3:ns(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ns(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[gs]=t,t.stateNode=r}return Xd(t),null;case 13:if(Rs(dc),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(su&&null!==au&&0!=(1&t.mode)&&0==(128&t.flags))gu(),vu(),t.flags|=98560,i=!1;else if(i=hu(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(cr(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(cr(317));i[gs]=t}else vu(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Xd(t),i=!1}else null!==uu&&(dp(uu),uu=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&dc.current)?0===Ff&&(Ff=3):xp())),null!==t.updateQueue&&(t.flags|=4),Xd(t),null);case 4:return sc(),Dd(e,t),null===e&&Ya(t.stateNode.containerInfo),Xd(t),null;case 10:return Su(t.type._context),Xd(t),null;case 19:if(Rs(dc),null===(i=t.memoizedState))return Xd(t),null;if(r=0!=(128&t.flags),null===(l=i.rendering))if(r)Qd(i,!1);else{if(0!==Ff||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=fc(e))){for(t.flags|=128,Qd(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 As(dc,1&dc.current|2),t.child}e=e.sibling}null!==i.tail&&ni()>Gf&&(t.flags|=128,r=!0,Qd(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=fc(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Qd(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!su)return Xd(t),null}else 2*ni()-i.renderingStartTime>Gf&&1073741824!==n&&(t.flags|=128,r=!0,Qd(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=ni(),t.sibling=null,n=dc.current,As(dc,r?1&n|2:1&n),t):(Xd(t),null);case 22:case 23:return gp(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&$f)&&(Xd(t),6&t.subtreeFlags&&(t.flags|=8192)):Xd(t),null;case 24:case 25:return null}throw Error(cr(156,t.tag))}function Jd(e,t){switch(iu(t),t.tag){case 1:return Ds(t.type)&&$s(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return sc(),Rs(Ls),Rs(Ms),mc(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return cc(t),null;case 13:if(Rs(dc),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(cr(340));vu()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Rs(dc),null;case 4:return sc(),null;case 10:return Su(t.type._context),null;case 22:case 23:return gp(),null;default:return null}}Id=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}},Dd=function(){},$d=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,lc(rc.current);var i,l=null;switch(n){case"input":o=eo(e,o),r=eo(e,r),l=[];break;case"select":o=Wr({},o,{value:void 0}),r=Wr({},r,{value:void 0}),l=[];break;case"textarea":o=so(e,o),r=so(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=rs)}for(u in Eo(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&&(fr.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&&(fr.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&ja("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)}},zd=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zd=!1,ef=!1,tf="function"==typeof WeakSet?WeakSet:Set,nf=null;function rf(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Rp(e,t,n)}else n.current=null}function of(e,t,n){try{n()}catch(n){Rp(e,t,n)}}var lf=!1;function af(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&&of(t,n,i)}o=o.next}while(o!==r)}}function sf(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 uf(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 cf(e){var t=e.alternate;null!==t&&(e.alternate=null,cf(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[gs],delete t[vs],delete t[ys],delete t[xs],delete t[_s])),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 df(e){return 5===e.tag||3===e.tag||4===e.tag}function ff(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||df(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 pf(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=rs));else if(4!==r&&null!==(e=e.child))for(pf(e,t,n),e=e.sibling;null!==e;)pf(e,t,n),e=e.sibling}function mf(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(mf(e,t,n),e=e.sibling;null!==e;)mf(e,t,n),e=e.sibling}var hf=null,gf=!1;function vf(e,t,n){for(n=n.child;null!==n;)bf(e,t,n),n=n.sibling}function bf(e,t,n){if(ci&&"function"==typeof ci.onCommitFiberUnmount)try{ci.onCommitFiberUnmount(ui,n)}catch(e){}switch(n.tag){case 5:ef||rf(n,t);case 6:var r=hf,o=gf;hf=null,vf(e,t,n),gf=o,null!==(hf=r)&&(gf?(e=hf,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):hf.removeChild(n.stateNode));break;case 18:null!==hf&&(gf?(e=hf,n=n.stateNode,8===e.nodeType?fs(e.parentNode,n):1===e.nodeType&&fs(e,n),Gi(e)):fs(hf,n.stateNode));break;case 4:r=hf,o=gf,hf=n.stateNode.containerInfo,gf=!0,vf(e,t,n),hf=r,gf=o;break;case 0:case 11:case 14:case 15:if(!ef&&(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))&&of(n,t,l),o=o.next}while(o!==r)}vf(e,t,n);break;case 1:if(!ef&&(rf(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Rp(n,t,e)}vf(e,t,n);break;case 21:vf(e,t,n);break;case 22:1&n.mode?(ef=(r=ef)||null!==n.memoizedState,vf(e,t,n),ef=r):vf(e,t,n);break;default:vf(e,t,n)}}function yf(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new tf),t.forEach((function(t){var r=Lp.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function xf(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:hf=a.stateNode,gf=!1;break e;case 3:case 4:hf=a.stateNode.containerInfo,gf=!0;break e}a=a.return}if(null===hf)throw Error(cr(160));bf(i,l,o),hf=null,gf=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Rp(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)_f(t,e),t=t.sibling}function _f(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xf(t,e),wf(e),4&r){try{af(3,e,e.return),sf(3,e)}catch(t){Rp(e,e.return,t)}try{af(5,e,e.return)}catch(t){Rp(e,e.return,t)}}break;case 1:xf(t,e),wf(e),512&r&&null!==n&&rf(n,n.return);break;case 5:if(xf(t,e),wf(e),512&r&&null!==n&&rf(n,n.return),32&e.flags){var o=e.stateNode;try{vo(o,"")}catch(t){Rp(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&&no(o,i),Co(a,l);var u=Co(a,i);for(l=0;l<s.length;l+=2){var c=s[l],d=s[l+1];"style"===c?_o(o,d):"dangerouslySetInnerHTML"===c?go(o,d):"children"===c?vo(o,d):Cr(o,c,d,u)}switch(a){case"input":ro(o,i);break;case"textarea":co(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?ao(o,!!i.multiple,p,!1):f!==!!i.multiple&&(null!=i.defaultValue?ao(o,!!i.multiple,i.defaultValue,!0):ao(o,!!i.multiple,i.multiple?[]:"",!1))}o[vs]=i}catch(t){Rp(e,e.return,t)}}break;case 6:if(xf(t,e),wf(e),4&r){if(null===e.stateNode)throw Error(cr(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Rp(e,e.return,t)}}break;case 3:if(xf(t,e),wf(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Gi(t.containerInfo)}catch(t){Rp(e,e.return,t)}break;case 4:default:xf(t,e),wf(e);break;case 13:xf(t,e),wf(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Yf=ni())),4&r&&yf(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(ef=(u=ef)||c,xf(t,e),ef=u):xf(t,e),wf(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(nf=e,c=e.child;null!==c;){for(d=nf=c;null!==nf;){switch(p=(f=nf).child,f.tag){case 0:case 11:case 14:case 15:af(4,f,f.return);break;case 1:rf(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){Rp(r,n,e)}}break;case 5:rf(f,f.return);break;case 22:if(null!==f.memoizedState){Sf(d);continue}}null!==p?(p.return=f,nf=p):Sf(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=xo("display",l))}catch(t){Rp(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){Rp(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:xf(t,e),wf(e),4&r&&yf(e);case 21:}}function wf(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(df(n)){var r=n;break e}n=n.return}throw Error(cr(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(vo(o,""),r.flags&=-33),mf(e,ff(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;pf(e,ff(e),i);break;default:throw Error(cr(161))}}catch(t){Rp(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ef(e,t,n){nf=e,Cf(e)}function Cf(e,t,n){for(var r=0!=(1&e.mode);null!==nf;){var o=nf,i=o.child;if(22===o.tag&&r){var l=null!==o.memoizedState||Zd;if(!l){var a=o.alternate,s=null!==a&&null!==a.memoizedState||ef;a=Zd;var u=ef;if(Zd=l,(ef=s)&&!u)for(nf=o;null!==nf;)s=(l=nf).child,22===l.tag&&null!==l.memoizedState?Tf(o):null!==s?(s.return=l,nf=s):Tf(o);for(;null!==i;)nf=i,Cf(i),i=i.sibling;nf=o,Zd=a,ef=u}kf(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,nf=i):kf(e)}}function kf(e){for(;null!==nf;){var t=nf;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:ef||sf(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!ef)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:xu(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Wu(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}Wu(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&&Gi(d)}}}break;default:throw Error(cr(163))}ef||512&t.flags&&uf(t)}catch(e){Rp(t,t.return,e)}}if(t===e){nf=null;break}if(null!==(n=t.sibling)){n.return=t.return,nf=n;break}nf=t.return}}function Sf(e){for(;null!==nf;){var t=nf;if(t===e){nf=null;break}var n=t.sibling;if(null!==n){n.return=t.return,nf=n;break}nf=t.return}}function Tf(e){for(;null!==nf;){var t=nf;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{sf(4,t)}catch(e){Rp(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Rp(t,o,e)}}var i=t.return;try{uf(t)}catch(e){Rp(t,i,e)}break;case 5:var l=t.return;try{uf(t)}catch(e){Rp(t,l,e)}}}catch(e){Rp(t,t.return,e)}if(t===e){nf=null;break}var a=t.sibling;if(null!==a){a.return=t.return,nf=a;break}nf=t.return}}var Nf,Rf=Math.ceil,Af=kr.ReactCurrentDispatcher,Of=kr.ReactCurrentOwner,Mf=kr.ReactCurrentBatchConfig,Lf=0,Pf=null,If=null,Df=0,$f=0,zf=Ns(0),Ff=0,Bf=null,Hf=0,Wf=0,jf=0,Kf=null,Uf=null,Yf=0,Gf=1/0,Vf=null,Qf=!1,Xf=null,qf=null,Jf=!1,Zf=null,ep=0,tp=0,np=null,rp=-1,op=0;function ip(){return 0!=(6&Lf)?ni():-1!==rp?rp:rp=ni()}function lp(e){return 0==(1&e.mode)?1:0!=(2&Lf)&&0!==Df?Df&-Df:null!==yu.transition?(0===op&&(op=xi()),op):0!==(e=Ci)?e:e=void 0===(e=window.event)?16:tl(e.type)}function ap(e,t,n,r){if(50<tp)throw tp=0,np=null,Error(cr(185));wi(e,n,r),0!=(2&Lf)&&e===Pf||(e===Pf&&(0==(2&Lf)&&(Wf|=n),4===Ff&&fp(e,Df)),sp(e,r),1===n&&0===Lf&&0==(1&t.mode)&&(Gf=ni()+500,js&&Ys()))}function sp(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-di(i),a=1<<l,s=o[l];-1===s?0!=(a&n)&&0==(a&r)||(o[l]=bi(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=vi(e,e===Pf?Df:0);if(0===r)null!==n&&Zo(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Zo(n),1===t)0===e.tag?function(e){js=!0,Us(e)}(pp.bind(null,e)):Us(pp.bind(null,e)),cs((function(){0==(6&Lf)&&Ys()})),n=null;else{switch(ki(r)){case 1:n=oi;break;case 4:n=ii;break;case 16:default:n=li;break;case 536870912:n=si}n=Pp(n,up.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function up(e,t){if(rp=-1,op=0,0!=(6&Lf))throw Error(cr(327));var n=e.callbackNode;if(Tp()&&e.callbackNode!==n)return null;var r=vi(e,e===Pf?Df:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=_p(e,r);else{t=r;var o=Lf;Lf|=2;var i=yp();for(Pf===e&&Df===t||(Vf=null,Gf=ni()+500,vp(e,t));;)try{Ep();break}catch(t){bp(e,t)}ku(),Af.current=i,Lf=o,null!==If?t=0:(Pf=null,Df=0,t=Ff)}if(0!==t){if(2===t&&(0!==(o=yi(e))&&(r=o,t=cp(e,o))),1===t)throw n=Bf,vp(e,0),fp(e,r),sp(e,ni()),n;if(6===t)fp(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(!da(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=_p(e,r))&&(0!==(i=yi(e))&&(r=i,t=cp(e,i))),1===t))throw n=Bf,vp(e,0),fp(e,r),sp(e,ni()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(cr(345));case 2:case 5:Sp(e,Uf,Vf);break;case 3:if(fp(e,r),(130023424&r)===r&&10<(t=Yf+500-ni())){if(0!==vi(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ip(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=as(Sp.bind(null,e,Uf,Vf),t);break}Sp(e,Uf,Vf);break;case 4:if(fp(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-di(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=ni()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Rf(r/1960))-r)){e.timeoutHandle=as(Sp.bind(null,e,Uf,Vf),r);break}Sp(e,Uf,Vf);break;default:throw Error(cr(329))}}}return sp(e,ni()),e.callbackNode===n?up.bind(null,e):null}function cp(e,t){var n=Kf;return e.current.memoizedState.isDehydrated&&(vp(e,t).flags|=256),2!==(e=_p(e,t))&&(t=Uf,Uf=n,null!==t&&dp(t)),e}function dp(e){null===Uf?Uf=e:Uf.push.apply(Uf,e)}function fp(e,t){for(t&=~jf,t&=~Wf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-di(t),r=1<<n;e[n]=-1,t&=~r}}function pp(e){if(0!=(6&Lf))throw Error(cr(327));Tp();var t=vi(e,0);if(0==(1&t))return sp(e,ni()),null;var n=_p(e,t);if(0!==e.tag&&2===n){var r=yi(e);0!==r&&(t=r,n=cp(e,r))}if(1===n)throw n=Bf,vp(e,0),fp(e,t),sp(e,ni()),n;if(6===n)throw Error(cr(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sp(e,Uf,Vf),sp(e,ni()),null}function mp(e,t){var n=Lf;Lf|=1;try{return e(t)}finally{0===(Lf=n)&&(Gf=ni()+500,js&&Ys())}}function hp(e){null!==Zf&&0===Zf.tag&&0==(6&Lf)&&Tp();var t=Lf;Lf|=1;var n=Mf.transition,r=Ci;try{if(Mf.transition=null,Ci=1,e)return e()}finally{Ci=r,Mf.transition=n,0==(6&(Lf=t))&&Ys()}}function gp(){$f=zf.current,Rs(zf)}function vp(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ss(n)),null!==If)for(n=If.return;null!==n;){var r=n;switch(iu(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&$s();break;case 3:sc(),Rs(Ls),Rs(Ms),mc();break;case 5:cc(r);break;case 4:sc();break;case 13:case 19:Rs(dc);break;case 10:Su(r.type._context);break;case 22:case 23:gp()}n=n.return}if(Pf=e,If=e=zp(e.current,null),Df=$f=t,Ff=0,Bf=null,jf=Wf=Hf=0,Uf=Kf=null,null!==Au){for(t=0;t<Au.length;t++)if(null!==(r=(n=Au[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}Au=null}return e}function bp(e,t){for(;;){var n=If;try{if(ku(),hc.current=ud,_c){for(var r=bc.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}_c=!1}if(vc=0,xc=yc=bc=null,wc=!1,Ec=0,Of.current=null,null===n||null===n.return){Ff=1,Bf=t,If=null;break}e:{var i=e,l=n.return,a=n,s=t;if(t=Df,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=xd(l);if(null!==p){p.flags&=-257,_d(p,l,a,0,t),1&p.mode&&yd(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)){yd(i,u,t),xp();break e}s=Error(cr(426))}else if(su&&1&a.mode){var g=xd(l);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),_d(g,l,a,0,t),bu(pd(s,a));break e}}i=s=pd(s,a),4!==Ff&&(Ff=2),null===Kf?Kf=[i]:Kf.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Bu(i,vd(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===qf||!qf.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Bu(i,bd(i,a,t));break e}}i=i.return}while(null!==i)}kp(n)}catch(e){t=e,If===n&&null!==n&&(If=n=n.return);continue}break}}function yp(){var e=Af.current;return Af.current=ud,null===e?ud:e}function xp(){0!==Ff&&3!==Ff&&2!==Ff||(Ff=4),null===Pf||0==(268435455&Hf)&&0==(268435455&Wf)||fp(Pf,Df)}function _p(e,t){var n=Lf;Lf|=2;var r=yp();for(Pf===e&&Df===t||(Vf=null,vp(e,t));;)try{wp();break}catch(t){bp(e,t)}if(ku(),Lf=n,Af.current=r,null!==If)throw Error(cr(261));return Pf=null,Df=0,Ff}function wp(){for(;null!==If;)Cp(If)}function Ep(){for(;null!==If&&!ei();)Cp(If)}function Cp(e){var t=Nf(e.alternate,e,$f);e.memoizedProps=e.pendingProps,null===t?kp(e):If=t,Of.current=null}function kp(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=qd(n,t,$f)))return void(If=n)}else{if(null!==(n=Jd(n,t)))return n.flags&=32767,void(If=n);if(null===e)return Ff=6,void(If=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(If=t);If=t=e}while(null!==t);0===Ff&&(Ff=5)}function Sp(e,t,n){var r=Ci,o=Mf.transition;try{Mf.transition=null,Ci=1,function(e,t,n,r){do{Tp()}while(null!==Zf);if(0!=(6&Lf))throw Error(cr(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(cr(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-di(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Pf&&(If=Pf=null,Df=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Jf||(Jf=!0,Pp(li,(function(){return Tp(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Mf.transition,Mf.transition=null;var l=Ci;Ci=1;var a=Lf;Lf|=4,Of.current=null,function(e,t){if(os=Qi,va(e=ga())){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(is={focusedElem:e,selectionRange:n},Qi=!1,nf=t;null!==nf;)if(e=(t=nf).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,nf=e;else for(;null!==nf;){t=nf;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:xu(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(cr(163))}}catch(e){Rp(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,nf=e;break}nf=t.return}m=lf,lf=!1}(e,n),_f(n,e),ba(is),Qi=!!os,is=os=null,e.current=n,Ef(n),ti(),Lf=a,Ci=l,Mf.transition=i}else e.current=n;if(Jf&&(Jf=!1,Zf=e,ep=o),i=e.pendingLanes,0===i&&(qf=null),function(e){if(ci&&"function"==typeof ci.onCommitFiberRoot)try{ci.onCommitFiberRoot(ui,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),sp(e,ni()),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(Qf)throw Qf=!1,e=Xf,Xf=null,e;0!=(1&ep)&&0!==e.tag&&Tp(),i=e.pendingLanes,0!=(1&i)?e===np?tp++:(tp=0,np=e):tp=0,Ys()}(e,t,n,r)}finally{Mf.transition=o,Ci=r}return null}function Tp(){if(null!==Zf){var e=ki(ep),t=Mf.transition,n=Ci;try{if(Mf.transition=null,Ci=16>e?16:e,null===Zf)var r=!1;else{if(e=Zf,Zf=null,ep=0,0!=(6&Lf))throw Error(cr(331));var o=Lf;for(Lf|=4,nf=e.current;null!==nf;){var i=nf,l=i.child;if(0!=(16&nf.flags)){var a=i.deletions;if(null!==a){for(var s=0;s<a.length;s++){var u=a[s];for(nf=u;null!==nf;){var c=nf;switch(c.tag){case 0:case 11:case 15:af(8,c,i)}var d=c.child;if(null!==d)d.return=c,nf=d;else for(;null!==nf;){var f=(c=nf).sibling,p=c.return;if(cf(c),c===u){nf=null;break}if(null!==f){f.return=p,nf=f;break}nf=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)}}nf=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,nf=l;else e:for(;null!==nf;){if(0!=(2048&(i=nf).flags))switch(i.tag){case 0:case 11:case 15:af(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,nf=v;break e}nf=i.return}}var b=e.current;for(nf=b;null!==nf;){var y=(l=nf).child;if(0!=(2064&l.subtreeFlags)&&null!==y)y.return=l,nf=y;else e:for(l=b;null!==nf;){if(0!=(2048&(a=nf).flags))try{switch(a.tag){case 0:case 11:case 15:sf(9,a)}}catch(e){Rp(a,a.return,e)}if(a===l){nf=null;break e}var x=a.sibling;if(null!==x){x.return=a.return,nf=x;break e}nf=a.return}}if(Lf=o,Ys(),ci&&"function"==typeof ci.onPostCommitFiberRoot)try{ci.onPostCommitFiberRoot(ui,e)}catch(e){}r=!0}return r}finally{Ci=n,Mf.transition=t}}return!1}function Np(e,t,n){e=zu(e,t=vd(0,t=pd(n,t),1),1),t=ip(),null!==e&&(wi(e,1,t),sp(e,t))}function Rp(e,t,n){if(3===e.tag)Np(e,e,n);else for(;null!==t;){if(3===t.tag){Np(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qf||!qf.has(r))){t=zu(t,e=bd(t,e=pd(n,e),1),1),e=ip(),null!==t&&(wi(t,1,e),sp(t,e));break}}t=t.return}}function Ap(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ip(),e.pingedLanes|=e.suspendedLanes&n,Pf===e&&(Df&n)===n&&(4===Ff||3===Ff&&(130023424&Df)===Df&&500>ni()-Yf?vp(e,0):jf|=n),sp(e,t)}function Op(e,t){0===t&&(0==(1&e.mode)?t=1:(t=hi,0==(130023424&(hi<<=1))&&(hi=4194304)));var n=ip();null!==(e=Lu(e,t))&&(wi(e,t,n),sp(e,n))}function Mp(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Op(e,n)}function Lp(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(cr(314))}null!==r&&r.delete(t),Op(e,n)}function Pp(e,t){return Jo(e,t)}function Ip(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 Dp(e,t,n,r){return new Ip(e,t,n,r)}function $p(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zp(e,t){var n=e.alternate;return null===n?((n=Dp(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 Fp(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)$p(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case Nr:return Bp(n.children,o,i,t);case Rr:l=8,o|=8;break;case Ar:return(e=Dp(12,n,t,2|o)).elementType=Ar,e.lanes=i,e;case Pr:return(e=Dp(13,n,t,o)).elementType=Pr,e.lanes=i,e;case Ir:return(e=Dp(19,n,t,o)).elementType=Ir,e.lanes=i,e;case zr:return Hp(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Or:l=10;break e;case Mr:l=9;break e;case Lr:l=11;break e;case Dr:l=14;break e;case $r:l=16,r=null;break e}throw Error(cr(130,null==e?e:typeof e,""))}return(t=Dp(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Bp(e,t,n,r){return(e=Dp(7,e,r,t)).lanes=n,e}function Hp(e,t,n,r){return(e=Dp(22,e,r,t)).elementType=zr,e.lanes=n,e.stateNode={isHidden:!1},e}function Wp(e,t,n){return(e=Dp(6,e,null,t)).lanes=n,e}function jp(e,t,n){return(t=Dp(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kp(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=_i(0),this.expirationTimes=_i(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_i(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Up(e,t,n,r,o,i,l,a,s){return e=new Kp(e,t,n,a,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Dp(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Iu(i),e}function Yp(e){if(!e)return Os;e:{if(Go(e=e._reactInternals)!==e||1!==e.tag)throw Error(cr(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ds(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(cr(171))}if(1===e.tag){var n=e.type;if(Ds(n))return Fs(e,n,t)}return t}function Gp(e,t,n,r,o,i,l,a,s){return(e=Up(n,r,!0,e,0,i,0,a,s)).context=Yp(null),n=e.current,(i=$u(r=ip(),o=lp(n))).callback=null!=t?t:null,zu(n,i,o),e.current.lanes=o,wi(e,o,r),sp(e,r),e}function Vp(e,t,n,r){var o=t.current,i=ip(),l=lp(o);return n=Yp(n),null===t.context?t.context=n:t.pendingContext=n,(t=$u(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zu(o,t,l))&&(ap(e,o,l,i),Fu(e,o,l)),l}function Qp(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Xp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qp(e,t){Xp(e,t),(e=e.alternate)&&Xp(e,t)}Nf=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ls.current)Ed=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Ed=!1,function(e,t,n){switch(t.tag){case 3:Ld(t),vu();break;case 5:uc(t);break;case 1:Ds(t.type)&&Bs(t);break;case 4:ac(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;As(_u,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(As(dc,1&dc.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Hd(e,t,n):(As(dc,1&dc.current),null!==(e=Vd(e,t,n))?e.sibling:null);As(dc,1&dc.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Yd(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),As(dc,dc.current),r)break;return null;case 22:case 23:return t.lanes=0,Nd(e,t,n)}return Vd(e,t,n)}(e,t,n);Ed=0!=(131072&e.flags)}else Ed=!1,su&&0!=(1048576&t.flags)&&ru(t,Xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gd(e,t),e=t.pendingProps;var o=Is(t,Ms.current);Nu(t,n),o=Tc(null,t,r,e,o,n);var i=Nc();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,Ds(r)?(i=!0,Bs(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Iu(t),o.updater=Uu,t.stateNode=o,o._reactInternals=t,Qu(t,r,e,n),t=Md(null,t,r,!0,i,n)):(t.tag=0,su&&i&&ou(t),Cd(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gd(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return $p(e)?1:0;if(null!=e){if((e=e.$$typeof)===Lr)return 11;if(e===Dr)return 14}return 2}(r),e=xu(r,e),o){case 0:t=Ad(null,t,r,e,n);break e;case 1:t=Od(null,t,r,e,n);break e;case 11:t=kd(null,t,r,e,n);break e;case 14:t=Sd(null,t,r,xu(r.type,e),n);break e}throw Error(cr(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ad(e,t,r,o=t.elementType===r?o:xu(r,o),n);case 1:return r=t.type,o=t.pendingProps,Od(e,t,r,o=t.elementType===r?o:xu(r,o),n);case 3:e:{if(Ld(t),null===e)throw Error(cr(387));r=t.pendingProps,o=(i=t.memoizedState).element,Du(e,t),Hu(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=Pd(e,t,r,n,o=pd(Error(cr(423)),t));break e}if(r!==o){t=Pd(e,t,r,n,o=pd(Error(cr(424)),t));break e}for(au=ps(t.stateNode.containerInfo.firstChild),lu=t,su=!0,uu=null,n=tc(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(vu(),r===o){t=Vd(e,t,n);break e}Cd(e,t,r,n)}t=t.child}return t;case 5:return uc(t),null===e&&pu(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,ls(r,o)?l=null:null!==i&&ls(r,i)&&(t.flags|=32),Rd(e,t),Cd(e,t,l,n),t.child;case 6:return null===e&&pu(t),null;case 13:return Hd(e,t,n);case 4:return ac(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ec(t,null,r,n):Cd(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,kd(e,t,r,o=t.elementType===r?o:xu(r,o),n);case 7:return Cd(e,t,t.pendingProps,n),t.child;case 8:case 12:return Cd(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,As(_u,r._currentValue),r._currentValue=l,null!==i)if(da(i.value,l)){if(i.children===o.children&&!Ls.current){t=Vd(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=$u(-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),Tu(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(cr(341));l.lanes|=n,null!==(a=l.alternate)&&(a.lanes|=n),Tu(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}Cd(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Nu(t,n),r=r(o=Ru(o)),t.flags|=1,Cd(e,t,r,n),t.child;case 14:return o=xu(r=t.type,t.pendingProps),Sd(e,t,r,o=xu(r.type,o),n);case 15:return Td(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xu(r,o),Gd(e,t),t.tag=1,Ds(r)?(e=!0,Bs(t)):e=!1,Nu(t,n),Gu(t,r,o),Qu(t,r,o,n),Md(null,t,r,!0,e,n);case 19:return Yd(e,t,n);case 22:return Nd(e,t,n)}throw Error(cr(156,t.tag))};var Jp="function"==typeof reportError?reportError:function(e){console.error(e)};function Zp(e){this._internalRoot=e}function em(e){this._internalRoot=e}function tm(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function nm(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rm(){}function om(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=Qp(l);a.call(e)}}Vp(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=Qp(l);i.call(e)}}var l=Gp(t,r,e,0,null,!1,0,"",rm);return e._reactRootContainer=l,e[bs]=l.current,Ya(8===e.nodeType?e.parentNode:e),hp(),l}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=Qp(s);a.call(e)}}var s=Up(e,0,!1,null,0,!1,0,"",rm);return e._reactRootContainer=s,e[bs]=s.current,Ya(8===e.nodeType?e.parentNode:e),hp((function(){Vp(t,s,n,r)})),s}(n,t,e,o,r);return Qp(l)}em.prototype.render=Zp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(cr(409));Vp(e,t,null,null)},em.prototype.unmount=Zp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;hp((function(){Vp(null,e,null,null)})),t[bs]=null}},em.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ri();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zi.length&&0!==t&&t<zi[n].priority;n++);zi.splice(n,0,e),0===n&&Wi(e)}},Si=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gi(t.pendingLanes);0!==n&&(Ei(t,1|n),sp(t,ni()),0==(6&Lf)&&(Gf=ni()+500,Ys()))}break;case 13:hp((function(){var t=Lu(e,1);if(null!==t){var n=ip();ap(t,e,1,n)}})),qp(e,1)}},Ti=function(e){if(13===e.tag){var t=Lu(e,134217728);if(null!==t)ap(t,e,134217728,ip());qp(e,134217728)}},Ni=function(e){if(13===e.tag){var t=lp(e),n=Lu(e,t);if(null!==n)ap(n,e,t,ip());qp(e,t)}},Ri=function(){return Ci},Ai=function(e,t){var n=Ci;try{return Ci=e,t()}finally{Ci=n}},To=function(e,t,n){switch(t){case"input":if(ro(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=ks(r);if(!o)throw Error(cr(90));Jr(r),ro(r,o)}}}break;case"textarea":co(e,n);break;case"select":null!=(t=n.value)&&ao(e,!!n.multiple,t,!1)}},Lo=mp,Po=hp;var im={usingClientEntryPoint:!1,Events:[Es,Cs,ks,Oo,Mo,mp]},lm={findFiberByHostInstance:ws,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},am={bundleType:lm.bundleType,version:lm.version,rendererPackageName:lm.rendererPackageName,rendererConfig:lm.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:kr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Xo(e))?null:e.stateNode},findFiberByHostInstance:lm.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 sm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sm.isDisabled&&sm.supportsFiber)try{ui=sm.inject(am),ci=sm}catch($$){}}or.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=im,or.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!tm(t))throw Error(cr(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Tr,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},or.createRoot=function(e,t){if(!tm(e))throw Error(cr(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=Up(e,1,!1,null,0,n,0,r,o),e[bs]=t.current,Ya(8===e.nodeType?e.parentNode:e),new Zp(t)},or.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(cr(188));throw e=Object.keys(e).join(","),Error(cr(268,e))}return e=null===(e=Xo(t))?null:e.stateNode},or.flushSync=function(e){return hp(e)},or.hydrate=function(e,t,n){if(!nm(t))throw Error(cr(200));return om(null,e,t,!0,n)},or.hydrateRoot=function(e,t,n){if(!tm(e))throw Error(cr(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=Gp(t,null,e,1,null!=n?n:null,o,0,i,l),e[bs]=t.current,Ya(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 em(t)},or.render=function(e,t,n){if(!nm(t))throw Error(cr(200));return om(null,e,t,!1,n)},or.unmountComponentAtNode=function(e){if(!nm(e))throw Error(cr(40));return!!e._reactRootContainer&&(hp((function(){om(null,null,e,!1,(function(){e._reactRootContainer=null,e[bs]=null}))})),!0)},or.unstable_batchedUpdates=mp,or.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nm(n))throw Error(cr(200));if(null==e||void 0===e._reactInternals)throw Error(cr(38));return om(e,t,n,!1,r)},or.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)}}(),rr.exports=or;var um,cm=rr.exports,dm=d(cm),fm=cm;um=fm.createRoot,fm.hydrateRoot;const pm=X.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 mm={},hm={},gm={},vm={};let 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={},Km={},Um={},Ym={},Gm={},Vm={},Qm={},Xm={},qm={},Jm={};function Zm(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 eh="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,th=eh&&"documentMode"in document?document.documentMode:null,nh=eh&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),rh=eh&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),oh=!(!eh||!("InputEvent"in window)||th)&&"getTargetRanges"in new window.InputEvent("input"),ih=eh&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),lh=eh&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ah=eh&&/^(?=.*Chrome).*/i.test(navigator.userAgent),sh=eh&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!ah,uh=ih||lh||sh?" ":"",ch=rh?" ":uh,dh=/^[^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]/,fh=/^[^\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]/,ph={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},mh={directionless:1,unmergeable:2},hh={center:2,end:6,justify:4,left:1,right:3,start:5},gh={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},vh={normal:0,segmented:2,token:1},bh={0:"normal",2:"segmented",1:"token"},yh=!1,xh=0;function _h(e){xh=e.timeStamp}function wh(e,t,n){return t.__lexicalLineBreak===e||void 0!==e[`__lexicalKey_${n._key}`]}function Eh(e,t,n){yh=!0;let r=100<performance.now()-xh;try{Hb(e,(()=>{let o=gb()||function(e){return e.getEditorState().read((()=>{let e=gb();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=Gh(m,a);if(!(null===h&&m!==l||jb(h)))if("characterData"===p){if(f=r&&Uv(h))e:{p=m;var g=h;if(eb(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=wg(e._window))&&g.anchorNode===m&&(f=g.anchorOffset,p=g.focusOffset),null!==(m=m.nodeValue)&&rg(h,m,f,p,!1))}else if("childList"===p){for(u=!0,p=f.addedNodes,g=0;g<p.length;g++){var b=Yh(v=p[g]),y=v.parentNode;null==y||v===s||null!==b||"BR"===v.nodeName&&wh(v,y,e)||(rh&&(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&&wh(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(Ub(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 Uv(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||wh(h,s,e)||m.removeChild(h);n.takeRecords()}null!==o&&(u&&(o.dirty=!0,qh(o)),rh&&ug(e)&&o.insertRawText(c))}))}finally{yh=!1}}function Ch(e){let t=e._observer;if(null!==t){Eh(e,t.takeRecords(),t)}}function kh(e){0===xh&&mg(e).addEventListener("textInput",_h,!0),e._observer=new MutationObserver(((t,n)=>{Eh(e,t,n)}))}function Sh(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 Th(e,t){let n=e.mergeWithSibling(t),r=Mb()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Nh(e){if(""===e.__text&&e.isSimpleText()&&!e.isUnmergeable())e.remove();else{for(var t;null!==(t=e.getPreviousSibling())&&Uv(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){Sh(t,e)&&(e=Th(t,e));break}t.remove()}for(var n;null!==(n=e.getNextSibling())&&Uv(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){Sh(e,n)&&Th(e,n);break}n.remove()}}}function Rh(e){return Ah(e.anchor),Ah(e.focus),e}function Ah(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),Uv(t)){e.set(t.__key,n?t.getTextContentSize():0,"text");break}if(!Ub(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element")}}let Oh=1,Mh="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function Lh(e){let t=document.activeElement;if(null===t)return!1;let n=t.nodeName;return jb(Gh(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==t.__lexicalEditor)}function Ph(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!Lh(t)&&Ih(t)===e}catch(e){return!1}}function Ih(e){for(;null!=e;){let t=e.__lexicalEditor;if(null!=t)return t;e=fg(e)}return null}function Dh(e){return e.isToken()||e.isSegmented()}function $h(e){for(;null!=e;){if(3===e.nodeType)return e;e=e.firstChild}return null}function zh(e,t,n){return e&(t=ph[t])&&(null===n||0==(n&t))?e^t:null===n||n&t?e|t:e}function Fh(e){return Uv(e)||Rv(e)||jb(e)}function Bh(e,t){if(null!=t)e.__key=t;else{Ab(),99<Tb&&Zm(14),t=Mb();var n=Ob(),r=""+Oh++;n._nodeMap.set(r,e),Ub(e)?t._dirtyElements.set(r,!0):t._dirtyLeaves.add(r),t._cloneNotNeeded.add(r),t._dirtyType=1,e.__key=r}}function Hh(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 Wh(e){99<Tb&&Zm(14);var t=e.getLatest(),n=t.__parent,r=Ob();let o=Mb(),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,Ub(e)?r.set(t,!0):o._dirtyLeaves.add(t)}function jh(e){Ab();var t=Mb();let n=t._compositionKey;e!==n&&(t._compositionKey=e,null!==n&&(null!==(t=Uh(n))&&t.getWritable()),null!==e&&(null!==(e=Uh(e))&&e.getWritable()))}function Kh(){return Rb()?null:Mb()._compositionKey}function Uh(e,t){return void 0===(e=(t||Ob())._nodeMap.get(e))?null:e}function Yh(e,t){return void 0!==(e=e[`__lexicalKey_${Mb()._key}`])?Uh(e,t):null}function Gh(e,t){for(;null!=e;){let n=Yh(e,t);if(null!==n)return n;e=fg(e)}return null}function Vh(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t}function Qh(e){return e.read((()=>Xh().getTextContent()))}function Xh(){return Ob()._nodeMap.get("root")}function qh(e){Ab();let t=Ob();null!==e&&(e.dirty=!0,e._cachedNodes=null),t._selection=e}function Jh(e){var t,n=Mb();e:{for(t=e;null!=t;){let e=t[`__lexicalKey_${n._key}`];if(void 0!==e){t=e;break e}t=fg(t)}t=null}return null===t?e===(n=n.getRootElement())?Uh("root"):null:Uh(t)}function Zh(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function eg(e){let t=[];for(;null!==e;)t.push(e),e=e._parentEditor;return t}function tg(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function ng(e,t,n){if(null!==(t=wg(t._window))){var r=t.anchorNode,{anchorOffset:o,focusOffset:i}=t;if(null!==r&&(t=3===r.nodeType?r.nodeValue:null,r=Gh(r),null!==t&&Uv(r))){if(t===uh&&n){t=n,i=o=n.length}null!==t&&rg(r,t,o,i,e)}}}function rg(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]===uh&&(c=t.slice(0,-1)),t=i.getTextContent(),o||c!==t)if(""===c)if(jh(null),ih||lh||sh)i.remove();else{let e=Mb();setTimeout((()=>{e.update((()=>{i.isAttached()&&i.remove()}))}),20)}else{o=i.getParent(),t=vb();var l=i.getTextContentSize(),a=Kh(),s=i.getKey();i.isToken()||null!==a&&s===a&&!u||eb(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():(eb(e=gb())&&null!==n&&null!==r&&(e.setTextNodeRange(i,n,i,r),i.isSegmented()&&(n=Kv(n=i.getTextContent()),i.replace(n),i=n)),i.setTextContent(c))}}}function og(){var e=Xh();qh(Rh(e=e.select(0,e.getChildrenSize())))}function ig(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 lg(e,t,n,r,o){0!==n.size&&(n=r.__type,r=r.__key,void 0===(t=t.get(n))&&Zm(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 ag(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 sg(e,t){var n=e.offset;return"element"===e.type?ag(e=e.getNode(),t,n):(e=e.getNode(),t&&0===n||!t&&n===e.getTextContentSize()?null===(n=t?e.getPreviousSibling():e.getNextSibling())?ag(e.getParentOrThrow(),t,e.getIndexWithinParent()+(t?0:1)):n:null)}function ug(e){return"insertFromPaste"===(e=(e=mg(e).event)&&e.inputType)||"insertFromPasteAsQuotation"===e}function cg(e){return!Vb(e)&&!e.isLastChild()&&!e.isInline()}function dg(e,t){return void 0===(e=e._keyToDOMMap.get(t))&&Zm(75,t),e}function fg(e){return null!==(e=e.assignedSlot||e.parentElement)&&11===e.nodeType?e.host:e}function pg(e,t){for(e=e.getParent();null!==e;){if(e.is(t))return!0;e=e.getParent()}return!1}function mg(e){return null===(e=e._window)&&Zm(78),e}function hg(e){for(e=e.getParentOrThrow();null!==e&&!gg(e);)e=e.getParentOrThrow();return e}function gg(e){return Vb(e)||Ub(e)&&e.isShadowRoot()}function vg(e){return Bh(e=e.constructor.clone(e),null),e}function bg(e){var t=Mb();let n=e.constructor.getType();return void 0===(t=t._nodes.get(n))&&Zm(97),null!==(t=t.replace)?((t=t(e))instanceof e.constructor||Zm(98),t):e}function yg(e,t){!Vb(e=e.getParent())||Ub(t)||jb(t)||Zm(99)}function xg(e){return(jb(e)||Ub(e)&&!e.canBeEmpty())&&!e.isInline()}function _g(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null,null!==(t=e.parentElement)&&t.removeChild(e)}function wg(e){return eh?(e||window).getSelection():null}function Eg(e,t){let n=e.getChildAtIndex(t);null==n&&(n=e),gg(e)&&Zm(102);let r=e=>{const t=e.getParentOrThrow(),o=gg(t),i=e!==n||o?vg(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 Cg(e,t){for(;e!==Xh()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function kg(e){let t=[],n=[e];for(;0<n.length;){let r=n.pop();void 0===r&&Zm(112),Ub(r)&&n.unshift(...r.getChildren()),r!==e&&t.push(r)}return t}function Sg(e,t,n,r,o,i){for(e=e.getFirstChild();null!==e;){let l=e.__key;e.__parent===t&&(Ub(e)&&Sg(e,l,n,r,o,i),n.has(l)||i.delete(l),o.push(l)),e=e.getNextSibling()}}let Tg,Ng,Rg,Ag,Og,Mg,Lg,Pg,Ig,Dg,$g="",zg="",Fg="",Bg=!1,Hg=!1,Wg=null;function jg(e,t){let n=Lg.get(e);if(null!==t){let n=rv(e);n.parentNode===t&&t.removeChild(n)}Pg.has(e)||Ng._keyToDOMMap.delete(e),Ub(n)&&Kg(e=Zg(n,Lg),0,e.length-1,null),void 0!==n&&lg(Dg,Rg,Ag,n,"destroyed")}function Kg(e,t,n,r){for(;t<=n;++t){let n=e[t];void 0!==n&&jg(n,r)}}function Ug(e,t){e.setProperty("text-align",t)}function Yg(e,t){var n=Tg.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 Gg(e,t){e=e.style,0===t?Ug(e,""):1===t?Ug(e,"left"):2===t?Ug(e,"center"):3===t?Ug(e,"right"):4===t?Ug(e,"justify"):5===t?Ug(e,"start"):6===t&&Ug(e,"end")}function Vg(e,t,n){let r=Pg.get(e);void 0===r&&Zm(60);let o=r.createDOM(Tg,Ng);var i=Ng._keyToDOMMap;if(o["__lexicalKey_"+Ng._key]=e,i.set(e,o),Uv(r)?o.setAttribute("data-lexical-text","true"):jb(r)&&o.setAttribute("data-lexical-decorator","true"),Ub(r)){if(e=r.__indent,i=r.__size,0!==e&&Yg(o,e),0!==i){--i,e=Zg(r,Pg);var l=zg;zg="",Qg(e,r,0,i,o,null),Jg(r,o),zg=l}0!==(e=r.__format)&&Gg(o,e),r.isInline()||qg(null,r,o),cg(r)&&($g+="\n\n",Fg+="\n\n")}else i=r.getTextContent(),jb(r)?(null!==(l=r.decorate(Ng,Tg))&&tv(e,l),o.contentEditable="false"):Uv(r)&&(r.isDirectionless()||(zg+=i)),$g+=i,Fg+=i;return null!==t&&(null!=n?t.insertBefore(o,n):null!=(n=t.__lexicalLineBreak)?t.insertBefore(o,n):t.appendChild(o)),lg(Dg,Rg,Ag,r,"created"),o}function Qg(e,t,n,r,o,i){let l=$g;for($g="";n<=r;++n)Vg(e[n],o,i);cg(t)&&($g+="\n\n"),o.__lexicalTextContent=$g,$g=l+$g}function Xg(e,t){return Rv(e=t.get(e))||jb(e)&&e.isInline()}function qg(e,t,n){e=null!==e&&(0===e.__size||Xg(e.__last,Lg)),t=0===t.__size||Xg(t.__last,Pg),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!==zg||n!==Wg){let i=""===zg;if(i)var r=Wg;else r=zg,r=dh.test(r)?"rtl":fh.test(r)?"ltr":null;if(r!==n){let l=t.classList,a=Tg.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),Hg||(e.getWritable().__dir=r)}Wg=r,t.__lexicalDirTextContent=zg,t.__lexicalDir=r}}function Zg(e,t){let n=[];for(e=e.__first;null!==e;){let r=t.get(e);void 0===r&&Zm(101),n.push(e),e=r.__next}return n}function ev(e,t){var n=Lg.get(e),r=Pg.get(e);void 0!==n&&void 0!==r||Zm(61);var o=Bg||Mg.has(e)||Og.has(e);let i=dg(Ng,e);if(n===r&&!o)return Ub(n)?(void 0!==(r=i.__lexicalTextContent)&&($g+=r,Fg+=r),void 0!==(r=i.__lexicalDirTextContent)&&(zg+=r)):(r=n.getTextContent(),Uv(n)&&!n.isDirectionless()&&(zg+=r),Fg+=r,$g+=r),i;if(n!==r&&o&&lg(Dg,Rg,Ag,r,"updated"),r.updateDOM(n,i,Tg))return r=Vg(e,null,null),null===t&&Zm(62),t.replaceChild(r,i),jg(e,null),r;if(Ub(n)&&Ub(r)){if((e=r.__indent)!==n.__indent&&Yg(i,e),(e=r.__format)!==n.__format&&Gg(i,e),o){e=r,o=zg,zg="",t=$g;var l=n.__size,a=e.__size;if($g="",1===l&&1===a){var s=n.__first,u=e.__first;if(s===u)ev(s,i);else{var c=rv(s);u=Vg(u,null,null),i.replaceChild(u,c),jg(s,null)}}else{u=Zg(n,Lg);var d=Zg(e,Pg);if(0===l)0!==a&&Qg(d,e,0,a-1,i,null);else if(0===a)0!==l&&(Kg(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=nv(ev(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=dg(Ng,e))===t?t=nv(ev(e,i)):(null!=t?i.insertBefore(p,t):i.appendChild(p),ev(e,i)),n++):Vg(e,i,t),a++):(t=nv(rv(p)),jg(p,i),n++)}}c=a>l,(s=n>d)&&!c?Qg(u,e,a,l,i,s=void 0===(s=u[l+1])?null:Ng.getElementByKey(s)):c&&!s&&Kg(f,n,d,i)}}cg(e)&&($g+="\n\n"),i.__lexicalTextContent=$g,$g=t+$g,Jg(e,i),zg=o,Vb(r)||r.isInline()||qg(n,r,i)}cg(r)&&($g+="\n\n",Fg+="\n\n")}else n=r.getTextContent(),jb(r)?null!==(o=r.decorate(Ng,Tg))&&tv(e,o):Uv(r)&&!r.isDirectionless()&&(zg+=n),$g+=n,Fg+=n;return!Hg&&Vb(r)&&r.__cachedText!==Fg&&((r=r.getWritable()).__cachedText=Fg),i}function tv(e,t){let n=Ng._pendingDecorators,r=Ng._decorators;if(null===n){if(r[e]===t)return;n=Vh(Ng)}n[e]=t}function nv(e){return null!==(e=e.nextSibling)&&e===Ng._blockCursorElement&&(e=e.nextSibling),e}function rv(e){let t=Ig.get(e);return void 0===t&&Zm(75,e),t}let ov=Object.freeze({}),iv=[["keydown",function(e,t){if(lv=e.timeStamp,av=e.keyCode,!t.isComposing()){var{keyCode:n,shiftKey:r,ctrlKey:o,metaKey:i,altKey:l}=e;if(!zb(t,Om,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)pv=!0,zb(t,zm,e);else if(32===n)zb(t,Fm,e);else if(nh&&o&&79===n)e.preventDefault(),pv=!0,zb(t,_m,!0);else if(13!==n||r)if(nh?l||i||!(8===n||72===n&&o):o||l||i||8!==n)if(27===n)zb(t,Hm,e);else if(nh?r||l||i||!(46===n||68===n&&o):o||l||i||46!==n)if(8===n&&(nh?l:o))e.preventDefault(),zb(t,Sm,!0);else if(46===n&&(nh?l:o))e.preventDefault(),zb(t,Sm,!1);else if(nh&&i&&8===n)e.preventDefault(),zb(t,Tm,!0);else if(nh&&i&&46===n)e.preventDefault(),zb(t,Tm,!1);else if(66===n&&!l&&(nh?i:o))e.preventDefault(),zb(t,Nm,"bold");else if(85===n&&!l&&(nh?i:o))e.preventDefault(),zb(t,Nm,"underline");else if(73===n&&!l&&(nh?i:o))e.preventDefault(),zb(t,Nm,"italic");else if(9!==n||l||o||i)if(90===n&&!r&&(nh?i:o))e.preventDefault(),zb(t,Rm,void 0);else{var a=nh?90===n&&i&&r:89===n&&o||90===n&&o&&r;a?(e.preventDefault(),zb(t,Am,void 0)):ob(t._editorState._selection)?(a=!r&&(67===n&&(nh?i:o)))?(e.preventDefault(),zb(t,Vm,e)):(a=!r&&(88===n&&(nh?i:o)))?(e.preventDefault(),zb(t,Qm,e)):65===n&&(nh?i:o)&&(e.preventDefault(),t.update((()=>{og()}))):!rh&&65===n&&(nh?i:o)&&(e.preventDefault(),t.update((()=>{og()})))}else zb(t,jm,e);else 46===n?zb(t,Wm,e):(e.preventDefault(),zb(t,xm,!1));else 8===n?zb(t,Bm,e):(e.preventDefault(),zb(t,xm,!0));else pv=!1,zb(t,zm,e);else zb(t,$m,e);else zb(t,Dm,e);else zb(t,Im,e);else zb(t,Pm,e);else zb(t,Lm,e);else zb(t,Mm,e);(o||r||l||i)&&zb(t,Jm,e)}}}],["pointerdown",function(e,t){let n=e.target;e=e.pointerType,n instanceof Node&&"touch"!==e&&Hb(t,(()=>{jb(Gh(n))||(fv=!0)}))}],["compositionstart",function(e,t){Hb(t,(()=>{let n=gb();if(eb(n)&&!t.isComposing()){let r=n.anchor,o=n.anchor.getNode();jh(r.key),(e.timeStamp<lv+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||o.getStyle()!==n.style)&&zb(t,Em,ch)}}))}],["compositionend",function(e,t){rh?mv=!0:Hb(t,(()=>{xv(t,e.data)}))}],["input",function(e,t){e.stopPropagation(),Hb(t,(()=>{var n=gb(),r=e.data,o=yv(e);if(null!=r&&eb(n)&&gv(n,o,r,e.timeStamp,!1)){mv&&(xv(t,r),mv=!1);var i=n.anchor,l=i.getNode();if(null===(o=wg(t._window)))return;let a=i.offset;(i=oh&&!n.isCollapsed()&&Uv(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||zb(t,Em,r),r=r.length,rh&&1<r&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=r),ih||lh||sh||!t.isComposing()||(lv=0,jh(null))}else ng(!1,t,null!==r?r:void 0),mv&&(xv(t,r||void 0),mv=!1);Ab(),Ch(n=Mb())})),uv=null}],["click",function(e,t){Hb(t,(()=>{let n=gb();var r=wg(t._window);let o=vb();if(r)if(eb(n)){let t=n.anchor;var i=t.getNode();"element"===t.type&&0===t.offset&&n.isCollapsed()&&!Vb(i)&&1===Xh().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o)?(r.removeAllRanges(),n.dirty=!0):3!==e.detail||n.isCollapsed()||i!==(r=n.focus.getNode())&&(Ub(i)?i.select(0):i.getParentOrThrow().select(0))}else"touch"===e.pointerType&&(null!==(i=r.anchorNode)&&(1===(i=i.nodeType)||3===i))&&qh(r=hb(o,r,t));zb(t,ym,e)}))}],["cut",ov],["copy",ov],["dragstart",ov],["dragover",ov],["dragend",ov],["paste",ov],["focus",ov],["blur",ov],["drop",ov]];oh&&iv.push(["beforeinput",(e,t)=>function(e,t){let n=e.inputType,r=yv(e);"deleteCompositionText"===n||rh&&ug(t)||"insertCompositionText"!==n&&Hb(t,(()=>{let o=gb();if("deleteContentBackward"===n){if(null===o){var i=vb();if(!eb(i))return;qh(i.clone())}if(eb(o))return void(229===av&&e.timeStamp<lv+30&&t.isComposing()&&o.anchor.key===o.focus.key?(jh(null),lv=0,setTimeout((()=>{Hb(t,(()=>{jh(null)}))}),30),eb(o)&&(i=o.anchor.getNode(),i.markDirty(),o.format=i.getFormat(),o.style=i.getStyle())):(e.preventDefault(),zb(t,xm,!0)))}if(eb(o)){i=e.data,null!==uv&&ng(!1,t,uv),o.dirty&&null===uv||!o.isCollapsed()||Vb(o.anchor.getNode())||null===r||o.applyDOMRange(r),uv=null;var l=o.focus,a=o.anchor.getNode();if(l=l.getNode(),"insertText"===n||"insertTranspose"===n)"\n"===i?(e.preventDefault(),zb(t,_m,!1)):"\n\n"===i?(e.preventDefault(),zb(t,wm,void 0)):null==i&&e.dataTransfer?(i=e.dataTransfer.getData("text/plain"),e.preventDefault(),o.insertRawText(i)):null!=i&&gv(o,r,i,e.timeStamp,!0)?(e.preventDefault(),zb(t,Em,i)):uv=i,sv=e.timeStamp;else switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":zb(t,Em,e);break;case"insertFromComposition":jh(null),zb(t,Em,e);break;case"insertLineBreak":jh(null),zb(t,_m,!1);break;case"insertParagraph":jh(null),pv&&!lh?(pv=!1,zb(t,_m,!1)):zb(t,wm,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":zb(t,Cm,e);break;case"deleteByComposition":(function(e,t){return e!==t||Ub(e)||Ub(t)||!e.isToken()||!t.isToken()})(a,l)&&zb(t,km,e);break;case"deleteByDrag":case"deleteByCut":zb(t,km,e);break;case"deleteContent":zb(t,xm,!1);break;case"deleteWordBackward":zb(t,Sm,!0);break;case"deleteWordForward":zb(t,Sm,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":zb(t,Tm,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":zb(t,Tm,!1);break;case"formatStrikeThrough":zb(t,Nm,"strikethrough");break;case"formatBold":zb(t,Nm,"bold");break;case"formatItalic":zb(t,Nm,"italic");break;case"formatUnderline":zb(t,Nm,"underline");break;case"historyUndo":zb(t,Rm,void 0);break;case"historyRedo":zb(t,Am,void 0)}}}))}(e,t)]);let lv=0,av=0,sv=0,uv=null,cv=0,dv=!1,fv=!1,pv=!1,mv=!1,hv=[0,"",0,"root",0];function gv(e,t,n,r,o){let i=e.anchor,l=e.focus,a=i.getNode();var s=Mb();let u=wg(s._window),c=null!==u?u.anchorNode:null,d=i.key;s=s.getElementByKey(d);let f=n.length;return d!==l.key||!Uv(a)||(!o&&(!oh||sv<r+50)||a.isDirty()&&2>f||Zh(n))&&i.offset!==l.offset&&!a.isComposing()||Dh(a)||a.isDirty()&&1<f||(o||!oh)&&null!==s&&!a.isComposing()&&c!==$h(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=(Uv(t=t.getPreviousSibling())||Ub(t)&&t.isInline())&&!t.canInsertTextAfter()),e):e===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()||r)}(e,a)}function vv(e,t){return null!==e&&null!==e.nodeValue&&3===e.nodeType&&0!==t&&t!==e.nodeValue.length}function bv(e,t,n){let{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:l}=e;dv&&(dv=!1,vv(r,o)&&vv(i,l))||Hb(t,(()=>{if(n){if(Ph(t,r,i)){var o=gb();if(eb(o)){var l=o.anchor,a=l.getNode();if(o.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(o.dirty=!0);var s=mg(t).event;s=s?s.timeStamp:performance.now();let[n,r,i,u,c]=hv;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(Uv(e)&&(a=!0,0===(l&=e.getFormat())))break}o.format=a?l:0}}zb(t,bm,void 0)}}else qh(null)}))}function yv(e){return e.getTargetRanges?0===(e=e.getTargetRanges()).length?null:e[0]:null}function xv(e,t){var n=e._compositionKey;if(jh(null),null!==n&&null!=t){if(""===t)return t=Uh(n),void(null!==(e=$h(e.getElementByKey(n)))&&null!==e.nodeValue&&Uv(t)&&rg(t,e.nodeValue,null,null,!0));if("\n"===t[t.length-1]&&eb(n=gb()))return t=n.focus,n.anchor.set(t.key,t.offset,t.type),void zb(e,zm,null)}ng(!0,e,t)}function _v(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}let wv=new Map;function Ev(e){let t=wg(null==(e=e.target)?null:9===e.nodeType?e.defaultView:e.ownerDocument.defaultView);if(null!==t){var n=Ih(t.anchorNode);if(null!==n){fv&&(fv=!1,Hb(n,(()=>{var e=vb(),r=t.anchorNode;null!==r&&(1===(r=r.nodeType)||3===r)&&qh(e=hb(e,t,n))})));var r=(e=(e=eg(n))[e.length-1])._key,o=wv.get(r),i=o||e;i!==n&&bv(t,i,!1),bv(t,n,!0),n!==e?wv.set(r,n):o&&wv.delete(r)}}}function Cv(e,t,n){Ab();var r=e.__key;let o=e.getParent();if(null!==o){var i=gb();if(eb(i)&&Ub(e)){var{anchor:l,focus:a}=i,s=l.getNode(),u=a.getNode();pg(s,e)&&l.set(e.__key,0,"element"),pg(u,e)&&a.set(e.__key,0,"element")}if(u=!1,eb(s=i)&&t){i=s.anchor;let t=s.focus;i.key===r&&(xb(i,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0),t.key===r&&(xb(t,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0)}else ob(s)&&t&&e.isSelected()&&e.selectPrevious();eb(s)&&t&&!u?(r=e.getIndexWithinParent(),Hh(e),bb(s,o,r,-1)):Hh(e),n||gg(o)||o.canBeEmpty()||!o.isEmpty()||Cv(o,t),t&&Vb(o)&&o.isEmpty()&&o.selectEnd()}}class kv{static getType(){Zm(64,this.name)}static clone(){Zm(65,this.name)}constructor(e){this.__type=this.constructor.getType(),this.__next=this.__prev=this.__parent=null,Bh(this,e)}getType(){return this.__type}isAttached(){for(var e=this.__key;null!==e;){if("root"===e)return!0;if(null===(e=Uh(e)))break;e=e.__parent}return!1}isSelected(e){if(null==(e=e||gb()))return!1;let t=e.getNodes().some((e=>e.__key===this.__key));return(Uv(this)||!eb(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:Uh(e)}getParentOrThrow(){let e=this.getParent();return null===e&&Zm(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(gg(t))return e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&Zm(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:Uh(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:Uh(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();Ub(this)&&t.unshift(this),Ub(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=Ub(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&&Zm(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=Mb()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=Uh(this.__key);return null===e&&Zm(113),e}getWritable(){Ab();var e=Ob(),t=Mb();e=e._nodeMap;let n=this.__key,r=this.getLatest(),o=r.__parent;t=t._cloneNotNeeded;var i=gb();return null!==i&&(i._cachedNodes=null),t.has(n)?(Wh(r),r):((i=r.constructor.clone(r)).__parent=o,i.__next=r.__next,i.__prev=r.__prev,Ub(r)&&Ub(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):Uv(r)&&Uv(i)&&(i.__format=r.__format,i.__style=r.__style,i.__mode=r.__mode,i.__detail=r.__detail),t.add(n),i.__key=n,Wh(i),e.set(n,i),i)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){Zm(70)}updateDOM(){Zm(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){Zm(72)}static importJSON(){Zm(18,this.name)}static transform(){return null}remove(e){Cv(this,!0,e)}replace(e,t){Ab();var n=gb();null!==n&&(n=n.clone()),yg(this,e);let r=this.getLatest(),o=this.__key,i=e.__key,l=e.getWritable(),a=(e=this.getParentOrThrow().getWritable()).__size;Hh(l);let s=r.getPreviousSibling(),u=r.getNextSibling(),c=r.__prev,d=r.__next,f=r.__parent;return Cv(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)})),eb(n)&&(qh(n),t=n.anchor,n=n.focus,t.key===o&&Xv(t,l),n.key===o&&Xv(n,l)),Kh()===o&&jh(i),l}insertAfter(e,t=!0){Ab(),yg(this,e);var n=this.getWritable();let r=e.getWritable();var o=r.getParent();let i=gb();var l=!1,a=!1;if(null!==o){var s=e.getIndexWithinParent();Hh(r),eb(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&&eb(i)&&(bb(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){Ab(),yg(this,e);var n=this.getWritable();let r=e.getWritable(),o=r.__key;Hh(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=gb(),t&&eb(n)&&bb(n,t=this.getParentOrThrow(),s),e}isParentRequired(){return!1}createParentElementNode(){return ey()}selectPrevious(e,t){Ab();let n=this.getPreviousSibling(),r=this.getParentOrThrow();return null===n?r.select(0,0):Ub(n)?n.select():Uv(n)?n.select(e,t):(e=n.getIndexWithinParent()+1,r.select(e,e))}selectNext(e,t){Ab();let n=this.getNextSibling(),r=this.getParentOrThrow();return null===n?r.select():Ub(n)?n.select(0,0):Uv(n)?n.select(e,t):(e=n.getIndexWithinParent(),r.select(e,e))}markDirty(){this.getWritable()}}let Sv=class e extends kv{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:Tv,priority:0}}}}static importJSON(){return Nv()}exportJSON(){return{type:"linebreak",version:1}}};function Tv(){return{node:Nv()}}function Nv(){return bg(new Sv)}function Rv(e){return e instanceof Sv}function Av(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function Ov(e,t){return 1&t?"strong":2&t?"em":"span"}function Mv(e,t,n,r,o){e=r.classList,void 0!==(r=ig(o,"base"))&&e.add(...r);let i=!1,l=8&t&&4&t;var a=8&n&&4&n;void 0!==(r=ig(o,"underlineStrikethrough"))&&(a?(i=!0,l||e.add(...r)):l&&e.remove(...r));for(let s in ph)a=ph[s],void 0!==(r=ig(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 Lv(e,t,n){let r=t.firstChild;if(e+=(n=n.isComposing())?uh:"",null==r)t.textContent=e;else if((t=r.nodeValue)!==e)if(n||rh){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 Pv(e,t){return(t=document.createElement(t)).appendChild(e),t}let Iv=class e extends kv{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 bh[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Kh()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return 0!=(1&this.getLatest().__detail)}isUnmergeable(){return 0!=(2&this.getLatest().__detail)}hasFormat(e){return e=ph[e],0!=(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return zh(this.getLatest().__format,e,t)}createDOM(e){var t=this.__format,n=Av(0,t);let r=Ov(0,t),o=document.createElement(null===n?r:n),i=o;return null!==n&&(i=document.createElement(r),o.appendChild(i)),n=i,Lv(this.__text,n,this),void 0!==(e=e.theme.text)&&Mv(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=Av(0,o);let a=Av(0,i);var s=Ov(0,o);let u=Ov(0,i);return(null===l?s:l)!==(null===a?u:a)||(l===a&&s!==u?(null==(o=t.firstChild)&&Zm(48),Lv(r,e=l=document.createElement(u),this),void 0!==(n=n.theme.text)&&Mv(u,0,i,e,n),t.replaceChild(l,o),!1):(s=t,null!==a&&null!==l&&(null==(s=t.firstChild)&&Zm(49)),Lv(r,s,this),void 0!==(n=n.theme.text)&&o!==i&&Mv(u,o,i,s,n),i=this.__style,e.__style!==i&&(t.style.cssText=i),!1))}static importDOM(){return{"#text":()=>({conversion:Fv,priority:0}),b:()=>({conversion:$v,priority:0}),code:()=>({conversion:jv,priority:0}),em:()=>({conversion:jv,priority:0}),i:()=>({conversion:jv,priority:0}),s:()=>({conversion:jv,priority:0}),span:()=>({conversion:Dv,priority:0}),strong:()=>({conversion:jv,priority:0}),sub:()=>({conversion:jv,priority:0}),sup:()=>({conversion:jv,priority:0}),u:()=>({conversion:jv,priority:0})}}static importJSON(e){let t=Kv(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=Pv(e,"b")),this.hasFormat("italic")&&(e=Pv(e,"i")),this.hasFormat("strikethrough")&&(e=Pv(e,"s")),this.hasFormat("underline")&&(e=Pv(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?ph[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?mh[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){return e=ph[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=vh[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){Ab();let n=gb();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,eb(n)?((r=Kh())!==n.anchor.key&&r!==n.focus.key||jh(o),n.setTextNodeRange(this,e,this,t),n):pb(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=gb();return r&&eb(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){Ab();var t=this.getLatest(),n=t.getTextContent(),r=t.__key,o=Kh(),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=Kv(u)).__format=s,a.__style=c,a.__detail=d,l=!0):(a=t.getWritable()).__text=u,t=gb(),a=[a],u=u.length;for(let n=1;n<i;n++){var f=e[n],p=f.length;(f=Kv(f).getWritable()).__format=s,f.__style=c,f.__detail=d;let i=f.__key;if(p=u+p,eb(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&&jh(i),u=p,a.push(f)}return r=this.getPreviousSibling(),o=this.getNextSibling(),null!==r&&Wh(r),null!==o&&Wh(o),r=n.getWritable(),o=this.getIndexWithinParent(),l?(r.splice(o,0,a),this.remove()):r.splice(o,1,a),eb(t)&&bb(t,n,o,i-1),a}mergeWithSibling(e){var t=e===this.getPreviousSibling();t||e===this.getNextSibling()||Zm(50);var n=this.__key;let r=e.__key,o=this.__text,i=o.length;Kh()===r&&jh(n);let l=gb();if(eb(l)){let o=l.anchor,a=l.focus;null!==o&&o.key===r&&(_b(o,t,n,e,i),l.dirty=!0),null!==a&&a.key===r&&(_b(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 Dv(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=>Uv(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 $v(e){let t="normal"===e.style.fontWeight;return{forChild:e=>(Uv(e)&&!t&&e.toggleFormat("bold"),e),node:null}}let zv=new WeakMap;function Fv(e){null===e.parentElement&&Zm(129);for(var t,n=e.textContent||"",r=e.parentNode,o=[e];null!==r&&void 0===(t=zv.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++)zv.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(Nv()):"\t"===r?e.push(Gv()):""!==r&&e.push(Kv(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=Hv(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=Hv(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:Kv(n)}}let Bv=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 Hv(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(Bv)||""!==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 Wv={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function jv(e){let t=Wv[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:e=>(Uv(e)&&!e.hasFormat(t)&&e.toggleFormat(t),e),node:null}}function Kv(e=""){return bg(new Iv(e))}function Uv(e){return e instanceof Iv}let Yv=class e extends Iv{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=Gv();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(){Zm(126)}setDetail(){Zm(127)}setMode(){Zm(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function Gv(){return bg(new Yv)}let Vv=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,Ub(t)){var o=t.getDescendantByIndex(r);t=null!=o?o:t}return Ub(n)&&(o=n.getDescendantByIndex(e),n=null!=o?o:n),t===n?r<e:t.isBefore(n)}getNode(){let e=Uh(this.key);return null===e&&Zm(20),e}set(e,t,n){let r=this._selection,o=this.key;this.key=e,this.offset=t,this.type=n,Rb()||(Kh()===o&&jh(e),null!==r&&(r._cachedNodes=null,r.dirty=!0))}};function Qv(e,t){let n=t.__key,r=e.offset,o="element";if(Uv(t))o="text",r>(t=t.getTextContentSize())&&(r=t);else if(!Ub(t)){var i=t.getNextSibling();Uv(i)?(n=i.__key,r=0,o="text"):(i=t.getParent())&&(n=i.__key,r=t.getIndexWithinParent()+1)}e.set(n,r,o)}function Xv(e,t){if(Ub(t)){let n=t.getLastDescendant();Ub(n)||Uv(n)?Qv(e,n):Qv(e,t)}else Qv(e,t)}function qv(e,t,n,r){let o=e.getNode(),i=o.getChildAtIndex(e.offset),l=Kv(),a=Vb(o)?ey().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 Zv{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!ob(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 Zv(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(Uv(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=Uh(n))&&e.push(t);return Rb()||(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 eb(e){return e instanceof rb}let tb=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!!nb(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 lb(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.focus.getNode();return Rh(n.select(0,n.getChildrenSize())).insertNodes(e,t)}getShape(){var e=Uh(this.anchor.key);null===e&&Zm(21);var t=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var n=Uh(this.focus.key);null===n&&Zm(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=Cg(n,oy);var r=Cg(t,oy);oy(n)||Zm(103),oy(r)||Zm(104),sy(t=n.getParent())||Zm(105),ly(t=t.getParent())||Zm(106);let[o,i,l]=wb(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]),sy(p=f.getParent())||Zm(107),p!==n&&t.push(p),t.push(f,...kg(f)),n=p;return Rb()||(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 nb(e){return e instanceof tb}let rb=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!!eb(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,Ub(e)&&(n=e.getDescendantByIndex(o),e=null!=n?n:e),Ub(t)&&(null!==(n=t.getDescendantByIndex(r))&&n!==e&&t.getChildAtIndex(r)===n&&(n=n.getPreviousSibling()),t=null!=n?n:t),e=e.is(t)?Ub(e)&&0<e.getChildrenSize()?[]:[e]:e.getNodesBetween(t),Rb()||(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]=lb(this),s="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(Ub(d)&&!d.isInline())u||(s+="\n"),u=!d.isEmpty();else if(u=!1,Uv(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!jb(d)&&!Rv(d)||d===n&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let t=Mb(),n=t.getEditorState()._selection;if(null!==(e=db(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 Vv(t.key,t.offset,t.type),new Vv(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=zh(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){return 0!=(this.format&ph[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(Nv()):"\t"===n?t.push(Gv()):t.push(Kv(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?qv(t,n,o,i):r||"element"!==n.type||qv(n,t,o,i);var l=this.getNodes(),a=l.length,s=r?n:t;n=(r?t:n).offset;var u=s.offset;Uv(t=l[0])||Zm(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(Uv(f)&&f.canInsertTextBefore()&&!Dh(f)||((f=Kv()).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(Uv(f=t.getPreviousSibling())&&!Dh(f)||((f=Kv()).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=Kv(t.getTextContent())).setFormat(o),t.replace(c),t=c;else if(!(this.isCollapsed()||""===e||(f=d.getParent(),c.canInsertTextBefore()&&c.canInsertTextAfter()&&(!Ub(f)||f.canInsertTextBefore()&&f.canInsertTextAfter()))))return this.insertText(""),cb(this.anchor,this.focus,null),void this.insertText(e);if(1===a)if(t.isToken())(e=Kv(e)).select(),t.replace(e);else{if(l=t.getFormat(),a=t.getStyle(),n===u&&(l!==o||a!==i)){if(""!==t.getTextContent())return(l=Kv(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=Ub(t)?t:t.getParentOrThrow(),i=Ub(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?Uv(d)&&!d.isToken()&&u!==d.getTextContentSize()?(d.isSegmented()&&(s=Kv(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)||Ub(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=Kv(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),jh(null);else{var t=this.getNodes(),n=[];for(var r of t)Uv(r)&&n.push(r);var o=n.length;if(0===o)this.toggleFormat(e),jh(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=Kv();this.focus.getNode().insertBefore(o)}else this.focus.key===n&&this.focus.offset===this.focus.getNode().getChildrenSize()&&(o=Kv(),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=gg(i)?null:i.getTopLevelElementOrThrow();if(Uv(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(gg(r)||jb(r)||!Ub(c)||c.isInline())s&&!Ub(c)&&!jb(c)&&gg(r.getParent())&&Zm(28);else{if(c.is(l)){if(Ub(r)&&r.isEmpty()&&r.canReplaceWith(c)){r.replace(c),r=c,s=!0;continue}if(Fh(s=c.getFirstDescendant())){for(var d=s.getParentOrThrow();d.isInline();)d=d.getParentOrThrow();if(s=(u=d.getChildren()).length,Ub(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}}Uv(r)&&(null===a&&Zm(27),r=a)}s=!1,Ub(r)&&!r.isInline()?(u=c,jb(c)&&!c.isInline()?r=r.insertAfter(c,!1):Ub(c)?!c.canBeEmpty()&&c.isEmpty()||(Vb(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)):!Ub(c)||Ub(c)&&c.isInline()||jb(r)&&!r.isInline()?(u=c,eb(this)&&jb(c)&&(Ub(r)||Uv(r))&&!c.isInline()?(Uv(r)?(d=r.getParentOrThrow(),[r]=r.splitText(n),r=r.getIndexWithinParent()+1):(d=r,r=n),[,r]=Eg(d,r),r=r.insertBefore(c)):r=r.insertAfter(c,!1)):(c=r.getParentOrThrow(),Rv(r)&&r.remove(),r=c,t--)}if(t&&(Uv(i)?i.select():Uv(e=r.getPreviousSibling())?e.select():(e=r.getIndexWithinParent(),r.getParentOrThrow().select(e,e))),Ub(r)){if(e=Uv(u)?u:Ub(u)&&u.isInline()?u.getLastDescendant():r.getLastDescendant(),t||(null===e?r.select():Uv(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(),!Ub(r)||fb(n)||jb(n)&&(!n.isInline()||n.isIsolated())?Ub(r)||fb(n)?Ub(n)&&!n.canInsertAfter(r)?(Ub(i=a.constructor.clone(a))||Zm(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||(Uv(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(gg(i=e.getNode()))return o=ey(),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(Ub(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(Ub(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=Nv();var n=this.anchor;"element"===n.type&&(Vb(n=n.getNode())&&this.insertParagraph()),e?this.insertNodes([t],!0):this.insertNodes([t])&&t.selectNext(0,0)}getCharacterOffsets(){return lb(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]=lb(this);return 0===t?[]:1===t?Uv(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),Uv(i)&&((r=t?a:s)===i.getTextContentSize()?e.shift():0!==r&&([,i]=i.splitText(r),e[0]=i)),Uv(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=sg(r,t);if(jb(l)&&!l.isIsolated())i&&l.isKeyboardSelectable()?((t=mb()).add(l.__key),qh(t)):Uv(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(),Ub(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=wg((o=Mb())._window)){var a=o._blockCursorElement,s=o._rootElement;if(null===s||null===a||!Ub(l)||l.isInline()||l.canBeEmpty()||_g(a,o,s),r.modify(e,t?"backward":"forward",n),0<r.rangeCount&&(l=r.getRangeAt(0),o=Vb(o=this.anchor.getNode())?o:hg(o),this.applyDOMRange(l),this.dirty=!0,!i)){for(i=this.getNodes(),e=[],n=!1,a=0;a<i.length;a++)pg(s=i[a],o)?e.push(s):n=!0;n&&0<e.length&&(t?Ub(t=e[0])?t.selectStart():t.getParentOrThrow().selectStart():Ub(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&&Ub(o)&&n.offset===o.getChildrenSize()||"text"===n.type&&n.offset===o.getTextContentSize())){var i=o.getParent();if(Ub(i=o.getNextSibling()||(null===i?null:i.getNextSibling()))&&i.isShadowRoot())return}if(jb(i=sg(r,e))&&!i.isIsolated())return void(i.isKeyboardSelectable()&&Ub(o)&&0===o.getChildrenSize()?(o.remove(),e=mb(),e.add(i.__key),qh(e)):(i.remove(),Mb().dispatchCommand(bm,void 0)));if(!e&&Ub(i)&&Ub(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 ab(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 ab(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)&&(Zh(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()&&Vb(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 ob(e){return e instanceof Zv}function ib(e){let t=e.offset;return"text"===e.type?t:t===(e=e.getNode()).getChildrenSize()?e.getTextContent().length:0}function lb(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]:[ib(t),ib(e)]}function ab(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 sb(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--,Uv(r=Jh(s)))o=a?r.getTextContentSize():0;else{if(null===(i=Jh(e)))return null;if(Ub(i)?((t=Ub(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=Ub(e=n)?e:e.getParentOrThrow()),Uv(e)?(r=e,i=null,o=a?e.getTextContentSize():0):e!==i&&a&&!l&&o++):(o=i.getIndexWithinParent(),o=0===t&&jb(i)&&Jh(e)===i?o:o+1,i=i.getParentOrThrow()),Ub(i))return new Vv(i.__key,o,"element")}}else r=Jh(e);return Uv(r)?new Vv(r.__key,o,"text"):null}function ub(e,t,n){var r=e.offset,o=e.getNode();0===r?(r=o.getPreviousSibling(),o=o.getParent(),t?(n||!t)&&null===r&&Ub(o)&&o.isInline()&&(Uv(t=o.getPreviousSibling())&&(e.key=t.__key,e.offset=t.getTextContent().length)):Ub(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):Uv(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)):r===o.getTextContent().length&&(r=o.getNextSibling(),o=o.getParent(),t&&Ub(r)&&r.isInline()?(e.key=r.__key,e.offset=0,e.type="element"):(n||t)&&null===r&&Ub(o)&&o.isInline()&&!o.canInsertTextAfter()&&(Uv(t=o.getNextSibling())&&(e.key=t.__key,e.offset=0)))}function cb(e,t,n){if("text"===e.type&&"text"===t.type){var r=e.isBefore(t);let o=e.is(t);ub(e,r,o),ub(t,!r,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type),(r=Mb()).isComposing()&&r._compositionKey!==e.key&&eb(n)&&(r=n.anchor,n=n.focus,Jv(e,r.key,r.offset,r.type),Jv(t,n.key,n.offset,n.type))}}function db(e,t,n,r,o,i){return null!==e&&null!==n&&Ph(o,e,n)?null===(t=sb(e,t,eb(i)?i.anchor:null,o))||null===(r=sb(n,r,eb(i)?i.focus:null,o))||"element"===t.type&&"element"===r.type&&(e=Jh(e),n=Jh(n),jb(e)&&jb(n))?null:(cb(t,r,i),[t,r]):null}function fb(e){return Ub(e)&&!e.isInline()}function pb(e,t,n,r,o,i){let l=Ob();return(e=new rb(new Vv(e,t,o),new Vv(n,r,i),0,"")).dirty=!0,l._selection=e}function mb(){return new Zv(new Set)}function hb(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=!yh&&(r||"beforeinput"===i||"compositionstart"===i||"compositionend"===i||"click"===i&&o&&3===o.detail||"drop"===i||void 0===i),eb(e)&&!o)return e.clone();if(null===t)return null;if(o=t.anchorNode,i=t.focusNode,l=t.anchorOffset,t=t.focusOffset,r&&eb(e)&&!Ph(n,o,i))return e.clone();if(null===(n=db(o,l,i,t,n,e)))return null;let[a,s]=n;return new rb(a,s,eb(e)?e.format:0,eb(e)?e.style:"")}function gb(){return Ob()._selection}function vb(){return Mb()._editorState._selection}function bb(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"),yb(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"))}yb(e)}}function yb(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())Ub(i)&&(Uv(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(Ub(i)){let r=i.getChildrenSize();Uv(n=(e=n>=r)?i.getChildAtIndex(r-1):i.getChildAtIndex(n))&&(i=0,e&&(i=n.getTextContentSize()),t.set(n.__key,i,"text"))}Ub(l)&&(Uv(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 xb(e,t,n,r,o){let i=null,l=0,a=null;null!==r?(i=r.__key,Uv(r)?(l=r.getTextContentSize(),a="text"):Ub(r)&&(l=r.getChildrenSize(),a="element")):null!==o&&(i=o.__key,Uv(o)?a="text":Ub(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 _b(e,t,n,r,o){"text"===e.type?(e.key=n,t||(e.offset+=o)):e.offset>r.getIndexWithinParent()&&--e.offset}function wb(e,t,n){let r=[],o=null,i=null;e=e.getChildren();for(let c=0;c<e.length;c++){var l=e[c];sy(l)||Zm(108);var a=l.getChildren();l=0;for(let e of a){for(oy(e)||Zm(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&&Zm(110),null===i&&Zm(111),[r,o,i]}let Eb=null,Cb=null,kb=!1,Sb=!1,Tb=0,Nb={characterData:!0,childList:!0,subtree:!0};function Rb(){return kb||null!==Eb&&Eb._readOnly}function Ab(){kb&&Zm(13)}function Ob(){return null===Eb&&Zm(15),Eb}function Mb(){return null===Cb&&Zm(16),Cb}function Lb(e,t,n){var r=t.__type;let o=e._nodes.get(r);for(void 0===o&&Zm(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 Pb(e,t){var n=e.type,r=t.get(n);if(void 0===r&&Zm(17,n),n=r.klass,e.type!==n.getType()&&Zm(18,n.name),n=n.importJSON(e),e=e.children,Ub(n)&&Array.isArray(e))for(r=0;r<e.length;r++){let o=Pb(e[r],t);n.append(o)}return n}function Ib(e,t){let n=Eb,r=kb,o=Cb;Eb=e,kb=!0,Cb=null;try{return t()}finally{Eb=n,kb=r,Cb=o}}function Db(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=Eb,c=kb,d=Cb,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!o&&s&&null!==p){Cb=e,Eb=n,kb=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,o=e._dirtyLeaves;p.disconnect();var h=r,g=o;zg=Fg=$g="",Bg=2===t,Wg=null,Ng=e,Tg=e._config,Rg=e._nodes,Ag=Ng._listeners.mutation,Og=h,Mg=g,Lg=i._nodeMap,Pg=n._nodeMap,Hg=n._readOnly,Ig=new Map(e._keyToDOMMap);let l=new Map;Dg=l,ev("root",null),Dg=Ig=Tg=Pg=Lg=Mg=Og=Rg=Ng=void 0,m=l}catch(t){if(t instanceof Error&&e._onError(t),Sb)throw t;return ty(e,null,r,n),kh(e),e._dirtyType=2,Sb=!0,Db(e,i),void(Sb=!1)}finally{p.observe(r,Nb),e._updating=f,Eb=u,kb=c,Cb=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=Vh(e)),delete C[w]);var S=o?null:wg(e._window);if(e._editable&&null!==S&&(s||null===a||a.dirty)){Cb=e,Eb=n;try{if(null!==p&&p.disconnect(),s||null===a||a.dirty){let t=e._blockCursorElement;null!==t&&_g(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&&Lh(s)))if(eb(a)){var T=a.anchor,N=a.focus,R=T.key,A=N.key,O=dg(e,R),M=dg(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=$h(O);let e=T.getNode();B=e.getFormat()!==I||e.getStyle()!==D}else eb(l)&&"text"===l.anchor.type&&(B=!0);if("text"===N.type&&(F=$h(M)),null!==z&&null!==F){if($&&(null===l||B||eb(l)&&(l.format!==I||l.style!==D))){var H=performance.now();hv=[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 rb&&"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=mg(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=fg(Y)}}}dv=!0}}else null!==l&&Ph(e,t,n)&&S.removeAllRanges()}}e:{let t=e._blockCursorElement;if(eb(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){xg(o.getChildAtIndex(i-1))&&(s=!0)}else{let t=o.getChildAtIndex(i);if(xg(t)){let n=t.getPreviousSibling();(null===n||xg(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&&_g(t,e,r)}null!==p&&p.observe(r,Nb)}finally{Cb=d,Eb=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})}}eb(a)||null===a||null!==l&&l.is(a)||e.dispatchCommand(bm,void 0);var V=e._pendingDecorators;null!==V&&(e._decorators=V,e._pendingDecorators=null,$b("decorator",e,!0,V));var Q=Qh(t||i),X=Qh(n);if(Q!==X&&$b("textcontent",e,!0,X),$b("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;Bb(e,n,r)}}}}function $b(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 zb(e,t,n){if(!1===e._updating||Cb!==e){let r=!1;return e.update((()=>{r=zb(e,t,n)})),r}let r=eg(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 Fb(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 Bb(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 qb(new Map((l||n)._nodeMap)),a=!0),l._flushSync=i,i=Eb;let s=kb,u=Cb,c=e._updating;Eb=l,kb=!1,e._updating=!0,Cb=e;try{a&&(e._headless?null!=n._selection&&(l._selection=n._selection.clone()):l._selection=function(e){let t=e.getEditorState()._selection,n=wg(e._window);return ob(t)||nb(t)?t.clone():hb(t,n,e)}(e));let r=e._compositionKey;t(),o=Fb(e,o),function(e,t){if(t=t.getEditorState()._selection,eb(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)Uv(t=e.get(n))&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Nh(t)}(l,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements;e=e._nodeMap;let o=Kh(),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)Uv(l=e.get(r))&&l.isAttached()&&l.isSimpleText()&&!l.isUnmergeable()&&Nh(l),void 0!==l&&void 0!==l&&l.__key!==o&&l.isAttached()&&Lb(t,l,i),n.add(r);if(a=(l=t._dirtyLeaves).size,0<a){Tb++;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()&&Lb(t,l,i),r.set(s,u));a=(l=t._dirtyLeaves).size,u=(s=t._dirtyElements).size,Tb++}t._dirtyLeaves=n,t._dirtyElements=r}(l,e),Fb(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()||(Ub(i)&&Sg(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(eb(i)){let e=l._nodeMap,t=i.focus.key;void 0!==e.get(i.anchor.key)&&void 0!==e.get(t)||Zm(19)}else ob(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 Db(e)}finally{Eb=i,kb=s,Cb=u,e._updating=c,Tb=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,Db(e)):a&&Mh((()=>{Db(e)})):(l._flushSync=!1,a&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Hb(e,t,n){e._updating?e._updates.push([t,n]):Bb(e,t,n)}class Wb extends kv{constructor(e){super(e)}decorate(){Zm(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function jb(e){return e instanceof Wb}class Kb extends kv{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 gh[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=Mb()._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(Uv(t)&&e.push(t),Ub(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;null!==e;){if(Ub(e)){let t=e.getFirstChild();if(null!==t){e=t;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;null!==e;){if(Ub(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?Ub(e=t[n-1])&&e.getLastDescendant()||e||null:Ub(e=t[e])&&e.getFirstDescendant()||e||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:Uh(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&Zm(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:Uh(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&Zm(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(),Ub(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(),Ub(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return""!==e&&(e=hh[e],0!=(this.getFormat()&e))}select(e,t){Ab();let n=gb(),r=e,o=t;var i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){if(Uv(e=this.getFirstChild())||Ub(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)&&(Uv(e=this.getLastChild())||Ub(e)))return e.select();return void 0===r&&(r=i),void 0===o&&(o=i),i=this.__key,eb(n)?(n.anchor.set(i,r,"element"),n.focus.set(i,o,"element"),n.dirty=!0,n):pb(i,r,i,o,"element","element")}selectStart(){let e=this.getFirstDescendant();return Ub(e)||Uv(e)?e.select(0,0):null!==e?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return Ub(e)||Uv(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?hh[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&&Zm(100);var m=p.getNextSibling(),h=p.__key;Hh(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--,Hh(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&&Zm(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&&eb(e=gb())){s=new Set(s),a=new Set(a);let{anchor:t,focus:n}=e;Yb(t,s,a)&&xb(t,t.getNode(),this,c,u),Yb(n,s,a)&&xb(n,n.getNode(),this,c,u),0!==d||this.canBeEmpty()||gg(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 Ub(e){return e instanceof Kb}function Yb(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 Gb extends Kb{static getType(){return"root"}static clone(){return new Gb}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){Zm(51)}getTextContent(){let e=this.__cachedText;return!Rb()&&0!==Mb()._dirtyType||null===e?super.getTextContent():e}remove(){Zm(52)}replace(){Zm(53)}insertBefore(){Zm(54)}insertAfter(){Zm(55)}updateDOM(){return!1}append(...e){for(let t=0;t<e.length;t++){let n=e[t];Ub(n)||jb(n)||Zm(56)}return super.append(...e)}static importJSON(e){let t=Xh();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 Vb(e){return e instanceof Gb}function Qb(){return new qb(new Map([["root",new Gb]]))}function Xb(e){let t=e.exportJSON();var n=e.constructor;t.type!==n.getType()&&Zm(130,n.name);let r=t.children;if(Ub(e))for(Array.isArray(r)||Zm(59,n.name),e=e.getChildren(),n=0;n<e.length;n++){let t=Xb(e[n]);r.push(t)}return t}class qb{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 Ib(this,e)}clone(e){return(e=new qb(this._nodeMap,void 0===e?this._selection:e))._readOnly=!0,e}toJSON(){return Ib(this,(()=>({root:Xb(Xh())})))}}class Jb extends Kb{static getType(){return"paragraph"}static clone(e){return new Jb(e.__key)}createDOM(e){let t=document.createElement("p");return void 0!==(e=ig(e.theme,"paragraph"))&&t.classList.add(...e),t}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:Zb,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=ey();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=ey();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.getChildren();if(0===e.length||Uv(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 Zb(e){let t=ey();return e.style&&(t.setFormat(e.style.textAlign),0<(e=parseInt(e.style.textIndent,10)/20)&&t.setIndent(e)),{node:t}}function ey(){return bg(new Jb)}function ty(e,t,n,r){let o=e._keyToDOMMap;o.clear(),e._editorState=Qb(),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 ny{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=tg(),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&&Zm(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&&Zm(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())&&Zm(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))&&Zm(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){Hb(e,(()=>{var e=Ob();if(!e.isEmpty())if("root"===t)Xh().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 zb(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=ig(this._config.theme,"root");var n=this._pendingEditorState||this._editorState;if(this._rootElement=e,ty(this,t,e,n),null!==t){if(!this._config.disableEvents){0!==cv&&(cv--,0===cv&&t.ownerDocument.removeEventListener("selectionchange",Ev));var r=t.__lexicalEditor;if(null!=r){if(null!==r._parentEditor){var o=eg(r);o=o[o.length-1]._key,wv.get(o)===r&&wv.delete(o)}else wv.delete(r._key);t.__lexicalEditor=null}for(r=_v(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,kh(this),this._updateTags.add("history-merge"),Db(this),this._config.disableEvents||function(e,t){0===cv&&e.ownerDocument.addEventListener("selectionchange",Ev),cv++,e.__lexicalEditor=t;let n=_v(e);for(let r=0;r<iv.length;r++){let[o,i]=iv[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 zb(t,Qm,e);case"copy":return zb(t,Vm,e);case"paste":return zb(t,Cm,e);case"dragstart":return zb(t,Um,e);case"dragover":return zb(t,Ym,e);case"dragend":return zb(t,Gm,e);case"focus":return zb(t,Xm,e);case"blur":return zb(t,qm,e);case"drop":return zb(t,Km,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),$b("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&Zm(38),Ch(this);let n=this._pendingEditorState,r=this._updateTags;t=void 0!==t?t.tag:null,null===n||n.isEmpty()||(null!=t&&r.add(t),Db(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=t&&r.add(t),Db(this)}parseEditorState(e,t){e="string"==typeof e?JSON.parse(e):e;let n=Qb(),r=Eb,o=kb,i=Cb,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,Eb=n,kb=!1,Cb=this;try{Pb(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,Eb=r,kb=o,Cb=i}return n}update(e,t){Hb(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Hb(this,(()=>{let e=gb(),n=Xh();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=wg(this._window))&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,$b("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class ry extends Kb{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 oy(e){return e instanceof ry}class iy extends Kb{}function ly(e){return e instanceof iy}class ay extends Kb{}function sy(e){return e instanceof ay}vm.$addUpdateTag=function(e){Ab(),Mb()._updateTags.add(e)},vm.$applyNodeReplacement=bg,vm.$copyNode=vg,vm.$createLineBreakNode=Nv,vm.$createNodeSelection=mb,vm.$createParagraphNode=ey,vm.$createRangeSelection=function(){let e=new Vv("root",0,"element"),t=new Vv("root",0,"element");return new rb(e,t,0,"")},vm.$createTabNode=Gv,vm.$createTextNode=Kv,vm.$getAdjacentNode=sg,vm.$getNearestNodeFromDOMNode=Gh,vm.$getNearestRootOrShadowRoot=hg,vm.$getNodeByKey=Uh,vm.$getPreviousSelection=vb,vm.$getRoot=Xh,vm.$getSelection=gb,vm.$getTextContent=function(){let e=gb();return null===e?"":e.getTextContent()},vm.$hasAncestor=pg,vm.$hasUpdateTag=function(e){return Mb()._updateTags.has(e)},vm.$insertNodes=function(e,t){let n=gb()||vb();return null===n&&(n=Xh().selectEnd()),n.insertNodes(e,t)},vm.$isBlockElementNode=fb,vm.$isDecoratorNode=jb,vm.$isElementNode=Ub,vm.$isInlineElementOrDecoratorNode=function(e){return Ub(e)&&e.isInline()||jb(e)&&e.isInline()},vm.$isLeafNode=Fh,vm.$isLineBreakNode=Rv,vm.$isNodeSelection=ob,vm.$isParagraphNode=function(e){return e instanceof Jb},vm.$isRangeSelection=eb,vm.$isRootNode=Vb,vm.$isRootOrShadowRoot=gg,vm.$isTabNode=function(e){return e instanceof Yv},vm.$isTextNode=Uv,vm.$nodesOfType=function(e){var t=Ob();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},vm.$normalizeSelection__EXPERIMENTAL=Rh,vm.$parseSerializedNode=function(e){return Pb(e,Mb()._nodes)},vm.$setCompositionKey=jh,vm.$setSelection=qh,vm.$splitNode=Eg,vm.BLUR_COMMAND=qm,vm.CAN_REDO_COMMAND={},vm.CAN_UNDO_COMMAND={},vm.CLEAR_EDITOR_COMMAND={},vm.CLEAR_HISTORY_COMMAND={},vm.CLICK_COMMAND=ym,vm.COMMAND_PRIORITY_CRITICAL=4,vm.COMMAND_PRIORITY_EDITOR=0,vm.COMMAND_PRIORITY_HIGH=3,vm.COMMAND_PRIORITY_LOW=1,vm.COMMAND_PRIORITY_NORMAL=2,vm.CONTROLLED_TEXT_INSERTION_COMMAND=Em,vm.COPY_COMMAND=Vm,vm.CUT_COMMAND=Qm,vm.DELETE_CHARACTER_COMMAND=xm,vm.DELETE_LINE_COMMAND=Tm,vm.DELETE_WORD_COMMAND=Sm,vm.DEPRECATED_$computeGridMap=wb,vm.DEPRECATED_$createGridSelection=function(){let e=new Vv("root",0,"element"),t=new Vv("root",0,"element");return new tb("root",e,t)},vm.DEPRECATED_$getNodeTriplet=function(e){e instanceof ry||(e instanceof kv?oy(e=Cg(e,oy))||Zm(114):oy(e=Cg(e.getNode(),oy))||Zm(114));let t=e.getParent();sy(t)||Zm(115);let n=t.getParent();return ly(n)||Zm(116),[e,t,n]},vm.DEPRECATED_$isGridCellNode=oy,vm.DEPRECATED_$isGridNode=ly,vm.DEPRECATED_$isGridRowNode=sy,vm.DEPRECATED_$isGridSelection=nb,vm.DEPRECATED_GridCellNode=ry,vm.DEPRECATED_GridNode=iy,vm.DEPRECATED_GridRowNode=ay,vm.DRAGEND_COMMAND=Gm,vm.DRAGOVER_COMMAND=Ym,vm.DRAGSTART_COMMAND=Um,vm.DROP_COMMAND=Km,vm.DecoratorNode=Wb,vm.ElementNode=Kb,vm.FOCUS_COMMAND=Xm,vm.FORMAT_ELEMENT_COMMAND={},vm.FORMAT_TEXT_COMMAND=Nm,vm.INDENT_CONTENT_COMMAND={},vm.INSERT_LINE_BREAK_COMMAND=_m,vm.INSERT_PARAGRAPH_COMMAND=wm,vm.INSERT_TAB_COMMAND={},vm.KEY_ARROW_DOWN_COMMAND=$m,vm.KEY_ARROW_LEFT_COMMAND=Pm,vm.KEY_ARROW_RIGHT_COMMAND=Mm,vm.KEY_ARROW_UP_COMMAND=Dm,vm.KEY_BACKSPACE_COMMAND=Bm,vm.KEY_DELETE_COMMAND=Wm,vm.KEY_DOWN_COMMAND=Om,vm.KEY_ENTER_COMMAND=zm,vm.KEY_ESCAPE_COMMAND=Hm,vm.KEY_MODIFIER_COMMAND=Jm,vm.KEY_SPACE_COMMAND=Fm,vm.KEY_TAB_COMMAND=jm,vm.LineBreakNode=Sv,vm.MOVE_TO_END=Lm,vm.MOVE_TO_START=Im,vm.OUTDENT_CONTENT_COMMAND={},vm.PASTE_COMMAND=Cm,vm.ParagraphNode=Jb,vm.REDO_COMMAND=Am,vm.REMOVE_TEXT_COMMAND=km,vm.RootNode=Gb,vm.SELECTION_CHANGE_COMMAND=bm,vm.TabNode=Yv,vm.TextNode=Iv,vm.UNDO_COMMAND=Rm,vm.createCommand=function(){return{}},vm.createEditor=function(e){var t=e||{},n=Cb,r=t.theme||{};let o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,l=Qb(),a=t.namespace||(null!==o?o._config.namespace:tg()),s=t.editorState,u=[Gb,Iv,Sv,Yv,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 ny(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},vm.getNearestEditorFromDOMNode=Ih,vm.isSelectionCapturedInDecoratorInput=Lh,vm.isSelectionWithinEditor=Ph;var uy=vm,cy=uy;let dy=new Map;function fy(e){for(;null!=e;){if(e.nodeType===Node.TEXT_NODE)return e;e=e.firstChild}return null}function py(e){let t=e.parentNode;if(null==t)throw Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function my(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 hy(e){let t=dy.get(e);return void 0===t&&(t=my(e),dy.set(e,t)),t}function gy(e,t){var n=hy("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),dy.set(n,t)}function vy(e){for(;null!==e&&!cy.$isRootOrShadowRoot(e);){let t=e.getLatest(),n=e.getParent();0===t.getChildrenSize()&&e.remove(!0),e=n}}function by(e,t,n,r,o=null){if(0!==t.length){var i=t[0],l=new Map,a=[];(i=cy.$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(),cy.$isRootOrShadowRoot(i))break}u=new Set;for(var c=0;c<n;c++){var d=t[c];cy.$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&&cy.$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()),cy.$isElementNode(t)&&t.getChildrenKeys().forEach((e=>f.add(e)))})),vy(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,cy.$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(),cy.$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=cy.$getPreviousSelection(),cy.$isRangeSelection(a)&&a.anchor.getNode().isAttached()&&a.focus.getNode().isAttached()?cy.$setSelection(a.clone()):null!==t?t.selectEnd():e.dirty=!0}}function yy(e,t,n,r){e.modify(t?"extend":"move",n,r)}function xy(e){return e=e.anchor.getNode(),"rtl"===(cy.$isRootNode(e)?e:e.getParentOrThrow()).getDirection()}gm.$addNodeStyle=function(e){let t=my(e=e.getStyle());dy.set(e,t)},gm.$cloneWithProperties=function(e){let t=(e=e.getLatest()).constructor.clone(e);return t.__parent=e.__parent,t.__next=e.__next,t.__prev=e.__prev,cy.$isElementNode(e)&&cy.$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):(cy.$isTextNode(e)&&cy.$isTextNode(t)&&(t.__format=e.__format,t.__style=e.__style,t.__mode=e.__mode,t.__detail=e.__detail),t)},gm.$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=hy(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))&&cy.$isTextNode(u))if(l=t,a=n,l=null!==(u=hy(u=u.getStyle()))&&u[l]||a,null===r)r=l;else if(r!==l){r="";break}}return null===r?n:r},gm.$isAtNodeEnd=function(e){return"text"===e.type?e.offset===e.getNode().getTextContentSize():e.offset===e.getNode().getChildrenSize()},gm.$isParentElementRTL=xy,gm.$moveCaretSelection=yy,gm.$moveCharacter=function(e,t,n){let r=xy(e);yy(e,t,n?!r:r,"character")},gm.$patchStyleText=function(e,t){var n=e.getNodes();let r=n.length-1,o=n[0],i=n[r];if(e.isCollapsed())gy(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,cy.$isTextNode(o)&&f===s&&(a=o.getNextSibling(),cy.$isTextNode(a)&&(f=c=0,o=a)),1===n.length)cy.$isTextNode(o)&&((f="element"===p?0:c>u?u:c)!==(e="element"===m?s:c>u?c:u)&&(0===f&&e===s?(gy(o,t),o.select(f,e)):(n=o.splitText(f,e),gy(n=0===f?n[0]:n[1],t),n.select(0,e-f))));else for(cy.$isTextNode(o)&&f<o.getTextContentSize()&&(0!==f&&(o=o.splitText(f)[1]),gy(o,t)),cy.$isTextNode(i)&&(f=i.getTextContent().length,i.__key!==l&&0!==e&&(e=f),e!==f&&([i]=i.splitText(e)),0!==e&&gy(i,t)),e=1;e<r;e++)s=(f=n[e]).getKey(),cy.$isTextNode(f)&&s!==o.getKey()&&s!==i.getKey()&&!f.isToken()&&gy(f,t)}},gm.$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;cy.$isTextNode(r)?o="text":cy.$isElementNode(r)||null===r||(r=r.getParentOrThrow()),cy.$isTextNode(n)?(i="text",l=n.getTextContentSize()):cy.$isElementNode(n)||null===n||(n=n.getParentOrThrow()),r&&n&&(t.set(r.getKey(),0,o),e.set(n.getKey(),l,i))},gm.$setBlocksType=function(e,t){if("root"===e.anchor.key){t=t();var n=cy.$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(!cy.$isElementNode(r)||cy.$isRootOrShadowRoot(r))r=!1;else{var o=r.getFirstChild();o=null===o||cy.$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))}},gm.$shouldOverrideDefaultCharacterSelection=function(e,t){return e=cy.$getAdjacentNode(e.focus,t),cy.$isDecoratorNode(e)&&!e.isIsolated()||cy.$isElementNode(e)&&!e.isInline()&&!e.canBeEmpty()},gm.$sliceSelectedTextNodeContent=function(e,t){if(t.isSelected()&&!t.isSegmented()&&!t.isToken()&&(cy.$isRangeSelection(e)||cy.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},gm.$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];cy.$isRootOrShadowRoot(o)?(by(e,l,l.length,t,n),l=[],i=o):null===i||null!==i&&cy.$hasAncestor(o,i)?l.push(o):(by(e,l,l.length,t,n),l=[o])}by(e,l,l.length,t,n)}},gm.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),cy.$isTextNode(t)&&(s=fy(s)),cy.$isTextNode(r)&&(e=fy(e)),void 0===t||void 0===r||null===s||null===e)return null;"BR"===s.nodeName&&([s,n]=py(s)),"BR"===e.nodeName&&([e,o]=py(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},gm.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},gm.getStyleObjectFromCSS=hy,gm.trimTextContentFromAnchor=function(e,t,n){let r=t.getNode();if(cy.$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=cy.$isElementNode(a)?a.getLastDescendant():a)}if(""===(a=r.getTextContent())&&cy.$isElementNode(r)&&!r.isInline()&&(a="\n\n"),o=r.getTextContentSize(),!cy.$isTextNode(r)||n>=o)a=r.getParent(),r.remove(),null==a||0!==a.getChildrenSize()||cy.$isRootNode(a)||a.remove(),n-=o+l,r=i;else{let s=r.getKey();l=e.getEditorState().read((()=>{const e=cy.$getNodeByKey(s);return cy.$isTextNode(e)&&e.isSimpleText()?e.getTextContent():null})),i=o-n;let u=a.slice(0,i);null!==l&&l!==a?(n=cy.$getPreviousSelection(),o=r,r.isSimpleText()?r.setTextContent(l):(o=cy.$createTextNode(l),r.replace(o)),cy.$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=cy.$createTextNode(u),r.replace(n)),n=0}}};var _y=gm,wy=_y,Ey=uy;function Cy(e,t){for(let n of t)if(e.type.startsWith(n))return!0;return!1}function ky(e,t){for(;e!==Ey.$getRoot()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function Sy(e){return 1===e.nodeType}hm.$splitNode=Ey.$splitNode,hm.$dfs=function(e,t){let n=[];e=(e||Ey.$getRoot()).getLatest(),t=t||(Ey.$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}),Ey.$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},hm.$findMatchingParent=ky,hm.$getNearestBlockElementAncestorOrThrow=function(e){let t=ky(e,(e=>Ey.$isElementNode(e)&&!e.isInline()));return Ey.$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},hm.$getNearestNodeOfType=function(e,t){for(;null!=e;){if(e instanceof t)return e;e=e.getParent()}return null},hm.$insertNodeToNearestRoot=function(e){var t=Ey.$getSelection()||Ey.$getPreviousSelection();if(Ey.$isRangeSelection(t)){var{focus:n}=t;if(t=n.getNode(),n=n.offset,Ey.$isRootOrShadowRoot(t))null==(n=t.getChildAtIndex(n))?t.append(e):n.insertBefore(e),e.selectNext();else{let r,o;Ey.$isTextNode(t)?(r=t.getParentOrThrow(),o=t.getIndexWithinParent(),0<n&&(o+=1,t.splitText(n))):(r=t,o=n),[,t]=Ey.$splitNode(r,o),t.insertBefore(e),t.selectStart()}}else Ey.$isNodeSelection(t)||Ey.DEPRECATED_$isGridSelection(t)?(t=t.getNodes())[t.length-1].getTopLevelElementOrThrow().insertAfter(e):Ey.$getRoot().append(e),t=Ey.$createParagraphNode(),e.insertAfter(t),t.select();return e.getLatest()},hm.$restoreEditorState=function(e,t){let n=new Map,r=e._pendingEditorState;for(let[e,r]of t._nodeMap){let t=wy.$cloneWithProperties(r);Ey.$isTextNode(t)&&(t.__text=r.__text),n.set(e,t)}r&&(r._nodeMap=n),e._dirtyType=2,e=t._selection,Ey.$setSelection(null===e?null:e.clone())},hm.$wrapNodeInElement=function(e,t){return t=t(),e.replace(t),t.append(e),t},hm.addClassNamesToElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&(t=t.split(" ").filter((e=>""!==e)),e.classList.add(...t))}))},hm.isHTMLAnchorElement=function(e){return Sy(e)&&"A"===e.tagName},hm.isHTMLElement=Sy,hm.isMimeType=Cy,hm.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()})),Cy(a,t)?s.readAsDataURL(a):i()};i()}))},hm.mergeRegister=function(...e){return()=>{e.forEach((e=>e()))}},hm.objectKlassEquals=function(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name},hm.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()}}}))},hm.removeClassNamesFromElement=function(e,...t){t.forEach((t=>{"string"==typeof t&&e.classList.remove(...t.split(" "))}))};var Ty=hm,Ny=Ty,Ry=uy;let Ay=new Set(["http:","https:","mailto:","sms:","tel:"]),Oy=class e extends Ry.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),Ny.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:My,priority:1})}}static importJSON(e){let t=Ly(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(!Ay.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),Ry.$isElementNode(e)?(t=Ly(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(!Ry.$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 My(e){let t=null;if(Ny.isHTMLAnchorElement(e)){let n=e.textContent;null!==n&&""!==n&&(t=Ly(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function Ly(e,t){return Ry.$applyNodeReplacement(new Oy(e,t))}function Py(e){return e instanceof Oy}let Iy=class e extends Oy{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=Dy(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),Ry.$isElementNode(e)?(t=Dy(this.__url,{rel:this._rel,target:this.__target,title:this.__title}),e.append(t),t):null}};function Dy(e,t){return Ry.$applyNodeReplacement(new Iy(e,t))}let $y=Ry.createCommand("TOGGLE_LINK_COMMAND");mm.$createAutoLinkNode=Dy,mm.$createLinkNode=Ly,mm.$isAutoLinkNode=function(e){return e instanceof Iy},mm.$isLinkNode=Py,mm.AutoLinkNode=Iy,mm.LinkNode=Oy,mm.TOGGLE_LINK_COMMAND=$y,mm.toggleLink=function(e,t={}){let{target:n,title:r}=t,o=void 0===t.rel?"noreferrer":t.rel;if(t=Ry.$getSelection(),Ry.$isRangeSelection(t))if(t=t.extract(),null===e)t.forEach((e=>{if(Py(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=Py(i)?i:function(e,t){for(;null!==e&&null!==(e=e.getParent())&&!t(e););return e}(i,Py),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&&(!Ry.$isElementNode(t)||t.isInline()))if(Py(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=Ly(e,{rel:o,target:n}),Py(i)?null===t.getPreviousSibling()?i.insertBefore(a):i.insertAfter(a):t.insertBefore(a)),Py(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 zy=mm,Fy={},By=uy,Hy=Ty;function Wy(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 jy(e){let t=1;for(e=e.getParent();null!=e;){if(ix(e)){if(fx(e=e.getParent())){t++,e=e.getParent();continue}Wy(40)}break}return t}function Ky(e){fx(e=e.getParent())||Wy(40);let t=e;for(;null!==t;)t=t.getParent(),fx(t)&&(e=t);return e}function Uy(e){let t=[];e=e.getChildren().filter(ix);for(let n=0;n<e.length;n++){let r=e[n],o=r.getFirstChild();fx(o)?t=t.concat(Uy(o)):t.push(r)}return t}function Yy(e){return ix(e)&&fx(e.getFirstChild())}function Gy(e){return ox().append(e)}function Vy(e,t){return ix(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function Qy(e,t){e.splice(e.getChildrenSize(),0,t)}function Xy(e,t){if(fx(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),o=ox();return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),Qy(o,e.getChildren()),fx(n)&&t===n.getListType()?(n.append(o),e.remove(),fx(r)&&t===r.getListType()&&(Qy(n,r.getChildren()),r.remove()),n):fx(r)&&t===r.getListType()?(r.getFirstChildOrThrow().insertBefore(o),e.remove(),r):((t=dx(t)).append(o),e.replace(t),Jy(t),t)}function qy(e,t){var n=e.getLastChild();let r=t.getFirstChild();n&&r&&Yy(n)&&Yy(r)&&(qy(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(ix(i)){let e=i.getValue();var n=i,r=n.getParent(),o=1;for(null!=r&&(fx(r)?o=r.getStart():Wy(44)),n=n.getPreviousSiblings(),r=0;r<n.length;r++){let e=n[r];ix(e)&&!fx(e.getFirstChild())&&o++}e!==o&&i.setValue(o)}}}function Zy(e){if(!Yy(e)){var t=e.getParent(),n=t?t.getParent():void 0,r=n?n.getParent():void 0;if(fx(r)&&ix(n)&&fx(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=ox();let r=dx(l);o.append(r),e.getPreviousSiblings().forEach((e=>r.append(e))),i=ox(),l=dx(l),i.append(l),Qy(l,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(i),n.replace(e)}Jy(t),Jy(r)}}}let ex=class e extends By.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 fx(n)&&"check"===n.getListType()&&nx(t,this,null),t.value=this.__value,tx(t,e.theme,this),t}updateDOM(e,t,n){let r=this.getParent();return fx(r)&&"check"===r.getListType()&&nx(t,this,e),t.value=this.__value,tx(t,n.theme,this),!1}static transform(){return e=>{let t=e.getParent();fx(t)&&(Jy(t),"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0))}}static importDOM(){return{li:()=>({conversion:rx,priority:0})}}static importJSON(e){let t=ox();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(By.$isElementNode(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(ix(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!fx(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=dx(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();fx(n)||Wy(39);var r=this.getNextSiblings();if(ix(e))return t=super.insertAfter(e,t),fx(e=e.getParentOrThrow())&&Jy(e),t;if(fx(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=dx(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&&Yy(t)&&Yy(n)?(qy(t.getFirstChild(),n.getFirstChild()),n.remove()):n&&(fx(e=n.getParent())&&Jy(e))}insertNewAfter(e,t=!0){return e=ox(null==this.__checked&&void 0),this.insertAfter(e,t),e}collapseAtStart(e){let t=By.$createParagraphNode();this.getChildren().forEach((e=>t.append(e)));var n=this.getParentOrThrow(),r=n.getParentOrThrow();let o=ix(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(;ix(e);)e=e.getParentOrThrow().getParentOrThrow(),t++;return t}setIndent(e){"number"==typeof e&&-1<e||Wy(117);let t=this.getIndent();for(;t!==e;)if(t<e){e:{var n=new Set;if(Yy(this)||n.has(this.getKey()))break e;let e=this.getParent();var r=this.getNextSibling(),o=this.getPreviousSibling();if(Yy(r)&&Yy(o)){if(fx(o=o.getFirstChild())){o.append(this);var i=r.getFirstChild();fx(i)&&(Qy(o,i=i.getChildren()),r.remove(),n.add(r.getKey())),Jy(o)}}else Yy(r)?fx(r=r.getFirstChild())&&(null!==(n=r.getFirstChild())&&n.insertBefore(this),Jy(r)):Yy(o)?fx(r=o.getFirstChild())&&(r.append(this),Jy(r)):fx(e)&&(n=ox(),i=dx(e.getListType()),n.append(i),i.append(this),o?o.insertAfter(n):r?r.insertBefore(n):e.append(n),Jy(i));fx(e)&&Jy(e)}t++}else Zy(this),t--;return this}insertBefore(e){if(ix(e)){let e=this.getParentOrThrow();if(fx(e)){Jy(e,this.getNextSiblings())}}return super.insertBefore(e)}canInsertAfter(e){return ix(e)}canReplaceWith(e){return ix(e)}canMergeWith(e){return By.$isParagraphNode(e)||ix(e)}extractWithChild(e,t){if(!By.$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 dx("bullet")}};function tx(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=fx(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=>fx(e)))?r.push(...l):o.push(...l)),0<o.length&&Hy.removeClassNamesFromElement(e,...o),0<r.length&&Hy.addClassNamesToElement(e,...r)}function nx(e,t,n){fx(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 rx(e){return{node:ox(e=Hy.isHTMLElement(e)&&"true"===e.getAttribute("aria-checked"))}}function ox(e){return By.$applyNodeReplacement(new ex(void 0,e))}function ix(e){return e instanceof ex}let lx=class e extends By.ElementNode{static getType(){return"list"}static clone(t){return new e(t.__listType||cx[t.__tag],t.__start,t.__key)}constructor(e,t,n){super(n),this.__listType=e=cx[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,ax(t,e.theme,this),t}updateDOM(e,t,n){return e.__tag!==this.__tag||(ax(t,n.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:ux,priority:0}),ul:()=>({conversion:ux,priority:0})}}static importJSON(e){let t=dx(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(ix(t))super.append(t);else{let e=ox();fx(t)?e.append(t):By.$isElementNode(t)?(t=By.$createTextNode(t.getTextContent()),e.append(t)):e.append(t),super.append(e)}}return Jy(this),this}extractWithChild(e){return ix(e)}};function ax(e,t,n){let r=[],o=[];var i=t.list;if(void 0!==i){let e=i[`${n.__tag}Depth`]||[],a=(t=jy(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&&Hy.removeClassNamesFromElement(e,...o),0<r.length&&Hy.addClassNamesToElement(e,...r)}function sx(e){let t=[];for(let r=0;r<e.length;r++){var n=e[r];ix(n)?(t.push(n),1<(n=n.getChildren()).length&&n.forEach((e=>{fx(e)&&t.push(Gy(e))}))):t.push(Gy(n))}return t}function ux(e){let t=e.nodeName.toLowerCase(),n=null;return"ol"===t?n=dx("number",e.start):"ul"===t&&(n=Hy.isHTMLElement(e)&&"check"===e.getAttribute("__lexicallisttype")?dx("check"):dx("bullet")),{after:sx,node:n}}let cx={ol:"number",ul:"bullet"};function dx(e,t=1){return By.$applyNodeReplacement(new lx(e,t))}function fx(e){return e instanceof lx}let px=By.createCommand("INSERT_UNORDERED_LIST_COMMAND"),mx=By.createCommand("INSERT_ORDERED_LIST_COMMAND"),hx=By.createCommand("INSERT_CHECK_LIST_COMMAND"),gx=By.createCommand("REMOVE_LIST_COMMAND");Fy.$createListItemNode=ox,Fy.$createListNode=dx,Fy.$getListDepth=jy,Fy.$handleListInsertParagraph=function(){var e=By.$getSelection();if(!By.$isRangeSelection(e)||!e.isCollapsed())return!1;if(!ix(e=e.anchor.getNode())||""!==e.getTextContent())return!1;var t=Ky(e),n=e.getParent();fx(n)||Wy(40);let r,o=n.getParent();if(By.$isRootOrShadowRoot(o))r=By.$createParagraphNode(),t.insertAfter(r);else{if(!ix(o))return!1;r=ox(),o.insertAfter(r)}if(r.select(),0<(t=e.getNextSiblings()).length){let e=dx(n.getListType());By.$isParagraphNode(r)?r.insertAfter(e):((n=ox()).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||!ix(e)&&!fx(e))break;e=t}e.remove()}(e),!0},Fy.$isListItemNode=ix,Fy.$isListNode=fx,Fy.INSERT_CHECK_LIST_COMMAND=hx,Fy.INSERT_ORDERED_LIST_COMMAND=mx,Fy.INSERT_UNORDERED_LIST_COMMAND=px,Fy.ListItemNode=ex,Fy.ListNode=lx,Fy.REMOVE_LIST_COMMAND=gx,Fy.insertList=function(e,t){e.update((()=>{var e=By.$getSelection();if(By.$isRangeSelection(e)||By.DEPRECATED_$isGridSelection(e)){var n=e.getNodes(),r=(e=e.anchor.getNode()).getParent();if(Vy(e,n))n=dx(t),By.$isRootOrShadowRoot(r)?(e.replace(n),r=ox(),By.$isElementNode(e)&&(r.setFormat(e.getFormatType()),r.setIndent(e.getIndent())),n.append(r)):ix(e)&&(Qy(n,(e=e.getParentOrThrow()).getChildren()),e.replace(n));else for(e=new Set,r=0;r<n.length;r++){var o=n[r];if(By.$isElementNode(o)&&o.isEmpty()&&!e.has(o.getKey()))Xy(o,t);else if(By.$isLeafNode(o))for(o=o.getParent();null!=o;){let n=o.getKey();if(fx(o)){if(!e.has(n)){var i=dx(t);Qy(i,o.getChildren()),o.replace(i),Jy(i),e.add(n)}break}if(i=o.getParent(),By.$isRootOrShadowRoot(i)&&!e.has(n)){e.add(n),Xy(o,t);break}o=i}}}}))},Fy.removeList=function(e){e.update((()=>{let e=By.$getSelection();if(By.$isRangeSelection(e)){var t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(Vy(r,n))t.add(Ky(r));else for(r=0;r<n.length;r++){var o=n[r];By.$isLeafNode(o)&&(null!=(o=Hy.$getNearestNodeOfType(o,ex))&&t.add(Ky(o)))}for(let r of t){t=r,n=Uy(r);for(let r of n)Qy(n=By.$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 vx=Fy,bx={},yx={},xx=X;let _x=xx.createContext(null);yx.LexicalComposerContext=_x,yx.createLexicalComposerContext=function(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}},yx.useLexicalComposerContext=function(){let e=xx.useContext(_x);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 wx=yx,Ex=wx,Cx=uy,kx=X;let Sx="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;var Tx=Sx?kx.useLayoutEffect:kx.useEffect;let Nx={tag:"history-merge"};bx.LexicalComposer=function({initialConfig:e,children:t}){let n=kx.useMemo((()=>{const{theme:t,namespace:n,editor__DEPRECATED:r,nodes:o,onError:i,editorState:l}=e,a=Ex.createLexicalComposerContext(null,t);let s=r||null;if(null===s){const r=Cx.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=Cx.$getRoot();if(t.isEmpty()){let n=Cx.$createParagraphNode();t.append(n),t=Sx?document.activeElement:null,(null!==Cx.$getSelection()||null!==t&&t===e.getRootElement())&&n.select()}}),Nx);else if(null!==t)switch(typeof t){case"string":let n=e.parseEditorState(t);e.setEditorState(n,Nx);break;case"object":e.setEditorState(t,Nx);break;case"function":e.update((()=>{Cx.$getRoot().isEmpty()&&t(e)}),Nx)}}(r,l),s=r}return[s,a]}),[]);return Tx((()=>{let t=e.editable,[r]=n;r.setEditable(void 0===t||t)}),[]),kx.createElement(Ex.LexicalComposerContext.Provider,{value:n},t)};var Rx=bx,Ax={},Ox={},Mx=Ty,Lx=uy;function Px(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(!(Lx.$isRangeSelection(i)&&Lx.$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))||Lx.$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)&&Lx.$isTextNode(t)&&1===t.__text.length&&1===i.anchor.offset?2:0):(t=a[0],e=e._nodeMap.get(t.__key),Lx.$isTextNode(e)&&Lx.$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;Lx.$isRangeSelection(m)&&Lx.$isRangeSelection(e)&&(t="element"===m.anchor.type&&"element"===m.focus.type&&"text"===e.anchor.type&&"text"===e.focus.type),f=!(t||!Lx.$isTextNode(f)||!Lx.$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}}Ox.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},Ox.registerHistory=function(e,t,n){let r=Px(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(Lx.CAN_REDO_COMMAND,!1)),null!==s&&(c.push({...s}),e.dispatchCommand(Lx.CAN_UNDO_COMMAND,!0));else if(2===o)return;t.current={editor:e,editorState:n}}};let o=Mx.mergeRegister(e.registerCommand(Lx.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(Lx.CAN_REDO_COMMAND,!0)),0===r.length&&e.dispatchCommand(Lx.CAN_UNDO_COMMAND,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:"historic"})}return!0}),Lx.COMMAND_PRIORITY_EDITOR),e.registerCommand(Lx.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(Lx.CAN_UNDO_COMMAND,!0)),r=n.pop(),0===n.length&&e.dispatchCommand(Lx.CAN_REDO_COMMAND,!1),t.current=r||null,r&&r.editor.setEditorState(r.editorState,{tag:"historic"})}return!0}),Lx.COMMAND_PRIORITY_EDITOR),e.registerCommand(Lx.CLEAR_EDITOR_COMMAND,(()=>(t.undoStack=[],t.redoStack=[],t.current=null,!1)),Lx.COMMAND_PRIORITY_EDITOR),e.registerCommand(Lx.CLEAR_HISTORY_COMMAND,(()=>(t.undoStack=[],t.redoStack=[],t.current=null,e.dispatchCommand(Lx.CAN_REDO_COMMAND,!1),e.dispatchCommand(Lx.CAN_UNDO_COMMAND,!1),!0)),Lx.COMMAND_PRIORITY_EDITOR),e.registerUpdateListener(n)),i=e.registerUpdateListener(n);return()=>{o(),i()}};var Ix=wx,Dx=Ox,$x=X;Ax.createEmptyHistoryState=Dx.createEmptyHistoryState,Ax.HistoryPlugin=function({externalHistoryState:e}){let[t]=Ix.useLexicalComposerContext();return function(e,t,n=1e3){let r=$x.useMemo((()=>t||Dx.createEmptyHistoryState()),[t]);$x.useEffect((()=>Dx.registerHistory(e,r,n)),[n,e,r])}(t,e),null};var zx=Ax,Fx={},Bx=vx,Hx=wx,Wx=X,jx=Ty,Kx=uy;Fx.ListPlugin=function(){let[e]=Hx.useLexicalComposerContext();return Wx.useEffect((()=>{if(!e.hasNodes([Bx.ListNode,Bx.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")}),[e]),function(e){Wx.useEffect((()=>jx.mergeRegister(e.registerCommand(Bx.INSERT_ORDERED_LIST_COMMAND,(()=>(Bx.insertList(e,"number"),!0)),Kx.COMMAND_PRIORITY_LOW),e.registerCommand(Bx.INSERT_UNORDERED_LIST_COMMAND,(()=>(Bx.insertList(e,"bullet"),!0)),Kx.COMMAND_PRIORITY_LOW),e.registerCommand(Bx.REMOVE_LIST_COMMAND,(()=>(Bx.removeList(e),!0)),Kx.COMMAND_PRIORITY_LOW),e.registerCommand(Kx.INSERT_PARAGRAPH_COMMAND,(()=>!!Bx.$handleListInsertParagraph()),Kx.COMMAND_PRIORITY_LOW))),[e])}(e),null};var Ux=Fx,Yx={},Gx=wx,Vx=Ty,Qx=uy,Xx=X;function qx(e){return e.registerCommand(Qx.KEY_TAB_COMMAND,(t=>{let n=Qx.$getSelection();return!!Qx.$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=>Qx.$isBlockElementNode(e)&&e.canIndent()?e:null)).length)return!0;if(t=e.anchor,t=(e=(e=e.focus).isBefore(t)?e:t).getNode(),(t=Vx.$getNearestBlockElementAncestorOrThrow(t)).canIndent()){t=t.getKey();let n=Qx.$createRangeSelection();if(n.anchor.set(t,0,"element"),n.focus.set(t,0,"element"),n=Qx.$normalizeSelection__EXPERIMENTAL(n),n.anchor.is(e))return!0}return!1}(n)?t.shiftKey?Qx.OUTDENT_CONTENT_COMMAND:Qx.INDENT_CONTENT_COMMAND:Qx.INSERT_TAB_COMMAND,e.dispatchCommand(t,void 0))}),Qx.COMMAND_PRIORITY_EDITOR)}Yx.TabIndentationPlugin=function(){let[e]=Gx.useLexicalComposerContext();return Xx.useEffect((()=>qx(e))),null},Yx.registerTabIndentation=qx;var Jx=Yx,Zx={},e_={},t_={},n_=_y,r_=uy;function o_(e,t,n,r=null){let o=null==r||t.isSelected(r),i=r_.$isElementNode(t)&&t.excludeFromCopy("html");var l=t;null!==r&&(l=n_.$cloneWithProperties(t),l=r_.$isTextNode(l)&&null!=r?n_.$sliceSelectedTextNodeContent(r,l):l);let a=r_.$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=o_(e,i,c,r);!o&&r_.$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 i_=new Set(["STYLE","SCRIPT"]);function l_(e,t,n=new Map,r){let o=[];if(i_.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(...l_(e[u],t,new Map(n),i));return null!=l&&(r=l(r)),null==i?o=o.concat(r):r_.$isElementNode(i)&&i.append(...r),o}t_.$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=r_.$getRoot().getChildren();for(let o=0;o<r.length;o++)o_(e,r[o],n,t);return n.innerHTML},t_.$generateNodesFromDOM=function(e,t){t=t.body?t.body.childNodes:[];let n=[];for(let o=0;o<t.length;o++){var r=t[o];i_.has(r.nodeName)||null!==(r=l_(r,e))&&(n=n.concat(r))}return n};var a_=t_,s_=_y,u_=Ty,c_=uy;function d_(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 f_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function p_(e){let t=c_.$getSelection();if(null==t)throw Error("Expected valid LexicalSelection");return c_.$isRangeSelection(t)&&t.isCollapsed()||0===t.getNodes().length?"":a_.$generateHtmlFromNodes(e,t)}function m_(e){let t=c_.$getSelection();if(null==t)throw Error("Expected valid LexicalSelection");return c_.$isRangeSelection(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(v_(e,t))}function h_(e,t,n){(c_.DEPRECATED_$isGridSelection(n)||null!==u_.$findMatchingParent(n.anchor.getNode(),(e=>c_.DEPRECATED_$isGridCellNode(e)))&&null!==u_.$findMatchingParent(n.focus.getNode(),(e=>c_.DEPRECATED_$isGridCellNode(e))))&&1===t.length&&c_.DEPRECATED_$isGridNode(t[0])?function(e,t,n,r){1===e.length&&c_.DEPRECATED_$isGridNode(e[0])||d_(42);var o=e[0];e=o.getChildren(),n=o.getFirstChildOrThrow().getChildrenSize();var i=o.getChildrenSize(),l=u_.$findMatchingParent(t.anchor.getNode(),(e=>c_.DEPRECATED_$isGridCellNode(e)));t=(o=l&&u_.$findMatchingParent(l,(e=>c_.DEPRECATED_$isGridRowNode(e))))&&u_.$findMatchingParent(o,(e=>c_.DEPRECATED_$isGridNode(e))),c_.DEPRECATED_$isGridCellNode(l)&&c_.DEPRECATED_$isGridRowNode(o)&&c_.DEPRECATED_$isGridNode(t)||d_(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];c_.DEPRECATED_$isGridRowNode(d)||d_(24);var f=e[l];c_.DEPRECATED_$isGridRowNode(f)||d_(24),d=d.getChildren(),f=f.getChildren();let r=0;for(let e=n;e<=i;e++){let l=d[e];c_.DEPRECATED_$isGridCellNode(l)||d_(25);let s=f[r];c_.DEPRECATED_$isGridCellNode(s)||d_(25),t===o&&e===n?u=l.getKey():t===a&&e===i&&(c=l.getKey());let p=l.getChildren();s.getChildren().forEach((e=>{c_.$isTextNode(e)&&c_.$createParagraphNode().append(e),l.append(e)})),p.forEach((e=>e.remove())),r++}l++}u&&c&&(e=c_.DEPRECATED_$createGridSelection(),e.set(t.getKey(),u,c),c_.$setSelection(e),r.dispatchCommand(c_.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=c_.$isLineBreakNode(o);if(i||c_.$isDecoratorNode(o)&&o.isInline()||c_.$isElementNode(o)&&o.isInline()||c_.$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}c_.$isRangeSelection(t)?t.insertNodes(n):c_.DEPRECATED_$isGridSelection(t)&&(e=t.anchor.getNode(),c_.DEPRECATED_$isGridCellNode(e)||d_(41),e.append(...n))}(t,n)}function g_(e,t,n,r=[]){let o=null==t||n.isSelected(t),i=c_.$isElementNode(n)&&n.excludeFromCopy("html");var l=n;if(null!==t){var a=s_.$cloneWithProperties(n);l=a=c_.$isTextNode(a)&&null!=t?s_.$sliceSelectedTextNodeContent(t,a):a}let s=c_.$isElementNode(l)?l.getChildren():[];var u=l;a=u.exportJSON();var c=u.constructor;a.type!==c.getType()&&d_(58,c.name);let d=a.children;for(c_.$isElementNode(u)&&(Array.isArray(d)||d_(59,c.name)),c_.$isTextNode(l)&&(0<(l=l.__text).length?a.text=l:o=!1),l=0;l<s.length;l++)c=g_(e,t,u=s[l],a.children),!o&&c_.$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 v_(e,t){let n=[],r=c_.$getRoot().getChildren();for(let o=0;o<r.length;o++)g_(e,t,r[o],n);return{namespace:e._config.namespace,nodes:n}}function b_(e){let t=[];for(let n=0;n<e.length;n++){let r=c_.$parseSerializedNode(e[n]);c_.$isTextNode(r)&&s_.$addNodeStyle(r),t.push(r)}return t}let y_=null;function x_(e,t){var n=f_?(e._window||window).getSelection():null;if(!n)return!1;var r=n.anchorNode;if(n=n.focusNode,null!==r&&null!==n&&!c_.isSelectionWithinEditor(e,r,n))return!1;if(t.preventDefault(),t=t.clipboardData,r=c_.$getSelection(),null===t||null===r)return!1;n=p_(e),e=m_(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}e_.$generateJSONFromSelectedNodes=v_,e_.$generateNodesFromSerializedNodes=b_,e_.$getHtmlContent=p_,e_.$getLexicalContent=m_,e_.$insertDataTransferForPlainText=function(e,t){null!=(e=e.getData("text/plain")||e.getData("text/uri-list"))&&t.insertRawText(e)},e_.$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 h_(n,b_(e.nodes),t)}}catch(e){}if(r=e.getData("text/html"))try{var o=(new DOMParser).parseFromString(r,"text/html"),i=a_.$generateNodesFromDOM(n,o);return h_(n,i,t)}catch(e){}if(null!=(e=e.getData("text/plain")||e.getData("text/uri-list")))if(c_.$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([c_.$createTabNode()]):t.insertText(i);else t.insertRawText(e)},e_.$insertGeneratedNodes=h_,e_.copyToClipboard=async function(e,t){if(null!==y_)return!1;if(null!==t)return new Promise((n=>{e.update((()=>{n(x_(e,t))}))}));var n=e.getRootElement();let r=null==e._window?window.document:e._window.document,o=f_?(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(c_.COPY_COMMAND,(r=>(u_.objectKlassEquals(r,ClipboardEvent)&&(n(),null!==y_&&(window.clearTimeout(y_),y_=null),t(x_(e,r))),!0)),c_.COMMAND_PRIORITY_CRITICAL);y_=window.setTimeout((()=>{n(),y_=null,t(!1)}),50),r.execCommand("copy"),i.remove()}))};var __=e_,w_=_y,E_=Ty,C_=uy;function k_(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 S_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,T_=S_&&"documentMode"in document?document.documentMode:null,N_=!(!S_||!("InputEvent"in window)||T_)&&"getTargetRanges"in new window.InputEvent("input"),R_=S_&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),A_=S_&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,O_=S_&&/^(?=.*Chrome).*/i.test(navigator.userAgent),M_=S_&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!O_,L_=C_.createCommand("DRAG_DROP_PASTE_FILE"),P_=class e extends C_.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 E_.addClassNamesToElement(t,e.theme.quote),t}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:F_,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=I_();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(e,t){e=C_.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=C_.$createParagraphNode();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}};function I_(){return C_.$applyNodeReplacement(new P_)}let D_=class e extends C_.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)&&E_.addClassNamesToElement(n,e[t]),n}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:z_,priority:0}),h2:()=>({conversion:z_,priority:0}),h3:()=>({conversion:z_,priority:0}),h4:()=>({conversion:z_,priority:0}),h5:()=>({conversion:z_,priority:0}),h6:()=>({conversion:z_,priority:0}),p:e=>null!==(e=e.firstChild)&&$_(e)?{conversion:()=>({node:null}),priority:3}:null,span:e=>$_(e)?{conversion:()=>({node:B_("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=B_(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()?B_(this.getTag()):C_.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.isEmpty()?C_.$createParagraphNode():B_(this.getTag());return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}extractWithChild(){return!0}};function $_(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function z_(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=B_(t),null!==e.style&&n.setFormat(e.style.textAlign)),{node:n}}function F_(e){let t=I_();return null!==e.style&&t.setFormat(e.style.textAlign),{node:t}}function B_(e){return C_.$applyNodeReplacement(new D_(e))}function H_(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 W_(e){var t=C_.$getSelection();if(!C_.$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=E_.$getNearestBlockElementAncestorOrThrow(r)).getKey(),r.canIndent()&&!n.has(o)&&(n.add(o),e(r)))}return 0<n.size}function j_(e){return e=C_.$getNearestNodeFromDOMNode(e),C_.$isDecoratorNode(e)}Zx.$createHeadingNode=B_,Zx.$createQuoteNode=I_,Zx.$isHeadingNode=function(e){return e instanceof D_},Zx.$isQuoteNode=function(e){return e instanceof P_},Zx.DRAG_DROP_PASTE=L_,Zx.HeadingNode=D_,Zx.QuoteNode=P_,Zx.eventFiles=H_,Zx.registerRichText=function(e){return E_.mergeRegister(e.registerCommand(C_.CLICK_COMMAND,(()=>{const e=C_.$getSelection();return!!C_.$isNodeSelection(e)&&(e.clear(),!0)}),0),e.registerCommand(C_.DELETE_CHARACTER_COMMAND,(e=>{const t=C_.$getSelection();return!!C_.$isRangeSelection(t)&&(t.deleteCharacter(e),!0)}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.DELETE_WORD_COMMAND,(e=>{const t=C_.$getSelection();return!!C_.$isRangeSelection(t)&&(t.deleteWord(e),!0)}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.DELETE_LINE_COMMAND,(e=>{const t=C_.$getSelection();return!!C_.$isRangeSelection(t)&&(t.deleteLine(e),!0)}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.CONTROLLED_TEXT_INSERTION_COMMAND,(t=>{const n=C_.$getSelection();if("string"==typeof t)C_.$isRangeSelection(n)?n.insertText(t):C_.DEPRECATED_$isGridSelection(n);else{if(!C_.$isRangeSelection(n)&&!C_.DEPRECATED_$isGridSelection(n))return!1;const r=t.dataTransfer;null!=r?__.$insertDataTransferForRichText(r,n,e):C_.$isRangeSelection(n)&&(t=t.data)&&n.insertText(t)}return!0}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.REMOVE_TEXT_COMMAND,(()=>{const e=C_.$getSelection();return!!C_.$isRangeSelection(e)&&(e.removeText(),!0)}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.FORMAT_TEXT_COMMAND,(e=>{const t=C_.$getSelection();return!!C_.$isRangeSelection(t)&&(t.formatText(e),!0)}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.FORMAT_ELEMENT_COMMAND,(e=>{var t=C_.$getSelection();if(!C_.$isRangeSelection(t)&&!C_.$isNodeSelection(t))return!1;t=t.getNodes();for(const n of t)t=E_.$findMatchingParent(n,(e=>C_.$isElementNode(e)&&!e.isInline())),null!==t&&t.setFormat(e);return!0}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.INSERT_LINE_BREAK_COMMAND,(e=>{const t=C_.$getSelection();return!!C_.$isRangeSelection(t)&&(t.insertLineBreak(e),!0)}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.INSERT_PARAGRAPH_COMMAND,(()=>{const e=C_.$getSelection();return!!C_.$isRangeSelection(e)&&(e.insertParagraph(),!0)}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.INSERT_TAB_COMMAND,(()=>(C_.$insertNodes([C_.$createTabNode()]),!0)),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.INDENT_CONTENT_COMMAND,(()=>W_((e=>{const t=e.getIndent();e.setIndent(t+1)}))),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.OUTDENT_CONTENT_COMMAND,(()=>W_((e=>{const t=e.getIndent();0<t&&e.setIndent(t-1)}))),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.KEY_ARROW_UP_COMMAND,(e=>{var t=C_.$getSelection();if(C_.$isNodeSelection(t)&&!j_(e.target)){if(0<(e=t.getNodes()).length)return e[0].selectPrevious(),!0}else if(C_.$isRangeSelection(t)&&(t=C_.$getAdjacentNode(t.focus,!0),!e.shiftKey&&C_.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline()))return t.selectPrevious(),e.preventDefault(),!0;return!1}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.KEY_ARROW_DOWN_COMMAND,(e=>{var t=C_.$getSelection();if(C_.$isNodeSelection(t)){if(0<(e=t.getNodes()).length)return e[0].selectNext(0,0),!0}else if(C_.$isRangeSelection(t)){let n=t.focus;if("root"===n.key&&n.offset===C_.$getRoot().getChildrenSize())return e.preventDefault(),!0;if(t=C_.$getAdjacentNode(t.focus,!1),!e.shiftKey&&C_.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline())return t.selectNext(),e.preventDefault(),!0}return!1}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.KEY_ARROW_LEFT_COMMAND,(e=>{const t=C_.$getSelection();if(C_.$isNodeSelection(t)){var n=t.getNodes();if(0<n.length)return e.preventDefault(),n[0].selectPrevious(),!0}return!!C_.$isRangeSelection(t)&&(!!w_.$shouldOverrideDefaultCharacterSelection(t,!0)&&(n=e.shiftKey,e.preventDefault(),w_.$moveCharacter(t,n,!0),!0))}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.KEY_ARROW_RIGHT_COMMAND,(e=>{const t=C_.$getSelection();if(C_.$isNodeSelection(t)&&!j_(e.target)){var n=t.getNodes();if(0<n.length)return e.preventDefault(),n[0].selectNext(0,0),!0}return!!C_.$isRangeSelection(t)&&(n=e.shiftKey,!!w_.$shouldOverrideDefaultCharacterSelection(t,!1)&&(e.preventDefault(),w_.$moveCharacter(t,n,!1),!0))}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.KEY_BACKSPACE_COMMAND,(t=>{if(j_(t.target))return!1;const n=C_.$getSelection();if(!C_.$isRangeSelection(n))return!1;t.preventDefault(),({anchor:t}=n);const r=t.getNode();return n.isCollapsed()&&0===t.offset&&!C_.$isRootNode(r)&&0<E_.$getNearestBlockElementAncestorOrThrow(r).getIndent()?e.dispatchCommand(C_.OUTDENT_CONTENT_COMMAND,void 0):e.dispatchCommand(C_.DELETE_CHARACTER_COMMAND,!0)}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.KEY_DELETE_COMMAND,(t=>{if(j_(t.target))return!1;const n=C_.$getSelection();return!!C_.$isRangeSelection(n)&&(t.preventDefault(),e.dispatchCommand(C_.DELETE_CHARACTER_COMMAND,!1))}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.KEY_ENTER_COMMAND,(t=>{const n=C_.$getSelection();if(!C_.$isRangeSelection(n))return!1;if(null!==t){if((A_||R_||M_)&&N_)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(C_.INSERT_LINE_BREAK_COMMAND,!1)}return e.dispatchCommand(C_.INSERT_PARAGRAPH_COMMAND,void 0)}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.KEY_ESCAPE_COMMAND,(()=>{const t=C_.$getSelection();return!!C_.$isRangeSelection(t)&&(e.blur(),!0)}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.DROP_COMMAND,(t=>{const[,n]=H_(t);if(0<n.length){var r=k_(t.clientX,t.clientY);if(null!==r){const{offset:t,node:i}=r;var o=C_.$getNearestNodeFromDOMNode(i);if(null!==o){if(r=C_.$createRangeSelection(),C_.$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=C_.$normalizeSelection__EXPERIMENTAL(r),C_.$setSelection(r)}e.dispatchCommand(L_,n)}return t.preventDefault(),!0}return t=C_.$getSelection(),!!C_.$isRangeSelection(t)}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.DRAGSTART_COMMAND,(e=>{[e]=H_(e);const t=C_.$getSelection();return!(e&&!C_.$isRangeSelection(t))}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.DRAGOVER_COMMAND,(e=>{var[t]=H_(e);const n=C_.$getSelection();return!(t&&!C_.$isRangeSelection(n))&&(null!==(t=k_(e.clientX,e.clientY))&&(t=C_.$getNearestNodeFromDOMNode(t.node),C_.$isDecoratorNode(t)&&e.preventDefault()),!0)}),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.COPY_COMMAND,(t=>(__.copyToClipboard(e,E_.objectKlassEquals(t,ClipboardEvent)?t:null),!0)),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.CUT_COMMAND,(t=>(async function(e,t){await __.copyToClipboard(t,E_.objectKlassEquals(e,ClipboardEvent)?e:null),t.update((()=>{let e=C_.$getSelection();C_.$isRangeSelection(e)?e.removeText():C_.$isNodeSelection(e)&&e.getNodes().forEach((e=>e.remove()))}))}(t,e),!0)),C_.COMMAND_PRIORITY_EDITOR),e.registerCommand(C_.PASTE_COMMAND,(t=>{const[,n,r]=H_(t);if(0<n.length&&!r)return e.dispatchCommand(L_,n),!0;if(C_.isSelectionCapturedInDecoratorInput(t.target))return!1;const o=C_.$getSelection();return!(!C_.$isRangeSelection(o)&&!C_.DEPRECATED_$isGridSelection(o))&&(function(e,t){e.preventDefault(),t.update((()=>{let n=C_.$getSelection(),r=e instanceof InputEvent||e instanceof KeyboardEvent?null:e.clipboardData;null!=r&&(C_.$isRangeSelection(n)||C_.DEPRECATED_$isGridSelection(n))&&__.$insertDataTransferForRichText(r,n,t)}),{tag:"paste"})}(t,e),!0)}),C_.COMMAND_PRIORITY_EDITOR))};var K_=Zx,U_={},Y_=zy,G_=wx,V_=Ty,Q_=uy,X_=X;function q_(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 Z_(e){var t;return e=e.getPreviousSibling(),Q_.$isElementNode(e)&&(e=e.getLastDescendant()),!(t=null===e||Q_.$isLineBreakNode(e))&&(t=Q_.$isTextNode(e))&&(e=e.getTextContent(),t=J_.test(e[e.length-1])),t}function ew(e){return e=e.getNextSibling(),Q_.$isElementNode(e)&&(e=e.getFirstDescendant()),null===e||Q_.$isLineBreakNode(e)||Q_.$isTextNode(e)&&J_.test(e.getTextContent()[0])}function tw(e,t,n){var r=e.getChildren();let o=r.length;for(let t=0;t<o;t++){let o=r[t];if(!Q_.$isTextNode(o)||!o.isSimpleText())return nw(e),void n(null,e.getURL())}null===(t=q_(r=e.getTextContent(),t))||t.text!==r?(nw(e),n(null,e.getURL())):Z_(e)&&ew(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)))):(nw(e),n(null,e.getURL()))}function nw(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 rw(e,t,n){X_.useEffect((()=>{e.hasNodes([Y_.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 V_.mergeRegister(e.registerNodeTransform(Q_.TextNode,(e=>{var o=e.getParentOrThrow(),i=e.getPreviousSibling();if(Y_.$isAutoLinkNode(o))tw(o,t,r);else if(!Y_.$isLinkNode(o)){if(e.isSimpleText()&&(J_.test(e.getTextContent()[0])||!Y_.$isAutoLinkNode(i))){i=o=e.getTextContent();let r=0,f=e;for(var l;(l=q_(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]):Z_(c))&&(s<u.length?J_.test(u[s]):ew(c))){var d=void 0;0===r+t?[d,f]=f.splitText(r+p):[,d,f]=f.splitText(r+t,r+t+p),a=Y_.$createAutoLinkNode(l.url,l.attributes),(s=Q_.$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(),Y_.$isAutoLinkNode(o)&&!J_.test(d[0])&&(o.append(e),tw(o,t,r),e=o.getURL(),n&&n(null,e)),Y_.$isAutoLinkNode(l)&&!J_.test(d[d.length-1])&&(nw(l),tw(l,t,r),e=l.getURL(),n&&n(null,e))}})))}),[e,t,n])}U_.AutoLinkPlugin=function({matchers:e,onChange:t}){let[n]=G_.useLexicalComposerContext();return rw(n,e,t),null},U_.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 ow=U_,iw=wx,lw=X,aw="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?lw.useLayoutEffect:lw.useEffect;function sw(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}const uw=function(){return function(e){let[t]=iw.useLexicalComposerContext(),n=lw.useMemo((()=>e(t)),[t,e]),r=lw.useRef(n.initialValueFn()),[o,i]=lw.useState(r.current);return aw((()=>{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}(sw)};var cw=uw,dw=d(cw);var fw={black:"#000",white:"#fff"};var pw={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 mw={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 hw={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 gw={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 vw={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 bw={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 yw={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 xw(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function _w(e){if(!xw(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=_w(e[n])})),t}function ww(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return xw(e)&&xw(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(xw(t[o])&&o in e&&xw(e[o])?r[o]=ww(e[o],t[o],n):n.clone?r[o]=xw(t[o])?_w(t[o]):t[o]:r[o]=t[o])})),r}function Ew(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 Cw,kw={},Sw=Symbol.for("react.element"),Tw=Symbol.for("react.portal"),Nw=Symbol.for("react.fragment"),Rw=Symbol.for("react.strict_mode"),Aw=Symbol.for("react.profiler"),Ow=Symbol.for("react.provider"),Mw=Symbol.for("react.context"),Lw=Symbol.for("react.server_context"),Pw=Symbol.for("react.forward_ref"),Iw=Symbol.for("react.suspense"),Dw=Symbol.for("react.suspense_list"),$w=Symbol.for("react.memo"),zw=Symbol.for("react.lazy"),Fw=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 Bw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Sw:switch(e=e.type){case Nw:case Aw:case Rw:case Iw:case Dw:return e;default:switch(e=e&&e.$$typeof){case Lw:case Mw:case Pw:case zw:case $w:case Ow:return e;default:return t}}case Tw:return t}}}function Hw(e){if("string"!=typeof e)throw new Error(Ew(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ww(e){return e&&e.ownerDocument||document}function jw(e){return Ww(e).defaultView||window}function Kw(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Cw=Symbol.for("react.module.reference"),kw.ContextConsumer=Mw,kw.ContextProvider=Ow,kw.Element=Sw,kw.ForwardRef=Pw,kw.Fragment=Nw,kw.Lazy=zw,kw.Memo=$w,kw.Portal=Tw,kw.Profiler=Aw,kw.StrictMode=Rw,kw.Suspense=Iw,kw.SuspenseList=Dw,kw.isAsyncMode=function(){return!1},kw.isConcurrentMode=function(){return!1},kw.isContextConsumer=function(e){return Bw(e)===Mw},kw.isContextProvider=function(e){return Bw(e)===Ow},kw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Sw},kw.isForwardRef=function(e){return Bw(e)===Pw},kw.isFragment=function(e){return Bw(e)===Nw},kw.isLazy=function(e){return Bw(e)===zw},kw.isMemo=function(e){return Bw(e)===$w},kw.isPortal=function(e){return Bw(e)===Tw},kw.isProfiler=function(e){return Bw(e)===Aw},kw.isStrictMode=function(e){return Bw(e)===Rw},kw.isSuspense=function(e){return Bw(e)===Iw},kw.isSuspenseList=function(e){return Bw(e)===Dw},kw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Nw||e===Aw||e===Rw||e===Iw||e===Dw||e===Fw||"object"==typeof e&&null!==e&&(e.$$typeof===zw||e.$$typeof===$w||e.$$typeof===Ow||e.$$typeof===Mw||e.$$typeof===Pw||e.$$typeof===Cw||void 0!==e.getModuleId)},kw.typeOf=Bw;var Uw="undefined"!=typeof window?X.useLayoutEffect:X.useEffect;let Yw=0;const Gw=J["useId".toString()];function Vw(e){if(void 0!==Gw){const t=Gw();return null!=e?e:t}return function(e){const[t,n]=X.useState(e),r=e||t;return X.useEffect((()=>{null==t&&(Yw+=1,n(`mui-${Yw}`))}),[t]),r}(e)}function Qw(e){const t=X.useRef(e);return Uw((()=>{t.current=e})),X.useCallback(((...e)=>(0,t.current)(...e)),[])}function Xw(...e){return X.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Kw(e,t)}))}),e)}let qw,Jw=!0,Zw=!1;const eE={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 tE(e){e.metaKey||e.altKey||e.ctrlKey||(Jw=!0)}function nE(){Jw=!1}function rE(){"hidden"===this.visibilityState&&Zw&&(Jw=!0)}function oE(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||!eE[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function iE(){const e=X.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",tE,!0),t.addEventListener("mousedown",nE,!0),t.addEventListener("pointerdown",nE,!0),t.addEventListener("touchstart",nE,!0),t.addEventListener("visibilitychange",rE,!0))}),[]),t=X.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!oE(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Zw=!0,window.clearTimeout(qw),qw=window.setTimeout((()=>{Zw=!1}),100),t.current=!1,!0)},ref:e}}function lE(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]=lE(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function aE(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 sE=e=>e;var uE=(()=>{let e=sE;return{configure(t){e=t},generate:t=>e(t),reset(){e=sE}}})();const cE={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function dE(e,t,n="Mui"){const r=cE[t];return r?`${n}-${r}`:`${uE.generate(e)}-${t}`}function fE(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=dE(e,t,n)})),r}var pE="$$material";function mE(){return mE=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},mE.apply(this,arguments)}function hE(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 gE(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var vE=/^((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)-.*))$/,bE=gE((function(e){return vE.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var yE=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}(),xE="-ms-",_E="-moz-",wE="-webkit-",EE="comm",CE="rule",kE="decl",SE="@keyframes",TE=Math.abs,NE=String.fromCharCode,RE=Object.assign;function AE(e){return e.trim()}function OE(e,t,n){return e.replace(t,n)}function ME(e,t){return e.indexOf(t)}function LE(e,t){return 0|e.charCodeAt(t)}function PE(e,t,n){return e.slice(t,n)}function IE(e){return e.length}function DE(e){return e.length}function $E(e,t){return t.push(e),e}var zE=1,FE=1,BE=0,HE=0,WE=0,jE="";function KE(e,t,n,r,o,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zE,column:FE,length:l,return:""}}function UE(e,t){return RE(KE("",null,null,"",null,null,0),e,{length:-e.length},t)}function YE(){return WE=HE>0?LE(jE,--HE):0,FE--,10===WE&&(FE=1,zE--),WE}function GE(){return WE=HE<BE?LE(jE,HE++):0,FE++,10===WE&&(FE=1,zE++),WE}function VE(){return LE(jE,HE)}function QE(){return HE}function XE(e,t){return PE(jE,e,t)}function qE(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function JE(e){return zE=FE=1,BE=IE(jE=e),HE=0,[]}function ZE(e){return jE="",e}function eC(e){return AE(XE(HE-1,rC(91===e?e+2:40===e?e+1:e)))}function tC(e){for(;(WE=VE())&&WE<33;)GE();return qE(e)>2||qE(WE)>3?"":" "}function nC(e,t){for(;--t&&GE()&&!(WE<48||WE>102||WE>57&&WE<65||WE>70&&WE<97););return XE(e,QE()+(t<6&&32==VE()&&32==GE()))}function rC(e){for(;GE();)switch(WE){case e:return HE;case 34:case 39:34!==e&&39!==e&&rC(WE);break;case 40:41===e&&rC(e);break;case 92:GE()}return HE}function oC(e,t){for(;GE()&&e+WE!==57&&(e+WE!==84||47!==VE()););return"/*"+XE(t,HE-1)+"*"+NE(47===e?e:GE())}function iC(e){for(;!qE(VE());)GE();return XE(e,HE)}function lC(e){return ZE(aC("",null,null,null,[""],e=JE(e),0,[0],e))}function aC(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=GE()){case 40:if(108!=m&&58==LE(E,d-1)){-1!=ME(E+=OE(eC(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=eC(b);break;case 9:case 10:case 13:case 32:E+=tC(m);break;case 92:E+=nC(QE()-1,7);continue;case 47:switch(VE()){case 42:case 47:$E(uC(oC(GE(),QE()),t,n),s);break;default:E+="/"}break;case 123*h:a[u++]=IE(E)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(E=OE(E,/\f/g,"")),p>0&&IE(E)-d&&$E(p>32?cC(E+";",r,n,d-1):cC(OE(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if($E(w=sC(E,t,n,u,c,o,a,y,x=[],_=[],d),i),123===b)if(0===c)aC(E,t,w,w,x,i,d,a,_);else switch(99===f&&110===LE(E,3)?100:f){case 100:case 108:case 109:case 115:aC(e,w,w,r&&$E(sC(e,w,w,0,0,o,a,y,o,x=[],d),_),o,_,d,a,r?x:_);break;default:aC(E,w,w,w,[""],_,0,a,_)}}u=c=p=0,h=v=1,y=E="",d=l;break;case 58:d=1+IE(E),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==YE())continue;switch(E+=NE(b),b*h){case 38:v=c>0?1:(E+="\f",-1);break;case 44:a[u++]=(IE(E)-1)*v,v=1;break;case 64:45===VE()&&(E+=eC(GE())),f=VE(),c=d=IE(y=E+=iC(QE())),b++;break;case 45:45===m&&2==IE(E)&&(h=0)}}return i}function sC(e,t,n,r,o,i,l,a,s,u,c){for(var d=o-1,f=0===o?i:[""],p=DE(f),m=0,h=0,g=0;m<r;++m)for(var v=0,b=PE(e,d+1,d=TE(h=l[m])),y=e;v<p;++v)(y=AE(h>0?f[v]+" "+b:OE(b,/&\f/g,f[v])))&&(s[g++]=y);return KE(e,t,n,0===o?CE:a,s,u,c)}function uC(e,t,n){return KE(e,t,n,EE,NE(WE),PE(e,2,-2),0)}function cC(e,t,n,r){return KE(e,t,n,kE,PE(e,0,r),PE(e,r+1,-1),r)}function dC(e,t){for(var n="",r=DE(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function fC(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case kE:return e.return=e.return||e.value;case EE:return"";case SE:return e.return=e.value+"{"+dC(e.children,r)+"}";case CE:e.value=e.props.join(",")}return IE(n=dC(e.children,r))?e.return=e.value+"{"+n+"}":""}function pC(e){var t=DE(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 mC=function(e,t,n){for(var r=0,o=0;r=o,o=VE(),38===r&&12===o&&(t[n]=1),!qE(o);)GE();return XE(e,HE)},hC=function(e,t){return ZE(function(e,t){var n=-1,r=44;do{switch(qE(r)){case 0:38===r&&12===VE()&&(t[n]=1),e[n]+=mC(HE-1,t,n);break;case 2:e[n]+=eC(r);break;case 4:if(44===r){e[++n]=58===VE()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=NE(r)}}while(r=GE());return e}(JE(e),t))},gC=new WeakMap,vC=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)||gC.get(n))&&!r){gC.set(e,!0);for(var o=[],i=hC(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]}}},bC=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function yC(e,t){switch(function(e,t){return 45^LE(e,0)?(((t<<2^LE(e,0))<<2^LE(e,1))<<2^LE(e,2))<<2^LE(e,3):0}(e,t)){case 5103:return wE+"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 wE+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wE+e+_E+e+xE+e+e;case 6828:case 4268:return wE+e+xE+e+e;case 6165:return wE+e+xE+"flex-"+e+e;case 5187:return wE+e+OE(e,/(\w+).+(:[^]+)/,wE+"box-$1$2"+xE+"flex-$1$2")+e;case 5443:return wE+e+xE+"flex-item-"+OE(e,/flex-|-self/,"")+e;case 4675:return wE+e+xE+"flex-line-pack"+OE(e,/align-content|flex-|-self/,"")+e;case 5548:return wE+e+xE+OE(e,"shrink","negative")+e;case 5292:return wE+e+xE+OE(e,"basis","preferred-size")+e;case 6060:return wE+"box-"+OE(e,"-grow","")+wE+e+xE+OE(e,"grow","positive")+e;case 4554:return wE+OE(e,/([^-])(transform)/g,"$1"+wE+"$2")+e;case 6187:return OE(OE(OE(e,/(zoom-|grab)/,wE+"$1"),/(image-set)/,wE+"$1"),e,"")+e;case 5495:case 3959:return OE(e,/(image-set\([^]*)/,wE+"$1$`$1");case 4968:return OE(OE(e,/(.+:)(flex-)?(.*)/,wE+"box-pack:$3"+xE+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+wE+e+e;case 4095:case 3583:case 4068:case 2532:return OE(e,/(.+)-inline(.+)/,wE+"$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(IE(e)-1-t>6)switch(LE(e,t+1)){case 109:if(45!==LE(e,t+4))break;case 102:return OE(e,/(.+:)(.+)-([^]+)/,"$1"+wE+"$2-$3$1"+_E+(108==LE(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ME(e,"stretch")?yC(OE(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==LE(e,t+1))break;case 6444:switch(LE(e,IE(e)-3-(~ME(e,"!important")&&10))){case 107:return OE(e,":",":"+wE)+e;case 101:return OE(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+wE+(45===LE(e,14)?"inline-":"")+"box$3$1"+wE+"$2$3$1"+xE+"$2box$3")+e}break;case 5936:switch(LE(e,t+11)){case 114:return wE+e+xE+OE(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wE+e+xE+OE(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wE+e+xE+OE(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return wE+e+xE+e+e}return e}var xC,_C,wC="undefined"!=typeof document,EC=wC?void 0:(xC=function(){return gE((function(){var e={};return function(t){return e[t]}}))},_C=new WeakMap,function(e){if(_C.has(e))return _C.get(e);var t=xC(e);return _C.set(e,t),t}),CC=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case kE:e.return=yC(e.value,e.length);break;case SE:return dC([UE(e,{value:OE(e.value,"@","@"+wE)})],r);case CE: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 dC([UE(e,{props:[OE(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return dC([UE(e,{props:[OE(t,/:(plac\w+)/,":"+wE+"input-$1")]}),UE(e,{props:[OE(t,/:(plac\w+)/,":-moz-$1")]}),UE(e,{props:[OE(t,/:(plac\w+)/,xE+"input-$1")]})],r)}return""}))}}],kC=function(e){var t=e.key;if(wC&&"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||CC,l={},a=[];wC&&(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=[vC,bC];if(wC){var c,d=[fC,(s=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],f=pC(u.concat(i,d));o=function(e,t,n,r){c=n,function(e){dC(lC(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var p=[fC],m=pC(u.concat(i,p)),h=EC(i)(t),g=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return dC(lC(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 yE({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},SC={exports:{}},TC={},NC="function"==typeof Symbol&&Symbol.for,RC=NC?Symbol.for("react.element"):60103,AC=NC?Symbol.for("react.portal"):60106,OC=NC?Symbol.for("react.fragment"):60107,MC=NC?Symbol.for("react.strict_mode"):60108,LC=NC?Symbol.for("react.profiler"):60114,PC=NC?Symbol.for("react.provider"):60109,IC=NC?Symbol.for("react.context"):60110,DC=NC?Symbol.for("react.async_mode"):60111,$C=NC?Symbol.for("react.concurrent_mode"):60111,zC=NC?Symbol.for("react.forward_ref"):60112,FC=NC?Symbol.for("react.suspense"):60113,BC=NC?Symbol.for("react.suspense_list"):60120,HC=NC?Symbol.for("react.memo"):60115,WC=NC?Symbol.for("react.lazy"):60116,jC=NC?Symbol.for("react.block"):60121,KC=NC?Symbol.for("react.fundamental"):60117,UC=NC?Symbol.for("react.responder"):60118,YC=NC?Symbol.for("react.scope"):60119;function GC(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case RC:switch(e=e.type){case DC:case $C:case OC:case LC:case MC:case FC:return e;default:switch(e=e&&e.$$typeof){case IC:case zC:case WC:case HC:case PC:return e;default:return t}}case AC:return t}}}function VC(e){return GC(e)===$C}TC.AsyncMode=DC,TC.ConcurrentMode=$C,TC.ContextConsumer=IC,TC.ContextProvider=PC,TC.Element=RC,TC.ForwardRef=zC,TC.Fragment=OC,TC.Lazy=WC,TC.Memo=HC,TC.Portal=AC,TC.Profiler=LC,TC.StrictMode=MC,TC.Suspense=FC,TC.isAsyncMode=function(e){return VC(e)||GC(e)===DC},TC.isConcurrentMode=VC,TC.isContextConsumer=function(e){return GC(e)===IC},TC.isContextProvider=function(e){return GC(e)===PC},TC.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===RC},TC.isForwardRef=function(e){return GC(e)===zC},TC.isFragment=function(e){return GC(e)===OC},TC.isLazy=function(e){return GC(e)===WC},TC.isMemo=function(e){return GC(e)===HC},TC.isPortal=function(e){return GC(e)===AC},TC.isProfiler=function(e){return GC(e)===LC},TC.isStrictMode=function(e){return GC(e)===MC},TC.isSuspense=function(e){return GC(e)===FC},TC.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===OC||e===$C||e===LC||e===MC||e===FC||e===BC||"object"==typeof e&&null!==e&&(e.$$typeof===WC||e.$$typeof===HC||e.$$typeof===PC||e.$$typeof===IC||e.$$typeof===zC||e.$$typeof===KC||e.$$typeof===UC||e.$$typeof===YC||e.$$typeof===jC)},TC.typeOf=GC,SC.exports=TC;var QC=SC.exports,XC={};XC[QC.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},XC[QC.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var qC="undefined"!=typeof document;var JC=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===qC&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ZC=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);qC||void 0===l||(o+=l),i=i.next}while(void 0!==i);if(!qC&&0!==o.length)return o}};var ek={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},tk=/[A-Z]|^ms/g,nk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rk=function(e){return 45===e.charCodeAt(1)},ok=function(e){return null!=e&&"boolean"!=typeof e},ik=gE((function(e){return rk(e)?e:e.replace(tk,"-$&").toLowerCase()})),lk=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(nk,(function(e,t,n){return sk={name:t,styles:n,next:sk},t}))}return 1===ek[e]||rk(e)||"number"!=typeof t||0===t?t:t+"px"};function ak(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 sk={name:n.name,styles:n.styles,next:sk},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)sk={name:r.name,styles:r.styles,next:sk},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+=ak(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]+"}":ok(l)&&(r+=ik(i)+":"+lk(i,l)+";");else if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var a=ak(e,t,l);switch(i){case"animation":case"animationName":r+=ik(i)+":"+a+";";break;default:r+=i+"{"+a+"}"}}else for(var s=0;s<l.length;s++)ok(l[s])&&(r+=ik(i)+":"+lk(i,l[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=sk,i=n(e);return sk=o,ak(e,t,i)}}if(null==t)return n;var l=t[n];return void 0!==l?l:n}var sk,uk=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ck=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="";sk=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ak(n,t,i)):o+=i[0];for(var l=1;l<e.length;l++)o+=ak(n,t,e[l]),r&&(o+=i[l]);uk.lastIndex=0;for(var a,s="";null!==(a=uk.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:sk}},dk="undefined"!=typeof document,fk=function(e){return e()},pk=!!J.useInsertionEffect&&J.useInsertionEffect,mk=dk&&pk||fk,hk=pk||X.useLayoutEffect,gk="undefined"!=typeof document,vk=X.createContext("undefined"!=typeof HTMLElement?kC({key:"css"}):null);vk.Provider;var bk=function(e){return X.forwardRef((function(t,n){var r=X.useContext(vk);return e(t,r,n)}))};gk||(bk=function(e){return function(t){var n=X.useContext(vk);return null===n?(n=kC({key:"css"}),X.createElement(vk.Provider,{value:n},e(t,n))):e(t,n)}});var yk=X.createContext({}),xk=bk((function(e,t){var n=e.styles,r=ck([n],void 0,X.useContext(yk));if(!gk){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:X.createElement("style",((o={})["data-emotion"]=t.key+"-global "+i,o.dangerouslySetInnerHTML={__html:u},o.nonce=t.sheet.nonce,o))}var c=X.useRef();return hk((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]),hk((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&ZC(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 _k(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ck(t)}var wk=function(){var e=_k.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_"}}},Ek=bE,Ck=function(e){return"theme"!==e},kk=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ek:Ck},Sk=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},Tk="undefined"!=typeof document,Nk=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;JC(t,n,r);var o=mk((function(){return ZC(t,n,r)}));if(!Tk&&void 0!==o){for(var i,l=n.name,a=n.next;void 0!==a;)l+=" "+a.name,a=a.next;return X.createElement("style",((i={})["data-emotion"]=t.key+" "+l,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},Rk=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=Sk(t,n,i),s=a||kk(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=bk((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=X.useContext(yk)}"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=ck(d.concat(h),t.registered,g);m+=t.key+"-"+b.name,void 0!==o&&(m+=" "+o);var y=u&&void 0===a?kk(p):s,x={};for(var _ in e)u&&"as"===_||y(_)&&(x[_]=e[_]);return x.className=m,x.ref=n,X.createElement(X.Fragment,null,X.createElement(Nk,{cache:t,serialized:b,isStringTag:"string"==typeof p}),X.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,mE({},n,r,{shouldForwardProp:Sk(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){Rk[e]=Rk(e)}));var Ak={exports:{}},Ok={},Mk=X,Lk=Symbol.for("react.element"),Pk=Symbol.for("react.fragment"),Ik=Object.prototype.hasOwnProperty,Dk=Mk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$k={key:!0,ref:!0,__self:!0,__source:!0};function zk(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)Ik.call(t,r)&&!$k.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:Lk,type:e,key:i,ref:l,props:o,_owner:Dk.current}}Ok.Fragment=Pk,Ok.jsx=zk,Ok.jsxs=zk,Ak.exports=Ok;var Fk=Ak.exports;function Bk(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 Fk.jsx(xk,{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 Hk(e,t){return Rk(e,t)}const Wk=["values","unit","step"],jk=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)=>mE({},e,{[t.key]:t.val})),{})};var Kk={borderRadius:4};function Uk(e,t){return t?ww(e,t,{clone:!1}):e}const Yk={xs:0,sm:600,md:900,lg:1200,xl:1536},Gk={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Yk[e]}px)`};function Vk(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Gk;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Gk;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Yk).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Qk(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Xk(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function qk({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 Zk(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 eS(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 Vk(e,i,(e=>{let r=Zk(l,o,e);return e===r&&"string"==typeof e&&(r=Zk(l,o,`${t}${"default"===e?"":Hw(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const tS={m:"margin",p:"padding"},nS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oS=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!rS[e])return[e];e=rS[e]}const[t,n]=e.split(""),r=tS[t],o=nS[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),iS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],lS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function aS(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 sS(e){return aS(e,"spacing",8)}function uS(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 cS(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=uS(t,n),e)),{})}(oS(n),r);return Vk(e,e[n],o)}function dS(e,t){const n=sS(e.theme);return Object.keys(e).map((r=>cS(e,t,r,n))).reduce(Uk,{})}function fS(e){return dS(e,iS)}function pS(e){return dS(e,lS)}function mS(...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]?Uk(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function hS(e){return"number"!=typeof e?e:`${e}px solid`}fS.propTypes={},fS.filterProps=iS,pS.propTypes={},pS.filterProps=lS;const gS=eS({prop:"border",themeKey:"borders",transform:hS}),vS=eS({prop:"borderTop",themeKey:"borders",transform:hS}),bS=eS({prop:"borderRight",themeKey:"borders",transform:hS}),yS=eS({prop:"borderBottom",themeKey:"borders",transform:hS}),xS=eS({prop:"borderLeft",themeKey:"borders",transform:hS}),_S=eS({prop:"borderColor",themeKey:"palette"}),wS=eS({prop:"borderTopColor",themeKey:"palette"}),ES=eS({prop:"borderRightColor",themeKey:"palette"}),CS=eS({prop:"borderBottomColor",themeKey:"palette"}),kS=eS({prop:"borderLeftColor",themeKey:"palette"}),SS=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=aS(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:uS(t,e)});return Vk(e,e.borderRadius,n)}return null};SS.propTypes={},SS.filterProps=["borderRadius"],mS(gS,vS,bS,yS,xS,_S,wS,ES,CS,kS,SS);const TS=e=>{if(void 0!==e.gap&&null!==e.gap){const t=aS(e.theme,"spacing",8),n=e=>({gap:uS(t,e)});return Vk(e,e.gap,n)}return null};TS.propTypes={},TS.filterProps=["gap"];const NS=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=aS(e.theme,"spacing",8),n=e=>({columnGap:uS(t,e)});return Vk(e,e.columnGap,n)}return null};NS.propTypes={},NS.filterProps=["columnGap"];const RS=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=aS(e.theme,"spacing",8),n=e=>({rowGap:uS(t,e)});return Vk(e,e.rowGap,n)}return null};RS.propTypes={},RS.filterProps=["rowGap"];function AS(e,t){return"grey"===t?t:e}mS(TS,NS,RS,eS({prop:"gridColumn"}),eS({prop:"gridRow"}),eS({prop:"gridAutoFlow"}),eS({prop:"gridAutoColumns"}),eS({prop:"gridAutoRows"}),eS({prop:"gridTemplateColumns"}),eS({prop:"gridTemplateRows"}),eS({prop:"gridTemplateAreas"}),eS({prop:"gridArea"}));function OS(e){return e<=1&&0!==e?100*e+"%":e}mS(eS({prop:"color",themeKey:"palette",transform:AS}),eS({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:AS}),eS({prop:"backgroundColor",themeKey:"palette",transform:AS}));const MS=eS({prop:"width",transform:OS}),LS=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])||Yk[t]||OS(t)}};return Vk(e,e.maxWidth,t)}return null};LS.filterProps=["maxWidth"];const PS=eS({prop:"minWidth",transform:OS}),IS=eS({prop:"height",transform:OS}),DS=eS({prop:"maxHeight",transform:OS}),$S=eS({prop:"minHeight",transform:OS});eS({prop:"size",cssProperty:"width",transform:OS}),eS({prop:"size",cssProperty:"height",transform:OS});mS(MS,LS,PS,IS,DS,$S,eS({prop:"boxSizing"}));var zS={border:{themeKey:"borders",transform:hS},borderTop:{themeKey:"borders",transform:hS},borderRight:{themeKey:"borders",transform:hS},borderBottom:{themeKey:"borders",transform:hS},borderLeft:{themeKey:"borders",transform:hS},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:SS},color:{themeKey:"palette",transform:AS},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:AS},backgroundColor:{themeKey:"palette",transform:AS},p:{style:pS},pt:{style:pS},pr:{style:pS},pb:{style:pS},pl:{style:pS},px:{style:pS},py:{style:pS},padding:{style:pS},paddingTop:{style:pS},paddingRight:{style:pS},paddingBottom:{style:pS},paddingLeft:{style:pS},paddingX:{style:pS},paddingY:{style:pS},paddingInline:{style:pS},paddingInlineStart:{style:pS},paddingInlineEnd:{style:pS},paddingBlock:{style:pS},paddingBlockStart:{style:pS},paddingBlockEnd:{style:pS},m:{style:fS},mt:{style:fS},mr:{style:fS},mb:{style:fS},ml:{style:fS},mx:{style:fS},my:{style:fS},margin:{style:fS},marginTop:{style:fS},marginRight:{style:fS},marginBottom:{style:fS},marginLeft:{style:fS},marginX:{style:fS},marginY:{style:fS},marginInline:{style:fS},marginInlineStart:{style:fS},marginInlineEnd:{style:fS},marginBlock:{style:fS},marginBlockStart:{style:fS},marginBlockEnd:{style:fS},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:TS},rowGap:{style:RS},columnGap:{style:NS},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:OS},maxWidth:{style:LS},minWidth:{transform:OS},height:{transform:OS},maxHeight:{transform:OS},minHeight:{transform:OS},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const FS=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 Vk(o,t,(t=>{let n=Zk(c,s,t);return t===n&&"string"==typeof t&&(n=Zk(c,s,`${e}${"default"===t?"":Hw(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:zS;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=Qk(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=Uk(s,e(n,o,i,l));else{const e=Vk({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=Uk(s,e):s[n]=t({sx:o,theme:i})}else s=Uk(s,e(n,o,i,l))})),Xk(a,s)}return Array.isArray(o)?o.map(a):a(o)}}();FS.filterProps=["sx"];var BS=FS;const HS=["breakpoints","palette","spacing","shape"];function WS(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=hE(e,HS),a=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=hE(e,Wk),i=jk(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 mE({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=sS({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=ww({breakpoints:a,direction:"ltr",components:{},palette:mE({mode:"light"},r),spacing:s,shape:mE({},Kk,i)},l);return u=t.reduce(((e,t)=>ww(e,t)),u),u.unstable_sxConfig=mE({},zS,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return BS({sx:e,theme:this})},u}function jS(e=null){const t=X.useContext(yk);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const KS=WS();function US(e=KS){return jS(e)}function YS({styles:e,themeId:t,defaultTheme:n={}}){const r=US(n),o="function"==typeof e?e(t&&r[t]||r):e;return Fk.jsx(Bk,{styles:o})}const GS=["sx"],VS=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:zS;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function QS(e){const{sx:t}=e,n=hE(e,GS),{systemProps:r,otherProps:o}=VS(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return xw(n)?mE({},r,n):r}:mE({},r,t),mE({},o,{sx:i})}function XS(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=XS(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function qS(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=XS(e))&&(r&&(r+=" "),r+=t);return r}const JS=["className","component"];const ZS=["variant"];function eT(e){return 0===e.length}function tT(e){const{variant:t}=e,n=hE(e,ZS);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?eT(r)?e[t]:Hw(e[t]):`${eT(r)?t:Hw(t)}${Hw(e[t].toString())}`})),r}const nT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rT(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const oT=WS();function iT({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function lT(e={}){const{themeId:t,defaultTheme:n=oT,rootShouldForwardProp:r=rT,slotShouldForwardProp:o=rT}=e,i=e=>BS(mE({},e,{theme:iT(mE({},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=hE(l,nT),p=void 0!==u?u:s&&"Root"!==s||!1,m=c||!1;let h=rT;"Root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Hk(e,mE({shouldForwardProp:h,label:undefined},f)),v=(r,...o)=>{const l=o?o.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>e(mE({},r,{theme:iT(mE({},r,{defaultTheme:n,themeId:t}))})):e)):[];let s=r;a&&d&&l.push((e=>{const r=iT(mE({},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(mE({},e,{theme:r})):o})),d(e,t)}return null})),a&&!p&&l.push((e=>{const r=iT(mE({},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[tT(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=tT(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(mE({},e,{theme:iT(mE({},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 aT=lT();function sT({props:e,name:t,defaultTheme:n,themeId:r}){let o=US(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?lE(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function uT(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function cT(e){if(e.type)return e;if("#"===e.charAt(0))return cT(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(Ew(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(Ew(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function dT(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 fT(e){let t="hsl"===(e=cT(e)).type||"hsla"===e.type?cT(function(e){e=cT(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])),dT({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 pT(e,t){return e=cT(e),t=uT(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,dT(e)}var mT=X.createContext(null);function hT(){return X.useContext(mT)}var gT="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function vT(e){const{children:t,theme:n}=e,r=hT(),o=X.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[gT]=null!==r),e}),[n,r]);return Fk.jsx(mT.Provider,{value:o,children:t})}const bT={};function yT(e,t,n,r=!1){return X.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),l=e?mE({},t,{[e]:i}):i;return r?()=>l:l}return mE({},t,e?{[e]:n}:n)}),[e,t,n,r])}function xT(e){const{children:t,theme:n,themeId:r}=e,o=jS(bT),i=hT()||bT,l=yT(r,o,n),a=yT(r,i,n,!0);return Fk.jsx(vT,{theme:a,children:Fk.jsx(yk.Provider,{value:l,children:t})})}const _T=["component","direction","spacing","divider","children","className","useFlexGap"],wT=WS(),ET=aT("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function CT(e){return sT({props:e,name:"MuiStack",defaultTheme:wT})}function kT(e,t){const n=X.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(X.cloneElement(t,{key:`separator-${o}`})),e)),[])}const ST=({ownerState:e,theme:t})=>{let n=mE({display:"flex",flexDirection:"column"},Vk({theme:t},qk({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=sS(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=qk({values:e.direction,base:o}),l=qk({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=ww(n,Vk({theme:t},l,((t,n)=>{return e.useFlexGap?{gap:uS(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]}`]:uS(r,t)}};var o})))}return n=function(e,...t){const n=Qk(e),r=[n,...t].reduce(((e,t)=>ww(e,t)),{});return Xk(Object.keys(n),r)}(t.breakpoints,n),n};const TT=["mode","contrastThreshold","tonalOffset"],NT={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:fw.white,default:fw.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}},RT={text:{primary:fw.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:fw.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 AT(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=cT(e),t=uT(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 dT(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=cT(e),t=uT(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 dT(e)}(e.main,i)))}function OT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=hE(e,TT),i=e.primary||function(e="light"){return"dark"===e?{main:hw[200],light:hw[50],dark:hw[400]}:{main:hw[700],light:hw[400],dark:hw[800]}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:mw[200],light:mw[50],dark:mw[400]}:{main:mw[500],light:mw[300],dark:mw[700]}}(t),a=e.error||function(e="light"){return"dark"===e?{main:pw[500],light:pw[300],dark:pw[700]}:{main:pw[700],light:pw[400],dark:pw[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:gw[400],light:gw[300],dark:gw[700]}:{main:gw[700],light:gw[500],dark:gw[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:vw[400],light:vw[300],dark:vw[700]}:{main:vw[800],light:vw[500],dark:vw[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:bw[400],light:bw[300],dark:bw[700]}:{main:"#ed6c02",light:bw[500],dark:bw[900]}}(t);function d(e){const t=function(e,t){const n=fT(e),r=fT(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,RT.text.primary)>=n?RT.text.primary:NT.text.primary;return t}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=mE({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Ew(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Ew(12,t?` (${t})`:"",JSON.stringify(e.main)));return AT(e,"light",o,r),AT(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:RT,light:NT};return ww(mE({common:mE({},fw),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:yw,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),o)}const MT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const LT={textTransform:"uppercase"},PT='"Roboto", "Helvetica", "Arial", sans-serif';function IT(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=PT,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=hE(n,MT),p=o/14,m=d||(e=>e/u*p+"rem"),h=(e,t,n,o,i)=>{return mE({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===PT?{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,LT),caption:h(l,12,1.66,.4),overline:h(l,12,2.66,1,LT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ww(mE({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:s},g),f,{clone:!1})}function DT(...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 $T=["none",DT(0,2,1,-1,0,1,1,0,0,1,3,0),DT(0,3,1,-2,0,2,2,0,0,1,5,0),DT(0,3,3,-2,0,3,4,0,0,1,8,0),DT(0,2,4,-1,0,4,5,0,0,1,10,0),DT(0,3,5,-1,0,5,8,0,0,1,14,0),DT(0,3,5,-1,0,6,10,0,0,1,18,0),DT(0,4,5,-2,0,7,10,1,0,2,16,1),DT(0,5,5,-3,0,8,10,1,0,3,14,2),DT(0,5,6,-3,0,9,12,1,0,3,16,2),DT(0,6,6,-3,0,10,14,1,0,4,18,3),DT(0,6,7,-4,0,11,15,1,0,4,20,3),DT(0,7,8,-4,0,12,17,2,0,5,22,4),DT(0,7,8,-4,0,13,19,2,0,5,24,4),DT(0,7,9,-4,0,14,21,2,0,5,26,4),DT(0,8,9,-5,0,15,22,2,0,6,28,5),DT(0,8,10,-5,0,16,24,2,0,6,30,5),DT(0,8,11,-5,0,17,26,2,0,6,32,5),DT(0,9,11,-5,0,18,28,2,0,7,34,6),DT(0,9,12,-6,0,19,29,2,0,7,36,6),DT(0,10,13,-6,0,20,31,3,0,8,38,7),DT(0,10,13,-6,0,21,33,3,0,8,40,7),DT(0,10,14,-6,0,22,35,3,0,8,42,7),DT(0,11,14,-7,0,23,36,3,0,9,44,8),DT(0,11,15,-7,0,24,38,3,0,9,46,8)];const zT=["duration","easing","delay"],FT={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)"},BT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function HT(e){return`${Math.round(e)}ms`}function WT(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function jT(e){const t=mE({},FT,e.easing),n=mE({},BT,e.duration);return mE({getAutoHeightDuration:WT,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:l=0}=r;return hE(r,zT),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:HT(o)} ${i} ${"string"==typeof l?l:HT(l)}`)).join(",")}},e,{easing:t,duration:n})}var KT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const UT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function YT(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=hE(e,UT);if(e.vars)throw new Error(Ew(18));const a=OT(r),s=WS(e);let u=ww(s,{mixins:(c=s.breakpoints,d=n,mE({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:a,shadows:$T.slice(),typography:IT(a,i),transitions:jT(o),zIndex:mE({},KT)});var c,d;return u=ww(u,l),u=t.reduce(((e,t)=>ww(e,t)),u),u.unstable_sxConfig=mE({},zS,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return BS({sx:e,theme:this})},u}var GT=YT();function VT(){const e=US(GT);return e[pE]||e}function QT({props:e,name:t}){return sT({props:e,name:t,defaultTheme:GT,themeId:pE})}const XT=e=>rT(e)&&"classes"!==e;var qT=lT({themeId:pE,defaultTheme:GT,rootShouldForwardProp:XT});const JT=["theme"];function ZT(e){let{theme:t}=e,n=hE(e,JT);const r=t[pE];return Fk.jsx(xT,mE({},n,{themeId:r?pE:void 0,theme:r||t}))}var eN=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function tN(e){return"string"==typeof e}function nN(e,t,n){return void 0===e||tN(e)?t:mE({},t,{ownerState:mE({},t.ownerState,n)})}const rN={disableDefaultClasses:!1},oN=X.createContext(rN);function iN(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 lN(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=qS(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=mE({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),l=mE({},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}(mE({},o,r)),a=iN(r),s=iN(o),u=t(l),c=qS(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=mE({},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=mE({},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 aN=["elementType","externalSlotProps","ownerState"];function sN(e){return e.substring(2).toLowerCase()}function uN(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,l=X.useRef(!1),a=X.useRef(null),s=X.useRef(!1),u=X.useRef(!1);X.useEffect((()=>(setTimeout((()=>{s.current=!0}),0),()=>{s.current=!1})),[]);const c=Xw(t.ref,a),d=Qw((e=>{const t=u.current;u.current=!1;const r=Ww(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)),X.useEffect((()=>{if(!1!==i){const e=sN(i),t=Ww(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)),X.useEffect((()=>{if(!1!==r){const e=sN(r),t=Ww(a.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}}),[d,r]),Fk.jsx(X.Fragment,{children:X.cloneElement(t,p)})}var cN="top",dN="bottom",fN="right",pN="left",mN="auto",hN=[cN,dN,fN,pN],gN="start",vN="end",bN="clippingParents",yN="viewport",xN="popper",_N="reference",wN=hN.reduce((function(e,t){return e.concat([t+"-"+gN,t+"-"+vN])}),[]),EN=[].concat(hN,[mN]).reduce((function(e,t){return e.concat([t,t+"-"+gN,t+"-"+vN])}),[]),CN=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function kN(e){return e?(e.nodeName||"").toLowerCase():null}function SN(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function TN(e){return e instanceof SN(e).Element||e instanceof Element}function NN(e){return e instanceof SN(e).HTMLElement||e instanceof HTMLElement}function RN(e){return"undefined"!=typeof ShadowRoot&&(e instanceof SN(e).ShadowRoot||e instanceof ShadowRoot)}var AN={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];NN(o)&&kN(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}),{});NN(r)&&kN(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ON(e){return e.split("-")[0]}var MN=Math.max,LN=Math.min,PN=Math.round;function IN(){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 DN(){return!/^((?!chrome|android).)*safari/i.test(IN())}function $N(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&NN(e)&&(o=e.offsetWidth>0&&PN(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&PN(r.height)/e.offsetHeight||1);var l=(TN(e)?SN(e):window).visualViewport,a=!DN()&&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 zN(e){var t=$N(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 FN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&RN(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function BN(e){return SN(e).getComputedStyle(e)}function HN(e){return["table","td","th"].indexOf(kN(e))>=0}function WN(e){return((TN(e)?e.ownerDocument:e.document)||window.document).documentElement}function jN(e){return"html"===kN(e)?e:e.assignedSlot||e.parentNode||(RN(e)?e.host:null)||WN(e)}function KN(e){return NN(e)&&"fixed"!==BN(e).position?e.offsetParent:null}function UN(e){for(var t=SN(e),n=KN(e);n&&HN(n)&&"static"===BN(n).position;)n=KN(n);return n&&("html"===kN(n)||"body"===kN(n)&&"static"===BN(n).position)?t:n||function(e){var t=/firefox/i.test(IN());if(/Trident/i.test(IN())&&NN(e)&&"fixed"===BN(e).position)return null;var n=jN(e);for(RN(n)&&(n=n.host);NN(n)&&["html","body"].indexOf(kN(n))<0;){var r=BN(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 YN(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function GN(e,t,n){return MN(e,LN(t,n))}function VN(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function QN(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var XN={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=ON(n.placement),s=YN(a),u=[pN,fN].indexOf(a)>=0?"height":"width";if(i&&l){var c=function(e,t){return VN("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:QN(e,hN))}(o.padding,n),d=zN(i),f="y"===s?cN:pN,p="y"===s?dN:fN,m=n.rects.reference[u]+n.rects.reference[s]-l[s]-n.rects.popper[u],h=l[s]-n.rects.reference[s],g=UN(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=GN(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)))&&FN(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qN(e){return e.split("-")[1]}var JN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZN(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=pN,x=cN,_=window;if(u){var w=UN(n),E="clientHeight",C="clientWidth";if(w===SN(n)&&"static"!==BN(w=WN(n)).position&&"absolute"===a&&(E="scrollHeight",C="scrollWidth"),o===cN||(o===pN||o===fN)&&i===vN)x=dN,h-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[E])-r.height,h*=s?1:-1;if(o===pN||(o===cN||o===dN)&&i===vN)y=fN,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:PN(n*o)/o||0,y:PN(r*o)/o||0}}({x:p,y:h},SN(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 eR={passive:!0};var tR={left:"right",right:"left",bottom:"top",top:"bottom"};function nR(e){return e.replace(/left|right|bottom|top/g,(function(e){return tR[e]}))}var rR={start:"end",end:"start"};function oR(e){return e.replace(/start|end/g,(function(e){return rR[e]}))}function iR(e){var t=SN(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function lR(e){return $N(WN(e)).left+iR(e).scrollLeft}function aR(e){var t=BN(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function sR(e){return["html","body","#document"].indexOf(kN(e))>=0?e.ownerDocument.body:NN(e)&&aR(e)?e:sR(jN(e))}function uR(e,t){var n;void 0===t&&(t=[]);var r=sR(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=SN(r),l=o?[i].concat(i.visualViewport||[],aR(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(uR(jN(l)))}function cR(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dR(e,t,n){return t===yN?cR(function(e,t){var n=SN(e),r=WN(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;var u=DN();(u||!u&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a+lR(e),y:s}}(e,n)):TN(t)?function(e,t){var n=$N(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):cR(function(e){var t,n=WN(e),r=iR(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=MN(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=MN(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+lR(e),s=-r.scrollTop;return"rtl"===BN(o||n).direction&&(a+=MN(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(WN(e)))}function fR(e,t,n,r){var o="clippingParents"===t?function(e){var t=uR(jN(e)),n=["absolute","fixed"].indexOf(BN(e).position)>=0&&NN(e)?UN(e):e;return TN(n)?t.filter((function(e){return TN(e)&&FN(e,n)&&"body"!==kN(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),l=i[0],a=i.reduce((function(t,n){var o=dR(e,n,r);return t.top=MN(o.top,t.top),t.right=LN(o.right,t.right),t.bottom=LN(o.bottom,t.bottom),t.left=MN(o.left,t.left),t}),dR(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 pR(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?ON(o):null,l=o?qN(o):null,a=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case cN:t={x:a,y:n.y-r.height};break;case dN:t={x:a,y:n.y+n.height};break;case fN:t={x:n.x+n.width,y:s};break;case pN:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?YN(i):null;if(null!=u){var c="y"===u?"height":"width";switch(l){case gN:t[u]=t[u]-(n[c]/2-r[c]/2);break;case vN:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function mR(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?bN:a,u=n.rootBoundary,c=void 0===u?yN:u,d=n.elementContext,f=void 0===d?xN:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=VN("number"!=typeof g?g:QN(g,hN)),b=f===xN?_N:xN,y=e.rects.popper,x=e.elements[m?b:f],_=fR(TN(x)?x:x.contextElement||WN(e.elements.popper),s,c,l),w=$N(e.elements.reference),E=pR({reference:w,element:y,strategy:"absolute",placement:o}),C=cR(Object.assign({},y,E)),k=f===xN?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===xN&&T){var N=T[o];Object.keys(S).forEach((function(e){var t=[fN,dN].indexOf(e)>=0?1:-1,n=[cN,dN].indexOf(e)>=0?"y":"x";S[e]+=N[n]*t}))}return S}function hR(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?EN:s,c=qN(r),d=c?a?wN:wN.filter((function(e){return qN(e)===c})):hN,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]=mR(e,{placement:n,boundary:o,rootBoundary:i,padding:l})[ON(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var gR={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=ON(g),b=s||(v===g||!m?[nR(g)]:function(e){if(ON(e)===mN)return[];var t=nR(e);return[oR(e),t,oR(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(ON(n)===mN?hR(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=ON(S),N=qN(S)===gN,R=[cN,dN].indexOf(T)>=0,A=R?"width":"height",O=mR(t,{placement:S,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),M=R?N?fN:pN:N?dN:cN;x[A]>_[A]&&(M=nR(M));var L=nR(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 vR(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 bR(e){return[cN,fN,dN,pN].some((function(t){return e[t]>=0}))}var yR={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=EN.reduce((function(e,n){return e[n]=function(e,t,n){var r=ON(e),o=[pN,cN].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,[pN,fN].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 xR={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=mR(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=ON(t.placement),b=qN(t.placement),y=!b,x=YN(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?cN:pN,O="y"===x?dN:fN,M="y"===x?"height":"width",L=w[x],P=L+g[A],I=L-g[O],D=p?-C[M]/2:0,$=b===gN?E[M]:C[M],z=b===gN?-C[M]:-E[M],F=t.elements.arrow,B=p&&F?zN(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=GN(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&&UN(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=GN(p?LN(P,L+U-Q-V):P,L,p?MN(I,X):I);w[x]=q,N[x]=q-L}if(a){var J,Z="x"===x?cN:pN,ee="x"===x?dN:fN,te=w[_],ne="y"===_?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[cN,pN].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=GN(e,t,n);return r>n?n:r}(ae,te,se):GN(p?ae:re,te,p?se:oe);w[_]=ue,N[_]=ue-te}t.modifiersData[r]=N}},requiresIfExists:["offset"]};function _R(e,t,n){void 0===n&&(n=!1);var r=NN(t),o=NN(t)&&function(e){var t=e.getBoundingClientRect(),n=PN(t.width)/e.offsetWidth||1,r=PN(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=WN(t),l=$N(e,o,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==kN(t)||aR(i))&&(a=function(e){return e!==SN(e)&&NN(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:iR(e);var t}(t)),NN(t)?((s=$N(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=lR(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function wR(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 ER(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var CR={placement:"bottom",modifiers:[],strategy:"absolute"};function kR(){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 SR(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?CR:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},CR,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:TN(e)?uR(e):e.contextElement?uR(e.contextElement):[],popper:uR(t)};var c,d,f=function(e){var t=wR(e);return CN.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(kR(t,n)){o.rects={reference:_R(t,UN(n),"fixed"===o.options.strategy),popper:zN(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:ER((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){u(),a=!0}};if(!kR(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 TR=SR({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=SN(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,eR)})),a&&s.addEventListener("resize",n.update,eR),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,eR)})),a&&s.removeEventListener("resize",n.update,eR)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=pR({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:ON(t.placement),variation:qN(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,ZN(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,ZN(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:{}},AN,yR,gR,xR,XN,{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=mR(t,{elementContext:"reference"}),a=mR(t,{altBoundary:!0}),s=vR(l,r),u=vR(a,o,i),c=bR(s),d=bR(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 NR=X.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,l]=X.useState(null),a=Xw(X.isValidElement(n)?n.ref:null,t);if(Uw((()=>{o||l(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Uw((()=>{if(i&&!o)return Kw(t,i),()=>{Kw(t,null)}}),[t,i,o]),o){if(X.isValidElement(n)){const e={ref:a};return X.cloneElement(n,e)}return Fk.jsx(X.Fragment,{children:n})}return Fk.jsx(X.Fragment,{children:i?cm.createPortal(n,i):i})}));function RR(e){return dE("MuiPopper",e)}fE("MuiPopper",["root"]);const AR=["anchorEl","children","component","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],OR=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function MR(e){return"function"==typeof e?e():e}const LR=()=>aE({root:["root"]},function(e){const{disableDefaultClasses:t}=X.useContext(oN);return n=>t?"":e(n)}(RR)),PR={},IR=X.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=hE(e,AR),v=X.useRef(null),b=Xw(v,t),y=X.useRef(null),x=Xw(y,f),_=X.useRef(x);Uw((()=>{_.current=x}),[x]),X.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]=X.useState(w),[k,S]=X.useState(MR(r));X.useEffect((()=>{y.current&&y.current.forceUpdate()})),X.useEffect((()=>{r&&S(MR(r))}),[r]),Uw((()=>{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=TR(k,v.current,mE({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=LR(),R=null!=(n=null!=i?i:m.root)?n:"div",A=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=hE(e,aN),l=function(e,t){return"function"==typeof e?e(t):e}(r,o),{props:a,internalRef:s}=lN(mE({},i,{externalSlotProps:l}));return nN(n,mE({},a,{ref:Xw(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 Fk.jsx(R,mE({},A,{children:"function"==typeof o?o(T):o}))})),DR=X.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=PR,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={}}=e,v=hE(e,OR),[b,y]=X.useState(!0);if(!a&&!u&&(!m||b))return null;let x;if(o)x=o;else if(n){const e=MR(n);x=e&&void 0!==e.nodeType?Ww(e).body:Ww(null).body}const _=u||!a||m&&!b?void 0:"none",w=m?{in:u,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return Fk.jsx(NR,{disablePortal:l,container:x,children:Fk.jsx(IR,mE({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:mE({position:"fixed",top:0,left:0,display:_},p),TransitionProps:w,children:r}))})}));var $R=DR;const zR=["onChange","maxRows","minRows","style","value"];function FR(e){return parseInt(e,10)||0}const BR={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function HR(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const WR=X.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:l}=e,a=hE(e,zR),{current:s}=X.useRef(null!=l),u=X.useRef(null),c=Xw(t,u),d=X.useRef(null),f=X.useRef(0),[p,m]=X.useState({outerHeightStyle:0}),h=X.useCallback((()=>{const t=u.current,n=jw(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=FR(n.paddingBottom)+FR(n.paddingTop),s=FR(n.borderBottomWidth)+FR(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=X.useCallback((()=>{const e=h();HR(e)||m((t=>g(t,e)))}),[h]);X.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();HR(e)||cm.flushSync((()=>{m((t=>g(t,e)))}))})()}));let t;const n=u.current,r=jw(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()}})),Uw((()=>{v()})),X.useEffect((()=>{f.current=0}),[l]);return Fk.jsxs(X.Fragment,{children:[Fk.jsx("textarea",mE({value:l,onChange:e=>{f.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:mE({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},i)},a)),Fk.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:mE({},BR,i,{padding:0})})]})}));var jR=WR;function KR(e,t){return KR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KR(e,t)}function UR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,KR(e,t)}var YR=!1,GR=q.createContext(null),VR="unmounted",QR="exited",XR="entering",qR="entered",JR="exiting",ZR=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=QR,r.appearStatus=XR):o=qR:o=t.unmountOnExit||t.mountOnEnter?VR:QR,r.state={status:o},r.nextCallback=null,r}UR(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===VR?{status:QR}: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!==XR&&n!==qR&&(t=XR):n!==XR&&n!==qR||(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===XR){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:dm.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===QR&&this.setState({status:VR})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[dm.findDOMNode(this),r],i=o[0],l=o[1],a=this.getTimeouts(),s=r?a.appear:a.enter;!e&&!n||YR?this.safeSetState({status:qR},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:XR},(function(){t.props.onEntering(i,l),t.onTransitionEnd(s,(function(){t.safeSetState({status:qR},(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:dm.findDOMNode(this);t&&!YR?(this.props.onExit(r),this.safeSetState({status:JR},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:QR},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:QR},(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:dm.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===VR)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=hE(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return q.createElement(GR.Provider,{value:null},"function"==typeof n?n(e,r):q.cloneElement(q.Children.only(n),r))},t}(q.Component);function eA(){}ZR.contextType=GR,ZR.propTypes={},ZR.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:eA,onEntering:eA,onEntered:eA,onExit:eA,onExiting:eA,onExited:eA},ZR.UNMOUNTED=VR,ZR.EXITED=QR,ZR.ENTERING=XR,ZR.ENTERED=qR,ZR.EXITING=JR;var tA=ZR;function nA(e,t){var n=Object.create(null);return e&&X.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&X.isValidElement(e)?t(e):e}(e)})),n}function rA(e,t,n){return null!=n[t]?n[t]:e.props[t]}function oA(e,t,n){var r=nA(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(X.isValidElement(l)){var a=i in t,s=i in r,u=t[i],c=X.isValidElement(u)&&!u.props.in;!s||a&&!c?s||!a||c?s&&a&&X.isValidElement(u)&&(o[i]=X.cloneElement(l,{onExited:n.bind(null,l),in:u.props.in,exit:rA(l,"exit",e),enter:rA(l,"enter",e)})):o[i]=X.cloneElement(l,{in:!1}):o[i]=X.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:rA(l,"exit",e),enter:rA(l,"enter",e)})}})),o}var iA=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},lA=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}UR(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,nA(n.children,(function(e){return X.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:rA(e,"appear",n),enter:rA(e,"enter",n),exit:rA(e,"exit",n)})}))):oA(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=nA(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=mE({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=hE(e,["component","childFactory"]),o=this.state.contextValue,i=iA(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?q.createElement(GR.Provider,{value:o},i):q.createElement(GR.Provider,{value:o},q.createElement(t,r,i))},t}(q.Component);lA.propTypes={},lA.defaultProps={component:"div",childFactory:function(e){return e}};var aA=lA;function sA(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 uA(e){return dE("MuiPaper",e)}fE("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 cA=["className","component","elevation","square","variant"],dA=qT("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 mE({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&&mE({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${pT("#fff",eN(t.elevation))}, ${pT("#fff",eN(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var fA=X.forwardRef((function(e,t){const n=QT({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:l=!1,variant:a="elevation"}=n,s=hE(n,cA),u=mE({},n,{component:o,elevation:i,square:l,variant:a}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return aE({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},uA,o)})(u);return Fk.jsx(dA,mE({as:o,ownerState:u,className:qS(c.root,r),ref:t},s))}));var pA=fE("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const mA=["center","classes","className"];let hA,gA,vA,bA,yA=e=>e;const xA=wk(hA||(hA=yA`
|
|
43
|
+
0% {
|
|
44
|
+
transform: scale(0);
|
|
45
|
+
opacity: 0.1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
100% {
|
|
49
|
+
transform: scale(1);
|
|
50
|
+
opacity: 0.3;
|
|
51
|
+
}
|
|
52
|
+
`)),_A=wk(gA||(gA=yA`
|
|
53
|
+
0% {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
100% {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
}
|
|
60
|
+
`)),wA=wk(vA||(vA=yA`
|
|
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
|
+
`)),EA=qT("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),CA=qT((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]=X.useState(!1),f=qS(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:l,height:l,top:-l/2+i,left:-l/2+o},m=qS(n.child,c&&n.childLeaving,r&&n.childPulsate);return a||c||d(!0),X.useEffect((()=>{if(!a&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,a,u]),Fk.jsx("span",{className:f,style:p,children:Fk.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(bA||(bA=yA`
|
|
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
|
+
`),pA.rippleVisible,xA,550,(({theme:e})=>e.transitions.easing.easeInOut),pA.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),pA.child,pA.childLeaving,_A,550,(({theme:e})=>e.transitions.easing.easeInOut),pA.childPulsate,wA,(({theme:e})=>e.transitions.easing.easeInOut)),kA=X.forwardRef((function(e,t){const n=QT({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,l=hE(n,mA),[a,s]=X.useState([]),u=X.useRef(0),c=X.useRef(null);X.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[a]);const d=X.useRef(!1),f=X.useRef(null),p=X.useRef(null),m=X.useRef(null);X.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const h=X.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:l}=e;s((e=>[...e,Fk.jsx(CA,{classes:{ripple:qS(o.ripple,pA.ripple),rippleVisible:qS(o.rippleVisible,pA.rippleVisible),ripplePulsate:qS(o.ripplePulsate,pA.ripplePulsate),child:qS(o.child,pA.child),childLeaving:qS(o.childLeaving,pA.childLeaving),childPulsate:qS(o.childPulsate,pA.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=l}),[o]),g=X.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=X.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=X.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 X.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Fk.jsx(EA,mE({className:qS(pA.root,o.root,i),ref:m},l,{children:Fk.jsx(aA,{component:null,exit:!0,children:a})}))}));var SA=kA;function TA(e){return dE("MuiButtonBase",e)}var NA=fE("MuiButtonBase",["root","disabled","focusVisible"]);const RA=["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"],AA=qT("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"},[`&.${NA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),OA=X.forwardRef((function(e,t){const n=QT({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=hE(n,RA),M=X.useRef(null),L=X.useRef(null),P=Xw(L,R),{isFocusVisibleRef:I,onFocus:D,onBlur:$,ref:z}=iE(),[F,B]=X.useState(!1);s&&F&&B(!1),X.useImperativeHandle(r,(()=>({focusVisible:()=>{B(!0),M.current.focus()}})),[]);const[H,W]=X.useState(!1);X.useEffect((()=>{W(!0)}),[]);const j=H&&!u&&!s;function K(e,t,n=c){return Qw((r=>{t&&t(r);return!n&&L.current&&L.current[e](r),!0}))}X.useEffect((()=>{F&&d&&!u&&H&&L.current.pulsate()}),[u,d,F,H]);const U=K("start",_),Y=K("stop",h),G=K("stop",g),V=K("stop",E),Q=K("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),q=K("start",S),J=K("stop",C),Z=K("stop",k),ee=K("stop",(e=>{$(e),!1===I.current&&B(!1),p&&p(e)}),!1),te=Qw((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=X.useRef(!1),oe=Qw((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=Qw((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=Xw(t,z,M),ue=mE({},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=aE({root:["root",t&&"disabled",n&&"focusVisible"]},TA,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Fk.jsxs(AA,mE({as:le,className:qS(ce.root,l),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:Q,onMouseUp:V,onDragLeave:G,onTouchEnd:J,onTouchMove:Z,onTouchStart:q,ref:se,tabIndex:s?-1:T,type:A},ae,O,{children:[i,j?Fk.jsx(SA,mE({ref:P,center:o},N)):null]}))}));var MA=OA;function LA(e){return dE("MuiIconButton",e)}var PA=fE("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const IA=["edge","children","className","color","disabled","disableFocusRipple","size"],DA=qT(MA,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Hw(n.color)}`],n.edge&&t[`edge${Hw(n.edge)}`],t[`size${Hw(n.size)}`]]}})((({theme:e,ownerState:t})=>mE({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})`:pT(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 mE({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&mE({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":mE({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pT(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)},{[`&.${PA.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),$A=X.forwardRef((function(e,t){const n=QT({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=hE(n,IA),d=mE({},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 aE({root:["root",n&&"disabled","default"!==r&&`color${Hw(r)}`,o&&`edge${Hw(o)}`,`size${Hw(i)}`]},LA,t)})(d);return Fk.jsx(DA,mE({className:qS(f.root,i),centerRipple:!0,focusRipple:!s,disabled:a,ref:t,ownerState:d},c,{children:o}))}));var zA=$A;function FA(e){return dE("MuiTypography",e)}fE("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const BA=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],HA=qT("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${Hw(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>mE({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}))),WA={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},jA={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},KA=X.forwardRef((function(e,t){const n=QT({props:e,name:"MuiTypography"}),r=(e=>jA[e]||e)(n.color),o=QS(mE({},n,{color:r})),{align:i="inherit",className:l,component:a,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=WA}=o,p=hE(o,BA),m=mE({},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]||WA[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e;return aE({root:["root",i,"inherit"!==e.align&&`align${Hw(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},FA,l)})(m);return Fk.jsx(HA,mE({as:h,ref:t,ownerState:m,className:qS(g.root,l)},p))}));var UA=KA;const YA=["components","componentsProps","slots","slotProps"],GA=qT($R,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),VA=X.forwardRef((function(e,t){var n;const r=jS(),o=QT({props:e,name:"MuiPopper"}),{components:i,componentsProps:l,slots:a,slotProps:s}=o,u=hE(o,YA),c=null!=(n=null==a?void 0:a.root)?n:null==i?void 0:i.Root;return Fk.jsx(GA,mE({direction:null==r?void 0:r.direction,slots:{root:c},slotProps:null!=s?s:l},u,{ref:t}))}));var QA=VA;var XA=X.createContext(void 0);function qA(e){return Fk.jsx(YS,mE({},e,{defaultTheme:GT,themeId:pE}))}function JA(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ZA(e){return dE("MuiInputBase",e)}var eO=fE("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const tO=["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"],nO=qT("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${Hw(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>mE({},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",[`&.${eO.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&mE({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),rO=qT("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=mE({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 mE({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] + .${eO.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},[`&.${eO.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"})})),oO=Fk.jsx(qA,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),iO=X.forwardRef((function(e,t){var n;const r=QT({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=hE(r,tO),F=null!=v.value?v.value:$,{current:B}=X.useRef(null!=F),H=X.useRef(),W=X.useCallback((e=>{}),[]),j=Xw(H,b,v.ref,W),[K,U]=X.useState(!1),Y=X.useContext(XA),G=function({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=Y?Y.focused:K,X.useEffect((()=>{!Y&&d&&K&&(U(!1),E&&E())}),[Y,d,K,E]);const V=Y&&Y.onFilled,Q=Y&&Y.onEmpty,q=X.useCallback((e=>{!function(e,t=!1){return e&&(JA(e.value)&&""!==e.value||t&&JA(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():V&&V()}),[V,Q]);Uw((()=>{B&&q({value:F})}),[F,q,B]);X.useEffect((()=>{q(H.current)}),[]);let J=g,Z=v;_&&"input"===J&&(Z=mE(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:y,minRows:x},Z),J=jR);X.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(I))}),[Y,I]);const ee=mE({},r,{color:G.color||"primary",disabled:G.disabled,endAdornment:p,error:G.error,focused:G.focused,formControl:Y,fullWidth:m,hiddenLabel:G.hiddenLabel,multiline:_,size:G.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 aE({root:["root",`color${Hw(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"]},ZA,t)})(ee),ne=P.root||s.Root||nO,re=L.root||u.root||{},oe=P.input||s.Input||rO;return Z=mE({},Z,null!=(n=L.input)?n:u.input),Fk.jsxs(X.Fragment,{children:[!f&&oO,Fk.jsxs(ne,mE({},re,!tN(ne)&&{ownerState:mE({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),k&&k(e)}},z,{className:qS(te.root,re.className,a,A&&"MuiInputBase-readOnly"),children:[I,Fk.jsx(XA.Provider,{value:null,children:Fk.jsx(oe,mE({ownerState:ee,"aria-invalid":G.error,"aria-describedby":o,autoComplete:i,autoFocus:l,defaultValue:c,disabled:G.disabled,id:h,onAnimationStart:e=>{q("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:w,placeholder:R,readOnly:A,required:G.required,rows:M,value:F,onKeyDown:T,onKeyUp:N,type:D},Z,!tN(oe)&&{as:J,ownerState:mE({},ee,Z.ownerState)},{ref:j,className:qS(te.input,Z.className,A&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!B){const t=e.target||H.current;if(null==t)throw new Error(Ew(1));q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(S&&S(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):U(!0))}}))}),p,O?O(mE({},G,{startAdornment:I})):null]}))]})}));var lO=iO;const aO=YT(),sO=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Hk("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(BS);return X.forwardRef((function(e,l){const a=US(n),s=QS(e),{className:u,component:c="div"}=s,d=hE(s,JS);return Fk.jsx(i,mE({as:c,ref:l,className:qS(u,o?o(r):r),theme:t&&a[t]||a},d))}))}({themeId:pE,defaultTheme:aO,defaultClassName:"MuiBox-root",generateClassName:uE.generate});var uO=sO;function cO(e){return dE("MuiButton",e)}var dO=fE("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 fO=X.createContext({});const pO=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],mO=e=>mE({},"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}}),hO=qT(MA,{shouldForwardProp:e=>XT(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Hw(n.color)}`],t[`size${Hw(n.size)}`],t[`${n.variant}Size${Hw(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 mE({},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":mE({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pT(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})`:pT(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})`:pT(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":mE({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${dO.focusVisible}`]:mE({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${dO.disabled}`]:mE({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 ${pT(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"},[`&.${dO.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${dO.disabled}`]:{boxShadow:"none"}})),gO=qT("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Hw(n.size)}`]]}})((({ownerState:e})=>mE({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},mO(e)))),vO=qT("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Hw(n.size)}`]]}})((({ownerState:e})=>mE({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},mO(e)))),bO=X.forwardRef((function(e,t){const n=X.useContext(fO),r=QT({props:lE(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=hE(r,pO),y=mE({},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 mE({},l,aE({root:["root",i,`${i}${Hw(t)}`,`size${Hw(o)}`,`${i}Size${Hw(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Hw(o)}`],endIcon:["endIcon",`iconSize${Hw(o)}`]},cO,l))})(y),_=h&&Fk.jsx(gO,{className:x.startIcon,ownerState:y,children:h}),w=d&&Fk.jsx(vO,{className:x.endIcon,ownerState:y,children:d});return Fk.jsxs(hO,mE({ownerState:y,className:qS(n.className,x.root,a),component:l,disabled:s,focusRipple:!c,focusVisibleClassName:qS(x.focusVisible,f),ref:t,type:g},b,{classes:x,children:[_,o,w]}))}));var yO=bO;function xO(e){return dE("MuiDivider",e)}var _O=fE("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const wO=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],EO=qT("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})=>mE({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)`:pT(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})=>mE({},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})=>mE({},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})=>mE({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),CO=qT("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>mE({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)`}))),kO=X.forwardRef((function(e,t){const n=QT({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=hE(n,wO),m=mE({},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 aE({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"]},xO,r)})(m);return Fk.jsx(EO,mE({as:l,className:qS(h.root,i),role:c,ref:t,ownerState:m},p,{children:o?Fk.jsx(CO,{className:h.wrapper,ownerState:m,children:o}):null}))}));var SO=kO;const TO=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function NO(e){return`scale(${e}, ${e**2})`}const RO={entering:{opacity:1,transform:NO(1)},entered:{opacity:1,transform:"none"}},AO="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),OO=X.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=tA}=e,g=hE(e,TO),v=X.useRef(),b=X.useRef(),y=VT(),x=X.useRef(null),_=Xw(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}=sA({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:AO?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}=sA({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:AO?o:.666*o,delay:AO?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=NO(.75),c&&c(e)})),N=w(d);return X.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Fk.jsx(h,mE({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)=>X.cloneElement(o,mE({style:mE({opacity:0,transform:NO(.75),visibility:"exited"!==e||l?void 0:"hidden"},RO[e],p,o.props.style),ref:_},t))}))}));OO.muiSupportAuto=!0;var MO=OO;var LO=X.createContext({});function PO(e){return dE("MuiList",e)}fE("MuiList",["root","padding","dense","subheader"]);const IO=["children","className","component","dense","disablePadding","subheader"],DO=qT("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})=>mE({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var $O=X.forwardRef((function(e,t){const n=QT({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:l=!1,disablePadding:a=!1,subheader:s}=n,u=hE(n,IO),c=X.useMemo((()=>({dense:l})),[l]),d=mE({},n,{component:i,dense:l,disablePadding:a}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return aE({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},PO,t)})(d);return Fk.jsx(LO.Provider,{value:c,children:Fk.jsxs(DO,mE({as:i,className:qS(f.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function zO(e){return dE("MuiListItemIcon",e)}var FO=fE("MuiListItemIcon",["root","alignItemsFlexStart"]);const BO=["className"],HO=qT("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})=>mE({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var WO=X.forwardRef((function(e,t){const n=QT({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=hE(n,BO),i=mE({},n,{alignItems:X.useContext(LO).alignItems}),l=(e=>{const{alignItems:t,classes:n}=e;return aE({root:["root","flex-start"===t&&"alignItemsFlexStart"]},zO,n)})(i);return Fk.jsx(HO,mE({className:qS(l.root,r),ownerState:i,ref:t},o))}));var jO=fE("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const KO=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function UO(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function YO(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function GO(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 VO(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")&&GO(a,i)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}var QO=X.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=hE(e,KO),f=X.useRef(null),p=X.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Uw((()=>{r&&f.current.focus()}),[r]),X.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)}(Ww(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=Xw(f,t);let h=-1;X.Children.forEach(i,((e,t)=>{X.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=X.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),X.cloneElement(e,t)}return e}));return Fk.jsx($O,mE({role:"menu",ref:m,className:l,onKeyDown:e=>{const t=f.current,n=e.key,r=Ww(t).activeElement;if("ArrowDown"===n)e.preventDefault(),VO(t,r,s,a,UO);else if("ArrowUp"===n)e.preventDefault(),VO(t,r,s,a,YO);else if("Home"===n)e.preventDefault(),VO(t,null,s,a,UO);else if("End"===n)e.preventDefault(),VO(t,null,s,a,YO);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&&GO(r,o);o.previousKeyMatched&&(s||VO(t,r,!1,a,UO,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function XO(e){return dE("MuiMenuItem",e)}var qO=fE("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const JO=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ZO=qT(MA,{shouldForwardProp:e=>XT(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})=>mE({},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"}},[`&.${qO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pT(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qO.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pT(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qO.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pT(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})`:pT(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qO.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qO.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_O.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_O.inset}`]:{marginLeft:52},[`& .${jO.root}`]:{marginTop:0,marginBottom:0},[`& .${jO.inset}`]:{paddingLeft:36},[`& .${FO.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&mE({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${FO.root} svg`]:{fontSize:"1.25rem"}}))));var eM=X.forwardRef((function(e,t){const n=QT({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=hE(n,JO),p=X.useContext(LO),m=X.useMemo((()=>({dense:i||p.dense||!1,disableGutters:a})),[p.dense,i,a]),h=X.useRef(null);Uw((()=>{r&&h.current&&h.current.focus()}),[r]);const g=mE({},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 mE({},l,aE({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},XO,l))})(n),b=Xw(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Fk.jsx(LO.Provider,{value:m,children:Fk.jsx(ZO,mE({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:qS(v.focusVisible,s),className:qS(v.root,d)},f,{ownerState:g,classes:v}))})}));function tM(e){return dE("MuiTooltip",e)}var nM=fE("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const rM=["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 oM=qT(QA,{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})=>mE({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${nM.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${nM.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${nM.arrow}`]:mE({},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"] .${nM.arrow}`]:mE({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),iM=qT("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${Hw(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return mE({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:pT(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},{[`.${nM.popper}[data-popper-placement*="left"] &`]:mE({transformOrigin:"right center"},t.isRtl?mE({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):mE({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${nM.popper}[data-popper-placement*="right"] &`]:mE({transformOrigin:"left center"},t.isRtl?mE({marginRight:"14px"},t.touch&&{marginRight:"24px"}):mE({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${nM.popper}[data-popper-placement*="top"] &`]:mE({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${nM.popper}[data-popper-placement*="bottom"] &`]:mE({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),lM=qT("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:pT(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let aM=!1,sM=null,uM={x:0,y:0};function cM(e,t){return n=>{t&&t(n),e(n)}}const dM=X.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 _=QT({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:H="bottom",PopperComponent:W,PopperProps:j={},slotProps:K={},slots:U={},title:Y,TransitionComponent:G=MO,TransitionProps:V}=_,Q=hE(_,rM),q=VT(),J="rtl"===q.direction,[Z,ee]=X.useState(),[te,ne]=X.useState(null),re=X.useRef(!1),oe=R||P,ie=X.useRef(),le=X.useRef(),ae=X.useRef(),se=X.useRef(),[ue,ce]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=X.useRef(void 0!==e),[i,l]=X.useState(t);return[o?e:i,X.useCallback((e=>{o||l(e)}),[])]}({controlled:B,default:!1,name:"Tooltip",state:"open"});let de=ue;const fe=Vw(I),pe=X.useRef(),me=X.useCallback((()=>{void 0!==pe.current&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),clearTimeout(se.current)}),[]);X.useEffect((()=>()=>{clearTimeout(ie.current),clearTimeout(le.current),clearTimeout(ae.current),me()}),[me]);const he=e=>{clearTimeout(sM),aM=!0,ce(!0),F&&!de&&F(e)},ge=Qw((e=>{clearTimeout(sM),sM=setTimeout((()=>{aM=!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||aM&&M?le.current=setTimeout((()=>{he(e)}),aM?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}=iE(),[,Ee]=X.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)}),$)};X.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=Xw(E.ref,we,ee,t);Y||0===Y||(de=!1);const Me=X.useRef(),Le={},Pe="string"==typeof Y;S?(Le.title=de||!Pe||N?null:Y,Le["aria-describedby"]=de?fe:null):(Le["aria-label"]=Pe?Y:null,Le["aria-labelledby"]=de&&!Pe?fe:null);const Ie=mE({},Le,Q,E.props,{className:qS(Q.className,E.props.className),onTouchStart:Se,ref:Oe},P?{onMouseMove:e=>{const t=E.props;t.onMouseMove&&t.onMouseMove(e),uM={x:e.clientX,y:e.clientY},Me.current&&Me.current.update()}}:{}),De={};A||(Ie.onTouchStart=Re,Ie.onTouchEnd=Ae),N||(Ie.onMouseOver=cM(Te,Ie.onMouseOver),Ie.onMouseLeave=cM(Ne,Ie.onMouseLeave),oe||(De.onMouseOver=Te,De.onMouseLeave=Ne)),T||(Ie.onFocus=cM(ke,Ie.onFocus),Ie.onBlur=cM(Ce,Ie.onBlur),oe||(De.onFocus=ke,De.onBlur=Ce));const $e=X.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=j.popperOptions)&&e.modifiers&&(t=t.concat(j.popperOptions.modifiers)),mE({},j.popperOptions,{modifiers:t})}),[te,j]),ze=mE({},_,{isRtl:J,arrow:w,disableInteractive:oe,placement:H,PopperComponentProp:W,touch:re.current}),Fe=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return aE({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Hw(i.split("-")[0])}`],arrow:["arrow"]},tM,t)})(ze),Be=null!=(n=null!=(r=U.popper)?r:C.Popper)?n:oM,He=null!=(o=null!=(i=null!=(l=U.transition)?l:C.Transition)?i:G)?o:MO,We=null!=(a=null!=(s=U.tooltip)?s:C.Tooltip)?a:iM,je=null!=(u=null!=(c=U.arrow)?c:C.Arrow)?u:lM,Ke=nN(Be,mE({},j,null!=(d=K.popper)?d:k.popper,{className:qS(Fe.popper,null==j?void 0:j.className,null==(f=null!=(p=K.popper)?p:k.popper)?void 0:f.className)}),ze),Ue=nN(He,mE({},V,null!=(m=K.transition)?m:k.transition),ze),Ye=nN(We,mE({},null!=(h=K.tooltip)?h:k.tooltip,{className:qS(Fe.tooltip,null==(g=null!=(v=K.tooltip)?v:k.tooltip)?void 0:g.className)}),ze),Ge=nN(je,mE({},null!=(b=K.arrow)?b:k.arrow,{className:qS(Fe.arrow,null==(y=null!=(x=K.arrow)?x:k.arrow)?void 0:y.className)}),ze);return Fk.jsxs(X.Fragment,{children:[X.cloneElement(E,Ie),Fk.jsx(Be,mE({as:null!=W?W:QA,placement:H,anchorEl:P?{getBoundingClientRect:()=>({top:uM.y,left:uM.x,right:uM.x,bottom:uM.y,width:0,height:0})}:Z,popperRef:Me,open:!!Z&&de,id:fe,transition:!0},De,Ke,{popperOptions:$e,children:({TransitionProps:e})=>Fk.jsx(He,mE({timeout:q.transitions.duration.shorter},e,Ue,{children:Fk.jsxs(We,mE({},Ye,{children:[Y,w?Fk.jsx(je,mE({},Ge,{ref:ne})):null]}))}))}))]})}));var fM=dM;const pM=function(e={}){const{createStyledComponent:t=ET,useThemeProps:n=CT,componentName:r="MuiStack"}=e,o=t(ST);return X.forwardRef((function(e,t){const i=QS(n(e)),{component:l="div",direction:a="column",spacing:s=0,divider:u,children:c,className:d,useFlexGap:f=!1}=i,p=hE(i,_T),m={direction:a,spacing:s,useFlexGap:f},h=aE({root:["root"]},(e=>dE(r,e)),{});return Fk.jsx(o,mE({as:l,ownerState:m,ref:t,className:qS(h.root,d)},p,{children:u?kT(c,u):c}))}))}({createStyledComponent:qT("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>QT({props:e,name:"MuiStack"})});var mM=pM;function hM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gM=(e,t)=>q.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){hM(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),q.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"})),vM=X.forwardRef(gM);function bM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yM=(e,t)=>q.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){bM(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),q.createElement("defs",null,q.createElement("path",{id:"tick_svg__tick-a",d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})),q.createElement("use",{xlinkHref:"#tick_svg__tick-a",fillRule:"evenodd"})),xM=X.forwardRef(yM);var _M={},wM=zy,EM=wx,CM=Ty,kM=uy,SM=X;_M.LinkPlugin=function({validateUrl:e}){let[t]=EM.useLexicalComposerContext();return SM.useEffect((()=>{if(!t.hasNodes([wM.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return CM.mergeRegister(t.registerCommand(wM.TOGGLE_LINK_COMMAND,(t=>{if(null===t)return wM.toggleLink(t),!0;if("string"==typeof t)return!(void 0!==e&&!e(t))&&(wM.toggleLink(t),!0);let{url:n,target:r,rel:o,title:i}=t;return wM.toggleLink(n,{rel:o,target:r,title:i}),!0}),kM.COMMAND_PRIORITY_LOW),void 0!==e?t.registerCommand(kM.PASTE_COMMAND,(n=>{let r=kM.$getSelection();if(!kM.$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=>kM.$isElementNode(e)))&&(t.dispatchCommand(wM.TOGGLE_LINK_COMMAND,o),n.preventDefault(),!0))}),kM.COMMAND_PRIORITY_LOW):()=>{})}),[t,e]),null};var TM=_M;function NM(e){if(e.type)return e;if("#"===e.charAt(0))return NM(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 RM(e,t){return e=NM(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 AM={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)"},OM=12,MM=14,LM=16,PM=24,IM=3,DM=300,$M=400,zM=600,FM=700,BM={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};RM(AM.GREYSCALE_0,.05),RM(AM.GREEN_PALE,.5),RM(AM.BLUE_PALE,.5),RM(AM.GREEN_PALE,.5),RM(AM.BLUE_PALE,.5),RM(AM.GREEN_PALE,.5),RM(AM.BLUE_PALE,.5);var HM,WM;function jM(){return jM=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},jM.apply(this,arguments)}RM(AM.GREEN_PALE,.5),RM(AM.BLUE_PALE,.5),RM(AM.GREEN_PALE,.5),RM(AM.BLUE_PALE,.5);var KM,UM,YM=function(e){return X.createElement("svg",jM({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),HM||(HM=X.createElement("defs",null,X.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"}))),WM||(WM=X.createElement("use",{xlinkHref:"#ArrowDown_svg__a",fillRule:"evenodd"})))};function GM(){return GM=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},GM.apply(this,arguments)}var VM=function(e){return X.createElement("svg",GM({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),KM||(KM=X.createElement("defs",null,X.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"}))),UM||(UM=X.createElement("use",{xlinkHref:"#Close_svg__a"})))};function QM({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return q.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 XM=(e={})=>q.createElement(QM,{...e},q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},q.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),q.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"}))),qM=(e={})=>q.createElement(QM,{...e},q.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},q.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},q.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),q.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),JM=(e={})=>q.createElement(QM,{fontSize:"medium",...e},q.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},q.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},q.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),ZM=(e={})=>q.createElement(QM,{fontSize:"medium",...e},q.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},q.createElement("defs",null,q.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),q.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},q.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},q.createElement("use",{href:"#radio-checked-path-1"})),q.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),q.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),eL=({className:e})=>q.createElement(QM,{fontSize:"small",className:e},q.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},q.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},q.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},q.createElement("g",{transform:"translate(4.324187, 1.300372)"},q.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"}),q.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"})))))),tL=(e={})=>q.createElement(QM,{...e},q.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},q.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},q.createElement("rect",{stroke:AM.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const nL={MuiAccordion:{styleOverrides:{root:{backgroundColor:AM.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:AM.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:q.createElement(YM,{"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 ${AM.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:AM.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${AM.MISC_FOCUS_BORDER}`,borderRadius:IM,backgroundColor:AM.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 ${AM.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:AM.WHITE,color:AM.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:IM},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${AM.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:AM.GREYSCALE_0_15,backgroundColor:AM.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:AM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${AM.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:AM.GREEN_PALE},"&:active":{backgroundColor:AM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:AM.GREEN_PALE,boxShadow:`0 0 0 3px ${pT(AM.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:AM.BLUE_PALE},"&:active":{backgroundColor:AM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:AM.BLUE_PALE,boxShadow:`0 0 0 3px ${pT(AM.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:IM,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:AM.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${AM.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:AM.GREYSCALE_0_15,backgroundColor:AM.GREYSCALE_100_60,"&:active":{backgroundColor:AM.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:AM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${AM.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:AM.PURPLE,"&.Mui-focusVisible":{borderColor:AM.PURPLE,boxShadow:`0 0 0 3px ${pT(AM.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:AM.GREEN,"&.Mui-focusVisible":{borderColor:AM.GREEN,boxShadow:`0 0 0 3px ${pT(AM.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:AM.BLUE,"&.Mui-focusVisible":{borderColor:AM.BLUE,boxShadow:`0 0 0 3px ${pT(AM.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:AM.ORANGE,"&.Mui-focusVisible":{borderColor:AM.ORANGE,boxShadow:`0 0 0 3px ${pT(AM.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:AM.RED,"&.Mui-focusVisible":{borderColor:AM.RED,boxShadow:`0 0 0 3px ${pT(AM.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:AM.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:AM.PURPLE_PALE},"&:active":{backgroundColor:AM.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:AM.PURPLE_PALE,boxShadow:`0 0 0 3px ${pT(AM.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:AM.GREEN_PALE},"&:active":{backgroundColor:AM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:AM.GREEN_PALE,boxShadow:`0 0 0 3px ${pT(AM.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:AM.BLUE_PALE},"&:active":{backgroundColor:AM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:AM.BLUE_PALE,boxShadow:`0 0 0 3px ${pT(AM.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:AM.ORANGE_PALE},"&:active":{backgroundColor:AM.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:AM.ORANGE_PALE,boxShadow:`0 0 0 3px ${pT(AM.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:AM.RED_PALE},"&:active":{backgroundColor:AM.RED_DARK},"&.Mui-focusVisible":{borderColor:AM.RED_PALE,boxShadow:`0 0 0 3px ${pT(AM.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:AM.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:AM.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:IM,boxShadow:`inset 0 0 0 2px ${AM.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:q.createElement(VM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:OM,borderRadius:IM,color:AM.TEXT_PRIMARY,backgroundColor:AM.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:AM.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${AM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:AM.GREYSCALE_0_05,color:AM.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:AM.GREEN,borderColor:AM.GREEN},"&.MuiChip-outlinedInfo":{color:AM.BLUE,borderColor:AM.BLUE},"&.MuiChip-outlinedWarning":{color:AM.ORANGE,borderColor:AM.ORANGE},"&.MuiChip-outlinedError":{color:AM.RED,borderColor:AM.RED}},outlined:{border:`solid 1px ${AM.GREYSCALE_0_15}`,backgroundColor:AM.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:IM,boxShadow:"none",backgroundColor:AM.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:AM.GREEN,borderColor:AM.GREEN},outlinedSecondary:{color:AM.BLUE,borderColor:AM.BLUE},label:{fontFamily:BM.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:q.createElement(VM,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:q.createElement(YM,{"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:IM},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:MM,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:AM.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:AM.GREYSCALE_0_10},"&:hover":{backgroundColor:AM.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:IM,border:`solid 1px ${AM.GREYSCALE_0_15}`,color:AM.GREYSCALE_0_60,marginRight:0,width:PM,height:PM},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${AM.GREYSCALE_0_15}`},clearIndicator:{borderRadius:IM,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:AM.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:MM}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:OM,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:AM.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:AM.GREYSCALE_25,fontSize:OM,fontFamily:BM.FONT_FAMILY,fontWeight:zM,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:AM.TEXT_PRIMARY},"&.Mui-error":{color:AM.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:AM.TEXT_SECONDARY,content:"'(optional)'",fontWeight:$M,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:AM.TEXT_SECONDARY,content:"'(required)'",fontWeight:$M,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:MM,lineHeight:"16px",backgroundColor:AM.WHITE,borderRadius:IM,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${AM.GREYSCALE_0_05}`,borderColor:AM.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${AM.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${AM.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${AM.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${AM.RED}`,boxShadow:`0px 0px 0px 1px ${AM.RED}, inset 0 2px 0 0 ${AM.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${AM.GREYSCALE_0_10}`,borderColor:AM.GREYSCALE_0_10,backgroundColor:AM.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:AM.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:AM.GREYSCALE_0_15,borderRadius:IM,boxShadow:`inset 0 2px 0 0 ${AM.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>q.createElement(YM,{...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:AM.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:AM.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:AM.GREYSCALE_0_03},"&:active":{backgroundColor:AM.GREYSCALE_0_10},"&:focus":{backgroundColor:AM.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${AM.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${AM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:AM.GREYSCALE_0_30,"&:hover":{backgroundColor:AM.GREYSCALE_0_0,borderColor:AM.GREYSCALE_0_15},"& ~svg":{color:AM.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${AM.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:IM}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:AM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${AM.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:AM.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:MM,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:OM,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:OM,fontWeight:zM,color:AM.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:zM}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${AM.GREYSCALE_0_15}, 0px 0px 0px 1px ${AM.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:q.createElement(JM,null),checkedIcon:q.createElement(ZM,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:AM.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${AM.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:AM.GREEN_PALE,boxShadow:`0 0 0 3px ${pT(AM.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:AM.BLUE_PALE,boxShadow:`0 0 0 3px ${pT(AM.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:AM.GREYSCALE_0_20}},"&.Mui-disabled":{fill:AM.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:q.createElement(tL,null),checkedIcon:q.createElement(XM,null),indeterminateIcon:q.createElement(qM,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:IM,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:AM.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:AM.GREYSCALE_0_55,color:AM.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:AM.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:AM.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:AM.GREYSCALE_0_55,"&:hover":{color:AM.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:AM.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:AM.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:MM,color:AM.TEXT_PRIMARY,lineHeight:"16px",fontWeight:zM},secondary:{fontSize:OM,color:AM.GREYSCALE_45,fontWeight:$M,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:MM,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:AM.GREYSCALE_0_03},"&:active":{backgroundColor:AM.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:MM,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:AM.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:OM,borderBottom:`solid 1px ${AM.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:MM,color:AM.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:AM.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:AM.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:AM.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:AM.RED}}},"&.Mui-focusVisible":{backgroundColor:AM.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:AM.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:AM.GREEN,height:"24px","&.Mui-disabled":{color:AM.GREYSCALE_0_15}},rail:{backgroundColor:AM.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${AM.GREYSCALE_0_05}`,borderRadius:IM,boxShadow:`inset 0px 0px 0px 1px ${AM.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${AM.GREYSCALE_0_05}`,borderRadius:IM},thumb:{height:"16px",width:"16px",borderRadius:IM,backgroundColor:AM.WHITE,boxShadow:`0px 1px 2px 0px ${AM.GREYSCALE_0_15}, 0px 0px 0px 1px ${AM.GREYSCALE_0_05}`,"&:hover":{borderRadius:IM,boxShadow:`0 2px 4px 0 ${AM.GREYSCALE_0_30}, 0 0 0 1px ${AM.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${AM.GREYSCALE_0_15}, 0 0 0 1px ${AM.GREYSCALE_0_06}, 0 0 0 2px ${AM.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${AM.GREYSCALE_0_15}, 0 0 0 1px ${AM.GREYSCALE_0_06}, 0 0 0 2px ${AM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:AM.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:AM.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:AM.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:AM.GREYSCALE_0_15},markLabel:{color:AM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:AM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:AM.WHITE,color:AM.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:AM.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:AM.GREEN_PALE,boxShadow:`0 0 0 3px ${pT(AM.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:AM.BLUE_PALE,boxShadow:`0 0 0 3px ${pT(AM.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:AM.GREYSCALE_0_15,borderRadius:IM},thumb:{height:"16px",width:"16px",borderRadius:IM,backgroundColor:AM.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:MM,fontWeight:zM,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${AM.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${AM.MISC_FOCUS_BORDER}`,backgroundColor:AM.GREYSCALE_0_03,borderRadius:IM},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:AM.GREYSCALE_25,"&.Mui-selected":{color:AM.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:MM,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${AM.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${AM.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${AM.GREYSCALE_85}`,borderRight:`1px solid ${AM.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:zM,backgroundColor:AM.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:AM.GREYSCALE_98,borderBottom:`1px solid ${AM.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${AM.GREYSCALE_85}`,borderTop:`1px solid ${AM.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:AM.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:AM.GREYSCALE_0_05,"&:hover":{backgroundColor:AM.GREYSCALE_0_03}},"&&:hover":{backgroundColor:AM.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>q.createElement(eL,{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 ${AM.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:MM,borderRadius:IM,padding:"7px 16px",border:`1px solid ${AM.GREYSCALE_0_15}`,backgroundColor:AM.GREYSCALE_100_60,color:AM.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:AM.GREYSCALE_0_10,border:`1px solid ${AM.GREYSCALE_0_30}`},"&:hover":{backgroundColor:AM.GREYSCALE_0_03,border:`1px solid ${AM.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:AM.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${AM.MISC_FOCUS_BORDER}`,border:`1px solid ${AM.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:AM.GREYSCALE_25,backgroundColor:AM.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:AM.GREYSCALE_0_10,border:`1px solid ${AM.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:OM,height:24,width:24,padding:7},sizeLarge:{fontSize:LM,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:MM,borderRadius:IM}}},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:AM.GREYSCALE_20},tooltip:{backgroundColor:AM.GREYSCALE_20,fontSize:OM,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var rL=e=>nL;const oL={mode:"light",primary:{light:AM.GREEN_PALE,main:AM.GREEN,dark:AM.GREEN_DARK,contrastText:AM.WHITE},secondary:{light:AM.BLUE_PALE,main:AM.BLUE,dark:AM.BLUE_DARK,contrastText:AM.WHITE},error:{light:AM.RED_PALE,main:AM.RED,dark:AM.RED_DARK,contrastText:AM.WHITE},warning:{light:AM.ORANGE_PALE,main:AM.ORANGE,dark:AM.ORANGE_DARK,contrastText:AM.WHITE},success:{light:AM.GREEN_PALE,main:AM.GREEN,dark:AM.GREEN_DARK,contrastText:AM.WHITE},info:{light:AM.BLUE_PALE,main:AM.BLUE,dark:AM.BLUE_DARK,contrastText:AM.WHITE},text:{primary:AM.TEXT_PRIMARY,secondary:AM.TEXT_SECONDARY,disabled:AM.GREYSCALE_0_30},action:{hover:AM.GREYSCALE_0_03,hoverOpacity:.05,selected:AM.GREYSCALE_0_05},amethyst:{main:AM.PURPLE,light:AM.PURPLE_PALE,dark:AM.PURPLE_DARK,contrastText:AM.WHITE},background:{paper:AM.WHITE,default:AM.GREYSCALE_95},divider:AM.GREYSCALE_0_15},iL=e=>oL,lL=(e="light")=>YT({components:rL(),palette:iL(),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:MM,fontWeightLight:DM,fontWeightRegular:$M,fontWeightMedium:zM,fontWeightBold:FM,htmlFontSize:MM,fontFamily:BM.FONT_FAMILY,button:{fontWeight:zM,fontSize:MM,textTransform:"none"},body1:{fontSize:LM,lineHeight:"24px"},body2:{fontSize:MM,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:PM,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:LM,fontWeight:zM,lineHeight:"16px"},h6:{fontSize:MM,fontWeight:zM,lineHeight:"16px"},caption:{color:AM.TEXT_SECONDARY},subtitle1:{fontSize:MM,color:AM.TEXT_SECONDARY},subtitle2:{fontSize:OM,color:AM.TEXT_SECONDARY}},shape:{borderRadius:IM}});function aL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sL=(e,t)=>q.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){aL(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),q.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"})),uL=X.forwardRef(sL);var cL={},dL=wx,fL=X;cL.AutoFocusPlugin=function({defaultSelection:e}){let[t]=dL.useLexicalComposerContext();return fL.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 pL=cL,mL={},hL=wx,gL=X;function vL(){return vL=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},vL.apply(this,arguments)}var bL="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?gL.useLayoutEffect:gL.useEffect;mL.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]=hL.useLexicalComposerContext(),[x,_]=gL.useState(!1),w=gL.useCallback((e=>{y.setRootElement(e)}),[y]);return bL((()=>(_(y.isEditable()),y.registerEditableListener((e=>{_(e)})))),[y]),gL.createElement("div",vL({},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 yL=mL,xL=X;function _L(e,t){return _L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_L(e,t)}var wL={error:null},EL=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=wL,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,_L(e,t)}(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.setState(wL)},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},xL.isValidElement(t))return t;if("function"==typeof n)return n(e);if(r)return xL.createElement(r,e);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(xL.Component);const CL=function({children:e,onError:t}){return xL.createElement(EL,{fallback:xL.createElement("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"}},"An error was thrown."),onError:t},e)};var kL=d(CL),SL={},TL={},NL=uy;function RL(e,t=!0){return!e&&(e=AL(),t&&(e=e.trim()),""===e)}function AL(){return NL.$getRoot().getTextContent()}function OL(e){if(!RL(e,!1))return!1;let t=(e=NL.$getRoot().getChildren()).length;if(1<t)return!1;for(let r=0;r<t;r++){var n=e[r];if(NL.$isDecoratorNode(n))return!1;if(NL.$isElementNode(n)){if(!NL.$isParagraphNode(n)||0!==n.__indent)return!1;let e=(n=n.getChildren()).length;for(let t=0;t<e;t++)if(!NL.$isTextNode(n[r]))return!1}}return!0}TL.$canShowPlaceholder=OL,TL.$canShowPlaceholderCurry=function(e){return()=>OL(e)},TL.$findTextIntersectionFromCharacters=function(e,t){var n=e.getFirstChild();e=0;e:for(;null!==n;){if(NL.$isElementNode(n)){var r=n.getFirstChild();if(null!==r){n=r;continue}}else if(NL.$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},TL.$isRootTextContentEmpty=RL,TL.$isRootTextContentEmptyCurry=function(e,t){return()=>RL(e,t)},TL.$rootTextContent=AL,TL.registerLexicalTextEntity=function(e,t,n,r){let o=e=>{const t=NL.$createTextNode(e.getTextContent());t.setFormat(e.getFormat()),e.replace(t)},i=e.registerNodeTransform(NL.TextNode,(e=>{if(e.isSimpleText()){var i=e.getPreviousSibling(),l=e.getTextContent(),a=e;if(NL.$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(),NL.$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&&NL.$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(),NL.$isTextNode(r)&&r.isTextEntity()&&(o(r),o(e)),r=e.getNextSibling(),NL.$isTextNode(r)&&r.isTextEntity()&&(o(r),e instanceof n&&o(e)))})),[i,e]};var ML=TL,LL={},PL=uy;LL.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=PL.$getSelection();if(PL.$isRangeSelection(e)){var o=e.anchor;let s=o.getNode(),u=0,c=0;PL.$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()),PL.$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 IL=wx,DL=cw,$L=X,zL=ML,FL=Ty,BL=cm,HL=LL,WL=K_,jL="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?$L.useLayoutEffect:$L.useEffect;function KL(e){return e.getEditorState().read(zL.$canShowPlaceholderCurry(e.isComposing()))}function UL({content:e}){var[t]=IL.useLexicalComposerContext();t=function(e){let[t,n]=$L.useState((()=>KL(e)));return jL((()=>{function t(){let t=KL(e);n(t)}return t(),FL.mergeRegister(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t);let n=DL();return t?"function"==typeof e?e(n):e:null}SL.RichTextPlugin=function({contentEditable:e,placeholder:t,ErrorBoundary:n}){let[r]=IL.useLexicalComposerContext();return n=function(e,t){let[n,r]=$L.useState((()=>e.getDecorators()));return jL((()=>e.registerDecoratorListener((e=>{BL.flushSync((()=>{r(e)}))}))),[e]),$L.useEffect((()=>{r(e.getDecorators())}),[e]),$L.useMemo((()=>{let r=[],o=Object.keys(n);for(let i=0;i<o.length;i++){let l=o[i],a=$L.createElement(t,{onError:t=>e._onError(t)},$L.createElement($L.Suspense,{fallback:null},n[l])),s=e.getElementByKey(l);null!==s&&r.push(BL.createPortal(a,s,l))}return r}),[t,n,e])}(r,n),function(e){jL((()=>FL.mergeRegister(WL.registerRichText(e),HL.registerDragonSupport(e))),[e])}(r),$L.createElement($L.Fragment,null,e,$L.createElement(UL,{content:t}),n)};var YL=SL;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)=>q.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",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),q.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"})),QL=X.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)=>q.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),q.createElement("defs",null,q.createElement("path",{id:"align_center_svg__align_center-a",d:"M0 1h16v2H0V1Zm15 4v2H1V5h14ZM0 11V9h16v2H0Zm3 4v-2h10v2H3Z"})),q.createElement("use",{xlinkHref:"#align_center_svg__align_center-a",transform:"matrix(-1 0 0 1 16 0)"})),JL=X.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)=>q.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),q.createElement("defs",null,q.createElement("path",{id:"align_left_svg__align_left-a",d:"M0 1h15v2H0V1Zm13 4v2H0V5h13ZM0 11V9h16v2H0Zm0 4v-2h10v2H0Z"})),q.createElement("use",{xlinkHref:"#align_left_svg__align_left-a"})),tP=X.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)=>q.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",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),q.createElement("defs",null,q.createElement("path",{id:"align_right_svg__luiicons_align_right-a",d:"M16 1v2H1V1h15ZM3 5h13v2H3V5Zm13 6H0V9h16v2Zm0 4H6v-2h10v2Z"})),q.createElement("use",{xlinkHref:"#align_right_svg__luiicons_align_right-a"})),oP=X.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)=>q.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),q.createElement("defs",null,q.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"})),q.createElement("use",{xlinkHref:"#arrow_down_svg__down-a",fillRule:"evenodd"})),aP=X.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)=>q.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),q.createElement("defs",null,q.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"})),q.createElement("use",{xlinkHref:"#bullet-list_svg__bullet-list-a"})),cP=X.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)=>q.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",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),q.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"})),pP=X.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)=>q.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",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),q.createElement("defs",null,q.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"})),q.createElement("use",{xlinkHref:"#numbered-list_svg__numbered-list-a"})),gP=X.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)=>q.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),q.createElement("defs",null,q.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"})),q.createElement("use",{xlinkHref:"#text_svg__text_image-a"})),yP=X.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)=>q.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),q.createElement("defs",null,q.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"})),q.createElement("use",{xlinkHref:"#bold_svg__bold-a",fillRule:"evenodd"})),wP=X.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)=>q.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",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),q.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"})),kP=X.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)=>q.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),q.createElement("defs",null,q.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"})),q.createElement("use",{xlinkHref:"#palette_outline_svg__palette_outline-a"})),NP=X.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)=>q.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),q.createElement("defs",null,q.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"})),q.createElement("use",{xlinkHref:"#table_svg__table-a",fillRule:"evenodd"})),OP=X.forwardRef(AP);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 LP=(e,t)=>q.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",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),q.createElement("defs",null,q.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"})),q.createElement("use",{xlinkHref:"#italic_svg__luiicons_italic-a"})),PP=X.forwardRef(LP);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 DP=(e,t)=>q.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),q.createElement("defs",null,q.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"})),q.createElement("use",{xlinkHref:"#link_outline_svg__link_outline-a"})),$P=X.forwardRef(DP);function zP(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)=>q.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){zP(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),q.createElement("defs",null,q.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"})),q.createElement("use",{xlinkHref:"#underline_svg__underline-a"})),BP=X.forwardRef(FP),HP=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,WP=[e=>{const t=HP.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"}}},ow.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 jP(){return X.createElement(ow.AutoLinkPlugin,{matchers:WP})}const KP=()=>{const[e]=wx.useLexicalComposerContext(),t=dw(),n=X.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 X.useEffect((()=>Ty.mergeRegister(e.registerMutationListener(zy.LinkNode,(e=>{n(e)})),e.registerMutationListener(zy.AutoLinkNode,(e=>{n(e)})),e.registerCommand(uy.CLICK_COMMAND,(t=>(t.metaKey&&t.target&&e.getEditorState().read((()=>{const e=uy.$getSelection();let t;if(uy.$isRangeSelection(e)&&(t=e.focus.getNode().getParent()),uy.$isNodeSelection(e)&&(t=e.getNodes()[0]),zy.$isAutoLinkNode(t)||zy.$isLinkNode(t)){const e=t.getURL();setTimeout((()=>{const t=window.open(e,"_blank");null==t||t.focus()}),0)}})),!1)),uy.COMMAND_PRIORITY_EDITOR))),[e,n]),null};function UP(e){const{anchor:t,focus:n}=e,r=t.getNode(),o=n.getNode();return r===o?r:e.isBackward()?_y.$isAtNodeEnd(n)?r:o:_y.$isAtNodeEnd(t)?r:o}const YP=new Set(["http:","https:","mailto:","sms:","tel:"]);function GP(e){try{const t=new URL(e);if(!YP.has(t.protocol))return{url:"about:blank"}}catch(t){return{url:e,target:"_blank"}}return{url:e,target:"_blank"}}const VP=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/;function QP(e){return"https://"===e||VP.test(e)}const XP=qT(mM)((({theme:e})=>({background:e.palette.common.white,display:"flex",alignItems:"center",padding:e.spacing(1)}))),qP=({anchorEl:e,link:t,onChanged:n,onOpened:r})=>{const o=Boolean(e),i=X.useRef(null),[l,a]=X.useState(t);X.useEffect((()=>{a(t)}),[t]);const s=X.useCallback((()=>{window.open(l,"_blank"),r()}),[l,r]),u=X.useCallback((e=>{e.preventDefault(),e.stopPropagation(),n(l)}),[l,n]),c=X.useCallback((e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),n(l))}),[l,n]),d=X.useCallback((e=>{e.preventDefault(),a(e.currentTarget.value)}),[]);return q.createElement(QA,{open:o,anchorEl:e,placement:"bottom-start",sx:{zIndex:1},transition:!0},(({TransitionProps:e})=>q.createElement(MO,{...e},q.createElement(fA,{className:"tekPopperMenu"},q.createElement(XP,{direction:"row"},q.createElement(lO,{ref:i,placeholder:t,margin:"dense",size:"small",value:l,onChange:d,onKeyDown:c}),q.createElement(zA,{onClick:s},q.createElement(vM,null)),q.createElement(zA,{onClick:u},q.createElement(xM,null)))))))},JP=()=>{const[e]=wx.useLexicalComposerContext(),t=dw(),[n,r]=X.useState(null),[o,i]=X.useState(""),l=X.useRef(!1),a=X.useCallback((()=>{if(l.current)return l.current=!1,!1;const t=uy.$getSelection();if(uy.$isRangeSelection(t)){const n=UP(t),o=n.getParent();if(zy.$isAutoLinkNode(o)||zy.$isAutoLinkNode(n))return r(null),i(""),!1;let l;if(zy.$isLinkNode(o)&&(l=o),zy.$isLinkNode(n)&&(l=n),zy.$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=X.useCallback((t=>{l.current=!0,e.update((()=>{e.dispatchCommand(zy.TOGGLE_LINK_COMMAND,GP(t))}),{onUpdate:()=>{r(null)}})}),[e]),u=X.useCallback((()=>{r(null)}),[]);return X.useEffect((()=>Ty.mergeRegister(e.registerCommand(uy.SELECTION_CHANGE_COMMAND,(()=>a()),uy.COMMAND_PRIORITY_LOW),e.registerCommand(uy.CLICK_COMMAND,(()=>a()),uy.COMMAND_PRIORITY_LOW))),[e,a]),t?q.createElement(qP,{anchorEl:n,link:o,onChanged:s,onOpened:u}):null};function ZP(){return X.createElement(TM.LinkPlugin,{validateUrl:QP})}!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 eI=({children:e})=>q.createElement(ZT,{theme:lL()},e),tI={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:[K_.HeadingNode,K_.QuoteNode,vx.ListNode,vx.ListItemNode,zy.LinkNode,zy.AutoLinkNode],onError:e=>{console.log(e)}},nI=({children:e,initialConfig:t})=>q.createElement(eI,null,q.createElement("div",{className:"tek__editor__Wrapper"},q.createElement(Rx.LexicalComposer,{initialConfig:t||tI},q.createElement("div",{className:"tek__editor__container"},e,q.createElement(Ux.ListPlugin,null),q.createElement(Jx.TabIndentationPlugin,null),q.createElement(ZP,null),q.createElement(jP,null),q.createElement(JP,null),q.createElement(KP,null),q.createElement(zx.HistoryPlugin,null)))));class rI extends uy.ElementNode{static getType(){return"TekCellNode"}static clone(e){return new rI(e.__hasBorders,e.__key)}static importJSON(e){return new rI(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 oI=e=>new rI(e),iI=e=>e instanceof rI;class lI extends uy.ElementNode{static getType(){return"TekTableNode"}static clone(e){return new lI(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 lI(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 aI(e){return e instanceof lI}class sI extends uy.ElementNode{static getType(){return"TekRowNode"}static clone(e){return new sI(e.__key)}static importJSON(){return new sI}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 uI(e){return e instanceof sI}const cI=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),iI(t))return t;return null},dI=e=>{let t=e;for(;null!==t;){if(aI(t))return t;t=null==t?void 0:t.getParent()}return null},fI=(e,t)=>{const n=dI(e);if(n){const e=t.getElementByKey(n.getKey());if(e)return e}return null},pI=e=>null==e?void 0:e.getChildAtIndex(2),mI=e=>{const t=e.getParent();if(uI(t)){const n=t.getChildren();for(let t=0;t<n.length;t++)if(n[t]===e)return t}return-1},hI=(e,t)=>e?.01*parseFloat(e.getAttribute("width")||"0")*t.offsetWidth:0,gI=(e,t)=>{const n=e/t.offsetWidth;return`${Math.min(100*n,100).toFixed(2)}%`},vI=e=>{if(!e)return[];return e.getChildren().filter((e=>uI(e)))},bI=e=>{let t=!1;return vI(e).forEach((e=>{e.getChildren().forEach((e=>{const n=e;n.clear(),n.append(uy.$createParagraphNode()),t=!0}))})),t},yI=e=>{var t;const n=uy.$getSelection();if(uy.$isRangeSelection(n)||uy.$isNodeSelection(n)){const r=n.getNodes().filter((e=>iI(e)));if(r.length>0){e.preventDefault(),e.stopPropagation();const o=n.getNodes().some((e=>aI(e))),i=dI(r[0]),l=vI(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(uy.$isRangeSelection(n)){const e=n.focus.getNode();if(aI(e))return bI(e)}return r.forEach((e=>{e.clear(),e.append(uy.$createParagraphNode())})),(()=>{const e=uy.$getSelection();let t=!1;if(uy.$isRangeSelection(e)){const n=e.anchor.getNode(),r=e.focus.getNode();let o=dI(n);!o&&aI(r)&&(o=r),aI(o)&&(t=bI(o))}return t})()}if(uy.$isRangeSelection(n)){const e=n.focus.getNode();if(aI(e))return bI(e)}}return!1},xI=e=>{if(e){const t=dI(e);if(aI(t)){const n=e.getParent(),r=vI(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}},_I=e=>{let t=e;for(;null!==t;)if(t=t.getParent(),iI(t))return t;return null},wI=e=>{const t=[];return vI(e).forEach((e=>{const n=e.getChildren();t.push(...n)})),t},EI=(e,t)=>{wI(e).forEach((e=>{const n=t.getElementByKey(e.getKey());null==n||n.classList.add("tek__tekCellHighlight")}))},CI=uy.createCommand("UPDATE_COL_WIDTHS_COMMAND"),kI=uy.createCommand("BEGIN_COL_RESIZE"),SI=uy.createCommand("END_COL_RESIZE"),TI=uy.createCommand("INSERT_TEK_TABLE_COMMAND"),NI=({colKey:e,startX:t,onMouseDown:n})=>{const r=X.useCallback((t=>{n(t,e)}),[e,n]);return q.createElement("div",{role:"button","aria-label":"resize",tabIndex:-1,className:"tek__resizer",style:{left:`${t}%`},onMouseDown:r})},RI=(e,t)=>{const n=document.createElement("div");return n.classList.add("tek__resizeIndicatorDisplay"),n.classList.add(e),n.id=t,n},AI=e=>`${parseFloat(e.getAttribute("width")||"0").toFixed(2)}%`,OI=({nodeKey:e,colWidths:t})=>{const[n]=wx.useLexicalComposerContext(),r=dw(),[o,i]=X.useState(null),l=X.useRef(null),a=X.useRef(null),s=X.useRef(null),u=X.useRef(null),c=X.useCallback((t=>{const n=uy.$getNodeByKey(e);if(n){const e=n.getParent();if(aI(e)){const n=pI(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=X.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=gI(a+p,r);if(c){const e=o+p;if(e<60)return;const t=gI(e,r),a=l.current.nxtColWidth-p,d=gI(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=gI(e,d),a=gI(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=X.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(gI(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(SI,void 0)}l.current=null,a.current=null,n.update((()=>{const t=uy.$getNodeByKey(e),r=fI(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(CI,{colWidths:a,nodeKey:e})}}))}),[d,n,e,o]),p=X.useCallback(((e,t)=>{e.preventDefault(),e.stopPropagation(),document.addEventListener("mousemove",d,{passive:!0}),document.addEventListener("mouseup",f),n.getEditorState().read((()=>{const r=uy.$getNodeByKey(t),o=fI(r,n);if(iI(r)){const t=mI(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=hI(i,o),d=e.target,f=.01*parseFloat(d.style.left),p=o.offsetWidth*f,m=hI(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=RI("tek__leftResizerIndicator","leftGripper");r.innerText=AI(e);let o=null;return t?(o=RI("tek__rightResizerIndicator","rightGripper"),o.innerText=AI(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(kI,void 0)}}}))}),[n,d,f]);return X.useEffect((()=>{n.getEditorState().read((()=>{c(t)}))}),[c,n,t]),q.createElement(q.Fragment,null,o&&r?o.map((e=>q.createElement(NI,{key:`${e.key}`,colKey:e.key,startX:e.startX,onMouseDown:p}))):null)},MI="TEK_TABLE_RESIZE_NODE";class LI extends uy.DecoratorNode{static getType(){return MI}static clone(e){return new LI(e.__colWidths,e.__key)}static importJSON(e){return new LI(e.colWidths)}constructor(e,t){super(t),this.__colWidths=e}exportJSON(){return{colWidths:this.__colWidths,type:MI,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 q.createElement(OI,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}const PI=e=>e instanceof LI,II=({nodeKey:e,colWidths:t})=>{const[n]=wx.useLexicalComposerContext(),[r,o]=X.useState(t);return X.useEffect((()=>{n.getEditorState().read((()=>{const t=uy.$getNodeByKey(e),n=null==t?void 0:t.getParent();if(aI(n)){const e=n.getResizeNode();if(PI(e)){const t=e.__colWidths.map((e=>e));o(t)}}}))}),[n,e]),q.createElement(q.Fragment,null,r.map(((t,n)=>q.createElement("col",{span:1,width:t,key:`${e}.${n}`}))))};class DI extends uy.DecoratorNode{static getType(){return"TekColGroupNode"}static clone(e){return new DI(e.__colWidths,e.__key)}static importJSON(e){return new DI(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 q.createElement(II,{nodeKey:this.__key,colWidths:this.__colWidths})}isInline(){return!0}isIsolated(){return!0}isKeyboardSelectable(){return!1}}class $I extends uy.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 zI=[lI,rI,sI,DI,LI],FI=(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()},BI=()=>{var e;const t=uy.$getSelection();if(uy.$isRangeSelection(t)){const n=t.anchor.getNode(),r=cI(n);if(r){const t=mI(r),n=dI(r),o=vI(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()})),FI(i,n)}}},HI=()=>{const e=uy.$getSelection();if(uy.$isRangeSelection(e)){const t=e.anchor.getNode(),n=cI(t),r=dI(n);if(r&&3===r.getChildren().length)return uy.$setSelection(null),void r.remove();if(n){const{row:e}=xI(n);uy.$setSelection(null),null==e||e.remove()}}},WI=()=>{const e=uy.$getSelection();if(uy.$isRangeSelection(e)){const t=e.anchor.getNode(),n=dI(t),r=pI(n);if(uI(r)&&n){const e=r.getChildren().length,t=new sI;for(let r=0;r<e;r++){const e=oI(null==n?void 0:n.__hasBorders);e.append(uy.$createParagraphNode()),t.append(e)}null==n||n.append(t)}}},jI=()=>{var e;const t=uy.$getSelection();if(uy.$isRangeSelection(t)){const n=t.anchor.getNode(),r=dI(n);if(aI(r)){const t=vI(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=oI(r.__hasBorders);o.append(uy.$createParagraphNode()),t[e].append(o),n=o}return FI(o,r),n}}return null},KI=qT(zA)({backgroundColor:"white",boxShadow:"0 2px 4px rgba(0,0,0,0.15)"}),UI=({onDeleteAction:e,onAction:t,onClick:n})=>{const[r]=wx.useLexicalComposerContext(),[o,i]=X.useState(null),l=er(),a=Boolean(o),s=X.useCallback(((e,t,n)=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{t()}),{onUpdate:()=>{i(null),n()}})}),[r]),u=X.useCallback((e=>{e.preventDefault(),e.stopPropagation(),n(),i(e.currentTarget)}),[n]),c=X.useCallback((()=>{i(null)}),[]),d=X.useCallback((e=>{s(e,WI,t)}),[s,t]),f=X.useCallback((e=>{s(e,jI,t)}),[s,t]),p=X.useCallback((t=>{s(t,HI,e)}),[s,e]),m=X.useCallback((t=>{s(t,BI,e)}),[s,e]),h=X.useCallback((()=>{r.update((()=>{(()=>{const e=uy.$getSelection();if(uy.$isRangeSelection(e)){const t=e.anchor.getNode(),n=dI(t);aI(n)&&(n.selectPrevious(),n.remove())}})()}),{onUpdate:()=>{i(null),e()}})}),[r,e]),g=X.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r.update((()=>{(()=>{const e=uy.$getSelection();if(uy.$isRangeSelection(e)){const t=e.anchor.getNode(),n=dI(t);n&&(n.toggleBorders(),wI(n).forEach((e=>{e.toggleBorders()})))}})()}))}),[r]);return X.useEffect((()=>Ty.mergeRegister(r.registerCommand(uy.SELECTION_CHANGE_COMMAND,(()=>(i(null),!1)),uy.COMMAND_PRIORITY_CRITICAL))),[r]),q.createElement(uN,{onClickAway:c,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},q.createElement("div",null,q.createElement(KI,{size:"small",onClick:u},q.createElement(uL,{height:12})),q.createElement(QA,{sx:{zIndex:1},open:a,anchorEl:o,placement:"auto-end"},q.createElement(fA,{id:"tekTableMenu",className:"tekPopperMenu"},q.createElement(QO,{dense:!0},q.createElement(eM,{onClick:g},l("ToggleBorders")),q.createElement(SO,null),q.createElement(eM,{onClick:d},l("AddNewRow")),q.createElement(eM,{onClick:f},l("AddNewColumn")),q.createElement(SO,null),q.createElement(eM,{onClick:p},l("DeleteRow")),q.createElement(eM,{onClick:m},l("DeleteCol")),q.createElement(SO,null),q.createElement(eM,{onClick:h},l("DeleteTable")))))))},YI=()=>{var e,t,n,r;const[o]=wx.useLexicalComposerContext(),i=dw(),[l,a]=X.useState(null),[s,u]=X.useState(!1),c=Boolean(l),d=X.useContext(yk),f=X.useRef(null),p=X.useCallback((()=>{s||o.update((()=>{const e=uy.$getSelection();if(uy.$isRangeSelection(e)){const t=cI(e.anchor.getNode());if(iI(t)){const e=o.getElementByKey(t.getKey());a(e)}else a(null)}}))}),[o,s]);X.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)}}),[]),X.useEffect((()=>Ty.mergeRegister(o.registerCommand(uy.SELECTION_CHANGE_COMMAND,(()=>(p(),!1)),uy.COMMAND_PRIORITY_EDITOR),o.registerCommand(kI,(()=>(a(null),!0)),uy.COMMAND_PRIORITY_CRITICAL),o.registerCommand(SI,(()=>(p(),!0)),uy.COMMAND_PRIORITY_CRITICAL))),[o,p]),X.useEffect((()=>{a(null)}),[i]);const m=X.useCallback((()=>{a(null)}),[]),h=X.useCallback((()=>{a(null),setTimeout((()=>{p()}),0)}),[p]),g=X.useCallback((()=>{clearTimeout(f.current)}),[]);return q.createElement(QA,{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)]}}]},q.createElement(UI,{onDeleteAction:m,onAction:h,onClick:g}))},GI=e=>{const t=[];for(const[n,r]of e)if("created"===r){const e=uy.$getNodeByKey(n),r=null==e?void 0:e.getParent();uy.$isRootNode(r)&&null!==e&&t.push(e)}if(t.length>0){const e=uy.$createParagraphNode();t[0].insertBefore(e),e.select(),t.forEach((e=>e.remove()))}},VI=()=>{const[e]=wx.useLexicalComposerContext(),t=dw();return X.useEffect((()=>Ty.mergeRegister(e.registerMutationListener(rI,(t=>{e.update((()=>{GI(t)}))})),e.registerMutationListener(sI,(t=>{e.update((()=>{GI(t)}))})),e.registerMutationListener(lI,(t=>{e.update((()=>{for(const[e,n]of t)if("created"===n||"updated"===n){const t=uy.$getNodeByKey(e);if(aI(t)&&!t.isValid()){const e=uy.$createParagraphNode();t.insertBefore(e),e.select(),t.remove()}}}))})),e.registerCommand(TI,(()=>(e.update((()=>{const e=(()=>{const e=["50%","50%"],t=new lI(!0,"100%"),n=new DI(e),r=new LI(e),o=[];for(let t=0;t<2;t++){const t=new sI;for(let n=0;n<e.length;n++){const e=oI(!0),n=uy.$createParagraphNode();e.append(n),t.append(e)}o.push(t)}return t.append(n,r,...o),t})();Ty.$insertNodeToNearestRoot(e)})),!0)),uy.COMMAND_PRIORITY_EDITOR),e.registerCommand(CI,(({colWidths:e,nodeKey:t})=>{const n=uy.$getNodeByKey(t);if(PI(n)){n.setColWidths(e);const t=n.getParent(),r=null==t?void 0:t.getChildAtIndex(0);(function(e){return e instanceof DI})(r)&&r.setColWidths(e)}return!0}),uy.COMMAND_PRIORITY_CRITICAL),e.registerCommand(uy.KEY_ENTER_COMMAND,(t=>(null==t?void 0:t.shiftKey)?(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=uy.$getSelection();if(uy.$isRangeSelection(e)){const t=e.focus.getNode(),n=dI(t),r=_I(t);if(aI(n)){const e=uy.$createParagraphNode();e.append(uy.$createTextNode("")),n.insertBefore(e,!1),e.select()}}})()})),!0):!!(null==t?void 0:t.ctrlKey)&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),e.update((()=>{(()=>{const e=uy.$getSelection();if(uy.$isRangeSelection(e)){const t=e.focus.getNode(),n=dI(t);if(aI(n)){const e=uy.$createParagraphNode();e.append(uy.$createTextNode("")),n.insertBefore(e),n.insertAfter(e),n.selectNext()}}})()})),!0)),uy.COMMAND_PRIORITY_CRITICAL),e.registerCommand(uy.KEY_BACKSPACE_COMMAND,(e=>yI(e)),uy.COMMAND_PRIORITY_CRITICAL),e.registerCommand(uy.KEY_DELETE_COMMAND,(e=>yI(e)),uy.COMMAND_PRIORITY_CRITICAL),e.registerCommand(uy.KEY_TAB_COMMAND,(e=>{const t=uy.$getSelection();if(uy.$isRangeSelection(t)){const n=t.focus.getNode(),{depth:r,tekCell:o}=(e=>{let t=e,n=0;for(;null!==t;){if(t=t.getParent(),iI(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(uI(a)){const t=null==a?void 0:a.getChildAtIndex(e);(null==t?void 0:t.getChildAtIndex(0)).selectEnd()}}}})(xI(o),!e.shiftKey),!0}return!1}),uy.COMMAND_PRIORITY_EDITOR),e.registerCommand(uy.CUT_COMMAND,(e=>{const t=e.target,n=uy.$getSelection();if(t.classList.contains("tek__table")&&uy.$isRangeSelection(n)&&aI(n.anchor.getNode()))return e.preventDefault(),e.stopPropagation(),!0;if(uy.$isRangeSelection(n)){const t=n.getNodes().some((e=>iI(e))),r=n.getNodes().some((e=>aI(e)));if(t&&!r)return e.preventDefault(),e.stopPropagation(),!0}return!1}),uy.COMMAND_PRIORITY_CRITICAL))),[e]),X.useEffect((()=>e.registerCommand(uy.SELECTION_CHANGE_COMMAND,(()=>(t&&e.update((()=>{(e=>{const t=uy.$getSelection(),n=[];if(uy.$nodesOfType(lI).forEach((e=>{const t=wI(e);n.push(...t)})),uy.$isRangeSelection(t)){t.getNodes().filter((e=>aI(e))).forEach((t=>{EI(t,e)}));const n=t.focus.getNode();if(aI(n))return void EI(n,e)}if(uy.$isRangeSelection(t)||uy.$isNodeSelection(t)){const r=new Set(t.getNodes().map((e=>_I(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)),uy.COMMAND_PRIORITY_CRITICAL)),[e,t]),X.useEffect((()=>{e.update((()=>{t||(e=>{const t=[];uy.$nodesOfType(lI).forEach((e=>{const n=wI(e);t.push(...n)})),t.forEach((t=>{const n=e.getElementByKey(t.getKey());null==n||n.classList.remove("tek__tekCellHighlight")}))})(e)}))}),[t,e]),null},QI=()=>q.createElement(q.Fragment,null,q.createElement(VI,null),q.createElement(YI,null)),XI=()=>{const e=dw(),t=er();return e?q.createElement("div",{className:"tek__editor__placeholder"},t("EnterText")):q.createElement("div",{className:"tek__editor__logo"},q.createElement(QL,{height:32}))},qI=()=>q.createElement("div",{style:{position:"relative"}},q.createElement(pL.AutoFocusPlugin,null),q.createElement(YL.RichTextPlugin,{contentEditable:q.createElement(yL.ContentEditable,{className:"tek__editor__input"}),placeholder:q.createElement(XI,null),ErrorBoundary:kL})),JI=qT(mM)((({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"}}))),ZI=["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"],eD="#404040",tD="16px",nD=X.createContext({textFormat:{bold:!1,italic:!1,underline:!1},blockFormat:{blockType:"normal",fontName:ZI[0],fontSize:"16px",fontColor:"#404040",align:"left",isLink:!1}}),rD=({children:e})=>{const t=(()=>{const[e]=wx.useLexicalComposerContext(),[t,n]=X.useState(!1),[r,o]=X.useState(!1),[i,l]=X.useState(!1),[a,s]=X.useState("paragraph"),[u,c]=X.useState(ZI[0]),[d,f]=X.useState(tD),[p,m]=X.useState(eD),[h,g]=X.useState("left"),[v,b]=X.useState(!1),y=X.useCallback((()=>{const t=uy.$getSelection();if(uy.$isRangeSelection(t)){const r=t.anchor.getNode();let i="root"===r.getKey()?r:Ty.$findMatchingParent(r,(e=>{const t=e.getParent();return null!==t&&uy.$isRootOrShadowRoot(t)}));null===i&&(i=r.getTopLevelElementOrThrow());const a=i.getKey();let u=i;if(null!==e.getElementByKey(a))if(vx.$isListNode(i)){const e=Ty.$getNearestNodeOfType(r,vx.ListNode),t=e?e.getListType():i.getListType();s(t)}else{const e=K_.$isHeadingNode(i)?i.getTag():i.getType();s(e)}if(vx.$isListNode(i)||K_.$isHeadingNode(i)){const e=Ty.$getNearestNodeOfType(i,uy.ParagraphNode);e&&(u=e)}const d=UP(t),p=d.getParent();if(zy.$isLinkNode(p)||zy.$isLinkNode(d)?b(!0):b(!1),uy.$isParagraphNode(u)){const e=u.getFormatType();g(""===e?"left":e)}n(t.hasFormat("bold")),o(t.hasFormat("italic")),l(t.hasFormat("underline"));const h=_y.$getSelectionStyleValueForProperty(t,"font-family",ZI[0]),v=_y.$getSelectionStyleValueForProperty(t,"font-size",tD);c(""===h?ZI[0]:h),f(""!==v&&v?v:tD),m(_y.$getSelectionStyleValueForProperty(t,"color",eD))}else uy.$isNodeSelection(t)&&t.getNodes().forEach((e=>{if(function(e){return e instanceof $I}(e)){const t=e;n(t.hasStyle("fontWeight")),o(t.hasStyle("fontStyle")),l(t.hasStyle("textDecoration")),m(t.getTextFormatStyle("color",eD));const r=t.getTextFormatStyle("fontSize",tD),i=t.getTextFormatStyle("fontFamily",ZI[0]);f(r),c(i)}}))}),[e]);return X.useEffect((()=>Ty.mergeRegister(e.registerUpdateListener((({editorState:e})=>{e.read((()=>y()))})),e.registerCommand(uy.SELECTION_CHANGE_COMMAND,(()=>(e.getEditorState().read((()=>y())),!1)),uy.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 q.createElement(nD.Provider,{value:t},e)},oD=({children:e})=>q.createElement(rD,null,q.createElement(JI,{sx:{display:{xs:"none",sm:"flex",md:"flex",lg:"flex"}},direction:"row"},e)),iD=({anchorEl:e,children:t})=>{const n=Boolean(e);return q.createElement(QA,{open:n,anchorEl:e,placement:"bottom-start",transition:!0,sx:{zIndex:1}},(({TransitionProps:e})=>q.createElement(MO,{...e},q.createElement(fA,{className:"tekPopperMenu"},t))))},lD=qT(UA)({fontSize:12,textOverflow:"ellipsis"}),aD=({startIcon:e,value:t,onClick:n,compact:r})=>q.createElement(fM,{title:t,PopperProps:{disablePortal:!0}},q.createElement(yO,{style:{textTransform:"none",textOverflow:"ellipsis",flexShrink:0},size:"small",variant:"text",onClick:n,startIcon:r?void 0:e,endIcon:q.createElement(aP,{height:12})},r?e:q.createElement(lD,null,t))),sD=qT(eM,{shouldForwardProp:e=>"active"!==e})((({theme:e,active:t})=>({background:t?e.palette.grey[200]:void 0}))),uD=[{text:"AlignLeft",align:"left",icon:()=>q.createElement(tP,{height:12})},{text:"AlignCenter",align:"center",icon:()=>q.createElement(JL,{height:12})},{text:"AlignRight",align:"right",icon:()=>q.createElement(oP,{height:12})}],cD=({compact:e})=>{const[t]=wx.useLexicalComposerContext(),[n,r]=X.useState(null),{blockFormat:o}=X.useContext(nD),i=er(),l=X.useMemo((()=>uD.find((e=>e.align===o.align))||uD[0]),[o.align]),a=X.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),s=X.useCallback((()=>{r(null)}),[]),u=X.useCallback((e=>{r(null),t.dispatchCommand(uy.FORMAT_ELEMENT_COMMAND,e),t.focus()}),[t]);return q.createElement(uN,{onClickAway:s,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},q.createElement("div",null,q.createElement(aD,{value:i(l.text),startIcon:l.icon(),onClick:a,compact:e}),q.createElement(iD,{anchorEl:n},q.createElement(QO,{dense:!0},uD.map((e=>q.createElement(sD,{value:e.text,dense:!0,key:e.align,active:e.align===o.align,onClick:()=>u(e.align)},q.createElement(WO,null,e.icon()),q.createElement(lD,null,i(e.text)))))))))},dD=({text:e,icon:t})=>q.createElement(q.Fragment,null,q.createElement(WO,null,t),q.createElement(lD,null,e)),fD=({text:e,icon:t})=>q.createElement(q.Fragment,null,q.createElement(WO,null,q.createElement(lD,{fontWeight:"bold"},t)),q.createElement(lD,null,e)),pD=[{text:"Heading1",icon:"H1",tag:"h1"},{text:"Heading2",icon:"H2",tag:"h2"},{text:"Heading3",icon:"H3",tag:"h3"}],mD=(e,t,n)=>({icon:q.createElement("span",{style:{fontSize:12,fontWeight:"bold"}},t),text:n(e)}),hD=({compact:e})=>{const[t]=wx.useLexicalComposerContext(),{blockFormat:n}=X.useContext(nD),[r,o]=X.useState(null),i=er(),l=X.useMemo((()=>{let e={icon:q.createElement(yP,{height:12}),text:i("Paragraph")};return"h1"===n.blockType&&(e=mD("Heading1","H1",i)),"h2"===n.blockType&&(e=mD("Heading2","H2",i)),"h3"===n.blockType&&(e=mD("Heading3","H3",i)),"quote"===n.blockType&&(e.icon=q.createElement(pP,{height:12}),e.text=i("Quote")),"bullet"===n.blockType&&(e.icon=q.createElement(cP,{height:12}),e.text=i("UnorderedList")),"number"===n.blockType&&(e.icon=q.createElement(gP,{height:12}),e.text=i("OrderedList")),e}),[n,i]),a=X.useCallback((()=>{o(null)}),[]),s=X.useCallback((e=>{t.update((()=>{const n=uy.$getSelection();uy.$isRangeSelection(n)&&(_y.$patchStyleText(n,{"font-size":null}),_y.$setBlocksType(n,e)),t.focus()}))}),[t]),u=X.useCallback(((e,r)=>{o(null),n.blockType!==e?t.dispatchCommand(r,void 0):t.dispatchCommand(vx.REMOVE_LIST_COMMAND,void 0),t.focus()}),[n,t]),c=X.useCallback((e=>{o(null),s((()=>K_.$createHeadingNode(e)))}),[s]),d=X.useCallback((()=>{o(null),s((()=>uy.$createParagraphNode()))}),[s]),f=X.useCallback((()=>{o(null),s((()=>K_.$createQuoteNode()))}),[s]);return q.createElement(uN,{onClickAway:a,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},q.createElement("div",null,q.createElement(aD,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:l.text,startIcon:l.icon,compact:e}),q.createElement(iD,{anchorEl:r},q.createElement(QO,{dense:!0},q.createElement(eM,{dense:!0,onClick:d},q.createElement(dD,{text:i("Paragraph"),icon:q.createElement(yP,{height:12})})),q.createElement(eM,{dense:!0,onClick:f},q.createElement(dD,{text:i("Quote"),icon:q.createElement(pP,{height:12})})),pD.map((e=>q.createElement(eM,{dense:!0,onClick:()=>c(e.tag),key:e.text},q.createElement(fD,{text:i(e.text),icon:e.icon})))),q.createElement(SO,null),q.createElement(eM,{dense:!0,onClick:()=>u("bullet",vx.INSERT_UNORDERED_LIST_COMMAND)},q.createElement(dD,{text:i("UnorderedList"),icon:q.createElement(cP,{height:12})})),q.createElement(eM,{dense:!0,onClick:()=>u("list",vx.INSERT_ORDERED_LIST_COMMAND)},q.createElement(dD,{text:i("OrderedList"),icon:q.createElement(gP,{height:12})}))))))},gD=qT(yO,{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}))),vD=(e,t)=>n=>{const r=er();return q.createElement(fM,{title:r(t),PopperProps:{disablePortal:!0}},q.createElement("div",null,q.createElement(e,{...n,"aria-label":r(t)})))},bD=({format:e,icon:t,...n})=>{const r=X.useContext(nD),[o]=wx.useLexicalComposerContext(),i=X.useCallback((()=>{o.dispatchCommand(uy.FORMAT_TEXT_COMMAND,e)}),[o,e]);return q.createElement(gD,{...n,active:r.textFormat[e],onClick:i,size:"small",variant:"text"},t)},yD=vD(bD,"Bold"),xD=()=>q.createElement(yD,{format:"bold",icon:q.createElement(wP,{height:12})}),_D=uy.createCommand("APPLY_TEXT_FORMAT"),wD=uy.createCommand("CLEAR_TEXT_FORMAT"),ED=vD(gD,"ClearFormat"),CD=()=>{const[e]=wx.useLexicalComposerContext(),t=X.useCallback((()=>{e.update((()=>{const t=uy.$getSelection();if(uy.$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(uy.$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),Ty.$getNearestBlockElementAncestorOrThrow(t).setFormat(""));const i=t.getParent();(K_.$isHeadingNode(i)||K_.$isQuoteNode(i))&&i.replace(uy.$createParagraphNode(),!0)}else(K_.$isHeadingNode(t)||K_.$isQuoteNode(t))&&t.replace(uy.$createParagraphNode(),!0)}catch(e){}}))}e.dispatchCommand(wD,void 0)}))}),[e]);return q.createElement(ED,{onClick:t},q.createElement(kP,{height:12}))};function kD(e){return kD="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},kD(e)}var SD,TD={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}},ND=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,RD=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,AD=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,OD=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,MD=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,LD=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,PD=Math.floor,ID=Math.round,DD=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(ID(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=ID(255*p),m=ID(255*m),h=ID(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=ID(255*p),m=ID(255*m),h=ID(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=ID(255*p),m=ID(255*m),h=ID(255*h),g=1}else TD[f.toLowerCase()]?(r=f.toLowerCase(),p=TD[r].r,m=TD[r].g,h=TD[r].b,g="number"==typeof TD[r].a?TD[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=PD(p),this._g=PD(m),this._b=PD(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=PD(this._r+(e._r-this._r)*t),r=PD(this._g+(e._g-this._g)*t),o=PD(this._b+(e._b-this._b)*t),i=PD(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"==kD(o=function(e,t){if("object"!=kD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=kD(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}();DD.toRGB=function(e){if(e instanceof DD)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=DD.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},DD.toRGBA=function(e,t){if(e instanceof DD)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=DD.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,")")},DD.toHex=function(e){var t,n,r;return e instanceof DD?(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=DD.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))},DD.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new DD(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,")")},DD.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new DD(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,")")},DD.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new DD(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}},DD.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof DD)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},DD.blend=function(e,t,n){var r=(16711680&(e=DD.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=DD.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},DD.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 DD(r,o,i,l)},DD.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(ND.test(e)||RD.test(e)||AD.test(e)||OD.test(e)||MD.test(e)||LD.test(e)||TD[e.toLowerCase()])},DD.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},DD.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)}},DD.isDark=function(){var e={getLuminance:DD.prototype.getLuminance,isInvalid:DD.prototype.isInvalid};return DD.prototype.init.apply(e,[].slice.call(arguments)),DD.prototype.isDark.call(e)},DD.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},SD=DD;const $D=qT(mM)((({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"}))),zD=qT(uO)((({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"}))),FD=({palette:e,color:t,onColorChange:n})=>{const[r,o]=X.useState(t),i=VT(),l=X.useCallback((e=>{o(e),n(e)}),[n]);return q.createElement($D,null,e.map((e=>q.createElement(zD,{style:{backgroundColor:e},key:e,onClick:t=>{t.preventDefault(),t.stopPropagation(),l(e)}},e===r?q.createElement(xM,{height:12,color:i.palette.getContrastText(e)}):null))))};function BD(e,t,n){return Math.max(t,Math.min(n,e))}const HD=(e,t)=>{const n=new SD(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"}},WD=(e,t)=>{const{left:n,top:r,width:o,height:i}=e.currentTarget.getBoundingClientRect(),l=BD(e.clientX-n,0,o)/o*100,a=100-BD(e.clientY-r,0,i)/i*100,s=new SD(t).toHSVComponents();return s.s=l,s.v=a,s},jD=qT(mM)((({theme:e})=>({width:e.spacing(32),height:e.spacing(24),padding:e.spacing(1),display:"flex",flexDirection:"column"}))),KD=qT(uO)({flex:4,backgroundImage:"linear-gradient(transparent, black), linear-gradient(to right, white, transparent)",position:"relative",cursor:"crosshair",borderRadius:"4px"}),UD=qT(uO)((({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 );"}))),YD=qT(uO)({width:"16px",height:"16px",borderRadius:"2px"}),GD=qT(mM)({flexDirection:"row",alignItems:"center"}),VD=qT(uO)({position:"absolute",width:"8px",height:"8px",backgroundColor:"black",left:0,top:0,borderRadius:"16px",border:"1px solid white",cursor:"pointer",transform:"translate(-50%, -50%)"}),QD=({onClick:e,onClose:t,startColor:n,palette:r})=>{const[o,i]=X.useState(n),l=X.useRef(n),[a,s]=X.useState(!0),[u,c]=X.useState(o),d=X.useRef(null),f=X.useRef(null),p=X.useRef({left:0,top:0,on:!1,clientX:0,clientY:0}),[m,h]=X.useState({left:"0",top:"0"});X.useEffect((()=>{r.some((e=>e===n))||s(!1)}),[n,r]);const g=X.useCallback((e=>{if(!d.current&&(d.current=e,e)){const t=HD(o,e);h(t)}}),[o]),v=X.useMemo((()=>`hsl(${new SD(o).toHSVComponents().h}, 100%, 50%)`),[o]),b=X.useCallback((t=>{t.preventDefault(),t.stopPropagation();const n=WD(t,l.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new SD(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=X.useCallback((t=>{t.preventDefault(),t.stopPropagation();const n=((e,t)=>{const{width:n,left:r}=e.target.getBoundingClientRect(),o=BD(e.clientX-r,0,n),i=Math.round(o/n*360),l=o/n*100,a=new SD(t).toHSVComponents();return a.h=i,a.s=l,a})(t,l.current),r=`hsv(${n.h},${n.s},${n.v})`,o=new SD(r);l.current=o.toHex(),e(l.current),c(l.current),i(l.current)}),[e]),x=X.useCallback((t=>{l.current=t,e(l.current),i(l.current),c(t)}),[e]),_=X.useCallback((t=>{if(c(t.target.value),!new SD(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=HD(l.current,d.current);h(e)}}),[e]);return q.createElement(jD,null,a?q.createElement(FD,{palette:r,color:o,onColorChange:x}):q.createElement(q.Fragment,null,q.createElement(KD,{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=WD(e,l.current),s=`hsv(${a.h},${a.s},${a.v})`,u=new SD(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}},q.createElement(VD,{ref:f,style:{...m,backgroundColor:o}})),q.createElement(UD,{onClick:y})),q.createElement(GD,null,q.createElement(YD,{style:{backgroundColor:o}}),q.createElement(lO,{style:{flex:1},value:u,onChange:_}),q.createElement(zA,{onClick:()=>s(!a)},q.createElement(NP,{height:12})),q.createElement(zA,{onClick:t},q.createElement(xM,{height:12}))))},XD=["#404040","#ffffff","#99CFCD","#83AF9B","#C4CFDA","#10CFC9","#006580","#87205D","#8A85C6","#A16090","#AC4D58","#E0BD8D","#E1DAD5","#b0afae","#7b7a78","#000000","#C8C7A9"],qD=vD(yO,"Color"),JD=({colorPalette:e})=>{const[t]=wx.useLexicalComposerContext(),[n,r]=X.useState(null),{blockFormat:o}=X.useContext(nD),i=X.useCallback(((e,n)=>{t.update((()=>{const t=uy.$getSelection();uy.$isRangeSelection(t)&&_y.$patchStyleText(t,{color:e})}),n),t.dispatchCommand(_D,{styleKey:"color",styleValue:e})}),[t]),l=()=>{r(null)};return q.createElement(uN,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},q.createElement("div",null,q.createElement(qD,{variant:"text",size:"small",endIcon:q.createElement(aP,{height:12}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}},q.createElement(uO,{sx:{backgroundColor:o.fontColor,width:12,height:12}})),q.createElement(iD,{anchorEl:n},q.createElement(QD,{onClick:i,onClose:l,startColor:o.fontColor,palette:e||XD}))))},ZD=({compact:e,fonts:t})=>{const[n]=wx.useLexicalComposerContext(),[r,o]=X.useState(null),{blockFormat:i}=X.useContext(nD),l=X.useMemo((()=>t||ZI),[t]),a=X.useCallback((e=>{o(null);const{fontName:t}=e.currentTarget.dataset;n.update((()=>{const e=uy.$getSelection();uy.$isRangeSelection(e)&&_y.$patchStyleText(e,{"font-family":t||ZI[0]}),n.dispatchCommand(_D,{styleKey:"fontFamily",styleValue:t||ZI[0]}),n.focus()}))}),[n]);return q.createElement(uN,{onClickAway:()=>{o(null)},mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},q.createElement("div",null,q.createElement(aD,{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(r?null:e.currentTarget)},value:i.fontName,startIcon:q.createElement("span",{style:{fontFamily:"Times New Roman, serif",fontSize:16,fontWeight:"lighter"}},"T"),compact:e}),q.createElement(iD,{anchorEl:r},q.createElement(QO,{dense:!0,style:{maxHeight:200,overflow:"auto"}},l.map((e=>q.createElement(sD,{"data-font-name":e,key:e,onClick:a,active:e===i.fontName},q.createElement(lD,null,e))))))))},e$=e=>parseInt(e,10),t$=({fontSize:e,onSelected:t})=>{const[n,r]=X.useState(""),o=X.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(e.target.value)}),[]),i=X.useCallback((()=>{const e=e$(n);e&&t(`${e}px`)}),[t,n]),l=X.useCallback((e=>{"Enter"===e.key&&(e.preventDefault(),i())}),[i]);return q.createElement(mM,{direction:"row"},q.createElement(lO,{value:n,sx:{ml:1,flex:1},placeholder:e,onChange:o,onKeyDown:l}),q.createElement(zA,{disabled:!e$(n),onClick:i},q.createElement(xM,{height:12})))},n$=["8px","9px","10px","11px","12px","14px","16px","20px","24px","32px"],r$=({compact:e})=>{const[t]=wx.useLexicalComposerContext(),[n,r]=X.useState(null),{blockFormat:o}=X.useContext(nD),i=X.useCallback((e=>{e.preventDefault(),e.stopPropagation(),r(n?null:e.currentTarget)}),[n]),l=X.useCallback((()=>{r(null)}),[]),a=X.useCallback((e=>{r(null),e.length>0&&t.update((()=>{const n=uy.$getSelection();uy.$isRangeSelection(n)&&_y.$patchStyleText(n,{"font-size":e}),t.dispatchCommand(_D,{styleKey:"fontSize",styleValue:`${e}`})}))}),[t]),s=X.useCallback((e=>{const{fontSize:t}=e.currentTarget.dataset;a(t||"16px")}),[a]),u=X.useCallback((e=>{a(e)}),[a]);return q.createElement(uN,{onClickAway:l,mouseEvent:"onMouseDown",touchEvent:"onTouchStart"},q.createElement("div",null,q.createElement(aD,{startIcon:e?q.createElement(lD,null,o.fontSize):void 0,value:o.fontSize,onClick:i,compact:e}),q.createElement(iD,{anchorEl:n},q.createElement(t$,{fontSize:o.fontSize,onSelected:u}),q.createElement(SO,null),q.createElement(QO,{dense:!0,style:{maxHeight:200,overflow:"auto"}},n$.map((e=>q.createElement(eM,{"data-font-size":e,key:e,onClick:s},q.createElement(lD,null,e))))))))},o$=vD(gD,"InsertTable"),i$=()=>{const[e]=wx.useLexicalComposerContext(),t=X.useCallback((()=>{e.dispatchCommand(TI,void 0)}),[e]);return q.createElement(o$,{onClick:t},q.createElement(OP,{height:12}))},l$=vD(bD,"Italic"),a$=()=>q.createElement(l$,{format:"italic",icon:q.createElement(PP,{height:12})}),s$=vD(gD,"InsertHyperlink"),u$=()=>{const[e]=wx.useLexicalComposerContext(),{blockFormat:t}=X.useContext(nD),n=X.useCallback((()=>{t.isLink?e.dispatchCommand(zy.TOGGLE_LINK_COMMAND,null):e.dispatchCommand(zy.TOGGLE_LINK_COMMAND,GP("https://"))}),[e,t.isLink]);return q.createElement(s$,{onClick:n},q.createElement($P,{height:12}))},c$=vD(bD,"Underline"),d$=()=>q.createElement(c$,{format:"underline",icon:q.createElement(BP,{height:12})}),f$=()=>q.createElement(SO,{flexItem:!0,orientation:"vertical",sx:{mx:.5,my:1}});var p$={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=="}},m$={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"}},h$={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=="}},g$={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=="}},v$={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=="}},b$={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=="}},y$={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=="}},x$={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=="}},_$={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=="}},w$={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=="}},E$={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:"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=="}},k$={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 S$={de:p$,es:h$,en:m$,fr:g$,it:v$,ja:b$,ko:y$,nl:x$,pl:_$,pt:w$,ru:E$,sv:C$,tr:k$,"de-de":p$,"es-es":h$,"en-us":m$,"fr-fr":g$,"it-it":v$,"ja-jp":b$,"ko-kr":y$,"nl-nl":x$,"pl-pl":_$,"pt-br":w$,"ru-ru":E$,"sv-se":C$,"tr-tr":k$,"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 T$(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 N$={},R$=wx,A$=uy,O$=X;function M$(e,t){return e.getEditorState().read((()=>{let e=A$.$getNodeByKey(t);return null!==e&&e.isSelected()}))}N$.useLexicalNodeSelection=function(e){let[t]=R$.useLexicalComposerContext(),[n,r]=O$.useState((()=>M$(t,e)));O$.useEffect((()=>{let n=!0,o=t.registerUpdateListener((()=>{n&&r(M$(t,e))}));return()=>{n=!1,o()}}),[t,e]);let o=O$.useCallback((n=>{t.update((()=>{let t=A$.$getSelection();A$.$isNodeSelection(t)||(t=A$.$createNodeSelection(),A$.$setSelection(t)),n?t.add(e):t.delete(e)}))}),[t,e]),i=O$.useCallback((()=>{t.update((()=>{const e=A$.$getSelection();A$.$isNodeSelection(e)&&e.clear()}))}),[t]);return[n,o,i]};var L$,P$=N$;var I$={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}},D$=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,$$=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,z$=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,F$=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,B$=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,H$=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,W$=Math.floor,j$=Math.round,K$=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(j$(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=j$(255*p),m=j$(255*m),h=j$(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=j$(255*p),m=j$(255*m),h=j$(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=j$(255*p),m=j$(255*m),h=j$(255*h),g=1}else I$[f.toLowerCase()]?(r=f.toLowerCase(),p=I$[r].r,m=I$[r].g,h=I$[r].b,g="number"==typeof I$[r].a?I$[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=W$(p),this._g=W$(m),this._b=W$(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=W$(this._r+(e._r-this._r)*t),r=W$(this._g+(e._g-this._g)*t),o=W$(this._b+(e._b-this._b)*t),i=W$(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 U$(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}}))}K$.toRGB=function(e){if(e instanceof K$)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=K$.toNumber(e));var t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")},K$.toRGBA=function(e,t){if(e instanceof K$)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=K$.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,")")},K$.toHex=function(e){var t,n,r;return e instanceof K$?(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=K$.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))},K$.toHSL=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new K$(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,")")},K$.toHSLA=function(e,t){var n,r,o,i=0;"string"==typeof e&&(e=new K$(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,")")},K$.toHSVComponents=function(e){var t,n,r=0;"string"==typeof e&&(e=new K$(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}},K$.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof K$)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},K$.blend=function(e,t,n){var r=(16711680&(e=K$.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=K$.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)},K$.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 K$(r,o,i,l)},K$.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(D$.test(e)||$$.test(e)||z$.test(e)||F$.test(e)||B$.test(e)||H$.test(e)||I$[e.toLowerCase()])},K$.getBestContrast=function(e,t,n){var r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n},K$.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)}},K$.isDark=function(){var e={getLuminance:K$.prototype.getLuminance,isInvalid:K$.prototype.isInvalid};return K$.prototype.init.apply(e,[].slice.call(arguments)),K$.prototype.isDark.call(e)},K$.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t},L$=K$;function Y$(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 G$(e,t){return null==t?void 0:t.getNodes().some((t=>t.getKey()===e))}function V$({cId:e,initStyle:t,nodeKey:n}){const{layout:r}=X.useContext(pm),[o]=wx.useLexicalComposerContext(),i=dw(),[l,a,s]=P$.useLexicalNodeSelection(n),u=X.useRef(null),[c,d]=X.useState(t);X.useEffect((()=>{d(t)}),[t]);const f=X.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=X.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 L$(t).toHex()}return null}(t);return{value:t.qText||"",expressionColor:e}}return{value:""}}),[r]);X.useEffect((()=>{d((e=>Y$(e,p)))}),[p]),X.useEffect((()=>{Ty.mergeRegister(o.registerCommand(uy.FORMAT_TEXT_COMMAND,(e=>(o.update((()=>{const t=e,r=uy.$getSelection();if(uy.$isRangeSelection(r)&&l){if(G$(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&&uy.$isNodeSelection(r)&&G$(n,r)&&u.current){const e=Y$(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)),uy.COMMAND_PRIORITY_HIGH),o.registerCommand(_D,(e=>(o.getEditorState().read((()=>{if("color"===e.styleKey&&p.expressionColor)return!1;if(u.current&&l){const r=uy.$getSelection();if(G$(n,r)){var t;const n=Y$(null===(t=u.current)||void 0===t?void 0:t.style,p);n[e.styleKey]=e.styleValue,d(n)}}})),!1)),uy.COMMAND_PRIORITY_EDITOR),o.registerCommand(wD,(()=>(o.getEditorState().read((()=>{if(u.current&&l){const e=uy.$getSelection();if(G$(n,e)){const e={};p.expressionColor&&(e.color=p.expressionColor),d(e)}}})),!1)),uy.COMMAND_PRIORITY_EDITOR))}),[o,a,s,l,n,p]),X.useEffect((()=>{i||s()}),[i,s]),X.useEffect((()=>{o.update((()=>{!function(e,t){const n=uy.$getNodeByKey(e);var r;n&&(null===(r=n.setFormatStyle)||void 0===r||r.call(n,t))}(n,c)}))}),[c,o]);const m=X.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=uy.$getSelection();if(uy.$isNodeSelection(e)){const t=uy.$getNodeByKey(n);null==t||t.selectPrevious(),e.delete(n)}}))}}),[s,i,o]);return q.createElement("span",{style:{...f,...c},onClick:m,ref:u,id:e},p.value)}const Q$="qlik.expression.node";class X$ extends $I{static getType(){return Q$}static clone(e){return new X$(e.__expressionId,e.__formatStyle,e.__key)}static importJSON(e){const t=function(e,t){return new X$(e,t)}(e.expressionId,e.formatStyle);return t}getExpressionId(){return this.__expressionId}exportJSON(){return{expressionId:this.getExpressionId(),formatStyle:this.__formatStyle,type:Q$,version:1}}setExported(){this.getWritable().__exported=!0}constructor(e,t,n){super(t,n),T$(this,"__expressionId",void 0),this.__expressionId=e}createDOM(){return document.createElement("span")}exportDOM(e){return super.exportDOM(e)}updateDOM(){return!1}decorate(){return q.createElement(V$,{cId:this.__expressionId,initStyle:this.__formatStyle,nodeKey:this.__key})}isInline(){return!0}isKeyboardSelectable(){return!0}}function q$(e){return e instanceof X$}function J$(){const[e]=wx.useLexicalComposerContext(),t=dw(),{edit:n,model:r,emitter:o}=X.useContext(pm);return X.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]),X.useEffect((()=>{e.setEditable(n)}),[n]),X.useEffect((()=>{t&&e.focus()}),[t,e]),null}const Z$=(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 ez{constructor(){T$(this,"nodeStore",void 0),T$(this,"pendingDeletes",void 0),this.nodeStore=new Map,this.pendingDeletes=[]}update(e,t){if("updated"===t||"created"===t){const n=uy.$getNodeByKey(e);if(q$(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 tz(){const{layout:e,emitter:t}=X.useContext(pm),[n]=wx.useLexicalComposerContext(),r=X.useRef(new ez),o=dw();return X.useEffect((()=>n.registerMutationListener(X$,(e=>{n.getEditorState().read((()=>{for(const[t,n]of e)r.current.update(t,n)}))}))),[n]),X.useEffect((()=>{e&&n.update((()=>{var t;const n=null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo;if(n){const e=uy.$nodesOfType(X$);if(Z$(e,n).forEach((e=>{e.remove()})),n.length>e.length){const e=uy.$getSelection(),{cId:t}=n[n.length-1],r=new X$(t,{}),o=uy.$createTextNode(" "),i=uy.$createTextNode("");uy.$isRangeSelection(e)?e.insertNodes([i,r,o]):Ty.$insertNodeToNearestRoot(r)}}}))}),[e,n]),X.useEffect((()=>n.registerCommand(uy.KEY_DOWN_COMMAND,(e=>("Backspace"===e.key&&n.update((()=>{const e=uy.$getSelection();uy.$isNodeSelection(e)&&e.getNodes().forEach((e=>{q$(e)&&(e.selectPrevious(),e.remove())}))})),!1)),uy.COMMAND_PRIORITY_LOW)),[n]),X.useEffect((()=>{if(!o){const e=r.current.sync();e.length>0&&(null==t||t.emit("onNodeDestroyed",e))}}),[o,t]),null}var nz=Object.prototype.hasOwnProperty,rz=Object.prototype.toString,oz=Object.defineProperty,iz=Object.getOwnPropertyDescriptor,lz=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===rz.call(e)},az=function(e){if(!e||"[object Object]"!==rz.call(e))return!1;var t,n=nz.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&nz.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||nz.call(e,t)},sz=function(e,t){oz&&"__proto__"===t.name?oz(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},uz=function(e,t){if("__proto__"===t){if(!nz.call(e,t))return;if(iz)return iz(e,t).value}return e[t]};function cz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function dz(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fz(){}!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=uz(a,n),a!==(o=uz(t,n))&&(c&&o&&(az(o)||(i=lz(o)))?(i?(i=!1,l=r&&lz(r)?r:[]):l=r&&az(r)?r:{},sz(a,{name:n,newValue:e(c,l,o)})):void 0!==o&&sz(a,{name:n,newValue:o}));return a}));var pz=1/.7,mz="\\s*([+-]?\\d+)\\s*",hz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vz=/^#([0-9a-f]{3,8})$/,bz=new RegExp(`^rgb\\(${mz},${mz},${mz}\\)$`),yz=new RegExp(`^rgb\\(${gz},${gz},${gz}\\)$`),xz=new RegExp(`^rgba\\(${mz},${mz},${mz},${hz}\\)$`),_z=new RegExp(`^rgba\\(${gz},${gz},${gz},${hz}\\)$`),wz=new RegExp(`^hsl\\(${hz},${gz},${gz}\\)$`),Ez=new RegExp(`^hsla\\(${hz},${gz},${gz},${hz}\\)$`),Cz={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 kz(){return this.rgb().formatHex()}function Sz(){return this.rgb().formatRgb()}function Tz(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=vz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Nz(t):3===n?new Mz(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Rz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Rz(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=bz.exec(e))?new Mz(t[1],t[2],t[3],1):(t=yz.exec(e))?new Mz(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xz.exec(e))?Rz(t[1],t[2],t[3],t[4]):(t=_z.exec(e))?Rz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=wz.exec(e))?zz(t[1],t[2]/100,t[3]/100,1):(t=Ez.exec(e))?zz(t[1],t[2]/100,t[3]/100,t[4]):Cz.hasOwnProperty(e)?Nz(Cz[e]):"transparent"===e?new Mz(NaN,NaN,NaN,0):null}function Nz(e){return new Mz(e>>16&255,e>>8&255,255&e,1)}function Rz(e,t,n,r){return r<=0&&(e=t=n=NaN),new Mz(e,t,n,r)}function Az(e){return e instanceof fz||(e=Tz(e)),e?new Mz((e=e.rgb()).r,e.g,e.b,e.opacity):new Mz}function Oz(e,t,n,r){return 1===arguments.length?Az(e):new Mz(e,t,n,null==r?1:r)}function Mz(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Lz(){return`#${$z(this.r)}${$z(this.g)}${$z(this.b)}`}function Pz(){const e=Iz(this.opacity);return`${1===e?"rgb(":"rgba("}${Dz(this.r)}, ${Dz(this.g)}, ${Dz(this.b)}${1===e?")":`, ${e})`}`}function Iz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Dz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $z(e){return((e=Dz(e))<16?"0":"")+e.toString(16)}function zz(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Bz(e,t,n,r)}function Fz(e){if(e instanceof Bz)return new Bz(e.h,e.s,e.l,e.opacity);if(e instanceof fz||(e=Tz(e)),!e)return new Bz;if(e instanceof Bz)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 Bz(l,a,s,e.opacity)}function Bz(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Hz(e){return(e=(e||0)%360)<0?e+360:e}function Wz(e){return Math.max(0,Math.min(1,e||0))}function jz(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}cz(fz,Tz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:kz,formatHex:kz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Fz(this).formatHsl()},formatRgb:Sz,toString:Sz}),cz(Mz,Oz,dz(fz,{brighter(e){return e=null==e?pz:Math.pow(pz,e),new Mz(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Mz(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Mz(Dz(this.r),Dz(this.g),Dz(this.b),Iz(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:Lz,formatHex:Lz,formatHex8:function(){return`#${$z(this.r)}${$z(this.g)}${$z(this.b)}${$z(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Pz,toString:Pz})),cz(Bz,(function(e,t,n,r){return 1===arguments.length?Fz(e):new Bz(e,t,n,null==r?1:r)}),dz(fz,{brighter(e){return e=null==e?pz:Math.pow(pz,e),new Bz(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Bz(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 Mz(jz(e>=240?e-240:e+120,o,r),jz(e,o,r),jz(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Bz(Hz(this.h),Wz(this.s),Wz(this.l),Iz(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=Iz(this.opacity);return`${1===e?"hsl(":"hsla("}${Hz(this.h)}, ${100*Wz(this.s)}%, ${100*Wz(this.l)}%${1===e?")":`, ${e})`}`}}));const Kz=Math.PI/180,Uz=180/Math.PI,Yz=4/29,Gz=6/29,Vz=3*Gz*Gz;function Qz(e){if(e instanceof Xz)return new Xz(e.l,e.a,e.b,e.opacity);if(e instanceof tF)return nF(e);e instanceof Mz||(e=Az(e));var t,n,r=eF(e.r),o=eF(e.g),i=eF(e.b),l=qz((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=l:(t=qz((.4360747*r+.3850649*o+.1430804*i)/.96422),n=qz((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Xz(116*l-16,500*(t-l),200*(l-n),e.opacity)}function Xz(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function qz(e){return e>.008856451679035631?Math.pow(e,1/3):e/Vz+Yz}function Jz(e){return e>Gz?e*e*e:Vz*(e-Yz)}function Zz(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function eF(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function tF(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function nF(e){if(isNaN(e.h))return new Xz(e.l,0,0,e.opacity);var t=e.h*Kz;return new Xz(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}cz(Xz,(function(e,t,n,r){return 1===arguments.length?Qz(e):new Xz(e,t,n,null==r?1:r)}),dz(fz,{brighter(e){return new Xz(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Xz(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 Mz(Zz(3.1338561*(t=.96422*Jz(t))-1.6168667*(e=1*Jz(e))-.4906146*(n=.82521*Jz(n))),Zz(-.9787684*t+1.9161415*e+.033454*n),Zz(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),cz(tF,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof tF)return new tF(e.h,e.c,e.l,e.opacity);if(e instanceof Xz||(e=Qz(e)),0===e.a&&0===e.b)return new tF(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Uz;return new tF(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new tF(e,t,n,null==r?1:r)}),dz(fz,{brighter(e){return new tF(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new tF(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return nF(this).rgb()}}));var rF,oF=e=>()=>e;function iF(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):oF(isNaN(e)?t:e)}function lF(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 aF(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=uF)):void 0===t&&(t=sF);for(var n,r,o,i,l,a=new fF(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 fF(o[i])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(dF)}function sF(e){return e.children}function uF(e){return Array.isArray(e)?e[1]:null}function cF(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function dF(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function fF(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?iF: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):oF(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Oz(e)).r,(t=Oz(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),l=iF(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),fF.prototype=aF.prototype={constructor:fF,count:function(){return this.eachAfter(lF)},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 aF(this).eachBefore(cF)},[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)}},rF=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}},rF({exports:{}});var pF=["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"],mF=["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 hF=e=>`text-toolbar.${null==e?void 0:e.id}`,gF=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 vF(){const{element:e,edit:t,model:n,flags:r,theme:o}=X.useContext(pm),i=X.useMemo((()=>(null==e?void 0:e.closest(".qv-inner-object"))||e),[e]),l=X.useMemo((()=>function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?mF:pF}(r)),[r]),a=X.useMemo((()=>gF(o)),[o]);return q.createElement(QA,{open:t,anchorEl:i,placement:"top",transition:!0,sx:{zIndex:1},id:hF(n)},(({TransitionProps:e})=>q.createElement(MO,{...e},q.createElement(fA,{sx:{borderRadius:1,padding:.25}},q.createElement(oD,null,q.createElement(hD,{compact:!0}),q.createElement(f$,null),q.createElement(ZD,{compact:!0,fonts:l}),q.createElement(r$,{compact:!0}),q.createElement(f$,null),q.createElement(xD,null),q.createElement(a$,null),q.createElement(d$,null),q.createElement(u$,null),q.createElement(JD,{colorPalette:a}),q.createElement(f$,null),q.createElement(cD,{compact:!0}),q.createElement(f$,null),q.createElement(CD,null),q.createElement(f$,null),q.createElement(i$,null))))))}function bF(){const{initialData:e,lang:t}=X.useContext(pm);X.useEffect((()=>{!function(e){const t=Object.entries(S$[e]).reduce(((e,[t,n])=>({...e,[t]:n.value})),{});Zn.append(t)}(t)}),[t]);const n=X.useMemo((()=>{if(void 0!==e){return(e=>{var t;let n=tI.nodes;e.nodes&&(n=null===(t=tI.nodes)||void 0===t?void 0:t.concat(e.nodes));const r=e.initialData?e.initialData:void 0;return{...tI,nodes:n,editorState:r}})({initialData:e||void 0,nodes:[...zI,X$]})}return null}),[e]);return n?q.createElement("div",{className:"hideScrollBar"},q.createElement(nI,{initialConfig:n},q.createElement(vF,null),q.createElement(qI,null),q.createElement(QI,null),q.createElement(tz,null),q.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 yF={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"}]}}}}},xF={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}}}}};function _F(u){const{flags:c}=u;return{qae:{properties:tr,data:nr},component(){const u=n(),d=(n=>{const r=e((()=>um(n)),[n]);return t((()=>()=>{null==r||r.unmount()}),[r]),r})(u),f=r(),p=o(),m=i(),h=l(),[g,v]=a(!1),[b,y]=a(void 0),[x,_]=a(1),w=s(),[E,C]=a(!1),[k,S]=a(null),T=e=>{e||_(0),(e=>{var t;return(null===(t=e.qExtendsId)||void 0===t?void 0:t.length)>0})(f)||(!0===e&&C(!0),v(e),h.emit("njs-internal-edit-change",e))};t((()=>{const e=e=>{U$(p,e)};return h.on("onNodeDestroyed",e),()=>{h.removeListener("onNodeDestroyed",e)}}),[h,p]),t((()=>{2===x&&m.edit&&m.select&&T(!0)}),[x,m]),t((()=>{f&&void 0===b&&(y(f.text||null),S(null==f?void 0:f.text))}),[f,b]),t((()=>{const e=()=>{m.edit&&m.select&&_((e=>e+1))},t=e=>{const t=document.getElementById(hF(p));u.contains(e.target)||null!=t&&t.contains(e.target)||(e=>{const t=document.getElementsByClassName("tekPopperMenu"),n=document.getElementById("tekTableMenu");if(null!=n&&n.contains(e))return!0;for(let n=0;n<t.length;n++)if(t[n].contains(e))return!0;return!1})(e.target)||T(!1)};return m.edit&&m.select||(T(!1),h.emit("saveDocument")),u.addEventListener("click",e),document.addEventListener("mousedown",t),()=>{u.removeEventListener("click",e),document.removeEventListener("mousedown",t)}}),[u,m,p]),t((()=>{(({rootElement:e,layout:t,model:n,element:r,edit:o,initialData:i,emitter:l,lang:a,flags:s,theme:u})=>{e.render(q.createElement(q.StrictMode,null,q.createElement(pm.Provider,{value:{layout:t,model:n,element:r,edit:o,initialData:i,emitter:l,lang:a,flags:s,theme:u}},q.createElement(bF,null))))})({rootElement:d,layout:f,model:p,element:u,edit:g,initialData:b,emitter:h,lang:"en",flags:c,theme:w})}),[f,d,p,u,g,u,b,h,c,w]),t((()=>{!g&&E&&h.emit("saveDocument")}),[g,h,E]),t((()=>{if(f){const e=f;e.text&&e.text!==k&&(S(e.text),h.emit("reloadData",e.text))}}),[f,k,h])},ext:{definition:{type:"items",component:"accordion",items:{data:yF,settings:xF}},support:{snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!1}}}}Zn.configure({},"en-US");export{_F as default};
|