@tiptap/react 2.0.0-beta.21 → 2.0.0-beta.210

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.
Files changed (37) hide show
  1. package/README.md +2 -2
  2. package/dist/index.cjs +437 -0
  3. package/dist/index.d.ts +101 -0
  4. package/dist/index.js +437 -0
  5. package/package.json +45 -16
  6. package/src/BubbleMenu.tsx +32 -16
  7. package/src/Editor.ts +9 -2
  8. package/src/EditorContent.tsx +55 -12
  9. package/src/FloatingMenu.tsx +36 -14
  10. package/src/NodeViewContent.tsx +10 -3
  11. package/src/NodeViewWrapper.tsx +11 -8
  12. package/src/ReactNodeViewRenderer.tsx +82 -34
  13. package/src/ReactRenderer.tsx +38 -29
  14. package/src/index.ts +6 -6
  15. package/src/useEditor.ts +16 -4
  16. package/src/useReactNodeView.ts +1 -0
  17. package/CHANGELOG.md +0 -190
  18. package/LICENSE.md +0 -21
  19. package/dist/packages/react/src/BubbleMenu.d.ts +0 -6
  20. package/dist/packages/react/src/Editor.d.ts +0 -6
  21. package/dist/packages/react/src/EditorContent.d.ts +0 -19
  22. package/dist/packages/react/src/FloatingMenu.d.ts +0 -6
  23. package/dist/packages/react/src/NodeViewContent.d.ts +0 -6
  24. package/dist/packages/react/src/NodeViewWrapper.d.ts +0 -6
  25. package/dist/packages/react/src/ReactNodeViewRenderer.d.ts +0 -9
  26. package/dist/packages/react/src/ReactRenderer.d.ts +0 -21
  27. package/dist/packages/react/src/index.d.ts +0 -10
  28. package/dist/packages/react/src/useEditor.d.ts +0 -3
  29. package/dist/packages/react/src/useReactNodeView.d.ts +0 -6
  30. package/dist/tiptap-react.bundle.umd.min.js +0 -54
  31. package/dist/tiptap-react.bundle.umd.min.js.map +0 -1
  32. package/dist/tiptap-react.cjs.js +0 -318
  33. package/dist/tiptap-react.cjs.js.map +0 -1
  34. package/dist/tiptap-react.esm.js +0 -293
  35. package/dist/tiptap-react.esm.js.map +0 -1
  36. package/dist/tiptap-react.umd.js +0 -318
  37. package/dist/tiptap-react.umd.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,i=Object.prototype.propertyIsEnumerable;function a(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=a(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++)i.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,i=60110,a=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"),i=c("react.context"),a=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,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,o)&&!k.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_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,i,a){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 a=a(u=e),e=""===i?"."+C(u,0):i,Array.isArray(a)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),_(a,t,o,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(u=0,i=""===i?".":i+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=i+C(l=e[s],s);u+=_(l,t,o,c,a)}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=i+C(l,s++),a);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 O={current:null};function P(){var e=O.current;if(null===e)throw Error(d(321));return e}var N={ReactCurrentDispatcher:O,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=N,t.cloneElement=function(e,t,r){if(null==e)throw Error(d(267,e));var o=l({},e.props),i=e.key,a=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,u=b.current),void 0!==t.key&&(i=""+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:i,ref:a,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:i,_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:a,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 P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().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,i=60110,a=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"),i=v("react.context"),a=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 O(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 P={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){O(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){O(e,"replaceState")},enqueueSetState:function(e,t,n,r){O(e,"setState")}},N={};function M(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||P}Object.freeze(N),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 D={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)."]},I=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 z in D)D.hasOwnProperty(z)&&I(z,D[z]);function L(){}function A(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||P}L.prototype=M.prototype;var j=A.prototype=new L;function F(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 i:return F(e)+".Consumer";case o:return F(e._context)+".Provider";case a: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}j.constructor=A,e(j,M.prototype),j.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,i,a,l){var u={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_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:i}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function G(e,t,n){var r,o={},i=null,a=null,l=null,u=null;if(null!=t)for(r in q(t)&&(a=t.ref,K(t)),Q(t)&&(i=""+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(i||a){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&Y(o,p),a&&J(o,p)}return X(e,i,a,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,i,a=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&&(i=t.type.defaultProps),n)$.call(n,o)&&!H.hasOwnProperty(o)&&(void 0===n[o]&&void 0!==i?a[o]=i[o]:a[o]=n[o]);var d=arguments.length-2;if(1===d)a.children=r;else if(d>1){for(var p=Array(d),h=0;h<d;h++)p[h]=arguments[h+2];a.children=p}return X(t.type,l,u,s,c,f,a)}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 ie(e,t,o,i,a){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=a(d),h=""===i?"."+oe(d,0):i;if(Array.isArray(p)){var m="";null!=h&&(m=re(h)+"/"),ie(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=""===i?".":i+":";if(Array.isArray(e))for(var b=0;b<e.length;b++)v+=ie(c=e[b],t,o,y+oe(c,b),a);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+=ie(c=S.value,t,o,y+oe(c,E++),a)}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 ae(e,t,n){if(null==e)return e;var r=[],o=0;return ie(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===i||e.$$typeof===a||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 i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=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=i,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=a}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 a:return _e(e.render);case s:return Te(e.type,n,r);case f:return _e(e._render);case c:var o=e,i=o._payload,l=o._init;try{return Te(l(i),n,r)}catch(e){}}return""}Se=new Ee;var Re,Oe={},Pe=E.ReactDebugCurrentFrame;function Ne(e){if(e){var t=e._owner,n=Te(e.type,e._source,t?t.type:null);Pe.setExtraStackFrame(n)}else Pe.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 De(){if(w.current){var e=U(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Ie(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Re=!1;var ze={};function Le(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=De();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(!ze[n]){ze[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 i,a=o.call(e);!(i=a.next()).done;)ee(i.value)&&Le(i.value,t)}}function je(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!==a&&n.$$typeof!==s)return;t=n.propTypes}if(t){var r=U(n);!function(e,t,n,r,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var u=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(Ne(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,a,typeof l),Ne(null)),l instanceof Error&&!(l.message in Oe)&&(Oe[l.message]=!0,Ne(o),_("Failed %s type: %s",n,l.message),Ne(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 Fe(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 i=ue(e);if(!i){var a="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" 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=Ie(r);a+=u||De(),null===e?l="null":Array.isArray(e)?l="array":void 0!==e&&e.$$typeof===n?(l="<"+(U(e.type)||"Unknown")+" />",a=" 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,a)}var s=G.apply(this,arguments);if(null==s)return s;if(i)for(var c=2;c<arguments.length;c++)Ae(arguments[c],e);return e===t.Fragment?Fe(s):je(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 je(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:ae,forEach:function(e,t,n){ae(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return ae(e,(function(){t++})),t},toArray:function(e){return ae(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:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};n.Provider={$$typeof:o,_context:n};var r=!1,a=!1,l=!1,u={$$typeof:i,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(u,{Provider:{get:function(){return a||(a=!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:a,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),i=t.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(var a=0;o.text[a]==i.text[a];a++)n++;return n}if(o.content.size||i.content.size){var l=f(o.content,i.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,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};var a=e.child(--o),l=t.child(--i),u=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:n,b:r};if(a.isText&&a.text!=l.text){for(var s=0,c=Math.min(a.text.length,l.text.length);s<c&&a.text[a.text.length-s-1]==l.text[l.text.length-s-1];)s++,n--,r--;return{a:n,b:r}}if(a.content.size||l.content.size){var f=d(a.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 i=0,a=0;a<t;i++){var l=this.content[i],u=a+l.nodeSize;if(u>e&&!1!==n(l,r+a,o,i)&&l.content.size){var s=a+1;l.nodesBetween(Math.max(0,e-s),Math.min(l.content.size,t-s),n,r+s)}a=u}},p.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},p.prototype.textBetween=function(e,t,n,r){var o="",i=!0;return this.nodesBetween(e,t,(function(a,l){a.isText?(o+=a.text.slice(Math.max(e,l)-l,t-l),i=!n):a.isLeaf&&r?(o+=r,i=!n):!i&&a.isBlock&&(o+=n,i=!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,i=0;i<t;o++){var a=this.content[o],l=i+a.nodeSize;l>e&&((i<e||l>t)&&(a=a.isText?a.cut(Math.max(0,e-i),Math.min(a.text.length,t-i)):a.cut(Math.max(0,e-i-1),Math.min(a.content.size,t-i-1))),n.push(a),r+=a.nodeSize),i=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 i in t)if(!(i 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,i=r.offset,a=e.maybeChild(o),l=e.findIndex(n),u=l.index,s=l.offset;if(i==t||a.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,a.copy(S(a.content,t-i-1,n-i-1)))}function x(e,t,n,r){var o=e.findIndex(t),i=o.index,a=o.offset,l=e.maybeChild(i);if(a==t||l.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));var u=x(l.content,t-a-1,n);return u&&e.replaceChild(i,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),i=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){var a=C(e,t,n,r+1);return i.copy(i.content.replaceChild(o,a))}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 P(i,N(e,l.start,l.end,t,r))}var u=e.parent,s=u.content;return P(u,s.cut(0,e.parentOffset).append(n.content).append(s.cut(t.parentOffset)))}return P(i,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 O(e,t,n,r){var o=(t||e).node(n),i=0,a=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(R(e.nodeAfter,r),i++));for(var l=i;l<a;l++)R(o.child(l),r);t&&t.depth==n&&t.textOffset&&R(t.nodeBefore,r)}function P(e,t){if(!e.type.validContent(t))throw new b("Invalid content for node "+e.type.name);return e.copy(t)}function N(e,t,n,r,o){var i=e.depth>o&&T(e,t,o+1),a=r.depth>o&&T(n,r,o+1),l=[];return O(null,e,o,l),i&&a&&t.index(o)==n.index(o)?(_(i,a),R(P(i,N(e,t,n,r,o+1)),l)):(i&&R(P(i,M(e,t,o+1)),l),O(t,n,o,l),a&&R(P(a,M(n,r,o+1)),l)),O(r,null,o,l),new p(l)}function M(e,t,n){var r=[];(O(null,e,n,r),e.depth>n)&&R(P(T(e,t,n+1),M(e,t,n+1)),r);return O(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 i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)r++;return new w(e,n,r)},Object.defineProperties(w.prototype,k),w.empty=new w(p.empty,0,0);var D=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},I={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};D.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},I.parent.get=function(){return this.node(this.depth)},I.doc.get=function(){return this.node(0)},D.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},D.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},D.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},D.prototype.start=function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},D.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},D.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]},D.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},I.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},I.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},I.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)},D.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},D.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 i=n.marks,a=0;a<i.length;a++)!1!==i[a].type.spec.inclusive||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i},D.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},D.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},D.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 j(this,e,n)},D.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},D.prototype.max=function(e){return e.pos>this.pos?e:this},D.prototype.min=function(e){return e.pos<this.pos?e:this},D.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},D.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,i=e;;){var a=i.content.findIndex(o),l=a.index,u=a.offset,s=o-u;if(n.push(i,l,r+u),!s)break;if((i=i.child(l)).isText)break;o=s-1,r+=u+1}return new D(t,n,o)},D.resolveCached=function(e,t){for(var n=0;n<z.length;n++){var r=z[n];if(r.pos==t&&r.doc==e)return r}var o=z[L]=D.resolve(e,t);return L=(L+1)%A,o},Object.defineProperties(D.prototype,I);var z=[],L=0,A=12,j=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},F={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};F.start.get=function(){return this.$from.before(this.depth+1)},F.end.get=function(){return this.$to.after(this.depth+1)},F.parent.get=function(){return this.$from.node(this.depth)},F.startIndex.get=function(){return this.$from.index(this.depth)},F.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(j.prototype,F);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),i=n?0:r.sharedDepth(t),a=r.start(i),l=r.node(i).content.cut(r.pos-a,o.pos-a);return new w(l,r.depth-i,o.depth-i)},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 D.resolveCached(this,e)},W.prototype.resolveNoCache=function(e){return D.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 i=this.contentMatchAt(e).matchFragment(n,r,o),a=i&&i.matchFragment(this.content,t);if(!a||!a.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),i=o&&o.matchFragment(this.content,t);return!!i&&i.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));for(var e=g.none,t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!g.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map((function(e){return e.type.name})));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 i=o.indexOf(n),a=i>-1&&o[i+1];Z(e,r).forEach((function(e){a||o.push(n,a=[]),-1==a.indexOf(e)&&a.push(e)}))}}))}));for(var i=t[r.join(",")]=new V(r.indexOf(e.length-1)>-1),a=0;a<o.length;a+=2){var l=o[a+1].sort(G);i.next.push(o[a],t[l.join(",")]||n(l))}return i}}(function(e){var t=[[]];return o(i(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 i(e,t){if("choice"==e.type)return e.exprs.reduce((function(e,n){return e.concat(i(n,t))}),[]);if("seq"==e.type)for(var a=0;;a++){var l=i(e.exprs[a],t);if(a==e.exprs.length-1)return l;o(l,t=n())}else{if("star"==e.type){var u=n();return r(t,u),o(i(e.expr,u),u),[r(u)]}if("plus"==e.type){var s=n();return o(i(e.expr,t),s),o(i(e.expr,s),s),[r(s)]}if("opt"==e.type)return[r(t)].concat(i(e.expr,t));if("range"==e.type){for(var c=t,f=0;f<e.min;f++){var d=n();o(i(e.expr,c),d),c=d}if(-1==e.max)o(i(e.expr,c),c);else for(var p=e.min;p<e.max;p++){var h=n();r(c,h),o(i(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],i=!o.validEnd,a=[],l=0;l<o.next.length;l+=2){var u=o.next[l],s=o.next[l+1];a.push(u.name),!i||u.isText||u.hasRequiredAttrs()||(i=!1),-1==r.indexOf(s)&&r.push(s)}i&&t.err("Only non-generatable nodes ("+a.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(i,a){var l=i.matchFragment(e,n);if(l&&(!t||l.validEnd))return p.from(a.map((function(e){return e.createAndFill()})));for(var u=0;u<i.next.length;u+=2){var s=i.next[u],c=i.next[u+1];if(!s.isText&&!s.hasRequiredAttrs()&&-1==r.indexOf(c)){r.push(c);var f=o(c,a.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 i=[],a=r;a.type;a=a.via)i.push(a.type);return i.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 i in n){var a=n[i];a.groups.indexOf(t)>-1&&o.push(a)}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 i=0;i<o.length;i++){var a=o[i],l=a.term,u=a.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 i=e[r];if(!i.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=i.default}n[r]=o}return n}function ne(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new ie(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 ie=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},ae={isRequired:{configurable:!0}};ae.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(ie.prototype,ae);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 i=o.getAttrs(e);if(!1===i)continue;o.attrs=i}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 i=this.styles[o];if(!(0!=i.style.indexOf(e)||i.context&&!n.matchesContext(i.context)||i.style.length>e.length&&(61!=i.style.charCodeAt(e.length)||i.style.slice(e.length+1)!=t))){if(i.getAttrs){var a=i.getAttrs(t);if(!1===a)continue;i.attrs=a}return i}}},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 i;for(var a in e.nodes)i=void 0,(i=e.nodes[a].spec.parseDOM)&&i.forEach((function(e){n(e=ye(e)),e.node=a}));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,i,a){this.type=e,this.attrs=t,this.solid=o,this.match=i||(4&a?null:e.contentMatch),this.options=a,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,i=de(t.preserveWhitespace)|(n?4:0);r=o?new pe(o.type,o.attrs,g.none,g.none,!0,t.topMatch||o.type.contentMatch,i):new pe(n?null:e.schema.topNodeType,null,g.none,g.none,!0,null,i),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 i=[],a=function(e){i.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(i.indexOf(l)<0&&a(l))return!0}};return a(o.contentMatch)?{v:!0}:void 0}};for(var o in n){var i=r(o);if(i)return i.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 i=0;i<n.length;i++)this.removePendingMark(n[i],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)t=2&n.options?t.replace(/\r\n?/g,"\n"):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),this.ignoreFallback(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 i,a=this.top,l=this.needsBlock;if(se.hasOwnProperty(r))i=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),i&&this.sync(a),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.ignoreFallback=function(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},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,i,a=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):(i=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(i));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 a.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--),i&&this.removePendingMark(i,l)},he.prototype.addAll=function(e,t,n,r){for(var o=n||0,i=n?e.childNodes[n]:e.firstChild,a=null==r?null:e.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i),t&&se.hasOwnProperty(i.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],i=o.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,n=o,!i.length))break;if(o.solid)break}if(!t)return!1;this.sync(n);for(var a=0;a<t.length;a++)this.enterInner(t[a],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 i=null==r?-5&o.options:de(r);4&o.options&&0==o.content.length&&(i|=4),this.nodes.push(new pe(e,t,o.activeMarks,o.pendingMarks,n,null,i)),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),i=-(r?r.depth+1:0)+(o?0:1),a=function(e,l){for(;e>=0;e--){var u=n[e];if(""==u){if(e==n.length-1||0==e)continue;for(;l>=i;l--)if(a(e-1,l))return!0;return!1}var s=l>0||0==l&&o?t.nodes[l].type:r&&l>=i?r.node(l-i).type:null;if(!s||s.name!=u&&-1==s.groups.indexOf(u))return!1;l--}return!0};return a(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,i=null;return e.forEach((function(e){if(i||e.marks.length){i||(i=[]);for(var n=0,a=0;n<i.length&&a<e.marks.length;){var l=e.marks[a];if(r.marks[l.type.name]){if(!l.eq(i[n])||!1===l.type.spec.spanning)break;n+=2,a++}else a++}for(;n<i.length;)o=i.pop(),i.pop();for(;a<e.marks.length;){var u=e.marks[a++],s=r.serializeMark(u,e.isInline,t);s&&(i.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 i=null,a=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?a.setAttributeNS(s.slice(0,c),s.slice(c+1),l[s]):a.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:a,contentDOM:a}}var p=be.renderSpec(e,d,n),h=p.dom,m=p.contentDOM;if(a.appendChild(h),m){if(i)throw new RangeError("Multiple content holes");i=m}}return{dom:a,contentDOM:i}},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,t){return e+t*Se}function Ee(e){return 65535&e}var Ce=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},_e=function(e,t){void 0===t&&(t=!1),this.ranges=e,this.inverted=t};_e.prototype.recover=function(e){var t=0,n=Ee(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)},_e.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},_e.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},_e.prototype._map=function(e,t,n){for(var r=0,o=this.inverted?2:1,i=this.inverted?1:2,a=0;a<this.ranges.length;a+=3){var l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;var u=this.ranges[a+o],s=this.ranges[a+i],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:xe(a/3,e-l);return new Ce(f,t<0?e!=l:e!=c,d)}r+=s-u}return n?e+r:new Ce(e+r)},_e.prototype.touches=function(e,t){for(var n=0,r=Ee(t),o=this.inverted?2:1,i=this.inverted?1:2,a=0;a<this.ranges.length;a+=3){var l=this.ranges[a]-(this.inverted?n:0);if(l>e)break;var u=this.ranges[a+o];if(e<=l+u&&a==3*r)return!0;n+=this.ranges[a+i]-u}return!1},_e.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 i=this.ranges[r],a=i-(this.inverted?o:0),l=i+(this.inverted?0:o),u=this.ranges[r+t],s=this.ranges[r+n];e(a,a+u,l,l+s),o+=s-u}},_e.prototype.invert=function(){return new _e(this.ranges,!this.inverted)},_e.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},_e.offset=function(e){return 0==e?_e.empty:new _e(e<0?[0,-e,0]:[0,0,e])},_e.empty=new _e([]);var Te=function(e,t,n,r){this.maps=e||[],this.from=n||0,this.to=null==r?this.maps.length:r,this.mirror=t};function Re(e){var t=Error.call(this,e);return t.__proto__=Re.prototype,t}Te.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new Te(this.maps,this.mirror,e,t)},Te.prototype.copy=function(){return new Te(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},Te.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},Te.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)}},Te.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)]},Te.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},Te.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)}},Te.prototype.invert=function(){var e=new Te;return e.appendMappingInverted(this),e},Te.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},Te.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},Te.prototype._map=function(e,t,n){for(var r=!1,o=this.from;o<this.to;o++){var i=this.maps[o].mapResult(e,t);if(null!=i.recover){var a=this.getMirror(o);if(null!=a&&a>o&&a<this.to){o=a,e=this.maps[a].recover(i.recover);continue}}i.deleted&&(r=!0),e=i.pos}return n?e:new Ce(e,r)},Re.prototype=Object.create(Error.prototype),Re.prototype.constructor=Re,Re.prototype.name="TransformError";var Oe=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Te},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},Oe.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new Re(t.failed);return this},Oe.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},Oe.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(Oe.prototype,Pe);var Me=Object.create(null),De=function(){};De.prototype.apply=function(e){return Ne()},De.prototype.getMap=function(){return _e.empty},De.prototype.invert=function(e){return Ne()},De.prototype.map=function(e){return Ne()},De.prototype.merge=function(e){return null},De.prototype.toJSON=function(){return Ne()},De.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=Me[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},De.jsonID=function(e,t){if(e in Me)throw new RangeError("Duplicate use of step JSON ID "+e);return Me[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&&Ae(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 _e([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}(De);De.jsonID("replace",ze);var Le=function(e){function t(t,n,r,o,i,a,l){e.call(this),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=a,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&&(Ae(e,this.from,this.gapFrom)||Ae(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 _e([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),i=e.map(this.gapTo,1);return n.deleted&&r.deleted||o<n.pos||i>r.pos?null:new t(n.pos,r.pos,o,i,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}(De);function Ae(e,t,n){for(var r=e.resolve(t),o=n-t,i=r.depth;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0)for(var a=r.node(i).maybeChild(r.indexAfter(i));o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}return!1}function je(e,t,n){for(var r=[],o=0;o<e.childCount;o++){var i=e.child(o);i.content.size&&(i=i.copy(je(i.content,t,i))),i.isInline&&(i=t(i,n,o)),r.push(i)}return p.fromArray(r)}De.jsonID("replaceAround",Le),Oe.prototype.lift=function(e,t){for(var n=e.$from,r=e.$to,o=e.depth,i=n.before(o+1),a=r.after(o+1),l=i,u=a,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 Le(l,u,i,a,new w(s.append(h),c,m),s.size-c,!0))},Oe.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,i=e.end;return this.step(new Le(o,i,o,i,new w(n,0,0),t.length,!0))},Oe.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 i=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(i).map(t),n)){o.clearIncompatible(o.mapping.slice(i).map(t,1),n);var a=o.mapping.slice(i),l=a.map(t,1),u=a.map(t+e.nodeSize,1);return o.step(new Le(l,u,l+1,u-1,new w(p.from(n.create(r,null,e.marks)),0,0),1,!0)),!1}})),this},Oe.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 i=t.create(n,null,r||o.marks);if(o.isLeaf)return this.replaceWith(e,e+o.nodeSize,i);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new Le(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new w(p.from(i),0,0),1,!0))},Oe.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var r=this.doc.resolve(e),o=p.empty,i=p.empty,a=r.depth,l=r.depth-t,u=t-1;a>l;a--,u--){o=p.from(r.node(a).copy(o));var s=n&&n[u];i=p.from(s?s.type.create(s.attrs,i):r.node(a).copy(i))}return this.step(new ze(e,e,new w(o.append(i),t,t),!0))},Oe.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)),i=new w(je(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,i)},t.prototype.invert=function(){return new Ue(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}(De);De.jsonID("addMark",Fe);var Ue=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(je(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}(De);function We(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}De.jsonID("removeMark",Ue),Oe.prototype.addMark=function(e,t,n){var r=this,o=[],i=[],a=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)||(a&&a.to==f&&a.mark.eq(c[h])?a.to=d:o.push(a=new Ue(f,d,c[h])));l&&l.to==f?l.to=d:i.push(l=new Fe(f,d,n))}}})),o.forEach((function(e){return r.step(e)})),i.forEach((function(e){return r.step(e)})),this},Oe.prototype.removeMark=function(e,t,n){var r=this;void 0===n&&(n=null);var o=[],i=0;return this.doc.nodesBetween(e,t,(function(r,a){if(r.isInline){i++;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(a+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==i-1&&d.eq(o[h].style)&&(p=m)}p?(p.to=c,p.step=i):o.push({style:d,from:Math.max(a,e),to:c,step:i})}}})),o.forEach((function(e){return r.step(new Ue(e.from,e.to,e.style))})),this},Oe.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var r=this.doc.nodeAt(e),o=[],i=e+1,a=0;a<r.childCount;a++){var l=r.child(a),u=i+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 Ue(i,u,l.marks[c]))}else o.push(new ze(i,u,w.empty));i=u}if(!n.validEnd){var f=n.fillBefore(p.empty,!0);this.replace(i,i,new w(f,0,0))}for(var d=o.length-1;d>=0;d--)this.step(o[d]);return this},Oe.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),i=e.resolve(n);return We(o,i,r)?new ze(t,n,r):new Be(o,i,r).fit()}(this.doc,e,t,n);return r&&this.step(r),this},Oe.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new w(p.from(n),0,0))},Oe.prototype.delete=function(e,t){return this.replace(e,t,w.empty)},Oe.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var Be=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 i=e.depth;i>0;i--)this.placed=p.from(e.node(i).copy(this.placed))},Ve={depth:{configurable:!0}};function $e(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy($e(e.firstChild.content,t-1,n)))}function He(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(He(e.lastChild.content,t-1,n)))}function qe(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 Ye(e,t,n,r,o){var i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;var l=r.fillBefore(i.content,!0,a);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,i.content,a)?l:null}function Je(e,t,n,r,o){if(t<n){var i=e.firstChild;e=e.replaceChild(0,i.copy(Je(i.content,t+1,n,r,i)))}if(t>r){var a=o.contentMatchAt(0),l=a.fillBefore(e).append(e);e=l.append(a.matchFragment(l).fillBefore(p.empty,!0))}return e}function Ke(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}Ve.depth.get=function(){return this.frontier.length-1},Be.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 i=this.placed,a=r.depth,l=o.depth;a&&l&&1==i.childCount;)i=i.firstChild.content,a--,l--;var u=new w(i,a,l);return t>-1?new Le(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},Be.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=qe(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,o=this.depth;o>=0;o--){var i=this.frontier[o],a=i.type,l=i.match,u=void 0,s=void 0;if(1==e&&(r?l.matchType(r.type)||(s=l.fillBefore(p.from(r),!1)):a.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}},Be.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=qe(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)},Be.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,o=qe(t,n);if(o.childCount<=1&&n>0){var i=t.size-n<=n+o.size;this.unplaced=new w($e(t,n-1,1),n-1,i?n-1:r)}else this.unplaced=new w($e(t,n,1),n,r)},Be.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,r=e.parent,o=e.inject,i=e.wrap;this.depth>n;)this.closeFrontierNode();if(i)for(var a=0;a<i.length;a++)this.openFrontierNode(i[a]);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=He(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($e(l.content,t-1,1),t-1,y<0?l.openEnd:t-1):new w($e(l.content,t,c),l.openStart,l.openEnd)},Be.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||!Ye(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},Be.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,i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=Ye(e,t,o,r,i);if(a){for(var l=t-1;l>=0;l--){var u=this.frontier[l],s=u.match,c=Ye(e,l,u.type,s,!0);if(!c||c.childCount)continue e}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}},Be.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=He(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},Be.prototype.openFrontierNode=function(e,t,n){var r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=He(this.placed,this.depth,p.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},Be.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(p.empty,!0);e.childCount&&(this.placed=He(this.placed,this.frontier.length,e))},Object.defineProperties(Be.prototype,Ve),Oe.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(We(r,o,n))return this.step(new ze(e,t,n));var i=Ke(r,this.doc.resolve(t));0==i[i.length-1]&&i.pop();var a=-(r.depth+1);i.unshift(a);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;i.indexOf(l)>-1?a=l:r.before(l)==u&&i.splice(1,0,-l)}for(var c=i.indexOf(a),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<i.length;b++){var k=i[(b+c)%i.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(Je(n.content,0,n.openStart,y),y,n.openEnd))}}for(var C=this.steps.length,_=i.length-1;_>=0&&(this.replace(e,t,n),!(this.steps.length>C));_--){var T=i[_];T<0||(e=r.before(T),t=o.after(T))}return this},Oe.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 i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(var a=r.depth-1;a>=0;a--){var l=r.indexAfter(a);if(r.node(a).canReplaceWith(l,l,n))return r.after(a+1);if(l<r.node(a).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))},Oe.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),r=this.doc.resolve(t),o=Ke(n,r),i=0;i<o.length;i++){var a=o[i],l=i==o.length-1;if(l&&0==a||n.node(a).type.contentMatch.validEnd)return this.delete(n.start(a),r.end(a));if(a>0&&(l||n.node(a-1).canReplace(n.index(a-1),r.indexAfter(a-1))))return this.delete(n.before(a),r.after(a))}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 Xe=Object.create(null),Ge=function(e,t,n){this.ranges=n||[new et(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},Ze={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};Ze.anchor.get=function(){return this.$anchor.pos},Ze.head.get=function(){return this.$head.pos},Ze.from.get=function(){return this.$from.pos},Ze.to.get=function(){return this.$to.pos},Ze.$from.get=function(){return this.ranges[0].$from},Ze.$to.get=function(){return this.ranges[0].$to},Ze.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},Ge.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},Ge.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 i=e.steps.length,a=this.ranges,l=0;l<a.length;l++){var u=a[l],s=u.$from,c=u.$to,f=e.mapping.slice(i);e.replaceRange(f.map(s.pos),f.map(c.pos),l?w.empty:t),0==l&&ut(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}},Ge.prototype.replaceWith=function(e,t){for(var n=e.steps.length,r=this.ranges,o=0;o<r.length;o++){var i=r[o],a=i.$from,l=i.$to,u=e.mapping.slice(n),s=u.map(a.pos),c=u.map(l.pos);o?e.deleteRange(s,c):(e.replaceRangeWith(s,c,t),ut(e,n,t.isInline?-1:1))}},Ge.findFrom=function(e,t,n){var r=e.parent.inlineContent?new tt(e):lt(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 i=t<0?lt(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):lt(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(i)return i}},Ge.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new it(e.node(0))},Ge.atStart=function(e){return lt(e,e,0,0,1)||new it(e)},Ge.atEnd=function(e){return lt(e,e,e.content.size,e.childCount,-1)||new it(e)},Ge.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=Xe[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},Ge.jsonID=function(e,t){if(e in Xe)throw new RangeError("Duplicate use of selection JSON ID "+e);return Xe[e]=t,t.prototype.jsonID=e,t},Ge.prototype.getBookmark=function(){return tt.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(Ge.prototype,Ze),Ge.prototype.visible=!0;var et=function(e,t){this.$from=e,this.$to=t},tt=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 i=n.resolve(r.map(this.anchor));return new t(i.parent.inlineContent?i: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 nt(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 i=n.pos-r.pos;if(o&&!i||(o=i>=0?1:-1),!r.parent.inlineContent){var a=e.findFrom(r,o,!0)||e.findFrom(r,-o,!0);if(!a)return e.near(r,o);r=a.$head}return n.parent.inlineContent||(0==i||(n=(e.findFrom(n,-o,!0)||e.findFrom(n,o,!0)).$anchor).pos<r.pos!=i<0)&&(n=r),new t(n,r)},Object.defineProperties(t.prototype,n),t}(Ge);Ge.jsonID("text",tt);var nt=function(e,t){this.anchor=e,this.head=t};nt.prototype.map=function(e){return new nt(e.map(this.anchor),e.map(this.head))},nt.prototype.resolve=function(e){return tt.between(e.resolve(this.anchor),e.resolve(this.head))};var rt=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),i=o.deleted,a=o.pos,l=n.resolve(a);return i?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 ot(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}(Ge);rt.prototype.visible=!1,Ge.jsonID("node",rt);var ot=function(e){this.anchor=e};ot.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,r=t.pos;return n?new nt(r,r):new ot(r)},ot.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&rt.isSelectable(n)?new rt(t):Ge.near(t)};var it=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}(Ge);Ge.jsonID("all",it);var at={map:function(){return this},resolve:function(e){return new it(e)}};function lt(e,t,n,r,o,i){if(t.inlineContent)return tt.create(e,n);for(var a=r-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){var l=t.child(a);if(l.isAtom){if(!i&&rt.isSelectable(l))return rt.create(e,n-(o<0?l.nodeSize:0))}else{var u=lt(e,l,n+o,o<0?l.childCount:0,o,i);if(u)return u}n+=l.nodeSize*o}}function ut(e,t,n){var r=e.steps.length-1;if(!(r<t)){var o,i=e.steps[r];if(i instanceof ze||i instanceof Le)e.mapping.maps[r].forEach((function(e,t,n,r){null==o&&(o=r)})),e.setSelection(Ge.near(e.doc.resolve(o),n))}}var st=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 i=this.doc.resolve(t);o=n==t?i.marks():i.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.setSelection(Ge.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}(Oe);function ct(e,t){return t&&e?e.bind(t):e}var ft=function(e,t,n){this.name=e,this.init=ct(t.init,n),this.apply=ct(t.apply,n)},dt=[new ft("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new ft("selection",{init:function(e,t){return e.selection||Ge.atStart(t.doc)},apply:function(e){return e.selection}}),new ft("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new ft("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],pt=function(e,t){var n=this;this.schema=e,this.fields=dt.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 ft(e.key,e.spec.state,e))}))},ht=function(e){this.config=e},mt={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};mt.schema.get=function(){return this.config.schema},mt.plugins.get=function(){return this.config.plugins},ht.prototype.apply=function(e){return this.applyTransaction(e).state},ht.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},ht.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,i=0;i<this.config.plugins.length;i++){var a=this.config.plugins[i];if(a.spec.appendTransaction){var l=r?r[i].n:0,u=r?r[i].state:this,s=l<t.length&&a.spec.appendTransaction.call(a,l?t.slice(l):t,u,n);if(s&&n.filterTransaction(s,i)){if(s.setMeta("appendedTransaction",e),!r){r=[];for(var c=0;c<this.config.plugins.length;c++)r.push(c<i?{state:n,n:t.length}:{state:this,n:0})}t.push(s),n=n.applyInner(s),o=!0}r&&(r[i]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}},ht.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new ht(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 i=0;i<vt.length;i++)vt[i](this,e,t);return t},mt.tr.get=function(){return new st(this)},ht.create=function(e){for(var t=new pt(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new ht(t),r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n},ht.prototype.reconfigure=function(e){for(var t=new pt(this.schema,e.plugins),n=t.fields,r=new ht(t),o=0;o<n.length;o++){var i=n[o].name;r[i]=this.hasOwnProperty(i)?this[i]:n[o].init(e,r)}return r},ht.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},ht.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 pt(e.schema,e.plugins),o=new ht(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=Ge.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 i in n){var a=n[i],l=a.spec.state;if(a.key==r.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(t,i))return void(o[r.name]=l.fromJSON.call(a,e,t[i],o))}o[r.name]=r.init(e,o)}})),o},ht.addApplyListener=function(e){vt.push(e)},ht.removeApplyListener=function(e){var t=vt.indexOf(e);t>-1&&vt.splice(t,1)},Object.defineProperties(ht.prototype,mt);var vt=[];function yt(e,t,n){for(var r in e){var o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=yt(o,t,{})),n[r]=o}return n}var gt=function(e){this.props={},e.props&&yt(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:wt("plugin")};gt.prototype.getState=function(e){return e[this.key]};var bt=Object.create(null);function wt(e){return e in bt?e+"$"+ ++bt[e]:(bt[e]=0,e+"$")}var kt=function(e){void 0===e&&(e="key"),this.key=wt(e)};kt.prototype.get=function(e){return e.config.pluginsByKey[this.key]},kt.prototype.getState=function(e){return e[this.key]};var St="top",xt="bottom",Et="right",Ct="left",_t="auto",Tt=[St,xt,Et,Ct],Rt="start",Ot="end",Pt="viewport",Nt="popper",Mt=Tt.reduce((function(e,t){return e.concat([t+"-"+Rt,t+"-"+Ot])}),[]),Dt=[].concat(Tt,[_t]).reduce((function(e,t){return e.concat([t,t+"-"+Rt,t+"-"+Ot])}),[]),It=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function zt(e){return e?(e.nodeName||"").toLowerCase():null}function Lt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function At(e){return e instanceof Lt(e).Element||e instanceof Element}function jt(e){return e instanceof Lt(e).HTMLElement||e instanceof HTMLElement}function Ft(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Lt(e).ShadowRoot||e instanceof ShadowRoot)}var Ut={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];jt(o)&&zt(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});jt(r)&&zt(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Wt(e){return e.split("-")[0]}function Bt(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Vt(e){var t=Bt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function $t(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ft(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ht(e){return Lt(e).getComputedStyle(e)}function qt(e){return["table","td","th"].indexOf(zt(e))>=0}function Qt(e){return((At(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yt(e){return"html"===zt(e)?e:e.assignedSlot||e.parentNode||(Ft(e)?e.host:null)||Qt(e)}function Jt(e){return jt(e)&&"fixed"!==Ht(e).position?e.offsetParent:null}function Kt(e){for(var t=Lt(e),n=Jt(e);n&&qt(n)&&"static"===Ht(n).position;)n=Jt(n);return n&&("html"===zt(n)||"body"===zt(n)&&"static"===Ht(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&jt(e)&&"fixed"===Ht(e).position)return null;for(var n=Yt(e);jt(n)&&["html","body"].indexOf(zt(n))<0;){var r=Ht(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Xt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var Gt=Math.max,Zt=Math.min,en=Math.round;function tn(e,t,n){return Gt(e,Zt(t,n))}function nn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function rn(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var on={top:"auto",right:"auto",bottom:"auto",left:"auto"};function an(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,s=e.roundOffsets,c=!0===s?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:en(en(t*r)/r)||0,y:en(en(n*r)/r)||0}}(i):"function"==typeof s?s(i):i,f=c.x,d=void 0===f?0:f,p=c.y,h=void 0===p?0:p,m=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),y=Ct,g=St,b=window;if(u){var w=Kt(n),k="clientHeight",S="clientWidth";w===Lt(n)&&"static"!==Ht(w=Qt(n)).position&&(k="scrollHeight",S="scrollWidth"),w=w,o===St&&(g=xt,h-=w[k]-r.height,h*=l?1:-1),o===Ct&&(y=Et,d-=w[S]-r.width,d*=l?1:-1)}var x,E=Object.assign({position:a},u&&on);return l?Object.assign({},E,((x={})[g]=v?"0":"",x[y]=m?"0":"",x.transform=(b.devicePixelRatio||1)<2?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",x)):Object.assign({},E,((t={})[g]=v?h+"px":"",t[y]=m?d+"px":"",t.transform="",t))}var ln={passive:!0};var un={left:"right",right:"left",bottom:"top",top:"bottom"};function sn(e){return e.replace(/left|right|bottom|top/g,(function(e){return un[e]}))}var cn={start:"end",end:"start"};function fn(e){return e.replace(/start|end/g,(function(e){return cn[e]}))}function dn(e){var t=Lt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pn(e){return Bt(Qt(e)).left+dn(e).scrollLeft}function hn(e){var t=Ht(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function mn(e){return["html","body","#document"].indexOf(zt(e))>=0?e.ownerDocument.body:jt(e)&&hn(e)?e:mn(Yt(e))}function vn(e,t){var n;void 0===t&&(t=[]);var r=mn(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Lt(r),a=o?[i].concat(i.visualViewport||[],hn(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(vn(Yt(a)))}function yn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gn(e,t){return t===Pt?yn(function(e){var t=Lt(e),n=Qt(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,l=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:o,height:i,x:a+pn(e),y:l}}(e)):jt(t)?function(e){var t=Bt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):yn(function(e){var t,n=Qt(e),r=dn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Gt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Gt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+pn(e),u=-r.scrollTop;return"rtl"===Ht(o||n).direction&&(l+=Gt(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:u}}(Qt(e)))}function bn(e,t,n){var r="clippingParents"===t?function(e){var t=vn(Yt(e)),n=["absolute","fixed"].indexOf(Ht(e).position)>=0&&jt(e)?Kt(e):e;return At(n)?t.filter((function(e){return At(e)&&$t(e,n)&&"body"!==zt(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=gn(e,n);return t.top=Gt(r.top,t.top),t.right=Zt(r.right,t.right),t.bottom=Zt(r.bottom,t.bottom),t.left=Gt(r.left,t.left),t}),gn(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function wn(e){return e.split("-")[1]}function kn(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Wt(o):null,a=o?wn(o):null,l=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case St:t={x:l,y:n.y-r.height};break;case xt:t={x:l,y:n.y+n.height};break;case Et:t={x:n.x+n.width,y:u};break;case Ct:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=i?Xt(i):null;if(null!=s){var c="y"===s?"height":"width";switch(a){case Rt:t[s]=t[s]-(n[c]/2-r[c]/2);break;case Ot:t[s]=t[s]+(n[c]/2-r[c]/2)}}return t}function Sn(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,l=n.rootBoundary,u=void 0===l?Pt:l,s=n.elementContext,c=void 0===s?Nt:s,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,m=nn("number"!=typeof h?h:rn(h,Tt)),v=c===Nt?"reference":Nt,y=e.elements.reference,g=e.rects.popper,b=e.elements[d?v:c],w=bn(At(b)?b:b.contextElement||Qt(e.elements.popper),a,u),k=Bt(y),S=kn({reference:k,element:g,strategy:"absolute",placement:o}),x=yn(Object.assign({},g,S)),E=c===Nt?x:k,C={top:w.top-E.top+m.top,bottom:E.bottom-w.bottom+m.bottom,left:w.left-E.left+m.left,right:E.right-w.right+m.right},_=e.modifiersData.offset;if(c===Nt&&_){var T=_[o];Object.keys(C).forEach((function(e){var t=[Et,xt].indexOf(e)>=0?1:-1,n=[St,xt].indexOf(e)>=0?"y":"x";C[e]+=T[n]*t}))}return C}function xn(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,s=void 0===u?Dt:u,c=wn(r),f=c?l?Mt:Mt.filter((function(e){return wn(e)===c})):Tt,d=f.filter((function(e){return s.indexOf(e)>=0}));0===d.length&&(d=f,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var p=d.reduce((function(t,n){return t[n]=Sn(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Wt(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}function En(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Cn(e){return[St,Et,xt,Ct].some((function(t){return e[t]>=0}))}function _n(e,t,n){void 0===n&&(n=!1);var r,o,i=Qt(t),a=Bt(e),l=jt(t),u={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(l||!l&&!n)&&(("body"!==zt(t)||hn(i))&&(u=(r=t)!==Lt(r)&&jt(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:dn(r)),jt(t)?((s=Bt(t)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=pn(i))),{x:a.left+u.scrollLeft-s.x,y:a.top+u.scrollTop-s.y,width:a.width,height:a.height}}function Tn(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Rn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var On='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Pn=["name","enabled","phase","fn","effect","requires","options"];var Nn="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Mn={placement:"bottom",modifiers:[],strategy:"absolute"};function Dn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function In(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Mn:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mn,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],s=!1,c={state:l,setOptions:function(n){f(),l.options=Object.assign({},i,l.options,n),l.scrollParents={reference:At(e)?vn(e):e.contextElement?vn(e.contextElement):[],popper:vn(t)};var o,a,s,d=function(e){var t=Tn(e);return It.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,l.options.modifiers)));if(l.orderedModifiers=d.filter((function(e){return e.enabled})),"production"!==process.env.NODE_ENV){if(function(e){e.forEach((function(t){Object.keys(t).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(Rn(On,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Rn(On,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));case"phase":It.indexOf(t.phase)<0&&console.error(Rn(On,t.name,'"phase"',"either "+It.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Rn(On,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":"function"!=typeof t.effect&&console.error(Rn(On,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":Array.isArray(t.requires)||console.error(Rn(On,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Rn(On,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+Pn.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(Rn('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((o=[].concat(d,l.options.modifiers),a=function(e){return e.name},s=new Set,o.filter((function(e){var t=a(e);if(!s.has(t))return s.add(t),!0})))),Wt(l.options.placement)===_t)l.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));var p=Ht(t);[p.marginTop,p.marginRight,p.marginBottom,p.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:l,name:t,instance:c,options:r}),a=function(){};u.push(i||a)}})),c.update()},forceUpdate:function(){if(!s){var e=l.elements,t=e.reference,n=e.popper;if(Dn(t,n)){l.rects={reference:_n(t,Kt(n),"fixed"===l.options.strategy),popper:Vt(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0,o=0;o<l.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==l.reset){var i=l.orderedModifiers[o],a=i.fn,u=i.options,f=void 0===u?{}:u,d=i.name;"function"==typeof a&&(l=a({state:l,options:f,name:d,instance:c})||l)}else l.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(Nn)}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){f(),s=!0}};if(!Dn(e,t))return"production"!==process.env.NODE_ENV&&console.error(Nn),c;function f(){u.forEach((function(e){return e()})),u=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var zn=In({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,u=Lt(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&s.forEach((function(e){e.addEventListener("scroll",n.update,ln)})),l&&u.addEventListener("resize",n.update,ln),function(){i&&s.forEach((function(e){e.removeEventListener("scroll",n.update,ln)})),l&&u.removeEventListener("resize",n.update,ln)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=kn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,u=void 0===l||l;if("production"!==process.env.NODE_ENV){var s=Ht(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return s.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var c={placement:Wt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,an(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,an(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ut,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Dt.reduce((function(e,n){return e[n]=function(e,t,n){var r=Wt(e),o=[Ct,St].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Ct,Et].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],u=l.x,s=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,u=n.fallbackPlacements,s=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,y=Wt(v),g=u||(y===v||!h?[sn(v)]:function(e){if(Wt(e)===_t)return[];var t=sn(e);return[fn(e),t,fn(t)]}(v)),b=[v].concat(g).reduce((function(e,n){return e.concat(Wt(n)===_t?xn(t,{placement:n,boundary:c,rootBoundary:f,padding:s,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,k=t.rects.popper,S=new Map,x=!0,E=b[0],C=0;C<b.length;C++){var _=b[C],T=Wt(_),R=wn(_)===Rt,O=[St,xt].indexOf(T)>=0,P=O?"width":"height",N=Sn(t,{placement:_,boundary:c,rootBoundary:f,altBoundary:d,padding:s}),M=O?R?Et:Ct:R?xt:St;w[P]>k[P]&&(M=sn(M));var D=sn(M),I=[];if(i&&I.push(N[T]<=0),l&&I.push(N[M]<=0,N[D]<=0),I.every((function(e){return e}))){E=_,x=!1;break}S.set(_,I)}if(x)for(var z=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},L=h?3:1;L>0;L--){if("break"===z(L))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,u=n.boundary,s=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,v=Sn(t,{boundary:u,rootBoundary:s,padding:f,altBoundary:c}),y=Wt(t.placement),g=wn(t.placement),b=!g,w=Xt(y),k="x"===w?"y":"x",S=t.modifiersData.popperOffsets,x=t.rects.reference,E=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,_={x:0,y:0};if(S){if(i||l){var T="y"===w?St:Ct,R="y"===w?xt:Et,O="y"===w?"height":"width",P=S[w],N=S[w]+v[T],M=S[w]-v[R],D=p?-E[O]/2:0,I=g===Rt?x[O]:E[O],z=g===Rt?-E[O]:-x[O],L=t.elements.arrow,A=p&&L?Vt(L):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=j[T],U=j[R],W=tn(0,x[O],A[O]),B=b?x[O]/2-D-W-F-C:I-W-F-C,V=b?-x[O]/2+D+W+U+C:z+W+U+C,$=t.elements.arrow&&Kt(t.elements.arrow),H=$?"y"===w?$.clientTop||0:$.clientLeft||0:0,q=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,Q=S[w]+B-q-H,Y=S[w]+V-q;if(i){var J=tn(p?Zt(N,Q):N,P,p?Gt(M,Y):M);S[w]=J,_[w]=J-P}if(l){var K="x"===w?St:Ct,X="x"===w?xt:Et,G=S[k],Z=G+v[K],ee=G-v[X],te=tn(p?Zt(Z,Q):Z,G,p?Gt(ee,Y):ee);S[k]=te,_[k]=te-G}}t.modifiersData[r]=_}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Wt(n.placement),u=Xt(l),s=[Ct,Et].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return nn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:rn(e,Tt))}(o.padding,n),f=Vt(i),d="y"===u?St:Ct,p="y"===u?xt:Et,h=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],m=a[u]-n.rects.reference[u],v=Kt(i),y=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,g=h/2-m/2,b=c[d],w=y-f[s]-c[p],k=y/2-f[s]/2+g,S=tn(b,k,w),x=u;n.modifiersData[r]=((t={})[x]=S,t.centerOffset=S-k,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(jt(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),$t(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Sn(t,{elementContext:"reference"}),l=Sn(t,{altBoundary:!0}),u=En(a,r),s=En(l,o,i),c=Cn(u),f=Cn(s);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),Ln="tippy-content",An="tippy-arrow",jn="tippy-svg-arrow",Fn={passive:!0,capture:!0};function Un(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Wn(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Bn(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Vn(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function $n(e){return[].concat(e)}function Hn(e,t){-1===e.indexOf(t)&&e.push(t)}function qn(e){return[].slice.call(e)}function Qn(){return document.createElement("div")}function Yn(e){return["Element","Fragment"].some((function(t){return Wn(e,t)}))}function Jn(e){return Yn(e)?[e]:function(e){return Wn(e,"NodeList")}(e)?qn(e):Array.isArray(e)?e:qn(document.querySelectorAll(e))}function Kn(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Xn(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Gn(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var Zn={isTouch:!1},er=0;function tr(){Zn.isTouch||(Zn.isTouch=!0,window.performance&&document.addEventListener("mousemove",nr))}function nr(){var e=performance.now();e-er<20&&(Zn.isTouch=!1,document.removeEventListener("mousemove",nr)),er=e}function rr(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var or,ir="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",ar=/MSIE |Trident\//.test(ir);function lr(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function ur(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function sr(e){return ur("\n %ctippy.js\n\n %c"+ur(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function cr(e){return[sr(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function fr(e,t){var n;e&&!or.has(t)&&(or.add(t),(n=console).warn.apply(n,cr(t)))}function dr(e,t){var n;e&&!or.has(t)&&(or.add(t),(n=console).error.apply(n,cr(t)))}"production"!==process.env.NODE_ENV&&(or=new Set);var pr={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},hr=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},pr,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),mr=Object.keys(hr);function vr(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function yr(e,t){var n=Object.assign({},t,{content:Bn(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(vr(Object.assign({},hr,{plugins:t}))):mr).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},hr.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function gr(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var n,r,o=function(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}(hr,Object.keys(pr)),i=(n=o,r=e,!{}.hasOwnProperty.call(n,r));i&&(i=0===t.filter((function(t){return t.name===e})).length),fr(i,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}function br(e,t){e.innerHTML=t}function wr(e){var t=Qn();return!0===e?t.className=An:(t.className=jn,Yn(e)?t.appendChild(e):br(t,e)),t}function kr(e,t){Yn(t.content)?(br(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?br(e,t.content):e.textContent=t.content)}function Sr(e){var t=e.firstElementChild,n=qn(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ln)})),arrow:n.find((function(e){return e.classList.contains(An)||e.classList.contains(jn)})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function xr(e){var t=Qn(),n=Qn();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Qn();function o(n,r){var o=Sr(t),i=o.box,a=o.content,l=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||kr(a,e.props),r.arrow?l?n.arrow!==r.arrow&&(i.removeChild(l),i.appendChild(wr(r.arrow))):i.appendChild(wr(r.arrow)):l&&i.removeChild(l)}return r.className=Ln,r.setAttribute("data-state","hidden"),kr(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}xr.$$tippy=!0;var Er=1,Cr=[],_r=[];function Tr(e,t){var n,r,o,i,a,l,u,s,c,f=yr(e,Object.assign({},hr,{},vr((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),d=!1,p=!1,h=!1,m=!1,v=[],y=Vn(Y,f.interactiveDebounce),g=Er++,b=(c=f.plugins).filter((function(e,t){return c.indexOf(e)===t})),w={id:g,reference:e,popper:Qn(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){"production"!==process.env.NODE_ENV&&fr(w.state.isDestroyed,lr("setProps"));if(w.state.isDestroyed)return;I("onBeforeUpdate",[w,t]),q();var n=w.props,r=yr(e,Object.assign({},w.props,{},t,{ignoreAttributes:!0}));w.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(A(),y=Vn(Y,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?$n(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");L(),D(),x&&x(n,r);w.popperInstance&&(G(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));I("onAfterUpdate",[w,t])},setContent:function(e){w.setProps({content:e})},show:function(){"production"!==process.env.NODE_ENV&&fr(w.state.isDestroyed,lr("show"));var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=Zn.isTouch&&!w.props.touch,o=Un(w.props.duration,0,hr.duration);if(e||t||n||r)return;if(O().hasAttribute("disabled"))return;if(I("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,R()&&(S.style.visibility="visible");D(),W(),w.state.isMounted||(S.style.transition="none");if(R()){var i=N(),a=i.box,l=i.content;Kn([a,l],0)}u=function(){var e;if(w.state.isVisible&&!m){if(m=!0,S.offsetHeight,S.style.transition=w.props.moveTransition,R()&&w.props.animation){var t=N(),n=t.box,r=t.content;Kn([n,r],o),Xn([n,r],"visible")}z(),L(),Hn(_r,w),null==(e=w.popperInstance)||e.forceUpdate(),w.state.isMounted=!0,I("onMount",[w]),w.props.animation&&R()&&function(e,t){V(e,t)}(o,(function(){w.state.isShown=!0,I("onShown",[w])}))}},function(){var e,t=w.props.appendTo,n=O();e=w.props.interactive&&t===hr.appendTo||"parent"===t?n.parentNode:Bn(t,[n]);e.contains(S)||e.appendChild(S);G(),"production"!==process.env.NODE_ENV&&fr(w.props.interactive&&t===hr.appendTo&&n.nextElementSibling!==S,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){"production"!==process.env.NODE_ENV&&fr(w.state.isDestroyed,lr("hide"));var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=Un(w.props.duration,1,hr.duration);if(e||t||n)return;if(I("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,m=!1,d=!1,R()&&(S.style.visibility="hidden");if(A(),B(),D(),R()){var o=N(),i=o.box,a=o.content;w.props.animation&&(Kn([i,a],r),Xn([i,a],"hidden"))}z(),L(),w.props.animation?R()&&function(e,t){V(e,(function(){!w.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&t()}))}(r,w.unmount):w.unmount()},hideWithInteractivity:function(e){"production"!==process.env.NODE_ENV&&fr(w.state.isDestroyed,lr("hideWithInteractivity"));P().addEventListener("mousemove",y),Hn(Cr,y),y(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){"production"!==process.env.NODE_ENV&&fr(w.state.isDestroyed,lr("unmount"));w.state.isVisible&&w.hide();if(!w.state.isMounted)return;Z(),ee().forEach((function(e){e._tippy.unmount()})),S.parentNode&&S.parentNode.removeChild(S);_r=_r.filter((function(e){return e!==w})),w.state.isMounted=!1,I("onHidden",[w])},destroy:function(){"production"!==process.env.NODE_ENV&&fr(w.state.isDestroyed,lr("destroy"));if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),q(),delete e._tippy,w.state.isDestroyed=!0,I("onDestroy",[w])}};if(!f.render)return"production"!==process.env.NODE_ENV&&dr(!0,"render() function has not been supplied."),w;var k=f.render(w),S=k.popper,x=k.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+w.id,w.popper=S,e._tippy=w,S._tippy=w;var E=b.map((function(e){return e.fn(w)})),C=e.hasAttribute("aria-expanded");return H(),L(),D(),I("onCreate",[w]),f.showOnCreate&&te(),S.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),S.addEventListener("mouseleave",(function(e){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(P().addEventListener("mousemove",y),y(e))})),w;function _(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function T(){return"hold"===_()[0]}function R(){var e;return!!(null==(e=w.props.render)?void 0:e.$$tippy)}function O(){return s||e}function P(){var e,t,n=O().parentNode;return n?(null==(t=$n(n)[0])||null==(e=t.ownerDocument)?void 0:e.body)?t.ownerDocument:document:document}function N(){return Sr(S)}function M(e){return w.state.isMounted&&!w.state.isVisible||Zn.isTouch||a&&"focus"===a.type?0:Un(w.props.delay,e?0:1,hr.delay)}function D(){S.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",S.style.zIndex=""+w.props.zIndex}function I(e,t,n){var r;(void 0===n&&(n=!0),E.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=w.props)[e].apply(r,t)}function z(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,r=S.id;$n(w.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(w.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function L(){!C&&w.props.aria.expanded&&$n(w.props.triggerTarget||e).forEach((function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===O()?"true":"false"):e.removeAttribute("aria-expanded")}))}function A(){P().removeEventListener("mousemove",y),Cr=Cr.filter((function(e){return e!==y}))}function j(e){if(!(Zn.isTouch&&(h||"mousedown"===e.type)||w.props.interactive&&S.contains(e.target))){if(O().contains(e.target)){if(Zn.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else I("onClickOutside",[w,e]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),p=!0,setTimeout((function(){p=!1})),w.state.isMounted||B())}}function F(){h=!0}function U(){h=!1}function W(){var e=P();e.addEventListener("mousedown",j,!0),e.addEventListener("touchend",j,Fn),e.addEventListener("touchstart",U,Fn),e.addEventListener("touchmove",F,Fn)}function B(){var e=P();e.removeEventListener("mousedown",j,!0),e.removeEventListener("touchend",j,Fn),e.removeEventListener("touchstart",U,Fn),e.removeEventListener("touchmove",F,Fn)}function V(e,t){var n=N().box;function r(e){e.target===n&&(Gn(n,"remove",r),t())}if(0===e)return t();Gn(n,"remove",l),Gn(n,"add",r),l=r}function $(t,n,r){void 0===r&&(r=!1),$n(w.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),v.push({node:e,eventType:t,handler:n,options:r})}))}function H(){var e;T()&&($("touchstart",Q,{passive:!0}),$("touchend",J,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch($(e,Q),e){case"mouseenter":$("mouseleave",J);break;case"focus":$(ar?"focusout":"blur",K);break;case"focusin":$("focusout",K)}}))}function q(){v.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),v=[]}function Q(e){var t,n=!1;if(w.state.isEnabled&&!X(e)&&!p){var r="focus"===(null==(t=a)?void 0:t.type);a=e,s=e.currentTarget,L(),!w.state.isVisible&&Wn(e,"MouseEvent")&&Cr.forEach((function(t){return t(e)})),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||d)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:te(e),"click"===e.type&&(d=!n),n&&!r&&ne(e)}}function Y(e){var t=e.target,n=O().contains(t)||S.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=o.placement.split("-")[0],l=o.modifiersData.offset;if(!l)return!0;var u="bottom"===a?l.top.y:0,s="top"===a?l.bottom.y:0,c="right"===a?l.left.x:0,f="left"===a?l.right.x:0,d=t.top-r+u>i,p=r-t.bottom-s>i,h=t.left-n+c>i,m=n-t.right-f>i;return d||p||h||m}))}(ee().concat(S).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:f}:null})).filter(Boolean),e)&&(A(),ne(e))}function J(e){X(e)||w.props.trigger.indexOf("click")>=0&&d||(w.props.interactive?w.hideWithInteractivity(e):ne(e))}function K(e){w.props.trigger.indexOf("focusin")<0&&e.target!==O()||w.props.interactive&&e.relatedTarget&&S.contains(e.relatedTarget)||ne(e)}function X(e){return!!Zn.isTouch&&T()!==e.type.indexOf("touch")>=0}function G(){Z();var t=w.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=R()?Sr(S).arrow:null,s=i?{getBoundingClientRect:i,contextElement:i.contextElement||O()}:e,c=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(R()){var n=N().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];R()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),w.popperInstance=zn(s,S,Object.assign({},n,{placement:r,onFirstUpdate:u,modifiers:c}))}function Z(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ee(){return qn(S.querySelectorAll("[data-tippy-root]"))}function te(e){w.clearDelayTimeouts(),e&&I("onTrigger",[w,e]),W();var t=M(!0),n=_(),o=n[0],i=n[1];Zn.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){w.show()}),t):w.show()}function ne(e){if(w.clearDelayTimeouts(),I("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=M(!1);t?o=setTimeout((function(){w.state.isVisible&&w.hide()}),t):i=requestAnimationFrame((function(){w.hide()}))}}else B()}}function Rr(e,t){void 0===t&&(t={});var n=hr.plugins.concat(t.plugins||[]);"production"!==process.env.NODE_ENV&&(!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;dr(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),dr(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),gr(t,n)),document.addEventListener("touchstart",tr,Fn),window.addEventListener("blur",rr);var r=Object.assign({},t,{plugins:n}),o=Jn(e);if("production"!==process.env.NODE_ENV){var i=Yn(r.content),a=o.length>1;fr(i&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var l=o.reduce((function(e,t){var n=t&&Tr(t,r);return n&&e.push(n),e}),[]);return Yn(e)?l[0]:l}Rr.defaultProps=hr,Rr.setDefaultProps=function(e){"production"!==process.env.NODE_ENV&&gr(e,[]),Object.keys(e).forEach((function(t){hr[t]=e[t]}))},Rr.currentInput=Zn,Object.assign({},Ut,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Rr.setDefaultProps({render:xr});class Or{constructor({editor:e,element:t,view:n,tippyOptions:r}){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.view=n,this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.createTooltip(r),this.element.style.visibility="visible"}createTooltip(e={}){this.tippy=Rr(this.view.dom,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...e})}update(e,n){const{state:r,composing:o}=e,{doc:i,selection:a}=r,l=n&&n.doc.eq(i)&&n.selection.eq(a);if(o||l)return;const{from:u,to:s,empty:c}=a;c?this.hide():(this.tippy.setProps({getReferenceClientRect:()=>t.posToDOMRect(e,u,s)}),this.show())}show(){this.tippy.show()}hide(){this.tippy.hide()}destroy(){this.tippy.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Pr=new kt("menuBubble"),Nr=e=>new gt({key:Pr,view:t=>new Or({view:t,...e})});t.Extension.create({name:"bubbleMenu",defaultOptions:{element:null,tippyOptions:{}},addProseMirrorPlugins(){return this.options.element?[Nr({editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions})]:[]}});class Mr extends t.Editor{constructor(){super(...arguments),this.contentComponent=null}}class Dr{constructor({editor:e,element:t,view:n,tippyOptions:r}){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.view=n,this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.createTooltip(r),this.element.style.visibility="visible"}createTooltip(e={}){this.tippy=Rr(this.view.dom,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...e})}update(e,n){const{state:r,composing:o}=e,{doc:i,selection:a}=r,l=n&&n.doc.eq(i)&&n.selection.eq(a);if(o||l)return;const{$anchor:u,empty:s,from:c,to:f}=a,d=1===u.depth,p=u.parent.type===r.doc.type.contentMatch.defaultType,h=t.isNodeEmpty(a.$anchor.parent);s&&(d&&p&&h)?(this.tippy.setProps({getReferenceClientRect:()=>t.posToDOMRect(e,c,f)}),this.show()):this.hide()}show(){this.tippy.show()}hide(){this.tippy.hide()}destroy(){this.tippy.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Ir=new kt("menuFloating"),zr=e=>new gt({key:Ir,view:t=>new Dr({view:t,...e})});t.Extension.create({name:"bubbleMenu",defaultOptions:{element:null,tippyOptions:{}},addProseMirrorPlugins(){return this.options.element?[zr({editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions})]:[]}});class Lr{constructor(e,{editor:t,props:n={},as:r="div"}){this.ref=null,this.id=Math.floor(4294967295*Math.random()).toString(),this.component=e,this.editor=t,this.props=n,this.element=document.createElement(r),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 Ar=c.createContext({onDragStart:void 0});class jr 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.name)}const t=e=>{const t=this.onDragStart.bind(this),n=this.component;return c.createElement(Ar.Provider,{value:{onDragStart:t}},c.createElement(n,Object.assign({},e)))};t.displayName="ReactNodeView",this.contentDOMElement=this.node.isLeaf?null:document.createElement(this.node.isInline?"span":"div"),this.renderer=new Lr(t,{editor:this.editor,props:e,as:this.node.isInline?"span":"div"})}get dom(){var e;if(this.renderer.element.firstElementChild&&!(null===(e=this.renderer.element.firstElementChild)||void 0===e?void 0:e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){if(this.node.isLeaf)return null;const e=this.dom.querySelector("[data-node-view-content]");return this.contentDOMElement&&e&&!e.contains(this.contentDOMElement)&&e.appendChild(this.contentDOMElement),this.contentDOMElement}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(),this.contentDOMElement=null}}
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 Fr=n((function(e,t){var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.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},i=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},i=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 i=2*(r+1)-1,a=e[i],l=i+1,u=e[l];if(void 0!==a&&0>C(a,n))void 0!==u&&0>C(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);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,O=null,P=3,N=!1,M=!1,D=!1;function I(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 z(e){if(D=!1,I(e),!M)if(null!==x(_))M=!0,n(L);else{var t=x(T);null!==t&&r(z,t.startTime-e)}}function L(e,n){M=!1,D&&(D=!1,o()),N=!0;var i=P;try{for(I(n),O=x(_);null!==O&&(!(O.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=O.callback;if("function"==typeof a){O.callback=null,P=O.priorityLevel;var l=a(O.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?O.callback=l:O===x(_)&&E(_),I(n)}else E(_);O=x(_)}if(null!==O)var u=!0;else{var s=x(T);null!==s&&r(z,s.startTime-n),u=!1}return u}finally{O=null,P=i,N=!1}}var A=i;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||N||(M=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return x(_)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=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=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=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:i,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>l?(e.sortIndex=a,S(T,e),null===x(_)&&e===x(T)&&(D?o():D=!0,r(z,a-l))):(e.sortIndex=u,S(_,e),M||N||(M=!0,n(L))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}})),Ur=n((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e,n,r,o;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.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,i=e[o];if(!(void 0!==i&&C(i,t)>0))return;e[o]=t,e[r]=i,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 i=2*(r+1)-1,a=e[i],l=i+1,u=e[l];if(void 0!==a&&C(a,t)<0)void 0!==u&&C(u,a)<0?(e[r]=u,e[l]=t,r=l):(e[r]=a,e[i]=t,r=i);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,O=null,P=3,N=!1,M=!1,D=!1;function I(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 z(t){if(D=!1,I(t),!M)if(null!==x(_))M=!0,e(L);else{var r=x(T);null!==r&&n(z,r.startTime-t)}}function L(e,o){M=!1,D&&(D=!1,r()),N=!0;var i=P;try{return function(e,r){var o=r;I(o),O=x(_);for(;null!==O&&(!(O.expirationTime>o)||e&&!t.unstable_shouldYield());){var i=O.callback;if("function"==typeof i){O.callback=null,P=O.priorityLevel;var a=i(O.expirationTime<=o);o=t.unstable_now(),"function"==typeof a?O.callback=a:O===x(_)&&E(_),I(o)}else E(_);O=x(_)}if(null!==O)return!0;var l=x(T);return null!==l&&n(z,l.startTime-o),!1}(e,o)}finally{O=null,P=i,N=!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||N||(M=!0,e(L))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return x(_)},t.unstable_next=function(e){var t;switch(P){case 1:case 2:case 3:t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=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=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(o,i,a){var l,u,s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.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:i,priorityLevel:o,startTime:l,expirationTime:f,sortIndex:-1};return l>s?(d.sortIndex=l,S(T,d),null===x(_)&&d===x(T)&&(D?r():D=!0,n(z,l-s))):(d.sortIndex=f,S(_,d),M||N||(M=!0,e(L))),d},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}}()})),Wr=n((function(e){"production"===process.env.NODE_ENV?e.exports=Fr:e.exports=Ur}));
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 Br(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(Br(227));var Vr=new Set,$r={};function Hr(e,t){qr(e,t),qr(e+"Capture",t)}function qr(e,t){for($r[e]=t,e=0;e<t.length;e++)Vr.add(t[e])}var Qr=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Yr=/^[: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]*$/,Jr=Object.prototype.hasOwnProperty,Kr={},Xr={};function Gr(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Zr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Zr[e]=new Gr(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Zr[t]=new Gr(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Zr[e]=new Gr(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Zr[e]=new Gr(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){Zr[e]=new Gr(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Zr[e]=new Gr(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Zr[e]=new Gr(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Zr[e]=new Gr(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Zr[e]=new Gr(e,5,!1,e.toLowerCase(),null,!1,!1)}));var eo=/[\-:]([a-z])/g;function to(e){return e[1].toUpperCase()}function no(e,t,n,r){var o=Zr.hasOwnProperty(t)?Zr[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!!Jr.call(Xr,e)||!Jr.call(Kr,e)&&(Yr.test(e)?Xr[e]=!0:(Kr[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(eo,to);Zr[t]=new Gr(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(eo,to);Zr[t]=new Gr(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(eo,to);Zr[t]=new Gr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Zr[e]=new Gr(e,1,!1,e.toLowerCase(),null,!1,!1)})),Zr.xlinkHref=new Gr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Zr[e]=new Gr(e,1,!1,e.toLowerCase(),null,!0,!0)}));var ro=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,oo=60103,io=60106,ao=60107,lo=60108,uo=60114,so=60109,co=60110,fo=60112,po=60113,ho=60120,mo=60115,vo=60116,yo=60121,go=60128,bo=60129,wo=60130,ko=60131;if("function"==typeof Symbol&&Symbol.for){var So=Symbol.for;oo=So("react.element"),io=So("react.portal"),ao=So("react.fragment"),lo=So("react.strict_mode"),uo=So("react.profiler"),so=So("react.provider"),co=So("react.context"),fo=So("react.forward_ref"),po=So("react.suspense"),ho=So("react.suspense_list"),mo=So("react.memo"),vo=So("react.lazy"),yo=So("react.block"),So("react.scope"),go=So("react.opaque.id"),bo=So("react.debug_trace_mode"),wo=So("react.offscreen"),ko=So("react.legacy_hidden")}var xo,Eo="function"==typeof Symbol&&Symbol.iterator;function Co(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Eo&&e[Eo]||e["@@iterator"])?e:null}function _o(e){if(void 0===xo)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);xo=t&&t[1]||""}return"\n"+xo+e}var To=!1;function Ro(e,t){if(!e||To)return"";To=!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"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{To=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_o(e):""}function Oo(e){switch(e.tag){case 5:return _o(e.type);case 16:return _o("Lazy");case 13:return _o("Suspense");case 19:return _o("SuspenseList");case 0:case 2:case 15:return e=Ro(e.type,!1);case 11:return e=Ro(e.type.render,!1);case 22:return e=Ro(e.type._render,!1);case 1:return e=Ro(e.type,!0);default:return""}}function Po(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 ao:return"Fragment";case io:return"Portal";case uo:return"Profiler";case lo:return"StrictMode";case po:return"Suspense";case ho:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case co:return(e.displayName||"Context")+".Consumer";case so:return(e._context.displayName||"Context")+".Provider";case fo:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case mo:return Po(e.type);case yo:return Po(e._render);case vo:t=e._payload,e=e._init;try{return Po(e(t))}catch(e){}}return null}function No(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Mo(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Do(e){e._valueTracker||(e._valueTracker=function(e){var t=Mo(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Io(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Mo(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function zo(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 Lo(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 Ao(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=No(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 jo(e,t){null!=(t=t.checked)&&no(e,"checked",t,!1)}function Fo(e,t){jo(e,t);var n=No(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")?Wo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wo(e,t.type,No(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Uo(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 Wo(e,t,n){"number"===t&&zo(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Bo(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 Vo(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=""+No(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 $o(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(Br(91));return l({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ho(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(Br(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(Br(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:No(n)}}function qo(e,t){var n=No(t.value),r=No(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 Qo(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Yo="http://www.w3.org/1999/xhtml",Jo="http://www.w3.org/2000/svg";function Ko(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 Xo(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ko(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Go,Zo,ei=(Zo=function(e,t){if(e.namespaceURI!==Jo||"innerHTML"in e)e.innerHTML=t;else{for((Go=Go||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Go.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 Zo(e,t)}))}:Zo);function ti(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 ni={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},ri=["Webkit","ms","Moz","O"];function oi(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ni.hasOwnProperty(e)&&ni[e]?(""+t).trim():t+"px"}function ii(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=oi(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ni).forEach((function(e){ri.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ni[t]=ni[e]}))}));var ai=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 li(e,t){if(t){if(ai[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(Br(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(Br(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(Br(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(Br(62))}}function ui(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 si(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ci=null,fi=null,di=null;function pi(e){if(e=Lu(e)){if("function"!=typeof ci)throw Error(Br(280));var t=e.stateNode;t&&(t=ju(t),ci(e.stateNode,e.type,t))}}function hi(e){fi?di?di.push(e):di=[e]:fi=e}function mi(){if(fi){var e=fi,t=di;if(di=fi=null,pi(e),t)for(e=0;e<t.length;e++)pi(t[e])}}function vi(e,t){return e(t)}function yi(e,t,n,r,o){return e(t,n,r,o)}function gi(){}var bi=vi,wi=!1,ki=!1;function Si(){null===fi&&null===di||(gi(),mi())}function xi(e,t){var n=e.stateNode;if(null===n)return null;var r=ju(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(Br(231,t,typeof n));return n}var Ei=!1;if(Qr)try{var Ci={};Object.defineProperty(Ci,"passive",{get:function(){Ei=!0}}),window.addEventListener("test",Ci,Ci),window.removeEventListener("test",Ci,Ci)}catch(Zo){Ei=!1}function _i(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Ti=!1,Ri=null,Oi=!1,Pi=null,Ni={onError:function(e){Ti=!0,Ri=e}};function Mi(e,t,n,r,o,i,a,l,u){Ti=!1,Ri=null,_i.apply(Ni,arguments)}function Di(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 Ii(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 zi(e){if(Di(e)!==e)throw Error(Br(188))}function Li(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Di(e)))throw Error(Br(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return zi(o),e;if(i===r)return zi(o),t;i=i.sibling}throw Error(Br(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(Br(189))}}if(n.alternate!==r)throw Error(Br(190))}if(3!==n.tag)throw Error(Br(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 Ai(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var ji,Fi,Ui,Wi,Bi=!1,Vi=[],$i=null,Hi=null,qi=null,Qi=new Map,Yi=new Map,Ji=[],Ki="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 Xi(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function Gi(e,t){switch(e){case"focusin":case"focusout":$i=null;break;case"dragenter":case"dragleave":Hi=null;break;case"mouseover":case"mouseout":qi=null;break;case"pointerover":case"pointerout":Qi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yi.delete(t.pointerId)}}function Zi(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=Xi(t,n,r,o,i),null!==t&&(null!==(t=Lu(t))&&Fi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function ea(e){var t=zu(e.target);if(null!==t){var n=Di(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ii(n)))return e.blockedOn=t,void Wi(e.lanePriority,(function(){Wr.unstable_runWithPriority(e.priority,(function(){Ui(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function ta(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=La(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Lu(n))&&Fi(t),e.blockedOn=n,!1;t.shift()}return!0}function na(e,t,n){ta(e)&&n.delete(t)}function ra(){for(Bi=!1;0<Vi.length;){var e=Vi[0];if(null!==e.blockedOn){null!==(e=Lu(e.blockedOn))&&ji(e);break}for(var t=e.targetContainers;0<t.length;){var n=La(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&Vi.shift()}null!==$i&&ta($i)&&($i=null),null!==Hi&&ta(Hi)&&(Hi=null),null!==qi&&ta(qi)&&(qi=null),Qi.forEach(na),Yi.forEach(na)}function oa(e,t){e.blockedOn===t&&(e.blockedOn=null,Bi||(Bi=!0,Wr.unstable_scheduleCallback(Wr.unstable_NormalPriority,ra)))}function ia(e){function t(t){return oa(t,e)}if(0<Vi.length){oa(Vi[0],e);for(var n=1;n<Vi.length;n++){var r=Vi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==$i&&oa($i,e),null!==Hi&&oa(Hi,e),null!==qi&&oa(qi,e),Qi.forEach(t),Yi.forEach(t),n=0;n<Ji.length;n++)(r=Ji[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ji.length&&null===(n=Ji[0]).blockedOn;)ea(n),null===n.blockedOn&&Ji.shift()}function aa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var la={animationend:aa("Animation","AnimationEnd"),animationiteration:aa("Animation","AnimationIteration"),animationstart:aa("Animation","AnimationStart"),transitionend:aa("Transition","TransitionEnd")},ua={},sa={};function ca(e){if(ua[e])return ua[e];if(!la[e])return e;var t,n=la[e];for(t in n)if(n.hasOwnProperty(t)&&t in sa)return ua[e]=n[t];return e}Qr&&(sa=document.createElement("div").style,"AnimationEvent"in window||(delete la.animationend.animation,delete la.animationiteration.animation,delete la.animationstart.animation),"TransitionEvent"in window||delete la.transitionend.transition);var fa=ca("animationend"),da=ca("animationiteration"),pa=ca("animationstart"),ha=ca("transitionend"),ma=new Map,va=new Map,ya=["abort","abort",fa,"animationEnd",da,"animationIteration",pa,"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",ha,"transitionEnd","waiting","waiting"];function ga(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)),va.set(r,t),ma.set(r,o),Hr(o,[r])}}(0,Wr.unstable_now)();var ba=8;function wa(e){if(0!=(1&e))return ba=15,1;if(0!=(2&e))return ba=14,2;if(0!=(4&e))return ba=13,4;var t=24&e;return 0!==t?(ba=12,t):0!=(32&e)?(ba=11,32):0!==(t=192&e)?(ba=10,t):0!=(256&e)?(ba=9,256):0!==(t=3584&e)?(ba=8,t):0!=(4096&e)?(ba=7,4096):0!==(t=4186112&e)?(ba=6,t):0!==(t=62914560&e)?(ba=5,t):67108864&e?(ba=4,67108864):0!=(134217728&e)?(ba=3,134217728):0!==(t=805306368&e)?(ba=2,t):0!=(1073741824&e)?(ba=1,1073741824):(ba=8,e)}function ka(e,t){var n=e.pendingLanes;if(0===n)return ba=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=ba=15;else if(0!==(i=134217727&n)){var u=i&~a;0!==u?(r=wa(u),o=ba):0!==(l&=i)&&(r=wa(l),o=ba)}else 0!==(i=n&~a)?(r=wa(i),o=ba):0!==l&&(r=wa(l),o=ba);if(0===r)return 0;if(r=n&((0>(r=31-Ta(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(wa(t),o<=ba)return t;ba=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Ta(t)),r|=e[n],t&=~o;return r}function Sa(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function xa(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ea(24&~t))?xa(10,t):e;case 10:return 0===(e=Ea(192&~t))?xa(8,t):e;case 8:return 0===(e=Ea(3584&~t))&&(0===(e=Ea(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ea(805306368&~t))&&(t=268435456),t}throw Error(Br(358,e))}function Ea(e){return e&-e}function Ca(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _a(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ta(t)]=n}var Ta=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ra(e)/Oa|0)|0},Ra=Math.log,Oa=Math.LN2;var Pa=Wr.unstable_UserBlockingPriority,Na=Wr.unstable_runWithPriority,Ma=!0;function Da(e,t,n,r){wi||gi();var o=za,i=wi;wi=!0;try{yi(o,e,t,n,r)}finally{(wi=i)||Si()}}function Ia(e,t,n,r){Na(Pa,za.bind(null,e,t,n,r))}function za(e,t,n,r){var o;if(Ma)if((o=0==(4&t))&&0<Vi.length&&-1<Ki.indexOf(e))e=Xi(null,e,t,n,r),Vi.push(e);else{var i=La(e,t,n,r);if(null===i)o&&Gi(e,r);else{if(o){if(-1<Ki.indexOf(e))return e=Xi(i,e,t,n,r),void Vi.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return $i=Zi($i,e,t,n,r,o),!0;case"dragenter":return Hi=Zi(Hi,e,t,n,r,o),!0;case"mouseover":return qi=Zi(qi,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Qi.set(i,Zi(Qi.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Yi.set(i,Zi(Yi.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;Gi(e,r)}hu(e,t,r,null,n)}}}function La(e,t,n,r){var o=si(r);if(null!==(o=zu(o))){var i=Di(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Ii(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return hu(e,t,r,o,n),null}var Aa=null,ja=null,Fa=null;function Ua(){if(Fa)return Fa;var e,t,n=ja,r=n.length,o="value"in Aa?Aa.value:Aa.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Fa=o.slice(e,1<t?1-t:void 0)}function Wa(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 Ba(){return!0}function Va(){return!1}function $a(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Ba:Va,this.isPropagationStopped=Va,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=Ba)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ba)},persist:function(){},isPersistent:Ba}),t}var Ha,qa,Qa,Ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ja=$a(Ya),Ka=l({},Ya,{view:0,detail:0}),Xa=$a(Ka),Ga=l({},Ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sl,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!==Qa&&(Qa&&"mousemove"===e.type?(Ha=e.screenX-Qa.screenX,qa=e.screenY-Qa.screenY):qa=Ha=0,Qa=e),Ha)},movementY:function(e){return"movementY"in e?e.movementY:qa}}),Za=$a(Ga),el=$a(l({},Ga,{dataTransfer:0})),tl=$a(l({},Ka,{relatedTarget:0})),nl=$a(l({},Ya,{animationName:0,elapsedTime:0,pseudoElement:0})),rl=$a(l({},Ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ol=$a(l({},Ya,{data:0})),il={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},al={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"},ll={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ul(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=ll[e])&&!!t[e]}function sl(){return ul}var cl=$a(l({},Ka,{key:function(e){if(e.key){var t=il[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Wa(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?al[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sl,charCode:function(e){return"keypress"===e.type?Wa(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Wa(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),fl=$a(l({},Ga,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),dl=$a(l({},Ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sl})),pl=$a(l({},Ya,{propertyName:0,elapsedTime:0,pseudoElement:0})),hl=$a(l({},Ga,{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})),ml=[9,13,27,32],vl=Qr&&"CompositionEvent"in window,yl=null;Qr&&"documentMode"in document&&(yl=document.documentMode);var gl=Qr&&"TextEvent"in window&&!yl,bl=Qr&&(!vl||yl&&8<yl&&11>=yl),wl=String.fromCharCode(32),kl=!1;function Sl(e,t){switch(e){case"keyup":return-1!==ml.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xl(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var El=!1;var Cl={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 _l(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Cl[e.type]:"textarea"===t}function Tl(e,t,n,r){hi(r),0<(t=vu(t,"onChange")).length&&(n=new Ja("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rl=null,Ol=null;function Pl(e){uu(e,0)}function Nl(e){if(Io(Au(e)))return e}function Ml(e,t){if("change"===e)return t}var Dl=!1;if(Qr){var Il;if(Qr){var zl="oninput"in document;if(!zl){var Ll=document.createElement("div");Ll.setAttribute("oninput","return;"),zl="function"==typeof Ll.oninput}Il=zl}else Il=!1;Dl=Il&&(!document.documentMode||9<document.documentMode)}function Al(){Rl&&(Rl.detachEvent("onpropertychange",jl),Ol=Rl=null)}function jl(e){if("value"===e.propertyName&&Nl(Ol)){var t=[];if(Tl(t,Ol,e,si(e)),e=Pl,wi)e(t);else{wi=!0;try{vi(e,t)}finally{wi=!1,Si()}}}}function Fl(e,t,n){"focusin"===e?(Al(),Ol=n,(Rl=t).attachEvent("onpropertychange",jl)):"focusout"===e&&Al()}function Ul(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Nl(Ol)}function Wl(e,t){if("click"===e)return Nl(t)}function Bl(e,t){if("input"===e||"change"===e)return Nl(t)}var Vl="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},$l=Object.prototype.hasOwnProperty;function Hl(e,t){if(Vl(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(!$l.call(t,n[r])||!Vl(e[n[r]],t[n[r]]))return!1;return!0}function ql(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ql(e,t){var n,r=ql(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=ql(r)}}function Yl(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Yl(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Jl(){for(var e=window,t=zo();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=zo((e=t.contentWindow).document)}return t}function Kl(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 Xl=Qr&&"documentMode"in document&&11>=document.documentMode,Gl=null,Zl=null,eu=null,tu=!1;function nu(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;tu||null==Gl||Gl!==zo(r)||("selectionStart"in(r=Gl)&&Kl(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},eu&&Hl(eu,r)||(eu=r,0<(r=vu(Zl,"onSelect")).length&&(t=new Ja("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Gl)))}ga("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),ga("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),ga(ya,2);for(var ru="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ou=0;ou<ru.length;ou++)va.set(ru[ou],0);qr("onMouseEnter",["mouseout","mouseover"]),qr("onMouseLeave",["mouseout","mouseover"]),qr("onPointerEnter",["pointerout","pointerover"]),qr("onPointerLeave",["pointerout","pointerover"]),Hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var iu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),au=new Set("cancel close invalid load scroll toggle".split(" ").concat(iu));function lu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,u){if(Mi.apply(this,arguments),Ti){if(!Ti)throw Error(Br(198));var s=Ri;Ti=!1,Ri=null,Oi||(Oi=!0,Pi=s)}}(r,t,void 0,e),e.currentTarget=null}function uu(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;lu(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;lu(o,l,s),i=u}}}if(Oi)throw e=Pi,Oi=!1,Pi=null,e}function su(e,t){var n=Fu(t),r=e+"__bubble";n.has(r)||(pu(t,e,2,!1),n.add(r))}var cu="_reactListening"+Math.random().toString(36).slice(2);function fu(e){e[cu]||(e[cu]=!0,Vr.forEach((function(t){au.has(t)||du(t,!1,e,null),du(t,!0,e,null)})))}function du(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&au.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=Fu(i),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(o|=4),pu(i,e,o,t),a.add(l))}function pu(e,t,n,r){var o=va.get(t);switch(void 0===o?2:o){case 0:o=Da;break;case 1:o=Ia;break;default:o=za}n=o.bind(null,t,n,e),o=void 0,!Ei||"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 hu(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=zu(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(ki)return e(t,n);ki=!0;try{bi(e,t,n)}finally{ki=!1,Si()}}((function(){var r=i,o=si(n),a=[];e:{var l=ma.get(e);if(void 0!==l){var u=Ja,s=e;switch(e){case"keypress":if(0===Wa(n))break e;case"keydown":case"keyup":u=cl;break;case"focusin":s="focus",u=tl;break;case"focusout":s="blur",u=tl;break;case"beforeblur":case"afterblur":u=tl;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=Za;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=el;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=dl;break;case fa:case da:case pa:u=nl;break;case ha:u=pl;break;case"scroll":u=Xa;break;case"wheel":u=hl;break;case"copy":case"cut":case"paste":u=rl;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=fl}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=xi(h,d))&&c.push(mu(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),a.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)||!zu(s)&&!s[Du])&&(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)?zu(s):null)&&(s!==(f=Di(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=Za,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=fl,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?l:Au(u),p=null==s?l:Au(s),(l=new c(m,h+"leave",u,n,o)).target=f,l.relatedTarget=p,m=null,zu(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=yu(p))h++;for(p=0,m=d;m;m=yu(m))p++;for(;0<h-p;)c=yu(c),h--;for(;0<p-h;)d=yu(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=yu(c),d=yu(d)}c=null}else c=null;null!==u&&gu(a,l,u,c,!1),null!==s&&null!==f&&gu(a,f,s,c,!0)}if("select"===(u=(l=r?Au(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Ml;else if(_l(l))if(Dl)v=Bl;else{v=Ul;var y=Fl}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=Wl);switch(v&&(v=v(e,r))?Tl(a,v,n,o):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&Wo(l,"number",l.value)),y=r?Au(r):window,e){case"focusin":(_l(y)||"true"===y.contentEditable)&&(Gl=y,Zl=r,eu=null);break;case"focusout":eu=Zl=Gl=null;break;case"mousedown":tu=!0;break;case"contextmenu":case"mouseup":case"dragend":tu=!1,nu(a,n,o);break;case"selectionchange":if(Xl)break;case"keydown":case"keyup":nu(a,n,o)}var g;if(vl)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 El?Sl(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(bl&&"ko"!==n.locale&&(El||"onCompositionStart"!==b?"onCompositionEnd"===b&&El&&(g=Ua()):(ja="value"in(Aa=o)?Aa.value:Aa.textContent,El=!0)),0<(y=vu(r,b)).length&&(b=new ol(b,e,null,n,o),a.push({event:b,listeners:y}),g?b.data=g:null!==(g=xl(n))&&(b.data=g))),(g=gl?function(e,t){switch(e){case"compositionend":return xl(t);case"keypress":return 32!==t.which?null:(kl=!0,wl);case"textInput":return(e=t.data)===wl&&kl?null:e;default:return null}}(e,n):function(e,t){if(El)return"compositionend"===e||!vl&&Sl(e,t)?(e=Ua(),Fa=ja=Aa=null,El=!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 bl&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=vu(r,"onBeforeInput")).length&&(o=new ol("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g))}uu(a,t)}))}function mu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vu(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=xi(e,n))&&r.unshift(mu(e,i,o)),null!=(i=xi(e,t))&&r.push(mu(e,i,o))),e=e.return}return r}function yu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function gu(e,t,n,r,o){for(var i=t._reactName,a=[];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=xi(n,i))&&a.unshift(mu(n,u,l)):o||null!=(u=xi(n,i))&&a.push(mu(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function bu(){}var wu=null,ku=null;function Su(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function xu(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 Eu="function"==typeof setTimeout?setTimeout:void 0,Cu="function"==typeof clearTimeout?clearTimeout:void 0;function _u(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Tu(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Ru(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 Ou=0;var Pu=Math.random().toString(36).slice(2),Nu="__reactFiber$"+Pu,Mu="__reactProps$"+Pu,Du="__reactContainer$"+Pu,Iu="__reactEvents$"+Pu;function zu(e){var t=e[Nu];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Du]||n[Nu]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ru(e);null!==e;){if(n=e[Nu])return n;e=Ru(e)}return t}n=(e=n).parentNode}return null}function Lu(e){return!(e=e[Nu]||e[Du])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Au(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(Br(33))}function ju(e){return e[Mu]||null}function Fu(e){var t=e[Iu];return void 0===t&&(t=e[Iu]=new Set),t}var Uu=[],Wu=-1;function Bu(e){return{current:e}}function Vu(e){0>Wu||(e.current=Uu[Wu],Uu[Wu]=null,Wu--)}function $u(e,t){Wu++,Uu[Wu]=e.current,e.current=t}var Hu={},qu=Bu(Hu),Qu=Bu(!1),Yu=Hu;function Ju(e,t){var n=e.type.contextTypes;if(!n)return Hu;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ku(e){return null!=(e=e.childContextTypes)}function Xu(){Vu(Qu),Vu(qu)}function Gu(e,t,n){if(qu.current!==Hu)throw Error(Br(168));$u(qu,t),$u(Qu,n)}function Zu(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(Br(108,Po(t)||"Unknown",o));return l({},n,r)}function es(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hu,Yu=qu.current,$u(qu,e),$u(Qu,Qu.current),!0}function ts(e,t,n){var r=e.stateNode;if(!r)throw Error(Br(169));n?(e=Zu(e,t,Yu),r.__reactInternalMemoizedMergedChildContext=e,Vu(Qu),Vu(qu),$u(qu,e)):Vu(Qu),$u(Qu,n)}var ns=null,rs=null,os=Wr.unstable_runWithPriority,is=Wr.unstable_scheduleCallback,as=Wr.unstable_cancelCallback,ls=Wr.unstable_shouldYield,us=Wr.unstable_requestPaint,ss=Wr.unstable_now,cs=Wr.unstable_getCurrentPriorityLevel,fs=Wr.unstable_ImmediatePriority,ds=Wr.unstable_UserBlockingPriority,ps=Wr.unstable_NormalPriority,hs=Wr.unstable_LowPriority,ms=Wr.unstable_IdlePriority,vs={},ys=void 0!==us?us:function(){},gs=null,bs=null,ws=!1,ks=ss(),Ss=1e4>ks?ss:function(){return ss()-ks};function xs(){switch(cs()){case fs:return 99;case ds:return 98;case ps:return 97;case hs:return 96;case ms:return 95;default:throw Error(Br(332))}}function Es(e){switch(e){case 99:return fs;case 98:return ds;case 97:return ps;case 96:return hs;case 95:return ms;default:throw Error(Br(332))}}function Cs(e,t){return e=Es(e),os(e,t)}function _s(e,t,n){return e=Es(e),is(e,t,n)}function Ts(){if(null!==bs){var e=bs;bs=null,as(e)}Rs()}function Rs(){if(!ws&&null!==gs){ws=!0;var e=0;try{var t=gs;Cs(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),gs=null}catch(t){throw null!==gs&&(gs=gs.slice(e+1)),is(fs,Ts),t}finally{ws=!1}}}var Os=ro.ReactCurrentBatchConfig;function Ps(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 Ns=Bu(null),Ms=null,Ds=null,Is=null;function zs(){Is=Ds=Ms=null}function Ls(e){var t=Ns.current;Vu(Ns),e.type._context._currentValue=t}function As(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 js(e,t){Ms=e,Is=Ds=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(vf=!0),e.firstContext=null)}function Fs(e,t){if(Is!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Is=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ds){if(null===Ms)throw Error(Br(308));Ds=t,Ms.dependencies={lanes:0,firstContext:t,responders:null}}else Ds=Ds.next=t;return e._currentValue}var Us=!1;function Ws(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Bs(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 Vs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $s(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 Hs(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qs(e,t,n,r){var o=e.updateQueue;Us=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var s=u,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==a&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==i){for(d=o.baseState,a=0,f=c=s=null;;){u=i.lane;var p=i.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,m=i;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:Us=!0}}null!==i.callback&&(e.flags|=32,null===(u=o.effects)?o.effects=[i]:u.push(i))}else p={eventTime:p,lane:u,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,a|=u;if(null===(i=i.next)){if(null===(u=o.shared.pending))break;i=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,wd|=a,e.lanes=a,e.memoizedState=d}}function Qs(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(Br(191,o));o.call(r)}}}var Ys=(new c.Component).refs;function Js(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 Ks={isMounted:function(e){return!!(e=e._reactInternals)&&Di(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Hd(),o=qd(e),i=Vs(r,o);i.payload=t,null!=n&&(i.callback=n),$s(e,i),Qd(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Hd(),o=qd(e),i=Vs(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),$s(e,i),Qd(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Hd(),r=qd(e),o=Vs(n,r);o.tag=2,null!=t&&(o.callback=t),$s(e,o),Qd(e,r,n)}};function Xs(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Hl(n,r)||!Hl(o,i))}function Gs(e,t,n){var r=!1,o=Hu,i=t.contextType;return"object"==typeof i&&null!==i?i=Fs(i):(o=Ku(t)?Yu:qu.current,i=(r=null!=(r=t.contextTypes))?Ju(e,o):Hu),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ks,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Zs(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&&Ks.enqueueReplaceState(t,t.state,null)}function ec(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ys,Ws(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Fs(i):(i=Ku(t)?Yu:qu.current,o.context=Ju(e,i)),qs(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Js(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ks.enqueueReplaceState(o,o.state,null),qs(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var tc=Array.isArray;function nc(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(Br(309));var r=n.stateNode}if(!r)throw Error(Br(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===Ys&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(Br(284));if(!n._owner)throw Error(Br(290,e))}return e}function rc(e,t){if("textarea"!==e.type)throw Error(Br(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function oc(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=Cp(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Op(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=nc(e,t,n),r.return=e,r):((r=_p(n.type,n.key,n.props,null,e.mode,r)).ref=nc(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=Pp(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=Tp(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Op(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case oo:return(n=_p(t.type,t.key,t.props,null,e.mode,n)).ref=nc(e,null,t),n.return=e,n;case io:return(t=Pp(t,e.mode,n)).return=e,t}if(tc(t)||Co(t))return(t=Tp(t,e.mode,n,null)).return=e,t;rc(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 oo:return n.key===o?n.type===ao?c(e,t,n.props.children,r,o):u(e,t,n,r):null;case io:return n.key===o?s(e,t,n,r):null}if(tc(n)||Co(n))return null!==o?null:c(e,t,n,r,null);rc(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 oo:return e=e.get(null===r.key?n:r.key)||null,r.type===ao?c(t,e,r.props.children,o,r.key):u(t,e,r,o);case io:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(tc(r)||Co(r))return c(t,e=e.get(n)||null,r,o,null);rc(t,r)}return null}function h(o,a,l,u){for(var s=null,c=null,h=a,m=a=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),a=i(y,a,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))&&(a=i(h,a,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),a=i(v,a,m),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(o,e)})),s}function m(o,a,l,u){var s=Co(l);if("function"!=typeof s)throw Error(Br(150));if(null==(l=s.call(l)))throw Error(Br(151));for(var c=s=null,h=a,m=a=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),a=i(g,a,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))&&(a=i(y,a,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),a=i(y,a,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,i,l){var u="object"==typeof i&&null!==i&&i.type===ao&&null===i.key;u&&(i=i.props.children);var s="object"==typeof i&&null!==i;if(s)switch(i.$$typeof){case oo:e:{for(s=i.key,u=r;null!==u;){if(u.key===s){switch(u.tag){case 7:if(i.type===ao){n(e,u.sibling),(r=o(u,i.props.children)).return=e,e=r;break e}break;default:if(u.elementType===i.type){n(e,u.sibling),(r=o(u,i.props)).ref=nc(e,u,i),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}i.type===ao?((r=Tp(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=_p(i.type,i.key,i.props,null,e.mode,l)).ref=nc(e,r,i),l.return=e,e=l)}return a(e);case io:e:{for(u=i.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Pp(i,e.mode,l)).return=e,e=r}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Op(i,e.mode,l)).return=e,e=r),a(e);if(tc(i))return h(e,r,i,l);if(Co(i))return m(e,r,i,l);if(s&&rc(e,i),void 0===i&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(Br(152,Po(e.type)||"Component"))}return n(e,r)}}var ic=oc(!0),ac=oc(!1),lc={},uc=Bu(lc),sc=Bu(lc),cc=Bu(lc);function fc(e){if(e===lc)throw Error(Br(174));return e}function dc(e,t){switch($u(cc,t),$u(sc,e),$u(uc,lc),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xo(null,"");break;default:t=Xo(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Vu(uc),$u(uc,t)}function pc(){Vu(uc),Vu(sc),Vu(cc)}function hc(e){fc(cc.current);var t=fc(uc.current),n=Xo(t,e.type);t!==n&&($u(sc,e),$u(uc,n))}function mc(e){sc.current===e&&(Vu(uc),Vu(sc))}var vc=Bu(0);function yc(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 gc=null,bc=null,wc=!1;function kc(e,t){var n=xp(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 Sc(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 xc(e){if(wc){var t=bc;if(t){var n=t;if(!Sc(e,t)){if(!(t=Tu(n.nextSibling))||!Sc(e,t))return e.flags=-1025&e.flags|2,wc=!1,void(gc=e);kc(gc,n)}gc=e,bc=Tu(t.firstChild)}else e.flags=-1025&e.flags|2,wc=!1,gc=e}}function Ec(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;gc=e}function Cc(e){if(e!==gc)return!1;if(!wc)return Ec(e),wc=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!xu(t,e.memoizedProps))for(t=bc;t;)kc(e,t),t=Tu(t.nextSibling);if(Ec(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(Br(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){bc=Tu(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}bc=null}}else bc=gc?Tu(e.stateNode.nextSibling):null;return!0}function _c(){bc=gc=null,wc=!1}var Tc=[];function Rc(){for(var e=0;e<Tc.length;e++)Tc[e]._workInProgressVersionPrimary=null;Tc.length=0}var Oc=ro.ReactCurrentDispatcher,Pc=ro.ReactCurrentBatchConfig,Nc=0,Mc=null,Dc=null,Ic=null,zc=!1,Lc=!1;function Ac(){throw Error(Br(321))}function jc(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vl(e[n],t[n]))return!1;return!0}function Fc(e,t,n,r,o,i){if(Nc=i,Mc=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Oc.current=null===e||null===e.memoizedState?df:pf,e=n(r,o),Lc){i=0;do{if(Lc=!1,!(25>i))throw Error(Br(301));i+=1,Ic=Dc=null,t.updateQueue=null,Oc.current=hf,e=n(r,o)}while(Lc)}if(Oc.current=ff,t=null!==Dc&&null!==Dc.next,Nc=0,Ic=Dc=Mc=null,zc=!1,t)throw Error(Br(300));return e}function Uc(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ic?Mc.memoizedState=Ic=e:Ic=Ic.next=e,Ic}function Wc(){if(null===Dc){var e=Mc.alternate;e=null!==e?e.memoizedState:null}else e=Dc.next;var t=null===Ic?Mc.memoizedState:Ic.next;if(null!==t)Ic=t,Dc=e;else{if(null===e)throw Error(Br(310));e={memoizedState:(Dc=e).memoizedState,baseState:Dc.baseState,baseQueue:Dc.baseQueue,queue:Dc.queue,next:null},null===Ic?Mc.memoizedState=Ic=e:Ic=Ic.next=e}return Ic}function Bc(e,t){return"function"==typeof t?t(e):t}function Vc(e){var t=Wc(),n=t.queue;if(null===n)throw Error(Br(311));n.lastRenderedReducer=e;var r=Dc,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=a=i=null,u=o;do{var s=u.lane;if((Nc&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?(a=l=c,i=r):l=l.next=c,Mc.lanes|=s,wd|=s}u=u.next}while(null!==u&&u!==o);null===l?i=r:l.next=a,Vl(r,t.memoizedState)||(vf=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function $c(e){var t=Wc(),n=t.queue;if(null===n)throw Error(Br(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);Vl(i,t.memoizedState)||(vf=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Hc(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=(Nc&e)===e)&&(t._workInProgressVersionPrimary=r,Tc.push(t))),e)return n(t._source);throw Tc.push(t),Error(Br(350))}function qc(e,t,n,r){var o=dd;if(null===o)throw Error(Br(349));var i=t._getVersion,a=i(t._source),l=Oc.current,u=l.useState((function(){return Hc(o,t,n)})),s=u[1],c=u[0];u=Ic;var f=e.memoizedState,d=f.refs,p=d.getSnapshot,h=f.source;f=f.subscribe;var m=Mc;return e.memoizedState={refs:d,source:t,subscribe:r},l.useEffect((function(){d.getSnapshot=n,d.setSnapshot=s;var e=i(t._source);if(!Vl(a,e)){e=n(t._source),Vl(c,e)||(s(e),e=qd(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,l=e;0<l;){var u=31-Ta(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=qd(m);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),Vl(p,n)&&Vl(h,t)&&Vl(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:Bc,lastRenderedState:c}).dispatch=s=cf.bind(null,Mc,e),u.queue=e,u.baseQueue=null,c=Hc(o,t,n),u.memoizedState=u.baseState=c),c}function Qc(e,t,n){return qc(Wc(),e,t,n)}function Yc(e){var t=Uc();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Bc,lastRenderedState:e}).dispatch=cf.bind(null,Mc,e),[t.memoizedState,e]}function Jc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Mc.updateQueue)?(t={lastEffect:null},Mc.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 Kc(e){return e={current:e},Uc().memoizedState=e}function Xc(){return Wc().memoizedState}function Gc(e,t,n,r){var o=Uc();Mc.flags|=e,o.memoizedState=Jc(1|t,n,void 0,void 0===r?null:r)}function Zc(e,t,n,r){var o=Wc();r=void 0===r?null:r;var i=void 0;if(null!==Dc){var a=Dc.memoizedState;if(i=a.destroy,null!==r&&jc(r,a.deps))return void Jc(t,n,i,r)}Mc.flags|=e,o.memoizedState=Jc(1|t,n,i,r)}function ef(e,t){return Gc(516,4,e,t)}function tf(e,t){return Zc(516,4,e,t)}function nf(e,t){return Zc(4,2,e,t)}function rf(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 of(e,t,n){return n=null!=n?n.concat([e]):null,Zc(4,2,rf.bind(null,t,e),n)}function af(){}function lf(e,t){var n=Wc();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&jc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function uf(e,t){var n=Wc();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&jc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function sf(e,t){var n=xs();Cs(98>n?98:n,(function(){e(!0)})),Cs(97<n?97:n,(function(){var n=Pc.transition;Pc.transition=1;try{e(!1),t()}finally{Pc.transition=n}}))}function cf(e,t,n){var r=Hd(),o=qd(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Mc||null!==a&&a===Mc)Lc=zc=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=a(l,n);if(i.eagerReducer=a,i.eagerState=u,Vl(u,l))return}catch(e){}Qd(e,o,r)}}var ff={readContext:Fs,useCallback:Ac,useContext:Ac,useEffect:Ac,useImperativeHandle:Ac,useLayoutEffect:Ac,useMemo:Ac,useReducer:Ac,useRef:Ac,useState:Ac,useDebugValue:Ac,useDeferredValue:Ac,useTransition:Ac,useMutableSource:Ac,useOpaqueIdentifier:Ac,unstable_isNewReconciler:!1},df={readContext:Fs,useCallback:function(e,t){return Uc().memoizedState=[e,void 0===t?null:t],e},useContext:Fs,useEffect:ef,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Gc(4,2,rf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gc(4,2,e,t)},useMemo:function(e,t){var n=Uc();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Uc();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=cf.bind(null,Mc,e),[r.memoizedState,e]},useRef:Kc,useState:Yc,useDebugValue:af,useDeferredValue:function(e){var t=Yc(e),n=t[0],r=t[1];return ef((function(){var t=Pc.transition;Pc.transition=1;try{r(e)}finally{Pc.transition=t}}),[e]),n},useTransition:function(){var e=Yc(!1),t=e[0];return Kc(e=sf.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=Uc();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},qc(r,e,t,n)},useOpaqueIdentifier:function(){if(wc){var e=!1,t=function(e){return{$$typeof:go,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Ou++).toString(36))),Error(Br(355))})),n=Yc(t)[1];return 0==(2&Mc.mode)&&(Mc.flags|=516,Jc(5,(function(){n("r:"+(Ou++).toString(36))}),void 0,null)),t}return Yc(t="r:"+(Ou++).toString(36)),t},unstable_isNewReconciler:!1},pf={readContext:Fs,useCallback:lf,useContext:Fs,useEffect:tf,useImperativeHandle:of,useLayoutEffect:nf,useMemo:uf,useReducer:Vc,useRef:Xc,useState:function(){return Vc(Bc)},useDebugValue:af,useDeferredValue:function(e){var t=Vc(Bc),n=t[0],r=t[1];return tf((function(){var t=Pc.transition;Pc.transition=1;try{r(e)}finally{Pc.transition=t}}),[e]),n},useTransition:function(){var e=Vc(Bc)[0];return[Xc().current,e]},useMutableSource:Qc,useOpaqueIdentifier:function(){return Vc(Bc)[0]},unstable_isNewReconciler:!1},hf={readContext:Fs,useCallback:lf,useContext:Fs,useEffect:tf,useImperativeHandle:of,useLayoutEffect:nf,useMemo:uf,useReducer:$c,useRef:Xc,useState:function(){return $c(Bc)},useDebugValue:af,useDeferredValue:function(e){var t=$c(Bc),n=t[0],r=t[1];return tf((function(){var t=Pc.transition;Pc.transition=1;try{r(e)}finally{Pc.transition=t}}),[e]),n},useTransition:function(){var e=$c(Bc)[0];return[Xc().current,e]},useMutableSource:Qc,useOpaqueIdentifier:function(){return $c(Bc)[0]},unstable_isNewReconciler:!1},mf=ro.ReactCurrentOwner,vf=!1;function yf(e,t,n,r){t.child=null===e?ac(t,null,n,r):ic(t,e.child,n,r)}function gf(e,t,n,r,o){n=n.render;var i=t.ref;return js(t,o),r=Fc(e,t,n,r,i,o),null===e||vf?(t.flags|=1,yf(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,jf(e,t,o))}function bf(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Ep(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=_p(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,wf(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Hl)(o,r)&&e.ref===t.ref)?jf(e,t,i):(t.flags|=1,(e=Cp(a,r)).ref=t.ref,e.return=t,t.child=e)}function wf(e,t,n,r,o,i){if(null!==e&&Hl(e.memoizedProps,r)&&e.ref===t.ref){if(vf=!1,0==(i&o))return t.lanes=e.lanes,jf(e,t,i);0!=(16384&e.flags)&&(vf=!0)}return xf(e,t,n,r,i)}function kf(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},tp(t,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},tp(t,e),null;t.memoizedState={baseLanes:0},tp(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,tp(t,r);return yf(e,t,o,n),t.child}function Sf(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function xf(e,t,n,r,o){var i=Ku(n)?Yu:qu.current;return i=Ju(t,i),js(t,o),n=Fc(e,t,n,r,i,o),null===e||vf?(t.flags|=1,yf(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,jf(e,t,o))}function Ef(e,t,n,r,o){if(Ku(n)){var i=!0;es(t)}else i=!1;if(js(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),Gs(t,n,r),ec(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=Fs(s):s=Ju(t,s=Ku(n)?Yu:qu.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&Zs(t,a,r,s),Us=!1;var d=t.memoizedState;a.state=d,qs(t,r,a,o),u=t.memoizedState,l!==r||d!==u||Qu.current||Us?("function"==typeof c&&(Js(t,n,c,r),u=t.memoizedState),(l=Us||Xs(t,n,l,r,d,u,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,Bs(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:Ps(t.type,l),a.props=s,f=t.pendingProps,d=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=Fs(u):u=Ju(t,u=Ku(n)?Yu:qu.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==u)&&Zs(t,a,r,u),Us=!1,d=t.memoizedState,a.state=d,qs(t,r,a,o);var h=t.memoizedState;l!==f||d!==h||Qu.current||Us?("function"==typeof p&&(Js(t,n,p,r),h=t.memoizedState),(s=Us||Xs(t,n,s,r,d,h,u))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Cf(e,t,n,r,i,o)}function Cf(e,t,n,r,o,i){Sf(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&ts(t,n,!1),jf(e,t,i);r=t.stateNode,mf.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ic(t,e.child,null,i),t.child=ic(t,null,l,i)):yf(e,t,l,i),t.memoizedState=r.state,o&&ts(t,n,!0),t.child}function _f(e){var t=e.stateNode;t.pendingContext?Gu(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Gu(0,t.context,!1),dc(e,t.containerInfo)}var Tf,Rf,Of,Pf={dehydrated:null,retryLane:0};function Nf(e,t,n){var r,o=t.pendingProps,i=vc.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),$u(vc,1&i),null===e?(void 0!==o.fallback&&xc(t),e=o.children,i=o.fallback,a?(e=Mf(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Pf,e):"number"==typeof o.unstable_expectedLoadTime?(e=Mf(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Pf,t.lanes=33554432,e):((n=Rp({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=If(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Pf,o):(n=Df(e,t,o.children,n),t.memoizedState=null,n))}function Mf(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Rp(t,o,0,null),n=Tp(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Df(e,t,n,r){var o=e.child;return e=o.sibling,n=Cp(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 If(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Cp(a,l),null!==e?r=Cp(e,r):(r=Tp(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function zf(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),As(e.return,t)}function Lf(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function Af(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(yf(e,t,r.children,n),0!=(2&(r=vc.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&&zf(e,n);else if(19===e.tag)zf(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($u(vc,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===yc(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Lf(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===yc(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Lf(t,!0,n,null,i,t.lastEffect);break;case"together":Lf(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function jf(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),wd|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(Br(153));if(null!==t.child){for(n=Cp(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Cp(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function Ff(e,t){if(!wc)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 Uf(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 Ku(t.type)&&Xu(),null;case 3:return pc(),Vu(Qu),Vu(qu),Rc(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Cc(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:mc(t);var o=fc(cc.current);if(n=t.type,null!==e&&null!=t.stateNode)Rf(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(Br(166));return null}if(e=fc(uc.current),Cc(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Nu]=t,r[Mu]=i,n){case"dialog":su("cancel",r),su("close",r);break;case"iframe":case"object":case"embed":su("load",r);break;case"video":case"audio":for(e=0;e<iu.length;e++)su(iu[e],r);break;case"source":su("error",r);break;case"img":case"image":case"link":su("error",r),su("load",r);break;case"details":su("toggle",r);break;case"input":Ao(r,i),su("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},su("invalid",r);break;case"textarea":Ho(r,i),su("invalid",r)}for(var a in li(n,i),e=null,i)i.hasOwnProperty(a)&&(o=i[a],"children"===a?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):$r.hasOwnProperty(a)&&null!=o&&"onScroll"===a&&su("scroll",r));switch(n){case"input":Do(r),Uo(r,i,!0);break;case"textarea":Do(r),Qo(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=bu)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(a=9===o.nodeType?o:o.ownerDocument,e===Yo&&(e=Ko(n)),e===Yo?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Nu]=t,e[Mu]=r,Tf(e,t),t.stateNode=e,a=ui(n,r),n){case"dialog":su("cancel",e),su("close",e),o=r;break;case"iframe":case"object":case"embed":su("load",e),o=r;break;case"video":case"audio":for(o=0;o<iu.length;o++)su(iu[o],e);o=r;break;case"source":su("error",e),o=r;break;case"img":case"image":case"link":su("error",e),su("load",e),o=r;break;case"details":su("toggle",e),o=r;break;case"input":Ao(e,r),o=Lo(e,r),su("invalid",e);break;case"option":o=Bo(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=l({},r,{value:void 0}),su("invalid",e);break;case"textarea":Ho(e,r),o=$o(e,r),su("invalid",e);break;default:o=r}li(n,o);var u=o;for(i in u)if(u.hasOwnProperty(i)){var s=u[i];"style"===i?ii(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&ei(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&ti(e,s):"number"==typeof s&&ti(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&($r.hasOwnProperty(i)?null!=s&&"onScroll"===i&&su("scroll",e):null!=s&&no(e,i,s,a))}switch(n){case"input":Do(e),Uo(e,r,!1);break;case"textarea":Do(e),Qo(e);break;case"option":null!=r.value&&e.setAttribute("value",""+No(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?Vo(e,!!r.multiple,i,!1):null!=r.defaultValue&&Vo(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=bu)}Su(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Of(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(Br(166));n=fc(cc.current),fc(uc.current),Cc(t)?(r=t.stateNode,n=t.memoizedProps,r[Nu]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Nu]=t,t.stateNode=r)}return null;case 13:return Vu(vc),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Cc(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&vc.current)?0===yd&&(yd=3):(0!==yd&&3!==yd||(yd=4),null===dd||0==(134217727&wd)&&0==(134217727&kd)||Xd(dd,hd))),(r||n)&&(t.flags|=4),null);case 4:return pc(),null===e&&fu(t.stateNode.containerInfo),null;case 10:return Ls(t),null;case 17:return Ku(t.type)&&Xu(),null;case 19:if(Vu(vc),null===(r=t.memoizedState))return null;if(i=0!=(64&t.flags),null===(a=r.rendering))if(i)Ff(r,!1);else{if(0!==yd||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(a=yc(e))){for(t.flags|=64,Ff(r,!1),null!==(i=a.updateQueue)&&(t.updateQueue=i,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $u(vc,1&vc.current|2),t.child}e=e.sibling}null!==r.tail&&Ss()>Cd&&(t.flags|=64,i=!0,Ff(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=yc(a))){if(t.flags|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ff(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate&&!wc)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ss()-r.renderingStartTime>Cd&&1073741824!==n&&(t.flags|=64,i=!0,Ff(r,!1),t.lanes=33554432);r.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=r.last)?n.sibling=a:t.child=a,r.last=a)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ss(),n.sibling=null,t=vc.current,$u(vc,i?1&t|2:1&t),n):null;case 23:case 24:return np(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(Br(156,t.tag))}function Wf(e){switch(e.tag){case 1:Ku(e.type)&&Xu();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(pc(),Vu(Qu),Vu(qu),Rc(),0!=(64&(t=e.flags)))throw Error(Br(285));return e.flags=-4097&t|64,e;case 5:return mc(e),null;case 13:return Vu(vc),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return Vu(vc),null;case 4:return pc(),null;case 10:return Ls(e),null;case 23:case 24:return np(),null;default:return null}}function Bf(e,t){try{var n="",r=t;do{n+=Oo(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 Vf(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Tf=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}},Rf=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,fc(uc.current);var i,a=null;switch(n){case"input":o=Lo(e,o),r=Lo(e,r),a=[];break;case"option":o=Bo(e,o),r=Bo(e,r),a=[];break;case"select":o=l({},o,{value:void 0}),r=l({},r,{value:void 0}),a=[];break;case"textarea":o=$o(e,o),r=$o(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=bu)}for(c in li(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&($r.hasOwnProperty(c)?a||(a=[]):(a=a||[]).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(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&($r.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&su("scroll",e),a||u===s||(a=[])):"object"==typeof s&&null!==s&&s.$$typeof===go?s.toString():(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Of=function(e,t,n,r){n!==r&&(t.flags|=4)};var $f="function"==typeof WeakMap?WeakMap:Map;function Hf(e,t,n){(n=Vs(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Od||(Od=!0,Pd=r),Vf(0,t)},n}function qf(e,t,n){(n=Vs(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return Vf(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Nd?Nd=new Set([this]):Nd.add(this),Vf(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var Qf="function"==typeof WeakSet?WeakSet:Set;function Yf(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){bp(e,t)}else t.current=null}function Jf(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:Ps(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&_u(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(Br(163))}function Kf(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)&&(vp(n,e),mp(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:Ps(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Qs(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}Qs(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Su(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&&ia(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(Br(163))}function Xf(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=oi("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 Gf(e,t){if(rs&&"function"==typeof rs.onCommitFiberUnmount)try{rs.onCommitFiberUnmount(ns,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))vp(t,n);else{r=t;try{o()}catch(e){bp(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Yf(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){bp(t,e)}break;case 5:Yf(t);break;case 4:od(e,t)}}function Zf(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 ed(e){return 5===e.tag||3===e.tag||4===e.tag}function td(e){e:{for(var t=e.return;null!==t;){if(ed(t))break e;t=t.return}throw Error(Br(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(Br(161))}16&n.flags&&(ti(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ed(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?nd(e,n,t):rd(e,n,t)}function nd(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=bu));else if(4!==r&&null!==(e=e.child))for(nd(e,t,n),e=e.sibling;null!==e;)nd(e,t,n),e=e.sibling}function rd(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(rd(e,t,n),e=e.sibling;null!==e;)rd(e,t,n),e=e.sibling}function od(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(Br(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var a=e,l=o,u=l;;)if(Gf(a,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?(a=n,l=o.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.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(Gf(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&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function id(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 i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Mu]=r,"input"===e&&"radio"===r.type&&null!=r.name&&jo(n,r),ui(e,o),t=ui(e,r),o=0;o<i.length;o+=2){var a=i[o],l=i[o+1];"style"===a?ii(n,l):"dangerouslySetInnerHTML"===a?ei(n,l):"children"===a?ti(n,l):no(n,a,l,t)}switch(e){case"input":Fo(n,r);break;case"textarea":qo(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?Vo(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?Vo(n,!!r.multiple,r.defaultValue,!0):Vo(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(Br(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,ia(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Ed=Ss(),Xf(t.child,!0)),void ad(t);case 19:return void ad(t);case 17:return;case 23:case 24:return void Xf(t,null!==t.memoizedState)}throw Error(Br(163))}function ad(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qf),t.forEach((function(t){var r=kp.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ld(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var ud=Math.ceil,sd=ro.ReactCurrentDispatcher,cd=ro.ReactCurrentOwner,fd=0,dd=null,pd=null,hd=0,md=0,vd=Bu(0),yd=0,gd=null,bd=0,wd=0,kd=0,Sd=0,xd=null,Ed=0,Cd=1/0;function _d(){Cd=Ss()+500}var Td,Rd=null,Od=!1,Pd=null,Nd=null,Md=!1,Dd=null,Id=90,zd=[],Ld=[],Ad=null,jd=0,Fd=null,Ud=-1,Wd=0,Bd=0,Vd=null,$d=!1;function Hd(){return 0!=(48&fd)?Ss():-1!==Ud?Ud:Ud=Ss()}function qd(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===xs()?1:2;if(0===Wd&&(Wd=bd),0!==Os.transition){0!==Bd&&(Bd=null!==xd?xd.pendingLanes:0),e=Wd;var t=4186112&~Bd;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=xs(),0!=(4&fd)&&98===e?e=xa(12,Wd):e=xa(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),Wd),e}function Qd(e,t,n){if(50<jd)throw jd=0,Fd=null,Error(Br(185));if(null===(e=Yd(e,t)))return null;_a(e,t,n),e===dd&&(kd|=t,4===yd&&Xd(e,hd));var r=xs();1===t?0!=(8&fd)&&0==(48&fd)?Gd(e):(Jd(e,n),0===fd&&(_d(),Ts())):(0==(4&fd)||98!==r&&99!==r||(null===Ad?Ad=new Set([e]):Ad.add(e)),Jd(e,n)),xd=e}function Yd(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 Jd(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-Ta(a),u=1<<l,s=i[l];if(-1===s){if(0==(u&r)||0!=(u&o)){s=t,wa(u);var c=ba;i[l]=10<=c?s+250:6<=c?s+5e3:-1}}else s<=t&&(e.expiredLanes|=u);a&=~u}if(r=ka(e,e===dd?hd:0),t=ba,0===r)null!==n&&(n!==vs&&as(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==vs&&as(n)}15===t?(n=Gd.bind(null,e),null===gs?(gs=[n],bs=is(fs,Rs)):gs.push(n),n=vs):14===t?n=_s(99,Gd.bind(null,e)):n=_s(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(Br(358,e))}}(t),Kd.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function Kd(e){if(Ud=-1,Bd=Wd=0,0!=(48&fd))throw Error(Br(327));var t=e.callbackNode;if(hp()&&e.callbackNode!==t)return null;var n=ka(e,e===dd?hd:0);if(0===n)return null;var r=n,o=fd;fd|=16;var i=ip();for(dd===e&&hd===r||(_d(),rp(e,r));;)try{up();break}catch(t){op(e,t)}if(zs(),sd.current=i,fd=o,null!==pd?r=0:(dd=null,hd=0,r=yd),0!=(bd&kd))rp(e,0);else if(0!==r){if(2===r&&(fd|=64,e.hydrate&&(e.hydrate=!1,_u(e.containerInfo)),0!==(n=Sa(e))&&(r=ap(e,n))),1===r)throw t=gd,rp(e,0),Xd(e,n),Jd(e,Ss()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(Br(345));case 2:fp(e);break;case 3:if(Xd(e,n),(62914560&n)===n&&10<(r=Ed+500-Ss())){if(0!==ka(e,0))break;if(((o=e.suspendedLanes)&n)!==n){Hd(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Eu(fp.bind(null,e),r);break}fp(e);break;case 4:if(Xd(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var a=31-Ta(n);i=1<<a,(a=r[a])>o&&(o=a),n&=~i}if(n=o,10<(n=(120>(n=Ss()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*ud(n/1960))-n)){e.timeoutHandle=Eu(fp.bind(null,e),n);break}fp(e);break;case 5:fp(e);break;default:throw Error(Br(329))}}return Jd(e,Ss()),e.callbackNode===t?Kd.bind(null,e):null}function Xd(e,t){for(t&=~Sd,t&=~kd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ta(t),r=1<<n;e[n]=-1,t&=~r}}function Gd(e){if(0!=(48&fd))throw Error(Br(327));if(hp(),e===dd&&0!=(e.expiredLanes&hd)){var t=hd,n=ap(e,t);0!=(bd&kd)&&(n=ap(e,t=ka(e,t)))}else n=ap(e,t=ka(e,0));if(0!==e.tag&&2===n&&(fd|=64,e.hydrate&&(e.hydrate=!1,_u(e.containerInfo)),0!==(t=Sa(e))&&(n=ap(e,t))),1===n)throw n=gd,rp(e,0),Xd(e,t),Jd(e,Ss()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,fp(e),Jd(e,Ss()),null}function Zd(e,t){var n=fd;fd|=1;try{return e(t)}finally{0===(fd=n)&&(_d(),Ts())}}function ep(e,t){var n=fd;fd&=-2,fd|=8;try{return e(t)}finally{0===(fd=n)&&(_d(),Ts())}}function tp(e,t){$u(vd,md),md|=t,bd|=t}function np(){md=vd.current,Vu(vd)}function rp(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Cu(n)),null!==pd)for(n=pd.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&Xu();break;case 3:pc(),Vu(Qu),Vu(qu),Rc();break;case 5:mc(r);break;case 4:pc();break;case 13:case 19:Vu(vc);break;case 10:Ls(r);break;case 23:case 24:np()}n=n.return}dd=e,pd=Cp(e.current,null),hd=md=bd=t,yd=0,gd=null,Sd=kd=wd=0}function op(e,t){for(;;){var n=pd;try{if(zs(),Oc.current=ff,zc){for(var r=Mc.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}zc=!1}if(Nc=0,Ic=Dc=Mc=null,Lc=!1,cd.current=null,null===n||null===n.return){yd=1,gd=t,pd=null;break}e:{var i=e,a=n.return,l=n,u=t;if(t=hd,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&vc.current),d=a;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=Vs(-1,1);g.tag=2,$s(l,g)}l.lanes|=1;break e}u=void 0,l=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new $f,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=wp.bind(null,i,s,l);s.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((Po(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!==yd&&(yd=2),u=Bf(u,l),d=a;do{switch(d.tag){case 3:i=u,d.flags|=4096,t&=-t,d.lanes|=t,Hs(d,Hf(0,i,t));break e;case 1:i=u;var k=d.type,S=d.stateNode;if(0==(64&d.flags)&&("function"==typeof k.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===Nd||!Nd.has(S)))){d.flags|=4096,t&=-t,d.lanes|=t,Hs(d,qf(d,i,t));break e}}d=d.return}while(null!==d)}cp(n)}catch(e){t=e,pd===n&&null!==n&&(pd=n=n.return);continue}break}}function ip(){var e=sd.current;return sd.current=ff,null===e?ff:e}function ap(e,t){var n=fd;fd|=16;var r=ip();for(dd===e&&hd===t||rp(e,t);;)try{lp();break}catch(t){op(e,t)}if(zs(),fd=n,sd.current=r,null!==pd)throw Error(Br(261));return dd=null,hd=0,yd}function lp(){for(;null!==pd;)sp(pd)}function up(){for(;null!==pd&&!ls();)sp(pd)}function sp(e){var t=Td(e.alternate,e,md);e.memoizedProps=e.pendingProps,null===t?cp(e):pd=t,cd.current=null}function cp(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Uf(n,t,md)))return void(pd=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&md)||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=Wf(t)))return n.flags&=2047,void(pd=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(pd=t);pd=t=e}while(null!==t);0===yd&&(yd=5)}function fp(e){var t=xs();return Cs(99,dp.bind(null,e,t)),null}function dp(e,t){do{hp()}while(null!==Dd);if(0!=(48&fd))throw Error(Br(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Br(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=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 a=e.eventTimes,l=e.expirationTimes;0<i;){var u=31-Ta(i),s=1<<u;o[u]=0,a[u]=-1,l[u]=-1,i&=~s}if(null!==Ad&&0==(24&r)&&Ad.has(e)&&Ad.delete(e),e===dd&&(pd=dd=null,hd=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=fd,fd|=32,cd.current=null,wu=Ma,Kl(a=Jl())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(s=l.getSelection&&l.getSelection())&&0!==s.rangeCount){l=s.anchorNode,i=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=a,v=null;t:for(;;){for(var y;m!==l||0!==i&&3!==m.nodeType||(f=c+i),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===a)break t;if(v===l&&++p===i&&(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;ku={focusedElem:a,selectionRange:l},Ma=!1,Vd=null,$d=!1,Rd=r;do{try{pp()}catch(e){if(null===Rd)throw Error(Br(330));bp(Rd,e),Rd=Rd.nextEffect}}while(null!==Rd);Vd=null,Rd=r;do{try{for(a=e;null!==Rd;){var g=Rd.flags;if(16&g&&ti(Rd.stateNode,""),128&g){var b=Rd.alternate;if(null!==b){var w=b.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&g){case 2:td(Rd),Rd.flags&=-3;break;case 6:td(Rd),Rd.flags&=-3,id(Rd.alternate,Rd);break;case 1024:Rd.flags&=-1025;break;case 1028:Rd.flags&=-1025,id(Rd.alternate,Rd);break;case 4:id(Rd.alternate,Rd);break;case 8:od(a,l=Rd);var k=l.alternate;Zf(l),null!==k&&Zf(k)}Rd=Rd.nextEffect}}catch(e){if(null===Rd)throw Error(Br(330));bp(Rd,e),Rd=Rd.nextEffect}}while(null!==Rd);if(w=ku,b=Jl(),g=w.focusedElem,a=w.selectionRange,b!==g&&g&&g.ownerDocument&&Yl(g.ownerDocument.documentElement,g)){null!==a&&Kl(g)&&(b=a.start,void 0===(w=a.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(a.start,l),a=void 0===a.end?k:Math.min(a.end,l),!w.extend&&k>a&&(l=a,a=k,k=l),l=Ql(g,k),i=Ql(g,a),l&&i&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&((b=b.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),k>a?(w.addRange(b),w.extend(i.node,i.offset)):(b.setEnd(i.node,i.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}Ma=!!wu,ku=wu=null,e.current=n,Rd=r;do{try{for(g=e;null!==Rd;){var S=Rd.flags;if(36&S&&Kf(g,Rd.alternate,Rd),128&S){b=void 0;var x=Rd.ref;if(null!==x){var E=Rd.stateNode;switch(Rd.tag){case 5:b=E;break;default:b=E}"function"==typeof x?x(b):x.current=b}}Rd=Rd.nextEffect}}catch(e){if(null===Rd)throw Error(Br(330));bp(Rd,e),Rd=Rd.nextEffect}}while(null!==Rd);Rd=null,ys(),fd=o}else e.current=n;if(Md)Md=!1,Dd=e,Id=t;else for(Rd=r;null!==Rd;)t=Rd.nextEffect,Rd.nextEffect=null,8&Rd.flags&&((S=Rd).sibling=null,S.stateNode=null),Rd=t;if(0===(r=e.pendingLanes)&&(Nd=null),1===r?e===Fd?jd++:(jd=0,Fd=e):jd=0,n=n.stateNode,rs&&"function"==typeof rs.onCommitFiberRoot)try{rs.onCommitFiberRoot(ns,n,void 0,64==(64&n.current.flags))}catch(e){}if(Jd(e,Ss()),Od)throw Od=!1,e=Pd,Pd=null,e;return 0!=(8&fd)||Ts(),null}function pp(){for(;null!==Rd;){var e=Rd.alternate;$d||null===Vd||(0!=(8&Rd.flags)?Ai(Rd,Vd)&&($d=!0):13===Rd.tag&&ld(e,Rd)&&Ai(Rd,Vd)&&($d=!0));var t=Rd.flags;0!=(256&t)&&Jf(e,Rd),0==(512&t)||Md||(Md=!0,_s(97,(function(){return hp(),null}))),Rd=Rd.nextEffect}}function hp(){if(90!==Id){var e=97<Id?97:Id;return Id=90,Cs(e,yp)}return!1}function mp(e,t){zd.push(t,e),Md||(Md=!0,_s(97,(function(){return hp(),null})))}function vp(e,t){Ld.push(t,e),Md||(Md=!0,_s(97,(function(){return hp(),null})))}function yp(){if(null===Dd)return!1;var e=Dd;if(Dd=null,0!=(48&fd))throw Error(Br(331));var t=fd;fd|=32;var n=Ld;Ld=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],a=o.destroy;if(o.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===i)throw Error(Br(330));bp(i,e)}}for(n=zd,zd=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var l=o.create;o.destroy=l()}catch(e){if(null===i)throw Error(Br(330));bp(i,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 fd=t,Ts(),!0}function gp(e,t,n){$s(e,t=Hf(0,t=Bf(n,t),1)),t=Hd(),null!==(e=Yd(e,1))&&(_a(e,1,t),Jd(e,t))}function bp(e,t){if(3===e.tag)gp(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){gp(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Nd||!Nd.has(r))){var o=qf(n,e=Bf(t,e),1);if($s(n,o),o=Hd(),null!==(n=Yd(n,1)))_a(n,1,o),Jd(n,o);else if("function"==typeof r.componentDidCatch&&(null===Nd||!Nd.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function wp(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Hd(),e.pingedLanes|=e.suspendedLanes&n,dd===e&&(hd&n)===n&&(4===yd||3===yd&&(62914560&hd)===hd&&500>Ss()-Ed?rp(e,0):Sd|=n),Jd(e,t)}function kp(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===xs()?1:2:(0===Wd&&(Wd=bd),0===(t=Ea(62914560&~Wd))&&(t=4194304))),n=Hd(),null!==(e=Yd(e,t))&&(_a(e,t,n),Jd(e,n))}function Sp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function xp(e,t,n,r){return new Sp(e,t,n,r)}function Ep(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Cp(e,t){var n=e.alternate;return null===n?((n=xp(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 _p(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Ep(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case ao:return Tp(n.children,o,i,t);case bo:a=8,o|=16;break;case lo:a=8,o|=1;break;case uo:return(e=xp(12,n,t,8|o)).elementType=uo,e.type=uo,e.lanes=i,e;case po:return(e=xp(13,n,t,o)).type=po,e.elementType=po,e.lanes=i,e;case ho:return(e=xp(19,n,t,o)).elementType=ho,e.lanes=i,e;case wo:return Rp(n,o,i,t);case ko:return(e=xp(24,n,t,o)).elementType=ko,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case so:a=10;break e;case co:a=9;break e;case fo:a=11;break e;case mo:a=14;break e;case vo:a=16,r=null;break e;case yo:a=22;break e}throw Error(Br(130,null==e?e:typeof e,""))}return(t=xp(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Tp(e,t,n,r){return(e=xp(7,e,r,t)).lanes=n,e}function Rp(e,t,n,r){return(e=xp(23,e,r,t)).elementType=wo,e.lanes=n,e}function Op(e,t,n){return(e=xp(6,e,null,t)).lanes=n,e}function Pp(e,t,n){return(t=xp(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Np(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=Ca(0),this.expirationTimes=Ca(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ca(0),this.mutableSourceEagerHydrationData=null}function Mp(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:io,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Dp(e,t,n,r){var o=t.current,i=Hd(),a=qd(o);e:if(n){t:{if(Di(n=n._reactInternals)!==n||1!==n.tag)throw Error(Br(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Ku(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(Br(171))}if(1===n.tag){var u=n.type;if(Ku(u)){n=Zu(n,u,l);break e}}n=l}else n=Hu;return null===t.context?t.context=n:t.pendingContext=n,(t=Vs(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),$s(o,t),Qd(o,a,i),a}function Ip(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function zp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Lp(e,t){zp(e,t),(e=e.alternate)&&zp(e,t)}function Ap(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Np(e,t,null!=n&&!0===n.hydrate),t=xp(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,Ws(t),e[Du]=n.current,fu(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 jp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Fp(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=Ip(a);l.call(e)}}Dp(t,a,e,o)}else{if(i=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 Ap(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var u=o;o=function(){var e=Ip(a);u.call(e)}}ep((function(){Dp(t,a,e,o)}))}return Ip(a)}function Up(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!jp(t))throw Error(Br(200));return Mp(e,t,null,n)}Td=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||Qu.current)vf=!0;else{if(0==(n&r)){switch(vf=!1,t.tag){case 3:_f(t),_c();break;case 5:hc(t);break;case 1:Ku(t.type)&&es(t);break;case 4:dc(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;$u(Ns,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Nf(e,t,n):($u(vc,1&vc.current),null!==(t=jf(e,t,n))?t.sibling:null);$u(vc,1&vc.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Af(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),$u(vc,vc.current),r)break;return null;case 23:case 24:return t.lanes=0,kf(e,t,n)}return jf(e,t,n)}vf=0!=(16384&e.flags)}else vf=!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=Ju(t,qu.current),js(t,n),o=Fc(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,Ku(r)){var i=!0;es(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ws(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&Js(t,r,a,e),o.updater=Ks,t.stateNode=o,o._reactInternals=t,ec(t,r,e,n),t=Cf(null,t,r,!0,i,n)}else t.tag=0,yf(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=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Ep(e)?1:0;if(null!=e){if((e=e.$$typeof)===fo)return 11;if(e===mo)return 14}return 2}(o),e=Ps(o,e),i){case 0:t=xf(null,t,o,e,n);break e;case 1:t=Ef(null,t,o,e,n);break e;case 11:t=gf(null,t,o,e,n);break e;case 14:t=bf(null,t,o,Ps(o.type,e),r,n);break e}throw Error(Br(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,xf(e,t,r,o=t.elementType===r?o:Ps(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ef(e,t,r,o=t.elementType===r?o:Ps(r,o),n);case 3:if(_f(t),r=t.updateQueue,null===e||null===r)throw Error(Br(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,Bs(e,t),qs(t,r,null,n),(r=t.memoizedState.element)===o)_c(),t=jf(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(bc=Tu(t.stateNode.containerInfo.firstChild),gc=t,i=wc=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Tc.push(i);for(n=ac(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else yf(e,t,r,n),_c();t=t.child}return t;case 5:return hc(t),null===e&&xc(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,xu(r,o)?a=null:null!==i&&xu(r,i)&&(t.flags|=16),Sf(e,t),yf(e,t,a,n),t.child;case 6:return null===e&&xc(t),null;case 13:return Nf(e,t,n);case 4:return dc(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ic(t,null,r,n):yf(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,gf(e,t,r,o=t.elementType===r?o:Ps(r,o),n);case 7:return yf(e,t,t.pendingProps,n),t.child;case 8:case 12:return yf(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value;var l=t.type._context;if($u(Ns,l._currentValue),l._currentValue=i,null!==a)if(l=a.value,0===(i=Vl(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(a.children===o.children&&!Qu.current){t=jf(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){a=l.child;for(var s=u.firstContext;null!==s;){if(s.context===r&&0!=(s.observedBits&i)){1===l.tag&&((s=Vs(-1,n&-n)).tag=2,$s(l,s)),l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),As(l.return,n),u.lanes|=n;break}s=s.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}yf(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,js(t,n),r=r(o=Fs(o,i.unstable_observedBits)),t.flags|=1,yf(e,t,r,n),t.child;case 14:return i=Ps(o=t.type,t.pendingProps),bf(e,t,o,i=Ps(o.type,i),r,n);case 15:return wf(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ps(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Ku(r)?(e=!0,es(t)):e=!1,js(t,n),Gs(t,r,o),ec(t,r,o,n),Cf(null,t,r,!0,e,n);case 19:return Af(e,t,n);case 23:case 24:return kf(e,t,n)}throw Error(Br(156,t.tag))},Ap.prototype.render=function(e){Dp(e,this._internalRoot,null,null)},Ap.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Dp(null,e,null,(function(){t[Du]=null}))},ji=function(e){13===e.tag&&(Qd(e,4,Hd()),Lp(e,4))},Fi=function(e){13===e.tag&&(Qd(e,67108864,Hd()),Lp(e,67108864))},Ui=function(e){if(13===e.tag){var t=Hd(),n=qd(e);Qd(e,n,t),Lp(e,n)}},Wi=function(e,t){return t()},ci=function(e,t,n){switch(t){case"input":if(Fo(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=ju(r);if(!o)throw Error(Br(90));Io(r),Fo(r,o)}}}break;case"textarea":qo(e,n);break;case"select":null!=(t=n.value)&&Vo(e,!!n.multiple,t,!1)}},vi=Zd,yi=function(e,t,n,r,o){var i=fd;fd|=4;try{return Cs(98,e.bind(null,t,n,r,o))}finally{0===(fd=i)&&(_d(),Ts())}},gi=function(){0==(49&fd)&&(function(){if(null!==Ad){var e=Ad;Ad=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,Jd(e,Ss())}))}Ts()}(),hp())},bi=function(e,t){var n=fd;fd|=2;try{return e(t)}finally{0===(fd=n)&&(_d(),Ts())}};var Wp={Events:[Lu,Au,ju,hi,mi,hp,{current:!1}]},Bp={findFiberByHostInstance:zu,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Vp={bundleType:Bp.bundleType,version:Bp.version,rendererPackageName:Bp.rendererPackageName,rendererConfig:Bp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ro.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Li(e))?null:e.stateNode},findFiberByHostInstance:Bp.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var $p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$p.isDisabled&&$p.supportsFiber)try{ns=$p.inject(Vp),rs=$p}catch(Zo){}}var Hp={__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wp,createPortal:Up,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(Br(188));throw Error(Br(268,Object.keys(e)))}return e=null===(e=Li(t))?null:e.stateNode},flushSync:function(e,t){var n=fd;if(0!=(48&n))return e(t);fd|=1;try{if(e)return Cs(99,e.bind(null,t))}finally{fd=n,Ts()}},hydrate:function(e,t,n){if(!jp(t))throw Error(Br(200));return Fp(null,e,t,!0,n)},render:function(e,t,n){if(!jp(t))throw Error(Br(200));return Fp(null,e,t,!1,n)},unmountComponentAtNode:function(e){if(!jp(e))throw Error(Br(40));return!!e._reactRootContainer&&(ep((function(){Fp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Du]=null}))})),!0)},unstable_batchedUpdates:Zd,unstable_createPortal:function(e,t){return Up(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!jp(n))throw Error(Br(200));if(null==e||void 0===e._reactInternals)throw Error(Br(38));return Fp(e,t,n,!1,r)},version:"17.0.2"},qp=0,Qp={__interactionsRef:null,__subscriberRef:null,unstable_clear:function(e){return e()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++qp},unstable_subscribe:function(){},unstable_trace:function(e,t,n){return n()},unstable_unsubscribe:function(){},unstable_wrap:function(e){return e}},Yp=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 i(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 a(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:i,onInteractionTraced:o,onWorkCanceled:s,onWorkScheduled:a,onWorkStarted:l,onWorkStopped:u})},t.unstable_trace=function(n,r,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a={__count:1,id:e++,name:n,timestamp:r},l=t.__interactionsRef.current,u=new Set(l);u.add(a),t.__interactionsRef.current=u;var s,c=t.__subscriberRef.current;try{null!==c&&c.onInteractionTraced(a)}finally{try{null!==c&&c.onWorkStarted(u,i)}finally{try{s=o()}finally{t.__interactionsRef.current=l;try{null!==c&&c.onWorkStopped(u,i)}finally{a.__count--,null!==c&&0===a.__count&&c.onInteractionScheduledWorkCompleted(a)}}}}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 i=!1;function a(){var a=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=a,null!==o&&o.onWorkStopped(r,n)}}return l}finally{i||(i=!0,r.forEach((function(e){e.__count--,null!==o&&0===e.__count&&o.onInteractionScheduledWorkCompleted(e)})))}}return a.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)}))}},a}}()})),Jp=n((function(e){"production"===process.env.NODE_ENV?e.exports=Qp:e.exports=Yp})),Kp=n((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e=c,n=l,r=Wr,o=Jp,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function a(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=i.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 O=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),P=":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",N=P+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",M="data-reactroot",D=new RegExp("^["+P+"]["+N+"]*$"),I=Object.prototype.hasOwnProperty,z={},L={};function A(e){return!!I.call(L,e)||!I.call(z,e)&&(D.test(e)?(L[e]=!0,!0):(z[e]=!0,u("Invalid attribute name: `%s`",e),!1))}function j(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 F(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(F(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,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var 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,i=null;if(4===r.type){if(e.hasAttribute(o)){var a=e.getAttribute(o);return""===a||(U(t,n,r,!1)?a:a===""+n?n:a)}}else if(e.hasAttribute(o)){if(U(t,n,r,!1))return e.getAttribute(o);if(3===r.type)return n;i=e.getAttribute(o)}return U(t,n,r,!1)?null===i?n:i:i===""+n?n:i}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(!j(t,o,r))if(U(t,n,o,r)&&(n=null),r||null===o){if(A(t)){var i=t;null===n?e.removeAttribute(i):e.setAttribute(i,""+n)}}else if(o.mustUseProperty){var a=o.propertyName;if(null===n){var l=o.type;e[a]=3!==l&&""}else e[a]=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,ie=60112,ae=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"),ie=ve("react.forward_ref"),ae=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 Oe(){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 Pe,Ne=i.ReactCurrentDispatcher;function Me(e,t,n){if(void 0===Pe)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Pe=r&&r[1]||""}return"\n"+Pe+e}var De,Ie=!1,ze="function"==typeof WeakMap?WeakMap:Map;function Le(e,t){if(!e||Ie)return"";var n,r=De.get(e);if(void 0!==r)return r;Ie=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Ne.current,Ne.current=null,Re();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.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&&De.set(e,f),f}}while(s>=1&&c>=0);break}}}finally{Ie=!1,Ne.current=o,Oe(),Error.prepareStackTrace=i}var d=e?e.displayName||e.name:"",p=d?Me(d):"";return"function"==typeof e&&De.set(e,p),p}function Ae(e,t,n){return Le(e,!1)}function je(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 ae:return Me("Suspense");case le:return Me("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case ie:return Ae(e.render);case ue:return je(e.type,t,n);case ce:return Ae(e._render);case se:var o=e,i=o._payload,a=o._init;try{return je(a(i),t,n)}catch(e){}}return""}function Fe(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+=Fe(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 ae: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 ie:return o=e,i=e.render,a="ForwardRef",l=i.displayName||i.name||"",o.displayName||(""!==l?a+"("+l+")":a);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,i,a,l;return null}De=new ze;var Ve=i.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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){!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 it(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 at=!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||at||(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),at=!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),i=t.type;if(null!=o)"number"===i?(0===o&&""===n.value||n.value!=o)&&(n.value=Xe(o)):n.value!==Xe(o)&&(n.value=Xe(o));else if("submit"===i||"reset"===i)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 i=Xe(r._wrapperState.initialValue);n||i!==r.value&&(r.value=i),r.defaultValue=i}var a=r.name;""!==a&&(r.name=""),r.defaultChecked=!r.defaultChecked,r.defaultChecked=!!r._wrapperState.initialChecked,""!==a&&(r.name=a)}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"]'),i=0;i<o.length;i++){var a=o[i];if(a!==e&&a.form===e.form){var l=wu(a);if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");ot(a),ht(a,l)}}}}(n,t)}function yt(e,t,n){"number"===t&&it(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),i=function(t){var n="";return e.Children.forEach(t,(function(e){null!=e&&(n+=e)})),n}(r.children);return i&&(o.children=i),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 i=n,a={},l=0;l<i.length;l++)a["$"+i[l]]=!0;for(var u=0;u<o.length;u++){var s=a.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 Ot(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 Pt(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,i=t.defaultValue;if(null!=o){if(u("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),null!=i)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]}i=o}null==i&&(i=""),r=i}n._wrapperState={initialValue:Ge(r)}}function Nt(e,t){var n=e,r=Ge(t.value),o=Ge(t.defaultValue);if(null!=r){var i=Xe(r);i!==n.value&&(n.value=i),null==t.defaultValue&&n.defaultValue!==i&&(n.defaultValue=i)}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 Dt="http://www.w3.org/1999/xhtml",It="http://www.w3.org/1998/Math/MathML",zt="http://www.w3.org/2000/svg",Lt=Dt,At=zt;function jt(e){switch(e){case"svg":return zt;case"math":return It;default:return Dt}}function Ft(e,t){return null==e||e===Dt?jt(t):e===zt&&"foreignObject"===t?Dt:e}var Ut,Wt,Bt=(Wt=function(e,t){if(e.namespaceURI!==At||"innerHTML"in e)e.innerHTML=t;else{(Ut=Ut||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Ut.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 Wt(e,t,n,r)}))}:Wt),Vt=8,$t=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},Ht={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 Qt=["Webkit","ms","Moz","O"];function Yt(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){Qt.forEach((function(t){qt[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=qt[e]}))}));var Jt=/([A-Z])/g,Kt=/^ms-/;var Xt=/^(?:webkit|moz|o)[A-Z]/,Gt=/^-ms-/,Zt=/-(.)/g,en=/;\s*$/,tn={},nn={},rn=!1,on=!1,an=function(e){tn.hasOwnProperty(e)&&tn[e]||(tn[e]=!0,u("Unsupported style property %s. Did you mean %s?",e,e.replace(Gt,"ms-").replace(Zt,(function(e,t){return t.toUpperCase()}))))},ln=function(e,t){e.indexOf("-")>-1?an(e):Xt.test(e)?function(e){tn.hasOwnProperty(e)&&tn[e]||(tn[e]=!0,u("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))}(e):en.test(t)&&function(e,t){nn.hasOwnProperty(t)&&nn[t]||(nn[t]=!0,u('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,t.replace(en,"")))}(e,t),"number"==typeof t&&(isNaN(t)?function(e,t){rn||(rn=!0,u("`NaN` is an invalid value for the `%s` css style property.",e))}(e):isFinite(t)||function(e,t){on||(on=!0,u("`Infinity` is an invalid value for the `%s` css style property.",e))}(e))};function un(e){var t="",n="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(null!=o){var i=0===r.indexOf("--");t+=n+(i?r:r.replace(Jt,"-$1").toLowerCase().replace(Kt,"-ms-"))+":",t+=Yt(r,o,i),n=";"}}return t||null}function sn(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=0===r.indexOf("--");o||ln(r,t[r]);var i=Yt(r,t[r],o);"float"===r&&(r="cssFloat"),o?n.setProperty(r,i):n[r]=i}}function cn(e){var t={};for(var n in e)for(var r=Ht[n]||[n],o=0;o<r.length;o++)t[r[o]]=n;return t}var fn=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 dn(e,t){if(t){if(fn[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 pn(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 hn={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"},mn={"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},vn={},yn=new RegExp("^(aria)-["+N+"]*$"),gn=new RegExp("^(aria)[A-Z]["+N+"]*$"),bn=Object.prototype.hasOwnProperty;function wn(e,t){if(bn.call(vn,t)&&vn[t])return!0;if(gn.test(t)){var n="aria-"+t.slice(4).toLowerCase(),r=mn.hasOwnProperty(n)?n:null;if(null==r)return u("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),vn[t]=!0,!0;if(t!==r)return u("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,r),vn[t]=!0,!0}if(yn.test(t)){var o=t.toLowerCase(),i=mn.hasOwnProperty(o)?o:null;if(null==i)return vn[t]=!0,!1;if(t!==i)return u("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),vn[t]=!0,!0}return!0}function kn(e,t){pn(e,t)||function(e,t){var n=[];for(var r in t)wn(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 Sn=!1;var xn,En={},Cn=Object.prototype.hasOwnProperty,_n=/^on./,Tn=/^on[^A-Z]/,Rn=new RegExp("^(aria)-["+N+"]*$"),On=new RegExp("^(aria)[A-Z]["+N+"]*$");xn=function(e,t,n,r){if(Cn.call(En,t)&&En[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."),En[t]=!0,!0;if(null!=r){var i=r.registrationNameDependencies,a=r.possibleRegistrationNames;if(i.hasOwnProperty(t))return!0;var l=a.hasOwnProperty(o)?a[o]:null;if(null!=l)return u("Invalid event handler property `%s`. Did you mean `%s`?",t,l),En[t]=!0,!0;if(_n.test(t))return u("Unknown event handler property `%s`. It will be ignored.",t),En[t]=!0,!0}else if(_n.test(t))return Tn.test(t)&&u("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),En[t]=!0,!0;if(Rn.test(t)||On.test(t))return!0;if("innerhtml"===o)return u("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),En[t]=!0,!0;if("aria"===o)return u("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),En[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),En[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),En[t]=!0,!0;var s=W(t),c=null!==s&&0===s.type;if(hn.hasOwnProperty(o)){var f=hn[o];if(f!==t)return u("Invalid DOM property `%s`. Did you mean `%s`?",t,f),En[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),En[t]=!0,!0;return"boolean"==typeof n&&F(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),En[t]=!0,!0):!!c||(F(t,n,s,!1)?(En[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),En[t]=!0),!0))};function Pn(e,t,n){pn(e,t)||function(e,t,n){var r=[];for(var o in t)xn(0,o,t[o],n)||r.push(o);var i=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 ",i,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 ",i,e)}(e,t,n)}function Nn(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var Mn=null,Dn=null,In=null;function zn(e){var t=gu(e);if(t){if("function"!=typeof Mn)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);Mn(t.stateNode,t.type,r)}}}function Ln(e){Dn?In?In.push(e):In=[e]:Dn=e}function An(){if(Dn){var e=Dn,t=In;if(Dn=null,In=null,zn(e),t)for(var n=0;n<t.length;n++)zn(t[n])}}var jn=function(e,t){return e(t)},Fn=function(e,t,n,r,o){return e(t,n,r,o)},Un=function(){},Wn=jn,Bn=!1,Vn=!1;function $n(){(null!==Dn||null!==In)&&(Un(),An())}function Hn(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(O)try{var Qn={};Object.defineProperty(Qn,"passive",{get:function(){qn=!0}}),window.addEventListener("test",Qn,Qn),window.removeEventListener("test",Qn,Qn)}catch(e){qn=!1}function Yn(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Jn=Yn;if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var Kn=document.createElement("react");Jn=function(e,t,n,r,o,i,a,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(){Kn.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),Kn.addEventListener(k,y,!1),s.initEvent(k,!1,!1),Kn.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(),Yn.apply(this,arguments)}}var Xn=Jn,Gn=!1,Zn=null,er=!1,tr=null,nr={onError:function(e){Gn=!0,Zn=e}};function rr(e,t,n,r,o,i,a,l,u){Gn=!1,Zn=null,Xn.apply(nr,arguments)}function or(){return Gn}function ir(){if(Gn){var e=Zn;return Gn=!1,Zn=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 ar(e){return e._reactInternals}var lr,ur,sr,cr,fr=64,dr=128,pr=256,hr=512,mr=8192,vr=1024,yr=2048,gr=4096,br=16384,wr=i.ReactCurrentOwner;function kr(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 Sr(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 xr(e){return 3===e.tag?e.stateNode.containerInfo:null}function Er(e){if(kr(e)!==e)throw Error("Unable to find node on an unmounted component.")}function Cr(e){var t=e.alternate;if(!t){var n=kr(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 i=r.return;if(null===i)break;var a=i.alternate;if(null===a){var l=i.return;if(null!==l){r=o=l;continue}break}if(i.child===a.child){for(var u=i.child;u;){if(u===r)return Er(i),e;if(u===o)return Er(i),t;u=u.sibling}throw Error("Unable to find node on an unmounted component.")}if(r.return!==o.return)r=i,o=a;else{for(var s=!1,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){for(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)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 _r(e){var t=Cr(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 Tr(e,t){for(var n=t,r=e.alternate;null!==n;){if(n===e||n===r)return!0;n=n.return}return!1}var Rr=!1,Or=[],Pr=null,Nr=null,Mr=null,Dr=new Map,Ir=new Map,zr=[];var Lr=["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 Ar(e){return Lr.indexOf(e)>-1}function jr(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function Fr(e,t,n,r,o){var i=jr(e,t,n,r,o);Or.push(i)}function Ur(e,t){switch(e){case"focusin":case"focusout":Pr=null;break;case"dragenter":case"dragleave":Nr=null;break;case"mouseover":case"mouseout":Mr=null;break;case"pointerover":case"pointerout":var n=t.pointerId;Dr.delete(n);break;case"gotpointercapture":case"lostpointercapture":var r=t.pointerId;Ir.delete(r)}}function Br(e,t,n,r,o,i){if(null===e||e.nativeEvent!==i){var a=jr(t,n,r,o,i);if(null!==t){var l=gu(t);null!==l&&ur(l)}return a}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=kr(t);if(null!==n){var o=n.tag;if(o===h){var i=Sr(n);if(null!==i)return e.blockedOn=i,void cr(e.lanePriority,(function(){r.unstable_runWithPriority(e.priority,(function(){sr(n)}))}))}else if(3===o){if(n.stateNode.hydrate)return void(e.blockedOn=xr(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=ei(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(null!==r){var o=gu(r);return null!==o&&ur(o),e.blockedOn=r,!1}t.shift()}return!0}function Hr(e,t,n){$r(e)&&n.delete(t)}function qr(){for(Rr=!1;Or.length>0;){var e=Or[0];if(null!==e.blockedOn){var t=gu(e.blockedOn);null!==t&&lr(t);break}for(var n=e.targetContainers;n.length>0;){var r=n[0],o=ei(e.domEventName,e.eventSystemFlags,r,e.nativeEvent);if(null!==o){e.blockedOn=o;break}n.shift()}null===e.blockedOn&&Or.shift()}null!==Pr&&$r(Pr)&&(Pr=null),null!==Nr&&$r(Nr)&&(Nr=null),null!==Mr&&$r(Mr)&&(Mr=null),Dr.forEach(Hr),Ir.forEach(Hr)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,Rr||(Rr=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,qr)))}function Yr(e){if(Or.length>0){Qr(Or[0],e);for(var t=1;t<Or.length;t++){var n=Or[t];n.blockedOn===e&&(n.blockedOn=null)}}null!==Pr&&Qr(Pr,e),null!==Nr&&Qr(Nr,e),null!==Mr&&Qr(Mr,e);var r=function(t){return Qr(t,e)};Dr.forEach(r),Ir.forEach(r);for(var o=0;o<zr.length;o++){var i=zr[o];i.blockedOn===e&&(i.blockedOn=null)}for(;zr.length>0;){var a=zr[0];if(null!==a.blockedOn)break;Vr(a),null===a.blockedOn&&zr.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}O&&(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,io=new Map,ao=["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],i="on"+(o[0].toUpperCase()+o.slice(1));io.set(r,t),oo.set(r,i),T(i,[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 i=yo&e;if(0!==i)return Co=5,i;if(e&bo)return Co=4,bo;if(0!=(e&ko))return Co=3,ko;var a=So&e;return 0!==a?(Co=2,a):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,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=Co=po;else{var u=n&wo;if(0!==u){var s=u&~a;if(0!==s)r=_o(s),o=Co;else{var c=u&l;0!==c&&(r=_o(c),o=Co)}}else{var f=n&~a;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&a)){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=Io(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 Oo(e){var t=-1073741825&e.pendingLanes;return 0!==t?t:t&xo?xo:0}function Po(e){return 0!=(e&wo)}function No(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=Do(24&~t);return 0===n?Mo(ho,t):n;case ho:var r=Do(192&~t);return 0===r?Mo(8,t):r;case 8:var o=Do(mo&~t);return 0===o&&0===(o=Do(vo&~t))&&(o=Do(mo)),o;case 6:case 5:break;case 2:var i=Do(So&~t);return 0===i&&(i=Do(So)),i}throw Error("Invalid update priority: "+e+". This is a bug in React.")}function Do(e){return function(e){return e&-e}(e)}function Io(e){return 31-Vo(e)}function zo(e,t){return 0!=(e&t)}function Lo(e,t){return(e&t)===t}function Ao(e,t){return e|t}function jo(e,t){return e&~t}function Fo(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[Io(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=io.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,Bn||Un(),function(e,t,n,r,o){var i=Bn;Bn=!0;try{Fn(e,t,n,r,o)}finally{(Bn=i)||$n()}}(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))&&Or.length>0&&Ar(e))Fr(null,e,t,n,r);else{var i=ei(e,t,n,r);if(null!==i){if(o){if(Ar(e))return void Fr(i,e,t,n,r);if(function(e,t,n,r,o){switch(t){case"focusin":return Pr=Br(Pr,e,t,n,r,o),!0;case"dragenter":return Nr=Br(Nr,e,t,n,r,o),!0;case"mouseover":return Mr=Br(Mr,e,t,n,r,o),!0;case"pointerover":var i=o,a=i.pointerId;return Dr.set(a,Br(Dr.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":var l=o,u=l.pointerId;return Ir.set(u,Br(Ir.get(u)||null,e,t,n,r,l)),!0}return!1}(i,e,t,n,r))return;Ur(e,r)}Qa(e,t,r,null,n)}else o&&Ur(e,r)}}}function ei(e,t,n,r){var o=yu(Nn(r));if(null!==o){var i=kr(o);if(null===i)o=null;else{var a=i.tag;if(a===h){var l=Sr(i);if(null!==l)return l;o=null}else if(3===a){if(i.stateNode.hydrate)return xr(i);o=null}else i!==o&&(o=null)}}return Qa(e,t,r,o,n),null}var ti=null,ni=null,ri=null;function oi(){if(ri)return ri;var e,t,n=ni,r=n.length,o=ii(),i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);var l=t>1?1-t:void 0;return ri=o.slice(e,l)}function ii(){return"value"in ti?ti.value:ti.textContent}function ai(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 li(){return!0}function ui(){return!1}function si(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)if(e.hasOwnProperty(a)){var l=e[a];this[a]=l?l(o):o[a]}var u=null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue;return this.isDefaultPrevented=u?li:ui,this.isPropagationStopped=ui,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=li)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=li)},persist:function(){},isPersistent:li}),t}var ci,fi,di,pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hi=si(pi),mi=n({},pi,{view:0,detail:0}),vi=si(mi);var yi=n({},mi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oi,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!==di&&(di&&"mousemove"===e.type?(ci=e.screenX-di.screenX,fi=e.screenY-di.screenY):(ci=0,fi=0),di=e)}(e),ci)},movementY:function(e){return"movementY"in e?e.movementY:fi}}),gi=si(yi),bi=si(n({},yi,{dataTransfer:0})),wi=si(n({},mi,{relatedTarget:0})),ki=si(n({},pi,{animationName:0,elapsedTime:0,pseudoElement:0})),Si=si(n({},pi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),xi=si(n({},pi,{data:0})),Ei=xi,Ci={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_i={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 Ti={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ri(e){var t=this.nativeEvent;if(t.getModifierState)return t.getModifierState(e);var n=Ti[e];return!!n&&!!t[n]}function Oi(e){return Ri}var Pi=si(n({},mi,{key:function(e){if(e.key){var t=Ci[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=ai(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?_i[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oi,charCode:function(e){return"keypress"===e.type?ai(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ai(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Ni=si(n({},yi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mi=si(n({},mi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oi})),Di=si(n({},pi,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ii=si(n({},yi,{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})),zi=[9,13,27,32],Li=O&&"CompositionEvent"in window,Ai=null;O&&"documentMode"in document&&(Ai=document.documentMode);var ji=O&&"TextEvent"in window&&!Ai,Fi=O&&(!Li||Ai&&Ai>8&&Ai<=11),Ui=String.fromCharCode(32);var Wi=!1;function Bi(e,t){switch(e){case"keyup":return-1!==zi.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vi(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function $i(e){return"ko"===e.locale}var Hi=!1;function qi(e,t,n,r,o){var i,a;if(Li?i=function(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}(t):Hi?Bi(t,r)&&(i="onCompositionEnd"):function(e,t){return"keydown"===e&&229===t.keyCode}(t,r)&&(i="onCompositionStart"),!i)return null;Fi&&!$i(r)&&(Hi||"onCompositionStart"!==i?"onCompositionEnd"===i&&Hi&&(a=oi()):Hi=function(e){return ti=e,ni=ii(),!0}(o));var l=Ja(n,i);if(l.length>0){var u=new xi(i,t,null,r,o);if(e.push({event:u,listeners:l}),a)u.data=a;else{var s=Vi(r);null!==s&&(u.data=s)}}}function Qi(e,t){if(Hi){if("compositionend"===e||!Li&&Bi(e,t)){var n=oi();return ti=null,ni=null,ri=null,Hi=!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 Fi&&!$i(t)?null:t.data;default:return null}}function Yi(e,t,n,r,o){var i;if(!(i=ji?function(e,t){switch(e){case"compositionend":return Vi(t);case"keypress":return 32!==t.which?null:(Wi=!0,Ui);case"textInput":var n=t.data;return n===Ui&&Wi?null:n;default:return null}}(t,r):Qi(t,r)))return null;var a=Ja(n,"onBeforeInput");if(a.length>0){var l=new Ei("onBeforeInput","beforeinput",null,r,o);e.push({event:l,listeners:a}),l.data=i}}var Ji={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 Ki(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ji[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 Xi(e,t,n,r){Ln(r);var o=Ja(t,"onChange");if(o.length>0){var i=new hi("onChange","change",null,n,r);e.push({event:i,listeners:o})}}var Gi=null,Zi=null;function ea(e){var t=[];Xi(t,Zi,e,Nn(e)),function(e,t){if(Bn)return e(t);Bn=!0;try{jn(e,t)}finally{Bn=!1,$n()}}(ta,t)}function ta(e){Ua(e,0)}function na(e){if(ot(bu(e)))return e}function ra(e,t){if("change"===e)return t}var oa=!1;function ia(){Gi&&(Gi.detachEvent("onpropertychange",aa),Gi=null,Zi=null)}function aa(e){"value"===e.propertyName&&na(Zi)&&ea(e)}function la(e,t,n){"focusin"===e?(ia(),function(e,t){Zi=t,(Gi=e).attachEvent("onpropertychange",aa)}(t,n)):"focusout"===e&&ia()}function ua(e,t){if("selectionchange"===e||"keyup"===e||"keydown"===e)return na(Zi)}function sa(e,t){if("click"===e)return na(t)}function ca(e,t){if("input"===e||"change"===e)return na(t)}function fa(e,t,n,r,o,i,a){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=ra:Ki(p)?oa?l=ca:(l=ua,u=la):function(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(p)&&(l=sa),l){var h=l(t,n);if(h)return void Xi(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 da(e,t,n,r,o,i,a){var l="mouseover"===t||"pointerover"===t,u="mouseout"===t||"pointerout"===t;if(l&&0==(16&i)){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!==kr(d)||5!==d.tag&&6!==d.tag)&&(d=null)}else f=null,d=n;if(f!==d){var m=gi,v="onMouseLeave",y="onMouseEnter",g="mouse";"pointerout"!==t&&"pointerover"!==t||(m=Ni,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 i=r&&o?function(e,t){for(var n=e,r=t,o=0,i=n;i;i=Ka(i))o++;for(var a=0,l=r;l;l=Ka(l))a++;for(;o-a>0;)n=Ka(n),o--;for(;a-o>0;)r=Ka(r),a--;var u=o;for(;u--;){if(n===r||null!==r&&n===r.alternate)return n;n=Ka(n),r=Ka(r)}return null}(r,o):null;null!==r&&Xa(e,t,r,i,!1);null!==o&&null!==n&&Xa(e,n,o,i,!0)}(e,k,S,f,d)}}}O&&(oa=function(e){if(!O)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 pa="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ha=Object.prototype.hasOwnProperty;function ma(e,t){if(pa(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(!ha.call(t,n[o])||!pa(e[n[o]],t[n[o]]))return!1;return!0}function va(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ya(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function ga(e,t){for(var n=va(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=va(ya(n))}}function ba(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,i=r.anchorOffset,a=r.focusNode,l=r.focusOffset;try{o.nodeType,a.nodeType}catch(e){return null}return function(e,t,n,r,o){var i=0,a=-1,l=-1,u=0,s=0,c=e,f=null;e:for(;;){for(var d=null;c!==t||0!==n&&3!==c.nodeType||(a=i+n),c!==r||0!==o&&3!==c.nodeType||(l=i+o),3===c.nodeType&&(i+=c.nodeValue.length),null!==(d=c.firstChild);)f=c,c=d;for(;;){if(c===e)break e;if(f===t&&++u===n&&(a=i),f===r&&++s===o&&(l=i),null!==(d=c.nextSibling))break;f=(c=f).parentNode}c=d}if(-1===a||-1===l)return null;return{start:a,end:l}}(e,o,i,a,l)}function wa(e){return e&&3===e.nodeType}function ka(e,t){return!(!e||!t)&&(e===t||!wa(e)&&(wa(t)?ka(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Sa(e){return e&&e.ownerDocument&&ka(e.ownerDocument.documentElement,e)}function xa(e){try{return"string"==typeof e.contentWindow.location.href}catch(e){return!1}}function Ea(){for(var e=window,t=it();t instanceof e.HTMLIFrameElement;){if(!xa(t))return t;t=it((e=t.contentWindow).document)}return t}function Ca(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 _a(e){var t=Ea(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&Sa(n)){null!==r&&Ca(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(),i=e.textContent.length,a=Math.min(t.start,i),l=void 0===t.end?a:Math.min(t.end,i);if(!o.extend&&a>l){var u=l;l=a,a=u}var s=ga(e,a),c=ga(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(),a>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=[],i=n;i=i.parentNode;)1===i.nodeType&&o.push({element:i,left:i.scrollLeft,top:i.scrollTop});"function"==typeof n.focus&&n.focus();for(var a=0;a<o.length;a++){var l=o[a];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}}function Ta(e){return("selectionStart"in e?{start:e.selectionStart,end:e.selectionEnd}:ba(e))||{start:0,end:0}}var Ra=O&&"documentMode"in document&&document.documentMode<=11;var Oa=null,Pa=null,Na=null,Ma=!1;function Da(e,t,n){var r,o=(r=n).window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!Ma&&null!=Oa&&Oa===it(o)){var i=function(e){if("selectionStart"in e&&Ca(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}}(Oa);if(!Na||!ma(Na,i)){Na=i;var a=Ja(Pa,"onSelect");if(a.length>0){var l=new hi("onSelect","select",null,t,n);e.push({event:l,listeners:a}),l.target=Oa}}}}function Ia(e,t,n,r,o,i,a){var l=oo.get(t);if(void 0!==l){var u=hi,s=t;switch(t){case"keypress":if(0===ai(r))return;case"keydown":case"keyup":u=Pi;break;case"focusin":s="focus",u=wi;break;case"focusout":s="blur",u=wi;break;case"beforeblur":case"afterblur":u=wi;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=gi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=bi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Mi;break;case eo:case to:case no:u=ki;break;case ro:u=Di;break;case"scroll":u=vi;break;case"wheel":u=Ii;break;case"copy":case"cut":case"paste":u=Si;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Ni}var c=0!=(4&i),f=!c&&"scroll"===t,d=function(e,t,n,r,o){var i=null!==t?t+"Capture":null,a=r?i:t,l=[],u=e,s=null;for(;null!==u;){var c=u,f=c.stateNode;if(5===c.tag&&null!==f&&(s=f,null!==a)){var d=Hn(u,a);null!=d&&l.push(Ya(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 za(e,t,n,r,o,i,a){Ia(e,t,n,r,o,i),0==(7&i)&&(da(e,t,n,r,o,i),fa(e,t,n,r,o),function(e,t,n,r,o,i,a){var l=n?bu(n):window;switch(t){case"focusin":(Ki(l)||"true"===l.contentEditable)&&(Oa=l,Pa=n,Na=null);break;case"focusout":Oa=null,Pa=null,Na=null;break;case"mousedown":Ma=!0;break;case"contextmenu":case"mouseup":case"dragend":Ma=!1,Da(e,r,o);break;case"selectionchange":if(Ra)break;case"keydown":case"keyup":Da(e,r,o)}}(e,t,n,r,o),function(e,t,n,r,o,i,a){qi(e,t,n,r,o),Yi(e,t,n,r,o)}(e,t,n,r,o))}co(ao,0),co(uo,1),co(so,2),function(e,t){for(var n=0;n<e.length;n++)io.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 La=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Aa=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(La));function ja(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,u){if(rr.apply(this,arguments),Gn){var s=ir();er||(er=!0,tr=s)}}(r,t,void 0,e),e.currentTarget=null}function Fa(e,t,n){var r;if(n)for(var o=t.length-1;o>=0;o--){var i=t[o],a=i.instance,l=i.currentTarget,u=i.listener;if(a!==r&&e.isPropagationStopped())return;ja(e,u,l),r=a}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;ja(e,p,d),r=f}}function Ua(e,t){for(var n=0!=(4&t),r=0;r<e.length;r++){var o=e[r];Fa(o.event,o.listeners,n)}!function(){if(er){var e=tr;throw er=!1,tr=null,e}}()}function Wa(e,t){var n=Su(t),r=Ga(e,false);n.has(r)||(Ha(t,e,2,false),n.add(r))}var Ba="_reactListening"+Math.random().toString(36).slice(2);function Va(e){e[Ba]||(e[Ba]=!0,E.forEach((function(t){Aa.has(t)||$a(t,!1,e,null),$a(t,!0,e,null)})))}function $a(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Aa.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=Su(i),l=Ga(e,t);a.has(l)||(t&&(o|=4),Ha(i,e,o,t),a.add(l))}function Ha(e,t,n,r,o){var i=Ko(e,t,n),a=void 0;qn&&("touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0)),e=e,r?void 0!==a?function(e,t,n,r){e.addEventListener(t,n,{capture:!0,passive:r})}(e,t,i,a):function(e,t,n){e.addEventListener(t,n,!0)}(e,t,i):void 0!==a?function(e,t,n,r){e.addEventListener(t,n,{passive:r})}(e,t,i,a):function(e,t,n){e.addEventListener(t,n,!1)}(e,t,i)}function qa(e,t){return e===t||8===e.nodeType&&e.parentNode===t}function Qa(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)){var a=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(qa(s,a))break;if(4===u)for(var c=l.return;null!==c;){var f=c.tag;if(3===f||4===f)if(qa(c.stateNode.containerInfo,a))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=i=d;continue e}s=s.parentNode}}l=l.return}}}!function(e,t,n){if(Vn)return e(t,n);Vn=!0;try{Wn(e,t,n)}finally{Vn=!1,$n()}}((function(){return function(e,t,n,r,o){var i=[];za(i,e,r,n,Nn(n),t),Ua(i,t)}(e,t,n,i)}))}function Ya(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ja(e,t){for(var n=t+"Capture",r=[],o=e;null!==o;){var i=o,a=i.stateNode;if(5===i.tag&&null!==a){var l=a,u=Hn(o,n);null!=u&&r.unshift(Ya(o,u,l));var s=Hn(o,t);null!=s&&r.push(Ya(o,s,l))}o=o.return}return r}function Ka(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xa(e,t,n,r,o){for(var i=t._reactName,a=[],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=Hn(l,i);null!=p&&a.unshift(Ya(l,p,d))}else if(!o){var h=Hn(l,i);null!=h&&a.push(Ya(l,h,d))}}l=l.return}0!==a.length&&e.push({event:t,listeners:a})}function Ga(e,t){return e+"__"+(t?"capture":"bubble")}var Za,el,tl,nl,rl,ol,il,al,ll,ul,sl=!1,cl="dangerouslySetInnerHTML",fl="suppressContentEditableWarning",dl="suppressHydrationWarning",pl="autoFocus",hl="children",ml="style",vl=Lt;Za={dialog:!0,webview:!0},tl=function(e,t){kn(e,t),function(e,t){"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||Sn||(Sn=!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),Pn(e,t,{registrationNameDependencies:C,possibleRegistrationNames:_})},al=O&&!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,i=pn(t,n);switch(tl(t,n),t){case"dialog":Wa("cancel",e),Wa("close",e),o=n;break;case"iframe":case"object":case"embed":Wa("load",e),o=n;break;case"video":case"audio":for(var a=0;a<La.length;a++)Wa(La[a],e);o=n;break;case"source":Wa("error",e),o=n;break;case"img":case"image":case"link":Wa("error",e),Wa("load",e),o=n;break;case"details":Wa("toggle",e),o=n;break;case"input":dt(e,n),o=ft(e,n),Wa("invalid",e);break;case"option":kt(0,n),o=St(0,n);break;case"select":Tt(e,n),o=_t(0,n),Wa("invalid",e);break;case"textarea":Pt(e,n),o=Ot(e,n),Wa("invalid",e);break;default:o=n}switch(dn(t,o),function(e,t,n,r,o){for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];if(i===ml)a&&Object.freeze(a),sn(t,a);else if(i===cl){var l=a?a.__html:void 0;null!=l&&Bt(t,l)}else i===hl?"string"==typeof a?("textarea"!==e||""!==a)&&$t(t,a):"number"==typeof a&&$t(t,""+a):i===fl||i===dl||i===pl||(C.hasOwnProperty(i)?null!=a&&("function"!=typeof a&&il(i,a),"onScroll"===i&&Wa("scroll",t)):null!=a&&X(t,i,a,o))}}(t,e,0,o,i),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 i,a,l,s,c=null;switch(t){case"input":i=ft(e,n),a=ft(e,r),c=[];break;case"option":i=St(0,n),a=St(0,r),c=[];break;case"select":i=_t(0,n),a=_t(0,r),c=[];break;case"textarea":i=Ot(e,n),a=Ot(e,r),c=[];break;default:a=r,"function"!=typeof(i=n).onClick&&"function"==typeof a.onClick&&kl(e)}dn(t,a);var f=null;for(l in i)if(!a.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if(l===ml){var d=i[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 a){var p=a[l],h=null!=i?i[l]:void 0;if(a.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&&il(l,p),"onScroll"===l&&Wa("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=cn(e),o=cn(t),i={};for(var a in r){var l=r[a],s=o[a];if(s&&l!==s){var c=l+","+s;if(i[c])continue;i[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,a.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);pn(n,r);switch(function(e,t,n,r){for(var o=0;o<t.length;o+=2){var i=t[o],a=t[o+1];i===ml?sn(e,a):i===cl?Bt(e,a):i===hl?$t(e,a):X(e,i,a,r)}}(e,t,0,pn(n,o)),n){case"input":ht(e,o);break;case"textarea":Nt(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 Ol(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)}},il=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 Pl,Nl,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"],Dl=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Il=Dl.concat(["button"]),zl=["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};Nl=function(e,t){var r=n({},e||Ll),o={tag:t};return-1!==Dl.indexOf(t)&&(r.aTagInScope=null,r.buttonTagInScope=null,r.nobrTagInScope=null),-1!==Il.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={};Pl=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 i=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===zl.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,a=i?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=i||a;if(l){var s=l.tag,c=!!i+"|"+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+">",i){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 jl="$?",Fl="$!",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=Ea(),Wl={focusedElem:t,selectionRange:Ca(t)?Ta(t):null};return Jo(!1),null}function $l(e,t,n,r,o){var i=r;if(Pl(e,null,i.ancestorInfo),"string"==typeof t.children||"number"==typeof t.children){var a=""+t.children,l=Nl(i.ancestorInfo,e);Pl(null,a,l)}var s=function(e,t,n,r){var o,i,a=bl(n),l=r;if(l===vl&&(l=jt(e)),l===vl){if((o=pn(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=a.createElement("div");s.innerHTML="<script><\/script>";var c=s.firstChild;i=s.removeChild(c)}else if("string"==typeof t.is)i=a.createElement(e,{is:t.is});else if(i=a.createElement(e),"select"===e){var f=i;t.multiple?f.multiple=!0:t.size&&(f.size=t.size)}}else i=a.createElementNS(l,e);return l===vl&&(o||"[object HTMLUnknownElement]"!==Object.prototype.toString.call(i)||Object.prototype.hasOwnProperty.call(Za,e)||(Za[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))),i}(e,t,n,i.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){Pl(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){$t(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=Yt("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===Fl}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 iu(e,t,n,r,o,i){return hu(i,e),ku(e,n),function(e,t,n,r,o){var i,a;switch(el=!0===n.suppressHydrationWarning,i=pn(t,n),tl(t,n),t){case"dialog":Wa("cancel",e),Wa("close",e);break;case"iframe":case"object":case"embed":Wa("load",e);break;case"video":case"audio":for(var l=0;l<La.length;l++)Wa(La[l],e);break;case"source":Wa("error",e);break;case"img":case"image":case"link":Wa("error",e),Wa("load",e);break;case"details":Wa("toggle",e);break;case"input":dt(e,n),Wa("invalid",e);break;case"option":kt(0,n);break;case"select":Tt(e,n),Wa("invalid",e);break;case"textarea":Pt(e,n),Wa("invalid",e)}dn(t,n),a=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:a.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&&il(d,p),"onScroll"===d&&Wa("scroll",e));else if("boolean"==typeof i){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(a.delete(d),al){var b=un(p);b!==(h=e.getAttribute("style"))&&rl(d,h,b)}}else if(i)a.delete(d.toLowerCase()),p!==(h=K(e,d,p))&&rl(d,h,p);else if(!j(d,m,i)&&!U(d,p,m,i)){var w=!1;if(null!==m)a.delete(m.attributeName),h=J(e,d,p,m);else{var k=r;if(k===vl&&(k=jt(t)),k===vl)a.delete(d.toLowerCase());else{var S=(c=void 0,c=d.toLowerCase(),hn.hasOwnProperty(c)&&hn[c]||null);null!==S&&S!==d&&(w=!0,a.delete(S)),a.delete(d)}h=K(e,d,p)}p===h||w||rl(d,h,p)}}}switch(a.size>0&&!el&&ol(a),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 au(e){for(var t=e.previousSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if("$"===r||r===Fl||r===jl){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=au(e);null!==o;){var i=o[cu];if(i)return i;o=au(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=i.ReactDebugCurrentFrame;function Cu(e){if(e){var t=e._owner,n=je(e.type,e._source,t?t.type:null);Eu.setExtraStackFrame(n)}else Eu.setExtraStackFrame(null)}function _u(e,t,n,r,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](t,a,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,a,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 Ou,Pu=-1;function Nu(e){return{current:e}}function Mu(e,t){Pu<0?u("Unexpected pop."):(t!==Tu[Pu]&&u("Unexpected Fiber popped."),e.current=Ru[Pu],Ru[Pu]=null,Tu[Pu]=null,Pu--)}function Du(e,t,n){Pu++,Ru[Pu]=e.current,Tu[Pu]=n,e.current=t}Ou={};var Iu={};Object.freeze(Iu);var zu=Nu(Iu),Lu=Nu(!1),Au=Iu;function ju(e,t,n){return n&&Bu(t)?Au:zu.current}function Fu(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 Iu;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i={};for(var a in r)i[a]=t[a];return _u(r,i,"context",Be(n)||"Unknown"),o&&Fu(e,t,i),i}function Wu(){return Lu.current}function Bu(e){var t=e.childContextTypes;return null!=t}function Vu(e){Mu(Lu,e),Mu(zu,e)}function $u(e){Mu(Lu,e),Mu(zu,e)}function Hu(e,t,n){if(zu.current!==Iu)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Du(zu,t,e),Du(Lu,n,e)}function qu(e,t,r){var o=e.stateNode,i=t.childContextTypes;if("function"!=typeof o.getChildContext){var a=Be(t)||"Unknown";return Ou[a]||(Ou[a]=!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.",a,a)),r}var l=o.getChildContext();for(var s in l)if(!(s in i))throw Error((Be(t)||"Unknown")+'.getChildContext(): key "'+s+'" is not defined in childContextTypes.');return _u(i,l,"child context",Be(t)||"Unknown"),n({},r,l)}function Qu(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Iu;return Au=zu.current,Du(zu,n,e),Du(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(zu,e),Du(zu,o,e),Du(Lu,n,e)}else Mu(Lu,e),Du(Lu,n,e)}function Ju(e){if(!function(e){return kr(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&fr)===fr;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,is=r.unstable_requestPaint,as=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!==is?is:function(){},bs=null,ws=null,ks=!1,Ss=as(),xs=Ss<1e4?as:function(){return as()-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 Os(){if(null!==ws){var e=ws;ws=null,rs(e)}Ps()}function Ps(){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,Os),t}finally{ks=!1}}}var Ns="17.0.2",Ms=i.ReactCurrentBatchConfig;var Ds={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Is=function(e){var t=[];return e.forEach((function(e){t.push(e)})),t.sort().join(", ")},zs=[],Ls=[],As=[],js=[],Fs=[],Us=[],Ws=new Set;Ds.recordUnsafeLifecycleWarnings=function(e,t){Ws.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&zs.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&&js.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&Fs.push(e),1&e.mode&&"function"==typeof t.UNSAFE_componentWillUpdate&&Us.push(e))},Ds.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;zs.length>0&&(zs.forEach((function(t){e.add(Be(t.type)||"Component"),Ws.add(t.type)})),zs=[]);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;js.length>0&&(js.forEach((function(e){r.add(Be(e.type)||"Component"),Ws.add(e.type)})),js=[]);var o=new Set;Fs.length>0&&(Fs.forEach((function(e){o.add(Be(e.type)||"Component"),Ws.add(e.type)})),Fs=[]);var i=new Set;(Us.length>0&&(Us.forEach((function(e){i.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",Is(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",Is(r));i.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",Is(i));e.size>0&&a("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",Is(e));n.size>0&&a("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",Is(n));o.size>0&&a("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",Is(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 i in o)void 0===r[i]&&(r[i]=o[i]);return r}return t}Ds.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.")},Ds.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=Is(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()}}}))},Ds.discardPendingWarnings=function(){zs=[],Ls=[],As=[],js=[],Fs=[],Us=[],Bs=new Map};var Hs,qs=1073741823,Qs=Nu(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;Du(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&&(zo(n.lanes,t)&&ah(),n.firstContext=null))}function ic(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 ac,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||ac||(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."),ac=!0)}}function hc(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var o=r.updateQueue;if(n===o){var i=null,a=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===a?i=a=s:(a.next=s,a=s),u=u.next}while(null!==u);null===a?i=a=t:(a.next=t,a=t)}else i=a=t;return n={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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,i,a){switch(r.tag){case 1:var l=r.payload;if("function"==typeof l){Zs();var u=l.call(a,o,i);if(1&e.mode){Re();try{l.call(a,o,i)}finally{Oe()}}return ec(),u}return l;case 3:e.flags=-4097&e.flags|fr;case 0:var s,c=r.payload;if("function"==typeof c){if(Zs(),s=c.call(a,o,i),1&e.mode){Re();try{c.call(a,o,i)}finally{Oe()}}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 i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===a?i=s:a.next=s,a=u;var c=e.alternate;if(null!==c){var f=c.updateQueue,d=f.lastBaseUpdate;d!==a&&(null===d?f.firstBaseUpdate=s:d.next=s,f.lastBaseUpdate=u)}}if(null!==i){for(var p=o.baseState,h=0,m=null,v=null,y=null,g=i;;){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 i=r[o],a=i.callback;null!==a&&(i.callback=null,yc(a,n))}}ac=!1,lc=null;var kc,Sc,xc,Ec,Cc,_c,Tc,Rc,Oc,Pc,Nc={},Mc=Array.isArray,Dc=(new e.Component).refs;kc=new Set,Sc=new Set,xc=new Set,Ec=new Set,Rc=new Set,Cc=new Set,Oc=new Set,Pc=new Set;var Ic=new Set;function zc(e,t,r,o){var i=e.memoizedState;if(1&e.mode){Re();try{r(o,i)}finally{Oe()}}var a=r(o,i);_c(t,a);var l=null==a?i:n({},i,a);(e.memoizedState=l,0===e.lanes)&&(e.updateQueue.baseState=l)}Tc=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;Ic.has(n)||(Ic.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(Nc,"_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(Nc);var Lc,Ac,jc,Fc,Uc,Wc={isMounted:function(e){var t=wr.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=ar(e);return!!o&&kr(o)===o},enqueueSetState:function(e,t,n){var r=ar(e),o=Am(),i=jm(r),a=dc(o,i);a.payload=t,null!=n&&(Tc(n,"setState"),a.callback=n),pc(r,a),Um(r,i,o)},enqueueReplaceState:function(e,t,n){var r=ar(e),o=Am(),i=jm(r),a=dc(o,i);a.tag=1,a.payload=t,null!=n&&(Tc(n,"replaceState"),a.callback=n),pc(r,a),Um(r,i,o)},enqueueForceUpdate:function(e,t){var n=ar(e),r=Am(),o=jm(n),i=dc(r,o);i.tag=uc,null!=t&&(Tc(t,"forceUpdate"),i.callback=t),pc(n,i),Um(n,o,r)}};function Bc(e,t,n,r,o,i,a){var l=e.stateNode;if("function"==typeof l.shouldComponentUpdate){if(1&e.mode){Re();try{l.shouldComponentUpdate(r,i,a)}finally{Oe()}}var s=l.shouldComponentUpdate(r,i,a);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||(!ma(n,r)||!ma(o,i))}function Vc(e,t){var n;t.updater=Wc,e.stateNode=t,n=e,t._reactInternals=n,t._reactInternalInstance=Nc}function $c(e,t,n){var r=!1,o=Iu,i=Iu,a=t.contextType;if("contextType"in t&&(!(null===a||void 0!==a&&a.$$typeof===oe&&void 0===a._context)&&!Pc.has(t))){Pc.add(t);var l="";l=void 0===a?" 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 a?" However, it is set to a "+typeof a+".":a.$$typeof===re?" Did you accidentally pass the Context.Provider instead?":void 0!==a._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(a).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 a&&null!==a)i=ic(a);else{o=ju(0,t,!0);var s=t.contextTypes;i=(r=null!=s)?Uu(e,o):Iu}if(1&e.mode){Re();try{new t(n,i)}finally{Oe()}}var c=new t(n,i),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&&Fu(e,o,i),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 i=Be(e.type)||"Component";kc.has(i)||(kc.add(i),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i)),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&&!Oc.has(t)&&(Oc.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 i=r.props!==n;void 0!==r.props&&i&&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 a=r.state;a&&("object"!=typeof a||Mc(a))&&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=Dc,cc(e);var i=t.contextType;if("object"==typeof i&&null!==i)o.context=ic(i);else{var a=ju(0,t,!0);o.context=Uu(e,a)}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&&Ds.recordLegacyContextWarning(e,o),Ds.recordUnsafeLifecycleWarnings(e,o),vc(e,n,o,r),o.state=e.memoizedState;var s=t.getDerivedStateFromProps;"function"==typeof s&&(zc(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,jc={},Fc={},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";Fc[n]||(Fc[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";jc[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),jc[o]=!0)}if(n._owner){var i,a=n._owner;if(a){var l=a;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");i=l.stateNode}if(!i)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=i.refs;t===Dc&&(t=i.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 i(t,n,r){if(t.index=r,!e)return n;var o=t.alternate;if(null!==o){var i=o.index;return i<n?(t.flags=2,n):i}return t.flags=2,n}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){if(null===t||6!==t.tag){var i=gy(n,e.mode,r);return i.return=e,i}var a=o(t,n);return a.return=e,a}function s(e,t,n,r){if(null!==t&&(t.elementType===n.type||Xv(t,n))){var i=o(t,n.props);return i.ref=Jc(e,t,n),i.return=e,i._debugSource=n._source,i._debugOwner=n._owner,i}var a=my(n,e.mode,r);return a.ref=Jc(e,t,n),a.return=e,a}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var i=by(n,e.mode,r);return i.return=e,i}var a=o(t,n.children||[]);return a.return=e,a}function f(e,t,n,r,i){if(null===t||7!==t.tag){var a=vy(n,e.mode,r,i);return a.return=e,a}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 i=by(t,e.mode,n);return i.return=e,i}if(Yc(t)||ge(t)){var a=vy(t,e.mode,n,null);return a.return=e,a}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 i=e.get(null===r.key?n:r.key)||null;return r.type===ee?f(t,i,r.props.children,o,r.key):s(t,i,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 a(function(e,r,i,a){for(var l=i.key,u=r;null!==u;){if(u.key===l){switch(u.tag){case 7:if(i.type===ee){n(e,u.sibling);var s=o(u,i.props.children);return s.return=e,s._debugSource=i._source,s._debugOwner=i._owner,s}break;case w:default:if(u.elementType===i.type||Xv(u,i)){n(e,u.sibling);var c=o(u,i.props);return c.ref=Jc(e,u,i),c.return=e,c._debugSource=i._source,c._debugOwner=i._owner,c}}n(e,u);break}t(e,u),u=u.sibling}if(i.type===ee){var f=vy(i.props.children,e.mode,a,i.key);return f.return=e,f}var d=my(i,e.mode,a);return d.ref=Jc(e,r,i),d.return=e,d}(l,s,c,f));case Z:return a(function(e,r,i,a){for(var l=i.key,u=r;null!==u;){if(u.key===l){if(4===u.tag&&u.stateNode.containerInfo===i.containerInfo&&u.stateNode.implementation===i.implementation){n(e,u.sibling);var s=o(u,i.children||[]);return s.return=e,s}n(e,u);break}t(e,u),u=u.sibling}var c=by(i,e.mode,a);return c.return=e,c}(l,s,c,f))}if("string"==typeof c||"number"==typeof c)return a(function(e,t,r,i){if(null!==t&&6===t.tag){n(e,t.sibling);var a=o(t,r);return a.return=e,a}n(e,t);var l=gy(r,e.mode,i);return l.return=e,l}(l,s,""+c,f));if(Yc(c))return function(o,a,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=a,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=i(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=i(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=i(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,a,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=a,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=i(_,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=i(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 O=m(R,o,x,C.value,s);null!==O&&(e&&null!==O.alternate&&R.delete(null===O.key?x:O.key),S=i(O,S,x),null===w?b=O:w.sibling=O,w=O)}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=Nu(nf),of=Nu(nf),af=Nu(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){Du(af,t,e),Du(of,e,e),Du(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:Ft(null,"");break;default:var i=8===r?e.parentNode:e;n=Ft(i.namespaceURI||null,t=i.tagName)}var a=t.toLowerCase();return{namespace:n,ancestorInfo:Nl(null,a)}}(t);Mu(rf,e),Du(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),i=(t=o,n=e.type,{namespace:Ft((r=t).namespace,n),ancestorInfo:Nl(r.ancestorInfo,n)});o!==i&&(Du(of,e,e),Du(rf,i,e))}function pf(e){of.current===e&&(Mu(rf,e),Mu(of,e))}var hf=Nu(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){Du(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===jl||tu(r))return t}}else if(t.tag===g&&void 0!==t.memoizedProps.revealOrder){if(0!=(t.flags&fr))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){Ol(e,t)}(n,t.pendingProps)}break;case 5:e.type;var o=e.memoizedProps,i=e.stateNode;switch(t.tag){case 5:var a=t.type;t.pendingProps,function(e,t,n,r,o){!0!==t.suppressHydrationWarning&&Rl(n,r)}(0,o,i,a);break;case 6:!function(e,t,n,r){!0!==t.suppressHydrationWarning&&Ol(n,r)}(0,o,i,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 Of(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 i=o.memoizedProps;o.stateNode;!function(e,t,n,r,o){!0!==t.suppressHydrationWarning&&Cl(r,o)}(0,i,0,t,n)}}return r}function Pf(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!==Fl&&r!==jl||n++}t=t.nextSibling}return null}(n)}function Nf(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 Nf(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 Nf(e),xf=e.tag===h?Pf(e):Sf?ru(e.stateNode):null,!0}function Df(){Sf=null,xf=null,Ef=!1}function If(){return Ef}var zf,Lf=[];function Af(){for(var e=0;e<Lf.length;e++){Lf[e]._workInProgressVersionPrimary=null}Lf.length=0}function jf(e,t){e._workInProgressVersionPrimary=t,Lf.push(e)}zf={};var Ff,Uf,Wf=i.ReactCurrentDispatcher,Bf=i.ReactCurrentBatchConfig;Uf={},Ff=new Set;var Vf=0,$f=null,Hf=null,qf=null,Qf=!1,Yf=!1,Jf=null,Kf=null,Xf=-1,Gf=!1;function Zf(){var e=Jf;null===Kf?Kf=[e]:Kf.push(e)}function ed(){var e=Jf;null!==Kf&&(Xf++,Kf[Xf]!==e&&function(e){var t=Be($f.type);if(!Ff.has(t)&&(Ff.add(t),null!==Kf)){for(var n="",r=30,o=0;o<=Xf;o++){for(var i=Kf[o],a=o===Xf?e:i,l=o+1+". "+i;l.length<r;)l+=" ";n+=l+=a+"\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 td(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.",Jf,typeof e)}function nd(){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 rd(e,t){if(Gf)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.",Jf),!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",Jf,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!pa(e[n],t[n]))return!1;return!0}function od(e,t,n,r,o,i){Vf=i,$f=t,Kf=null!==e?e._debugHookTypes:null,Xf=-1,Gf=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=0,null!==e&&null!==e.memoizedState?Wf.current=ep:Wf.current=null!==Kf?Zd:Gd;var a=n(r,o);if(Yf){var l=0;do{if(Yf=!1,!(l<25))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,Gf=!1,Hf=null,qf=null,t.updateQueue=null,Xf=-1,Wf.current=tp,a=n(r,o)}while(Yf)}Wf.current=Xd,t._debugHookTypes=Kf;var u=null!==Hf&&null!==Hf.next;if(Vf=0,$f=null,Hf=null,qf=null,Jf=null,Kf=null,Xf=-1,Qf=!1,u)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return a}function id(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes=jo(e.lanes,n)}function ad(){if(Wf.current=Xd,Qf){for(var e=$f.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Qf=!1}Vf=0,$f=null,Hf=null,qf=null,Kf=null,Xf=-1,Jf=null,Hd=!1,Yf=!1}function ld(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qf?$f.memoizedState=qf=e:qf=qf.next=e,qf}function ud(){var e,t;if(null===Hf){var n=$f.alternate;e=null!==n?n.memoizedState:null}else e=Hf.next;if(null!==(t=null===qf?$f.memoizedState:qf.next))t=(qf=t).next,Hf=e;else{if(null===e)throw Error("Rendered more hooks than during the previous render.");var r={memoizedState:(Hf=e).memoizedState,baseState:Hf.baseState,baseQueue:Hf.baseQueue,queue:Hf.queue,next:null};null===qf?$f.memoizedState=qf=r:qf=qf.next=r}return qf}function sd(e,t){return"function"==typeof t?t(e):t}function cd(e,t,n){var r,o=ld();r=void 0!==n?n(t):t,o.memoizedState=o.baseState=r;var i=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a=i.dispatch=Kd.bind(null,$f,i);return[o.memoizedState,a]}function fd(e,t,n){var r=ud(),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 i=Hf,a=i.baseQueue,l=o.pending;if(null!==l){if(null!==a){var s=a.next,c=l.next;a.next=c,l.next=s}i.baseQueue!==a&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=a=l,o.pending=null}if(null!==a){var f=a.next,d=i.baseState,p=null,h=null,m=null,v=f;do{var y=v.lane;if(Lo(Vf,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,$f.lanes=Ao($f.lanes,y),rv(y)}v=v.next}while(null!==v&&v!==f);null===m?p=d:m.next=h,pa(d,r.memoizedState)||ah(),r.memoizedState=d,r.baseState=p,r.baseQueue=m,o.lastRenderedState=d}var w=o.dispatch;return[r.memoizedState,w]}function dd(e,t,n){var r=ud(),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 i=o.dispatch,a=o.pending,l=r.memoizedState;if(null!==a){o.pending=null;var u=a.next,s=u;do{l=e(l,s.action),s=s.next}while(s!==u);pa(l,r.memoizedState)||ah(),r.memoizedState=l,null===r.baseQueue&&(r.baseState=l),o.lastRenderedState=l}return[l,i]}function pd(e,t,n){var r;null==(r=t)._currentPrimaryRenderer?r._currentPrimaryRenderer=zf:r._currentPrimaryRenderer!==zf&&u("Detected multiple renderers concurrently rendering the same mutable source. This is currently unsupported.");var o=(0,t._getVersion)(t._source),i=!1,a=function(e){return e._workInProgressVersionPrimary}(t);if(null!==a?i=a===o:(i=Lo(Vf,e.mutableReadLanes))&&jf(t,o),i){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 hd(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 i=t._getVersion,a=i(t._source),l=Wf.current,s=l.useState((function(){return pd(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=$f;if(e.memoizedState={refs:m,source:t,subscribe:r},l.useEffect((function(){m.getSnapshot=n,m.setSnapshot=f;var e=i(t._source);if(!pa(a,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."),!pa(d,r)){f(r);var l=jm(b);Bo(o,l)}!function(e,t){e.entangledLanes|=t;for(var n=e.entanglements,r=t;r>0;){var o=Io(r),i=1<<o;n[o]|=t,r&=~i}}(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=jm(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]),!pa(v,n)||!pa(y,t)||!pa(g,r)){var w={pending:null,dispatch:null,lastRenderedReducer:sd,lastRenderedState:d};w.dispatch=f=Kd.bind(null,$f,w),p.queue=w,p.baseQueue=null,d=pd(o,t,n),p.memoizedState=p.baseState=d}return d}function md(e,t,n){var r=ld();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},hd(r,e,t,n)}function vd(e,t,n){return hd(ud(),e,t,n)}function yd(e){var t=ld();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n=t.queue={pending:null,dispatch:null,lastRenderedReducer:sd,lastRenderedState:e},r=n.dispatch=Kd.bind(null,$f,n);return[t.memoizedState,r]}function gd(e){return fd(sd)}function bd(e){return dd(sd)}function wd(e,t,n,r){var o={tag:e,create:t,destroy:n,deps:r,next:null},i=$f.updateQueue;if(null===i)i={lastEffect:null},$f.updateQueue=i,i.lastEffect=o.next=o;else{var a=i.lastEffect;if(null===a)i.lastEffect=o.next=o;else{var l=a.next;a.next=o,o.next=l,i.lastEffect=o}}return o}function kd(e){var t=ld(),n={current:e};return Object.seal(n),t.memoizedState=n,n}function Sd(e){return ud().memoizedState}function xd(e,t,n,r){var o=ld(),i=void 0===r?null:r;$f.flags|=e,o.memoizedState=wd(1|t,n,void 0,i)}function Ed(e,t,n,r){var o=ud(),i=void 0===r?null:r,a=void 0;if(null!==Hf){var l=Hf.memoizedState;if(a=l.destroy,null!==i)if(rd(i,l.deps))return void wd(t,n,a,i)}$f.flags|=e,o.memoizedState=wd(1|t,n,a,i)}function Cd(e,t){return"undefined"!=typeof jest&&Iv($f),xd(516,4,e,t)}function _d(e,t){return"undefined"!=typeof jest&&Iv($f),Ed(516,4,e,t)}function Td(e,t){return xd(4,2,e,t)}function Rd(e,t){return Ed(4,2,e,t)}function Od(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 i=e();return o.current=i,function(){o.current=null}}}function Pd(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 xd(4,2,Od.bind(null,t,e),r)}function Nd(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,Od.bind(null,t,e),r)}function Md(e,t){}var Dd=Md;function Id(e,t){var n=void 0===t?null:t;return ld().memoizedState=[e,n],e}function zd(e,t){var n=ud(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&(null!==r&&rd(r,o[1])))return o[0];return n.memoizedState=[e,r],e}function Ld(e,t){var n=ld(),r=void 0===t?null:t,o=e();return n.memoizedState=[o,r],o}function Ad(e,t){var n=ud(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&(null!==r&&rd(r,o[1])))return o[0];var i=e();return n.memoizedState=[i,r],i}function jd(e){var t=yd(e),n=t[0],r=t[1];return Cd((function(){var t=Bf.transition;Bf.transition=1;try{r(e)}finally{Bf.transition=t}}),[e]),n}function Fd(e){var t=gd(),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 _d((function(){var t=Bf.transition;Bf.transition=1;try{r(e)}finally{Bf.transition=t}}),[e]),n}function Wd(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 Bd(){var e=yd(!1),t=e[0],n=e[1],r=Wd.bind(null,n);return kd(r),[r,t]}function Vd(){var e=gd()[0];return[Sd().current,e]}function $d(){var e=bd()[0];return[Sd().current,e]}var Hd=!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 Qd(){var e=uu.bind(null,qd.bind(null,$f));if(If()){var t=!1,n=$f,r={$$typeof:de,toString:i=function(){throw t||(t=!0,Hd=!0,o(e()),Hd=!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:i},o=yd(r)[1];return 0==(2&$f.mode)&&($f.flags|=516,wd(5,(function(){o(e())}),void 0,null)),r}var i,a=e();return yd(a),a}function Yd(){return gd()[0]}function Jd(){return bd()[0]}function Kd(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=jm(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i;var l=e.alternate;if(e===$f||null!==l&&l===$f)Yf=Qf=!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=rp;try{var f=t.lastRenderedState,d=s(f,n);if(i.eagerReducer=s,i.eagerState=d,pa(d,f))return}catch(e){}finally{Wf.current=c}}}"undefined"!=typeof jest&&(Dv(e),zv(e)),Um(e,o,r)}}var Xd={readContext:ic,useCallback:nd,useContext:nd,useEffect:nd,useImperativeHandle:nd,useLayoutEffect:nd,useMemo:nd,useReducer:nd,useRef:nd,useState:nd,useDebugValue:nd,useDeferredValue:nd,useTransition:nd,useMutableSource:nd,useOpaqueIdentifier:nd,unstable_isNewReconciler:x},Gd=null,Zd=null,ep=null,tp=null,np=null,rp=null,op=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().")},ap=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")};Gd={readContext:function(e,t){return ic(e,t)},useCallback:function(e,t){return Jf="useCallback",Zf(),td(t),Id(e,t)},useContext:function(e,t){return Jf="useContext",Zf(),ic(e,t)},useEffect:function(e,t){return Jf="useEffect",Zf(),td(t),Cd(e,t)},useImperativeHandle:function(e,t,n){return Jf="useImperativeHandle",Zf(),td(n),Pd(e,t,n)},useLayoutEffect:function(e,t){return Jf="useLayoutEffect",Zf(),td(t),Td(e,t)},useMemo:function(e,t){Jf="useMemo",Zf(),td(t);var n=Wf.current;Wf.current=np;try{return Ld(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Jf="useReducer",Zf();var r=Wf.current;Wf.current=np;try{return cd(e,t,n)}finally{Wf.current=r}},useRef:function(e){return Jf="useRef",Zf(),kd(e)},useState:function(e){Jf="useState",Zf();var t=Wf.current;Wf.current=np;try{return yd(e)}finally{Wf.current=t}},useDebugValue:function(e,t){Jf="useDebugValue",Zf()},useDeferredValue:function(e){return Jf="useDeferredValue",Zf(),jd(e)},useTransition:function(){return Jf="useTransition",Zf(),Bd()},useMutableSource:function(e,t,n){return Jf="useMutableSource",Zf(),md(e,t,n)},useOpaqueIdentifier:function(){return Jf="useOpaqueIdentifier",Zf(),Qd()},unstable_isNewReconciler:x},Zd={readContext:function(e,t){return ic(e,t)},useCallback:function(e,t){return Jf="useCallback",ed(),Id(e,t)},useContext:function(e,t){return Jf="useContext",ed(),ic(e,t)},useEffect:function(e,t){return Jf="useEffect",ed(),Cd(e,t)},useImperativeHandle:function(e,t,n){return Jf="useImperativeHandle",ed(),Pd(e,t,n)},useLayoutEffect:function(e,t){return Jf="useLayoutEffect",ed(),Td(e,t)},useMemo:function(e,t){Jf="useMemo",ed();var n=Wf.current;Wf.current=np;try{return Ld(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Jf="useReducer",ed();var r=Wf.current;Wf.current=np;try{return cd(e,t,n)}finally{Wf.current=r}},useRef:function(e){return Jf="useRef",ed(),kd(e)},useState:function(e){Jf="useState",ed();var t=Wf.current;Wf.current=np;try{return yd(e)}finally{Wf.current=t}},useDebugValue:function(e,t){Jf="useDebugValue",ed()},useDeferredValue:function(e){return Jf="useDeferredValue",ed(),jd(e)},useTransition:function(){return Jf="useTransition",ed(),Bd()},useMutableSource:function(e,t,n){return Jf="useMutableSource",ed(),md(e,t,n)},useOpaqueIdentifier:function(){return Jf="useOpaqueIdentifier",ed(),Qd()},unstable_isNewReconciler:x},ep={readContext:function(e,t){return ic(e,t)},useCallback:function(e,t){return Jf="useCallback",ed(),zd(e,t)},useContext:function(e,t){return Jf="useContext",ed(),ic(e,t)},useEffect:function(e,t){return Jf="useEffect",ed(),_d(e,t)},useImperativeHandle:function(e,t,n){return Jf="useImperativeHandle",ed(),Nd(e,t,n)},useLayoutEffect:function(e,t){return Jf="useLayoutEffect",ed(),Rd(e,t)},useMemo:function(e,t){Jf="useMemo",ed();var n=Wf.current;Wf.current=rp;try{return Ad(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Jf="useReducer",ed();var r=Wf.current;Wf.current=rp;try{return fd(e)}finally{Wf.current=r}},useRef:function(e){return Jf="useRef",ed(),Sd()},useState:function(e){Jf="useState",ed();var t=Wf.current;Wf.current=rp;try{return gd()}finally{Wf.current=t}},useDebugValue:function(e,t){return Jf="useDebugValue",ed(),Dd()},useDeferredValue:function(e){return Jf="useDeferredValue",ed(),Fd(e)},useTransition:function(){return Jf="useTransition",ed(),Vd()},useMutableSource:function(e,t,n){return Jf="useMutableSource",ed(),vd(e,t,n)},useOpaqueIdentifier:function(){return Jf="useOpaqueIdentifier",ed(),Yd()},unstable_isNewReconciler:x},tp={readContext:function(e,t){return ic(e,t)},useCallback:function(e,t){return Jf="useCallback",ed(),zd(e,t)},useContext:function(e,t){return Jf="useContext",ed(),ic(e,t)},useEffect:function(e,t){return Jf="useEffect",ed(),_d(e,t)},useImperativeHandle:function(e,t,n){return Jf="useImperativeHandle",ed(),Nd(e,t,n)},useLayoutEffect:function(e,t){return Jf="useLayoutEffect",ed(),Rd(e,t)},useMemo:function(e,t){Jf="useMemo",ed();var n=Wf.current;Wf.current=op;try{return Ad(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Jf="useReducer",ed();var r=Wf.current;Wf.current=op;try{return dd(e)}finally{Wf.current=r}},useRef:function(e){return Jf="useRef",ed(),Sd()},useState:function(e){Jf="useState",ed();var t=Wf.current;Wf.current=op;try{return bd()}finally{Wf.current=t}},useDebugValue:function(e,t){return Jf="useDebugValue",ed(),Dd()},useDeferredValue:function(e){return Jf="useDeferredValue",ed(),Ud(e)},useTransition:function(){return Jf="useTransition",ed(),$d()},useMutableSource:function(e,t,n){return Jf="useMutableSource",ed(),vd(e,t,n)},useOpaqueIdentifier:function(){return Jf="useOpaqueIdentifier",ed(),Jd()},unstable_isNewReconciler:x},np={readContext:function(e,t){return ip(),ic(e,t)},useCallback:function(e,t){return Jf="useCallback",ap(),Zf(),Id(e,t)},useContext:function(e,t){return Jf="useContext",ap(),Zf(),ic(e,t)},useEffect:function(e,t){return Jf="useEffect",ap(),Zf(),Cd(e,t)},useImperativeHandle:function(e,t,n){return Jf="useImperativeHandle",ap(),Zf(),Pd(e,t,n)},useLayoutEffect:function(e,t){return Jf="useLayoutEffect",ap(),Zf(),Td(e,t)},useMemo:function(e,t){Jf="useMemo",ap(),Zf();var n=Wf.current;Wf.current=np;try{return Ld(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Jf="useReducer",ap(),Zf();var r=Wf.current;Wf.current=np;try{return cd(e,t,n)}finally{Wf.current=r}},useRef:function(e){return Jf="useRef",ap(),Zf(),kd(e)},useState:function(e){Jf="useState",ap(),Zf();var t=Wf.current;Wf.current=np;try{return yd(e)}finally{Wf.current=t}},useDebugValue:function(e,t){Jf="useDebugValue",ap(),Zf()},useDeferredValue:function(e){return Jf="useDeferredValue",ap(),Zf(),jd(e)},useTransition:function(){return Jf="useTransition",ap(),Zf(),Bd()},useMutableSource:function(e,t,n){return Jf="useMutableSource",ap(),Zf(),md(e,t,n)},useOpaqueIdentifier:function(){return Jf="useOpaqueIdentifier",ap(),Zf(),Qd()},unstable_isNewReconciler:x},rp={readContext:function(e,t){return ip(),ic(e,t)},useCallback:function(e,t){return Jf="useCallback",ap(),ed(),zd(e,t)},useContext:function(e,t){return Jf="useContext",ap(),ed(),ic(e,t)},useEffect:function(e,t){return Jf="useEffect",ap(),ed(),_d(e,t)},useImperativeHandle:function(e,t,n){return Jf="useImperativeHandle",ap(),ed(),Nd(e,t,n)},useLayoutEffect:function(e,t){return Jf="useLayoutEffect",ap(),ed(),Rd(e,t)},useMemo:function(e,t){Jf="useMemo",ap(),ed();var n=Wf.current;Wf.current=rp;try{return Ad(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Jf="useReducer",ap(),ed();var r=Wf.current;Wf.current=rp;try{return fd(e)}finally{Wf.current=r}},useRef:function(e){return Jf="useRef",ap(),ed(),Sd()},useState:function(e){Jf="useState",ap(),ed();var t=Wf.current;Wf.current=rp;try{return gd()}finally{Wf.current=t}},useDebugValue:function(e,t){return Jf="useDebugValue",ap(),ed(),Dd()},useDeferredValue:function(e){return Jf="useDeferredValue",ap(),ed(),Fd(e)},useTransition:function(){return Jf="useTransition",ap(),ed(),Vd()},useMutableSource:function(e,t,n){return Jf="useMutableSource",ap(),ed(),vd(e,t,n)},useOpaqueIdentifier:function(){return Jf="useOpaqueIdentifier",ap(),ed(),Yd()},unstable_isNewReconciler:x},op={readContext:function(e,t){return ip(),ic(e,t)},useCallback:function(e,t){return Jf="useCallback",ap(),ed(),zd(e,t)},useContext:function(e,t){return Jf="useContext",ap(),ed(),ic(e,t)},useEffect:function(e,t){return Jf="useEffect",ap(),ed(),_d(e,t)},useImperativeHandle:function(e,t,n){return Jf="useImperativeHandle",ap(),ed(),Nd(e,t,n)},useLayoutEffect:function(e,t){return Jf="useLayoutEffect",ap(),ed(),Rd(e,t)},useMemo:function(e,t){Jf="useMemo",ap(),ed();var n=Wf.current;Wf.current=rp;try{return Ad(e,t)}finally{Wf.current=n}},useReducer:function(e,t,n){Jf="useReducer",ap(),ed();var r=Wf.current;Wf.current=rp;try{return dd(e)}finally{Wf.current=r}},useRef:function(e){return Jf="useRef",ap(),ed(),Sd()},useState:function(e){Jf="useState",ap(),ed();var t=Wf.current;Wf.current=rp;try{return bd()}finally{Wf.current=t}},useDebugValue:function(e,t){return Jf="useDebugValue",ap(),ed(),Dd()},useDeferredValue:function(e){return Jf="useDeferredValue",ap(),ed(),Ud(e)},useTransition:function(){return Jf="useTransition",ap(),ed(),$d()},useMutableSource:function(e,t,n){return Jf="useMutableSource",ap(),ed(),vd(e,t,n)},useOpaqueIdentifier:function(){return Jf="useOpaqueIdentifier",ap(),ed(),Jd()},unstable_isNewReconciler:x};var lp=r.unstable_now,up=0,sp=-1;function cp(){return up}function fp(){up=lp()}function dp(e){sp=lp(),e.actualStartTime<0&&(e.actualStartTime=lp())}function pp(e){sp=-1}function hp(e,t){if(sp>=0){var n=lp()-sp;e.actualDuration+=n,t&&(e.selfBaseDuration=n),sp=-1}}function mp(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}var vp,yp,gp,bp,wp,kp,Sp,xp,Ep=i.ReactCurrentOwner,Cp=!1;function _p(e,t,n,r){t.child=null===e?ef(t,null,n,r):Zc(t,e.child,n,r)}function Tp(e,t,n,r,o){if(t.type!==t.elementType){var i=n.propTypes;i&&_u(i,r,"prop",Be(n))}var a,l=n.render,u=t.ref;if(oc(t,o),Ep.current=t,Ke(!0),a=od(e,t,l,r,u,o),1&t.mode){Re();try{a=od(e,t,l,r,u,o)}finally{Oe()}}return Ke(!1),null===e||Cp?(t.flags|=1,_p(e,t,a,o),t.child):(id(e,t,o),lh(e,t,o))}function Rp(e,t,n,r,o,i){if(null===e){var a=n.type;if(function(e){return"function"==typeof e&&!fy(e)&&void 0===e.defaultProps}(a)&&null===n.compare&&void 0===n.defaultProps){var l;return l=Yv(a),t.tag=v,t.type=l,Fp(t,a),Op(e,t,l,r,o,i)}var u=a.propTypes;u&&_u(u,r,"prop",Be(a));var s=hy(n.type,null,r,t,t.mode,i);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(!zo(o,i)){var p=d.memoizedProps,h=n.compare;if((h=null!==h?h:ma)(p,r)&&e.ref===t.ref)return lh(e,t,i)}t.flags|=1;var m=dy(d,r);return m.ref=t.ref,m.return=t,t.child=m,m}function Op(e,t,n,r,o,i){if(t.type!==t.elementType){var a=t.elementType;if(a.$$typeof===se){var l=a,u=l._payload,s=l._init;try{a=s(u)}catch(e){a=null}var c=a&&a.propTypes;c&&_u(c,r,"prop",Be(a))}}if(null!==e&&(ma(e.memoizedProps,r)&&e.ref===t.ref&&t.type===e.type)){if(Cp=!1,!zo(i,o))return t.lanes=e.lanes,lh(e,t,i);0!=(e.flags&br)&&(Cp=!0)}return Dp(e,t,n,r,i)}function Pp(e,t,n){var r,o=t.pendingProps,i=o.children,a=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(!zo(n,xo)){var u;if(null!==a)u=Ao(a.baseLanes,n);else u=n;jv(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!==a?a.baseLanes:n)}else null!==a?(r=Ao(a.baseLanes,n),t.memoizedState=null):r=n,Jm(t,r);return _p(e,t,i,n),t.child}vp={},yp={},gp={},bp={},wp={},kp=!1,Sp={},xp={};var Np=Pp;function Mp(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=dr)}function Dp(e,t,n,r,o){if(t.type!==t.elementType){var i=n.propTypes;i&&_u(i,r,"prop",Be(n))}var a,l;if(a=Uu(t,ju(0,n,!0)),oc(t,o),Ep.current=t,Ke(!0),l=od(e,t,n,r,a,o),1&t.mode){Re();try{l=od(e,t,n,r,a,o)}finally{Oe()}}return Ke(!1),null===e||Cp?(t.flags|=1,_p(e,t,l,o),t.child):(id(e,t,o),lh(e,t,o))}function Ip(e,t,n,r,o){if(t.type!==t.elementType){var i=n.propTypes;i&&_u(i,r,"prop",Be(n))}var a,l;Bu(n)?(a=!0,Qu(t)):a=!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,i=e.memoizedProps;o.props=i;var a=o.context,l=t.contextType,u=Iu;u="object"==typeof l&&null!==l?ic(l):Uu(e,ju(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||i===n&&a===u||Hc(e,o,n,u),gc();var f=e.memoizedState,d=o.state=f;if(vc(e,n,o,r),d=e.memoizedState,i===n&&f===d&&!Wu()&&!bc())return"function"==typeof o.componentDidMount&&(e.flags|=4),!1;"function"==typeof s&&(zc(e,t,s,n),d=e.memoizedState);var p=bc()||Bc(e,t,i,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 i=t.stateNode;fc(e,t);var a=t.memoizedProps,l=t.type===t.elementType?a:$s(t.type,a);i.props=l;var u=t.pendingProps,s=i.context,c=n.contextType,f=Iu;f="object"==typeof c&&null!==c?ic(c):Uu(t,ju(0,n,!0));var d=n.getDerivedStateFromProps,p="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate;p||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||a===u&&s===f||Hc(t,i,r,f),gc();var h=t.memoizedState,m=i.state=h;if(vc(t,r,i,o),m=t.memoizedState,a===u&&h===m&&!Wu()&&!bc())return"function"==typeof i.componentDidUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof i.getSnapshotBeforeUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=pr)),!1;"function"==typeof d&&(zc(t,n,d,r),m=t.memoizedState);var v=bc()||Bc(t,n,l,r,h,m,f);return v?(p||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,f),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,f)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=pr)):("function"==typeof i.componentDidUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof i.getSnapshotBeforeUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=pr)),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=f,v}(e,t,n,r,o);var s=zp(e,t,n,l,a,o),c=t.stateNode;return l&&c.props!==r&&(kp||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"),kp=!0),s}function zp(e,t,n,r,o,i){Mp(e,t);var a=0!=(t.flags&fr);if(!r&&!a)return o&&Yu(t,n,!1),lh(e,t,i);var l,u=t.stateNode;if(Ep.current=t,a&&"function"!=typeof n.getDerivedStateFromError)l=null,pp();else{if(Ke(!0),l=u.render(),1&t.mode){Re();try{u.render()}finally{Oe()}}Ke(!1)}return t.flags|=1,null!==e&&a?function(e,t,n,r){t.child=Zc(t,e.child,null,r),t.child=Zc(t,null,n,r)}(e,t,l,i):_p(e,t,l,i),t.memoizedState=u.state,o&&Yu(t,n,!0),t.child}function Lp(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 Ap(e,t,n){Lp(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,i=t.memoizedState,a=null!==i?i.element:null;fc(e,t),vc(t,o,null,n);var l=t.memoizedState.element;if(l===a)return Df(),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){jf(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|vr,h=h.sibling}else _p(e,t,l,n),Df();return t.child}function jp(e,t,n,r,o){null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2);var i=t.pendingProps,a=n,l=a._payload,u=(0,a._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===ie)return d;if(t===ue)return m}return 2}(u),c=$s(u,i);switch(s){case 0:return Fp(t,u),t.type=u=Yv(u),Dp(null,t,u,c,o);case 1:return t.type=u=Jv(u),Ip(null,t,u,c,o);case d:return t.type=u=Kv(u),Tp(null,t,u,c,o);case m:if(t.type!==t.elementType){var f=u.propTypes;f&&_u(f,c,"prop",Be(u))}return Rp(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 Fp(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||"",i=e._debugSource;i&&(o=i.fileName+":"+i.lineNumber),wp[o]||(wp[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 a=Be(t)||"Unknown";bp[a]||(u("%s: Function components do not support getDerivedStateFromProps.",a),bp[a]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var l=Be(t)||"Unknown";gp[l]||(u("%s: Function components do not support contextType.",l),gp[l]=!0)}}var Up={dehydrated:null,retryLane:0};function Wp(e){return{baseLanes:e}}function Bp(e,t){return{baseLanes:Ao(e.baseLanes,t)}}function Vp(e,t){return jo(e.childLanes,t)}function $p(e,t,n){var r=t.pendingProps;Py(t)&&(t.flags|=fr);var o=hf.current,i=!1;if(0!=(t.flags&fr)||function(e,t,n,r){return(null===t||null!==t.memoizedState)&&mf(e,2)}(o,e)?(i=!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 a=r.children,l=r.fallback;if(i){var u=Hp(t,a,l,n);return t.child.memoizedState=Wp(n),t.memoizedState=Up,u}if("number"==typeof r.unstable_expectedLoadTime){var s=Hp(t,a,l,n);return t.child.memoizedState=Wp(n),t.memoizedState=Up,t.lanes=go,jv(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,a,n)}if(null!==e.memoizedState){if(i){var c=r.fallback,f=Yp(e,t,r.children,c,n),d=t.child,p=e.child.memoizedState;return d.memoizedState=null===p?Wp(n):Bp(p,n),d.childLanes=Vp(e,n),t.memoizedState=Up,f}var h=Qp(e,t,r.children,n);return t.memoizedState=null,h}if(i){var m=r.fallback,v=Yp(e,t,r.children,m,n),y=t.child,g=e.child.memoizedState;return y.memoizedState=null===g?Wp(n):Bp(g,n),y.childLanes=Vp(e,n),t.memoizedState=Up,v}var b=Qp(e,t,r.children,n);return t.memoizedState=null,b}function Hp(e,t,n,r){var o,i,a=e.mode,l=e.child,u={mode:"hidden",children:t};return 0==(2&a)&&null!==l?((o=l).childLanes=0,o.pendingProps=u,8&e.mode&&(o.actualDuration=0,o.actualStartTime=-1,o.selfBaseDuration=0,o.treeBaseDuration=0),i=vy(n,a,r,null)):(o=yy(u,a,0,null),i=vy(n,a,r,null)),o.return=e,i.return=e,o.sibling=i,e.child=o,i}function qp(e,t){return dy(e,t)}function Qp(e,t,n,r){var o=e.child,i=o.sibling,a=qp(o,{mode:"visible",children:n});return 0==(2&t.mode)&&(a.lanes=r),a.return=t,a.sibling=null,null!==i&&(i.nextEffect=null,i.flags=8,t.firstEffect=t.lastEffect=i),t.child=a,a}function Yp(e,t,n,r,o){var i,a,l=t.mode,u=e.child,s=u.sibling,c={mode:"hidden",children:n};if(0==(2&l)&&t.child!==u){(i=t.child).childLanes=0,i.pendingProps=c,8&t.mode&&(i.actualDuration=0,i.actualStartTime=-1,i.selfBaseDuration=u.selfBaseDuration,i.treeBaseDuration=u.treeBaseDuration);var f=i.lastEffect;null!==f?(t.firstEffect=i.firstEffect,t.lastEffect=f,f.nextEffect=null):t.firstEffect=t.lastEffect=null}else i=qp(u,c);return null!==s?a=dy(s,r):(a=vy(r,l,o,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,a}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,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function Zp(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail,a=r.children;!function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!Sp[e])if(Sp[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||xp[e]||("collapsed"!==e&&"hidden"!==e?(xp[e]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):"forwards"!==t&&"backwards"!==t&&(xp[e]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}(i,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 i=o.next(),a=0;!i.done;i=o.next()){if(!Xp(i.value,a))return;a++}}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)}}(a,o),_p(e,t,a,n);var l=hf.current;mf(l,2)?(l=yf(l,2),t.flags|=fr):(null!==e&&0!=(e.flags&fr)&&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,i,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,i,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,i=t.memoizedProps,a=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,a),null!==i){var s=function(e,t,n){if(pa(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,a,i.value);if(0===s){if(i.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 i=void 0,a=o.dependencies;if(null!==a){i=o.child;for(var l=a.firstContext;null!==l;){if(l.context===t&&0!=(l.observedBits&n)){if(1===o.tag){var u=dc(Eo,Do(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),a.lanes=Ao(a.lanes,r);break}l=l.next}}else i=o.tag===f&&o.type===e.type?null:o.child;if(null!==i)i.return=o;else for(i=o;null!==i;){if(i===e){i=null;break}var c=i.sibling;if(null!==c){c.return=i.return,i=c;break}i=i.return}o=i}}(t,r,s,n)}return _p(e,t,o.children,n),t.child}var nh,rh,oh,ih=!1;function ah(){Cp=!0}function lh(e,t,n){return null!==e&&(t.dependencies=e.dependencies),pp(),rv(t.lanes),zo(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 i=r.lastEffect;return null!==i?(i.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)Cp=!0;else{if(!zo(n,r)){switch(Cp=!1,t.tag){case 3:Lp(t),Df();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:zo(n,t.childLanes)&&(t.flags|=4);var o=t.stateNode;o.effectDuration=0,o.passiveEffectDuration=0;break;case h:if(null!==t.memoizedState){if(zo(n,t.child.childLanes))return $p(e,t,n);gf(t,vf(hf.current));var i=lh(e,t,n);return null!==i?i.sibling:null}gf(t,vf(hf.current));break;case g:var a=0!=(e.flags&fr),l=zo(n,t.childLanes);if(a){if(l)return Zp(e,t,n);t.flags|=fr}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,Pp(e,t,n)}return lh(e,t,n)}Cp=0!=(e.flags&br)}else Cp=!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,i,a=t.pendingProps;if(o=Uu(t,ju(0,n,!1)),oc(t,r),n.prototype&&"function"==typeof n.prototype.render){var l=Be(n)||"Unknown";vp[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),vp[l]=!0)}if(1&t.mode&&Ds.recordLegacyContextWarning(t,null),Ke(!0),Ep.current=t,i=od(null,t,n,a,o,r),Ke(!1),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var s=Be(n)||"Unknown";yp[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),yp[s]=!0)}if("object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var c=Be(n)||"Unknown";yp[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),yp[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!==i.state&&void 0!==i.state?i.state:null,cc(t);var d=n.getDerivedStateFromProps;return"function"==typeof d&&zc(t,n,d,a),Vc(t,i),qc(t,n,a,r),zp(null,t,n,!0,f,r)}if(t.tag=0,1&t.mode){Re();try{i=od(null,t,n,a,o,r)}finally{Oe()}}return _p(null,t,i,r),Fp(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 Dp(e,t,c,t.elementType===c?x:$s(c,x),n);case 1:var E=t.type,C=t.pendingProps;return Ip(e,t,E,t.elementType===E?C:$s(E,C),n);case 3:return Ap(e,t,n);case 5:return function(e,t,n){df(t),null===e&&Rf(t);var r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children;return Hl(r,o)?a=null:null!==i&&Hl(r,i)&&(t.flags|=16),Mp(e,t),_p(e,t,a,n),t.child}(e,t,n);case 6:return function(e,t){return null===e&&Rf(t),null}(e,t);case h:return $p(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):_p(e,t,r,n),t.child}(e,t,n);case d:var _=t.type,T=t.pendingProps;return Tp(e,t,_,t.elementType===_?T:$s(_,T),n);case 7:return function(e,t,n){return _p(e,t,t.pendingProps,n),t.child}(e,t,n);case 8:return function(e,t,n){return _p(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,_p(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&&(ih||(ih=!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,i=o.children;"function"!=typeof i&&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 a,l=ic(r,o.unstable_observedBits);return Ep.current=t,Ke(!0),a=i(l),Ke(!1),t.flags|=1,_p(e,t,a,n),t.child}(e,t,n);case m:var R=t.type,O=$s(R,t.pendingProps);if(t.type!==t.elementType){var P=R.propTypes;P&&_u(P,O,"prop",Be(R))}return Rp(e,t,R,O=$s(R.type,O),r,n);case v:return Op(e,t,t.type,t.pendingProps,r,n);case y:var N=t.type,M=t.pendingProps;return function(e,t,n,r,o){var i;return null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Bu(n)?(i=!0,Qu(t)):i=!1,oc(t,o),$c(t,n,r),qc(t,n,r,o),zp(null,t,n,!0,i,o)}(e,t,N,t.elementType===N?M:$s(N,M),n);case g:return Zp(e,t,n);case b:case 21:case w:break;case k:return Pp(e,t,n);case S:return Np(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|=dr}function fh(e,t){if(!If())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,i=null;null!==o;)null!==o.alternate&&(i=o),o=o.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function dh(e,t,n){var r,o,i,a=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|=pr);return null;case 5:pf(t);var u=uf(),s=t.type;if(null!==e&&null!=t.stateNode)rh(e,t,s,a),e.ref!==t.ref&&ch(t);else{if(!a){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,i=iu((r=t).stateNode,r.type,r.memoizedProps,0,o,r),r.updateQueue=i,null!==i&&sh(t);else{var x=$l(s,a,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,a)&&sh(t)}null!==t.ref&&ch(t)}return null;case 6:var E=a;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)?Of(t)&&sh(t):t.stateNode=ql(E,_,T,t)}return null;case h:bf(t);var R=t.memoizedState;if(0!=(t.flags&fr))return t.lanes=n,0!=(8&t.mode)&&mp(t),t;var O=null!==R,P=!1;if(null===e)void 0!==t.memoizedProps.fallback&&Mf(t);else P=null!==e.memoizedState;if(O&&!P)if(0!=(2&t.mode))null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||mf(hf.current,1)?0===im&&(im=3):function(){0!==im&&3!==im||(im=4);null!==em&&(Po(um)||Po(sm))&&$m(em,nm)}();return(O||P)&&(t.flags|=4),null;case 4:return cf(t),null===e&&Va(t.stateNode.containerInfo),null;case f:return nc(t),null;case y:return Bu(t.type)&&Vu(t),null;case g:bf(t);var N=t.memoizedState;if(null===N)return null;var M=0!=(t.flags&fr),D=N.rendering;if(null===D)if(M)fh(N,!1);else{if(!(0===im&&(null===e||0==(e.flags&fr))))for(var I=t.child;null!==I;){var z=kf(I);if(null!==z){M=!0,t.flags|=fr,fh(N,!1);var L=z.updateQueue;return null!==L&&(t.updateQueue=L,t.flags|=4),null===N.lastEffect&&(t.firstEffect=null),t.lastEffect=N.lastEffect,tf(t,n),gf(t,yf(hf.current,2)),t.child}I=I.sibling}null!==N.tail&&xs()>mm()&&(t.flags|=fr,M=!0,fh(N,!1),t.lanes=go,jv(go))}else{if(!M){var A=kf(D);if(null!==A){t.flags|=fr,M=!0;var j=A.updateQueue;if(null!==j&&(t.updateQueue=j,t.flags|=4),fh(N,!0),null===N.tail&&"hidden"===N.tailMode&&!D.alternate&&!If()){var F=t.lastEffect=N.lastEffect;return null!==F&&(F.nextEffect=null),null}}else 2*xs()-N.renderingStartTime>mm()&&n!==xo&&(t.flags|=fr,M=!0,fh(N,!1),t.lanes=go,jv(go))}if(N.isBackwards)D.sibling=t.child,t.child=D;else{var U=N.last;null!==U?U.sibling=D:t.child=D,N.last=D}}if(null!==N.tail){var W=N.tail;N.rendering=W,N.tail=W.sibling,N.lastEffect=t.lastEffect,N.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"!==a.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&gr?(e.flags=-4097&n|fr,0!=(8&e.mode)&&mp(e),e):null;case 3:cf(e),$u(e),Af();var r=e.flags;if(0!=(r&fr))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|fr,e;case 5:return pf(e),null;case h:bf(e);var o=e.flags;return o&gr?(e.flags=-4097&o|fr,0!=(8&e.mode)&&mp(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,i=null!==o?o:"";if(null!=n&&n._suppressLogging){if(1===e.tag)return;console.error(n)}var a=r?Be(r.type):null,l=a?"The above error occurred in the <"+a+"> component:":"The above error occurred in one of your React components:",u=Be(e.type),s=l+"\n"+i+"\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,i,a=t.child;null!==a;){if(5===a.tag||6===a.tag)o=e,i=a.stateNode,o.appendChild(i);else if(4===a.tag);else if(null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)return;for(;null===a.sibling;){if(null===a.return||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},rh=function(e,t,n,r,o){var i=e.memoizedProps;if(i!==r){var a=function(e,t,n,r,o,i){var a=i;if(typeof r.children!=typeof n.children&&("string"==typeof r.children||"number"==typeof r.children)){var l=""+r.children,u=Nl(a.ancestorInfo,t);Pl(null,l,u)}return xl(e,t,n,r)}(t.stateNode,n,i,r,0,ff());t.updateQueue=a,a&&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 i=t.value;r.payload=function(){return vh(e,t),o(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.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,i=t.stack;this.componentDidCatch(r,{componentStack:null!==i?i:""}),"function"!=typeof o&&(zo(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 i=Ev.bind(null,e,t,n);t.then(i,i)}}function kh(e,t,n,r,o){if(n.flags|=yr,n.firstEffect=n.lastEffect=null,null!==r&&"object"==typeof r&&"function"==typeof r.then){var i=r;if(0==(2&n.mode)){var a=n.alternate;a?(n.updateQueue=a.updateQueue,n.memoizedState=a.memoizedState,n.lanes=a.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(i),u.updateQueue=c}else s.add(i);if(0==(2&u.mode)){if(u.flags|=fr,n.flags|=br,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,i,o),u.flags|=gr,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!==im&&(im=2),r=mh(r,n);var d=t;do{switch(d.tag){case 3:var p=r;d.flags|=gr;var m=Do(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&fr)&&("function"==typeof g.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&!wv(b))){d.flags|=gr;var w=Do(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?(rr(null,t,null,null),or()&&xv(e,ir())):t.current=null)}function _h(e,t){(rr(null,t,null),or())&&xv(e,ir())}function Th(e,t){switch(t.tag){case 0:case d:case v:case w:return;case 1:if(t.flags&pr&&null!==e){var n=e.memoizedProps,r=e.memoizedState,o=t.stateNode;t.type!==t.elementType||kp||(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 i=o.getSnapshotBeforeUpdate(t.elementType===t.type?n:$s(t.type,n),r),a=Sh;void 0!==i||a.has(t.type)||(a.add(t.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Be(t.type))),o.__reactInternalSnapshotBeforeUpdate=i}return;case 3:if(t.flags&pr)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,i=o;do{if((i.tag&e)===e){var a=i.create;i.destroy=a();var l=i.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)}i=i.next}while(i!==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 i=o,a=i.next,l=i.tag;0!=(4&l)&&0!=(1&l)&&(yv(e,o),vv(e,o)),o=a}while(o!==r)}}(n);case 1:var o=n.stateNode;if(4&n.flags)if(null===t)n.type!==n.elementType||kp||(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 i=n.elementType===n.type?t.memoizedProps:$s(n.type,t.memoizedProps),a=t.memoizedState;n.type!==n.elementType||kp||(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(i,a,o.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;return void(null!==l&&(n.type!==n.elementType||kp||(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=cp();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 Oh(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 Ph(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 Nh(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 i=o.next,a=i;do{var l=a,s=l.destroy,c=l.tag;void 0!==s&&(0!=(4&c)?yv(t,a):_h(t,s)),a=a.next}while(a!==i)}}return;case 1:Ch(t);var f=t.stateNode;return void("function"==typeof f.componentWillUnmount&&function(e,t){rr(null,Eh,null,e,t),or()&&xv(e,ir())}(t,f));case 5:return void Ch(t);case 4:return void Fh(e,t);case b:case 18:case 21:return}}function Dh(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 Ih(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 zh(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(zh(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 i=function(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||zh(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,i,t):jh(e,i,t)}function Ah(e,t,n){var r=e.tag,o=5===r||6===r;if(o){var i=o?e.stateNode:e.stateNode.instance;t?function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}(n,i,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,i)}else if(4===r);else{var a=e.child;if(null!==a){Ah(a,t,n);for(var l=a.sibling;null!==l;)Ah(l,t,n),l=l.sibling}}}function jh(e,t,n){var r=e.tag,o=5===r||6===r;if(o){var i=o?e.stateNode:e.stateNode.instance;t?function(e,t,n){e.insertBefore(t,n)}(n,i,t):function(e,t){e.appendChild(t)}(n,i)}else if(4===r);else{var a=e.child;if(null!==a){jh(a,t,n);for(var l=a.sibling;null!==l;)jh(l,t,n),l=l.sibling}}}function Fh(e,t,n){for(var r,o,i,a,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)Dh(e,l),o?(i=r,a=l.stateNode,8===i.nodeType?i.parentNode.removeChild(a):i.removeChild(a)):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){Fh(e,t);var r=t.alternate;Ih(t),null!==r&&Ih(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,i=o;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&a()}i=i.next}while(i!==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,i=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&function(e,t,n,r,o,i){ku(e,o),El(e,t,n,r,o)}(n,a,i,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(),Oh(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 Oh(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=i.ReactCurrentDispatcher,Jh=i.ReactCurrentOwner,Kh=i.IsSomeRendererActing,Xh=16,Gh=32,Zh=0,em=null,tm=null,nm=0,rm=0,om=Nu(0),im=0,am=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,Om=0,Pm=null,Nm=Eo,Mm=0,Dm=0,Im=!1,zm=null,Lm=!1;function Am(){return 0!=(48&Zh)?xs():Nm!==Eo?Nm:Nm=xs()}function jm(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!==Dm&&(Dm=null!==fm?fm.pendingLanes:0),function(e,t){var n=Do(vo&~t);return 0===n&&0===(n=Do(vo&~e))&&(n=Do(vo)),n}(Mm,Dm);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 Fm(e){var t,n=e.mode;return 0==(2&n)?1:0==(4&n)?Es()===hs?1:2:(0===Mm&&(Mm=lm),0===(t=Do(yo&~Mm))&&(t=Do(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.");Om>50&&(Om=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)&&!Hd)switch(e.tag){case 0:case d:case v:var t=tm&&Be(tm.type)||"Unknown",n=t;if(!Pv.has(n))Pv.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:Nv||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Nv=!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&mr))return;var n=Be(e.type)||"ReactComponent";if(null!==Ov){if(Ov.has(n))return;Ov.add(n)}else Ov=new Set([n]);if(Im);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===im&&$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(),Os())):(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,i=e.expirationTimes,a=n;a>0;){var l=Io(a),u=1<<l,s=i[l];s===Eo?0!=(u&r)&&0==(u&o)||(i[l]=Ro(u,t)):s<=t&&(e.expiredLanes|=u),a&=~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 i,a;if(o===po)a=Hm.bind(null,e),null===bs?(bs=[a],ws=ns(us,Ps)):bs.push(a),i=ps;else if(14===o)i=Ts(hs,Hm.bind(null,e));else{i=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=i}else null!==n&&(Rs(n),e.callbackNode=null,e.callbackPriority=0)}function Vm(e){if(Nm=Eo,Mm=0,Dm=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{av();break}catch(t){Gm(e,t)}return Gs(),nv(o),ev(r),Zh=n,null!==tm?0:(em=null,nm=0,im)}(e,n);if(zo(lm,sm))Xm(e,0);else if(0!==r){if(2===r&&(Zh|=64,e.hydrate&&(e.hydrate=!1,eu(e.containerInfo)),0!==(n=Oo(e))&&(r=ov(e,n))),1===r){var o=am;throw Xm(e,0),$m(e,n),Bm(e,xs()),o}var i=e.current.alternate;e.finishedWork=i,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),No(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 i=function(e,t){for(var n=e.eventTimes,r=Eo;t>0;){var o=Io(t),i=1<<o,a=n[o];a>r&&(r=a),t&=~i}return r}(e,n),a=xs()-i,l=((u=a)<120?120:u<480?480:u<1080?1080:u<1920?1920:u<3e3?3e3:u<4320?4320:1960*Qh(u/1960))-a;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=jo(t,cm),function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var o=Io(r),i=1<<o;n[o]=Eo,r&=~i}}(e,t=jo(t,sm))}function Hm(e){if(0!=(48&Zh))throw Error("Should not already be working.");var t,n;if(mv(),e===em&&zo(e.expiredLanes,nm)?(n=ov(e,t=nm),zo(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=Oo(e))&&(n=ov(e,t))),1===n){var r=am;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(),Os())}}function Qm(e,t){var n=Zh;Zh&=-2,Zh|=8;try{return e(t)}finally{0===(Zh=n)&&(hm(),Os())}}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,Os()}}function Jm(e,t){Du(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,im=0,am=null,um=0,sm=0,cm=0,Pm=null,Ds.discardPendingWarnings()}function Gm(e,t){for(;;){var n=tm;try{if(Gs(),ad(),Ye(),Jh.current=null,null===n||null===n.return)return im=1,am=t,void(tm=null);8&n.mode&&hp(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=Xd,null===e?Xd: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{iv();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,im}function iv(){for(;null!==tm;)lv(tm)}function av(){for(;null!==tm&&!ys();)lv(tm)}function lv(e){var t,n=e.alternate;Je(e),0!=(8&e.mode)?(dp(e),t=Rv(n,e,rm),hp(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&yr)){Je(t);var o=void 0;if(0==(8&t.mode)?o=dh(n,t,rm):(dp(t),o=dh(n,t,rm),hp(t,!1)),Ye(),null!==o)return void(tm=o);if(sv(t),null!==r&&0==(r.flags&yr))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 i=ph(t);if(null!==i)return i.flags&=2047,void(tm=i);if(0!=(8&t.mode)){hp(t,!1);for(var a=t.actualDuration,l=t.child;null!==l;)a+=l.actualDuration,l=l.sibling;t.actualDuration=a}null!==r&&(r.firstEffect=r.lastEffect=null,r.flags|=yr)}var u=t.sibling;if(null!==u)return void(tm=u);tm=t=r}while(null!==t);0===im&&(im=5)}function sv(e){if(e.tag!==S&&e.tag!==k||null===e.memoizedState||zo(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,i=e.child;null!==i;)t=Ao(t,Ao(i.lanes,i.childLanes)),o&&(n+=i.actualDuration),r+=i.treeBaseDuration,i=i.sibling;if(e.tag===h&&null!==e.memoizedState){var a=e.child;null!==a&&(r-=a.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(Ds.flushLegacyContextWarning(),Ds.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,i=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,i=e.expirationTimes,a=n;a>0;){var l=Io(a),u=1<<l;r[l]=0,o[l]=Eo,i[l]=Eo,a&=~u}}(e,i),null!==_m&&!function(e){return 0!=(24&e)}(i)&&_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 a=Zh;Zh|=Gh;var l=tv(e);Jh.current=null,zm=Vl(e.containerInfo),Lm=!1,vm=o;do{if(rr(null,dv,null),or()){if(null===vm)throw Error("Should be working on an effect.");var u=ir();xv(vm,u),vm=vm.nextEffect}}while(null!==vm);zm=null,fp(),vm=o;do{if(rr(null,pv,null,e,t),or()){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,_a(Wl),Jo(Ul),Ul=null,Wl=null,e.current=n,vm=o;do{if(rr(null,hv,null,e,r),or()){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=a}else e.current=n,fp();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!==(i=e.pendingLanes)){if(null!==Pm){var p=Pm;Pm=null;for(var h=0;h<p.length;h++)Fv(e,p[h],e.memoizedInteractions)}Uv(e,i)}else bm=null;if(f||Bv(e,r),1===i?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)||Os(),null}function dv(){for(;null!==vm;){var e=vm.alternate;Lm||null===zm||(0!=(8&vm.flags)?Tr(vm,zm)&&(Lm=!0):vm.tag===h&&Vh(e,vm)&&Tr(vm,zm)&&(Lm=!0));var t=vm.flags;0!=(t&pr)&&(Je(vm),Th(e,vm),Ye()),0!=(t&hr)&&(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&dr){var r=vm.alternate;null!==r&&Nh(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 vr: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&dr&&Ph(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|=mr;var n=e.alternate;null!==n&&(n.flags|=mr),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.");Im=!0;var n=Zh;Zh|=Gh;var r=tv(e),o=Cm;Cm=[];for(var i=0;i<o.length;i+=2){var a=o[i],l=o[i+1],u=a.destroy;a.destroy=void 0,l.flags&=-8193;var s=l.alternate;if(null!==s&&(s.flags&=-8193),"function"==typeof u){if(Je(l),rr(null,u,null),or()){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),rr(null,gv,null,d),or()){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),Im=!1,Zh=n,Os(),Om=null===km?0:Om+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 i=mh(t,e);pc(n,bh(n,i,1));var a=Am(),l=Wm(n,1);if(null!==l)Uo(l,1,a),Bm(l,a),Uv(l,1);else if("function"==typeof o.componentDidCatch&&!wv(o))try{o.componentDidCatch(t,i)}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===im||3===im&&No(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=Fm(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,Ov=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(),ad(),hh(t),wy(t,r),8&t.mode&&dp(t),rr(null,uh,null,e,t,n),or())throw ir();throw o}};var Pv,Nv=!1;Pv=new Set;var Mv={current:!1};function Dv(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 Iv(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 zv=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 jv(e){null===Pm?Pm=[e]:Pm.push(e)}function Fv(e,t,n){if(n.size>0){var r=e.pendingInteractionMap,i=r.get(t);null!=i?n.forEach((function(e){i.has(e)||e.__count++,i.add(e)})):(r.set(t,new Set(n)),n.forEach((function(e){e.__count++})));var a=o.__subscriberRef.current;if(null!==a){var l=Av(e,t);a.onWorkScheduled(n,l)}}}function Uv(e,t){Fv(e,t,o.__interactionsRef.current)}function Wv(e,t){var n=new Set;if(e.pendingInteractionMap.forEach((function(e,r){zo(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 i=Av(e,t);try{r.onWorkStarted(n,i)}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 i=Av(e,t);n.onWorkStopped(e.memoizedInteractions,i)}}catch(e){Ts(hs,(function(){throw e}))}finally{var a=e.pendingInteractionMap;a.forEach((function(e,t){zo(r,t)||(a.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:ie,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,i="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case 1:"function"==typeof r&&(o=!0);break;case 0:("function"==typeof r||i===se)&&(o=!0);break;case d:(i===ie||i===se)&&(o=!0);break;case m:case v:(i===ue||i===se)&&(o=!0);break;default:return!1}if(o){var a=Hv(n);if(void 0!==a&&a===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===Iu&&(mv(),Ym((function(){Cy(t,e,null,null)})))};function ty(e,t,n){var r=e.alternate,o=e.child,i=e.sibling,a=e.tag,l=e.type,u=null;switch(a){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===a?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!==i&&ty(i,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,i=e.tag,a=e.type,l=null;switch(i){case 0:case v:case 1:l=a;break;case d:l=a.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 iy=Object.preventExtensions({});new Map([[iy,null]]),new Set([iy])}catch(e){ny=!0}var ay=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=ay++,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,i){var a=2,l=e;if("function"==typeof e)fy(e)?(a=1,l=Jv(l)):l=Yv(l);else if("string"==typeof e)a=5;else e:switch(e){case ee:return vy(n.children,o,i,t);case pe:a=8,o|=16;break;case te:a=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,i,t);case ae:return function(e,t,n,r){var o=cy(h,e,r,t);return o.type=ae,o.elementType=ae,o.lanes=n,o}(n,o,i,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,i,t);case he:return yy(n,o,i,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,i,t);case fe:default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case re:a=f;break e;case oe:a=9;break e;case ie:a=d,l=Kv(l);break e;case ue:a=m;break e;case se:a=16,l=null;break e;case ce:a=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(a,n,t,o);return v.elementType=e,v.type=l,v.lanes=i,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=Fo(0),this.expirationTimes=Fo(Eo),this.pendingLanes=0,this.suspendedLanes=0,this.pingedLanes=0,this.expiredLanes=0,this.mutableReadLanes=0,this.finishedLanes=0,this.entangledLanes=0,this.entanglements=Fo(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),i=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=i,i.stateNode=o,cc(i),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 i,a=t.current,l=Am();"undefined"!=typeof jest&&(i=a,!1===Lv&&void 0===r.unstable_flushAllWithoutAsserting&&(2&i.mode||4&i.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")),Dv(a));var s=jm(a),c=function(e){if(!e)return Iu;var t=ar(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(a,f),Um(a,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 Oy(e){var t=function(e){var t=Cr(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 Py=function(e){return!1};var Ny,My,Dy,Iy,zy,Ly,Ay,jy,Fy=function(e,t,r){var o=t[r],i=Array.isArray(e)?e.slice():n({},e);return r+1===t.length?(Array.isArray(i)?i.splice(o,1):delete i[o],i):(i[o]=Fy(e[o],t,r+1),i)},Uy=function(e,t){return Fy(e,t,0)},Wy=function(e,t,r,o){var i=t[o],a=Array.isArray(e)?e.slice():n({},e);o+1===t.length?(a[r[o]]=a[i],Array.isArray(a)?a.splice(i,1):delete a[i]):a[i]=Wy(e[i],t,r,o+1);return a},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 a("copyWithRename() expects paths to be the same except for the deepest key");return Wy(e,t,n,0)}a("copyWithRename() expects paths of the same length")},Vy=function(e,t,r,o){if(r>=t.length)return o;var i=t[r],a=Array.isArray(e)?e.slice():n({},e);return a[i]=Vy(e[i],t,r+1,o),a},$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=_r(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,i=function(e,t,n,r){return Sy(e,t,n)}(e,t,r);if(function(e,t){t[du]=e}(i.current,e),e.nodeType,Va(e.nodeType===Vt?e.parentNode:e),o)for(var a=0;a<o.length;a++){xy(i,o[a])}return i}(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))}Ny=function(e,t,r,o){var i=Hy(e,t);if(null!==i){var a=$y(i.memoizedState,r,o);i.memoizedState=a,i.baseState=a,e.memoizedProps=n({},e.memoizedProps),Um(e,1,Eo)}},My=function(e,t,r){var o=Hy(e,t);if(null!==o){var i=Uy(o.memoizedState,r);o.memoizedState=i,o.baseState=i,e.memoizedProps=n({},e.memoizedProps),Um(e,1,Eo)}},Dy=function(e,t,r,o){var i=Hy(e,t);if(null!==i){var a=By(i.memoizedState,r,o);i.memoizedState=a,i.baseState=a,e.memoizedProps=n({},e.memoizedProps),Um(e,1,Eo)}},Iy=function(e,t,n){e.pendingProps=$y(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),Um(e,1,Eo)},zy=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)},jy=function(e){Py=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=Oy(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=i.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,a("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 i,a=n._reactRootContainer;if(a){if(i=a._internalRoot,"function"==typeof o){var l=o;o=function(){var e=_y(i);l.call(e)}}Cy(t,i,e,o)}else{if(a=n._reactRootContainer=tg(n,r),i=a._internalRoot,"function"==typeof o){var s=o;o=function(){var e=_y(i);s.call(e)}}Qm((function(){Cy(t,i,e,o)}))}return _y(i)}Xy=function(e){if(e._reactRootContainer&&8!==e.nodeType){var t=Oy(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.")},lr=function(e){e.tag===h&&(Um(e,4,Am()),Ry(e,4))},function(e){ur=e}((function(e){if(e.tag===h){var t=Am(),n=bo;Um(e,n,t),Ry(e,n)}})),function(e){sr=e}((function(e){if(e.tag===h){var t=Am(),n=jm(e);Um(e,n,t),Ry(e,n)}})),function(e){cr=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"),Mn=function(e,t,n){switch(t){case"input":return void vt(e,n);case"textarea":return void function(e,t){Nt(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,Fn=function(e,t,n,r,o){var i=Zh;Zh|=4;try{return _s(ms,e.bind(null,t,n,r,o))}finally{0===(Zh=i)&&(hm(),Os())}},Un=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())}))}Os()}(),mv()):0!=(Zh&Xh)&&u("unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering.")},Wn=function(e,t){var n=Zh;Zh|=2;try{return e(t)}finally{0===(Zh=n)&&(hm(),Os())}};var ig={Events:[gu,bu,wu,Ln,An,mv,Mv]};if(!function(e){var t=e.findFiberByHostInstance,n=i.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:Ny,overrideHookStateDeletePath:My,overrideHookStateRenamePath:Dy,overrideProps:Iy,overridePropsDeletePath:zy,overridePropsRenamePath:Ly,setSuspenseHandler:jy,scheduleUpdate:Ay,currentDispatcherRef:n,findHostInstanceByFiber:qy,findFiberByHostInstance:t||Qy,findHostInstancesForRefresh:ry,scheduleRefresh:Zv,scheduleRoot:ey,setRefreshHandler:Qv,getCurrentFiber:Yy})}({findFiberByHostInstance:yu,bundleType:1,version:Ns,rendererPackageName:"react-dom"})&&O&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var ag=window.location.protocol;/^(https?|file):$/.test(ag)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+("file:"===ag?"\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=ig,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=ar(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=_r(n);if(null===r)return null;if(1&r.mode){var o=Be(n.type)||"Component";if(!sy[o]){sy[o]=!0;var i=$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{i?Je(i):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,a('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=Ns}()})),Xp=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=Hp):e.exports=Kp}));const Gp=({renderers:e})=>c.createElement(c.Fragment,null,Array.from(e).map((([e,t])=>Xp.createPortal(t.reactElement,t.element,e))));class Zp 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(Gp,{renderers:this.state.renderers}))}}const eh=c.memo(Zp);e.BubbleMenu=e=>{const t=c.useRef(null);return c.useEffect((()=>{const{editor:n,tippyOptions:r}=e;return n.registerPlugin(Nr({editor:n,element:t.current,tippyOptions:r})),()=>{n.unregisterPlugin(Pr)}}),[]),c.createElement("div",{ref:t,className:e.className,style:{visibility:"hidden"}},e.children)},e.Editor=Mr,e.EditorContent=eh,e.FloatingMenu=e=>{const t=c.useRef(null);return c.useEffect((()=>{const{editor:n,tippyOptions:r}=e;return n.registerPlugin(zr({editor:n,element:t.current,tippyOptions:r})),()=>{n.unregisterPlugin(Ir)}}),[]),c.createElement("div",{ref:t,className:e.className,style:{visibility:"hidden"}},e.children)},e.NodeViewContent=e=>{const t=e.as||"div";return c.createElement(t,{className:e.className,"data-node-view-content":"",style:{whiteSpace:"pre-wrap"}})},e.NodeViewWrapper=e=>{const{onDragStart:t}=c.useContext(Ar),n=e.as||"div";return c.createElement(n,{className:e.className,"data-node-view-wrapper":"",onDragStart:t,style:{whiteSpace:"normal"}},e.children)},e.PureEditorContent=Zp,e.ReactNodeViewRenderer=function(e,t){return n=>n.editor.contentComponent?new jr(e,n,t):{}},e.ReactRenderer=Lr,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 Mr(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