diff --git a/Build/Sources/App.js b/Build/Sources/App.js
index 0af86b14e..be6605c4f 100644
--- a/Build/Sources/App.js
+++ b/Build/Sources/App.js
@@ -9,6 +9,14 @@ const initialNodes = [];
const initialEdges = [];
function App() {
+ // Nodes for ReactFlow
+ const [nodes, setNodes] = useState([]);
+
+ const onNodesChanged = (nodes) => {
+ // Dont use prev
+ setNodes(nodes);
+ }
+
// Zustand für das Ein- und Ausklappen der linken Spalte
const [isLeftColumnVisible, setLeftColumnVisible] = useState(true);
@@ -142,22 +150,22 @@ const updatePluginHandler = (pluginId, field, value) => {
});
}
-const updateModuleHandler = (moduleId, field, value) => {
- setModules((prevModules) => {
- return prevModules.map((module) => {
- if (module.id === moduleId) {
- if (field.includes('.')) {
- const [parentKey, childKey] = field.split('.');
- return {...module, [parentKey]: {...module[parentKey], [childKey]: value}};
+ const updateModuleHandler = (moduleId, field, value) => {
+ setModules((prevModules) => {
+ return prevModules.map((module) => {
+ if (module.id === moduleId) {
+ if (field.includes('.')) {
+ const [parentKey, childKey] = field.split('.');
+ return {...module, [parentKey]: {...module[parentKey], [childKey]: value}};
+ } else {
+ return {...module, [field]: value};
+ }
} else {
- return {...module, [field]: value};
+ return module;
}
- } else {
- return module;
- }
+ });
});
- });
-}
+ }
const removeAuthorHandler = (authorId) => {
// TODO Testen !!!
@@ -280,6 +288,7 @@ const updateModuleHandler = (moduleId, field, value) => {
authors={authors}
plugins={plugins}
modules={modules}
+ nodes={nodes}
addNewAuthorHandler={addNewAuthorHandler}
addNewModuleHandler={addNewModuleHandler}
addNewPluginHandler={addNewPluginHandler}
@@ -299,7 +308,9 @@ const updateModuleHandler = (moduleId, field, value) => {
diff --git a/Build/Sources/components/ActionButtonsComponent.jsx b/Build/Sources/components/ActionButtonsComponent.jsx
index 7517de224..213eea6fb 100644
--- a/Build/Sources/components/ActionButtonsComponent.jsx
+++ b/Build/Sources/components/ActionButtonsComponent.jsx
@@ -19,8 +19,82 @@ export const ActionButtonsComponent = (props) => {
console.log(props);
console.log("----------")
+ // modules => nodes from react flow
+ let modules = [];
+
+ // For each props.nodes, create a module object
+ props.nodes.forEach((node) => {
+ console.log("Node");
+ console.log(node);
+ let customActions = [];
+ node.data.customActions.map((action) => {
+ customActions.push(action);
+ });
+ console.log("Custom Actions");
+ console.log(customActions);
+
+ let module = {
+ "config": {
+ "position": [
+ node.position.x,
+ node.position.y
+ ]
+ },
+ "name": node.data.label,
+ "value": {
+ "actionGroup": {
+ "_default0_index": node.data.actions.actionIndex,
+ "_default1_list": node.data.actions.actionList,
+ "_default2_show": node.data.actions.actionShow,
+ "_default3_new_create": node.data.actions.actionNewCreate,
+ "_default4_edit_update": node.data.actions.actionEditUpdate,
+ "_default5_delete": node.data.actions.actionDelete,
+ "customActions": customActions
+ },
+ "name": node.data.label,
+ "objectsettings": {
+ "addDeletedField": node.data.addDeletedField,
+ "addHiddenField": node.data.addHiddenField,
+ "addStarttimeEndtimeFields": node.data.addStarttimeEndtimeFields,
+ "aggregateRoot": node.data.isAggregateRoot,
+ "categorizable": node.data.enableCategorization,
+ "description": node.data.description,
+ "mapToTable": node.data.mapToExistingTable,
+ "parentClass": node.data.extendExistingModelClass,
+ "sorting": node.data.enableSorting,
+ "type": "Entity",
+ "uid": "1173301976935"
+ },
+ "propertyGroup": {
+ "properties": [
+ {
+ "allowedFileTypes": "",
+ "maxItems": "1",
+ "propertyDescription": "",
+ "propertyIsExcludeField": true,
+ "propertyIsL10nModeExclude": false,
+ "propertyIsNullable": false,
+ "propertyIsRequired": false,
+ "propertyName": "titel",
+ "propertyType": "String",
+ "uid": "1357067104948"
+ }
+ ]
+ },
+ "relationGroup": {
+ "relations": []
+ }
+ }
+ };
+ modules.push(module);
+ });
+
+ console.log("-Nodes-")
+ console.log(props.nodes);
+ console.log("-Nodes END-")
+
let working = {
- "modules": [],
+ "modules": modules,
"properties": {
"backendModules": props.modules,
"description": props.properties.description || "",
@@ -30,9 +104,9 @@ export const ActionButtonsComponent = (props) => {
"dependsOn": props.properties.emConf.dependsOn || "",
"disableLocalization": props.properties.emConf.disableLocalization || false,
"disableVersioning": props.properties.emConf.disableVersioning || false,
- "generateDocumentationTemplate": props.properties.emConf.generateDocumentationTemplate || true,
- "generateEditorConfig": props.properties.emConf.generateEditorConfig || true,
- "generateEmptyGitRepository": props.properties.emConf.generateEmptyGitRepository || true,
+ "generateDocumentationTemplate": props.properties.emConf.generateDocumentationTemplate || false,
+ "generateEditorConfig": props.properties.emConf.generateEditorConfig || false,
+ "generateEmptyGitRepository": props.properties.emConf.generateEmptyGitRepository || false,
"sourceLanguage": props.properties.emConf.sourceLanguage || "en",
"state": props.properties.emConf.state || "alpha",
"targetVersion": `${props.properties.emConf.targetVersion}.0-${props.properties.emConf.targetVersion}.99` || "12.4.0",
@@ -61,6 +135,7 @@ export const ActionButtonsComponent = (props) => {
};
console.log("----------")
console.log("payload");
+ console.log(payload);
console.log("----------")
// TYPO3 will be available in the global scope
@@ -74,8 +149,12 @@ export const ActionButtonsComponent = (props) => {
.then(function (response) {
console.log("Successfull saved");
console.log(response.data.success);
+ if(response.data.success === null || response.data.success === undefined) {
+ top.TYPO3.Modal.confirm('Successfull saved but ...', '... Something went wrong on server side');
+ } else {
+ top.TYPO3.Modal.confirm('Successfull saved', response.data.success);
+ }
// eslint-disable-next-line no-restricted-globals,no-undef
- top.TYPO3.Modal.confirm('Successfull saved', response.data.success);
setSuccess(response);
})
.catch(function (error) {
@@ -106,18 +185,6 @@ export const ActionButtonsComponent = (props) => {
id="eb-btn-save"
>Open
-{/* */}
-
-{/* */}
)
}
diff --git a/Build/Sources/components/ReactFlow/CustomModelNode.jsx b/Build/Sources/components/ReactFlow/CustomModelNode.jsx
index e48728605..7b1a5e385 100644
--- a/Build/Sources/components/ReactFlow/CustomModelNode.jsx
+++ b/Build/Sources/components/ReactFlow/CustomModelNode.jsx
@@ -60,6 +60,11 @@ export const CustomModelNode = (props) => {
props.data.label = value;
}
+ const updateCustomAction = (index, value) => {
+ props.data.customActions[index] = value;
+ console.log(props.data);
+ }
+
return (
@@ -228,10 +233,15 @@ export const CustomModelNode = (props) => {
>
{
- customActions.map((action) => {
+ customActions.map((action, index) => {
return (
-
+ {
+ // Store custom Action to props.data.actions.customActions
+ updateCustomAction(index, e.target.value);
+ }}
+ />
)
})
diff --git a/Build/Sources/components/ReactFlow/ReactFlowComponent.jsx b/Build/Sources/components/ReactFlow/ReactFlowComponent.jsx
index 78dda3b29..831be3588 100644
--- a/Build/Sources/components/ReactFlow/ReactFlowComponent.jsx
+++ b/Build/Sources/components/ReactFlow/ReactFlowComponent.jsx
@@ -102,7 +102,6 @@ export const ReactFlowComponent = (props) => {
actionDelete: false,
},
customActions: [
-
],
properties: [],
relations: [],
diff --git a/Build/Sources/components/views/RightContentComponent.jsx b/Build/Sources/components/views/RightContentComponent.jsx
index eeca3ddbf..01b09dd38 100644
--- a/Build/Sources/components/views/RightContentComponent.jsx
+++ b/Build/Sources/components/views/RightContentComponent.jsx
@@ -1,9 +1,9 @@
import {ReactFlowComponent} from "../ReactFlow/ReactFlowComponent";
-export const RightContentComponent = () => {
+export const RightContentComponent = (props) => {
return (
)
}
diff --git a/Classes/Configuration/ExtensionBuilderConfigurationManager.php b/Classes/Configuration/ExtensionBuilderConfigurationManager.php
index 893ccc94e..d880ac532 100644
--- a/Classes/Configuration/ExtensionBuilderConfigurationManager.php
+++ b/Classes/Configuration/ExtensionBuilderConfigurationManager.php
@@ -125,7 +125,7 @@ public function getSettings(?array $typoscript = null): array
if (empty($settings['publicResourcesPath'])) {
$settings['publicResourcesPath'] = ExtensionManagementUtility::extPath('extension_builder') . 'Resources/Public/';
$settings['codeTemplateRootPaths'][] = ExtensionManagementUtility::extPath('extension_builder') . 'Resources/Private/CodeTemplates/Extbase/';
- $settings['codeTemplatePartialPaths'][] = ExtensionManagementUtility::extPath('extension_builder') . 'Resources/Private/Partials/';
+ $settings['codeTemplatePartialPaths'][] = ExtensionManagementUtility::extPath('extension_builder') . 'Resources/Private/CodeTemplates/Extbase/Partials/';
}
return $settings;
}
diff --git a/Classes/Domain/Validator/ExtensionValidator.php b/Classes/Domain/Validator/ExtensionValidator.php
index 80c067f4a..a475f563c 100644
--- a/Classes/Domain/Validator/ExtensionValidator.php
+++ b/Classes/Domain/Validator/ExtensionValidator.php
@@ -428,7 +428,7 @@ public function validateConfigurationFormat(array $configuration): array
$propertyNames = [];
if (isset($domainObjectConfiguration['value']['propertyGroup']['properties'])) {
foreach ($domainObjectConfiguration['value']['propertyGroup']['properties'] as $property) {
- if (in_array($property['propertyName'], $propertyNames, true)) {
+ if (in_array($property['propertyName'] ?? '', $propertyNames, true)) {
$this->validationResult['errors'][] = new ExtensionException(
'Property "' . $property['propertyName'] . '" of Model "' . $domainObjectConfiguration['value']['name'] . '" exists twice.',
self::ERROR_PROPERTY_DUPLICATE
diff --git a/Resources/Private/CodeTemplates/Extbase/Configuration/Backend/Modules.phpt b/Resources/Private/CodeTemplates/Extbase/Configuration/Backend/Modules.phpt
index 62a8e4fa5..07e4d5dbf 100644
--- a/Resources/Private/CodeTemplates/Extbase/Configuration/Backend/Modules.phpt
+++ b/Resources/Private/CodeTemplates/Extbase/Configuration/Backend/Modules.phpt
@@ -2,23 +2,23 @@
return [
'{backendModule.key}' => [
- 'parent' => '{backendModule.mainModule}',
- 'position' => ['bottom'],
- 'access' => 'user',
- 'workspaces' => 'live',
- 'path' => '/module/{extension.vendorName}/{backendModule.key}',
- 'labels' => 'LLL:EXT:{extension.extensionKey}/Resources/Private/Language/locallang_{backendModule.key}.xlf',
- 'extensionName' => '{extension.extensionName}',
- 'controllerActions' => [
- ModuleController::class => [
- 'flash','tree','clipboard','links','fileReference','fileReferenceCreate',
- ],
+ 'parent' => '{backendModule.mainModule}',
+ 'position' => ['bottom'],
+ 'access' => 'user',
+ 'workspaces' => 'live',
+ 'path' => '/module/{extension.vendorName}/{backendModule.key}',
+ 'labels' => 'LLL:EXT:{extension.extensionKey}/Resources/Private/Language/locallang_{backendModule.key}.xlf',
+ 'extensionName' => '{extension.extensionName}',
+ 'controllerActions' => [
+ ModuleController::class => [
+ 'flash','tree','clipboard','links','fileReference','fileReferenceCreate',
],
- 'routes' => [
- '_default' => [
- 'target' => 'test',
- ],
+ ],
+ 'routes' => [
+ '_default' => [
+ 'target' => 'test',
],
],
-
+ ],
+
];
diff --git a/Resources/Public/JavaScript/main.js b/Resources/Public/JavaScript/main.js
index 26e61e851..c75bd08e1 100644
--- a/Resources/Public/JavaScript/main.js
+++ b/Resources/Public/JavaScript/main.js
@@ -1,2 +1,2 @@
/*! For license information please see main.js.LICENSE.txt */
-!function(c,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var a in n)("object"==typeof exports?exports:c)[a]=n[a]}}(self,(function(){return function(){var c,e,n={703:function(c,e,n){"use strict";var a=n(414);function t(){}function i(){}i.resetWarningCache=t,c.exports=function(){function c(c,e,n,t,i,r){if(r!==a){var o=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 o.name="Invariant Violation",o}}function e(){return c}c.isRequired=c;var n={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:e,element:c,elementType:c,instanceOf:e,node:c,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:t};return n.PropTypes=n,n}},697:function(c,e,n){c.exports=n(703)()},414:function(c){"use strict";c.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},448:function(c,e,n){"use strict";var a=n(294),t=n(840);function i(c){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+c,n=1;ne}return!1}(e,n,t,a)&&(n=null),a||null===t?function(c){return!!u.call(h,c)||!u.call(d,c)&&(m.test(c)?h[c]=!0:(d[c]=!0,!1))}(e)&&(null===n?c.removeAttribute(e):c.setAttribute(e,""+n)):t.mustUseProperty?c[t.propertyName]=null===n?3!==t.type&&"":n:(e=t.attributeName,a=t.attributeNamespace,null===n?c.removeAttribute(e):(n=3===(t=t.type)||4===t&&!0===n?"":""+n,a?c.setAttributeNS(a,e,n):c.setAttribute(e,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(c){var e=c.replace(v,H);z[e]=new p(e,1,!1,c,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(c){var e=c.replace(v,H);z[e]=new p(e,1,!1,c,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(c){var e=c.replace(v,H);z[e]=new p(e,1,!1,c,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(c){z[c]=new p(c,1,!1,c.toLowerCase(),null,!1,!1)})),z.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(c){z[c]=new p(c,1,!1,c.toLowerCase(),null,!0,!0)}));var V=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,g=Symbol.for("react.element"),C=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),N=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),E=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function _(c){return null===c||"object"!=typeof c?null:"function"==typeof(c=j&&c[j]||c["@@iterator"])?c:null}var O,T=Object.assign;function R(c){if(void 0===O)try{throw Error()}catch(c){var e=c.stack.trim().match(/\n( *(at )?)/);O=e&&e[1]||""}return"\n"+O+c}var D=!1;function F(c,e){if(!c||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var a=c}Reflect.construct(c,[],e)}else{try{e.call()}catch(c){a=c}c.call(e.prototype)}else{try{throw Error()}catch(c){a=c}c()}}catch(e){if(e&&a&&"string"==typeof e.stack){for(var t=e.stack.split("\n"),i=a.stack.split("\n"),r=t.length-1,o=i.length-1;1<=r&&0<=o&&t[r]!==i[o];)o--;for(;1<=r&&0<=o;r--,o--)if(t[r]!==i[o]){if(1!==r||1!==o)do{if(r--,0>--o||t[r]!==i[o]){var l="\n"+t[r].replace(" at new "," at ");return c.displayName&&l.includes("")&&(l=l.replace("",c.displayName)),l}}while(1<=r&&0<=o);break}}}finally{D=!1,Error.prepareStackTrace=n}return(c=c?c.displayName||c.name:"")?R(c):""}function B(c){switch(c.tag){case 5:return R(c.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return c=F(c.type,!1);case 11:return c=F(c.type.render,!1);case 1:return c=F(c.type,!0);default:return""}}function I(c){if(null==c)return null;if("function"==typeof c)return c.displayName||c.name||null;if("string"==typeof c)return c;switch(c){case b:return"Fragment";case C:return"Portal";case L:return"Profiler";case x:return"StrictMode";case S:return"Suspense";case k:return"SuspenseList"}if("object"==typeof c)switch(c.$$typeof){case N:return(c.displayName||"Context")+".Consumer";case y:return(c._context.displayName||"Context")+".Provider";case w:var e=c.render;return(c=c.displayName)||(c=""!==(c=e.displayName||e.name||"")?"ForwardRef("+c+")":"ForwardRef"),c;case A:return null!==(e=c.displayName||null)?e:I(c.type)||"Memo";case E:e=c._payload,c=c._init;try{return I(c(e))}catch(c){}}return null}function q(c){var e=c.type;switch(c.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=(c=e.render).displayName||c.name||"",e.displayName||(""!==c?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return I(e);case 8:return e===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e}return null}function U(c){switch(typeof c){case"boolean":case"number":case"string":case"undefined":case"object":return c;default:return""}}function Z(c){var e=c.type;return(c=c.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===e||"radio"===e)}function W(c){c._valueTracker||(c._valueTracker=function(c){var e=Z(c)?"checked":"value",n=Object.getOwnPropertyDescriptor(c.constructor.prototype,e),a=""+c[e];if(!c.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var t=n.get,i=n.set;return Object.defineProperty(c,e,{configurable:!0,get:function(){return t.call(this)},set:function(c){a=""+c,i.call(this,c)}}),Object.defineProperty(c,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){c._valueTracker=null,delete c[e]}}}}(c))}function $(c){if(!c)return!1;var e=c._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return c&&(a=Z(c)?c.checked?"true":"false":c.value),(c=a)!==n&&(e.setValue(c),!0)}function G(c){if(void 0===(c=c||("undefined"!=typeof document?document:void 0)))return null;try{return c.activeElement||c.body}catch(e){return c.body}}function Y(c,e){var n=e.checked;return T({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:c._wrapperState.initialChecked})}function X(c,e){var n=null==e.defaultValue?"":e.defaultValue,a=null!=e.checked?e.checked:e.defaultChecked;n=U(null!=e.value?e.value:n),c._wrapperState={initialChecked:a,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function K(c,e){null!=(e=e.checked)&&M(c,"checked",e,!1)}function Q(c,e){K(c,e);var n=U(e.value),a=e.type;if(null!=n)"number"===a?(0===n&&""===c.value||c.value!=n)&&(c.value=""+n):c.value!==""+n&&(c.value=""+n);else if("submit"===a||"reset"===a)return void c.removeAttribute("value");e.hasOwnProperty("value")?cc(c,e.type,n):e.hasOwnProperty("defaultValue")&&cc(c,e.type,U(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(c.defaultChecked=!!e.defaultChecked)}function J(c,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var a=e.type;if(!("submit"!==a&&"reset"!==a||void 0!==e.value&&null!==e.value))return;e=""+c._wrapperState.initialValue,n||e===c.value||(c.value=e),c.defaultValue=e}""!==(n=c.name)&&(c.name=""),c.defaultChecked=!!c._wrapperState.initialChecked,""!==n&&(c.name=n)}function cc(c,e,n){"number"===e&&G(c.ownerDocument)===c||(null==n?c.defaultValue=""+c._wrapperState.initialValue:c.defaultValue!==""+n&&(c.defaultValue=""+n))}var ec=Array.isArray;function nc(c,e,n,a){if(c=c.options,e){e={};for(var t=0;t"+e.valueOf().toString()+"",e=sc.firstChild;c.firstChild;)c.removeChild(c.firstChild);for(;e.firstChild;)c.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(c,e,n,a){MSApp.execUnsafeLocalFunction((function(){return fc(c,e)}))}:fc);function mc(c,e){if(e){var n=c.firstChild;if(n&&n===c.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}c.textContent=e}var dc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hc=["Webkit","ms","Moz","O"];function pc(c,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||dc.hasOwnProperty(c)&&dc[c]?(""+e).trim():e+"px"}function zc(c,e){for(var n in c=c.style,e)if(e.hasOwnProperty(n)){var a=0===n.indexOf("--"),t=pc(n,e[n],a);"float"===n&&(n="cssFloat"),a?c.setProperty(n,t):c[n]=t}}Object.keys(dc).forEach((function(c){hc.forEach((function(e){e=e+c.charAt(0).toUpperCase()+c.substring(1),dc[e]=dc[c]}))}));var vc=T({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 Hc(c,e){if(e){if(vc[c]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(i(137,c));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(i(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(i(62))}}function Mc(c,e){if(-1===c.indexOf("-"))return"string"==typeof e.is;switch(c){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vc=null;function gc(c){return(c=c.target||c.srcElement||window).correspondingUseElement&&(c=c.correspondingUseElement),3===c.nodeType?c.parentNode:c}var Cc=null,bc=null,xc=null;function Lc(c){if(c=Mt(c)){if("function"!=typeof Cc)throw Error(i(280));var e=c.stateNode;e&&(e=gt(e),Cc(c.stateNode,c.type,e))}}function yc(c){bc?xc?xc.push(c):xc=[c]:bc=c}function Nc(){if(bc){var c=bc,e=xc;if(xc=bc=null,Lc(c),e)for(c=0;c>>=0,0===c?32:31-(oe(c)/le|0)|0},oe=Math.log,le=Math.LN2;var se=64,fe=4194304;function ue(c){switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&c;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&c;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function me(c,e){var n=c.pendingLanes;if(0===n)return 0;var a=0,t=c.suspendedLanes,i=c.pingedLanes,r=268435455&n;if(0!==r){var o=r&~t;0!==o?a=ue(o):0!==(i&=r)&&(a=ue(i))}else 0!==(r=n&~t)?a=ue(r):0!==i&&(a=ue(i));if(0===a)return 0;if(0!==e&&e!==a&&0==(e&t)&&((t=a&-a)>=(i=e&-e)||16===t&&0!=(4194240&i)))return e;if(0!=(4&a)&&(a|=16&n),0!==(e=c.entangledLanes))for(c=c.entanglements,e&=a;0n;n++)e.push(c);return e}function ve(c,e,n){c.pendingLanes|=e,536870912!==e&&(c.suspendedLanes=0,c.pingedLanes=0),(c=c.eventTimes)[e=31-re(e)]=n}function He(c,e){var n=c.entangledLanes|=e;for(c=c.entanglements;n;){var a=31-re(n),t=1<=_n),Rn=String.fromCharCode(32),Dn=!1;function Fn(c,e){switch(c){case"keyup":return-1!==Pn.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(c){return"object"==typeof(c=c.detail)&&"data"in c?c.data:null}var In=!1;var qn={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 Un(c){var e=c&&c.nodeName&&c.nodeName.toLowerCase();return"input"===e?!!qn[c.type]:"textarea"===e}function Zn(c,e,n,a){yc(a),0<(e=Wa(e,"onChange")).length&&(n=new fn("onChange","change",null,n,a),c.push({event:n,listeners:e}))}var Wn=null,$n=null;function Gn(c){Ra(c,0)}function Yn(c){if($(Vt(c)))return c}function Xn(c,e){if("change"===c)return e}var Kn=!1;if(f){var Qn;if(f){var Jn="oninput"in document;if(!Jn){var ca=document.createElement("div");ca.setAttribute("oninput","return;"),Jn="function"==typeof ca.oninput}Qn=Jn}else Qn=!1;Kn=Qn&&(!document.documentMode||9=e)return{node:a,offset:e-c};c=n}c:{for(;a;){if(a.nextSibling){a=a.nextSibling;break c}a=a.parentNode}a=void 0}a=sa(a)}}function ua(c,e){return!(!c||!e)&&(c===e||(!c||3!==c.nodeType)&&(e&&3===e.nodeType?ua(c,e.parentNode):"contains"in c?c.contains(e):!!c.compareDocumentPosition&&!!(16&c.compareDocumentPosition(e))))}function ma(){for(var c=window,e=G();e instanceof c.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(c){n=!1}if(!n)break;e=G((c=e.contentWindow).document)}return e}function da(c){var e=c&&c.nodeName&&c.nodeName.toLowerCase();return e&&("input"===e&&("text"===c.type||"search"===c.type||"tel"===c.type||"url"===c.type||"password"===c.type)||"textarea"===e||"true"===c.contentEditable)}function ha(c){var e=ma(),n=c.focusedElem,a=c.selectionRange;if(e!==n&&n&&n.ownerDocument&&ua(n.ownerDocument.documentElement,n)){if(null!==a&&da(n))if(e=a.start,void 0===(c=a.end)&&(c=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(c,n.value.length);else if((c=(e=n.ownerDocument||document)&&e.defaultView||window).getSelection){c=c.getSelection();var t=n.textContent.length,i=Math.min(a.start,t);a=void 0===a.end?i:Math.min(a.end,t),!c.extend&&i>a&&(t=a,a=i,i=t),t=fa(n,i);var r=fa(n,a);t&&r&&(1!==c.rangeCount||c.anchorNode!==t.node||c.anchorOffset!==t.offset||c.focusNode!==r.node||c.focusOffset!==r.offset)&&((e=e.createRange()).setStart(t.node,t.offset),c.removeAllRanges(),i>a?(c.addRange(e),c.extend(r.node,r.offset)):(e.setEnd(r.node,r.offset),c.addRange(e)))}for(e=[],c=n;c=c.parentNode;)1===c.nodeType&&e.push({element:c,left:c.scrollLeft,top:c.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n=document.documentMode,za=null,va=null,Ha=null,Ma=!1;function Va(c,e,n){var a=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Ma||null==za||za!==G(a)||("selectionStart"in(a=za)&&da(a)?a={start:a.selectionStart,end:a.selectionEnd}:a={anchorNode:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset},Ha&&la(Ha,a)||(Ha=a,0<(a=Wa(va,"onSelect")).length&&(e=new fn("onSelect","select",null,e,n),c.push({event:e,listeners:a}),e.target=za)))}function ga(c,e){var n={};return n[c.toLowerCase()]=e.toLowerCase(),n["Webkit"+c]="webkit"+e,n["Moz"+c]="moz"+e,n}var Ca={animationend:ga("Animation","AnimationEnd"),animationiteration:ga("Animation","AnimationIteration"),animationstart:ga("Animation","AnimationStart"),transitionend:ga("Transition","TransitionEnd")},ba={},xa={};function La(c){if(ba[c])return ba[c];if(!Ca[c])return c;var e,n=Ca[c];for(e in n)if(n.hasOwnProperty(e)&&e in xa)return ba[c]=n[e];return c}f&&(xa=document.createElement("div").style,"AnimationEvent"in window||(delete Ca.animationend.animation,delete Ca.animationiteration.animation,delete Ca.animationstart.animation),"TransitionEvent"in window||delete Ca.transitionend.transition);var ya=La("animationend"),Na=La("animationiteration"),wa=La("animationstart"),Sa=La("transitionend"),ka=new Map,Aa="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ea(c,e){ka.set(c,e),l(e,[c])}for(var Pa=0;Pabt||(c.current=Ct[bt],Ct[bt]=null,bt--)}function yt(c,e){bt++,Ct[bt]=c.current,c.current=e}var Nt={},wt=xt(Nt),St=xt(!1),kt=Nt;function At(c,e){var n=c.type.contextTypes;if(!n)return Nt;var a=c.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===e)return a.__reactInternalMemoizedMaskedChildContext;var t,i={};for(t in n)i[t]=e[t];return a&&((c=c.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,c.__reactInternalMemoizedMaskedChildContext=i),i}function Et(c){return null!=(c=c.childContextTypes)}function Pt(){Lt(St),Lt(wt)}function jt(c,e,n){if(wt.current!==Nt)throw Error(i(168));yt(wt,e),yt(St,n)}function _t(c,e,n){var a=c.stateNode;if(e=e.childContextTypes,"function"!=typeof a.getChildContext)return n;for(var t in a=a.getChildContext())if(!(t in e))throw Error(i(108,q(c)||"Unknown",t));return T({},n,a)}function Ot(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||Nt,kt=wt.current,yt(wt,c),yt(St,St.current),!0}function Tt(c,e,n){var a=c.stateNode;if(!a)throw Error(i(169));n?(c=_t(c,e,kt),a.__reactInternalMemoizedMergedChildContext=c,Lt(St),Lt(wt),yt(wt,c)):Lt(St),yt(St,n)}var Rt=null,Dt=!1,Ft=!1;function Bt(c){null===Rt?Rt=[c]:Rt.push(c)}function It(){if(!Ft&&null!==Rt){Ft=!0;var c=0,e=Me;try{var n=Rt;for(Me=1;c>=r,t-=r,Xt=1<<32-re(e)+t|n<p?(z=u,u=null):z=u.sibling;var v=d(t,u,o[p],l);if(null===v){null===u&&(u=z);break}c&&u&&null===v.alternate&&e(t,u),i=r(v,i,p),null===f?s=v:f.sibling=v,f=v,u=z}if(p===o.length)return n(t,u),ti&&Qt(t,p),s;if(null===u){for(;pz?(v=p,p=null):v=p.sibling;var M=d(t,p,H.value,s);if(null===M){null===p&&(p=v);break}c&&p&&null===M.alternate&&e(t,p),o=r(M,o,z),null===u?f=M:u.sibling=M,u=M,p=v}if(H.done)return n(t,p),ti&&Qt(t,z),f;if(null===p){for(;!H.done;z++,H=l.next())null!==(H=m(t,H.value,s))&&(o=r(H,o,z),null===u?f=H:u.sibling=H,u=H);return ti&&Qt(t,z),f}for(p=a(t,p);!H.done;z++,H=l.next())null!==(H=h(p,t,z,H.value,s))&&(c&&null!==H.alternate&&p.delete(null===H.key?z:H.key),o=r(H,o,z),null===u?f=H:u.sibling=H,u=H);return c&&p.forEach((function(c){return e(t,c)})),ti&&Qt(t,z),f}return function c(a,i,r,l){if("object"==typeof r&&null!==r&&r.type===b&&null===r.key&&(r=r.props.children),"object"==typeof r&&null!==r){switch(r.$$typeof){case g:c:{for(var s=r.key,f=i;null!==f;){if(f.key===s){if((s=r.type)===b){if(7===f.tag){n(a,f.sibling),(i=t(f,r.props.children)).return=a,a=i;break c}}else if(f.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===E&&Gi(s)===f.type){n(a,f.sibling),(i=t(f,r.props)).ref=Wi(a,f,r),i.return=a,a=i;break c}n(a,f);break}e(a,f),f=f.sibling}r.type===b?((i=Os(r.props.children,a.mode,l,r.key)).return=a,a=i):((l=_s(r.type,r.key,r.props,null,a.mode,l)).ref=Wi(a,i,r),l.return=a,a=l)}return o(a);case C:c:{for(f=r.key;null!==i;){if(i.key===f){if(4===i.tag&&i.stateNode.containerInfo===r.containerInfo&&i.stateNode.implementation===r.implementation){n(a,i.sibling),(i=t(i,r.children||[])).return=a,a=i;break c}n(a,i);break}e(a,i),i=i.sibling}(i=Ds(r,a.mode,l)).return=a,a=i}return o(a);case E:return c(a,i,(f=r._init)(r._payload),l)}if(ec(r))return p(a,i,r,l);if(_(r))return z(a,i,r,l);$i(a,r)}return"string"==typeof r&&""!==r||"number"==typeof r?(r=""+r,null!==i&&6===i.tag?(n(a,i.sibling),(i=t(i,r)).return=a,a=i):(n(a,i),(i=Rs(r,a.mode,l)).return=a,a=i),o(a)):n(a,i)}}var Xi=Yi(!0),Ki=Yi(!1),Qi={},Ji=xt(Qi),cr=xt(Qi),er=xt(Qi);function nr(c){if(c===Qi)throw Error(i(174));return c}function ar(c,e){switch(yt(er,e),yt(cr,c),yt(Ji,Qi),c=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:lc(null,"");break;default:e=lc(e=(c=8===c?e.parentNode:e).namespaceURI||null,c=c.tagName)}Lt(Ji),yt(Ji,e)}function tr(){Lt(Ji),Lt(cr),Lt(er)}function ir(c){nr(er.current);var e=nr(Ji.current),n=lc(e,c.type);e!==n&&(yt(cr,c),yt(Ji,n))}function rr(c){cr.current===c&&(Lt(Ji),Lt(cr))}var or=xt(0);function lr(c){for(var e=c;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(128&e.flags))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===c)break;for(;null===e.sibling;){if(null===e.return||e.return===c)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var sr=[];function fr(){for(var c=0;cn?n:4,c(!0);var a=mr.transition;mr.transition={};try{c(!1),e()}finally{Me=n,mr.transition=a}}function Jr(){return yr().memoizedState}function co(c,e,n){var a=ns(c);if(n={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null},no(c))ao(e,n);else if(null!==(n=wi(c,e,n,a))){as(n,c,a,es()),to(n,e,a)}}function eo(c,e,n){var a=ns(c),t={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(no(c))ao(e,t);else{var i=c.alternate;if(0===c.lanes&&(null===i||0===i.lanes)&&null!==(i=e.lastRenderedReducer))try{var r=e.lastRenderedState,o=i(r,n);if(t.hasEagerState=!0,t.eagerState=o,oa(o,r)){var l=e.interleaved;return null===l?(t.next=t,Ni(e)):(t.next=l.next,l.next=t),void(e.interleaved=t)}}catch(c){}null!==(n=wi(c,e,t,a))&&(as(n,c,a,t=es()),to(n,e,a))}}function no(c){var e=c.alternate;return c===hr||null!==e&&e===hr}function ao(c,e){Hr=vr=!0;var n=c.pending;null===n?e.next=e:(e.next=n.next,n.next=e),c.pending=e}function to(c,e,n){if(0!=(4194240&n)){var a=e.lanes;n|=a&=c.pendingLanes,e.lanes=n,He(c,n)}}var io={readContext:Li,useCallback:gr,useContext:gr,useEffect:gr,useImperativeHandle:gr,useInsertionEffect:gr,useLayoutEffect:gr,useMemo:gr,useReducer:gr,useRef:gr,useState:gr,useDebugValue:gr,useDeferredValue:gr,useTransition:gr,useMutableSource:gr,useSyncExternalStore:gr,useId:gr,unstable_isNewReconciler:!1},ro={readContext:Li,useCallback:function(c,e){return Lr().memoizedState=[c,void 0===e?null:e],c},useContext:Li,useEffect:Ir,useImperativeHandle:function(c,e,n){return n=null!=n?n.concat([c]):null,Fr(4194308,4,Wr.bind(null,e,c),n)},useLayoutEffect:function(c,e){return Fr(4194308,4,c,e)},useInsertionEffect:function(c,e){return Fr(4,2,c,e)},useMemo:function(c,e){var n=Lr();return e=void 0===e?null:e,c=c(),n.memoizedState=[c,e],c},useReducer:function(c,e,n){var a=Lr();return e=void 0!==n?n(e):e,a.memoizedState=a.baseState=e,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:e},a.queue=c,c=c.dispatch=co.bind(null,hr,c),[a.memoizedState,c]},useRef:function(c){return c={current:c},Lr().memoizedState=c},useState:Tr,useDebugValue:Gr,useDeferredValue:function(c){return Lr().memoizedState=c},useTransition:function(){var c=Tr(!1),e=c[0];return c=Qr.bind(null,c[1]),Lr().memoizedState=c,[e,c]},useMutableSource:function(){},useSyncExternalStore:function(c,e,n){var a=hr,t=Lr();if(ti){if(void 0===n)throw Error(i(407));n=n()}else{if(n=e(),null===kl)throw Error(i(349));0!=(30&dr)||Er(a,e,n)}t.memoizedState=n;var r={value:n,getSnapshot:e};return t.queue=r,Ir(jr.bind(null,a,r,c),[c]),a.flags|=2048,Rr(9,Pr.bind(null,a,r,n,e),void 0,null),n},useId:function(){var c=Lr(),e=kl.identifierPrefix;if(ti){var n=Kt;e=":"+e+"R"+(n=(Xt&~(1<<32-re(Xt)-1)).toString(32)+n),0<(n=Mr++)&&(e+="H"+n.toString(32)),e+=":"}else e=":"+e+"r"+(n=Vr++).toString(32)+":";return c.memoizedState=e},unstable_isNewReconciler:!1},oo={readContext:Li,useCallback:Yr,useContext:Li,useEffect:qr,useImperativeHandle:$r,useInsertionEffect:Ur,useLayoutEffect:Zr,useMemo:Xr,useReducer:wr,useRef:Dr,useState:function(){return wr(Nr)},useDebugValue:Gr,useDeferredValue:function(c){return Kr(yr(),pr.memoizedState,c)},useTransition:function(){return[wr(Nr)[0],yr().memoizedState]},useMutableSource:kr,useSyncExternalStore:Ar,useId:Jr,unstable_isNewReconciler:!1},lo={readContext:Li,useCallback:Yr,useContext:Li,useEffect:qr,useImperativeHandle:$r,useInsertionEffect:Ur,useLayoutEffect:Zr,useMemo:Xr,useReducer:Sr,useRef:Dr,useState:function(){return Sr(Nr)},useDebugValue:Gr,useDeferredValue:function(c){var e=yr();return null===pr?e.memoizedState=c:Kr(e,pr.memoizedState,c)},useTransition:function(){return[Sr(Nr)[0],yr().memoizedState]},useMutableSource:kr,useSyncExternalStore:Ar,useId:Jr,unstable_isNewReconciler:!1};function so(c,e){try{var n="",a=e;do{n+=B(a),a=a.return}while(a);var t=n}catch(c){t="\nError generating stack: "+c.message+"\n"+c.stack}return{value:c,source:e,stack:t,digest:null}}function fo(c,e,n){return{value:c,source:null,stack:null!=n?n:null,digest:null!=e?e:null}}function uo(c,e){try{console.error(e.value)}catch(c){setTimeout((function(){throw c}))}}var mo="function"==typeof WeakMap?WeakMap:Map;function ho(c,e,n){(n=Pi(-1,n)).tag=3,n.payload={element:null};var a=e.value;return n.callback=function(){Zl||(Zl=!0,Wl=a),uo(0,e)},n}function po(c,e,n){(n=Pi(-1,n)).tag=3;var a=c.type.getDerivedStateFromError;if("function"==typeof a){var t=e.value;n.payload=function(){return a(t)},n.callback=function(){uo(0,e)}}var i=c.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){uo(0,e),"function"!=typeof a&&(null===$l?$l=new Set([this]):$l.add(this));var c=e.stack;this.componentDidCatch(e.value,{componentStack:null!==c?c:""})}),n}function zo(c,e,n){var a=c.pingCache;if(null===a){a=c.pingCache=new mo;var t=new Set;a.set(e,t)}else void 0===(t=a.get(e))&&(t=new Set,a.set(e,t));t.has(n)||(t.add(n),c=ys.bind(null,c,e,n),e.then(c,c))}function vo(c){do{var e;if((e=13===c.tag)&&(e=null===(e=c.memoizedState)||null!==e.dehydrated),e)return c;c=c.return}while(null!==c);return null}function Ho(c,e,n,a,t){return 0==(1&c.mode)?(c===e?c.flags|=65536:(c.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((e=Pi(-1,1)).tag=2,ji(n,e,1))),n.lanes|=1),c):(c.flags|=65536,c.lanes=t,c)}var Mo=V.ReactCurrentOwner,Vo=!1;function go(c,e,n,a){e.child=null===c?Ki(e,null,n,a):Xi(e,c.child,n,a)}function Co(c,e,n,a,t){n=n.render;var i=e.ref;return xi(e,t),a=br(c,e,n,a,i,t),n=xr(),null===c||Vo?(ti&&n&&ci(e),e.flags|=1,go(c,e,a,t),e.child):(e.updateQueue=c.updateQueue,e.flags&=-2053,c.lanes&=~t,Zo(c,e,t))}function bo(c,e,n,a,t){if(null===c){var i=n.type;return"function"!=typeof i||Ps(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((c=_s(n.type,null,a,e,e.mode,t)).ref=e.ref,c.return=e,e.child=c):(e.tag=15,e.type=i,xo(c,e,i,a,t))}if(i=c.child,0==(c.lanes&t)){var r=i.memoizedProps;if((n=null!==(n=n.compare)?n:la)(r,a)&&c.ref===e.ref)return Zo(c,e,t)}return e.flags|=1,(c=js(i,a)).ref=e.ref,c.return=e,e.child=c}function xo(c,e,n,a,t){if(null!==c){var i=c.memoizedProps;if(la(i,a)&&c.ref===e.ref){if(Vo=!1,e.pendingProps=a=i,0==(c.lanes&t))return e.lanes=c.lanes,Zo(c,e,t);0!=(131072&c.flags)&&(Vo=!0)}}return No(c,e,n,a,t)}function Lo(c,e,n){var a=e.pendingProps,t=a.children,i=null!==c?c.memoizedState:null;if("hidden"===a.mode)if(0==(1&e.mode))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(jl,Pl),Pl|=n;else{if(0==(1073741824&n))return c=null!==i?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:c,cachePool:null,transitions:null},e.updateQueue=null,yt(jl,Pl),Pl|=c,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=null!==i?i.baseLanes:n,yt(jl,Pl),Pl|=a}else null!==i?(a=i.baseLanes|n,e.memoizedState=null):a=n,yt(jl,Pl),Pl|=a;return go(c,e,t,n),e.child}function yo(c,e){var n=e.ref;(null===c&&null!==n||null!==c&&c.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function No(c,e,n,a,t){var i=Et(n)?kt:wt.current;return i=At(e,i),xi(e,t),n=br(c,e,n,a,i,t),a=xr(),null===c||Vo?(ti&&a&&ci(e),e.flags|=1,go(c,e,n,t),e.child):(e.updateQueue=c.updateQueue,e.flags&=-2053,c.lanes&=~t,Zo(c,e,t))}function wo(c,e,n,a,t){if(Et(n)){var i=!0;Ot(e)}else i=!1;if(xi(e,t),null===e.stateNode)Uo(c,e),qi(e,n,a),Zi(e,n,a,t),a=!0;else if(null===c){var r=e.stateNode,o=e.memoizedProps;r.props=o;var l=r.context,s=n.contextType;"object"==typeof s&&null!==s?s=Li(s):s=At(e,s=Et(n)?kt:wt.current);var f=n.getDerivedStateFromProps,u="function"==typeof f||"function"==typeof r.getSnapshotBeforeUpdate;u||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(o!==a||l!==s)&&Ui(e,r,a,s),ki=!1;var m=e.memoizedState;r.state=m,Ti(e,a,r,t),l=e.memoizedState,o!==a||m!==l||St.current||ki?("function"==typeof f&&(Fi(e,n,f,a),l=e.memoizedState),(o=ki||Ii(e,n,o,a,m,l,s))?(u||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(e.flags|=4194308)):("function"==typeof r.componentDidMount&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=l),r.props=a,r.state=l,r.context=s,a=o):("function"==typeof r.componentDidMount&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,Ei(c,e),o=e.memoizedProps,s=e.type===e.elementType?o:zi(e.type,o),r.props=s,u=e.pendingProps,m=r.context,"object"==typeof(l=n.contextType)&&null!==l?l=Li(l):l=At(e,l=Et(n)?kt:wt.current);var d=n.getDerivedStateFromProps;(f="function"==typeof d||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(o!==u||m!==l)&&Ui(e,r,a,l),ki=!1,m=e.memoizedState,r.state=m,Ti(e,a,r,t);var h=e.memoizedState;o!==u||m!==h||St.current||ki?("function"==typeof d&&(Fi(e,n,d,a),h=e.memoizedState),(s=ki||Ii(e,n,s,a,m,h,l)||!1)?(f||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(a,h,l),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(a,h,l)),"function"==typeof r.componentDidUpdate&&(e.flags|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!=typeof r.componentDidUpdate||o===c.memoizedProps&&m===c.memoizedState||(e.flags|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===c.memoizedProps&&m===c.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=h),r.props=a,r.state=h,r.context=l,a=s):("function"!=typeof r.componentDidUpdate||o===c.memoizedProps&&m===c.memoizedState||(e.flags|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===c.memoizedProps&&m===c.memoizedState||(e.flags|=1024),a=!1)}return So(c,e,n,a,i,t)}function So(c,e,n,a,t,i){yo(c,e);var r=0!=(128&e.flags);if(!a&&!r)return t&&Tt(e,n,!1),Zo(c,e,i);a=e.stateNode,Mo.current=e;var o=r&&"function"!=typeof n.getDerivedStateFromError?null:a.render();return e.flags|=1,null!==c&&r?(e.child=Xi(e,c.child,null,i),e.child=Xi(e,null,o,i)):go(c,e,o,i),e.memoizedState=a.state,t&&Tt(e,n,!0),e.child}function ko(c){var e=c.stateNode;e.pendingContext?jt(0,e.pendingContext,e.pendingContext!==e.context):e.context&&jt(0,e.context,!1),ar(c,e.containerInfo)}function Ao(c,e,n,a,t){return di(),hi(t),e.flags|=256,go(c,e,n,a),e.child}var Eo,Po,jo,_o,Oo={dehydrated:null,treeContext:null,retryLane:0};function To(c){return{baseLanes:c,cachePool:null,transitions:null}}function Ro(c,e,n){var a,t=e.pendingProps,r=or.current,o=!1,l=0!=(128&e.flags);if((a=l)||(a=(null===c||null!==c.memoizedState)&&0!=(2&r)),a?(o=!0,e.flags&=-129):null!==c&&null===c.memoizedState||(r|=1),yt(or,1&r),null===c)return si(e),null!==(c=e.memoizedState)&&null!==(c=c.dehydrated)?(0==(1&e.mode)?e.lanes=1:"$!"===c.data?e.lanes=8:e.lanes=1073741824,null):(l=t.children,c=t.fallback,o?(t=e.mode,o=e.child,l={mode:"hidden",children:l},0==(1&t)&&null!==o?(o.childLanes=0,o.pendingProps=l):o=Ts(l,t,0,null),c=Os(c,t,n,null),o.return=e,c.return=e,o.sibling=c,e.child=o,e.child.memoizedState=To(n),e.memoizedState=Oo,c):Do(e,l));if(null!==(r=c.memoizedState)&&null!==(a=r.dehydrated))return function(c,e,n,a,t,r,o){if(n)return 256&e.flags?(e.flags&=-257,Fo(c,e,o,a=fo(Error(i(422))))):null!==e.memoizedState?(e.child=c.child,e.flags|=128,null):(r=a.fallback,t=e.mode,a=Ts({mode:"visible",children:a.children},t,0,null),(r=Os(r,t,o,null)).flags|=2,a.return=e,r.return=e,a.sibling=r,e.child=a,0!=(1&e.mode)&&Xi(e,c.child,null,o),e.child.memoizedState=To(o),e.memoizedState=Oo,r);if(0==(1&e.mode))return Fo(c,e,o,null);if("$!"===t.data){if(a=t.nextSibling&&t.nextSibling.dataset)var l=a.dgst;return a=l,Fo(c,e,o,a=fo(r=Error(i(419)),a,void 0))}if(l=0!=(o&c.childLanes),Vo||l){if(null!==(a=kl)){switch(o&-o){case 4:t=2;break;case 16:t=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:t=32;break;case 536870912:t=268435456;break;default:t=0}0!==(t=0!=(t&(a.suspendedLanes|o))?0:t)&&t!==r.retryLane&&(r.retryLane=t,Si(c,t),as(a,c,t,-1))}return zs(),Fo(c,e,o,a=fo(Error(i(421))))}return"$?"===t.data?(e.flags|=128,e.child=c.child,e=ws.bind(null,c),t._reactRetry=e,null):(c=r.treeContext,ai=st(t.nextSibling),ni=e,ti=!0,ii=null,null!==c&&($t[Gt++]=Xt,$t[Gt++]=Kt,$t[Gt++]=Yt,Xt=c.id,Kt=c.overflow,Yt=e),e=Do(e,a.children),e.flags|=4096,e)}(c,e,l,t,a,r,n);if(o){o=t.fallback,l=e.mode,a=(r=c.child).sibling;var s={mode:"hidden",children:t.children};return 0==(1&l)&&e.child!==r?((t=e.child).childLanes=0,t.pendingProps=s,e.deletions=null):(t=js(r,s)).subtreeFlags=14680064&r.subtreeFlags,null!==a?o=js(a,o):(o=Os(o,l,n,null)).flags|=2,o.return=e,t.return=e,t.sibling=o,e.child=t,t=o,o=e.child,l=null===(l=c.child.memoizedState)?To(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=c.childLanes&~n,e.memoizedState=Oo,t}return c=(o=c.child).sibling,t=js(o,{mode:"visible",children:t.children}),0==(1&e.mode)&&(t.lanes=n),t.return=e,t.sibling=null,null!==c&&(null===(n=e.deletions)?(e.deletions=[c],e.flags|=16):n.push(c)),e.child=t,e.memoizedState=null,t}function Do(c,e){return(e=Ts({mode:"visible",children:e},c.mode,0,null)).return=c,c.child=e}function Fo(c,e,n,a){return null!==a&&hi(a),Xi(e,c.child,null,n),(c=Do(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,c}function Bo(c,e,n){c.lanes|=e;var a=c.alternate;null!==a&&(a.lanes|=e),bi(c.return,e,n)}function Io(c,e,n,a,t){var i=c.memoizedState;null===i?c.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:t}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=t)}function qo(c,e,n){var a=e.pendingProps,t=a.revealOrder,i=a.tail;if(go(c,e,a.children,n),0!=(2&(a=or.current)))a=1&a|2,e.flags|=128;else{if(null!==c&&0!=(128&c.flags))c:for(c=e.child;null!==c;){if(13===c.tag)null!==c.memoizedState&&Bo(c,n,e);else if(19===c.tag)Bo(c,n,e);else if(null!==c.child){c.child.return=c,c=c.child;continue}if(c===e)break c;for(;null===c.sibling;){if(null===c.return||c.return===e)break c;c=c.return}c.sibling.return=c.return,c=c.sibling}a&=1}if(yt(or,a),0==(1&e.mode))e.memoizedState=null;else switch(t){case"forwards":for(n=e.child,t=null;null!==n;)null!==(c=n.alternate)&&null===lr(c)&&(t=n),n=n.sibling;null===(n=t)?(t=e.child,e.child=null):(t=n.sibling,n.sibling=null),Io(e,!1,t,n,i);break;case"backwards":for(n=null,t=e.child,e.child=null;null!==t;){if(null!==(c=t.alternate)&&null===lr(c)){e.child=t;break}c=t.sibling,t.sibling=n,n=t,t=c}Io(e,!0,n,null,i);break;case"together":Io(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Uo(c,e){0==(1&e.mode)&&null!==c&&(c.alternate=null,e.alternate=null,e.flags|=2)}function Zo(c,e,n){if(null!==c&&(e.dependencies=c.dependencies),Tl|=e.lanes,0==(n&e.childLanes))return null;if(null!==c&&e.child!==c.child)throw Error(i(153));if(null!==e.child){for(n=js(c=e.child,c.pendingProps),e.child=n,n.return=e;null!==c.sibling;)c=c.sibling,(n=n.sibling=js(c,c.pendingProps)).return=e;n.sibling=null}return e.child}function Wo(c,e){if(!ti)switch(c.tailMode){case"hidden":e=c.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?c.tail=null:n.sibling=null;break;case"collapsed":n=c.tail;for(var a=null;null!==n;)null!==n.alternate&&(a=n),n=n.sibling;null===a?e||null===c.tail?c.tail=null:c.tail.sibling=null:a.sibling=null}}function $o(c){var e=null!==c.alternate&&c.alternate.child===c.child,n=0,a=0;if(e)for(var t=c.child;null!==t;)n|=t.lanes|t.childLanes,a|=14680064&t.subtreeFlags,a|=14680064&t.flags,t.return=c,t=t.sibling;else for(t=c.child;null!==t;)n|=t.lanes|t.childLanes,a|=t.subtreeFlags,a|=t.flags,t.return=c,t=t.sibling;return c.subtreeFlags|=a,c.childLanes=n,e}function Go(c,e,n){var a=e.pendingProps;switch(ei(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $o(e),null;case 1:case 17:return Et(e.type)&&Pt(),$o(e),null;case 3:return a=e.stateNode,tr(),Lt(St),Lt(wt),fr(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==c&&null!==c.child||(ui(e)?e.flags|=4:null===c||c.memoizedState.isDehydrated&&0==(256&e.flags)||(e.flags|=1024,null!==ii&&(os(ii),ii=null))),Po(c,e),$o(e),null;case 5:rr(e);var t=nr(er.current);if(n=e.type,null!==c&&null!=e.stateNode)jo(c,e,n,a,t),c.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!a){if(null===e.stateNode)throw Error(i(166));return $o(e),null}if(c=nr(Ji.current),ui(e)){a=e.stateNode,n=e.type;var r=e.memoizedProps;switch(a[mt]=e,a[dt]=r,c=0!=(1&e.mode),n){case"dialog":Da("cancel",a),Da("close",a);break;case"iframe":case"object":case"embed":Da("load",a);break;case"video":case"audio":for(t=0;t<_a.length;t++)Da(_a[t],a);break;case"source":Da("error",a);break;case"img":case"image":case"link":Da("error",a),Da("load",a);break;case"details":Da("toggle",a);break;case"input":X(a,r),Da("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!r.multiple},Da("invalid",a);break;case"textarea":tc(a,r),Da("invalid",a)}for(var l in Hc(n,r),t=null,r)if(r.hasOwnProperty(l)){var s=r[l];"children"===l?"string"==typeof s?a.textContent!==s&&(!0!==r.suppressHydrationWarning&&Qa(a.textContent,s,c),t=["children",s]):"number"==typeof s&&a.textContent!==""+s&&(!0!==r.suppressHydrationWarning&&Qa(a.textContent,s,c),t=["children",""+s]):o.hasOwnProperty(l)&&null!=s&&"onScroll"===l&&Da("scroll",a)}switch(n){case"input":W(a),J(a,r,!0);break;case"textarea":W(a),rc(a);break;case"select":case"option":break;default:"function"==typeof r.onClick&&(a.onclick=Ja)}a=t,e.updateQueue=a,null!==a&&(e.flags|=4)}else{l=9===t.nodeType?t:t.ownerDocument,"http://www.w3.org/1999/xhtml"===c&&(c=oc(n)),"http://www.w3.org/1999/xhtml"===c?"script"===n?((c=l.createElement("div")).innerHTML="