@tolgee/web 4.9.3-rc.d287ae9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +31 -0
- package/dist/tolgee-backend-fetch.cjs.min.js +2 -0
- package/dist/tolgee-backend-fetch.cjs.min.js.map +1 -0
- package/dist/tolgee-backend-fetch.esm.min.mjs +2 -0
- package/dist/tolgee-backend-fetch.esm.min.mjs.map +1 -0
- package/dist/tolgee-backend-fetch.umd.min.js +2 -0
- package/dist/tolgee-backend-fetch.umd.min.js.map +1 -0
- package/dist/tolgee-context-ui.cjs.min.js +143 -0
- package/dist/tolgee-context-ui.cjs.min.js.map +1 -0
- package/dist/tolgee-context-ui.esm.min.mjs +143 -0
- package/dist/tolgee-context-ui.esm.min.mjs.map +1 -0
- package/dist/tolgee-context-ui.umd.min.js +143 -0
- package/dist/tolgee-context-ui.umd.min.js.map +1 -0
- package/dist/tolgee-in-context-tools.cjs.min.js +143 -0
- package/dist/tolgee-in-context-tools.cjs.min.js.map +1 -0
- package/dist/tolgee-in-context-tools.esm.min.mjs +143 -0
- package/dist/tolgee-in-context-tools.esm.min.mjs.map +1 -0
- package/dist/tolgee-in-context-tools.umd.min.js +143 -0
- package/dist/tolgee-in-context-tools.umd.min.js.map +1 -0
- package/dist/tolgee-invisible-observer.cjs.min.js +2 -0
- package/dist/tolgee-invisible-observer.cjs.min.js.map +1 -0
- package/dist/tolgee-invisible-observer.esm.min.mjs +2 -0
- package/dist/tolgee-invisible-observer.esm.min.mjs.map +1 -0
- package/dist/tolgee-invisible-observer.umd.min.js +2 -0
- package/dist/tolgee-invisible-observer.umd.min.js.map +1 -0
- package/dist/tolgee-language-detector.cjs.min.js +2 -0
- package/dist/tolgee-language-detector.cjs.min.js.map +1 -0
- package/dist/tolgee-language-detector.esm.min.mjs +2 -0
- package/dist/tolgee-language-detector.esm.min.mjs.map +1 -0
- package/dist/tolgee-language-detector.umd.min.js +2 -0
- package/dist/tolgee-language-detector.umd.min.js.map +1 -0
- package/dist/tolgee-language-storage.cjs.min.js +2 -0
- package/dist/tolgee-language-storage.cjs.min.js.map +1 -0
- package/dist/tolgee-language-storage.esm.min.mjs +2 -0
- package/dist/tolgee-language-storage.esm.min.mjs.map +1 -0
- package/dist/tolgee-language-storage.umd.min.js +2 -0
- package/dist/tolgee-language-storage.umd.min.js.map +1 -0
- package/dist/tolgee-text-observer.cjs.min.js +2 -0
- package/dist/tolgee-text-observer.cjs.min.js.map +1 -0
- package/dist/tolgee-text-observer.esm.min.mjs +2 -0
- package/dist/tolgee-text-observer.esm.min.mjs.map +1 -0
- package/dist/tolgee-text-observer.umd.min.js +2 -0
- package/dist/tolgee-text-observer.umd.min.js.map +1 -0
- package/dist/tolgee-web-tolgee.cjs.min.js +2 -0
- package/dist/tolgee-web-tolgee.cjs.min.js.map +1 -0
- package/dist/tolgee-web-tolgee.esm.min.mjs +2 -0
- package/dist/tolgee-web-tolgee.esm.min.mjs.map +1 -0
- package/dist/tolgee-web-tolgee.umd.min.js +2 -0
- package/dist/tolgee-web-tolgee.umd.min.js.map +1 -0
- package/dist/tolgee-web.cjs.js +26921 -0
- package/dist/tolgee-web.cjs.js.map +1 -0
- package/dist/tolgee-web.cjs.min.js +143 -0
- package/dist/tolgee-web.cjs.min.js.map +1 -0
- package/dist/tolgee-web.esm.min.mjs +143 -0
- package/dist/tolgee-web.esm.min.mjs.map +1 -0
- package/dist/tolgee-web.esm.mjs +26899 -0
- package/dist/tolgee-web.esm.mjs.map +1 -0
- package/dist/tolgee-web.umd.js +26927 -0
- package/dist/tolgee-web.umd.js.map +1 -0
- package/dist/tolgee-web.umd.min.js +143 -0
- package/dist/tolgee-web.umd.min.js.map +1 -0
- package/lib/BackendFetch.d.ts +4 -0
- package/lib/BrowserExtensionPlugin/BrowserExtensionPlugin.d.ts +8 -0
- package/lib/BrowserExtensionPlugin/constants.d.ts +3 -0
- package/lib/BrowserExtensionPlugin/loadInContextLib.d.ts +1 -0
- package/lib/ContextUi.d.ts +2 -0
- package/lib/DevBackend.d.ts +2 -0
- package/lib/DevTools.d.ts +3 -0
- package/lib/InContextTools.d.ts +2 -0
- package/lib/InvisibleObserver.d.ts +2 -0
- package/lib/LanguageDetector.d.ts +3 -0
- package/lib/LanguageStorage.d.ts +3 -0
- package/lib/TextObserver.d.ts +2 -0
- package/lib/WebTolgee.d.ts +3 -0
- package/lib/index.d.ts +4 -0
- package/lib/observers/general/DomHelper.d.ts +4 -0
- package/lib/observers/general/ElementHighlighter.d.ts +10 -0
- package/lib/observers/general/ElementMeta.d.ts +3 -0
- package/lib/observers/general/ElementRegistry.d.ts +11 -0
- package/lib/observers/general/ElementStore.d.ts +10 -0
- package/lib/observers/general/GeneralObserver.d.ts +12 -0
- package/lib/observers/general/MouseEventHandler.d.ts +13 -0
- package/lib/observers/general/NodeHandler.d.ts +6 -0
- package/lib/observers/general/helpers.d.ts +7 -0
- package/lib/observers/invisible/InvisibleWrapper.d.ts +2 -0
- package/lib/observers/invisible/ValueMemory.d.ts +5 -0
- package/lib/observers/invisible/encoderPolyfill.d.ts +8 -0
- package/lib/observers/invisible/secret.d.ts +6 -0
- package/lib/observers/text/TextWrapper.d.ts +8 -0
- package/lib/observers/text/helpers.d.ts +3 -0
- package/lib/tools/decodeApiKey.d.ts +1 -0
- package/lib/tools/extension.d.ts +28 -0
- package/lib/typedIndex.d.ts +11 -0
- package/lib/types.d.ts +28 -0
- package/lib/ui/KeyContextMenu/KeyContextMenu.d.ts +19 -0
- package/lib/ui/KeyDialog/KeyDialog.d.ts +23 -0
- package/lib/ui/KeyDialog/KeyForm.d.ts +2 -0
- package/lib/ui/KeyDialog/LanguageSelect.d.ts +2 -0
- package/lib/ui/KeyDialog/NewWindow.d.ts +2 -0
- package/lib/ui/KeyDialog/NsSelect.d.ts +9 -0
- package/lib/ui/KeyDialog/ScreenshotGallery/ExtensionPrompt.d.ts +6 -0
- package/lib/ui/KeyDialog/ScreenshotGallery/ScreenshotDetail.d.ts +8 -0
- package/lib/ui/KeyDialog/ScreenshotGallery/ScreenshotDropzone.d.ts +6 -0
- package/lib/ui/KeyDialog/ScreenshotGallery/ScreenshotGallery.d.ts +2 -0
- package/lib/ui/KeyDialog/ScreenshotGallery/ScreenshotThumbnail.d.ts +8 -0
- package/lib/ui/KeyDialog/ScreenshotGallery/utils.d.ts +3 -0
- package/lib/ui/KeyDialog/TranslationDialog.d.ts +2 -0
- package/lib/ui/KeyDialog/TranslationDialogContextProvider.d.ts +128 -0
- package/lib/ui/KeyDialog/TranslationDialogWrapper.d.ts +2 -0
- package/lib/ui/KeyDialog/TranslationFields.d.ts +2 -0
- package/lib/ui/KeyDialog/languageHelpers.d.ts +12 -0
- package/lib/ui/KeyDialog/tools.d.ts +3 -0
- package/lib/ui/ThemeProvider.d.ts +2 -0
- package/lib/ui/client/QueryProvider.d.ts +12 -0
- package/lib/ui/client/apiSchema.generated.d.ts +3283 -0
- package/lib/ui/client/client.d.ts +5 -0
- package/lib/ui/client/types.d.ts +58 -0
- package/lib/ui/client/useQueryApi.d.ts +84 -0
- package/lib/ui/common/BodyEnd.d.ts +13 -0
- package/lib/ui/common/FieldTitle.d.ts +2 -0
- package/lib/ui/common/LoadingButton.d.ts +7 -0
- package/lib/ui/constants.d.ts +5 -0
- package/lib/ui/index.d.ts +13 -0
- package/lib/ui/tools/createProvider.d.ts +5 -0
- package/lib/ui/tools/isLanguagePermitted.d.ts +1 -0
- package/lib/ui/tools/sleep.d.ts +1 -0
- package/package.json +91 -0
- package/src/BackendFetch.ts +64 -0
- package/src/BrowserExtensionPlugin/BrowserExtensionPlugin.ts +98 -0
- package/src/BrowserExtensionPlugin/constants.ts +3 -0
- package/src/BrowserExtensionPlugin/loadInContextLib.ts +32 -0
- package/src/ContextUi.ts +7 -0
- package/src/DevBackend.ts +30 -0
- package/src/DevTools.ts +9 -0
- package/src/InContextTools.ts +20 -0
- package/src/InvisibleObserver.ts +16 -0
- package/src/LanguageDetector.test.ts +19 -0
- package/src/LanguageDetector.ts +32 -0
- package/src/LanguageStorage.ts +23 -0
- package/src/TextObserver.ts +45 -0
- package/src/WebTolgee.ts +8 -0
- package/src/__test__/browser.extension.test.ts +69 -0
- package/src/__test__/observer.test.ts +13 -0
- package/src/__test__/testObserver.ts +106 -0
- package/src/__test__/testRetranslate.ts +47 -0
- package/src/index.ts +4 -0
- package/src/observers/general/DomHelper.ts +46 -0
- package/src/observers/general/ElementHighlighter.ts +72 -0
- package/src/observers/general/ElementMeta.ts +17 -0
- package/src/observers/general/ElementRegistry.ts +159 -0
- package/src/observers/general/ElementStore.ts +34 -0
- package/src/observers/general/GeneralObserver.ts +133 -0
- package/src/observers/general/MouseEventHandler.ts +198 -0
- package/src/observers/general/NodeHandler.ts +39 -0
- package/src/observers/general/helpers.ts +65 -0
- package/src/observers/invisible/InvisibleWrapper.test.ts +17 -0
- package/src/observers/invisible/InvisibleWrapper.ts +96 -0
- package/src/observers/invisible/ValueMemory.test.ts +25 -0
- package/src/observers/invisible/ValueMemory.ts +20 -0
- package/src/observers/invisible/encoderPolyfill.ts +96 -0
- package/src/observers/invisible/secret.test.ts +61 -0
- package/src/observers/invisible/secret.ts +68 -0
- package/src/observers/text/TextWrapper.ts +258 -0
- package/src/observers/text/helpers.ts +56 -0
- package/src/tools/decodeApiKey.test.ts +14 -0
- package/src/tools/decodeApiKey.ts +74 -0
- package/src/tools/extension.test.ts +159 -0
- package/src/tools/extension.ts +117 -0
- package/src/typedIndex.ts +13 -0
- package/src/types.ts +33 -0
- package/src/ui/KeyContextMenu/KeyContextMenu.tsx +106 -0
- package/src/ui/KeyDialog/KeyDialog.tsx +67 -0
- package/src/ui/KeyDialog/KeyForm.tsx +208 -0
- package/src/ui/KeyDialog/LanguageSelect.tsx +78 -0
- package/src/ui/KeyDialog/NewWindow.tsx +106 -0
- package/src/ui/KeyDialog/NsSelect.tsx +67 -0
- package/src/ui/KeyDialog/ScreenshotGallery/ExtensionPrompt.tsx +97 -0
- package/src/ui/KeyDialog/ScreenshotGallery/ScreenshotDetail.tsx +33 -0
- package/src/ui/KeyDialog/ScreenshotGallery/ScreenshotDropzone.tsx +138 -0
- package/src/ui/KeyDialog/ScreenshotGallery/ScreenshotGallery.tsx +240 -0
- package/src/ui/KeyDialog/ScreenshotGallery/ScreenshotThumbnail.tsx +113 -0
- package/src/ui/KeyDialog/ScreenshotGallery/utils.ts +17 -0
- package/src/ui/KeyDialog/TranslationDialog.tsx +14 -0
- package/src/ui/KeyDialog/TranslationDialogContextProvider.tsx +464 -0
- package/src/ui/KeyDialog/TranslationDialogWrapper.tsx +44 -0
- package/src/ui/KeyDialog/TranslationFields.tsx +113 -0
- package/src/ui/KeyDialog/languageHelpers.ts +18 -0
- package/src/ui/KeyDialog/tools.ts +30 -0
- package/src/ui/ThemeProvider.tsx +71 -0
- package/src/ui/__test__/keyContextMenu.test.ts +56 -0
- package/src/ui/client/QueryProvider.tsx +38 -0
- package/src/ui/client/apiSchema.generated.ts +3281 -0
- package/src/ui/client/client.ts +155 -0
- package/src/ui/client/types.ts +113 -0
- package/src/ui/client/useQueryApi.ts +121 -0
- package/src/ui/common/BodyEnd.tsx +44 -0
- package/src/ui/common/FieldTitle.tsx +9 -0
- package/src/ui/common/LoadingButton.tsx +45 -0
- package/src/ui/constants.ts +12 -0
- package/src/ui/index.ts +88 -0
- package/src/ui/screenshots/ScreenshotPreview.tsx +18 -0
- package/src/ui/tools/createProvider.tsx +54 -0
- package/src/ui/tools/isLanguagePermitted.ts +14 -0
- package/src/ui/tools/sleep.ts +2 -0
- package/types/index.d.ts +9 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@tolgee/web"]={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function d(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var h={exports:{}},m={},v=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;function b(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var x=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;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=b(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))g.call(n,a)&&(o[a]=n[a]);if(v){r=v(n);for(var l=0;l<r.length;l++)y.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o},w=x,k=60103,E=60106;
|
|
2
|
+
/** @license React v17.0.2
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/m.Fragment=60107,m.StrictMode=60108,m.Profiler=60114;var S=60109,C=60110,O=60112;m.Suspense=60113;var P=60115,R=60116;if("function"==typeof Symbol&&Symbol.for){var T=Symbol.for;k=T("react.element"),E=T("react.portal"),m.Fragment=T("react.fragment"),m.StrictMode=T("react.strict_mode"),m.Profiler=T("react.profiler"),S=T("react.provider"),C=T("react.context"),O=T("react.forward_ref"),m.Suspense=T("react.suspense"),P=T("react.memo"),R=T("react.lazy")}var L="function"==typeof Symbol&&Symbol.iterator;function M(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 A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N={};function _(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||A}function j(){}function I(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||A}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(M(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},j.prototype=_.prototype;var F=I.prototype=new j;F.constructor=I,w(F,_.prototype),F.isPureReactComponent=!0;var z={current:null},D=Object.prototype.hasOwnProperty,$={key:!0,ref:!0,__self:!0,__source:!0};function B(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)D.call(t,r)&&!$.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:k,type:e,key:i,ref:a,props:o,_owner:z.current}}function W(e){return"object"==typeof e&&null!==e&&e.$$typeof===k}var U=/\/+/g;function V(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 q(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case k:case E:a=!0}}if(a)return o=o(a=e),e=""===r?"."+V(a,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(U,"$&/")+"/"),q(o,t,n,"",(function(e){return e}))):null!=o&&(W(o)&&(o=function(e,t){return{$$typeof:k,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(U,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var s=r+V(i=e[l],l);a+=q(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=q(i=i.value,t,n,s=r+V(i,l++),o);else if("object"===i)throw t=""+e,Error(M(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return a}function H(e,t,n){if(null==e)return e;var r=[],o=0;return q(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function K(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 Q={current:null};function G(){var e=Q.current;if(null===e)throw Error(M(321));return e}var Y={ReactCurrentDispatcher:Q,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:z,IsSomeRendererActing:{current:!1},assign:w};m.Children={map:H,forEach:function(e,t,n){H(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return H(e,(function(){t++})),t},toArray:function(e){return H(e,(function(e){return e}))||[]},only:function(e){if(!W(e))throw Error(M(143));return e}},m.Component=_,m.PureComponent=I,m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,m.cloneElement=function(e,t,n){if(null==e)throw Error(M(267,e));var r=w({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=z.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)D.call(t,s)&&!$.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:k,type:e.type,key:o,ref:i,props:r,_owner:a}},m.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:C,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:S,_context:e},e.Consumer=e},m.createElement=B,m.createFactory=function(e){var t=B.bind(null,e);return t.type=e,t},m.createRef=function(){return{current:null}},m.forwardRef=function(e){return{$$typeof:O,render:e}},m.isValidElement=W,m.lazy=function(e){return{$$typeof:R,_payload:{_status:-1,_result:e},_init:K}},m.memo=function(e,t){return{$$typeof:P,type:e,compare:void 0===t?null:t}},m.useCallback=function(e,t){return G().useCallback(e,t)},m.useContext=function(e,t){return G().useContext(e,t)},m.useDebugValue=function(){},m.useEffect=function(e,t){return G().useEffect(e,t)},m.useImperativeHandle=function(e,t,n){return G().useImperativeHandle(e,t,n)},m.useLayoutEffect=function(e,t){return G().useLayoutEffect(e,t)},m.useMemo=function(e,t){return G().useMemo(e,t)},m.useReducer=function(e,t,n){return G().useReducer(e,t,n)},m.useRef=function(e){return G().useRef(e)},m.useState=function(e){return G().useState(e)},m.version="17.0.2",function(e){e.exports=m}(h);var X=p(h.exports),Z=t({__proto__:null,default:X},[h.exports]),J={exports:{}},ee={},te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable;function oe(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var ie=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;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=oe(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))ne.call(n,a)&&(o[a]=n[a]);if(te){r=te(n);for(var l=0;l<r.length;l++)re.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o},ae={exports:{}},le={};
|
|
10
|
+
/** @license React v0.20.2
|
|
11
|
+
* scheduler.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/
|
|
18
|
+
!function(e){var t,n,r,o;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,c=function(){if(null!==s)try{var t=e.unstable_now();s(!0,t),s=null}catch(e){throw setTimeout(c,0),e}};t=function(e){null!==s?setTimeout(t,0,e):(s=e,setTimeout(c,0))},n=function(e,t){u=setTimeout(e,t)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var f=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 f&&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 h=!1,m=null,v=-1,g=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},o=function(){},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<e?Math.floor(1e3/e):5};var b=new MessageChannel,x=b.port2;b.port1.onmessage=function(){if(null!==m){var t=e.unstable_now();y=t+g;try{m(!0,t)?x.postMessage(null):(h=!1,m=null)}catch(e){throw x.postMessage(null),e}}else h=!1},t=function(e){m=e,h||(h=!0,x.postMessage(null))},n=function(t,n){v=d((function(){t(e.unstable_now())}),n)},r=function(){p(v),v=-1}}function w(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<S(o,t)))break e;e[r]=t,e[n]=o,n=r}}function k(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,s=e[l];if(void 0!==a&&0>S(a,n))void 0!==s&&0>S(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==s&&0>S(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],O=[],P=1,R=null,T=3,L=!1,M=!1,A=!1;function N(e){for(var t=k(O);null!==t;){if(null===t.callback)E(O);else{if(!(t.startTime<=e))break;E(O),t.sortIndex=t.expirationTime,w(C,t)}t=k(O)}}function _(e){if(A=!1,N(e),!M)if(null!==k(C))M=!0,t(j);else{var r=k(O);null!==r&&n(_,r.startTime-e)}}function j(t,o){M=!1,A&&(A=!1,r()),L=!0;var i=T;try{for(N(o),R=k(C);null!==R&&(!(R.expirationTime>o)||t&&!e.unstable_shouldYield());){var a=R.callback;if("function"==typeof a){R.callback=null,T=R.priorityLevel;var l=a(R.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?R.callback=l:R===k(C)&&E(C),N(o)}else E(C);R=k(C)}if(null!==R)var s=!0;else{var u=k(O);null!==u&&n(_,u.startTime-o),s=!1}return s}finally{R=null,T=i,L=!1}}var I=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){M||L||(M=!0,t(j))},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_getFirstCallbackNode=function(){return k(C)},e.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=I,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},e.unstable_scheduleCallback=function(o,i,a){var l=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=l,o){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return o={id:P++,callback:i,priorityLevel:o,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>l?(o.sortIndex=a,w(O,o),null===k(C)&&o===k(O)&&(A?r():A=!0,n(_,a-l))):(o.sortIndex=s,w(C,o),M||L||(M=!0,t(j))),o},e.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}}(le),function(e){e.exports=le}(ae);
|
|
19
|
+
/** @license React v17.0.2
|
|
20
|
+
* react-dom.production.min.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/
|
|
27
|
+
var se=h.exports,ue=ie,ce=ae.exports;function de(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(!se)throw Error(de(227));var pe=new Set,fe={};function he(e,t){me(e,t),me(e+"Capture",t)}function me(e,t){for(fe[e]=t,e=0;e<t.length;e++)pe.add(t[e])}var ve=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ge=/^[: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]*$/,ye=Object.prototype.hasOwnProperty,be={},xe={};function we(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 ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ke[e]=new we(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ke[t]=new we(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ke[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ke[e]=new we(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){ke[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ke[e]=new we(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ke[e]=new we(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ke[e]=new we(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ke[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Ee=/[\-:]([a-z])/g;function Se(e){return e[1].toUpperCase()}function Ce(e,t,n,r){var o=ke.hasOwnProperty(t)?ke[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!!ye.call(xe,e)||!ye.call(be,e)&&(ge.test(e)?xe[e]=!0:(be[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(Ee,Se);ke[t]=new we(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(Ee,Se);ke[t]=new we(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(Ee,Se);ke[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ke[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)})),ke.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ke[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Oe=se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pe=60103,Re=60106,Te=60107,Le=60108,Me=60114,Ae=60109,Ne=60110,_e=60112,je=60113,Ie=60120,Fe=60115,ze=60116,De=60121,$e=60128,Be=60129,We=60130,Ue=60131;if("function"==typeof Symbol&&Symbol.for){var Ve=Symbol.for;Pe=Ve("react.element"),Re=Ve("react.portal"),Te=Ve("react.fragment"),Le=Ve("react.strict_mode"),Me=Ve("react.profiler"),Ae=Ve("react.provider"),Ne=Ve("react.context"),_e=Ve("react.forward_ref"),je=Ve("react.suspense"),Ie=Ve("react.suspense_list"),Fe=Ve("react.memo"),ze=Ve("react.lazy"),De=Ve("react.block"),Ve("react.scope"),$e=Ve("react.opaque.id"),Be=Ve("react.debug_trace_mode"),We=Ve("react.offscreen"),Ue=Ve("react.legacy_hidden")}var qe,He="function"==typeof Symbol&&Symbol.iterator;function Ke(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=He&&e[He]||e["@@iterator"])?e:null}function Qe(e){if(void 0===qe)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);qe=t&&t[1]||""}return"\n"+qe+e}var Ge=!1;function Ye(e,t){if(!e||Ge)return"";Ge=!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{Ge=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qe(e):""}function Xe(e){switch(e.tag){case 5:return Qe(e.type);case 16:return Qe("Lazy");case 13:return Qe("Suspense");case 19:return Qe("SuspenseList");case 0:case 2:case 15:return e=Ye(e.type,!1);case 11:return e=Ye(e.type.render,!1);case 22:return e=Ye(e.type._render,!1);case 1:return e=Ye(e.type,!0);default:return""}}function Ze(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 Te:return"Fragment";case Re:return"Portal";case Me:return"Profiler";case Le:return"StrictMode";case je:return"Suspense";case Ie:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ne:return(e.displayName||"Context")+".Consumer";case Ae:return(e._context.displayName||"Context")+".Provider";case _e:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case Fe:return Ze(e.type);case De:return Ze(e._render);case ze:t=e._payload,e=e._init;try{return Ze(e(t))}catch(e){}}return null}function Je(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function et(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function tt(e){e._valueTracker||(e._valueTracker=function(e){var t=et(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 nt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=et(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function rt(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 ot(e,t){var n=t.checked;return ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function it(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Je(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 at(e,t){null!=(t=t.checked)&&Ce(e,"checked",t,!1)}function lt(e,t){at(e,t);var n=Je(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")?ut(e,t.type,n):t.hasOwnProperty("defaultValue")&&ut(e,t.type,Je(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function st(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 ut(e,t,n){"number"===t&&rt(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ct(e,t){return e=ue({children:void 0},t),(t=function(e){var t="";return se.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function dt(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=""+Je(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 pt(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(de(91));return ue({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ft(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(de(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(de(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Je(n)}}function ht(e,t){var n=Je(t.value),r=Je(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 mt(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var vt="http://www.w3.org/1999/xhtml",gt="http://www.w3.org/2000/svg";function yt(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 bt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?yt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var xt,wt=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==gt||"innerHTML"in e)e.innerHTML=t;else{for((xt=xt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function kt(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 Et={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},St=["Webkit","ms","Moz","O"];function Ct(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Et.hasOwnProperty(e)&&Et[e]?(""+t).trim():t+"px"}function Ot(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Ct(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Et).forEach((function(e){St.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Et[t]=Et[e]}))}));var Pt=ue({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 Rt(e,t){if(t){if(Pt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(de(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(de(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(de(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(de(62))}}function Tt(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 Lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Mt=null,At=null,Nt=null;function _t(e){if(e=si(e)){if("function"!=typeof Mt)throw Error(de(280));var t=e.stateNode;t&&(t=ci(t),Mt(e.stateNode,e.type,t))}}function jt(e){At?Nt?Nt.push(e):Nt=[e]:At=e}function It(){if(At){var e=At,t=Nt;if(Nt=At=null,_t(e),t)for(e=0;e<t.length;e++)_t(t[e])}}function Ft(e,t){return e(t)}function zt(e,t,n,r,o){return e(t,n,r,o)}function Dt(){}var $t=Ft,Bt=!1,Wt=!1;function Ut(){null===At&&null===Nt||(Dt(),It())}function Vt(e,t){var n=e.stateNode;if(null===n)return null;var r=ci(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(de(231,t,typeof n));return n}var qt=!1;if(ve)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){qt=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(Pc){qt=!1}function Kt(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Qt=!1,Gt=null,Yt=!1,Xt=null,Zt={onError:function(e){Qt=!0,Gt=e}};function Jt(e,t,n,r,o,i,a,l,s){Qt=!1,Gt=null,Kt.apply(Zt,arguments)}function en(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 tn(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 nn(e){if(en(e)!==e)throw Error(de(188))}function rn(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=en(e)))throw Error(de(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 nn(o),e;if(i===r)return nn(o),t;i=i.sibling}throw Error(de(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(de(189))}}if(n.alternate!==r)throw Error(de(190))}if(3!==n.tag)throw Error(de(188));return n.stateNode.current===n?e:t}(e),!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 on(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var an,ln,sn,un,cn=!1,dn=[],pn=null,fn=null,hn=null,mn=new Map,vn=new Map,gn=[],yn="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 bn(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function xn(e,t){switch(e){case"focusin":case"focusout":pn=null;break;case"dragenter":case"dragleave":fn=null;break;case"mouseover":case"mouseout":hn=null;break;case"pointerover":case"pointerout":mn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vn.delete(t.pointerId)}}function wn(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=bn(t,n,r,o,i),null!==t&&(null!==(t=si(t))&&ln(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function kn(e){var t=li(e.target);if(null!==t){var n=en(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tn(n)))return e.blockedOn=t,void un(e.lanePriority,(function(){ce.unstable_runWithPriority(e.priority,(function(){sn(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function En(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=or(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=si(n))&&ln(t),e.blockedOn=n,!1;t.shift()}return!0}function Sn(e,t,n){En(e)&&n.delete(t)}function Cn(){for(cn=!1;0<dn.length;){var e=dn[0];if(null!==e.blockedOn){null!==(e=si(e.blockedOn))&&an(e);break}for(var t=e.targetContainers;0<t.length;){var n=or(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&dn.shift()}null!==pn&&En(pn)&&(pn=null),null!==fn&&En(fn)&&(fn=null),null!==hn&&En(hn)&&(hn=null),mn.forEach(Sn),vn.forEach(Sn)}function On(e,t){e.blockedOn===t&&(e.blockedOn=null,cn||(cn=!0,ce.unstable_scheduleCallback(ce.unstable_NormalPriority,Cn)))}function Pn(e){function t(t){return On(t,e)}if(0<dn.length){On(dn[0],e);for(var n=1;n<dn.length;n++){var r=dn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==pn&&On(pn,e),null!==fn&&On(fn,e),null!==hn&&On(hn,e),mn.forEach(t),vn.forEach(t),n=0;n<gn.length;n++)(r=gn[n]).blockedOn===e&&(r.blockedOn=null);for(;0<gn.length&&null===(n=gn[0]).blockedOn;)kn(n),null===n.blockedOn&&gn.shift()}function Rn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tn={animationend:Rn("Animation","AnimationEnd"),animationiteration:Rn("Animation","AnimationIteration"),animationstart:Rn("Animation","AnimationStart"),transitionend:Rn("Transition","TransitionEnd")},Ln={},Mn={};function An(e){if(Ln[e])return Ln[e];if(!Tn[e])return e;var t,n=Tn[e];for(t in n)if(n.hasOwnProperty(t)&&t in Mn)return Ln[e]=n[t];return e}ve&&(Mn=document.createElement("div").style,"AnimationEvent"in window||(delete Tn.animationend.animation,delete Tn.animationiteration.animation,delete Tn.animationstart.animation),"TransitionEvent"in window||delete Tn.transitionend.transition);var Nn=An("animationend"),_n=An("animationiteration"),jn=An("animationstart"),In=An("transitionend"),Fn=new Map,zn=new Map,Dn=["abort","abort",Nn,"animationEnd",_n,"animationIteration",jn,"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",In,"transitionEnd","waiting","waiting"];function $n(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)),zn.set(r,t),Fn.set(r,o),he(o,[r])}}(0,ce.unstable_now)();var Bn=8;function Wn(e){if(0!=(1&e))return Bn=15,1;if(0!=(2&e))return Bn=14,2;if(0!=(4&e))return Bn=13,4;var t=24&e;return 0!==t?(Bn=12,t):0!=(32&e)?(Bn=11,32):0!==(t=192&e)?(Bn=10,t):0!=(256&e)?(Bn=9,256):0!==(t=3584&e)?(Bn=8,t):0!=(4096&e)?(Bn=7,4096):0!==(t=4186112&e)?(Bn=6,t):0!==(t=62914560&e)?(Bn=5,t):67108864&e?(Bn=4,67108864):0!=(134217728&e)?(Bn=3,134217728):0!==(t=805306368&e)?(Bn=2,t):0!=(1073741824&e)?(Bn=1,1073741824):(Bn=8,e)}function Un(e,t){var n=e.pendingLanes;if(0===n)return Bn=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=Bn=15;else if(0!==(i=134217727&n)){var s=i&~a;0!==s?(r=Wn(s),o=Bn):0!==(l&=i)&&(r=Wn(l),o=Bn)}else 0!==(i=n&~a)?(r=Wn(i),o=Bn):0!==l&&(r=Wn(l),o=Bn);if(0===r)return 0;if(r=n&((0>(r=31-Gn(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Wn(t),o<=Bn)return t;Bn=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Gn(t)),r|=e[n],t&=~o;return r}function Vn(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function qn(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Hn(24&~t))?qn(10,t):e;case 10:return 0===(e=Hn(192&~t))?qn(8,t):e;case 8:return 0===(e=Hn(3584&~t))&&(0===(e=Hn(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Hn(805306368&~t))&&(t=268435456),t}throw Error(de(358,e))}function Hn(e){return e&-e}function Kn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qn(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Gn(t)]=n}var Gn=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Yn(e)/Xn|0)|0},Yn=Math.log,Xn=Math.LN2;var Zn=ce.unstable_UserBlockingPriority,Jn=ce.unstable_runWithPriority,er=!0;function tr(e,t,n,r){Bt||Dt();var o=rr,i=Bt;Bt=!0;try{zt(o,e,t,n,r)}finally{(Bt=i)||Ut()}}function nr(e,t,n,r){Jn(Zn,rr.bind(null,e,t,n,r))}function rr(e,t,n,r){var o;if(er)if((o=0==(4&t))&&0<dn.length&&-1<yn.indexOf(e))e=bn(null,e,t,n,r),dn.push(e);else{var i=or(e,t,n,r);if(null===i)o&&xn(e,r);else{if(o){if(-1<yn.indexOf(e))return e=bn(i,e,t,n,r),void dn.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return pn=wn(pn,e,t,n,r,o),!0;case"dragenter":return fn=wn(fn,e,t,n,r,o),!0;case"mouseover":return hn=wn(hn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return mn.set(i,wn(mn.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,vn.set(i,wn(vn.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;xn(e,r)}$o(e,t,r,null,n)}}}function or(e,t,n,r){var o=Lt(r);if(null!==(o=li(o))){var i=en(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=tn(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 $o(e,t,r,o,n),null}var ir=null,ar=null,lr=null;function sr(){if(lr)return lr;var e,t,n=ar,r=n.length,o="value"in ir?ir.value:ir.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 lr=o.slice(e,1<t?1-t:void 0)}function ur(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 cr(){return!0}function dr(){return!1}function pr(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)?cr:dr,this.isPropagationStopped=dr,this}return ue(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=cr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=cr)},persist:function(){},isPersistent:cr}),t}var fr,hr,mr,vr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gr=pr(vr),yr=ue({},vr,{view:0,detail:0}),br=pr(yr),xr=ue({},yr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ar,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!==mr&&(mr&&"mousemove"===e.type?(fr=e.screenX-mr.screenX,hr=e.screenY-mr.screenY):hr=fr=0,mr=e),fr)},movementY:function(e){return"movementY"in e?e.movementY:hr}}),wr=pr(xr),kr=pr(ue({},xr,{dataTransfer:0})),Er=pr(ue({},yr,{relatedTarget:0})),Sr=pr(ue({},vr,{animationName:0,elapsedTime:0,pseudoElement:0})),Cr=ue({},vr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Or=pr(Cr),Pr=pr(ue({},vr,{data:0})),Rr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tr={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"},Lr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Lr[e])&&!!t[e]}function Ar(){return Mr}var Nr=ue({},yr,{key:function(e){if(e.key){var t=Rr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ur(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Tr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ar,charCode:function(e){return"keypress"===e.type?ur(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ur(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_r=pr(Nr),jr=pr(ue({},xr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ir=pr(ue({},yr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ar})),Fr=pr(ue({},vr,{propertyName:0,elapsedTime:0,pseudoElement:0})),zr=ue({},xr,{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}),Dr=pr(zr),$r=[9,13,27,32],Br=ve&&"CompositionEvent"in window,Wr=null;ve&&"documentMode"in document&&(Wr=document.documentMode);var Ur=ve&&"TextEvent"in window&&!Wr,Vr=ve&&(!Br||Wr&&8<Wr&&11>=Wr),qr=String.fromCharCode(32),Hr=!1;function Kr(e,t){switch(e){case"keyup":return-1!==$r.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Gr=!1;var Yr={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 Xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Yr[e.type]:"textarea"===t}function Zr(e,t,n,r){jt(r),0<(t=Wo(t,"onChange")).length&&(n=new gr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Jr=null,eo=null;function to(e){_o(e,0)}function no(e){if(nt(ui(e)))return e}function ro(e,t){if("change"===e)return t}var oo=!1;if(ve){var io;if(ve){var ao="oninput"in document;if(!ao){var lo=document.createElement("div");lo.setAttribute("oninput","return;"),ao="function"==typeof lo.oninput}io=ao}else io=!1;oo=io&&(!document.documentMode||9<document.documentMode)}function so(){Jr&&(Jr.detachEvent("onpropertychange",uo),eo=Jr=null)}function uo(e){if("value"===e.propertyName&&no(eo)){var t=[];if(Zr(t,eo,e,Lt(e)),e=to,Bt)e(t);else{Bt=!0;try{Ft(e,t)}finally{Bt=!1,Ut()}}}}function co(e,t,n){"focusin"===e?(so(),eo=n,(Jr=t).attachEvent("onpropertychange",uo)):"focusout"===e&&so()}function po(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return no(eo)}function fo(e,t){if("click"===e)return no(t)}function ho(e,t){if("input"===e||"change"===e)return no(t)}var mo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},vo=Object.prototype.hasOwnProperty;function go(e,t){if(mo(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(!vo.call(t,n[r])||!mo(e[n[r]],t[n[r]]))return!1;return!0}function yo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bo(e,t){var n,r=yo(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=yo(r)}}function xo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?xo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function wo(){for(var e=window,t=rt();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=rt((e=t.contentWindow).document)}return t}function ko(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 Eo=ve&&"documentMode"in document&&11>=document.documentMode,So=null,Co=null,Oo=null,Po=!1;function Ro(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Po||null==So||So!==rt(r)||("selectionStart"in(r=So)&&ko(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},Oo&&go(Oo,r)||(Oo=r,0<(r=Wo(Co,"onSelect")).length&&(t=new gr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=So)))}$n("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),$n("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),$n(Dn,2);for(var To="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Lo=0;Lo<To.length;Lo++)zn.set(To[Lo],0);me("onMouseEnter",["mouseout","mouseover"]),me("onMouseLeave",["mouseout","mouseover"]),me("onPointerEnter",["pointerout","pointerover"]),me("onPointerLeave",["pointerout","pointerover"]),he("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),he("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),he("onBeforeInput",["compositionend","keypress","textInput","paste"]),he("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),he("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),he("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ao=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mo));function No(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(Jt.apply(this,arguments),Qt){if(!Qt)throw Error(de(198));var u=Gt;Qt=!1,Gt=null,Yt||(Yt=!0,Xt=u)}}(r,t,void 0,e),e.currentTarget=null}function _o(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],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;No(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;No(o,l,u),i=s}}}if(Yt)throw e=Xt,Yt=!1,Xt=null,e}function jo(e,t){var n=di(t),r=e+"__bubble";n.has(r)||(Do(t,e,2,!1),n.add(r))}var Io="_reactListening"+Math.random().toString(36).slice(2);function Fo(e){e[Io]||(e[Io]=!0,pe.forEach((function(t){Ao.has(t)||zo(t,!1,e,null),zo(t,!0,e,null)})))}function zo(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&&Ao.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=di(i),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(o|=4),Do(i,e,o,t),a.add(l))}function Do(e,t,n,r){var o=zn.get(t);switch(void 0===o?2:o){case 0:o=tr;break;case 1:o=nr;break;default:o=rr}n=o.bind(null,t,n,e),o=void 0,!qt||"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 $o(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 s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=li(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Wt)return e(t,n);Wt=!0;try{$t(e,t,n)}finally{Wt=!1,Ut()}}((function(){var r=i,o=Lt(n),a=[];e:{var l=Fn.get(e);if(void 0!==l){var s=gr,u=e;switch(e){case"keypress":if(0===ur(n))break e;case"keydown":case"keyup":s=_r;break;case"focusin":u="focus",s=Er;break;case"focusout":u="blur",s=Er;break;case"beforeblur":case"afterblur":s=Er;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=wr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=kr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ir;break;case Nn:case _n:case jn:s=Sr;break;case In:s=Fr;break;case"scroll":s=br;break;case"wheel":s=Dr;break;case"copy":case"cut":case"paste":s=Or;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=jr}var c=0!=(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Vt(h,p))&&c.push(Bo(h,m,f)))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!li(u)&&!u[ii])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?li(u):null)&&(u!==(d=en(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=wr,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=jr,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:ui(s),f=null==u?l:ui(u),(l=new c(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,li(o)===r&&((c=new c(p,h+"enter",u,n,o)).target=f,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(p=u,h=0,f=c=s;f;f=Uo(f))h++;for(f=0,m=p;m;m=Uo(m))f++;for(;0<h-f;)c=Uo(c),h--;for(;0<f-h;)p=Uo(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Uo(c),p=Uo(p)}c=null}else c=null;null!==s&&Vo(a,l,s,c,!1),null!==u&&null!==d&&Vo(a,d,u,c,!0)}if("select"===(s=(l=r?ui(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=ro;else if(Xr(l))if(oo)v=ho;else{v=po;var g=co}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=fo);switch(v&&(v=v(e,r))?Zr(a,v,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ut(l,"number",l.value)),g=r?ui(r):window,e){case"focusin":(Xr(g)||"true"===g.contentEditable)&&(So=g,Co=r,Oo=null);break;case"focusout":Oo=Co=So=null;break;case"mousedown":Po=!0;break;case"contextmenu":case"mouseup":case"dragend":Po=!1,Ro(a,n,o);break;case"selectionchange":if(Eo)break;case"keydown":case"keyup":Ro(a,n,o)}var y;if(Br)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 Gr?Kr(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Vr&&"ko"!==n.locale&&(Gr||"onCompositionStart"!==b?"onCompositionEnd"===b&&Gr&&(y=sr()):(ar="value"in(ir=o)?ir.value:ir.textContent,Gr=!0)),0<(g=Wo(r,b)).length&&(b=new Pr(b,e,null,n,o),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Qr(n))&&(b.data=y))),(y=Ur?function(e,t){switch(e){case"compositionend":return Qr(t);case"keypress":return 32!==t.which?null:(Hr=!0,qr);case"textInput":return(e=t.data)===qr&&Hr?null:e;default:return null}}(e,n):function(e,t){if(Gr)return"compositionend"===e||!Br&&Kr(e,t)?(e=sr(),lr=ar=ir=null,Gr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vr&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wo(r,"onBeforeInput")).length&&(o=new Pr("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}_o(a,t)}))}function Bo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wo(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=Vt(e,n))&&r.unshift(Bo(e,i,o)),null!=(i=Vt(e,t))&&r.push(Bo(e,i,o))),e=e.return}return r}function Uo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vo(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Vt(n,i))&&a.unshift(Bo(n,s,l)):o||null!=(s=Vt(n,i))&&a.push(Bo(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function qo(){}var Ho=null,Ko=null;function Qo(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Go(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 Yo="function"==typeof setTimeout?setTimeout:void 0,Xo="function"==typeof clearTimeout?clearTimeout:void 0;function Zo(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Jo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function ei(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 ti=0;var ni=Math.random().toString(36).slice(2),ri="__reactFiber$"+ni,oi="__reactProps$"+ni,ii="__reactContainer$"+ni,ai="__reactEvents$"+ni;function li(e){var t=e[ri];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ii]||n[ri]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ei(e);null!==e;){if(n=e[ri])return n;e=ei(e)}return t}n=(e=n).parentNode}return null}function si(e){return!(e=e[ri]||e[ii])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ui(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(de(33))}function ci(e){return e[oi]||null}function di(e){var t=e[ai];return void 0===t&&(t=e[ai]=new Set),t}var pi=[],fi=-1;function hi(e){return{current:e}}function mi(e){0>fi||(e.current=pi[fi],pi[fi]=null,fi--)}function vi(e,t){fi++,pi[fi]=e.current,e.current=t}var gi={},yi=hi(gi),bi=hi(!1),xi=gi;function wi(e,t){var n=e.type.contextTypes;if(!n)return gi;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 ki(e){return null!=(e=e.childContextTypes)}function Ei(){mi(bi),mi(yi)}function Si(e,t,n){if(yi.current!==gi)throw Error(de(168));vi(yi,t),vi(bi,n)}function Ci(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(de(108,Ze(t)||"Unknown",o));return ue({},n,r)}function Oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gi,xi=yi.current,vi(yi,e),vi(bi,bi.current),!0}function Pi(e,t,n){var r=e.stateNode;if(!r)throw Error(de(169));n?(e=Ci(e,t,xi),r.__reactInternalMemoizedMergedChildContext=e,mi(bi),mi(yi),vi(yi,e)):mi(bi),vi(bi,n)}var Ri=null,Ti=null,Li=ce.unstable_runWithPriority,Mi=ce.unstable_scheduleCallback,Ai=ce.unstable_cancelCallback,Ni=ce.unstable_shouldYield,_i=ce.unstable_requestPaint,ji=ce.unstable_now,Ii=ce.unstable_getCurrentPriorityLevel,Fi=ce.unstable_ImmediatePriority,zi=ce.unstable_UserBlockingPriority,Di=ce.unstable_NormalPriority,$i=ce.unstable_LowPriority,Bi=ce.unstable_IdlePriority,Wi={},Ui=void 0!==_i?_i:function(){},Vi=null,qi=null,Hi=!1,Ki=ji(),Qi=1e4>Ki?ji:function(){return ji()-Ki};function Gi(){switch(Ii()){case Fi:return 99;case zi:return 98;case Di:return 97;case $i:return 96;case Bi:return 95;default:throw Error(de(332))}}function Yi(e){switch(e){case 99:return Fi;case 98:return zi;case 97:return Di;case 96:return $i;case 95:return Bi;default:throw Error(de(332))}}function Xi(e,t){return e=Yi(e),Li(e,t)}function Zi(e,t,n){return e=Yi(e),Mi(e,t,n)}function Ji(){if(null!==qi){var e=qi;qi=null,Ai(e)}ea()}function ea(){if(!Hi&&null!==Vi){Hi=!0;var e=0;try{var t=Vi;Xi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Vi=null}catch(t){throw null!==Vi&&(Vi=Vi.slice(e+1)),Mi(Fi,Ji),t}finally{Hi=!1}}}var ta=Oe.ReactCurrentBatchConfig;function na(e,t){if(e&&e.defaultProps){for(var n in t=ue({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ra=hi(null),oa=null,ia=null,aa=null;function la(){aa=ia=oa=null}function sa(e){var t=ra.current;mi(ra),e.type._context._currentValue=t}function ua(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 ca(e,t){oa=e,aa=ia=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Bl=!0),e.firstContext=null)}function da(e,t){if(aa!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(aa=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ia){if(null===oa)throw Error(de(308));ia=t,oa.dependencies={lanes:0,firstContext:t,responders:null}}else ia=ia.next=t;return e._currentValue}var pa=!1;function fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ha(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 ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function va(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 ga(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 ya(e,t,n,r){var o=e.updateQueue;pa=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;if(null!==c){var d=(c=c.updateQueue).lastBaseUpdate;d!==a&&(null===d?c.firstBaseUpdate=u:d.next=u,c.lastBaseUpdate=s)}}if(null!==i){for(d=o.baseState,a=0,c=u=s=null;;){l=i.lane;var p=i.eventTime;if((r&l)===l){null!==c&&(c=c.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var f=e,h=i;switch(l=t,p=n,h.tag){case 1:if("function"==typeof(f=h.payload)){d=f.call(p,d,l);break e}d=f;break e;case 3:f.flags=-4097&f.flags|64;case 0:if(null==(l="function"==typeof(f=h.payload)?f.call(p,d,l):f))break e;d=ue({},d,l);break e;case 2:pa=!0}}null!==i.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[i]:l.push(i))}else p={eventTime:p,lane:l,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,a|=l;if(null===(i=i.next)){if(null===(l=o.shared.pending))break;i=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,qs|=a,e.lanes=a,e.memoizedState=d}}function ba(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(de(191,o));o.call(r)}}}var xa=(new se.Component).refs;function wa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:ue({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ka={isMounted:function(e){return!!(e=e._reactInternals)&&en(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vu(),o=gu(e),i=ma(r,o);i.payload=t,null!=n&&(i.callback=n),va(e,i),yu(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vu(),o=gu(e),i=ma(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),va(e,i),yu(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vu(),r=gu(e),o=ma(n,r);o.tag=2,null!=t&&(o.callback=t),va(e,o),yu(e,r,n)}};function Ea(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!go(n,r)||!go(o,i))}function Sa(e,t,n){var r=!1,o=gi,i=t.contextType;return"object"==typeof i&&null!==i?i=da(i):(o=ki(t)?xi:yi.current,i=(r=null!=(r=t.contextTypes))?wi(e,o):gi),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ka,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ca(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&&ka.enqueueReplaceState(t,t.state,null)}function Oa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=xa,fa(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=da(i):(i=ki(t)?xi:yi.current,o.context=wi(e,i)),ya(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(wa(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&&ka.enqueueReplaceState(o,o.state,null),ya(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var Pa=Array.isArray;function Ra(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(de(309));var r=n.stateNode}if(!r)throw Error(de(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===xa&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(de(284));if(!n._owner)throw Error(de(290,e))}return e}function Ta(e,t){if("textarea"!==e.type)throw Error(de(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function La(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=Yu(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=ec(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ra(e,t,n),r.return=e,r):((r=Xu(n.type,n.key,n.props,null,e.mode,r)).ref=Ra(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=tc(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=Zu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=ec(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Pe:return(n=Xu(t.type,t.key,t.props,null,e.mode,n)).ref=Ra(e,null,t),n.return=e,n;case Re:return(t=tc(t,e.mode,n)).return=e,t}if(Pa(t)||Ke(t))return(t=Zu(t,e.mode,n,null)).return=e,t;Ta(e,t)}return null}function p(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 Pe:return n.key===o?n.type===Te?c(e,t,n.props.children,r,o):s(e,t,n,r):null;case Re:return n.key===o?u(e,t,n,r):null}if(Pa(n)||Ke(n))return null!==o?null:c(e,t,n,r,null);Ta(e,n)}return null}function f(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 Pe:return e=e.get(null===r.key?n:r.key)||null,r.type===Te?c(t,e,r.props.children,o,r.key):s(t,e,r,o);case Re:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Pa(r)||Ke(r))return c(t,e=e.get(n)||null,r,o,null);Ta(t,r)}return null}function h(o,a,l,s){for(var u=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 g=p(o,h,l[m],s);if(null===g){null===h&&(h=v);break}e&&h&&null===g.alternate&&t(o,h),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g,h=v}if(m===l.length)return n(o,h),u;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(a=i(h,a,m),null===c?u=h:c.sibling=h,c=h);return u}for(h=r(o,h);m<l.length;m++)null!==(v=f(h,o,m,l[m],s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(o,e)})),u}function m(o,a,l,s){var u=Ke(l);if("function"!=typeof u)throw Error(de(150));if(null==(l=u.call(l)))throw Error(de(151));for(var c=u=null,h=a,m=a=0,v=null,g=l.next();null!==h&&!g.done;m++,g=l.next()){h.index>m?(v=h,h=null):v=h.sibling;var y=p(o,h,g.value,s);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(o,h),a=i(y,a,m),null===c?u=y:c.sibling=y,c=y,h=v}if(g.done)return n(o,h),u;if(null===h){for(;!g.done;m++,g=l.next())null!==(g=d(o,g.value,s))&&(a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return u}for(h=r(o,h);!g.done;m++,g=l.next())null!==(g=f(h,o,m,g.value,s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach((function(e){return t(o,e)})),u}return function(e,r,i,l){var s="object"==typeof i&&null!==i&&i.type===Te&&null===i.key;s&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case Pe:e:{for(u=i.key,s=r;null!==s;){if(s.key===u){if(7===s.tag){if(i.type===Te){n(e,s.sibling),(r=o(s,i.props.children)).return=e,e=r;break e}}else if(s.elementType===i.type){n(e,s.sibling),(r=o(s,i.props)).ref=Ra(e,s,i),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}i.type===Te?((r=Zu(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Xu(i.type,i.key,i.props,null,e.mode,l)).ref=Ra(e,r,i),l.return=e,e=l)}return a(e);case Re:e:{for(s=i.key;null!==r;){if(r.key===s){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=tc(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=ec(i,e.mode,l)).return=e,e=r),a(e);if(Pa(i))return h(e,r,i,l);if(Ke(i))return m(e,r,i,l);if(u&&Ta(e,i),void 0===i&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(de(152,Ze(e.type)||"Component"))}return n(e,r)}}var Ma=La(!0),Aa=La(!1),Na={},_a=hi(Na),ja=hi(Na),Ia=hi(Na);function Fa(e){if(e===Na)throw Error(de(174));return e}function za(e,t){switch(vi(Ia,t),vi(ja,e),vi(_a,Na),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bt(null,"");break;default:t=bt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}mi(_a),vi(_a,t)}function Da(){mi(_a),mi(ja),mi(Ia)}function $a(e){Fa(Ia.current);var t=Fa(_a.current),n=bt(t,e.type);t!==n&&(vi(ja,e),vi(_a,n))}function Ba(e){ja.current===e&&(mi(_a),mi(ja))}var Wa=hi(0);function Ua(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(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 Va=null,qa=null,Ha=!1;function Ka(e,t){var n=Qu(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 Qa(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);default:return!1}}function Ga(e){if(Ha){var t=qa;if(t){var n=t;if(!Qa(e,t)){if(!(t=Jo(n.nextSibling))||!Qa(e,t))return e.flags=-1025&e.flags|2,Ha=!1,void(Va=e);Ka(Va,n)}Va=e,qa=Jo(t.firstChild)}else e.flags=-1025&e.flags|2,Ha=!1,Va=e}}function Ya(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Va=e}function Xa(e){if(e!==Va)return!1;if(!Ha)return Ya(e),Ha=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Go(t,e.memoizedProps))for(t=qa;t;)Ka(e,t),t=Jo(t.nextSibling);if(Ya(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(de(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){qa=Jo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}qa=null}}else qa=Va?Jo(e.stateNode.nextSibling):null;return!0}function Za(){qa=Va=null,Ha=!1}var Ja=[];function el(){for(var e=0;e<Ja.length;e++)Ja[e]._workInProgressVersionPrimary=null;Ja.length=0}var tl=Oe.ReactCurrentDispatcher,nl=Oe.ReactCurrentBatchConfig,rl=0,ol=null,il=null,al=null,ll=!1,sl=!1;function ul(){throw Error(de(321))}function cl(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mo(e[n],t[n]))return!1;return!0}function dl(e,t,n,r,o,i){if(rl=i,ol=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tl.current=null===e||null===e.memoizedState?Fl:zl,e=n(r,o),sl){i=0;do{if(sl=!1,!(25>i))throw Error(de(301));i+=1,al=il=null,t.updateQueue=null,tl.current=Dl,e=n(r,o)}while(sl)}if(tl.current=Il,t=null!==il&&null!==il.next,rl=0,al=il=ol=null,ll=!1,t)throw Error(de(300));return e}function pl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===al?ol.memoizedState=al=e:al=al.next=e,al}function fl(){if(null===il){var e=ol.alternate;e=null!==e?e.memoizedState:null}else e=il.next;var t=null===al?ol.memoizedState:al.next;if(null!==t)al=t,il=e;else{if(null===e)throw Error(de(310));e={memoizedState:(il=e).memoizedState,baseState:il.baseState,baseQueue:il.baseQueue,queue:il.queue,next:null},null===al?ol.memoizedState=al=e:al=al.next=e}return al}function hl(e,t){return"function"==typeof t?t(e):t}function ml(e){var t=fl(),n=t.queue;if(null===n)throw Error(de(311));n.lastRenderedReducer=e;var r=il,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,s=o;do{var u=s.lane;if((rl&u)===u)null!==l&&(l=l.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var c={lane:u,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===l?(a=l=c,i=r):l=l.next=c,ol.lanes|=u,qs|=u}s=s.next}while(null!==s&&s!==o);null===l?i=r:l.next=a,mo(r,t.memoizedState)||(Bl=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function vl(e){var t=fl(),n=t.queue;if(null===n)throw Error(de(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);mo(i,t.memoizedState)||(Bl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function gl(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=(rl&e)===e)&&(t._workInProgressVersionPrimary=r,Ja.push(t))),e)return n(t._source);throw Ja.push(t),Error(de(350))}function yl(e,t,n,r){var o=Fs;if(null===o)throw Error(de(349));var i=t._getVersion,a=i(t._source),l=tl.current,s=l.useState((function(){return gl(o,t,n)})),u=s[1],c=s[0];s=al;var d=e.memoizedState,p=d.refs,f=p.getSnapshot,h=d.source;d=d.subscribe;var m=ol;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=u;var e=i(t._source);if(!mo(a,e)){e=n(t._source),mo(c,e)||(u(e),e=gu(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,l=e;0<l;){var s=31-Gn(l),d=1<<s;r[s]|=e,l&=~d}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=gu(m);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),mo(f,n)&&mo(h,t)&&mo(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:hl,lastRenderedState:c}).dispatch=u=jl.bind(null,ol,e),s.queue=e,s.baseQueue=null,c=gl(o,t,n),s.memoizedState=s.baseState=c),c}function bl(e,t,n){return yl(fl(),e,t,n)}function xl(e){var t=pl();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:hl,lastRenderedState:e}).dispatch=jl.bind(null,ol,e),[t.memoizedState,e]}function wl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ol.updateQueue)?(t={lastEffect:null},ol.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 kl(e){return e={current:e},pl().memoizedState=e}function El(){return fl().memoizedState}function Sl(e,t,n,r){var o=pl();ol.flags|=e,o.memoizedState=wl(1|t,n,void 0,void 0===r?null:r)}function Cl(e,t,n,r){var o=fl();r=void 0===r?null:r;var i=void 0;if(null!==il){var a=il.memoizedState;if(i=a.destroy,null!==r&&cl(r,a.deps))return void wl(t,n,i,r)}ol.flags|=e,o.memoizedState=wl(1|t,n,i,r)}function Ol(e,t){return Sl(516,4,e,t)}function Pl(e,t){return Cl(516,4,e,t)}function Rl(e,t){return Cl(4,2,e,t)}function Tl(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 Ll(e,t,n){return n=null!=n?n.concat([e]):null,Cl(4,2,Tl.bind(null,t,e),n)}function Ml(){}function Al(e,t){var n=fl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&cl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Nl(e,t){var n=fl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&cl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _l(e,t){var n=Gi();Xi(98>n?98:n,(function(){e(!0)})),Xi(97<n?97:n,(function(){var n=nl.transition;nl.transition=1;try{e(!1),t()}finally{nl.transition=n}}))}function jl(e,t,n){var r=vu(),o=gu(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===ol||null!==a&&a===ol)sl=ll=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=a(l,n);if(i.eagerReducer=a,i.eagerState=s,mo(s,l))return}catch(e){}yu(e,o,r)}}var Il={readContext:da,useCallback:ul,useContext:ul,useEffect:ul,useImperativeHandle:ul,useLayoutEffect:ul,useMemo:ul,useReducer:ul,useRef:ul,useState:ul,useDebugValue:ul,useDeferredValue:ul,useTransition:ul,useMutableSource:ul,useOpaqueIdentifier:ul,unstable_isNewReconciler:!1},Fl={readContext:da,useCallback:function(e,t){return pl().memoizedState=[e,void 0===t?null:t],e},useContext:da,useEffect:Ol,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Sl(4,2,Tl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sl(4,2,e,t)},useMemo:function(e,t){var n=pl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pl();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=jl.bind(null,ol,e),[r.memoizedState,e]},useRef:kl,useState:xl,useDebugValue:Ml,useDeferredValue:function(e){var t=xl(e),n=t[0],r=t[1];return Ol((function(){var t=nl.transition;nl.transition=1;try{r(e)}finally{nl.transition=t}}),[e]),n},useTransition:function(){var e=xl(!1),t=e[0];return kl(e=_l.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=pl();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},yl(r,e,t,n)},useOpaqueIdentifier:function(){if(Ha){var e=!1,t=function(e){return{$$typeof:$e,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(ti++).toString(36))),Error(de(355))})),n=xl(t)[1];return 0==(2&ol.mode)&&(ol.flags|=516,wl(5,(function(){n("r:"+(ti++).toString(36))}),void 0,null)),t}return xl(t="r:"+(ti++).toString(36)),t},unstable_isNewReconciler:!1},zl={readContext:da,useCallback:Al,useContext:da,useEffect:Pl,useImperativeHandle:Ll,useLayoutEffect:Rl,useMemo:Nl,useReducer:ml,useRef:El,useState:function(){return ml(hl)},useDebugValue:Ml,useDeferredValue:function(e){var t=ml(hl),n=t[0],r=t[1];return Pl((function(){var t=nl.transition;nl.transition=1;try{r(e)}finally{nl.transition=t}}),[e]),n},useTransition:function(){var e=ml(hl)[0];return[El().current,e]},useMutableSource:bl,useOpaqueIdentifier:function(){return ml(hl)[0]},unstable_isNewReconciler:!1},Dl={readContext:da,useCallback:Al,useContext:da,useEffect:Pl,useImperativeHandle:Ll,useLayoutEffect:Rl,useMemo:Nl,useReducer:vl,useRef:El,useState:function(){return vl(hl)},useDebugValue:Ml,useDeferredValue:function(e){var t=vl(hl),n=t[0],r=t[1];return Pl((function(){var t=nl.transition;nl.transition=1;try{r(e)}finally{nl.transition=t}}),[e]),n},useTransition:function(){var e=vl(hl)[0];return[El().current,e]},useMutableSource:bl,useOpaqueIdentifier:function(){return vl(hl)[0]},unstable_isNewReconciler:!1},$l=Oe.ReactCurrentOwner,Bl=!1;function Wl(e,t,n,r){t.child=null===e?Aa(t,null,n,r):Ma(t,e.child,n,r)}function Ul(e,t,n,r,o){n=n.render;var i=t.ref;return ca(t,o),r=dl(e,t,n,r,i,o),null===e||Bl?(t.flags|=1,Wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,us(e,t,o))}function Vl(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Gu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ql(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:go)(o,r)&&e.ref===t.ref)?us(e,t,i):(t.flags|=1,(e=Yu(a,r)).ref=t.ref,e.return=t,t.child=e)}function ql(e,t,n,r,o,i){if(null!==e&&go(e.memoizedProps,r)&&e.ref===t.ref){if(Bl=!1,0==(i&o))return t.lanes=e.lanes,us(e,t,i);0!=(16384&e.flags)&&(Bl=!0)}return Ql(e,t,n,r,i)}function Hl(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},Ou(t,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Ou(t,e),null;t.memoizedState={baseLanes:0},Ou(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ou(t,r);return Wl(e,t,o,n),t.child}function Kl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ql(e,t,n,r,o){var i=ki(n)?xi:yi.current;return i=wi(t,i),ca(t,o),n=dl(e,t,n,r,i,o),null===e||Bl?(t.flags|=1,Wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,us(e,t,o))}function Gl(e,t,n,r,o){if(ki(n)){var i=!0;Oi(t)}else i=!1;if(ca(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),Sa(t,n,r),Oa(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=da(u):u=wi(t,u=ki(n)?xi:yi.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&Ca(t,a,r,u),pa=!1;var p=t.memoizedState;a.state=p,ya(t,r,a,o),s=t.memoizedState,l!==r||p!==s||bi.current||pa?("function"==typeof c&&(wa(t,n,c,r),s=t.memoizedState),(l=pa||Ea(t,n,l,r,p,s,u))?(d||"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=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ha(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:na(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=da(s):s=wi(t,s=ki(n)?xi:yi.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&Ca(t,a,r,s),pa=!1,p=t.memoizedState,a.state=p,ya(t,r,a,o);var h=t.memoizedState;l!==d||p!==h||bi.current||pa?("function"==typeof f&&(wa(t,n,f,r),h=t.memoizedState),(u=pa||Ea(t,n,u,r,p,h,s))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Yl(e,t,n,r,i,o)}function Yl(e,t,n,r,o,i){Kl(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&Pi(t,n,!1),us(e,t,i);r=t.stateNode,$l.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ma(t,e.child,null,i),t.child=Ma(t,null,l,i)):Wl(e,t,l,i),t.memoizedState=r.state,o&&Pi(t,n,!0),t.child}function Xl(e){var t=e.stateNode;t.pendingContext?Si(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Si(0,t.context,!1),za(e,t.containerInfo)}var Zl,Jl,es,ts={dehydrated:null,retryLane:0};function ns(e,t,n){var r,o=t.pendingProps,i=Wa.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),vi(Wa,1&i),null===e?(void 0!==o.fallback&&Ga(t),e=o.children,i=o.fallback,a?(e=rs(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ts,e):"number"==typeof o.unstable_expectedLoadTime?(e=rs(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ts,t.lanes=33554432,e):((n=Ju({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=is(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=ts,o):(n=os(e,t,o.children,n),t.memoizedState=null,n))}function rs(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=Ju(t,o,0,null),n=Zu(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function os(e,t,n,r){var o=e.child;return e=o.sibling,n=Yu(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 is(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=Yu(a,l),null!==e?r=Yu(e,r):(r=Zu(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function as(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ua(e.return,t)}function ls(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 ss(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Wl(e,t,r.children,n),0!=(2&(r=Wa.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&&as(e,n);else if(19===e.tag)as(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(vi(Wa,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===Ua(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ls(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===Ua(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ls(t,!0,n,null,i,t.lastEffect);break;case"together":ls(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function us(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),qs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(de(153));if(null!==t.child){for(n=Yu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Yu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function cs(e,t){if(!Ha)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 ds(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:case 17:return ki(t.type)&&Ei(),null;case 3:return Da(),mi(bi),mi(yi),el(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Xa(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ba(t);var o=Fa(Ia.current);if(n=t.type,null!==e&&null!=t.stateNode)Jl(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(de(166));return null}if(e=Fa(_a.current),Xa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ri]=t,r[oi]=i,n){case"dialog":jo("cancel",r),jo("close",r);break;case"iframe":case"object":case"embed":jo("load",r);break;case"video":case"audio":for(e=0;e<Mo.length;e++)jo(Mo[e],r);break;case"source":jo("error",r);break;case"img":case"image":case"link":jo("error",r),jo("load",r);break;case"details":jo("toggle",r);break;case"input":it(r,i),jo("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},jo("invalid",r);break;case"textarea":ft(r,i),jo("invalid",r)}for(var a in Rt(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]):fe.hasOwnProperty(a)&&null!=o&&"onScroll"===a&&jo("scroll",r));switch(n){case"input":tt(r),st(r,i,!0);break;case"textarea":tt(r),mt(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=qo)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(a=9===o.nodeType?o:o.ownerDocument,e===vt&&(e=yt(n)),e===vt?"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[ri]=t,e[oi]=r,Zl(e,t),t.stateNode=e,a=Tt(n,r),n){case"dialog":jo("cancel",e),jo("close",e),o=r;break;case"iframe":case"object":case"embed":jo("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mo.length;o++)jo(Mo[o],e);o=r;break;case"source":jo("error",e),o=r;break;case"img":case"image":case"link":jo("error",e),jo("load",e),o=r;break;case"details":jo("toggle",e),o=r;break;case"input":it(e,r),o=ot(e,r),jo("invalid",e);break;case"option":o=ct(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ue({},r,{value:void 0}),jo("invalid",e);break;case"textarea":ft(e,r),o=pt(e,r),jo("invalid",e);break;default:o=r}Rt(n,o);var l=o;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?Ot(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&wt(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&kt(e,s):"number"==typeof s&&kt(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(fe.hasOwnProperty(i)?null!=s&&"onScroll"===i&&jo("scroll",e):null!=s&&Ce(e,i,s,a))}switch(n){case"input":tt(e),st(e,r,!1);break;case"textarea":tt(e),mt(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Je(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?dt(e,!!r.multiple,i,!1):null!=r.defaultValue&&dt(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=qo)}Qo(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)es(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(de(166));n=Fa(Ia.current),Fa(_a.current),Xa(t)?(r=t.stateNode,n=t.memoizedProps,r[ri]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ri]=t,t.stateNode=r)}return null;case 13:return mi(Wa),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Xa(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Wa.current)?0===Ws&&(Ws=3):(0!==Ws&&3!==Ws||(Ws=4),null===Fs||0==(134217727&qs)&&0==(134217727&Hs)||ku(Fs,Ds))),(r||n)&&(t.flags|=4),null);case 4:return Da(),null===e&&Fo(t.stateNode.containerInfo),null;case 10:return sa(t),null;case 19:if(mi(Wa),null===(r=t.memoizedState))return null;if(i=0!=(64&t.flags),null===(a=r.rendering))if(i)cs(r,!1);else{if(0!==Ws||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(a=Ua(e))){for(t.flags|=64,cs(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 vi(Wa,1&Wa.current|2),t.child}e=e.sibling}null!==r.tail&&Qi()>Ys&&(t.flags|=64,i=!0,cs(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Ua(a))){if(t.flags|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),cs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate&&!Ha)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Qi()-r.renderingStartTime>Ys&&1073741824!==n&&(t.flags|=64,i=!0,cs(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=Qi(),n.sibling=null,t=Wa.current,vi(Wa,i?1&t|2:1&t),n):null;case 23:case 24:return Pu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(de(156,t.tag))}function ps(e){switch(e.tag){case 1:ki(e.type)&&Ei();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Da(),mi(bi),mi(yi),el(),0!=(64&(t=e.flags)))throw Error(de(285));return e.flags=-4097&t|64,e;case 5:return Ba(e),null;case 13:return mi(Wa),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return mi(Wa),null;case 4:return Da(),null;case 10:return sa(e),null;case 23:case 24:return Pu(),null;default:return null}}function fs(e,t){try{var n="",r=t;do{n+=Xe(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 hs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Zl=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}},Jl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Fa(_a.current);var i,a=null;switch(n){case"input":o=ot(e,o),r=ot(e,r),a=[];break;case"option":o=ct(e,o),r=ct(e,r),a=[];break;case"select":o=ue({},o,{value:void 0}),r=ue({},r,{value:void 0}),a=[];break;case"textarea":o=pt(e,o),r=pt(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=qo)}for(u in Rt(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(fe.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(fe.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&jo("scroll",e),a||l===s||(a=[])):"object"==typeof s&&null!==s&&s.$$typeof===$e?s.toString():(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},es=function(e,t,n,r){n!==r&&(t.flags|=4)};var ms="function"==typeof WeakMap?WeakMap:Map;function vs(e,t,n){(n=ma(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){eu||(eu=!0,tu=r),hs(0,t)},n}function gs(e,t,n){(n=ma(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return hs(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===nu?nu=new Set([this]):nu.add(this),hs(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ys="function"==typeof WeakSet?WeakSet:Set;function bs(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Vu(e,t)}else t.current=null}function xs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17: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:na(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Zo(t.stateNode.containerInfo))}throw Error(de(163))}function ws(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)&&(Bu(n,e),$u(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:na(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ba(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ba(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Qo(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Pn(n)))))}throw Error(de(163))}function ks(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=Ct("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 Es(e,t){if(Ti&&"function"==typeof Ti.onCommitFiberUnmount)try{Ti.onCommitFiberUnmount(Ri,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))Bu(t,n);else{r=t;try{o()}catch(e){Vu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(bs(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Vu(t,e)}break;case 5:bs(t);break;case 4:Ts(e,t)}}function Ss(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 Cs(e){return 5===e.tag||3===e.tag||4===e.tag}function Os(e){e:{for(var t=e.return;null!==t;){if(Cs(t))break e;t=t.return}throw Error(de(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(de(161))}16&n.flags&&(kt(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Cs(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?Ps(e,n,t):Rs(e,n,t)}function Ps(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=qo));else if(4!==r&&null!==(e=e.child))for(Ps(e,t,n),e=e.sibling;null!==e;)Ps(e,t,n),e=e.sibling}function Rs(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(Rs(e,t,n),e=e.sibling;null!==e;)Rs(e,t,n),e=e.sibling}function Ts(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(de(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,s=l;;)if(Es(a,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===l)break e;for(;null===s.sibling;){if(null===s.return||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.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(Es(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 Ls(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:case 12:case 17: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[oi]=r,"input"===e&&"radio"===r.type&&null!=r.name&&at(n,r),Tt(e,o),t=Tt(e,r),o=0;o<i.length;o+=2){var a=i[o],l=i[o+1];"style"===a?Ot(n,l):"dangerouslySetInnerHTML"===a?wt(n,l):"children"===a?kt(n,l):Ce(n,a,l,t)}switch(e){case"input":lt(n,r);break;case"textarea":ht(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?dt(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?dt(n,!!r.multiple,r.defaultValue,!0):dt(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(de(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Pn(n.containerInfo)));case 13:return null!==t.memoizedState&&(Gs=Qi(),ks(t.child,!0)),void Ms(t);case 19:return void Ms(t);case 23:case 24:return void ks(t,null!==t.memoizedState)}throw Error(de(163))}function Ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ys),t.forEach((function(t){var r=Hu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function As(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ns=Math.ceil,_s=Oe.ReactCurrentDispatcher,js=Oe.ReactCurrentOwner,Is=0,Fs=null,zs=null,Ds=0,$s=0,Bs=hi(0),Ws=0,Us=null,Vs=0,qs=0,Hs=0,Ks=0,Qs=null,Gs=0,Ys=1/0;function Xs(){Ys=Qi()+500}var Zs,Js=null,eu=!1,tu=null,nu=null,ru=!1,ou=null,iu=90,au=[],lu=[],su=null,uu=0,cu=null,du=-1,pu=0,fu=0,hu=null,mu=!1;function vu(){return 0!=(48&Is)?Qi():-1!==du?du:du=Qi()}function gu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Gi()?1:2;if(0===pu&&(pu=Vs),0!==ta.transition){0!==fu&&(fu=null!==Qs?Qs.pendingLanes:0),e=pu;var t=4186112&~fu;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Gi(),0!=(4&Is)&&98===e?e=qn(12,pu):e=qn(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),pu),e}function yu(e,t,n){if(50<uu)throw uu=0,cu=null,Error(de(185));if(null===(e=bu(e,t)))return null;Qn(e,t,n),e===Fs&&(Hs|=t,4===Ws&&ku(e,Ds));var r=Gi();1===t?0!=(8&Is)&&0==(48&Is)?Eu(e):(xu(e,n),0===Is&&(Xs(),Ji())):(0==(4&Is)||98!==r&&99!==r||(null===su?su=new Set([e]):su.add(e)),xu(e,n)),Qs=e}function bu(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 xu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-Gn(a),s=1<<l,u=i[l];if(-1===u){if(0==(s&r)||0!=(s&o)){u=t,Wn(s);var c=Bn;i[l]=10<=c?u+250:6<=c?u+5e3:-1}}else u<=t&&(e.expiredLanes|=s);a&=~s}if(r=Un(e,e===Fs?Ds:0),t=Bn,0===r)null!==n&&(n!==Wi&&Ai(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Wi&&Ai(n)}15===t?(n=Eu.bind(null,e),null===Vi?(Vi=[n],qi=Mi(Fi,ea)):Vi.push(n),n=Wi):14===t?n=Zi(99,Eu.bind(null,e)):(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(de(358,e))}}(t),n=Zi(n,wu.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function wu(e){if(du=-1,fu=pu=0,0!=(48&Is))throw Error(de(327));var t=e.callbackNode;if(Du()&&e.callbackNode!==t)return null;var n=Un(e,e===Fs?Ds:0);if(0===n)return null;var r=n,o=Is;Is|=16;var i=Lu();for(Fs===e&&Ds===r||(Xs(),Ru(e,r));;)try{Nu();break}catch(t){Tu(e,t)}if(la(),_s.current=i,Is=o,null!==zs?r=0:(Fs=null,Ds=0,r=Ws),0!=(Vs&Hs))Ru(e,0);else if(0!==r){if(2===r&&(Is|=64,e.hydrate&&(e.hydrate=!1,Zo(e.containerInfo)),0!==(n=Vn(e))&&(r=Mu(e,n))),1===r)throw t=Us,Ru(e,0),ku(e,n),xu(e,Qi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(de(345));case 2:case 5:Iu(e);break;case 3:if(ku(e,n),(62914560&n)===n&&10<(r=Gs+500-Qi())){if(0!==Un(e,0))break;if(((o=e.suspendedLanes)&n)!==n){vu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Yo(Iu.bind(null,e),r);break}Iu(e);break;case 4:if(ku(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var a=31-Gn(n);i=1<<a,(a=r[a])>o&&(o=a),n&=~i}if(n=o,10<(n=(120>(n=Qi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ns(n/1960))-n)){e.timeoutHandle=Yo(Iu.bind(null,e),n);break}Iu(e);break;default:throw Error(de(329))}}return xu(e,Qi()),e.callbackNode===t?wu.bind(null,e):null}function ku(e,t){for(t&=~Ks,t&=~Hs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Gn(t),r=1<<n;e[n]=-1,t&=~r}}function Eu(e){if(0!=(48&Is))throw Error(de(327));if(Du(),e===Fs&&0!=(e.expiredLanes&Ds)){var t=Ds,n=Mu(e,t);0!=(Vs&Hs)&&(n=Mu(e,t=Un(e,t)))}else n=Mu(e,t=Un(e,0));if(0!==e.tag&&2===n&&(Is|=64,e.hydrate&&(e.hydrate=!1,Zo(e.containerInfo)),0!==(t=Vn(e))&&(n=Mu(e,t))),1===n)throw n=Us,Ru(e,0),ku(e,t),xu(e,Qi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Iu(e),xu(e,Qi()),null}function Su(e,t){var n=Is;Is|=1;try{return e(t)}finally{0===(Is=n)&&(Xs(),Ji())}}function Cu(e,t){var n=Is;Is&=-2,Is|=8;try{return e(t)}finally{0===(Is=n)&&(Xs(),Ji())}}function Ou(e,t){vi(Bs,$s),$s|=t,Vs|=t}function Pu(){$s=Bs.current,mi(Bs)}function Ru(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Xo(n)),null!==zs)for(n=zs.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ei();break;case 3:Da(),mi(bi),mi(yi),el();break;case 5:Ba(r);break;case 4:Da();break;case 13:case 19:mi(Wa);break;case 10:sa(r);break;case 23:case 24:Pu()}n=n.return}Fs=e,zs=Yu(e.current,null),Ds=$s=Vs=t,Ws=0,Us=null,Ks=Hs=qs=0}function Tu(e,t){for(;;){var n=zs;try{if(la(),tl.current=Il,ll){for(var r=ol.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ll=!1}if(rl=0,al=il=ol=null,sl=!1,js.current=null,null===n||null===n.return){Ws=1,Us=t,zs=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Ds,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;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 d=0!=(1&Wa.current),p=a;do{var f;if(f=13===p.tag){var h=p.memoizedState;if(null!==h)f=null!==h.dehydrated;else{var m=p.memoizedProps;f=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(f){var v=p.updateQueue;if(null===v){var g=new Set;g.add(u),p.updateQueue=g}else v.add(u);if(0==(2&p.mode)){if(p.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var y=ma(-1,1);y.tag=2,va(l,y)}l.lanes|=1;break e}s=void 0,l=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new ms,s=new Set,b.set(u,s)):void 0===(s=b.get(u))&&(s=new Set,b.set(u,s)),!s.has(l)){s.add(l);var x=qu.bind(null,i,u,l);u.then(x,x)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);s=Error((Ze(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!==Ws&&(Ws=2),s=fs(s,l),p=a;do{switch(p.tag){case 3:i=s,p.flags|=4096,t&=-t,p.lanes|=t,ga(p,vs(0,i,t));break e;case 1:i=s;var w=p.type,k=p.stateNode;if(0==(64&p.flags)&&("function"==typeof w.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===nu||!nu.has(k)))){p.flags|=4096,t&=-t,p.lanes|=t,ga(p,gs(p,i,t));break e}}p=p.return}while(null!==p)}ju(n)}catch(e){t=e,zs===n&&null!==n&&(zs=n=n.return);continue}break}}function Lu(){var e=_s.current;return _s.current=Il,null===e?Il:e}function Mu(e,t){var n=Is;Is|=16;var r=Lu();for(Fs===e&&Ds===t||Ru(e,t);;)try{Au();break}catch(t){Tu(e,t)}if(la(),Is=n,_s.current=r,null!==zs)throw Error(de(261));return Fs=null,Ds=0,Ws}function Au(){for(;null!==zs;)_u(zs)}function Nu(){for(;null!==zs&&!Ni();)_u(zs)}function _u(e){var t=Zs(e.alternate,e,$s);e.memoizedProps=e.pendingProps,null===t?ju(e):zs=t,js.current=null}function ju(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ds(n,t,$s)))return void(zs=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&$s)||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=ps(t)))return n.flags&=2047,void(zs=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(zs=t);zs=t=e}while(null!==t);0===Ws&&(Ws=5)}function Iu(e){var t=Gi();return Xi(99,Fu.bind(null,e,t)),null}function Fu(e,t){do{Du()}while(null!==ou);if(0!=(48&Is))throw Error(de(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(de(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 s=31-Gn(i),u=1<<s;o[s]=0,a[s]=-1,l[s]=-1,i&=~u}if(null!==su&&0==(24&r)&&su.has(e)&&su.delete(e),e===Fs&&(zs=Fs=null,Ds=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Is,Is|=32,js.current=null,Ho=er,ko(a=wo())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,i=u.anchorOffset,s=u.focusNode,u=u.focusOffset;try{l.nodeType,s.nodeType}catch(e){l=null;break e}var c=0,d=-1,p=-1,f=0,h=0,m=a,v=null;t:for(;;){for(var g;m!==l||0!==i&&3!==m.nodeType||(d=c+i),m!==s||0!==u&&3!==m.nodeType||(p=c+u),3===m.nodeType&&(c+=m.nodeValue.length),null!==(g=m.firstChild);)v=m,m=g;for(;;){if(m===a)break t;if(v===l&&++f===i&&(d=c),v===s&&++h===u&&(p=c),null!==(g=m.nextSibling))break;v=(m=v).parentNode}m=g}l=-1===d||-1===p?null:{start:d,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Ko={focusedElem:a,selectionRange:l},er=!1,hu=null,mu=!1,Js=r;do{try{zu()}catch(e){if(null===Js)throw Error(de(330));Vu(Js,e),Js=Js.nextEffect}}while(null!==Js);hu=null,Js=r;do{try{for(a=e;null!==Js;){var y=Js.flags;if(16&y&&kt(Js.stateNode,""),128&y){var b=Js.alternate;if(null!==b){var x=b.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&y){case 2:Os(Js),Js.flags&=-3;break;case 6:Os(Js),Js.flags&=-3,Ls(Js.alternate,Js);break;case 1024:Js.flags&=-1025;break;case 1028:Js.flags&=-1025,Ls(Js.alternate,Js);break;case 4:Ls(Js.alternate,Js);break;case 8:Ts(a,l=Js);var w=l.alternate;Ss(l),null!==w&&Ss(w)}Js=Js.nextEffect}}catch(e){if(null===Js)throw Error(de(330));Vu(Js,e),Js=Js.nextEffect}}while(null!==Js);if(x=Ko,b=wo(),y=x.focusedElem,a=x.selectionRange,b!==y&&y&&y.ownerDocument&&xo(y.ownerDocument.documentElement,y)){null!==a&&ko(y)&&(b=a.start,void 0===(x=a.end)&&(x=b),"selectionStart"in y?(y.selectionStart=b,y.selectionEnd=Math.min(x,y.value.length)):(x=(b=y.ownerDocument||document)&&b.defaultView||window).getSelection&&(x=x.getSelection(),l=y.textContent.length,w=Math.min(a.start,l),a=void 0===a.end?w:Math.min(a.end,l),!x.extend&&w>a&&(l=a,a=w,w=l),l=bo(y,w),i=bo(y,a),l&&i&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((b=b.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),w>a?(x.addRange(b),x.extend(i.node,i.offset)):(b.setEnd(i.node,i.offset),x.addRange(b))))),b=[];for(x=y;x=x.parentNode;)1===x.nodeType&&b.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;y<b.length;y++)(x=b[y]).element.scrollLeft=x.left,x.element.scrollTop=x.top}er=!!Ho,Ko=Ho=null,e.current=n,Js=r;do{try{for(y=e;null!==Js;){var k=Js.flags;if(36&k&&ws(y,Js.alternate,Js),128&k){b=void 0;var E=Js.ref;if(null!==E){var S=Js.stateNode;Js.tag,b=S,"function"==typeof E?E(b):E.current=b}}Js=Js.nextEffect}}catch(e){if(null===Js)throw Error(de(330));Vu(Js,e),Js=Js.nextEffect}}while(null!==Js);Js=null,Ui(),Is=o}else e.current=n;if(ru)ru=!1,ou=e,iu=t;else for(Js=r;null!==Js;)t=Js.nextEffect,Js.nextEffect=null,8&Js.flags&&((k=Js).sibling=null,k.stateNode=null),Js=t;if(0===(r=e.pendingLanes)&&(nu=null),1===r?e===cu?uu++:(uu=0,cu=e):uu=0,n=n.stateNode,Ti&&"function"==typeof Ti.onCommitFiberRoot)try{Ti.onCommitFiberRoot(Ri,n,void 0,64==(64&n.current.flags))}catch(e){}if(xu(e,Qi()),eu)throw eu=!1,e=tu,tu=null,e;return 0!=(8&Is)||Ji(),null}function zu(){for(;null!==Js;){var e=Js.alternate;mu||null===hu||(0!=(8&Js.flags)?on(Js,hu)&&(mu=!0):13===Js.tag&&As(e,Js)&&on(Js,hu)&&(mu=!0));var t=Js.flags;0!=(256&t)&&xs(e,Js),0==(512&t)||ru||(ru=!0,Zi(97,(function(){return Du(),null}))),Js=Js.nextEffect}}function Du(){if(90!==iu){var e=97<iu?97:iu;return iu=90,Xi(e,Wu)}return!1}function $u(e,t){au.push(t,e),ru||(ru=!0,Zi(97,(function(){return Du(),null})))}function Bu(e,t){lu.push(t,e),ru||(ru=!0,Zi(97,(function(){return Du(),null})))}function Wu(){if(null===ou)return!1;var e=ou;if(ou=null,0!=(48&Is))throw Error(de(331));var t=Is;Is|=32;var n=lu;lu=[];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(de(330));Vu(i,e)}}for(n=au,au=[],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(de(330));Vu(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 Is=t,Ji(),!0}function Uu(e,t,n){va(e,t=vs(0,t=fs(n,t),1)),t=vu(),null!==(e=bu(e,1))&&(Qn(e,1,t),xu(e,t))}function Vu(e,t){if(3===e.tag)Uu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Uu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===nu||!nu.has(r))){var o=gs(n,e=fs(t,e),1);if(va(n,o),o=vu(),null!==(n=bu(n,1)))Qn(n,1,o),xu(n,o);else if("function"==typeof r.componentDidCatch&&(null===nu||!nu.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function qu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=vu(),e.pingedLanes|=e.suspendedLanes&n,Fs===e&&(Ds&n)===n&&(4===Ws||3===Ws&&(62914560&Ds)===Ds&&500>Qi()-Gs?Ru(e,0):Ks|=n),xu(e,t)}function Hu(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===Gi()?1:2:(0===pu&&(pu=Vs),0===(t=Hn(62914560&~pu))&&(t=4194304))),n=vu(),null!==(e=bu(e,t))&&(Qn(e,t,n),xu(e,n))}function Ku(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 Qu(e,t,n,r){return new Ku(e,t,n,r)}function Gu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Yu(e,t){var n=e.alternate;return null===n?((n=Qu(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 Xu(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Gu(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Te:return Zu(n.children,o,i,t);case Be:a=8,o|=16;break;case Le:a=8,o|=1;break;case Me:return(e=Qu(12,n,t,8|o)).elementType=Me,e.type=Me,e.lanes=i,e;case je:return(e=Qu(13,n,t,o)).type=je,e.elementType=je,e.lanes=i,e;case Ie:return(e=Qu(19,n,t,o)).elementType=Ie,e.lanes=i,e;case We:return Ju(n,o,i,t);case Ue:return(e=Qu(24,n,t,o)).elementType=Ue,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ae:a=10;break e;case Ne:a=9;break e;case _e:a=11;break e;case Fe:a=14;break e;case ze:a=16,r=null;break e;case De:a=22;break e}throw Error(de(130,null==e?e:typeof e,""))}return(t=Qu(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Zu(e,t,n,r){return(e=Qu(7,e,r,t)).lanes=n,e}function Ju(e,t,n,r){return(e=Qu(23,e,r,t)).elementType=We,e.lanes=n,e}function ec(e,t,n){return(e=Qu(6,e,null,t)).lanes=n,e}function tc(e,t,n){return(t=Qu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nc(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=Kn(0),this.expirationTimes=Kn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kn(0),this.mutableSourceEagerHydrationData=null}function rc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Re,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function oc(e,t,n,r){var o=t.current,i=vu(),a=gu(o);e:if(n){t:{if(en(n=n._reactInternals)!==n||1!==n.tag)throw Error(de(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ki(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(de(171))}if(1===n.tag){var s=n.type;if(ki(s)){n=Ci(n,s,l);break e}}n=l}else n=gi;return null===t.context?t.context=n:t.pendingContext=n,(t=ma(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),va(o,t),yu(o,a,i),a}function ic(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ac(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function lc(e,t){ac(e,t),(e=e.alternate)&&ac(e,t)}function sc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new nc(e,t,null!=n&&!0===n.hydrate),t=Qu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,fa(t),e[ii]=n.current,Fo(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 uc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function cc(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=ic(a);l.call(e)}}oc(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 sc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var s=o;o=function(){var e=ic(a);s.call(e)}}Cu((function(){oc(t,a,e,o)}))}return ic(a)}function dc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!uc(t))throw Error(de(200));return rc(e,t,null,n)}Zs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||bi.current)Bl=!0;else{if(0==(n&r)){switch(Bl=!1,t.tag){case 3:Xl(t),Za();break;case 5:$a(t);break;case 1:ki(t.type)&&Oi(t);break;case 4:za(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;vi(ra,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?ns(e,t,n):(vi(Wa,1&Wa.current),null!==(t=us(e,t,n))?t.sibling:null);vi(Wa,1&Wa.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ss(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),vi(Wa,Wa.current),r)break;return null;case 23:case 24:return t.lanes=0,Hl(e,t,n)}return us(e,t,n)}Bl=0!=(16384&e.flags)}else Bl=!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=wi(t,yi.current),ca(t,n),o=dl(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,ki(r)){var i=!0;Oi(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,fa(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&wa(t,r,a,e),o.updater=ka,t.stateNode=o,o._reactInternals=t,Oa(t,r,e,n),t=Yl(null,t,r,!0,i,n)}else t.tag=0,Wl(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 Gu(e)?1:0;if(null!=e){if((e=e.$$typeof)===_e)return 11;if(e===Fe)return 14}return 2}(o),e=na(o,e),i){case 0:t=Ql(null,t,o,e,n);break e;case 1:t=Gl(null,t,o,e,n);break e;case 11:t=Ul(null,t,o,e,n);break e;case 14:t=Vl(null,t,o,na(o.type,e),r,n);break e}throw Error(de(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ql(e,t,r,o=t.elementType===r?o:na(r,o),n);case 1:return r=t.type,o=t.pendingProps,Gl(e,t,r,o=t.elementType===r?o:na(r,o),n);case 3:if(Xl(t),r=t.updateQueue,null===e||null===r)throw Error(de(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ha(e,t),ya(t,r,null,n),(r=t.memoizedState.element)===o)Za(),t=us(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(qa=Jo(t.stateNode.containerInfo.firstChild),Va=t,i=Ha=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Ja.push(i);for(n=Aa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Wl(e,t,r,n),Za();t=t.child}return t;case 5:return $a(t),null===e&&Ga(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,Go(r,o)?a=null:null!==i&&Go(r,i)&&(t.flags|=16),Kl(e,t),Wl(e,t,a,n),t.child;case 6:return null===e&&Ga(t),null;case 13:return ns(e,t,n);case 4:return za(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ma(t,null,r,n):Wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ul(e,t,r,o=t.elementType===r?o:na(r,o),n);case 7:return Wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return Wl(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(vi(ra,l._currentValue),l._currentValue=i,null!==a)if(l=a.value,0===(i=mo(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(a.children===o.children&&!bi.current){t=us(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var s=l.dependencies;if(null!==s){a=l.child;for(var u=s.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===l.tag&&((u=ma(-1,n&-n)).tag=2,va(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ua(l.return,n),s.lanes|=n;break}u=u.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}Wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ca(t,n),r=r(o=da(o,i.unstable_observedBits)),t.flags|=1,Wl(e,t,r,n),t.child;case 14:return i=na(o=t.type,t.pendingProps),Vl(e,t,o,i=na(o.type,i),r,n);case 15:return ql(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ki(r)?(e=!0,Oi(t)):e=!1,ca(t,n),Sa(t,r,o),Oa(t,r,o,n),Yl(null,t,r,!0,e,n);case 19:return ss(e,t,n);case 23:case 24:return Hl(e,t,n)}throw Error(de(156,t.tag))},sc.prototype.render=function(e){oc(e,this._internalRoot,null,null)},sc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;oc(null,e,null,(function(){t[ii]=null}))},an=function(e){13===e.tag&&(yu(e,4,vu()),lc(e,4))},ln=function(e){13===e.tag&&(yu(e,67108864,vu()),lc(e,67108864))},sn=function(e){if(13===e.tag){var t=vu(),n=gu(e);yu(e,n,t),lc(e,n)}},un=function(e,t){return t()},Mt=function(e,t,n){switch(t){case"input":if(lt(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=ci(r);if(!o)throw Error(de(90));nt(r),lt(r,o)}}}break;case"textarea":ht(e,n);break;case"select":null!=(t=n.value)&&dt(e,!!n.multiple,t,!1)}},Ft=Su,zt=function(e,t,n,r,o){var i=Is;Is|=4;try{return Xi(98,e.bind(null,t,n,r,o))}finally{0===(Is=i)&&(Xs(),Ji())}},Dt=function(){0==(49&Is)&&(function(){if(null!==su){var e=su;su=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,xu(e,Qi())}))}Ji()}(),Du())},$t=function(e,t){var n=Is;Is|=2;try{return e(t)}finally{0===(Is=n)&&(Xs(),Ji())}};var pc={Events:[si,ui,ci,jt,It,Du,{current:!1}]},fc={findFiberByHostInstance:li,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},hc={bundleType:fc.bundleType,version:fc.version,rendererPackageName:fc.rendererPackageName,rendererConfig:fc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Oe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:fc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var mc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mc.isDisabled&&mc.supportsFiber)try{Ri=mc.inject(hc),Ti=mc}catch(Pc){}}ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pc,ee.createPortal=dc,ee.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(de(188));throw Error(de(268,Object.keys(e)))}return e=null===(e=rn(t))?null:e.stateNode},ee.flushSync=function(e,t){var n=Is;if(0!=(48&n))return e(t);Is|=1;try{if(e)return Xi(99,e.bind(null,t))}finally{Is=n,Ji()}},ee.hydrate=function(e,t,n){if(!uc(t))throw Error(de(200));return cc(null,e,t,!0,n)},ee.render=function(e,t,n){if(!uc(t))throw Error(de(200));return cc(null,e,t,!1,n)},ee.unmountComponentAtNode=function(e){if(!uc(e))throw Error(de(40));return!!e._reactRootContainer&&(Cu((function(){cc(null,null,e,!1,(function(){e._reactRootContainer=null,e[ii]=null}))})),!0)},ee.unstable_batchedUpdates=Su,ee.unstable_createPortal=function(e,t){return dc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},ee.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!uc(n))throw Error(de(200));if(null==e||void 0===e._reactInternals)throw Error(de(38));return cc(e,t,n,!1,r)},ee.version="17.0.2",function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=ee}(J);var vc=p(J.exports),gc="__tolgee_dev_tools",yc=2147483e3,bc="__tolgee_preferredLanguages",xc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._popup=null,t}return r(t,e),Object.defineProperty(t.prototype,"document",{get:function(){return this.props.document||document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"devTools",{get:function(){var e;return(null===(e=this.document.getElementById(gc))||void 0===e?void 0:e.shadowRoot)||this.document.body},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._popup=this.document.createElement("div"),this.devTools.appendChild(this._popup),this._render()},t.prototype.componentDidUpdate=function(){this._render()},t.prototype.componentWillUnmount=function(){this._popup&&(J.exports.unmountComponentAtNode(this._popup),this.devTools.removeChild(this._popup))},t.prototype._render=function(){J.exports.render(h.exports.createElement(h.exports.Fragment,null,this.props.children),this._popup)},t.prototype.render=function(){return null},t}(h.exports.PureComponent),wc=function(e){return new Promise((function(t){return setTimeout(t,e)}))},kc={exports:{}},Ec={};
|
|
28
|
+
/**
|
|
29
|
+
* @license React
|
|
30
|
+
* scheduler.production.min.js
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the MIT license found in the
|
|
35
|
+
* LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/
|
|
37
|
+
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,p=3,f=!1,h=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function x(e){if(m=!1,b(e),!h)if(null!==n(s))h=!0,A(w);else{var t=n(u);null!==t&&N(x,t.startTime-e)}}function w(t,o){h=!1,m&&(m=!1,g(C),C=-1),f=!0;var i=p;try{for(b(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!R());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),b(o)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var v=n(u);null!==v&&N(x,v.startTime-o),c=!1}return c}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,E=!1,S=null,C=-1,O=5,P=-1;function R(){return!(e.unstable_now()-P<O)}function T(){if(null!==S){var t=e.unstable_now();P=t;var n=!0;try{n=S(!0,t)}finally{n?k():(E=!1,S=null)}}else E=!1}if("function"==typeof y)k=function(){y(T)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,M=L.port2;L.port1.onmessage=T,k=function(){M.postMessage(null)}}else k=function(){v(T,0)};function A(e){S=e,E||(E=!0,k())}function N(t,n){C=v((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,A(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.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}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(m?(g(C),C=-1):m=!0,N(x,i-a))):(r.sortIndex=l,t(s,r),h||f||(h=!0,A(w))),r},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(Ec),function(e){e.exports=Ec}(kc);const Sc=Symbol(),Cc=Symbol(),Oc="undefined"==typeof window||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?h.exports.useEffect:h.exports.useLayoutEffect,Pc=kc.exports.unstable_runWithPriority?e=>kc.exports.unstable_runWithPriority(kc.exports.unstable_NormalPriority,e):e=>e();var Rc=function(e,t,n){var r;if(!(null==t?void 0:t.length))return!0;var o=null===(r=null==n?void 0:n.find((function(t){return t.tag===e})))||void 0===r?void 0:r.id;return void 0===o||t.includes(o)};const Tc=()=>{let e=[];return Object.freeze({listen:t=>{const n=e=>{t(e)};return e.push(n),{unsubscribe:()=>{e=e.filter((e=>n!==e))}}},emit:t=>{e.forEach((e=>e({value:t})))}})};function Lc(e){return"string"==typeof e?[e]:Array.isArray(e)?e:void 0}function Mc(e){return Lc(e)||[]}function Ac(e,t){return"object"!=typeof(n=t)||Array.isArray(n)||null===n?Mc(t):Mc(null==t?void 0:t[e]);var n}function Nc(e){return Array.from(new Set(e))}function _c(e,t){const n=e.get(t)||0;e.set(t,n+1)}function jc(e,t){let n=e.get(t)||1;n-=1,n<=0?e.delete(t):e.set(t,n)}const Ic=e=>{const t=new Set,n=new Set,r=t=>{if(t.has(void 0)){const n=new Set(t.keys());return n.delete(void 0),e().forEach((e=>n.add(e))),n}return t};let o=[];const i=()=>{if(0===o.length)return;t.forEach((e=>{e({value:void 0})}));const e=new Set;let i=new Set;o.forEach((t=>{void 0===(null==t?void 0:t.ns)?e.add(void 0):t.ns.forEach((t=>e.add(t))),void 0===(null==t?void 0:t.key)?i=void 0:void 0!==i&&i.add(t.key)}));const a=Array.from(r(e).keys());(i||[void 0]).forEach((e=>{((e,t)=>{n.forEach((n=>{const o=r(n.namespaces),i=void 0===t||-1!==(null==t?void 0:t.findIndex((e=>o.has(e)))),a=void 0===e||n.keys.has(e)||0===n.keys.size;i&&a&&n.fn({value:void 0})}))})(e,a)})),o=[]};return Object.freeze({listenSome:e=>{const t={fn:t=>{e(t)},keys:new Map,namespaces:new Map};n.add(t);const r={unsubscribe:()=>{n.delete(t)},subscribeNs:e=>(Mc(e).forEach((e=>_c(t.namespaces,e))),r),unsubscribeNs:e=>(Mc(e).forEach((e=>jc(t.namespaces,e))),r),subscribeKey:e=>{const{key:n,ns:o}=e;return _c(t.keys,n),Mc(o).forEach((e=>_c(t.namespaces,e))),void 0===o&&_c(t.namespaces,void 0),r},unsubscribeKey:e=>{const{key:n,ns:o}=e;return jc(t.keys,n),Mc(o).forEach((e=>jc(t.namespaces,e))),void 0===o&&jc(t.namespaces,void 0),r}};return r},listen:e=>{t.add(e);return{unsubscribe:()=>{t.delete(e)}}},emit:(e,t)=>{o.push(e),t?Promise.resolve().then((()=>{i()})):i()}})},Fc=e=>{const t=new Map;return Object.entries(e).forEach((([e,n])=>{null!=n&&("object"!=typeof n?t.set(e,n):Fc(n).forEach(((n,r)=>{t.set(e+"."+r,n)})))})),t},zc=e=>{const[t,n]=e.split(":");return{language:t,namespace:n||""}},Dc=({language:e,namespace:t})=>t?`${e}:${t}`:e,$c=(e,t,n,r,o,i,a)=>{const l=new Map,s=new Map;let u={},c=0;function d(t,n,r){const o=Dc(t);s.set(o,{data:Fc(n),version:r}),e.emit(t)}function p(e,t){d(e,t,c)}function f(e,t=!1){const n=s.get(Dc(e));return n&&t?n.version===c:Boolean(n)}function h(e){var t;return null===(t=s.get(Dc(r(e))))||void 0===t?void 0:t.data}function m(e){let n;if(!n){const t=u[Dc(e)];"function"==typeof t&&(n=t())}return n||(n=t(e)),n||(n=Promise.resolve({})),n}return Object.freeze({addStaticData:function(e){e&&(u=Object.assign(Object.assign({},u),e),Object.entries(e).forEach((([e,t])=>{if("function"!=typeof t){const n=zc(e),r=s.get(e);r&&0!==r.version||d(n,t,0)}})))},invalidate:function(){l.clear(),c+=1},addRecord:p,exists:f,getRecord:h,getTranslation:function(e,t){var n;return null===(n=s.get(Dc(e)))||void 0===n?void 0:n.data.get(t)},getTranslationNs:function(e,t,n){var r;for(const o of e)for(const e of t){const t=null===(r=s.get(Dc({language:e,namespace:o})))||void 0===r?void 0:r.data.get(n);if(null!=t)return o}return Array.from(new Set(e))},getTranslationFallback:function(e,t,n){var r;for(const o of e)for(const e of t){const t=null===(r=s.get(Dc({language:e,namespace:o})))||void 0===r?void 0:r.data.get(n);if(null!=t)return t}},changeTranslation:function(t,n,r){var o;const i=null===(o=s.get(Dc(t)))||void 0===o?void 0:o.data;null==i||i.set(n,r),e.emit(Object.assign(Object.assign({},t),{key:n}))},isFetching:function(e){if(o())return!0;if(void 0===e)return l.size>0;const t=Mc(e);return Boolean(Array.from(l.keys()).find((e=>t.includes(zc(e).namespace))))},isLoading:function(e,t){const n=Mc(t);return Boolean(o()||Array.from(l.keys()).find((t=>{const r=zc(t);return(!n.length||n.includes(r.namespace))&&!f({namespace:r.namespace,language:e})})))},loadRecords:async function(e,t){const o=e.map((e=>{const o=r(e),i=Dc(o),a=l.get(i);if(a)return{new:!1,promise:a,keyObject:o,cacheKey:i};const s=function(e,t){var r;let o;return t&&(o=null===(r=n(e))||void 0===r?void 0:r.catch((()=>(console.warn("Tolgee: Failed to fetch data from dev backend"),m(e))))),o||(o=m(e)),o}(o,t);return l.set(i,s),{new:!0,promise:s,keyObject:o,cacheKey:i}}));i.notify(),a.notify();const s=await Promise.all(o.map((e=>e.promise)));return o.forEach(((e,t)=>{const n=l.get(e.cacheKey)!==e.promise;if(e.new&&!n){l.delete(e.cacheKey);const n=s[t];n&&p(e.keyObject,n)}})),i.notify(),a.notify(),o.map((e=>h(e.keyObject)))},getAllRecords:function(){return Array.from(s.entries()).map((([e,t])=>Object.assign(Object.assign({},zc(e)),{data:t.data})))}})};function Bc(e){return Boolean(e&&"function"==typeof e.then)}const Wc=(e,t)=>Bc(e)?Promise.resolve(e).then(t):t(e),Uc=e=>`Tolgee: You need to specify '${e}' option`,Vc=(e,t,n,r,o,i,a)=>{const l={ui:void 0,observer:void 0},s={formatters:[],finalFormatter:void 0,observer:void 0,devBackend:void 0,backends:[],ui:void 0,languageDetector:void 0,languageStorage:void 0},u=async(e,{keysAndDefaults:t})=>{var n;const r=t.map((({key:e,ns:t,defaultValue:n})=>({key:e,defaultValue:n,ns:Mc(o({key:e,ns:t,defaultValue:n})),translation:i({key:e,ns:t})})));null===(n=s.ui)||void 0===n||n.handleElementClick(e,r)},c=(e,t)=>{var n,r;return(null===(r=null===(n=s.observer)||void 0===n?void 0:n.highlight)||void 0===r?void 0:r.call(n,e,t))||{unhighlight(){}}},d=e=>{const t=i(e);return p(Object.assign(Object.assign({},e),{translation:t,formatEnabled:!0}))},p=({key:t,translation:n,defaultValue:r,noWrap:o,params:i,orEmpty:a,ns:l,formatEnabled:u})=>{var c;const d=n||r;let p=d||(a?"":t);s.observer&&!o&&(p=s.observer.wrap({key:t,translation:p,defaultValue:r,params:i,ns:l}));const f=e(),h=u||!(null===(c=s.observer)||void 0===c?void 0:c.outputNotFormattable);if(d&&f&&h)for(const e of s.formatters)p=e.format({translation:p,language:f,params:i});return s.finalFormatter&&d&&f&&h&&(p=s.finalFormatter.format({translation:p,language:f,params:i})),p};return Object.freeze({setFinalFormatter:e=>{s.finalFormatter=e},addFormatter:e=>{e&&s.formatters.push(e)},formatTranslation:p,setObserver:e=>{l.observer=e},hasObserver:()=>Boolean(l.observer),setUi:e=>{l.ui=(null==e?void 0:e.UI)||e},hasUi:()=>Boolean(l.ui),addBackend:e=>{e&&s.backends.push(e)},setDevBackend:e=>{s.devBackend=e},getDevBackend:()=>s.devBackend,getBackendRecord:({language:e,namespace:t})=>{for(const n of s.backends){const r=n.getRecord({language:e,namespace:t});if(Bc(r))return null==r?void 0:r.catch((e=>(console.error(e),{})));if(void 0!==r)return r}},getBackendDevRecord:({language:e,namespace:n})=>{var r;return null===(r=s.devBackend)||void 0===r?void 0:r.getRecord({apiKey:t().apiKey,apiUrl:t().apiUrl,language:e,namespace:n})},setLanguageDetector:e=>{s.languageDetector=e},getLanguageDetector:()=>s.languageDetector,setLanguageStorage:e=>{s.languageStorage=e},getLanguageStorage:()=>s.languageStorage,getInitialLanguage:()=>{var e;const t=r(),n=null===(e=s.languageStorage)||void 0===e?void 0:e.getLanguage();return Wc(n,(e=>t&&!t.includes(e)||!e?(()=>{if(!s.languageDetector)return;const e=r();return s.languageDetector.getLanguage({availableLanguages:e})})():e))},setStoredLanguage:e=>{var t;null===(t=s.languageStorage)||void 0===t||t.setLanguage(e)},run:e=>{var r,o;!s.ui&&l.ui&&(s.ui=new l.ui({apiKey:t().apiKey,apiUrl:t().apiUrl,highlight:c,changeTranslation:a})),s.observer||(s.observer=null===(r=l.observer)||void 0===r?void 0:r.call(l,{translate:d,onClick:u,options:n()})),null===(o=s.observer)||void 0===o||o.run({mouseHighlight:e})},stop:()=>{var e;s.ui=void 0,null===(e=s.observer)||void 0===e||e.stop()},retranslate:()=>{var e;null===(e=s.observer)||void 0===e||e.retranslate()},highlight:c,wrap:e=>{var t;return s.observer?null===(t=s.observer)||void 0===t?void 0:t.wrap(e):e.translation},unwrap:e=>{var t;return s.observer?null===(t=s.observer)||void 0===t?void 0:t.unwrap(e):{text:e,keys:[]}}})},qc=(e,t,n)=>{let r=e;return Object.freeze({init:function(e){r=e},notify:function(){const e=t();r!==e&&n(e),r=e}})},Hc={tagAttributes:{textarea:["placeholder"],input:["value","placeholder"],img:["alt"],"*":["aria-label","title"]},restrictedElements:["script","style"],highlightKeys:["Alt"],highlightColor:"rgb(255, 0, 0)",highlightWidth:5,inputPrefix:"%-%tolgee:",inputSuffix:"%-%",passToParent:["option","optgroup"]},Kc=e=>Object.assign(Object.assign({},Hc),e),Qc={defaultNs:""},Gc=(e,t)=>{const n=Object.assign(Object.assign(Object.assign({},Qc),null==t?void 0:t.initialOptions),e),r=n.apiUrl;return n.apiUrl=r?r.replace(/\/+$/,""):r,{initialOptions:n,activeNamespaces:(null==t?void 0:t.activeNamespaces)||new Map,language:null==t?void 0:t.language,pendingLanguage:null==t?void 0:t.language,isInitialLoading:!1,isRunning:!1}};function Yc(e){var{ns:t,noWrap:n,orEmpty:r,params:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["ns","noWrap","orEmpty","params"]);return{ns:t,noWrap:n,orEmpty:r,params:Object.assign(Object.assign({},i),o)}}const Xc=(e,...t)=>{let n,r={};return"object"==typeof e?r=e:(r.key=e,"string"==typeof t[0]?(r.defaultValue=t[0],n=t[1]):"object"==typeof t[0]&&(n=t[0])),n&&(r=Object.assign(Object.assign({},Yc(n)),r)),r},Zc=({options:e})=>{const t=(e=>{const t=Tc(),n=Tc(),r=Tc(),o=Tc(),i=Tc(),a=Tc(),l=Ic(e),s=Tc(),u=Tc();return a.listen((()=>l.emit())),n.listen((()=>l.emit())),s.listen((({value:e})=>{l.emit({ns:[e.namespace],key:e.key},!0)})),Object.freeze({onPendingLanguageChange:t,onLanguageChange:n,onKeyChange:r,onKeyUpdate:l,onLoadingChange:o,onFetchingChange:i,onInitialLoaded:a,onRunningChange:u,onCacheChange:s,on:(e,r)=>{switch(e){case"pendingLanguage":return t.listen(r);case"language":return n.listen(r);case"loading":return o.listen(r);case"fetching":return i.listen(r);case"initialLoad":return a.listen(r);case"running":return u.listen(r);case"cache":return s.listen(r);case"keyUpdate":return l.listen(r)}}})})((function(){return o.getFallbackNamespaces()})),n=qc(!1,(()=>a.isFetching()),t.onFetchingChange.emit),r=qc(!1,(()=>u()),t.onLoadingChange.emit),o=((e,t,n)=>{let r,o=Gc(),i=Kc();function a(){return o.language||o.initialOptions.language}function l(){return Object.assign(Object.assign({},o.initialOptions),r)}return Object.freeze({init:function(e){o=Gc(e,o)},isRunning:function(){return o.isRunning},setRunning:function(e){o.isRunning!==e&&(o.isRunning=e,n.emit(e))},isInitialLoading:function(){return o.isInitialLoading},setInitialLoading:function(e){o.isInitialLoading=e},getLanguage:a,setLanguage:function(t){o.language!==t&&(o.language=t,e.emit(t))},getPendingLanguage:function(){return o.pendingLanguage||a()},setPendingLanguage:function(e){o.pendingLanguage!==e&&(o.pendingLanguage=e,t.emit(e))},getInitialOptions:l,addActiveNs:function(e){Mc(e).forEach((e=>{const t=o.activeNamespaces.get(e);void 0!==t?o.activeNamespaces.set(e,t+1):o.activeNamespaces.set(e,1)}))},removeActiveNs:function(e){Mc(e).forEach((e=>{const t=o.activeNamespaces.get(e);void 0!==t&&t>1?o.activeNamespaces.set(e,t-1):o.activeNamespaces.delete(e)}))},getRequiredNamespaces:function(){return Nc([...o.initialOptions.ns||[o.initialOptions.defaultNs],...o.activeNamespaces.keys()])},getFallbackLangs:function(e){const t=e||a();return t?Nc([t,...Ac(t,o.initialOptions.fallbackLanguage)]):[]},getFallbackNamespaces:function(){const e=o.initialOptions.defaultNs;return Nc([..."string"==typeof e?[e]:[],...Mc(o.initialOptions.fallbackNs)])},getAvailableLanguages:function(){if(o.initialOptions.availableLanguages)return o.initialOptions.availableLanguages;if(o.initialOptions.staticData){const e=Object.keys(o.initialOptions.staticData).map((e=>zc(e).language));return Array.from(new Set(e))}},withDefaultNs:function(e){return{namespace:void 0===e.namespace?l().defaultNs:e.namespace,language:e.language}},overrideCredentials:function(e){r=e},setObserverOptions:function(e){i=Kc(e)},getObserverOptions:function(){return i}})})(t.onLanguageChange,t.onPendingLanguageChange,t.onRunningChange),i=Vc(o.getLanguage,o.getInitialOptions,o.getObserverOptions,o.getAvailableLanguages,(function({key:e,ns:t}){const n=void 0!==t?Mc(t):o.getFallbackNamespaces(),r=o.getFallbackLangs();return a.getTranslationNs(n,r,e)}),p,l),a=$c(t.onCacheChange,i.getBackendRecord,i.getBackendDevRecord,o.withDefaultNs,o.isInitialLoading,n,r);function l(e,t,n){const r=o.withDefaultNs(e),i=a.getTranslation(r,t);return a.changeTranslation(r,t,n),{revert:()=>{a.changeTranslation(r,t,i)}}}function s(e){o.init(e),a.addStaticData(o.getInitialOptions().staticData)}function u(e){return a.isLoading(o.getLanguage(),e)}function c(){return Boolean(o.getInitialOptions().apiKey&&o.getInitialOptions().apiUrl&&i.getDevBackend())}function d(e,t){const n=function(e,t){const n=o.getFallbackLangs(e),r=void 0!==t?Mc(t):o.getRequiredNamespaces(),i=[];return n.forEach((e=>{r.forEach((t=>{a.exists({language:e,namespace:t},!0)||i.push({language:e,namespace:t})}))})),i}(e,t);if(n.length)return Wc(h(n),(()=>{}))}function p({key:e,ns:t}){const n=void 0!==t?Mc(t):o.getFallbackNamespaces(),r=o.getFallbackLangs();return a.getTranslationFallback(n,r,e)}function f(){const e=Wc(function(){if(o.getLanguage())return;if(!o.getInitialOptions().defaultLanguage)throw new Error(Uc("defaultLanguage"));const e=i.getInitialLanguage();return Wc(e,(e=>{const t=e||o.getInitialOptions().defaultLanguage;t&&o.setLanguage(t)}))}(),(()=>d()));if(Bc(e))return o.setInitialLoading(!0),n.notify(),r.notify(),Promise.resolve(e).then((()=>{o.setInitialLoading(!1),n.notify(),r.notify(),t.onInitialLoaded.emit()}));t.onInitialLoaded.emit()}function h(e){return a.loadRecords(e,c())}e&&s(e),t.onKeyUpdate.listen((()=>{o.isRunning()&&i.retranslate()}));return Object.freeze(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),o),i),a),{init:s,changeLanguage:async function(e){o.getPendingLanguage()===e&&o.getLanguage()===e||(o.setPendingLanguage(e),o.isRunning()&&await d(e),e===o.getPendingLanguage()&&(o.setLanguage(e),i.setStoredLanguage(e)))},getTranslation:p,changeTranslation:l,addActiveNs:async function(e,t){t||o.addActiveNs(e),o.isRunning()&&await d(void 0,e)},loadRequiredRecords:d,loadRecords:h,loadRecord:async function(e){return(await h([e]))[0]},isLoading:u,isLoaded:function(e){const t=o.getLanguage();if(!t)return!1;const n=o.getFallbackLangs(t),r=void 0!==e?Mc(e):o.getRequiredNamespaces(),i=[];return n.forEach((e=>{r.forEach((t=>{a.exists({language:e,namespace:t})||i.push({language:e,namespace:t})}))})),0===i.length},t:(...e)=>{const t=Xc(...e),n=p(t);return i.formatTranslation(Object.assign(Object.assign({},t),{translation:n}))},isDev:c,run:function(){let e;return(()=>{const e=i.getLanguageDetector();if(e&&!o.getAvailableLanguages())throw new Error(Uc("availableLanguages"));if(!o.getLanguage()&&!o.getInitialOptions().defaultLanguage)throw e?new Error(Uc("defaultLanguage")):new Error(Uc("language"))})(),o.isRunning()||(c()&&a.invalidate(),o.setRunning(!0),i.run(c()),e=f()),Promise.resolve(e)},stop:function(){o.isRunning()&&(i.stop(),o.setRunning(!1))}}))},Jc=e=>{const t=Zc({options:e}),n=Object.freeze({setFinalFormatter:t.setFinalFormatter,addFormatter:t.addFormatter,setObserver:t.setObserver,hasObserver:t.hasObserver,setUi:t.setUi,hasUi:t.hasUi,setDevBackend:t.setDevBackend,addBackend:t.addBackend,setLanguageDetector:t.setLanguageDetector,setLanguageStorage:t.setLanguageStorage,overrideCredentials:t.overrideCredentials}),r=e=>{const n=t.isRunning();n&&t.stop(),e(),n&&t.run()},o=Object.freeze({on:t.on,onKeyUpdate:t.onKeyUpdate.listenSome,getLanguage:t.getLanguage,getPendingLanguage:t.getPendingLanguage,changeLanguage:t.changeLanguage,changeTranslation:t.changeTranslation,addActiveNs:t.addActiveNs,removeActiveNs:t.removeActiveNs,loadRecords:t.loadRecords,loadRecord:t.loadRecord,addStaticData:t.addStaticData,getRecord:t.getRecord,getAllRecords:t.getAllRecords,isLoaded:t.isLoaded,isInitialLoading:t.isInitialLoading,isLoading:t.isLoading,isFetching:t.isFetching,isRunning:t.isRunning,run:t.run,stop:t.stop,t:t.t,highlight:t.highlight,getInitialOptions:t.getInitialOptions,isDev:t.isDev,wrap:t.wrap,unwrap:t.unwrap,setObserverOptions:e=>(t.setObserverOptions(e),o),use:e=>(e&&r((()=>e(o,n))),o),init:e=>(r((()=>t.init(e))),o)});return o},ed="data-tolgee-restricted",td="_tolgee",nd="_tolgee-highlighter",rd="data-tolgee-key-only",od="__tolgee_dev_tools";function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},id(e,t)}function ad(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,id(e,t)}var ld=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function sd(){return sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sd.apply(this,arguments)}var ud="undefined"==typeof window;function cd(){}function dd(e){return"number"==typeof e&&e>=0&&e!==1/0}function pd(e){return Array.isArray(e)?e:[e]}function fd(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hd(e,t,n){return Cd(e)?"function"==typeof t?sd({},n,{queryKey:e,queryFn:t}):sd({},t,{queryKey:e}):e}function md(e,t,n){return Cd(e)?[sd({},t,{queryKey:e}),n]:[e||{},t]}function vd(e,t){var n=e.active,r=e.exact,o=e.fetching,i=e.inactive,a=e.predicate,l=e.queryKey,s=e.stale;if(Cd(l))if(r){if(t.queryHash!==yd(l,t.options))return!1}else if(!xd(t.queryKey,l))return!1;var u=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,i);if("none"===u)return!1;if("all"!==u){var c=t.isActive();if("active"===u&&!c)return!1;if("inactive"===u&&c)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(("boolean"!=typeof o||t.isFetching()===o)&&!(a&&!a(t)))}function gd(e,t){var n=e.exact,r=e.fetching,o=e.predicate,i=e.mutationKey;if(Cd(i)){if(!t.options.mutationKey)return!1;if(n){if(bd(t.options.mutationKey)!==bd(i))return!1}else if(!xd(t.options.mutationKey,i))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function yd(e,t){return((null==t?void 0:t.queryKeyHashFn)||bd)(e)}function bd(e){var t,n=pd(e);return t=n,JSON.stringify(t,(function(e,t){return Ed(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function xd(e,t){return wd(pd(e),pd(t))}function wd(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!wd(e[n],t[n])})))}function kd(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||Ed(e)&&Ed(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{},l=0,s=0;s<i;s++){var u=n?s:o[s];a[u]=kd(e[u],t[u]),a[u]===e[u]&&l++}return r===i&&l===r?e:a}return t}function Ed(e){if(!Sd(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!Sd(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Sd(e){return"[object Object]"===Object.prototype.toString.call(e)}function Cd(e){return"string"==typeof e||Array.isArray(e)}function Od(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function Pd(){if("function"==typeof AbortController)return new AbortController}var Rd=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!ud&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}ad(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(ld)),Td=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!ud&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}ad(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(ld));function Ld(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Md(e){return"function"==typeof(null==e?void 0:e.cancel)}var Ad=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function Nd(e){return e instanceof Ad}var _d=function(e){var t,n,r,o,i=this,a=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){a=!0},this.continueRetry=function(){a=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){r=e,o=t}));var l=function(t){i.isResolved||(i.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),r(t))},s=function(t){i.isResolved||(i.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),o(t))};!function r(){if(!i.isResolved){var o;try{o=e.fn()}catch(e){o=Promise.reject(e)}t=function(e){if(!i.isResolved&&(s(new Ad(e)),null==i.abort||i.abort(),Md(o)))try{o.cancel()}catch(e){}},i.isTransportCancelable=Md(o),Promise.resolve(o).then(l).catch((function(t){var o,l;if(!i.isResolved){var u,c=null!=(o=e.retry)?o:3,d=null!=(l=e.retryDelay)?l:Ld,p="function"==typeof d?d(i.failureCount,t):d,f=!0===c||"number"==typeof c&&i.failureCount<c||"function"==typeof c&&c(i.failureCount,t);if(!a&&f)i.failureCount++,null==e.onFail||e.onFail(i.failureCount,t),(u=p,new Promise((function(e){setTimeout(e,u)}))).then((function(){if(!Rd.isFocused()||!Td.isOnline())return new Promise((function(t){n=t,i.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,i.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){a?s(t):r()}));else s(t)}}))}}()},jd=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):Od((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&Od((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}(),Id=new jd,Fd=console;function zd(){return Fd}var Dd=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=sd({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),dd(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,i))?i=o:!1!==this.options.structuralSharing&&(i=kd(o,i)),this.dispatch({data:i,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),i},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(cd).catch(cd):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!fd(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,i=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var s=pd(this.queryKey),u=Pd(),c={queryKey:s,pageParam:void 0,meta:this.meta};Object.defineProperty(c,"signal",{enumerable:!0,get:function(){if(u)return i.abortSignalConsumed=!0,u.signal}});var d,p,f={fetchOptions:t,options:this.options,queryKey:s,state:this.state,fetchFn:function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(c)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(d=this.options.behavior)||d.onFetch(f));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=f.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(p=f.fetchOptions)?void 0:p.meta});return this.retryer=new _d({fn:f.fetchFn,abort:null==u||null==(o=u.abort)?void 0:o.bind(u),onSuccess:function(e){i.setData(e),null==i.cache.config.onSuccess||i.cache.config.onSuccess(e,i),0===i.cacheTime&&i.optionalRemove()},onError:function(e){Nd(e)&&e.silent||i.dispatch({type:"error",error:e}),Nd(e)||(null==i.cache.config.onError||i.cache.config.onError(e,i),zd().error(e)),0===i.cacheTime&&i.optionalRemove()},onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),Id.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,r;switch(t.type){case"failed":return sd({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return sd({},e,{isPaused:!0});case"continue":return sd({},e,{isPaused:!1});case"fetch":return sd({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return sd({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;return Nd(o)&&o.revert&&this.revertState?sd({},this.revertState):sd({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return sd({},e,{isInvalidated:!0});case"setState":return sd({},e,t.state);default:return e}},e}(),$d=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}ad(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,i=null!=(r=t.queryHash)?r:yd(o,t),a=this.get(i);return a||(a=new Dd({cache:this,queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(a)),a},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;Id.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=md(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return vd(n,e)}))},n.findAll=function(e,t){var n=md(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return vd(n,e)})):this.queries},n.notify=function(e){var t=this;Id.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;Id.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;Id.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(ld),Bd=function(){function e(e){this.options=sd({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||Wd(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(cd).catch(cd)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),zd().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new _d({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return sd({},e,{failureCount:e.failureCount+1});case"pause":return sd({},e,{isPaused:!0});case"continue":return sd({},e,{isPaused:!1});case"loading":return sd({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return sd({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return sd({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return sd({},e,t.state);default:return e}}(this.state,e),Id.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function Wd(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}var Ud=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}ad(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new Bd({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;Id.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return gd(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return gd(e,t)}))},n.notify=function(e){var t=this;Id.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return Id.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(cd)}))}),Promise.resolve())}))},t}(ld);function Vd(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var qd=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new $d,this.mutationCache=e.mutationCache||new Ud,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=Rd.subscribe((function(){Rd.isFocused()&&Td.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=Td.subscribe((function(){Rd.isFocused()&&Td.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=md(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(sd({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=hd(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return Id.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var o=e.queryKey;return[o,r.setQueryData(o,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=md(e,t)[0],r=this.queryCache;Id.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var r=this,o=md(e,t,n),i=o[0],a=o[1],l=this.queryCache,s=sd({},i,{active:!0});return Id.batch((function(){return l.findAll(i).forEach((function(e){e.reset()})),r.refetchQueries(s,a)}))},t.cancelQueries=function(e,t,n){var r=this,o=md(e,t,n),i=o[0],a=o[1],l=void 0===a?{}:a;void 0===l.revert&&(l.revert=!0);var s=Id.batch((function(){return r.queryCache.findAll(i).map((function(e){return e.cancel(l)}))}));return Promise.all(s).then(cd).catch(cd)},t.invalidateQueries=function(e,t,n){var r,o,i,a=this,l=md(e,t,n),s=l[0],u=l[1],c=sd({},s,{active:null==(r=null!=(o=s.refetchActive)?o:s.active)||r,inactive:null!=(i=s.refetchInactive)&&i});return Id.batch((function(){return a.queryCache.findAll(s).forEach((function(e){e.invalidate()})),a.refetchQueries(c,u)}))},t.refetchQueries=function(e,t,n){var r=this,o=md(e,t,n),i=o[0],a=o[1],l=Id.batch((function(){return r.queryCache.findAll(i).map((function(e){return e.fetch(void 0,sd({},a,{meta:{refetchPage:null==i?void 0:i.refetchPage}}))}))})),s=Promise.all(l).then(cd);return(null==a?void 0:a.throwOnError)||(s=s.catch(cd)),s},t.fetchQuery=function(e,t,n){var r=hd(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(cd).catch(cd)},t.fetchInfiniteQuery=function(e,t,n){var r=hd(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,o,i,a,l,s,u,c=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,d=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,p=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),h="backward"===(null==d?void 0:d.direction),m=(null==(i=e.state.data)?void 0:i.pages)||[],v=(null==(a=e.state.data)?void 0:a.pageParams)||[],g=Pd(),y=null==g?void 0:g.signal,b=v,x=!1,w=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},k=function(e,t,n,r){return b=r?[t].concat(b):[].concat(b,[t]),r?[n].concat(e):[].concat(e,[n])},E=function(t,n,r,o){if(x)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var i={queryKey:e.queryKey,signal:y,pageParam:r,meta:e.meta},a=w(i),l=Promise.resolve(a).then((function(e){return k(t,r,e,o)}));return Md(a)&&(l.cancel=a.cancel),l};if(m.length)if(f){var S=void 0!==p,C=S?p:Vd(e.options,m);l=E(m,S,C)}else if(h){var O=void 0!==p,P=O?p:(s=e.options,u=m,null==s.getPreviousPageParam?void 0:s.getPreviousPageParam(u[0],u));l=E(m,O,P,!0)}else!function(){b=[];var t=void 0===e.options.getNextPageParam,n=!c||!m[0]||c(m[0],0,m);l=n?E([],t,v[0]):Promise.resolve(k([],v[0],m[0]));for(var r=function(n){l=l.then((function(r){if(!c||!m[n]||c(m[n],n,m)){var o=t?v[n]:Vd(e.options,r);return E(r,t,o)}return Promise.resolve(k(r,v[n],m[n]))}))},o=1;o<m.length;o++)r(o)}();else l=E([]);var R=l.then((function(e){return{pages:e,pageParams:b}}));return R.cancel=function(){x=!0,null==g||g.abort(),Md(l)&&l.cancel()},R}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(cd).catch(cd)},t.cancelMutations=function(){var e=this,t=Id.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(cd).catch(cd)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return bd(e)===bd(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return xd(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return bd(e)===bd(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return xd(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=sd({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=yd(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:sd({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),Hd=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}ad(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),Kd(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return Qd(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return Qd(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var o=this.hasListeners();o&&Gd(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var i=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},o=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return o(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&o("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var o=t.subscribe((function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(sd({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(cd)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!ud&&!this.currentResult.isStale&&dd(this.options.staleTime)){var t=fd(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!ud&&!1!==this.options.enabled&&dd(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||Rd.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,l=this.currentResultOptions,s=e!==r,u=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,d=e.state,p=d.dataUpdatedAt,f=d.error,h=d.errorUpdatedAt,m=d.isFetching,v=d.status,g=!1,y=!1;if(t.optimisticResults){var b=this.hasListeners(),x=!b&&Kd(e,t),w=b&&Gd(e,r,t,o);(x||w)&&(m=!0,p||(v="loading"))}if(t.keepPreviousData&&!d.dataUpdateCount&&(null==c?void 0:c.isSuccess)&&"error"!==v)n=c.data,p=c.dataUpdatedAt,v=c.status,g=!0;else if(t.select&&void 0!==d.data)if(i&&d.data===(null==a?void 0:a.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(d.data),!1!==t.structuralSharing&&(n=kd(null==i?void 0:i.data,n)),this.selectResult=n,this.selectError=null}catch(e){zd().error(e),this.selectError=e}else n=d.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===v||"idle"===v)){var k;if((null==i?void 0:i.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))k=i.data;else if(k="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==k)try{k=t.select(k),!1!==t.structuralSharing&&(k=kd(null==i?void 0:i.data,k)),this.selectError=null}catch(e){zd().error(e),this.selectError=e}void 0!==k&&(v="success",n=k,y=!0)}return this.selectError&&(f=this.selectError,n=this.selectResult,h=Date.now(),v="error"),{status:v,isLoading:"loading"===v,isSuccess:"success"===v,isError:"error"===v,isIdle:"idle"===v,data:n,dataUpdatedAt:p,error:f,errorUpdatedAt:h,failureCount:d.fetchFailureCount,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==v,isLoadingError:"error"===v&&0===d.dataUpdatedAt,isPlaceholderData:y,isPreviousData:g,isRefetchError:"error"===v&&0!==d.dataUpdatedAt,isStale:Yd(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,o=n.notifyOnChangePropsExclusions;if(!r&&!o)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var i="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],l=null==i?void 0:i.some((function(e){return e===n})),s=null==o?void 0:o.some((function(e){return e===n}));return a&&!s&&(!i||l)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!function(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(sd({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||Nd(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;Id.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(ld);function Kd(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&Qd(e,t,t.refetchOnMount)}function Qd(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&Yd(e,t)}return!1}function Gd(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&Yd(e,n)}function Yd(e,t){return e.isStaleByTime(t.staleTime)}var Xd=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}ad(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,sd({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},t=sd({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;Id.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(ld),Zd=vc.unstable_batchedUpdates;Id.setBatchNotifyFunction(Zd);var Jd=console;Fd=Jd;var ep=X.createContext(void 0),tp=X.createContext(!1);function np(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ep),window.ReactQueryClientContext):ep}var rp=function(){var e=X.useContext(np(X.useContext(tp)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},op=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,o=e.children;X.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var i=np(r);return X.createElement(tp.Provider,{value:r},X.createElement(i.Provider,{value:t},o))};var ip,ap=X.createContext((ip=!1,{clearReset:function(){ip=!1},reset:function(){ip=!0},isReset:function(){return ip}}));function lp(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}function sp(e,t,n){var r=X.useRef(!1),o=X.useState(0)[1],i=function(e,t,n){return Cd(e)?"function"==typeof t?sd({},n,{mutationKey:e,mutationFn:t}):sd({},t,{mutationKey:e}):"function"==typeof e?sd({},t,{mutationFn:e}):sd({},e)}(e,t,n),a=rp(),l=X.useRef();l.current?l.current.setOptions(i):l.current=new Xd(a,i);var s=l.current.getCurrentResult();X.useEffect((function(){r.current=!0;var e=l.current.subscribe(Id.batchCalls((function(){r.current&&o((function(e){return e+1}))})));return function(){r.current=!1,e()}}),[]);var u=X.useCallback((function(e,t){l.current.mutate(e,t).catch(cd)}),[]);if(s.error&&lp(void 0,l.current.options.useErrorBoundary,[s.error]))throw s.error;return sd({},s,{mutate:u,mutateAsync:s.mutate})}function up(e,t){var n=X.useRef(!1),r=X.useState(0)[1],o=rp(),i=X.useContext(ap),a=o.defaultQueryObserverOptions(e);a.optimisticResults=!0,a.onError&&(a.onError=Id.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=Id.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=Id.batchCalls(a.onSettled)),a.suspense&&("number"!=typeof a.staleTime&&(a.staleTime=1e3),0===a.cacheTime&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&(i.isReset()||(a.retryOnMount=!1));var l=X.useState((function(){return new t(o,a)}))[0],s=l.getOptimisticResult(a);if(X.useEffect((function(){n.current=!0,i.clearReset();var e=l.subscribe(Id.batchCalls((function(){n.current&&r((function(e){return e+1}))})));return l.updateResult(),function(){n.current=!1,e()}}),[i,l]),X.useEffect((function(){l.setOptions(a,{listeners:!1})}),[a,l]),a.suspense&&s.isLoading)throw l.fetchOptimistic(a).then((function(e){var t=e.data;null==a.onSuccess||a.onSuccess(t),null==a.onSettled||a.onSettled(t,null)})).catch((function(e){i.clearReset(),null==a.onError||a.onError(e),null==a.onSettled||a.onSettled(void 0,e)}));if(s.isError&&!i.isReset()&&!s.isFetching&&lp(a.suspense,a.useErrorBoundary,[s.error,l.getCurrentQuery()]))throw s.error;return"tracked"===a.notifyOnChangeProps&&(s=l.trackResult(s,a)),s}function cp(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".indexOf(e);if(-1===t)throw new Error("Invalid character found: "+e);return t}function dp(e){for(var t=(e=e.toUpperCase()).length,n=0,r=0,o=0,i=new Uint8Array(5*t/8|0),a=0;a<t;a++)r=r<<5|cp(e[a]),(n+=5)>=8&&(i[o++]=r>>>n-8&255,n-=8);return function(e){for(var t=new Uint8Array(e),n=t.length,r="",o=Math.pow(2,16)-1,i=0;i<n;i+=o)i+o>n&&(o=n-i),r+=String.fromCharCode.apply(null,t.subarray(i,i+o));return r}(i.buffer)}function pp(e){if(e)try{var t=u(e.split("_"),2),n=t[0],r=t[1];if("tgpak"===n){var o=u(dp(r).split("_"),1)[0];return Number(o)}}catch(e){console.warn("Tolgee: Api key can't be parsed")}}function fp(e){return a(this,void 0,void 0,(function(){var t;return l(this,(function(n){switch(n.label){case 0:return[4,e.text()];case 1:t=n.sent();try{return[2,JSON.parse(t)]}catch(e){return[2,t]}return[2]}}))}))}var hp=function(e){return e?Object.entries(e).reduce((function(e,t){var n,r=u(t,2),i=r[0],a=r[1];return Array.isArray(a)||"object"!=typeof a?o(o({},e),((n={})[i]=a,n)):o(o({},e),hp(a))}),{}):{}};function mp(e,t,n){return a(this,void 0,void 0,(function(){var r=this;return l(this,(function(i){if(void 0===t.apiUrl)throw"Api url not specified";if(void 0===t.apiKey)throw"Api key not specified";return(n=n||{}).headers=n.headers||{},n.headers=o(o({},n.headers),{"X-API-Key":t.apiKey}),[2,fetch(t.apiUrl+e,n).then((function(e){return a(r,void 0,void 0,(function(){var t,n;return l(this,(function(r){switch(r.label){case 0:return e.ok?[3,2]:[4,fp(e)];case 1:throw t=r.sent(),n="".concat(e.status,": ").concat((null==t?void 0:t.message)||"Error status code from server"),new Error(n);case 2:return[4,fp(e)];case 3:return[2,r.sent()]}}))}))})).catch((function(e){throw e.message||"Failed to fetch"}))]}))}))}function vp(e,t,n,r){var o,i;return a(this,void 0,void 0,(function(){var a,s,c,d,p,f,h,m,v,g;return l(this,(function(l){var y;return a=(null==n?void 0:n.path)||{},s=e,void 0!==(c=pp(r.apiKey))&&(a.projectId=c,s=function(e){return e.replace("/projects/","/projects/{projectId}/")}(s)),a&&Object.entries(a).forEach((function(e){var t=u(e,2),n=t[0],r=t[1];s=s.replace("{".concat(n,"}"),r)})),d=null===(o=null==n?void 0:n.content)||void 0===o?void 0:o["multipart/form-data"],p=void 0,d&&(p=new FormData,Object.entries(d).forEach((function(e){var t=u(e,2),n=t[0],r=t[1];if(Array.isArray(r)){var o=void 0;return"[object File]"===Object.prototype.toString.call(r)&&(o=r.name),void r.forEach((function(e){return null==p?void 0:p.append(n,e,o)}))}null==p||p.append(n,r)}))),f=JSON.stringify(null===(i=null==n?void 0:n.content)||void 0===i?void 0:i["application/json"]),h=null==n?void 0:n.query,m="",v=hp(h),y=v,g=Object.keys(y).filter((function(e){return!!y[e]})).map((function(e){return Array.isArray(y[e])?y[e].map((function(t){return encodeURIComponent(e)+"="+encodeURIComponent(t)})).join("&"):encodeURIComponent(e)+"="+encodeURIComponent(y[e])})).join("&"),g&&(m="?"+g),[2,mp(s+m,r,{method:t,body:p||f,headers:f?{"Content-Type":"application/json"}:void 0})]}))}))}var gp,yp=new qd({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1,cacheTime:0,staleTime:0}}}),bp=X.createContext({}),xp=function(e){var t=e.children,n=e.apiUrl,r=e.apiKey;return X.createElement(bp.Provider,{value:{apiUrl:n,apiKey:r}},X.createElement(op,{client:yp},t))},wp=function(e){var t=e.url,n=e.method,r=e.options,o=i(e,["url","method","options"]),a=h.exports.useContext(bp);return up(hd([t,null==o?void 0:o.path,null==o?void 0:o.query],(function(){return vp(t,n,o,a)}),r),Hd)},kp=function(e){var t=rp(),n=e.url,r=e.method,i=e.options,a=e.invalidatePrefix,l=h.exports.useContext(bp),s=sp((function(e){return vp(n,r,e,l)}),i),d=function(e){return o(o({},e),{onSuccess:function(){for(var n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];void 0!==a&&Ep(t,a),null===(n=null==e?void 0:e.onSuccess)||void 0===n||n.call.apply(n,c([e],u(r),!1))}})},p=h.exports.useCallback((function(e,t){return s.mutate(e,d(t))}),[s.mutate]),f=h.exports.useCallback((function(e,t){return s.mutateAsync(e,d(t))}),[s.mutateAsync]);return o(o({},s),{mutate:p,mutateAsync:f})},Ep=function(e,t){return e.invalidateQueries(function(e){return{predicate:function(t){var n;return null===(n=t.queryKey[0])||void 0===n?void 0:n.startsWith(e)}}}(t))},Sp=function(e){for(var t=[],n=0;n<e.length;n++)"file"===e[n].kind&&t.push(e[n].getAsFile());return t};function Cp(e,t){return Boolean(null==t?void 0:t.includes(e))}function Op(){try{return JSON.parse(localStorage.getItem(bc)||"")}catch(e){return[]}}function Pp(e){var t=this,n=e.message,r=e.recievingMessage,o=e.data,i=e.attempts,s=void 0===i?1:i,u=!1,c=function(){return new Promise((function(e,t){var i=function(e,t){var n=function(n){var r,o;e.includes(null===(r=n.data)||void 0===r?void 0:r.type)&&t(null===(o=n.data)||void 0===o?void 0:o.data)};return window.addEventListener("message",n,!1),{unsubscribe:function(){window.removeEventListener("message",n)}}}(r,(function(t){clearTimeout(a),l(),e(t)}));window.postMessage({type:n,data:o},window.origin);var a=setTimeout((function(){l(),t()}),300);function l(){i.unsubscribe()}}))};return{cancel:function(){return u=!0},promise:new Promise((function(e,n){return a(t,void 0,void 0,(function(){var t,o;return l(this,(function(i){switch(i.label){case 0:t=0,i.label=1;case 1:if(!(t<s))return[3,6];if(u)return[2];i.label=2;case 2:return i.trys.push([2,4,,5]),[4,c()];case 3:return o=i.sent(),e(o),[2];case 4:return i.sent(),[3,5];case 5:return t++,[3,1];case 6:return u||n("Didn't recieve ".concat(r.join(" or ")," in time.")),[2]}}))}))}))}}var Rp,Tp,Lp,Mp=(gp=u((Rp=function(e){var t,n,r,i,s,d,p,f,m,v,g,y,b,x=u(h.exports.useState(),2),w=x[0],k=x[1],E=u(h.exports.useState(!1),2),S=E[0],C=E[1],O=u(h.exports.useState(!1),2),P=O[0],R=O[1],T=u(h.exports.useState({}),2),L=T[0],M=T[1],A=u(h.exports.useState(void 0),2),N=A[0],_=A[1],j=u(h.exports.useState(!1),2),I=j[0],F=j[1],z=u(h.exports.useState(Mc(e.ns)[0]),2),D=z[0],$=z[1],B=wp({url:"/v2/api-keys/current",method:"get"});h.exports.useEffect((function(){(function(){return a(this,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,Pp({message:"TOLGEE_PING",recievingMessage:["TOLGEE_PONG"],attempts:2}).promise];case 1:return e.sent(),[2,!0];case 2:return e.sent(),[2,!1];case 3:return[2]}}))}))})().then((function(e){return _(e)}))}),[]);var W=wp({url:"/v2/projects/languages",method:"get",options:{onSuccess:function(e){var t,n,r,o;H((r=(null===(n=null===(t=e._embedded)||void 0===t?void 0:t.languages)||void 0===n?void 0:n.map((function(e){return e.tag})))||[],o=Op().filter((function(e){return r.includes(e)})),0===o.length&&(o=r),o.slice(0,5)))}}}),U=h.exports.useMemo((function(){var e,t,n,r;return n=null===(t=null===(e=W.data)||void 0===e?void 0:e._embedded)||void 0===t?void 0:t.languages,r=null==n?void 0:n.find((function(e){return e.base})),r?c([r],u((n||[]).filter((function(e){return e!==r}))),!1):n}),[W.data]),V=u(h.exports.useState([]),2),q=V[0],H=V[1],K=function(t){var n=t.map((function(t){var n=u(t,2),r=n[0],o=n[1];return e.uiProps.changeTranslation({language:r,namespace:D},e.keyName,o)}));return{revert:function(){return n.forEach((function(e){return e.revert()}))}}},Q=wp({url:"/v2/projects/translations",method:"get",query:{filterKeyName:[e.keyName],languages:q},options:{keepPreviousData:!0,enabled:Boolean(q.length),onSuccess:function(e){var t,n,r,i,a,l={};Object.entries((null===(n=null===(t=e._embedded)||void 0===t?void 0:t.keys)||void 0===n?void 0:n[0].translations)||{}).forEach((function(e){var t=u(e,2),n=t[0],r=t[1];l[n]=r.text||""})),M(l),ue((null===(a=null===(i=null===(r=e._embedded)||void 0===r?void 0:r.keys)||void 0===i?void 0:i[0].screenshots)||void 0===a?void 0:a.map((function(e){return o(o({},e),{justUploaded:!1})})))||[])}}}),G=kp({url:"/v2/image-upload",method:"post",options:{onSuccess:function(e){ue((function(t){return c(c([],u(t),!1),[o(o({},e),{justUploaded:!0})],!1)}))}}}),Y=kp({url:"/v2/image-upload/{ids}",method:"delete"}),X=kp({url:"/v2/projects/keys/create",method:"post"}),Z=kp({url:"/v2/projects/keys/{id}/complex-update",method:"put"}),J=null===(r=null===(n=null===(t=Q.data)||void 0===t?void 0:t._embedded)||void 0===n?void 0:n.keys)||void 0===r?void 0:r[0],ee=void 0!==(null===(i=B.data)||void 0===i?void 0:i.projectId)?"".concat(e.uiProps.apiUrl,"/projects/").concat(null===(s=B.data)||void 0===s?void 0:s.projectId,"/translations/single?key=").concat(e.keyName):void 0,te=u(h.exports.useState(void 0),2),ne=te[0],re=te[1],oe=u(h.exports.useState(!1),2),ie=oe[0],ae=oe[1],le=u(h.exports.useState([]),2),se=le[0],ue=le[1],ce=u(h.exports.useState(null),2),de=ce[0],pe=ce[1],fe=null===(d=B.data)||void 0===d?void 0:d.permittedLanguageIds,he=function(e){return G.mutate({content:{"multipart/form-data":{image:e}}})},me=function(t){return a(void 0,void 0,void 0,(function(){var n,r,i,a,s,c,d,p,f,h,m;return l(this,(function(l){switch(l.label){case 0:switch(t.type){case"ON_INPUT_CHANGE":return[3,1];case"HANDLE_UPLOAD_IMAGES":return[3,2];case"HANDLE_TAKE_SCREENSHOT":return[3,4];case"HANDLE_REMOVE_SCREENSHOT":return[3,12];case"ON_SAVE":return[3,13];case"ON_CLOSE":return[3,25];case"ON_SELECTED_LANGUAGES_CHANGE":return[3,26];case"SET_CONTAINER":return[3,27];case"SET_USE_BROWSER_WINDOW":return[3,28];case"OPEN_SCREENSHOT_DETAIL":return[3,29];case"CLOSE_SCREENSHOT_DETAIL":return[3,30];case"SELECTED_NS_CHANGE":return[3,31]}return[3,32];case 1:return C(!1),F(!0),M(o(o({},L),((m={})[t.payload.key]=t.payload.value,m))),$(Mc(e.ns)[0]),[3,32];case 2:return[4,Promise.all(t.payload.files.map((function(e){return he(e)})))];case 3:return l.sent(),[3,32];case 4:return R(!0),n=e.uiProps.highlight(e.keyName,D).unhighlight,r=K(Object.entries(L)).revert,[4,wc(100)];case 5:l.sent(),c=void 0,l.label=6;case 6:return l.trys.push([6,8,9,10]),[4,Pp({message:"TOLGEE_TAKE_SCREENSHOT",recievingMessage:["TOLGEE_SCREENSHOT_TAKEN"]}).promise];case 7:return c=l.sent(),[3,10];case 8:return i=l.sent(),console.error(i),[3,32];case 9:return r(),n(),R(!1),[7];case 10:return[4,fetch(c).then((function(e){return e.blob()}))];case 11:return a=l.sent(),he(a),[3,32];case 12:return s=t.payload.id,c=se.find((function(e){return e.id===s})),(null==c?void 0:c.justUploaded)&&Y.mutate({path:{ids:[c.id]}}),ue(se.filter((function(e){return e.id!==s}))),[3,32];case 13:return l.trys.push([13,22,23,24]),d={},Object.entries(L).forEach((function(e){var t=u(e,2),n=t[0],r=t[1];Rc(n,fe,U)&&(d[n]=r)})),void 0!==J?[3,15]:[4,X.mutateAsync({content:{"application/json":{name:e.keyName,translations:d,screenshotUploadedImageIds:se.map((function(e){return e.id}))}}})];case 14:return l.sent(),[3,17];case 15:return[4,Z.mutateAsync({content:{"application/json":{name:e.keyName,translations:d,screenshotIdsToDelete:ge(),screenshotUploadedImageIds:ve()}},path:{id:J.keyId}})];case 16:l.sent(),l.label=17;case 17:return K(Object.entries(d)),k([D]),Q.refetch(),C(!0),ie?[4,wc(2e3)]:[3,19];case 18:return l.sent(),C(!1),[3,21];case 19:return[4,wc(400)];case 20:l.sent(),e.onClose(),l.label=21;case 21:return[3,24];case 22:return p=l.sent(),console.error(p),[3,24];case 23:return C(!1),[7];case 24:return[3,32];case 25:return de?pe(null):(e.onClose(),ae(!1),(f=ve()).length&&Y.mutate({path:{ids:f}}),ue([])),[3,32];case 26:return(h=t.payload.languages).length&&(H(h),function(e){localStorage.setItem(bc,JSON.stringify(e))}(h)),[3,32];case 27:return re(t.payload),[3,32];case 28:return ae(t.payload),[3,32];case 29:return pe(t.payload),[3,32];case 30:return pe(null),[3,32];case 31:return $(t.payload.ns),[3,32];case 32:return[2]}}))}))};h.exports.useEffect((function(){var e=function(e){"Escape"===e.key&&me({type:"ON_ESCAPE"})};if(!ie)return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[ie]);var ve=function(){return se.filter((function(e){return e.justUploaded})).map((function(e){return e.id}))},ge=function(){var e;return(null===(e=null==J?void 0:J.screenshots)||void 0===e?void 0:e.map((function(e){return e.id})).filter((function(e){return!se.find((function(t){return t.id===e}))})))||[]};h.exports.useEffect((function(){var t;if(e.defaultValue&&U&&q&&L){var n=U.find((function(e){return e.base}));if(n&&q.includes(n.tag)&&!I){var r=void 0!==(null==J?void 0:J.translations[n.tag]);L[n.tag]||r||M(o(o({},L),((t={})[n.tag]=e.defaultValue,t)))}}}),[U,L,q,e.defaultValue]);var ye,be,xe=null==U?void 0:U.find((function(e){return e.base})),we=W.isFetching||Q.isLoading&&!Q.data||B.isFetching,ke=Z.isLoading||X.isLoading,Ee=W.error||Q.error||B.error,Se=G.isLoading,Ce=null===(p=B.data)||void 0===p?void 0:p.scopes,Oe=we||((null===(v=null===(m=null===(f=Q.data)||void 0===f?void 0:f._embedded)||void 0===m?void 0:m.keys)||void 0===v?void 0:v.length)?!Cp("translations.edit",Ce):!Cp("keys.edit",Ce)),Pe=Boolean(null===(b=null===(y=null===(g=Q.data)||void 0===g?void 0:g._embedded)||void 0===y?void 0:y.keys)||void 0===b?void 0:b.length);return[{input:e.keyName,open:e.open,ns:w||e.ns,selectedNs:D,loading:we,saving:ke,success:S,error:Ee,availableLanguages:U,selectedLanguages:(ye=q,be=null==xe?void 0:xe.tag,be&&ye.includes(be)?c([be],u(ye.filter((function(e){return e!==be}))),!1):ye),formDisabled:Oe,translations:J,translationsForm:L,container:ne,useBrowserWindow:ie,pluginAvailable:N,takingScreenshot:P,screenshotsUploading:Se,screenshots:se,screenshotDetail:de,linkToPlatform:ee,keyExists:Pe,scopes:Ce,permittedLanguageIds:fe},me]},Tp=function(e){const t=h.exports.createContext({[Sc]:{v:{current:e},n:{current:-1},l:new Set,u:e=>e()}});var n;return t[Cc]=t.Provider,t.Provider=(n=t.Provider,({value:e,children:t})=>{const r=h.exports.useRef(e),o=h.exports.useRef(0),[i,a]=h.exports.useState(null);i&&(i(e),a(null));const l=h.exports.useRef();if(!l.current){const e=new Set,t=(t,n)=>{J.exports.unstable_batchedUpdates((()=>{o.current+=1;const r={n:o.current};null!=n&&n.suspense&&(r.n*=-1,r.p=new Promise((e=>{a((()=>t=>{r.v=t,delete r.p,e(t)}))}))),e.forEach((e=>e(r))),t()}))};l.current={[Sc]:{v:r,n:o,l:e,u:t}}}return Oc((()=>{r.current=e,o.current+=1,Pc((()=>{l.current[Sc].l.forEach((t=>{t({n:o.current,v:e})}))}))}),[e]),h.exports.createElement(n,{value:l.current},t)}),delete t.Consumer,t}(null),Lp=X.createContext(null),[function(e){var t=e.children,n=i(e,["children"]),r=u(Rp(n),2),o=r[0],a=r[1],l=h.exports.useRef(a);l.current=a;var s=h.exports.useCallback((function(e){var t;return null===(t=l.current)||void 0===t?void 0:t.call(l,e)}),[l]);return X.createElement(Tp.Provider,{value:o},X.createElement(Lp.Provider,{value:s},t))},function(){return X.useContext(Lp)},function(e){return function(e,t){const n=h.exports.useContext(e)[Sc],{v:{current:r},n:{current:o},l:i}=n,a=t(r),[l,s]=h.exports.useReducer(((e,n)=>{if(!n)return[r,a];if("p"in n)throw n.p;if(n.n===o)return Object.is(e[1],a)?e:[r,a];try{if("v"in n){if(Object.is(e[0],n.v))return e;const r=t(n.v);return Object.is(e[1],r)?e:[n.v,r]}}catch(e){}return[...e]}),[r,a]);return Object.is(l[1],a)||s(),Oc((()=>(i.add(s),()=>{i.delete(s)})),[i]),l[1]}(Tp,e)}]),3),gp[0]),Ap=gp[1],Np=gp[2];function _p(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jp.apply(this,arguments)}var Ip={exports:{}};function Fp(){}function zp(){}zp.resetWarningCache=Fp;function Dp(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Dp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function $p(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Dp(e))&&(r&&(r+=" "),r+=t);return r}function Bp(){return Bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bp.apply(this,arguments)}function Wp(e){return"string"==typeof e}function Up(e,t={},n){return Wp(e)?t:Bp({},t,{ownerState:Bp({},t.ownerState,n)})}function Vp(e,t){return"function"==typeof e?e(t):e}function qp(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Hp(){return Hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hp.apply(this,arguments)}function Kp(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Qp(e,t,n={clone:!0}){const r=n.clone?Hp({},e):e;return Kp(e)&&Kp(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Kp(t[o])&&o in e&&Kp(e[o])?r[o]=Qp(e[o],t[o],n):r[o]=t[o])})),r}Ip.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:zp,resetWarningCache:Fp};return n.PropTypes=n,n}();function Gp(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}(Ip.exports.element,()=>null).isRequired=(Ip.exports.element.isRequired,()=>null),Ip.exports.elementType;var Yp,Xp={},Zp=Symbol.for("react.element"),Jp=Symbol.for("react.portal"),ef=Symbol.for("react.fragment"),tf=Symbol.for("react.strict_mode"),nf=Symbol.for("react.profiler"),rf=Symbol.for("react.provider"),of=Symbol.for("react.context"),af=Symbol.for("react.server_context"),lf=Symbol.for("react.forward_ref"),sf=Symbol.for("react.suspense"),uf=Symbol.for("react.suspense_list"),cf=Symbol.for("react.memo"),df=Symbol.for("react.lazy"),pf=Symbol.for("react.offscreen");function ff(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Zp:switch(e=e.type){case ef:case nf:case tf:case sf:case uf:return e;default:switch(e=e&&e.$$typeof){case af:case of:case lf:case df:case cf:case rf:return e;default:return t}}case Jp:return t}}}function hf(e){if("string"!=typeof e)throw new Error(Gp(7));return e.charAt(0).toUpperCase()+e.slice(1)}function mf(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function vf(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function gf(e,t){return h.exports.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function yf(e){return e&&e.ownerDocument||document}function bf(e){return yf(e).defaultView||window}function xf(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Yp=Symbol.for("react.module.reference"),Xp.ContextConsumer=of,Xp.ContextProvider=rf,Xp.Element=Zp,Xp.ForwardRef=lf,Xp.Fragment=ef,Xp.Lazy=df,Xp.Memo=cf,Xp.Portal=Jp,Xp.Profiler=nf,Xp.StrictMode=tf,Xp.Suspense=sf,Xp.SuspenseList=uf,Xp.isAsyncMode=function(){return!1},Xp.isConcurrentMode=function(){return!1},Xp.isContextConsumer=function(e){return ff(e)===of},Xp.isContextProvider=function(e){return ff(e)===rf},Xp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Zp},Xp.isForwardRef=function(e){return ff(e)===lf},Xp.isFragment=function(e){return ff(e)===ef},Xp.isLazy=function(e){return ff(e)===df},Xp.isMemo=function(e){return ff(e)===cf},Xp.isPortal=function(e){return ff(e)===Jp},Xp.isProfiler=function(e){return ff(e)===nf},Xp.isStrictMode=function(e){return ff(e)===tf},Xp.isSuspense=function(e){return ff(e)===sf},Xp.isSuspenseList=function(e){return ff(e)===uf},Xp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ef||e===nf||e===tf||e===sf||e===uf||e===pf||"object"==typeof e&&null!==e&&(e.$$typeof===df||e.$$typeof===cf||e.$$typeof===rf||e.$$typeof===of||e.$$typeof===lf||e.$$typeof===Yp||void 0!==e.getModuleId)},Xp.typeOf=ff,function(e){e.exports=Xp}({exports:{}}),"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Ip.exports.oneOfType([Ip.exports.func,Ip.exports.object]);const wf="undefined"!=typeof window?h.exports.useLayoutEffect:h.exports.useEffect;let kf=0;const Ef=Z.useId;function Sf(e){if(void 0!==Ef){const t=Ef();return null!=e?e:t}return function(e){const[t,n]=h.exports.useState(e),r=e||t;return h.exports.useEffect((()=>{null==t&&(kf+=1,n(`mui-${kf}`))}),[t]),r}(e)}function Cf({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.exports.useRef(void 0!==e),[i,a]=h.exports.useState(t);return[o?e:i,h.exports.useCallback((e=>{o||a(e)}),[])]}function Of(e){const t=h.exports.useRef(e);return wf((()=>{t.current=e})),h.exports.useCallback(((...e)=>(0,t.current)(...e)),[])}function Pf(e,t){return h.exports.useMemo((()=>null==e&&null==t?null:n=>{xf(e,n),xf(t,n)}),[e,t])}let Rf,Tf=!0,Lf=!1;const Mf={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Af(e){e.metaKey||e.altKey||e.ctrlKey||(Tf=!0)}function Nf(){Tf=!1}function _f(){"hidden"===this.visibilityState&&Lf&&(Tf=!0)}function jf(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Tf||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Mf[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function If(){const e=h.exports.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Af,!0),t.addEventListener("mousedown",Nf,!0),t.addEventListener("pointerdown",Nf,!0),t.addEventListener("touchstart",Nf,!0),t.addEventListener("visibilitychange",_f,!0))}),[]),t=h.exports.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!jf(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Lf=!0,window.clearTimeout(Rf),Rf=window.setTimeout((()=>{Lf=!1}),100),t.current=!1,!0)},ref:e}}function Ff(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function zf(){return null}function Df(e,t){const n=Hp({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}function $f(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e)),[]).join(" ")})),r}zf.isRequired=zf;const Bf=e=>e,Wf=(()=>{let e=Bf;return{configure(t){e=t},generate:t=>e(t),reset(){e=Bf}}})(),Uf={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Vf(e,t,n="Mui"){const r=Uf[t];return r?`${n}-${r}`:`${Wf.generate(e)}-${t}`}function qf(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Vf(e,t,n)})),r}function Hf(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Kf(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=$p(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=Bp({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Bp({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(Bp({},o,r)),l=Hf(r),s=Hf(o),u=t(a),c=$p(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Bp({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Bp({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const Qf=["elementType","externalSlotProps","ownerState"];function Gf(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=qp(e,Qf),a=Vp(r,o),{props:l,internalRef:s}=Kf(Bp({},i,{externalSlotProps:a}));return Up(n,Bp({},l,{ref:Pf(s,Pf(null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref))}),o)}var Yf={exports:{}},Xf={},Zf=h.exports,Jf=60103;if(Xf.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var eh=Symbol.for;Jf=eh("react.element"),Xf.Fragment=eh("react.fragment")}var th=Zf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nh=Object.prototype.hasOwnProperty,rh={key:!0,ref:!0,__self:!0,__source:!0};function oh(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)nh.call(t,r)&&!rh.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Jf,type:e,key:i,ref:a,props:o,_owner:th.current}}Xf.jsx=oh,Xf.jsxs=oh,function(e){e.exports=Xf}(Yf);const ih=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ah(e){const t=[],n=[];return Array.from(e.querySelectorAll(ih)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function lh(){return!0}function sh(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=ah,isEnabled:a=lh,open:l}=e,s=h.exports.useRef(),u=h.exports.useRef(null),c=h.exports.useRef(null),d=h.exports.useRef(null),p=h.exports.useRef(null),f=h.exports.useRef(!1),m=h.exports.useRef(null),v=Pf(t.ref,m),g=h.exports.useRef(null);h.exports.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),h.exports.useEffect((()=>{if(!l||!m.current)return;const e=yf(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),h.exports.useEffect((()=>{if(!l||!m.current)return;const e=yf(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!r&&a()&&!s.current){if(!n.contains(e.activeElement)){if(t&&p.current!==t.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];e?n.focus():t.focus()}else n.focus()}}else s.current=!1},n=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,o,a,l,i]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Yf.exports.jsxs(h.exports.Fragment,{children:[Yf.exports.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),h.exports.cloneElement(t,{ref:v,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Yf.exports.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}var uh="top",ch="bottom",dh="right",ph="left",fh="auto",hh=[uh,ch,dh,ph],mh="start",vh="end",gh="viewport",yh="popper",bh=hh.reduce((function(e,t){return e.concat([t+"-"+mh,t+"-"+vh])}),[]),xh=[].concat(hh,[fh]).reduce((function(e,t){return e.concat([t,t+"-"+mh,t+"-"+vh])}),[]),wh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function kh(e){return e?(e.nodeName||"").toLowerCase():null}function Eh(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sh(e){return e instanceof Eh(e).Element||e instanceof Element}function Ch(e){return e instanceof Eh(e).HTMLElement||e instanceof HTMLElement}function Oh(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Eh(e).ShadowRoot||e instanceof ShadowRoot)}var Ph={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];Ch(o)&&kh(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}),{});Ch(r)&&kh(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Rh(e){return e.split("-")[0]}var Th=Math.max,Lh=Math.min,Mh=Math.round;function Ah(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Nh(){return!/^((?!chrome|android).)*safari/i.test(Ah())}function _h(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ch(e)&&(o=e.offsetWidth>0&&Mh(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Mh(r.height)/e.offsetHeight||1);var a=(Sh(e)?Eh(e):window).visualViewport,l=!Nh()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function jh(e){var t=_h(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 Ih(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Oh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Fh(e){return Eh(e).getComputedStyle(e)}function zh(e){return["table","td","th"].indexOf(kh(e))>=0}function Dh(e){return((Sh(e)?e.ownerDocument:e.document)||window.document).documentElement}function $h(e){return"html"===kh(e)?e:e.assignedSlot||e.parentNode||(Oh(e)?e.host:null)||Dh(e)}function Bh(e){return Ch(e)&&"fixed"!==Fh(e).position?e.offsetParent:null}function Wh(e){for(var t=Eh(e),n=Bh(e);n&&zh(n)&&"static"===Fh(n).position;)n=Bh(n);return n&&("html"===kh(n)||"body"===kh(n)&&"static"===Fh(n).position)?t:n||function(e){var t=/firefox/i.test(Ah());if(/Trident/i.test(Ah())&&Ch(e)&&"fixed"===Fh(e).position)return null;var n=$h(e);for(Oh(n)&&(n=n.host);Ch(n)&&["html","body"].indexOf(kh(n))<0;){var r=Fh(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 Uh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vh(e,t,n){return Th(e,Lh(t,n))}function qh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Hh(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Kh={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=Rh(n.placement),s=Uh(l),u=[ph,dh].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return qh("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Hh(e,hh))}(o.padding,n),d=jh(i),p="y"===s?uh:ph,f="y"===s?ch:dh,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],v=Wh(i),g=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=c[p],x=g-d[u]-c[f],w=g/2-d[u]/2+y,k=Vh(b,w,x),E=s;n.modifiersData[r]=((t={})[E]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ih(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qh(e){return e.split("-")[1]}var Gh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,v="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=v.x,m=v.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=ph,x=uh,w=window;if(u){var k=Wh(n),E="clientHeight",S="clientWidth";if(k===Eh(n)&&"static"!==Fh(k=Dh(n)).position&&"absolute"===l&&(E="scrollHeight",S="scrollWidth"),o===uh||(o===ph||o===dh)&&i===vh)x=ch,m-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[E])-r.height,m*=s?1:-1;if(o===ph||(o===uh||o===ch)&&i===vh)b=dh,f-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[S])-r.width,f*=s?1:-1}var C,O=Object.assign({position:l},u&&Gh),P=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Mh(t*r)/r||0,y:Mh(n*r)/r||0}}({x:f,y:m}):{x:f,y:m};return f=P.x,m=P.y,s?Object.assign({},O,((C={})[x]=y?"0":"",C[b]=g?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},O,((t={})[x]=y?m+"px":"",t[b]=g?f+"px":"",t.transform="",t))}var Xh={passive:!0};var Zh={left:"right",right:"left",bottom:"top",top:"bottom"};function Jh(e){return e.replace(/left|right|bottom|top/g,(function(e){return Zh[e]}))}var em={start:"end",end:"start"};function tm(e){return e.replace(/start|end/g,(function(e){return em[e]}))}function nm(e){var t=Eh(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rm(e){return _h(Dh(e)).left+nm(e).scrollLeft}function om(e){var t=Fh(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function im(e){return["html","body","#document"].indexOf(kh(e))>=0?e.ownerDocument.body:Ch(e)&&om(e)?e:im($h(e))}function am(e,t){var n;void 0===t&&(t=[]);var r=im(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Eh(r),a=o?[i].concat(i.visualViewport||[],om(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(am($h(a)))}function lm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sm(e,t,n){return t===gh?lm(function(e,t){var n=Eh(e),r=Dh(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=Nh();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+rm(e),y:s}}(e,n)):Sh(t)?function(e,t){var n=_h(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):lm(function(e){var t,n=Dh(e),r=nm(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Th(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Th(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+rm(e),s=-r.scrollTop;return"rtl"===Fh(o||n).direction&&(l+=Th(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Dh(e)))}function um(e,t,n,r){var o="clippingParents"===t?function(e){var t=am($h(e)),n=["absolute","fixed"].indexOf(Fh(e).position)>=0&&Ch(e)?Wh(e):e;return Sh(n)?t.filter((function(e){return Sh(e)&&Ih(e,n)&&"body"!==kh(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=sm(e,n,r);return t.top=Th(o.top,t.top),t.right=Lh(o.right,t.right),t.bottom=Lh(o.bottom,t.bottom),t.left=Th(o.left,t.left),t}),sm(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function cm(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Rh(o):null,a=o?Qh(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case uh:t={x:l,y:n.y-r.height};break;case ch:t={x:l,y:n.y+n.height};break;case dh:t={x:n.x+n.width,y:s};break;case ph:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Uh(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case mh:t[u]=t[u]-(n[c]/2-r[c]/2);break;case vh:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function dm(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,u=n.rootBoundary,c=void 0===u?gh:u,d=n.elementContext,p=void 0===d?yh:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,v=void 0===m?0:m,g=qh("number"!=typeof v?v:Hh(v,hh)),y=p===yh?"reference":yh,b=e.rects.popper,x=e.elements[h?y:p],w=um(Sh(x)?x:x.contextElement||Dh(e.elements.popper),s,c,a),k=_h(e.elements.reference),E=cm({reference:k,element:b,strategy:"absolute",placement:o}),S=lm(Object.assign({},b,E)),C=p===yh?S:k,O={top:w.top-C.top+g.top,bottom:C.bottom-w.bottom+g.bottom,left:w.left-C.left+g.left,right:C.right-w.right+g.right},P=e.modifiersData.offset;if(p===yh&&P){var R=P[o];Object.keys(O).forEach((function(e){var t=[dh,ch].indexOf(e)>=0?1:-1,n=[uh,ch].indexOf(e)>=0?"y":"x";O[e]+=R[n]*t}))}return O}function pm(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?xh:s,c=Qh(r),d=c?l?bh:bh.filter((function(e){return Qh(e)===c})):hh,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=dm(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Rh(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var fm={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,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,v=t.options.placement,g=Rh(v),y=s||(g===v||!h?[Jh(v)]:function(e){if(Rh(e)===fh)return[];var t=Jh(e);return[tm(e),t,tm(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(Rh(n)===fh?pm(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,k=new Map,E=!0,S=b[0],C=0;C<b.length;C++){var O=b[C],P=Rh(O),R=Qh(O)===mh,T=[uh,ch].indexOf(P)>=0,L=T?"width":"height",M=dm(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),A=T?R?dh:ph:R?ch:uh;x[L]>w[L]&&(A=Jh(A));var N=Jh(A),_=[];if(i&&_.push(M[P]<=0),l&&_.push(M[A]<=0,M[N]<=0),_.every((function(e){return e}))){S=O,E=!1;break}k.set(O,_)}if(E)for(var j=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},I=h?3:1;I>0;I--){if("break"===j(I))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function hm(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 mm(e){return[uh,dh,ch,ph].some((function(t){return e[t]>=0}))}var vm={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=xh.reduce((function(e,n){return e[n]=function(e,t,n){var r=Rh(e),o=[ph,uh].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,[ph,dh].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var gm={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,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,v=dm(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),g=Rh(t.placement),y=Qh(t.placement),b=!y,x=Uh(g),w="x"===x?"y":"x",k=t.modifiersData.popperOffsets,E=t.rects.reference,S=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(k){if(i){var T,L="y"===x?uh:ph,M="y"===x?ch:dh,A="y"===x?"height":"width",N=k[x],_=N+v[L],j=N-v[M],I=f?-S[A]/2:0,F=y===mh?E[A]:S[A],z=y===mh?-S[A]:-E[A],D=t.elements.arrow,$=f&&D?jh(D):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=B[L],U=B[M],V=Vh(0,E[A],$[A]),q=b?E[A]/2-I-V-W-O.mainAxis:F-V-W-O.mainAxis,H=b?-E[A]/2+I+V+U+O.mainAxis:z+V+U+O.mainAxis,K=t.elements.arrow&&Wh(t.elements.arrow),Q=K?"y"===x?K.clientTop||0:K.clientLeft||0:0,G=null!=(T=null==P?void 0:P[x])?T:0,Y=N+H-G,X=Vh(f?Lh(_,N+q-G-Q):_,N,f?Th(j,Y):j);k[x]=X,R[x]=X-N}if(l){var Z,J="x"===x?uh:ph,ee="x"===x?ch:dh,te=k[w],ne="y"===w?"height":"width",re=te+v[J],oe=te-v[ee],ie=-1!==[uh,ph].indexOf(g),ae=null!=(Z=null==P?void 0:P[w])?Z:0,le=ie?re:te-E[ne]-S[ne]-ae+O.altAxis,se=ie?te+E[ne]+S[ne]-ae-O.altAxis:oe,ue=f&&ie?function(e,t,n){var r=Vh(e,t,n);return r>n?n:r}(le,te,se):Vh(f?le:re,te,f?se:oe);k[w]=ue,R[w]=ue-te}t.modifiersData[r]=R}},requiresIfExists:["offset"]};function ym(e,t,n){void 0===n&&(n=!1);var r,o,i=Ch(t),a=Ch(t)&&function(e){var t=e.getBoundingClientRect(),n=Mh(t.width)/e.offsetWidth||1,r=Mh(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=Dh(t),s=_h(e,a,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==kh(t)||om(l))&&(u=(r=t)!==Eh(r)&&Ch(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:nm(r)),Ch(t)?((c=_h(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=rm(l))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function bm(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}var xm={placement:"bottom",modifiers:[],strategy:"absolute"};function wm(){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 km(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?xm:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},xm,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:Sh(e)?am(e):e.contextElement?am(e.contextElement):[],popper:am(t)};var a,u,p=function(e){var t=bm(e);return wh.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,l.options.modifiers),u=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),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(){};s.push(i||a)}})),c.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(wm(t,n)){l.rects={reference:ym(t,Wh(n),"fixed"===l.options.strategy),popper:jh(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;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,d=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:c})||l)}else l.reset=!1,r=-1}}},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(){d(),u=!0}};if(!wm(e,t))return c;function d(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Em=km({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,s=Eh(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Xh)})),l&&s.addEventListener("resize",n.update,Xh),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Xh)})),l&&s.removeEventListener("resize",n.update,Xh)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=cm({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,s=void 0===l||l,u={placement:Rh(t.placement),variation:Qh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Yh(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yh(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ph,vm,fm,gm,Kh,{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=dm(t,{elementContext:"reference"}),l=dm(t,{altBoundary:!0}),s=hm(a,r),u=hm(l,o,i),c=mm(s),d=mm(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});var Sm=h.exports.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=h.exports.useState(null),l=Pf(h.exports.isValidElement(n)?n.ref:null,t);return wf((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),wf((()=>{if(i&&!o)return xf(t,i),()=>{xf(t,null)}}),[t,i,o]),o?h.exports.isValidElement(n)?h.exports.cloneElement(n,{ref:l}):n:Yf.exports.jsx(h.exports.Fragment,{children:i?J.exports.createPortal(n,i):i})}));function Cm(e){return Vf("MuiPopperUnstyled",e)}qf("MuiPopperUnstyled",["root"]);const Om=["anchorEl","children","component","components","componentsProps","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],Pm=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Rm(e){return"function"==typeof e?e():e}const Tm={},Lm=h.exports.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,component:i,components:a={},componentsProps:l={},direction:s,disablePortal:u,modifiers:c,open:d,ownerState:p,placement:f,popperOptions:m,popperRef:v,TransitionProps:g}=e,y=qp(e,Om),b=h.exports.useRef(null),x=Pf(b,t),w=h.exports.useRef(null),k=Pf(w,v),E=h.exports.useRef(k);wf((()=>{E.current=k}),[k]),h.exports.useImperativeHandle(v,(()=>w.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,s),[C,O]=h.exports.useState(S);h.exports.useEffect((()=>{w.current&&w.current.forceUpdate()})),wf((()=>{if(!r||!d)return;Rm(r);let e=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{O(e.placement)}}];null!=c&&(e=e.concat(c)),m&&null!=m.modifiers&&(e=e.concat(m.modifiers));const t=Em(Rm(r),b.current,Bp({placement:S},m,{modifiers:e}));return E.current(t),()=>{t.destroy(),E.current(null)}}),[r,u,c,d,m,S]);const P={placement:C};null!==g&&(P.TransitionProps=g);const R=$f({root:["root"]},Cm,{}),T=null!=(n=null!=i?i:a.Root)?n:"div",L=Gf({elementType:T,externalSlotProps:l.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:x},ownerState:Bp({},e,p),className:R.root});return Yf.exports.jsx(T,Bp({},L,{children:"function"==typeof o?o(P):o}))})),Mm=h.exports.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:s,open:u,placement:c="bottom",popperOptions:d=Tm,popperRef:p,style:f,transition:m=!1}=e,v=qp(e,Pm),[g,y]=h.exports.useState(!0);if(!l&&!u&&(!m||g))return null;const b=o||(n?yf(Rm(n)).body:void 0);return Yf.exports.jsx(Sm,{disablePortal:a,container:b,children:Yf.exports.jsx(Lm,Bp({anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:m?!g:u,placement:c,popperOptions:d,popperRef:p},v,{style:Bp({position:"fixed",top:0,left:0,display:u||!l||m&&!g?null:"none"},f),TransitionProps:m?{in:u,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:null,children:r}))})}));var Am=Mm;function Nm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _m(e){return parseInt(bf(e).getComputedStyle(e).paddingRight,10)||0}function jm(e,t,n,r=[],o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Nm(e,o)}))}function Im(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Fm(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=yf(e);return t.body===e?bf(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ff(yf(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${_m(r)+e}px`;const t=yf(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${_m(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=yf(r).body;else{const t=r.parentElement,n=bf(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}function zm(e){return Vf("MuiModal",e)}qf("MuiModal",["root","hidden"]);const Dm=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"];const $m=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Nm(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);jm(t,e.mount,e.modalRef,r,!0);const o=Im(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Im(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Fm(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Im(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Nm(e.modalRef,t),jm(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Nm(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};var Bm=h.exports.forwardRef((function(e,t){var n;const{children:r,classes:o,closeAfterTransition:i=!1,component:a="div",components:l={},componentsProps:s={},container:u,disableAutoFocus:c=!1,disableEnforceFocus:d=!1,disableEscapeKeyDown:p=!1,disablePortal:f=!1,disableRestoreFocus:m=!1,disableScrollLock:v=!1,hideBackdrop:g=!1,keepMounted:y=!1,manager:b=$m,onBackdropClick:x,onClose:w,onKeyDown:k,open:E,onTransitionEnter:S,onTransitionExited:C}=e,O=qp(e,Dm),[P,R]=h.exports.useState(!0),T=h.exports.useRef({}),L=h.exports.useRef(null),M=h.exports.useRef(null),A=Pf(M,t),N=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),_=null==(n=e["aria-hidden"])||n,j=()=>(T.current.modalRef=M.current,T.current.mountNode=L.current,T.current),I=()=>{b.mount(j(),{disableScrollLock:v}),M.current.scrollTop=0},F=Of((()=>{const e=function(e){return"function"==typeof e?e():e}(u)||yf(L.current).body;b.add(j(),e),M.current&&I()})),z=h.exports.useCallback((()=>b.isTopModal(j())),[b]),D=Of((e=>{L.current=e,e&&(E&&z()?I():Nm(M.current,_))})),$=h.exports.useCallback((()=>{b.remove(j(),_)}),[b,_]);h.exports.useEffect((()=>()=>{$()}),[$]),h.exports.useEffect((()=>{E?F():N&&i||$()}),[E,$,N,i,F]);const B=Bp({},e,{classes:o,closeAfterTransition:i,disableAutoFocus:c,disableEnforceFocus:d,disableEscapeKeyDown:p,disablePortal:f,disableRestoreFocus:m,disableScrollLock:v,exited:P,hideBackdrop:g,keepMounted:y}),W=(e=>{const{open:t,exited:n,classes:r}=e;return $f({root:["root",!t&&n&&"hidden"]},zm,r)})(B),U=()=>{R(!1),S&&S()},V=()=>{R(!0),C&&C(),i&&$()},q={};void 0===r.props.tabIndex&&(q.tabIndex="-1"),N&&(q.onEnter=mf(U,r.props.onEnter),q.onExited=mf(V,r.props.onExited));const H=l.Root||a,K=Gf({elementType:H,externalSlotProps:s.root,externalForwardedProps:O,additionalProps:{ref:A,role:"presentation",onKeyDown:e=>{k&&k(e),"Escape"===e.key&&z()&&(p||(e.stopPropagation(),w&&w(e,"escapeKeyDown")))}},className:W.root,ownerState:B}),Q=l.Backdrop,G=Gf({elementType:Q,externalSlotProps:s.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(x&&x(e),w&&w(e,"backdropClick"))},open:E},ownerState:B});return y||E||N&&!P?Yf.exports.jsx(Sm,{ref:D,container:u,disablePortal:f,children:Yf.exports.jsxs(H,Bp({},K,{children:[!g&&Q?Yf.exports.jsx(Q,Bp({},G)):null,Yf.exports.jsx(sh,{disableEnforceFocus:d,disableAutoFocus:c,disableRestoreFocus:m,isEnabled:z,open:E,children:h.exports.cloneElement(r,q)})]}))}):null}));const Wm=["onChange","maxRows","minRows","style","value"];function Um(e,t){return parseInt(e[t],10)||0}const Vm={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function qm(e){return null==e||0===Object.keys(e).length}const Hm=h.exports.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=qp(e,Wm),{current:s}=h.exports.useRef(null!=a),u=h.exports.useRef(null),c=Pf(t,u),d=h.exports.useRef(null),p=h.exports.useRef(0),[f,m]=h.exports.useState({}),v=h.exports.useCallback((()=>{const t=u.current,n=bf(t).getComputedStyle(t);if("0px"===n.width)return{};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n["box-sizing"],l=Um(n,"padding-bottom")+Um(n,"padding-top"),s=Um(n,"border-bottom-width")+Um(n,"border-top-width"),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},y=h.exports.useCallback((()=>{const e=v();qm(e)||m((t=>g(t,e)))}),[v]);h.exports.useEffect((()=>{const e=vf((()=>{p.current=0,u.current&&(()=>{const e=v();qm(e)||J.exports.flushSync((()=>{m((t=>g(t,e)))}))})()})),t=bf(u.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(u.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}})),wf((()=>{y()})),h.exports.useEffect((()=>{p.current=0}),[a]);return Yf.exports.jsxs(h.exports.Fragment,{children:[Yf.exports.jsx("textarea",Bp({value:a,onChange:e=>{p.current=0,s||y(),n&&n(e)},ref:c,rows:o,style:Bp({height:f.outerHeightStyle,overflow:f.overflow?"hidden":null},i)},l)),Yf.exports.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Bp({},Vm,i,{padding:0})})]})}));var Km=Hm;function Qm(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}!function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}({exports:{}});var Gm=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ym=Qm((function(e){return Gm.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function Xm(){return Xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xm.apply(this,arguments)}var Zm=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Jm={exports:{}};!function(e,t){!function(e){var t="-ms-",n="-moz-",r="-webkit-",o="comm",i="rule",a="decl",l="@page",s="@media",u="@import",c="@charset",d="@viewport",p="@supports",f="@document",h="@namespace",m="@keyframes",v="@font-face",g="@counter-style",y="@font-feature-values",b=Math.abs,x=String.fromCharCode,w=Object.assign;function k(e,t){return(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3)}function E(e){return e.trim()}function S(e,t){return(e=t.exec(e))?e[0]:e}function C(e,t,n){return e.replace(t,n)}function O(e,t){return e.indexOf(t)}function P(e,t){return 0|e.charCodeAt(t)}function R(e,t,n){return e.slice(t,n)}function T(e){return e.length}function L(e){return e.length}function M(e,t){return t.push(e),e}function A(e,t){return e.map(t).join("")}function N(t,n,r,o,i,a,l){return{value:t,root:n,parent:r,type:o,props:i,children:a,line:e.line,column:e.column,length:l,return:""}}function _(e,t){return w(N("",null,null,"",null,null,0),e,{length:-e.length},t)}function j(){return e.character}function I(){return e.character=e.position>0?P(e.characters,--e.position):0,e.column--,10===e.character&&(e.column=1,e.line--),e.character}function F(){return e.character=e.position<e.length?P(e.characters,e.position++):0,e.column++,10===e.character&&(e.column=1,e.line++),e.character}function z(){return P(e.characters,e.position)}function D(){return e.position}function $(t,n){return R(e.characters,t,n)}function B(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function W(t){return e.line=e.column=1,e.length=T(e.characters=t),e.position=0,[]}function U(t){return e.characters="",t}function V(t){return E($(e.position-1,G(91===t?t+2:40===t?t+1:t)))}function q(e){return U(K(W(e)))}function H(t){for(;(e.character=z())&&e.character<33;)F();return B(t)>2||B(e.character)>3?"":" "}function K(t){for(;F();)switch(B(e.character)){case 0:M(X(e.position-1),t);break;case 2:M(V(e.character),t);break;default:M(x(e.character),t)}return t}function Q(t,n){for(;--n&&F()&&!(e.character<48||e.character>102||e.character>57&&e.character<65||e.character>70&&e.character<97););return $(t,D()+(n<6&&32==z()&&32==F()))}function G(t){for(;F();)switch(e.character){case t:return e.position;case 34:case 39:34!==t&&39!==t&&G(e.character);break;case 40:41===t&&G(t);break;case 92:F()}return e.position}function Y(t,n){for(;F()&&t+e.character!==57&&(t+e.character!==84||47!==z()););return"/*"+$(n,e.position-1)+"*"+x(47===t?t:F())}function X(t){for(;!B(z());)F();return $(t,e.position)}function Z(e){return U(J("",null,null,null,[""],e=W(e),0,[0],e))}function J(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,v=1,g=1,y=0,b="",w=o,k=i,E=r,S=b;v;)switch(h=y,y=F()){case 40:if(108!=h&&58==S.charCodeAt(d-1)){-1!=O(S+=C(V(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=V(y);break;case 9:case 10:case 13:case 32:S+=H(h);break;case 92:S+=Q(D()-1,7);continue;case 47:switch(z()){case 42:case 47:M(te(Y(F(),D()),t,n),s);break;default:S+="/"}break;case 123*m:l[u++]=T(S)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:f>0&&T(S)-d&&M(f>32?ne(S+";",r,n,d-1):ne(C(S," ","")+";",r,n,d-2),s);break;case 59:S+=";";default:if(M(E=ee(S,t,n,u,c,o,l,b,w=[],k=[],d),i),123===y)if(0===c)J(S,t,E,E,w,i,d,l,k);else switch(p){case 100:case 109:case 115:J(e,E,E,r&&M(ee(e,E,E,0,0,o,l,b,o,w=[],d),k),o,k,d,l,r?w:k);break;default:J(S,E,E,E,[""],k,0,l,k)}}u=c=f=0,m=g=1,b=S="",d=a;break;case 58:d=1+T(S),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==I())continue;switch(S+=x(y),y*m){case 38:g=c>0?1:(S+="\f",-1);break;case 44:l[u++]=(T(S)-1)*g,g=1;break;case 64:45===z()&&(S+=V(F())),p=z(),c=d=T(b=S+=X(D())),y++;break;case 45:45===h&&2==T(S)&&(m=0)}}return i}function ee(e,t,n,r,o,a,l,s,u,c,d){for(var p=o-1,f=0===o?a:[""],h=L(f),m=0,v=0,g=0;m<r;++m)for(var y=0,x=R(e,p+1,p=b(v=l[m])),w=e;y<h;++y)(w=E(v>0?f[y]+" "+x:C(x,/&\f/g,f[y])))&&(u[g++]=w);return N(e,t,n,0===o?i:s,u,c,d)}function te(e,t,n){return N(e,t,n,o,x(j()),R(e,2,-2),0)}function ne(e,t,n,r){return N(e,t,n,a,R(e,0,r),R(e,r+1,-1),r)}function re(e,o){switch(k(e,o)){case 5103:return r+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return r+e+n+e+t+e+e;case 6828:case 4268:return r+e+t+e+e;case 6165:return r+e+t+"flex-"+e+e;case 5187:return r+e+C(e,/(\w+).+(:[^]+)/,r+"box-$1$2"+t+"flex-$1$2")+e;case 5443:return r+e+t+"flex-item-"+C(e,/flex-|-self/,"")+e;case 4675:return r+e+t+"flex-line-pack"+C(e,/align-content|flex-|-self/,"")+e;case 5548:return r+e+t+C(e,"shrink","negative")+e;case 5292:return r+e+t+C(e,"basis","preferred-size")+e;case 6060:return r+"box-"+C(e,"-grow","")+r+e+t+C(e,"grow","positive")+e;case 4554:return r+C(e,/([^-])(transform)/g,"$1"+r+"$2")+e;case 6187:return C(C(C(e,/(zoom-|grab)/,r+"$1"),/(image-set)/,r+"$1"),e,"")+e;case 5495:case 3959:return C(e,/(image-set\([^]*)/,r+"$1$`$1");case 4968:return C(C(e,/(.+:)(flex-)?(.*)/,r+"box-pack:$3"+t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r+e+e;case 4095:case 3583:case 4068:case 2532:return C(e,/(.+)-inline(.+)/,r+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(T(e)-1-o>6)switch(P(e,o+1)){case 109:if(45!==P(e,o+4))break;case 102:return C(e,/(.+:)(.+)-([^]+)/,"$1"+r+"$2-$3$1"+n+(108==P(e,o+3)?"$3":"$2-$3"))+e;case 115:return~O(e,"stretch")?re(C(e,"stretch","fill-available"),o)+e:e}break;case 4949:if(115!==P(e,o+1))break;case 6444:switch(P(e,T(e)-3-(~O(e,"!important")&&10))){case 107:return C(e,":",":"+r)+e;case 101:return C(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+r+(45===P(e,14)?"inline-":"")+"box$3$1"+r+"$2$3$1"+t+"$2box$3")+e}break;case 5936:switch(P(e,o+11)){case 114:return r+e+t+C(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return r+e+t+C(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return r+e+t+C(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return r+e+t+e+e}return e}function oe(e,t){for(var n="",r=L(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ie(e,t,n,r){switch(e.type){case u:case a:return e.return=e.return||e.value;case o:return"";case m:return e.return=e.value+"{"+oe(e.children,r)+"}";case i:e.value=e.props.join(",")}return T(n=oe(e.children,r))?e.return=e.value+"{"+n+"}":""}function ae(e){var t=L(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function le(e){return function(t){t.root||(t=t.return)&&e(t)}}function se(e,o,l,s){if(e.length>-1&&!e.return)switch(e.type){case a:e.return=re(e.value,e.length);break;case m:return oe([_(e,{value:C(e.value,"@","@"+r)})],s);case i:if(e.length)return A(e.props,(function(o){switch(S(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oe([_(e,{props:[C(o,/:(read-\w+)/,":"+n+"$1")]})],s);case"::placeholder":return oe([_(e,{props:[C(o,/:(plac\w+)/,":"+r+"input-$1")]}),_(e,{props:[C(o,/:(plac\w+)/,":"+n+"$1")]}),_(e,{props:[C(o,/:(plac\w+)/,t+"input-$1")]})],s)}return""}))}}function ue(e){e.type===i&&(e.props=e.props.map((function(t){return A(q(t),(function(t,n,r){switch(P(t,0)){case 12:return R(t,1,T(t));case 0:case 40:case 43:case 62:case 126:return t;case 58:"global"===r[++n]&&(r[n]="",r[++n]="\f"+R(r[n],n=1,-1));case 32:return 1===n?"":t;default:switch(n){case 0:return e=t,L(r)>1?"":t;case n=L(r)-1:case 2:return 2===n?t+e+e:t+e;default:return t}}}))})))}e.line=1,e.column=1,e.length=0,e.position=0,e.character=0,e.characters="",e.CHARSET=c,e.COMMENT=o,e.COUNTER_STYLE=g,e.DECLARATION=a,e.DOCUMENT=f,e.FONT_FACE=v,e.FONT_FEATURE_VALUES=y,e.IMPORT=u,e.KEYFRAMES=m,e.MEDIA=s,e.MOZ=n,e.MS=t,e.NAMESPACE=h,e.PAGE=l,e.RULESET=i,e.SUPPORTS=p,e.VIEWPORT=d,e.WEBKIT=r,e.abs=b,e.alloc=W,e.append=M,e.assign=w,e.caret=D,e.char=j,e.charat=P,e.combine=A,e.comment=te,e.commenter=Y,e.compile=Z,e.copy=_,e.dealloc=U,e.declaration=ne,e.delimit=V,e.delimiter=G,e.escaping=Q,e.from=x,e.hash=k,e.identifier=X,e.indexof=O,e.match=S,e.middleware=ae,e.namespace=ue,e.next=F,e.node=N,e.parse=J,e.peek=z,e.prefix=re,e.prefixer=se,e.prev=I,e.replace=C,e.ruleset=ee,e.rulesheet=le,e.serialize=oe,e.sizeof=L,e.slice=$,e.stringify=ie,e.strlen=T,e.substr=R,e.token=B,e.tokenize=q,e.tokenizer=K,e.trim=E,e.whitespace=H,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,Jm.exports);var ev,tv,nv=function(e,t,n){for(var r=0,o=0;r=o,o=Jm.exports.peek(),38===r&&12===o&&(t[n]=1),!Jm.exports.token(o);)Jm.exports.next();return Jm.exports.slice(e,Jm.exports.position)},rv=function(e,t){return Jm.exports.dealloc(function(e,t){var n=-1,r=44;do{switch(Jm.exports.token(r)){case 0:38===r&&12===Jm.exports.peek()&&(t[n]=1),e[n]+=nv(Jm.exports.position-1,t,n);break;case 2:e[n]+=Jm.exports.delimit(r);break;case 4:if(44===r){e[++n]=58===Jm.exports.peek()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Jm.exports.from(r)}}while(r=Jm.exports.next());return e}(Jm.exports.alloc(e),t))},ov=new WeakMap,iv=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ov.get(n))&&!r){ov.set(e,!0);for(var o=[],i=rv(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},av=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},lv="undefined"!=typeof document,sv=lv?void 0:(ev=function(){return Qm((function(){var e={};return function(t){return e[t]}}))},tv=new WeakMap,function(e){if(tv.has(e))return tv.get(e);var t=ev(e);return tv.set(e,t),t}),uv=[Jm.exports.prefixer],cv=function(e){var t=e.key;if(lv&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||uv,a={},l=[];lv&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)})));var s=[iv,av];if(lv){var u,c=[Jm.exports.stringify,Jm.exports.rulesheet((function(e){u.insert(e)}))],d=Jm.exports.middleware(s.concat(i,c));o=function(e,t,n,r){u=n,function(e){Jm.exports.serialize(Jm.exports.compile(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var p=[Jm.exports.stringify],f=Jm.exports.middleware(s.concat(i,p)),h=sv(i)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return Jm.exports.serialize(Jm.exports.compile(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,i=m(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),i):r?void(v.inserted[o]=i):i}}var v={key:t,sheet:new Zm({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return v.sheet.hydrate(l),v},dv={exports:{}},pv={},fv="function"==typeof Symbol&&Symbol.for,hv=fv?Symbol.for("react.element"):60103,mv=fv?Symbol.for("react.portal"):60106,vv=fv?Symbol.for("react.fragment"):60107,gv=fv?Symbol.for("react.strict_mode"):60108,yv=fv?Symbol.for("react.profiler"):60114,bv=fv?Symbol.for("react.provider"):60109,xv=fv?Symbol.for("react.context"):60110,wv=fv?Symbol.for("react.async_mode"):60111,kv=fv?Symbol.for("react.concurrent_mode"):60111,Ev=fv?Symbol.for("react.forward_ref"):60112,Sv=fv?Symbol.for("react.suspense"):60113,Cv=fv?Symbol.for("react.suspense_list"):60120,Ov=fv?Symbol.for("react.memo"):60115,Pv=fv?Symbol.for("react.lazy"):60116,Rv=fv?Symbol.for("react.block"):60121,Tv=fv?Symbol.for("react.fundamental"):60117,Lv=fv?Symbol.for("react.responder"):60118,Mv=fv?Symbol.for("react.scope"):60119;function Av(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case hv:switch(e=e.type){case wv:case kv:case vv:case yv:case gv:case Sv:return e;default:switch(e=e&&e.$$typeof){case xv:case Ev:case Pv:case Ov:case bv:return e;default:return t}}case mv:return t}}}function Nv(e){return Av(e)===kv}pv.AsyncMode=wv,pv.ConcurrentMode=kv,pv.ContextConsumer=xv,pv.ContextProvider=bv,pv.Element=hv,pv.ForwardRef=Ev,pv.Fragment=vv,pv.Lazy=Pv,pv.Memo=Ov,pv.Portal=mv,pv.Profiler=yv,pv.StrictMode=gv,pv.Suspense=Sv,pv.isAsyncMode=function(e){return Nv(e)||Av(e)===wv},pv.isConcurrentMode=Nv,pv.isContextConsumer=function(e){return Av(e)===xv},pv.isContextProvider=function(e){return Av(e)===bv},pv.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===hv},pv.isForwardRef=function(e){return Av(e)===Ev},pv.isFragment=function(e){return Av(e)===vv},pv.isLazy=function(e){return Av(e)===Pv},pv.isMemo=function(e){return Av(e)===Ov},pv.isPortal=function(e){return Av(e)===mv},pv.isProfiler=function(e){return Av(e)===yv},pv.isStrictMode=function(e){return Av(e)===gv},pv.isSuspense=function(e){return Av(e)===Sv},pv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===vv||e===kv||e===yv||e===gv||e===Sv||e===Cv||"object"==typeof e&&null!==e&&(e.$$typeof===Pv||e.$$typeof===Ov||e.$$typeof===bv||e.$$typeof===xv||e.$$typeof===Ev||e.$$typeof===Tv||e.$$typeof===Lv||e.$$typeof===Mv||e.$$typeof===Rv)},pv.typeOf=Av,function(e){e.exports=pv}(dv);var _v=dv.exports,jv={};jv[_v.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jv[_v.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Iv="undefined"!=typeof document;function Fv(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var zv=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Iv&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Dv=function(e,t,n){zv(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);Iv||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Iv&&0!==o.length)return o}};var $v={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bv=/[A-Z]|^ms/g,Wv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Uv=function(e){return 45===e.charCodeAt(1)},Vv=function(e){return null!=e&&"boolean"!=typeof e},qv=Qm((function(e){return Uv(e)?e:e.replace(Bv,"-$&").toLowerCase()})),Hv=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Wv,(function(e,t,n){return Qv={name:t,styles:n,next:Qv},t}))}return 1===$v[e]||Uv(e)||"number"!=typeof t||0===t?t:t+"px"};function Kv(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Qv={name:n.name,styles:n.styles,next:Qv},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Qv={name:r.name,styles:r.styles,next:Qv},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Kv(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Vv(a)&&(r+=qv(i)+":"+Hv(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Kv(e,t,a);switch(i){case"animation":case"animationName":r+=qv(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)Vv(a[s])&&(r+=qv(i)+":"+Hv(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Qv,i=n(e);return Qv=o,Kv(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Qv,Gv=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Yv=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Qv=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Kv(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Kv(n,t,e[a]),r&&(o+=i[a]);Gv.lastIndex=0;for(var l,s="";null!==(l=Gv.exec(o));)s+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:u,styles:o,next:Qv}},Xv={exports:{}},Zv={};Object.defineProperty(Zv,"__esModule",{value:!0});var Jv=h.exports;function eg(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var tg=eg(Jv),ng="undefined"!=typeof document,rg=function(e){return e()},og=!!tg.useInsertionEffect&&tg.useInsertionEffect,ig=ng&&og||rg,ag=og||Jv.useLayoutEffect;Zv.useInsertionEffectAlwaysWithSyncFallback=ig,Zv.useInsertionEffectWithLayoutFallback=ag,function(e){e.exports=Zv}(Xv);var lg="undefined"!=typeof document,sg=h.exports.createContext("undefined"!=typeof HTMLElement?cv({key:"css"}):null),ug=sg.Provider,cg=function(e){return h.exports.forwardRef((function(t,n){var r=h.exports.useContext(sg);return e(t,r,n)}))};lg||(cg=function(e){return function(t){var n=h.exports.useContext(sg);return null===n?(n=cv({key:"css"}),h.exports.createElement(sg.Provider,{value:n},e(t,n))):e(t,n)}});var dg=h.exports.createContext({});!function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}({exports:{}});var pg=cg((function(e,t){var n=e.styles,r=Yv([n],void 0,h.exports.useContext(dg));if(!lg){for(var o,i=r.name,a=r.styles,l=r.next;void 0!==l;)i+=" "+l.name,a+=l.styles,l=l.next;var s=!0===t.compat,u=t.insert("",{name:i,styles:a},t.sheet,s);return s?null:h.exports.createElement("style",((o={})["data-emotion"]=t.key+"-global "+i,o.dangerouslySetInnerHTML={__html:u},o.nonce=t.sheet.nonce,o))}var c=h.exports.useRef();return Xv.exports.useInsertionEffectWithLayoutFallback((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),c.current=[n,o],function(){n.flush()}}),[t]),Xv.exports.useInsertionEffectWithLayoutFallback((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Dv(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function fg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yv(t)}var hg=function(){var e=fg.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},mg={exports:{}},vg={};Object.defineProperty(vg,"__esModule",{value:!0});var gg=h.exports;function yg(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var bg=yg(gg),xg="undefined"!=typeof document,wg=function(e){return e()},kg=!!bg.useInsertionEffect&&bg.useInsertionEffect,Eg=xg&&kg||wg,Sg=kg||gg.useLayoutEffect;vg.useInsertionEffectAlwaysWithSyncFallback=Eg,vg.useInsertionEffectWithLayoutFallback=Sg,function(e){e.exports=vg}(mg);var Cg=Ym,Og=function(e){return"theme"!==e},Pg=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Cg:Og},Rg=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Tg="undefined"!=typeof document,Lg=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;zv(t,n,r);var o=mg.exports.useInsertionEffectAlwaysWithSyncFallback((function(){return Dv(t,n,r)}));if(!Tg&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return h.exports.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},Mg=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=Rg(t,n,i),s=l||Pg(a),u=!s("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,f=1;f<p;f++)d.push(c[f],c[0][f])}var m=cg((function(e,t,n){var r=u&&e.as||a,i="",c=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=h.exports.useContext(dg)}"string"==typeof e.className?i=Fv(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var m=Yv(d.concat(c),t.registered,p);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var v=u&&void 0===l?Pg(r):s,g={};for(var y in e)u&&"as"===y||v(y)&&(g[y]=e[y]);return g.className=i,g.ref=n,h.exports.createElement(h.exports.Fragment,null,h.exports.createElement(Lg,{cache:t,serialized:m,isStringTag:"string"==typeof r}),h.exports.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,Xm({},n,r,{shouldForwardProp:Rg(m,r,!0)})).apply(void 0,d)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Mg[e]=Mg(e)}));var Ag=Mg;function Ng(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Yf.exports.jsx(pg,{styles:r})}
|
|
38
|
+
/** @license MUI v5.10.8
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/function _g(e,t){return Ag(e,t)}function jg(){return jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jg.apply(this,arguments)}function Ig(e,t){return t?Qp(e,t,{clone:!1}):e}const Fg={xs:0,sm:600,md:900,lg:1200,xl:1536},zg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fg[e]}px)`};function Dg(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||zg;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||zg;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Fg).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function $g(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Bg(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Wg({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function Ug(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Vg(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Ug(e,n)||r,t&&(o=t(o)),o}function qg(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Ug(e.theme,r)||{};return Dg(e,i,(e=>{let r=Vg(a,o,e);return e===r&&"string"==typeof e&&(r=Vg(a,o,`${t}${"default"===e?"":hf(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}function Hg(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Ig(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}const Kg={m:"margin",p:"padding"},Qg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Yg=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Gg[e])return[e];e=Gg[e]}const[t,n]=e.split(""),r=Kg[t],o=Qg[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Xg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Zg(e,t,n,r){var o;const i=null!=(o=Ug(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Jg(e){return Zg(e,"spacing",8)}function ey(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function ty(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=ey(t,n),e)),{})}(Yg(n),r);return Dg(e,e[n],o)}function ny(e){return function(e,t){const n=Jg(e.theme);return Object.keys(e).map((r=>ty(e,t,r,n))).reduce(Ig,{})}(e,Xg)}function ry(e){return"number"!=typeof e?e:`${e}px solid`}ny.propTypes={},ny.filterProps=Xg;const oy=qg({prop:"border",themeKey:"borders",transform:ry}),iy=qg({prop:"borderTop",themeKey:"borders",transform:ry}),ay=qg({prop:"borderRight",themeKey:"borders",transform:ry}),ly=qg({prop:"borderBottom",themeKey:"borders",transform:ry}),sy=qg({prop:"borderLeft",themeKey:"borders",transform:ry}),uy=qg({prop:"borderColor",themeKey:"palette"}),cy=qg({prop:"borderTopColor",themeKey:"palette"}),dy=qg({prop:"borderRightColor",themeKey:"palette"}),py=qg({prop:"borderBottomColor",themeKey:"palette"}),fy=qg({prop:"borderLeftColor",themeKey:"palette"}),hy=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Zg(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:ey(t,e)});return Dg(e,e.borderRadius,n)}return null};hy.propTypes={},hy.filterProps=["borderRadius"];const my=Hg(oy,iy,ay,ly,sy,uy,cy,dy,py,fy,hy);var vy=Hg(qg({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),qg({prop:"display"}),qg({prop:"overflow"}),qg({prop:"textOverflow"}),qg({prop:"visibility"}),qg({prop:"whiteSpace"}));const gy=Hg(qg({prop:"flexBasis"}),qg({prop:"flexDirection"}),qg({prop:"flexWrap"}),qg({prop:"justifyContent"}),qg({prop:"alignItems"}),qg({prop:"alignContent"}),qg({prop:"order"}),qg({prop:"flex"}),qg({prop:"flexGrow"}),qg({prop:"flexShrink"}),qg({prop:"alignSelf"}),qg({prop:"justifyItems"}),qg({prop:"justifySelf"})),yy=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Zg(e.theme,"spacing",8),n=e=>({gap:ey(t,e)});return Dg(e,e.gap,n)}return null};yy.propTypes={},yy.filterProps=["gap"];const by=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Zg(e.theme,"spacing",8),n=e=>({columnGap:ey(t,e)});return Dg(e,e.columnGap,n)}return null};by.propTypes={},by.filterProps=["columnGap"];const xy=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Zg(e.theme,"spacing",8),n=e=>({rowGap:ey(t,e)});return Dg(e,e.rowGap,n)}return null};xy.propTypes={},xy.filterProps=["rowGap"];const wy=Hg(yy,by,xy,qg({prop:"gridColumn"}),qg({prop:"gridRow"}),qg({prop:"gridAutoFlow"}),qg({prop:"gridAutoColumns"}),qg({prop:"gridAutoRows"}),qg({prop:"gridTemplateColumns"}),qg({prop:"gridTemplateRows"}),qg({prop:"gridTemplateAreas"}),qg({prop:"gridArea"})),ky=Hg(qg({prop:"color",themeKey:"palette"}),qg({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),qg({prop:"backgroundColor",themeKey:"palette"}));var Ey=Hg(qg({prop:"position"}),qg({prop:"zIndex",themeKey:"zIndex"}),qg({prop:"top"}),qg({prop:"right"}),qg({prop:"bottom"}),qg({prop:"left"}));const Sy=qg({prop:"boxShadow",themeKey:"shadows"});function Cy(e){return e<=1&&0!==e?100*e+"%":e}const Oy=qg({prop:"width",transform:Cy}),Py=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||Fg[t]||Cy(t)}};return Dg(e,e.maxWidth,t)}return null};Py.filterProps=["maxWidth"];const Ry=qg({prop:"minWidth",transform:Cy}),Ty=qg({prop:"height",transform:Cy}),Ly=qg({prop:"maxHeight",transform:Cy}),My=qg({prop:"minHeight",transform:Cy});qg({prop:"size",cssProperty:"width",transform:Cy}),qg({prop:"size",cssProperty:"height",transform:Cy});const Ay=Hg(Oy,Py,Ry,Ty,Ly,My,qg({prop:"boxSizing"})),Ny=qg({prop:"fontFamily",themeKey:"typography"}),_y=qg({prop:"fontSize",themeKey:"typography"}),jy=qg({prop:"fontStyle",themeKey:"typography"}),Iy=qg({prop:"fontWeight",themeKey:"typography"}),Fy=qg({prop:"letterSpacing"}),zy=qg({prop:"textTransform"}),Dy=qg({prop:"lineHeight"}),$y=qg({prop:"textAlign"}),By=Hg(qg({prop:"typography",cssProperty:!1,themeKey:"typography"}),Ny,_y,jy,Iy,Fy,Dy,$y,zy),Wy={borders:my.filterProps,display:vy.filterProps,flexbox:gy.filterProps,grid:wy.filterProps,positions:Ey.filterProps,palette:ky.filterProps,shadows:Sy.filterProps,sizing:Ay.filterProps,spacing:ny.filterProps,typography:By.filterProps},Uy={borders:my,display:vy,flexbox:gy,grid:wy,positions:Ey,palette:ky,shadows:Sy,sizing:Ay,spacing:ny,typography:By},Vy=Object.keys(Wy).reduce(((e,t)=>(Wy[t].forEach((n=>{e[n]=Uy[t]})),e)),{});const qy=function(e=Uy){const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const o={[e]:n,theme:r},i=t[e];return i?i(o):{[e]:n}}return function e(r){const{sx:o,theme:i={}}=r||{};if(!o)return null;function a(r){let o=r;if("function"==typeof r)o=r(i);else if("object"!=typeof r)return r;if(!o)return null;const a=$g(i.breakpoints),l=Object.keys(a);let s=a;return Object.keys(o).forEach((r=>{const a=(l=o[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=a)if("object"==typeof a)if(t[r])s=Ig(s,n(r,a,i));else{const t=Dg({theme:i},a,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(t,a)?s=Ig(s,t):s[r]=e({sx:a,theme:i})}else s=Ig(s,n(r,a,i))})),Bg(l,s)}return Array.isArray(o)?o.map(a):a(o)}}();function Hy(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}qy.filterProps=["sx"];const Ky=["sx"];function Qy(e){const{sx:t}=e,n=Hy(e,Ky),{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((n=>{Vy[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Kp(n)?jg({},r,n):r}:jg({},r,t),jg({},o,{sx:i})}const Gy=["values","unit","step"];function Yy(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Hy(e,Gy),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>jg({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return jg({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Xy={borderRadius:4};const Zy=["breakpoints","palette","spacing","shape"];function Jy(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Hy(e,Zy),l=Yy(n),s=function(e=8){if(e.mui)return e;const t=Jg({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Qp({breakpoints:l,direction:"ltr",components:{},palette:jg({mode:"light"},r),spacing:s,shape:jg({},Xy,i)},a);return u=t.reduce(((e,t)=>Qp(e,t)),u),u}function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eb.apply(this,arguments)}var tb=h.exports.createContext(null);function nb(){return h.exports.useContext(tb)}var rb="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ob(e){const{children:t,theme:n}=e,r=nb(),o=h.exports.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return eb({},e,t)}(r,n);return null!=e&&(e[rb]=null!==r),e}),[n,r]);return Yf.exports.jsx(tb.Provider,{value:o,children:t})}function ib(e=null){const t=nb();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ab=Jy();function lb(e=ab){return ib(e)}const sb=["className","component"];!function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r,styleFunctionSx:o=qy}=e,i=_g("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(o),a=h.exports.forwardRef((function(e,o){const a=lb(t),l=Qy(e),{className:s,component:u="div"}=l,c=Hy(l,sb);return Yf.exports.jsx(i,jg({as:u,ref:o,className:$p(s,r?r(n):n),theme:a},c))}))}();const ub=["variant"];function cb(e){return 0===e.length}function db(e){const{variant:t}=e,n=Hy(e,ub);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?cb(r)?e[t]:hf(e[t]):`${cb(r)?t:hf(t)}${hf(e[t].toString())}`})),r}const pb=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],fb=["theme"],hb=["theme"];function mb(e){return 0===Object.keys(e).length}function vb(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const gb=Jy();function yb(e={}){const{defaultTheme:t=gb,rootShouldForwardProp:n=vb,slotShouldForwardProp:r=vb,styleFunctionSx:o=qy}=e,i=e=>{const n=mb(e.theme)?t:e.theme;return o(jg({},e,{theme:n}))};return i.__mui_systemSx=!0,(e,o={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:l,skipVariantsResolver:s,skipSx:u,overridesResolver:c}=o,d=Hy(o,pb),p=void 0!==s?s:l&&"Root"!==l||!1,f=u||!1;let h=vb;"Root"===l?h=n:l?h=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=_g(e,jg({shouldForwardProp:h,label:undefined},d)),v=(e,...n)=>{const r=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:r}=n,o=Hy(n,fb);return e(jg({theme:mb(r)?t:r},o))}:e)):[];let o=e;a&&c&&r.push((e=>{const n=mb(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,n);if(r){const t={};return Object.entries(r).forEach((([r,o])=>{t[r]="function"==typeof o?o(jg({},e,{theme:n})):o})),c(e,t)}return null})),a&&!p&&r.push((e=>{const n=mb(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,l=[],s=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return s&&s.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&l.push(t[db(n.props)])})),l})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=db(e.props);r[t]=e.style})),r})(a,n),n,a)})),f||r.push(i);const l=r.length-n.length;if(Array.isArray(e)&&l>0){const t=new Array(l).fill("");o=[...e,...t],o.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(o=n=>{let{theme:r}=n,o=Hy(n,hb);return e(jg({theme:mb(r)?t:r},o))});return m(o,...r)};return m.withConfig&&(v.withConfig=m.withConfig),v}}const bb=yb();function xb({props:e,name:t,defaultTheme:n}){const r=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Df(t.components[n].defaultProps,r):r}({theme:lb(n),name:t,props:e});return r}function wb(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function kb(e){if(e.type)return e;if("#"===e.charAt(0))return kb(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Gp(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Gp(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Eb=e=>{const t=kb(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function Sb(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Cb(e){let t="hsl"===(e=kb(e)).type||"hsla"===e.type?kb(function(e){e=kb(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Sb({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ob(e,t){return e=kb(e),t=wb(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Sb(e)}function Pb(e,t){if(e=kb(e),t=wb(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Sb(e)}function Rb(e,t){if(e=kb(e),t=wb(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Sb(e)}function Tb(e,t=.15){return Cb(e)>.5?Pb(e,t):Rb(e,t)}function Lb(e){const t=lb();return Yf.exports.jsx(dg.Provider,{value:"object"==typeof t?t:{},children:e.children})}function Mb(e){const{children:t,theme:n}=e;return Yf.exports.jsx(ob,{theme:n,children:Yf.exports.jsx(Lb,{children:t})})}const Ab="mode",Nb="color-scheme",_b="data-color-scheme";function jb(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Ib=["className","component","disableGutters","fixed","maxWidth","classes"],Fb=Jy(),zb=bb("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${hf(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Db=e=>xb({props:e,name:"MuiContainer",defaultTheme:Fb});!function(e={}){const{createStyledComponent:t=zb,useThemeProps:n=Db,componentName:r="MuiContainer"}=e,o=t((({theme:e,ownerState:t})=>jg({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,n)=>{const r=n,o=e.breakpoints.values[r];return 0!==o&&(t[e.breakpoints.up(r)]={maxWidth:`${o}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>jg({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),i=h.exports.forwardRef((function(e,t){const i=n(e),{className:a,component:l="div",disableGutters:s=!1,fixed:u=!1,maxWidth:c="lg"}=i,d=Hy(i,Ib),p=jg({},i,{component:l,disableGutters:s,fixed:u,maxWidth:c}),f=((e,t)=>{const{classes:n,fixed:r,disableGutters:o,maxWidth:i}=e;return $f({root:["root",i&&`maxWidth${hf(String(i))}`,r&&"fixed",o&&"disableGutters"]},(e=>Vf(t,e)),n)})(p,r);return Yf.exports.jsx(o,jg({as:l,ownerState:p,className:$p(f.root,a),ref:t},d))}))}(),qf("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]);const $b=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:Object.keys(t)).forEach((o=>{if(-1!==e.keys.indexOf(o)){const i=t[o];void 0!==i&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),i)}}))}else"number"!=typeof t&&"string"!=typeof t||n(((e,t)=>{Object.assign(e,t)}),t)},Bb=({theme:e,ownerState:t})=>{const n={};return $b(e.breakpoints,t.gridSize,((e,r)=>{let o={};!0===r&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===r&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof r&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / var(--Grid-columns)${t.nested&&t.container?" + var(--Grid-columnSpacing)":""})`}),e(n,o)})),n},Wb=({theme:e,ownerState:t})=>{const n={};return $b(e.breakpoints,t.gridOffset,((e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(--Grid-columns))`}),e(n,r)})),n},Ub=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={"--Grid-columns":12};return $b(e.breakpoints,t.columns,((e,t)=>{e(n,{"--Grid-columns":t})})),n},Vb=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return $b(e.breakpoints,t.rowSpacing,((t,r)=>{var o;t(n,{"--Grid-rowSpacing":"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})})),n},qb=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return $b(e.breakpoints,t.columnSpacing,((t,r)=>{var o;t(n,{"--Grid-columnSpacing":"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})})),n},Hb=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return $b(e.breakpoints,t.direction,((e,t)=>{e(n,{flexDirection:t})})),n},Kb=({ownerState:e})=>jg({minWidth:0,boxSizing:"border-box"},e.container?jg({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:"calc(var(--Grid-rowSpacing) / -2) calc(var(--Grid-columnSpacing) / -2)"},e.disableEqualOverflow&&{margin:"calc(var(--Grid-rowSpacing) * -1) 0px 0px calc(var(--Grid-columnSpacing) * -1)"},e.nested?jg({padding:"calc(var(--Grid-nested-rowSpacing) / 2) calc(var(--Grid-nested-columnSpacing) / 2)"},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:"calc(var(--Grid-nested-rowSpacing)) 0px 0px calc(var(--Grid-nested-columnSpacing))"}):{"--Grid-nested-rowSpacing":"var(--Grid-rowSpacing)","--Grid-nested-columnSpacing":"var(--Grid-columnSpacing)"}):jg({padding:"calc(var(--Grid-rowSpacing) / 2) calc(var(--Grid-columnSpacing) / 2)"},e.disableEqualOverflow&&{padding:"calc(var(--Grid-rowSpacing)) 0px 0px calc(var(--Grid-columnSpacing))"})),Qb=e=>{const t=[];return Object.entries(e).forEach((([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)})),t},Gb=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)})),t}return[]},Yb=["className","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow"],Xb=Jy(),Zb=bb("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Jb(e){return xb({props:e,name:"MuiGrid",defaultTheme:Xb})}!function(e={}){const{createStyledComponent:t=Zb,useThemeProps:n=Jb,componentName:r="MuiGrid"}=e,o=h.exports.createContext(!1),i=h.exports.createContext(void 0),a=t(Ub,qb,Vb,Bb,Hb,Kb,Wb),l=h.exports.forwardRef((function(e,t){var l,s,u,c,d,p,f,m;const v=lb(),g=Qy(n(e)),y=h.exports.useContext(o),b=h.exports.useContext(i),{className:x,columns:w=12,container:k=!1,component:E="div",direction:S="row",wrap:C="wrap",spacing:O=0,rowSpacing:P=O,columnSpacing:R=O,disableEqualOverflow:T}=g,L=Hy(g,Yb);let M=T;y&&void 0!==T&&(M=e.disableEqualOverflow);const A={},N={},_={};Object.entries(L).forEach((([e,t])=>{void 0!==v.breakpoints.values[e]?A[e]=t:void 0!==v.breakpoints.values[e.replace("Offset","")]?N[e.replace("Offset","")]=t:_[e]=t}));const j=jg({},g,{nested:y,columns:null!=(l=e.columns)?l:y?void 0:w,container:k,direction:S,wrap:C,spacing:null!=(s=e.spacing)?s:y?void 0:O,rowSpacing:null!=(u=null!=(c=e.rowSpacing)?c:e.spacing)?u:y?void 0:P,columnSpacing:null!=(d=null!=(p=e.columnSpacing)?p:e.spacing)?d:y?void 0:R,gridSize:A,gridOffset:N,disableEqualOverflow:null!=(f=null!=(m=M)?m:b)&&f,parentDisableEqualOverflow:b}),I=((e,t)=>{const{container:n,direction:o,spacing:i,wrap:a,gridSize:l}=e;return $f({root:["root",n&&"container","row"!==o&&`direction-xs-${String(o)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...Qb(l),...n?Gb(i,t.breakpoints.keys[0]):[]]},(e=>Vf(r,e)),{})})(j,v);let F=Yf.exports.jsx(a,jg({ref:t,as:E,ownerState:j,className:$p(I.root,x)},_));return y||(F=Yf.exports.jsx(o.Provider,{value:!0,children:F})),void 0!==M&&M!==(null!=b&&b)&&(F=Yf.exports.jsx(i.Provider,{value:M,children:F})),F}))}();const ex=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];qf("MuiGrid",["root","container","item",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...ex.map((e=>`grid-xs-${e}`)),...ex.map((e=>`grid-sm-${e}`)),...ex.map((e=>`grid-md-${e}`)),...ex.map((e=>`grid-lg-${e}`)),...ex.map((e=>`grid-xl-${e}`))]);const tx=["component","direction","spacing","divider","children","className"],nx=Jy(),rx=bb("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ox(e){return xb({props:e,name:"MuiStack",defaultTheme:nx})}function ix(e,t){const n=h.exports.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(h.exports.cloneElement(t,{key:`separator-${o}`})),e)),[])}const ax=({ownerState:e,theme:t})=>{let n=jg({display:"flex",flexDirection:"column"},Dg({theme:t},Wg({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=Jg(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),i=Wg({values:e.direction,base:o}),a=Wg({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));n=Qp(n,Dg({theme:t},a,((t,n)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:ey(r,t)}};var o})))}return n=function(e,...t){const n=$g(e),r=[n,...t].reduce(((e,t)=>Qp(e,t)),{});return Bg(Object.keys(n),r)}(t.breakpoints,n),n};!function(e={}){const{createStyledComponent:t=rx,useThemeProps:n=ox,componentName:r="MuiStack"}=e,o=t(ax),i=h.exports.forwardRef((function(e,t){const i=Qy(n(e)),{component:a="div",direction:l="column",spacing:s=0,divider:u,children:c,className:d}=i,p=Hy(i,tx),f={direction:l,spacing:s},h=$f({root:["root"]},(e=>Vf(r,e)),{});return Yf.exports.jsx(o,jg({as:a,ownerState:f,ref:t,className:$p(h.root,d)},p,{children:u?ix(c,u):c}))}))}(),qf("MuiStack",["root"]);const lx={black:"#000",white:"#fff"},sx={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ux="#f3e5f5",cx="#ce93d8",dx="#ba68c8",px="#ab47bc",fx="#9c27b0",hx="#7b1fa2",mx="#ffebee",vx="#ef9a9a",gx="#e57373",yx="#ef5350",bx="#f44336",xx="#d32f2f",wx="#c62828",kx="#ffb74d",Ex="#ffa726",Sx="#ff9800",Cx="#f57c00",Ox="#e65100",Px="#e3f2fd",Rx="#90caf9",Tx="#42a5f5",Lx="#1976d2",Mx="#1565c0",Ax="#4fc3f7",Nx="#29b6f6",_x="#03a9f4",jx="#0288d1",Ix="#01579b",Fx="#e8f5e9",zx="#a5d6a7",Dx="#81c784",$x="#66bb6a",Bx="#4caf50",Wx="#388e3c",Ux="#2e7d32",Vx="#1b5e20",qx=["mode","contrastThreshold","tonalOffset"],Hx={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:lx.white,default:lx.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Kx={text:{primary:lx.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:lx.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Qx(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Rb(e.main,o):"dark"===t&&(e.dark=Pb(e.main,i)))}function Gx(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=_p(e,qx),i=e.primary||function(e="light"){return"dark"===e?{main:Rx,light:Px,dark:Tx}:{main:Lx,light:Tx,dark:Mx}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:cx,light:ux,dark:px}:{main:fx,light:dx,dark:hx}}(t),l=e.error||function(e="light"){return"dark"===e?{main:bx,light:gx,dark:xx}:{main:xx,light:yx,dark:wx}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Nx,light:Ax,dark:jx}:{main:jx,light:_x,dark:Ix}}(t),u=e.success||function(e="light"){return"dark"===e?{main:$x,light:Dx,dark:Wx}:{main:Ux,light:Bx,dark:Vx}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ex,light:kx,dark:Cx}:{main:"#ed6c02",light:Sx,dark:Ox}}(t);function d(e){const t=function(e,t){const n=Cb(e),r=Cb(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Kx.text.primary)>=n?Kx.text.primary:Hx.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=jp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Gp(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Gp(12,t?` (${t})`:"",JSON.stringify(e.main)));return Qx(e,"light",o,r),Qx(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Kx,light:Hx};return Qp(jp({common:jp({},lx),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:sx,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Yx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Xx={textTransform:"uppercase"},Zx='"Roboto", "Helvetica", "Arial", sans-serif';function Jx(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Zx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=_p(n,Yx),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return jp({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Zx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},v={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Xx),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Xx)};return Qp(jp({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},v),p,{clone:!1})}function ew(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const tw=["none",ew(0,2,1,-1,0,1,1,0,0,1,3,0),ew(0,3,1,-2,0,2,2,0,0,1,5,0),ew(0,3,3,-2,0,3,4,0,0,1,8,0),ew(0,2,4,-1,0,4,5,0,0,1,10,0),ew(0,3,5,-1,0,5,8,0,0,1,14,0),ew(0,3,5,-1,0,6,10,0,0,1,18,0),ew(0,4,5,-2,0,7,10,1,0,2,16,1),ew(0,5,5,-3,0,8,10,1,0,3,14,2),ew(0,5,6,-3,0,9,12,1,0,3,16,2),ew(0,6,6,-3,0,10,14,1,0,4,18,3),ew(0,6,7,-4,0,11,15,1,0,4,20,3),ew(0,7,8,-4,0,12,17,2,0,5,22,4),ew(0,7,8,-4,0,13,19,2,0,5,24,4),ew(0,7,9,-4,0,14,21,2,0,5,26,4),ew(0,8,9,-5,0,15,22,2,0,6,28,5),ew(0,8,10,-5,0,16,24,2,0,6,30,5),ew(0,8,11,-5,0,17,26,2,0,6,32,5),ew(0,9,11,-5,0,18,28,2,0,7,34,6),ew(0,9,12,-6,0,19,29,2,0,7,36,6),ew(0,10,13,-6,0,20,31,3,0,8,38,7),ew(0,10,13,-6,0,21,33,3,0,8,40,7),ew(0,10,14,-6,0,22,35,3,0,8,42,7),ew(0,11,14,-7,0,23,36,3,0,9,44,8),ew(0,11,15,-7,0,24,38,3,0,9,46,8)],nw=["duration","easing","delay"],rw={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ow={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function iw(e){return`${Math.round(e)}ms`}function aw(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function lw(e){const t=jp({},rw,e.easing),n=jp({},ow,e.duration);return jp({getAutoHeightDuration:aw,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return _p(r,nw),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:iw(o)} ${i} ${"string"==typeof a?a:iw(a)}`)).join(",")}},e,{easing:t,duration:n})}const sw={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uw=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function cw(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=_p(e,uw);if(e.vars)throw new Error(Gp(18));const l=Gx(r),s=Jy(e);let u=Qp(s,{mixins:(c=s.breakpoints,d=n,jp({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:tw.slice(),typography:Jx(l,i),transitions:lw(o),zIndex:jp({},sw)});var c,d;return u=Qp(u,a),u=t.reduce(((e,t)=>Qp(e,t)),u),u}const dw=cw(),pw=e=>vb(e)&&"classes"!==e,fw=vb,hw=yb({defaultTheme:dw,rootShouldForwardProp:pw});function mw({props:e,name:t}){return xb({props:e,name:t,defaultTheme:dw})}function vw(){return vw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vw.apply(this,arguments)}function gw(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function yw(e,t){return yw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yw(e,t)}function bw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yw(e,t)}function xw(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var ww=!1,kw=X.createContext(null),Ew=function(e){return e.scrollTop},Sw="unmounted",Cw="exited",Ow="entering",Pw="entered",Rw="exiting",Tw=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Cw,r.appearStatus=Ow):o=Pw:o=t.unmountOnExit||t.mountOnEnter?Sw:Cw,r.state={status:o},r.nextCallback=null,r}bw(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Sw?{status:Cw}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ow&&n!==Pw&&(t=Ow):n!==Ow&&n!==Pw||(t=Rw)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ow){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:vc.findDOMNode(this);n&&Ew(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cw&&this.setState({status:Sw})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[vc.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||ww?this.safeSetState({status:Pw},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Ow},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Pw},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:vc.findDOMNode(this);t&&!ww?(this.props.onExit(r),this.safeSetState({status:Rw},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Cw},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Cw},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:vc.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Sw)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=gw(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return X.createElement(kw.Provider,{value:null},"function"==typeof n?n(e,r):X.cloneElement(X.Children.only(n),r))},t}(X.Component);function Lw(){}Tw.contextType=kw,Tw.propTypes={},Tw.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lw,onEntering:Lw,onEntered:Lw,onExit:Lw,onExiting:Lw,onExited:Lw},Tw.UNMOUNTED=Sw,Tw.EXITED=Cw,Tw.ENTERING=Ow,Tw.ENTERED=Pw,Tw.EXITING=Rw;var Mw=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},Aw=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=xw(n.className,r):n.setAttribute("class",xw(n.className&&n.className.baseVal||"",r)));var n,r}))},Nw=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}bw(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Ew(e),r&&(this.appliedClasses[t][n]=r,Mw(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&Aw(e,r),o&&Aw(e,o),i&&Aw(e,i)},n.render=function(){var e=this.props;e.classNames;var t=gw(e,["classNames"]);return X.createElement(Tw,vw({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(X.Component);function _w(e,t){var n=Object.create(null);return e&&h.exports.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&h.exports.isValidElement(e)?t(e):e}(e)})),n}function jw(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Iw(e,t,n){var r=_w(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(h.exports.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=h.exports.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&h.exports.isValidElement(u)&&(o[i]=h.exports.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:jw(a,"exit",e),enter:jw(a,"enter",e)})):o[i]=h.exports.cloneElement(a,{in:!1}):o[i]=h.exports.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:jw(a,"exit",e),enter:jw(a,"enter",e)})}})),o}Nw.defaultProps={classNames:""},Nw.propTypes={};var Fw=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},zw=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}bw(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,_w(n.children,(function(e){return h.exports.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:jw(e,"appear",n),enter:jw(e,"enter",n),exit:jw(e,"exit",n)})}))):Iw(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=_w(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=vw({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=gw(e,["component","childFactory"]),o=this.state.contextValue,i=Fw(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?X.createElement(kw.Provider,{value:o},i):X.createElement(kw.Provider,{value:o},X.createElement(t,r,i))},t}(X.Component);zw.propTypes={},zw.defaultProps={component:"div",childFactory:function(e){return e}};var Dw,$w,Bw=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}bw(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=X.Children.toArray(o)[t];if(i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]){var a=i.props.nodeRef?void 0:vc.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=gw(e,["children","in"]),o=X.Children.toArray(t),i=o[0],a=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,X.createElement(zw,r,n?X.cloneElement(i,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):X.cloneElement(a,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(X.Component);Bw.propTypes={};var Ww="out-in",Uw="in-out",Vw=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},qw=((Dw={})[Ww]=function(e){var t=e.current,n=e.changeState;return X.cloneElement(t,{in:!1,onExited:Vw(t,"onExited",(function(){n(Ow,null)}))})},Dw[Uw]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,X.cloneElement(r,{in:!0,onEntered:Vw(r,"onEntered",(function(){n(Ow)}))})]},Dw),Hw=(($w={})[Ww]=function(e){var t=e.children,n=e.changeState;return X.cloneElement(t,{in:!0,onEntered:Vw(t,"onEntered",(function(){n(Pw,X.cloneElement(t,{in:!0}))}))})},$w[Uw]=function(e){var t=e.current,n=e.children,r=e.changeState;return[X.cloneElement(t,{in:!1,onExited:Vw(t,"onExited",(function(){r(Pw,X.cloneElement(n,{in:!0}))}))}),X.cloneElement(n,{in:!0})]},$w),Kw=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Pw,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}bw(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Ow&&e.mode===Uw?{status:Ow}:!t.current||(n=t.current,r=e.children,n===r||X.isValidElement(n)&&X.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:X.cloneElement(e.children,{in:!0})}:{status:Rw};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,l={children:n,current:a,changeState:this.changeState,status:i};switch(i){case Ow:e=Hw[r](l);break;case Rw:e=qw[r](l);break;case Pw:e=a}return X.createElement(kw.Provider,{value:{isMounting:!this.appeared}},e)},t}(X.Component);function Qw(){return lb(dw)}Kw.propTypes={},Kw.defaultProps={mode:Ww};const Gw=e=>e.scrollTop;function Yw(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const Xw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Zw={entering:{opacity:1},entered:{opacity:1}},Jw=h.exports.forwardRef((function(e,t){const n=Qw(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:v,timeout:g=r,TransitionComponent:y=Tw}=e,b=_p(e,Xw),x=h.exports.useRef(null),w=Pf(a.ref,t),k=Pf(x,w),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=E(d),C=E(((e,t)=>{Gw(e);const r=Yw({style:v,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),O=E(c),P=E(m),R=E((e=>{const t=Yw({style:v,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),T=E(f);return Yf.exports.jsx(y,jp({appear:i,in:s,nodeRef:x,onEnter:C,onEntered:O,onEntering:S,onExit:R,onExited:T,onExiting:P,addEndListener:e=>{o&&o(x.current,e)},timeout:g},b,{children:(e,t)=>h.exports.cloneElement(a,jp({style:jp({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Zw[e],v,a.props.style),ref:k},t))}))}));function ek(e){return Vf("MuiBackdrop",e)}qf("MuiBackdrop",["root","invisible"]);const tk=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],nk=hw("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>jp({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),rk=h.exports.forwardRef((function(e,t){var n,r;const o=mw({props:e,name:"MuiBackdrop"}),{children:i,component:a="div",components:l={},componentsProps:s={},className:u,invisible:c=!1,open:d,transitionDuration:p,TransitionComponent:f=Jw}=o,h=_p(o,tk),m=jp({},o,{component:a,invisible:c}),v=(e=>{const{classes:t,invisible:n}=e;return $f({root:["root",n&&"invisible"]},ek,t)})(m);return Yf.exports.jsx(f,jp({in:d,timeout:p},h,{children:Yf.exports.jsx(nk,{"aria-hidden":!0,as:null!=(n=l.Root)?n:a,className:$p(v.root,u),ownerState:jp({},m,null==(r=s.root)?void 0:r.ownerState),classes:v,ref:t,children:i})}))})),ok=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],ik=hw("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>jp({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),ak=hw(rk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lk=h.exports.forwardRef((function(e,t){var n,r;const o=mw({name:"MuiModal",props:e}),{BackdropComponent:i=ak,BackdropProps:a,closeAfterTransition:l=!1,children:s,component:u,components:c={},componentsProps:d={},disableAutoFocus:p=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:v=!1,disableRestoreFocus:g=!1,disableScrollLock:y=!1,hideBackdrop:b=!1,keepMounted:x=!1,theme:w}=o,k=_p(o,ok),[E,S]=h.exports.useState(!0),C={closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:v,disableRestoreFocus:g,disableScrollLock:y,hideBackdrop:b,keepMounted:x},O=jp({},o,C,{exited:E}),P=(e=>e.classes)(O),R=null!=(n=null!=(r=c.Root)?r:u)?n:ik;return Yf.exports.jsx(Bm,jp({components:jp({Root:R,Backdrop:i},c),componentsProps:{root:()=>jp({},Vp(d.root,O),!Wp(R)&&{as:u,theme:w}),backdrop:()=>jp({},a,Vp(d.backdrop,O))},onTransitionEnter:()=>S(!1),onTransitionExited:()=>S(!0),ref:t},k,{classes:P},C,{children:s}))}));function sk(e){return Vf("MuiPaper",e)}qf("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const uk=["className","component","elevation","square","variant"],ck=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},dk=hw("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return jp({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&jp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ob("#fff",ck(t.elevation))}, ${Ob("#fff",ck(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),pk=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=_p(n,uk),u=jp({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return $f({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},sk,o)})(u);return Yf.exports.jsx(dk,jp({as:o,ownerState:u,className:$p(c.root,r),ref:t},s))}));function fk(e){return Vf("MuiDialog",e)}const hk=qf("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),mk=h.exports.createContext({}),vk=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],gk=hw(rk,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),yk=hw(lk,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),bk=hw("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${hf(n.scroll)}`]]}})((({ownerState:e})=>jp({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),xk=hw(pk,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${hf(n.scroll)}`],t[`paperWidth${hf(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>jp({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${hk.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${hk.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${hk.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),wk=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiDialog"}),r=Qw(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,BackdropComponent:l,BackdropProps:s,children:u,className:c,disableEscapeKeyDown:d=!1,fullScreen:p=!1,fullWidth:f=!1,maxWidth:m="sm",onBackdropClick:v,onClose:g,open:y,PaperComponent:b=pk,PaperProps:x={},scroll:w="paper",TransitionComponent:k=Jw,transitionDuration:E=o,TransitionProps:S}=n,C=_p(n,vk),O=jp({},n,{disableEscapeKeyDown:d,fullScreen:p,fullWidth:f,maxWidth:m,scroll:w}),P=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e;return $f({root:["root"],container:["container",`scroll${hf(n)}`],paper:["paper",`paperScroll${hf(n)}`,`paperWidth${hf(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]},fk,t)})(O),R=h.exports.useRef(),T=Sf(a),L=h.exports.useMemo((()=>({titleId:T})),[T]);return Yf.exports.jsx(yk,jp({className:$p(P.root,c),closeAfterTransition:!0,components:{Backdrop:gk},componentsProps:{backdrop:jp({transitionDuration:E,as:l},s)},disableEscapeKeyDown:d,onClose:g,open:y,ref:t,onClick:e=>{R.current&&(R.current=null,v&&v(e),g&&g(e,"backdropClick"))},ownerState:O},C,{children:Yf.exports.jsx(k,jp({appear:!0,in:y,timeout:E,role:"presentation"},S,{children:Yf.exports.jsx(bk,{className:$p(P.container),onMouseDown:e=>{R.current=e.target===e.currentTarget},ownerState:O,children:Yf.exports.jsx(xk,jp({as:b,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":T},x,{className:$p(P.paper,x.className),ownerState:O,children:Yf.exports.jsx(mk.Provider,{value:L,children:u})}))})}))}))}));var kk=function(e){var t=h.exports.useRef(null),n=u(h.exports.useState(null),2),r=n[0],o=n[1],i=Ap(),a=Np((function(e){return e.container})),l=function(e){i({type:"SET_CONTAINER",payload:e})},s=function(){i({type:"ON_CLOSE"})};h.exports.useEffect((function(){var e=document.createElement("div");e.style.width="100vw",e.style.height="100vh",e.style.position="relative",l(e)}),[]),h.exports.useEffect((function(){if(a){var e=window.open("","","width=600,height=600,left=200,top=200");if(!e)return;e.document.title="Tolgee - Translate Text",e.document||alert("Please allow popups to open new window."),t.current=e,e.document.body.style.margin="0px",e.document.body.appendChild(a);e.onbeforeunload=function(){l(void 0),s()};var n=function(e){"Escape"===e.key&&i({type:"ON_CLOSE"})},r=function(){l(void 0),e.close(),s()};return e.document.addEventListener("keydown",n,!0),window.addEventListener("beforeunload",r,!0),o(e),function(){var i;e.document.removeEventListener("keydown",n,!0),window.removeEventListener("beforeunload",r,!0),l(void 0),null===(i=t.current)||void 0===i||i.close(),o(null)}}}),[a]),h.exports.useEffect((function(){null==r||r.focus()}));var c=X.useMemo((function(){var e=null==r?void 0:r.document.head;return cv({key:"external",container:e})}),[r]);return a?J.exports.createPortal(X.createElement(ug,{value:c},e.children),a):null},Ek=function(e){var t=e.children,n=Ap(),r=Np((function(e){return e.useBrowserWindow})),o=Np((function(e){return e.open})),i=Np((function(e){return e.takingScreenshot}));return X.createElement(X.Fragment,null,r?X.createElement(kk,null,t):X.createElement(wk,{disableRestoreFocus:!0,disablePortal:!0,disableEnforceFocus:!0,open:o,onClose:function(){n({type:"ON_CLOSE"})},"aria-labelledby":"form-dialog-title",maxWidth:"lg",style:{zIndex:yc,visibility:i?"hidden":"visible"}},X.createElement(X.Fragment,null,t)))};const Sk=qf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ck=["center","classes","className"];let Ok,Pk,Rk,Tk,Lk=e=>e;const Mk=hg(Ok||(Ok=Lk`
|
|
43
|
+
0% {
|
|
44
|
+
transform: scale(0);
|
|
45
|
+
opacity: 0.1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
100% {
|
|
49
|
+
transform: scale(1);
|
|
50
|
+
opacity: 0.3;
|
|
51
|
+
}
|
|
52
|
+
`)),Ak=hg(Pk||(Pk=Lk`
|
|
53
|
+
0% {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
100% {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
}
|
|
60
|
+
`)),Nk=hg(Rk||(Rk=Lk`
|
|
61
|
+
0% {
|
|
62
|
+
transform: scale(1);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
50% {
|
|
66
|
+
transform: scale(0.92);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
100% {
|
|
70
|
+
transform: scale(1);
|
|
71
|
+
}
|
|
72
|
+
`)),_k=hw("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),jk=hw((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=h.exports.useState(!1),p=$p(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=$p(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),h.exports.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Yf.exports.jsx("span",{className:p,style:f,children:Yf.exports.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Tk||(Tk=Lk`
|
|
73
|
+
opacity: 0;
|
|
74
|
+
position: absolute;
|
|
75
|
+
|
|
76
|
+
&.${0} {
|
|
77
|
+
opacity: 0.3;
|
|
78
|
+
transform: scale(1);
|
|
79
|
+
animation-name: ${0};
|
|
80
|
+
animation-duration: ${0}ms;
|
|
81
|
+
animation-timing-function: ${0};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.${0} {
|
|
85
|
+
animation-duration: ${0}ms;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
& .${0} {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
display: block;
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 100%;
|
|
93
|
+
border-radius: 50%;
|
|
94
|
+
background-color: currentColor;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
& .${0} {
|
|
98
|
+
opacity: 0;
|
|
99
|
+
animation-name: ${0};
|
|
100
|
+
animation-duration: ${0}ms;
|
|
101
|
+
animation-timing-function: ${0};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
& .${0} {
|
|
105
|
+
position: absolute;
|
|
106
|
+
/* @noflip */
|
|
107
|
+
left: 0px;
|
|
108
|
+
top: 0;
|
|
109
|
+
animation-name: ${0};
|
|
110
|
+
animation-duration: 2500ms;
|
|
111
|
+
animation-timing-function: ${0};
|
|
112
|
+
animation-iteration-count: infinite;
|
|
113
|
+
animation-delay: 200ms;
|
|
114
|
+
}
|
|
115
|
+
`),Sk.rippleVisible,Mk,550,(({theme:e})=>e.transitions.easing.easeInOut),Sk.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Sk.child,Sk.childLeaving,Ak,550,(({theme:e})=>e.transitions.easing.easeInOut),Sk.childPulsate,Nk,(({theme:e})=>e.transitions.easing.easeInOut)),Ik=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=_p(n,Ck),[l,s]=h.exports.useState([]),u=h.exports.useRef(0),c=h.exports.useRef(null);h.exports.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=h.exports.useRef(!1),p=h.exports.useRef(null),f=h.exports.useRef(null),m=h.exports.useRef(null);h.exports.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const v=h.exports.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Yf.exports.jsx(jk,{classes:{ripple:$p(o.ripple,Sk.ripple),rippleVisible:$p(o.rippleVisible,Sk.rippleVisible),ripplePulsate:$p(o.ripplePulsate,Sk.ripplePulsate),child:$p(o.child,Sk.child),childLeaving:$p(o.childLeaving,Sk.childLeaving),childPulsate:$p(o.childPulsate,Sk.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=h.exports.useCallback(((e={},t={},n)=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,h;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)h=Math.sqrt((2*s.width**2+s.height**2)/3),h%2==0&&(h+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;h=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{v({pulsate:o,rippleX:u,rippleY:c,rippleSize:h,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):v({pulsate:o,rippleX:u,rippleY:c,rippleSize:h,cb:n})}),[r,v]),y=h.exports.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=h.exports.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return h.exports.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:b})),[y,g,b]),Yf.exports.jsx(_k,jp({className:$p(Sk.root,o.root,i),ref:m},a,{children:Yf.exports.jsx(zw,{component:null,exit:!0,children:l})}))}));function Fk(e){return Vf("MuiButtonBase",e)}const zk=qf("MuiButtonBase",["root","disabled","focusVisible"]),Dk=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],$k=hw("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zk.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Bk=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:v,onDragLeave:g,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:w,onMouseDown:k,onMouseLeave:E,onMouseUp:S,onTouchEnd:C,onTouchMove:O,onTouchStart:P,tabIndex:R=0,TouchRippleProps:T,touchRippleRef:L,type:M}=n,A=_p(n,Dk),N=h.exports.useRef(null),_=h.exports.useRef(null),j=Pf(_,L),{isFocusVisibleRef:I,onFocus:F,onBlur:z,ref:D}=If(),[$,B]=h.exports.useState(!1);s&&$&&B(!1),h.exports.useImperativeHandle(r,(()=>({focusVisible:()=>{B(!0),N.current.focus()}})),[]);const[W,U]=h.exports.useState(!1);h.exports.useEffect((()=>{U(!0)}),[]);const V=W&&!u&&!s;function q(e,t,n=c){return Of((r=>{t&&t(r);return!n&&_.current&&_.current[e](r),!0}))}h.exports.useEffect((()=>{$&&d&&!u&&W&&_.current.pulsate()}),[u,d,$,W]);const H=q("start",k),K=q("stop",v),Q=q("stop",g),G=q("stop",S),Y=q("stop",(e=>{$&&e.preventDefault(),E&&E(e)})),X=q("start",P),Z=q("stop",C),J=q("stop",O),ee=q("stop",(e=>{z(e),!1===I.current&&B(!1),f&&f(e)}),!1),te=Of((e=>{N.current||(N.current=e.currentTarget),F(e),!0===I.current&&(B(!0),b&&b(e)),y&&y(e)})),ne=()=>{const e=N.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=h.exports.useRef(!1),oe=Of((e=>{d&&!re.current&&$&&_.current&&" "===e.key&&(re.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Of((e=>{d&&" "===e.key&&_.current&&$&&!e.defaultPrevented&&(re.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),w&&w(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(A.href||A.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(A.href||A.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Pf(D,N),ue=Pf(t,se),ce=jp({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:R,focusVisible:$}),de=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=$f({root:["root",t&&"disabled",n&&"focusVisible"]},Fk,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Yf.exports.jsxs($k,jp({as:ae,className:$p(de.root,a),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:K,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:H,onMouseLeave:Y,onMouseUp:G,onDragLeave:Q,onTouchEnd:Z,onTouchMove:J,onTouchStart:X,ref:ue,tabIndex:s?-1:R,type:M},le,A,{children:[i,V?Yf.exports.jsx(Ik,jp({ref:j,center:o},T)):null]}))}));function Wk(e){return Vf("MuiIconButton",e)}const Uk=qf("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Vk=["edge","children","className","color","disabled","disableFocusRipple","size"],qk=hw(Bk,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${hf(n.color)}`],n.edge&&t[`edge${hf(n.edge)}`],t[`size${hf(n.size)}`]]}})((({theme:e,ownerState:t})=>jp({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ob(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>jp({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&jp({color:(e.vars||e).palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ob(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Uk.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Hk=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:u="medium"}=n,c=_p(n,Vk),d=jp({},n,{edge:r,color:a,disabled:l,disableFocusRipple:s,size:u}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return $f({root:["root",n&&"disabled","default"!==r&&`color${hf(r)}`,o&&`edge${hf(o)}`,`size${hf(i)}`]},Wk,t)})(d);return Yf.exports.jsx(qk,jp({className:$p(p.root,i),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},c,{children:o}))}));function Kk(e){return Vf("MuiButton",e)}const Qk=qf("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Gk=h.exports.createContext({}),Yk=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Xk=e=>jp({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Zk=hw(Bk,{shouldForwardProp:e=>pw(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${hf(n.color)}`],t[`size${hf(n.size)}`],t[`${n.variant}Size${hf(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return jp({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":jp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ob(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ob(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ob(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":jp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Qk.focusVisible}`]:jp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Qk.disabled}`]:jp({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${(e.vars||e).palette.action.disabled}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ob(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Qk.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Qk.disabled}`]:{boxShadow:"none"}})),Jk=hw("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${hf(n.size)}`]]}})((({ownerState:e})=>jp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Xk(e)))),eE=hw("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${hf(n.size)}`]]}})((({ownerState:e})=>jp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Xk(e)))),tE=h.exports.forwardRef((function(e,t){const n=h.exports.useContext(Gk),r=mw({props:Df(n,e),name:"MuiButton"}),{children:o,color:i="primary",component:a="button",className:l,disabled:s=!1,disableElevation:u=!1,disableFocusRipple:c=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:m="medium",startIcon:v,type:g,variant:y="text"}=r,b=_p(r,Yk),x=jp({},r,{color:i,component:a,disabled:s,disableElevation:u,disableFocusRipple:c,fullWidth:f,size:m,type:g,variant:y}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return jp({},a,$f({root:["root",i,`${i}${hf(t)}`,`size${hf(o)}`,`${i}Size${hf(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${hf(o)}`],endIcon:["endIcon",`iconSize${hf(o)}`]},Kk,a))})(x),k=v&&Yf.exports.jsx(Jk,{className:w.startIcon,ownerState:x,children:v}),E=d&&Yf.exports.jsx(eE,{className:w.endIcon,ownerState:x,children:d});return Yf.exports.jsxs(Zk,jp({ownerState:x,className:$p(n.className,w.root,l),component:a,disabled:s,focusRipple:!c,focusVisibleClassName:$p(w.focusVisible,p),ref:t,type:g},b,{classes:w,children:[k,o,E]}))})),nE=["colorSchemes","cssVarPrefix"],rE=["palette"],oE=[...Array(25)].map(((e,t)=>{if(0===t)return;const n=ck(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function iE(e,t,n){e[t]=e[t]||n}const aE=function(e={},...t){var n,r,o,i,a,l;const{colorSchemes:s={},cssVarPrefix:u="mui"}=e,c=_p(e,nE),d=((e="mui")=>jb(e))(u),p=cw(jp({},c,s.light&&{palette:null==(n=s.light)?void 0:n.palette})),{palette:f}=p,h=_p(p,rE),{palette:m}=cw({palette:jp({mode:"dark"},null==(r=s.dark)?void 0:r.palette)});let v=jp({},h,{cssVarPrefix:u,getCssVar:d,colorSchemes:jp({},s,{light:jp({},s.light,{palette:f,opacity:jp({inputPlaceholder:.42,inputUnderline:.42,switchTrackDisabled:.12,switchTrack:.38},null==(o=s.light)?void 0:o.opacity),overlays:(null==(i=s.light)?void 0:i.overlays)||[]}),dark:jp({},s.dark,{palette:m,opacity:jp({inputPlaceholder:.5,inputUnderline:.7,switchTrackDisabled:.2,switchTrack:.3},null==(a=s.dark)?void 0:a.opacity),overlays:(null==(l=s.dark)?void 0:l.overlays)||oE})})});return Object.keys(v.colorSchemes).forEach((e=>{const t=v.colorSchemes[e].palette;var n;if("light"===e?(iE(t.common,"background","#fff"),iE(t.common,"onBackground","#000")):(iE(t.common,"background","#000"),iE(t.common,"onBackground","#fff")),n=t,["Alert","AppBar","Avatar","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach((e=>{n[e]||(n[e]={})})),"light"===e){iE(t.Alert,"errorColor",Pb(t.error.light,.6)),iE(t.Alert,"infoColor",Pb(t.info.light,.6)),iE(t.Alert,"successColor",Pb(t.success.light,.6)),iE(t.Alert,"warningColor",Pb(t.warning.light,.6)),iE(t.Alert,"errorFilledBg",d("palette-error-main")),iE(t.Alert,"infoFilledBg",d("palette-info-main")),iE(t.Alert,"successFilledBg",d("palette-success-main")),iE(t.Alert,"warningFilledBg",d("palette-warning-main")),iE(t.Alert,"errorFilledColor",f.getContrastText(t.error.main)),iE(t.Alert,"infoFilledColor",f.getContrastText(t.info.main)),iE(t.Alert,"successFilledColor",f.getContrastText(t.success.main)),iE(t.Alert,"warningFilledColor",f.getContrastText(t.warning.main)),iE(t.Alert,"errorStandardBg",Rb(t.error.light,.9)),iE(t.Alert,"infoStandardBg",Rb(t.info.light,.9)),iE(t.Alert,"successStandardBg",Rb(t.success.light,.9)),iE(t.Alert,"warningStandardBg",Rb(t.warning.light,.9)),iE(t.Alert,"errorIconColor",d("palette-error-light")),iE(t.Alert,"infoIconColor",d("palette-info-light")),iE(t.Alert,"successIconColor",d("palette-success-light")),iE(t.Alert,"warningIconColor",d("palette-warning-light")),iE(t.AppBar,"defaultBg",d("palette-grey-100")),iE(t.Avatar,"defaultBg",d("palette-grey-400")),iE(t.Chip,"defaultBorder",d("palette-grey-400")),iE(t.Chip,"defaultAvatarColor",d("palette-grey-700")),iE(t.Chip,"defaultIconColor",d("palette-grey-700")),iE(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),iE(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),iE(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),iE(t.LinearProgress,"primaryBg",Rb(t.primary.main,.62)),iE(t.LinearProgress,"secondaryBg",Rb(t.secondary.main,.62)),iE(t.LinearProgress,"errorBg",Rb(t.error.main,.62)),iE(t.LinearProgress,"infoBg",Rb(t.info.main,.62)),iE(t.LinearProgress,"successBg",Rb(t.success.main,.62)),iE(t.LinearProgress,"warningBg",Rb(t.warning.main,.62)),iE(t.Skeleton,"bg",`rgba(${d("palette-text-primaryChannel")} / 0.11)`),iE(t.Slider,"primaryTrack",Rb(t.primary.main,.62)),iE(t.Slider,"secondaryTrack",Rb(t.secondary.main,.62)),iE(t.Slider,"errorTrack",Rb(t.error.main,.62)),iE(t.Slider,"infoTrack",Rb(t.info.main,.62)),iE(t.Slider,"successTrack",Rb(t.success.main,.62)),iE(t.Slider,"warningTrack",Rb(t.warning.main,.62));const e=Tb(t.background.default,.8);iE(t.SnackbarContent,"bg",e),iE(t.SnackbarContent,"color",f.getContrastText(e)),iE(t.SpeedDialAction,"fabHoverBg",Tb(t.background.paper,.15)),iE(t.StepConnector,"border",d("palette-grey-400")),iE(t.StepContent,"border",d("palette-grey-400")),iE(t.Switch,"defaultColor",d("palette-common-white")),iE(t.Switch,"defaultDisabledColor",d("palette-grey-100")),iE(t.Switch,"primaryDisabledColor",Rb(t.primary.main,.62)),iE(t.Switch,"secondaryDisabledColor",Rb(t.secondary.main,.62)),iE(t.Switch,"errorDisabledColor",Rb(t.error.main,.62)),iE(t.Switch,"infoDisabledColor",Rb(t.info.main,.62)),iE(t.Switch,"successDisabledColor",Rb(t.success.main,.62)),iE(t.Switch,"warningDisabledColor",Rb(t.warning.main,.62)),iE(t.TableCell,"border",Rb(Ob(t.divider,1),.88)),iE(t.Tooltip,"bg",Ob(t.grey[700],.92))}else{iE(t.Alert,"errorColor",Rb(t.error.light,.6)),iE(t.Alert,"infoColor",Rb(t.info.light,.6)),iE(t.Alert,"successColor",Rb(t.success.light,.6)),iE(t.Alert,"warningColor",Rb(t.warning.light,.6)),iE(t.Alert,"errorFilledBg",d("palette-error-dark")),iE(t.Alert,"infoFilledBg",d("palette-info-dark")),iE(t.Alert,"successFilledBg",d("palette-success-dark")),iE(t.Alert,"warningFilledBg",d("palette-warning-dark")),iE(t.Alert,"errorFilledColor",m.getContrastText(t.error.dark)),iE(t.Alert,"infoFilledColor",m.getContrastText(t.info.dark)),iE(t.Alert,"successFilledColor",m.getContrastText(t.success.dark)),iE(t.Alert,"warningFilledColor",m.getContrastText(t.warning.dark)),iE(t.Alert,"errorStandardBg",Pb(t.error.light,.9)),iE(t.Alert,"infoStandardBg",Pb(t.info.light,.9)),iE(t.Alert,"successStandardBg",Pb(t.success.light,.9)),iE(t.Alert,"warningStandardBg",Pb(t.warning.light,.9)),iE(t.Alert,"errorIconColor",d("palette-error-main")),iE(t.Alert,"infoIconColor",d("palette-info-main")),iE(t.Alert,"successIconColor",d("palette-success-main")),iE(t.Alert,"warningIconColor",d("palette-warning-main")),iE(t.AppBar,"defaultBg",d("palette-grey-900")),iE(t.AppBar,"darkBg",d("palette-background-paper")),iE(t.AppBar,"darkColor",d("palette-text-primary")),iE(t.Avatar,"defaultBg",d("palette-grey-600")),iE(t.Chip,"defaultBorder",d("palette-grey-700")),iE(t.Chip,"defaultAvatarColor",d("palette-grey-300")),iE(t.Chip,"defaultIconColor",d("palette-grey-300")),iE(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),iE(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),iE(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),iE(t.LinearProgress,"primaryBg",Pb(t.primary.main,.5)),iE(t.LinearProgress,"secondaryBg",Pb(t.secondary.main,.5)),iE(t.LinearProgress,"errorBg",Pb(t.error.main,.5)),iE(t.LinearProgress,"infoBg",Pb(t.info.main,.5)),iE(t.LinearProgress,"successBg",Pb(t.success.main,.5)),iE(t.LinearProgress,"warningBg",Pb(t.warning.main,.5)),iE(t.Skeleton,"bg",`rgba(${d("palette-text-primaryChannel")} / 0.13)`),iE(t.Slider,"primaryTrack",Pb(t.primary.main,.5)),iE(t.Slider,"secondaryTrack",Pb(t.secondary.main,.5)),iE(t.Slider,"errorTrack",Pb(t.error.main,.5)),iE(t.Slider,"infoTrack",Pb(t.info.main,.5)),iE(t.Slider,"successTrack",Pb(t.success.main,.5)),iE(t.Slider,"warningTrack",Pb(t.warning.main,.5));const e=Tb(t.background.default,.98);iE(t.SnackbarContent,"bg",e),iE(t.SnackbarContent,"color",m.getContrastText(e)),iE(t.SpeedDialAction,"fabHoverBg",Tb(t.background.paper,.15)),iE(t.StepConnector,"border",d("palette-grey-600")),iE(t.StepContent,"border",d("palette-grey-600")),iE(t.Switch,"defaultColor",d("palette-grey-300")),iE(t.Switch,"defaultDisabledColor",d("palette-grey-600")),iE(t.Switch,"primaryDisabledColor",Pb(t.primary.main,.55)),iE(t.Switch,"secondaryDisabledColor",Pb(t.secondary.main,.55)),iE(t.Switch,"errorDisabledColor",Pb(t.error.main,.55)),iE(t.Switch,"infoDisabledColor",Pb(t.info.main,.55)),iE(t.Switch,"successDisabledColor",Pb(t.success.main,.55)),iE(t.Switch,"warningDisabledColor",Pb(t.warning.main,.55)),iE(t.TableCell,"border",Pb(Ob(t.divider,1),.68)),iE(t.Tooltip,"bg",Ob(t.grey[700],.92))}t.common.backgroundChannel=Eb(t.common.background),t.common.onBackgroundChannel=Eb(t.common.onBackground),t.dividerChannel=Eb(t.divider),Object.keys(t).forEach((e=>{const n=t[e];n.main&&(t[e].mainChannel=Eb(n.main)),n.light&&(t[e].lightChannel=Eb(n.light)),n.dark&&(t[e].darkChannel=Eb(n.dark)),n.contrastText&&(t[e].contrastTextChannel=Eb(n.contrastText)),n.primary&&(t[e].primaryChannel=Eb(n.primary)),n.secondary&&(t[e].secondaryChannel=Eb(n.secondary)),n.active&&(t[e].activeChannel=Eb(n.active)),n.selected&&(t[e].selectedChannel=Eb(n.selected))}))})),v=t.reduce(((e,t)=>Qp(e,t)),v),v}();!function(e){const{theme:t={},attribute:n=_b,modeStorageKey:r=Ab,colorSchemeStorageKey:o=Nb,defaultMode:i="light",defaultColorScheme:a,disableTransitionOnChange:l=!1,enableColorScheme:s=!0,shouldSkipGeneratingVar:u,resolveTheme:c,excludeVariablesFromRoot:d}=e;(!t.colorSchemes||"string"==typeof a&&!t.colorSchemes[a]||"object"==typeof a&&!t.colorSchemes[null==a?void 0:a.light]||"object"==typeof a&&!t.colorSchemes[null==a?void 0:a.dark])&&console.error(`MUI: \`${a}\` does not exist in \`theme.colorSchemes\`.`);const p=h.exports.createContext(void 0)}({theme:aE,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>jp({},e,{typography:Jx(e.palette,e.typography)}),shouldSkipGeneratingVar:e=>{var t;return!!e[0].match(/(typography|mixins|breakpoints|direction|transitions)/)||"palette"===e[0]&&!(null==(t=e[1])||!t.match(/(mode|contrastThreshold|tonalOffset)/))},excludeVariablesFromRoot:e=>[...[...Array(24)].map(((t,n)=>`--${e?`${e}-`:""}overlays-${n+1}`)),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`]});var lE={},sE={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(sE);var uE={};function cE(e){return Vf("MuiSvgIcon",e)}qf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dE=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],pE=hw("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${hf(n.color)}`],t[`fontSize${hf(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,h,m,v,g,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(l=a.pxToRem)?void 0:l.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(u=s.pxToRem)?void 0:u.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=(e.vars||e).palette)||null==(v=m.action)?void 0:v.active,disabled:null==(g=(e.vars||e).palette)||null==(y=g.action)?void 0:y.disabled,inherit:void 0}[t.color]}})),fE=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=_p(n,dE),f=jp({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d}),h={};u||(h.viewBox=d);const m=(e=>{const{color:t,fontSize:n,classes:r}=e;return $f({root:["root","inherit"!==t&&`color${hf(t)}`,`fontSize${hf(n)}`]},cE,r)})(f);return Yf.exports.jsxs(pE,jp({as:a,className:$p(m.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,{ownerState:f,children:[r,c?Yf.exports.jsx("title",{children:c}):null]}))}));function hE(e,t){const n=(n,r)=>Yf.exports.jsx(fE,jp({"data-testid":`${t}Icon`,ref:r},n,{children:e}));return n.muiName=fE.muiName,h.exports.memo(h.exports.forwardRef(n))}fE.muiName="SvgIcon";const mE={configure:e=>{console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),Wf.configure(e)}};var vE,gE=f(Object.freeze({__proto__:null,unstable_ClassNameGenerator:mE,capitalize:hf,createChainedFunction:mf,createSvgIcon:hE,debounce:vf,deprecatedPropType:function(e,t){return()=>null},isMuiElement:gf,ownerDocument:yf,ownerWindow:bf,requirePropFactory:function(e,t){return()=>null},setRef:xf,unstable_useEnhancedEffect:wf,unstable_useId:Sf,unsupportedProp:function(e,t,n,r,o){return null},useControlled:Cf,useEventCallback:Of,useForkRef:Pf,useIsFocusVisible:If}));function yE(){return vE||(vE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=gE}(uE)),uE}var bE=sE.exports;Object.defineProperty(lE,"__esModule",{value:!0});var xE=lE.default=void 0,wE=bE(yE()),kE=Yf.exports,EE=(0,wE.default)((0,kE.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");function SE({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}xE=lE.default=EE;const CE=h.exports.createContext();function OE(){return h.exports.useContext(CE)}function PE(e){return Yf.exports.jsx(Ng,jp({},e,{defaultTheme:dw}))}function RE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function TE(e,t=!1){return e&&(RE(e.value)&&""!==e.value||t&&RE(e.defaultValue)&&""!==e.defaultValue)}function LE(e){return Vf("MuiInputBase",e)}const ME=qf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),AE=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],NE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${hf(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_E=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},jE=hw("div",{name:"MuiInputBase",slot:"Root",overridesResolver:NE})((({theme:e,ownerState:t})=>jp({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ME.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&jp({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),IE=hw("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_E})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=jp({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return jp({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ME.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ME.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),FE=Yf.exports.jsx(PE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),zE=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:a,components:l={},componentsProps:s={},defaultValue:u,disabled:c,disableInjectingGlobalStyles:d,endAdornment:p,fullWidth:f=!1,id:m,inputComponent:v="input",inputProps:g={},inputRef:y,maxRows:b,minRows:x,multiline:w=!1,name:k,onBlur:E,onChange:S,onClick:C,onFocus:O,onKeyDown:P,onKeyUp:R,placeholder:T,readOnly:L,renderSuffix:M,rows:A,startAdornment:N,type:_="text",value:j}=n,I=_p(n,AE),F=null!=g.value?g.value:j,{current:z}=h.exports.useRef(null!=F),D=h.exports.useRef(),$=h.exports.useCallback((e=>{}),[]),B=Pf(g.ref,$),W=Pf(y,B),U=Pf(D,W),[V,q]=h.exports.useState(!1),H=OE(),K=SE({props:n,muiFormControl:H,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=H?H.focused:V,h.exports.useEffect((()=>{!H&&c&&V&&(q(!1),E&&E())}),[H,c,V,E]);const Q=H&&H.onFilled,G=H&&H.onEmpty,Y=h.exports.useCallback((e=>{TE(e)?Q&&Q():G&&G()}),[Q,G]);wf((()=>{z&&Y({value:F})}),[F,Y,z]);h.exports.useEffect((()=>{Y(D.current)}),[]);let X=v,Z=g;w&&"input"===X&&(Z=jp(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:b,minRows:x},Z),X=Km);h.exports.useEffect((()=>{H&&H.setAdornedStart(Boolean(N))}),[H,N]);const J=jp({},n,{color:K.color||"primary",disabled:K.disabled,endAdornment:p,error:K.error,focused:K.focused,formControl:H,fullWidth:f,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:N,type:_}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return $f({root:["root",`color${hf(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl","small"===p&&"sizeSmall",c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},LE,t)})(J),te=l.Root||jE,ne=s.root||{},re=l.Input||IE;return Z=jp({},Z,s.input),Yf.exports.jsxs(h.exports.Fragment,{children:[!d&&FE,Yf.exports.jsxs(te,jp({},ne,!Wp(te)&&{ownerState:jp({},J,ne.ownerState)},{ref:t,onClick:e=>{D.current&&e.currentTarget===e.target&&D.current.focus(),C&&C(e)}},I,{className:$p(ee.root,ne.className,a),children:[N,Yf.exports.jsx(CE.Provider,{value:null,children:Yf.exports.jsx(re,jp({ownerState:J,"aria-invalid":K.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Y("mui-auto-fill-cancel"===e.animationName?D.current:{value:"x"})},name:k,placeholder:T,readOnly:L,required:K.required,rows:A,value:F,onKeyDown:P,onKeyUp:R,type:_},Z,!Wp(re)&&{as:X,ownerState:jp({},J,Z.ownerState)},{ref:U,className:$p(ee.input,Z.className),onBlur:e=>{E&&E(e),g.onBlur&&g.onBlur(e),H&&H.onBlur?H.onBlur(e):q(!1)},onChange:(e,...t)=>{if(!z){const t=e.target||D.current;if(null==t)throw new Error(Gp(1));Y({value:t.value})}g.onChange&&g.onChange(e,...t),S&&S(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(O&&O(e),g.onFocus&&g.onFocus(e),H&&H.onFocus?H.onFocus(e):q(!0))}}))}),p,M?M(jp({},K,{startAdornment:N})):null]}))]})}));function DE(e){return Vf("MuiInput",e)}const $E=jp({},ME,qf("MuiInput",["root","underline","input"])),BE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],WE=hw(jE,{shouldForwardProp:e=>pw(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...NE(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),jp({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$E.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$E.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$E.disabled}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$E.disabled}:before`]:{borderBottomStyle:"dotted"}})})),UE=hw(IE,{name:"MuiInput",slot:"Input",overridesResolver:_E})({}),VE=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiInput"}),{disableUnderline:r,components:o={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:s=!1,type:u="text"}=n,c=_p(n,BE),d=(e=>{const{classes:t,disableUnderline:n}=e;return jp({},t,$f({root:["root",!n&&"underline"],input:["input"]},DE,t))})(n),p={root:{ownerState:{disableUnderline:r}}},f=i?Qp(i,p):p;return Yf.exports.jsx(zE,jp({components:jp({Root:WE,Input:UE},o),componentsProps:f,fullWidth:a,inputComponent:l,multiline:s,ref:t,type:u},c,{classes:d}))}));function qE(e){return Vf("MuiFilledInput",e)}VE.muiName="Input";const HE=jp({},ME,qf("MuiFilledInput",["root","underline","input"])),KE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],QE=hw(jE,{shouldForwardProp:e=>pw(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...NE(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return jp({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${HE.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${HE.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${HE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${HE.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${HE.disabled}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${HE.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&jp({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),GE=hw(IE,{name:"MuiFilledInput",slot:"Input",overridesResolver:_E})((({theme:e,ownerState:t})=>jp({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),YE=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiFilledInput"}),{components:r={},componentsProps:o,fullWidth:i=!1,inputComponent:a="input",multiline:l=!1,type:s="text"}=n,u=_p(n,KE),c=jp({},n,{fullWidth:i,inputComponent:a,multiline:l,type:s}),d=(e=>{const{classes:t,disableUnderline:n}=e;return jp({},t,$f({root:["root",!n&&"underline"],input:["input"]},qE,t))})(n),p={root:{ownerState:c},input:{ownerState:c}},f=o?Qp(o,p):p;return Yf.exports.jsx(zE,jp({components:jp({Root:QE,Input:GE},r),componentsProps:f,fullWidth:i,inputComponent:a,multiline:l,ref:t,type:s},u,{classes:d}))}));var XE;YE.muiName="Input";const ZE=["children","classes","className","label","notched"],JE=hw("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),eS=hw("legend")((({ownerState:e,theme:t})=>jp({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&jp({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));function tS(e){return Vf("MuiOutlinedInput",e)}const nS=jp({},ME,qf("MuiOutlinedInput",["root","notchedOutline","input"])),rS=["components","fullWidth","inputComponent","label","multiline","notched","type"],oS=hw(jE,{shouldForwardProp:e=>pw(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:NE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return jp({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${nS.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${nS.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${nS.focused} .${nS.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${nS.error} .${nS.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${nS.disabled} .${nS.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&jp({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),iS=hw((function(e){const{className:t,label:n,notched:r}=e,o=_p(e,ZE),i=null!=n&&""!==n,a=jp({},e,{notched:r,withLabel:i});return Yf.exports.jsx(JE,jp({"aria-hidden":!0,className:t,ownerState:a},o,{children:Yf.exports.jsx(eS,{ownerState:a,children:i?Yf.exports.jsx("span",{children:n}):XE||(XE=Yf.exports.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),aS=hw(IE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_E})((({theme:e,ownerState:t})=>jp({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),lS=h.exports.forwardRef((function(e,t){var n;const r=mw({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:a="input",label:l,multiline:s=!1,notched:u,type:c="text"}=r,d=_p(r,rS),p=(e=>{const{classes:t}=e;return jp({},t,$f({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},tS,t))})(r),f=OE(),m=SE({props:r,muiFormControl:f,states:["required"]}),v=jp({},r,{color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:i,hiddenLabel:m.hiddenLabel,multiline:s,size:m.size,type:c});return Yf.exports.jsx(zE,jp({components:jp({Root:oS,Input:aS},o),renderSuffix:e=>Yf.exports.jsx(iS,{ownerState:v,className:p.notchedOutline,label:null!=l&&""!==l&&m.required?n||(n=Yf.exports.jsxs(h.exports.Fragment,{children:[l," ","*"]})):l,notched:void 0!==u?u:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:i,inputComponent:a,multiline:s,ref:t,type:c},d,{classes:jp({},p,{notchedOutline:null})}))}));function sS(e){return Vf("MuiFormLabel",e)}lS.muiName="Input";const uS=qf("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),cS=["children","className","color","component","disabled","error","filled","focused","required"],dS=hw("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>jp({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>jp({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${uS.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${uS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${uS.error}`]:{color:(e.vars||e).palette.error.main}}))),pS=hw("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${uS.error}`]:{color:(e.vars||e).palette.error.main}}))),fS=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiFormLabel"}),{children:r,className:o,component:i="label"}=n,a=_p(n,cS),l=SE({props:n,muiFormControl:OE(),states:["color","required","focused","disabled","error","filled"]}),s=jp({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),u=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:l}=e;return $f({root:["root",`color${hf(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]},sS,t)})(s);return Yf.exports.jsxs(dS,jp({as:i,ownerState:s,className:$p(u.root,o),ref:t},a,{children:[r,l.required&&Yf.exports.jsxs(pS,{ownerState:s,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));function hS(e){return Vf("MuiInputLabel",e)}qf("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const mS=["disableAnimation","margin","shrink","variant","className"],vS=hw(fS,{shouldForwardProp:e=>pw(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${uS.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>jp({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&jp({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&jp({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&jp({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"})))),gS=h.exports.forwardRef((function(e,t){const n=mw({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:o,className:i}=n,a=_p(n,mS),l=OE();let s=o;void 0===s&&l&&(s=l.filled||l.focused||l.adornedStart);const u=SE({props:n,muiFormControl:l,states:["size","variant","required"]}),c=jp({},n,{disableAnimation:r,formControl:l,shrink:s,size:u.size,variant:u.variant,required:u.required}),d=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:l}=e;return jp({},t,$f({root:["root",n&&"formControl",!i&&"animated",o&&"shrink","small"===r&&"sizeSmall",a],asterisk:[l&&"asterisk"]},hS,t))})(c);return Yf.exports.jsx(vS,jp({"data-shrink":s,ownerState:c,ref:t,className:$p(d.root,i)},a,{classes:d}))}));function yS(e){return Vf("MuiFormControl",e)}qf("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const bS=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],xS=hw("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>jp({},t.root,t[`margin${hf(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>jp({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),wS=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiFormControl"}),{children:r,className:o,color:i="primary",component:a="div",disabled:l=!1,error:s=!1,focused:u,fullWidth:c=!1,hiddenLabel:d=!1,margin:p="none",required:f=!1,size:m="medium",variant:v="outlined"}=n,g=_p(n,bS),y=jp({},n,{color:i,component:a,disabled:l,error:s,fullWidth:c,hiddenLabel:d,margin:p,required:f,size:m,variant:v}),b=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return $f({root:["root","none"!==n&&`margin${hf(n)}`,r&&"fullWidth"]},yS,t)})(y),[x,w]=h.exports.useState((()=>{let e=!1;return r&&h.exports.Children.forEach(r,(t=>{if(!gf(t,["Input","Select"]))return;const n=gf(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[k,E]=h.exports.useState((()=>{let e=!1;return r&&h.exports.Children.forEach(r,(t=>{gf(t,["Input","Select"])&&TE(t.props,!0)&&(e=!0)})),e})),[S,C]=h.exports.useState(!1);l&&S&&C(!1);const O=void 0===u||l?S:u;const P=h.exports.useCallback((()=>{E(!0)}),[]),R={adornedStart:x,setAdornedStart:w,color:i,disabled:l,error:s,filled:k,focused:O,fullWidth:c,hiddenLabel:d,size:m,onBlur:()=>{C(!1)},onEmpty:h.exports.useCallback((()=>{E(!1)}),[]),onFilled:P,onFocus:()=>{C(!0)},registerEffect:undefined,required:f,variant:v};return Yf.exports.jsx(CE.Provider,{value:R,children:Yf.exports.jsx(xS,jp({as:a,ownerState:y,className:$p(b.root,o),ref:t},g,{children:r}))})}));function kS(e){return Vf("MuiFormHelperText",e)}const ES=qf("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var SS;const CS=["children","className","component","disabled","error","filled","focused","margin","required","variant"],OS=hw("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${hf(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>jp({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ES.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ES.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),PS=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:i="p"}=n,a=_p(n,CS),l=SE({props:n,muiFormControl:OE(),states:["variant","size","disabled","error","filled","focused","required"]}),s=jp({},n,{component:i,contained:"filled"===l.variant||"outlined"===l.variant,variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),u=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:l,required:s}=e;return $f({root:["root",o&&"disabled",i&&"error",r&&`size${hf(r)}`,n&&"contained",l&&"focused",a&&"filled",s&&"required"]},kS,t)})(s);return Yf.exports.jsx(OS,jp({as:i,ownerState:s,className:$p(u.root,o),ref:t},a,{children:" "===r?SS||(SS=Yf.exports.jsx("span",{className:"notranslate",children:""})):r}))})),RS=h.exports.createContext({});function TS(e){return Vf("MuiList",e)}qf("MuiList",["root","padding","dense","subheader"]);const LS=["children","className","component","dense","disablePadding","subheader"],MS=hw("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>jp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),AS=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=_p(n,LS),c=h.exports.useMemo((()=>({dense:a})),[a]),d=jp({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return $f({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},TS,t)})(d);return Yf.exports.jsx(RS.Provider,{value:c,children:Yf.exports.jsxs(MS,jp({as:i,className:$p(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})})),NS=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _S(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function jS(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function IS(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function FS(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&IS(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const zS=h.exports.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=_p(e,NS),p=h.exports.useRef(null),f=h.exports.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wf((()=>{r&&p.current.focus()}),[r]),h.exports.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Ff(yf(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Pf(p,t);let v=-1;h.exports.Children.forEach(i,((e,t)=>{h.exports.isValidElement(e)&&(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===v)&&(v=t))}));const g=h.exports.Children.map(i,((e,t)=>{if(t===v){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),h.exports.cloneElement(e,t)}return e}));return Yf.exports.jsx(AS,jp({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=yf(t).activeElement;if("ArrowDown"===n)e.preventDefault(),FS(t,r,s,l,_S);else if("ArrowUp"===n)e.preventDefault(),FS(t,r,s,l,jS);else if("Home"===n)e.preventDefault(),FS(t,null,s,l,_S);else if("End"===n)e.preventDefault(),FS(t,null,s,l,jS);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&IS(r,o);o.previousKeyMatched&&(s||FS(t,r,!1,l,_S,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))})),DS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function $S(e){return`scale(${e}, ${e**2})`}const BS={entering:{opacity:1,transform:$S(1)},entered:{opacity:1,transform:"none"}},WS="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),US=h.exports.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:v=Tw}=e,g=_p(e,DS),y=h.exports.useRef(),b=h.exports.useRef(),x=Qw(),w=h.exports.useRef(null),k=Pf(o.ref,t),E=Pf(w,k),S=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},C=S(u),O=S(((e,t)=>{Gw(e);const{duration:n,delay:r,easing:o}=Yw({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:WS?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),P=S(s),R=S(p),T=S((e=>{const{duration:t,delay:n,easing:r}=Yw({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:WS?o:.666*o,delay:WS?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=$S(.75),c&&c(e)})),L=S(d);return h.exports.useEffect((()=>()=>{clearTimeout(y.current)}),[]),Yf.exports.jsx(v,jp({appear:r,in:a,nodeRef:w,onEnter:O,onEntered:P,onEntering:C,onExit:T,onExited:L,onExiting:R,addEndListener:e=>{"auto"===m&&(y.current=setTimeout(e,b.current||0)),n&&n(w.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>h.exports.cloneElement(o,jp({style:jp({opacity:0,transform:$S(.75),visibility:"exited"!==e||a?void 0:"hidden"},BS[e],f,o.props.style),ref:E},t))}))}));function VS(e){return Vf("MuiPopover",e)}US.muiSupportAuto=!0,qf("MuiPopover",["root","paper"]);const qS=["onEntering"],HS=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function KS(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function QS(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function GS(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function YS(e){return"function"==typeof e?e():e}const XS=hw(lk,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ZS=hw(pk,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),JS=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:s,className:u,container:c,elevation:d=8,marginThreshold:p=16,open:f,PaperProps:m={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:g=US,transitionDuration:y="auto",TransitionProps:{onEntering:b}={}}=n,x=_p(n.TransitionProps,qS),w=_p(n,HS),k=h.exports.useRef(),E=Pf(k,m.ref),S=jp({},n,{anchorOrigin:i,anchorReference:l,elevation:d,marginThreshold:p,PaperProps:m,transformOrigin:v,TransitionComponent:g,transitionDuration:y,TransitionProps:x}),C=(e=>{const{classes:t}=e;return $f({root:["root"],paper:["paper"]},VS,t)})(S),O=h.exports.useCallback((()=>{if("anchorPosition"===l)return a;const e=YS(o),t=(e&&1===e.nodeType?e:yf(k.current).body).getBoundingClientRect();return{top:t.top+KS(t,i.vertical),left:t.left+QS(t,i.horizontal)}}),[o,i.horizontal,i.vertical,a,l]),P=h.exports.useCallback((e=>({vertical:KS(e,v.vertical),horizontal:QS(e,v.horizontal)})),[v.horizontal,v.vertical]),R=h.exports.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===l)return{top:null,left:null,transformOrigin:GS(n)};const r=O();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,u=a+t.width,c=bf(YS(o)),d=c.innerHeight-p,f=c.innerWidth-p;if(i<p){const e=i-p;i-=e,n.vertical+=e}else if(s>d){const e=s-d;i-=e,n.vertical+=e}if(a<p){const e=a-p;a-=e,n.horizontal+=e}else if(u>f){const e=u-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:GS(n)}}),[o,l,O,P,p]),T=h.exports.useCallback((()=>{const e=k.current;if(!e)return;const t=R(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[R]);h.exports.useEffect((()=>{f&&T()})),h.exports.useImperativeHandle(r,(()=>f?{updatePosition:()=>{T()}}:null),[f,T]),h.exports.useEffect((()=>{if(!f)return;const e=vf((()=>{T()})),t=bf(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,f,T]);let L=y;"auto"!==y||g.muiSupportAuto||(L=void 0);const M=c||(o?yf(YS(o)).body:void 0);return Yf.exports.jsx(XS,jp({BackdropProps:{invisible:!0},className:$p(C.root,u),container:M,open:f,ref:t,ownerState:S},w,{children:Yf.exports.jsx(g,jp({appear:!0,in:f,onEntering:(e,t)=>{b&&b(e,t),T()},timeout:L},x,{children:Yf.exports.jsx(ZS,jp({elevation:d},m,{ref:E,className:$p(C.paper,m.className),ownerState:S,children:s}))}))}))}));function eC(e){return Vf("MuiMenu",e)}qf("MuiMenu",["root","paper","list"]);const tC=["onEntering"],nC=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],rC={vertical:"top",horizontal:"right"},oC={vertical:"top",horizontal:"left"},iC=hw(JS,{shouldForwardProp:e=>pw(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aC=hw(pk,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),lC=hw(zS,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),sC=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,disableAutoFocusItem:i=!1,MenuListProps:a={},onClose:l,open:s,PaperProps:u={},PopoverClasses:c,transitionDuration:d="auto",TransitionProps:{onEntering:p}={},variant:f="selectedMenu"}=n,m=_p(n.TransitionProps,tC),v=_p(n,nC),g=Qw(),y="rtl"===g.direction,b=jp({},n,{autoFocus:r,disableAutoFocusItem:i,MenuListProps:a,onEntering:p,PaperProps:u,transitionDuration:d,TransitionProps:m,variant:f}),x=(e=>{const{classes:t}=e;return $f({root:["root"],paper:["paper"],list:["list"]},eC,t)})(b),w=r&&!i&&s,k=h.exports.useRef(null);let E=-1;return h.exports.Children.map(o,((e,t)=>{h.exports.isValidElement(e)&&(e.props.disabled||("selectedMenu"===f&&e.props.selected||-1===E)&&(E=t))})),Yf.exports.jsx(iC,jp({classes:c,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:y?"right":"left"},transformOrigin:y?rC:oC,PaperProps:jp({component:aC},u,{classes:jp({},u.classes,{root:x.paper})}),className:x.root,open:s,ref:t,transitionDuration:d,TransitionProps:jp({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,g),p&&p(e,t)}},m),ownerState:b},v,{children:Yf.exports.jsx(lC,jp({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:k,autoFocus:r&&(-1===E||i),autoFocusItem:w,variant:f},a,{className:$p(x.list,a.className),children:o}))}))}));function uC(e){return Vf("MuiNativeSelect",e)}const cC=qf("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),dC=["className","disabled","IconComponent","inputRef","variant"],pC=({ownerState:e,theme:t})=>jp({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${cC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),fC=hw("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pw,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${cC.multiple}`]:t.multiple}]}})(pC),hC=({ownerState:e,theme:t})=>jp({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${cC.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),mC=hw("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${hf(n.variant)}`],n.open&&t.iconOpen]}})(hC),vC=h.exports.forwardRef((function(e,t){const{className:n,disabled:r,IconComponent:o,inputRef:i,variant:a="standard"}=e,l=_p(e,dC),s=jp({},e,{disabled:r,variant:a}),u=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e;return $f({select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${hf(n)}`,i&&"iconOpen",r&&"disabled"]},uC,t)})(s);return Yf.exports.jsxs(h.exports.Fragment,{children:[Yf.exports.jsx(fC,jp({ownerState:s,className:$p(u.select,n),disabled:r,ref:i||t},l)),e.multiple?null:Yf.exports.jsx(mC,{as:o,ownerState:s,className:u.icon})]})}));function gC(e){return Vf("MuiSelect",e)}const yC=qf("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var bC;const xC=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],wC=hw("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${yC.select}`]:t.select},{[`&.${yC.select}`]:t[n.variant]},{[`&.${yC.multiple}`]:t.multiple}]}})(pC,{[`&.${yC.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),kC=hw("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${hf(n.variant)}`],n.open&&t.iconOpen]}})(hC),EC=hw("input",{shouldForwardProp:e=>fw(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function SC(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function CC(e){return null==e||"string"==typeof e&&!e.trim()}const OC=h.exports.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:i,children:a,className:l,defaultOpen:s,defaultValue:u,disabled:c,displayEmpty:d,IconComponent:p,inputRef:f,labelId:m,MenuProps:v={},multiple:g,name:y,onBlur:b,onChange:x,onClose:w,onFocus:k,onOpen:E,open:S,readOnly:C,renderValue:O,SelectDisplayProps:P={},tabIndex:R,value:T,variant:L="standard"}=e,M=_p(e,xC),[A,N]=Cf({controlled:T,default:u,name:"Select"}),[_,j]=Cf({controlled:S,default:s,name:"Select"}),I=h.exports.useRef(null),F=h.exports.useRef(null),[z,D]=h.exports.useState(null),{current:$}=h.exports.useRef(null!=S),[B,W]=h.exports.useState(),U=Pf(t,f),V=h.exports.useCallback((e=>{F.current=e,e&&D(e)}),[]);h.exports.useImperativeHandle(U,(()=>({focus:()=>{F.current.focus()},node:I.current,value:A})),[A]),h.exports.useEffect((()=>{s&&_&&z&&!$&&(W(i?null:z.clientWidth),F.current.focus())}),[z,i]),h.exports.useEffect((()=>{o&&F.current.focus()}),[o]),h.exports.useEffect((()=>{if(!m)return;const e=yf(F.current).getElementById(m);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[m]);const q=(e,t)=>{e?E&&E(t):w&&w(t),$||(W(i?null:z.clientWidth),j(e))},H=h.exports.Children.toArray(a),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(g){n=Array.isArray(A)?A.slice():[];const t=A.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),A!==n&&(N(n),x)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),x(o,e)}g||q(!1,t)}},Q=null!==z&&_;let G,Y;delete M["aria-invalid"];const X=[];let Z=!1;(TE({value:A})||d)&&(O?G=O(A):Z=!0);const J=H.map(((e,t,n)=>{if(!h.exports.isValidElement(e))return null;let r;if(g){if(!Array.isArray(A))throw new Error(Gp(2));r=A.some((t=>SC(t,e.props.value))),r&&Z&&X.push(e.props.children)}else r=SC(A,e.props.value),r&&Z&&(Y=e.props.children);if(void 0===e.props.value)return h.exports.cloneElement(e,{"aria-readonly":!0,role:"option"});return h.exports.cloneElement(e,{"aria-selected":r?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===n[0].props.value||!0===n[0].props.disabled?(()=>{if(A)return r;const t=n.find((e=>void 0!==e.props.value&&!0!==e.props.disabled));return e===t||r})():r,value:void 0,"data-value":e.props.value})}));Z&&(G=g?0===X.length?null:X.reduce(((e,t,n)=>(e.push(t),n<X.length-1&&e.push(", "),e)),[]):Y);let ee,te=B;!i&&$&&z&&(te=z.clientWidth),ee=void 0!==R?R:c?null:0;const ne=P.id||(y?`mui-component-select-${y}`:void 0),re=jp({},e,{variant:L,value:A,open:Q}),oe=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e;return $f({select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${hf(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},gC,t)})(re);return Yf.exports.jsxs(h.exports.Fragment,{children:[Yf.exports.jsx(wC,jp({ref:V,tabIndex:ee,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":Q?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[m,ne].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!C){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),q(!0,e))}},onMouseDown:c||C?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),q(!0,e))},onBlur:e=>{!Q&&b&&(Object.defineProperty(e,"target",{writable:!0,value:{value:A,name:y}}),b(e))},onFocus:k},P,{ownerState:re,className:$p(P.className,oe.select,l),id:ne,children:CC(G)?bC||(bC=Yf.exports.jsx("span",{className:"notranslate",children:""})):G})),Yf.exports.jsx(EC,jp({value:Array.isArray(A)?A.join(","):A,name:y,ref:I,"aria-hidden":!0,onChange:e=>{const t=H.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=H[t];N(n.props.value),x&&x(e,n)},tabIndex:-1,disabled:c,className:oe.nativeInput,autoFocus:o,ownerState:re},M)),Yf.exports.jsx(kC,{as:p,className:oe.icon,ownerState:re}),Yf.exports.jsx(sC,jp({id:`menu-${y||""}`,anchorEl:z,open:Q,onClose:e=>{q(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:jp({"aria-labelledby":m,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:jp({},v.PaperProps,{style:jp({minWidth:te},null!=v.PaperProps?v.PaperProps.style:null)}),children:J}))]})}));var PC,RC,TC=hE(Yf.exports.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const LC=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],MC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>pw(e)&&"variant"!==e,slot:"Root"},AC=hw(VE,MC)(""),NC=hw(lS,MC)(""),_C=hw(YE,MC)(""),jC=h.exports.forwardRef((function(e,t){const n=mw({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=TC,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:v,multiple:g=!1,native:y=!1,onClose:b,onOpen:x,open:w,renderValue:k,SelectDisplayProps:E,variant:S="outlined"}=n,C=_p(n,LC),O=y?vC:OC,P=SE({props:n,muiFormControl:OE(),states:["variant"]}).variant||S,R=d||{standard:PC||(PC=Yf.exports.jsx(AC,{})),outlined:Yf.exports.jsx(NC,{label:f}),filled:RC||(RC=Yf.exports.jsx(_C,{}))}[P],T=(e=>{const{classes:t}=e;return t})(jp({},n,{variant:P,classes:i})),L=Pf(t,R.ref);return Yf.exports.jsx(h.exports.Fragment,{children:h.exports.cloneElement(R,jp({inputComponent:O,inputProps:jp({children:o,IconComponent:u,variant:P,type:void 0,multiple:g},y?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:v,onClose:b,onOpen:x,open:w,renderValue:k,SelectDisplayProps:jp({id:c},E)},p,{classes:p?Qp(T,p.classes):T},d?d.props.inputProps:{})},g&&y&&"outlined"===P?{notched:!0}:{},{ref:L,className:$p(R.props.className,a)},!d&&{variant:P},C))})}));function IC(e){return Vf("MuiTextField",e)}jC.muiName="Select",qf("MuiTextField",["root"]);const FC=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],zC={standard:VE,filled:YE,outlined:lS},DC=hw(wS,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$C=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:l="primary",defaultValue:s,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:h,InputLabelProps:m,inputProps:v,InputProps:g,inputRef:y,label:b,maxRows:x,minRows:w,multiline:k=!1,name:E,onBlur:S,onChange:C,onFocus:O,placeholder:P,required:R=!1,rows:T,select:L=!1,SelectProps:M,type:A,value:N,variant:_="outlined"}=n,j=_p(n,FC),I=jp({},n,{autoFocus:o,color:l,disabled:u,error:c,fullWidth:p,multiline:k,required:R,select:L,variant:_}),F=(e=>{const{classes:t}=e;return $f({root:["root"]},IC,t)})(I),z={};"outlined"===_&&(m&&void 0!==m.shrink&&(z.notched=m.shrink),z.label=b),L&&(M&&M.native||(z.id=void 0),z["aria-describedby"]=void 0);const D=Sf(h),$=f&&D?`${D}-helper-text`:void 0,B=b&&D?`${D}-label`:void 0,W=zC[_],U=Yf.exports.jsx(W,jp({"aria-describedby":$,autoComplete:r,autoFocus:o,defaultValue:s,fullWidth:p,multiline:k,name:E,rows:T,maxRows:x,minRows:w,type:A,value:N,id:D,inputRef:y,onBlur:S,onChange:C,onFocus:O,placeholder:P,inputProps:v},z,g));return Yf.exports.jsxs(DC,jp({className:$p(F.root,a),disabled:u,error:c,fullWidth:p,ref:t,required:R,color:l,variant:_,ownerState:I},j,{children:[null!=b&&""!==b&&Yf.exports.jsx(gS,jp({htmlFor:D,id:B},m,{children:b})),L?Yf.exports.jsx(jC,jp({"aria-describedby":$,id:D,labelId:B,value:N,input:U},M,{children:i})):U,f&&Yf.exports.jsx(PS,jp({id:$},d,{children:f}))]}))}));var BC,WC,UC,VC,qC=hw("div")(BC||(BC=d(["\n display: flex;\n margin-top: 16px;\n margin-bottom: 4px;\n font-size: 14px;\n color: ",";\n"],["\n display: flex;\n margin-top: 16px;\n margin-bottom: 4px;\n font-size: 14px;\n color: ",";\n"])),(function(e){return e.theme.palette.text.secondary})),HC=hg(WC||(WC=d(["\n 0% { background-position: 0%; }\n 100% { background-position: 100%; }\n"],["\n 0% { background-position: 0%; }\n 100% { background-position: 100%; }\n"]))),KC=hw($C)(UC||(UC=d(["\n margin: 0px;\n & .Mui-disabled {\n background: ",";\n }\n"],["\n margin: 0px;\n & .Mui-disabled {\n background: ",";\n }\n"])),(function(e){return e.theme.palette.grey[200]})),QC=hw("div")(VC||(VC=d(["\n margin-top: 10px;\n padding: 5px;\n border: 1px solid #ccc;\n width: 100%;\n border-radius: 5px;\n font-style: inherit;\n font-family: inherit;\n box-sizing: border-box;\n display: block;\n height: 42px;\n background: linear-gradient(\n 90deg,\n rgba(0, 0, 0, 0),\n rgba(0, 0, 0, 0),\n rgba(0, 0, 0, 0.1),\n rgba(0, 0, 0, 0),\n rgba(0, 0, 0, 0)\n );\n background-size: 500% 500%;\n animation: "," 1.5s linear infinite alternate;\n"],["\n margin-top: 10px;\n padding: 5px;\n border: 1px solid #ccc;\n width: 100%;\n border-radius: 5px;\n font-style: inherit;\n font-family: inherit;\n box-sizing: border-box;\n display: block;\n height: 42px;\n background: linear-gradient(\n 90deg,\n rgba(0, 0, 0, 0),\n rgba(0, 0, 0, 0),\n rgba(0, 0, 0, 0.1),\n rgba(0, 0, 0, 0),\n rgba(0, 0, 0, 0)\n );\n background-size: 500% 500%;\n animation: "," 1.5s linear infinite alternate;\n"])),HC),GC=function(){var e=Ap(),t=Np((function(e){return e.selectedLanguages})),n=t.length?t:Op(),r=Np((function(e){return e.availableLanguages})),o=Np((function(e){return e.translationsForm})),i=Np((function(e){return e.formDisabled})),a=Np((function(e){return e.loading})),l=Np((function(e){return e.permittedLanguageIds})),s=function(t){return function(n){e({type:"ON_INPUT_CHANGE",payload:{key:t,value:n.target.value}})}};return X.createElement(X.Fragment,null,a?X.createElement((function(){return X.createElement(X.Fragment,null,n.map((function(e){return X.createElement(QC,{key:e})})))}),null):c([],u(t),!1).map((function(e){var t=null==r?void 0:r.find((function(t){return t.tag===e})),n=Rc(e,l,r);return X.createElement(X.Fragment,{key:e},X.createElement(qC,null,(null==t?void 0:t.name)||e),X.createElement(KC,{size:"small",disabled:i||!n,key:e,inputProps:{lang:e},minRows:2,maxRows:1/0,multiline:!0,fullWidth:!0,value:o[e]||"",onChange:s(e)}))})))};const YC=qf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);hw("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>jp({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ob(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>jp({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>jp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>jp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),hw("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>jp({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})));const XC=qf("MuiListItemIcon",["root","alignItemsFlexStart"]);function ZC(e){return Vf("MuiTypography",e)}hw("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>jp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),qf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const JC=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],eO=hw("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${hf(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>jp({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),tO={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},nO={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},rO=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiTypography"}),r=(e=>nO[e]||e)(n.color),o=Qy(jp({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=tO}=o,f=_p(o,JC),h=jp({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||tO[d])||"span",v=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return $f({root:["root",i,"inherit"!==e.align&&`align${hf(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},ZC,a)})(h);return Yf.exports.jsx(eO,jp({as:m,ref:t,ownerState:h,className:$p(v.root,a)},f))}));function oO(e){return Vf("MuiListItemText",e)}const iO=qf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),aO=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],lO=hw("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${iO.primary}`]:t.primary},{[`& .${iO.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>jp({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),sO=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:i=!1,inset:a=!1,primary:l,primaryTypographyProps:s,secondary:u,secondaryTypographyProps:c}=n,d=_p(n,aO),{dense:p}=h.exports.useContext(RS);let f=null!=l?l:r,m=u;const v=jp({},n,{disableTypography:i,inset:a,primary:!!f,secondary:!!m,dense:p}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return $f({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},oO,t)})(v);return null==f||f.type===rO||i||(f=Yf.exports.jsx(rO,jp({variant:p?"body2":"body1",className:g.primary,component:null!=s&&s.variant?void 0:"span",display:"block"},s,{children:f}))),null==m||m.type===rO||i||(m=Yf.exports.jsx(rO,jp({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},c,{children:m}))),Yf.exports.jsxs(lO,jp({className:$p(g.root,o),ownerState:v,ref:t},d,{children:[f,m]}))}));function uO(e){return Vf("MuiMenuItem",e)}const cO=qf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),dO=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],pO=hw(Bk,{shouldForwardProp:e=>pw(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>jp({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${cO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ob(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cO.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ob(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${cO.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ob(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ob(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${cO.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cO.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${YC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${YC.inset}`]:{marginLeft:52},[`& .${iO.root}`]:{marginTop:0,marginBottom:0},[`& .${iO.inset}`]:{paddingLeft:36},[`& .${XC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&jp({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${XC.root} svg`]:{fontSize:"1.25rem"}})))),fO=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=_p(n,dO),f=h.exports.useContext(RS),m={dense:i||f.dense||!1,disableGutters:l},v=h.exports.useRef(null);wf((()=>{r&&v.current&&v.current.focus()}),[r]);const g=jp({},n,{dense:m.dense,divider:a,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return jp({},a,$f({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},uO,a))})(n),b=Pf(v,t);let x;return n.disabled||(x=void 0!==c?c:-1),Yf.exports.jsx(RS.Provider,{value:m,children:Yf.exports.jsx(pO,jp({ref:b,role:u,tabIndex:x,component:o,focusVisibleClassName:$p(y.focusVisible,s),className:$p(y.root,d)},p,{ownerState:g,classes:y}))})}));function hO(e){return Vf("PrivateSwitchBase",e)}qf("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const mO=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],vO=hw(Bk)((({ownerState:e})=>jp({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),gO=hw("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),yO=h.exports.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:l,disableFocusRipple:s=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:v,onFocus:g,readOnly:y,required:b,tabIndex:x,type:w,value:k}=e,E=_p(e,mO),[S,C]=Cf({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),O=OE();let P=l;O&&void 0===P&&(P=O.disabled);const R="checkbox"===w||"radio"===w,T=jp({},e,{checked:S,disabled:P,disableFocusRipple:s,edge:u}),L=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return $f({root:["root",n&&"checked",r&&"disabled",o&&`edge${hf(o)}`],input:["input"]},hO,t)})(T);return Yf.exports.jsxs(vO,jp({component:"span",className:$p(L.root,i),centerRipple:!0,focusRipple:!s,disabled:P,tabIndex:null,role:void 0,onFocus:e=>{g&&g(e),O&&O.onFocus&&O.onFocus(e)},onBlur:e=>{m&&m(e),O&&O.onBlur&&O.onBlur(e)},ownerState:T,ref:t},E,{children:[Yf.exports.jsx(gO,jp({autoFocus:n,checked:r,defaultChecked:a,className:L.input,disabled:P,id:R&&d,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;C(t),v&&v(e,t)},readOnly:y,ref:f,required:b,ownerState:T,tabIndex:x,type:w},"checkbox"===w&&void 0===k?{}:{value:k},p)),S?o:c]}))}));var bO=hE(Yf.exports.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),xO=hE(Yf.exports.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),wO=hE(Yf.exports.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function kO(e){return Vf("MuiCheckbox",e)}const EO=qf("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),SO=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],CO=hw(yO,{shouldForwardProp:e=>pw(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${hf(n.color)}`]]}})((({theme:e,ownerState:t})=>jp({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ob("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${EO.checked}, &.${EO.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${EO.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),OO=Yf.exports.jsx(xO,{}),PO=Yf.exports.jsx(bO,{}),RO=Yf.exports.jsx(wO,{}),TO=h.exports.forwardRef((function(e,t){var n,r;const o=mw({props:e,name:"MuiCheckbox"}),{checkedIcon:i=OO,color:a="primary",icon:l=PO,indeterminate:s=!1,indeterminateIcon:u=RO,inputProps:c,size:d="medium",className:p}=o,f=_p(o,SO),m=s?u:l,v=s?u:i,g=jp({},o,{color:a,indeterminate:s,size:d}),y=(e=>{const{classes:t,indeterminate:n,color:r}=e;return jp({},t,$f({root:["root",n&&"indeterminate",`color${hf(r)}`]},kO,t))})(g);return Yf.exports.jsx(CO,jp({type:"checkbox",inputProps:jp({"data-indeterminate":s},c),icon:h.exports.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:d}),checkedIcon:h.exports.cloneElement(v,{fontSize:null!=(r=v.props.fontSize)?r:d}),ownerState:g,ref:t,className:$p(y.root,p)},f,{classes:y}))}));var LO,MO=hw(wS)(LO||(LO=d(["\n min-width: 200px;\n"],["\n min-width: 200px;\n"]))),AO=function(){var e=Ap(),t=Np((function(e){return e.availableLanguages})),n=Np((function(e){return e.selectedLanguages})),r=t?c([],u(t),!1).map((function(e){return{label:e.name,value:e.tag}})):[],o=r.filter((function(e){return n.includes(e.value)}));return X.createElement(X.Fragment,null,t&&X.createElement(MO,{variant:"outlined",size:"small",style:{maxWidth:250}},X.createElement(jC,{multiple:!0,value:o.map((function(e){return e.value})),onChange:function(t){return function(t){var n=t.target.value,r="string"==typeof n?n.split(","):n;e({type:"ON_SELECTED_LANGUAGES_CHANGE",payload:{languages:r}})}(t)},input:X.createElement(lS,null),renderValue:function(e){return e.join(", ")},MenuProps:{style:{zIndex:yc},disablePortal:!0}},r.map((function(e){return X.createElement(fO,{key:e.value,value:e.value,dense:!0},X.createElement(TO,{size:"small",checked:Boolean(o.find((function(t){return t.value===e.value})))}),X.createElement(sO,null,e.label))})))))};function NO(e){return Vf("MuiCircularProgress",e)}qf("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _O=["className","color","disableShrink","size","style","thickness","value","variant"];let jO,IO,FO,zO,DO=e=>e;const $O=44,BO=hg(jO||(jO=DO`
|
|
116
|
+
0% {
|
|
117
|
+
transform: rotate(0deg);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
100% {
|
|
121
|
+
transform: rotate(360deg);
|
|
122
|
+
}
|
|
123
|
+
`)),WO=hg(IO||(IO=DO`
|
|
124
|
+
0% {
|
|
125
|
+
stroke-dasharray: 1px, 200px;
|
|
126
|
+
stroke-dashoffset: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
50% {
|
|
130
|
+
stroke-dasharray: 100px, 200px;
|
|
131
|
+
stroke-dashoffset: -15px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
100% {
|
|
135
|
+
stroke-dasharray: 100px, 200px;
|
|
136
|
+
stroke-dashoffset: -125px;
|
|
137
|
+
}
|
|
138
|
+
`)),UO=hw("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${hf(n.color)}`]]}})((({ownerState:e,theme:t})=>jp({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&fg(FO||(FO=DO`
|
|
139
|
+
animation: ${0} 1.4s linear infinite;
|
|
140
|
+
`),BO))),VO=hw("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),qO=hw("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${hf(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>jp({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&fg(zO||(zO=DO`
|
|
141
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
142
|
+
`),WO))),HO=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,size:a=40,style:l,thickness:s=3.6,value:u=0,variant:c="indeterminate"}=n,d=_p(n,_O),p=jp({},n,{color:o,disableShrink:i,size:a,thickness:s,value:u,variant:c}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return $f({root:["root",n,`color${hf(r)}`],svg:["svg"],circle:["circle",`circle${hf(n)}`,o&&"circleDisableShrink"]},NO,t)})(p),h={},m={},v={};if("determinate"===c){const e=2*Math.PI*(($O-s)/2);h.strokeDasharray=e.toFixed(3),v["aria-valuenow"]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return Yf.exports.jsx(UO,jp({className:$p(f.root,r),style:jp({width:a,height:a},m,l),ownerState:p,ref:t,role:"progressbar"},v,d,{children:Yf.exports.jsx(VO,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Yf.exports.jsx(qO,{className:f.circle,style:h,ownerState:p,cx:$O,cy:$O,r:($O-s)/2,fill:"none",strokeWidth:s})})}))}));var KO,QO,GO=hw(tE)(KO||(KO=d(["\n position: 'relative';\n"],["\n position: 'relative';\n"]))),YO=hw("div")(QO||(QO=d(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),XO=function(e){var t=e.children,n=e.loading,r=e.disabled,a=i(e,["children","loading","disabled"]),l=n||r;return X.createElement(GO,o({},a,{disabled:l}),n&&X.createElement(YO,null,X.createElement(HO,{size:25})),t)};const ZO=hw(Am,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JO=h.exports.forwardRef((function(e,t){const n=ib(),r=mw({props:e,name:"MuiPopper"});return Yf.exports.jsx(ZO,jp({direction:null==n?void 0:n.direction},r,{ref:t}))}));function eP(e){return Vf("MuiTooltip",e)}const tP=qf("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),nP=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];const rP=hw(JO,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>jp({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${tP.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${tP.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${tP.arrow}`]:jp({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${tP.arrow}`]:jp({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),oP=hw("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${hf(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return jp({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ob(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${tP.popper}[data-popper-placement*="left"] &`]:jp({transformOrigin:"right center"},t.isRtl?jp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):jp({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${tP.popper}[data-popper-placement*="right"] &`]:jp({transformOrigin:"left center"},t.isRtl?jp({marginRight:"14px"},t.touch&&{marginRight:"24px"}):jp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${tP.popper}[data-popper-placement*="top"] &`]:jp({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${tP.popper}[data-popper-placement*="bottom"] &`]:jp({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),iP=hw("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ob(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let aP=!1,lP=null;function sP(e,t){return n=>{t&&t(n),e(n)}}const uP=h.exports.forwardRef((function(e,t){var n,r,o,i,a,l;const s=mw({props:e,name:"MuiTooltip"}),{arrow:u=!1,children:c,components:d={},componentsProps:p={},describeChild:f=!1,disableFocusListener:m=!1,disableHoverListener:v=!1,disableInteractive:g=!1,disableTouchListener:y=!1,enterDelay:b=100,enterNextDelay:x=0,enterTouchDelay:w=700,followCursor:k=!1,id:E,leaveDelay:S=0,leaveTouchDelay:C=1500,onClose:O,onOpen:P,open:R,placement:T="bottom",PopperComponent:L,PopperProps:M={},title:A,TransitionComponent:N=US,TransitionProps:_}=s,j=_p(s,nP),I=Qw(),F="rtl"===I.direction,[z,D]=h.exports.useState(),[$,B]=h.exports.useState(null),W=h.exports.useRef(!1),U=g||k,V=h.exports.useRef(),q=h.exports.useRef(),H=h.exports.useRef(),K=h.exports.useRef(),[Q,G]=Cf({controlled:R,default:!1,name:"Tooltip",state:"open"});let Y=Q;const X=Sf(E),Z=h.exports.useRef(),J=h.exports.useCallback((()=>{void 0!==Z.current&&(document.body.style.WebkitUserSelect=Z.current,Z.current=void 0),clearTimeout(K.current)}),[]);h.exports.useEffect((()=>()=>{clearTimeout(V.current),clearTimeout(q.current),clearTimeout(H.current),J()}),[J]);const ee=e=>{clearTimeout(lP),aP=!0,G(!0),P&&!Y&&P(e)},te=Of((e=>{clearTimeout(lP),lP=setTimeout((()=>{aP=!1}),800+S),G(!1),O&&Y&&O(e),clearTimeout(V.current),V.current=setTimeout((()=>{W.current=!1}),I.transitions.duration.shortest)})),ne=e=>{W.current&&"touchstart"!==e.type||(z&&z.removeAttribute("title"),clearTimeout(q.current),clearTimeout(H.current),b||aP&&x?q.current=setTimeout((()=>{ee(e)}),aP?x:b):ee(e))},re=e=>{clearTimeout(q.current),clearTimeout(H.current),H.current=setTimeout((()=>{te(e)}),S)},{isFocusVisibleRef:oe,onBlur:ie,onFocus:ae,ref:le}=If(),[,se]=h.exports.useState(!1),ue=e=>{ie(e),!1===oe.current&&(se(!1),re(e))},ce=e=>{z||D(e.currentTarget),ae(e),!0===oe.current&&(se(!0),ne(e))},de=e=>{W.current=!0;const t=c.props;t.onTouchStart&&t.onTouchStart(e)},pe=ne,fe=re,he=e=>{de(e),clearTimeout(H.current),clearTimeout(V.current),J(),Z.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",K.current=setTimeout((()=>{document.body.style.WebkitUserSelect=Z.current,ne(e)}),w)},me=e=>{c.props.onTouchEnd&&c.props.onTouchEnd(e),J(),clearTimeout(H.current),H.current=setTimeout((()=>{te(e)}),C)};h.exports.useEffect((()=>{if(Y)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||te(e)}}),[te,Y]);const ve=Pf(D,t),ge=Pf(le,ve),ye=Pf(c.ref,ge);"number"==typeof A||A||(Y=!1);const be=h.exports.useRef({x:0,y:0}),xe=h.exports.useRef(),we={},ke="string"==typeof A;f?(we.title=Y||!ke||v?null:A,we["aria-describedby"]=Y?X:null):(we["aria-label"]=ke?A:null,we["aria-labelledby"]=Y&&!ke?X:null);const Ee=jp({},we,j,c.props,{className:$p(j.className,c.props.className),onTouchStart:de,ref:ye},k?{onMouseMove:e=>{const t=c.props;t.onMouseMove&&t.onMouseMove(e),be.current={x:e.clientX,y:e.clientY},xe.current&&xe.current.update()}}:{}),Se={};y||(Ee.onTouchStart=he,Ee.onTouchEnd=me),v||(Ee.onMouseOver=sP(pe,Ee.onMouseOver),Ee.onMouseLeave=sP(fe,Ee.onMouseLeave),U||(Se.onMouseOver=pe,Se.onMouseLeave=fe)),m||(Ee.onFocus=sP(ce,Ee.onFocus),Ee.onBlur=sP(ue,Ee.onBlur),U||(Se.onFocus=ce,Se.onBlur=ue));const Ce=h.exports.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean($),options:{element:$,padding:4}}];return null!=(e=M.popperOptions)&&e.modifiers&&(t=t.concat(M.popperOptions.modifiers)),jp({},M.popperOptions,{modifiers:t})}),[$,M]),Oe=jp({},s,{isRtl:F,arrow:u,disableInteractive:U,placement:T,PopperComponentProp:L,touch:W.current}),Pe=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return $f({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${hf(i.split("-")[0])}`],arrow:["arrow"]},eP,t)})(Oe),Re=null!=(n=d.Popper)?n:rP,Te=null!=(r=null!=(o=d.Transition)?o:N)?r:US,Le=null!=(i=d.Tooltip)?i:oP,Me=null!=(a=d.Arrow)?a:iP,Ae=Up(Re,jp({},M,p.popper),Oe),Ne=Up(Te,jp({},_,p.transition),Oe),_e=Up(Le,jp({},p.tooltip),Oe),je=Up(Me,jp({},p.arrow),Oe);return Yf.exports.jsxs(h.exports.Fragment,{children:[h.exports.cloneElement(c,Ee),Yf.exports.jsx(Re,jp({as:null!=L?L:JO,placement:T,anchorEl:k?{getBoundingClientRect:()=>({top:be.current.y,left:be.current.x,right:be.current.x,bottom:be.current.y,width:0,height:0})}:z,popperRef:xe,open:!!z&&Y,id:X,transition:!0},Se,Ae,{className:$p(Pe.popper,null==M?void 0:M.className,null==(l=p.popper)?void 0:l.className),popperOptions:Ce,children:({TransitionProps:e})=>{var t,n;return Yf.exports.jsx(Te,jp({timeout:I.transitions.duration.shorter},e,Ne,{children:Yf.exports.jsxs(Le,jp({},_e,{className:$p(Pe.tooltip,null==(t=p.tooltip)?void 0:t.className),children:[A,u?Yf.exports.jsx(Me,jp({},je,{className:$p(Pe.arrow,null==(n=p.arrow)?void 0:n.className),ref:B})):null]}))}))}}))]})}));var cP={},dP=sE.exports;Object.defineProperty(cP,"__esModule",{value:!0});var pP=cP.default=void 0,fP=dP(yE()),hP=Yf.exports,mP=(0,fP.default)([(0,hP.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,hP.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"},"1")],"CameraAlt");pP=cP.default=mP;var vP={},gP=sE.exports;Object.defineProperty(vP,"__esModule",{value:!0});var yP=vP.default=void 0,bP=gP(yE()),xP=Yf.exports,wP=(0,bP.default)((0,xP.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline");yP=vP.default=wP;var kP={},EP=sE.exports;Object.defineProperty(kP,"__esModule",{value:!0});var SP=kP.default=void 0,CP=EP(yE()),OP=Yf.exports,PP=(0,CP.default)((0,OP.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"}),"Backup");SP=kP.default=PP;var RP={},TP=sE.exports;Object.defineProperty(RP,"__esModule",{value:!0});var LP=RP.default=void 0,MP=TP(yE()),AP=Yf.exports,NP=(0,MP.default)((0,AP.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"HighlightOff");LP=RP.default=NP;var _P,jP,IP,FP,zP=hw("div")(_P||(_P=d(["\n position: relative;\n display: flex;\n overflow: visible;\n flex-wrap: wrap;\n"],["\n position: relative;\n display: flex;\n overflow: visible;\n flex-wrap: wrap;\n"]))),DP=hw("div")(jP||(jP=d(["\n border: 1px dashed lightgrey;\n z-index: 2;\n position: absolute;\n width: 100%;\n height: 100%;\n pointer-events: none;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s;\n &.valid {\n backdrop-filter: blur(5px);\n border: 1px solid ",";\n background-color: ",";\n opacity: 0.9;\n }\n &.invalid {\n border: 1px solid ",";\n opacity: 0.9;\n background-color: ",";\n backdrop-filter: blur(5px);\n }\n"],["\n border: 1px dashed lightgrey;\n z-index: 2;\n position: absolute;\n width: 100%;\n height: 100%;\n pointer-events: none;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s;\n &.valid {\n backdrop-filter: blur(5px);\n border: 1px solid ",";\n background-color: ",";\n opacity: 0.9;\n }\n &.invalid {\n border: 1px solid ",";\n opacity: 0.9;\n background-color: ",";\n backdrop-filter: blur(5px);\n }\n"])),zx,Fx,vx,mx),$P=hw(SP)(IP||(IP=d(["\n filter: drop-shadow(1px 1px 0px ",")\n drop-shadow(-1px 1px 0px ",")\n drop-shadow(1px -1px 0px ",")\n drop-shadow(-1px -1px 0px ",");\n font-size: 100;\n color: ",";\n"],["\n filter: drop-shadow(1px 1px 0px ",")\n drop-shadow(-1px 1px 0px ",")\n drop-shadow(1px -1px 0px ",")\n drop-shadow(-1px -1px 0px ",");\n font-size: 100;\n color: ",";\n"])),zx,zx,zx,zx,(function(e){return e.theme.palette.common.white})),BP=hw(LP)(FP||(FP=d(["\n filter: drop-shadow(1px 1px 0px ",")\n drop-shadow(-1px 1px 0px ",") drop-shadow(1px -1px 0px ",")\n drop-shadow(-1px -1px 0px ",");\n font-size: 100;\n color: ",";\n"],["\n filter: drop-shadow(1px 1px 0px ",")\n drop-shadow(-1px 1px 0px ",") drop-shadow(1px -1px 0px ",")\n drop-shadow(-1px -1px 0px ",");\n font-size: 100;\n color: ",";\n"])),vx,vx,vx,vx,(function(e){return e.theme.palette.common.white})),WP=function(e){var t=e.validateAndUpload,n=e.enabled,r=i(e,["validateAndUpload","enabled"]),s=u(h.exports.useState(null),2),c=s[0],d=s[1],p=u(h.exports.useState(null),2),f=p[0],m=p[1],v={};return n&&(v={onDrop:function(e){return a(void 0,void 0,void 0,(function(){var n;return l(this,(function(r){return e.stopPropagation(),e.preventDefault(),e.dataTransfer.items&&(n=Sp(e.dataTransfer.items),t(n)),d(null),[2]}))}))},onDragEnter:function(e){if(e.stopPropagation(),e.preventDefault(),m(e.target),e.dataTransfer.items){if(Sp(e.dataTransfer.items).length>20)return void d("invalid");d("valid")}},onDragLeave:function(e){e.stopPropagation(),e.preventDefault(),e.target===f&&d(null)},onDragOver:function(e){e.stopPropagation(),e.preventDefault()}}),X.createElement(X.Fragment,null,X.createElement(zP,o({},v,{"data-cy":"dropzone"}),X.createElement(DP,{className:$p({valid:"valid"===c,invalid:"invalid"===c})},"valid"===c&&X.createElement($P,null),"invalid"===c&&X.createElement(BP,null)),r.children))},UP={},VP=sE.exports;Object.defineProperty(UP,"__esModule",{value:!0});var qP=UP.default=void 0,HP=VP(yE()),KP=Yf.exports,QP=(0,HP.default)((0,KP.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");qP=UP.default=QP;var GP,YP,XP,ZP,JP,eR,tR=hw("img")(GP||(GP=d(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n z-index: 1;\n transition: transform 0.1s, filter 0.5s;\n &:hover {\n transform: scale(1.1);\n }\n"],["\n width: 100%;\n height: 100%;\n object-fit: cover;\n z-index: 1;\n transition: transform 0.1s, filter 0.5s;\n &:hover {\n transform: scale(1.1);\n }\n"]))),nR=hw("div")(YP||(YP=d(["\n border: 1px solid ",";\n position: relative;\n box-sizing: border-box;\n width: 98px;\n height: 98px;\n align-items: center;\n justify-content: center;\n display: flex;\n margin: 1px;\n cursor: pointer;\n overflow: visible;\n"],["\n border: 1px solid ",";\n position: relative;\n box-sizing: border-box;\n width: 98px;\n height: 98px;\n align-items: center;\n justify-content: center;\n display: flex;\n margin: 1px;\n cursor: pointer;\n overflow: visible;\n"])),(function(e){return e.theme.palette.grey[300]})),rR=hw("div")(XP||(XP=d(["\n overflow: hidden;\n width: 100%;\n height: 100%;\n"],["\n overflow: hidden;\n width: 100%;\n height: 100%;\n"]))),oR=hw(Hk)(ZP||(ZP=d(["\n position: absolute;\n z-index: 2;\n font-size: 20px;\n right: -8px;\n top: -8px;\n padding: 2px;\n background-color: rgba(62, 62, 62, 0.9);\n color: rgba(255, 255, 255, 0.8);\n visibility: hidden;\n opacity: 0;\n transition: visibility 0.1s linear, opacity 0.1s linear;\n &:hover {\n background-color: rgba(62, 62, 62, 1);\n color: rgba(255, 255, 255, 0.9);\n }\n &.hover {\n opacity: 1;\n visibility: visible;\n }\n"],["\n position: absolute;\n z-index: 2;\n font-size: 20px;\n right: -8px;\n top: -8px;\n padding: 2px;\n background-color: rgba(62, 62, 62, 0.9);\n color: rgba(255, 255, 255, 0.8);\n visibility: hidden;\n opacity: 0;\n transition: visibility 0.1s linear, opacity 0.1s linear;\n &:hover {\n background-color: rgba(62, 62, 62, 1);\n color: rgba(255, 255, 255, 0.9);\n }\n &.hover {\n opacity: 1;\n visibility: visible;\n }\n"]))),iR=hw(qP)(JP||(JP=d(["\n font-size: 20px;\n"],["\n font-size: 20px;\n"]))),aR=function(e){var t=u(h.exports.useState(!1),2),n=t[0],r=t[1];return X.createElement(nR,{onMouseOver:function(){r(!0)},onMouseOut:function(){r(!1)}},e.onDelete&&X.createElement(uP,{title:"Delete",PopperProps:{disablePortal:!0,style:{zIndex:yc}}},X.createElement(oR,{onClick:function(){var t;null===(t=e.onDelete)||void 0===t||t.call(e,e.data.id)},className:$p({hover:n})},X.createElement(iR,null))),X.createElement(rR,{key:e.data.id,onClick:e.onClick},X.createElement(tR,{onMouseDown:function(e){return e.preventDefault()},src:e.data.fileUrl,"aria-label":"Screenshot"})))},lR=hw("img")(eR||(eR=d(["\n width: 80vw;\n height: 80vh;\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n"],["\n width: 80vw;\n height: 80vh;\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n"]))),sR=function(e){var t=e.screenshot,n=e.onClose;return X.createElement(wk,{open:!0,disablePortal:!0,disableEnforceFocus:!0,maxWidth:"lg",style:{zIndex:yc},onClose:n},X.createElement(lR,{src:t.fileUrl}))};function uR(e){return Vf("MuiDialogContent",e)}qf("MuiDialogContent",["root","dividers"]);const cR=qf("MuiDialogTitle",["root"]),dR=["className","dividers"],pR=hw("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>jp({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${cR.root} + &`]:{paddingTop:0}}))),fR=h.exports.forwardRef((function(e,t){const n=mw({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1}=n,i=_p(n,dR),a=jp({},n,{dividers:o}),l=(e=>{const{classes:t,dividers:n}=e;return $f({root:["root",n&&"dividers"]},uR,t)})(a);return Yf.exports.jsx(pR,jp({className:$p(l.root,r),ownerState:a,ref:t},i))}));var hR,mR,vR,gR,yR,bR,xR,wR,kR,ER,SR,CR,OR,PR,RR,TR,LR,MR,AR,NR=hw("div")(hR||(hR=d(["\n display: flex;\n margin: 0px 0px 26px 0px;\n font-size: 19px;\n"],["\n display: flex;\n margin: 0px 0px 26px 0px;\n font-size: 19px;\n"]))),_R=hw("div")(mR||(mR=d(["\n margin: 8px 0px;\n"],["\n margin: 8px 0px;\n"]))),jR=hw("div")(vR||(vR=d(["\n display: flex;\n justify-content: flex-end;\n margin: ",";\n min-height: 36px;\n"],["\n display: flex;\n justify-content: flex-end;\n margin: ",";\n min-height: 36px;\n"])),(function(e){return e.theme.spacing(1)})),IR=function(e){var t=e.onClose,n=u(h.exports.useState(!1),2),r=n[0],o=n[1];return h.exports.useEffect((function(){var e=function(){o(!0)};return window.addEventListener("focus",e),function(){return window.removeEventListener("focus",e)}}),[]),X.createElement(wk,{open:!0,disableEnforceFocus:!0,disablePortal:!0,style:{zIndex:yc},onClose:t},r?X.createElement(X.Fragment,null,X.createElement(fR,null,X.createElement(NR,null,"Browser extension required"),X.createElement(_R,null,"After installing the extension, you need to reload this page.")),X.createElement(jR,null,X.createElement(tE,{onClick:function(){window.location.reload()},color:"primary",variant:"contained"},"Reload"))):X.createElement(X.Fragment,null,X.createElement(fR,null,X.createElement(NR,null,"Browser extension required"),X.createElement(_R,null,"To make automatic screenshots please install Tolgee browser extension.")),X.createElement(jR,null,X.createElement(tE,{onClick:t,color:"secondary"},"Cancel"),X.createElement(tE,{component:"a",color:"primary",variant:"contained",style:{marginLeft:10},href:"https://chrome.google.com/webstore/detail/tolgee-tools/hacnbapajkkfohnonhbmegojnddagfnj",rel:"noreferrer noopener",target:"_blank"},"Install"))))},FR=hw("div")(gR||(gR=d(["\n display: flex;\n flex-direction: column;\n height: 100px;\n width: 100%;\n align-items: center;\n justify-content: center;\n text-align: center;\n flex-grow: 1;\n border: 1px dashed lightgrey;\n"],["\n display: flex;\n flex-direction: column;\n height: 100px;\n width: 100%;\n align-items: center;\n justify-content: center;\n text-align: center;\n flex-grow: 1;\n border: 1px dashed lightgrey;\n"]))),zR=hw("div")(yR||(yR=d(["\n display: flex;\n width: 100px;\n height: 100px;\n align-items: center;\n justify-content: center;\n margin: 1px;\n"],["\n display: flex;\n width: 100px;\n height: 100px;\n align-items: center;\n justify-content: center;\n margin: 1px;\n"]))),DR=hw("div")(bR||(bR=d(["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n"]))),$R=hw("div")(xR||(xR=d(["\n display: flex;\n"],["\n display: flex;\n"]))),BR=hw("div")(wR||(wR=d(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.palette.text.secondary})),WR=["image/png","image/jpeg","image/gif"],UR=function(){var e=h.exports.useRef(null),t=Ap(),n=Np((function(e){return e.screenshots})),r=Np((function(e){return e.screenshotDetail})),o=Np((function(e){return e.pluginAvailable})),i=Np((function(e){return e.formDisabled})),a=Np((function(e){return e.screenshotsUploading})),l=Np((function(e){return e.scopes})),s=function(e){t({type:"HANDLE_REMOVE_SCREENSHOT",payload:{id:e}})},c=u(h.exports.useState(!1),2),d=c[0],p=c[1],f=Cp("screenshots.upload",l)&&!i,m=Cp("screenshots.delete",l)&&!i;var v=function(e){var n=function(e){var t=[];e.length>20&&t.push("Too many files"),e.forEach((function(e){WR.indexOf(e.type)<0&&t.push("".concat(e.name,": unsupported format"))}));var n=0===t.length;return{errors:t,valid:n}}(e).valid;n&&function(e){t({type:"HANDLE_UPLOAD_IMAGES",payload:{files:e}})}(e)},g=function(){var t;null===(t=e.current)||void 0===t||t.dispatchEvent(new MouseEvent("click"))},y=o,b=Boolean(window.chrome);return X.createElement(X.Fragment,null,X.createElement("input",{type:"file",style:{display:"none"},ref:e,onChange:function(e){return function(e){var t=e.target.files;if(t){for(var n=[],r=0;r<t.length;r++){var o=t.item(r);o&&n.push(o)}v(n)}}(e)},multiple:!0,accept:WR.join(",")}),X.createElement(DR,null,X.createElement(qC,null,"Screenshots"),X.createElement($R,null,f&&X.createElement(X.Fragment,null,(b||y)&&X.createElement(uP,{title:"Take screenshot",PopperProps:{disablePortal:!0,style:{zIndex:yc}}},X.createElement(Hk,{onClick:y?function(){t({type:"HANDLE_TAKE_SCREENSHOT"})}:function(){return p(!0)}},X.createElement(pP,null))),X.createElement(uP,{title:"Add image",PopperProps:{disablePortal:!0,style:{zIndex:yc}}},X.createElement(Hk,{onClick:g},X.createElement(yP,null)))))),X.createElement(WP,{validateAndUpload:v,enabled:f},n.length?n.map((function(e){return X.createElement(aR,{key:e.id,data:e,onClick:function(){return t({type:"OPEN_SCREENSHOT_DETAIL",payload:e})},onDelete:m||e.justUploaded?s:void 0})})):null,a&&X.createElement(zR,null,X.createElement(HO,null)),!n.length&&!a&&X.createElement(FR,{style:{cursor:f?"pointer":"default"},onClick:f?g:void 0},X.createElement(BR,null,"There are no screenshots.",y&&f&&" Take screenshot by camera icon."),f&&X.createElement(BR,null,"Add some by dropping or clicking on plus."))),r&&X.createElement(sR,{screenshot:r,onClose:function(){return t({type:"CLOSE_SCREENSHOT_DETAIL"})}}),d&&X.createElement(IR,{onClose:function(){return p(!1)}}))},VR=function(e){return e||"No namespace"},qR=function(e){var t=e.onChange,n=e.options,r=e.value,o=Mc(n),i=1===o.length,a=i&&""===o[0];return X.createElement(X.Fragment,null,!a&&X.createElement(X.Fragment,null,X.createElement(qC,null,"Namespace"),i?VR(o[0]):X.createElement(wS,{variant:"outlined",size:"small",style:{maxWidth:250}},X.createElement(jC,{displayEmpty:!0,value:r,onChange:function(e){return t(e.target.value)},input:X.createElement(lS,null),renderValue:function(e){return VR(e)},MenuProps:{style:{zIndex:yc},disablePortal:!0}},o.map((function(e){return X.createElement(fO,{key:e,value:e,dense:!0},X.createElement(sO,null,VR(e)))}))))))},HR=hw("div")(kR||(kR=d(["\n font-family: Rubik, Roboto, Arial;\n padding: 20px;\n box-sizing: border-box;\n max-width: 100%;\n width: 700px;\n display: flex;\n flex-direction: column;\n"],["\n font-family: Rubik, Roboto, Arial;\n padding: 20px;\n box-sizing: border-box;\n max-width: 100%;\n width: 700px;\n display: flex;\n flex-direction: column;\n"]))),KR=hw("div")(ER||(ER=d(["\n display: flex;\n align-items: center;\n gap: 5px;\n"],["\n display: flex;\n align-items: center;\n gap: 5px;\n"]))),QR=hw("div")(SR||(SR=d(["\n display: flex;\n margin: 0px;\n font-size: 19px;\n"],["\n display: flex;\n margin: 0px;\n font-size: 19px;\n"]))),GR=hw("div")(CR||(CR=d(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n flex-grow: 1;\n"],["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n flex-grow: 1;\n"]))),YR=hw("p")(OR||(OR=d(["\n margin: 0px;\n"],["\n margin: 0px;\n"]))),XR=hw("span")(PR||(PR=d(["\n color: grey;\n"],["\n color: grey;\n"]))),ZR=hw("div")(RR||(RR=d(["\n margin-top: 20px;\n"],["\n margin-top: 20px;\n"]))),JR=hw("div")(TR||(TR=d(["\n margin-top: 10px;\n"],["\n margin-top: 10px;\n"]))),eT=hw("div")(LR||(LR=d(["\n display: flex;\n justify-content: flex-end;\n margin-top: 20px;\n min-height: 36px;\n"],["\n display: flex;\n justify-content: flex-end;\n margin-top: 20px;\n min-height: 36px;\n"]))),tT=hw("div")(MR||(MR=d(["\n margin-top: 8px;\n color: ",";\n"],["\n margin-top: 8px;\n color: ",";\n"])),(function(e){return e.theme.palette.text.secondary})),nT=hw("div")(AR||(AR=d(["\n color: red;\n"],["\n color: red;\n"]))),rT=function(){var e,t=Ap(),n=Np((function(e){return e.linkToPlatform})),r=Np((function(e){return e.useBrowserWindow})),i=Np((function(e){return e.input})),a=Np((function(e){return e.translations})),l=Np((function(e){return e.formDisabled})),s=Np((function(e){return e.loading})),u=Np((function(e){return e.error})),c=Np((function(e){return e.saving})),d=Np((function(e){return e.success})),p=Np((function(e){return e.keyExists})),f=Np((function(e){return e.scopes})),h=Np((function(e){return e.ns})),m=Np((function(e){return e.selectedNs})),v=Cp("screenshots.view",f),g=!s&&!u;return X.createElement(HR,o({},((e={})["data-tolgee-restricted"]="true",e)),X.createElement(KR,null,X.createElement("a",{href:n,target:"_blank",rel:"noreferrer noopener",id:"_tolgee_platform_link"},X.createElement("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",opacity:"0.99",fill:"#822B55",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2,height:23}},X.createElement("path",{d:"M97.16,7.27a16.94,16.94,0,0,0-1.9,24.47,16.36,16.36,0,0,0,5,3.83,3.23,3.23,0,0,1-2.9,5.77,23.14,23.14,0,0,1-11.41-13C73.83,31.1,63.46,37.09,52.82,46.51c-27.44,24.3-34.35,61.74-16.38,85.26-4.57,5.79-8,12.22-8.9,18.69a20.88,20.88,0,0,0,5.62,18c9.18,9.61,21.42,7.13,31.26,5.14,6.58-1.34,12.8-2.6,16.5-.23,3.22,2.07,3.47,3.87,3.61,4.45,2.1,9.32-5.79,13.89-7.67,16.27a1.48,1.48,0,0,0,1.13,2.4c3.48,0,9-1.18,12.34-4.08s7.16-7.9,5.89-16.32c-.08-.5-.18-1-.32-1.58-.86-3.35-3.1-7.57-8.61-11.09-7.72-4.95-17-3.07-25.22-1.41-9.76,2-16,2.85-20.37-1.71a9.13,9.13,0,0,1-2.46-8.19c.54-3.77,2.65-7.89,5.62-11.86,21.71,16.89,56.87,13.47,82.67-9.39a75.34,75.34,0,0,0,20.81-28.09A23.14,23.14,0,0,1,134.8,89a3.23,3.23,0,0,1,6.08-2.19,16.37,16.37,0,0,0,3.2,5.39,16.85,16.85,0,1,0,11.48-28,3.23,3.23,0,0,1-.51-6.44,23.41,23.41,0,0,1,12.88,2.69c2.6-14.08,3.34-31.41-2.06-37.51-4.08-4.61-20.62-8-35.18-7.76A23.48,23.48,0,0,1,130.8,25a3.23,3.23,0,0,1-6.33-1.28A16.94,16.94,0,0,0,97.16,7.27Zm63.25,21a5.29,5.29,0,0,1-.57,6.19c-1.29,1.14-2.72-.51-4.1-2.06s-3.1-3.42-1.81-4.56A5.74,5.74,0,0,1,160.41,28.27Z"}))),X.createElement(QR,null,"Quick translation"),!r&&X.createElement(Hk,{title:"Open in new window",onClick:function(){t({type:"SET_USE_BROWSER_WINDOW",payload:!0})},color:"inherit",size:"small"},X.createElement(xE,{fontSize:"small"})),X.createElement(GR,null,!s&&X.createElement(AO,null))),X.createElement(qC,null,"Key"),X.createElement(YR,null,i,X.createElement(XR,null,!p&&g&&" (key doesn't exist yet)")),X.createElement(qR,{options:h,value:m,onChange:function(e){t({type:"SELECTED_NS_CHANGE",payload:{ns:e}})}}),X.createElement(ZR,null,X.createElement(GC,null)),v&&g&&X.createElement(JR,null,X.createElement(UR,null)),l&&g&&X.createElement(tT,null,"Modification is restricted due to missing ".concat(void 0!==(null==a?void 0:a.keyId)?"translations.edit":"keys.edit"," scope in current api key settings.")),u&&X.createElement(nT,null,u),X.createElement(eT,null,X.createElement(tE,{onClick:function(){t({type:"ON_CLOSE"})},color:"secondary"},r?"Close":"Cancel"),X.createElement(XO,{loading:c,disabled:c||l,onClick:function(){t({type:"ON_SAVE"})},color:"primary",variant:"contained",style:{marginLeft:"10px"}},d?"Saved! ✓":void 0===(null==a?void 0:a.keyId)?"Create":"Update")))},oT=cw({typography:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},palette:{primary:{main:"#822B55"},secondary:{main:"#2B5582"},text:{secondary:"#808080"},background:{default:"rgb(255, 255, 255)"}},zIndex:{modal:yc}});oT=cw(oT,{components:{MuiButton:{styleOverrides:{root:{whiteSpace:"nowrap"}}},MuiTooltip:{styleOverrides:{tooltip:{fontSize:12,boxShadow:"1px 1px 6px rgba(0, 0, 0, 0.25)",borderRadius:"11px",color:"black",backgroundColor:"white"}}}}});var iT,aT,lT,sT=function(e){var t,n=e.children,r=h.exports.useRef(cv({key:"css",prepend:!0,container:null===(t=document.getElementById(gc))||void 0===t?void 0:t.shadowRoot}));return X.createElement(ug,{value:r.current},X.createElement(Mb,{theme:oT},n))},uT=function(){return X.createElement(sT,null,X.createElement(Ek,null,X.createElement(rT,null)))},cT=function(e){function t(t){var n=e.call(this,t)||this;return n.state={key:null,defaultValue:void 0,dialogOpened:!1,ns:void 0},n.render=function(){return h.exports.createElement(xc,null,h.exports.createElement(xp,{apiUrl:n.props.apiUrl,apiKey:n.props.apiKey},n.state.dialogOpened&&h.exports.createElement(Mp,{uiProps:n.props,defaultValue:n.state.defaultValue||"",open:n.state.dialogOpened,keyName:n.state.key,ns:n.state.ns,onClose:n.onClose},h.exports.createElement(uT,null))))},n.onClose=function(){n.setState(o(o({},n.state),{dialogOpened:!1}))},n}return r(t,e),t.prototype.translationEdit=function(e,t,n){this.setState(o(o({},this.state),{dialogOpened:!0,defaultValue:t,key:e,ns:n}))},t}(h.exports.Component),dT=hw(fO)(iT||(iT=d(["\n display: flex;\n flex-direction: column;\n height: 50px;\n justify-content: center;\n align-items: flex-start;\n"],["\n display: flex;\n flex-direction: column;\n height: 50px;\n justify-content: center;\n align-items: flex-start;\n"]))),pT=hw("div")(aT||(aT=d(["\n display: flex;\n padding: 3px;\n"],["\n display: flex;\n padding: 3px;\n"]))),fT=hw("div")(lT||(lT=d(["\n display: flex;\n margin-top: -5px;\n padding: 3px;\n font-weight: bold;\n font-size: 12px;\n font-family: Monospace, 'Courier New', Courier;\n"],["\n display: flex;\n margin-top: -5px;\n padding: 3px;\n font-weight: bold;\n font-size: 12px;\n font-family: Monospace, 'Courier New', Courier;\n"]))),hT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={opened:!1},t.keyDown=function(e){"Escape"===e.key&&(t.setState((function(e){return o(o({},e),{opened:!1})})),t.state.onSelect&&t.state.onSelect(void 0))},t}return r(t,e),t.prototype.show=function(e){return a(this,void 0,void 0,(function(){return l(this,(function(t){return this.setState(o(o({},e),{opened:!0})),[2]}))}))},t.prototype.componentDidMount=function(){document.addEventListener("keydown",this.keyDown)},t.prototype.componentWillUnmount=function(){document.removeEventListener("keydown",this.keyDown)},t.prototype.render=function(){var e,t=this;return X.createElement(sT,null,this.state.opened&&X.createElement(sC,{disablePortal:!0,disableEnforceFocus:!0,anchorEl:null===(e=this.state.openEvent)||void 0===e?void 0:e.target,anchorOrigin:{vertical:"bottom",horizontal:"center"},open:!0,onClose:function(){var e,n;t.setState({opened:!1}),null===(n=(e=t.state).onSelect)||void 0===n||n.call(e,void 0)},container:document.getElementById(gc),style:{zIndex:yc}},Array.from(this.state.keys||[]).map((function(e,n){var r=u(e,2),o=r[0],i=r[1];return X.createElement(dT,{onClick:function(){var e,n;null===(n=(e=t.state).onSelect)||void 0===n||n.call(e,o),setTimeout((function(){t.setState({opened:!1})}))},key:n},X.createElement(pT,null,i),X.createElement(fT,null,o))}))))},t}(X.Component),mT=function(){function e(e){this.props=e;var t=document.getElementById(gc);t||((t=document.createElement("div")).id=gc,t.attachShadow({mode:"open"}),document.body.appendChild(t));var n=t.shadowRoot,r=document.createElement("div");n.appendChild(r);var i=document.createElement("div");n.appendChild(i);var a=h.exports.createElement(cT,o({},this.props));this.viewerComponent=J.exports.render(a,r),this.keyContextMenu=J.exports.render(h.exports.createElement(hT),i)}return e.prototype.renderViewer=function(e,t,n){this.viewerComponent.translationEdit(e,t,n)},e.prototype.getKey=function(e){return a(this,void 0,void 0,(function(){var t=this;return l(this,(function(n){switch(n.label){case 0:return[4,new Promise((function(n){t.keyContextMenu.show(o(o({},e),{onSelect:function(e){return n(e)}}))}))];case 1:return[2,n.sent()]}}))}))},e.prototype.handleElementClick=function(e,t){return a(this,void 0,void 0,(function(){var n,r,o;return l(this,(function(i){switch(i.label){case 0:return n=t[0].key,t.length>1?(r=new Map(t.map((function(e){var t=e.key,n=e.translation,r=e.defaultValue;return[t,n||r]}))),[4,this.getKey({openEvent:e,keys:r})]):[3,2];case 1:n=i.sent(),i.label=2;case 2:return n&&(o=t.find((function(e){return e.key===n})),null==this||this.renderViewer(n,o.defaultValue,o.ns)),[2]}}))}))},e}(),vT=function(){return function(e,t){return t.setUi(mT),e}};function gT(e,t){return{oldTextContent:e,keys:t}}var yT={pointerEvents:"none",position:"fixed",boxSizing:"content-box",zIndex:String(Number.MAX_SAFE_INTEGER),contain:"layout",display:"block",borderStyle:"solid",borderRadius:"4px"},bT=function(e){var t=e.highlightColor,n=e.highlightWidth;return Object.freeze({initHighlighter:function(e,r){!function(e,r){r.highlight=function(){if(e.isConnected){var o=r.highlightEl;o||((o=document.createElement("div")).classList.add(nd),Object.entries(yT).forEach((function(e){var t=u(e,2),n=t[0],r=t[1];o.style[n]=r})),o.style.borderColor=t,r.highlightEl=o,document.body.appendChild(o));var i=e.getBoundingClientRect();o.style.borderWidth=n+"px",o.style.top=i.top-n+"px",o.style.left=i.left-n+"px",o.style.width=i.width+"px",o.style.height=i.height+"px"}}}(e,r),function(e,t){t.unhighlight=function(){var e;null===(e=t.highlightEl)||void 0===e||e.remove(),t.highlightEl=void 0}}(0,r)}})};function xT(e,t){for(var n,r,o=null===document||void 0===document?void 0:document.evaluate(e,t,void 0,XPathResult.ANY_TYPE),i=[];r=null===(n=null==o?void 0:o.iterateNext)||void 0===n?void 0:n.call(o);)i.push(r);return i}function wT(e){return e.textContent}function kT(e,t){e.textContent=t}var ET=function(e,t){var n,r=void 0===e.key||void 0===t.key||t.key===e.key,o=void 0===e.ns||void 0===t.ns||-1!==(null===(n=e.ns)||void 0===n?void 0:n.findIndex((function(e){var n;return null===(n=t.ns)||void 0===n?void 0:n.includes(e)})));return r&&o},ST={capture:!0},CT={capture:!0,passive:!0},OT=function(e){var t,n,r=e.highlightKeys,o=e.elementStore,i=e.onClick,a=new Set,l=function(){var e,n=o.get(t);n&&(n.preventClean=!1,null===(e=n.unhighlight)||void 0===e||e.call(n),t=void 0)};function u(){var e,r=n;if(r&&b()){var i=document.elementFromPoint(r.x,r.y);i&&(e=g(i))}!function(e){var n;if(t!==e){l();var r=o.get(e);r&&(r.preventClean=!0,null===(n=r.highlight)||void 0===n||n.call(r),t=e)}}(e)}var c=function(e){var t;b()&&(t=e.target,!Boolean(y(t,(function(e){return e.id===od}))))&&(e.stopPropagation(),e.preventDefault())},d=function(e){!function(e){n=e,u()}({x:e.clientX,y:e.clientY})},p=function(){a=new Set,u()},f=function(e){var t=e.key;void 0!==t&&a.add(t),u()},h=function(e){a.delete(e.key),u()},m=function(){var e,n=o.get(t);null===(e=null==n?void 0:n.highlight)||void 0===e||e.call(n)},v=function(e){if(c(e),b()){var n=g(e.target);n&&n===t&&(i(e,n),l())}};function g(e){return y(e,(function(e){return o.get(e)}))}function y(e,t){return t(e)?e:(null==e?void 0:e.parentElement)?y(e.parentElement,t):void 0}function b(){var e,t;try{for(var n=s(r),o=n.next();!o.done;o=n.next()){var i=o.value;if(!a.has(i))return!1}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!0}return Object.freeze({run:function(){window.addEventListener("blur",p,ST),window.addEventListener("keydown",f,ST),window.addEventListener("keyup",h,ST),window.addEventListener("mousemove",d,CT),window.addEventListener("scroll",m,CT),window.addEventListener("click",v,ST),window.addEventListener("mouseenter",c,ST),window.addEventListener("mouseover",c,ST),window.addEventListener("mouseout",c,ST),window.addEventListener("mouseleave",c,ST),window.addEventListener("mousedown",c,ST),window.addEventListener("mouseup",c,ST)},stop:function(){window.removeEventListener("blur",p,ST),window.removeEventListener("keydown",f,ST),window.removeEventListener("keyup",h,ST),window.removeEventListener("mousemove",d,CT),window.removeEventListener("scroll",m,CT),window.removeEventListener("click",v,ST),window.removeEventListener("mouseenter",c,ST),window.removeEventListener("mouseover",c,ST),window.removeEventListener("mouseout",c,ST),window.removeEventListener("mouseleave",c,ST),window.removeEventListener("mousedown",c,ST),window.removeEventListener("mouseup",c,ST)}})},PT=function(e,t){var n,r=(n=new Map,Object.freeze({set:function(e,t){n.set(e,t)},get:function(e){return e&&n.get(e)},remove:function(e){return n.delete(e)},forEachElement:function(e){n.forEach((function(t,n){return e(n,t)}))}})),o=bT({highlightColor:e.highlightColor,highlightWidth:e.highlightWidth}),i=OT({highlightKeys:e.highlightKeys,elementStore:r,onClick:function(e,n){var o=r.get(n);t(e,{el:n,meta:o,keysAndDefaults:a(o)})}});function a(e){return function(e){return Array.from(e.nodes.values()).reduce((function(e,t){return c(c([],u(e),!1),u(t.keys.map((function(e){return{key:e.key,defaultValue:e.defaultValue,ns:e.ns}}))),!1)}),[])}(e)}return Object.freeze({register:function(t,n,i){if(!function(t){return-1!==e.restrictedElements.indexOf(t.tagName.toLowerCase())||null!==t.closest("[".concat(ed,"]"))}(t)){var a=t,l=r.get(a);l||(l={nodes:new Map},r.set(a,l),a.setAttribute(td,"true")),l.nodes.set(n,i),o.initHighlighter(a,l)}},forEachElement:r.forEachElement,findAll:function(e,t){var n=[];return r.forEachElement((function(r,o){var i,a;try{for(var l=s(o.nodes.values()),u=l.next();!u.done;u=l.next()){if(u.value.keys.find((function(n){return ET({key:e,ns:Lc(t)},{key:n.key,ns:Lc(n.ns)})}))){n.push(o);break}}}catch(e){i={error:e}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}})),n},refreshAll:function(){r.forEachElement((function(t,n){n.preventClean||(function(t){t.nodes=new Map(function(t){var n,r,o,i,a,c,d,p;return l(this,(function(l){switch(l.label){case 0:l.trys.push([0,5,6,7]),n=s(t.nodes.entries()),r=n.next(),l.label=1;case 1:return r.done?[3,4]:(o=u(r.value,2),i=o[0],a=o[1],function(e,t){if(e.contains(t))return!0;if(t instanceof Attr){var n=t.ownerElement&&Object.values(t.ownerElement.attributes).indexOf(t)>-1;if(e.contains(t.ownerElement)&&n)return!0}return!1}(e.targetElement||document.body,i)?[4,[i,a]]:[3,3]);case 2:l.sent(),l.label=3;case 3:return r=n.next(),[3,1];case 4:return[3,7];case 5:return c=l.sent(),d={error:c},[3,7];case 6:try{r&&!r.done&&(p=n.return)&&p.call(n)}finally{if(d)throw d.error}return[7];case 7:return[2]}}))}(t))}(n),0===n.nodes.size&&function(e,t){var n;t.highlightEl&&(null===(n=t.unhighlight)||void 0===n||n.call(t));e.removeAttribute(td),r.remove(e)}(t,n))}))},run:function(e){e&&i.run()},stop:function(){i.stop()}})},RT=function(e,t,n){var r=!1,o=function(e){return Object.freeze({getSuitableParent:function t(n){var r=function(e){return e.parentElement?e.parentElement:e.ownerElement&&e.ownerElement||void 0}(n);if(void 0===r)throw console.error(n),new Error("No suitable parent found for node above.");return e.passToParent?Array.isArray(e.passToParent)&&-1===e.passToParent.findIndex((function(e){return r.tagName.toLowerCase()===e.toLowerCase()}))?r:"function"!=typeof e.passToParent||e.passToParent(r)?t(r):r:r}})}(t),i=function(e,t){var n=function(e){return xT(t.getTextXPath(),e)},r=function(n){var r,o,i,a,l=[];try{for(var d=s(Object.entries(e.tagAttributes)),p=d.next();!p.done;p=d.next()){var f=u(p.value,2),h=f[0],m=f[1];try{for(var v=(i=void 0,s(m)),g=v.next();!g.done;g=v.next()){var y=g.value,b=xT(t.getAttributeXPath({tag:h,attribute:y}),n);l=c(c([],u(l),!1),u(b),!1)}}catch(e){i={error:e}}finally{try{g&&!g.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}return l};return Object.freeze({handleAttributes:r,handleChildList:function(e){var t=[];return(t=t.concat(r(e))).concat(n(e))},handleText:n})}(t,e),a=PT(t,n);function l(t){var n,r;try{for(var i=s(t),l=i.next();!l.done;l=i.next()){var u=l.value,c=wT(u),d=c?e.unwrap(c):null;if(d){var p=d.text,f=d.keys;kT(u,p);var h=gT(c,f),m=o.getSuitableParent(u);a.register(m,u,h)}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}var d,p=function(e){xT("./descendant-or-self::*[@".concat(rd,"]"),e).forEach((function(e){var t=e.getAttributeNode(rd),n=o.getSuitableParent(t);a.register(n,t,{oldTextContent:"",keys:[{key:wT(t)}],keyAttributeOnly:!0})}))};return Object.freeze({run:function(e){var n=e.mouseHighlight;d||(d=new MutationObserver((function(e){var t,n;if(r)try{for(var o=s(e),u=o.next();!u.done;u=o.next()){var c=u.value,d=[];switch(c.type){case"characterData":d=i.handleText(c.target);break;case"childList":p(c.target),d=i.handleChildList(c.target);break;case"attributes":p(c.target),d=i.handleAttributes(c.target)}l(d),a.refreshAll()}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}})));var o=t.targetElement||document.body;r=!0,a.run(n),p(o),l(i.handleChildList(o)),d.observe(t.targetElement||document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0})},stop:function(){r=!1,a.stop(),d.disconnect()},wrap:e.wrap,unwrap:e.unwrap,forEachElement:a.forEachElement,highlight:function(e,t){var n=a.findAll(e,t);return n.forEach((function(e){var t;return null===(t=e.highlight)||void 0===t?void 0:t.call(e)})),{unhighlight:function(){n.forEach((function(e){var t;return null===(t=e.unhighlight)||void 0===t?void 0:t.call(e)}))}}}})};function TT(){}function LT(){}TT.prototype.encode=function(e){for(var t=[],n=e.length,r=0;r<n;){var o=e.codePointAt(r),i=0,a=0;for(o<=127?(i=0,a=0):o<=2047?(i=6,a=192):o<=65535?(i=12,a=224):o<=2097151&&(i=18,a=240),t.push(a|o>>i),i-=6;i>=0;)t.push(128|o>>i&63),i-=6;r+=o>=65536?2:1}return t},LT.prototype.decode=function(e){for(var t="",n=0;n<e.length;){var r=e[n],o=0,i=0;if(r<=127?(o=0,i=255&r):r<=223?(o=1,i=31&r):r<=239?(o=2,i=15&r):r<=244&&(o=3,i=7&r),e.length-n-o>0)for(var a=0;a<o;)i=i<<6|63&(r=e[n+a+1]),a+=1;else i=65533,o=e.length-n;t+=String.fromCodePoint(i),n+=o+1}return t};var MT="undefined"==typeof TextEncoder?TT:TextEncoder,AT="undefined"==typeof TextDecoder?LT:TextDecoder,NT=["",""],_T=RegExp("([".concat(NT.join(""),"]{9})+"),"gu"),jT=function(e){var t=function(e){return Array.from((new MT).encode(e))}(e).map(Number),n=t.map((function(e){return function(e){var t=8-e.length;return"0".repeat(t)+e}(e.toString(2))+"0"})).join(""),r=Array.from(n).map((function(e){return NT[Number(e)]})).join("");return r},IT=function(e){var t,n=Array.from(e).map((function(e){return NT.indexOf(e)})).map(String).join("").match(/(.{9})/g),r=Uint8Array.from((null==n?void 0:n.map((function(e){return parseInt(e.slice(0,8),2)})))||[]);return t=r,(new AT).decode(new Uint8Array(t))},FT=function(){var e=function(){var e=[];return Object.freeze({valueToNumber:function(t){var n=e.indexOf(t);return-1===n&&(n=e.length,e.push(t)),n},numberToValue:function(t){return e[t]}})}(),t=function(e){return JSON.parse(e)};return Object.freeze({unwrap:function(n){var r=[],o=function(e){var t,n=null===(t=e.match(_T))||void 0===t?void 0:t.filter((function(e){return e.length>8}));return(null==n?void 0:n.map(IT))||[]}(n);o.forEach((function(n){var o=u(function(e){var t,n,r=[];try{for(var o=s(e),i=o.next();!i.done;i=o.next()){var a=i.value;r.push(a.codePointAt(0))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(n),1),i=o[0],a=e.numberToValue(i),l=t(a),c=l.k,d=l.d,p=l.n;r.push({key:c,defaultValue:d,ns:p})}));var i=function(e){return e.replace(_T,"")}(n);return{text:i,keys:r}},wrap:function(t){var n=t.key,r=t.defaultValue,o=t.translation,i=function(e){var t={k:e.key,n:e.ns,d:e.defaultValue};return JSON.stringify(t)}({key:n,ns:t.ns,defaultValue:r}),a=e.valueToNumber(i),l=o||"",s=jT(String.fromCodePoint(a));return"string"==typeof l?l+s:l},getTextXPath:function(){return"./descendant-or-self::text()[contains(., '".concat(NT[0]).concat(NT[0],"') or contains(., '").concat(NT[1]).concat(NT[0],"')]")},getAttributeXPath:function(e){var t=e.tag,n=e.attribute;return"descendant-or-self::".concat(t,"/@").concat(n,"[contains(., '").concat(NT[0]).concat(NT[0],"') or contains(., '").concat(NT[1]).concat(NT[0],"')]")}})},zT=function(){return function(e,t){return t.setObserver((function(e){var t=e.onClick,n=e.options,r=FT(),i=RT(r,n,t);return o(o({},i),{retranslate:function(){},outputNotFormattable:!1})})),e}},DT=function(){return function(e,t){return t.setDevBackend({getRecord:function(e){var t,n=e.apiUrl,r=e.apiKey,o=e.language,i=e.namespace,a=e.projectId;if(!i){var l=null!==(t=pp(r))&&void 0!==t?t:a,s=void 0!==l?"".concat(n,"/v2/projects/").concat(l,"/translations/").concat(o):"".concat(n,"/v2/projects/translations/").concat(o);return fetch(s,{headers:{"X-API-Key":r||""}}).then((function(e){if(e.ok)return e.json().then((function(e){return e[o]}));throw new Error(e.statusText)}))}}}),e}};function $T(e,t){for(var n=0;e>-1&&"\\"===t[e-1];)n++,e--;return n%2==1}var BT=function(e){var t=e.inputPrefix,n=e.inputSuffix,r=e.translate;function o(e){var t=function(e){var t,n,r=!1,o="",i="",a="KEY",l={key:"",ns:void 0,params:{},defaultValue:void 0},u=function(e){l.ns||(l.ns=[]),l.ns.push(e)};try{for(var c=s(e),d=c.next();!d.done;d=c.next()){var p=d.value;"\\"!==p||r?r?(r=!1,o+=p):"KEY"!==a||","!==p?"KEY"!==a||"|"!==p?"NAMESPACE"!==a||"|"!==p?"NAMESPACE"!==a||","!==p?"KEY"!==a||":"!==p?"DEFAULT_VALUE"!==a||":"!==p?"PARAM_NAME"!==a||":"!==p?"PARAM_VALUE"!==a||","!==p?o+=p:(a="PARAM_NAME",l.params[i]=o,o=""):(a="PARAM_VALUE",i=o,o=""):(a="PARAM_NAME",l.defaultValue=o,o=""):(a="PARAM_NAME",l.key=o,o=""):(a="DEFAULT_VALUE",u(o),o=""):(a="NAMESPACE",u(o),o=""):(a="NAMESPACE",l.key=o,o=""):(a="DEFAULT_VALUE",l.key=o,o=""):r=!0}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return"KEY"===a&&(l.key=o),"DEFAULT_VALUE"===a&&(l.defaultValue=o),"PARAM_VALUE"===a&&(l.params[i]=o),"NAMESPACE"===a&&u(o),l}(e),n=t.key,o=t.params,i=t.defaultValue,a=t.ns;return{translated:r({key:n,params:o,defaultValue:i,ns:a,noWrap:!0}),key:n,params:o,defaultValue:i}}var i=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},a=function(e){return"string"==typeof e?e.replace(/[,:|\\]/gs,"\\$&"):"number"==typeof e||"bigint"==typeof e?e.toString():(console.warn('Parameters of type "'.concat(typeof e,'" are not supported in "text" wrapper mode.')),e)};return Object.freeze({wrap:function(e){var r=e.key,o=e.params,i=e.defaultValue,l=e.ns,s=Object.entries(o||{}).map((function(e){var t=u(e,2),n=t[0],r=t[1];return"".concat(a(n),":").concat(a(r))})).join(",");s=s.length?":".concat(s):"";var c=void 0!==i?",".concat(a(i)):"",d="string"==typeof l?[l]:l,p=(null==d?void 0:d.length)?"|".concat(d.map((function(e){return a(e)})).join("|")):"";return"".concat(t).concat(a(r)).concat(p).concat(c).concat(s).concat(n)},unwrap:function(e){for(var r,a,l,s=new RegExp((r=i(t),a=i(n),"(\\\\?)(".concat(r,"(.*?)").concat(a,")")),"gs"),c=[],d=!1,p=0,f="";null!==(l=s.exec(e));){var h=l[1],m=u(l,4),v=m[0];m[1];var g=m[2],y=m[3],b=l.index;if(f+=l.input.substr(p,b-p),p=b+v.length,"\\"===h){if(!$T(b,e)){f+=g;continue}h=""}var x=o(y);c.push({key:x.key,params:x.params,defaultValue:x.defaultValue}),d=!0,f+=h+x.translated}return f+=e.substring(p),d?{text:f,keys:c}:{text:e,keys:[]}},getTextXPath:function(){return"./descendant-or-self::text()[contains(., '".concat(t,"') and contains(., '").concat(n,"')]")},getAttributeXPath:function(e){var r=e.tag,o=e.attribute;return"descendant-or-self::".concat(r,"/@").concat(o,"[contains(., '").concat(t,"') and contains(., '").concat(n,"')]")}})};var WT=null;function UT(e){var t;return WT||(WT=(t="https://unpkg.com/@tolgee/web@".concat(e||"latest","/dist/").concat("tolgee-in-context-tools.umd.min.js"),new Promise((function(e,n){var r=document.createElement("script");r.src=t,r.addEventListener("load",(function(){return e()})),r.addEventListener("error",(function(e){return n(e.error)})),document.body.appendChild(r)}))).then((function(){return window["@tolgee/in-context-tools"].InContextTools}))),WT}var VT="__tolgee_apiKey",qT="__tolgee_apiUrl";function HT(){var e=sessionStorage.getItem(VT)||void 0,t=sessionStorage.getItem(qT)||void 0;if(e&&t)return{apiKey:e,apiUrl:t}}function KT(){sessionStorage.removeItem(VT),sessionStorage.removeItem(qT)}e.BrowserExtensionPlugin=function(){return function(e){return e}},"undefined"!=typeof window&&(e.BrowserExtensionPlugin=function(){return function(e){var t,n=(t=void 0,{update:function(e){return a(this,void 0,void 0,(function(){var n,r,o;return l(this,(function(i){return null==t||t(),n=Pp({message:"TOLGEE_READY",recievingMessage:["TOLGEE_PLUGIN_READY","TOLGEE_PLUGIN_UPDATED"],data:e,attempts:4}),r=n.cancel,o=n.promise,t=r,[2,o]}))}))}});return e.on("running",(function(t){var r;t.value&&(r=function(){n.update({uiPresent:!0,uiVersion:void 0,mode:e.isDev()?"development":"production",config:{apiUrl:e.getInitialOptions().apiUrl||"",apiKey:e.getInitialOptions().apiKey||""}}).catch(KT)},"loading"!==document.readyState?Promise.resolve().then((function(){r()})):document.addEventListener&&document.addEventListener("DOMContentLoaded",r))})),HT()&&a(void 0,void 0,void 0,(function(){var e;return l(this,(function(t){switch(t.label){case 0:return[4,UT("rc")];case 1:return e=t.sent(),[2,function(t){var n=HT();return t.use(e(n)),t}]}}))})).then((function(t){e.use(t)})).catch((function(){console.error("Tolgee: Failed to load in-context tools")})),e}});var QT="__tolgee_currentLanguage",GT=function(e){return e.endsWith("/")?e.slice(0,-1):e},YT={prefix:"/i18n",getPath:function(e){var t=e.namespace,n=e.language,r=e.prefix;return t?"".concat(GT(r),"/").concat(n,"/").concat(t,".json"):"".concat(GT(r),"/").concat(n,".json")},getData:function(e){return e.json()},headers:{Accept:"application/json"}};e.BackendFetch=function(e){return function(t,n){return n.addBackend(function(e){var t=o(o(o({},YT),e),{headers:o(o({},YT.headers),null==e?void 0:e.headers)}),n=t.prefix,r=t.getPath,a=t.getData,l=t.headers,s=i(t,["prefix","getPath","getData","headers"]);return{getRecord:function(e){var t=e.namespace,i=e.language,u=r({namespace:t,language:i,prefix:n});return fetch(u,o({headers:l},s)).then((function(e){if(!e.ok)throw new Error("".concat(e.url," ").concat(e.status));return a(e)}))}}}(e)),t}},e.ContextUi=vT,e.DEVTOOLS_ID=od,e.DevBackend=DT,e.DevTools=function(){return function(e){return e}},e.InContextTools=function(e){return function(t,n){return t.use(DT()),n.hasObserver()||t.use(zT()),n.hasUi()||t.use(vT()),e&&n.overrideCredentials(e),t}},e.InvisibleObserver=zT,e.LanguageDetector=function(){return function(e,t){return t.setLanguageDetector({getLanguage:function(e){var t=e.availableLanguages;if("undefined"!=typeof window&&t){var n=window.navigator.language,r=t.find((function(e){return e===n}));if(r)return r;var o=function(e){return e.replace(/^(.+?)(-.*)?$/,"$1")},i=o(window.navigator.language),a=t.find((function(e){return o(e)===i}));return a||void 0}}}),e}},e.LanguageStorage=function(){return function(e,t){return t.setLanguageStorage({getLanguage:function(){return localStorage.getItem(QT)||void 0},setLanguage:function(e){localStorage.setItem(QT,e)}}),e}},e.RESTRICTED_ASCENDANT_ATTRIBUTE=ed,e.TOLGEE_ATTRIBUTE_NAME=td,e.TOLGEE_HIGHLIGHTER_CLASS=nd,e.TOLGEE_WRAPPED_ONLY_DATA_ATTRIBUTE=rd,e.TextObserver=function(){return function(e,t){return t.setObserver((function(e){var t=e.translate,n=e.onClick,r=e.options,o=BT({inputPrefix:r.inputPrefix,inputSuffix:r.inputSuffix,translate:t}),i=RT(o,r,n),a=i.wrap,l=i.unwrap,c=i.stop,d=i.forEachElement,p=i.highlight;return{wrap:a,unwrap:l,stop:c,run:i.run,retranslate:function(){d((function(e,t){var n,r;try{for(var i=s(t.nodes.entries()),a=i.next();!a.done;a=i.next()){var l=u(a.value,2),c=l[0],d=l[1];if(d.keyAttributeOnly)return;var p=o.unwrap(d.oldTextContent);p&&kT(c,p.text)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}))},highlight:p,outputNotFormattable:!0}})),e}},e.Tolgee=function(t){return Jc(t).use(e.BrowserExtensionPlugin())},e.TolgeeCore=Jc,e.getFallback=Lc,e.getFallbackArray=Mc,e.getProjectIdFromApiKey=pp,e.getTranslateParams=Xc,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
143
|
+
//# sourceMappingURL=tolgee-web.umd.min.js.map
|