@tiptap/react 2.0.0-beta.7 → 2.0.0-beta.70
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/LICENSE.md +1 -1
- package/README.md +2 -2
- package/dist/packages/react/src/BubbleMenu.d.ts +3 -1
- package/dist/packages/react/src/EditorContent.d.ts +2 -2
- package/dist/packages/react/src/FloatingMenu.d.ts +8 -0
- package/dist/packages/react/src/NodeViewContent.d.ts +2 -2
- package/dist/packages/react/src/NodeViewWrapper.d.ts +2 -2
- package/dist/packages/react/src/ReactNodeViewRenderer.d.ts +9 -5
- package/dist/packages/react/src/ReactRenderer.d.ts +10 -6
- package/dist/packages/react/src/index.d.ts +1 -0
- package/dist/packages/react/src/useEditor.d.ts +2 -1
- package/dist/packages/react/src/useReactNodeView.d.ts +1 -1
- package/dist/tiptap-react.cjs.js +104 -40
- package/dist/tiptap-react.cjs.js.map +1 -1
- package/dist/tiptap-react.esm.js +105 -42
- package/dist/tiptap-react.esm.js.map +1 -1
- package/dist/tiptap-react.umd.js +107 -44
- package/dist/tiptap-react.umd.js.map +1 -1
- package/package.json +17 -9
- package/src/BubbleMenu.tsx +15 -6
- package/src/EditorContent.tsx +8 -7
- package/src/FloatingMenu.tsx +39 -0
- package/src/NodeViewContent.tsx +16 -9
- package/src/NodeViewWrapper.tsx +11 -9
- package/src/ReactNodeViewRenderer.tsx +70 -23
- package/src/ReactRenderer.tsx +19 -8
- package/src/index.ts +1 -0
- package/src/useEditor.ts +3 -3
- package/src/useReactNodeView.ts +1 -2
- package/CHANGELOG.md +0 -64
- package/dist/tiptap-react.bundle.umd.min.js +0 -54
- package/dist/tiptap-react.bundle.umd.min.js.map +0 -1
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tiptap/core")):"function"==typeof define&&define.amd?define(["exports","@tiptap/core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@tiptap/react"]={},e["@tiptap/core"])}(this,(function(e,t){"use strict";function n(e){var t={exports:{}};return e(t,t.exports),t.exports
|
|
2
|
-
/*
|
|
3
|
-
object-assign
|
|
4
|
-
(c) Sindre Sorhus
|
|
5
|
-
@license MIT
|
|
6
|
-
*/}var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var l=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,u=i(e),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))o.call(n,c)&&(u[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)a.call(n,l[f])&&(u[l[f]]=n[l[f]])}}return u},u=n((function(e,t){var n=60103,r=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,a=60110,i=60112;t.Suspense=60113;var u=60115,s=60116;if("function"==typeof Symbol&&Symbol.for){var c=Symbol.for;n=c("react.element"),r=c("react.portal"),t.Fragment=c("react.fragment"),t.StrictMode=c("react.strict_mode"),t.Profiler=c("react.profiler"),o=c("react.provider"),a=c("react.context"),i=c("react.forward_ref"),t.Suspense=c("react.suspense"),u=c("react.memo"),s=c("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function d(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 p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var g=y.prototype=new v;g.constructor=y,l(g,m.prototype),g.isPureReactComponent=!0;var b={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)w.call(t,o)&&!k.hasOwnProperty(o)&&(a[o]=t[o]);var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===a[o]&&(a[o]=u[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:b.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function C(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 _(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return i=i(u=e),e=""===a?"."+C(u,0):a,Array.isArray(i)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),_(i,t,o,"",(function(e){return e}))):null!=i&&(x(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||u&&u.key===i.key?"":(""+i.key).replace(E,"$&/")+"/")+e)),t.push(i)),1;if(u=0,a=""===a?".":a+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=a+C(l=e[s],s);u+=_(l,t,o,c,i)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),s=0;!(l=e.next()).done;)u+=_(l=l.value,t,o,c=a+C(l,s++),i);else if("object"===l)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function T(e,t,n){if(null==e)return e;var r=[],o=0;return _(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function R(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var P={current:null};function N(){var e=P.current;if(null===e)throw Error(d(321));return e}var O={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:l};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(d(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,r){if(null==e)throw Error(d(267,e));var o=l({},e.props),a=e.key,i=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,u=b.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];o.children=s}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:s,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"})),s=n((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e=l,n=60103,r=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,a=60110,i=60112;t.Suspense=60113;var u=60120,s=60115,c=60116,f=60121,d=60122,p=60117,h=60129,m=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;n=v("react.element"),r=v("react.portal"),t.Fragment=v("react.fragment"),t.StrictMode=v("react.strict_mode"),t.Profiler=v("react.profiler"),o=v("react.provider"),a=v("react.context"),i=v("react.forward_ref"),t.Suspense=v("react.suspense"),u=v("react.suspense_list"),s=v("react.memo"),c=v("react.lazy"),f=v("react.block"),d=v("react.server.block"),p=v("react.fundamental"),v("react.scope"),v("react.opaque.id"),h=v("react.debug_trace_mode"),v("react.offscreen"),m=v("react.legacy_hidden")}var y="function"==typeof Symbol&&Symbol.iterator;function g(e){if(null===e||"object"!=typeof e)return null;var t=y&&e[y]||e["@@iterator"];return"function"==typeof t?t:null}var b={current:null},w={current:null},k={},S=null;function x(e){S=e}k.setExtraStackFrame=function(e){S=e},k.getCurrentStack=null,k.getStackAddendum=function(){var e="";S&&(e+=S);var t=k.getCurrentStack;return t&&(e+=t()||""),e};var E={ReactCurrentDispatcher:b,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:e};function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];T("warn",e,n)}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];T("error",e,n)}function T(e,t,n){var r=E.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}E.ReactDebugCurrentFrame=k;var R={};function P(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;R[o]||(_("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),R[o]=!0)}var N={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){P(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){P(e,"replaceState")},enqueueSetState:function(e,t,n,r){P(e,"setState")}},O={};function M(e,t,n){this.props=e,this.context=t,this.refs=O,this.updater=n||N}Object.freeze(O),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")};var I={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},z=function(e,t){Object.defineProperty(M.prototype,e,{get:function(){C("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var D in I)I.hasOwnProperty(D)&&z(D,I[D]);function L(){}function A(e,t,n){this.props=e,this.context=t,this.refs=O,this.updater=n||N}L.prototype=M.prototype;var F=A.prototype=new L;function j(e){return e.displayName||"Context"}function U(e){if(null==e)return null;if("number"==typeof e.tag&&_("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case t.Fragment:return"Fragment";case r:return"Portal";case t.Profiler:return"Profiler";case t.StrictMode:return"StrictMode";case t.Suspense:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case a:return j(e)+".Consumer";case o:return j(e._context)+".Provider";case i:return p=e,h=e.render,m="ForwardRef",v=h.displayName||h.name||"",p.displayName||(""!==v?m+"("+v+")":m);case s:return U(e.type);case f:return U(e._render);case c:var n=e,l=n._payload,d=n._init;try{return U(d(l))}catch(e){return null}}var p,h,m,v;return null}F.constructor=A,e(F,M.prototype),F.isPureReactComponent=!0;var W,B,V,$=Object.prototype.hasOwnProperty,H={key:!0,ref:!0,__self:!0,__source:!0};function q(e){if($.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Q(e){if($.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function Y(e,t){var n=function(){W||(W=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function J(e,t){var n=function(){B||(B=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function K(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=U(w.current.type);V[t]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),V[t]=!0)}}V={};var X=function(e,t,r,o,a,i,l){var u={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:i,_store:{}};return Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function G(e,t,n){var r,o={},a=null,i=null,l=null,u=null;if(null!=t)for(r in q(t)&&(i=t.ref,K(t)),Q(t)&&(a=""+t.key),l=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)$.call(t,r)&&!H.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(s>1){for(var c=Array(s),f=0;f<s;f++)c[f]=arguments[f+2];Object.freeze&&Object.freeze(c),o.children=c}if(e&&e.defaultProps){var d=e.defaultProps;for(r in d)void 0===o[r]&&(o[r]=d[r])}if(a||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&Y(o,p),i&&J(o,p)}return X(e,a,i,l,u,w.current,o)}function Z(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o,a,i=e({},t.props),l=t.key,u=t.ref,s=t._self,c=t._source,f=t._owner;if(null!=n)for(o in q(n)&&(u=n.ref,f=w.current),Q(n)&&(l=""+n.key),t.type&&t.type.defaultProps&&(a=t.type.defaultProps),n)$.call(n,o)&&!H.hasOwnProperty(o)&&(void 0===n[o]&&void 0!==a?i[o]=a[o]:i[o]=n[o]);var d=arguments.length-2;if(1===d)i.children=r;else if(d>1){for(var p=Array(d),h=0;h<d;h++)p[h]=arguments[h+2];i.children=p}return X(t.type,l,u,s,c,f,i)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var te=!1,ne=/\/+/g;function re(e){return e.replace(ne,"$&/")}function oe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function ae(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u,s,c,f=!1;if(null===e)f=!0;else switch(l){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case n:case r:f=!0}}if(f){var d=e,p=i(d),h=""===a?"."+oe(d,0):a;if(Array.isArray(p)){var m="";null!=h&&(m=re(h)+"/"),ae(p,t,m,"",(function(e){return e}))}else null!=p&&(ee(p)&&(u=p,s=o+(!p.key||d&&d.key===p.key?"":re(""+p.key)+"/")+h,p=X(u.type,s,u.ref,u._self,u._source,u._owner,u.props)),t.push(p));return 1}var v=0,y=""===a?".":a+":";if(Array.isArray(e))for(var b=0;b<e.length;b++)v+=ae(c=e[b],t,o,y+oe(c,b),i);else{var w=g(e);if("function"==typeof w){var k=e;w===k.entries&&(te||C("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),te=!0);for(var S,x=w.call(k),E=0;!(S=x.next()).done;)v+=ae(c=S.value,t,o,y+oe(c,E++),i)}else if("object"===l){var _=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===_?"object with keys {"+Object.keys(e).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}}return v}function ie(e,t,n){if(null==e)return e;var r=[],o=0;return ae(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function le(e){if(-1===e._status){var t=(0,e._result)(),n=e;n._status=0,n._result=t,t.then((function(t){if(0===e._status){var n=t.default;void 0===n&&_("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t);var r=e;r._status=1,r._result=n}}),(function(t){if(0===e._status){var n=e;n._status=2,n._result=t}}))}if(1===e._status)return e._result;throw e._result}function ue(e){return"string"==typeof e||"function"==typeof e||(e===t.Fragment||e===t.Profiler||e===h||e===t.StrictMode||e===t.Suspense||e===u||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===c||e.$$typeof===s||e.$$typeof===o||e.$$typeof===a||e.$$typeof===i||e.$$typeof===p||e.$$typeof===f||e[0]===d))}function se(){var e=b.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var ce,fe,de,pe,he,me,ve,ye=0;function ge(){}ge.__reactDisabledLog=!0;var be,we=E.ReactCurrentDispatcher;function ke(e,t,n){if(void 0===be)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);be=r&&r[1]||""}return"\n"+be+e}var Se,xe=!1,Ee="function"==typeof WeakMap?WeakMap:Map;function Ce(t,n){if(!t||xe)return"";var r,o=Se.get(t);if(void 0!==o)return o;xe=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=we.current,we.current=null,function(){if(0===ye){ce=console.log,fe=console.info,de=console.warn,pe=console.error,he=console.group,me=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ye++}();try{if(n){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(l,[])}catch(e){r=e}Reflect.construct(t,[],l)}else{try{l.call()}catch(e){r=e}t.call(l.prototype)}}else{try{throw Error()}catch(e){r=e}t()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var u=e.stack.split("\n"),s=r.stack.split("\n"),c=u.length-1,f=s.length-1;c>=1&&f>=0&&u[c]!==s[f];)f--;for(;c>=1&&f>=0;c--,f--)if(u[c]!==s[f]){if(1!==c||1!==f)do{if(c--,--f<0||u[c]!==s[f]){var d="\n"+u[c].replace(" at new "," at ");return"function"==typeof t&&Se.set(t,d),d}}while(c>=1&&f>=0);break}}}finally{xe=!1,we.current=a,function(){if(0==--ye){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:e({},t,{value:ce}),info:e({},t,{value:fe}),warn:e({},t,{value:de}),error:e({},t,{value:pe}),group:e({},t,{value:he}),groupCollapsed:e({},t,{value:me}),groupEnd:e({},t,{value:ve})})}ye<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=t?t.displayName||t.name:"",h=p?ke(p):"";return"function"==typeof t&&Se.set(t,h),h}function _e(e,t,n){return Ce(e,!1)}function Te(e,n,r){if(null==e)return"";if("function"==typeof e)return Ce(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return ke(e);switch(e){case t.Suspense:return ke("Suspense");case u:return ke("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case i:return _e(e.render);case s:return Te(e.type,n,r);case f:return _e(e._render);case c:var o=e,a=o._payload,l=o._init;try{return Te(l(a),n,r)}catch(e){}}return""}Se=new Ee;var Re,Pe={},Ne=E.ReactDebugCurrentFrame;function Oe(e){if(e){var t=e._owner,n=Te(e.type,e._source,t?t.type:null);Ne.setExtraStackFrame(n)}else Ne.setExtraStackFrame(null)}function Me(e){if(e){var t=e._owner;x(Te(e.type,e._source,t?t.type:null))}else x(null)}function Ie(){if(w.current){var e=U(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function ze(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Re=!1;var De={};function Le(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Ie();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!De[n]){De[n]=!0;var r="";e&&e._owner&&e._owner!==w.current&&(r=" It was passed a child from "+U(e._owner.type)+"."),Me(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Me(null)}}}function Ae(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];ee(r)&&Le(r,t)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=g(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ee(a.value)&&Le(a.value,t)}}function Fe(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==i&&n.$$typeof!==s)return;t=n.propTypes}if(t){var r=U(n);!function(e,t,n,r,o){var a=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(a(e,i)){var l=void 0;try{if("function"!=typeof e[i]){var u=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(Oe(o),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof l),Oe(null)),l instanceof Error&&!(l.message in Pe)&&(Pe[l.message]=!0,Oe(o),_("Failed %s type: %s",n,l.message),Oe(null))}}(t,e.props,"prop",r,e)}else if(void 0!==n.PropTypes&&!Re){Re=!0,_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function je(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Me(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Me(null);break}}null!==e.ref&&(Me(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),Me(null))}function Ue(e,r,o){var a=ue(e);if(!a){var i="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var l,u=ze(r);i+=u||Ie(),null===e?l="null":Array.isArray(e)?l="array":void 0!==e&&e.$$typeof===n?(l="<"+(U(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,_("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,i)}var s=G.apply(this,arguments);if(null==s)return s;if(a)for(var c=2;c<arguments.length;c++)Ae(arguments[c],e);return e===t.Fragment?je(s):Fe(s),s}var We=!1;try{var Be=Object.freeze({});new Map([[Be,null]]),new Set([Be])}catch(e){}var Ve=Ue,$e=function(e,t,n){for(var r=Z.apply(this,arguments),o=2;o<arguments.length;o++)Ae(arguments[o],r.type);return Fe(r),r},He=function(e){var t=Ue.bind(null,e);return t.type=e,We||(We=!0,C("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return C("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},qe={map:ie,forEach:function(e,t,n){ie(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return ie(e,(function(){t++})),t},toArray:function(e){return ie(e,(function(e){return e}))||[]},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=qe,t.Component=M,t.PureComponent=A,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=E,t.cloneElement=$e,t.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&_("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var n={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};n.Provider={$$typeof:o,_context:n};var r=!1,i=!1,l=!1,u={$$typeof:a,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(u,{Provider:{get:function(){return i||(i=!0,_("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(e){n.Provider=e}},_currentValue:{get:function(){return n._currentValue},set:function(e){n._currentValue=e}},_currentValue2:{get:function(){return n._currentValue2},set:function(e){n._currentValue2=e}},_threadCount:{get:function(){return n._threadCount},set:function(e){n._threadCount=e}},Consumer:{get:function(){return r||(r=!0,_("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}},displayName:{get:function(){return n.displayName},set:function(e){l||(C("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),l=!0)}}}),n.Consumer=u,n._currentRenderer=null,n._currentRenderer2=null,n},t.createElement=Ve,t.createFactory=He,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===s?_("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?_("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&_("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||_("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:i,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,null==e.displayName&&(e.displayName=n)}}),n},t.isValidElement=ee,t.lazy=function(e){var t,n,r={$$typeof:c,_payload:{_status:-1,_result:e},_init:le};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){_("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){_("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){ue(e)||_("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:s,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,null==e.displayName&&(e.displayName=t)}}),r},t.useCallback=function(e,t){return se().useCallback(e,t)},t.useContext=function(e,t){var n=se();if(void 0!==t&&_("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var r=e._context;r.Consumer===e?_("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&_("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(e,t)},t.useDebugValue=function(e,t){return se().useDebugValue(e,t)},t.useEffect=function(e,t){return se().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return se().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return se().useLayoutEffect(e,t)},t.useMemo=function(e,t){return se().useMemo(e,t)},t.useReducer=function(e,t,n){return se().useReducer(e,t,n)},t.useRef=function(e){return se().useRef(e)},t.useState=function(e){return se().useState(e)},t.version="17.0.2"}()})),c=n((function(e){"production"===process.env.NODE_ENV?e.exports=u:e.exports=s}));
|
|
7
|
-
/** @license React v17.0.2
|
|
8
|
-
* react.production.min.js
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/function f(e,t,n){for(var r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;var o=e.child(r),a=t.child(r);if(o!=a){if(!o.sameMarkup(a))return n;if(o.isText&&o.text!=a.text){for(var i=0;o.text[i]==a.text[i];i++)n++;return n}if(o.content.size||a.content.size){var l=f(o.content,a.content,n+1);if(null!=l)return l}n+=o.nodeSize}else n+=o.nodeSize}}function d(e,t,n,r){for(var o=e.childCount,a=t.childCount;;){if(0==o||0==a)return o==a?null:{a:n,b:r};var i=e.child(--o),l=t.child(--a),u=i.nodeSize;if(i!=l){if(!i.sameMarkup(l))return{a:n,b:r};if(i.isText&&i.text!=l.text){for(var s=0,c=Math.min(i.text.length,l.text.length);s<c&&i.text[i.text.length-s-1]==l.text[l.text.length-s-1];)s++,n--,r--;return{a:n,b:r}}if(i.content.size||l.content.size){var f=d(i.content,l.content,n-1,r-1);if(f)return f}n-=u,r-=u}else n-=u,r-=u}}var p=function(e,t){if(this.content=e,this.size=t||0,null==t)for(var n=0;n<e.length;n++)this.size+=e[n].nodeSize},h={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};p.prototype.nodesBetween=function(e,t,n,r,o){void 0===r&&(r=0);for(var a=0,i=0;i<t;a++){var l=this.content[a],u=i+l.nodeSize;if(u>e&&!1!==n(l,r+i,o,a)&&l.content.size){var s=i+1;l.nodesBetween(Math.max(0,e-s),Math.min(l.content.size,t-s),n,r+s)}i=u}},p.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},p.prototype.textBetween=function(e,t,n,r){var o="",a=!0;return this.nodesBetween(e,t,(function(i,l){i.isText?(o+=i.text.slice(Math.max(e,l)-l,t-l),a=!n):i.isLeaf&&r?(o+=r,a=!n):!a&&i.isBlock&&(o+=n,a=!0)}),0),o},p.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new p(r,this.size+e.size)},p.prototype.cut=function(e,t){if(null==t&&(t=this.size),0==e&&t==this.size)return this;var n=[],r=0;if(t>e)for(var o=0,a=0;a<t;o++){var i=this.content[o],l=a+i.nodeSize;l>e&&((a<e||l>t)&&(i=i.isText?i.cut(Math.max(0,e-a),Math.min(i.text.length,t-a)):i.cut(Math.max(0,e-a-1),Math.min(i.content.size,t-a-1))),n.push(i),r+=i.nodeSize),a=l}return new p(n,r)},p.prototype.cutByIndex=function(e,t){return e==t?p.empty:0==e&&t==this.content.length?this:new p(this.content.slice(e,t))},p.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new p(r,o)},p.prototype.addToStart=function(e){return new p([e].concat(this.content),this.size+e.nodeSize)},p.prototype.addToEnd=function(e){return new p(this.content.concat(e),this.size+e.nodeSize)},p.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0},h.firstChild.get=function(){return this.content.length?this.content[0]:null},h.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},h.childCount.get=function(){return this.content.length},p.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},p.prototype.maybeChild=function(e){return this.content[e]},p.prototype.forEach=function(e){for(var t=0,n=0;t<this.content.length;t++){var r=this.content[t];e(r,n,t),n+=r.nodeSize}},p.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),f(this,e,t)},p.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),d(this,e,t,n)},p.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return v(0,e);if(e==this.size)return v(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,r=0;;n++){var o=r+this.child(n).nodeSize;if(o>=e)return o==e||t>0?v(n+1,o):v(n,r);r=o}},p.prototype.toString=function(){return"<"+this.toStringInner()+">"},p.prototype.toStringInner=function(){return this.content.join(", ")},p.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},p.fromJSON=function(e,t){if(!t)return p.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new p(t.map(e.nodeFromJSON))},p.fromArray=function(e){if(!e.length)return p.empty;for(var t,n=0,r=0;r<e.length;r++){var o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new p(t||e,n)},p.from=function(e){if(!e)return p.empty;if(e instanceof p)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new p([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))},Object.defineProperties(p.prototype,h);var m={index:0,offset:0};function v(e,t){return m.index=e,m.offset=t,m}function y(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!y(e[r],t[r]))return!1}else{for(var o in e)if(!(o in t)||!y(e[o],t[o]))return!1;for(var a in t)if(!(a in e))return!1}return!0}p.empty=new p([],0);var g=function(e,t){this.type=e,this.attrs=t};function b(e){var t=Error.call(this,e);return t.__proto__=b.prototype,t}g.prototype.addToSet=function(e){for(var t,n=!1,r=0;r<e.length;r++){var o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t},g.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e},g.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},g.prototype.eq=function(e){return this==e||this.type==e.type&&y(this.attrs,e.attrs)},g.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},g.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type "+t.type+" in this schema");return n.create(t.attrs)},g.sameSet=function(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0},g.setFrom=function(e){if(!e||0==e.length)return g.none;if(e instanceof g)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},g.none=[],b.prototype=Object.create(Error.prototype),b.prototype.constructor=b,b.prototype.name="ReplaceError";var w=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},k={size:{configurable:!0}};function S(e,t,n){var r=e.findIndex(t),o=r.index,a=r.offset,i=e.maybeChild(o),l=e.findIndex(n),u=l.index,s=l.offset;if(a==t||i.isText){if(s!=n&&!e.child(u).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(o!=u)throw new RangeError("Removing non-flat range");return e.replaceChild(o,i.copy(S(i.content,t-a-1,n-a-1)))}function x(e,t,n,r){var o=e.findIndex(t),a=o.index,i=o.offset,l=e.maybeChild(a);if(i==t||l.isText)return r&&!r.canReplace(a,a,n)?null:e.cut(0,t).append(n).append(e.cut(t));var u=x(l.content,t-i-1,n);return u&&e.replaceChild(a,l.copy(u))}function E(e,t,n){if(n.openStart>e.depth)throw new b("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new b("Inconsistent open depths");return C(e,t,n,0)}function C(e,t,n,r){var o=e.index(r),a=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){var i=C(e,t,n,r+1);return a.copy(a.content.replaceChild(o,i))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){var l=function(e,t){for(var n=t.depth-e.openStart,r=t.node(n).copy(e.content),o=n-1;o>=0;o--)r=t.node(o).copy(p.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return N(a,O(e,l.start,l.end,t,r))}var u=e.parent,s=u.content;return N(u,s.cut(0,e.parentOffset).append(n.content).append(s.cut(t.parentOffset)))}return N(a,M(e,t,r))}function _(e,t){if(!t.type.compatibleContent(e.type))throw new b("Cannot join "+t.type.name+" onto "+e.type.name)}function T(e,t,n){var r=e.node(n);return _(r,t.node(n)),r}function R(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function P(e,t,n,r){var o=(t||e).node(n),a=0,i=t?t.index(n):o.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(R(e.nodeAfter,r),a++));for(var l=a;l<i;l++)R(o.child(l),r);t&&t.depth==n&&t.textOffset&&R(t.nodeBefore,r)}function N(e,t){if(!e.type.validContent(t))throw new b("Invalid content for node "+e.type.name);return e.copy(t)}function O(e,t,n,r,o){var a=e.depth>o&&T(e,t,o+1),i=r.depth>o&&T(n,r,o+1),l=[];return P(null,e,o,l),a&&i&&t.index(o)==n.index(o)?(_(a,i),R(N(a,O(e,t,n,r,o+1)),l)):(a&&R(N(a,M(e,t,o+1)),l),P(t,n,o,l),i&&R(N(i,M(n,r,o+1)),l)),P(r,null,o,l),new p(l)}function M(e,t,n){var r=[];(P(null,e,n,r),e.depth>n)&&R(N(T(e,t,n+1),M(e,t,n+1)),r);return P(t,null,n,r),new p(r)}k.size.get=function(){return this.content.size-this.openStart-this.openEnd},w.prototype.insertAt=function(e,t){var n=x(this.content,e+this.openStart,t,null);return n&&new w(n,this.openStart,this.openEnd)},w.prototype.removeBetween=function(e,t){return new w(S(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},w.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},w.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},w.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},w.fromJSON=function(e,t){if(!t)return w.empty;var n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new w(p.fromJSON(e,t.content),n,r)},w.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,r=0,o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)n++;for(var a=e.lastChild;a&&!a.isLeaf&&(t||!a.type.spec.isolating);a=a.lastChild)r++;return new w(e,n,r)},Object.defineProperties(w.prototype,k),w.empty=new w(p.empty,0,0);var I=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},z={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};I.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},z.parent.get=function(){return this.node(this.depth)},z.doc.get=function(){return this.node(0)},I.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},I.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},I.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},I.prototype.start=function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},I.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},I.prototype.before=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},I.prototype.after=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},z.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},z.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r},z.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},I.prototype.posAtIndex=function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1,o=0;o<e;o++)r+=n.child(o).nodeSize;return r},I.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return g.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){var o=n;n=r,r=o}for(var a=n.marks,i=0;i<a.length;i++)!1!==a[i].type.spec.inclusive||r&&a[i].isInSet(r.marks)||(a=a[i--].removeFromSet(a));return a},I.prototype.marksAcross=function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,r=e.parent.maybeChild(e.index()),o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n},I.prototype.sharedDepth=function(e){for(var t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},I.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new F(this,e,n)},I.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},I.prototype.max=function(e){return e.pos>this.pos?e:this},I.prototype.min=function(e){return e.pos<this.pos?e:this},I.prototype.toString=function(){for(var e="",t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset},I.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],r=0,o=t,a=e;;){var i=a.content.findIndex(o),l=i.index,u=i.offset,s=o-u;if(n.push(a,l,r+u),!s)break;if((a=a.child(l)).isText)break;o=s-1,r+=u+1}return new I(t,n,o)},I.resolveCached=function(e,t){for(var n=0;n<D.length;n++){var r=D[n];if(r.pos==t&&r.doc==e)return r}var o=D[L]=I.resolve(e,t);return L=(L+1)%A,o},Object.defineProperties(I.prototype,z);var D=[],L=0,A=12,F=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},j={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};j.start.get=function(){return this.$from.before(this.depth+1)},j.end.get=function(){return this.$to.after(this.depth+1)},j.parent.get=function(){return this.$from.node(this.depth)},j.startIndex.get=function(){return this.$from.index(this.depth)},j.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(F.prototype,j);var U=Object.create(null),W=function(e,t,n,r){this.type=e,this.attrs=t,this.content=n||p.empty,this.marks=r||g.none},B={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};B.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},B.childCount.get=function(){return this.content.childCount},W.prototype.child=function(e){return this.content.child(e)},W.prototype.maybeChild=function(e){return this.content.maybeChild(e)},W.prototype.forEach=function(e){this.content.forEach(e)},W.prototype.nodesBetween=function(e,t,n,r){void 0===r&&(r=0),this.content.nodesBetween(e,t,n,r,this)},W.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},B.textContent.get=function(){return this.textBetween(0,this.content.size,"")},W.prototype.textBetween=function(e,t,n,r){return this.content.textBetween(e,t,n,r)},B.firstChild.get=function(){return this.content.firstChild},B.lastChild.get=function(){return this.content.lastChild},W.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},W.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},W.prototype.hasMarkup=function(e,t,n){return this.type==e&&y(this.attrs,t||e.defaultAttrs||U)&&g.sameSet(this.marks,n||g.none)},W.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},W.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},W.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},W.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return w.empty;var r=this.resolve(e),o=this.resolve(t),a=n?0:r.sharedDepth(t),i=r.start(a),l=r.node(a).content.cut(r.pos-i,o.pos-i);return new w(l,r.depth-a,o.depth-a)},W.prototype.replace=function(e,t,n){return E(this.resolve(e),this.resolve(t),n)},W.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),r=n.index,o=n.offset;if(!(t=t.maybeChild(r)))return null;if(o==e||t.isText)return t;e-=o+1}},W.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,r=t.offset;return{node:this.content.maybeChild(n),index:n,offset:r}},W.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,r=t.offset;if(r<e)return{node:this.content.child(n),index:n,offset:r};var o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}},W.prototype.resolve=function(e){return I.resolveCached(this,e)},W.prototype.resolveNoCache=function(e){return I.resolve(this,e)},W.prototype.rangeHasMark=function(e,t,n){var r=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(r=!0),!r})),r},B.isBlock.get=function(){return this.type.isBlock},B.isTextblock.get=function(){return this.type.isTextblock},B.inlineContent.get=function(){return this.type.inlineContent},B.isInline.get=function(){return this.type.isInline},B.isText.get=function(){return this.type.isText},B.isLeaf.get=function(){return this.type.isLeaf},B.isAtom.get=function(){return this.type.isAtom},W.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),function(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}(this.marks,e)},W.prototype.contentMatchAt=function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},W.prototype.canReplace=function(e,t,n,r,o){void 0===n&&(n=p.empty),void 0===r&&(r=0),void 0===o&&(o=n.childCount);var a=this.contentMatchAt(e).matchFragment(n,r,o),i=a&&a.matchFragment(this.content,t);if(!i||!i.validEnd)return!1;for(var l=r;l<o;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0},W.prototype.canReplaceWith=function(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;var o=this.contentMatchAt(e).matchType(n),a=o&&o.matchFragment(this.content,t);return!!a&&a.validEnd},W.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},W.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));this.content.forEach((function(e){return e.check()}))},W.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((function(e){return e.toJSON()}))),e},W.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var r=p.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)},Object.defineProperties(W.prototype,B);var V=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},$={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};V.parse=function(e,t){var n=new H(e,t);if(null==n.next)return V.empty;var r=Q(n);n.next&&n.err("Unexpected trailing text");var o=function(e){var t=Object.create(null);return n(Z(e,0));function n(r){var o=[];r.forEach((function(t){e[t].forEach((function(t){var n=t.term,r=t.to;if(n){var a=o.indexOf(n),i=a>-1&&o[a+1];Z(e,r).forEach((function(e){i||o.push(n,i=[]),-1==i.indexOf(e)&&i.push(e)}))}}))}));for(var a=t[r.join(",")]=new V(r.indexOf(e.length-1)>-1),i=0;i<o.length;i+=2){var l=o[i+1].sort(G);a.next.push(o[i],t[l.join(",")]||n(l))}return a}}(function(e){var t=[[]];return o(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){var o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach((function(e){return e.to=t}))}function a(e,t){if("choice"==e.type)return e.exprs.reduce((function(e,n){return e.concat(a(n,t))}),[]);if("seq"==e.type)for(var i=0;;i++){var l=a(e.exprs[i],t);if(i==e.exprs.length-1)return l;o(l,t=n())}else{if("star"==e.type){var u=n();return r(t,u),o(a(e.expr,u),u),[r(u)]}if("plus"==e.type){var s=n();return o(a(e.expr,t),s),o(a(e.expr,s),s),[r(s)]}if("opt"==e.type)return[r(t)].concat(a(e.expr,t));if("range"==e.type){for(var c=t,f=0;f<e.min;f++){var d=n();o(a(e.expr,c),d),c=d}if(-1==e.max)o(a(e.expr,c),c);else for(var p=e.min;p<e.max;p++){var h=n();r(c,h),o(a(e.expr,c),h),c=h}return[r(c)]}if("name"==e.type)return[r(t,null,e.value)]}}}(r));return function(e,t){for(var n=0,r=[e];n<r.length;n++){for(var o=r[n],a=!o.validEnd,i=[],l=0;l<o.next.length;l+=2){var u=o.next[l],s=o.next[l+1];i.push(u.name),!a||u.isText||u.hasRequiredAttrs()||(a=!1),-1==r.indexOf(s)&&r.push(s)}a&&t.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,n),o},V.prototype.matchType=function(e){for(var t=0;t<this.next.length;t+=2)if(this.next[t]==e)return this.next[t+1];return null},V.prototype.matchFragment=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.childCount);for(var r=this,o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r},$.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},$.defaultType.get=function(){for(var e=0;e<this.next.length;e+=2){var t=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}},V.prototype.compatible=function(e){for(var t=0;t<this.next.length;t+=2)for(var n=0;n<e.next.length;n+=2)if(this.next[t]==e.next[n])return!0;return!1},V.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var r=[this];return function o(a,i){var l=a.matchFragment(e,n);if(l&&(!t||l.validEnd))return p.from(i.map((function(e){return e.createAndFill()})));for(var u=0;u<a.next.length;u+=2){var s=a.next[u],c=a.next[u+1];if(!s.isText&&!s.hasRequiredAttrs()&&-1==r.indexOf(c)){r.push(c);var f=o(c,i.concat(s));if(f)return f}}}(this,[])},V.prototype.findWrapping=function(e){for(var t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n},V.prototype.computeWrapping=function(e){for(var t=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var r=n.shift(),o=r.match;if(o.matchType(e)){for(var a=[],i=r;i.type;i=i.via)a.push(i.type);return a.reverse()}for(var l=0;l<o.next.length;l+=2){var u=o.next[l];u.isLeaf||u.hasRequiredAttrs()||u.name in t||r.type&&!o.next[l+1].validEnd||(n.push({match:u.contentMatch,type:u,via:r}),t[u.name]=!0)}}},$.edgeCount.get=function(){return this.next.length>>1},V.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},V.prototype.toString=function(){var e=[];return function t(n){e.push(n);for(var r=1;r<n.next.length;r+=2)-1==e.indexOf(n.next[r])&&t(n.next[r])}(this),e.map((function(t,n){for(var r=n+(t.validEnd?"*":" ")+" ",o=0;o<t.next.length;o+=2)r+=(o?", ":"")+t.next[o].name+"->"+e.indexOf(t.next[o+1]);return r})).join("\n")},Object.defineProperties(V.prototype,$),V.empty=new V(!0);var H=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()},q={next:{configurable:!0}};function Q(e){var t=[];do{t.push(Y(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function Y(e){var t=[];do{t.push(J(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function J(e){for(var t=function(e){if(e.eat("(")){var t=Q(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=function(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var o=[];for(var a in n){var i=n[a];i.groups.indexOf(t)>-1&&o.push(i)}0==o.length&&e.err("No node type or group '"+t+"' found");return o}(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=X(e,t)}return t}function K(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function X(e,t){var n=K(e),r=n;return e.eat(",")&&(r="}"!=e.next?K(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function G(e,t){return t-e}function Z(e,t){var n=[];return function t(r){var o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(var a=0;a<o.length;a++){var i=o[a],l=i.term,u=i.to;l||-1!=n.indexOf(u)||t(u)}}(t),n.sort(G)}function ee(e){var t=Object.create(null);for(var n in e){var r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function te(e,t){var n=Object.create(null);for(var r in e){var o=t&&t[r];if(void 0===o){var a=e[r];if(!a.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=a.default}n[r]=o}return n}function ne(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new ae(e[n]);return t}q.next.get=function(){return this.tokens[this.pos]},H.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},H.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(H.prototype,q);var re=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=ne(n.attrs),this.defaultAttrs=ee(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},oe={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};oe.isInline.get=function(){return!this.isBlock},oe.isTextblock.get=function(){return this.isBlock&&this.inlineContent},oe.isLeaf.get=function(){return this.contentMatch==V.empty},oe.isAtom.get=function(){return this.isLeaf||this.spec.atom},re.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1},re.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)},re.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:te(this.attrs,e)},re.prototype.create=function(e,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new W(this,this.computeAttrs(e),p.from(t),g.setFrom(n))},re.prototype.createChecked=function(e,t,n){if(t=p.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new W(this,this.computeAttrs(e),t,g.setFrom(n))},re.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),(t=p.from(t)).size){var r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}var o=this.contentMatch.matchFragment(t).fillBefore(p.empty,!0);return o?new W(this,e,t.append(o),g.setFrom(n)):null},re.prototype.validContent=function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0},re.prototype.allowsMarkType=function(e){return null==this.markSet||this.markSet.indexOf(e)>-1},re.prototype.allowsMarks=function(e){if(null==this.markSet)return!0;for(var t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0},re.prototype.allowedMarks=function(e){if(null==this.markSet)return e;for(var t,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:g.empty:e},re.compile=function(e,t){var n=Object.create(null);e.forEach((function(e,r){return n[e]=new re(e,t,r)}));var r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var o in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(re.prototype,oe);var ae=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},ie={isRequired:{configurable:!0}};ie.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(ae.prototype,ie);var le=function(e,t,n,r){this.name=e,this.schema=n,this.spec=r,this.attrs=ne(r.attrs),this.rank=t,this.excluded=null;var o=ee(this.attrs);this.instance=o&&new g(this,o)};le.prototype.create=function(e){return!e&&this.instance?this.instance:new g(this,te(this.attrs,e))},le.compile=function(e,t){var n=Object.create(null),r=0;return e.forEach((function(e,o){return n[e]=new le(e,r++,t,o)})),n},le.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e},le.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},le.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var ue=function(e,t){var n=this;this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((function(e){e.tag?n.tags.push(e):e.style&&n.styles.push(e)})),this.normalizeLists=!this.tags.some((function(t){if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;var n=e.nodes[t.node];return n.contentMatch.matchType(n)}))};ue.prototype.parse=function(e,t){void 0===t&&(t={});var n=new he(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},ue.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new he(this,t,!0);return n.addAll(e,null,t.from,t.to),w.maxOpen(n.finish())},ue.prototype.matchTag=function(e,t,n){for(var r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){var o=this.tags[r];if(ve(e,o.tag)&&(void 0===o.namespace||e.namespaceURI==o.namespace)&&(!o.context||t.matchesContext(o.context))){if(o.getAttrs){var a=o.getAttrs(e);if(!1===a)continue;o.attrs=a}return o}}},ue.prototype.matchStyle=function(e,t,n,r){for(var o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){var a=this.styles[o];if(!(0!=a.style.indexOf(e)||a.context&&!n.matchesContext(a.context)||a.style.length>e.length&&(61!=a.style.charCodeAt(e.length)||a.style.slice(e.length+1)!=t))){if(a.getAttrs){var i=a.getAttrs(t);if(!1===i)continue;a.attrs=i}return a}}},ue.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,r=0;r<t.length;r++){var o=t[r];if((null==o.priority?50:o.priority)<n)break}t.splice(r,0,e)}var r=function(t){var r=e.marks[t].spec.parseDOM;r&&r.forEach((function(e){n(e=ye(e)),e.mark=t}))};for(var o in e.marks)r(o);var a;for(var i in e.nodes)a=void 0,(a=e.nodes[i].spec.parseDOM)&&a.forEach((function(e){n(e=ye(e)),e.node=i}));return t},ue.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new ue(e,ue.schemaRules(e)))};var se={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ce={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},fe={ol:!0,ul:!0};function de(e){return(e?1:0)|("full"===e?2:0)}var pe=function(e,t,n,r,o,a,i){this.type=e,this.attrs=t,this.solid=o,this.match=a||(4&i?null:e.contentMatch),this.options=i,this.content=[],this.marks=n,this.activeMarks=g.none,this.pendingMarks=r,this.stashMarks=[]};pe.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(p.from(e));if(!t){var n,r=this.type.contentMatch;return(n=r.findWrapping(e.type))?(this.match=r,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)},pe.prototype.finish=function(e){if(!(1&this.options)){var t,n=this.content[this.content.length-1];n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))&&(n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length)))}var r=p.from(this.content);return!e&&this.match&&(r=r.append(this.match.fillBefore(p.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r},pe.prototype.popFromStashMark=function(e){for(var t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]},pe.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var r=n[t];(this.type?this.type.allowsMarkType(r.type):ge(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}};var he=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var r,o=t.topNode,a=de(t.preserveWhitespace)|(n?4:0);r=o?new pe(o.type,o.attrs,g.none,g.none,!0,t.topMatch||o.type.contentMatch,a):new pe(n?null:e.schema.topNodeType,null,g.none,g.none,!0,null,a),this.nodes=[r],this.open=0,this.find=t.findPositions,this.needsBlock=!1},me={top:{configurable:!0},currentPos:{configurable:!0}};function ve(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ye(e){var t={};for(var n in e)t[n]=e[n];return t}function ge(e,t){var n=t.schema.nodes,r=function(r){var o=n[r];if(o.allowsMarkType(e)){var a=[],i=function(e){a.push(e);for(var n=0;n<e.edgeCount;n++){var r=e.edge(n),o=r.type,l=r.next;if(o==t)return!0;if(a.indexOf(l)<0&&i(l))return!0}};return i(o.contentMatch)?{v:!0}:void 0}};for(var o in n){var a=r(o);if(a)return a.v}}me.top.get=function(){return this.nodes[this.open]},he.prototype.addDOM=function(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){var t=e.getAttribute("style"),n=t?this.readStyles(function(e){var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];for(;t=n.exec(e);)r.push(t[1],t[2].trim());return r}(t)):null,r=this.top;if(null!=n)for(var o=0;o<n.length;o++)this.addPendingMark(n[o]);if(this.addElement(e),null!=n)for(var a=0;a<n.length;a++)this.removePendingMark(n[a],r)}},he.prototype.addTextNode=function(e){var t=e.nodeValue,n=this.top;if((n.type?n.type.inlineContent:n.content.length&&n.content[0].isInline)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)2&n.options||(t=t.replace(/\r?\n|\r/g," "));else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){var r=n.content[n.content.length-1],o=e.previousSibling;(!r||o&&"BR"==o.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)},he.prototype.addElement=function(e,t){var n,r=e.nodeName.toLowerCase();fe.hasOwnProperty(r)&&this.parser.normalizeLists&&function(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var r=1==t.nodeType?t.nodeName.toLowerCase():null;r&&fe.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):"li"==r?n=t:r&&(n=null)}}(e);var o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(o?o.ignore:ce.hasOwnProperty(r))this.findInside(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);var a,i=this.top,l=this.needsBlock;if(se.hasOwnProperty(r))a=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),a&&this.sync(i),this.needsBlock=l}else this.addElementByRule(e,o,!1===o.consuming?n:null)},he.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},he.prototype.readStyles=function(e){var t=g.none;e:for(var n=0;n<e.length;n+=2)for(var r=null;;){var o=this.parser.matchStyle(e[n],e[n+1],this,r);if(!o)continue e;if(o.ignore)return null;if(t=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(t),!1!==o.consuming)break;r=o}return t},he.prototype.addElementByRule=function(e,t,n){var r,o,a,i=this;t.node?(o=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):r=this.enter(o,t.attrs,t.preserveWhitespace):(a=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(a));var l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((function(e){return i.insertNode(e)}));else{var u=t.contentElement;"string"==typeof u?u=e.querySelector(u):"function"==typeof u&&(u=u(e)),u||(u=e),this.findAround(e,u,!0),this.addAll(u,r)}r&&(this.sync(l),this.open--),a&&this.removePendingMark(a,l)},he.prototype.addAll=function(e,t,n,r){for(var o=n||0,a=n?e.childNodes[n]:e.firstChild,i=null==r?null:e.childNodes[r];a!=i;a=a.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(a),t&&se.hasOwnProperty(a.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,o)},he.prototype.findPlace=function(e){for(var t,n,r=this.open;r>=0;r--){var o=this.nodes[r],a=o.findWrapping(e);if(a&&(!t||t.length>a.length)&&(t=a,n=o,!a.length))break;if(o.solid)break}if(!t)return!1;this.sync(n);for(var i=0;i<t.length;i++)this.enterInner(t[i],null,!1);return!0},he.prototype.insertNode=function(e){if(e.isInline&&this.needsBlock&&!this.top.type){var t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();var n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));for(var r=n.activeMarks,o=0;o<e.marks.length;o++)n.type&&!n.type.allowsMarkType(e.marks[o].type)||(r=e.marks[o].addToSet(r));return n.content.push(e.mark(r)),!0}return!1},he.prototype.enter=function(e,t,n){var r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r},he.prototype.enterInner=function(e,t,n,r){this.closeExtra();var o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e,t);var a=null==r?-5&o.options:de(r);4&o.options&&0==o.content.length&&(a|=4),this.nodes.push(new pe(e,t,o.activeMarks,o.pendingMarks,n,null,a)),this.open++},he.prototype.closeExtra=function(e){var t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},he.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},he.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},me.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e},he.prototype.findAtPoint=function(e,t){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)},he.prototype.findInside=function(e){if(this.find)for(var t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)},he.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var r=0;r<this.find.length;r++){if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node))t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}},he.prototype.findInText=function(e){if(this.find)for(var t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))},he.prototype.matchesContext=function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,o=!(this.isOpen||r&&r.parent.type!=this.nodes[0].type),a=-(r?r.depth+1:0)+(o?0:1),i=function(e,l){for(;e>=0;e--){var u=n[e];if(""==u){if(e==n.length-1||0==e)continue;for(;l>=a;l--)if(i(e-1,l))return!0;return!1}var s=l>0||0==l&&o?t.nodes[l].type:r&&l>=a?r.node(l-a).type:null;if(!s||s.name!=u&&-1==s.groups.indexOf(u))return!1;l--}return!0};return i(n.length-1,this.open)},he.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var o=this.parser.schema.nodes[r];if(o.isTextblock&&o.defaultAttrs)return o}},he.prototype.addPendingMark=function(e){var t=function(e,t){for(var n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},he.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);var o=r.popFromStashMark(e);o&&r.type&&r.type.allowsMarkType(o.type)&&(r.activeMarks=o.addToSet(r.activeMarks))}if(r==t)break}},Object.defineProperties(he.prototype,me);var be=function(e,t){this.nodes=e||{},this.marks=t||{}};function we(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function ke(e){return e.document||window.document}be.prototype.serializeFragment=function(e,t,n){var r=this;void 0===t&&(t={}),n||(n=ke(t).createDocumentFragment());var o=n,a=null;return e.forEach((function(e){if(a||e.marks.length){a||(a=[]);for(var n=0,i=0;n<a.length&&i<e.marks.length;){var l=e.marks[i];if(r.marks[l.type.name]){if(!l.eq(a[n])||!1===l.type.spec.spanning)break;n+=2,i++}else i++}for(;n<a.length;)o=a.pop(),a.pop();for(;i<e.marks.length;){var u=e.marks[i++],s=r.serializeMark(u,e.isInline,t);s&&(a.push(u,o),o.appendChild(s.dom),o=s.contentDOM||s.dom)}}o.appendChild(r.serializeNode(e,t))})),n},be.prototype.serializeNode=function(e,t){void 0===t&&(t={});var n=be.renderSpec(ke(t),this.nodes[e.type.name](e)),r=n.dom,o=n.contentDOM;if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,o,t):this.serializeFragment(e.content,t,o)}return r},be.prototype.serializeNodeAndMarks=function(e,t){void 0===t&&(t={});for(var n=this.serializeNode(e,t),r=e.marks.length-1;r>=0;r--){var o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n},be.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var r=this.marks[e.type.name];return r&&be.renderSpec(ke(n),r(e,t))},be.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var r=t[0],o=r.indexOf(" ");o>0&&(n=r.slice(0,o),r=r.slice(o+1));var a=null,i=n?e.createElementNS(n,r):e.createElement(r),l=t[1],u=1;if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l))for(var s in u=2,l)if(null!=l[s]){var c=s.indexOf(" ");c>0?i.setAttributeNS(s.slice(0,c),s.slice(c+1),l[s]):i.setAttribute(s,l[s])}for(var f=u;f<t.length;f++){var d=t[f];if(0===d){if(f<t.length-1||f>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:i,contentDOM:i}}var p=be.renderSpec(e,d,n),h=p.dom,m=p.contentDOM;if(i.appendChild(h),m){if(a)throw new RangeError("Multiple content holes");a=m}}return{dom:i,contentDOM:a}},be.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new be(this.nodesFromSchema(e),this.marksFromSchema(e)))},be.nodesFromSchema=function(e){var t=we(e.nodes);return t.text||(t.text=function(e){return e.text}),t},be.marksFromSchema=function(e){return we(e.marks)};var Se=Math.pow(2,16);function xe(e){return 65535&e}var Ee=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},Ce=function(e,t){void 0===t&&(t=!1),this.ranges=e,this.inverted=t};Ce.prototype.recover=function(e){var t=0,n=xe(e);if(!this.inverted)for(var r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/Se}(e)},Ce.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},Ce.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},Ce.prototype._map=function(e,t,n){for(var r=0,o=this.inverted?2:1,a=this.inverted?1:2,i=0;i<this.ranges.length;i+=3){var l=this.ranges[i]-(this.inverted?r:0);if(l>e)break;var u=this.ranges[i+o],s=this.ranges[i+a],c=l+u;if(e<=c){var f=l+r+((u?e==l?-1:e==c?1:t:t)<0?0:s);if(n)return f;var d=e==(t<0?l:c)?null:i/3+(e-l)*Se;return new Ee(f,t<0?e!=l:e!=c,d)}r+=s-u}return n?e+r:new Ee(e+r)},Ce.prototype.touches=function(e,t){for(var n=0,r=xe(t),o=this.inverted?2:1,a=this.inverted?1:2,i=0;i<this.ranges.length;i+=3){var l=this.ranges[i]-(this.inverted?n:0);if(l>e)break;var u=this.ranges[i+o];if(e<=l+u&&i==3*r)return!0;n+=this.ranges[i+a]-u}return!1},Ce.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,o=0;r<this.ranges.length;r+=3){var a=this.ranges[r],i=a-(this.inverted?o:0),l=a+(this.inverted?0:o),u=this.ranges[r+t],s=this.ranges[r+n];e(i,i+u,l,l+s),o+=s-u}},Ce.prototype.invert=function(){return new Ce(this.ranges,!this.inverted)},Ce.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},Ce.offset=function(e){return 0==e?Ce.empty:new Ce(e<0?[0,-e,0]:[0,0,e])},Ce.empty=new Ce([]);var _e=function(e,t,n,r){this.maps=e||[],this.from=n||0,this.to=null==r?this.maps.length:r,this.mirror=t};function Te(e){var t=Error.call(this,e);return t.__proto__=Te.prototype,t}_e.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new _e(this.maps,this.mirror,e,t)},_e.prototype.copy=function(){return new _e(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},_e.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},_e.prototype.appendMapping=function(e){for(var t=0,n=this.maps.length;t<e.maps.length;t++){var r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:null)}},_e.prototype.getMirror=function(e){if(this.mirror)for(var t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]},_e.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},_e.prototype.appendMappingInverted=function(e){for(var t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){var r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:null)}},_e.prototype.invert=function(){var e=new _e;return e.appendMappingInverted(this),e},_e.prototype.map=function(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e},_e.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},_e.prototype._map=function(e,t,n){for(var r=!1,o=this.from;o<this.to;o++){var a=this.maps[o].mapResult(e,t);if(null!=a.recover){var i=this.getMirror(o);if(null!=i&&i>o&&i<this.to){o=i,e=this.maps[i].recover(a.recover);continue}}a.deleted&&(r=!0),e=a.pos}return n?e:new Ee(e,r)},Te.prototype=Object.create(Error.prototype),Te.prototype.constructor=Te,Te.prototype.name="TransformError";var Re=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new _e},Pe={before:{configurable:!0},docChanged:{configurable:!0}};function Ne(){throw new Error("Override me")}Pe.before.get=function(){return this.docs.length?this.docs[0]:this.doc},Re.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new Te(t.failed);return this},Re.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},Pe.docChanged.get=function(){return this.steps.length>0},Re.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(Re.prototype,Pe);var Oe=Object.create(null),Me=function(){};Me.prototype.apply=function(e){return Ne()},Me.prototype.getMap=function(){return Ce.empty},Me.prototype.invert=function(e){return Ne()},Me.prototype.map=function(e){return Ne()},Me.prototype.merge=function(e){return null},Me.prototype.toJSON=function(){return Ne()},Me.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=Oe[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},Me.jsonID=function(e,t){if(e in Oe)throw new RangeError("Duplicate use of step JSON ID "+e);return Oe[e]=t,t.prototype.jsonID=e,t};var Ie=function(e,t){this.doc=e,this.failed=t};Ie.ok=function(e){return new Ie(e,null)},Ie.fail=function(e){return new Ie(null,e)},Ie.fromReplace=function(e,t,n,r){try{return Ie.ok(e.replace(t,n,r))}catch(e){if(e instanceof b)return Ie.fail(e.message);throw e}};var ze=function(e){function t(t,n,r,o){e.call(this),this.from=t,this.to=n,this.slice=r,this.structure=!!o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){return this.structure&&Le(e,this.from,this.to)?Ie.fail("Structure replace would overwrite content"):Ie.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new Ce([this.from,this.to-this.from,this.slice.size])},t.prototype.invert=function(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted?null:new t(n.pos,Math.max(n.pos,r.pos),this.slice)},t.prototype.merge=function(e){if(!(e instanceof t)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var n=this.slice.size+e.slice.size==0?w.empty:new w(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}var r=this.slice.size+e.slice.size==0?w.empty:new w(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),r,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,w.fromJSON(e,n.slice),!!n.structure)},t}(Me);Me.jsonID("replace",ze);var De=function(e){function t(t,n,r,o,a,i,l){e.call(this),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=a,this.insert=i,this.structure=!!l}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){if(this.structure&&(Le(e,this.from,this.gapFrom)||Le(e,this.gapTo,this.to)))return Ie.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Ie.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?Ie.fromReplace(e,this.from,this.to,n):Ie.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new Ce([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},t.prototype.invert=function(e){var n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),a=e.map(this.gapTo,1);return n.deleted&&r.deleted||o<n.pos||a>r.pos?null:new t(n.pos,r.pos,o,a,this.slice,this.insert,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,w.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(Me);function Le(e,t,n){for(var r=e.resolve(t),o=n-t,a=r.depth;o>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,o--;if(o>0)for(var i=r.node(a).maybeChild(r.indexAfter(a));o>0;){if(!i||i.isLeaf)return!0;i=i.firstChild,o--}return!1}function Ae(e,t,n){for(var r=[],o=0;o<e.childCount;o++){var a=e.child(o);a.content.size&&(a=a.copy(Ae(a.content,t,a))),a.isInline&&(a=t(a,n,o)),r.push(a)}return p.fromArray(r)}Me.jsonID("replaceAround",De),Re.prototype.lift=function(e,t){for(var n=e.$from,r=e.$to,o=e.depth,a=n.before(o+1),i=r.after(o+1),l=a,u=i,s=p.empty,c=0,f=o,d=!1;f>t;f--)d||n.index(f)>0?(d=!0,s=p.from(n.node(f).copy(s)),c++):l--;for(var h=p.empty,m=0,v=o,y=!1;v>t;v--)y||r.after(v+1)<r.end(v)?(y=!0,h=p.from(r.node(v).copy(h)),m++):u++;return this.step(new De(l,u,a,i,new w(s.append(h),c,m),s.size-c,!0))},Re.prototype.wrap=function(e,t){for(var n=p.empty,r=t.length-1;r>=0;r--)n=p.from(t[r].type.create(t[r].attrs,n));var o=e.start,a=e.end;return this.step(new De(o,a,o,a,new w(n,0,0),t.length,!0))},Re.prototype.setBlockType=function(e,t,n,r){var o=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var a=this.steps.length;return this.doc.nodesBetween(e,t,(function(e,t){if(e.isTextblock&&!e.hasMarkup(n,r)&&function(e,t,n){var r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(o.doc,o.mapping.slice(a).map(t),n)){o.clearIncompatible(o.mapping.slice(a).map(t,1),n);var i=o.mapping.slice(a),l=i.map(t,1),u=i.map(t+e.nodeSize,1);return o.step(new De(l,u,l+1,u-1,new w(p.from(n.create(r,null,e.marks)),0,0),1,!0)),!1}})),this},Re.prototype.setNodeMarkup=function(e,t,n,r){var o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);var a=t.create(n,null,r||o.marks);if(o.isLeaf)return this.replaceWith(e,e+o.nodeSize,a);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new De(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new w(p.from(a),0,0),1,!0))},Re.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var r=this.doc.resolve(e),o=p.empty,a=p.empty,i=r.depth,l=r.depth-t,u=t-1;i>l;i--,u--){o=p.from(r.node(i).copy(o));var s=n&&n[u];a=p.from(s?s.type.create(s.attrs,a):r.node(i).copy(a))}return this.step(new ze(e,e,new w(o.append(a),t,t),!0))},Re.prototype.join=function(e,t){void 0===t&&(t=1);var n=new ze(e-t,e+t,w.empty,!0);return this.step(n)};var Fe=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),a=new w(Ae(n.content,(function(e,n){return e.isAtom&&n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e}),o),n.openStart,n.openEnd);return Ie.fromReplace(e,this.from,this.to,a)},t.prototype.invert=function(){return new je(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(Me);Me.jsonID("addMark",Fe);var je=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),r=new w(Ae(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return Ie.fromReplace(e,this.from,this.to,r)},t.prototype.invert=function(){return new Fe(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(Me);function Ue(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}Me.jsonID("removeMark",je),Re.prototype.addMark=function(e,t,n){var r=this,o=[],a=[],i=null,l=null;return this.doc.nodesBetween(e,t,(function(r,u,s){if(r.isInline){var c=r.marks;if(!n.isInSet(c)&&s.type.allowsMarkType(n.type)){for(var f=Math.max(u,e),d=Math.min(u+r.nodeSize,t),p=n.addToSet(c),h=0;h<c.length;h++)c[h].isInSet(p)||(i&&i.to==f&&i.mark.eq(c[h])?i.to=d:o.push(i=new je(f,d,c[h])));l&&l.to==f?l.to=d:a.push(l=new Fe(f,d,n))}}})),o.forEach((function(e){return r.step(e)})),a.forEach((function(e){return r.step(e)})),this},Re.prototype.removeMark=function(e,t,n){var r=this;void 0===n&&(n=null);var o=[],a=0;return this.doc.nodesBetween(e,t,(function(r,i){if(r.isInline){a++;var l=null;if(n instanceof le)for(var u,s=r.marks;u=n.isInSet(s);)(l||(l=[])).push(u),s=u.removeFromSet(s);else n?n.isInSet(r.marks)&&(l=[n]):l=r.marks;if(l&&l.length)for(var c=Math.min(i+r.nodeSize,t),f=0;f<l.length;f++){for(var d=l[f],p=void 0,h=0;h<o.length;h++){var m=o[h];m.step==a-1&&d.eq(o[h].style)&&(p=m)}p?(p.to=c,p.step=a):o.push({style:d,from:Math.max(i,e),to:c,step:a})}}})),o.forEach((function(e){return r.step(new je(e.from,e.to,e.style))})),this},Re.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var r=this.doc.nodeAt(e),o=[],a=e+1,i=0;i<r.childCount;i++){var l=r.child(i),u=a+l.nodeSize,s=n.matchType(l.type,l.attrs);if(s){n=s;for(var c=0;c<l.marks.length;c++)t.allowsMarkType(l.marks[c].type)||this.step(new je(a,u,l.marks[c]))}else o.push(new ze(a,u,w.empty));a=u}if(!n.validEnd){var f=n.fillBefore(p.empty,!0);this.replace(a,a,new w(f,0,0))}for(var d=o.length-1;d>=0;d--)this.step(o[d]);return this},Re.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=w.empty);var r=function(e,t,n,r){if(void 0===n&&(n=t),void 0===r&&(r=w.empty),t==n&&!r.size)return null;var o=e.resolve(t),a=e.resolve(n);return Ue(o,a,r)?new ze(t,n,r):new We(o,a,r).fit()}(this.doc,e,t,n);return r&&this.step(r),this},Re.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new w(p.from(n),0,0))},Re.prototype.delete=function(e,t){return this.replace(e,t,w.empty)},Re.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var We=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var r=0;r<=e.depth;r++){var o=e.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(r))})}this.placed=p.empty;for(var a=e.depth;a>0;a--)this.placed=p.from(e.node(a).copy(this.placed))},Be={depth:{configurable:!0}};function Ve(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(Ve(e.firstChild.content,t-1,n)))}function $e(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy($e(e.lastChild.content,t-1,n)))}function He(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function qe(e,t,n){if(t<=0)return e;var r=e.content;return t>1&&(r=r.replaceChild(0,qe(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(p.empty,!0)))),e.copy(r)}function Qe(e,t,n,r,o){var a=e.node(t),i=o?e.indexAfter(t):e.index(t);if(i==a.childCount&&!n.compatibleContent(a.type))return null;var l=r.fillBefore(a.content,!0,i);return l&&!function(e,t,n){for(var r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,a.content,i)?l:null}function Ye(e,t,n,r,o){if(t<n){var a=e.firstChild;e=e.replaceChild(0,a.copy(Ye(a.content,t+1,n,r,a)))}if(t>r){var i=o.contentMatchAt(0),l=i.fillBefore(e).append(e);e=l.append(i.matchFragment(l).fillBefore(p.empty,!0))}return e}function Je(e,t){for(var n=[],r=Math.min(e.depth,t.depth);r>=0;r--){var o=e.start(r);if(o<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;o==t.start(r)&&n.push(r)}return n}Be.depth.get=function(){return this.frontier.length-1},We.prototype.fit=function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(t<0?this.$to:r.doc.resolve(t));if(!o)return null;for(var a=this.placed,i=r.depth,l=o.depth;i&&l&&1==a.childCount;)a=a.firstChild.content,i--,l--;var u=new w(a,i,l);return t>-1?new De(r.pos,t,this.$to.pos,this.$to.end(),u,n):u.size||r.pos!=this.$to.pos?new ze(r.pos,o.pos,u):void 0},We.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,r=(t?(n=He(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,o=this.depth;o>=0;o--){var a=this.frontier[o],i=a.type,l=a.match,u=void 0,s=void 0;if(1==e&&(r?l.matchType(r.type)||(s=l.fillBefore(p.from(r),!1)):i.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:o,parent:n,inject:s};if(2==e&&r&&(u=l.findWrapping(r.type)))return{sliceDepth:t,frontierDepth:o,parent:n,wrap:u};if(n&&l.matchType(n.type))break}},We.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=He(t,n);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new w(t,n+1,Math.max(r,o.size+n>=t.size-r?n+1:0)),!0)},We.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=He(t,n);if(o.childCount<=1&&n>0){var a=t.size-n<=n+o.size;this.unplaced=new w(Ve(t,n-1,1),n-1,a?n-1:r)}else this.unplaced=new w(Ve(t,n,1),n,r)},We.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,r=e.parent,o=e.inject,a=e.wrap;this.depth>n;)this.closeFrontierNode();if(a)for(var i=0;i<a.length;i++)this.openFrontierNode(a[i]);var l=this.unplaced,u=r?r.content:l.content,s=l.openStart-t,c=0,f=[],d=this.frontier[n],h=d.match,m=d.type;if(o){for(var v=0;v<o.childCount;v++)f.push(o.child(v));h=h.matchFragment(o)}for(var y=u.size+t-(l.content.size-l.openEnd);c<u.childCount;){var g=u.child(c),b=h.matchType(g.type);if(!b)break;(++c>1||0==s||g.content.size)&&(h=b,f.push(qe(g.mark(m.allowedMarks(g.marks)),1==c?s:0,c==u.childCount?y:-1)))}var k=c==u.childCount;k||(y=-1),this.placed=$e(this.placed,n,p.from(f)),this.frontier[n].match=h,k&&y<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var S=0,x=u;S<y;S++){var E=x.lastChild;this.frontier.push({type:E.type,match:E.contentMatchAt(E.childCount)}),x=E.content}this.unplaced=k?0==t?w.empty:new w(Ve(l.content,t-1,1),t-1,y<0?l.openEnd:t-1):new w(Ve(l.content,t,c),l.openStart,l.openEnd)},We.prototype.mustMoveInline=function(){if(!this.$to.parent.isTextblock||this.$to.end()==this.$to.pos)return-1;var e,t=this.frontier[this.depth];if(!t.type.isTextblock||!Qe(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;for(var n=this.$to.depth,r=this.$to.after(n);n>1&&r==this.$to.end(--n);)++r;return r},We.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,o=n.type,a=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=Qe(e,t,o,r,a);if(i){for(var l=t-1;l>=0;l--){var u=this.frontier[l],s=u.match,c=Qe(e,l,u.type,s,!0);if(!c||c.childCount)continue e}return{depth:t,fit:i,move:a?e.doc.resolve(e.after(t+1)):e}}}},We.prototype.close=function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=$e(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var r=e.node(n),o=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,o)}return e},We.prototype.openFrontierNode=function(e,t,n){var r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=$e(this.placed,this.depth,p.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},We.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(p.empty,!0);e.childCount&&(this.placed=$e(this.placed,this.frontier.length,e))},Object.defineProperties(We.prototype,Be),Re.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var r=this.doc.resolve(e),o=this.doc.resolve(t);if(Ue(r,o,n))return this.step(new ze(e,t,n));var a=Je(r,this.doc.resolve(t));0==a[a.length-1]&&a.pop();var i=-(r.depth+1);a.unshift(i);for(var l=r.depth,u=r.pos-1;l>0;l--,u--){var s=r.node(l).type.spec;if(s.defining||s.isolating)break;a.indexOf(l)>-1?i=l:r.before(l)==u&&a.splice(1,0,-l)}for(var c=a.indexOf(i),f=[],d=n.openStart,p=n.content,h=0;;h++){var m=p.firstChild;if(f.push(m),h==n.openStart)break;p=m.content}d>0&&f[d-1].type.spec.defining&&r.node(c).type!=f[d-1].type?d-=1:d>=2&&f[d-1].isTextblock&&f[d-2].type.spec.defining&&r.node(c).type!=f[d-2].type&&(d-=2);for(var v=n.openStart;v>=0;v--){var y=(v+d+1)%(n.openStart+1),g=f[y];if(g)for(var b=0;b<a.length;b++){var k=a[(b+c)%a.length],S=!0;k<0&&(S=!1,k=-k);var x=r.node(k-1),E=r.index(k-1);if(x.canReplaceWith(E,E,g.type,g.marks))return this.replace(r.before(k),S?o.after(k):t,new w(Ye(n.content,0,n.openStart,y),y,n.openEnd))}}for(var C=this.steps.length,_=a.length-1;_>=0&&(this.replace(e,t,n),!(this.steps.length>C));_--){var T=a[_];_<0||(e=r.before(T),t=o.after(T))}return this},Re.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var r=function(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var o=r.depth-1;o>=0;o--){var a=r.index(o);if(r.node(o).canReplaceWith(a,a,n))return r.before(o+1);if(a>0)return null}if(r.parentOffset==r.parent.content.size)for(var i=r.depth-1;i>=0;i--){var l=r.indexAfter(i);if(r.node(i).canReplaceWith(l,l,n))return r.after(i+1);if(l<r.node(i).childCount)return null}}(this.doc,e,n.type);null!=r&&(e=t=r)}return this.replaceRange(e,t,new w(p.from(n),0,0))},Re.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),r=this.doc.resolve(t),o=Je(n,r),a=0;a<o.length;a++){var i=o[a],l=a==o.length-1;if(l&&0==i||n.node(i).type.contentMatch.validEnd)return this.delete(n.start(i),r.end(i));if(i>0&&(l||n.node(i-1).canReplace(n.index(i-1),r.indexAfter(i-1))))return this.delete(n.before(i),r.after(i))}for(var u=1;u<=n.depth&&u<=r.depth;u++)if(e-n.start(u)==n.depth-u&&t>n.end(u)&&r.end(u)-t!=r.depth-u)return this.delete(n.before(u),t);return this.delete(e,t)};var Ke=Object.create(null),Xe=function(e,t,n){this.ranges=n||[new Ze(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},Ge={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};Ge.anchor.get=function(){return this.$anchor.pos},Ge.head.get=function(){return this.$head.pos},Ge.from.get=function(){return this.$from.pos},Ge.to.get=function(){return this.$to.pos},Ge.$from.get=function(){return this.ranges[0].$from},Ge.$to.get=function(){return this.ranges[0].$to},Ge.empty.get=function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0},Xe.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},Xe.prototype.replace=function(e,t){void 0===t&&(t=w.empty);for(var n=t.content.lastChild,r=null,o=0;o<t.openEnd;o++)r=n,n=n.lastChild;for(var a=e.steps.length,i=this.ranges,l=0;l<i.length;l++){var u=i[l],s=u.$from,c=u.$to,f=e.mapping.slice(a);e.replaceRange(f.map(s.pos),f.map(c.pos),l?w.empty:t),0==l&<(e,a,(n?n.isInline:r&&r.isTextblock)?-1:1)}},Xe.prototype.replaceWith=function(e,t){for(var n=e.steps.length,r=this.ranges,o=0;o<r.length;o++){var a=r[o],i=a.$from,l=a.$to,u=e.mapping.slice(n),s=u.map(i.pos),c=u.map(l.pos);o?e.deleteRange(s,c):(e.replaceRangeWith(s,c,t),lt(e,n,t.isInline?-1:1))}},Xe.findFrom=function(e,t,n){var r=e.parent.inlineContent?new et(e):it(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(var o=e.depth-1;o>=0;o--){var a=t<0?it(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):it(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(a)return a}},Xe.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new ot(e.node(0))},Xe.atStart=function(e){return it(e,e,0,0,1)||new ot(e)},Xe.atEnd=function(e){return it(e,e,e.content.size,e.childCount,-1)||new ot(e)},Xe.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=Ke[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},Xe.jsonID=function(e,t){if(e in Ke)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ke[e]=t,t.prototype.jsonID=e,t},Xe.prototype.getBookmark=function(){return et.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(Xe.prototype,Ge),Xe.prototype.visible=!0;var Ze=function(e,t){this.$from=e,this.$to=t},et=function(e){function t(t,n){void 0===n&&(n=t),e.call(this,t,n)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={$cursor:{configurable:!0}};return n.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},t.prototype.map=function(n,r){var o=n.resolve(r.map(this.head));if(!o.parent.inlineContent)return e.near(o);var a=n.resolve(r.map(this.anchor));return new t(a.parent.inlineContent?a:o,o)},t.prototype.replace=function(t,n){if(void 0===n&&(n=w.empty),e.prototype.replace.call(this,t,n),n==w.empty){var r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head},t.prototype.getBookmark=function(){return new tt(this.anchor,this.head)},t.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,t,n){void 0===n&&(n=t);var r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))},t.between=function(n,r,o){var a=n.pos-r.pos;if(o&&!a||(o=a>=0?1:-1),!r.parent.inlineContent){var i=e.findFrom(r,o,!0)||e.findFrom(r,-o,!0);if(!i)return e.near(r,o);r=i.$head}return n.parent.inlineContent||(0==a||(n=(e.findFrom(n,-o,!0)||e.findFrom(n,o,!0)).$anchor).pos<r.pos!=a<0)&&(n=r),new t(n,r)},Object.defineProperties(t.prototype,n),t}(Xe);Xe.jsonID("text",et);var tt=function(e,t){this.anchor=e,this.head=t};tt.prototype.map=function(e){return new tt(e.map(this.anchor),e.map(this.head))},tt.prototype.resolve=function(e){return et.between(e.resolve(this.anchor),e.resolve(this.head))};var nt=function(e){function t(t){var n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);e.call(this,t,r),this.node=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,r){var o=r.mapResult(this.anchor),a=o.deleted,i=o.pos,l=n.resolve(i);return a?e.near(l):new t(l)},t.prototype.content=function(){return new w(p.from(this.node),0,0)},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor},t.prototype.toJSON=function(){return{type:"node",anchor:this.anchor}},t.prototype.getBookmark=function(){return new rt(this.anchor)},t.fromJSON=function(e,n){if("number"!=typeof n.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new t(e.resolve(n.anchor))},t.create=function(e,t){return new this(e.resolve(t))},t.isSelectable=function(e){return!e.isText&&!1!==e.type.spec.selectable},t}(Xe);nt.prototype.visible=!1,Xe.jsonID("node",nt);var rt=function(e){this.anchor=e};rt.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,r=t.pos;return n?new tt(r,r):new rt(r)},rt.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&nt.isSelectable(n)?new nt(t):Xe.near(t)};var ot=function(e){function t(t){e.call(this,t.resolve(0),t.resolve(t.content.size))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.replace=function(t,n){if(void 0===n&&(n=w.empty),n==w.empty){t.delete(0,t.doc.content.size);var r=e.atStart(t.doc);r.eq(t.selection)||t.setSelection(r)}else e.prototype.replace.call(this,t,n)},t.prototype.toJSON=function(){return{type:"all"}},t.fromJSON=function(e){return new t(e)},t.prototype.map=function(e){return new t(e)},t.prototype.eq=function(e){return e instanceof t},t.prototype.getBookmark=function(){return at},t}(Xe);Xe.jsonID("all",ot);var at={map:function(){return this},resolve:function(e){return new ot(e)}};function it(e,t,n,r,o,a){if(t.inlineContent)return et.create(e,n);for(var i=r-(o>0?0:1);o>0?i<t.childCount:i>=0;i+=o){var l=t.child(i);if(l.isAtom){if(!a&&nt.isSelectable(l))return nt.create(e,n-(o<0?l.nodeSize:0))}else{var u=it(e,l,n+o,o<0?l.childCount:0,o,a);if(u)return u}n+=l.nodeSize*o}}function lt(e,t,n){var r=e.steps.length-1;if(!(r<t)){var o,a=e.steps[r];if(a instanceof ze||a instanceof De)e.mapping.maps[r].forEach((function(e,t,n,r){null==o&&(o=r)})),e.setSelection(Xe.near(e.doc.resolve(o),n))}}var ut=function(e){function t(t){e.call(this,t.doc),this.time=Date.now(),this.curSelection=t.selection,this.curSelectionFor=0,this.storedMarks=t.storedMarks,this.updated=0,this.meta=Object.create(null)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={selection:{configurable:!0},selectionSet:{configurable:!0},storedMarksSet:{configurable:!0},isGeneric:{configurable:!0},scrolledIntoView:{configurable:!0}};return n.selection.get=function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection},t.prototype.setSelection=function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this},n.selectionSet.get=function(){return(1&this.updated)>0},t.prototype.setStoredMarks=function(e){return this.storedMarks=e,this.updated|=2,this},t.prototype.ensureMarks=function(e){return g.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this},t.prototype.addStoredMark=function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))},t.prototype.removeStoredMark=function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))},n.storedMarksSet.get=function(){return(2&this.updated)>0},t.prototype.addStep=function(t,n){e.prototype.addStep.call(this,t,n),this.updated=-3&this.updated,this.storedMarks=null},t.prototype.setTime=function(e){return this.time=e,this},t.prototype.replaceSelection=function(e){return this.selection.replace(this,e),this},t.prototype.replaceSelectionWith=function(e,t){var n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||g.none))),n.replaceWith(this,e),this},t.prototype.deleteSelection=function(){return this.selection.replace(this),this},t.prototype.insertText=function(e,t,n){void 0===n&&(n=t);var r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var o=this.storedMarks;if(!o){var a=this.doc.resolve(t);o=n==t?a.marks():a.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.setSelection(Xe.near(this.selection.$to)),this},t.prototype.setMeta=function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this},t.prototype.getMeta=function(e){return this.meta["string"==typeof e?e:e.key]},n.isGeneric.get=function(){for(var e in this.meta)return!1;return!0},t.prototype.scrollIntoView=function(){return this.updated|=4,this},n.scrolledIntoView.get=function(){return(4&this.updated)>0},Object.defineProperties(t.prototype,n),t}(Re);function st(e,t){return t&&e?e.bind(t):e}var ct=function(e,t,n){this.name=e,this.init=st(t.init,n),this.apply=st(t.apply,n)},ft=[new ct("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new ct("selection",{init:function(e,t){return e.selection||Xe.atStart(t.doc)},apply:function(e){return e.selection}}),new ct("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new ct("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],dt=function(e,t){var n=this;this.schema=e,this.fields=ft.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach((function(e){if(n.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");n.plugins.push(e),n.pluginsByKey[e.key]=e,e.spec.state&&n.fields.push(new ct(e.key,e.spec.state,e))}))},pt=function(e){this.config=e},ht={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};ht.schema.get=function(){return this.config.schema},ht.plugins.get=function(){return this.config.plugins},pt.prototype.apply=function(e){return this.applyTransaction(e).state},pt.prototype.filterTransaction=function(e,t){void 0===t&&(t=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=t){var r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0},pt.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),r=null;;){for(var o=!1,a=0;a<this.config.plugins.length;a++){var i=this.config.plugins[a];if(i.spec.appendTransaction){var l=r?r[a].n:0,u=r?r[a].state:this,s=l<t.length&&i.spec.appendTransaction.call(i,l?t.slice(l):t,u,n);if(s&&n.filterTransaction(s,a)){if(s.setMeta("appendedTransaction",e),!r){r=[];for(var c=0;c<this.config.plugins.length;c++)r.push(c<a?{state:n,n:t.length}:{state:this,n:0})}t.push(s),n=n.applyInner(s),o=!0}r&&(r[a]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}},pt.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new pt(this.config),n=this.config.fields,r=0;r<n.length;r++){var o=n[r];t[o.name]=o.apply(e,this[o.name],this,t)}for(var a=0;a<mt.length;a++)mt[a](this,e,t);return t},ht.tr.get=function(){return new ut(this)},pt.create=function(e){for(var t=new dt(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new pt(t),r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n},pt.prototype.reconfigure=function(e){for(var t=new dt(this.schema,e.plugins),n=t.fields,r=new pt(t),o=0;o<n.length;o++){var a=n[o].name;r[a]=this.hasOwnProperty(a)?this[a]:n[o].init(e,r)}return r},pt.prototype.toJSON=function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((function(e){return e.toJSON()}))),e&&"object"==typeof e)for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t},pt.fromJSON=function(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");var r=new dt(e.schema,e.plugins),o=new pt(r);return r.fields.forEach((function(r){if("doc"==r.name)o.doc=W.fromJSON(e.schema,t.doc);else if("selection"==r.name)o.selection=Xe.fromJSON(o.doc,t.selection);else if("storedMarks"==r.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var a in n){var i=n[a],l=i.spec.state;if(i.key==r.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(t,a))return void(o[r.name]=l.fromJSON.call(i,e,t[a],o))}o[r.name]=r.init(e,o)}})),o},pt.addApplyListener=function(e){mt.push(e)},pt.removeApplyListener=function(e){var t=mt.indexOf(e);t>-1&&mt.splice(t,1)},Object.defineProperties(pt.prototype,ht);var mt=[];function vt(e,t,n){for(var r in e){var o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=vt(o,t,{})),n[r]=o}return n}var yt=function(e){this.props={},e.props&&vt(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:bt("plugin")};yt.prototype.getState=function(e){return e[this.key]};var gt=Object.create(null);function bt(e){return e in gt?e+"$"+ ++gt[e]:(gt[e]=0,e+"$")}var wt=function(e){void 0===e&&(e="key"),this.key=bt(e)};function kt(e,t,n){const r=document.createRange();return r.setEnd(e,"number"==typeof n?n:(e.nodeValue||"").length),r.setStart(e,Math.max(t||0,0)),r}function St(e,t){const n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}function xt(e,t,n=!1){const{node:r,offset:o}=e.domAtPos(t);let a=null,i=null;if(3===r.nodeType){const e=r.nodeValue||"";n&&o<e.length?(i=St(kt(r,o-1,o),-1),a="right"):o<e.length&&(i=St(kt(r,o,o+1),-1),a="left")}else if(r.firstChild){if(o<r.childNodes.length){const e=r.childNodes[o];i=St(3===e.nodeType?kt(e):e,-1),a="left"}if((!i||i.top===i.bottom)&&o){const e=r.childNodes[o-1];i=St(3===e.nodeType?kt(e):e,1),a="right"}}else{i=r.getBoundingClientRect(),a="left"}if(i&&a){const e=i[a];return{top:i.top,bottom:i.bottom,left:e,right:e}}return{top:0,bottom:0,left:0,right:0}}wt.prototype.get=function(e){return e.config.pluginsByKey[this.key]},wt.prototype.getState=function(e){return e[this.key]};class Et{constructor({editor:e,element:t,keepInBounds:n,view:r}){this.keepInBounds=!0,this.isActive=!1,this.top=0,this.bottom=0,this.left=0,this.preventHide=!1,this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout((()=>this.update(this.editor.view)))},this.blurHandler=({event:e})=>{var t;this.preventHide?this.preventHide=!1:(null==e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||this.hide()},this.editor=e,this.element=t,this.keepInBounds=n,this.view=r,this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.render()}update(e,t){const{state:n,composing:r}=e,{doc:o,selection:a}=n,i=t&&t.doc.eq(o)&&t.selection.eq(a);if(r||i)return;const{from:l,to:u,empty:s}=a,c=this.element.offsetParent;if(s||!c)return void this.hide();const f=xt(e,l),d=xt(e,u,!0),p=c.getBoundingClientRect(),h=this.element.getBoundingClientRect(),m=(f.left+d.left)/2-p.left;this.isActive=!0,this.top=Math.round(d.bottom-p.top),this.bottom=Math.round(p.bottom-f.top),this.left=Math.round(this.keepInBounds?Math.min(p.width-h.width/2,Math.max(m,h.width/2)):m),this.render()}render(){Object.assign(this.element.style,{position:"absolute",zIndex:1,visibility:this.isActive?"visible":"hidden",opacity:this.isActive?1:0,left:`${this.left}px`,bottom:`${this.bottom}px`,transform:"translateX(-50%)"})}hide(){this.isActive=!1,this.render()}destroy(){this.element.removeEventListener("mousedown",this.mousedownHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Ct=new wt("menuBubble"),_t=e=>new yt({key:Ct,view:t=>new Et({view:t,...e})});t.Extension.create({name:"bubbleMenu",defaultOptions:{element:document.createElement("div"),keepInBounds:!0},addProseMirrorPlugins(){return[_t({editor:this.editor,element:this.options.element,keepInBounds:this.options.keepInBounds})]}});class Tt extends t.Editor{constructor(){super(...arguments),this.contentComponent=null}}class Rt{constructor(e,{props:t={},editor:n}){this.ref=null,this.id=Math.floor(4294967295*Math.random()).toString(),this.component=e,this.editor=n,this.props=t,this.element=document.createElement("div"),this.element.classList.add("react-renderer"),this.render()}render(){var e;const t=this.component,n=this.props;(function(e){return!("function"!=typeof e||!e.prototype||!e.prototype.isReactComponent)})(t)&&(n.ref=e=>{this.ref=e}),this.reactElement=c.createElement(t,Object.assign({},n)),(null===(e=this.editor)||void 0===e?void 0:e.contentComponent)&&this.editor.contentComponent.setState({renderers:this.editor.contentComponent.state.renderers.set(this.id,this)})}updateProps(e={}){this.props={...this.props,...e},this.render()}destroy(){var e;if(null===(e=this.editor)||void 0===e?void 0:e.contentComponent){const{renderers:e}=this.editor.contentComponent.state;e.delete(this.id),this.editor.contentComponent.setState({renderers:e})}}}const Pt=c.createContext({isEditable:void 0,onDragStart:void 0}),Nt=()=>c.useContext(Pt);class Ot extends t.NodeView{mount(){const e={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e)};if(!this.component.displayName){const e=e=>e.charAt(0).toUpperCase()+e.substring(1);this.component.displayName=e(this.extension.config.name)}const t=e=>{const[t,n]=c.useState(this.editor.isEditable),r=this.onDragStart.bind(this),o=()=>n(this.editor.isEditable),a=this.component;return c.useEffect((()=>(this.editor.on("viewUpdate",o),()=>{this.editor.off("viewUpdate",o)})),[]),c.createElement(Pt.Provider,{value:{onDragStart:r,isEditable:t}},c.createElement(a,Object.assign({},e)))};t.displayName="ReactNodeView",this.renderer=new Rt(t,{editor:this.editor,props:e})}get dom(){var e;if(!(null===(e=this.renderer.element.firstElementChild)||void 0===e?void 0:e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the ReactViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){if(this.node.isLeaf)return null;return this.dom.querySelector("[data-node-view-content]")||this.dom}update(e,t){return"function"==typeof this.options.update?this.options.update(e,t):e.type===this.node.type&&(e===this.node&&this.decorations===t||(this.node=e,this.decorations=t,this.renderer.updateProps({node:e,decorations:t})),!0)}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy()}}
|
|
15
|
-
/** @license React v0.20.2
|
|
16
|
-
* scheduler.production.min.js
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/
|
|
23
|
-
var Mt=n((function(e,t){var n,r,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,y=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},a=function(){},t.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"):g=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+g;try{v(!0,e)?k.postMessage(null):(m=!1,v=null)}catch(e){throw k.postMessage(null),e}}else m=!1},n=function(e){v=e,m||(m=!0,k.postMessage(null))},r=function(e,n){y=d((function(){e(t.unstable_now())}),n)},o=function(){p(y),y=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<C(o,t)))break e;e[r]=t,e[n]=o,n=r}}function x(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],l=a+1,u=e[l];if(void 0!==i&&0>C(i,n))void 0!==u&&0>C(u,i)?(e[r]=u,e[l]=n,r=l):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==u&&0>C(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var _=[],T=[],R=1,P=null,N=3,O=!1,M=!1,I=!1;function z(e){for(var t=x(T);null!==t;){if(null===t.callback)E(T);else{if(!(t.startTime<=e))break;E(T),t.sortIndex=t.expirationTime,S(_,t)}t=x(T)}}function D(e){if(I=!1,z(e),!M)if(null!==x(_))M=!0,n(L);else{var t=x(T);null!==t&&r(D,t.startTime-e)}}function L(e,n){M=!1,I&&(I=!1,o()),O=!0;var a=N;try{for(z(n),P=x(_);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=P.callback;if("function"==typeof i){P.callback=null,N=P.priorityLevel;var l=i(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?P.callback=l:P===x(_)&&E(_),z(n)}else E(_);P=x(_)}if(null!==P)var u=!0;else{var s=x(T);null!==s&&r(D,s.startTime-n),u=!1}return u}finally{P=null,N=a,O=!1}}var A=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||O||(M=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return x(_)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=A,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,a,i){var l=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?l+i:l:i=l,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:R++,callback:a,priorityLevel:e,startTime:i,expirationTime:u=i+u,sortIndex:-1},i>l?(e.sortIndex=i,S(T,e),null===x(_)&&e===x(T)&&(I?o():I=!0,r(D,i-l))):(e.sortIndex=u,S(_,e),M||O||(M=!0,n(L))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}})),It=n((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e,n,r,o;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();t.unstable_now=function(){return i.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,s=null,c=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(c,0),e}};e=function(t){null!==u?setTimeout(e,0,t):(u=t,setTimeout(c,0))},n=function(e,t){s=setTimeout(e,t)},r=function(){clearTimeout(s)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,d=window.clearTimeout;if("undefined"!=typeof console){var p=window.requestAnimationFrame,h=window.cancelAnimationFrame;"function"!=typeof p&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,y=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},o=function(){},t.unstable_forceFrameRate=function(e){e<0||e>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=e>0?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+g;try{v(!0,e)?k.postMessage(null):(m=!1,v=null)}catch(e){throw k.postMessage(null),e}}else m=!1},e=function(e){v=e,m||(m=!0,k.postMessage(null))},n=function(e,n){y=f((function(){e(t.unstable_now())}),n)},r=function(){d(y),y=-1}}function S(e,t){var n=e.length;e.push(t),function(e,t,n){var r=n;for(;;){var o=r-1>>>1,a=e[o];if(!(void 0!==a&&C(a,t)>0))return;e[o]=t,e[r]=a,r=o}}(e,t,n)}function x(e){var t=e[0];return void 0===t?null:t}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();return n!==t&&(e[0]=n,function(e,t,n){var r=n,o=e.length;for(;r<o;){var a=2*(r+1)-1,i=e[a],l=a+1,u=e[l];if(void 0!==i&&C(i,t)<0)void 0!==u&&C(u,i)<0?(e[r]=u,e[l]=t,r=l):(e[r]=i,e[a]=t,r=a);else{if(!(void 0!==u&&C(u,t)<0))return;e[r]=u,e[l]=t,r=l}}}(e,n,0)),t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var _=[],T=[],R=1,P=null,N=3,O=!1,M=!1,I=!1;function z(e){for(var t=x(T);null!==t;){if(null===t.callback)E(T);else{if(!(t.startTime<=e))return;E(T),t.sortIndex=t.expirationTime,S(_,t)}t=x(T)}}function D(t){if(I=!1,z(t),!M)if(null!==x(_))M=!0,e(L);else{var r=x(T);null!==r&&n(D,r.startTime-t)}}function L(e,o){M=!1,I&&(I=!1,r()),O=!0;var a=N;try{return function(e,r){var o=r;z(o),P=x(_);for(;null!==P&&(!(P.expirationTime>o)||e&&!t.unstable_shouldYield());){var a=P.callback;if("function"==typeof a){P.callback=null,N=P.priorityLevel;var i=a(P.expirationTime<=o);o=t.unstable_now(),"function"==typeof i?P.callback=i:P===x(_)&&E(_),z(o)}else E(_);P=x(_)}if(null!==P)return!0;var l=x(T);return null!==l&&n(D,l.startTime-o),!1}(e,o)}finally{P=null,N=a,O=!1}}var A=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||O||(M=!0,e(L))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return x(_)},t.unstable_next=function(e){var t;switch(N){case 1:case 2:case 3:t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=A,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(o,a,i){var l,u,s=t.unstable_now();if("object"==typeof i&&null!==i){var c=i.delay;l="number"==typeof c&&c>0?s+c:s}else l=s;switch(o){case 1:u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;case 3:default:u=5e3}var f=l+u,d={id:R++,callback:a,priorityLevel:o,startTime:l,expirationTime:f,sortIndex:-1};return l>s?(d.sortIndex=l,S(T,d),null===x(_)&&d===x(T)&&(I?r():I=!0,n(D,l-s))):(d.sortIndex=f,S(_,d),M||O||(M=!0,e(L))),d},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}}()})),zt=n((function(e){"production"===process.env.NODE_ENV?e.exports=Mt:e.exports=It}));
|
|
24
|
-
/** @license React v0.20.2
|
|
25
|
-
* scheduler.development.js
|
|
26
|
-
*
|
|
27
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
-
*
|
|
29
|
-
* This source code is licensed under the MIT license found in the
|
|
30
|
-
* LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/
|
|
32
|
-
/** @license React v17.0.2
|
|
33
|
-
* react-dom.production.min.js
|
|
34
|
-
*
|
|
35
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/
|
|
40
|
-
function Dt(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."}if(!c)throw Error(Dt(227));var Lt=new Set,At={};function Ft(e,t){jt(e,t),jt(e+"Capture",t)}function jt(e,t){for(At[e]=t,e=0;e<t.length;e++)Lt.add(t[e])}var Ut=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Wt=/^[: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]*$/,Bt=Object.prototype.hasOwnProperty,Vt={},$t={};function Ht(e,t,n,r,o,a,i){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=a,this.removeEmptyString=i}var qt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){qt[e]=new Ht(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];qt[t]=new Ht(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){qt[e]=new Ht(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){qt[e]=new Ht(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){qt[e]=new Ht(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){qt[e]=new Ht(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){qt[e]=new Ht(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){qt[e]=new Ht(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){qt[e]=new Ht(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Qt=/[\-:]([a-z])/g;function Yt(e){return e[1].toUpperCase()}function Jt(e,t,n,r){var o=qt.hasOwnProperty(t)?qt[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!!Bt.call($t,e)||!Bt.call(Vt,e)&&(Wt.test(e)?$t[e]=!0:(Vt[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(Qt,Yt);qt[t]=new Ht(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(Qt,Yt);qt[t]=new Ht(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(Qt,Yt);qt[t]=new Ht(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){qt[e]=new Ht(e,1,!1,e.toLowerCase(),null,!1,!1)})),qt.xlinkHref=new Ht("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){qt[e]=new Ht(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Kt=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xt=60103,Gt=60106,Zt=60107,en=60108,tn=60114,nn=60109,rn=60110,on=60112,an=60113,ln=60120,un=60115,sn=60116,cn=60121,fn=60128,dn=60129,pn=60130,hn=60131;if("function"==typeof Symbol&&Symbol.for){var mn=Symbol.for;Xt=mn("react.element"),Gt=mn("react.portal"),Zt=mn("react.fragment"),en=mn("react.strict_mode"),tn=mn("react.profiler"),nn=mn("react.provider"),rn=mn("react.context"),on=mn("react.forward_ref"),an=mn("react.suspense"),ln=mn("react.suspense_list"),un=mn("react.memo"),sn=mn("react.lazy"),cn=mn("react.block"),mn("react.scope"),fn=mn("react.opaque.id"),dn=mn("react.debug_trace_mode"),pn=mn("react.offscreen"),hn=mn("react.legacy_hidden")}var vn,yn="function"==typeof Symbol&&Symbol.iterator;function gn(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=yn&&e[yn]||e["@@iterator"])?e:null}function bn(e){if(void 0===vn)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);vn=t&&t[1]||""}return"\n"+vn+e}var wn=!1;function kn(e,t){if(!e||wn)return"";wn=!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(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l])return"\n"+o[i].replace(" at new "," at ")}while(1<=i&&0<=l);break}}}finally{wn=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bn(e):""}function Sn(e){switch(e.tag){case 5:return bn(e.type);case 16:return bn("Lazy");case 13:return bn("Suspense");case 19:return bn("SuspenseList");case 0:case 2:case 15:return e=kn(e.type,!1);case 11:return e=kn(e.type.render,!1);case 22:return e=kn(e.type._render,!1);case 1:return e=kn(e.type,!0);default:return""}}function xn(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 Zt:return"Fragment";case Gt:return"Portal";case tn:return"Profiler";case en:return"StrictMode";case an:return"Suspense";case ln:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case rn:return(e.displayName||"Context")+".Consumer";case nn:return(e._context.displayName||"Context")+".Provider";case on:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case un:return xn(e.type);case cn:return xn(e._render);case sn:t=e._payload,e=e._init;try{return xn(e(t))}catch(e){}}return null}function En(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Cn(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function _n(e){e._valueTracker||(e._valueTracker=function(e){var t=Cn(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.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 Tn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Cn(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Rn(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 Pn(e,t){var n=t.checked;return l({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Nn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=En(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 On(e,t){null!=(t=t.checked)&&Jt(e,"checked",t,!1)}function Mn(e,t){On(e,t);var n=En(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")?zn(e,t.type,n):t.hasOwnProperty("defaultValue")&&zn(e,t.type,En(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function In(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 zn(e,t,n){"number"===t&&Rn(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Dn(e,t){return e=l({children:void 0},t),(t=function(e){var t="";return c.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ln(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=""+En(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 An(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Dt(91));return l({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fn(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Dt(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(Dt(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:En(n)}}function jn(e,t){var n=En(t.value),r=En(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 Un(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Wn="http://www.w3.org/1999/xhtml",Bn="http://www.w3.org/2000/svg";function Vn(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 $n(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Vn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Hn,qn,Qn=(qn=function(e,t){if(e.namespaceURI!==Bn||"innerHTML"in e)e.innerHTML=t;else{for((Hn=Hn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return qn(e,t)}))}:qn);function Yn(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 Jn={animationIterationCount:!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},Kn=["Webkit","ms","Moz","O"];function Xn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Jn.hasOwnProperty(e)&&Jn[e]?(""+t).trim():t+"px"}function Gn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Xn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Jn).forEach((function(e){Kn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jn[t]=Jn[e]}))}));var Zn=l({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 er(e,t){if(t){if(Zn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Dt(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Dt(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Dt(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Dt(62))}}function tr(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}}function nr(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var rr=null,or=null,ar=null;function ir(e){if(e=Ni(e)){if("function"!=typeof rr)throw Error(Dt(280));var t=e.stateNode;t&&(t=Mi(t),rr(e.stateNode,e.type,t))}}function lr(e){or?ar?ar.push(e):ar=[e]:or=e}function ur(){if(or){var e=or,t=ar;if(ar=or=null,ir(e),t)for(e=0;e<t.length;e++)ir(t[e])}}function sr(e,t){return e(t)}function cr(e,t,n,r,o){return e(t,n,r,o)}function fr(){}var dr=sr,pr=!1,hr=!1;function mr(){null===or&&null===ar||(fr(),ur())}function vr(e,t){var n=e.stateNode;if(null===n)return null;var r=Mi(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(Dt(231,t,typeof n));return n}var yr=!1;if(Ut)try{var gr={};Object.defineProperty(gr,"passive",{get:function(){yr=!0}}),window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch(qn){yr=!1}function br(e,t,n,r,o,a,i,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var wr=!1,kr=null,Sr=!1,xr=null,Er={onError:function(e){wr=!0,kr=e}};function Cr(e,t,n,r,o,a,i,l,u){wr=!1,kr=null,br.apply(Er,arguments)}function _r(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Tr(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 Rr(e){if(_r(e)!==e)throw Error(Dt(188))}function Pr(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=_r(e)))throw Error(Dt(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Rr(o),e;if(a===r)return Rr(o),t;a=a.sibling}throw Error(Dt(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(Dt(189))}}if(n.alternate!==r)throw Error(Dt(190))}if(3!==n.tag)throw Error(Dt(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Nr(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var Or,Mr,Ir,zr,Dr=!1,Lr=[],Ar=null,Fr=null,jr=null,Ur=new Map,Wr=new Map,Br=[],Vr="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 $r(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function Hr(e,t){switch(e){case"focusin":case"focusout":Ar=null;break;case"dragenter":case"dragleave":Fr=null;break;case"mouseover":case"mouseout":jr=null;break;case"pointerover":case"pointerout":Ur.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wr.delete(t.pointerId)}}function qr(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e=$r(t,n,r,o,a),null!==t&&(null!==(t=Ni(t))&&Mr(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Qr(e){var t=Pi(e.target);if(null!==t){var n=_r(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Tr(n)))return e.blockedOn=t,void zr(e.lanePriority,(function(){zt.unstable_runWithPriority(e.priority,(function(){Ir(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Yr(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=No(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Ni(n))&&Mr(t),e.blockedOn=n,!1;t.shift()}return!0}function Jr(e,t,n){Yr(e)&&n.delete(t)}function Kr(){for(Dr=!1;0<Lr.length;){var e=Lr[0];if(null!==e.blockedOn){null!==(e=Ni(e.blockedOn))&&Or(e);break}for(var t=e.targetContainers;0<t.length;){var n=No(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&Lr.shift()}null!==Ar&&Yr(Ar)&&(Ar=null),null!==Fr&&Yr(Fr)&&(Fr=null),null!==jr&&Yr(jr)&&(jr=null),Ur.forEach(Jr),Wr.forEach(Jr)}function Xr(e,t){e.blockedOn===t&&(e.blockedOn=null,Dr||(Dr=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,Kr)))}function Gr(e){function t(t){return Xr(t,e)}if(0<Lr.length){Xr(Lr[0],e);for(var n=1;n<Lr.length;n++){var r=Lr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ar&&Xr(Ar,e),null!==Fr&&Xr(Fr,e),null!==jr&&Xr(jr,e),Ur.forEach(t),Wr.forEach(t),n=0;n<Br.length;n++)(r=Br[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Br.length&&null===(n=Br[0]).blockedOn;)Qr(n),null===n.blockedOn&&Br.shift()}function Zr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var eo={animationend:Zr("Animation","AnimationEnd"),animationiteration:Zr("Animation","AnimationIteration"),animationstart:Zr("Animation","AnimationStart"),transitionend:Zr("Transition","TransitionEnd")},to={},no={};function ro(e){if(to[e])return to[e];if(!eo[e])return e;var t,n=eo[e];for(t in n)if(n.hasOwnProperty(t)&&t in no)return to[e]=n[t];return e}Ut&&(no=document.createElement("div").style,"AnimationEvent"in window||(delete eo.animationend.animation,delete eo.animationiteration.animation,delete eo.animationstart.animation),"TransitionEvent"in window||delete eo.transitionend.transition);var oo=ro("animationend"),ao=ro("animationiteration"),io=ro("animationstart"),lo=ro("transitionend"),uo=new Map,so=new Map,co=["abort","abort",oo,"animationEnd",ao,"animationIteration",io,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",lo,"transitionEnd","waiting","waiting"];function fo(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),so.set(r,t),uo.set(r,o),Ft(o,[r])}}(0,zt.unstable_now)();var po=8;function ho(e){if(0!=(1&e))return po=15,1;if(0!=(2&e))return po=14,2;if(0!=(4&e))return po=13,4;var t=24&e;return 0!==t?(po=12,t):0!=(32&e)?(po=11,32):0!==(t=192&e)?(po=10,t):0!=(256&e)?(po=9,256):0!==(t=3584&e)?(po=8,t):0!=(4096&e)?(po=7,4096):0!==(t=4186112&e)?(po=6,t):0!==(t=62914560&e)?(po=5,t):67108864&e?(po=4,67108864):0!=(134217728&e)?(po=3,134217728):0!==(t=805306368&e)?(po=2,t):0!=(1073741824&e)?(po=1,1073741824):(po=8,e)}function mo(e,t){var n=e.pendingLanes;if(0===n)return po=0;var r=0,o=0,a=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(0!==a)r=a,o=po=15;else if(0!==(a=134217727&n)){var u=a&~i;0!==u?(r=ho(u),o=po):0!==(l&=a)&&(r=ho(l),o=po)}else 0!==(a=n&~i)?(r=ho(a),o=po):0!==l&&(r=ho(l),o=po);if(0===r)return 0;if(r=n&((0>(r=31-ko(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&i)){if(ho(t),o<=po)return t;po=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-ko(t)),r|=e[n],t&=~o;return r}function vo(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function yo(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=go(24&~t))?yo(10,t):e;case 10:return 0===(e=go(192&~t))?yo(8,t):e;case 8:return 0===(e=go(3584&~t))&&(0===(e=go(4186112&~t))&&(e=512)),e;case 2:return 0===(t=go(805306368&~t))&&(t=268435456),t}throw Error(Dt(358,e))}function go(e){return e&-e}function bo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wo(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-ko(t)]=n}var ko=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(So(e)/xo|0)|0},So=Math.log,xo=Math.LN2;var Eo=zt.unstable_UserBlockingPriority,Co=zt.unstable_runWithPriority,_o=!0;function To(e,t,n,r){pr||fr();var o=Po,a=pr;pr=!0;try{cr(o,e,t,n,r)}finally{(pr=a)||mr()}}function Ro(e,t,n,r){Co(Eo,Po.bind(null,e,t,n,r))}function Po(e,t,n,r){var o;if(_o)if((o=0==(4&t))&&0<Lr.length&&-1<Vr.indexOf(e))e=$r(null,e,t,n,r),Lr.push(e);else{var a=No(e,t,n,r);if(null===a)o&&Hr(e,r);else{if(o){if(-1<Vr.indexOf(e))return e=$r(a,e,t,n,r),void Lr.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return Ar=qr(Ar,e,t,n,r,o),!0;case"dragenter":return Fr=qr(Fr,e,t,n,r,o),!0;case"mouseover":return jr=qr(jr,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Ur.set(a,qr(Ur.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Wr.set(a,qr(Wr.get(a)||null,e,t,n,r,o)),!0}return!1}(a,e,t,n,r))return;Hr(e,r)}ui(e,t,r,null,n)}}}function No(e,t,n,r){var o=nr(r);if(null!==(o=Pi(o))){var a=_r(o);if(null===a)o=null;else{var i=a.tag;if(13===i){if(null!==(o=Tr(a)))return o;o=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return ui(e,t,r,o,n),null}var Oo=null,Mo=null,Io=null;function zo(){if(Io)return Io;var e,t,n=Mo,r=n.length,o="value"in Oo?Oo.value:Oo.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Io=o.slice(e,1<t?1-t:void 0)}function Do(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 Lo(){return!0}function Ao(){return!1}function Fo(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Lo:Ao,this.isPropagationStopped=Ao,this}return l(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=Lo)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Lo)},persist:function(){},isPersistent:Lo}),t}var jo,Uo,Wo,Bo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vo=Fo(Bo),$o=l({},Bo,{view:0,detail:0}),Ho=Fo($o),qo=l({},$o,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ra,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!==Wo&&(Wo&&"mousemove"===e.type?(jo=e.screenX-Wo.screenX,Uo=e.screenY-Wo.screenY):Uo=jo=0,Wo=e),jo)},movementY:function(e){return"movementY"in e?e.movementY:Uo}}),Qo=Fo(qo),Yo=Fo(l({},qo,{dataTransfer:0})),Jo=Fo(l({},$o,{relatedTarget:0})),Ko=Fo(l({},Bo,{animationName:0,elapsedTime:0,pseudoElement:0})),Xo=Fo(l({},Bo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),Go=Fo(l({},Bo,{data:0})),Zo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ea={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"},ta={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function na(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=ta[e])&&!!t[e]}function ra(){return na}var oa=Fo(l({},$o,{key:function(e){if(e.key){var t=Zo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Do(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ea[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ra,charCode:function(e){return"keypress"===e.type?Do(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Do(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),aa=Fo(l({},qo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ia=Fo(l({},$o,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ra})),la=Fo(l({},Bo,{propertyName:0,elapsedTime:0,pseudoElement:0})),ua=Fo(l({},qo,{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})),sa=[9,13,27,32],ca=Ut&&"CompositionEvent"in window,fa=null;Ut&&"documentMode"in document&&(fa=document.documentMode);var da=Ut&&"TextEvent"in window&&!fa,pa=Ut&&(!ca||fa&&8<fa&&11>=fa),ha=String.fromCharCode(32),ma=!1;function va(e,t){switch(e){case"keyup":return-1!==sa.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ya(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ga=!1;var ba={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 wa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ba[e.type]:"textarea"===t}function ka(e,t,n,r){lr(r),0<(t=ci(t,"onChange")).length&&(n=new Vo("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Sa=null,xa=null;function Ea(e){ni(e,0)}function Ca(e){if(Tn(Oi(e)))return e}function _a(e,t){if("change"===e)return t}var Ta=!1;if(Ut){var Ra;if(Ut){var Pa="oninput"in document;if(!Pa){var Na=document.createElement("div");Na.setAttribute("oninput","return;"),Pa="function"==typeof Na.oninput}Ra=Pa}else Ra=!1;Ta=Ra&&(!document.documentMode||9<document.documentMode)}function Oa(){Sa&&(Sa.detachEvent("onpropertychange",Ma),xa=Sa=null)}function Ma(e){if("value"===e.propertyName&&Ca(xa)){var t=[];if(ka(t,xa,e,nr(e)),e=Ea,pr)e(t);else{pr=!0;try{sr(e,t)}finally{pr=!1,mr()}}}}function Ia(e,t,n){"focusin"===e?(Oa(),xa=n,(Sa=t).attachEvent("onpropertychange",Ma)):"focusout"===e&&Oa()}function za(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ca(xa)}function Da(e,t){if("click"===e)return Ca(t)}function La(e,t){if("input"===e||"change"===e)return Ca(t)}var Aa="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Fa=Object.prototype.hasOwnProperty;function ja(e,t){if(Aa(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++)if(!Fa.call(t,n[r])||!Aa(e[n[r]],t[n[r]]))return!1;return!0}function Ua(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wa(e,t){var n,r=Ua(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=Ua(r)}}function Ba(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ba(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Va(){for(var e=window,t=Rn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Rn((e=t.contentWindow).document)}return t}function $a(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)}var Ha=Ut&&"documentMode"in document&&11>=document.documentMode,qa=null,Qa=null,Ya=null,Ja=!1;function Ka(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Ja||null==qa||qa!==Rn(r)||("selectionStart"in(r=qa)&&$a(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},Ya&&ja(Ya,r)||(Ya=r,0<(r=ci(Qa,"onSelect")).length&&(t=new Vo("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qa)))}fo("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),fo("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),fo(co,2);for(var Xa="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ga=0;Ga<Xa.length;Ga++)so.set(Xa[Ga],0);jt("onMouseEnter",["mouseout","mouseover"]),jt("onMouseLeave",["mouseout","mouseover"]),jt("onPointerEnter",["pointerout","pointerover"]),jt("onPointerLeave",["pointerout","pointerover"]),Ft("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ft("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ft("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ft("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ft("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ft("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Za="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ei=new Set("cancel close invalid load scroll toggle".split(" ").concat(Za));function ti(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,u){if(Cr.apply(this,arguments),wr){if(!wr)throw Error(Dt(198));var s=kr;wr=!1,kr=null,Sr||(Sr=!0,xr=s)}}(r,t,void 0,e),e.currentTarget=null}function ni(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 a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==a&&o.isPropagationStopped())break e;ti(o,l,s),a=u}else for(i=0;i<r.length;i++){if(u=(l=r[i]).instance,s=l.currentTarget,l=l.listener,u!==a&&o.isPropagationStopped())break e;ti(o,l,s),a=u}}}if(Sr)throw e=xr,Sr=!1,xr=null,e}function ri(e,t){var n=Ii(t),r=e+"__bubble";n.has(r)||(li(t,e,2,!1),n.add(r))}var oi="_reactListening"+Math.random().toString(36).slice(2);function ai(e){e[oi]||(e[oi]=!0,Lt.forEach((function(t){ei.has(t)||ii(t,!1,e,null),ii(t,!0,e,null)})))}function ii(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&ei.has(e)){if("scroll"!==e)return;o|=2,a=r}var i=Ii(a),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(o|=4),li(a,e,o,t),i.add(l))}function li(e,t,n,r){var o=so.get(t);switch(void 0===o?2:o){case 0:o=To;break;case 1:o=Ro;break;default:o=Po}n=o.bind(null,t,n,e),o=void 0,!yr||"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 ui(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var u=i.tag;if((3===u||4===u)&&((u=i.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=Pi(l)))return;if(5===(u=i.tag)||6===u){r=a=i;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(hr)return e(t,n);hr=!0;try{dr(e,t,n)}finally{hr=!1,mr()}}((function(){var r=a,o=nr(n),i=[];e:{var l=uo.get(e);if(void 0!==l){var u=Vo,s=e;switch(e){case"keypress":if(0===Do(n))break e;case"keydown":case"keyup":u=oa;break;case"focusin":s="focus",u=Jo;break;case"focusout":s="blur",u=Jo;break;case"beforeblur":case"afterblur":u=Jo;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":u=Qo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=Yo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=ia;break;case oo:case ao:case io:u=Ko;break;case lo:u=la;break;case"scroll":u=Ho;break;case"wheel":u=ua;break;case"copy":case"cut":case"paste":u=Xo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=aa}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=vr(h,d))&&c.push(si(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),i.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!Pi(s)&&!s[Ti])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?Pi(s):null)&&(s!==(f=_r(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=Qo,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=aa,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?l:Oi(u),p=null==s?l:Oi(s),(l=new c(m,h+"leave",u,n,o)).target=f,l.relatedTarget=p,m=null,Pi(o)===r&&((c=new c(d,h+"enter",s,n,o)).target=p,c.relatedTarget=f,m=c),f=m,u&&s)e:{for(d=s,h=0,p=c=u;p;p=fi(p))h++;for(p=0,m=d;m;m=fi(m))p++;for(;0<h-p;)c=fi(c),h--;for(;0<p-h;)d=fi(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=fi(c),d=fi(d)}c=null}else c=null;null!==u&&di(i,l,u,c,!1),null!==s&&null!==f&&di(i,f,s,c,!0)}if("select"===(u=(l=r?Oi(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=_a;else if(wa(l))if(Ta)v=La;else{v=za;var y=Ia}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=Da);switch(v&&(v=v(e,r))?ka(i,v,n,o):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&zn(l,"number",l.value)),y=r?Oi(r):window,e){case"focusin":(wa(y)||"true"===y.contentEditable)&&(qa=y,Qa=r,Ya=null);break;case"focusout":Ya=Qa=qa=null;break;case"mousedown":Ja=!0;break;case"contextmenu":case"mouseup":case"dragend":Ja=!1,Ka(i,n,o);break;case"selectionchange":if(Ha)break;case"keydown":case"keyup":Ka(i,n,o)}var g;if(ca)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else ga?va(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(pa&&"ko"!==n.locale&&(ga||"onCompositionStart"!==b?"onCompositionEnd"===b&&ga&&(g=zo()):(Mo="value"in(Oo=o)?Oo.value:Oo.textContent,ga=!0)),0<(y=ci(r,b)).length&&(b=new Go(b,e,null,n,o),i.push({event:b,listeners:y}),g?b.data=g:null!==(g=ya(n))&&(b.data=g))),(g=da?function(e,t){switch(e){case"compositionend":return ya(t);case"keypress":return 32!==t.which?null:(ma=!0,ha);case"textInput":return(e=t.data)===ha&&ma?null:e;default:return null}}(e,n):function(e,t){if(ga)return"compositionend"===e||!ca&&va(e,t)?(e=zo(),Io=Mo=Oo=null,ga=!1,e):null;switch(e){case"paste":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 pa&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=ci(r,"onBeforeInput")).length&&(o=new Go("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=g))}ni(i,t)}))}function si(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ci(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=vr(e,n))&&r.unshift(si(e,a,o)),null!=(a=vr(e,t))&&r.push(si(e,a,o))),e=e.return}return r}function fi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function di(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=vr(n,a))&&i.unshift(si(n,u,l)):o||null!=(u=vr(n,a))&&i.push(si(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function pi(){}var hi=null,mi=null;function vi(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yi(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var gi="function"==typeof setTimeout?setTimeout:void 0,bi="function"==typeof clearTimeout?clearTimeout:void 0;function wi(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function ki(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Si(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 xi=0;var Ei=Math.random().toString(36).slice(2),Ci="__reactFiber$"+Ei,_i="__reactProps$"+Ei,Ti="__reactContainer$"+Ei,Ri="__reactEvents$"+Ei;function Pi(e){var t=e[Ci];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ti]||n[Ci]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Si(e);null!==e;){if(n=e[Ci])return n;e=Si(e)}return t}n=(e=n).parentNode}return null}function Ni(e){return!(e=e[Ci]||e[Ti])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Oi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Dt(33))}function Mi(e){return e[_i]||null}function Ii(e){var t=e[Ri];return void 0===t&&(t=e[Ri]=new Set),t}var zi=[],Di=-1;function Li(e){return{current:e}}function Ai(e){0>Di||(e.current=zi[Di],zi[Di]=null,Di--)}function Fi(e,t){Di++,zi[Di]=e.current,e.current=t}var ji={},Ui=Li(ji),Wi=Li(!1),Bi=ji;function Vi(e,t){var n=e.type.contextTypes;if(!n)return ji;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function $i(e){return null!=(e=e.childContextTypes)}function Hi(){Ai(Wi),Ai(Ui)}function qi(e,t,n){if(Ui.current!==ji)throw Error(Dt(168));Fi(Ui,t),Fi(Wi,n)}function Qi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(Dt(108,xn(t)||"Unknown",o));return l({},n,r)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ji,Bi=Ui.current,Fi(Ui,e),Fi(Wi,Wi.current),!0}function Ji(e,t,n){var r=e.stateNode;if(!r)throw Error(Dt(169));n?(e=Qi(e,t,Bi),r.__reactInternalMemoizedMergedChildContext=e,Ai(Wi),Ai(Ui),Fi(Ui,e)):Ai(Wi),Fi(Wi,n)}var Ki=null,Xi=null,Gi=zt.unstable_runWithPriority,Zi=zt.unstable_scheduleCallback,el=zt.unstable_cancelCallback,tl=zt.unstable_shouldYield,nl=zt.unstable_requestPaint,rl=zt.unstable_now,ol=zt.unstable_getCurrentPriorityLevel,al=zt.unstable_ImmediatePriority,il=zt.unstable_UserBlockingPriority,ll=zt.unstable_NormalPriority,ul=zt.unstable_LowPriority,sl=zt.unstable_IdlePriority,cl={},fl=void 0!==nl?nl:function(){},dl=null,pl=null,hl=!1,ml=rl(),vl=1e4>ml?rl:function(){return rl()-ml};function yl(){switch(ol()){case al:return 99;case il:return 98;case ll:return 97;case ul:return 96;case sl:return 95;default:throw Error(Dt(332))}}function gl(e){switch(e){case 99:return al;case 98:return il;case 97:return ll;case 96:return ul;case 95:return sl;default:throw Error(Dt(332))}}function bl(e,t){return e=gl(e),Gi(e,t)}function wl(e,t,n){return e=gl(e),Zi(e,t,n)}function kl(){if(null!==pl){var e=pl;pl=null,el(e)}Sl()}function Sl(){if(!hl&&null!==dl){hl=!0;var e=0;try{var t=dl;bl(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),dl=null}catch(t){throw null!==dl&&(dl=dl.slice(e+1)),Zi(al,kl),t}finally{hl=!1}}}var xl=Kt.ReactCurrentBatchConfig;function El(e,t){if(e&&e.defaultProps){for(var n in t=l({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Cl=Li(null),_l=null,Tl=null,Rl=null;function Pl(){Rl=Tl=_l=null}function Nl(e){var t=Cl.current;Ai(Cl),e.type._context._currentValue=t}function Ol(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function Ml(e,t){_l=e,Rl=Tl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ss=!0),e.firstContext=null)}function Il(e,t){if(Rl!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Rl=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Tl){if(null===_l)throw Error(Dt(308));Tl=t,_l.dependencies={lanes:0,firstContext:t,responders:null}}else Tl=Tl.next=t;return e._currentValue}var zl=!1;function Dl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Ll(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 Al(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fl(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function jl(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ul(e,t,n,r){var o=e.updateQueue;zl=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var s=u,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==i&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==a){for(d=o.baseState,i=0,f=c=s=null;;){u=a.lane;var p=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(u=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,u);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(u="function"==typeof(h=m.payload)?h.call(p,d,u):h))break e;d=l({},d,u);break e;case 2:zl=!0}}null!==a.callback&&(e.flags|=32,null===(u=o.effects)?o.effects=[a]:u.push(a))}else p={eventTime:p,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,i|=u;if(null===(a=a.next)){if(null===(u=o.shared.pending))break;a=u.next,u.next=null,o.lastBaseUpdate=u,o.shared.pending=null}}null===f&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=f,pc|=i,e.lanes=i,e.memoizedState=d}}function Wl(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(Dt(191,o));o.call(r)}}}var Bl=(new c.Component).refs;function Vl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:l({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var $l={isMounted:function(e){return!!(e=e._reactInternals)&&_r(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fc(),o=jc(e),a=Al(r,o);a.payload=t,null!=n&&(a.callback=n),Fl(e,a),Uc(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fc(),o=jc(e),a=Al(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),Fl(e,a),Uc(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fc(),r=jc(e),o=Al(n,r);o.tag=2,null!=t&&(o.callback=t),Fl(e,o),Uc(e,r,n)}};function Hl(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!ja(n,r)||!ja(o,a))}function ql(e,t,n){var r=!1,o=ji,a=t.contextType;return"object"==typeof a&&null!==a?a=Il(a):(o=$i(t)?Bi:Ui.current,a=(r=null!=(r=t.contextTypes))?Vi(e,o):ji),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=$l,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ql(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&&$l.enqueueReplaceState(t,t.state,null)}function Yl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Bl,Dl(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Il(a):(a=$i(t)?Bi:Ui.current,o.context=Vi(e,a)),Ul(e,n,o,r),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Vl(e,t,a,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&&$l.enqueueReplaceState(o,o.state,null),Ul(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var Jl=Array.isArray;function Kl(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(Dt(309));var r=n.stateNode}if(!r)throw Error(Dt(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===Bl&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(Dt(284));if(!n._owner)throw Error(Dt(290,e))}return e}function Xl(e,t){if("textarea"!==e.type)throw Error(Dt(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Gl(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}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=bf(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function i(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=xf(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Kl(e,t,n),r.return=e,r):((r=wf(n.type,n.key,n.props,null,e.mode,r)).ref=Kl(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ef(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,a){return null===t||7!==t.tag?((t=kf(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=xf(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Xt:return(n=wf(t.type,t.key,t.props,null,e.mode,n)).ref=Kl(e,null,t),n.return=e,n;case Gt:return(t=Ef(t,e.mode,n)).return=e,t}if(Jl(t)||gn(t))return(t=kf(t,e.mode,n,null)).return=e,t;Xl(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Xt:return n.key===o?n.type===Zt?c(e,t,n.props.children,r,o):u(e,t,n,r):null;case Gt:return n.key===o?s(e,t,n,r):null}if(Jl(n)||gn(n))return null!==o?null:c(e,t,n,r,null);Xl(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Xt:return e=e.get(null===r.key?n:r.key)||null,r.type===Zt?c(t,e,r.props.children,o,r.key):u(t,e,r,o);case Gt:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Jl(r)||gn(r))return c(t,e=e.get(n)||null,r,o,null);Xl(t,r)}return null}function h(o,i,l,u){for(var s=null,c=null,h=i,m=i=0,v=null;null!==h&&m<l.length;m++){h.index>m?(v=h,h=null):v=h.sibling;var y=d(o,h,l[m],u);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(o,h),i=a(y,i,m),null===c?s=y:c.sibling=y,c=y,h=v}if(m===l.length)return n(o,h),s;if(null===h){for(;m<l.length;m++)null!==(h=f(o,l[m],u))&&(i=a(h,i,m),null===c?s=h:c.sibling=h,c=h);return s}for(h=r(o,h);m<l.length;m++)null!==(v=p(h,o,m,l[m],u))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=a(v,i,m),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(o,e)})),s}function m(o,i,l,u){var s=gn(l);if("function"!=typeof s)throw Error(Dt(150));if(null==(l=s.call(l)))throw Error(Dt(151));for(var c=s=null,h=i,m=i=0,v=null,y=l.next();null!==h&&!y.done;m++,y=l.next()){h.index>m?(v=h,h=null):v=h.sibling;var g=d(o,h,y.value,u);if(null===g){null===h&&(h=v);break}e&&h&&null===g.alternate&&t(o,h),i=a(g,i,m),null===c?s=g:c.sibling=g,c=g,h=v}if(y.done)return n(o,h),s;if(null===h){for(;!y.done;m++,y=l.next())null!==(y=f(o,y.value,u))&&(i=a(y,i,m),null===c?s=y:c.sibling=y,c=y);return s}for(h=r(o,h);!y.done;m++,y=l.next())null!==(y=p(h,o,m,y.value,u))&&(e&&null!==y.alternate&&h.delete(null===y.key?m:y.key),i=a(y,i,m),null===c?s=y:c.sibling=y,c=y);return e&&h.forEach((function(e){return t(o,e)})),s}return function(e,r,a,l){var u="object"==typeof a&&null!==a&&a.type===Zt&&null===a.key;u&&(a=a.props.children);var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case Xt:e:{for(s=a.key,u=r;null!==u;){if(u.key===s){switch(u.tag){case 7:if(a.type===Zt){n(e,u.sibling),(r=o(u,a.props.children)).return=e,e=r;break e}break;default:if(u.elementType===a.type){n(e,u.sibling),(r=o(u,a.props)).ref=Kl(e,u,a),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}a.type===Zt?((r=kf(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=wf(a.type,a.key,a.props,null,e.mode,l)).ref=Kl(e,r,a),l.return=e,e=l)}return i(e);case Gt:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ef(a,e.mode,l)).return=e,e=r}return i(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a)).return=e,e=r):(n(e,r),(r=xf(a,e.mode,l)).return=e,e=r),i(e);if(Jl(a))return h(e,r,a,l);if(gn(a))return m(e,r,a,l);if(s&&Xl(e,a),void 0===a&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(Dt(152,xn(e.type)||"Component"))}return n(e,r)}}var Zl=Gl(!0),eu=Gl(!1),tu={},nu=Li(tu),ru=Li(tu),ou=Li(tu);function au(e){if(e===tu)throw Error(Dt(174));return e}function iu(e,t){switch(Fi(ou,t),Fi(ru,e),Fi(nu,tu),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$n(null,"");break;default:t=$n(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ai(nu),Fi(nu,t)}function lu(){Ai(nu),Ai(ru),Ai(ou)}function uu(e){au(ou.current);var t=au(nu.current),n=$n(t,e.type);t!==n&&(Fi(ru,e),Fi(nu,n))}function su(e){ru.current===e&&(Ai(nu),Ai(ru))}var cu=Li(0);function fu(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!=(64&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 du=null,pu=null,hu=!1;function mu(e,t){var n=yf(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function vu(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,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function yu(e){if(hu){var t=pu;if(t){var n=t;if(!vu(e,t)){if(!(t=ki(n.nextSibling))||!vu(e,t))return e.flags=-1025&e.flags|2,hu=!1,void(du=e);mu(du,n)}du=e,pu=ki(t.firstChild)}else e.flags=-1025&e.flags|2,hu=!1,du=e}}function gu(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;du=e}function bu(e){if(e!==du)return!1;if(!hu)return gu(e),hu=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yi(t,e.memoizedProps))for(t=pu;t;)mu(e,t),t=ki(t.nextSibling);if(gu(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Dt(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){pu=ki(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}pu=null}}else pu=du?ki(e.stateNode.nextSibling):null;return!0}function wu(){pu=du=null,hu=!1}var ku=[];function Su(){for(var e=0;e<ku.length;e++)ku[e]._workInProgressVersionPrimary=null;ku.length=0}var xu=Kt.ReactCurrentDispatcher,Eu=Kt.ReactCurrentBatchConfig,Cu=0,_u=null,Tu=null,Ru=null,Pu=!1,Nu=!1;function Ou(){throw Error(Dt(321))}function Mu(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Aa(e[n],t[n]))return!1;return!0}function Iu(e,t,n,r,o,a){if(Cu=a,_u=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xu.current=null===e||null===e.memoizedState?as:is,e=n(r,o),Nu){a=0;do{if(Nu=!1,!(25>a))throw Error(Dt(301));a+=1,Ru=Tu=null,t.updateQueue=null,xu.current=ls,e=n(r,o)}while(Nu)}if(xu.current=os,t=null!==Tu&&null!==Tu.next,Cu=0,Ru=Tu=_u=null,Pu=!1,t)throw Error(Dt(300));return e}function zu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ru?_u.memoizedState=Ru=e:Ru=Ru.next=e,Ru}function Du(){if(null===Tu){var e=_u.alternate;e=null!==e?e.memoizedState:null}else e=Tu.next;var t=null===Ru?_u.memoizedState:Ru.next;if(null!==t)Ru=t,Tu=e;else{if(null===e)throw Error(Dt(310));e={memoizedState:(Tu=e).memoizedState,baseState:Tu.baseState,baseQueue:Tu.baseQueue,queue:Tu.queue,next:null},null===Ru?_u.memoizedState=Ru=e:Ru=Ru.next=e}return Ru}function Lu(e,t){return"function"==typeof t?t(e):t}function Au(e){var t=Du(),n=t.queue;if(null===n)throw Error(Dt(311));n.lastRenderedReducer=e;var r=Tu,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=i=a=null,u=o;do{var s=u.lane;if((Cu&s)===s)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var c={lane:s,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(i=l=c,a=r):l=l.next=c,_u.lanes|=s,pc|=s}u=u.next}while(null!==u&&u!==o);null===l?a=r:l.next=i,Aa(r,t.memoizedState)||(ss=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Fu(e){var t=Du(),n=t.queue;if(null===n)throw Error(Dt(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Aa(a,t.memoizedState)||(ss=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ju(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Cu&e)===e)&&(t._workInProgressVersionPrimary=r,ku.push(t))),e)return n(t._source);throw ku.push(t),Error(Dt(350))}function Uu(e,t,n,r){var o=ac;if(null===o)throw Error(Dt(349));var a=t._getVersion,i=a(t._source),l=xu.current,u=l.useState((function(){return ju(o,t,n)})),s=u[1],c=u[0];u=Ru;var f=e.memoizedState,d=f.refs,p=d.getSnapshot,h=f.source;f=f.subscribe;var m=_u;return e.memoizedState={refs:d,source:t,subscribe:r},l.useEffect((function(){d.getSnapshot=n,d.setSnapshot=s;var e=a(t._source);if(!Aa(i,e)){e=n(t._source),Aa(c,e)||(s(e),e=jc(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,l=e;0<l;){var u=31-ko(l),f=1<<u;r[u]|=e,l&=~f}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=d.getSnapshot,n=d.setSnapshot;try{n(e(t._source));var r=jc(m);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),Aa(p,n)&&Aa(h,t)&&Aa(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:Lu,lastRenderedState:c}).dispatch=s=rs.bind(null,_u,e),u.queue=e,u.baseQueue=null,c=ju(o,t,n),u.memoizedState=u.baseState=c),c}function Wu(e,t,n){return Uu(Du(),e,t,n)}function Bu(e){var t=zu();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Lu,lastRenderedState:e}).dispatch=rs.bind(null,_u,e),[t.memoizedState,e]}function Vu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=_u.updateQueue)?(t={lastEffect:null},_u.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 $u(e){return e={current:e},zu().memoizedState=e}function Hu(){return Du().memoizedState}function qu(e,t,n,r){var o=zu();_u.flags|=e,o.memoizedState=Vu(1|t,n,void 0,void 0===r?null:r)}function Qu(e,t,n,r){var o=Du();r=void 0===r?null:r;var a=void 0;if(null!==Tu){var i=Tu.memoizedState;if(a=i.destroy,null!==r&&Mu(r,i.deps))return void Vu(t,n,a,r)}_u.flags|=e,o.memoizedState=Vu(1|t,n,a,r)}function Yu(e,t){return qu(516,4,e,t)}function Ju(e,t){return Qu(516,4,e,t)}function Ku(e,t){return Qu(4,2,e,t)}function Xu(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 Gu(e,t,n){return n=null!=n?n.concat([e]):null,Qu(4,2,Xu.bind(null,t,e),n)}function Zu(){}function es(e,t){var n=Du();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Mu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ts(e,t){var n=Du();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Mu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ns(e,t){var n=yl();bl(98>n?98:n,(function(){e(!0)})),bl(97<n?97:n,(function(){var n=Eu.transition;Eu.transition=1;try{e(!1),t()}finally{Eu.transition=n}}))}function rs(e,t,n){var r=Fc(),o=jc(e),a={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===_u||null!==i&&i===_u)Nu=Pu=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=i(l,n);if(a.eagerReducer=i,a.eagerState=u,Aa(u,l))return}catch(e){}Uc(e,o,r)}}var os={readContext:Il,useCallback:Ou,useContext:Ou,useEffect:Ou,useImperativeHandle:Ou,useLayoutEffect:Ou,useMemo:Ou,useReducer:Ou,useRef:Ou,useState:Ou,useDebugValue:Ou,useDeferredValue:Ou,useTransition:Ou,useMutableSource:Ou,useOpaqueIdentifier:Ou,unstable_isNewReconciler:!1},as={readContext:Il,useCallback:function(e,t){return zu().memoizedState=[e,void 0===t?null:t],e},useContext:Il,useEffect:Yu,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,qu(4,2,Xu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qu(4,2,e,t)},useMemo:function(e,t){var n=zu();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zu();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=rs.bind(null,_u,e),[r.memoizedState,e]},useRef:$u,useState:Bu,useDebugValue:Zu,useDeferredValue:function(e){var t=Bu(e),n=t[0],r=t[1];return Yu((function(){var t=Eu.transition;Eu.transition=1;try{r(e)}finally{Eu.transition=t}}),[e]),n},useTransition:function(){var e=Bu(!1),t=e[0];return $u(e=ns.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=zu();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Uu(r,e,t,n)},useOpaqueIdentifier:function(){if(hu){var e=!1,t=function(e){return{$$typeof:fn,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(xi++).toString(36))),Error(Dt(355))})),n=Bu(t)[1];return 0==(2&_u.mode)&&(_u.flags|=516,Vu(5,(function(){n("r:"+(xi++).toString(36))}),void 0,null)),t}return Bu(t="r:"+(xi++).toString(36)),t},unstable_isNewReconciler:!1},is={readContext:Il,useCallback:es,useContext:Il,useEffect:Ju,useImperativeHandle:Gu,useLayoutEffect:Ku,useMemo:ts,useReducer:Au,useRef:Hu,useState:function(){return Au(Lu)},useDebugValue:Zu,useDeferredValue:function(e){var t=Au(Lu),n=t[0],r=t[1];return Ju((function(){var t=Eu.transition;Eu.transition=1;try{r(e)}finally{Eu.transition=t}}),[e]),n},useTransition:function(){var e=Au(Lu)[0];return[Hu().current,e]},useMutableSource:Wu,useOpaqueIdentifier:function(){return Au(Lu)[0]},unstable_isNewReconciler:!1},ls={readContext:Il,useCallback:es,useContext:Il,useEffect:Ju,useImperativeHandle:Gu,useLayoutEffect:Ku,useMemo:ts,useReducer:Fu,useRef:Hu,useState:function(){return Fu(Lu)},useDebugValue:Zu,useDeferredValue:function(e){var t=Fu(Lu),n=t[0],r=t[1];return Ju((function(){var t=Eu.transition;Eu.transition=1;try{r(e)}finally{Eu.transition=t}}),[e]),n},useTransition:function(){var e=Fu(Lu)[0];return[Hu().current,e]},useMutableSource:Wu,useOpaqueIdentifier:function(){return Fu(Lu)[0]},unstable_isNewReconciler:!1},us=Kt.ReactCurrentOwner,ss=!1;function cs(e,t,n,r){t.child=null===e?eu(t,null,n,r):Zl(t,e.child,n,r)}function fs(e,t,n,r,o){n=n.render;var a=t.ref;return Ml(t,o),r=Iu(e,t,n,r,a,o),null===e||ss?(t.flags|=1,cs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Os(e,t,o))}function ds(e,t,n,r,o,a){if(null===e){var i=n.type;return"function"!=typeof i||gf(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=wf(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ps(e,t,i,r,o,a))}return i=e.child,0==(o&a)&&(o=i.memoizedProps,(n=null!==(n=n.compare)?n:ja)(o,r)&&e.ref===t.ref)?Os(e,t,a):(t.flags|=1,(e=bf(i,r)).ref=t.ref,e.return=t,t.child=e)}function ps(e,t,n,r,o,a){if(null!==e&&ja(e.memoizedProps,r)&&e.ref===t.ref){if(ss=!1,0==(a&o))return t.lanes=e.lanes,Os(e,t,a);0!=(16384&e.flags)&&(ss=!0)}return vs(e,t,n,r,a)}function hs(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},Yc(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Yc(t,e),null;t.memoizedState={baseLanes:0},Yc(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Yc(t,r);return cs(e,t,o,n),t.child}function ms(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function vs(e,t,n,r,o){var a=$i(n)?Bi:Ui.current;return a=Vi(t,a),Ml(t,o),n=Iu(e,t,n,r,a,o),null===e||ss?(t.flags|=1,cs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Os(e,t,o))}function ys(e,t,n,r,o){if($i(n)){var a=!0;Yi(t)}else a=!1;if(Ml(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ql(t,n,r),Yl(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,s=n.contextType;"object"==typeof s&&null!==s?s=Il(s):s=Vi(t,s=$i(n)?Bi:Ui.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||u!==s)&&Ql(t,i,r,s),zl=!1;var d=t.memoizedState;i.state=d,Ul(t,r,i,o),u=t.memoizedState,l!==r||d!==u||Wi.current||zl?("function"==typeof c&&(Vl(t,n,c,r),u=t.memoizedState),(l=zl||Hl(t,n,l,r,d,u,s))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4)):("function"==typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,Ll(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:El(t.type,l),i.props=s,f=t.pendingProps,d=i.context,"object"==typeof(u=n.contextType)&&null!==u?u=Il(u):u=Vi(t,u=$i(n)?Bi:Ui.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==f||d!==u)&&Ql(t,i,r,u),zl=!1,d=t.memoizedState,i.state=d,Ul(t,r,i,o);var h=t.memoizedState;l!==f||d!==h||Wi.current||zl?("function"==typeof p&&(Vl(t,n,p,r),h=t.memoizedState),(s=zl||Hl(t,n,s,r,d,h,u))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=u,r=s):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return gs(e,t,n,r,a,o)}function gs(e,t,n,r,o,a){ms(e,t);var i=0!=(64&t.flags);if(!r&&!i)return o&&Ji(t,n,!1),Os(e,t,a);r=t.stateNode,us.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Zl(t,e.child,null,a),t.child=Zl(t,null,l,a)):cs(e,t,l,a),t.memoizedState=r.state,o&&Ji(t,n,!0),t.child}function bs(e){var t=e.stateNode;t.pendingContext?qi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&qi(0,t.context,!1),iu(e,t.containerInfo)}var ws,ks,Ss,xs={dehydrated:null,retryLane:0};function Es(e,t,n){var r,o=t.pendingProps,a=cu.current,i=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),Fi(cu,1&a),null===e?(void 0!==o.fallback&&yu(t),e=o.children,a=o.fallback,i?(e=Cs(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=xs,e):"number"==typeof o.unstable_expectedLoadTime?(e=Cs(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=xs,t.lanes=33554432,e):((n=Sf({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,i?(o=Ts(e,t,o.children,o.fallback,n),i=t.child,a=e.child.memoizedState,i.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=xs,o):(n=_s(e,t,o.children,n),t.memoizedState=null,n))}function Cs(e,t,n,r){var o=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Sf(t,o,0,null),n=kf(n,o,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function _s(e,t,n,r){var o=e.child;return e=o.sibling,n=bf(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ts(e,t,n,r,o){var a=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return 0==(2&a)&&t.child!==i?((n=t.child).childLanes=0,n.pendingProps=l,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=bf(i,l),null!==e?r=bf(e,r):(r=kf(r,a,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Rs(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Ol(e.return,t)}function Ps(e,t,n,r,o,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o,i.lastEffect=a)}function Ns(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(cs(e,t,r.children,n),0!=(2&(r=cu.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Rs(e,n);else if(19===e.tag)Rs(e,n);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(Fi(cu,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===fu(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ps(t,!1,o,n,a,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===fu(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ps(t,!0,n,null,a,t.lastEffect);break;case"together":Ps(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Os(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),pc|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(Dt(153));if(null!==t.child){for(n=bf(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=bf(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function Ms(e,t){if(!hu)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 Is(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return $i(t.type)&&Hi(),null;case 3:return lu(),Ai(Wi),Ai(Ui),Su(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(bu(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:su(t);var o=au(ou.current);if(n=t.type,null!==e&&null!=t.stateNode)ks(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(Dt(166));return null}if(e=au(nu.current),bu(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Ci]=t,r[_i]=a,n){case"dialog":ri("cancel",r),ri("close",r);break;case"iframe":case"object":case"embed":ri("load",r);break;case"video":case"audio":for(e=0;e<Za.length;e++)ri(Za[e],r);break;case"source":ri("error",r);break;case"img":case"image":case"link":ri("error",r),ri("load",r);break;case"details":ri("toggle",r);break;case"input":Nn(r,a),ri("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ri("invalid",r);break;case"textarea":Fn(r,a),ri("invalid",r)}for(var i in er(n,a),e=null,a)a.hasOwnProperty(i)&&(o=a[i],"children"===i?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):At.hasOwnProperty(i)&&null!=o&&"onScroll"===i&&ri("scroll",r));switch(n){case"input":_n(r),In(r,a,!0);break;case"textarea":_n(r),Un(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=pi)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(i=9===o.nodeType?o:o.ownerDocument,e===Wn&&(e=Vn(n)),e===Wn?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ci]=t,e[_i]=r,ws(e,t),t.stateNode=e,i=tr(n,r),n){case"dialog":ri("cancel",e),ri("close",e),o=r;break;case"iframe":case"object":case"embed":ri("load",e),o=r;break;case"video":case"audio":for(o=0;o<Za.length;o++)ri(Za[o],e);o=r;break;case"source":ri("error",e),o=r;break;case"img":case"image":case"link":ri("error",e),ri("load",e),o=r;break;case"details":ri("toggle",e),o=r;break;case"input":Nn(e,r),o=Pn(e,r),ri("invalid",e);break;case"option":o=Dn(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=l({},r,{value:void 0}),ri("invalid",e);break;case"textarea":Fn(e,r),o=An(e,r),ri("invalid",e);break;default:o=r}er(n,o);var u=o;for(a in u)if(u.hasOwnProperty(a)){var s=u[a];"style"===a?Gn(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&Qn(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&Yn(e,s):"number"==typeof s&&Yn(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(At.hasOwnProperty(a)?null!=s&&"onScroll"===a&&ri("scroll",e):null!=s&&Jt(e,a,s,i))}switch(n){case"input":_n(e),In(e,r,!1);break;case"textarea":_n(e),Un(e);break;case"option":null!=r.value&&e.setAttribute("value",""+En(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?Ln(e,!!r.multiple,a,!1):null!=r.defaultValue&&Ln(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=pi)}vi(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ss(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Dt(166));n=au(ou.current),au(nu.current),bu(t)?(r=t.stateNode,n=t.memoizedProps,r[Ci]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Ci]=t,t.stateNode=r)}return null;case 13:return Ai(cu),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&bu(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&cu.current)?0===cc&&(cc=3):(0!==cc&&3!==cc||(cc=4),null===ac||0==(134217727&pc)&&0==(134217727&hc)||$c(ac,lc))),(r||n)&&(t.flags|=4),null);case 4:return lu(),null===e&&ai(t.stateNode.containerInfo),null;case 10:return Nl(t),null;case 17:return $i(t.type)&&Hi(),null;case 19:if(Ai(cu),null===(r=t.memoizedState))return null;if(a=0!=(64&t.flags),null===(i=r.rendering))if(a)Ms(r,!1);else{if(0!==cc||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(i=fu(e))){for(t.flags|=64,Ms(r,!1),null!==(a=i.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Fi(cu,1&cu.current|2),t.child}e=e.sibling}null!==r.tail&&vl()>gc&&(t.flags|=64,a=!0,Ms(r,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=fu(i))){if(t.flags|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ms(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!hu)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*vl()-r.renderingStartTime>gc&&1073741824!==n&&(t.flags|=64,a=!0,Ms(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=r.last)?n.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=vl(),n.sibling=null,t=cu.current,Fi(cu,a?1&t|2:1&t),n):null;case 23:case 24:return Jc(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(Dt(156,t.tag))}function zs(e){switch(e.tag){case 1:$i(e.type)&&Hi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(lu(),Ai(Wi),Ai(Ui),Su(),0!=(64&(t=e.flags)))throw Error(Dt(285));return e.flags=-4097&t|64,e;case 5:return su(e),null;case 13:return Ai(cu),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return Ai(cu),null;case 4:return lu(),null;case 10:return Nl(e),null;case 23:case 24:return Jc(),null;default:return null}}function Ds(e,t){try{var n="",r=t;do{n+=Sn(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}}function Ls(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}ws=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}},ks=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,au(nu.current);var a,i=null;switch(n){case"input":o=Pn(e,o),r=Pn(e,r),i=[];break;case"option":o=Dn(e,o),r=Dn(e,r),i=[];break;case"select":o=l({},o,{value:void 0}),r=l({},r,{value:void 0}),i=[];break;case"textarea":o=An(e,o),r=An(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=pi)}for(c in er(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(At.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(a in u)!u.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&u[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(At.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&ri("scroll",e),i||u===s||(i=[])):"object"==typeof s&&null!==s&&s.$$typeof===fn?s.toString():(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Ss=function(e,t,n,r){n!==r&&(t.flags|=4)};var As="function"==typeof WeakMap?WeakMap:Map;function Fs(e,t,n){(n=Al(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sc||(Sc=!0,xc=r),Ls(0,t)},n}function js(e,t,n){(n=Al(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return Ls(0,t),r(o)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ec?Ec=new Set([this]):Ec.add(this),Ls(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var Us="function"==typeof WeakSet?WeakSet:Set;function Ws(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){pf(e,t)}else t.current=null}function Bs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:El(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&wi(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(Dt(163))}function Vs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(cf(n,e),sf(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:El(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Wl(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Wl(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&vi(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Gr(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(Dt(163))}function $s(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=Xn("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Hs(e,t){if(Xi&&"function"==typeof Xi.onCommitFiberUnmount)try{Xi.onCommitFiberUnmount(Ki,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))cf(t,n);else{r=t;try{o()}catch(e){pf(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Ws(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){pf(t,e)}break;case 5:Ws(t);break;case 4:Xs(e,t)}}function qs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Qs(e){return 5===e.tag||3===e.tag||4===e.tag}function Ys(e){e:{for(var t=e.return;null!==t;){if(Qs(t))break e;t=t.return}throw Error(Dt(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(Dt(161))}16&n.flags&&(Yn(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Qs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Js(e,n,t):Ks(e,n,t)}function Js(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,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=pi));else if(4!==r&&null!==(e=e.child))for(Js(e,t,n),e=e.sibling;null!==e;)Js(e,t,n),e=e.sibling}function Ks(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ks(e,t,n),e=e.sibling;null!==e;)Ks(e,t,n),e=e.sibling}function Xs(e,t){for(var n,r,o=t,a=!1;;){if(!a){a=o.return;e:for(;;){if(null===a)throw Error(Dt(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===o.tag||6===o.tag){e:for(var i=e,l=o,u=l;;)if(Hs(i,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(i=n,l=o.stateNode,8===i.nodeType?i.parentNode.removeChild(l):i.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(Hs(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function Gs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[_i]=r,"input"===e&&"radio"===r.type&&null!=r.name&&On(n,r),tr(e,o),t=tr(e,r),o=0;o<a.length;o+=2){var i=a[o],l=a[o+1];"style"===i?Gn(n,l):"dangerouslySetInnerHTML"===i?Qn(n,l):"children"===i?Yn(n,l):Jt(n,i,l,t)}switch(e){case"input":Mn(n,r);break;case"textarea":jn(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?Ln(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?Ln(n,!!r.multiple,r.defaultValue,!0):Ln(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(Dt(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Gr(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(yc=vl(),$s(t.child,!0)),void Zs(t);case 19:return void Zs(t);case 17:return;case 23:case 24:return void $s(t,null!==t.memoizedState)}throw Error(Dt(163))}function Zs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Us),t.forEach((function(t){var r=mf.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ec(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var tc=Math.ceil,nc=Kt.ReactCurrentDispatcher,rc=Kt.ReactCurrentOwner,oc=0,ac=null,ic=null,lc=0,uc=0,sc=Li(0),cc=0,fc=null,dc=0,pc=0,hc=0,mc=0,vc=null,yc=0,gc=1/0;function bc(){gc=vl()+500}var wc,kc=null,Sc=!1,xc=null,Ec=null,Cc=!1,_c=null,Tc=90,Rc=[],Pc=[],Nc=null,Oc=0,Mc=null,Ic=-1,zc=0,Dc=0,Lc=null,Ac=!1;function Fc(){return 0!=(48&oc)?vl():-1!==Ic?Ic:Ic=vl()}function jc(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===yl()?1:2;if(0===zc&&(zc=dc),0!==xl.transition){0!==Dc&&(Dc=null!==vc?vc.pendingLanes:0),e=zc;var t=4186112&~Dc;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=yl(),0!=(4&oc)&&98===e?e=yo(12,zc):e=yo(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),zc),e}function Uc(e,t,n){if(50<Oc)throw Oc=0,Mc=null,Error(Dt(185));if(null===(e=Wc(e,t)))return null;wo(e,t,n),e===ac&&(hc|=t,4===cc&&$c(e,lc));var r=yl();1===t?0!=(8&oc)&&0==(48&oc)?Hc(e):(Bc(e,n),0===oc&&(bc(),kl())):(0==(4&oc)||98!==r&&99!==r||(null===Nc?Nc=new Set([e]):Nc.add(e)),Bc(e,n)),vc=e}function Wc(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}function Bc(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-ko(i),u=1<<l,s=a[l];if(-1===s){if(0==(u&r)||0!=(u&o)){s=t,ho(u);var c=po;a[l]=10<=c?s+250:6<=c?s+5e3:-1}}else s<=t&&(e.expiredLanes|=u);i&=~u}if(r=mo(e,e===ac?lc:0),t=po,0===r)null!==n&&(n!==cl&&el(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==cl&&el(n)}15===t?(n=Hc.bind(null,e),null===dl?(dl=[n],pl=Zi(al,Sl)):dl.push(n),n=cl):14===t?n=wl(99,Hc.bind(null,e)):n=wl(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(Dt(358,e))}}(t),Vc.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function Vc(e){if(Ic=-1,Dc=zc=0,0!=(48&oc))throw Error(Dt(327));var t=e.callbackNode;if(uf()&&e.callbackNode!==t)return null;var n=mo(e,e===ac?lc:0);if(0===n)return null;var r=n,o=oc;oc|=16;var a=Gc();for(ac===e&&lc===r||(bc(),Kc(e,r));;)try{tf();break}catch(t){Xc(e,t)}if(Pl(),nc.current=a,oc=o,null!==ic?r=0:(ac=null,lc=0,r=cc),0!=(dc&hc))Kc(e,0);else if(0!==r){if(2===r&&(oc|=64,e.hydrate&&(e.hydrate=!1,wi(e.containerInfo)),0!==(n=vo(e))&&(r=Zc(e,n))),1===r)throw t=fc,Kc(e,0),$c(e,n),Bc(e,vl()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(Dt(345));case 2:of(e);break;case 3:if($c(e,n),(62914560&n)===n&&10<(r=yc+500-vl())){if(0!==mo(e,0))break;if(((o=e.suspendedLanes)&n)!==n){Fc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=gi(of.bind(null,e),r);break}of(e);break;case 4:if($c(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var i=31-ko(n);a=1<<i,(i=r[i])>o&&(o=i),n&=~a}if(n=o,10<(n=(120>(n=vl()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*tc(n/1960))-n)){e.timeoutHandle=gi(of.bind(null,e),n);break}of(e);break;case 5:of(e);break;default:throw Error(Dt(329))}}return Bc(e,vl()),e.callbackNode===t?Vc.bind(null,e):null}function $c(e,t){for(t&=~mc,t&=~hc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ko(t),r=1<<n;e[n]=-1,t&=~r}}function Hc(e){if(0!=(48&oc))throw Error(Dt(327));if(uf(),e===ac&&0!=(e.expiredLanes&lc)){var t=lc,n=Zc(e,t);0!=(dc&hc)&&(n=Zc(e,t=mo(e,t)))}else n=Zc(e,t=mo(e,0));if(0!==e.tag&&2===n&&(oc|=64,e.hydrate&&(e.hydrate=!1,wi(e.containerInfo)),0!==(t=vo(e))&&(n=Zc(e,t))),1===n)throw n=fc,Kc(e,0),$c(e,t),Bc(e,vl()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,of(e),Bc(e,vl()),null}function qc(e,t){var n=oc;oc|=1;try{return e(t)}finally{0===(oc=n)&&(bc(),kl())}}function Qc(e,t){var n=oc;oc&=-2,oc|=8;try{return e(t)}finally{0===(oc=n)&&(bc(),kl())}}function Yc(e,t){Fi(sc,uc),uc|=t,dc|=t}function Jc(){uc=sc.current,Ai(sc)}function Kc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,bi(n)),null!==ic)for(n=ic.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&Hi();break;case 3:lu(),Ai(Wi),Ai(Ui),Su();break;case 5:su(r);break;case 4:lu();break;case 13:case 19:Ai(cu);break;case 10:Nl(r);break;case 23:case 24:Jc()}n=n.return}ac=e,ic=bf(e.current,null),lc=uc=dc=t,cc=0,fc=null,mc=hc=pc=0}function Xc(e,t){for(;;){var n=ic;try{if(Pl(),xu.current=os,Pu){for(var r=_u.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Pu=!1}if(Cu=0,Ru=Tu=_u=null,Nu=!1,rc.current=null,null===n||null===n.return){cc=1,fc=t,ic=null;break}e:{var a=e,i=n.return,l=n,u=t;if(t=lc,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&cu.current),d=i;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var y=new Set;y.add(s),d.updateQueue=y}else v.add(s);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var g=Al(-1,1);g.tag=2,Fl(l,g)}l.lanes|=1;break e}u=void 0,l=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new As,u=new Set,b.set(s,u)):void 0===(u=b.get(s))&&(u=new Set,b.set(s,u)),!u.has(l)){u.add(l);var w=hf.bind(null,a,s,l);s.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((xn(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==cc&&(cc=2),u=Ds(u,l),d=i;do{switch(d.tag){case 3:a=u,d.flags|=4096,t&=-t,d.lanes|=t,jl(d,Fs(0,a,t));break e;case 1:a=u;var k=d.type,S=d.stateNode;if(0==(64&d.flags)&&("function"==typeof k.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===Ec||!Ec.has(S)))){d.flags|=4096,t&=-t,d.lanes|=t,jl(d,js(d,a,t));break e}}d=d.return}while(null!==d)}rf(n)}catch(e){t=e,ic===n&&null!==n&&(ic=n=n.return);continue}break}}function Gc(){var e=nc.current;return nc.current=os,null===e?os:e}function Zc(e,t){var n=oc;oc|=16;var r=Gc();for(ac===e&&lc===t||Kc(e,t);;)try{ef();break}catch(t){Xc(e,t)}if(Pl(),oc=n,nc.current=r,null!==ic)throw Error(Dt(261));return ac=null,lc=0,cc}function ef(){for(;null!==ic;)nf(ic)}function tf(){for(;null!==ic&&!tl();)nf(ic)}function nf(e){var t=wc(e.alternate,e,uc);e.memoizedProps=e.pendingProps,null===t?rf(e):ic=t,rc.current=null}function rf(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Is(n,t,uc)))return void(ic=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&uc)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=zs(t)))return n.flags&=2047,void(ic=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(ic=t);ic=t=e}while(null!==t);0===cc&&(cc=5)}function of(e){var t=yl();return bl(99,af.bind(null,e,t)),null}function af(e,t){do{uf()}while(null!==_c);if(0!=(48&oc))throw Error(Dt(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Dt(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,a=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var i=e.eventTimes,l=e.expirationTimes;0<a;){var u=31-ko(a),s=1<<u;o[u]=0,i[u]=-1,l[u]=-1,a&=~s}if(null!==Nc&&0==(24&r)&&Nc.has(e)&&Nc.delete(e),e===ac&&(ic=ac=null,lc=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=oc,oc|=32,rc.current=null,hi=_o,$a(i=Va())){if("selectionStart"in i)l={start:i.selectionStart,end:i.selectionEnd};else e:if(l=(l=i.ownerDocument)&&l.defaultView||window,(s=l.getSelection&&l.getSelection())&&0!==s.rangeCount){l=s.anchorNode,a=s.anchorOffset,u=s.focusNode,s=s.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var c=0,f=-1,d=-1,p=0,h=0,m=i,v=null;t:for(;;){for(var y;m!==l||0!==a&&3!==m.nodeType||(f=c+a),m!==u||0!==s&&3!==m.nodeType||(d=c+s),3===m.nodeType&&(c+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===i)break t;if(v===l&&++p===a&&(f=c),v===u&&++h===s&&(d=c),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}l=-1===f||-1===d?null:{start:f,end:d}}else l=null;l=l||{start:0,end:0}}else l=null;mi={focusedElem:i,selectionRange:l},_o=!1,Lc=null,Ac=!1,kc=r;do{try{lf()}catch(e){if(null===kc)throw Error(Dt(330));pf(kc,e),kc=kc.nextEffect}}while(null!==kc);Lc=null,kc=r;do{try{for(i=e;null!==kc;){var g=kc.flags;if(16&g&&Yn(kc.stateNode,""),128&g){var b=kc.alternate;if(null!==b){var w=b.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&g){case 2:Ys(kc),kc.flags&=-3;break;case 6:Ys(kc),kc.flags&=-3,Gs(kc.alternate,kc);break;case 1024:kc.flags&=-1025;break;case 1028:kc.flags&=-1025,Gs(kc.alternate,kc);break;case 4:Gs(kc.alternate,kc);break;case 8:Xs(i,l=kc);var k=l.alternate;qs(l),null!==k&&qs(k)}kc=kc.nextEffect}}catch(e){if(null===kc)throw Error(Dt(330));pf(kc,e),kc=kc.nextEffect}}while(null!==kc);if(w=mi,b=Va(),g=w.focusedElem,i=w.selectionRange,b!==g&&g&&g.ownerDocument&&Ba(g.ownerDocument.documentElement,g)){null!==i&&$a(g)&&(b=i.start,void 0===(w=i.end)&&(w=b),"selectionStart"in g?(g.selectionStart=b,g.selectionEnd=Math.min(w,g.value.length)):(w=(b=g.ownerDocument||document)&&b.defaultView||window).getSelection&&(w=w.getSelection(),l=g.textContent.length,k=Math.min(i.start,l),i=void 0===i.end?k:Math.min(i.end,l),!w.extend&&k>i&&(l=i,i=k,k=l),l=Wa(g,k),a=Wa(g,i),l&&a&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==a.node||w.focusOffset!==a.offset)&&((b=b.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),k>i?(w.addRange(b),w.extend(a.node,a.offset)):(b.setEnd(a.node,a.offset),w.addRange(b))))),b=[];for(w=g;w=w.parentNode;)1===w.nodeType&&b.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof g.focus&&g.focus(),g=0;g<b.length;g++)(w=b[g]).element.scrollLeft=w.left,w.element.scrollTop=w.top}_o=!!hi,mi=hi=null,e.current=n,kc=r;do{try{for(g=e;null!==kc;){var S=kc.flags;if(36&S&&Vs(g,kc.alternate,kc),128&S){b=void 0;var x=kc.ref;if(null!==x){var E=kc.stateNode;switch(kc.tag){case 5:b=E;break;default:b=E}"function"==typeof x?x(b):x.current=b}}kc=kc.nextEffect}}catch(e){if(null===kc)throw Error(Dt(330));pf(kc,e),kc=kc.nextEffect}}while(null!==kc);kc=null,fl(),oc=o}else e.current=n;if(Cc)Cc=!1,_c=e,Tc=t;else for(kc=r;null!==kc;)t=kc.nextEffect,kc.nextEffect=null,8&kc.flags&&((S=kc).sibling=null,S.stateNode=null),kc=t;if(0===(r=e.pendingLanes)&&(Ec=null),1===r?e===Mc?Oc++:(Oc=0,Mc=e):Oc=0,n=n.stateNode,Xi&&"function"==typeof Xi.onCommitFiberRoot)try{Xi.onCommitFiberRoot(Ki,n,void 0,64==(64&n.current.flags))}catch(e){}if(Bc(e,vl()),Sc)throw Sc=!1,e=xc,xc=null,e;return 0!=(8&oc)||kl(),null}function lf(){for(;null!==kc;){var e=kc.alternate;Ac||null===Lc||(0!=(8&kc.flags)?Nr(kc,Lc)&&(Ac=!0):13===kc.tag&&ec(e,kc)&&Nr(kc,Lc)&&(Ac=!0));var t=kc.flags;0!=(256&t)&&Bs(e,kc),0==(512&t)||Cc||(Cc=!0,wl(97,(function(){return uf(),null}))),kc=kc.nextEffect}}function uf(){if(90!==Tc){var e=97<Tc?97:Tc;return Tc=90,bl(e,ff)}return!1}function sf(e,t){Rc.push(t,e),Cc||(Cc=!0,wl(97,(function(){return uf(),null})))}function cf(e,t){Pc.push(t,e),Cc||(Cc=!0,wl(97,(function(){return uf(),null})))}function ff(){if(null===_c)return!1;var e=_c;if(_c=null,0!=(48&oc))throw Error(Dt(331));var t=oc;oc|=32;var n=Pc;Pc=[];for(var r=0;r<n.length;r+=2){var o=n[r],a=n[r+1],i=o.destroy;if(o.destroy=void 0,"function"==typeof i)try{i()}catch(e){if(null===a)throw Error(Dt(330));pf(a,e)}}for(n=Rc,Rc=[],r=0;r<n.length;r+=2){o=n[r],a=n[r+1];try{var l=o.create;o.destroy=l()}catch(e){if(null===a)throw Error(Dt(330));pf(a,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return oc=t,kl(),!0}function df(e,t,n){Fl(e,t=Fs(0,t=Ds(n,t),1)),t=Fc(),null!==(e=Wc(e,1))&&(wo(e,1,t),Bc(e,t))}function pf(e,t){if(3===e.tag)df(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){df(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ec||!Ec.has(r))){var o=js(n,e=Ds(t,e),1);if(Fl(n,o),o=Fc(),null!==(n=Wc(n,1)))wo(n,1,o),Bc(n,o);else if("function"==typeof r.componentDidCatch&&(null===Ec||!Ec.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function hf(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Fc(),e.pingedLanes|=e.suspendedLanes&n,ac===e&&(lc&n)===n&&(4===cc||3===cc&&(62914560&lc)===lc&&500>vl()-yc?Kc(e,0):mc|=n),Bc(e,t)}function mf(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===yl()?1:2:(0===zc&&(zc=dc),0===(t=go(62914560&~zc))&&(t=4194304))),n=Fc(),null!==(e=Wc(e,t))&&(wo(e,t,n),Bc(e,n))}function vf(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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function yf(e,t,n,r){return new vf(e,t,n,r)}function gf(e){return!(!(e=e.prototype)||!e.isReactComponent)}function bf(e,t){var n=e.alternate;return null===n?((n=yf(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.nextEffect=null,n.firstEffect=null,n.lastEffect=null),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 wf(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)gf(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Zt:return kf(n.children,o,a,t);case dn:i=8,o|=16;break;case en:i=8,o|=1;break;case tn:return(e=yf(12,n,t,8|o)).elementType=tn,e.type=tn,e.lanes=a,e;case an:return(e=yf(13,n,t,o)).type=an,e.elementType=an,e.lanes=a,e;case ln:return(e=yf(19,n,t,o)).elementType=ln,e.lanes=a,e;case pn:return Sf(n,o,a,t);case hn:return(e=yf(24,n,t,o)).elementType=hn,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case nn:i=10;break e;case rn:i=9;break e;case on:i=11;break e;case un:i=14;break e;case sn:i=16,r=null;break e;case cn:i=22;break e}throw Error(Dt(130,null==e?e:typeof e,""))}return(t=yf(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function kf(e,t,n,r){return(e=yf(7,e,r,t)).lanes=n,e}function Sf(e,t,n,r){return(e=yf(23,e,r,t)).elementType=pn,e.lanes=n,e}function xf(e,t,n){return(e=yf(6,e,null,t)).lanes=n,e}function Ef(e,t,n){return(t=yf(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cf(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=bo(0),this.expirationTimes=bo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bo(0),this.mutableSourceEagerHydrationData=null}function _f(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Gt,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Tf(e,t,n,r){var o=t.current,a=Fc(),i=jc(o);e:if(n){t:{if(_r(n=n._reactInternals)!==n||1!==n.tag)throw Error(Dt(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if($i(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(Dt(171))}if(1===n.tag){var u=n.type;if($i(u)){n=Qi(n,u,l);break e}}n=l}else n=ji;return null===t.context?t.context=n:t.pendingContext=n,(t=Al(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),Fl(o,t),Uc(o,i,a),i}function Rf(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Pf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Nf(e,t){Pf(e,t),(e=e.alternate)&&Pf(e,t)}function Of(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Cf(e,t,null!=n&&!0===n.hydrate),t=yf(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,Dl(t),e[Ti]=n.current,ai(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function Mf(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function If(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=Rf(i);l.call(e)}}Tf(t,i,e,o)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Of(e,0,t?{hydrate:!0}:void 0)}(n,r),i=a._internalRoot,"function"==typeof o){var u=o;o=function(){var e=Rf(i);u.call(e)}}Qc((function(){Tf(t,i,e,o)}))}return Rf(i)}function zf(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Mf(t))throw Error(Dt(200));return _f(e,t,null,n)}wc=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||Wi.current)ss=!0;else{if(0==(n&r)){switch(ss=!1,t.tag){case 3:bs(t),wu();break;case 5:uu(t);break;case 1:$i(t.type)&&Yi(t);break;case 4:iu(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;Fi(Cl,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Es(e,t,n):(Fi(cu,1&cu.current),null!==(t=Os(e,t,n))?t.sibling:null);Fi(cu,1&cu.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Ns(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Fi(cu,cu.current),r)break;return null;case 23:case 24:return t.lanes=0,hs(e,t,n)}return Os(e,t,n)}ss=0!=(16384&e.flags)}else ss=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=Vi(t,Ui.current),Ml(t,n),o=Iu(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,$i(r)){var a=!0;Yi(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Dl(t);var i=r.getDerivedStateFromProps;"function"==typeof i&&Vl(t,r,i,e),o.updater=$l,t.stateNode=o,o._reactInternals=t,Yl(t,r,e,n),t=gs(null,t,r,!0,a,n)}else t.tag=0,cs(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"==typeof e)return gf(e)?1:0;if(null!=e){if((e=e.$$typeof)===on)return 11;if(e===un)return 14}return 2}(o),e=El(o,e),a){case 0:t=vs(null,t,o,e,n);break e;case 1:t=ys(null,t,o,e,n);break e;case 11:t=fs(null,t,o,e,n);break e;case 14:t=ds(null,t,o,El(o.type,e),r,n);break e}throw Error(Dt(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,vs(e,t,r,o=t.elementType===r?o:El(r,o),n);case 1:return r=t.type,o=t.pendingProps,ys(e,t,r,o=t.elementType===r?o:El(r,o),n);case 3:if(bs(t),r=t.updateQueue,null===e||null===r)throw Error(Dt(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,Ll(e,t),Ul(t,r,null,n),(r=t.memoizedState.element)===o)wu(),t=Os(e,t,n);else{if((a=(o=t.stateNode).hydrate)&&(pu=ki(t.stateNode.containerInfo.firstChild),du=t,a=hu=!0),a){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(a=e[o])._workInProgressVersionPrimary=e[o+1],ku.push(a);for(n=eu(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else cs(e,t,r,n),wu();t=t.child}return t;case 5:return uu(t),null===e&&yu(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,yi(r,o)?i=null:null!==a&&yi(r,a)&&(t.flags|=16),ms(e,t),cs(e,t,i,n),t.child;case 6:return null===e&&yu(t),null;case 13:return Es(e,t,n);case 4:return iu(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Zl(t,null,r,n):cs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,fs(e,t,r,o=t.elementType===r?o:El(r,o),n);case 7:return cs(e,t,t.pendingProps,n),t.child;case 8:case 12:return cs(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value;var l=t.type._context;if(Fi(Cl,l._currentValue),l._currentValue=a,null!==i)if(l=i.value,0===(a=Aa(l,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(i.children===o.children&&!Wi.current){t=Os(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){i=l.child;for(var s=u.firstContext;null!==s;){if(s.context===r&&0!=(s.observedBits&a)){1===l.tag&&((s=Al(-1,n&-n)).tag=2,Fl(l,s)),l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Ol(l.return,n),u.lanes|=n;break}s=s.next}}else i=10===l.tag&&l.type===t.type?null:l.child;if(null!==i)i.return=l;else for(i=l;null!==i;){if(i===t){i=null;break}if(null!==(l=i.sibling)){l.return=i.return,i=l;break}i=i.return}l=i}cs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(a=t.pendingProps).children,Ml(t,n),r=r(o=Il(o,a.unstable_observedBits)),t.flags|=1,cs(e,t,r,n),t.child;case 14:return a=El(o=t.type,t.pendingProps),ds(e,t,o,a=El(o.type,a),r,n);case 15:return ps(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:El(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,$i(r)?(e=!0,Yi(t)):e=!1,Ml(t,n),ql(t,r,o),Yl(t,r,o,n),gs(null,t,r,!0,e,n);case 19:return Ns(e,t,n);case 23:case 24:return hs(e,t,n)}throw Error(Dt(156,t.tag))},Of.prototype.render=function(e){Tf(e,this._internalRoot,null,null)},Of.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Tf(null,e,null,(function(){t[Ti]=null}))},Or=function(e){13===e.tag&&(Uc(e,4,Fc()),Nf(e,4))},Mr=function(e){13===e.tag&&(Uc(e,67108864,Fc()),Nf(e,67108864))},Ir=function(e){if(13===e.tag){var t=Fc(),n=jc(e);Uc(e,n,t),Nf(e,n)}},zr=function(e,t){return t()},rr=function(e,t,n){switch(t){case"input":if(Mn(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=Mi(r);if(!o)throw Error(Dt(90));Tn(r),Mn(r,o)}}}break;case"textarea":jn(e,n);break;case"select":null!=(t=n.value)&&Ln(e,!!n.multiple,t,!1)}},sr=qc,cr=function(e,t,n,r,o){var a=oc;oc|=4;try{return bl(98,e.bind(null,t,n,r,o))}finally{0===(oc=a)&&(bc(),kl())}},fr=function(){0==(49&oc)&&(function(){if(null!==Nc){var e=Nc;Nc=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,Bc(e,vl())}))}kl()}(),uf())},dr=function(e,t){var n=oc;oc|=2;try{return e(t)}finally{0===(oc=n)&&(bc(),kl())}};var Df={Events:[Ni,Oi,Mi,lr,ur,uf,{current:!1}]},Lf={findFiberByHostInstance:Pi,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Af={bundleType:Lf.bundleType,version:Lf.version,rendererPackageName:Lf.rendererPackageName,rendererConfig:Lf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Kt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Pr(e))?null:e.stateNode},findFiberByHostInstance:Lf.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ff=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ff.isDisabled&&Ff.supportsFiber)try{Ki=Ff.inject(Af),Xi=Ff}catch(qn){}}var jf={__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Df,createPortal:zf,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(Dt(188));throw Error(Dt(268,Object.keys(e)))}return e=null===(e=Pr(t))?null:e.stateNode},flushSync:function(e,t){var n=oc;if(0!=(48&n))return e(t);oc|=1;try{if(e)return bl(99,e.bind(null,t))}finally{oc=n,kl()}},hydrate:function(e,t,n){if(!Mf(t))throw Error(Dt(200));return If(null,e,t,!0,n)},render:function(e,t,n){if(!Mf(t))throw Error(Dt(200));return If(null,e,t,!1,n)},unmountComponentAtNode:function(e){if(!Mf(e))throw Error(Dt(40));return!!e._reactRootContainer&&(Qc((function(){If(null,null,e,!1,(function(){e._reactRootContainer=null,e[Ti]=null}))})),!0)},unstable_batchedUpdates:qc,unstable_createPortal:function(e,t){return zf(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!Mf(n))throw Error(Dt(200));if(null==e||void 0===e._reactInternals)throw Error(Dt(38));return If(e,t,n,!1,r)},version:"17.0.2"},Uf=0,Wf={__interactionsRef:null,__subscriberRef:null,unstable_clear:function(e){return e()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Uf},unstable_subscribe:function(){},unstable_trace:function(e,t,n){return n()},unstable_unsubscribe:function(){},unstable_wrap:function(e){return e}},Bf=n((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e=0,n=0;t.__interactionsRef=null,t.__subscriberRef=null,t.__interactionsRef={current:new Set},t.__subscriberRef={current:null};var r=null;function o(e){var t=!1,n=null;if(r.forEach((function(r){try{r.onInteractionTraced(e)}catch(e){t||(t=!0,n=e)}})),t)throw n}function a(e){var t=!1,n=null;if(r.forEach((function(r){try{r.onInteractionScheduledWorkCompleted(e)}catch(e){t||(t=!0,n=e)}})),t)throw n}function i(e,t){var n=!1,o=null;if(r.forEach((function(r){try{r.onWorkScheduled(e,t)}catch(e){n||(n=!0,o=e)}})),n)throw o}function l(e,t){var n=!1,o=null;if(r.forEach((function(r){try{r.onWorkStarted(e,t)}catch(e){n||(n=!0,o=e)}})),n)throw o}function u(e,t){var n=!1,o=null;if(r.forEach((function(r){try{r.onWorkStopped(e,t)}catch(e){n||(n=!0,o=e)}})),n)throw o}function s(e,t){var n=!1,o=null;if(r.forEach((function(r){try{r.onWorkCanceled(e,t)}catch(e){n||(n=!0,o=e)}})),n)throw o}r=new Set,t.unstable_clear=function(e){var n=t.__interactionsRef.current;t.__interactionsRef.current=new Set;try{return e()}finally{t.__interactionsRef.current=n}},t.unstable_getCurrent=function(){return t.__interactionsRef.current},t.unstable_getThreadID=function(){return++n},t.unstable_subscribe=function(e){r.add(e),1===r.size&&(t.__subscriberRef.current={onInteractionScheduledWorkCompleted:a,onInteractionTraced:o,onWorkCanceled:s,onWorkScheduled:i,onWorkStarted:l,onWorkStopped:u})},t.unstable_trace=function(n,r,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i={__count:1,id:e++,name:n,timestamp:r},l=t.__interactionsRef.current,u=new Set(l);u.add(i),t.__interactionsRef.current=u;var s,c=t.__subscriberRef.current;try{null!==c&&c.onInteractionTraced(i)}finally{try{null!==c&&c.onWorkStarted(u,a)}finally{try{s=o()}finally{t.__interactionsRef.current=l;try{null!==c&&c.onWorkStopped(u,a)}finally{i.__count--,null!==c&&0===i.__count&&c.onInteractionScheduledWorkCompleted(i)}}}}return s},t.unstable_unsubscribe=function(e){r.delete(e),0===r.size&&(t.__subscriberRef.current=null)},t.unstable_wrap=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.__interactionsRef.current,o=t.__subscriberRef.current;null!==o&&o.onWorkScheduled(r,n),r.forEach((function(e){e.__count++}));var a=!1;function i(){var i=t.__interactionsRef.current;t.__interactionsRef.current=r,o=t.__subscriberRef.current;try{var l;try{null!==o&&o.onWorkStarted(r,n)}finally{try{l=e.apply(void 0,arguments)}finally{t.__interactionsRef.current=i,null!==o&&o.onWorkStopped(r,n)}}return l}finally{a||(a=!0,r.forEach((function(e){e.__count--,null!==o&&0===e.__count&&o.onInteractionScheduledWorkCompleted(e)})))}}return i.cancel=function(){o=t.__subscriberRef.current;try{null!==o&&o.onWorkCanceled(r,n)}finally{r.forEach((function(e){e.__count--,o&&0===e.__count&&o.onInteractionScheduledWorkCompleted(e)}))}},i}}()})),Vf=n((function(e){"production"===process.env.NODE_ENV?e.exports=Wf:e.exports=Bf})),$f=n((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e=c,n=l,r=zt,o=Vf,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];s("warn",e,n)}function u(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];s("error",e,n)}function s(e,t,n){var r=a.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}if(!e)throw Error("ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");var f=10,d=11,p=12,h=13,m=14,v=15,y=17,g=19,b=20,w=22,k=23,S=24,x=!1,E=new Set,C={},_={};function T(e,t){R(e,t),R(e+"Capture",t)}function R(e,t){C[e]&&u("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),C[e]=t;var n=e.toLowerCase();_[n]=e,"onDoubleClick"===e&&(_.ondblclick=e);for(var r=0;r<t.length;r++)E.add(t[r])}var P=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),N=":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",O=N+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",M="data-reactroot",I=new RegExp("^["+N+"]["+O+"]*$"),z=Object.prototype.hasOwnProperty,D={},L={};function A(e){return!!z.call(L,e)||!z.call(D,e)&&(I.test(e)?(L[e]=!0,!0):(D[e]=!0,u("Invalid attribute name: `%s`",e),!1))}function F(e,t,n){return null!==t?0===t.type:!n&&(e.length>2&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))}function j(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;var o=e.toLowerCase().slice(0,5);return"data-"!==o&&"aria-"!==o;default:return!1}}function U(e,t,n,r){if(null==t)return!0;if(j(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)||t<1}return!1}function W(e){return V.hasOwnProperty(e)?V[e]:null}function B(e,t,n,r,o,a,i){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=a,this.removeEmptyString=i}var V={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){V[e]=new B(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0],n=e[1];V[t]=new B(t,1,!1,n,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){V[e]=new B(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){V[e]=new B(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"].forEach((function(e){V[e]=new B(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){V[e]=new B(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){V[e]=new B(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){V[e]=new B(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){V[e]=new B(e,5,!1,e.toLowerCase(),null,!1,!1)}));var $=/[\-\:]([a-z])/g,H=function(e){return e[1].toUpperCase()};["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"].forEach((function(e){var t=e.replace($,H);V[t]=new B(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace($,H);V[t]=new B(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace($,H);V[t]=new B(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){V[e]=new B(e,1,!1,e.toLowerCase(),null,!1,!1)}));V.xlinkHref=new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){V[e]=new B(e,1,!1,e.toLowerCase(),null,!0,!0)}));var q=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Q=!1;function Y(e){!Q&&q.test(e)&&(Q=!0,u("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function J(e,t,n,r){if(r.mustUseProperty)return e[r.propertyName];r.sanitizeURL&&Y(""+n);var o=r.attributeName,a=null;if(4===r.type){if(e.hasAttribute(o)){var i=e.getAttribute(o);return""===i||(U(t,n,r,!1)?i:i===""+n?n:i)}}else if(e.hasAttribute(o)){if(U(t,n,r,!1))return e.getAttribute(o);if(3===r.type)return n;a=e.getAttribute(o)}return U(t,n,r,!1)?null===a?n:a:a===""+n?n:a}function K(e,t,n){if(A(t)){if(function(e){return null!==e&&"object"==typeof e&&e.$$typeof===de}(n))return n;if(!e.hasAttribute(t))return void 0===n?void 0:null;var r=e.getAttribute(t);return r===""+n?n:r}}function X(e,t,n,r){var o=W(t);if(!F(t,o,r))if(U(t,n,o,r)&&(n=null),r||null===o){if(A(t)){var a=t;null===n?e.removeAttribute(a):e.setAttribute(a,""+n)}}else if(o.mustUseProperty){var i=o.propertyName;if(null===n){var l=o.type;e[i]=3!==l&&""}else e[i]=n}else{var u=o.attributeName,s=o.attributeNamespace;if(null===n)e.removeAttribute(u);else{var c,f=o.type;3===f||4===f&&!0===n?c="":(c=""+n,o.sanitizeURL&&Y(c.toString())),s?e.setAttributeNS(s,u,c):e.setAttribute(u,c)}}}var G=60103,Z=60106,ee=60107,te=60108,ne=60114,re=60109,oe=60110,ae=60112,ie=60113,le=60120,ue=60115,se=60116,ce=60121,fe=60119,de=60128,pe=60129,he=60130,me=60131;if("function"==typeof Symbol&&Symbol.for){var ve=Symbol.for;G=ve("react.element"),Z=ve("react.portal"),ee=ve("react.fragment"),te=ve("react.strict_mode"),ne=ve("react.profiler"),re=ve("react.provider"),oe=ve("react.context"),ae=ve("react.forward_ref"),ie=ve("react.suspense"),le=ve("react.suspense_list"),ue=ve("react.memo"),se=ve("react.lazy"),ce=ve("react.block"),ve("react.server.block"),ve("react.fundamental"),fe=ve("react.scope"),de=ve("react.opaque.id"),pe=ve("react.debug_trace_mode"),he=ve("react.offscreen"),me=ve("react.legacy_hidden")}var ye="function"==typeof Symbol&&Symbol.iterator;function ge(e){if(null===e||"object"!=typeof e)return null;var t=ye&&e[ye]||e["@@iterator"];return"function"==typeof t?t:null}var be,we,ke,Se,xe,Ee,Ce,_e=0;function Te(){}function Re(){if(0===_e){be=console.log,we=console.info,ke=console.warn,Se=console.error,xe=console.group,Ee=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}_e++}function Pe(){if(0===--_e){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},e,{value:be}),info:n({},e,{value:we}),warn:n({},e,{value:ke}),error:n({},e,{value:Se}),group:n({},e,{value:xe}),groupCollapsed:n({},e,{value:Ee}),groupEnd:n({},e,{value:Ce})})}_e<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}Te.__reactDisabledLog=!0;var Ne,Oe=a.ReactCurrentDispatcher;function Me(e,t,n){if(void 0===Ne)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Ne=r&&r[1]||""}return"\n"+Ne+e}var Ie,ze=!1,De="function"==typeof WeakMap?WeakMap:Map;function Le(e,t){if(!e||ze)return"";var n,r=Ie.get(e);if(void 0!==r)return r;ze=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Oe.current,Oe.current=null,Re();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),u=n.stack.split("\n"),s=l.length-1,c=u.length-1;s>=1&&c>=0&&l[s]!==u[c];)c--;for(;s>=1&&c>=0;s--,c--)if(l[s]!==u[c]){if(1!==s||1!==c)do{if(s--,--c<0||l[s]!==u[c]){var f="\n"+l[s].replace(" at new "," at ");return"function"==typeof e&&Ie.set(e,f),f}}while(s>=1&&c>=0);break}}}finally{ze=!1,Oe.current=o,Pe(),Error.prepareStackTrace=a}var d=e?e.displayName||e.name:"",p=d?Me(d):"";return"function"==typeof e&&Ie.set(e,p),p}function Ae(e,t,n){return Le(e,!1)}function Fe(e,t,n){if(null==e)return"";if("function"==typeof e)return Le(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return Me(e);switch(e){case ie:return Me("Suspense");case le:return Me("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case ae:return Ae(e.render);case ue:return Fe(e.type,t,n);case ce:return Ae(e._render);case se:var o=e,a=o._payload,i=o._init;try{return Fe(i(a),t,n)}catch(e){}}return""}function je(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case 5:return Me(e.type);case 16:return Me("Lazy");case h:return Me("Suspense");case g:return Me("SuspenseList");case 0:case 2:case v:return Ae(e.type);case d:return Ae(e.type.render);case w:return Ae(e.type._render);case 1:return Le(e.type,!0);default:return""}}function Ue(e){try{var t="",n=e;do{t+=je(n),n=n.return}while(n);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function We(e){return e.displayName||"Context"}function Be(e){if(null==e)return null;if("number"==typeof e.tag&&u("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ee:return"Fragment";case Z:return"Portal";case ne:return"Profiler";case te:return"StrictMode";case ie:return"Suspense";case le:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case oe:return We(e)+".Consumer";case re:return We(e._context)+".Provider";case ae:return o=e,a=e.render,i="ForwardRef",l=a.displayName||a.name||"",o.displayName||(""!==l?i+"("+l+")":i);case ue:return Be(e.type);case ce:return Be(e._render);case se:var t=e,n=t._payload,r=t._init;try{return Be(r(n))}catch(e){return null}}var o,a,i,l;return null}Ie=new De;var Ve=a.ReactDebugCurrentFrame,$e=null,He=!1;function qe(){if(null===$e)return null;var e=$e._debugOwner;return null!=e?Be(e.type):null}function Qe(){return null===$e?"":Ue($e)}function Ye(){Ve.getCurrentStack=null,$e=null,He=!1}function Je(e){Ve.getCurrentStack=Qe,$e=e,He=!1}function Ke(e){He=e}function Xe(e){return""+e}function Ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}var Ze={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function et(e,t){Ze[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||u("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||null==t.checked||u("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function tt(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function nt(e){return e._valueTracker}function rt(e){nt(e)||(e._valueTracker=function(e){var t=tt(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){!function(e){e._valueTracker=null}(e),delete e[t]}}}}(e))}function ot(e){if(!e)return!1;var t=nt(e);if(!t)return!0;var n=t.getValue(),r=function(e){var t="";return e?t=tt(e)?e.checked?"true":"false":e.value:t}(e);return r!==n&&(t.setValue(r),!0)}function at(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}}var it=!1,lt=!1,ut=!1,st=!1;function ct(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}function ft(e,t){var r=e,o=t.checked;return n({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=o?o:r._wrapperState.initialChecked})}function dt(e,t){et(0,t),void 0===t.checked||void 0===t.defaultChecked||lt||(u("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",qe()||"A component",t.type),lt=!0),void 0===t.value||void 0===t.defaultValue||it||(u("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",qe()||"A component",t.type),it=!0);var n=e,r=null==t.defaultValue?"":t.defaultValue;n._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:Ge(null!=t.value?t.value:r),controlled:ct(t)}}function pt(e,t){var n=e,r=t.checked;null!=r&&X(n,"checked",r,!1)}function ht(e,t){var n=e,r=ct(t);n._wrapperState.controlled||!r||st||(u("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),st=!0),!n._wrapperState.controlled||r||ut||(u("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),ut=!0),pt(e,t);var o=Ge(t.value),a=t.type;if(null!=o)"number"===a?(0===o&&""===n.value||n.value!=o)&&(n.value=Xe(o)):n.value!==Xe(o)&&(n.value=Xe(o));else if("submit"===a||"reset"===a)return void n.removeAttribute("value");t.hasOwnProperty("value")?yt(n,t.type,o):t.hasOwnProperty("defaultValue")&&yt(n,t.type,Ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(n.defaultChecked=!!t.defaultChecked)}function mt(e,t,n){var r=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(("submit"===o||"reset"===o)&&(void 0===t.value||null===t.value))return;var a=Xe(r._wrapperState.initialValue);n||a!==r.value&&(r.value=a),r.defaultValue=a}var i=r.name;""!==i&&(r.name=""),r.defaultChecked=!r.defaultChecked,r.defaultChecked=!!r._wrapperState.initialChecked,""!==i&&(r.name=i)}function vt(e,t){var n=e;ht(n,t),function(e,t){var n=t.name;if("radio"===t.type&&null!=n){for(var r=e;r.parentNode;)r=r.parentNode;for(var o=r.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),a=0;a<o.length;a++){var i=o[a];if(i!==e&&i.form===e.form){var l=wu(i);if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");ot(i),ht(i,l)}}}}(n,t)}function yt(e,t,n){"number"===t&&at(e.ownerDocument)===e||(null==n?e.defaultValue=Xe(e._wrapperState.initialValue):e.defaultValue!==Xe(n)&&(e.defaultValue=Xe(n)))}var gt,bt=!1,wt=!1;function kt(t,n){"object"==typeof n.children&&null!==n.children&&e.Children.forEach(n.children,(function(e){null!=e&&"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&(wt||(wt=!0,u("Only strings and numbers are supported as <option> children.")))})),null==n.selected||bt||(u("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),bt=!0)}function St(t,r){var o=n({children:void 0},r),a=function(t){var n="";return e.Children.forEach(t,(function(e){null!=e&&(n+=e)})),n}(r.children);return a&&(o.children=a),o}function xt(){var e=qe();return e?"\n\nCheck the render method of `"+e+"`.":""}gt=!1;var Et=["value","defaultValue"];function Ct(e,t,n,r){var o=e.options;if(t){for(var a=n,i={},l=0;l<a.length;l++)i["$"+a[l]]=!0;for(var u=0;u<o.length;u++){var s=i.hasOwnProperty("$"+o[u].value);o[u].selected!==s&&(o[u].selected=s),s&&r&&(o[u].defaultSelected=!0)}}else{for(var c=Xe(Ge(n)),f=null,d=0;d<o.length;d++){if(o[d].value===c)return o[d].selected=!0,void(r&&(o[d].defaultSelected=!0));null!==f||o[d].disabled||(f=o[d])}null!==f&&(f.selected=!0)}}function _t(e,t){return n({},t,{value:void 0})}function Tt(e,t){var n=e;!function(e){et(0,e);for(var t=0;t<Et.length;t++){var n=Et[t];if(null!=e[n]){var r=Array.isArray(e[n]);e.multiple&&!r?u("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,xt()):!e.multiple&&r&&u("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,xt())}}}(t),n._wrapperState={wasMultiple:!!t.multiple},void 0===t.value||void 0===t.defaultValue||gt||(u("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),gt=!0)}var Rt=!1;function Pt(e,t){var r=e;if(null!=t.dangerouslySetInnerHTML)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");return n({},t,{value:void 0,defaultValue:void 0,children:Xe(r._wrapperState.initialValue)})}function Nt(e,t){var n=e;et(0,t),void 0===t.value||void 0===t.defaultValue||Rt||(u("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",qe()||"A component"),Rt=!0);var r=t.value;if(null==r){var o=t.children,a=t.defaultValue;if(null!=o){if(u("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),null!=a)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Array.isArray(o)){if(!(o.length<=1))throw Error("<textarea> can only have at most one child.");o=o[0]}a=o}null==a&&(a=""),r=a}n._wrapperState={initialValue:Ge(r)}}function Ot(e,t){var n=e,r=Ge(t.value),o=Ge(t.defaultValue);if(null!=r){var a=Xe(r);a!==n.value&&(n.value=a),null==t.defaultValue&&n.defaultValue!==a&&(n.defaultValue=a)}null!=o&&(n.defaultValue=Xe(o))}function Mt(e,t){var n=e,r=n.textContent;r===n._wrapperState.initialValue&&""!==r&&null!==r&&(n.value=r)}var It="http://www.w3.org/1999/xhtml",Dt="http://www.w3.org/1998/Math/MathML",Lt="http://www.w3.org/2000/svg",At=It,Ft=Lt;function jt(e){switch(e){case"svg":return Lt;case"math":return Dt;default:return It}}function Ut(e,t){return null==e||e===It?jt(t):e===Lt&&"foreignObject"===t?It:e}var Wt,Bt,Vt=(Bt=function(e,t){if(e.namespaceURI!==Ft||"innerHTML"in e)e.innerHTML=t;else{(Wt=Wt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Wt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Bt(e,t,n,r)}))}:Bt),$t=8,Ht=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t},qt={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Qt={animationIterationCount:!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};var Yt=["Webkit","ms","Moz","O"];function Jt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}Object.keys(Qt).forEach((function(e){Yt.forEach((function(t){Qt[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=Qt[e]}))}));var Kt=/([A-Z])/g,Xt=/^ms-/;var Gt=/^(?:webkit|moz|o)[A-Z]/,Zt=/^-ms-/,en=/-(.)/g,tn=/;\s*$/,nn={},rn={},on=!1,an=!1,ln=function(e){nn.hasOwnProperty(e)&&nn[e]||(nn[e]=!0,u("Unsupported style property %s. Did you mean %s?",e,e.replace(Zt,"ms-").replace(en,(function(e,t){return t.toUpperCase()}))))},un=function(e,t){e.indexOf("-")>-1?ln(e):Gt.test(e)?function(e){nn.hasOwnProperty(e)&&nn[e]||(nn[e]=!0,u("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))}(e):tn.test(t)&&function(e,t){rn.hasOwnProperty(t)&&rn[t]||(rn[t]=!0,u('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,t.replace(tn,"")))}(e,t),"number"==typeof t&&(isNaN(t)?function(e,t){on||(on=!0,u("`NaN` is an invalid value for the `%s` css style property.",e))}(e):isFinite(t)||function(e,t){an||(an=!0,u("`Infinity` is an invalid value for the `%s` css style property.",e))}(e))};function sn(e){var t="",n="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(null!=o){var a=0===r.indexOf("--");t+=n+(a?r:r.replace(Kt,"-$1").toLowerCase().replace(Xt,"-ms-"))+":",t+=Jt(r,o,a),n=";"}}return t||null}function cn(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=0===r.indexOf("--");o||un(r,t[r]);var a=Jt(r,t[r],o);"float"===r&&(r="cssFloat"),o?n.setProperty(r,a):n[r]=a}}function fn(e){var t={};for(var n in e)for(var r=qt[n]||[n],o=0;o<r.length;o++)t[r[o]]=n;return t}var dn=n({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 pn(e,t){if(t){if(dn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&null!=t.children&&u("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),null!=t.style&&"object"!=typeof t.style)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function hn(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 mn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},vn={"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},yn={},gn=new RegExp("^(aria)-["+O+"]*$"),bn=new RegExp("^(aria)[A-Z]["+O+"]*$"),wn=Object.prototype.hasOwnProperty;function kn(e,t){if(wn.call(yn,t)&&yn[t])return!0;if(bn.test(t)){var n="aria-"+t.slice(4).toLowerCase(),r=vn.hasOwnProperty(n)?n:null;if(null==r)return u("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),yn[t]=!0,!0;if(t!==r)return u("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,r),yn[t]=!0,!0}if(gn.test(t)){var o=t.toLowerCase(),a=vn.hasOwnProperty(o)?o:null;if(null==a)return yn[t]=!0,!1;if(t!==a)return u("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,a),yn[t]=!0,!0}return!0}function Sn(e,t){hn(e,t)||function(e,t){var n=[];for(var r in t)kn(0,r)||n.push(r);var o=n.map((function(e){return"`"+e+"`"})).join(", ");1===n.length?u("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",o,e):n.length>1&&u("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",o,e)}(e,t)}var xn=!1;var En,Cn={},_n=Object.prototype.hasOwnProperty,Tn=/^on./,Rn=/^on[^A-Z]/,Pn=new RegExp("^(aria)-["+O+"]*$"),Nn=new RegExp("^(aria)[A-Z]["+O+"]*$");En=function(e,t,n,r){if(_n.call(Cn,t)&&Cn[t])return!0;var o=t.toLowerCase();if("onfocusin"===o||"onfocusout"===o)return u("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Cn[t]=!0,!0;if(null!=r){var a=r.registrationNameDependencies,i=r.possibleRegistrationNames;if(a.hasOwnProperty(t))return!0;var l=i.hasOwnProperty(o)?i[o]:null;if(null!=l)return u("Invalid event handler property `%s`. Did you mean `%s`?",t,l),Cn[t]=!0,!0;if(Tn.test(t))return u("Unknown event handler property `%s`. It will be ignored.",t),Cn[t]=!0,!0}else if(Tn.test(t))return Rn.test(t)&&u("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Cn[t]=!0,!0;if(Pn.test(t)||Nn.test(t))return!0;if("innerhtml"===o)return u("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Cn[t]=!0,!0;if("aria"===o)return u("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Cn[t]=!0,!0;if("is"===o&&null!=n&&"string"!=typeof n)return u("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Cn[t]=!0,!0;if("number"==typeof n&&isNaN(n))return u("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Cn[t]=!0,!0;var s=W(t),c=null!==s&&0===s.type;if(mn.hasOwnProperty(o)){var f=mn[o];if(f!==t)return u("Invalid DOM property `%s`. Did you mean `%s`?",t,f),Cn[t]=!0,!0}else if(!c&&t!==o)return u("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,o),Cn[t]=!0,!0;return"boolean"==typeof n&&j(t,n,s,!1)?(n?u('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):u('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),Cn[t]=!0,!0):!!c||(j(t,n,s,!1)?(Cn[t]=!0,!1):("false"!==n&&"true"!==n||null===s||3!==s.type||(u("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,"false"===n?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),Cn[t]=!0),!0))};function On(e,t,n){hn(e,t)||function(e,t,n){var r=[];for(var o in t)En(0,o,t[o],n)||r.push(o);var a=r.map((function(e){return"`"+e+"`"})).join(", ");1===r.length?u("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",a,e):r.length>1&&u("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",a,e)}(e,t,n)}function Mn(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var In=null,zn=null,Dn=null;function Ln(e){var t=gu(e);if(t){if("function"!=typeof In)throw Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=t.stateNode;if(n){var r=wu(n);In(t.stateNode,t.type,r)}}}function An(e){zn?Dn?Dn.push(e):Dn=[e]:zn=e}function Fn(){if(zn){var e=zn,t=Dn;if(zn=null,Dn=null,Ln(e),t)for(var n=0;n<t.length;n++)Ln(t[n])}}var jn=function(e,t){return e(t)},Un=function(e,t,n,r,o){return e(t,n,r,o)},Wn=function(){},Bn=jn,Vn=!1,$n=!1;function Hn(){(null!==zn||null!==Dn)&&(Wn(),Fn())}function qn(e,t){var n=e.stateNode;if(null===n)return null;var r=wu(n);if(null===r)return null;var o=r[t];if(function(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!(!n.disabled||(r=t,"button"!==r&&"input"!==r&&"select"!==r&&"textarea"!==r));default:return!1}var r}(t,e.type,r))return null;if(o&&"function"!=typeof o)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof o+"` type.");return o}var Qn=!1;if(P)try{var Yn={};Object.defineProperty(Yn,"passive",{get:function(){Qn=!0}}),window.addEventListener("test",Yn,Yn),window.removeEventListener("test",Yn,Yn)}catch(e){Qn=!1}function Jn(e,t,n,r,o,a,i,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Kn=Jn;if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var Xn=document.createElement("react");Kn=function(e,t,n,r,o,a,i,l,u){if("undefined"==typeof document)throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var s=document.createEvent("Event"),c=!1,f=!0,d=window.event,p=Object.getOwnPropertyDescriptor(window,"event");function h(){Xn.removeEventListener(k,y,!1),void 0!==window.event&&window.hasOwnProperty("event")&&(window.event=d)}var m,v=Array.prototype.slice.call(arguments,3);function y(){c=!0,h(),t.apply(n,v),f=!1}var g=!1,b=!1;function w(e){if(m=e.error,g=!0,null===m&&0===e.colno&&0===e.lineno&&(b=!0),e.defaultPrevented&&null!=m&&"object"==typeof m)try{m._suppressLogging=!0}catch(e){}}var k="react-"+(e||"invokeguardedcallback");if(window.addEventListener("error",w),Xn.addEventListener(k,y,!1),s.initEvent(k,!1,!1),Xn.dispatchEvent(s),p&&Object.defineProperty(window,"event",p),c&&f&&(g?b&&(m=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):m=new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."),this.onError(m)),window.removeEventListener("error",w),!c)return h(),Jn.apply(this,arguments)}}var Gn=Kn,Zn=!1,er=null,tr=!1,nr=null,rr={onError:function(e){Zn=!0,er=e}};function or(e,t,n,r,o,a,i,l,u){Zn=!1,er=null,Gn.apply(rr,arguments)}function ar(){return Zn}function ir(){if(Zn){var e=er;return Zn=!1,er=null,e}throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function lr(e){return e._reactInternals}var ur,sr,cr,fr,dr=64,pr=128,hr=256,mr=512,vr=8192,yr=1024,gr=2048,br=4096,wr=16384,kr=a.ReactCurrentOwner;function Sr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var r=t;do{0!=(1026&(t=r).flags)&&(n=t.return),r=t.return}while(r)}return 3===t.tag?n:null}function xr(e){if(e.tag===h){var t=e.memoizedState;if(null===t){var n=e.alternate;null!==n&&(t=n.memoizedState)}if(null!==t)return t.dehydrated}return null}function Er(e){return 3===e.tag?e.stateNode.containerInfo:null}function Cr(e){if(Sr(e)!==e)throw Error("Unable to find node on an unmounted component.")}function _r(e){var t=e.alternate;if(!t){var n=Sr(e);if(null===n)throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var r=e,o=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){var l=a.return;if(null!==l){r=o=l;continue}break}if(a.child===i.child){for(var u=a.child;u;){if(u===r)return Cr(a),e;if(u===o)return Cr(a),t;u=u.sibling}throw Error("Unable to find node on an unmounted component.")}if(r.return!==o.return)r=a,o=i;else{for(var s=!1,c=a.child;c;){if(c===r){s=!0,r=a,o=i;break}if(c===o){s=!0,o=a,r=i;break}c=c.sibling}if(!s){for(c=i.child;c;){if(c===r){s=!0,r=i,o=a;break}if(c===o){s=!0,o=i,r=a;break}c=c.sibling}if(!s)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==r.tag)throw Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function Tr(e){var t=_r(e);if(!t)return null;for(var n=t;;){if(5===n.tag||6===n.tag)return n;if(n.child)n.child.return=n,n=n.child;else{if(n===t)return null;for(;!n.sibling;){if(!n.return||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}}return null}function Rr(e,t){for(var n=t,r=e.alternate;null!==n;){if(n===e||n===r)return!0;n=n.return}return!1}var Pr=!1,Nr=[],Or=null,Mr=null,Ir=null,zr=new Map,Dr=new Map,Lr=[];var Ar=["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"];function Fr(e){return Ar.indexOf(e)>-1}function jr(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function Ur(e,t,n,r,o){var a=jr(e,t,n,r,o);Nr.push(a)}function Wr(e,t){switch(e){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":Mr=null;break;case"mouseover":case"mouseout":Ir=null;break;case"pointerover":case"pointerout":var n=t.pointerId;zr.delete(n);break;case"gotpointercapture":case"lostpointercapture":var r=t.pointerId;Dr.delete(r)}}function Br(e,t,n,r,o,a){if(null===e||e.nativeEvent!==a){var i=jr(t,n,r,o,a);if(null!==t){var l=gu(t);null!==l&&sr(l)}return i}e.eventSystemFlags|=r;var u=e.targetContainers;return null!==o&&-1===u.indexOf(o)&&u.push(o),e}function Vr(e){var t=yu(e.target);if(null!==t){var n=Sr(t);if(null!==n){var o=n.tag;if(o===h){var a=xr(n);if(null!==a)return e.blockedOn=a,void fr(e.lanePriority,(function(){r.unstable_runWithPriority(e.priority,(function(){cr(n)}))}))}else if(3===o){if(n.stateNode.hydrate)return void(e.blockedOn=Er(n))}}}e.blockedOn=null}function $r(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],r=ea(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(null!==r){var o=gu(r);return null!==o&&sr(o),e.blockedOn=r,!1}t.shift()}return!0}function Hr(e,t,n){$r(e)&&n.delete(t)}function qr(){for(Pr=!1;Nr.length>0;){var e=Nr[0];if(null!==e.blockedOn){var t=gu(e.blockedOn);null!==t&&ur(t);break}for(var n=e.targetContainers;n.length>0;){var r=n[0],o=ea(e.domEventName,e.eventSystemFlags,r,e.nativeEvent);if(null!==o){e.blockedOn=o;break}n.shift()}null===e.blockedOn&&Nr.shift()}null!==Or&&$r(Or)&&(Or=null),null!==Mr&&$r(Mr)&&(Mr=null),null!==Ir&&$r(Ir)&&(Ir=null),zr.forEach(Hr),Dr.forEach(Hr)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,Pr||(Pr=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,qr)))}function Yr(e){if(Nr.length>0){Qr(Nr[0],e);for(var t=1;t<Nr.length;t++){var n=Nr[t];n.blockedOn===e&&(n.blockedOn=null)}}null!==Or&&Qr(Or,e),null!==Mr&&Qr(Mr,e),null!==Ir&&Qr(Ir,e);var r=function(t){return Qr(t,e)};zr.forEach(r),Dr.forEach(r);for(var o=0;o<Lr.length;o++){var a=Lr[o];a.blockedOn===e&&(a.blockedOn=null)}for(;Lr.length>0;){var i=Lr[0];if(null!==i.blockedOn)break;Vr(i),null===i.blockedOn&&Lr.shift()}}function Jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Kr={animationend:Jr("Animation","AnimationEnd"),animationiteration:Jr("Animation","AnimationIteration"),animationstart:Jr("Animation","AnimationStart"),transitionend:Jr("Transition","TransitionEnd")},Xr={},Gr={};function Zr(e){if(Xr[e])return Xr[e];if(!Kr[e])return e;var t=Kr[e];for(var n in t)if(t.hasOwnProperty(n)&&n in Gr)return Xr[e]=t[n];return e}P&&(Gr=document.createElement("div").style,"AnimationEvent"in window||(delete Kr.animationend.animation,delete Kr.animationiteration.animation,delete Kr.animationstart.animation),"TransitionEvent"in window||delete Kr.transitionend.transition);var eo=Zr("animationend"),to=Zr("animationiteration"),no=Zr("animationstart"),ro=Zr("transitionend"),oo=new Map,ao=new Map,io=["cancel","cancel","click","click","close","close","contextmenu","contextMenu","copy","copy","cut","cut","auxclick","auxClick","dblclick","doubleClick","dragend","dragEnd","dragstart","dragStart","drop","drop","focusin","focus","focusout","blur","input","input","invalid","invalid","keydown","keyDown","keypress","keyPress","keyup","keyUp","mousedown","mouseDown","mouseup","mouseUp","paste","paste","pause","pause","play","play","pointercancel","pointerCancel","pointerdown","pointerDown","pointerup","pointerUp","ratechange","rateChange","reset","reset","seeked","seeked","submit","submit","touchcancel","touchCancel","touchend","touchEnd","touchstart","touchStart","volumechange","volumeChange"],lo=["change","selectionchange","textInput","compositionstart","compositionend","compositionupdate"],uo=["drag","drag","dragenter","dragEnter","dragexit","dragExit","dragleave","dragLeave","dragover","dragOver","mousemove","mouseMove","mouseout","mouseOut","mouseover","mouseOver","pointermove","pointerMove","pointerout","pointerOut","pointerover","pointerOver","scroll","scroll","toggle","toggle","touchmove","touchMove","wheel","wheel"],so=["abort","abort",eo,"animationEnd",to,"animationIteration",no,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",ro,"transitionEnd","waiting","waiting"];function co(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],a="on"+(o[0].toUpperCase()+o.slice(1));ao.set(r,t),oo.set(r,a),T(a,[r])}}var fo=r.unstable_now;if(null==o.__interactionsRef||null==o.__interactionsRef.current)throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling");fo();var po=15,ho=10,mo=3584,vo=4186112,yo=62914560,go=33554432,bo=67108864,wo=134217727,ko=134217728,So=805306368,xo=1073741824,Eo=-1;var Co=8;function _o(e){if(0!=(1&e))return Co=po,1;if(0!=(2&e))return Co=14,2;if(0!=(4&e))return Co=13,4;var t=24&e;if(0!==t)return Co=12,t;if(0!=(32&e))return Co=11,32;var n=192&e;if(0!==n)return Co=ho,n;if(0!=(256&e))return Co=9,256;var r=mo&e;if(0!==r)return Co=8,r;if(0!=(4096&e))return Co=7,4096;var o=vo&e;if(0!==o)return Co=6,o;var a=yo&e;if(0!==a)return Co=5,a;if(e&bo)return Co=4,bo;if(0!=(e&ko))return Co=3,ko;var i=So&e;return 0!==i?(Co=2,i):0!=(xo&e)?(Co=1,xo):(u("Should have found matching lanes. This is a bug in React."),Co=8,e)}function To(e,t){var n=e.pendingLanes;if(0===n)return Co=0,0;var r=0,o=0,a=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(0!==a)r=a,o=Co=po;else{var u=n&wo;if(0!==u){var s=u&~i;if(0!==s)r=_o(s),o=Co;else{var c=u&l;0!==c&&(r=_o(c),o=Co)}}else{var f=n&~i;0!==f?(r=_o(f),o=Co):0!==l&&(r=_o(l),o=Co)}}if(0===r)return 0;if(r=n&function(e){return(function(e){var t=31-Vo(e);return t<0?0:1<<t}(e)<<1)-1}(r),0!==t&&t!==r&&0==(t&i)){if(_o(t),o<=Co)return t;Co=o}var d=e.entangledLanes;if(0!==d)for(var p=e.entanglements,h=r&d;h>0;){var m=zo(h),v=1<<m;r|=p[m],h&=~v}return r}function Ro(e,t){_o(e);return Co>=ho?t+250:Co>=6?t+5e3:Eo}function Po(e){var t=-1073741825&e.pendingLanes;return 0!==t?t:t&xo?xo:0}function No(e){return 0!=(e&wo)}function Oo(e){return(e&yo)===e}function Mo(e,t){switch(e){case 0:break;case po:return 1;case 14:return 2;case 12:var n=Io(24&~t);return 0===n?Mo(ho,t):n;case ho:var r=Io(192&~t);return 0===r?Mo(8,t):r;case 8:var o=Io(mo&~t);return 0===o&&0===(o=Io(vo&~t))&&(o=Io(mo)),o;case 6:case 5:break;case 2:var a=Io(So&~t);return 0===a&&(a=Io(So)),a}throw Error("Invalid update priority: "+e+". This is a bug in React.")}function Io(e){return function(e){return e&-e}(e)}function zo(e){return 31-Vo(e)}function Do(e,t){return 0!=(e&t)}function Lo(e,t){return(e&t)===t}function Ao(e,t){return e|t}function Fo(e,t){return e&~t}function jo(e){for(var t=[],n=0;n<31;n++)t.push(e);return t}function Uo(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e.eventTimes[zo(t)]=n}function Wo(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function Bo(e,t){e.mutableReadLanes|=t&e.pendingLanes}var Vo=Math.clz32?Math.clz32:function(e){if(0===e)return 32;return 31-($o(e)/Ho|0)|0},$o=Math.log,Ho=Math.LN2;var qo=r.unstable_UserBlockingPriority,Qo=r.unstable_runWithPriority,Yo=!0;function Jo(e){Yo=!!e}function Ko(e,t,n){var r;switch(function(e){var t=ao.get(e);return void 0===t?2:t}(t)){case 0:r=Xo;break;case 1:r=Go;break;case 2:default:r=Zo}return r.bind(null,t,n,e)}function Xo(e,t,n,r){r.timeStamp,Vn||Wn(),function(e,t,n,r,o){var a=Vn;Vn=!0;try{Un(e,t,n,r,o)}finally{(Vn=a)||Hn()}}(Zo,e,t,n,r)}function Go(e,t,n,r){Qo(qo,Zo.bind(null,e,t,n,r))}function Zo(e,t,n,r){if(Yo){var o;if((o=0==(4&t))&&Nr.length>0&&Fr(e))Ur(null,e,t,n,r);else{var a=ea(e,t,n,r);if(null!==a){if(o){if(Fr(e))return void Ur(a,e,t,n,r);if(function(e,t,n,r,o){switch(t){case"focusin":return Or=Br(Or,e,t,n,r,o),!0;case"dragenter":return Mr=Br(Mr,e,t,n,r,o),!0;case"mouseover":return Ir=Br(Ir,e,t,n,r,o),!0;case"pointerover":var a=o,i=a.pointerId;return zr.set(i,Br(zr.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":var l=o,u=l.pointerId;return Dr.set(u,Br(Dr.get(u)||null,e,t,n,r,l)),!0}return!1}(a,e,t,n,r))return;Wr(e,r)}Qi(e,t,r,null,n)}else o&&Wr(e,r)}}}function ea(e,t,n,r){var o=yu(Mn(r));if(null!==o){var a=Sr(o);if(null===a)o=null;else{var i=a.tag;if(i===h){var l=xr(a);if(null!==l)return l;o=null}else if(3===i){if(a.stateNode.hydrate)return Er(a);o=null}else a!==o&&(o=null)}}return Qi(e,t,r,o,n),null}var ta=null,na=null,ra=null;function oa(){if(ra)return ra;var e,t,n=na,r=n.length,o=aa(),a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);var l=t>1?1-t:void 0;return ra=o.slice(e,l)}function aa(){return"value"in ta?ta.value:ta.textContent}function ia(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,10===t&&(t=13),t>=32||13===t?t:0}function la(){return!0}function ua(){return!1}function sa(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)if(e.hasOwnProperty(i)){var l=e[i];this[i]=l?l(o):o[i]}var u=null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue;return this.isDefaultPrevented=u?la:ua,this.isPropagationStopped=ua,this}return n(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=la)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=la)},persist:function(){},isPersistent:la}),t}var ca,fa,da,pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ha=sa(pa),ma=n({},pa,{view:0,detail:0}),va=sa(ma);var ya=n({},ma,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pa,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:(function(e){e!==da&&(da&&"mousemove"===e.type?(ca=e.screenX-da.screenX,fa=e.screenY-da.screenY):(ca=0,fa=0),da=e)}(e),ca)},movementY:function(e){return"movementY"in e?e.movementY:fa}}),ga=sa(ya),ba=sa(n({},ya,{dataTransfer:0})),wa=sa(n({},ma,{relatedTarget:0})),ka=sa(n({},pa,{animationName:0,elapsedTime:0,pseudoElement:0})),Sa=sa(n({},pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),xa=sa(n({},pa,{data:0})),Ea=xa,Ca={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_a={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"};var Ta={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ra(e){var t=this.nativeEvent;if(t.getModifierState)return t.getModifierState(e);var n=Ta[e];return!!n&&!!t[n]}function Pa(e){return Ra}var Na=sa(n({},ma,{key:function(e){if(e.key){var t=Ca[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=ia(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?_a[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pa,charCode:function(e){return"keypress"===e.type?ia(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ia(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Oa=sa(n({},ya,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ma=sa(n({},ma,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pa})),Ia=sa(n({},pa,{propertyName:0,elapsedTime:0,pseudoElement:0})),za=sa(n({},ya,{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})),Da=[9,13,27,32],La=P&&"CompositionEvent"in window,Aa=null;P&&"documentMode"in document&&(Aa=document.documentMode);var Fa=P&&"TextEvent"in window&&!Aa,ja=P&&(!La||Aa&&Aa>8&&Aa<=11),Ua=String.fromCharCode(32);var Wa=!1;function Ba(e,t){switch(e){case"keyup":return-1!==Da.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Va(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function $a(e){return"ko"===e.locale}var Ha=!1;function qa(e,t,n,r,o){var a,i;if(La?a=function(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}(t):Ha?Ba(t,r)&&(a="onCompositionEnd"):function(e,t){return"keydown"===e&&229===t.keyCode}(t,r)&&(a="onCompositionStart"),!a)return null;ja&&!$a(r)&&(Ha||"onCompositionStart"!==a?"onCompositionEnd"===a&&Ha&&(i=oa()):Ha=function(e){return ta=e,na=aa(),!0}(o));var l=Ji(n,a);if(l.length>0){var u=new xa(a,t,null,r,o);if(e.push({event:u,listeners:l}),i)u.data=i;else{var s=Va(r);null!==s&&(u.data=s)}}}function Qa(e,t){if(Ha){if("compositionend"===e||!La&&Ba(e,t)){var n=oa();return ta=null,na=null,ra=null,Ha=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!function(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ja&&!$a(t)?null:t.data;default:return null}}function Ya(e,t,n,r,o){var a;if(!(a=Fa?function(e,t){switch(e){case"compositionend":return Va(t);case"keypress":return 32!==t.which?null:(Wa=!0,Ua);case"textInput":var n=t.data;return n===Ua&&Wa?null:n;default:return null}}(t,r):Qa(t,r)))return null;var i=Ji(n,"onBeforeInput");if(i.length>0){var l=new Ea("onBeforeInput","beforeinput",null,r,o);e.push({event:l,listeners:i}),l.data=a}}var Ja={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 Ka(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ja[e.type]:"textarea"===t}
|
|
41
|
-
/**
|
|
42
|
-
* Checks if an event is supported in the current execution environment.
|
|
43
|
-
*
|
|
44
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
45
|
-
* `reset`, `load`, `error`, and `select`.
|
|
46
|
-
*
|
|
47
|
-
* Borrows from Modernizr.
|
|
48
|
-
*
|
|
49
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
50
|
-
* @return {boolean} True if the event is supported.
|
|
51
|
-
* @internal
|
|
52
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
53
|
-
*/function Xa(e,t,n,r){An(r);var o=Ji(t,"onChange");if(o.length>0){var a=new ha("onChange","change",null,n,r);e.push({event:a,listeners:o})}}var Ga=null,Za=null;function ei(e){var t=[];Xa(t,Za,e,Mn(e)),function(e,t){if(Vn)return e(t);Vn=!0;try{jn(e,t)}finally{Vn=!1,Hn()}}(ti,t)}function ti(e){Ui(e,0)}function ni(e){if(ot(bu(e)))return e}function ri(e,t){if("change"===e)return t}var oi=!1;function ai(){Ga&&(Ga.detachEvent("onpropertychange",ii),Ga=null,Za=null)}function ii(e){"value"===e.propertyName&&ni(Za)&&ei(e)}function li(e,t,n){"focusin"===e?(ai(),function(e,t){Za=t,(Ga=e).attachEvent("onpropertychange",ii)}(t,n)):"focusout"===e&&ai()}function ui(e,t){if("selectionchange"===e||"keyup"===e||"keydown"===e)return ni(Za)}function si(e,t){if("click"===e)return ni(t)}function ci(e,t){if("input"===e||"change"===e)return ni(t)}function fi(e,t,n,r,o,a,i){var l,u,s,c,f,d,p=n?bu(n):window;if("select"===(c=(s=p).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type?l=ri:Ka(p)?oi?l=ci:(l=ui,u=li):function(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(p)&&(l=si),l){var h=l(t,n);if(h)return void Xa(e,h,r,o)}u&&u(t,p,n),"focusout"===t&&(d=(f=p)._wrapperState)&&d.controlled&&"number"===f.type&&yt(f,"number",f.value)}function di(e,t,n,r,o,a,i){var l="mouseover"===t||"pointerover"===t,u="mouseout"===t||"pointerout"===t;if(l&&0==(16&a)){var s=r.relatedTarget||r.fromElement;if(s&&(yu(s)||vu(s)))return}if(u||l){var c,f,d;if(o.window===o)c=o;else{var p=o.ownerDocument;c=p?p.defaultView||p.parentWindow:window}if(u){var h=r.relatedTarget||r.toElement;if(f=n,null!==(d=h?yu(h):null))(d!==Sr(d)||5!==d.tag&&6!==d.tag)&&(d=null)}else f=null,d=n;if(f!==d){var m=ga,v="onMouseLeave",y="onMouseEnter",g="mouse";"pointerout"!==t&&"pointerover"!==t||(m=Oa,v="onPointerLeave",y="onPointerEnter",g="pointer");var b=null==f?c:bu(f),w=null==d?c:bu(d),k=new m(v,g+"leave",f,r,o);k.target=b,k.relatedTarget=w;var S=null;if(yu(o)===n){var x=new m(y,g+"enter",d,r,o);x.target=w,x.relatedTarget=b,S=x}!function(e,t,n,r,o){var a=r&&o?function(e,t){for(var n=e,r=t,o=0,a=n;a;a=Ki(a))o++;for(var i=0,l=r;l;l=Ki(l))i++;for(;o-i>0;)n=Ki(n),o--;for(;i-o>0;)r=Ki(r),i--;var u=o;for(;u--;){if(n===r||null!==r&&n===r.alternate)return n;n=Ki(n),r=Ki(r)}return null}(r,o):null;null!==r&&Xi(e,t,r,a,!1);null!==o&&null!==n&&Xi(e,n,o,a,!0)}(e,k,S,f,d)}}}P&&(oi=function(e){if(!P)return!1;var t="on"+e,n=t in document;if(!n){var r=document.createElement("div");r.setAttribute(t,"return;"),n="function"==typeof r[t]}return n}("input")&&(!document.documentMode||document.documentMode>9));var pi="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},hi=Object.prototype.hasOwnProperty;function mi(e,t){if(pi(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(var o=0;o<n.length;o++)if(!hi.call(t,n[o])||!pi(e[n[o]],t[n[o]]))return!1;return!0}function vi(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yi(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function gi(e,t){for(var n=vi(e),r=0,o=0;n;){if(3===n.nodeType){if(o=r+n.textContent.length,r<=t&&o>=t)return{node:n,offset:t-r};r=o}n=vi(yi(n))}}function bi(e){var t=e.ownerDocument,n=t&&t.defaultView||window,r=n.getSelection&&n.getSelection();if(!r||0===r.rangeCount)return null;var o=r.anchorNode,a=r.anchorOffset,i=r.focusNode,l=r.focusOffset;try{o.nodeType,i.nodeType}catch(e){return null}return function(e,t,n,r,o){var a=0,i=-1,l=-1,u=0,s=0,c=e,f=null;e:for(;;){for(var d=null;c!==t||0!==n&&3!==c.nodeType||(i=a+n),c!==r||0!==o&&3!==c.nodeType||(l=a+o),3===c.nodeType&&(a+=c.nodeValue.length),null!==(d=c.firstChild);)f=c,c=d;for(;;){if(c===e)break e;if(f===t&&++u===n&&(i=a),f===r&&++s===o&&(l=a),null!==(d=c.nextSibling))break;f=(c=f).parentNode}c=d}if(-1===i||-1===l)return null;return{start:i,end:l}}(e,o,a,i,l)}function wi(e){return e&&3===e.nodeType}function ki(e,t){return!(!e||!t)&&(e===t||!wi(e)&&(wi(t)?ki(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Si(e){return e&&e.ownerDocument&&ki(e.ownerDocument.documentElement,e)}function xi(e){try{return"string"==typeof e.contentWindow.location.href}catch(e){return!1}}function Ei(){for(var e=window,t=at();t instanceof e.HTMLIFrameElement;){if(!xi(t))return t;t=at((e=t.contentWindow).document)}return t}function Ci(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 _i(e){var t=Ei(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&Si(n)){null!==r&&Ci(n)&&function(e,t){var n=t.start,r=t.end;void 0===r&&(r=n);"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length)):function(e,t){var n=e.ownerDocument||document,r=n&&n.defaultView||window;if(r.getSelection){var o=r.getSelection(),a=e.textContent.length,i=Math.min(t.start,a),l=void 0===t.end?i:Math.min(t.end,a);if(!o.extend&&i>l){var u=l;l=i,i=u}var s=gi(e,i),c=gi(e,l);if(s&&c){if(1===o.rangeCount&&o.anchorNode===s.node&&o.anchorOffset===s.offset&&o.focusNode===c.node&&o.focusOffset===c.offset)return;var f=n.createRange();f.setStart(s.node,s.offset),o.removeAllRanges(),i>l?(o.addRange(f),o.extend(c.node,c.offset)):(f.setEnd(c.node,c.offset),o.addRange(f))}}}(e,t)}(n,r);for(var o=[],a=n;a=a.parentNode;)1===a.nodeType&&o.push({element:a,left:a.scrollLeft,top:a.scrollTop});"function"==typeof n.focus&&n.focus();for(var i=0;i<o.length;i++){var l=o[i];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}}function Ti(e){return("selectionStart"in e?{start:e.selectionStart,end:e.selectionEnd}:bi(e))||{start:0,end:0}}var Ri=P&&"documentMode"in document&&document.documentMode<=11;var Pi=null,Ni=null,Oi=null,Mi=!1;function Ii(e,t,n){var r,o=(r=n).window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!Mi&&null!=Pi&&Pi===at(o)){var a=function(e){if("selectionStart"in e&&Ci(e))return{start:e.selectionStart,end:e.selectionEnd};var t=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}(Pi);if(!Oi||!mi(Oi,a)){Oi=a;var i=Ji(Ni,"onSelect");if(i.length>0){var l=new ha("onSelect","select",null,t,n);e.push({event:l,listeners:i}),l.target=Pi}}}}function zi(e,t,n,r,o,a,i){var l=oo.get(t);if(void 0!==l){var u=ha,s=t;switch(t){case"keypress":if(0===ia(r))return;case"keydown":case"keyup":u=Na;break;case"focusin":s="focus",u=wa;break;case"focusout":s="blur",u=wa;break;case"beforeblur":case"afterblur":u=wa;break;case"click":if(2===r.button)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=ga;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ba;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Ma;break;case eo:case to:case no:u=ka;break;case ro:u=Ia;break;case"scroll":u=va;break;case"wheel":u=za;break;case"copy":case"cut":case"paste":u=Sa;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Oa}var c=0!=(4&a),f=!c&&"scroll"===t,d=function(e,t,n,r,o){var a=null!==t?t+"Capture":null,i=r?a:t,l=[],u=e,s=null;for(;null!==u;){var c=u,f=c.stateNode;if(5===c.tag&&null!==f&&(s=f,null!==i)){var d=qn(u,i);null!=d&&l.push(Yi(u,d,s))}if(o)break;u=u.return}return l}(n,l,r.type,c,f);if(d.length>0){var p=new u(l,s,null,r,o);e.push({event:p,listeners:d})}}}function Di(e,t,n,r,o,a,i){zi(e,t,n,r,o,a),0==(7&a)&&(di(e,t,n,r,o,a),fi(e,t,n,r,o),function(e,t,n,r,o,a,i){var l=n?bu(n):window;switch(t){case"focusin":(Ka(l)||"true"===l.contentEditable)&&(Pi=l,Ni=n,Oi=null);break;case"focusout":Pi=null,Ni=null,Oi=null;break;case"mousedown":Mi=!0;break;case"contextmenu":case"mouseup":case"dragend":Mi=!1,Ii(e,r,o);break;case"selectionchange":if(Ri)break;case"keydown":case"keyup":Ii(e,r,o)}}(e,t,n,r,o),function(e,t,n,r,o,a,i){qa(e,t,n,r,o),Ya(e,t,n,r,o)}(e,t,n,r,o))}co(io,0),co(uo,1),co(so,2),function(e,t){for(var n=0;n<e.length;n++)ao.set(e[n],t)}(lo,0),R("onMouseEnter",["mouseout","mouseover"]),R("onMouseLeave",["mouseout","mouseover"]),R("onPointerEnter",["pointerout","pointerover"]),R("onPointerLeave",["pointerout","pointerover"]),T("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"]),T("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"]),T("onBeforeInput",["compositionend","keypress","textInput","paste"]),T("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),T("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),T("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"]);var Li=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Ai=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Li));function Fi(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,u){if(or.apply(this,arguments),Zn){var s=ir();tr||(tr=!0,nr=s)}}(r,t,void 0,e),e.currentTarget=null}function ji(e,t,n){var r;if(n)for(var o=t.length-1;o>=0;o--){var a=t[o],i=a.instance,l=a.currentTarget,u=a.listener;if(i!==r&&e.isPropagationStopped())return;Fi(e,u,l),r=i}else for(var s=0;s<t.length;s++){var c=t[s],f=c.instance,d=c.currentTarget,p=c.listener;if(f!==r&&e.isPropagationStopped())return;Fi(e,p,d),r=f}}function Ui(e,t){for(var n=0!=(4&t),r=0;r<e.length;r++){var o=e[r];ji(o.event,o.listeners,n)}!function(){if(tr){var e=nr;throw tr=!1,nr=null,e}}()}function Wi(e,t){var n=Su(t),r=Gi(e,false);n.has(r)||(Hi(t,e,2,false),n.add(r))}var Bi="_reactListening"+Math.random().toString(36).slice(2);function Vi(e){e[Bi]||(e[Bi]=!0,E.forEach((function(t){Ai.has(t)||$i(t,!1,e,null),$i(t,!0,e,null)})))}function $i(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Ai.has(e)){if("scroll"!==e)return;o|=2,a=r}var i=Su(a),l=Gi(e,t);i.has(l)||(t&&(o|=4),Hi(a,e,o,t),i.add(l))}function Hi(e,t,n,r,o){var a=Ko(e,t,n),i=void 0;Qn&&("touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0)),e=e,r?void 0!==i?function(e,t,n,r){e.addEventListener(t,n,{capture:!0,passive:r})}(e,t,a,i):function(e,t,n){e.addEventListener(t,n,!0)}(e,t,a):void 0!==i?function(e,t,n,r){e.addEventListener(t,n,{passive:r})}(e,t,a,i):function(e,t,n){e.addEventListener(t,n,!1)}(e,t,a)}function qi(e,t){return e===t||8===e.nodeType&&e.parentNode===t}function Qi(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)){var i=o;if(null!==r){var l=r;e:for(;;){if(null===l)return;var u=l.tag;if(3===u||4===u){var s=l.stateNode.containerInfo;if(qi(s,i))break;if(4===u)for(var c=l.return;null!==c;){var f=c.tag;if(3===f||4===f)if(qi(c.stateNode.containerInfo,i))return;c=c.return}for(;null!==s;){var d=yu(s);if(null===d)return;var p=d.tag;if(5===p||6===p){l=a=d;continue e}s=s.parentNode}}l=l.return}}}!function(e,t,n){if($n)return e(t,n);$n=!0;try{Bn(e,t,n)}finally{$n=!1,Hn()}}((function(){return function(e,t,n,r,o){var a=[];Di(a,e,r,n,Mn(n),t),Ui(a,t)}(e,t,n,a)}))}function Yi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ji(e,t){for(var n=t+"Capture",r=[],o=e;null!==o;){var a=o,i=a.stateNode;if(5===a.tag&&null!==i){var l=i,u=qn(o,n);null!=u&&r.unshift(Yi(o,u,l));var s=qn(o,t);null!=s&&r.push(Yi(o,s,l))}o=o.return}return r}function Ki(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xi(e,t,n,r,o){for(var a=t._reactName,i=[],l=n;null!==l&&l!==r;){var u=l,s=u.alternate,c=u.stateNode,f=u.tag;if(null!==s&&s===r)break;if(5===f&&null!==c){var d=c;if(o){var p=qn(l,a);null!=p&&i.unshift(Yi(l,p,d))}else if(!o){var h=qn(l,a);null!=h&&i.push(Yi(l,h,d))}}l=l.return}0!==i.length&&e.push({event:t,listeners:i})}function Gi(e,t){return e+"__"+(t?"capture":"bubble")}var Zi,el,tl,nl,rl,ol,al,il,ll,ul,sl=!1,cl="dangerouslySetInnerHTML",fl="suppressContentEditableWarning",dl="suppressHydrationWarning",pl="autoFocus",hl="children",ml="style",vl=At;Zi={dialog:!0,webview:!0},tl=function(e,t){Sn(e,t),function(e,t){"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||xn||(xn=!0,"select"===e&&t.multiple?u("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):u("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}(e,t),On(e,t,{registrationNameDependencies:C,possibleRegistrationNames:_})},il=P&&!document.documentMode;var yl=/\r\n?/g,gl=/\u0000|\uFFFD/g;function bl(e){return 9===e.nodeType?e:e.ownerDocument}function wl(){}function kl(e){e.onclick=wl}function Sl(e,t,n,r){var o,a=hn(t,n);switch(tl(t,n),t){case"dialog":Wi("cancel",e),Wi("close",e),o=n;break;case"iframe":case"object":case"embed":Wi("load",e),o=n;break;case"video":case"audio":for(var i=0;i<Li.length;i++)Wi(Li[i],e);o=n;break;case"source":Wi("error",e),o=n;break;case"img":case"image":case"link":Wi("error",e),Wi("load",e),o=n;break;case"details":Wi("toggle",e),o=n;break;case"input":dt(e,n),o=ft(e,n),Wi("invalid",e);break;case"option":kt(0,n),o=St(0,n);break;case"select":Tt(e,n),o=_t(0,n),Wi("invalid",e);break;case"textarea":Nt(e,n),o=Pt(e,n),Wi("invalid",e);break;default:o=n}switch(pn(t,o),function(e,t,n,r,o){for(var a in r)if(r.hasOwnProperty(a)){var i=r[a];if(a===ml)i&&Object.freeze(i),cn(t,i);else if(a===cl){var l=i?i.__html:void 0;null!=l&&Vt(t,l)}else a===hl?"string"==typeof i?("textarea"!==e||""!==i)&&Ht(t,i):"number"==typeof i&&Ht(t,""+i):a===fl||a===dl||a===pl||(C.hasOwnProperty(a)?null!=i&&("function"!=typeof i&&al(a,i),"onScroll"===a&&Wi("scroll",t)):null!=i&&X(t,a,i,o))}}(t,e,0,o,a),t){case"input":rt(e),mt(e,n,!1);break;case"textarea":rt(e),Mt(e);break;case"option":!function(e,t){null!=t.value&&e.setAttribute("value",Xe(Ge(t.value)))}(e,n);break;case"select":!function(e,t){var n=e;n.multiple=!!t.multiple;var r=t.value;null!=r?Ct(n,!!t.multiple,r,!1):null!=t.defaultValue&&Ct(n,!!t.multiple,t.defaultValue,!0)}(e,n);break;default:"function"==typeof o.onClick&&kl(e)}}function xl(e,t,n,r,o){tl(t,r);var a,i,l,s,c=null;switch(t){case"input":a=ft(e,n),i=ft(e,r),c=[];break;case"option":a=St(0,n),i=St(0,r),c=[];break;case"select":a=_t(0,n),i=_t(0,r),c=[];break;case"textarea":a=Pt(e,n),i=Pt(e,r),c=[];break;default:i=r,"function"!=typeof(a=n).onClick&&"function"==typeof i.onClick&&kl(e)}pn(t,i);var f=null;for(l in a)if(!i.hasOwnProperty(l)&&a.hasOwnProperty(l)&&null!=a[l])if(l===ml){var d=a[l];for(s in d)d.hasOwnProperty(s)&&(f||(f={}),f[s]="")}else l===cl||l===hl||l===fl||l===dl||l===pl||(C.hasOwnProperty(l)?c||(c=[]):(c=c||[]).push(l,null));for(l in i){var p=i[l],h=null!=a?a[l]:void 0;if(i.hasOwnProperty(l)&&p!==h&&(null!=p||null!=h))if(l===ml)if(p&&Object.freeze(p),h){for(s in h)!h.hasOwnProperty(s)||p&&p.hasOwnProperty(s)||(f||(f={}),f[s]="");for(s in p)p.hasOwnProperty(s)&&h[s]!==p[s]&&(f||(f={}),f[s]=p[s])}else f||(c||(c=[]),c.push(l,f)),f=p;else if(l===cl){var m=p?p.__html:void 0,v=h?h.__html:void 0;null!=m&&v!==m&&(c=c||[]).push(l,m)}else l===hl?"string"!=typeof p&&"number"!=typeof p||(c=c||[]).push(l,""+p):l===fl||l===dl||(C.hasOwnProperty(l)?(null!=p&&("function"!=typeof p&&al(l,p),"onScroll"===l&&Wi("scroll",e)),c||h===p||(c=[])):"object"==typeof p&&null!==p&&p.$$typeof===de?p.toString():(c=c||[]).push(l,p))}return f&&(!function(e,t){if(t){var n,r=fn(e),o=fn(t),a={};for(var i in r){var l=r[i],s=o[i];if(s&&l!==s){var c=l+","+s;if(a[c])continue;a[c]=!0,u("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",null==(n=e[l])||"boolean"==typeof n||""===n?"Removing":"Updating",l,s)}}}}(f,i.style),(c=c||[]).push(ml,f)),c}function El(e,t,n,r,o){"input"===n&&"radio"===o.type&&null!=o.name&&pt(e,o);hn(n,r);switch(function(e,t,n,r){for(var o=0;o<t.length;o+=2){var a=t[o],i=t[o+1];a===ml?cn(e,i):a===cl?Vt(e,i):a===hl?Ht(e,i):X(e,a,i,r)}}(e,t,0,hn(n,o)),n){case"input":ht(e,o);break;case"textarea":Ot(e,o);break;case"select":!function(e,t){var n=e,r=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var o=t.value;null!=o?Ct(n,!!t.multiple,o,!1):r!==!!t.multiple&&(null!=t.defaultValue?Ct(n,!!t.multiple,t.defaultValue,!0):Ct(n,!!t.multiple,t.multiple?[]:"",!1))}(e,o)}}function Cl(e,t){nl(e.nodeValue,t)}function _l(e,t){sl||(sl=!0,u("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase()))}function Tl(e,t){sl||(sl=!0,u('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase()))}function Rl(e,t,n){sl||(sl=!0,u("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase()))}function Pl(e,t){""!==t&&(sl||(sl=!0,u('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())))}ll=function(e){return("string"==typeof e?e:""+e).replace(yl,"\n").replace(gl,"")},nl=function(e,t){if(!sl){var n=ll(t),r=ll(e);r!==n&&(sl=!0,u('Text content did not match. Server: "%s" Client: "%s"',r,n))}},rl=function(e,t,n){if(!sl){var r=ll(n),o=ll(t);o!==r&&(sl=!0,u("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(o),JSON.stringify(r)))}},ol=function(e){if(!sl){sl=!0;var t=[];e.forEach((function(e){t.push(e)})),u("Extra attributes from the server: %s",t)}},al=function(e,t){!1===t?u("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):u("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},ul=function(e,t){var n=e.namespaceURI===vl?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var Nl,Ol,Ml=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],Il=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],zl=Il.concat(["button"]),Dl=["dd","dt","li","option","optgroup","p","rp","rt"],Ll={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Ol=function(e,t){var r=n({},e||Ll),o={tag:t};return-1!==Il.indexOf(t)&&(r.aTagInScope=null,r.buttonTagInScope=null,r.nobrTagInScope=null),-1!==zl.indexOf(t)&&(r.pTagInButtonScope=null),-1!==Ml.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(r.listItemTagAutoclosing=null,r.dlItemTagAutoclosing=null),r.current=o,"form"===t&&(r.formTag=o),"a"===t&&(r.aTagInScope=o),"button"===t&&(r.buttonTagInScope=o),"nobr"===t&&(r.nobrTagInScope=o),"p"===t&&(r.pTagInButtonScope=o),"li"===t&&(r.listItemTagAutoclosing=o),"dd"!==t&&"dt"!==t||(r.dlItemTagAutoclosing=o),r};var Al={};Nl=function(e,t,n){var r=(n=n||Ll).current,o=r&&r.tag;null!=t&&(null!=e&&u("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var a=function(e,t){switch(t){case"select":return"option"===e||"optgroup"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===Dl.indexOf(t);case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t}return!0}(e,o)?null:r,i=a?null:function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}(e,n),l=a||i;if(l){var s=l.tag,c=!!a+"|"+e+"|"+s;if(!Al[c]){Al[c]=!0;var f=e,d="";if("#text"===e?/\S/.test(t)?f="Text nodes":(f="Whitespace text nodes",d=" Make sure you don't have any extra whitespace between tags on each line of your source code."):f="<"+e+">",a){var p="";"table"===s&&"tr"===e&&(p+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),u("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",f,s,d,p)}else u("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",f,s)}}};var Fl="$?",jl="$!",Ul=null,Wl=null;function Bl(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vl(e){var t;Ul=Yo,t=Ei(),Wl={focusedElem:t,selectionRange:Ci(t)?Ti(t):null};return Jo(!1),null}function $l(e,t,n,r,o){var a=r;if(Nl(e,null,a.ancestorInfo),"string"==typeof t.children||"number"==typeof t.children){var i=""+t.children,l=Ol(a.ancestorInfo,e);Nl(null,i,l)}var s=function(e,t,n,r){var o,a,i=bl(n),l=r;if(l===vl&&(l=jt(e)),l===vl){if((o=hn(e,t))||e===e.toLowerCase()||u("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),"script"===e){var s=i.createElement("div");s.innerHTML="<script><\/script>";var c=s.firstChild;a=s.removeChild(c)}else if("string"==typeof t.is)a=i.createElement(e,{is:t.is});else if(a=i.createElement(e),"select"===e){var f=a;t.multiple?f.multiple=!0:t.size&&(f.size=t.size)}}else a=i.createElementNS(l,e);return l===vl&&(o||"[object HTMLUnknownElement]"!==Object.prototype.toString.call(a)||Object.prototype.hasOwnProperty.call(Zi,e)||(Zi[e]=!0,u("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e))),a}(e,t,n,a.namespace);return hu(o,s),ku(s,t),s}function Hl(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function ql(e,t,n,r){Nl(null,e,n.ancestorInfo);var o=function(e,t){return bl(t).createTextNode(e)}(e,t);return hu(r,o),o}var Ql="function"==typeof setTimeout?setTimeout:void 0,Yl="function"==typeof clearTimeout?clearTimeout:void 0;function Jl(e){Ht(e,"")}function Kl(e,t){e.removeChild(t)}function Xl(e){var t=(e=e).style;"function"==typeof t.setProperty?t.setProperty("display","none","important"):t.display="none"}function Gl(e,t){e=e;var n=t.style,r=null!=n&&n.hasOwnProperty("display")?n.display:null;e.style.display=Jt("display",r)}function Zl(e,t){e.nodeValue=t}function eu(e){if(1===e.nodeType)e.textContent="";else if(9===e.nodeType){var t=e.body;null!=t&&(t.textContent="")}}function tu(e){return e.data===jl}function nu(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function ru(e){return nu(e.nextSibling)}function ou(e){return nu(e.firstChild)}function au(e,t,n,r,o,a){return hu(a,e),ku(e,n),function(e,t,n,r,o){var a,i;switch(el=!0===n.suppressHydrationWarning,a=hn(t,n),tl(t,n),t){case"dialog":Wi("cancel",e),Wi("close",e);break;case"iframe":case"object":case"embed":Wi("load",e);break;case"video":case"audio":for(var l=0;l<Li.length;l++)Wi(Li[l],e);break;case"source":Wi("error",e);break;case"img":case"image":case"link":Wi("error",e),Wi("load",e);break;case"details":Wi("toggle",e);break;case"input":dt(e,n),Wi("invalid",e);break;case"option":kt(0,n);break;case"select":Tt(e,n),Wi("invalid",e);break;case"textarea":Nt(e,n),Wi("invalid",e)}pn(t,n),i=new Set;for(var u=e.attributes,s=0;s<u.length;s++)switch(u[s].name.toLowerCase()){case"data-reactroot":case"value":case"checked":case"selected":break;default:i.add(u[s].name)}var c,f=null;for(var d in n)if(n.hasOwnProperty(d)){var p=n[d];if(d===hl)"string"==typeof p?e.textContent!==p&&(el||nl(e.textContent,p),f=[hl,p]):"number"==typeof p&&e.textContent!==""+p&&(el||nl(e.textContent,p),f=[hl,""+p]);else if(C.hasOwnProperty(d))null!=p&&("function"!=typeof p&&al(d,p),"onScroll"===d&&Wi("scroll",e));else if("boolean"==typeof a){var h=void 0,m=W(d);if(el);else if(d===fl||d===dl||"value"===d||"checked"===d||"selected"===d);else if(d===cl){var v=e.innerHTML,y=p?p.__html:void 0;if(null!=y){var g=ul(e,y);g!==v&&rl(d,v,g)}}else if(d===ml){if(i.delete(d),il){var b=sn(p);b!==(h=e.getAttribute("style"))&&rl(d,h,b)}}else if(a)i.delete(d.toLowerCase()),p!==(h=K(e,d,p))&&rl(d,h,p);else if(!F(d,m,a)&&!U(d,p,m,a)){var w=!1;if(null!==m)i.delete(m.attributeName),h=J(e,d,p,m);else{var k=r;if(k===vl&&(k=jt(t)),k===vl)i.delete(d.toLowerCase());else{var S=(c=void 0,c=d.toLowerCase(),mn.hasOwnProperty(c)&&mn[c]||null);null!==S&&S!==d&&(w=!0,i.delete(S)),i.delete(d)}h=K(e,d,p)}p===h||w||rl(d,h,p)}}}switch(i.size>0&&!el&&ol(i),t){case"input":rt(e),mt(e,n,!0);break;case"textarea":rt(e),Mt(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&kl(e)}return f}(e,t,n,o.namespace)}function iu(e){for(var t=e.previousSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if("$"===r||r===jl||r===Fl){if(0===n)return t;n--}else"/$"===r&&n++}t=t.previousSibling}return null}var lu=0;function uu(e){var t="r:"+(lu++).toString(36);return{toString:function(){return e(),t},valueOf:function(){return e(),t}}}var su=Math.random().toString(36).slice(2),cu="__reactFiber$"+su,fu="__reactProps$"+su,du="__reactContainer$"+su,pu="__reactEvents$"+su;function hu(e,t){t[cu]=e}function mu(e){e[du]=null}function vu(e){return!!e[du]}function yu(e){var t=e[cu];if(t)return t;for(var n=e.parentNode;n;){if(t=n[du]||n[cu]){var r=t.alternate;if(null!==t.child||null!==r&&null!==r.child)for(var o=iu(e);null!==o;){var a=o[cu];if(a)return a;o=iu(o)}return t}n=(e=n).parentNode}return null}function gu(e){var t=e[cu]||e[du];return t&&(5===t.tag||6===t.tag||t.tag===h||3===t.tag)?t:null}function bu(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function wu(e){return e[fu]||null}function ku(e,t){e[fu]=t}function Su(e){var t=e[pu];return void 0===t&&(t=e[pu]=new Set),t}var xu={},Eu=a.ReactDebugCurrentFrame;function Cu(e){if(e){var t=e._owner,n=Fe(e.type,e._source,t?t.type:null);Eu.setExtraStackFrame(n)}else Eu.setExtraStackFrame(null)}function _u(e,t,n,r,o){var a=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(a(e,i)){var l=void 0;try{if("function"!=typeof e[i]){var s=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(Cu(o),u("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof l),Cu(null)),l instanceof Error&&!(l.message in xu)&&(xu[l.message]=!0,Cu(o),u("Failed %s type: %s",n,l.message),Cu(null))}}var Tu,Ru=[];Tu=[];var Pu,Nu=-1;function Ou(e){return{current:e}}function Mu(e,t){Nu<0?u("Unexpected pop."):(t!==Tu[Nu]&&u("Unexpected Fiber popped."),e.current=Ru[Nu],Ru[Nu]=null,Tu[Nu]=null,Nu--)}function Iu(e,t,n){Nu++,Ru[Nu]=e.current,Tu[Nu]=n,e.current=t}Pu={};var zu={};Object.freeze(zu);var Du=Ou(zu),Lu=Ou(!1),Au=zu;function Fu(e,t,n){return n&&Bu(t)?Au:Du.current}function ju(e,t,n){var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}function Uu(e,t){var n=e.type,r=n.contextTypes;if(!r)return zu;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var a={};for(var i in r)a[i]=t[i];return _u(r,a,"context",Be(n)||"Unknown"),o&&ju(e,t,a),a}function Wu(){return Lu.current}function Bu(e){var t=e.childContextTypes;return null!=t}function Vu(e){Mu(Lu,e),Mu(Du,e)}function $u(e){Mu(Lu,e),Mu(Du,e)}function Hu(e,t,n){if(Du.current!==zu)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Iu(Du,t,e),Iu(Lu,n,e)}function qu(e,t,r){var o=e.stateNode,a=t.childContextTypes;if("function"!=typeof o.getChildContext){var i=Be(t)||"Unknown";return Pu[i]||(Pu[i]=!0,u("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",i,i)),r}var l=o.getChildContext();for(var s in l)if(!(s in a))throw Error((Be(t)||"Unknown")+'.getChildContext(): key "'+s+'" is not defined in childContextTypes.');return _u(a,l,"child context",Be(t)||"Unknown"),n({},r,l)}function Qu(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||zu;return Au=Du.current,Iu(Du,n,e),Iu(Lu,Lu.current,e),!0}function Yu(e,t,n){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var o=qu(e,t,Au);r.__reactInternalMemoizedMergedChildContext=o,Mu(Lu,e),Mu(Du,e),Iu(Du,o,e),Iu(Lu,n,e)}else Mu(Lu,e),Iu(Lu,n,e)}function Ju(e){if(!function(e){return Sr(e)===e}(e)||1!==e.tag)throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case 3:return t.stateNode.context;case 1:if(Bu(t.type))return t.stateNode.__reactInternalMemoizedMergedChildContext}t=t.return}while(null!==t);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}var Ku=null,Xu=null,Gu=!1,Zu="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;function es(e,t){if(Xu&&"function"==typeof Xu.onCommitFiberRoot)try{var n=(e.current.flags&dr)===dr;Xu.onCommitFiberRoot(Ku,e,t,n)}catch(e){Gu||(Gu=!0,u("React instrumentation encountered an error: %s",e))}}var ts=r.unstable_runWithPriority,ns=r.unstable_scheduleCallback,rs=r.unstable_cancelCallback,os=r.unstable_shouldYield,as=r.unstable_requestPaint,is=r.unstable_now,ls=r.unstable_getCurrentPriorityLevel,us=r.unstable_ImmediatePriority,ss=r.unstable_UserBlockingPriority,cs=r.unstable_NormalPriority,fs=r.unstable_LowPriority,ds=r.unstable_IdlePriority;if(null==o.__interactionsRef||null==o.__interactionsRef.current)throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling");var ps={},hs=99,ms=98,vs=97,ys=os,gs=void 0!==as?as:function(){},bs=null,ws=null,ks=!1,Ss=is(),xs=Ss<1e4?is:function(){return is()-Ss};function Es(){switch(ls()){case us:return hs;case ss:return ms;case cs:return vs;case fs:return 96;case ds:return 95;default:throw Error("Unknown priority level.")}}function Cs(e){switch(e){case hs:return us;case ms:return ss;case vs:return cs;case 96:return fs;case 95:return ds;default:throw Error("Unknown priority level.")}}function _s(e,t){var n=Cs(e);return ts(n,t)}function Ts(e,t,n){var r=Cs(e);return ns(r,t,n)}function Rs(e){e!==ps&&rs(e)}function Ps(){if(null!==ws){var e=ws;ws=null,rs(e)}Ns()}function Ns(){if(!ks&&null!==bs){ks=!0;var e=0;try{var t=bs;_s(hs,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(true)}while(null!==n)}})),bs=null}catch(t){throw null!==bs&&(bs=bs.slice(e+1)),ns(us,Ps),t}finally{ks=!1}}}var Os="17.0.2",Ms=a.ReactCurrentBatchConfig;var Is={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},zs=function(e){var t=[];return e.forEach((function(e){t.push(e)})),t.sort().join(", ")},Ds=[],Ls=[],As=[],Fs=[],js=[],Us=[],Ws=new Set;Is.recordUnsafeLifecycleWarnings=function(e,t){Ws.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&Ds.push(e),1&e.mode&&"function"==typeof t.UNSAFE_componentWillMount&&Ls.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&As.push(e),1&e.mode&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&Fs.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&js.push(e),1&e.mode&&"function"==typeof t.UNSAFE_componentWillUpdate&&Us.push(e))},Is.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Ds.length>0&&(Ds.forEach((function(t){e.add(Be(t.type)||"Component"),Ws.add(t.type)})),Ds=[]);var t=new Set;Ls.length>0&&(Ls.forEach((function(e){t.add(Be(e.type)||"Component"),Ws.add(e.type)})),Ls=[]);var n=new Set;As.length>0&&(As.forEach((function(e){n.add(Be(e.type)||"Component"),Ws.add(e.type)})),As=[]);var r=new Set;Fs.length>0&&(Fs.forEach((function(e){r.add(Be(e.type)||"Component"),Ws.add(e.type)})),Fs=[]);var o=new Set;js.length>0&&(js.forEach((function(e){o.add(Be(e.type)||"Component"),Ws.add(e.type)})),js=[]);var a=new Set;(Us.length>0&&(Us.forEach((function(e){a.add(Be(e.type)||"Component"),Ws.add(e.type)})),Us=[]),t.size>0)&&u("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",zs(t));r.size>0&&u("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s",zs(r));a.size>0&&u("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",zs(a));e.size>0&&i("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",zs(e));n.size>0&&i("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",zs(n));o.size>0&&i("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",zs(o))};var Bs=new Map,Vs=new Set;function $s(e,t){if(e&&e.defaultProps){var r=n({},t),o=e.defaultProps;for(var a in o)void 0===r[a]&&(r[a]=o[a]);return r}return t}Is.recordLegacyContextWarning=function(e,t){var n=function(e){for(var t=null,n=e;null!==n;)1&n.mode&&(t=n),n=n.return;return t}(e);if(null!==n){if(!Vs.has(e.type)){var r=Bs.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],Bs.set(n,r)),r.push(e))}}else u("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.")},Is.flushLegacyContextWarning=function(){Bs.forEach((function(e,t){if(0!==e.length){var n=e[0],r=new Set;e.forEach((function(e){r.add(Be(e.type)||"Component"),Vs.add(e.type)}));var o=zs(r);try{Je(n),u("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",o)}finally{Ye()}}}))},Is.discardPendingWarnings=function(){Ds=[],Ls=[],As=[],Fs=[],js=[],Us=[],Bs=new Map};var Hs,qs=1073741823,Qs=Ou(null);Hs={};var Ys=null,Js=null,Ks=null,Xs=!1;function Gs(){Ys=null,Js=null,Ks=null,Xs=!1}function Zs(){Xs=!0}function ec(){Xs=!1}function tc(e,t){var n=e.type._context;Iu(Qs,n._currentValue,e),n._currentValue=t,void 0!==n._currentRenderer&&null!==n._currentRenderer&&n._currentRenderer!==Hs&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=Hs}function nc(e){var t=Qs.current;Mu(Qs,e),e.type._context._currentValue=t}function rc(e,t){for(var n=e;null!==n;){var r=n.alternate;if(Lo(n.childLanes,t)){if(null===r||Lo(r.childLanes,t))break;r.childLanes=Ao(r.childLanes,t)}else n.childLanes=Ao(n.childLanes,t),null!==r&&(r.childLanes=Ao(r.childLanes,t));n=n.return}}function oc(e,t){Ys=e,Js=null,Ks=null;var n=e.dependencies;null!==n&&(null!==n.firstContext&&(Do(n.lanes,t)&&ih(),n.firstContext=null))}function ac(e,t){if(Xs&&u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Ks===e);else if(!1===t||0===t);else{var n;"number"!=typeof t||t===qs?(Ks=e,n=qs):n=t;var r={context:e,observedBits:n,next:null};if(null===Js){if(null===Ys)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Js=r,Ys.dependencies={lanes:0,firstContext:r,responders:null}}else Js=Js.next=r}return e._currentValue}var ic,lc,uc=2,sc=!1;function cc(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null};e.updateQueue=t}function fc(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var o={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=o}}function dc(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pc(e,t){var n=e.updateQueue;if(null!==n){var r=n.shared,o=r.pending;null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,lc!==r||ic||(u("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),ic=!0)}}function hc(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var o=r.updateQueue;if(n===o){var a=null,i=null,l=n.firstBaseUpdate;if(null!==l){var u=l;do{var s={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};null===i?a=i=s:(i.next=s,i=s),u=u.next}while(null!==u);null===i?a=i=t:(i.next=t,i=t)}else a=i=t;return n={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}}var c=n.lastBaseUpdate;null===c?n.firstBaseUpdate=t:c.next=t,n.lastBaseUpdate=t}function mc(e,t,r,o,a,i){switch(r.tag){case 1:var l=r.payload;if("function"==typeof l){Zs();var u=l.call(i,o,a);if(1&e.mode){Re();try{l.call(i,o,a)}finally{Pe()}}return ec(),u}return l;case 3:e.flags=-4097&e.flags|dr;case 0:var s,c=r.payload;if("function"==typeof c){if(Zs(),s=c.call(i,o,a),1&e.mode){Re();try{c.call(i,o,a)}finally{Pe()}}ec()}else s=c;return null==s?o:n({},o,s);case uc:return sc=!0,o}return o}function vc(e,t,n,r){var o=e.updateQueue;sc=!1,lc=o.shared;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===i?a=s:i.next=s,i=u;var c=e.alternate;if(null!==c){var f=c.updateQueue,d=f.lastBaseUpdate;d!==i&&(null===d?f.firstBaseUpdate=s:d.next=s,f.lastBaseUpdate=u)}}if(null!==a){for(var p=o.baseState,h=0,m=null,v=null,y=null,g=a;;){var b=g.lane,w=g.eventTime;if(Lo(r,b)){if(null!==y){var k={eventTime:w,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null};y=y.next=k}if(p=mc(e,0,g,p,t,n),null!==g.callback){e.flags|=32;var S=o.effects;null===S?o.effects=[g]:S.push(g)}}else{var x={eventTime:w,lane:b,tag:g.tag,payload:g.payload,callback:g.callback,next:null};null===y?(v=y=x,m=p):y=y.next=x,h=Ao(h,b)}if(null===(g=g.next)){if(null===(l=o.shared.pending))break;var E=l,C=E.next;E.next=null,g=C,o.lastBaseUpdate=E,o.shared.pending=null}}null===y&&(m=p),o.baseState=m,o.firstBaseUpdate=v,o.lastBaseUpdate=y,rv(h),e.lanes=h,e.memoizedState=p}lc=null}function yc(e,t){if("function"!=typeof e)throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function gc(){sc=!1}function bc(){return sc}function wc(e,t,n){var r=t.effects;if(t.effects=null,null!==r)for(var o=0;o<r.length;o++){var a=r[o],i=a.callback;null!==i&&(a.callback=null,yc(i,n))}}ic=!1,lc=null;var kc,Sc,xc,Ec,Cc,_c,Tc,Rc,Pc,Nc,Oc={},Mc=Array.isArray,Ic=(new e.Component).refs;kc=new Set,Sc=new Set,xc=new Set,Ec=new Set,Rc=new Set,Cc=new Set,Pc=new Set,Nc=new Set;var zc=new Set;function Dc(e,t,r,o){var a=e.memoizedState;if(1&e.mode){Re();try{r(o,a)}finally{Pe()}}var i=r(o,a);_c(t,i);var l=null==i?a:n({},a,i);(e.memoizedState=l,0===e.lanes)&&(e.updateQueue.baseState=l)}Tc=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;zc.has(n)||(zc.add(n),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},_c=function(e,t){if(void 0===t){var n=Be(e)||"Component";Cc.has(n)||(Cc.add(n),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Oc,"_processChildContext",{enumerable:!1,value:function(){throw Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Oc);var Lc,Ac,Fc,jc,Uc,Wc={isMounted:function(e){var t=kr.current;if(null!==t&&1===t.tag){var n=t,r=n.stateNode;r._warnedAboutRefsInRender||u("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Be(n.type)||"A component"),r._warnedAboutRefsInRender=!0}var o=lr(e);return!!o&&Sr(o)===o},enqueueSetState:function(e,t,n){var r=lr(e),o=Am(),a=Fm(r),i=dc(o,a);i.payload=t,null!=n&&(Tc(n,"setState"),i.callback=n),pc(r,i),Um(r,a,o)},enqueueReplaceState:function(e,t,n){var r=lr(e),o=Am(),a=Fm(r),i=dc(o,a);i.tag=1,i.payload=t,null!=n&&(Tc(n,"replaceState"),i.callback=n),pc(r,i),Um(r,a,o)},enqueueForceUpdate:function(e,t){var n=lr(e),r=Am(),o=Fm(n),a=dc(r,o);a.tag=uc,null!=t&&(Tc(t,"forceUpdate"),a.callback=t),pc(n,a),Um(n,o,r)}};function Bc(e,t,n,r,o,a,i){var l=e.stateNode;if("function"==typeof l.shouldComponentUpdate){if(1&e.mode){Re();try{l.shouldComponentUpdate(r,a,i)}finally{Pe()}}var s=l.shouldComponentUpdate(r,a,i);return void 0===s&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Be(t)||"Component"),s}return!t.prototype||!t.prototype.isPureReactComponent||(!mi(n,r)||!mi(o,a))}function Vc(e,t){var n;t.updater=Wc,e.stateNode=t,n=e,t._reactInternals=n,t._reactInternalInstance=Oc}function $c(e,t,n){var r=!1,o=zu,a=zu,i=t.contextType;if("contextType"in t&&(!(null===i||void 0!==i&&i.$$typeof===oe&&void 0===i._context)&&!Nc.has(t))){Nc.add(t);var l="";l=void 0===i?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof i?" However, it is set to a "+typeof i+".":i.$$typeof===re?" Did you accidentally pass the Context.Provider instead?":void 0!==i._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(i).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Be(t)||"Component",l)}if("object"==typeof i&&null!==i)a=ac(i);else{o=Fu(0,t,!0);var s=t.contextTypes;a=(r=null!=s)?Uu(e,o):zu}if(1&e.mode){Re();try{new t(n,a)}finally{Pe()}}var c=new t(n,a),f=e.memoizedState=null!==c.state&&void 0!==c.state?c.state:null;if(Vc(e,c),"function"==typeof t.getDerivedStateFromProps&&null===f){var d=Be(t)||"Component";Sc.has(d)||(Sc.add(d),u("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",d,null===c.state?"null":"undefined",d))}if("function"==typeof t.getDerivedStateFromProps||"function"==typeof c.getSnapshotBeforeUpdate){var p=null,h=null,m=null;if("function"==typeof c.componentWillMount&&!0!==c.componentWillMount.__suppressDeprecationWarning?p="componentWillMount":"function"==typeof c.UNSAFE_componentWillMount&&(p="UNSAFE_componentWillMount"),"function"==typeof c.componentWillReceiveProps&&!0!==c.componentWillReceiveProps.__suppressDeprecationWarning?h="componentWillReceiveProps":"function"==typeof c.UNSAFE_componentWillReceiveProps&&(h="UNSAFE_componentWillReceiveProps"),"function"==typeof c.componentWillUpdate&&!0!==c.componentWillUpdate.__suppressDeprecationWarning?m="componentWillUpdate":"function"==typeof c.UNSAFE_componentWillUpdate&&(m="UNSAFE_componentWillUpdate"),null!==p||null!==h||null!==m){var v=Be(t)||"Component",y="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ec.has(v)||(Ec.add(v),u("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles",v,y,null!==p?"\n "+p:"",null!==h?"\n "+h:"",null!==m?"\n "+m:""))}}return r&&ju(e,o,a),c}function Hc(e,t,n,r){var o=t.state;if("function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==o){var a=Be(e.type)||"Component";kc.has(a)||(kc.add(a),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),Wc.enqueueReplaceState(t,t.state,null)}}function qc(e,t,n,r){!function(e,t,n){var r=e.stateNode,o=Be(t)||"Component";r.render||(t.prototype&&"function"==typeof t.prototype.render?u("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",o):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",o)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||u("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",o),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&u("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",o),r.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",o),r.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",o),r.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",o),t.contextType&&t.contextTypes&&!Pc.has(t)&&(Pc.add(t),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",o)),"function"==typeof r.componentShouldUpdate&&u("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",o),t.prototype&&t.prototype.isPureReactComponent&&void 0!==r.shouldComponentUpdate&&u("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Be(t)||"A pure component"),"function"==typeof r.componentDidUnmount&&u("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",o),"function"==typeof r.componentDidReceiveProps&&u("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",o),"function"==typeof r.componentWillRecieveProps&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",o),"function"==typeof r.UNSAFE_componentWillRecieveProps&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",o);var a=r.props!==n;void 0!==r.props&&a&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o,o),r.defaultProps&&u("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",o,o),"function"!=typeof r.getSnapshotBeforeUpdate||"function"==typeof r.componentDidUpdate||xc.has(t)||(xc.add(t),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Be(t))),"function"==typeof r.getDerivedStateFromProps&&u("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof r.getDerivedStateFromError&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof t.getSnapshotBeforeUpdate&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",o);var i=r.state;i&&("object"!=typeof i||Mc(i))&&u("%s.state: must be set to an object or null",o),"function"==typeof r.getChildContext&&"object"!=typeof t.childContextTypes&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",o)}(e,t,n);var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ic,cc(e);var a=t.contextType;if("object"==typeof a&&null!==a)o.context=ac(a);else{var i=Fu(0,t,!0);o.context=Uu(e,i)}if(o.state===n){var l=Be(t)||"Component";Rc.has(l)||(Rc.add(l),u("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",l))}1&e.mode&&Is.recordLegacyContextWarning(e,o),Is.recordUnsafeLifecycleWarnings(e,o),vc(e,n,o,r),o.state=e.memoizedState;var s=t.getDerivedStateFromProps;"function"==typeof s&&(Dc(e,t,s,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(!function(e,t){var n=t.state;"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),n!==t.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Be(e.type)||"Component"),Wc.enqueueReplaceState(t,t.state,null))}(e,o),vc(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var Qc;Lc=!1,Ac=!1,Fc={},jc={},Uc={},Qc=function(e,t){if(null!==e&&"object"==typeof e&&e._store&&!e._store.validated&&null==e.key){if("object"!=typeof e._store)throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=Be(t.type)||"Component";jc[n]||(jc[n]=!0,u('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var Yc=Array.isArray;function Jc(e,t,n){var r=n.ref;if(null!==r&&"function"!=typeof r&&"object"!=typeof r){if(1&e.mode&&(!n._owner||!n._self||n._owner.stateNode===n._self)){var o=Be(e.type)||"Component";Fc[o]||(u('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r),Fc[o]=!0)}if(n._owner){var a,i=n._owner;if(i){var l=i;if(1!==l.tag)throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");a=l.stateNode}if(!a)throw Error("Missing owner for string ref "+r+". This error is likely caused by a bug in React. Please file an issue.");var s=""+r;if(null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s)return t.ref;var c=function(e){var t=a.refs;t===Ic&&(t=a.refs={}),null===e?delete t[s]:t[s]=e};return c._stringRef=s,c}if("string"!=typeof r)throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw Error("Element ref was specified as a string ("+r+") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.")}return r}function Kc(e,t){if("textarea"!==e.type)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}function Xc(e){var t=Be(e.type)||"Component";Uc[t]||(Uc[t]=!0,u("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."))}function Gc(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(var o=r;null!==o;)t(n,o),o=o.sibling;return null}function r(e,t){for(var n=new Map,r=t;null!==r;)null!==r.key?n.set(r.key,r):n.set(r.index,r),r=r.sibling;return n}function o(e,t){var n=dy(e,t);return n.index=0,n.sibling=null,n}function a(t,n,r){if(t.index=r,!e)return n;var o=t.alternate;if(null!==o){var a=o.index;return a<n?(t.flags=2,n):a}return t.flags=2,n}function i(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){if(null===t||6!==t.tag){var a=gy(n,e.mode,r);return a.return=e,a}var i=o(t,n);return i.return=e,i}function s(e,t,n,r){if(null!==t&&(t.elementType===n.type||Xv(t,n))){var a=o(t,n.props);return a.ref=Jc(e,t,n),a.return=e,a._debugSource=n._source,a._debugOwner=n._owner,a}var i=my(n,e.mode,r);return i.ref=Jc(e,t,n),i.return=e,i}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var a=by(n,e.mode,r);return a.return=e,a}var i=o(t,n.children||[]);return i.return=e,i}function f(e,t,n,r,a){if(null===t||7!==t.tag){var i=vy(n,e.mode,r,a);return i.return=e,i}var l=o(t,n);return l.return=e,l}function p(e,t,n){if("string"==typeof t||"number"==typeof t){var r=gy(""+t,e.mode,n);return r.return=e,r}if("object"==typeof t&&null!==t){switch(t.$$typeof){case G:var o=my(t,e.mode,n);return o.ref=Jc(e,null,t),o.return=e,o;case Z:var a=by(t,e.mode,n);return a.return=e,a}if(Yc(t)||ge(t)){var i=vy(t,e.mode,n,null);return i.return=e,i}Kc(e,t)}return"function"==typeof t&&Xc(e),null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case G:return n.key===o?n.type===ee?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case Z:return n.key===o?c(e,t,n,r):null}if(Yc(n)||ge(n))return null!==o?null:f(e,t,n,r,null);Kc(e,n)}return"function"==typeof n&&Xc(e),null}function m(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case G:var a=e.get(null===r.key?n:r.key)||null;return r.type===ee?f(t,a,r.props.children,o,r.key):s(t,a,r,o);case Z:return c(t,e.get(null===r.key?n:r.key)||null,r,o)}if(Yc(r)||ge(r))return f(t,e.get(n)||null,r,o,null);Kc(t,r)}return"function"==typeof r&&Xc(t),null}function y(e,t,n){if("object"!=typeof e||null===e)return t;switch(e.$$typeof){case G:case Z:Qc(e,n);var r=e.key;if("string"!=typeof r)break;if(null===t){(t=new Set).add(r);break}if(!t.has(r)){t.add(r);break}u("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",r)}return t}return function(l,s,c,f){var g="object"==typeof c&&null!==c&&c.type===ee&&null===c.key;g&&(c=c.props.children);var b="object"==typeof c&&null!==c;if(b)switch(c.$$typeof){case G:return i(function(e,r,a,i){for(var l=a.key,u=r;null!==u;){if(u.key===l){switch(u.tag){case 7:if(a.type===ee){n(e,u.sibling);var s=o(u,a.props.children);return s.return=e,s._debugSource=a._source,s._debugOwner=a._owner,s}break;case w:default:if(u.elementType===a.type||Xv(u,a)){n(e,u.sibling);var c=o(u,a.props);return c.ref=Jc(e,u,a),c.return=e,c._debugSource=a._source,c._debugOwner=a._owner,c}}n(e,u);break}t(e,u),u=u.sibling}if(a.type===ee){var f=vy(a.props.children,e.mode,i,a.key);return f.return=e,f}var d=my(a,e.mode,i);return d.ref=Jc(e,r,a),d.return=e,d}(l,s,c,f));case Z:return i(function(e,r,a,i){for(var l=a.key,u=r;null!==u;){if(u.key===l){if(4===u.tag&&u.stateNode.containerInfo===a.containerInfo&&u.stateNode.implementation===a.implementation){n(e,u.sibling);var s=o(u,a.children||[]);return s.return=e,s}n(e,u);break}t(e,u),u=u.sibling}var c=by(a,e.mode,i);return c.return=e,c}(l,s,c,f))}if("string"==typeof c||"number"==typeof c)return i(function(e,t,r,a){if(null!==t&&6===t.tag){n(e,t.sibling);var i=o(t,r);return i.return=e,i}n(e,t);var l=gy(r,e.mode,a);return l.return=e,l}(l,s,""+c,f));if(Yc(c))return function(o,i,l,u){for(var s=null,c=0;c<l.length;c++)s=y(l[c],s,o);for(var f=null,d=null,v=i,g=0,b=0,w=null;null!==v&&b<l.length;b++){v.index>b?(w=v,v=null):w=v.sibling;var k=h(o,v,l[b],u);if(null===k){null===v&&(v=w);break}e&&v&&null===k.alternate&&t(o,v),g=a(k,g,b),null===d?f=k:d.sibling=k,d=k,v=w}if(b===l.length)return n(o,v),f;if(null===v){for(;b<l.length;b++){var S=p(o,l[b],u);null!==S&&(g=a(S,g,b),null===d?f=S:d.sibling=S,d=S)}return f}for(var x=r(0,v);b<l.length;b++){var E=m(x,o,b,l[b],u);null!==E&&(e&&null!==E.alternate&&x.delete(null===E.key?b:E.key),g=a(E,g,b),null===d?f=E:d.sibling=E,d=E)}return e&&x.forEach((function(e){return t(o,e)})),f}(l,s,c,f);if(ge(c))return function(o,i,l,s){var c=ge(l);if("function"!=typeof c)throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");"function"==typeof Symbol&&"Generator"===l[Symbol.toStringTag]&&(Ac||u("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Ac=!0),l.entries===c&&(Lc||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Lc=!0);var f=c.call(l);if(f)for(var d=null,v=f.next();!v.done;v=f.next())d=y(v.value,d,o);var g=c.call(l);if(null==g)throw Error("An iterable object provided no iterator.");for(var b=null,w=null,k=i,S=0,x=0,E=null,C=g.next();null!==k&&!C.done;x++,C=g.next()){k.index>x?(E=k,k=null):E=k.sibling;var _=h(o,k,C.value,s);if(null===_){null===k&&(k=E);break}e&&k&&null===_.alternate&&t(o,k),S=a(_,S,x),null===w?b=_:w.sibling=_,w=_,k=E}if(C.done)return n(o,k),b;if(null===k){for(;!C.done;x++,C=g.next()){var T=p(o,C.value,s);null!==T&&(S=a(T,S,x),null===w?b=T:w.sibling=T,w=T)}return b}for(var R=r(0,k);!C.done;x++,C=g.next()){var P=m(R,o,x,C.value,s);null!==P&&(e&&null!==P.alternate&&R.delete(null===P.key?x:P.key),S=a(P,S,x),null===w?b=P:w.sibling=P,w=P)}return e&&R.forEach((function(e){return t(o,e)})),b}(l,s,c,f);if(b&&Kc(l,c),"function"==typeof c&&Xc(l),void 0===c&&!g)switch(l.tag){case 1:if(l.stateNode.render._isMockFunction)break;case w:case 0:case d:case v:throw Error((Be(l.type)||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}return n(l,s)}}var Zc=Gc(!0),ef=Gc(!1);function tf(e,t){for(var n=e.child;null!==n;)py(n,t),n=n.sibling}var nf={},rf=Ou(nf),of=Ou(nf),af=Ou(nf);function lf(e){if(e===nf)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function uf(){return lf(af.current)}function sf(e,t){Iu(af,t,e),Iu(of,e,e),Iu(rf,nf,e);var n=function(e){var t,n,r=e.nodeType;switch(r){case 9:case 11:t=9===r?"#document":"#fragment";var o=e.documentElement;n=o?o.namespaceURI:Ut(null,"");break;default:var a=8===r?e.parentNode:e;n=Ut(a.namespaceURI||null,t=a.tagName)}var i=t.toLowerCase();return{namespace:n,ancestorInfo:Ol(null,i)}}(t);Mu(rf,e),Iu(rf,n,e)}function cf(e){Mu(rf,e),Mu(of,e),Mu(af,e)}function ff(){return lf(rf.current)}function df(e){lf(af.current);var t,n,r,o=lf(rf.current),a=(t=o,n=e.type,{namespace:Ut((r=t).namespace,n),ancestorInfo:Ol(r.ancestorInfo,n)});o!==a&&(Iu(of,e,e),Iu(rf,a,e))}function pf(e){of.current===e&&(Mu(rf,e),Mu(of,e))}var hf=Ou(0);function mf(e,t){return 0!=(e&t)}function vf(e){return 1&e}function yf(e,t){return 1&e|t}function gf(e,t){Iu(hf,t,e)}function bf(e){Mu(hf,e)}function wf(e,t){var n=e.memoizedState;if(null!==n)return null!==n.dehydrated;var r=e.memoizedProps;return void 0!==r.fallback&&(!0!==r.unstable_avoidThisFallback||!t)}function kf(e){for(var t=e;null!==t;){if(t.tag===h){var n=t.memoizedState;if(null!==n){var r=n.dehydrated;if(null===r||r.data===Fl||tu(r))return t}}else if(t.tag===g&&void 0!==t.memoizedProps.revealOrder){if(0!=(t.flags&dr))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)return null;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 Sf=null,xf=null,Ef=!1;function Cf(e,t){switch(e.tag){case 3:!function(e,t){1===t.nodeType?_l(e,t):8===t.nodeType||Tl(e,t)}(e.stateNode.containerInfo,t);break;case 5:!function(e,t,n,r){!0!==t.suppressHydrationWarning&&(1===r.nodeType?_l(n,r):8===r.nodeType||Tl(n,r))}(e.type,e.memoizedProps,e.stateNode,t)}var n,r=((n=cy(5,null,null,0)).elementType="DELETED",n.type="DELETED",n);r.stateNode=t,r.return=e,r.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function _f(e,t){switch(t.flags=-1025&t.flags|2,e.tag){case 3:var n=e.stateNode.containerInfo;switch(t.tag){case 5:var r=t.type;t.pendingProps,function(e,t,n){Rl(e,t)}(n,r);break;case 6:!function(e,t){Pl(e,t)}(n,t.pendingProps)}break;case 5:e.type;var o=e.memoizedProps,a=e.stateNode;switch(t.tag){case 5:var i=t.type;t.pendingProps,function(e,t,n,r,o){!0!==t.suppressHydrationWarning&&Rl(n,r)}(0,o,a,i);break;case 6:!function(e,t,n,r){!0!==t.suppressHydrationWarning&&Pl(n,r)}(0,o,a,t.pendingProps);break;case h:!function(e,t,n){t.suppressHydrationWarning}(0,o)}break;default:return}}function Tf(e,t){switch(e.tag){case 5:var n=e.type;e.pendingProps;var r=function(e,t,n){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}(t,n);return null!==r&&(e.stateNode=r,!0);case 6:var o=function(e,t){return""===t||3!==e.nodeType?null:e}(t,e.pendingProps);return null!==o&&(e.stateNode=o,!0);case h:default:return!1}}function Rf(e){if(Ef){var t=xf;if(!t)return _f(Sf,e),Ef=!1,void(Sf=e);var n=t;if(!Tf(e,t)){if(!(t=ru(n))||!Tf(e,t))return _f(Sf,e),Ef=!1,void(Sf=e);Cf(Sf,n)}Sf=e,xf=ou(t)}}function Pf(e){var t=e.stateNode,n=e.memoizedProps,r=function(e,t,n){return hu(n,e),function(e,t){return e.nodeValue!==t}(e,t)}(t,n,e);if(r){var o=Sf;if(null!==o)switch(o.tag){case 3:o.stateNode.containerInfo;!function(e,t,n){Cl(t,n)}(0,t,n);break;case 5:o.type;var a=o.memoizedProps;o.stateNode;!function(e,t,n,r,o){!0!==t.suppressHydrationWarning&&Cl(r,o)}(0,a,0,t,n)}}return r}function Nf(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return function(e){for(var t=e.nextSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if("/$"===r){if(0===n)return ru(t);n--}else"$"!==r&&r!==jl&&r!==Fl||n++}t=t.nextSibling}return null}(n)}function Of(e){for(var t=e.return;null!==t&&5!==t.tag&&3!==t.tag&&t.tag!==h;)t=t.return;Sf=t}function Mf(e){if(e!==Sf)return!1;if(!Ef)return Of(e),Ef=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hl(t,e.memoizedProps))for(var n=xf;n;)Cf(e,n),n=ru(n);return Of(e),xf=e.tag===h?Nf(e):Sf?ru(e.stateNode):null,!0}function If(){Sf=null,xf=null,Ef=!1}function zf(){return Ef}var Df,Lf=[];function Af(){for(var e=0;e<Lf.length;e++){Lf[e]._workInProgressVersionPrimary=null}Lf.length=0}function Ff(e,t){e._workInProgressVersionPrimary=t,Lf.push(e)}Df={};var jf,Uf,Wf=a.ReactCurrentDispatcher,Bf=a.ReactCurrentBatchConfig;Uf={},jf=new Set;var $f=0,Hf=null,qf=null,Qf=null,Yf=!1,Jf=!1,Kf=null,Xf=null,Gf=-1,Zf=!1;function ed(){var e=Kf;null===Xf?Xf=[e]:Xf.push(e)}function td(){var e=Kf;null!==Xf&&(Gf++,Xf[Gf]!==e&&function(e){var t=Be(Hf.type);if(!jf.has(t)&&(jf.add(t),null!==Xf)){for(var n="",r=30,o=0;o<=Gf;o++){for(var a=Xf[o],i=o===Gf?e:a,l=o+1+". "+a;l.length<r;)l+=" ";n+=l+=i+"\n"}u("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}(e))}function nd(e){null==e||Array.isArray(e)||u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Kf,typeof e)}function rd(){throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.")}function od(e,t){if(Zf)return!1;if(null===t)return u("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Kf),!1;e.length!==t.length&&u("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",Kf,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!pi(e[n],t[n]))return!1;return!0}function ad(e,t,n,r,o,a){$f=a,Hf=t,Xf=null!==e?e._debugHookTypes:null,Gf=-1,Zf=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=0,null!==e&&null!==e.memoizedState?Wf.current=tp:Wf.current=null!==Xf?ep:Zd;var i=n(r,o);if(Jf){var l=0;do{if(Jf=!1,!(l<25))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,Zf=!1,qf=null,Qf=null,t.updateQueue=null,Gf=-1,Wf.current=np,i=n(r,o)}while(Jf)}Wf.current=Gd,t._debugHookTypes=Xf;var u=null!==qf&&null!==qf.next;if($f=0,Hf=null,qf=null,Qf=null,Kf=null,Xf=null,Gf=-1,Yf=!1,u)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return i}function id(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes=Fo(e.lanes,n)}function ld(){if(Wf.current=Gd,Yf){for(var e=Hf.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Yf=!1}$f=0,Hf=null,qf=null,Qf=null,Xf=null,Gf=-1,Kf=null,qd=!1,Jf=!1}function ud(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qf?Hf.memoizedState=Qf=e:Qf=Qf.next=e,Qf}function sd(){var e,t;if(null===qf){var n=Hf.alternate;e=null!==n?n.memoizedState:null}else e=qf.next;if(null!==(t=null===Qf?Hf.memoizedState:Qf.next))t=(Qf=t).next,qf=e;else{if(null===e)throw Error("Rendered more hooks than during the previous render.");var r={memoizedState:(qf=e).memoizedState,baseState:qf.baseState,baseQueue:qf.baseQueue,queue:qf.queue,next:null};null===Qf?Hf.memoizedState=Qf=r:Qf=Qf.next=r}return Qf}function cd(e,t){return"function"==typeof t?t(e):t}function fd(e,t,n){var r,o=ud();r=void 0!==n?n(t):t,o.memoizedState=o.baseState=r;var a=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i=a.dispatch=Xd.bind(null,Hf,a);return[o.memoizedState,i]}function dd(e,t,n){var r=sd(),o=r.queue;if(null===o)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var a=qf,i=a.baseQueue,l=o.pending;if(null!==l){if(null!==i){var s=i.next,c=l.next;i.next=c,l.next=s}a.baseQueue!==i&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),a.baseQueue=i=l,o.pending=null}if(null!==i){var f=i.next,d=a.baseState,p=null,h=null,m=null,v=f;do{var y=v.lane;if(Lo($f,y)){if(null!==m){var g={lane:0,action:v.action,eagerReducer:v.eagerReducer,eagerState:v.eagerState,next:null};m=m.next=g}if(v.eagerReducer===e)d=v.eagerState;else d=e(d,v.action)}else{var b={lane:y,action:v.action,eagerReducer:v.eagerReducer,eagerState:v.eagerState,next:null};null===m?(h=m=b,p=d):m=m.next=b,Hf.lanes=Ao(Hf.lanes,y),rv(y)}v=v.next}while(null!==v&&v!==f);null===m?p=d:m.next=h,pi(d,r.memoizedState)||ih(),r.memoizedState=d,r.baseState=p,r.baseQueue=m,o.lastRenderedState=d}var w=o.dispatch;return[r.memoizedState,w]}function pd(e,t,n){var r=sd(),o=r.queue;if(null===o)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var a=o.dispatch,i=o.pending,l=r.memoizedState;if(null!==i){o.pending=null;var u=i.next,s=u;do{l=e(l,s.action),s=s.next}while(s!==u);pi(l,r.memoizedState)||ih(),r.memoizedState=l,null===r.baseQueue&&(r.baseState=l),o.lastRenderedState=l}return[l,a]}function hd(e,t,n){var r;null==(r=t)._currentPrimaryRenderer?r._currentPrimaryRenderer=Df:r._currentPrimaryRenderer!==Df&&u("Detected multiple renderers concurrently rendering the same mutable source. This is currently unsupported.");var o=(0,t._getVersion)(t._source),a=!1,i=function(e){return e._workInProgressVersionPrimary}(t);if(null!==i?a=i===o:(a=Lo($f,e.mutableReadLanes))&&Ff(t,o),a){var l=n(t._source);return"function"==typeof l&&u("Mutable source should not return a function as the snapshot value. Functions may close over mutable values and cause tearing."),l}throw function(e){Lf.push(e)}(t),Error("Cannot read from mutable source during the current render without tearing. This is a bug in React. Please file an issue.")}function md(e,t,n,r){var o=em;if(null===o)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");var a=t._getVersion,i=a(t._source),l=Wf.current,s=l.useState((function(){return hd(o,t,n)})),c=s[0],f=s[1],d=c,p=Qf,h=e.memoizedState,m=h.refs,v=m.getSnapshot,y=h.source,g=h.subscribe,b=Hf;if(e.memoizedState={refs:m,source:t,subscribe:r},l.useEffect((function(){m.getSnapshot=n,m.setSnapshot=f;var e=a(t._source);if(!pi(i,e)){var r=n(t._source);if("function"==typeof r&&u("Mutable source should not return a function as the snapshot value. Functions may close over mutable values and cause tearing."),!pi(d,r)){f(r);var l=Fm(b);Bo(o,l)}!function(e,t){e.entangledLanes|=t;for(var n=e.entanglements,r=t;r>0;){var o=zo(r),a=1<<o;n[o]|=t,r&=~a}}(o,o.mutableReadLanes)}}),[n,t,r]),l.useEffect((function(){var e=r(t._source,(function(){var e=m.getSnapshot,n=m.setSnapshot;try{n(e(t._source));var r=Fm(b);Bo(o,r)}catch(e){n((function(){throw e}))}}));return"function"!=typeof e&&u("Mutable source subscribe function must return an unsubscribe function."),e}),[t,r]),!pi(v,n)||!pi(y,t)||!pi(g,r)){var w={pending:null,dispatch:null,lastRenderedReducer:cd,lastRenderedState:d};w.dispatch=f=Xd.bind(null,Hf,w),p.queue=w,p.baseQueue=null,d=hd(o,t,n),p.memoizedState=p.baseState=d}return d}function vd(e,t,n){var r=ud();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},md(r,e,t,n)}function yd(e,t,n){return md(sd(),e,t,n)}function gd(e){var t=ud();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n=t.queue={pending:null,dispatch:null,lastRenderedReducer:cd,lastRenderedState:e},r=n.dispatch=Xd.bind(null,Hf,n);return[t.memoizedState,r]}function bd(e){return dd(cd)}function wd(e){return pd(cd)}function kd(e,t,n,r){var o={tag:e,create:t,destroy:n,deps:r,next:null},a=Hf.updateQueue;if(null===a)a={lastEffect:null},Hf.updateQueue=a,a.lastEffect=o.next=o;else{var i=a.lastEffect;if(null===i)a.lastEffect=o.next=o;else{var l=i.next;i.next=o,o.next=l,a.lastEffect=o}}return o}function Sd(e){var t=ud(),n={current:e};return Object.seal(n),t.memoizedState=n,n}function xd(e){return sd().memoizedState}function Ed(e,t,n,r){var o=ud(),a=void 0===r?null:r;Hf.flags|=e,o.memoizedState=kd(1|t,n,void 0,a)}function Cd(e,t,n,r){var o=sd(),a=void 0===r?null:r,i=void 0;if(null!==qf){var l=qf.memoizedState;if(i=l.destroy,null!==a)if(od(a,l.deps))return void kd(t,n,i,a)}Hf.flags|=e,o.memoizedState=kd(1|t,n,i,a)}function _d(e,t){return"undefined"!=typeof jest&&zv(Hf),Ed(516,4,e,t)}function Td(e,t){return"undefined"!=typeof jest&&zv(Hf),Cd(516,4,e,t)}function Rd(e,t){return Ed(4,2,e,t)}function Pd(e,t){return Cd(4,2,e,t)}function Nd(e,t){if("function"==typeof t){var n=t,r=e();return n(r),function(){n(null)}}if(null!=t){var o=t;o.hasOwnProperty("current")||u("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}");var a=e();return o.current=a,function(){o.current=null}}}function Od(e,t,n){"function"!=typeof t&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return Ed(4,2,Nd.bind(null,t,e),r)}function Md(e,t,n){"function"!=typeof t&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return Cd(4,2,Nd.bind(null,t,e),r)}function Id(e,t){}var zd=Id;function Dd(e,t){var n=void 0===t?null:t;return ud().memoizedState=[e,n],e}function Ld(e,t){var n=sd(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&(null!==r&&od(r,o[1])))return o[0];return n.memoizedState=[e,r],e}function Ad(e,t){var n=ud(),r=void 0===t?null:t,o=e();return n.memoizedState=[o,r],o}function Fd(e,t){var n=sd(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&(null!==r&&od(r,o[1])))return o[0];var a=e();return n.memoizedState=[a,r],a}function jd(e){var t=gd(e),n=t[0],r=t[1];return _d((function(){var t=Bf.transition;Bf.transition=1;try{r(e)}finally{Bf.transition=t}}),[e]),n}function Ud(e){var t=bd(),n=t[0],r=t[1];return Td((function(){var t=Bf.transition;Bf.transition=1;try{r(e)}finally{Bf.transition=t}}),[e]),n}function Wd(e){var t=wd(),n=t[0],r=t[1];return Td((function(){var t=Bf.transition;Bf.transition=1;try{r(e)}finally{Bf.transition=t}}),[e]),n}function Bd(e,t){var n=Es();_s(n<ms?ms:n,(function(){e(!0)})),_s(n>vs?vs:n,(function(){var n=Bf.transition;Bf.transition=1;try{e(!1),t()}finally{Bf.transition=n}}))}function Vd(){var e=gd(!1),t=e[0],n=e[1],r=Bd.bind(null,n);return Sd(r),[r,t]}function $d(){var e=bd()[0];return[xd().current,e]}function Hd(){var e=wd()[0];return[xd().current,e]}var qd=!1;function Qd(e){var t=Be(e.type)||"Unknown";He&&!Uf[t]&&(u("The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly."),Uf[t]=!0)}function Yd(){var e=uu.bind(null,Qd.bind(null,Hf));if(zf()){var t=!1,n=Hf,r={$$typeof:de,toString:a=function(){throw t||(t=!0,qd=!0,o(e()),qd=!1,Qd(n)),Error("The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly.")},valueOf:a},o=gd(r)[1];return 0==(2&Hf.mode)&&(Hf.flags|=516,kd(5,(function(){o(e())}),void 0,null)),r}var a,i=e();return gd(i),i}function Jd(){return bd()[0]}function Kd(){return wd()[0]}function Xd(e,t,n){"function"==typeof arguments[3]&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=Am(),o=Fm(e),a={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a;var l=e.alternate;if(e===Hf||null!==l&&l===Hf)Jf=Yf=!0;else{if(0===e.lanes&&(null===l||0===l.lanes)){var s=t.lastRenderedReducer;if(null!==s){var c;c=Wf.current,Wf.current=op;try{var f=t.lastRenderedState,d=s(f,n);if(a.eagerReducer=s,a.eagerState=d,pi(d,f))return}catch(e){}finally{Wf.current=c}}}"undefined"!=typeof jest&&(Iv(e),Dv(e)),Um(e,o,r)}}var Gd={readContext:ac,useCallback:rd,useContext:rd,useEffect:rd,useImperativeHandle:rd,useLayoutEffect:rd,useMemo:rd,useReducer:rd,useRef:rd,useState:rd,useDebugValue:rd,useDeferredValue:rd,useTransition:rd,useMutableSource:rd,useOpaqueIdentifier:rd,unstable_isNewReconciler:x},Zd=null,ep=null,tp=null,np=null,rp=null,op=null,ap=null,ip=function(){u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},lp=function(){u("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Zd={readContext:function(e,t){return ac(e,t)},useCallback:function(e,t){return Kf="useCallback",ed(),nd(t),Dd(e,t)},useContext:function(e,t){return Kf="useContext",ed(),ac(e,t)},useEffect:function(e,t){return Kf="useEffect",ed(),nd(t),_d(e,t)},useImperativeHandle:function(e,t,n){return Kf="useImperativeHandle",ed(),nd(n),Od(e,t,n)},useLayoutEffect:function(e,t){return Kf="useLayoutEffect",ed(),nd(t),Rd(e,t)},useMemo:function(e,t){Kf="useMemo",ed(),nd(t);var n=Wf.current;Wf.current=rp;try{return Ad(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Kf="useReducer",ed();var r=Wf.current;Wf.current=rp;try{return fd(e,t,n)}finally{Wf.current=r}},useRef:function(e){return Kf="useRef",ed(),Sd(e)},useState:function(e){Kf="useState",ed();var t=Wf.current;Wf.current=rp;try{return gd(e)}finally{Wf.current=t}},useDebugValue:function(e,t){Kf="useDebugValue",ed()},useDeferredValue:function(e){return Kf="useDeferredValue",ed(),jd(e)},useTransition:function(){return Kf="useTransition",ed(),Vd()},useMutableSource:function(e,t,n){return Kf="useMutableSource",ed(),vd(e,t,n)},useOpaqueIdentifier:function(){return Kf="useOpaqueIdentifier",ed(),Yd()},unstable_isNewReconciler:x},ep={readContext:function(e,t){return ac(e,t)},useCallback:function(e,t){return Kf="useCallback",td(),Dd(e,t)},useContext:function(e,t){return Kf="useContext",td(),ac(e,t)},useEffect:function(e,t){return Kf="useEffect",td(),_d(e,t)},useImperativeHandle:function(e,t,n){return Kf="useImperativeHandle",td(),Od(e,t,n)},useLayoutEffect:function(e,t){return Kf="useLayoutEffect",td(),Rd(e,t)},useMemo:function(e,t){Kf="useMemo",td();var n=Wf.current;Wf.current=rp;try{return Ad(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Kf="useReducer",td();var r=Wf.current;Wf.current=rp;try{return fd(e,t,n)}finally{Wf.current=r}},useRef:function(e){return Kf="useRef",td(),Sd(e)},useState:function(e){Kf="useState",td();var t=Wf.current;Wf.current=rp;try{return gd(e)}finally{Wf.current=t}},useDebugValue:function(e,t){Kf="useDebugValue",td()},useDeferredValue:function(e){return Kf="useDeferredValue",td(),jd(e)},useTransition:function(){return Kf="useTransition",td(),Vd()},useMutableSource:function(e,t,n){return Kf="useMutableSource",td(),vd(e,t,n)},useOpaqueIdentifier:function(){return Kf="useOpaqueIdentifier",td(),Yd()},unstable_isNewReconciler:x},tp={readContext:function(e,t){return ac(e,t)},useCallback:function(e,t){return Kf="useCallback",td(),Ld(e,t)},useContext:function(e,t){return Kf="useContext",td(),ac(e,t)},useEffect:function(e,t){return Kf="useEffect",td(),Td(e,t)},useImperativeHandle:function(e,t,n){return Kf="useImperativeHandle",td(),Md(e,t,n)},useLayoutEffect:function(e,t){return Kf="useLayoutEffect",td(),Pd(e,t)},useMemo:function(e,t){Kf="useMemo",td();var n=Wf.current;Wf.current=op;try{return Fd(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Kf="useReducer",td();var r=Wf.current;Wf.current=op;try{return dd(e)}finally{Wf.current=r}},useRef:function(e){return Kf="useRef",td(),xd()},useState:function(e){Kf="useState",td();var t=Wf.current;Wf.current=op;try{return bd()}finally{Wf.current=t}},useDebugValue:function(e,t){return Kf="useDebugValue",td(),zd()},useDeferredValue:function(e){return Kf="useDeferredValue",td(),Ud(e)},useTransition:function(){return Kf="useTransition",td(),$d()},useMutableSource:function(e,t,n){return Kf="useMutableSource",td(),yd(e,t,n)},useOpaqueIdentifier:function(){return Kf="useOpaqueIdentifier",td(),Jd()},unstable_isNewReconciler:x},np={readContext:function(e,t){return ac(e,t)},useCallback:function(e,t){return Kf="useCallback",td(),Ld(e,t)},useContext:function(e,t){return Kf="useContext",td(),ac(e,t)},useEffect:function(e,t){return Kf="useEffect",td(),Td(e,t)},useImperativeHandle:function(e,t,n){return Kf="useImperativeHandle",td(),Md(e,t,n)},useLayoutEffect:function(e,t){return Kf="useLayoutEffect",td(),Pd(e,t)},useMemo:function(e,t){Kf="useMemo",td();var n=Wf.current;Wf.current=ap;try{return Fd(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Kf="useReducer",td();var r=Wf.current;Wf.current=ap;try{return pd(e)}finally{Wf.current=r}},useRef:function(e){return Kf="useRef",td(),xd()},useState:function(e){Kf="useState",td();var t=Wf.current;Wf.current=ap;try{return wd()}finally{Wf.current=t}},useDebugValue:function(e,t){return Kf="useDebugValue",td(),zd()},useDeferredValue:function(e){return Kf="useDeferredValue",td(),Wd(e)},useTransition:function(){return Kf="useTransition",td(),Hd()},useMutableSource:function(e,t,n){return Kf="useMutableSource",td(),yd(e,t,n)},useOpaqueIdentifier:function(){return Kf="useOpaqueIdentifier",td(),Kd()},unstable_isNewReconciler:x},rp={readContext:function(e,t){return ip(),ac(e,t)},useCallback:function(e,t){return Kf="useCallback",lp(),ed(),Dd(e,t)},useContext:function(e,t){return Kf="useContext",lp(),ed(),ac(e,t)},useEffect:function(e,t){return Kf="useEffect",lp(),ed(),_d(e,t)},useImperativeHandle:function(e,t,n){return Kf="useImperativeHandle",lp(),ed(),Od(e,t,n)},useLayoutEffect:function(e,t){return Kf="useLayoutEffect",lp(),ed(),Rd(e,t)},useMemo:function(e,t){Kf="useMemo",lp(),ed();var n=Wf.current;Wf.current=rp;try{return Ad(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Kf="useReducer",lp(),ed();var r=Wf.current;Wf.current=rp;try{return fd(e,t,n)}finally{Wf.current=r}},useRef:function(e){return Kf="useRef",lp(),ed(),Sd(e)},useState:function(e){Kf="useState",lp(),ed();var t=Wf.current;Wf.current=rp;try{return gd(e)}finally{Wf.current=t}},useDebugValue:function(e,t){Kf="useDebugValue",lp(),ed()},useDeferredValue:function(e){return Kf="useDeferredValue",lp(),ed(),jd(e)},useTransition:function(){return Kf="useTransition",lp(),ed(),Vd()},useMutableSource:function(e,t,n){return Kf="useMutableSource",lp(),ed(),vd(e,t,n)},useOpaqueIdentifier:function(){return Kf="useOpaqueIdentifier",lp(),ed(),Yd()},unstable_isNewReconciler:x},op={readContext:function(e,t){return ip(),ac(e,t)},useCallback:function(e,t){return Kf="useCallback",lp(),td(),Ld(e,t)},useContext:function(e,t){return Kf="useContext",lp(),td(),ac(e,t)},useEffect:function(e,t){return Kf="useEffect",lp(),td(),Td(e,t)},useImperativeHandle:function(e,t,n){return Kf="useImperativeHandle",lp(),td(),Md(e,t,n)},useLayoutEffect:function(e,t){return Kf="useLayoutEffect",lp(),td(),Pd(e,t)},useMemo:function(e,t){Kf="useMemo",lp(),td();var n=Wf.current;Wf.current=op;try{return Fd(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Kf="useReducer",lp(),td();var r=Wf.current;Wf.current=op;try{return dd(e)}finally{Wf.current=r}},useRef:function(e){return Kf="useRef",lp(),td(),xd()},useState:function(e){Kf="useState",lp(),td();var t=Wf.current;Wf.current=op;try{return bd()}finally{Wf.current=t}},useDebugValue:function(e,t){return Kf="useDebugValue",lp(),td(),zd()},useDeferredValue:function(e){return Kf="useDeferredValue",lp(),td(),Ud(e)},useTransition:function(){return Kf="useTransition",lp(),td(),$d()},useMutableSource:function(e,t,n){return Kf="useMutableSource",lp(),td(),yd(e,t,n)},useOpaqueIdentifier:function(){return Kf="useOpaqueIdentifier",lp(),td(),Jd()},unstable_isNewReconciler:x},ap={readContext:function(e,t){return ip(),ac(e,t)},useCallback:function(e,t){return Kf="useCallback",lp(),td(),Ld(e,t)},useContext:function(e,t){return Kf="useContext",lp(),td(),ac(e,t)},useEffect:function(e,t){return Kf="useEffect",lp(),td(),Td(e,t)},useImperativeHandle:function(e,t,n){return Kf="useImperativeHandle",lp(),td(),Md(e,t,n)},useLayoutEffect:function(e,t){return Kf="useLayoutEffect",lp(),td(),Pd(e,t)},useMemo:function(e,t){Kf="useMemo",lp(),td();var n=Wf.current;Wf.current=op;try{return Fd(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Kf="useReducer",lp(),td();var r=Wf.current;Wf.current=op;try{return pd(e)}finally{Wf.current=r}},useRef:function(e){return Kf="useRef",lp(),td(),xd()},useState:function(e){Kf="useState",lp(),td();var t=Wf.current;Wf.current=op;try{return wd()}finally{Wf.current=t}},useDebugValue:function(e,t){return Kf="useDebugValue",lp(),td(),zd()},useDeferredValue:function(e){return Kf="useDeferredValue",lp(),td(),Wd(e)},useTransition:function(){return Kf="useTransition",lp(),td(),Hd()},useMutableSource:function(e,t,n){return Kf="useMutableSource",lp(),td(),yd(e,t,n)},useOpaqueIdentifier:function(){return Kf="useOpaqueIdentifier",lp(),td(),Kd()},unstable_isNewReconciler:x};var up=r.unstable_now,sp=0,cp=-1;function fp(){return sp}function dp(){sp=up()}function pp(e){cp=up(),e.actualStartTime<0&&(e.actualStartTime=up())}function hp(e){cp=-1}function mp(e,t){if(cp>=0){var n=up()-cp;e.actualDuration+=n,t&&(e.selfBaseDuration=n),cp=-1}}function vp(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}var yp,gp,bp,wp,kp,Sp,xp,Ep,Cp=a.ReactCurrentOwner,_p=!1;function Tp(e,t,n,r){t.child=null===e?ef(t,null,n,r):Zc(t,e.child,n,r)}function Rp(e,t,n,r,o){if(t.type!==t.elementType){var a=n.propTypes;a&&_u(a,r,"prop",Be(n))}var i,l=n.render,u=t.ref;if(oc(t,o),Cp.current=t,Ke(!0),i=ad(e,t,l,r,u,o),1&t.mode){Re();try{i=ad(e,t,l,r,u,o)}finally{Pe()}}return Ke(!1),null===e||_p?(t.flags|=1,Tp(e,t,i,o),t.child):(id(e,t,o),lh(e,t,o))}function Pp(e,t,n,r,o,a){if(null===e){var i=n.type;if(function(e){return"function"==typeof e&&!fy(e)&&void 0===e.defaultProps}(i)&&null===n.compare&&void 0===n.defaultProps){var l;return l=Yv(i),t.tag=v,t.type=l,Up(t,i),Np(e,t,l,r,o,a)}var u=i.propTypes;u&&_u(u,r,"prop",Be(i));var s=hy(n.type,null,r,t,t.mode,a);return s.ref=t.ref,s.return=t,t.child=s,s}var c=n.type,f=c.propTypes;f&&_u(f,r,"prop",Be(c));var d=e.child;if(!Do(o,a)){var p=d.memoizedProps,h=n.compare;if((h=null!==h?h:mi)(p,r)&&e.ref===t.ref)return lh(e,t,a)}t.flags|=1;var m=dy(d,r);return m.ref=t.ref,m.return=t,t.child=m,m}function Np(e,t,n,r,o,a){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===se){var l=i,u=l._payload,s=l._init;try{i=s(u)}catch(e){i=null}var c=i&&i.propTypes;c&&_u(c,r,"prop",Be(i))}}if(null!==e&&(mi(e.memoizedProps,r)&&e.ref===t.ref&&t.type===e.type)){if(_p=!1,!Do(a,o))return t.lanes=e.lanes,lh(e,t,a);0!=(e.flags&wr)&&(_p=!0)}return zp(e,t,n,r,a)}function Op(e,t,n){var r,o=t.pendingProps,a=o.children,i=null!==e?e.memoizedState:null;if("hidden"===o.mode||"unstable-defer-without-hiding"===o.mode)if(0==(4&t.mode)){var l={baseLanes:0};t.memoizedState=l,Jm(t,n)}else{if(!Do(n,xo)){var u;if(null!==i)u=Ao(i.baseLanes,n);else u=n;Fv(xo),t.lanes=t.childLanes=xo;var s={baseLanes:u};return t.memoizedState=s,Jm(t,u),null}var c={baseLanes:0};t.memoizedState=c,Jm(t,null!==i?i.baseLanes:n)}else null!==i?(r=Ao(i.baseLanes,n),t.memoizedState=null):r=n,Jm(t,r);return Tp(e,t,a,n),t.child}yp={},gp={},bp={},wp={},kp={},Sp=!1,xp={},Ep={};var Mp=Op;function Ip(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=pr)}function zp(e,t,n,r,o){if(t.type!==t.elementType){var a=n.propTypes;a&&_u(a,r,"prop",Be(n))}var i,l;if(i=Uu(t,Fu(0,n,!0)),oc(t,o),Cp.current=t,Ke(!0),l=ad(e,t,n,r,i,o),1&t.mode){Re();try{l=ad(e,t,n,r,i,o)}finally{Pe()}}return Ke(!1),null===e||_p?(t.flags|=1,Tp(e,t,l,o),t.child):(id(e,t,o),lh(e,t,o))}function Dp(e,t,n,r,o){if(t.type!==t.elementType){var a=n.propTypes;a&&_u(a,r,"prop",Be(n))}var i,l;Bu(n)?(i=!0,Qu(t)):i=!1,oc(t,o),null===t.stateNode?(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),$c(t,n,r),qc(t,n,r,o),l=!0):l=null===e?function(e,t,n,r){var o=e.stateNode,a=e.memoizedProps;o.props=a;var i=o.context,l=t.contextType,u=zu;u="object"==typeof l&&null!==l?ac(l):Uu(e,Fu(0,t,!0));var s=t.getDerivedStateFromProps,c="function"==typeof s||"function"==typeof o.getSnapshotBeforeUpdate;c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||a===n&&i===u||Hc(e,o,n,u),gc();var f=e.memoizedState,d=o.state=f;if(vc(e,n,o,r),d=e.memoizedState,a===n&&f===d&&!Wu()&&!bc())return"function"==typeof o.componentDidMount&&(e.flags|=4),!1;"function"==typeof s&&(Dc(e,t,s,n),d=e.memoizedState);var p=bc()||Bc(e,t,a,n,f,d,u);return p?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(e.flags|=4)):("function"==typeof o.componentDidMount&&(e.flags|=4),e.memoizedProps=n,e.memoizedState=d),o.props=n,o.state=d,o.context=u,p}(t,n,r,o):function(e,t,n,r,o){var a=t.stateNode;fc(e,t);var i=t.memoizedProps,l=t.type===t.elementType?i:$s(t.type,i);a.props=l;var u=t.pendingProps,s=a.context,c=n.contextType,f=zu;f="object"==typeof c&&null!==c?ac(c):Uu(t,Fu(0,n,!0));var d=n.getDerivedStateFromProps,p="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||i===u&&s===f||Hc(t,a,r,f),gc();var h=t.memoizedState,m=a.state=h;if(vc(t,r,a,o),m=t.memoizedState,i===u&&h===m&&!Wu()&&!bc())return"function"==typeof a.componentDidUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof a.getSnapshotBeforeUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=hr)),!1;"function"==typeof d&&(Dc(t,n,d,r),m=t.memoizedState);var v=bc()||Bc(t,n,l,r,h,m,f);return v?(p||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,f),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,f)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=hr)):("function"==typeof a.componentDidUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof a.getSnapshotBeforeUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=hr)),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=f,v}(e,t,n,r,o);var s=Lp(e,t,n,l,i,o),c=t.stateNode;return l&&c.props!==r&&(Sp||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Be(t.type)||"a component"),Sp=!0),s}function Lp(e,t,n,r,o,a){Ip(e,t);var i=0!=(t.flags&dr);if(!r&&!i)return o&&Yu(t,n,!1),lh(e,t,a);var l,u=t.stateNode;if(Cp.current=t,i&&"function"!=typeof n.getDerivedStateFromError)l=null,hp();else{if(Ke(!0),l=u.render(),1&t.mode){Re();try{u.render()}finally{Pe()}}Ke(!1)}return t.flags|=1,null!==e&&i?function(e,t,n,r){t.child=Zc(t,e.child,null,r),t.child=Zc(t,null,n,r)}(e,t,l,a):Tp(e,t,l,a),t.memoizedState=u.state,o&&Yu(t,n,!0),t.child}function Ap(e){var t=e.stateNode;t.pendingContext?Hu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hu(e,t.context,!1),sf(e,t.containerInfo)}function Fp(e,t,n){Ap(t);var r=t.updateQueue;if(null===e||null===r)throw Error("If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.");var o=t.pendingProps,a=t.memoizedState,i=null!==a?a.element:null;fc(e,t),vc(t,o,null,n);var l=t.memoizedState.element;if(l===i)return If(),lh(e,t,n);var u,s,c=t.stateNode;if(c.hydrate&&(s=(u=t).stateNode.containerInfo,xf=ou(s),Sf=u,Ef=!0,1)){var f=c.mutableSourceEagerHydrationData;if(null!=f)for(var d=0;d<f.length;d+=2){Ff(f[d],f[d+1])}var p=ef(t,null,l,n);t.child=p;for(var h=p;h;)h.flags=-3&h.flags|yr,h=h.sibling}else Tp(e,t,l,n),If();return t.child}function jp(e,t,n,r,o){null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2);var a=t.pendingProps,i=n,l=i._payload,u=(0,i._init)(l);t.type=u;var s=t.tag=function(e){if("function"==typeof e)return fy(e)?1:0;if(null!=e){var t=e.$$typeof;if(t===ae)return d;if(t===ue)return m}return 2}(u),c=$s(u,a);switch(s){case 0:return Up(t,u),t.type=u=Yv(u),zp(null,t,u,c,o);case 1:return t.type=u=Jv(u),Dp(null,t,u,c,o);case d:return t.type=u=Kv(u),Rp(null,t,u,c,o);case m:if(t.type!==t.elementType){var f=u.propTypes;f&&_u(f,c,"prop",Be(u))}return Pp(null,t,u,$s(u.type,c),r,o)}var p="";throw null!==u&&"object"==typeof u&&u.$$typeof===se&&(p=" Did you wrap a component in React.lazy() more than once?"),Error("Element type is invalid. Received a promise that resolves to: "+u+". Lazy element type must resolve to a class or function."+p)}function Up(e,t){if(t&&t.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),null!==e.ref){var n="",r=qe();r&&(n+="\n\nCheck the render method of `"+r+"`.");var o=r||e._debugID||"",a=e._debugSource;a&&(o=a.fileName+":"+a.lineNumber),kp[o]||(kp[o]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if("function"==typeof t.getDerivedStateFromProps){var i=Be(t)||"Unknown";wp[i]||(u("%s: Function components do not support getDerivedStateFromProps.",i),wp[i]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var l=Be(t)||"Unknown";bp[l]||(u("%s: Function components do not support contextType.",l),bp[l]=!0)}}var Wp={dehydrated:null,retryLane:0};function Bp(e){return{baseLanes:e}}function Vp(e,t){return{baseLanes:Ao(e.baseLanes,t)}}function $p(e,t){return Fo(e.childLanes,t)}function Hp(e,t,n){var r=t.pendingProps;Ny(t)&&(t.flags|=dr);var o=hf.current,a=!1;if(0!=(t.flags&dr)||function(e,t,n,r){return(null===t||null!==t.memoizedState)&&mf(e,2)}(o,e)?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0!==r.fallback&&!0!==r.unstable_avoidThisFallback&&(o=o|1),gf(t,o=vf(o)),null===e){void 0!==r.fallback&&Rf(t);var i=r.children,l=r.fallback;if(a){var u=qp(t,i,l,n);return t.child.memoizedState=Bp(n),t.memoizedState=Wp,u}if("number"==typeof r.unstable_expectedLoadTime){var s=qp(t,i,l,n);return t.child.memoizedState=Bp(n),t.memoizedState=Wp,t.lanes=go,Fv(go),s}return function(e,t,n){var r=e.mode,o=yy({mode:"visible",children:t},r,n,null);return o.return=e,e.child=o,o}(t,i,n)}if(null!==e.memoizedState){if(a){var c=r.fallback,f=Jp(e,t,r.children,c,n),d=t.child,p=e.child.memoizedState;return d.memoizedState=null===p?Bp(n):Vp(p,n),d.childLanes=$p(e,n),t.memoizedState=Wp,f}var h=Yp(e,t,r.children,n);return t.memoizedState=null,h}if(a){var m=r.fallback,v=Jp(e,t,r.children,m,n),y=t.child,g=e.child.memoizedState;return y.memoizedState=null===g?Bp(n):Vp(g,n),y.childLanes=$p(e,n),t.memoizedState=Wp,v}var b=Yp(e,t,r.children,n);return t.memoizedState=null,b}function qp(e,t,n,r){var o,a,i=e.mode,l=e.child,u={mode:"hidden",children:t};return 0==(2&i)&&null!==l?((o=l).childLanes=0,o.pendingProps=u,8&e.mode&&(o.actualDuration=0,o.actualStartTime=-1,o.selfBaseDuration=0,o.treeBaseDuration=0),a=vy(n,i,r,null)):(o=yy(u,i,0,null),a=vy(n,i,r,null)),o.return=e,a.return=e,o.sibling=a,e.child=o,a}function Qp(e,t){return dy(e,t)}function Yp(e,t,n,r){var o=e.child,a=o.sibling,i=Qp(o,{mode:"visible",children:n});return 0==(2&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==a&&(a.nextEffect=null,a.flags=8,t.firstEffect=t.lastEffect=a),t.child=i,i}function Jp(e,t,n,r,o){var a,i,l=t.mode,u=e.child,s=u.sibling,c={mode:"hidden",children:n};if(0==(2&l)&&t.child!==u){(a=t.child).childLanes=0,a.pendingProps=c,8&t.mode&&(a.actualDuration=0,a.actualStartTime=-1,a.selfBaseDuration=u.selfBaseDuration,a.treeBaseDuration=u.treeBaseDuration);var f=a.lastEffect;null!==f?(t.firstEffect=a.firstEffect,t.lastEffect=f,f.nextEffect=null):t.firstEffect=t.lastEffect=null}else a=Qp(u,c);return null!==s?i=dy(s,r):(i=vy(r,l,o,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,i}function Kp(e,t){e.lanes=Ao(e.lanes,t);var n=e.alternate;null!==n&&(n.lanes=Ao(n.lanes,t)),rc(e.return,t)}function Xp(e,t){var n=Array.isArray(e),r=!n&&"function"==typeof ge(e);if(n||r){var o=n?"array":"iterable";return u("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",o,t,o),!1}return!0}function Gp(e,t,n,r,o,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o,i.lastEffect=a)}function Zp(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail,i=r.children;!function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!xp[e])if(xp[e]=!0,"string"==typeof e)switch(e.toLowerCase()){case"together":case"forwards":case"backwards":u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break;case"forward":case"backward":u('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break;default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}(o),function(e,t){void 0===e||Ep[e]||("collapsed"!==e&&"hidden"!==e?(Ep[e]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):"forwards"!==t&&"backwards"!==t&&(Ep[e]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}(a,o),function(e,t){if(("forwards"===t||"backwards"===t)&&null!=e&&!1!==e)if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(!Xp(e[n],n))return}else{var r=ge(e);if("function"==typeof r){var o=r.call(e);if(o)for(var a=o.next(),i=0;!a.done;a=o.next()){if(!Xp(a.value,i))return;i++}}else u('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}(i,o),Tp(e,t,i,n);var l=hf.current;mf(l,2)?(l=yf(l,2),t.flags|=dr):(null!==e&&0!=(e.flags&dr)&&function(e,t,n){for(var r=t;null!==r;){if(r.tag===h)null!==r.memoizedState&&Kp(r,n);else if(r.tag===g)Kp(r,n);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(t,t.child,n),l=vf(l));if(gf(t,l),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":var s,c=function(e){for(var t=e,n=null;null!==t;){var r=t.alternate;null!==r&&null===kf(r)&&(n=t),t=t.sibling}return n}(t.child);null===c?(s=t.child,t.child=null):(s=c.sibling,c.sibling=null),Gp(t,!1,s,c,a,t.lastEffect);break;case"backwards":var f=null,d=t.child;for(t.child=null;null!==d;){var p=d.alternate;if(null!==p&&null===kf(p)){t.child=d;break}var m=d.sibling;d.sibling=f,f=d,d=m}Gp(t,!0,f,null,a,t.lastEffect);break;case"together":Gp(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}var eh=!1;function th(e,t,n){var r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value;"value"in o||eh||(eh=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var l=t.type.propTypes;if(l&&_u(l,o,"prop","Context.Provider"),tc(t,i),null!==a){var s=function(e,t,n){if(pi(n,t))return 0;var r="function"==typeof e._calculateChangedBits?e._calculateChangedBits(n,t):qs;return(r&qs)!==r&&u("calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s",r),0|r}(r,i,a.value);if(0===s){if(a.children===o.children&&!Wu())return lh(e,t,n)}else!function(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var a=void 0,i=o.dependencies;if(null!==i){a=o.child;for(var l=i.firstContext;null!==l;){if(l.context===t&&0!=(l.observedBits&n)){if(1===o.tag){var u=dc(Eo,Io(r));u.tag=uc,pc(o,u)}o.lanes=Ao(o.lanes,r);var s=o.alternate;null!==s&&(s.lanes=Ao(s.lanes,r)),rc(o.return,r),i.lanes=Ao(i.lanes,r);break}l=l.next}}else a=o.tag===f&&o.type===e.type?null:o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===e){a=null;break}var c=a.sibling;if(null!==c){c.return=a.return,a=c;break}a=a.return}o=a}}(t,r,s,n)}return Tp(e,t,o.children,n),t.child}var nh,rh,oh,ah=!1;function ih(){_p=!0}function lh(e,t,n){return null!==e&&(t.dependencies=e.dependencies),hp(),rv(t.lanes),Do(n,t.childLanes)?(function(e,t){if(null!==e&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==t.child){var n=t.child,r=dy(n,n.pendingProps);for(t.child=r,r.return=t;null!==n.sibling;)n=n.sibling,(r=r.sibling=dy(n,n.pendingProps)).return=t;r.sibling=null}}(e,t),t.child):null}function uh(e,t,n){var r=t.lanes;if(t._debugNeedsRemount&&null!==e)return function(e,t,n){var r=t.return;if(null===r)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===r.child)r.child=n;else{var o=r.child;if(null===o)throw new Error("Expected parent to have a child.");for(;o.sibling!==t;)if(null===(o=o.sibling))throw new Error("Expected to find the previous sibling.");o.sibling=n}var a=r.lastEffect;return null!==a?(a.nextEffect=e,r.lastEffect=e):r.firstEffect=r.lastEffect=e,e.nextEffect=null,e.flags=8,n.flags|=2,n}(e,t,hy(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(null!==e)if(e.memoizedProps!==t.pendingProps||Wu()||t.type!==e.type)_p=!0;else{if(!Do(n,r)){switch(_p=!1,t.tag){case 3:Ap(t),If();break;case 5:df(t);break;case 1:Bu(t.type)&&Qu(t);break;case 4:sf(t,t.stateNode.containerInfo);break;case f:tc(t,t.memoizedProps.value);break;case p:Do(n,t.childLanes)&&(t.flags|=4);var o=t.stateNode;o.effectDuration=0,o.passiveEffectDuration=0;break;case h:if(null!==t.memoizedState){if(Do(n,t.child.childLanes))return Hp(e,t,n);gf(t,vf(hf.current));var a=lh(e,t,n);return null!==a?a.sibling:null}gf(t,vf(hf.current));break;case g:var i=0!=(e.flags&dr),l=Do(n,t.childLanes);if(i){if(l)return Zp(e,t,n);t.flags|=dr}var s=t.memoizedState;if(null!==s&&(s.rendering=null,s.tail=null,s.lastEffect=null),gf(t,hf.current),l)break;return null;case k:case S:return t.lanes=0,Op(e,t,n)}return lh(e,t,n)}_p=0!=(e.flags&wr)}else _p=!1;switch(t.lanes=0,t.tag){case 2:return function(e,t,n,r){null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2);var o,a,i=t.pendingProps;if(o=Uu(t,Fu(0,n,!1)),oc(t,r),n.prototype&&"function"==typeof n.prototype.render){var l=Be(n)||"Unknown";yp[l]||(u("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",l,l),yp[l]=!0)}if(1&t.mode&&Is.recordLegacyContextWarning(t,null),Ke(!0),Cp.current=t,a=ad(null,t,n,i,o,r),Ke(!1),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){var s=Be(n)||"Unknown";gp[s]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",s,s,s),gp[s]=!0)}if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){var c=Be(n)||"Unknown";gp[c]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",c,c,c),gp[c]=!0),t.tag=1,t.memoizedState=null,t.updateQueue=null;var f=!1;Bu(n)?(f=!0,Qu(t)):f=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,cc(t);var d=n.getDerivedStateFromProps;return"function"==typeof d&&Dc(t,n,d,i),Vc(t,a),qc(t,n,i,r),Lp(null,t,n,!0,f,r)}if(t.tag=0,1&t.mode){Re();try{a=ad(null,t,n,i,o,r)}finally{Pe()}}return Tp(null,t,a,r),Up(t,n),t.child}(e,t,t.type,n);case 16:return jp(e,t,t.elementType,r,n);case 0:var c=t.type,x=t.pendingProps;return zp(e,t,c,t.elementType===c?x:$s(c,x),n);case 1:var E=t.type,C=t.pendingProps;return Dp(e,t,E,t.elementType===E?C:$s(E,C),n);case 3:return Fp(e,t,n);case 5:return function(e,t,n){df(t),null===e&&Rf(t);var r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children;return Hl(r,o)?i=null:null!==a&&Hl(r,a)&&(t.flags|=16),Ip(e,t),Tp(e,t,i,n),t.child}(e,t,n);case 6:return function(e,t){return null===e&&Rf(t),null}(e,t);case h:return Hp(e,t,n);case 4:return function(e,t,n){sf(t,t.stateNode.containerInfo);var r=t.pendingProps;return null===e?t.child=Zc(t,null,r,n):Tp(e,t,r,n),t.child}(e,t,n);case d:var _=t.type,T=t.pendingProps;return Rp(e,t,_,t.elementType===_?T:$s(_,T),n);case 7:return function(e,t,n){return Tp(e,t,t.pendingProps,n),t.child}(e,t,n);case 8:return function(e,t,n){return Tp(e,t,t.pendingProps.children,n),t.child}(e,t,n);case p:return function(e,t,n){t.flags|=4;var r=t.stateNode;return r.effectDuration=0,r.passiveEffectDuration=0,Tp(e,t,t.pendingProps.children,n),t.child}(e,t,n);case f:return th(e,t,n);case 9:return function(e,t,n){var r=t.type;void 0===r._context?r!==r.Consumer&&(ah||(ah=!0,u("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var o=t.pendingProps,a=o.children;"function"!=typeof a&&u("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),oc(t,n);var i,l=ac(r,o.unstable_observedBits);return Cp.current=t,Ke(!0),i=a(l),Ke(!1),t.flags|=1,Tp(e,t,i,n),t.child}(e,t,n);case m:var R=t.type,P=$s(R,t.pendingProps);if(t.type!==t.elementType){var N=R.propTypes;N&&_u(N,P,"prop",Be(R))}return Pp(e,t,R,P=$s(R.type,P),r,n);case v:return Np(e,t,t.type,t.pendingProps,r,n);case y:var O=t.type,M=t.pendingProps;return function(e,t,n,r,o){var a;return null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Bu(n)?(a=!0,Qu(t)):a=!1,oc(t,o),$c(t,n,r),qc(t,n,r,o),Lp(null,t,n,!0,a,o)}(e,t,O,t.elementType===O?M:$s(O,M),n);case g:return Zp(e,t,n);case b:case 21:case w:break;case k:return Op(e,t,n);case S:return Mp(e,t,n)}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function sh(e){e.flags|=4}function ch(e){e.flags|=pr}function fh(e,t){if(!zf())switch(e.tailMode){case"hidden":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":for(var o=e.tail,a=null;null!==o;)null!==o.alternate&&(a=o),o=o.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function dh(e,t,n){var r,o,a,i=t.pendingProps;switch(t.tag){case 2:case 16:case v:case 0:case d:case 7:case 8:case p:case 9:case m:return null;case 1:return Bu(t.type)&&Vu(t),null;case 3:cf(t),$u(t),Af();var l=t.stateNode;if(l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null===e||null===e.child)Mf(t)?sh(t):l.hydrate||(t.flags|=hr);return null;case 5:pf(t);var u=uf(),s=t.type;if(null!==e&&null!=t.stateNode)rh(e,t,s,i),e.ref!==t.ref&&ch(t);else{if(!i){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return null}var c=ff();if(Mf(t))o=c,a=au((r=t).stateNode,r.type,r.memoizedProps,0,o,r),r.updateQueue=a,null!==a&&sh(t);else{var x=$l(s,i,u,c,t);nh(x,t),t.stateNode=x,function(e,t,n,r,o){return Sl(e,t,n),Bl(t,n)}(x,s,i)&&sh(t)}null!==t.ref&&ch(t)}return null;case 6:var E=i;if(e&&null!=t.stateNode){var C=e.memoizedProps;oh(0,t,C,E)}else{if("string"!=typeof E&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var _=uf(),T=ff();Mf(t)?Pf(t)&&sh(t):t.stateNode=ql(E,_,T,t)}return null;case h:bf(t);var R=t.memoizedState;if(0!=(t.flags&dr))return t.lanes=n,0!=(8&t.mode)&&vp(t),t;var P=null!==R,N=!1;if(null===e)void 0!==t.memoizedProps.fallback&&Mf(t);else N=null!==e.memoizedState;if(P&&!N)if(0!=(2&t.mode))null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||mf(hf.current,1)?0===am&&(am=3):function(){0!==am&&3!==am||(am=4);null!==em&&(No(um)||No(sm))&&$m(em,nm)}();return(P||N)&&(t.flags|=4),null;case 4:return cf(t),null===e&&Vi(t.stateNode.containerInfo),null;case f:return nc(t),null;case y:return Bu(t.type)&&Vu(t),null;case g:bf(t);var O=t.memoizedState;if(null===O)return null;var M=0!=(t.flags&dr),I=O.rendering;if(null===I)if(M)fh(O,!1);else{if(!(0===am&&(null===e||0==(e.flags&dr))))for(var z=t.child;null!==z;){var D=kf(z);if(null!==D){M=!0,t.flags|=dr,fh(O,!1);var L=D.updateQueue;return null!==L&&(t.updateQueue=L,t.flags|=4),null===O.lastEffect&&(t.firstEffect=null),t.lastEffect=O.lastEffect,tf(t,n),gf(t,yf(hf.current,2)),t.child}z=z.sibling}null!==O.tail&&xs()>mm()&&(t.flags|=dr,M=!0,fh(O,!1),t.lanes=go,Fv(go))}else{if(!M){var A=kf(I);if(null!==A){t.flags|=dr,M=!0;var F=A.updateQueue;if(null!==F&&(t.updateQueue=F,t.flags|=4),fh(O,!0),null===O.tail&&"hidden"===O.tailMode&&!I.alternate&&!zf()){var j=t.lastEffect=O.lastEffect;return null!==j&&(j.nextEffect=null),null}}else 2*xs()-O.renderingStartTime>mm()&&n!==xo&&(t.flags|=dr,M=!0,fh(O,!1),t.lanes=go,Fv(go))}if(O.isBackwards)I.sibling=t.child,t.child=I;else{var U=O.last;null!==U?U.sibling=I:t.child=I,O.last=I}}if(null!==O.tail){var W=O.tail;O.rendering=W,O.tail=W.sibling,O.lastEffect=t.lastEffect,O.renderingStartTime=xs(),W.sibling=null;var B=hf.current;return gf(t,B=M?yf(B,2):vf(B)),W}return null;case b:case 21:case w:break;case k:case S:if(Km(t),null!==e){var V=t.memoizedState;null!==e.memoizedState!==(null!==V)&&"unstable-defer-without-hiding"!==i.mode&&(t.flags|=4)}return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ph(e,t){switch(e.tag){case 1:Bu(e.type)&&Vu(e);var n=e.flags;return n&br?(e.flags=-4097&n|dr,0!=(8&e.mode)&&vp(e),e):null;case 3:cf(e),$u(e),Af();var r=e.flags;if(0!=(r&dr))throw Error("The root failed to unmount after an error. This is likely a bug in React. Please file an issue.");return e.flags=-4097&r|dr,e;case 5:return pf(e),null;case h:bf(e);var o=e.flags;return o&br?(e.flags=-4097&o|dr,0!=(8&e.mode)&&vp(e),e):null;case g:return bf(e),null;case 4:return cf(e),null;case f:return nc(e),null;case k:case S:return Km(e),null;default:return null}}function hh(e){switch(e.tag){case 1:var t=e.type.childContextTypes;null!=t&&Vu(e);break;case 3:cf(e),$u(e),Af();break;case 5:pf(e);break;case 4:cf(e);break;case h:case g:bf(e);break;case f:nc(e);break;case k:case S:Km(e)}}function mh(e,t){return{value:e,source:t,stack:Ue(t)}}function vh(e,t){try{0;var n=t.value,r=t.source,o=t.stack,a=null!==o?o:"";if(null!=n&&n._suppressLogging){if(1===e.tag)return;console.error(n)}var i=r?Be(r.type):null,l=i?"The above error occurred in the <"+i+"> component:":"The above error occurred in one of your React components:",u=Be(e.type),s=l+"\n"+a+"\n\n"+(u?"React will try to recreate this component tree from scratch using the error boundary you provided, "+u+".":"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.");console.error(s)}catch(e){setTimeout((function(){throw e}))}}nh=function(e,t,n,r){for(var o,a,i=t.child;null!==i;){if(5===i.tag||6===i.tag)o=e,a=i.stateNode,o.appendChild(a);else if(4===i.tag);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)return;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},rh=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var i=function(e,t,n,r,o,a){var i=a;if(typeof r.children!=typeof n.children&&("string"==typeof r.children||"number"==typeof r.children)){var l=""+r.children,u=Ol(i.ancestorInfo,t);Nl(null,l,u)}return xl(e,t,n,r)}(t.stateNode,n,a,r,0,ff());t.updateQueue=i,i&&sh(t)}},oh=function(e,t,n,r){n!==r&&sh(t)};var yh="function"==typeof WeakMap?WeakMap:Map;function gh(e,t,n){var r=dc(Eo,n);r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){kv(o),vh(e,t)},r}function bh(e,t,n){var r=dc(Eo,n);r.tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var a=t.value;r.payload=function(){return vh(e,t),o(a)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch?r.callback=function(){var n;Gv(e),"function"!=typeof o&&(n=this,null===bm?bm=new Set([n]):bm.add(n),vh(e,t));var r=t.value,a=t.stack;this.componentDidCatch(r,{componentStack:null!==a?a:""}),"function"!=typeof o&&(Do(e.lanes,1)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Be(e.type)||"Unknown"))}:r.callback=function(){Gv(e)},r}function wh(e,t,n){var r,o=e.pingCache;if(null===o?(o=e.pingCache=new yh,r=new Set,o.set(t,r)):void 0===(r=o.get(t))&&(r=new Set,o.set(t,r)),!r.has(n)){r.add(n);var a=Ev.bind(null,e,t,n);t.then(a,a)}}function kh(e,t,n,r,o){if(n.flags|=gr,n.firstEffect=n.lastEffect=null,null!==r&&"object"==typeof r&&"function"==typeof r.then){var a=r;if(0==(2&n.mode)){var i=n.alternate;i?(n.updateQueue=i.updateQueue,n.memoizedState=i.memoizedState,n.lanes=i.lanes):(n.updateQueue=null,n.memoizedState=null)}var l=mf(hf.current,1),u=t;do{if(u.tag===h&&wf(u,l)){var s=u.updateQueue;if(null===s){var c=new Set;c.add(a),u.updateQueue=c}else s.add(a);if(0==(2&u.mode)){if(u.flags|=dr,n.flags|=wr,n.flags&=-2981,1===n.tag)if(null===n.alternate)n.tag=y;else{var f=dc(Eo,1);f.tag=uc,pc(n,f)}return void(n.lanes=Ao(n.lanes,1))}return wh(e,a,o),u.flags|=br,void(u.lanes=o)}u=u.return}while(null!==u);r=new Error((Be(n.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==am&&(am=2),r=mh(r,n);var d=t;do{switch(d.tag){case 3:var p=r;d.flags|=br;var m=Io(o);return d.lanes=Ao(d.lanes,m),void hc(d,gh(d,p,m));case 1:var v=r,g=d.type,b=d.stateNode;if(0==(d.flags&dr)&&("function"==typeof g.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&!wv(b))){d.flags|=br;var w=Io(o);return d.lanes=Ao(d.lanes,w),void hc(d,bh(d,v,w))}}d=d.return}while(null!==d)}var Sh;Sh=new Set;var xh="function"==typeof WeakSet?WeakSet:Set,Eh=function(e,t){t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()};function Ch(e){var t=e.ref;null!==t&&("function"==typeof t?(or(null,t,null,null),ar()&&xv(e,ir())):t.current=null)}function _h(e,t){(or(null,t,null),ar())&&xv(e,ir())}function Th(e,t){switch(t.tag){case 0:case d:case v:case w:return;case 1:if(t.flags&hr&&null!==e){var n=e.memoizedProps,r=e.memoizedState,o=t.stateNode;t.type!==t.elementType||Sp||(o.props!==t.memoizedProps&&u("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Be(t.type)||"instance"),o.state!==t.memoizedState&&u("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Be(t.type)||"instance"));var a=o.getSnapshotBeforeUpdate(t.elementType===t.type?n:$s(t.type,n),r),i=Sh;void 0!==a||i.has(t.type)||(i.add(t.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Be(t.type))),o.__reactInternalSnapshotBeforeUpdate=a}return;case 3:if(t.flags&hr)eu(t.stateNode.containerInfo);return;case 5:case 6:case 4:case y:return}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}function Rh(e,t,n,r){switch(n.tag){case 0:case d:case v:case w:return function(e,t){var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next,a=o;do{if((a.tag&e)===e){var i=a.create;a.destroy=i();var l=a.destroy;void 0!==l&&"function"!=typeof l&&u("An effect function must not return anything besides a function, which is used for clean-up.%s",null===l?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof l.then?"\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\nuseEffect(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching":" You returned: "+l)}a=a.next}while(a!==o)}}(3,n),void function(e){var t=e.updateQueue,n=null!==t?t.lastEffect:null;if(null!==n){var r=n.next,o=r;do{var a=o,i=a.next,l=a.tag;0!=(4&l)&&0!=(1&l)&&(yv(e,o),vv(e,o)),o=i}while(o!==r)}}(n);case 1:var o=n.stateNode;if(4&n.flags)if(null===t)n.type!==n.elementType||Sp||(o.props!==n.memoizedProps&&u("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Be(n.type)||"instance"),o.state!==n.memoizedState&&u("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Be(n.type)||"instance")),o.componentDidMount();else{var a=n.elementType===n.type?t.memoizedProps:$s(n.type,t.memoizedProps),i=t.memoizedState;n.type!==n.elementType||Sp||(o.props!==n.memoizedProps&&u("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Be(n.type)||"instance"),o.state!==n.memoizedState&&u("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Be(n.type)||"instance")),o.componentDidUpdate(a,i,o.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;return void(null!==l&&(n.type!==n.elementType||Sp||(o.props!==n.memoizedProps&&u("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Be(n.type)||"instance"),o.state!==n.memoizedState&&u("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Be(n.type)||"instance")),wc(0,l,o)));case 3:var s=n.updateQueue;if(null!==s){var c=null;if(null!==n.child)switch(n.child.tag){case 5:case 1:c=n.child.stateNode}wc(0,s,c)}return;case 5:var f=n.stateNode;if(null===t&&4&n.flags)!function(e,t,n,r){Bl(t,n)&&e.focus()}(f,n.type,n.memoizedProps);return;case 6:case 4:return;case p:var m=n.memoizedProps;m.onCommit;var x=m.onRender;n.stateNode.effectDuration;var E=fp();return void("function"==typeof x&&x(n.memoizedProps.id,null===t?"mount":"update",n.actualDuration,n.treeBaseDuration,n.actualStartTime,E,e.memoizedInteractions));case h:return void function(e,t){if(null===t.memoizedState){var n=t.alternate;if(null!==n){var r=n.memoizedState;if(null!==r){var o=r.dehydrated;null!==o&&function(e){Yr(e)}(o)}}}}(0,n);case g:case y:case b:case 21:case k:case S:return}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}function Ph(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?Xl(r):Gl(n.stateNode,n.memoizedProps)}else if(6===n.tag){var o=n.stateNode;t?o.nodeValue="":Zl(o,n.memoizedProps)}else if(n.tag!==k&&n.tag!==S||null===n.memoizedState||n===e){if(null!==n.child){n.child.return=n,n=n.child;continue}}else;if(n===e)return;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Nh(e){var t=e.ref;if(null!==t){var n,r=e.stateNode;switch(e.tag){case 5:n=r;break;default:n=r}"function"==typeof t?t(n):(t.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Be(e.type)),t.current=n)}}function Oh(e){var t=e.ref;null!==t&&("function"==typeof t?t(null):t.current=null)}function Mh(e,t,n){switch(function(e){if(Xu&&"function"==typeof Xu.onCommitFiberUnmount)try{Xu.onCommitFiberUnmount(Ku,e)}catch(e){Gu||(Gu=!0,u("React instrumentation encountered an error: %s",e))}}(t),t.tag){case 0:case d:case m:case v:case w:var r=t.updateQueue;if(null!==r){var o=r.lastEffect;if(null!==o){var a=o.next,i=a;do{var l=i,s=l.destroy,c=l.tag;void 0!==s&&(0!=(4&c)?yv(t,i):_h(t,s)),i=i.next}while(i!==a)}}return;case 1:Ch(t);var f=t.stateNode;return void("function"==typeof f.componentWillUnmount&&function(e,t){or(null,Eh,null,e,t),ar()&&xv(e,ir())}(t,f));case 5:return void Ch(t);case 4:return void jh(e,t);case b:case 18:case 21:return}}function Ih(e,t,n){for(var r=t;;)if(Mh(e,r),null===r.child||4===r.tag){if(r===t)return;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}else r.child.return=r,r=r.child}function zh(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null,e._debugOwner=null}function Dh(e){return 5===e.tag||3===e.tag||4===e.tag}function Lh(e){var t,n,r=function(e){for(var t=e.return;null!==t;){if(Dh(t))return t;t=t.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}(e),o=r.stateNode;switch(r.tag){case 5:t=o,n=!1;break;case 3:case 4:t=o.containerInfo,n=!0;break;case b:default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}16&r.flags&&(Jl(t),r.flags&=-17);var a=function(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||Dh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue e;if(null===t.child||4===t.tag)continue e;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}(e);n?Ah(e,a,t):Fh(e,a,t)}function Ah(e,t,n){var r=e.tag,o=5===r||6===r;if(o){var a=o?e.stateNode:e.stateNode.instance;t?function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}(n,a,t):function(e,t){var n;8===e.nodeType?(n=e.parentNode).insertBefore(t,e):(n=e).appendChild(t),null==e._reactRootContainer&&null===n.onclick&&kl(n)}(n,a)}else if(4===r);else{var i=e.child;if(null!==i){Ah(i,t,n);for(var l=i.sibling;null!==l;)Ah(l,t,n),l=l.sibling}}}function Fh(e,t,n){var r=e.tag,o=5===r||6===r;if(o){var a=o?e.stateNode:e.stateNode.instance;t?function(e,t,n){e.insertBefore(t,n)}(n,a,t):function(e,t){e.appendChild(t)}(n,a)}else if(4===r);else{var i=e.child;if(null!==i){Fh(i,t,n);for(var l=i.sibling;null!==l;)Fh(l,t,n),l=l.sibling}}}function jh(e,t,n){for(var r,o,a,i,l=t,u=!1;;){if(!u){var s=l.return;e:for(;;){if(null===s)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");var c=s.stateNode;switch(s.tag){case 5:r=c,o=!1;break e;case 3:case 4:r=c.containerInfo,o=!0;break e}s=s.return}u=!0}if(5===l.tag||6===l.tag)Ih(e,l),o?(a=r,i=l.stateNode,8===a.nodeType?a.parentNode.removeChild(i):a.removeChild(i)):Kl(r,l.stateNode);else if(4===l.tag){if(null!==l.child){r=l.stateNode.containerInfo,o=!0,l.child.return=l,l=l.child;continue}}else if(Mh(e,l),null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)return;for(;null===l.sibling;){if(null===l.return||l.return===t)return;4===(l=l.return).tag&&(u=!1)}l.sibling.return=l.return,l=l.sibling}}function Uh(e,t,n){jh(e,t);var r=t.alternate;zh(t),null!==r&&zh(r)}function Wh(e,t){switch(t.tag){case 0:case d:case m:case v:case w:return void function(e,t){var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next,a=o;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&i()}a=a.next}while(a!==o)}}(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r,a=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&function(e,t,n,r,o,a){ku(e,o),El(e,t,n,r,o)}(n,i,a,o,r)}return;case 6:if(null===t.stateNode)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var l=t.stateNode,u=t.memoizedProps;null!==e&&e.memoizedProps;return void function(e,t,n){e.nodeValue=n}(l,0,u);case 3:var s=t.stateNode;return void(s.hydrate&&(s.hydrate=!1,Yr(s.containerInfo)));case p:return;case h:return function(e){if(null!==e.memoizedState){dm=xs(),Ph(e.child,!0)}}(t),void Bh(t);case g:return void Bh(t);case y:return;case b:case 21:break;case k:case S:return void Ph(t,null!==t.memoizedState)}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}function Bh(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new xh),t.forEach((function(t){var r=Cv.bind(null,e,t);n.has(t)||(!0!==t.__reactDoNotTraceInteractions&&(r=o.unstable_wrap(r)),n.add(t),t.then(r,r))}))}}function Vh(e,t){if(null!==e){var n=e.memoizedState;if(null===n||null!==n.dehydrated){var r=t.memoizedState;return null!==r&&null===r.dehydrated}}return!1}function $h(e){Jl(e.stateNode)}if("function"==typeof Symbol&&Symbol.for){var Hh=Symbol.for;Hh("selector.component"),Hh("selector.has_pseudo_class"),Hh("selector.role"),Hh("selector.test_id"),Hh("selector.text")}var qh=[];var Qh=Math.ceil,Yh=a.ReactCurrentDispatcher,Jh=a.ReactCurrentOwner,Kh=a.IsSomeRendererActing,Xh=16,Gh=32,Zh=0,em=null,tm=null,nm=0,rm=0,om=Ou(0),am=0,im=null,lm=0,um=0,sm=0,cm=0,fm=null,dm=0,pm=1/0;function hm(){pm=xs()+500}function mm(){return pm}var vm=null,ym=!1,gm=null,bm=null,wm=!1,km=null,Sm=90,xm=0,Em=[],Cm=[],_m=null,Tm=0,Rm=null,Pm=0,Nm=null,Om=Eo,Mm=0,Im=0,zm=!1,Dm=null,Lm=!1;function Am(){return 0!=(48&Zh)?xs():Om!==Eo?Om:Om=xs()}function Fm(e){var t=e.mode;if(0==(2&t))return 1;if(0==(4&t))return Es()===hs?1:2;if(0===Mm&&(Mm=lm),0!==Ms.transition)return 0!==Im&&(Im=null!==fm?fm.pendingLanes:0),function(e,t){var n=Io(vo&~t);return 0===n&&0===(n=Io(vo&~e))&&(n=Io(vo)),n}(Mm,Im);var n,r=Es();0!=(4&Zh)&&r===ms?n=Mo(12,Mm):n=Mo(function(e){switch(e){case 99:return po;case 98:return ho;case 97:case 96:return 8;case 95:return 2;default:return 0}}(r),Mm);return n}function jm(e){var t,n=e.mode;return 0==(2&n)?1:0==(4&n)?Es()===hs?1:2:(0===Mm&&(Mm=lm),0===(t=Io(yo&~Mm))&&(t=Io(yo)),t)}function Um(e,t,n){!function(){if(Tm>50)throw Tm=0,Rm=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Pm>50&&(Pm=0,u("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}(),function(e){if(He&&0!=(Zh&Xh)&&!qd)switch(e.tag){case 0:case d:case v:var t=tm&&Be(tm.type)||"Unknown",n=t;if(!Nv.has(n))Nv.add(n),u("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",Be(e.type)||"Unknown",t,t);break;case 1:Ov||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Ov=!0)}}(e);var r=Wm(e,t);if(null===r)return function(e){var t=e.tag;if(3!==t&&1!==t&&0!==t&&t!==d&&t!==m&&t!==v&&t!==w)return;if(0!=(e.flags&vr))return;var n=Be(e.type)||"ReactComponent";if(null!==Pv){if(Pv.has(n))return;Pv.add(n)}else Pv=new Set([n]);if(zm);else{var r=$e;try{Je(e),u("Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in %s.",1===t?"the componentWillUnmount method":"a useEffect cleanup function")}finally{r?Je(e):Ye()}}}(e),null;Uo(r,t,n),r===em&&(sm=Ao(sm,t),4===am&&$m(r,nm));var o=Es();1===t?0!=(8&Zh)&&0==(48&Zh)?(Uv(r,t),Hm(r)):(Bm(r,n),Uv(r,t),0===Zh&&(hm(),Ps())):(0==(4&Zh)||o!==ms&&o!==hs||(null===_m?_m=new Set([r]):_m.add(r)),Bm(r,n),Uv(r,t)),fm=r}function Wm(e,t){e.lanes=Ao(e.lanes,t);var n=e.alternate;null!==n&&(n.lanes=Ao(n.lanes,t)),null===n&&0!=(1026&e.flags)&&Tv(e);for(var r=e,o=e.return;null!==o;)o.childLanes=Ao(o.childLanes,t),null!==(n=o.alternate)?n.childLanes=Ao(n.childLanes,t):0!=(1026&o.flags)&&Tv(e),r=o,o=o.return;return 3===r.tag?r.stateNode:null}function Bm(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,i=n;i>0;){var l=zo(i),u=1<<l,s=a[l];s===Eo?0!=(u&r)&&0==(u&o)||(a[l]=Ro(u,t)):s<=t&&(e.expiredLanes|=u),i&=~u}}(e,t);var r=To(e,e===em?nm:0),o=Co;if(0!==r){if(null!==n){if(e.callbackPriority===o)return;Rs(n)}var a,i;if(o===po)i=Hm.bind(null,e),null===bs?(bs=[i],ws=ns(us,Ns)):bs.push(i),a=ps;else if(14===o)a=Ts(hs,Hm.bind(null,e));else{a=Ts(function(e){switch(e){case po:case 14:return 99;case 13:case 12:case 11:case ho:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error("Invalid update priority: "+e+". This is a bug in React.")}}(o),Vm.bind(null,e))}e.callbackPriority=o,e.callbackNode=a}else null!==n&&(Rs(n),e.callbackNode=null,e.callbackPriority=0)}function Vm(e){if(Om=Eo,Mm=0,Im=0,0!=(48&Zh))throw Error("Should not already be working.");var t=e.callbackNode;if(mv()&&e.callbackNode!==t)return null;var n=To(e,e===em?nm:0);if(0===n)return null;var r=function(e,t){var n=Zh;Zh|=Xh;var r=Zm();em===e&&nm===t||(hm(),Xm(e,t),Wv(e,t));var o=tv(e);for(;;)try{iv();break}catch(t){Gm(e,t)}return Gs(),nv(o),ev(r),Zh=n,null!==tm?0:(em=null,nm=0,am)}(e,n);if(Do(lm,sm))Xm(e,0);else if(0!==r){if(2===r&&(Zh|=64,e.hydrate&&(e.hydrate=!1,eu(e.containerInfo)),0!==(n=Po(e))&&(r=ov(e,n))),1===r){var o=im;throw Xm(e,0),$m(e,n),Bm(e,xs()),o}var a=e.current.alternate;e.finishedWork=a,e.finishedLanes=n,function(e,t,n){switch(t){case 0:case 1:throw Error("Root did not complete. This is a bug in React.");case 2:cv(e);break;case 3:if($m(e,n),Oo(n)&&!(Vv>0)){var r=dm+500-xs();if(r>10){if(0!==To(e,0))break;var o=e.suspendedLanes;if(!Lo(o,n)){Am(),Wo(e,o);break}e.timeoutHandle=Ql(cv.bind(null,e),r);break}}cv(e);break;case 4:if($m(e,n),function(e){return(e&vo)===e}(n))break;var a=function(e,t){for(var n=e.eventTimes,r=Eo;t>0;){var o=zo(t),a=1<<o,i=n[o];i>r&&(r=i),t&=~a}return r}(e,n),i=xs()-a,l=((u=i)<120?120:u<480?480:u<1080?1080:u<1920?1920:u<3e3?3e3:u<4320?4320:1960*Qh(u/1960))-i;if(l>10){e.timeoutHandle=Ql(cv.bind(null,e),l);break}cv(e);break;case 5:cv(e);break;default:throw Error("Unknown root exit status.")}var u}(e,r,n)}return Bm(e,xs()),e.callbackNode===t?Vm.bind(null,e):null}function $m(e,t){t=Fo(t,cm),function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var o=zo(r),a=1<<o;n[o]=Eo,r&=~a}}(e,t=Fo(t,sm))}function Hm(e){if(0!=(48&Zh))throw Error("Should not already be working.");var t,n;if(mv(),e===em&&Do(e.expiredLanes,nm)?(n=ov(e,t=nm),Do(lm,sm)&&(n=ov(e,t=To(e,t)))):n=ov(e,t=To(e,0)),0!==e.tag&&2===n&&(Zh|=64,e.hydrate&&(e.hydrate=!1,eu(e.containerInfo)),0!==(t=Po(e))&&(n=ov(e,t))),1===n){var r=im;throw Xm(e,0),$m(e,t),Bm(e,xs()),r}var o=e.current.alternate;return e.finishedWork=o,e.finishedLanes=t,cv(e),Bm(e,xs()),null}function qm(e,t){var n=Zh;Zh|=1;try{return e(t)}finally{0===(Zh=n)&&(hm(),Ps())}}function Qm(e,t){var n=Zh;Zh&=-2,Zh|=8;try{return e(t)}finally{0===(Zh=n)&&(hm(),Ps())}}function Ym(e,t){var n=Zh;if(0!=(48&n))return u("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),e(t);Zh|=1;try{return e?_s(hs,e.bind(null,t)):void 0}finally{Zh=n,Ps()}}function Jm(e,t){Iu(om,rm,e),rm=Ao(rm,t),lm=Ao(lm,t)}function Km(e){rm=om.current,Mu(om,e)}function Xm(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Yl(n)),null!==tm)for(var r=tm.return;null!==r;)hh(r),r=r.return;em=e,tm=dy(e.current,null),nm=rm=lm=t,am=0,im=null,um=0,sm=0,cm=0,Nm=null,Is.discardPendingWarnings()}function Gm(e,t){for(;;){var n=tm;try{if(Gs(),ld(),Ye(),Jh.current=null,null===n||null===n.return)return am=1,im=t,void(tm=null);8&n.mode&&mp(n,!0),kh(e,n.return,n,t,nm),uv(n)}catch(e){t=e,tm===n&&null!==n?(n=n.return,tm=n):n=tm;continue}return}}function Zm(){var e=Yh.current;return Yh.current=Gd,null===e?Gd:e}function ev(e){Yh.current=e}function tv(e){var t=o.__interactionsRef.current;return o.__interactionsRef.current=e.memoizedInteractions,t}function nv(e){o.__interactionsRef.current=e}function rv(e){um=Ao(e,um)}function ov(e,t){var n=Zh;Zh|=Xh;var r=Zm();em===e&&nm===t||(Xm(e,t),Wv(e,t));for(var o=tv(e);;)try{av();break}catch(t){Gm(e,t)}if(Gs(),nv(o),Zh=n,ev(r),null!==tm)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return em=null,nm=0,am}function av(){for(;null!==tm;)lv(tm)}function iv(){for(;null!==tm&&!ys();)lv(tm)}function lv(e){var t,n=e.alternate;Je(e),0!=(8&e.mode)?(pp(e),t=Rv(n,e,rm),mp(e,!0)):t=Rv(n,e,rm),Ye(),e.memoizedProps=e.pendingProps,null===t?uv(e):tm=t,Jh.current=null}function uv(e){var t=e;do{var n=t.alternate,r=t.return;if(0==(t.flags&gr)){Je(t);var o=void 0;if(0==(8&t.mode)?o=dh(n,t,rm):(pp(t),o=dh(n,t,rm),mp(t,!1)),Ye(),null!==o)return void(tm=o);if(sv(t),null!==r&&0==(r.flags&gr))null===r.firstEffect&&(r.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==r.lastEffect&&(r.lastEffect.nextEffect=t.firstEffect),r.lastEffect=t.lastEffect),t.flags>1&&(null!==r.lastEffect?r.lastEffect.nextEffect=t:r.firstEffect=t,r.lastEffect=t)}else{var a=ph(t);if(null!==a)return a.flags&=2047,void(tm=a);if(0!=(8&t.mode)){mp(t,!1);for(var i=t.actualDuration,l=t.child;null!==l;)i+=l.actualDuration,l=l.sibling;t.actualDuration=i}null!==r&&(r.firstEffect=r.lastEffect=null,r.flags|=gr)}var u=t.sibling;if(null!==u)return void(tm=u);tm=t=r}while(null!==t);0===am&&(am=5)}function sv(e){if(e.tag!==S&&e.tag!==k||null===e.memoizedState||Do(rm,xo)||0==(4&e.mode)){var t=0;if(0!=(8&e.mode)){for(var n=e.actualDuration,r=e.selfBaseDuration,o=null===e.alternate||e.child!==e.alternate.child,a=e.child;null!==a;)t=Ao(t,Ao(a.lanes,a.childLanes)),o&&(n+=a.actualDuration),r+=a.treeBaseDuration,a=a.sibling;if(e.tag===h&&null!==e.memoizedState){var i=e.child;null!==i&&(r-=i.treeBaseDuration)}e.actualDuration=n,e.treeBaseDuration=r}else for(var l=e.child;null!==l;)t=Ao(t,Ao(l.lanes,l.childLanes)),l=l.sibling;e.childLanes=t}}function cv(e){var t=Es();return _s(hs,fv.bind(null,e,t)),null}function fv(e,t){do{mv()}while(null!==km);if(Is.flushLegacyContextWarning(),Is.flushPendingUnsafeLifecycleWarnings(),0!=(48&Zh))throw Error("Should not already be working.");var n=e.finishedWork,r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null;var o,a=Ao(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;for(var r=e.entanglements,o=e.eventTimes,a=e.expirationTimes,i=n;i>0;){var l=zo(i),u=1<<l;r[l]=0,o[l]=Eo,a[l]=Eo,i&=~u}}(e,a),null!==_m&&!function(e){return 0!=(24&e)}(a)&&_m.has(e)&&_m.delete(e),e===em&&(em=null,tm=null,nm=0),n.flags>1?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=Zh;Zh|=Gh;var l=tv(e);Jh.current=null,Dm=Vl(e.containerInfo),Lm=!1,vm=o;do{if(or(null,dv,null),ar()){if(null===vm)throw Error("Should be working on an effect.");var u=ir();xv(vm,u),vm=vm.nextEffect}}while(null!==vm);Dm=null,dp(),vm=o;do{if(or(null,pv,null,e,t),ar()){if(null===vm)throw Error("Should be working on an effect.");var s=ir();xv(vm,s),vm=vm.nextEffect}}while(null!==vm);e.containerInfo,_i(Wl),Jo(Ul),Ul=null,Wl=null,e.current=n,vm=o;do{if(or(null,hv,null,e,r),ar()){if(null===vm)throw Error("Should be working on an effect.");var c=ir();xv(vm,c),vm=vm.nextEffect}}while(null!==vm);vm=null,gs(),nv(l),Zh=i}else e.current=n,dp();var f=wm;if(wm)wm=!1,km=e,xm=r,Sm=t;else for(vm=o;null!==vm;){var d=vm.nextEffect;vm.nextEffect=null,8&vm.flags&&$v(vm),vm=d}if(0!==(a=e.pendingLanes)){if(null!==Nm){var p=Nm;Nm=null;for(var h=0;h<p.length;h++)jv(e,p[h],e.memoizedInteractions)}Uv(e,a)}else bm=null;if(f||Bv(e,r),1===a?e===Rm?Tm++:(Tm=0,Rm=e):Tm=0,es(n.stateNode,t),qh.forEach((function(e){return e()})),Bm(e,xs()),ym){ym=!1;var m=gm;throw gm=null,m}return 0!=(8&Zh)||Ps(),null}function dv(){for(;null!==vm;){var e=vm.alternate;Lm||null===Dm||(0!=(8&vm.flags)?Rr(vm,Dm)&&(Lm=!0):vm.tag===h&&Vh(e,vm)&&Rr(vm,Dm)&&(Lm=!0));var t=vm.flags;0!=(t&hr)&&(Je(vm),Th(e,vm),Ye()),0!=(t&mr)&&(wm||(wm=!0,Ts(vs,(function(){return mv(),null})))),vm=vm.nextEffect}}function pv(e,t){for(;null!==vm;){Je(vm);var n=vm.flags;if(16&n&&$h(vm),n&pr){var r=vm.alternate;null!==r&&Oh(r)}switch(1038&n){case 2:Lh(vm),vm.flags&=-3;break;case 6:Lh(vm),vm.flags&=-3,Wh(vm.alternate,vm);break;case yr:vm.flags&=-1025;break;case 1028:vm.flags&=-1025,Wh(vm.alternate,vm);break;case 4:Wh(vm.alternate,vm);break;case 8:Uh(e,vm)}Ye(),vm=vm.nextEffect}}function hv(e,t){for(;null!==vm;){Je(vm);var n=vm.flags;if(36&n)Rh(e,vm.alternate,vm);n&pr&&Nh(vm),Ye(),vm=vm.nextEffect}}function mv(){if(90!==Sm){var e=Sm>vs?vs:Sm;return Sm=90,_s(e,bv)}return!1}function vv(e,t){Em.push(t,e),wm||(wm=!0,Ts(vs,(function(){return mv(),null})))}function yv(e,t){Cm.push(t,e),e.flags|=vr;var n=e.alternate;null!==n&&(n.flags|=vr),wm||(wm=!0,Ts(vs,(function(){return mv(),null})))}function gv(e){var t=e.create;e.destroy=t()}function bv(){if(null===km)return!1;var e=km,t=xm;if(km=null,xm=0,0!=(48&Zh))throw Error("Cannot flush passive effects while already rendering.");zm=!0;var n=Zh;Zh|=Gh;var r=tv(e),o=Cm;Cm=[];for(var a=0;a<o.length;a+=2){var i=o[a],l=o[a+1],u=i.destroy;i.destroy=void 0,l.flags&=-8193;var s=l.alternate;if(null!==s&&(s.flags&=-8193),"function"==typeof u){if(Je(l),or(null,u,null),ar()){if(null===l)throw Error("Should be working on an effect.");xv(l,ir())}Ye()}}var c=Em;Em=[];for(var f=0;f<c.length;f+=2){var d=c[f],p=c[f+1];if(Je(p),or(null,gv,null,d),ar()){if(null===p)throw Error("Should be working on an effect.");xv(p,ir())}Ye()}for(var h=e.current.firstEffect;null!==h;){var m=h.nextEffect;h.nextEffect=null,8&h.flags&&$v(h),h=m}return nv(r),Bv(e,t),zm=!1,Zh=n,Ps(),Pm=null===km?0:Pm+1,!0}function wv(e){return null!==bm&&bm.has(e)}var kv=function(e){ym||(ym=!0,gm=e)};function Sv(e,t,n){pc(e,gh(e,mh(n,t),1));var r=Am(),o=Wm(e,1);null!==o&&(Uo(o,1,r),Bm(o,r),Uv(o,1))}function xv(e,t){if(3!==e.tag)for(var n=e.return;null!==n;){if(3===n.tag)return void Sv(n,e,t);if(1===n.tag){var r=n.type,o=n.stateNode;if("function"==typeof r.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&!wv(o)){var a=mh(t,e);pc(n,bh(n,a,1));var i=Am(),l=Wm(n,1);if(null!==l)Uo(l,1,i),Bm(l,i),Uv(l,1);else if("function"==typeof o.componentDidCatch&&!wv(o))try{o.componentDidCatch(t,a)}catch(e){}return}}n=n.return}else Sv(e,e,t)}function Ev(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);var o=Am();Wo(e,n),em===e&&Lo(nm,n)&&(4===am||3===am&&Oo(nm)&&xs()-dm<500?Xm(e,0):cm=Ao(cm,n)),Bm(e,o),Uv(e,n)}function Cv(e,t){var n;null!==(n=e.stateNode)&&n.delete(t),function(e,t){0===t&&(t=jm(e));var n=Am(),r=Wm(e,t);null!==r&&(Uo(r,t,n),Bm(r,n),Uv(r,t))}(e,0)}var _v=null;function Tv(e){if(0==(Zh&Xh)&&6&e.mode){var t=e.tag;if(2===t||3===t||1===t||0===t||t===d||t===m||t===v||t===w){var n=Be(e.type)||"ReactComponent";if(null!==_v){if(_v.has(n))return;_v.add(n)}else _v=new Set([n]);var r=$e;try{Je(e),u("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{r?Je(e):Ye()}}}}var Rv,Pv=null;Rv=function(e,t,n){var r=wy(null,t);try{return uh(e,t,n)}catch(o){if(null!==o&&"object"==typeof o&&"function"==typeof o.then)throw o;if(Gs(),ld(),hh(t),wy(t,r),8&t.mode&&pp(t),or(null,uh,null,e,t,n),ar())throw ir();throw o}};var Nv,Ov=!1;Nv=new Set;var Mv={current:!1};function Iv(e){if(!0===Kh.current&&!0!==Mv.current){var t=$e;try{Je(e),u("It looks like you're using the wrong act() around your test interactions.\nBe sure to use the matching version of act() corresponding to your renderer:\n\n// for react-dom:\nimport {act} from 'react-dom/test-utils';\n// ...\nact(() => ...);\n\n// for react-test-renderer:\nimport TestRenderer from react-test-renderer';\nconst {act} = TestRenderer;\n// ...\nact(() => ...);")}finally{t?Je(e):Ye()}}}function zv(e){0!=(1&e.mode)&&!1===Kh.current&&!1===Mv.current&&u("An update to %s ran an effect, but was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act",Be(e.type))}var Dv=function(e){if(0===Zh&&!1===Kh.current&&!1===Mv.current){var t=$e;try{Je(e),u("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act",Be(e.type))}finally{t?Je(e):Ye()}}},Lv=!1;function Av(e,t){return 1e3*t+e.interactionThreadID}function Fv(e){null===Nm?Nm=[e]:Nm.push(e)}function jv(e,t,n){if(n.size>0){var r=e.pendingInteractionMap,a=r.get(t);null!=a?n.forEach((function(e){a.has(e)||e.__count++,a.add(e)})):(r.set(t,new Set(n)),n.forEach((function(e){e.__count++})));var i=o.__subscriberRef.current;if(null!==i){var l=Av(e,t);i.onWorkScheduled(n,l)}}}function Uv(e,t){jv(e,t,o.__interactionsRef.current)}function Wv(e,t){var n=new Set;if(e.pendingInteractionMap.forEach((function(e,r){Do(t,r)&&e.forEach((function(e){return n.add(e)}))})),e.memoizedInteractions=n,n.size>0){var r=o.__subscriberRef.current;if(null!==r){var a=Av(e,t);try{r.onWorkStarted(n,a)}catch(e){Ts(hs,(function(){throw e}))}}}}function Bv(e,t){var n,r=e.pendingLanes;try{if(null!==(n=o.__subscriberRef.current)&&e.memoizedInteractions.size>0){var a=Av(e,t);n.onWorkStopped(e.memoizedInteractions,a)}}catch(e){Ts(hs,(function(){throw e}))}finally{var i=e.pendingInteractionMap;i.forEach((function(e,t){Do(r,t)||(i.delete(t),e.forEach((function(e){if(e.__count--,null!==n&&0===e.__count)try{n.onInteractionScheduledWorkCompleted(e)}catch(e){Ts(hs,(function(){throw e}))}})))}))}}var Vv=0;function $v(e){e.sibling=null,e.stateNode=null}var Hv=null,qv=null,Qv=function(e){Hv=e};function Yv(e){if(null===Hv)return e;var t=Hv(e);return void 0===t?e:t.current}function Jv(e){return Yv(e)}function Kv(e){if(null===Hv)return e;var t=Hv(e);if(void 0===t){if(null!=e&&"function"==typeof e.render){var n=Yv(e.render);if(e.render!==n){var r={$$typeof:ae,render:n};return void 0!==e.displayName&&(r.displayName=e.displayName),r}}return e}return t.current}function Xv(e,t){if(null===Hv)return!1;var n=e.elementType,r=t.type,o=!1,a="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case 1:"function"==typeof r&&(o=!0);break;case 0:("function"==typeof r||a===se)&&(o=!0);break;case d:(a===ae||a===se)&&(o=!0);break;case m:case v:(a===ue||a===se)&&(o=!0);break;default:return!1}if(o){var i=Hv(n);if(void 0!==i&&i===Hv(r))return!0}return!1}function Gv(e){null!==Hv&&"function"==typeof WeakSet&&(null===qv&&(qv=new WeakSet),qv.add(e))}var Zv=function(e,t){if(null!==Hv){var n=t.staleFamilies,r=t.updatedFamilies;mv(),Ym((function(){ty(e.current,r,n)}))}},ey=function(e,t){e.context===zu&&(mv(),Ym((function(){Cy(t,e,null,null)})))};function ty(e,t,n){var r=e.alternate,o=e.child,a=e.sibling,i=e.tag,l=e.type,u=null;switch(i){case 0:case v:case 1:u=l;break;case d:u=l.render}if(null===Hv)throw new Error("Expected resolveFamily to be set during hot reload.");var s=!1,c=!1;if(null!==u){var f=Hv(u);void 0!==f&&(n.has(f)?c=!0:t.has(f)&&(1===i?c=!0:s=!0))}null!==qv&&(qv.has(e)||null!==r&&qv.has(r))&&(c=!0),c&&(e._debugNeedsRemount=!0),(c||s)&&Um(e,1,Eo),null===o||c||ty(o,t,n),null!==a&&ty(a,t,n)}var ny,ry=function(e,t){var n=new Set,r=new Set(t.map((function(e){return e.current})));return oy(e.current,r,n),n};function oy(e,t,n){var r=e.child,o=e.sibling,a=e.tag,i=e.type,l=null;switch(a){case 0:case v:case 1:l=i;break;case d:l=i.render}var u=!1;null!==l&&t.has(l)&&(u=!0),u?function(e,t){if(function(e,t){var n=e,r=!1;for(;;){if(5===n.tag)r=!0,t.add(n.stateNode);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;null===n.sibling;){if(null===n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}(e,t))return;var n=e;for(;;){switch(n.tag){case 5:return void t.add(n.stateNode);case 4:case 3:return void t.add(n.stateNode.containerInfo)}if(null===n.return)throw new Error("Expected to reach root first.");n=n.return}}(e,n):null!==r&&oy(r,t,n),null!==o&&oy(o,t,n)}ny=!1;try{var ay=Object.preventExtensions({});new Map([[ay,null]]),new Set([ay])}catch(e){ny=!0}var iy=1;function ly(e,t,n,r){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=r,this.flags=0,this.nextEffect=null,this.firstEffect=null,this.lastEffect=null,this.lanes=0,this.childLanes=0,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugID=iy++,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,ny||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}var uy,sy,cy=function(e,t,n,r){return new ly(e,t,n,r)};function fy(e){var t=e.prototype;return!(!t||!t.isReactComponent)}function dy(e,t){var n=e.alternate;null===n?((n=cy(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugID=e._debugID,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null,n.actualDuration=0,n.actualStartTime=-1),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var r=e.dependencies;switch(n.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 2:case 0:case v:n.type=Yv(e.type);break;case 1:n.type=Jv(e.type);break;case d:n.type=Kv(e.type)}return n}function py(e,t){e.flags&=2,e.nextEffect=null,e.firstEffect=null,e.lastEffect=null;var n=e.alternate;if(null===n)e.childLanes=0,e.lanes=t,e.child=null,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function hy(e,t,n,r,o,a){var i=2,l=e;if("function"==typeof e)fy(e)?(i=1,l=Jv(l)):l=Yv(l);else if("string"==typeof e)i=5;else e:switch(e){case ee:return vy(n.children,o,a,t);case pe:i=8,o|=16;break;case te:i=8,o|=1;break;case ne:return function(e,t,n,r){"string"!=typeof e.id&&u('Profiler must specify an "id" as a prop');var o=cy(p,e,r,8|t);return o.elementType=ne,o.type=ne,o.lanes=n,o.stateNode={effectDuration:0,passiveEffectDuration:0},o}(n,o,a,t);case ie:return function(e,t,n,r){var o=cy(h,e,r,t);return o.type=ie,o.elementType=ie,o.lanes=n,o}(n,o,a,t);case le:return function(e,t,n,r){var o=cy(g,e,r,t);return o.type=le,o.elementType=le,o.lanes=n,o}(n,o,a,t);case he:return yy(n,o,a,t);case me:return function(e,t,n,r){var o=cy(S,e,r,t);return o.type=me,o.elementType=me,o.lanes=n,o}(n,o,a,t);case fe:default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case re:i=f;break e;case oe:i=9;break e;case ae:i=d,l=Kv(l);break e;case ue:i=m;break e;case se:i=16,l=null;break e;case ce:i=w;break e}var s="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(s+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c=r?Be(r.type):null;throw c&&(s+="\n\nCheck the render method of `"+c+"`."),Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+"."+s)}var v=cy(i,n,t,o);return v.elementType=e,v.type=l,v.lanes=a,v._debugOwner=r,v}function my(e,t,n){var r;r=e._owner;var o=hy(e.type,e.key,e.props,r,t,n);return o._debugSource=e._source,o._debugOwner=e._owner,o}function vy(e,t,n,r){var o=cy(7,e,r,t);return o.lanes=n,o}function yy(e,t,n,r){var o=cy(k,e,r,t);return o.type=he,o.elementType=he,o.lanes=n,o}function gy(e,t,n){var r=cy(6,e,null,t);return r.lanes=n,r}function by(e,t,n){var r=null!==e.children?e.children:[],o=cy(4,r,e.key,t);return o.lanes=n,o.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},o}function wy(e,t){return null===e&&(e=cy(2,null,null,0)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.nextEffect=t.nextEffect,e.firstEffect=t.firstEffect,e.lastEffect=t.lastEffect,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugID=t._debugID,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function ky(e,t,n){switch(this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=-1,this.context=null,this.pendingContext=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=jo(0),this.expirationTimes=jo(Eo),this.pendingLanes=0,this.suspendedLanes=0,this.pingedLanes=0,this.expiredLanes=0,this.mutableReadLanes=0,this.finishedLanes=0,this.entangledLanes=0,this.entanglements=jo(0),this.mutableSourceEagerHydrationData=null,this.interactionThreadID=o.unstable_getThreadID(),this.memoizedInteractions=new Set,this.pendingInteractionMap=new Map,t){case 1:this._debugRootType="createBlockingRoot()";break;case 2:this._debugRootType="createRoot()";break;case 0:this._debugRootType="createLegacyRoot()"}}function Sy(e,t,n,r){var o=new ky(e,t,n),a=function(e){var t;return t=2===e?7:1===e?3:0,Zu&&(t|=8),cy(3,null,null,t)}(t);return o.current=a,a.stateNode=o,cc(a),o}function xy(e,t){var n=(0,t._getVersion)(t._source);null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)}function Ey(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Z,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Cy(e,t,n,o){!function(e,t){if(Xu&&"function"==typeof Xu.onScheduleFiberRoot)try{Xu.onScheduleFiberRoot(Ku,e,t)}catch(e){Gu||(Gu=!0,u("React instrumentation encountered an error: %s",e))}}(t,e);var a,i=t.current,l=Am();"undefined"!=typeof jest&&(a=i,!1===Lv&&void 0===r.unstable_flushAllWithoutAsserting&&(2&a.mode||4&a.mode)&&(Lv=!0,u("In Concurrent or Sync modes, the \"scheduler\" module needs to be mocked to guarantee consistent behaviour across tests and browsers. For example, with jest: \njest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\nFor more info, visit https://reactjs.org/link/mock-scheduler")),Iv(i));var s=Fm(i),c=function(e){if(!e)return zu;var t=lr(e),n=Ju(t);if(1===t.tag){var r=t.type;if(Bu(r))return qu(t,r,n)}return n}(n);null===t.context?t.context=c:t.pendingContext=c,He&&null!==$e&&!uy&&(uy=!0,u("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",Be($e.type)||"Unknown"));var f=dc(l,s);return f.payload={element:e},null!==(o=void 0===o?null:o)&&("function"!=typeof o&&u("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",o),f.callback=o),pc(i,f),Um(i,s,l),s}function _y(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Ty(e,t){var n=e.memoizedState;null!==n&&null!==n.dehydrated&&(n.retryLane=function(e,t){return 0!==e&&e<t?e:t}(n.retryLane,t))}function Ry(e,t){Ty(e,t);var n=e.alternate;n&&Ty(n,t)}function Py(e){var t=function(e){var t=_r(e);if(!t)return null;for(var n=t;;){if(5===n.tag||6===n.tag)return n;if(n.child&&4!==n.tag)n.child.return=n,n=n.child;else{if(n===t)return null;for(;!n.sibling;){if(!n.return||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}}return null}(e);return null===t?null:t.tag===b?t.stateNode.instance:t.stateNode}uy=!1,sy={};var Ny=function(e){return!1};var Oy,My,Iy,zy,Dy,Ly,Ay,Fy,jy=function(e,t,r){var o=t[r],a=Array.isArray(e)?e.slice():n({},e);return r+1===t.length?(Array.isArray(a)?a.splice(o,1):delete a[o],a):(a[o]=jy(e[o],t,r+1),a)},Uy=function(e,t){return jy(e,t,0)},Wy=function(e,t,r,o){var a=t[o],i=Array.isArray(e)?e.slice():n({},e);o+1===t.length?(i[r[o]]=i[a],Array.isArray(i)?i.splice(a,1):delete i[a]):i[a]=Wy(e[a],t,r,o+1);return i},By=function(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void i("copyWithRename() expects paths to be the same except for the deepest key");return Wy(e,t,n,0)}i("copyWithRename() expects paths of the same length")},Vy=function(e,t,r,o){if(r>=t.length)return o;var a=t[r],i=Array.isArray(e)?e.slice():n({},e);return i[a]=Vy(e[a],t,r+1,o),i},$y=function(e,t,n){return Vy(e,t,0,n)},Hy=function(e,t){for(var n=e.memoizedState;null!==n&&t>0;)n=n.next,t--;return n};function qy(e){var t=Tr(e);return null===t?null:t.stateNode}function Qy(e){return null}function Yy(){return $e}function Jy(e,t,n){this._internalRoot=function(e,t,n){var r=null!=n&&!0===n.hydrate;null!=n&&n.hydrationOptions;var o=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null,a=function(e,t,n,r){return Sy(e,t,n)}(e,t,r);if(function(e,t){t[du]=e}(a.current,e),e.nodeType,Vi(e.nodeType===$t?e.parentNode:e),o)for(var i=0;i<o.length;i++){xy(a,o[i])}return a}(e,t,n)}function Ky(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}Oy=function(e,t,r,o){var a=Hy(e,t);if(null!==a){var i=$y(a.memoizedState,r,o);a.memoizedState=i,a.baseState=i,e.memoizedProps=n({},e.memoizedProps),Um(e,1,Eo)}},My=function(e,t,r){var o=Hy(e,t);if(null!==o){var a=Uy(o.memoizedState,r);o.memoizedState=a,o.baseState=a,e.memoizedProps=n({},e.memoizedProps),Um(e,1,Eo)}},Iy=function(e,t,r,o){var a=Hy(e,t);if(null!==a){var i=By(a.memoizedState,r,o);a.memoizedState=i,a.baseState=i,e.memoizedProps=n({},e.memoizedProps),Um(e,1,Eo)}},zy=function(e,t,n){e.pendingProps=$y(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),Um(e,1,Eo)},Dy=function(e,t){e.pendingProps=Uy(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps),Um(e,1,Eo)},Ly=function(e,t,n){e.pendingProps=By(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),Um(e,1,Eo)},Ay=function(e){Um(e,1,Eo)},Fy=function(e){Ny=e},Jy.prototype.render=function(e){var t=this._internalRoot;"function"==typeof arguments[1]&&u("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var n=t.containerInfo;if(8!==n.nodeType){var r=Py(t.current);r&&r.parentNode!==n&&u("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}Cy(e,t,null,null)},Jy.prototype.unmount=function(){"function"==typeof arguments[0]&&u("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot,t=e.containerInfo;Cy(null,e,null,(function(){mu(t)}))};var Xy,Gy=a.ReactCurrentOwner,Zy=!1;function eg(e){return e?9===e.nodeType?e.documentElement:e.firstChild:null}function tg(e,t){var n=t||function(e){var t=eg(e);return!(!t||1!==t.nodeType||!t.hasAttribute(M))}(e);if(!n)for(var r,o=!1;r=e.lastChild;)!o&&1===r.nodeType&&r.hasAttribute(M)&&(o=!0,u("render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.")),e.removeChild(r);return!n||t||Zy||(Zy=!0,i("render(): Calling ReactDOM.render() to hydrate server-rendered markup will stop working in React v18. Replace the ReactDOM.render() call with ReactDOM.hydrate() if you want React to attach to the server HTML.")),function(e,t){return new Jy(e,0,t)}(e,n?{hydrate:!0}:void 0)}function ng(e,t,n,r,o){Xy(n),function(e,t){null!==e&&"function"!=typeof e&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}(void 0===o?null:o,"render");var a,i=n._reactRootContainer;if(i){if(a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=_y(a);l.call(e)}}Cy(t,a,e,o)}else{if(i=n._reactRootContainer=tg(n,r),a=i._internalRoot,"function"==typeof o){var s=o;o=function(){var e=_y(a);s.call(e)}}Qm((function(){Cy(t,a,e,o)}))}return _y(a)}Xy=function(e){if(e._reactRootContainer&&8!==e.nodeType){var t=Py(e._reactRootContainer._internalRoot.current);t&&t.parentNode!==e&&u("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,r=eg(e);!(!r||!gu(r))&&!n&&u("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&u("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")},ur=function(e){e.tag===h&&(Um(e,4,Am()),Ry(e,4))},function(e){sr=e}((function(e){if(e.tag===h){var t=Am(),n=bo;Um(e,n,t),Ry(e,n)}})),function(e){cr=e}((function(e){if(e.tag===h){var t=Am(),n=Fm(e);Um(e,n,t),Ry(e,n)}})),function(e){fr=e}((function(e,t){try{return t()}finally{}}));var rg=!1;function og(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!Ky(t))throw Error("Target container is not a DOM element.");return Ey(e,t,null,n)}"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||u("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),In=function(e,t,n){switch(t){case"input":return void vt(e,n);case"textarea":return void function(e,t){Ot(e,t)}(e,n);case"select":return void function(e,t){var n=e,r=t.value;null!=r&&Ct(n,!!t.multiple,r,!1)}(e,n)}},jn=qm,Un=function(e,t,n,r,o){var a=Zh;Zh|=4;try{return _s(ms,e.bind(null,t,n,r,o))}finally{0===(Zh=a)&&(hm(),Ps())}},Wn=function(){0==(49&Zh)?(function(){if(null!==_m){var e=_m;_m=null,e.forEach((function(e){!function(e){e.expiredLanes|=24&e.pendingLanes}(e),Bm(e,xs())}))}Ps()}(),mv()):0!=(Zh&Xh)&&u("unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering.")},Bn=function(e,t){var n=Zh;Zh|=2;try{return e(t)}finally{0===(Zh=n)&&(hm(),Ps())}};var ag={Events:[gu,bu,wu,An,Fn,mv,Mv]};if(!function(e){var t=e.findFiberByHostInstance,n=a.ReactCurrentDispatcher;return function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return u("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{Ku=t.inject(e),Xu=t}catch(e){u("React instrumentation encountered an error: %s.",e)}return!0}({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:Oy,overrideHookStateDeletePath:My,overrideHookStateRenamePath:Iy,overrideProps:zy,overridePropsDeletePath:Dy,overridePropsRenamePath:Ly,setSuspenseHandler:Fy,scheduleUpdate:Ay,currentDispatcherRef:n,findHostInstanceByFiber:qy,findFiberByHostInstance:t||Qy,findHostInstancesForRefresh:ry,scheduleRefresh:Zv,scheduleRoot:ey,setRefreshHandler:Qv,getCurrentFiber:Yy})}({findFiberByHostInstance:yu,bundleType:1,version:Os,rendererPackageName:"react-dom"})&&P&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var ig=window.location.protocol;/^(https?|file):$/.test(ig)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+("file:"===ig?"\nYou might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq":""),"font-weight:bold")}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ag,t.createPortal=og,t.findDOMNode=function(e){var t=Gy.current;return null!==t&&null!==t.stateNode&&(t.stateNode._warnedAboutRefsInRender||u("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Be(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0),null==e?null:1===e.nodeType?e:function(e,t){var n=lr(e);if(void 0===n)throw"function"==typeof e.render?Error("Unable to find node on an unmounted component."):Error("Argument appears to not be a ReactComponent. Keys: "+Object.keys(e));var r=Tr(n);if(null===r)return null;if(1&r.mode){var o=Be(n.type)||"Component";if(!sy[o]){sy[o]=!0;var a=$e;try{Je(r),1&n.mode?u("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,o):u("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,o)}finally{a?Je(a):Ye()}}}return r.stateNode}(e,"findDOMNode")},t.flushSync=Ym,t.hydrate=function(e,t,n){if(!Ky(t))throw Error("Target container is not a DOM element.");return vu(t)&&void 0===t._reactRootContainer&&u("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call createRoot(container, {hydrate: true}).render(element)?"),ng(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ky(t))throw Error("Target container is not a DOM element.");return vu(t)&&void 0===t._reactRootContainer&&u("You are calling ReactDOM.render() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.render(element)?"),ng(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ky(e))throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");if(vu(e)&&void 0===e._reactRootContainer&&u("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?"),e._reactRootContainer){var t=eg(e);return t&&!gu(t)&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."),Qm((function(){ng(null,null,e,!1,(function(){e._reactRootContainer=null,mu(e)}))})),!0}var n=eg(e),r=!(!n||!gu(n)),o=1===e.nodeType&&Ky(e.parentNode)&&!!e.parentNode._reactRootContainer;return r&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",o?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."),!1},t.unstable_batchedUpdates=qm,t.unstable_createPortal=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return rg||(rg=!0,i('The ReactDOM.unstable_createPortal() alias has been deprecated, and will be removed in React 18+. Update your code to use ReactDOM.createPortal() instead. It has the exact same API, but without the "unstable_" prefix.')),og(e,t,n)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){return function(e,t,n,r){if(!Ky(n))throw Error("Target container is not a DOM element.");if(null==e||void 0===e._reactInternals)throw Error("parentComponent must be a valid React Component");return ng(e,t,n,!1,r)}(e,t,n,r)},t.version=Os}()})),Hf=n((function(e){"production"===process.env.NODE_ENV?(!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==process.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=jf):e.exports=$f}));const qf=({renderers:e})=>c.createElement(c.Fragment,null,Array.from(e).map((([e,t])=>Hf.createPortal(t.reactElement,t.element,e))));class Qf extends c.Component{constructor(e){super(e),this.editorContentRef=c.createRef(),this.state={renderers:new Map}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const{editor:e}=this.props;if(e&&e.options.element){if(e.contentComponent)return;const t=this.editorContentRef.current;t.appendChild(e.options.element.firstChild),e.setOptions({element:t}),e.contentComponent=this,setTimeout((()=>e.createNodeViews()),0)}}componentWillUnmount(){const{editor:e}=this.props;if(!e)return;if(e.isDestroyed||e.view.setProps({nodeViews:{}}),e.contentComponent=null,!e.options.element.firstChild)return;const t=document.createElement("div");t.appendChild(e.options.element.firstChild),e.setOptions({element:t})}render(){return c.createElement(c.Fragment,null,c.createElement("div",{ref:this.editorContentRef}),c.createElement(qf,{renderers:this.state.renderers}))}}const Yf=c.memo(Qf);e.BubbleMenu=e=>{const t=c.useRef(null);return c.useEffect((()=>{const{editor:n,keepInBounds:r=!0}=e;return n.registerPlugin(_t({editor:n,element:t.current,keepInBounds:r})),()=>{n.unregisterPlugin(Ct)}}),[]),c.createElement("div",{ref:t,className:e.className},e.children)},e.Editor=Tt,e.EditorContent=Yf,e.NodeViewContent=e=>{const{isEditable:t}=Nt(),n=e.as||"div";return c.createElement(n,{className:e.className,"data-node-view-content":"",contentEditable:t,style:{whiteSpace:"pre-wrap"}})},e.NodeViewWrapper=e=>{const{onDragStart:t}=Nt(),n=e.as||"div";return c.createElement(n,{className:e.className,"data-node-view-wrapper":"",onDragStart:t,style:{whiteSpace:"normal"}},e.children)},e.PureEditorContent=Qf,e.ReactNodeViewRenderer=function(e,t){return n=>n.editor.contentComponent?new Ot(e,n,t):{}},e.ReactRenderer=Rt,e.useEditor=(e={})=>{const[t,n]=c.useState(null),r=function(){const[,e]=c.useState(0);return()=>e((e=>e+1))}();return c.useEffect((()=>{const t=new Tt(e);return n(t),t.on("transaction",r),()=>{t.destroy()}}),[]),t},Object.keys(t).forEach((function(n){"default"===n||e.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})),Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
54
|
-
//# sourceMappingURL=tiptap-react.bundle.umd.min.js.map
|