@redocly/openapi-docs 3.0.0-alpha.10 → 3.0.0-alpha.11
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/bin/cli/commands/redocly-docs-cli.min.js +4513 -4565
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
- package/dist/console.redocly-reference-docs.min.js +284 -284
- package/dist/oauth2-redirect.js +1 -1
- package/dist/redocly-reference-docs.min.js +4984 -5036
- package/lib/cli/commands/bundle.js +1 -1
- package/lib/components/ApiInfo/ApiInfo.d.ts +4 -0
- package/lib/components/ApiInfo/ApiInfo.js +2 -0
- package/lib/components/ApiInfo/index.d.ts +2 -0
- package/lib/{redoc-lib/src/components → components}/ApiInfo/index.js +0 -0
- package/lib/components/ApiInfo/styled.d.ts +4 -0
- package/lib/components/ApiInfo/styled.js +24 -0
- package/lib/components/ApiInfo/types.d.ts +4 -0
- package/lib/components/{console/AuthPanel → ApiInfo}/types.js +0 -0
- package/lib/components/CallbackSamples/CallbackReqSamples.d.ts +7 -0
- package/lib/components/CallbackSamples/CallbackReqSamples.js +4 -0
- package/lib/components/CallbackSamples/CallbackSamples.d.ts +7 -0
- package/lib/components/CallbackSamples/CallbackSamples.js +2 -0
- package/lib/components/CallbackSamples/index.d.ts +1 -0
- package/lib/components/CallbackSamples/index.js +2 -0
- package/lib/components/Callbacks/CallbackDetails.d.ts +6 -0
- package/lib/components/Callbacks/CallbackDetails.js +4 -0
- package/lib/components/Callbacks/CallbackOperation.d.ts +5 -0
- package/lib/components/Callbacks/CallbackOperation.js +2 -0
- package/lib/components/Callbacks/CallbackSummary.d.ts +6 -0
- package/lib/components/Callbacks/CallbackSummary.js +2 -0
- package/lib/components/Callbacks/CallbacksList.d.ts +6 -0
- package/lib/components/Callbacks/CallbacksList.js +2 -0
- package/lib/{redoc-lib/src/components → components}/Callbacks/index.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/Callbacks/index.js +0 -0
- package/lib/{redoc-lib/src/components/Callbacks/CallbackTitle.d.ts → components/Callbacks/styled.d.ts} +0 -0
- package/lib/components/Callbacks/styled.js +7 -0
- package/lib/components/ContentItem/ContentItem.d.ts +11 -0
- package/lib/components/ContentItem/ContentItem.js +2 -0
- package/lib/{redoc-lib/src/components → components}/ContentItem/index.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/ContentItem/index.js +0 -0
- package/lib/components/ContentItems/ContentItems.d.ts +9 -0
- package/lib/components/ContentItems/ContentItems.js +2 -0
- package/lib/{redoc-lib/src/components → components}/ContentItems/Skeleton.d.ts +0 -0
- package/lib/components/ContentItems/Skeleton.js +31 -0
- package/lib/{redoc-lib/src/components → components}/ContentItems/index.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/ContentItems/index.js +0 -0
- package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +11 -0
- package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.js +2 -0
- package/lib/components/DiscriminatorDropdown/index.d.ts +1 -0
- package/lib/components/DiscriminatorDropdown/index.js +2 -0
- package/lib/components/Download/DownloadButtonWithLabel.d.ts +4 -0
- package/lib/components/Download/DownloadButtonWithLabel.js +21 -0
- package/lib/components/Download/DownloadLink.d.ts +2 -0
- package/lib/components/Download/DownloadLink.js +4 -0
- package/lib/components/Download/index.d.ts +3 -0
- package/lib/components/Download/index.js +2 -0
- package/lib/components/Download/types.d.ts +6 -0
- package/lib/components/{console/RequestBody → Download}/types.js +0 -0
- package/lib/components/DropdownOrLabel/DropdownOrLabel.d.ts +7 -0
- package/lib/components/DropdownOrLabel/DropdownOrLabel.js +8 -0
- package/lib/components/DropdownOrLabel/index.d.ts +1 -0
- package/lib/components/DropdownOrLabel/index.js +2 -0
- package/lib/components/Endpoint/Endpoint.js +1 -1
- package/lib/components/Endpoint/ServerList.js +1 -1
- package/lib/components/Endpoint/styled.js +1 -1
- package/lib/components/Endpoint/types.d.ts +1 -1
- package/lib/{redoc-lib/src/components → components/ErrorBoundary}/ErrorBoundary.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components/ErrorBoundary}/ErrorBoundary.js +0 -0
- package/lib/components/ErrorBoundary/index.d.ts +1 -0
- package/lib/components/ErrorBoundary/index.js +2 -0
- package/lib/components/ExternalDocumentation/ExternalDocumentation.d.ts +8 -0
- package/lib/components/ExternalDocumentation/ExternalDocumentation.js +5 -0
- package/lib/components/ExternalDocumentation/index.d.ts +1 -0
- package/lib/components/ExternalDocumentation/index.js +2 -0
- package/lib/{redoc-lib/src/components/Fields/FieldContstraints.d.ts → components/Fields/ConstraintsView.d.ts} +0 -0
- package/lib/components/Fields/ConstraintsView.js +2 -0
- package/lib/components/Fields/DescriptionEnums.d.ts +4 -0
- package/lib/components/Fields/DescriptionEnums.js +2 -0
- package/lib/components/Fields/EnumValues.d.ts +3 -0
- package/lib/components/Fields/EnumValues.js +2 -0
- package/lib/components/Fields/Examples.d.ts +5 -0
- package/lib/components/Fields/Examples.js +2 -0
- package/lib/components/Fields/Extensions.d.ts +3 -0
- package/lib/components/Fields/Extensions.js +4 -0
- package/lib/components/Fields/Field.d.ts +4 -0
- package/lib/components/Fields/Field.js +2 -0
- package/lib/components/Fields/FieldDetail.d.ts +8 -0
- package/lib/components/Fields/FieldDetail.js +2 -0
- package/lib/components/Fields/FieldDetails.d.ts +4 -0
- package/lib/components/Fields/FieldDetails.js +2 -0
- package/lib/components/Fields/SimpleEnums.d.ts +4 -0
- package/lib/components/Fields/SimpleEnums.js +2 -0
- package/lib/components/Fields/index.d.ts +4 -0
- package/lib/components/Fields/index.js +2 -0
- package/lib/components/Fields/styled.d.ts +13 -0
- package/lib/components/Fields/styled.js +26 -0
- package/lib/components/Fields/types.d.ts +40 -0
- package/lib/components/{console/ServersDropdown → Fields}/types.js +0 -0
- package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +9 -0
- package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +2 -0
- package/lib/components/GenericChildrenSwitcher/index.d.ts +1 -0
- package/lib/components/GenericChildrenSwitcher/index.js +2 -0
- package/lib/components/Loading/Loading.d.ts +4 -0
- package/lib/components/Loading/Loading.js +9 -0
- package/lib/components/Loading/index.d.ts +1 -0
- package/lib/components/Loading/index.js +2 -0
- package/lib/{redoc-lib/src/components → components}/Markdown/AdvancedMarkdown.d.ts +0 -0
- package/lib/components/Markdown/AdvancedMarkdown.js +2 -0
- package/lib/{redoc-lib/src/components → components}/Markdown/Markdown.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/Markdown/Markdown.js +0 -0
- package/lib/{redoc-lib/src/components → components}/Markdown/SanitizedMarkdownHTML.d.ts +0 -0
- package/lib/components/Markdown/SanitizedMarkdownHTML.js +2 -0
- package/lib/{redoc-lib/src/components → components}/Markdown/index.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/Markdown/index.js +0 -0
- package/lib/{redoc-lib/src/components → components}/Markdown/styled.d.ts +0 -0
- package/lib/components/Markdown/styled.js +257 -0
- package/lib/{redoc-lib/src/components → components}/Markdown/types.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/Markdown/types.js +0 -0
- package/lib/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +11 -0
- package/lib/components/MediaTypeSwitch/MediaTypesSwitch.js +2 -0
- package/lib/components/MediaTypeSwitch/index.d.ts +1 -0
- package/lib/components/MediaTypeSwitch/index.js +2 -0
- package/lib/components/NextSectionButton.d.ts +3 -3
- package/lib/components/NextSectionButton.js +2 -2
- package/lib/components/Operation/Operation.d.ts +4 -0
- package/lib/components/Operation/Operation.js +8 -0
- package/lib/components/Operation/index.d.ts +2 -0
- package/lib/{redoc-lib/src/components → components}/Operation/index.js +0 -0
- package/lib/components/Operation/types.d.ts +6 -0
- package/lib/{redoc-lib/src/components/PayloadSamples → components/Operation}/types.js +0 -0
- package/lib/components/OperationParameters/OperationParameters.js +1 -1
- package/lib/components/OperationParameters/types.d.ts +1 -1
- package/lib/components/OperationParameters/utils.d.ts +2 -1
- package/lib/components/OperationParameters/utils.js +1 -1
- package/lib/components/Panel/ContentPanel.js +2 -2
- package/lib/components/Panel/ResponsePanel.js +2 -2
- package/lib/components/Parameters/BodyContent.d.ts +7 -0
- package/lib/components/Parameters/BodyContent.js +4 -0
- package/lib/components/Parameters/DropdownWithinHeader.d.ts +1 -0
- package/lib/components/Parameters/DropdownWithinHeader.js +2 -0
- package/lib/components/Parameters/Parameters.d.ts +6 -0
- package/lib/components/Parameters/Parameters.js +2 -0
- package/lib/components/Parameters/ParametersGroup.d.ts +9 -0
- package/lib/components/Parameters/ParametersGroup.js +16 -0
- package/lib/components/Parameters/index.d.ts +2 -0
- package/lib/components/Parameters/index.js +2 -0
- package/lib/components/PayloadSamples/Example.d.ts +2 -0
- package/lib/components/PayloadSamples/Example.js +2 -0
- package/lib/{redoc-lib/src/components → components}/PayloadSamples/ExampleValue.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/PayloadSamples/ExampleValue.js +0 -0
- package/lib/components/PayloadSamples/ExternalExample.d.ts +2 -0
- package/lib/components/PayloadSamples/ExternalExample.js +2 -0
- package/lib/components/PayloadSamples/MediaTypeSamples.d.ts +4 -0
- package/lib/components/PayloadSamples/MediaTypeSamples.js +2 -0
- package/lib/components/PayloadSamples/PayloadSamples.d.ts +4 -0
- package/lib/components/PayloadSamples/PayloadSamples.js +2 -0
- package/lib/components/PayloadSamples/index.d.ts +6 -0
- package/lib/components/PayloadSamples/index.js +2 -0
- package/lib/{redoc-lib/src/components → components}/PayloadSamples/styled.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/PayloadSamples/styled.js +0 -0
- package/lib/components/PayloadSamples/types.d.ts +25 -0
- package/lib/{redoc-lib/src/components/Responses → components/PayloadSamples}/types.js +0 -0
- package/lib/components/PayloadSamples/useExternalExample.d.ts +2 -0
- package/lib/{redoc-lib/src/components → components}/PayloadSamples/useExternalExample.js +0 -0
- package/lib/components/ProProviders.d.ts +2 -2
- package/lib/components/ProProviders.js +1 -1
- package/lib/components/RedoclyReferenceDocs.d.ts +6 -20
- package/lib/components/RedoclyReferenceDocs.js +8 -8
- package/lib/components/RedoclyReferenceDocsMultiStandalone.d.ts +2 -2
- package/lib/components/RedoclyReferenceDocsMultiStandalone.js +1 -1
- package/lib/components/RenderHook/RenderHook.d.ts +7 -0
- package/lib/{redoc-lib/src/components → components/RenderHook}/RenderHook.js +0 -0
- package/lib/components/RenderHook/index.d.ts +1 -0
- package/lib/components/RenderHook/index.js +2 -0
- package/lib/components/RequestSamples/CodeSample.d.ts +18 -0
- package/lib/components/RequestSamples/CodeSample.js +2 -0
- package/lib/components/RequestSamples/Example.d.ts +10 -0
- package/lib/components/RequestSamples/Example.js +2 -0
- package/lib/components/RequestSamples/RequestSamples.d.ts +14 -0
- package/lib/components/RequestSamples/RequestSamples.js +2 -0
- package/lib/components/RequestSamples/index.d.ts +2 -0
- package/lib/components/RequestSamples/index.js +2 -0
- package/lib/components/RequestSamples/useCodeSamples.d.ts +10 -0
- package/lib/{redoc-lib/src/components → components}/RequestSamples/useCodeSamples.js +0 -0
- package/lib/components/ResponseSamples/ResponseSamples.d.ts +5 -0
- package/lib/components/ResponseSamples/ResponseSamples.js +2 -0
- package/lib/components/ResponseSamples/index.d.ts +1 -0
- package/lib/components/ResponseSamples/index.js +2 -0
- package/lib/components/Responses/Response.d.ts +4 -0
- package/lib/components/Responses/Response.js +2 -0
- package/lib/components/Responses/ResponseDetails.d.ts +3 -0
- package/lib/components/Responses/ResponseDetails.js +4 -0
- package/lib/{redoc-lib/src/components → components}/Responses/ResponseHeaders.d.ts +0 -0
- package/lib/components/Responses/ResponseHeaders.js +2 -0
- package/lib/{redoc-lib/src/components → components}/Responses/ResponseSummary.d.ts +0 -0
- package/lib/components/Responses/ResponseSummary.js +2 -0
- package/lib/{redoc-lib/src/components → components}/Responses/ResponsesList.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/Responses/ResponsesList.js +0 -0
- package/lib/components/Responses/index.d.ts +5 -0
- package/lib/components/Responses/index.js +2 -0
- package/lib/{redoc-lib/src/components → components}/Responses/styled.d.ts +0 -0
- package/lib/components/Responses/styled.js +14 -0
- package/lib/components/Responses/types.d.ts +12 -0
- package/lib/{redoc-lib/src/components/Schema → components/Responses}/types.js +0 -0
- package/lib/components/Samples/ExampleSwitch.d.ts +1 -1
- package/lib/components/Samples/ExampleSwitch.js +1 -1
- package/lib/components/Samples/SamplesTabs.js +1 -1
- package/lib/components/Samples/use-example-key.d.ts +1 -1
- package/lib/{redoc-lib/src/components → components}/Schema/ArraySchema.d.ts +0 -0
- package/lib/components/Schema/ArraySchema.js +4 -0
- package/lib/components/Schema/ObjectSchema.d.ts +3 -0
- package/lib/components/Schema/ObjectSchema.js +2 -0
- package/lib/components/Schema/OneOfSchema.d.ts +3 -0
- package/lib/components/Schema/OneOfSchema.js +2 -0
- package/lib/components/Schema/RecursiveSchema.d.ts +3 -0
- package/lib/components/Schema/RecursiveSchema.js +2 -0
- package/lib/components/Schema/Schema.d.ts +3 -0
- package/lib/components/Schema/Schema.js +2 -0
- package/lib/components/Schema/index.d.ts +5 -0
- package/lib/components/Schema/index.js +2 -0
- package/lib/components/Schema/types.d.ts +22 -0
- package/lib/{redoc-lib/src/components/SecuritySchemes → components/Schema}/types.js +0 -0
- package/lib/components/SchemaDefinition/SchemaDefinition.d.ts +15 -0
- package/lib/components/SchemaDefinition/SchemaDefinition.js +7 -0
- package/lib/components/SchemaDefinition/index.d.ts +1 -0
- package/lib/components/SchemaDefinition/index.js +2 -0
- package/lib/components/Search/MenuItemProSearch.d.ts +1 -22
- package/lib/components/Search/MenuItemProSearch.js +1 -9
- package/lib/components/Search/SearchBox.d.ts +8 -0
- package/lib/components/Search/SearchBox.js +2 -0
- package/lib/components/Search/SearchField.d.ts +1 -1
- package/lib/components/Search/index.d.ts +1 -1
- package/lib/components/Search/index.js +1 -1
- package/lib/components/Search/styled.d.ts +3 -0
- package/lib/components/Search/styled.js +9 -1
- package/lib/components/Search/types.d.ts +39 -0
- package/lib/{redoc-lib/src/services → components/Search}/types.js +0 -0
- package/lib/components/Search/utils.d.ts +11 -0
- package/lib/components/Search/utils.js +2 -0
- package/lib/components/SectionItem/SectionItem.d.ts +7 -0
- package/lib/components/SectionItem/SectionItem.js +2 -0
- package/lib/{redoc-lib/src/components → components}/SectionItem/index.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/SectionItem/index.js +0 -0
- package/lib/components/SecurityRequirement/PanelDescription.d.ts +7 -0
- package/lib/components/SecurityRequirement/PanelDescription.js +2 -0
- package/lib/components/SecurityRequirement/RequiredScopesRow.d.ts +3 -0
- package/lib/components/SecurityRequirement/RequiredScopesRow.js +2 -0
- package/lib/components/SecurityRequirement/RequirementElement.d.ts +7 -0
- package/lib/components/SecurityRequirement/RequirementElement.js +24 -0
- package/lib/components/SecurityRequirement/SecurityDefs.d.ts +7 -0
- package/lib/components/SecurityRequirement/SecurityDefs.js +4 -0
- package/lib/components/SecurityRequirement/SecurityRequirement.d.ts +6 -0
- package/lib/components/SecurityRequirement/SecurityRequirement.js +24 -0
- package/lib/components/SecurityRequirement/constants.d.ts +6 -0
- package/lib/components/SecurityRequirement/constants.js +2 -0
- package/lib/components/SecurityRequirement/index.d.ts +3 -0
- package/lib/components/SecurityRequirement/index.js +2 -0
- package/lib/components/SecurityRequirement/styled.d.ts +1 -0
- package/lib/components/SecurityRequirement/styled.js +4 -0
- package/lib/{redoc-lib/src/components → components}/SecuritySchemes/SecuritySchemes.d.ts +0 -0
- package/lib/components/SecuritySchemes/SecuritySchemes.js +2 -0
- package/lib/{redoc-lib/src/components → components}/SecuritySchemes/helpers.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/SecuritySchemes/helpers.js +0 -0
- package/lib/{redoc-lib/src/components → components}/SecuritySchemes/index.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/SecuritySchemes/index.js +0 -0
- package/lib/{redoc-lib/src/components → components}/SecuritySchemes/types.d.ts +0 -0
- package/lib/components/SecuritySchemes/types.js +2 -0
- package/lib/{redoc-lib/src/components → components}/SeeMore/SeeMore.d.ts +0 -0
- package/lib/{redoc-lib/src/components → components}/SeeMore/SeeMore.js +0 -0
- package/lib/components/SeeMore/index.d.ts +1 -0
- package/lib/components/SeeMore/index.js +2 -0
- package/lib/components/SideMenu/MenuItem.d.ts +10 -0
- package/lib/components/SideMenu/MenuItem.js +2 -0
- package/lib/components/SideMenu/MenuItemEternalLink.d.ts +6 -0
- package/lib/components/SideMenu/MenuItemEternalLink.js +2 -0
- package/lib/components/SideMenu/MenuItemLinkOrLabel.d.ts +7 -0
- package/lib/components/SideMenu/MenuItemLinkOrLabel.js +2 -0
- package/lib/components/SideMenu/MenuItems.d.ts +2 -0
- package/lib/components/SideMenu/MenuItems.js +2 -0
- package/lib/components/SideMenu/MenuOperationItemContent.d.ts +7 -0
- package/lib/components/SideMenu/MenuOperationItemContent.js +8 -0
- package/lib/components/SideMenu/SideMenu.d.ts +5 -0
- package/lib/components/SideMenu/SideMenu.js +2 -0
- package/lib/components/SideMenu/index.d.ts +4 -0
- package/lib/components/SideMenu/index.js +2 -0
- package/lib/components/SideMenu/styled.d.ts +21 -0
- package/lib/components/SideMenu/styled.js +97 -0
- package/lib/components/SideMenu/types.d.ts +19 -0
- package/lib/components/SideMenu/types.js +2 -0
- package/lib/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +2 -0
- package/lib/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
- package/lib/components/SourceCodeWithFile/index.d.ts +1 -0
- package/lib/components/SourceCodeWithFile/index.js +2 -0
- package/lib/components/StickySidebar/StickyResponsiveSidebar.d.ts +11 -0
- package/lib/components/StickySidebar/StickyResponsiveSidebar.js +40 -0
- package/lib/components/StickySidebar/index.d.ts +1 -0
- package/lib/components/StickySidebar/index.js +2 -0
- package/lib/components/StoreProvider.d.ts +3 -4
- package/lib/components/StoreProvider.js +1 -1
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +1 -1
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +1 -1
- package/lib/components/common/CheckboxList.d.ts +1 -14
- package/lib/components/common/CheckboxList.js +1 -1
- package/lib/components/common/Dropdown/Dropdown.js +1 -1
- package/lib/components/common/Fields/fields-layout.d.ts +16 -0
- package/lib/components/common/Fields/fields-layout.js +228 -0
- package/lib/{redoc-lib/src/common-elements → components/common/Fields}/fields.d.ts +0 -0
- package/lib/components/common/Fields/fields.js +103 -0
- package/lib/components/common/Fields/index.d.ts +2 -0
- package/lib/components/common/Fields/index.js +2 -0
- package/lib/components/common/FileUpload/FileUpload.d.ts +1 -2
- package/lib/components/common/FileUpload/helper.d.ts +1 -2
- package/lib/components/common/LinkToField.d.ts +9 -0
- package/lib/components/common/LinkToField.js +27 -0
- package/lib/components/common/TextField.js +2 -2
- package/lib/{redoc-lib/src/common-elements → components/common}/headers.d.ts +0 -0
- package/lib/components/common/headers.js +36 -0
- package/lib/components/common/index.d.ts +12 -0
- package/lib/components/common/index.js +2 -0
- package/lib/{redoc-lib/src/common-elements → components/common}/linkify.d.ts +0 -0
- package/lib/components/common/linkify.js +55 -0
- package/lib/{redoc-lib/src/common-elements → components/common}/mixins.d.ts +0 -0
- package/lib/{redoc-lib/src/common-elements → components/common}/mixins.js +0 -0
- package/lib/components/common/panels.d.ts +13 -0
- package/lib/components/common/panels.js +95 -0
- package/lib/{redoc-lib/src/common-elements → components/common}/perfect-scrollbar.d.ts +0 -0
- package/lib/components/common/perfect-scrollbar.js +4 -0
- package/lib/{redoc-lib/src/common-elements → components/common}/schema.d.ts +0 -0
- package/lib/{redoc-lib/src/common-elements → components/common}/schema.js +0 -0
- package/lib/{redoc-lib/src/common-elements → components/common}/shelfs.d.ts +0 -0
- package/lib/{redoc-lib/src/common-elements → components/common}/shelfs.js +0 -0
- package/lib/components/icons/CrossIcon.d.ts +4 -0
- package/lib/components/icons/CrossIcon.js +11 -0
- package/lib/components/icons/FileIcon.d.ts +4 -0
- package/lib/components/icons/FileIcon.js +9 -0
- package/lib/components/icons/LinkIcon.d.ts +4 -0
- package/lib/components/icons/LinkIcon.js +11 -0
- package/lib/components/icons/LockIcon.d.ts +2 -0
- package/lib/components/icons/LockIcon.js +12 -0
- package/lib/components/icons/SearchIcon.d.ts +5 -0
- package/lib/components/icons/SearchIcon.js +11 -0
- package/lib/components/icons/ShelfIcon.d.ts +2 -0
- package/lib/components/icons/ShelfIcon.js +12 -0
- package/lib/components/icons/Spinner.d.ts +2 -0
- package/lib/components/icons/Spinner.js +19 -0
- package/lib/components/icons/index.d.ts +8 -0
- package/lib/components/icons/index.js +2 -0
- package/lib/components/icons/types.d.ts +10 -0
- package/lib/components/icons/types.js +2 -0
- package/lib/components/index.d.ts +28 -7
- package/lib/components/index.js +1 -1
- package/lib/components/pluggable/PullRight.js +2 -2
- package/lib/components/pluggable/RedocExample.d.ts +3 -6
- package/lib/components/pluggable/RedocExample.js +1 -1
- package/lib/components/pluggable/RedocRequestBody.d.ts +1 -4
- package/lib/components/pluggable/RedocRequestBody.js +1 -1
- package/lib/components/pluggable/RedocResponse.d.ts +2 -5
- package/lib/components/pluggable/RedocResponse.js +1 -1
- package/lib/components/pluggable/RedocSchema.d.ts +2 -5
- package/lib/components/pluggable/RedocSchema.js +1 -1
- package/lib/components/pluggable/index.d.ts +5 -5
- package/lib/components/pluggable/index.js +1 -1
- package/lib/components/pluggable/styled.components.js +2 -2
- package/lib/components/rightPanel/ActionPanel.d.ts +12 -0
- package/lib/components/rightPanel/ActionPanel.js +4 -0
- package/lib/components/rightPanel/AuthPanel/AuthPanel.d.ts +2 -0
- package/lib/components/rightPanel/AuthPanel/AuthPanel.js +2 -0
- package/lib/components/{console → rightPanel}/AuthPanel/index.d.ts +0 -0
- package/lib/components/{console → rightPanel}/AuthPanel/index.js +0 -0
- package/lib/components/rightPanel/AuthPanel/types.d.ts +14 -0
- package/lib/components/rightPanel/AuthPanel/types.js +2 -0
- package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.d.ts +5 -0
- package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.js +2 -0
- package/lib/components/{console/codemirror-helpers.d.ts → rightPanel/CodemirrorInput/helpers.d.ts} +0 -0
- package/lib/components/rightPanel/CodemirrorInput/helpers.js +2 -0
- package/lib/components/rightPanel/CodemirrorInput/index.d.ts +1 -0
- package/lib/components/rightPanel/CodemirrorInput/index.js +2 -0
- package/lib/components/rightPanel/CodemirrorInput/styled.d.ts +1 -0
- package/lib/components/rightPanel/CodemirrorInput/styled.js +50 -0
- package/lib/components/rightPanel/CodemirrorInput/types.d.ts +22 -0
- package/lib/components/rightPanel/CodemirrorInput/types.js +2 -0
- package/lib/components/rightPanel/Console/Console.d.ts +3 -0
- package/lib/components/rightPanel/Console/Console.js +2 -0
- package/lib/components/rightPanel/Console/ConsoleLazy.d.ts +2 -0
- package/lib/components/rightPanel/Console/ConsoleLazy.js +2 -0
- package/lib/components/rightPanel/Console/ConsoleWrapper.d.ts +6 -0
- package/lib/components/rightPanel/Console/ConsoleWrapper.js +2 -0
- package/lib/components/rightPanel/Console/Request.d.ts +12 -0
- package/lib/components/rightPanel/Console/Request.js +2 -0
- package/lib/components/rightPanel/Console/index.d.ts +1 -0
- package/lib/components/rightPanel/Console/index.js +2 -0
- package/lib/components/rightPanel/Console/types.d.ts +18 -0
- package/lib/components/rightPanel/Console/types.js +2 -0
- package/lib/components/{console → rightPanel}/ConsoleTabs/ConsoleTabs.d.ts +0 -0
- package/lib/components/{console → rightPanel}/ConsoleTabs/ConsoleTabs.js +0 -0
- package/lib/components/{console → rightPanel}/ConsoleTabs/index.d.ts +0 -0
- package/lib/components/{console → rightPanel}/ConsoleTabs/index.js +0 -0
- package/lib/components/{console → rightPanel}/ConsoleTabs/styled.d.ts +0 -0
- package/lib/components/{console → rightPanel}/ConsoleTabs/styled.js +0 -0
- package/lib/components/rightPanel/OAuth2Flow/Error.d.ts +7 -0
- package/lib/components/rightPanel/OAuth2Flow/Error.js +2 -0
- package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.d.ts +2 -0
- package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.js +2 -0
- package/lib/components/rightPanel/OAuth2Flow/index.d.ts +2 -0
- package/lib/components/rightPanel/OAuth2Flow/index.js +2 -0
- package/lib/components/rightPanel/OAuth2Flow/styled.d.ts +4 -0
- package/lib/components/rightPanel/OAuth2Flow/styled.js +14 -0
- package/lib/components/rightPanel/OAuth2Flow/types.d.ts +20 -0
- package/lib/components/rightPanel/OAuth2Flow/types.js +2 -0
- package/lib/components/rightPanel/OAuth2TokenInput.d.ts +21 -0
- package/lib/components/rightPanel/OAuth2TokenInput.js +2 -0
- package/lib/components/rightPanel/OpenIDConnect.d.ts +17 -0
- package/lib/components/{console → rightPanel}/OpenIDConnect.js +0 -0
- package/lib/components/rightPanel/ParameterArray.d.ts +9 -0
- package/lib/components/{console → rightPanel}/ParameterArray.js +0 -0
- package/lib/components/{console → rightPanel}/ParameterDropdown.d.ts +0 -0
- package/lib/components/rightPanel/ParameterDropdown.js +2 -0
- package/lib/components/rightPanel/RequestBody/Body.d.ts +3 -0
- package/lib/components/rightPanel/RequestBody/Body.js +2 -0
- package/lib/components/rightPanel/RequestBody/RequestBody.d.ts +3 -0
- package/lib/components/rightPanel/RequestBody/RequestBody.js +2 -0
- package/lib/components/{console → rightPanel}/RequestBody/index.d.ts +0 -0
- package/lib/components/{console → rightPanel}/RequestBody/index.js +0 -0
- package/lib/components/rightPanel/RequestBody/types.d.ts +16 -0
- package/lib/components/rightPanel/RequestBody/types.js +2 -0
- package/lib/components/rightPanel/RequestBodyForm.d.ts +8 -0
- package/lib/components/rightPanel/RequestBodyForm.js +10 -0
- package/lib/components/{console → rightPanel}/RequestMimeLabel.d.ts +0 -0
- package/lib/components/{console → rightPanel}/RequestMimeLabel.js +0 -0
- package/lib/components/rightPanel/ResponseBody.d.ts +4 -0
- package/lib/components/rightPanel/ResponseBody.js +2 -0
- package/lib/components/{console → rightPanel}/ResponseHeadersList.d.ts +0 -0
- package/lib/components/rightPanel/ResponseHeadersList.js +10 -0
- package/lib/components/rightPanel/ResponsePanel.d.ts +9 -0
- package/lib/components/rightPanel/ResponsePanel.js +18 -0
- package/lib/components/{console → rightPanel}/Scope.d.ts +0 -0
- package/lib/components/{console → rightPanel}/Scope.js +0 -0
- package/lib/components/{console → rightPanel}/ServerVariable.d.ts +0 -0
- package/lib/components/rightPanel/ServerVariable.js +5 -0
- package/lib/components/{console → rightPanel}/ServersDropdown/ServersDropdown.d.ts +0 -0
- package/lib/components/rightPanel/ServersDropdown/ServersDropdown.js +4 -0
- package/lib/components/{console → rightPanel}/ServersDropdown/index.d.ts +0 -0
- package/lib/components/{console → rightPanel}/ServersDropdown/index.js +0 -0
- package/lib/components/rightPanel/ServersDropdown/types.d.ts +6 -0
- package/lib/components/rightPanel/ServersDropdown/types.js +2 -0
- package/lib/components/{console → rightPanel}/TryItPanel.d.ts +0 -0
- package/lib/components/rightPanel/TryItPanel.js +14 -0
- package/lib/components/{console → rightPanel}/styled.d.ts +0 -0
- package/lib/components/{console → rightPanel}/styled.js +0 -0
- package/lib/components/rightPanel/types.d.ts +10 -0
- package/lib/components/rightPanel/types.js +2 -0
- package/lib/components/rightPanel/utils.d.ts +28 -0
- package/lib/components/rightPanel/utils.js +2 -0
- package/lib/components/styled.elements.d.ts +1 -1
- package/lib/components/styled.elements.js +4 -4
- package/lib/components/types.d.ts +1 -8
- package/lib/constants.d.ts +27 -2
- package/lib/constants.js +1 -1
- package/lib/context/OptionsProvider.d.ts +6 -0
- package/lib/context/OptionsProvider.js +2 -0
- package/lib/context/StoreProvider.d.ts +6 -0
- package/lib/context/StoreProvider.js +2 -0
- package/lib/context/index.d.ts +2 -0
- package/lib/context/index.js +2 -0
- package/lib/events/types.d.ts +1 -1
- package/lib/hooks/index.d.ts +1 -2
- package/lib/hooks/index.js +1 -1
- package/lib/hooks/usePrevious.d.ts +1 -0
- package/lib/hooks/usePrevious.js +2 -0
- package/lib/index.d.ts +5 -3
- package/lib/index.js +1 -1
- package/lib/models/ApiInfo.d.ts +17 -0
- package/lib/models/ApiInfo.js +2 -0
- package/lib/models/Callback.d.ts +11 -0
- package/lib/models/Callback.js +2 -0
- package/lib/models/Example.d.ts +17 -0
- package/lib/models/Example.js +2 -0
- package/lib/models/Field.d.ts +34 -0
- package/lib/models/Field.js +2 -0
- package/lib/models/Group.d.ts +26 -0
- package/lib/models/Group.js +2 -0
- package/lib/models/MediaContent.d.ts +31 -0
- package/lib/models/MediaContent.js +2 -0
- package/lib/models/MediaType.d.ts +27 -0
- package/lib/models/MediaType.js +2 -0
- package/lib/models/Operation.d.ts +92 -0
- package/lib/models/Operation.js +2 -0
- package/lib/models/RequestBody.d.ts +18 -0
- package/lib/models/RequestBody.js +2 -0
- package/lib/models/Response.d.ts +28 -0
- package/lib/models/Response.js +2 -0
- package/lib/models/Schema.d.ts +78 -0
- package/lib/models/Schema.js +2 -0
- package/lib/models/SecurityRequirement.d.ts +12 -0
- package/lib/{redoc-lib/src/services/models → models}/SecurityRequirement.js +0 -0
- package/lib/models/SecuritySchemes.d.ts +25 -0
- package/lib/{redoc-lib/src/services/models → models}/SecuritySchemes.js +0 -0
- package/lib/models/Webhook.d.ts +8 -0
- package/lib/models/Webhook.js +2 -0
- package/lib/models/index.d.ts +15 -0
- package/lib/models/index.js +1 -1
- package/lib/models/types.d.ts +3 -0
- package/lib/models/types.js +2 -0
- package/lib/services/MarkdownRenderer.d.ts +23 -0
- package/lib/services/MarkdownRenderer.js +2 -0
- package/lib/{redoc-lib/src/services → services}/MarkerService.d.ts +0 -0
- package/lib/{redoc-lib/src/services → services}/MarkerService.js +0 -0
- package/lib/services/MenuBuilder.d.ts +63 -0
- package/lib/services/MenuBuilder.js +2 -0
- package/lib/services/OpenAPIParser.d.ts +51 -0
- package/lib/services/OpenAPIParser.js +2 -0
- package/lib/services/Options/NormalizedOptions.d.ts +2 -0
- package/lib/services/Options/NormalizedOptions.js +2 -0
- package/lib/services/Options/helpers.d.ts +8 -0
- package/lib/services/Options/helpers.js +2 -0
- package/lib/services/Options/index.d.ts +2 -0
- package/lib/services/Options/index.js +2 -0
- package/lib/services/Options/types.d.ts +258 -0
- package/lib/services/Options/types.js +2 -0
- package/lib/services/ProMenu.d.ts +5 -4
- package/lib/services/ProMenu.js +1 -1
- package/lib/services/ProStore.d.ts +14 -77
- package/lib/services/ProStore.js +1 -1
- package/lib/services/ScrollService.d.ts +18 -0
- package/lib/{redoc-lib/src/services → services}/ScrollService.js +0 -0
- package/lib/services/SpecStore.d.ts +18 -0
- package/lib/services/SpecStore.js +2 -0
- package/lib/services/VersionedSpecStore.d.ts +7 -5
- package/lib/services/VersionedSpecStore.js +1 -1
- package/lib/services/code-samples/generator.d.ts +2 -1
- package/lib/services/code-samples/generator.js +1 -1
- package/lib/services/code-samples/httpsnippet/index.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/go/native.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/java/httpclient.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/node/fetch.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/php/curl.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/r/httr.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/ruby/native.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/shell/curl.js +1 -1
- package/lib/services/history/FakeHistoryService.d.ts +4 -4
- package/lib/{redoc-lib/src/services → services/history}/HistoryService.d.ts +0 -0
- package/lib/services/history/HistoryService.js +2 -0
- package/lib/services/history/ProHashHistoryService.d.ts +4 -4
- package/lib/services/history/ProHashHistoryService.js +1 -1
- package/lib/services/history/PushStateHistoryService.d.ts +4 -4
- package/lib/services/history/PushStateHistoryService.js +1 -1
- package/lib/services/history/helpers.d.ts +1 -1
- package/lib/services/history/index.d.ts +1 -0
- package/lib/services/history/index.js +1 -1
- package/lib/services/index.d.ts +13 -1
- package/lib/services/index.js +1 -1
- package/lib/{redoc-lib/src/services/Labels.d.ts → services/labels/LabelsService.d.ts} +0 -0
- package/lib/services/labels/LabelsService.js +2 -0
- package/lib/services/labels/index.d.ts +2 -0
- package/lib/services/labels/index.js +2 -0
- package/lib/services/labels/types.d.ts +28 -0
- package/lib/services/labels/types.js +2 -0
- package/lib/services/search/DeepSearchStore.d.ts +19 -0
- package/lib/services/search/DeepSearchStore.js +2 -0
- package/lib/services/search/RemoteSearch.d.ts +17 -0
- package/lib/services/search/RemoteSearch.js +2 -0
- package/lib/services/search/SearchStore.d.ts +14 -0
- package/lib/services/search/SearchStore.js +2 -0
- package/lib/{redoc-lib/src/services → services/search}/SearchWorker.worker.d.ts +0 -0
- package/lib/{redoc-lib/src/services → services/search}/SearchWorker.worker.js +0 -0
- package/lib/services/search/index.d.ts +4 -0
- package/lib/services/search/index.js +2 -0
- package/lib/services/search/types.d.ts +15 -0
- package/lib/services/search/types.js +2 -0
- package/lib/services/types.d.ts +189 -0
- package/lib/services/utils.js +1 -1
- package/lib/standalone.d.ts +5 -4
- package/lib/standalone.js +1 -1
- package/lib/testProviders.js +1 -1
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.js +2 -0
- package/lib/types/open-api.d.ts +337 -0
- package/lib/{redoc-lib/src/types → types}/open-api.js +0 -0
- package/lib/types/security.d.ts +11 -0
- package/lib/types/security.js +2 -0
- package/lib/{redoc-lib/src/types → types}/server.d.ts +0 -0
- package/lib/{redoc-lib/src/types → types}/server.js +0 -0
- package/lib/{redoc-lib/src/utils → utils}/JsonPointer.d.ts +0 -0
- package/lib/{redoc-lib/src/utils → utils}/JsonPointer.js +0 -0
- package/lib/utils/argValuesHelpers.d.ts +4 -0
- package/lib/utils/argValuesHelpers.js +2 -0
- package/lib/utils/debounce.d.ts +1 -0
- package/lib/utils/debounce.js +2 -0
- package/lib/{redoc-lib/src/utils → utils}/debug.d.ts +0 -0
- package/lib/{redoc-lib/src/utils → utils}/debug.js +0 -0
- package/lib/{redoc-lib/src/utils → utils}/decorators.d.ts +0 -0
- package/lib/{redoc-lib/src/utils → utils}/decorators.js +0 -0
- package/lib/{redoc-lib/src/utils → utils}/dom.d.ts +0 -0
- package/lib/{redoc-lib/src/utils → utils}/dom.js +0 -0
- package/lib/utils/helpers.d.ts +51 -0
- package/lib/utils/helpers.js +2 -0
- package/lib/{redoc-lib/src/utils → utils}/highlight.d.ts +0 -0
- package/lib/{redoc-lib/src/utils → utils}/highlight.js +0 -0
- package/lib/utils/index.d.ts +21 -0
- package/lib/utils/index.js +2 -0
- package/lib/{redoc-lib/src/utils → utils}/loadAndBundleSpec.d.ts +0 -0
- package/lib/{redoc-lib/src/utils → utils}/loadAndBundleSpec.js +0 -0
- package/lib/utils/local-storage.d.ts +2 -0
- package/lib/utils/local-storage.js +2 -0
- package/lib/utils/media-css.d.ts +8 -0
- package/lib/utils/media-css.js +2 -0
- package/lib/{redoc-lib/src/utils → utils}/memoize.d.ts +0 -0
- package/lib/{redoc-lib/src/utils → utils}/memoize.js +0 -0
- package/lib/{redoc-lib/src/utils → utils}/object.d.ts +0 -0
- package/lib/{redoc-lib/src/utils → utils}/object.js +0 -0
- package/lib/utils/openapi.d.ts +41 -0
- package/lib/utils/openapi.js +2 -0
- package/lib/utils/parameters.d.ts +2 -0
- package/lib/utils/parameters.js +2 -0
- package/lib/utils/security-details.d.ts +13 -0
- package/lib/utils/security-details.js +2 -0
- package/lib/utils/session-storage.d.ts +2 -0
- package/lib/utils/session-storage.js +2 -0
- package/lib/{redoc-lib/src/utils → utils}/sort.d.ts +0 -0
- package/lib/{redoc-lib/src/utils → utils}/sort.js +0 -0
- package/lib/utils/store.d.ts +3 -0
- package/lib/utils/store.js +2 -0
- package/lib/utils/string.d.ts +3 -0
- package/lib/utils/string.js +2 -0
- package/lib/{redoc-lib/src/utils → utils}/test-utils.d.ts +0 -0
- package/lib/{redoc-lib/src/utils → utils}/test-utils.js +0 -0
- package/lib/{redoc-lib/src/utils → utils}/theme-helpers.d.ts +0 -0
- package/lib/{redoc-lib/src/utils → utils}/theme-helpers.js +0 -0
- package/lib-esm/cli/commands/bundle.js +1 -1
- package/lib-esm/components/ApiInfo/ApiInfo.d.ts +4 -0
- package/lib-esm/components/ApiInfo/ApiInfo.js +2 -0
- package/lib-esm/components/ApiInfo/index.d.ts +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/ApiInfo/index.js +0 -0
- package/lib-esm/components/ApiInfo/styled.d.ts +4 -0
- package/lib-esm/components/ApiInfo/styled.js +24 -0
- package/lib-esm/components/ApiInfo/types.d.ts +4 -0
- package/lib-esm/components/{console/AuthPanel → ApiInfo}/types.js +0 -0
- package/lib-esm/components/CallbackSamples/CallbackReqSamples.d.ts +7 -0
- package/lib-esm/components/CallbackSamples/CallbackReqSamples.js +4 -0
- package/lib-esm/components/CallbackSamples/CallbackSamples.d.ts +7 -0
- package/lib-esm/components/CallbackSamples/CallbackSamples.js +2 -0
- package/lib-esm/components/CallbackSamples/index.d.ts +1 -0
- package/lib-esm/components/CallbackSamples/index.js +2 -0
- package/lib-esm/components/Callbacks/CallbackDetails.d.ts +6 -0
- package/lib-esm/components/Callbacks/CallbackDetails.js +4 -0
- package/lib-esm/components/Callbacks/CallbackOperation.d.ts +5 -0
- package/lib-esm/components/Callbacks/CallbackOperation.js +2 -0
- package/lib-esm/components/Callbacks/CallbackSummary.d.ts +6 -0
- package/lib-esm/components/Callbacks/CallbackSummary.js +2 -0
- package/lib-esm/components/Callbacks/CallbacksList.d.ts +6 -0
- package/lib-esm/components/Callbacks/CallbacksList.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/Callbacks/index.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/Callbacks/index.js +0 -0
- package/lib-esm/{redoc-lib/src/components/Callbacks/CallbackTitle.d.ts → components/Callbacks/styled.d.ts} +0 -0
- package/lib-esm/components/Callbacks/styled.js +7 -0
- package/lib-esm/components/ContentItem/ContentItem.d.ts +11 -0
- package/lib-esm/components/ContentItem/ContentItem.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/ContentItem/index.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/ContentItem/index.js +0 -0
- package/lib-esm/components/ContentItems/ContentItems.d.ts +9 -0
- package/lib-esm/components/ContentItems/ContentItems.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/ContentItems/Skeleton.d.ts +0 -0
- package/lib-esm/components/ContentItems/Skeleton.js +31 -0
- package/lib-esm/{redoc-lib/src/components → components}/ContentItems/index.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/ContentItems/index.js +0 -0
- package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +11 -0
- package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.js +2 -0
- package/lib-esm/components/DiscriminatorDropdown/index.d.ts +1 -0
- package/lib-esm/components/DiscriminatorDropdown/index.js +2 -0
- package/lib-esm/components/Download/DownloadButtonWithLabel.d.ts +4 -0
- package/lib-esm/components/Download/DownloadButtonWithLabel.js +21 -0
- package/lib-esm/components/Download/DownloadLink.d.ts +2 -0
- package/lib-esm/components/Download/DownloadLink.js +4 -0
- package/lib-esm/components/Download/index.d.ts +3 -0
- package/lib-esm/components/Download/index.js +2 -0
- package/lib-esm/components/Download/types.d.ts +6 -0
- package/lib-esm/components/{console/RequestBody → Download}/types.js +0 -0
- package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.d.ts +7 -0
- package/lib-esm/components/DropdownOrLabel/DropdownOrLabel.js +8 -0
- package/lib-esm/components/DropdownOrLabel/index.d.ts +1 -0
- package/lib-esm/components/DropdownOrLabel/index.js +2 -0
- package/lib-esm/components/Endpoint/Endpoint.js +1 -1
- package/lib-esm/components/Endpoint/ServerList.js +1 -1
- package/lib-esm/components/Endpoint/styled.js +1 -1
- package/lib-esm/components/Endpoint/types.d.ts +1 -1
- package/lib-esm/{redoc-lib/src/components → components/ErrorBoundary}/ErrorBoundary.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components/ErrorBoundary}/ErrorBoundary.js +0 -0
- package/lib-esm/components/ErrorBoundary/index.d.ts +1 -0
- package/lib-esm/components/ErrorBoundary/index.js +2 -0
- package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.d.ts +8 -0
- package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.js +5 -0
- package/lib-esm/components/ExternalDocumentation/index.d.ts +1 -0
- package/lib-esm/components/ExternalDocumentation/index.js +2 -0
- package/lib-esm/{redoc-lib/src/components/Fields/FieldContstraints.d.ts → components/Fields/ConstraintsView.d.ts} +0 -0
- package/lib-esm/components/Fields/ConstraintsView.js +2 -0
- package/lib-esm/components/Fields/DescriptionEnums.d.ts +4 -0
- package/lib-esm/components/Fields/DescriptionEnums.js +2 -0
- package/lib-esm/components/Fields/EnumValues.d.ts +3 -0
- package/lib-esm/components/Fields/EnumValues.js +2 -0
- package/lib-esm/components/Fields/Examples.d.ts +5 -0
- package/lib-esm/components/Fields/Examples.js +2 -0
- package/lib-esm/components/Fields/Extensions.d.ts +3 -0
- package/lib-esm/components/Fields/Extensions.js +4 -0
- package/lib-esm/components/Fields/Field.d.ts +4 -0
- package/lib-esm/components/Fields/Field.js +2 -0
- package/lib-esm/components/Fields/FieldDetail.d.ts +8 -0
- package/lib-esm/components/Fields/FieldDetail.js +2 -0
- package/lib-esm/components/Fields/FieldDetails.d.ts +4 -0
- package/lib-esm/components/Fields/FieldDetails.js +2 -0
- package/lib-esm/components/Fields/SimpleEnums.d.ts +4 -0
- package/lib-esm/components/Fields/SimpleEnums.js +2 -0
- package/lib-esm/components/Fields/index.d.ts +4 -0
- package/lib-esm/components/Fields/index.js +2 -0
- package/lib-esm/components/Fields/styled.d.ts +13 -0
- package/lib-esm/components/Fields/styled.js +26 -0
- package/lib-esm/components/Fields/types.d.ts +40 -0
- package/lib-esm/components/{console/ServersDropdown → Fields}/types.js +0 -0
- package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +9 -0
- package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +2 -0
- package/lib-esm/components/GenericChildrenSwitcher/index.d.ts +1 -0
- package/lib-esm/components/GenericChildrenSwitcher/index.js +2 -0
- package/lib-esm/components/Loading/Loading.d.ts +4 -0
- package/lib-esm/components/Loading/Loading.js +9 -0
- package/lib-esm/components/Loading/index.d.ts +1 -0
- package/lib-esm/components/Loading/index.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/Markdown/AdvancedMarkdown.d.ts +0 -0
- package/lib-esm/components/Markdown/AdvancedMarkdown.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/Markdown/Markdown.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/Markdown/Markdown.js +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/Markdown/SanitizedMarkdownHTML.d.ts +0 -0
- package/lib-esm/components/Markdown/SanitizedMarkdownHTML.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/Markdown/index.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/Markdown/index.js +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/Markdown/styled.d.ts +0 -0
- package/lib-esm/components/Markdown/styled.js +257 -0
- package/lib-esm/{redoc-lib/src/components → components}/Markdown/types.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/Markdown/types.js +0 -0
- package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +11 -0
- package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.js +2 -0
- package/lib-esm/components/MediaTypeSwitch/index.d.ts +1 -0
- package/lib-esm/components/MediaTypeSwitch/index.js +2 -0
- package/lib-esm/components/NextSectionButton.d.ts +3 -3
- package/lib-esm/components/NextSectionButton.js +1 -1
- package/lib-esm/components/Operation/Operation.d.ts +4 -0
- package/lib-esm/components/Operation/Operation.js +8 -0
- package/lib-esm/components/Operation/index.d.ts +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/Operation/index.js +0 -0
- package/lib-esm/components/Operation/types.d.ts +6 -0
- package/lib-esm/{redoc-lib/src/components/PayloadSamples → components/Operation}/types.js +0 -0
- package/lib-esm/components/OperationParameters/OperationParameters.js +1 -1
- package/lib-esm/components/OperationParameters/types.d.ts +1 -1
- package/lib-esm/components/OperationParameters/utils.d.ts +2 -1
- package/lib-esm/components/OperationParameters/utils.js +1 -1
- package/lib-esm/components/Panel/ContentPanel.js +1 -1
- package/lib-esm/components/Panel/ResponsePanel.js +1 -1
- package/lib-esm/components/Parameters/BodyContent.d.ts +7 -0
- package/lib-esm/components/Parameters/BodyContent.js +4 -0
- package/lib-esm/components/Parameters/DropdownWithinHeader.d.ts +1 -0
- package/lib-esm/components/Parameters/DropdownWithinHeader.js +2 -0
- package/lib-esm/components/Parameters/Parameters.d.ts +6 -0
- package/lib-esm/components/Parameters/Parameters.js +2 -0
- package/lib-esm/components/Parameters/ParametersGroup.d.ts +9 -0
- package/lib-esm/components/Parameters/ParametersGroup.js +16 -0
- package/lib-esm/components/Parameters/index.d.ts +2 -0
- package/lib-esm/components/Parameters/index.js +2 -0
- package/lib-esm/components/PayloadSamples/Example.d.ts +2 -0
- package/lib-esm/components/PayloadSamples/Example.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/PayloadSamples/ExampleValue.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/PayloadSamples/ExampleValue.js +0 -0
- package/lib-esm/components/PayloadSamples/ExternalExample.d.ts +2 -0
- package/lib-esm/components/PayloadSamples/ExternalExample.js +2 -0
- package/lib-esm/components/PayloadSamples/MediaTypeSamples.d.ts +4 -0
- package/lib-esm/components/PayloadSamples/MediaTypeSamples.js +2 -0
- package/lib-esm/components/PayloadSamples/PayloadSamples.d.ts +4 -0
- package/lib-esm/components/PayloadSamples/PayloadSamples.js +2 -0
- package/lib-esm/components/PayloadSamples/index.d.ts +6 -0
- package/lib-esm/components/PayloadSamples/index.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/PayloadSamples/styled.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/PayloadSamples/styled.js +0 -0
- package/lib-esm/components/PayloadSamples/types.d.ts +25 -0
- package/lib-esm/{redoc-lib/src/components/Responses → components/PayloadSamples}/types.js +0 -0
- package/lib-esm/components/PayloadSamples/useExternalExample.d.ts +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/PayloadSamples/useExternalExample.js +0 -0
- package/lib-esm/components/ProProviders.d.ts +2 -2
- package/lib-esm/components/ProProviders.js +1 -1
- package/lib-esm/components/RedoclyReferenceDocs.d.ts +6 -20
- package/lib-esm/components/RedoclyReferenceDocs.js +2 -2
- package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.d.ts +2 -2
- package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.js +1 -1
- package/lib-esm/components/RenderHook/RenderHook.d.ts +7 -0
- package/lib-esm/{redoc-lib/src/components → components/RenderHook}/RenderHook.js +0 -0
- package/lib-esm/components/RenderHook/index.d.ts +1 -0
- package/lib-esm/components/RenderHook/index.js +2 -0
- package/lib-esm/components/RequestSamples/CodeSample.d.ts +18 -0
- package/lib-esm/components/RequestSamples/CodeSample.js +2 -0
- package/lib-esm/components/RequestSamples/Example.d.ts +10 -0
- package/lib-esm/components/RequestSamples/Example.js +2 -0
- package/lib-esm/components/RequestSamples/RequestSamples.d.ts +14 -0
- package/lib-esm/components/RequestSamples/RequestSamples.js +2 -0
- package/lib-esm/components/RequestSamples/index.d.ts +2 -0
- package/lib-esm/components/RequestSamples/index.js +2 -0
- package/lib-esm/components/RequestSamples/useCodeSamples.d.ts +10 -0
- package/lib-esm/{redoc-lib/src/components → components}/RequestSamples/useCodeSamples.js +0 -0
- package/lib-esm/components/ResponseSamples/ResponseSamples.d.ts +5 -0
- package/lib-esm/components/ResponseSamples/ResponseSamples.js +2 -0
- package/lib-esm/components/ResponseSamples/index.d.ts +1 -0
- package/lib-esm/components/ResponseSamples/index.js +2 -0
- package/lib-esm/components/Responses/Response.d.ts +4 -0
- package/lib-esm/components/Responses/Response.js +2 -0
- package/lib-esm/components/Responses/ResponseDetails.d.ts +3 -0
- package/lib-esm/components/Responses/ResponseDetails.js +4 -0
- package/lib-esm/{redoc-lib/src/components → components}/Responses/ResponseHeaders.d.ts +0 -0
- package/lib-esm/components/Responses/ResponseHeaders.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/Responses/ResponseSummary.d.ts +0 -0
- package/lib-esm/components/Responses/ResponseSummary.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/Responses/ResponsesList.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/Responses/ResponsesList.js +0 -0
- package/lib-esm/components/Responses/index.d.ts +5 -0
- package/lib-esm/components/Responses/index.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/Responses/styled.d.ts +0 -0
- package/lib-esm/components/Responses/styled.js +14 -0
- package/lib-esm/components/Responses/types.d.ts +12 -0
- package/lib-esm/{redoc-lib/src/components/Schema → components/Responses}/types.js +0 -0
- package/lib-esm/components/Samples/ExampleSwitch.d.ts +1 -1
- package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
- package/lib-esm/components/Samples/SamplesTabs.js +1 -1
- package/lib-esm/components/Samples/use-example-key.d.ts +1 -1
- package/lib-esm/{redoc-lib/src/components → components}/Schema/ArraySchema.d.ts +0 -0
- package/lib-esm/components/Schema/ArraySchema.js +4 -0
- package/lib-esm/components/Schema/ObjectSchema.d.ts +3 -0
- package/lib-esm/components/Schema/ObjectSchema.js +2 -0
- package/lib-esm/components/Schema/OneOfSchema.d.ts +3 -0
- package/lib-esm/components/Schema/OneOfSchema.js +2 -0
- package/lib-esm/components/Schema/RecursiveSchema.d.ts +3 -0
- package/lib-esm/components/Schema/RecursiveSchema.js +2 -0
- package/lib-esm/components/Schema/Schema.d.ts +3 -0
- package/lib-esm/components/Schema/Schema.js +2 -0
- package/lib-esm/components/Schema/index.d.ts +5 -0
- package/lib-esm/components/Schema/index.js +2 -0
- package/lib-esm/components/Schema/types.d.ts +22 -0
- package/lib-esm/{redoc-lib/src/components/SecuritySchemes → components/Schema}/types.js +0 -0
- package/lib-esm/components/SchemaDefinition/SchemaDefinition.d.ts +15 -0
- package/lib-esm/components/SchemaDefinition/SchemaDefinition.js +7 -0
- package/lib-esm/components/SchemaDefinition/index.d.ts +1 -0
- package/lib-esm/components/SchemaDefinition/index.js +2 -0
- package/lib-esm/components/Search/MenuItemProSearch.d.ts +1 -22
- package/lib-esm/components/Search/MenuItemProSearch.js +1 -9
- package/lib-esm/components/Search/SearchBox.d.ts +8 -0
- package/lib-esm/components/Search/SearchBox.js +2 -0
- package/lib-esm/components/Search/SearchField.d.ts +1 -1
- package/lib-esm/components/Search/index.d.ts +1 -1
- package/lib-esm/components/Search/index.js +1 -1
- package/lib-esm/components/Search/styled.d.ts +3 -0
- package/lib-esm/components/Search/styled.js +8 -0
- package/lib-esm/components/Search/types.d.ts +39 -0
- package/lib-esm/{redoc-lib/src/services → components/Search}/types.js +0 -0
- package/lib-esm/components/Search/utils.d.ts +11 -0
- package/lib-esm/components/Search/utils.js +2 -0
- package/lib-esm/components/SectionItem/SectionItem.d.ts +7 -0
- package/lib-esm/components/SectionItem/SectionItem.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/SectionItem/index.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/SectionItem/index.js +0 -0
- package/lib-esm/components/SecurityRequirement/PanelDescription.d.ts +7 -0
- package/lib-esm/components/SecurityRequirement/PanelDescription.js +2 -0
- package/lib-esm/components/SecurityRequirement/RequiredScopesRow.d.ts +3 -0
- package/lib-esm/components/SecurityRequirement/RequiredScopesRow.js +2 -0
- package/lib-esm/components/SecurityRequirement/RequirementElement.d.ts +7 -0
- package/lib-esm/components/SecurityRequirement/RequirementElement.js +24 -0
- package/lib-esm/components/SecurityRequirement/SecurityDefs.d.ts +7 -0
- package/lib-esm/components/SecurityRequirement/SecurityDefs.js +4 -0
- package/lib-esm/components/SecurityRequirement/SecurityRequirement.d.ts +6 -0
- package/lib-esm/components/SecurityRequirement/SecurityRequirement.js +24 -0
- package/lib-esm/components/SecurityRequirement/constants.d.ts +6 -0
- package/lib-esm/components/SecurityRequirement/constants.js +2 -0
- package/lib-esm/components/SecurityRequirement/index.d.ts +3 -0
- package/lib-esm/components/SecurityRequirement/index.js +2 -0
- package/lib-esm/components/SecurityRequirement/styled.d.ts +1 -0
- package/lib-esm/components/SecurityRequirement/styled.js +4 -0
- package/lib-esm/{redoc-lib/src/components → components}/SecuritySchemes/SecuritySchemes.d.ts +0 -0
- package/lib-esm/components/SecuritySchemes/SecuritySchemes.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/SecuritySchemes/helpers.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/SecuritySchemes/helpers.js +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/SecuritySchemes/index.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/SecuritySchemes/index.js +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/SecuritySchemes/types.d.ts +0 -0
- package/lib-esm/components/SecuritySchemes/types.js +2 -0
- package/lib-esm/{redoc-lib/src/components → components}/SeeMore/SeeMore.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/components → components}/SeeMore/SeeMore.js +0 -0
- package/lib-esm/components/SeeMore/index.d.ts +1 -0
- package/lib-esm/components/SeeMore/index.js +2 -0
- package/lib-esm/components/SideMenu/MenuItem.d.ts +10 -0
- package/lib-esm/components/SideMenu/MenuItem.js +2 -0
- package/lib-esm/components/SideMenu/MenuItemEternalLink.d.ts +6 -0
- package/lib-esm/components/SideMenu/MenuItemEternalLink.js +2 -0
- package/lib-esm/components/SideMenu/MenuItemLinkOrLabel.d.ts +7 -0
- package/lib-esm/components/SideMenu/MenuItemLinkOrLabel.js +2 -0
- package/lib-esm/components/SideMenu/MenuItems.d.ts +2 -0
- package/lib-esm/components/SideMenu/MenuItems.js +2 -0
- package/lib-esm/components/SideMenu/MenuOperationItemContent.d.ts +7 -0
- package/lib-esm/components/SideMenu/MenuOperationItemContent.js +8 -0
- package/lib-esm/components/SideMenu/SideMenu.d.ts +5 -0
- package/lib-esm/components/SideMenu/SideMenu.js +2 -0
- package/lib-esm/components/SideMenu/index.d.ts +4 -0
- package/lib-esm/components/SideMenu/index.js +2 -0
- package/lib-esm/components/SideMenu/styled.d.ts +21 -0
- package/lib-esm/components/SideMenu/styled.js +97 -0
- package/lib-esm/components/SideMenu/types.d.ts +19 -0
- package/lib-esm/components/SideMenu/types.js +2 -0
- package/lib-esm/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +2 -0
- package/lib-esm/components/SourceCodeWithFile/SourceCodeWithFile.js +2 -0
- package/lib-esm/components/SourceCodeWithFile/index.d.ts +1 -0
- package/lib-esm/components/SourceCodeWithFile/index.js +2 -0
- package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.d.ts +11 -0
- package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.js +40 -0
- package/lib-esm/components/StickySidebar/index.d.ts +1 -0
- package/lib-esm/components/StickySidebar/index.js +2 -0
- package/lib-esm/components/StoreProvider.d.ts +3 -4
- package/lib-esm/components/StoreProvider.js +1 -1
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +1 -1
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +1 -1
- package/lib-esm/components/common/CheckboxList.d.ts +1 -14
- package/lib-esm/components/common/CheckboxList.js +1 -1
- package/lib-esm/components/common/Dropdown/Dropdown.js +1 -1
- package/lib-esm/components/common/Fields/fields-layout.d.ts +16 -0
- package/lib-esm/components/common/Fields/fields-layout.js +228 -0
- package/lib-esm/{redoc-lib/src/common-elements → components/common/Fields}/fields.d.ts +0 -0
- package/lib-esm/components/common/Fields/fields.js +103 -0
- package/lib-esm/components/common/Fields/index.d.ts +2 -0
- package/lib-esm/components/common/Fields/index.js +2 -0
- package/lib-esm/components/common/FileUpload/FileUpload.d.ts +1 -2
- package/lib-esm/components/common/FileUpload/helper.d.ts +1 -2
- package/lib-esm/components/common/LinkToField.d.ts +9 -0
- package/lib-esm/components/common/LinkToField.js +27 -0
- package/lib-esm/components/common/TextField.js +1 -1
- package/lib-esm/{redoc-lib/src/common-elements → components/common}/headers.d.ts +0 -0
- package/lib-esm/components/common/headers.js +36 -0
- package/lib-esm/components/common/index.d.ts +12 -0
- package/lib-esm/components/common/index.js +2 -0
- package/lib-esm/{redoc-lib/src/common-elements → components/common}/linkify.d.ts +0 -0
- package/lib-esm/components/common/linkify.js +55 -0
- package/lib-esm/{redoc-lib/src/common-elements → components/common}/mixins.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/common-elements → components/common}/mixins.js +0 -0
- package/lib-esm/components/common/panels.d.ts +13 -0
- package/lib-esm/components/common/panels.js +95 -0
- package/lib-esm/{redoc-lib/src/common-elements → components/common}/perfect-scrollbar.d.ts +0 -0
- package/lib-esm/components/common/perfect-scrollbar.js +4 -0
- package/lib-esm/{redoc-lib/src/common-elements → components/common}/schema.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/common-elements → components/common}/schema.js +0 -0
- package/lib-esm/{redoc-lib/src/common-elements → components/common}/shelfs.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/common-elements → components/common}/shelfs.js +0 -0
- package/lib-esm/components/icons/CrossIcon.d.ts +4 -0
- package/lib-esm/components/icons/CrossIcon.js +11 -0
- package/lib-esm/components/icons/FileIcon.d.ts +4 -0
- package/lib-esm/components/icons/FileIcon.js +9 -0
- package/lib-esm/components/icons/LinkIcon.d.ts +4 -0
- package/lib-esm/components/icons/LinkIcon.js +11 -0
- package/lib-esm/components/icons/LockIcon.d.ts +2 -0
- package/lib-esm/components/icons/LockIcon.js +12 -0
- package/lib-esm/components/icons/SearchIcon.d.ts +5 -0
- package/lib-esm/components/icons/SearchIcon.js +11 -0
- package/lib-esm/components/icons/ShelfIcon.d.ts +2 -0
- package/lib-esm/components/icons/ShelfIcon.js +12 -0
- package/lib-esm/components/icons/Spinner.d.ts +2 -0
- package/lib-esm/components/icons/Spinner.js +19 -0
- package/lib-esm/components/icons/index.d.ts +8 -0
- package/lib-esm/components/icons/index.js +2 -0
- package/lib-esm/components/icons/types.d.ts +10 -0
- package/lib-esm/components/icons/types.js +2 -0
- package/lib-esm/components/index.d.ts +28 -7
- package/lib-esm/components/index.js +1 -1
- package/lib-esm/components/pluggable/PullRight.js +1 -1
- package/lib-esm/components/pluggable/RedocExample.d.ts +3 -6
- package/lib-esm/components/pluggable/RedocExample.js +1 -1
- package/lib-esm/components/pluggable/RedocRequestBody.d.ts +1 -4
- package/lib-esm/components/pluggable/RedocRequestBody.js +1 -1
- package/lib-esm/components/pluggable/RedocResponse.d.ts +2 -5
- package/lib-esm/components/pluggable/RedocResponse.js +1 -1
- package/lib-esm/components/pluggable/RedocSchema.d.ts +2 -5
- package/lib-esm/components/pluggable/RedocSchema.js +1 -1
- package/lib-esm/components/pluggable/index.d.ts +5 -5
- package/lib-esm/components/pluggable/index.js +1 -1
- package/lib-esm/components/pluggable/styled.components.js +1 -1
- package/lib-esm/components/rightPanel/ActionPanel.d.ts +12 -0
- package/lib-esm/components/rightPanel/ActionPanel.js +4 -0
- package/lib-esm/components/rightPanel/AuthPanel/AuthPanel.d.ts +2 -0
- package/lib-esm/components/rightPanel/AuthPanel/AuthPanel.js +2 -0
- package/lib-esm/components/{console → rightPanel}/AuthPanel/index.d.ts +0 -0
- package/lib-esm/components/{console → rightPanel}/AuthPanel/index.js +0 -0
- package/lib-esm/components/rightPanel/AuthPanel/types.d.ts +14 -0
- package/lib-esm/components/rightPanel/AuthPanel/types.js +2 -0
- package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.d.ts +5 -0
- package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.js +2 -0
- package/lib-esm/components/{console/codemirror-helpers.d.ts → rightPanel/CodemirrorInput/helpers.d.ts} +0 -0
- package/lib-esm/components/rightPanel/CodemirrorInput/helpers.js +2 -0
- package/lib-esm/components/rightPanel/CodemirrorInput/index.d.ts +1 -0
- package/lib-esm/components/rightPanel/CodemirrorInput/index.js +2 -0
- package/lib-esm/components/rightPanel/CodemirrorInput/styled.d.ts +1 -0
- package/lib-esm/components/rightPanel/CodemirrorInput/styled.js +50 -0
- package/lib-esm/components/rightPanel/CodemirrorInput/types.d.ts +22 -0
- package/lib-esm/components/rightPanel/CodemirrorInput/types.js +2 -0
- package/lib-esm/components/rightPanel/Console/Console.d.ts +3 -0
- package/lib-esm/components/rightPanel/Console/Console.js +2 -0
- package/lib-esm/components/rightPanel/Console/ConsoleLazy.d.ts +2 -0
- package/lib-esm/components/rightPanel/Console/ConsoleLazy.js +2 -0
- package/lib-esm/components/rightPanel/Console/ConsoleWrapper.d.ts +6 -0
- package/lib-esm/components/rightPanel/Console/ConsoleWrapper.js +2 -0
- package/lib-esm/components/rightPanel/Console/Request.d.ts +12 -0
- package/lib-esm/components/rightPanel/Console/Request.js +2 -0
- package/lib-esm/components/rightPanel/Console/index.d.ts +1 -0
- package/lib-esm/components/rightPanel/Console/index.js +2 -0
- package/lib-esm/components/rightPanel/Console/types.d.ts +18 -0
- package/lib-esm/components/rightPanel/Console/types.js +2 -0
- package/lib-esm/components/{console → rightPanel}/ConsoleTabs/ConsoleTabs.d.ts +0 -0
- package/lib-esm/components/{console → rightPanel}/ConsoleTabs/ConsoleTabs.js +0 -0
- package/lib-esm/components/{console → rightPanel}/ConsoleTabs/index.d.ts +0 -0
- package/lib-esm/components/{console → rightPanel}/ConsoleTabs/index.js +0 -0
- package/lib-esm/components/{console → rightPanel}/ConsoleTabs/styled.d.ts +0 -0
- package/lib-esm/components/{console → rightPanel}/ConsoleTabs/styled.js +0 -0
- package/lib-esm/components/rightPanel/OAuth2Flow/Error.d.ts +7 -0
- package/lib-esm/components/rightPanel/OAuth2Flow/Error.js +2 -0
- package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.d.ts +2 -0
- package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.js +2 -0
- package/lib-esm/components/rightPanel/OAuth2Flow/index.d.ts +2 -0
- package/lib-esm/components/rightPanel/OAuth2Flow/index.js +2 -0
- package/lib-esm/components/rightPanel/OAuth2Flow/styled.d.ts +4 -0
- package/lib-esm/components/rightPanel/OAuth2Flow/styled.js +14 -0
- package/lib-esm/components/rightPanel/OAuth2Flow/types.d.ts +20 -0
- package/lib-esm/components/rightPanel/OAuth2Flow/types.js +2 -0
- package/lib-esm/components/rightPanel/OAuth2TokenInput.d.ts +21 -0
- package/lib-esm/components/rightPanel/OAuth2TokenInput.js +2 -0
- package/lib-esm/components/rightPanel/OpenIDConnect.d.ts +17 -0
- package/lib-esm/components/{console → rightPanel}/OpenIDConnect.js +0 -0
- package/lib-esm/components/rightPanel/ParameterArray.d.ts +9 -0
- package/lib-esm/components/{console → rightPanel}/ParameterArray.js +0 -0
- package/lib-esm/components/{console → rightPanel}/ParameterDropdown.d.ts +0 -0
- package/lib-esm/components/rightPanel/ParameterDropdown.js +2 -0
- package/lib-esm/components/rightPanel/RequestBody/Body.d.ts +3 -0
- package/lib-esm/components/rightPanel/RequestBody/Body.js +2 -0
- package/lib-esm/components/rightPanel/RequestBody/RequestBody.d.ts +3 -0
- package/lib-esm/components/rightPanel/RequestBody/RequestBody.js +2 -0
- package/lib-esm/components/{console → rightPanel}/RequestBody/index.d.ts +0 -0
- package/lib-esm/components/{console → rightPanel}/RequestBody/index.js +0 -0
- package/lib-esm/components/rightPanel/RequestBody/types.d.ts +16 -0
- package/lib-esm/components/rightPanel/RequestBody/types.js +2 -0
- package/lib-esm/components/rightPanel/RequestBodyForm.d.ts +8 -0
- package/lib-esm/components/rightPanel/RequestBodyForm.js +10 -0
- package/lib-esm/components/{console → rightPanel}/RequestMimeLabel.d.ts +0 -0
- package/lib-esm/components/{console → rightPanel}/RequestMimeLabel.js +0 -0
- package/lib-esm/components/rightPanel/ResponseBody.d.ts +4 -0
- package/lib-esm/components/rightPanel/ResponseBody.js +2 -0
- package/lib-esm/components/{console → rightPanel}/ResponseHeadersList.d.ts +0 -0
- package/lib-esm/components/rightPanel/ResponseHeadersList.js +10 -0
- package/lib-esm/components/rightPanel/ResponsePanel.d.ts +9 -0
- package/lib-esm/components/rightPanel/ResponsePanel.js +18 -0
- package/lib-esm/components/{console → rightPanel}/Scope.d.ts +0 -0
- package/lib-esm/components/{console → rightPanel}/Scope.js +0 -0
- package/lib-esm/components/{console → rightPanel}/ServerVariable.d.ts +0 -0
- package/lib-esm/components/rightPanel/ServerVariable.js +5 -0
- package/lib-esm/components/{console → rightPanel}/ServersDropdown/ServersDropdown.d.ts +0 -0
- package/lib-esm/components/rightPanel/ServersDropdown/ServersDropdown.js +4 -0
- package/lib-esm/components/{console → rightPanel}/ServersDropdown/index.d.ts +0 -0
- package/lib-esm/components/{console → rightPanel}/ServersDropdown/index.js +0 -0
- package/lib-esm/components/rightPanel/ServersDropdown/types.d.ts +6 -0
- package/lib-esm/components/rightPanel/ServersDropdown/types.js +2 -0
- package/lib-esm/components/{console → rightPanel}/TryItPanel.d.ts +0 -0
- package/lib-esm/components/rightPanel/TryItPanel.js +14 -0
- package/lib-esm/components/{console → rightPanel}/styled.d.ts +0 -0
- package/lib-esm/components/{console → rightPanel}/styled.js +0 -0
- package/lib-esm/components/rightPanel/types.d.ts +10 -0
- package/lib-esm/components/rightPanel/types.js +2 -0
- package/lib-esm/components/rightPanel/utils.d.ts +28 -0
- package/lib-esm/components/rightPanel/utils.js +2 -0
- package/lib-esm/components/styled.elements.d.ts +1 -1
- package/lib-esm/components/styled.elements.js +1 -1
- package/lib-esm/components/types.d.ts +1 -8
- package/lib-esm/constants.d.ts +27 -2
- package/lib-esm/constants.js +1 -1
- package/lib-esm/context/OptionsProvider.d.ts +6 -0
- package/lib-esm/context/OptionsProvider.js +2 -0
- package/lib-esm/context/StoreProvider.d.ts +6 -0
- package/lib-esm/context/StoreProvider.js +2 -0
- package/lib-esm/context/index.d.ts +2 -0
- package/lib-esm/context/index.js +2 -0
- package/lib-esm/events/types.d.ts +1 -1
- package/lib-esm/hooks/index.d.ts +1 -2
- package/lib-esm/hooks/index.js +1 -1
- package/lib-esm/hooks/usePrevious.d.ts +1 -0
- package/lib-esm/hooks/usePrevious.js +2 -0
- package/lib-esm/index.d.ts +5 -3
- package/lib-esm/index.js +1 -1
- package/lib-esm/models/ApiInfo.d.ts +17 -0
- package/lib-esm/models/ApiInfo.js +2 -0
- package/lib-esm/models/Callback.d.ts +11 -0
- package/lib-esm/models/Callback.js +2 -0
- package/lib-esm/models/Example.d.ts +17 -0
- package/lib-esm/models/Example.js +2 -0
- package/lib-esm/models/Field.d.ts +34 -0
- package/lib-esm/models/Field.js +2 -0
- package/lib-esm/models/Group.d.ts +26 -0
- package/lib-esm/models/Group.js +2 -0
- package/lib-esm/models/MediaContent.d.ts +31 -0
- package/lib-esm/models/MediaContent.js +2 -0
- package/lib-esm/models/MediaType.d.ts +27 -0
- package/lib-esm/models/MediaType.js +2 -0
- package/lib-esm/models/Operation.d.ts +92 -0
- package/lib-esm/models/Operation.js +2 -0
- package/lib-esm/models/RequestBody.d.ts +18 -0
- package/lib-esm/models/RequestBody.js +2 -0
- package/lib-esm/models/Response.d.ts +28 -0
- package/lib-esm/models/Response.js +2 -0
- package/lib-esm/models/Schema.d.ts +78 -0
- package/lib-esm/models/Schema.js +2 -0
- package/lib-esm/models/SecurityRequirement.d.ts +12 -0
- package/lib-esm/{redoc-lib/src/services/models → models}/SecurityRequirement.js +0 -0
- package/lib-esm/models/SecuritySchemes.d.ts +25 -0
- package/lib-esm/{redoc-lib/src/services/models → models}/SecuritySchemes.js +0 -0
- package/lib-esm/models/Webhook.d.ts +8 -0
- package/lib-esm/models/Webhook.js +2 -0
- package/lib-esm/models/index.d.ts +15 -0
- package/lib-esm/models/index.js +1 -1
- package/lib-esm/models/types.d.ts +3 -0
- package/lib-esm/models/types.js +2 -0
- package/lib-esm/services/MarkdownRenderer.d.ts +23 -0
- package/lib-esm/services/MarkdownRenderer.js +2 -0
- package/lib-esm/{redoc-lib/src/services → services}/MarkerService.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/services → services}/MarkerService.js +0 -0
- package/lib-esm/services/MenuBuilder.d.ts +63 -0
- package/lib-esm/services/MenuBuilder.js +2 -0
- package/lib-esm/services/OpenAPIParser.d.ts +51 -0
- package/lib-esm/services/OpenAPIParser.js +2 -0
- package/lib-esm/services/Options/NormalizedOptions.d.ts +2 -0
- package/lib-esm/services/Options/NormalizedOptions.js +2 -0
- package/lib-esm/services/Options/helpers.d.ts +8 -0
- package/lib-esm/services/Options/helpers.js +2 -0
- package/lib-esm/services/Options/index.d.ts +2 -0
- package/lib-esm/services/Options/index.js +2 -0
- package/lib-esm/services/Options/types.d.ts +258 -0
- package/lib-esm/services/Options/types.js +2 -0
- package/lib-esm/services/ProMenu.d.ts +5 -4
- package/lib-esm/services/ProMenu.js +1 -1
- package/lib-esm/services/ProStore.d.ts +14 -77
- package/lib-esm/services/ProStore.js +1 -1
- package/lib-esm/services/ScrollService.d.ts +18 -0
- package/lib-esm/{redoc-lib/src/services → services}/ScrollService.js +0 -0
- package/lib-esm/services/SpecStore.d.ts +18 -0
- package/lib-esm/services/SpecStore.js +2 -0
- package/lib-esm/services/VersionedSpecStore.d.ts +7 -5
- package/lib-esm/services/VersionedSpecStore.js +1 -1
- package/lib-esm/services/code-samples/generator.d.ts +2 -1
- package/lib-esm/services/code-samples/generator.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/index.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/go/native.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.js +1 -1
- package/lib-esm/services/history/FakeHistoryService.d.ts +4 -4
- package/lib-esm/{redoc-lib/src/services → services/history}/HistoryService.d.ts +0 -0
- package/lib-esm/services/history/HistoryService.js +2 -0
- package/lib-esm/services/history/ProHashHistoryService.d.ts +4 -4
- package/lib-esm/services/history/ProHashHistoryService.js +1 -1
- package/lib-esm/services/history/PushStateHistoryService.d.ts +4 -4
- package/lib-esm/services/history/PushStateHistoryService.js +1 -1
- package/lib-esm/services/history/helpers.d.ts +1 -1
- package/lib-esm/services/history/index.d.ts +1 -0
- package/lib-esm/services/history/index.js +1 -1
- package/lib-esm/services/index.d.ts +13 -1
- package/lib-esm/services/index.js +1 -1
- package/lib-esm/{redoc-lib/src/services/Labels.d.ts → services/labels/LabelsService.d.ts} +0 -0
- package/lib-esm/services/labels/LabelsService.js +2 -0
- package/lib-esm/services/labels/index.d.ts +2 -0
- package/lib-esm/services/labels/index.js +2 -0
- package/lib-esm/services/labels/types.d.ts +28 -0
- package/lib-esm/services/labels/types.js +2 -0
- package/lib-esm/services/search/DeepSearchStore.d.ts +19 -0
- package/lib-esm/services/search/DeepSearchStore.js +2 -0
- package/lib-esm/services/search/RemoteSearch.d.ts +17 -0
- package/lib-esm/services/search/RemoteSearch.js +2 -0
- package/lib-esm/services/search/SearchStore.d.ts +14 -0
- package/lib-esm/services/search/SearchStore.js +2 -0
- package/lib-esm/{redoc-lib/src/services → services/search}/SearchWorker.worker.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/services → services/search}/SearchWorker.worker.js +0 -0
- package/lib-esm/services/search/index.d.ts +4 -0
- package/lib-esm/services/search/index.js +2 -0
- package/lib-esm/services/search/types.d.ts +15 -0
- package/lib-esm/services/search/types.js +2 -0
- package/lib-esm/services/types.d.ts +189 -0
- package/lib-esm/services/utils.js +1 -1
- package/lib-esm/standalone.d.ts +5 -4
- package/lib-esm/standalone.js +1 -1
- package/lib-esm/testProviders.js +1 -1
- package/lib-esm/types/index.d.ts +3 -0
- package/lib-esm/types/index.js +2 -0
- package/lib-esm/types/open-api.d.ts +337 -0
- package/lib-esm/{redoc-lib/src/types → types}/open-api.js +0 -0
- package/lib-esm/types/security.d.ts +11 -0
- package/lib-esm/types/security.js +2 -0
- package/lib-esm/{redoc-lib/src/types → types}/server.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/types → types}/server.js +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/JsonPointer.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/JsonPointer.js +0 -0
- package/lib-esm/utils/argValuesHelpers.d.ts +4 -0
- package/lib-esm/utils/argValuesHelpers.js +2 -0
- package/lib-esm/utils/debounce.d.ts +1 -0
- package/lib-esm/utils/debounce.js +2 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/debug.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/debug.js +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/decorators.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/decorators.js +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/dom.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/dom.js +0 -0
- package/lib-esm/utils/helpers.d.ts +51 -0
- package/lib-esm/utils/helpers.js +2 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/highlight.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/highlight.js +0 -0
- package/lib-esm/utils/index.d.ts +21 -0
- package/lib-esm/utils/index.js +2 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/loadAndBundleSpec.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/loadAndBundleSpec.js +0 -0
- package/lib-esm/utils/local-storage.d.ts +2 -0
- package/lib-esm/utils/local-storage.js +2 -0
- package/lib-esm/utils/media-css.d.ts +8 -0
- package/lib-esm/utils/media-css.js +2 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/memoize.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/memoize.js +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/object.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/object.js +0 -0
- package/lib-esm/utils/openapi.d.ts +41 -0
- package/lib-esm/utils/openapi.js +2 -0
- package/lib-esm/utils/parameters.d.ts +2 -0
- package/lib-esm/utils/parameters.js +2 -0
- package/lib-esm/utils/security-details.d.ts +13 -0
- package/lib-esm/utils/security-details.js +2 -0
- package/lib-esm/utils/session-storage.d.ts +2 -0
- package/lib-esm/utils/session-storage.js +2 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/sort.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/sort.js +0 -0
- package/lib-esm/utils/store.d.ts +3 -0
- package/lib-esm/utils/store.js +2 -0
- package/lib-esm/utils/string.d.ts +3 -0
- package/lib-esm/utils/string.js +2 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/test-utils.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/test-utils.js +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/theme-helpers.d.ts +0 -0
- package/lib-esm/{redoc-lib/src/utils → utils}/theme-helpers.js +0 -0
- package/package.json +1 -2
- package/lib/components/Search/ProSearchBox.d.ts +0 -52
- package/lib/components/Search/ProSearchBox.js +0 -2
- package/lib/components/console/ActionPanel.d.ts +0 -12
- package/lib/components/console/ActionPanel.js +0 -4
- package/lib/components/console/AuthPanel/AuthPanel.d.ts +0 -13
- package/lib/components/console/AuthPanel/AuthPanel.js +0 -2
- package/lib/components/console/AuthPanel/types.d.ts +0 -14
- package/lib/components/console/CodemirrorInput.d.ts +0 -39
- package/lib/components/console/CodemirrorInput.js +0 -50
- package/lib/components/console/Console.d.ts +0 -47
- package/lib/components/console/Console.js +0 -2
- package/lib/components/console/ConsoleLazy.d.ts +0 -2
- package/lib/components/console/ConsoleLazy.js +0 -2
- package/lib/components/console/OAuth2Flow.d.ts +0 -57
- package/lib/components/console/OAuth2Flow.js +0 -14
- package/lib/components/console/OAuth2TokenInput.d.ts +0 -35
- package/lib/components/console/OAuth2TokenInput.js +0 -2
- package/lib/components/console/OpenIDConnect.d.ts +0 -17
- package/lib/components/console/ParameterArray.d.ts +0 -9
- package/lib/components/console/ParameterDropdown.js +0 -2
- package/lib/components/console/RequestBody/RequestBody.d.ts +0 -3
- package/lib/components/console/RequestBody/RequestBody.js +0 -2
- package/lib/components/console/RequestBody/types.d.ts +0 -10
- package/lib/components/console/RequestBodyForm.d.ts +0 -9
- package/lib/components/console/RequestBodyForm.js +0 -10
- package/lib/components/console/ResponseBody.d.ts +0 -4
- package/lib/components/console/ResponseBody.js +0 -2
- package/lib/components/console/ResponseHeadersList.js +0 -10
- package/lib/components/console/ResponsePanel.d.ts +0 -21
- package/lib/components/console/ResponsePanel.js +0 -18
- package/lib/components/console/ServerVariable.js +0 -5
- package/lib/components/console/ServersDropdown/ServersDropdown.js +0 -4
- package/lib/components/console/ServersDropdown/types.d.ts +0 -5
- package/lib/components/console/TryItPanel.js +0 -14
- package/lib/components/console/codemirror-helpers.js +0 -2
- package/lib/components/console/utils.d.ts +0 -27
- package/lib/components/console/utils.js +0 -2
- package/lib/hooks/useMount.d.ts +0 -1
- package/lib/hooks/useMount.js +0 -2
- package/lib/hooks/useUnmount.d.ts +0 -1
- package/lib/hooks/useUnmount.js +0 -2
- package/lib/redoc-lib/index.d.ts +0 -1
- package/lib/redoc-lib/index.js +0 -2
- package/lib/redoc-lib/src/common-elements/Download.d.ts +0 -7
- package/lib/redoc-lib/src/common-elements/Download.js +0 -4
- package/lib/redoc-lib/src/common-elements/LinkToField.d.ts +0 -9
- package/lib/redoc-lib/src/common-elements/LinkToField.js +0 -27
- package/lib/redoc-lib/src/common-elements/fields-layout.d.ts +0 -15
- package/lib/redoc-lib/src/common-elements/fields-layout.js +0 -228
- package/lib/redoc-lib/src/common-elements/fields.js +0 -103
- package/lib/redoc-lib/src/common-elements/headers.js +0 -36
- package/lib/redoc-lib/src/common-elements/icons.d.ts +0 -41
- package/lib/redoc-lib/src/common-elements/icons.js +0 -55
- package/lib/redoc-lib/src/common-elements/index.d.ts +0 -9
- package/lib/redoc-lib/src/common-elements/index.js +0 -2
- package/lib/redoc-lib/src/common-elements/linkify.js +0 -55
- package/lib/redoc-lib/src/common-elements/panels.d.ts +0 -13
- package/lib/redoc-lib/src/common-elements/panels.js +0 -95
- package/lib/redoc-lib/src/common-elements/perfect-scrollbar.js +0 -4
- package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +0 -5
- package/lib/redoc-lib/src/components/ApiInfo/ApiInfo.js +0 -2
- package/lib/redoc-lib/src/components/ApiInfo/index.d.ts +0 -1
- package/lib/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +0 -8
- package/lib/redoc-lib/src/components/ApiInfo/styled.elements.js +0 -24
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +0 -11
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +0 -4
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +0 -12
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +0 -2
- package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +0 -8
- package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.js +0 -4
- package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +0 -5
- package/lib/redoc-lib/src/components/Callbacks/CallbackOperation.js +0 -2
- package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +0 -6
- package/lib/redoc-lib/src/components/Callbacks/CallbackSummary.js +0 -2
- package/lib/redoc-lib/src/components/Callbacks/CallbackTitle.js +0 -7
- package/lib/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +0 -8
- package/lib/redoc-lib/src/components/Callbacks/CallbacksList.js +0 -2
- package/lib/redoc-lib/src/components/ContentItem/ContentItem.d.ts +0 -9
- package/lib/redoc-lib/src/components/ContentItem/ContentItem.js +0 -2
- package/lib/redoc-lib/src/components/ContentItems/ContentItems.d.ts +0 -8
- package/lib/redoc-lib/src/components/ContentItems/ContentItems.js +0 -2
- package/lib/redoc-lib/src/components/ContentItems/Skeleton.js +0 -31
- package/lib/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +0 -10
- package/lib/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.js +0 -2
- package/lib/redoc-lib/src/components/DiscriminatorDropdown/index.d.ts +0 -1
- package/lib/redoc-lib/src/components/DiscriminatorDropdown/index.js +0 -2
- package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +0 -4
- package/lib/redoc-lib/src/components/DownloadButton/DownloadButton.js +0 -21
- package/lib/redoc-lib/src/components/DownloadButton/index.d.ts +0 -1
- package/lib/redoc-lib/src/components/DownloadButton/index.js +0 -2
- package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -7
- package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +0 -8
- package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +0 -8
- package/lib/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +0 -5
- package/lib/redoc-lib/src/components/Fields/EnumValues.d.ts +0 -17
- package/lib/redoc-lib/src/components/Fields/EnumValues.js +0 -13
- package/lib/redoc-lib/src/components/Fields/Extensions.d.ts +0 -9
- package/lib/redoc-lib/src/components/Fields/Extensions.js +0 -6
- package/lib/redoc-lib/src/components/Fields/Field.d.ts +0 -20
- package/lib/redoc-lib/src/components/Fields/Field.js +0 -2
- package/lib/redoc-lib/src/components/Fields/FieldContstraints.js +0 -2
- package/lib/redoc-lib/src/components/Fields/FieldDetail.d.ts +0 -10
- package/lib/redoc-lib/src/components/Fields/FieldDetail.js +0 -2
- package/lib/redoc-lib/src/components/Fields/FieldDetails.d.ts +0 -12
- package/lib/redoc-lib/src/components/Fields/FieldDetails.js +0 -15
- package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -22
- package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +0 -2
- package/lib/redoc-lib/src/components/Loading/Loading.d.ts +0 -5
- package/lib/redoc-lib/src/components/Loading/Loading.js +0 -9
- package/lib/redoc-lib/src/components/Loading/Spinner.d.ts +0 -6
- package/lib/redoc-lib/src/components/Loading/Spinner.js +0 -19
- package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +0 -2
- package/lib/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.js +0 -2
- package/lib/redoc-lib/src/components/Markdown/styled.js +0 -257
- package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +0 -13
- package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +0 -2
- package/lib/redoc-lib/src/components/Operation/Operation.d.ts +0 -7
- package/lib/redoc-lib/src/components/Operation/Operation.js +0 -8
- package/lib/redoc-lib/src/components/Operation/index.d.ts +0 -2
- package/lib/redoc-lib/src/components/OptionsProvider.d.ts +0 -6
- package/lib/redoc-lib/src/components/OptionsProvider.js +0 -2
- package/lib/redoc-lib/src/components/Parameters/Parameters.d.ts +0 -10
- package/lib/redoc-lib/src/components/Parameters/Parameters.js +0 -4
- package/lib/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +0 -10
- package/lib/redoc-lib/src/components/Parameters/ParametersGroup.js +0 -16
- package/lib/redoc-lib/src/components/PayloadSamples/Example.d.ts +0 -3
- package/lib/redoc-lib/src/components/PayloadSamples/Example.js +0 -2
- package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +0 -2
- package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +0 -2
- package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +0 -2
- package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +0 -2
- package/lib/redoc-lib/src/components/PayloadSamples/index.d.ts +0 -5
- package/lib/redoc-lib/src/components/PayloadSamples/index.js +0 -2
- package/lib/redoc-lib/src/components/PayloadSamples/types.d.ts +0 -25
- package/lib/redoc-lib/src/components/PayloadSamples/useExternalExample.d.ts +0 -2
- package/lib/redoc-lib/src/components/RenderHook.d.ts +0 -6
- package/lib/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +0 -16
- package/lib/redoc-lib/src/components/RequestSamples/CodeSample.js +0 -2
- package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +0 -12
- package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.js +0 -2
- package/lib/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +0 -9
- package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.d.ts +0 -5
- package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +0 -2
- package/lib/redoc-lib/src/components/Responses/Response.d.ts +0 -2
- package/lib/redoc-lib/src/components/Responses/Response.js +0 -2
- package/lib/redoc-lib/src/components/Responses/ResponseDetails.d.ts +0 -5
- package/lib/redoc-lib/src/components/Responses/ResponseDetails.js +0 -4
- package/lib/redoc-lib/src/components/Responses/ResponseHeaders.js +0 -2
- package/lib/redoc-lib/src/components/Responses/ResponseSummary.js +0 -2
- package/lib/redoc-lib/src/components/Responses/index.d.ts +0 -1
- package/lib/redoc-lib/src/components/Responses/index.js +0 -2
- package/lib/redoc-lib/src/components/Responses/styled.js +0 -14
- package/lib/redoc-lib/src/components/Responses/types.d.ts +0 -12
- package/lib/redoc-lib/src/components/Schema/ArraySchema.js +0 -4
- package/lib/redoc-lib/src/components/Schema/ObjectSchema.d.ts +0 -2
- package/lib/redoc-lib/src/components/Schema/ObjectSchema.js +0 -2
- package/lib/redoc-lib/src/components/Schema/OneOfSchema.d.ts +0 -2
- package/lib/redoc-lib/src/components/Schema/OneOfSchema.js +0 -2
- package/lib/redoc-lib/src/components/Schema/RecursiveSchema.d.ts +0 -2
- package/lib/redoc-lib/src/components/Schema/RecursiveSchema.js +0 -2
- package/lib/redoc-lib/src/components/Schema/Schema.d.ts +0 -2
- package/lib/redoc-lib/src/components/Schema/Schema.js +0 -2
- package/lib/redoc-lib/src/components/Schema/index.d.ts +0 -4
- package/lib/redoc-lib/src/components/Schema/index.js +0 -2
- package/lib/redoc-lib/src/components/Schema/types.d.ts +0 -22
- package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +0 -21
- package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +0 -7
- package/lib/redoc-lib/src/components/SearchBox/SearchBox.d.ts +0 -30
- package/lib/redoc-lib/src/components/SearchBox/SearchBox.js +0 -2
- package/lib/redoc-lib/src/components/SearchBox/styled.d.ts +0 -6
- package/lib/redoc-lib/src/components/SearchBox/styled.js +0 -53
- package/lib/redoc-lib/src/components/SectionItem/SectionItem.d.ts +0 -6
- package/lib/redoc-lib/src/components/SectionItem/SectionItem.js +0 -2
- package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -3
- package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +0 -2
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityDefs.d.ts +0 -8
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityDefs.js +0 -4
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +0 -12
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +0 -26
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.d.ts +0 -7
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +0 -24
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.d.ts +0 -7
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +0 -2
- package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +0 -2
- package/lib/redoc-lib/src/components/SideMenu/MenuItem.d.ts +0 -17
- package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +0 -19
- package/lib/redoc-lib/src/components/SideMenu/MenuItems.d.ts +0 -17
- package/lib/redoc-lib/src/components/SideMenu/MenuItems.js +0 -2
- package/lib/redoc-lib/src/components/SideMenu/SideMenu.d.ts +0 -15
- package/lib/redoc-lib/src/components/SideMenu/SideMenu.js +0 -2
- package/lib/redoc-lib/src/components/SideMenu/index.d.ts +0 -4
- package/lib/redoc-lib/src/components/SideMenu/index.js +0 -2
- package/lib/redoc-lib/src/components/SideMenu/styled.elements.d.ts +0 -25
- package/lib/redoc-lib/src/components/SideMenu/styled.elements.js +0 -86
- package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +0 -2
- package/lib/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +0 -2
- package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +0 -25
- package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +0 -40
- package/lib/redoc-lib/src/components/StoreBuilder.d.ts +0 -6
- package/lib/redoc-lib/src/components/StoreBuilder.js +0 -2
- package/lib/redoc-lib/src/components/index.d.ts +0 -31
- package/lib/redoc-lib/src/components/index.js +0 -2
- package/lib/redoc-lib/src/empty.d.ts +0 -1
- package/lib/redoc-lib/src/empty.js +0 -2
- package/lib/redoc-lib/src/index.d.ts +0 -7
- package/lib/redoc-lib/src/index.js +0 -2
- package/lib/redoc-lib/src/services/HistoryService.js +0 -2
- package/lib/redoc-lib/src/services/Labels.js +0 -2
- package/lib/redoc-lib/src/services/MarkdownRenderer.d.ts +0 -23
- package/lib/redoc-lib/src/services/MarkdownRenderer.js +0 -2
- package/lib/redoc-lib/src/services/MenuBuilder.d.ts +0 -62
- package/lib/redoc-lib/src/services/MenuBuilder.js +0 -2
- package/lib/redoc-lib/src/services/OpenAPIParser.d.ts +0 -51
- package/lib/redoc-lib/src/services/OpenAPIParser.js +0 -2
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +0 -84
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +0 -2
- package/lib/redoc-lib/src/services/ScrollService.d.ts +0 -18
- package/lib/redoc-lib/src/services/SearchStore.d.ts +0 -13
- package/lib/redoc-lib/src/services/SearchStore.js +0 -2
- package/lib/redoc-lib/src/services/SpecStore.d.ts +0 -18
- package/lib/redoc-lib/src/services/SpecStore.js +0 -2
- package/lib/redoc-lib/src/services/constants.d.ts +0 -6
- package/lib/redoc-lib/src/services/constants.js +0 -2
- package/lib/redoc-lib/src/services/index.d.ts +0 -12
- package/lib/redoc-lib/src/services/index.js +0 -2
- package/lib/redoc-lib/src/services/models/ApiInfo.d.ts +0 -17
- package/lib/redoc-lib/src/services/models/ApiInfo.js +0 -2
- package/lib/redoc-lib/src/services/models/Callback.d.ts +0 -11
- package/lib/redoc-lib/src/services/models/Callback.js +0 -2
- package/lib/redoc-lib/src/services/models/Example.d.ts +0 -17
- package/lib/redoc-lib/src/services/models/Example.js +0 -2
- package/lib/redoc-lib/src/services/models/Field.d.ts +0 -35
- package/lib/redoc-lib/src/services/models/Field.js +0 -2
- package/lib/redoc-lib/src/services/models/Group.model.d.ts +0 -25
- package/lib/redoc-lib/src/services/models/Group.model.js +0 -2
- package/lib/redoc-lib/src/services/models/MediaContent.d.ts +0 -31
- package/lib/redoc-lib/src/services/models/MediaContent.js +0 -2
- package/lib/redoc-lib/src/services/models/MediaType.d.ts +0 -27
- package/lib/redoc-lib/src/services/models/MediaType.js +0 -2
- package/lib/redoc-lib/src/services/models/Operation.d.ts +0 -93
- package/lib/redoc-lib/src/services/models/Operation.js +0 -2
- package/lib/redoc-lib/src/services/models/RequestBody.d.ts +0 -19
- package/lib/redoc-lib/src/services/models/RequestBody.js +0 -2
- package/lib/redoc-lib/src/services/models/Response.d.ts +0 -28
- package/lib/redoc-lib/src/services/models/Response.js +0 -2
- package/lib/redoc-lib/src/services/models/Schema.d.ts +0 -78
- package/lib/redoc-lib/src/services/models/Schema.js +0 -2
- package/lib/redoc-lib/src/services/models/SecurityRequirement.d.ts +0 -12
- package/lib/redoc-lib/src/services/models/SecuritySchemes.d.ts +0 -25
- package/lib/redoc-lib/src/services/models/Webhook.d.ts +0 -9
- package/lib/redoc-lib/src/services/models/Webhook.js +0 -2
- package/lib/redoc-lib/src/services/models/index.d.ts +0 -14
- package/lib/redoc-lib/src/services/models/index.js +0 -2
- package/lib/redoc-lib/src/services/types.d.ts +0 -226
- package/lib/redoc-lib/src/theme.d.ts +0 -10
- package/lib/redoc-lib/src/theme.js +0 -2
- package/lib/redoc-lib/src/types/index.d.ts +0 -3
- package/lib/redoc-lib/src/types/index.js +0 -2
- package/lib/redoc-lib/src/types/open-api.d.ts +0 -338
- package/lib/redoc-lib/src/utils/argValuesHelpers.d.ts +0 -4
- package/lib/redoc-lib/src/utils/argValuesHelpers.js +0 -2
- package/lib/redoc-lib/src/utils/css-variables.d.ts +0 -2
- package/lib/redoc-lib/src/utils/css-variables.js +0 -2
- package/lib/redoc-lib/src/utils/helpers.d.ts +0 -46
- package/lib/redoc-lib/src/utils/helpers.js +0 -2
- package/lib/redoc-lib/src/utils/index.d.ts +0 -14
- package/lib/redoc-lib/src/utils/index.js +0 -2
- package/lib/redoc-lib/src/utils/media-css.d.ts +0 -13
- package/lib/redoc-lib/src/utils/media-css.js +0 -2
- package/lib/redoc-lib/src/utils/openapi.d.ts +0 -41
- package/lib/redoc-lib/src/utils/openapi.js +0 -2
- package/lib/redoc-lib/src/utils/string.d.ts +0 -1
- package/lib/redoc-lib/src/utils/string.js +0 -2
- package/lib/services/SearchStore.d.ts +0 -37
- package/lib/services/SearchStore.js +0 -2
- package/lib/services/store-types.d.ts +0 -4
- package/lib/services/store-types.js +0 -2
- package/lib/types.d.ts +0 -25
- package/lib/types.js +0 -2
- package/lib/utils.d.ts +0 -30
- package/lib/utils.js +0 -2
- package/lib-esm/components/Search/ProSearchBox.d.ts +0 -52
- package/lib-esm/components/Search/ProSearchBox.js +0 -2
- package/lib-esm/components/console/ActionPanel.d.ts +0 -12
- package/lib-esm/components/console/ActionPanel.js +0 -4
- package/lib-esm/components/console/AuthPanel/AuthPanel.d.ts +0 -13
- package/lib-esm/components/console/AuthPanel/AuthPanel.js +0 -2
- package/lib-esm/components/console/AuthPanel/types.d.ts +0 -14
- package/lib-esm/components/console/CodemirrorInput.d.ts +0 -39
- package/lib-esm/components/console/CodemirrorInput.js +0 -50
- package/lib-esm/components/console/Console.d.ts +0 -47
- package/lib-esm/components/console/Console.js +0 -2
- package/lib-esm/components/console/ConsoleLazy.d.ts +0 -2
- package/lib-esm/components/console/ConsoleLazy.js +0 -2
- package/lib-esm/components/console/OAuth2Flow.d.ts +0 -57
- package/lib-esm/components/console/OAuth2Flow.js +0 -14
- package/lib-esm/components/console/OAuth2TokenInput.d.ts +0 -35
- package/lib-esm/components/console/OAuth2TokenInput.js +0 -2
- package/lib-esm/components/console/OpenIDConnect.d.ts +0 -17
- package/lib-esm/components/console/ParameterArray.d.ts +0 -9
- package/lib-esm/components/console/ParameterDropdown.js +0 -2
- package/lib-esm/components/console/RequestBody/RequestBody.d.ts +0 -3
- package/lib-esm/components/console/RequestBody/RequestBody.js +0 -2
- package/lib-esm/components/console/RequestBody/types.d.ts +0 -10
- package/lib-esm/components/console/RequestBodyForm.d.ts +0 -9
- package/lib-esm/components/console/RequestBodyForm.js +0 -10
- package/lib-esm/components/console/ResponseBody.d.ts +0 -4
- package/lib-esm/components/console/ResponseBody.js +0 -2
- package/lib-esm/components/console/ResponseHeadersList.js +0 -10
- package/lib-esm/components/console/ResponsePanel.d.ts +0 -21
- package/lib-esm/components/console/ResponsePanel.js +0 -18
- package/lib-esm/components/console/ServerVariable.js +0 -5
- package/lib-esm/components/console/ServersDropdown/ServersDropdown.js +0 -4
- package/lib-esm/components/console/ServersDropdown/types.d.ts +0 -5
- package/lib-esm/components/console/TryItPanel.js +0 -14
- package/lib-esm/components/console/codemirror-helpers.js +0 -2
- package/lib-esm/components/console/utils.d.ts +0 -27
- package/lib-esm/components/console/utils.js +0 -2
- package/lib-esm/hooks/useMount.d.ts +0 -1
- package/lib-esm/hooks/useMount.js +0 -2
- package/lib-esm/hooks/useUnmount.d.ts +0 -1
- package/lib-esm/hooks/useUnmount.js +0 -2
- package/lib-esm/redoc-lib/index.d.ts +0 -1
- package/lib-esm/redoc-lib/index.js +0 -2
- package/lib-esm/redoc-lib/src/common-elements/Download.d.ts +0 -7
- package/lib-esm/redoc-lib/src/common-elements/Download.js +0 -4
- package/lib-esm/redoc-lib/src/common-elements/LinkToField.d.ts +0 -9
- package/lib-esm/redoc-lib/src/common-elements/LinkToField.js +0 -27
- package/lib-esm/redoc-lib/src/common-elements/fields-layout.d.ts +0 -15
- package/lib-esm/redoc-lib/src/common-elements/fields-layout.js +0 -228
- package/lib-esm/redoc-lib/src/common-elements/fields.js +0 -103
- package/lib-esm/redoc-lib/src/common-elements/headers.js +0 -36
- package/lib-esm/redoc-lib/src/common-elements/icons.d.ts +0 -41
- package/lib-esm/redoc-lib/src/common-elements/icons.js +0 -55
- package/lib-esm/redoc-lib/src/common-elements/index.d.ts +0 -9
- package/lib-esm/redoc-lib/src/common-elements/index.js +0 -2
- package/lib-esm/redoc-lib/src/common-elements/linkify.js +0 -55
- package/lib-esm/redoc-lib/src/common-elements/panels.d.ts +0 -13
- package/lib-esm/redoc-lib/src/common-elements/panels.js +0 -95
- package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.js +0 -4
- package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.d.ts +0 -5
- package/lib-esm/redoc-lib/src/components/ApiInfo/ApiInfo.js +0 -2
- package/lib-esm/redoc-lib/src/components/ApiInfo/index.d.ts +0 -1
- package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.d.ts +0 -8
- package/lib-esm/redoc-lib/src/components/ApiInfo/styled.elements.js +0 -24
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +0 -11
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +0 -4
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +0 -12
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +0 -2
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.d.ts +0 -8
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.js +0 -4
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.d.ts +0 -5
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackOperation.js +0 -2
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.d.ts +0 -6
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackSummary.js +0 -2
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackTitle.js +0 -7
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.d.ts +0 -8
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.js +0 -2
- package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.d.ts +0 -9
- package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.js +0 -2
- package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.d.ts +0 -8
- package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.js +0 -2
- package/lib-esm/redoc-lib/src/components/ContentItems/Skeleton.js +0 -31
- package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +0 -10
- package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.js +0 -2
- package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/index.d.ts +0 -1
- package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/index.js +0 -2
- package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.d.ts +0 -4
- package/lib-esm/redoc-lib/src/components/DownloadButton/DownloadButton.js +0 -21
- package/lib-esm/redoc-lib/src/components/DownloadButton/index.d.ts +0 -1
- package/lib-esm/redoc-lib/src/components/DownloadButton/index.js +0 -2
- package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +0 -7
- package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +0 -8
- package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.d.ts +0 -8
- package/lib-esm/redoc-lib/src/components/ExternalDocumentation/ExternalDocumentation.js +0 -5
- package/lib-esm/redoc-lib/src/components/Fields/EnumValues.d.ts +0 -17
- package/lib-esm/redoc-lib/src/components/Fields/EnumValues.js +0 -13
- package/lib-esm/redoc-lib/src/components/Fields/Extensions.d.ts +0 -9
- package/lib-esm/redoc-lib/src/components/Fields/Extensions.js +0 -6
- package/lib-esm/redoc-lib/src/components/Fields/Field.d.ts +0 -20
- package/lib-esm/redoc-lib/src/components/Fields/Field.js +0 -2
- package/lib-esm/redoc-lib/src/components/Fields/FieldContstraints.js +0 -2
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetail.d.ts +0 -10
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetail.js +0 -2
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.d.ts +0 -12
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.js +0 -15
- package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +0 -22
- package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +0 -2
- package/lib-esm/redoc-lib/src/components/Loading/Loading.d.ts +0 -5
- package/lib-esm/redoc-lib/src/components/Loading/Loading.js +0 -9
- package/lib-esm/redoc-lib/src/components/Loading/Spinner.d.ts +0 -6
- package/lib-esm/redoc-lib/src/components/Loading/Spinner.js +0 -19
- package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +0 -2
- package/lib-esm/redoc-lib/src/components/Markdown/SanitizedMarkdownHTML.js +0 -2
- package/lib-esm/redoc-lib/src/components/Markdown/styled.js +0 -257
- package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +0 -13
- package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +0 -2
- package/lib-esm/redoc-lib/src/components/Operation/Operation.d.ts +0 -7
- package/lib-esm/redoc-lib/src/components/Operation/Operation.js +0 -8
- package/lib-esm/redoc-lib/src/components/Operation/index.d.ts +0 -2
- package/lib-esm/redoc-lib/src/components/OptionsProvider.d.ts +0 -6
- package/lib-esm/redoc-lib/src/components/OptionsProvider.js +0 -2
- package/lib-esm/redoc-lib/src/components/Parameters/Parameters.d.ts +0 -10
- package/lib-esm/redoc-lib/src/components/Parameters/Parameters.js +0 -4
- package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.d.ts +0 -10
- package/lib-esm/redoc-lib/src/components/Parameters/ParametersGroup.js +0 -16
- package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.d.ts +0 -3
- package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.js +0 -2
- package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +0 -2
- package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +0 -2
- package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +0 -2
- package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +0 -2
- package/lib-esm/redoc-lib/src/components/PayloadSamples/index.d.ts +0 -5
- package/lib-esm/redoc-lib/src/components/PayloadSamples/index.js +0 -2
- package/lib-esm/redoc-lib/src/components/PayloadSamples/types.d.ts +0 -25
- package/lib-esm/redoc-lib/src/components/PayloadSamples/useExternalExample.d.ts +0 -2
- package/lib-esm/redoc-lib/src/components/RenderHook.d.ts +0 -6
- package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.d.ts +0 -16
- package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.js +0 -2
- package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +0 -12
- package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.js +0 -2
- package/lib-esm/redoc-lib/src/components/RequestSamples/useCodeSamples.d.ts +0 -9
- package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.d.ts +0 -5
- package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +0 -2
- package/lib-esm/redoc-lib/src/components/Responses/Response.d.ts +0 -2
- package/lib-esm/redoc-lib/src/components/Responses/Response.js +0 -2
- package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.d.ts +0 -5
- package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.js +0 -4
- package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.js +0 -2
- package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.js +0 -2
- package/lib-esm/redoc-lib/src/components/Responses/index.d.ts +0 -1
- package/lib-esm/redoc-lib/src/components/Responses/index.js +0 -2
- package/lib-esm/redoc-lib/src/components/Responses/styled.js +0 -14
- package/lib-esm/redoc-lib/src/components/Responses/types.d.ts +0 -12
- package/lib-esm/redoc-lib/src/components/Schema/ArraySchema.js +0 -4
- package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.d.ts +0 -2
- package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.js +0 -2
- package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.d.ts +0 -2
- package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.js +0 -2
- package/lib-esm/redoc-lib/src/components/Schema/RecursiveSchema.d.ts +0 -2
- package/lib-esm/redoc-lib/src/components/Schema/RecursiveSchema.js +0 -2
- package/lib-esm/redoc-lib/src/components/Schema/Schema.d.ts +0 -2
- package/lib-esm/redoc-lib/src/components/Schema/Schema.js +0 -2
- package/lib-esm/redoc-lib/src/components/Schema/index.d.ts +0 -4
- package/lib-esm/redoc-lib/src/components/Schema/index.js +0 -2
- package/lib-esm/redoc-lib/src/components/Schema/types.d.ts +0 -22
- package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +0 -21
- package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +0 -7
- package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.d.ts +0 -30
- package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.js +0 -2
- package/lib-esm/redoc-lib/src/components/SearchBox/styled.d.ts +0 -6
- package/lib-esm/redoc-lib/src/components/SearchBox/styled.js +0 -53
- package/lib-esm/redoc-lib/src/components/SectionItem/SectionItem.d.ts +0 -6
- package/lib-esm/redoc-lib/src/components/SectionItem/SectionItem.js +0 -2
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.d.ts +0 -3
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +0 -2
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityDefs.d.ts +0 -8
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityDefs.js +0 -4
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.d.ts +0 -12
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +0 -26
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.d.ts +0 -7
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +0 -24
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.d.ts +0 -7
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +0 -2
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +0 -2
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.d.ts +0 -17
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +0 -19
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItems.d.ts +0 -17
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItems.js +0 -2
- package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.d.ts +0 -15
- package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.js +0 -2
- package/lib-esm/redoc-lib/src/components/SideMenu/index.d.ts +0 -4
- package/lib-esm/redoc-lib/src/components/SideMenu/index.js +0 -2
- package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.d.ts +0 -25
- package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.js +0 -86
- package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.d.ts +0 -2
- package/lib-esm/redoc-lib/src/components/SourceCodeWithFile/SourceCodeWithFile.js +0 -2
- package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +0 -25
- package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.js +0 -40
- package/lib-esm/redoc-lib/src/components/StoreBuilder.d.ts +0 -6
- package/lib-esm/redoc-lib/src/components/StoreBuilder.js +0 -2
- package/lib-esm/redoc-lib/src/components/index.d.ts +0 -31
- package/lib-esm/redoc-lib/src/components/index.js +0 -2
- package/lib-esm/redoc-lib/src/empty.d.ts +0 -1
- package/lib-esm/redoc-lib/src/empty.js +0 -2
- package/lib-esm/redoc-lib/src/index.d.ts +0 -7
- package/lib-esm/redoc-lib/src/index.js +0 -2
- package/lib-esm/redoc-lib/src/services/HistoryService.js +0 -2
- package/lib-esm/redoc-lib/src/services/Labels.js +0 -2
- package/lib-esm/redoc-lib/src/services/MarkdownRenderer.d.ts +0 -23
- package/lib-esm/redoc-lib/src/services/MarkdownRenderer.js +0 -2
- package/lib-esm/redoc-lib/src/services/MenuBuilder.d.ts +0 -62
- package/lib-esm/redoc-lib/src/services/MenuBuilder.js +0 -2
- package/lib-esm/redoc-lib/src/services/OpenAPIParser.d.ts +0 -51
- package/lib-esm/redoc-lib/src/services/OpenAPIParser.js +0 -2
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +0 -84
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +0 -2
- package/lib-esm/redoc-lib/src/services/ScrollService.d.ts +0 -18
- package/lib-esm/redoc-lib/src/services/SearchStore.d.ts +0 -13
- package/lib-esm/redoc-lib/src/services/SearchStore.js +0 -2
- package/lib-esm/redoc-lib/src/services/SpecStore.d.ts +0 -18
- package/lib-esm/redoc-lib/src/services/SpecStore.js +0 -2
- package/lib-esm/redoc-lib/src/services/constants.d.ts +0 -6
- package/lib-esm/redoc-lib/src/services/constants.js +0 -2
- package/lib-esm/redoc-lib/src/services/index.d.ts +0 -12
- package/lib-esm/redoc-lib/src/services/index.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/ApiInfo.d.ts +0 -17
- package/lib-esm/redoc-lib/src/services/models/ApiInfo.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/Callback.d.ts +0 -11
- package/lib-esm/redoc-lib/src/services/models/Callback.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/Example.d.ts +0 -17
- package/lib-esm/redoc-lib/src/services/models/Example.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/Field.d.ts +0 -35
- package/lib-esm/redoc-lib/src/services/models/Field.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/Group.model.d.ts +0 -25
- package/lib-esm/redoc-lib/src/services/models/Group.model.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/MediaContent.d.ts +0 -31
- package/lib-esm/redoc-lib/src/services/models/MediaContent.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/MediaType.d.ts +0 -27
- package/lib-esm/redoc-lib/src/services/models/MediaType.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/Operation.d.ts +0 -93
- package/lib-esm/redoc-lib/src/services/models/Operation.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/RequestBody.d.ts +0 -19
- package/lib-esm/redoc-lib/src/services/models/RequestBody.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/Response.d.ts +0 -28
- package/lib-esm/redoc-lib/src/services/models/Response.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/Schema.d.ts +0 -78
- package/lib-esm/redoc-lib/src/services/models/Schema.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/SecurityRequirement.d.ts +0 -12
- package/lib-esm/redoc-lib/src/services/models/SecuritySchemes.d.ts +0 -25
- package/lib-esm/redoc-lib/src/services/models/Webhook.d.ts +0 -9
- package/lib-esm/redoc-lib/src/services/models/Webhook.js +0 -2
- package/lib-esm/redoc-lib/src/services/models/index.d.ts +0 -14
- package/lib-esm/redoc-lib/src/services/models/index.js +0 -2
- package/lib-esm/redoc-lib/src/services/types.d.ts +0 -226
- package/lib-esm/redoc-lib/src/theme.d.ts +0 -10
- package/lib-esm/redoc-lib/src/theme.js +0 -2
- package/lib-esm/redoc-lib/src/types/index.d.ts +0 -3
- package/lib-esm/redoc-lib/src/types/index.js +0 -2
- package/lib-esm/redoc-lib/src/types/open-api.d.ts +0 -338
- package/lib-esm/redoc-lib/src/utils/argValuesHelpers.d.ts +0 -4
- package/lib-esm/redoc-lib/src/utils/argValuesHelpers.js +0 -2
- package/lib-esm/redoc-lib/src/utils/css-variables.d.ts +0 -2
- package/lib-esm/redoc-lib/src/utils/css-variables.js +0 -2
- package/lib-esm/redoc-lib/src/utils/helpers.d.ts +0 -46
- package/lib-esm/redoc-lib/src/utils/helpers.js +0 -2
- package/lib-esm/redoc-lib/src/utils/index.d.ts +0 -14
- package/lib-esm/redoc-lib/src/utils/index.js +0 -2
- package/lib-esm/redoc-lib/src/utils/media-css.d.ts +0 -13
- package/lib-esm/redoc-lib/src/utils/media-css.js +0 -2
- package/lib-esm/redoc-lib/src/utils/openapi.d.ts +0 -41
- package/lib-esm/redoc-lib/src/utils/openapi.js +0 -2
- package/lib-esm/redoc-lib/src/utils/string.d.ts +0 -1
- package/lib-esm/redoc-lib/src/utils/string.js +0 -2
- package/lib-esm/services/SearchStore.d.ts +0 -37
- package/lib-esm/services/SearchStore.js +0 -2
- package/lib-esm/services/store-types.d.ts +0 -4
- package/lib-esm/services/store-types.js +0 -2
- package/lib-esm/types.d.ts +0 -25
- package/lib-esm/types.js +0 -2
- package/lib-esm/utils.d.ts +0 -30
- package/lib-esm/utils.js +0 -2
|
@@ -2,96 +2,168 @@
|
|
|
2
2
|
* Redocly Reference Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "3.0.0-alpha.
|
|
6
|
-
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{62680:(
|
|
7
|
-
`;L.replaceSelection(D+D,null),K(L,-1),B=L.listSelections();for(var re=0;re<B.length;re++){var J=B[re].head.line;L.indentLine(J,null,!0),L.indentLine(J+1,null,!0)}})}function K(L,C){for(var k=[],B=L.listSelections(),X=0,H=0;H<B.length;H++){var D=B[H];D.head==L.getCursor()&&(X=H);var re=D.head.ch||C>0?{line:D.head.line,ch:D.head.ch+C}:{line:D.head.line-1};k.push({anchor:re,head:re})}L.setSelections(k,X)}function ne(L){var C=p.cmpPos(L.anchor,L.head)>0;return{anchor:new A(L.anchor.line,L.anchor.ch+(C?-1:1)),head:new A(L.head.line,L.head.ch+(C?1:-1))}}function $(L,C){var k=_(L);if(!k||L.getOption("disableInput"))return p.Pass;var B=h(k,"pairs"),X=B.indexOf(C);if(X==-1)return p.Pass;for(var H=h(k,"closeBefore"),D=h(k,"triples"),re=B.charAt(X+1)==C,J=L.listSelections(),z=X%2==0,fe,pe=0;pe<J.length;pe++){var q=J[pe],Z=q.head,G,ve=L.getRange(Z,A(Z.line,Z.ch+1));if(z&&!q.empty())G="surround";else if((re||!z)&&ve==C)re&&Y(L,Z)?G="both":D.indexOf(C)>=0&&L.getRange(Z,A(Z.line,Z.ch+3))==C+C+C?G="skipThree":G="skip";else if(re&&Z.ch>1&&D.indexOf(C)>=0&&L.getRange(A(Z.line,Z.ch-2),Z)==C+C){if(Z.ch>2&&/\bstring/.test(L.getTokenTypeAt(A(Z.line,Z.ch-2))))return p.Pass;G="addFour"}else if(re){var Ie=Z.ch==0?" ":L.getRange(A(Z.line,Z.ch-1),Z);if(!p.isWordChar(ve)&&Ie!=C&&!p.isWordChar(Ie))G="both";else return p.Pass}else if(z&&(ve.length===0||/\s/.test(ve)||H.indexOf(ve)>-1))G="both";else return p.Pass;if(!fe)fe=G;else if(fe!=G)return p.Pass}var Ne=X%2?B.charAt(X-1):C,je=X%2?C:B.charAt(X+1);L.operation(function(){if(fe=="skip")K(L,1);else if(fe=="skipThree")K(L,3);else if(fe=="surround"){for(var tt=L.getSelections(),_e=0;_e<tt.length;_e++)tt[_e]=Ne+tt[_e]+je;L.replaceSelections(tt,"around"),tt=L.listSelections().slice();for(var _e=0;_e<tt.length;_e++)tt[_e]=ne(tt[_e]);L.setSelections(tt)}else fe=="both"?(L.replaceSelection(Ne+je,null),L.triggerElectric(Ne+je),K(L,-1)):fe=="addFour"&&(L.replaceSelection(Ne+Ne+Ne+Ne,"before"),K(L,1))})}function P(L,C){var k=L.getRange(A(C.line,C.ch-1),A(C.line,C.ch+1));return k.length==2?k:null}function Y(L,C){var k=L.getTokenAt(A(C.line,C.ch+1));return/\bstring/.test(k.type)&&k.start==C.ch&&(C.ch==0||!/\bstring/.test(L.getTokenTypeAt(C)))}})},32407:(v,T,s)=>{(function(p){p(s(23326))})(function(p){var S=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),A=p.Pos,h={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function E(K){return K&&K.bracketRegex||/[(){}[\]]/}function F(K,ne,$){var P=K.getLineHandle(ne.line),Y=ne.ch-1,L=$&&$.afterCursor;L==null&&(L=/(^| )cm-fat-cursor($| )/.test(K.getWrapperElement().className));var C=E($),k=!L&&Y>=0&&C.test(P.text.charAt(Y))&&h[P.text.charAt(Y)]||C.test(P.text.charAt(Y+1))&&h[P.text.charAt(++Y)];if(!k)return null;var B=k.charAt(1)==">"?1:-1;if($&&$.strict&&B>0!=(Y==ne.ch))return null;var X=K.getTokenTypeAt(A(ne.line,Y+1)),H=U(K,A(ne.line,Y+(B>0?1:0)),B,X,$);return H==null?null:{from:A(ne.line,Y),to:H&&H.pos,match:H&&H.ch==k.charAt(0),forward:B>0}}function U(K,ne,$,P,Y){for(var L=Y&&Y.maxScanLineLength||1e4,C=Y&&Y.maxScanLines||1e3,k=[],B=E(Y),X=$>0?Math.min(ne.line+C,K.lastLine()+1):Math.max(K.firstLine()-1,ne.line-C),H=ne.line;H!=X;H+=$){var D=K.getLine(H);if(!!D){var re=$>0?0:D.length-1,J=$>0?D.length:-1;if(!(D.length>L))for(H==ne.line&&(re=ne.ch-($<0?1:0));re!=J;re+=$){var z=D.charAt(re);if(B.test(z)&&(P===void 0||(K.getTokenTypeAt(A(H,re+1))||"")==(P||""))){var fe=h[z];if(fe&&fe.charAt(1)==">"==$>0)k.push(z);else if(k.length)k.pop();else return{pos:A(H,re),ch:z}}}}}return H-$==($>0?K.lastLine():K.firstLine())?!1:null}function _(K,ne,$){for(var P=K.state.matchBrackets.maxHighlightLineLength||1e3,Y=$&&$.highlightNonMatching,L=[],C=K.listSelections(),k=0;k<C.length;k++){var B=C[k].empty()&&F(K,C[k].head,$);if(B&&(B.match||Y!==!1)&&K.getLine(B.from.line).length<=P){var X=B.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";L.push(K.markText(B.from,A(B.from.line,B.from.ch+1),{className:X})),B.to&&K.getLine(B.to.line).length<=P&&L.push(K.markText(B.to,A(B.to.line,B.to.ch+1),{className:X}))}}if(L.length){S&&K.state.focused&&K.focus();var H=function(){K.operation(function(){for(var D=0;D<L.length;D++)L[D].clear()})};if(ne)setTimeout(H,800);else return H}}function Q(K){K.operation(function(){K.state.matchBrackets.currentlyHighlighted&&(K.state.matchBrackets.currentlyHighlighted(),K.state.matchBrackets.currentlyHighlighted=null),K.state.matchBrackets.currentlyHighlighted=_(K,!1,K.state.matchBrackets)})}function le(K){K.state.matchBrackets&&K.state.matchBrackets.currentlyHighlighted&&(K.state.matchBrackets.currentlyHighlighted(),K.state.matchBrackets.currentlyHighlighted=null)}p.defineOption("matchBrackets",!1,function(K,ne,$){$&&$!=p.Init&&(K.off("cursorActivity",Q),K.off("focus",Q),K.off("blur",le),le(K)),ne&&(K.state.matchBrackets=typeof ne=="object"?ne:{},K.on("cursorActivity",Q),K.on("focus",Q),K.on("blur",le))}),p.defineExtension("matchBrackets",function(){_(this,!0)}),p.defineExtension("findMatchingBracket",function(K,ne,$){return($||typeof ne=="boolean")&&($?($.strict=ne,ne=$):ne=ne?{strict:!0}:null),F(this,K,ne)}),p.defineExtension("scanForBracket",function(K,ne,$,P){return U(this,K,ne,$,P)})})},22130:(v,T,s)=>{(function(p){p(s(23326))})(function(p){"use strict";var S="CodeMirror-hint",A="CodeMirror-hint-active";p.showHint=function(L,C,k){if(!C)return L.showHint(k);k&&k.async&&(C.async=!0);var B={hint:C};if(k)for(var X in k)B[X]=k[X];return L.showHint(B)},p.defineExtension("showHint",function(L){L=U(this,this.getCursor("start"),L);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!L.hint.supportsSelection)return;for(var k=0;k<C.length;k++)if(C[k].head.line!=C[k].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var B=this.state.completionActive=new h(this,L);!B.options.hint||(p.signal(this,"startCompletion",this),B.update(!0))}}),p.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function h(L,C){if(this.cm=L,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var k=this;L.on("cursorActivity",this.activityFunc=function(){k.cursorActivity()})}}var E=window.requestAnimationFrame||function(L){return setTimeout(L,1e3/60)},F=window.cancelAnimationFrame||clearTimeout;h.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&p.signal(this.data,"close"),this.widget&&this.widget.close(),p.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(L,C){var k=L.list[C],B=this;this.cm.operation(function(){k.hint?k.hint(B.cm,L,k):B.cm.replaceRange(_(k),k.from||L.from,k.to||L.to,"complete"),p.signal(L,"pick",k),B.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(F(this.debounce),this.debounce=0);var L=this.startPos;this.data&&(L=this.data.from);var C=this.cm.getCursor(),k=this.cm.getLine(C.line);if(C.line!=this.startPos.line||k.length-C.ch!=this.startLen-this.startPos.ch||C.ch<L.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(k.charAt(C.ch-1)))this.close();else{var B=this;this.debounce=E(function(){B.update()}),this.widget&&this.widget.disable()}},update:function(L){if(this.tick!=null){var C=this,k=++this.tick;$(this.options.hint,this.cm,this.options,function(B){C.tick==k&&C.finishUpdate(B,L)})}},finishUpdate:function(L,C){this.data&&p.signal(this.data,"update");var k=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=L,L&&L.list.length&&(k&&L.list.length==1?this.pick(L,0):(this.widget=new K(this,L),p.signal(L,"shown")))}};function U(L,C,k){var B=L.options.hintOptions,X={};for(var H in Y)X[H]=Y[H];if(B)for(var H in B)B[H]!==void 0&&(X[H]=B[H]);if(k)for(var H in k)k[H]!==void 0&&(X[H]=k[H]);return X.hint.resolve&&(X.hint=X.hint.resolve(L,C)),X}function _(L){return typeof L=="string"?L:L.text}function Q(L,C){var k={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},B=/Mac/.test(navigator.platform);B&&(k["Ctrl-P"]=function(){C.moveFocus(-1)},k["Ctrl-N"]=function(){C.moveFocus(1)});var X=L.options.customKeys,H=X?{}:k;function D(z,fe){var pe;typeof fe!="string"?pe=function(q){return fe(q,C)}:k.hasOwnProperty(fe)?pe=k[fe]:pe=fe,H[z]=pe}if(X)for(var re in X)X.hasOwnProperty(re)&&D(re,X[re]);var J=L.options.extraKeys;if(J)for(var re in J)J.hasOwnProperty(re)&&D(re,J[re]);return H}function le(L,C){for(;C&&C!=L;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==L)return C;C=C.parentNode}}function K(L,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=L,this.data=C,this.picked=!1;var k=this,B=L.cm,X=B.getInputField().ownerDocument,H=X.defaultView||X.parentWindow,D=this.hints=X.createElement("ul");D.setAttribute("role","listbox"),D.setAttribute("aria-expanded","true"),D.id=this.id;var re=L.cm.options.theme;D.className="CodeMirror-hints "+re,this.selectedHint=C.selectedHint||0;for(var J=C.list,z=0;z<J.length;++z){var fe=D.appendChild(X.createElement("li")),pe=J[z],q=S+(z!=this.selectedHint?"":" "+A);pe.className!=null&&(q=pe.className+" "+q),fe.className=q,z==this.selectedHint&&fe.setAttribute("aria-selected","true"),fe.id=this.id+"-"+z,fe.setAttribute("role","option"),pe.render?pe.render(fe,C,pe):fe.appendChild(X.createTextNode(pe.displayText||_(pe))),fe.hintId=z}var Z=L.options.container||X.body,G=B.cursorCoords(L.options.alignWithWord?C.from:null),ve=G.left,Ie=G.bottom,Ne=!0,je=0,tt=0;if(Z!==X.body){var _e=["absolute","relative","fixed"].indexOf(H.getComputedStyle(Z).position)!==-1,mt=_e?Z:Z.offsetParent,De=mt.getBoundingClientRect(),Oe=X.body.getBoundingClientRect();je=De.left-Oe.left-mt.scrollLeft,tt=De.top-Oe.top-mt.scrollTop}D.style.left=ve-je+"px",D.style.top=Ie-tt+"px";var Ue=H.innerWidth||Math.max(X.body.offsetWidth,X.documentElement.offsetWidth),Pe=H.innerHeight||Math.max(X.body.offsetHeight,X.documentElement.offsetHeight);Z.appendChild(D),B.getInputField().setAttribute("aria-autocomplete","list"),B.getInputField().setAttribute("aria-owns",this.id),B.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Ce=L.options.moveOnOverlap?D.getBoundingClientRect():new DOMRect,Ge=L.options.paddingForScrollbar?D.scrollHeight>D.clientHeight+1:!1,rt;setTimeout(function(){rt=B.getScrollInfo()});var $e=Ce.bottom-Pe;if($e>0){var et=Ce.bottom-Ce.top,Ze=Ce.top-(G.bottom-G.top)-2;Pe-Ce.top<Ze?(et>Ze&&(D.style.height=(et=Ze)+"px"),D.style.top=(Ie=G.top-et)+tt+"px",Ne=!1):D.style.height=Pe-Ce.top-2+"px"}var Ct=Ce.right-Ue;if(Ge&&(Ct+=B.display.nativeBarWidth),Ct>0&&(Ce.right-Ce.left>Ue&&(D.style.width=Ue-5+"px",Ct-=Ce.right-Ce.left-Ue),D.style.left=(ve=Math.max(G.left-Ct-je,0))+"px"),Ge)for(var kt=D.firstChild;kt;kt=kt.nextSibling)kt.style.paddingRight=B.display.nativeBarWidth+"px";if(B.addKeyMap(this.keyMap=Q(L,{moveFocus:function(xt,Ft){k.changeActive(k.selectedHint+xt,Ft)},setFocus:function(xt){k.changeActive(xt)},menuSize:function(){return k.screenAmount()},length:J.length,close:function(){L.close()},pick:function(){k.pick()},data:C})),L.options.closeOnUnfocus){var Zt;B.on("blur",this.onBlur=function(){Zt=setTimeout(function(){L.close()},100)}),B.on("focus",this.onFocus=function(){clearTimeout(Zt)})}B.on("scroll",this.onScroll=function(){var xt=B.getScrollInfo(),Ft=B.getWrapperElement().getBoundingClientRect();rt||(rt=B.getScrollInfo());var Kr=Ie+rt.top-xt.top,br=Kr-(H.pageYOffset||(X.documentElement||X.body).scrollTop);if(Ne||(br+=D.offsetHeight),br<=Ft.top||br>=Ft.bottom)return L.close();D.style.top=Kr+"px",D.style.left=ve+rt.left-xt.left+"px"}),p.on(D,"dblclick",function(xt){var Ft=le(D,xt.target||xt.srcElement);Ft&&Ft.hintId!=null&&(k.changeActive(Ft.hintId),k.pick())}),p.on(D,"click",function(xt){var Ft=le(D,xt.target||xt.srcElement);Ft&&Ft.hintId!=null&&(k.changeActive(Ft.hintId),L.options.completeOnSingleClick&&k.pick())}),p.on(D,"mousedown",function(){setTimeout(function(){B.focus()},20)});var lt=this.getSelectedHintRange();return(lt.from!==0||lt.to!==0)&&this.scrollToActive(),p.signal(C,"select",J[this.selectedHint],D.childNodes[this.selectedHint]),!0}K.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var L=this.completion.cm.getInputField();L.removeAttribute("aria-activedescendant"),L.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var L=this;this.keyMap={Enter:function(){L.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(L,C){if(L>=this.data.list.length?L=C?this.data.list.length-1:0:L<0&&(L=C?0:this.data.list.length-1),this.selectedHint!=L){var k=this.hints.childNodes[this.selectedHint];k&&(k.className=k.className.replace(" "+A,""),k.removeAttribute("aria-selected")),k=this.hints.childNodes[this.selectedHint=L],k.className+=" "+A,k.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",k.id),this.scrollToActive(),p.signal(this.data,"select",this.data.list[this.selectedHint],k)}},scrollToActive:function(){var L=this.getSelectedHintRange(),C=this.hints.childNodes[L.from],k=this.hints.childNodes[L.to],B=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-B.offsetTop:k.offsetTop+k.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=k.offsetTop+k.offsetHeight-this.hints.clientHeight+B.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var L=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-L),to:Math.min(this.data.list.length-1,this.selectedHint+L)}}};function ne(L,C){if(!L.somethingSelected())return C;for(var k=[],B=0;B<C.length;B++)C[B].supportsSelection&&k.push(C[B]);return k}function $(L,C,k,B){if(L.async)L(C,B,k);else{var X=L(C,k);X&&X.then?X.then(B):B(X)}}function P(L,C){var k=L.getHelpers(C,"hint"),B;if(k.length){var X=function(H,D,re){var J=ne(H,k);function z(fe){if(fe==J.length)return D(null);$(J[fe],H,re,function(pe){pe&&pe.list.length>0?D(pe):z(fe+1)})}z(0)};return X.async=!0,X.supportsSelection=!0,X}else return(B=L.getHelper(L.getCursor(),"hintWords"))?function(H){return p.hint.fromList(H,{words:B})}:p.hint.anyword?function(H,D){return p.hint.anyword(H,D)}:function(){}}p.registerHelper("hint","auto",{resolve:P}),p.registerHelper("hint","fromList",function(L,C){var k=L.getCursor(),B=L.getTokenAt(k),X,H=p.Pos(k.line,B.start),D=k;B.start<k.ch&&/\w/.test(B.string.charAt(k.ch-B.start-1))?X=B.string.substr(0,k.ch-B.start):(X="",H=k);for(var re=[],J=0;J<C.words.length;J++){var z=C.words[J];z.slice(0,X.length)==X&&re.push(z)}if(re.length)return{list:re,from:H,to:D}}),p.commands.autocomplete=p.showHint;var Y={hint:p.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};p.defineOption("hintOptions",null)})},29387:(v,T,s)=>{(function(p){p(s(23326))})(function(p){"use strict";var S="CodeMirror-lint-markers",A="CodeMirror-lint-line-";function h(D,re,J){var z=document.createElement("div");z.className="CodeMirror-lint-tooltip cm-s-"+D.options.theme,z.appendChild(J.cloneNode(!0)),D.state.lint.options.selfContain?D.getWrapperElement().appendChild(z):document.body.appendChild(z);function fe(pe){if(!z.parentNode)return p.off(document,"mousemove",fe);z.style.top=Math.max(0,pe.clientY-z.offsetHeight-5)+"px",z.style.left=pe.clientX+5+"px"}return p.on(document,"mousemove",fe),fe(re),z.style.opacity!=null&&(z.style.opacity=1),z}function E(D){D.parentNode&&D.parentNode.removeChild(D)}function F(D){!D.parentNode||(D.style.opacity==null&&E(D),D.style.opacity=0,setTimeout(function(){E(D)},600))}function U(D,re,J,z){var fe=h(D,re,J);function pe(){p.off(z,"mouseout",pe),fe&&(F(fe),fe=null)}var q=setInterval(function(){if(fe)for(var Z=z;;Z=Z.parentNode){if(Z&&Z.nodeType==11&&(Z=Z.host),Z==document.body)return;if(!Z){pe();break}}if(!fe)return clearInterval(q)},400);p.on(z,"mouseout",pe)}function _(D,re,J){this.marked=[],re instanceof Function&&(re={getAnnotations:re}),(!re||re===!0)&&(re={}),this.options={},this.linterOptions=re.options||{};for(var z in Q)this.options[z]=Q[z];for(var z in re)Q.hasOwnProperty(z)?re[z]!=null&&(this.options[z]=re[z]):re.options||(this.linterOptions[z]=re[z]);this.timeout=null,this.hasGutter=J,this.onMouseOver=function(fe){H(D,fe)},this.waitingFor=0}var Q={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function le(D){var re=D.state.lint;re.hasGutter&&D.clearGutter(S),re.options.highlightLines&&K(D);for(var J=0;J<re.marked.length;++J)re.marked[J].clear();re.marked.length=0}function K(D){D.eachLine(function(re){var J=re.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(re.wrapClass);J&&D.removeLineClass(re,"wrap",J[0])})}function ne(D,re,J,z,fe){var pe=document.createElement("div"),q=pe;return pe.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+J,z&&(q=pe.appendChild(document.createElement("div")),q.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),fe!=!1&&p.on(q,"mouseover",function(Z){U(D,Z,re,q)}),pe}function $(D,re){return D=="error"?D:re}function P(D){for(var re=[],J=0;J<D.length;++J){var z=D[J],fe=z.from.line;(re[fe]||(re[fe]=[])).push(z)}return re}function Y(D){var re=D.severity;re||(re="error");var J=document.createElement("div");return J.className="CodeMirror-lint-message CodeMirror-lint-message-"+re,typeof D.messageHTML!="undefined"?J.innerHTML=D.messageHTML:J.appendChild(document.createTextNode(D.message)),J}function L(D,re){var J=D.state.lint,z=++J.waitingFor;function fe(){z=-1,D.off("change",fe)}D.on("change",fe),re(D.getValue(),function(pe,q){D.off("change",fe),J.waitingFor==z&&(q&&pe instanceof p&&(pe=q),D.operation(function(){k(D,pe)}))},J.linterOptions,D)}function C(D){var re=D.state.lint;if(!!re){var J=re.options,z=J.getAnnotations||D.getHelper(p.Pos(0,0),"lint");if(!!z)if(J.async||z.async)L(D,z);else{var fe=z(D.getValue(),re.linterOptions,D);if(!fe)return;fe.then?fe.then(function(pe){D.operation(function(){k(D,pe)})}):D.operation(function(){k(D,fe)})}}}function k(D,re){var J=D.state.lint;if(!!J){var z=J.options;le(D);for(var fe=P(re),pe=0;pe<fe.length;++pe){var q=fe[pe];if(!!q){var Z=[];q=q.filter(function(tt){return Z.indexOf(tt.message)>-1?!1:Z.push(tt.message)});for(var G=null,ve=J.hasGutter&&document.createDocumentFragment(),Ie=0;Ie<q.length;++Ie){var Ne=q[Ie],je=Ne.severity;je||(je="error"),G=$(G,je),z.formatAnnotation&&(Ne=z.formatAnnotation(Ne)),J.hasGutter&&ve.appendChild(Y(Ne)),Ne.to&&J.marked.push(D.markText(Ne.from,Ne.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+je,__annotation:Ne}))}J.hasGutter&&D.setGutterMarker(pe,S,ne(D,ve,G,fe[pe].length>1,z.tooltips)),z.highlightLines&&D.addLineClass(pe,"wrap",A+G)}}z.onUpdateLinting&&z.onUpdateLinting(re,fe,D)}}function B(D){var re=D.state.lint;!re||(clearTimeout(re.timeout),re.timeout=setTimeout(function(){C(D)},re.options.delay))}function X(D,re,J){for(var z=J.target||J.srcElement,fe=document.createDocumentFragment(),pe=0;pe<re.length;pe++){var q=re[pe];fe.appendChild(Y(q))}U(D,J,fe,z)}function H(D,re){var J=re.target||re.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(J.className)){for(var z=J.getBoundingClientRect(),fe=(z.left+z.right)/2,pe=(z.top+z.bottom)/2,q=D.findMarksAt(D.coordsChar({left:fe,top:pe},"client")),Z=[],G=0;G<q.length;++G){var ve=q[G].__annotation;ve&&Z.push(ve)}Z.length&&X(D,Z,re)}}p.defineOption("lint",!1,function(D,re,J){if(J&&J!=p.Init&&(le(D),D.state.lint.options.lintOnChange!==!1&&D.off("change",B),p.off(D.getWrapperElement(),"mouseover",D.state.lint.onMouseOver),clearTimeout(D.state.lint.timeout),delete D.state.lint),re){for(var z=D.getOption("gutters"),fe=!1,pe=0;pe<z.length;++pe)z[pe]==S&&(fe=!0);var q=D.state.lint=new _(D,re,fe);q.options.lintOnChange&&D.on("change",B),q.options.tooltips!=!1&&q.options.tooltips!="gutter"&&p.on(D.getWrapperElement(),"mouseover",q.onMouseOver),C(D)}}),p.defineExtension("performLint",function(){C(this)})})},19757:(v,T,s)=>{(function(p){p(s(23326))})(function(p){"use strict";var S=p.Pos;function A(C){var k=C.flags;return k!=null?k:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function h(C,k){for(var B=A(C),X=B,H=0;H<k.length;H++)X.indexOf(k.charAt(H))==-1&&(X+=k.charAt(H));return B==X?C:new RegExp(C.source,X)}function E(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function F(C,k,B){k=h(k,"g");for(var X=B.line,H=B.ch,D=C.lastLine();X<=D;X++,H=0){k.lastIndex=H;var re=C.getLine(X),J=k.exec(re);if(J)return{from:S(X,J.index),to:S(X,J.index+J[0].length),match:J}}}function U(C,k,B){if(!E(k))return F(C,k,B);k=h(k,"gm");for(var X,H=1,D=B.line,re=C.lastLine();D<=re;){for(var J=0;J<H&&!(D>re);J++){var z=C.getLine(D++);X=X==null?z:X+`
|
|
8
|
-
`+z}
|
|
9
|
-
`),
|
|
10
|
-
`),
|
|
11
|
-
`+
|
|
12
|
-
`),
|
|
13
|
-
`),G=re+q.length,ve=q[q.length-1].length;return{from:S(G,ve),to:S(G+Z.length-1,Z.length==1?ve+Z[0].length:Z[Z.length-1].length),match:pe}}}}var K,ne;String.prototype.normalize?(K=function(C){return C.normalize("NFD").toLowerCase()},ne=function(C){return C.normalize("NFD")}):(K=function(C){return C.toLowerCase()},ne=function(C){return C});function $(C,k,B,X){if(C.length==k.length)return B;for(var H=0,D=B+Math.max(0,C.length-k.length);;){if(H==D)return H;var re=H+D>>1,J=X(C.slice(0,re)).length;if(J==B)return re;J>B?D=re:H=re+1}}function P(C,k,B,X){if(!k.length)return null;var H=X?K:ne,D=H(k).split(/\r|\n\r?/);e:for(var re=B.line,J=B.ch,z=C.lastLine()+1-D.length;re<=z;re++,J=0){var fe=C.getLine(re).slice(J),pe=H(fe);if(D.length==1){var q=pe.indexOf(D[0]);if(q==-1)continue e;var B=$(fe,pe,q,H)+J;return{from:S(re,$(fe,pe,q,H)+J),to:S(re,$(fe,pe,q+D[0].length,H)+J)}}else{var Z=pe.length-D[0].length;if(pe.slice(Z)!=D[0])continue e;for(var G=1;G<D.length-1;G++)if(H(C.getLine(re+G))!=D[G])continue e;var ve=C.getLine(re+D.length-1),Ie=H(ve),Ne=D[D.length-1];if(Ie.slice(0,Ne.length)!=Ne)continue e;return{from:S(re,$(fe,pe,Z,H)+J),to:S(re+D.length-1,$(ve,Ie,Ne.length,H))}}}}function Y(C,k,B,X){if(!k.length)return null;var H=X?K:ne,D=H(k).split(/\r|\n\r?/);e:for(var re=B.line,J=B.ch,z=C.firstLine()-1+D.length;re>=z;re--,J=-1){var fe=C.getLine(re);J>-1&&(fe=fe.slice(0,J));var pe=H(fe);if(D.length==1){var q=pe.lastIndexOf(D[0]);if(q==-1)continue e;return{from:S(re,$(fe,pe,q,H)),to:S(re,$(fe,pe,q+D[0].length,H))}}else{var Z=D[D.length-1];if(pe.slice(0,Z.length)!=Z)continue e;for(var G=1,B=re-D.length+1;G<D.length-1;G++)if(H(C.getLine(B+G))!=D[G])continue e;var ve=C.getLine(re+1-D.length),Ie=H(ve);if(Ie.slice(Ie.length-D[0].length)!=D[0])continue e;return{from:S(re+1-D.length,$(ve,Ie,ve.length-D[0].length,H)),to:S(re,$(fe,pe,Z.length,H))}}}}function L(C,k,B,X){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,B=B?C.clipPos(B):S(0,0),this.pos={from:B,to:B};var H;typeof X=="object"?H=X.caseFold:(H=X,X=null),typeof k=="string"?(H==null&&(H=!1),this.matches=function(D,re){return(D?Y:P)(C,k,re,H)}):(k=h(k,"gm"),!X||X.multiline!==!1?this.matches=function(D,re){return(D?le:U)(C,k,re)}:this.matches=function(D,re){return(D?Q:F)(C,k,re)})}L.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var k=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(k=S(k.line,k.ch),C?(k.ch--,k.ch<0&&(k.line--,k.ch=(this.doc.getLine(k.line)||"").length)):(k.ch++,k.ch>(this.doc.getLine(k.line)||"").length&&(k.ch=0,k.line++)),p.cmpPos(k,this.doc.clipPos(k))!=0))return this.atOccurrence=!1;var B=this.matches(C,k);if(this.afterEmptyMatch=B&&p.cmpPos(B.from,B.to)==0,B)return this.pos=B,this.atOccurrence=!0,this.pos.match||!0;var X=S(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:X,to:X},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,k){if(!!this.atOccurrence){var B=p.splitLines(C);this.doc.replaceRange(B,this.pos.from,this.pos.to,k),this.pos.to=S(this.pos.from.line+B.length-1,B[B.length-1].length+(B.length==1?this.pos.from.ch:0))}}},p.defineExtension("getSearchCursor",function(C,k,B){return new L(this.doc,C,k,B)}),p.defineDocExtension("getSearchCursor",function(C,k,B){return new L(this,C,k,B)}),p.defineExtension("selectMatches",function(C,k){for(var B=[],X=this.getSearchCursor(C,this.getCursor("from"),k);X.findNext()&&!(p.cmpPos(X.to(),this.getCursor("to"))>0);)B.push({anchor:X.from(),head:X.to()});B.length&&this.setSelections(B,0)})})},23326:function(v){(function(T,s){v.exports=s()})(this,function(){"use strict";var T=navigator.userAgent,s=navigator.platform,p=/gecko\/\d/i.test(T),S=/MSIE \d/.test(T),A=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(T),h=/Edge\/(\d+)/.exec(T),E=S||A||h,F=E&&(S?document.documentMode||6:+(h||A)[1]),U=!h&&/WebKit\//.test(T),_=U&&/Qt\/\d+\.\d+/.test(T),Q=!h&&/Chrome\/(\d+)/.exec(T),le=Q&&+Q[1],K=/Opera\//.test(T),ne=/Apple Computer/.test(navigator.vendor),$=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(T),P=/PhantomJS/.test(T),Y=ne&&(/Mobile\/\w+/.test(T)||navigator.maxTouchPoints>2),L=/Android/.test(T),C=Y||L||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(T),k=Y||/Mac/.test(s),B=/\bCrOS\b/.test(T),X=/win/i.test(s),H=K&&T.match(/Version\/(\d*\.\d*)/);H&&(H=Number(H[1])),H&&H>=15&&(K=!1,U=!0);var D=k&&(_||K&&(H==null||H<12.11)),re=p||E&&F>=9;function J(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var z=function(t,i){var u=t.className,l=J(i).exec(u);if(l){var c=u.slice(l.index+l[0].length);t.className=u.slice(0,l.index)+(c?l[1]+c:"")}};function fe(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function pe(t,i){return fe(t).appendChild(i)}function q(t,i,u,l){var c=document.createElement(t);if(u&&(c.className=u),l&&(c.style.cssText=l),typeof i=="string")c.appendChild(document.createTextNode(i));else if(i)for(var y=0;y<i.length;++y)c.appendChild(i[y]);return c}function Z(t,i,u,l){var c=q(t,i,u,l);return c.setAttribute("role","presentation"),c}var G;document.createRange?G=function(t,i,u,l){var c=document.createRange();return c.setEnd(l||t,u),c.setStart(t,i),c}:G=function(t,i,u){var l=document.body.createTextRange();try{l.moveToElementText(t.parentNode)}catch(c){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",i),l};function ve(t,i){if(i.nodeType==3&&(i=i.parentNode),t.contains)return t.contains(i);do if(i.nodeType==11&&(i=i.host),i==t)return!0;while(i=i.parentNode)}function Ie(t){var i;try{i=t.activeElement}catch(u){i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Ne(t,i){var u=t.className;J(i).test(u)||(t.className+=(u?" ":"")+i)}function je(t,i){for(var u=t.split(" "),l=0;l<u.length;l++)u[l]&&!J(u[l]).test(i)&&(i+=" "+u[l]);return i}var tt=function(t){t.select()};Y?tt=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:E&&(tt=function(t){try{t.select()}catch(i){}});function _e(t){return t.display.wrapper.ownerDocument}function mt(t){return _e(t).defaultView}function De(t){var i=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,i)}}function Oe(t,i,u){i||(i={});for(var l in t)t.hasOwnProperty(l)&&(u!==!1||!i.hasOwnProperty(l))&&(i[l]=t[l]);return i}function Ue(t,i,u,l,c){i==null&&(i=t.search(/[^\s\u00a0]/),i==-1&&(i=t.length));for(var y=l||0,w=c||0;;){var O=t.indexOf(" ",y);if(O<0||O>=i)return w+(i-y);w+=O-y,w+=u-w%u,y=O+1}}var Pe=function(){this.id=null,this.f=null,this.time=0,this.handler=De(this.onTimeout,this)};Pe.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Pe.prototype.set=function(t,i){this.f=i;var u=+new Date+t;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=u)};function Ce(t,i){for(var u=0;u<t.length;++u)if(t[u]==i)return u;return-1}var Ge=50,rt={toString:function(){return"CodeMirror.Pass"}},$e={scroll:!1},et={origin:"*mouse"},Ze={origin:"+move"};function Ct(t,i,u){for(var l=0,c=0;;){var y=t.indexOf(" ",l);y==-1&&(y=t.length);var w=y-l;if(y==t.length||c+w>=i)return l+Math.min(w,i-c);if(c+=y-l,c+=u-c%u,l=y+1,c>=i)return l}}var kt=[""];function Zt(t){for(;kt.length<=t;)kt.push(lt(kt)+" ");return kt[t]}function lt(t){return t[t.length-1]}function xt(t,i){for(var u=[],l=0;l<t.length;l++)u[l]=i(t[l],l);return u}function Ft(t,i,u){for(var l=0,c=u(i);l<t.length&&u(t[l])<=c;)l++;t.splice(l,0,i)}function Kr(){}function br(t,i){var u;return Object.create?u=Object.create(t):(Kr.prototype=t,u=new Kr),i&&Oe(i,u),u}var qr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function xr(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||qr.test(t))}function Yt(t,i){return i?i.source.indexOf("\\w")>-1&&xr(t)?!0:i.test(t):xr(t)}function dr(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i])return!1;return!0}var Xe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function gt(t){return t.charCodeAt(0)>=768&&Xe.test(t)}function Tt(t,i,u){for(;(u<0?i>0:i<t.length)&>(t.charAt(i));)i+=u;return i}function At(t,i,u){for(var l=i>u?-1:1;;){if(i==u)return i;var c=(i+u)/2,y=l<0?Math.ceil(c):Math.floor(c);if(y==i)return t(y)?i:u;t(y)?u=y:i=y+l}}function Ot(t,i,u,l){if(!t)return l(i,u,"ltr",0);for(var c=!1,y=0;y<t.length;++y){var w=t[y];(w.from<u&&w.to>i||i==u&&w.to==i)&&(l(Math.max(w.from,i),Math.min(w.to,u),w.level==1?"rtl":"ltr",y),c=!0)}c||l(i,u,"ltr")}var ct=null;function it(t,i,u){var l;ct=null;for(var c=0;c<t.length;++c){var y=t[c];if(y.from<i&&y.to>i)return c;y.to==i&&(y.from!=y.to&&u=="before"?l=c:ct=c),y.from==i&&(y.from!=y.to&&u!="before"?l=c:ct=c)}return l!=null?l:ct}var Et=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(V){return V<=247?t.charAt(V):1424<=V&&V<=1524?"R":1536<=V&&V<=1785?i.charAt(V-1536):1774<=V&&V<=2220?"r":8192<=V&&V<=8203?"w":V==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,y=/[LRr]/,w=/[Lb1n]/,O=/[1n]/;function R(V,oe,ce){this.level=V,this.from=oe,this.to=ce}return function(V,oe){var ce=oe=="ltr"?"L":"R";if(V.length==0||oe=="ltr"&&!l.test(V))return!1;for(var me=V.length,he=[],Te=0;Te<me;++Te)he.push(u(V.charCodeAt(Te)));for(var Le=0,ze=ce;Le<me;++Le){var Ye=he[Le];Ye=="m"?he[Le]=ze:ze=Ye}for(var Qe=0,Je=ce;Qe<me;++Qe){var qe=he[Qe];qe=="1"&&Je=="r"?he[Qe]="n":y.test(qe)&&(Je=qe,qe=="r"&&(he[Qe]="R"))}for(var ht=1,dt=he[0];ht<me-1;++ht){var Mt=he[ht];Mt=="+"&&dt=="1"&&he[ht+1]=="1"?he[ht]="1":Mt==","&&dt==he[ht+1]&&(dt=="1"||dt=="n")&&(he[ht]=dt),dt=Mt}for(var tr=0;tr<me;++tr){var Tr=he[tr];if(Tr==",")he[tr]="N";else if(Tr=="%"){var wt=void 0;for(wt=tr+1;wt<me&&he[wt]=="%";++wt);for(var xn=tr&&he[tr-1]=="!"||wt<me&&he[wt]=="1"?"1":"N",sn=tr;sn<wt;++sn)he[sn]=xn;tr=wt-1}}for(var Ar=0,Hr=ce;Ar<me;++Ar){var zr=he[Ar];Hr=="L"&&zr=="1"?he[Ar]="L":y.test(zr)&&(Hr=zr)}for(var Pr=0;Pr<me;++Pr)if(c.test(he[Pr])){var Cr=void 0;for(Cr=Pr+1;Cr<me&&c.test(he[Cr]);++Cr);for(var gr=(Pr?he[Pr-1]:ce)=="L",hn=(Cr<me?he[Cr]:ce)=="L",Ba=gr==hn?gr?"L":"R":ce,Si=Pr;Si<Cr;++Si)he[Si]=Ba;Pr=Cr-1}for(var Nr=[],Mn,Dr=0;Dr<me;)if(w.test(he[Dr])){var Nl=Dr;for(++Dr;Dr<me&&w.test(he[Dr]);++Dr);Nr.push(new R(0,Nl,Dr))}else{var wi=Dr,ji=Nr.length,Jn=oe=="rtl"?1:0;for(++Dr;Dr<me&&he[Dr]!="L";++Dr);for(var Qr=wi;Qr<Dr;)if(O.test(he[Qr])){wi<Qr&&(Nr.splice(ji,0,new R(1,wi,Qr)),ji+=Jn);var Nn=Qr;for(++Qr;Qr<Dr&&O.test(he[Qr]);++Qr);Nr.splice(ji,0,new R(2,Nn,Qr)),ji+=Jn,wi=Qr}else++Qr;wi<Dr&&Nr.splice(ji,0,new R(1,wi,Dr))}return oe=="ltr"&&(Nr[0].level==1&&(Mn=V.match(/^\s+/))&&(Nr[0].from=Mn[0].length,Nr.unshift(new R(0,0,Mn[0].length))),lt(Nr).level==1&&(Mn=V.match(/\s+$/))&&(lt(Nr).to-=Mn[0].length,Nr.push(new R(0,me-Mn[0].length,me)))),oe=="rtl"?Nr.reverse():Nr}}();function nt(t,i){var u=t.order;return u==null&&(u=t.order=Et(t.text,i)),u}var Ve=[],ue=function(t,i,u){if(t.addEventListener)t.addEventListener(i,u,!1);else if(t.attachEvent)t.attachEvent("on"+i,u);else{var l=t._handlers||(t._handlers={});l[i]=(l[i]||Ve).concat(u)}};function ge(t,i){return t._handlers&&t._handlers[i]||Ve}function Be(t,i,u){if(t.removeEventListener)t.removeEventListener(i,u,!1);else if(t.detachEvent)t.detachEvent("on"+i,u);else{var l=t._handlers,c=l&&l[i];if(c){var y=Ce(c,u);y>-1&&(l[i]=c.slice(0,y).concat(c.slice(y+1)))}}}function Ke(t,i){var u=ge(t,i);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),c=0;c<u.length;++c)u[c].apply(null,l)}function at(t,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ke(t,u||i.type,t,i),_n(i)||i.codemirrorIgnore}function bt(t){var i=t._handlers&&t._handlers.cursorActivity;if(!!i)for(var u=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Ce(u,i[l])==-1&&u.push(i[l])}function Rt(t,i){return ge(t,i).length>0}function pr(t){t.prototype.on=function(i,u){ue(this,i,u)},t.prototype.off=function(i,u){Be(this,i,u)}}function Lt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function jt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function _n(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Yr(t){Lt(t),jt(t)}function Jr(t){return t.target||t.srcElement}function si(t){var i=t.which;return i==null&&(t.button&1?i=1:t.button&2?i=3:t.button&4&&(i=2)),k&&t.ctrlKey&&i==1&&(i=3),i}var en=function(){if(E&&F<9)return!1;var t=q("div");return"draggable"in t||"dragDrop"in t}(),li;function ui(t){if(li==null){var i=q("span","\u200B");pe(t,q("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(li=i.offsetWidth<=1&&i.offsetHeight>2&&!(E&&F<8))}var u=li?q("span","\u200B"):q("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var tn;function Pn(t){if(tn!=null)return tn;var i=pe(t,document.createTextNode("A\u062EA")),u=G(i,0,1).getBoundingClientRect(),l=G(i,1,2).getBoundingClientRect();return fe(t),!u||u.left==u.right?!1:tn=l.right-u.right<3}var Vr=`
|
|
5
|
+
* Version: "3.0.0-alpha.11"
|
|
6
|
+
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{62680:(h,O,s)=>{"use strict";var d=s(67286),x=s(89429),w=x(d("String.prototype.indexOf"));h.exports=function(E,F){var W=d(E,!!F);return typeof W=="function"&&w(E,".prototype.")>-1?x(W):W}},89429:(h,O,s)=>{"use strict";var d=s(4090),x=s(67286),w=x("%Function.prototype.apply%"),A=x("%Function.prototype.call%"),E=x("%Reflect.apply%",!0)||d.call(A,w),F=x("%Object.getOwnPropertyDescriptor%",!0),W=x("%Object.defineProperty%",!0),Z=x("%Math.max%");if(W)try{W({},"a",{value:1})}catch(ue){W=null}h.exports=function(ne){var ae=E(d,A,arguments);if(F&&W){var Y=F(ae,"length");Y.configurable&&W(ae,"length",{value:1+Z(0,ne.length-(arguments.length-1))})}return ae};var ee=function(){return E(d,w,arguments)};W?W(h.exports,"apply",{value:ee}):h.exports.apply=ee},61682:(h,O,s)=>{(function(d){d(s(23326))})(function(d){var x={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},w=d.Pos;d.defineOption("autoCloseBrackets",!1,function(N,C,k){k&&k!=d.Init&&(N.removeKeyMap(E),N.state.closeBrackets=null),C&&(F(A(C,"pairs")),N.state.closeBrackets=C,N.addKeyMap(E))});function A(N,C){return C=="pairs"&&typeof N=="string"?N:typeof N=="object"&&N[C]!=null?N[C]:x[C]}var E={Backspace:ee,Enter:ue};function F(N){for(var C=0;C<N.length;C++){var k=N.charAt(C),j="'"+k+"'";E[j]||(E[j]=W(k))}}F(x.pairs+"`");function W(N){return function(C){return Y(C,N)}}function Z(N){var C=N.state.closeBrackets;if(!C||C.override)return C;var k=N.getModeAt(N.getCursor());return k.closeBrackets||C}function ee(N){var C=Z(N);if(!C||N.getOption("disableInput"))return d.Pass;for(var k=A(C,"pairs"),j=N.listSelections(),J=0;J<j.length;J++){if(!j[J].empty())return d.Pass;var K=P(N,j[J].head);if(!K||k.indexOf(K)%2!=0)return d.Pass}for(var J=j.length-1;J>=0;J--){var U=j[J].head;N.replaceRange("",w(U.line,U.ch-1),w(U.line,U.ch+1),"+delete")}}function ue(N){var C=Z(N),k=C&&A(C,"explode");if(!k||N.getOption("disableInput"))return d.Pass;for(var j=N.listSelections(),J=0;J<j.length;J++){if(!j[J].empty())return d.Pass;var K=P(N,j[J].head);if(!K||k.indexOf(K)%2!=0)return d.Pass}N.operation(function(){var U=N.lineSeparator()||`
|
|
7
|
+
`;N.replaceSelection(U+U,null),ne(N,-1),j=N.listSelections();for(var re=0;re<j.length;re++){var X=j[re].head.line;N.indentLine(X,null,!0),N.indentLine(X+1,null,!0)}})}function ne(N,C){for(var k=[],j=N.listSelections(),J=0,K=0;K<j.length;K++){var U=j[K];U.head==N.getCursor()&&(J=K);var re=U.head.ch||C>0?{line:U.head.line,ch:U.head.ch+C}:{line:U.head.line-1};k.push({anchor:re,head:re})}N.setSelections(k,J)}function ae(N){var C=d.cmpPos(N.anchor,N.head)>0;return{anchor:new w(N.anchor.line,N.anchor.ch+(C?-1:1)),head:new w(N.head.line,N.head.ch+(C?1:-1))}}function Y(N,C){var k=Z(N);if(!k||N.getOption("disableInput"))return d.Pass;var j=A(k,"pairs"),J=j.indexOf(C);if(J==-1)return d.Pass;for(var K=A(k,"closeBefore"),U=A(k,"triples"),re=j.charAt(J+1)==C,X=N.listSelections(),z=J%2==0,ce,he=0;he<X.length;he++){var _=X[he],Q=_.head,H,ye=N.getRange(Q,w(Q.line,Q.ch+1));if(z&&!_.empty())H="surround";else if((re||!z)&&ye==C)re&&G(N,Q)?H="both":U.indexOf(C)>=0&&N.getRange(Q,w(Q.line,Q.ch+3))==C+C+C?H="skipThree":H="skip";else if(re&&Q.ch>1&&U.indexOf(C)>=0&&N.getRange(w(Q.line,Q.ch-2),Q)==C+C){if(Q.ch>2&&/\bstring/.test(N.getTokenTypeAt(w(Q.line,Q.ch-2))))return d.Pass;H="addFour"}else if(re){var ke=Q.ch==0?" ":N.getRange(w(Q.line,Q.ch-1),Q);if(!d.isWordChar(ye)&&ke!=C&&!d.isWordChar(ke))H="both";else return d.Pass}else if(z&&(ye.length===0||/\s/.test(ye)||K.indexOf(ye)>-1))H="both";else return d.Pass;if(!ce)ce=H;else if(ce!=H)return d.Pass}var je=J%2?j.charAt(J-1):C,De=J%2?C:j.charAt(J+1);N.operation(function(){if(ce=="skip")ne(N,1);else if(ce=="skipThree")ne(N,3);else if(ce=="surround"){for(var nt=N.getSelections(),tt=0;tt<nt.length;tt++)nt[tt]=je+nt[tt]+De;N.replaceSelections(nt,"around"),nt=N.listSelections().slice();for(var tt=0;tt<nt.length;tt++)nt[tt]=ae(nt[tt]);N.setSelections(nt)}else ce=="both"?(N.replaceSelection(je+De,null),N.triggerElectric(je+De),ne(N,-1)):ce=="addFour"&&(N.replaceSelection(je+je+je+je,"before"),ne(N,1))})}function P(N,C){var k=N.getRange(w(C.line,C.ch-1),w(C.line,C.ch+1));return k.length==2?k:null}function G(N,C){var k=N.getTokenAt(w(C.line,C.ch+1));return/\bstring/.test(k.type)&&k.start==C.ch&&(C.ch==0||!/\bstring/.test(N.getTokenTypeAt(C)))}})},32407:(h,O,s)=>{(function(d){d(s(23326))})(function(d){var x=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),w=d.Pos,A={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function E(ne){return ne&&ne.bracketRegex||/[(){}[\]]/}function F(ne,ae,Y){var P=ne.getLineHandle(ae.line),G=ae.ch-1,N=Y&&Y.afterCursor;N==null&&(N=/(^| )cm-fat-cursor($| )/.test(ne.getWrapperElement().className));var C=E(Y),k=!N&&G>=0&&C.test(P.text.charAt(G))&&A[P.text.charAt(G)]||C.test(P.text.charAt(G+1))&&A[P.text.charAt(++G)];if(!k)return null;var j=k.charAt(1)==">"?1:-1;if(Y&&Y.strict&&j>0!=(G==ae.ch))return null;var J=ne.getTokenTypeAt(w(ae.line,G+1)),K=W(ne,w(ae.line,G+(j>0?1:0)),j,J,Y);return K==null?null:{from:w(ae.line,G),to:K&&K.pos,match:K&&K.ch==k.charAt(0),forward:j>0}}function W(ne,ae,Y,P,G){for(var N=G&&G.maxScanLineLength||1e4,C=G&&G.maxScanLines||1e3,k=[],j=E(G),J=Y>0?Math.min(ae.line+C,ne.lastLine()+1):Math.max(ne.firstLine()-1,ae.line-C),K=ae.line;K!=J;K+=Y){var U=ne.getLine(K);if(!!U){var re=Y>0?0:U.length-1,X=Y>0?U.length:-1;if(!(U.length>N))for(K==ae.line&&(re=ae.ch-(Y<0?1:0));re!=X;re+=Y){var z=U.charAt(re);if(j.test(z)&&(P===void 0||(ne.getTokenTypeAt(w(K,re+1))||"")==(P||""))){var ce=A[z];if(ce&&ce.charAt(1)==">"==Y>0)k.push(z);else if(k.length)k.pop();else return{pos:w(K,re),ch:z}}}}}return K-Y==(Y>0?ne.lastLine():ne.firstLine())?!1:null}function Z(ne,ae,Y){for(var P=ne.state.matchBrackets.maxHighlightLineLength||1e3,G=Y&&Y.highlightNonMatching,N=[],C=ne.listSelections(),k=0;k<C.length;k++){var j=C[k].empty()&&F(ne,C[k].head,Y);if(j&&(j.match||G!==!1)&&ne.getLine(j.from.line).length<=P){var J=j.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";N.push(ne.markText(j.from,w(j.from.line,j.from.ch+1),{className:J})),j.to&&ne.getLine(j.to.line).length<=P&&N.push(ne.markText(j.to,w(j.to.line,j.to.ch+1),{className:J}))}}if(N.length){x&&ne.state.focused&&ne.focus();var K=function(){ne.operation(function(){for(var U=0;U<N.length;U++)N[U].clear()})};if(ae)setTimeout(K,800);else return K}}function ee(ne){ne.operation(function(){ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null),ne.state.matchBrackets.currentlyHighlighted=Z(ne,!1,ne.state.matchBrackets)})}function ue(ne){ne.state.matchBrackets&&ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null)}d.defineOption("matchBrackets",!1,function(ne,ae,Y){Y&&Y!=d.Init&&(ne.off("cursorActivity",ee),ne.off("focus",ee),ne.off("blur",ue),ue(ne)),ae&&(ne.state.matchBrackets=typeof ae=="object"?ae:{},ne.on("cursorActivity",ee),ne.on("focus",ee),ne.on("blur",ue))}),d.defineExtension("matchBrackets",function(){Z(this,!0)}),d.defineExtension("findMatchingBracket",function(ne,ae,Y){return(Y||typeof ae=="boolean")&&(Y?(Y.strict=ae,ae=Y):ae=ae?{strict:!0}:null),F(this,ne,ae)}),d.defineExtension("scanForBracket",function(ne,ae,Y,P){return W(this,ne,ae,Y,P)})})},22130:(h,O,s)=>{(function(d){d(s(23326))})(function(d){"use strict";var x="CodeMirror-hint",w="CodeMirror-hint-active";d.showHint=function(N,C,k){if(!C)return N.showHint(k);k&&k.async&&(C.async=!0);var j={hint:C};if(k)for(var J in k)j[J]=k[J];return N.showHint(j)},d.defineExtension("showHint",function(N){N=W(this,this.getCursor("start"),N);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!N.hint.supportsSelection)return;for(var k=0;k<C.length;k++)if(C[k].head.line!=C[k].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var j=this.state.completionActive=new A(this,N);!j.options.hint||(d.signal(this,"startCompletion",this),j.update(!0))}}),d.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function A(N,C){if(this.cm=N,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var k=this;N.on("cursorActivity",this.activityFunc=function(){k.cursorActivity()})}}var E=window.requestAnimationFrame||function(N){return setTimeout(N,1e3/60)},F=window.cancelAnimationFrame||clearTimeout;A.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&d.signal(this.data,"close"),this.widget&&this.widget.close(),d.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(N,C){var k=N.list[C],j=this;this.cm.operation(function(){k.hint?k.hint(j.cm,N,k):j.cm.replaceRange(Z(k),k.from||N.from,k.to||N.to,"complete"),d.signal(N,"pick",k),j.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(F(this.debounce),this.debounce=0);var N=this.startPos;this.data&&(N=this.data.from);var C=this.cm.getCursor(),k=this.cm.getLine(C.line);if(C.line!=this.startPos.line||k.length-C.ch!=this.startLen-this.startPos.ch||C.ch<N.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(k.charAt(C.ch-1)))this.close();else{var j=this;this.debounce=E(function(){j.update()}),this.widget&&this.widget.disable()}},update:function(N){if(this.tick!=null){var C=this,k=++this.tick;Y(this.options.hint,this.cm,this.options,function(j){C.tick==k&&C.finishUpdate(j,N)})}},finishUpdate:function(N,C){this.data&&d.signal(this.data,"update");var k=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=N,N&&N.list.length&&(k&&N.list.length==1?this.pick(N,0):(this.widget=new ne(this,N),d.signal(N,"shown")))}};function W(N,C,k){var j=N.options.hintOptions,J={};for(var K in G)J[K]=G[K];if(j)for(var K in j)j[K]!==void 0&&(J[K]=j[K]);if(k)for(var K in k)k[K]!==void 0&&(J[K]=k[K]);return J.hint.resolve&&(J.hint=J.hint.resolve(N,C)),J}function Z(N){return typeof N=="string"?N:N.text}function ee(N,C){var k={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},j=/Mac/.test(navigator.platform);j&&(k["Ctrl-P"]=function(){C.moveFocus(-1)},k["Ctrl-N"]=function(){C.moveFocus(1)});var J=N.options.customKeys,K=J?{}:k;function U(z,ce){var he;typeof ce!="string"?he=function(_){return ce(_,C)}:k.hasOwnProperty(ce)?he=k[ce]:he=ce,K[z]=he}if(J)for(var re in J)J.hasOwnProperty(re)&&U(re,J[re]);var X=N.options.extraKeys;if(X)for(var re in X)X.hasOwnProperty(re)&&U(re,X[re]);return K}function ue(N,C){for(;C&&C!=N;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==N)return C;C=C.parentNode}}function ne(N,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=N,this.data=C,this.picked=!1;var k=this,j=N.cm,J=j.getInputField().ownerDocument,K=J.defaultView||J.parentWindow,U=this.hints=J.createElement("ul");U.setAttribute("role","listbox"),U.setAttribute("aria-expanded","true"),U.id=this.id;var re=N.cm.options.theme;U.className="CodeMirror-hints "+re,this.selectedHint=C.selectedHint||0;for(var X=C.list,z=0;z<X.length;++z){var ce=U.appendChild(J.createElement("li")),he=X[z],_=x+(z!=this.selectedHint?"":" "+w);he.className!=null&&(_=he.className+" "+_),ce.className=_,z==this.selectedHint&&ce.setAttribute("aria-selected","true"),ce.id=this.id+"-"+z,ce.setAttribute("role","option"),he.render?he.render(ce,C,he):ce.appendChild(J.createTextNode(he.displayText||Z(he))),ce.hintId=z}var Q=N.options.container||J.body,H=j.cursorCoords(N.options.alignWithWord?C.from:null),ye=H.left,ke=H.bottom,je=!0,De=0,nt=0;if(Q!==J.body){var tt=["absolute","relative","fixed"].indexOf(K.getComputedStyle(Q).position)!==-1,bt=tt?Q:Q.offsetParent,Ne=bt.getBoundingClientRect(),Oe=J.body.getBoundingClientRect();De=Ne.left-Oe.left-bt.scrollLeft,nt=Ne.top-Oe.top-bt.scrollTop}U.style.left=ye-De+"px",U.style.top=ke-nt+"px";var He=K.innerWidth||Math.max(J.body.offsetWidth,J.documentElement.offsetWidth),Pe=K.innerHeight||Math.max(J.body.offsetHeight,J.documentElement.offsetHeight);Q.appendChild(U),j.getInputField().setAttribute("aria-autocomplete","list"),j.getInputField().setAttribute("aria-owns",this.id),j.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Te=N.options.moveOnOverlap?U.getBoundingClientRect():new DOMRect,Ye=N.options.paddingForScrollbar?U.scrollHeight>U.clientHeight+1:!1,at;setTimeout(function(){at=j.getScrollInfo()});var jt=Te.bottom-Pe;if(jt>0){var rt=Te.bottom-Te.top,it=Te.top-(H.bottom-H.top)-2;Pe-Te.top<it?(rt>it&&(U.style.height=(rt=it)+"px"),U.style.top=(ke=H.top-rt)+nt+"px",je=!1):U.style.height=Pe-Te.top-2+"px"}var Ft=Te.right-He;if(Ye&&(Ft+=j.display.nativeBarWidth),Ft>0&&(Te.right-Te.left>He&&(U.style.width=He-5+"px",Ft-=Te.right-Te.left-He),U.style.left=(ye=Math.max(H.left-Ft-De,0))+"px"),Ye)for(var ot=U.firstChild;ot;ot=ot.nextSibling)ot.style.paddingRight=j.display.nativeBarWidth+"px";if(j.addKeyMap(this.keyMap=ee(N,{moveFocus:function(Ct,ze){k.changeActive(k.selectedHint+Ct,ze)},setFocus:function(Ct){k.changeActive(Ct)},menuSize:function(){return k.screenAmount()},length:X.length,close:function(){N.close()},pick:function(){k.pick()},data:C})),N.options.closeOnUnfocus){var or;j.on("blur",this.onBlur=function(){or=setTimeout(function(){N.close()},100)}),j.on("focus",this.onFocus=function(){clearTimeout(or)})}j.on("scroll",this.onScroll=function(){var Ct=j.getScrollInfo(),ze=j.getWrapperElement().getBoundingClientRect();at||(at=j.getScrollInfo());var Zr=ke+at.top-Ct.top,Er=Zr-(K.pageYOffset||(J.documentElement||J.body).scrollTop);if(je||(Er+=U.offsetHeight),Er<=ze.top||Er>=ze.bottom)return N.close();U.style.top=Zr+"px",U.style.left=ye+at.left-Ct.left+"px"}),d.on(U,"dblclick",function(Ct){var ze=ue(U,Ct.target||Ct.srcElement);ze&&ze.hintId!=null&&(k.changeActive(ze.hintId),k.pick())}),d.on(U,"click",function(Ct){var ze=ue(U,Ct.target||Ct.srcElement);ze&&ze.hintId!=null&&(k.changeActive(ze.hintId),N.options.completeOnSingleClick&&k.pick())}),d.on(U,"mousedown",function(){setTimeout(function(){j.focus()},20)});var Je=this.getSelectedHintRange();return(Je.from!==0||Je.to!==0)&&this.scrollToActive(),d.signal(C,"select",X[this.selectedHint],U.childNodes[this.selectedHint]),!0}ne.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var N=this.completion.cm.getInputField();N.removeAttribute("aria-activedescendant"),N.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var N=this;this.keyMap={Enter:function(){N.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(N,C){if(N>=this.data.list.length?N=C?this.data.list.length-1:0:N<0&&(N=C?0:this.data.list.length-1),this.selectedHint!=N){var k=this.hints.childNodes[this.selectedHint];k&&(k.className=k.className.replace(" "+w,""),k.removeAttribute("aria-selected")),k=this.hints.childNodes[this.selectedHint=N],k.className+=" "+w,k.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",k.id),this.scrollToActive(),d.signal(this.data,"select",this.data.list[this.selectedHint],k)}},scrollToActive:function(){var N=this.getSelectedHintRange(),C=this.hints.childNodes[N.from],k=this.hints.childNodes[N.to],j=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-j.offsetTop:k.offsetTop+k.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=k.offsetTop+k.offsetHeight-this.hints.clientHeight+j.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var N=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-N),to:Math.min(this.data.list.length-1,this.selectedHint+N)}}};function ae(N,C){if(!N.somethingSelected())return C;for(var k=[],j=0;j<C.length;j++)C[j].supportsSelection&&k.push(C[j]);return k}function Y(N,C,k,j){if(N.async)N(C,j,k);else{var J=N(C,k);J&&J.then?J.then(j):j(J)}}function P(N,C){var k=N.getHelpers(C,"hint"),j;if(k.length){var J=function(K,U,re){var X=ae(K,k);function z(ce){if(ce==X.length)return U(null);Y(X[ce],K,re,function(he){he&&he.list.length>0?U(he):z(ce+1)})}z(0)};return J.async=!0,J.supportsSelection=!0,J}else return(j=N.getHelper(N.getCursor(),"hintWords"))?function(K){return d.hint.fromList(K,{words:j})}:d.hint.anyword?function(K,U){return d.hint.anyword(K,U)}:function(){}}d.registerHelper("hint","auto",{resolve:P}),d.registerHelper("hint","fromList",function(N,C){var k=N.getCursor(),j=N.getTokenAt(k),J,K=d.Pos(k.line,j.start),U=k;j.start<k.ch&&/\w/.test(j.string.charAt(k.ch-j.start-1))?J=j.string.substr(0,k.ch-j.start):(J="",K=k);for(var re=[],X=0;X<C.words.length;X++){var z=C.words[X];z.slice(0,J.length)==J&&re.push(z)}if(re.length)return{list:re,from:K,to:U}}),d.commands.autocomplete=d.showHint;var G={hint:d.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};d.defineOption("hintOptions",null)})},29387:(h,O,s)=>{(function(d){d(s(23326))})(function(d){"use strict";var x="CodeMirror-lint-markers",w="CodeMirror-lint-line-";function A(U,re,X){var z=document.createElement("div");z.className="CodeMirror-lint-tooltip cm-s-"+U.options.theme,z.appendChild(X.cloneNode(!0)),U.state.lint.options.selfContain?U.getWrapperElement().appendChild(z):document.body.appendChild(z);function ce(he){if(!z.parentNode)return d.off(document,"mousemove",ce);z.style.top=Math.max(0,he.clientY-z.offsetHeight-5)+"px",z.style.left=he.clientX+5+"px"}return d.on(document,"mousemove",ce),ce(re),z.style.opacity!=null&&(z.style.opacity=1),z}function E(U){U.parentNode&&U.parentNode.removeChild(U)}function F(U){!U.parentNode||(U.style.opacity==null&&E(U),U.style.opacity=0,setTimeout(function(){E(U)},600))}function W(U,re,X,z){var ce=A(U,re,X);function he(){d.off(z,"mouseout",he),ce&&(F(ce),ce=null)}var _=setInterval(function(){if(ce)for(var Q=z;;Q=Q.parentNode){if(Q&&Q.nodeType==11&&(Q=Q.host),Q==document.body)return;if(!Q){he();break}}if(!ce)return clearInterval(_)},400);d.on(z,"mouseout",he)}function Z(U,re,X){this.marked=[],re instanceof Function&&(re={getAnnotations:re}),(!re||re===!0)&&(re={}),this.options={},this.linterOptions=re.options||{};for(var z in ee)this.options[z]=ee[z];for(var z in re)ee.hasOwnProperty(z)?re[z]!=null&&(this.options[z]=re[z]):re.options||(this.linterOptions[z]=re[z]);this.timeout=null,this.hasGutter=X,this.onMouseOver=function(ce){K(U,ce)},this.waitingFor=0}var ee={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function ue(U){var re=U.state.lint;re.hasGutter&&U.clearGutter(x),re.options.highlightLines&&ne(U);for(var X=0;X<re.marked.length;++X)re.marked[X].clear();re.marked.length=0}function ne(U){U.eachLine(function(re){var X=re.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(re.wrapClass);X&&U.removeLineClass(re,"wrap",X[0])})}function ae(U,re,X,z,ce){var he=document.createElement("div"),_=he;return he.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+X,z&&(_=he.appendChild(document.createElement("div")),_.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ce!=!1&&d.on(_,"mouseover",function(Q){W(U,Q,re,_)}),he}function Y(U,re){return U=="error"?U:re}function P(U){for(var re=[],X=0;X<U.length;++X){var z=U[X],ce=z.from.line;(re[ce]||(re[ce]=[])).push(z)}return re}function G(U){var re=U.severity;re||(re="error");var X=document.createElement("div");return X.className="CodeMirror-lint-message CodeMirror-lint-message-"+re,typeof U.messageHTML!="undefined"?X.innerHTML=U.messageHTML:X.appendChild(document.createTextNode(U.message)),X}function N(U,re){var X=U.state.lint,z=++X.waitingFor;function ce(){z=-1,U.off("change",ce)}U.on("change",ce),re(U.getValue(),function(he,_){U.off("change",ce),X.waitingFor==z&&(_&&he instanceof d&&(he=_),U.operation(function(){k(U,he)}))},X.linterOptions,U)}function C(U){var re=U.state.lint;if(!!re){var X=re.options,z=X.getAnnotations||U.getHelper(d.Pos(0,0),"lint");if(!!z)if(X.async||z.async)N(U,z);else{var ce=z(U.getValue(),re.linterOptions,U);if(!ce)return;ce.then?ce.then(function(he){U.operation(function(){k(U,he)})}):U.operation(function(){k(U,ce)})}}}function k(U,re){var X=U.state.lint;if(!!X){var z=X.options;ue(U);for(var ce=P(re),he=0;he<ce.length;++he){var _=ce[he];if(!!_){var Q=[];_=_.filter(function(nt){return Q.indexOf(nt.message)>-1?!1:Q.push(nt.message)});for(var H=null,ye=X.hasGutter&&document.createDocumentFragment(),ke=0;ke<_.length;++ke){var je=_[ke],De=je.severity;De||(De="error"),H=Y(H,De),z.formatAnnotation&&(je=z.formatAnnotation(je)),X.hasGutter&&ye.appendChild(G(je)),je.to&&X.marked.push(U.markText(je.from,je.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+De,__annotation:je}))}X.hasGutter&&U.setGutterMarker(he,x,ae(U,ye,H,ce[he].length>1,z.tooltips)),z.highlightLines&&U.addLineClass(he,"wrap",w+H)}}z.onUpdateLinting&&z.onUpdateLinting(re,ce,U)}}function j(U){var re=U.state.lint;!re||(clearTimeout(re.timeout),re.timeout=setTimeout(function(){C(U)},re.options.delay))}function J(U,re,X){for(var z=X.target||X.srcElement,ce=document.createDocumentFragment(),he=0;he<re.length;he++){var _=re[he];ce.appendChild(G(_))}W(U,X,ce,z)}function K(U,re){var X=re.target||re.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(X.className)){for(var z=X.getBoundingClientRect(),ce=(z.left+z.right)/2,he=(z.top+z.bottom)/2,_=U.findMarksAt(U.coordsChar({left:ce,top:he},"client")),Q=[],H=0;H<_.length;++H){var ye=_[H].__annotation;ye&&Q.push(ye)}Q.length&&J(U,Q,re)}}d.defineOption("lint",!1,function(U,re,X){if(X&&X!=d.Init&&(ue(U),U.state.lint.options.lintOnChange!==!1&&U.off("change",j),d.off(U.getWrapperElement(),"mouseover",U.state.lint.onMouseOver),clearTimeout(U.state.lint.timeout),delete U.state.lint),re){for(var z=U.getOption("gutters"),ce=!1,he=0;he<z.length;++he)z[he]==x&&(ce=!0);var _=U.state.lint=new Z(U,re,ce);_.options.lintOnChange&&U.on("change",j),_.options.tooltips!=!1&&_.options.tooltips!="gutter"&&d.on(U.getWrapperElement(),"mouseover",_.onMouseOver),C(U)}}),d.defineExtension("performLint",function(){C(this)})})},19757:(h,O,s)=>{(function(d){d(s(23326))})(function(d){"use strict";var x=d.Pos;function w(C){var k=C.flags;return k!=null?k:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function A(C,k){for(var j=w(C),J=j,K=0;K<k.length;K++)J.indexOf(k.charAt(K))==-1&&(J+=k.charAt(K));return j==J?C:new RegExp(C.source,J)}function E(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function F(C,k,j){k=A(k,"g");for(var J=j.line,K=j.ch,U=C.lastLine();J<=U;J++,K=0){k.lastIndex=K;var re=C.getLine(J),X=k.exec(re);if(X)return{from:x(J,X.index),to:x(J,X.index+X[0].length),match:X}}}function W(C,k,j){if(!E(k))return F(C,k,j);k=A(k,"gm");for(var J,K=1,U=j.line,re=C.lastLine();U<=re;){for(var X=0;X<K&&!(U>re);X++){var z=C.getLine(U++);J=J==null?z:J+`
|
|
8
|
+
`+z}K=K*2,k.lastIndex=j.ch;var ce=k.exec(J);if(ce){var he=J.slice(0,ce.index).split(`
|
|
9
|
+
`),_=ce[0].split(`
|
|
10
|
+
`),Q=j.line+he.length-1,H=he[he.length-1].length;return{from:x(Q,H),to:x(Q+_.length-1,_.length==1?H+_[0].length:_[_.length-1].length),match:ce}}}}function Z(C,k,j){for(var J,K=0;K<=C.length;){k.lastIndex=K;var U=k.exec(C);if(!U)break;var re=U.index+U[0].length;if(re>C.length-j)break;(!J||re>J.index+J[0].length)&&(J=U),K=U.index+1}return J}function ee(C,k,j){k=A(k,"g");for(var J=j.line,K=j.ch,U=C.firstLine();J>=U;J--,K=-1){var re=C.getLine(J),X=Z(re,k,K<0?0:re.length-K);if(X)return{from:x(J,X.index),to:x(J,X.index+X[0].length),match:X}}}function ue(C,k,j){if(!E(k))return ee(C,k,j);k=A(k,"gm");for(var J,K=1,U=C.getLine(j.line).length-j.ch,re=j.line,X=C.firstLine();re>=X;){for(var z=0;z<K&&re>=X;z++){var ce=C.getLine(re--);J=J==null?ce:ce+`
|
|
11
|
+
`+J}K*=2;var he=Z(J,k,U);if(he){var _=J.slice(0,he.index).split(`
|
|
12
|
+
`),Q=he[0].split(`
|
|
13
|
+
`),H=re+_.length,ye=_[_.length-1].length;return{from:x(H,ye),to:x(H+Q.length-1,Q.length==1?ye+Q[0].length:Q[Q.length-1].length),match:he}}}}var ne,ae;String.prototype.normalize?(ne=function(C){return C.normalize("NFD").toLowerCase()},ae=function(C){return C.normalize("NFD")}):(ne=function(C){return C.toLowerCase()},ae=function(C){return C});function Y(C,k,j,J){if(C.length==k.length)return j;for(var K=0,U=j+Math.max(0,C.length-k.length);;){if(K==U)return K;var re=K+U>>1,X=J(C.slice(0,re)).length;if(X==j)return re;X>j?U=re:K=re+1}}function P(C,k,j,J){if(!k.length)return null;var K=J?ne:ae,U=K(k).split(/\r|\n\r?/);e:for(var re=j.line,X=j.ch,z=C.lastLine()+1-U.length;re<=z;re++,X=0){var ce=C.getLine(re).slice(X),he=K(ce);if(U.length==1){var _=he.indexOf(U[0]);if(_==-1)continue e;var j=Y(ce,he,_,K)+X;return{from:x(re,Y(ce,he,_,K)+X),to:x(re,Y(ce,he,_+U[0].length,K)+X)}}else{var Q=he.length-U[0].length;if(he.slice(Q)!=U[0])continue e;for(var H=1;H<U.length-1;H++)if(K(C.getLine(re+H))!=U[H])continue e;var ye=C.getLine(re+U.length-1),ke=K(ye),je=U[U.length-1];if(ke.slice(0,je.length)!=je)continue e;return{from:x(re,Y(ce,he,Q,K)+X),to:x(re+U.length-1,Y(ye,ke,je.length,K))}}}}function G(C,k,j,J){if(!k.length)return null;var K=J?ne:ae,U=K(k).split(/\r|\n\r?/);e:for(var re=j.line,X=j.ch,z=C.firstLine()-1+U.length;re>=z;re--,X=-1){var ce=C.getLine(re);X>-1&&(ce=ce.slice(0,X));var he=K(ce);if(U.length==1){var _=he.lastIndexOf(U[0]);if(_==-1)continue e;return{from:x(re,Y(ce,he,_,K)),to:x(re,Y(ce,he,_+U[0].length,K))}}else{var Q=U[U.length-1];if(he.slice(0,Q.length)!=Q)continue e;for(var H=1,j=re-U.length+1;H<U.length-1;H++)if(K(C.getLine(j+H))!=U[H])continue e;var ye=C.getLine(re+1-U.length),ke=K(ye);if(ke.slice(ke.length-U[0].length)!=U[0])continue e;return{from:x(re+1-U.length,Y(ye,ke,ye.length-U[0].length,K)),to:x(re,Y(ce,he,Q.length,K))}}}}function N(C,k,j,J){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,j=j?C.clipPos(j):x(0,0),this.pos={from:j,to:j};var K;typeof J=="object"?K=J.caseFold:(K=J,J=null),typeof k=="string"?(K==null&&(K=!1),this.matches=function(U,re){return(U?G:P)(C,k,re,K)}):(k=A(k,"gm"),!J||J.multiline!==!1?this.matches=function(U,re){return(U?ue:W)(C,k,re)}:this.matches=function(U,re){return(U?ee:F)(C,k,re)})}N.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var k=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(k=x(k.line,k.ch),C?(k.ch--,k.ch<0&&(k.line--,k.ch=(this.doc.getLine(k.line)||"").length)):(k.ch++,k.ch>(this.doc.getLine(k.line)||"").length&&(k.ch=0,k.line++)),d.cmpPos(k,this.doc.clipPos(k))!=0))return this.atOccurrence=!1;var j=this.matches(C,k);if(this.afterEmptyMatch=j&&d.cmpPos(j.from,j.to)==0,j)return this.pos=j,this.atOccurrence=!0,this.pos.match||!0;var J=x(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:J,to:J},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,k){if(!!this.atOccurrence){var j=d.splitLines(C);this.doc.replaceRange(j,this.pos.from,this.pos.to,k),this.pos.to=x(this.pos.from.line+j.length-1,j[j.length-1].length+(j.length==1?this.pos.from.ch:0))}}},d.defineExtension("getSearchCursor",function(C,k,j){return new N(this.doc,C,k,j)}),d.defineDocExtension("getSearchCursor",function(C,k,j){return new N(this,C,k,j)}),d.defineExtension("selectMatches",function(C,k){for(var j=[],J=this.getSearchCursor(C,this.getCursor("from"),k);J.findNext()&&!(d.cmpPos(J.to(),this.getCursor("to"))>0);)j.push({anchor:J.from(),head:J.to()});j.length&&this.setSelections(j,0)})})},23326:function(h){(function(O,s){h.exports=s()})(this,function(){"use strict";var O=navigator.userAgent,s=navigator.platform,d=/gecko\/\d/i.test(O),x=/MSIE \d/.test(O),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(O),A=/Edge\/(\d+)/.exec(O),E=x||w||A,F=E&&(x?document.documentMode||6:+(A||w)[1]),W=!A&&/WebKit\//.test(O),Z=W&&/Qt\/\d+\.\d+/.test(O),ee=!A&&/Chrome\/(\d+)/.exec(O),ue=ee&&+ee[1],ne=/Opera\//.test(O),ae=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(O),P=/PhantomJS/.test(O),G=ae&&(/Mobile\/\w+/.test(O)||navigator.maxTouchPoints>2),N=/Android/.test(O),C=G||N||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(O),k=G||/Mac/.test(s),j=/\bCrOS\b/.test(O),J=/win/i.test(s),K=ne&&O.match(/Version\/(\d*\.\d*)/);K&&(K=Number(K[1])),K&&K>=15&&(ne=!1,W=!0);var U=k&&(Z||ne&&(K==null||K<12.11)),re=d||E&&F>=9;function X(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var z=function(t,i){var u=t.className,l=X(i).exec(u);if(l){var f=u.slice(l.index+l[0].length);t.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function ce(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function he(t,i){return ce(t).appendChild(i)}function _(t,i,u,l){var f=document.createElement(t);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof i=="string")f.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)f.appendChild(i[g]);return f}function Q(t,i,u,l){var f=_(t,i,u,l);return f.setAttribute("role","presentation"),f}var H;document.createRange?H=function(t,i,u,l){var f=document.createRange();return f.setEnd(l||t,u),f.setStart(t,i),f}:H=function(t,i,u){var l=document.body.createTextRange();try{l.moveToElementText(t.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",i),l};function ye(t,i){if(i.nodeType==3&&(i=i.parentNode),t.contains)return t.contains(i);do if(i.nodeType==11&&(i=i.host),i==t)return!0;while(i=i.parentNode)}function ke(t){var i;try{i=t.activeElement}catch(u){i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function je(t,i){var u=t.className;X(i).test(u)||(t.className+=(u?" ":"")+i)}function De(t,i){for(var u=t.split(" "),l=0;l<u.length;l++)u[l]&&!X(u[l]).test(i)&&(i+=" "+u[l]);return i}var nt=function(t){t.select()};G?nt=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:E&&(nt=function(t){try{t.select()}catch(i){}});function tt(t){return t.display.wrapper.ownerDocument}function bt(t){return tt(t).defaultView}function Ne(t){var i=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,i)}}function Oe(t,i,u){i||(i={});for(var l in t)t.hasOwnProperty(l)&&(u!==!1||!i.hasOwnProperty(l))&&(i[l]=t[l]);return i}function He(t,i,u,l,f){i==null&&(i=t.search(/[^\s\u00a0]/),i==-1&&(i=t.length));for(var g=l||0,S=f||0;;){var T=t.indexOf(" ",g);if(T<0||T>=i)return S+(i-g);S+=T-g,S+=u-S%u,g=T+1}}var Pe=function(){this.id=null,this.f=null,this.time=0,this.handler=Ne(this.onTimeout,this)};Pe.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Pe.prototype.set=function(t,i){this.f=i;var u=+new Date+t;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=u)};function Te(t,i){for(var u=0;u<t.length;++u)if(t[u]==i)return u;return-1}var Ye=50,at={toString:function(){return"CodeMirror.Pass"}},jt={scroll:!1},rt={origin:"*mouse"},it={origin:"+move"};function Ft(t,i,u){for(var l=0,f=0;;){var g=t.indexOf(" ",l);g==-1&&(g=t.length);var S=g-l;if(g==t.length||f+S>=i)return l+Math.min(S,i-f);if(f+=g-l,f+=u-f%u,l=g+1,f>=i)return l}}var ot=[""];function or(t){for(;ot.length<=t;)ot.push(Je(ot)+" ");return ot[t]}function Je(t){return t[t.length-1]}function Ct(t,i){for(var u=[],l=0;l<t.length;l++)u[l]=i(t[l],l);return u}function ze(t,i,u){for(var l=0,f=u(i);l<t.length&&u(t[l])<=f;)l++;t.splice(l,0,i)}function Zr(){}function Er(t,i){var u;return Object.create?u=Object.create(t):(Zr.prototype=t,u=new Zr),i&&Oe(i,u),u}var un=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tr(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||un.test(t))}function Or(t,i){return i?i.source.indexOf("\\w")>-1&&tr(t)?!0:i.test(t):tr(t)}function _r(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i])return!1;return!0}var Ze=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function gt(t){return t.charCodeAt(0)>=768&&Ze.test(t)}function Lt(t,i,u){for(;(u<0?i>0:i<t.length)&>(t.charAt(i));)i+=u;return i}function Ot(t,i,u){for(var l=i>u?-1:1;;){if(i==u)return i;var f=(i+u)/2,g=l<0?Math.ceil(f):Math.floor(f);if(g==i)return t(g)?i:u;t(g)?u=g:i=g+l}}function kt(t,i,u,l){if(!t)return l(i,u,"ltr",0);for(var f=!1,g=0;g<t.length;++g){var S=t[g];(S.from<u&&S.to>i||i==u&&S.to==i)&&(l(Math.max(S.from,i),Math.min(S.to,u),S.level==1?"rtl":"ltr",g),f=!0)}f||l(i,u,"ltr")}var dt=null;function mt(t,i,u){var l;dt=null;for(var f=0;f<t.length;++f){var g=t[f];if(g.from<i&&g.to>i)return f;g.to==i&&(g.from!=g.to&&u=="before"?l=f:dt=f),g.from==i&&(g.from!=g.to&&u!="before"?l=f:dt=f)}return l!=null?l:dt}var Tt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(V){return V<=247?t.charAt(V):1424<=V&&V<=1524?"R":1536<=V&&V<=1785?i.charAt(V-1536):1774<=V&&V<=2220?"r":8192<=V&&V<=8203?"w":V==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,g=/[LRr]/,S=/[Lb1n]/,T=/[1n]/;function L(V,le,de){this.level=V,this.from=le,this.to=de}return function(V,le){var de=le=="ltr"?"L":"R";if(V.length==0||le=="ltr"&&!l.test(V))return!1;for(var Se=V.length,me=[],Ie=0;Ie<Se;++Ie)me.push(u(V.charCodeAt(Ie)));for(var Me=0,$e=de;Me<Se;++Me){var Qe=me[Me];Qe=="m"?me[Me]=$e:$e=Qe}for(var _e=0,Xe=de;_e<Se;++_e){var et=me[_e];et=="1"&&Xe=="r"?me[_e]="n":g.test(et)&&(Xe=et,et=="r"&&(me[_e]="R"))}for(var yt=1,ht=me[0];yt<Se-1;++yt){var Bt=me[yt];Bt=="+"&&ht=="1"&&me[yt+1]=="1"?me[yt]="1":Bt==","&&ht==me[yt+1]&&(ht=="1"||ht=="n")&&(me[yt]=ht),ht=Bt}for(var fr=0;fr<Se;++fr){var Wt=me[fr];if(Wt==",")me[fr]="N";else if(Wt=="%"){var wr=void 0;for(wr=fr+1;wr<Se&&me[wr]=="%";++wr);for(var xn=fr&&me[fr-1]=="!"||wr<Se&&me[wr]=="1"?"1":"N",M=fr;M<wr;++M)me[M]=xn;fr=wr-1}}for(var Dt=0,St=de;Dt<Se;++Dt){var Ir=me[Dt];St=="L"&&Ir=="1"?me[Dt]="L":g.test(Ir)&&(St=Ir)}for(var vr=0;vr<Se;++vr)if(f.test(me[vr])){var Cr=void 0;for(Cr=vr+1;Cr<Se&&f.test(me[Cr]);++Cr);for(var br=(vr?me[vr-1]:de)=="L",hn=(Cr<Se?me[Cr]:de)=="L",ha=br==hn?br?"L":"R":de,Li=vr;Li<Cr;++Li)me[Li]=ha;vr=Cr-1}for(var Rr=[],ci,Lr=0;Lr<Se;)if(S.test(me[Lr])){var $s=Lr;for(++Lr;Lr<Se&&S.test(me[Lr]);++Lr);Rr.push(new L(0,$s,Lr))}else{var di=Lr,va=Rr.length,Yi=le=="rtl"?1:0;for(++Lr;Lr<Se&&me[Lr]!="L";++Lr);for(var It=di;It<Lr;)if(T.test(me[It])){di<It&&(Rr.splice(va,0,new L(1,di,It)),va+=Yi);var Vt=It;for(++It;It<Lr&&T.test(me[It]);++It);Rr.splice(va,0,new L(2,Vt,It)),va+=Yi,di=It}else++It;di<Lr&&Rr.splice(va,0,new L(1,di,Lr))}return le=="ltr"&&(Rr[0].level==1&&(ci=V.match(/^\s+/))&&(Rr[0].from=ci[0].length,Rr.unshift(new L(0,0,ci[0].length))),Je(Rr).level==1&&(ci=V.match(/\s+$/))&&(Je(Rr).to-=ci[0].length,Rr.push(new L(0,Se-ci[0].length,Se)))),le=="rtl"?Rr.reverse():Rr}}();function st(t,i){var u=t.order;return u==null&&(u=t.order=Tt(t.text,i)),u}var Ue=[],fe=function(t,i,u){if(t.addEventListener)t.addEventListener(i,u,!1);else if(t.attachEvent)t.attachEvent("on"+i,u);else{var l=t._handlers||(t._handlers={});l[i]=(l[i]||Ue).concat(u)}};function be(t,i){return t._handlers&&t._handlers[i]||Ue}function Be(t,i,u){if(t.removeEventListener)t.removeEventListener(i,u,!1);else if(t.detachEvent)t.detachEvent("on"+i,u);else{var l=t._handlers,f=l&&l[i];if(f){var g=Te(f,u);g>-1&&(l[i]=f.slice(0,g).concat(f.slice(g+1)))}}}function Ve(t,i){var u=be(t,i);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function lt(t,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ve(t,u||i.type,t,i),yi(i)||i.codemirrorIgnore}function vt(t){var i=t._handlers&&t._handlers.cursorActivity;if(!!i)for(var u=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Te(u,i[l])==-1&&u.push(i[l])}function Mt(t,i){return be(t,i).length>0}function pr(t){t.prototype.on=function(i,u){fe(this,i,u)},t.prototype.off=function(i,u){Be(this,i,u)}}function Nt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Tr(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function yi(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Hr(t){Nt(t),Tr(t)}function zr(t){return t.target||t.srcElement}function bi(t){var i=t.which;return i==null&&(t.button&1?i=1:t.button&2?i=3:t.button&4&&(i=2)),k&&t.ctrlKey&&i==1&&(i=3),i}var qr=function(){if(E&&F<9)return!1;var t=_("div");return"draggable"in t||"dragDrop"in t}(),gr;function ei(t){if(gr==null){var i=_("span","\u200B");he(t,_("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(gr=i.offsetWidth<=1&&i.offsetHeight>2&&!(E&&F<8))}var u=gr?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var en;function ti(t){if(en!=null)return en;var i=he(t,document.createTextNode("A\u062EA")),u=H(i,0,1).getBoundingClientRect(),l=H(i,1,2).getBoundingClientRect();return ce(t),!u||u.left==u.right?!1:en=l.right-u.right<3}var Un=`
|
|
14
14
|
|
|
15
|
-
b`.split(/\n/).length!=3?function(t){for(var i=0,u=[],l=t.length;i<=l;){var
|
|
16
|
-
`,i);c==-1&&(c=t.length);var y=t.slice(i,t.charAt(c-1)=="\r"?c-1:c),w=y.indexOf("\r");w!=-1?(u.push(y.slice(0,w)),i+=w+1):(u.push(y),i=c+1)}return u}:function(t){return t.split(/\r\n?|\n/)},Oi=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(i){return!1}}:function(t){var i;try{i=t.ownerDocument.selection.createRange()}catch(u){}return!i||i.parentElement()!=t?!1:i.compareEndPoints("StartToEnd",i)!=0},ha=function(){var t=q("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),An=null;function mn(t){if(An!=null)return An;var i=pe(t,q("span","x")),u=i.getBoundingClientRect(),l=G(i,0,1).getBoundingClientRect();return An=Math.abs(u.left-l.left)>1}var Cn={},En={};function In(t,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Cn[t]=i}function Ha(t,i){En[t]=i}function zn(t){if(typeof t=="string"&&En.hasOwnProperty(t))t=En[t];else if(t&&typeof t.name=="string"&&En.hasOwnProperty(t.name)){var i=En[t.name];typeof i=="string"&&(i={name:i}),t=br(i,t),t.name=i.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return zn("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return zn("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function fn(t,i){i=zn(i);var u=Cn[i.name];if(!u)return fn(t,"text/plain");var l=u(t,i);if(Sr.hasOwnProperty(i.name)){var c=Sr[i.name];for(var y in c)!c.hasOwnProperty(y)||(l.hasOwnProperty(y)&&(l["_"+y]=l[y]),l[y]=c[y])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var w in i.modeProps)l[w]=i.modeProps[w];return l}var Sr={};function fi(t,i){var u=Sr.hasOwnProperty(t)?Sr[t]:Sr[t]={};Oe(i,u)}function kn(t,i){if(i===!0)return i;if(t.copyState)return t.copyState(i);var u={};for(var l in i){var c=i[l];c instanceof Array&&(c=c.concat([])),u[l]=c}return u}function va(t,i){for(var u;t.innerMode&&(u=t.innerMode(i),!(!u||u.mode==t));)i=u.state,t=u.mode;return u||{mode:t,state:i}}function No(t,i,u){return t.startState?t.startState(i,u):!0}var sr=function(t,i,u){this.pos=this.start=0,this.string=t,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};sr.prototype.eol=function(){return this.pos>=this.string.length},sr.prototype.sol=function(){return this.pos==this.lineStart},sr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},sr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},sr.prototype.eat=function(t){var i=this.string.charAt(this.pos),u;if(typeof t=="string"?u=i==t:u=i&&(t.test?t.test(i):t(i)),u)return++this.pos,i},sr.prototype.eatWhile=function(t){for(var i=this.pos;this.eat(t););return this.pos>i},sr.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},sr.prototype.skipToEnd=function(){this.pos=this.string.length},sr.prototype.skipTo=function(t){var i=this.string.indexOf(t,this.pos);if(i>-1)return this.pos=i,!0},sr.prototype.backUp=function(t){this.pos-=t},sr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ue(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ue(this.string,this.lineStart,this.tabSize):0)},sr.prototype.indentation=function(){return Ue(this.string,null,this.tabSize)-(this.lineStart?Ue(this.string,this.lineStart,this.tabSize):0)},sr.prototype.match=function(t,i,u){if(typeof t=="string"){var l=function(w){return u?w.toLowerCase():w},c=this.string.substr(this.pos,t.length);if(l(c)==l(t))return i!==!1&&(this.pos+=t.length),!0}else{var y=this.string.slice(this.pos).match(t);return y&&y.index>0?null:(y&&i!==!1&&(this.pos+=y[0].length),y)}},sr.prototype.current=function(){return this.string.slice(this.start,this.pos)},sr.prototype.hideFirstChars=function(t,i){this.lineStart+=t;try{return i()}finally{this.lineStart-=t}},sr.prototype.lookAhead=function(t){var i=this.lineOracle;return i&&i.lookAhead(t)},sr.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function ot(t,i){if(i-=t.first,i<0||i>=t.size)throw new Error("There is no line "+(i+t.first)+" in the document.");for(var u=t;!u.lines;)for(var l=0;;++l){var c=u.children[l],y=c.chunkSize();if(i<y){u=c;break}i-=y}return u.lines[i]}function ci(t,i,u){var l=[],c=i.line;return t.iter(i.line,u.line+1,function(y){var w=y.text;c==u.line&&(w=w.slice(0,u.ch)),c==i.line&&(w=w.slice(i.ch)),l.push(w),++c}),l}function zi(t,i,u){var l=[];return t.iter(i,u,function(c){l.push(c.text)}),l}function cn(t,i){var u=i-t.height;if(u)for(var l=t;l;l=l.parent)l.height+=u}function zt(t){if(t.parent==null)return null;for(var i=t.parent,u=Ce(i.lines,t),l=i.parent;l;i=l,l=l.parent)for(var c=0;l.children[c]!=i;++c)u+=l.children[c].chunkSize();return u+i.first}function di(t,i){var u=t.first;e:do{for(var l=0;l<t.children.length;++l){var c=t.children[l],y=c.height;if(i<y){t=c;continue e}i-=y,u+=c.chunkSize()}return u}while(!t.lines);for(var w=0;w<t.lines.length;++w){var O=t.lines[w],R=O.height;if(i<R)break;i-=R}return u+w}function Gi(t,i){return i>=t.first&&i<t.first+t.size}function pi(t,i){return String(t.lineNumberFormatter(i+t.firstLineNumber))}function M(t,i,u){if(u===void 0&&(u=null),!(this instanceof M))return new M(t,i,u);this.line=t,this.ch=i,this.sticky=u}function ae(t,i){return t.line-i.line||t.ch-i.ch}function Fe(t,i){return t.sticky==i.sticky&&ae(t,i)==0}function He(t){return M(t.line,t.ch)}function St(t,i){return ae(t,i)<0?i:t}function Nt(t,i){return ae(t,i)<0?t:i}function Gt(t,i){return Math.max(t.first,Math.min(i,t.first+t.size-1))}function st(t,i){if(i.line<t.first)return M(t.first,0);var u=t.first+t.size-1;return i.line>u?M(u,ot(t,u).text.length):Fn(i,ot(t,i.line).text.length)}function Fn(t,i){var u=t.ch;return u==null||u>i?M(t.line,i):u<0?M(t.line,0):t}function Jt(t,i){for(var u=[],l=0;l<i.length;l++)u[l]=st(t,i[l]);return u}var Do=function(t,i){this.state=t,this.lookAhead=i},wr=function(t,i,u,l){this.state=i,this.doc=t,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};wr.prototype.lookAhead=function(t){var i=this.doc.getLine(this.line+t);return i!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),i},wr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},wr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},wr.fromSaved=function(t,i,u){return i instanceof Do?new wr(t,kn(t.mode,i.state),u,i.lookAhead):new wr(t,kn(t.mode,i),u)},wr.prototype.save=function(t){var i=t!==!1?kn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Do(i,this.maxLookAhead):i};function uu(t,i,u,l){var c=[t.state.modeGen],y={};wc(t,i.text,t.doc.mode,u,function(V,oe){return c.push(V,oe)},y,l);for(var w=u.state,O=function(V){u.baseTokens=c;var oe=t.state.overlays[V],ce=1,me=0;u.state=!0,wc(t,i.text,oe.mode,u,function(he,Te){for(var Le=ce;me<he;){var ze=c[ce];ze>he&&c.splice(ce,1,he,c[ce+1],ze),ce+=2,me=Math.min(he,ze)}if(!!Te)if(oe.opaque)c.splice(Le,ce-Le,he,"overlay "+Te),ce=Le+2;else for(;Le<ce;Le+=2){var Ye=c[Le+1];c[Le+1]=(Ye?Ye+" ":"")+"overlay "+Te}},y),u.state=w,u.baseTokens=null,u.baseTokenPos=1},R=0;R<t.state.overlays.length;++R)O(R);return{styles:c,classes:y.bgClass||y.textClass?y:null}}function Bo(t,i,u){if(!i.styles||i.styles[0]!=t.state.modeGen){var l=za(t,zt(i)),c=i.text.length>t.options.maxHighlightLength&&kn(t.doc.mode,l.state),y=uu(t,i,l);c&&(l.state=c),i.stateAfter=l.save(!c),i.styles=y.styles,y.classes?i.styleClasses=y.classes:i.styleClasses&&(i.styleClasses=null),u===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return i.styles}function za(t,i,u){var l=t.doc,c=t.display;if(!l.mode.startState)return new wr(l,!0,i);var y=gp(t,i,u),w=y>l.first&&ot(l,y-1).stateAfter,O=w?wr.fromSaved(l,w,y):new wr(l,No(l.mode),y);return l.iter(y,i,function(R){jo(t,R.text,O);var V=O.line;R.stateAfter=V==i-1||V%5==0||V>=c.viewFrom&&V<c.viewTo?O.save():null,O.nextLine()}),u&&(l.modeFrontier=O.line),O}function jo(t,i,u,l){var c=t.doc.mode,y=new sr(i,t.options.tabSize,u);for(y.start=y.pos=l||0,i==""&&ks(c,u.state);!y.eol();)Fs(c,y,u.state),y.start=y.pos}function ks(t,i){if(t.blankLine)return t.blankLine(i);if(!!t.innerMode){var u=va(t,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function Fs(t,i,u,l){for(var c=0;c<10;c++){l&&(l[0]=va(t,u).mode);var y=t.token(i,u);if(i.pos>i.start)return y}throw new Error("Mode "+t.name+" failed to advance stream.")}var fu=function(t,i,u){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=i||null,this.state=u};function cu(t,i,u,l){var c=t.doc,y=c.mode,w;i=st(c,i);var O=ot(c,i.line),R=za(t,i.line,u),V=new sr(O.text,t.options.tabSize,R),oe;for(l&&(oe=[]);(l||V.pos<i.ch)&&!V.eol();)V.start=V.pos,w=Fs(y,V,R.state),l&&oe.push(new fu(V,w,kn(c.mode,R.state)));return l?oe:new fu(V,w,R.state)}function du(t,i){if(t)for(;;){var u=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;t=t.slice(0,u.index)+t.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";i[l]==null?i[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+u[2])}return t}function wc(t,i,u,l,c,y,w){var O=u.flattenSpans;O==null&&(O=t.options.flattenSpans);var R=0,V=null,oe=new sr(i,t.options.tabSize,l),ce,me=t.options.addModeClass&&[null];for(i==""&&du(ks(u,l.state),y);!oe.eol();){if(oe.pos>t.options.maxHighlightLength?(O=!1,w&&jo(t,i,l,oe.pos),oe.pos=i.length,ce=null):ce=du(Fs(u,oe,l.state,me),y),me){var he=me[0].name;he&&(ce="m-"+(ce?he+" "+ce:he))}if(!O||V!=ce){for(;R<oe.start;)R=Math.min(oe.start,R+5e3),c(R,V);V=ce}oe.start=oe.pos}for(;R<oe.pos;){var Te=Math.min(oe.pos,R+5e3);c(Te,V),R=Te}}function gp(t,i,u){for(var l,c,y=t.doc,w=u?-1:i-(t.doc.mode.innerMode?1e3:100),O=i;O>w;--O){if(O<=y.first)return y.first;var R=ot(y,O-1),V=R.stateAfter;if(V&&(!u||O+(V instanceof Do?V.lookAhead:0)<=y.modeFrontier))return O;var oe=Ue(R.text,null,t.options.tabSize);(c==null||l>oe)&&(c=O-1,l=oe)}return c}function Ac(t,i){if(t.modeFrontier=Math.min(t.modeFrontier,i),!(t.highlightFrontier<i-10)){for(var u=t.first,l=i-1;l>u;l--){var c=ot(t,l).stateAfter;if(c&&(!(c instanceof Do)||l+c.lookAhead<i)){u=l+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,u)}}var pu=!1,hi=!1;function Cc(){pu=!0}function Ec(){hi=!0}function Rs(t,i,u){this.marker=t,this.from=i,this.to=u}function Vo(t,i){if(t)for(var u=0;u<t.length;++u){var l=t[u];if(l.marker==i)return l}}function mp(t,i){for(var u,l=0;l<t.length;++l)t[l]!=i&&(u||(u=[])).push(t[l]);return u}function yp(t,i,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&t.markedSpans&&l.has(t.markedSpans)?t.markedSpans.push(i):(t.markedSpans=t.markedSpans?t.markedSpans.concat([i]):[i],l&&l.add(t.markedSpans)),i.marker.attachLine(t)}function Oc(t,i,u){var l;if(t)for(var c=0;c<t.length;++c){var y=t[c],w=y.marker,O=y.from==null||(w.inclusiveLeft?y.from<=i:y.from<i);if(O||y.from==i&&w.type=="bookmark"&&(!u||!y.marker.insertLeft)){var R=y.to==null||(w.inclusiveRight?y.to>=i:y.to>i);(l||(l=[])).push(new Rs(w,y.from,R?null:y.to))}}return l}function hu(t,i,u){var l;if(t)for(var c=0;c<t.length;++c){var y=t[c],w=y.marker,O=y.to==null||(w.inclusiveRight?y.to>=i:y.to>i);if(O||y.from==i&&w.type=="bookmark"&&(!u||y.marker.insertLeft)){var R=y.from==null||(w.inclusiveLeft?y.from<=i:y.from<i);(l||(l=[])).push(new Rs(w,R?null:y.from-i,y.to==null?null:y.to-i))}}return l}function Ls(t,i){if(i.full)return null;var u=Gi(t,i.from.line)&&ot(t,i.from.line).markedSpans,l=Gi(t,i.to.line)&&ot(t,i.to.line).markedSpans;if(!u&&!l)return null;var c=i.from.ch,y=i.to.ch,w=ae(i.from,i.to)==0,O=Oc(u,c,w),R=hu(l,y,w),V=i.text.length==1,oe=lt(i.text).length+(V?c:0);if(O)for(var ce=0;ce<O.length;++ce){var me=O[ce];if(me.to==null){var he=Vo(R,me.marker);he?V&&(me.to=he.to==null?null:he.to+oe):me.to=c}}if(R)for(var Te=0;Te<R.length;++Te){var Le=R[Te];if(Le.to!=null&&(Le.to+=oe),Le.from==null){var ze=Vo(O,Le.marker);ze||(Le.from=oe,V&&(O||(O=[])).push(Le))}else Le.from+=oe,V&&(O||(O=[])).push(Le)}O&&(O=Tc(O)),R&&R!=O&&(R=Tc(R));var Ye=[O];if(!V){var Qe=i.text.length-2,Je;if(Qe>0&&O)for(var qe=0;qe<O.length;++qe)O[qe].to==null&&(Je||(Je=[])).push(new Rs(O[qe].marker,null,null));for(var ht=0;ht<Qe;++ht)Ye.push(Je);Ye.push(R)}return Ye}function Tc(t){for(var i=0;i<t.length;++i){var u=t[i];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&t.splice(i--,1)}return t.length?t:null}function bp(t,i,u){var l=null;if(t.iter(i.line,u.line+1,function(he){if(he.markedSpans)for(var Te=0;Te<he.markedSpans.length;++Te){var Le=he.markedSpans[Te].marker;Le.readOnly&&(!l||Ce(l,Le)==-1)&&(l||(l=[])).push(Le)}}),!l)return null;for(var c=[{from:i,to:u}],y=0;y<l.length;++y)for(var w=l[y],O=w.find(0),R=0;R<c.length;++R){var V=c[R];if(!(ae(V.to,O.from)<0||ae(V.from,O.to)>0)){var oe=[R,1],ce=ae(V.from,O.from),me=ae(V.to,O.to);(ce<0||!w.inclusiveLeft&&!ce)&&oe.push({from:V.from,to:O.from}),(me>0||!w.inclusiveRight&&!me)&&oe.push({from:O.to,to:V.to}),c.splice.apply(c,oe),R+=oe.length-3}}return c}function Pc(t){var i=t.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(t);t.markedSpans=null}}function Ic(t,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(t);t.markedSpans=i}}function $i(t){return t.inclusiveLeft?-1:0}function Ga(t){return t.inclusiveRight?1:0}function ga(t,i){var u=t.lines.length-i.lines.length;if(u!=0)return u;var l=t.find(),c=i.find(),y=ae(l.from,c.from)||$i(t)-$i(i);if(y)return-y;var w=ae(l.to,c.to)||Ga(t)-Ga(i);return w||i.id-t.id}function vu(t,i){var u=hi&&t.markedSpans,l;if(u)for(var c=void 0,y=0;y<u.length;++y)c=u[y],c.marker.collapsed&&(i?c.from:c.to)==null&&(!l||ga(l,c.marker)<0)&&(l=c.marker);return l}function Ms(t){return vu(t,!0)}function $a(t){return vu(t,!1)}function gu(t,i){var u=hi&&t.markedSpans,l;if(u)for(var c=0;c<u.length;++c){var y=u[c];y.marker.collapsed&&(y.from==null||y.from<i)&&(y.to==null||y.to>i)&&(!l||ga(l,y.marker)<0)&&(l=y.marker)}return l}function mu(t,i,u,l,c){var y=ot(t,i),w=hi&&y.markedSpans;if(w)for(var O=0;O<w.length;++O){var R=w[O];if(!!R.marker.collapsed){var V=R.marker.find(0),oe=ae(V.from,u)||$i(R.marker)-$i(c),ce=ae(V.to,l)||Ga(R.marker)-Ga(c);if(!(oe>=0&&ce<=0||oe<=0&&ce>=0)&&(oe<=0&&(R.marker.inclusiveRight&&c.inclusiveLeft?ae(V.to,u)>=0:ae(V.to,u)>0)||oe>=0&&(R.marker.inclusiveRight&&c.inclusiveLeft?ae(V.from,l)<=0:ae(V.from,l)<0)))return!0}}}function yn(t){for(var i;i=Ms(t);)t=i.find(-1,!0).line;return t}function kc(t){for(var i;i=$a(t);)t=i.find(1,!0).line;return t}function yu(t){for(var i,u;i=$a(t);)t=i.find(1,!0).line,(u||(u=[])).push(t);return u}function lr(t,i){var u=ot(t,i),l=yn(u);return u==l?i:zt(l)}function bu(t,i){if(i>t.lastLine())return i;var u=ot(t,i),l;if(!Fr(t,u))return i;for(;l=$a(u);)u=l.find(1,!0).line;return zt(u)+1}function Fr(t,i){var u=hi&&i.markedSpans;if(u){for(var l=void 0,c=0;c<u.length;++c)if(l=u[c],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Ns(t,i,l))return!0}}}function Ns(t,i,u){if(u.to==null){var l=u.marker.find(1,!0);return Ns(t,l.line,Vo(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==i.text.length)return!0;for(var c=void 0,y=0;y<i.markedSpans.length;++y)if(c=i.markedSpans[y],c.marker.collapsed&&!c.marker.widgetNode&&c.from==u.to&&(c.to==null||c.to!=u.from)&&(c.marker.inclusiveLeft||u.marker.inclusiveRight)&&Ns(t,i,c))return!0}function qn(t){t=yn(t);for(var i=0,u=t.parent,l=0;l<u.lines.length;++l){var c=u.lines[l];if(c==t)break;i+=c.height}for(var y=u.parent;y;u=y,y=u.parent)for(var w=0;w<y.children.length;++w){var O=y.children[w];if(O==u)break;i+=O.height}return i}function Gn(t){if(t.height==0)return 0;for(var i=t.text.length,u,l=t;u=Ms(l);){var c=u.find(0,!0);l=c.from.line,i+=c.from.ch-c.to.ch}for(l=t;u=$a(l);){var y=u.find(0,!0);i-=l.text.length-y.from.ch,l=y.to.line,i+=l.text.length-y.to.ch}return i}function vi(t){var i=t.display,u=t.doc;i.maxLine=ot(u,u.first),i.maxLineLength=Gn(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var c=Gn(l);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=l)})}var Ti=function(t,i,u){this.text=t,Ic(this,i),this.height=u?u(this):1};Ti.prototype.lineNo=function(){return zt(this)},pr(Ti);function Ds(t,i,u,l){t.text=i,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Pc(t),Ic(t,u);var c=l?l(t):1;c!=t.height&&cn(t,c)}function Fc(t){t.parent=null,Pc(t)}var xu={},Bs={};function Uo(t,i){if(!t||/^\s*$/.test(t))return null;var u=i.addModeClass?Bs:xu;return u[t]||(u[t]=t.replace(/\S+/g,"cm-$&"))}function Pi(t,i){var u=Z("span",null,null,U?"padding-right: .1px":null),l={pre:Z("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};i.measure={};for(var c=0;c<=(i.rest?i.rest.length:0);c++){var y=c?i.rest[c-1]:i.line,w=void 0;l.pos=0,l.addToken=ar,Pn(t.display.measure)&&(w=nt(y,t.doc.direction))&&(l.addToken=Mc(l.addToken,w)),l.map=[];var O=i!=t.display.externalMeasured&&zt(y);$n(y,l,Bo(t,y,O)),y.styleClasses&&(y.styleClasses.bgClass&&(l.bgClass=je(y.styleClasses.bgClass,l.bgClass||"")),y.styleClasses.textClass&&(l.textClass=je(y.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(ui(t.display.measure))),c==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(U){var R=l.content.lastChild;(/\bcm-tab\b/.test(R.className)||R.querySelector&&R.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ke(t,"renderLine",t,i.line,l.pre),l.pre.className&&(l.textClass=je(l.pre.className,l.textClass||"")),l}function Rc(t){var i=q("span","\u2022","cm-invalidchar");return i.title="\\u"+t.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function ar(t,i,u,l,c,y,w){if(!!i){var O=t.splitSpaces?Lc(i,t.trailingSpace):i,R=t.cm.state.specialChars,V=!1,oe;if(!R.test(i))t.col+=i.length,oe=document.createTextNode(O),t.map.push(t.pos,t.pos+i.length,oe),E&&F<9&&(V=!0),t.pos+=i.length;else{oe=document.createDocumentFragment();for(var ce=0;;){R.lastIndex=ce;var me=R.exec(i),he=me?me.index-ce:i.length-ce;if(he){var Te=document.createTextNode(O.slice(ce,ce+he));E&&F<9?oe.appendChild(q("span",[Te])):oe.appendChild(Te),t.map.push(t.pos,t.pos+he,Te),t.col+=he,t.pos+=he}if(!me)break;ce+=he+1;var Le=void 0;if(me[0]==" "){var ze=t.cm.options.tabSize,Ye=ze-t.col%ze;Le=oe.appendChild(q("span",Zt(Ye),"cm-tab")),Le.setAttribute("role","presentation"),Le.setAttribute("cm-text"," "),t.col+=Ye}else me[0]=="\r"||me[0]==`
|
|
17
|
-
`?(Le=oe.appendChild(q("span",me[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Le.setAttribute("cm-text",me[0]),t.col+=1):(Le=t.cm.options.specialCharPlaceholder(me[0]),Le.setAttribute("cm-text",me[0]),E&&F<9?oe.appendChild(q("span",[Le])):oe.appendChild(Le),t.col+=1);t.map.push(t.pos,t.pos+1,Le),t.pos++}}if(t.trailingSpace=O.charCodeAt(i.length-1)==32,u||l||c||V||y||w){var Qe=u||"";l&&(Qe+=l),c&&(Qe+=c);var Je=q("span",[oe],Qe,y);if(w)for(var qe in w)w.hasOwnProperty(qe)&&qe!="style"&&qe!="class"&&Je.setAttribute(qe,w[qe]);return t.content.appendChild(Je)}t.content.appendChild(oe)}}function Lc(t,i){if(t.length>1&&!/ /.test(t))return t;for(var u=i,l="",c=0;c<t.length;c++){var y=t.charAt(c);y==" "&&u&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(y="\xA0"),l+=y,u=y==" "}return l}function Mc(t,i){return function(u,l,c,y,w,O,R){c=c?c+" cm-force-border":"cm-force-border";for(var V=u.pos,oe=V+l.length;;){for(var ce=void 0,me=0;me<i.length&&(ce=i[me],!(ce.to>V&&ce.from<=V));me++);if(ce.to>=oe)return t(u,l,c,y,w,O,R);t(u,l.slice(0,ce.to-V),c,y,null,O,R),y=null,l=l.slice(ce.to-V),V=ce.to}}}function Su(t,i,u,l){var c=!l&&u.widgetNode;c&&t.map.push(t.pos,t.pos+i,c),!l&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",u.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=i,t.trailingSpace=!1}function $n(t,i,u){var l=t.markedSpans,c=t.text,y=0;if(!l){for(var w=1;w<u.length;w+=2)i.addToken(i,c.slice(y,y=u[w]),Uo(u[w+1],i.cm.options));return}for(var O=c.length,R=0,V=1,oe="",ce,me,he=0,Te,Le,ze,Ye,Qe;;){if(he==R){Te=Le=ze=me="",Qe=null,Ye=null,he=1/0;for(var Je=[],qe=void 0,ht=0;ht<l.length;++ht){var dt=l[ht],Mt=dt.marker;if(Mt.type=="bookmark"&&dt.from==R&&Mt.widgetNode)Je.push(Mt);else if(dt.from<=R&&(dt.to==null||dt.to>R||Mt.collapsed&&dt.to==R&&dt.from==R)){if(dt.to!=null&&dt.to!=R&&he>dt.to&&(he=dt.to,Le=""),Mt.className&&(Te+=" "+Mt.className),Mt.css&&(me=(me?me+";":"")+Mt.css),Mt.startStyle&&dt.from==R&&(ze+=" "+Mt.startStyle),Mt.endStyle&&dt.to==he&&(qe||(qe=[])).push(Mt.endStyle,dt.to),Mt.title&&((Qe||(Qe={})).title=Mt.title),Mt.attributes)for(var tr in Mt.attributes)(Qe||(Qe={}))[tr]=Mt.attributes[tr];Mt.collapsed&&(!Ye||ga(Ye.marker,Mt)<0)&&(Ye=dt)}else dt.from>R&&he>dt.from&&(he=dt.from)}if(qe)for(var Tr=0;Tr<qe.length;Tr+=2)qe[Tr+1]==he&&(Le+=" "+qe[Tr]);if(!Ye||Ye.from==R)for(var wt=0;wt<Je.length;++wt)Su(i,0,Je[wt]);if(Ye&&(Ye.from||0)==R){if(Su(i,(Ye.to==null?O+1:Ye.to)-R,Ye.marker,Ye.from==null),Ye.to==null)return;Ye.to==R&&(Ye=!1)}}if(R>=O)break;for(var xn=Math.min(O,he);;){if(oe){var sn=R+oe.length;if(!Ye){var Ar=sn>xn?oe.slice(0,xn-R):oe;i.addToken(i,Ar,ce?ce+Te:Te,ze,R+Ar.length==he?Le:"",me,Qe)}if(sn>=xn){oe=oe.slice(xn-R),R=xn;break}R=sn,ze=""}oe=c.slice(y,y=u[V++]),ce=Uo(u[V++],i.cm.options)}}}function js(t,i,u){this.line=i,this.rest=yu(i),this.size=this.rest?zt(lt(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Fr(t,i)}function Ka(t,i,u){for(var l=[],c,y=i;y<u;y=c){var w=new js(t.doc,ot(t.doc,y),y);c=y+w.size,l.push(w)}return l}var Ii=null;function Nc(t){Ii?Ii.ops.push(t):t.ownsGroup=Ii={ops:[t],delayedCallbacks:[]}}function ei(t){var i=t.delayedCallbacks,u=0;do{for(;u<i.length;u++)i[u].call(null);for(var l=0;l<t.ops.length;l++){var c=t.ops[l];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(u<i.length)}function Dc(t,i){var u=t.ownsGroup;if(!!u)try{ei(u)}finally{Ii=null,i(u)}}var gi=null;function Rr(t,i){var u=ge(t,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),c;Ii?c=Ii.delayedCallbacks:gi?c=gi:(c=gi=[],setTimeout(wu,0));for(var y=function(O){c.push(function(){return u[O].apply(null,l)})},w=0;w<u.length;++w)y(w)}}function wu(){var t=gi;gi=null;for(var i=0;i<t.length;++i)t[i]()}function Au(t,i,u,l){for(var c=0;c<i.changes.length;c++){var y=i.changes[c];y=="text"?jc(t,i):y=="gutter"?Cu(t,i,u,l):y=="class"?$t(t,i):y=="widget"&&Kt(t,i,l)}i.changes=null}function ma(t){return t.node==t.text&&(t.node=q("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),E&&F<8&&(t.node.style.zIndex=2)),t.node}function Bc(t,i){var u=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),i.background)u?i.background.className=u:(i.background.parentNode.removeChild(i.background),i.background=null);else if(u){var l=ma(i);i.background=l.insertBefore(q("div",null,u),l.firstChild),t.display.input.setUneditable(i.background)}}function Ya(t,i){var u=t.display.externalMeasured;return u&&u.line==i.line?(t.display.externalMeasured=null,i.measure=u.measure,u.built):Pi(t,i)}function jc(t,i){var u=i.text.className,l=Ya(t,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,$t(t,i)):u&&(i.text.className=u)}function $t(t,i){Bc(t,i),i.line.wrapClass?ma(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var u=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=u||""}function Cu(t,i,u,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var c=ma(i);i.gutterBackground=q("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),t.display.input.setUneditable(i.gutterBackground),c.insertBefore(i.gutterBackground,i.text)}var y=i.line.gutterMarkers;if(t.options.lineNumbers||y){var w=ma(i),O=i.gutter=q("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(O.setAttribute("aria-hidden","true"),t.display.input.setUneditable(O),w.insertBefore(O,i.text),i.line.gutterClass&&(O.className+=" "+i.line.gutterClass),t.options.lineNumbers&&(!y||!y["CodeMirror-linenumbers"])&&(i.lineNumber=O.appendChild(q("div",pi(t.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),y)for(var R=0;R<t.display.gutterSpecs.length;++R){var V=t.display.gutterSpecs[R].className,oe=y.hasOwnProperty(V)&&y[V];oe&&O.appendChild(q("div",[oe],"CodeMirror-gutter-elt","left: "+l.gutterLeft[V]+"px; width: "+l.gutterWidth[V]+"px"))}}}function Kt(t,i,u){i.alignable&&(i.alignable=null);for(var l=J("CodeMirror-linewidget"),c=i.node.firstChild,y=void 0;c;c=y)y=c.nextSibling,l.test(c.className)&&i.node.removeChild(c);ut(t,i,u)}function Vc(t,i,u,l){var c=Ya(t,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),$t(t,i),Cu(t,i,u,l),ut(t,i,l),i.node}function ut(t,i,u){if(Eu(t,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)Eu(t,i.rest[l],i,u,!1)}function Eu(t,i,u,l,c){if(!!i.widgets)for(var y=ma(u),w=0,O=i.widgets;w<O.length;++w){var R=O[w],V=q("div",[R.node],"CodeMirror-linewidget"+(R.className?" "+R.className:""));R.handleMouseEvents||V.setAttribute("cm-ignore-events","true"),Ou(R,V,u,l),t.display.input.setUneditable(V),c&&R.above?y.insertBefore(V,u.gutter||u.text):y.appendChild(V),Rr(R,"redraw")}}function Ou(t,i,u,l){if(t.noHScroll){(u.alignable||(u.alignable=[])).push(i);var c=l.wrapperWidth;i.style.left=l.fixedPos+"px",t.coverGutter||(c-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=c+"px"}t.coverGutter&&(i.style.zIndex=5,i.style.position="relative",t.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ja(t){if(t.height!=null)return t.height;var i=t.doc.cm;if(!i)return 0;if(!ve(document.body,t.node)){var u="position: relative;";t.coverGutter&&(u+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),t.noHScroll&&(u+="width: "+i.display.wrapper.clientWidth+"px;"),pe(i.display.measure,q("div",[t.node],null,u))}return t.height=t.node.parentNode.offsetHeight}function Er(t,i){for(var u=Jr(i);u!=t.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==t.sizer&&u!=t.mover)return!0}function Vs(t){return t.lineSpace.offsetTop}function Us(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Wo(t){if(t.cachedPaddingH)return t.cachedPaddingH;var i=pe(t.measure,q("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(t.cachedPaddingH=l),l}function Kn(t){return Ge-t.display.nativeBarWidth}function Ki(t){return t.display.scroller.clientWidth-Kn(t)-t.display.barWidth}function Ws(t){return t.display.scroller.clientHeight-Kn(t)-t.display.barHeight}function Uc(t,i,u){var l=t.options.lineWrapping,c=l&&Ki(t);if(!i.measure.heights||l&&i.measure.width!=c){var y=i.measure.heights=[];if(l){i.measure.width=c;for(var w=i.text.firstChild.getClientRects(),O=0;O<w.length-1;O++){var R=w[O],V=w[O+1];Math.abs(R.bottom-V.bottom)>2&&y.push((R.bottom+V.top)/2-u.top)}}y.push(u.bottom-u.top)}}function Tu(t,i,u){if(t.line==i)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var l=0;l<t.rest.length;l++)if(t.rest[l]==i)return{map:t.measure.maps[l],cache:t.measure.caches[l]};for(var c=0;c<t.rest.length;c++)if(zt(t.rest[c])>u)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}}function Wc(t,i){i=yn(i);var u=zt(i),l=t.display.externalMeasured=new js(t.doc,i,u);l.lineN=u;var c=l.built=Pi(t,l);return l.text=c.pre,pe(t.display.lineMeasure,c.pre),l}function Pu(t,i,u,l){return ti(t,ya(t,i),u,l)}function Hs(t,i){if(i>=t.display.viewFrom&&i<t.display.viewTo)return t.display.view[Zi(t,i)];var u=t.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function ya(t,i){var u=zt(i),l=Hs(t,u);l&&!l.text?l=null:l&&l.changes&&(Au(t,l,u,Js(t)),t.curOp.forceUpdate=!0),l||(l=Wc(t,i));var c=Tu(l,i,u);return{line:i,view:l,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function ti(t,i,u,l,c){i.before&&(u=-1);var y=u+(l||""),w;return i.cache.hasOwnProperty(y)?w=i.cache[y]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Uc(t,i.view,i.rect),i.hasHeights=!0),w=Fu(t,i,u,l),w.bogus||(i.cache[y]=w)),{left:w.left,right:w.right,top:c?w.rtop:w.top,bottom:c?w.rbottom:w.bottom}}var Iu={left:0,right:0,top:0,bottom:0};function ku(t,i,u){for(var l,c,y,w,O,R,V=0;V<t.length;V+=3)if(O=t[V],R=t[V+1],i<O?(c=0,y=1,w="left"):i<R?(c=i-O,y=c+1):(V==t.length-3||i==R&&t[V+3]>i)&&(y=R-O,c=y-1,i>=R&&(w="right")),c!=null){if(l=t[V+2],O==R&&u==(l.insertLeft?"left":"right")&&(w=u),u=="left"&&c==0)for(;V&&t[V-2]==t[V-3]&&t[V-1].insertLeft;)l=t[(V-=3)+2],w="left";if(u=="right"&&c==R-O)for(;V<t.length-3&&t[V+3]==t[V+4]&&!t[V+5].insertLeft;)l=t[(V+=3)+2],w="right";break}return{node:l,start:c,end:y,collapse:w,coverStart:O,coverEnd:R}}function Lr(t,i){var u=Iu;if(i=="left")for(var l=0;l<t.length&&(u=t[l]).left==u.right;l++);else for(var c=t.length-1;c>=0&&(u=t[c]).left==u.right;c--);return u}function Fu(t,i,u,l){var c=ku(i.map,u,l),y=c.node,w=c.start,O=c.end,R=c.collapse,V;if(y.nodeType==3){for(var oe=0;oe<4;oe++){for(;w&>(i.line.text.charAt(c.coverStart+w));)--w;for(;c.coverStart+O<c.coverEnd&>(i.line.text.charAt(c.coverStart+O));)++O;if(E&&F<9&&w==0&&O==c.coverEnd-c.coverStart?V=y.parentNode.getBoundingClientRect():V=Lr(G(y,w,O).getClientRects(),l),V.left||V.right||w==0)break;O=w,w=w-1,R="right"}E&&F<11&&(V=Xa(t.display.measure,V))}else{w>0&&(R=l="right");var ce;t.options.lineWrapping&&(ce=y.getClientRects()).length>1?V=ce[l=="right"?ce.length-1:0]:V=y.getBoundingClientRect()}if(E&&F<9&&!w&&(!V||!V.left&&!V.right)){var me=y.parentNode.getClientRects()[0];me?V={left:me.left,right:me.left+Xi(t.display),top:me.top,bottom:me.bottom}:V=Iu}for(var he=V.top-i.rect.top,Te=V.bottom-i.rect.top,Le=(he+Te)/2,ze=i.view.measure.heights,Ye=0;Ye<ze.length-1&&!(Le<ze[Ye]);Ye++);var Qe=Ye?ze[Ye-1]:0,Je=ze[Ye],qe={left:(R=="right"?V.right:V.left)-i.rect.left,right:(R=="left"?V.left:V.right)-i.rect.left,top:Qe,bottom:Je};return!V.left&&!V.right&&(qe.bogus=!0),t.options.singleCursorHeightPerLine||(qe.rtop=he,qe.rbottom=Te),qe}function Xa(t,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!mn(t))return i;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*u,right:i.right*u,top:i.top*l,bottom:i.bottom*l}}function rn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var i=0;i<t.rest.length;i++)t.measure.caches[i]={}}function Ho(t){t.display.externalMeasure=null,fe(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)rn(t.display.view[i])}function Yi(t){Ho(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Ru(t){return Q&&L?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function Lu(t){return Q&&L?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function zs(t){var i=yn(t),u=i.widgets,l=0;if(u)for(var c=0;c<u.length;++c)u[c].above&&(l+=Ja(u[c]));return l}function zo(t,i,u,l,c){if(!c){var y=zs(i);u.top+=y,u.bottom+=y}if(l=="line")return u;l||(l="local");var w=qn(i);if(l=="local"?w+=Vs(t.display):w-=t.display.viewOffset,l=="page"||l=="window"){var O=t.display.lineSpace.getBoundingClientRect();w+=O.top+(l=="window"?0:Lu(_e(t)));var R=O.left+(l=="window"?0:Ru(_e(t)));u.left+=R,u.right+=R}return u.top+=w,u.bottom+=w,u}function Mu(t,i,u){if(u=="div")return i;var l=i.left,c=i.top;if(u=="page")l-=Ru(_e(t)),c-=Lu(_e(t));else if(u=="local"||!u){var y=t.display.sizer.getBoundingClientRect();l+=y.left,c+=y.top}var w=t.display.lineSpace.getBoundingClientRect();return{left:l-w.left,top:c-w.top}}function Go(t,i,u,l,c){return l||(l=ot(t.doc,i.line)),zo(t,l,Pu(t,l,i.ch,c),u)}function or(t,i,u,l,c,y){l=l||ot(t.doc,i.line),c||(c=ya(t,l));function w(Te,Le){var ze=ti(t,c,Te,Le?"right":"left",y);return Le?ze.left=ze.right:ze.right=ze.left,zo(t,l,ze,u)}var O=nt(l,t.doc.direction),R=i.ch,V=i.sticky;if(R>=l.text.length?(R=l.text.length,V="before"):R<=0&&(R=0,V="after"),!O)return w(V=="before"?R-1:R,V=="before");function oe(Te,Le,ze){var Ye=O[Le],Qe=Ye.level==1;return w(ze?Te-1:Te,Qe!=ze)}var ce=it(O,R,V),me=ct,he=oe(R,ce,V=="before");return me!=null&&(he.other=oe(R,me,V!="before")),he}function Gs(t,i){var u=0;i=st(t.doc,i),t.options.lineWrapping||(u=Xi(t.display)*i.ch);var l=ot(t.doc,i.line),c=qn(l)+Vs(t.display);return{left:u,right:u,top:c,bottom:c+l.height}}function $s(t,i,u,l,c){var y=M(t,i,u);return y.xRel=c,l&&(y.outside=l),y}function Qa(t,i,u){var l=t.doc;if(u+=t.display.viewOffset,u<0)return $s(l.first,0,null,-1,-1);var c=di(l,u),y=l.first+l.size-1;if(c>y)return $s(l.first+l.size-1,ot(l,y).text.length,null,1,1);i<0&&(i=0);for(var w=ot(l,c);;){var O=Nu(t,w,c,i,u),R=gu(w,O.ch+(O.xRel>0||O.outside>0?1:0));if(!R)return O;var V=R.find(1);if(V.line==c)return V;w=ot(l,c=V.line)}}function Ks(t,i,u,l){l-=zs(i);var c=i.text.length,y=At(function(w){return ti(t,u,w-1).bottom<=l},c,0);return c=At(function(w){return ti(t,u,w).top>l},y,c),{begin:y,end:c}}function Ys(t,i,u,l){u||(u=ya(t,i));var c=zo(t,i,ti(t,u,l),"line").top;return Ks(t,i,u,c)}function $o(t,i,u,l){return t.bottom<=u?!1:t.top>u?!0:(l?t.left:t.right)>i}function Nu(t,i,u,l,c){c-=qn(i);var y=ya(t,i),w=zs(i),O=0,R=i.text.length,V=!0,oe=nt(i,t.doc.direction);if(oe){var ce=(t.options.lineWrapping?Hc:Du)(t,i,u,y,oe,l,c);V=ce.level!=1,O=V?ce.from:ce.to-1,R=V?ce.to:ce.from-1}var me=null,he=null,Te=At(function(ht){var dt=ti(t,y,ht);return dt.top+=w,dt.bottom+=w,$o(dt,l,c,!1)?(dt.top<=c&&dt.left<=l&&(me=ht,he=dt),!0):!1},O,R),Le,ze,Ye=!1;if(he){var Qe=l-he.left<he.right-l,Je=Qe==V;Te=me+(Je?0:1),ze=Je?"after":"before",Le=Qe?he.left:he.right}else{!V&&(Te==R||Te==O)&&Te++,ze=Te==0?"after":Te==i.text.length?"before":ti(t,y,Te-(V?1:0)).bottom+w<=c==V?"after":"before";var qe=or(t,M(u,Te,ze),"line",i,y);Le=qe.left,Ye=c<qe.top?-1:c>=qe.bottom?1:0}return Te=Tt(i.text,Te,1),$s(u,Te,ze,Ye,l-Le)}function Du(t,i,u,l,c,y,w){var O=At(function(ce){var me=c[ce],he=me.level!=1;return $o(or(t,M(u,he?me.to:me.from,he?"before":"after"),"line",i,l),y,w,!0)},0,c.length-1),R=c[O];if(O>0){var V=R.level!=1,oe=or(t,M(u,V?R.from:R.to,V?"after":"before"),"line",i,l);$o(oe,y,w,!0)&&oe.top>w&&(R=c[O-1])}return R}function Hc(t,i,u,l,c,y,w){var O=Ks(t,i,l,w),R=O.begin,V=O.end;/\s/.test(i.text.charAt(V-1))&&V--;for(var oe=null,ce=null,me=0;me<c.length;me++){var he=c[me];if(!(he.from>=V||he.to<=R)){var Te=he.level!=1,Le=ti(t,l,Te?Math.min(V,he.to)-1:Math.max(R,he.from)).right,ze=Le<y?y-Le+1e9:Le-y;(!oe||ce>ze)&&(oe=he,ce=ze)}}return oe||(oe=c[c.length-1]),oe.from<R&&(oe={from:R,to:oe.to,level:oe.level}),oe.to>V&&(oe={from:oe.from,to:V,level:oe.level}),oe}var Ji;function ba(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Ji==null){Ji=q("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Ji.appendChild(document.createTextNode("x")),Ji.appendChild(q("br"));Ji.appendChild(document.createTextNode("x"))}pe(t.measure,Ji);var u=Ji.offsetHeight/50;return u>3&&(t.cachedTextHeight=u),fe(t.measure),u||1}function Xi(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var i=q("span","xxxxxxxxxx"),u=q("pre",[i],"CodeMirror-line-like");pe(t.measure,u);var l=i.getBoundingClientRect(),c=(l.right-l.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function Js(t){for(var i=t.display,u={},l={},c=i.gutters.clientLeft,y=i.gutters.firstChild,w=0;y;y=y.nextSibling,++w){var O=t.display.gutterSpecs[w].className;u[O]=y.offsetLeft+y.clientLeft+c,l[O]=y.clientWidth}return{fixedPos:Xs(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Xs(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Bu(t){var i=ba(t.display),u=t.options.lineWrapping,l=u&&Math.max(5,t.display.scroller.clientWidth/Xi(t.display)-3);return function(c){if(Fr(t.doc,c))return 0;var y=0;if(c.widgets)for(var w=0;w<c.widgets.length;w++)c.widgets[w].height&&(y+=c.widgets[w].height);return u?y+(Math.ceil(c.text.length/l)||1)*i:y+i}}function Ko(t){var i=t.doc,u=Bu(t);i.iter(function(l){var c=u(l);c!=l.height&&cn(l,c)})}function Qi(t,i,u,l){var c=t.display;if(!u&&Jr(i).getAttribute("cm-not-content")=="true")return null;var y,w,O=c.lineSpace.getBoundingClientRect();try{y=i.clientX-O.left,w=i.clientY-O.top}catch(ce){return null}var R=Qa(t,y,w),V;if(l&&R.xRel>0&&(V=ot(t.doc,R.line).text).length==R.ch){var oe=Ue(V,V.length,t.options.tabSize)-V.length;R=M(R.line,Math.max(0,Math.round((y-Wo(t.display).left)/Xi(t.display))-oe))}return R}function Zi(t,i){if(i>=t.display.viewTo||(i-=t.display.viewFrom,i<0))return null;for(var u=t.display.view,l=0;l<u.length;l++)if(i-=u[l].size,i<0)return l}function dn(t,i,u,l){i==null&&(i=t.doc.first),u==null&&(u=t.doc.first+t.doc.size),l||(l=0);var c=t.display;if(l&&u<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>i)&&(c.updateLineNumbers=i),t.curOp.viewChanged=!0,i>=c.viewTo)hi&&lr(t.doc,i)<c.viewTo&&Fi(t);else if(u<=c.viewFrom)hi&&bu(t.doc,u+l)>c.viewFrom?Fi(t):(c.viewFrom+=l,c.viewTo+=l);else if(i<=c.viewFrom&&u>=c.viewTo)Fi(t);else if(i<=c.viewFrom){var y=Yo(t,u,u+l,1);y?(c.view=c.view.slice(y.index),c.viewFrom=y.lineN,c.viewTo+=l):Fi(t)}else if(u>=c.viewTo){var w=Yo(t,i,i,-1);w?(c.view=c.view.slice(0,w.index),c.viewTo=w.lineN):Fi(t)}else{var O=Yo(t,i,i,-1),R=Yo(t,u,u+l,1);O&&R?(c.view=c.view.slice(0,O.index).concat(Ka(t,O.lineN,R.lineN)).concat(c.view.slice(R.index)),c.viewTo+=l):Fi(t)}var V=c.externalMeasured;V&&(u<V.lineN?V.lineN+=l:i<V.lineN+V.size&&(c.externalMeasured=null))}function ki(t,i,u){t.curOp.viewChanged=!0;var l=t.display,c=t.display.externalMeasured;if(c&&i>=c.lineN&&i<c.lineN+c.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var y=l.view[Zi(t,i)];if(y.node!=null){var w=y.changes||(y.changes=[]);Ce(w,u)==-1&&w.push(u)}}}function Fi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Yo(t,i,u,l){var c=Zi(t,i),y,w=t.display.view;if(!hi||u==t.doc.first+t.doc.size)return{index:c,lineN:u};for(var O=t.display.viewFrom,R=0;R<c;R++)O+=w[R].size;if(O!=i){if(l>0){if(c==w.length-1)return null;y=O+w[c].size-i,c++}else y=O-i;i+=y,u+=y}for(;lr(t.doc,u)!=u;){if(c==(l<0?0:w.length-1))return null;u+=l*w[c-(l<0?1:0)].size,c+=l}return{index:c,lineN:u}}function ju(t,i,u){var l=t.display,c=l.view;c.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=Ka(t,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=Ka(t,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Zi(t,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(Ka(t,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Zi(t,u)))),l.viewTo=u}function Vu(t){for(var i=t.display.view,u=0,l=0;l<i.length;l++){var c=i[l];!c.hidden&&(!c.node||c.changes)&&++u}return u}function Za(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Uu(t,i){i===void 0&&(i=!0);var u=t.doc,l={},c=l.cursors=document.createDocumentFragment(),y=l.selection=document.createDocumentFragment(),w=t.options.$customCursor;w&&(i=!0);for(var O=0;O<u.sel.ranges.length;O++)if(!(!i&&O==u.sel.primIndex)){var R=u.sel.ranges[O];if(!(R.from().line>=t.display.viewTo||R.to().line<t.display.viewFrom)){var V=R.empty();if(w){var oe=w(t,R);oe&&Qs(t,oe,c)}else(V||t.options.showCursorWhenSelecting)&&Qs(t,R.head,c);V||zc(t,R,y)}}return l}function Qs(t,i,u){var l=or(t,i,"div",null,null,!t.options.singleCursorHeightPerLine),c=u.appendChild(q("div","\xA0","CodeMirror-cursor"));if(c.style.left=l.left+"px",c.style.top=l.top+"px",c.style.height=Math.max(0,l.bottom-l.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var y=Go(t,i,"div",null,null),w=y.right-y.left;c.style.width=(w>0?w:t.defaultCharWidth())+"px"}if(l.other){var O=u.appendChild(q("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));O.style.display="",O.style.left=l.other.left+"px",O.style.top=l.other.top+"px",O.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Jo(t,i){return t.top-i.top||t.left-i.left}function zc(t,i,u){var l=t.display,c=t.doc,y=document.createDocumentFragment(),w=Wo(t.display),O=w.left,R=Math.max(l.sizerWidth,Ki(t)-l.sizer.offsetLeft)-w.right,V=c.direction=="ltr";function oe(Je,qe,ht,dt){qe<0&&(qe=0),qe=Math.round(qe),dt=Math.round(dt),y.appendChild(q("div",null,"CodeMirror-selected","position: absolute; left: "+Je+`px;
|
|
18
|
-
top: `+
|
|
19
|
-
height: `+(
|
|
20
|
-
top: `+(i.top-u.viewOffset-
|
|
21
|
-
height: `+(i.bottom-i.top+
|
|
22
|
-
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");t.display.lineSpace.appendChild(w),w.scrollIntoView(c),t.display.lineSpace.removeChild(w)}}}function Gc(t,i,u,l){l==null&&(l=0);var c;!t.options.lineWrapping&&i==u&&(u=i.sticky=="before"?M(i.line,i.ch+1,"before"):i,i=i.ch?M(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var y=0;y<5;y++){var w=!1,O=or(t,i),R=!u||u==i?O:or(t,u);c={left:Math.min(O.left,R.left),top:Math.min(O.top,R.top)-l,right:Math.max(O.left,R.left),bottom:Math.max(O.bottom,R.bottom)+l};var V=_a(t,c),oe=t.doc.scrollTop,ce=t.doc.scrollLeft;if(V.scrollTop!=null&&(to(t,V.scrollTop),Math.abs(t.doc.scrollTop-oe)>1&&(w=!0)),V.scrollLeft!=null&&(qi(t,V.scrollLeft),Math.abs(t.doc.scrollLeft-ce)>1&&(w=!0)),!w)break}return c}function zu(t,i){var u=_a(t,i);u.scrollTop!=null&&to(t,u.scrollTop),u.scrollLeft!=null&&qi(t,u.scrollLeft)}function _a(t,i){var u=t.display,l=ba(t.display);i.top<0&&(i.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:u.scroller.scrollTop,y=Ws(t),w={};i.bottom-i.top>y&&(i.bottom=i.top+y);var O=t.doc.height+Us(u),R=i.top<l,V=i.bottom>O-l;if(i.top<c)w.scrollTop=R?0:i.top;else if(i.bottom>c+y){var oe=Math.min(i.top,(V?O:i.bottom)-y);oe!=c&&(w.scrollTop=oe)}var ce=t.options.fixedGutter?0:u.gutters.offsetWidth,me=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:u.scroller.scrollLeft-ce,he=Ki(t)-u.gutters.offsetWidth,Te=i.right-i.left>he;return Te&&(i.right=i.left+he),i.left<10?w.scrollLeft=0:i.left<me?w.scrollLeft=Math.max(0,i.left+ce-(Te?0:10)):i.right>he+me-3&&(w.scrollLeft=i.right+(Te?0:10)-he),w}function _s(t,i){i!=null&&(eo(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+i)}function xa(t){eo(t);var i=t.getCursor();t.curOp.scrollToPos={from:i,to:i,margin:t.options.cursorScrollMargin}}function qa(t,i,u){(i!=null||u!=null)&&eo(t),i!=null&&(t.curOp.scrollLeft=i),u!=null&&(t.curOp.scrollTop=u)}function $c(t,i){eo(t),t.curOp.scrollToPos=i}function eo(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var u=Gs(t,i.from),l=Gs(t,i.to);Gu(t,u,l,i.margin)}}function Gu(t,i,u,l){var c=_a(t,{left:Math.min(i.left,u.left),top:Math.min(i.top,u.top)-l,right:Math.max(i.right,u.right),bottom:Math.max(i.bottom,u.bottom)+l});qa(t,c.scrollLeft,c.scrollTop)}function to(t,i){Math.abs(t.doc.scrollTop-i)<2||(p||tl(t,{top:i}),$u(t,i,!0),p&&tl(t),no(t,100))}function $u(t,i,u){i=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,i)),!(t.display.scroller.scrollTop==i&&!u)&&(t.doc.scrollTop=i,t.display.scrollbars.setScrollTop(i),t.display.scroller.scrollTop!=i&&(t.display.scroller.scrollTop=i))}function qi(t,i,u,l){i=Math.max(0,Math.min(i,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((u?i==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-i)<2)&&!l)&&(t.doc.scrollLeft=i,_u(t),t.display.scroller.scrollLeft!=i&&(t.display.scroller.scrollLeft=i),t.display.scrollbars.setScrollLeft(i))}function Sa(t){var i=t.display,u=i.gutters.offsetWidth,l=Math.round(t.doc.height+Us(t.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:t.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+Kn(t)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var ea=function(t,i,u){this.cm=u;var l=this.vert=q("div",[q("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=q("div",[q("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=c.tabIndex=-1,t(l),t(c),ue(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ue(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,E&&F<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ea.prototype.update=function(t){var i=t.scrollWidth>t.clientWidth+1,u=t.scrollHeight>t.clientHeight+1,l=t.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var c=t.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+c)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=t.barLeft+"px";var y=t.viewWidth-t.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+y)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:i?l:0}},ea.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ea.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ea.prototype.zeroWidthHack=function(){var t=k&&!$?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Pe,this.disableVert=new Pe},ea.prototype.enableZeroWidthBar=function(t,i,u){t.style.visibility="";function l(){var c=t.getBoundingClientRect(),y=u=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);y!=t?t.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},ea.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var ro=function(){};ro.prototype.update=function(){return{bottom:0,right:0}},ro.prototype.setScrollLeft=function(){},ro.prototype.setScrollTop=function(){},ro.prototype.clear=function(){};function wa(t,i){i||(i=Sa(t));var u=t.display.barWidth,l=t.display.barHeight;qs(t,i);for(var c=0;c<4&&u!=t.display.barWidth||l!=t.display.barHeight;c++)u!=t.display.barWidth&&t.options.lineWrapping&&_o(t),qs(t,Sa(t)),u=t.display.barWidth,l=t.display.barHeight}function qs(t,i){var u=t.display,l=u.scrollbars.update(i);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=i.gutterWidth+"px"):u.gutterFiller.style.display=""}var Ku={native:ea,null:ro};function Yu(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&z(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Ku[t.options.scrollbarStyle](function(i){t.display.wrapper.insertBefore(i,t.display.scrollbarFiller),ue(i,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,u){u=="horizontal"?qi(t,i):to(t,i)},t),t.display.scrollbars.addClass&&Ne(t.display.wrapper,t.display.scrollbars.addClass)}var Kc=0;function Ri(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Kc,markArrays:null},Nc(t.curOp)}function mi(t){var i=t.curOp;i&&Dc(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Li(u)})}function Li(t){for(var i=t.ops,u=0;u<i.length;u++)es(i[u]);for(var l=0;l<i.length;l++)Ju(i[l]);for(var c=0;c<i.length;c++)Xu(i[c]);for(var y=0;y<i.length;y++)ts(i[y]);for(var w=0;w<i.length;w++)el(i[w])}function es(t){var i=t.cm,u=i.display;Zu(i),t.updateMaxLine&&vi(i),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<u.viewFrom||t.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&i.options.lineWrapping,t.update=t.mustUpdate&&new io(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Ju(t){t.updatedDisplay=t.mustUpdate&&an(t.cm,t.update)}function Xu(t){var i=t.cm,u=i.display;t.updatedDisplay&&_o(i),t.barMeasure=Sa(i),u.maxLineChanged&&!i.options.lineWrapping&&(t.adjustWidthTo=Pu(i,u.maxLine,u.maxLine.text.length).left+3,i.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+t.adjustWidthTo+Kn(i)+i.display.barWidth),t.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+t.adjustWidthTo-Ki(i))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=u.input.prepareSelection())}function ts(t){var i=t.cm;t.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<i.doc.scrollLeft&&qi(i,Math.min(i.display.scroller.scrollLeft,t.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=t.focus&&t.focus==Ie(_e(i));t.preparedSelection&&i.display.input.showSelection(t.preparedSelection,u),(t.updatedDisplay||t.startHeight!=i.doc.height)&&wa(i,t.barMeasure),t.updatedDisplay&&rs(i,t.barMeasure),t.selectionChanged&&Xo(i),i.state.focused&&t.updateInput&&i.display.input.reset(t.typing),u&&Zs(t.cm)}function el(t){var i=t.cm,u=i.display,l=i.doc;if(t.updatedDisplay&&ra(i,t.update),u.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),t.scrollTop!=null&&$u(i,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&qi(i,t.scrollLeft,!0,!0),t.scrollToPos){var c=Gc(i,st(l,t.scrollToPos.from),st(l,t.scrollToPos.to),t.scrollToPos.margin);Hu(i,c)}var y=t.maybeHiddenMarkers,w=t.maybeUnhiddenMarkers;if(y)for(var O=0;O<y.length;++O)y[O].lines.length||Ke(y[O],"hide");if(w)for(var R=0;R<w.length;++R)w[R].lines.length&&Ke(w[R],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),t.changeObjs&&Ke(i,"changes",i,t.changeObjs),t.update&&t.update.finish()}function bn(t,i){if(t.curOp)return i();Ri(t);try{return i()}finally{mi(t)}}function Or(t,i){return function(){if(t.curOp)return i.apply(t,arguments);Ri(t);try{return i.apply(t,arguments)}finally{mi(t)}}}function nn(t){return function(){if(this.curOp)return t.apply(this,arguments);Ri(this);try{return t.apply(this,arguments)}finally{mi(this)}}}function Mr(t){return function(){var i=this.cm;if(!i||i.curOp)return t.apply(this,arguments);Ri(i);try{return t.apply(this,arguments)}finally{mi(i)}}}function no(t,i){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(i,De(Qu,t))}function Qu(t){var i=t.doc;if(!(i.highlightFrontier>=t.display.viewTo)){var u=+new Date+t.options.workTime,l=za(t,i.highlightFrontier),c=[];i.iter(l.line,Math.min(i.first+i.size,t.display.viewTo+500),function(y){if(l.line>=t.display.viewFrom){var w=y.styles,O=y.text.length>t.options.maxHighlightLength?kn(i.mode,l.state):null,R=uu(t,y,l,!0);O&&(l.state=O),y.styles=R.styles;var V=y.styleClasses,oe=R.classes;oe?y.styleClasses=oe:V&&(y.styleClasses=null);for(var ce=!w||w.length!=y.styles.length||V!=oe&&(!V||!oe||V.bgClass!=oe.bgClass||V.textClass!=oe.textClass),me=0;!ce&&me<w.length;++me)ce=w[me]!=y.styles[me];ce&&c.push(l.line),y.stateAfter=l.save(),l.nextLine()}else y.text.length<=t.options.maxHighlightLength&&jo(t,y.text,l),y.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return no(t,t.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),c.length&&bn(t,function(){for(var y=0;y<c.length;y++)ki(t,c[y],"text")})}}var io=function(t,i,u){var l=t.display;this.viewport=i,this.visible=qo(l,t.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Ki(t),this.force=u,this.dims=Js(t),this.events=[]};io.prototype.signal=function(t,i){Rt(t,i)&&this.events.push(arguments)},io.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ke.apply(null,this.events[t])};function Zu(t){var i=t.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Kn(t)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Kn(t)+"px",i.scrollbarsClipped=!0)}function ri(t){if(t.hasFocus())return null;var i=Ie(_e(t));if(!i||!ve(t.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=mt(t).getSelection();l.anchorNode&&l.extend&&ve(t.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function ta(t){if(!(!t||!t.activeElt||t.activeElt==Ie(t.activeElt.ownerDocument))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ve(document.body,t.anchorNode)&&ve(document.body,t.focusNode))){var i=t.activeElt.ownerDocument,u=i.defaultView.getSelection(),l=i.createRange();l.setEnd(t.anchorNode,t.anchorOffset),l.collapse(!1),u.removeAllRanges(),u.addRange(l),u.extend(t.focusNode,t.focusOffset)}}function an(t,i){var u=t.display,l=t.doc;if(i.editorIsHidden)return Fi(t),!1;if(!i.force&&i.visible.from>=u.viewFrom&&i.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Vu(t)==0)return!1;nl(t)&&(Fi(t),i.dims=Js(t));var c=l.first+l.size,y=Math.max(i.visible.from-t.options.viewportMargin,l.first),w=Math.min(c,i.visible.to+t.options.viewportMargin);u.viewFrom<y&&y-u.viewFrom<20&&(y=Math.max(l.first,u.viewFrom)),u.viewTo>w&&u.viewTo-w<20&&(w=Math.min(c,u.viewTo)),hi&&(y=lr(t.doc,y),w=bu(t.doc,w));var O=y!=u.viewFrom||w!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;ju(t,y,w),u.viewOffset=qn(ot(t.doc,u.viewFrom)),t.display.mover.style.top=u.viewOffset+"px";var R=Vu(t);if(!O&&R==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var V=ri(t);return R>4&&(u.lineDiv.style.display="none"),Yc(t,u.updateLineNumbers,i.dims),R>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,ta(V),fe(u.cursorDiv),fe(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,O&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,no(t,400)),u.updateLineNumbers=null,!0}function ra(t,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!t.options.lineWrapping||i.oldDisplayWidth==Ki(t)){if(u&&u.top!=null&&(u={top:Math.min(t.doc.height+Us(t.display)-Ws(t),u.top)}),i.visible=qo(t.display,t.doc,u),i.visible.from>=t.display.viewFrom&&i.visible.to<=t.display.viewTo)break}else l&&(i.visible=qo(t.display,t.doc,u));if(!an(t,i))break;_o(t);var c=Sa(t);Za(t),wa(t,c),rs(t,c),i.force=!1}i.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(i.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function tl(t,i){var u=new io(t,i);if(an(t,u)){_o(t),ra(t,u);var l=Sa(t);Za(t),wa(t,l),rs(t,l),u.finish()}}function Yc(t,i,u){var l=t.display,c=t.options.lineNumbers,y=l.lineDiv,w=y.firstChild;function O(Te){var Le=Te.nextSibling;return U&&k&&t.display.currentWheelTarget==Te?Te.style.display="none":Te.parentNode.removeChild(Te),Le}for(var R=l.view,V=l.viewFrom,oe=0;oe<R.length;oe++){var ce=R[oe];if(!ce.hidden)if(!ce.node||ce.node.parentNode!=y){var me=Vc(t,ce,V,u);y.insertBefore(me,w)}else{for(;w!=ce.node;)w=O(w);var he=c&&i!=null&&i<=V&&ce.lineNumber;ce.changes&&(Ce(ce.changes,"gutter")>-1&&(he=!1),Au(t,ce,V,u)),he&&(fe(ce.lineNumber),ce.lineNumber.appendChild(document.createTextNode(pi(t.options,V)))),w=ce.node.nextSibling}V+=ce.size}for(;w;)w=O(w)}function rl(t){var i=t.gutters.offsetWidth;t.sizer.style.marginLeft=i+"px",Rr(t,"gutterChanged",t)}function rs(t,i){t.display.sizer.style.minHeight=i.docHeight+"px",t.display.heightForcer.style.top=i.docHeight+"px",t.display.gutters.style.height=i.docHeight+t.display.barHeight+Kn(t)+"px"}function _u(t){var i=t.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!t.options.fixedGutter))){for(var l=Xs(i)-i.scroller.scrollLeft+t.doc.scrollLeft,c=i.gutters.offsetWidth,y=l+"px",w=0;w<u.length;w++)if(!u[w].hidden){t.options.fixedGutter&&(u[w].gutter&&(u[w].gutter.style.left=y),u[w].gutterBackground&&(u[w].gutterBackground.style.left=y));var O=u[w].alignable;if(O)for(var R=0;R<O.length;R++)O[R].style.left=y}t.options.fixedGutter&&(i.gutters.style.left=l+c+"px")}}function nl(t){if(!t.options.lineNumbers)return!1;var i=t.doc,u=pi(t.options,i.first+i.size-1),l=t.display;if(u.length!=l.lineNumChars){var c=l.measure.appendChild(q("div",[q("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),y=c.firstChild.offsetWidth,w=c.offsetWidth-y;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(y,l.lineGutter.offsetWidth-w)+1,l.lineNumWidth=l.lineNumInnerWidth+w,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",rl(t.display),!0}return!1}function ns(t,i){for(var u=[],l=!1,c=0;c<t.length;c++){var y=t[c],w=null;if(typeof y!="string"&&(w=y.style,y=y.className),y=="CodeMirror-linenumbers")if(i)l=!0;else continue;u.push({className:y,style:w})}return i&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function na(t){var i=t.gutters,u=t.gutterSpecs;fe(i),t.lineGutter=null;for(var l=0;l<u.length;++l){var c=u[l],y=c.className,w=c.style,O=i.appendChild(q("div",null,"CodeMirror-gutter "+y));w&&(O.style.cssText=w),y=="CodeMirror-linenumbers"&&(t.lineGutter=O,O.style.width=(t.lineNumWidth||1)+"px")}i.style.display=u.length?"":"none",rl(t)}function ao(t){na(t.display),dn(t),_u(t)}function qu(t,i,u,l){var c=this;this.input=u,c.scrollbarFiller=q("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=q("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=Z("div",null,"CodeMirror-code"),c.selectionDiv=q("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=q("div",null,"CodeMirror-cursors"),c.measure=q("div",null,"CodeMirror-measure"),c.lineMeasure=q("div",null,"CodeMirror-measure"),c.lineSpace=Z("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var y=Z("div",[c.lineSpace],"CodeMirror-lines");c.mover=q("div",[y],null,"position: relative"),c.sizer=q("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=q("div",null,null,"position: absolute; height: "+Ge+"px; width: 1px;"),c.gutters=q("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=q("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=q("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),Q&&le>=105&&(c.wrapper.style.clipPath="inset(0px)"),c.wrapper.setAttribute("translate","no"),E&&F<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!U&&!(p&&C)&&(c.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(c.wrapper):t(c.wrapper)),c.viewFrom=c.viewTo=i.first,c.reportedViewFrom=c.reportedViewTo=i.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=ns(l.gutters,l.lineNumbers),na(c),u.init(c)}var pt=0,Rn=null;E?Rn=-.53:p?Rn=15:Q?Rn=-.7:ne&&(Rn=-1/3);function il(t){var i=t.wheelDeltaX,u=t.wheelDeltaY;return i==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(i=t.detail),u==null&&t.detail&&t.axis==t.VERTICAL_AXIS?u=t.detail:u==null&&(u=t.wheelDelta),{x:i,y:u}}function Mi(t){var i=il(t);return i.x*=Rn,i.y*=Rn,i}function al(t,i){Q&&le==102&&(t.display.chromeScrollHack==null?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var u=il(i),l=u.x,c=u.y,y=Rn;i.deltaMode===0&&(l=i.deltaX,c=i.deltaY,y=1);var w=t.display,O=w.scroller,R=O.scrollWidth>O.clientWidth,V=O.scrollHeight>O.clientHeight;if(!!(l&&R||c&&V)){if(c&&k&&U){e:for(var oe=i.target,ce=w.view;oe!=O;oe=oe.parentNode)for(var me=0;me<ce.length;me++)if(ce[me].node==oe){t.display.currentWheelTarget=oe;break e}}if(l&&!p&&!K&&y!=null){c&&V&&to(t,Math.max(0,O.scrollTop+c*y)),qi(t,Math.max(0,O.scrollLeft+l*y)),(!c||c&&V)&&Lt(i),w.wheelStartX=null;return}if(c&&y!=null){var he=c*y,Te=t.doc.scrollTop,Le=Te+w.wrapper.clientHeight;he<0?Te=Math.max(0,Te+he-50):Le=Math.min(t.doc.height,Le+he+50),tl(t,{top:Te,bottom:Le})}pt<20&&i.deltaMode!==0&&(w.wheelStartX==null?(w.wheelStartX=O.scrollLeft,w.wheelStartY=O.scrollTop,w.wheelDX=l,w.wheelDY=c,setTimeout(function(){if(w.wheelStartX!=null){var ze=O.scrollLeft-w.wheelStartX,Ye=O.scrollTop-w.wheelStartY,Qe=Ye&&w.wheelDY&&Ye/w.wheelDY||ze&&w.wheelDX&&ze/w.wheelDX;w.wheelStartX=w.wheelStartY=null,Qe&&(Rn=(Rn*pt+Qe)/(pt+1),++pt)}},200)):(w.wheelDX+=l,w.wheelDY+=c))}}var Ur=function(t,i){this.ranges=t,this.primIndex=i};Ur.prototype.primary=function(){return this.ranges[this.primIndex]},Ur.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var u=this.ranges[i],l=t.ranges[i];if(!Fe(u.anchor,l.anchor)||!Fe(u.head,l.head))return!1}return!0},Ur.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new Vt(He(this.ranges[i].anchor),He(this.ranges[i].head));return new Ur(t,this.primIndex)},Ur.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Ur.prototype.contains=function(t,i){i||(i=t);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(ae(i,l.from())>=0&&ae(t,l.to())<=0)return u}return-1};var Vt=function(t,i){this.anchor=t,this.head=i};Vt.prototype.from=function(){return Nt(this.anchor,this.head)},Vt.prototype.to=function(){return St(this.anchor,this.head)},Vt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function qt(t,i,u){var l=t&&t.options.selectionsMayTouch,c=i[u];i.sort(function(me,he){return ae(me.from(),he.from())}),u=Ce(i,c);for(var y=1;y<i.length;y++){var w=i[y],O=i[y-1],R=ae(O.to(),w.from());if(l&&!w.empty()?R>0:R>=0){var V=Nt(O.from(),w.from()),oe=St(O.to(),w.to()),ce=O.empty()?w.from()==w.head:O.from()==O.head;y<=u&&--u,i.splice(--y,2,new Vt(ce?oe:V,ce?V:oe))}}return new Ur(i,u)}function Yn(t,i){return new Ur([new Vt(t,i||t)],0)}function ni(t){return t.text?M(t.from.line+t.text.length-1,lt(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function ef(t,i){if(ae(t,i.from)<0)return t;if(ae(t,i.to)<=0)return ni(i);var u=t.line+i.text.length-(i.to.line-i.from.line)-1,l=t.ch;return t.line==i.to.line&&(l+=ni(i).ch-i.to.ch),M(u,l)}function ol(t,i){for(var u=[],l=0;l<t.sel.ranges.length;l++){var c=t.sel.ranges[l];u.push(new Vt(ef(c.anchor,i),ef(c.head,i)))}return qt(t.cm,u,t.sel.primIndex)}function tf(t,i,u){return t.line==i.line?M(u.line,t.ch-i.ch+u.ch):M(u.line+(t.line-i.line),t.ch)}function Jc(t,i,u){for(var l=[],c=M(t.first,0),y=c,w=0;w<i.length;w++){var O=i[w],R=tf(O.from,c,y),V=tf(ni(O),c,y);if(c=O.to,y=V,u=="around"){var oe=t.sel.ranges[w],ce=ae(oe.head,oe.anchor)<0;l[w]=new Vt(ce?V:R,ce?R:V)}else l[w]=new Vt(R,R)}return new Ur(l,t.sel.primIndex)}function sl(t){t.doc.mode=fn(t.options,t.doc.modeOption),Aa(t)}function Aa(t){t.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,no(t,100),t.state.modeGen++,t.curOp&&dn(t)}function rf(t,i){return i.from.ch==0&&i.to.ch==0&<(i.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function ll(t,i,u,l){function c(Qe){return u?u[Qe]:null}function y(Qe,Je,qe){Ds(Qe,Je,qe,l),Rr(Qe,"change",Qe,i)}function w(Qe,Je){for(var qe=[],ht=Qe;ht<Je;++ht)qe.push(new Ti(V[ht],c(ht),l));return qe}var O=i.from,R=i.to,V=i.text,oe=ot(t,O.line),ce=ot(t,R.line),me=lt(V),he=c(V.length-1),Te=R.line-O.line;if(i.full)t.insert(0,w(0,V.length)),t.remove(V.length,t.size-V.length);else if(rf(t,i)){var Le=w(0,V.length-1);y(ce,ce.text,he),Te&&t.remove(O.line,Te),Le.length&&t.insert(O.line,Le)}else if(oe==ce)if(V.length==1)y(oe,oe.text.slice(0,O.ch)+me+oe.text.slice(R.ch),he);else{var ze=w(1,V.length-1);ze.push(new Ti(me+oe.text.slice(R.ch),he,l)),y(oe,oe.text.slice(0,O.ch)+V[0],c(0)),t.insert(O.line+1,ze)}else if(V.length==1)y(oe,oe.text.slice(0,O.ch)+V[0]+ce.text.slice(R.ch),c(0)),t.remove(O.line+1,Te);else{y(oe,oe.text.slice(0,O.ch)+V[0],c(0)),y(ce,me+ce.text.slice(R.ch),he);var Ye=w(1,V.length-1);Te>1&&t.remove(O.line+1,Te-1),t.insert(O.line+1,Ye)}Rr(t,"change",t,i)}function Ni(t,i,u){function l(c,y,w){if(c.linked)for(var O=0;O<c.linked.length;++O){var R=c.linked[O];if(R.doc!=y){var V=w&&R.sharedHist;u&&!V||(i(R.doc,V),l(R.doc,c,V))}}}l(t,null,!0)}function nf(t,i){if(i.cm)throw new Error("This document is already in use.");t.doc=i,i.cm=t,Ko(t),sl(t),ia(t),t.options.direction=i.direction,t.options.lineWrapping||vi(t),t.options.mode=i.modeOption,dn(t)}function ia(t){(t.doc.direction=="rtl"?Ne:z)(t.display.lineDiv,"CodeMirror-rtl")}function Xc(t){bn(t,function(){ia(t),dn(t)})}function oo(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function ul(t,i){var u={from:He(i.from),to:ni(i),text:ci(t,i.from,i.to)};return is(t,u,i.from.line,i.to.line+1),Ni(t,function(l){return is(l,u,i.from.line,i.to.line+1)},!0),u}function af(t){for(;t.length;){var i=lt(t);if(i.ranges)t.pop();else break}}function Qc(t,i){if(i)return af(t.done),lt(t.done);if(t.done.length&&!lt(t.done).ranges)return lt(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),lt(t.done)}function of(t,i,u,l){var c=t.history;c.undone.length=0;var y=+new Date,w,O;if((c.lastOp==l||c.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&c.lastModTime>y-(t.cm?t.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(w=Qc(c,c.lastOp==l)))O=lt(w.changes),ae(i.from,i.to)==0&&ae(i.from,O.to)==0?O.to=ni(i):w.changes.push(ul(t,i));else{var R=lt(c.done);for((!R||!R.ranges)&&so(t.sel,c.done),w={changes:[ul(t,i)],generation:c.generation},c.done.push(w);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(u),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=y,c.lastOp=c.lastSelOp=l,c.lastOrigin=c.lastSelOrigin=i.origin,O||Ke(t,"historyAdded")}function sf(t,i,u,l){var c=i.charAt(0);return c=="*"||c=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function lf(t,i,u,l){var c=t.history,y=l&&l.origin;u==c.lastSelOp||y&&c.lastSelOrigin==y&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==y||sf(t,y,lt(c.done),i))?c.done[c.done.length-1]=i:so(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=y,c.lastSelOp=u,l&&l.clearRedo!==!1&&af(c.undone)}function so(t,i){var u=lt(i);u&&u.ranges&&u.equals(t)||i.push(t)}function is(t,i,u,l){var c=i["spans_"+t.id],y=0;t.iter(Math.max(t.first,u),Math.min(t.first+t.size,l),function(w){w.markedSpans&&((c||(c=i["spans_"+t.id]={}))[y]=w.markedSpans),++y})}function Zc(t){if(!t)return null;for(var i,u=0;u<t.length;++u)t[u].marker.explicitlyCleared?i||(i=t.slice(0,u)):i&&i.push(t[u]);return i?i.length?i:null:t}function lo(t,i){var u=i["spans_"+t.id];if(!u)return null;for(var l=[],c=0;c<i.text.length;++c)l.push(Zc(u[c]));return l}function uf(t,i){var u=lo(t,i),l=Ls(t,i);if(!u)return l;if(!l)return u;for(var c=0;c<u.length;++c){var y=u[c],w=l[c];if(y&&w){e:for(var O=0;O<w.length;++O){for(var R=w[O],V=0;V<y.length;++V)if(y[V].marker==R.marker)continue e;y.push(R)}}else w&&(u[c]=w)}return u}function Ca(t,i,u){for(var l=[],c=0;c<t.length;++c){var y=t[c];if(y.ranges){l.push(u?Ur.prototype.deepCopy.call(y):y);continue}var w=y.changes,O=[];l.push({changes:O});for(var R=0;R<w.length;++R){var V=w[R],oe=void 0;if(O.push({from:V.from,to:V.to,text:V.text}),i)for(var ce in V)(oe=ce.match(/^spans_(\d+)$/))&&Ce(i,Number(oe[1]))>-1&&(lt(O)[ce]=V[ce],delete V[ce])}}return l}function fl(t,i,u,l){if(l){var c=t.anchor;if(u){var y=ae(i,c)<0;y!=ae(u,c)<0?(c=i,i=u):y!=ae(i,u)<0&&(i=u)}return new Vt(c,i)}else return new Vt(u||i,i)}function as(t,i,u,l,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),Wr(t,new Ur([fl(t.sel.primary(),i,u,c)],0),l)}function os(t,i,u){for(var l=[],c=t.cm&&(t.cm.display.shift||t.extend),y=0;y<t.sel.ranges.length;y++)l[y]=fl(t.sel.ranges[y],i[y],null,c);var w=qt(t.cm,l,t.sel.primIndex);Wr(t,w,u)}function cl(t,i,u,l){var c=t.sel.ranges.slice(0);c[i]=u,Wr(t,qt(t.cm,c,t.sel.primIndex),l)}function ff(t,i,u,l){Wr(t,Yn(i,u),l)}function _c(t,i,u){var l={ranges:i.ranges,update:function(c){this.ranges=[];for(var y=0;y<c.length;y++)this.ranges[y]=new Vt(st(t,c[y].anchor),st(t,c[y].head))},origin:u&&u.origin};return Ke(t,"beforeSelectionChange",t,l),t.cm&&Ke(t.cm,"beforeSelectionChange",t.cm,l),l.ranges!=i.ranges?qt(t.cm,l.ranges,l.ranges.length-1):i}function cf(t,i,u){var l=t.history.done,c=lt(l);c&&c.ranges?(l[l.length-1]=i,ss(t,i,u)):Wr(t,i,u)}function Wr(t,i,u){ss(t,i,u),lf(t,t.sel,t.cm?t.cm.curOp.id:NaN,u)}function ss(t,i,u){(Rt(t,"beforeSelectionChange")||t.cm&&Rt(t.cm,"beforeSelectionChange"))&&(i=_c(t,i,u));var l=u&&u.bias||(ae(i.primary().head,t.sel.primary().head)<0?-1:1);uo(t,pf(t,i,l,!0)),!(u&&u.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&xa(t.cm)}function uo(t,i){i.equals(t.sel)||(t.sel=i,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,bt(t.cm)),Rr(t,"cursorActivity",t))}function df(t){uo(t,pf(t,t.sel,null,!1))}function pf(t,i,u,l){for(var c,y=0;y<i.ranges.length;y++){var w=i.ranges[y],O=i.ranges.length==t.sel.ranges.length&&t.sel.ranges[y],R=ls(t,w.anchor,O&&O.anchor,u,l),V=w.head==w.anchor?R:ls(t,w.head,O&&O.head,u,l);(c||R!=w.anchor||V!=w.head)&&(c||(c=i.ranges.slice(0,y)),c[y]=new Vt(R,V))}return c?qt(t.cm,c,i.primIndex):i}function Ea(t,i,u,l,c){var y=ot(t,i.line);if(y.markedSpans)for(var w=0;w<y.markedSpans.length;++w){var O=y.markedSpans[w],R=O.marker,V="selectLeft"in R?!R.selectLeft:R.inclusiveLeft,oe="selectRight"in R?!R.selectRight:R.inclusiveRight;if((O.from==null||(V?O.from<=i.ch:O.from<i.ch))&&(O.to==null||(oe?O.to>=i.ch:O.to>i.ch))){if(c&&(Ke(R,"beforeCursorEnter"),R.explicitlyCleared))if(y.markedSpans){--w;continue}else break;if(!R.atomic)continue;if(u){var ce=R.find(l<0?1:-1),me=void 0;if((l<0?oe:V)&&(ce=dl(t,ce,-l,ce&&ce.line==i.line?y:null)),ce&&ce.line==i.line&&(me=ae(ce,u))&&(l<0?me<0:me>0))return Ea(t,ce,i,l,c)}var he=R.find(l<0?-1:1);return(l<0?V:oe)&&(he=dl(t,he,l,he.line==i.line?y:null)),he?Ea(t,he,i,l,c):null}}return i}function ls(t,i,u,l,c){var y=l||1,w=Ea(t,i,u,y,c)||!c&&Ea(t,i,u,y,!0)||Ea(t,i,u,-y,c)||!c&&Ea(t,i,u,-y,!0);return w||(t.cantEdit=!0,M(t.first,0))}function dl(t,i,u,l){return u<0&&i.ch==0?i.line>t.first?st(t,M(i.line-1)):null:u>0&&i.ch==(l||ot(t,i.line)).text.length?i.line<t.first+t.size-1?M(i.line+1,0):null:new M(i.line,i.ch+u)}function pl(t){t.setSelection(M(t.firstLine(),0),M(t.lastLine()),$e)}function hf(t,i,u){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(c,y,w,O){c&&(l.from=st(t,c)),y&&(l.to=st(t,y)),w&&(l.text=w),O!==void 0&&(l.origin=O)}),Ke(t,"beforeChange",t,l),t.cm&&Ke(t.cm,"beforeChange",t.cm,l),l.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function aa(t,i,u){if(t.cm){if(!t.cm.curOp)return Or(t.cm,aa)(t,i,u);if(t.cm.state.suppressEdits)return}if(!((Rt(t,"beforeChange")||t.cm&&Rt(t.cm,"beforeChange"))&&(i=hf(t,i,!0),!i))){var l=pu&&!u&&bp(t,i.from,i.to);if(l)for(var c=l.length-1;c>=0;--c)vf(t,{from:l[c].from,to:l[c].to,text:c?[""]:i.text,origin:i.origin});else vf(t,i)}}function vf(t,i){if(!(i.text.length==1&&i.text[0]==""&&ae(i.from,i.to)==0)){var u=ol(t,i);of(t,i,u,t.cm?t.cm.curOp.id:NaN),co(t,i,u,Ls(t,i));var l=[];Ni(t,function(c,y){!y&&Ce(l,c.history)==-1&&(Ta(c.history,i),l.push(c.history)),co(c,i,null,Ls(c,i))})}}function fo(t,i,u){var l=t.cm&&t.cm.state.suppressEdits;if(!(l&&!u)){for(var c=t.history,y,w=t.sel,O=i=="undo"?c.done:c.undone,R=i=="undo"?c.undone:c.done,V=0;V<O.length&&(y=O[V],!(u?y.ranges&&!y.equals(t.sel):!y.ranges));V++);if(V!=O.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(y=O.pop(),y.ranges){if(so(y,R),u&&!y.equals(t.sel)){Wr(t,y,{clearRedo:!1});return}w=y}else if(l){O.push(y);return}else break;var oe=[];so(w,R),R.push({changes:oe,generation:c.generation}),c.generation=y.generation||++c.maxGeneration;for(var ce=Rt(t,"beforeChange")||t.cm&&Rt(t.cm,"beforeChange"),me=function(Le){var ze=y.changes[Le];if(ze.origin=i,ce&&!hf(t,ze,!1))return O.length=0,{};oe.push(ul(t,ze));var Ye=Le?ol(t,ze):lt(O);co(t,ze,Ye,uf(t,ze)),!Le&&t.cm&&t.cm.scrollIntoView({from:ze.from,to:ni(ze)});var Qe=[];Ni(t,function(Je,qe){!qe&&Ce(Qe,Je.history)==-1&&(Ta(Je.history,ze),Qe.push(Je.history)),co(Je,ze,null,uf(Je,ze))})},he=y.changes.length-1;he>=0;--he){var Te=me(he);if(Te)return Te.v}}}}function Xr(t,i){if(i!=0&&(t.first+=i,t.sel=new Ur(xt(t.sel.ranges,function(c){return new Vt(M(c.anchor.line+i,c.anchor.ch),M(c.head.line+i,c.head.ch))}),t.sel.primIndex),t.cm)){dn(t.cm,t.first,t.first-i,i);for(var u=t.cm.display,l=u.viewFrom;l<u.viewTo;l++)ki(t.cm,l,"gutter")}}function co(t,i,u,l){if(t.cm&&!t.cm.curOp)return Or(t.cm,co)(t,i,u,l);if(i.to.line<t.first){Xr(t,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>t.lastLine())){if(i.from.line<t.first){var c=i.text.length-1-(t.first-i.from.line);Xr(t,c),i={from:M(t.first,0),to:M(i.to.line+c,i.to.ch),text:[lt(i.text)],origin:i.origin}}var y=t.lastLine();i.to.line>y&&(i={from:i.from,to:M(y,ot(t,y).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ci(t,i.from,i.to),u||(u=ol(t,i)),t.cm?qc(t.cm,i,l):ll(t,i,l),ss(t,u,$e),t.cantEdit&&ls(t,M(t.firstLine(),0))&&(t.cantEdit=!1)}}function qc(t,i,u){var l=t.doc,c=t.display,y=i.from,w=i.to,O=!1,R=y.line;t.options.lineWrapping||(R=zt(yn(ot(l,y.line))),l.iter(R,w.line+1,function(he){if(he==c.maxLine)return O=!0,!0})),l.sel.contains(i.from,i.to)>-1&&bt(t),ll(l,i,u,Bu(t)),t.options.lineWrapping||(l.iter(R,y.line+i.text.length,function(he){var Te=Gn(he);Te>c.maxLineLength&&(c.maxLine=he,c.maxLineLength=Te,c.maxLineChanged=!0,O=!1)}),O&&(t.curOp.updateMaxLine=!0)),Ac(l,y.line),no(t,400);var V=i.text.length-(w.line-y.line)-1;i.full?dn(t):y.line==w.line&&i.text.length==1&&!rf(t.doc,i)?ki(t,y.line,"text"):dn(t,y.line,w.line+1,V);var oe=Rt(t,"changes"),ce=Rt(t,"change");if(ce||oe){var me={from:y,to:w,text:i.text,removed:i.removed,origin:i.origin};ce&&Rr(t,"change",t,me),oe&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(me)}t.display.selForContextMenu=null}function Oa(t,i,u,l,c){var y;l||(l=u),ae(l,u)<0&&(y=[l,u],u=y[0],l=y[1]),typeof i=="string"&&(i=t.splitLines(i)),aa(t,{from:u,to:l,text:i,origin:c})}function gf(t,i,u,l){u<t.line?t.line+=l:i<t.line&&(t.line=i,t.ch=0)}function mf(t,i,u,l){for(var c=0;c<t.length;++c){var y=t[c],w=!0;if(y.ranges){y.copied||(y=t[c]=y.deepCopy(),y.copied=!0);for(var O=0;O<y.ranges.length;O++)gf(y.ranges[O].anchor,i,u,l),gf(y.ranges[O].head,i,u,l);continue}for(var R=0;R<y.changes.length;++R){var V=y.changes[R];if(u<V.from.line)V.from=M(V.from.line+l,V.from.ch),V.to=M(V.to.line+l,V.to.ch);else if(i<=V.to.line){w=!1;break}}w||(t.splice(0,c+1),c=0)}}function Ta(t,i){var u=i.from.line,l=i.to.line,c=i.text.length-(l-u)-1;mf(t.done,u,l,c),mf(t.undone,u,l,c)}function po(t,i,u,l){var c=i,y=i;return typeof i=="number"?y=ot(t,Gt(t,i)):c=zt(i),c==null?null:(l(y,c)&&t.cm&&ki(t.cm,c,u),y)}function Pa(t){this.lines=t,this.parent=null;for(var i=0,u=0;u<t.length;++u)t[u].parent=this,i+=t[u].height;this.height=i}Pa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,i){for(var u=t,l=t+i;u<l;++u){var c=this.lines[u];this.height-=c.height,Fc(c),Rr(c,"delete")}this.lines.splice(t,i)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,i,u){this.height+=u,this.lines=this.lines.slice(0,t).concat(i).concat(this.lines.slice(t));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(t,i,u){for(var l=t+i;t<l;++t)if(u(this.lines[t]))return!0}};function oa(t){this.children=t;for(var i=0,u=0,l=0;l<t.length;++l){var c=t[l];i+=c.chunkSize(),u+=c.height,c.parent=this}this.size=i,this.height=u,this.parent=null}oa.prototype={chunkSize:function(){return this.size},removeInner:function(t,i){this.size-=i;for(var u=0;u<this.children.length;++u){var l=this.children[u],c=l.chunkSize();if(t<c){var y=Math.min(i,c-t),w=l.height;if(l.removeInner(t,y),this.height-=w-l.height,c==y&&(this.children.splice(u--,1),l.parent=null),(i-=y)==0)break;t=0}else t-=c}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Pa))){var O=[];this.collapse(O),this.children=[new Pa(O)],this.children[0].parent=this}},collapse:function(t){for(var i=0;i<this.children.length;++i)this.children[i].collapse(t)},insertInner:function(t,i,u){this.size+=i.length,this.height+=u;for(var l=0;l<this.children.length;++l){var c=this.children[l],y=c.chunkSize();if(t<=y){if(c.insertInner(t,i,u),c.lines&&c.lines.length>50){for(var w=c.lines.length%25+25,O=w;O<c.lines.length;){var R=new Pa(c.lines.slice(O,O+=25));c.height-=R.height,this.children.splice(++l,0,R),R.parent=this}c.lines=c.lines.slice(0,w),this.maybeSpill()}break}t-=y}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var i=t.children.splice(t.children.length-5,5),u=new oa(i);if(t.parent){t.size-=u.size,t.height-=u.height;var c=Ce(t.parent.children,t);t.parent.children.splice(c+1,0,u)}else{var l=new oa(t.children);l.parent=t,t.children=[l,u],t=l}u.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,i,u){for(var l=0;l<this.children.length;++l){var c=this.children[l],y=c.chunkSize();if(t<y){var w=Math.min(i,y-t);if(c.iterN(t,w,u))return!0;if((i-=w)==0)break;t=0}else t-=y}}};var ho=function(t,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=t,this.node=i};ho.prototype.clear=function(){var t=this.doc.cm,i=this.line.widgets,u=this.line,l=zt(u);if(!(l==null||!i)){for(var c=0;c<i.length;++c)i[c]==this&&i.splice(c--,1);i.length||(u.widgets=null);var y=Ja(this);cn(u,Math.max(0,u.height-y)),t&&(bn(t,function(){vo(t,u,-y),ki(t,l,"widget")}),Rr(t,"lineWidgetCleared",t,this,l))}},ho.prototype.changed=function(){var t=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var c=Ja(this)-i;!c||(Fr(this.doc,l)||cn(l,l.height+c),u&&bn(u,function(){u.curOp.forceUpdate=!0,vo(u,l,c),Rr(u,"lineWidgetChanged",u,t,zt(l))}))},pr(ho);function vo(t,i,u){qn(i)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&_s(t,u)}function go(t,i,u,l){var c=new ho(t,u,l),y=t.cm;return y&&c.noHScroll&&(y.display.alignWidgets=!0),po(t,i,"widget",function(w){var O=w.widgets||(w.widgets=[]);if(c.insertAt==null?O.push(c):O.splice(Math.min(O.length,Math.max(0,c.insertAt)),0,c),c.line=w,y&&!Fr(t,w)){var R=qn(w)<t.scrollTop;cn(w,w.height+Ja(c)),R&&_s(y,c.height),y.curOp.forceUpdate=!0}return!0}),y&&Rr(y,"lineWidgetAdded",y,c,typeof i=="number"?i:zt(i)),c}var hl=0,yi=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++hl};yi.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,i=t&&!t.curOp;if(i&&Ri(t),Rt(this,"clear")){var u=this.find();u&&Rr(this,"clear",u.from,u.to)}for(var l=null,c=null,y=0;y<this.lines.length;++y){var w=this.lines[y],O=Vo(w.markedSpans,this);t&&!this.collapsed?ki(t,zt(w),"text"):t&&(O.to!=null&&(c=zt(w)),O.from!=null&&(l=zt(w))),w.markedSpans=mp(w.markedSpans,O),O.from==null&&this.collapsed&&!Fr(this.doc,w)&&t&&cn(w,ba(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var R=0;R<this.lines.length;++R){var V=yn(this.lines[R]),oe=Gn(V);oe>t.display.maxLineLength&&(t.display.maxLine=V,t.display.maxLineLength=oe,t.display.maxLineChanged=!0)}l!=null&&t&&this.collapsed&&dn(t,l,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&df(t.doc)),t&&Rr(t,"markerCleared",t,this,l,c),i&&mi(t),this.parent&&this.parent.clear()}},yi.prototype.find=function(t,i){t==null&&this.type=="bookmark"&&(t=1);for(var u,l,c=0;c<this.lines.length;++c){var y=this.lines[c],w=Vo(y.markedSpans,this);if(w.from!=null&&(u=M(i?y:zt(y),w.from),t==-1))return u;if(w.to!=null&&(l=M(i?y:zt(y),w.to),t==1))return l}return u&&{from:u,to:l}},yi.prototype.changed=function(){var t=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||bn(l,function(){var c=i.line,y=zt(i.line),w=Hs(l,y);if(w&&(rn(w),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Fr(u.doc,c)&&u.height!=null){var O=u.height;u.height=null;var R=Ja(u)-O;R&&cn(c,c.height+R)}Rr(l,"markerChanged",l,t)})},yi.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ce(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},yi.prototype.detachLine=function(t){if(this.lines.splice(Ce(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},pr(yi);function Ia(t,i,u,l,c){if(l&&l.shared)return yo(t,i,u,l,c);if(t.cm&&!t.cm.curOp)return Or(t.cm,Ia)(t,i,u,l,c);var y=new yi(t,c),w=ae(i,u);if(l&&Oe(l,y,!1),w>0||w==0&&y.clearWhenEmpty!==!1)return y;if(y.replacedWith&&(y.collapsed=!0,y.widgetNode=Z("span",[y.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||y.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(y.widgetNode.insertLeft=!0)),y.collapsed){if(mu(t,i.line,i,u,y)||i.line!=u.line&&mu(t,u.line,i,u,y))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ec()}y.addToHistory&&of(t,{from:i,to:u,origin:"markText"},t.sel,NaN);var O=i.line,R=t.cm,V;if(t.iter(O,u.line+1,function(ce){R&&y.collapsed&&!R.options.lineWrapping&&yn(ce)==R.display.maxLine&&(V=!0),y.collapsed&&O!=i.line&&cn(ce,0),yp(ce,new Rs(y,O==i.line?i.ch:null,O==u.line?u.ch:null),t.cm&&t.cm.curOp),++O}),y.collapsed&&t.iter(i.line,u.line+1,function(ce){Fr(t,ce)&&cn(ce,0)}),y.clearOnEnter&&ue(y,"beforeCursorEnter",function(){return y.clear()}),y.readOnly&&(Cc(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),y.collapsed&&(y.id=++hl,y.atomic=!0),R){if(V&&(R.curOp.updateMaxLine=!0),y.collapsed)dn(R,i.line,u.line+1);else if(y.className||y.startStyle||y.endStyle||y.css||y.attributes||y.title)for(var oe=i.line;oe<=u.line;oe++)ki(R,oe,"text");y.atomic&&df(R.doc),Rr(R,"markerAdded",R,y)}return y}var mo=function(t,i){this.markers=t,this.primary=i;for(var u=0;u<t.length;++u)t[u].parent=this};mo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Rr(this,"clear")}},mo.prototype.find=function(t,i){return this.primary.find(t,i)},pr(mo);function yo(t,i,u,l,c){l=Oe(l),l.shared=!1;var y=[Ia(t,i,u,l,c)],w=y[0],O=l.widgetNode;return Ni(t,function(R){O&&(l.widgetNode=O.cloneNode(!0)),y.push(Ia(R,st(R,i),st(R,u),l,c));for(var V=0;V<R.linked.length;++V)if(R.linked[V].isParent)return;w=lt(y)}),new mo(y,w)}function vl(t){return t.findMarks(M(t.first,0),t.clipPos(M(t.lastLine())),function(i){return i.parent})}function yf(t,i){for(var u=0;u<i.length;u++){var l=i[u],c=l.find(),y=t.clipPos(c.from),w=t.clipPos(c.to);if(ae(y,w)){var O=Ia(t,y,w,l.primary,l.primary.type);l.markers.push(O),O.parent=l}}}function gl(t){for(var i=function(l){var c=t[l],y=[c.primary.doc];Ni(c.primary.doc,function(R){return y.push(R)});for(var w=0;w<c.markers.length;w++){var O=c.markers[w];Ce(y,O.doc)==-1&&(O.parent=null,c.markers.splice(w--,1))}},u=0;u<t.length;u++)i(u)}var bf=0,on=function(t,i,u,l,c){if(!(this instanceof on))return new on(t,i,u,l,c);u==null&&(u=0),oa.call(this,[new Pa([new Ti("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var y=M(u,0);this.sel=Yn(y),this.history=new oo(null),this.id=++bf,this.modeOption=i,this.lineSep=l,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),ll(this,{from:y,to:y,text:t}),Wr(this,Yn(y),$e)};on.prototype=br(oa.prototype,{constructor:on,iter:function(t,i,u){u?this.iterN(t-this.first,i-t,u):this.iterN(this.first,this.first+this.size,t)},insert:function(t,i){for(var u=0,l=0;l<i.length;++l)u+=i[l].height;this.insertInner(t-this.first,i,u)},remove:function(t,i){this.removeInner(t-this.first,i)},getValue:function(t){var i=zi(this,this.first,this.first+this.size);return t===!1?i:i.join(t||this.lineSeparator())},setValue:Mr(function(t){var i=M(this.first,0),u=this.first+this.size-1;aa(this,{from:i,to:M(u,ot(this,u).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&qa(this.cm,0,0),Wr(this,Yn(i),$e)}),replaceRange:function(t,i,u,l){i=st(this,i),u=u?st(this,u):i,Oa(this,t,i,u,l)},getRange:function(t,i,u){var l=ci(this,st(this,t),st(this,i));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(t){var i=this.getLineHandle(t);return i&&i.text},getLineHandle:function(t){if(Gi(this,t))return ot(this,t)},getLineNumber:function(t){return zt(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=ot(this,t)),yn(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return st(this,t)},getCursor:function(t){var i=this.sel.primary(),u;return t==null||t=="head"?u=i.head:t=="anchor"?u=i.anchor:t=="end"||t=="to"||t===!1?u=i.to():u=i.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Mr(function(t,i,u){ff(this,st(this,typeof t=="number"?M(t,i||0):t),null,u)}),setSelection:Mr(function(t,i,u){ff(this,st(this,t),st(this,i||t),u)}),extendSelection:Mr(function(t,i,u){as(this,st(this,t),i&&st(this,i),u)}),extendSelections:Mr(function(t,i){os(this,Jt(this,t),i)}),extendSelectionsBy:Mr(function(t,i){var u=xt(this.sel.ranges,t);os(this,Jt(this,u),i)}),setSelections:Mr(function(t,i,u){if(!!t.length){for(var l=[],c=0;c<t.length;c++)l[c]=new Vt(st(this,t[c].anchor),st(this,t[c].head||t[c].anchor));i==null&&(i=Math.min(t.length-1,this.sel.primIndex)),Wr(this,qt(this.cm,l,i),u)}}),addSelection:Mr(function(t,i,u){var l=this.sel.ranges.slice(0);l.push(new Vt(st(this,t),st(this,i||t))),Wr(this,qt(this.cm,l,l.length-1),u)}),getSelection:function(t){for(var i=this.sel.ranges,u,l=0;l<i.length;l++){var c=ci(this,i[l].from(),i[l].to());u=u?u.concat(c):c}return t===!1?u:u.join(t||this.lineSeparator())},getSelections:function(t){for(var i=[],u=this.sel.ranges,l=0;l<u.length;l++){var c=ci(this,u[l].from(),u[l].to());t!==!1&&(c=c.join(t||this.lineSeparator())),i[l]=c}return i},replaceSelection:function(t,i,u){for(var l=[],c=0;c<this.sel.ranges.length;c++)l[c]=t;this.replaceSelections(l,i,u||"+input")},replaceSelections:Mr(function(t,i,u){for(var l=[],c=this.sel,y=0;y<c.ranges.length;y++){var w=c.ranges[y];l[y]={from:w.from(),to:w.to(),text:this.splitLines(t[y]),origin:u}}for(var O=i&&i!="end"&&Jc(this,l,i),R=l.length-1;R>=0;R--)aa(this,l[R]);O?cf(this,O):this.cm&&xa(this.cm)}),undo:Mr(function(){fo(this,"undo")}),redo:Mr(function(){fo(this,"redo")}),undoSelection:Mr(function(){fo(this,"undo",!0)}),redoSelection:Mr(function(){fo(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,i=0,u=0,l=0;l<t.done.length;l++)t.done[l].ranges||++i;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++u;return{undo:i,redo:u}},clearHistory:function(){var t=this;this.history=new oo(this.history),Ni(this,function(i){return i.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ca(this.history.done),undone:Ca(this.history.undone)}},setHistory:function(t){var i=this.history=new oo(this.history);i.done=Ca(t.done.slice(0),null,!0),i.undone=Ca(t.undone.slice(0),null,!0)},setGutterMarker:Mr(function(t,i,u){return po(this,t,"gutter",function(l){var c=l.gutterMarkers||(l.gutterMarkers={});return c[i]=u,!u&&dr(c)&&(l.gutterMarkers=null),!0})}),clearGutter:Mr(function(t){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[t]&&po(i,u,"gutter",function(){return u.gutterMarkers[t]=null,dr(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(t){var i;if(typeof t=="number"){if(!Gi(this,t)||(i=t,t=ot(this,t),!t))return null}else if(i=zt(t),i==null)return null;return{line:i,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Mr(function(t,i,u){return po(this,t,i=="gutter"?"gutter":"class",function(l){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[c])l[c]=u;else{if(J(u).test(l[c]))return!1;l[c]+=" "+u}return!0})}),removeLineClass:Mr(function(t,i,u){return po(this,t,i=="gutter"?"gutter":"class",function(l){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",y=l[c];if(y)if(u==null)l[c]=null;else{var w=y.match(J(u));if(!w)return!1;var O=w.index+w[0].length;l[c]=y.slice(0,w.index)+(!w.index||O==y.length?"":" ")+y.slice(O)||null}else return!1;return!0})}),addLineWidget:Mr(function(t,i,u){return go(this,t,i,u)}),removeLineWidget:function(t){t.clear()},markText:function(t,i,u){return Ia(this,st(this,t),st(this,i),u,u&&u.type||"range")},setBookmark:function(t,i){var u={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return t=st(this,t),Ia(this,t,t,u,"bookmark")},findMarksAt:function(t){t=st(this,t);var i=[],u=ot(this,t.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var c=u[l];(c.from==null||c.from<=t.ch)&&(c.to==null||c.to>=t.ch)&&i.push(c.marker.parent||c.marker)}return i},findMarks:function(t,i,u){t=st(this,t),i=st(this,i);var l=[],c=t.line;return this.iter(t.line,i.line+1,function(y){var w=y.markedSpans;if(w)for(var O=0;O<w.length;O++){var R=w[O];!(R.to!=null&&c==t.line&&t.ch>=R.to||R.from==null&&c!=t.line||R.from!=null&&c==i.line&&R.from>=i.ch)&&(!u||u(R.marker))&&l.push(R.marker.parent||R.marker)}++c}),l},getAllMarks:function(){var t=[];return this.iter(function(i){var u=i.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&t.push(u[l].marker)}),t},posFromIndex:function(t){var i,u=this.first,l=this.lineSeparator().length;return this.iter(function(c){var y=c.text.length+l;if(y>t)return i=t,!0;t-=y,++u}),st(this,M(u,i))},indexFromPos:function(t){t=st(this,t);var i=t.ch;if(t.line<this.first||t.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,t.line,function(l){i+=l.text.length+u}),i},copy:function(t){var i=new on(zi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,t&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(t){t||(t={});var i=this.first,u=this.first+this.size;t.from!=null&&t.from>i&&(i=t.from),t.to!=null&&t.to<u&&(u=t.to);var l=new on(zi(this,i,u),t.mode||this.modeOption,i,this.lineSep,this.direction);return t.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:t.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],yf(l,vl(this)),l},unlinkDoc:function(t){if(t instanceof ur&&(t=t.doc),this.linked)for(var i=0;i<this.linked.length;++i){var u=this.linked[i];if(u.doc==t){this.linked.splice(i,1),t.unlinkDoc(this),gl(vl(this));break}}if(t.history==this.history){var l=[t.id];Ni(t,function(c){return l.push(c.id)},!0),t.history=new oo(null),t.history.done=Ca(this.history.done,l),t.history.undone=Ca(this.history.undone,l)}},iterLinkedDocs:function(t){Ni(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Vr(t)},lineSeparator:function(){return this.lineSep||`
|
|
23
|
-
`},setDirection:Mr(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(i){return i.order=null}),this.cm&&Xc(this.cm))})}),on.prototype.eachLine=on.prototype.iter;var sa=0;function ed(t){var i=this;if(ml(i),!(at(i,t)||Er(i.display,t))){Lt(t),E&&(sa=+new Date);var u=Qi(i,t,!0),l=t.dataTransfer.files;if(!(!u||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var c=l.length,y=Array(c),w=0,O=function(){++w==c&&Or(i,function(){u=st(i.doc,u);var he={from:u,to:u,text:i.doc.splitLines(y.filter(function(Te){return Te!=null}).join(i.doc.lineSeparator())),origin:"paste"};aa(i.doc,he),cf(i.doc,Yn(st(i.doc,u),st(i.doc,ni(he))))})()},R=function(he,Te){if(i.options.allowDropFileTypes&&Ce(i.options.allowDropFileTypes,he.type)==-1){O();return}var Le=new FileReader;Le.onerror=function(){return O()},Le.onload=function(){var ze=Le.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ze)){O();return}y[Te]=ze,O()},Le.readAsText(he)},V=0;V<l.length;V++)R(l[V],V);else{if(i.state.draggingText&&i.doc.sel.contains(u)>-1){i.state.draggingText(t),setTimeout(function(){return i.display.input.focus()},20);return}try{var oe=t.dataTransfer.getData("Text");if(oe){var ce;if(i.state.draggingText&&!i.state.draggingText.copy&&(ce=i.listSelections()),ss(i.doc,Yn(u,u)),ce)for(var me=0;me<ce.length;++me)Oa(i.doc,"",ce[me].anchor,ce[me].head,"drag");i.replaceSelection(oe,"around","paste"),i.display.input.focus()}}catch(he){}}}}function td(t,i){if(E&&(!t.state.draggingText||+new Date-sa<100)){Yr(i);return}if(!(at(t,i)||Er(t.display,i))&&(i.dataTransfer.setData("Text",t.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!ne)){var u=q("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",K&&(u.width=u.height=1,t.display.wrapper.appendChild(u),u._top=u.offsetTop),i.dataTransfer.setDragImage(u,0,0),K&&u.parentNode.removeChild(u)}}function xf(t,i){var u=Qi(t,i);if(!!u){var l=document.createDocumentFragment();Qs(t,u,l),t.display.dragCursor||(t.display.dragCursor=q("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),pe(t.display.dragCursor,l)}}function ml(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Sf(t){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<i.length;l++){var c=i[l].CodeMirror;c&&u.push(c)}u.length&&u[0].operation(function(){for(var y=0;y<u.length;y++)t(u[y])})}}var yl=!1;function rd(){yl||(nd(),yl=!0)}function nd(){var t;ue(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,Sf(wf)},100))}),ue(window,"blur",function(){return Sf(_i)})}function wf(t){var i=t.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,t.setSize()}for(var Di={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},bo=0;bo<10;bo++)Di[bo+48]=Di[bo+96]=String(bo);for(var xo=65;xo<=90;xo++)Di[xo]=String.fromCharCode(xo);for(var On=1;On<=12;On++)Di[On+111]=Di[On+63235]="F"+On;var bi={};bi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},bi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},bi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},bi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},bi.default=k?bi.macDefault:bi.pcDefault;function bl(t){var i=t.split(/-(?!$)/);t=i[i.length-1];for(var u,l,c,y,w=0;w<i.length-1;w++){var O=i[w];if(/^(cmd|meta|m)$/i.test(O))y=!0;else if(/^a(lt)?$/i.test(O))u=!0;else if(/^(c|ctrl|control)$/i.test(O))l=!0;else if(/^s(hift)?$/i.test(O))c=!0;else throw new Error("Unrecognized modifier name: "+O)}return u&&(t="Alt-"+t),l&&(t="Ctrl-"+t),y&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function id(t){var i={};for(var u in t)if(t.hasOwnProperty(u)){var l=t[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete t[u];continue}for(var c=xt(u.split(" "),bl),y=0;y<c.length;y++){var w=void 0,O=void 0;y==c.length-1?(O=c.join(" "),w=l):(O=c.slice(0,y+1).join(" "),w="...");var R=i[O];if(!R)i[O]=w;else if(R!=w)throw new Error("Inconsistent bindings for "+O)}delete t[u]}for(var V in i)t[V]=i[V];return t}function ka(t,i,u,l){i=fs(i);var c=i.call?i.call(t,l):i[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&u(c))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ka(t,i.fallthrough,u,l);for(var y=0;y<i.fallthrough.length;y++){var w=ka(t,i.fallthrough[y],u,l);if(w)return w}}}function Af(t){var i=typeof t=="string"?t:Di[t.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function us(t,i,u){var l=t;return i.altKey&&l!="Alt"&&(t="Alt-"+t),(D?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(t="Ctrl-"+t),(D?i.ctrlKey:i.metaKey)&&l!="Mod"&&(t="Cmd-"+t),!u&&i.shiftKey&&l!="Shift"&&(t="Shift-"+t),t}function Cf(t,i){if(K&&t.keyCode==34&&t.char)return!1;var u=Di[t.keyCode];return u==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(u=t.code),us(u,t,i))}function fs(t){return typeof t=="string"?bi[t]:t}function Fa(t,i){for(var u=t.doc.sel.ranges,l=[],c=0;c<u.length;c++){for(var y=i(u[c]);l.length&&ae(y.from,lt(l).to)<=0;){var w=l.pop();if(ae(w.from,y.from)<0){y.from=w.from;break}}l.push(y)}bn(t,function(){for(var O=l.length-1;O>=0;O--)Oa(t.doc,"",l[O].from,l[O].to,"+delete");xa(t)})}function xl(t,i,u){var l=Tt(t.text,i+u,u);return l<0||l>t.text.length?null:l}function Sl(t,i,u){var l=xl(t,i.ch,u);return l==null?null:new M(i.line,l,u<0?"after":"before")}function wl(t,i,u,l,c){if(t){i.doc.direction=="rtl"&&(c=-c);var y=nt(u,i.doc.direction);if(y){var w=c<0?lt(y):y[0],O=c<0==(w.level==1),R=O?"after":"before",V;if(w.level>0||i.doc.direction=="rtl"){var oe=ya(i,u);V=c<0?u.text.length-1:0;var ce=ti(i,oe,V).top;V=At(function(me){return ti(i,oe,me).top==ce},c<0==(w.level==1)?w.from:w.to-1,V),R=="before"&&(V=xl(u,V,1))}else V=c<0?w.to:w.from;return new M(l,V,R)}}return new M(l,c<0?u.text.length:0,c<0?"before":"after")}function ad(t,i,u,l){var c=nt(i,t.doc.direction);if(!c)return Sl(i,u,l);u.ch>=i.text.length?(u.ch=i.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var y=it(c,u.ch,u.sticky),w=c[y];if(t.doc.direction=="ltr"&&w.level%2==0&&(l>0?w.to>u.ch:w.from<u.ch))return Sl(i,u,l);var O=function(Ye,Qe){return xl(i,Ye instanceof M?Ye.ch:Ye,Qe)},R,V=function(Ye){return t.options.lineWrapping?(R=R||ya(t,i),Ys(t,i,R,Ye)):{begin:0,end:i.text.length}},oe=V(u.sticky=="before"?O(u,-1):u.ch);if(t.doc.direction=="rtl"||w.level==1){var ce=w.level==1==l<0,me=O(u,ce?1:-1);if(me!=null&&(ce?me<=w.to&&me<=oe.end:me>=w.from&&me>=oe.begin)){var he=ce?"before":"after";return new M(u.line,me,he)}}var Te=function(Ye,Qe,Je){for(var qe=function(tr,Tr){return Tr?new M(u.line,O(tr,1),"before"):new M(u.line,tr,"after")};Ye>=0&&Ye<c.length;Ye+=Qe){var ht=c[Ye],dt=Qe>0==(ht.level!=1),Mt=dt?Je.begin:O(Je.end,-1);if(ht.from<=Mt&&Mt<ht.to||(Mt=dt?ht.from:O(ht.to,-1),Je.begin<=Mt&&Mt<Je.end))return qe(Mt,dt)}},Le=Te(y+l,l,oe);if(Le)return Le;var ze=l>0?oe.end:O(oe.begin,-1);return ze!=null&&!(l>0&&ze==i.text.length)&&(Le=Te(l>0?0:c.length-1,l,V(ze)),Le)?Le:null}var So={selectAll:pl,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),$e)},killLine:function(t){return Fa(t,function(i){if(i.empty()){var u=ot(t.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<t.lastLine()?{from:i.head,to:M(i.head.line+1,0)}:{from:i.head,to:M(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return Fa(t,function(i){return{from:M(i.from().line,0),to:st(t.doc,M(i.to().line+1,0))}})},delLineLeft:function(t){return Fa(t,function(i){return{from:M(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(t){return Fa(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(t){return Fa(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div");return{from:i.from(),to:l}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(M(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(M(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(i){return Ef(t,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(i){return Of(t,i.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(i){return od(t,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div")},Ze)},goLineLeft:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:0,top:u},"div")},Ze)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return l.ch<t.getLine(l.line).search(/\S/)?Of(t,i.head):l},Ze)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var i=[],u=t.listSelections(),l=t.options.tabSize,c=0;c<u.length;c++){var y=u[c].from(),w=Ue(t.getLine(y.line),y.ch,l);i.push(Zt(l-w%l))}t.replaceSelections(i)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return bn(t,function(){for(var i=t.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var c=i[l].head,y=ot(t.doc,c.line).text;if(y){if(c.ch==y.length&&(c=new M(c.line,c.ch-1)),c.ch>0)c=new M(c.line,c.ch+1),t.replaceRange(y.charAt(c.ch-1)+y.charAt(c.ch-2),M(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var w=ot(t.doc,c.line-1).text;w&&(c=new M(c.line,1),t.replaceRange(y.charAt(0)+t.doc.lineSeparator()+w.charAt(w.length-1),M(c.line-1,w.length-1),c,"+transpose"))}}u.push(new Vt(c,c))}t.setSelections(u)})},newlineAndIndent:function(t){return bn(t,function(){for(var i=t.listSelections(),u=i.length-1;u>=0;u--)t.replaceRange(t.doc.lineSeparator(),i[u].anchor,i[u].head,"+input");i=t.listSelections();for(var l=0;l<i.length;l++)t.indentLine(i[l].from().line,null,!0);xa(t)})},openLine:function(t){return t.replaceSelection(`
|
|
24
|
-
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Ef(t,i){var u=ot(t.doc,i),l=yn(u);return l!=u&&(i=zt(l)),wl(!0,t,l,i,1)}function od(t,i){var u=ot(t.doc,i),l=kc(u);return l!=u&&(i=zt(l)),wl(!0,t,u,i,-1)}function Of(t,i){var u=Ef(t,i.line),l=ot(t.doc,u.line),c=nt(l,t.doc.direction);if(!c||c[0].level==0){var y=Math.max(u.ch,l.text.search(/\S/)),w=i.line==u.line&&i.ch<=y&&i.ch;return M(u.line,w?0:y,u.sticky)}return u}function cs(t,i,u){if(typeof i=="string"&&(i=So[i],!i))return!1;t.display.input.ensurePolled();var l=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),u&&(t.display.shift=!1),c=i(t)!=rt}finally{t.display.shift=l,t.state.suppressEdits=!1}return c}function sd(t,i,u){for(var l=0;l<t.state.keyMaps.length;l++){var c=ka(i,t.state.keyMaps[l],u,t);if(c)return c}return t.options.extraKeys&&ka(i,t.options.extraKeys,u,t)||ka(i,t.options.keyMap,u,t)}var ld=new Pe;function wo(t,i,u,l){var c=t.state.keySeq;if(c){if(Af(i))return"handled";if(/\'$/.test(i)?t.state.keySeq=null:ld.set(50,function(){t.state.keySeq==c&&(t.state.keySeq=null,t.display.input.reset())}),Al(t,c+" "+i,u,l))return!0}return Al(t,i,u,l)}function Al(t,i,u,l){var c=sd(t,i,l);return c=="multi"&&(t.state.keySeq=i),c=="handled"&&Rr(t,"keyHandled",t,i,u),(c=="handled"||c=="multi")&&(Lt(u),Xo(t)),!!c}function Tf(t,i){var u=Cf(i,!0);return u?i.shiftKey&&!t.state.keySeq?wo(t,"Shift-"+u,i,function(l){return cs(t,l,!0)})||wo(t,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return cs(t,l)}):wo(t,u,i,function(l){return cs(t,l)}):!1}function Pf(t,i,u){return wo(t,"'"+u+"'",i,function(l){return cs(t,l,!0)})}var Ra=null;function Cl(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&(i.curOp.focus=Ie(_e(i)),!at(i,t))){E&&F<11&&t.keyCode==27&&(t.returnValue=!1);var u=t.keyCode;i.display.shift=u==16||t.shiftKey;var l=Tf(i,t);K&&(Ra=l?u:null,!l&&u==88&&!ha&&(k?t.metaKey:t.ctrlKey)&&i.replaceSelection("",null,"cut")),p&&!k&&!l&&u==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&ud(i)}}function ud(t){var i=t.display.lineDiv;Ne(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(z(i,"CodeMirror-crosshair"),Be(document,"keyup",u),Be(document,"mouseover",u))}ue(document,"keyup",u),ue(document,"mouseover",u)}function If(t){t.keyCode==16&&(this.doc.sel.shift=!1),at(this,t)}function kf(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&!(Er(i.display,t)||at(i,t)||t.ctrlKey&&!t.altKey||k&&t.metaKey)){var u=t.keyCode,l=t.charCode;if(K&&u==Ra){Ra=null,Lt(t);return}if(!(K&&(!t.which||t.which<10)&&Tf(i,t))){var c=String.fromCharCode(l==null?u:l);c!="\b"&&(Pf(i,t,c)||i.display.input.onKeyPress(t))}}}var la=400,El=function(t,i,u){this.time=t,this.pos=i,this.button=u};El.prototype.compare=function(t,i,u){return this.time+la>t&&ae(i,this.pos)==0&&u==this.button};var pn,Ao;function fd(t,i){var u=+new Date;return Ao&&Ao.compare(u,t,i)?(pn=Ao=null,"triple"):pn&&pn.compare(u,t,i)?(Ao=new El(u,t,i),pn=null,"double"):(pn=new El(u,t,i),Ao=null,"single")}function ua(t){var i=this,u=i.display;if(!(at(i,t)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=t.shiftKey,Er(u,t)){U||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Eo(i,t)){var l=Qi(i,t),c=si(t),y=l?fd(l,c):"single";mt(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(t),!(l&&Ol(i,c,l,y,t))&&(c==1?l?dd(i,l,y,t):Jr(t)==u.scroller&&Lt(t):c==2?(l&&as(i.doc,l),setTimeout(function(){return u.input.focus()},20)):c==3&&(re?i.display.input.onContextMenu(t):Qo(i)))}}}function Ol(t,i,u,l,c){var y="Click";return l=="double"?y="Double"+y:l=="triple"&&(y="Triple"+y),y=(i==1?"Left":i==2?"Middle":"Right")+y,wo(t,us(y,c),c,function(w){if(typeof w=="string"&&(w=So[w]),!w)return!1;var O=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),O=w(t,u)!=rt}finally{t.state.suppressEdits=!1}return O})}function cd(t,i,u){var l=t.getOption("configureMouse"),c=l?l(t,i,u):{};if(c.unit==null){var y=B?u.shiftKey&&u.metaKey:u.altKey;c.unit=y?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||u.shiftKey),c.addNew==null&&(c.addNew=k?u.metaKey:u.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(k?u.altKey:u.ctrlKey)),c}function dd(t,i,u,l){E?setTimeout(De(Zs,t),0):t.curOp.focus=Ie(_e(t));var c=cd(t,u,l),y=t.doc.sel,w;t.options.dragDrop&&en&&!t.isReadOnly()&&u=="single"&&(w=y.contains(i))>-1&&(ae((w=y.ranges[w]).from(),i)<0||i.xRel>0)&&(ae(w.to(),i)>0||i.xRel<0)?pd(t,l,i,c):hd(t,l,i,c)}function pd(t,i,u,l){var c=t.display,y=!1,w=Or(t,function(V){U&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Qo(t)),Be(c.wrapper.ownerDocument,"mouseup",w),Be(c.wrapper.ownerDocument,"mousemove",O),Be(c.scroller,"dragstart",R),Be(c.scroller,"drop",w),y||(Lt(V),l.addNew||as(t.doc,u,null,null,l.extend),U&&!ne||E&&F==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),O=function(V){y=y||Math.abs(i.clientX-V.clientX)+Math.abs(i.clientY-V.clientY)>=10},R=function(){return y=!0};U&&(c.scroller.draggable=!0),t.state.draggingText=w,w.copy=!l.moveOnDrag,ue(c.wrapper.ownerDocument,"mouseup",w),ue(c.wrapper.ownerDocument,"mousemove",O),ue(c.scroller,"dragstart",R),ue(c.scroller,"drop",w),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Ff(t,i,u){if(u=="char")return new Vt(i,i);if(u=="word")return t.findWordAt(i);if(u=="line")return new Vt(M(i.line,0),st(t.doc,M(i.line+1,0)));var l=u(t,i);return new Vt(l.from,l.to)}function hd(t,i,u,l){E&&Qo(t);var c=t.display,y=t.doc;Lt(i);var w,O,R=y.sel,V=R.ranges;if(l.addNew&&!l.extend?(O=y.sel.contains(u),O>-1?w=V[O]:w=new Vt(u,u)):(w=y.sel.primary(),O=y.sel.primIndex),l.unit=="rectangle")l.addNew||(w=new Vt(u,u)),u=Qi(t,i,!0,!0),O=-1;else{var oe=Ff(t,u,l.unit);l.extend?w=fl(w,oe.anchor,oe.head,l.extend):w=oe}l.addNew?O==-1?(O=V.length,Wr(y,qt(t,V.concat([w]),O),{scroll:!1,origin:"*mouse"})):V.length>1&&V[O].empty()&&l.unit=="char"&&!l.extend?(Wr(y,qt(t,V.slice(0,O).concat(V.slice(O+1)),0),{scroll:!1,origin:"*mouse"}),R=y.sel):cl(y,O,w,et):(O=0,Wr(y,new Ur([w],0),et),R=y.sel);var ce=u;function me(Je){if(ae(ce,Je)!=0)if(ce=Je,l.unit=="rectangle"){for(var qe=[],ht=t.options.tabSize,dt=Ue(ot(y,u.line).text,u.ch,ht),Mt=Ue(ot(y,Je.line).text,Je.ch,ht),tr=Math.min(dt,Mt),Tr=Math.max(dt,Mt),wt=Math.min(u.line,Je.line),xn=Math.min(t.lastLine(),Math.max(u.line,Je.line));wt<=xn;wt++){var sn=ot(y,wt).text,Ar=Ct(sn,tr,ht);tr==Tr?qe.push(new Vt(M(wt,Ar),M(wt,Ar))):sn.length>Ar&&qe.push(new Vt(M(wt,Ar),M(wt,Ct(sn,Tr,ht))))}qe.length||qe.push(new Vt(u,u)),Wr(y,qt(t,R.ranges.slice(0,O).concat(qe),O),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Je)}else{var Hr=w,zr=Ff(t,Je,l.unit),Pr=Hr.anchor,Cr;ae(zr.anchor,Pr)>0?(Cr=zr.head,Pr=Nt(Hr.from(),zr.anchor)):(Cr=zr.anchor,Pr=St(Hr.to(),zr.head));var gr=R.ranges.slice(0);gr[O]=Tl(t,new Vt(st(y,Pr),Cr)),Wr(y,qt(t,gr,O),et)}}var he=c.wrapper.getBoundingClientRect(),Te=0;function Le(Je){var qe=++Te,ht=Qi(t,Je,!0,l.unit=="rectangle");if(!!ht)if(ae(ht,ce)!=0){t.curOp.focus=Ie(_e(t)),me(ht);var dt=qo(c,y);(ht.line>=dt.to||ht.line<dt.from)&&setTimeout(Or(t,function(){Te==qe&&Le(Je)}),150)}else{var Mt=Je.clientY<he.top?-20:Je.clientY>he.bottom?20:0;Mt&&setTimeout(Or(t,function(){Te==qe&&(c.scroller.scrollTop+=Mt,Le(Je))}),50)}}function ze(Je){t.state.selectingText=!1,Te=1/0,Je&&(Lt(Je),c.input.focus()),Be(c.wrapper.ownerDocument,"mousemove",Ye),Be(c.wrapper.ownerDocument,"mouseup",Qe),y.history.lastSelOrigin=null}var Ye=Or(t,function(Je){Je.buttons===0||!si(Je)?ze(Je):Le(Je)}),Qe=Or(t,ze);t.state.selectingText=Qe,ue(c.wrapper.ownerDocument,"mousemove",Ye),ue(c.wrapper.ownerDocument,"mouseup",Qe)}function Tl(t,i){var u=i.anchor,l=i.head,c=ot(t.doc,u.line);if(ae(u,l)==0&&u.sticky==l.sticky)return i;var y=nt(c);if(!y)return i;var w=it(y,u.ch,u.sticky),O=y[w];if(O.from!=u.ch&&O.to!=u.ch)return i;var R=w+(O.from==u.ch==(O.level!=1)?0:1);if(R==0||R==y.length)return i;var V;if(l.line!=u.line)V=(l.line-u.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var oe=it(y,l.ch,l.sticky),ce=oe-w||(l.ch-u.ch)*(O.level==1?-1:1);oe==R-1||oe==R?V=ce<0:V=ce>0}var me=y[R+(V?-1:0)],he=V==(me.level==1),Te=he?me.from:me.to,Le=he?"after":"before";return u.ch==Te&&u.sticky==Le?i:new Vt(new M(u.line,Te,Le),l)}function Co(t,i,u,l){var c,y;if(i.touches)c=i.touches[0].clientX,y=i.touches[0].clientY;else try{c=i.clientX,y=i.clientY}catch(me){return!1}if(c>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;l&&Lt(i);var w=t.display,O=w.lineDiv.getBoundingClientRect();if(y>O.bottom||!Rt(t,u))return _n(i);y-=O.top-w.viewOffset;for(var R=0;R<t.display.gutterSpecs.length;++R){var V=w.gutters.childNodes[R];if(V&&V.getBoundingClientRect().right>=c){var oe=di(t.doc,y),ce=t.display.gutterSpecs[R];return Ke(t,u,t,oe,ce.className,i),_n(i)}}}function Eo(t,i){return Co(t,i,"gutterClick",!0)}function Rf(t,i){Er(t.display,i)||vd(t,i)||at(t,i,"contextmenu")||re||t.display.input.onContextMenu(i)}function vd(t,i){return Rt(t,"gutterContextMenu")?Co(t,i,"gutterContextMenu",!1):!1}function Pl(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Yi(t)}var La={toString:function(){return"CodeMirror.Init"}},Il={},Ma={};function Lf(t){var i=t.optionHandlers;function u(l,c,y,w){t.defaults[l]=c,y&&(i[l]=w?function(O,R,V){V!=La&&y(O,R,V)}:y)}t.defineOption=u,t.Init=La,u("value","",function(l,c){return l.setValue(c)},!0),u("mode",null,function(l,c){l.doc.modeOption=c,sl(l)},!0),u("indentUnit",2,sl,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Aa(l),Yi(l),dn(l)},!0),u("lineSeparator",null,function(l,c){if(l.doc.lineSep=c,!!c){var y=[],w=l.doc.first;l.doc.iter(function(R){for(var V=0;;){var oe=R.text.indexOf(c,V);if(oe==-1)break;V=oe+c.length,y.push(M(w,oe))}w++});for(var O=y.length-1;O>=0;O--)Oa(l.doc,c,y[O],M(y[O].line,y[O].ch+c.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,c,y){l.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),y!=La&&l.refresh()}),u("specialCharPlaceholder",Rc,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,c){return l.getInputField().spellcheck=c},!0),u("autocorrect",!1,function(l,c){return l.getInputField().autocorrect=c},!0),u("autocapitalize",!1,function(l,c){return l.getInputField().autocapitalize=c},!0),u("rtlMoveVisually",!X),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){Pl(l),ao(l)},!0),u("keyMap","default",function(l,c,y){var w=fs(c),O=y!=La&&fs(y);O&&O.detach&&O.detach(l,w),w.attach&&w.attach(l,O||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,md,!0),u("gutters",[],function(l,c){l.display.gutterSpecs=ns(c,l.options.lineNumbers),ao(l)},!0),u("fixedGutter",!0,function(l,c){l.display.gutters.style.left=c?Xs(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return wa(l)},!0),u("scrollbarStyle","native",function(l){Yu(l),wa(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,c){l.display.gutterSpecs=ns(l.options.gutters,c),ao(l)},!0),u("firstLineNumber",1,ao,!0),u("lineNumberFormatter",function(l){return l},ao,!0),u("showCursorWhenSelecting",!1,Za,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,c){c=="nocursor"&&(_i(l),l.display.input.blur()),l.display.input.readOnlyChanged(c)}),u("screenReaderLabel",null,function(l,c){c=c===""?null:c,l.display.input.screenReaderLabelChanged(c)}),u("disableInput",!1,function(l,c){c||l.display.input.reset()},!0),u("dragDrop",!0,gd),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Za,!0),u("singleCursorHeightPerLine",!0,Za,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Aa,!0),u("addModeClass",!1,Aa,!0),u("pollInterval",100),u("undoDepth",200,function(l,c){return l.doc.history.undoDepth=c}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,Aa,!0),u("moveInputWithCursor",!0,function(l,c){c||l.display.input.resetPosition()}),u("tabindex",null,function(l,c){return l.display.input.getField().tabIndex=c||""}),u("autofocus",null),u("direction","ltr",function(l,c){return l.doc.setDirection(c)},!0),u("phrases",null)}function gd(t,i,u){var l=u&&u!=La;if(!i!=!l){var c=t.display.dragFunctions,y=i?ue:Be;y(t.display.scroller,"dragstart",c.start),y(t.display.scroller,"dragenter",c.enter),y(t.display.scroller,"dragover",c.over),y(t.display.scroller,"dragleave",c.leave),y(t.display.scroller,"drop",c.drop)}}function md(t){t.options.lineWrapping?(Ne(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(z(t.display.wrapper,"CodeMirror-wrap"),vi(t)),Ko(t),dn(t),Yi(t),setTimeout(function(){return wa(t)},100)}function ur(t,i){var u=this;if(!(this instanceof ur))return new ur(t,i);this.options=i=i?Oe(i):{},Oe(Il,i,!1);var l=i.value;typeof l=="string"?l=new on(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var c=new ur.inputStyles[i.inputStyle](this),y=this.display=new qu(t,l,c,i);y.wrapper.CodeMirror=this,Pl(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Pe,keySeq:null,specialChars:null},i.autofocus&&!C&&y.input.focus(),E&&F<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Mf(this),rd(),Ri(this),this.curOp.forceUpdate=!0,nf(this,l),i.autofocus&&!C||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Zo(u)},20):_i(this);for(var w in Ma)Ma.hasOwnProperty(w)&&Ma[w](this,i[w],La);nl(this),i.finishInit&&i.finishInit(this);for(var O=0;O<kl.length;++O)kl[O](this);mi(this),U&&i.lineWrapping&&getComputedStyle(y.lineDiv).textRendering=="optimizelegibility"&&(y.lineDiv.style.textRendering="auto")}ur.defaults=Il,ur.optionHandlers=Ma;function Mf(t){var i=t.display;ue(i.scroller,"mousedown",Or(t,ua)),E&&F<11?ue(i.scroller,"dblclick",Or(t,function(R){if(!at(t,R)){var V=Qi(t,R);if(!(!V||Eo(t,R)||Er(t.display,R))){Lt(R);var oe=t.findWordAt(V);as(t.doc,oe.anchor,oe.head)}}})):ue(i.scroller,"dblclick",function(R){return at(t,R)||Lt(R)}),ue(i.scroller,"contextmenu",function(R){return Rf(t,R)}),ue(i.input.getField(),"contextmenu",function(R){i.scroller.contains(R.target)||Rf(t,R)});var u,l={end:0};function c(){i.activeTouch&&(u=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function y(R){if(R.touches.length!=1)return!1;var V=R.touches[0];return V.radiusX<=1&&V.radiusY<=1}function w(R,V){if(V.left==null)return!0;var oe=V.left-R.left,ce=V.top-R.top;return oe*oe+ce*ce>20*20}ue(i.scroller,"touchstart",function(R){if(!at(t,R)&&!y(R)&&!Eo(t,R)){i.input.ensurePolled(),clearTimeout(u);var V=+new Date;i.activeTouch={start:V,moved:!1,prev:V-l.end<=300?l:null},R.touches.length==1&&(i.activeTouch.left=R.touches[0].pageX,i.activeTouch.top=R.touches[0].pageY)}}),ue(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ue(i.scroller,"touchend",function(R){var V=i.activeTouch;if(V&&!Er(i,R)&&V.left!=null&&!V.moved&&new Date-V.start<300){var oe=t.coordsChar(i.activeTouch,"page"),ce;!V.prev||w(V,V.prev)?ce=new Vt(oe,oe):!V.prev.prev||w(V,V.prev.prev)?ce=t.findWordAt(oe):ce=new Vt(M(oe.line,0),st(t.doc,M(oe.line+1,0))),t.setSelection(ce.anchor,ce.head),t.focus(),Lt(R)}c()}),ue(i.scroller,"touchcancel",c),ue(i.scroller,"scroll",function(){i.scroller.clientHeight&&(to(t,i.scroller.scrollTop),qi(t,i.scroller.scrollLeft,!0),Ke(t,"scroll",t))}),ue(i.scroller,"mousewheel",function(R){return al(t,R)}),ue(i.scroller,"DOMMouseScroll",function(R){return al(t,R)}),ue(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(R){at(t,R)||Yr(R)},over:function(R){at(t,R)||(xf(t,R),Yr(R))},start:function(R){return td(t,R)},drop:Or(t,ed),leave:function(R){at(t,R)||ml(t)}};var O=i.input.getField();ue(O,"keyup",function(R){return If.call(t,R)}),ue(O,"keydown",Or(t,Cl)),ue(O,"keypress",Or(t,kf)),ue(O,"focus",function(R){return Zo(t,R)}),ue(O,"blur",function(R){return _i(t,R)})}var kl=[];ur.defineInitHook=function(t){return kl.push(t)};function Na(t,i,u,l){var c=t.doc,y;u==null&&(u="add"),u=="smart"&&(c.mode.indent?y=za(t,i).state:u="prev");var w=t.options.tabSize,O=ot(c,i),R=Ue(O.text,null,w);O.stateAfter&&(O.stateAfter=null);var V=O.text.match(/^\s*/)[0],oe;if(!l&&!/\S/.test(O.text))oe=0,u="not";else if(u=="smart"&&(oe=c.mode.indent(y,O.text.slice(V.length),O.text),oe==rt||oe>150)){if(!l)return;u="prev"}u=="prev"?i>c.first?oe=Ue(ot(c,i-1).text,null,w):oe=0:u=="add"?oe=R+t.options.indentUnit:u=="subtract"?oe=R-t.options.indentUnit:typeof u=="number"&&(oe=R+u),oe=Math.max(0,oe);var ce="",me=0;if(t.options.indentWithTabs)for(var he=Math.floor(oe/w);he;--he)me+=w,ce+=" ";if(me<oe&&(ce+=Zt(oe-me)),ce!=V)return Oa(c,ce,M(i,0),M(i,V.length),"+input"),O.stateAfter=null,!0;for(var Te=0;Te<c.sel.ranges.length;Te++){var Le=c.sel.ranges[Te];if(Le.head.line==i&&Le.head.ch<V.length){var ze=M(i,V.length);cl(c,Te,new Vt(ze,ze));break}}}var Ln=null;function ds(t){Ln=t}function ps(t,i,u,l,c){var y=t.doc;t.display.shift=!1,l||(l=y.sel);var w=+new Date-200,O=c=="paste"||t.state.pasteIncoming>w,R=Vr(i),V=null;if(O&&l.ranges.length>1)if(Ln&&Ln.text.join(`
|
|
25
|
-
`)==i){if(l.ranges.length%
|
|
26
|
-
`)==
|
|
27
|
-
`)&&(Te=Le=M(Te.line,0)));var ze={from:Te,to:Le,text:V?V[me%V.length]:R,origin:c||(O?"paste":t.state.cutIncoming>w?"cut":"+input")};aa(t.doc,ze),Rr(t,"inputRead",t,ze)}i&&!O&&Rl(t,i),xa(t),t.curOp.updateInput<2&&(t.curOp.updateInput=ce),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Fl(t,i){var u=t.clipboardData&&t.clipboardData.getData("Text");if(u)return t.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&bn(i,function(){return ps(i,u,0,null,"paste")}),!0}function Rl(t,i){if(!(!t.options.electricChars||!t.options.smartIndent))for(var u=t.doc.sel,l=u.ranges.length-1;l>=0;l--){var c=u.ranges[l];if(!(c.head.ch>100||l&&u.ranges[l-1].head.line==c.head.line)){var y=t.getModeAt(c.head),w=!1;if(y.electricChars){for(var O=0;O<y.electricChars.length;O++)if(i.indexOf(y.electricChars.charAt(O))>-1){w=Na(t,c.head.line,"smart");break}}else y.electricInput&&y.electricInput.test(ot(t.doc,c.head.line).text.slice(0,c.head.ch))&&(w=Na(t,c.head.line,"smart"));w&&Rr(t,"electricInput",t,c.head.line)}}}function Nf(t){for(var i=[],u=[],l=0;l<t.doc.sel.ranges.length;l++){var c=t.doc.sel.ranges[l].head.line,y={anchor:M(c,0),head:M(c+1,0)};u.push(y),i.push(t.getRange(y.anchor,y.head))}return{text:i,ranges:u}}function Df(t,i,u,l){t.setAttribute("autocorrect",u?"":"off"),t.setAttribute("autocapitalize",l?"":"off"),t.setAttribute("spellcheck",!!i)}function Bf(){var t=q("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=q("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return U?t.style.width="1000px":t.setAttribute("wrap","off"),Y&&(t.style.border="1px solid black"),Df(t),i}function fa(t){var i=t.optionHandlers,u=t.helpers={};t.prototype={constructor:t,focus:function(){mt(this).focus(),this.display.input.focus()},setOption:function(l,c){var y=this.options,w=y[l];y[l]==c&&l!="mode"||(y[l]=c,i.hasOwnProperty(l)&&Or(this,i[l])(this,c,w),Ke(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,c){this.state.keyMaps[c?"push":"unshift"](fs(l))},removeKeyMap:function(l){for(var c=this.state.keyMaps,y=0;y<c.length;++y)if(c[y]==l||c[y].name==l)return c.splice(y,1),!0},addOverlay:nn(function(l,c){var y=l.token?l:t.getMode(this.options,l);if(y.startState)throw new Error("Overlays may not be stateful.");Ft(this.state.overlays,{mode:y,modeSpec:l,opaque:c&&c.opaque,priority:c&&c.priority||0},function(w){return w.priority}),this.state.modeGen++,dn(this)}),removeOverlay:nn(function(l){for(var c=this.state.overlays,y=0;y<c.length;++y){var w=c[y].modeSpec;if(w==l||typeof l=="string"&&w.name==l){c.splice(y,1),this.state.modeGen++,dn(this);return}}}),indentLine:nn(function(l,c,y){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),Gi(this.doc,l)&&Na(this,l,c,y)}),indentSelection:nn(function(l){for(var c=this.doc.sel.ranges,y=-1,w=0;w<c.length;w++){var O=c[w];if(O.empty())O.head.line>y&&(Na(this,O.head.line,l,!0),y=O.head.line,w==this.doc.sel.primIndex&&xa(this));else{var R=O.from(),V=O.to(),oe=Math.max(y,R.line);y=Math.min(this.lastLine(),V.line-(V.ch?0:1))+1;for(var ce=oe;ce<y;++ce)Na(this,ce,l);var me=this.doc.sel.ranges;R.ch==0&&c.length==me.length&&me[w].from().ch>0&&cl(this.doc,w,new Vt(R,me[w].to()),$e)}}}),getTokenAt:function(l,c){return cu(this,l,c)},getLineTokens:function(l,c){return cu(this,M(l),c,!0)},getTokenTypeAt:function(l){l=st(this.doc,l);var c=Bo(this,ot(this.doc,l.line)),y=0,w=(c.length-1)/2,O=l.ch,R;if(O==0)R=c[2];else for(;;){var V=y+w>>1;if((V?c[V*2-1]:0)>=O)w=V;else if(c[V*2+1]<O)y=V+1;else{R=c[V*2+2];break}}var oe=R?R.indexOf("overlay "):-1;return oe<0?R:oe==0?null:R.slice(0,oe-1)},getModeAt:function(l){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(l).state).mode:c},getHelper:function(l,c){return this.getHelpers(l,c)[0]},getHelpers:function(l,c){var y=[];if(!u.hasOwnProperty(c))return y;var w=u[c],O=this.getModeAt(l);if(typeof O[c]=="string")w[O[c]]&&y.push(w[O[c]]);else if(O[c])for(var R=0;R<O[c].length;R++){var V=w[O[c][R]];V&&y.push(V)}else O.helperType&&w[O.helperType]?y.push(w[O.helperType]):w[O.name]&&y.push(w[O.name]);for(var oe=0;oe<w._global.length;oe++){var ce=w._global[oe];ce.pred(O,this)&&Ce(y,ce.val)==-1&&y.push(ce.val)}return y},getStateAfter:function(l,c){var y=this.doc;return l=Gt(y,l==null?y.first+y.size-1:l),za(this,l+1,c).state},cursorCoords:function(l,c){var y,w=this.doc.sel.primary();return l==null?y=w.head:typeof l=="object"?y=st(this.doc,l):y=l?w.from():w.to(),or(this,y,c||"page")},charCoords:function(l,c){return Go(this,st(this.doc,l),c||"page")},coordsChar:function(l,c){return l=Mu(this,l,c||"page"),Qa(this,l.left,l.top)},lineAtHeight:function(l,c){return l=Mu(this,{top:l,left:0},c||"page").top,di(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,c,y){var w=!1,O;if(typeof l=="number"){var R=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>R&&(l=R,w=!0),O=ot(this.doc,l)}else O=l;return zo(this,O,{top:0,left:0},c||"page",y||w).top+(w?this.doc.height-qn(O):0)},defaultTextHeight:function(){return ba(this.display)},defaultCharWidth:function(){return Xi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,c,y,w,O){var R=this.display;l=or(this,st(this.doc,l));var V=l.bottom,oe=l.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),R.sizer.appendChild(c),w=="over")V=l.top;else if(w=="above"||w=="near"){var ce=Math.max(R.wrapper.clientHeight,this.doc.height),me=Math.max(R.sizer.clientWidth,R.lineSpace.clientWidth);(w=="above"||l.bottom+c.offsetHeight>ce)&&l.top>c.offsetHeight?V=l.top-c.offsetHeight:l.bottom+c.offsetHeight<=ce&&(V=l.bottom),oe+c.offsetWidth>me&&(oe=me-c.offsetWidth)}c.style.top=V+"px",c.style.left=c.style.right="",O=="right"?(oe=R.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(O=="left"?oe=0:O=="middle"&&(oe=(R.sizer.clientWidth-c.offsetWidth)/2),c.style.left=oe+"px"),y&&zu(this,{left:oe,top:V,right:oe+c.offsetWidth,bottom:V+c.offsetHeight})},triggerOnKeyDown:nn(Cl),triggerOnKeyPress:nn(kf),triggerOnKeyUp:If,triggerOnMouseDown:nn(ua),execCommand:function(l){if(So.hasOwnProperty(l))return So[l].call(null,this)},triggerElectric:nn(function(l){Rl(this,l)}),findPosH:function(l,c,y,w){var O=1;c<0&&(O=-1,c=-c);for(var R=st(this.doc,l),V=0;V<c&&(R=Ll(this.doc,R,O,y,w),!R.hitSide);++V);return R},moveH:nn(function(l,c){var y=this;this.extendSelectionsBy(function(w){return y.display.shift||y.doc.extend||w.empty()?Ll(y.doc,w.head,l,c,y.options.rtlMoveVisually):l<0?w.from():w.to()},Ze)}),deleteH:nn(function(l,c){var y=this.doc.sel,w=this.doc;y.somethingSelected()?w.replaceSelection("",null,"+delete"):Fa(this,function(O){var R=Ll(w,O.head,l,c,!1);return l<0?{from:R,to:O.head}:{from:O.head,to:R}})}),findPosV:function(l,c,y,w){var O=1,R=w;c<0&&(O=-1,c=-c);for(var V=st(this.doc,l),oe=0;oe<c;++oe){var ce=or(this,V,"div");if(R==null?R=ce.left:ce.left=R,V=jf(this,ce,O,y),V.hitSide)break}return V},moveV:nn(function(l,c){var y=this,w=this.doc,O=[],R=!this.display.shift&&!w.extend&&w.sel.somethingSelected();if(w.extendSelectionsBy(function(oe){if(R)return l<0?oe.from():oe.to();var ce=or(y,oe.head,"div");oe.goalColumn!=null&&(ce.left=oe.goalColumn),O.push(ce.left);var me=jf(y,ce,l,c);return c=="page"&&oe==w.sel.primary()&&_s(y,Go(y,me,"div").top-ce.top),me},Ze),O.length)for(var V=0;V<w.sel.ranges.length;V++)w.sel.ranges[V].goalColumn=O[V]}),findWordAt:function(l){var c=this.doc,y=ot(c,l.line).text,w=l.ch,O=l.ch;if(y){var R=this.getHelper(l,"wordChars");(l.sticky=="before"||O==y.length)&&w?--w:++O;for(var V=y.charAt(w),oe=Yt(V,R)?function(ce){return Yt(ce,R)}:/\s/.test(V)?function(ce){return/\s/.test(ce)}:function(ce){return!/\s/.test(ce)&&!Yt(ce)};w>0&&oe(y.charAt(w-1));)--w;for(;O<y.length&&oe(y.charAt(O));)++O}return new Vt(M(l.line,w),M(l.line,O))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ne(this.display.cursorDiv,"CodeMirror-overwrite"):z(this.display.cursorDiv,"CodeMirror-overwrite"),Ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ie(_e(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:nn(function(l,c){qa(this,l,c)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Kn(this)-this.display.barHeight,width:l.scrollWidth-Kn(this)-this.display.barWidth,clientHeight:Ws(this),clientWidth:Ki(this)}},scrollIntoView:nn(function(l,c){l==null?(l={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof l=="number"?l={from:M(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=c||0,l.from.line!=null?$c(this,l):Gu(this,l.from,l.to,l.margin)}),setSize:nn(function(l,c){var y=this,w=function(R){return typeof R=="number"||/^\d+$/.test(String(R))?R+"px":R};l!=null&&(this.display.wrapper.style.width=w(l)),c!=null&&(this.display.wrapper.style.height=w(c)),this.options.lineWrapping&&Ho(this);var O=this.display.viewFrom;this.doc.iter(O,this.display.viewTo,function(R){if(R.widgets){for(var V=0;V<R.widgets.length;V++)if(R.widgets[V].noHScroll){ki(y,O,"widget");break}}++O}),this.curOp.forceUpdate=!0,Ke(this,"refresh",this)}),operation:function(l){return bn(this,l)},startOperation:function(){return Ri(this)},endOperation:function(){return mi(this)},refresh:nn(function(){var l=this.display.cachedTextHeight;dn(this),this.curOp.forceUpdate=!0,Yi(this),qa(this,this.doc.scrollLeft,this.doc.scrollTop),rl(this.display),(l==null||Math.abs(l-ba(this.display))>.5||this.options.lineWrapping)&&Ko(this),Ke(this,"refresh",this)}),swapDoc:nn(function(l){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),nf(this,l),Yi(this),this.display.input.reset(),qa(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Rr(this,"swapDoc",this,c),c}),phrase:function(l){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,l)?c[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},pr(t),t.registerHelper=function(l,c,y){u.hasOwnProperty(l)||(u[l]=t[l]={_global:[]}),u[l][c]=y},t.registerGlobalHelper=function(l,c,y,w){t.registerHelper(l,c,w),u[l]._global.push({pred:y,val:w})}}function Ll(t,i,u,l,c){var y=i,w=u,O=ot(t,i.line),R=c&&t.direction=="rtl"?-u:u;function V(){var Qe=i.line+R;return Qe<t.first||Qe>=t.first+t.size?!1:(i=new M(Qe,i.ch,i.sticky),O=ot(t,Qe))}function oe(Qe){var Je;if(l=="codepoint"){var qe=O.text.charCodeAt(i.ch+(u>0?0:-1));if(isNaN(qe))Je=null;else{var ht=u>0?qe>=55296&&qe<56320:qe>=56320&&qe<57343;Je=new M(i.line,Math.max(0,Math.min(O.text.length,i.ch+u*(ht?2:1))),-u)}}else c?Je=ad(t.cm,O,i,u):Je=Sl(O,i,u);if(Je==null)if(!Qe&&V())i=wl(c,t.cm,O,i.line,R);else return!1;else i=Je;return!0}if(l=="char"||l=="codepoint")oe();else if(l=="column")oe(!0);else if(l=="word"||l=="group")for(var ce=null,me=l=="group",he=t.cm&&t.cm.getHelper(i,"wordChars"),Te=!0;!(u<0&&!oe(!Te));Te=!1){var Le=O.text.charAt(i.ch)||`
|
|
28
|
-
|
|
29
|
-
`?"n":!
|
|
30
|
-
`);if(
|
|
31
|
-
`);var
|
|
32
|
-
`),
|
|
33
|
-
`)>-1?u.value=t.prevInput="":t.prevInput=
|
|
34
|
-
top: `+(t.clientY-
|
|
15
|
+
b`.split(/\n/).length!=3?function(t){for(var i=0,u=[],l=t.length;i<=l;){var f=t.indexOf(`
|
|
16
|
+
`,i);f==-1&&(f=t.length);var g=t.slice(i,t.charAt(f-1)=="\r"?f-1:f),S=g.indexOf("\r");S!=-1?(u.push(g.slice(0,S)),i+=S+1):(u.push(g),i=f+1)}return u}:function(t){return t.split(/\r\n?|\n/)},xi=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(i){return!1}}:function(t){var i;try{i=t.ownerDocument.selection.createRange()}catch(u){}return!i||i.parentElement()!=t?!1:i.compareEndPoints("StartToEnd",i)!=0},_i=function(){var t=_("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),gn=null;function fn(t){if(gn!=null)return gn;var i=he(t,_("span","x")),u=i.getBoundingClientRect(),l=H(i,0,1).getBoundingClientRect();return gn=Math.abs(u.left-l.left)>1}var An={},Cn={};function Pn(t,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),An[t]=i}function Sa(t,i){Cn[t]=i}function Wn(t){if(typeof t=="string"&&Cn.hasOwnProperty(t))t=Cn[t];else if(t&&typeof t.name=="string"&&Cn.hasOwnProperty(t.name)){var i=Cn[t.name];typeof i=="string"&&(i={name:i}),t=Er(i,t),t.name=i.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Wn("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Wn("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function cn(t,i){i=Wn(i);var u=An[i.name];if(!u)return cn(t,"text/plain");var l=u(t,i);if(Pr.hasOwnProperty(i.name)){var f=Pr[i.name];for(var g in f)!f.hasOwnProperty(g)||(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=f[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var S in i.modeProps)l[S]=i.modeProps[S];return l}var Pr={};function ri(t,i){var u=Pr.hasOwnProperty(t)?Pr[t]:Pr[t]={};Oe(i,u)}function In(t,i){if(i===!0)return i;if(t.copyState)return t.copyState(i);var u={};for(var l in i){var f=i[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function wa(t,i){for(var u;t.innerMode&&(u=t.innerMode(i),!(!u||u.mode==t));)i=u.state,t=u.mode;return u||{mode:t,state:i}}function Qo(t,i,u){return t.startState?t.startState(i,u):!0}var hr=function(t,i,u){this.pos=this.start=0,this.string=t,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};hr.prototype.eol=function(){return this.pos>=this.string.length},hr.prototype.sol=function(){return this.pos==this.lineStart},hr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},hr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},hr.prototype.eat=function(t){var i=this.string.charAt(this.pos),u;if(typeof t=="string"?u=i==t:u=i&&(t.test?t.test(i):t(i)),u)return++this.pos,i},hr.prototype.eatWhile=function(t){for(var i=this.pos;this.eat(t););return this.pos>i},hr.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},hr.prototype.skipToEnd=function(){this.pos=this.string.length},hr.prototype.skipTo=function(t){var i=this.string.indexOf(t,this.pos);if(i>-1)return this.pos=i,!0},hr.prototype.backUp=function(t){this.pos-=t},hr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=He(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?He(this.string,this.lineStart,this.tabSize):0)},hr.prototype.indentation=function(){return He(this.string,null,this.tabSize)-(this.lineStart?He(this.string,this.lineStart,this.tabSize):0)},hr.prototype.match=function(t,i,u){if(typeof t=="string"){var l=function(S){return u?S.toLowerCase():S},f=this.string.substr(this.pos,t.length);if(l(f)==l(t))return i!==!1&&(this.pos+=t.length),!0}else{var g=this.string.slice(this.pos).match(t);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},hr.prototype.current=function(){return this.string.slice(this.start,this.pos)},hr.prototype.hideFirstChars=function(t,i){this.lineStart+=t;try{return i()}finally{this.lineStart-=t}},hr.prototype.lookAhead=function(t){var i=this.lineOracle;return i&&i.lookAhead(t)},hr.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function ut(t,i){if(i-=t.first,i<0||i>=t.size)throw new Error("There is no line "+(i+t.first)+" in the document.");for(var u=t;!u.lines;)for(var l=0;;++l){var f=u.children[l],g=f.chunkSize();if(i<g){u=f;break}i-=g}return u.lines[i]}function Si(t,i,u){var l=[],f=i.line;return t.iter(i.line,u.line+1,function(g){var S=g.text;f==u.line&&(S=S.slice(0,u.ch)),f==i.line&&(S=S.slice(i.ch)),l.push(S),++f}),l}function Ui(t,i,u){var l=[];return t.iter(i,u,function(f){l.push(f.text)}),l}function kn(t,i){var u=i-t.height;if(u)for(var l=t;l;l=l.parent)l.height+=u}function Zt(t){if(t.parent==null)return null;for(var i=t.parent,u=Te(i.lines,t),l=i.parent;l;i=l,l=l.parent)for(var f=0;l.children[f]!=i;++f)u+=l.children[f].chunkSize();return u+i.first}function wi(t,i){var u=t.first;e:do{for(var l=0;l<t.children.length;++l){var f=t.children[l],g=f.height;if(i<g){t=f;continue e}i-=g,u+=f.chunkSize()}return u}while(!t.lines);for(var S=0;S<t.lines.length;++S){var T=t.lines[S],L=T.height;if(i<L)break;i-=L}return u+S}function qi(t,i){return i>=t.first&&i<t.first+t.size}function Aa(t,i){return String(t.lineNumberFormatter(i+t.firstLineNumber))}function D(t,i,u){if(u===void 0&&(u=null),!(this instanceof D))return new D(t,i,u);this.line=t,this.ch=i,this.sticky=u}function oe(t,i){return t.line-i.line||t.ch-i.ch}function Re(t,i){return t.sticky==i.sticky&&oe(t,i)==0}function Ge(t){return D(t.line,t.ch)}function Pt(t,i){return oe(t,i)<0?i:t}function Ht(t,i){return oe(t,i)<0?t:i}function rr(t,i){return Math.max(t.first,Math.min(i,t.first+t.size-1))}function ft(t,i){if(i.line<t.first)return D(t.first,0);var u=t.first+t.size-1;return i.line>u?D(u,ut(t,u).text.length):Fn(i,ut(t,i.line).text.length)}function Fn(t,i){var u=t.ch;return u==null||u>i?D(t.line,i):u<0?D(t.line,0):t}function eo(t,i){for(var u=[],l=0;l<i.length;l++)u[l]=ft(t,i[l]);return u}var Zo=function(t,i){this.state=t,this.lookAhead=i},Hn=function(t,i,u,l){this.state=i,this.doc=t,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Hn.prototype.lookAhead=function(t){var i=this.doc.getLine(this.line+t);return i!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),i},Hn.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Hn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Hn.fromSaved=function(t,i,u){return i instanceof Zo?new Hn(t,In(t.mode,i.state),u,i.lookAhead):new Hn(t,In(t.mode,i),u)},Hn.prototype.save=function(t){var i=t!==!1?In(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Zo(i,this.maxLookAhead):i};function _o(t,i,u,l){var f=[t.state.modeGen],g={};Hu(t,i.text,t.doc.mode,u,function(V,le){return f.push(V,le)},g,l);for(var S=u.state,T=function(V){u.baseTokens=f;var le=t.state.overlays[V],de=1,Se=0;u.state=!0,Hu(t,i.text,le.mode,u,function(me,Ie){for(var Me=de;Se<me;){var $e=f[de];$e>me&&f.splice(de,1,me,f[de+1],$e),de+=2,Se=Math.min(me,$e)}if(!!Ie)if(le.opaque)f.splice(Me,de-Me,me,"overlay "+Ie),de=Me+2;else for(;Me<de;Me+=2){var Qe=f[Me+1];f[Me+1]=(Qe?Qe+" ":"")+"overlay "+Ie}},g),u.state=S,u.baseTokens=null,u.baseTokenPos=1},L=0;L<t.state.overlays.length;++L)T(L);return{styles:f,classes:g.bgClass||g.textClass?g:null}}function Bu(t,i,u){if(!i.styles||i.styles[0]!=t.state.modeGen){var l=to(t,Zt(i)),f=i.text.length>t.options.maxHighlightLength&&In(t.doc.mode,l.state),g=_o(t,i,l);f&&(l.state=f),i.stateAfter=l.save(!f),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),u===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return i.styles}function to(t,i,u){var l=t.doc,f=t.display;if(!l.mode.startState)return new Hn(l,!0,i);var g=zu(t,i,u),S=g>l.first&&ut(l,g-1).stateAfter,T=S?Hn.fromSaved(l,S,g):new Hn(l,Qo(l.mode),g);return l.iter(g,i,function(L){il(t,L.text,T);var V=T.line;L.stateAfter=V==i-1||V%5==0||V>=f.viewFrom&&V<f.viewTo?T.save():null,T.nextLine()}),u&&(l.modeFrontier=T.line),T}function il(t,i,u,l){var f=t.doc.mode,g=new hr(i,t.options.tabSize,u);for(g.start=g.pos=l||0,i==""&&ju(f,u.state);!g.eol();)qo(f,g,u.state),g.start=g.pos}function ju(t,i){if(t.blankLine)return t.blankLine(i);if(!!t.innerMode){var u=wa(t,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function qo(t,i,u,l){for(var f=0;f<10;f++){l&&(l[0]=wa(t,u).mode);var g=t.token(i,u);if(i.pos>i.start)return g}throw new Error("Mode "+t.name+" failed to advance stream.")}var Vu=function(t,i,u){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=i||null,this.state=u};function Uu(t,i,u,l){var f=t.doc,g=f.mode,S;i=ft(f,i);var T=ut(f,i.line),L=to(t,i.line,u),V=new hr(T.text,t.options.tabSize,L),le;for(l&&(le=[]);(l||V.pos<i.ch)&&!V.eol();)V.start=V.pos,S=qo(g,V,L.state),l&&le.push(new Vu(V,S,In(f.mode,L.state)));return l?le:new Vu(V,S,L.state)}function Wu(t,i){if(t)for(;;){var u=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;t=t.slice(0,u.index)+t.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";i[l]==null?i[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+u[2])}return t}function Hu(t,i,u,l,f,g,S){var T=u.flattenSpans;T==null&&(T=t.options.flattenSpans);var L=0,V=null,le=new hr(i,t.options.tabSize,l),de,Se=t.options.addModeClass&&[null];for(i==""&&Wu(ju(u,l.state),g);!le.eol();){if(le.pos>t.options.maxHighlightLength?(T=!1,S&&il(t,i,l,le.pos),le.pos=i.length,de=null):de=Wu(qo(u,le,l.state,Se),g),Se){var me=Se[0].name;me&&(de="m-"+(de?me+" "+de:me))}if(!T||V!=de){for(;L<le.start;)L=Math.min(le.start,L+5e3),f(L,V);V=de}le.start=le.pos}for(;L<le.pos;){var Ie=Math.min(le.pos,L+5e3);f(Ie,V),L=Ie}}function zu(t,i,u){for(var l,f,g=t.doc,S=u?-1:i-(t.doc.mode.innerMode?1e3:100),T=i;T>S;--T){if(T<=g.first)return g.first;var L=ut(g,T-1),V=L.stateAfter;if(V&&(!u||T+(V instanceof Zo?V.lookAhead:0)<=g.modeFrontier))return T;var le=He(L.text,null,t.options.tabSize);(f==null||l>le)&&(f=T-1,l=le)}return f}function Rc(t,i){if(t.modeFrontier=Math.min(t.modeFrontier,i),!(t.highlightFrontier<i-10)){for(var u=t.first,l=i-1;l>u;l--){var f=ut(t,l).stateAfter;if(f&&(!(f instanceof Zo)||l+f.lookAhead<i)){u=l+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,u)}}var Gu=!1,Ai=!1;function $u(){Gu=!0}function Lc(){Ai=!0}function es(t,i,u){this.marker=t,this.from=i,this.to=u}function ro(t,i){if(t)for(var u=0;u<t.length;++u){var l=t[u];if(l.marker==i)return l}}function Ku(t,i){for(var u,l=0;l<t.length;++l)t[l]!=i&&(u||(u=[])).push(t[l]);return u}function al(t,i,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&t.markedSpans&&l.has(t.markedSpans)?t.markedSpans.push(i):(t.markedSpans=t.markedSpans?t.markedSpans.concat([i]):[i],l&&l.add(t.markedSpans)),i.marker.attachLine(t)}function Wi(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var g=t[f],S=g.marker,T=g.from==null||(S.inclusiveLeft?g.from<=i:g.from<i);if(T||g.from==i&&S.type=="bookmark"&&(!u||!g.marker.insertLeft)){var L=g.to==null||(S.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new es(S,g.from,L?null:g.to))}}return l}function ts(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var g=t[f],S=g.marker,T=g.to==null||(S.inclusiveRight?g.to>=i:g.to>i);if(T||g.from==i&&S.type=="bookmark"&&(!u||g.marker.insertLeft)){var L=g.from==null||(S.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new es(S,L?null:g.from-i,g.to==null?null:g.to-i))}}return l}function rs(t,i){if(i.full)return null;var u=qi(t,i.from.line)&&ut(t,i.from.line).markedSpans,l=qi(t,i.to.line)&&ut(t,i.to.line).markedSpans;if(!u&&!l)return null;var f=i.from.ch,g=i.to.ch,S=oe(i.from,i.to)==0,T=Wi(u,f,S),L=ts(l,g,S),V=i.text.length==1,le=Je(i.text).length+(V?f:0);if(T)for(var de=0;de<T.length;++de){var Se=T[de];if(Se.to==null){var me=ro(L,Se.marker);me?V&&(Se.to=me.to==null?null:me.to+le):Se.to=f}}if(L)for(var Ie=0;Ie<L.length;++Ie){var Me=L[Ie];if(Me.to!=null&&(Me.to+=le),Me.from==null){var $e=ro(T,Me.marker);$e||(Me.from=le,V&&(T||(T=[])).push(Me))}else Me.from+=le,V&&(T||(T=[])).push(Me)}T&&(T=ol(T)),L&&L!=T&&(L=ol(L));var Qe=[T];if(!V){var _e=i.text.length-2,Xe;if(_e>0&&T)for(var et=0;et<T.length;++et)T[et].to==null&&(Xe||(Xe=[])).push(new es(T[et].marker,null,null));for(var yt=0;yt<_e;++yt)Qe.push(Xe);Qe.push(L)}return Qe}function ol(t){for(var i=0;i<t.length;++i){var u=t[i];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&t.splice(i--,1)}return t.length?t:null}function ns(t,i,u){var l=null;if(t.iter(i.line,u.line+1,function(me){if(me.markedSpans)for(var Ie=0;Ie<me.markedSpans.length;++Ie){var Me=me.markedSpans[Ie].marker;Me.readOnly&&(!l||Te(l,Me)==-1)&&(l||(l=[])).push(Me)}}),!l)return null;for(var f=[{from:i,to:u}],g=0;g<l.length;++g)for(var S=l[g],T=S.find(0),L=0;L<f.length;++L){var V=f[L];if(!(oe(V.to,T.from)<0||oe(V.from,T.to)>0)){var le=[L,1],de=oe(V.from,T.from),Se=oe(V.to,T.to);(de<0||!S.inclusiveLeft&&!de)&&le.push({from:V.from,to:T.from}),(Se>0||!S.inclusiveRight&&!Se)&&le.push({from:T.to,to:V.to}),f.splice.apply(f,le),L+=le.length-3}}return f}function is(t){var i=t.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(t);t.markedSpans=null}}function Yu(t,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(t);t.markedSpans=i}}function no(t){return t.inclusiveLeft?-1:0}function as(t){return t.inclusiveRight?1:0}function sl(t,i){var u=t.lines.length-i.lines.length;if(u!=0)return u;var l=t.find(),f=i.find(),g=oe(l.from,f.from)||no(t)-no(i);if(g)return-g;var S=oe(l.to,f.to)||as(t)-as(i);return S||i.id-t.id}function Ju(t,i){var u=Ai&&t.markedSpans,l;if(u)for(var f=void 0,g=0;g<u.length;++g)f=u[g],f.marker.collapsed&&(i?f.from:f.to)==null&&(!l||sl(l,f.marker)<0)&&(l=f.marker);return l}function ll(t){return Ju(t,!0)}function io(t){return Ju(t,!1)}function Xu(t,i){var u=Ai&&t.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var g=u[f];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||sl(l,g.marker)<0)&&(l=g.marker)}return l}function zn(t,i,u,l,f){var g=ut(t,i),S=Ai&&g.markedSpans;if(S)for(var T=0;T<S.length;++T){var L=S[T];if(!!L.marker.collapsed){var V=L.marker.find(0),le=oe(V.from,u)||no(L.marker)-no(f),de=oe(V.to,l)||as(L.marker)-as(f);if(!(le>=0&&de<=0||le<=0&&de>=0)&&(le<=0&&(L.marker.inclusiveRight&&f.inclusiveLeft?oe(V.to,u)>=0:oe(V.to,u)>0)||le>=0&&(L.marker.inclusiveRight&&f.inclusiveLeft?oe(V.from,l)<=0:oe(V.from,l)<0)))return!0}}}function Gr(t){for(var i;i=ll(t);)t=i.find(-1,!0).line;return t}function mn(t){for(var i;i=io(t);)t=i.find(1,!0).line;return t}function Ca(t){for(var i,u;i=io(t);)t=i.find(1,!0).line,(u||(u=[])).push(t);return u}function ul(t,i){var u=ut(t,i),l=Gr(u);return u==l?i:Zt(l)}function Qu(t,i){if(i>t.lastLine())return i;var u=ut(t,i),l;if(!Hi(t,u))return i;for(;l=io(u);)u=l.find(1,!0).line;return Zt(u)+1}function Hi(t,i){var u=Ai&&i.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&os(t,i,l))return!0}}}function os(t,i,u){if(u.to==null){var l=u.marker.find(1,!0);return os(t,l.line,ro(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==i.text.length)return!0;for(var f=void 0,g=0;g<i.markedSpans.length;++g)if(f=i.markedSpans[g],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&os(t,i,f))return!0}function Ci(t){t=Gr(t);for(var i=0,u=t.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==t)break;i+=f.height}for(var g=u.parent;g;u=g,g=u.parent)for(var S=0;S<g.children.length;++S){var T=g.children[S];if(T==u)break;i+=T.height}return i}function ao(t){if(t.height==0)return 0;for(var i=t.text.length,u,l=t;u=ll(l);){var f=u.find(0,!0);l=f.from.line,i+=f.from.ch-f.to.ch}for(l=t;u=io(l);){var g=u.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function ss(t){var i=t.display,u=t.doc;i.maxLine=ut(u,u.first),i.maxLineLength=ao(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var f=ao(l);f>i.maxLineLength&&(i.maxLineLength=f,i.maxLine=l)})}var Gn=function(t,i,u){this.text=t,Yu(this,i),this.height=u?u(this):1};Gn.prototype.lineNo=function(){return Zt(this)},pr(Gn);function Mc(t,i,u,l){t.text=i,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),is(t),Yu(t,u);var f=l?l(t):1;f!=t.height&&kn(t,f)}function Zu(t){t.parent=null,is(t)}var xt={},ls={};function fl(t,i){if(!t||/^\s*$/.test(t))return null;var u=i.addModeClass?ls:xt;return u[t]||(u[t]=t.replace(/\S+/g,"cm-$&"))}function Ei(t,i){var u=Q("span",null,null,W?"padding-right: .1px":null),l={pre:Q("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};i.measure={};for(var f=0;f<=(i.rest?i.rest.length:0);f++){var g=f?i.rest[f-1]:i.line,S=void 0;l.pos=0,l.addToken=Ea,ti(t.display.measure)&&(S=st(g,t.doc.direction))&&(l.addToken=Fr(l.addToken,S)),l.map=[];var T=i!=t.display.externalMeasured&&Zt(g);dl(g,l,Bu(t,g,T)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=De(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=De(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(ei(t.display.measure))),f==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(W){var L=l.content.lastChild;(/\bcm-tab\b/.test(L.className)||L.querySelector&&L.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ve(t,"renderLine",t,i.line,l.pre),l.pre.className&&(l.textClass=De(l.pre.className,l.textClass||"")),l}function _u(t){var i=_("span","\u2022","cm-invalidchar");return i.title="\\u"+t.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Ea(t,i,u,l,f,g,S){if(!!i){var T=t.splitSpaces?cl(i,t.trailingSpace):i,L=t.cm.state.specialChars,V=!1,le;if(!L.test(i))t.col+=i.length,le=document.createTextNode(T),t.map.push(t.pos,t.pos+i.length,le),E&&F<9&&(V=!0),t.pos+=i.length;else{le=document.createDocumentFragment();for(var de=0;;){L.lastIndex=de;var Se=L.exec(i),me=Se?Se.index-de:i.length-de;if(me){var Ie=document.createTextNode(T.slice(de,de+me));E&&F<9?le.appendChild(_("span",[Ie])):le.appendChild(Ie),t.map.push(t.pos,t.pos+me,Ie),t.col+=me,t.pos+=me}if(!Se)break;de+=me+1;var Me=void 0;if(Se[0]==" "){var $e=t.cm.options.tabSize,Qe=$e-t.col%$e;Me=le.appendChild(_("span",or(Qe),"cm-tab")),Me.setAttribute("role","presentation"),Me.setAttribute("cm-text"," "),t.col+=Qe}else Se[0]=="\r"||Se[0]==`
|
|
17
|
+
`?(Me=le.appendChild(_("span",Se[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Me.setAttribute("cm-text",Se[0]),t.col+=1):(Me=t.cm.options.specialCharPlaceholder(Se[0]),Me.setAttribute("cm-text",Se[0]),E&&F<9?le.appendChild(_("span",[Me])):le.appendChild(Me),t.col+=1);t.map.push(t.pos,t.pos+1,Me),t.pos++}}if(t.trailingSpace=T.charCodeAt(i.length-1)==32,u||l||f||V||g||S){var _e=u||"";l&&(_e+=l),f&&(_e+=f);var Xe=_("span",[le],_e,g);if(S)for(var et in S)S.hasOwnProperty(et)&&et!="style"&&et!="class"&&Xe.setAttribute(et,S[et]);return t.content.appendChild(Xe)}t.content.appendChild(le)}}function cl(t,i){if(t.length>1&&!/ /.test(t))return t;for(var u=i,l="",f=0;f<t.length;f++){var g=t.charAt(f);g==" "&&u&&(f==t.length-1||t.charCodeAt(f+1)==32)&&(g="\xA0"),l+=g,u=g==" "}return l}function Fr(t,i){return function(u,l,f,g,S,T,L){f=f?f+" cm-force-border":"cm-force-border";for(var V=u.pos,le=V+l.length;;){for(var de=void 0,Se=0;Se<i.length&&(de=i[Se],!(de.to>V&&de.from<=V));Se++);if(de.to>=le)return t(u,l,f,g,S,T,L);t(u,l.slice(0,de.to-V),f,g,null,T,L),g=null,l=l.slice(de.to-V),V=de.to}}}function oo(t,i,u,l){var f=!l&&u.widgetNode;f&&t.map.push(t.pos,t.pos+i,f),!l&&t.cm.display.input.needsContentAttribute&&(f||(f=t.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(t.cm.display.input.setUneditable(f),t.content.appendChild(f)),t.pos+=i,t.trailingSpace=!1}function dl(t,i,u){var l=t.markedSpans,f=t.text,g=0;if(!l){for(var S=1;S<u.length;S+=2)i.addToken(i,f.slice(g,g=u[S]),fl(u[S+1],i.cm.options));return}for(var T=f.length,L=0,V=1,le="",de,Se,me=0,Ie,Me,$e,Qe,_e;;){if(me==L){Ie=Me=$e=Se="",_e=null,Qe=null,me=1/0;for(var Xe=[],et=void 0,yt=0;yt<l.length;++yt){var ht=l[yt],Bt=ht.marker;if(Bt.type=="bookmark"&&ht.from==L&&Bt.widgetNode)Xe.push(Bt);else if(ht.from<=L&&(ht.to==null||ht.to>L||Bt.collapsed&&ht.to==L&&ht.from==L)){if(ht.to!=null&&ht.to!=L&&me>ht.to&&(me=ht.to,Me=""),Bt.className&&(Ie+=" "+Bt.className),Bt.css&&(Se=(Se?Se+";":"")+Bt.css),Bt.startStyle&&ht.from==L&&($e+=" "+Bt.startStyle),Bt.endStyle&&ht.to==me&&(et||(et=[])).push(Bt.endStyle,ht.to),Bt.title&&((_e||(_e={})).title=Bt.title),Bt.attributes)for(var fr in Bt.attributes)(_e||(_e={}))[fr]=Bt.attributes[fr];Bt.collapsed&&(!Qe||sl(Qe.marker,Bt)<0)&&(Qe=ht)}else ht.from>L&&me>ht.from&&(me=ht.from)}if(et)for(var Wt=0;Wt<et.length;Wt+=2)et[Wt+1]==me&&(Me+=" "+et[Wt]);if(!Qe||Qe.from==L)for(var wr=0;wr<Xe.length;++wr)oo(i,0,Xe[wr]);if(Qe&&(Qe.from||0)==L){if(oo(i,(Qe.to==null?T+1:Qe.to)-L,Qe.marker,Qe.from==null),Qe.to==null)return;Qe.to==L&&(Qe=!1)}}if(L>=T)break;for(var xn=Math.min(T,me);;){if(le){var M=L+le.length;if(!Qe){var Dt=M>xn?le.slice(0,xn-L):le;i.addToken(i,Dt,de?de+Ie:Ie,$e,L+Dt.length==me?Me:"",Se,_e)}if(M>=xn){le=le.slice(xn-L),L=xn;break}L=M,$e=""}le=f.slice(g,g=u[V++]),de=fl(u[V++],i.cm.options)}}}function qu(t,i,u){this.line=i,this.rest=Ca(i),this.size=this.rest?Zt(Je(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Hi(t,i)}function us(t,i,u){for(var l=[],f,g=i;g<u;g=f){var S=new qu(t.doc,ut(t.doc,g),g);f=g+S.size,l.push(S)}return l}var Oa=null;function Nc(t){Oa?Oa.ops.push(t):t.ownsGroup=Oa={ops:[t],delayedCallbacks:[]}}function Dc(t){var i=t.delayedCallbacks,u=0;do{for(;u<i.length;u++)i[u].call(null);for(var l=0;l<t.ops.length;l++){var f=t.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<i.length)}function ef(t,i){var u=t.ownsGroup;if(!!u)try{Dc(u)}finally{Oa=null,i(u)}}var so=null;function Br(t,i){var u=be(t,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;Oa?f=Oa.delayedCallbacks:so?f=so:(f=so=[],setTimeout(Bc,0));for(var g=function(T){f.push(function(){return u[T].apply(null,l)})},S=0;S<u.length;++S)g(S)}}function Bc(){var t=so;so=null;for(var i=0;i<t.length;++i)t[i]()}function tf(t,i,u,l){for(var f=0;f<i.changes.length;f++){var g=i.changes[f];g=="text"?Vc(t,i):g=="gutter"?rf(t,i,u,l):g=="class"?hl(t,i):g=="widget"&&Uc(t,i,l)}i.changes=null}function ni(t){return t.node==t.text&&(t.node=_("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),E&&F<8&&(t.node.style.zIndex=2)),t.node}function jc(t,i){var u=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),i.background)u?i.background.className=u:(i.background.parentNode.removeChild(i.background),i.background=null);else if(u){var l=ni(i);i.background=l.insertBefore(_("div",null,u),l.firstChild),t.display.input.setUneditable(i.background)}}function pl(t,i){var u=t.display.externalMeasured;return u&&u.line==i.line?(t.display.externalMeasured=null,i.measure=u.measure,u.built):Ei(t,i)}function Vc(t,i){var u=i.text.className,l=pl(t,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,hl(t,i)):u&&(i.text.className=u)}function hl(t,i){jc(t,i),i.line.wrapClass?ni(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var u=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=u||""}function rf(t,i,u,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var f=ni(i);i.gutterBackground=_("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),t.display.input.setUneditable(i.gutterBackground),f.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(t.options.lineNumbers||g){var S=ni(i),T=i.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(T.setAttribute("aria-hidden","true"),t.display.input.setUneditable(T),S.insertBefore(T,i.text),i.line.gutterClass&&(T.className+=" "+i.line.gutterClass),t.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=T.appendChild(_("div",Aa(t.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),g)for(var L=0;L<t.display.gutterSpecs.length;++L){var V=t.display.gutterSpecs[L].className,le=g.hasOwnProperty(V)&&g[V];le&&T.appendChild(_("div",[le],"CodeMirror-gutter-elt","left: "+l.gutterLeft[V]+"px; width: "+l.gutterWidth[V]+"px"))}}}function Uc(t,i,u){i.alignable&&(i.alignable=null);for(var l=X("CodeMirror-linewidget"),f=i.node.firstChild,g=void 0;f;f=g)g=f.nextSibling,l.test(f.className)&&i.node.removeChild(f);vl(t,i,u)}function nf(t,i,u,l){var f=pl(t,i);return i.text=i.node=f.pre,f.bgClass&&(i.bgClass=f.bgClass),f.textClass&&(i.textClass=f.textClass),hl(t,i),rf(t,i,u,l),vl(t,i,l),i.node}function vl(t,i,u){if(gl(t,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)gl(t,i.rest[l],i,u,!1)}function gl(t,i,u,l,f){if(!!i.widgets)for(var g=ni(u),S=0,T=i.widgets;S<T.length;++S){var L=T[S],V=_("div",[L.node],"CodeMirror-linewidget"+(L.className?" "+L.className:""));L.handleMouseEvents||V.setAttribute("cm-ignore-events","true"),ml(L,V,u,l),t.display.input.setUneditable(V),f&&L.above?g.insertBefore(V,u.gutter||u.text):g.appendChild(V),Br(L,"redraw")}}function ml(t,i,u,l){if(t.noHScroll){(u.alignable||(u.alignable=[])).push(i);var f=l.wrapperWidth;i.style.left=l.fixedPos+"px",t.coverGutter||(f-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=f+"px"}t.coverGutter&&(i.style.zIndex=5,i.style.position="relative",t.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function lo(t){if(t.height!=null)return t.height;var i=t.doc.cm;if(!i)return 0;if(!ye(document.body,t.node)){var u="position: relative;";t.coverGutter&&(u+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),t.noHScroll&&(u+="width: "+i.display.wrapper.clientWidth+"px;"),he(i.display.measure,_("div",[t.node],null,u))}return t.height=t.node.parentNode.offsetHeight}function En(t,i){for(var u=zr(i);u!=t.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==t.sizer&&u!=t.mover)return!0}function fs(t){return t.lineSpace.offsetTop}function yl(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function af(t){if(t.cachedPaddingH)return t.cachedPaddingH;var i=he(t.measure,_("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(t.cachedPaddingH=l),l}function ii(t){return Ye-t.display.nativeBarWidth}function Oi(t){return t.display.scroller.clientWidth-ii(t)-t.display.barWidth}function bl(t){return t.display.scroller.clientHeight-ii(t)-t.display.barHeight}function Wc(t,i,u){var l=t.options.lineWrapping,f=l&&Oi(t);if(!i.measure.heights||l&&i.measure.width!=f){var g=i.measure.heights=[];if(l){i.measure.width=f;for(var S=i.text.firstChild.getClientRects(),T=0;T<S.length-1;T++){var L=S[T],V=S[T+1];Math.abs(L.bottom-V.bottom)>2&&g.push((L.bottom+V.top)/2-u.top)}}g.push(u.bottom-u.top)}}function of(t,i,u){if(t.line==i)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var l=0;l<t.rest.length;l++)if(t.rest[l]==i)return{map:t.measure.maps[l],cache:t.measure.caches[l]};for(var f=0;f<t.rest.length;f++)if(Zt(t.rest[f])>u)return{map:t.measure.maps[f],cache:t.measure.caches[f],before:!0}}}function Hc(t,i){i=Gr(i);var u=Zt(i),l=t.display.externalMeasured=new qu(t.doc,i,u);l.lineN=u;var f=l.built=Ei(t,l);return l.text=f.pre,he(t.display.lineMeasure,f.pre),l}function xl(t,i,u,l){return ai(t,Ti(t,i),u,l)}function Sl(t,i){if(i>=t.display.viewFrom&&i<t.display.viewTo)return t.display.view[Rn(t,i)];var u=t.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function Ti(t,i){var u=Zt(i),l=Sl(t,u);l&&!l.text?l=null:l&&l.changes&&(tf(t,l,u,vs(t)),t.curOp.forceUpdate=!0),l||(l=Hc(t,i));var f=of(l,i,u);return{line:i,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function ai(t,i,u,l,f){i.before&&(u=-1);var g=u+(l||""),S;return i.cache.hasOwnProperty(g)?S=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Wc(t,i.view,i.rect),i.hasHeights=!0),S=uf(t,i,u,l),S.bogus||(i.cache[g]=S)),{left:S.left,right:S.right,top:f?S.rtop:S.top,bottom:f?S.rbottom:S.bottom}}var sf={left:0,right:0,top:0,bottom:0};function lf(t,i,u){for(var l,f,g,S,T,L,V=0;V<t.length;V+=3)if(T=t[V],L=t[V+1],i<T?(f=0,g=1,S="left"):i<L?(f=i-T,g=f+1):(V==t.length-3||i==L&&t[V+3]>i)&&(g=L-T,f=g-1,i>=L&&(S="right")),f!=null){if(l=t[V+2],T==L&&u==(l.insertLeft?"left":"right")&&(S=u),u=="left"&&f==0)for(;V&&t[V-2]==t[V-3]&&t[V-1].insertLeft;)l=t[(V-=3)+2],S="left";if(u=="right"&&f==L-T)for(;V<t.length-3&&t[V+3]==t[V+4]&&!t[V+5].insertLeft;)l=t[(V+=3)+2],S="right";break}return{node:l,start:f,end:g,collapse:S,coverStart:T,coverEnd:L}}function zc(t,i){var u=sf;if(i=="left")for(var l=0;l<t.length&&(u=t[l]).left==u.right;l++);else for(var f=t.length-1;f>=0&&(u=t[f]).left==u.right;f--);return u}function uf(t,i,u,l){var f=lf(i.map,u,l),g=f.node,S=f.start,T=f.end,L=f.collapse,V;if(g.nodeType==3){for(var le=0;le<4;le++){for(;S&>(i.line.text.charAt(f.coverStart+S));)--S;for(;f.coverStart+T<f.coverEnd&>(i.line.text.charAt(f.coverStart+T));)++T;if(E&&F<9&&S==0&&T==f.coverEnd-f.coverStart?V=g.parentNode.getBoundingClientRect():V=zc(H(g,S,T).getClientRects(),l),V.left||V.right||S==0)break;T=S,S=S-1,L="right"}E&&F<11&&(V=ff(t.display.measure,V))}else{S>0&&(L=l="right");var de;t.options.lineWrapping&&(de=g.getClientRects()).length>1?V=de[l=="right"?de.length-1:0]:V=g.getBoundingClientRect()}if(E&&F<9&&!S&&(!V||!V.left&&!V.right)){var Se=g.parentNode.getClientRects()[0];Se?V={left:Se.left,right:Se.left+oi(t.display),top:Se.top,bottom:Se.bottom}:V=sf}for(var me=V.top-i.rect.top,Ie=V.bottom-i.rect.top,Me=(me+Ie)/2,$e=i.view.measure.heights,Qe=0;Qe<$e.length-1&&!(Me<$e[Qe]);Qe++);var _e=Qe?$e[Qe-1]:0,Xe=$e[Qe],et={left:(L=="right"?V.right:V.left)-i.rect.left,right:(L=="left"?V.left:V.right)-i.rect.left,top:_e,bottom:Xe};return!V.left&&!V.right&&(et.bogus=!0),t.options.singleCursorHeightPerLine||(et.rtop=me,et.rbottom=Ie),et}function ff(t,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!fn(t))return i;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*u,right:i.right*u,top:i.top*l,bottom:i.bottom*l}}function cf(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var i=0;i<t.rest.length;i++)t.measure.caches[i]={}}function wl(t){t.display.externalMeasure=null,ce(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)cf(t.display.view[i])}function uo(t){wl(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Al(t){return ee&&N?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function $r(t){return ee&&N?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function Cl(t){var i=Gr(t),u=i.widgets,l=0;if(u)for(var f=0;f<u.length;++f)u[f].above&&(l+=lo(u[f]));return l}function cs(t,i,u,l,f){if(!f){var g=Cl(i);u.top+=g,u.bottom+=g}if(l=="line")return u;l||(l="local");var S=Ci(i);if(l=="local"?S+=fs(t.display):S-=t.display.viewOffset,l=="page"||l=="window"){var T=t.display.lineSpace.getBoundingClientRect();S+=T.top+(l=="window"?0:$r(tt(t)));var L=T.left+(l=="window"?0:Al(tt(t)));u.left+=L,u.right+=L}return u.top+=S,u.bottom+=S,u}function df(t,i,u){if(u=="div")return i;var l=i.left,f=i.top;if(u=="page")l-=Al(tt(t)),f-=$r(tt(t));else if(u=="local"||!u){var g=t.display.sizer.getBoundingClientRect();l+=g.left,f+=g.top}var S=t.display.lineSpace.getBoundingClientRect();return{left:l-S.left,top:f-S.top}}function ds(t,i,u,l,f){return l||(l=ut(t.doc,i.line)),cs(t,l,xl(t,l,i.ch,f),u)}function $n(t,i,u,l,f,g){l=l||ut(t.doc,i.line),f||(f=Ti(t,l));function S(Ie,Me){var $e=ai(t,f,Ie,Me?"right":"left",g);return Me?$e.left=$e.right:$e.right=$e.left,cs(t,l,$e,u)}var T=st(l,t.doc.direction),L=i.ch,V=i.sticky;if(L>=l.text.length?(L=l.text.length,V="before"):L<=0&&(L=0,V="after"),!T)return S(V=="before"?L-1:L,V=="before");function le(Ie,Me,$e){var Qe=T[Me],_e=Qe.level==1;return S($e?Ie-1:Ie,_e!=$e)}var de=mt(T,L,V),Se=dt,me=le(L,de,V=="before");return Se!=null&&(me.other=le(L,Se,V!="before")),me}function Ta(t,i){var u=0;i=ft(t.doc,i),t.options.lineWrapping||(u=oi(t.display)*i.ch);var l=ut(t.doc,i.line),f=Ci(l)+fs(t.display);return{left:u,right:u,top:f,bottom:f+l.height}}function El(t,i,u,l,f){var g=D(t,i,u);return g.xRel=f,l&&(g.outside=l),g}function ps(t,i,u){var l=t.doc;if(u+=t.display.viewOffset,u<0)return El(l.first,0,null,-1,-1);var f=wi(l,u),g=l.first+l.size-1;if(f>g)return El(l.first+l.size-1,ut(l,g).text.length,null,1,1);i<0&&(i=0);for(var S=ut(l,f);;){var T=fo(t,S,f,i,u),L=Xu(S,T.ch+(T.xRel>0||T.outside>0?1:0));if(!L)return T;var V=L.find(1);if(V.line==f)return V;S=ut(l,f=V.line)}}function hs(t,i,u,l){l-=Cl(i);var f=i.text.length,g=Ot(function(S){return ai(t,u,S-1).bottom<=l},f,0);return f=Ot(function(S){return ai(t,u,S).top>l},g,f),{begin:g,end:f}}function pf(t,i,u,l){u||(u=Ti(t,i));var f=cs(t,i,ai(t,u,l),"line").top;return hs(t,i,u,f)}function Pa(t,i,u,l){return t.bottom<=u?!1:t.top>u?!0:(l?t.left:t.right)>i}function fo(t,i,u,l,f){f-=Ci(i);var g=Ti(t,i),S=Cl(i),T=0,L=i.text.length,V=!0,le=st(i,t.doc.direction);if(le){var de=(t.options.lineWrapping?vf:hf)(t,i,u,g,le,l,f);V=de.level!=1,T=V?de.from:de.to-1,L=V?de.to:de.from-1}var Se=null,me=null,Ie=Ot(function(yt){var ht=ai(t,g,yt);return ht.top+=S,ht.bottom+=S,Pa(ht,l,f,!1)?(ht.top<=f&&ht.left<=l&&(Se=yt,me=ht),!0):!1},T,L),Me,$e,Qe=!1;if(me){var _e=l-me.left<me.right-l,Xe=_e==V;Ie=Se+(Xe?0:1),$e=Xe?"after":"before",Me=_e?me.left:me.right}else{!V&&(Ie==L||Ie==T)&&Ie++,$e=Ie==0?"after":Ie==i.text.length?"before":ai(t,g,Ie-(V?1:0)).bottom+S<=f==V?"after":"before";var et=$n(t,D(u,Ie,$e),"line",i,g);Me=et.left,Qe=f<et.top?-1:f>=et.bottom?1:0}return Ie=Lt(i.text,Ie,1),El(u,Ie,$e,Qe,l-Me)}function hf(t,i,u,l,f,g,S){var T=Ot(function(de){var Se=f[de],me=Se.level!=1;return Pa($n(t,D(u,me?Se.to:Se.from,me?"before":"after"),"line",i,l),g,S,!0)},0,f.length-1),L=f[T];if(T>0){var V=L.level!=1,le=$n(t,D(u,V?L.from:L.to,V?"after":"before"),"line",i,l);Pa(le,g,S,!0)&&le.top>S&&(L=f[T-1])}return L}function vf(t,i,u,l,f,g,S){var T=hs(t,i,l,S),L=T.begin,V=T.end;/\s/.test(i.text.charAt(V-1))&&V--;for(var le=null,de=null,Se=0;Se<f.length;Se++){var me=f[Se];if(!(me.from>=V||me.to<=L)){var Ie=me.level!=1,Me=ai(t,l,Ie?Math.min(V,me.to)-1:Math.max(L,me.from)).right,$e=Me<g?g-Me+1e9:Me-g;(!le||de>$e)&&(le=me,de=$e)}}return le||(le=f[f.length-1]),le.from<L&&(le={from:L,to:le.to,level:le.level}),le.to>V&&(le={from:le.from,to:V,level:le.level}),le}var ea;function Ia(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(ea==null){ea=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ea.appendChild(document.createTextNode("x")),ea.appendChild(_("br"));ea.appendChild(document.createTextNode("x"))}he(t.measure,ea);var u=ea.offsetHeight/50;return u>3&&(t.cachedTextHeight=u),ce(t.measure),u||1}function oi(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var i=_("span","xxxxxxxxxx"),u=_("pre",[i],"CodeMirror-line-like");he(t.measure,u);var l=i.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(t.cachedCharWidth=f),f||10}function vs(t){for(var i=t.display,u={},l={},f=i.gutters.clientLeft,g=i.gutters.firstChild,S=0;g;g=g.nextSibling,++S){var T=t.display.gutterSpecs[S].className;u[T]=g.offsetLeft+g.clientLeft+f,l[T]=g.clientWidth}return{fixedPos:gs(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function gs(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function ms(t){var i=Ia(t.display),u=t.options.lineWrapping,l=u&&Math.max(5,t.display.scroller.clientWidth/oi(t.display)-3);return function(f){if(Hi(t.doc,f))return 0;var g=0;if(f.widgets)for(var S=0;S<f.widgets.length;S++)f.widgets[S].height&&(g+=f.widgets[S].height);return u?g+(Math.ceil(f.text.length/l)||1)*i:g+i}}function ys(t){var i=t.doc,u=ms(t);i.iter(function(l){var f=u(l);f!=l.height&&kn(l,f)})}function zi(t,i,u,l){var f=t.display;if(!u&&zr(i).getAttribute("cm-not-content")=="true")return null;var g,S,T=f.lineSpace.getBoundingClientRect();try{g=i.clientX-T.left,S=i.clientY-T.top}catch(de){return null}var L=ps(t,g,S),V;if(l&&L.xRel>0&&(V=ut(t.doc,L.line).text).length==L.ch){var le=He(V,V.length,t.options.tabSize)-V.length;L=D(L.line,Math.max(0,Math.round((g-af(t.display).left)/oi(t.display))-le))}return L}function Rn(t,i){if(i>=t.display.viewTo||(i-=t.display.viewFrom,i<0))return null;for(var u=t.display.view,l=0;l<u.length;l++)if(i-=u[l].size,i<0)return l}function dn(t,i,u,l){i==null&&(i=t.doc.first),u==null&&(u=t.doc.first+t.doc.size),l||(l=0);var f=t.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>i)&&(f.updateLineNumbers=i),t.curOp.viewChanged=!0,i>=f.viewTo)Ai&&ul(t.doc,i)<f.viewTo&&Pi(t);else if(u<=f.viewFrom)Ai&&Qu(t.doc,u+l)>f.viewFrom?Pi(t):(f.viewFrom+=l,f.viewTo+=l);else if(i<=f.viewFrom&&u>=f.viewTo)Pi(t);else if(i<=f.viewFrom){var g=co(t,u,u+l,1);g?(f.view=f.view.slice(g.index),f.viewFrom=g.lineN,f.viewTo+=l):Pi(t)}else if(u>=f.viewTo){var S=co(t,i,i,-1);S?(f.view=f.view.slice(0,S.index),f.viewTo=S.lineN):Pi(t)}else{var T=co(t,i,i,-1),L=co(t,u,u+l,1);T&&L?(f.view=f.view.slice(0,T.index).concat(us(t,T.lineN,L.lineN)).concat(f.view.slice(L.index)),f.viewTo+=l):Pi(t)}var V=f.externalMeasured;V&&(u<V.lineN?V.lineN+=l:i<V.lineN+V.size&&(f.externalMeasured=null))}function Gi(t,i,u){t.curOp.viewChanged=!0;var l=t.display,f=t.display.externalMeasured;if(f&&i>=f.lineN&&i<f.lineN+f.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[Rn(t,i)];if(g.node!=null){var S=g.changes||(g.changes=[]);Te(S,u)==-1&&S.push(u)}}}function Pi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function co(t,i,u,l){var f=Rn(t,i),g,S=t.display.view;if(!Ai||u==t.doc.first+t.doc.size)return{index:f,lineN:u};for(var T=t.display.viewFrom,L=0;L<f;L++)T+=S[L].size;if(T!=i){if(l>0){if(f==S.length-1)return null;g=T+S[f].size-i,f++}else g=T-i;i+=g,u+=g}for(;ul(t.doc,u)!=u;){if(f==(l<0?0:S.length-1))return null;u+=l*S[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function Gc(t,i,u){var l=t.display,f=l.view;f.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=us(t,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=us(t,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Rn(t,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(us(t,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Rn(t,u)))),l.viewTo=u}function Ol(t){for(var i=t.display.view,u=0,l=0;l<i.length;l++){var f=i[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function po(t){t.display.input.showSelection(t.display.input.prepareSelection())}function gf(t,i){i===void 0&&(i=!0);var u=t.doc,l={},f=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),S=t.options.$customCursor;S&&(i=!0);for(var T=0;T<u.sel.ranges.length;T++)if(!(!i&&T==u.sel.primIndex)){var L=u.sel.ranges[T];if(!(L.from().line>=t.display.viewTo||L.to().line<t.display.viewFrom)){var V=L.empty();if(S){var le=S(t,L);le&&bs(t,le,f)}else(V||t.options.showCursorWhenSelecting)&&bs(t,L.head,f);V||$c(t,L,g)}}return l}function bs(t,i,u){var l=$n(t,i,"div",null,null,!t.options.singleCursorHeightPerLine),f=u.appendChild(_("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var g=ds(t,i,"div",null,null),S=g.right-g.left;f.style.width=(S>0?S:t.defaultCharWidth())+"px"}if(l.other){var T=u.appendChild(_("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));T.style.display="",T.style.left=l.other.left+"px",T.style.top=l.other.top+"px",T.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function xs(t,i){return t.top-i.top||t.left-i.left}function $c(t,i,u){var l=t.display,f=t.doc,g=document.createDocumentFragment(),S=af(t.display),T=S.left,L=Math.max(l.sizerWidth,Oi(t)-l.sizer.offsetLeft)-S.right,V=f.direction=="ltr";function le(Xe,et,yt,ht){et<0&&(et=0),et=Math.round(et),ht=Math.round(ht),g.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+Xe+`px;
|
|
18
|
+
top: `+et+"px; width: "+(yt==null?L-Xe:yt)+`px;
|
|
19
|
+
height: `+(ht-et)+"px"))}function de(Xe,et,yt){var ht=ut(f,Xe),Bt=ht.text.length,fr,Wt;function wr(Dt,St){return ds(t,D(Xe,Dt),"div",ht,St)}function xn(Dt,St,Ir){var vr=pf(t,ht,null,Dt),Cr=St=="ltr"==(Ir=="after")?"left":"right",br=Ir=="after"?vr.begin:vr.end-(/\s/.test(ht.text.charAt(vr.end-1))?2:1);return wr(br,Cr)[Cr]}var M=st(ht,f.direction);return kt(M,et||0,yt==null?Bt:yt,function(Dt,St,Ir,vr){var Cr=Ir=="ltr",br=wr(Dt,Cr?"left":"right"),hn=wr(St-1,Cr?"right":"left"),ha=et==null&&Dt==0,Li=yt==null&&St==Bt,Rr=vr==0,ci=!M||vr==M.length-1;if(hn.top-br.top<=3){var Lr=(V?ha:Li)&&Rr,$s=(V?Li:ha)&&ci,di=Lr?T:(Cr?br:hn).left,va=$s?L:(Cr?hn:br).right;le(di,br.top,va-di,br.bottom)}else{var Yi,It,Vt,nn;Cr?(Yi=V&&ha&&Rr?T:br.left,It=V?L:xn(Dt,Ir,"before"),Vt=V?T:xn(St,Ir,"after"),nn=V&&Li&&ci?L:hn.right):(Yi=V?xn(Dt,Ir,"before"):T,It=!V&&ha&&Rr?L:br.right,Vt=!V&&Li&&ci?T:hn.left,nn=V?xn(St,Ir,"after"):L),le(Yi,br.top,It-Yi,br.bottom),br.bottom<hn.top&&le(T,br.bottom,null,hn.top),le(Vt,hn.top,nn-Vt,hn.bottom)}(!fr||xs(br,fr)<0)&&(fr=br),xs(hn,fr)<0&&(fr=hn),(!Wt||xs(br,Wt)<0)&&(Wt=br),xs(hn,Wt)<0&&(Wt=hn)}),{start:fr,end:Wt}}var Se=i.from(),me=i.to();if(Se.line==me.line)de(Se.line,Se.ch,me.ch);else{var Ie=ut(f,Se.line),Me=ut(f,me.line),$e=Gr(Ie)==Gr(Me),Qe=de(Se.line,Se.ch,$e?Ie.text.length+1:null).end,_e=de(me.line,$e?0:null,me.ch).start;$e&&(Qe.top<_e.top-2?(le(Qe.right,Qe.top,null,Qe.bottom),le(T,_e.top,_e.left,_e.bottom)):le(Qe.right,Qe.top,_e.left-Qe.right,Qe.bottom)),Qe.bottom<_e.top&&le(T,Qe.bottom,null,_e.top)}u.appendChild(g)}function Ss(t){if(!!t.state.focused){var i=t.display;clearInterval(i.blinker);var u=!0;i.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?i.blinker=setInterval(function(){t.hasFocus()||ka(t),i.cursorDiv.style.visibility=(u=!u)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function si(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||ho(t))}function Tl(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&ka(t))},100)}function ho(t,i){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Ve(t,"focus",t,i),t.state.focused=!0,je(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),W&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Ss(t))}function ka(t,i){t.state.delayingBlurEvent||(t.state.focused&&(Ve(t,"blur",t,i),t.state.focused=!1,z(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function ws(t){for(var i=t.display,u=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),f=i.lineDiv.getBoundingClientRect().top,g=0,S=0;S<i.view.length;S++){var T=i.view[S],L=t.options.lineWrapping,V=void 0,le=0;if(!T.hidden){if(f+=T.line.height,E&&F<8){var de=T.node.offsetTop+T.node.offsetHeight;V=de-u,u=de}else{var Se=T.node.getBoundingClientRect();V=Se.bottom-Se.top,!L&&T.text.firstChild&&(le=T.text.firstChild.getBoundingClientRect().right-Se.left-1)}var me=T.line.height-V;if((me>.005||me<-.005)&&(f<l&&(g-=me),kn(T.line,V),mf(T.line),T.rest))for(var Ie=0;Ie<T.rest.length;Ie++)mf(T.rest[Ie]);if(le>t.display.sizerWidth){var Me=Math.ceil(le/oi(t.display));Me>t.display.maxLineLength&&(t.display.maxLineLength=Me,t.display.maxLine=T.line,t.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function mf(t){if(t.widgets)for(var i=0;i<t.widgets.length;++i){var u=t.widgets[i],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function Fa(t,i,u){var l=u&&u.top!=null?Math.max(0,u.top):t.scroller.scrollTop;l=Math.floor(l-fs(t));var f=u&&u.bottom!=null?u.bottom:l+t.wrapper.clientHeight,g=wi(i,l),S=wi(i,f);if(u&&u.ensure){var T=u.ensure.from.line,L=u.ensure.to.line;T<g?(g=T,S=wi(i,Ci(ut(i,T))+t.wrapper.clientHeight)):Math.min(L,i.lastLine())>=S&&(g=wi(i,Ci(ut(i,L))-t.wrapper.clientHeight),S=L)}return{from:g,to:Math.max(S,g+1)}}function Kc(t,i){if(!lt(t,"scrollCursorIntoView")){var u=t.display,l=u.sizer.getBoundingClientRect(),f=null,g=u.wrapper.ownerDocument;if(i.top+l.top<0?f=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(f=!1),f!=null&&!P){var S=_("div","\u200B",null,`position: absolute;
|
|
20
|
+
top: `+(i.top-u.viewOffset-fs(t.display))+`px;
|
|
21
|
+
height: `+(i.bottom-i.top+ii(t)+u.barHeight)+`px;
|
|
22
|
+
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");t.display.lineSpace.appendChild(S),S.scrollIntoView(f),t.display.lineSpace.removeChild(S)}}}function Yc(t,i,u,l){l==null&&(l=0);var f;!t.options.lineWrapping&&i==u&&(u=i.sticky=="before"?D(i.line,i.ch+1,"before"):i,i=i.ch?D(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var S=!1,T=$n(t,i),L=!u||u==i?T:$n(t,u);f={left:Math.min(T.left,L.left),top:Math.min(T.top,L.top)-l,right:Math.max(T.left,L.left),bottom:Math.max(T.bottom,L.bottom)+l};var V=Pl(t,f),le=t.doc.scrollTop,de=t.doc.scrollLeft;if(V.scrollTop!=null&&(go(t,V.scrollTop),Math.abs(t.doc.scrollTop-le)>1&&(S=!0)),V.scrollLeft!=null&&(ta(t,V.scrollLeft),Math.abs(t.doc.scrollLeft-de)>1&&(S=!0)),!S)break}return f}function Jc(t,i){var u=Pl(t,i);u.scrollTop!=null&&go(t,u.scrollTop),u.scrollLeft!=null&&ta(t,u.scrollLeft)}function Pl(t,i){var u=t.display,l=Ia(t.display);i.top<0&&(i.top=0);var f=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:u.scroller.scrollTop,g=bl(t),S={};i.bottom-i.top>g&&(i.bottom=i.top+g);var T=t.doc.height+yl(u),L=i.top<l,V=i.bottom>T-l;if(i.top<f)S.scrollTop=L?0:i.top;else if(i.bottom>f+g){var le=Math.min(i.top,(V?T:i.bottom)-g);le!=f&&(S.scrollTop=le)}var de=t.options.fixedGutter?0:u.gutters.offsetWidth,Se=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:u.scroller.scrollLeft-de,me=Oi(t)-u.gutters.offsetWidth,Ie=i.right-i.left>me;return Ie&&(i.right=i.left+me),i.left<10?S.scrollLeft=0:i.left<Se?S.scrollLeft=Math.max(0,i.left+de-(Ie?0:10)):i.right>me+Se-3&&(S.scrollLeft=i.right+(Ie?0:10)-me),S}function Il(t,i){i!=null&&(As(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+i)}function Ra(t){As(t);var i=t.getCursor();t.curOp.scrollToPos={from:i,to:i,margin:t.options.cursorScrollMargin}}function vo(t,i,u){(i!=null||u!=null)&&As(t),i!=null&&(t.curOp.scrollLeft=i),u!=null&&(t.curOp.scrollTop=u)}function Xc(t,i){As(t),t.curOp.scrollToPos=i}function As(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var u=Ta(t,i.from),l=Ta(t,i.to);yf(t,u,l,i.margin)}}function yf(t,i,u,l){var f=Pl(t,{left:Math.min(i.left,u.left),top:Math.min(i.top,u.top)-l,right:Math.max(i.right,u.right),bottom:Math.max(i.bottom,u.bottom)+l});vo(t,f.scrollLeft,f.scrollTop)}function go(t,i){Math.abs(t.doc.scrollTop-i)<2||(d||Nl(t,{top:i}),bf(t,i,!0),d&&Nl(t),bo(t,100))}function bf(t,i,u){i=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,i)),!(t.display.scroller.scrollTop==i&&!u)&&(t.doc.scrollTop=i,t.display.scrollbars.setScrollTop(i),t.display.scroller.scrollTop!=i&&(t.display.scroller.scrollTop=i))}function ta(t,i,u,l){i=Math.max(0,Math.min(i,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((u?i==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-i)<2)&&!l)&&(t.doc.scrollLeft=i,Sf(t),t.display.scroller.scrollLeft!=i&&(t.display.scroller.scrollLeft=i),t.display.scrollbars.setScrollLeft(i))}function mo(t){var i=t.display,u=i.gutters.offsetWidth,l=Math.round(t.doc.height+yl(t.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:t.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+ii(t)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var ra=function(t,i,u){this.cm=u;var l=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,t(l),t(f),fe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),fe(f,"scroll",function(){f.clientWidth&&i(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,E&&F<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ra.prototype.update=function(t){var i=t.scrollWidth>t.clientWidth+1,u=t.scrollHeight>t.clientHeight+1,l=t.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var f=t.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=t.barLeft+"px";var g=t.viewWidth-t.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:i?l:0}},ra.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ra.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ra.prototype.zeroWidthHack=function(){var t=k&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Pe,this.disableVert=new Pe},ra.prototype.enableZeroWidthBar=function(t,i,u){t.style.visibility="";function l(){var f=t.getBoundingClientRect(),g=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);g!=t?t.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},ra.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var La=function(){};La.prototype.update=function(){return{bottom:0,right:0}},La.prototype.setScrollLeft=function(){},La.prototype.setScrollTop=function(){},La.prototype.clear=function(){};function Ma(t,i){i||(i=mo(t));var u=t.display.barWidth,l=t.display.barHeight;kl(t,i);for(var f=0;f<4&&u!=t.display.barWidth||l!=t.display.barHeight;f++)u!=t.display.barWidth&&t.options.lineWrapping&&ws(t),kl(t,mo(t)),u=t.display.barWidth,l=t.display.barHeight}function kl(t,i){var u=t.display,l=u.scrollbars.update(i);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=i.gutterWidth+"px"):u.gutterFiller.style.display=""}var yo={native:ra,null:La};function Fl(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&z(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new yo[t.options.scrollbarStyle](function(i){t.display.wrapper.insertBefore(i,t.display.scrollbarFiller),fe(i,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,u){u=="horizontal"?ta(t,i):go(t,i)},t),t.display.scrollbars.addClass&&je(t.display.wrapper,t.display.scrollbars.addClass)}var Qc=0;function na(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Qc,markArrays:null},Nc(t.curOp)}function ia(t){var i=t.curOp;i&&ef(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;aa(u)})}function aa(t){for(var i=t.ops,u=0;u<i.length;u++)Zc(i[u]);for(var l=0;l<i.length;l++)Kn(i[l]);for(var f=0;f<i.length;f++)_c(i[f]);for(var g=0;g<i.length;g++)qc(i[g]);for(var S=0;S<i.length;S++)Na(i[S])}function Zc(t){var i=t.cm,u=i.display;Cs(i),t.updateMaxLine&&ss(i),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<u.viewFrom||t.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&i.options.lineWrapping,t.update=t.mustUpdate&&new Da(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Kn(t){t.updatedDisplay=t.mustUpdate&&Ll(t.cm,t.update)}function _c(t){var i=t.cm,u=i.display;t.updatedDisplay&&ws(i),t.barMeasure=mo(i),u.maxLineChanged&&!i.options.lineWrapping&&(t.adjustWidthTo=xl(i,u.maxLine,u.maxLine.text.length).left+3,i.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+t.adjustWidthTo+ii(i)+i.display.barWidth),t.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+t.adjustWidthTo-Oi(i))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=u.input.prepareSelection())}function qc(t){var i=t.cm;t.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<i.doc.scrollLeft&&ta(i,Math.min(i.display.scroller.scrollLeft,t.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=t.focus&&t.focus==ke(tt(i));t.preparedSelection&&i.display.input.showSelection(t.preparedSelection,u),(t.updatedDisplay||t.startHeight!=i.doc.height)&&Ma(i,t.barMeasure),t.updatedDisplay&&Es(i,t.barMeasure),t.selectionChanged&&Ss(i),i.state.focused&&t.updateInput&&i.display.input.reset(t.typing),u&&si(t.cm)}function Na(t){var i=t.cm,u=i.display,l=i.doc;if(t.updatedDisplay&&Ml(i,t.update),u.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),t.scrollTop!=null&&bf(i,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&ta(i,t.scrollLeft,!0,!0),t.scrollToPos){var f=Yc(i,ft(l,t.scrollToPos.from),ft(l,t.scrollToPos.to),t.scrollToPos.margin);Kc(i,f)}var g=t.maybeHiddenMarkers,S=t.maybeUnhiddenMarkers;if(g)for(var T=0;T<g.length;++T)g[T].lines.length||Ve(g[T],"hide");if(S)for(var L=0;L<S.length;++L)S[L].lines.length&&Ve(S[L],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),t.changeObjs&&Ve(i,"changes",i,t.changeObjs),t.update&&t.update.finish()}function tn(t,i){if(t.curOp)return i();na(t);try{return i()}finally{ia(t)}}function jr(t,i){return function(){if(t.curOp)return i.apply(t,arguments);na(t);try{return i.apply(t,arguments)}finally{ia(t)}}}function rn(t){return function(){if(this.curOp)return t.apply(this,arguments);na(this);try{return t.apply(this,arguments)}finally{ia(this)}}}function Vr(t){return function(){var i=this.cm;if(!i||i.curOp)return t.apply(this,arguments);na(i);try{return t.apply(this,arguments)}finally{ia(i)}}}function bo(t,i){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(i,Ne(ed,t))}function ed(t){var i=t.doc;if(!(i.highlightFrontier>=t.display.viewTo)){var u=+new Date+t.options.workTime,l=to(t,i.highlightFrontier),f=[];i.iter(l.line,Math.min(i.first+i.size,t.display.viewTo+500),function(g){if(l.line>=t.display.viewFrom){var S=g.styles,T=g.text.length>t.options.maxHighlightLength?In(i.mode,l.state):null,L=_o(t,g,l,!0);T&&(l.state=T),g.styles=L.styles;var V=g.styleClasses,le=L.classes;le?g.styleClasses=le:V&&(g.styleClasses=null);for(var de=!S||S.length!=g.styles.length||V!=le&&(!V||!le||V.bgClass!=le.bgClass||V.textClass!=le.textClass),Se=0;!de&&Se<S.length;++Se)de=S[Se]!=g.styles[Se];de&&f.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=t.options.maxHighlightLength&&il(t,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return bo(t,t.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),f.length&&tn(t,function(){for(var g=0;g<f.length;g++)Gi(t,f[g],"text")})}}var Da=function(t,i,u){var l=t.display;this.viewport=i,this.visible=Fa(l,t.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Oi(t),this.force=u,this.dims=vs(t),this.events=[]};Da.prototype.signal=function(t,i){Mt(t,i)&&this.events.push(arguments)},Da.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ve.apply(null,this.events[t])};function Cs(t){var i=t.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=ii(t)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=ii(t)+"px",i.scrollbarsClipped=!0)}function Rl(t){if(t.hasFocus())return null;var i=ke(tt(t));if(!i||!ye(t.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=bt(t).getSelection();l.anchorNode&&l.extend&&ye(t.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function td(t){if(!(!t||!t.activeElt||t.activeElt==ke(t.activeElt.ownerDocument))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ye(document.body,t.anchorNode)&&ye(document.body,t.focusNode))){var i=t.activeElt.ownerDocument,u=i.defaultView.getSelection(),l=i.createRange();l.setEnd(t.anchorNode,t.anchorOffset),l.collapse(!1),u.removeAllRanges(),u.addRange(l),u.extend(t.focusNode,t.focusOffset)}}function Ll(t,i){var u=t.display,l=t.doc;if(i.editorIsHidden)return Pi(t),!1;if(!i.force&&i.visible.from>=u.viewFrom&&i.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Ol(t)==0)return!1;wf(t)&&(Pi(t),i.dims=vs(t));var f=l.first+l.size,g=Math.max(i.visible.from-t.options.viewportMargin,l.first),S=Math.min(f,i.visible.to+t.options.viewportMargin);u.viewFrom<g&&g-u.viewFrom<20&&(g=Math.max(l.first,u.viewFrom)),u.viewTo>S&&u.viewTo-S<20&&(S=Math.min(f,u.viewTo)),Ai&&(g=ul(t.doc,g),S=Qu(t.doc,S));var T=g!=u.viewFrom||S!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;Gc(t,g,S),u.viewOffset=Ci(ut(t.doc,u.viewFrom)),t.display.mover.style.top=u.viewOffset+"px";var L=Ol(t);if(!T&&L==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var V=Rl(t);return L>4&&(u.lineDiv.style.display="none"),xf(t,u.updateLineNumbers,i.dims),L>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,td(V),ce(u.cursorDiv),ce(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,T&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,bo(t,400)),u.updateLineNumbers=null,!0}function Ml(t,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!t.options.lineWrapping||i.oldDisplayWidth==Oi(t)){if(u&&u.top!=null&&(u={top:Math.min(t.doc.height+yl(t.display)-bl(t),u.top)}),i.visible=Fa(t.display,t.doc,u),i.visible.from>=t.display.viewFrom&&i.visible.to<=t.display.viewTo)break}else l&&(i.visible=Fa(t.display,t.doc,u));if(!Ll(t,i))break;ws(t);var f=mo(t);po(t),Ma(t,f),Es(t,f),i.force=!1}i.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(i.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Nl(t,i){var u=new Da(t,i);if(Ll(t,u)){ws(t),Ml(t,u);var l=mo(t);po(t),Ma(t,l),Es(t,l),u.finish()}}function xf(t,i,u){var l=t.display,f=t.options.lineNumbers,g=l.lineDiv,S=g.firstChild;function T(Ie){var Me=Ie.nextSibling;return W&&k&&t.display.currentWheelTarget==Ie?Ie.style.display="none":Ie.parentNode.removeChild(Ie),Me}for(var L=l.view,V=l.viewFrom,le=0;le<L.length;le++){var de=L[le];if(!de.hidden)if(!de.node||de.node.parentNode!=g){var Se=nf(t,de,V,u);g.insertBefore(Se,S)}else{for(;S!=de.node;)S=T(S);var me=f&&i!=null&&i<=V&&de.lineNumber;de.changes&&(Te(de.changes,"gutter")>-1&&(me=!1),tf(t,de,V,u)),me&&(ce(de.lineNumber),de.lineNumber.appendChild(document.createTextNode(Aa(t.options,V)))),S=de.node.nextSibling}V+=de.size}for(;S;)S=T(S)}function xo(t){var i=t.gutters.offsetWidth;t.sizer.style.marginLeft=i+"px",Br(t,"gutterChanged",t)}function Es(t,i){t.display.sizer.style.minHeight=i.docHeight+"px",t.display.heightForcer.style.top=i.docHeight+"px",t.display.gutters.style.height=i.docHeight+t.display.barHeight+ii(t)+"px"}function Sf(t){var i=t.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!t.options.fixedGutter))){for(var l=gs(i)-i.scroller.scrollLeft+t.doc.scrollLeft,f=i.gutters.offsetWidth,g=l+"px",S=0;S<u.length;S++)if(!u[S].hidden){t.options.fixedGutter&&(u[S].gutter&&(u[S].gutter.style.left=g),u[S].gutterBackground&&(u[S].gutterBackground.style.left=g));var T=u[S].alignable;if(T)for(var L=0;L<T.length;L++)T[L].style.left=g}t.options.fixedGutter&&(i.gutters.style.left=l+f+"px")}}function wf(t){if(!t.options.lineNumbers)return!1;var i=t.doc,u=Aa(t.options,i.first+i.size-1),l=t.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(_("div",[_("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=f.firstChild.offsetWidth,S=f.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-S)+1,l.lineNumWidth=l.lineNumInnerWidth+S,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",xo(t.display),!0}return!1}function Os(t,i){for(var u=[],l=!1,f=0;f<t.length;f++){var g=t[f],S=null;if(typeof g!="string"&&(S=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;u.push({className:g,style:S})}return i&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Dl(t){var i=t.gutters,u=t.gutterSpecs;ce(i),t.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],g=f.className,S=f.style,T=i.appendChild(_("div",null,"CodeMirror-gutter "+g));S&&(T.style.cssText=S),g=="CodeMirror-linenumbers"&&(t.lineGutter=T,T.style.width=(t.lineNumWidth||1)+"px")}i.style.display=u.length?"":"none",xo(t)}function So(t){Dl(t.display),dn(t),Sf(t)}function Af(t,i,u,l){var f=this;this.input=u,f.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=Q("div",null,"CodeMirror-code"),f.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=_("div",null,"CodeMirror-cursors"),f.measure=_("div",null,"CodeMirror-measure"),f.lineMeasure=_("div",null,"CodeMirror-measure"),f.lineSpace=Q("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var g=Q("div",[f.lineSpace],"CodeMirror-lines");f.mover=_("div",[g],null,"position: relative"),f.sizer=_("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=_("div",null,null,"position: absolute; height: "+Ye+"px; width: 1px;"),f.gutters=_("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=_("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=_("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),ee&&ue>=105&&(f.wrapper.style.clipPath="inset(0px)"),f.wrapper.setAttribute("translate","no"),E&&F<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!W&&!(d&&C)&&(f.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(f.wrapper):t(f.wrapper)),f.viewFrom=f.viewTo=i.first,f.reportedViewFrom=f.reportedViewTo=i.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Os(l.gutters,l.lineNumbers),Dl(f),u.init(f)}var wo=0,Ii=null;E?Ii=-.53:d?Ii=15:ee?Ii=-.7:ae&&(Ii=-1/3);function Bl(t){var i=t.wheelDeltaX,u=t.wheelDeltaY;return i==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(i=t.detail),u==null&&t.detail&&t.axis==t.VERTICAL_AXIS?u=t.detail:u==null&&(u=t.wheelDelta),{x:i,y:u}}function Cf(t){var i=Bl(t);return i.x*=Ii,i.y*=Ii,i}function jl(t,i){ee&&ue==102&&(t.display.chromeScrollHack==null?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var u=Bl(i),l=u.x,f=u.y,g=Ii;i.deltaMode===0&&(l=i.deltaX,f=i.deltaY,g=1);var S=t.display,T=S.scroller,L=T.scrollWidth>T.clientWidth,V=T.scrollHeight>T.clientHeight;if(!!(l&&L||f&&V)){if(f&&k&&W){e:for(var le=i.target,de=S.view;le!=T;le=le.parentNode)for(var Se=0;Se<de.length;Se++)if(de[Se].node==le){t.display.currentWheelTarget=le;break e}}if(l&&!d&&!ne&&g!=null){f&&V&&go(t,Math.max(0,T.scrollTop+f*g)),ta(t,Math.max(0,T.scrollLeft+l*g)),(!f||f&&V)&&Nt(i),S.wheelStartX=null;return}if(f&&g!=null){var me=f*g,Ie=t.doc.scrollTop,Me=Ie+S.wrapper.clientHeight;me<0?Ie=Math.max(0,Ie+me-50):Me=Math.min(t.doc.height,Me+me+50),Nl(t,{top:Ie,bottom:Me})}wo<20&&i.deltaMode!==0&&(S.wheelStartX==null?(S.wheelStartX=T.scrollLeft,S.wheelStartY=T.scrollTop,S.wheelDX=l,S.wheelDY=f,setTimeout(function(){if(S.wheelStartX!=null){var $e=T.scrollLeft-S.wheelStartX,Qe=T.scrollTop-S.wheelStartY,_e=Qe&&S.wheelDY&&Qe/S.wheelDY||$e&&S.wheelDX&&$e/S.wheelDX;S.wheelStartX=S.wheelStartY=null,_e&&(Ii=(Ii*wo+_e)/(wo+1),++wo)}},200)):(S.wheelDX+=l,S.wheelDY+=f))}}var On=function(t,i){this.ranges=t,this.primIndex=i};On.prototype.primary=function(){return this.ranges[this.primIndex]},On.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var u=this.ranges[i],l=t.ranges[i];if(!Re(u.anchor,l.anchor)||!Re(u.head,l.head))return!1}return!0},On.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new qt(Ge(this.ranges[i].anchor),Ge(this.ranges[i].head));return new On(t,this.primIndex)},On.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},On.prototype.contains=function(t,i){i||(i=t);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(oe(i,l.from())>=0&&oe(t,l.to())<=0)return u}return-1};var qt=function(t,i){this.anchor=t,this.head=i};qt.prototype.from=function(){return Ht(this.anchor,this.head)},qt.prototype.to=function(){return Pt(this.anchor,this.head)},qt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Yn(t,i,u){var l=t&&t.options.selectionsMayTouch,f=i[u];i.sort(function(Se,me){return oe(Se.from(),me.from())}),u=Te(i,f);for(var g=1;g<i.length;g++){var S=i[g],T=i[g-1],L=oe(T.to(),S.from());if(l&&!S.empty()?L>0:L>=0){var V=Ht(T.from(),S.from()),le=Pt(T.to(),S.to()),de=T.empty()?S.from()==S.head:T.from()==T.head;g<=u&&--u,i.splice(--g,2,new qt(de?le:V,de?V:le))}}return new On(i,u)}function yn(t,i){return new On([new qt(t,i||t)],0)}function $i(t){return t.text?D(t.from.line+t.text.length-1,Je(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Ef(t,i){if(oe(t,i.from)<0)return t;if(oe(t,i.to)<=0)return $i(i);var u=t.line+i.text.length-(i.to.line-i.from.line)-1,l=t.ch;return t.line==i.to.line&&(l+=$i(i).ch-i.to.ch),D(u,l)}function Vl(t,i){for(var u=[],l=0;l<t.sel.ranges.length;l++){var f=t.sel.ranges[l];u.push(new qt(Ef(f.anchor,i),Ef(f.head,i)))}return Yn(t.cm,u,t.sel.primIndex)}function Of(t,i,u){return t.line==i.line?D(u.line,t.ch-i.ch+u.ch):D(u.line+(t.line-i.line),t.ch)}function Ts(t,i,u){for(var l=[],f=D(t.first,0),g=f,S=0;S<i.length;S++){var T=i[S],L=Of(T.from,f,g),V=Of($i(T),f,g);if(f=T.to,g=V,u=="around"){var le=t.sel.ranges[S],de=oe(le.head,le.anchor)<0;l[S]=new qt(de?V:L,de?L:V)}else l[S]=new qt(L,L)}return new On(l,t.sel.primIndex)}function Ao(t){t.doc.mode=cn(t.options,t.doc.modeOption),Kr(t)}function Kr(t){t.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,bo(t,100),t.state.modeGen++,t.curOp&&dn(t)}function Ps(t,i){return i.from.ch==0&&i.to.ch==0&&Je(i.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Jn(t,i,u,l){function f(_e){return u?u[_e]:null}function g(_e,Xe,et){Mc(_e,Xe,et,l),Br(_e,"change",_e,i)}function S(_e,Xe){for(var et=[],yt=_e;yt<Xe;++yt)et.push(new Gn(V[yt],f(yt),l));return et}var T=i.from,L=i.to,V=i.text,le=ut(t,T.line),de=ut(t,L.line),Se=Je(V),me=f(V.length-1),Ie=L.line-T.line;if(i.full)t.insert(0,S(0,V.length)),t.remove(V.length,t.size-V.length);else if(Ps(t,i)){var Me=S(0,V.length-1);g(de,de.text,me),Ie&&t.remove(T.line,Ie),Me.length&&t.insert(T.line,Me)}else if(le==de)if(V.length==1)g(le,le.text.slice(0,T.ch)+Se+le.text.slice(L.ch),me);else{var $e=S(1,V.length-1);$e.push(new Gn(Se+le.text.slice(L.ch),me,l)),g(le,le.text.slice(0,T.ch)+V[0],f(0)),t.insert(T.line+1,$e)}else if(V.length==1)g(le,le.text.slice(0,T.ch)+V[0]+de.text.slice(L.ch),f(0)),t.remove(T.line+1,Ie);else{g(le,le.text.slice(0,T.ch)+V[0],f(0)),g(de,Se+de.text.slice(L.ch),me);var Qe=S(1,V.length-1);Ie>1&&t.remove(T.line+1,Ie-1),t.insert(T.line+1,Qe)}Br(t,"change",t,i)}function ki(t,i,u){function l(f,g,S){if(f.linked)for(var T=0;T<f.linked.length;++T){var L=f.linked[T];if(L.doc!=g){var V=S&&L.sharedHist;u&&!V||(i(L.doc,V),l(L.doc,f,V))}}}l(t,null,!0)}function Ul(t,i){if(i.cm)throw new Error("This document is already in use.");t.doc=i,i.cm=t,ys(t),Ao(t),rd(t),t.options.direction=i.direction,t.options.lineWrapping||ss(t),t.options.mode=i.modeOption,dn(t)}function rd(t){(t.doc.direction=="rtl"?je:z)(t.display.lineDiv,"CodeMirror-rtl")}function Wl(t){tn(t,function(){rd(t),dn(t)})}function Co(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function Is(t,i){var u={from:Ge(i.from),to:$i(i),text:Si(t,i.from,i.to)};return Fi(t,u,i.from.line,i.to.line+1),ki(t,function(l){return Fi(l,u,i.from.line,i.to.line+1)},!0),u}function Sr(t){for(;t.length;){var i=Je(t);if(i.ranges)t.pop();else break}}function nd(t,i){if(i)return Sr(t.done),Je(t.done);if(t.done.length&&!Je(t.done).ranges)return Je(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),Je(t.done)}function oa(t,i,u,l){var f=t.history;f.undone.length=0;var g=+new Date,S,T;if((f.lastOp==l||f.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&f.lastModTime>g-(t.cm?t.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(S=nd(f,f.lastOp==l)))T=Je(S.changes),oe(i.from,i.to)==0&&oe(i.from,T.to)==0?T.to=$i(i):S.changes.push(Is(t,i));else{var L=Je(f.done);for((!L||!L.ranges)&&li(t.sel,f.done),S={changes:[Is(t,i)],generation:f.generation},f.done.push(S);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=g,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=i.origin,T||Ve(t,"historyAdded")}function id(t,i,u,l){var f=i.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function Eo(t,i,u,l){var f=t.history,g=l&&l.origin;u==f.lastSelOp||g&&f.lastSelOrigin==g&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==g||id(t,g,Je(f.done),i))?f.done[f.done.length-1]=i:li(i,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=g,f.lastSelOp=u,l&&l.clearRedo!==!1&&Sr(f.undone)}function li(t,i){var u=Je(i);u&&u.ranges&&u.equals(t)||i.push(t)}function Fi(t,i,u,l){var f=i["spans_"+t.id],g=0;t.iter(Math.max(t.first,u),Math.min(t.first+t.size,l),function(S){S.markedSpans&&((f||(f=i["spans_"+t.id]={}))[g]=S.markedSpans),++g})}function ad(t){if(!t)return null;for(var i,u=0;u<t.length;++u)t[u].marker.explicitlyCleared?i||(i=t.slice(0,u)):i&&i.push(t[u]);return i?i.length?i:null:t}function ks(t,i){var u=i["spans_"+t.id];if(!u)return null;for(var l=[],f=0;f<i.text.length;++f)l.push(ad(u[f]));return l}function Hl(t,i){var u=ks(t,i),l=rs(t,i);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var g=u[f],S=l[f];if(g&&S){e:for(var T=0;T<S.length;++T){for(var L=S[T],V=0;V<g.length;++V)if(g[V].marker==L.marker)continue e;g.push(L)}}else S&&(u[f]=S)}return u}function ui(t,i,u){for(var l=[],f=0;f<t.length;++f){var g=t[f];if(g.ranges){l.push(u?On.prototype.deepCopy.call(g):g);continue}var S=g.changes,T=[];l.push({changes:T});for(var L=0;L<S.length;++L){var V=S[L],le=void 0;if(T.push({from:V.from,to:V.to,text:V.text}),i)for(var de in V)(le=de.match(/^spans_(\d+)$/))&&Te(i,Number(le[1]))>-1&&(Je(T)[de]=V[de],delete V[de])}}return l}function Oo(t,i,u,l){if(l){var f=t.anchor;if(u){var g=oe(i,f)<0;g!=oe(u,f)<0?(f=i,i=u):g!=oe(i,u)<0&&(i=u)}return new qt(f,i)}else return new qt(u||i,i)}function Fs(t,i,u,l,f){f==null&&(f=t.cm&&(t.cm.display.shift||t.extend)),Yr(t,new On([Oo(t.sel.primary(),i,u,f)],0),l)}function Tf(t,i,u){for(var l=[],f=t.cm&&(t.cm.display.shift||t.extend),g=0;g<t.sel.ranges.length;g++)l[g]=Oo(t.sel.ranges[g],i[g],null,f);var S=Yn(t.cm,l,t.sel.primIndex);Yr(t,S,u)}function zl(t,i,u,l){var f=t.sel.ranges.slice(0);f[i]=u,Yr(t,Yn(t.cm,f,t.sel.primIndex),l)}function Pf(t,i,u,l){Yr(t,yn(i,u),l)}function od(t,i,u){var l={ranges:i.ranges,update:function(f){this.ranges=[];for(var g=0;g<f.length;g++)this.ranges[g]=new qt(ft(t,f[g].anchor),ft(t,f[g].head))},origin:u&&u.origin};return Ve(t,"beforeSelectionChange",t,l),t.cm&&Ve(t.cm,"beforeSelectionChange",t.cm,l),l.ranges!=i.ranges?Yn(t.cm,l.ranges,l.ranges.length-1):i}function If(t,i,u){var l=t.history.done,f=Je(l);f&&f.ranges?(l[l.length-1]=i,Ba(t,i,u)):Yr(t,i,u)}function Yr(t,i,u){Ba(t,i,u),Eo(t,t.sel,t.cm?t.cm.curOp.id:NaN,u)}function Ba(t,i,u){(Mt(t,"beforeSelectionChange")||t.cm&&Mt(t.cm,"beforeSelectionChange"))&&(i=od(t,i,u));var l=u&&u.bias||(oe(i.primary().head,t.sel.primary().head)<0?-1:1);Rs(t,sd(t,i,l,!0)),!(u&&u.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Ra(t.cm)}function Rs(t,i){i.equals(t.sel)||(t.sel=i,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,vt(t.cm)),Br(t,"cursorActivity",t))}function kf(t){Rs(t,sd(t,t.sel,null,!1))}function sd(t,i,u,l){for(var f,g=0;g<i.ranges.length;g++){var S=i.ranges[g],T=i.ranges.length==t.sel.ranges.length&&t.sel.ranges[g],L=To(t,S.anchor,T&&T.anchor,u,l),V=S.head==S.anchor?L:To(t,S.head,T&&T.head,u,l);(f||L!=S.anchor||V!=S.head)&&(f||(f=i.ranges.slice(0,g)),f[g]=new qt(L,V))}return f?Yn(t.cm,f,i.primIndex):i}function ja(t,i,u,l,f){var g=ut(t,i.line);if(g.markedSpans)for(var S=0;S<g.markedSpans.length;++S){var T=g.markedSpans[S],L=T.marker,V="selectLeft"in L?!L.selectLeft:L.inclusiveLeft,le="selectRight"in L?!L.selectRight:L.inclusiveRight;if((T.from==null||(V?T.from<=i.ch:T.from<i.ch))&&(T.to==null||(le?T.to>=i.ch:T.to>i.ch))){if(f&&(Ve(L,"beforeCursorEnter"),L.explicitlyCleared))if(g.markedSpans){--S;continue}else break;if(!L.atomic)continue;if(u){var de=L.find(l<0?1:-1),Se=void 0;if((l<0?le:V)&&(de=nr(t,de,-l,de&&de.line==i.line?g:null)),de&&de.line==i.line&&(Se=oe(de,u))&&(l<0?Se<0:Se>0))return ja(t,de,i,l,f)}var me=L.find(l<0?-1:1);return(l<0?V:le)&&(me=nr(t,me,l,me.line==i.line?g:null)),me?ja(t,me,i,l,f):null}}return i}function To(t,i,u,l,f){var g=l||1,S=ja(t,i,u,g,f)||!f&&ja(t,i,u,g,!0)||ja(t,i,u,-g,f)||!f&&ja(t,i,u,-g,!0);return S||(t.cantEdit=!0,D(t.first,0))}function nr(t,i,u,l){return u<0&&i.ch==0?i.line>t.first?ft(t,D(i.line-1)):null:u>0&&i.ch==(l||ut(t,i.line)).text.length?i.line<t.first+t.size-1?D(i.line+1,0):null:new D(i.line,i.ch+u)}function Ff(t){t.setSelection(D(t.firstLine(),0),D(t.lastLine()),jt)}function Gl(t,i,u){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,g,S,T){f&&(l.from=ft(t,f)),g&&(l.to=ft(t,g)),S&&(l.text=S),T!==void 0&&(l.origin=T)}),Ve(t,"beforeChange",t,l),t.cm&&Ve(t.cm,"beforeChange",t.cm,l),l.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function Va(t,i,u){if(t.cm){if(!t.cm.curOp)return jr(t.cm,Va)(t,i,u);if(t.cm.state.suppressEdits)return}if(!((Mt(t,"beforeChange")||t.cm&&Mt(t.cm,"beforeChange"))&&(i=Gl(t,i,!0),!i))){var l=Gu&&!u&&ns(t,i.from,i.to);if(l)for(var f=l.length-1;f>=0;--f)Po(t,{from:l[f].from,to:l[f].to,text:f?[""]:i.text,origin:i.origin});else Po(t,i)}}function Po(t,i){if(!(i.text.length==1&&i.text[0]==""&&oe(i.from,i.to)==0)){var u=Vl(t,i);oa(t,i,u,t.cm?t.cm.curOp.id:NaN),Io(t,i,u,rs(t,i));var l=[];ki(t,function(f,g){!g&&Te(l,f.history)==-1&&(Ms(f.history,i),l.push(f.history)),Io(f,i,null,rs(f,i))})}}function Ls(t,i,u){var l=t.cm&&t.cm.state.suppressEdits;if(!(l&&!u)){for(var f=t.history,g,S=t.sel,T=i=="undo"?f.done:f.undone,L=i=="undo"?f.undone:f.done,V=0;V<T.length&&(g=T[V],!(u?g.ranges&&!g.equals(t.sel):!g.ranges));V++);if(V!=T.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(g=T.pop(),g.ranges){if(li(g,L),u&&!g.equals(t.sel)){Yr(t,g,{clearRedo:!1});return}S=g}else if(l){T.push(g);return}else break;var le=[];li(S,L),L.push({changes:le,generation:f.generation}),f.generation=g.generation||++f.maxGeneration;for(var de=Mt(t,"beforeChange")||t.cm&&Mt(t.cm,"beforeChange"),Se=function(Me){var $e=g.changes[Me];if($e.origin=i,de&&!Gl(t,$e,!1))return T.length=0,{};le.push(Is(t,$e));var Qe=Me?Vl(t,$e):Je(T);Io(t,$e,Qe,Hl(t,$e)),!Me&&t.cm&&t.cm.scrollIntoView({from:$e.from,to:$i($e)});var _e=[];ki(t,function(Xe,et){!et&&Te(_e,Xe.history)==-1&&(Ms(Xe.history,$e),_e.push(Xe.history)),Io(Xe,$e,null,Hl(Xe,$e))})},me=g.changes.length-1;me>=0;--me){var Ie=Se(me);if(Ie)return Ie.v}}}}function Rf(t,i){if(i!=0&&(t.first+=i,t.sel=new On(Ct(t.sel.ranges,function(f){return new qt(D(f.anchor.line+i,f.anchor.ch),D(f.head.line+i,f.head.ch))}),t.sel.primIndex),t.cm)){dn(t.cm,t.first,t.first-i,i);for(var u=t.cm.display,l=u.viewFrom;l<u.viewTo;l++)Gi(t.cm,l,"gutter")}}function Io(t,i,u,l){if(t.cm&&!t.cm.curOp)return jr(t.cm,Io)(t,i,u,l);if(i.to.line<t.first){Rf(t,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>t.lastLine())){if(i.from.line<t.first){var f=i.text.length-1-(t.first-i.from.line);Rf(t,f),i={from:D(t.first,0),to:D(i.to.line+f,i.to.ch),text:[Je(i.text)],origin:i.origin}}var g=t.lastLine();i.to.line>g&&(i={from:i.from,to:D(g,ut(t,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Si(t,i.from,i.to),u||(u=Vl(t,i)),t.cm?ld(t.cm,i,l):Jn(t,i,l),Ba(t,u,jt),t.cantEdit&&To(t,D(t.firstLine(),0))&&(t.cantEdit=!1)}}function ld(t,i,u){var l=t.doc,f=t.display,g=i.from,S=i.to,T=!1,L=g.line;t.options.lineWrapping||(L=Zt(Gr(ut(l,g.line))),l.iter(L,S.line+1,function(me){if(me==f.maxLine)return T=!0,!0})),l.sel.contains(i.from,i.to)>-1&&vt(t),Jn(l,i,u,ms(t)),t.options.lineWrapping||(l.iter(L,g.line+i.text.length,function(me){var Ie=ao(me);Ie>f.maxLineLength&&(f.maxLine=me,f.maxLineLength=Ie,f.maxLineChanged=!0,T=!1)}),T&&(t.curOp.updateMaxLine=!0)),Rc(l,g.line),bo(t,400);var V=i.text.length-(S.line-g.line)-1;i.full?dn(t):g.line==S.line&&i.text.length==1&&!Ps(t.doc,i)?Gi(t,g.line,"text"):dn(t,g.line,S.line+1,V);var le=Mt(t,"changes"),de=Mt(t,"change");if(de||le){var Se={from:g,to:S,text:i.text,removed:i.removed,origin:i.origin};de&&Br(t,"change",t,Se),le&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(Se)}t.display.selForContextMenu=null}function Ua(t,i,u,l,f){var g;l||(l=u),oe(l,u)<0&&(g=[l,u],u=g[0],l=g[1]),typeof i=="string"&&(i=t.splitLines(i)),Va(t,{from:u,to:l,text:i,origin:f})}function Lf(t,i,u,l){u<t.line?t.line+=l:i<t.line&&(t.line=i,t.ch=0)}function $l(t,i,u,l){for(var f=0;f<t.length;++f){var g=t[f],S=!0;if(g.ranges){g.copied||(g=t[f]=g.deepCopy(),g.copied=!0);for(var T=0;T<g.ranges.length;T++)Lf(g.ranges[T].anchor,i,u,l),Lf(g.ranges[T].head,i,u,l);continue}for(var L=0;L<g.changes.length;++L){var V=g.changes[L];if(u<V.from.line)V.from=D(V.from.line+l,V.from.ch),V.to=D(V.to.line+l,V.to.ch);else if(i<=V.to.line){S=!1;break}}S||(t.splice(0,f+1),f=0)}}function Ms(t,i){var u=i.from.line,l=i.to.line,f=i.text.length-(l-u)-1;$l(t.done,u,l,f),$l(t.undone,u,l,f)}function sa(t,i,u,l){var f=i,g=i;return typeof i=="number"?g=ut(t,rr(t,i)):f=Zt(i),f==null?null:(l(g,f)&&t.cm&&Gi(t.cm,f,u),g)}function ko(t){this.lines=t,this.parent=null;for(var i=0,u=0;u<t.length;++u)t[u].parent=this,i+=t[u].height;this.height=i}ko.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,i){for(var u=t,l=t+i;u<l;++u){var f=this.lines[u];this.height-=f.height,Zu(f),Br(f,"delete")}this.lines.splice(t,i)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,i,u){this.height+=u,this.lines=this.lines.slice(0,t).concat(i).concat(this.lines.slice(t));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(t,i,u){for(var l=t+i;t<l;++t)if(u(this.lines[t]))return!0}};function Fo(t){this.children=t;for(var i=0,u=0,l=0;l<t.length;++l){var f=t[l];i+=f.chunkSize(),u+=f.height,f.parent=this}this.size=i,this.height=u,this.parent=null}Fo.prototype={chunkSize:function(){return this.size},removeInner:function(t,i){this.size-=i;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(t<f){var g=Math.min(i,f-t),S=l.height;if(l.removeInner(t,g),this.height-=S-l.height,f==g&&(this.children.splice(u--,1),l.parent=null),(i-=g)==0)break;t=0}else t-=f}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof ko))){var T=[];this.collapse(T),this.children=[new ko(T)],this.children[0].parent=this}},collapse:function(t){for(var i=0;i<this.children.length;++i)this.children[i].collapse(t)},insertInner:function(t,i,u){this.size+=i.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],g=f.chunkSize();if(t<=g){if(f.insertInner(t,i,u),f.lines&&f.lines.length>50){for(var S=f.lines.length%25+25,T=S;T<f.lines.length;){var L=new ko(f.lines.slice(T,T+=25));f.height-=L.height,this.children.splice(++l,0,L),L.parent=this}f.lines=f.lines.slice(0,S),this.maybeSpill()}break}t-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var i=t.children.splice(t.children.length-5,5),u=new Fo(i);if(t.parent){t.size-=u.size,t.height-=u.height;var f=Te(t.parent.children,t);t.parent.children.splice(f+1,0,u)}else{var l=new Fo(t.children);l.parent=t,t.children=[l,u],t=l}u.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,i,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],g=f.chunkSize();if(t<g){var S=Math.min(i,g-t);if(f.iterN(t,S,u))return!0;if((i-=S)==0)break;t=0}else t-=g}}};var Ro=function(t,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=t,this.node=i};Ro.prototype.clear=function(){var t=this.doc.cm,i=this.line.widgets,u=this.line,l=Zt(u);if(!(l==null||!i)){for(var f=0;f<i.length;++f)i[f]==this&&i.splice(f--,1);i.length||(u.widgets=null);var g=lo(this);kn(u,Math.max(0,u.height-g)),t&&(tn(t,function(){Kl(t,u,-g),Gi(t,l,"widget")}),Br(t,"lineWidgetCleared",t,this,l))}},Ro.prototype.changed=function(){var t=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=lo(this)-i;!f||(Hi(this.doc,l)||kn(l,l.height+f),u&&tn(u,function(){u.curOp.forceUpdate=!0,Kl(u,l,f),Br(u,"lineWidgetChanged",u,t,Zt(l))}))},pr(Ro);function Kl(t,i,u){Ci(i)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Il(t,u)}function Lo(t,i,u,l){var f=new Ro(t,u,l),g=t.cm;return g&&f.noHScroll&&(g.display.alignWidgets=!0),sa(t,i,"widget",function(S){var T=S.widgets||(S.widgets=[]);if(f.insertAt==null?T.push(f):T.splice(Math.min(T.length,Math.max(0,f.insertAt)),0,f),f.line=S,g&&!Hi(t,S)){var L=Ci(S)<t.scrollTop;kn(S,S.height+lo(f)),L&&Il(g,f.height),g.curOp.forceUpdate=!0}return!0}),g&&Br(g,"lineWidgetAdded",g,f,typeof i=="number"?i:Zt(i)),f}var Yl=0,bn=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++Yl};bn.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,i=t&&!t.curOp;if(i&&na(t),Mt(this,"clear")){var u=this.find();u&&Br(this,"clear",u.from,u.to)}for(var l=null,f=null,g=0;g<this.lines.length;++g){var S=this.lines[g],T=ro(S.markedSpans,this);t&&!this.collapsed?Gi(t,Zt(S),"text"):t&&(T.to!=null&&(f=Zt(S)),T.from!=null&&(l=Zt(S))),S.markedSpans=Ku(S.markedSpans,T),T.from==null&&this.collapsed&&!Hi(this.doc,S)&&t&&kn(S,Ia(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var L=0;L<this.lines.length;++L){var V=Gr(this.lines[L]),le=ao(V);le>t.display.maxLineLength&&(t.display.maxLine=V,t.display.maxLineLength=le,t.display.maxLineChanged=!0)}l!=null&&t&&this.collapsed&&dn(t,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&kf(t.doc)),t&&Br(t,"markerCleared",t,this,l,f),i&&ia(t),this.parent&&this.parent.clear()}},bn.prototype.find=function(t,i){t==null&&this.type=="bookmark"&&(t=1);for(var u,l,f=0;f<this.lines.length;++f){var g=this.lines[f],S=ro(g.markedSpans,this);if(S.from!=null&&(u=D(i?g:Zt(g),S.from),t==-1))return u;if(S.to!=null&&(l=D(i?g:Zt(g),S.to),t==1))return l}return u&&{from:u,to:l}},bn.prototype.changed=function(){var t=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||tn(l,function(){var f=i.line,g=Zt(i.line),S=Sl(l,g);if(S&&(cf(S),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Hi(u.doc,f)&&u.height!=null){var T=u.height;u.height=null;var L=lo(u)-T;L&&kn(f,f.height+L)}Br(l,"markerChanged",l,t)})},bn.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Te(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},bn.prototype.detachLine=function(t){if(this.lines.splice(Te(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},pr(bn);function Wa(t,i,u,l,f){if(l&&l.shared)return ud(t,i,u,l,f);if(t.cm&&!t.cm.curOp)return jr(t.cm,Wa)(t,i,u,l,f);var g=new bn(t,f),S=oe(i,u);if(l&&Oe(l,g,!1),S>0||S==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=Q("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(zn(t,i.line,i,u,g)||i.line!=u.line&&zn(t,u.line,i,u,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");Lc()}g.addToHistory&&oa(t,{from:i,to:u,origin:"markText"},t.sel,NaN);var T=i.line,L=t.cm,V;if(t.iter(T,u.line+1,function(de){L&&g.collapsed&&!L.options.lineWrapping&&Gr(de)==L.display.maxLine&&(V=!0),g.collapsed&&T!=i.line&&kn(de,0),al(de,new es(g,T==i.line?i.ch:null,T==u.line?u.ch:null),t.cm&&t.cm.curOp),++T}),g.collapsed&&t.iter(i.line,u.line+1,function(de){Hi(t,de)&&kn(de,0)}),g.clearOnEnter&&fe(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&($u(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),g.collapsed&&(g.id=++Yl,g.atomic=!0),L){if(V&&(L.curOp.updateMaxLine=!0),g.collapsed)dn(L,i.line,u.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var le=i.line;le<=u.line;le++)Gi(L,le,"text");g.atomic&&kf(L.doc),Br(L,"markerAdded",L,g)}return g}var Ha=function(t,i){this.markers=t,this.primary=i;for(var u=0;u<t.length;++u)t[u].parent=this};Ha.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Br(this,"clear")}},Ha.prototype.find=function(t,i){return this.primary.find(t,i)},pr(Ha);function ud(t,i,u,l,f){l=Oe(l),l.shared=!1;var g=[Wa(t,i,u,l,f)],S=g[0],T=l.widgetNode;return ki(t,function(L){T&&(l.widgetNode=T.cloneNode(!0)),g.push(Wa(L,ft(L,i),ft(L,u),l,f));for(var V=0;V<L.linked.length;++V)if(L.linked[V].isParent)return;S=Je(g)}),new Ha(g,S)}function Jl(t){return t.findMarks(D(t.first,0),t.clipPos(D(t.lastLine())),function(i){return i.parent})}function fd(t,i){for(var u=0;u<i.length;u++){var l=i[u],f=l.find(),g=t.clipPos(f.from),S=t.clipPos(f.to);if(oe(g,S)){var T=Wa(t,g,S,l.primary,l.primary.type);l.markers.push(T),T.parent=l}}}function Mf(t){for(var i=function(l){var f=t[l],g=[f.primary.doc];ki(f.primary.doc,function(L){return g.push(L)});for(var S=0;S<f.markers.length;S++){var T=f.markers[S];Te(g,T.doc)==-1&&(T.parent=null,f.markers.splice(S--,1))}},u=0;u<t.length;u++)i(u)}var Ns=0,pn=function(t,i,u,l,f){if(!(this instanceof pn))return new pn(t,i,u,l,f);u==null&&(u=0),Fo.call(this,[new ko([new Gn("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var g=D(u,0);this.sel=yn(g),this.history=new Co(null),this.id=++Ns,this.modeOption=i,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),Jn(this,{from:g,to:g,text:t}),Yr(this,yn(g),jt)};pn.prototype=Er(Fo.prototype,{constructor:pn,iter:function(t,i,u){u?this.iterN(t-this.first,i-t,u):this.iterN(this.first,this.first+this.size,t)},insert:function(t,i){for(var u=0,l=0;l<i.length;++l)u+=i[l].height;this.insertInner(t-this.first,i,u)},remove:function(t,i){this.removeInner(t-this.first,i)},getValue:function(t){var i=Ui(this,this.first,this.first+this.size);return t===!1?i:i.join(t||this.lineSeparator())},setValue:Vr(function(t){var i=D(this.first,0),u=this.first+this.size-1;Va(this,{from:i,to:D(u,ut(this,u).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&vo(this.cm,0,0),Yr(this,yn(i),jt)}),replaceRange:function(t,i,u,l){i=ft(this,i),u=u?ft(this,u):i,Ua(this,t,i,u,l)},getRange:function(t,i,u){var l=Si(this,ft(this,t),ft(this,i));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(t){var i=this.getLineHandle(t);return i&&i.text},getLineHandle:function(t){if(qi(this,t))return ut(this,t)},getLineNumber:function(t){return Zt(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=ut(this,t)),Gr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ft(this,t)},getCursor:function(t){var i=this.sel.primary(),u;return t==null||t=="head"?u=i.head:t=="anchor"?u=i.anchor:t=="end"||t=="to"||t===!1?u=i.to():u=i.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vr(function(t,i,u){Pf(this,ft(this,typeof t=="number"?D(t,i||0):t),null,u)}),setSelection:Vr(function(t,i,u){Pf(this,ft(this,t),ft(this,i||t),u)}),extendSelection:Vr(function(t,i,u){Fs(this,ft(this,t),i&&ft(this,i),u)}),extendSelections:Vr(function(t,i){Tf(this,eo(this,t),i)}),extendSelectionsBy:Vr(function(t,i){var u=Ct(this.sel.ranges,t);Tf(this,eo(this,u),i)}),setSelections:Vr(function(t,i,u){if(!!t.length){for(var l=[],f=0;f<t.length;f++)l[f]=new qt(ft(this,t[f].anchor),ft(this,t[f].head||t[f].anchor));i==null&&(i=Math.min(t.length-1,this.sel.primIndex)),Yr(this,Yn(this.cm,l,i),u)}}),addSelection:Vr(function(t,i,u){var l=this.sel.ranges.slice(0);l.push(new qt(ft(this,t),ft(this,i||t))),Yr(this,Yn(this.cm,l,l.length-1),u)}),getSelection:function(t){for(var i=this.sel.ranges,u,l=0;l<i.length;l++){var f=Si(this,i[l].from(),i[l].to());u=u?u.concat(f):f}return t===!1?u:u.join(t||this.lineSeparator())},getSelections:function(t){for(var i=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=Si(this,u[l].from(),u[l].to());t!==!1&&(f=f.join(t||this.lineSeparator())),i[l]=f}return i},replaceSelection:function(t,i,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=t;this.replaceSelections(l,i,u||"+input")},replaceSelections:Vr(function(t,i,u){for(var l=[],f=this.sel,g=0;g<f.ranges.length;g++){var S=f.ranges[g];l[g]={from:S.from(),to:S.to(),text:this.splitLines(t[g]),origin:u}}for(var T=i&&i!="end"&&Ts(this,l,i),L=l.length-1;L>=0;L--)Va(this,l[L]);T?If(this,T):this.cm&&Ra(this.cm)}),undo:Vr(function(){Ls(this,"undo")}),redo:Vr(function(){Ls(this,"redo")}),undoSelection:Vr(function(){Ls(this,"undo",!0)}),redoSelection:Vr(function(){Ls(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,i=0,u=0,l=0;l<t.done.length;l++)t.done[l].ranges||++i;for(var f=0;f<t.undone.length;f++)t.undone[f].ranges||++u;return{undo:i,redo:u}},clearHistory:function(){var t=this;this.history=new Co(this.history),ki(this,function(i){return i.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:ui(this.history.done),undone:ui(this.history.undone)}},setHistory:function(t){var i=this.history=new Co(this.history);i.done=ui(t.done.slice(0),null,!0),i.undone=ui(t.undone.slice(0),null,!0)},setGutterMarker:Vr(function(t,i,u){return sa(this,t,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[i]=u,!u&&_r(f)&&(l.gutterMarkers=null),!0})}),clearGutter:Vr(function(t){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[t]&&sa(i,u,"gutter",function(){return u.gutterMarkers[t]=null,_r(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(t){var i;if(typeof t=="number"){if(!qi(this,t)||(i=t,t=ut(this,t),!t))return null}else if(i=Zt(t),i==null)return null;return{line:i,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Vr(function(t,i,u){return sa(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(X(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:Vr(function(t,i,u){return sa(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[f];if(g)if(u==null)l[f]=null;else{var S=g.match(X(u));if(!S)return!1;var T=S.index+S[0].length;l[f]=g.slice(0,S.index)+(!S.index||T==g.length?"":" ")+g.slice(T)||null}else return!1;return!0})}),addLineWidget:Vr(function(t,i,u){return Lo(this,t,i,u)}),removeLineWidget:function(t){t.clear()},markText:function(t,i,u){return Wa(this,ft(this,t),ft(this,i),u,u&&u.type||"range")},setBookmark:function(t,i){var u={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return t=ft(this,t),Wa(this,t,t,u,"bookmark")},findMarksAt:function(t){t=ft(this,t);var i=[],u=ut(this,t.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=t.ch)&&(f.to==null||f.to>=t.ch)&&i.push(f.marker.parent||f.marker)}return i},findMarks:function(t,i,u){t=ft(this,t),i=ft(this,i);var l=[],f=t.line;return this.iter(t.line,i.line+1,function(g){var S=g.markedSpans;if(S)for(var T=0;T<S.length;T++){var L=S[T];!(L.to!=null&&f==t.line&&t.ch>=L.to||L.from==null&&f!=t.line||L.from!=null&&f==i.line&&L.from>=i.ch)&&(!u||u(L.marker))&&l.push(L.marker.parent||L.marker)}++f}),l},getAllMarks:function(){var t=[];return this.iter(function(i){var u=i.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&t.push(u[l].marker)}),t},posFromIndex:function(t){var i,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var g=f.text.length+l;if(g>t)return i=t,!0;t-=g,++u}),ft(this,D(u,i))},indexFromPos:function(t){t=ft(this,t);var i=t.ch;if(t.line<this.first||t.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,t.line,function(l){i+=l.text.length+u}),i},copy:function(t){var i=new pn(Ui(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,t&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(t){t||(t={});var i=this.first,u=this.first+this.size;t.from!=null&&t.from>i&&(i=t.from),t.to!=null&&t.to<u&&(u=t.to);var l=new pn(Ui(this,i,u),t.mode||this.modeOption,i,this.lineSep,this.direction);return t.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:t.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],fd(l,Jl(this)),l},unlinkDoc:function(t){if(t instanceof mr&&(t=t.doc),this.linked)for(var i=0;i<this.linked.length;++i){var u=this.linked[i];if(u.doc==t){this.linked.splice(i,1),t.unlinkDoc(this),Mf(Jl(this));break}}if(t.history==this.history){var l=[t.id];ki(t,function(f){return l.push(f.id)},!0),t.history=new Co(null),t.history.done=ui(this.history.done,l),t.history.undone=ui(this.history.undone,l)}},iterLinkedDocs:function(t){ki(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Un(t)},lineSeparator:function(){return this.lineSep||`
|
|
23
|
+
`},setDirection:Vr(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(i){return i.order=null}),this.cm&&Wl(this.cm))})}),pn.prototype.eachLine=pn.prototype.iter;var Mo=0;function Xl(t){var i=this;if(Nf(i),!(lt(i,t)||En(i.display,t))){Nt(t),E&&(Mo=+new Date);var u=zi(i,t,!0),l=t.dataTransfer.files;if(!(!u||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,g=Array(f),S=0,T=function(){++S==f&&jr(i,function(){u=ft(i.doc,u);var me={from:u,to:u,text:i.doc.splitLines(g.filter(function(Ie){return Ie!=null}).join(i.doc.lineSeparator())),origin:"paste"};Va(i.doc,me),If(i.doc,yn(ft(i.doc,u),ft(i.doc,$i(me))))})()},L=function(me,Ie){if(i.options.allowDropFileTypes&&Te(i.options.allowDropFileTypes,me.type)==-1){T();return}var Me=new FileReader;Me.onerror=function(){return T()},Me.onload=function(){var $e=Me.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test($e)){T();return}g[Ie]=$e,T()},Me.readAsText(me)},V=0;V<l.length;V++)L(l[V],V);else{if(i.state.draggingText&&i.doc.sel.contains(u)>-1){i.state.draggingText(t),setTimeout(function(){return i.display.input.focus()},20);return}try{var le=t.dataTransfer.getData("Text");if(le){var de;if(i.state.draggingText&&!i.state.draggingText.copy&&(de=i.listSelections()),Ba(i.doc,yn(u,u)),de)for(var Se=0;Se<de.length;++Se)Ua(i.doc,"",de[Se].anchor,de[Se].head,"drag");i.replaceSelection(le,"around","paste"),i.display.input.focus()}}catch(me){}}}}function cd(t,i){if(E&&(!t.state.draggingText||+new Date-Mo<100)){Hr(i);return}if(!(lt(t,i)||En(t.display,i))&&(i.dataTransfer.setData("Text",t.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!ae)){var u=_("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ne&&(u.width=u.height=1,t.display.wrapper.appendChild(u),u._top=u.offsetTop),i.dataTransfer.setDragImage(u,0,0),ne&&u.parentNode.removeChild(u)}}function dd(t,i){var u=zi(t,i);if(!!u){var l=document.createDocumentFragment();bs(t,u,l),t.display.dragCursor||(t.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),he(t.display.dragCursor,l)}}function Nf(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Ql(t){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<i.length;l++){var f=i[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var g=0;g<u.length;g++)t(u[g])})}}var Zl=!1;function pd(){Zl||(hd(),Zl=!0)}function hd(){var t;fe(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,Ql(vd)},100))}),fe(window,"blur",function(){return Ql(ka)})}function vd(t){var i=t.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,t.setSize()}for(var Ki={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},No=0;No<10;No++)Ki[No+48]=Ki[No+96]=String(No);for(var Ds=65;Ds<=90;Ds++)Ki[Ds]=String.fromCharCode(Ds);for(var za=1;za<=12;za++)Ki[za+111]=Ki[za+63235]="F"+za;var Ri={};Ri.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ri.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ri.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ri.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ri.default=k?Ri.macDefault:Ri.pcDefault;function _l(t){var i=t.split(/-(?!$)/);t=i[i.length-1];for(var u,l,f,g,S=0;S<i.length-1;S++){var T=i[S];if(/^(cmd|meta|m)$/i.test(T))g=!0;else if(/^a(lt)?$/i.test(T))u=!0;else if(/^(c|ctrl|control)$/i.test(T))l=!0;else if(/^s(hift)?$/i.test(T))f=!0;else throw new Error("Unrecognized modifier name: "+T)}return u&&(t="Alt-"+t),l&&(t="Ctrl-"+t),g&&(t="Cmd-"+t),f&&(t="Shift-"+t),t}function Df(t){var i={};for(var u in t)if(t.hasOwnProperty(u)){var l=t[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete t[u];continue}for(var f=Ct(u.split(" "),_l),g=0;g<f.length;g++){var S=void 0,T=void 0;g==f.length-1?(T=f.join(" "),S=l):(T=f.slice(0,g+1).join(" "),S="...");var L=i[T];if(!L)i[T]=S;else if(L!=S)throw new Error("Inconsistent bindings for "+T)}delete t[u]}for(var V in i)t[V]=i[V];return t}function Ga(t,i,u,l){i=Bs(i);var f=i.call?i.call(t,l):i[t];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return Ga(t,i.fallthrough,u,l);for(var g=0;g<i.fallthrough.length;g++){var S=Ga(t,i.fallthrough[g],u,l);if(S)return S}}}function la(t){var i=typeof t=="string"?t:Ki[t.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function fi(t,i,u){var l=t;return i.altKey&&l!="Alt"&&(t="Alt-"+t),(U?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(t="Ctrl-"+t),(U?i.ctrlKey:i.metaKey)&&l!="Mod"&&(t="Cmd-"+t),!u&&i.shiftKey&&l!="Shift"&&(t="Shift-"+t),t}function ql(t,i){if(ne&&t.keyCode==34&&t.char)return!1;var u=Ki[t.keyCode];return u==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(u=t.code),fi(u,t,i))}function Bs(t){return typeof t=="string"?Ri[t]:t}function $a(t,i){for(var u=t.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var g=i(u[f]);l.length&&oe(g.from,Je(l).to)<=0;){var S=l.pop();if(oe(S.from,g.from)<0){g.from=S.from;break}}l.push(g)}tn(t,function(){for(var T=l.length-1;T>=0;T--)Ua(t.doc,"",l[T].from,l[T].to,"+delete");Ra(t)})}function eu(t,i,u){var l=Lt(t.text,i+u,u);return l<0||l>t.text.length?null:l}function js(t,i,u){var l=eu(t,i.ch,u);return l==null?null:new D(i.line,l,u<0?"after":"before")}function tu(t,i,u,l,f){if(t){i.doc.direction=="rtl"&&(f=-f);var g=st(u,i.doc.direction);if(g){var S=f<0?Je(g):g[0],T=f<0==(S.level==1),L=T?"after":"before",V;if(S.level>0||i.doc.direction=="rtl"){var le=Ti(i,u);V=f<0?u.text.length-1:0;var de=ai(i,le,V).top;V=Ot(function(Se){return ai(i,le,Se).top==de},f<0==(S.level==1)?S.from:S.to-1,V),L=="before"&&(V=eu(u,V,1))}else V=f<0?S.to:S.from;return new D(l,V,L)}}return new D(l,f<0?u.text.length:0,f<0?"before":"after")}function Bf(t,i,u,l){var f=st(i,t.doc.direction);if(!f)return js(i,u,l);u.ch>=i.text.length?(u.ch=i.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var g=mt(f,u.ch,u.sticky),S=f[g];if(t.doc.direction=="ltr"&&S.level%2==0&&(l>0?S.to>u.ch:S.from<u.ch))return js(i,u,l);var T=function(Qe,_e){return eu(i,Qe instanceof D?Qe.ch:Qe,_e)},L,V=function(Qe){return t.options.lineWrapping?(L=L||Ti(t,i),pf(t,i,L,Qe)):{begin:0,end:i.text.length}},le=V(u.sticky=="before"?T(u,-1):u.ch);if(t.doc.direction=="rtl"||S.level==1){var de=S.level==1==l<0,Se=T(u,de?1:-1);if(Se!=null&&(de?Se<=S.to&&Se<=le.end:Se>=S.from&&Se>=le.begin)){var me=de?"before":"after";return new D(u.line,Se,me)}}var Ie=function(Qe,_e,Xe){for(var et=function(fr,Wt){return Wt?new D(u.line,T(fr,1),"before"):new D(u.line,fr,"after")};Qe>=0&&Qe<f.length;Qe+=_e){var yt=f[Qe],ht=_e>0==(yt.level!=1),Bt=ht?Xe.begin:T(Xe.end,-1);if(yt.from<=Bt&&Bt<yt.to||(Bt=ht?yt.from:T(yt.to,-1),Xe.begin<=Bt&&Bt<Xe.end))return et(Bt,ht)}},Me=Ie(g+l,l,le);if(Me)return Me;var $e=l>0?le.end:T(le.begin,-1);return $e!=null&&!(l>0&&$e==i.text.length)&&(Me=Ie(l>0?0:f.length-1,l,V($e)),Me)?Me:null}var ua={selectAll:Ff,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),jt)},killLine:function(t){return $a(t,function(i){if(i.empty()){var u=ut(t.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<t.lastLine()?{from:i.head,to:D(i.head.line+1,0)}:{from:i.head,to:D(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return $a(t,function(i){return{from:D(i.from().line,0),to:ft(t.doc,D(i.to().line+1,0))}})},delLineLeft:function(t){return $a(t,function(i){return{from:D(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(t){return $a(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(t){return $a(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div");return{from:i.from(),to:l}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(D(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(D(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(i){return ru(t,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(i){return Vf(t,i.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(i){return jf(t,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div")},it)},goLineLeft:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:0,top:u},"div")},it)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return l.ch<t.getLine(l.line).search(/\S/)?Vf(t,i.head):l},it)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var i=[],u=t.listSelections(),l=t.options.tabSize,f=0;f<u.length;f++){var g=u[f].from(),S=He(t.getLine(g.line),g.ch,l);i.push(or(l-S%l))}t.replaceSelections(i)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return tn(t,function(){for(var i=t.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var f=i[l].head,g=ut(t.doc,f.line).text;if(g){if(f.ch==g.length&&(f=new D(f.line,f.ch-1)),f.ch>0)f=new D(f.line,f.ch+1),t.replaceRange(g.charAt(f.ch-1)+g.charAt(f.ch-2),D(f.line,f.ch-2),f,"+transpose");else if(f.line>t.doc.first){var S=ut(t.doc,f.line-1).text;S&&(f=new D(f.line,1),t.replaceRange(g.charAt(0)+t.doc.lineSeparator()+S.charAt(S.length-1),D(f.line-1,S.length-1),f,"+transpose"))}}u.push(new qt(f,f))}t.setSelections(u)})},newlineAndIndent:function(t){return tn(t,function(){for(var i=t.listSelections(),u=i.length-1;u>=0;u--)t.replaceRange(t.doc.lineSeparator(),i[u].anchor,i[u].head,"+input");i=t.listSelections();for(var l=0;l<i.length;l++)t.indentLine(i[l].from().line,null,!0);Ra(t)})},openLine:function(t){return t.replaceSelection(`
|
|
24
|
+
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function ru(t,i){var u=ut(t.doc,i),l=Gr(u);return l!=u&&(i=Zt(l)),tu(!0,t,l,i,1)}function jf(t,i){var u=ut(t.doc,i),l=mn(u);return l!=u&&(i=Zt(l)),tu(!0,t,u,i,-1)}function Vf(t,i){var u=ru(t,i.line),l=ut(t.doc,u.line),f=st(l,t.doc.direction);if(!f||f[0].level==0){var g=Math.max(u.ch,l.text.search(/\S/)),S=i.line==u.line&&i.ch<=g&&i.ch;return D(u.line,S?0:g,u.sticky)}return u}function Do(t,i,u){if(typeof i=="string"&&(i=ua[i],!i))return!1;t.display.input.ensurePolled();var l=t.display.shift,f=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),u&&(t.display.shift=!1),f=i(t)!=at}finally{t.display.shift=l,t.state.suppressEdits=!1}return f}function gd(t,i,u){for(var l=0;l<t.state.keyMaps.length;l++){var f=Ga(i,t.state.keyMaps[l],u,t);if(f)return f}return t.options.extraKeys&&Ga(i,t.options.extraKeys,u,t)||Ga(i,t.options.keyMap,u,t)}var nu=new Pe;function fa(t,i,u,l){var f=t.state.keySeq;if(f){if(la(i))return"handled";if(/\'$/.test(i)?t.state.keySeq=null:nu.set(50,function(){t.state.keySeq==f&&(t.state.keySeq=null,t.display.input.reset())}),iu(t,f+" "+i,u,l))return!0}return iu(t,i,u,l)}function iu(t,i,u,l){var f=gd(t,i,l);return f=="multi"&&(t.state.keySeq=i),f=="handled"&&Br(t,"keyHandled",t,i,u),(f=="handled"||f=="multi")&&(Nt(u),Ss(t)),!!f}function au(t,i){var u=ql(i,!0);return u?i.shiftKey&&!t.state.keySeq?fa(t,"Shift-"+u,i,function(l){return Do(t,l,!0)})||fa(t,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Do(t,l)}):fa(t,u,i,function(l){return Do(t,l)}):!1}function md(t,i,u){return fa(t,"'"+u+"'",i,function(l){return Do(t,l,!0)})}var ou=null;function Vs(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&(i.curOp.focus=ke(tt(i)),!lt(i,t))){E&&F<11&&t.keyCode==27&&(t.returnValue=!1);var u=t.keyCode;i.display.shift=u==16||t.shiftKey;var l=au(i,t);ne&&(ou=l?u:null,!l&&u==88&&!_i&&(k?t.metaKey:t.ctrlKey)&&i.replaceSelection("",null,"cut")),d&&!k&&!l&&u==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&yd(i)}}function yd(t){var i=t.display.lineDiv;je(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(z(i,"CodeMirror-crosshair"),Be(document,"keyup",u),Be(document,"mouseover",u))}fe(document,"keyup",u),fe(document,"mouseover",u)}function Uf(t){t.keyCode==16&&(this.doc.sel.shift=!1),lt(this,t)}function Wf(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&!(En(i.display,t)||lt(i,t)||t.ctrlKey&&!t.altKey||k&&t.metaKey)){var u=t.keyCode,l=t.charCode;if(ne&&u==ou){ou=null,Nt(t);return}if(!(ne&&(!t.which||t.which<10)&&au(i,t))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(md(i,t,f)||i.display.input.onKeyPress(t))}}}var bd=400,su=function(t,i,u){this.time=t,this.pos=i,this.button=u};su.prototype.compare=function(t,i,u){return this.time+bd>t&&oe(i,this.pos)==0&&u==this.button};var Bo,ca;function Us(t,i){var u=+new Date;return ca&&ca.compare(u,t,i)?(Bo=ca=null,"triple"):Bo&&Bo.compare(u,t,i)?(ca=new su(u,t,i),Bo=null,"double"):(Bo=new su(u,t,i),ca=null,"single")}function lu(t){var i=this,u=i.display;if(!(lt(i,t)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=t.shiftKey,En(u,t)){W||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Ka(i,t)){var l=zi(i,t),f=bi(t),g=l?Us(l,f):"single";bt(i).focus(),f==1&&i.state.selectingText&&i.state.selectingText(t),!(l&&Hf(i,f,l,g,t))&&(f==1?l?Sd(i,l,g,t):zr(t)==u.scroller&&Nt(t):f==2?(l&&Fs(i.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(re?i.display.input.onContextMenu(t):Tl(i)))}}}function Hf(t,i,u,l,f){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,fa(t,fi(g,f),f,function(S){if(typeof S=="string"&&(S=ua[S]),!S)return!1;var T=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),T=S(t,u)!=at}finally{t.state.suppressEdits=!1}return T})}function xd(t,i,u){var l=t.getOption("configureMouse"),f=l?l(t,i,u):{};if(f.unit==null){var g=j?u.shiftKey&&u.metaKey:u.altKey;f.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(f.extend==null||t.doc.extend)&&(f.extend=t.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=k?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(k?u.altKey:u.ctrlKey)),f}function Sd(t,i,u,l){E?setTimeout(Ne(si,t),0):t.curOp.focus=ke(tt(t));var f=xd(t,u,l),g=t.doc.sel,S;t.options.dragDrop&&qr&&!t.isReadOnly()&&u=="single"&&(S=g.contains(i))>-1&&(oe((S=g.ranges[S]).from(),i)<0||i.xRel>0)&&(oe(S.to(),i)>0||i.xRel<0)?da(t,l,i,f):zf(t,l,i,f)}function da(t,i,u,l){var f=t.display,g=!1,S=jr(t,function(V){W&&(f.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Tl(t)),Be(f.wrapper.ownerDocument,"mouseup",S),Be(f.wrapper.ownerDocument,"mousemove",T),Be(f.scroller,"dragstart",L),Be(f.scroller,"drop",S),g||(Nt(V),l.addNew||Fs(t.doc,u,null,null,l.extend),W&&!ae||E&&F==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),T=function(V){g=g||Math.abs(i.clientX-V.clientX)+Math.abs(i.clientY-V.clientY)>=10},L=function(){return g=!0};W&&(f.scroller.draggable=!0),t.state.draggingText=S,S.copy=!l.moveOnDrag,fe(f.wrapper.ownerDocument,"mouseup",S),fe(f.wrapper.ownerDocument,"mousemove",T),fe(f.scroller,"dragstart",L),fe(f.scroller,"drop",S),t.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function uu(t,i,u){if(u=="char")return new qt(i,i);if(u=="word")return t.findWordAt(i);if(u=="line")return new qt(D(i.line,0),ft(t.doc,D(i.line+1,0)));var l=u(t,i);return new qt(l.from,l.to)}function zf(t,i,u,l){E&&Tl(t);var f=t.display,g=t.doc;Nt(i);var S,T,L=g.sel,V=L.ranges;if(l.addNew&&!l.extend?(T=g.sel.contains(u),T>-1?S=V[T]:S=new qt(u,u)):(S=g.sel.primary(),T=g.sel.primIndex),l.unit=="rectangle")l.addNew||(S=new qt(u,u)),u=zi(t,i,!0,!0),T=-1;else{var le=uu(t,u,l.unit);l.extend?S=Oo(S,le.anchor,le.head,l.extend):S=le}l.addNew?T==-1?(T=V.length,Yr(g,Yn(t,V.concat([S]),T),{scroll:!1,origin:"*mouse"})):V.length>1&&V[T].empty()&&l.unit=="char"&&!l.extend?(Yr(g,Yn(t,V.slice(0,T).concat(V.slice(T+1)),0),{scroll:!1,origin:"*mouse"}),L=g.sel):zl(g,T,S,rt):(T=0,Yr(g,new On([S],0),rt),L=g.sel);var de=u;function Se(Xe){if(oe(de,Xe)!=0)if(de=Xe,l.unit=="rectangle"){for(var et=[],yt=t.options.tabSize,ht=He(ut(g,u.line).text,u.ch,yt),Bt=He(ut(g,Xe.line).text,Xe.ch,yt),fr=Math.min(ht,Bt),Wt=Math.max(ht,Bt),wr=Math.min(u.line,Xe.line),xn=Math.min(t.lastLine(),Math.max(u.line,Xe.line));wr<=xn;wr++){var M=ut(g,wr).text,Dt=Ft(M,fr,yt);fr==Wt?et.push(new qt(D(wr,Dt),D(wr,Dt))):M.length>Dt&&et.push(new qt(D(wr,Dt),D(wr,Ft(M,Wt,yt))))}et.length||et.push(new qt(u,u)),Yr(g,Yn(t,L.ranges.slice(0,T).concat(et),T),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Xe)}else{var St=S,Ir=uu(t,Xe,l.unit),vr=St.anchor,Cr;oe(Ir.anchor,vr)>0?(Cr=Ir.head,vr=Ht(St.from(),Ir.anchor)):(Cr=Ir.anchor,vr=Pt(St.to(),Ir.head));var br=L.ranges.slice(0);br[T]=Gf(t,new qt(ft(g,vr),Cr)),Yr(g,Yn(t,br,T),rt)}}var me=f.wrapper.getBoundingClientRect(),Ie=0;function Me(Xe){var et=++Ie,yt=zi(t,Xe,!0,l.unit=="rectangle");if(!!yt)if(oe(yt,de)!=0){t.curOp.focus=ke(tt(t)),Se(yt);var ht=Fa(f,g);(yt.line>=ht.to||yt.line<ht.from)&&setTimeout(jr(t,function(){Ie==et&&Me(Xe)}),150)}else{var Bt=Xe.clientY<me.top?-20:Xe.clientY>me.bottom?20:0;Bt&&setTimeout(jr(t,function(){Ie==et&&(f.scroller.scrollTop+=Bt,Me(Xe))}),50)}}function $e(Xe){t.state.selectingText=!1,Ie=1/0,Xe&&(Nt(Xe),f.input.focus()),Be(f.wrapper.ownerDocument,"mousemove",Qe),Be(f.wrapper.ownerDocument,"mouseup",_e),g.history.lastSelOrigin=null}var Qe=jr(t,function(Xe){Xe.buttons===0||!bi(Xe)?$e(Xe):Me(Xe)}),_e=jr(t,$e);t.state.selectingText=_e,fe(f.wrapper.ownerDocument,"mousemove",Qe),fe(f.wrapper.ownerDocument,"mouseup",_e)}function Gf(t,i){var u=i.anchor,l=i.head,f=ut(t.doc,u.line);if(oe(u,l)==0&&u.sticky==l.sticky)return i;var g=st(f);if(!g)return i;var S=mt(g,u.ch,u.sticky),T=g[S];if(T.from!=u.ch&&T.to!=u.ch)return i;var L=S+(T.from==u.ch==(T.level!=1)?0:1);if(L==0||L==g.length)return i;var V;if(l.line!=u.line)V=(l.line-u.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var le=mt(g,l.ch,l.sticky),de=le-S||(l.ch-u.ch)*(T.level==1?-1:1);le==L-1||le==L?V=de<0:V=de>0}var Se=g[L+(V?-1:0)],me=V==(Se.level==1),Ie=me?Se.from:Se.to,Me=me?"after":"before";return u.ch==Ie&&u.sticky==Me?i:new qt(new D(u.line,Ie,Me),l)}function wd(t,i,u,l){var f,g;if(i.touches)f=i.touches[0].clientX,g=i.touches[0].clientY;else try{f=i.clientX,g=i.clientY}catch(Se){return!1}if(f>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;l&&Nt(i);var S=t.display,T=S.lineDiv.getBoundingClientRect();if(g>T.bottom||!Mt(t,u))return yi(i);g-=T.top-S.viewOffset;for(var L=0;L<t.display.gutterSpecs.length;++L){var V=S.gutters.childNodes[L];if(V&&V.getBoundingClientRect().right>=f){var le=wi(t.doc,g),de=t.display.gutterSpecs[L];return Ve(t,u,t,le,de.className,i),yi(i)}}}function Ka(t,i){return wd(t,i,"gutterClick",!0)}function $f(t,i){En(t.display,i)||Kf(t,i)||lt(t,i,"contextmenu")||re||t.display.input.onContextMenu(i)}function Kf(t,i){return Mt(t,"gutterContextMenu")?wd(t,i,"gutterContextMenu",!1):!1}function Yf(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),uo(t)}var Ya={toString:function(){return"CodeMirror.Init"}},fu={},jo={};function Jf(t){var i=t.optionHandlers;function u(l,f,g,S){t.defaults[l]=f,g&&(i[l]=S?function(T,L,V){V!=Ya&&g(T,L,V)}:g)}t.defineOption=u,t.Init=Ya,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Ao(l)},!0),u("indentUnit",2,Ao,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Kr(l),uo(l),dn(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var g=[],S=l.doc.first;l.doc.iter(function(L){for(var V=0;;){var le=L.text.indexOf(f,V);if(le==-1)break;V=le+f.length,g.push(D(S,le))}S++});for(var T=g.length-1;T>=0;T--)Ua(l.doc,f,g[T],D(g[T].line,g[T].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,f,g){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),g!=Ya&&l.refresh()}),u("specialCharPlaceholder",_u,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){Yf(l),So(l)},!0),u("keyMap","default",function(l,f,g){var S=Bs(f),T=g!=Ya&&Bs(g);T&&T.detach&&T.detach(l,S),S.attach&&S.attach(l,T||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Xf,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Os(f,l.options.lineNumbers),So(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?gs(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return Ma(l)},!0),u("scrollbarStyle","native",function(l){Fl(l),Ma(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=Os(l.options.gutters,f),So(l)},!0),u("firstLineNumber",1,So,!0),u("lineNumberFormatter",function(l){return l},So,!0),u("showCursorWhenSelecting",!1,po,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(ka(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,Ad),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,po,!0),u("singleCursorHeightPerLine",!0,po,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Kr,!0),u("addModeClass",!1,Kr,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,Kr,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function Ad(t,i,u){var l=u&&u!=Ya;if(!i!=!l){var f=t.display.dragFunctions,g=i?fe:Be;g(t.display.scroller,"dragstart",f.start),g(t.display.scroller,"dragenter",f.enter),g(t.display.scroller,"dragover",f.over),g(t.display.scroller,"dragleave",f.leave),g(t.display.scroller,"drop",f.drop)}}function Xf(t){t.options.lineWrapping?(je(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(z(t.display.wrapper,"CodeMirror-wrap"),ss(t)),ys(t),dn(t),uo(t),setTimeout(function(){return Ma(t)},100)}function mr(t,i){var u=this;if(!(this instanceof mr))return new mr(t,i);this.options=i=i?Oe(i):{},Oe(fu,i,!1);var l=i.value;typeof l=="string"?l=new pn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var f=new mr.inputStyles[i.inputStyle](this),g=this.display=new Af(t,l,f,i);g.wrapper.CodeMirror=this,Yf(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Pe,keySeq:null,specialChars:null},i.autofocus&&!C&&g.input.focus(),E&&F<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Vo(this),pd(),na(this),this.curOp.forceUpdate=!0,Ul(this,l),i.autofocus&&!C||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&ho(u)},20):ka(this);for(var S in jo)jo.hasOwnProperty(S)&&jo[S](this,i[S],Ya);wf(this),i.finishInit&&i.finishInit(this);for(var T=0;T<cu.length;++T)cu[T](this);ia(this),W&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}mr.defaults=fu,mr.optionHandlers=jo;function Vo(t){var i=t.display;fe(i.scroller,"mousedown",jr(t,lu)),E&&F<11?fe(i.scroller,"dblclick",jr(t,function(L){if(!lt(t,L)){var V=zi(t,L);if(!(!V||Ka(t,L)||En(t.display,L))){Nt(L);var le=t.findWordAt(V);Fs(t.doc,le.anchor,le.head)}}})):fe(i.scroller,"dblclick",function(L){return lt(t,L)||Nt(L)}),fe(i.scroller,"contextmenu",function(L){return $f(t,L)}),fe(i.input.getField(),"contextmenu",function(L){i.scroller.contains(L.target)||$f(t,L)});var u,l={end:0};function f(){i.activeTouch&&(u=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(L){if(L.touches.length!=1)return!1;var V=L.touches[0];return V.radiusX<=1&&V.radiusY<=1}function S(L,V){if(V.left==null)return!0;var le=V.left-L.left,de=V.top-L.top;return le*le+de*de>20*20}fe(i.scroller,"touchstart",function(L){if(!lt(t,L)&&!g(L)&&!Ka(t,L)){i.input.ensurePolled(),clearTimeout(u);var V=+new Date;i.activeTouch={start:V,moved:!1,prev:V-l.end<=300?l:null},L.touches.length==1&&(i.activeTouch.left=L.touches[0].pageX,i.activeTouch.top=L.touches[0].pageY)}}),fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),fe(i.scroller,"touchend",function(L){var V=i.activeTouch;if(V&&!En(i,L)&&V.left!=null&&!V.moved&&new Date-V.start<300){var le=t.coordsChar(i.activeTouch,"page"),de;!V.prev||S(V,V.prev)?de=new qt(le,le):!V.prev.prev||S(V,V.prev.prev)?de=t.findWordAt(le):de=new qt(D(le.line,0),ft(t.doc,D(le.line+1,0))),t.setSelection(de.anchor,de.head),t.focus(),Nt(L)}f()}),fe(i.scroller,"touchcancel",f),fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(go(t,i.scroller.scrollTop),ta(t,i.scroller.scrollLeft,!0),Ve(t,"scroll",t))}),fe(i.scroller,"mousewheel",function(L){return jl(t,L)}),fe(i.scroller,"DOMMouseScroll",function(L){return jl(t,L)}),fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(L){lt(t,L)||Hr(L)},over:function(L){lt(t,L)||(dd(t,L),Hr(L))},start:function(L){return cd(t,L)},drop:jr(t,Xl),leave:function(L){lt(t,L)||Nf(t)}};var T=i.input.getField();fe(T,"keyup",function(L){return Uf.call(t,L)}),fe(T,"keydown",jr(t,Vs)),fe(T,"keypress",jr(t,Wf)),fe(T,"focus",function(L){return ho(t,L)}),fe(T,"blur",function(L){return ka(t,L)})}var cu=[];mr.defineInitHook=function(t){return cu.push(t)};function pa(t,i,u,l){var f=t.doc,g;u==null&&(u="add"),u=="smart"&&(f.mode.indent?g=to(t,i).state:u="prev");var S=t.options.tabSize,T=ut(f,i),L=He(T.text,null,S);T.stateAfter&&(T.stateAfter=null);var V=T.text.match(/^\s*/)[0],le;if(!l&&!/\S/.test(T.text))le=0,u="not";else if(u=="smart"&&(le=f.mode.indent(g,T.text.slice(V.length),T.text),le==at||le>150)){if(!l)return;u="prev"}u=="prev"?i>f.first?le=He(ut(f,i-1).text,null,S):le=0:u=="add"?le=L+t.options.indentUnit:u=="subtract"?le=L-t.options.indentUnit:typeof u=="number"&&(le=L+u),le=Math.max(0,le);var de="",Se=0;if(t.options.indentWithTabs)for(var me=Math.floor(le/S);me;--me)Se+=S,de+=" ";if(Se<le&&(de+=or(le-Se)),de!=V)return Ua(f,de,D(i,0),D(i,V.length),"+input"),T.stateAfter=null,!0;for(var Ie=0;Ie<f.sel.ranges.length;Ie++){var Me=f.sel.ranges[Ie];if(Me.head.line==i&&Me.head.ch<V.length){var $e=D(i,V.length);zl(f,Ie,new qt($e,$e));break}}}var Xn=null;function Ws(t){Xn=t}function Ja(t,i,u,l,f){var g=t.doc;t.display.shift=!1,l||(l=g.sel);var S=+new Date-200,T=f=="paste"||t.state.pasteIncoming>S,L=Un(i),V=null;if(T&&l.ranges.length>1)if(Xn&&Xn.text.join(`
|
|
25
|
+
`)==i){if(l.ranges.length%Xn.text.length==0){V=[];for(var le=0;le<Xn.text.length;le++)V.push(g.splitLines(Xn.text[le]))}}else L.length==l.ranges.length&&t.options.pasteLinesPerSelection&&(V=Ct(L,function(Qe){return[Qe]}));for(var de=t.curOp.updateInput,Se=l.ranges.length-1;Se>=0;Se--){var me=l.ranges[Se],Ie=me.from(),Me=me.to();me.empty()&&(u&&u>0?Ie=D(Ie.line,Ie.ch-u):t.state.overwrite&&!T?Me=D(Me.line,Math.min(ut(g,Me.line).text.length,Me.ch+Je(L).length)):T&&Xn&&Xn.lineWise&&Xn.text.join(`
|
|
26
|
+
`)==L.join(`
|
|
27
|
+
`)&&(Ie=Me=D(Ie.line,0)));var $e={from:Ie,to:Me,text:V?V[Se%V.length]:L,origin:f||(T?"paste":t.state.cutIncoming>S?"cut":"+input")};Va(t.doc,$e),Br(t,"inputRead",t,$e)}i&&!T&&Cd(t,i),Ra(t),t.curOp.updateInput<2&&(t.curOp.updateInput=de),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Qf(t,i){var u=t.clipboardData&&t.clipboardData.getData("Text");if(u)return t.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&tn(i,function(){return Ja(i,u,0,null,"paste")}),!0}function Cd(t,i){if(!(!t.options.electricChars||!t.options.smartIndent))for(var u=t.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var g=t.getModeAt(f.head),S=!1;if(g.electricChars){for(var T=0;T<g.electricChars.length;T++)if(i.indexOf(g.electricChars.charAt(T))>-1){S=pa(t,f.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(ut(t.doc,f.head.line).text.slice(0,f.head.ch))&&(S=pa(t,f.head.line,"smart"));S&&Br(t,"electricInput",t,f.head.line)}}}function Zf(t){for(var i=[],u=[],l=0;l<t.doc.sel.ranges.length;l++){var f=t.doc.sel.ranges[l].head.line,g={anchor:D(f,0),head:D(f+1,0)};u.push(g),i.push(t.getRange(g.anchor,g.head))}return{text:i,ranges:u}}function _f(t,i,u,l){t.setAttribute("autocorrect",u?"":"off"),t.setAttribute("autocapitalize",l?"":"off"),t.setAttribute("spellcheck",!!i)}function du(){var t=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=_("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return W?t.style.width="1000px":t.setAttribute("wrap","off"),G&&(t.style.border="1px solid black"),_f(t),i}function Ed(t){var i=t.optionHandlers,u=t.helpers={};t.prototype={constructor:t,focus:function(){bt(this).focus(),this.display.input.focus()},setOption:function(l,f){var g=this.options,S=g[l];g[l]==f&&l!="mode"||(g[l]=f,i.hasOwnProperty(l)&&jr(this,i[l])(this,f,S),Ve(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](Bs(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,g=0;g<f.length;++g)if(f[g]==l||f[g].name==l)return f.splice(g,1),!0},addOverlay:rn(function(l,f){var g=l.token?l:t.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");ze(this.state.overlays,{mode:g,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(S){return S.priority}),this.state.modeGen++,dn(this)}),removeOverlay:rn(function(l){for(var f=this.state.overlays,g=0;g<f.length;++g){var S=f[g].modeSpec;if(S==l||typeof l=="string"&&S.name==l){f.splice(g,1),this.state.modeGen++,dn(this);return}}}),indentLine:rn(function(l,f,g){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),qi(this.doc,l)&&pa(this,l,f,g)}),indentSelection:rn(function(l){for(var f=this.doc.sel.ranges,g=-1,S=0;S<f.length;S++){var T=f[S];if(T.empty())T.head.line>g&&(pa(this,T.head.line,l,!0),g=T.head.line,S==this.doc.sel.primIndex&&Ra(this));else{var L=T.from(),V=T.to(),le=Math.max(g,L.line);g=Math.min(this.lastLine(),V.line-(V.ch?0:1))+1;for(var de=le;de<g;++de)pa(this,de,l);var Se=this.doc.sel.ranges;L.ch==0&&f.length==Se.length&&Se[S].from().ch>0&&zl(this.doc,S,new qt(L,Se[S].to()),jt)}}}),getTokenAt:function(l,f){return Uu(this,l,f)},getLineTokens:function(l,f){return Uu(this,D(l),f,!0)},getTokenTypeAt:function(l){l=ft(this.doc,l);var f=Bu(this,ut(this.doc,l.line)),g=0,S=(f.length-1)/2,T=l.ch,L;if(T==0)L=f[2];else for(;;){var V=g+S>>1;if((V?f[V*2-1]:0)>=T)S=V;else if(f[V*2+1]<T)g=V+1;else{L=f[V*2+2];break}}var le=L?L.indexOf("overlay "):-1;return le<0?L:le==0?null:L.slice(0,le-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?t.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var g=[];if(!u.hasOwnProperty(f))return g;var S=u[f],T=this.getModeAt(l);if(typeof T[f]=="string")S[T[f]]&&g.push(S[T[f]]);else if(T[f])for(var L=0;L<T[f].length;L++){var V=S[T[f][L]];V&&g.push(V)}else T.helperType&&S[T.helperType]?g.push(S[T.helperType]):S[T.name]&&g.push(S[T.name]);for(var le=0;le<S._global.length;le++){var de=S._global[le];de.pred(T,this)&&Te(g,de.val)==-1&&g.push(de.val)}return g},getStateAfter:function(l,f){var g=this.doc;return l=rr(g,l==null?g.first+g.size-1:l),to(this,l+1,f).state},cursorCoords:function(l,f){var g,S=this.doc.sel.primary();return l==null?g=S.head:typeof l=="object"?g=ft(this.doc,l):g=l?S.from():S.to(),$n(this,g,f||"page")},charCoords:function(l,f){return ds(this,ft(this.doc,l),f||"page")},coordsChar:function(l,f){return l=df(this,l,f||"page"),ps(this,l.left,l.top)},lineAtHeight:function(l,f){return l=df(this,{top:l,left:0},f||"page").top,wi(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,g){var S=!1,T;if(typeof l=="number"){var L=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>L&&(l=L,S=!0),T=ut(this.doc,l)}else T=l;return cs(this,T,{top:0,left:0},f||"page",g||S).top+(S?this.doc.height-Ci(T):0)},defaultTextHeight:function(){return Ia(this.display)},defaultCharWidth:function(){return oi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,g,S,T){var L=this.display;l=$n(this,ft(this.doc,l));var V=l.bottom,le=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),L.sizer.appendChild(f),S=="over")V=l.top;else if(S=="above"||S=="near"){var de=Math.max(L.wrapper.clientHeight,this.doc.height),Se=Math.max(L.sizer.clientWidth,L.lineSpace.clientWidth);(S=="above"||l.bottom+f.offsetHeight>de)&&l.top>f.offsetHeight?V=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=de&&(V=l.bottom),le+f.offsetWidth>Se&&(le=Se-f.offsetWidth)}f.style.top=V+"px",f.style.left=f.style.right="",T=="right"?(le=L.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(T=="left"?le=0:T=="middle"&&(le=(L.sizer.clientWidth-f.offsetWidth)/2),f.style.left=le+"px"),g&&Jc(this,{left:le,top:V,right:le+f.offsetWidth,bottom:V+f.offsetHeight})},triggerOnKeyDown:rn(Vs),triggerOnKeyPress:rn(Wf),triggerOnKeyUp:Uf,triggerOnMouseDown:rn(lu),execCommand:function(l){if(ua.hasOwnProperty(l))return ua[l].call(null,this)},triggerElectric:rn(function(l){Cd(this,l)}),findPosH:function(l,f,g,S){var T=1;f<0&&(T=-1,f=-f);for(var L=ft(this.doc,l),V=0;V<f&&(L=pu(this.doc,L,T,g,S),!L.hitSide);++V);return L},moveH:rn(function(l,f){var g=this;this.extendSelectionsBy(function(S){return g.display.shift||g.doc.extend||S.empty()?pu(g.doc,S.head,l,f,g.options.rtlMoveVisually):l<0?S.from():S.to()},it)}),deleteH:rn(function(l,f){var g=this.doc.sel,S=this.doc;g.somethingSelected()?S.replaceSelection("",null,"+delete"):$a(this,function(T){var L=pu(S,T.head,l,f,!1);return l<0?{from:L,to:T.head}:{from:T.head,to:L}})}),findPosV:function(l,f,g,S){var T=1,L=S;f<0&&(T=-1,f=-f);for(var V=ft(this.doc,l),le=0;le<f;++le){var de=$n(this,V,"div");if(L==null?L=de.left:de.left=L,V=qf(this,de,T,g),V.hitSide)break}return V},moveV:rn(function(l,f){var g=this,S=this.doc,T=[],L=!this.display.shift&&!S.extend&&S.sel.somethingSelected();if(S.extendSelectionsBy(function(le){if(L)return l<0?le.from():le.to();var de=$n(g,le.head,"div");le.goalColumn!=null&&(de.left=le.goalColumn),T.push(de.left);var Se=qf(g,de,l,f);return f=="page"&&le==S.sel.primary()&&Il(g,ds(g,Se,"div").top-de.top),Se},it),T.length)for(var V=0;V<S.sel.ranges.length;V++)S.sel.ranges[V].goalColumn=T[V]}),findWordAt:function(l){var f=this.doc,g=ut(f,l.line).text,S=l.ch,T=l.ch;if(g){var L=this.getHelper(l,"wordChars");(l.sticky=="before"||T==g.length)&&S?--S:++T;for(var V=g.charAt(S),le=Or(V,L)?function(de){return Or(de,L)}:/\s/.test(V)?function(de){return/\s/.test(de)}:function(de){return!/\s/.test(de)&&!Or(de)};S>0&&le(g.charAt(S-1));)--S;for(;T<g.length&&le(g.charAt(T));)++T}return new qt(D(l.line,S),D(l.line,T))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?je(this.display.cursorDiv,"CodeMirror-overwrite"):z(this.display.cursorDiv,"CodeMirror-overwrite"),Ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ke(tt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:rn(function(l,f){vo(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-ii(this)-this.display.barHeight,width:l.scrollWidth-ii(this)-this.display.barWidth,clientHeight:bl(this),clientWidth:Oi(this)}},scrollIntoView:rn(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:D(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?Xc(this,l):yf(this,l.from,l.to,l.margin)}),setSize:rn(function(l,f){var g=this,S=function(L){return typeof L=="number"||/^\d+$/.test(String(L))?L+"px":L};l!=null&&(this.display.wrapper.style.width=S(l)),f!=null&&(this.display.wrapper.style.height=S(f)),this.options.lineWrapping&&wl(this);var T=this.display.viewFrom;this.doc.iter(T,this.display.viewTo,function(L){if(L.widgets){for(var V=0;V<L.widgets.length;V++)if(L.widgets[V].noHScroll){Gi(g,T,"widget");break}}++T}),this.curOp.forceUpdate=!0,Ve(this,"refresh",this)}),operation:function(l){return tn(this,l)},startOperation:function(){return na(this)},endOperation:function(){return ia(this)},refresh:rn(function(){var l=this.display.cachedTextHeight;dn(this),this.curOp.forceUpdate=!0,uo(this),vo(this,this.doc.scrollLeft,this.doc.scrollTop),xo(this.display),(l==null||Math.abs(l-Ia(this.display))>.5||this.options.lineWrapping)&&ys(this),Ve(this,"refresh",this)}),swapDoc:rn(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Ul(this,l),uo(this),this.display.input.reset(),vo(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Br(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},pr(t),t.registerHelper=function(l,f,g){u.hasOwnProperty(l)||(u[l]=t[l]={_global:[]}),u[l][f]=g},t.registerGlobalHelper=function(l,f,g,S){t.registerHelper(l,f,S),u[l]._global.push({pred:g,val:S})}}function pu(t,i,u,l,f){var g=i,S=u,T=ut(t,i.line),L=f&&t.direction=="rtl"?-u:u;function V(){var _e=i.line+L;return _e<t.first||_e>=t.first+t.size?!1:(i=new D(_e,i.ch,i.sticky),T=ut(t,_e))}function le(_e){var Xe;if(l=="codepoint"){var et=T.text.charCodeAt(i.ch+(u>0?0:-1));if(isNaN(et))Xe=null;else{var yt=u>0?et>=55296&&et<56320:et>=56320&&et<57343;Xe=new D(i.line,Math.max(0,Math.min(T.text.length,i.ch+u*(yt?2:1))),-u)}}else f?Xe=Bf(t.cm,T,i,u):Xe=js(T,i,u);if(Xe==null)if(!_e&&V())i=tu(f,t.cm,T,i.line,L);else return!1;else i=Xe;return!0}if(l=="char"||l=="codepoint")le();else if(l=="column")le(!0);else if(l=="word"||l=="group")for(var de=null,Se=l=="group",me=t.cm&&t.cm.getHelper(i,"wordChars"),Ie=!0;!(u<0&&!le(!Ie));Ie=!1){var Me=T.text.charAt(i.ch)||`
|
|
28
|
+
`,$e=Or(Me,me)?"w":Se&&Me==`
|
|
29
|
+
`?"n":!Se||/\s/.test(Me)?null:"p";if(Se&&!Ie&&!$e&&($e="s"),de&&de!=$e){u<0&&(u=1,le(),i.sticky="after");break}if($e&&(de=$e),u>0&&!le(!Ie))break}var Qe=To(t,i,g,S,!0);return Re(g,Qe)&&(Qe.hitSide=!0),Qe}function qf(t,i,u,l){var f=t.doc,g=i.left,S;if(l=="page"){var T=Math.min(t.display.wrapper.clientHeight,bt(t).innerHeight||f(t).documentElement.clientHeight),L=Math.max(T-.5*Ia(t.display),3);S=(u>0?i.bottom:i.top)+u*L}else l=="line"&&(S=u>0?i.bottom+3:i.top-3);for(var V;V=ps(t,g,S),!!V.outside;){if(u<0?S<=0:S>=f.height){V.hitSide=!0;break}S+=u*5}return V}var ir=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Pe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ir.prototype.init=function(t){var i=this,u=this,l=u.cm,f=u.div=t.lineDiv;f.contentEditable=!0,_f(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(T){for(var L=T.target;L;L=L.parentNode){if(L==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(L.className))break}return!1}fe(f,"paste",function(T){!g(T)||lt(l,T)||Qf(T,l)||F<=11&&setTimeout(jr(l,function(){return i.updateFromDOM()}),20)}),fe(f,"compositionstart",function(T){i.composing={data:T.data,done:!1}}),fe(f,"compositionupdate",function(T){i.composing||(i.composing={data:T.data,done:!1})}),fe(f,"compositionend",function(T){i.composing&&(T.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),fe(f,"touchstart",function(){return u.forceCompositionEnd()}),fe(f,"input",function(){i.composing||i.readFromDOMSoon()});function S(T){if(!(!g(T)||lt(l,T))){if(l.somethingSelected())Ws({lineWise:!1,text:l.getSelections()}),T.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var L=Zf(l);Ws({lineWise:!0,text:L.text}),T.type=="cut"&&l.operation(function(){l.setSelections(L.ranges,0,jt),l.replaceSelection("",null,"cut")})}else return;if(T.clipboardData){T.clipboardData.clearData();var V=Xn.text.join(`
|
|
30
|
+
`);if(T.clipboardData.setData("Text",V),T.clipboardData.getData("Text")==V){T.preventDefault();return}}var le=du(),de=le.firstChild;l.display.lineSpace.insertBefore(le,l.display.lineSpace.firstChild),de.value=Xn.text.join(`
|
|
31
|
+
`);var Se=ke(f.ownerDocument);nt(de),setTimeout(function(){l.display.lineSpace.removeChild(le),Se.focus(),Se==f&&u.showPrimarySelection()},50)}}fe(f,"copy",S),fe(f,"cut",S)},ir.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},ir.prototype.prepareSelection=function(){var t=gf(this.cm,!1);return t.focus=ke(this.div.ownerDocument)==this.div,t},ir.prototype.showSelection=function(t,i){!t||!this.cm.display.view.length||((t.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(t))},ir.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ir.prototype.showPrimarySelection=function(){var t=this.getSelection(),i=this.cm,u=i.doc.sel.primary(),l=u.from(),f=u.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||f.line<i.display.viewFrom){t.removeAllRanges();return}var g=Hs(i,t.anchorNode,t.anchorOffset),S=Hs(i,t.focusNode,t.focusOffset);if(!(g&&!g.bad&&S&&!S.bad&&oe(Ht(g,S),l)==0&&oe(Pt(g,S),f)==0)){var T=i.display.view,L=l.line>=i.display.viewFrom&&hu(i,l)||{node:T[0].measure.map[2],offset:0},V=f.line<i.display.viewTo&&hu(i,f);if(!V){var le=T[T.length-1].measure,de=le.maps?le.maps[le.maps.length-1]:le.map;V={node:de[de.length-1],offset:de[de.length-2]-de[de.length-3]}}if(!L||!V){t.removeAllRanges();return}var Se=t.rangeCount&&t.getRangeAt(0),me;try{me=H(L.node,L.offset,V.offset,V.node)}catch(Ie){}me&&(!d&&i.state.focused?(t.collapse(L.node,L.offset),me.collapsed||(t.removeAllRanges(),t.addRange(me))):(t.removeAllRanges(),t.addRange(me)),Se&&t.anchorNode==null?t.addRange(Se):d&&this.startGracePeriod()),this.rememberSelection()}},ir.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},ir.prototype.showMultipleSelections=function(t){he(this.cm.display.cursorDiv,t.cursors),he(this.cm.display.selectionDiv,t.selection)},ir.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},ir.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var i=t.getRangeAt(0).commonAncestorContainer;return ye(this.div,i)},ir.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ke(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ir.prototype.blur=function(){this.div.blur()},ir.prototype.getField=function(){return this.div},ir.prototype.supportsTouch=function(){return!0},ir.prototype.receivedFocus=function(){var t=this,i=this;this.selectionInEditor()?setTimeout(function(){return t.pollSelection()},20):tn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function u(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},ir.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},ir.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),i=this.cm;if(N&&ee&&this.cm.display.gutterSpecs.length&&Od(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Hs(i,t.anchorNode,t.anchorOffset),l=Hs(i,t.focusNode,t.focusOffset);u&&l&&tn(i,function(){Yr(i.doc,yn(u,l),jt),(u.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},ir.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,i=t.display,u=t.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>t.firstLine()&&(l=D(l.line-1,ut(t.doc,l.line-1).length)),f.ch==ut(t.doc,f.line).text.length&&f.line<t.lastLine()&&(f=D(f.line+1,0)),l.line<i.viewFrom||f.line>i.viewTo-1)return!1;var g,S,T;l.line==i.viewFrom||(g=Rn(t,l.line))==0?(S=Zt(i.view[0].line),T=i.view[0].node):(S=Zt(i.view[g].line),T=i.view[g-1].node.nextSibling);var L=Rn(t,f.line),V,le;if(L==i.view.length-1?(V=i.viewTo-1,le=i.lineDiv.lastChild):(V=Zt(i.view[L+1].line)-1,le=i.view[L+1].node.previousSibling),!T)return!1;for(var de=t.doc.splitLines(Td(t,T,le,S,V)),Se=Si(t.doc,D(S,0),D(V,ut(t.doc,V).text.length));de.length>1&&Se.length>1;)if(Je(de)==Je(Se))de.pop(),Se.pop(),V--;else if(de[0]==Se[0])de.shift(),Se.shift(),S++;else break;for(var me=0,Ie=0,Me=de[0],$e=Se[0],Qe=Math.min(Me.length,$e.length);me<Qe&&Me.charCodeAt(me)==$e.charCodeAt(me);)++me;for(var _e=Je(de),Xe=Je(Se),et=Math.min(_e.length-(de.length==1?me:0),Xe.length-(Se.length==1?me:0));Ie<et&&_e.charCodeAt(_e.length-Ie-1)==Xe.charCodeAt(Xe.length-Ie-1);)++Ie;if(de.length==1&&Se.length==1&&S==l.line)for(;me&&me>l.ch&&_e.charCodeAt(_e.length-Ie-1)==Xe.charCodeAt(Xe.length-Ie-1);)me--,Ie++;de[de.length-1]=_e.slice(0,_e.length-Ie).replace(/^\u200b+/,""),de[0]=de[0].slice(me).replace(/\u200b+$/,"");var yt=D(S,me),ht=D(V,Se.length?Je(Se).length-Ie:0);if(de.length>1||de[0]||oe(yt,ht))return Ua(t.doc,de,yt,ht,"+input"),!0},ir.prototype.ensurePolled=function(){this.forceCompositionEnd()},ir.prototype.reset=function(){this.forceCompositionEnd()},ir.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ir.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},ir.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&tn(this.cm,function(){return dn(t.cm)})},ir.prototype.setUneditable=function(t){t.contentEditable="false"},ir.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||jr(this.cm,Ja)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},ir.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},ir.prototype.onContextMenu=function(){},ir.prototype.resetPosition=function(){},ir.prototype.needsContentAttribute=!0;function hu(t,i){var u=Sl(t,i.line);if(!u||u.hidden)return null;var l=ut(t.doc,i.line),f=of(u,l,i.line),g=st(l,t.doc.direction),S="left";if(g){var T=mt(g,i.ch);S=T%2?"right":"left"}var L=lf(f.map,i.ch,S);return L.offset=L.collapse=="right"?L.end:L.start,L}function Od(t){for(var i=t;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Xa(t,i){return i&&(t.bad=!0),t}function Td(t,i,u,l,f){var g="",S=!1,T=t.doc.lineSeparator(),L=!1;function V(me){return function(Ie){return Ie.id==me}}function le(){S&&(g+=T,L&&(g+=T),S=L=!1)}function de(me){me&&(le(),g+=me)}function Se(me){if(me.nodeType==1){var Ie=me.getAttribute("cm-text");if(Ie){de(Ie);return}var Me=me.getAttribute("cm-marker"),$e;if(Me){var Qe=t.findMarks(D(l,0),D(f+1,0),V(+Me));Qe.length&&($e=Qe[0].find(0))&&de(Si(t.doc,$e.from,$e.to).join(T));return}if(me.getAttribute("contenteditable")=="false")return;var _e=/^(pre|div|p|li|table|br)$/i.test(me.nodeName);if(!/^br$/i.test(me.nodeName)&&me.textContent.length==0)return;_e&&le();for(var Xe=0;Xe<me.childNodes.length;Xe++)Se(me.childNodes[Xe]);/^(pre|p)$/i.test(me.nodeName)&&(L=!0),_e&&(S=!0)}else me.nodeType==3&&de(me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Se(i),i!=u;)i=i.nextSibling,L=!1;return g}function Hs(t,i,u){var l;if(i==t.display.lineDiv){if(l=t.display.lineDiv.childNodes[u],!l)return Xa(t.clipPos(D(t.display.viewTo-1)),!0);i=null,u=0}else for(l=i;;l=l.parentNode){if(!l||l==t.display.lineDiv)return null;if(l.parentNode&&l.parentNode==t.display.lineDiv)break}for(var f=0;f<t.display.view.length;f++){var g=t.display.view[f];if(g.node==l)return Pd(g,i,u)}}function Pd(t,i,u){var l=t.text.firstChild,f=!1;if(!i||!ye(l,i))return Xa(D(Zt(t.line),0),!0);if(i==l&&(f=!0,i=l.childNodes[u],u=0,!i)){var g=t.rest?Je(t.rest):t.line;return Xa(D(Zt(g),g.text.length),f)}var S=i.nodeType==3?i:null,T=i;for(!S&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(S=i.firstChild,u&&(u=S.nodeValue.length));T.parentNode!=l;)T=T.parentNode;var L=t.measure,V=L.maps;function le($e,Qe,_e){for(var Xe=-1;Xe<(V?V.length:0);Xe++)for(var et=Xe<0?L.map:V[Xe],yt=0;yt<et.length;yt+=3){var ht=et[yt+2];if(ht==$e||ht==Qe){var Bt=Zt(Xe<0?t.line:t.rest[Xe]),fr=et[yt]+_e;return(_e<0||ht!=$e)&&(fr=et[yt+(_e?1:0)]),D(Bt,fr)}}}var de=le(S,T,u);if(de)return Xa(de,f);for(var Se=T.nextSibling,me=S?S.nodeValue.length-u:0;Se;Se=Se.nextSibling){if(de=le(Se,Se.firstChild,0),de)return Xa(D(de.line,de.ch-me),f);me+=Se.textContent.length}for(var Ie=T.previousSibling,Me=u;Ie;Ie=Ie.previousSibling){if(de=le(Ie,Ie.firstChild,-1),de)return Xa(D(de.line,de.ch+Me),f);Me+=Ie.textContent.length}}var Ar=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Pe,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ar.prototype.init=function(t){var i=this,u=this,l=this.cm;this.createField(t);var f=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),G&&(f.style.width="0px"),fe(f,"input",function(){E&&F>=9&&i.hasSelection&&(i.hasSelection=null),u.poll()}),fe(f,"paste",function(S){lt(l,S)||Qf(S,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function g(S){if(!lt(l,S)){if(l.somethingSelected())Ws({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var T=Zf(l);Ws({lineWise:!0,text:T.text}),S.type=="cut"?l.setSelections(T.ranges,null,jt):(u.prevInput="",f.value=T.text.join(`
|
|
32
|
+
`),nt(f))}else return;S.type=="cut"&&(l.state.cutIncoming=+new Date)}}fe(f,"cut",g),fe(f,"copy",g),fe(t.scroller,"paste",function(S){if(!(En(t,S)||lt(l,S))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var T=new Event("paste");T.clipboardData=S.clipboardData,f.dispatchEvent(T)}}),fe(t.lineSpace,"selectstart",function(S){En(t,S)||Nt(S)}),fe(f,"compositionstart",function(){var S=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:S,range:l.markText(S,l.getCursor("to"),{className:"CodeMirror-composing"})}}),fe(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Ar.prototype.createField=function(t){this.wrapper=du(),this.textarea=this.wrapper.firstChild},Ar.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Ar.prototype.prepareSelection=function(){var t=this.cm,i=t.display,u=t.doc,l=gf(t);if(t.options.moveInputWithCursor){var f=$n(t,u.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),S=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,f.top+S.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,f.left+S.left-g.left))}return l},Ar.prototype.showSelection=function(t){var i=this.cm,u=i.display;he(u.cursorDiv,t.cursors),he(u.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Ar.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var u=i.getSelection();this.textarea.value=u,i.state.focused&&nt(this.textarea),E&&F>=9&&(this.hasSelection=u)}else t||(this.prevInput=this.textarea.value="",E&&F>=9&&(this.hasSelection=null));this.resetting=!1}},Ar.prototype.getField=function(){return this.textarea},Ar.prototype.supportsTouch=function(){return!1},Ar.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||ke(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(t){}},Ar.prototype.blur=function(){this.textarea.blur()},Ar.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ar.prototype.receivedFocus=function(){this.slowPoll()},Ar.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Ar.prototype.fastPoll=function(){var t=!1,i=this;i.pollingFast=!0;function u(){var l=i.poll();!l&&!t?(t=!0,i.polling.set(60,u)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,u)},Ar.prototype.poll=function(){var t=this,i=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||xi(u)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var f=u.value;if(f==l&&!i.somethingSelected())return!1;if(E&&F>=9&&this.hasSelection===f||k&&/[\uf700-\uf7ff]/.test(f))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=f.charCodeAt(0);if(g==8203&&!l&&(l="\u200B"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var S=0,T=Math.min(l.length,f.length);S<T&&l.charCodeAt(S)==f.charCodeAt(S);)++S;return tn(i,function(){Ja(i,f.slice(S),l.length-S,null,t.composing?"*compose":null),f.length>1e3||f.indexOf(`
|
|
33
|
+
`)>-1?u.value=t.prevInput="":t.prevInput=f,t.composing&&(t.composing.range.clear(),t.composing.range=i.markText(t.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ar.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ar.prototype.onKeyPress=function(){E&&F>=9&&(this.hasSelection=null),this.fastPoll()},Ar.prototype.onContextMenu=function(t){var i=this,u=i.cm,l=u.display,f=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=zi(u,t),S=l.scroller.scrollTop;if(!g||ne)return;var T=u.options.resetSelectionOnContextMenu;T&&u.doc.sel.contains(g)==-1&&jr(u,Yr)(u.doc,yn(g),jt);var L=f.style.cssText,V=i.wrapper.style.cssText,le=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
34
|
+
top: `+(t.clientY-le.top-5)+"px; left: "+(t.clientX-le.left-5)+`px;
|
|
35
35
|
z-index: 1000; background: `+(E?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
36
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ce;U&&(ce=c.ownerDocument.defaultView.scrollY),l.input.focus(),U&&c.ownerDocument.defaultView.scrollTo(null,ce),l.input.reset(),u.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=he,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function me(){if(c.selectionStart!=null){var Le=u.somethingSelected(),ze="\u200B"+(Le?c.value:"");c.value="\u21DA",c.value=ze,i.prevInput=Le?"":"\u200B",c.selectionStart=1,c.selectionEnd=ze.length,l.selForContextMenu=u.doc.sel}}function he(){if(i.contextMenuPending==he&&(i.contextMenuPending=!1,i.wrapper.style.cssText=V,c.style.cssText=R,E&&F<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=w),c.selectionStart!=null)){(!E||E&&F<9)&&me();var Le=0,ze=function(){l.selForContextMenu==u.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput=="\u200B"?Or(u,pl)(u):Le++<10?l.detectingSelectAll=setTimeout(ze,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ze,200)}}if(E&&F>=9&&me(),re){Yr(t);var Te=function(){Be(window,"mouseup",Te),setTimeout(he,20)};ue(window,"mouseup",Te)}else setTimeout(he,50)},vr.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},vr.prototype.setUneditable=function(){},vr.prototype.needsContentAttribute=!1;function Uf(t,i){if(i=i?Oe(i):{},i.value=t.value,!i.tabindex&&t.tabIndex&&(i.tabindex=t.tabIndex),!i.placeholder&&t.placeholder&&(i.placeholder=t.placeholder),i.autofocus==null){var u=Ie(t.ownerDocument);i.autofocus=u==t||t.getAttribute("autofocus")!=null&&u==document.body}function l(){t.value=O.getValue()}var c;if(t.form&&(ue(t.form,"submit",l),!i.leaveSubmitMethodAlone)){var y=t.form;c=y.submit;try{var w=y.submit=function(){l(),y.submit=c,y.submit(),y.submit=w}}catch(R){}}i.finishInit=function(R){R.save=l,R.getTextArea=function(){return t},R.toTextArea=function(){R.toTextArea=isNaN,l(),t.parentNode.removeChild(R.getWrapperElement()),t.style.display="",t.form&&(Be(t.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=c))}},t.style.display="none";var O=ur(function(R){return t.parentNode.insertBefore(R,t.nextSibling)},i);return O}function xp(t){t.off=Be,t.on=ue,t.wheelEventPixels=Mi,t.Doc=on,t.splitLines=Vr,t.countColumn=Ue,t.findColumn=Ct,t.isWordChar=xr,t.Pass=rt,t.signal=Ke,t.Line=Ti,t.changeEnd=ni,t.scrollbarModel=Ku,t.Pos=M,t.cmpPos=ae,t.modes=Cn,t.mimeModes=En,t.resolveMode=zn,t.getMode=fn,t.modeExtensions=Sr,t.extendMode=fi,t.copyState=kn,t.startState=No,t.innerMode=va,t.commands=So,t.keyMap=bi,t.keyName=Cf,t.isModifierKey=Af,t.lookupKey=ka,t.normalizeKeyMap=id,t.StringStream=sr,t.SharedTextMarker=mo,t.TextMarker=yi,t.LineWidget=ho,t.e_preventDefault=Lt,t.e_stopPropagation=jt,t.e_stop=Yr,t.addClass=Ne,t.contains=ve,t.rmClass=z,t.keyNames=Di}Lf(ur),fa(ur);var Ml="iter insert remove copy getEditor constructor".split(" ");for(var Oo in on.prototype)on.prototype.hasOwnProperty(Oo)&&Ce(Ml,Oo)<0&&(ur.prototype[Oo]=function(t){return function(){return t.apply(this.doc,arguments)}}(on.prototype[Oo]));return pr(on),ur.inputStyles={textarea:vr,contenteditable:er},ur.defineMode=function(t){!ur.defaults.mode&&t!="null"&&(ur.defaults.mode=t),In.apply(this,arguments)},ur.defineMIME=Ha,ur.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),ur.defineMIME("text/plain","null"),ur.defineExtension=function(t,i){ur.prototype[t]=i},ur.defineDocExtension=function(t,i){on.prototype[t]=i},ur.fromTextArea=Uf,xp(ur),ur.version="5.65.9",ur})},49055:(v,T,s)=>{(function(p){p(s(23326))})(function(p){"use strict";p.defineMode("javascript",function(S,A){var h=S.indentUnit,E=A.statementIndent,F=A.jsonld,U=A.json||F,_=A.trackScope!==!1,Q=A.typescript,le=A.wordCharacters||/[\w$\xa1-\uffff]/,K=function(){function M(st){return{type:st,style:"keyword"}}var ae=M("keyword a"),Fe=M("keyword b"),He=M("keyword c"),St=M("keyword d"),Nt=M("operator"),Gt={type:"atom",style:"atom"};return{if:M("if"),while:ae,with:ae,else:Fe,do:Fe,try:Fe,finally:Fe,return:St,break:St,continue:St,new:M("new"),delete:He,void:He,throw:He,debugger:M("debugger"),var:M("var"),const:M("var"),let:M("var"),function:M("function"),catch:M("catch"),for:M("for"),switch:M("switch"),case:M("case"),default:M("default"),in:Nt,typeof:Nt,instanceof:Nt,true:Gt,false:Gt,null:Gt,undefined:Gt,NaN:Gt,Infinity:Gt,this:M("this"),class:M("class"),super:M("atom"),yield:He,export:M("export"),import:M("import"),extends:He,await:He}}(),ne=/[+\-*&%=<>!?|~^@]/,$=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function P(M){for(var ae=!1,Fe,He=!1;(Fe=M.next())!=null;){if(!ae){if(Fe=="/"&&!He)return;Fe=="["?He=!0:He&&Fe=="]"&&(He=!1)}ae=!ae&&Fe=="\\"}}var Y,L;function C(M,ae,Fe){return Y=M,L=Fe,ae}function k(M,ae){var Fe=M.next();if(Fe=='"'||Fe=="'")return ae.tokenize=B(Fe),ae.tokenize(M,ae);if(Fe=="."&&M.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(Fe=="."&&M.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Fe))return C(Fe);if(Fe=="="&&M.eat(">"))return C("=>","operator");if(Fe=="0"&&M.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(Fe))return M.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(Fe=="/")return M.eat("*")?(ae.tokenize=X,X(M,ae)):M.eat("/")?(M.skipToEnd(),C("comment","comment")):pi(M,ae,1)?(P(M),M.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(M.eat("="),C("operator","operator",M.current()));if(Fe=="`")return ae.tokenize=H,H(M,ae);if(Fe=="#"&&M.peek()=="!")return M.skipToEnd(),C("meta","meta");if(Fe=="#"&&M.eatWhile(le))return C("variable","property");if(Fe=="<"&&M.match("!--")||Fe=="-"&&M.match("->")&&!/\S/.test(M.string.slice(0,M.start)))return M.skipToEnd(),C("comment","comment");if(ne.test(Fe))return(Fe!=">"||!ae.lexical||ae.lexical.type!=">")&&(M.eat("=")?(Fe=="!"||Fe=="=")&&M.eat("="):/[<>*+\-|&?]/.test(Fe)&&(M.eat(Fe),Fe==">"&&M.eat(Fe))),Fe=="?"&&M.eat(".")?C("."):C("operator","operator",M.current());if(le.test(Fe)){M.eatWhile(le);var He=M.current();if(ae.lastType!="."){if(K.propertyIsEnumerable(He)){var St=K[He];return C(St.type,St.style,He)}if(He=="async"&&M.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",He)}return C("variable","variable",He)}}function B(M){return function(ae,Fe){var He=!1,St;if(F&&ae.peek()=="@"&&ae.match($))return Fe.tokenize=k,C("jsonld-keyword","meta");for(;(St=ae.next())!=null&&!(St==M&&!He);)He=!He&&St=="\\";return He||(Fe.tokenize=k),C("string","string")}}function X(M,ae){for(var Fe=!1,He;He=M.next();){if(He=="/"&&Fe){ae.tokenize=k;break}Fe=He=="*"}return C("comment","comment")}function H(M,ae){for(var Fe=!1,He;(He=M.next())!=null;){if(!Fe&&(He=="`"||He=="$"&&M.eat("{"))){ae.tokenize=k;break}Fe=!Fe&&He=="\\"}return C("quasi","string-2",M.current())}var D="([{}])";function re(M,ae){ae.fatArrowAt&&(ae.fatArrowAt=null);var Fe=M.string.indexOf("=>",M.start);if(!(Fe<0)){if(Q){var He=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(M.string.slice(M.start,Fe));He&&(Fe=He.index)}for(var St=0,Nt=!1,Gt=Fe-1;Gt>=0;--Gt){var st=M.string.charAt(Gt),Fn=D.indexOf(st);if(Fn>=0&&Fn<3){if(!St){++Gt;break}if(--St==0){st=="("&&(Nt=!0);break}}else if(Fn>=3&&Fn<6)++St;else if(le.test(st))Nt=!0;else if(/["'\/`]/.test(st))for(;;--Gt){if(Gt==0)return;var Jt=M.string.charAt(Gt-1);if(Jt==st&&M.string.charAt(Gt-2)!="\\"){Gt--;break}}else if(Nt&&!St){++Gt;break}}Nt&&!St&&(ae.fatArrowAt=Gt)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function z(M,ae,Fe,He,St,Nt){this.indented=M,this.column=ae,this.type=Fe,this.prev=St,this.info=Nt,He!=null&&(this.align=He)}function fe(M,ae){if(!_)return!1;for(var Fe=M.localVars;Fe;Fe=Fe.next)if(Fe.name==ae)return!0;for(var He=M.context;He;He=He.prev)for(var Fe=He.vars;Fe;Fe=Fe.next)if(Fe.name==ae)return!0}function pe(M,ae,Fe,He,St){var Nt=M.cc;for(q.state=M,q.stream=St,q.marked=null,q.cc=Nt,q.style=ae,M.lexical.hasOwnProperty("align")||(M.lexical.align=!0);;){var Gt=Nt.length?Nt.pop():U?et:rt;if(Gt(Fe,He)){for(;Nt.length&&Nt[Nt.length-1].lex;)Nt.pop()();return q.marked?q.marked:Fe=="variable"&&fe(M,He)?"variable-2":ae}}}var q={state:null,column:null,marked:null,cc:null};function Z(){for(var M=arguments.length-1;M>=0;M--)q.cc.push(arguments[M])}function G(){return Z.apply(null,arguments),!0}function ve(M,ae){for(var Fe=ae;Fe;Fe=Fe.next)if(Fe.name==M)return!0;return!1}function Ie(M){var ae=q.state;if(q.marked="def",!!_){if(ae.context){if(ae.lexical.info=="var"&&ae.context&&ae.context.block){var Fe=Ne(M,ae.context);if(Fe!=null){ae.context=Fe;return}}else if(!ve(M,ae.localVars)){ae.localVars=new _e(M,ae.localVars);return}}A.globalVars&&!ve(M,ae.globalVars)&&(ae.globalVars=new _e(M,ae.globalVars))}}function Ne(M,ae){if(ae)if(ae.block){var Fe=Ne(M,ae.prev);return Fe?Fe==ae.prev?ae:new tt(Fe,ae.vars,!0):null}else return ve(M,ae.vars)?ae:new tt(ae.prev,new _e(M,ae.vars),!1);else return null}function je(M){return M=="public"||M=="private"||M=="protected"||M=="abstract"||M=="readonly"}function tt(M,ae,Fe){this.prev=M,this.vars=ae,this.block=Fe}function _e(M,ae){this.name=M,this.next=ae}var mt=new _e("this",new _e("arguments",null));function De(){q.state.context=new tt(q.state.context,q.state.localVars,!1),q.state.localVars=mt}function Oe(){q.state.context=new tt(q.state.context,q.state.localVars,!0),q.state.localVars=null}De.lex=Oe.lex=!0;function Ue(){q.state.localVars=q.state.context.vars,q.state.context=q.state.context.prev}Ue.lex=!0;function Pe(M,ae){var Fe=function(){var He=q.state,St=He.indented;if(He.lexical.type=="stat")St=He.lexical.indented;else for(var Nt=He.lexical;Nt&&Nt.type==")"&&Nt.align;Nt=Nt.prev)St=Nt.indented;He.lexical=new z(St,q.stream.column(),M,null,He.lexical,ae)};return Fe.lex=!0,Fe}function Ce(){var M=q.state;M.lexical.prev&&(M.lexical.type==")"&&(M.indented=M.lexical.indented),M.lexical=M.lexical.prev)}Ce.lex=!0;function Ge(M){function ae(Fe){return Fe==M?G():M==";"||Fe=="}"||Fe==")"||Fe=="]"?Z():G(ae)}return ae}function rt(M,ae){return M=="var"?G(Pe("vardef",ae),si,Ge(";"),Ce):M=="keyword a"?G(Pe("form"),Ct,rt,Ce):M=="keyword b"?G(Pe("form"),rt,Ce):M=="keyword d"?q.stream.match(/^\s*$/,!1)?G():G(Pe("stat"),Zt,Ge(";"),Ce):M=="debugger"?G(Ge(";")):M=="{"?G(Pe("}"),Oe,Et,Ce,Ue):M==";"?G():M=="if"?(q.state.lexical.info=="else"&&q.state.cc[q.state.cc.length-1]==Ce&&q.state.cc.pop()(),G(Pe("form"),Ct,rt,Ce,Vr)):M=="function"?G(mn):M=="for"?G(Pe("form"),Oe,Oi,rt,Ue,Ce):M=="class"||Q&&ae=="interface"?(q.marked="keyword",G(Pe("form",M=="class"?M:ae),zn,Ce)):M=="variable"?Q&&ae=="declare"?(q.marked="keyword",G(rt)):Q&&(ae=="module"||ae=="enum"||ae=="type")&&q.stream.match(/^\s*\w/,!1)?(q.marked="keyword",ae=="enum"?G(zt):ae=="type"?G(En,Ge("operator"),Be,Ge(";")):G(Pe("form"),en,Ge("{"),Pe("}"),Et,Ce,Ce)):Q&&ae=="namespace"?(q.marked="keyword",G(Pe("form"),et,rt,Ce)):Q&&ae=="abstract"?(q.marked="keyword",G(rt)):G(Pe("stat"),Xe):M=="switch"?G(Pe("form"),Ct,Ge("{"),Pe("}","switch"),Oe,Et,Ce,Ce,Ue):M=="case"?G(et,Ge(":")):M=="default"?G(Ge(":")):M=="catch"?G(Pe("form"),De,$e,rt,Ce,Ue):M=="export"?G(Pe("stat"),kn,Ce):M=="import"?G(Pe("stat"),No,Ce):M=="async"?G(rt):ae=="@"?G(et,rt):Z(Pe("stat"),et,Ge(";"),Ce)}function $e(M){if(M=="(")return G(In,Ge(")"))}function et(M,ae){return kt(M,ae,!1)}function Ze(M,ae){return kt(M,ae,!0)}function Ct(M){return M!="("?Z():G(Pe(")"),Zt,Ge(")"),Ce)}function kt(M,ae,Fe){if(q.state.fatArrowAt==q.stream.start){var He=Fe?qr:br;if(M=="(")return G(De,Pe(")"),ct(In,")"),Ce,Ge("=>"),He,Ue);if(M=="variable")return Z(De,en,Ge("=>"),He,Ue)}var St=Fe?xt:lt;return J.hasOwnProperty(M)?G(St):M=="function"?G(mn,St):M=="class"||Q&&ae=="interface"?(q.marked="keyword",G(Pe("form"),Ha,Ce)):M=="keyword c"||M=="async"?G(Fe?Ze:et):M=="("?G(Pe(")"),Zt,Ge(")"),Ce,St):M=="operator"||M=="spread"?G(Fe?Ze:et):M=="["?G(Pe("]"),cn,Ce,St):M=="{"?it(Tt,"}",null,St):M=="quasi"?Z(Ft,St):M=="new"?G(xr(Fe)):G()}function Zt(M){return M.match(/[;\}\)\],]/)?Z():Z(et)}function lt(M,ae){return M==","?G(Zt):xt(M,ae,!1)}function xt(M,ae,Fe){var He=Fe==!1?lt:xt,St=Fe==!1?et:Ze;if(M=="=>")return G(De,Fe?qr:br,Ue);if(M=="operator")return/\+\+|--/.test(ae)||Q&&ae=="!"?G(He):Q&&ae=="<"&&q.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?G(Pe(">"),ct(Be,">"),Ce,He):ae=="?"?G(et,Ge(":"),St):G(St);if(M=="quasi")return Z(Ft,He);if(M!=";"){if(M=="(")return it(Ze,")","call",He);if(M==".")return G(gt,He);if(M=="[")return G(Pe("]"),Zt,Ge("]"),Ce,He);if(Q&&ae=="as")return q.marked="keyword",G(Be,He);if(M=="regexp")return q.state.lastType=q.marked="operator",q.stream.backUp(q.stream.pos-q.stream.start-1),G(St)}}function Ft(M,ae){return M!="quasi"?Z():ae.slice(ae.length-2)!="${"?G(Ft):G(Zt,Kr)}function Kr(M){if(M=="}")return q.marked="string-2",q.state.tokenize=H,G(Ft)}function br(M){return re(q.stream,q.state),Z(M=="{"?rt:et)}function qr(M){return re(q.stream,q.state),Z(M=="{"?rt:Ze)}function xr(M){return function(ae){return ae=="."?G(M?dr:Yt):ae=="variable"&&Q?G(_n,M?xt:lt):Z(M?Ze:et)}}function Yt(M,ae){if(ae=="target")return q.marked="keyword",G(lt)}function dr(M,ae){if(ae=="target")return q.marked="keyword",G(xt)}function Xe(M){return M==":"?G(Ce,rt):Z(lt,Ge(";"),Ce)}function gt(M){if(M=="variable")return q.marked="property",G()}function Tt(M,ae){if(M=="async")return q.marked="property",G(Tt);if(M=="variable"||q.style=="keyword"){if(q.marked="property",ae=="get"||ae=="set")return G(At);var Fe;return Q&&q.state.fatArrowAt==q.stream.start&&(Fe=q.stream.match(/^\s*:\s*/,!1))&&(q.state.fatArrowAt=q.stream.pos+Fe[0].length),G(Ot)}else{if(M=="number"||M=="string")return q.marked=F?"property":q.style+" property",G(Ot);if(M=="jsonld-keyword")return G(Ot);if(Q&&je(ae))return q.marked="keyword",G(Tt);if(M=="[")return G(et,nt,Ge("]"),Ot);if(M=="spread")return G(Ze,Ot);if(ae=="*")return q.marked="keyword",G(Tt);if(M==":")return Z(Ot)}}function At(M){return M!="variable"?Z(Ot):(q.marked="property",G(mn))}function Ot(M){if(M==":")return G(Ze);if(M=="(")return Z(mn)}function ct(M,ae,Fe){function He(St,Nt){if(Fe?Fe.indexOf(St)>-1:St==","){var Gt=q.state.lexical;return Gt.info=="call"&&(Gt.pos=(Gt.pos||0)+1),G(function(st,Fn){return st==ae||Fn==ae?Z():Z(M)},He)}return St==ae||Nt==ae?G():Fe&&Fe.indexOf(";")>-1?Z(M):G(Ge(ae))}return function(St,Nt){return St==ae||Nt==ae?G():Z(M,He)}}function it(M,ae,Fe){for(var He=3;He<arguments.length;He++)q.cc.push(arguments[He]);return G(Pe(ae,Fe),ct(M,ae),Ce)}function Et(M){return M=="}"?G():Z(rt,Et)}function nt(M,ae){if(Q){if(M==":")return G(Be);if(ae=="?")return G(nt)}}function Ve(M,ae){if(Q&&(M==":"||ae=="in"))return G(Be)}function ue(M){if(Q&&M==":")return q.stream.match(/^\s*\w+\s+is\b/,!1)?G(et,ge,Be):G(Be)}function ge(M,ae){if(ae=="is")return q.marked="keyword",G()}function Be(M,ae){if(ae=="keyof"||ae=="typeof"||ae=="infer"||ae=="readonly")return q.marked="keyword",G(ae=="typeof"?Ze:Be);if(M=="variable"||ae=="void")return q.marked="type",G(jt);if(ae=="|"||ae=="&")return G(Be);if(M=="string"||M=="number"||M=="atom")return G(jt);if(M=="[")return G(Pe("]"),ct(Be,"]",","),Ce,jt);if(M=="{")return G(Pe("}"),at,Ce,jt);if(M=="(")return G(ct(Lt,")"),Ke,jt);if(M=="<")return G(ct(Be,">"),Be);if(M=="quasi")return Z(Rt,jt)}function Ke(M){if(M=="=>")return G(Be)}function at(M){return M.match(/[\}\)\]]/)?G():M==","||M==";"?G(at):Z(bt,at)}function bt(M,ae){if(M=="variable"||q.style=="keyword")return q.marked="property",G(bt);if(ae=="?"||M=="number"||M=="string")return G(bt);if(M==":")return G(Be);if(M=="[")return G(Ge("variable"),Ve,Ge("]"),bt);if(M=="(")return Z(Cn,bt);if(!M.match(/[;\}\)\],]/))return G()}function Rt(M,ae){return M!="quasi"?Z():ae.slice(ae.length-2)!="${"?G(Rt):G(Be,pr)}function pr(M){if(M=="}")return q.marked="string-2",q.state.tokenize=H,G(Rt)}function Lt(M,ae){return M=="variable"&&q.stream.match(/^\s*[?:]/,!1)||ae=="?"?G(Lt):M==":"?G(Be):M=="spread"?G(Lt):Z(Be)}function jt(M,ae){if(ae=="<")return G(Pe(">"),ct(Be,">"),Ce,jt);if(ae=="|"||M=="."||ae=="&")return G(Be);if(M=="[")return G(Be,Ge("]"),jt);if(ae=="extends"||ae=="implements")return q.marked="keyword",G(Be);if(ae=="?")return G(Be,Ge(":"),Be)}function _n(M,ae){if(ae=="<")return G(Pe(">"),ct(Be,">"),Ce,jt)}function Yr(){return Z(Be,Jr)}function Jr(M,ae){if(ae=="=")return G(Be)}function si(M,ae){return ae=="enum"?(q.marked="keyword",G(zt)):Z(en,nt,tn,Pn)}function en(M,ae){if(Q&&je(ae))return q.marked="keyword",G(en);if(M=="variable")return Ie(ae),G();if(M=="spread")return G(en);if(M=="[")return it(ui,"]");if(M=="{")return it(li,"}")}function li(M,ae){return M=="variable"&&!q.stream.match(/^\s*:/,!1)?(Ie(ae),G(tn)):(M=="variable"&&(q.marked="property"),M=="spread"?G(en):M=="}"?Z():M=="["?G(et,Ge("]"),Ge(":"),li):G(Ge(":"),en,tn))}function ui(){return Z(en,tn)}function tn(M,ae){if(ae=="=")return G(Ze)}function Pn(M){if(M==",")return G(si)}function Vr(M,ae){if(M=="keyword b"&&ae=="else")return G(Pe("form","else"),rt,Ce)}function Oi(M,ae){if(ae=="await")return G(Oi);if(M=="(")return G(Pe(")"),ha,Ce)}function ha(M){return M=="var"?G(si,An):M=="variable"?G(An):Z(An)}function An(M,ae){return M==")"?G():M==";"?G(An):ae=="in"||ae=="of"?(q.marked="keyword",G(et,An)):Z(et,An)}function mn(M,ae){if(ae=="*")return q.marked="keyword",G(mn);if(M=="variable")return Ie(ae),G(mn);if(M=="(")return G(De,Pe(")"),ct(In,")"),Ce,ue,rt,Ue);if(Q&&ae=="<")return G(Pe(">"),ct(Yr,">"),Ce,mn)}function Cn(M,ae){if(ae=="*")return q.marked="keyword",G(Cn);if(M=="variable")return Ie(ae),G(Cn);if(M=="(")return G(De,Pe(")"),ct(In,")"),Ce,ue,Ue);if(Q&&ae=="<")return G(Pe(">"),ct(Yr,">"),Ce,Cn)}function En(M,ae){if(M=="keyword"||M=="variable")return q.marked="type",G(En);if(ae=="<")return G(Pe(">"),ct(Yr,">"),Ce)}function In(M,ae){return ae=="@"&&G(et,In),M=="spread"?G(In):Q&&je(ae)?(q.marked="keyword",G(In)):Q&&M=="this"?G(nt,tn):Z(en,nt,tn)}function Ha(M,ae){return M=="variable"?zn(M,ae):fn(M,ae)}function zn(M,ae){if(M=="variable")return Ie(ae),G(fn)}function fn(M,ae){if(ae=="<")return G(Pe(">"),ct(Yr,">"),Ce,fn);if(ae=="extends"||ae=="implements"||Q&&M==",")return ae=="implements"&&(q.marked="keyword"),G(Q?Be:et,fn);if(M=="{")return G(Pe("}"),Sr,Ce)}function Sr(M,ae){if(M=="async"||M=="variable"&&(ae=="static"||ae=="get"||ae=="set"||Q&&je(ae))&&q.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return q.marked="keyword",G(Sr);if(M=="variable"||q.style=="keyword")return q.marked="property",G(fi,Sr);if(M=="number"||M=="string")return G(fi,Sr);if(M=="[")return G(et,nt,Ge("]"),fi,Sr);if(ae=="*")return q.marked="keyword",G(Sr);if(Q&&M=="(")return Z(Cn,Sr);if(M==";"||M==",")return G(Sr);if(M=="}")return G();if(ae=="@")return G(et,Sr)}function fi(M,ae){if(ae=="!"||ae=="?")return G(fi);if(M==":")return G(Be,tn);if(ae=="=")return G(Ze);var Fe=q.state.lexical.prev,He=Fe&&Fe.info=="interface";return Z(He?Cn:mn)}function kn(M,ae){return ae=="*"?(q.marked="keyword",G(zi,Ge(";"))):ae=="default"?(q.marked="keyword",G(et,Ge(";"))):M=="{"?G(ct(va,"}"),zi,Ge(";")):Z(rt)}function va(M,ae){if(ae=="as")return q.marked="keyword",G(Ge("variable"));if(M=="variable")return Z(Ze,va)}function No(M){return M=="string"?G():M=="("?Z(et):M=="."?Z(lt):Z(sr,ot,zi)}function sr(M,ae){return M=="{"?it(sr,"}"):(M=="variable"&&Ie(ae),ae=="*"&&(q.marked="keyword"),G(ci))}function ot(M){if(M==",")return G(sr,ot)}function ci(M,ae){if(ae=="as")return q.marked="keyword",G(sr)}function zi(M,ae){if(ae=="from")return q.marked="keyword",G(et)}function cn(M){return M=="]"?G():Z(ct(Ze,"]"))}function zt(){return Z(Pe("form"),en,Ge("{"),Pe("}"),ct(di,"}"),Ce,Ce)}function di(){return Z(en,tn)}function Gi(M,ae){return M.lastType=="operator"||M.lastType==","||ne.test(ae.charAt(0))||/[,.]/.test(ae.charAt(0))}function pi(M,ae,Fe){return ae.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ae.lastType)||ae.lastType=="quasi"&&/\{\s*$/.test(M.string.slice(0,M.pos-(Fe||0)))}return{startState:function(M){var ae={tokenize:k,lastType:"sof",cc:[],lexical:new z((M||0)-h,0,"block",!1),localVars:A.localVars,context:A.localVars&&new tt(null,null,!1),indented:M||0};return A.globalVars&&typeof A.globalVars=="object"&&(ae.globalVars=A.globalVars),ae},token:function(M,ae){if(M.sol()&&(ae.lexical.hasOwnProperty("align")||(ae.lexical.align=!1),ae.indented=M.indentation(),re(M,ae)),ae.tokenize!=X&&M.eatSpace())return null;var Fe=ae.tokenize(M,ae);return Y=="comment"?Fe:(ae.lastType=Y=="operator"&&(L=="++"||L=="--")?"incdec":Y,pe(ae,Fe,Y,L,M))},indent:function(M,ae){if(M.tokenize==X||M.tokenize==H)return p.Pass;if(M.tokenize!=k)return 0;var Fe=ae&&ae.charAt(0),He=M.lexical,St;if(!/^\s*else\b/.test(ae))for(var Nt=M.cc.length-1;Nt>=0;--Nt){var Gt=M.cc[Nt];if(Gt==Ce)He=He.prev;else if(Gt!=Vr&&Gt!=Ue)break}for(;(He.type=="stat"||He.type=="form")&&(Fe=="}"||(St=M.cc[M.cc.length-1])&&(St==lt||St==xt)&&!/^[,\.=+\-*:?[\(]/.test(ae));)He=He.prev;E&&He.type==")"&&He.prev.type=="stat"&&(He=He.prev);var st=He.type,Fn=Fe==st;return st=="vardef"?He.indented+(M.lastType=="operator"||M.lastType==","?He.info.length+1:0):st=="form"&&Fe=="{"?He.indented:st=="form"?He.indented+h:st=="stat"?He.indented+(Gi(M,ae)?E||h:0):He.info=="switch"&&!Fn&&A.doubleIndentSwitch!=!1?He.indented+(/^(?:case|default)\b/.test(ae)?h:2*h):He.align?He.column+(Fn?0:1):He.indented+(Fn?0:h)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:U?null:"/*",blockCommentEnd:U?null:"*/",blockCommentContinue:U?null:" * ",lineComment:U?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:U?"json":"javascript",jsonldMode:F,jsonMode:U,expressionAllowed:pi,skipExpression:function(M){pe(M,"atom","atom","true",new p.StringStream("",2,null))}}}),p.registerHelper("wordChars","javascript",/[\w$]/),p.defineMIME("text/javascript","javascript"),p.defineMIME("text/ecmascript","javascript"),p.defineMIME("application/javascript","javascript"),p.defineMIME("application/x-javascript","javascript"),p.defineMIME("application/ecmascript","javascript"),p.defineMIME("application/json",{name:"javascript",json:!0}),p.defineMIME("application/x-json",{name:"javascript",json:!0}),p.defineMIME("application/manifest+json",{name:"javascript",json:!0}),p.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),p.defineMIME("text/typescript",{name:"javascript",typescript:!0}),p.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},13421:(v,T)=>{"use strict";/*!
|
|
36
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var de;W&&(de=f.ownerDocument.defaultView.scrollY),l.input.focus(),W&&f.ownerDocument.defaultView.scrollTo(null,de),l.input.reset(),u.somethingSelected()||(f.value=i.prevInput=" "),i.contextMenuPending=me,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Se(){if(f.selectionStart!=null){var Me=u.somethingSelected(),$e="\u200B"+(Me?f.value:"");f.value="\u21DA",f.value=$e,i.prevInput=Me?"":"\u200B",f.selectionStart=1,f.selectionEnd=$e.length,l.selForContextMenu=u.doc.sel}}function me(){if(i.contextMenuPending==me&&(i.contextMenuPending=!1,i.wrapper.style.cssText=V,f.style.cssText=L,E&&F<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=S),f.selectionStart!=null)){(!E||E&&F<9)&&Se();var Me=0,$e=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&i.prevInput=="\u200B"?jr(u,Ff)(u):Me++<10?l.detectingSelectAll=setTimeout($e,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout($e,200)}}if(E&&F>=9&&Se(),re){Hr(t);var Ie=function(){Be(window,"mouseup",Ie),setTimeout(me,20)};fe(window,"mouseup",Ie)}else setTimeout(me,50)},Ar.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Ar.prototype.setUneditable=function(){},Ar.prototype.needsContentAttribute=!1;function zs(t,i){if(i=i?Oe(i):{},i.value=t.value,!i.tabindex&&t.tabIndex&&(i.tabindex=t.tabIndex),!i.placeholder&&t.placeholder&&(i.placeholder=t.placeholder),i.autofocus==null){var u=ke(t.ownerDocument);i.autofocus=u==t||t.getAttribute("autofocus")!=null&&u==document.body}function l(){t.value=T.getValue()}var f;if(t.form&&(fe(t.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=t.form;f=g.submit;try{var S=g.submit=function(){l(),g.submit=f,g.submit(),g.submit=S}}catch(L){}}i.finishInit=function(L){L.save=l,L.getTextArea=function(){return t},L.toTextArea=function(){L.toTextArea=isNaN,l(),t.parentNode.removeChild(L.getWrapperElement()),t.style.display="",t.form&&(Be(t.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=f))}},t.style.display="none";var T=mr(function(L){return t.parentNode.insertBefore(L,t.nextSibling)},i);return T}function Id(t){t.off=Be,t.on=fe,t.wheelEventPixels=Cf,t.Doc=pn,t.splitLines=Un,t.countColumn=He,t.findColumn=Ft,t.isWordChar=tr,t.Pass=at,t.signal=Ve,t.Line=Gn,t.changeEnd=$i,t.scrollbarModel=yo,t.Pos=D,t.cmpPos=oe,t.modes=An,t.mimeModes=Cn,t.resolveMode=Wn,t.getMode=cn,t.modeExtensions=Pr,t.extendMode=ri,t.copyState=In,t.startState=Qo,t.innerMode=wa,t.commands=ua,t.keyMap=Ri,t.keyName=ql,t.isModifierKey=la,t.lookupKey=Ga,t.normalizeKeyMap=Df,t.StringStream=hr,t.SharedTextMarker=Ha,t.TextMarker=bn,t.LineWidget=Ro,t.e_preventDefault=Nt,t.e_stopPropagation=Tr,t.e_stop=Hr,t.addClass=je,t.contains=ye,t.rmClass=z,t.keyNames=Ki}Jf(mr),Ed(mr);var kd="iter insert remove copy getEditor constructor".split(" ");for(var Gs in pn.prototype)pn.prototype.hasOwnProperty(Gs)&&Te(kd,Gs)<0&&(mr.prototype[Gs]=function(t){return function(){return t.apply(this.doc,arguments)}}(pn.prototype[Gs]));return pr(pn),mr.inputStyles={textarea:Ar,contenteditable:ir},mr.defineMode=function(t){!mr.defaults.mode&&t!="null"&&(mr.defaults.mode=t),Pn.apply(this,arguments)},mr.defineMIME=Sa,mr.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),mr.defineMIME("text/plain","null"),mr.defineExtension=function(t,i){mr.prototype[t]=i},mr.defineDocExtension=function(t,i){pn.prototype[t]=i},mr.fromTextArea=zs,Id(mr),mr.version="5.65.9",mr})},49055:(h,O,s)=>{(function(d){d(s(23326))})(function(d){"use strict";d.defineMode("javascript",function(x,w){var A=x.indentUnit,E=w.statementIndent,F=w.jsonld,W=w.json||F,Z=w.trackScope!==!1,ee=w.typescript,ue=w.wordCharacters||/[\w$\xa1-\uffff]/,ne=function(){function D(ft){return{type:ft,style:"keyword"}}var oe=D("keyword a"),Re=D("keyword b"),Ge=D("keyword c"),Pt=D("keyword d"),Ht=D("operator"),rr={type:"atom",style:"atom"};return{if:D("if"),while:oe,with:oe,else:Re,do:Re,try:Re,finally:Re,return:Pt,break:Pt,continue:Pt,new:D("new"),delete:Ge,void:Ge,throw:Ge,debugger:D("debugger"),var:D("var"),const:D("var"),let:D("var"),function:D("function"),catch:D("catch"),for:D("for"),switch:D("switch"),case:D("case"),default:D("default"),in:Ht,typeof:Ht,instanceof:Ht,true:rr,false:rr,null:rr,undefined:rr,NaN:rr,Infinity:rr,this:D("this"),class:D("class"),super:D("atom"),yield:Ge,export:D("export"),import:D("import"),extends:Ge,await:Ge}}(),ae=/[+\-*&%=<>!?|~^@]/,Y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function P(D){for(var oe=!1,Re,Ge=!1;(Re=D.next())!=null;){if(!oe){if(Re=="/"&&!Ge)return;Re=="["?Ge=!0:Ge&&Re=="]"&&(Ge=!1)}oe=!oe&&Re=="\\"}}var G,N;function C(D,oe,Re){return G=D,N=Re,oe}function k(D,oe){var Re=D.next();if(Re=='"'||Re=="'")return oe.tokenize=j(Re),oe.tokenize(D,oe);if(Re=="."&&D.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(Re=="."&&D.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Re))return C(Re);if(Re=="="&&D.eat(">"))return C("=>","operator");if(Re=="0"&&D.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(Re))return D.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(Re=="/")return D.eat("*")?(oe.tokenize=J,J(D,oe)):D.eat("/")?(D.skipToEnd(),C("comment","comment")):Aa(D,oe,1)?(P(D),D.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(D.eat("="),C("operator","operator",D.current()));if(Re=="`")return oe.tokenize=K,K(D,oe);if(Re=="#"&&D.peek()=="!")return D.skipToEnd(),C("meta","meta");if(Re=="#"&&D.eatWhile(ue))return C("variable","property");if(Re=="<"&&D.match("!--")||Re=="-"&&D.match("->")&&!/\S/.test(D.string.slice(0,D.start)))return D.skipToEnd(),C("comment","comment");if(ae.test(Re))return(Re!=">"||!oe.lexical||oe.lexical.type!=">")&&(D.eat("=")?(Re=="!"||Re=="=")&&D.eat("="):/[<>*+\-|&?]/.test(Re)&&(D.eat(Re),Re==">"&&D.eat(Re))),Re=="?"&&D.eat(".")?C("."):C("operator","operator",D.current());if(ue.test(Re)){D.eatWhile(ue);var Ge=D.current();if(oe.lastType!="."){if(ne.propertyIsEnumerable(Ge)){var Pt=ne[Ge];return C(Pt.type,Pt.style,Ge)}if(Ge=="async"&&D.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",Ge)}return C("variable","variable",Ge)}}function j(D){return function(oe,Re){var Ge=!1,Pt;if(F&&oe.peek()=="@"&&oe.match(Y))return Re.tokenize=k,C("jsonld-keyword","meta");for(;(Pt=oe.next())!=null&&!(Pt==D&&!Ge);)Ge=!Ge&&Pt=="\\";return Ge||(Re.tokenize=k),C("string","string")}}function J(D,oe){for(var Re=!1,Ge;Ge=D.next();){if(Ge=="/"&&Re){oe.tokenize=k;break}Re=Ge=="*"}return C("comment","comment")}function K(D,oe){for(var Re=!1,Ge;(Ge=D.next())!=null;){if(!Re&&(Ge=="`"||Ge=="$"&&D.eat("{"))){oe.tokenize=k;break}Re=!Re&&Ge=="\\"}return C("quasi","string-2",D.current())}var U="([{}])";function re(D,oe){oe.fatArrowAt&&(oe.fatArrowAt=null);var Re=D.string.indexOf("=>",D.start);if(!(Re<0)){if(ee){var Ge=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(D.string.slice(D.start,Re));Ge&&(Re=Ge.index)}for(var Pt=0,Ht=!1,rr=Re-1;rr>=0;--rr){var ft=D.string.charAt(rr),Fn=U.indexOf(ft);if(Fn>=0&&Fn<3){if(!Pt){++rr;break}if(--Pt==0){ft=="("&&(Ht=!0);break}}else if(Fn>=3&&Fn<6)++Pt;else if(ue.test(ft))Ht=!0;else if(/["'\/`]/.test(ft))for(;;--rr){if(rr==0)return;var eo=D.string.charAt(rr-1);if(eo==ft&&D.string.charAt(rr-2)!="\\"){rr--;break}}else if(Ht&&!Pt){++rr;break}}Ht&&!Pt&&(oe.fatArrowAt=rr)}}var X={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function z(D,oe,Re,Ge,Pt,Ht){this.indented=D,this.column=oe,this.type=Re,this.prev=Pt,this.info=Ht,Ge!=null&&(this.align=Ge)}function ce(D,oe){if(!Z)return!1;for(var Re=D.localVars;Re;Re=Re.next)if(Re.name==oe)return!0;for(var Ge=D.context;Ge;Ge=Ge.prev)for(var Re=Ge.vars;Re;Re=Re.next)if(Re.name==oe)return!0}function he(D,oe,Re,Ge,Pt){var Ht=D.cc;for(_.state=D,_.stream=Pt,_.marked=null,_.cc=Ht,_.style=oe,D.lexical.hasOwnProperty("align")||(D.lexical.align=!0);;){var rr=Ht.length?Ht.pop():W?rt:at;if(rr(Re,Ge)){for(;Ht.length&&Ht[Ht.length-1].lex;)Ht.pop()();return _.marked?_.marked:Re=="variable"&&ce(D,Ge)?"variable-2":oe}}}var _={state:null,column:null,marked:null,cc:null};function Q(){for(var D=arguments.length-1;D>=0;D--)_.cc.push(arguments[D])}function H(){return Q.apply(null,arguments),!0}function ye(D,oe){for(var Re=oe;Re;Re=Re.next)if(Re.name==D)return!0;return!1}function ke(D){var oe=_.state;if(_.marked="def",!!Z){if(oe.context){if(oe.lexical.info=="var"&&oe.context&&oe.context.block){var Re=je(D,oe.context);if(Re!=null){oe.context=Re;return}}else if(!ye(D,oe.localVars)){oe.localVars=new tt(D,oe.localVars);return}}w.globalVars&&!ye(D,oe.globalVars)&&(oe.globalVars=new tt(D,oe.globalVars))}}function je(D,oe){if(oe)if(oe.block){var Re=je(D,oe.prev);return Re?Re==oe.prev?oe:new nt(Re,oe.vars,!0):null}else return ye(D,oe.vars)?oe:new nt(oe.prev,new tt(D,oe.vars),!1);else return null}function De(D){return D=="public"||D=="private"||D=="protected"||D=="abstract"||D=="readonly"}function nt(D,oe,Re){this.prev=D,this.vars=oe,this.block=Re}function tt(D,oe){this.name=D,this.next=oe}var bt=new tt("this",new tt("arguments",null));function Ne(){_.state.context=new nt(_.state.context,_.state.localVars,!1),_.state.localVars=bt}function Oe(){_.state.context=new nt(_.state.context,_.state.localVars,!0),_.state.localVars=null}Ne.lex=Oe.lex=!0;function He(){_.state.localVars=_.state.context.vars,_.state.context=_.state.context.prev}He.lex=!0;function Pe(D,oe){var Re=function(){var Ge=_.state,Pt=Ge.indented;if(Ge.lexical.type=="stat")Pt=Ge.lexical.indented;else for(var Ht=Ge.lexical;Ht&&Ht.type==")"&&Ht.align;Ht=Ht.prev)Pt=Ht.indented;Ge.lexical=new z(Pt,_.stream.column(),D,null,Ge.lexical,oe)};return Re.lex=!0,Re}function Te(){var D=_.state;D.lexical.prev&&(D.lexical.type==")"&&(D.indented=D.lexical.indented),D.lexical=D.lexical.prev)}Te.lex=!0;function Ye(D){function oe(Re){return Re==D?H():D==";"||Re=="}"||Re==")"||Re=="]"?Q():H(oe)}return oe}function at(D,oe){return D=="var"?H(Pe("vardef",oe),bi,Ye(";"),Te):D=="keyword a"?H(Pe("form"),Ft,at,Te):D=="keyword b"?H(Pe("form"),at,Te):D=="keyword d"?_.stream.match(/^\s*$/,!1)?H():H(Pe("stat"),or,Ye(";"),Te):D=="debugger"?H(Ye(";")):D=="{"?H(Pe("}"),Oe,Tt,Te,He):D==";"?H():D=="if"?(_.state.lexical.info=="else"&&_.state.cc[_.state.cc.length-1]==Te&&_.state.cc.pop()(),H(Pe("form"),Ft,at,Te,Un)):D=="function"?H(fn):D=="for"?H(Pe("form"),Oe,xi,at,He,Te):D=="class"||ee&&oe=="interface"?(_.marked="keyword",H(Pe("form",D=="class"?D:oe),Wn,Te)):D=="variable"?ee&&oe=="declare"?(_.marked="keyword",H(at)):ee&&(oe=="module"||oe=="enum"||oe=="type")&&_.stream.match(/^\s*\w/,!1)?(_.marked="keyword",oe=="enum"?H(Zt):oe=="type"?H(Cn,Ye("operator"),Be,Ye(";")):H(Pe("form"),qr,Ye("{"),Pe("}"),Tt,Te,Te)):ee&&oe=="namespace"?(_.marked="keyword",H(Pe("form"),rt,at,Te)):ee&&oe=="abstract"?(_.marked="keyword",H(at)):H(Pe("stat"),Ze):D=="switch"?H(Pe("form"),Ft,Ye("{"),Pe("}","switch"),Oe,Tt,Te,Te,He):D=="case"?H(rt,Ye(":")):D=="default"?H(Ye(":")):D=="catch"?H(Pe("form"),Ne,jt,at,Te,He):D=="export"?H(Pe("stat"),In,Te):D=="import"?H(Pe("stat"),Qo,Te):D=="async"?H(at):oe=="@"?H(rt,at):Q(Pe("stat"),rt,Ye(";"),Te)}function jt(D){if(D=="(")return H(Pn,Ye(")"))}function rt(D,oe){return ot(D,oe,!1)}function it(D,oe){return ot(D,oe,!0)}function Ft(D){return D!="("?Q():H(Pe(")"),or,Ye(")"),Te)}function ot(D,oe,Re){if(_.state.fatArrowAt==_.stream.start){var Ge=Re?un:Er;if(D=="(")return H(Ne,Pe(")"),dt(Pn,")"),Te,Ye("=>"),Ge,He);if(D=="variable")return Q(Ne,qr,Ye("=>"),Ge,He)}var Pt=Re?Ct:Je;return X.hasOwnProperty(D)?H(Pt):D=="function"?H(fn,Pt):D=="class"||ee&&oe=="interface"?(_.marked="keyword",H(Pe("form"),Sa,Te)):D=="keyword c"||D=="async"?H(Re?it:rt):D=="("?H(Pe(")"),or,Ye(")"),Te,Pt):D=="operator"||D=="spread"?H(Re?it:rt):D=="["?H(Pe("]"),kn,Te,Pt):D=="{"?mt(Lt,"}",null,Pt):D=="quasi"?Q(ze,Pt):D=="new"?H(tr(Re)):H()}function or(D){return D.match(/[;\}\)\],]/)?Q():Q(rt)}function Je(D,oe){return D==","?H(or):Ct(D,oe,!1)}function Ct(D,oe,Re){var Ge=Re==!1?Je:Ct,Pt=Re==!1?rt:it;if(D=="=>")return H(Ne,Re?un:Er,He);if(D=="operator")return/\+\+|--/.test(oe)||ee&&oe=="!"?H(Ge):ee&&oe=="<"&&_.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?H(Pe(">"),dt(Be,">"),Te,Ge):oe=="?"?H(rt,Ye(":"),Pt):H(Pt);if(D=="quasi")return Q(ze,Ge);if(D!=";"){if(D=="(")return mt(it,")","call",Ge);if(D==".")return H(gt,Ge);if(D=="[")return H(Pe("]"),or,Ye("]"),Te,Ge);if(ee&&oe=="as")return _.marked="keyword",H(Be,Ge);if(D=="regexp")return _.state.lastType=_.marked="operator",_.stream.backUp(_.stream.pos-_.stream.start-1),H(Pt)}}function ze(D,oe){return D!="quasi"?Q():oe.slice(oe.length-2)!="${"?H(ze):H(or,Zr)}function Zr(D){if(D=="}")return _.marked="string-2",_.state.tokenize=K,H(ze)}function Er(D){return re(_.stream,_.state),Q(D=="{"?at:rt)}function un(D){return re(_.stream,_.state),Q(D=="{"?at:it)}function tr(D){return function(oe){return oe=="."?H(D?_r:Or):oe=="variable"&&ee?H(yi,D?Ct:Je):Q(D?it:rt)}}function Or(D,oe){if(oe=="target")return _.marked="keyword",H(Je)}function _r(D,oe){if(oe=="target")return _.marked="keyword",H(Ct)}function Ze(D){return D==":"?H(Te,at):Q(Je,Ye(";"),Te)}function gt(D){if(D=="variable")return _.marked="property",H()}function Lt(D,oe){if(D=="async")return _.marked="property",H(Lt);if(D=="variable"||_.style=="keyword"){if(_.marked="property",oe=="get"||oe=="set")return H(Ot);var Re;return ee&&_.state.fatArrowAt==_.stream.start&&(Re=_.stream.match(/^\s*:\s*/,!1))&&(_.state.fatArrowAt=_.stream.pos+Re[0].length),H(kt)}else{if(D=="number"||D=="string")return _.marked=F?"property":_.style+" property",H(kt);if(D=="jsonld-keyword")return H(kt);if(ee&&De(oe))return _.marked="keyword",H(Lt);if(D=="[")return H(rt,st,Ye("]"),kt);if(D=="spread")return H(it,kt);if(oe=="*")return _.marked="keyword",H(Lt);if(D==":")return Q(kt)}}function Ot(D){return D!="variable"?Q(kt):(_.marked="property",H(fn))}function kt(D){if(D==":")return H(it);if(D=="(")return Q(fn)}function dt(D,oe,Re){function Ge(Pt,Ht){if(Re?Re.indexOf(Pt)>-1:Pt==","){var rr=_.state.lexical;return rr.info=="call"&&(rr.pos=(rr.pos||0)+1),H(function(ft,Fn){return ft==oe||Fn==oe?Q():Q(D)},Ge)}return Pt==oe||Ht==oe?H():Re&&Re.indexOf(";")>-1?Q(D):H(Ye(oe))}return function(Pt,Ht){return Pt==oe||Ht==oe?H():Q(D,Ge)}}function mt(D,oe,Re){for(var Ge=3;Ge<arguments.length;Ge++)_.cc.push(arguments[Ge]);return H(Pe(oe,Re),dt(D,oe),Te)}function Tt(D){return D=="}"?H():Q(at,Tt)}function st(D,oe){if(ee){if(D==":")return H(Be);if(oe=="?")return H(st)}}function Ue(D,oe){if(ee&&(D==":"||oe=="in"))return H(Be)}function fe(D){if(ee&&D==":")return _.stream.match(/^\s*\w+\s+is\b/,!1)?H(rt,be,Be):H(Be)}function be(D,oe){if(oe=="is")return _.marked="keyword",H()}function Be(D,oe){if(oe=="keyof"||oe=="typeof"||oe=="infer"||oe=="readonly")return _.marked="keyword",H(oe=="typeof"?it:Be);if(D=="variable"||oe=="void")return _.marked="type",H(Tr);if(oe=="|"||oe=="&")return H(Be);if(D=="string"||D=="number"||D=="atom")return H(Tr);if(D=="[")return H(Pe("]"),dt(Be,"]",","),Te,Tr);if(D=="{")return H(Pe("}"),lt,Te,Tr);if(D=="(")return H(dt(Nt,")"),Ve,Tr);if(D=="<")return H(dt(Be,">"),Be);if(D=="quasi")return Q(Mt,Tr)}function Ve(D){if(D=="=>")return H(Be)}function lt(D){return D.match(/[\}\)\]]/)?H():D==","||D==";"?H(lt):Q(vt,lt)}function vt(D,oe){if(D=="variable"||_.style=="keyword")return _.marked="property",H(vt);if(oe=="?"||D=="number"||D=="string")return H(vt);if(D==":")return H(Be);if(D=="[")return H(Ye("variable"),Ue,Ye("]"),vt);if(D=="(")return Q(An,vt);if(!D.match(/[;\}\)\],]/))return H()}function Mt(D,oe){return D!="quasi"?Q():oe.slice(oe.length-2)!="${"?H(Mt):H(Be,pr)}function pr(D){if(D=="}")return _.marked="string-2",_.state.tokenize=K,H(Mt)}function Nt(D,oe){return D=="variable"&&_.stream.match(/^\s*[?:]/,!1)||oe=="?"?H(Nt):D==":"?H(Be):D=="spread"?H(Nt):Q(Be)}function Tr(D,oe){if(oe=="<")return H(Pe(">"),dt(Be,">"),Te,Tr);if(oe=="|"||D=="."||oe=="&")return H(Be);if(D=="[")return H(Be,Ye("]"),Tr);if(oe=="extends"||oe=="implements")return _.marked="keyword",H(Be);if(oe=="?")return H(Be,Ye(":"),Be)}function yi(D,oe){if(oe=="<")return H(Pe(">"),dt(Be,">"),Te,Tr)}function Hr(){return Q(Be,zr)}function zr(D,oe){if(oe=="=")return H(Be)}function bi(D,oe){return oe=="enum"?(_.marked="keyword",H(Zt)):Q(qr,st,en,ti)}function qr(D,oe){if(ee&&De(oe))return _.marked="keyword",H(qr);if(D=="variable")return ke(oe),H();if(D=="spread")return H(qr);if(D=="[")return mt(ei,"]");if(D=="{")return mt(gr,"}")}function gr(D,oe){return D=="variable"&&!_.stream.match(/^\s*:/,!1)?(ke(oe),H(en)):(D=="variable"&&(_.marked="property"),D=="spread"?H(qr):D=="}"?Q():D=="["?H(rt,Ye("]"),Ye(":"),gr):H(Ye(":"),qr,en))}function ei(){return Q(qr,en)}function en(D,oe){if(oe=="=")return H(it)}function ti(D){if(D==",")return H(bi)}function Un(D,oe){if(D=="keyword b"&&oe=="else")return H(Pe("form","else"),at,Te)}function xi(D,oe){if(oe=="await")return H(xi);if(D=="(")return H(Pe(")"),_i,Te)}function _i(D){return D=="var"?H(bi,gn):D=="variable"?H(gn):Q(gn)}function gn(D,oe){return D==")"?H():D==";"?H(gn):oe=="in"||oe=="of"?(_.marked="keyword",H(rt,gn)):Q(rt,gn)}function fn(D,oe){if(oe=="*")return _.marked="keyword",H(fn);if(D=="variable")return ke(oe),H(fn);if(D=="(")return H(Ne,Pe(")"),dt(Pn,")"),Te,fe,at,He);if(ee&&oe=="<")return H(Pe(">"),dt(Hr,">"),Te,fn)}function An(D,oe){if(oe=="*")return _.marked="keyword",H(An);if(D=="variable")return ke(oe),H(An);if(D=="(")return H(Ne,Pe(")"),dt(Pn,")"),Te,fe,He);if(ee&&oe=="<")return H(Pe(">"),dt(Hr,">"),Te,An)}function Cn(D,oe){if(D=="keyword"||D=="variable")return _.marked="type",H(Cn);if(oe=="<")return H(Pe(">"),dt(Hr,">"),Te)}function Pn(D,oe){return oe=="@"&&H(rt,Pn),D=="spread"?H(Pn):ee&&De(oe)?(_.marked="keyword",H(Pn)):ee&&D=="this"?H(st,en):Q(qr,st,en)}function Sa(D,oe){return D=="variable"?Wn(D,oe):cn(D,oe)}function Wn(D,oe){if(D=="variable")return ke(oe),H(cn)}function cn(D,oe){if(oe=="<")return H(Pe(">"),dt(Hr,">"),Te,cn);if(oe=="extends"||oe=="implements"||ee&&D==",")return oe=="implements"&&(_.marked="keyword"),H(ee?Be:rt,cn);if(D=="{")return H(Pe("}"),Pr,Te)}function Pr(D,oe){if(D=="async"||D=="variable"&&(oe=="static"||oe=="get"||oe=="set"||ee&&De(oe))&&_.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return _.marked="keyword",H(Pr);if(D=="variable"||_.style=="keyword")return _.marked="property",H(ri,Pr);if(D=="number"||D=="string")return H(ri,Pr);if(D=="[")return H(rt,st,Ye("]"),ri,Pr);if(oe=="*")return _.marked="keyword",H(Pr);if(ee&&D=="(")return Q(An,Pr);if(D==";"||D==",")return H(Pr);if(D=="}")return H();if(oe=="@")return H(rt,Pr)}function ri(D,oe){if(oe=="!"||oe=="?")return H(ri);if(D==":")return H(Be,en);if(oe=="=")return H(it);var Re=_.state.lexical.prev,Ge=Re&&Re.info=="interface";return Q(Ge?An:fn)}function In(D,oe){return oe=="*"?(_.marked="keyword",H(Ui,Ye(";"))):oe=="default"?(_.marked="keyword",H(rt,Ye(";"))):D=="{"?H(dt(wa,"}"),Ui,Ye(";")):Q(at)}function wa(D,oe){if(oe=="as")return _.marked="keyword",H(Ye("variable"));if(D=="variable")return Q(it,wa)}function Qo(D){return D=="string"?H():D=="("?Q(rt):D=="."?Q(Je):Q(hr,ut,Ui)}function hr(D,oe){return D=="{"?mt(hr,"}"):(D=="variable"&&ke(oe),oe=="*"&&(_.marked="keyword"),H(Si))}function ut(D){if(D==",")return H(hr,ut)}function Si(D,oe){if(oe=="as")return _.marked="keyword",H(hr)}function Ui(D,oe){if(oe=="from")return _.marked="keyword",H(rt)}function kn(D){return D=="]"?H():Q(dt(it,"]"))}function Zt(){return Q(Pe("form"),qr,Ye("{"),Pe("}"),dt(wi,"}"),Te,Te)}function wi(){return Q(qr,en)}function qi(D,oe){return D.lastType=="operator"||D.lastType==","||ae.test(oe.charAt(0))||/[,.]/.test(oe.charAt(0))}function Aa(D,oe,Re){return oe.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(oe.lastType)||oe.lastType=="quasi"&&/\{\s*$/.test(D.string.slice(0,D.pos-(Re||0)))}return{startState:function(D){var oe={tokenize:k,lastType:"sof",cc:[],lexical:new z((D||0)-A,0,"block",!1),localVars:w.localVars,context:w.localVars&&new nt(null,null,!1),indented:D||0};return w.globalVars&&typeof w.globalVars=="object"&&(oe.globalVars=w.globalVars),oe},token:function(D,oe){if(D.sol()&&(oe.lexical.hasOwnProperty("align")||(oe.lexical.align=!1),oe.indented=D.indentation(),re(D,oe)),oe.tokenize!=J&&D.eatSpace())return null;var Re=oe.tokenize(D,oe);return G=="comment"?Re:(oe.lastType=G=="operator"&&(N=="++"||N=="--")?"incdec":G,he(oe,Re,G,N,D))},indent:function(D,oe){if(D.tokenize==J||D.tokenize==K)return d.Pass;if(D.tokenize!=k)return 0;var Re=oe&&oe.charAt(0),Ge=D.lexical,Pt;if(!/^\s*else\b/.test(oe))for(var Ht=D.cc.length-1;Ht>=0;--Ht){var rr=D.cc[Ht];if(rr==Te)Ge=Ge.prev;else if(rr!=Un&&rr!=He)break}for(;(Ge.type=="stat"||Ge.type=="form")&&(Re=="}"||(Pt=D.cc[D.cc.length-1])&&(Pt==Je||Pt==Ct)&&!/^[,\.=+\-*:?[\(]/.test(oe));)Ge=Ge.prev;E&&Ge.type==")"&&Ge.prev.type=="stat"&&(Ge=Ge.prev);var ft=Ge.type,Fn=Re==ft;return ft=="vardef"?Ge.indented+(D.lastType=="operator"||D.lastType==","?Ge.info.length+1:0):ft=="form"&&Re=="{"?Ge.indented:ft=="form"?Ge.indented+A:ft=="stat"?Ge.indented+(qi(D,oe)?E||A:0):Ge.info=="switch"&&!Fn&&w.doubleIndentSwitch!=!1?Ge.indented+(/^(?:case|default)\b/.test(oe)?A:2*A):Ge.align?Ge.column+(Fn?0:1):Ge.indented+(Fn?0:A)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:W?null:"/*",blockCommentEnd:W?null:"*/",blockCommentContinue:W?null:" * ",lineComment:W?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:W?"json":"javascript",jsonldMode:F,jsonMode:W,expressionAllowed:Aa,skipExpression:function(D){he(D,"atom","atom","true",new d.StringStream("",2,null))}}}),d.registerHelper("wordChars","javascript",/[\w$]/),d.defineMIME("text/javascript","javascript"),d.defineMIME("text/ecmascript","javascript"),d.defineMIME("application/javascript","javascript"),d.defineMIME("application/x-javascript","javascript"),d.defineMIME("application/ecmascript","javascript"),d.defineMIME("application/json",{name:"javascript",json:!0}),d.defineMIME("application/x-json",{name:"javascript",json:!0}),d.defineMIME("application/manifest+json",{name:"javascript",json:!0}),d.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),d.defineMIME("text/typescript",{name:"javascript",typescript:!0}),d.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},13421:(h,O)=>{"use strict";/*!
|
|
37
37
|
* cookie
|
|
38
38
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
39
39
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
40
40
|
* MIT Licensed
|
|
41
|
-
*/T.parse=S,T.serialize=A;var s=Object.prototype.toString,p=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function S(_,Q){if(typeof _!="string")throw new TypeError("argument str must be a string");for(var le={},K=Q||{},ne=K.decode||h,$=0;$<_.length;){var P=_.indexOf("=",$);if(P===-1)break;var Y=_.indexOf(";",$);if(Y===-1)Y=_.length;else if(Y<P){$=_.lastIndexOf(";",P-1)+1;continue}var L=_.slice($,P).trim();if(le[L]===void 0){var C=_.slice(P+1,Y).trim();C.charCodeAt(0)===34&&(C=C.slice(1,-1)),le[L]=U(C,ne)}$=Y+1}return le}function A(_,Q,le){var K=le||{},ne=K.encode||E;if(typeof ne!="function")throw new TypeError("option encode is invalid");if(!p.test(_))throw new TypeError("argument name is invalid");var $=ne(Q);if($&&!p.test($))throw new TypeError("argument val is invalid");var P=_+"="+$;if(K.maxAge!=null){var Y=K.maxAge-0;if(isNaN(Y)||!isFinite(Y))throw new TypeError("option maxAge is invalid");P+="; Max-Age="+Math.floor(Y)}if(K.domain){if(!p.test(K.domain))throw new TypeError("option domain is invalid");P+="; Domain="+K.domain}if(K.path){if(!p.test(K.path))throw new TypeError("option path is invalid");P+="; Path="+K.path}if(K.expires){var L=K.expires;if(!F(L)||isNaN(L.valueOf()))throw new TypeError("option expires is invalid");P+="; Expires="+L.toUTCString()}if(K.httpOnly&&(P+="; HttpOnly"),K.secure&&(P+="; Secure"),K.priority){var C=typeof K.priority=="string"?K.priority.toLowerCase():K.priority;switch(C){case"low":P+="; Priority=Low";break;case"medium":P+="; Priority=Medium";break;case"high":P+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(K.sameSite){var k=typeof K.sameSite=="string"?K.sameSite.toLowerCase():K.sameSite;switch(k){case!0:P+="; SameSite=Strict";break;case"lax":P+="; SameSite=Lax";break;case"strict":P+="; SameSite=Strict";break;case"none":P+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return P}function h(_){return _.indexOf("%")!==-1?decodeURIComponent(_):_}function E(_){return encodeURIComponent(_)}function F(_){return s.call(_)==="[object Date]"||_ instanceof Date}function U(_,Q){try{return Q(_)}catch(le){return _}}},27129:(v,T,s)=>{var p=s(53822);v.exports=p},86250:(v,T,s)=>{var p=s(21434);v.exports=p},61347:(v,T,s)=>{var p=s(27710);v.exports=p},42142:(v,T,s)=>{var p=s(31585);v.exports=p},21106:(v,T,s)=>{var p=s(55603);v.exports=p},97497:(v,T,s)=>{var p=s(31206);v.exports=p},28385:(v,T,s)=>{var p=s(26174);v.exports=p},85874:(v,T,s)=>{var p=s(87511);v.exports=p},86843:(v,T,s)=>{var p=s(24741);v.exports=p},37528:(v,T,s)=>{var p=s(4963);v.exports=p},81471:(v,T,s)=>{var p=s(21025);v.exports=p},5271:(v,T,s)=>{var p=s(27820);v.exports=p},87275:(v,T,s)=>{var p=s(74194);v.exports=p},13772:(v,T,s)=>{var p=s(32854);v.exports=p},97574:(v,T,s)=>{var p=s(60002);v.exports=p},69373:(v,T,s)=>{var p=s(28980);v.exports=p},70033:(v,T,s)=>{var p=s(45636);v.exports=p},77443:(v,T,s)=>{var p=s(66672);v.exports=p},88362:(v,T,s)=>{var p=s(46618);v.exports=p},89821:(v,T,s)=>{var p=s(42285);v.exports=p},8008:(v,T,s)=>{var p=s(58535);v.exports=p},52221:(v,T,s)=>{s(5454),s(19173);var p=s(57545);v.exports=p.Array.from},75078:(v,T,s)=>{s(8118);var p=s(57545);v.exports=p.Array.isArray},66135:(v,T,s)=>{s(59106);var p=s(45607);v.exports=p("Array").concat},77237:(v,T,s)=>{s(98939),s(46663);var p=s(45607);v.exports=p("Array").entries},83971:(v,T,s)=>{s(73436);var p=s(45607);v.exports=p("Array").filter},42087:(v,T,s)=>{s(10880);var p=s(45607);v.exports=p("Array").find},60098:(v,T,s)=>{s(9823);var p=s(45607);v.exports=p("Array").forEach},54216:(v,T,s)=>{s(70024);var p=s(45607);v.exports=p("Array").includes},92089:(v,T,s)=>{s(62276);var p=s(45607);v.exports=p("Array").indexOf},6209:(v,T,s)=>{s(63838);var p=s(45607);v.exports=p("Array").map},49922:(v,T,s)=>{s(99523);var p=s(45607);v.exports=p("Array").reverse},52671:(v,T,s)=>{s(65818);var p=s(45607);v.exports=p("Array").slice},51375:(v,T,s)=>{s(12178);var p=s(45607);v.exports=p("Array").splice},65739:(v,T,s)=>{s(98939),s(5454);var p=s(78703);v.exports=p},74030:(v,T,s)=>{s(25067),v.exports=s(98576)},41484:(v,T,s)=>{var p=s(8902),S=s(66135),A=Array.prototype;v.exports=function(h){var E=h.concat;return h===A||p(A,h)&&E===A.concat?S:E}},53669:(v,T,s)=>{var p=s(8902),S=s(83971),A=Array.prototype;v.exports=function(h){var E=h.filter;return h===A||p(A,h)&&E===A.filter?S:E}},37506:(v,T,s)=>{var p=s(8902),S=s(42087),A=Array.prototype;v.exports=function(h){var E=h.find;return h===A||p(A,h)&&E===A.find?S:E}},13173:(v,T,s)=>{var p=s(8902),S=s(54216),A=s(62840),h=Array.prototype,E=String.prototype;v.exports=function(F){var U=F.includes;return F===h||p(h,F)&&U===h.includes?S:typeof F=="string"||F===E||p(E,F)&&U===E.includes?A:U}},92604:(v,T,s)=>{var p=s(8902),S=s(92089),A=Array.prototype;v.exports=function(h){var E=h.indexOf;return h===A||p(A,h)&&E===A.indexOf?S:E}},263:(v,T,s)=>{var p=s(8902),S=s(6209),A=Array.prototype;v.exports=function(h){var E=h.map;return h===A||p(A,h)&&E===A.map?S:E}},80432:(v,T,s)=>{var p=s(8902),S=s(49922),A=Array.prototype;v.exports=function(h){var E=h.reverse;return h===A||p(A,h)&&E===A.reverse?S:E}},77663:(v,T,s)=>{var p=s(8902),S=s(52671),A=Array.prototype;v.exports=function(h){var E=h.slice;return h===A||p(A,h)&&E===A.slice?S:E}},45063:(v,T,s)=>{var p=s(8902),S=s(51375),A=Array.prototype;v.exports=function(h){var E=h.splice;return h===A||p(A,h)&&E===A.splice?S:E}},7769:(v,T,s)=>{var p=s(8902),S=s(14820),A=String.prototype;v.exports=function(h){var E=h.startsWith;return typeof h=="string"||h===A||p(A,h)&&E===A.startsWith?S:E}},96056:(v,T,s)=>{s(59704);var p=s(57545),S=s(86298);p.JSON||(p.JSON={stringify:JSON.stringify}),v.exports=function(h,E,F){return S(p.JSON.stringify,null,arguments)}},99936:(v,T,s)=>{s(93582);var p=s(57545);v.exports=p.Object.assign},23213:(v,T,s)=>{s(73113);var p=s(57545),S=p.Object;v.exports=function(h,E){return S.create(h,E)}},38724:(v,T,s)=>{s(57585);var p=s(57545),S=p.Object,A=v.exports=function(E,F){return S.defineProperties(E,F)};S.defineProperties.sham&&(A.sham=!0)},63512:(v,T,s)=>{s(20297);var p=s(57545),S=p.Object,A=v.exports=function(E,F,U){return S.defineProperty(E,F,U)};S.defineProperty.sham&&(A.sham=!0)},2335:(v,T,s)=>{s(27442);var p=s(57545);v.exports=p.Object.entries},60632:(v,T,s)=>{s(89189);var p=s(57545),S=p.Object,A=v.exports=function(E,F){return S.getOwnPropertyDescriptor(E,F)};S.getOwnPropertyDescriptor.sham&&(A.sham=!0)},81056:(v,T,s)=>{s(62509);var p=s(57545);v.exports=p.Object.getOwnPropertyDescriptors},12921:(v,T,s)=>{s(36187);var p=s(57545);v.exports=p.Object.getOwnPropertySymbols},8168:(v,T,s)=>{s(19234);var p=s(57545);v.exports=p.Object.getPrototypeOf},38651:(v,T,s)=>{s(92647);var p=s(57545);v.exports=p.Object.keys},33083:(v,T,s)=>{s(13222);var p=s(57545);v.exports=p.Object.setPrototypeOf},93154:(v,T,s)=>{s(4242),s(98939),s(46663),s(59021),s(97884),s(78885),s(91868),s(5454);var p=s(57545);v.exports=p.Promise},62840:(v,T,s)=>{s(39247);var p=s(45607);v.exports=p("String").includes},14820:(v,T,s)=>{s(32991);var p=s(45607);v.exports=p("String").startsWith},85008:(v,T,s)=>{s(59106),s(46663),s(36187),s(19781),s(50492),s(66681),s(29594),s(63665),s(29017),s(11250),s(79786),s(90503),s(16565),s(69322),s(13610),s(36886),s(33514),s(68671),s(58556),s(71367);var p=s(57545);v.exports=p.Symbol},994:(v,T,s)=>{s(98939),s(46663),s(5454),s(63665);var p=s(89207);v.exports=p.f("iterator")},31293:(v,T,s)=>{s(98939),s(46663),s(33983);var p=s(57545);v.exports=p.WeakMap},62813:(v,T,s)=>{v.exports=s(52708)},68664:(v,T,s)=>{v.exports=s(58541)},21457:(v,T,s)=>{v.exports=s(37020)},36516:(v,T,s)=>{v.exports=s(79987)},87611:(v,T,s)=>{v.exports=s(86812)},4161:(v,T,s)=>{v.exports=s(51024)},75159:(v,T,s)=>{v.exports=s(32747)},87708:(v,T,s)=>{v.exports=s(85918)},42937:(v,T,s)=>{v.exports=s(21626)},69297:(v,T,s)=>{v.exports=s(77021)},10353:(v,T,s)=>{v.exports=s(18281)},8026:(v,T,s)=>{v.exports=s(90229)},67362:(v,T,s)=>{v.exports=s(53949)},57532:(v,T,s)=>{v.exports=s(11795)},61903:(v,T,s)=>{v.exports=s(75090)},42044:(v,T,s)=>{v.exports=s(27994)},60902:(v,T,s)=>{v.exports=s(45483)},2214:(v,T,s)=>{v.exports=s(35796)},983:(v,T,s)=>{v.exports=s(79918)},59256:(v,T,s)=>{v.exports=s(82185)},95659:(v,T,s)=>{v.exports=s(39982)},52708:(v,T,s)=>{var p=s(27129);v.exports=p},58541:(v,T,s)=>{var p=s(86250);v.exports=p},37020:(v,T,s)=>{var p=s(61347);v.exports=p},79987:(v,T,s)=>{s(5363);var p=s(42142);v.exports=p},86812:(v,T,s)=>{var p=s(21106);v.exports=p},51024:(v,T,s)=>{var p=s(97497);v.exports=p},32747:(v,T,s)=>{var p=s(28385);v.exports=p},85918:(v,T,s)=>{var p=s(85874);v.exports=p},21626:(v,T,s)=>{var p=s(86843);v.exports=p},77021:(v,T,s)=>{var p=s(37528);v.exports=p},18281:(v,T,s)=>{var p=s(81471);v.exports=p},90229:(v,T,s)=>{var p=s(5271);v.exports=p},53949:(v,T,s)=>{var p=s(87275);v.exports=p},11795:(v,T,s)=>{var p=s(13772);v.exports=p},75090:(v,T,s)=>{var p=s(97574);v.exports=p},27994:(v,T,s)=>{var p=s(69373);v.exports=p},45483:(v,T,s)=>{var p=s(70033);v.exports=p},35796:(v,T,s)=>{var p=s(77443);v.exports=p},79918:(v,T,s)=>{var p=s(88362);s(12752),s(14562),s(25363),s(69355),v.exports=p},82185:(v,T,s)=>{var p=s(89821);s(60177),s(9031),s(96658),s(54212),s(18658),s(71875),s(54592),s(26680),v.exports=p},39982:(v,T,s)=>{var p=s(8008);v.exports=p},66235:(v,T,s)=>{var p=s(16447),S=s(79288),A=TypeError;v.exports=function(h){if(p(h))return h;throw A(S(h)+" is not a function")}},71404:(v,T,s)=>{var p=s(22091),S=s(79288),A=TypeError;v.exports=function(h){if(p(h))return h;throw A(S(h)+" is not a constructor")}},7757:(v,T,s)=>{var p=s(16447),S=String,A=TypeError;v.exports=function(h){if(typeof h=="object"||p(h))return h;throw A("Can't set "+S(h)+" as a prototype")}},67423:v=>{v.exports=function(){}},46961:(v,T,s)=>{var p=s(8902),S=TypeError;v.exports=function(A,h){if(p(h,A))return A;throw S("Incorrect invocation")}},31138:(v,T,s)=>{var p=s(35744),S=String,A=TypeError;v.exports=function(h){if(p(h))return h;throw A(S(h)+" is not an object")}},80410:(v,T,s)=>{var p=s(76192);v.exports=p(function(){if(typeof ArrayBuffer=="function"){var S=new ArrayBuffer(8);Object.isExtensible(S)&&Object.defineProperty(S,"a",{value:8})}})},87397:(v,T,s)=>{"use strict";var p=s(50454).forEach,S=s(10424),A=S("forEach");v.exports=A?[].forEach:function(E){return p(this,E,arguments.length>1?arguments[1]:void 0)}},20841:(v,T,s)=>{"use strict";var p=s(8043),S=s(18922),A=s(71795),h=s(21635),E=s(96109),F=s(22091),U=s(84104),_=s(49361),Q=s(61669),le=s(78703),K=Array;v.exports=function($){var P=A($),Y=F(this),L=arguments.length,C=L>1?arguments[1]:void 0,k=C!==void 0;k&&(C=p(C,L>2?arguments[2]:void 0));var B=le(P),X=0,H,D,re,J,z,fe;if(B&&!(this===K&&E(B)))for(J=Q(P,B),z=J.next,D=Y?new this:[];!(re=S(z,J)).done;X++)fe=k?h(J,C,[re.value,X],!0):re.value,_(D,X,fe);else for(H=U(P),D=Y?new this(H):K(H);H>X;X++)fe=k?C(P[X],X):P[X],_(D,X,fe);return D.length=X,D}},48180:(v,T,s)=>{var p=s(20101),S=s(97739),A=s(84104),h=function(E){return function(F,U,_){var Q=p(F),le=A(Q),K=S(_,le),ne;if(E&&U!=U){for(;le>K;)if(ne=Q[K++],ne!=ne)return!0}else for(;le>K;K++)if((E||K in Q)&&Q[K]===U)return E||K||0;return!E&&-1}};v.exports={includes:h(!0),indexOf:h(!1)}},50454:(v,T,s)=>{var p=s(8043),S=s(84120),A=s(2202),h=s(71795),E=s(84104),F=s(71321),U=S([].push),_=function(Q){var le=Q==1,K=Q==2,ne=Q==3,$=Q==4,P=Q==6,Y=Q==7,L=Q==5||P;return function(C,k,B,X){for(var H=h(C),D=A(H),re=p(k,B),J=E(D),z=0,fe=X||F,pe=le?fe(C,J):K||Y?fe(C,0):void 0,q,Z;J>z;z++)if((L||z in D)&&(q=D[z],Z=re(q,z,H),Q))if(le)pe[z]=Z;else if(Z)switch(Q){case 3:return!0;case 5:return q;case 6:return z;case 2:U(pe,q)}else switch(Q){case 4:return!1;case 7:U(pe,q)}return P?-1:ne||$?$:pe}};v.exports={forEach:_(0),map:_(1),filter:_(2),some:_(3),every:_(4),find:_(5),findIndex:_(6),filterReject:_(7)}},90242:(v,T,s)=>{var p=s(76192),S=s(18182),A=s(14218),h=S("species");v.exports=function(E){return A>=51||!p(function(){var F=[],U=F.constructor={};return U[h]=function(){return{foo:1}},F[E](Boolean).foo!==1})}},10424:(v,T,s)=>{"use strict";var p=s(76192);v.exports=function(S,A){var h=[][S];return!!h&&p(function(){h.call(null,A||function(){return 1},1)})}},95072:(v,T,s)=>{"use strict";var p=s(50069),S=s(34770),A=TypeError,h=Object.getOwnPropertyDescriptor,E=p&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(F){return F instanceof TypeError}}();v.exports=E?function(F,U){if(S(F)&&!h(F,"length").writable)throw A("Cannot set read only .length");return F.length=U}:function(F,U){return F.length=U}},1923:(v,T,s)=>{var p=s(97739),S=s(84104),A=s(49361),h=Array,E=Math.max;v.exports=function(F,U,_){for(var Q=S(F),le=p(U,Q),K=p(_===void 0?Q:_,Q),ne=h(E(K-le,0)),$=0;le<K;le++,$++)A(ne,$,F[le]);return ne.length=$,ne}},93096:(v,T,s)=>{var p=s(84120);v.exports=p([].slice)},6614:(v,T,s)=>{var p=s(1923),S=Math.floor,A=function(F,U){var _=F.length,Q=S(_/2);return _<8?h(F,U):E(F,A(p(F,0,Q),U),A(p(F,Q),U),U)},h=function(F,U){for(var _=F.length,Q=1,le,K;Q<_;){for(K=Q,le=F[Q];K&&U(F[K-1],le)>0;)F[K]=F[--K];K!==Q++&&(F[K]=le)}return F},E=function(F,U,_,Q){for(var le=U.length,K=_.length,ne=0,$=0;ne<le||$<K;)F[ne+$]=ne<le&&$<K?Q(U[ne],_[$])<=0?U[ne++]:_[$++]:ne<le?U[ne++]:_[$++];return F};v.exports=A},83712:(v,T,s)=>{var p=s(34770),S=s(22091),A=s(35744),h=s(18182),E=h("species"),F=Array;v.exports=function(U){var _;return p(U)&&(_=U.constructor,S(_)&&(_===F||p(_.prototype))?_=void 0:A(_)&&(_=_[E],_===null&&(_=void 0))),_===void 0?F:_}},71321:(v,T,s)=>{var p=s(83712);v.exports=function(S,A){return new(p(S))(A===0?0:A)}},21635:(v,T,s)=>{var p=s(31138),S=s(66639);v.exports=function(A,h,E,F){try{return F?h(p(E)[0],E[1]):h(E)}catch(U){S(A,"throw",U)}}},19770:(v,T,s)=>{var p=s(18182),S=p("iterator"),A=!1;try{var h=0,E={next:function(){return{done:!!h++}},return:function(){A=!0}};E[S]=function(){return this},Array.from(E,function(){throw 2})}catch(F){}v.exports=function(F,U){if(!U&&!A)return!1;var _=!1;try{var Q={};Q[S]=function(){return{next:function(){return{done:_=!0}}}},F(Q)}catch(le){}return _}},29272:(v,T,s)=>{var p=s(41258),S=p({}.toString),A=p("".slice);v.exports=function(h){return A(S(h),8,-1)}},4696:(v,T,s)=>{var p=s(83471),S=s(16447),A=s(29272),h=s(18182),E=h("toStringTag"),F=Object,U=A(function(){return arguments}())=="Arguments",_=function(Q,le){try{return Q[le]}catch(K){}};v.exports=p?A:function(Q){var le,K,ne;return Q===void 0?"Undefined":Q===null?"Null":typeof(K=_(le=F(Q),E))=="string"?K:U?A(le):(ne=A(le))=="Object"&&S(le.callee)?"Arguments":ne}},51057:(v,T,s)=>{"use strict";var p=s(84120),S=s(35090),A=s(32861).getWeakData,h=s(46961),E=s(31138),F=s(75646),U=s(35744),_=s(33442),Q=s(50454),le=s(64500),K=s(73326),ne=K.set,$=K.getterFor,P=Q.find,Y=Q.findIndex,L=p([].splice),C=0,k=function(H){return H.frozen||(H.frozen=new B)},B=function(){this.entries=[]},X=function(H,D){return P(H.entries,function(re){return re[0]===D})};B.prototype={get:function(H){var D=X(this,H);if(D)return D[1]},has:function(H){return!!X(this,H)},set:function(H,D){var re=X(this,H);re?re[1]=D:this.entries.push([H,D])},delete:function(H){var D=Y(this.entries,function(re){return re[0]===H});return~D&&L(this.entries,D,1),!!~D}},v.exports={getConstructor:function(H,D,re,J){var z=H(function(Z,G){h(Z,fe),ne(Z,{type:D,id:C++,frozen:void 0}),F(G)||_(G,Z[J],{that:Z,AS_ENTRIES:re})}),fe=z.prototype,pe=$(D),q=function(Z,G,ve){var Ie=pe(Z),Ne=A(E(G),!0);return Ne===!0?k(Ie).set(G,ve):Ne[Ie.id]=ve,Z};return S(fe,{delete:function(Z){var G=pe(this);if(!U(Z))return!1;var ve=A(Z);return ve===!0?k(G).delete(Z):ve&&le(ve,G.id)&&delete ve[G.id]},has:function(G){var ve=pe(this);if(!U(G))return!1;var Ie=A(G);return Ie===!0?k(ve).has(G):Ie&&le(Ie,ve.id)}}),S(fe,re?{get:function(G){var ve=pe(this);if(U(G)){var Ie=A(G);return Ie===!0?k(ve).get(G):Ie?Ie[ve.id]:void 0}},set:function(G,ve){return q(this,G,ve)}}:{add:function(G){return q(this,G,!0)}}),z}}},34535:(v,T,s)=>{"use strict";var p=s(93085),S=s(98576),A=s(32861),h=s(76192),E=s(98711),F=s(33442),U=s(46961),_=s(16447),Q=s(35744),le=s(11284),K=s(42760).f,ne=s(50454).forEach,$=s(50069),P=s(73326),Y=P.set,L=P.getterFor;v.exports=function(C,k,B){var X=C.indexOf("Map")!==-1,H=C.indexOf("Weak")!==-1,D=X?"set":"add",re=S[C],J=re&&re.prototype,z={},fe;if(!$||!_(re)||!(H||J.forEach&&!h(function(){new re().entries().next()})))fe=B.getConstructor(k,C,X,D),A.enable();else{fe=k(function(Z,G){Y(U(Z,pe),{type:C,collection:new re}),G!=null&&F(G,Z[D],{that:Z,AS_ENTRIES:X})});var pe=fe.prototype,q=L(C);ne(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(Z){var G=Z=="add"||Z=="set";Z in J&&!(H&&Z=="clear")&&E(pe,Z,function(ve,Ie){var Ne=q(this).collection;if(!G&&H&&!Q(ve))return Z=="get"?void 0:!1;var je=Ne[Z](ve===0?0:ve,Ie);return G?this:je})}),H||K(pe,"size",{configurable:!0,get:function(){return q(this).collection.size}})}return le(fe,C,!1,!0),z[C]=fe,p({global:!0,forced:!0},z),H||B.setStrong(fe,C,X),fe}},97987:(v,T,s)=>{var p=s(64500),S=s(93011),A=s(5141),h=s(42760);v.exports=function(E,F,U){for(var _=S(F),Q=h.f,le=A.f,K=0;K<_.length;K++){var ne=_[K];!p(E,ne)&&!(U&&p(U,ne))&&Q(E,ne,le(F,ne))}}},83519:(v,T,s)=>{var p=s(18182),S=p("match");v.exports=function(A){var h=/./;try{"/./"[A](h)}catch(E){try{return h[S]=!1,"/./"[A](h)}catch(F){}}return!1}},4635:(v,T,s)=>{var p=s(76192);v.exports=!p(function(){function S(){}return S.prototype.constructor=null,Object.getPrototypeOf(new S)!==S.prototype})},87271:v=>{v.exports=function(T,s){return{value:T,done:s}}},98711:(v,T,s)=>{var p=s(50069),S=s(42760),A=s(90774);v.exports=p?function(h,E,F){return S.f(h,E,A(1,F))}:function(h,E,F){return h[E]=F,h}},90774:v=>{v.exports=function(T,s){return{enumerable:!(T&1),configurable:!(T&2),writable:!(T&4),value:s}}},49361:(v,T,s)=>{"use strict";var p=s(40077),S=s(42760),A=s(90774);v.exports=function(h,E,F){var U=p(E);U in h?S.f(h,U,A(0,F)):h[U]=F}},59362:(v,T,s)=>{var p=s(98711);v.exports=function(S,A,h,E){return E&&E.enumerable?S[A]=h:p(S,A,h),S}},35090:(v,T,s)=>{var p=s(59362);v.exports=function(S,A,h){for(var E in A)h&&h.unsafe&&S[E]?S[E]=A[E]:p(S,E,A[E],h);return S}},65098:(v,T,s)=>{var p=s(98576),S=Object.defineProperty;v.exports=function(A,h){try{S(p,A,{value:h,configurable:!0,writable:!0})}catch(E){p[A]=h}return h}},29970:(v,T,s)=>{"use strict";var p=s(79288),S=TypeError;v.exports=function(A,h){if(!delete A[h])throw S("Cannot delete property "+p(h)+" of "+p(A))}},50069:(v,T,s)=>{var p=s(76192);v.exports=!p(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},58382:v=>{var T=typeof document=="object"&&document.all,s=typeof T=="undefined"&&T!==void 0;v.exports={all:T,IS_HTMLDDA:s}},67449:(v,T,s)=>{var p=s(98576),S=s(35744),A=p.document,h=S(A)&&S(A.createElement);v.exports=function(E){return h?A.createElement(E):{}}},29425:v=>{var T=TypeError,s=9007199254740991;v.exports=function(p){if(p>s)throw T("Maximum allowed index exceeded");return p}},17365:v=>{v.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},82957:(v,T,s)=>{var p=s(60659),S=s(58189);v.exports=!p&&!S&&typeof window=="object"&&typeof document=="object"},60659:v=>{v.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},29347:(v,T,s)=>{var p=s(78989),S=s(98576);v.exports=/ipad|iphone|ipod/i.test(p)&&S.Pebble!==void 0},69536:(v,T,s)=>{var p=s(78989);v.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(p)},58189:(v,T,s)=>{var p=s(29272),S=s(98576);v.exports=p(S.process)=="process"},5914:(v,T,s)=>{var p=s(78989);v.exports=/web0s(?!.*chrome)/i.test(p)},78989:(v,T,s)=>{var p=s(10150);v.exports=p("navigator","userAgent")||""},14218:(v,T,s)=>{var p=s(98576),S=s(78989),A=p.process,h=p.Deno,E=A&&A.versions||h&&h.version,F=E&&E.v8,U,_;F&&(U=F.split("."),_=U[0]>0&&U[0]<4?1:+(U[0]+U[1])),!_&&S&&(U=S.match(/Edge\/(\d+)/),(!U||U[1]>=74)&&(U=S.match(/Chrome\/(\d+)/),U&&(_=+U[1]))),v.exports=_},45607:(v,T,s)=>{var p=s(57545);v.exports=function(S){return p[S+"Prototype"]}},82952:v=>{v.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},14503:(v,T,s)=>{var p=s(84120),S=Error,A=p("".replace),h=function(U){return String(S(U).stack)}("zxcasd"),E=/\n\s*at [^:]*:[^\n]*/,F=E.test(h);v.exports=function(U,_){if(F&&typeof U=="string"&&!S.prepareStackTrace)for(;_--;)U=A(U,E,"");return U}},50274:(v,T,s)=>{var p=s(76192),S=s(90774);v.exports=!p(function(){var A=Error("a");return"stack"in A?(Object.defineProperty(A,"stack",S(1,7)),A.stack!==7):!0})},93085:(v,T,s)=>{"use strict";var p=s(98576),S=s(86298),A=s(84120),h=s(16447),E=s(5141).f,F=s(89245),U=s(57545),_=s(8043),Q=s(98711),le=s(64500),K=function(ne){var $=function(P,Y,L){if(this instanceof $){switch(arguments.length){case 0:return new ne;case 1:return new ne(P);case 2:return new ne(P,Y)}return new ne(P,Y,L)}return S(ne,this,arguments)};return $.prototype=ne.prototype,$};v.exports=function(ne,$){var P=ne.target,Y=ne.global,L=ne.stat,C=ne.proto,k=Y?p:L?p[P]:(p[P]||{}).prototype,B=Y?U:U[P]||Q(U,P,{})[P],X=B.prototype,H,D,re,J,z,fe,pe,q,Z;for(J in $)H=F(Y?J:P+(L?".":"#")+J,ne.forced),D=!H&&k&&le(k,J),fe=B[J],D&&(ne.dontCallGetSet?(Z=E(k,J),pe=Z&&Z.value):pe=k[J]),z=D&&pe?pe:$[J],!(D&&typeof fe==typeof z)&&(ne.bind&&D?q=_(z,p):ne.wrap&&D?q=K(z):C&&h(z)?q=A(z):q=z,(ne.sham||z&&z.sham||fe&&fe.sham)&&Q(q,"sham",!0),Q(B,J,q),C&&(re=P+"Prototype",le(U,re)||Q(U,re,{}),Q(U[re],J,z),ne.real&&X&&!X[J]&&Q(X,J,z)))}},76192:v=>{v.exports=function(T){try{return!!T()}catch(s){return!0}}},47636:(v,T,s)=>{var p=s(76192);v.exports=!p(function(){return Object.isExtensible(Object.preventExtensions({}))})},86298:(v,T,s)=>{var p=s(22784),S=Function.prototype,A=S.apply,h=S.call;v.exports=typeof Reflect=="object"&&Reflect.apply||(p?h.bind(A):function(){return h.apply(A,arguments)})},8043:(v,T,s)=>{var p=s(84120),S=s(66235),A=s(22784),h=p(p.bind);v.exports=function(E,F){return S(E),F===void 0?E:A?h(E,F):function(){return E.apply(F,arguments)}}},22784:(v,T,s)=>{var p=s(76192);v.exports=!p(function(){var S=function(){}.bind();return typeof S!="function"||S.hasOwnProperty("prototype")})},18922:(v,T,s)=>{var p=s(22784),S=Function.prototype.call;v.exports=p?S.bind(S):function(){return S.apply(S,arguments)}},22282:(v,T,s)=>{var p=s(50069),S=s(64500),A=Function.prototype,h=p&&Object.getOwnPropertyDescriptor,E=S(A,"name"),F=E&&function(){}.name==="something",U=E&&(!p||p&&h(A,"name").configurable);v.exports={EXISTS:E,PROPER:F,CONFIGURABLE:U}},41258:(v,T,s)=>{var p=s(22784),S=Function.prototype,A=S.call,h=p&&S.bind.bind(A,A);v.exports=function(E){return p?h(E):function(){return A.apply(E,arguments)}}},84120:(v,T,s)=>{var p=s(29272),S=s(41258);v.exports=function(A){if(p(A)==="Function")return S(A)}},10150:(v,T,s)=>{var p=s(57545),S=s(98576),A=s(16447),h=function(E){return A(E)?E:void 0};v.exports=function(E,F){return arguments.length<2?h(p[E])||h(S[E]):p[E]&&p[E][F]||S[E]&&S[E][F]}},78703:(v,T,s)=>{var p=s(4696),S=s(75037),A=s(75646),h=s(47771),E=s(18182),F=E("iterator");v.exports=function(U){if(!A(U))return S(U,F)||S(U,"@@iterator")||h[p(U)]}},61669:(v,T,s)=>{var p=s(18922),S=s(66235),A=s(31138),h=s(79288),E=s(78703),F=TypeError;v.exports=function(U,_){var Q=arguments.length<2?E(U):_;if(S(Q))return A(p(Q,U));throw F(h(U)+" is not iterable")}},75037:(v,T,s)=>{var p=s(66235),S=s(75646);v.exports=function(A,h){var E=A[h];return S(E)?void 0:p(E)}},98576:(v,T,s)=>{var p=function(S){return S&&S.Math==Math&&S};v.exports=p(typeof globalThis=="object"&&globalThis)||p(typeof window=="object"&&window)||p(typeof self=="object"&&self)||p(typeof s.g=="object"&&s.g)||function(){return this}()||Function("return this")()},64500:(v,T,s)=>{var p=s(84120),S=s(71795),A=p({}.hasOwnProperty);v.exports=Object.hasOwn||function(E,F){return A(S(E),F)}},14535:v=>{v.exports={}},63681:(v,T,s)=>{var p=s(98576);v.exports=function(S,A){var h=p.console;h&&h.error&&(arguments.length==1?h.error(S):h.error(S,A))}},47403:(v,T,s)=>{var p=s(10150);v.exports=p("document","documentElement")},80188:(v,T,s)=>{var p=s(50069),S=s(76192),A=s(67449);v.exports=!p&&!S(function(){return Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a!=7})},2202:(v,T,s)=>{var p=s(84120),S=s(76192),A=s(29272),h=Object,E=p("".split);v.exports=S(function(){return!h("z").propertyIsEnumerable(0)})?function(F){return A(F)=="String"?E(F,""):h(F)}:h},19516:(v,T,s)=>{var p=s(84120),S=s(16447),A=s(46434),h=p(Function.toString);S(A.inspectSource)||(A.inspectSource=function(E){return h(E)}),v.exports=A.inspectSource},10273:(v,T,s)=>{var p=s(35744),S=s(98711);v.exports=function(A,h){p(h)&&"cause"in h&&S(A,"cause",h.cause)}},32861:(v,T,s)=>{var p=s(93085),S=s(84120),A=s(14535),h=s(35744),E=s(64500),F=s(42760).f,U=s(92092),_=s(24052),Q=s(4532),le=s(42759),K=s(47636),ne=!1,$=le("meta"),P=0,Y=function(H){F(H,$,{value:{objectID:"O"+P++,weakData:{}}})},L=function(H,D){if(!h(H))return typeof H=="symbol"?H:(typeof H=="string"?"S":"P")+H;if(!E(H,$)){if(!Q(H))return"F";if(!D)return"E";Y(H)}return H[$].objectID},C=function(H,D){if(!E(H,$)){if(!Q(H))return!0;if(!D)return!1;Y(H)}return H[$].weakData},k=function(H){return K&&ne&&Q(H)&&!E(H,$)&&Y(H),H},B=function(){X.enable=function(){},ne=!0;var H=U.f,D=S([].splice),re={};re[$]=1,H(re).length&&(U.f=function(J){for(var z=H(J),fe=0,pe=z.length;fe<pe;fe++)if(z[fe]===$){D(z,fe,1);break}return z},p({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_.f}))},X=v.exports={enable:B,fastKey:L,getWeakData:C,onFreeze:k};A[$]=!0},73326:(v,T,s)=>{var p=s(55278),S=s(98576),A=s(35744),h=s(98711),E=s(64500),F=s(46434),U=s(69766),_=s(14535),Q="Object already initialized",le=S.TypeError,K=S.WeakMap,ne,$,P,Y=function(B){return P(B)?$(B):ne(B,{})},L=function(B){return function(X){var H;if(!A(X)||(H=$(X)).type!==B)throw le("Incompatible receiver, "+B+" required");return H}};if(p||F.state){var C=F.state||(F.state=new K);C.get=C.get,C.has=C.has,C.set=C.set,ne=function(B,X){if(C.has(B))throw le(Q);return X.facade=B,C.set(B,X),X},$=function(B){return C.get(B)||{}},P=function(B){return C.has(B)}}else{var k=U("state");_[k]=!0,ne=function(B,X){if(E(B,k))throw le(Q);return X.facade=B,h(B,k,X),X},$=function(B){return E(B,k)?B[k]:{}},P=function(B){return E(B,k)}}v.exports={set:ne,get:$,has:P,enforce:Y,getterFor:L}},96109:(v,T,s)=>{var p=s(18182),S=s(47771),A=p("iterator"),h=Array.prototype;v.exports=function(E){return E!==void 0&&(S.Array===E||h[A]===E)}},34770:(v,T,s)=>{var p=s(29272);v.exports=Array.isArray||function(A){return p(A)=="Array"}},16447:(v,T,s)=>{var p=s(58382),S=p.all;v.exports=p.IS_HTMLDDA?function(A){return typeof A=="function"||A===S}:function(A){return typeof A=="function"}},22091:(v,T,s)=>{var p=s(84120),S=s(76192),A=s(16447),h=s(4696),E=s(10150),F=s(19516),U=function(){},_=[],Q=E("Reflect","construct"),le=/^\s*(?:class|function)\b/,K=p(le.exec),ne=!le.exec(U),$=function(L){if(!A(L))return!1;try{return Q(U,_,L),!0}catch(C){return!1}},P=function(L){if(!A(L))return!1;switch(h(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ne||!!K(le,F(L))}catch(C){return!0}};P.sham=!0,v.exports=!Q||S(function(){var Y;return $($.call)||!$(Object)||!$(function(){Y=!0})||Y})?P:$},89245:(v,T,s)=>{var p=s(76192),S=s(16447),A=/#|\.prototype\./,h=function(Q,le){var K=F[E(Q)];return K==_?!0:K==U?!1:S(le)?p(le):!!le},E=h.normalize=function(Q){return String(Q).replace(A,".").toLowerCase()},F=h.data={},U=h.NATIVE="N",_=h.POLYFILL="P";v.exports=h},75646:v=>{v.exports=function(T){return T==null}},35744:(v,T,s)=>{var p=s(16447),S=s(58382),A=S.all;v.exports=S.IS_HTMLDDA?function(h){return typeof h=="object"?h!==null:p(h)||h===A}:function(h){return typeof h=="object"?h!==null:p(h)}},85546:v=>{v.exports=!0},94352:(v,T,s)=>{var p=s(35744),S=s(29272),A=s(18182),h=A("match");v.exports=function(E){var F;return p(E)&&((F=E[h])!==void 0?!!F:S(E)=="RegExp")}},23236:(v,T,s)=>{var p=s(10150),S=s(16447),A=s(8902),h=s(50615),E=Object;v.exports=h?function(F){return typeof F=="symbol"}:function(F){var U=p("Symbol");return S(U)&&A(U.prototype,E(F))}},33442:(v,T,s)=>{var p=s(8043),S=s(18922),A=s(31138),h=s(79288),E=s(96109),F=s(84104),U=s(8902),_=s(61669),Q=s(78703),le=s(66639),K=TypeError,ne=function(P,Y){this.stopped=P,this.result=Y},$=ne.prototype;v.exports=function(P,Y,L){var C=L&&L.that,k=!!(L&&L.AS_ENTRIES),B=!!(L&&L.IS_RECORD),X=!!(L&&L.IS_ITERATOR),H=!!(L&&L.INTERRUPTED),D=p(Y,C),re,J,z,fe,pe,q,Z,G=function(Ie){return re&&le(re,"normal",Ie),new ne(!0,Ie)},ve=function(Ie){return k?(A(Ie),H?D(Ie[0],Ie[1],G):D(Ie[0],Ie[1])):H?D(Ie,G):D(Ie)};if(B)re=P.iterator;else if(X)re=P;else{if(J=Q(P),!J)throw K(h(P)+" is not iterable");if(E(J)){for(z=0,fe=F(P);fe>z;z++)if(pe=ve(P[z]),pe&&U($,pe))return pe;return new ne(!1)}re=_(P,J)}for(q=B?P.next:re.next;!(Z=S(q,re)).done;){try{pe=ve(Z.value)}catch(Ie){le(re,"throw",Ie)}if(typeof pe=="object"&&pe&&U($,pe))return pe}return new ne(!1)}},66639:(v,T,s)=>{var p=s(18922),S=s(31138),A=s(75037);v.exports=function(h,E,F){var U,_;S(h);try{if(U=A(h,"return"),!U){if(E==="throw")throw F;return F}U=p(U,h)}catch(Q){_=!0,U=Q}if(E==="throw")throw F;if(_)throw U;return S(U),F}},25695:(v,T,s)=>{"use strict";var p=s(54413).IteratorPrototype,S=s(52853),A=s(90774),h=s(11284),E=s(47771),F=function(){return this};v.exports=function(U,_,Q,le){var K=_+" Iterator";return U.prototype=S(p,{next:A(+!le,Q)}),h(U,K,!1,!0),E[K]=F,U}},65297:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(85546),h=s(22282),E=s(16447),F=s(25695),U=s(89341),_=s(24469),Q=s(11284),le=s(98711),K=s(59362),ne=s(18182),$=s(47771),P=s(54413),Y=h.PROPER,L=h.CONFIGURABLE,C=P.IteratorPrototype,k=P.BUGGY_SAFARI_ITERATORS,B=ne("iterator"),X="keys",H="values",D="entries",re=function(){return this};v.exports=function(J,z,fe,pe,q,Z,G){F(fe,z,pe);var ve=function(Pe){if(Pe===q&&_e)return _e;if(!k&&Pe in je)return je[Pe];switch(Pe){case X:return function(){return new fe(this,Pe)};case H:return function(){return new fe(this,Pe)};case D:return function(){return new fe(this,Pe)}}return function(){return new fe(this)}},Ie=z+" Iterator",Ne=!1,je=J.prototype,tt=je[B]||je["@@iterator"]||q&&je[q],_e=!k&&tt||ve(q),mt=z=="Array"&&je.entries||tt,De,Oe,Ue;if(mt&&(De=U(mt.call(new J)),De!==Object.prototype&&De.next&&(!A&&U(De)!==C&&(_?_(De,C):E(De[B])||K(De,B,re)),Q(De,Ie,!0,!0),A&&($[Ie]=re))),Y&&q==H&&tt&&tt.name!==H&&(!A&&L?le(je,"name",H):(Ne=!0,_e=function(){return S(tt,this)})),q)if(Oe={values:ve(H),keys:Z?_e:ve(X),entries:ve(D)},G)for(Ue in Oe)(k||Ne||!(Ue in je))&&K(je,Ue,Oe[Ue]);else p({target:z,proto:!0,forced:k||Ne},Oe);return(!A||G)&&je[B]!==_e&&K(je,B,_e,{name:q}),$[z]=_e,Oe}},54413:(v,T,s)=>{"use strict";var p=s(76192),S=s(16447),A=s(35744),h=s(52853),E=s(89341),F=s(59362),U=s(18182),_=s(85546),Q=U("iterator"),le=!1,K,ne,$;[].keys&&($=[].keys(),"next"in $?(ne=E(E($)),ne!==Object.prototype&&(K=ne)):le=!0);var P=!A(K)||p(function(){var Y={};return K[Q].call(Y)!==Y});P?K={}:_&&(K=h(K)),S(K[Q])||F(K,Q,function(){return this}),v.exports={IteratorPrototype:K,BUGGY_SAFARI_ITERATORS:le}},47771:v=>{v.exports={}},84104:(v,T,s)=>{var p=s(8445);v.exports=function(S){return p(S.length)}},77679:v=>{var T=Math.ceil,s=Math.floor;v.exports=Math.trunc||function(S){var A=+S;return(A>0?s:T)(A)}},12950:(v,T,s)=>{var p=s(98576),S=s(8043),A=s(5141).f,h=s(67160).set,E=s(69536),F=s(29347),U=s(5914),_=s(58189),Q=p.MutationObserver||p.WebKitMutationObserver,le=p.document,K=p.process,ne=p.Promise,$=A(p,"queueMicrotask"),P=$&&$.value,Y,L,C,k,B,X,H,D;P||(Y=function(){var re,J;for(_&&(re=K.domain)&&re.exit();L;){J=L.fn,L=L.next;try{J()}catch(z){throw L?k():C=void 0,z}}C=void 0,re&&re.enter()},!E&&!_&&!U&&Q&&le?(B=!0,X=le.createTextNode(""),new Q(Y).observe(X,{characterData:!0}),k=function(){X.data=B=!B}):!F&&ne&&ne.resolve?(H=ne.resolve(void 0),H.constructor=ne,D=S(H.then,H),k=function(){D(Y)}):_?k=function(){K.nextTick(Y)}:(h=S(h,p),k=function(){h(Y)})),v.exports=P||function(re){var J={fn:re,next:void 0};C&&(C.next=J),L||(L=J,k()),C=J}},99438:(v,T,s)=>{"use strict";var p=s(66235),S=TypeError,A=function(h){var E,F;this.promise=new h(function(U,_){if(E!==void 0||F!==void 0)throw S("Bad Promise constructor");E=U,F=_}),this.resolve=p(E),this.reject=p(F)};v.exports.f=function(h){return new A(h)}},36016:(v,T,s)=>{var p=s(44845);v.exports=function(S,A){return S===void 0?arguments.length<2?"":A:p(S)}},9703:(v,T,s)=>{var p=s(94352),S=TypeError;v.exports=function(A){if(p(A))throw S("The method doesn't accept regular expressions");return A}},52503:(v,T,s)=>{"use strict";var p=s(50069),S=s(84120),A=s(18922),h=s(76192),E=s(57653),F=s(84750),U=s(56007),_=s(71795),Q=s(2202),le=Object.assign,K=Object.defineProperty,ne=S([].concat);v.exports=!le||h(function(){if(p&&le({b:1},le(K({},"a",{enumerable:!0,get:function(){K(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var $={},P={},Y=Symbol(),L="abcdefghijklmnopqrst";return $[Y]=7,L.split("").forEach(function(C){P[C]=C}),le({},$)[Y]!=7||E(le({},P)).join("")!=L})?function(P,Y){for(var L=_(P),C=arguments.length,k=1,B=F.f,X=U.f;C>k;)for(var H=Q(arguments[k++]),D=B?ne(E(H),B(H)):E(H),re=D.length,J=0,z;re>J;)z=D[J++],(!p||A(X,H,z))&&(L[z]=H[z]);return L}:le},52853:(v,T,s)=>{var p=s(31138),S=s(11187),A=s(82952),h=s(14535),E=s(47403),F=s(67449),U=s(69766),_=">",Q="<",le="prototype",K="script",ne=U("IE_PROTO"),$=function(){},P=function(B){return Q+K+_+B+Q+"/"+K+_},Y=function(B){B.write(P("")),B.close();var X=B.parentWindow.Object;return B=null,X},L=function(){var B=F("iframe"),X="java"+K+":",H;return B.style.display="none",E.appendChild(B),B.src=String(X),H=B.contentWindow.document,H.open(),H.write(P("document.F=Object")),H.close(),H.F},C,k=function(){try{C=new ActiveXObject("htmlfile")}catch(X){}k=typeof document!="undefined"?document.domain&&C?Y(C):L():Y(C);for(var B=A.length;B--;)delete k[le][A[B]];return k()};h[ne]=!0,v.exports=Object.create||function(X,H){var D;return X!==null?($[le]=p(X),D=new $,$[le]=null,D[ne]=X):D=k(),H===void 0?D:S.f(D,H)}},11187:(v,T,s)=>{var p=s(50069),S=s(69600),A=s(42760),h=s(31138),E=s(20101),F=s(57653);T.f=p&&!S?Object.defineProperties:function(_,Q){h(_);for(var le=E(Q),K=F(Q),ne=K.length,$=0,P;ne>$;)A.f(_,P=K[$++],le[P]);return _}},42760:(v,T,s)=>{var p=s(50069),S=s(80188),A=s(69600),h=s(31138),E=s(40077),F=TypeError,U=Object.defineProperty,_=Object.getOwnPropertyDescriptor,Q="enumerable",le="configurable",K="writable";T.f=p?A?function($,P,Y){if(h($),P=E(P),h(Y),typeof $=="function"&&P==="prototype"&&"value"in Y&&K in Y&&!Y[K]){var L=_($,P);L&&L[K]&&($[P]=Y.value,Y={configurable:le in Y?Y[le]:L[le],enumerable:Q in Y?Y[Q]:L[Q],writable:!1})}return U($,P,Y)}:U:function($,P,Y){if(h($),P=E(P),h(Y),S)try{return U($,P,Y)}catch(L){}if("get"in Y||"set"in Y)throw F("Accessors not supported");return"value"in Y&&($[P]=Y.value),$}},5141:(v,T,s)=>{var p=s(50069),S=s(18922),A=s(56007),h=s(90774),E=s(20101),F=s(40077),U=s(64500),_=s(80188),Q=Object.getOwnPropertyDescriptor;T.f=p?Q:function(K,ne){if(K=E(K),ne=F(ne),_)try{return Q(K,ne)}catch($){}if(U(K,ne))return h(!S(A.f,K,ne),K[ne])}},24052:(v,T,s)=>{var p=s(29272),S=s(20101),A=s(92092).f,h=s(1923),E=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],F=function(U){try{return A(U)}catch(_){return h(E)}};v.exports.f=function(_){return E&&p(_)=="Window"?F(_):A(S(_))}},92092:(v,T,s)=>{var p=s(57934),S=s(82952),A=S.concat("length","prototype");T.f=Object.getOwnPropertyNames||function(E){return p(E,A)}},84750:(v,T)=>{T.f=Object.getOwnPropertySymbols},89341:(v,T,s)=>{var p=s(64500),S=s(16447),A=s(71795),h=s(69766),E=s(4635),F=h("IE_PROTO"),U=Object,_=U.prototype;v.exports=E?U.getPrototypeOf:function(Q){var le=A(Q);if(p(le,F))return le[F];var K=le.constructor;return S(K)&&le instanceof K?K.prototype:le instanceof U?_:null}},4532:(v,T,s)=>{var p=s(76192),S=s(35744),A=s(29272),h=s(80410),E=Object.isExtensible,F=p(function(){E(1)});v.exports=F||h?function(_){return!S(_)||h&&A(_)=="ArrayBuffer"?!1:E?E(_):!0}:E},8902:(v,T,s)=>{var p=s(84120);v.exports=p({}.isPrototypeOf)},57934:(v,T,s)=>{var p=s(84120),S=s(64500),A=s(20101),h=s(48180).indexOf,E=s(14535),F=p([].push);v.exports=function(U,_){var Q=A(U),le=0,K=[],ne;for(ne in Q)!S(E,ne)&&S(Q,ne)&&F(K,ne);for(;_.length>le;)S(Q,ne=_[le++])&&(~h(K,ne)||F(K,ne));return K}},57653:(v,T,s)=>{var p=s(57934),S=s(82952);v.exports=Object.keys||function(h){return p(h,S)}},56007:(v,T)=>{"use strict";var s={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,S=p&&!s.call({1:2},1);T.f=S?function(h){var E=p(this,h);return!!E&&E.enumerable}:s},24469:(v,T,s)=>{var p=s(84120),S=s(31138),A=s(7757);v.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h=!1,E={},F;try{F=p(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),F(E,[]),h=E instanceof Array}catch(U){}return function(_,Q){return S(_),A(Q),h?F(_,Q):_.__proto__=Q,_}}():void 0)},75370:(v,T,s)=>{var p=s(50069),S=s(84120),A=s(57653),h=s(20101),E=s(56007).f,F=S(E),U=S([].push),_=function(Q){return function(le){for(var K=h(le),ne=A(K),$=ne.length,P=0,Y=[],L;$>P;)L=ne[P++],(!p||F(K,L))&&U(Y,Q?[L,K[L]]:K[L]);return Y}};v.exports={entries:_(!0),values:_(!1)}},40158:(v,T,s)=>{"use strict";var p=s(83471),S=s(4696);v.exports=p?{}.toString:function(){return"[object "+S(this)+"]"}},380:(v,T,s)=>{var p=s(18922),S=s(16447),A=s(35744),h=TypeError;v.exports=function(E,F){var U,_;if(F==="string"&&S(U=E.toString)&&!A(_=p(U,E))||S(U=E.valueOf)&&!A(_=p(U,E))||F!=="string"&&S(U=E.toString)&&!A(_=p(U,E)))return _;throw h("Can't convert object to primitive value")}},93011:(v,T,s)=>{var p=s(10150),S=s(84120),A=s(92092),h=s(84750),E=s(31138),F=S([].concat);v.exports=p("Reflect","ownKeys")||function(_){var Q=A.f(E(_)),le=h.f;return le?F(Q,le(_)):Q}},57545:v=>{v.exports={}},70892:v=>{v.exports=function(T){try{return{error:!1,value:T()}}catch(s){return{error:!0,value:s}}}},30511:(v,T,s)=>{var p=s(98576),S=s(15813),A=s(16447),h=s(89245),E=s(19516),F=s(18182),U=s(82957),_=s(60659),Q=s(85546),le=s(14218),K=S&&S.prototype,ne=F("species"),$=!1,P=A(p.PromiseRejectionEvent),Y=h("Promise",function(){var L=E(S),C=L!==String(S);if(!C&&le===66||Q&&!(K.catch&&K.finally))return!0;if(!le||le<51||!/native code/.test(L)){var k=new S(function(H){H(1)}),B=function(H){H(function(){},function(){})},X=k.constructor={};if(X[ne]=B,$=k.then(function(){})instanceof B,!$)return!0}return!C&&(U||_)&&!P});v.exports={CONSTRUCTOR:Y,REJECTION_EVENT:P,SUBCLASSING:$}},15813:(v,T,s)=>{var p=s(98576);v.exports=p.Promise},19126:(v,T,s)=>{var p=s(31138),S=s(35744),A=s(99438);v.exports=function(h,E){if(p(h),S(E)&&E.constructor===h)return E;var F=A.f(h),U=F.resolve;return U(E),F.promise}},52775:(v,T,s)=>{var p=s(15813),S=s(19770),A=s(30511).CONSTRUCTOR;v.exports=A||!S(function(h){p.all(h).then(void 0,function(){})})},6412:v=>{var T=function(){this.head=null,this.tail=null};T.prototype={add:function(s){var p={item:s,next:null};this.head?this.tail.next=p:this.head=p,this.tail=p},get:function(){var s=this.head;if(s)return this.head=s.next,this.tail===s&&(this.tail=null),s.item}},v.exports=T},13209:(v,T,s)=>{var p=s(75646),S=TypeError;v.exports=function(A){if(p(A))throw S("Can't call method on "+A);return A}},63656:(v,T,s)=>{"use strict";var p=s(10150),S=s(42760),A=s(18182),h=s(50069),E=A("species");v.exports=function(F){var U=p(F),_=S.f;h&&U&&!U[E]&&_(U,E,{configurable:!0,get:function(){return this}})}},11284:(v,T,s)=>{var p=s(83471),S=s(42760).f,A=s(98711),h=s(64500),E=s(40158),F=s(18182),U=F("toStringTag");v.exports=function(_,Q,le,K){if(_){var ne=le?_:_.prototype;h(ne,U)||S(ne,U,{configurable:!0,value:Q}),K&&!p&&A(ne,"toString",E)}}},69766:(v,T,s)=>{var p=s(98717),S=s(42759),A=p("keys");v.exports=function(h){return A[h]||(A[h]=S(h))}},46434:(v,T,s)=>{var p=s(98576),S=s(65098),A="__core-js_shared__",h=p[A]||S(A,{});v.exports=h},98717:(v,T,s)=>{var p=s(85546),S=s(46434);(v.exports=function(A,h){return S[A]||(S[A]=h!==void 0?h:{})})("versions",[]).push({version:"3.25.5",mode:p?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"})},84743:(v,T,s)=>{var p=s(31138),S=s(71404),A=s(75646),h=s(18182),E=h("species");v.exports=function(F,U){var _=p(F).constructor,Q;return _===void 0||A(Q=p(_)[E])?U:S(Q)}},863:(v,T,s)=>{var p=s(84120),S=s(41941),A=s(44845),h=s(13209),E=p("".charAt),F=p("".charCodeAt),U=p("".slice),_=function(Q){return function(le,K){var ne=A(h(le)),$=S(K),P=ne.length,Y,L;return $<0||$>=P?Q?"":void 0:(Y=F(ne,$),Y<55296||Y>56319||$+1===P||(L=F(ne,$+1))<56320||L>57343?Q?E(ne,$):Y:Q?U(ne,$,$+2):(Y-55296<<10)+(L-56320)+65536)}};v.exports={codeAt:_(!1),charAt:_(!0)}},36770:(v,T,s)=>{var p=s(14218),S=s(76192);v.exports=!!Object.getOwnPropertySymbols&&!S(function(){var A=Symbol();return!String(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&p&&p<41})},93407:(v,T,s)=>{var p=s(18922),S=s(10150),A=s(18182),h=s(59362);v.exports=function(){var E=S("Symbol"),F=E&&E.prototype,U=F&&F.valueOf,_=A("toPrimitive");F&&!F[_]&&h(F,_,function(Q){return p(U,this)},{arity:1})}},20031:(v,T,s)=>{var p=s(36770);v.exports=p&&!!Symbol.for&&!!Symbol.keyFor},67160:(v,T,s)=>{var p=s(98576),S=s(86298),A=s(8043),h=s(16447),E=s(64500),F=s(76192),U=s(47403),_=s(93096),Q=s(67449),le=s(67822),K=s(69536),ne=s(58189),$=p.setImmediate,P=p.clearImmediate,Y=p.process,L=p.Dispatch,C=p.Function,k=p.MessageChannel,B=p.String,X=0,H={},D="onreadystatechange",re,J,z,fe;try{re=p.location}catch(ve){}var pe=function(ve){if(E(H,ve)){var Ie=H[ve];delete H[ve],Ie()}},q=function(ve){return function(){pe(ve)}},Z=function(ve){pe(ve.data)},G=function(ve){p.postMessage(B(ve),re.protocol+"//"+re.host)};(!$||!P)&&($=function(Ie){le(arguments.length,1);var Ne=h(Ie)?Ie:C(Ie),je=_(arguments,1);return H[++X]=function(){S(Ne,void 0,je)},J(X),X},P=function(Ie){delete H[Ie]},ne?J=function(ve){Y.nextTick(q(ve))}:L&&L.now?J=function(ve){L.now(q(ve))}:k&&!K?(z=new k,fe=z.port2,z.port1.onmessage=Z,J=A(fe.postMessage,fe)):p.addEventListener&&h(p.postMessage)&&!p.importScripts&&re&&re.protocol!=="file:"&&!F(G)?(J=G,p.addEventListener("message",Z,!1)):D in Q("script")?J=function(ve){U.appendChild(Q("script"))[D]=function(){U.removeChild(this),pe(ve)}}:J=function(ve){setTimeout(q(ve),0)}),v.exports={set:$,clear:P}},97739:(v,T,s)=>{var p=s(41941),S=Math.max,A=Math.min;v.exports=function(h,E){var F=p(h);return F<0?S(F+E,0):A(F,E)}},20101:(v,T,s)=>{var p=s(2202),S=s(13209);v.exports=function(A){return p(S(A))}},41941:(v,T,s)=>{var p=s(77679);v.exports=function(S){var A=+S;return A!==A||A===0?0:p(A)}},8445:(v,T,s)=>{var p=s(41941),S=Math.min;v.exports=function(A){return A>0?S(p(A),9007199254740991):0}},71795:(v,T,s)=>{var p=s(13209),S=Object;v.exports=function(A){return S(p(A))}},97888:(v,T,s)=>{var p=s(18922),S=s(35744),A=s(23236),h=s(75037),E=s(380),F=s(18182),U=TypeError,_=F("toPrimitive");v.exports=function(Q,le){if(!S(Q)||A(Q))return Q;var K=h(Q,_),ne;if(K){if(le===void 0&&(le="default"),ne=p(K,Q,le),!S(ne)||A(ne))return ne;throw U("Can't convert object to primitive value")}return le===void 0&&(le="number"),E(Q,le)}},40077:(v,T,s)=>{var p=s(97888),S=s(23236);v.exports=function(A){var h=p(A,"string");return S(h)?h:h+""}},83471:(v,T,s)=>{var p=s(18182),S=p("toStringTag"),A={};A[S]="z",v.exports=String(A)==="[object z]"},44845:(v,T,s)=>{var p=s(4696),S=String;v.exports=function(A){if(p(A)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return S(A)}},79288:v=>{var T=String;v.exports=function(s){try{return T(s)}catch(p){return"Object"}}},42759:(v,T,s)=>{var p=s(84120),S=0,A=Math.random(),h=p(1 .toString);v.exports=function(E){return"Symbol("+(E===void 0?"":E)+")_"+h(++S+A,36)}},58552:(v,T,s)=>{var p=s(76192),S=s(18182),A=s(85546),h=S("iterator");v.exports=!p(function(){var E=new URL("b?a=1&b=2&c=3","http://a"),F=E.searchParams,U="";return E.pathname="c%20d",F.forEach(function(_,Q){F.delete("b"),U+=Q+_}),A&&!E.toJSON||!F.sort||E.href!=="http://a/c%20d?a=1&c=3"||F.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!F[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||U!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50615:(v,T,s)=>{var p=s(36770);v.exports=p&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},69600:(v,T,s)=>{var p=s(50069),S=s(76192);v.exports=p&&S(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},67822:v=>{var T=TypeError;v.exports=function(s,p){if(s<p)throw T("Not enough arguments");return s}},55278:(v,T,s)=>{var p=s(98576),S=s(16447),A=p.WeakMap;v.exports=S(A)&&/native code/.test(String(A))},48332:(v,T,s)=>{var p=s(57545),S=s(64500),A=s(89207),h=s(42760).f;v.exports=function(E){var F=p.Symbol||(p.Symbol={});S(F,E)||h(F,E,{value:A.f(E)})}},89207:(v,T,s)=>{var p=s(18182);T.f=p},18182:(v,T,s)=>{var p=s(98576),S=s(98717),A=s(64500),h=s(42759),E=s(36770),F=s(50615),U=S("wks"),_=p.Symbol,Q=_&&_.for,le=F?_:_&&_.withoutSetter||h;v.exports=function(K){if(!A(U,K)||!(E||typeof U[K]=="string")){var ne="Symbol."+K;E&&A(_,K)?U[K]=_[K]:F&&Q?U[K]=Q(ne):U[K]=le(ne)}return U[K]}},93820:(v,T,s)=>{"use strict";var p=s(93085),S=s(8902),A=s(89341),h=s(24469),E=s(97987),F=s(52853),U=s(98711),_=s(90774),Q=s(14503),le=s(10273),K=s(33442),ne=s(36016),$=s(18182),P=s(50274),Y=$("toStringTag"),L=Error,C=[].push,k=function(H,D){var re=arguments.length>2?arguments[2]:void 0,J=S(B,this),z;h?z=h(L(),J?A(this):B):(z=J?this:F(B),U(z,Y,"Error")),D!==void 0&&U(z,"message",ne(D)),P&&U(z,"stack",Q(z.stack,1)),le(z,re);var fe=[];return K(H,C,{that:fe}),U(z,"errors",fe),z};h?h(k,L):E(k,L,{name:!0});var B=k.prototype=F(L.prototype,{constructor:_(1,k),message:_(1,""),name:_(1,"AggregateError")});p({global:!0,constructor:!0,arity:2},{AggregateError:k})},4242:(v,T,s)=>{s(93820)},59106:(v,T,s)=>{"use strict";var p=s(93085),S=s(76192),A=s(34770),h=s(35744),E=s(71795),F=s(84104),U=s(29425),_=s(49361),Q=s(71321),le=s(90242),K=s(18182),ne=s(14218),$=K("isConcatSpreadable"),P=ne>=51||!S(function(){var k=[];return k[$]=!1,k.concat()[0]!==k}),Y=le("concat"),L=function(k){if(!h(k))return!1;var B=k[$];return B!==void 0?!!B:A(k)},C=!P||!Y;p({target:"Array",proto:!0,arity:1,forced:C},{concat:function(B){var X=E(this),H=Q(X,0),D=0,re,J,z,fe,pe;for(re=-1,z=arguments.length;re<z;re++)if(pe=re===-1?X:arguments[re],L(pe))for(fe=F(pe),U(D+fe),J=0;J<fe;J++,D++)J in pe&&_(H,D,pe[J]);else U(D+1),_(H,D++,pe);return H.length=D,H}})},73436:(v,T,s)=>{"use strict";var p=s(93085),S=s(50454).filter,A=s(90242),h=A("filter");p({target:"Array",proto:!0,forced:!h},{filter:function(F){return S(this,F,arguments.length>1?arguments[1]:void 0)}})},10880:(v,T,s)=>{"use strict";var p=s(93085),S=s(50454).find,A=s(67423),h="find",E=!0;h in[]&&Array(1)[h](function(){E=!1}),p({target:"Array",proto:!0,forced:E},{find:function(U){return S(this,U,arguments.length>1?arguments[1]:void 0)}}),A(h)},9823:(v,T,s)=>{"use strict";var p=s(93085),S=s(87397);p({target:"Array",proto:!0,forced:[].forEach!=S},{forEach:S})},19173:(v,T,s)=>{var p=s(93085),S=s(20841),A=s(19770),h=!A(function(E){Array.from(E)});p({target:"Array",stat:!0,forced:h},{from:S})},70024:(v,T,s)=>{"use strict";var p=s(93085),S=s(48180).includes,A=s(76192),h=s(67423),E=A(function(){return!Array(1).includes()});p({target:"Array",proto:!0,forced:E},{includes:function(U){return S(this,U,arguments.length>1?arguments[1]:void 0)}}),h("includes")},62276:(v,T,s)=>{"use strict";var p=s(93085),S=s(84120),A=s(48180).indexOf,h=s(10424),E=S([].indexOf),F=!!E&&1/E([1],1,-0)<0,U=h("indexOf");p({target:"Array",proto:!0,forced:F||!U},{indexOf:function(Q){var le=arguments.length>1?arguments[1]:void 0;return F?E(this,Q,le)||0:A(this,Q,le)}})},8118:(v,T,s)=>{var p=s(93085),S=s(34770);p({target:"Array",stat:!0},{isArray:S})},98939:(v,T,s)=>{"use strict";var p=s(20101),S=s(67423),A=s(47771),h=s(73326),E=s(42760).f,F=s(65297),U=s(87271),_=s(85546),Q=s(50069),le="Array Iterator",K=h.set,ne=h.getterFor(le);v.exports=F(Array,"Array",function(P,Y){K(this,{type:le,target:p(P),index:0,kind:Y})},function(){var P=ne(this),Y=P.target,L=P.kind,C=P.index++;return!Y||C>=Y.length?(P.target=void 0,U(void 0,!0)):L=="keys"?U(C,!1):L=="values"?U(Y[C],!1):U([C,Y[C]],!1)},"values");var $=A.Arguments=A.Array;if(S("keys"),S("values"),S("entries"),!_&&Q&&$.name!=="values")try{E($,"name",{value:"values"})}catch(P){}},63838:(v,T,s)=>{"use strict";var p=s(93085),S=s(50454).map,A=s(90242),h=A("map");p({target:"Array",proto:!0,forced:!h},{map:function(F){return S(this,F,arguments.length>1?arguments[1]:void 0)}})},99523:(v,T,s)=>{"use strict";var p=s(93085),S=s(84120),A=s(34770),h=S([].reverse),E=[1,2];p({target:"Array",proto:!0,forced:String(E)===String(E.reverse())},{reverse:function(){return A(this)&&(this.length=this.length),h(this)}})},65818:(v,T,s)=>{"use strict";var p=s(93085),S=s(34770),A=s(22091),h=s(35744),E=s(97739),F=s(84104),U=s(20101),_=s(49361),Q=s(18182),le=s(90242),K=s(93096),ne=le("slice"),$=Q("species"),P=Array,Y=Math.max;p({target:"Array",proto:!0,forced:!ne},{slice:function(C,k){var B=U(this),X=F(B),H=E(C,X),D=E(k===void 0?X:k,X),re,J,z;if(S(B)&&(re=B.constructor,A(re)&&(re===P||S(re.prototype))?re=void 0:h(re)&&(re=re[$],re===null&&(re=void 0)),re===P||re===void 0))return K(B,H,D);for(J=new(re===void 0?P:re)(Y(D-H,0)),z=0;H<D;H++,z++)H in B&&_(J,z,B[H]);return J.length=z,J}})},12178:(v,T,s)=>{"use strict";var p=s(93085),S=s(71795),A=s(97739),h=s(41941),E=s(84104),F=s(95072),U=s(29425),_=s(71321),Q=s(49361),le=s(29970),K=s(90242),ne=K("splice"),$=Math.max,P=Math.min;p({target:"Array",proto:!0,forced:!ne},{splice:function(L,C){var k=S(this),B=E(k),X=A(L,B),H=arguments.length,D,re,J,z,fe,pe;for(H===0?D=re=0:H===1?(D=0,re=B-X):(D=H-2,re=P($(h(C),0),B-X)),U(B+D-re),J=_(k,re),z=0;z<re;z++)fe=X+z,fe in k&&Q(J,z,k[fe]);if(J.length=re,D<re){for(z=X;z<B-re;z++)fe=z+re,pe=z+D,fe in k?k[pe]=k[fe]:le(k,pe);for(z=B;z>B-re+D;z--)le(k,z-1)}else if(D>re)for(z=B-re;z>X;z--)fe=z+re-1,pe=z+D-1,fe in k?k[pe]=k[fe]:le(k,pe);for(z=0;z<D;z++)k[z+X]=arguments[z+2];return F(k,B-re+D),J}})},25067:(v,T,s)=>{var p=s(93085),S=s(98576);p({global:!0,forced:S.globalThis!==S},{globalThis:S})},59704:(v,T,s)=>{var p=s(93085),S=s(10150),A=s(86298),h=s(18922),E=s(84120),F=s(76192),U=s(34770),_=s(16447),Q=s(35744),le=s(23236),K=s(93096),ne=s(36770),$=S("JSON","stringify"),P=E(/./.exec),Y=E("".charAt),L=E("".charCodeAt),C=E("".replace),k=E(1 .toString),B=/[\uD800-\uDFFF]/g,X=/^[\uD800-\uDBFF]$/,H=/^[\uDC00-\uDFFF]$/,D=!ne||F(function(){var fe=S("Symbol")();return $([fe])!="[null]"||$({a:fe})!="{}"||$(Object(fe))!="{}"}),re=F(function(){return $("\uDF06\uD834")!=='"\\udf06\\ud834"'||$("\uDEAD")!=='"\\udead"'}),J=function(fe,pe){var q=K(arguments),Z=pe;if(!(!Q(pe)&&fe===void 0||le(fe)))return U(pe)||(pe=function(G,ve){if(_(Z)&&(ve=h(Z,this,G,ve)),!le(ve))return ve}),q[1]=pe,A($,null,q)},z=function(fe,pe,q){var Z=Y(q,pe-1),G=Y(q,pe+1);return P(X,fe)&&!P(H,G)||P(H,fe)&&!P(X,Z)?"\\u"+k(L(fe,0),16):fe};$&&p({target:"JSON",stat:!0,arity:3,forced:D||re},{stringify:function(pe,q,Z){var G=K(arguments),ve=A(D?J:$,null,G);return re&&typeof ve=="string"?C(ve,B,z):ve}})},68671:(v,T,s)=>{var p=s(98576),S=s(11284);S(p.JSON,"JSON",!0)},58556:()=>{},93582:(v,T,s)=>{var p=s(93085),S=s(52503);p({target:"Object",stat:!0,arity:2,forced:Object.assign!==S},{assign:S})},73113:(v,T,s)=>{var p=s(93085),S=s(50069),A=s(52853);p({target:"Object",stat:!0,sham:!S},{create:A})},57585:(v,T,s)=>{var p=s(93085),S=s(50069),A=s(11187).f;p({target:"Object",stat:!0,forced:Object.defineProperties!==A,sham:!S},{defineProperties:A})},20297:(v,T,s)=>{var p=s(93085),S=s(50069),A=s(42760).f;p({target:"Object",stat:!0,forced:Object.defineProperty!==A,sham:!S},{defineProperty:A})},27442:(v,T,s)=>{var p=s(93085),S=s(75370).entries;p({target:"Object",stat:!0},{entries:function(h){return S(h)}})},89189:(v,T,s)=>{var p=s(93085),S=s(76192),A=s(20101),h=s(5141).f,E=s(50069),F=S(function(){h(1)}),U=!E||F;p({target:"Object",stat:!0,forced:U,sham:!E},{getOwnPropertyDescriptor:function(Q,le){return h(A(Q),le)}})},62509:(v,T,s)=>{var p=s(93085),S=s(50069),A=s(93011),h=s(20101),E=s(5141),F=s(49361);p({target:"Object",stat:!0,sham:!S},{getOwnPropertyDescriptors:function(_){for(var Q=h(_),le=E.f,K=A(Q),ne={},$=0,P,Y;K.length>$;)Y=le(Q,P=K[$++]),Y!==void 0&&F(ne,P,Y);return ne}})},17895:(v,T,s)=>{var p=s(93085),S=s(36770),A=s(76192),h=s(84750),E=s(71795),F=!S||A(function(){h.f(1)});p({target:"Object",stat:!0,forced:F},{getOwnPropertySymbols:function(_){var Q=h.f;return Q?Q(E(_)):[]}})},19234:(v,T,s)=>{var p=s(93085),S=s(76192),A=s(71795),h=s(89341),E=s(4635),F=S(function(){h(1)});p({target:"Object",stat:!0,forced:F,sham:!E},{getPrototypeOf:function(_){return h(A(_))}})},92647:(v,T,s)=>{var p=s(93085),S=s(71795),A=s(57653),h=s(76192),E=h(function(){A(1)});p({target:"Object",stat:!0,forced:E},{keys:function(U){return A(S(U))}})},13222:(v,T,s)=>{var p=s(93085),S=s(24469);p({target:"Object",stat:!0},{setPrototypeOf:S})},46663:()=>{},97884:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(66235),h=s(99438),E=s(70892),F=s(33442);p({target:"Promise",stat:!0},{allSettled:function(_){var Q=this,le=h.f(Q),K=le.resolve,ne=le.reject,$=E(function(){var P=A(Q.resolve),Y=[],L=0,C=1;F(_,function(k){var B=L++,X=!1;C++,S(P,Q,k).then(function(H){X||(X=!0,Y[B]={status:"fulfilled",value:H},--C||K(Y))},function(H){X||(X=!0,Y[B]={status:"rejected",reason:H},--C||K(Y))})}),--C||K(Y)});return $.error&&ne($.value),le.promise}})},89701:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(66235),h=s(99438),E=s(70892),F=s(33442),U=s(52775);p({target:"Promise",stat:!0,forced:U},{all:function(Q){var le=this,K=h.f(le),ne=K.resolve,$=K.reject,P=E(function(){var Y=A(le.resolve),L=[],C=0,k=1;F(Q,function(B){var X=C++,H=!1;k++,S(Y,le,B).then(function(D){H||(H=!0,L[X]=D,--k||ne(L))},$)}),--k||ne(L)});return P.error&&$(P.value),K.promise}})},78885:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(66235),h=s(10150),E=s(99438),F=s(70892),U=s(33442),_="No one promise resolved";p({target:"Promise",stat:!0},{any:function(le){var K=this,ne=h("AggregateError"),$=E.f(K),P=$.resolve,Y=$.reject,L=F(function(){var C=A(K.resolve),k=[],B=0,X=1,H=!1;U(le,function(D){var re=B++,J=!1;X++,S(C,K,D).then(function(z){J||H||(H=!0,P(z))},function(z){J||H||(J=!0,k[re]=z,--X||Y(new ne(k,_)))})}),--X||Y(new ne(k,_))});return L.error&&Y(L.value),$.promise}})},34025:(v,T,s)=>{"use strict";var p=s(93085),S=s(85546),A=s(30511).CONSTRUCTOR,h=s(15813),E=s(10150),F=s(16447),U=s(59362),_=h&&h.prototype;if(p({target:"Promise",proto:!0,forced:A,real:!0},{catch:function(le){return this.then(void 0,le)}}),!S&&F(h)){var Q=E("Promise").prototype.catch;_.catch!==Q&&U(_,"catch",Q,{unsafe:!0})}},60268:(v,T,s)=>{"use strict";var p=s(93085),S=s(85546),A=s(58189),h=s(98576),E=s(18922),F=s(59362),U=s(24469),_=s(11284),Q=s(63656),le=s(66235),K=s(16447),ne=s(35744),$=s(46961),P=s(84743),Y=s(67160).set,L=s(12950),C=s(63681),k=s(70892),B=s(6412),X=s(73326),H=s(15813),D=s(30511),re=s(99438),J="Promise",z=D.CONSTRUCTOR,fe=D.REJECTION_EVENT,pe=D.SUBCLASSING,q=X.getterFor(J),Z=X.set,G=H&&H.prototype,ve=H,Ie=G,Ne=h.TypeError,je=h.document,tt=h.process,_e=re.f,mt=_e,De=!!(je&&je.createEvent&&h.dispatchEvent),Oe="unhandledrejection",Ue="rejectionhandled",Pe=0,Ce=1,Ge=2,rt=1,$e=2,et,Ze,Ct,kt,Zt=function(Xe){var gt;return ne(Xe)&&K(gt=Xe.then)?gt:!1},lt=function(Xe,gt){var Tt=gt.value,At=gt.state==Ce,Ot=At?Xe.ok:Xe.fail,ct=Xe.resolve,it=Xe.reject,Et=Xe.domain,nt,Ve,ue;try{Ot?(At||(gt.rejection===$e&&qr(gt),gt.rejection=rt),Ot===!0?nt=Tt:(Et&&Et.enter(),nt=Ot(Tt),Et&&(Et.exit(),ue=!0)),nt===Xe.promise?it(Ne("Promise-chain cycle")):(Ve=Zt(nt))?E(Ve,nt,ct,it):ct(nt)):it(Tt)}catch(ge){Et&&!ue&&Et.exit(),it(ge)}},xt=function(Xe,gt){Xe.notified||(Xe.notified=!0,L(function(){for(var Tt=Xe.reactions,At;At=Tt.get();)lt(At,Xe);Xe.notified=!1,gt&&!Xe.rejection&&Kr(Xe)}))},Ft=function(Xe,gt,Tt){var At,Ot;De?(At=je.createEvent("Event"),At.promise=gt,At.reason=Tt,At.initEvent(Xe,!1,!0),h.dispatchEvent(At)):At={promise:gt,reason:Tt},!fe&&(Ot=h["on"+Xe])?Ot(At):Xe===Oe&&C("Unhandled promise rejection",Tt)},Kr=function(Xe){E(Y,h,function(){var gt=Xe.facade,Tt=Xe.value,At=br(Xe),Ot;if(At&&(Ot=k(function(){A?tt.emit("unhandledRejection",Tt,gt):Ft(Oe,gt,Tt)}),Xe.rejection=A||br(Xe)?$e:rt,Ot.error))throw Ot.value})},br=function(Xe){return Xe.rejection!==rt&&!Xe.parent},qr=function(Xe){E(Y,h,function(){var gt=Xe.facade;A?tt.emit("rejectionHandled",gt):Ft(Ue,gt,Xe.value)})},xr=function(Xe,gt,Tt){return function(At){Xe(gt,At,Tt)}},Yt=function(Xe,gt,Tt){Xe.done||(Xe.done=!0,Tt&&(Xe=Tt),Xe.value=gt,Xe.state=Ge,xt(Xe,!0))},dr=function(Xe,gt,Tt){if(!Xe.done){Xe.done=!0,Tt&&(Xe=Tt);try{if(Xe.facade===gt)throw Ne("Promise can't be resolved itself");var At=Zt(gt);At?L(function(){var Ot={done:!1};try{E(At,gt,xr(dr,Ot,Xe),xr(Yt,Ot,Xe))}catch(ct){Yt(Ot,ct,Xe)}}):(Xe.value=gt,Xe.state=Ce,xt(Xe,!1))}catch(Ot){Yt({done:!1},Ot,Xe)}}};if(z&&(ve=function(gt){$(this,Ie),le(gt),E(et,this);var Tt=q(this);try{gt(xr(dr,Tt),xr(Yt,Tt))}catch(At){Yt(Tt,At)}},Ie=ve.prototype,et=function(gt){Z(this,{type:J,done:!1,notified:!1,parent:!1,reactions:new B,rejection:!1,state:Pe,value:void 0})},et.prototype=F(Ie,"then",function(gt,Tt){var At=q(this),Ot=_e(P(this,ve));return At.parent=!0,Ot.ok=K(gt)?gt:!0,Ot.fail=K(Tt)&&Tt,Ot.domain=A?tt.domain:void 0,At.state==Pe?At.reactions.add(Ot):L(function(){lt(Ot,At)}),Ot.promise}),Ze=function(){var Xe=new et,gt=q(Xe);this.promise=Xe,this.resolve=xr(dr,gt),this.reject=xr(Yt,gt)},re.f=_e=function(Xe){return Xe===ve||Xe===Ct?new Ze(Xe):mt(Xe)},!S&&K(H)&&G!==Object.prototype)){kt=G.then,pe||F(G,"then",function(gt,Tt){var At=this;return new ve(function(Ot,ct){E(kt,At,Ot,ct)}).then(gt,Tt)},{unsafe:!0});try{delete G.constructor}catch(Xe){}U&&U(G,Ie)}p({global:!0,constructor:!0,wrap:!0,forced:z},{Promise:ve}),_(ve,J,!1,!0),Q(J)},91868:(v,T,s)=>{"use strict";var p=s(93085),S=s(85546),A=s(15813),h=s(76192),E=s(10150),F=s(16447),U=s(84743),_=s(19126),Q=s(59362),le=A&&A.prototype,K=!!A&&h(function(){le.finally.call({then:function(){}},function(){})});if(p({target:"Promise",proto:!0,real:!0,forced:K},{finally:function($){var P=U(this,E("Promise")),Y=F($);return this.then(Y?function(L){return _(P,$()).then(function(){return L})}:$,Y?function(L){return _(P,$()).then(function(){throw L})}:$)}}),!S&&F(A)){var ne=E("Promise").prototype.finally;le.finally!==ne&&Q(le,"finally",ne,{unsafe:!0})}},59021:(v,T,s)=>{s(60268),s(89701),s(34025),s(67196),s(85873),s(22931)},67196:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(66235),h=s(99438),E=s(70892),F=s(33442),U=s(52775);p({target:"Promise",stat:!0,forced:U},{race:function(Q){var le=this,K=h.f(le),ne=K.reject,$=E(function(){var P=A(le.resolve);F(Q,function(Y){S(P,le,Y).then(K.resolve,ne)})});return $.error&&ne($.value),K.promise}})},85873:(v,T,s)=>{"use strict";var p=s(93085),S=s(18922),A=s(99438),h=s(30511).CONSTRUCTOR;p({target:"Promise",stat:!0,forced:h},{reject:function(F){var U=A.f(this);return S(U.reject,void 0,F),U.promise}})},22931:(v,T,s)=>{"use strict";var p=s(93085),S=s(10150),A=s(85546),h=s(15813),E=s(30511).CONSTRUCTOR,F=s(19126),U=S("Promise"),_=A&&!E;p({target:"Promise",stat:!0,forced:A||E},{resolve:function(le){return F(_&&this===U?h:this,le)}})},71367:()=>{},39247:(v,T,s)=>{"use strict";var p=s(93085),S=s(84120),A=s(9703),h=s(13209),E=s(44845),F=s(83519),U=S("".indexOf);p({target:"String",proto:!0,forced:!F("includes")},{includes:function(Q){return!!~U(E(h(this)),E(A(Q)),arguments.length>1?arguments[1]:void 0)}})},5454:(v,T,s)=>{"use strict";var p=s(863).charAt,S=s(44845),A=s(73326),h=s(65297),E=s(87271),F="String Iterator",U=A.set,_=A.getterFor(F);h(String,"String",function(Q){U(this,{type:F,string:S(Q),index:0})},function(){var le=_(this),K=le.string,ne=le.index,$;return ne>=K.length?E(void 0,!0):($=p(K,ne),le.index+=$.length,E($,!1))})},32991:(v,T,s)=>{"use strict";var p=s(93085),S=s(84120),A=s(5141).f,h=s(8445),E=s(44845),F=s(9703),U=s(13209),_=s(83519),Q=s(85546),le=S("".startsWith),K=S("".slice),ne=Math.min,$=_("startsWith"),P=!Q&&!$&&!!function(){var Y=A(String.prototype,"startsWith");return Y&&!Y.writable}();p({target:"String",proto:!0,forced:!P&&!$},{startsWith:function(L){var C=E(U(this));F(L);var k=h(ne(arguments.length>1?arguments[1]:void 0,C.length)),B=E(L);return le?le(C,B,k):K(C,k,k+B.length)===B}})},19781:(v,T,s)=>{var p=s(48332);p("asyncIterator")},49351:(v,T,s)=>{"use strict";var p=s(93085),S=s(98576),A=s(18922),h=s(84120),E=s(85546),F=s(50069),U=s(36770),_=s(76192),Q=s(64500),le=s(8902),K=s(31138),ne=s(20101),$=s(40077),P=s(44845),Y=s(90774),L=s(52853),C=s(57653),k=s(92092),B=s(24052),X=s(84750),H=s(5141),D=s(42760),re=s(11187),J=s(56007),z=s(59362),fe=s(98717),pe=s(69766),q=s(14535),Z=s(42759),G=s(18182),ve=s(89207),Ie=s(48332),Ne=s(93407),je=s(11284),tt=s(73326),_e=s(50454).forEach,mt=pe("hidden"),De="Symbol",Oe="prototype",Ue=tt.set,Pe=tt.getterFor(De),Ce=Object[Oe],Ge=S.Symbol,rt=Ge&&Ge[Oe],$e=S.TypeError,et=S.QObject,Ze=H.f,Ct=D.f,kt=B.f,Zt=J.f,lt=h([].push),xt=fe("symbols"),Ft=fe("op-symbols"),Kr=fe("wks"),br=!et||!et[Oe]||!et[Oe].findChild,qr=F&&_(function(){return L(Ct({},"a",{get:function(){return Ct(this,"a",{value:7}).a}})).a!=7})?function(ct,it,Et){var nt=Ze(Ce,it);nt&&delete Ce[it],Ct(ct,it,Et),nt&&ct!==Ce&&Ct(Ce,it,nt)}:Ct,xr=function(ct,it){var Et=xt[ct]=L(rt);return Ue(Et,{type:De,tag:ct,description:it}),F||(Et.description=it),Et},Yt=function(it,Et,nt){it===Ce&&Yt(Ft,Et,nt),K(it);var Ve=$(Et);return K(nt),Q(xt,Ve)?(nt.enumerable?(Q(it,mt)&&it[mt][Ve]&&(it[mt][Ve]=!1),nt=L(nt,{enumerable:Y(0,!1)})):(Q(it,mt)||Ct(it,mt,Y(1,{})),it[mt][Ve]=!0),qr(it,Ve,nt)):Ct(it,Ve,nt)},dr=function(it,Et){K(it);var nt=ne(Et),Ve=C(nt).concat(Ot(nt));return _e(Ve,function(ue){(!F||A(gt,nt,ue))&&Yt(it,ue,nt[ue])}),it},Xe=function(it,Et){return Et===void 0?L(it):dr(L(it),Et)},gt=function(it){var Et=$(it),nt=A(Zt,this,Et);return this===Ce&&Q(xt,Et)&&!Q(Ft,Et)?!1:nt||!Q(this,Et)||!Q(xt,Et)||Q(this,mt)&&this[mt][Et]?nt:!0},Tt=function(it,Et){var nt=ne(it),Ve=$(Et);if(!(nt===Ce&&Q(xt,Ve)&&!Q(Ft,Ve))){var ue=Ze(nt,Ve);return ue&&Q(xt,Ve)&&!(Q(nt,mt)&&nt[mt][Ve])&&(ue.enumerable=!0),ue}},At=function(it){var Et=kt(ne(it)),nt=[];return _e(Et,function(Ve){!Q(xt,Ve)&&!Q(q,Ve)&<(nt,Ve)}),nt},Ot=function(ct){var it=ct===Ce,Et=kt(it?Ft:ne(ct)),nt=[];return _e(Et,function(Ve){Q(xt,Ve)&&(!it||Q(Ce,Ve))&<(nt,xt[Ve])}),nt};U||(Ge=function(){if(le(rt,this))throw $e("Symbol is not a constructor");var it=!arguments.length||arguments[0]===void 0?void 0:P(arguments[0]),Et=Z(it),nt=function(Ve){this===Ce&&A(nt,Ft,Ve),Q(this,mt)&&Q(this[mt],Et)&&(this[mt][Et]=!1),qr(this,Et,Y(1,Ve))};return F&&br&&qr(Ce,Et,{configurable:!0,set:nt}),xr(Et,it)},rt=Ge[Oe],z(rt,"toString",function(){return Pe(this).tag}),z(Ge,"withoutSetter",function(ct){return xr(Z(ct),ct)}),J.f=gt,D.f=Yt,re.f=dr,H.f=Tt,k.f=B.f=At,X.f=Ot,ve.f=function(ct){return xr(G(ct),ct)},F&&(Ct(rt,"description",{configurable:!0,get:function(){return Pe(this).description}}),E||z(Ce,"propertyIsEnumerable",gt,{unsafe:!0}))),p({global:!0,constructor:!0,wrap:!0,forced:!U,sham:!U},{Symbol:Ge}),_e(C(Kr),function(ct){Ie(ct)}),p({target:De,stat:!0,forced:!U},{useSetter:function(){br=!0},useSimple:function(){br=!1}}),p({target:"Object",stat:!0,forced:!U,sham:!F},{create:Xe,defineProperty:Yt,defineProperties:dr,getOwnPropertyDescriptor:Tt}),p({target:"Object",stat:!0,forced:!U},{getOwnPropertyNames:At}),Ne(),je(Ge,De),q[mt]=!0},50492:()=>{},19148:(v,T,s)=>{var p=s(93085),S=s(10150),A=s(64500),h=s(44845),E=s(98717),F=s(20031),U=E("string-to-symbol-registry"),_=E("symbol-to-string-registry");p({target:"Symbol",stat:!0,forced:!F},{for:function(Q){var le=h(Q);if(A(U,le))return U[le];var K=S("Symbol")(le);return U[le]=K,_[K]=le,K}})},66681:(v,T,s)=>{var p=s(48332);p("hasInstance")},29594:(v,T,s)=>{var p=s(48332);p("isConcatSpreadable")},63665:(v,T,s)=>{var p=s(48332);p("iterator")},36187:(v,T,s)=>{s(49351),s(19148),s(15991),s(59704),s(17895)},15991:(v,T,s)=>{var p=s(93085),S=s(64500),A=s(23236),h=s(79288),E=s(98717),F=s(20031),U=E("symbol-to-string-registry");p({target:"Symbol",stat:!0,forced:!F},{keyFor:function(Q){if(!A(Q))throw TypeError(h(Q)+" is not a symbol");if(S(U,Q))return U[Q]}})},11250:(v,T,s)=>{var p=s(48332);p("matchAll")},29017:(v,T,s)=>{var p=s(48332);p("match")},79786:(v,T,s)=>{var p=s(48332);p("replace")},90503:(v,T,s)=>{var p=s(48332);p("search")},16565:(v,T,s)=>{var p=s(48332);p("species")},69322:(v,T,s)=>{var p=s(48332);p("split")},13610:(v,T,s)=>{var p=s(48332),S=s(93407);p("toPrimitive"),S()},36886:(v,T,s)=>{var p=s(10150),S=s(48332),A=s(11284);S("toStringTag"),A(p("Symbol"),"Symbol")},33514:(v,T,s)=>{var p=s(48332);p("unscopables")},10572:(v,T,s)=>{"use strict";var p=s(98576),S=s(84120),A=s(35090),h=s(32861),E=s(34535),F=s(51057),U=s(35744),_=s(4532),Q=s(73326).enforce,le=s(55278),K=!p.ActiveXObject&&"ActiveXObject"in p,ne,$=function(X){return function(){return X(this,arguments.length?arguments[0]:void 0)}},P=E("WeakMap",$,F);if(le&&K){ne=F.getConstructor($,"WeakMap",!0),h.enable();var Y=P.prototype,L=S(Y.delete),C=S(Y.has),k=S(Y.get),B=S(Y.set);A(Y,{delete:function(X){if(U(X)&&!_(X)){var H=Q(this);return H.frozen||(H.frozen=new ne),L(this,X)||H.frozen.delete(X)}return L(this,X)},has:function(H){if(U(H)&&!_(H)){var D=Q(this);return D.frozen||(D.frozen=new ne),C(this,H)||D.frozen.has(H)}return C(this,H)},get:function(H){if(U(H)&&!_(H)){var D=Q(this);return D.frozen||(D.frozen=new ne),C(this,H)?k(this,H):D.frozen.get(H)}return k(this,H)},set:function(H,D){if(U(H)&&!_(H)){var re=Q(this);re.frozen||(re.frozen=new ne),C(this,H)?B(this,H,D):re.frozen.set(H,D)}else B(this,H,D);return this}})}},33983:(v,T,s)=>{s(10572)},12752:(v,T,s)=>{s(4242)},5363:(v,T,s)=>{s(25067)},14562:(v,T,s)=>{s(97884)},69355:(v,T,s)=>{s(78885)},25363:(v,T,s)=>{"use strict";var p=s(93085),S=s(99438),A=s(70892);p({target:"Promise",stat:!0,forced:!0},{try:function(h){var E=S.f(this),F=A(h);return(F.error?E.reject:E.resolve)(F.value),E.promise}})},60177:(v,T,s)=>{var p=s(48332);p("asyncDispose")},9031:(v,T,s)=>{var p=s(48332);p("dispose")},96658:(v,T,s)=>{var p=s(48332);p("matcher")},54212:(v,T,s)=>{var p=s(48332);p("metadataKey")},71875:(v,T,s)=>{var p=s(48332);p("metadata")},18658:(v,T,s)=>{var p=s(48332);p("observable")},54592:(v,T,s)=>{var p=s(48332);p("patternMatch")},26680:(v,T,s)=>{var p=s(48332);p("replaceAll")},80162:(v,T,s)=>{s(98939);var p=s(17365),S=s(98576),A=s(4696),h=s(98711),E=s(47771),F=s(18182),U=F("toStringTag");for(var _ in p){var Q=S[_],le=Q&&Q.prototype;le&&A(le)!==U&&h(le,U,_),E[_]=E.Array}},67054:(v,T,s)=>{"use strict";s(98939);var p=s(93085),S=s(98576),A=s(18922),h=s(84120),E=s(50069),F=s(58552),U=s(59362),_=s(35090),Q=s(11284),le=s(25695),K=s(73326),ne=s(46961),$=s(16447),P=s(64500),Y=s(8043),L=s(4696),C=s(31138),k=s(35744),B=s(44845),X=s(52853),H=s(90774),D=s(61669),re=s(78703),J=s(67822),z=s(18182),fe=s(6614),pe=z("iterator"),q="URLSearchParams",Z=q+"Iterator",G=K.set,ve=K.getterFor(q),Ie=K.getterFor(Z),Ne=Object.getOwnPropertyDescriptor,je=function(Ve){if(!E)return S[Ve];var ue=Ne(S,Ve);return ue&&ue.value},tt=je("fetch"),_e=je("Request"),mt=je("Headers"),De=_e&&_e.prototype,Oe=mt&&mt.prototype,Ue=S.RegExp,Pe=S.TypeError,Ce=S.decodeURIComponent,Ge=S.encodeURIComponent,rt=h("".charAt),$e=h([].join),et=h([].push),Ze=h("".replace),Ct=h([].shift),kt=h([].splice),Zt=h("".split),lt=h("".slice),xt=/\+/g,Ft=Array(4),Kr=function(Ve){return Ft[Ve-1]||(Ft[Ve-1]=Ue("((?:%[\\da-f]{2}){"+Ve+"})","gi"))},br=function(Ve){try{return Ce(Ve)}catch(ue){return Ve}},qr=function(Ve){var ue=Ze(Ve,xt," "),ge=4;try{return Ce(ue)}catch(Be){for(;ge;)ue=Ze(ue,Kr(ge--),br);return ue}},xr=/[!'()~]|%20/g,Yt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},dr=function(Ve){return Yt[Ve]},Xe=function(Ve){return Ze(Ge(Ve),xr,dr)},gt=le(function(ue,ge){G(this,{type:Z,iterator:D(ve(ue).entries),kind:ge})},"Iterator",function(){var ue=Ie(this),ge=ue.kind,Be=ue.iterator.next(),Ke=Be.value;return Be.done||(Be.value=ge==="keys"?Ke.key:ge==="values"?Ke.value:[Ke.key,Ke.value]),Be},!0),Tt=function(Ve){this.entries=[],this.url=null,Ve!==void 0&&(k(Ve)?this.parseObject(Ve):this.parseQuery(typeof Ve=="string"?rt(Ve,0)==="?"?lt(Ve,1):Ve:B(Ve)))};Tt.prototype={type:q,bindURL:function(Ve){this.url=Ve,this.update()},parseObject:function(Ve){var ue=re(Ve),ge,Be,Ke,at,bt,Rt,pr;if(ue)for(ge=D(Ve,ue),Be=ge.next;!(Ke=A(Be,ge)).done;){if(at=D(C(Ke.value)),bt=at.next,(Rt=A(bt,at)).done||(pr=A(bt,at)).done||!A(bt,at).done)throw Pe("Expected sequence with length 2");et(this.entries,{key:B(Rt.value),value:B(pr.value)})}else for(var Lt in Ve)P(Ve,Lt)&&et(this.entries,{key:Lt,value:B(Ve[Lt])})},parseQuery:function(Ve){if(Ve)for(var ue=Zt(Ve,"&"),ge=0,Be,Ke;ge<ue.length;)Be=ue[ge++],Be.length&&(Ke=Zt(Be,"="),et(this.entries,{key:qr(Ct(Ke)),value:qr($e(Ke,"="))}))},serialize:function(){for(var Ve=this.entries,ue=[],ge=0,Be;ge<Ve.length;)Be=Ve[ge++],et(ue,Xe(Be.key)+"="+Xe(Be.value));return $e(ue,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var At=function(){ne(this,Ot);var ue=arguments.length>0?arguments[0]:void 0;G(this,new Tt(ue))},Ot=At.prototype;if(_(Ot,{append:function(ue,ge){J(arguments.length,2);var Be=ve(this);et(Be.entries,{key:B(ue),value:B(ge)}),Be.updateURL()},delete:function(Ve){J(arguments.length,1);for(var ue=ve(this),ge=ue.entries,Be=B(Ve),Ke=0;Ke<ge.length;)ge[Ke].key===Be?kt(ge,Ke,1):Ke++;ue.updateURL()},get:function(ue){J(arguments.length,1);for(var ge=ve(this).entries,Be=B(ue),Ke=0;Ke<ge.length;Ke++)if(ge[Ke].key===Be)return ge[Ke].value;return null},getAll:function(ue){J(arguments.length,1);for(var ge=ve(this).entries,Be=B(ue),Ke=[],at=0;at<ge.length;at++)ge[at].key===Be&&et(Ke,ge[at].value);return Ke},has:function(ue){J(arguments.length,1);for(var ge=ve(this).entries,Be=B(ue),Ke=0;Ke<ge.length;)if(ge[Ke++].key===Be)return!0;return!1},set:function(ue,ge){J(arguments.length,1);for(var Be=ve(this),Ke=Be.entries,at=!1,bt=B(ue),Rt=B(ge),pr=0,Lt;pr<Ke.length;pr++)Lt=Ke[pr],Lt.key===bt&&(at?kt(Ke,pr--,1):(at=!0,Lt.value=Rt));at||et(Ke,{key:bt,value:Rt}),Be.updateURL()},sort:function(){var ue=ve(this);fe(ue.entries,function(ge,Be){return ge.key>Be.key?1:-1}),ue.updateURL()},forEach:function(ue){for(var ge=ve(this).entries,Be=Y(ue,arguments.length>1?arguments[1]:void 0),Ke=0,at;Ke<ge.length;)at=ge[Ke++],Be(at.value,at.key,this)},keys:function(){return new gt(this,"keys")},values:function(){return new gt(this,"values")},entries:function(){return new gt(this,"entries")}},{enumerable:!0}),U(Ot,pe,Ot.entries,{name:"entries"}),U(Ot,"toString",function(){return ve(this).serialize()},{enumerable:!0}),Q(At,q),p({global:!0,constructor:!0,forced:!F},{URLSearchParams:At}),!F&&$(mt)){var ct=h(Oe.has),it=h(Oe.set),Et=function(Ve){if(k(Ve)){var ue=Ve.body,ge;if(L(ue)===q)return ge=Ve.headers?new mt(Ve.headers):new mt,ct(ge,"content-type")||it(ge,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),X(Ve,{body:H(0,B(ue)),headers:H(0,ge)})}return Ve};if($(tt)&&p({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(ue){return tt(ue,arguments.length>1?Et(arguments[1]):{})}}),$(_e)){var nt=function(ue){return ne(this,De),new _e(ue,arguments.length>1?Et(arguments[1]):{})};De.constructor=nt,nt.prototype=De,p({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:nt})}}v.exports={URLSearchParams:At,getState:ve}},69336:(v,T,s)=>{s(67054)},53822:(v,T,s)=>{var p=s(52221);v.exports=p},21434:(v,T,s)=>{var p=s(75078);v.exports=p},51629:(v,T,s)=>{var p=s(77237);v.exports=p},46899:(v,T,s)=>{var p=s(60098);v.exports=p},27710:(v,T,s)=>{var p=s(65739);s(80162),v.exports=p},31585:(v,T,s)=>{var p=s(74030);v.exports=p},44877:(v,T,s)=>{var p=s(41484);v.exports=p},10140:(v,T,s)=>{s(80162);var p=s(4696),S=s(64500),A=s(8902),h=s(51629),E=Array.prototype,F={DOMTokenList:!0,NodeList:!0};v.exports=function(U){var _=U.entries;return U===E||A(E,U)&&_===E.entries||S(F,p(U))?h:_}},55603:(v,T,s)=>{var p=s(53669);v.exports=p},76237:(v,T,s)=>{var p=s(37506);v.exports=p},31206:(v,T,s)=>{s(80162);var p=s(4696),S=s(64500),A=s(8902),h=s(46899),E=Array.prototype,F={DOMTokenList:!0,NodeList:!0};v.exports=function(U){var _=U.forEach;return U===E||A(E,U)&&_===E.forEach||S(F,p(U))?h:_}},56515:(v,T,s)=>{var p=s(13173);v.exports=p},26174:(v,T,s)=>{var p=s(92604);v.exports=p},20057:(v,T,s)=>{var p=s(263);v.exports=p},87511:(v,T,s)=>{var p=s(80432);v.exports=p},24741:(v,T,s)=>{var p=s(77663);v.exports=p},8368:(v,T,s)=>{var p=s(45063);v.exports=p},342:(v,T,s)=>{var p=s(7769);v.exports=p},392:(v,T,s)=>{var p=s(96056);v.exports=p},28478:(v,T,s)=>{var p=s(99936);v.exports=p},4963:(v,T,s)=>{var p=s(23213);v.exports=p},21025:(v,T,s)=>{var p=s(38724);v.exports=p},27820:(v,T,s)=>{var p=s(63512);v.exports=p},58202:(v,T,s)=>{var p=s(2335);v.exports=p},74194:(v,T,s)=>{var p=s(60632);v.exports=p},32854:(v,T,s)=>{var p=s(81056);v.exports=p},60002:(v,T,s)=>{var p=s(12921);v.exports=p},28980:(v,T,s)=>{var p=s(8168);v.exports=p},45636:(v,T,s)=>{var p=s(38651);v.exports=p},66672:(v,T,s)=>{var p=s(33083);v.exports=p},46618:(v,T,s)=>{var p=s(93154);s(80162),v.exports=p},42285:(v,T,s)=>{var p=s(85008);s(80162),v.exports=p},58535:(v,T,s)=>{var p=s(994);s(80162),v.exports=p},72946:(v,T,s)=>{var p=s(32004);s(80162),v.exports=p},11235:(v,T,s)=>{var p=s(31293);s(80162),v.exports=p},32004:(v,T,s)=>{s(69336);var p=s(57545);v.exports=p.URLSearchParams},43616:function(){(function(v){var T=function(s){var p={searchParams:"URLSearchParams"in v,iterable:"Symbol"in v&&"iterator"in Symbol,blob:"FileReader"in v&&"Blob"in v&&function(){try{return new Blob,!0}catch(J){return!1}}(),formData:"FormData"in v,arrayBuffer:"ArrayBuffer"in v};function S(J){return J&&DataView.prototype.isPrototypeOf(J)}if(p.arrayBuffer)var A=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(J){return J&&A.indexOf(Object.prototype.toString.call(J))>-1};function E(J){if(typeof J!="string"&&(J=String(J)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(J))throw new TypeError("Invalid character in header field name");return J.toLowerCase()}function F(J){return typeof J!="string"&&(J=String(J)),J}function U(J){var z={next:function(){var fe=J.shift();return{done:fe===void 0,value:fe}}};return p.iterable&&(z[Symbol.iterator]=function(){return z}),z}function _(J){this.map={},J instanceof _?J.forEach(function(z,fe){this.append(fe,z)},this):Array.isArray(J)?J.forEach(function(z){this.append(z[0],z[1])},this):J&&Object.getOwnPropertyNames(J).forEach(function(z){this.append(z,J[z])},this)}_.prototype.append=function(J,z){J=E(J),z=F(z);var fe=this.map[J];this.map[J]=fe?fe+", "+z:z},_.prototype.delete=function(J){delete this.map[E(J)]},_.prototype.get=function(J){return J=E(J),this.has(J)?this.map[J]:null},_.prototype.has=function(J){return this.map.hasOwnProperty(E(J))},_.prototype.set=function(J,z){this.map[E(J)]=F(z)},_.prototype.forEach=function(J,z){for(var fe in this.map)this.map.hasOwnProperty(fe)&&J.call(z,this.map[fe],fe,this)},_.prototype.keys=function(){var J=[];return this.forEach(function(z,fe){J.push(fe)}),U(J)},_.prototype.values=function(){var J=[];return this.forEach(function(z){J.push(z)}),U(J)},_.prototype.entries=function(){var J=[];return this.forEach(function(z,fe){J.push([fe,z])}),U(J)},p.iterable&&(_.prototype[Symbol.iterator]=_.prototype.entries);function Q(J){if(J.bodyUsed)return Promise.reject(new TypeError("Already read"));J.bodyUsed=!0}function le(J){return new Promise(function(z,fe){J.onload=function(){z(J.result)},J.onerror=function(){fe(J.error)}})}function K(J){var z=new FileReader,fe=le(z);return z.readAsArrayBuffer(J),fe}function ne(J){var z=new FileReader,fe=le(z);return z.readAsText(J),fe}function $(J){for(var z=new Uint8Array(J),fe=new Array(z.length),pe=0;pe<z.length;pe++)fe[pe]=String.fromCharCode(z[pe]);return fe.join("")}function P(J){if(J.slice)return J.slice(0);var z=new Uint8Array(J.byteLength);return z.set(new Uint8Array(J)),z.buffer}function Y(){return this.bodyUsed=!1,this._initBody=function(J){this._bodyInit=J,J?typeof J=="string"?this._bodyText=J:p.blob&&Blob.prototype.isPrototypeOf(J)?this._bodyBlob=J:p.formData&&FormData.prototype.isPrototypeOf(J)?this._bodyFormData=J:p.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)?this._bodyText=J.toString():p.arrayBuffer&&p.blob&&S(J)?(this._bodyArrayBuffer=P(J.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):p.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(J)||h(J))?this._bodyArrayBuffer=P(J):this._bodyText=J=Object.prototype.toString.call(J):this._bodyText="",this.headers.get("content-type")||(typeof J=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):p.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},p.blob&&(this.blob=function(){var J=Q(this);if(J)return J;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Q(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(K)}),this.text=function(){var J=Q(this);if(J)return J;if(this._bodyBlob)return ne(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve($(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(B)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(J){var z=J.toUpperCase();return L.indexOf(z)>-1?z:J}function k(J,z){z=z||{};var fe=z.body;if(J instanceof k){if(J.bodyUsed)throw new TypeError("Already read");this.url=J.url,this.credentials=J.credentials,z.headers||(this.headers=new _(J.headers)),this.method=J.method,this.mode=J.mode,this.signal=J.signal,!fe&&J._bodyInit!=null&&(fe=J._bodyInit,J.bodyUsed=!0)}else this.url=String(J);if(this.credentials=z.credentials||this.credentials||"same-origin",(z.headers||!this.headers)&&(this.headers=new _(z.headers)),this.method=C(z.method||this.method||"GET"),this.mode=z.mode||this.mode||null,this.signal=z.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(fe)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function B(J){var z=new FormData;return J.trim().split("&").forEach(function(fe){if(fe){var pe=fe.split("="),q=pe.shift().replace(/\+/g," "),Z=pe.join("=").replace(/\+/g," ");z.append(decodeURIComponent(q),decodeURIComponent(Z))}}),z}function X(J){var z=new _,fe=J.replace(/\r?\n[\t ]+/g," ");return fe.split(/\r?\n/).forEach(function(pe){var q=pe.split(":"),Z=q.shift().trim();if(Z){var G=q.join(":").trim();z.append(Z,G)}}),z}Y.call(k.prototype);function H(J,z){z||(z={}),this.type="default",this.status=z.status===void 0?200:z.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in z?z.statusText:"OK",this.headers=new _(z.headers),this.url=z.url||"",this._initBody(J)}Y.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new _(this.headers),url:this.url})},H.error=function(){var J=new H(null,{status:0,statusText:""});return J.type="error",J};var D=[301,302,303,307,308];H.redirect=function(J,z){if(D.indexOf(z)===-1)throw new RangeError("Invalid status code");return new H(null,{status:z,headers:{location:J}})},s.DOMException=v.DOMException;try{new s.DOMException}catch(J){s.DOMException=function(z,fe){this.message=z,this.name=fe;var pe=Error(z);this.stack=pe.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function re(J,z){return new Promise(function(fe,pe){var q=new k(J,z);if(q.signal&&q.signal.aborted)return pe(new s.DOMException("Aborted","AbortError"));var Z=new XMLHttpRequest;function G(){Z.abort()}Z.onload=function(){var ve={status:Z.status,statusText:Z.statusText,headers:X(Z.getAllResponseHeaders()||"")};ve.url="responseURL"in Z?Z.responseURL:ve.headers.get("X-Request-URL");var Ie="response"in Z?Z.response:Z.responseText;fe(new H(Ie,ve))},Z.onerror=function(){pe(new TypeError("Network request failed"))},Z.ontimeout=function(){pe(new TypeError("Network request failed"))},Z.onabort=function(){pe(new s.DOMException("Aborted","AbortError"))},Z.open(q.method,q.url,!0),q.credentials==="include"?Z.withCredentials=!0:q.credentials==="omit"&&(Z.withCredentials=!1),"responseType"in Z&&p.blob&&(Z.responseType="blob"),q.headers.forEach(function(ve,Ie){Z.setRequestHeader(Ie,ve)}),q.signal&&(q.signal.addEventListener("abort",G),Z.onreadystatechange=function(){Z.readyState===4&&q.signal.removeEventListener("abort",G)}),Z.send(typeof q._bodyInit=="undefined"?null:q._bodyInit)})}return re.polyfill=!0,v.fetch||(v.fetch=re,v.Headers=_,v.Request=k,v.Response=H),s.Headers=_,s.Request=k,s.Response=H,s.fetch=re,Object.defineProperty(s,"__esModule",{value:!0}),s}({})})(typeof self!="undefined"?self:this)},96279:function(v,T){var s=typeof self!="undefined"?self:this,p=function(){function A(){this.fetch=!1,this.DOMException=s.DOMException}return A.prototype=s,new A}();(function(A){var h=function(E){var F={searchParams:"URLSearchParams"in A,iterable:"Symbol"in A&&"iterator"in Symbol,blob:"FileReader"in A&&"Blob"in A&&function(){try{return new Blob,!0}catch(Z){return!1}}(),formData:"FormData"in A,arrayBuffer:"ArrayBuffer"in A};function U(Z){return Z&&DataView.prototype.isPrototypeOf(Z)}if(F.arrayBuffer)var _=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Q=ArrayBuffer.isView||function(Z){return Z&&_.indexOf(Object.prototype.toString.call(Z))>-1};function le(Z){if(typeof Z!="string"&&(Z=String(Z)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Z))throw new TypeError("Invalid character in header field name");return Z.toLowerCase()}function K(Z){return typeof Z!="string"&&(Z=String(Z)),Z}function ne(Z){var G={next:function(){var ve=Z.shift();return{done:ve===void 0,value:ve}}};return F.iterable&&(G[Symbol.iterator]=function(){return G}),G}function $(Z){this.map={},Z instanceof $?Z.forEach(function(G,ve){this.append(ve,G)},this):Array.isArray(Z)?Z.forEach(function(G){this.append(G[0],G[1])},this):Z&&Object.getOwnPropertyNames(Z).forEach(function(G){this.append(G,Z[G])},this)}$.prototype.append=function(Z,G){Z=le(Z),G=K(G);var ve=this.map[Z];this.map[Z]=ve?ve+", "+G:G},$.prototype.delete=function(Z){delete this.map[le(Z)]},$.prototype.get=function(Z){return Z=le(Z),this.has(Z)?this.map[Z]:null},$.prototype.has=function(Z){return this.map.hasOwnProperty(le(Z))},$.prototype.set=function(Z,G){this.map[le(Z)]=K(G)},$.prototype.forEach=function(Z,G){for(var ve in this.map)this.map.hasOwnProperty(ve)&&Z.call(G,this.map[ve],ve,this)},$.prototype.keys=function(){var Z=[];return this.forEach(function(G,ve){Z.push(ve)}),ne(Z)},$.prototype.values=function(){var Z=[];return this.forEach(function(G){Z.push(G)}),ne(Z)},$.prototype.entries=function(){var Z=[];return this.forEach(function(G,ve){Z.push([ve,G])}),ne(Z)},F.iterable&&($.prototype[Symbol.iterator]=$.prototype.entries);function P(Z){if(Z.bodyUsed)return Promise.reject(new TypeError("Already read"));Z.bodyUsed=!0}function Y(Z){return new Promise(function(G,ve){Z.onload=function(){G(Z.result)},Z.onerror=function(){ve(Z.error)}})}function L(Z){var G=new FileReader,ve=Y(G);return G.readAsArrayBuffer(Z),ve}function C(Z){var G=new FileReader,ve=Y(G);return G.readAsText(Z),ve}function k(Z){for(var G=new Uint8Array(Z),ve=new Array(G.length),Ie=0;Ie<G.length;Ie++)ve[Ie]=String.fromCharCode(G[Ie]);return ve.join("")}function B(Z){if(Z.slice)return Z.slice(0);var G=new Uint8Array(Z.byteLength);return G.set(new Uint8Array(Z)),G.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(Z){this._bodyInit=Z,Z?typeof Z=="string"?this._bodyText=Z:F.blob&&Blob.prototype.isPrototypeOf(Z)?this._bodyBlob=Z:F.formData&&FormData.prototype.isPrototypeOf(Z)?this._bodyFormData=Z:F.searchParams&&URLSearchParams.prototype.isPrototypeOf(Z)?this._bodyText=Z.toString():F.arrayBuffer&&F.blob&&U(Z)?(this._bodyArrayBuffer=B(Z.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):F.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Z)||Q(Z))?this._bodyArrayBuffer=B(Z):this._bodyText=Z=Object.prototype.toString.call(Z):this._bodyText="",this.headers.get("content-type")||(typeof Z=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):F.searchParams&&URLSearchParams.prototype.isPrototypeOf(Z)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},F.blob&&(this.blob=function(){var Z=P(this);if(Z)return Z;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?P(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(L)}),this.text=function(){var Z=P(this);if(Z)return Z;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(k(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},F.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var H=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function D(Z){var G=Z.toUpperCase();return H.indexOf(G)>-1?G:Z}function re(Z,G){G=G||{};var ve=G.body;if(Z instanceof re){if(Z.bodyUsed)throw new TypeError("Already read");this.url=Z.url,this.credentials=Z.credentials,G.headers||(this.headers=new $(Z.headers)),this.method=Z.method,this.mode=Z.mode,this.signal=Z.signal,!ve&&Z._bodyInit!=null&&(ve=Z._bodyInit,Z.bodyUsed=!0)}else this.url=String(Z);if(this.credentials=G.credentials||this.credentials||"same-origin",(G.headers||!this.headers)&&(this.headers=new $(G.headers)),this.method=D(G.method||this.method||"GET"),this.mode=G.mode||this.mode||null,this.signal=G.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ve)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ve)}re.prototype.clone=function(){return new re(this,{body:this._bodyInit})};function J(Z){var G=new FormData;return Z.trim().split("&").forEach(function(ve){if(ve){var Ie=ve.split("="),Ne=Ie.shift().replace(/\+/g," "),je=Ie.join("=").replace(/\+/g," ");G.append(decodeURIComponent(Ne),decodeURIComponent(je))}}),G}function z(Z){var G=new $,ve=Z.replace(/\r?\n[\t ]+/g," ");return ve.split(/\r?\n/).forEach(function(Ie){var Ne=Ie.split(":"),je=Ne.shift().trim();if(je){var tt=Ne.join(":").trim();G.append(je,tt)}}),G}X.call(re.prototype);function fe(Z,G){G||(G={}),this.type="default",this.status=G.status===void 0?200:G.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in G?G.statusText:"OK",this.headers=new $(G.headers),this.url=G.url||"",this._initBody(Z)}X.call(fe.prototype),fe.prototype.clone=function(){return new fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new $(this.headers),url:this.url})},fe.error=function(){var Z=new fe(null,{status:0,statusText:""});return Z.type="error",Z};var pe=[301,302,303,307,308];fe.redirect=function(Z,G){if(pe.indexOf(G)===-1)throw new RangeError("Invalid status code");return new fe(null,{status:G,headers:{location:Z}})},E.DOMException=A.DOMException;try{new E.DOMException}catch(Z){E.DOMException=function(G,ve){this.message=G,this.name=ve;var Ie=Error(G);this.stack=Ie.stack},E.DOMException.prototype=Object.create(Error.prototype),E.DOMException.prototype.constructor=E.DOMException}function q(Z,G){return new Promise(function(ve,Ie){var Ne=new re(Z,G);if(Ne.signal&&Ne.signal.aborted)return Ie(new E.DOMException("Aborted","AbortError"));var je=new XMLHttpRequest;function tt(){je.abort()}je.onload=function(){var _e={status:je.status,statusText:je.statusText,headers:z(je.getAllResponseHeaders()||"")};_e.url="responseURL"in je?je.responseURL:_e.headers.get("X-Request-URL");var mt="response"in je?je.response:je.responseText;ve(new fe(mt,_e))},je.onerror=function(){Ie(new TypeError("Network request failed"))},je.ontimeout=function(){Ie(new TypeError("Network request failed"))},je.onabort=function(){Ie(new E.DOMException("Aborted","AbortError"))},je.open(Ne.method,Ne.url,!0),Ne.credentials==="include"?je.withCredentials=!0:Ne.credentials==="omit"&&(je.withCredentials=!1),"responseType"in je&&F.blob&&(je.responseType="blob"),Ne.headers.forEach(function(_e,mt){je.setRequestHeader(mt,_e)}),Ne.signal&&(Ne.signal.addEventListener("abort",tt),je.onreadystatechange=function(){je.readyState===4&&Ne.signal.removeEventListener("abort",tt)}),je.send(typeof Ne._bodyInit=="undefined"?null:Ne._bodyInit)})}return q.polyfill=!0,A.fetch||(A.fetch=q,A.Headers=$,A.Request=re,A.Response=fe),E.Headers=$,E.Request=re,E.Response=fe,E.fetch=q,Object.defineProperty(E,"__esModule",{value:!0}),E}({})})(p),p.fetch.ponyfill=!0,delete p.fetch.polyfill;var S=p;T=S.fetch,T.default=S.fetch,T.fetch=S.fetch,T.Headers=S.Headers,T.Request=S.Request,T.Response=S.Response,v.exports=T},6511:(v,T,s)=>{"use strict";s.r(T),s.d(T,{Console:()=>ep});var p={};s.r(p),s.d(p,{JsonPatchError:()=>i,_areEquals:()=>ce,applyOperation:()=>w,applyPatch:()=>O,applyReducer:()=>R,deepClone:()=>u,getValueByPointer:()=>y,validate:()=>oe,validator:()=>V});var S={};s.r(S),s.d(S,{compare:()=>dt,generate:()=>qe,observe:()=>Je,unobserve:()=>Qe});var A={};s.r(A),s.d(A,{cookie:()=>Rm,header:()=>Fm,path:()=>Pm,query:()=>Im});var h=s(2784);function E(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function F(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function U(e,r,n){return r&&F(e.prototype,r),n&&F(e,n),e}function _(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Q(){return Q=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Q.apply(this,arguments)}function le(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function K(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?le(Object(n),!0).forEach(function(a){_(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function ne(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&P(e,r)}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$(e)}function P(e,r){return P=Object.setPrototypeOf||function(a,o){return a.__proto__=o,a},P(e,r)}function Y(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function L(e,r){if(e==null)return{};var n={},a=Object.keys(e),o,f;for(f=0;f<a.length;f++)o=a[f],!(r.indexOf(o)>=0)&&(n[o]=e[o]);return n}function C(e,r){if(e==null)return{};var n=L(e,r),a,o;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(e);for(o=0;o<f.length;o++)a=f[o],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}function k(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:k(e)}function X(e){var r=Y();return function(){var a=$(e),o;if(r){var f=$(this).constructor;o=Reflect.construct(a,arguments,f)}else o=a.apply(this,arguments);return B(this,o)}}function H(e,r){return J(e)||fe(e,r)||pe(e,r)||G()}function D(e){return re(e)||z(e)||pe(e)||Z()}function re(e){if(Array.isArray(e))return q(e)}function J(e){if(Array.isArray(e))return e}function z(e){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function fe(e,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],a=!0,o=!1,f=void 0;try{for(var d=e[Symbol.iterator](),m;!(a=(m=d.next()).done)&&(n.push(m.value),!(r&&n.length===r));a=!0);}catch(g){o=!0,f=g}finally{try{!a&&d.return!=null&&d.return()}finally{if(o)throw f}}return n}}function pe(e,r){if(!!e){if(typeof e=="string")return q(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,r)}}function q(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function Z(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
42
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
43
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
44
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,d=!1,m;return{s:function(){n=e[Symbol.iterator]()},n:function(){var g=n.next();return f=g.done,g},e:function(g){d=!0,m=g},f:function(){try{!f&&n.return!=null&&n.return()}finally{if(d)throw m}}}}function Ie(e,r){return r={exports:{}},e(r,r.exports),r.exports}var Ne=Ie(function(e){function r(x,I){for(var N=0,j=0;j<x.length;j++)N=(N<<5)-N+x.charCodeAt(j),N|=0;return I[Math.abs(N)%I.length]}function n(x,I){var N=I.namespace;if(I.useColors){var j=I.color,W="\x1B[3"+(j<8?j:"8;5;"+j),ee=" ".concat(W,";1m").concat(N," \x1B[0m");x[0]=ee+x[0].split(`
|
|
45
|
-
`).join(`
|
|
46
|
-
`+ee)}else x[0]=N+" "+x[0]}function a(x,I){if(x[0]=(I.useColors?"%c":"")+I.namespace,!!I.useColors){var N="color: "+I.color,j=0,W=0;x[0].replace(/%[a-zA-Z%]/g,function(ee){ee!=="%%"&&(j++,ee==="%c"&&(W=j))}),x.splice(W,0,N)}}var o=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function f(){var x;try{x=localStorage.getItem("debug")}catch(I){}return!x&&typeof process!="undefined"&&"env"in process&&(x={}.DEBUG),{namespaces:x||"",colors:o,useColors:!0,formatArgs:a}}function d(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:n}}function m(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,I=arguments.length>1?arguments[1]:void 0;return function(){for(var N=arguments.length,j=new Array(N),W=0;W<N;W++)j[W]=arguments[W];x&&j.unshift(x);var ee=I.namespaces.split(",").map(function(de){return de[de.length-1]==="*"?new RegExp("^"+de.slice(0,de.length-1)+".*$"):new RegExp("^"+de+"$")}),te=ee.some(function(de){return de.test(x)}),se={color:r(x,I.colors),namespace:x,useColors:I.useColors};if(!1)var ie}}function g(x){return m(x,d())}function b(x){return m(x,f())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?e.exports=b:e.exports=g}),je=Ne("informed:ObjMap "),tt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},_e=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,o=String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(f,d){return f!=null?f[d]:f},r);return o===void 0||o===r?a:o},mt=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},De=function(r){return r.replace(mt(r),"").replace(/\./,"")},Oe=function(r,n){var a=mt(n),o=De(n),f=a?_e(r,a):r;return!!(f&&Object.hasOwnProperty.call(f,o.replace(/\[(.*)\]/,"$1")))},Ue=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(o,f,d,m){return d===m.length-1?(o[f]=a,o[f]):o[f]===void 0?(Number.isInteger(+m[d+1])?o[f]=[]:o[f]={},o[f]):(Number.isInteger(+m[d+1])&&!Array.isArray(o[f])&&(o[f]=[]),o[f])},r)},Pe=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(o,f,d,m){return o===void 0?o:(d===m.length-1&&(delete o[f],a=!0),o[f])},r),a},Ce=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(o,f,d,m){return o===void 0?o:(d===m.length-1&&Array.isArray(o)&&(a=o.splice(f,1)),o[f])},r),a},Ge=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(r);return n.map(function(a){return r[a]})},rt=function(r){var n=tt(r);return Number.isInteger(+n[n.length-1])},$e=function(){function e(){E(this,e)}return U(e,null,[{key:"empty",value:function(n){return Ge(n).length===0}},{key:"get",value:function(n,a){var o=_e(n,a);return o}},{key:"has",value:function(n,a){return Oe(n,a)}},{key:"set",value:function(n,a,o){if(o!==void 0)je("SETTING",a,o),Ue(n,a,o);else if(rt(a)&&e.get(n,a)!==void 0){je("Special case SETTING",a,"to undefined"),Ue(n,a,void 0);var f=tt(a);f=f.slice(0,f.length-1),et(n,f)}else!rt(a)&&e.get(n,a)!==void 0&&(je("Special case REMOVING",a,"from object completley"),e.delete(n,a))}},{key:"delete",value:function(n,a){je("DELETE",a),rt(a)?(je("ARRAY",a),this.pullOut(n,a)):Pe(n,a);var o=tt(a);o=o.slice(0,o.length-1),et(n,o)}},{key:"pullOut",value:function(n,a){var o=tt(a),f=o[o.length-1];o=o.slice(0,o.length-1),je("Pulling out:",o,"index",f);var d=_e(n,o);je("Array",d),Array.isArray(d)&&Ce(d,f),et(n,o)}}]),e}();function et(e,r){if(r.length!==0){var n=_e(e,r);(Array.isArray(n)?n.every(function(a){return a==null}):JSON.stringify(n)==="{}")&&Pe(e,r),et(e,r.slice(0,r.length-1))}}var Ze=h.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),Ct=h.createContext({}),kt=h.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Zt=h.createContext(),lt=h.createContext(),xt=h.createContext(),Ft=h.createContext(),Kr=h.createContext(),br=h.createContext(),qr=h.createContext(),xr=h.createContext();function Yt(){var e=(0,h.useContext)(kt);return e}function dr(e){var r=(0,h.useRef)(),n=(0,h.useRef)(!0),a=(0,h.useState)(e),o=H(a,2),f=o[0],d=o[1];r.current=f;var m=function(x){r.current=x,n.current&&d(x)},g=function(){return r.current};return(0,h.useEffect)(function(){return function(){n.current=!1}},[]),[f,m,g]}var Xe=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},gt=function(r){var n={};if(r.inner){if(r.inner.length===0){$e.set(n,r.path,r.message);return}var a=ve(r.inner),o;try{for(a.s();!(o=a.n()).done;){var f=o.value;$e.get(n,f.path)||$e.set(n,f.path,f.message)}}catch(d){a.e(d)}finally{a.f()}}return n},Tt=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(o){var a=gt(o);return a}},At=function(r){if(r.inner){if(r.inner.length===0)return;var n=r.inner[0];return n.message}},Ot=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(a){return At(a)}},ct=function(r,n){r(n);var a={};return r.errors&&r.errors.forEach(function(o){var f=o.message,d=o.dataPath,m=o.keyword,g=o.params,b=d;m==="required"&&(b="".concat(b,".").concat(g.missingProperty)),b=b.replace(".",""),$e.set(a,b,f)}),a},it=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=Math.random()*16|0,a=r=="x"?n:n&3|8;return a.toString(16)})},Et=function(r,n){var a;return function(){for(var f=arguments.length,d=new Array(f),m=0;m<f;m++)d[m]=arguments[m];var g=function(){clearTimeout(a),r.apply(void 0,d)};clearTimeout(a),a=setTimeout(g,n)}},nt=function(r,n,a){var o=n["ui:control"],f=n["informed:props"],d=n["input:props"],m=n["ui:before"],g=n["ui:after"],b=n.oneOf,x=n.items,I=n.enum,N=n.title,j=n.minimum,W=n.maximum,ee=n.minLength,te=n.maxLength,se=n.pattern,ie=n.type,de=n.properties,we=it();d&&d.id&&(we=d.id);var xe={componentType:o,field:a?"".concat(a,".").concat(r):r,type:ie,uiBefore:m,uiAfter:g,properties:ie==="object"?de:void 0,items:ie==="array"?x:void 0,props:K(K({label:N,id:we,min:j,max:W,minLength:ee,maxLength:te,pattern:se},f),d)};if(b){var Ee=n.oneOf.map(function(Se){var ke=Se["input:props"],Me=ke===void 0?{}:ke;return K({value:Se.const,label:Se.title},Me)});xe.props.options=Ee}if(I){var ye=n.enum.map(function(Se){return{value:Se,label:Se}});xe.props.options=ye}if(x&&x.oneOf){var be=x.oneOf.map(function(Se){var ke=Se["input:props"],Me=ke===void 0?{}:ke;return K({value:Se.const,label:Se.title},Me)});xe.props.options=be}return xe},Ve=function(r,n,a){if(!r||n)return[];var o=r.properties,f=o===void 0?{}:o,d=r.allOf,m=r.propertyOrder,g=m===void 0?[]:m;if(Object.keys(f).length>0){var b=Object.keys(f).sort(function(x,I){var N=g.indexOf(x),j=g.indexOf(I);return(N>-1?N:g.length+1)-(j>-1?j:g.length+1)}).map(function(x){var I=f[x],N=nt(x,I,a);return N});return d&&b.push({componentType:"conditionals",allOf:d}),b}return[]},ue=function(r){var n=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return n="properties.".concat(n),n},ge=function(r,n){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(n);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Be=function(r,n){for(var a=0,o=-1,f=!0;f&&a<r.length;)r[a]==n[a]?o=a:f=!1,a=a+1;return o},Ke=function(r,n){if(!r)return{val:r,offset:0};var a="".concat(r),o=ge(n,a),f=o.findIndex(function(te){return typeof te!="string"}),d=o.length-D(o).reverse().findIndex(function(te){return typeof te!="string"}),m=[],g=a.split(""),b=0,x=0,I=Be(o.slice(0,f),g.slice(0,f));I>-1&&(b=I+1,m=m.concat(o.slice(0,I+1)),x=I+1),I<0&&(m=m.concat(o.slice(0,f)),x=f);for(var N=x;N<o.length;N++){var j=o[N];if(b!=g.length){var W=g[b];if(typeof j=="function")m.push(j(W)),b=b+1;else{var ee=typeof j=="string"?j===W:j.test(W);ee&&typeof j=="string"?(m.push(j),b=b+1):!ee&&typeof j=="string"?b!=g.length&&m.push(j):ee&&typeof j!="string"?(m.push(W),b=b+1):!ee&&typeof j!="string"&&(b=b+1,N=N-1)}}else if(typeof j=="string"&&N>=d)m.push(j);else break}return{value:m.join(""),offset:a?m.length-a.length:0}},at=function(r,n){var a,o,f=new Intl.NumberFormat(r,n),d=new Intl.NumberFormat(r),m=(a=(o=d.formatToParts(.1).find(function(te){var se=te.type;return se==="decimal"}))===null||o===void 0?void 0:o.value)!==null&&a!==void 0?a:".";function g(te,se){return te instanceof RegExp&&se instanceof RegExp&&te.source===se.source&&te.global===se.global&&te.ignoreCase===se.ignoreCase&&te.multiline===se.multiline}function b(te,se){for(var ie=te.length;ie--;)if(se(te[ie]))return ie;return-1}function x(te,se,ie){var de=D(te);return Array.isArray(ie)?de.splice.apply(de,[se,0].concat(D(ie))):de.splice(se,0,ie),de}function I(te){return"".concat(te).replace(/\D/g,"")}function N(te){return"".concat(te).split(m).map(function(se){return I(se)}).join(".")}function j(te){if(typeof te=="number")return te;var se=parseFloat(N(te));return Number.isNaN(se)?void 0:se}function W(te){var se=N(te),ie="".concat(se).split(".")[1],de=f.formatToParts(Number(se));ie==="0"&&de.push({type:"decimal",value:m},{type:"fraction",value:ie});var we=de.reduce(function(ye,be){var Se=be.type,ke=be.value;return["decimal","fraction"].includes(Se)&&ie==null?ye:["integer","fraction"].includes(Se)?[].concat(D(ye),D(ke.split("").filter(function(Me,Re){return Se==="fraction"?Re<ie.length:!0}).map(function(){return/\d/}))):Se==="currency"?[].concat(D(ye),D(ke.split(""))):[].concat(D(ye),[ke])},[]),xe=b(we,function(ye){return g(ye,/\d/)});we.indexOf(m)===-1&&"".concat(te).indexOf(m)!==-1&&(we=x(we,xe+1,[m,"[]"]),xe+=2);var Ee=we.slice(xe+1).join("");return we=[].concat(D(we.slice(0,xe+1)),[Ee]),we}var ee=function(se){if(se!=null)return j(se)};return{formatter:W,parser:ee}},bt=Object.freeze({__proto__:null,getChildDisplayName:Xe,yupToFormErrors:gt,validateYupSchema:Tt,yupToFormError:At,validateYupField:Ot,validateAjvSchema:ct,uuidv4:it,debounce:Et,computeFieldFromProperty:nt,computeFieldsFromSchema:Ve,getSchemaPathFromJsonPath:ue,informedFormat:Ke,createIntlNumberFormatter:at}),Rt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?h.useLayoutEffect:h.useEffect,pr=function(r){var n=r.value,a=r.inputRef,o=r.maintainCursor,f=o===void 0?!0:o,d=dr(0),m=H(d,3),g=m[0],b=m[1],x=m[2],I=dr(0),N=H(I,3),j=N[0],W=N[1],ee=N[2];return Rt(function(){if(a.current!=null&&x()){var te=x()+ee();ee()!=0&&f?a.current.setSelectionRange(te+1,te+1):f&&a.current.setSelectionRange(te,te)}},[n]),{setCursorOffset:W,setCursor:b,cursor:g,getCursor:x,cursorOffset:j}},Lt=function(r,n){var a=(0,h.useRef)(!0),o=a.current;(0,h.useEffect)(function(){if(o)a.current=!1;else return r()},n)},jt=Ne("informed:useField "),_n=function(r,n,a,o,f){if(r!=null){if(f)return f(r);if(n)return n(r);if(a&&!o){var d=Ke(r,a);return d.value}return r}},Yr=function(r,n,a,o){if(n&&a)return n(r);if(o){var f=Ke(r,o);return f.value}return r},Jr=function(r,n,a){var o=a.required;if(r||n)return function(f,d){if(n)return Ot(n,f);if(r)return r(f,d)};if(o)return function(f){return tn(f,o)}},si=function(r){var n=r.fieldType,a=r.setValue,o=r.onChange,f=r.multiple,d=r.ref,m=function(b){return a(b)};return(n==="text"||n==="textArea"||n==="number")&&(m=function(b){return a(b.target.value,b)}),n==="select"&&(m=function(){var b=Array.from(d.current).filter(function(x){return x.selected}).map(function(x){return x.value});a(f?b:b[0]||"")}),n==="checkbox"&&(m=function(b){a(b.target.checked),o&&o(b)}),function(g){m(g)}},en=function(r){var n=r.setTouched,a=r.onBlur;return function(o){n(!0),a&&a(o)}},li=function(r){var n=r.fieldType,a=r.maskedValue,o=r.multiple,f=r.value;switch(n){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return f||(o?[]:"");case"checkbox":return!!f;default:return f}},ui=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},tn=function(r,n){if(n&&(r==null||r===""))return typeof n=="string"?n:"This field is required"};function Pn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=e.field,a=e.validate,o=e.asyncValidate,f=e.validationSchema,d=e.mask,m=e.maskWithCursorOffset,g=e.format,b=e.parse,x=e.formatter,I=e.parser,N=e.initialValue,j=e.validateOnChange,W=e.validateOnBlur,ee=e.validateOnMount,te=e.asyncValidateOnBlur,se=e.maskOnBlur,ie=e.allowEmptyString,de=e.onValueChange,we=e.notify,xe=e.keepState,Ee=e.maintainCursor,ye=e.debug,be=e.shadow,Se=e.step,ke=e.fieldType,Me=e.multiple,Re=e.onChange,We=e.onBlur,It=e.formController,vt=e.relevant,rr=e.required,cr=e.keepStateIfRelevant,mr=e.initialize,$r=e.formatterDependencies,yr=$r===void 0?[]:$r,kr=C(e,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),wn=(0,h.useState)(it()),Wt=H(wn,1),yt=Wt[0],Pt=(0,h.useContext)(Ze),nr=(0,h.useContext)(xr),ln=nr||cr,hr=Yt(),Is=(0,h.useRef)(),ru=(0,h.useRef)(!0),Ro=(0,h.useRef)(),Wi=(0,h.useRef)(!1),nu=function(){return!Wi.current},yc=function(){return Wi.current};It&&(Pt=It.updater,hr=It.getFormApi());var Ei=Jr(a,f,{required:rr}),iu=(0,h.useState)(function(){return Pt.getInitialValue(n)}),Lx=H(iu,1),Mx=Lx[0],bc=Pt.getSavedValue(n),xc,Sg;(xe||ln)&&bc?(jt("Setting field ".concat(vp,"'s kept state"),bc),xc=bc.value,Sg=bc.touched,hr.removeSavedState(vp)):N!=null?xc=N:xc=Mx;var Nx=dr(_n(xc,d,x,I,mr)),tp=H(Nx,3),au=tp[0],rp=tp[1],Dx=tp[2],Bx=dr(ee?Ei(au):void 0),np=H(Bx,3),wg=np[0],Ag=np[1],jx=np[2],Vx=dr(Sg),ip=H(Vx,3),Cg=ip[0],Ux=ip[1],Eg=ip[2],Wx=(0,h.useState)(function(){return Yr(au,g,b,x)}),Og=H(Wx,2),ap=Og[0],op=Og[1],Tg=(0,h.useRef)();Tg.current=ap;var Pg=(0,h.useRef)(N),Lo=(0,h.useRef)(n),Ig=(0,h.useRef)();Pg.current=N,Lo.current=n;var Hx=(0,h.useRef)(null),Hi=h.useMemo(function(){return r||Hx},[]),sp=pr({value:au,inputRef:Hi,maintainCursor:!!Ee}),lp=sp.getCursor,zx=sp.setCursor,up=sp.setCursorOffset,Gx=function(){return!0},fp=function(ir){var un=vt||Gx,Wn=hr.getFullField(Lo.current)||Lo.current,Ht={path:Wn,parentPath:Wn.replace(/(.*)[.[].*/,"$1"),get:function(Hn,lu){return $e.get(Hn,lu)}};return nr&&nr.relevant?un(ir,Ht)&&nr.relevant(ir,Ht):un(ir,Ht)},$x=dr(fp(hr.getValues())),cp=H($x,3),Sc=cp[0],Kx=cp[1],kg=cp[2],Yx=function(ir){return nr&&nr.relevant?nr.relevant(ir):!0},Jx=function(){var ir=fp(hr.getValues()),un=kg();return ir!=un&&Kx(ir),ir};(0,h.useEffect)(function(){!Sc&&!xe&&Is.current.reset()},[Sc]);var oi=function(){return be?hr.getDerrivedValue(n):Dx()},ou=function(ir){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wn=un.preventUpdate;Se&&hr.getStep()<Se?(jt("Setting ".concat(n,"'s error to undefined as we are not at that step")),Ag(void 0),Pt.setError(yt,void 0,!Wn)):(jt("Setting ".concat(n,"'s error to ").concat(ir)),Ag(ir),Pt.setError(yt,ir,!Wn))},dp=function(ir,un){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ht=ir;Wi.current=!0,jt("Setting ".concat(n," to ").concat(Ht)),mr&&(Ht=mr(Ht));var Mo=hr.getOptions(),Hn=Ht;if(Ht===""&&!ie&&!Wn.allowEmptyString&&!Mo.allowEmptyStrings&&(Ht=void 0),(e.type==="number"||ke==="number")&&Ht!==void 0&&(Ht=+Ht),un&&un.target&&un.target.selectionStart&&zx(un.target.selectionStart),d&&!se&&(Hn=d(Ht,lp()),Ht=d(Ht,lp())),m&&!se){var lu=m(Ht,lp());Hn=lu.value,Ht=lu.value,up(lu.offset)}if(g&&b&&(Ht=b(Ht),Hn=g(Ht)),x){var Fg=Ke(Ht,x);up(Fg.offset),Hn=Fg.value,Ht=Hn}I&&(Ht=Ht!=null?I(Ht):Ht),Ei&&j&&!Wn.initial&&(jt("Validating after change ".concat(n," ").concat(Ht)),ou(Ei(Ht,hr.getValues()))),rp(Ht),op(Hn),de&&de(Ht),Pt.setValue(yt,Ht,!Wn.preventUpdate)};Lt(function(){Is.current.setValue(Tg.current)},D(yr));var pp=function(ir,un){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ht=Wn.preventUpdate;if(jt("Field ".concat(n," has been touched")),Ei&&W&&!un&&ir&&(jt("Validating after blur ".concat(n," ").concat(oi())),ou(Ei(oi(),hr.getValues()))),o&&te&&!un&&ir&&(jt("Validating async after blur ".concat(n," ").concat(oi())),o(oi(),hr.getValues())),d&&se){var Mo=d(oi());rp(Mo),op(Mo),de&&de(Mo),Pt.setValue(yt,Mo,!Ht)}if(m&&se){var Hn=m(oi());up(Hn.offset),rp(Hn.value),op(Hn.value),de&&de(Hn.value),Pt.setValue(yt,Hn.value,!Ht)}Ux(ir),Pt.setTouched(yt,ir,!Ht)},Xx=function(){var ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},un=ir.preventUpdate,Wn=_n(Pg.current||Pt.getInitialValue(Lo.current),d,x,I,mr);dp(Wn,null,{initial:!0,preventUpdate:un}),ou(ee?Ei(Wn):void 0,{preventUpdate:un}),pp(void 0,!0,{preventUpdate:un}),Wi.current=!1},Qx=function(ir){Ei&&(jt("Field validating ".concat(n," ").concat(oi())),ou(Ei(oi(),ir||hr.getValues())))},Zx=function(ir){o&&(jt("Field async validating ".concat(n," ").concat(oi())),o(oi(),ir||hr.getValues()))},hp={setValue:dp,setTouched:pp,setError:ou,reset:Xx,validate:Qx,asyncValidate:Zx,getValue:oi,getTouched:Eg,getError:jx,getIsRelevant:kg,getDirty:yc,getPristine:nu,getFieldState:function(){return{value:oi(),touched:Eg(),dirty:yc(),pristine:nu()}},relevant:fp,multistepRelevant:Yx,checkRelevant:Jx};Is.current=hp;var su={value:au,error:wg,touched:Cg,maskedValue:ap,isRelevant:Sc,dirty:Wi.current,pristine:!Wi.current};be&&(su={error:wg,touched:Cg}),jt("Render",hr.getFullField(n),su),Rt(function(){var _r=hr.getFullField(Lo.current);return jt("Register",yt,Lo.current),Ro.current={field:_r,fieldId:yt,fieldApi:hp,fieldState:su,notify:we,keepState:xe,inMultistep:ln,shadow:be},Pt.register(yt,Ro.current),function(){var ir=hr.getFullField(Lo.current);jt("Deregister",yt,ir),Pt.deregister(yt)}},[]),(0,h.useEffect)(function(){var _r=hr.getFullField(n);return ru.current?ru.current=!1:(jt("Update",n,ln),Ro.current.field=_r,Pt.update(yt,Ro.current,Ig.current)),function(){Ig.current=_r}},[n]),Rt(function(){ye&&Hi&&(Hi.current.style.border="5px solid orange",setTimeout(function(){Hi.current.style.borderWidth="2px",Hi.current.style.borderStyle="inset",Hi.current.style.borderColor="initial",Hi.current.style.borderImage="initial"},500))});var _x=[].concat(D(Object.values(su)),D(Object.values(e)),D(Object.values(kr))),qx=function(ir){return(0,h.useMemo)(function(){return Sc?ir:null},D(_x))},vp=n,e1=si({fieldType:ke,setValue:dp,onChange:Re,multiple:Me,ref:Hi}),t1=en({setTouched:pp,onBlur:We}),r1=li({fieldType:ke,maskedValue:ap,multiple:Me,value:au}),n1=ui(ke);return{fieldState:su,fieldApi:hp,render:qx,ref:Hi,userProps:K(K({},kr),{},{multiple:Me,onChange:Re,onBlur:We,id:kr.id||yt}),informed:K({name:vp,multiple:Me,onChange:e1,onBlur:t1,value:r1,ref:Hi,type:n1,id:kr.id||yt},kr)}}var Vr=function(r){var n=h.forwardRef(function(a,o){var f=Pn(a,o),d=f.fieldState,m=f.fieldApi,g=f.render,b=f.ref,x=f.userProps;return g(h.createElement(r,Q({fieldApi:m,fieldState:d,field:a.field,forwardedRef:b,debug:a.debug,type:a.type},x)))});return n.displayName="asField(".concat(Xe(r),")"),n},Oi=Ne("informed:Text "),ha=function(r){var n=r.fieldApi,a=r.fieldState,o=C(r,["fieldApi","fieldState"]),f=a.maskedValue,d=n.setValue,m=n.setTouched,g=o.onChange,b=o.onBlur,x=o.field,I=o.initialValue,N=o.forwardedRef,j=o.debug,W=o.label,ee=o.title,te=o.id,se=C(o,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Oi("Render",x),Rt(function(){j&&N&&(N.current.style.background="red",setTimeout(function(){N.current.style.background="white"},500))}),h.createElement(h.Fragment,null,W?h.createElement("label",{htmlFor:te}," ",W," "):null,h.createElement("input",Q({},se,{id:te,name:x,ref:N,value:!f&&f!==0?"":f,onChange:function(de){d(de.target.value,de),g&&g(de)},onBlur:function(de){m(!0),b&&b(de)}})))},An=Vr(ha),mn=function(r){var n=r.fieldApi,a=r.fieldState,o=C(r,["fieldApi","fieldState"]),f=a.maskedValue,d=n.setValue,m=n.setTouched,g=o.onChange,b=o.onBlur,x=o.field,I=o.initialValue,N=o.forwardedRef,j=o.debug,W=o.label,ee=o.id,te=C(o,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return Rt(function(){j&&N&&(N.current.style.background="red",setTimeout(function(){N.current.style.background="white"},500))}),h.createElement(h.Fragment,null,W?h.createElement("label",{htmlFor:ee}," ",W," "):null,h.createElement("textarea",Q({},te,{id:ee,name:x,ref:N,value:f||"",onChange:function(ie){d(ie.target.value,ie),g&&g(ie)},onBlur:function(ie){m(!0),b&&b(ie)}})))},Cn=Vr(mn),En=Ne("informed:Select "),In=function(r){var n=r.fieldApi,a=r.fieldState,o=C(r,["fieldApi","fieldState"]),f=a.value,d=n.setTouched,m=o.onChange,g=o.onBlur,b=o.field,x=o.initialValue,I=o.options,N=o.children,j=o.forwardedRef,W=o.debug,ee=o.multiple,te=o.label,se=o.id,ie=C(o,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),de=(0,h.useRef)(),we=function(Ee){var ye=Array.from((j||de).current).filter(function(be){return be.selected}).map(function(be){return be.value});n.setValue(ee?ye:ye[0]||""),m&&Ee&&m(Ee)};return Rt(function(){W&&j&&(j.current.style.background="red",setTimeout(function(){j.current.style.background="white"},500))}),En("Render",b,f),h.createElement(h.Fragment,null,te?h.createElement("label",{htmlFor:se}," ",te," "):null,h.createElement("select",Q({},ie,{id:se,multiple:ee,name:b,ref:j||de,value:f||(ee?[]:""),onChange:we,onBlur:function(Ee){d(!0),g&&g(Ee)}}),I?I.map(function(xe){return h.createElement("option",{key:xe.value,value:xe.value,disabled:xe.disabled},xe.label)}):N))},Ha=Vr(In),zn=function(r){var n=r.fieldApi,a=r.fieldState,o=C(r,["fieldApi","fieldState"]),f=a.value,d=n.setValue,m=n.setTouched,g=o.onChange,b=o.onBlur,x=o.field,I=o.initialValue,N=o.debug,j=o.forwardedRef,W=o.id,ee=o.label,te=C(o,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return h.createElement(h.Fragment,null,ee?h.createElement("label",{htmlFor:W}," ",ee," "):null,h.createElement("input",Q({},te,{id:W,name:x,ref:j,checked:!!f,onChange:function(ie){d(ie.target.checked),g&&g(ie)},onBlur:function(ie){m(!0),b&&b(ie)},type:"checkbox"})))},fn=Vr(zn),Sr=function(r){return h.forwardRef(function(n,a){return h.createElement(Zt.Consumer,null,function(o){var f=o.radioGroupApi,d=o.radioGroupState;return h.createElement(r,Q({radioGroupApi:f,radioGroupState:d,ref:a},n))})})},fi=function(r){var n=r.radioGroupApi,a=r.radioGroupState,o=C(r,["radioGroupApi","radioGroupState"]),f=a.value,d=n.setValue,m=n.setTouched,g=n.onChange,b=n.onBlur,x=o.value,I=o.onChange,N=o.onBlur,j=o.field,W=o.initialValue,ee=o.forwardedRef,te=C(o,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return h.createElement("input",Q({},te,{name:j,ref:ee,value:x,checked:f===x,onChange:function(ie){!ie.target.checked||(d(x),I&&I(ie),g&&g(ie))},onBlur:function(ie){m(!0),N&&N(ie),b&&b(ie)},type:"radio"}))},kn=Sr(fi),va=function(e){ne(n,e);var r=X(n);function n(){return E(this,n),r.apply(this,arguments)}return U(n,[{key:"render",value:function(){var o=this.props,f=o.options,d=o.children;return h.createElement(Zt.Provider,{value:this.groupContext},f?f.map(function(m){return h.createElement("label",{key:m.value},m.label," ",h.createElement(kn,{value:m.value}))}):d)}},{key:"groupContext",get:function(){return{radioGroupApi:K(K({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),n}(h.Component),No=Vr(va);function sr(){return(0,h.useContext)(xt)}var ot=function(){var r=sr(),n=r.add;return h.createElement("button",{onClick:function(){n()},type:"button"},"Add")};function ci(){return(0,h.useContext)(Ft)}var zi=function(){var r=ci(),n=r.remove;return h.createElement("button",{onClick:function(){n()},type:"button"},"Remove")},cn=Ne("informed:useArrayField "),zt=function(r){var n=r.field,a=r.initialValue,o=r.validate,f=r.arrayFieldApiRef,d=C(r,["field","initialValue","validate","arrayFieldApiRef"]),m=Yt(),g=(0,h.useState)(new Map),b=H(g,1),x=b[0],I=(0,h.useContext)(Ze),N=m.getFullField(n),j=I.getInitialValue(n)||a||[],W=m.getSavedValue(N)&&m.getSavedValue(N).value,ee=dr(W||j),te=H(ee,3),se=te[0],ie=te[1],de=te[2],we=se?se.map(function(){return it()}):[],xe=dr(we),Ee=H(xe,3),ye=Ee[0],be=Ee[1],Se=Ee[2],ke=(0,h.useMemo)(function(){return function(Wt,yt){var Pt=Se()==null?0:Se().length;return o?o(Wt,Pt,yt):void 0}}),Me=Pn(K({field:n,validate:o?ke:void 0,shadow:!0},d)),Re=Me.fieldApi;Rt(function(){var Wt=function(Pt){Pt!==N&&(cn("".concat(N," changed")),RegExp("".concat(N,"\\[[0-9]+\\]")).test(Pt)&&Re.validate())};return m.emitter.on("value",Wt),function(){m.emitter.removeListener("value",Wt)}},[n]);var We=function(yt){cn("EXPECTING REMOVAL OF","".concat(n,"[").concat(yt,"] and ").concat(n,"[").concat(ye.length-1,"]")),I.expectRemoval("".concat(n,"[").concat(yt,"]")),I.expectRemoval("".concat(n,"[").concat(ye.length-1,"]"));var Pt=ye.slice(0,yt).concat(ye.slice(yt+1,ye.length));be(Pt);var nr=de(),ln=nr.slice(0,yt).concat(nr.slice(yt+1,nr.length));ie(ln)},It=function(yt,Pt){cn("Swapping","".concat(n,"[").concat(yt,"] and ").concat(n,"[").concat(Pt,"]"));var nr=D(ye);ye[yt]&&ye[Pt]?(nr[yt]=ye[Pt],nr[Pt]=ye[yt]):console.warn("Attempted to swap ".concat(yt," with ").concat(Pt," but one of them does not exist :(")),be(nr)},vt=function(){ye.push(it()),be(D(ye))},rr=function(yt){ye.push(it()),be(D(ye));var Pt=D(de());Pt[ye.length-1]=yt,ie(Pt)},cr=function(){var yt=I.getInitialValue(n)||a||[];ie(yt);var Pt=yt?yt.map(function(){return it()}):[];be(Pt)},mr=ye.map(function(Wt,yt){var Pt={remove:function(){return We(yt)}},nr={initialValue:se&&se[yt],key:Wt,field:"".concat(n,"[").concat(yt,"]"),index:yt};return K(K({arrayFieldItemApi:Pt,arrayFieldItemState:nr},Pt),nr)}),$r={add:vt,swap:It,addWithInitialValue:rr,reset:cr};f&&(f.current=$r);var yr={fields:mr,field:n},kr=K(K({},I),{},{register:function(yt,Pt){x.set(yt,Pt);for(var nr=arguments.length,ln=new Array(nr>2?nr-2:0),hr=2;hr<nr;hr++)ln[hr-2]=arguments[hr];I.register.apply(I,[yt,Pt].concat(ln))},deregister:function(yt){x.delete(yt);for(var Pt=arguments.length,nr=new Array(Pt>1?Pt-1:0),ln=1;ln<Pt;ln++)nr[ln-1]=arguments[ln];I.deregister.apply(I,[yt].concat(nr))},getInitialValue:function(yt){if(RegExp("".concat(N,"\\[[0-9]+\\]")).test(yt)){var Pt=yt.replace(n,""),nr=$e.get(de(),Pt);return cn("Resetting ".concat(Pt," to ").concat(nr)),nr}return I.getInitialValue(yt)}}),wn=function(yt){return h.createElement(Ze.Provider,{value:kr},h.createElement(xt.Provider,{value:$r},h.createElement(lt.Provider,{value:yr},yt)))};return{render:wn,add:vt,swap:It,addWithInitialValue:rr,fields:mr,arrayFieldState:yr,arrayFieldApi:$r,field:n}},di=function(r,n){return K(K({},n),{},{getValue:function(o){return n.getValue("".concat(r,".").concat(o))},getTouched:function(o){return n.getTouched("".concat(r,".").concat(o))},getError:function(o){return n.getError("".concat(r,".").concat(o))},setValue:function(o,f){return n.setValue("".concat(r,".").concat(o),f)},setTouched:function(o,f){return n.setTouched("".concat(r,".").concat(o),f)},setError:function(o,f){return n.setError("".concat(r,".").concat(o),f)},getInitialValue:function(o){return n.getInitialValue("".concat(r,".").concat(o))},getSavedValue:function(o){return n.getSavedValue("".concat(r,".").concat(o))},getFullField:function(o){return"".concat(n.getFullField(r),".").concat(o)}})};function Gi(e){var r=Yt(),n=(0,h.useMemo)(function(){return di(e,r)},[e]);return n}function pi(){var e=(0,h.useContext)(Ct);return e}var M=function(r){var n=r.when,a=r.children,o=pi(),f=n(o);return f?a:null},ae=function(r){var n=r.relevant,a=r.field,o=C(r,["relevant","field"]),f=Yt();if(n){var d=f.getFullField(a),m={path:d,parentPath:d.replace(/(.*)[.[].*/,"$1"),get:function(x,I){return $e.get(x,I)}},g=function(x){var I=x.values;return n(I,m)};return h.createElement(M,{when:g},h.createElement(Fe,Q({field:a},o)))}else return h.createElement(Fe,Q({field:a},o))},Fe=function(r){var n=r.children,a=C(r,["children"]),o=zt(a),f=o.render,d=o.arrayFieldState,m=o.arrayFieldApi,g=o.field;return f(typeof n=="function"?n(K(K({field:g,arrayFieldApi:m,arrayFieldState:d},m),d)):n)},He=function(r){var n=r.arrayFieldItemState,a=r.arrayFieldItemApi,o=r.children,f=(0,h.useContext)(Ze),d=Yt(),m=(0,h.useState)(0),g=H(m,2),b=g[0],x=g[1],I=(0,h.useState)(new Map),N=H(I,1),j=N[0],W=n.field,ee=Gi(W),te=function(){var ye=d.getState(),be=ye.values,Se=ye.errors,ke=ye.touched,Me={values:$e.get(be,W),errors:$e.get(Se,W),touched:$e.get(ke,W)};return Me};(0,h.useEffect)(function(){var Ee=function(be){var Se=be.slice(0,be.lastIndexOf("[")!=-1?be.lastIndexOf("]")+1:be.length);Se===W&&x(Math.random())};return d.emitter.on("value",Ee),function(){d.emitter.removeListener("value",Ee)}},[W]);var se=function(){j.forEach(function(ye){ye.fieldApi.reset()})},ie=te(),de=K(K({},f),{},{register:function(ye,be,Se){j.set(ye,be),f.register(ye,be,Se)},deregister:function(ye){j.delete(ye);for(var be=arguments.length,Se=new Array(be>1?be-1:0),ke=1;ke<be;ke++)Se[ke-1]=arguments[ke];f.deregister.apply(f,[ye].concat(Se))}}),we=K(K(K({},a),ee),{},{reset:se}),xe=K(K({},n),ie);return typeof o=="function"?h.createElement(Ze.Provider,{value:de},h.createElement(Ft.Provider,{value:we},h.createElement(Kr.Provider,{value:xe},o(K(K({arrayFieldItemApi:we,arrayFieldItemState:xe},we),xe))))):h.createElement(Ze.Provider,{value:de},h.createElement(Ft.Provider,{value:we},h.createElement(Kr.Provider,{value:xe},o)))};ae.Items=function(e){var r=e.children,n=(0,h.useContext)(lt),a=n.fields;return a.map(function(o){var f=o.arrayFieldItemState,d=o.arrayFieldItemApi,m=f.key;return h.createElement(He,{key:m,arrayFieldItemApi:d,arrayFieldItemState:f},r)})};var St=function(r){var n=r.components,a=(0,h.useContext)(Ze),o=a.fieldMap;return n?n.map(function(f,d){var m=f["ui:control"],g=o[m];return h.createElement(g,{key:"ui-comp-".concat(d)})}):null},Nt=Ne("informed:FormFields "),Gt=function e(r){var n=r.schema,a=r.prefix,o=r.onlyValidateSchema,f=(0,h.useContext)(Ze),d=f.fieldMap,m=(0,h.useMemo)(function(){var g=Ve(n,o,a),b=g.map(function(x,I){var N=x.field,j=x.props,W=x.type,ee=x.properties,te=x.items,se=x.componentType,ie=x.uiBefore,de=x.uiAfter,we=x.allOf,xe=d[se];return Nt("Rendering Field",N,x),!xe&&W==="object"&&ee?h.createElement(e,{schema:x,prefix:N,key:"ScheamField-".concat(I)}):!xe&&W==="array"&&te?h.createElement(st,Q({key:"ScheamField-".concat(I),field:N,items:te,uiBefore:ie,uiAfter:de},j)):xe&&se==="array"&&te&&W==="array"?h.createElement(xe,Q({key:"ScheamField-".concat(I),field:N,items:te,uiBefore:ie,uiAfter:de},j)):se==="conditionals"?we.map(function(Ee){var ye=Ee.then,be=Ee.if.properties,Se=function(Me){var Re=Me.values;return Object.keys(be).every(function(We){var It=be[We];return Re[We]===It.const})};return h.createElement(M,{key:"ScheamField-".concat(I),when:Se},h.createElement(e,{schema:ye}))}):xe?h.createElement(xe,Q({key:"ScheamField-".concat(I),field:N},j)):null});return b},[n,a]);return m},st=function(r){var n=r.field,a=r.items,o=r.uiBefore,f=r.uiAfter,d=C(r,["field","items","uiBefore","uiAfter"]);return h.createElement(ae,Q({field:n},d),h.createElement(St,{components:o}),h.createElement(ae.Items,null,function(m){var g=m.field;return h.createElement(h.Fragment,null,h.createElement(St,{components:a["ui:before"]}),h.createElement(Gt,{schema:a,prefix:g}),h.createElement(St,{components:a["ui:after"]}))}),h.createElement(St,{components:f}))},Fn={select:Ha,input:An,textarea:Cn,checkbox:fn,radio:No,add:ot,remove:zi,array:st},Jt=Ne("informed:Controller "),Do=function(r,n){var a=Object.keys(n).find(function(f){return r.includes(f)});if(!!a){var o=r.slice(0,a.length);return o===a}},wr=function(){},uu=function(){function e(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};E(this,e),this.options=n,this.subscriptions=new Map;var a=n.ajv,o=n.schema,f=n.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(o):null,this.fieldMap=f||Fn,this.fieldsById=new Map,this.fieldsByName={get:function(m){var g;return r.fieldsById.forEach(function(b){b&&b.field===m&&(g=b)}),g}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:wr,setTouched:wr,setError:wr,reset:wr,validate:wr,getValue:wr,getTouched:wr,getError:wr,getFieldState:wr,checkRelevant:wr,getPristine:wr,getDirty:wr}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(m,g){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=r.fieldsById.get(m);x.shadow||$e.set(r.state.values,x.field,x.fieldApi.getValue()),x.fieldApi.relevant(r.state.values)||$e.delete(r.state.values,x.field),r.fieldsById.forEach(function(I){var N=I.fieldApi.checkRelevant();(!I.fieldApi.multistepRelevant(r.state.values)||!N&&!I.keepState)&&($e.delete(r.state.values,I.field),$e.delete(r.state.touched,I.field),$e.delete(r.state.errors,I.field))}),b&&(r.emit("change"),r.emit("field",x.field),r.emit("value",x.field,g))},setTouched:function(m,g){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=r.fieldsById.get(m);!x.shadow&&x.fieldApi.getIsRelevant()&&$e.set(r.state.touched,x.field,x.fieldApi.getTouched()),x.shadow&&x.fieldApi.getError()!=null&&x.fieldApi.relevant(r.state.values)&&$e.set(r.state.touched,x.field,x.fieldApi.getTouched()),b&&(r.emit("change"),r.emit("field",x.field))},setError:function(m,g){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=r.fieldsById.get(m);!x.shadow&&x.fieldApi.getIsRelevant()&&$e.set(r.state.errors,x.field,x.fieldApi.getError());var I=$e.get(r.state.errors,x.field);(x.shadow&&x.fieldApi.getError()!=null&&x.fieldApi.relevant(r.state.values)||x.shadow&&x.fieldApi.getError()===void 0&&x.fieldApi.relevant(r.state.values)&&typeof I=="string")&&$e.set(r.state.errors,x.field,x.fieldApi.getError()),b&&(r.emit("change"),r.emit("field",x.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(d){delete r.state.error,r.notify(d)})}return U(e,[{key:"emit",value:function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),f=1;f<a;f++)o[f-1]=arguments[f];var d=this.subscriptions.get(n);d&&d.forEach(function(m){return m.apply(void 0,o)})}},{key:"on",value:function(n,a){this.subscriptions.get(n)||this.subscriptions.set(n,new Set);var o=this.subscriptions.get(n);o.add(a)}},{key:"removeListener",value:function(n,a){var o=this.subscriptions.get(n);o.delete(a)}},{key:"setOptions",value:function(n){this.options=n}},{key:"setValue",value:function(n,a,o){this.getField(n).fieldApi.setValue(a,null,K({allowEmptyString:this.options.allowEmptyStrings},o))}},{key:"setTouched",value:function(n,a){this.getField(n).fieldApi.setTouched(a)}},{key:"setError",value:function(n,a){this.getField(n).fieldApi.setError(a)}},{key:"setFormError",value:function(n){this.state.error=n,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(n,a){if(this.state.validating=this.state.validating-1,this.getError(n)||this.setError(n,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(Jt("Submit",this.state),this.emit("submit")):(Jt("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(n){this.state.step=n,this.emit("change")}},{key:"setCurrent",value:function(n){this.state.Current=n,this.emit("change")}},{key:"back",value:function(n){this.state.step=this.state.step-1,this.state.Current=n,this.emit("change")}},{key:"next",value:function(n){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=n),this.emit("change")}},{key:"setInitialValue",value:function(n,a){$e.set(this.options.initialValues,n,a)}},{key:"getFormState",value:function(){return Jt("Returning form state"),K(K({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(n){var a=this.getValues();return $e.get(a,n)}},{key:"getValue",value:function(n){var a=this.getField(n).fieldApi.getValue();return Jt("Getting value for",n,a),a}},{key:"getTouched",value:function(n){var a=this.getField(n).fieldApi.getTouched();return Jt("Getting touched for",n,a),a}},{key:"getError",value:function(n){var a=this.getField(n).fieldApi.getError();return Jt("Getting error for",n,a),a}},{key:"getDirty",value:function(n){var a=this.getField(n).fieldApi.getDirty();return Jt("Getting dirty for",n,a),a}},{key:"getPristine",value:function(n){var a=this.getField(n).fieldApi.getPristine();return Jt("Getting pristine for",n,a),a}},{key:"getValues",value:function(){return Jt("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return Jt("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return Jt("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?$e.get(this.savedValues,"shadow-".concat(n)):$e.get(this.savedValues,n)}},{key:"removeSavedState",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?$e.delete(this.savedValues,"shadow-".concat(n)):$e.delete(this.savedValues,n)}},{key:"getFullField",value:function(n){return n}},{key:"getInitialValue",value:function(n){return $e.get(this.options.initialValues,n)}},{key:"getField",value:function(n){Jt("Getting Field",n);var a=this.fieldsByName.get(n);return a||(console.warn("Attempting to get field ".concat(n," but it does not exist")),this.dummyField)}},{key:"notify",value:function(n){var a=this,o=this.getField(n);o&&o.notify&&o.notify.forEach(function(f){var d=".".concat(n),m="".concat(d.replace(/(.*)[.[].*/,"$1"),".").concat(f).slice(1),g=a.getField(m);g&&(Jt("Notifying",g.field),g.fieldApi.validate(),g.fieldApi.checkRelevant())})}},{key:"validateField",value:function(n){this.getField(n).fieldApi.validate()}},{key:"resetField",value:function(n){this.getField(n).fieldApi.reset()}},{key:"fieldExists",value:function(n){return this.fieldsByName.get(n)!=null}},{key:"valid",value:function(){var n=this.getErrors();return!!($e.empty(n)&&!this.state.error)}},{key:"screenValid",value:function(){var n=Object.entries(this.onScreen).some(function(a){var o=H(a,2),f=o[1];return f.fieldApi.getError()});return!n}},{key:"invalid",value:function(){var n=this.getErrors();return!!(!$e.empty(n)||this.state.error)}},{key:"pristine",value:function(){var n=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(n=!1)}),n}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){Jt("Resetting"),this.fieldsById.forEach(function(n){n.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(n){Jt("Setting values"),this.fieldsById.forEach(function(a){var o=$e.get(n,a.field);o!==void 0&&a.fieldApi.setValue(o,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var n=this;Jt("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var o=Tt(this.options.validationSchema,a);this.fieldsById.forEach(function(g){if($e.has(o,g.field)){var b=$e.get(o,g.field);n.setError(g.field,b)}else n.setError(g.field,void 0)})}if(this.options.schema&&this.options.ajv){var f=ct(this.ajvValidate,a);this.fieldsById.forEach(function(g){if($e.has(f,g.field)){var b=$e.get(f,g.field);n.setError(g.field,b)}else n.setError(g.field,void 0)})}if(this.fieldsById.forEach(function(g){g.fieldApi.validate(a),g.fieldApi.setTouched(!0,!0)}),this.options.validate){var d=this.options.validate(a);this.setFormError(d)}if(this.options.validateFields){var m=this.options.validateFields(a);this.fieldsById.forEach(function(g){if($e.has(m,g.field)){var b=$e.get(m,g.field);n.setError(g.field,b)}})}}},{key:"asyncValidate",value:function(){Jt("Async Validating all fields");var n=this.getValues();this.fieldsById.forEach(function(a){a.fieldApi.asyncValidate(n)})}},{key:"keyDown",value:function(n){if(n.keyCode==13&&this.options.preventEnter)return n.preventDefault(n),!1}},{key:"submitForm",value:function(n){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&n&&n.preventDefault(n),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(Jt("Submit",this.state),this.emit("submit")):(Jt("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var n=this;this.fieldsById.forEach(function(a){n.emit("field",a.field)})}},{key:"register",value:function(n,a,o){var f=a.field,d=a.state;Jt("Register ID:",n,"Name:",f,d,"Initial",o);var m=f.slice(0,f.lastIndexOf("[")!=-1?f.lastIndexOf("]")+1:f.length),g;this.fieldsById.forEach(function(b,x){b&&b.field===f&&(g=x)}),g&&(a.keepState||a.inMultistep)?(Jt("Already Registered",f),this.fieldsById.delete(g)):g&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",f),Jt("Fields Registered",this.fieldsById.size),this.onScreen[n]=a,this.fieldsById.set(n,a),Jt("clearing expected removal",m),delete this.expectedRemovals[m],delete this.pulledOut[m],!a.shadow&&(this.updater.setValue(n,a.fieldApi.getValue(),!1),this.updater.setError(n,a.fieldApi.getError(),!1),this.updater.setTouched(n,a.fieldApi.getTouched(),!1),o||this.emit("change"),this.emit("field",f))}},{key:"deregister",value:function(n){var a=this.fieldsById.get(n),o=a.field;Jt("Deregister",n,o),delete this.onScreen[n];var f=Do(o,this.expectedRemovals),d=o.slice(0,o.lastIndexOf("[")!=-1?o.lastIndexOf("]")+1:o.length);(a.keepState||a.inMultistep)&&!f&&(Jt("Saving field ".concat(o,"'s value"),a.fieldApi.getFieldState()),a.shadow?$e.set(this.savedValues,"shadow-".concat(o),a.fieldApi.getFieldState()):$e.set(this.savedValues,o,a.fieldApi.getFieldState())),(f||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(Jt("Removing field",o),this.fieldsById.delete(n),f||($e.delete(this.state.values,o),$e.delete(this.state.touched,o),$e.delete(this.state.errors,o),a.shadow?$e.delete(this.savedValues,"shadow-".concat(o)):$e.delete(this.savedValues,o)),f&&this.pulledOut[d]&&(Jt("Pulling out",o,"with magic value",d),$e.pullOut(this.state.values,d),$e.pullOut(this.state.touched,d),$e.pullOut(this.state.errors,d),$e.pullOut(this.savedValues,d),delete this.pulledOut[d])),this.emit("change")}},{key:"expectRemoval",value:function(n){Jt("Expecting removal of",n),this.expectedRemovals[n]=!0,this.pulledOut[n]=!0}},{key:"update",value:function(n,a,o){Jt("Update",n,a.field,o,a.fieldState.value);var f=a.fieldApi.getValue(),d=a.fieldApi.getError(),m=a.fieldApi.getTouched(),g=this.fieldsByName.get(o);o&&!g&&($e.set(this.state.values,o),$e.set(this.state.errors,o),$e.set(this.state.touched,o)),$e.set(this.state.values,a.field,f),$e.set(this.state.errors,a.field,d),$e.set(this.state.touched,a.field,m),this.emit("change")}}]),e}(),Bo=Ne("informed:FormProvider "),za=function(r){var n=r.children,a=r.formApi,o=r.formController,f=r.formState,d=C(r,["children","formApi","formController","formState"]);if(Bo("Render FormProvider"),a)return Bo("Render FormProvider with given values"),h.createElement(Ze.Provider,{value:o.updater},h.createElement(kt.Provider,{value:a},h.createElement(Ct.Provider,{value:f},n)));Bo("Render FormProvider with generated values");var m=ks(d);return h.createElement(Ze.Provider,{value:m.formController.updater},h.createElement(kt.Provider,{value:m.formApi},h.createElement(Ct.Provider,{value:m.formState},n)))},jo=Ne("informed:useForm "),ks=function(r){var n=r.dontPreventDefault,a=r.initialValues,o=r.validate,f=r.validateFields,d=r.allowEmptyStrings,m=r.preventEnter,g=r.getApi,b=r.apiRef,x=r.onChange,I=r.onReset,N=r.onSubmit,j=r.onValueChange,W=r.onSubmitFailure,ee=r.validationSchema,te=r.schema,se=r.ajv,ie=r.fieldMap,de=r.onlyValidateSchema,we=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);jo("Render useForm");var xe=(0,h.useMemo)(function(){return{dontPreventDefault:n,initialValues:a,validate:o,validateFields:f,allowEmptyStrings:d,preventEnter:m,validationSchema:ee,schema:te,ajv:se,fieldMap:ie}},[n,a,o,f,d,m,ee,te,se,ie]),Ee=(0,h.useState)(function(){return new uu(xe)}),ye=H(Ee,1),be=ye[0];(0,h.useEffect)(function(){be.setOptions(xe)},[xe]),Rt(function(){be.mount()},[]);var Se=(0,h.useState)(function(){return be.getFormState()}),ke=H(Se,2),Me=ke[0],Re=ke[1];Rt(function(){var cr=function(){return x&&x(be.getFormState())},mr=function(){return I&&I()},$r=function(){return N&&N(be.getFormState().values)},yr=function(){return j&&j(be.getFormState().values)},kr=function(){return W&&W(be.getFormState().errors)};return be.on("change",cr),be.on("reset",mr),be.on("submit",$r),be.on("value",yr),be.on("failure",kr),function(){be.removeListener("change",cr),be.removeListener("reset",mr),be.removeListener("submit",$r),be.removeListener("value",yr),be.removeListener("failure",kr)}},[x,I,N,j,W]),(0,h.useState)(function(){var cr=function(){jo("Setting form state"),Re(be.getFormState())};be.on("change",cr),g&&g(be.getFormApi()),b&&(b.current=be.getFormApi())});var We=(0,h.useState)(function(){return be.getFormApi()}),It=H(We,1),vt=It[0],rr=function(mr){return h.createElement(za,{formApi:vt,formState:Me,formController:be},h.createElement(h.Fragment,null,mr||h.createElement(Gt,{schema:te,onlyValidateSchema:de})))};return{formApi:vt,formState:Me,formController:be,render:rr,userProps:we}},Fs=Ne("informed:Form "),fu=function(r){var n=r.children,a=r.render,o=r.component,f=C(r,["children","render","component"]);Fs("Render FORM");var d=ks(f),m=d.formApi,g=d.formController,b=d.formState,x=d.render,I=d.userProps,N=function(){var W={formState:b,formApi:m};return o?h.createElement(o,W,n):a?a(W):typeof n=="function"?n(W):n};return x(h.createElement("form",Q({},I,{onReset:g.reset,onSubmit:g.submitForm,onKeyDown:g.keyDown}),N()))},cu=function(r,n){return K(K({},n),{},{getValue:function(o){return n.getValue("".concat(r,".").concat(o))},getTouched:function(o){return n.getTouched("".concat(r,".").concat(o))},getError:function(o){return n.getError("".concat(r,".").concat(o))},setValue:function(o,f){return n.setValue("".concat(r,".").concat(o),f)},setTouched:function(o,f){return n.setTouched("".concat(r,".").concat(o),f)},setError:function(o,f){return n.setError("".concat(r,".").concat(o),f)},getInitialValue:function(o){return n.getInitialValue("".concat(r,".").concat(o))},getFullField:function(o){return"".concat(n.getFullField(r),".").concat(o)}})},du=function(r,n){var a=n.register,o=n.deregister,f=n.setValue,d=n.setTouched,m=n.setError,g=n.update,b=n.getField,x=n.expectRemoval,I=n.getInitialValue,N=n.fieldMap,j=n.getSavedValue;return{register:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return a.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},deregister:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return o.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},update:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return g.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},setValue:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return f.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},setTouched:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return d.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},setError:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return m.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},getField:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return b.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},expectRemoval:function(ee){for(var te=arguments.length,se=new Array(te>1?te-1:0),ie=1;ie<te;ie++)se[ie-1]=arguments[ie];return x.apply(void 0,["".concat(r,".").concat(ee)].concat(se))},getInitialValue:function(ee){return I("".concat(r,".").concat(ee))},getSavedValue:function(ee){return j("".concat(r,".").concat(ee))},fieldMap:N}},wc=function(r){var n=r.scope,a=r.children,o=useContext(Ze),f=Yt(),d=pi(),m=useMemo(function(){return cu(n,f)},[n]),g=useMemo(function(){return du(n,o)},[n]);return React.createElement(Ze.Provider,{value:g},React.createElement(kt.Provider,{value:m},React.createElement(Ct.Provider,{value:d},a)))},gp=function(r){var n=pi(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(j){a[j]=n[j]}):a=n;var o=a,f=o.pristine,d=o.dirty,m=o.invalid,g=o.values,b=o.errors,x=o.touched,I=o.validating,N=o.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:f,dirty:d,invalid:m,values:g,errors:b,touched:x,validating:I,submitting:N},null,2)))},Ac=function(r){var n=r.initialStep,a=r.multistepApiRef,o=Yt(),f=o.getValues,d=o.validate,m=o.screenValid,g=(0,h.useState)(new Map),b=H(g,1),x=b[0],I=(0,h.useRef)(0),N=dr({current:n,steps:[],goal:null}),j=H(N,3),W=j[0],ee=j[1],te=j[2],se=(0,h.useState)(function(){var xe=function(){var be=te(),Se=be.current,ke=x.get(Se);return ke},Ee={getState:function(){return te()},getCurrentStep:xe,getStep:function(be){return x.get(be)},getNumberOfSteps:function(){return x.size},next:function(){if(d(),m()){var be=xe(),Se=be.getNext,ke=Se(),Me=typeof ke=="function"?ke(f()):ke;Me&&ee(function(Re){return K(K({},Re),{},{current:Me})})}},back:function(){var be=xe(),Se=be.getPrevious,ke=Se(),Me=typeof ke=="function"?ke(f()):ke;Me&&ee(function(Re){return K(K({},Re),{},{current:Me})})},setCurrent:function(be){if(be){var Se=x.get(be).index;Se<xe().index?ee(function(ke){return K(K({},ke),{},{current:be,goal:null})}):ee(function(ke){return K(K({},ke),{},{goal:be})})}},register:function(be,Se,ke){ke?(I.current=I.current+1,x.set(be,K(K({},Se),{},{index:I.current}))):ee(function(Me){return K(K({},Me),{},{steps:Array.from(x.keys())})})},deregister:function(be){x.delete(be),I.current=I.current-1,ee(function(Se){return K(K({},Se),{},{steps:Array.from(x.keys())})})}};return a&&(a.current=Ee),Ee}),ie=H(se,1),de=ie[0],we=function(Ee){return h.createElement(qr.Provider,{value:de},h.createElement(br.Provider,{value:W},Ee))};return K(K(K({},de),W),{},{render:we})};function pu(){return(0,h.useContext)(br)}function hi(){return(0,h.useContext)(qr)}var Cc=function(r){var n=r.step,a=r.next,o=r.previous,f=r.relevant,d=pi(),m=d.values,g=pu(),b=g.current,x=g.goal,I=hi(),N=I.register,j=I.deregister,W=I.next,ee=n===b,te=f?f(m):!0,se=(0,h.useRef)(a),ie=(0,h.useRef)(o),de=(0,h.useRef)();se.current=a,ie.current=o,de.current=f,(0,h.useState)(function(){N(n,{name:n,getNext:function(){return se.current},getPrevious:function(){return ie.current}},!0)}),(0,h.useEffect)(function(){return N(n,{name:n,getNext:function(){return se.current},getPrevious:function(){return ie.current}}),function(){j(n)}},[n]),(0,h.useEffect)(function(){x&&ee&&x!==n&&W()},[x,ee]);var we=function(Ee){return h.createElement(xr.Provider,{value:{relevant:function(be){return de.current?de.current(be):!0},multistep:!0}},ee&&te?Ee:null)};return{isCurrent:ee,isRelevant:te,step:n,render:we}};function Ec(e){var r=e.children,n=C(e,["children"]),a=Ac(n),o=a.render,f=C(a,["render"]);return o(typeof r=="function"?r(f):r)}Ec.Step=function(r){var n=r.children,a=C(r,["children"]),o=Cc(a),f=o.render;return f(n)};var Rs=function(r){var n=r.field,a=useContext(Ze),o=a.fieldMap,f=Yt(),d=f.getFullField,m=f.getOptions,g=d(n),b=m(),x=b.schema,I=ue(g),N=$e.get(x,I);if(!N)return null;var j=nt(n,N),W=j.props,ee=j.componentType,te=o[ee];return React.createElement(te,Q({field:n},W))},Vo=function(){var r=Yt(),n=r.getOptions,a=n(),o=a.schema;return React.createElement(Gt,{schema:o})},mp=function(r){return React.forwardRef(function(n,a){return React.createElement(kt.Consumer,null,function(o){return React.createElement(r,Q({formApi:o,ref:a},n))})})},yp=function(r){return React.forwardRef(function(n,a){return React.createElement(Ct.Consumer,null,function(o){return React.createElement(r,Q({formState:o,ref:a},n))})})},Oc=function(r,n){return{getValue:function(){return r.getValue(n)},setValue:function(o){return r.setValue(n,o)},getTouched:function(){return r.getTouched(n)},setTouched:function(o){return r.setTouched(n,o)},getError:function(){return r.getError(n)},setError:function(o){return r.setError(n,o)},reset:function(){return r.resetField(n)},validate:function(){return r.validateField(n)},exists:function(){return r.fieldExists(n)},getDirty:function(){return r.getDirty(n)},getPristine:function(){return r.getPristine(n)},getFieldState:function(){return r.getField(n).fieldApi.getFieldState()}}};function hu(e){var r=Yt(),n=useMemo(function(){return Oc(r,e)},[e]);return n}function Ls(e){var r=hu(e),n=Yt(),a=React.useState(),o=H(a,2),f=o[1],d=React.useCallback(function(){return f({})},[]);return Rt(function(){var m=function(b){b===e&&d()};return n.emitter.on("field",m),function(){n.emitter.removeListener("field",m)}},[]),Rt(function(){d()},[]),r.getFieldState()||{}}var Tc=function(r){return function(n){return function(a){var o=Ls(r);return React.createElement(n,Q({fieldState:o},a))}}},bp=function(r){return function(n){return function(a){var o=hu(r);return React.createElement(n,Q({fieldApi:o},a))}}},Pc=function(r){var n=r.value,a=r.forwardedRef,o=r.children,f=C(r,["value","forwardedRef","children"]);return React.createElement("option",Q({ref:a,value:n,key:n},f),o)},Ic=null,$i=s(49086),Ga=s(25575),ga=s(24463),vu=s(84870),Ms=s(79494),$a=s(48145),gu=s(11807),mu=s(45055),yn=s(49800);function kc(e,r,n){return r in e?yn(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function yu(e,r){var n=Ga(e);if(ga){var a=ga(e);r&&(a=vu(a).call(a,function(o){return Ms(e,o).enumerable})),n.push.apply(n,a)}return n}function lr(e){for(var r=1;r<arguments.length;r++){var n,a,o=arguments[r]!=null?arguments[r]:{};r%2?$a(n=yu(Object(o),!0)).call(n,function(f){kc(e,f,o[f])}):gu?mu(e,gu(o)):$a(a=yu(Object(o))).call(a,function(f){yn(e,f,Ms(o,f))})}return e}var bu=s(45932),Fr=s.n(bu),Ns=s(51661),qn=s.n(Ns),Gn=s(883),vi=s(57829),Ti=s(5490),Ds=s(72010),Fc=s(72383),xu=s(50557);function Bs(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function Uo(e,r){var n;if(!!e){if(typeof e=="string")return Bs(e,r);var a=Fc(n=Object.prototype.toString.call(e)).call(n,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return xu(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Bs(e,r)}}function Pi(e,r){var n=typeof vi!="undefined"&&Ti(e)||e["@@iterator"];if(!n){if(Ds(e)||(n=Uo(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(b){throw b},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
47
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,d=!1,m;return{s:function(){n=n.call(e)},n:function(){var b=n.next();return f=b.done,b},e:function(b){d=!0,m=b},f:function(){try{!f&&n.return!=null&&n.return()}finally{if(d)throw m}}}}var Rc=s(92876);function ar(e){return ar=typeof vi=="function"&&typeof Rc=="symbol"?function(r){return typeof r}:function(r){return r&&typeof vi=="function"&&r.constructor===vi&&r!==vi.prototype?"symbol":typeof r},ar(e)}function Lc(e){if(Ds(e))return e}function Mc(e,r){var n=e==null?null:typeof vi!="undefined"&&Ti(e)||e["@@iterator"];if(n!=null){var a=[],o=!0,f=!1,d,m;try{for(n=n.call(e);!(o=(d=n.next()).done)&&(a.push(d.value),!(r&&a.length===r));o=!0);}catch(g){f=!0,m=g}finally{try{!o&&n.return!=null&&n.return()}finally{if(f)throw m}}return a}}function Su(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
48
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $n(e,r){return Lc(e)||Mc(e,r)||Uo(e,r)||Su()}var js=s(64772);function Ka(e,r,n,a,o,f,d){try{var m=e[f](d),g=m.value}catch(b){n(b);return}m.done?r(g):js.resolve(g).then(a,o)}function Ii(e){return function(){var r=this,n=arguments;return new js(function(a,o){var f=e.apply(r,n);function d(g){Ka(f,a,o,d,m,"next",g)}function m(g){Ka(f,a,o,d,m,"throw",g)}d(void 0)})}}var Nc=s(99732),ei=s.n(Nc),Dc=s(82985),gi=s.n(Dc),Rr=s(42126),wu=s.n(Rr),Au=s(48621),ma=s.n(Au),Bc=s(85337),Ya=s.n(Bc),jc=s(14903),$t=s.n(jc),Cu=s(2921),Kt=s.n(Cu),Vc=s(40192),ut=s.n(Vc),Eu=s(31175),Ou=s.n(Eu),Ja=s(40453),Er=s.n(Ja),Vs=s(43616),Us=s(37794),Wo=s.n(Us);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Kn(e){return typeof e=="undefined"||e===null}function Ki(e){return typeof e=="object"&&e!==null}function Ws(e){return Array.isArray(e)?e:Kn(e)?[]:[e]}function Uc(e,r){var n,a,o,f;if(r)for(f=Object.keys(r),n=0,a=f.length;n<a;n+=1)o=f[n],e[o]=r[o];return e}function Tu(e,r){var n="",a;for(a=0;a<r;a+=1)n+=e;return n}function Wc(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Pu=Kn,Hs=Ki,ya=Ws,ti=Tu,Iu=Wc,ku=Uc,Lr={isNothing:Pu,isObject:Hs,toArray:ya,repeat:ti,isNegativeZero:Iu,extend:ku};function Fu(e,r){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
|
|
41
|
+
*/O.parse=x,O.serialize=w;var s=Object.prototype.toString,d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function x(Z,ee){if(typeof Z!="string")throw new TypeError("argument str must be a string");for(var ue={},ne=ee||{},ae=ne.decode||A,Y=0;Y<Z.length;){var P=Z.indexOf("=",Y);if(P===-1)break;var G=Z.indexOf(";",Y);if(G===-1)G=Z.length;else if(G<P){Y=Z.lastIndexOf(";",P-1)+1;continue}var N=Z.slice(Y,P).trim();if(ue[N]===void 0){var C=Z.slice(P+1,G).trim();C.charCodeAt(0)===34&&(C=C.slice(1,-1)),ue[N]=W(C,ae)}Y=G+1}return ue}function w(Z,ee,ue){var ne=ue||{},ae=ne.encode||E;if(typeof ae!="function")throw new TypeError("option encode is invalid");if(!d.test(Z))throw new TypeError("argument name is invalid");var Y=ae(ee);if(Y&&!d.test(Y))throw new TypeError("argument val is invalid");var P=Z+"="+Y;if(ne.maxAge!=null){var G=ne.maxAge-0;if(isNaN(G)||!isFinite(G))throw new TypeError("option maxAge is invalid");P+="; Max-Age="+Math.floor(G)}if(ne.domain){if(!d.test(ne.domain))throw new TypeError("option domain is invalid");P+="; Domain="+ne.domain}if(ne.path){if(!d.test(ne.path))throw new TypeError("option path is invalid");P+="; Path="+ne.path}if(ne.expires){var N=ne.expires;if(!F(N)||isNaN(N.valueOf()))throw new TypeError("option expires is invalid");P+="; Expires="+N.toUTCString()}if(ne.httpOnly&&(P+="; HttpOnly"),ne.secure&&(P+="; Secure"),ne.priority){var C=typeof ne.priority=="string"?ne.priority.toLowerCase():ne.priority;switch(C){case"low":P+="; Priority=Low";break;case"medium":P+="; Priority=Medium";break;case"high":P+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(ne.sameSite){var k=typeof ne.sameSite=="string"?ne.sameSite.toLowerCase():ne.sameSite;switch(k){case!0:P+="; SameSite=Strict";break;case"lax":P+="; SameSite=Lax";break;case"strict":P+="; SameSite=Strict";break;case"none":P+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return P}function A(Z){return Z.indexOf("%")!==-1?decodeURIComponent(Z):Z}function E(Z){return encodeURIComponent(Z)}function F(Z){return s.call(Z)==="[object Date]"||Z instanceof Date}function W(Z,ee){try{return ee(Z)}catch(ue){return Z}}},27129:(h,O,s)=>{var d=s(53822);h.exports=d},86250:(h,O,s)=>{var d=s(21434);h.exports=d},61347:(h,O,s)=>{var d=s(27710);h.exports=d},42142:(h,O,s)=>{var d=s(31585);h.exports=d},21106:(h,O,s)=>{var d=s(55603);h.exports=d},97497:(h,O,s)=>{var d=s(31206);h.exports=d},28385:(h,O,s)=>{var d=s(26174);h.exports=d},85874:(h,O,s)=>{var d=s(87511);h.exports=d},86843:(h,O,s)=>{var d=s(24741);h.exports=d},37528:(h,O,s)=>{var d=s(4963);h.exports=d},81471:(h,O,s)=>{var d=s(21025);h.exports=d},5271:(h,O,s)=>{var d=s(27820);h.exports=d},87275:(h,O,s)=>{var d=s(74194);h.exports=d},13772:(h,O,s)=>{var d=s(32854);h.exports=d},97574:(h,O,s)=>{var d=s(60002);h.exports=d},69373:(h,O,s)=>{var d=s(28980);h.exports=d},70033:(h,O,s)=>{var d=s(45636);h.exports=d},77443:(h,O,s)=>{var d=s(66672);h.exports=d},88362:(h,O,s)=>{var d=s(46618);h.exports=d},89821:(h,O,s)=>{var d=s(42285);h.exports=d},8008:(h,O,s)=>{var d=s(58535);h.exports=d},52221:(h,O,s)=>{s(5454),s(19173);var d=s(57545);h.exports=d.Array.from},75078:(h,O,s)=>{s(8118);var d=s(57545);h.exports=d.Array.isArray},66135:(h,O,s)=>{s(59106);var d=s(45607);h.exports=d("Array").concat},77237:(h,O,s)=>{s(98939),s(46663);var d=s(45607);h.exports=d("Array").entries},83971:(h,O,s)=>{s(73436);var d=s(45607);h.exports=d("Array").filter},42087:(h,O,s)=>{s(10880);var d=s(45607);h.exports=d("Array").find},60098:(h,O,s)=>{s(9823);var d=s(45607);h.exports=d("Array").forEach},54216:(h,O,s)=>{s(70024);var d=s(45607);h.exports=d("Array").includes},92089:(h,O,s)=>{s(62276);var d=s(45607);h.exports=d("Array").indexOf},6209:(h,O,s)=>{s(63838);var d=s(45607);h.exports=d("Array").map},49922:(h,O,s)=>{s(99523);var d=s(45607);h.exports=d("Array").reverse},52671:(h,O,s)=>{s(65818);var d=s(45607);h.exports=d("Array").slice},51375:(h,O,s)=>{s(12178);var d=s(45607);h.exports=d("Array").splice},65739:(h,O,s)=>{s(98939),s(5454);var d=s(78703);h.exports=d},74030:(h,O,s)=>{s(25067),h.exports=s(98576)},41484:(h,O,s)=>{var d=s(8902),x=s(66135),w=Array.prototype;h.exports=function(A){var E=A.concat;return A===w||d(w,A)&&E===w.concat?x:E}},53669:(h,O,s)=>{var d=s(8902),x=s(83971),w=Array.prototype;h.exports=function(A){var E=A.filter;return A===w||d(w,A)&&E===w.filter?x:E}},37506:(h,O,s)=>{var d=s(8902),x=s(42087),w=Array.prototype;h.exports=function(A){var E=A.find;return A===w||d(w,A)&&E===w.find?x:E}},13173:(h,O,s)=>{var d=s(8902),x=s(54216),w=s(62840),A=Array.prototype,E=String.prototype;h.exports=function(F){var W=F.includes;return F===A||d(A,F)&&W===A.includes?x:typeof F=="string"||F===E||d(E,F)&&W===E.includes?w:W}},92604:(h,O,s)=>{var d=s(8902),x=s(92089),w=Array.prototype;h.exports=function(A){var E=A.indexOf;return A===w||d(w,A)&&E===w.indexOf?x:E}},263:(h,O,s)=>{var d=s(8902),x=s(6209),w=Array.prototype;h.exports=function(A){var E=A.map;return A===w||d(w,A)&&E===w.map?x:E}},80432:(h,O,s)=>{var d=s(8902),x=s(49922),w=Array.prototype;h.exports=function(A){var E=A.reverse;return A===w||d(w,A)&&E===w.reverse?x:E}},77663:(h,O,s)=>{var d=s(8902),x=s(52671),w=Array.prototype;h.exports=function(A){var E=A.slice;return A===w||d(w,A)&&E===w.slice?x:E}},45063:(h,O,s)=>{var d=s(8902),x=s(51375),w=Array.prototype;h.exports=function(A){var E=A.splice;return A===w||d(w,A)&&E===w.splice?x:E}},7769:(h,O,s)=>{var d=s(8902),x=s(14820),w=String.prototype;h.exports=function(A){var E=A.startsWith;return typeof A=="string"||A===w||d(w,A)&&E===w.startsWith?x:E}},96056:(h,O,s)=>{s(59704);var d=s(57545),x=s(86298);d.JSON||(d.JSON={stringify:JSON.stringify}),h.exports=function(A,E,F){return x(d.JSON.stringify,null,arguments)}},99936:(h,O,s)=>{s(93582);var d=s(57545);h.exports=d.Object.assign},23213:(h,O,s)=>{s(73113);var d=s(57545),x=d.Object;h.exports=function(A,E){return x.create(A,E)}},38724:(h,O,s)=>{s(57585);var d=s(57545),x=d.Object,w=h.exports=function(E,F){return x.defineProperties(E,F)};x.defineProperties.sham&&(w.sham=!0)},63512:(h,O,s)=>{s(20297);var d=s(57545),x=d.Object,w=h.exports=function(E,F,W){return x.defineProperty(E,F,W)};x.defineProperty.sham&&(w.sham=!0)},2335:(h,O,s)=>{s(27442);var d=s(57545);h.exports=d.Object.entries},60632:(h,O,s)=>{s(89189);var d=s(57545),x=d.Object,w=h.exports=function(E,F){return x.getOwnPropertyDescriptor(E,F)};x.getOwnPropertyDescriptor.sham&&(w.sham=!0)},81056:(h,O,s)=>{s(62509);var d=s(57545);h.exports=d.Object.getOwnPropertyDescriptors},12921:(h,O,s)=>{s(36187);var d=s(57545);h.exports=d.Object.getOwnPropertySymbols},8168:(h,O,s)=>{s(19234);var d=s(57545);h.exports=d.Object.getPrototypeOf},38651:(h,O,s)=>{s(92647);var d=s(57545);h.exports=d.Object.keys},33083:(h,O,s)=>{s(13222);var d=s(57545);h.exports=d.Object.setPrototypeOf},93154:(h,O,s)=>{s(4242),s(98939),s(46663),s(59021),s(97884),s(78885),s(91868),s(5454);var d=s(57545);h.exports=d.Promise},62840:(h,O,s)=>{s(39247);var d=s(45607);h.exports=d("String").includes},14820:(h,O,s)=>{s(32991);var d=s(45607);h.exports=d("String").startsWith},85008:(h,O,s)=>{s(59106),s(46663),s(36187),s(19781),s(50492),s(66681),s(29594),s(63665),s(29017),s(11250),s(79786),s(90503),s(16565),s(69322),s(13610),s(36886),s(33514),s(68671),s(58556),s(71367);var d=s(57545);h.exports=d.Symbol},994:(h,O,s)=>{s(98939),s(46663),s(5454),s(63665);var d=s(89207);h.exports=d.f("iterator")},31293:(h,O,s)=>{s(98939),s(46663),s(33983);var d=s(57545);h.exports=d.WeakMap},62813:(h,O,s)=>{h.exports=s(52708)},68664:(h,O,s)=>{h.exports=s(58541)},21457:(h,O,s)=>{h.exports=s(37020)},36516:(h,O,s)=>{h.exports=s(79987)},87611:(h,O,s)=>{h.exports=s(86812)},4161:(h,O,s)=>{h.exports=s(51024)},75159:(h,O,s)=>{h.exports=s(32747)},87708:(h,O,s)=>{h.exports=s(85918)},42937:(h,O,s)=>{h.exports=s(21626)},69297:(h,O,s)=>{h.exports=s(77021)},10353:(h,O,s)=>{h.exports=s(18281)},8026:(h,O,s)=>{h.exports=s(90229)},67362:(h,O,s)=>{h.exports=s(53949)},57532:(h,O,s)=>{h.exports=s(11795)},61903:(h,O,s)=>{h.exports=s(75090)},42044:(h,O,s)=>{h.exports=s(27994)},60902:(h,O,s)=>{h.exports=s(45483)},2214:(h,O,s)=>{h.exports=s(35796)},983:(h,O,s)=>{h.exports=s(79918)},59256:(h,O,s)=>{h.exports=s(82185)},95659:(h,O,s)=>{h.exports=s(39982)},52708:(h,O,s)=>{var d=s(27129);h.exports=d},58541:(h,O,s)=>{var d=s(86250);h.exports=d},37020:(h,O,s)=>{var d=s(61347);h.exports=d},79987:(h,O,s)=>{s(5363);var d=s(42142);h.exports=d},86812:(h,O,s)=>{var d=s(21106);h.exports=d},51024:(h,O,s)=>{var d=s(97497);h.exports=d},32747:(h,O,s)=>{var d=s(28385);h.exports=d},85918:(h,O,s)=>{var d=s(85874);h.exports=d},21626:(h,O,s)=>{var d=s(86843);h.exports=d},77021:(h,O,s)=>{var d=s(37528);h.exports=d},18281:(h,O,s)=>{var d=s(81471);h.exports=d},90229:(h,O,s)=>{var d=s(5271);h.exports=d},53949:(h,O,s)=>{var d=s(87275);h.exports=d},11795:(h,O,s)=>{var d=s(13772);h.exports=d},75090:(h,O,s)=>{var d=s(97574);h.exports=d},27994:(h,O,s)=>{var d=s(69373);h.exports=d},45483:(h,O,s)=>{var d=s(70033);h.exports=d},35796:(h,O,s)=>{var d=s(77443);h.exports=d},79918:(h,O,s)=>{var d=s(88362);s(12752),s(14562),s(25363),s(69355),h.exports=d},82185:(h,O,s)=>{var d=s(89821);s(60177),s(9031),s(96658),s(54212),s(18658),s(71875),s(54592),s(26680),h.exports=d},39982:(h,O,s)=>{var d=s(8008);h.exports=d},66235:(h,O,s)=>{var d=s(16447),x=s(79288),w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not a function")}},71404:(h,O,s)=>{var d=s(22091),x=s(79288),w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not a constructor")}},7757:(h,O,s)=>{var d=s(16447),x=String,w=TypeError;h.exports=function(A){if(typeof A=="object"||d(A))return A;throw w("Can't set "+x(A)+" as a prototype")}},67423:h=>{h.exports=function(){}},46961:(h,O,s)=>{var d=s(8902),x=TypeError;h.exports=function(w,A){if(d(A,w))return w;throw x("Incorrect invocation")}},31138:(h,O,s)=>{var d=s(35744),x=String,w=TypeError;h.exports=function(A){if(d(A))return A;throw w(x(A)+" is not an object")}},80410:(h,O,s)=>{var d=s(76192);h.exports=d(function(){if(typeof ArrayBuffer=="function"){var x=new ArrayBuffer(8);Object.isExtensible(x)&&Object.defineProperty(x,"a",{value:8})}})},87397:(h,O,s)=>{"use strict";var d=s(50454).forEach,x=s(10424),w=x("forEach");h.exports=w?[].forEach:function(E){return d(this,E,arguments.length>1?arguments[1]:void 0)}},20841:(h,O,s)=>{"use strict";var d=s(8043),x=s(18922),w=s(71795),A=s(21635),E=s(96109),F=s(22091),W=s(84104),Z=s(49361),ee=s(61669),ue=s(78703),ne=Array;h.exports=function(Y){var P=w(Y),G=F(this),N=arguments.length,C=N>1?arguments[1]:void 0,k=C!==void 0;k&&(C=d(C,N>2?arguments[2]:void 0));var j=ue(P),J=0,K,U,re,X,z,ce;if(j&&!(this===ne&&E(j)))for(X=ee(P,j),z=X.next,U=G?new this:[];!(re=x(z,X)).done;J++)ce=k?A(X,C,[re.value,J],!0):re.value,Z(U,J,ce);else for(K=W(P),U=G?new this(K):ne(K);K>J;J++)ce=k?C(P[J],J):P[J],Z(U,J,ce);return U.length=J,U}},48180:(h,O,s)=>{var d=s(20101),x=s(97739),w=s(84104),A=function(E){return function(F,W,Z){var ee=d(F),ue=w(ee),ne=x(Z,ue),ae;if(E&&W!=W){for(;ue>ne;)if(ae=ee[ne++],ae!=ae)return!0}else for(;ue>ne;ne++)if((E||ne in ee)&&ee[ne]===W)return E||ne||0;return!E&&-1}};h.exports={includes:A(!0),indexOf:A(!1)}},50454:(h,O,s)=>{var d=s(8043),x=s(84120),w=s(2202),A=s(71795),E=s(84104),F=s(71321),W=x([].push),Z=function(ee){var ue=ee==1,ne=ee==2,ae=ee==3,Y=ee==4,P=ee==6,G=ee==7,N=ee==5||P;return function(C,k,j,J){for(var K=A(C),U=w(K),re=d(k,j),X=E(U),z=0,ce=J||F,he=ue?ce(C,X):ne||G?ce(C,0):void 0,_,Q;X>z;z++)if((N||z in U)&&(_=U[z],Q=re(_,z,K),ee))if(ue)he[z]=Q;else if(Q)switch(ee){case 3:return!0;case 5:return _;case 6:return z;case 2:W(he,_)}else switch(ee){case 4:return!1;case 7:W(he,_)}return P?-1:ae||Y?Y:he}};h.exports={forEach:Z(0),map:Z(1),filter:Z(2),some:Z(3),every:Z(4),find:Z(5),findIndex:Z(6),filterReject:Z(7)}},90242:(h,O,s)=>{var d=s(76192),x=s(18182),w=s(14218),A=x("species");h.exports=function(E){return w>=51||!d(function(){var F=[],W=F.constructor={};return W[A]=function(){return{foo:1}},F[E](Boolean).foo!==1})}},10424:(h,O,s)=>{"use strict";var d=s(76192);h.exports=function(x,w){var A=[][x];return!!A&&d(function(){A.call(null,w||function(){return 1},1)})}},95072:(h,O,s)=>{"use strict";var d=s(50069),x=s(34770),w=TypeError,A=Object.getOwnPropertyDescriptor,E=d&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(F){return F instanceof TypeError}}();h.exports=E?function(F,W){if(x(F)&&!A(F,"length").writable)throw w("Cannot set read only .length");return F.length=W}:function(F,W){return F.length=W}},1923:(h,O,s)=>{var d=s(97739),x=s(84104),w=s(49361),A=Array,E=Math.max;h.exports=function(F,W,Z){for(var ee=x(F),ue=d(W,ee),ne=d(Z===void 0?ee:Z,ee),ae=A(E(ne-ue,0)),Y=0;ue<ne;ue++,Y++)w(ae,Y,F[ue]);return ae.length=Y,ae}},93096:(h,O,s)=>{var d=s(84120);h.exports=d([].slice)},6614:(h,O,s)=>{var d=s(1923),x=Math.floor,w=function(F,W){var Z=F.length,ee=x(Z/2);return Z<8?A(F,W):E(F,w(d(F,0,ee),W),w(d(F,ee),W),W)},A=function(F,W){for(var Z=F.length,ee=1,ue,ne;ee<Z;){for(ne=ee,ue=F[ee];ne&&W(F[ne-1],ue)>0;)F[ne]=F[--ne];ne!==ee++&&(F[ne]=ue)}return F},E=function(F,W,Z,ee){for(var ue=W.length,ne=Z.length,ae=0,Y=0;ae<ue||Y<ne;)F[ae+Y]=ae<ue&&Y<ne?ee(W[ae],Z[Y])<=0?W[ae++]:Z[Y++]:ae<ue?W[ae++]:Z[Y++];return F};h.exports=w},83712:(h,O,s)=>{var d=s(34770),x=s(22091),w=s(35744),A=s(18182),E=A("species"),F=Array;h.exports=function(W){var Z;return d(W)&&(Z=W.constructor,x(Z)&&(Z===F||d(Z.prototype))?Z=void 0:w(Z)&&(Z=Z[E],Z===null&&(Z=void 0))),Z===void 0?F:Z}},71321:(h,O,s)=>{var d=s(83712);h.exports=function(x,w){return new(d(x))(w===0?0:w)}},21635:(h,O,s)=>{var d=s(31138),x=s(66639);h.exports=function(w,A,E,F){try{return F?A(d(E)[0],E[1]):A(E)}catch(W){x(w,"throw",W)}}},19770:(h,O,s)=>{var d=s(18182),x=d("iterator"),w=!1;try{var A=0,E={next:function(){return{done:!!A++}},return:function(){w=!0}};E[x]=function(){return this},Array.from(E,function(){throw 2})}catch(F){}h.exports=function(F,W){if(!W&&!w)return!1;var Z=!1;try{var ee={};ee[x]=function(){return{next:function(){return{done:Z=!0}}}},F(ee)}catch(ue){}return Z}},29272:(h,O,s)=>{var d=s(41258),x=d({}.toString),w=d("".slice);h.exports=function(A){return w(x(A),8,-1)}},4696:(h,O,s)=>{var d=s(83471),x=s(16447),w=s(29272),A=s(18182),E=A("toStringTag"),F=Object,W=w(function(){return arguments}())=="Arguments",Z=function(ee,ue){try{return ee[ue]}catch(ne){}};h.exports=d?w:function(ee){var ue,ne,ae;return ee===void 0?"Undefined":ee===null?"Null":typeof(ne=Z(ue=F(ee),E))=="string"?ne:W?w(ue):(ae=w(ue))=="Object"&&x(ue.callee)?"Arguments":ae}},51057:(h,O,s)=>{"use strict";var d=s(84120),x=s(35090),w=s(32861).getWeakData,A=s(46961),E=s(31138),F=s(75646),W=s(35744),Z=s(33442),ee=s(50454),ue=s(64500),ne=s(73326),ae=ne.set,Y=ne.getterFor,P=ee.find,G=ee.findIndex,N=d([].splice),C=0,k=function(K){return K.frozen||(K.frozen=new j)},j=function(){this.entries=[]},J=function(K,U){return P(K.entries,function(re){return re[0]===U})};j.prototype={get:function(K){var U=J(this,K);if(U)return U[1]},has:function(K){return!!J(this,K)},set:function(K,U){var re=J(this,K);re?re[1]=U:this.entries.push([K,U])},delete:function(K){var U=G(this.entries,function(re){return re[0]===K});return~U&&N(this.entries,U,1),!!~U}},h.exports={getConstructor:function(K,U,re,X){var z=K(function(Q,H){A(Q,ce),ae(Q,{type:U,id:C++,frozen:void 0}),F(H)||Z(H,Q[X],{that:Q,AS_ENTRIES:re})}),ce=z.prototype,he=Y(U),_=function(Q,H,ye){var ke=he(Q),je=w(E(H),!0);return je===!0?k(ke).set(H,ye):je[ke.id]=ye,Q};return x(ce,{delete:function(Q){var H=he(this);if(!W(Q))return!1;var ye=w(Q);return ye===!0?k(H).delete(Q):ye&&ue(ye,H.id)&&delete ye[H.id]},has:function(H){var ye=he(this);if(!W(H))return!1;var ke=w(H);return ke===!0?k(ye).has(H):ke&&ue(ke,ye.id)}}),x(ce,re?{get:function(H){var ye=he(this);if(W(H)){var ke=w(H);return ke===!0?k(ye).get(H):ke?ke[ye.id]:void 0}},set:function(H,ye){return _(this,H,ye)}}:{add:function(H){return _(this,H,!0)}}),z}}},34535:(h,O,s)=>{"use strict";var d=s(93085),x=s(98576),w=s(32861),A=s(76192),E=s(98711),F=s(33442),W=s(46961),Z=s(16447),ee=s(35744),ue=s(11284),ne=s(42760).f,ae=s(50454).forEach,Y=s(50069),P=s(73326),G=P.set,N=P.getterFor;h.exports=function(C,k,j){var J=C.indexOf("Map")!==-1,K=C.indexOf("Weak")!==-1,U=J?"set":"add",re=x[C],X=re&&re.prototype,z={},ce;if(!Y||!Z(re)||!(K||X.forEach&&!A(function(){new re().entries().next()})))ce=j.getConstructor(k,C,J,U),w.enable();else{ce=k(function(Q,H){G(W(Q,he),{type:C,collection:new re}),H!=null&&F(H,Q[U],{that:Q,AS_ENTRIES:J})});var he=ce.prototype,_=N(C);ae(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(Q){var H=Q=="add"||Q=="set";Q in X&&!(K&&Q=="clear")&&E(he,Q,function(ye,ke){var je=_(this).collection;if(!H&&K&&!ee(ye))return Q=="get"?void 0:!1;var De=je[Q](ye===0?0:ye,ke);return H?this:De})}),K||ne(he,"size",{configurable:!0,get:function(){return _(this).collection.size}})}return ue(ce,C,!1,!0),z[C]=ce,d({global:!0,forced:!0},z),K||j.setStrong(ce,C,J),ce}},97987:(h,O,s)=>{var d=s(64500),x=s(93011),w=s(5141),A=s(42760);h.exports=function(E,F,W){for(var Z=x(F),ee=A.f,ue=w.f,ne=0;ne<Z.length;ne++){var ae=Z[ne];!d(E,ae)&&!(W&&d(W,ae))&&ee(E,ae,ue(F,ae))}}},83519:(h,O,s)=>{var d=s(18182),x=d("match");h.exports=function(w){var A=/./;try{"/./"[w](A)}catch(E){try{return A[x]=!1,"/./"[w](A)}catch(F){}}return!1}},4635:(h,O,s)=>{var d=s(76192);h.exports=!d(function(){function x(){}return x.prototype.constructor=null,Object.getPrototypeOf(new x)!==x.prototype})},87271:h=>{h.exports=function(O,s){return{value:O,done:s}}},98711:(h,O,s)=>{var d=s(50069),x=s(42760),w=s(90774);h.exports=d?function(A,E,F){return x.f(A,E,w(1,F))}:function(A,E,F){return A[E]=F,A}},90774:h=>{h.exports=function(O,s){return{enumerable:!(O&1),configurable:!(O&2),writable:!(O&4),value:s}}},49361:(h,O,s)=>{"use strict";var d=s(40077),x=s(42760),w=s(90774);h.exports=function(A,E,F){var W=d(E);W in A?x.f(A,W,w(0,F)):A[W]=F}},59362:(h,O,s)=>{var d=s(98711);h.exports=function(x,w,A,E){return E&&E.enumerable?x[w]=A:d(x,w,A),x}},35090:(h,O,s)=>{var d=s(59362);h.exports=function(x,w,A){for(var E in w)A&&A.unsafe&&x[E]?x[E]=w[E]:d(x,E,w[E],A);return x}},65098:(h,O,s)=>{var d=s(98576),x=Object.defineProperty;h.exports=function(w,A){try{x(d,w,{value:A,configurable:!0,writable:!0})}catch(E){d[w]=A}return A}},29970:(h,O,s)=>{"use strict";var d=s(79288),x=TypeError;h.exports=function(w,A){if(!delete w[A])throw x("Cannot delete property "+d(A)+" of "+d(w))}},50069:(h,O,s)=>{var d=s(76192);h.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},58382:h=>{var O=typeof document=="object"&&document.all,s=typeof O=="undefined"&&O!==void 0;h.exports={all:O,IS_HTMLDDA:s}},67449:(h,O,s)=>{var d=s(98576),x=s(35744),w=d.document,A=x(w)&&x(w.createElement);h.exports=function(E){return A?w.createElement(E):{}}},29425:h=>{var O=TypeError,s=9007199254740991;h.exports=function(d){if(d>s)throw O("Maximum allowed index exceeded");return d}},17365:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},82957:(h,O,s)=>{var d=s(60659),x=s(58189);h.exports=!d&&!x&&typeof window=="object"&&typeof document=="object"},60659:h=>{h.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},29347:(h,O,s)=>{var d=s(78989),x=s(98576);h.exports=/ipad|iphone|ipod/i.test(d)&&x.Pebble!==void 0},69536:(h,O,s)=>{var d=s(78989);h.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},58189:(h,O,s)=>{var d=s(29272),x=s(98576);h.exports=d(x.process)=="process"},5914:(h,O,s)=>{var d=s(78989);h.exports=/web0s(?!.*chrome)/i.test(d)},78989:(h,O,s)=>{var d=s(10150);h.exports=d("navigator","userAgent")||""},14218:(h,O,s)=>{var d=s(98576),x=s(78989),w=d.process,A=d.Deno,E=w&&w.versions||A&&A.version,F=E&&E.v8,W,Z;F&&(W=F.split("."),Z=W[0]>0&&W[0]<4?1:+(W[0]+W[1])),!Z&&x&&(W=x.match(/Edge\/(\d+)/),(!W||W[1]>=74)&&(W=x.match(/Chrome\/(\d+)/),W&&(Z=+W[1]))),h.exports=Z},45607:(h,O,s)=>{var d=s(57545);h.exports=function(x){return d[x+"Prototype"]}},82952:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},14503:(h,O,s)=>{var d=s(84120),x=Error,w=d("".replace),A=function(W){return String(x(W).stack)}("zxcasd"),E=/\n\s*at [^:]*:[^\n]*/,F=E.test(A);h.exports=function(W,Z){if(F&&typeof W=="string"&&!x.prepareStackTrace)for(;Z--;)W=w(W,E,"");return W}},50274:(h,O,s)=>{var d=s(76192),x=s(90774);h.exports=!d(function(){var w=Error("a");return"stack"in w?(Object.defineProperty(w,"stack",x(1,7)),w.stack!==7):!0})},93085:(h,O,s)=>{"use strict";var d=s(98576),x=s(86298),w=s(84120),A=s(16447),E=s(5141).f,F=s(89245),W=s(57545),Z=s(8043),ee=s(98711),ue=s(64500),ne=function(ae){var Y=function(P,G,N){if(this instanceof Y){switch(arguments.length){case 0:return new ae;case 1:return new ae(P);case 2:return new ae(P,G)}return new ae(P,G,N)}return x(ae,this,arguments)};return Y.prototype=ae.prototype,Y};h.exports=function(ae,Y){var P=ae.target,G=ae.global,N=ae.stat,C=ae.proto,k=G?d:N?d[P]:(d[P]||{}).prototype,j=G?W:W[P]||ee(W,P,{})[P],J=j.prototype,K,U,re,X,z,ce,he,_,Q;for(X in Y)K=F(G?X:P+(N?".":"#")+X,ae.forced),U=!K&&k&&ue(k,X),ce=j[X],U&&(ae.dontCallGetSet?(Q=E(k,X),he=Q&&Q.value):he=k[X]),z=U&&he?he:Y[X],!(U&&typeof ce==typeof z)&&(ae.bind&&U?_=Z(z,d):ae.wrap&&U?_=ne(z):C&&A(z)?_=w(z):_=z,(ae.sham||z&&z.sham||ce&&ce.sham)&&ee(_,"sham",!0),ee(j,X,_),C&&(re=P+"Prototype",ue(W,re)||ee(W,re,{}),ee(W[re],X,z),ae.real&&J&&!J[X]&&ee(J,X,z)))}},76192:h=>{h.exports=function(O){try{return!!O()}catch(s){return!0}}},47636:(h,O,s)=>{var d=s(76192);h.exports=!d(function(){return Object.isExtensible(Object.preventExtensions({}))})},86298:(h,O,s)=>{var d=s(22784),x=Function.prototype,w=x.apply,A=x.call;h.exports=typeof Reflect=="object"&&Reflect.apply||(d?A.bind(w):function(){return A.apply(w,arguments)})},8043:(h,O,s)=>{var d=s(84120),x=s(66235),w=s(22784),A=d(d.bind);h.exports=function(E,F){return x(E),F===void 0?E:w?A(E,F):function(){return E.apply(F,arguments)}}},22784:(h,O,s)=>{var d=s(76192);h.exports=!d(function(){var x=function(){}.bind();return typeof x!="function"||x.hasOwnProperty("prototype")})},18922:(h,O,s)=>{var d=s(22784),x=Function.prototype.call;h.exports=d?x.bind(x):function(){return x.apply(x,arguments)}},22282:(h,O,s)=>{var d=s(50069),x=s(64500),w=Function.prototype,A=d&&Object.getOwnPropertyDescriptor,E=x(w,"name"),F=E&&function(){}.name==="something",W=E&&(!d||d&&A(w,"name").configurable);h.exports={EXISTS:E,PROPER:F,CONFIGURABLE:W}},41258:(h,O,s)=>{var d=s(22784),x=Function.prototype,w=x.call,A=d&&x.bind.bind(w,w);h.exports=function(E){return d?A(E):function(){return w.apply(E,arguments)}}},84120:(h,O,s)=>{var d=s(29272),x=s(41258);h.exports=function(w){if(d(w)==="Function")return x(w)}},10150:(h,O,s)=>{var d=s(57545),x=s(98576),w=s(16447),A=function(E){return w(E)?E:void 0};h.exports=function(E,F){return arguments.length<2?A(d[E])||A(x[E]):d[E]&&d[E][F]||x[E]&&x[E][F]}},78703:(h,O,s)=>{var d=s(4696),x=s(75037),w=s(75646),A=s(47771),E=s(18182),F=E("iterator");h.exports=function(W){if(!w(W))return x(W,F)||x(W,"@@iterator")||A[d(W)]}},61669:(h,O,s)=>{var d=s(18922),x=s(66235),w=s(31138),A=s(79288),E=s(78703),F=TypeError;h.exports=function(W,Z){var ee=arguments.length<2?E(W):Z;if(x(ee))return w(d(ee,W));throw F(A(W)+" is not iterable")}},75037:(h,O,s)=>{var d=s(66235),x=s(75646);h.exports=function(w,A){var E=w[A];return x(E)?void 0:d(E)}},98576:(h,O,s)=>{var d=function(x){return x&&x.Math==Math&&x};h.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof s.g=="object"&&s.g)||function(){return this}()||Function("return this")()},64500:(h,O,s)=>{var d=s(84120),x=s(71795),w=d({}.hasOwnProperty);h.exports=Object.hasOwn||function(E,F){return w(x(E),F)}},14535:h=>{h.exports={}},63681:(h,O,s)=>{var d=s(98576);h.exports=function(x,w){var A=d.console;A&&A.error&&(arguments.length==1?A.error(x):A.error(x,w))}},47403:(h,O,s)=>{var d=s(10150);h.exports=d("document","documentElement")},80188:(h,O,s)=>{var d=s(50069),x=s(76192),w=s(67449);h.exports=!d&&!x(function(){return Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a!=7})},2202:(h,O,s)=>{var d=s(84120),x=s(76192),w=s(29272),A=Object,E=d("".split);h.exports=x(function(){return!A("z").propertyIsEnumerable(0)})?function(F){return w(F)=="String"?E(F,""):A(F)}:A},19516:(h,O,s)=>{var d=s(84120),x=s(16447),w=s(46434),A=d(Function.toString);x(w.inspectSource)||(w.inspectSource=function(E){return A(E)}),h.exports=w.inspectSource},10273:(h,O,s)=>{var d=s(35744),x=s(98711);h.exports=function(w,A){d(A)&&"cause"in A&&x(w,"cause",A.cause)}},32861:(h,O,s)=>{var d=s(93085),x=s(84120),w=s(14535),A=s(35744),E=s(64500),F=s(42760).f,W=s(92092),Z=s(24052),ee=s(4532),ue=s(42759),ne=s(47636),ae=!1,Y=ue("meta"),P=0,G=function(K){F(K,Y,{value:{objectID:"O"+P++,weakData:{}}})},N=function(K,U){if(!A(K))return typeof K=="symbol"?K:(typeof K=="string"?"S":"P")+K;if(!E(K,Y)){if(!ee(K))return"F";if(!U)return"E";G(K)}return K[Y].objectID},C=function(K,U){if(!E(K,Y)){if(!ee(K))return!0;if(!U)return!1;G(K)}return K[Y].weakData},k=function(K){return ne&&ae&&ee(K)&&!E(K,Y)&&G(K),K},j=function(){J.enable=function(){},ae=!0;var K=W.f,U=x([].splice),re={};re[Y]=1,K(re).length&&(W.f=function(X){for(var z=K(X),ce=0,he=z.length;ce<he;ce++)if(z[ce]===Y){U(z,ce,1);break}return z},d({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Z.f}))},J=h.exports={enable:j,fastKey:N,getWeakData:C,onFreeze:k};w[Y]=!0},73326:(h,O,s)=>{var d=s(55278),x=s(98576),w=s(35744),A=s(98711),E=s(64500),F=s(46434),W=s(69766),Z=s(14535),ee="Object already initialized",ue=x.TypeError,ne=x.WeakMap,ae,Y,P,G=function(j){return P(j)?Y(j):ae(j,{})},N=function(j){return function(J){var K;if(!w(J)||(K=Y(J)).type!==j)throw ue("Incompatible receiver, "+j+" required");return K}};if(d||F.state){var C=F.state||(F.state=new ne);C.get=C.get,C.has=C.has,C.set=C.set,ae=function(j,J){if(C.has(j))throw ue(ee);return J.facade=j,C.set(j,J),J},Y=function(j){return C.get(j)||{}},P=function(j){return C.has(j)}}else{var k=W("state");Z[k]=!0,ae=function(j,J){if(E(j,k))throw ue(ee);return J.facade=j,A(j,k,J),J},Y=function(j){return E(j,k)?j[k]:{}},P=function(j){return E(j,k)}}h.exports={set:ae,get:Y,has:P,enforce:G,getterFor:N}},96109:(h,O,s)=>{var d=s(18182),x=s(47771),w=d("iterator"),A=Array.prototype;h.exports=function(E){return E!==void 0&&(x.Array===E||A[w]===E)}},34770:(h,O,s)=>{var d=s(29272);h.exports=Array.isArray||function(w){return d(w)=="Array"}},16447:(h,O,s)=>{var d=s(58382),x=d.all;h.exports=d.IS_HTMLDDA?function(w){return typeof w=="function"||w===x}:function(w){return typeof w=="function"}},22091:(h,O,s)=>{var d=s(84120),x=s(76192),w=s(16447),A=s(4696),E=s(10150),F=s(19516),W=function(){},Z=[],ee=E("Reflect","construct"),ue=/^\s*(?:class|function)\b/,ne=d(ue.exec),ae=!ue.exec(W),Y=function(N){if(!w(N))return!1;try{return ee(W,Z,N),!0}catch(C){return!1}},P=function(N){if(!w(N))return!1;switch(A(N)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ae||!!ne(ue,F(N))}catch(C){return!0}};P.sham=!0,h.exports=!ee||x(function(){var G;return Y(Y.call)||!Y(Object)||!Y(function(){G=!0})||G})?P:Y},89245:(h,O,s)=>{var d=s(76192),x=s(16447),w=/#|\.prototype\./,A=function(ee,ue){var ne=F[E(ee)];return ne==Z?!0:ne==W?!1:x(ue)?d(ue):!!ue},E=A.normalize=function(ee){return String(ee).replace(w,".").toLowerCase()},F=A.data={},W=A.NATIVE="N",Z=A.POLYFILL="P";h.exports=A},75646:h=>{h.exports=function(O){return O==null}},35744:(h,O,s)=>{var d=s(16447),x=s(58382),w=x.all;h.exports=x.IS_HTMLDDA?function(A){return typeof A=="object"?A!==null:d(A)||A===w}:function(A){return typeof A=="object"?A!==null:d(A)}},85546:h=>{h.exports=!0},94352:(h,O,s)=>{var d=s(35744),x=s(29272),w=s(18182),A=w("match");h.exports=function(E){var F;return d(E)&&((F=E[A])!==void 0?!!F:x(E)=="RegExp")}},23236:(h,O,s)=>{var d=s(10150),x=s(16447),w=s(8902),A=s(50615),E=Object;h.exports=A?function(F){return typeof F=="symbol"}:function(F){var W=d("Symbol");return x(W)&&w(W.prototype,E(F))}},33442:(h,O,s)=>{var d=s(8043),x=s(18922),w=s(31138),A=s(79288),E=s(96109),F=s(84104),W=s(8902),Z=s(61669),ee=s(78703),ue=s(66639),ne=TypeError,ae=function(P,G){this.stopped=P,this.result=G},Y=ae.prototype;h.exports=function(P,G,N){var C=N&&N.that,k=!!(N&&N.AS_ENTRIES),j=!!(N&&N.IS_RECORD),J=!!(N&&N.IS_ITERATOR),K=!!(N&&N.INTERRUPTED),U=d(G,C),re,X,z,ce,he,_,Q,H=function(ke){return re&&ue(re,"normal",ke),new ae(!0,ke)},ye=function(ke){return k?(w(ke),K?U(ke[0],ke[1],H):U(ke[0],ke[1])):K?U(ke,H):U(ke)};if(j)re=P.iterator;else if(J)re=P;else{if(X=ee(P),!X)throw ne(A(P)+" is not iterable");if(E(X)){for(z=0,ce=F(P);ce>z;z++)if(he=ye(P[z]),he&&W(Y,he))return he;return new ae(!1)}re=Z(P,X)}for(_=j?P.next:re.next;!(Q=x(_,re)).done;){try{he=ye(Q.value)}catch(ke){ue(re,"throw",ke)}if(typeof he=="object"&&he&&W(Y,he))return he}return new ae(!1)}},66639:(h,O,s)=>{var d=s(18922),x=s(31138),w=s(75037);h.exports=function(A,E,F){var W,Z;x(A);try{if(W=w(A,"return"),!W){if(E==="throw")throw F;return F}W=d(W,A)}catch(ee){Z=!0,W=ee}if(E==="throw")throw F;if(Z)throw W;return x(W),F}},25695:(h,O,s)=>{"use strict";var d=s(54413).IteratorPrototype,x=s(52853),w=s(90774),A=s(11284),E=s(47771),F=function(){return this};h.exports=function(W,Z,ee,ue){var ne=Z+" Iterator";return W.prototype=x(d,{next:w(+!ue,ee)}),A(W,ne,!1,!0),E[ne]=F,W}},65297:(h,O,s)=>{"use strict";var d=s(93085),x=s(18922),w=s(85546),A=s(22282),E=s(16447),F=s(25695),W=s(89341),Z=s(24469),ee=s(11284),ue=s(98711),ne=s(59362),ae=s(18182),Y=s(47771),P=s(54413),G=A.PROPER,N=A.CONFIGURABLE,C=P.IteratorPrototype,k=P.BUGGY_SAFARI_ITERATORS,j=ae("iterator"),J="keys",K="values",U="entries",re=function(){return this};h.exports=function(X,z,ce,he,_,Q,H){F(ce,z,he);var ye=function(Pe){if(Pe===_&&tt)return tt;if(!k&&Pe in De)return De[Pe];switch(Pe){case J:return function(){return new ce(this,Pe)};case K:return function(){return new ce(this,Pe)};case U:return function(){return new ce(this,Pe)}}return function(){return new ce(this)}},ke=z+" Iterator",je=!1,De=X.prototype,nt=De[j]||De["@@iterator"]||_&&De[_],tt=!k&&nt||ye(_),bt=z=="Array"&&De.entries||nt,Ne,Oe,He;if(bt&&(Ne=W(bt.call(new X)),Ne!==Object.prototype&&Ne.next&&(!w&&W(Ne)!==C&&(Z?Z(Ne,C):E(Ne[j])||ne(Ne,j,re)),ee(Ne,ke,!0,!0),w&&(Y[ke]=re))),G&&_==K&&nt&&nt.name!==K&&(!w&&N?ue(De,"name",K):(je=!0,tt=function(){return x(nt,this)})),_)if(Oe={values:ye(K),keys:Q?tt:ye(J),entries:ye(U)},H)for(He in Oe)(k||je||!(He in De))&&ne(De,He,Oe[He]);else d({target:z,proto:!0,forced:k||je},Oe);return(!w||H)&&De[j]!==tt&&ne(De,j,tt,{name:_}),Y[z]=tt,Oe}},54413:(h,O,s)=>{"use strict";var d=s(76192),x=s(16447),w=s(35744),A=s(52853),E=s(89341),F=s(59362),W=s(18182),Z=s(85546),ee=W("iterator"),ue=!1,ne,ae,Y;[].keys&&(Y=[].keys(),"next"in Y?(ae=E(E(Y)),ae!==Object.prototype&&(ne=ae)):ue=!0);var P=!w(ne)||d(function(){var G={};return ne[ee].call(G)!==G});P?ne={}:Z&&(ne=A(ne)),x(ne[ee])||F(ne,ee,function(){return this}),h.exports={IteratorPrototype:ne,BUGGY_SAFARI_ITERATORS:ue}},47771:h=>{h.exports={}},84104:(h,O,s)=>{var d=s(8445);h.exports=function(x){return d(x.length)}},77679:h=>{var O=Math.ceil,s=Math.floor;h.exports=Math.trunc||function(x){var w=+x;return(w>0?s:O)(w)}},12950:(h,O,s)=>{var d=s(98576),x=s(8043),w=s(5141).f,A=s(67160).set,E=s(69536),F=s(29347),W=s(5914),Z=s(58189),ee=d.MutationObserver||d.WebKitMutationObserver,ue=d.document,ne=d.process,ae=d.Promise,Y=w(d,"queueMicrotask"),P=Y&&Y.value,G,N,C,k,j,J,K,U;P||(G=function(){var re,X;for(Z&&(re=ne.domain)&&re.exit();N;){X=N.fn,N=N.next;try{X()}catch(z){throw N?k():C=void 0,z}}C=void 0,re&&re.enter()},!E&&!Z&&!W&&ee&&ue?(j=!0,J=ue.createTextNode(""),new ee(G).observe(J,{characterData:!0}),k=function(){J.data=j=!j}):!F&&ae&&ae.resolve?(K=ae.resolve(void 0),K.constructor=ae,U=x(K.then,K),k=function(){U(G)}):Z?k=function(){ne.nextTick(G)}:(A=x(A,d),k=function(){A(G)})),h.exports=P||function(re){var X={fn:re,next:void 0};C&&(C.next=X),N||(N=X,k()),C=X}},99438:(h,O,s)=>{"use strict";var d=s(66235),x=TypeError,w=function(A){var E,F;this.promise=new A(function(W,Z){if(E!==void 0||F!==void 0)throw x("Bad Promise constructor");E=W,F=Z}),this.resolve=d(E),this.reject=d(F)};h.exports.f=function(A){return new w(A)}},36016:(h,O,s)=>{var d=s(44845);h.exports=function(x,w){return x===void 0?arguments.length<2?"":w:d(x)}},9703:(h,O,s)=>{var d=s(94352),x=TypeError;h.exports=function(w){if(d(w))throw x("The method doesn't accept regular expressions");return w}},52503:(h,O,s)=>{"use strict";var d=s(50069),x=s(84120),w=s(18922),A=s(76192),E=s(57653),F=s(84750),W=s(56007),Z=s(71795),ee=s(2202),ue=Object.assign,ne=Object.defineProperty,ae=x([].concat);h.exports=!ue||A(function(){if(d&&ue({b:1},ue(ne({},"a",{enumerable:!0,get:function(){ne(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Y={},P={},G=Symbol(),N="abcdefghijklmnopqrst";return Y[G]=7,N.split("").forEach(function(C){P[C]=C}),ue({},Y)[G]!=7||E(ue({},P)).join("")!=N})?function(P,G){for(var N=Z(P),C=arguments.length,k=1,j=F.f,J=W.f;C>k;)for(var K=ee(arguments[k++]),U=j?ae(E(K),j(K)):E(K),re=U.length,X=0,z;re>X;)z=U[X++],(!d||w(J,K,z))&&(N[z]=K[z]);return N}:ue},52853:(h,O,s)=>{var d=s(31138),x=s(11187),w=s(82952),A=s(14535),E=s(47403),F=s(67449),W=s(69766),Z=">",ee="<",ue="prototype",ne="script",ae=W("IE_PROTO"),Y=function(){},P=function(j){return ee+ne+Z+j+ee+"/"+ne+Z},G=function(j){j.write(P("")),j.close();var J=j.parentWindow.Object;return j=null,J},N=function(){var j=F("iframe"),J="java"+ne+":",K;return j.style.display="none",E.appendChild(j),j.src=String(J),K=j.contentWindow.document,K.open(),K.write(P("document.F=Object")),K.close(),K.F},C,k=function(){try{C=new ActiveXObject("htmlfile")}catch(J){}k=typeof document!="undefined"?document.domain&&C?G(C):N():G(C);for(var j=w.length;j--;)delete k[ue][w[j]];return k()};A[ae]=!0,h.exports=Object.create||function(J,K){var U;return J!==null?(Y[ue]=d(J),U=new Y,Y[ue]=null,U[ae]=J):U=k(),K===void 0?U:x.f(U,K)}},11187:(h,O,s)=>{var d=s(50069),x=s(69600),w=s(42760),A=s(31138),E=s(20101),F=s(57653);O.f=d&&!x?Object.defineProperties:function(Z,ee){A(Z);for(var ue=E(ee),ne=F(ee),ae=ne.length,Y=0,P;ae>Y;)w.f(Z,P=ne[Y++],ue[P]);return Z}},42760:(h,O,s)=>{var d=s(50069),x=s(80188),w=s(69600),A=s(31138),E=s(40077),F=TypeError,W=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,ee="enumerable",ue="configurable",ne="writable";O.f=d?w?function(Y,P,G){if(A(Y),P=E(P),A(G),typeof Y=="function"&&P==="prototype"&&"value"in G&&ne in G&&!G[ne]){var N=Z(Y,P);N&&N[ne]&&(Y[P]=G.value,G={configurable:ue in G?G[ue]:N[ue],enumerable:ee in G?G[ee]:N[ee],writable:!1})}return W(Y,P,G)}:W:function(Y,P,G){if(A(Y),P=E(P),A(G),x)try{return W(Y,P,G)}catch(N){}if("get"in G||"set"in G)throw F("Accessors not supported");return"value"in G&&(Y[P]=G.value),Y}},5141:(h,O,s)=>{var d=s(50069),x=s(18922),w=s(56007),A=s(90774),E=s(20101),F=s(40077),W=s(64500),Z=s(80188),ee=Object.getOwnPropertyDescriptor;O.f=d?ee:function(ne,ae){if(ne=E(ne),ae=F(ae),Z)try{return ee(ne,ae)}catch(Y){}if(W(ne,ae))return A(!x(w.f,ne,ae),ne[ae])}},24052:(h,O,s)=>{var d=s(29272),x=s(20101),w=s(92092).f,A=s(1923),E=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],F=function(W){try{return w(W)}catch(Z){return A(E)}};h.exports.f=function(Z){return E&&d(Z)=="Window"?F(Z):w(x(Z))}},92092:(h,O,s)=>{var d=s(57934),x=s(82952),w=x.concat("length","prototype");O.f=Object.getOwnPropertyNames||function(E){return d(E,w)}},84750:(h,O)=>{O.f=Object.getOwnPropertySymbols},89341:(h,O,s)=>{var d=s(64500),x=s(16447),w=s(71795),A=s(69766),E=s(4635),F=A("IE_PROTO"),W=Object,Z=W.prototype;h.exports=E?W.getPrototypeOf:function(ee){var ue=w(ee);if(d(ue,F))return ue[F];var ne=ue.constructor;return x(ne)&&ue instanceof ne?ne.prototype:ue instanceof W?Z:null}},4532:(h,O,s)=>{var d=s(76192),x=s(35744),w=s(29272),A=s(80410),E=Object.isExtensible,F=d(function(){E(1)});h.exports=F||A?function(Z){return!x(Z)||A&&w(Z)=="ArrayBuffer"?!1:E?E(Z):!0}:E},8902:(h,O,s)=>{var d=s(84120);h.exports=d({}.isPrototypeOf)},57934:(h,O,s)=>{var d=s(84120),x=s(64500),w=s(20101),A=s(48180).indexOf,E=s(14535),F=d([].push);h.exports=function(W,Z){var ee=w(W),ue=0,ne=[],ae;for(ae in ee)!x(E,ae)&&x(ee,ae)&&F(ne,ae);for(;Z.length>ue;)x(ee,ae=Z[ue++])&&(~A(ne,ae)||F(ne,ae));return ne}},57653:(h,O,s)=>{var d=s(57934),x=s(82952);h.exports=Object.keys||function(A){return d(A,x)}},56007:(h,O)=>{"use strict";var s={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,x=d&&!s.call({1:2},1);O.f=x?function(A){var E=d(this,A);return!!E&&E.enumerable}:s},24469:(h,O,s)=>{var d=s(84120),x=s(31138),w=s(7757);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A=!1,E={},F;try{F=d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),F(E,[]),A=E instanceof Array}catch(W){}return function(Z,ee){return x(Z),w(ee),A?F(Z,ee):Z.__proto__=ee,Z}}():void 0)},75370:(h,O,s)=>{var d=s(50069),x=s(84120),w=s(57653),A=s(20101),E=s(56007).f,F=x(E),W=x([].push),Z=function(ee){return function(ue){for(var ne=A(ue),ae=w(ne),Y=ae.length,P=0,G=[],N;Y>P;)N=ae[P++],(!d||F(ne,N))&&W(G,ee?[N,ne[N]]:ne[N]);return G}};h.exports={entries:Z(!0),values:Z(!1)}},40158:(h,O,s)=>{"use strict";var d=s(83471),x=s(4696);h.exports=d?{}.toString:function(){return"[object "+x(this)+"]"}},380:(h,O,s)=>{var d=s(18922),x=s(16447),w=s(35744),A=TypeError;h.exports=function(E,F){var W,Z;if(F==="string"&&x(W=E.toString)&&!w(Z=d(W,E))||x(W=E.valueOf)&&!w(Z=d(W,E))||F!=="string"&&x(W=E.toString)&&!w(Z=d(W,E)))return Z;throw A("Can't convert object to primitive value")}},93011:(h,O,s)=>{var d=s(10150),x=s(84120),w=s(92092),A=s(84750),E=s(31138),F=x([].concat);h.exports=d("Reflect","ownKeys")||function(Z){var ee=w.f(E(Z)),ue=A.f;return ue?F(ee,ue(Z)):ee}},57545:h=>{h.exports={}},70892:h=>{h.exports=function(O){try{return{error:!1,value:O()}}catch(s){return{error:!0,value:s}}}},30511:(h,O,s)=>{var d=s(98576),x=s(15813),w=s(16447),A=s(89245),E=s(19516),F=s(18182),W=s(82957),Z=s(60659),ee=s(85546),ue=s(14218),ne=x&&x.prototype,ae=F("species"),Y=!1,P=w(d.PromiseRejectionEvent),G=A("Promise",function(){var N=E(x),C=N!==String(x);if(!C&&ue===66||ee&&!(ne.catch&&ne.finally))return!0;if(!ue||ue<51||!/native code/.test(N)){var k=new x(function(K){K(1)}),j=function(K){K(function(){},function(){})},J=k.constructor={};if(J[ae]=j,Y=k.then(function(){})instanceof j,!Y)return!0}return!C&&(W||Z)&&!P});h.exports={CONSTRUCTOR:G,REJECTION_EVENT:P,SUBCLASSING:Y}},15813:(h,O,s)=>{var d=s(98576);h.exports=d.Promise},19126:(h,O,s)=>{var d=s(31138),x=s(35744),w=s(99438);h.exports=function(A,E){if(d(A),x(E)&&E.constructor===A)return E;var F=w.f(A),W=F.resolve;return W(E),F.promise}},52775:(h,O,s)=>{var d=s(15813),x=s(19770),w=s(30511).CONSTRUCTOR;h.exports=w||!x(function(A){d.all(A).then(void 0,function(){})})},6412:h=>{var O=function(){this.head=null,this.tail=null};O.prototype={add:function(s){var d={item:s,next:null};this.head?this.tail.next=d:this.head=d,this.tail=d},get:function(){var s=this.head;if(s)return this.head=s.next,this.tail===s&&(this.tail=null),s.item}},h.exports=O},13209:(h,O,s)=>{var d=s(75646),x=TypeError;h.exports=function(w){if(d(w))throw x("Can't call method on "+w);return w}},63656:(h,O,s)=>{"use strict";var d=s(10150),x=s(42760),w=s(18182),A=s(50069),E=w("species");h.exports=function(F){var W=d(F),Z=x.f;A&&W&&!W[E]&&Z(W,E,{configurable:!0,get:function(){return this}})}},11284:(h,O,s)=>{var d=s(83471),x=s(42760).f,w=s(98711),A=s(64500),E=s(40158),F=s(18182),W=F("toStringTag");h.exports=function(Z,ee,ue,ne){if(Z){var ae=ue?Z:Z.prototype;A(ae,W)||x(ae,W,{configurable:!0,value:ee}),ne&&!d&&w(ae,"toString",E)}}},69766:(h,O,s)=>{var d=s(98717),x=s(42759),w=d("keys");h.exports=function(A){return w[A]||(w[A]=x(A))}},46434:(h,O,s)=>{var d=s(98576),x=s(65098),w="__core-js_shared__",A=d[w]||x(w,{});h.exports=A},98717:(h,O,s)=>{var d=s(85546),x=s(46434);(h.exports=function(w,A){return x[w]||(x[w]=A!==void 0?A:{})})("versions",[]).push({version:"3.25.5",mode:d?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"})},84743:(h,O,s)=>{var d=s(31138),x=s(71404),w=s(75646),A=s(18182),E=A("species");h.exports=function(F,W){var Z=d(F).constructor,ee;return Z===void 0||w(ee=d(Z)[E])?W:x(ee)}},863:(h,O,s)=>{var d=s(84120),x=s(41941),w=s(44845),A=s(13209),E=d("".charAt),F=d("".charCodeAt),W=d("".slice),Z=function(ee){return function(ue,ne){var ae=w(A(ue)),Y=x(ne),P=ae.length,G,N;return Y<0||Y>=P?ee?"":void 0:(G=F(ae,Y),G<55296||G>56319||Y+1===P||(N=F(ae,Y+1))<56320||N>57343?ee?E(ae,Y):G:ee?W(ae,Y,Y+2):(G-55296<<10)+(N-56320)+65536)}};h.exports={codeAt:Z(!1),charAt:Z(!0)}},36770:(h,O,s)=>{var d=s(14218),x=s(76192);h.exports=!!Object.getOwnPropertySymbols&&!x(function(){var w=Symbol();return!String(w)||!(Object(w)instanceof Symbol)||!Symbol.sham&&d&&d<41})},93407:(h,O,s)=>{var d=s(18922),x=s(10150),w=s(18182),A=s(59362);h.exports=function(){var E=x("Symbol"),F=E&&E.prototype,W=F&&F.valueOf,Z=w("toPrimitive");F&&!F[Z]&&A(F,Z,function(ee){return d(W,this)},{arity:1})}},20031:(h,O,s)=>{var d=s(36770);h.exports=d&&!!Symbol.for&&!!Symbol.keyFor},67160:(h,O,s)=>{var d=s(98576),x=s(86298),w=s(8043),A=s(16447),E=s(64500),F=s(76192),W=s(47403),Z=s(93096),ee=s(67449),ue=s(67822),ne=s(69536),ae=s(58189),Y=d.setImmediate,P=d.clearImmediate,G=d.process,N=d.Dispatch,C=d.Function,k=d.MessageChannel,j=d.String,J=0,K={},U="onreadystatechange",re,X,z,ce;try{re=d.location}catch(ye){}var he=function(ye){if(E(K,ye)){var ke=K[ye];delete K[ye],ke()}},_=function(ye){return function(){he(ye)}},Q=function(ye){he(ye.data)},H=function(ye){d.postMessage(j(ye),re.protocol+"//"+re.host)};(!Y||!P)&&(Y=function(ke){ue(arguments.length,1);var je=A(ke)?ke:C(ke),De=Z(arguments,1);return K[++J]=function(){x(je,void 0,De)},X(J),J},P=function(ke){delete K[ke]},ae?X=function(ye){G.nextTick(_(ye))}:N&&N.now?X=function(ye){N.now(_(ye))}:k&&!ne?(z=new k,ce=z.port2,z.port1.onmessage=Q,X=w(ce.postMessage,ce)):d.addEventListener&&A(d.postMessage)&&!d.importScripts&&re&&re.protocol!=="file:"&&!F(H)?(X=H,d.addEventListener("message",Q,!1)):U in ee("script")?X=function(ye){W.appendChild(ee("script"))[U]=function(){W.removeChild(this),he(ye)}}:X=function(ye){setTimeout(_(ye),0)}),h.exports={set:Y,clear:P}},97739:(h,O,s)=>{var d=s(41941),x=Math.max,w=Math.min;h.exports=function(A,E){var F=d(A);return F<0?x(F+E,0):w(F,E)}},20101:(h,O,s)=>{var d=s(2202),x=s(13209);h.exports=function(w){return d(x(w))}},41941:(h,O,s)=>{var d=s(77679);h.exports=function(x){var w=+x;return w!==w||w===0?0:d(w)}},8445:(h,O,s)=>{var d=s(41941),x=Math.min;h.exports=function(w){return w>0?x(d(w),9007199254740991):0}},71795:(h,O,s)=>{var d=s(13209),x=Object;h.exports=function(w){return x(d(w))}},97888:(h,O,s)=>{var d=s(18922),x=s(35744),w=s(23236),A=s(75037),E=s(380),F=s(18182),W=TypeError,Z=F("toPrimitive");h.exports=function(ee,ue){if(!x(ee)||w(ee))return ee;var ne=A(ee,Z),ae;if(ne){if(ue===void 0&&(ue="default"),ae=d(ne,ee,ue),!x(ae)||w(ae))return ae;throw W("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),E(ee,ue)}},40077:(h,O,s)=>{var d=s(97888),x=s(23236);h.exports=function(w){var A=d(w,"string");return x(A)?A:A+""}},83471:(h,O,s)=>{var d=s(18182),x=d("toStringTag"),w={};w[x]="z",h.exports=String(w)==="[object z]"},44845:(h,O,s)=>{var d=s(4696),x=String;h.exports=function(w){if(d(w)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return x(w)}},79288:h=>{var O=String;h.exports=function(s){try{return O(s)}catch(d){return"Object"}}},42759:(h,O,s)=>{var d=s(84120),x=0,w=Math.random(),A=d(1 .toString);h.exports=function(E){return"Symbol("+(E===void 0?"":E)+")_"+A(++x+w,36)}},58552:(h,O,s)=>{var d=s(76192),x=s(18182),w=s(85546),A=x("iterator");h.exports=!d(function(){var E=new URL("b?a=1&b=2&c=3","http://a"),F=E.searchParams,W="";return E.pathname="c%20d",F.forEach(function(Z,ee){F.delete("b"),W+=ee+Z}),w&&!E.toJSON||!F.sort||E.href!=="http://a/c%20d?a=1&c=3"||F.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!F[A]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||W!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50615:(h,O,s)=>{var d=s(36770);h.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},69600:(h,O,s)=>{var d=s(50069),x=s(76192);h.exports=d&&x(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},67822:h=>{var O=TypeError;h.exports=function(s,d){if(s<d)throw O("Not enough arguments");return s}},55278:(h,O,s)=>{var d=s(98576),x=s(16447),w=d.WeakMap;h.exports=x(w)&&/native code/.test(String(w))},48332:(h,O,s)=>{var d=s(57545),x=s(64500),w=s(89207),A=s(42760).f;h.exports=function(E){var F=d.Symbol||(d.Symbol={});x(F,E)||A(F,E,{value:w.f(E)})}},89207:(h,O,s)=>{var d=s(18182);O.f=d},18182:(h,O,s)=>{var d=s(98576),x=s(98717),w=s(64500),A=s(42759),E=s(36770),F=s(50615),W=x("wks"),Z=d.Symbol,ee=Z&&Z.for,ue=F?Z:Z&&Z.withoutSetter||A;h.exports=function(ne){if(!w(W,ne)||!(E||typeof W[ne]=="string")){var ae="Symbol."+ne;E&&w(Z,ne)?W[ne]=Z[ne]:F&&ee?W[ne]=ee(ae):W[ne]=ue(ae)}return W[ne]}},93820:(h,O,s)=>{"use strict";var d=s(93085),x=s(8902),w=s(89341),A=s(24469),E=s(97987),F=s(52853),W=s(98711),Z=s(90774),ee=s(14503),ue=s(10273),ne=s(33442),ae=s(36016),Y=s(18182),P=s(50274),G=Y("toStringTag"),N=Error,C=[].push,k=function(K,U){var re=arguments.length>2?arguments[2]:void 0,X=x(j,this),z;A?z=A(N(),X?w(this):j):(z=X?this:F(j),W(z,G,"Error")),U!==void 0&&W(z,"message",ae(U)),P&&W(z,"stack",ee(z.stack,1)),ue(z,re);var ce=[];return ne(K,C,{that:ce}),W(z,"errors",ce),z};A?A(k,N):E(k,N,{name:!0});var j=k.prototype=F(N.prototype,{constructor:Z(1,k),message:Z(1,""),name:Z(1,"AggregateError")});d({global:!0,constructor:!0,arity:2},{AggregateError:k})},4242:(h,O,s)=>{s(93820)},59106:(h,O,s)=>{"use strict";var d=s(93085),x=s(76192),w=s(34770),A=s(35744),E=s(71795),F=s(84104),W=s(29425),Z=s(49361),ee=s(71321),ue=s(90242),ne=s(18182),ae=s(14218),Y=ne("isConcatSpreadable"),P=ae>=51||!x(function(){var k=[];return k[Y]=!1,k.concat()[0]!==k}),G=ue("concat"),N=function(k){if(!A(k))return!1;var j=k[Y];return j!==void 0?!!j:w(k)},C=!P||!G;d({target:"Array",proto:!0,arity:1,forced:C},{concat:function(j){var J=E(this),K=ee(J,0),U=0,re,X,z,ce,he;for(re=-1,z=arguments.length;re<z;re++)if(he=re===-1?J:arguments[re],N(he))for(ce=F(he),W(U+ce),X=0;X<ce;X++,U++)X in he&&Z(K,U,he[X]);else W(U+1),Z(K,U++,he);return K.length=U,K}})},73436:(h,O,s)=>{"use strict";var d=s(93085),x=s(50454).filter,w=s(90242),A=w("filter");d({target:"Array",proto:!0,forced:!A},{filter:function(F){return x(this,F,arguments.length>1?arguments[1]:void 0)}})},10880:(h,O,s)=>{"use strict";var d=s(93085),x=s(50454).find,w=s(67423),A="find",E=!0;A in[]&&Array(1)[A](function(){E=!1}),d({target:"Array",proto:!0,forced:E},{find:function(W){return x(this,W,arguments.length>1?arguments[1]:void 0)}}),w(A)},9823:(h,O,s)=>{"use strict";var d=s(93085),x=s(87397);d({target:"Array",proto:!0,forced:[].forEach!=x},{forEach:x})},19173:(h,O,s)=>{var d=s(93085),x=s(20841),w=s(19770),A=!w(function(E){Array.from(E)});d({target:"Array",stat:!0,forced:A},{from:x})},70024:(h,O,s)=>{"use strict";var d=s(93085),x=s(48180).includes,w=s(76192),A=s(67423),E=w(function(){return!Array(1).includes()});d({target:"Array",proto:!0,forced:E},{includes:function(W){return x(this,W,arguments.length>1?arguments[1]:void 0)}}),A("includes")},62276:(h,O,s)=>{"use strict";var d=s(93085),x=s(84120),w=s(48180).indexOf,A=s(10424),E=x([].indexOf),F=!!E&&1/E([1],1,-0)<0,W=A("indexOf");d({target:"Array",proto:!0,forced:F||!W},{indexOf:function(ee){var ue=arguments.length>1?arguments[1]:void 0;return F?E(this,ee,ue)||0:w(this,ee,ue)}})},8118:(h,O,s)=>{var d=s(93085),x=s(34770);d({target:"Array",stat:!0},{isArray:x})},98939:(h,O,s)=>{"use strict";var d=s(20101),x=s(67423),w=s(47771),A=s(73326),E=s(42760).f,F=s(65297),W=s(87271),Z=s(85546),ee=s(50069),ue="Array Iterator",ne=A.set,ae=A.getterFor(ue);h.exports=F(Array,"Array",function(P,G){ne(this,{type:ue,target:d(P),index:0,kind:G})},function(){var P=ae(this),G=P.target,N=P.kind,C=P.index++;return!G||C>=G.length?(P.target=void 0,W(void 0,!0)):N=="keys"?W(C,!1):N=="values"?W(G[C],!1):W([C,G[C]],!1)},"values");var Y=w.Arguments=w.Array;if(x("keys"),x("values"),x("entries"),!Z&&ee&&Y.name!=="values")try{E(Y,"name",{value:"values"})}catch(P){}},63838:(h,O,s)=>{"use strict";var d=s(93085),x=s(50454).map,w=s(90242),A=w("map");d({target:"Array",proto:!0,forced:!A},{map:function(F){return x(this,F,arguments.length>1?arguments[1]:void 0)}})},99523:(h,O,s)=>{"use strict";var d=s(93085),x=s(84120),w=s(34770),A=x([].reverse),E=[1,2];d({target:"Array",proto:!0,forced:String(E)===String(E.reverse())},{reverse:function(){return w(this)&&(this.length=this.length),A(this)}})},65818:(h,O,s)=>{"use strict";var d=s(93085),x=s(34770),w=s(22091),A=s(35744),E=s(97739),F=s(84104),W=s(20101),Z=s(49361),ee=s(18182),ue=s(90242),ne=s(93096),ae=ue("slice"),Y=ee("species"),P=Array,G=Math.max;d({target:"Array",proto:!0,forced:!ae},{slice:function(C,k){var j=W(this),J=F(j),K=E(C,J),U=E(k===void 0?J:k,J),re,X,z;if(x(j)&&(re=j.constructor,w(re)&&(re===P||x(re.prototype))?re=void 0:A(re)&&(re=re[Y],re===null&&(re=void 0)),re===P||re===void 0))return ne(j,K,U);for(X=new(re===void 0?P:re)(G(U-K,0)),z=0;K<U;K++,z++)K in j&&Z(X,z,j[K]);return X.length=z,X}})},12178:(h,O,s)=>{"use strict";var d=s(93085),x=s(71795),w=s(97739),A=s(41941),E=s(84104),F=s(95072),W=s(29425),Z=s(71321),ee=s(49361),ue=s(29970),ne=s(90242),ae=ne("splice"),Y=Math.max,P=Math.min;d({target:"Array",proto:!0,forced:!ae},{splice:function(N,C){var k=x(this),j=E(k),J=w(N,j),K=arguments.length,U,re,X,z,ce,he;for(K===0?U=re=0:K===1?(U=0,re=j-J):(U=K-2,re=P(Y(A(C),0),j-J)),W(j+U-re),X=Z(k,re),z=0;z<re;z++)ce=J+z,ce in k&&ee(X,z,k[ce]);if(X.length=re,U<re){for(z=J;z<j-re;z++)ce=z+re,he=z+U,ce in k?k[he]=k[ce]:ue(k,he);for(z=j;z>j-re+U;z--)ue(k,z-1)}else if(U>re)for(z=j-re;z>J;z--)ce=z+re-1,he=z+U-1,ce in k?k[he]=k[ce]:ue(k,he);for(z=0;z<U;z++)k[z+J]=arguments[z+2];return F(k,j-re+U),X}})},25067:(h,O,s)=>{var d=s(93085),x=s(98576);d({global:!0,forced:x.globalThis!==x},{globalThis:x})},59704:(h,O,s)=>{var d=s(93085),x=s(10150),w=s(86298),A=s(18922),E=s(84120),F=s(76192),W=s(34770),Z=s(16447),ee=s(35744),ue=s(23236),ne=s(93096),ae=s(36770),Y=x("JSON","stringify"),P=E(/./.exec),G=E("".charAt),N=E("".charCodeAt),C=E("".replace),k=E(1 .toString),j=/[\uD800-\uDFFF]/g,J=/^[\uD800-\uDBFF]$/,K=/^[\uDC00-\uDFFF]$/,U=!ae||F(function(){var ce=x("Symbol")();return Y([ce])!="[null]"||Y({a:ce})!="{}"||Y(Object(ce))!="{}"}),re=F(function(){return Y("\uDF06\uD834")!=='"\\udf06\\ud834"'||Y("\uDEAD")!=='"\\udead"'}),X=function(ce,he){var _=ne(arguments),Q=he;if(!(!ee(he)&&ce===void 0||ue(ce)))return W(he)||(he=function(H,ye){if(Z(Q)&&(ye=A(Q,this,H,ye)),!ue(ye))return ye}),_[1]=he,w(Y,null,_)},z=function(ce,he,_){var Q=G(_,he-1),H=G(_,he+1);return P(J,ce)&&!P(K,H)||P(K,ce)&&!P(J,Q)?"\\u"+k(N(ce,0),16):ce};Y&&d({target:"JSON",stat:!0,arity:3,forced:U||re},{stringify:function(he,_,Q){var H=ne(arguments),ye=w(U?X:Y,null,H);return re&&typeof ye=="string"?C(ye,j,z):ye}})},68671:(h,O,s)=>{var d=s(98576),x=s(11284);x(d.JSON,"JSON",!0)},58556:()=>{},93582:(h,O,s)=>{var d=s(93085),x=s(52503);d({target:"Object",stat:!0,arity:2,forced:Object.assign!==x},{assign:x})},73113:(h,O,s)=>{var d=s(93085),x=s(50069),w=s(52853);d({target:"Object",stat:!0,sham:!x},{create:w})},57585:(h,O,s)=>{var d=s(93085),x=s(50069),w=s(11187).f;d({target:"Object",stat:!0,forced:Object.defineProperties!==w,sham:!x},{defineProperties:w})},20297:(h,O,s)=>{var d=s(93085),x=s(50069),w=s(42760).f;d({target:"Object",stat:!0,forced:Object.defineProperty!==w,sham:!x},{defineProperty:w})},27442:(h,O,s)=>{var d=s(93085),x=s(75370).entries;d({target:"Object",stat:!0},{entries:function(A){return x(A)}})},89189:(h,O,s)=>{var d=s(93085),x=s(76192),w=s(20101),A=s(5141).f,E=s(50069),F=x(function(){A(1)}),W=!E||F;d({target:"Object",stat:!0,forced:W,sham:!E},{getOwnPropertyDescriptor:function(ee,ue){return A(w(ee),ue)}})},62509:(h,O,s)=>{var d=s(93085),x=s(50069),w=s(93011),A=s(20101),E=s(5141),F=s(49361);d({target:"Object",stat:!0,sham:!x},{getOwnPropertyDescriptors:function(Z){for(var ee=A(Z),ue=E.f,ne=w(ee),ae={},Y=0,P,G;ne.length>Y;)G=ue(ee,P=ne[Y++]),G!==void 0&&F(ae,P,G);return ae}})},17895:(h,O,s)=>{var d=s(93085),x=s(36770),w=s(76192),A=s(84750),E=s(71795),F=!x||w(function(){A.f(1)});d({target:"Object",stat:!0,forced:F},{getOwnPropertySymbols:function(Z){var ee=A.f;return ee?ee(E(Z)):[]}})},19234:(h,O,s)=>{var d=s(93085),x=s(76192),w=s(71795),A=s(89341),E=s(4635),F=x(function(){A(1)});d({target:"Object",stat:!0,forced:F,sham:!E},{getPrototypeOf:function(Z){return A(w(Z))}})},92647:(h,O,s)=>{var d=s(93085),x=s(71795),w=s(57653),A=s(76192),E=A(function(){w(1)});d({target:"Object",stat:!0,forced:E},{keys:function(W){return w(x(W))}})},13222:(h,O,s)=>{var d=s(93085),x=s(24469);d({target:"Object",stat:!0},{setPrototypeOf:x})},46663:()=>{},97884:(h,O,s)=>{"use strict";var d=s(93085),x=s(18922),w=s(66235),A=s(99438),E=s(70892),F=s(33442);d({target:"Promise",stat:!0},{allSettled:function(Z){var ee=this,ue=A.f(ee),ne=ue.resolve,ae=ue.reject,Y=E(function(){var P=w(ee.resolve),G=[],N=0,C=1;F(Z,function(k){var j=N++,J=!1;C++,x(P,ee,k).then(function(K){J||(J=!0,G[j]={status:"fulfilled",value:K},--C||ne(G))},function(K){J||(J=!0,G[j]={status:"rejected",reason:K},--C||ne(G))})}),--C||ne(G)});return Y.error&&ae(Y.value),ue.promise}})},89701:(h,O,s)=>{"use strict";var d=s(93085),x=s(18922),w=s(66235),A=s(99438),E=s(70892),F=s(33442),W=s(52775);d({target:"Promise",stat:!0,forced:W},{all:function(ee){var ue=this,ne=A.f(ue),ae=ne.resolve,Y=ne.reject,P=E(function(){var G=w(ue.resolve),N=[],C=0,k=1;F(ee,function(j){var J=C++,K=!1;k++,x(G,ue,j).then(function(U){K||(K=!0,N[J]=U,--k||ae(N))},Y)}),--k||ae(N)});return P.error&&Y(P.value),ne.promise}})},78885:(h,O,s)=>{"use strict";var d=s(93085),x=s(18922),w=s(66235),A=s(10150),E=s(99438),F=s(70892),W=s(33442),Z="No one promise resolved";d({target:"Promise",stat:!0},{any:function(ue){var ne=this,ae=A("AggregateError"),Y=E.f(ne),P=Y.resolve,G=Y.reject,N=F(function(){var C=w(ne.resolve),k=[],j=0,J=1,K=!1;W(ue,function(U){var re=j++,X=!1;J++,x(C,ne,U).then(function(z){X||K||(K=!0,P(z))},function(z){X||K||(X=!0,k[re]=z,--J||G(new ae(k,Z)))})}),--J||G(new ae(k,Z))});return N.error&&G(N.value),Y.promise}})},34025:(h,O,s)=>{"use strict";var d=s(93085),x=s(85546),w=s(30511).CONSTRUCTOR,A=s(15813),E=s(10150),F=s(16447),W=s(59362),Z=A&&A.prototype;if(d({target:"Promise",proto:!0,forced:w,real:!0},{catch:function(ue){return this.then(void 0,ue)}}),!x&&F(A)){var ee=E("Promise").prototype.catch;Z.catch!==ee&&W(Z,"catch",ee,{unsafe:!0})}},60268:(h,O,s)=>{"use strict";var d=s(93085),x=s(85546),w=s(58189),A=s(98576),E=s(18922),F=s(59362),W=s(24469),Z=s(11284),ee=s(63656),ue=s(66235),ne=s(16447),ae=s(35744),Y=s(46961),P=s(84743),G=s(67160).set,N=s(12950),C=s(63681),k=s(70892),j=s(6412),J=s(73326),K=s(15813),U=s(30511),re=s(99438),X="Promise",z=U.CONSTRUCTOR,ce=U.REJECTION_EVENT,he=U.SUBCLASSING,_=J.getterFor(X),Q=J.set,H=K&&K.prototype,ye=K,ke=H,je=A.TypeError,De=A.document,nt=A.process,tt=re.f,bt=tt,Ne=!!(De&&De.createEvent&&A.dispatchEvent),Oe="unhandledrejection",He="rejectionhandled",Pe=0,Te=1,Ye=2,at=1,jt=2,rt,it,Ft,ot,or=function(Ze){var gt;return ae(Ze)&&ne(gt=Ze.then)?gt:!1},Je=function(Ze,gt){var Lt=gt.value,Ot=gt.state==Te,kt=Ot?Ze.ok:Ze.fail,dt=Ze.resolve,mt=Ze.reject,Tt=Ze.domain,st,Ue,fe;try{kt?(Ot||(gt.rejection===jt&&un(gt),gt.rejection=at),kt===!0?st=Lt:(Tt&&Tt.enter(),st=kt(Lt),Tt&&(Tt.exit(),fe=!0)),st===Ze.promise?mt(je("Promise-chain cycle")):(Ue=or(st))?E(Ue,st,dt,mt):dt(st)):mt(Lt)}catch(be){Tt&&!fe&&Tt.exit(),mt(be)}},Ct=function(Ze,gt){Ze.notified||(Ze.notified=!0,N(function(){for(var Lt=Ze.reactions,Ot;Ot=Lt.get();)Je(Ot,Ze);Ze.notified=!1,gt&&!Ze.rejection&&Zr(Ze)}))},ze=function(Ze,gt,Lt){var Ot,kt;Ne?(Ot=De.createEvent("Event"),Ot.promise=gt,Ot.reason=Lt,Ot.initEvent(Ze,!1,!0),A.dispatchEvent(Ot)):Ot={promise:gt,reason:Lt},!ce&&(kt=A["on"+Ze])?kt(Ot):Ze===Oe&&C("Unhandled promise rejection",Lt)},Zr=function(Ze){E(G,A,function(){var gt=Ze.facade,Lt=Ze.value,Ot=Er(Ze),kt;if(Ot&&(kt=k(function(){w?nt.emit("unhandledRejection",Lt,gt):ze(Oe,gt,Lt)}),Ze.rejection=w||Er(Ze)?jt:at,kt.error))throw kt.value})},Er=function(Ze){return Ze.rejection!==at&&!Ze.parent},un=function(Ze){E(G,A,function(){var gt=Ze.facade;w?nt.emit("rejectionHandled",gt):ze(He,gt,Ze.value)})},tr=function(Ze,gt,Lt){return function(Ot){Ze(gt,Ot,Lt)}},Or=function(Ze,gt,Lt){Ze.done||(Ze.done=!0,Lt&&(Ze=Lt),Ze.value=gt,Ze.state=Ye,Ct(Ze,!0))},_r=function(Ze,gt,Lt){if(!Ze.done){Ze.done=!0,Lt&&(Ze=Lt);try{if(Ze.facade===gt)throw je("Promise can't be resolved itself");var Ot=or(gt);Ot?N(function(){var kt={done:!1};try{E(Ot,gt,tr(_r,kt,Ze),tr(Or,kt,Ze))}catch(dt){Or(kt,dt,Ze)}}):(Ze.value=gt,Ze.state=Te,Ct(Ze,!1))}catch(kt){Or({done:!1},kt,Ze)}}};if(z&&(ye=function(gt){Y(this,ke),ue(gt),E(rt,this);var Lt=_(this);try{gt(tr(_r,Lt),tr(Or,Lt))}catch(Ot){Or(Lt,Ot)}},ke=ye.prototype,rt=function(gt){Q(this,{type:X,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:Pe,value:void 0})},rt.prototype=F(ke,"then",function(gt,Lt){var Ot=_(this),kt=tt(P(this,ye));return Ot.parent=!0,kt.ok=ne(gt)?gt:!0,kt.fail=ne(Lt)&&Lt,kt.domain=w?nt.domain:void 0,Ot.state==Pe?Ot.reactions.add(kt):N(function(){Je(kt,Ot)}),kt.promise}),it=function(){var Ze=new rt,gt=_(Ze);this.promise=Ze,this.resolve=tr(_r,gt),this.reject=tr(Or,gt)},re.f=tt=function(Ze){return Ze===ye||Ze===Ft?new it(Ze):bt(Ze)},!x&&ne(K)&&H!==Object.prototype)){ot=H.then,he||F(H,"then",function(gt,Lt){var Ot=this;return new ye(function(kt,dt){E(ot,Ot,kt,dt)}).then(gt,Lt)},{unsafe:!0});try{delete H.constructor}catch(Ze){}W&&W(H,ke)}d({global:!0,constructor:!0,wrap:!0,forced:z},{Promise:ye}),Z(ye,X,!1,!0),ee(X)},91868:(h,O,s)=>{"use strict";var d=s(93085),x=s(85546),w=s(15813),A=s(76192),E=s(10150),F=s(16447),W=s(84743),Z=s(19126),ee=s(59362),ue=w&&w.prototype,ne=!!w&&A(function(){ue.finally.call({then:function(){}},function(){})});if(d({target:"Promise",proto:!0,real:!0,forced:ne},{finally:function(Y){var P=W(this,E("Promise")),G=F(Y);return this.then(G?function(N){return Z(P,Y()).then(function(){return N})}:Y,G?function(N){return Z(P,Y()).then(function(){throw N})}:Y)}}),!x&&F(w)){var ae=E("Promise").prototype.finally;ue.finally!==ae&&ee(ue,"finally",ae,{unsafe:!0})}},59021:(h,O,s)=>{s(60268),s(89701),s(34025),s(67196),s(85873),s(22931)},67196:(h,O,s)=>{"use strict";var d=s(93085),x=s(18922),w=s(66235),A=s(99438),E=s(70892),F=s(33442),W=s(52775);d({target:"Promise",stat:!0,forced:W},{race:function(ee){var ue=this,ne=A.f(ue),ae=ne.reject,Y=E(function(){var P=w(ue.resolve);F(ee,function(G){x(P,ue,G).then(ne.resolve,ae)})});return Y.error&&ae(Y.value),ne.promise}})},85873:(h,O,s)=>{"use strict";var d=s(93085),x=s(18922),w=s(99438),A=s(30511).CONSTRUCTOR;d({target:"Promise",stat:!0,forced:A},{reject:function(F){var W=w.f(this);return x(W.reject,void 0,F),W.promise}})},22931:(h,O,s)=>{"use strict";var d=s(93085),x=s(10150),w=s(85546),A=s(15813),E=s(30511).CONSTRUCTOR,F=s(19126),W=x("Promise"),Z=w&&!E;d({target:"Promise",stat:!0,forced:w||E},{resolve:function(ue){return F(Z&&this===W?A:this,ue)}})},71367:()=>{},39247:(h,O,s)=>{"use strict";var d=s(93085),x=s(84120),w=s(9703),A=s(13209),E=s(44845),F=s(83519),W=x("".indexOf);d({target:"String",proto:!0,forced:!F("includes")},{includes:function(ee){return!!~W(E(A(this)),E(w(ee)),arguments.length>1?arguments[1]:void 0)}})},5454:(h,O,s)=>{"use strict";var d=s(863).charAt,x=s(44845),w=s(73326),A=s(65297),E=s(87271),F="String Iterator",W=w.set,Z=w.getterFor(F);A(String,"String",function(ee){W(this,{type:F,string:x(ee),index:0})},function(){var ue=Z(this),ne=ue.string,ae=ue.index,Y;return ae>=ne.length?E(void 0,!0):(Y=d(ne,ae),ue.index+=Y.length,E(Y,!1))})},32991:(h,O,s)=>{"use strict";var d=s(93085),x=s(84120),w=s(5141).f,A=s(8445),E=s(44845),F=s(9703),W=s(13209),Z=s(83519),ee=s(85546),ue=x("".startsWith),ne=x("".slice),ae=Math.min,Y=Z("startsWith"),P=!ee&&!Y&&!!function(){var G=w(String.prototype,"startsWith");return G&&!G.writable}();d({target:"String",proto:!0,forced:!P&&!Y},{startsWith:function(N){var C=E(W(this));F(N);var k=A(ae(arguments.length>1?arguments[1]:void 0,C.length)),j=E(N);return ue?ue(C,j,k):ne(C,k,k+j.length)===j}})},19781:(h,O,s)=>{var d=s(48332);d("asyncIterator")},49351:(h,O,s)=>{"use strict";var d=s(93085),x=s(98576),w=s(18922),A=s(84120),E=s(85546),F=s(50069),W=s(36770),Z=s(76192),ee=s(64500),ue=s(8902),ne=s(31138),ae=s(20101),Y=s(40077),P=s(44845),G=s(90774),N=s(52853),C=s(57653),k=s(92092),j=s(24052),J=s(84750),K=s(5141),U=s(42760),re=s(11187),X=s(56007),z=s(59362),ce=s(98717),he=s(69766),_=s(14535),Q=s(42759),H=s(18182),ye=s(89207),ke=s(48332),je=s(93407),De=s(11284),nt=s(73326),tt=s(50454).forEach,bt=he("hidden"),Ne="Symbol",Oe="prototype",He=nt.set,Pe=nt.getterFor(Ne),Te=Object[Oe],Ye=x.Symbol,at=Ye&&Ye[Oe],jt=x.TypeError,rt=x.QObject,it=K.f,Ft=U.f,ot=j.f,or=X.f,Je=A([].push),Ct=ce("symbols"),ze=ce("op-symbols"),Zr=ce("wks"),Er=!rt||!rt[Oe]||!rt[Oe].findChild,un=F&&Z(function(){return N(Ft({},"a",{get:function(){return Ft(this,"a",{value:7}).a}})).a!=7})?function(dt,mt,Tt){var st=it(Te,mt);st&&delete Te[mt],Ft(dt,mt,Tt),st&&dt!==Te&&Ft(Te,mt,st)}:Ft,tr=function(dt,mt){var Tt=Ct[dt]=N(at);return He(Tt,{type:Ne,tag:dt,description:mt}),F||(Tt.description=mt),Tt},Or=function(mt,Tt,st){mt===Te&&Or(ze,Tt,st),ne(mt);var Ue=Y(Tt);return ne(st),ee(Ct,Ue)?(st.enumerable?(ee(mt,bt)&&mt[bt][Ue]&&(mt[bt][Ue]=!1),st=N(st,{enumerable:G(0,!1)})):(ee(mt,bt)||Ft(mt,bt,G(1,{})),mt[bt][Ue]=!0),un(mt,Ue,st)):Ft(mt,Ue,st)},_r=function(mt,Tt){ne(mt);var st=ae(Tt),Ue=C(st).concat(kt(st));return tt(Ue,function(fe){(!F||w(gt,st,fe))&&Or(mt,fe,st[fe])}),mt},Ze=function(mt,Tt){return Tt===void 0?N(mt):_r(N(mt),Tt)},gt=function(mt){var Tt=Y(mt),st=w(or,this,Tt);return this===Te&&ee(Ct,Tt)&&!ee(ze,Tt)?!1:st||!ee(this,Tt)||!ee(Ct,Tt)||ee(this,bt)&&this[bt][Tt]?st:!0},Lt=function(mt,Tt){var st=ae(mt),Ue=Y(Tt);if(!(st===Te&&ee(Ct,Ue)&&!ee(ze,Ue))){var fe=it(st,Ue);return fe&&ee(Ct,Ue)&&!(ee(st,bt)&&st[bt][Ue])&&(fe.enumerable=!0),fe}},Ot=function(mt){var Tt=ot(ae(mt)),st=[];return tt(Tt,function(Ue){!ee(Ct,Ue)&&!ee(_,Ue)&&Je(st,Ue)}),st},kt=function(dt){var mt=dt===Te,Tt=ot(mt?ze:ae(dt)),st=[];return tt(Tt,function(Ue){ee(Ct,Ue)&&(!mt||ee(Te,Ue))&&Je(st,Ct[Ue])}),st};W||(Ye=function(){if(ue(at,this))throw jt("Symbol is not a constructor");var mt=!arguments.length||arguments[0]===void 0?void 0:P(arguments[0]),Tt=Q(mt),st=function(Ue){this===Te&&w(st,ze,Ue),ee(this,bt)&&ee(this[bt],Tt)&&(this[bt][Tt]=!1),un(this,Tt,G(1,Ue))};return F&&Er&&un(Te,Tt,{configurable:!0,set:st}),tr(Tt,mt)},at=Ye[Oe],z(at,"toString",function(){return Pe(this).tag}),z(Ye,"withoutSetter",function(dt){return tr(Q(dt),dt)}),X.f=gt,U.f=Or,re.f=_r,K.f=Lt,k.f=j.f=Ot,J.f=kt,ye.f=function(dt){return tr(H(dt),dt)},F&&(Ft(at,"description",{configurable:!0,get:function(){return Pe(this).description}}),E||z(Te,"propertyIsEnumerable",gt,{unsafe:!0}))),d({global:!0,constructor:!0,wrap:!0,forced:!W,sham:!W},{Symbol:Ye}),tt(C(Zr),function(dt){ke(dt)}),d({target:Ne,stat:!0,forced:!W},{useSetter:function(){Er=!0},useSimple:function(){Er=!1}}),d({target:"Object",stat:!0,forced:!W,sham:!F},{create:Ze,defineProperty:Or,defineProperties:_r,getOwnPropertyDescriptor:Lt}),d({target:"Object",stat:!0,forced:!W},{getOwnPropertyNames:Ot}),je(),De(Ye,Ne),_[bt]=!0},50492:()=>{},19148:(h,O,s)=>{var d=s(93085),x=s(10150),w=s(64500),A=s(44845),E=s(98717),F=s(20031),W=E("string-to-symbol-registry"),Z=E("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!F},{for:function(ee){var ue=A(ee);if(w(W,ue))return W[ue];var ne=x("Symbol")(ue);return W[ue]=ne,Z[ne]=ue,ne}})},66681:(h,O,s)=>{var d=s(48332);d("hasInstance")},29594:(h,O,s)=>{var d=s(48332);d("isConcatSpreadable")},63665:(h,O,s)=>{var d=s(48332);d("iterator")},36187:(h,O,s)=>{s(49351),s(19148),s(15991),s(59704),s(17895)},15991:(h,O,s)=>{var d=s(93085),x=s(64500),w=s(23236),A=s(79288),E=s(98717),F=s(20031),W=E("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!F},{keyFor:function(ee){if(!w(ee))throw TypeError(A(ee)+" is not a symbol");if(x(W,ee))return W[ee]}})},11250:(h,O,s)=>{var d=s(48332);d("matchAll")},29017:(h,O,s)=>{var d=s(48332);d("match")},79786:(h,O,s)=>{var d=s(48332);d("replace")},90503:(h,O,s)=>{var d=s(48332);d("search")},16565:(h,O,s)=>{var d=s(48332);d("species")},69322:(h,O,s)=>{var d=s(48332);d("split")},13610:(h,O,s)=>{var d=s(48332),x=s(93407);d("toPrimitive"),x()},36886:(h,O,s)=>{var d=s(10150),x=s(48332),w=s(11284);x("toStringTag"),w(d("Symbol"),"Symbol")},33514:(h,O,s)=>{var d=s(48332);d("unscopables")},10572:(h,O,s)=>{"use strict";var d=s(98576),x=s(84120),w=s(35090),A=s(32861),E=s(34535),F=s(51057),W=s(35744),Z=s(4532),ee=s(73326).enforce,ue=s(55278),ne=!d.ActiveXObject&&"ActiveXObject"in d,ae,Y=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},P=E("WeakMap",Y,F);if(ue&&ne){ae=F.getConstructor(Y,"WeakMap",!0),A.enable();var G=P.prototype,N=x(G.delete),C=x(G.has),k=x(G.get),j=x(G.set);w(G,{delete:function(J){if(W(J)&&!Z(J)){var K=ee(this);return K.frozen||(K.frozen=new ae),N(this,J)||K.frozen.delete(J)}return N(this,J)},has:function(K){if(W(K)&&!Z(K)){var U=ee(this);return U.frozen||(U.frozen=new ae),C(this,K)||U.frozen.has(K)}return C(this,K)},get:function(K){if(W(K)&&!Z(K)){var U=ee(this);return U.frozen||(U.frozen=new ae),C(this,K)?k(this,K):U.frozen.get(K)}return k(this,K)},set:function(K,U){if(W(K)&&!Z(K)){var re=ee(this);re.frozen||(re.frozen=new ae),C(this,K)?j(this,K,U):re.frozen.set(K,U)}else j(this,K,U);return this}})}},33983:(h,O,s)=>{s(10572)},12752:(h,O,s)=>{s(4242)},5363:(h,O,s)=>{s(25067)},14562:(h,O,s)=>{s(97884)},69355:(h,O,s)=>{s(78885)},25363:(h,O,s)=>{"use strict";var d=s(93085),x=s(99438),w=s(70892);d({target:"Promise",stat:!0,forced:!0},{try:function(A){var E=x.f(this),F=w(A);return(F.error?E.reject:E.resolve)(F.value),E.promise}})},60177:(h,O,s)=>{var d=s(48332);d("asyncDispose")},9031:(h,O,s)=>{var d=s(48332);d("dispose")},96658:(h,O,s)=>{var d=s(48332);d("matcher")},54212:(h,O,s)=>{var d=s(48332);d("metadataKey")},71875:(h,O,s)=>{var d=s(48332);d("metadata")},18658:(h,O,s)=>{var d=s(48332);d("observable")},54592:(h,O,s)=>{var d=s(48332);d("patternMatch")},26680:(h,O,s)=>{var d=s(48332);d("replaceAll")},80162:(h,O,s)=>{s(98939);var d=s(17365),x=s(98576),w=s(4696),A=s(98711),E=s(47771),F=s(18182),W=F("toStringTag");for(var Z in d){var ee=x[Z],ue=ee&&ee.prototype;ue&&w(ue)!==W&&A(ue,W,Z),E[Z]=E.Array}},67054:(h,O,s)=>{"use strict";s(98939);var d=s(93085),x=s(98576),w=s(18922),A=s(84120),E=s(50069),F=s(58552),W=s(59362),Z=s(35090),ee=s(11284),ue=s(25695),ne=s(73326),ae=s(46961),Y=s(16447),P=s(64500),G=s(8043),N=s(4696),C=s(31138),k=s(35744),j=s(44845),J=s(52853),K=s(90774),U=s(61669),re=s(78703),X=s(67822),z=s(18182),ce=s(6614),he=z("iterator"),_="URLSearchParams",Q=_+"Iterator",H=ne.set,ye=ne.getterFor(_),ke=ne.getterFor(Q),je=Object.getOwnPropertyDescriptor,De=function(Ue){if(!E)return x[Ue];var fe=je(x,Ue);return fe&&fe.value},nt=De("fetch"),tt=De("Request"),bt=De("Headers"),Ne=tt&&tt.prototype,Oe=bt&&bt.prototype,He=x.RegExp,Pe=x.TypeError,Te=x.decodeURIComponent,Ye=x.encodeURIComponent,at=A("".charAt),jt=A([].join),rt=A([].push),it=A("".replace),Ft=A([].shift),ot=A([].splice),or=A("".split),Je=A("".slice),Ct=/\+/g,ze=Array(4),Zr=function(Ue){return ze[Ue-1]||(ze[Ue-1]=He("((?:%[\\da-f]{2}){"+Ue+"})","gi"))},Er=function(Ue){try{return Te(Ue)}catch(fe){return Ue}},un=function(Ue){var fe=it(Ue,Ct," "),be=4;try{return Te(fe)}catch(Be){for(;be;)fe=it(fe,Zr(be--),Er);return fe}},tr=/[!'()~]|%20/g,Or={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_r=function(Ue){return Or[Ue]},Ze=function(Ue){return it(Ye(Ue),tr,_r)},gt=ue(function(fe,be){H(this,{type:Q,iterator:U(ye(fe).entries),kind:be})},"Iterator",function(){var fe=ke(this),be=fe.kind,Be=fe.iterator.next(),Ve=Be.value;return Be.done||(Be.value=be==="keys"?Ve.key:be==="values"?Ve.value:[Ve.key,Ve.value]),Be},!0),Lt=function(Ue){this.entries=[],this.url=null,Ue!==void 0&&(k(Ue)?this.parseObject(Ue):this.parseQuery(typeof Ue=="string"?at(Ue,0)==="?"?Je(Ue,1):Ue:j(Ue)))};Lt.prototype={type:_,bindURL:function(Ue){this.url=Ue,this.update()},parseObject:function(Ue){var fe=re(Ue),be,Be,Ve,lt,vt,Mt,pr;if(fe)for(be=U(Ue,fe),Be=be.next;!(Ve=w(Be,be)).done;){if(lt=U(C(Ve.value)),vt=lt.next,(Mt=w(vt,lt)).done||(pr=w(vt,lt)).done||!w(vt,lt).done)throw Pe("Expected sequence with length 2");rt(this.entries,{key:j(Mt.value),value:j(pr.value)})}else for(var Nt in Ue)P(Ue,Nt)&&rt(this.entries,{key:Nt,value:j(Ue[Nt])})},parseQuery:function(Ue){if(Ue)for(var fe=or(Ue,"&"),be=0,Be,Ve;be<fe.length;)Be=fe[be++],Be.length&&(Ve=or(Be,"="),rt(this.entries,{key:un(Ft(Ve)),value:un(jt(Ve,"="))}))},serialize:function(){for(var Ue=this.entries,fe=[],be=0,Be;be<Ue.length;)Be=Ue[be++],rt(fe,Ze(Be.key)+"="+Ze(Be.value));return jt(fe,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ot=function(){ae(this,kt);var fe=arguments.length>0?arguments[0]:void 0;H(this,new Lt(fe))},kt=Ot.prototype;if(Z(kt,{append:function(fe,be){X(arguments.length,2);var Be=ye(this);rt(Be.entries,{key:j(fe),value:j(be)}),Be.updateURL()},delete:function(Ue){X(arguments.length,1);for(var fe=ye(this),be=fe.entries,Be=j(Ue),Ve=0;Ve<be.length;)be[Ve].key===Be?ot(be,Ve,1):Ve++;fe.updateURL()},get:function(fe){X(arguments.length,1);for(var be=ye(this).entries,Be=j(fe),Ve=0;Ve<be.length;Ve++)if(be[Ve].key===Be)return be[Ve].value;return null},getAll:function(fe){X(arguments.length,1);for(var be=ye(this).entries,Be=j(fe),Ve=[],lt=0;lt<be.length;lt++)be[lt].key===Be&&rt(Ve,be[lt].value);return Ve},has:function(fe){X(arguments.length,1);for(var be=ye(this).entries,Be=j(fe),Ve=0;Ve<be.length;)if(be[Ve++].key===Be)return!0;return!1},set:function(fe,be){X(arguments.length,1);for(var Be=ye(this),Ve=Be.entries,lt=!1,vt=j(fe),Mt=j(be),pr=0,Nt;pr<Ve.length;pr++)Nt=Ve[pr],Nt.key===vt&&(lt?ot(Ve,pr--,1):(lt=!0,Nt.value=Mt));lt||rt(Ve,{key:vt,value:Mt}),Be.updateURL()},sort:function(){var fe=ye(this);ce(fe.entries,function(be,Be){return be.key>Be.key?1:-1}),fe.updateURL()},forEach:function(fe){for(var be=ye(this).entries,Be=G(fe,arguments.length>1?arguments[1]:void 0),Ve=0,lt;Ve<be.length;)lt=be[Ve++],Be(lt.value,lt.key,this)},keys:function(){return new gt(this,"keys")},values:function(){return new gt(this,"values")},entries:function(){return new gt(this,"entries")}},{enumerable:!0}),W(kt,he,kt.entries,{name:"entries"}),W(kt,"toString",function(){return ye(this).serialize()},{enumerable:!0}),ee(Ot,_),d({global:!0,constructor:!0,forced:!F},{URLSearchParams:Ot}),!F&&Y(bt)){var dt=A(Oe.has),mt=A(Oe.set),Tt=function(Ue){if(k(Ue)){var fe=Ue.body,be;if(N(fe)===_)return be=Ue.headers?new bt(Ue.headers):new bt,dt(be,"content-type")||mt(be,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),J(Ue,{body:K(0,j(fe)),headers:K(0,be)})}return Ue};if(Y(nt)&&d({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(fe){return nt(fe,arguments.length>1?Tt(arguments[1]):{})}}),Y(tt)){var st=function(fe){return ae(this,Ne),new tt(fe,arguments.length>1?Tt(arguments[1]):{})};Ne.constructor=st,st.prototype=Ne,d({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:st})}}h.exports={URLSearchParams:Ot,getState:ye}},69336:(h,O,s)=>{s(67054)},53822:(h,O,s)=>{var d=s(52221);h.exports=d},21434:(h,O,s)=>{var d=s(75078);h.exports=d},51629:(h,O,s)=>{var d=s(77237);h.exports=d},46899:(h,O,s)=>{var d=s(60098);h.exports=d},27710:(h,O,s)=>{var d=s(65739);s(80162),h.exports=d},31585:(h,O,s)=>{var d=s(74030);h.exports=d},44877:(h,O,s)=>{var d=s(41484);h.exports=d},10140:(h,O,s)=>{s(80162);var d=s(4696),x=s(64500),w=s(8902),A=s(51629),E=Array.prototype,F={DOMTokenList:!0,NodeList:!0};h.exports=function(W){var Z=W.entries;return W===E||w(E,W)&&Z===E.entries||x(F,d(W))?A:Z}},55603:(h,O,s)=>{var d=s(53669);h.exports=d},76237:(h,O,s)=>{var d=s(37506);h.exports=d},31206:(h,O,s)=>{s(80162);var d=s(4696),x=s(64500),w=s(8902),A=s(46899),E=Array.prototype,F={DOMTokenList:!0,NodeList:!0};h.exports=function(W){var Z=W.forEach;return W===E||w(E,W)&&Z===E.forEach||x(F,d(W))?A:Z}},56515:(h,O,s)=>{var d=s(13173);h.exports=d},26174:(h,O,s)=>{var d=s(92604);h.exports=d},20057:(h,O,s)=>{var d=s(263);h.exports=d},87511:(h,O,s)=>{var d=s(80432);h.exports=d},24741:(h,O,s)=>{var d=s(77663);h.exports=d},8368:(h,O,s)=>{var d=s(45063);h.exports=d},342:(h,O,s)=>{var d=s(7769);h.exports=d},392:(h,O,s)=>{var d=s(96056);h.exports=d},28478:(h,O,s)=>{var d=s(99936);h.exports=d},4963:(h,O,s)=>{var d=s(23213);h.exports=d},21025:(h,O,s)=>{var d=s(38724);h.exports=d},27820:(h,O,s)=>{var d=s(63512);h.exports=d},58202:(h,O,s)=>{var d=s(2335);h.exports=d},74194:(h,O,s)=>{var d=s(60632);h.exports=d},32854:(h,O,s)=>{var d=s(81056);h.exports=d},60002:(h,O,s)=>{var d=s(12921);h.exports=d},28980:(h,O,s)=>{var d=s(8168);h.exports=d},45636:(h,O,s)=>{var d=s(38651);h.exports=d},66672:(h,O,s)=>{var d=s(33083);h.exports=d},46618:(h,O,s)=>{var d=s(93154);s(80162),h.exports=d},42285:(h,O,s)=>{var d=s(85008);s(80162),h.exports=d},58535:(h,O,s)=>{var d=s(994);s(80162),h.exports=d},72946:(h,O,s)=>{var d=s(32004);s(80162),h.exports=d},11235:(h,O,s)=>{var d=s(31293);s(80162),h.exports=d},32004:(h,O,s)=>{s(69336);var d=s(57545);h.exports=d.URLSearchParams},43616:function(){(function(h){var O=function(s){var d={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(X){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function x(X){return X&&DataView.prototype.isPrototypeOf(X)}if(d.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],A=ArrayBuffer.isView||function(X){return X&&w.indexOf(Object.prototype.toString.call(X))>-1};function E(X){if(typeof X!="string"&&(X=String(X)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(X))throw new TypeError("Invalid character in header field name");return X.toLowerCase()}function F(X){return typeof X!="string"&&(X=String(X)),X}function W(X){var z={next:function(){var ce=X.shift();return{done:ce===void 0,value:ce}}};return d.iterable&&(z[Symbol.iterator]=function(){return z}),z}function Z(X){this.map={},X instanceof Z?X.forEach(function(z,ce){this.append(ce,z)},this):Array.isArray(X)?X.forEach(function(z){this.append(z[0],z[1])},this):X&&Object.getOwnPropertyNames(X).forEach(function(z){this.append(z,X[z])},this)}Z.prototype.append=function(X,z){X=E(X),z=F(z);var ce=this.map[X];this.map[X]=ce?ce+", "+z:z},Z.prototype.delete=function(X){delete this.map[E(X)]},Z.prototype.get=function(X){return X=E(X),this.has(X)?this.map[X]:null},Z.prototype.has=function(X){return this.map.hasOwnProperty(E(X))},Z.prototype.set=function(X,z){this.map[E(X)]=F(z)},Z.prototype.forEach=function(X,z){for(var ce in this.map)this.map.hasOwnProperty(ce)&&X.call(z,this.map[ce],ce,this)},Z.prototype.keys=function(){var X=[];return this.forEach(function(z,ce){X.push(ce)}),W(X)},Z.prototype.values=function(){var X=[];return this.forEach(function(z){X.push(z)}),W(X)},Z.prototype.entries=function(){var X=[];return this.forEach(function(z,ce){X.push([ce,z])}),W(X)},d.iterable&&(Z.prototype[Symbol.iterator]=Z.prototype.entries);function ee(X){if(X.bodyUsed)return Promise.reject(new TypeError("Already read"));X.bodyUsed=!0}function ue(X){return new Promise(function(z,ce){X.onload=function(){z(X.result)},X.onerror=function(){ce(X.error)}})}function ne(X){var z=new FileReader,ce=ue(z);return z.readAsArrayBuffer(X),ce}function ae(X){var z=new FileReader,ce=ue(z);return z.readAsText(X),ce}function Y(X){for(var z=new Uint8Array(X),ce=new Array(z.length),he=0;he<z.length;he++)ce[he]=String.fromCharCode(z[he]);return ce.join("")}function P(X){if(X.slice)return X.slice(0);var z=new Uint8Array(X.byteLength);return z.set(new Uint8Array(X)),z.buffer}function G(){return this.bodyUsed=!1,this._initBody=function(X){this._bodyInit=X,X?typeof X=="string"?this._bodyText=X:d.blob&&Blob.prototype.isPrototypeOf(X)?this._bodyBlob=X:d.formData&&FormData.prototype.isPrototypeOf(X)?this._bodyFormData=X:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(X)?this._bodyText=X.toString():d.arrayBuffer&&d.blob&&x(X)?(this._bodyArrayBuffer=P(X.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(X)||A(X))?this._bodyArrayBuffer=P(X):this._bodyText=X=Object.prototype.toString.call(X):this._bodyText="",this.headers.get("content-type")||(typeof X=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(X)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var X=ee(this);if(X)return X;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ee(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(ne)}),this.text=function(){var X=ee(this);if(X)return X;if(this._bodyBlob)return ae(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Y(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(j)}),this.json=function(){return this.text().then(JSON.parse)},this}var N=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(X){var z=X.toUpperCase();return N.indexOf(z)>-1?z:X}function k(X,z){z=z||{};var ce=z.body;if(X instanceof k){if(X.bodyUsed)throw new TypeError("Already read");this.url=X.url,this.credentials=X.credentials,z.headers||(this.headers=new Z(X.headers)),this.method=X.method,this.mode=X.mode,this.signal=X.signal,!ce&&X._bodyInit!=null&&(ce=X._bodyInit,X.bodyUsed=!0)}else this.url=String(X);if(this.credentials=z.credentials||this.credentials||"same-origin",(z.headers||!this.headers)&&(this.headers=new Z(z.headers)),this.method=C(z.method||this.method||"GET"),this.mode=z.mode||this.mode||null,this.signal=z.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ce)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ce)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function j(X){var z=new FormData;return X.trim().split("&").forEach(function(ce){if(ce){var he=ce.split("="),_=he.shift().replace(/\+/g," "),Q=he.join("=").replace(/\+/g," ");z.append(decodeURIComponent(_),decodeURIComponent(Q))}}),z}function J(X){var z=new Z,ce=X.replace(/\r?\n[\t ]+/g," ");return ce.split(/\r?\n/).forEach(function(he){var _=he.split(":"),Q=_.shift().trim();if(Q){var H=_.join(":").trim();z.append(Q,H)}}),z}G.call(k.prototype);function K(X,z){z||(z={}),this.type="default",this.status=z.status===void 0?200:z.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in z?z.statusText:"OK",this.headers=new Z(z.headers),this.url=z.url||"",this._initBody(X)}G.call(K.prototype),K.prototype.clone=function(){return new K(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Z(this.headers),url:this.url})},K.error=function(){var X=new K(null,{status:0,statusText:""});return X.type="error",X};var U=[301,302,303,307,308];K.redirect=function(X,z){if(U.indexOf(z)===-1)throw new RangeError("Invalid status code");return new K(null,{status:z,headers:{location:X}})},s.DOMException=h.DOMException;try{new s.DOMException}catch(X){s.DOMException=function(z,ce){this.message=z,this.name=ce;var he=Error(z);this.stack=he.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function re(X,z){return new Promise(function(ce,he){var _=new k(X,z);if(_.signal&&_.signal.aborted)return he(new s.DOMException("Aborted","AbortError"));var Q=new XMLHttpRequest;function H(){Q.abort()}Q.onload=function(){var ye={status:Q.status,statusText:Q.statusText,headers:J(Q.getAllResponseHeaders()||"")};ye.url="responseURL"in Q?Q.responseURL:ye.headers.get("X-Request-URL");var ke="response"in Q?Q.response:Q.responseText;ce(new K(ke,ye))},Q.onerror=function(){he(new TypeError("Network request failed"))},Q.ontimeout=function(){he(new TypeError("Network request failed"))},Q.onabort=function(){he(new s.DOMException("Aborted","AbortError"))},Q.open(_.method,_.url,!0),_.credentials==="include"?Q.withCredentials=!0:_.credentials==="omit"&&(Q.withCredentials=!1),"responseType"in Q&&d.blob&&(Q.responseType="blob"),_.headers.forEach(function(ye,ke){Q.setRequestHeader(ke,ye)}),_.signal&&(_.signal.addEventListener("abort",H),Q.onreadystatechange=function(){Q.readyState===4&&_.signal.removeEventListener("abort",H)}),Q.send(typeof _._bodyInit=="undefined"?null:_._bodyInit)})}return re.polyfill=!0,h.fetch||(h.fetch=re,h.Headers=Z,h.Request=k,h.Response=K),s.Headers=Z,s.Request=k,s.Response=K,s.fetch=re,Object.defineProperty(s,"__esModule",{value:!0}),s}({})})(typeof self!="undefined"?self:this)},96279:function(h,O){var s=typeof self!="undefined"?self:this,d=function(){function w(){this.fetch=!1,this.DOMException=s.DOMException}return w.prototype=s,new w}();(function(w){var A=function(E){var F={searchParams:"URLSearchParams"in w,iterable:"Symbol"in w&&"iterator"in Symbol,blob:"FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(Q){return!1}}(),formData:"FormData"in w,arrayBuffer:"ArrayBuffer"in w};function W(Q){return Q&&DataView.prototype.isPrototypeOf(Q)}if(F.arrayBuffer)var Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ee=ArrayBuffer.isView||function(Q){return Q&&Z.indexOf(Object.prototype.toString.call(Q))>-1};function ue(Q){if(typeof Q!="string"&&(Q=String(Q)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Q))throw new TypeError("Invalid character in header field name");return Q.toLowerCase()}function ne(Q){return typeof Q!="string"&&(Q=String(Q)),Q}function ae(Q){var H={next:function(){var ye=Q.shift();return{done:ye===void 0,value:ye}}};return F.iterable&&(H[Symbol.iterator]=function(){return H}),H}function Y(Q){this.map={},Q instanceof Y?Q.forEach(function(H,ye){this.append(ye,H)},this):Array.isArray(Q)?Q.forEach(function(H){this.append(H[0],H[1])},this):Q&&Object.getOwnPropertyNames(Q).forEach(function(H){this.append(H,Q[H])},this)}Y.prototype.append=function(Q,H){Q=ue(Q),H=ne(H);var ye=this.map[Q];this.map[Q]=ye?ye+", "+H:H},Y.prototype.delete=function(Q){delete this.map[ue(Q)]},Y.prototype.get=function(Q){return Q=ue(Q),this.has(Q)?this.map[Q]:null},Y.prototype.has=function(Q){return this.map.hasOwnProperty(ue(Q))},Y.prototype.set=function(Q,H){this.map[ue(Q)]=ne(H)},Y.prototype.forEach=function(Q,H){for(var ye in this.map)this.map.hasOwnProperty(ye)&&Q.call(H,this.map[ye],ye,this)},Y.prototype.keys=function(){var Q=[];return this.forEach(function(H,ye){Q.push(ye)}),ae(Q)},Y.prototype.values=function(){var Q=[];return this.forEach(function(H){Q.push(H)}),ae(Q)},Y.prototype.entries=function(){var Q=[];return this.forEach(function(H,ye){Q.push([ye,H])}),ae(Q)},F.iterable&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);function P(Q){if(Q.bodyUsed)return Promise.reject(new TypeError("Already read"));Q.bodyUsed=!0}function G(Q){return new Promise(function(H,ye){Q.onload=function(){H(Q.result)},Q.onerror=function(){ye(Q.error)}})}function N(Q){var H=new FileReader,ye=G(H);return H.readAsArrayBuffer(Q),ye}function C(Q){var H=new FileReader,ye=G(H);return H.readAsText(Q),ye}function k(Q){for(var H=new Uint8Array(Q),ye=new Array(H.length),ke=0;ke<H.length;ke++)ye[ke]=String.fromCharCode(H[ke]);return ye.join("")}function j(Q){if(Q.slice)return Q.slice(0);var H=new Uint8Array(Q.byteLength);return H.set(new Uint8Array(Q)),H.buffer}function J(){return this.bodyUsed=!1,this._initBody=function(Q){this._bodyInit=Q,Q?typeof Q=="string"?this._bodyText=Q:F.blob&&Blob.prototype.isPrototypeOf(Q)?this._bodyBlob=Q:F.formData&&FormData.prototype.isPrototypeOf(Q)?this._bodyFormData=Q:F.searchParams&&URLSearchParams.prototype.isPrototypeOf(Q)?this._bodyText=Q.toString():F.arrayBuffer&&F.blob&&W(Q)?(this._bodyArrayBuffer=j(Q.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):F.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Q)||ee(Q))?this._bodyArrayBuffer=j(Q):this._bodyText=Q=Object.prototype.toString.call(Q):this._bodyText="",this.headers.get("content-type")||(typeof Q=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):F.searchParams&&URLSearchParams.prototype.isPrototypeOf(Q)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},F.blob&&(this.blob=function(){var Q=P(this);if(Q)return Q;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?P(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(N)}),this.text=function(){var Q=P(this);if(Q)return Q;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(k(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},F.formData&&(this.formData=function(){return this.text().then(X)}),this.json=function(){return this.text().then(JSON.parse)},this}var K=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function U(Q){var H=Q.toUpperCase();return K.indexOf(H)>-1?H:Q}function re(Q,H){H=H||{};var ye=H.body;if(Q instanceof re){if(Q.bodyUsed)throw new TypeError("Already read");this.url=Q.url,this.credentials=Q.credentials,H.headers||(this.headers=new Y(Q.headers)),this.method=Q.method,this.mode=Q.mode,this.signal=Q.signal,!ye&&Q._bodyInit!=null&&(ye=Q._bodyInit,Q.bodyUsed=!0)}else this.url=String(Q);if(this.credentials=H.credentials||this.credentials||"same-origin",(H.headers||!this.headers)&&(this.headers=new Y(H.headers)),this.method=U(H.method||this.method||"GET"),this.mode=H.mode||this.mode||null,this.signal=H.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ye)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ye)}re.prototype.clone=function(){return new re(this,{body:this._bodyInit})};function X(Q){var H=new FormData;return Q.trim().split("&").forEach(function(ye){if(ye){var ke=ye.split("="),je=ke.shift().replace(/\+/g," "),De=ke.join("=").replace(/\+/g," ");H.append(decodeURIComponent(je),decodeURIComponent(De))}}),H}function z(Q){var H=new Y,ye=Q.replace(/\r?\n[\t ]+/g," ");return ye.split(/\r?\n/).forEach(function(ke){var je=ke.split(":"),De=je.shift().trim();if(De){var nt=je.join(":").trim();H.append(De,nt)}}),H}J.call(re.prototype);function ce(Q,H){H||(H={}),this.type="default",this.status=H.status===void 0?200:H.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in H?H.statusText:"OK",this.headers=new Y(H.headers),this.url=H.url||"",this._initBody(Q)}J.call(ce.prototype),ce.prototype.clone=function(){return new ce(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},ce.error=function(){var Q=new ce(null,{status:0,statusText:""});return Q.type="error",Q};var he=[301,302,303,307,308];ce.redirect=function(Q,H){if(he.indexOf(H)===-1)throw new RangeError("Invalid status code");return new ce(null,{status:H,headers:{location:Q}})},E.DOMException=w.DOMException;try{new E.DOMException}catch(Q){E.DOMException=function(H,ye){this.message=H,this.name=ye;var ke=Error(H);this.stack=ke.stack},E.DOMException.prototype=Object.create(Error.prototype),E.DOMException.prototype.constructor=E.DOMException}function _(Q,H){return new Promise(function(ye,ke){var je=new re(Q,H);if(je.signal&&je.signal.aborted)return ke(new E.DOMException("Aborted","AbortError"));var De=new XMLHttpRequest;function nt(){De.abort()}De.onload=function(){var tt={status:De.status,statusText:De.statusText,headers:z(De.getAllResponseHeaders()||"")};tt.url="responseURL"in De?De.responseURL:tt.headers.get("X-Request-URL");var bt="response"in De?De.response:De.responseText;ye(new ce(bt,tt))},De.onerror=function(){ke(new TypeError("Network request failed"))},De.ontimeout=function(){ke(new TypeError("Network request failed"))},De.onabort=function(){ke(new E.DOMException("Aborted","AbortError"))},De.open(je.method,je.url,!0),je.credentials==="include"?De.withCredentials=!0:je.credentials==="omit"&&(De.withCredentials=!1),"responseType"in De&&F.blob&&(De.responseType="blob"),je.headers.forEach(function(tt,bt){De.setRequestHeader(bt,tt)}),je.signal&&(je.signal.addEventListener("abort",nt),De.onreadystatechange=function(){De.readyState===4&&je.signal.removeEventListener("abort",nt)}),De.send(typeof je._bodyInit=="undefined"?null:je._bodyInit)})}return _.polyfill=!0,w.fetch||(w.fetch=_,w.Headers=Y,w.Request=re,w.Response=ce),E.Headers=Y,E.Request=re,E.Response=ce,E.fetch=_,Object.defineProperty(E,"__esModule",{value:!0}),E}({})})(d),d.fetch.ponyfill=!0,delete d.fetch.polyfill;var x=d;O=x.fetch,O.default=x.fetch,O.fetch=x.fetch,O.Headers=x.Headers,O.Request=x.Request,O.Response=x.Response,h.exports=O},96789:(h,O,s)=>{"use strict";s.r(O),s.d(O,{Console:()=>Ix,ConsoleComponent:()=>gg});var d={};s.r(d),s.d(d,{JsonPatchError:()=>Sr,_areEquals:()=>ui,applyOperation:()=>li,applyPatch:()=>Fi,applyReducer:()=>ad,deepClone:()=>nd,getValueByPointer:()=>Eo,validate:()=>Hl,validator:()=>ks});var x={};s.r(x),s.d(x,{compare:()=>kf,generate:()=>Ba,observe:()=>Yr,unobserve:()=>If});var w={};s.r(w),s.d(w,{cookie:()=>i,header:()=>t,path:()=>Id,query:()=>kd});var A=s(49086),E=s(25575),F=s(24463),W=s(84870),Z=s(79494),ee=s(48145),ue=s(11807),ne=s(45055),ae=s(49800);function Y(e,r,n){return r in e?ae(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function P(e,r){var n=E(e);if(F){var a=F(e);r&&(a=W(a).call(a,function(o){return Z(e,o).enumerable})),n.push.apply(n,a)}return n}function G(e){for(var r=1;r<arguments.length;r++){var n,a,o=arguments[r]!=null?arguments[r]:{};r%2?ee(n=P(Object(o),!0)).call(n,function(c){Y(e,c,o[c])}):ue?ne(e,ue(o)):ee(a=P(Object(o))).call(a,function(c){ae(e,c,Z(o,c))})}return e}var N=s(45932),C=s.n(N),k=s(51661),j=s.n(k),J=s(883),K=s(57829),U=s(5490),re=s(72010),X=s(72383),z=s(50557);function ce(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function he(e,r){var n;if(!!e){if(typeof e=="string")return ce(e,r);var a=X(n=Object.prototype.toString.call(e)).call(n,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return z(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return ce(e,r)}}function _(e,r){var n=typeof K!="undefined"&&U(e)||e["@@iterator"];if(!n){if(re(e)||(n=he(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(y){throw y},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,p=!1,m;return{s:function(){n=n.call(e)},n:function(){var y=n.next();return c=y.done,y},e:function(y){p=!0,m=y},f:function(){try{!c&&n.return!=null&&n.return()}finally{if(p)throw m}}}}var Q=s(92876);function H(e){return H=typeof K=="function"&&typeof Q=="symbol"?function(r){return typeof r}:function(r){return r&&typeof K=="function"&&r.constructor===K&&r!==K.prototype?"symbol":typeof r},H(e)}function ye(e){if(re(e))return e}function ke(e,r){var n=e==null?null:typeof K!="undefined"&&U(e)||e["@@iterator"];if(n!=null){var a=[],o=!0,c=!1,p,m;try{for(n=n.call(e);!(o=(p=n.next()).done)&&(a.push(p.value),!(r&&a.length===r));o=!0);}catch(v){c=!0,m=v}finally{try{!o&&n.return!=null&&n.return()}finally{if(c)throw m}}return a}}function je(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function De(e,r){return ye(e)||ke(e,r)||he(e,r)||je()}var nt=s(64772);function tt(e,r,n,a,o,c,p){try{var m=e[c](p),v=m.value}catch(y){n(y);return}m.done?r(v):nt.resolve(v).then(a,o)}function bt(e){return function(){var r=this,n=arguments;return new nt(function(a,o){var c=e.apply(r,n);function p(v){tt(c,a,o,p,m,"next",v)}function m(v){tt(c,a,o,p,m,"throw",v)}p(void 0)})}}var Ne=s(99732),Oe=s.n(Ne),He=s(82985),Pe=s.n(He),Te=s(42126),Ye=s.n(Te),at=s(48621),jt=s.n(at),rt=s(85337),it=s.n(rt),Ft=s(14903),ot=s.n(Ft),or=s(2921),Je=s.n(or),Ct=s(40192),ze=s.n(Ct),Zr=s(31175),Er=s.n(Zr),un=s(40453),tr=s.n(un),Or=s(43616),_r=s(37794),Ze=s.n(_r);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function gt(e){return typeof e=="undefined"||e===null}function Lt(e){return typeof e=="object"&&e!==null}function Ot(e){return Array.isArray(e)?e:gt(e)?[]:[e]}function kt(e,r){var n,a,o,c;if(r)for(c=Object.keys(r),n=0,a=c.length;n<a;n+=1)o=c[n],e[o]=r[o];return e}function dt(e,r){var n="",a;for(a=0;a<r;a+=1)n+=e;return n}function mt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Tt=gt,st=Lt,Ue=Ot,fe=dt,be=mt,Be=kt,Ve={isNothing:Tt,isObject:st,toArray:Ue,repeat:fe,isNegativeZero:be,extend:Be};function lt(e,r){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
|
|
49
44
|
|
|
50
|
-
`+e.mark.snippet),a+" "+n):a}function
|
|
51
|
-
`+m;for(
|
|
52
|
-
`,m+=
|
|
53
|
-
`,
|
|
54
|
-
`;return m.replace(/\n$/,"")}var
|
|
55
|
-
\r`;function
|
|
56
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function
|
|
57
|
-
`,r-1))}function
|
|
58
|
-
`,
|
|
59
|
-
`);break}for(a?
|
|
60
|
-
`,
|
|
61
|
-
`,
|
|
62
|
-
`,
|
|
63
|
-
`,
|
|
64
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new
|
|
65
|
-
`,a),o===-1?(
|
|
66
|
-
`&&(
|
|
67
|
-
`+
|
|
45
|
+
`+e.mark.snippet),a+" "+n):a}function vt(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=lt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}vt.prototype=Object.create(Error.prototype),vt.prototype.constructor=vt,vt.prototype.toString=function(r){return this.name+": "+lt(this,r)};var Mt=vt;function pr(e,r,n,a,o){var c="",p="",m=Math.floor(o/2)-1;return a-r>m&&(c=" ... ",r=a-m+c.length),n-a>m&&(p=" ...",n=a+m-p.length),{str:c+e.slice(r,n).replace(/\t/g,"\u2192")+p,pos:a-r+c.length}}function Nt(e,r){return Ve.repeat(" ",r-e.length)+e}function Tr(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,a=[0],o=[],c,p=-1;c=n.exec(e.buffer);)o.push(c.index),a.push(c.index+c[0].length),e.position<=c.index&&p<0&&(p=a.length-2);p<0&&(p=a.length-1);var m="",v,y,b=Math.min(e.line+r.linesAfter,o.length).toString().length,I=r.maxLength-(r.indent+b+3);for(v=1;v<=r.linesBefore&&!(p-v<0);v++)y=pr(e.buffer,a[p-v],o[p-v],e.position-(a[p]-a[p-v]),I),m=Ve.repeat(" ",r.indent)+Nt((e.line-v+1).toString(),b)+" | "+y.str+`
|
|
46
|
+
`+m;for(y=pr(e.buffer,a[p],o[p],e.position,I),m+=Ve.repeat(" ",r.indent)+Nt((e.line+1).toString(),b)+" | "+y.str+`
|
|
47
|
+
`,m+=Ve.repeat("-",r.indent+b+3+y.pos)+`^
|
|
48
|
+
`,v=1;v<=r.linesAfter&&!(p+v>=o.length);v++)y=pr(e.buffer,a[p+v],o[p+v],e.position-(a[p]-a[p+v]),I),m+=Ve.repeat(" ",r.indent)+Nt((e.line+v+1).toString(),b)+" | "+y.str+`
|
|
49
|
+
`;return m.replace(/\n$/,"")}var yi=Tr,Hr=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],zr=["scalar","sequence","mapping"];function bi(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){r[String(a)]=n})}),r}function qr(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(Hr.indexOf(n)===-1)throw new Mt('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=bi(r.styleAliases||null),zr.indexOf(this.kind)===-1)throw new Mt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var gr=qr;function ei(e,r){var n=[];return e[r].forEach(function(a){var o=n.length;n.forEach(function(c,p){c.tag===a.tag&&c.kind===a.kind&&c.multi===a.multi&&(o=p)}),n[o]=a}),n}function en(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function a(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(a);return e}function ti(e){return this.extend(e)}ti.prototype.extend=function(r){var n=[],a=[];if(r instanceof gr)a.push(r);else if(Array.isArray(r))a=a.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(a=a.concat(r.explicit));else throw new Mt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(c){if(!(c instanceof gr))throw new Mt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new Mt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new Mt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(c){if(!(c instanceof gr))throw new Mt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(ti.prototype);return o.implicit=(this.implicit||[]).concat(n),o.explicit=(this.explicit||[]).concat(a),o.compiledImplicit=ei(o,"implicit"),o.compiledExplicit=ei(o,"explicit"),o.compiledTypeMap=en(o.compiledImplicit,o.compiledExplicit),o};var Un=ti,xi=new gr("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),_i=new gr("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),gn=new gr("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),fn=new Un({explicit:[xi,_i,gn]});function An(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function Cn(){return null}function Pn(e){return e===null}var Sa=new gr("tag:yaml.org,2002:null",{kind:"scalar",resolve:An,construct:Cn,predicate:Pn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Wn(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function cn(e){return e==="true"||e==="True"||e==="TRUE"}function Pr(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ri=new gr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Wn,construct:cn,predicate:Pr,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function In(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function wa(e){return 48<=e&&e<=55}function Qo(e){return 48<=e&&e<=57}function hr(e){if(e===null)return!1;var r=e.length,n=0,a=!1,o;if(!r)return!1;if(o=e[n],(o==="-"||o==="+")&&(o=e[++n]),o==="0"){if(n+1===r)return!0;if(o=e[++n],o==="b"){for(n++;n<r;n++)if(o=e[n],o!=="_"){if(o!=="0"&&o!=="1")return!1;a=!0}return a&&o!=="_"}if(o==="x"){for(n++;n<r;n++)if(o=e[n],o!=="_"){if(!In(e.charCodeAt(n)))return!1;a=!0}return a&&o!=="_"}if(o==="o"){for(n++;n<r;n++)if(o=e[n],o!=="_"){if(!wa(e.charCodeAt(n)))return!1;a=!0}return a&&o!=="_"}}if(o==="_")return!1;for(;n<r;n++)if(o=e[n],o!=="_"){if(!Qo(e.charCodeAt(n)))return!1;a=!0}return!(!a||o==="_")}function ut(e){var r=e,n=1,a;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),a=r[0],(a==="-"||a==="+")&&(a==="-"&&(n=-1),r=r.slice(1),a=r[0]),r==="0")return 0;if(a==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function Si(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ve.isNegativeZero(e)}var Ui=new gr("tag:yaml.org,2002:int",{kind:"scalar",resolve:hr,construct:ut,predicate:Si,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),kn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Zt(e){return!(e===null||!kn.test(e)||e[e.length-1]==="_")}function wi(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var qi=/^[-+]?[0-9]+e/;function Aa(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ve.isNegativeZero(e))return"-0.0";return n=e.toString(10),qi.test(n)?n.replace("e",".e"):n}function D(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ve.isNegativeZero(e))}var oe=new gr("tag:yaml.org,2002:float",{kind:"scalar",resolve:Zt,construct:wi,predicate:D,represent:Aa,defaultStyle:"lowercase"}),Re=fn.extend({implicit:[Sa,ri,Ui,oe]}),Ge=Re,Pt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ht=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function rr(e){return e===null?!1:Pt.exec(e)!==null||Ht.exec(e)!==null}function ft(e){var r,n,a,o,c,p,m,v=0,y=null,b,I,R;if(r=Pt.exec(e),r===null&&(r=Ht.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],a=+r[2]-1,o=+r[3],!r[4])return new Date(Date.UTC(n,a,o));if(c=+r[4],p=+r[5],m=+r[6],r[7]){for(v=r[7].slice(0,3);v.length<3;)v+="0";v=+v}return r[9]&&(b=+r[10],I=+(r[11]||0),y=(b*60+I)*6e4,r[9]==="-"&&(y=-y)),R=new Date(Date.UTC(n,a,o,c,p,m,v)),y&&R.setTime(R.getTime()-y),R}function Fn(e){return e.toISOString()}var eo=new gr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:rr,construct:ft,instanceOf:Date,represent:Fn});function Zo(e){return e==="<<"||e===null}var Hn=new gr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Zo}),_o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
50
|
+
\r`;function Bu(e){if(e===null)return!1;var r,n,a=0,o=e.length,c=_o;for(n=0;n<o;n++)if(r=c.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;a+=6}return a%8===0}function to(e){var r,n,a=e.replace(/[\r\n=]/g,""),o=a.length,c=_o,p=0,m=[];for(r=0;r<o;r++)r%4===0&&r&&(m.push(p>>16&255),m.push(p>>8&255),m.push(p&255)),p=p<<6|c.indexOf(a.charAt(r));return n=o%4*6,n===0?(m.push(p>>16&255),m.push(p>>8&255),m.push(p&255)):n===18?(m.push(p>>10&255),m.push(p>>2&255)):n===12&&m.push(p>>4&255),new Uint8Array(m)}function il(e){var r="",n=0,a,o,c=e.length,p=_o;for(a=0;a<c;a++)a%3===0&&a&&(r+=p[n>>18&63],r+=p[n>>12&63],r+=p[n>>6&63],r+=p[n&63]),n=(n<<8)+e[a];return o=c%3,o===0?(r+=p[n>>18&63],r+=p[n>>12&63],r+=p[n>>6&63],r+=p[n&63]):o===2?(r+=p[n>>10&63],r+=p[n>>4&63],r+=p[n<<2&63],r+=p[64]):o===1&&(r+=p[n>>2&63],r+=p[n<<4&63],r+=p[64],r+=p[64]),r}function ju(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var qo=new gr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Bu,construct:to,predicate:ju,represent:il}),Vu=Object.prototype.hasOwnProperty,Uu=Object.prototype.toString;function Wu(e){if(e===null)return!0;var r=[],n,a,o,c,p,m=e;for(n=0,a=m.length;n<a;n+=1){if(o=m[n],p=!1,Uu.call(o)!=="[object Object]")return!1;for(c in o)if(Vu.call(o,c))if(!p)p=!0;else return!1;if(!p)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function Hu(e){return e!==null?e:[]}var zu=new gr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Wu,construct:Hu}),Rc=Object.prototype.toString;function Gu(e){if(e===null)return!0;var r,n,a,o,c,p=e;for(c=new Array(p.length),r=0,n=p.length;r<n;r+=1){if(a=p[r],Rc.call(a)!=="[object Object]"||(o=Object.keys(a),o.length!==1))return!1;c[r]=[o[0],a[o[0]]]}return!0}function Ai(e){if(e===null)return[];var r,n,a,o,c,p=e;for(c=new Array(p.length),r=0,n=p.length;r<n;r+=1)a=p[r],o=Object.keys(a),c[r]=[o[0],a[o[0]]];return c}var $u=new gr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Gu,construct:Ai}),Lc=Object.prototype.hasOwnProperty;function es(e){if(e===null)return!0;var r,n=e;for(r in n)if(Lc.call(n,r)&&n[r]!==null)return!1;return!0}function ro(e){return e!==null?e:{}}var Ku=new gr("tag:yaml.org,2002:set",{kind:"mapping",resolve:es,construct:ro}),al=Ge.extend({implicit:[eo,Hn],explicit:[qo,zu,$u,Ku]}),Wi=Object.prototype.hasOwnProperty,ts=1,rs=2,ol=3,ns=4,is=1,Yu=2,no=3,as=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,sl=/[\x85\u2028\u2029]/,Ju=/[,\[\]\{\}]/,ll=/^(?:!|!!|![a-z\-]+!)$/i,io=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Xu(e){return Object.prototype.toString.call(e)}function zn(e){return e===10||e===13}function Gr(e){return e===9||e===32}function mn(e){return e===9||e===32||e===10||e===13}function Ca(e){return e===44||e===91||e===93||e===123||e===125}function ul(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function Qu(e){return e===120?2:e===117?4:e===85?8:0}function Hi(e){return 48<=e&&e<=57?e-48:-1}function os(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
51
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Ci(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var ao=new Array(256),ss=new Array(256),Gn=0;Gn<256;Gn++)ao[Gn]=os(Gn)?1:0,ss[Gn]=os(Gn);function Mc(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||al,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Zu(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=yi(n),new Mt(r,n)}function xt(e,r){throw Zu(e,r)}function ls(e,r){e.onWarning&&e.onWarning.call(null,Zu(e,r))}var fl={YAML:function(r,n,a){var o,c,p;r.version!==null&&xt(r,"duplication of %YAML directive"),a.length!==1&&xt(r,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),o===null&&xt(r,"ill-formed argument of the YAML directive"),c=parseInt(o[1],10),p=parseInt(o[2],10),c!==1&&xt(r,"unacceptable YAML version of the document"),r.version=a[0],r.checkLineBreaks=p<2,p!==1&&p!==2&&ls(r,"unsupported YAML version of the document")},TAG:function(r,n,a){var o,c;a.length!==2&&xt(r,"TAG directive accepts exactly two arguments"),o=a[0],c=a[1],ll.test(o)||xt(r,"ill-formed tag handle (first argument) of the TAG directive"),Wi.call(r.tagMap,o)&&xt(r,'there is a previously declared suffix for "'+o+'" tag handle'),io.test(c)||xt(r,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch(p){xt(r,"tag prefix is malformed: "+c)}r.tagMap[o]=c}};function Ei(e,r,n,a){var o,c,p,m;if(r<n){if(m=e.input.slice(r,n),a)for(o=0,c=m.length;o<c;o+=1)p=m.charCodeAt(o),p===9||32<=p&&p<=1114111||xt(e,"expected valid JSON character");else as.test(m)&&xt(e,"the stream contains non-printable characters");e.result+=m}}function _u(e,r,n,a){var o,c,p,m;for(Ve.isObject(n)||xt(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(n),p=0,m=o.length;p<m;p+=1)c=o[p],Wi.call(r,c)||(r[c]=n[c],a[c]=!0)}function Ea(e,r,n,a,o,c,p,m,v){var y,b;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),y=0,b=o.length;y<b;y+=1)Array.isArray(o[y])&&xt(e,"nested arrays are not supported inside keys"),typeof o=="object"&&Xu(o[y])==="[object Object]"&&(o[y]="[object Object]");if(typeof o=="object"&&Xu(o)==="[object Object]"&&(o="[object Object]"),o=String(o),r===null&&(r={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(y=0,b=c.length;y<b;y+=1)_u(e,r,c[y],n);else _u(e,r,c,n);else!e.json&&!Wi.call(n,o)&&Wi.call(r,o)&&(e.line=p||e.line,e.lineStart=m||e.lineStart,e.position=v||e.position,xt(e,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(r,o,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[o]=c,delete n[o];return r}function cl(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):xt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Fr(e,r,n){for(var a=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Gr(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(r&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(zn(o))for(cl(e),o=e.input.charCodeAt(e.position),a++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return n!==-1&&a!==0&&e.lineIndent<n&&ls(e,"deficient indentation"),a}function oo(e){var r=e.position,n;return n=e.input.charCodeAt(r),!!((n===45||n===46)&&n===e.input.charCodeAt(r+1)&&n===e.input.charCodeAt(r+2)&&(r+=3,n=e.input.charCodeAt(r),n===0||mn(n)))}function dl(e,r){r===1?e.result+=" ":r>1&&(e.result+=Ve.repeat(`
|
|
52
|
+
`,r-1))}function qu(e,r,n){var a,o,c,p,m,v,y,b,I=e.kind,R=e.result,B;if(B=e.input.charCodeAt(e.position),mn(B)||Ca(B)||B===35||B===38||B===42||B===33||B===124||B===62||B===39||B===34||B===37||B===64||B===96||(B===63||B===45)&&(o=e.input.charCodeAt(e.position+1),mn(o)||n&&Ca(o)))return!1;for(e.kind="scalar",e.result="",c=p=e.position,m=!1;B!==0;){if(B===58){if(o=e.input.charCodeAt(e.position+1),mn(o)||n&&Ca(o))break}else if(B===35){if(a=e.input.charCodeAt(e.position-1),mn(a))break}else{if(e.position===e.lineStart&&oo(e)||n&&Ca(B))break;if(zn(B))if(v=e.line,y=e.lineStart,b=e.lineIndent,Fr(e,!1,-1),e.lineIndent>=r){m=!0,B=e.input.charCodeAt(e.position);continue}else{e.position=p,e.line=v,e.lineStart=y,e.lineIndent=b;break}}m&&(Ei(e,c,p,!1),dl(e,e.line-v),c=p=e.position,m=!1),Gr(B)||(p=e.position+1),B=e.input.charCodeAt(++e.position)}return Ei(e,c,p,!1),e.result?!0:(e.kind=I,e.result=R,!1)}function us(e,r){var n,a,o;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=o=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ei(e,a,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)a=e.position,e.position++,o=e.position;else return!0;else zn(n)?(Ei(e,a,o,!0),dl(e,Fr(e,!1,r)),a=o=e.position):e.position===e.lineStart&&oo(e)?xt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);xt(e,"unexpected end of the stream within a single quoted scalar")}function Oa(e,r){var n,a,o,c,p,m;if(m=e.input.charCodeAt(e.position),m!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(m=e.input.charCodeAt(e.position))!==0;){if(m===34)return Ei(e,n,e.position,!0),e.position++,!0;if(m===92){if(Ei(e,n,e.position,!0),m=e.input.charCodeAt(++e.position),zn(m))Fr(e,!1,r);else if(m<256&&ao[m])e.result+=ss[m],e.position++;else if((p=Qu(m))>0){for(o=p,c=0;o>0;o--)m=e.input.charCodeAt(++e.position),(p=ul(m))>=0?c=(c<<4)+p:xt(e,"expected hexadecimal character");e.result+=Ci(c),e.position++}else xt(e,"unknown escape sequence");n=a=e.position}else zn(m)?(Ei(e,n,a,!0),dl(e,Fr(e,!1,r)),n=a=e.position):e.position===e.lineStart&&oo(e)?xt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}xt(e,"unexpected end of the stream within a double quoted scalar")}function Nc(e,r){var n=!0,a,o,c,p=e.tag,m,v=e.anchor,y,b,I,R,B,$=Object.create(null),te,q,se,ie;if(ie=e.input.charCodeAt(e.position),ie===91)b=93,B=!1,m=[];else if(ie===123)b=125,B=!0,m={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=m),ie=e.input.charCodeAt(++e.position);ie!==0;){if(Fr(e,!0,r),ie=e.input.charCodeAt(e.position),ie===b)return e.position++,e.tag=p,e.anchor=v,e.kind=B?"mapping":"sequence",e.result=m,!0;n?ie===44&&xt(e,"expected the node content, but found ','"):xt(e,"missed comma between flow collection entries"),q=te=se=null,I=R=!1,ie===63&&(y=e.input.charCodeAt(e.position+1),mn(y)&&(I=R=!0,e.position++,Fr(e,!0,r))),a=e.line,o=e.lineStart,c=e.position,ni(e,r,ts,!1,!0),q=e.tag,te=e.result,Fr(e,!0,r),ie=e.input.charCodeAt(e.position),(R||e.line===a)&&ie===58&&(I=!0,ie=e.input.charCodeAt(++e.position),Fr(e,!0,r),ni(e,r,ts,!1,!0),se=e.result),B?Ea(e,m,$,q,te,se,a,o,c):I?m.push(Ea(e,null,$,q,te,se,a,o,c)):m.push(te),Fr(e,!0,r),ie=e.input.charCodeAt(e.position),ie===44?(n=!0,ie=e.input.charCodeAt(++e.position)):n=!1}xt(e,"unexpected end of the stream within a flow collection")}function Dc(e,r){var n,a,o=is,c=!1,p=!1,m=r,v=0,y=!1,b,I;if(I=e.input.charCodeAt(e.position),I===124)a=!1;else if(I===62)a=!0;else return!1;for(e.kind="scalar",e.result="";I!==0;)if(I=e.input.charCodeAt(++e.position),I===43||I===45)is===o?o=I===43?no:Yu:xt(e,"repeat of a chomping mode identifier");else if((b=Hi(I))>=0)b===0?xt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?xt(e,"repeat of an indentation width identifier"):(m=r+b-1,p=!0);else break;if(Gr(I)){do I=e.input.charCodeAt(++e.position);while(Gr(I));if(I===35)do I=e.input.charCodeAt(++e.position);while(!zn(I)&&I!==0)}for(;I!==0;){for(cl(e),e.lineIndent=0,I=e.input.charCodeAt(e.position);(!p||e.lineIndent<m)&&I===32;)e.lineIndent++,I=e.input.charCodeAt(++e.position);if(!p&&e.lineIndent>m&&(m=e.lineIndent),zn(I)){v++;continue}if(e.lineIndent<m){o===no?e.result+=Ve.repeat(`
|
|
53
|
+
`,c?1+v:v):o===is&&c&&(e.result+=`
|
|
54
|
+
`);break}for(a?Gr(I)?(y=!0,e.result+=Ve.repeat(`
|
|
55
|
+
`,c?1+v:v)):y?(y=!1,e.result+=Ve.repeat(`
|
|
56
|
+
`,v+1)):v===0?c&&(e.result+=" "):e.result+=Ve.repeat(`
|
|
57
|
+
`,v):e.result+=Ve.repeat(`
|
|
58
|
+
`,c?1+v:v),c=!0,p=!0,v=0,n=e.position;!zn(I)&&I!==0;)I=e.input.charCodeAt(++e.position);Ei(e,n,e.position,!1)}return!0}function ef(e,r){var n,a=e.tag,o=e.anchor,c=[],p,m=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),v=e.input.charCodeAt(e.position);v!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,xt(e,"tab characters must not be used in indentation")),!(v!==45||(p=e.input.charCodeAt(e.position+1),!mn(p))));){if(m=!0,e.position++,Fr(e,!0,-1)&&e.lineIndent<=r){c.push(null),v=e.input.charCodeAt(e.position);continue}if(n=e.line,ni(e,r,ol,!1,!0),c.push(e.result),Fr(e,!0,-1),v=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>r)&&v!==0)xt(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return m?(e.tag=a,e.anchor=o,e.kind="sequence",e.result=c,!0):!1}function so(e,r,n){var a,o,c,p,m,v,y=e.tag,b=e.anchor,I={},R=Object.create(null),B=null,$=null,te=null,q=!1,se=!1,ie;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=I),ie=e.input.charCodeAt(e.position);ie!==0;){if(!q&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,xt(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),c=e.line,(ie===63||ie===58)&&mn(a))ie===63?(q&&(Ea(e,I,R,B,$,null,p,m,v),B=$=te=null),se=!0,q=!0,o=!0):q?(q=!1,o=!0):xt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,ie=a;else{if(p=e.line,m=e.lineStart,v=e.position,!ni(e,n,rs,!1,!0))break;if(e.line===c){for(ie=e.input.charCodeAt(e.position);Gr(ie);)ie=e.input.charCodeAt(++e.position);if(ie===58)ie=e.input.charCodeAt(++e.position),mn(ie)||xt(e,"a whitespace character is expected after the key-value separator within a block mapping"),q&&(Ea(e,I,R,B,$,null,p,m,v),B=$=te=null),se=!0,q=!1,o=!1,B=e.tag,$=e.result;else if(se)xt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=y,e.anchor=b,!0}else if(se)xt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=y,e.anchor=b,!0}if((e.line===c||e.lineIndent>r)&&(q&&(p=e.line,m=e.lineStart,v=e.position),ni(e,r,ns,!0,o)&&(q?$=e.result:te=e.result),q||(Ea(e,I,R,B,$,te,p,m,v),B=$=te=null),Fr(e,!0,-1),ie=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&ie!==0)xt(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return q&&Ea(e,I,R,B,$,null,p,m,v),se&&(e.tag=y,e.anchor=b,e.kind="mapping",e.result=I),se}function Br(e){var r,n=!1,a=!1,o,c,p;if(p=e.input.charCodeAt(e.position),p!==33)return!1;if(e.tag!==null&&xt(e,"duplication of a tag property"),p=e.input.charCodeAt(++e.position),p===60?(n=!0,p=e.input.charCodeAt(++e.position)):p===33?(a=!0,o="!!",p=e.input.charCodeAt(++e.position)):o="!",r=e.position,n){do p=e.input.charCodeAt(++e.position);while(p!==0&&p!==62);e.position<e.length?(c=e.input.slice(r,e.position),p=e.input.charCodeAt(++e.position)):xt(e,"unexpected end of the stream within a verbatim tag")}else{for(;p!==0&&!mn(p);)p===33&&(a?xt(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(r-1,e.position+1),ll.test(o)||xt(e,"named tag handle cannot contain such characters"),a=!0,r=e.position+1)),p=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),Ju.test(c)&&xt(e,"tag suffix cannot contain flow indicator characters")}c&&!io.test(c)&&xt(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch(m){xt(e,"tag name is malformed: "+c)}return n?e.tag=c:Wi.call(e.tagMap,o)?e.tag=e.tagMap[o]+c:o==="!"?e.tag="!"+c:o==="!!"?e.tag="tag:yaml.org,2002:"+c:xt(e,'undeclared tag handle "'+o+'"'),!0}function Bc(e){var r,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&xt(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!mn(n)&&!Ca(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&xt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function tf(e){var r,n,a;if(a=e.input.charCodeAt(e.position),a!==42)return!1;for(a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!mn(a)&&!Ca(a);)a=e.input.charCodeAt(++e.position);return e.position===r&&xt(e,"name of an alias node must contain at least one character"),n=e.input.slice(r,e.position),Wi.call(e.anchorMap,n)||xt(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Fr(e,!0,-1),!0}function ni(e,r,n,a,o){var c,p,m,v=1,y=!1,b=!1,I,R,B,$,te,q;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=p=m=ns===n||ol===n,a&&Fr(e,!0,-1)&&(y=!0,e.lineIndent>r?v=1:e.lineIndent===r?v=0:e.lineIndent<r&&(v=-1)),v===1)for(;Br(e)||Bc(e);)Fr(e,!0,-1)?(y=!0,m=c,e.lineIndent>r?v=1:e.lineIndent===r?v=0:e.lineIndent<r&&(v=-1)):m=!1;if(m&&(m=y||o),(v===1||ns===n)&&(ts===n||rs===n?te=r:te=r+1,q=e.position-e.lineStart,v===1?m&&(ef(e,q)||so(e,q,te))||Nc(e,te)?b=!0:(p&&Dc(e,te)||us(e,te)||Oa(e,te)?b=!0:tf(e)?(b=!0,(e.tag!==null||e.anchor!==null)&&xt(e,"alias node should not have any properties")):qu(e,te,ts===n)&&(b=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):v===0&&(b=m&&ef(e,q))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&xt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),I=0,R=e.implicitTypes.length;I<R;I+=1)if($=e.implicitTypes[I],$.resolve(e.result)){e.result=$.construct(e.result),e.tag=$.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Wi.call(e.typeMap[e.kind||"fallback"],e.tag))$=e.typeMap[e.kind||"fallback"][e.tag];else for($=null,B=e.typeMap.multi[e.kind||"fallback"],I=0,R=B.length;I<R;I+=1)if(e.tag.slice(0,B[I].tag.length)===B[I].tag){$=B[I];break}$||xt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&$.kind!==e.kind&&xt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+$.kind+'", not "'+e.kind+'"'),$.resolve(e.result,e.tag)?(e.result=$.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):xt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||b}function jc(e){var r=e.position,n,a,o,c=!1,p;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(p=e.input.charCodeAt(e.position))!==0&&(Fr(e,!0,-1),p=e.input.charCodeAt(e.position),!(e.lineIndent>0||p!==37));){for(c=!0,p=e.input.charCodeAt(++e.position),n=e.position;p!==0&&!mn(p);)p=e.input.charCodeAt(++e.position);for(a=e.input.slice(n,e.position),o=[],a.length<1&&xt(e,"directive name must not be less than one character in length");p!==0;){for(;Gr(p);)p=e.input.charCodeAt(++e.position);if(p===35){do p=e.input.charCodeAt(++e.position);while(p!==0&&!zn(p));break}if(zn(p))break;for(n=e.position;p!==0&&!mn(p);)p=e.input.charCodeAt(++e.position);o.push(e.input.slice(n,e.position))}p!==0&&cl(e),Wi.call(fl,a)?fl[a](e,a,o):ls(e,'unknown document directive "'+a+'"')}if(Fr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Fr(e,!0,-1)):c&&xt(e,"directives end mark is expected"),ni(e,e.lineIndent-1,ns,!1,!0),Fr(e,!0,-1),e.checkLineBreaks&&sl.test(e.input.slice(r,e.position))&&ls(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&oo(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Fr(e,!0,-1));return}if(e.position<e.length-1)xt(e,"end of the stream or a document separator is expected");else return}function pl(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
59
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new Mc(e,r),a=e.indexOf("\0");for(a!==-1&&(n.position=a,xt(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)jc(n);return n.documents}function Vc(e,r,n){r!==null&&typeof r=="object"&&typeof n=="undefined"&&(n=r,r=null);var a=pl(e,n);if(typeof r!="function")return a;for(var o=0,c=a.length;o<c;o+=1)r(a[o])}function hl(e,r){var n=pl(e,r);if(n.length!==0){if(n.length===1)return n[0];throw new Mt("expected a single document in the stream, but found more")}}var rf=Vc,Uc=hl,nf={loadAll:rf,load:Uc},vl=Object.prototype.toString,gl=Object.prototype.hasOwnProperty,ml=65279,lo=9,En=10,fs=13,yl=32,af=33,ii=34,Oi=35,bl=37,Wc=38,of=39,Hc=42,xl=44,Sl=45,Ti=58,ai=61,sf=62,lf=63,zc=64,uf=91,ff=93,cf=96,wl=123,uo=124,Al=125,$r={};$r[0]="\\0",$r[7]="\\a",$r[8]="\\b",$r[9]="\\t",$r[10]="\\n",$r[11]="\\v",$r[12]="\\f",$r[13]="\\r",$r[27]="\\e",$r[34]='\\"',$r[92]="\\\\",$r[133]="\\N",$r[160]="\\_",$r[8232]="\\L",$r[8233]="\\P";var Cl=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],cs=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function df(e,r){var n,a,o,c,p,m,v;if(r===null)return{};for(n={},a=Object.keys(r),o=0,c=a.length;o<c;o+=1)p=a[o],m=String(r[p]),p.slice(0,2)==="!!"&&(p="tag:yaml.org,2002:"+p.slice(2)),v=e.compiledTypeMap.fallback[p],v&&gl.call(v.styleAliases,m)&&(m=v.styleAliases[m]),n[p]=m;return n}function ds(e){var r,n,a;if(r=e.toString(16).toUpperCase(),e<=255)n="x",a=2;else if(e<=65535)n="u",a=4;else if(e<=4294967295)n="U",a=8;else throw new Mt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Ve.repeat("0",a-r.length)+r}var $n=1,Ta=2;function El(e){this.schema=e.schema||al,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ve.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=df(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Ta:$n,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ps(e,r){for(var n=Ve.repeat(" ",r),a=0,o=-1,c="",p,m=e.length;a<m;)o=e.indexOf(`
|
|
60
|
+
`,a),o===-1?(p=e.slice(a),a=m):(p=e.slice(a,o+1),a=o+1),p.length&&p!==`
|
|
61
|
+
`&&(c+=n),c+=p;return c}function hs(e,r){return`
|
|
62
|
+
`+Ve.repeat(" ",e.indent*r)}function pf(e,r){var n,a,o;for(n=0,a=e.implicitTypes.length;n<a;n+=1)if(o=e.implicitTypes[n],o.resolve(r))return!0;return!1}function Pa(e){return e===yl||e===lo}function fo(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==ml||65536<=e&&e<=1114111}function hf(e){return fo(e)&&e!==ml&&e!==fs&&e!==En}function vf(e,r,n){var a=hf(e),o=a&&!Pa(e);return(n?a:a&&e!==xl&&e!==uf&&e!==ff&&e!==wl&&e!==Al)&&e!==Oi&&!(r===Ti&&!o)||hf(r)&&!Pa(r)&&e===Oi||r===Ti&&o}function ea(e){return fo(e)&&e!==ml&&!Pa(e)&&e!==Sl&&e!==lf&&e!==Ti&&e!==xl&&e!==uf&&e!==ff&&e!==wl&&e!==Al&&e!==Oi&&e!==Wc&&e!==Hc&&e!==af&&e!==uo&&e!==ai&&e!==sf&&e!==of&&e!==ii&&e!==bl&&e!==zc&&e!==cf}function Ia(e){return!Pa(e)&&e!==Ti}function oi(e,r){var n=e.charCodeAt(r),a;return n>=55296&&n<=56319&&r+1<e.length&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function vs(e){var r=/^\n* /;return r.test(e)}var gs=1,ms=2,ys=3,zi=4,Rn=5;function dn(e,r,n,a,o,c,p,m){var v,y=0,b=null,I=!1,R=!1,B=a!==-1,$=-1,te=ea(oi(e,0))&&Ia(oi(e,e.length-1));if(r||p)for(v=0;v<e.length;y>=65536?v+=2:v++){if(y=oi(e,v),!fo(y))return Rn;te=te&&vf(y,b,m),b=y}else{for(v=0;v<e.length;y>=65536?v+=2:v++){if(y=oi(e,v),y===En)I=!0,B&&(R=R||v-$-1>a&&e[$+1]!==" ",$=v);else if(!fo(y))return Rn;te=te&&vf(y,b,m),b=y}R=R||B&&v-$-1>a&&e[$+1]!==" "}return!I&&!R?te&&!p&&!o(e)?gs:c===Ta?Rn:ms:n>9&&vs(e)?Rn:p?c===Ta?Rn:ms:R?zi:ys}function Gi(e,r,n,a,o){e.dump=function(){if(r.length===0)return e.quotingType===Ta?'""':"''";if(!e.noCompatMode&&(Cl.indexOf(r)!==-1||cs.test(r)))return e.quotingType===Ta?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,n),p=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),m=a||e.flowLevel>-1&&n>=e.flowLevel;function v(y){return pf(e,y)}switch(dn(r,m,e.indent,p,v,e.quotingType,e.forceQuotes&&!a,o)){case gs:return r;case ms:return"'"+r.replace(/'/g,"''")+"'";case ys:return"|"+Pi(r,e.indent)+co(ps(r,c));case zi:return">"+Pi(r,e.indent)+co(ps(Gc(r,p),c));case Rn:return'"'+po(r)+'"';default:throw new Mt("impossible error: invalid scalar style")}}()}function Pi(e,r){var n=vs(e)?String(r):"",a=e[e.length-1]===`
|
|
68
63
|
`,o=a&&(e[e.length-2]===`
|
|
69
64
|
`||e===`
|
|
70
|
-
`),
|
|
71
|
-
`}function
|
|
72
|
-
`?e.slice(0,-1):e}function
|
|
73
|
-
`);return
|
|
74
|
-
`||e[0]===" ",
|
|
75
|
-
`:"")+
|
|
76
|
-
`+e.slice(o,
|
|
77
|
-
`,e.length-o>r&&
|
|
78
|
-
`+e.slice(
|
|
79
|
-
`:""}var ka
|
|
80
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
65
|
+
`),c=o?"+":a?"":"-";return n+c+`
|
|
66
|
+
`}function co(e){return e[e.length-1]===`
|
|
67
|
+
`?e.slice(0,-1):e}function Gc(e,r){for(var n=/(\n+)([^\n]*)/g,a=function(){var y=e.indexOf(`
|
|
68
|
+
`);return y=y!==-1?y:e.length,n.lastIndex=y,Ol(e.slice(0,y),r)}(),o=e[0]===`
|
|
69
|
+
`||e[0]===" ",c,p;p=n.exec(e);){var m=p[1],v=p[2];c=v[0]===" ",a+=m+(!o&&!c&&v!==""?`
|
|
70
|
+
`:"")+Ol(v,r),o=c}return a}function Ol(e,r){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,a,o=0,c,p=0,m=0,v="";a=n.exec(e);)m=a.index,m-o>r&&(c=p>o?p:m,v+=`
|
|
71
|
+
`+e.slice(o,c),o=c+1),p=m;return v+=`
|
|
72
|
+
`,e.length-o>r&&p>o?v+=e.slice(o,p)+`
|
|
73
|
+
`+e.slice(p+1):v+=e.slice(o),v.slice(1)}function po(e){for(var r="",n=0,a,o=0;o<e.length;n>=65536?o+=2:o++)n=oi(e,o),a=$r[n],!a&&fo(n)?(r+=e[o],n>=65536&&(r+=e[o+1])):r+=a||ds(n);return r}function gf(e,r,n){var a="",o=e.tag,c,p,m;for(c=0,p=n.length;c<p;c+=1)m=n[c],e.replacer&&(m=e.replacer.call(n,String(c),m)),(si(e,r,m,!1,!1)||typeof m=="undefined"&&si(e,r,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=o,e.dump="["+a+"]"}function bs(e,r,n,a){var o="",c=e.tag,p,m,v;for(p=0,m=n.length;p<m;p+=1)v=n[p],e.replacer&&(v=e.replacer.call(n,String(p),v)),(si(e,r+1,v,!0,!0,!1,!0)||typeof v=="undefined"&&si(e,r+1,null,!0,!0,!1,!0))&&((!a||o!=="")&&(o+=hs(e,r)),e.dump&&En===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=c,e.dump=o||"[]"}function xs(e,r,n){var a="",o=e.tag,c=Object.keys(n),p,m,v,y,b;for(p=0,m=c.length;p<m;p+=1)b="",a!==""&&(b+=", "),e.condenseFlow&&(b+='"'),v=c[p],y=n[v],e.replacer&&(y=e.replacer.call(n,v,y)),si(e,r,v,!1,!1)&&(e.dump.length>1024&&(b+="? "),b+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),si(e,r,y,!1,!1)&&(b+=e.dump,a+=b));e.tag=o,e.dump="{"+a+"}"}function $c(e,r,n,a){var o="",c=e.tag,p=Object.keys(n),m,v,y,b,I,R;if(e.sortKeys===!0)p.sort();else if(typeof e.sortKeys=="function")p.sort(e.sortKeys);else if(e.sortKeys)throw new Mt("sortKeys must be a boolean or a function");for(m=0,v=p.length;m<v;m+=1)R="",(!a||o!=="")&&(R+=hs(e,r)),y=p[m],b=n[y],e.replacer&&(b=e.replacer.call(n,y,b)),si(e,r+1,y,!0,!0,!0)&&(I=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,I&&(e.dump&&En===e.dump.charCodeAt(0)?R+="?":R+="? "),R+=e.dump,I&&(R+=hs(e,r)),si(e,r+1,b,!0,I)&&(e.dump&&En===e.dump.charCodeAt(0)?R+=":":R+=": ",R+=e.dump,o+=R));e.tag=c,e.dump=o||"{}"}function Ss(e,r,n){var a,o,c,p,m,v;for(o=n?e.explicitTypes:e.implicitTypes,c=0,p=o.length;c<p;c+=1)if(m=o[c],(m.instanceOf||m.predicate)&&(!m.instanceOf||typeof r=="object"&&r instanceof m.instanceOf)&&(!m.predicate||m.predicate(r))){if(n?m.multi&&m.representName?e.tag=m.representName(r):e.tag=m.tag:e.tag="?",m.represent){if(v=e.styleMap[m.tag]||m.defaultStyle,vl.call(m.represent)==="[object Function]")a=m.represent(r,v);else if(gl.call(m.represent,v))a=m.represent[v](r,v);else throw new Mt("!<"+m.tag+'> tag resolver accepts not "'+v+'" style');e.dump=a}return!0}return!1}function si(e,r,n,a,o,c,p){e.tag=null,e.dump=n,Ss(e,n,!1)||Ss(e,n,!0);var m=vl.call(e.dump),v=a,y;a&&(a=e.flowLevel<0||e.flowLevel>r);var b=m==="[object Object]"||m==="[object Array]",I,R;if(b&&(I=e.duplicates.indexOf(n),R=I!==-1),(e.tag!==null&&e.tag!=="?"||R||e.indent!==2&&r>0)&&(o=!1),R&&e.usedDuplicates[I])e.dump="*ref_"+I;else{if(b&&R&&!e.usedDuplicates[I]&&(e.usedDuplicates[I]=!0),m==="[object Object]")a&&Object.keys(e.dump).length!==0?($c(e,r,e.dump,o),R&&(e.dump="&ref_"+I+e.dump)):(xs(e,r,e.dump),R&&(e.dump="&ref_"+I+" "+e.dump));else if(m==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!p&&r>0?bs(e,r-1,e.dump,o):bs(e,r,e.dump,o),R&&(e.dump="&ref_"+I+e.dump)):(gf(e,r,e.dump),R&&(e.dump="&ref_"+I+" "+e.dump));else if(m==="[object String]")e.tag!=="?"&&Gi(e,e.dump,r,c,v);else{if(m==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Mt("unacceptable kind of an object to dump "+m)}e.tag!==null&&e.tag!=="?"&&(y=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?y="!"+y:y.slice(0,18)==="tag:yaml.org,2002:"?y="!!"+y.slice(18):y="!<"+y+">",e.dump=y+" "+e.dump)}return!0}function Tl(e,r){var n=[],a=[],o,c;for(ho(e,n,a),o=0,c=a.length;o<c;o+=1)r.duplicates.push(n[a[o]]);r.usedDuplicates=new Array(c)}function ho(e,r,n){var a,o,c;if(e!==null&&typeof e=="object")if(o=r.indexOf(e),o!==-1)n.indexOf(o)===-1&&n.push(o);else if(r.push(e),Array.isArray(e))for(o=0,c=e.length;o<c;o+=1)ho(e[o],r,n);else for(a=Object.keys(e),o=0,c=a.length;o<c;o+=1)ho(e[a[o]],r,n)}function ka(e,r){r=r||{};var n=new El(r);n.noRefs||Tl(e,n);var a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),si(n,0,a,!0,!0)?n.dump+`
|
|
74
|
+
`:""}var ws=ka,mf={dump:ws};function Fa(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var Kc=gr,Yc=Un,Jc=fn,Pl=Re,Il=Ge,Ra=al,vo=nf.load,Xc=nf.loadAll,As=mf.dump,yf=Mt,go={binary:qo,float:oe,map:gn,null:Sa,pairs:$u,set:Ku,timestamp:eo,bool:ri,int:Ui,merge:Hn,omap:zu,seq:_i,str:xi},bf=Fa("safeLoad","load"),ta=Fa("safeLoadAll","loadAll"),mo=Fa("safeDump","dump"),ra={Type:Kc,Schema:Yc,FAILSAFE_SCHEMA:Jc,JSON_SCHEMA:Pl,CORE_SCHEMA:Il,DEFAULT_SCHEMA:Ra,load:vo,loadAll:Xc,dump:As,YAMLException:yf,types:go,safeLoad:bf,safeLoadAll:ta,safeDump:mo};const La=ra,Ma=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:window}(),{FormData:kl,Blob:yo,File:Fl}=Ma;function Qc(e){if(re(e))return ce(e)}function na(e){if(typeof K!="undefined"&&U(e)!=null||e["@@iterator"]!=null)return z(e)}function ia(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
75
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aa(e){return Qc(e)||na(e)||he(e)||ia()}var Zc=s(71488),Kn=s.n(Zc),_c=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},qc=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Na(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.escape,o=arguments.length>2?arguments[2]:void 0;return typeof e=="number"&&(e=e.toString()),typeof e!="string"||!e.length||!a?e:o?JSON.parse(e):ot()(r=aa(e)).call(r,function(c){var p,m;if(qc(c)||_c(c)&&a==="unsafe")return c;var v=new TextEncoder,y=ot()(p=ot()(m=jt()(v.encode(c))).call(m,function(b){var I;return Kn()(I="0".concat(b.toString(16).toUpperCase())).call(I,-2)})).call(p,function(b){return"%".concat(b)}).join("");return y}).join("")}function tn(e){var r=e.value;return Array.isArray(r)?jr(e):H(r)==="object"?rn(e):Vr(e)}function jr(e){var r=e.key,n=e.value,a=e.style,o=e.explode,c=e.escape,p=function(I){return Na(I,{escape:c})};if(a==="simple")return ot()(n).call(n,function(b){return p(b)}).join(",");if(a==="label")return".".concat(ot()(n).call(n,function(b){return p(b)}).join("."));if(a==="matrix")return ot()(n).call(n,function(b){return p(b)}).reduce(function(b,I){var R;if(!b||o){var B,$;return ze()(B=ze()($="".concat(b||"",";")).call($,r,"=")).call(B,I)}return ze()(R="".concat(b,",")).call(R,I)},"");if(a==="form"){var m=o?"&".concat(r,"="):",";return ot()(n).call(n,function(b){return p(b)}).join(m)}if(a==="spaceDelimited"){var v=o?"".concat(r,"="):"";return ot()(n).call(n,function(b){return p(b)}).join(" ".concat(v))}if(a==="pipeDelimited"){var y=o?"".concat(r,"="):"";return ot()(n).call(n,function(b){return p(b)}).join("|".concat(y))}}function rn(e){var r=e.key,n=e.value,a=e.style,o=e.explode,c=e.escape,p=function(y){return Na(y,{escape:c})},m=Je()(n);if(a==="simple")return m.reduce(function(v,y){var b,I,R,B=p(n[y]),$=o?"=":",",te=v?"".concat(v,","):"";return ze()(b=ze()(I=ze()(R="".concat(te)).call(R,y)).call(I,$)).call(b,B)},"");if(a==="label")return m.reduce(function(v,y){var b,I,R,B=p(n[y]),$=o?"=":".",te=v?"".concat(v,"."):".";return ze()(b=ze()(I=ze()(R="".concat(te)).call(R,y)).call(I,$)).call(b,B)},"");if(a==="matrix"&&o)return m.reduce(function(v,y){var b,I,R=p(n[y]),B=v?"".concat(v,";"):";";return ze()(b=ze()(I="".concat(B)).call(I,y,"=")).call(b,R)},"");if(a==="matrix")return m.reduce(function(v,y){var b,I,R=p(n[y]),B=v?"".concat(v,","):";".concat(r,"=");return ze()(b=ze()(I="".concat(B)).call(I,y,",")).call(b,R)},"");if(a==="form")return m.reduce(function(v,y){var b,I,R,B,$=p(n[y]),te=v?ze()(b="".concat(v)).call(b,o?"&":","):"",q=o?"=":",";return ze()(I=ze()(R=ze()(B="".concat(te)).call(B,y)).call(R,q)).call(I,$)},"")}function Vr(e){var r=e.key,n=e.value,a=e.style,o=e.escape,c=function(v){return Na(v,{escape:o})};if(a==="simple")return c(n);if(a==="label")return".".concat(c(n));if(a==="matrix"){var p;return ze()(p=";".concat(r,"=")).call(p,c(n))}if(a==="form")return c(n);if(a==="deepObject")return c(n,{},!0)}var bo=function(r,n){n.body=r};const ed=bo;var Da={serializeRes:Ml,mergeInQueryOrForm:wo};function Cs(e){return Rl.apply(this,arguments)}function Rl(){return Rl=bt(Oe().mark(function e(r){var n,a,o,c,p,m=arguments;return Oe().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(n=m.length>1&&m[1]!==void 0?m[1]:{},H(r)==="object"&&(n=r,r=n.url),n.headers=n.headers||{},Da.mergeInQueryOrForm(n),n.headers&&Je()(n.headers).forEach(function(b){var I=n.headers[b];typeof I=="string"&&(n.headers[b]=I.replace(/\n+/g," "))}),!n.requestInterceptor){y.next=12;break}return y.next=8,n.requestInterceptor(n);case 8:if(y.t0=y.sent,y.t0){y.next=11;break}y.t0=n;case 11:n=y.t0;case 12:return a=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(a)&&n.body instanceof kl&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),y.prev=14,y.next=17,(n.userFetch||fetch)(n.url,n);case 17:return o=y.sent,y.next=20,Da.serializeRes(o,r,n);case 20:if(o=y.sent,!n.responseInterceptor){y.next=28;break}return y.next=24,n.responseInterceptor(o);case 24:if(y.t1=y.sent,y.t1){y.next=27;break}y.t1=o;case 27:o=y.t1;case 28:y.next=39;break;case 30:if(y.prev=30,y.t2=y.catch(14),o){y.next=34;break}throw y.t2;case 34:throw c=new Error(o.statusText||"response status is ".concat(o.status)),c.status=o.status,c.statusCode=o.status,c.responseError=y.t2,c;case 39:if(o.ok){y.next=45;break}throw p=new Error(o.statusText||"response status is ".concat(o.status)),p.status=o.status,p.statusCode=o.status,p.response=o,p;case 45:return y.abrupt("return",o);case 46:case"end":return y.stop()}},e,null,[[14,30]])})),Rl.apply(this,arguments)}var td=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function Ll(e,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(e):La.load(e)}function Ml(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.loadSpec,o=a===void 0?!1:a,c={ok:e.ok,url:e.url||r,status:e.status,statusText:e.statusText,headers:xf(e.headers)},p=c.headers["content-type"],m=o||td(p),v=m?e.text:e.blob||e.buffer;return v.call(e).then(function(y){if(c.text=y,c.data=y,m)try{var b=Ll(y,p);c.body=b,c.obj=b}catch(I){c.parseError=I}return c})}function Nl(e){var r=Pe()(e).call(e,", ");return r?e.split(", "):e}function xf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof Ye()(e)!="function"?{}:jt()(Ye()(e).call(e)).reduce(function(r,n){var a=De(n,2),o=a[0],c=a[1];return r[o]=Nl(c),r},{})}function xo(e,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(e&&H(e)==="object"&&typeof e.uri=="string"):typeof Fl!="undefined"&&e instanceof Fl||typeof yo!="undefined"&&e instanceof yo||ArrayBuffer.isView(e)?!0:e!==null&&H(e)==="object"&&typeof e.pipe=="function"}function Es(e,r){return Array.isArray(e)&&e.some(function(n){return xo(n,r)})}var Sf={form:",",spaceDelimited:"%20",pipeDelimited:"|"},wf={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Os(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,o=r.allowEmptyValue,c=r.serializationOption,p=r.encoding,m=H(r)==="object"&&!Array.isArray(r)?r.value:r,v=n?function($){return $.toString()}:function($){return encodeURIComponent($)},y=v(e);if(typeof m=="undefined"&&o)return[[y,""]];if(xo(m)||Es(m))return[[y,m]];if(c)return Dl(e,m,n,c);if(p){if([H(p.style),H(p.explode),H(p.allowReserved)].some(function($){return $!=="undefined"})){var b=p.style,I=p.explode,R=p.allowReserved;return Dl(e,m,n,{style:b,explode:I,allowReserved:R})}if(p.contentType){if(p.contentType==="application/json"){var B=typeof m=="string"?m:it()(m);return[[y,v(B)]]}return[[y,v(m.toString())]]}return H(m)!=="object"?[[y,v(m)]]:Array.isArray(m)&&m.every(function($){return H($)!=="object"})?[[y,ot()(m).call(m,v).join(",")]]:[[y,v(it()(m))]]}return H(m)!=="object"?[[y,v(m)]]:Array.isArray(m)?a==="multi"?[[y,ot()(m).call(m,v)]]:[[y,ot()(m).call(m,v).join(wf[a||"csv"])]]:[[y,""]]}function Dl(e,r,n,a){var o,c=a.style||"form",p=typeof a.explode=="undefined"?c==="form":a.explode,m=n?!1:a&&a.allowReserved?"unsafe":"reserved",v=function(B){return Na(B,{escape:m})},y=n?function(R){return R}:function(R){return Na(R,{escape:m})};if(H(r)!=="object")return[[y(e),v(r)]];if(Array.isArray(r))return p?[[y(e),ot()(r).call(r,v)]]:[[y(e),ot()(r).call(r,v).join(Sf[c])]];if(c==="deepObject"){var b;return ot()(b=Je()(r)).call(b,function(R){var B;return[y(ze()(B="".concat(e,"[")).call(B,R,"]")),v(r[R])]})}if(p){var I;return ot()(I=Je()(r)).call(I,function(R){return[y(R),v(r[R])]})}return[[y(e),ot()(o=Je()(r)).call(o,function(R){var B;return[ze()(B="".concat(y(R),",")).call(B,v(r[R]))]}).join(",")]]}function So(e){return Er()(e).reduce(function(r,n){var a=De(n,2),o=a[0],c=a[1],p=_(Os(o,c,!0)),m;try{for(p.s();!(m=p.n()).done;){var v=De(m.value,2),y=v[0],b=v[1];if(Array.isArray(b)){var I=_(b),R;try{for(I.s();!(R=I.n()).done;){var B=R.value;if(ArrayBuffer.isView(B)){var $=new yo([B]);r.append(y,$)}else r.append(y,B)}}catch(q){I.e(q)}finally{I.f()}}else if(ArrayBuffer.isView(b)){var te=new yo([b]);r.append(y,te)}else r.append(y,b)}}catch(q){p.e(q)}finally{p.f()}return r},new kl)}function Af(e){var r=Je()(e).reduce(function(n,a){var o=_(Os(a,e[a])),c;try{for(o.s();!(c=o.n()).done;){var p=De(c.value,2),m=p[0],v=p[1];n[m]=v}}catch(y){o.e(y)}finally{o.f()}return n},{});return Ze().stringify(r,{encode:!1,indices:!1})||""}function wo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.url,n=r===void 0?"":r,a=e.query,o=e.form,c=function(){for(var ie=arguments.length,pe=new Array(ie),ve=0;ve<ie;ve++)pe[ve]=arguments[ve];var ge=tr()(pe).call(pe,function(Ce){return Ce}).join("&");return ge?"?".concat(ge):""};if(o){var p=Je()(o).some(function(se){var ie=o[se].value;return xo(ie)||Es(ie)}),m=e.headers["content-type"]||e.headers["Content-Type"];if(p||/multipart\/form-data/i.test(m)){var v=So(e.form);ed(v,e)}else e.body=Af(o);delete e.form}if(a){var y=n.split("?"),b=De(y,2),I=b[0],R=b[1],B="";if(R){var $=Ze().parse(R),te=Je()(a);te.forEach(function(se){return delete $[se]}),B=Ze().stringify($,{encode:!0})}var q=c(B,Af(a));e.url=I+q,delete e.query}return e}function Ii(e,r,n){return n=n||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Da.mergeInQueryOrForm(a),a=r(a),n(e(a))}}function Bl(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Cf(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),ae(e,a.key,a)}}function jl(e,r,n){return r&&Cf(e.prototype,r),n&&Cf(e,n),ae(e,"prototype",{writable:!1}),e}var On=s(35784),qt=s.n(On),Yn=s(22583),yn=s.n(Yn),$i=s(93963),Ef=s.n($i);/*!
|
|
81
76
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
82
77
|
* (c) 2017-2022 Joachim Wester
|
|
83
78
|
* MIT licensed
|
|
84
|
-
*/var
|
|
85
|
-
`)}var
|
|
79
|
+
*/var Vl=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var c in o)o.hasOwnProperty(c)&&(a[c]=o[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Of=Object.prototype.hasOwnProperty;function Ts(e,r){return Of.call(e,r)}function Ao(e){if(Array.isArray(e)){for(var r=new Array(e.length),n=0;n<r.length;n++)r[n]=""+n;return r}if(Object.keys)return Object.keys(e);var a=[];for(var o in e)Ts(e,o)&&a.push(o);return a}function Kr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Ps(e){for(var r=0,n=e.length,a;r<n;){if(a=e.charCodeAt(r),a>=48&&a<=57){r++;continue}return!1}return!0}function Jn(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function ki(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ul(e,r){var n;for(var a in e)if(Ts(e,a)){if(e[a]===r)return Jn(a)+"/";if(typeof e[a]=="object"&&(n=Ul(e[a],r),n!=""))return Jn(a)+"/"+n}return""}function rd(e,r){if(e===r)return"/";var n=Ul(e,r);if(n==="")throw new Error("Object not found in root");return"/"+n}function Wl(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var r=0,n=e.length;r<n;r++)if(Wl(e[r]))return!0}else if(typeof e=="object"){for(var a=Ao(e),o=a.length,c=0;c<o;c++)if(Wl(e[a[c]]))return!0}}return!1}function Co(e,r){var n=[e];for(var a in r){var o=typeof r[a]=="object"?JSON.stringify(r[a],null,2):r[a];typeof o!="undefined"&&n.push(a+": "+o)}return n.join(`
|
|
80
|
+
`)}var Is=function(e){Vl(r,e);function r(n,a,o,c,p){var m=this.constructor,v=e.call(this,Co(n,{name:a,index:o,operation:c,tree:p}))||this;return v.name=a,v.index=o,v.operation=c,v.tree=p,Object.setPrototypeOf(v,m.prototype),v.message=Co(n,{name:a,index:o,operation:c,tree:p}),v}return r}(Error),Sr=Is,nd=Kr,oa={add:function(e,r,n){return e[r]=this.value,{newDocument:n}},remove:function(e,r,n){var a=e[r];return delete e[r],{newDocument:n,removed:a}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:function(e,r,n){var a=Eo(n,this.path);a&&(a=Kr(a));var o=li(n,{op:"remove",path:this.from}).removed;return li(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:a}},copy:function(e,r,n){var a=Eo(n,this.from);return li(n,{op:"add",path:this.path,value:Kr(a)}),{newDocument:n}},test:function(e,r,n){return{newDocument:n,test:ui(e[r],this.value)}},_get:function(e,r,n){return this.value=e[r],{newDocument:n}}},id={add:function(e,r,n){return Ps(r)?e.splice(r,0,this.value):e[r]=this.value,{newDocument:n,index:r}},remove:function(e,r,n){var a=e.splice(r,1);return{newDocument:n,removed:a[0]}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:oa.move,copy:oa.copy,test:oa.test,_get:oa._get};function Eo(e,r){if(r=="")return e;var n={op:"_get",path:r};return li(e,n),n.value}function li(e,r,n,a,o,c){if(n===void 0&&(n=!1),a===void 0&&(a=!0),o===void 0&&(o=!0),c===void 0&&(c=0),n&&(typeof n=="function"?n(r,0,e,r.path):ks(r,0)),r.path===""){var p={newDocument:e};if(r.op==="add")return p.newDocument=r.value,p;if(r.op==="replace")return p.newDocument=r.value,p.removed=e,p;if(r.op==="move"||r.op==="copy")return p.newDocument=Eo(e,r.from),r.op==="move"&&(p.removed=e),p;if(r.op==="test"){if(p.test=ui(e,r.value),p.test===!1)throw new Sr("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p.newDocument=e,p}else{if(r.op==="remove")return p.removed=e,p.newDocument=null,p;if(r.op==="_get")return r.value=e,p;if(n)throw new Sr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",c,r,e);return p}}else{a||(e=Kr(e));var m=r.path||"",v=m.split("/"),y=e,b=1,I=v.length,R=void 0,B=void 0,$=void 0;for(typeof n=="function"?$=n:$=ks;;){if(B=v[b],B&&B.indexOf("~")!=-1&&(B=ki(B)),o&&(B=="__proto__"||B=="prototype"&&b>0&&v[b-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&R===void 0&&(y[B]===void 0?R=v.slice(0,b).join("/"):b==I-1&&(R=r.path),R!==void 0&&$(r,0,e,R)),b++,Array.isArray(y)){if(B==="-")B=y.length;else{if(n&&!Ps(B))throw new Sr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",c,r,e);Ps(B)&&(B=~~B)}if(b>=I){if(n&&r.op==="add"&&B>y.length)throw new Sr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",c,r,e);var p=id[r.op].call(r,y,B,e);if(p.test===!1)throw new Sr("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p}}else if(b>=I){var p=oa[r.op].call(r,y,B,e);if(p.test===!1)throw new Sr("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p}if(y=y[B],n&&b<I&&(!y||typeof y!="object"))throw new Sr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",c,r,e)}}}function Fi(e,r,n,a,o){if(a===void 0&&(a=!0),o===void 0&&(o=!0),n&&!Array.isArray(r))throw new Sr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(e=Kr(e));for(var c=new Array(r.length),p=0,m=r.length;p<m;p++)c[p]=li(e,r[p],n,!0,o,p),e=c[p].newDocument;return c.newDocument=e,c}function ad(e,r,n){var a=li(e,r);if(a.test===!1)throw new Sr("Test operation failed","TEST_OPERATION_FAILED",n,r,e);return a.newDocument}function ks(e,r,n,a){if(typeof e!="object"||e===null||Array.isArray(e))throw new Sr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,e,n);if(oa[e.op]){if(typeof e.path!="string")throw new Sr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,e,n);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new Sr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Sr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Sr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Wl(e.value))throw new Sr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,c=a.split("/").length;if(o!==c+1&&o!==c)throw new Sr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==a)throw new Sr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,e,n)}else if(e.op==="move"||e.op==="copy"){var p={op:"_get",path:e.from,value:void 0},m=Hl([p],n);if(m&&m.name==="OPERATION_PATH_UNRESOLVABLE")throw new Sr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,e,n)}}}else throw new Sr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,e,n)}function Hl(e,r,n){try{if(!Array.isArray(e))throw new Sr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)Fi(Kr(r),Kr(e),n||!0);else{n=n||ks;for(var a=0;a<e.length;a++)n(e[a],a,r,void 0)}}catch(o){if(o instanceof Sr)return o;throw o}}function ui(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){var n=Array.isArray(e),a=Array.isArray(r),o,c,p;if(n&&a){if(c=e.length,c!=r.length)return!1;for(o=c;o--!==0;)if(!ui(e[o],r[o]))return!1;return!0}if(n!=a)return!1;var m=Object.keys(e);if(c=m.length,c!==Object.keys(r).length)return!1;for(o=c;o--!==0;)if(!r.hasOwnProperty(m[o]))return!1;for(o=c;o--!==0;)if(p=m[o],!ui(e[p],r[p]))return!1;return!0}return e!==e&&r!==r}/*!
|
|
86
81
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
87
82
|
* (c) 2017-2021 Joachim Wester
|
|
88
83
|
* MIT license
|
|
89
|
-
*/var me=new WeakMap,he=function(){function e(r){this.observers=new Map,this.obj=r}return e}(),Te=function(){function e(r,n){this.callback=r,this.observer=n}return e}();function Le(e){return me.get(e)}function ze(e,r){return e.observers.get(r)}function Ye(e,r){e.observers.delete(r.callback)}function Qe(e,r){r.unobserve()}function Je(e,r){var n=[],a,o=Le(e);if(!o)o=new he(e),me.set(e,o);else{var f=ze(o,r);a=f&&f.observer}if(a)return a;if(a={},o.value=Tn(e),r){a.callback=r,a.next=null;var d=function(){qe(a)},m=function(){clearTimeout(a.next),a.next=setTimeout(d)};typeof window!="undefined"&&(window.addEventListener("mouseup",m),window.addEventListener("keyup",m),window.addEventListener("mousedown",m),window.addEventListener("keydown",m),window.addEventListener("change",m))}return a.patches=n,a.object=e,a.unobserve=function(){qe(a),clearTimeout(a.next),Ye(o,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",m),window.removeEventListener("keyup",m),window.removeEventListener("mousedown",m),window.removeEventListener("keydown",m),window.removeEventListener("change",m))},o.observers.set(r,new Te(r,a)),a}function qe(e,r){r===void 0&&(r=!1);var n=me.get(e.object);ht(n.value,e.object,e.patches,"",r),e.patches.length&&O(n.value,e.patches);var a=e.patches;return a.length>0&&(e.patches=[],e.callback&&e.callback(a)),a}function ht(e,r,n,a,o){if(r!==e){typeof r.toJSON=="function"&&(r=r.toJSON());for(var f=Bi(r),d=Bi(e),m=!1,g=!1,b=d.length-1;b>=0;b--){var x=d[b],I=e[x];if(hs(r,x)&&!(r[x]===void 0&&I!==void 0&&Array.isArray(r)===!1)){var N=r[x];typeof I=="object"&&I!=null&&typeof N=="object"&&N!=null&&Array.isArray(I)===Array.isArray(N)?ht(I,N,n,a+"/"+xi(x),o):I!==N&&(m=!0,o&&n.push({op:"test",path:a+"/"+xi(x),value:Tn(I)}),n.push({op:"replace",path:a+"/"+xi(x),value:Tn(N)}))}else Array.isArray(e)===Array.isArray(r)?(o&&n.push({op:"test",path:a+"/"+xi(x),value:Tn(I)}),n.push({op:"remove",path:a+"/"+xi(x)}),g=!0):(o&&n.push({op:"test",path:a,value:e}),n.push({op:"replace",path:a,value:r}),m=!0)}if(!(!g&&f.length==d.length))for(var b=0;b<f.length;b++){var x=f[b];!hs(e,x)&&r[x]!==void 0&&n.push({op:"add",path:a+"/"+xi(x),value:Tn(r[x])})}}}function dt(e,r,n){n===void 0&&(n=!1);var a=[];return ht(e,r,a,"",n),a}const Mt=Object.assign({},p,S,{JsonPatchError:t,deepClone:Tn,escapePathComponent:xi,unescapePathComponent:vr});var tr=s(39714),Tr=s.n(tr);const wt={add:Ar,replace:Hr,remove:zr,merge:Pr,mergeDeep:Cr,context:gr,getIn:Nl,applyPatch:xn,parentPathMatch:Dr,flatten:Jn,fullyNormalizeArray:wi,normalizeArray:ji,isPromise:Dl,forEachNew:hn,forEachNewPrimitive:Ba,isJsonPatch:wp,isContextPatch:Mg,isPatch:Hf,isMutation:Ap,isAdditiveMutation:Wf,isGenerator:Lg,isFunction:Sp,isObject:Nn,isError:Rg};function xn(e,r,n){if(n=n||{},r=lr(lr({},r),{},{path:r.path&&sn(r.path)}),r.op==="merge"){var a=yd(e,r.path);Fr()(a,r.value),O(e,[Hr(r.path,a)])}else if(r.op==="mergeDeep"){var o=yd(e,r.path),f=Tr()(o,r.value);e=O(e,[Hr(r.path,f)]).newDocument}else if(r.op==="add"&&r.path===""&&Nn(r.value)){var d=Kt()(r.value).reduce(function(I,N){return I.push({op:"add",path:"/".concat(sn(N)),value:r.value[N]}),I},[]);O(e,d)}else if(r.op==="replace"&&r.path===""){var m=r,g=m.value;n.allowMetaPatches&&r.meta&&Wf(r)&&(Array.isArray(r.value)||Nn(r.value))&&(g=lr(lr({},g),r.meta)),e=g}else if(O(e,[r]),n.allowMetaPatches&&r.meta&&Wf(r)&&(Array.isArray(r.value)||Nn(r.value))){var b=yd(e,r.path),x=lr(lr({},b),r.meta);O(e,[Hr(r.path,x)])}return e}function sn(e){return Array.isArray(e)?e.length<1?"":"/".concat($t()(e).call(e,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):e}function Ar(e,r){return{op:"add",path:e,value:r}}function Hr(e,r,n){return{op:"replace",path:e,value:r,meta:n}}function zr(e){return{op:"remove",path:e}}function Pr(e,r){return{type:"mutation",op:"merge",path:e,value:r}}function Cr(e,r){return{type:"mutation",op:"mergeDeep",path:e,value:r}}function gr(e,r){return{type:"context",path:e,value:r}}function hn(e,r){try{return Si(e,Mn,r)}catch(n){return n}}function Ba(e,r){try{return Si(e,Nr,r)}catch(n){return n}}function Si(e,r,n){var a,o=$t()(a=Er()(e).call(e,Wf)).call(a,function(m){return r(m.value,n,m.path)})||[],f=Jn(o),d=Qr(f);return d}function Nr(e,r,n){if(n=n||[],Array.isArray(e))return $t()(e).call(e,function(o,f){return Nr(o,r,ut()(n).call(n,f))});if(Nn(e)){var a;return $t()(a=Kt()(e)).call(a,function(o){return Nr(e[o],r,ut()(n).call(n,o))})}return r(e,n[n.length-1],n)}function Mn(e,r,n){n=n||[];var a=[];if(n.length>0){var o=r(e,n[n.length-1],n);o&&(a=ut()(a).call(a,o))}if(Array.isArray(e)){var f=$t()(e).call(e,function(g,b){return Mn(g,r,ut()(n).call(n,b))});f&&(a=ut()(a).call(a,f))}else if(Nn(e)){var d,m=$t()(d=Kt()(e)).call(d,function(g){return Mn(e[g],r,ut()(n).call(n,g))});m&&(a=ut()(a).call(a,m))}return a=Jn(a),a}function Dr(e,r){if(!Array.isArray(r))return!1;for(var n=0,a=r.length;n<a;n+=1)if(r[n]!==e[n])return!1;return!0}function Nl(e,r){return r.reduce(function(n,a){return typeof a!="undefined"&&n?n[a]:n},e)}function wi(e){return Qr(Jn(ji(e)))}function ji(e){return Array.isArray(e)?e:[e]}function Jn(e){var r;return ut()(r=[]).apply(r,la($t()(e).call(e,function(n){return Array.isArray(n)?Jn(n):n})))}function Qr(e){return Er()(e).call(e,function(r){return typeof r!="undefined"})}function Nn(e){return e&&ar(e)==="object"}function Dl(e){return Nn(e)&&Sp(e.then)}function Sp(e){return e&&typeof e=="function"}function Rg(e){return e instanceof Error}function wp(e){if(Hf(e)){var r=e.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Lg(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function Ap(e){return wp(e)||Hf(e)&&e.type==="mutation"}function Wf(e){return Ap(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function Mg(e){return Hf(e)&&e.type==="context"}function Hf(e){return e&&ar(e)==="object"}function yd(e,r){try{return y(e,r)}catch(n){return console.error(n),{}}}var Ng=s(36394),Dg=s.n(Ng),Bg=s(8304),Cp=s.n(Bg);function Ep(e,r){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,o=new Array(a),f=0;f<a;f++)o[f]=arguments[f];this.message=o[0],r&&r.apply(this,o)}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var jg=s(56855),Vg=s.n(jg),Ug=["properties"],Wg=["properties"],Hg=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],zg=["schema/example","items/example"];function Op(e){var r=e[e.length-1],n=e[e.length-2],a=e.join("/");return Ug.indexOf(r)>-1&&Wg.indexOf(n)===-1||Hg.indexOf(a)>-1||zg.some(function(o){return a.indexOf(o)>-1})}function Gg(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.specmap,o=n.getBaseUrlForNodePath,f=o===void 0?function(b){var x;return a.getContext(ut()(x=[]).call(x,la(r),la(b))).baseDoc}:o,d=n.targetKeys,m=d===void 0?["$ref","$$ref"]:d,g=[];return Vg()(e).forEach(function(){if(gi()(m).call(m,this.key)&&typeof this.node=="string"){var x=this.path,I=ut()(r).call(r,this.path),N=bd(this.node,f(x));g.push(a.replace(I,N))}}),g}function bd(e,r){var n,a=e.split("#"),o=$n(a,2),f=o[0],d=o[1],m=Gn.resolve(f||"",r||"");return d?ut()(n="".concat(m,"#")).call(n,d):m}var Tp="application/json, application/yaml",$g=/^([a-z]+:\/\/|\/\/)/i,vs=Ep("JSONRefError",function(r,n,a){this.originalError=a,Fr()(this,n||{})}),ca={},Pp=new(Dg()),Kg=[function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="examples"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="examples"&&e[6]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="examples"&&e[7]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[4]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"}],Yg=function(r){return Kg.some(function(n){return n(r)})},Jg={key:"$ref",plugin:function(r,n,a,o){var f=o.getInstance(),d=pn()(a).call(a,0,-1);if(!(Op(d)||Yg(d))){var m=o.getContext(a),g=m.baseDoc;if(typeof r!="string")return new vs("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:g,fullPath:a});var b=Fp(r),x=b[0],I=b[1]||"",N;try{N=g||x?kp(x,g):null}catch(ie){return xd(ie,{pointer:I,$ref:r,basePath:N,fullPath:a})}var j,W;if(em(I,N,d,o)&&!f.useCircularStructures){var ee=bd(r,N);return r===ee?null:wt.replace(a,ee)}if(N==null?(W=wd(I),j=o.get(W),typeof j=="undefined"&&(j=new vs("Could not resolve reference: ".concat(r),{pointer:I,$ref:r,baseDoc:g,fullPath:a}))):(j=Rp(N,I),j.__value!=null?j=j.__value:j=j.catch(function(ie){throw xd(ie,{pointer:I,$ref:r,baseDoc:g,fullPath:a})})),j instanceof Error)return[wt.remove(a),j];var te=bd(r,N),se=wt.replace(d,j,{$$ref:te});if(N&&N!==g)return[se,wt.context(d,{baseDoc:N})];try{if(!tm(o.state,se)||f.useCircularStructures)return se}catch(ie){return null}}}},Ip=Fr()(Jg,{docCache:ca,absoluteify:kp,clearCache:Qg,JSONRefError:vs,wrapError:xd,getDoc:Lp,split:Fp,extractFromDoc:Rp,fetchJSON:Zg,extract:Sd,jsonPointerToArray:wd,unescapeJsonPointerToken:Mp});const Xg=Ip;function kp(e,r){if(!$g.test(e)){if(!r){var n;throw new vs(ut()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(n,r,"'"))}return Gn.resolve(r,e)}return e}function xd(e,r){var n;if(e&&e.response&&e.response.body){var a;n=ut()(a="".concat(e.response.body.code," ")).call(a,e.response.body.message)}else n=e.message;return new vs("Could not resolve reference: ".concat(n),r,e)}function Fp(e){return(e+"").split("#")}function Rp(e,r){var n=ca[e];if(n&&!wt.isPromise(n))try{var a=Sd(r,n);return Fr()(fa().resolve(a),{__value:a})}catch(o){return fa().reject(o)}return Lp(e).then(function(o){return Sd(r,o)})}function Qg(e){typeof e!="undefined"?delete ca[e]:Kt()(ca).forEach(function(r){delete ca[r]})}function Lp(e){var r=ca[e];return r?wt.isPromise(r)?r:fa().resolve(r):(ca[e]=Ip.fetchJSON(e).then(function(n){return ca[e]=n,n}),ca[e])}function Zg(e){return fetch(e,{headers:{Accept:Tp},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Al.load(r)})}function Sd(e,r){var n=wd(e);if(n.length<1)return r;var a=wt.getIn(r,n);if(typeof a=="undefined")throw new vs("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return a}function wd(e){var r;if(typeof e!="string")throw new TypeError("Expected a string, got a ".concat(ar(e)));return e[0]==="/"&&(e=e.substr(1)),e===""?[]:$t()(r=e.split("/")).call(r,Mp)}function Mp(e){if(typeof e!="string")return e;var r=new(Cp())("=".concat(e.replace(/~1/g,"/").replace(/~0/g,"~")));return r.get("")}function Np(e){var r,n=new(Cp())([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]);return pn()(r=n.toString()).call(r,1)}function _g(e){return e.length===0?"":"/".concat($t()(e).call(e,Np).join("/"))}var qg=function(r){return!r||r==="/"||r==="#"};function Ad(e,r){if(qg(r))return!0;var n=e.charAt(r.length),a=pn()(r).call(r,-1);return e.indexOf(r)===0&&(!n||n==="/"||n==="#")&&a!=="#"}function em(e,r,n,a){var o,f,d=Pp.get(a);d||(d={},Pp.set(a,d));var m=_g(n),g=ut()(o="".concat(r||"<specmap-base>","#")).call(o,e),b=m.replace(/allOf\/\d+\/?/g,""),x=a.contextTree.get([]).baseDoc;if(r===x&&Ad(b,e))return!0;var I="",N=n.some(function(j){var W;return I=ut()(W="".concat(I,"/")).call(W,Np(j)),d[I]&&d[I].some(function(ee){return Ad(ee,g)||Ad(g,ee)})});if(N)return!0;d[b]=ut()(f=d[b]||[]).call(f,g)}function tm(e,r){var n=[e];return r.path.reduce(function(o,f){return n.push(o[f]),o[f]},e),a(r.value);function a(o){return wt.isObject(o)&&(n.indexOf(o)>=0||Kt()(o).some(function(f){return a(o[f])}))}}const rm={key:"allOf",plugin:function(r,n,a,o,f){if(!(f.meta&&f.meta.$$ref)){var d=pn()(a).call(a,0,-1);if(!Op(d)){if(!Array.isArray(r)){var m=new TypeError("allOf must be an array");return m.fullPath=a,m}var g=!1,b=f.value;if(d.forEach(function(j){!b||(b=b[j])}),b=lr({},b),Kt()(b).length!==0){delete b.allOf;var x=[];if(x.push(o.replace(d,{})),r.forEach(function(j,W){if(!o.isObject(j)){if(g)return null;g=!0;var ee=new TypeError("Elements in allOf must be objects");return ee.fullPath=a,x.push(ee)}x.push(o.mergeDeep(d,j));var te=pn()(a).call(a,0,-1),se=Gg(j,te,{getBaseUrlForNodePath:function(de){var we;return o.getContext(ut()(we=[]).call(we,la(a),[W],la(de))).baseDoc},specmap:o});x.push.apply(x,la(se))}),b.example){var I;x.push(o.remove(ut()(I=[]).call(I,d,"example")))}if(x.push(o.mergeDeep(d,b)),!b.$$ref){var N;x.push(o.remove(ut()(N=[]).call(N,d,"$$ref")))}return x}}}}},nm={key:"parameters",plugin:function(r,n,a,o){if(Array.isArray(r)&&r.length){var f=Fr()([],r),d=pn()(a).call(a,0,-1),m=lr({},wt.getIn(o.spec,d));return r.forEach(function(g,b){try{f[b].default=o.parameterMacro(m,g)}catch(I){var x=new Error(I);return x.fullPath=a,x}}),wt.replace(a,f)}return wt.replace(a,r)}},im={key:"properties",plugin:function(r,n,a,o){var f=lr({},r);for(var d in r)try{f[d].default=o.modelPropertyMacro(f[d])}catch(b){var m=new Error(b);return m.fullPath=a,m}var g=wt.replace(a,f);return g}};var am=function(){function e(r){ps(this,e),this.root=Cd(r||{})}return Rl(e,[{key:"set",value:function(n,a){var o=this.getParent(n,!0);if(!o){zf(this.root,a,null);return}var f=n[n.length-1],d=o.children;if(d[f]){zf(d[f],a,o);return}d[f]=Cd(a,o)}},{key:"get",value:function(n){if(n=n||[],n.length<1)return this.root.value;for(var a=this.root,o,f,d=0;d<n.length&&(f=n[d],o=a.children,!!o[f]);d+=1)a=o[f];return a&&a.protoValue}},{key:"getParent",value:function(n,a){return!n||n.length<1?null:n.length<2?this.root:pn()(n).call(n,0,-1).reduce(function(o,f){if(!o)return o;var d=o.children;return!d[f]&&a&&(d[f]=Cd(null,o)),d[f]},this.root)}}]),e}();function Cd(e,r){return zf({children:{}},e,r)}function zf(e,r,n){return e.value=r||{},e.protoValue=n?lr(lr({},n.protoValue),e.value):e.value,Kt()(e.children).forEach(function(a){var o=e.children[a];e.children[a]=zf(o,o.value,e)}),e}var Dp=100,Bp=function(){},om=function(){function e(r){var n=this,a,o;ps(this,e),Fr()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new am,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Fr()(Object.create(this),wt,{getInstance:function(){return n}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=Er()(a=$t()(o=this.plugins).call(o,this.wrapPlugin.bind(this))).call(a,wt.isFunction),this.patches.push(wt.add([],this.spec)),this.patches.push(wt.context([],this.context)),this.updatePatches(this.patches)}return Rl(e,[{key:"debug",value:function(n){if(this.debugLevel===n){for(var a,o=arguments.length,f=new Array(o>1?o-1:0),d=1;d<o;d++)f[d-1]=arguments[d];(a=console).log.apply(a,f)}}},{key:"verbose",value:function(n){if(this.debugLevel==="verbose"){for(var a,o,f=arguments.length,d=new Array(f>1?f-1:0),m=1;m<f;m++)d[m-1]=arguments[m];(a=console).log.apply(a,ut()(o=["[".concat(n,"] ")]).call(o,d))}}},{key:"wrapPlugin",value:function(n,a){var o=this.pathDiscriminator,f=null,d;return n[this.pluginProp]?(f=n,d=n[this.pluginProp]):wt.isFunction(n)?d=n:wt.isObject(n)&&(d=m(n)),Fr()(d.bind(f),{pluginName:n.name||a,isGenerator:wt.isGenerator(d)});function m(g){var b=function(I,N){return Array.isArray(I)?I.every(function(j,W){return j===N[W]}):!0};return ei().mark(function x(I,N){var j,W,ee,te,se,ie;return ei().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:ie=function(Ee,ye,be){var Se,ke,Me,Re,We,It,vt,rr,cr,mr,$r,yr,kr;return ei().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(wt.isObject(Ee)){Wt.next=6;break}if(g.key!==ye[ye.length-1]){Wt.next=4;break}return Wt.next=4,g.plugin(Ee,g.key,ye,N);case 4:Wt.next=30;break;case 6:Se=ye.length-1,ke=ye[Se],Me=ye.indexOf("properties"),Re=ke==="properties"&&Se===Me,We=N.allowMetaPatches&&W[Ee.$$ref],It=0,vt=Kt()(Ee);case 12:if(!(It<vt.length)){Wt.next=30;break}if(rr=vt[It],cr=Ee[rr],mr=ut()(ye).call(ye,rr),$r=wt.isObject(cr),yr=Ee.$$ref,We){Wt.next=22;break}if(!$r){Wt.next=22;break}return N.allowMetaPatches&&yr&&(W[yr]=!0),Wt.delegateYield(ie(cr,mr,be),"t0",22);case 22:if(!(!Re&&rr===g.key)){Wt.next=27;break}if(kr=b(o,ye),!(!o||kr)){Wt.next=27;break}return Wt.next=27,g.plugin(cr,rr,mr,N,be);case 27:It++,Wt.next=12;break;case 30:case"end":return Wt.stop()}},j)},j=ei().mark(ie),W={},ee=Pi(Er()(I).call(I,wt.isAdditiveMutation)),we.prev=4,ee.s();case 6:if((te=ee.n()).done){we.next=11;break}return se=te.value,we.delegateYield(ie(se.value,se.path,se),"t0",9);case 9:we.next=6;break;case 11:we.next=16;break;case 13:we.prev=13,we.t1=we.catch(4),ee.e(we.t1);case 16:return we.prev=16,ee.f(),we.finish(16);case 19:case"end":return we.stop()}},x,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var n,a=this;return Df()(n=this.wrappedPlugins).call(n,function(o){var f=a.getMutationsForPlugin(o);return f.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var n;return fa().race($t()(n=this.promisedPatches).call(n,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(n){var a=this.constructor.getPluginName(n);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(n){return this.getPluginHistory(n).length}},{key:"getPluginHistoryTip",value:function(n){var a=this.getPluginHistory(n),o=a&&a[a.length-1];return o||{}}},{key:"getPluginMutationIndex",value:function(n){var a=this.getPluginHistoryTip(n).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(n,a){var o=this.constructor.getPluginName(n);this.pluginHistory[o]=this.pluginHistory[o]||[],this.pluginHistory[o].push(a)}},{key:"updatePatches",value:function(n){var a=this;wt.normalizeArray(n).forEach(function(o){if(o instanceof Error){a.errors.push(o);return}try{if(!wt.isObject(o)){a.debug("updatePatches","Got a non-object patch",o);return}if(a.showDebug&&a.allPatches.push(o),wt.isPromise(o.value)){a.promisedPatches.push(o),a.promisedPatchThen(o);return}if(wt.isContextPatch(o)){a.setContext(o.path,o.value);return}if(wt.isMutation(o)){a.updateMutations(o);return}}catch(f){console.error(f),a.errors.push(f)}})}},{key:"updateMutations",value:function(n){ar(n.value)==="object"&&!Array.isArray(n.value)&&this.allowMetaPatches&&(n.value=lr({},n.value));var a=wt.applyPatch(this.state,n,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(n),this.state=a)}},{key:"removePromisedPatch",value:function(n){var a,o=this.promisedPatches.indexOf(n);if(o<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}jf()(a=this.promisedPatches).call(a,o,1)}},{key:"promisedPatchThen",value:function(n){var a=this;return n.value=n.value.then(function(o){var f=lr(lr({},n),{},{value:o});a.removePromisedPatch(n),a.updatePatches(f)}).catch(function(o){a.removePromisedPatch(n),a.updatePatches(o)}),n.value}},{key:"getMutations",value:function(n,a){var o;return n=n||0,typeof a!="number"&&(a=this.mutations.length),pn()(o=this.mutations).call(o,n,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(n){var a=this.getPluginMutationIndex(n);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(n){return wt.getIn(this.state,n)}},{key:"_getContext",value:function(n){return this.contextTree.get(n)}},{key:"setContext",value:function(n,a){return this.contextTree.set(n,a)}},{key:"_hasRun",value:function(n){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(n||0)}},{key:"dispatch",value:function(){var n=this,a=this,o=this.nextPlugin();if(!o){var f=this.nextPromisedPatch();if(f)return f.then(function(){return n.dispatch()}).catch(function(){return n.dispatch()});var d={spec:this.state,errors:this.errors};return this.showDebug&&(d.patches=this.allPatches),fa().resolve(d)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[o]=(a.pluginCount[o]||0)+1,a.pluginCount[o]>Dp){var m;return fa().resolve({spec:a.state,errors:ut()(m=a.errors).call(m,new Error("We've reached a hard limit of ".concat(Dp," plugin runs")))})}if(o!==this.currentPlugin&&this.promisedPatches.length){var g,b=$t()(g=this.promisedPatches).call(g,function(N){return N.value});return fa().all($t()(b).call(b,function(N){return N.then(Bp,Bp)})).then(function(){return n.dispatch()})}return x();function x(){a.currentPlugin=o;var N=a.getCurrentMutations(),j=a.mutations.length-1;try{if(o.isGenerator){var W=Pi(o(N,a.getLib())),ee;try{for(W.s();!(ee=W.n()).done;){var te=ee.value;I(te)}}catch(ie){W.e(ie)}finally{W.f()}}else{var se=o(N,a.getLib());I(se)}}catch(ie){console.error(ie),I([Fr()(Object.create(ie),{plugin:o})])}finally{a.updatePluginHistory(o,{mutationIndex:j})}return a.dispatch()}function I(N){N&&(N=wt.fullyNormalizeArray(N),a.updatePatches(N,o))}}}],[{key:"getPluginName",value:function(n){return n.pluginName}},{key:"getPatchesOfType",value:function(n,a){return Er()(n).call(n,a)}}]),e}();function sm(e){return new om(e).dispatch()}var To={refs:Xg,allOf:rm,parameters:nm,properties:im},jp=function(r){return String.prototype.toLowerCase.call(r)},Vp=function(r){return r.replace(/[^\w]/gi,"_")};function Up(e){var r=e.openapi;return r?qn()(r).call(r,"3"):!1}function i1(e){var r=e.swagger;return r?_startsWithInstanceProperty(r).call(r,"2"):!1}function Gf(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=a.v2OperationIdCompatibilityMode;if(!e||ar(e)!=="object")return null;var f=(e.operationId||"").replace(/\s/g,"");return f.length?Vp(e.operationId):lm(r,n,{v2OperationIdCompatibilityMode:o})}function lm(e,r){var n,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=a.v2OperationIdCompatibilityMode;if(o){var f,d,m=ut()(f="".concat(r.toLowerCase(),"_")).call(f,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return m=m||ut()(d="".concat(e.substring(1),"_")).call(d,r),m.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return ut()(n="".concat(jp(r))).call(n,Vp(e))}function Wp(e,r){var n;return ut()(n="".concat(jp(r),"-")).call(n,e)}function um(e,r){return!e||!e.paths?null:fm(e,function(n){var a=n.pathName,o=n.method,f=n.operation;if(!f||ar(f)!=="object")return!1;var d=f.operationId,m=Gf(f,a,o),g=Wp(a,o);return[m,g,d].some(function(b){return b&&b===r})})}function fm(e,r){return Hp(e,r,!0)||null}function Hp(e,r,n){if(!e||ar(e)!=="object"||!e.paths||ar(e.paths)!=="object")return null;var a=e.paths;for(var o in a)for(var f in a[o])if(f.toUpperCase()!=="PARAMETERS"){var d=a[o][f];if(!(!d||ar(d)!=="object")){var m={spec:e,pathName:o,method:f.toUpperCase(),operation:d},g=r(m);if(n&&g)return m}}}function zp(e){var r=e.spec,n=r.paths,a={};if(!n||r.$$normalized)return e;for(var o in n){var f,d=n[o];if(!(d==null||!gi()(f=["object","function"]).call(f,ar(d)))){var m=d.parameters,g=function(N){var j,W=d[N];if(W==null||!gi()(j=["object","function"]).call(j,ar(W)))return"continue";var ee=Gf(W,o,N);if(ee){a[ee]?a[ee].push(W):a[ee]=[W];var te=a[ee];if(te.length>1)te.forEach(function(Re,We){var It;Re.__originalOperationId=Re.__originalOperationId||Re.operationId,Re.operationId=ut()(It="".concat(ee)).call(It,We+1)});else if(typeof W.operationId!="undefined"){var se=te[0];se.__originalOperationId=se.__originalOperationId||W.operationId,se.operationId=ee}}if(N!=="parameters"){var ie=[],de={};for(var we in r)(we==="produces"||we==="consumes"||we==="security")&&(de[we]=r[we],ie.push(de));if(m&&(de.parameters=m,ie.push(de)),ie.length){var xe=Pi(ie),Ee;try{for(xe.s();!(Ee=xe.n()).done;){var ye=Ee.value;for(var be in ye)if(!W[be])W[be]=ye[be];else if(be==="parameters"){var Se=Pi(ye[be]),ke;try{var Me=function(){var We=ke.value,It=W[be].some(function(vt){return vt.name&&vt.name===We.name||vt.$ref&&vt.$ref===We.$ref||vt.$$ref&&vt.$$ref===We.$$ref||vt===We});It||W[be].push(We)};for(Se.s();!(ke=Se.n()).done;)Me()}catch(Re){Se.e(Re)}finally{Se.f()}}}}catch(Re){xe.e(Re)}finally{xe.f()}}}};for(var b in d)var x=g(b)}}return r.$$normalized=!0,e}function Gp(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.requestInterceptor,a=r.responseInterceptor,o=e.withCredentials?"include":"same-origin";return function(f){return e({url:f,loadSpec:!0,requestInterceptor:n,responseInterceptor:a,headers:{Accept:Tp},credentials:o}).then(function(d){return d.body})}}function cm(){To.refs.clearCache()}function $p(e){var r=e.fetch,n=e.spec,a=e.url,o=e.mode,f=e.allowMetaPatches,d=f===void 0?!0:f,m=e.pathDiscriminator,g=e.modelPropertyMacro,b=e.parameterMacro,x=e.requestInterceptor,I=e.responseInterceptor,N=e.skipNormalization,j=e.useCircularStructures,W=e.http,ee=e.baseDoc;if(ee=ee||a,W=r||W||Co,!n)return Gp(W,{requestInterceptor:x,responseInterceptor:I})(ee).then(te);return te(n);function te(se){ee&&(To.refs.docCache[ee]=se),To.refs.fetchJSON=Gp(W,{requestInterceptor:x,responseInterceptor:I});var ie=[To.refs];return typeof b=="function"&&ie.push(To.parameters),typeof g=="function"&&ie.push(To.properties),o!=="strict"&&ie.push(To.allOf),sm({spec:se,context:{baseDoc:ee},plugins:ie,allowMetaPatches:d,pathDiscriminator:m,parameterMacro:b,modelPropertyMacro:g,useCircularStructures:j}).then(N?function(){var de=Ii(ei().mark(function we(xe){return ei().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",xe);case 1:case"end":return ye.stop()}},we)}));return function(we){return de.apply(this,arguments)}}():zp)}}var dm=s(72579),Bl=s.n(dm);function pm(e,r){return Ed.apply(this,arguments)}function Ed(){return Ed=Ii(ei().mark(function e(r,n){var a,o,f,d,m,g,b,x,I,N,j,W,ee=arguments;return ei().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return a=ee.length>2&&ee[2]!==void 0?ee[2]:{},o=a.returnEntireTree,f=a.baseDoc,d=a.requestInterceptor,m=a.responseInterceptor,g=a.parameterMacro,b=a.modelPropertyMacro,x=a.useCircularStructures,I={pathDiscriminator:n,baseDoc:f,requestInterceptor:d,responseInterceptor:m,parameterMacro:g,modelPropertyMacro:b,useCircularStructures:x},N=zp({spec:r}),j=N.spec,se.next=6,$p(lr(lr({},I),{},{spec:j,allowMetaPatches:!0,skipNormalization:!0}));case 6:return W=se.sent,!o&&Array.isArray(n)&&n.length&&(W.spec=Bl()(W.spec,n)||null),se.abrupt("return",W);case 9:case"end":return se.stop()}},e)})),Ed.apply(this,arguments)}var hm=function(){return null},vm=function(r){return Array.isArray(r)?r:[r]},$f={mapTagOperations:ym,makeExecute:gm};function gm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var n=r.pathName,a=r.method,o=r.operationId;return function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=e.requestInterceptor,g=e.responseInterceptor,b=e.userFetch;return e.execute(lr({spec:e.spec,requestInterceptor:m,responseInterceptor:g,userFetch:b,pathName:n,method:a,parameters:f,operationId:o},d))}}}function a1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=$f.makeExecute(e),n=$f.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r}),a={};for(var o in n){a[o]={operations:{}};for(var f in n[o])a[o].operations[f]={execute:n[o][f]}}return{apis:a}}function mm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=$f.makeExecute(e);return{apis:$f.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r})}}function ym(e){var r=e.spec,n=e.cb,a=n===void 0?hm:n,o=e.defaultTag,f=o===void 0?"default":o,d=e.v2OperationIdCompatibilityMode,m={},g={};return Hp(r,function(b){var x=b.pathName,I=b.method,N=b.operation,j=N.tags?vm(N.tags):[f];j.forEach(function(W){if(typeof W=="string"){g[W]=g[W]||{};var ee=g[W],te=Gf(N,x,I,{v2OperationIdCompatibilityMode:d}),se=a({spec:r,pathName:x,method:I,operation:N,operationId:te});if(m[te]){var ie;m[te]+=1,ee[ut()(ie="".concat(te)).call(ie,m[te])]=se}else if(typeof ee[te]!="undefined"){var de,we,xe=m[te]||1;m[te]=xe+1,ee[ut()(de="".concat(te)).call(de,m[te])]=se;var Ee=ee[te];delete ee[te],ee[ut()(we="".concat(te)).call(we,xe)]=Ee}else ee[te]=se}})}),g}var Kp=s(26405);function bm(e,r){if(e==null)return{};var n={},a=Ga(e),o,f;for(f=0;f<a.length;f++)o=a[f],!(Kp(r).call(r,o)>=0)&&(n[o]=e[o]);return n}function xm(e,r){if(e==null)return{};var n=bm(e,r),a,o;if(ga){var f=ga(e);for(o=0;o<f.length;o++)a=f[o],!(Kp(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}var Sm=s(13421);/*!
|
|
84
|
+
*/var Oo=new WeakMap,Fs=function(){function e(r){this.observers=new Map,this.obj=r}return e}(),Tf=function(){function e(r,n){this.callback=r,this.observer=n}return e}();function zl(e){return Oo.get(e)}function Pf(e,r){return e.observers.get(r)}function od(e,r){e.observers.delete(r.callback)}function If(e,r){r.unobserve()}function Yr(e,r){var n=[],a,o=zl(e);if(!o)o=new Fs(e),Oo.set(e,o);else{var c=Pf(o,r);a=c&&c.observer}if(a)return a;if(a={},o.value=Kr(e),r){a.callback=r,a.next=null;var p=function(){Ba(a)},m=function(){clearTimeout(a.next),a.next=setTimeout(p)};typeof window!="undefined"&&(window.addEventListener("mouseup",m),window.addEventListener("keyup",m),window.addEventListener("mousedown",m),window.addEventListener("keydown",m),window.addEventListener("change",m))}return a.patches=n,a.object=e,a.unobserve=function(){Ba(a),clearTimeout(a.next),od(o,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",m),window.removeEventListener("keyup",m),window.removeEventListener("mousedown",m),window.removeEventListener("keydown",m),window.removeEventListener("change",m))},o.observers.set(r,new Tf(r,a)),a}function Ba(e,r){r===void 0&&(r=!1);var n=Oo.get(e.object);Rs(n.value,e.object,e.patches,"",r),e.patches.length&&Fi(n.value,e.patches);var a=e.patches;return a.length>0&&(e.patches=[],e.callback&&e.callback(a)),a}function Rs(e,r,n,a,o){if(r!==e){typeof r.toJSON=="function"&&(r=r.toJSON());for(var c=Ao(r),p=Ao(e),m=!1,v=!1,y=p.length-1;y>=0;y--){var b=p[y],I=e[b];if(Ts(r,b)&&!(r[b]===void 0&&I!==void 0&&Array.isArray(r)===!1)){var R=r[b];typeof I=="object"&&I!=null&&typeof R=="object"&&R!=null&&Array.isArray(I)===Array.isArray(R)?Rs(I,R,n,a+"/"+Jn(b),o):I!==R&&(m=!0,o&&n.push({op:"test",path:a+"/"+Jn(b),value:Kr(I)}),n.push({op:"replace",path:a+"/"+Jn(b),value:Kr(R)}))}else Array.isArray(e)===Array.isArray(r)?(o&&n.push({op:"test",path:a+"/"+Jn(b),value:Kr(I)}),n.push({op:"remove",path:a+"/"+Jn(b)}),v=!0):(o&&n.push({op:"test",path:a,value:e}),n.push({op:"replace",path:a,value:r}),m=!0)}if(!(!v&&c.length==p.length))for(var y=0;y<c.length;y++){var b=c[y];!Ts(e,b)&&r[b]!==void 0&&n.push({op:"add",path:a+"/"+Jn(b),value:Kr(r[b])})}}}function kf(e,r,n){n===void 0&&(n=!1);var a=[];return Rs(e,r,a,"",n),a}const sd=Object.assign({},d,x,{JsonPatchError:Is,deepClone:Kr,escapePathComponent:Jn,unescapePathComponent:ki});var ja=s(39714),To=s.n(ja);const nr={add:Va,replace:Po,remove:Ls,merge:Rf,mergeDeep:Io,context:ld,getIn:Fo,applyPatch:Ff,parentPathMatch:ko,flatten:Lo,fullyNormalizeArray:Ro,normalizeArray:Kl,isPromise:Wa,forEachNew:Ua,forEachNewPrimitive:Lf,isJsonPatch:Jl,isContextPatch:pn,isPatch:Mo,isMutation:Mf,isAdditiveMutation:Ns,isGenerator:fd,isFunction:Ha,isObject:bn,isError:ud};function Ff(e,r,n){if(n=n||{},r=G(G({},r),{},{path:r.path&&Gl(r.path)}),r.op==="merge"){var a=Xl(e,r.path);C()(a,r.value),Fi(e,[Po(r.path,a)])}else if(r.op==="mergeDeep"){var o=Xl(e,r.path),c=To()(o,r.value);e=Fi(e,[Po(r.path,c)]).newDocument}else if(r.op==="add"&&r.path===""&&bn(r.value)){var p=Je()(r.value).reduce(function(I,R){return I.push({op:"add",path:"/".concat(Gl(R)),value:r.value[R]}),I},[]);Fi(e,p)}else if(r.op==="replace"&&r.path===""){var m=r,v=m.value;n.allowMetaPatches&&r.meta&&Ns(r)&&(Array.isArray(r.value)||bn(r.value))&&(v=G(G({},v),r.meta)),e=v}else if(Fi(e,[r]),n.allowMetaPatches&&r.meta&&Ns(r)&&(Array.isArray(r.value)||bn(r.value))){var y=Xl(e,r.path),b=G(G({},y),r.meta);Fi(e,[Po(r.path,b)])}return e}function Gl(e){return Array.isArray(e)?e.length<1?"":"/".concat(ot()(e).call(e,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):e}function Va(e,r){return{op:"add",path:e,value:r}}function Po(e,r,n){return{op:"replace",path:e,value:r,meta:n}}function Ls(e){return{op:"remove",path:e}}function Rf(e,r){return{type:"mutation",op:"merge",path:e,value:r}}function Io(e,r){return{type:"mutation",op:"mergeDeep",path:e,value:r}}function ld(e,r){return{type:"context",path:e,value:r}}function Ua(e,r){try{return $l(e,sa,r)}catch(n){return n}}function Lf(e,r){try{return $l(e,Ms,r)}catch(n){return n}}function $l(e,r,n){var a,o=ot()(a=tr()(e).call(e,Ns)).call(a,function(m){return r(m.value,n,m.path)})||[],c=Lo(o),p=Yl(c);return p}function Ms(e,r,n){if(n=n||[],Array.isArray(e))return ot()(e).call(e,function(o,c){return Ms(o,r,ze()(n).call(n,c))});if(bn(e)){var a;return ot()(a=Je()(e)).call(a,function(o){return Ms(e[o],r,ze()(n).call(n,o))})}return r(e,n[n.length-1],n)}function sa(e,r,n){n=n||[];var a=[];if(n.length>0){var o=r(e,n[n.length-1],n);o&&(a=ze()(a).call(a,o))}if(Array.isArray(e)){var c=ot()(e).call(e,function(v,y){return sa(v,r,ze()(n).call(n,y))});c&&(a=ze()(a).call(a,c))}else if(bn(e)){var p,m=ot()(p=Je()(e)).call(p,function(v){return sa(e[v],r,ze()(n).call(n,v))});m&&(a=ze()(a).call(a,m))}return a=Lo(a),a}function ko(e,r){if(!Array.isArray(r))return!1;for(var n=0,a=r.length;n<a;n+=1)if(r[n]!==e[n])return!1;return!0}function Fo(e,r){return r.reduce(function(n,a){return typeof a!="undefined"&&n?n[a]:n},e)}function Ro(e){return Yl(Lo(Kl(e)))}function Kl(e){return Array.isArray(e)?e:[e]}function Lo(e){var r;return ze()(r=[]).apply(r,aa(ot()(e).call(e,function(n){return Array.isArray(n)?Lo(n):n})))}function Yl(e){return tr()(e).call(e,function(r){return typeof r!="undefined"})}function bn(e){return e&&H(e)==="object"}function Wa(e){return bn(e)&&Ha(e.then)}function Ha(e){return e&&typeof e=="function"}function ud(e){return e instanceof Error}function Jl(e){if(Mo(e)){var r=e.op;return r==="add"||r==="remove"||r==="replace"}return!1}function fd(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function Mf(e){return Jl(e)||Mo(e)&&e.type==="mutation"}function Ns(e){return Mf(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function pn(e){return Mo(e)&&e.type==="context"}function Mo(e){return e&&H(e)==="object"}function Xl(e,r){try{return Eo(e,r)}catch(n){return console.error(n),{}}}var cd=s(36394),dd=s.n(cd),Nf=s(8304),Ql=s.n(Nf);function Zl(e,r){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];this.message=o[0],r&&r.apply(this,o)}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var pd=s(56855),hd=s.n(pd),vd=["properties"],Ki=["properties"],No=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Ds=["schema/example","items/example"];function za(e){var r=e[e.length-1],n=e[e.length-2],a=e.join("/");return vd.indexOf(r)>-1&&Ki.indexOf(n)===-1||No.indexOf(a)>-1||Ds.some(function(o){return a.indexOf(o)>-1})}function Ri(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.specmap,o=n.getBaseUrlForNodePath,c=o===void 0?function(y){var b;return a.getContext(ze()(b=[]).call(b,aa(r),aa(y))).baseDoc}:o,p=n.targetKeys,m=p===void 0?["$ref","$$ref"]:p,v=[];return hd()(e).forEach(function(){if(Pe()(m).call(m,this.key)&&typeof this.node=="string"){var b=this.path,I=ze()(r).call(r,this.path),R=_l(this.node,c(b));v.push(a.replace(I,R))}}),v}function _l(e,r){var n,a=e.split("#"),o=De(a,2),c=o[0],p=o[1],m=J.resolve(c||"",r||"");return p?ze()(n="".concat(m,"#")).call(n,p):m}var Df="application/json, application/yaml",Ga=/^([a-z]+:\/\/|\/\/)/i,la=Zl("JSONRefError",function(r,n,a){this.originalError=a,C()(this,n||{})}),fi={},ql=new(dd()),Bs=[function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="examples"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="examples"&&e[6]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="examples"&&e[7]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[4]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"}],$a=function(r){return Bs.some(function(n){return n(r)})},eu={key:"$ref",plugin:function(r,n,a,o){var c=o.getInstance(),p=Kn()(a).call(a,0,-1);if(!(za(p)||$a(p))){var m=o.getContext(a),v=m.baseDoc;if(typeof r!="string")return new la("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:v,fullPath:a});var y=ru(r),b=y[0],I=y[1]||"",R;try{R=v||b?Bf(b,v):null}catch(ie){return ua(ie,{pointer:I,$ref:r,basePath:R,fullPath:a})}var B,$;if(yd(I,R,p,o)&&!c.useCircularStructures){var te=_l(r,R);return r===te?null:nr.replace(a,te)}if(R==null?($=fa(I),B=o.get($),typeof B=="undefined"&&(B=new la("Could not resolve reference: ".concat(r),{pointer:I,$ref:r,baseDoc:v,fullPath:a}))):(B=jf(R,I),B.__value!=null?B=B.__value:B=B.catch(function(ie){throw ua(ie,{pointer:I,$ref:r,baseDoc:v,fullPath:a})})),B instanceof Error)return[nr.remove(a),B];var q=_l(r,R),se=nr.replace(p,B,{$$ref:q});if(R&&R!==v)return[se,nr.context(p,{baseDoc:R})];try{if(!Uf(o.state,se)||c.useCircularStructures)return se}catch(ie){return null}}}},js=C()(eu,{docCache:fi,absoluteify:Bf,clearCache:Vf,JSONRefError:la,wrapError:ua,getDoc:Do,split:ru,extractFromDoc:jf,fetchJSON:gd,extract:nu,jsonPointerToArray:fa,unescapeJsonPointerToken:iu});const tu=js;function Bf(e,r){if(!Ga.test(e)){if(!r){var n;throw new la(ze()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(n,r,"'"))}return J.resolve(r,e)}return e}function ua(e,r){var n;if(e&&e.response&&e.response.body){var a;n=ze()(a="".concat(e.response.body.code," ")).call(a,e.response.body.message)}else n=e.message;return new la("Could not resolve reference: ".concat(n),r,e)}function ru(e){return(e+"").split("#")}function jf(e,r){var n=fi[e];if(n&&!nr.isPromise(n))try{var a=nu(r,n);return C()(yn().resolve(a),{__value:a})}catch(o){return yn().reject(o)}return Do(e).then(function(o){return nu(r,o)})}function Vf(e){typeof e!="undefined"?delete fi[e]:Je()(fi).forEach(function(r){delete fi[r]})}function Do(e){var r=fi[e];return r?nr.isPromise(r)?r:yn().resolve(r):(fi[e]=js.fetchJSON(e).then(function(n){return fi[e]=n,n}),fi[e])}function gd(e){return fetch(e,{headers:{Accept:Df},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return La.load(r)})}function nu(e,r){var n=fa(e);if(n.length<1)return r;var a=nr.getIn(r,n);if(typeof a=="undefined")throw new la("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return a}function fa(e){var r;if(typeof e!="string")throw new TypeError("Expected a string, got a ".concat(H(e)));return e[0]==="/"&&(e=e.substr(1)),e===""?[]:ot()(r=e.split("/")).call(r,iu)}function iu(e){if(typeof e!="string")return e;var r=new(Ql())("=".concat(e.replace(/~1/g,"/").replace(/~0/g,"~")));return r.get("")}function au(e){var r,n=new(Ql())([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]);return Kn()(r=n.toString()).call(r,1)}function md(e){return e.length===0?"":"/".concat(ot()(e).call(e,au).join("/"))}var ou=function(r){return!r||r==="/"||r==="#"};function Vs(e,r){if(ou(r))return!0;var n=e.charAt(r.length),a=Kn()(r).call(r,-1);return e.indexOf(r)===0&&(!n||n==="/"||n==="#")&&a!=="#"}function yd(e,r,n,a){var o,c,p=ql.get(a);p||(p={},ql.set(a,p));var m=md(n),v=ze()(o="".concat(r||"<specmap-base>","#")).call(o,e),y=m.replace(/allOf\/\d+\/?/g,""),b=a.contextTree.get([]).baseDoc;if(r===b&&Vs(y,e))return!0;var I="",R=n.some(function(B){var $;return I=ze()($="".concat(I,"/")).call($,au(B)),p[I]&&p[I].some(function(te){return Vs(te,v)||Vs(v,te)})});if(R)return!0;p[y]=ze()(c=p[y]||[]).call(c,v)}function Uf(e,r){var n=[e];return r.path.reduce(function(o,c){return n.push(o[c]),o[c]},e),a(r.value);function a(o){return nr.isObject(o)&&(n.indexOf(o)>=0||Je()(o).some(function(c){return a(o[c])}))}}const Wf={key:"allOf",plugin:function(r,n,a,o,c){if(!(c.meta&&c.meta.$$ref)){var p=Kn()(a).call(a,0,-1);if(!za(p)){if(!Array.isArray(r)){var m=new TypeError("allOf must be an array");return m.fullPath=a,m}var v=!1,y=c.value;if(p.forEach(function(B){!y||(y=y[B])}),y=G({},y),Je()(y).length!==0){delete y.allOf;var b=[];if(b.push(o.replace(p,{})),r.forEach(function(B,$){if(!o.isObject(B)){if(v)return null;v=!0;var te=new TypeError("Elements in allOf must be objects");return te.fullPath=a,b.push(te)}b.push(o.mergeDeep(p,B));var q=Kn()(a).call(a,0,-1),se=Ri(B,q,{getBaseUrlForNodePath:function(pe){var ve;return o.getContext(ze()(ve=[]).call(ve,aa(a),[$],aa(pe))).baseDoc},specmap:o});b.push.apply(b,aa(se))}),y.example){var I;b.push(o.remove(ze()(I=[]).call(I,p,"example")))}if(b.push(o.mergeDeep(p,y)),!y.$$ref){var R;b.push(o.remove(ze()(R=[]).call(R,p,"$$ref")))}return b}}}}},bd={key:"parameters",plugin:function(r,n,a,o){if(Array.isArray(r)&&r.length){var c=C()([],r),p=Kn()(a).call(a,0,-1),m=G({},nr.getIn(o.spec,p));return r.forEach(function(v,y){try{c[y].default=o.parameterMacro(m,v)}catch(I){var b=new Error(I);return b.fullPath=a,b}}),nr.replace(a,c)}return nr.replace(a,r)}},su={key:"properties",plugin:function(r,n,a,o){var c=G({},r);for(var p in r)try{c[p].default=o.modelPropertyMacro(c[p])}catch(y){var m=new Error(y);return m.fullPath=a,m}var v=nr.replace(a,c);return v}};var Bo=function(){function e(r){Bl(this,e),this.root=ca(r||{})}return jl(e,[{key:"set",value:function(n,a){var o=this.getParent(n,!0);if(!o){Us(this.root,a,null);return}var c=n[n.length-1],p=o.children;if(p[c]){Us(p[c],a,o);return}p[c]=ca(a,o)}},{key:"get",value:function(n){if(n=n||[],n.length<1)return this.root.value;for(var a=this.root,o,c,p=0;p<n.length&&(c=n[p],o=a.children,!!o[c]);p+=1)a=o[c];return a&&a.protoValue}},{key:"getParent",value:function(n,a){return!n||n.length<1?null:n.length<2?this.root:Kn()(n).call(n,0,-1).reduce(function(o,c){if(!o)return o;var p=o.children;return!p[c]&&a&&(p[c]=ca(null,o)),p[c]},this.root)}}]),e}();function ca(e,r){return Us({children:{}},e,r)}function Us(e,r,n){return e.value=r||{},e.protoValue=n?G(G({},n.protoValue),e.value):e.value,Je()(e.children).forEach(function(a){var o=e.children[a];e.children[a]=Us(o,o.value,e)}),e}var lu=100,Hf=function(){},xd=function(){function e(r){var n=this,a,o;Bl(this,e),C()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Bo,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:C()(Object.create(this),nr,{getInstance:function(){return n}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=tr()(a=ot()(o=this.plugins).call(o,this.wrapPlugin.bind(this))).call(a,nr.isFunction),this.patches.push(nr.add([],this.spec)),this.patches.push(nr.context([],this.context)),this.updatePatches(this.patches)}return jl(e,[{key:"debug",value:function(n){if(this.debugLevel===n){for(var a,o=arguments.length,c=new Array(o>1?o-1:0),p=1;p<o;p++)c[p-1]=arguments[p];(a=console).log.apply(a,c)}}},{key:"verbose",value:function(n){if(this.debugLevel==="verbose"){for(var a,o,c=arguments.length,p=new Array(c>1?c-1:0),m=1;m<c;m++)p[m-1]=arguments[m];(a=console).log.apply(a,ze()(o=["[".concat(n,"] ")]).call(o,p))}}},{key:"wrapPlugin",value:function(n,a){var o=this.pathDiscriminator,c=null,p;return n[this.pluginProp]?(c=n,p=n[this.pluginProp]):nr.isFunction(n)?p=n:nr.isObject(n)&&(p=m(n)),C()(p.bind(c),{pluginName:n.name||a,isGenerator:nr.isGenerator(p)});function m(v){var y=function(I,R){return Array.isArray(I)?I.every(function(B,$){return B===R[$]}):!0};return Oe().mark(function b(I,R){var B,$,te,q,se,ie;return Oe().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:ie=function(Ce,we,xe){var Ae,Fe,Le,We,Ke,At,qe,_t,sr,Ut,lr,Kt,ur;return Oe().wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:if(nr.isObject(Ce)){zt.next=6;break}if(v.key!==we[we.length-1]){zt.next=4;break}return zt.next=4,v.plugin(Ce,v.key,we,R);case 4:zt.next=30;break;case 6:Ae=we.length-1,Fe=we[Ae],Le=we.indexOf("properties"),We=Fe==="properties"&&Ae===Le,Ke=R.allowMetaPatches&&$[Ce.$$ref],At=0,qe=Je()(Ce);case 12:if(!(At<qe.length)){zt.next=30;break}if(_t=qe[At],sr=Ce[_t],Ut=ze()(we).call(we,_t),lr=nr.isObject(sr),Kt=Ce.$$ref,Ke){zt.next=22;break}if(!lr){zt.next=22;break}return R.allowMetaPatches&&Kt&&($[Kt]=!0),zt.delegateYield(ie(sr,Ut,xe),"t0",22);case 22:if(!(!We&&_t===v.key)){zt.next=27;break}if(ur=y(o,we),!(!o||ur)){zt.next=27;break}return zt.next=27,v.plugin(sr,_t,Ut,R,xe);case 27:At++,zt.next=12;break;case 30:case"end":return zt.stop()}},B)},B=Oe().mark(ie),$={},te=_(tr()(I).call(I,nr.isAdditiveMutation)),ve.prev=4,te.s();case 6:if((q=te.n()).done){ve.next=11;break}return se=q.value,ve.delegateYield(ie(se.value,se.path,se),"t0",9);case 9:ve.next=6;break;case 11:ve.next=16;break;case 13:ve.prev=13,ve.t1=ve.catch(4),te.e(ve.t1);case 16:return ve.prev=16,te.f(),ve.finish(16);case 19:case"end":return ve.stop()}},b,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var n,a=this;return qt()(n=this.wrappedPlugins).call(n,function(o){var c=a.getMutationsForPlugin(o);return c.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var n;return yn().race(ot()(n=this.promisedPatches).call(n,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(n){var a=this.constructor.getPluginName(n);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(n){return this.getPluginHistory(n).length}},{key:"getPluginHistoryTip",value:function(n){var a=this.getPluginHistory(n),o=a&&a[a.length-1];return o||{}}},{key:"getPluginMutationIndex",value:function(n){var a=this.getPluginHistoryTip(n).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(n,a){var o=this.constructor.getPluginName(n);this.pluginHistory[o]=this.pluginHistory[o]||[],this.pluginHistory[o].push(a)}},{key:"updatePatches",value:function(n){var a=this;nr.normalizeArray(n).forEach(function(o){if(o instanceof Error){a.errors.push(o);return}try{if(!nr.isObject(o)){a.debug("updatePatches","Got a non-object patch",o);return}if(a.showDebug&&a.allPatches.push(o),nr.isPromise(o.value)){a.promisedPatches.push(o),a.promisedPatchThen(o);return}if(nr.isContextPatch(o)){a.setContext(o.path,o.value);return}if(nr.isMutation(o)){a.updateMutations(o);return}}catch(c){console.error(c),a.errors.push(c)}})}},{key:"updateMutations",value:function(n){H(n.value)==="object"&&!Array.isArray(n.value)&&this.allowMetaPatches&&(n.value=G({},n.value));var a=nr.applyPatch(this.state,n,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(n),this.state=a)}},{key:"removePromisedPatch",value:function(n){var a,o=this.promisedPatches.indexOf(n);if(o<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}Ef()(a=this.promisedPatches).call(a,o,1)}},{key:"promisedPatchThen",value:function(n){var a=this;return n.value=n.value.then(function(o){var c=G(G({},n),{},{value:o});a.removePromisedPatch(n),a.updatePatches(c)}).catch(function(o){a.removePromisedPatch(n),a.updatePatches(o)}),n.value}},{key:"getMutations",value:function(n,a){var o;return n=n||0,typeof a!="number"&&(a=this.mutations.length),Kn()(o=this.mutations).call(o,n,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(n){var a=this.getPluginMutationIndex(n);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(n){return nr.getIn(this.state,n)}},{key:"_getContext",value:function(n){return this.contextTree.get(n)}},{key:"setContext",value:function(n,a){return this.contextTree.set(n,a)}},{key:"_hasRun",value:function(n){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(n||0)}},{key:"dispatch",value:function(){var n=this,a=this,o=this.nextPlugin();if(!o){var c=this.nextPromisedPatch();if(c)return c.then(function(){return n.dispatch()}).catch(function(){return n.dispatch()});var p={spec:this.state,errors:this.errors};return this.showDebug&&(p.patches=this.allPatches),yn().resolve(p)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[o]=(a.pluginCount[o]||0)+1,a.pluginCount[o]>lu){var m;return yn().resolve({spec:a.state,errors:ze()(m=a.errors).call(m,new Error("We've reached a hard limit of ".concat(lu," plugin runs")))})}if(o!==this.currentPlugin&&this.promisedPatches.length){var v,y=ot()(v=this.promisedPatches).call(v,function(R){return R.value});return yn().all(ot()(y).call(y,function(R){return R.then(Hf,Hf)})).then(function(){return n.dispatch()})}return b();function b(){a.currentPlugin=o;var R=a.getCurrentMutations(),B=a.mutations.length-1;try{if(o.isGenerator){var $=_(o(R,a.getLib())),te;try{for($.s();!(te=$.n()).done;){var q=te.value;I(q)}}catch(ie){$.e(ie)}finally{$.f()}}else{var se=o(R,a.getLib());I(se)}}catch(ie){console.error(ie),I([C()(Object.create(ie),{plugin:o})])}finally{a.updatePluginHistory(o,{mutationIndex:B})}return a.dispatch()}function I(R){R&&(R=nr.fullyNormalizeArray(R),a.updatePatches(R,o))}}}],[{key:"getPluginName",value:function(n){return n.pluginName}},{key:"getPatchesOfType",value:function(n,a){return tr()(n).call(n,a)}}]),e}();function Sd(e){return new xd(e).dispatch()}var da={refs:tu,allOf:Wf,parameters:bd,properties:su},uu=function(r){return String.prototype.toLowerCase.call(r)},zf=function(r){return r.replace(/[^\w]/gi,"_")};function Gf(e){var r=e.openapi;return r?j()(r).call(r,"3"):!1}function wd(e){var r=e.swagger;return r?_startsWithInstanceProperty(r).call(r,"2"):!1}function Ka(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=a.v2OperationIdCompatibilityMode;if(!e||H(e)!=="object")return null;var c=(e.operationId||"").replace(/\s/g,"");return c.length?zf(e.operationId):$f(r,n,{v2OperationIdCompatibilityMode:o})}function $f(e,r){var n,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=a.v2OperationIdCompatibilityMode;if(o){var c,p,m=ze()(c="".concat(r.toLowerCase(),"_")).call(c,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return m=m||ze()(p="".concat(e.substring(1),"_")).call(p,r),m.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return ze()(n="".concat(uu(r))).call(n,zf(e))}function Kf(e,r){var n;return ze()(n="".concat(uu(r),"-")).call(n,e)}function Yf(e,r){return!e||!e.paths?null:Ya(e,function(n){var a=n.pathName,o=n.method,c=n.operation;if(!c||H(c)!=="object")return!1;var p=c.operationId,m=Ka(c,a,o),v=Kf(a,o);return[m,v,p].some(function(y){return y&&y===r})})}function Ya(e,r){return fu(e,r,!0)||null}function fu(e,r,n){if(!e||H(e)!=="object"||!e.paths||H(e.paths)!=="object")return null;var a=e.paths;for(var o in a)for(var c in a[o])if(c.toUpperCase()!=="PARAMETERS"){var p=a[o][c];if(!(!p||H(p)!=="object")){var m={spec:e,pathName:o,method:c.toUpperCase(),operation:p},v=r(m);if(n&&v)return m}}}function jo(e){var r=e.spec,n=r.paths,a={};if(!n||r.$$normalized)return e;for(var o in n){var c,p=n[o];if(!(p==null||!Pe()(c=["object","function"]).call(c,H(p)))){var m=p.parameters,v=function(R){var B,$=p[R];if($==null||!Pe()(B=["object","function"]).call(B,H($)))return"continue";var te=Ka($,o,R);if(te){a[te]?a[te].push($):a[te]=[$];var q=a[te];if(q.length>1)q.forEach(function(We,Ke){var At;We.__originalOperationId=We.__originalOperationId||We.operationId,We.operationId=ze()(At="".concat(te)).call(At,Ke+1)});else if(typeof $.operationId!="undefined"){var se=q[0];se.__originalOperationId=se.__originalOperationId||$.operationId,se.operationId=te}}if(R!=="parameters"){var ie=[],pe={};for(var ve in r)(ve==="produces"||ve==="consumes"||ve==="security")&&(pe[ve]=r[ve],ie.push(pe));if(m&&(pe.parameters=m,ie.push(pe)),ie.length){var ge=_(ie),Ce;try{for(ge.s();!(Ce=ge.n()).done;){var we=Ce.value;for(var xe in we)if(!$[xe])$[xe]=we[xe];else if(xe==="parameters"){var Ae=_(we[xe]),Fe;try{var Le=function(){var Ke=Fe.value,At=$[xe].some(function(qe){return qe.name&&qe.name===Ke.name||qe.$ref&&qe.$ref===Ke.$ref||qe.$$ref&&qe.$$ref===Ke.$$ref||qe===Ke});At||$[xe].push(Ke)};for(Ae.s();!(Fe=Ae.n()).done;)Le()}catch(We){Ae.e(We)}finally{Ae.f()}}}}catch(We){ge.e(We)}finally{ge.f()}}}};for(var y in p)var b=v(y)}}return r.$$normalized=!0,e}function Jf(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.requestInterceptor,a=r.responseInterceptor,o=e.withCredentials?"include":"same-origin";return function(c){return e({url:c,loadSpec:!0,requestInterceptor:n,responseInterceptor:a,headers:{Accept:Df},credentials:o}).then(function(p){return p.body})}}function Ad(){da.refs.clearCache()}function Xf(e){var r=e.fetch,n=e.spec,a=e.url,o=e.mode,c=e.allowMetaPatches,p=c===void 0?!0:c,m=e.pathDiscriminator,v=e.modelPropertyMacro,y=e.parameterMacro,b=e.requestInterceptor,I=e.responseInterceptor,R=e.skipNormalization,B=e.useCircularStructures,$=e.http,te=e.baseDoc;if(te=te||a,$=r||$||Cs,!n)return Jf($,{requestInterceptor:b,responseInterceptor:I})(te).then(q);return q(n);function q(se){te&&(da.refs.docCache[te]=se),da.refs.fetchJSON=Jf($,{requestInterceptor:b,responseInterceptor:I});var ie=[da.refs];return typeof y=="function"&&ie.push(da.parameters),typeof v=="function"&&ie.push(da.properties),o!=="strict"&&ie.push(da.allOf),Sd({spec:se,context:{baseDoc:te},plugins:ie,allowMetaPatches:p,pathDiscriminator:m,parameterMacro:y,modelPropertyMacro:v,useCircularStructures:B}).then(R?function(){var pe=bt(Oe().mark(function ve(ge){return Oe().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.abrupt("return",ge);case 1:case"end":return we.stop()}},ve)}));return function(ve){return pe.apply(this,arguments)}}():jo)}}var mr=s(72579),Vo=s.n(mr);function cu(e,r){return pa.apply(this,arguments)}function pa(){return pa=bt(Oe().mark(function e(r,n){var a,o,c,p,m,v,y,b,I,R,B,$,te=arguments;return Oe().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return a=te.length>2&&te[2]!==void 0?te[2]:{},o=a.returnEntireTree,c=a.baseDoc,p=a.requestInterceptor,m=a.responseInterceptor,v=a.parameterMacro,y=a.modelPropertyMacro,b=a.useCircularStructures,I={pathDiscriminator:n,baseDoc:c,requestInterceptor:p,responseInterceptor:m,parameterMacro:v,modelPropertyMacro:y,useCircularStructures:b},R=jo({spec:r}),B=R.spec,se.next=6,Xf(G(G({},I),{},{spec:B,allowMetaPatches:!0,skipNormalization:!0}));case 6:return $=se.sent,!o&&Array.isArray(n)&&n.length&&($.spec=Vo()($.spec,n)||null),se.abrupt("return",$);case 9:case"end":return se.stop()}},e)})),pa.apply(this,arguments)}var Xn=function(){return null},Ws=function(r){return Array.isArray(r)?r:[r]},Ja={mapTagOperations:_f,makeExecute:Qf};function Qf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var n=r.pathName,a=r.method,o=r.operationId;return function(c){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=e.requestInterceptor,v=e.responseInterceptor,y=e.userFetch;return e.execute(G({spec:e.spec,requestInterceptor:m,responseInterceptor:v,userFetch:y,pathName:n,method:a,parameters:c,operationId:o},p))}}}function Cd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Ja.makeExecute(e),n=Ja.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r}),a={};for(var o in n){a[o]={operations:{}};for(var c in n[o])a[o].operations[c]={execute:n[o][c]}}return{apis:a}}function Zf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Ja.makeExecute(e);return{apis:Ja.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r})}}function _f(e){var r=e.spec,n=e.cb,a=n===void 0?Xn:n,o=e.defaultTag,c=o===void 0?"default":o,p=e.v2OperationIdCompatibilityMode,m={},v={};return fu(r,function(y){var b=y.pathName,I=y.method,R=y.operation,B=R.tags?Ws(R.tags):[c];B.forEach(function($){if(typeof $=="string"){v[$]=v[$]||{};var te=v[$],q=Ka(R,b,I,{v2OperationIdCompatibilityMode:p}),se=a({spec:r,pathName:b,method:I,operation:R,operationId:q});if(m[q]){var ie;m[q]+=1,te[ze()(ie="".concat(q)).call(ie,m[q])]=se}else if(typeof te[q]!="undefined"){var pe,ve,ge=m[q]||1;m[q]=ge+1,te[ze()(pe="".concat(q)).call(pe,m[q])]=se;var Ce=te[q];delete te[q],te[ze()(ve="".concat(q)).call(ve,ge)]=Ce}else te[q]=se}})}),v}var du=s(26405);function Ed(e,r){if(e==null)return{};var n={},a=E(e),o,c;for(c=0;c<a.length;c++)o=a[c],!(du(r).call(r,o)>=0)&&(n[o]=e[o]);return n}function pu(e,r){if(e==null)return{};var n=Ed(e,r),a,o;if(F){var c=F(e);for(o=0;o<c.length;o++)a=c[o],!(du(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}var qf=s(13421);/*!
|
|
90
85
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
91
86
|
*
|
|
92
87
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
93
88
|
* Released under the MIT License.
|
|
94
|
-
*/function Yp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jp(e){var r,n;return Yp(e)===!1?!1:(r=e.constructor,r===void 0?!0:(n=r.prototype,!(Yp(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const wm={body:Am,header:Em,query:Tm,path:Om,formData:Cm};function Am(e){var r=e.req,n=e.value;r.body=n}function Cm(e){var r=e.req,n=e.value,a=e.parameter;(n||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:n,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Em(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[n.name]=a)}function Om(e){var r=e.req,n=e.value,a=e.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(n))}function Tm(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},n===!1&&a.type==="boolean"&&(n="false"),n===0&&["number","integer"].indexOf(a.type)>-1&&(n="0"),n)r.query[a.name]={collectionFormat:a.collectionFormat,value:n};else if(a.allowEmptyValue&&n!==void 0){var o=a.name;r.query[o]=r.query[o]||{},r.query[o].allowEmptyValue=!0}}function Kf(e,r){return gi()(r).call(r,"application/json")?typeof e=="string"?e:Ya()(e):e.toString()}function Pm(e){var r=e.req,n=e.value,a=e.parameter,o=a.name,f=a.style,d=a.explode,m=a.content;if(m){var g=Kt()(m)[0];r.url=r.url.split("{".concat(o,"}")).join(ua(Kf(n,g),{escape:!0}));return}var b=Ol({key:a.name,value:n,style:f||"simple",explode:d||!1,escape:!0});r.url=r.url.split("{".concat(o,"}")).join(b)}function Im(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},a.content){var o=Kt()(a.content)[0];r.query[a.name]=Kf(n,o);return}if(n===!1&&(n="false"),n===0&&(n="0"),n){var f=a.style,d=a.explode,m=a.allowReserved;r.query[a.name]={value:n,serializationOption:{style:f,explode:d,allowReserved:m}}}else if(a.allowEmptyValue&&n!==void 0){var g=a.name;r.query[g]=r.query[g]||{},r.query[g].allowEmptyValue=!0}}var km=["accept","authorization","content-type"];function Fm(e){var r=e.req,n=e.parameter,a=e.value;if(r.headers=r.headers||{},!(km.indexOf(n.name.toLowerCase())>-1)){if(n.content){var o=Kt()(n.content)[0];r.headers[n.name]=Kf(a,o);return}typeof a!="undefined"&&(r.headers[n.name]=Ol({key:n.name,value:a,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function Rm(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{};var o=ar(a);if(n.content){var f,d=Kt()(n.content)[0];r.headers.Cookie=ut()(f="".concat(n.name,"=")).call(f,Kf(a,d));return}if(o!=="undefined"){var m=o==="object"&&!Array.isArray(a)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=m+Ol({key:n.name,value:a,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var Lm=s(1858),Xp=s.n(Lm),Mm=function(){return typeof Xp()!="undefined"?Xp():typeof self!="undefined"?self:window}(),Nm=Mm.btoa;const Qp=Nm;function Dm(e,r){var n=e.operation,a=e.requestBody,o=e.securities,f=e.spec,d=e.attachContentTypeForEmptyPayload,m=e.requestContentType;r=Bm({request:r,securities:o,operation:n,spec:f});var g=n.requestBody||{},b=Kt()(g.content||{}),x=m&&b.indexOf(m)>-1;if(a||d){if(m&&x)r.headers["Content-Type"]=m;else if(!m){var I=b[0];I&&(r.headers["Content-Type"]=I,m=I)}}else m&&x&&(r.headers["Content-Type"]=m);if(!e.responseContentType&&n.responses){var N,j=Er()(N=Ou()(n.responses)).call(N,function(ee){var te=$n(ee,2),se=te[0],ie=te[1],de=parseInt(se,10);return de>=200&&de<300&&Jp(ie.content)}).reduce(function(ee,te){var se=$n(te,2),ie=se[1];return ut()(ee).call(ee,Kt()(ie.content))},[]);j.length>0&&(r.headers.accept=j.join(", "))}if(a)if(m){if(b.indexOf(m)>-1)if(m==="application/x-www-form-urlencoded"||m==="multipart/form-data")if(ar(a)==="object"){var W=(g.content[m]||{}).encoding||{};r.form={},Kt()(a).forEach(function(ee){r.form[ee]={value:a[ee],encoding:W[ee]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function Bm(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,o=e.operation,f=o===void 0?{}:o,d=e.spec,m=lr({},r),g=a.authorized,b=g===void 0?{}:g,x=f.security||d.security||[],I=b&&!!Kt()(b).length,N=Bl()(d,["components","securitySchemes"])||{};return m.headers=m.headers||{},m.query=m.query||{},!Kt()(a).length||!I||!x||Array.isArray(f.security)&&!f.security.length?r:(x.forEach(function(j){Kt()(j).forEach(function(W){var ee=b[W],te=N[W];if(!!ee){var se=ee.value||ee,ie=te.type;if(ee){if(ie==="apiKey")te.in==="query"&&(m.query[te.name]=se),te.in==="header"&&(m.headers[te.name]=se),te.in==="cookie"&&(m.cookies[te.name]=se);else if(ie==="http"){if(/^basic$/i.test(te.scheme)){var de,we=se.username||"",xe=se.password||"",Ee=Qp(ut()(de="".concat(we,":")).call(de,xe));m.headers.Authorization="Basic ".concat(Ee)}/^bearer$/i.test(te.scheme)&&(m.headers.Authorization="Bearer ".concat(se))}else if(ie==="oauth2"||ie==="openIdConnect"){var ye,be=ee.token||{},Se=te["x-tokenName"]||"access_token",ke=be[Se],Me=be.token_type;(!Me||Me.toLowerCase()==="bearer")&&(Me="Bearer"),m.headers.Authorization=ut()(ye="".concat(Me," ")).call(ye,ke)}}}})}),m)}function jm(e,r){var n=e.spec,a=e.operation,o=e.securities,f=e.requestContentType,d=e.responseContentType,m=e.attachContentTypeForEmptyPayload;if(r=Vm({request:r,securities:o,operation:a,spec:n}),r.body||r.form||m){var g,b;if(f)r.headers["Content-Type"]=f;else if(Array.isArray(a.consumes)){var x=$n(a.consumes,1);r.headers["Content-Type"]=x[0]}else if(Array.isArray(n.consumes)){var I=$n(n.consumes,1);r.headers["Content-Type"]=I[0]}else a.parameters&&Er()(g=a.parameters).call(g,function(te){return te.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&Er()(b=a.parameters).call(b,function(te){return te.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(f){var N,j,W=a.parameters&&Er()(N=a.parameters).call(N,function(te){return te.in==="body"}).length>0,ee=a.parameters&&Er()(j=a.parameters).call(j,function(te){return te.in==="formData"}).length>0;(W||ee)&&(r.headers["Content-Type"]=f)}return!d&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function Vm(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,o=e.operation,f=o===void 0?{}:o,d=e.spec,m=lr({},r),g=a.authorized,b=g===void 0?{}:g,x=a.specSecurity,I=x===void 0?[]:x,N=f.security||I,j=b&&!!Kt()(b).length,W=d.securityDefinitions;return m.headers=m.headers||{},m.query=m.query||{},!Kt()(a).length||!j||!N||Array.isArray(f.security)&&!f.security.length?r:(N.forEach(function(ee){Kt()(ee).forEach(function(te){var se=b[te];if(!!se){var ie=se.token,de=se.value||se,we=W[te],xe=we.type,Ee=we["x-tokenName"]||"access_token",ye=ie&&ie[Ee],be=ie&&ie.token_type;if(se){if(xe==="apiKey"){var Se=we.in==="query"?"query":"headers";m[Se]=m[Se]||{},m[Se][we.name]=de}else if(xe==="basic")if(de.header)m.headers.authorization=de.header;else{var ke,Me=de.username||"",Re=de.password||"";de.base64=Qp(ut()(ke="".concat(Me,":")).call(ke,Re)),m.headers.authorization="Basic ".concat(de.base64)}else if(xe==="oauth2"&&ye){var We;be=!be||be.toLowerCase()==="bearer"?"Bearer":be,m.headers.authorization=ut()(We="".concat(be," ")).call(We,ye)}}}})}),m)}var Um=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Zp=function(r){return Array.isArray(r)?r:[]},Wm=Ep("OperationNotFoundError",function(r,n,a){this.originalError=a,Fr()(this,n||{})}),Hm=function(r,n){return Er()(n).call(n,function(a){return a.name===r})},zm=function(r){var n={};r.forEach(function(o){n[o.in]||(n[o.in]={}),n[o.in][o.name]=o});var a=[];return Kt()(n).forEach(function(o){Kt()(n[o]).forEach(function(f){a.push(n[o][f])})}),a},Gm={buildRequest:_p};function $m(e){var r=e.http,n=e.fetch,a=e.spec,o=e.operationId,f=e.pathName,d=e.method,m=e.parameters,g=e.securities,b=xm(e,Um),x=r||n||Co;f&&d&&!o&&(o=Wp(f,d));var I=Gm.buildRequest(lr({spec:a,operationId:o,parameters:m,securities:g,http:x},b));return I.body&&(Jp(I.body)||Array.isArray(I.body))&&(I.body=Ya()(I.body)),x(I)}function _p(e){var r,n,a=e.spec,o=e.operationId,f=e.responseContentType,d=e.scheme,m=e.requestInterceptor,g=e.responseInterceptor,b=e.contextUrl,x=e.userFetch,I=e.server,N=e.serverVariables,j=e.http,W=e.signal,ee=e.parameters,te=e.parameterBuilders,se=Up(a);te||(se?te=A:te=wm);var ie=j&&j.withCredentials?"include":"same-origin",de={url:"",credentials:ie,headers:{},cookies:{}};W&&(de.signal=W),m&&(de.requestInterceptor=m),g&&(de.responseInterceptor=g),x&&(de.userFetch=x);var we=um(a,o);if(!we)throw new Wm("Operation ".concat(o," not found"));var xe=we.operation,Ee=xe===void 0?{}:xe,ye=we.method,be=we.pathName;if(de.url+=qp({spec:a,scheme:d,contextUrl:b,server:I,serverVariables:N,pathName:be,method:ye}),!o)return delete de.cookies,de;de.url+=be,de.method="".concat(ye).toUpperCase(),ee=ee||{};var Se=a.paths[be]||{};f&&(de.headers.accept=f);var ke=zm(ut()(r=ut()(n=[]).call(n,Zp(Ee.parameters))).call(r,Zp(Se.parameters)));ke.forEach(function(We){var It=te[We.in],vt;if(We.in==="body"&&We.schema&&We.schema.properties&&(vt=ee),vt=We&&We.name&&ee[We.name],typeof vt=="undefined"){var rr;vt=We&&We.name&&ee[ut()(rr="".concat(We.in,".")).call(rr,We.name)]}else if(Hm(We.name,ke).length>1){var cr;console.warn(ut()(cr="Parameter '".concat(We.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(cr,We.name,"' and the passed-in parameter values did not define an 'in' value."))}if(vt!==null){if(typeof We.default!="undefined"&&typeof vt=="undefined"&&(vt=We.default),typeof vt=="undefined"&&We.required&&!We.allowEmptyValue)throw new Error("Required parameter ".concat(We.name," is not provided"));if(se&&We.schema&&We.schema.type==="object"&&typeof vt=="string")try{vt=JSON.parse(vt)}catch(mr){throw new Error("Could not parse object parameter value string as JSON")}It&&It({req:de,parameter:We,value:vt,operation:Ee,spec:a})}});var Me=lr(lr({},e),{},{operation:Ee});if(se?de=Dm(Me,de):de=jm(Me,de),de.cookies&&Kt()(de.cookies).length){var Re=Kt()(de.cookies).reduce(function(We,It){var vt=de.cookies[It],rr=We?"&":"",cr=Sm.serialize(It,vt);return We+rr+cr},"");de.headers.Cookie=Re}return de.cookies&&delete de.cookies,Ln(de),de}var Od=function(r){return r?r.replace(/\W/g,""):null};function qp(e){var r=Up(e.spec);return r?Km(e):Xm(e)}function Km(e){var r=e.spec,n=e.pathName,a=e.method,o=e.server,f=e.contextUrl,d=e.serverVariables,m=d===void 0?{}:d,g=Bl()(r,["paths",n,(a||"").toLowerCase(),"servers"])||Bl()(r,["paths",n,"servers"])||Bl()(r,["servers"]),b="",x=null;if(o&&g&&g.length){var I=$t()(g).call(g,function(W){return W.url});I.indexOf(o)>-1&&(b=o,x=g[I.indexOf(o)])}if(!b&&g&&g.length){b=g[0].url;var N=$n(g,1);x=N[0]}if(b.indexOf("{")>-1){var j=Jm(b);j.forEach(function(W){if(x.variables&&x.variables[W]){var ee=x.variables[W],te=m[W]||ee.default,se=new RegExp("{".concat(W,"}"),"g");b=b.replace(se,te)}})}return Ym(b,f)}function Ym(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e&&r?Gn.parse(Gn.resolve(r,e)):Gn.parse(e),a=Gn.parse(r),o=Od(n.protocol)||Od(a.protocol)||"",f=n.host||a.host,d=n.pathname||"",m;if(o&&f){var g;m=ut()(g="".concat(o,"://")).call(g,f+d)}else m=d;return m[m.length-1]==="/"?pn()(m).call(m,0,-1):m}function Jm(e){for(var r=[],n=/{([^}]+)}/g,a;a=n.exec(e);)r.push(a[1]);return r}function Xm(e){var r=e.spec,n=e.scheme,a=e.contextUrl,o=a===void 0?"":a,f=Gn.parse(o),d=Array.isArray(r.schemes)?r.schemes[0]:null,m=n||d||Od(f.protocol)||"http",g=r.host||f.host||"",b=r.basePath||"",x;if(m&&g){var I;x=ut()(I="".concat(m,"://")).call(I,g+b)}else x=b;return x[x.length-1]==="/"?pn()(x).call(x,0,-1):x}Ir.http=Co,Ir.makeHttp=ds.bind(null,Ir.http),Ir.resolve=$p,Ir.resolveSubtree=pm,Ir.execute=$m,Ir.serializeRes=Pl,Ir.serializeHeaders=Il,Ir.clearCache=cm,Ir.makeApisTagOperation=mm,Ir.buildRequest=_p,Ir.helpers={opId:Gf},Ir.getBaseUrl=qp;function Ir(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string"?n.url=e:n=e,!(this instanceof Ir))return new Ir(n);Fr()(this,n);var a=this.resolve().then(function(){return r.disableInterfaces||Fr()(r,Ir.makeApisTagOperation(r)),r});return a.client=this,a}Ir.prototype={http:Co,execute:function(r){return this.applyDefaults(),Ir.execute(lr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ir.resolve(lr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},n)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Ir.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&qn()(n).call(n,"http")){var a=Gn.parse(n);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var o1=Ir.helpers;const Qm=Ir;var Bt=s(10400),Xn=s(8136),Zm=s(99561),jl=s(89519),Yf=s(91419),eh=s(56642),ja=s(67262),_m=Object.defineProperty,qm=Object.defineProperties,ey=Object.getOwnPropertyDescriptors,th=Object.getOwnPropertySymbols,ty=Object.prototype.hasOwnProperty,ry=Object.prototype.propertyIsEnumerable,rh=(e,r,n)=>r in e?_m(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Vl=(e,r)=>{for(var n in r||(r={}))ty.call(r,n)&&rh(e,n,r[n]);if(th)for(var n of th(r))ry.call(r,n)&&rh(e,n,r[n]);return e},ny=(e,r)=>qm(e,ey(r)),Jf=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});const nh="/oauth2-redirect.html";class Ai{static authorizeImplicit({authorizationUrl:r,clientId:n,scopes:a,extraParams:o={},routingBasePath:f,redirectUri:d,successCallback:m,errorCallback:g}){const b=(0,ja.p8)({date:new Date().toString()}),x=new URL(r),I=f==="/"?"":f,N=`${window.location.origin}${I}${nh}`;x.searchParams.set("client_id",n),x.searchParams.set("redirect_uri",d||N),x.searchParams.set("response_type","token"),x.searchParams.set("state",b),Array.isArray(a)&&x.searchParams.set("scope",a.join(" "));for(const j in o)x.searchParams.set(j,o[j]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:n,scopes:a},state:b,successCallback:j=>{m(j),Ai.clearRedirectData("implicit")},errorCallback:j=>{g(j),Ai.clearRedirectData("implicit")}},window.open(x.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:n,clientId:a,clientSecret:o,codeVerifier:f,codeChallenge:d,scopes:m,extraParams:g={},extraHeaders:b={},routingBasePath:x,redirectUri:I,successCallback:N,errorCallback:j}){const W=new URL(r),ee=x==="/"?"":x,te=`${window.location.origin}${ee}${nh}`,se=(0,ja.p8)({date:new Date().toString()});W.searchParams.set("client_id",a),W.searchParams.set("redirect_uri",I||te),W.searchParams.set("response_type","code"),W.searchParams.set("state",se),Array.isArray(m)&&W.searchParams.set("scope",m.join(" ")),d&&(W.searchParams.set("code_challenge",d),W.searchParams.set("code_challenge_method","S256"));for(const ie in g)W.searchParams.set(ie,g[ie]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:m},state:se,successCallback:ie=>Jf(this,[ie],function*({auth_code:de}){try{const we=yield fetch(n,{method:"POST",headers:Vl({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},b),body:eh.stringify(Vl(ny(Vl({client_id:a,client_secret:o},f&&{code_verifier:f}),{code:de,grant_type:"authorization_code",redirect_uri:I||te}),g))});yield ih(we,N,j)}catch(we){j(we)}Ai.clearRedirectData("authorizationCode")}),errorCallback:ie=>{j(ie),Ai.clearRedirectData("authorizationCode")}},window.open(W.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return Jf(this,arguments,function*({tokenUrl:n,clientId:a,clientSecret:o,scopes:f=[],extraParams:d={},extraHeaders:m={},successCallback:g,errorCallback:b}){try{const x=JSON.parse(JSON.stringify(Vl({client_id:a,client_secret:o,grant_type:"client_credentials",scope:Array.isArray(f)&&f.length?f.join(" "):void 0},d))),I=yield fetch(n,{method:"POST",headers:Vl({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},m),body:eh.stringify(x)});yield ih(I,g,b)}catch(x){b(x)}})}}const s1=new Ai;function ih(e,r,n){return Jf(this,null,function*(){if(e.ok){const a=yield e.json();r(a)}else n(new Error((e.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield e.json()):yield e.text()))})}function ah(e){return Jf(this,null,function*(){return(0,ja.rS)(yield(0,ja.JQ)(e))})}var l1=s(20340),gs=(e=>(e.STRING="string",e.ARRAY="array",e.OBJECT="object",e))(gs||{}),Td=(e=>(e.BYTE="byte",e.BASE64="base64",e.BINARY="binary",e))(Td||{}),oh=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});const sh=Object.values(Td),iy=["application/octet-stream","application/pdf","application/gzip","application/zip"],lh=["image/","audio/","video/"];function uh(e){if(lh.some(r=>e.startsWith(r)))return e}function Xf(e){return iy.includes(e)?!0:lh.some(r=>e.startsWith(r))}function ay(e){const r=e.type==="array"?e.items:e;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const n=r.contentMediaType||"",a=r.format||r.contentEncoding||(Xf(n)?"binary":"");return r.type===gs.STRING&&sh.includes(a)}function fh(e,r){if(!e||!e.type||e.type==="any")return Xf(r);const n=e.format||e.contentEncoding||"";return e.type===gs.STRING&&sh.includes(n)}function ch(e){return new Promise((r,n)=>{const a=new FileReader;a.onload=()=>{const f=a.result.replace(/data:.*\/.*;base64,/g,"");r(f)},a.onerror=()=>n(a.error),a.readAsDataURL(e)})}function dh({format:e,contentEncoding:r,contentMediaType:n}){return[e,r,n].includes(Td.BASE64)}function oy(e,r){return oh(this,null,function*(){const n=Object.values(e);let a=n.length===1?n[0]:n;return r.type===gs.STRING&&dh(r)?a=yield ch(n[0]):r.type===gs.ARRAY&&r.items&&(dh(r.items)?a=yield Promise.all(n.map(f=>oh(this,null,function*(){return yield ch(f)}))):a=n),a})}var ft=s(45091),Ut=s(41195),Qf=s(88635),ph=s(54302),sy=Object.defineProperty,ly=Object.defineProperties,uy=Object.getOwnPropertyDescriptors,Zf=Object.getOwnPropertySymbols,hh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,gh=(e,r,n)=>r in e?sy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,_f=(e,r)=>{for(var n in r||(r={}))hh.call(r,n)&&gh(e,n,r[n]);if(Zf)for(var n of Zf(r))vh.call(r,n)&&gh(e,n,r[n]);return e},fy=(e,r)=>ly(e,uy(r)),cy=(e,r)=>{var n={};for(var a in e)hh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Zf)for(var a of Zf(e))r.indexOf(a)<0&&vh.call(e,a)&&(n[a]=e[a]);return n};const mh=e=>Ut.iv`
|
|
89
|
+
*/function ir(e){return Object.prototype.toString.call(e)==="[object Object]"}function hu(e){var r,n;return ir(e)===!1?!1:(r=e.constructor,r===void 0?!0:(n=r.prototype,!(ir(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const Od={body:Xa,header:Hs,query:Ar,path:Pd,formData:Td};function Xa(e){var r=e.req,n=e.value;r.body=n}function Td(e){var r=e.req,n=e.value,a=e.parameter;(n||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:n,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Hs(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[n.name]=a)}function Pd(e){var r=e.req,n=e.value,a=e.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(n))}function Ar(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},n===!1&&a.type==="boolean"&&(n="false"),n===0&&["number","integer"].indexOf(a.type)>-1&&(n="0"),n)r.query[a.name]={collectionFormat:a.collectionFormat,value:n};else if(a.allowEmptyValue&&n!==void 0){var o=a.name;r.query[o]=r.query[o]||{},r.query[o].allowEmptyValue=!0}}function zs(e,r){return Pe()(r).call(r,"application/json")?typeof e=="string"?e:it()(e):e.toString()}function Id(e){var r=e.req,n=e.value,a=e.parameter,o=a.name,c=a.style,p=a.explode,m=a.content;if(m){var v=Je()(m)[0];r.url=r.url.split("{".concat(o,"}")).join(Na(zs(n,v),{escape:!0}));return}var y=tn({key:a.name,value:n,style:c||"simple",explode:p||!1,escape:!0});r.url=r.url.split("{".concat(o,"}")).join(y)}function kd(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},a.content){var o=Je()(a.content)[0];r.query[a.name]=zs(n,o);return}if(n===!1&&(n="false"),n===0&&(n="0"),n){var c=a.style,p=a.explode,m=a.allowReserved;r.query[a.name]={value:n,serializationOption:{style:c,explode:p,allowReserved:m}}}else if(a.allowEmptyValue&&n!==void 0){var v=a.name;r.query[v]=r.query[v]||{},r.query[v].allowEmptyValue=!0}}var Gs=["accept","authorization","content-type"];function t(e){var r=e.req,n=e.parameter,a=e.value;if(r.headers=r.headers||{},!(Gs.indexOf(n.name.toLowerCase())>-1)){if(n.content){var o=Je()(n.content)[0];r.headers[n.name]=zs(a,o);return}typeof a!="undefined"&&(r.headers[n.name]=tn({key:n.name,value:a,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function i(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{};var o=H(a);if(n.content){var c,p=Je()(n.content)[0];r.headers.Cookie=ze()(c="".concat(n.name,"=")).call(c,zs(a,p));return}if(o!=="undefined"){var m=o==="object"&&!Array.isArray(a)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=m+tn({key:n.name,value:a,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var u=s(1858),l=s.n(u),f=function(){return typeof l()!="undefined"?l():typeof self!="undefined"?self:window}(),g=f.btoa;const S=g;function T(e,r){var n=e.operation,a=e.requestBody,o=e.securities,c=e.spec,p=e.attachContentTypeForEmptyPayload,m=e.requestContentType;r=L({request:r,securities:o,operation:n,spec:c});var v=n.requestBody||{},y=Je()(v.content||{}),b=m&&y.indexOf(m)>-1;if(a||p){if(m&&b)r.headers["Content-Type"]=m;else if(!m){var I=y[0];I&&(r.headers["Content-Type"]=I,m=I)}}else m&&b&&(r.headers["Content-Type"]=m);if(!e.responseContentType&&n.responses){var R,B=tr()(R=Er()(n.responses)).call(R,function(te){var q=De(te,2),se=q[0],ie=q[1],pe=parseInt(se,10);return pe>=200&&pe<300&&hu(ie.content)}).reduce(function(te,q){var se=De(q,2),ie=se[1];return ze()(te).call(te,Je()(ie.content))},[]);B.length>0&&(r.headers.accept=B.join(", "))}if(a)if(m){if(y.indexOf(m)>-1)if(m==="application/x-www-form-urlencoded"||m==="multipart/form-data")if(H(a)==="object"){var $=(v.content[m]||{}).encoding||{};r.form={},Je()(a).forEach(function(te){r.form[te]={value:a[te],encoding:$[te]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function L(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,o=e.operation,c=o===void 0?{}:o,p=e.spec,m=G({},r),v=a.authorized,y=v===void 0?{}:v,b=c.security||p.security||[],I=y&&!!Je()(y).length,R=Vo()(p,["components","securitySchemes"])||{};return m.headers=m.headers||{},m.query=m.query||{},!Je()(a).length||!I||!b||Array.isArray(c.security)&&!c.security.length?r:(b.forEach(function(B){Je()(B).forEach(function($){var te=y[$],q=R[$];if(!!te){var se=te.value||te,ie=q.type;if(te){if(ie==="apiKey")q.in==="query"&&(m.query[q.name]=se),q.in==="header"&&(m.headers[q.name]=se),q.in==="cookie"&&(m.cookies[q.name]=se);else if(ie==="http"){if(/^basic$/i.test(q.scheme)){var pe,ve=se.username||"",ge=se.password||"",Ce=S(ze()(pe="".concat(ve,":")).call(pe,ge));m.headers.Authorization="Basic ".concat(Ce)}/^bearer$/i.test(q.scheme)&&(m.headers.Authorization="Bearer ".concat(se))}else if(ie==="oauth2"||ie==="openIdConnect"){var we,xe=te.token||{},Ae=q["x-tokenName"]||"access_token",Fe=xe[Ae],Le=xe.token_type;(!Le||Le.toLowerCase()==="bearer")&&(Le="Bearer"),m.headers.Authorization=ze()(we="".concat(Le," ")).call(we,Fe)}}}})}),m)}function V(e,r){var n=e.spec,a=e.operation,o=e.securities,c=e.requestContentType,p=e.responseContentType,m=e.attachContentTypeForEmptyPayload;if(r=le({request:r,securities:o,operation:a,spec:n}),r.body||r.form||m){var v,y;if(c)r.headers["Content-Type"]=c;else if(Array.isArray(a.consumes)){var b=De(a.consumes,1);r.headers["Content-Type"]=b[0]}else if(Array.isArray(n.consumes)){var I=De(n.consumes,1);r.headers["Content-Type"]=I[0]}else a.parameters&&tr()(v=a.parameters).call(v,function(q){return q.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&tr()(y=a.parameters).call(y,function(q){return q.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(c){var R,B,$=a.parameters&&tr()(R=a.parameters).call(R,function(q){return q.in==="body"}).length>0,te=a.parameters&&tr()(B=a.parameters).call(B,function(q){return q.in==="formData"}).length>0;($||te)&&(r.headers["Content-Type"]=c)}return!p&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function le(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,o=e.operation,c=o===void 0?{}:o,p=e.spec,m=G({},r),v=a.authorized,y=v===void 0?{}:v,b=a.specSecurity,I=b===void 0?[]:b,R=c.security||I,B=y&&!!Je()(y).length,$=p.securityDefinitions;return m.headers=m.headers||{},m.query=m.query||{},!Je()(a).length||!B||!R||Array.isArray(c.security)&&!c.security.length?r:(R.forEach(function(te){Je()(te).forEach(function(q){var se=y[q];if(!!se){var ie=se.token,pe=se.value||se,ve=$[q],ge=ve.type,Ce=ve["x-tokenName"]||"access_token",we=ie&&ie[Ce],xe=ie&&ie.token_type;if(se){if(ge==="apiKey"){var Ae=ve.in==="query"?"query":"headers";m[Ae]=m[Ae]||{},m[Ae][ve.name]=pe}else if(ge==="basic")if(pe.header)m.headers.authorization=pe.header;else{var Fe,Le=pe.username||"",We=pe.password||"";pe.base64=S(ze()(Fe="".concat(Le,":")).call(Fe,We)),m.headers.authorization="Basic ".concat(pe.base64)}else if(ge==="oauth2"&&we){var Ke;xe=!xe||xe.toLowerCase()==="bearer"?"Bearer":xe,m.headers.authorization=ze()(Ke="".concat(xe," ")).call(Ke,we)}}}})}),m)}var de=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Se=function(r){return Array.isArray(r)?r:[]},me=Zl("OperationNotFoundError",function(r,n,a){this.originalError=a,C()(this,n||{})}),Ie=function(r,n){return tr()(n).call(n,function(a){return a.name===r})},Me=function(r){var n={};r.forEach(function(o){n[o.in]||(n[o.in]={}),n[o.in][o.name]=o});var a=[];return Je()(n).forEach(function(o){Je()(n[o]).forEach(function(c){a.push(n[o][c])})}),a},$e={buildRequest:_e};function Qe(e){var r=e.http,n=e.fetch,a=e.spec,o=e.operationId,c=e.pathName,p=e.method,m=e.parameters,v=e.securities,y=pu(e,de),b=r||n||Cs;c&&p&&!o&&(o=Kf(c,p));var I=$e.buildRequest(G({spec:a,operationId:o,parameters:m,securities:v,http:b},y));return I.body&&(hu(I.body)||Array.isArray(I.body))&&(I.body=it()(I.body)),b(I)}function _e(e){var r,n,a=e.spec,o=e.operationId,c=e.responseContentType,p=e.scheme,m=e.requestInterceptor,v=e.responseInterceptor,y=e.contextUrl,b=e.userFetch,I=e.server,R=e.serverVariables,B=e.http,$=e.signal,te=e.parameters,q=e.parameterBuilders,se=Gf(a);q||(se?q=w:q=Od);var ie=B&&B.withCredentials?"include":"same-origin",pe={url:"",credentials:ie,headers:{},cookies:{}};$&&(pe.signal=$),m&&(pe.requestInterceptor=m),v&&(pe.responseInterceptor=v),b&&(pe.userFetch=b);var ve=Yf(a,o);if(!ve)throw new me("Operation ".concat(o," not found"));var ge=ve.operation,Ce=ge===void 0?{}:ge,we=ve.method,xe=ve.pathName;if(pe.url+=et({spec:a,scheme:p,contextUrl:y,server:I,serverVariables:R,pathName:xe,method:we}),!o)return delete pe.cookies,pe;pe.url+=xe,pe.method="".concat(we).toUpperCase(),te=te||{};var Ae=a.paths[xe]||{};c&&(pe.headers.accept=c);var Fe=Me(ze()(r=ze()(n=[]).call(n,Se(Ce.parameters))).call(r,Se(Ae.parameters)));Fe.forEach(function(Ke){var At=q[Ke.in],qe;if(Ke.in==="body"&&Ke.schema&&Ke.schema.properties&&(qe=te),qe=Ke&&Ke.name&&te[Ke.name],typeof qe=="undefined"){var _t;qe=Ke&&Ke.name&&te[ze()(_t="".concat(Ke.in,".")).call(_t,Ke.name)]}else if(Ie(Ke.name,Fe).length>1){var sr;console.warn(ze()(sr="Parameter '".concat(Ke.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(sr,Ke.name,"' and the passed-in parameter values did not define an 'in' value."))}if(qe!==null){if(typeof Ke.default!="undefined"&&typeof qe=="undefined"&&(qe=Ke.default),typeof qe=="undefined"&&Ke.required&&!Ke.allowEmptyValue)throw new Error("Required parameter ".concat(Ke.name," is not provided"));if(se&&Ke.schema&&Ke.schema.type==="object"&&typeof qe=="string")try{qe=JSON.parse(qe)}catch(Ut){throw new Error("Could not parse object parameter value string as JSON")}At&&At({req:pe,parameter:Ke,value:qe,operation:Ce,spec:a})}});var Le=G(G({},e),{},{operation:Ce});if(se?pe=T(Le,pe):pe=V(Le,pe),pe.cookies&&Je()(pe.cookies).length){var We=Je()(pe.cookies).reduce(function(Ke,At){var qe=pe.cookies[At],_t=Ke?"&":"",sr=qf.serialize(At,qe);return Ke+_t+sr},"");pe.headers.Cookie=We}return pe.cookies&&delete pe.cookies,wo(pe),pe}var Xe=function(r){return r?r.replace(/\W/g,""):null};function et(e){var r=Gf(e.spec);return r?yt(e):fr(e)}function yt(e){var r=e.spec,n=e.pathName,a=e.method,o=e.server,c=e.contextUrl,p=e.serverVariables,m=p===void 0?{}:p,v=Vo()(r,["paths",n,(a||"").toLowerCase(),"servers"])||Vo()(r,["paths",n,"servers"])||Vo()(r,["servers"]),y="",b=null;if(o&&v&&v.length){var I=ot()(v).call(v,function($){return $.url});I.indexOf(o)>-1&&(y=o,b=v[I.indexOf(o)])}if(!y&&v&&v.length){y=v[0].url;var R=De(v,1);b=R[0]}if(y.indexOf("{")>-1){var B=Bt(y);B.forEach(function($){if(b.variables&&b.variables[$]){var te=b.variables[$],q=m[$]||te.default,se=new RegExp("{".concat($,"}"),"g");y=y.replace(se,q)}})}return ht(y,c)}function ht(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e&&r?J.parse(J.resolve(r,e)):J.parse(e),a=J.parse(r),o=Xe(n.protocol)||Xe(a.protocol)||"",c=n.host||a.host,p=n.pathname||"",m;if(o&&c){var v;m=ze()(v="".concat(o,"://")).call(v,c+p)}else m=p;return m[m.length-1]==="/"?Kn()(m).call(m,0,-1):m}function Bt(e){for(var r=[],n=/{([^}]+)}/g,a;a=n.exec(e);)r.push(a[1]);return r}function fr(e){var r=e.spec,n=e.scheme,a=e.contextUrl,o=a===void 0?"":a,c=J.parse(o),p=Array.isArray(r.schemes)?r.schemes[0]:null,m=n||p||Xe(c.protocol)||"http",v=r.host||c.host||"",y=r.basePath||"",b;if(m&&v){var I;b=ze()(I="".concat(m,"://")).call(I,v+y)}else b=y;return b[b.length-1]==="/"?Kn()(b).call(b,0,-1):b}Wt.http=Cs,Wt.makeHttp=Ii.bind(null,Wt.http),Wt.resolve=Xf,Wt.resolveSubtree=cu,Wt.execute=Qe,Wt.serializeRes=Ml,Wt.serializeHeaders=xf,Wt.clearCache=Ad,Wt.makeApisTagOperation=Zf,Wt.buildRequest=_e,Wt.helpers={opId:Ka},Wt.getBaseUrl=et;function Wt(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string"?n.url=e:n=e,!(this instanceof Wt))return new Wt(n);C()(this,n);var a=this.resolve().then(function(){return r.disableInterfaces||C()(r,Wt.makeApisTagOperation(r)),r});return a.client=this,a}Wt.prototype={http:Cs,execute:function(r){return this.applyDefaults(),Wt.execute(G({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Wt.resolve(G({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},n)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Wt.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&j()(n).call(n,"http")){var a=J.parse(n);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var wr=Wt.helpers;const xn=Wt;var M=s(2784),Dt=s(81804),St=s(27020),Ir=s(77532),vr=s(96087),Cr=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const br=Object.values(vr.FileUploadFormats),hn=["application/octet-stream","application/pdf","application/gzip","application/zip"],ha=["image/","audio/","video/"];function Li(e){if(ha.some(r=>e.startsWith(r)))return e}function Rr(e){return hn.includes(e)?!0:ha.some(r=>e.startsWith(r))}function ci(e){const r=e.type==="array"?e.items:e;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const n=r.contentMediaType||"",a=r.format||r.contentEncoding||(Rr(n)?"binary":"");return r.type===vr.DefinitionTypes.STRING&&br.includes(a)}function Lr(e,r){if(!e||!e.type||e.type==="any")return Rr(r);const n=e.format||e.contentEncoding||"";return e.type===vr.DefinitionTypes.STRING&&br.includes(n)}function $s(e){return new Promise((r,n)=>{const a=new FileReader;a.onload=()=>{const c=a.result.replace(/data:.*\/.*;base64,/g,"");r(c)},a.onerror=()=>n(a.error),a.readAsDataURL(e)})}function di({format:e,contentEncoding:r,contentMediaType:n}){return[e,r,n].includes(vr.FileUploadFormats.BASE64)}function va(e,r){return Cr(this,null,function*(){const n=Object.values(e);let a=n.length===1?n[0]:n;return r.type===vr.DefinitionTypes.STRING&&di(r)?a=yield $s(n[0]):r.type===vr.DefinitionTypes.ARRAY&&r.items&&(di(r.items)?a=yield Promise.all(n.map(c=>Cr(this,null,function*(){return yield $s(c)}))):a=n),a})}var Yi=s(93892),It=s(80127),Vt=s(41195),nn=s(43284),Tg=s(16610);function Pg({response:e}){return M.createElement(M.Fragment,null,M.createElement(nn.EE,null," Body: "),Ig(e))}function Ig(e){return e.body?M.createElement(Dt.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?M.createElement(Tg.s,{fileInfo:e.fileInfo}):e.data!==null?e.data?M.createElement(Dt.SourceCode,{lang:(0,St.M)(e.headers["Content-Type"]||"text/plain"),source:e.data,withCopyButton:!0}):M.createElement(nn.w3,null,M.createElement("i",null,"(no content)")):null}var ec=s(79978);function kg({headers:e}){const r=(0,M.useContext)(ec.jI),[n,a]=(0,M.useState)(!0),{maxResponseHeadersToShowInTryIt:o}=r,c=Object.keys(e),p=!!o&&c.length>o,m=p&&n?[...c].splice(0,o):[...c],v=()=>{a(!n)};return M.createElement(M.Fragment,null,M.createElement(nn.EE,null," Headers: "),M.createElement(nn.w3,null,m.map(y=>M.createElement("div",{key:y},M.createElement(Ep,null,y,":"),M.createElement("code",null,e[y]))),p&&M.createElement(Op,{onClick:v},n?"Show more...":"Hide headers")))}const Ep=Vt.ZP.strong`
|
|
90
|
+
text-transform: capitalize;
|
|
91
|
+
display: inline-block;
|
|
92
|
+
padding-right: 5px;
|
|
93
|
+
`,Op=Vt.ZP.div`
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
margin-top: 5px;
|
|
96
|
+
font-size: 14px;
|
|
97
|
+
`;Ep.displayName="HeaderName",Op.displayName="StyledShowMoreLabel";const Fg=Vt.ZP.div`
|
|
98
|
+
margin-bottom: 10px;
|
|
99
|
+
`,Fd=Vt.ZP.div`
|
|
100
|
+
display: inline-block;
|
|
101
|
+
margin-right: 20px;
|
|
102
|
+
padding: 2px 0;
|
|
103
|
+
text-align: center;
|
|
104
|
+
color: var(--text-color-inverse);
|
|
105
|
+
`,Rg=(0,Vt.ZP)(Fd)`
|
|
106
|
+
color: ${({code:e})=>e>=200&&e<300?"var(--response-success-text-color)":e>=300&&e<400?"var(--response-redirect-text-color)":e>400?"var(--response-error-text-color)":"var(--response-info-text-color)"};
|
|
107
|
+
`,Tp=Vt.ZP.header`
|
|
108
|
+
font-weight: bold;
|
|
109
|
+
margin-bottom: 10px;
|
|
110
|
+
`,Lg=Vt.ZP.code`
|
|
111
|
+
border-left: 3px solid #ff4040;
|
|
112
|
+
padding-left: 5px;
|
|
113
|
+
`,Mg=({error:e,response:r,time:n})=>{const a=r||e&&e.response,o=a&&a.data&&a.data.length||0;let c;return o>1e6?c=(o/1e6).toFixed(2)+" MB":o>1e3?c=(o/1e3).toFixed(2)+" KB":c=o+" B",e&&!e.response||!a?M.createElement(M.Fragment,null,M.createElement(Tp,null," Could not get any response "),M.createElement(Lg,null,e&&e.message||"Unknown error"),M.createElement("br",null),M.createElement(Tp,null," Why this might have happened:"),M.createElement("div",null," - CORS is misconfigured on the server"),M.createElement("div",null," - The server couldn't send a response"),M.createElement("div",null," - No internet access"),M.createElement("div",null," - Documentation issue - contact API owner"),M.createElement("div",null," - Misconfigured security definition")):a?M.createElement(M.Fragment,null,M.createElement(Fg,null,M.createElement(Rg,{code:a.status},M.createElement("span",null," Status: "),a.status," ",a.statusText),M.createElement(Fd,null,M.createElement("span",null," Time: "),n,"ms"),M.createElement(Fd,null,M.createElement("span",null," Size: "),c)),M.createElement("div",null,M.createElement(kg,{headers:a.headers}),M.createElement(Pg,{response:a}))):M.createElement(M.Fragment,null,"Something went wrong")},Ng=Vt.ZP.div`
|
|
114
|
+
display: flex;
|
|
115
|
+
font-size: 12px;
|
|
116
|
+
button {
|
|
117
|
+
margin: 0;
|
|
118
|
+
}
|
|
119
|
+
`,Pp=Vt.ZP.button`
|
|
120
|
+
outline: none;
|
|
121
|
+
border: none;
|
|
122
|
+
background-color: var(--panel-try-it-tabs-background-color);
|
|
123
|
+
text-align: center;
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
color: var(--panel-try-it-tabs-text-color);
|
|
126
|
+
min-width: 80px;
|
|
127
|
+
min-height: 30px;
|
|
128
|
+
border-radius: var(--border-radius);
|
|
129
|
+
font-size: var(--panel-try-it-tabs-font-size);
|
|
130
|
+
font-family: var(--panel-try-it-tabs-font-family);
|
|
131
|
+
font-weight: var(--panel-try-it-tabs-font-weight);
|
|
132
|
+
padding: 0 10px;
|
|
133
|
+
border-bottom: 4px solid var(--panel-try-it-tabs-border-color);
|
|
134
|
+
|
|
135
|
+
&:first-child {
|
|
136
|
+
border-radius: var(--border-radius) 0 0 var(--border-radius);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:last-child {
|
|
140
|
+
border-radius: 0 var(--border-radius) var(--border-radius) 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:hover:not(:disabled) {
|
|
144
|
+
border-color: var(--panel-try-it-tabs-hover-border-color);
|
|
145
|
+
background-color: var(--panel-try-it-tabs-hover-background-color);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
${({active:e})=>e&&Vt.iv`
|
|
149
|
+
border-color: var(--panel-try-it-tabs-active-border-color);
|
|
150
|
+
background-color: var(--panel-try-it-tabs-active-background-color);
|
|
151
|
+
`||""}
|
|
152
|
+
|
|
153
|
+
${({disabled:e})=>e&&Vt.iv`
|
|
154
|
+
cursor: default;
|
|
155
|
+
border-color: var(--panel-try-it-tabs-disables-border-color)
|
|
156
|
+
background-color: var(--panel-try-it-tabs-disabled-background-color);
|
|
157
|
+
color: var(--panel-try-it-tabs-disabled-text-color);
|
|
158
|
+
`||""}
|
|
159
|
+
`;function Dg({onChange:e,active:r,hasResponse:n}){return M.createElement(Ng,null,M.createElement(Pp,{onClick:()=>e(0),active:r===0},n?"Edit Request":"Request"),M.createElement(Pp,{onClick:()=>n&&e(1),active:r===1,disabled:!n}," ","Response"," "))}var Ip=s(46521),kp=s(50397);function Bg(e,r,n){const a=r.path||{},o=r.query||{},c=Object.keys(o);let p=(0,It.v5)(e,a);const m=v=>n.find(y=>y.name===v&&y.in==="query");return c.length&&(p+="?"+c.map(v=>{if(!o[v])return"";const y=m(v);return y?(0,St.d$)(y,o[v]):`${v}=${encodeURIComponent(o[v])}`}).filter(Boolean).join("&")),p}const jg=({loading:e,operation:r,hasResponse:n,execute:a,params:o={}})=>M.createElement(Ir.k1,null,M.createElement(Ip.__,null,M.createElement(kp.FH,{type:r.httpVerb},r.httpVerb),M.createElement(Ip.y$,{wrap:"true"},Bg(r.path,o,r.parameters))),M.createElement(Vg,{"data-cy":"send-button",color:"primary",blinking:e,onClick:()=>!e&&a()},e?"Sending...":n?"Resend":"Send")),Vg=(0,Vt.ZP)(Dt.Button)`
|
|
160
|
+
width: var(--panel-try-it-action-button-width);
|
|
161
|
+
`,Ug=(0,M.memo)(jg);function Rd(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Fp(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ld(e,r,n){return r&&Fp(e.prototype,r),n&&Fp(e,n),e}function Wg(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Mr(){return Mr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Mr.apply(this,arguments)}function Rp(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function Rt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Rp(Object(n),!0).forEach(function(a){Wg(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rp(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Hg(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Md(e,r)}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tc(e)}function Md(e,r){return Md=Object.setPrototypeOf||function(a,o){return a.__proto__=o,a},Md(e,r)}function zg(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Gg(e,r){if(e==null)return{};var n={},a=Object.keys(e),o,c;for(c=0;c<a.length;c++)o=a[c],!(r.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Nr(e,r){if(e==null)return{};var n=Gg(e,r),a,o;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)a=c[o],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}function $g(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kg(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:$g(e)}function Yg(e){var r=zg();return function(){var a=tc(e),o;if(r){var c=tc(this).constructor;o=Reflect.construct(a,arguments,c)}else o=a.apply(this,arguments);return Kg(this,o)}}function kr(e,r){return Xg(e)||Zg(e,r)||Nd(e,r)||qg()}function an(e){return Jg(e)||Qg(e)||Nd(e)||_g()}function Jg(e){if(Array.isArray(e))return Dd(e)}function Xg(e){if(Array.isArray(e))return e}function Qg(e){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function Zg(e,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],a=!0,o=!1,c=void 0;try{for(var p=e[Symbol.iterator](),m;!(a=(m=p.next()).done)&&(n.push(m.value),!(r&&n.length===r));a=!0);}catch(v){o=!0,c=v}finally{try{!a&&p.return!=null&&p.return()}finally{if(o)throw c}}return n}}function Nd(e,r){if(!!e){if(typeof e=="string")return Dd(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dd(e,r)}}function Dd(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function _g(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
162
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
163
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function em(e,r){var n;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Nd(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(v){throw v},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
164
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,p=!1,m;return{s:function(){n=e[Symbol.iterator]()},n:function(){var v=n.next();return c=v.done,v},e:function(v){p=!0,m=v},f:function(){try{!c&&n.return!=null&&n.return()}finally{if(p)throw m}}}}function tm(e,r){return r={exports:{}},e(r,r.exports),r.exports}var Ji=tm(function(e){function r(b,I){for(var R=0,B=0;B<b.length;B++)R=(R<<5)-R+b.charCodeAt(B),R|=0;return I[Math.abs(R)%I.length]}function n(b,I){var R=I.namespace;if(I.useColors){var B=I.color,$="\x1B[3"+(B<8?B:"8;5;"+B),te=" ".concat($,";1m").concat(R," \x1B[0m");b[0]=te+b[0].split(`
|
|
165
|
+
`).join(`
|
|
166
|
+
`+te)}else b[0]=R+" "+b[0]}function a(b,I){if(b[0]=(I.useColors?"%c":"")+I.namespace,!!I.useColors){var R="color: "+I.color,B=0,$=0;b[0].replace(/%[a-zA-Z%]/g,function(te){te!=="%%"&&(B++,te==="%c"&&($=B))}),b.splice($,0,R)}}var o=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function c(){var b;try{b=localStorage.getItem("debug")}catch(I){}return!b&&typeof process!="undefined"&&"env"in process&&(b={}.DEBUG),{namespaces:b||"",colors:o,useColors:!0,formatArgs:a}}function p(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:n}}function m(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,I=arguments.length>1?arguments[1]:void 0;return function(){for(var R=arguments.length,B=new Array(R),$=0;$<R;$++)B[$]=arguments[$];b&&B.unshift(b);var te=I.namespaces.split(",").map(function(pe){return pe[pe.length-1]==="*"?new RegExp("^"+pe.slice(0,pe.length-1)+".*$"):new RegExp("^"+pe+"$")}),q=te.some(function(pe){return pe.test(b)}),se={color:r(b,I.colors),namespace:b,useColors:I.useColors};if(!1)var ie}}function v(b){return m(b,p())}function y(b){return m(b,c())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?e.exports=y:e.exports=v}),Uo=Ji("informed:ObjMap "),rc=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},nc=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,o=String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(c,p){return c!=null?c[p]:c},r);return o===void 0||o===r?a:o},Lp=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},rm=function(r){return r.replace(Lp(r),"").replace(/\./,"")},nm=function(r,n){var a=Lp(n),o=rm(n),c=a?nc(r,a):r;return!!(c&&Object.hasOwnProperty.call(c,o.replace(/\[(.*)\]/,"$1")))},Mp=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(o,c,p,m){return p===m.length-1?(o[c]=a,o[c]):o[c]===void 0?(Number.isInteger(+m[p+1])?o[c]=[]:o[c]={},o[c]):(Number.isInteger(+m[p+1])&&!Array.isArray(o[c])&&(o[c]=[]),o[c])},r)},Np=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(o,c,p,m){return o===void 0?o:(p===m.length-1&&(delete o[c],a=!0),o[c])},r),a},im=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(o,c,p,m){return o===void 0?o:(p===m.length-1&&Array.isArray(o)&&(a=o.splice(c,1)),o[c])},r),a},am=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(r);return n.map(function(a){return r[a]})},Bd=function(r){var n=rc(r);return Number.isInteger(+n[n.length-1])},wt=function(){function e(){Rd(this,e)}return Ld(e,null,[{key:"empty",value:function(n){return am(n).length===0}},{key:"get",value:function(n,a){var o=nc(n,a);return o}},{key:"has",value:function(n,a){return nm(n,a)}},{key:"set",value:function(n,a,o){if(o!==void 0)Uo("SETTING",a,o),Mp(n,a,o);else if(Bd(a)&&e.get(n,a)!==void 0){Uo("Special case SETTING",a,"to undefined"),Mp(n,a,void 0);var c=rc(a);c=c.slice(0,c.length-1),ic(n,c)}else!Bd(a)&&e.get(n,a)!==void 0&&(Uo("Special case REMOVING",a,"from object completley"),e.delete(n,a))}},{key:"delete",value:function(n,a){Uo("DELETE",a),Bd(a)?(Uo("ARRAY",a),this.pullOut(n,a)):Np(n,a);var o=rc(a);o=o.slice(0,o.length-1),ic(n,o)}},{key:"pullOut",value:function(n,a){var o=rc(a),c=o[o.length-1];o=o.slice(0,o.length-1),Uo("Pulling out:",o,"index",c);var p=nc(n,o);Uo("Array",p),Array.isArray(p)&&im(p,c),ic(n,o)}}]),e}();function ic(e,r){if(r.length!==0){var n=nc(e,r);(Array.isArray(n)?n.every(function(a){return a==null}):JSON.stringify(n)==="{}")&&Np(e,r),ic(e,r.slice(0,r.length-1))}}var Qn=M.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),vu=M.createContext({}),gu=M.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Dp=M.createContext(),Bp=M.createContext(),jp=M.createContext(),jd=M.createContext(),Vp=M.createContext(),Up=M.createContext(),Wp=M.createContext(),Hp=M.createContext();function Mi(){var e=(0,M.useContext)(gu);return e}function ga(e){var r=(0,M.useRef)(),n=(0,M.useRef)(!0),a=(0,M.useState)(e),o=kr(a,2),c=o[0],p=o[1];r.current=c;var m=function(b){r.current=b,n.current&&p(b)},v=function(){return r.current};return(0,M.useEffect)(function(){return function(){n.current=!1}},[]),[c,m,v]}var zp=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},Gp=function(r){var n={};if(r.inner){if(r.inner.length===0){wt.set(n,r.path,r.message);return}var a=em(r.inner),o;try{for(a.s();!(o=a.n()).done;){var c=o.value;wt.get(n,c.path)||wt.set(n,c.path,c.message)}}catch(p){a.e(p)}finally{a.f()}}return n},$p=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(o){var a=Gp(o);return a}},Kp=function(r){if(r.inner){if(r.inner.length===0)return;var n=r.inner[0];return n.message}},Yp=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(a){return Kp(a)}},Jp=function(r,n){r(n);var a={};return r.errors&&r.errors.forEach(function(o){var c=o.message,p=o.dataPath,m=o.keyword,v=o.params,y=p;m==="required"&&(y="".concat(y,".").concat(v.missingProperty)),y=y.replace(".",""),wt.set(a,y,c)}),a},Wo=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=Math.random()*16|0,a=r=="x"?n:n&3|8;return a.toString(16)})},om=function(r,n){var a;return function(){for(var c=arguments.length,p=new Array(c),m=0;m<c;m++)p[m]=arguments[m];var v=function(){clearTimeout(a),r.apply(void 0,p)};clearTimeout(a),a=setTimeout(v,n)}},Vd=function(r,n,a){var o=n["ui:control"],c=n["informed:props"],p=n["input:props"],m=n["ui:before"],v=n["ui:after"],y=n.oneOf,b=n.items,I=n.enum,R=n.title,B=n.minimum,$=n.maximum,te=n.minLength,q=n.maxLength,se=n.pattern,ie=n.type,pe=n.properties,ve=Wo();p&&p.id&&(ve=p.id);var ge={componentType:o,field:a?"".concat(a,".").concat(r):r,type:ie,uiBefore:m,uiAfter:v,properties:ie==="object"?pe:void 0,items:ie==="array"?b:void 0,props:Rt(Rt({label:R,id:ve,min:B,max:$,minLength:te,maxLength:q,pattern:se},c),p)};if(y){var Ce=n.oneOf.map(function(Ae){var Fe=Ae["input:props"],Le=Fe===void 0?{}:Fe;return Rt({value:Ae.const,label:Ae.title},Le)});ge.props.options=Ce}if(I){var we=n.enum.map(function(Ae){return{value:Ae,label:Ae}});ge.props.options=we}if(b&&b.oneOf){var xe=b.oneOf.map(function(Ae){var Fe=Ae["input:props"],Le=Fe===void 0?{}:Fe;return Rt({value:Ae.const,label:Ae.title},Le)});ge.props.options=xe}return ge},Xp=function(r,n,a){if(!r||n)return[];var o=r.properties,c=o===void 0?{}:o,p=r.allOf,m=r.propertyOrder,v=m===void 0?[]:m;if(Object.keys(c).length>0){var y=Object.keys(c).sort(function(b,I){var R=v.indexOf(b),B=v.indexOf(I);return(R>-1?R:v.length+1)-(B>-1?B:v.length+1)}).map(function(b){var I=c[b],R=Vd(b,I,a);return R});return p&&y.push({componentType:"conditionals",allOf:p}),y}return[]},Qp=function(r){var n=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return n="properties.".concat(n),n},sm=function(r,n){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(n);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},lm=function(r,n){for(var a=0,o=-1,c=!0;c&&a<r.length;)r[a]==n[a]?o=a:c=!1,a=a+1;return o},ac=function(r,n){if(!r)return{val:r,offset:0};var a="".concat(r),o=sm(n,a),c=o.findIndex(function(q){return typeof q!="string"}),p=o.length-an(o).reverse().findIndex(function(q){return typeof q!="string"}),m=[],v=a.split(""),y=0,b=0,I=lm(o.slice(0,c),v.slice(0,c));I>-1&&(y=I+1,m=m.concat(o.slice(0,I+1)),b=I+1),I<0&&(m=m.concat(o.slice(0,c)),b=c);for(var R=b;R<o.length;R++){var B=o[R];if(y!=v.length){var $=v[y];if(typeof B=="function")m.push(B($)),y=y+1;else{var te=typeof B=="string"?B===$:B.test($);te&&typeof B=="string"?(m.push(B),y=y+1):!te&&typeof B=="string"?y!=v.length&&m.push(B):te&&typeof B!="string"?(m.push($),y=y+1):!te&&typeof B!="string"&&(y=y+1,R=R-1)}}else if(typeof B=="string"&&R>=p)m.push(B);else break}return{value:m.join(""),offset:a?m.length-a.length:0}},um=function(r,n){var a,o,c=new Intl.NumberFormat(r,n),p=new Intl.NumberFormat(r),m=(a=(o=p.formatToParts(.1).find(function(q){var se=q.type;return se==="decimal"}))===null||o===void 0?void 0:o.value)!==null&&a!==void 0?a:".";function v(q,se){return q instanceof RegExp&&se instanceof RegExp&&q.source===se.source&&q.global===se.global&&q.ignoreCase===se.ignoreCase&&q.multiline===se.multiline}function y(q,se){for(var ie=q.length;ie--;)if(se(q[ie]))return ie;return-1}function b(q,se,ie){var pe=an(q);return Array.isArray(ie)?pe.splice.apply(pe,[se,0].concat(an(ie))):pe.splice(se,0,ie),pe}function I(q){return"".concat(q).replace(/\D/g,"")}function R(q){return"".concat(q).split(m).map(function(se){return I(se)}).join(".")}function B(q){if(typeof q=="number")return q;var se=parseFloat(R(q));return Number.isNaN(se)?void 0:se}function $(q){var se=R(q),ie="".concat(se).split(".")[1],pe=c.formatToParts(Number(se));ie==="0"&&pe.push({type:"decimal",value:m},{type:"fraction",value:ie});var ve=pe.reduce(function(we,xe){var Ae=xe.type,Fe=xe.value;return["decimal","fraction"].includes(Ae)&&ie==null?we:["integer","fraction"].includes(Ae)?[].concat(an(we),an(Fe.split("").filter(function(Le,We){return Ae==="fraction"?We<ie.length:!0}).map(function(){return/\d/}))):Ae==="currency"?[].concat(an(we),an(Fe.split(""))):[].concat(an(we),[Fe])},[]),ge=y(ve,function(we){return v(we,/\d/)});ve.indexOf(m)===-1&&"".concat(q).indexOf(m)!==-1&&(ve=b(ve,ge+1,[m,"[]"]),ge+=2);var Ce=ve.slice(ge+1).join("");return ve=[].concat(an(ve.slice(0,ge+1)),[Ce]),ve}var te=function(se){if(se!=null)return B(se)};return{formatter:$,parser:te}},_x=Object.freeze({__proto__:null,getChildDisplayName:zp,yupToFormErrors:Gp,validateYupSchema:$p,yupToFormError:Kp,validateYupField:Yp,validateAjvSchema:Jp,uuidv4:Wo,debounce:om,computeFieldFromProperty:Vd,computeFieldsFromSchema:Xp,getSchemaPathFromJsonPath:Qp,informedFormat:ac,createIntlNumberFormatter:um}),Ni=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?M.useLayoutEffect:M.useEffect,fm=function(r){var n=r.value,a=r.inputRef,o=r.maintainCursor,c=o===void 0?!0:o,p=ga(0),m=kr(p,3),v=m[0],y=m[1],b=m[2],I=ga(0),R=kr(I,3),B=R[0],$=R[1],te=R[2];return Ni(function(){if(a.current!=null&&b()){var q=b()+te();te()!=0&&c?a.current.setSelectionRange(q+1,q+1):c&&a.current.setSelectionRange(q,q)}},[n]),{setCursorOffset:$,setCursor:y,cursor:v,getCursor:b,cursorOffset:B}},cm=function(r,n){var a=(0,M.useRef)(!0),o=a.current;(0,M.useEffect)(function(){if(o)a.current=!1;else return r()},n)},Ln=Ji("informed:useField "),Zp=function(r,n,a,o,c){if(r!=null){if(c)return c(r);if(n)return n(r);if(a&&!o){var p=ac(r,a);return p.value}return r}},dm=function(r,n,a,o){if(n&&a)return n(r);if(o){var c=ac(r,o);return c.value}return r},pm=function(r,n,a){var o=a.required;if(r||n)return function(c,p){if(n)return Yp(n,c);if(r)return r(c,p)};if(o)return function(c){return ym(c,o)}},hm=function(r){var n=r.fieldType,a=r.setValue,o=r.onChange,c=r.multiple,p=r.ref,m=function(y){return a(y)};return(n==="text"||n==="textArea"||n==="number")&&(m=function(y){return a(y.target.value,y)}),n==="select"&&(m=function(){var y=Array.from(p.current).filter(function(b){return b.selected}).map(function(b){return b.value});a(c?y:y[0]||"")}),n==="checkbox"&&(m=function(y){a(y.target.checked),o&&o(y)}),function(v){m(v)}},vm=function(r){var n=r.setTouched,a=r.onBlur;return function(o){n(!0),a&&a(o)}},gm=function(r){var n=r.fieldType,a=r.maskedValue,o=r.multiple,c=r.value;switch(n){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return c||(o?[]:"");case"checkbox":return!!c;default:return c}},mm=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},ym=function(r,n){if(n&&(r==null||r===""))return typeof n=="string"?n:"This field is required"};function mu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=e.field,a=e.validate,o=e.asyncValidate,c=e.validationSchema,p=e.mask,m=e.maskWithCursorOffset,v=e.format,y=e.parse,b=e.formatter,I=e.parser,R=e.initialValue,B=e.validateOnChange,$=e.validateOnBlur,te=e.validateOnMount,q=e.asyncValidateOnBlur,se=e.maskOnBlur,ie=e.allowEmptyString,pe=e.onValueChange,ve=e.notify,ge=e.keepState,Ce=e.maintainCursor,we=e.debug,xe=e.shadow,Ae=e.step,Fe=e.fieldType,Le=e.multiple,We=e.onChange,Ke=e.onBlur,At=e.formController,qe=e.relevant,_t=e.required,sr=e.keepStateIfRelevant,Ut=e.initialize,lr=e.formatterDependencies,Kt=lr===void 0?[]:lr,ur=Nr(e,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),xr=(0,M.useState)(Wo()),zt=kr(xr,1),ct=zt[0],Et=(0,M.useContext)(Qn),Jt=(0,M.useContext)(Hp),Gt=Jt||sr,Yt=Mi(),Xr=(0,M.useRef)(),Bn=(0,M.useRef)(!0),gi=(0,M.useRef)(),Dr=(0,M.useRef)(!1),sn=function(){return!Dr.current},Ko=function(){return Dr.current};At&&(Et=At.updater,Yt=At.getFormApi());var Tn=pm(a,c,{required:_t}),Yo=(0,M.useState)(function(){return Et.getInitialValue(n)}),fp=kr(Yo,1),ji=fp[0],Vi=Et.getSavedValue(n),xa,nl;(ge||Gt)&&Vi?(Ln("Setting field ".concat(Cp,"'s kept state"),Vi),xa=Vi.value,nl=Vi.touched,Yt.removeSavedState(Cp)):R!=null?xa=R:xa=ji;var Lu=ga(Zp(xa,p,b,I,Ut)),Xt=kr(Lu,3),wn=Xt[0],cp=Xt[1],kx=Xt[2],Fx=ga(te?Tn(wn):void 0),dp=kr(Fx,3),mg=dp[0],yg=dp[1],Rx=dp[2],Lx=ga(nl),pp=kr(Lx,3),bg=pp[0],Mx=pp[1],xg=pp[2],Nx=(0,M.useState)(function(){return dm(wn,v,y,b)}),Sg=kr(Nx,2),hp=Sg[0],vp=Sg[1],wg=(0,M.useRef)();wg.current=hp;var Ag=(0,M.useRef)(R),Jo=(0,M.useRef)(n),Cg=(0,M.useRef)();Ag.current=R,Jo.current=n;var Dx=(0,M.useRef)(null),Zi=M.useMemo(function(){return r||Dx},[]),gp=fm({value:wn,inputRef:Zi,maintainCursor:!!Ce}),mp=gp.getCursor,Bx=gp.setCursor,yp=gp.setCursorOffset,jx=function(){return!0},bp=function(cr){var ln=qe||jx,jn=Yt.getFullField(Jo.current)||Jo.current,Qt={path:jn,parentPath:jn.replace(/(.*)[.[].*/,"$1"),get:function(Vn,Du){return wt.get(Vn,Du)}};return Jt&&Jt.relevant?ln(cr,Qt)&&Jt.relevant(cr,Qt):ln(cr,Qt)},Vx=ga(bp(Yt.getValues())),xp=kr(Vx,3),Fc=xp[0],Ux=xp[1],Eg=xp[2],Wx=function(cr){return Jt&&Jt.relevant?Jt.relevant(cr):!0},Hx=function(){var cr=bp(Yt.getValues()),ln=Eg();return cr!=ln&&Ux(cr),cr};(0,M.useEffect)(function(){!Fc&&!ge&&Xr.current.reset()},[Fc]);var mi=function(){return xe?Yt.getDerrivedValue(n):kx()},Mu=function(cr){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},jn=ln.preventUpdate;Ae&&Yt.getStep()<Ae?(Ln("Setting ".concat(n,"'s error to undefined as we are not at that step")),yg(void 0),Et.setError(ct,void 0,!jn)):(Ln("Setting ".concat(n,"'s error to ").concat(cr)),yg(cr),Et.setError(ct,cr,!jn))},Sp=function(cr,ln){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qt=cr;Dr.current=!0,Ln("Setting ".concat(n," to ").concat(Qt)),Ut&&(Qt=Ut(Qt));var Xo=Yt.getOptions(),Vn=Qt;if(Qt===""&&!ie&&!jn.allowEmptyString&&!Xo.allowEmptyStrings&&(Qt=void 0),(e.type==="number"||Fe==="number")&&Qt!==void 0&&(Qt=+Qt),ln&&ln.target&&ln.target.selectionStart&&Bx(ln.target.selectionStart),p&&!se&&(Vn=p(Qt,mp()),Qt=p(Qt,mp())),m&&!se){var Du=m(Qt,mp());Vn=Du.value,Qt=Du.value,yp(Du.offset)}if(v&&y&&(Qt=y(Qt),Vn=v(Qt)),b){var Og=ac(Qt,b);yp(Og.offset),Vn=Og.value,Qt=Vn}I&&(Qt=Qt!=null?I(Qt):Qt),Tn&&B&&!jn.initial&&(Ln("Validating after change ".concat(n," ").concat(Qt)),Mu(Tn(Qt,Yt.getValues()))),cp(Qt),vp(Vn),pe&&pe(Qt),Et.setValue(ct,Qt,!jn.preventUpdate)};cm(function(){Xr.current.setValue(wg.current)},an(Kt));var wp=function(cr,ln){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qt=jn.preventUpdate;if(Ln("Field ".concat(n," has been touched")),Tn&&$&&!ln&&cr&&(Ln("Validating after blur ".concat(n," ").concat(mi())),Mu(Tn(mi(),Yt.getValues()))),o&&q&&!ln&&cr&&(Ln("Validating async after blur ".concat(n," ").concat(mi())),o(mi(),Yt.getValues())),p&&se){var Xo=p(mi());cp(Xo),vp(Xo),pe&&pe(Xo),Et.setValue(ct,Xo,!Qt)}if(m&&se){var Vn=m(mi());yp(Vn.offset),cp(Vn.value),vp(Vn.value),pe&&pe(Vn.value),Et.setValue(ct,Vn.value,!Qt)}Mx(cr),Et.setTouched(ct,cr,!Qt)},zx=function(){var cr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ln=cr.preventUpdate,jn=Zp(Ag.current||Et.getInitialValue(Jo.current),p,b,I,Ut);Sp(jn,null,{initial:!0,preventUpdate:ln}),Mu(te?Tn(jn):void 0,{preventUpdate:ln}),wp(void 0,!0,{preventUpdate:ln}),Dr.current=!1},Gx=function(cr){Tn&&(Ln("Field validating ".concat(n," ").concat(mi())),Mu(Tn(mi(),cr||Yt.getValues())))},$x=function(cr){o&&(Ln("Field async validating ".concat(n," ").concat(mi())),o(mi(),cr||Yt.getValues()))},Ap={setValue:Sp,setTouched:wp,setError:Mu,reset:zx,validate:Gx,asyncValidate:$x,getValue:mi,getTouched:xg,getError:Rx,getIsRelevant:Eg,getDirty:Ko,getPristine:sn,getFieldState:function(){return{value:mi(),touched:xg(),dirty:Ko(),pristine:sn()}},relevant:bp,multistepRelevant:Wx,checkRelevant:Hx};Xr.current=Ap;var Nu={value:wn,error:mg,touched:bg,maskedValue:hp,isRelevant:Fc,dirty:Dr.current,pristine:!Dr.current};xe&&(Nu={error:mg,touched:bg}),Ln("Render",Yt.getFullField(n),Nu),Ni(function(){var Qr=Yt.getFullField(Jo.current);return Ln("Register",ct,Jo.current),gi.current={field:Qr,fieldId:ct,fieldApi:Ap,fieldState:Nu,notify:ve,keepState:ge,inMultistep:Gt,shadow:xe},Et.register(ct,gi.current),function(){var cr=Yt.getFullField(Jo.current);Ln("Deregister",ct,cr),Et.deregister(ct)}},[]),(0,M.useEffect)(function(){var Qr=Yt.getFullField(n);return Bn.current?Bn.current=!1:(Ln("Update",n,Gt),gi.current.field=Qr,Et.update(ct,gi.current,Cg.current)),function(){Cg.current=Qr}},[n]),Ni(function(){we&&Zi&&(Zi.current.style.border="5px solid orange",setTimeout(function(){Zi.current.style.borderWidth="2px",Zi.current.style.borderStyle="inset",Zi.current.style.borderColor="initial",Zi.current.style.borderImage="initial"},500))});var Kx=[].concat(an(Object.values(Nu)),an(Object.values(e)),an(Object.values(ur))),Yx=function(cr){return(0,M.useMemo)(function(){return Fc?cr:null},an(Kx))},Cp=n,Jx=hm({fieldType:Fe,setValue:Sp,onChange:We,multiple:Le,ref:Zi}),Xx=vm({setTouched:wp,onBlur:Ke}),Qx=gm({fieldType:Fe,maskedValue:hp,multiple:Le,value:wn}),Zx=mm(Fe);return{fieldState:Nu,fieldApi:Ap,render:Yx,ref:Zi,userProps:Rt(Rt({},ur),{},{multiple:Le,onChange:We,onBlur:Ke,id:ur.id||ct}),informed:Rt({name:Cp,multiple:Le,onChange:Jx,onBlur:Xx,value:Qx,ref:Zi,type:Zx,id:ur.id||ct},ur)}}var ma=function(r){var n=M.forwardRef(function(a,o){var c=mu(a,o),p=c.fieldState,m=c.fieldApi,v=c.render,y=c.ref,b=c.userProps;return v(M.createElement(r,Mr({fieldApi:m,fieldState:p,field:a.field,forwardedRef:y,debug:a.debug,type:a.type},b)))});return n.displayName="asField(".concat(zp(r),")"),n},bm=Ji("informed:Text "),xm=function(r){var n=r.fieldApi,a=r.fieldState,o=Nr(r,["fieldApi","fieldState"]),c=a.maskedValue,p=n.setValue,m=n.setTouched,v=o.onChange,y=o.onBlur,b=o.field,I=o.initialValue,R=o.forwardedRef,B=o.debug,$=o.label,te=o.title,q=o.id,se=Nr(o,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return bm("Render",b),Ni(function(){B&&R&&(R.current.style.background="red",setTimeout(function(){R.current.style.background="white"},500))}),M.createElement(M.Fragment,null,$?M.createElement("label",{htmlFor:q}," ",$," "):null,M.createElement("input",Mr({},se,{id:q,name:b,ref:R,value:!c&&c!==0?"":c,onChange:function(pe){p(pe.target.value,pe),v&&v(pe)},onBlur:function(pe){m(!0),y&&y(pe)}})))},Sm=ma(xm),wm=function(r){var n=r.fieldApi,a=r.fieldState,o=Nr(r,["fieldApi","fieldState"]),c=a.maskedValue,p=n.setValue,m=n.setTouched,v=o.onChange,y=o.onBlur,b=o.field,I=o.initialValue,R=o.forwardedRef,B=o.debug,$=o.label,te=o.id,q=Nr(o,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return Ni(function(){B&&R&&(R.current.style.background="red",setTimeout(function(){R.current.style.background="white"},500))}),M.createElement(M.Fragment,null,$?M.createElement("label",{htmlFor:te}," ",$," "):null,M.createElement("textarea",Mr({},q,{id:te,name:b,ref:R,value:c||"",onChange:function(ie){p(ie.target.value,ie),v&&v(ie)},onBlur:function(ie){m(!0),y&&y(ie)}})))},Am=ma(wm),Cm=Ji("informed:Select "),Em=function(r){var n=r.fieldApi,a=r.fieldState,o=Nr(r,["fieldApi","fieldState"]),c=a.value,p=n.setTouched,m=o.onChange,v=o.onBlur,y=o.field,b=o.initialValue,I=o.options,R=o.children,B=o.forwardedRef,$=o.debug,te=o.multiple,q=o.label,se=o.id,ie=Nr(o,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),pe=(0,M.useRef)(),ve=function(Ce){var we=Array.from((B||pe).current).filter(function(xe){return xe.selected}).map(function(xe){return xe.value});n.setValue(te?we:we[0]||""),m&&Ce&&m(Ce)};return Ni(function(){$&&B&&(B.current.style.background="red",setTimeout(function(){B.current.style.background="white"},500))}),Cm("Render",y,c),M.createElement(M.Fragment,null,q?M.createElement("label",{htmlFor:se}," ",q," "):null,M.createElement("select",Mr({},ie,{id:se,multiple:te,name:y,ref:B||pe,value:c||(te?[]:""),onChange:ve,onBlur:function(Ce){p(!0),v&&v(Ce)}}),I?I.map(function(ge){return M.createElement("option",{key:ge.value,value:ge.value,disabled:ge.disabled},ge.label)}):R))},Om=ma(Em),Tm=function(r){var n=r.fieldApi,a=r.fieldState,o=Nr(r,["fieldApi","fieldState"]),c=a.value,p=n.setValue,m=n.setTouched,v=o.onChange,y=o.onBlur,b=o.field,I=o.initialValue,R=o.debug,B=o.forwardedRef,$=o.id,te=o.label,q=Nr(o,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return M.createElement(M.Fragment,null,te?M.createElement("label",{htmlFor:$}," ",te," "):null,M.createElement("input",Mr({},q,{id:$,name:b,ref:B,checked:!!c,onChange:function(ie){p(ie.target.checked),v&&v(ie)},onBlur:function(ie){m(!0),y&&y(ie)},type:"checkbox"})))},Pm=ma(Tm),Im=function(r){return M.forwardRef(function(n,a){return M.createElement(Dp.Consumer,null,function(o){var c=o.radioGroupApi,p=o.radioGroupState;return M.createElement(r,Mr({radioGroupApi:c,radioGroupState:p,ref:a},n))})})},km=function(r){var n=r.radioGroupApi,a=r.radioGroupState,o=Nr(r,["radioGroupApi","radioGroupState"]),c=a.value,p=n.setValue,m=n.setTouched,v=n.onChange,y=n.onBlur,b=o.value,I=o.onChange,R=o.onBlur,B=o.field,$=o.initialValue,te=o.forwardedRef,q=Nr(o,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return M.createElement("input",Mr({},q,{name:B,ref:te,value:b,checked:c===b,onChange:function(ie){!ie.target.checked||(p(b),I&&I(ie),v&&v(ie))},onBlur:function(ie){m(!0),R&&R(ie),y&&y(ie)},type:"radio"}))},Fm=Im(km),Rm=function(e){Hg(n,e);var r=Yg(n);function n(){return Rd(this,n),r.apply(this,arguments)}return Ld(n,[{key:"render",value:function(){var o=this.props,c=o.options,p=o.children;return M.createElement(Dp.Provider,{value:this.groupContext},c?c.map(function(m){return M.createElement("label",{key:m.value},m.label," ",M.createElement(Fm,{value:m.value}))}):p)}},{key:"groupContext",get:function(){return{radioGroupApi:Rt(Rt({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),n}(M.Component),Lm=ma(Rm);function Mm(){return(0,M.useContext)(jp)}var Nm=function(){var r=Mm(),n=r.add;return M.createElement("button",{onClick:function(){n()},type:"button"},"Add")};function Dm(){return(0,M.useContext)(jd)}var Bm=function(){var r=Dm(),n=r.remove;return M.createElement("button",{onClick:function(){n()},type:"button"},"Remove")},oc=Ji("informed:useArrayField "),jm=function(r){var n=r.field,a=r.initialValue,o=r.validate,c=r.arrayFieldApiRef,p=Nr(r,["field","initialValue","validate","arrayFieldApiRef"]),m=Mi(),v=(0,M.useState)(new Map),y=kr(v,1),b=y[0],I=(0,M.useContext)(Qn),R=m.getFullField(n),B=I.getInitialValue(n)||a||[],$=m.getSavedValue(R)&&m.getSavedValue(R).value,te=ga($||B),q=kr(te,3),se=q[0],ie=q[1],pe=q[2],ve=se?se.map(function(){return Wo()}):[],ge=ga(ve),Ce=kr(ge,3),we=Ce[0],xe=Ce[1],Ae=Ce[2],Fe=(0,M.useMemo)(function(){return function(zt,ct){var Et=Ae()==null?0:Ae().length;return o?o(zt,Et,ct):void 0}}),Le=mu(Rt({field:n,validate:o?Fe:void 0,shadow:!0},p)),We=Le.fieldApi;Ni(function(){var zt=function(Et){Et!==R&&(oc("".concat(R," changed")),RegExp("".concat(R,"\\[[0-9]+\\]")).test(Et)&&We.validate())};return m.emitter.on("value",zt),function(){m.emitter.removeListener("value",zt)}},[n]);var Ke=function(ct){oc("EXPECTING REMOVAL OF","".concat(n,"[").concat(ct,"] and ").concat(n,"[").concat(we.length-1,"]")),I.expectRemoval("".concat(n,"[").concat(ct,"]")),I.expectRemoval("".concat(n,"[").concat(we.length-1,"]"));var Et=we.slice(0,ct).concat(we.slice(ct+1,we.length));xe(Et);var Jt=pe(),Gt=Jt.slice(0,ct).concat(Jt.slice(ct+1,Jt.length));ie(Gt)},At=function(ct,Et){oc("Swapping","".concat(n,"[").concat(ct,"] and ").concat(n,"[").concat(Et,"]"));var Jt=an(we);we[ct]&&we[Et]?(Jt[ct]=we[Et],Jt[Et]=we[ct]):console.warn("Attempted to swap ".concat(ct," with ").concat(Et," but one of them does not exist :(")),xe(Jt)},qe=function(){we.push(Wo()),xe(an(we))},_t=function(ct){we.push(Wo()),xe(an(we));var Et=an(pe());Et[we.length-1]=ct,ie(Et)},sr=function(){var ct=I.getInitialValue(n)||a||[];ie(ct);var Et=ct?ct.map(function(){return Wo()}):[];xe(Et)},Ut=we.map(function(zt,ct){var Et={remove:function(){return Ke(ct)}},Jt={initialValue:se&&se[ct],key:zt,field:"".concat(n,"[").concat(ct,"]"),index:ct};return Rt(Rt({arrayFieldItemApi:Et,arrayFieldItemState:Jt},Et),Jt)}),lr={add:qe,swap:At,addWithInitialValue:_t,reset:sr};c&&(c.current=lr);var Kt={fields:Ut,field:n},ur=Rt(Rt({},I),{},{register:function(ct,Et){b.set(ct,Et);for(var Jt=arguments.length,Gt=new Array(Jt>2?Jt-2:0),Yt=2;Yt<Jt;Yt++)Gt[Yt-2]=arguments[Yt];I.register.apply(I,[ct,Et].concat(Gt))},deregister:function(ct){b.delete(ct);for(var Et=arguments.length,Jt=new Array(Et>1?Et-1:0),Gt=1;Gt<Et;Gt++)Jt[Gt-1]=arguments[Gt];I.deregister.apply(I,[ct].concat(Jt))},getInitialValue:function(ct){if(RegExp("".concat(R,"\\[[0-9]+\\]")).test(ct)){var Et=ct.replace(n,""),Jt=wt.get(pe(),Et);return oc("Resetting ".concat(Et," to ").concat(Jt)),Jt}return I.getInitialValue(ct)}}),xr=function(ct){return M.createElement(Qn.Provider,{value:ur},M.createElement(jp.Provider,{value:lr},M.createElement(Bp.Provider,{value:Kt},ct)))};return{render:xr,add:qe,swap:At,addWithInitialValue:_t,fields:Ut,arrayFieldState:Kt,arrayFieldApi:lr,field:n}},Vm=function(r,n){return Rt(Rt({},n),{},{getValue:function(o){return n.getValue("".concat(r,".").concat(o))},getTouched:function(o){return n.getTouched("".concat(r,".").concat(o))},getError:function(o){return n.getError("".concat(r,".").concat(o))},setValue:function(o,c){return n.setValue("".concat(r,".").concat(o),c)},setTouched:function(o,c){return n.setTouched("".concat(r,".").concat(o),c)},setError:function(o,c){return n.setError("".concat(r,".").concat(o),c)},getInitialValue:function(o){return n.getInitialValue("".concat(r,".").concat(o))},getSavedValue:function(o){return n.getSavedValue("".concat(r,".").concat(o))},getFullField:function(o){return"".concat(n.getFullField(r),".").concat(o)}})};function Um(e){var r=Mi(),n=(0,M.useMemo)(function(){return Vm(e,r)},[e]);return n}function sc(){var e=(0,M.useContext)(vu);return e}var _p=function(r){var n=r.when,a=r.children,o=sc(),c=n(o);return c?a:null},Ud=function(r){var n=r.relevant,a=r.field,o=Nr(r,["relevant","field"]),c=Mi();if(n){var p=c.getFullField(a),m={path:p,parentPath:p.replace(/(.*)[.[].*/,"$1"),get:function(b,I){return wt.get(b,I)}},v=function(b){var I=b.values;return n(I,m)};return M.createElement(_p,{when:v},M.createElement(qp,Mr({field:a},o)))}else return M.createElement(qp,Mr({field:a},o))},qp=function(r){var n=r.children,a=Nr(r,["children"]),o=jm(a),c=o.render,p=o.arrayFieldState,m=o.arrayFieldApi,v=o.field;return c(typeof n=="function"?n(Rt(Rt({field:v,arrayFieldApi:m,arrayFieldState:p},m),p)):n)},Wm=function(r){var n=r.arrayFieldItemState,a=r.arrayFieldItemApi,o=r.children,c=(0,M.useContext)(Qn),p=Mi(),m=(0,M.useState)(0),v=kr(m,2),y=v[0],b=v[1],I=(0,M.useState)(new Map),R=kr(I,1),B=R[0],$=n.field,te=Um($),q=function(){var we=p.getState(),xe=we.values,Ae=we.errors,Fe=we.touched,Le={values:wt.get(xe,$),errors:wt.get(Ae,$),touched:wt.get(Fe,$)};return Le};(0,M.useEffect)(function(){var Ce=function(xe){var Ae=xe.slice(0,xe.lastIndexOf("[")!=-1?xe.lastIndexOf("]")+1:xe.length);Ae===$&&b(Math.random())};return p.emitter.on("value",Ce),function(){p.emitter.removeListener("value",Ce)}},[$]);var se=function(){B.forEach(function(we){we.fieldApi.reset()})},ie=q(),pe=Rt(Rt({},c),{},{register:function(we,xe,Ae){B.set(we,xe),c.register(we,xe,Ae)},deregister:function(we){B.delete(we);for(var xe=arguments.length,Ae=new Array(xe>1?xe-1:0),Fe=1;Fe<xe;Fe++)Ae[Fe-1]=arguments[Fe];c.deregister.apply(c,[we].concat(Ae))}}),ve=Rt(Rt(Rt({},a),te),{},{reset:se}),ge=Rt(Rt({},n),ie);return typeof o=="function"?M.createElement(Qn.Provider,{value:pe},M.createElement(jd.Provider,{value:ve},M.createElement(Vp.Provider,{value:ge},o(Rt(Rt({arrayFieldItemApi:ve,arrayFieldItemState:ge},ve),ge))))):M.createElement(Qn.Provider,{value:pe},M.createElement(jd.Provider,{value:ve},M.createElement(Vp.Provider,{value:ge},o)))};Ud.Items=function(e){var r=e.children,n=(0,M.useContext)(Bp),a=n.fields;return a.map(function(o){var c=o.arrayFieldItemState,p=o.arrayFieldItemApi,m=c.key;return M.createElement(Wm,{key:m,arrayFieldItemApi:p,arrayFieldItemState:c},r)})};var lc=function(r){var n=r.components,a=(0,M.useContext)(Qn),o=a.fieldMap;return n?n.map(function(c,p){var m=c["ui:control"],v=o[m];return M.createElement(v,{key:"ui-comp-".concat(p)})}):null},Hm=Ji("informed:FormFields "),Wd=function e(r){var n=r.schema,a=r.prefix,o=r.onlyValidateSchema,c=(0,M.useContext)(Qn),p=c.fieldMap,m=(0,M.useMemo)(function(){var v=Xp(n,o,a),y=v.map(function(b,I){var R=b.field,B=b.props,$=b.type,te=b.properties,q=b.items,se=b.componentType,ie=b.uiBefore,pe=b.uiAfter,ve=b.allOf,ge=p[se];return Hm("Rendering Field",R,b),!ge&&$==="object"&&te?M.createElement(e,{schema:b,prefix:R,key:"ScheamField-".concat(I)}):!ge&&$==="array"&&q?M.createElement(eh,Mr({key:"ScheamField-".concat(I),field:R,items:q,uiBefore:ie,uiAfter:pe},B)):ge&&se==="array"&&q&&$==="array"?M.createElement(ge,Mr({key:"ScheamField-".concat(I),field:R,items:q,uiBefore:ie,uiAfter:pe},B)):se==="conditionals"?ve.map(function(Ce){var we=Ce.then,xe=Ce.if.properties,Ae=function(Le){var We=Le.values;return Object.keys(xe).every(function(Ke){var At=xe[Ke];return We[Ke]===At.const})};return M.createElement(_p,{key:"ScheamField-".concat(I),when:Ae},M.createElement(e,{schema:we}))}):ge?M.createElement(ge,Mr({key:"ScheamField-".concat(I),field:R},B)):null});return y},[n,a]);return m},eh=function(r){var n=r.field,a=r.items,o=r.uiBefore,c=r.uiAfter,p=Nr(r,["field","items","uiBefore","uiAfter"]);return M.createElement(Ud,Mr({field:n},p),M.createElement(lc,{components:o}),M.createElement(Ud.Items,null,function(m){var v=m.field;return M.createElement(M.Fragment,null,M.createElement(lc,{components:a["ui:before"]}),M.createElement(Wd,{schema:a,prefix:v}),M.createElement(lc,{components:a["ui:after"]}))}),M.createElement(lc,{components:c}))},zm={select:Om,input:Sm,textarea:Am,checkbox:Pm,radio:Lm,add:Nm,remove:Bm,array:eh},dr=Ji("informed:Controller "),Gm=function(r,n){var a=Object.keys(n).find(function(c){return r.includes(c)});if(!!a){var o=r.slice(0,a.length);return o===a}},pi=function(){},$m=function(){function e(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rd(this,e),this.options=n,this.subscriptions=new Map;var a=n.ajv,o=n.schema,c=n.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(o):null,this.fieldMap=c||zm,this.fieldsById=new Map,this.fieldsByName={get:function(m){var v;return r.fieldsById.forEach(function(y){y&&y.field===m&&(v=y)}),v}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:pi,setTouched:pi,setError:pi,reset:pi,validate:pi,getValue:pi,getTouched:pi,getError:pi,getFieldState:pi,checkRelevant:pi,getPristine:pi,getDirty:pi}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(m,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(m);b.shadow||wt.set(r.state.values,b.field,b.fieldApi.getValue()),b.fieldApi.relevant(r.state.values)||wt.delete(r.state.values,b.field),r.fieldsById.forEach(function(I){var R=I.fieldApi.checkRelevant();(!I.fieldApi.multistepRelevant(r.state.values)||!R&&!I.keepState)&&(wt.delete(r.state.values,I.field),wt.delete(r.state.touched,I.field),wt.delete(r.state.errors,I.field))}),y&&(r.emit("change"),r.emit("field",b.field),r.emit("value",b.field,v))},setTouched:function(m,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(m);!b.shadow&&b.fieldApi.getIsRelevant()&&wt.set(r.state.touched,b.field,b.fieldApi.getTouched()),b.shadow&&b.fieldApi.getError()!=null&&b.fieldApi.relevant(r.state.values)&&wt.set(r.state.touched,b.field,b.fieldApi.getTouched()),y&&(r.emit("change"),r.emit("field",b.field))},setError:function(m,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(m);!b.shadow&&b.fieldApi.getIsRelevant()&&wt.set(r.state.errors,b.field,b.fieldApi.getError());var I=wt.get(r.state.errors,b.field);(b.shadow&&b.fieldApi.getError()!=null&&b.fieldApi.relevant(r.state.values)||b.shadow&&b.fieldApi.getError()===void 0&&b.fieldApi.relevant(r.state.values)&&typeof I=="string")&&wt.set(r.state.errors,b.field,b.fieldApi.getError()),y&&(r.emit("change"),r.emit("field",b.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(p){delete r.state.error,r.notify(p)})}return Ld(e,[{key:"emit",value:function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];var p=this.subscriptions.get(n);p&&p.forEach(function(m){return m.apply(void 0,o)})}},{key:"on",value:function(n,a){this.subscriptions.get(n)||this.subscriptions.set(n,new Set);var o=this.subscriptions.get(n);o.add(a)}},{key:"removeListener",value:function(n,a){var o=this.subscriptions.get(n);o.delete(a)}},{key:"setOptions",value:function(n){this.options=n}},{key:"setValue",value:function(n,a,o){this.getField(n).fieldApi.setValue(a,null,Rt({allowEmptyString:this.options.allowEmptyStrings},o))}},{key:"setTouched",value:function(n,a){this.getField(n).fieldApi.setTouched(a)}},{key:"setError",value:function(n,a){this.getField(n).fieldApi.setError(a)}},{key:"setFormError",value:function(n){this.state.error=n,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(n,a){if(this.state.validating=this.state.validating-1,this.getError(n)||this.setError(n,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(dr("Submit",this.state),this.emit("submit")):(dr("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(n){this.state.step=n,this.emit("change")}},{key:"setCurrent",value:function(n){this.state.Current=n,this.emit("change")}},{key:"back",value:function(n){this.state.step=this.state.step-1,this.state.Current=n,this.emit("change")}},{key:"next",value:function(n){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=n),this.emit("change")}},{key:"setInitialValue",value:function(n,a){wt.set(this.options.initialValues,n,a)}},{key:"getFormState",value:function(){return dr("Returning form state"),Rt(Rt({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(n){var a=this.getValues();return wt.get(a,n)}},{key:"getValue",value:function(n){var a=this.getField(n).fieldApi.getValue();return dr("Getting value for",n,a),a}},{key:"getTouched",value:function(n){var a=this.getField(n).fieldApi.getTouched();return dr("Getting touched for",n,a),a}},{key:"getError",value:function(n){var a=this.getField(n).fieldApi.getError();return dr("Getting error for",n,a),a}},{key:"getDirty",value:function(n){var a=this.getField(n).fieldApi.getDirty();return dr("Getting dirty for",n,a),a}},{key:"getPristine",value:function(n){var a=this.getField(n).fieldApi.getPristine();return dr("Getting pristine for",n,a),a}},{key:"getValues",value:function(){return dr("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return dr("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return dr("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?wt.get(this.savedValues,"shadow-".concat(n)):wt.get(this.savedValues,n)}},{key:"removeSavedState",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?wt.delete(this.savedValues,"shadow-".concat(n)):wt.delete(this.savedValues,n)}},{key:"getFullField",value:function(n){return n}},{key:"getInitialValue",value:function(n){return wt.get(this.options.initialValues,n)}},{key:"getField",value:function(n){dr("Getting Field",n);var a=this.fieldsByName.get(n);return a||(console.warn("Attempting to get field ".concat(n," but it does not exist")),this.dummyField)}},{key:"notify",value:function(n){var a=this,o=this.getField(n);o&&o.notify&&o.notify.forEach(function(c){var p=".".concat(n),m="".concat(p.replace(/(.*)[.[].*/,"$1"),".").concat(c).slice(1),v=a.getField(m);v&&(dr("Notifying",v.field),v.fieldApi.validate(),v.fieldApi.checkRelevant())})}},{key:"validateField",value:function(n){this.getField(n).fieldApi.validate()}},{key:"resetField",value:function(n){this.getField(n).fieldApi.reset()}},{key:"fieldExists",value:function(n){return this.fieldsByName.get(n)!=null}},{key:"valid",value:function(){var n=this.getErrors();return!!(wt.empty(n)&&!this.state.error)}},{key:"screenValid",value:function(){var n=Object.entries(this.onScreen).some(function(a){var o=kr(a,2),c=o[1];return c.fieldApi.getError()});return!n}},{key:"invalid",value:function(){var n=this.getErrors();return!!(!wt.empty(n)||this.state.error)}},{key:"pristine",value:function(){var n=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(n=!1)}),n}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){dr("Resetting"),this.fieldsById.forEach(function(n){n.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(n){dr("Setting values"),this.fieldsById.forEach(function(a){var o=wt.get(n,a.field);o!==void 0&&a.fieldApi.setValue(o,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var n=this;dr("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var o=$p(this.options.validationSchema,a);this.fieldsById.forEach(function(v){if(wt.has(o,v.field)){var y=wt.get(o,v.field);n.setError(v.field,y)}else n.setError(v.field,void 0)})}if(this.options.schema&&this.options.ajv){var c=Jp(this.ajvValidate,a);this.fieldsById.forEach(function(v){if(wt.has(c,v.field)){var y=wt.get(c,v.field);n.setError(v.field,y)}else n.setError(v.field,void 0)})}if(this.fieldsById.forEach(function(v){v.fieldApi.validate(a),v.fieldApi.setTouched(!0,!0)}),this.options.validate){var p=this.options.validate(a);this.setFormError(p)}if(this.options.validateFields){var m=this.options.validateFields(a);this.fieldsById.forEach(function(v){if(wt.has(m,v.field)){var y=wt.get(m,v.field);n.setError(v.field,y)}})}}},{key:"asyncValidate",value:function(){dr("Async Validating all fields");var n=this.getValues();this.fieldsById.forEach(function(a){a.fieldApi.asyncValidate(n)})}},{key:"keyDown",value:function(n){if(n.keyCode==13&&this.options.preventEnter)return n.preventDefault(n),!1}},{key:"submitForm",value:function(n){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&n&&n.preventDefault(n),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(dr("Submit",this.state),this.emit("submit")):(dr("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var n=this;this.fieldsById.forEach(function(a){n.emit("field",a.field)})}},{key:"register",value:function(n,a,o){var c=a.field,p=a.state;dr("Register ID:",n,"Name:",c,p,"Initial",o);var m=c.slice(0,c.lastIndexOf("[")!=-1?c.lastIndexOf("]")+1:c.length),v;this.fieldsById.forEach(function(y,b){y&&y.field===c&&(v=b)}),v&&(a.keepState||a.inMultistep)?(dr("Already Registered",c),this.fieldsById.delete(v)):v&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",c),dr("Fields Registered",this.fieldsById.size),this.onScreen[n]=a,this.fieldsById.set(n,a),dr("clearing expected removal",m),delete this.expectedRemovals[m],delete this.pulledOut[m],!a.shadow&&(this.updater.setValue(n,a.fieldApi.getValue(),!1),this.updater.setError(n,a.fieldApi.getError(),!1),this.updater.setTouched(n,a.fieldApi.getTouched(),!1),o||this.emit("change"),this.emit("field",c))}},{key:"deregister",value:function(n){var a=this.fieldsById.get(n),o=a.field;dr("Deregister",n,o),delete this.onScreen[n];var c=Gm(o,this.expectedRemovals),p=o.slice(0,o.lastIndexOf("[")!=-1?o.lastIndexOf("]")+1:o.length);(a.keepState||a.inMultistep)&&!c&&(dr("Saving field ".concat(o,"'s value"),a.fieldApi.getFieldState()),a.shadow?wt.set(this.savedValues,"shadow-".concat(o),a.fieldApi.getFieldState()):wt.set(this.savedValues,o,a.fieldApi.getFieldState())),(c||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(dr("Removing field",o),this.fieldsById.delete(n),c||(wt.delete(this.state.values,o),wt.delete(this.state.touched,o),wt.delete(this.state.errors,o),a.shadow?wt.delete(this.savedValues,"shadow-".concat(o)):wt.delete(this.savedValues,o)),c&&this.pulledOut[p]&&(dr("Pulling out",o,"with magic value",p),wt.pullOut(this.state.values,p),wt.pullOut(this.state.touched,p),wt.pullOut(this.state.errors,p),wt.pullOut(this.savedValues,p),delete this.pulledOut[p])),this.emit("change")}},{key:"expectRemoval",value:function(n){dr("Expecting removal of",n),this.expectedRemovals[n]=!0,this.pulledOut[n]=!0}},{key:"update",value:function(n,a,o){dr("Update",n,a.field,o,a.fieldState.value);var c=a.fieldApi.getValue(),p=a.fieldApi.getError(),m=a.fieldApi.getTouched(),v=this.fieldsByName.get(o);o&&!v&&(wt.set(this.state.values,o),wt.set(this.state.errors,o),wt.set(this.state.touched,o)),wt.set(this.state.values,a.field,c),wt.set(this.state.errors,a.field,p),wt.set(this.state.touched,a.field,m),this.emit("change")}}]),e}(),Hd=Ji("informed:FormProvider "),Km=function(r){var n=r.children,a=r.formApi,o=r.formController,c=r.formState,p=Nr(r,["children","formApi","formController","formState"]);if(Hd("Render FormProvider"),a)return Hd("Render FormProvider with given values"),M.createElement(Qn.Provider,{value:o.updater},M.createElement(gu.Provider,{value:a},M.createElement(vu.Provider,{value:c},n)));Hd("Render FormProvider with generated values");var m=rh(p);return M.createElement(Qn.Provider,{value:m.formController.updater},M.createElement(gu.Provider,{value:m.formApi},M.createElement(vu.Provider,{value:m.formState},n)))},th=Ji("informed:useForm "),rh=function(r){var n=r.dontPreventDefault,a=r.initialValues,o=r.validate,c=r.validateFields,p=r.allowEmptyStrings,m=r.preventEnter,v=r.getApi,y=r.apiRef,b=r.onChange,I=r.onReset,R=r.onSubmit,B=r.onValueChange,$=r.onSubmitFailure,te=r.validationSchema,q=r.schema,se=r.ajv,ie=r.fieldMap,pe=r.onlyValidateSchema,ve=Nr(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);th("Render useForm");var ge=(0,M.useMemo)(function(){return{dontPreventDefault:n,initialValues:a,validate:o,validateFields:c,allowEmptyStrings:p,preventEnter:m,validationSchema:te,schema:q,ajv:se,fieldMap:ie}},[n,a,o,c,p,m,te,q,se,ie]),Ce=(0,M.useState)(function(){return new $m(ge)}),we=kr(Ce,1),xe=we[0];(0,M.useEffect)(function(){xe.setOptions(ge)},[ge]),Ni(function(){xe.mount()},[]);var Ae=(0,M.useState)(function(){return xe.getFormState()}),Fe=kr(Ae,2),Le=Fe[0],We=Fe[1];Ni(function(){var sr=function(){return b&&b(xe.getFormState())},Ut=function(){return I&&I()},lr=function(){return R&&R(xe.getFormState().values)},Kt=function(){return B&&B(xe.getFormState().values)},ur=function(){return $&&$(xe.getFormState().errors)};return xe.on("change",sr),xe.on("reset",Ut),xe.on("submit",lr),xe.on("value",Kt),xe.on("failure",ur),function(){xe.removeListener("change",sr),xe.removeListener("reset",Ut),xe.removeListener("submit",lr),xe.removeListener("value",Kt),xe.removeListener("failure",ur)}},[b,I,R,B,$]),(0,M.useState)(function(){var sr=function(){th("Setting form state"),We(xe.getFormState())};xe.on("change",sr),v&&v(xe.getFormApi()),y&&(y.current=xe.getFormApi())});var Ke=(0,M.useState)(function(){return xe.getFormApi()}),At=kr(Ke,1),qe=At[0],_t=function(Ut){return M.createElement(Km,{formApi:qe,formState:Le,formController:xe},M.createElement(M.Fragment,null,Ut||M.createElement(Wd,{schema:q,onlyValidateSchema:pe})))};return{formApi:qe,formState:Le,formController:xe,render:_t,userProps:ve}},Ym=Ji("informed:Form "),Jm=function(r){var n=r.children,a=r.render,o=r.component,c=Nr(r,["children","render","component"]);Ym("Render FORM");var p=rh(c),m=p.formApi,v=p.formController,y=p.formState,b=p.render,I=p.userProps,R=function(){var $={formState:y,formApi:m};return o?M.createElement(o,$,n):a?a($):typeof n=="function"?n($):n};return b(M.createElement("form",Mr({},I,{onReset:v.reset,onSubmit:v.submitForm,onKeyDown:v.keyDown}),R()))},Xm=function(r,n){return Rt(Rt({},n),{},{getValue:function(o){return n.getValue("".concat(r,".").concat(o))},getTouched:function(o){return n.getTouched("".concat(r,".").concat(o))},getError:function(o){return n.getError("".concat(r,".").concat(o))},setValue:function(o,c){return n.setValue("".concat(r,".").concat(o),c)},setTouched:function(o,c){return n.setTouched("".concat(r,".").concat(o),c)},setError:function(o,c){return n.setError("".concat(r,".").concat(o),c)},getInitialValue:function(o){return n.getInitialValue("".concat(r,".").concat(o))},getFullField:function(o){return"".concat(n.getFullField(r),".").concat(o)}})},Qm=function(r,n){var a=n.register,o=n.deregister,c=n.setValue,p=n.setTouched,m=n.setError,v=n.update,y=n.getField,b=n.expectRemoval,I=n.getInitialValue,R=n.fieldMap,B=n.getSavedValue;return{register:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return a.apply(void 0,["".concat(r,".").concat(te)].concat(se))},deregister:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return o.apply(void 0,["".concat(r,".").concat(te)].concat(se))},update:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return v.apply(void 0,["".concat(r,".").concat(te)].concat(se))},setValue:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return c.apply(void 0,["".concat(r,".").concat(te)].concat(se))},setTouched:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return p.apply(void 0,["".concat(r,".").concat(te)].concat(se))},setError:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return m.apply(void 0,["".concat(r,".").concat(te)].concat(se))},getField:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return y.apply(void 0,["".concat(r,".").concat(te)].concat(se))},expectRemoval:function(te){for(var q=arguments.length,se=new Array(q>1?q-1:0),ie=1;ie<q;ie++)se[ie-1]=arguments[ie];return b.apply(void 0,["".concat(r,".").concat(te)].concat(se))},getInitialValue:function(te){return I("".concat(r,".").concat(te))},getSavedValue:function(te){return B("".concat(r,".").concat(te))},fieldMap:R}},qx=function(r){var n=r.scope,a=r.children,o=useContext(Qn),c=Mi(),p=sc(),m=useMemo(function(){return Xm(n,c)},[n]),v=useMemo(function(){return Qm(n,o)},[n]);return React.createElement(Qn.Provider,{value:v},React.createElement(gu.Provider,{value:m},React.createElement(vu.Provider,{value:p},a)))},e1=function(r){var n=sc(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(B){a[B]=n[B]}):a=n;var o=a,c=o.pristine,p=o.dirty,m=o.invalid,v=o.values,y=o.errors,b=o.touched,I=o.validating,R=o.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:c,dirty:p,invalid:m,values:v,errors:y,touched:b,validating:I,submitting:R},null,2)))},Zm=function(r){var n=r.initialStep,a=r.multistepApiRef,o=Mi(),c=o.getValues,p=o.validate,m=o.screenValid,v=(0,M.useState)(new Map),y=kr(v,1),b=y[0],I=(0,M.useRef)(0),R=ga({current:n,steps:[],goal:null}),B=kr(R,3),$=B[0],te=B[1],q=B[2],se=(0,M.useState)(function(){var ge=function(){var xe=q(),Ae=xe.current,Fe=b.get(Ae);return Fe},Ce={getState:function(){return q()},getCurrentStep:ge,getStep:function(xe){return b.get(xe)},getNumberOfSteps:function(){return b.size},next:function(){if(p(),m()){var xe=ge(),Ae=xe.getNext,Fe=Ae(),Le=typeof Fe=="function"?Fe(c()):Fe;Le&&te(function(We){return Rt(Rt({},We),{},{current:Le})})}},back:function(){var xe=ge(),Ae=xe.getPrevious,Fe=Ae(),Le=typeof Fe=="function"?Fe(c()):Fe;Le&&te(function(We){return Rt(Rt({},We),{},{current:Le})})},setCurrent:function(xe){if(xe){var Ae=b.get(xe).index;Ae<ge().index?te(function(Fe){return Rt(Rt({},Fe),{},{current:xe,goal:null})}):te(function(Fe){return Rt(Rt({},Fe),{},{goal:xe})})}},register:function(xe,Ae,Fe){Fe?(I.current=I.current+1,b.set(xe,Rt(Rt({},Ae),{},{index:I.current}))):te(function(Le){return Rt(Rt({},Le),{},{steps:Array.from(b.keys())})})},deregister:function(xe){b.delete(xe),I.current=I.current-1,te(function(Ae){return Rt(Rt({},Ae),{},{steps:Array.from(b.keys())})})}};return a&&(a.current=Ce),Ce}),ie=kr(se,1),pe=ie[0],ve=function(Ce){return M.createElement(Wp.Provider,{value:pe},M.createElement(Up.Provider,{value:$},Ce))};return Rt(Rt(Rt({},pe),$),{},{render:ve})};function _m(){return(0,M.useContext)(Up)}function qm(){return(0,M.useContext)(Wp)}var ey=function(r){var n=r.step,a=r.next,o=r.previous,c=r.relevant,p=sc(),m=p.values,v=_m(),y=v.current,b=v.goal,I=qm(),R=I.register,B=I.deregister,$=I.next,te=n===y,q=c?c(m):!0,se=(0,M.useRef)(a),ie=(0,M.useRef)(o),pe=(0,M.useRef)();se.current=a,ie.current=o,pe.current=c,(0,M.useState)(function(){R(n,{name:n,getNext:function(){return se.current},getPrevious:function(){return ie.current}},!0)}),(0,M.useEffect)(function(){return R(n,{name:n,getNext:function(){return se.current},getPrevious:function(){return ie.current}}),function(){B(n)}},[n]),(0,M.useEffect)(function(){b&&te&&b!==n&&$()},[b,te]);var ve=function(Ce){return M.createElement(Hp.Provider,{value:{relevant:function(xe){return pe.current?pe.current(xe):!0},multistep:!0}},te&&q?Ce:null)};return{isCurrent:te,isRelevant:q,step:n,render:ve}};function ty(e){var r=e.children,n=Nr(e,["children"]),a=Zm(n),o=a.render,c=Nr(a,["render"]);return o(typeof r=="function"?r(c):r)}ty.Step=function(r){var n=r.children,a=Nr(r,["children"]),o=ey(a),c=o.render;return c(n)};var t1=function(r){var n=r.field,a=useContext(Qn),o=a.fieldMap,c=Mi(),p=c.getFullField,m=c.getOptions,v=p(n),y=m(),b=y.schema,I=Qp(v),R=wt.get(b,I);if(!R)return null;var B=Vd(n,R),$=B.props,te=B.componentType,q=o[te];return React.createElement(q,Mr({field:n},$))},r1=function(){var r=Mi(),n=r.getOptions,a=n(),o=a.schema;return React.createElement(Wd,{schema:o})},n1=function(r){return React.forwardRef(function(n,a){return React.createElement(gu.Consumer,null,function(o){return React.createElement(r,Mr({formApi:o,ref:a},n))})})},i1=function(r){return React.forwardRef(function(n,a){return React.createElement(vu.Consumer,null,function(o){return React.createElement(r,Mr({formState:o,ref:a},n))})})},ry=function(r,n){return{getValue:function(){return r.getValue(n)},setValue:function(o){return r.setValue(n,o)},getTouched:function(){return r.getTouched(n)},setTouched:function(o){return r.setTouched(n,o)},getError:function(){return r.getError(n)},setError:function(o){return r.setError(n,o)},reset:function(){return r.resetField(n)},validate:function(){return r.validateField(n)},exists:function(){return r.fieldExists(n)},getDirty:function(){return r.getDirty(n)},getPristine:function(){return r.getPristine(n)},getFieldState:function(){return r.getField(n).fieldApi.getFieldState()}}};function nh(e){var r=Mi(),n=useMemo(function(){return ry(r,e)},[e]);return n}function ny(e){var r=nh(e),n=Mi(),a=React.useState(),o=kr(a,2),c=o[1],p=React.useCallback(function(){return c({})},[]);return Ni(function(){var m=function(y){y===e&&p()};return n.emitter.on("field",m),function(){n.emitter.removeListener("field",m)}},[]),Ni(function(){p()},[]),r.getFieldState()||{}}var a1=function(r){return function(n){return function(a){var o=ny(r);return React.createElement(n,Mr({fieldState:o},a))}}},o1=function(r){return function(n){return function(a){var o=nh(r);return React.createElement(n,Mr({fieldApi:o},a))}}},s1=function(r){var n=r.value,a=r.forwardedRef,o=r.children,c=Nr(r,["value","forwardedRef","children"]);return React.createElement("option",Mr({ref:a,value:n,key:n},c),o)},l1=null,ih=s(56642),Qa=s(67262),iy=Object.defineProperty,ay=Object.defineProperties,oy=Object.getOwnPropertyDescriptors,ah=Object.getOwnPropertySymbols,sy=Object.prototype.hasOwnProperty,ly=Object.prototype.propertyIsEnumerable,oh=(e,r,n)=>r in e?iy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,yu=(e,r)=>{for(var n in r||(r={}))sy.call(r,n)&&oh(e,n,r[n]);if(ah)for(var n of ah(r))ly.call(r,n)&&oh(e,n,r[n]);return e},uy=(e,r)=>ay(e,oy(r)),uc=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const sh="/oauth2-redirect.html";class Di{static authorizeImplicit({authorizationUrl:r,clientId:n,scopes:a,extraParams:o={},routingBasePath:c,redirectUri:p,successCallback:m,errorCallback:v}){const y=(0,Qa.p8)({date:new Date().toString()}),b=new URL(r),I=c==="/"?"":c,R=`${window.location.origin}${I}${sh}`;b.searchParams.set("client_id",n),b.searchParams.set("redirect_uri",p||R),b.searchParams.set("response_type","token"),b.searchParams.set("state",y),Array.isArray(a)&&b.searchParams.set("scope",a.join(" "));for(const B in o)b.searchParams.set(B,o[B]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:n,scopes:a},state:y,successCallback:B=>{m(B),Di.clearRedirectData("implicit")},errorCallback:B=>{v(B),Di.clearRedirectData("implicit")}},window.open(b.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:n,clientId:a,clientSecret:o,codeVerifier:c,codeChallenge:p,scopes:m,extraParams:v={},extraHeaders:y={},routingBasePath:b,redirectUri:I,successCallback:R,errorCallback:B}){const $=new URL(r),te=b==="/"?"":b,q=`${window.location.origin}${te}${sh}`,se=(0,Qa.p8)({date:new Date().toString()});$.searchParams.set("client_id",a),$.searchParams.set("redirect_uri",I||q),$.searchParams.set("response_type","code"),$.searchParams.set("state",se),Array.isArray(m)&&$.searchParams.set("scope",m.join(" ")),p&&($.searchParams.set("code_challenge",p),$.searchParams.set("code_challenge_method","S256"));for(const ie in v)$.searchParams.set(ie,v[ie]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:m},state:se,successCallback:ie=>uc(this,[ie],function*({auth_code:pe}){try{const ve=yield fetch(n,{method:"POST",headers:yu({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},y),body:ih.stringify(yu(uy(yu({client_id:a,client_secret:o},c&&{code_verifier:c}),{code:pe,grant_type:"authorization_code",redirect_uri:I||q}),v))});yield lh(ve,R,B)}catch(ve){B(ve)}Di.clearRedirectData("authorizationCode")}),errorCallback:ie=>{B(ie),Di.clearRedirectData("authorizationCode")}},window.open($.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return uc(this,arguments,function*({tokenUrl:n,clientId:a,clientSecret:o,scopes:c=[],extraParams:p={},extraHeaders:m={},successCallback:v,errorCallback:y}){try{const b=JSON.parse(JSON.stringify(yu({client_id:a,client_secret:o,grant_type:"client_credentials",scope:Array.isArray(c)&&c.length?c.join(" "):void 0},p))),I=yield fetch(n,{method:"POST",headers:yu({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},m),body:ih.stringify(b)});yield lh(I,v,y)}catch(b){y(b)}})}}const u1=new Di;function lh(e,r,n){return uc(this,null,function*(){if(e.ok){const a=yield e.json();r(a)}else n(new Error((e.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield e.json()):yield e.text()))})}function uh(e){return uc(this,null,function*(){return(0,Qa.rS)(yield(0,Qa.JQ)(e))})}var bu=s(3682),pt=s(45091),fy=s(31453),cy=s(43454),dy=Object.defineProperty,py=Object.defineProperties,hy=Object.getOwnPropertyDescriptors,fc=Object.getOwnPropertySymbols,fh=Object.prototype.hasOwnProperty,ch=Object.prototype.propertyIsEnumerable,dh=(e,r,n)=>r in e?dy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,cc=(e,r)=>{for(var n in r||(r={}))fh.call(r,n)&&dh(e,n,r[n]);if(fc)for(var n of fc(r))ch.call(r,n)&&dh(e,n,r[n]);return e},vy=(e,r)=>py(e,hy(r)),gy=(e,r)=>{var n={};for(var a in e)fh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&fc)for(var a of fc(e))r.indexOf(a)<0&&ch.call(e,a)&&(n[a]=e[a]);return n};const ph=e=>Vt.iv`
|
|
95
167
|
border: var(--input-border);
|
|
96
168
|
outline: none;
|
|
97
169
|
padding: var(--input-padding);
|
|
@@ -120,16 +192,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
120
192
|
&:-webkit-autofill {
|
|
121
193
|
background-color: var(--panel-${e}-input-background-color);
|
|
122
194
|
}
|
|
123
|
-
`,
|
|
195
|
+
`,hh=Vt.ZP.div`
|
|
124
196
|
display: ${({type:e})=>e==="hidden"?"none":"inline-block"};
|
|
125
197
|
${({fullWidth:e})=>e?"width: 100%;":""}
|
|
126
|
-
`,
|
|
198
|
+
`,my=Vt.ZP.div`
|
|
127
199
|
position: relative;
|
|
128
|
-
`,
|
|
129
|
-
${({panel:e})=>
|
|
200
|
+
`,yy=Vt.ZP.input`
|
|
201
|
+
${({panel:e})=>ph(e)}
|
|
130
202
|
${({inputType:e,inputActionButton:r})=>e==="password"||r?"padding-right: 40px;":""};
|
|
131
203
|
${({fullWidth:e})=>e?"width: 100%;":""}
|
|
132
|
-
`,
|
|
204
|
+
`,vh=Vt.ZP.span`
|
|
133
205
|
position: absolute;
|
|
134
206
|
right: 0;
|
|
135
207
|
line-height: normal;
|
|
@@ -139,7 +211,115 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
139
211
|
cursor: pointer;
|
|
140
212
|
text-align: center;
|
|
141
213
|
color: var(--panel-samples-text-color);
|
|
142
|
-
`;function
|
|
214
|
+
`;function by(e,r){var n=e,{fullWidth:a,errorMessage:o,type:c,inputActionButton:p,panel:m="samples"}=n,v=gy(n,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[y,b]=(0,M.useState)(c==="password"),I=(0,M.useCallback)(()=>{b(!y)},[y]);return M.createElement(hh,{fullWidth:a,type:c},M.createElement(my,null,M.createElement(yy,cc({fullWidth:a,inputActionButton:p,type:y?"password":"text",inputType:c,ref:r,panel:m},v)),p?M.createElement(vh,{onClick:p.onClick},p.label):c==="password"?M.createElement(vh,{onClick:I},y?"show":"hide"):null),o?M.createElement(pt.Xq,null,o):null)}const xu=(0,M.forwardRef)(by);function Mn(e){const r=mu(cc({fieldType:"text"},e)),{userProps:n,render:a,fieldState:o}=r,c=r.informed;return a(M.createElement(xu,vy(cc(cc({},n),c),{errorMessage:o.error})))}const Su=ma(({initValue:e,options:r,fieldApi:n,fieldState:a})=>{const o=r.map((y,b)=>({value:y.title||y.value,idx:b,origValue:y.value})),c=o.find(y=>y.origValue===e),[p,m]=(0,M.useState)(c==null?void 0:c.value);(0,Dt.useMount)(()=>{e&&n.setValue(e)});const v=(0,M.useCallback)(y=>{n.setValue(o[y.idx].origValue),m(o[y.idx].value)},[n,o]);return M.createElement(hh,{fullWidth:!0},M.createElement(cy.Dropdown,{fullWidth:!0,variant:"dark",value:p,options:o,onChange:v}),a.error?M.createElement(pt.Xq,null,a.error):null)});function xy({name:e,value:r,description:n,variableEnum:a,onChange:o,defaultValue:c}){const p=(0,M.useCallback)(y=>o(y.target.value),[o]),m=(0,M.useCallback)(y=>o(y.value),[o]),v=a?a.map((y,b)=>({value:y,idx:b})):[];return M.createElement(pt.NI,null,M.createElement(pt.lX,null,e,":"),v&&v.length?M.createElement(nn.VD,{fullWidth:!0,variant:"dark",value:r,options:v,onChange:m}):M.createElement(xu,{fullWidth:!0,value:r,onChange:p,placeholder:c,panel:"try-it"}),n&&M.createElement(Sy,{compact:!0,source:n}))}const Sy=(0,Vt.ZP)(fy.Markdown)`
|
|
215
|
+
margin-top: 5px;
|
|
216
|
+
color: #d0d0d0;
|
|
217
|
+
`;var wy=Object.defineProperty,Ay=Object.defineProperties,Cy=Object.getOwnPropertyDescriptors,gh=Object.getOwnPropertySymbols,Ey=Object.prototype.hasOwnProperty,Oy=Object.prototype.propertyIsEnumerable,mh=(e,r,n)=>r in e?wy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,yh=(e,r)=>{for(var n in r||(r={}))Ey.call(r,n)&&mh(e,n,r[n]);if(gh)for(var n of gh(r))Oy.call(r,n)&&mh(e,n,r[n]);return e},bh=(e,r)=>Ay(e,Cy(r));const Ty=(0,A.Pi)(({operation:e,onChange:r})=>{const n=(0,St.YQ)("serverUrl"),a=e.servers.findIndex(R=>R.url===n),[o,c]=(0,M.useState)(a<0?0:a),[p,m]=(0,M.useState)({});(0,Dt.useMount)(()=>{const R=(0,It.fz)(e.servers,o);r(R),m(R.variables)});const v=R=>{const B=e.servers.find(q=>q.url===R.serverUrl),$=e.servers.findIndex(q=>q.url===R.serverUrl),te=(0,It.mj)(B);r({url:R.serverUrl||"",variables:te}),(0,St.WW)("serverUrl",R.serverUrl||""),c($),m(te)},y=(R,B)=>{const $=e.servers[o],te=B||B===""?B:(0,It.mj)($)[R],q=bh(yh({},p),{[R]:te});m(q),(0,It.UY)(R,te),r(bh(yh({},$),{variables:q}))},b=e.servers.map((R,B)=>({idx:B,serverUrl:R.url,value:`
|
|
218
|
+
${(0,It.nq)((0,It.v5)(R.url,p),R.variables)}
|
|
219
|
+
- ${R.description||"Default"}
|
|
220
|
+
`})),I=Object.keys(p);return M.createElement(Py,{"data-cy":"console-target-server"},M.createElement(pt.lX,{htmlFor:"server"},"Target server: "),M.createElement(pt.NI,null,M.createElement(nn.VD,{variant:"dark",value:b[o].value,options:b,fullWidth:!0,onChange:v})),I==null?void 0:I.map(R=>{var B;const $=(B=e.servers[o].variables)==null?void 0:B[R];if($)return M.createElement(xy,{key:R,name:R,value:p[R],defaultValue:$.default,onChange:te=>y(R,te),variableEnum:$.enum,description:$.description})}))}),Py=Vt.ZP.div`
|
|
221
|
+
margin-bottom: 20px;
|
|
222
|
+
`;var xh=s(27341),Iy=Object.defineProperty,ky=Object.defineProperties,Fy=Object.getOwnPropertyDescriptors,dc=Object.getOwnPropertySymbols,Sh=Object.prototype.hasOwnProperty,wh=Object.prototype.propertyIsEnumerable,Ah=(e,r,n)=>r in e?Iy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ry=(e,r)=>{for(var n in r||(r={}))Sh.call(r,n)&&Ah(e,n,r[n]);if(dc)for(var n of dc(r))wh.call(r,n)&&Ah(e,n,r[n]);return e},Ly=(e,r)=>ky(e,Fy(r)),My=(e,r)=>{var n={};for(var a in e)Sh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&dc)for(var a of dc(e))r.indexOf(a)<0&&wh.call(e,a)&&(n[a]=e[a]);return n};function zd(e){var r=e,{header:n,error:a,success:o}=r,c=My(r,["header","error","success"]);const p=({toggle:m,expanded:v=!1})=>M.createElement(Dt.PanelHeader,{onClick:m,expanded:v,"data-cy":c["data-cy"]},M.createElement(Ir.xz,null,M.createElement(Dt.PanelHeaderTitle,null,n),M.createElement(Dt.ShelfIcon,{direction:v?"down":"right"})),a&&M.createElement(xh.CrossIcon,{size:"14px",color:"--color-error-500"})||null,o&&M.createElement(xh.LockIcon,{size:"14px",color:"--color-success-500"})||null);return M.createElement(Ny,Ly(Ry({className:"panel-try-it-nested"},c),{header:p}))}const Ny=(0,Vt.ZP)(Dt.Panel)`
|
|
223
|
+
${Dt.PanelHeader} {
|
|
224
|
+
border: 1px solid
|
|
225
|
+
${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-heading-border-color)"};
|
|
226
|
+
padding: 10px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
${Dt.PanelBody} {
|
|
230
|
+
border: 1px solid
|
|
231
|
+
${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-body-border-color)"};
|
|
232
|
+
border-top: 0;
|
|
233
|
+
}
|
|
234
|
+
`;var Dy=s(76479),By=s(78051),jy=s(61747);const Vy=(0,Vt.ZP)(kp.A3)`
|
|
235
|
+
border-radius: var(--panel-border-radius);
|
|
236
|
+
margin-bottom: 10px;
|
|
237
|
+
`;var pc=s(41199),Gd=s(74032),Uy=Object.defineProperty,hc=Object.getOwnPropertySymbols,Ch=Object.prototype.hasOwnProperty,Eh=Object.prototype.propertyIsEnumerable,Oh=(e,r,n)=>r in e?Uy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Wy=(e,r)=>{for(var n in r||(r={}))Ch.call(r,n)&&Oh(e,n,r[n]);if(hc)for(var n of hc(r))Eh.call(r,n)&&Oh(e,n,r[n]);return e},Th=(e,r)=>{var n={};for(var a in e)Ch.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&hc)for(var a of hc(e))r.indexOf(a)<0&&Eh.call(e,a)&&(n[a]=e[a]);return n},Hy=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const Ph=(0,M.forwardRef)((e,r)=>{var n=Th(e,[]);const a=n,{schema:o,contentName:c,onChange:p,name:m}=a,v=Th(a,["schema","contentName","onChange","name"]),{render:y}=mu(Wy({field:m},v)),b=I=>Hy(void 0,null,function*(){const R=yield va(I.target.files,o);p(c,R)});return y(M.createElement("input",{"data-cy":"file-upload-input",type:"file",id:n.id,className:n.className,name:n.name,onChange:b,multiple:n.multiple,accept:n.accept,ref:r}))});Ph.displayName="FileUpload";const zy=(0,A.Pi)(e=>{var r;const{mediaType:n,onChange:a,formApi:o}=e,c=n.examples||{},{exampleKey:p}=(0,Gd.C6)(n.operation,c),m=(r=c[p])==null?void 0:r.rawValue,v=Gy(n);(0,M.useEffect)(()=>o&&v.forEach(b=>{var I,R;const B=m==null?void 0:m[b.name],$=(R=(I=b.example)!=null?I:B==null?void 0:B.example)!=null?R:B,te=typeof $=="object"?JSON.stringify($):$;$!==void 0&&o.setValue("body."+b.name,`${te}`)}),[p]);const y=n.schema||{};return Lr(y,n.name)?M.createElement(Ih,null,M.createElement(pt.NI,null,M.createElement(kh,{fullWidth:!0,id:`body.${n.name}`,name:`body.${n.name}`,accept:Li(n.name),schema:y,contentName:n.name,onChange:a}))):y.type!==vr.DefinitionTypes.OBJECT&&!v?(console.warn(`Invalid schema for request body and mime type: "${n.name}"`,y),null):M.createElement(Ih,null,v.map(b=>{const I=b.schema||{contentMediaType:"",type:"",description:""},R=n.name===pc.Tr.MULTIPART&&ci(I),B=I.contentMediaType||"",$=R?M.createElement(kh,{fullWidth:!0,id:"body."+b.name,name:"body."+b.name,accept:Li(B),multiple:I.type==="array",schema:I,contentName:b.name,onChange:a}):M.createElement(Mn,{fullWidth:!0,id:"body."+b.name,field:"body."+b.name,placeholder:I.description||b.name,panel:"try-it"});return M.createElement(pt.NI,{key:b.name},M.createElement(pt.lX,null,b.name,":"),$)}))});function Gy(e){var r,n,a,o,c;return((n=(r=e.schema)==null?void 0:r.oneOf)!=null&&n.length?((o=e.schema)==null?void 0:o.oneOf[(a=e.schema)==null?void 0:a.activeOneOf].fields)||[]:((c=e.schema)==null?void 0:c.fields)||[]).filter(p=>!p.schema.readOnly)}const Ih=Vt.ZP.div`
|
|
238
|
+
> div {
|
|
239
|
+
margin-top: 10px;
|
|
240
|
+
}
|
|
241
|
+
`,kh=(0,Vt.ZP)(Ph)`
|
|
242
|
+
${ph("try-it")};
|
|
243
|
+
${({inputType:e})=>e==="password"?"padding-right: 40px;":""};
|
|
244
|
+
${({fullWidth:e})=>e?"width: 100%;":""}
|
|
245
|
+
`;var $y=s(63277),Ks=s(23326);function vc(e,r){r===void 0&&(r=!1);var n=e.length,a=0,o="",c=0,p=16,m=0,v=0,y=0,b=0,I=0;function R(pe,ve){for(var ge=0,Ce=0;ge<pe||!ve;){var we=e.charCodeAt(a);if(we>=48&&we<=57)Ce=Ce*16+we-48;else if(we>=65&&we<=70)Ce=Ce*16+we-65+10;else if(we>=97&&we<=102)Ce=Ce*16+we-97+10;else break;a++,ge++}return ge<pe&&(Ce=-1),Ce}function B(pe){a=pe,o="",c=0,p=16,I=0}function $(){var pe=a;if(e.charCodeAt(a)===48)a++;else for(a++;a<e.length&&Ys(e.charCodeAt(a));)a++;if(a<e.length&&e.charCodeAt(a)===46)if(a++,a<e.length&&Ys(e.charCodeAt(a)))for(a++;a<e.length&&Ys(e.charCodeAt(a));)a++;else return I=3,e.substring(pe,a);var ve=a;if(a<e.length&&(e.charCodeAt(a)===69||e.charCodeAt(a)===101))if(a++,(a<e.length&&e.charCodeAt(a)===43||e.charCodeAt(a)===45)&&a++,a<e.length&&Ys(e.charCodeAt(a))){for(a++;a<e.length&&Ys(e.charCodeAt(a));)a++;ve=a}else I=3;return e.substring(pe,ve)}function te(){for(var pe="",ve=a;;){if(a>=n){pe+=e.substring(ve,a),I=2;break}var ge=e.charCodeAt(a);if(ge===34){pe+=e.substring(ve,a),a++;break}if(ge===92){if(pe+=e.substring(ve,a),a++,a>=n){I=2;break}var Ce=e.charCodeAt(a++);switch(Ce){case 34:pe+='"';break;case 92:pe+="\\";break;case 47:pe+="/";break;case 98:pe+="\b";break;case 102:pe+="\f";break;case 110:pe+=`
|
|
246
|
+
`;break;case 114:pe+="\r";break;case 116:pe+=" ";break;case 117:var we=R(4,!0);we>=0?pe+=String.fromCharCode(we):I=4;break;default:I=5}ve=a;continue}if(ge>=0&&ge<=31)if(wu(ge)){pe+=e.substring(ve,a),I=2;break}else I=6;a++}return pe}function q(){if(o="",I=0,c=a,v=m,b=y,a>=n)return c=n,p=17;var pe=e.charCodeAt(a);if($d(pe)){do a++,o+=String.fromCharCode(pe),pe=e.charCodeAt(a);while($d(pe));return p=15}if(wu(pe))return a++,o+=String.fromCharCode(pe),pe===13&&e.charCodeAt(a)===10&&(a++,o+=`
|
|
247
|
+
`),m++,y=a,p=14;switch(pe){case 123:return a++,p=1;case 125:return a++,p=2;case 91:return a++,p=3;case 93:return a++,p=4;case 58:return a++,p=6;case 44:return a++,p=5;case 34:return a++,o=te(),p=10;case 47:var ve=a-1;if(e.charCodeAt(a+1)===47){for(a+=2;a<n&&!wu(e.charCodeAt(a));)a++;return o=e.substring(ve,a),p=12}if(e.charCodeAt(a+1)===42){a+=2;for(var ge=n-1,Ce=!1;a<ge;){var we=e.charCodeAt(a);if(we===42&&e.charCodeAt(a+1)===47){a+=2,Ce=!0;break}a++,wu(we)&&(we===13&&e.charCodeAt(a)===10&&a++,m++,y=a)}return Ce||(a++,I=1),o=e.substring(ve,a),p=13}return o+=String.fromCharCode(pe),a++,p=16;case 45:if(o+=String.fromCharCode(pe),a++,a===n||!Ys(e.charCodeAt(a)))return p=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=$(),p=11;default:for(;a<n&&se(pe);)a++,pe=e.charCodeAt(a);if(c!==a){switch(o=e.substring(c,a),o){case"true":return p=8;case"false":return p=9;case"null":return p=7}return p=16}return o+=String.fromCharCode(pe),a++,p=16}}function se(pe){if($d(pe)||wu(pe))return!1;switch(pe){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function ie(){var pe;do pe=q();while(pe>=12&&pe<=15);return pe}return{setPosition:B,getPosition:function(){return a},scan:r?ie:q,getToken:function(){return p},getTokenValue:function(){return o},getTokenOffset:function(){return c},getTokenLength:function(){return a-c},getTokenStartLine:function(){return v},getTokenStartCharacter:function(){return c-b},getTokenError:function(){return I}}}function $d(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function wu(e){return e===10||e===13||e===8232||e===8233}function Ys(e){return e>=48&&e<=57}function Ky(e,r,n){var a,o,c,p,m;if(r){for(p=r.offset,m=p+r.length,c=p;c>0&&!Fh(e,c-1);)c--;for(var v=m;v<e.length&&!Fh(e,v);)v++;o=e.substring(c,v),a=Yy(o,n)}else o=e,a=0,c=0,p=0,m=e.length;var y=Jy(n,e),b=!1,I=0,R;n.insertSpaces?R=Kd(" ",n.tabSize||4):R=" ";var B=vc(o,!1),$=!1;function te(){return y+Kd(R,a+I)}function q(){var Le=B.scan();for(b=!1;Le===15||Le===14;)b=b||Le===14,Le=B.scan();return $=Le===16||B.getTokenError()!==0,Le}var se=[];function ie(Le,We,Ke){!$&&We<m&&Ke>p&&e.substring(We,Ke)!==Le&&se.push({offset:We,length:Ke-We,content:Le})}var pe=q();if(pe!==17){var ve=B.getTokenOffset()+c,ge=Kd(R,a);ie(ge,c,ve)}for(;pe!==17;){for(var Ce=B.getTokenOffset()+B.getTokenLength()+c,we=q(),xe="";!b&&(we===12||we===13);){var Ae=B.getTokenOffset()+c;ie(" ",Ce,Ae),Ce=B.getTokenOffset()+B.getTokenLength()+c,xe=we===12?te():"",we=q()}if(we===2)pe!==1&&(I--,xe=te());else if(we===4)pe!==3&&(I--,xe=te());else{switch(pe){case 3:case 1:I++,xe=te();break;case 5:case 12:xe=te();break;case 13:b?xe=te():xe=" ";break;case 6:xe=" ";break;case 10:if(we===6){xe="";break}case 7:case 8:case 9:case 11:case 2:case 4:we===12||we===13?xe=" ":we!==5&&we!==17&&($=!0);break;case 16:$=!0;break}b&&(we===12||we===13)&&(xe=te())}var Fe=B.getTokenOffset()+c;ie(xe,Ce,Fe),pe=we}return se}function Kd(e,r){for(var n="",a=0;a<r;a++)n+=e;return n}function Yy(e,r){for(var n=0,a=0,o=r.tabSize||4;n<e.length;){var c=e.charAt(n);if(c===" ")a++;else if(c===" ")a+=o;else break;n++}return Math.floor(a/o)}function Jy(e,r){for(var n=0;n<r.length;n++){var a=r.charAt(n);if(a==="\r")return n+1<r.length&&r.charAt(n+1)===`
|
|
248
|
+
`?`\r
|
|
249
|
+
`:"\r";if(a===`
|
|
250
|
+
`)return`
|
|
251
|
+
`}return e&&e.eol||`
|
|
252
|
+
`}function Fh(e,r){return`\r
|
|
253
|
+
`.indexOf(e.charAt(r))!==-1}var Au;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Au||(Au={}));function Xy(e,r){var n=[],a=new Object,o=void 0,c={value:{},offset:0,length:0,type:"object",parent:void 0},p=!1;function m(v,y,b,I){c.value=v,c.offset=y,c.length=b,c.type=I,c.colonOffset=void 0,o=c}try{gc(e,{onObjectBegin:function(v,y){if(r<=v)throw a;o=void 0,p=r>v,n.push("")},onObjectProperty:function(v,y,b){if(r<y||(m(v,y,b,"property"),n[n.length-1]=v,r<=y+b))throw a},onObjectEnd:function(v,y){if(r<=v)throw a;o=void 0,n.pop()},onArrayBegin:function(v,y){if(r<=v)throw a;o=void 0,n.push(0)},onArrayEnd:function(v,y){if(r<=v)throw a;o=void 0,n.pop()},onLiteralValue:function(v,y,b){if(r<y||(m(v,y,b,Mh(v)),r<=y+b))throw a},onSeparator:function(v,y,b){if(r<=y)throw a;if(v===":"&&o&&o.type==="property")o.colonOffset=y,p=!1,o=void 0;else if(v===","){var I=n[n.length-1];typeof I=="number"?n[n.length-1]=I+1:(p=!0,n[n.length-1]=""),o=void 0}}})}catch(v){if(v!==a)throw v}return{path:n,previousNode:o,isAtPropertyKey:p,matches:function(v){for(var y=0,b=0;y<v.length&&b<n.length;b++)if(v[y]===n[b]||v[y]==="*")y++;else if(v[y]!=="**")return!1;return y===v.length}}}function Qy(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=Au.DEFAULT);var a=null,o=[],c=[];function p(v){Array.isArray(o)?o.push(v):a!==null&&(o[a]=v)}var m={onObjectBegin:function(){var v={};p(v),c.push(o),o=v,a=null},onObjectProperty:function(v){a=v},onObjectEnd:function(){o=c.pop()},onArrayBegin:function(){var v=[];p(v),c.push(o),o=v,a=null},onArrayEnd:function(){o=c.pop()},onLiteralValue:p,onError:function(v,y,b){r.push({error:v,offset:y,length:b})}};return gc(e,m,n),o[0]}function Zy(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=Au.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function o(v){a.type==="property"&&(a.length=v-a.offset,a=a.parent)}function c(v){return a.children.push(v),v}var p={onObjectBegin:function(v){a=c({type:"object",offset:v,length:-1,parent:a,children:[]})},onObjectProperty:function(v,y,b){a=c({type:"property",offset:y,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:v,offset:y,length:b,parent:a})},onObjectEnd:function(v,y){o(v+y),a.length=v+y-a.offset,a=a.parent,o(v+y)},onArrayBegin:function(v,y){a=c({type:"array",offset:v,length:-1,parent:a,children:[]})},onArrayEnd:function(v,y){a.length=v+y-a.offset,a=a.parent,o(v+y)},onLiteralValue:function(v,y,b){c({type:Mh(v),offset:y,length:b,parent:a,value:v}),o(y+b)},onSeparator:function(v,y,b){a.type==="property"&&(v===":"?a.colonOffset=y:v===","&&o(y))},onError:function(v,y,b){r.push({error:v,offset:y,length:b})}};gc(e,p,n);var m=a.children[0];return m&&delete m.parent,m}function _y(e,r){if(!!e){for(var n=e,a=0,o=r;a<o.length;a++){var c=o[a];if(typeof c=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var p=!1,m=0,v=n.children;m<v.length;m++){var y=v[m];if(Array.isArray(y.children)&&y.children[0].value===c){n=y.children[1],p=!0;break}}if(!p)return}else{var b=c;if(n.type!=="array"||b<0||!Array.isArray(n.children)||b>=n.children.length)return;n=n.children[b]}}return n}}function Rh(e){if(!e.parent||!e.parent.children)return[];var r=Rh(e.parent);if(e.parent.type==="property"){var n=e.parent.children[0].value;r.push(n)}else if(e.parent.type==="array"){var a=e.parent.children.indexOf(e);a!==-1&&r.push(a)}return r}function Yd(e){switch(e.type){case"array":return e.children.map(Yd);case"object":for(var r=Object.create(null),n=0,a=e.children;n<a.length;n++){var o=a[n],c=o.children[1];c&&(r[o.children[0].value]=Yd(c))}return r;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function qy(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}function Lh(e,r,n){if(n===void 0&&(n=!1),qy(e,r,n)){var a=e.children;if(Array.isArray(a))for(var o=0;o<a.length&&a[o].offset<=r;o++){var c=Lh(a[o],r,n);if(c)return c}return e}}function gc(e,r,n){n===void 0&&(n=Au.DEFAULT);var a=vc(e,!1);function o(Ae){return Ae?function(){return Ae(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function c(Ae){return Ae?function(Fe){return Ae(Fe,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var p=o(r.onObjectBegin),m=c(r.onObjectProperty),v=o(r.onObjectEnd),y=o(r.onArrayBegin),b=o(r.onArrayEnd),I=c(r.onLiteralValue),R=c(r.onSeparator),B=o(r.onComment),$=c(r.onError),te=n&&n.disallowComments,q=n&&n.allowTrailingComma;function se(){for(;;){var Ae=a.scan();switch(a.getTokenError()){case 4:ie(14);break;case 5:ie(15);break;case 3:ie(13);break;case 1:te||ie(11);break;case 2:ie(12);break;case 6:ie(16);break}switch(Ae){case 12:case 13:te?ie(10):B();break;case 16:ie(1);break;case 15:case 14:break;default:return Ae}}}function ie(Ae,Fe,Le){if(Fe===void 0&&(Fe=[]),Le===void 0&&(Le=[]),$(Ae),Fe.length+Le.length>0)for(var We=a.getToken();We!==17;){if(Fe.indexOf(We)!==-1){se();break}else if(Le.indexOf(We)!==-1)break;We=se()}}function pe(Ae){var Fe=a.getTokenValue();return Ae?I(Fe):m(Fe),se(),!0}function ve(){switch(a.getToken()){case 11:var Ae=a.getTokenValue(),Fe=Number(Ae);isNaN(Fe)&&(ie(2),Fe=0),I(Fe);break;case 7:I(null);break;case 8:I(!0);break;case 9:I(!1);break;default:return!1}return se(),!0}function ge(){return a.getToken()!==10?(ie(3,[],[2,5]),!1):(pe(!1),a.getToken()===6?(R(":"),se(),xe()||ie(4,[],[2,5])):ie(5,[],[2,5]),!0)}function Ce(){p(),se();for(var Ae=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(Ae||ie(4,[],[]),R(","),se(),a.getToken()===2&&q)break}else Ae&&ie(6,[],[]);ge()||ie(4,[],[2,5]),Ae=!0}return v(),a.getToken()!==2?ie(7,[2],[]):se(),!0}function we(){y(),se();for(var Ae=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(Ae||ie(4,[],[]),R(","),se(),a.getToken()===4&&q)break}else Ae&&ie(6,[],[]);xe()||ie(4,[],[4,5]),Ae=!0}return b(),a.getToken()!==4?ie(8,[4],[]):se(),!0}function xe(){switch(a.getToken()){case 3:return we();case 1:return Ce();case 10:return pe(!0);default:return ve()}}return se(),a.getToken()===17?n.allowEmptyContent?!0:(ie(4,[],[]),!1):xe()?(a.getToken()!==17&&ie(9,[],[]),!0):(ie(4,[],[]),!1)}function e0(e,r){var n=vc(e),a=[],o,c=0,p;do switch(p=n.getPosition(),o=n.scan(),o){case 12:case 13:case 17:c!==p&&a.push(e.substring(c,p)),r!==void 0&&a.push(n.getTokenValue().replace(/[^\r\n]/g,r)),c=n.getPosition();break}while(o!==17);return a.join("")}function Mh(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function c1(e,r,n){return t0(e,r,void 0,n)}function t0(e,r,n,a){for(var o,c=r.slice(),p=[],m=parseTree(e,p),v=void 0,y=void 0;c.length>0&&(y=c.pop(),v=findNodeAtLocation(m,c),v===void 0&&n!==void 0);)typeof y=="string"?n=(o={},o[y]=n,o):n=[n];if(v)if(v.type==="object"&&typeof y=="string"&&Array.isArray(v.children)){var b=findNodeAtLocation(v,[y]);if(b!==void 0)if(n===void 0){if(!b.parent)throw new Error("Malformed AST");var I=v.children.indexOf(b.parent),R=void 0,B=b.parent.offset+b.parent.length;if(I>0){var $=v.children[I-1];R=$.offset+$.length}else if(R=v.offset+1,v.children.length>1){var te=v.children[1];B=te.offset}return Ho(e,{offset:R,length:B-R,content:""},a)}else return Ho(e,{offset:b.offset,length:b.length,content:JSON.stringify(n)},a);else{if(n===void 0)return[];var q=JSON.stringify(y)+": "+JSON.stringify(n),se=a.getInsertionIndex?a.getInsertionIndex(v.children.map(function(Ae){return Ae.children[0].value})):v.children.length,ie=void 0;if(se>0){var $=v.children[se-1];ie={offset:$.offset+$.length,length:0,content:","+q}}else v.children.length===0?ie={offset:v.offset+1,length:0,content:q}:ie={offset:v.offset+1,length:0,content:q+","};return Ho(e,ie,a)}}else if(v.type==="array"&&typeof y=="number"&&Array.isArray(v.children)){var pe=y;if(pe===-1){var q=""+JSON.stringify(n),ie=void 0;if(v.children.length===0)ie={offset:v.offset+1,length:0,content:q};else{var $=v.children[v.children.length-1];ie={offset:$.offset+$.length,length:0,content:","+q}}return Ho(e,ie,a)}else if(n===void 0&&v.children.length>=0){var ve=y,ge=v.children[ve],ie=void 0;if(v.children.length===1)ie={offset:v.offset+1,length:v.length-2,content:""};else if(v.children.length-1===ve){var $=v.children[ve-1],Ce=$.offset+$.length,we=v.offset+v.length;ie={offset:Ce,length:we-2-Ce,content:""}}else ie={offset:ge.offset,length:v.children[ve+1].offset-ge.offset,content:""};return Ho(e,ie,a)}else if(n!==void 0){var ie=void 0,q=""+JSON.stringify(n);if(!a.isArrayInsertion&&v.children.length>y){var xe=v.children[y];ie={offset:xe.offset,length:xe.length,content:q}}else if(v.children.length===0||y===0)ie={offset:v.offset+1,length:0,content:v.children.length===0?q:q+","};else{var se=y>v.children.length?v.children.length:y,$=v.children[se-1];ie={offset:$.offset+$.length,length:0,content:","+q}}return Ho(e,ie,a)}else throw new Error("Can not "+(n===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+pe+" as length is not sufficient")}else throw new Error("Can not add "+(typeof y!="number"?"index":"property")+" to parent of type "+v.type);else{if(n===void 0)throw new Error("Can not delete in empty document");return Ho(e,{offset:m?m.offset:0,length:m?m.length:0,content:JSON.stringify(n)},a)}}function Ho(e,r,n){if(!n.formattingOptions)return[r];var a=Nh(e,r),o=r.offset,c=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;o>0&&!isEOL(a,o-1);)o--;for(;c<a.length&&!isEOL(a,c);)c++}for(var p=format(a,{offset:o,length:c-o},n.formattingOptions),m=p.length-1;m>=0;m--){var v=p[m];a=Nh(a,v),o=Math.min(o,v.offset),c=Math.max(c,v.offset+v.length),c+=v.content.length-v.length}var y=e.length-(a.length-c)-o;return[{offset:o,length:y,content:a.substring(o,c)}]}function Nh(e,r){return e.substring(0,r.offset)+r.content+e.substring(r.offset+r.length)}function d1(e,r){return`\r
|
|
254
|
+
`.indexOf(e.charAt(r))!==-1}var Js=vc,p1=Xy,r0=Qy,h1=Zy,v1=_y,n0=Lh,i0=Rh,a0=Yd,g1=gc,m1=e0;function y1(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function o0(e,r,n){return Ky(e,r,n)}function b1(e,r,n,a){return edit.setProperty(e,r,n,a)}function x1(e,r){for(var n=r.length-1;n>=0;n--)e=edit.applyEdit(e,r[n]);return e}function Cu(e,r){if(e===r)return!0;if(e==null||r===null||r===void 0||typeof e!=typeof r||typeof e!="object"||Array.isArray(e)!==Array.isArray(r))return!1;var n,a;if(Array.isArray(e)){if(e.length!==r.length)return!1;for(n=0;n<e.length;n++)if(!Cu(e[n],r[n]))return!1}else{var o=[];for(a in e)o.push(a);o.sort();var c=[];for(a in r)c.push(a);if(c.sort(),!Cu(o,c))return!1;for(n=0;n<o.length;n++)if(!Cu(e[o[n]],r[o[n]]))return!1}return!0}function Zn(e){return typeof e=="number"}function ya(e){return typeof e!="undefined"}function Xi(e){return typeof e=="boolean"}function s0(e){return typeof e=="string"}var Dh;(function(e){function r(n){return typeof n=="string"}e.is=r})(Dh||(Dh={}));var Jd;(function(e){function r(n){return typeof n=="string"}e.is=r})(Jd||(Jd={}));var Bh;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(Bh||(Bh={}));var mc;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(mc||(mc={}));var hi;(function(e){function r(a,o){return a===Number.MAX_VALUE&&(a=mc.MAX_VALUE),o===Number.MAX_VALUE&&(o=mc.MAX_VALUE),{line:a,character:o}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&Ee.uinteger(o.line)&&Ee.uinteger(o.character)}e.is=n})(hi||(hi={}));var ar;(function(e){function r(a,o,c,p){if(Ee.uinteger(a)&&Ee.uinteger(o)&&Ee.uinteger(c)&&Ee.uinteger(p))return{start:hi.create(a,o),end:hi.create(c,p)};if(hi.is(a)&&hi.is(o))return{start:a,end:o};throw new Error("Range#create called with invalid arguments[".concat(a,", ").concat(o,", ").concat(c,", ").concat(p,"]"))}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&hi.is(o.start)&&hi.is(o.end)}e.is=n})(ar||(ar={}));var Xs;(function(e){function r(a,o){return{uri:a,range:o}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&ar.is(o.range)&&(Ee.string(o.uri)||Ee.undefined(o.uri))}e.is=n})(Xs||(Xs={}));var jh;(function(e){function r(a,o,c,p){return{targetUri:a,targetRange:o,targetSelectionRange:c,originSelectionRange:p}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&ar.is(o.targetRange)&&Ee.string(o.targetUri)&&ar.is(o.targetSelectionRange)&&(ar.is(o.originSelectionRange)||Ee.undefined(o.originSelectionRange))}e.is=n})(jh||(jh={}));var Xd;(function(e){function r(a,o,c,p){return{red:a,green:o,blue:c,alpha:p}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&Ee.numberRange(o.red,0,1)&&Ee.numberRange(o.green,0,1)&&Ee.numberRange(o.blue,0,1)&&Ee.numberRange(o.alpha,0,1)}e.is=n})(Xd||(Xd={}));var Vh;(function(e){function r(a,o){return{range:a,color:o}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&ar.is(o.range)&&Xd.is(o.color)}e.is=n})(Vh||(Vh={}));var Uh;(function(e){function r(a,o,c){return{label:a,textEdit:o,additionalTextEdits:c}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&Ee.string(o.label)&&(Ee.undefined(o.textEdit)||vi.is(o))&&(Ee.undefined(o.additionalTextEdits)||Ee.typedArray(o.additionalTextEdits,vi.is))}e.is=n})(Uh||(Uh={}));var Eu;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Eu||(Eu={}));var Wh;(function(e){function r(a,o,c,p,m,v){var y={startLine:a,endLine:o};return Ee.defined(c)&&(y.startCharacter=c),Ee.defined(p)&&(y.endCharacter=p),Ee.defined(m)&&(y.kind=m),Ee.defined(v)&&(y.collapsedText=v),y}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&Ee.uinteger(o.startLine)&&Ee.uinteger(o.startLine)&&(Ee.undefined(o.startCharacter)||Ee.uinteger(o.startCharacter))&&(Ee.undefined(o.endCharacter)||Ee.uinteger(o.endCharacter))&&(Ee.undefined(o.kind)||Ee.string(o.kind))}e.is=n})(Wh||(Wh={}));var Qd;(function(e){function r(a,o){return{location:a,message:o}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Xs.is(o.location)&&Ee.string(o.message)}e.is=n})(Qd||(Qd={}));var $t;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})($t||($t={}));var Hh;(function(e){e.Unnecessary=1,e.Deprecated=2})(Hh||(Hh={}));var zh;(function(e){function r(n){var a=n;return Ee.objectLiteral(a)&&Ee.string(a.href)}e.is=r})(zh||(zh={}));var ba;(function(e){function r(a,o,c,p,m,v){var y={range:a,message:o};return Ee.defined(c)&&(y.severity=c),Ee.defined(p)&&(y.code=p),Ee.defined(m)&&(y.source=m),Ee.defined(v)&&(y.relatedInformation=v),y}e.create=r;function n(a){var o,c=a;return Ee.defined(c)&&ar.is(c.range)&&Ee.string(c.message)&&(Ee.number(c.severity)||Ee.undefined(c.severity))&&(Ee.integer(c.code)||Ee.string(c.code)||Ee.undefined(c.code))&&(Ee.undefined(c.codeDescription)||Ee.string((o=c.codeDescription)===null||o===void 0?void 0:o.href))&&(Ee.string(c.source)||Ee.undefined(c.source))&&(Ee.undefined(c.relatedInformation)||Ee.typedArray(c.relatedInformation,Qd.is))}e.is=n})(ba||(ba={}));var Qs;(function(e){function r(a,o){for(var c=[],p=2;p<arguments.length;p++)c[p-2]=arguments[p];var m={title:a,command:o};return Ee.defined(c)&&c.length>0&&(m.arguments=c),m}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.string(o.title)&&Ee.string(o.command)}e.is=n})(Qs||(Qs={}));var vi;(function(e){function r(c,p){return{range:c,newText:p}}e.replace=r;function n(c,p){return{range:{start:c,end:c},newText:p}}e.insert=n;function a(c){return{range:c,newText:""}}e.del=a;function o(c){var p=c;return Ee.objectLiteral(p)&&Ee.string(p.newText)&&ar.is(p.range)}e.is=o})(vi||(vi={}));var Zs;(function(e){function r(a,o,c){var p={label:a};return o!==void 0&&(p.needsConfirmation=o),c!==void 0&&(p.description=c),p}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&Ee.string(o.label)&&(Ee.boolean(o.needsConfirmation)||o.needsConfirmation===void 0)&&(Ee.string(o.description)||o.description===void 0)}e.is=n})(Zs||(Zs={}));var Sn;(function(e){function r(n){var a=n;return Ee.string(a)}e.is=r})(Sn||(Sn={}));var Za;(function(e){function r(c,p,m){return{range:c,newText:p,annotationId:m}}e.replace=r;function n(c,p,m){return{range:{start:c,end:c},newText:p,annotationId:m}}e.insert=n;function a(c,p){return{range:c,newText:"",annotationId:p}}e.del=a;function o(c){var p=c;return vi.is(p)&&(Zs.is(p.annotationId)||Sn.is(p.annotationId))}e.is=o})(Za||(Za={}));var yc;(function(e){function r(a,o){return{textDocument:a,edits:o}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&xc.is(o.textDocument)&&Array.isArray(o.edits)}e.is=n})(yc||(yc={}));var Ou;(function(e){function r(a,o,c){var p={kind:"create",uri:a};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(p.options=o),c!==void 0&&(p.annotationId=c),p}e.create=r;function n(a){var o=a;return o&&o.kind==="create"&&Ee.string(o.uri)&&(o.options===void 0||(o.options.overwrite===void 0||Ee.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Ee.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Ou||(Ou={}));var Tu;(function(e){function r(a,o,c,p){var m={kind:"rename",oldUri:a,newUri:o};return c!==void 0&&(c.overwrite!==void 0||c.ignoreIfExists!==void 0)&&(m.options=c),p!==void 0&&(m.annotationId=p),m}e.create=r;function n(a){var o=a;return o&&o.kind==="rename"&&Ee.string(o.oldUri)&&Ee.string(o.newUri)&&(o.options===void 0||(o.options.overwrite===void 0||Ee.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Ee.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Tu||(Tu={}));var Pu;(function(e){function r(a,o,c){var p={kind:"delete",uri:a};return o!==void 0&&(o.recursive!==void 0||o.ignoreIfNotExists!==void 0)&&(p.options=o),c!==void 0&&(p.annotationId=c),p}e.create=r;function n(a){var o=a;return o&&o.kind==="delete"&&Ee.string(o.uri)&&(o.options===void 0||(o.options.recursive===void 0||Ee.boolean(o.options.recursive))&&(o.options.ignoreIfNotExists===void 0||Ee.boolean(o.options.ignoreIfNotExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Pu||(Pu={}));var Zd;(function(e){function r(n){var a=n;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(o){return Ee.string(o.kind)?Ou.is(o)||Tu.is(o)||Pu.is(o):yc.is(o)}))}e.is=r})(Zd||(Zd={}));var bc=function(){function e(r,n){this.edits=r,this.changeAnnotations=n}return e.prototype.insert=function(r,n,a){var o,c;if(a===void 0?o=vi.insert(r,n):Sn.is(a)?(c=a,o=Za.insert(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(a),o=Za.insert(r,n,c)),this.edits.push(o),c!==void 0)return c},e.prototype.replace=function(r,n,a){var o,c;if(a===void 0?o=vi.replace(r,n):Sn.is(a)?(c=a,o=Za.replace(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(a),o=Za.replace(r,n,c)),this.edits.push(o),c!==void 0)return c},e.prototype.delete=function(r,n){var a,o;if(n===void 0?a=vi.del(r):Sn.is(n)?(o=n,a=Za.del(r,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),a=Za.del(r,o)),this.edits.push(a),o!==void 0)return o},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Gh=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(r,n){var a;if(Sn.is(r)?a=r:(a=this.nextId(),n=r),this._annotations[a]!==void 0)throw new Error("Id ".concat(a," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(a));return this._annotations[a]=n,this._size++,a},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),S1=function(){function e(r){var n=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new Gh(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(yc.is(a)){var o=new bc(a.edits,n._changeAnnotations);n._textEditChanges[a.textDocument.uri]=o}})):r.changes&&Object.keys(r.changes).forEach(function(a){var o=new bc(r.changes[a]);n._textEditChanges[a]=o})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(r){if(xc.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:r.uri,version:r.version},a=this._textEditChanges[n.uri];if(!a){var o=[],c={textDocument:n,edits:o};this._workspaceEdit.documentChanges.push(c),a=new bc(o,this._changeAnnotations),this._textEditChanges[n.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var o=[];this._workspaceEdit.changes[r]=o,a=new bc(o),this._textEditChanges[r]=a}return a}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Gh,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;Zs.is(n)||Sn.is(n)?o=n:a=n;var c,p;if(o===void 0?c=Ou.create(r,a):(p=Sn.is(o)?o:this._changeAnnotations.manage(o),c=Ou.create(r,a,p)),this._workspaceEdit.documentChanges.push(c),p!==void 0)return p},e.prototype.renameFile=function(r,n,a,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var c;Zs.is(a)||Sn.is(a)?c=a:o=a;var p,m;if(c===void 0?p=Tu.create(r,n,o):(m=Sn.is(c)?c:this._changeAnnotations.manage(c),p=Tu.create(r,n,o,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},e.prototype.deleteFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;Zs.is(n)||Sn.is(n)?o=n:a=n;var c,p;if(o===void 0?c=Pu.create(r,a):(p=Sn.is(o)?o:this._changeAnnotations.manage(o),c=Pu.create(r,a,p)),this._workspaceEdit.documentChanges.push(c),p!==void 0)return p},e}(),$h;(function(e){function r(a){return{uri:a}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.string(o.uri)}e.is=n})($h||($h={}));var Kh;(function(e){function r(a,o){return{uri:a,version:o}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.string(o.uri)&&Ee.integer(o.version)}e.is=n})(Kh||(Kh={}));var xc;(function(e){function r(a,o){return{uri:a,version:o}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.string(o.uri)&&(o.version===null||Ee.integer(o.version))}e.is=n})(xc||(xc={}));var Yh;(function(e){function r(a,o,c,p){return{uri:a,languageId:o,version:c,text:p}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.string(o.uri)&&Ee.string(o.languageId)&&Ee.integer(o.version)&&Ee.string(o.text)}e.is=n})(Yh||(Yh={}));var zo;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(n){var a=n;return a===e.PlainText||a===e.Markdown}e.is=r})(zo||(zo={}));var Iu;(function(e){function r(n){var a=n;return Ee.objectLiteral(n)&&zo.is(a.kind)&&Ee.string(a.value)}e.is=r})(Iu||(Iu={}));var _n;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(_n||(_n={}));var Jr;(function(e){e.PlainText=1,e.Snippet=2})(Jr||(Jr={}));var Jh;(function(e){e.Deprecated=1})(Jh||(Jh={}));var Xh;(function(e){function r(a,o,c){return{newText:a,insert:o,replace:c}}e.create=r;function n(a){var o=a;return o&&Ee.string(o.newText)&&ar.is(o.insert)&&ar.is(o.replace)}e.is=n})(Xh||(Xh={}));var Qh;(function(e){e.asIs=1,e.adjustIndentation=2})(Qh||(Qh={}));var Zh;(function(e){function r(n){var a=n;return a&&(Ee.string(a.detail)||a.detail===void 0)&&(Ee.string(a.description)||a.description===void 0)}e.is=r})(Zh||(Zh={}));var _d;(function(e){function r(n){return{label:n}}e.create=r})(_d||(_d={}));var _h;(function(e){function r(n,a){return{items:n||[],isIncomplete:!!a}}e.create=r})(_h||(_h={}));var Sc;(function(e){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function n(a){var o=a;return Ee.string(o)||Ee.objectLiteral(o)&&Ee.string(o.language)&&Ee.string(o.value)}e.is=n})(Sc||(Sc={}));var qh;(function(e){function r(n){var a=n;return!!a&&Ee.objectLiteral(a)&&(Iu.is(a.contents)||Sc.is(a.contents)||Ee.typedArray(a.contents,Sc.is))&&(n.range===void 0||ar.is(n.range))}e.is=r})(qh||(qh={}));var ev;(function(e){function r(n,a){return a?{label:n,documentation:a}:{label:n}}e.create=r})(ev||(ev={}));var tv;(function(e){function r(n,a){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];var p={label:n};return Ee.defined(a)&&(p.documentation=a),Ee.defined(o)?p.parameters=o:p.parameters=[],p}e.create=r})(tv||(tv={}));var rv;(function(e){e.Text=1,e.Read=2,e.Write=3})(rv||(rv={}));var nv;(function(e){function r(n,a){var o={range:n};return Ee.number(a)&&(o.kind=a),o}e.create=r})(nv||(nv={}));var Qi;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Qi||(Qi={}));var iv;(function(e){e.Deprecated=1})(iv||(iv={}));var av;(function(e){function r(n,a,o,c,p){var m={name:n,kind:a,location:{uri:c,range:o}};return p&&(m.containerName=p),m}e.create=r})(av||(av={}));var ov;(function(e){function r(n,a,o,c){return c!==void 0?{name:n,kind:a,location:{uri:o,range:c}}:{name:n,kind:a,location:{uri:o}}}e.create=r})(ov||(ov={}));var sv;(function(e){function r(a,o,c,p,m,v){var y={name:a,detail:o,kind:c,range:p,selectionRange:m};return v!==void 0&&(y.children=v),y}e.create=r;function n(a){var o=a;return o&&Ee.string(o.name)&&Ee.number(o.kind)&&ar.is(o.range)&&ar.is(o.selectionRange)&&(o.detail===void 0||Ee.string(o.detail))&&(o.deprecated===void 0||Ee.boolean(o.deprecated))&&(o.children===void 0||Array.isArray(o.children))&&(o.tags===void 0||Array.isArray(o.tags))}e.is=n})(sv||(sv={}));var lv;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(lv||(lv={}));var wc;(function(e){e.Invoked=1,e.Automatic=2})(wc||(wc={}));var uv;(function(e){function r(a,o,c){var p={diagnostics:a};return o!=null&&(p.only=o),c!=null&&(p.triggerKind=c),p}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.typedArray(o.diagnostics,ba.is)&&(o.only===void 0||Ee.typedArray(o.only,Ee.string))&&(o.triggerKind===void 0||o.triggerKind===wc.Invoked||o.triggerKind===wc.Automatic)}e.is=n})(uv||(uv={}));var fv;(function(e){function r(a,o,c){var p={title:a},m=!0;return typeof o=="string"?(m=!1,p.kind=o):Qs.is(o)?p.command=o:p.edit=o,m&&c!==void 0&&(p.kind=c),p}e.create=r;function n(a){var o=a;return o&&Ee.string(o.title)&&(o.diagnostics===void 0||Ee.typedArray(o.diagnostics,ba.is))&&(o.kind===void 0||Ee.string(o.kind))&&(o.edit!==void 0||o.command!==void 0)&&(o.command===void 0||Qs.is(o.command))&&(o.isPreferred===void 0||Ee.boolean(o.isPreferred))&&(o.edit===void 0||Zd.is(o.edit))}e.is=n})(fv||(fv={}));var cv;(function(e){function r(a,o){var c={range:a};return Ee.defined(o)&&(c.data=o),c}e.create=r;function n(a){var o=a;return Ee.defined(o)&&ar.is(o.range)&&(Ee.undefined(o.command)||Qs.is(o.command))}e.is=n})(cv||(cv={}));var dv;(function(e){function r(a,o){return{tabSize:a,insertSpaces:o}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&Ee.uinteger(o.tabSize)&&Ee.boolean(o.insertSpaces)}e.is=n})(dv||(dv={}));var pv;(function(e){function r(a,o,c){return{range:a,target:o,data:c}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&ar.is(o.range)&&(Ee.undefined(o.target)||Ee.string(o.target))}e.is=n})(pv||(pv={}));var Ac;(function(e){function r(a,o){return{range:a,parent:o}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&ar.is(o.range)&&(o.parent===void 0||e.is(o.parent))}e.is=n})(Ac||(Ac={}));var hv;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(hv||(hv={}));var vv;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(vv||(vv={}));var gv;(function(e){function r(n){var a=n;return Ee.objectLiteral(a)&&(a.resultId===void 0||typeof a.resultId=="string")&&Array.isArray(a.data)&&(a.data.length===0||typeof a.data[0]=="number")}e.is=r})(gv||(gv={}));var mv;(function(e){function r(a,o){return{range:a,text:o}}e.create=r;function n(a){var o=a;return o!=null&&ar.is(o.range)&&Ee.string(o.text)}e.is=n})(mv||(mv={}));var yv;(function(e){function r(a,o,c){return{range:a,variableName:o,caseSensitiveLookup:c}}e.create=r;function n(a){var o=a;return o!=null&&ar.is(o.range)&&Ee.boolean(o.caseSensitiveLookup)&&(Ee.string(o.variableName)||o.variableName===void 0)}e.is=n})(yv||(yv={}));var bv;(function(e){function r(a,o){return{range:a,expression:o}}e.create=r;function n(a){var o=a;return o!=null&&ar.is(o.range)&&(Ee.string(o.expression)||o.expression===void 0)}e.is=n})(bv||(bv={}));var xv;(function(e){function r(a,o){return{frameId:a,stoppedLocation:o}}e.create=r;function n(a){var o=a;return Ee.defined(o)&&ar.is(a.stoppedLocation)}e.is=n})(xv||(xv={}));var qd;(function(e){e.Type=1,e.Parameter=2;function r(n){return n===1||n===2}e.is=r})(qd||(qd={}));var ep;(function(e){function r(a){return{value:a}}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&(o.tooltip===void 0||Ee.string(o.tooltip)||Iu.is(o.tooltip))&&(o.location===void 0||Xs.is(o.location))&&(o.command===void 0||Qs.is(o.command))}e.is=n})(ep||(ep={}));var Sv;(function(e){function r(a,o,c){var p={position:a,label:o};return c!==void 0&&(p.kind=c),p}e.create=r;function n(a){var o=a;return Ee.objectLiteral(o)&&hi.is(o.position)&&(Ee.string(o.label)||Ee.typedArray(o.label,ep.is))&&(o.kind===void 0||qd.is(o.kind))&&o.textEdits===void 0||Ee.typedArray(o.textEdits,vi.is)&&(o.tooltip===void 0||Ee.string(o.tooltip)||Iu.is(o.tooltip))&&(o.paddingLeft===void 0||Ee.boolean(o.paddingLeft))&&(o.paddingRight===void 0||Ee.boolean(o.paddingRight))}e.is=n})(Sv||(Sv={}));var wv;(function(e){function r(n){var a=n;return Ee.objectLiteral(a)&&Jd.is(a.uri)&&Ee.string(a.name)}e.is=r})(wv||(wv={}));var w1=null,Av;(function(e){function r(c,p,m,v){return new l0(c,p,m,v)}e.create=r;function n(c){var p=c;return!!(Ee.defined(p)&&Ee.string(p.uri)&&(Ee.undefined(p.languageId)||Ee.string(p.languageId))&&Ee.uinteger(p.lineCount)&&Ee.func(p.getText)&&Ee.func(p.positionAt)&&Ee.func(p.offsetAt))}e.is=n;function a(c,p){for(var m=c.getText(),v=o(p,function($,te){var q=$.range.start.line-te.range.start.line;return q===0?$.range.start.character-te.range.start.character:q}),y=m.length,b=v.length-1;b>=0;b--){var I=v[b],R=c.offsetAt(I.range.start),B=c.offsetAt(I.range.end);if(B<=y)m=m.substring(0,R)+I.newText+m.substring(B,m.length);else throw new Error("Overlapping edit");y=R}return m}e.applyEdits=a;function o(c,p){if(c.length<=1)return c;var m=c.length/2|0,v=c.slice(0,m),y=c.slice(m);o(v,p),o(y,p);for(var b=0,I=0,R=0;b<v.length&&I<y.length;){var B=p(v[b],y[I]);B<=0?c[R++]=v[b++]:c[R++]=y[I++]}for(;b<v.length;)c[R++]=v[b++];for(;I<y.length;)c[R++]=y[I++];return c}})(Av||(Av={}));var l0=function(){function e(r,n,a,o){this._uri=r,this._languageId=n,this._version=a,this._content=o,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content},e.prototype.update=function(r,n){this._content=r.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],n=this._content,a=!0,o=0;o<n.length;o++){a&&(r.push(o),a=!1);var c=n.charAt(o);a=c==="\r"||c===`
|
|
255
|
+
`,c==="\r"&&o+1<n.length&&n.charAt(o+1)===`
|
|
256
|
+
`&&o++}a&&n.length>0&&r.push(n.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),a=0,o=n.length;if(o===0)return hi.create(0,r);for(;a<o;){var c=Math.floor((a+o)/2);n[c]>r?o=c:a=c+1}var p=a-1;return hi.create(p,r-n[p])},e.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var a=n[r.line],o=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,o),a)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),Ee;(function(e){var r=Object.prototype.toString;function n(B){return typeof B!="undefined"}e.defined=n;function a(B){return typeof B=="undefined"}e.undefined=a;function o(B){return B===!0||B===!1}e.boolean=o;function c(B){return r.call(B)==="[object String]"}e.string=c;function p(B){return r.call(B)==="[object Number]"}e.number=p;function m(B,$,te){return r.call(B)==="[object Number]"&&$<=B&&B<=te}e.numberRange=m;function v(B){return r.call(B)==="[object Number]"&&-2147483648<=B&&B<=2147483647}e.integer=v;function y(B){return r.call(B)==="[object Number]"&&0<=B&&B<=2147483647}e.uinteger=y;function b(B){return r.call(B)==="[object Function]"}e.func=b;function I(B){return B!==null&&typeof B=="object"}e.objectLiteral=I;function R(B,$){return Array.isArray(B)&&B.every($)}e.typedArray=R})(Ee||(Ee={}));class ku{constructor(r,n,a,o){this._uri=r,this._languageId=n,this._version=a,this._content=o,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(r){if(r){const n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content}update(r,n){for(let a of r)if(ku.isIncremental(a)){const o=Ev(a.range),c=this.offsetAt(o.start),p=this.offsetAt(o.end);this._content=this._content.substring(0,c)+a.text+this._content.substring(p,this._content.length);const m=Math.max(o.start.line,0),v=Math.max(o.end.line,0);let y=this._lineOffsets;const b=Cv(a.text,!1,c);if(v-m===b.length)for(let R=0,B=b.length;R<B;R++)y[R+m+1]=b[R];else b.length<1e4?y.splice(m+1,v-m,...b):this._lineOffsets=y=y.slice(0,m+1).concat(b,y.slice(v+1));const I=a.text.length-(p-c);if(I!==0)for(let R=m+1+b.length,B=y.length;R<B;R++)y[R]=y[R]+I}else if(ku.isFull(a))this._content=a.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Cv(this._content,!0)),this._lineOffsets}positionAt(r){r=Math.max(Math.min(r,this._content.length),0);let n=this.getLineOffsets(),a=0,o=n.length;if(o===0)return{line:0,character:r};for(;a<o;){let p=Math.floor((a+o)/2);n[p]>r?o=p:a=p+1}let c=a-1;return{line:c,character:r-n[c]}}offsetAt(r){let n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;let a=n[r.line],o=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,o),a)}get lineCount(){return this.getLineOffsets().length}static isIncremental(r){let n=r;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(r){let n=r;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}}var Cc;(function(e){function r(o,c,p,m){return new ku(o,c,p,m)}e.create=r;function n(o,c,p){if(o instanceof ku)return o.update(c,p),o;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function a(o,c){let p=o.getText(),m=tp(c.map(u0),(b,I)=>{let R=b.range.start.line-I.range.start.line;return R===0?b.range.start.character-I.range.start.character:R}),v=0;const y=[];for(const b of m){let I=o.offsetAt(b.range.start);if(I<v)throw new Error("Overlapping edit");I>v&&y.push(p.substring(v,I)),b.newText.length&&y.push(b.newText),v=o.offsetAt(b.range.end)}return y.push(p.substr(v)),y.join("")}e.applyEdits=a})(Cc||(Cc={}));function tp(e,r){if(e.length<=1)return e;const n=e.length/2|0,a=e.slice(0,n),o=e.slice(n);tp(a,r),tp(o,r);let c=0,p=0,m=0;for(;c<a.length&&p<o.length;)r(a[c],o[p])<=0?e[m++]=a[c++]:e[m++]=o[p++];for(;c<a.length;)e[m++]=a[c++];for(;p<o.length;)e[m++]=o[p++];return e}function Cv(e,r,n=0){const a=r?[n]:[];for(let o=0;o<e.length;o++){let c=e.charCodeAt(o);(c===13||c===10)&&(c===13&&o+1<e.length&&e.charCodeAt(o+1)===10&&o++,a.push(n+o+1))}return a}function Ev(e){const r=e.start,n=e.end;return r.line>n.line||r.line===n.line&&r.character>n.character?{start:n,end:r}:e}function u0(e){const r=Ev(e.range);return r!==e.range?{newText:e.newText,range:r}:e}var er;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(er||(er={}));var Ov;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[zo.Markdown,zo.PlainText],commitCharactersSupport:!0}}}}})(Ov||(Ov={}));var Go=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var c in o)o.hasOwnProperty(c)&&(a[c]=o[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),f0={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},$o=function(){function e(r,n,a){this.offset=n,this.length=a,this.parent=r}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),c0=function(e){Go(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="null",o.value=null,o}return r}($o),Tv=function(e){Go(r,e);function r(n,a,o){var c=e.call(this,n,o)||this;return c.type="boolean",c.value=a,c}return r}($o),d0=function(e){Go(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="array",o.items=[],o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}($o),p0=function(e){Go(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="number",o.isInteger=!0,o.value=Number.NaN,o}return r}($o),Pv=function(e){Go(r,e);function r(n,a,o){var c=e.call(this,n,a,o)||this;return c.type="string",c.value="",c}return r}($o),h0=function(e){Go(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="property",o.colonOffset=-1,o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}($o),v0=function(e){Go(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="object",o.properties=[],o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}($o);function Nn(e){return Xi(e)?e?{}:{not:{}}:e}var Iv;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Iv||(Iv={}));var g0=function(){function e(r,n){r===void 0&&(r=-1),n===void 0&&(n=null),this.focusOffset=r,this.exclude=n,this.schemas=[]}return e.prototype.add=function(r){this.schemas.push(r)},e.prototype.merge=function(r){var n;(n=this.schemas).push.apply(n,r.schemas)},e.prototype.include=function(r){return(this.focusOffset===-1||kv(r,this.focusOffset))&&r!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),rp=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.add=function(r){},e.prototype.merge=function(r){},e.prototype.include=function(r){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Dn=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(r){for(var n=0,a=r;n<a.length;n++){var o=a[n];this.merge(o)}},e.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},e.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var n=0,a=this.problems;n<a.length;n++){var o=a[n];o.code===er.EnumValueMismatch&&(o.message="Value is not accepted. Valid values: "+this.enumValues.map(function(c){return JSON.stringify(c)}).join(", ")+".")}}},e.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},e.prototype.compare=function(r){var n=this.hasProblems();return n!==r.hasProblems()?n?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},e}();function m0(e,r){return r===void 0&&(r=[]),new Fv(e,r,[])}function _a(e){return a0(e)}function np(e){return i0(e)}function kv(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}var Fv=function(){function e(r,n,a){n===void 0&&(n=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=n,this.comments=a}return e.prototype.getNodeFromOffset=function(r,n){if(n===void 0&&(n=!1),this.root)return n0(this.root,r,n)},e.prototype.visit=function(r){if(this.root){var n=function(a){var o=r(a),c=a.children;if(Array.isArray(c))for(var p=0;p<c.length&&o;p++)o=n(c[p]);return o};n(this.root)}},e.prototype.validate=function(r,n){if(this.root&&n){var a=new Dn;return vn(this.root,n,a,rp.instance),a.problems.map(function(o){var c=ar.create(r.positionAt(o.location.offset),r.positionAt(o.location.offset+o.location.length));return ba.create(c,o.message,o.severity,o.code)})}return null},e.prototype.getMatchingSchemas=function(r,n,a){n===void 0&&(n=-1),a===void 0&&(a=null);var o=new g0(n,a);return this.root&&r&&vn(this.root,r,new Dn,o),o.schemas},e}();function vn(e,r,n,a){if(!e||!a.include(e))return;switch(e.type){case"object":v(e,r,n,a);break;case"array":m(e,r,n,a);break;case"string":p(e,r,n,a);break;case"number":c(e,r,n,a);break;case"property":return vn(e.valueNode,r,n,a)}o(),a.add({node:e,schema:r});function o(){function y(We){return e.type===We||We==="integer"&&e.type==="number"&&e.isInteger||r.nullable&&e.value===null}if(Array.isArray(r.type)?r.type.some(y)||n.problems.push({location:{offset:e.offset,length:e.length},severity:$t.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(y(r.type)||n.problems.push({location:{offset:e.offset,length:e.length},severity:$t.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var b=0,I=r.allOf;b<I.length;b++){var R=I[b];vn(e,Nn(R),n,a)}var B=Nn(r.not);if(B){var $=new Dn,te=a.newSub();vn(e,B,$,te),$.hasProblems()||n.problems.push({location:{offset:e.offset,length:e.length},severity:$t.Warning,message:"Matches a schema that is not allowed."});for(var q=0,se=te.schemas;q<se.length;q++){var ie=se[q];ie.inverted=!ie.inverted,a.add(ie)}}var pe=function(We,Ke){for(var At=[],qe=null,_t=0,sr=We;_t<sr.length;_t++){var Ut=sr[_t],lr=Nn(Ut),Kt=new Dn,ur=a.newSub();if(vn(e,lr,Kt,ur),Kt.hasProblems()||At.push(lr),!qe)qe={schema:lr,validationResult:Kt,matchingSchemas:ur};else if(!Ke&&!Kt.hasProblems()&&!qe.validationResult.hasProblems())qe.matchingSchemas.merge(ur),qe.validationResult.propertiesMatches+=Kt.propertiesMatches,qe.validationResult.propertiesValueMatches+=Kt.propertiesValueMatches;else{var xr=Kt.compare(qe.validationResult);xr>0?qe={schema:lr,validationResult:Kt,matchingSchemas:ur}:xr===0&&(qe.matchingSchemas.merge(ur),qe.validationResult.mergeEnumValues(Kt))}}return At.length>1&&Ke&&n.problems.push({location:{offset:e.offset,length:1},severity:$t.Warning,message:"Matches multiple schemas when only one must validate."}),qe!==null&&(n.merge(qe.validationResult),n.propertiesMatches+=qe.validationResult.propertiesMatches,n.propertiesValueMatches+=qe.validationResult.propertiesValueMatches,a.merge(qe.matchingSchemas)),At.length};Array.isArray(r.anyOf)&&pe(r.anyOf,!1),Array.isArray(r.oneOf)&&pe(r.oneOf,!0);var ve=function(We){var Ke=new Dn,At=a.newSub();vn(e,Nn(We),Ke,At),n.merge(Ke),n.propertiesMatches+=Ke.propertiesMatches,n.propertiesValueMatches+=Ke.propertiesValueMatches,a.merge(At)},ge=function(We,Ke,At){var qe=Nn(We),_t=new Dn,sr=a.newSub();vn(e,qe,_t,sr),a.merge(sr),_t.hasProblems()?At&&ve(At):Ke&&ve(Ke)},Ce=Nn(r.if);if(Ce&&ge(Ce,Nn(r.then),Nn(r.else)),Array.isArray(r.enum)){for(var we=_a(e),xe=!1,Ae=0,Fe=r.enum;Ae<Fe.length;Ae++){var Le=Fe[Ae];if(Cu(we,Le)){xe=!0;break}}n.enumValues=r.enum,n.enumValueMatch=xe,xe||n.problems.push({location:{offset:e.offset,length:e.length},severity:$t.Warning,code:er.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(We){return JSON.stringify(We)}).join(", ")+"."})}if(ya(r.const)){var we=_a(e);Cu(we,r.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:e.offset,length:e.length},severity:$t.Warning,code:er.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),n.enumValueMatch=!1),n.enumValues=[r.const]}r.deprecationMessage&&e.parent&&n.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:$t.Warning,message:r.deprecationMessage})}function c(y,b,I,R){var B=y.value;Zn(b.multipleOf)&&B%b.multipleOf!==0&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Value is not divisible by "+b.multipleOf+"."});function $(ve,ge){if(Zn(ge))return ge;if(Xi(ge)&&ge)return ve}function te(ve,ge){if(!Xi(ge)||!ge)return ve}var q=$(b.minimum,b.exclusiveMinimum);Zn(q)&&B<=q&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Value is below the exclusive minimum of "+q+"."});var se=$(b.maximum,b.exclusiveMaximum);Zn(se)&&B>=se&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Value is above the exclusive maximum of "+se+"."});var ie=te(b.minimum,b.exclusiveMinimum);Zn(ie)&&B<ie&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Value is below the minimum of "+ie+"."});var pe=te(b.maximum,b.exclusiveMaximum);Zn(pe)&&B>pe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Value is above the maximum of "+pe+"."})}function p(y,b,I,R){if(Zn(b.minLength)&&y.value.length<b.minLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"String is shorter than the minimum length of "+b.minLength+"."}),Zn(b.maxLength)&&y.value.length>b.maxLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"String is longer than the maximum length of "+b.maxLength+"."}),s0(b.pattern)){var B=new RegExp(b.pattern);B.test(y.value)||I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:b.patternErrorMessage||b.errorMessage||'String does not match the pattern of "'+b.pattern+'".'})}if(b.format)switch(b.format){case"uri":case"uri-reference":{var $=void 0;if(!y.value)$="URI expected.";else{var te=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(y.value);te?!te[2]&&b.format==="uri"&&($="URI with a scheme is expected."):$="URI is expected."}$&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:b.patternErrorMessage||b.errorMessage||"String is not a URI: "+$})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var q=f0[b.format];(!y.value||!q.pattern.exec(y.value))&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:b.patternErrorMessage||b.errorMessage||q.errorMessage});break;default:}}function m(y,b,I,R){if(Array.isArray(b.items)){for(var B=b.items,$=0;$<B.length;$++){var te=B[$],q=Nn(te),se=new Dn,ie=y.items[$];ie?(vn(ie,q,se,R),I.mergePropertyMatch(se)):y.items.length>=B.length&&I.propertiesValueMatches++}if(y.items.length>B.length)if(typeof b.additionalItems=="object")for(var pe=B.length;pe<y.items.length;pe++){var se=new Dn;vn(y.items[pe],b.additionalItems,se,R),I.mergePropertyMatch(se)}else b.additionalItems===!1&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Array has too many items according to schema. Expected "+B.length+" or fewer."})}else{var ve=Nn(b.items);if(ve)for(var ge=0,Ce=y.items;ge<Ce.length;ge++){var ie=Ce[ge],se=new Dn;vn(ie,ve,se,R),I.mergePropertyMatch(se)}}var we=Nn(b.contains);if(we){var xe=y.items.some(function(Le){var We=new Dn;return vn(Le,we,We,rp.instance),!We.hasProblems()});xe||I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:b.errorMessage||"Array does not contain required item."})}if(Zn(b.minItems)&&y.items.length<b.minItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Array has too few items. Expected "+b.minItems+" or more."}),Zn(b.maxItems)&&y.items.length>b.maxItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Array has too many items. Expected "+b.maxItems+" or fewer."}),b.uniqueItems===!0){var Ae=_a(y),Fe=Ae.some(function(Le,We){return We!==Ae.lastIndexOf(Le)});Fe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Array has duplicate items."})}}function v(y,b,I,R){for(var B=Object.create(null),$=[],te=0,q=y.properties;te<q.length;te++){var se=q[te],ie=se.keyNode.value;B[ie]=se.valueNode,$.push(ie)}if(Array.isArray(b.required))for(var pe=0,ve=b.required;pe<ve.length;pe++){var ge=ve[pe];if(!B[ge]){var Ce=y.parent&&y.parent.type==="property"&&y.parent.keyNode,we=Ce?{offset:Ce.offset,length:Ce.length}:{offset:y.offset,length:1};I.problems.push({location:we,severity:$t.Warning,message:'Missing property "'+ge+'".'})}}var xe=function(Tn){for(var Yo=$.indexOf(Tn);Yo>=0;)$.splice(Yo,1),Yo=$.indexOf(Tn)};if(b.properties)for(var Ae=0,Fe=Object.keys(b.properties);Ae<Fe.length;Ae++){var ge=Fe[Ae];xe(ge);var Le=b.properties[ge],We=B[ge];if(We)if(Xi(Le))if(Le)I.propertiesMatches++,I.propertiesValueMatches++;else{var se=We.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:$t.Warning,message:b.errorMessage||"Property "+ge+" is not allowed."})}else{var Ke=new Dn;vn(We,Le,Ke,R),I.mergePropertyMatch(Ke)}}if(b.patternProperties)for(var At=0,qe=Object.keys(b.patternProperties);At<qe.length;At++)for(var _t=qe[At],sr=new RegExp(_t),Ut=0,lr=$.slice(0);Ut<lr.length;Ut++){var ge=lr[Ut];if(sr.test(ge)){xe(ge);var We=B[ge];if(We){var Le=b.patternProperties[_t];if(Xi(Le))if(Le)I.propertiesMatches++,I.propertiesValueMatches++;else{var se=We.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:$t.Warning,message:b.errorMessage||"Property "+ge+" is not allowed."})}else{var Ke=new Dn;vn(We,Le,Ke,R),I.mergePropertyMatch(Ke)}}}}if(typeof b.additionalProperties=="object")for(var Kt=0,ur=$;Kt<ur.length;Kt++){var ge=ur[Kt],We=B[ge];if(We){var Ke=new Dn;vn(We,b.additionalProperties,Ke,R),I.mergePropertyMatch(Ke)}}else if(b.additionalProperties===!1&&$.length>0)for(var xr=0,zt=$;xr<zt.length;xr++){var ge=zt[xr],We=B[ge];if(We){var se=We.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:$t.Warning,message:b.errorMessage||"Property "+ge+" is not allowed."})}}if(Zn(b.maxProperties)&&y.properties.length>b.maxProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Object has more properties than limit of "+b.maxProperties+"."}),Zn(b.minProperties)&&y.properties.length<b.minProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Object has fewer properties than the required number of "+b.minProperties}),b.dependencies)for(var ct=0,Et=Object.keys(b.dependencies);ct<Et.length;ct++){var ie=Et[ct],Jt=B[ie];if(Jt){var Gt=b.dependencies[ie];if(Array.isArray(Gt))for(var Yt=0,Xr=Gt;Yt<Xr.length;Yt++){var Bn=Xr[Yt];B[Bn]?I.propertiesValueMatches++:I.problems.push({location:{offset:y.offset,length:y.length},severity:$t.Warning,message:"Object is missing property "+Bn+" required by property {$key}."})}else{var Le=Nn(Gt);if(Le){var Ke=new Dn;vn(y,Le,Ke,R),I.mergePropertyMatch(Ke)}}}}var gi=Nn(b.propertyNames);if(gi)for(var Dr=0,sn=y.properties;Dr<sn.length;Dr++){var Ko=sn[Dr],ie=Ko.keyNode;ie&&vn(ie,gi,I,rp.instance)}}}function y0(e,r){var n=[],a=-1,o=e.getText(),c=Js(o,!1),p=r&&r.collectComments?[]:void 0;function m(){for(;;){var Ce=c.scan();switch(I(),Ce){case 12:case 13:Array.isArray(p)&&p.push(ar.create(e.positionAt(c.getTokenOffset()),e.positionAt(c.getTokenOffset()+c.getTokenLength())));break;case 15:case 14:break;default:return Ce}}}function v(Ce){return c.getToken()===Ce?(m(),!0):!1}function y(Ce,we,xe,Ae,Fe){if(Fe===void 0&&(Fe=$t.Error),n.length===0||xe!==a){var Le=ar.create(e.positionAt(xe),e.positionAt(Ae));n.push(ba.create(Le,Ce,Fe,we,e.languageId)),a=xe}}function b(Ce,we,xe,Ae,Fe){xe===void 0&&(xe=null),Ae===void 0&&(Ae=[]),Fe===void 0&&(Fe=[]);var Le=c.getTokenOffset(),We=c.getTokenOffset()+c.getTokenLength();if(Le===We&&Le>0){for(Le--;Le>0&&/\s/.test(o.charAt(Le));)Le--;We=Le+1}if(y(Ce,we,Le,We),xe&&R(xe,!1),Ae.length+Fe.length>0)for(var Ke=c.getToken();Ke!==17;){if(Ae.indexOf(Ke)!==-1){m();break}else if(Fe.indexOf(Ke)!==-1)break;Ke=m()}return xe}function I(){switch(c.getTokenError()){case 4:return b("Invalid unicode sequence in string.",er.InvalidUnicode),!0;case 5:return b("Invalid escape character in string.",er.InvalidEscapeCharacter),!0;case 3:return b("Unexpected end of number.",er.UnexpectedEndOfNumber),!0;case 1:return b("Unexpected end of comment.",er.UnexpectedEndOfComment),!0;case 2:return b("Unexpected end of string.",er.UnexpectedEndOfString),!0;case 6:return b("Invalid characters in string. Control characters must be escaped.",er.InvalidCharacter),!0}return!1}function R(Ce,we){return Ce.length=c.getTokenOffset()+c.getTokenLength()-Ce.offset,we&&m(),Ce}function B(Ce){if(c.getToken()!==3)return null;var we=new d0(Ce,c.getTokenOffset());m();for(var xe=0,Ae=!1;c.getToken()!==4&&c.getToken()!==17;){if(c.getToken()===5){Ae||b("Value expected",er.ValueExpected);var Fe=c.getTokenOffset();if(m(),c.getToken()===4){Ae&&y("Trailing comma",er.TrailingComma,Fe,Fe+1);continue}}else Ae&&b("Expected comma",er.CommaExpected);var Le=pe(we,xe++);Le?we.items.push(Le):b("Value expected",er.ValueExpected,null,[],[4,5]),Ae=!0}return c.getToken()!==4?b("Expected comma or closing bracket",er.CommaOrCloseBacketExpected,we):R(we,!0)}function $(Ce,we){var xe=new h0(Ce,c.getTokenOffset()),Ae=q(xe);if(!Ae)if(c.getToken()===16){b("Property keys must be doublequoted",er.Undefined);var Fe=new Pv(xe,c.getTokenOffset(),c.getTokenLength());Fe.value=c.getTokenValue(),Ae=Fe,m()}else return null;xe.keyNode=Ae;var Le=we[Ae.value];if(Le?(y("Duplicate object key",er.DuplicateKey,xe.keyNode.offset,xe.keyNode.offset+xe.keyNode.length,$t.Warning),typeof Le=="object"&&y("DuplicateKeyWarning",er.DuplicateKey,Le.keyNode.offset,Le.keyNode.offset+Le.keyNode.length,$t.Warning),we[Ae.value]=!0):we[Ae.value]=xe,c.getToken()===6)xe.colonOffset=c.getTokenOffset(),m();else if(b("Colon expected",er.ColonExpected),c.getToken()===10&&e.positionAt(Ae.offset+Ae.length).line<e.positionAt(c.getTokenOffset()).line)return xe.length=Ae.length,xe;var We=pe(xe,Ae.value);return We?(xe.valueNode=We,xe.length=We.offset+We.length-xe.offset,xe):b("Value expected",er.ValueExpected,xe,[],[2,5])}function te(Ce){if(c.getToken()!==1)return null;var we=new v0(Ce,c.getTokenOffset()),xe=Object.create(null);m();for(var Ae=!1;c.getToken()!==2&&c.getToken()!==17;){if(c.getToken()===5){Ae||b("Property expected",er.PropertyExpected);var Fe=c.getTokenOffset();if(m(),c.getToken()===2){Ae&&y("Trailing comma",er.TrailingComma,Fe,Fe+1);continue}}else Ae&&b("Expected comma",er.CommaExpected);var Le=$(we,xe);Le?we.properties.push(Le):b("Property expected",er.PropertyExpected,null,[],[2,5]),Ae=!0}return c.getToken()!==2?b("Expected comma or closing brace",er.CommaOrCloseBraceExpected,we):R(we,!0)}function q(Ce){if(c.getToken()!==10)return null;var we=new Pv(Ce,c.getTokenOffset());return we.value=c.getTokenValue(),R(we,!0)}function se(Ce){if(c.getToken()!==11)return null;var we=new p0(Ce,c.getTokenOffset());if(c.getTokenError()===0){var xe=c.getTokenValue();try{var Ae=JSON.parse(xe);if(!Zn(Ae))return b("Invalid number format.",er.Undefined,we);we.value=Ae}catch(Fe){return b("Invalid number format.",er.Undefined,we)}we.isInteger=xe.indexOf(".")===-1}return R(we,!0)}function ie(Ce){var we;switch(c.getToken()){case 7:return R(new c0(Ce,c.getTokenOffset()),!0);case 8:return R(new Tv(Ce,!0,c.getTokenOffset()),!0);case 9:return R(new Tv(Ce,!1,c.getTokenOffset()),!0);default:return null}}function pe(Ce,we){return B(Ce)||te(Ce)||q(Ce)||se(Ce)||ie(Ce)}var ve=null,ge=m();return ge!==17&&(ve=pe(null,null),ve?c.getToken()!==17&&b("End of file expected.",er.Undefined):b("Expected a JSON object, array or literal.",er.Undefined)),new Fv(ve,n,p)}function ip(e,r,n){if(e!==null&&typeof e=="object"){var a=r+" ";if(Array.isArray(e)){if(e.length===0)return"[]";for(var o=`[
|
|
257
|
+
`,c=0;c<e.length;c++)o+=a+ip(e[c],a,n),c<e.length-1&&(o+=","),o+=`
|
|
258
|
+
`;return o+=r+"]",o}else{var p=Object.keys(e);if(p.length===0)return"{}";for(var o=`{
|
|
259
|
+
`,c=0;c<p.length;c++){var m=p[c];o+=a+JSON.stringify(m)+": "+ip(e[m],a,n),c<p.length-1&&(o+=","),o+=`
|
|
260
|
+
`}return o+=r+"}",o}}return n(e)}function b0(e,r){if(e.length<r.length)return!1;for(var n=0;n<r.length;n++)if(e[n]!==r[n])return!1;return!0}function ap(e,r){var n=e.length-r.length;return n>0?e.lastIndexOf(r)===n:n===0?e===r:!1}function x0(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function A1(e,r){for(var n="";r>0;)(r&1)===1&&(n+=e),e+=e,r=r>>>1;return n}var S0=[",","}","]"],w0=[":"],A0=function(){function e(r,n,a,o){n===void 0&&(n=[]),a===void 0&&(a=Promise),o===void 0&&(o={}),this.schemaService=r,this.contributions=n,this.promiseConstructor=a,this.clientCapabilities=o,this.templateVarIdCounter=0}return e.prototype.doResolve=function(r){for(var n=this.contributions.length-1;n>=0;n--)if(this.contributions[n].resolveCompletion){var a=this.contributions[n].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},e.prototype.doComplete=function(r,n,a){var o=this,c={items:[],isIncomplete:!1},p=r.getText(),m=r.offsetAt(n),v=a.getNodeFromOffset(m,!0);if(this.isInComment(r,v?v.offset:0,m))return Promise.resolve(c);if(v&&m===v.offset+v.length&&m>0){var y=p[m-1];(v.type==="object"&&y==="}"||v.type==="array"&&y==="]")&&(v=v.parent)}var b=this.getCurrentWord(r,m),I=null;if(v&&(v.type==="string"||v.type==="number"||v.type==="boolean"||v.type==="null"))I=ar.create(r.positionAt(v.offset),r.positionAt(v.offset+v.length));else{var R=m-b.length;R>0&&p[R-1]==='"'&&R--,I=ar.create(r.positionAt(R),n)}var B=this.doesSupportsCommitCharacters(),$={},te={add:function(q){var se=$[q.label];se?se.documentation||(se.documentation=q.documentation):($[q.label]=q,I&&(q.textEdit=vi.replace(I,q.insertText)),B&&(q.commitCharacters=q.kind===_n.Property?w0:S0),c.items.push(q))},setAsIncomplete:function(){c.isIncomplete=!0},error:function(q){console.error(q)},log:function(q){console.log(q)},getNumberOfProposals:function(){return c.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(q){var se=[],ie=!0,pe="",ve=null;if(v&&v.type==="string"){var ge=v.parent;ge&&ge.type==="property"&&ge.keyNode===v&&(ie=!ge.valueNode,ve=ge,pe=p.substr(v.offset+1,v.length-2),ge&&(v=ge.parent))}if(v&&v.type==="object"){if(v.offset===m)return c;var Ce=v.properties;Ce.forEach(function(Fe){(!ve||ve!==Fe)&&($[Fe.keyNode.value]=_d.create("__"))});var we="";ie&&(we=o.evaluateSeparatorAfter(r,r.offsetAt(I.end))),q?o.getPropertyCompletions(q,a,v,ie,we,te):o.getSchemaLessPropertyCompletions(a,v,pe,te);var xe=np(v);o.contributions.forEach(function(Fe){var Le=Fe.collectPropertyCompletions(r.uri,xe,b,ie,we==="",te);Le&&se.push(Le)}),!q&&b.length>0&&p.charAt(m-b.length-1)!=='"'&&(te.add({kind:_n.Property,label:o.getLabelForValue(b),insertText:o.getInsertTextForProperty(b,null,!1,we),insertTextFormat:Jr.Snippet,documentation:""}),te.setAsIncomplete())}var Ae={};return q?o.getValueCompletions(q,a,v,m,r,te,Ae):o.getSchemaLessValueCompletions(a,v,m,r,te),o.contributions.length>0&&o.getContributedValueCompletions(a,v,m,r,te,se),o.promiseConstructor.all(se).then(function(){if(te.getNumberOfProposals()===0){var Fe=m;v&&(v.type==="string"||v.type==="number"||v.type==="boolean"||v.type==="null")&&(Fe=v.offset+v.length);var Le=o.evaluateSeparatorAfter(r,Fe);o.addFillerValueCompletions(Ae,Le,te)}return c})})},e.prototype.getPropertyCompletions=function(r,n,a,o,c,p){var m=this,v=n.getMatchingSchemas(r.schema,a.offset);v.forEach(function(y){if(y.node===a&&!y.inverted){var b=y.schema.properties;b&&Object.keys(b).forEach(function(I){var R=b[I],B=!1;if(typeof R=="object"&&R.allOf)for(var $=0,te=R.allOf;$<te.length;$++){var q=te[$];if(q.readOnly){B=!0;break}}if(typeof R=="object"&&!R.deprecationMessage&&!R.doNotSuggest&&!B){var se={kind:_n.Property,label:m.sanitizeLabel(I),insertText:m.getInsertTextForProperty(I,R,o,c),insertTextFormat:Jr.Snippet,filterText:m.getFilterTextForValue(I),documentation:m.fromMarkup(R.markdownDescription)||R.description||""};ap(se.insertText,"$1"+c)&&(se.command={title:"Suggest",command:"editor.action.triggerSuggest"}),p.add(se)}})}})},e.prototype.getSchemaLessPropertyCompletions=function(r,n,a,o){var c=this,p=function(v){v.properties.forEach(function(y){var b=y.keyNode.value;o.add({kind:_n.Property,label:c.sanitizeLabel(b),insertText:c.getInsertTextForValue(b,""),insertTextFormat:Jr.Snippet,filterText:c.getFilterTextForValue(b),documentation:""})})};if(n.parent)if(n.parent.type==="property"){var m=n.parent.keyNode.value;r.visit(function(v){return v.type==="property"&&v!==n.parent&&v.keyNode.value===m&&v.valueNode&&v.valueNode.type==="object"&&p(v.valueNode),!0})}else n.parent.type==="array"&&n.parent.items.forEach(function(v){v.type==="object"&&v!==n&&p(v)});else n.type==="object"&&o.add({kind:_n.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Jr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(r,n,a,o,c){var p=this,m=a;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(m=n.offset+n.length,n=n.parent),!n){c.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Jr.Snippet,documentation:""}),c.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Jr.Snippet,documentation:""});return}var v=this.evaluateSeparatorAfter(o,m),y=function(B){kv(B.parent,a,!0)||c.add({kind:p.getSuggestionKind(B.type),label:p.getLabelTextForMatchingNode(B,o),insertText:p.getInsertTextForMatchingNode(B,o,v),insertTextFormat:Jr.Snippet,documentation:""}),B.type==="boolean"&&p.addBooleanValueCompletion(!B.value,v,c)};if(n.type==="property"&&a>n.colonOffset){var b=n.valueNode;if(b&&(a>b.offset+b.length||b.type==="object"||b.type==="array"))return;var I=n.keyNode.value;r.visit(function(B){return B.type==="property"&&B.keyNode.value===I&&B.valueNode&&y(B.valueNode),!0}),I==="$schema"&&n.parent&&!n.parent.parent&&this.addDollarSchemaCompletions(v,c)}if(n.type==="array")if(n.parent&&n.parent.type==="property"){var R=n.parent.keyNode.value;r.visit(function(B){return B.type==="property"&&B.keyNode.value===R&&B.valueNode&&B.valueNode.type==="array"&&B.valueNode.items.forEach(y),!0})}else n.items.forEach(y)},e.prototype.getValueCompletions=function(r,n,a,o,c,p,m){var v=this,y=o,b=null,I=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(y=a.offset+a.length,I=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",p,m);return}if(a.type==="property"&&o>a.colonOffset){var R=a.valueNode;if(R&&o>R.offset+R.length)return;b=a.keyNode.value,a=a.parent}if(a&&(b!==null||a.type==="array")){var B=this.evaluateSeparatorAfter(c,y),$=n.getMatchingSchemas(r.schema,a.offset,I);$.forEach(function(te){if(te.node===a&&!te.inverted&&te.schema){if(a.type==="array"&&te.schema.items)if(Array.isArray(te.schema.items)){var q=v.findItemAtOffset(a,c,o);q<te.schema.items.length&&v.addSchemaValueCompletions(te.schema.items[q],B,p,m)}else v.addSchemaValueCompletions(te.schema.items,B,p,m);if(te.schema.properties){var se=te.schema.properties[b];se&&v.addSchemaValueCompletions(se,B,p,m)}}}),b==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(B,p),m.boolean&&(this.addBooleanValueCompletion(!0,B,p),this.addBooleanValueCompletion(!1,B,p)),m.null&&this.addNullValueCompletion(B,p)}},e.prototype.getContributedValueCompletions=function(r,n,a,o,c,p){if(!n)this.contributions.forEach(function(b){var I=b.collectDefaultCompletions(o.uri,c);I&&p.push(I)});else if((n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(n=n.parent),n.type==="property"&&a>n.colonOffset){var m=n.keyNode.value,v=n.valueNode;if(!v||a<=v.offset+v.length){var y=np(n.parent);this.contributions.forEach(function(b){var I=b.collectValueCompletions(o.uri,y,m,c);I&&p.push(I)})}}},e.prototype.addSchemaValueCompletions=function(r,n,a,o){var c=this;typeof r=="object"&&(this.addEnumValueCompletions(r,n,a),this.addDefaultValueCompletions(r,n,a),this.collectTypes(r,o),Array.isArray(r.allOf)&&r.allOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,o)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,o)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,o)}))},e.prototype.addDefaultValueCompletions=function(r,n,a,o){var c=this;o===void 0&&(o=0);var p=!1;if(ya(r.default)){for(var m=r.type,v=r.default,y=o;y>0;y--)v=[v],m="array";a.add({kind:this.getSuggestionKind(m),label:this.getLabelForValue(v),insertText:this.getInsertTextForValue(v,n),insertTextFormat:Jr.Snippet}),p=!0}Array.isArray(r.examples)&&r.examples.forEach(function(b){for(var I=r.type,R=b,B=o;B>0;B--)R=[R],I="array";a.add({kind:c.getSuggestionKind(I),label:c.getLabelForValue(R),insertText:c.getInsertTextForValue(R,n),insertTextFormat:Jr.Snippet}),p=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(b){var I=r.type,R=b.body,B=b.label,$,te;if(ya(R)){for(var q=r.type,se=o;se>0;se--)R=[R],q="array";$=c.getInsertTextForSnippetValue(R,n),te=c.getFilterTextForSnippetValue(R),B=B||c.getLabelForSnippetValue(R)}else if(typeof b.bodyText=="string"){for(var ie="",pe="",ve="",se=o;se>0;se--)ie=ie+ve+`[
|
|
261
|
+
`,pe=pe+`
|
|
262
|
+
`+ve+"]",ve+=" ",I="array";$=ie+ve+b.bodyText.split(`
|
|
263
|
+
`).join(`
|
|
264
|
+
`+ve)+pe+n,B=B||c.sanitizeLabel($),te=$.replace(/[\n]/g,"")}a.add({kind:c.getSuggestionKind(I),label:B,documentation:c.fromMarkup(b.markdownDescription)||b.description,insertText:$,insertTextFormat:Jr.Snippet,filterText:te}),p=!0}),!p&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,n,a,o+1)},e.prototype.addEnumValueCompletions=function(r,n,a){if(ya(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,n),insertTextFormat:Jr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var o=0,c=r.enum.length;o<c;o++){var p=r.enum[o],m=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&o<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?m=this.fromMarkup(r.markdownEnumDescriptions[o]):r.enumDescriptions&&o<r.enumDescriptions.length&&(m=r.enumDescriptions[o]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(p),insertText:this.getInsertTextForValue(p,n),insertTextFormat:Jr.Snippet,documentation:m})}},e.prototype.collectTypes=function(r,n){if(!(Array.isArray(r.enum)||ya(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(o){return n[o]=!0}):n[a]=!0}},e.prototype.addFillerValueCompletions=function(r,n,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},n),insertTextFormat:Jr.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],n),insertTextFormat:Jr.Snippet,detail:"New array",documentation:""})},e.prototype.addBooleanValueCompletion=function(r,n,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,n),insertTextFormat:Jr.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(r,n){n.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Jr.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(r,n){var a=this,o=this.schemaService.getRegisteredSchemaIds(function(c){return c==="http"||c==="https"});o.forEach(function(c){return n.add({kind:_n.Module,label:a.getLabelForValue(c),filterText:a.getFilterTextForValue(c),insertText:a.getInsertTextForValue(c,r),insertTextFormat:Jr.Snippet,documentation:""})})},e.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},e.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},e.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},e.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(r){var n=JSON.stringify(r);return n=n.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(n)},e.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(r,n){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+n:a==="[]"?"[$1]"+n:this.getInsertTextForPlainText(a+n)},e.prototype.getInsertTextForSnippetValue=function(r,n){var a=function(o){return typeof o=="string"&&o[0]==="^"?o.substr(1):JSON.stringify(o)};return ip(r,"",a)+n},e.prototype.getInsertTextForGuessedValue=function(r,n){switch(typeof r){case"object":return r===null?"${1:null}"+n:this.getInsertTextForValue(r,n);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+n;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+n}return this.getInsertTextForValue(r,n)},e.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var n=r;r=n.length>0?n[0]:null}if(!r)return _n.Value;switch(r){case"string":return _n.Value;case"object":return _n.Module;case"property":return _n.Property;default:return _n.Value}},e.prototype.getLabelTextForMatchingNode=function(r,n){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=n.getText().substr(r.offset,r.length);return a}},e.prototype.getInsertTextForMatchingNode=function(r,n,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var o=n.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(o)}},e.prototype.getInsertTextForProperty=function(r,n,a,o){var c=this.getInsertTextForValue(r,"");if(!a)return c;var p=c+": ",m,v=0;if(n){if(Array.isArray(n.defaultSnippets)){if(n.defaultSnippets.length===1){var y=n.defaultSnippets[0].body;ya(y)&&(m=this.getInsertTextForSnippetValue(y,""))}v+=n.defaultSnippets.length}if(n.enum&&(!m&&n.enum.length===1&&(m=this.getInsertTextForGuessedValue(n.enum[0],"")),v+=n.enum.length),ya(n.default)&&(m||(m=this.getInsertTextForGuessedValue(n.default,"")),v++),v===0){var b=Array.isArray(n.type)?n.type[0]:n.type;switch(b||(n.properties?b="object":n.items&&(b="array")),b){case"boolean":m="$1";break;case"string":m='"$1"';break;case"object":m="{$1}";break;case"array":m="[$1]";break;case"number":case"integer":m="${1:0}";break;case"null":m="${1:null}";break;default:return c}}}return(!m||v>1)&&(m="$1"),p+m+o},e.prototype.getCurrentWord=function(r,n){for(var a=n-1,o=r.getText();a>=0&&`
|
|
265
|
+
\r\v":{[,]}`.indexOf(o.charAt(a))===-1;)a--;return o.substring(a+1,n)},e.prototype.evaluateSeparatorAfter=function(r,n){var a=Js(r.getText(),!0);a.setPosition(n);var o=a.scan();switch(o){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(r,n,a){for(var o=Js(n.getText(),!0),c=r.items,p=c.length-1;p>=0;p--){var m=c[p];if(a>m.offset+m.length){o.setPosition(m.offset+m.length);var v=o.scan();return v===5&&a>=o.getTokenOffset()+o.getTokenLength()?p+1:p}else if(a>=m.offset)return p}return 0},e.prototype.isInComment=function(r,n,a){var o=Js(r.getText(),!1);o.setPosition(n);for(var c=o.scan();c!==17&&o.getTokenOffset()+o.getTokenLength()<a;)c=o.scan();return(c===12||c===13)&&o.getTokenOffset()<=a},e.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:zo.Markdown,value:r}},e.prototype.doesSupportMarkdown=function(){if(!ya(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(zo.Markdown)!==-1}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!ya(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),C0=function(){function e(r,n,a){n===void 0&&(n=[]),this.schemaService=r,this.contributions=n,this.promise=a||Promise}return e.prototype.doHover=function(r,n,a){var o=r.offsetAt(n),c=a.getNodeFromOffset(o);if(!c||(c.type==="object"||c.type==="array")&&o>c.offset+1&&o<c.offset+c.length-1)return this.promise.resolve(null);var p=c;if(c.type==="string"){var m=c.parent;if(m&&m.type==="property"&&m.keyNode===c&&(c=m.valueNode,!c))return this.promise.resolve(null)}for(var v=ar.create(r.positionAt(p.offset),r.positionAt(p.offset+p.length)),y=function($){var te={contents:$,range:v};return te},b=np(c),I=this.contributions.length-1;I>=0;I--){var R=this.contributions[I],B=R.getInfoContribution(r.uri,b);if(B)return B.then(function($){return y($)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function($){if($){var te=a.getMatchingSchemas($.schema,c.offset),q=null,se=null,ie=null,pe=null;te.every(function(ge){if(ge.node===c&&!ge.inverted&&ge.schema&&(q=q||ge.schema.title,se=se||ge.schema.markdownDescription||op(ge.schema.description),ge.schema.enum)){var Ce=ge.schema.enum.indexOf(_a(c));ge.schema.markdownEnumDescriptions?ie=ge.schema.markdownEnumDescriptions[Ce]:ge.schema.enumDescriptions&&(ie=op(ge.schema.enumDescriptions[Ce])),ie&&(pe=ge.schema.enum[Ce],typeof pe!="string"&&(pe=JSON.stringify(pe)))}return!0});var ve="";return q&&(ve=op(q)),se&&(ve.length>0&&(ve+=`
|
|
266
|
+
|
|
267
|
+
`),ve+=se),ie&&(ve.length>0&&(ve+=`
|
|
268
|
+
|
|
269
|
+
`),ve+="`"+E0(pe)+"`: "+ie),y([ve])}return null})},e}();function op(e){if(e){var r=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
|
|
270
|
+
|
|
271
|
+
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function E0(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var O0=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var c in o)o.hasOwnProperty(c)&&(a[c]=o[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ur,Fu;if(typeof process=="object")Fu=!1;else if(typeof navigator=="object"){var T0=navigator.userAgent;Fu=T0.indexOf("Windows")>=0}function C1(e){return 55296<=e&&e<=56319}function E1(e){return 56320<=e&&e<=57343}function O1(e){return e>=97&&e<=102}function P0(e){return e>=97&&e<=122}function I0(e){return e>=65&&e<=90}function T1(e){return P0(e)||I0(e)}var k0=/^\w[\w\d+.-]*$/,F0=/^\//,R0=/^\/\//;function L0(e,r){if(!e.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!k0.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!F0.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(R0.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function M0(e,r){return!e&&!r?"file":e}function N0(e,r){switch(e){case"https":case"http":case"file":r?r[0]!==Bi&&(r=Bi+r):r=Bi;break}return r}var yr="",Bi="/",D0=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,sp=function(){function e(r,n,a,o,c,p){p===void 0&&(p=!1),typeof r=="object"?(this.scheme=r.scheme||yr,this.authority=r.authority||yr,this.path=r.path||yr,this.query=r.query||yr,this.fragment=r.fragment||yr):(this.scheme=M0(r,p),this.authority=n||yr,this.path=N0(this.scheme,a||yr),this.query=o||yr,this.fragment=c||yr,L0(this,p))}return e.isUri=function(r){return r instanceof e?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(e.prototype,"fsPath",{get:function(){return Nv(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(r){if(!r)return this;var n=r.scheme,a=r.authority,o=r.path,c=r.query,p=r.fragment;return n===void 0?n=this.scheme:n===null&&(n=yr),a===void 0?a=this.authority:a===null&&(a=yr),o===void 0?o=this.path:o===null&&(o=yr),c===void 0?c=this.query:c===null&&(c=yr),p===void 0?p=this.fragment:p===null&&(p=yr),n===this.scheme&&a===this.authority&&o===this.path&&c===this.query&&p===this.fragment?this:new _s(n,a,o,c,p)},e.parse=function(r,n){n===void 0&&(n=!1);var a=D0.exec(r);return a?new _s(a[2]||yr,Ec(a[4]||yr),Ec(a[5]||yr),Ec(a[7]||yr),Ec(a[9]||yr),n):new _s(yr,yr,yr,yr,yr)},e.file=function(r){var n=yr;if(Fu&&(r=r.replace(/\\/g,Bi)),r[0]===Bi&&r[1]===Bi){var a=r.indexOf(Bi,2);a===-1?(n=r.substring(2),r=Bi):(n=r.substring(2,a),r=r.substring(a)||Bi)}return new _s("file",n,r,yr,yr)},e.from=function(r){return new _s(r.scheme,r.authority,r.path,r.query,r.fragment)},e.prototype.toString=function(r){return r===void 0&&(r=!1),lp(this,r)},e.prototype.toJSON=function(){return this},e.revive=function(r){if(r){if(r instanceof e)return r;var n=new _s(r);return n._formatted=r.external,n._fsPath=r._sep===Rv?r.fsPath:null,n}else return r},e}(),Rv=Fu?1:void 0,_s=function(e){O0(r,e);function r(){var n=e!==null&&e.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Nv(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(n){return n===void 0&&(n=!1),n?lp(this,!0):(this._formatted||(this._formatted=lp(this,!1)),this._formatted)},r.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=Rv),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n},r}(sp),Lv=(Ur={},Ur[58]="%3A",Ur[47]="%2F",Ur[63]="%3F",Ur[35]="%23",Ur[91]="%5B",Ur[93]="%5D",Ur[64]="%40",Ur[33]="%21",Ur[36]="%24",Ur[38]="%26",Ur[39]="%27",Ur[40]="%28",Ur[41]="%29",Ur[42]="%2A",Ur[43]="%2B",Ur[44]="%2C",Ur[59]="%3B",Ur[61]="%3D",Ur[32]="%20",Ur);function Mv(e,r){for(var n=void 0,a=-1,o=0;o<e.length;o++){var c=e.charCodeAt(o);if(c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===45||c===46||c===95||c===126||r&&c===47)a!==-1&&(n+=encodeURIComponent(e.substring(a,o)),a=-1),n!==void 0&&(n+=e.charAt(o));else{n===void 0&&(n=e.substr(0,o));var p=Lv[c];p!==void 0?(a!==-1&&(n+=encodeURIComponent(e.substring(a,o)),a=-1),n+=p):a===-1&&(a=o)}}return a!==-1&&(n+=encodeURIComponent(e.substring(a))),n!==void 0?n:e}function B0(e){for(var r=void 0,n=0;n<e.length;n++){var a=e.charCodeAt(n);a===35||a===63?(r===void 0&&(r=e.substr(0,n)),r+=Lv[a]):r!==void 0&&(r+=e[n])}return r!==void 0?r:e}function Nv(e,r){var n;return e.authority&&e.path.length>1&&e.scheme==="file"?n="//"+e.authority+e.path:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?r?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Fu&&(n=n.replace(/\//g,"\\")),n}function lp(e,r){var n=r?B0:Mv,a="",o=e.scheme,c=e.authority,p=e.path,m=e.query,v=e.fragment;if(o&&(a+=o,a+=":"),(c||o==="file")&&(a+=Bi,a+=Bi),c){var y=c.indexOf("@");if(y!==-1){var b=c.substr(0,y);c=c.substr(y+1),y=b.indexOf(":"),y===-1?a+=n(b,!1):(a+=n(b.substr(0,y),!1),a+=":",a+=n(b.substr(y+1),!1)),a+="@"}c=c.toLowerCase(),y=c.indexOf(":"),y===-1?a+=n(c,!1):(a+=n(c.substr(0,y),!1),a+=c.substr(y))}if(p){if(p.length>=3&&p.charCodeAt(0)===47&&p.charCodeAt(2)===58){var I=p.charCodeAt(1);I>=65&&I<=90&&(p="/"+String.fromCharCode(I+32)+":"+p.substr(3))}else if(p.length>=2&&p.charCodeAt(1)===58){var I=p.charCodeAt(0);I>=65&&I<=90&&(p=String.fromCharCode(I+32)+":"+p.substr(2))}a+=n(p,!0)}return m&&(a+="?",a+=n(m,!1)),v&&(a+="#",a+=r?v:Mv(v,!1)),a}function Dv(e){try{return decodeURIComponent(e)}catch(r){return e.length>3?e.substr(0,3)+Dv(e.substr(3)):e}}var Bv=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ec(e){return e.match(Bv)?e.replace(Bv,function(r){return Dv(r)}):e}var j0=function(){function e(r){try{this.patternRegExp=new RegExp(x0(r)+"$")}catch(n){this.patternRegExp=null}this.schemas=[]}return e.prototype.addSchema=function(r){this.schemas.push(r)},e.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},e.prototype.getSchemas=function(){return this.schemas},e}(),V0=function(){function e(r,n,a){this.service=r,this.url=n,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new qs(a)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return r.service.resolveSchemaContent(n,r.url,r.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},e}(),qs=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e}(),jv=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e.prototype.getSection=function(r){return Nn(this.getSectionRecursive(r,this.schema))},e.prototype.getSectionRecursive=function(r,n){if(!n||typeof n=="boolean"||r.length===0)return n;var a=r.shift();if(n.properties&&typeof n.properties[a])return this.getSectionRecursive(r,n.properties[a]);if(n.patternProperties)for(var o=0,c=Object.keys(n.patternProperties);o<c.length;o++){var p=c[o],m=new RegExp(p);if(m.test(a))return this.getSectionRecursive(r,n.patternProperties[p])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(r,n.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(n.items)){var v=parseInt(a,10);if(!isNaN(v)&&n.items[v])return this.getSectionRecursive(r,n.items[v])}else if(n.items)return this.getSectionRecursive(r,n.items)}}return null},e}(),U0=function(){function e(r,n,a){this.contextService=n,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(n){var a=sp.parse(n).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(r){var n=this,a=!1;r=this.normalizeId(r);for(var o=[r],c=Object.keys(this.schemasById).map(function(y){return n.schemasById[y]});o.length;)for(var p=o.pop(),m=0;m<c.length;m++){var v=c[m];v&&(v.url===p||v.dependencies[p])&&(v.url!==p&&o.push(v.url),v.clearSchema(),c[m]=void 0,a=!0)}return a},e.prototype.normalizeId=function(r){try{return sp.parse(r).toString()}catch(n){return r}},e.prototype.setSchemaContributions=function(r){if(r.schemas){var n=r.schemas;for(var a in n){var o=this.normalizeId(a);this.contributionSchemas[o]=this.addSchemaHandle(o,n[a])}}if(r.schemaAssociations){var c=r.schemaAssociations;for(var p in c){var m=c[p];this.contributionAssociations[p]=m;for(var v=this.getOrAddFilePatternAssociation(p),y=0,b=m;y<b.length;y++){var I=b[y],a=this.normalizeId(I);v.addSchema(a)}}}},e.prototype.addSchemaHandle=function(r,n){var a=new V0(this,r,n);return this.schemasById[r]=a,a},e.prototype.getOrAddSchemaHandle=function(r,n){return this.schemasById[r]||this.addSchemaHandle(r,n)},e.prototype.getOrAddFilePatternAssociation=function(r){var n=this.filePatternAssociationById[r];return n||(n=new j0(r),this.filePatternAssociationById[r]=n,this.filePatternAssociations.push(n)),n},e.prototype.registerExternalSchema=function(r,n,a){n===void 0&&(n=null);var o=this.normalizeId(r);if(this.registeredSchemasIds[o]=!0,n)for(var c=0,p=n;c<p.length;c++){var m=p[c];this.getOrAddFilePatternAssociation(m).addSchema(o)}return a?this.addSchemaHandle(o,a):this.getOrAddSchemaHandle(o)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var n in this.contributionAssociations)for(var a=this.getOrAddFilePatternAssociation(n),o=0,c=this.contributionAssociations[n];o<c.length;o++){var p=c[o],r=this.normalizeId(p);a.addSchema(r)}},e.prototype.getResolvedSchema=function(r){var n=this.normalizeId(r),a=this.schemasById[n];return a?a.getResolvedSchema():this.promise.resolve(null)},e.prototype.loadSchema=function(r){if(!this.requestService){var n="Unable to load schema from '"+Oc(r)+"'. No schema request service available";return this.promise.resolve(new qs({},[n]))}return this.requestService(r).then(function(a){if(!a){var o="Unable to load schema from '"+Oc(r)+"': No content.";return new qs({},[o])}var c={},p=[];c=r0(a,p);var m=p.length?["Unable to parse content from '"+Oc(r)+"': Parse error at offset "+p[0].offset]:[];return new qs(c,m)},function(a){var o="Unable to load schema from '"+Oc(r)+"': "+a.toString();return new qs({},[o])})},e.prototype.resolveSchemaContent=function(r,n,a){var o=this,c=r.errors.slice(0),p=r.schema;if(p.$schema){var m=this.normalizeId(p.$schema);if(m==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new jv({},["Draft-03 schemas are not supported."]));m==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var v=this.contextService,y=function(B,$){if(!$)return B;var te=B;return $[0]==="/"&&($=$.substr(1)),$.split("/").some(function(q){return te=te[q],!te}),te},b=function(B,$,te,q){var se=y($,q);if(se)for(var ie in se)se.hasOwnProperty(ie)&&!B.hasOwnProperty(ie)&&(B[ie]=se[ie]);else c.push("$ref '"+q+"' in '"+te+"' can not be resolved.")},I=function(B,$,te,q,se){v&&!/^\w+:\/\/.*/.test($)&&($=v.resolveRelativePath($,q)),$=o.normalizeId($);var ie=o.getOrAddSchemaHandle($);return ie.getUnresolvedSchema().then(function(pe){if(se[$]=!0,pe.errors.length){var ve=te?$+"#"+te:$;c.push("Problems loading reference '"+ve+"': "+pe.errors[0]+".")}return b(B,pe.schema,$,te),R(B,pe.schema,$,ie.dependencies)})},R=function(B,$,te,q){if(!B||typeof B!="object")return Promise.resolve(null);for(var se=[B],ie=[],pe=[],ve=function(){for(var Ae=[],Fe=0;Fe<arguments.length;Fe++)Ae[Fe]=arguments[Fe];for(var Le=0,We=Ae;Le<We.length;Le++){var Ke=We[Le];typeof Ke=="object"&&se.push(Ke)}},ge=function(){for(var Ae=[],Fe=0;Fe<arguments.length;Fe++)Ae[Fe]=arguments[Fe];for(var Le=0,We=Ae;Le<We.length;Le++){var Ke=We[Le];if(typeof Ke=="object")for(var At in Ke){var qe=Ke[At];typeof qe=="object"&&se.push(qe)}}},Ce=function(){for(var Ae=[],Fe=0;Fe<arguments.length;Fe++)Ae[Fe]=arguments[Fe];for(var Le=0,We=Ae;Le<We.length;Le++){var Ke=We[Le];if(Array.isArray(Ke))for(var At=0,qe=Ke;At<qe.length;At++){var _t=qe[At];typeof _t=="object"&&se.push(_t)}}},we=function(Ae){for(var Fe=[];Ae.$ref;){var Le=Ae.$ref,We=Le.split("#",2);if(delete Ae.$ref,We[0].length>0){pe.push(I(Ae,We[0],We[1],te,q));return}else Fe.indexOf(Le)===-1&&(b(Ae,$,te,We[1]),Fe.push(Le))}ve(Ae.items,Ae.additionalProperties,Ae.not,Ae.contains,Ae.propertyNames,Ae.if,Ae.then,Ae.else),ge(Ae.definitions,Ae.properties,Ae.patternProperties,Ae.dependencies),Ce(Ae.anyOf,Ae.allOf,Ae.oneOf,Ae.items)};se.length;){var xe=se.pop();ie.indexOf(xe)>=0||(ie.push(xe),we(xe))}return o.promise.all(pe)};return R(p,p,n,a).then(function(B){return new jv(p,c)})},e.prototype.getSchemaForResource=function(r,n){if(n&&n.root&&n.root.type==="object"){var a=n.root.properties.filter(function($){return $.keyNode.value==="$schema"&&$.valueNode&&$.valueNode.type==="string"});if(a.length>0){var o=_a(a[0].valueNode);if(o&&b0(o,".")&&this.contextService&&(o=this.contextService.resolveRelativePath(o,r)),o){var c=this.normalizeId(o);return this.getOrAddSchemaHandle(c).getResolvedSchema()}}}for(var p=Object.create(null),m=[],v=0,y=this.filePatternAssociations;v<y.length;v++){var b=y[v];if(b.matchesPattern(r))for(var I=0,R=b.getSchemas();I<R.length;I++){var B=R[I];p[B]||(m.push(B),p[B]=!0)}}return m.length>0?this.createCombinedSchema(r,m).getResolvedSchema():this.promise.resolve(null)},e.prototype.createCombinedSchema=function(r,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),o={allOf:n.map(function(c){return{$ref:c}})};return this.addSchemaHandle(a,o)},e}();function Oc(e){try{}catch(r){}return e}var W0=function(){function e(r,n){this.jsonSchemaService=r,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:$t.Error)},e.prototype.doValidation=function(r,n,a,o){var c=this;if(!this.validationEnabled)return this.promise.resolve([]);var p=[],m={},v=function(I){var R=I.range.start.line+" "+I.range.start.character+" "+I.message;m[R]||(m[R]=!0,p.push(I))},y=function(I){var R=a?Wv(a.trailingCommas):$t.Error,B=a?Wv(a.comments):c.commentSeverity;if(I){if(I.errors.length&&n.root){var $=n.root,te=$.type==="object"?$.properties[0]:null;if(te&&te.keyNode.value==="$schema"){var q=te.valueNode||te,se=ar.create(r.positionAt(q.offset),r.positionAt(q.offset+q.length));v(ba.create(se,I.errors[0],$t.Warning,er.SchemaResolveError))}else{var se=ar.create(r.positionAt($.offset),r.positionAt($.offset+1));v(ba.create(se,I.errors[0],$t.Warning,er.SchemaResolveError))}}else{var ie=n.validate(r,I.schema);ie&&ie.forEach(v)}Vv(I.schema)&&(B=void 0),Uv(I.schema)&&(R=void 0)}for(var pe=0,ve=n.syntaxErrors;pe<ve.length;pe++){var ge=ve[pe];if(ge.code===er.TrailingComma){if(typeof R!="number")continue;ge.severity=R}v(ge)}if(typeof B=="number"){var Ce="Comments are not permitted in JSON.";n.comments.forEach(function(we){v(ba.create(we,Ce,B,er.CommentNotPermitted))})}return p};if(o){var b=o.id||"schemaservice://untitled/"+H0++;return this.jsonSchemaService.resolveSchemaContent(new qs(o),b,{}).then(function(I){return y(I)})}return this.jsonSchemaService.getSchemaForResource(r.uri,n).then(function(I){return y(I)})},e}(),H0=0;function Vv(e){if(e&&typeof e=="object"){if(Xi(e.allowComments))return e.allowComments;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],o=Vv(a);if(Xi(o))return o}}}function Uv(e){if(e&&typeof e=="object"){if(Xi(e.allowTrailingCommas))return e.allowTrailingCommas;if(Xi(e.allowsTrailingCommas))return e.allowsTrailingCommas;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],o=Uv(a);if(Xi(o))return o}}}function Wv(e){switch(e){case"error":return $t.Error;case"warning":return $t.Warning;case"ignore":return}}var Hv=48,z0=57,G0=65,Tc=97,$0=102;function Wr(e){return e<Hv?0:e<=z0?e-Hv:(e<Tc&&(e+=Tc-G0),e>=Tc&&e<=$0?e-Tc+10:0)}function K0(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:Wr(e.charCodeAt(1))*17/255,green:Wr(e.charCodeAt(2))*17/255,blue:Wr(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Wr(e.charCodeAt(1))*17/255,green:Wr(e.charCodeAt(2))*17/255,blue:Wr(e.charCodeAt(3))*17/255,alpha:Wr(e.charCodeAt(4))*17/255};case 7:return{red:(Wr(e.charCodeAt(1))*16+Wr(e.charCodeAt(2)))/255,green:(Wr(e.charCodeAt(3))*16+Wr(e.charCodeAt(4)))/255,blue:(Wr(e.charCodeAt(5))*16+Wr(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Wr(e.charCodeAt(1))*16+Wr(e.charCodeAt(2)))/255,green:(Wr(e.charCodeAt(3))*16+Wr(e.charCodeAt(4)))/255,blue:(Wr(e.charCodeAt(5))*16+Wr(e.charCodeAt(6)))/255,alpha:(Wr(e.charCodeAt(7))*16+Wr(e.charCodeAt(8)))/255}}return null}function P1(e,r,n,a){return a===void 0&&(a=1),{red:e/255,green:r/255,blue:n/255,alpha:a}}var Y0=function(){function e(r){this.schemaService=r}return e.prototype.findDocumentSymbols=function(r,n,a){var o=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var c=n.root;if(!c)return null;var p=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||ap(m.toLowerCase(),"/user/keybindings.json"))&&c.type==="array"){for(var v=[],y=0,b=c.items;y<b.length;y++){var I=b[y];if(I.type==="object")for(var R=0,B=I.properties;R<B.length;R++){var $=B[R];if($.keyNode.value==="key"&&$.valueNode){var te=Xs.create(r.uri,qa(r,I));if(v.push({name:_a($.valueNode),kind:Qi.Function,location:te}),p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),v}}}return v}var q=function(ie,pe,ve){return p>=0&&(pe.type==="array"?pe.items.forEach(function(ge){return q(ie,ge,ve)}):pe.type==="object"&&pe.properties.forEach(function(ge){if(p>=0){var Ce=ge.valueNode;if(Ce){p--;var we=Xs.create(r.uri,qa(r,ge)),xe=ve?ve+"."+ge.keyNode.value:ge.keyNode.value;ie.push({name:o.getKeyLabel(ge),kind:o.getSymbolKind(Ce.type),location:we,containerName:ve}),q(ie,Ce,xe)}}})),ie},se=q([],c,void 0);return p<0&&(se.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),se},e.prototype.findDocumentSymbols2=function(r,n,a){var o=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var c=n.root;if(!c)return null;var p=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||ap(m.toLowerCase(),"/user/keybindings.json"))&&c.type==="array"){for(var v=[],y=0,b=c.items;y<b.length;y++){var I=b[y];if(I.type==="object")for(var R=0,B=I.properties;R<B.length;R++){var $=B[R];if($.keyNode.value==="key"&&$.valueNode){var te=qa(r,I),q=qa(r,$.keyNode);if(v.push({name:_a($.valueNode),kind:Qi.Function,range:te,selectionRange:q}),p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),v}}}return v}var se=function(pe,ve){return p>=0&&(ve.type==="array"?ve.items.forEach(function(ge,Ce){if(ge&&p>=0){p--;var we=qa(r,ge),xe=we,Ae=String(Ce),Fe=se([],ge);pe.push({name:Ae,kind:o.getSymbolKind(ge.type),range:we,selectionRange:xe,children:Fe})}}):ve.type==="object"&&ve.properties.forEach(function(ge){var Ce=ge.valueNode;if(Ce&&p>=0){p--;var we=qa(r,ge),xe=qa(r,ge.keyNode),Ae=se([],Ce);pe.push({name:o.getKeyLabel(ge),kind:o.getSymbolKind(Ce.type),range:we,selectionRange:xe,children:Ae})}})),pe},ie=se([],c);return p<0&&(ie.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),ie},e.prototype.getSymbolKind=function(r){switch(r){case"object":return Qi.Module;case"string":return Qi.String;case"number":return Qi.Number;case"array":return Qi.Array;case"boolean":return Qi.Boolean;default:return Qi.Variable}},e.prototype.getKeyLabel=function(r){var n=r.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},e.prototype.findDocumentColors=function(r,n,a){return this.schemaService.getSchemaForResource(r.uri,n).then(function(o){var c=[];if(o)for(var p=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,m=n.getMatchingSchemas(o.schema),v={},y=0,b=m;y<b.length;y++){var I=b[y];if(!I.inverted&&I.schema&&(I.schema.format==="color"||I.schema.format==="color-hex")&&I.node&&I.node.type==="string"){var R=String(I.node.offset);if(!v[R]){var B=K0(_a(I.node));if(B){var $=qa(r,I.node);c.push({color:B,range:$})}if(v[R]=!0,p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),c}}}return c})},e.prototype.getColorPresentations=function(r,n,a,o){var c=[],p=Math.round(a.red*255),m=Math.round(a.green*255),v=Math.round(a.blue*255);function y(I){var R=I.toString(16);return R.length!==2?"0"+R:R}var b;return a.alpha===1?b="#"+y(p)+y(m)+y(v):b="#"+y(p)+y(m)+y(v)+y(Math.round(a.alpha*255)),c.push({label:b,textEdit:vi.replace(o,JSON.stringify(b))}),c},e}();function qa(e,r){return ar.create(e.positionAt(r.offset),e.positionAt(r.offset+r.length))}var J0={schemaAssociations:{},schemas:{}};function X0(e,r){var n=[],a=[],o=[],c=-1,p=Js(e.getText(),!1),m=p.scan();function v(Fe){n.push(Fe),a.push(o.length)}for(;m!==17;){switch(m){case 1:case 3:{var y=e.positionAt(p.getTokenOffset()).line,b={startLine:y,endLine:y,kind:m===1?"object":"array"};o.push(b);break}case 2:case 4:{var I=m===2?"object":"array";if(o.length>0&&o[o.length-1].kind===I){var b=o.pop(),R=e.positionAt(p.getTokenOffset()).line;b&&R>b.startLine+1&&c!==b.startLine&&(b.endLine=R-1,v(b),c=b.startLine)}break}case 13:{var y=e.positionAt(p.getTokenOffset()).line,B=e.positionAt(p.getTokenOffset()+p.getTokenLength()).line;p.getTokenError()===1&&y+1<e.lineCount?p.setPosition(e.offsetAt(hi.create(y+1,0))):y<B&&(v({startLine:y,endLine:B,kind:Eu.Comment}),c=y);break}case 12:{var $=e.getText().substr(p.getTokenOffset(),p.getTokenLength()),te=$.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(te){var R=e.positionAt(p.getTokenOffset()).line;if(te[1]){var b={startLine:R,endLine:R,kind:Eu.Region};o.push(b)}else{for(var q=o.length-1;q>=0&&o[q].kind!==Eu.Region;)q--;if(q>=0){var b=o[q];o.length=q,R>b.startLine&&c!==b.startLine&&(b.endLine=R,v(b),c=b.startLine)}}}break}}m=p.scan()}var se=r&&r.rangeLimit;if(typeof se!="number"||n.length<=se)return n;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(e.uri);for(var ie=[],pe=0,ve=a;pe<ve.length;pe++){var ge=ve[pe];ge<30&&(ie[ge]=(ie[ge]||0)+1)}for(var Ce=0,we=0,q=0;q<ie.length;q++){var xe=ie[q];if(xe){if(xe+Ce>se){we=q;break}Ce+=xe}}for(var Ae=[],q=0;q<n.length;q++){var ge=a[q];typeof ge=="number"&&(ge<we||ge===we&&Ce++<se)&&Ae.push(n[q])}return Ae}function Q0(e,r,n){function a(m){for(var v=e.offsetAt(m),y=n.getNodeFromOffset(v,!0),b=[];y;){switch(y.type){case"string":case"object":case"array":var I=y.offset+1,R=y.offset+y.length-1;I<R&&v>=I&&v<=R&&b.push(o(I,R)),b.push(o(y.offset,y.offset+y.length));break;case"number":case"boolean":case"null":case"property":b.push(o(y.offset,y.offset+y.length));break}if(y.type==="property"||y.parent&&y.parent.type==="array"){var B=p(y.offset+y.length,5);B!==-1&&b.push(o(y.offset,B))}y=y.parent}for(var $=void 0,te=b.length-1;te>=0;te--)$=Ac.create(b[te],$);return $||($=Ac.create(ar.create(m,m))),$}function o(m,v){return ar.create(e.positionAt(m),e.positionAt(v))}var c=Js(e.getText(),!0);function p(m,v){c.setPosition(m);var y=c.scan();return y===v?c.getTokenOffset()+c.getTokenLength():-1}return r.map(a)}function Z0(e){var r=e.promiseConstructor||Promise,n=new U0(e.schemaRequestService,e.workspaceContext,r);n.setSchemaContributions(J0);var a=new A0(n,e.contributions,r,e.clientCapabilities),o=new C0(n,e.contributions,r),c=new Y0(n),p=new W0(n,r);return{configure:function(m){n.clearExternalSchemas(),m.schemas&&m.schemas.forEach(function(v){n.registerExternalSchema(v.uri,v.fileMatch,v.schema)}),p.configure(m)},resetSchema:function(m){return n.onResourceChange(m)},doValidation:p.doValidation.bind(p),parseJSONDocument:function(m){return y0(m,{collectComments:!0})},newJSONDocument:function(m,v){return m0(m,v)},doComplete:a.doComplete.bind(a),findDocumentSymbols:c.findDocumentSymbols.bind(c),findDocumentSymbols2:c.findDocumentSymbols2.bind(c),findColorSymbols:function(m,v){return c.findDocumentColors(m,v).then(function(y){return y.map(function(b){return b.range})})},findDocumentColors:c.findDocumentColors.bind(c),getColorPresentations:c.getColorPresentations.bind(c),doHover:o.doHover.bind(o),getFoldingRanges:X0,getSelectionRanges:Q0,format:function(m,v,y){var b=void 0;if(v){var I=m.offsetAt(v.start),R=m.offsetAt(v.end)-I;b={offset:I,length:R}}var B={tabSize:y?y.tabSize:4,insertSpaces:y?y.insertSpaces:!0,eol:`
|
|
272
|
+
`};return o0(m.getText(),b,B).map(function($){return vi.replace(ar.create(m.positionAt($.offset),m.positionAt($.offset+$.length)),$.content)})}}}var I1=s(49055),k1=s(32407),F1=s(29387),R1=s(22130),L1=s(61682),M1=s(19757),N1=s(46830),D1=s(59176),B1=s(6364),j1=s(53513),zv=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});const el=Z0({});Ks.registerHelper("lint","json",function(e,r){return zv(this,null,function*(){const{schema:n,setError:a}=r;el.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const o=Cc.create(r.id+".json","json",0,e),c=el.parseJSONDocument(o),p=yield el.doValidation(o,c);return p.length?a&&a(p[0].message):a&&a(void 0),p.map(m=>({from:Ks.Pos(m.range.start.line,m.range.start.character),to:Ks.Pos(m.range.end.line,m.range.end.character),message:m.message}))})}),Ks.registerHelper("hint","json",(e,r)=>zv(void 0,null,function*(){const n=r.schema;if(!n)return;el.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const a=e.getDoc().getCursor(),o=e.getTokenAt(a),c=Cc.create(r.id+".json","json",0,e.getValue()),p=el.parseJSONDocument(c),m=yield el.doComplete(c,{line:a.line,character:a.ch},p),v=b=>{let I="";for(;b--;)I+=" ";return I};let y=m?m.items.map(b=>({text:b.insertText,displayText:b.label,filter:b.filterText||b.label,from:{line:b.textEdit.range.start.line,ch:b.textEdit.range.start.character},to:{line:b.textEdit.range.end.line,ch:b.textEdit.range.end.character},hint:(I,R,B)=>{const $="_$__REDOC_CURSOR_HERE";let te=B.text.replace(/(\$1|\${1:[^}]+})/,$)||"";if(te=te.replace(/(\$\d+|\${[^}]+})/g,"")||"",I.setSelection(B.from,B.to),te.indexOf(`
|
|
273
|
+
`)>-1){const se=I.getLine(I.getCursor().line).search(/(\S|$)/);te=te.replace(/\n/g,`
|
|
274
|
+
`+v(se))}I.replaceSelection(te);const q=I.getSearchCursor($,B.from);q.findNext()&&(I.setCursor(q.from()),q.replace(""))}})):[];return/(property|string)/.test(o.type||"")&&(y=y.filter(b=>b.filter.replace(/(^"|"$)/g,"").startsWith(o.string.replace(/(^"|"$)/g,"")))),{from:Ks.Pos(a.line,o.start),to:Ks.Pos(a.line,a.ch),list:y}}));const _0=Vt.vJ`
|
|
275
|
+
.cm-s-material.CodeMirror {
|
|
276
|
+
background-color: var(--panel-samples-controls-background-color)!important;
|
|
277
|
+
color: var(--text-color-inverse)!important;
|
|
278
|
+
font-family: var(--code-font-family);
|
|
279
|
+
line-height: 18px;
|
|
280
|
+
padding: 10px;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.CodeMirror-lint-mark-error {
|
|
284
|
+
background-size: 4px;
|
|
285
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAVUlEQVR42mNgQAL/GRjigPg/EP8FYntkCX4gtoVKgvE/BoabcEVAhj6S5DUgfgFl/wFJ2gPxL6iuT1DF+kD2R5AYA5KRj6CS/FAMYvszIBltz4AFAAD9fz0YtLg13wAAAABJRU5ErkJggg==') !important;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.cm-s-material.CodeMirror-focused div.CodeMirror-selected {
|
|
289
|
+
background: rgba(255, 255, 255, 0.3) !important;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.cm-s-material .CodeMirror-code .cm-string.cm-property {
|
|
293
|
+
color: var(--code-block-tokens-property-string-color);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.cm-s-material .CodeMirror-code .cm-string {
|
|
297
|
+
color: var(--code-block-tokens-string-color);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.cm-s-material .CodeMirror-code .cm-atom {
|
|
301
|
+
color: var(--text-color-inverse);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
div .cm-s-material .CodeMirror-matchingbracket {
|
|
305
|
+
outline: 1px solid grey;
|
|
306
|
+
text-decoration: none;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.react-codemirror2 {
|
|
310
|
+
display: flex;
|
|
311
|
+
flex-direction: column;
|
|
312
|
+
justify-content: flex-start;
|
|
313
|
+
overflow: hidden;
|
|
314
|
+
|
|
315
|
+
flex: 1;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.CodeMirror {
|
|
319
|
+
flex: 1;
|
|
320
|
+
border-radius: var(--panel-border-radius);
|
|
321
|
+
}
|
|
322
|
+
`,q0=ma(({fieldState:e,fieldApi:r,onChange:n,onBlur:a,forwardedRef:o,id:c,mode:p,schema:m})=>{let v;const y=(se,ie)=>{/^[a-zA-Z0-9_":]$/.test(ie.key)&&v.execCommand("autocomplete")},b=se=>{v=se,v.on("keyup",y)},I=()=>{v.refresh()},R=()=>v.showHint({completeSingle:!0});(0,Dt.useMount)(()=>{setTimeout(()=>{v.refresh()},0),document.addEventListener("click",I)}),(0,Dt.useUnmount)(()=>{document.removeEventListener("click",I)});const{value:B}=e,{setValue:$,setTouched:te,setError:q}=r;return M.createElement(M.Fragment,null,M.createElement(_0,null),M.createElement($y.fk,{editorDidMount:b,value:B||"",ref:o,onBeforeChange:(se,ie,pe)=>{$(pe),n&&n(pe)},onBlur:se=>{te(!1),a&&a(se)},options:{mode:p||pc.Tr.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":R,"Ctrl-Space":R},hintOptions:{id:c,completeSingle:!1,schema:m},lint:{id:c,schema:m,setError:q}}}))});function eb({mediaType:e,mediaContent:r,properties:n,id:a,resolvedBody:o,formApi:c,getActiveSample:p,validate:m}){const v=e.examples||{},y=Object.keys(v),b=e.schema,I=Lr(b||{},e.name)||e.name===pc.Tr.MULTIPART||e.name===pc.Tr.URL_ENCODED,{exampleKey:R}=(0,Gd.C6)(e.operation,v),B=(0,St.YQ)((0,It.P6)(a,e.name,R,v))||(0,It.oY)(v[R],n),$=(0,M.useCallback)((se="",ie="",pe=[])=>ve=>{(0,St.WW)((0,It.P6)(a,se,ie,pe),ve)},[a]),te=(0,M.useCallback)(se=>{r==null||r.activateExampleName(se),c.setValue("body",p(se))},[c,p,r]),q=(0,M.useCallback)((se,ie)=>{c.setValue(`body.${se}`,ie)},[c]);return M.createElement(M.Fragment,null,y.length&&y.length!==1&&M.createElement(Gd.b_,{examples:v,onChange:te,exampleKey:R,panel:"try-it"})||null,I?M.createElement(zy,{mediaType:e,formApi:c,onChange:q}):M.createElement(q0,{id:"body"+a,field:"body",initialValue:B,schema:((o==null?void 0:o.content[e.name])||{}).schema,mode:e.name,validate:m,onChange:$(e.name,R,v)}))}const tb=(0,A.Pi)(eb);var rb=Object.defineProperty,nb=Object.defineProperties,ib=Object.getOwnPropertyDescriptors,Gv=Object.getOwnPropertySymbols,ab=Object.prototype.hasOwnProperty,ob=Object.prototype.propertyIsEnumerable,$v=(e,r,n)=>r in e?rb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,sb=(e,r)=>{for(var n in r||(r={}))ab.call(r,n)&&$v(e,n,r[n]);if(Gv)for(var n of Gv(r))ob.call(r,n)&&$v(e,n,r[n]);return e},lb=(e,r)=>nb(e,ib(r));function ub({body:e,formApi:r,resolvedBody:n,properties:a,id:o,validate:c}){var p,m;const v=e.content,y=(0,M.useCallback)(R=>{var B;if(!v||!v.hasSample)return"";const $=(B=v.active)==null?void 0:B.examples;if(!($!=null&&$[R]))return"";const te=$==null?void 0:$[R].value,q=a?To()(te,a,{arrayMerge:Qa.lN}):te;return JSON.stringify(q,null,2)},[v,a]),b=(p=v==null?void 0:v.operation)==null?void 0:p.activeExampleName;(0,M.useEffect)(()=>{var R,B;if((R=v==null?void 0:v.operation)!=null&&R.activeMimeName){const $=(0,It.P6)(o,v.operation.activeMimeName,b,(B=v==null?void 0:v.active)==null?void 0:B.examples);r.setValue("body",(0,St.YQ)($)||y(b||""))}else r.setValue("body",JSON.stringify(a||{},null,2))},[b,(m=v==null?void 0:v.operation)==null?void 0:m.activeMimeName,v==null?void 0:v.active]);const I=R=>M.createElement(Dy.C,lb(sb({},R),{variant:"dark",fullWidth:!0,Label:Vy,Dropdown:jy.Lt}));return M.createElement(M.Fragment,null,M.createElement(By.d,{content:e.content,renderDropdown:I},R=>M.createElement(tb,{mediaType:R,mediaContent:v,resolvedBody:n,id:o,properties:a,getActiveSample:y,formApi:r,validate:c})))}const fb=(0,A.Pi)(ub);var cb=s(61687);const db=ma(({initValue:e,paramEnum:r,fieldApi:n})=>{const[a,o]=(0,M.useState)(),c=r.map((v,y)=>({idx:y,value:v})),p=v=>{n.setValue(v.value),o(v.value)};(0,Dt.useMount)(()=>{if(!!e)if(Array.isArray(e)){const v=e.length?e[0]:"";o(v),n.setValue(v)}else o(e),n.setValue(e)});const m=()=>{n.setValue(""),o("")};return M.createElement(nn.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:a,options:c,handleClear:m,onChange:p})}),pb=({name:e,param:r,place:n,renderParameter:a})=>{var o,c,p,m,v;const[y,b]=M.useState([]),I=()=>{b([...y,y.length?y[y.length-1]+1:0])},R=$=>{b(y.filter(te=>te!==$))},B=(o=r.schema.items)!=null&&o.fields?(c=r.schema.items)==null?void 0:c.fields:[{schema:((p=r.schema.items)==null?void 0:p.schema)||r.schema.items,name:"",required:r.required,description:(m=r.schema.items)==null?void 0:m.description,externalDocs:(v=r.schema.items)==null?void 0:v.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return M.createElement(M.Fragment,null,M.createElement(Kv,null,M.createElement(pt.lX,{required:r.required},e,"(",y.length," items)"),M.createElement("span",{onClick:I},"Add item +")),y==null?void 0:y.map(($,te)=>M.createElement(Kv,{key:$},M.createElement(hb,{onClick:()=>R($)},"delete"),B.map(q=>a(q,n,`${e}.[${$}]`,`[${te}]${q.name&&"."+q.name}`)))))},Kv=Vt.ZP.div`
|
|
143
323
|
display: flex;
|
|
144
324
|
width: 100%;
|
|
145
325
|
align-items: center;
|
|
@@ -160,12 +340,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
160
340
|
color: #fff;
|
|
161
341
|
}
|
|
162
342
|
}
|
|
163
|
-
`,
|
|
343
|
+
`,hb=Vt.ZP.span`
|
|
164
344
|
background: transparent;
|
|
165
345
|
border: none;
|
|
166
346
|
cursor: pointer;
|
|
167
347
|
position: relative;
|
|
168
|
-
`;var
|
|
348
|
+
`;var Ru=(e=>(e.ARRAY="array",e.OBJECT="object",e))(Ru||{});function vb({schema:e,example:r}){return`(${e.type})`+(r?` ${r}`:"")}function gb(e){const r={};return e.forEach(n=>{n.in&&(r[n.in]||(r[n.in]=[]),r[n.in].push(n))}),r}function mb({schema:e,required:r}){return n=>{if(r&&!n)return"Field is required";if(r&&e.type===Ru.ARRAY&&Array.isArray(n)){if(n.length>(e.rawSchema&&e.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${e.rawSchema.maxItems}`;if(n.length<(e.rawSchema&&e.rawSchema.minItems||0)){const a=e.rawSchema.minItems;return`You should select at least ${a===1?`${a} item`:`${a} items`}`}}}}function yb(e){if(e.type===Ru.ARRAY){const r=e.default||e.example;if(!r&&typeof e.rawSchema.items!="boolean"&&Array.isArray(e.rawSchema.items)){if(e.rawSchema.items[0].default)return[e.rawSchema.items[0].default];if(e.rawSchema.items[0].example)return[e.rawSchema.items[0].example]}if(!r&&typeof e.rawSchema.items!="boolean"&&!Array.isArray(e.rawSchema.items)&&(0,St.Kn)(e.rawSchema.items)){if(e.rawSchema.items.default)return[e.rawSchema.items.default];if(e.rawSchema.items.example)return[e.rawSchema.items.example]}return r||[]}else return(Number.isInteger(e.default)?e.default.toString():e.default)||e.example}function bb({oneOfType:e}){return e}const xb=["path","query","cookie","header"];function Sb({id:e,param:r,values:n}){const a=(0,M.useMemo)(()=>mb(r),[r]),o=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,c=yb(r.schema),p=e.split(".").map(m=>(0,St.dw)(m));return o?M.createElement(pt.NI,null,M.createElement(db,{initValue:c,paramEnum:o,field:e})):M.createElement(Mn,{fullWidth:!0,"data-cy":"parameter-input",id:e,field:e,placeholder:vb(r),validate:a,initialValue:c||(0,St.U2)(n,p),validateOnBlur:!0,validateOnChange:!0})}function wb({values:e,operation:r}){const n=(0,M.useMemo)(()=>gb(r.parameters||[]),[r]),a=(c,p,m,v)=>{var y;const b=m?(0,St.s1)(m,c.name):c.name,I=bb(c.schema),R=m?[p,m]:[c.in],B=(0,St.s1)(...R,(0,St.A8)(c.name));return I&&console.warn(`Unsupported parameter definition: "${I}"`),c.schema.type===Ru.ARRAY?M.createElement(pb,{key:B,name:b,param:c,place:p,renderParameter:a}):c.schema.type===Ru.OBJECT?(y=c.schema.fields)==null?void 0:y.map($=>a($,p,b)):M.createElement(pt.NI,{key:B},M.createElement(pt.lX,{required:c.required},v||b,":"),I?M.createElement(pt.GE,null,"Unsupported field schema definition"):M.createElement(Sb,{id:B,param:c,values:e}))},o=c=>{const p=n[c];return!p||!p.length?null:M.createElement(M.Fragment,{key:c},M.createElement(pt.NI,null,M.createElement(pt.iG,null," # ",c," parameters "),M.createElement("span",null,"\xA0")),p.map(m=>a(m,c)))};return M.createElement(pt.iA,null,xb.map(o))}var Ab=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function Cb(e){return Ab(this,null,function*(){return(yield fetch(e)).json()})}const Eb=Vt.ZP.div`
|
|
169
349
|
position: relative;
|
|
170
350
|
height: 4px;
|
|
171
351
|
display: block;
|
|
@@ -267,7 +447,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
267
447
|
right: -8%;
|
|
268
448
|
}
|
|
269
449
|
}
|
|
270
|
-
`,
|
|
450
|
+
`,Yv=()=>M.createElement(Eb,null,M.createElement("div",{className:"indeterminate"})),Ob=Vt.ZP.div`
|
|
451
|
+
font-family: var(--font-family-monospaced);
|
|
452
|
+
margin-top: 10px;
|
|
453
|
+
line-height: 1;
|
|
454
|
+
padding-left: 10px;
|
|
455
|
+
border-left: 1px solid gray;
|
|
456
|
+
`,Tb=Vt.ZP.div`
|
|
457
|
+
margin-bottom: 15px;
|
|
458
|
+
`,Pb=Vt.ZP.div`
|
|
459
|
+
padding: 8px 0 20px;
|
|
460
|
+
`,Ib=Vt.ZP.div`
|
|
461
|
+
padding: 4px 0;
|
|
462
|
+
`;var kb=Object.defineProperty,Fb=Object.defineProperties,Rb=Object.getOwnPropertyDescriptors,Jv=Object.getOwnPropertySymbols,Lb=Object.prototype.hasOwnProperty,Mb=Object.prototype.propertyIsEnumerable,Xv=(e,r,n)=>r in e?kb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Nb=(e,r)=>{for(var n in r||(r={}))Lb.call(r,n)&&Xv(e,n,r[n]);if(Jv)for(var n of Jv(r))Mb.call(r,n)&&Xv(e,n,r[n]);return e},Db=(e,r)=>Fb(e,Rb(r));const Bb=Vt.ZP.input`
|
|
271
463
|
cursor: pointer;
|
|
272
464
|
margin-left: 0;
|
|
273
465
|
margin-right: 5px;
|
|
@@ -276,7 +468,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
276
468
|
align-self: baseline;
|
|
277
469
|
margin-top: 0;
|
|
278
470
|
margin-bottom: 0;
|
|
279
|
-
`,
|
|
471
|
+
`,jb=Vt.ZP.label`
|
|
280
472
|
display: inline-block;
|
|
281
473
|
cursor: pointer;
|
|
282
474
|
vertical-align: middle;
|
|
@@ -286,7 +478,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
286
478
|
|
|
287
479
|
overflow-wrap: break-word;
|
|
288
480
|
line-height: 20px;
|
|
289
|
-
`,
|
|
481
|
+
`,Vb=Vt.ZP.div`
|
|
290
482
|
width: ${({fullWidth:e})=>e?"100%":"50%"};
|
|
291
483
|
display: inline-flex;
|
|
292
484
|
align-items: center;
|
|
@@ -300,208 +492,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
300
492
|
margin-top: 5px;
|
|
301
493
|
}
|
|
302
494
|
`}
|
|
303
|
-
`;function
|
|
495
|
+
`;function Ub(e,r){const{fullWidth:n,id:a,label:o,nowrap:c}=e;return M.createElement(Vb,{fullWidth:n,nowrap:c},M.createElement(Bb,Db(Nb({},e),{type:"checkbox",ref:r})),M.createElement(jb,{htmlFor:a},o))}const Qv=(0,M.forwardRef)(Ub),Wb=11,Hb=ma(({items:e,fieldApi:r,validateOnChange:n,maxDisplayedItems:a,showControls:o,trimItemsLength:c})=>{const[p,m]=(0,M.useState)(!0),v=q=>{const se=q.target.value,ie=q.target.checked;r.setTouched(!0);const pe=r.getValue()||[];let ve;if(ie)ve=[...pe,se];else{const ge=pe.indexOf(se);ve=[...pe.slice(0,ge),...pe.slice(ge+1)]}r.setValue(ve)},y=q=>r.getValue().includes(q),b=()=>{m(q=>!q)},I=()=>{r.setValue(e)},R=()=>{r.setValue([])},B=r.getError(),$=a||Wb,te=c&&p?e.slice(0,$):e;return M.createElement("div",null,o?M.createElement(zb,null,M.createElement(Dt.SamplesControlButton,{onClick:()=>{I()}},"Select all"),M.createElement(Dt.SamplesControlButton,{onClick:()=>{R()}},"Clear")):null,M.createElement("div",null,te.map(q=>M.createElement(Qv,{fullWidth:!0,id:q,value:q,checked:y(q),label:q,key:q,onChange:se=>{v(se),n&&r.validate()}})),e.length>$&&c?M.createElement(Gb,{onClick:()=>{b()}},p?"Show all":"Collapse"):null),B?M.createElement(pt.Xq,null,B):"")}),zb=(0,Vt.ZP)(Dt.SampleControls)`
|
|
304
496
|
opacity: 1;
|
|
305
497
|
text-align: left;
|
|
306
|
-
`,
|
|
498
|
+
`,Gb=(0,Vt.ZP)(Dt.SamplesControlButton)`
|
|
307
499
|
float: right;
|
|
308
|
-
`;function Oh(e){const{scopes:r,id:n}=e;let a=[];try{a=JSON.parse((0,Bt.YQ)(`auth.${n}.scopes`))}catch(o){}return!r||!r.length?h.createElement(h.Fragment,null):h.createElement(ft.NI,null,h.createElement(ft.lX,null," Scopes: "),h.createElement($y,{field:`auth.${n}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}var Jy=Object.defineProperty,Xy=Object.defineProperties,Qy=Object.getOwnPropertyDescriptors,Th=Object.getOwnPropertySymbols,Zy=Object.prototype.hasOwnProperty,_y=Object.prototype.propertyIsEnumerable,Pd=(e,r,n)=>r in e?Jy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,qf=(e,r)=>{for(var n in r||(r={}))Zy.call(r,n)&&Pd(e,n,r[n]);if(Th)for(var n of Th(r))_y.call(r,n)&&Pd(e,n,r[n]);return e},Id=(e,r)=>Xy(e,Qy(r)),zl=(e,r,n)=>(Pd(e,typeof r!="symbol"?r+"":r,n),n),qy=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function e0(e){if(!e)return"Field is required"}class Gl extends h.Component{constructor(){super(...arguments),zl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),zl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),zl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),zl(this,"handleCodeVerifierChange",r=>qy(this,[r],function*({target:{value:n}}){const a=yield ah(n);this.setState({codeVerifier:n,validCodeChallenge:a})}))}get values(){var r,n;return((n=(r=this.props.form.values)==null?void 0:r.auth)==null?void 0:n[this.props.id])||{}}get errors(){var r,n;return((n=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:n[this.props.id])||{}}get pkceInputActionButtonProps(){if(this.state.codeVerifier!==void 0&&this.state.codeChallenge!==this.state.validCodeChallenge)return{label:"sync",onClick:()=>{this.state.codeVerifier&&this.setState({codeChallenge:this.state.validCodeChallenge})}}}componentDidMount(){if(this.props.usePkce){const r=(0,ja.CY)(43);ah(r).then(n=>{this.setState({codeVerifier:r,codeChallenge:n,validCodeChallenge:n})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:n,usePkce:a,id:o,tokenUrl:f,authCorsProxyUrl:d,tokenEndpointAuthMethod:m}=this.props;if(!(0,ja.Qr)(this.errors))return;this.setState({loading:!0,error:null});const g=d?d+(0,Xt.jg)(r):r,b=d&&f?d+(0,Xt.jg)(f):f,x=this.props.formApi.getValue(`auth.${o}.scopes`),I={authorizationUrl:g.startsWith("http")?g:this.props.server+g,clientId:this.values.client_id,scopes:x,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:N=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,N),this.setState({loading:!1,error:null})},errorCallback:N=>{this.setState({loading:!1,error:(N==null?void 0:N.message)||"Failed to retrieve the access token"})}};if(n==="implicit"&&Ai.authorizeImplicit(I),!(0,Xt.xl)(m)){console.log(`Unsupported token endpoint auth method: ${m}`);return}n==="authorizationCode"&&Ai.authorizeAuthorizationCode(qf(Id(qf({},I),{tokenUrl:b!=null&&b.startsWith("http")?b:this.props.server+b,clientSecret:this.values.client_secret,extraHeaders:(0,Xt.Or)({authMethod:m,clientId:this.values.client_id,clientSecret:this.values.client_secret})}),a&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),Ai.clearRedirectData(this.props.flow)}render(){const{error:r,loading:n}=this.state,{id:a,scopes:o,authorizationUrl:f,flow:d,usePkce:m,defaultValues:g}=this.props;if(!f)return h.createElement(ft.Xq,null,"No flow info");let b=(0,Bt.YQ)(`auth.${a}.token`)||JSON.stringify(g==null?void 0:g.token);b=b?JSON.parse(b):"";const x=(0,Bt.Al)(a,"client_id"),I={field:`auth.${a}.client_id`,fullWidth:!0,initialValue:(0,Bt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(g==null?void 0:g.client_id),initValue:(0,Bt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(g==null?void 0:g.client_id),placeholder:"Your OAuth2 app Client ID",validate:e0,validateOnBlur:!0,validateOnChange:!0};return h.createElement("div",null,h.createElement(ft.n5,null,h.createElement(ft.NI,null,h.createElement(ft.lX,null," Client ID: "),x?h.createElement(Wl,Id(qf({},I),{options:x})):h.createElement(Dn,Id(qf({},I),{"data-cy":"client-id-input",panel:"try-it"}))),d==="authorizationCode"&&h.createElement(h.Fragment,null,(!(m!=null&&m.hideClientSecretInput)||!m)&&h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Client Secret:"),h.createElement(Dn,{type:"password",fullWidth:!0,field:`auth.${a}.client_secret`,initialValue:(0,Bt.YQ)(`auth.${a}.client_secret`)||(g==null?void 0:g.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),m&&!m.disableManualConfiguration&&h.createElement(n0,null,h.createElement(Eh,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&h.createElement(i0,null,h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Code Verifier"),h.createElement(Ul,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,panel:"try-it","data-cy":"code-verifier-input"})),h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Code Challenge"),h.createElement(Ul,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:N}})=>{this.setState({codeChallenge:N})},inputActionButton:this.pkceInputActionButtonProps,panel:"try-it","data-cy":"code-challenge-input"}))))),h.createElement(Dn,{fullWidth:!0,field:`auth.${a}.token`,type:"hidden",initialValue:b,panel:"try-it"}),h.createElement(Oh,{id:a,scopes:o}),this.values.token&&this.values.token.access_token?h.createElement(ft.NI,null,h.createElement(ft.lX,null," Access Token: "),h.createElement(Ul,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token,panel:"try-it"})):null),h.createElement(r0,null,this.values.token&&this.values.token.access_token?h.createElement(vn.Button,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):n?h.createElement(h.Fragment,null,h.createElement(vn.Button,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),h.createElement(wh,null)):h.createElement(vn.Button,{fullWidth:!0,disabled:!(0,ja.Qr)(this.errors),onClick:()=>{this.handleAuthorize(f)}},"Authorize")),n||r||!this.values.token||!this.values.token.access_token&&h.createElement(ft.n5,null,h.createElement(ft.NI,null,n?h.createElement(ft.GE,null,"Please, finish your authorization flow or cancel authorization."):r?h.createElement(h.Fragment,null,h.createElement(t0,null,h.createElement(ft.Xq,null,r))):!this.values.token||!this.values.token.access_token?h.createElement(ft.GE,null," No Access Token. Please, Authorize. "):null)))}}zl(Gl,"contextType",Xn.OptionsContext);const t0=Ut.ZP.div`
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
line-height: 1;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
`,
|
|
315
|
-
margin-bottom: 15px;
|
|
316
|
-
`,n0=Ut.ZP.div`
|
|
317
|
-
padding: 8px 0 20px;
|
|
318
|
-
`,i0=Ut.ZP.div`
|
|
319
|
-
padding: 4px 0;
|
|
320
|
-
`;var a0=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function o0(e){var r,n;const{scheme:a,defaultValues:o}=e,[f,d]=(0,h.useState)({}),[m,g]=(0,h.useState)(),[b,x]=(0,h.useState)(!1);(0,h.useEffect)(()=>{I(a.openIdConnectUrl)},[a.openIdConnectUrl]);const I=N=>a0(this,null,function*(){x(!0),g("");try{const j=yield Ty(N);d(j)}catch(j){g(j.message)}x(!1)});return b?h.createElement(s0,null):m?h.createElement(Ph,{message:m}):h.createElement("div",null,h.createElement("div",null,(r=f==null?void 0:f.response_types_supported)!=null&&r.includes("token")?h.createElement(h.Fragment,null,h.createElement(Bn.S6,null,"OAuth2 Implicit Flow"),h.createElement(Gl,{key:e.id,authorizationUrl:f.authorization_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:f.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,flow:"implicit",defaultValues:o})):(n=f==null?void 0:f.response_types_supported)!=null&&n.includes("code")?h.createElement(h.Fragment,null,h.createElement(Bn.S6,null,"OAuth2 Authorization Flow"),h.createElement(Gl,{key:e.id,authorizationUrl:f.authorization_endpoint,tokenUrl:f.token_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:f.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,tokenEndpointAuthMethod:f==null?void 0:f.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:o})):h.createElement("div",null,"Unsupported flow")))}function s0(){return h.createElement("div",null,h.createElement("div",null,h.createElement("div",null,"Fetching OpenID Connect metadata..."),h.createElement(wh,null)))}function Ph({message:e}){return h.createElement("div",null,h.createElement("div",null,h.createElement(ft.Xq,null,e)))}var l0=Object.defineProperty,u0=Object.defineProperties,f0=Object.getOwnPropertyDescriptors,Ih=Object.getOwnPropertySymbols,c0=Object.prototype.hasOwnProperty,d0=Object.prototype.propertyIsEnumerable,kd=(e,r,n)=>r in e?l0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,kh=(e,r)=>{for(var n in r||(r={}))c0.call(r,n)&&kd(e,n,r[n]);if(Ih)for(var n of Ih(r))d0.call(r,n)&&kd(e,n,r[n]);return e},Fh=(e,r)=>u0(e,f0(r)),ec=(e,r,n)=>(kd(e,typeof r!="symbol"?r+"":r,n),n),p0=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function h0(e){if(!e)return"Token is required"}class v0 extends h.Component{constructor(){super(...arguments),ec(this,"state",{error:"",loading:!1,tokenMasked:!0}),ec(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,Bt.WW)(`auth.${this.props.id}.token`,"")}),ec(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),ec(this,"requestToken",()=>p0(this,null,function*(){if(this.state.loading)return;const{server:r,flow:n,authCorsProxyUrl:a}=this.props,o=a&&n.tokenUrl?a+(0,Xt.jg)(n.tokenUrl):n.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const f=this.values.client_id,d=this.values.client_secret;if(!f||!d){console.log("Provide client_id and client_secret");return}this.setState({loading:!0});const m=n["x-tokenEndpointAuthMethod"];if(!(0,Xt.xl)(m)){console.log(`Unsupported token endpoint auth method: ${m}`);return}yield Ai.authorizeClientCredentials({tokenUrl:o.startsWith("http")?o:r+o,clientId:f,clientSecret:d,scopes:this.values.scopes,extraHeaders:(0,Xt.Or)({authMethod:m,clientId:f,clientSecret:d}),successCallback:g=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,g),this.setState({loading:!1})},errorCallback:g=>{this.clearToken(),this.setState({error:g.message,loading:!1})}})}))}get values(){var r,n,a;return((a=(n=(r=this.props.form)==null?void 0:r.values)==null?void 0:n.auth)==null?void 0:a[this.props.id])||{}}get errors(){var r,n;return((n=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:n[this.props.id])||{}}render(){const{loading:r,error:n,tokenMasked:a}=this.state,{id:o,defaultValues:f}=this.props,d=Object.keys(this.props.flow.scopes);let m=(0,Bt.YQ)(`auth.${o}.token`)||JSON.stringify(f==null?void 0:f.token);m=m?JSON.parse(m):"";const g=(0,Bt.Al)(o,"client_id"),b={field:`auth.${o}.client_id`,fullWidth:!0,initialValue:(0,Bt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(f==null?void 0:f.client_id),initValue:(0,Bt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(f==null?void 0:f.client_id),placeholder:"Your OAuth2 app Client ID"};return h.createElement(h.Fragment,null,h.createElement(ft.n5,null,h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Client ID:"),g?h.createElement(Wl,Fh(kh({},b),{options:g})):h.createElement(Dn,Fh(kh({},b),{type:"password",panel:"try-it"}))),h.createElement(ft.NI,null,h.createElement(ft.lX,null,"Client Secret:"),h.createElement(Dn,{type:"password",fullWidth:!0,field:`auth.${o}.client_secret`,initialValue:(0,Bt.YQ)(`auth.${o}.client_secret`)||(f==null?void 0:f.client_secret),panel:"try-it"})),h.createElement(Dn,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:m,validate:h0}),h.createElement(Oh,{id:o,scopes:d})),h.createElement(vn.Button,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),h.createElement(ft.ph,null," Access Token "),n?h.createElement(ft.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",h.createElement("pre",null,n)," "):this.values.token&&this.values.token.access_token?h.createElement(ft.TR,null,h.createElement(ft.WA,{length:this.values.token.access_token.length,masked:a},this.values.token.access_token),h.createElement(ft.lf,{onClick:this.toggleTokenMask},a?"Show":"Hide"," "),h.createElement(ft.h,{onClick:this.clearToken}," Clear ")):h.createElement(ft.Xq,{style:{marginBottom:"1em"}},"No token"))}}const g0=v0;var m0=Object.defineProperty,y0=Object.defineProperties,b0=Object.getOwnPropertyDescriptors,Rh=Object.getOwnPropertySymbols,x0=Object.prototype.hasOwnProperty,S0=Object.prototype.propertyIsEnumerable,Fd=(e,r,n)=>r in e?m0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ms=(e,r)=>{for(var n in r||(r={}))x0.call(r,n)&&Fd(e,n,r[n]);if(Rh)for(var n of Rh(r))S0.call(r,n)&&Fd(e,n,r[n]);return e},ys=(e,r)=>y0(e,b0(r)),Lh=(e,r,n)=>(Fd(e,typeof r!="symbol"?r+"":r,n),n);class w0 extends h.Component{constructor(){super(...arguments),Lh(this,"state",{activeScheme:0}),Lh(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,Bt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const a=r.operation.security.map(d=>d.schemes.map(m=>m.id).join(" and ")),o=(0,Bt.YQ)("securityRequirementName"),f=a.findIndex(d=>d===o);return{activeScheme:f<0?0:f}}render(){const{securityDefaults:r}=this.props,{activeScheme:n}=this.state,a=this.props.operation.security,f=a.map(d=>d.schemes.map(m=>m.id).join(" and ")).filter(Boolean).map((d,m)=>({value:d,idx:m}));return f.length===0?h.createElement(Ph,{message:"Cannot find security schema in the definition"}):h.createElement(h.Fragment,null,h.createElement(ft.n5,null,f.length>1&&h.createElement(ft.NI,null,h.createElement(ft.lX,null," Security scheme: "),h.createElement(Bn.VD,{variant:"dark",fullWidth:!0,options:f,value:f[n].value,onChange:this.handleSchemeChange}))||null,a[n].schemes.map(d=>{var m,g,b,x,I,N,j;const W=(0,Bt.A8)(d.id);if(d.type==="apiKey"){const ee=(0,Bt.Al)(W,""),te={field:`auth.${W}`,fullWidth:!0,initialValue:(0,Xt.NG)(d)||(0,Bt.YQ)(`auth.${W}`)||(r==null?void 0:r[W]),initValue:(0,Xt.NG)(d)||(0,Bt.YQ)(`auth.${W}`)||(r==null?void 0:r[W]),validate:Xt.np,validateOnBlur:!0,validateOnChange:!0};return h.createElement(ft.NI,{key:W},h.createElement(ft.lX,null," ",d.name,": "),ee?h.createElement(Wl,ys(ms({},te),{options:ee})):h.createElement(Dn,ys(ms({},te),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(d.type==="http"){if(d.scheme==="basic"){const ee=(0,Bt.Al)(W,"username"),te={field:`auth.${W}.username`,fullWidth:!0,initialValue:(0,Bt.YQ)(`auth.${W}.username`)||((m=r==null?void 0:r[W])==null?void 0:m.username),initValue:(0,Bt.YQ)(`auth.${W}.username`)||((g=r==null?void 0:r[W])==null?void 0:g.username),validate:Xt.np,validateOnBlur:!0,validateOnChange:!0};return h.createElement(h.Fragment,{key:W},h.createElement(ft.NI,null,h.createElement(ft.lX,null," ",(0,jl.l)("tryItAuthBasicUsername"),": "),ee?h.createElement(Wl,ys(ms({},te),{options:ee})):h.createElement(Dn,ys(ms({},te),{panel:"try-it"}))),h.createElement(ft.NI,null,h.createElement(ft.lX,null," ",(0,jl.l)("tryItAuthBasicPassword"),": "),h.createElement(Dn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${W}.password`,initialValue:(0,Bt.YQ)(`auth.${W}.password`)||((b=r==null?void 0:r[W])==null?void 0:b.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(d.scheme==="bearer"){const ee=(0,Bt.Al)(W,""),te={field:`auth.${W}`,fullWidth:!0,initialValue:(0,Bt.YQ)(`auth.${W}`)||(r==null?void 0:r[W]),initValue:(0,Bt.YQ)(`auth.${W}`)||(r==null?void 0:r[W]),validate:Xt.np,validateOnBlur:!0,validateOnChange:!0};return h.createElement(h.Fragment,{key:W},h.createElement(ft.NI,null,h.createElement(ft.lX,null," Bearer Token: "),ee?h.createElement(Wl,ys(ms({},te),{options:ee})):h.createElement(Dn,ys(ms({},te),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(d.type==="oauth2"&&d.flows&&d.flows.clientCredentials)return h.createElement(g0,{key:W,flow:d.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:W,form:this.props.form,formApi:this.props.formApi,clientId:d.flows.clientCredentials["x-defaultClientId"]||d["x-defaultClientId"],defaultValues:r==null?void 0:r[W]});if(d.type==="oauth2"&&d.flows&&d.flows.implicit)return h.createElement(Gl,{key:W,authorizationUrl:d.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((I=(x=d==null?void 0:d.flows)==null?void 0:x.implicit)==null?void 0:I.scopes)||{}),server:this.props.activeServer,id:W,form:this.props.form,formApi:this.props.formApi,clientId:d.flows.implicit["x-defaultClientId"]||d["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[W]});if(d.type==="oauth2"&&d.flows&&d.flows.authorizationCode)return h.createElement(Gl,{key:W,authorizationUrl:d.flows.authorizationCode.authorizationUrl,tokenUrl:d.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((N=d.flows.authorizationCode)==null?void 0:N.scopes)||{}),server:this.props.activeServer,id:W,form:this.props.form,formApi:this.props.formApi,clientId:d.flows.authorizationCode["x-defaultClientId"]||d["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:d.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:d.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[W]});if(d.type==="oauth2"){let ee=(0,Bt.YQ)(`auth.${W}.token`)||JSON.stringify((j=r==null?void 0:r[W])==null?void 0:j.token);return ee=ee?JSON.parse(ee):{},h.createElement(h.Fragment,{key:W},h.createElement(ft.NI,null,h.createElement(ft.lX,null," Access Token Type: "),h.createElement(Dn,{fullWidth:!0,field:`auth.${W}.token.token_type`,initialValue:ee.token_type||"Bearer",panel:"try-it"})),h.createElement(ft.NI,null,h.createElement(ft.lX,null," Access Token: "),h.createElement(Dn,{type:"password",fullWidth:!0,field:`auth.${W}.token.access_token`,validate:Xt.np,initialValue:ee.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(d.type==="openIdConnect")return h.createElement(o0,{key:W,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:W,form:this.props.form,formApi:this.props.formApi,scheme:d,clientId:d["x-defaultClientId"],defaultValues:r==null?void 0:r[W]})}})),h.createElement("small",null,h.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Rd=s(74032),tc=s(43940),A0=Object.defineProperty,rc=Object.getOwnPropertySymbols,Mh=Object.prototype.hasOwnProperty,Nh=Object.prototype.propertyIsEnumerable,Dh=(e,r,n)=>r in e?A0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,C0=(e,r)=>{for(var n in r||(r={}))Mh.call(r,n)&&Dh(e,n,r[n]);if(rc)for(var n of rc(r))Nh.call(r,n)&&Dh(e,n,r[n]);return e},Bh=(e,r)=>{var n={};for(var a in e)Mh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&rc)for(var a of rc(e))r.indexOf(a)<0&&Nh.call(e,a)&&(n[a]=e[a]);return n},E0=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});const jh=(0,h.forwardRef)((e,r)=>{var n=Bh(e,[]);const a=n,{schema:o,contentName:f,onChange:d,name:m}=a,g=Bh(a,["schema","contentName","onChange","name"]),{render:b}=Pn(C0({field:m},g)),x=I=>E0(void 0,null,function*(){const N=yield oy(I.target.files,o);d(f,N)});return b(h.createElement("input",{"data-cy":"file-upload-input",type:"file",id:n.id,className:n.className,name:n.name,onChange:x,multiple:n.multiple,accept:n.accept,ref:r}))});jh.displayName="FileUpload";const O0=(0,$i.Pi)(e=>{var r;const{mediaType:n,onChange:a,formApi:o}=e,f=n.examples||{},{exampleKey:d}=(0,Rd.C6)(n.operation,f),m=(r=f[d])==null?void 0:r.rawValue,g=T0(n);(0,h.useEffect)(()=>o&&g.forEach(x=>{var I,N;const j=m==null?void 0:m[x.name],W=(N=(I=x.example)!=null?I:j==null?void 0:j.example)!=null?N:j,ee=typeof W=="object"?JSON.stringify(W):W;W!==void 0&&o.setValue("body."+x.name,`${ee}`)}),[d]);const b=n.schema||{};return fh(b,n.name)?h.createElement(Vh,null,h.createElement(ft.NI,null,h.createElement(Uh,{fullWidth:!0,id:`body.${n.name}`,name:`body.${n.name}`,accept:uh(n.name),schema:b,contentName:n.name,onChange:a}))):b.type!==gs.OBJECT&&!g?(console.warn(`Invalid schema for request body and mime type: "${n.name}"`,b),null):h.createElement(Vh,null,g.map(x=>{const I=x.schema||{contentMediaType:"",type:"",description:""},N=n.name===tc.T.MULTIPART&&ay(I),j=I.contentMediaType||"",W=N?h.createElement(Uh,{fullWidth:!0,id:"body."+x.name,name:"body."+x.name,accept:uh(j),multiple:I.type==="array",schema:I,contentName:x.name,onChange:a}):h.createElement(Dn,{fullWidth:!0,id:"body."+x.name,field:"body."+x.name,placeholder:I.description||x.name,panel:"try-it"});return h.createElement(ft.NI,{key:x.name},h.createElement(ft.lX,null,x.name,":"),W)}))});function T0(e){var r,n,a,o,f;return((n=(r=e.schema)==null?void 0:r.oneOf)!=null&&n.length?((o=e.schema)==null?void 0:o.oneOf[(a=e.schema)==null?void 0:a.activeOneOf].fields)||[]:((f=e.schema)==null?void 0:f.fields)||[]).filter(d=>!d.schema.readOnly)}const Vh=Ut.ZP.div`
|
|
321
|
-
> div {
|
|
322
|
-
margin-top: 10px;
|
|
323
|
-
}
|
|
324
|
-
`,Uh=(0,Ut.ZP)(jh)`
|
|
325
|
-
${mh("try-it")};
|
|
326
|
-
${({inputType:e})=>e==="password"?"padding-right: 40px;":""};
|
|
327
|
-
${({fullWidth:e})=>e?"width: 100%;":""}
|
|
328
|
-
`;var Wh=s(50397);const P0=(0,Ut.ZP)(Wh.A3)`
|
|
329
|
-
border-radius: var(--panel-border-radius);
|
|
330
|
-
margin-bottom: 10px;
|
|
331
|
-
`;var I0=s(63277),bs=s(23326);function nc(e,r){r===void 0&&(r=!1);var n=e.length,a=0,o="",f=0,d=16,m=0,g=0,b=0,x=0,I=0;function N(de,we){for(var xe=0,Ee=0;xe<de||!we;){var ye=e.charCodeAt(a);if(ye>=48&&ye<=57)Ee=Ee*16+ye-48;else if(ye>=65&&ye<=70)Ee=Ee*16+ye-65+10;else if(ye>=97&&ye<=102)Ee=Ee*16+ye-97+10;else break;a++,xe++}return xe<de&&(Ee=-1),Ee}function j(de){a=de,o="",f=0,d=16,I=0}function W(){var de=a;if(e.charCodeAt(a)===48)a++;else for(a++;a<e.length&&xs(e.charCodeAt(a));)a++;if(a<e.length&&e.charCodeAt(a)===46)if(a++,a<e.length&&xs(e.charCodeAt(a)))for(a++;a<e.length&&xs(e.charCodeAt(a));)a++;else return I=3,e.substring(de,a);var we=a;if(a<e.length&&(e.charCodeAt(a)===69||e.charCodeAt(a)===101))if(a++,(a<e.length&&e.charCodeAt(a)===43||e.charCodeAt(a)===45)&&a++,a<e.length&&xs(e.charCodeAt(a))){for(a++;a<e.length&&xs(e.charCodeAt(a));)a++;we=a}else I=3;return e.substring(de,we)}function ee(){for(var de="",we=a;;){if(a>=n){de+=e.substring(we,a),I=2;break}var xe=e.charCodeAt(a);if(xe===34){de+=e.substring(we,a),a++;break}if(xe===92){if(de+=e.substring(we,a),a++,a>=n){I=2;break}var Ee=e.charCodeAt(a++);switch(Ee){case 34:de+='"';break;case 92:de+="\\";break;case 47:de+="/";break;case 98:de+="\b";break;case 102:de+="\f";break;case 110:de+=`
|
|
332
|
-
`;break;case 114:de+="\r";break;case 116:de+=" ";break;case 117:var ye=N(4,!0);ye>=0?de+=String.fromCharCode(ye):I=4;break;default:I=5}we=a;continue}if(xe>=0&&xe<=31)if($l(xe)){de+=e.substring(we,a),I=2;break}else I=6;a++}return de}function te(){if(o="",I=0,f=a,g=m,x=b,a>=n)return f=n,d=17;var de=e.charCodeAt(a);if(Ld(de)){do a++,o+=String.fromCharCode(de),de=e.charCodeAt(a);while(Ld(de));return d=15}if($l(de))return a++,o+=String.fromCharCode(de),de===13&&e.charCodeAt(a)===10&&(a++,o+=`
|
|
333
|
-
`),m++,b=a,d=14;switch(de){case 123:return a++,d=1;case 125:return a++,d=2;case 91:return a++,d=3;case 93:return a++,d=4;case 58:return a++,d=6;case 44:return a++,d=5;case 34:return a++,o=ee(),d=10;case 47:var we=a-1;if(e.charCodeAt(a+1)===47){for(a+=2;a<n&&!$l(e.charCodeAt(a));)a++;return o=e.substring(we,a),d=12}if(e.charCodeAt(a+1)===42){a+=2;for(var xe=n-1,Ee=!1;a<xe;){var ye=e.charCodeAt(a);if(ye===42&&e.charCodeAt(a+1)===47){a+=2,Ee=!0;break}a++,$l(ye)&&(ye===13&&e.charCodeAt(a)===10&&a++,m++,b=a)}return Ee||(a++,I=1),o=e.substring(we,a),d=13}return o+=String.fromCharCode(de),a++,d=16;case 45:if(o+=String.fromCharCode(de),a++,a===n||!xs(e.charCodeAt(a)))return d=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=W(),d=11;default:for(;a<n&&se(de);)a++,de=e.charCodeAt(a);if(f!==a){switch(o=e.substring(f,a),o){case"true":return d=8;case"false":return d=9;case"null":return d=7}return d=16}return o+=String.fromCharCode(de),a++,d=16}}function se(de){if(Ld(de)||$l(de))return!1;switch(de){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function ie(){var de;do de=te();while(de>=12&&de<=15);return de}return{setPosition:j,getPosition:function(){return a},scan:r?ie:te,getToken:function(){return d},getTokenValue:function(){return o},getTokenOffset:function(){return f},getTokenLength:function(){return a-f},getTokenStartLine:function(){return g},getTokenStartCharacter:function(){return f-x},getTokenError:function(){return I}}}function Ld(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function $l(e){return e===10||e===13||e===8232||e===8233}function xs(e){return e>=48&&e<=57}function k0(e,r,n){var a,o,f,d,m;if(r){for(d=r.offset,m=d+r.length,f=d;f>0&&!Hh(e,f-1);)f--;for(var g=m;g<e.length&&!Hh(e,g);)g++;o=e.substring(f,g),a=F0(o,n)}else o=e,a=0,f=0,d=0,m=e.length;var b=R0(n,e),x=!1,I=0,N;n.insertSpaces?N=Md(" ",n.tabSize||4):N=" ";var j=nc(o,!1),W=!1;function ee(){return b+Md(N,a+I)}function te(){var Me=j.scan();for(x=!1;Me===15||Me===14;)x=x||Me===14,Me=j.scan();return W=Me===16||j.getTokenError()!==0,Me}var se=[];function ie(Me,Re,We){!W&&Re<m&&We>d&&e.substring(Re,We)!==Me&&se.push({offset:Re,length:We-Re,content:Me})}var de=te();if(de!==17){var we=j.getTokenOffset()+f,xe=Md(N,a);ie(xe,f,we)}for(;de!==17;){for(var Ee=j.getTokenOffset()+j.getTokenLength()+f,ye=te(),be="";!x&&(ye===12||ye===13);){var Se=j.getTokenOffset()+f;ie(" ",Ee,Se),Ee=j.getTokenOffset()+j.getTokenLength()+f,be=ye===12?ee():"",ye=te()}if(ye===2)de!==1&&(I--,be=ee());else if(ye===4)de!==3&&(I--,be=ee());else{switch(de){case 3:case 1:I++,be=ee();break;case 5:case 12:be=ee();break;case 13:x?be=ee():be=" ";break;case 6:be=" ";break;case 10:if(ye===6){be="";break}case 7:case 8:case 9:case 11:case 2:case 4:ye===12||ye===13?be=" ":ye!==5&&ye!==17&&(W=!0);break;case 16:W=!0;break}x&&(ye===12||ye===13)&&(be=ee())}var ke=j.getTokenOffset()+f;ie(be,Ee,ke),de=ye}return se}function Md(e,r){for(var n="",a=0;a<r;a++)n+=e;return n}function F0(e,r){for(var n=0,a=0,o=r.tabSize||4;n<e.length;){var f=e.charAt(n);if(f===" ")a++;else if(f===" ")a+=o;else break;n++}return Math.floor(a/o)}function R0(e,r){for(var n=0;n<r.length;n++){var a=r.charAt(n);if(a==="\r")return n+1<r.length&&r.charAt(n+1)===`
|
|
334
|
-
`?`\r
|
|
335
|
-
`:"\r";if(a===`
|
|
336
|
-
`)return`
|
|
337
|
-
`}return e&&e.eol||`
|
|
338
|
-
`}function Hh(e,r){return`\r
|
|
339
|
-
`.indexOf(e.charAt(r))!==-1}var Kl;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Kl||(Kl={}));function L0(e,r){var n=[],a=new Object,o=void 0,f={value:{},offset:0,length:0,type:"object",parent:void 0},d=!1;function m(g,b,x,I){f.value=g,f.offset=b,f.length=x,f.type=I,f.colonOffset=void 0,o=f}try{ic(e,{onObjectBegin:function(g,b){if(r<=g)throw a;o=void 0,d=r>g,n.push("")},onObjectProperty:function(g,b,x){if(r<b||(m(g,b,x,"property"),n[n.length-1]=g,r<=b+x))throw a},onObjectEnd:function(g,b){if(r<=g)throw a;o=void 0,n.pop()},onArrayBegin:function(g,b){if(r<=g)throw a;o=void 0,n.push(0)},onArrayEnd:function(g,b){if(r<=g)throw a;o=void 0,n.pop()},onLiteralValue:function(g,b,x){if(r<b||(m(g,b,x,$h(g)),r<=b+x))throw a},onSeparator:function(g,b,x){if(r<=b)throw a;if(g===":"&&o&&o.type==="property")o.colonOffset=b,d=!1,o=void 0;else if(g===","){var I=n[n.length-1];typeof I=="number"?n[n.length-1]=I+1:(d=!0,n[n.length-1]=""),o=void 0}}})}catch(g){if(g!==a)throw g}return{path:n,previousNode:o,isAtPropertyKey:d,matches:function(g){for(var b=0,x=0;b<g.length&&x<n.length;x++)if(g[b]===n[x]||g[b]==="*")b++;else if(g[b]!=="**")return!1;return b===g.length}}}function M0(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=Kl.DEFAULT);var a=null,o=[],f=[];function d(g){Array.isArray(o)?o.push(g):a!==null&&(o[a]=g)}var m={onObjectBegin:function(){var g={};d(g),f.push(o),o=g,a=null},onObjectProperty:function(g){a=g},onObjectEnd:function(){o=f.pop()},onArrayBegin:function(){var g=[];d(g),f.push(o),o=g,a=null},onArrayEnd:function(){o=f.pop()},onLiteralValue:d,onError:function(g,b,x){r.push({error:g,offset:b,length:x})}};return ic(e,m,n),o[0]}function N0(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=Kl.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function o(g){a.type==="property"&&(a.length=g-a.offset,a=a.parent)}function f(g){return a.children.push(g),g}var d={onObjectBegin:function(g){a=f({type:"object",offset:g,length:-1,parent:a,children:[]})},onObjectProperty:function(g,b,x){a=f({type:"property",offset:b,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:g,offset:b,length:x,parent:a})},onObjectEnd:function(g,b){o(g+b),a.length=g+b-a.offset,a=a.parent,o(g+b)},onArrayBegin:function(g,b){a=f({type:"array",offset:g,length:-1,parent:a,children:[]})},onArrayEnd:function(g,b){a.length=g+b-a.offset,a=a.parent,o(g+b)},onLiteralValue:function(g,b,x){f({type:$h(g),offset:b,length:x,parent:a,value:g}),o(b+x)},onSeparator:function(g,b,x){a.type==="property"&&(g===":"?a.colonOffset=b:g===","&&o(b))},onError:function(g,b,x){r.push({error:g,offset:b,length:x})}};ic(e,d,n);var m=a.children[0];return m&&delete m.parent,m}function D0(e,r){if(!!e){for(var n=e,a=0,o=r;a<o.length;a++){var f=o[a];if(typeof f=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var d=!1,m=0,g=n.children;m<g.length;m++){var b=g[m];if(Array.isArray(b.children)&&b.children[0].value===f){n=b.children[1],d=!0;break}}if(!d)return}else{var x=f;if(n.type!=="array"||x<0||!Array.isArray(n.children)||x>=n.children.length)return;n=n.children[x]}}return n}}function zh(e){if(!e.parent||!e.parent.children)return[];var r=zh(e.parent);if(e.parent.type==="property"){var n=e.parent.children[0].value;r.push(n)}else if(e.parent.type==="array"){var a=e.parent.children.indexOf(e);a!==-1&&r.push(a)}return r}function Nd(e){switch(e.type){case"array":return e.children.map(Nd);case"object":for(var r=Object.create(null),n=0,a=e.children;n<a.length;n++){var o=a[n],f=o.children[1];f&&(r[o.children[0].value]=Nd(f))}return r;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function B0(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}function Gh(e,r,n){if(n===void 0&&(n=!1),B0(e,r,n)){var a=e.children;if(Array.isArray(a))for(var o=0;o<a.length&&a[o].offset<=r;o++){var f=Gh(a[o],r,n);if(f)return f}return e}}function ic(e,r,n){n===void 0&&(n=Kl.DEFAULT);var a=nc(e,!1);function o(Se){return Se?function(){return Se(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function f(Se){return Se?function(ke){return Se(ke,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var d=o(r.onObjectBegin),m=f(r.onObjectProperty),g=o(r.onObjectEnd),b=o(r.onArrayBegin),x=o(r.onArrayEnd),I=f(r.onLiteralValue),N=f(r.onSeparator),j=o(r.onComment),W=f(r.onError),ee=n&&n.disallowComments,te=n&&n.allowTrailingComma;function se(){for(;;){var Se=a.scan();switch(a.getTokenError()){case 4:ie(14);break;case 5:ie(15);break;case 3:ie(13);break;case 1:ee||ie(11);break;case 2:ie(12);break;case 6:ie(16);break}switch(Se){case 12:case 13:ee?ie(10):j();break;case 16:ie(1);break;case 15:case 14:break;default:return Se}}}function ie(Se,ke,Me){if(ke===void 0&&(ke=[]),Me===void 0&&(Me=[]),W(Se),ke.length+Me.length>0)for(var Re=a.getToken();Re!==17;){if(ke.indexOf(Re)!==-1){se();break}else if(Me.indexOf(Re)!==-1)break;Re=se()}}function de(Se){var ke=a.getTokenValue();return Se?I(ke):m(ke),se(),!0}function we(){switch(a.getToken()){case 11:var Se=a.getTokenValue(),ke=Number(Se);isNaN(ke)&&(ie(2),ke=0),I(ke);break;case 7:I(null);break;case 8:I(!0);break;case 9:I(!1);break;default:return!1}return se(),!0}function xe(){return a.getToken()!==10?(ie(3,[],[2,5]),!1):(de(!1),a.getToken()===6?(N(":"),se(),be()||ie(4,[],[2,5])):ie(5,[],[2,5]),!0)}function Ee(){d(),se();for(var Se=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(Se||ie(4,[],[]),N(","),se(),a.getToken()===2&&te)break}else Se&&ie(6,[],[]);xe()||ie(4,[],[2,5]),Se=!0}return g(),a.getToken()!==2?ie(7,[2],[]):se(),!0}function ye(){b(),se();for(var Se=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(Se||ie(4,[],[]),N(","),se(),a.getToken()===4&&te)break}else Se&&ie(6,[],[]);be()||ie(4,[],[4,5]),Se=!0}return x(),a.getToken()!==4?ie(8,[4],[]):se(),!0}function be(){switch(a.getToken()){case 3:return ye();case 1:return Ee();case 10:return de(!0);default:return we()}}return se(),a.getToken()===17?n.allowEmptyContent?!0:(ie(4,[],[]),!1):be()?(a.getToken()!==17&&ie(9,[],[]),!0):(ie(4,[],[]),!1)}function j0(e,r){var n=nc(e),a=[],o,f=0,d;do switch(d=n.getPosition(),o=n.scan(),o){case 12:case 13:case 17:f!==d&&a.push(e.substring(f,d)),r!==void 0&&a.push(n.getTokenValue().replace(/[^\r\n]/g,r)),f=n.getPosition();break}while(o!==17);return a.join("")}function $h(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function c1(e,r,n){return V0(e,r,void 0,n)}function V0(e,r,n,a){for(var o,f=r.slice(),d=[],m=parseTree(e,d),g=void 0,b=void 0;f.length>0&&(b=f.pop(),g=findNodeAtLocation(m,f),g===void 0&&n!==void 0);)typeof b=="string"?n=(o={},o[b]=n,o):n=[n];if(g)if(g.type==="object"&&typeof b=="string"&&Array.isArray(g.children)){var x=findNodeAtLocation(g,[b]);if(x!==void 0)if(n===void 0){if(!x.parent)throw new Error("Malformed AST");var I=g.children.indexOf(x.parent),N=void 0,j=x.parent.offset+x.parent.length;if(I>0){var W=g.children[I-1];N=W.offset+W.length}else if(N=g.offset+1,g.children.length>1){var ee=g.children[1];j=ee.offset}return Po(e,{offset:N,length:j-N,content:""},a)}else return Po(e,{offset:x.offset,length:x.length,content:JSON.stringify(n)},a);else{if(n===void 0)return[];var te=JSON.stringify(b)+": "+JSON.stringify(n),se=a.getInsertionIndex?a.getInsertionIndex(g.children.map(function(Se){return Se.children[0].value})):g.children.length,ie=void 0;if(se>0){var W=g.children[se-1];ie={offset:W.offset+W.length,length:0,content:","+te}}else g.children.length===0?ie={offset:g.offset+1,length:0,content:te}:ie={offset:g.offset+1,length:0,content:te+","};return Po(e,ie,a)}}else if(g.type==="array"&&typeof b=="number"&&Array.isArray(g.children)){var de=b;if(de===-1){var te=""+JSON.stringify(n),ie=void 0;if(g.children.length===0)ie={offset:g.offset+1,length:0,content:te};else{var W=g.children[g.children.length-1];ie={offset:W.offset+W.length,length:0,content:","+te}}return Po(e,ie,a)}else if(n===void 0&&g.children.length>=0){var we=b,xe=g.children[we],ie=void 0;if(g.children.length===1)ie={offset:g.offset+1,length:g.length-2,content:""};else if(g.children.length-1===we){var W=g.children[we-1],Ee=W.offset+W.length,ye=g.offset+g.length;ie={offset:Ee,length:ye-2-Ee,content:""}}else ie={offset:xe.offset,length:g.children[we+1].offset-xe.offset,content:""};return Po(e,ie,a)}else if(n!==void 0){var ie=void 0,te=""+JSON.stringify(n);if(!a.isArrayInsertion&&g.children.length>b){var be=g.children[b];ie={offset:be.offset,length:be.length,content:te}}else if(g.children.length===0||b===0)ie={offset:g.offset+1,length:0,content:g.children.length===0?te:te+","};else{var se=b>g.children.length?g.children.length:b,W=g.children[se-1];ie={offset:W.offset+W.length,length:0,content:","+te}}return Po(e,ie,a)}else throw new Error("Can not "+(n===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+de+" as length is not sufficient")}else throw new Error("Can not add "+(typeof b!="number"?"index":"property")+" to parent of type "+g.type);else{if(n===void 0)throw new Error("Can not delete in empty document");return Po(e,{offset:m?m.offset:0,length:m?m.length:0,content:JSON.stringify(n)},a)}}function Po(e,r,n){if(!n.formattingOptions)return[r];var a=Kh(e,r),o=r.offset,f=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;o>0&&!isEOL(a,o-1);)o--;for(;f<a.length&&!isEOL(a,f);)f++}for(var d=format(a,{offset:o,length:f-o},n.formattingOptions),m=d.length-1;m>=0;m--){var g=d[m];a=Kh(a,g),o=Math.min(o,g.offset),f=Math.max(f,g.offset+g.length),f+=g.content.length-g.length}var b=e.length-(a.length-f)-o;return[{offset:o,length:b,content:a.substring(o,f)}]}function Kh(e,r){return e.substring(0,r.offset)+r.content+e.substring(r.offset+r.length)}function d1(e,r){return`\r
|
|
340
|
-
`.indexOf(e.charAt(r))!==-1}var Ss=nc,p1=L0,U0=M0,h1=N0,v1=D0,W0=Gh,H0=zh,z0=Nd,g1=ic,m1=j0;function y1(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function G0(e,r,n){return k0(e,r,n)}function b1(e,r,n,a){return edit.setProperty(e,r,n,a)}function x1(e,r){for(var n=r.length-1;n>=0;n--)e=edit.applyEdit(e,r[n]);return e}function Yl(e,r){if(e===r)return!0;if(e==null||r===null||r===void 0||typeof e!=typeof r||typeof e!="object"||Array.isArray(e)!==Array.isArray(r))return!1;var n,a;if(Array.isArray(e)){if(e.length!==r.length)return!1;for(n=0;n<e.length;n++)if(!Yl(e[n],r[n]))return!1}else{var o=[];for(a in e)o.push(a);o.sort();var f=[];for(a in r)f.push(a);if(f.sort(),!Yl(o,f))return!1;for(n=0;n<o.length;n++)if(!Yl(e[o[n]],r[o[n]]))return!1}return!0}function Qn(e){return typeof e=="number"}function da(e){return typeof e!="undefined"}function Vi(e){return typeof e=="boolean"}function $0(e){return typeof e=="string"}var Yh;(function(e){function r(n){return typeof n=="string"}e.is=r})(Yh||(Yh={}));var Dd;(function(e){function r(n){return typeof n=="string"}e.is=r})(Dd||(Dd={}));var Jh;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(Jh||(Jh={}));var ac;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(ac||(ac={}));var ii;(function(e){function r(a,o){return a===Number.MAX_VALUE&&(a=ac.MAX_VALUE),o===Number.MAX_VALUE&&(o=ac.MAX_VALUE),{line:a,character:o}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.uinteger(o.line)&&Ae.uinteger(o.character)}e.is=n})(ii||(ii={}));var _t;(function(e){function r(a,o,f,d){if(Ae.uinteger(a)&&Ae.uinteger(o)&&Ae.uinteger(f)&&Ae.uinteger(d))return{start:ii.create(a,o),end:ii.create(f,d)};if(ii.is(a)&&ii.is(o))return{start:a,end:o};throw new Error("Range#create called with invalid arguments[".concat(a,", ").concat(o,", ").concat(f,", ").concat(d,"]"))}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&ii.is(o.start)&&ii.is(o.end)}e.is=n})(_t||(_t={}));var ws;(function(e){function r(a,o){return{uri:a,range:o}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&_t.is(o.range)&&(Ae.string(o.uri)||Ae.undefined(o.uri))}e.is=n})(ws||(ws={}));var Xh;(function(e){function r(a,o,f,d){return{targetUri:a,targetRange:o,targetSelectionRange:f,originSelectionRange:d}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&_t.is(o.targetRange)&&Ae.string(o.targetUri)&&_t.is(o.targetSelectionRange)&&(_t.is(o.originSelectionRange)||Ae.undefined(o.originSelectionRange))}e.is=n})(Xh||(Xh={}));var Bd;(function(e){function r(a,o,f,d){return{red:a,green:o,blue:f,alpha:d}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.numberRange(o.red,0,1)&&Ae.numberRange(o.green,0,1)&&Ae.numberRange(o.blue,0,1)&&Ae.numberRange(o.alpha,0,1)}e.is=n})(Bd||(Bd={}));var Qh;(function(e){function r(a,o){return{range:a,color:o}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&_t.is(o.range)&&Bd.is(o.color)}e.is=n})(Qh||(Qh={}));var Zh;(function(e){function r(a,o,f){return{label:a,textEdit:o,additionalTextEdits:f}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.string(o.label)&&(Ae.undefined(o.textEdit)||ai.is(o))&&(Ae.undefined(o.additionalTextEdits)||Ae.typedArray(o.additionalTextEdits,ai.is))}e.is=n})(Zh||(Zh={}));var Jl;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Jl||(Jl={}));var _h;(function(e){function r(a,o,f,d,m,g){var b={startLine:a,endLine:o};return Ae.defined(f)&&(b.startCharacter=f),Ae.defined(d)&&(b.endCharacter=d),Ae.defined(m)&&(b.kind=m),Ae.defined(g)&&(b.collapsedText=g),b}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.uinteger(o.startLine)&&Ae.uinteger(o.startLine)&&(Ae.undefined(o.startCharacter)||Ae.uinteger(o.startCharacter))&&(Ae.undefined(o.endCharacter)||Ae.uinteger(o.endCharacter))&&(Ae.undefined(o.kind)||Ae.string(o.kind))}e.is=n})(_h||(_h={}));var jd;(function(e){function r(a,o){return{location:a,message:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&ws.is(o.location)&&Ae.string(o.message)}e.is=n})(jd||(jd={}));var Dt;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Dt||(Dt={}));var qh;(function(e){e.Unnecessary=1,e.Deprecated=2})(qh||(qh={}));var ev;(function(e){function r(n){var a=n;return Ae.objectLiteral(a)&&Ae.string(a.href)}e.is=r})(ev||(ev={}));var pa;(function(e){function r(a,o,f,d,m,g){var b={range:a,message:o};return Ae.defined(f)&&(b.severity=f),Ae.defined(d)&&(b.code=d),Ae.defined(m)&&(b.source=m),Ae.defined(g)&&(b.relatedInformation=g),b}e.create=r;function n(a){var o,f=a;return Ae.defined(f)&&_t.is(f.range)&&Ae.string(f.message)&&(Ae.number(f.severity)||Ae.undefined(f.severity))&&(Ae.integer(f.code)||Ae.string(f.code)||Ae.undefined(f.code))&&(Ae.undefined(f.codeDescription)||Ae.string((o=f.codeDescription)===null||o===void 0?void 0:o.href))&&(Ae.string(f.source)||Ae.undefined(f.source))&&(Ae.undefined(f.relatedInformation)||Ae.typedArray(f.relatedInformation,jd.is))}e.is=n})(pa||(pa={}));var As;(function(e){function r(a,o){for(var f=[],d=2;d<arguments.length;d++)f[d-2]=arguments[d];var m={title:a,command:o};return Ae.defined(f)&&f.length>0&&(m.arguments=f),m}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.title)&&Ae.string(o.command)}e.is=n})(As||(As={}));var ai;(function(e){function r(f,d){return{range:f,newText:d}}e.replace=r;function n(f,d){return{range:{start:f,end:f},newText:d}}e.insert=n;function a(f){return{range:f,newText:""}}e.del=a;function o(f){var d=f;return Ae.objectLiteral(d)&&Ae.string(d.newText)&&_t.is(d.range)}e.is=o})(ai||(ai={}));var Cs;(function(e){function r(a,o,f){var d={label:a};return o!==void 0&&(d.needsConfirmation=o),f!==void 0&&(d.description=f),d}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&Ae.string(o.label)&&(Ae.boolean(o.needsConfirmation)||o.needsConfirmation===void 0)&&(Ae.string(o.description)||o.description===void 0)}e.is=n})(Cs||(Cs={}));var Sn;(function(e){function r(n){var a=n;return Ae.string(a)}e.is=r})(Sn||(Sn={}));var Va;(function(e){function r(f,d,m){return{range:f,newText:d,annotationId:m}}e.replace=r;function n(f,d,m){return{range:{start:f,end:f},newText:d,annotationId:m}}e.insert=n;function a(f,d){return{range:f,newText:"",annotationId:d}}e.del=a;function o(f){var d=f;return ai.is(d)&&(Cs.is(d.annotationId)||Sn.is(d.annotationId))}e.is=o})(Va||(Va={}));var oc;(function(e){function r(a,o){return{textDocument:a,edits:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&lc.is(o.textDocument)&&Array.isArray(o.edits)}e.is=n})(oc||(oc={}));var Xl;(function(e){function r(a,o,f){var d={kind:"create",uri:a};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(d.options=o),f!==void 0&&(d.annotationId=f),d}e.create=r;function n(a){var o=a;return o&&o.kind==="create"&&Ae.string(o.uri)&&(o.options===void 0||(o.options.overwrite===void 0||Ae.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Ae.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Xl||(Xl={}));var Ql;(function(e){function r(a,o,f,d){var m={kind:"rename",oldUri:a,newUri:o};return f!==void 0&&(f.overwrite!==void 0||f.ignoreIfExists!==void 0)&&(m.options=f),d!==void 0&&(m.annotationId=d),m}e.create=r;function n(a){var o=a;return o&&o.kind==="rename"&&Ae.string(o.oldUri)&&Ae.string(o.newUri)&&(o.options===void 0||(o.options.overwrite===void 0||Ae.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Ae.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Ql||(Ql={}));var Zl;(function(e){function r(a,o,f){var d={kind:"delete",uri:a};return o!==void 0&&(o.recursive!==void 0||o.ignoreIfNotExists!==void 0)&&(d.options=o),f!==void 0&&(d.annotationId=f),d}e.create=r;function n(a){var o=a;return o&&o.kind==="delete"&&Ae.string(o.uri)&&(o.options===void 0||(o.options.recursive===void 0||Ae.boolean(o.options.recursive))&&(o.options.ignoreIfNotExists===void 0||Ae.boolean(o.options.ignoreIfNotExists)))&&(o.annotationId===void 0||Sn.is(o.annotationId))}e.is=n})(Zl||(Zl={}));var Vd;(function(e){function r(n){var a=n;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(o){return Ae.string(o.kind)?Xl.is(o)||Ql.is(o)||Zl.is(o):oc.is(o)}))}e.is=r})(Vd||(Vd={}));var sc=function(){function e(r,n){this.edits=r,this.changeAnnotations=n}return e.prototype.insert=function(r,n,a){var o,f;if(a===void 0?o=ai.insert(r,n):Sn.is(a)?(f=a,o=Va.insert(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(a),o=Va.insert(r,n,f)),this.edits.push(o),f!==void 0)return f},e.prototype.replace=function(r,n,a){var o,f;if(a===void 0?o=ai.replace(r,n):Sn.is(a)?(f=a,o=Va.replace(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(a),o=Va.replace(r,n,f)),this.edits.push(o),f!==void 0)return f},e.prototype.delete=function(r,n){var a,o;if(n===void 0?a=ai.del(r):Sn.is(n)?(o=n,a=Va.del(r,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),a=Va.del(r,o)),this.edits.push(a),o!==void 0)return o},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),tv=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(r,n){var a;if(Sn.is(r)?a=r:(a=this.nextId(),n=r),this._annotations[a]!==void 0)throw new Error("Id ".concat(a," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(a));return this._annotations[a]=n,this._size++,a},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),S1=function(){function e(r){var n=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new tv(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(oc.is(a)){var o=new sc(a.edits,n._changeAnnotations);n._textEditChanges[a.textDocument.uri]=o}})):r.changes&&Object.keys(r.changes).forEach(function(a){var o=new sc(r.changes[a]);n._textEditChanges[a]=o})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(r){if(lc.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:r.uri,version:r.version},a=this._textEditChanges[n.uri];if(!a){var o=[],f={textDocument:n,edits:o};this._workspaceEdit.documentChanges.push(f),a=new sc(o,this._changeAnnotations),this._textEditChanges[n.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var o=[];this._workspaceEdit.changes[r]=o,a=new sc(o),this._textEditChanges[r]=a}return a}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new tv,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;Cs.is(n)||Sn.is(n)?o=n:a=n;var f,d;if(o===void 0?f=Xl.create(r,a):(d=Sn.is(o)?o:this._changeAnnotations.manage(o),f=Xl.create(r,a,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d},e.prototype.renameFile=function(r,n,a,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var f;Cs.is(a)||Sn.is(a)?f=a:o=a;var d,m;if(f===void 0?d=Ql.create(r,n,o):(m=Sn.is(f)?f:this._changeAnnotations.manage(f),d=Ql.create(r,n,o,m)),this._workspaceEdit.documentChanges.push(d),m!==void 0)return m},e.prototype.deleteFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;Cs.is(n)||Sn.is(n)?o=n:a=n;var f,d;if(o===void 0?f=Zl.create(r,a):(d=Sn.is(o)?o:this._changeAnnotations.manage(o),f=Zl.create(r,a,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d},e}(),rv;(function(e){function r(a){return{uri:a}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.uri)}e.is=n})(rv||(rv={}));var nv;(function(e){function r(a,o){return{uri:a,version:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.uri)&&Ae.integer(o.version)}e.is=n})(nv||(nv={}));var lc;(function(e){function r(a,o){return{uri:a,version:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.uri)&&(o.version===null||Ae.integer(o.version))}e.is=n})(lc||(lc={}));var iv;(function(e){function r(a,o,f,d){return{uri:a,languageId:o,version:f,text:d}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.string(o.uri)&&Ae.string(o.languageId)&&Ae.integer(o.version)&&Ae.string(o.text)}e.is=n})(iv||(iv={}));var Io;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(n){var a=n;return a===e.PlainText||a===e.Markdown}e.is=r})(Io||(Io={}));var _l;(function(e){function r(n){var a=n;return Ae.objectLiteral(n)&&Io.is(a.kind)&&Ae.string(a.value)}e.is=r})(_l||(_l={}));var Zn;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Zn||(Zn={}));var Zr;(function(e){e.PlainText=1,e.Snippet=2})(Zr||(Zr={}));var av;(function(e){e.Deprecated=1})(av||(av={}));var ov;(function(e){function r(a,o,f){return{newText:a,insert:o,replace:f}}e.create=r;function n(a){var o=a;return o&&Ae.string(o.newText)&&_t.is(o.insert)&&_t.is(o.replace)}e.is=n})(ov||(ov={}));var sv;(function(e){e.asIs=1,e.adjustIndentation=2})(sv||(sv={}));var lv;(function(e){function r(n){var a=n;return a&&(Ae.string(a.detail)||a.detail===void 0)&&(Ae.string(a.description)||a.description===void 0)}e.is=r})(lv||(lv={}));var Ud;(function(e){function r(n){return{label:n}}e.create=r})(Ud||(Ud={}));var uv;(function(e){function r(n,a){return{items:n||[],isIncomplete:!!a}}e.create=r})(uv||(uv={}));var uc;(function(e){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function n(a){var o=a;return Ae.string(o)||Ae.objectLiteral(o)&&Ae.string(o.language)&&Ae.string(o.value)}e.is=n})(uc||(uc={}));var fv;(function(e){function r(n){var a=n;return!!a&&Ae.objectLiteral(a)&&(_l.is(a.contents)||uc.is(a.contents)||Ae.typedArray(a.contents,uc.is))&&(n.range===void 0||_t.is(n.range))}e.is=r})(fv||(fv={}));var cv;(function(e){function r(n,a){return a?{label:n,documentation:a}:{label:n}}e.create=r})(cv||(cv={}));var dv;(function(e){function r(n,a){for(var o=[],f=2;f<arguments.length;f++)o[f-2]=arguments[f];var d={label:n};return Ae.defined(a)&&(d.documentation=a),Ae.defined(o)?d.parameters=o:d.parameters=[],d}e.create=r})(dv||(dv={}));var pv;(function(e){e.Text=1,e.Read=2,e.Write=3})(pv||(pv={}));var hv;(function(e){function r(n,a){var o={range:n};return Ae.number(a)&&(o.kind=a),o}e.create=r})(hv||(hv={}));var Ui;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Ui||(Ui={}));var vv;(function(e){e.Deprecated=1})(vv||(vv={}));var gv;(function(e){function r(n,a,o,f,d){var m={name:n,kind:a,location:{uri:f,range:o}};return d&&(m.containerName=d),m}e.create=r})(gv||(gv={}));var mv;(function(e){function r(n,a,o,f){return f!==void 0?{name:n,kind:a,location:{uri:o,range:f}}:{name:n,kind:a,location:{uri:o}}}e.create=r})(mv||(mv={}));var yv;(function(e){function r(a,o,f,d,m,g){var b={name:a,detail:o,kind:f,range:d,selectionRange:m};return g!==void 0&&(b.children=g),b}e.create=r;function n(a){var o=a;return o&&Ae.string(o.name)&&Ae.number(o.kind)&&_t.is(o.range)&&_t.is(o.selectionRange)&&(o.detail===void 0||Ae.string(o.detail))&&(o.deprecated===void 0||Ae.boolean(o.deprecated))&&(o.children===void 0||Array.isArray(o.children))&&(o.tags===void 0||Array.isArray(o.tags))}e.is=n})(yv||(yv={}));var bv;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(bv||(bv={}));var fc;(function(e){e.Invoked=1,e.Automatic=2})(fc||(fc={}));var xv;(function(e){function r(a,o,f){var d={diagnostics:a};return o!=null&&(d.only=o),f!=null&&(d.triggerKind=f),d}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.typedArray(o.diagnostics,pa.is)&&(o.only===void 0||Ae.typedArray(o.only,Ae.string))&&(o.triggerKind===void 0||o.triggerKind===fc.Invoked||o.triggerKind===fc.Automatic)}e.is=n})(xv||(xv={}));var Sv;(function(e){function r(a,o,f){var d={title:a},m=!0;return typeof o=="string"?(m=!1,d.kind=o):As.is(o)?d.command=o:d.edit=o,m&&f!==void 0&&(d.kind=f),d}e.create=r;function n(a){var o=a;return o&&Ae.string(o.title)&&(o.diagnostics===void 0||Ae.typedArray(o.diagnostics,pa.is))&&(o.kind===void 0||Ae.string(o.kind))&&(o.edit!==void 0||o.command!==void 0)&&(o.command===void 0||As.is(o.command))&&(o.isPreferred===void 0||Ae.boolean(o.isPreferred))&&(o.edit===void 0||Vd.is(o.edit))}e.is=n})(Sv||(Sv={}));var wv;(function(e){function r(a,o){var f={range:a};return Ae.defined(o)&&(f.data=o),f}e.create=r;function n(a){var o=a;return Ae.defined(o)&&_t.is(o.range)&&(Ae.undefined(o.command)||As.is(o.command))}e.is=n})(wv||(wv={}));var Av;(function(e){function r(a,o){return{tabSize:a,insertSpaces:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&Ae.uinteger(o.tabSize)&&Ae.boolean(o.insertSpaces)}e.is=n})(Av||(Av={}));var Cv;(function(e){function r(a,o,f){return{range:a,target:o,data:f}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&_t.is(o.range)&&(Ae.undefined(o.target)||Ae.string(o.target))}e.is=n})(Cv||(Cv={}));var cc;(function(e){function r(a,o){return{range:a,parent:o}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&_t.is(o.range)&&(o.parent===void 0||e.is(o.parent))}e.is=n})(cc||(cc={}));var Ev;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Ev||(Ev={}));var Ov;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Ov||(Ov={}));var Tv;(function(e){function r(n){var a=n;return Ae.objectLiteral(a)&&(a.resultId===void 0||typeof a.resultId=="string")&&Array.isArray(a.data)&&(a.data.length===0||typeof a.data[0]=="number")}e.is=r})(Tv||(Tv={}));var Pv;(function(e){function r(a,o){return{range:a,text:o}}e.create=r;function n(a){var o=a;return o!=null&&_t.is(o.range)&&Ae.string(o.text)}e.is=n})(Pv||(Pv={}));var Iv;(function(e){function r(a,o,f){return{range:a,variableName:o,caseSensitiveLookup:f}}e.create=r;function n(a){var o=a;return o!=null&&_t.is(o.range)&&Ae.boolean(o.caseSensitiveLookup)&&(Ae.string(o.variableName)||o.variableName===void 0)}e.is=n})(Iv||(Iv={}));var kv;(function(e){function r(a,o){return{range:a,expression:o}}e.create=r;function n(a){var o=a;return o!=null&&_t.is(o.range)&&(Ae.string(o.expression)||o.expression===void 0)}e.is=n})(kv||(kv={}));var Fv;(function(e){function r(a,o){return{frameId:a,stoppedLocation:o}}e.create=r;function n(a){var o=a;return Ae.defined(o)&&_t.is(a.stoppedLocation)}e.is=n})(Fv||(Fv={}));var Wd;(function(e){e.Type=1,e.Parameter=2;function r(n){return n===1||n===2}e.is=r})(Wd||(Wd={}));var Hd;(function(e){function r(a){return{value:a}}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&(o.tooltip===void 0||Ae.string(o.tooltip)||_l.is(o.tooltip))&&(o.location===void 0||ws.is(o.location))&&(o.command===void 0||As.is(o.command))}e.is=n})(Hd||(Hd={}));var Rv;(function(e){function r(a,o,f){var d={position:a,label:o};return f!==void 0&&(d.kind=f),d}e.create=r;function n(a){var o=a;return Ae.objectLiteral(o)&&ii.is(o.position)&&(Ae.string(o.label)||Ae.typedArray(o.label,Hd.is))&&(o.kind===void 0||Wd.is(o.kind))&&o.textEdits===void 0||Ae.typedArray(o.textEdits,ai.is)&&(o.tooltip===void 0||Ae.string(o.tooltip)||_l.is(o.tooltip))&&(o.paddingLeft===void 0||Ae.boolean(o.paddingLeft))&&(o.paddingRight===void 0||Ae.boolean(o.paddingRight))}e.is=n})(Rv||(Rv={}));var Lv;(function(e){function r(n){var a=n;return Ae.objectLiteral(a)&&Dd.is(a.uri)&&Ae.string(a.name)}e.is=r})(Lv||(Lv={}));var w1=null,Mv;(function(e){function r(f,d,m,g){return new K0(f,d,m,g)}e.create=r;function n(f){var d=f;return!!(Ae.defined(d)&&Ae.string(d.uri)&&(Ae.undefined(d.languageId)||Ae.string(d.languageId))&&Ae.uinteger(d.lineCount)&&Ae.func(d.getText)&&Ae.func(d.positionAt)&&Ae.func(d.offsetAt))}e.is=n;function a(f,d){for(var m=f.getText(),g=o(d,function(W,ee){var te=W.range.start.line-ee.range.start.line;return te===0?W.range.start.character-ee.range.start.character:te}),b=m.length,x=g.length-1;x>=0;x--){var I=g[x],N=f.offsetAt(I.range.start),j=f.offsetAt(I.range.end);if(j<=b)m=m.substring(0,N)+I.newText+m.substring(j,m.length);else throw new Error("Overlapping edit");b=N}return m}e.applyEdits=a;function o(f,d){if(f.length<=1)return f;var m=f.length/2|0,g=f.slice(0,m),b=f.slice(m);o(g,d),o(b,d);for(var x=0,I=0,N=0;x<g.length&&I<b.length;){var j=d(g[x],b[I]);j<=0?f[N++]=g[x++]:f[N++]=b[I++]}for(;x<g.length;)f[N++]=g[x++];for(;I<b.length;)f[N++]=b[I++];return f}})(Mv||(Mv={}));var K0=function(){function e(r,n,a,o){this._uri=r,this._languageId=n,this._version=a,this._content=o,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content},e.prototype.update=function(r,n){this._content=r.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],n=this._content,a=!0,o=0;o<n.length;o++){a&&(r.push(o),a=!1);var f=n.charAt(o);a=f==="\r"||f===`
|
|
341
|
-
`,f==="\r"&&o+1<n.length&&n.charAt(o+1)===`
|
|
342
|
-
`&&o++}a&&n.length>0&&r.push(n.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),a=0,o=n.length;if(o===0)return ii.create(0,r);for(;a<o;){var f=Math.floor((a+o)/2);n[f]>r?o=f:a=f+1}var d=a-1;return ii.create(d,r-n[d])},e.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var a=n[r.line],o=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,o),a)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),Ae;(function(e){var r=Object.prototype.toString;function n(j){return typeof j!="undefined"}e.defined=n;function a(j){return typeof j=="undefined"}e.undefined=a;function o(j){return j===!0||j===!1}e.boolean=o;function f(j){return r.call(j)==="[object String]"}e.string=f;function d(j){return r.call(j)==="[object Number]"}e.number=d;function m(j,W,ee){return r.call(j)==="[object Number]"&&W<=j&&j<=ee}e.numberRange=m;function g(j){return r.call(j)==="[object Number]"&&-2147483648<=j&&j<=2147483647}e.integer=g;function b(j){return r.call(j)==="[object Number]"&&0<=j&&j<=2147483647}e.uinteger=b;function x(j){return r.call(j)==="[object Function]"}e.func=x;function I(j){return j!==null&&typeof j=="object"}e.objectLiteral=I;function N(j,W){return Array.isArray(j)&&j.every(W)}e.typedArray=N})(Ae||(Ae={}));class ql{constructor(r,n,a,o){this._uri=r,this._languageId=n,this._version=a,this._content=o,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(r){if(r){const n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content}update(r,n){for(let a of r)if(ql.isIncremental(a)){const o=Dv(a.range),f=this.offsetAt(o.start),d=this.offsetAt(o.end);this._content=this._content.substring(0,f)+a.text+this._content.substring(d,this._content.length);const m=Math.max(o.start.line,0),g=Math.max(o.end.line,0);let b=this._lineOffsets;const x=Nv(a.text,!1,f);if(g-m===x.length)for(let N=0,j=x.length;N<j;N++)b[N+m+1]=x[N];else x.length<1e4?b.splice(m+1,g-m,...x):this._lineOffsets=b=b.slice(0,m+1).concat(x,b.slice(g+1));const I=a.text.length-(d-f);if(I!==0)for(let N=m+1+x.length,j=b.length;N<j;N++)b[N]=b[N]+I}else if(ql.isFull(a))this._content=a.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Nv(this._content,!0)),this._lineOffsets}positionAt(r){r=Math.max(Math.min(r,this._content.length),0);let n=this.getLineOffsets(),a=0,o=n.length;if(o===0)return{line:0,character:r};for(;a<o;){let d=Math.floor((a+o)/2);n[d]>r?o=d:a=d+1}let f=a-1;return{line:f,character:r-n[f]}}offsetAt(r){let n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;let a=n[r.line],o=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,o),a)}get lineCount(){return this.getLineOffsets().length}static isIncremental(r){let n=r;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(r){let n=r;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}}var dc;(function(e){function r(o,f,d,m){return new ql(o,f,d,m)}e.create=r;function n(o,f,d){if(o instanceof ql)return o.update(f,d),o;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function a(o,f){let d=o.getText(),m=zd(f.map(Y0),(x,I)=>{let N=x.range.start.line-I.range.start.line;return N===0?x.range.start.character-I.range.start.character:N}),g=0;const b=[];for(const x of m){let I=o.offsetAt(x.range.start);if(I<g)throw new Error("Overlapping edit");I>g&&b.push(d.substring(g,I)),x.newText.length&&b.push(x.newText),g=o.offsetAt(x.range.end)}return b.push(d.substr(g)),b.join("")}e.applyEdits=a})(dc||(dc={}));function zd(e,r){if(e.length<=1)return e;const n=e.length/2|0,a=e.slice(0,n),o=e.slice(n);zd(a,r),zd(o,r);let f=0,d=0,m=0;for(;f<a.length&&d<o.length;)r(a[f],o[d])<=0?e[m++]=a[f++]:e[m++]=o[d++];for(;f<a.length;)e[m++]=a[f++];for(;d<o.length;)e[m++]=o[d++];return e}function Nv(e,r,n=0){const a=r?[n]:[];for(let o=0;o<e.length;o++){let f=e.charCodeAt(o);(f===13||f===10)&&(f===13&&o+1<e.length&&e.charCodeAt(o+1)===10&&o++,a.push(n+o+1))}return a}function Dv(e){const r=e.start,n=e.end;return r.line>n.line||r.line===n.line&&r.character>n.character?{start:n,end:r}:e}function Y0(e){const r=Dv(e.range);return r!==e.range?{newText:e.newText,range:r}:e}var Qt;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(Qt||(Qt={}));var Bv;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Io.Markdown,Io.PlainText],commitCharactersSupport:!0}}}}})(Bv||(Bv={}));var ko=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var f in o)o.hasOwnProperty(f)&&(a[f]=o[f])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),J0={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Fo=function(){function e(r,n,a){this.offset=n,this.length=a,this.parent=r}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),X0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="null",o.value=null,o}return r}(Fo),jv=function(e){ko(r,e);function r(n,a,o){var f=e.call(this,n,o)||this;return f.type="boolean",f.value=a,f}return r}(Fo),Q0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="array",o.items=[],o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(Fo),Z0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="number",o.isInteger=!0,o.value=Number.NaN,o}return r}(Fo),Vv=function(e){ko(r,e);function r(n,a,o){var f=e.call(this,n,a,o)||this;return f.type="string",f.value="",f}return r}(Fo),_0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="property",o.colonOffset=-1,o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(Fo),q0=function(e){ko(r,e);function r(n,a){var o=e.call(this,n,a)||this;return o.type="object",o.properties=[],o}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(Fo);function jn(e){return Vi(e)?e?{}:{not:{}}:e}var Uv;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Uv||(Uv={}));var eb=function(){function e(r,n){r===void 0&&(r=-1),n===void 0&&(n=null),this.focusOffset=r,this.exclude=n,this.schemas=[]}return e.prototype.add=function(r){this.schemas.push(r)},e.prototype.merge=function(r){var n;(n=this.schemas).push.apply(n,r.schemas)},e.prototype.include=function(r){return(this.focusOffset===-1||Wv(r,this.focusOffset))&&r!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),Gd=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.add=function(r){},e.prototype.merge=function(r){},e.prototype.include=function(r){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Vn=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(r){for(var n=0,a=r;n<a.length;n++){var o=a[n];this.merge(o)}},e.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},e.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var n=0,a=this.problems;n<a.length;n++){var o=a[n];o.code===Qt.EnumValueMismatch&&(o.message="Value is not accepted. Valid values: "+this.enumValues.map(function(f){return JSON.stringify(f)}).join(", ")+".")}}},e.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},e.prototype.compare=function(r){var n=this.hasProblems();return n!==r.hasProblems()?n?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},e}();function tb(e,r){return r===void 0&&(r=[]),new Hv(e,r,[])}function Ua(e){return z0(e)}function $d(e){return H0(e)}function Wv(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}var Hv=function(){function e(r,n,a){n===void 0&&(n=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=n,this.comments=a}return e.prototype.getNodeFromOffset=function(r,n){if(n===void 0&&(n=!1),this.root)return W0(this.root,r,n)},e.prototype.visit=function(r){if(this.root){var n=function(a){var o=r(a),f=a.children;if(Array.isArray(f))for(var d=0;d<f.length&&o;d++)o=n(f[d]);return o};n(this.root)}},e.prototype.validate=function(r,n){if(this.root&&n){var a=new Vn;return gn(this.root,n,a,Gd.instance),a.problems.map(function(o){var f=_t.create(r.positionAt(o.location.offset),r.positionAt(o.location.offset+o.location.length));return pa.create(f,o.message,o.severity,o.code)})}return null},e.prototype.getMatchingSchemas=function(r,n,a){n===void 0&&(n=-1),a===void 0&&(a=null);var o=new eb(n,a);return this.root&&r&&gn(this.root,r,new Vn,o),o.schemas},e}();function gn(e,r,n,a){if(!e||!a.include(e))return;switch(e.type){case"object":g(e,r,n,a);break;case"array":m(e,r,n,a);break;case"string":d(e,r,n,a);break;case"number":f(e,r,n,a);break;case"property":return gn(e.valueNode,r,n,a)}o(),a.add({node:e,schema:r});function o(){function b(Re){return e.type===Re||Re==="integer"&&e.type==="number"&&e.isInteger||r.nullable&&e.value===null}if(Array.isArray(r.type)?r.type.some(b)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(b(r.type)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var x=0,I=r.allOf;x<I.length;x++){var N=I[x];gn(e,jn(N),n,a)}var j=jn(r.not);if(j){var W=new Vn,ee=a.newSub();gn(e,j,W,ee),W.hasProblems()||n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,message:"Matches a schema that is not allowed."});for(var te=0,se=ee.schemas;te<se.length;te++){var ie=se[te];ie.inverted=!ie.inverted,a.add(ie)}}var de=function(Re,We){for(var It=[],vt=null,rr=0,cr=Re;rr<cr.length;rr++){var mr=cr[rr],$r=jn(mr),yr=new Vn,kr=a.newSub();if(gn(e,$r,yr,kr),yr.hasProblems()||It.push($r),!vt)vt={schema:$r,validationResult:yr,matchingSchemas:kr};else if(!We&&!yr.hasProblems()&&!vt.validationResult.hasProblems())vt.matchingSchemas.merge(kr),vt.validationResult.propertiesMatches+=yr.propertiesMatches,vt.validationResult.propertiesValueMatches+=yr.propertiesValueMatches;else{var wn=yr.compare(vt.validationResult);wn>0?vt={schema:$r,validationResult:yr,matchingSchemas:kr}:wn===0&&(vt.matchingSchemas.merge(kr),vt.validationResult.mergeEnumValues(yr))}}return It.length>1&&We&&n.problems.push({location:{offset:e.offset,length:1},severity:Dt.Warning,message:"Matches multiple schemas when only one must validate."}),vt!==null&&(n.merge(vt.validationResult),n.propertiesMatches+=vt.validationResult.propertiesMatches,n.propertiesValueMatches+=vt.validationResult.propertiesValueMatches,a.merge(vt.matchingSchemas)),It.length};Array.isArray(r.anyOf)&&de(r.anyOf,!1),Array.isArray(r.oneOf)&&de(r.oneOf,!0);var we=function(Re){var We=new Vn,It=a.newSub();gn(e,jn(Re),We,It),n.merge(We),n.propertiesMatches+=We.propertiesMatches,n.propertiesValueMatches+=We.propertiesValueMatches,a.merge(It)},xe=function(Re,We,It){var vt=jn(Re),rr=new Vn,cr=a.newSub();gn(e,vt,rr,cr),a.merge(cr),rr.hasProblems()?It&&we(It):We&&we(We)},Ee=jn(r.if);if(Ee&&xe(Ee,jn(r.then),jn(r.else)),Array.isArray(r.enum)){for(var ye=Ua(e),be=!1,Se=0,ke=r.enum;Se<ke.length;Se++){var Me=ke[Se];if(Yl(ye,Me)){be=!0;break}}n.enumValues=r.enum,n.enumValueMatch=be,be||n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,code:Qt.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(Re){return JSON.stringify(Re)}).join(", ")+"."})}if(da(r.const)){var ye=Ua(e);Yl(ye,r.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:e.offset,length:e.length},severity:Dt.Warning,code:Qt.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),n.enumValueMatch=!1),n.enumValues=[r.const]}r.deprecationMessage&&e.parent&&n.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:Dt.Warning,message:r.deprecationMessage})}function f(b,x,I,N){var j=b.value;Qn(x.multipleOf)&&j%x.multipleOf!==0&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is not divisible by "+x.multipleOf+"."});function W(we,xe){if(Qn(xe))return xe;if(Vi(xe)&&xe)return we}function ee(we,xe){if(!Vi(xe)||!xe)return we}var te=W(x.minimum,x.exclusiveMinimum);Qn(te)&&j<=te&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is below the exclusive minimum of "+te+"."});var se=W(x.maximum,x.exclusiveMaximum);Qn(se)&&j>=se&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is above the exclusive maximum of "+se+"."});var ie=ee(x.minimum,x.exclusiveMinimum);Qn(ie)&&j<ie&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is below the minimum of "+ie+"."});var de=ee(x.maximum,x.exclusiveMaximum);Qn(de)&&j>de&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Value is above the maximum of "+de+"."})}function d(b,x,I,N){if(Qn(x.minLength)&&b.value.length<x.minLength&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"String is shorter than the minimum length of "+x.minLength+"."}),Qn(x.maxLength)&&b.value.length>x.maxLength&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"String is longer than the maximum length of "+x.maxLength+"."}),$0(x.pattern)){var j=new RegExp(x.pattern);j.test(b.value)||I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:x.patternErrorMessage||x.errorMessage||'String does not match the pattern of "'+x.pattern+'".'})}if(x.format)switch(x.format){case"uri":case"uri-reference":{var W=void 0;if(!b.value)W="URI expected.";else{var ee=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(b.value);ee?!ee[2]&&x.format==="uri"&&(W="URI with a scheme is expected."):W="URI is expected."}W&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:x.patternErrorMessage||x.errorMessage||"String is not a URI: "+W})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var te=J0[x.format];(!b.value||!te.pattern.exec(b.value))&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:x.patternErrorMessage||x.errorMessage||te.errorMessage});break;default:}}function m(b,x,I,N){if(Array.isArray(x.items)){for(var j=x.items,W=0;W<j.length;W++){var ee=j[W],te=jn(ee),se=new Vn,ie=b.items[W];ie?(gn(ie,te,se,N),I.mergePropertyMatch(se)):b.items.length>=j.length&&I.propertiesValueMatches++}if(b.items.length>j.length)if(typeof x.additionalItems=="object")for(var de=j.length;de<b.items.length;de++){var se=new Vn;gn(b.items[de],x.additionalItems,se,N),I.mergePropertyMatch(se)}else x.additionalItems===!1&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Array has too many items according to schema. Expected "+j.length+" or fewer."})}else{var we=jn(x.items);if(we)for(var xe=0,Ee=b.items;xe<Ee.length;xe++){var ie=Ee[xe],se=new Vn;gn(ie,we,se,N),I.mergePropertyMatch(se)}}var ye=jn(x.contains);if(ye){var be=b.items.some(function(Me){var Re=new Vn;return gn(Me,ye,Re,Gd.instance),!Re.hasProblems()});be||I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:x.errorMessage||"Array does not contain required item."})}if(Qn(x.minItems)&&b.items.length<x.minItems&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Array has too few items. Expected "+x.minItems+" or more."}),Qn(x.maxItems)&&b.items.length>x.maxItems&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Array has too many items. Expected "+x.maxItems+" or fewer."}),x.uniqueItems===!0){var Se=Ua(b),ke=Se.some(function(Me,Re){return Re!==Se.lastIndexOf(Me)});ke&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Array has duplicate items."})}}function g(b,x,I,N){for(var j=Object.create(null),W=[],ee=0,te=b.properties;ee<te.length;ee++){var se=te[ee],ie=se.keyNode.value;j[ie]=se.valueNode,W.push(ie)}if(Array.isArray(x.required))for(var de=0,we=x.required;de<we.length;de++){var xe=we[de];if(!j[xe]){var Ee=b.parent&&b.parent.type==="property"&&b.parent.keyNode,ye=Ee?{offset:Ee.offset,length:Ee.length}:{offset:b.offset,length:1};I.problems.push({location:ye,severity:Dt.Warning,message:'Missing property "'+xe+'".'})}}var be=function(Ei){for(var iu=W.indexOf(Ei);iu>=0;)W.splice(iu,1),iu=W.indexOf(Ei)};if(x.properties)for(var Se=0,ke=Object.keys(x.properties);Se<ke.length;Se++){var xe=ke[Se];be(xe);var Me=x.properties[xe],Re=j[xe];if(Re)if(Vi(Me))if(Me)I.propertiesMatches++,I.propertiesValueMatches++;else{var se=Re.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:Dt.Warning,message:x.errorMessage||"Property "+xe+" is not allowed."})}else{var We=new Vn;gn(Re,Me,We,N),I.mergePropertyMatch(We)}}if(x.patternProperties)for(var It=0,vt=Object.keys(x.patternProperties);It<vt.length;It++)for(var rr=vt[It],cr=new RegExp(rr),mr=0,$r=W.slice(0);mr<$r.length;mr++){var xe=$r[mr];if(cr.test(xe)){be(xe);var Re=j[xe];if(Re){var Me=x.patternProperties[rr];if(Vi(Me))if(Me)I.propertiesMatches++,I.propertiesValueMatches++;else{var se=Re.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:Dt.Warning,message:x.errorMessage||"Property "+xe+" is not allowed."})}else{var We=new Vn;gn(Re,Me,We,N),I.mergePropertyMatch(We)}}}}if(typeof x.additionalProperties=="object")for(var yr=0,kr=W;yr<kr.length;yr++){var xe=kr[yr],Re=j[xe];if(Re){var We=new Vn;gn(Re,x.additionalProperties,We,N),I.mergePropertyMatch(We)}}else if(x.additionalProperties===!1&&W.length>0)for(var wn=0,Wt=W;wn<Wt.length;wn++){var xe=Wt[wn],Re=j[xe];if(Re){var se=Re.parent;I.problems.push({location:{offset:se.keyNode.offset,length:se.keyNode.length},severity:Dt.Warning,message:x.errorMessage||"Property "+xe+" is not allowed."})}}if(Qn(x.maxProperties)&&b.properties.length>x.maxProperties&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Object has more properties than limit of "+x.maxProperties+"."}),Qn(x.minProperties)&&b.properties.length<x.minProperties&&I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Object has fewer properties than the required number of "+x.minProperties}),x.dependencies)for(var yt=0,Pt=Object.keys(x.dependencies);yt<Pt.length;yt++){var ie=Pt[yt],nr=j[ie];if(nr){var ln=x.dependencies[ie];if(Array.isArray(ln))for(var hr=0,Is=ln;hr<Is.length;hr++){var ru=Is[hr];j[ru]?I.propertiesValueMatches++:I.problems.push({location:{offset:b.offset,length:b.length},severity:Dt.Warning,message:"Object is missing property "+ru+" required by property {$key}."})}else{var Me=jn(ln);if(Me){var We=new Vn;gn(b,Me,We,N),I.mergePropertyMatch(We)}}}}var Ro=jn(x.propertyNames);if(Ro)for(var Wi=0,nu=b.properties;Wi<nu.length;Wi++){var yc=nu[Wi],ie=yc.keyNode;ie&&gn(ie,Ro,I,Gd.instance)}}}function rb(e,r){var n=[],a=-1,o=e.getText(),f=Ss(o,!1),d=r&&r.collectComments?[]:void 0;function m(){for(;;){var Ee=f.scan();switch(I(),Ee){case 12:case 13:Array.isArray(d)&&d.push(_t.create(e.positionAt(f.getTokenOffset()),e.positionAt(f.getTokenOffset()+f.getTokenLength())));break;case 15:case 14:break;default:return Ee}}}function g(Ee){return f.getToken()===Ee?(m(),!0):!1}function b(Ee,ye,be,Se,ke){if(ke===void 0&&(ke=Dt.Error),n.length===0||be!==a){var Me=_t.create(e.positionAt(be),e.positionAt(Se));n.push(pa.create(Me,Ee,ke,ye,e.languageId)),a=be}}function x(Ee,ye,be,Se,ke){be===void 0&&(be=null),Se===void 0&&(Se=[]),ke===void 0&&(ke=[]);var Me=f.getTokenOffset(),Re=f.getTokenOffset()+f.getTokenLength();if(Me===Re&&Me>0){for(Me--;Me>0&&/\s/.test(o.charAt(Me));)Me--;Re=Me+1}if(b(Ee,ye,Me,Re),be&&N(be,!1),Se.length+ke.length>0)for(var We=f.getToken();We!==17;){if(Se.indexOf(We)!==-1){m();break}else if(ke.indexOf(We)!==-1)break;We=m()}return be}function I(){switch(f.getTokenError()){case 4:return x("Invalid unicode sequence in string.",Qt.InvalidUnicode),!0;case 5:return x("Invalid escape character in string.",Qt.InvalidEscapeCharacter),!0;case 3:return x("Unexpected end of number.",Qt.UnexpectedEndOfNumber),!0;case 1:return x("Unexpected end of comment.",Qt.UnexpectedEndOfComment),!0;case 2:return x("Unexpected end of string.",Qt.UnexpectedEndOfString),!0;case 6:return x("Invalid characters in string. Control characters must be escaped.",Qt.InvalidCharacter),!0}return!1}function N(Ee,ye){return Ee.length=f.getTokenOffset()+f.getTokenLength()-Ee.offset,ye&&m(),Ee}function j(Ee){if(f.getToken()!==3)return null;var ye=new Q0(Ee,f.getTokenOffset());m();for(var be=0,Se=!1;f.getToken()!==4&&f.getToken()!==17;){if(f.getToken()===5){Se||x("Value expected",Qt.ValueExpected);var ke=f.getTokenOffset();if(m(),f.getToken()===4){Se&&b("Trailing comma",Qt.TrailingComma,ke,ke+1);continue}}else Se&&x("Expected comma",Qt.CommaExpected);var Me=de(ye,be++);Me?ye.items.push(Me):x("Value expected",Qt.ValueExpected,null,[],[4,5]),Se=!0}return f.getToken()!==4?x("Expected comma or closing bracket",Qt.CommaOrCloseBacketExpected,ye):N(ye,!0)}function W(Ee,ye){var be=new _0(Ee,f.getTokenOffset()),Se=te(be);if(!Se)if(f.getToken()===16){x("Property keys must be doublequoted",Qt.Undefined);var ke=new Vv(be,f.getTokenOffset(),f.getTokenLength());ke.value=f.getTokenValue(),Se=ke,m()}else return null;be.keyNode=Se;var Me=ye[Se.value];if(Me?(b("Duplicate object key",Qt.DuplicateKey,be.keyNode.offset,be.keyNode.offset+be.keyNode.length,Dt.Warning),typeof Me=="object"&&b("DuplicateKeyWarning",Qt.DuplicateKey,Me.keyNode.offset,Me.keyNode.offset+Me.keyNode.length,Dt.Warning),ye[Se.value]=!0):ye[Se.value]=be,f.getToken()===6)be.colonOffset=f.getTokenOffset(),m();else if(x("Colon expected",Qt.ColonExpected),f.getToken()===10&&e.positionAt(Se.offset+Se.length).line<e.positionAt(f.getTokenOffset()).line)return be.length=Se.length,be;var Re=de(be,Se.value);return Re?(be.valueNode=Re,be.length=Re.offset+Re.length-be.offset,be):x("Value expected",Qt.ValueExpected,be,[],[2,5])}function ee(Ee){if(f.getToken()!==1)return null;var ye=new q0(Ee,f.getTokenOffset()),be=Object.create(null);m();for(var Se=!1;f.getToken()!==2&&f.getToken()!==17;){if(f.getToken()===5){Se||x("Property expected",Qt.PropertyExpected);var ke=f.getTokenOffset();if(m(),f.getToken()===2){Se&&b("Trailing comma",Qt.TrailingComma,ke,ke+1);continue}}else Se&&x("Expected comma",Qt.CommaExpected);var Me=W(ye,be);Me?ye.properties.push(Me):x("Property expected",Qt.PropertyExpected,null,[],[2,5]),Se=!0}return f.getToken()!==2?x("Expected comma or closing brace",Qt.CommaOrCloseBraceExpected,ye):N(ye,!0)}function te(Ee){if(f.getToken()!==10)return null;var ye=new Vv(Ee,f.getTokenOffset());return ye.value=f.getTokenValue(),N(ye,!0)}function se(Ee){if(f.getToken()!==11)return null;var ye=new Z0(Ee,f.getTokenOffset());if(f.getTokenError()===0){var be=f.getTokenValue();try{var Se=JSON.parse(be);if(!Qn(Se))return x("Invalid number format.",Qt.Undefined,ye);ye.value=Se}catch(ke){return x("Invalid number format.",Qt.Undefined,ye)}ye.isInteger=be.indexOf(".")===-1}return N(ye,!0)}function ie(Ee){var ye;switch(f.getToken()){case 7:return N(new X0(Ee,f.getTokenOffset()),!0);case 8:return N(new jv(Ee,!0,f.getTokenOffset()),!0);case 9:return N(new jv(Ee,!1,f.getTokenOffset()),!0);default:return null}}function de(Ee,ye){return j(Ee)||ee(Ee)||te(Ee)||se(Ee)||ie(Ee)}var we=null,xe=m();return xe!==17&&(we=de(null,null),we?f.getToken()!==17&&x("End of file expected.",Qt.Undefined):x("Expected a JSON object, array or literal.",Qt.Undefined)),new Hv(we,n,d)}function Kd(e,r,n){if(e!==null&&typeof e=="object"){var a=r+" ";if(Array.isArray(e)){if(e.length===0)return"[]";for(var o=`[
|
|
343
|
-
`,f=0;f<e.length;f++)o+=a+Kd(e[f],a,n),f<e.length-1&&(o+=","),o+=`
|
|
344
|
-
`;return o+=r+"]",o}else{var d=Object.keys(e);if(d.length===0)return"{}";for(var o=`{
|
|
345
|
-
`,f=0;f<d.length;f++){var m=d[f];o+=a+JSON.stringify(m)+": "+Kd(e[m],a,n),f<d.length-1&&(o+=","),o+=`
|
|
346
|
-
`}return o+=r+"}",o}}return n(e)}function nb(e,r){if(e.length<r.length)return!1;for(var n=0;n<r.length;n++)if(e[n]!==r[n])return!1;return!0}function Yd(e,r){var n=e.length-r.length;return n>0?e.lastIndexOf(r)===n:n===0?e===r:!1}function ib(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function A1(e,r){for(var n="";r>0;)(r&1)===1&&(n+=e),e+=e,r=r>>>1;return n}var ab=[",","}","]"],ob=[":"],sb=function(){function e(r,n,a,o){n===void 0&&(n=[]),a===void 0&&(a=Promise),o===void 0&&(o={}),this.schemaService=r,this.contributions=n,this.promiseConstructor=a,this.clientCapabilities=o,this.templateVarIdCounter=0}return e.prototype.doResolve=function(r){for(var n=this.contributions.length-1;n>=0;n--)if(this.contributions[n].resolveCompletion){var a=this.contributions[n].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},e.prototype.doComplete=function(r,n,a){var o=this,f={items:[],isIncomplete:!1},d=r.getText(),m=r.offsetAt(n),g=a.getNodeFromOffset(m,!0);if(this.isInComment(r,g?g.offset:0,m))return Promise.resolve(f);if(g&&m===g.offset+g.length&&m>0){var b=d[m-1];(g.type==="object"&&b==="}"||g.type==="array"&&b==="]")&&(g=g.parent)}var x=this.getCurrentWord(r,m),I=null;if(g&&(g.type==="string"||g.type==="number"||g.type==="boolean"||g.type==="null"))I=_t.create(r.positionAt(g.offset),r.positionAt(g.offset+g.length));else{var N=m-x.length;N>0&&d[N-1]==='"'&&N--,I=_t.create(r.positionAt(N),n)}var j=this.doesSupportsCommitCharacters(),W={},ee={add:function(te){var se=W[te.label];se?se.documentation||(se.documentation=te.documentation):(W[te.label]=te,I&&(te.textEdit=ai.replace(I,te.insertText)),j&&(te.commitCharacters=te.kind===Zn.Property?ob:ab),f.items.push(te))},setAsIncomplete:function(){f.isIncomplete=!0},error:function(te){console.error(te)},log:function(te){console.log(te)},getNumberOfProposals:function(){return f.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(te){var se=[],ie=!0,de="",we=null;if(g&&g.type==="string"){var xe=g.parent;xe&&xe.type==="property"&&xe.keyNode===g&&(ie=!xe.valueNode,we=xe,de=d.substr(g.offset+1,g.length-2),xe&&(g=xe.parent))}if(g&&g.type==="object"){if(g.offset===m)return f;var Ee=g.properties;Ee.forEach(function(ke){(!we||we!==ke)&&(W[ke.keyNode.value]=Ud.create("__"))});var ye="";ie&&(ye=o.evaluateSeparatorAfter(r,r.offsetAt(I.end))),te?o.getPropertyCompletions(te,a,g,ie,ye,ee):o.getSchemaLessPropertyCompletions(a,g,de,ee);var be=$d(g);o.contributions.forEach(function(ke){var Me=ke.collectPropertyCompletions(r.uri,be,x,ie,ye==="",ee);Me&&se.push(Me)}),!te&&x.length>0&&d.charAt(m-x.length-1)!=='"'&&(ee.add({kind:Zn.Property,label:o.getLabelForValue(x),insertText:o.getInsertTextForProperty(x,null,!1,ye),insertTextFormat:Zr.Snippet,documentation:""}),ee.setAsIncomplete())}var Se={};return te?o.getValueCompletions(te,a,g,m,r,ee,Se):o.getSchemaLessValueCompletions(a,g,m,r,ee),o.contributions.length>0&&o.getContributedValueCompletions(a,g,m,r,ee,se),o.promiseConstructor.all(se).then(function(){if(ee.getNumberOfProposals()===0){var ke=m;g&&(g.type==="string"||g.type==="number"||g.type==="boolean"||g.type==="null")&&(ke=g.offset+g.length);var Me=o.evaluateSeparatorAfter(r,ke);o.addFillerValueCompletions(Se,Me,ee)}return f})})},e.prototype.getPropertyCompletions=function(r,n,a,o,f,d){var m=this,g=n.getMatchingSchemas(r.schema,a.offset);g.forEach(function(b){if(b.node===a&&!b.inverted){var x=b.schema.properties;x&&Object.keys(x).forEach(function(I){var N=x[I],j=!1;if(typeof N=="object"&&N.allOf)for(var W=0,ee=N.allOf;W<ee.length;W++){var te=ee[W];if(te.readOnly){j=!0;break}}if(typeof N=="object"&&!N.deprecationMessage&&!N.doNotSuggest&&!j){var se={kind:Zn.Property,label:m.sanitizeLabel(I),insertText:m.getInsertTextForProperty(I,N,o,f),insertTextFormat:Zr.Snippet,filterText:m.getFilterTextForValue(I),documentation:m.fromMarkup(N.markdownDescription)||N.description||""};Yd(se.insertText,"$1"+f)&&(se.command={title:"Suggest",command:"editor.action.triggerSuggest"}),d.add(se)}})}})},e.prototype.getSchemaLessPropertyCompletions=function(r,n,a,o){var f=this,d=function(g){g.properties.forEach(function(b){var x=b.keyNode.value;o.add({kind:Zn.Property,label:f.sanitizeLabel(x),insertText:f.getInsertTextForValue(x,""),insertTextFormat:Zr.Snippet,filterText:f.getFilterTextForValue(x),documentation:""})})};if(n.parent)if(n.parent.type==="property"){var m=n.parent.keyNode.value;r.visit(function(g){return g.type==="property"&&g!==n.parent&&g.keyNode.value===m&&g.valueNode&&g.valueNode.type==="object"&&d(g.valueNode),!0})}else n.parent.type==="array"&&n.parent.items.forEach(function(g){g.type==="object"&&g!==n&&d(g)});else n.type==="object"&&o.add({kind:Zn.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Zr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(r,n,a,o,f){var d=this,m=a;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(m=n.offset+n.length,n=n.parent),!n){f.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Zr.Snippet,documentation:""}),f.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Zr.Snippet,documentation:""});return}var g=this.evaluateSeparatorAfter(o,m),b=function(j){Wv(j.parent,a,!0)||f.add({kind:d.getSuggestionKind(j.type),label:d.getLabelTextForMatchingNode(j,o),insertText:d.getInsertTextForMatchingNode(j,o,g),insertTextFormat:Zr.Snippet,documentation:""}),j.type==="boolean"&&d.addBooleanValueCompletion(!j.value,g,f)};if(n.type==="property"&&a>n.colonOffset){var x=n.valueNode;if(x&&(a>x.offset+x.length||x.type==="object"||x.type==="array"))return;var I=n.keyNode.value;r.visit(function(j){return j.type==="property"&&j.keyNode.value===I&&j.valueNode&&b(j.valueNode),!0}),I==="$schema"&&n.parent&&!n.parent.parent&&this.addDollarSchemaCompletions(g,f)}if(n.type==="array")if(n.parent&&n.parent.type==="property"){var N=n.parent.keyNode.value;r.visit(function(j){return j.type==="property"&&j.keyNode.value===N&&j.valueNode&&j.valueNode.type==="array"&&j.valueNode.items.forEach(b),!0})}else n.items.forEach(b)},e.prototype.getValueCompletions=function(r,n,a,o,f,d,m){var g=this,b=o,x=null,I=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(b=a.offset+a.length,I=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",d,m);return}if(a.type==="property"&&o>a.colonOffset){var N=a.valueNode;if(N&&o>N.offset+N.length)return;x=a.keyNode.value,a=a.parent}if(a&&(x!==null||a.type==="array")){var j=this.evaluateSeparatorAfter(f,b),W=n.getMatchingSchemas(r.schema,a.offset,I);W.forEach(function(ee){if(ee.node===a&&!ee.inverted&&ee.schema){if(a.type==="array"&&ee.schema.items)if(Array.isArray(ee.schema.items)){var te=g.findItemAtOffset(a,f,o);te<ee.schema.items.length&&g.addSchemaValueCompletions(ee.schema.items[te],j,d,m)}else g.addSchemaValueCompletions(ee.schema.items,j,d,m);if(ee.schema.properties){var se=ee.schema.properties[x];se&&g.addSchemaValueCompletions(se,j,d,m)}}}),x==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(j,d),m.boolean&&(this.addBooleanValueCompletion(!0,j,d),this.addBooleanValueCompletion(!1,j,d)),m.null&&this.addNullValueCompletion(j,d)}},e.prototype.getContributedValueCompletions=function(r,n,a,o,f,d){if(!n)this.contributions.forEach(function(x){var I=x.collectDefaultCompletions(o.uri,f);I&&d.push(I)});else if((n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(n=n.parent),n.type==="property"&&a>n.colonOffset){var m=n.keyNode.value,g=n.valueNode;if(!g||a<=g.offset+g.length){var b=$d(n.parent);this.contributions.forEach(function(x){var I=x.collectValueCompletions(o.uri,b,m,f);I&&d.push(I)})}}},e.prototype.addSchemaValueCompletions=function(r,n,a,o){var f=this;typeof r=="object"&&(this.addEnumValueCompletions(r,n,a),this.addDefaultValueCompletions(r,n,a),this.collectTypes(r,o),Array.isArray(r.allOf)&&r.allOf.forEach(function(d){return f.addSchemaValueCompletions(d,n,a,o)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(d){return f.addSchemaValueCompletions(d,n,a,o)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(d){return f.addSchemaValueCompletions(d,n,a,o)}))},e.prototype.addDefaultValueCompletions=function(r,n,a,o){var f=this;o===void 0&&(o=0);var d=!1;if(da(r.default)){for(var m=r.type,g=r.default,b=o;b>0;b--)g=[g],m="array";a.add({kind:this.getSuggestionKind(m),label:this.getLabelForValue(g),insertText:this.getInsertTextForValue(g,n),insertTextFormat:Zr.Snippet}),d=!0}Array.isArray(r.examples)&&r.examples.forEach(function(x){for(var I=r.type,N=x,j=o;j>0;j--)N=[N],I="array";a.add({kind:f.getSuggestionKind(I),label:f.getLabelForValue(N),insertText:f.getInsertTextForValue(N,n),insertTextFormat:Zr.Snippet}),d=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(x){var I=r.type,N=x.body,j=x.label,W,ee;if(da(N)){for(var te=r.type,se=o;se>0;se--)N=[N],te="array";W=f.getInsertTextForSnippetValue(N,n),ee=f.getFilterTextForSnippetValue(N),j=j||f.getLabelForSnippetValue(N)}else if(typeof x.bodyText=="string"){for(var ie="",de="",we="",se=o;se>0;se--)ie=ie+we+`[
|
|
347
|
-
`,de=de+`
|
|
348
|
-
`+we+"]",we+=" ",I="array";W=ie+we+x.bodyText.split(`
|
|
349
|
-
`).join(`
|
|
350
|
-
`+we)+de+n,j=j||f.sanitizeLabel(W),ee=W.replace(/[\n]/g,"")}a.add({kind:f.getSuggestionKind(I),label:j,documentation:f.fromMarkup(x.markdownDescription)||x.description,insertText:W,insertTextFormat:Zr.Snippet,filterText:ee}),d=!0}),!d&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,n,a,o+1)},e.prototype.addEnumValueCompletions=function(r,n,a){if(da(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,n),insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var o=0,f=r.enum.length;o<f;o++){var d=r.enum[o],m=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&o<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?m=this.fromMarkup(r.markdownEnumDescriptions[o]):r.enumDescriptions&&o<r.enumDescriptions.length&&(m=r.enumDescriptions[o]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(d),insertText:this.getInsertTextForValue(d,n),insertTextFormat:Zr.Snippet,documentation:m})}},e.prototype.collectTypes=function(r,n){if(!(Array.isArray(r.enum)||da(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(o){return n[o]=!0}):n[a]=!0}},e.prototype.addFillerValueCompletions=function(r,n,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},n),insertTextFormat:Zr.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],n),insertTextFormat:Zr.Snippet,detail:"New array",documentation:""})},e.prototype.addBooleanValueCompletion=function(r,n,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,n),insertTextFormat:Zr.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(r,n){n.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Zr.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(r,n){var a=this,o=this.schemaService.getRegisteredSchemaIds(function(f){return f==="http"||f==="https"});o.forEach(function(f){return n.add({kind:Zn.Module,label:a.getLabelForValue(f),filterText:a.getFilterTextForValue(f),insertText:a.getInsertTextForValue(f,r),insertTextFormat:Zr.Snippet,documentation:""})})},e.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},e.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},e.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},e.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(r){var n=JSON.stringify(r);return n=n.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(n)},e.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(r,n){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+n:a==="[]"?"[$1]"+n:this.getInsertTextForPlainText(a+n)},e.prototype.getInsertTextForSnippetValue=function(r,n){var a=function(o){return typeof o=="string"&&o[0]==="^"?o.substr(1):JSON.stringify(o)};return Kd(r,"",a)+n},e.prototype.getInsertTextForGuessedValue=function(r,n){switch(typeof r){case"object":return r===null?"${1:null}"+n:this.getInsertTextForValue(r,n);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+n;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+n}return this.getInsertTextForValue(r,n)},e.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var n=r;r=n.length>0?n[0]:null}if(!r)return Zn.Value;switch(r){case"string":return Zn.Value;case"object":return Zn.Module;case"property":return Zn.Property;default:return Zn.Value}},e.prototype.getLabelTextForMatchingNode=function(r,n){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=n.getText().substr(r.offset,r.length);return a}},e.prototype.getInsertTextForMatchingNode=function(r,n,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var o=n.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(o)}},e.prototype.getInsertTextForProperty=function(r,n,a,o){var f=this.getInsertTextForValue(r,"");if(!a)return f;var d=f+": ",m,g=0;if(n){if(Array.isArray(n.defaultSnippets)){if(n.defaultSnippets.length===1){var b=n.defaultSnippets[0].body;da(b)&&(m=this.getInsertTextForSnippetValue(b,""))}g+=n.defaultSnippets.length}if(n.enum&&(!m&&n.enum.length===1&&(m=this.getInsertTextForGuessedValue(n.enum[0],"")),g+=n.enum.length),da(n.default)&&(m||(m=this.getInsertTextForGuessedValue(n.default,"")),g++),g===0){var x=Array.isArray(n.type)?n.type[0]:n.type;switch(x||(n.properties?x="object":n.items&&(x="array")),x){case"boolean":m="$1";break;case"string":m='"$1"';break;case"object":m="{$1}";break;case"array":m="[$1]";break;case"number":case"integer":m="${1:0}";break;case"null":m="${1:null}";break;default:return f}}}return(!m||g>1)&&(m="$1"),d+m+o},e.prototype.getCurrentWord=function(r,n){for(var a=n-1,o=r.getText();a>=0&&`
|
|
351
|
-
\r\v":{[,]}`.indexOf(o.charAt(a))===-1;)a--;return o.substring(a+1,n)},e.prototype.evaluateSeparatorAfter=function(r,n){var a=Ss(r.getText(),!0);a.setPosition(n);var o=a.scan();switch(o){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(r,n,a){for(var o=Ss(n.getText(),!0),f=r.items,d=f.length-1;d>=0;d--){var m=f[d];if(a>m.offset+m.length){o.setPosition(m.offset+m.length);var g=o.scan();return g===5&&a>=o.getTokenOffset()+o.getTokenLength()?d+1:d}else if(a>=m.offset)return d}return 0},e.prototype.isInComment=function(r,n,a){var o=Ss(r.getText(),!1);o.setPosition(n);for(var f=o.scan();f!==17&&o.getTokenOffset()+o.getTokenLength()<a;)f=o.scan();return(f===12||f===13)&&o.getTokenOffset()<=a},e.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:Io.Markdown,value:r}},e.prototype.doesSupportMarkdown=function(){if(!da(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(Io.Markdown)!==-1}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!da(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),lb=function(){function e(r,n,a){n===void 0&&(n=[]),this.schemaService=r,this.contributions=n,this.promise=a||Promise}return e.prototype.doHover=function(r,n,a){var o=r.offsetAt(n),f=a.getNodeFromOffset(o);if(!f||(f.type==="object"||f.type==="array")&&o>f.offset+1&&o<f.offset+f.length-1)return this.promise.resolve(null);var d=f;if(f.type==="string"){var m=f.parent;if(m&&m.type==="property"&&m.keyNode===f&&(f=m.valueNode,!f))return this.promise.resolve(null)}for(var g=_t.create(r.positionAt(d.offset),r.positionAt(d.offset+d.length)),b=function(W){var ee={contents:W,range:g};return ee},x=$d(f),I=this.contributions.length-1;I>=0;I--){var N=this.contributions[I],j=N.getInfoContribution(r.uri,x);if(j)return j.then(function(W){return b(W)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function(W){if(W){var ee=a.getMatchingSchemas(W.schema,f.offset),te=null,se=null,ie=null,de=null;ee.every(function(xe){if(xe.node===f&&!xe.inverted&&xe.schema&&(te=te||xe.schema.title,se=se||xe.schema.markdownDescription||Jd(xe.schema.description),xe.schema.enum)){var Ee=xe.schema.enum.indexOf(Ua(f));xe.schema.markdownEnumDescriptions?ie=xe.schema.markdownEnumDescriptions[Ee]:xe.schema.enumDescriptions&&(ie=Jd(xe.schema.enumDescriptions[Ee])),ie&&(de=xe.schema.enum[Ee],typeof de!="string"&&(de=JSON.stringify(de)))}return!0});var we="";return te&&(we=Jd(te)),se&&(we.length>0&&(we+=`
|
|
352
|
-
|
|
353
|
-
`),we+=se),ie&&(we.length>0&&(we+=`
|
|
354
|
-
|
|
355
|
-
`),we+="`"+ub(de)+"`: "+ie),b([we])}return null})},e}();function Jd(e){if(e){var r=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
|
|
356
|
-
|
|
357
|
-
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function ub(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var fb=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var f in o)o.hasOwnProperty(f)&&(a[f]=o[f])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Br,eu;if(typeof process=="object")eu=!1;else if(typeof navigator=="object"){var cb=navigator.userAgent;eu=cb.indexOf("Windows")>=0}function C1(e){return 55296<=e&&e<=56319}function E1(e){return 56320<=e&&e<=57343}function O1(e){return e>=97&&e<=102}function db(e){return e>=97&&e<=122}function pb(e){return e>=65&&e<=90}function T1(e){return db(e)||pb(e)}var hb=/^\w[\w\d+.-]*$/,vb=/^\//,gb=/^\/\//;function mb(e,r){if(!e.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!hb.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!vb.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(gb.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function yb(e,r){return!e&&!r?"file":e}function bb(e,r){switch(e){case"https":case"http":case"file":r?r[0]!==Ci&&(r=Ci+r):r=Ci;break}return r}var fr="",Ci="/",xb=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Xd=function(){function e(r,n,a,o,f,d){d===void 0&&(d=!1),typeof r=="object"?(this.scheme=r.scheme||fr,this.authority=r.authority||fr,this.path=r.path||fr,this.query=r.query||fr,this.fragment=r.fragment||fr):(this.scheme=yb(r,d),this.authority=n||fr,this.path=bb(this.scheme,a||fr),this.query=o||fr,this.fragment=f||fr,mb(this,d))}return e.isUri=function(r){return r instanceof e?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(e.prototype,"fsPath",{get:function(){return Kv(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(r){if(!r)return this;var n=r.scheme,a=r.authority,o=r.path,f=r.query,d=r.fragment;return n===void 0?n=this.scheme:n===null&&(n=fr),a===void 0?a=this.authority:a===null&&(a=fr),o===void 0?o=this.path:o===null&&(o=fr),f===void 0?f=this.query:f===null&&(f=fr),d===void 0?d=this.fragment:d===null&&(d=fr),n===this.scheme&&a===this.authority&&o===this.path&&f===this.query&&d===this.fragment?this:new Es(n,a,o,f,d)},e.parse=function(r,n){n===void 0&&(n=!1);var a=xb.exec(r);return a?new Es(a[2]||fr,pc(a[4]||fr),pc(a[5]||fr),pc(a[7]||fr),pc(a[9]||fr),n):new Es(fr,fr,fr,fr,fr)},e.file=function(r){var n=fr;if(eu&&(r=r.replace(/\\/g,Ci)),r[0]===Ci&&r[1]===Ci){var a=r.indexOf(Ci,2);a===-1?(n=r.substring(2),r=Ci):(n=r.substring(2,a),r=r.substring(a)||Ci)}return new Es("file",n,r,fr,fr)},e.from=function(r){return new Es(r.scheme,r.authority,r.path,r.query,r.fragment)},e.prototype.toString=function(r){return r===void 0&&(r=!1),Qd(this,r)},e.prototype.toJSON=function(){return this},e.revive=function(r){if(r){if(r instanceof e)return r;var n=new Es(r);return n._formatted=r.external,n._fsPath=r._sep===zv?r.fsPath:null,n}else return r},e}(),zv=eu?1:void 0,Es=function(e){fb(r,e);function r(){var n=e!==null&&e.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Kv(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(n){return n===void 0&&(n=!1),n?Qd(this,!0):(this._formatted||(this._formatted=Qd(this,!1)),this._formatted)},r.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=zv),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n},r}(Xd),Gv=(Br={},Br[58]="%3A",Br[47]="%2F",Br[63]="%3F",Br[35]="%23",Br[91]="%5B",Br[93]="%5D",Br[64]="%40",Br[33]="%21",Br[36]="%24",Br[38]="%26",Br[39]="%27",Br[40]="%28",Br[41]="%29",Br[42]="%2A",Br[43]="%2B",Br[44]="%2C",Br[59]="%3B",Br[61]="%3D",Br[32]="%20",Br);function $v(e,r){for(var n=void 0,a=-1,o=0;o<e.length;o++){var f=e.charCodeAt(o);if(f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===45||f===46||f===95||f===126||r&&f===47)a!==-1&&(n+=encodeURIComponent(e.substring(a,o)),a=-1),n!==void 0&&(n+=e.charAt(o));else{n===void 0&&(n=e.substr(0,o));var d=Gv[f];d!==void 0?(a!==-1&&(n+=encodeURIComponent(e.substring(a,o)),a=-1),n+=d):a===-1&&(a=o)}}return a!==-1&&(n+=encodeURIComponent(e.substring(a))),n!==void 0?n:e}function Sb(e){for(var r=void 0,n=0;n<e.length;n++){var a=e.charCodeAt(n);a===35||a===63?(r===void 0&&(r=e.substr(0,n)),r+=Gv[a]):r!==void 0&&(r+=e[n])}return r!==void 0?r:e}function Kv(e,r){var n;return e.authority&&e.path.length>1&&e.scheme==="file"?n="//"+e.authority+e.path:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?r?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,eu&&(n=n.replace(/\//g,"\\")),n}function Qd(e,r){var n=r?Sb:$v,a="",o=e.scheme,f=e.authority,d=e.path,m=e.query,g=e.fragment;if(o&&(a+=o,a+=":"),(f||o==="file")&&(a+=Ci,a+=Ci),f){var b=f.indexOf("@");if(b!==-1){var x=f.substr(0,b);f=f.substr(b+1),b=x.indexOf(":"),b===-1?a+=n(x,!1):(a+=n(x.substr(0,b),!1),a+=":",a+=n(x.substr(b+1),!1)),a+="@"}f=f.toLowerCase(),b=f.indexOf(":"),b===-1?a+=n(f,!1):(a+=n(f.substr(0,b),!1),a+=f.substr(b))}if(d){if(d.length>=3&&d.charCodeAt(0)===47&&d.charCodeAt(2)===58){var I=d.charCodeAt(1);I>=65&&I<=90&&(d="/"+String.fromCharCode(I+32)+":"+d.substr(3))}else if(d.length>=2&&d.charCodeAt(1)===58){var I=d.charCodeAt(0);I>=65&&I<=90&&(d=String.fromCharCode(I+32)+":"+d.substr(2))}a+=n(d,!0)}return m&&(a+="?",a+=n(m,!1)),g&&(a+="#",a+=r?g:$v(g,!1)),a}function Yv(e){try{return decodeURIComponent(e)}catch(r){return e.length>3?e.substr(0,3)+Yv(e.substr(3)):e}}var Jv=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function pc(e){return e.match(Jv)?e.replace(Jv,function(r){return Yv(r)}):e}var wb=function(){function e(r){try{this.patternRegExp=new RegExp(ib(r)+"$")}catch(n){this.patternRegExp=null}this.schemas=[]}return e.prototype.addSchema=function(r){this.schemas.push(r)},e.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},e.prototype.getSchemas=function(){return this.schemas},e}(),Ab=function(){function e(r,n,a){this.service=r,this.url=n,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new Os(a)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return r.service.resolveSchemaContent(n,r.url,r.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},e}(),Os=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e}(),Xv=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e.prototype.getSection=function(r){return jn(this.getSectionRecursive(r,this.schema))},e.prototype.getSectionRecursive=function(r,n){if(!n||typeof n=="boolean"||r.length===0)return n;var a=r.shift();if(n.properties&&typeof n.properties[a])return this.getSectionRecursive(r,n.properties[a]);if(n.patternProperties)for(var o=0,f=Object.keys(n.patternProperties);o<f.length;o++){var d=f[o],m=new RegExp(d);if(m.test(a))return this.getSectionRecursive(r,n.patternProperties[d])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(r,n.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(n.items)){var g=parseInt(a,10);if(!isNaN(g)&&n.items[g])return this.getSectionRecursive(r,n.items[g])}else if(n.items)return this.getSectionRecursive(r,n.items)}}return null},e}(),Cb=function(){function e(r,n,a){this.contextService=n,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(n){var a=Xd.parse(n).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(r){var n=this,a=!1;r=this.normalizeId(r);for(var o=[r],f=Object.keys(this.schemasById).map(function(b){return n.schemasById[b]});o.length;)for(var d=o.pop(),m=0;m<f.length;m++){var g=f[m];g&&(g.url===d||g.dependencies[d])&&(g.url!==d&&o.push(g.url),g.clearSchema(),f[m]=void 0,a=!0)}return a},e.prototype.normalizeId=function(r){try{return Xd.parse(r).toString()}catch(n){return r}},e.prototype.setSchemaContributions=function(r){if(r.schemas){var n=r.schemas;for(var a in n){var o=this.normalizeId(a);this.contributionSchemas[o]=this.addSchemaHandle(o,n[a])}}if(r.schemaAssociations){var f=r.schemaAssociations;for(var d in f){var m=f[d];this.contributionAssociations[d]=m;for(var g=this.getOrAddFilePatternAssociation(d),b=0,x=m;b<x.length;b++){var I=x[b],a=this.normalizeId(I);g.addSchema(a)}}}},e.prototype.addSchemaHandle=function(r,n){var a=new Ab(this,r,n);return this.schemasById[r]=a,a},e.prototype.getOrAddSchemaHandle=function(r,n){return this.schemasById[r]||this.addSchemaHandle(r,n)},e.prototype.getOrAddFilePatternAssociation=function(r){var n=this.filePatternAssociationById[r];return n||(n=new wb(r),this.filePatternAssociationById[r]=n,this.filePatternAssociations.push(n)),n},e.prototype.registerExternalSchema=function(r,n,a){n===void 0&&(n=null);var o=this.normalizeId(r);if(this.registeredSchemasIds[o]=!0,n)for(var f=0,d=n;f<d.length;f++){var m=d[f];this.getOrAddFilePatternAssociation(m).addSchema(o)}return a?this.addSchemaHandle(o,a):this.getOrAddSchemaHandle(o)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var n in this.contributionAssociations)for(var a=this.getOrAddFilePatternAssociation(n),o=0,f=this.contributionAssociations[n];o<f.length;o++){var d=f[o],r=this.normalizeId(d);a.addSchema(r)}},e.prototype.getResolvedSchema=function(r){var n=this.normalizeId(r),a=this.schemasById[n];return a?a.getResolvedSchema():this.promise.resolve(null)},e.prototype.loadSchema=function(r){if(!this.requestService){var n="Unable to load schema from '"+hc(r)+"'. No schema request service available";return this.promise.resolve(new Os({},[n]))}return this.requestService(r).then(function(a){if(!a){var o="Unable to load schema from '"+hc(r)+"': No content.";return new Os({},[o])}var f={},d=[];f=U0(a,d);var m=d.length?["Unable to parse content from '"+hc(r)+"': Parse error at offset "+d[0].offset]:[];return new Os(f,m)},function(a){var o="Unable to load schema from '"+hc(r)+"': "+a.toString();return new Os({},[o])})},e.prototype.resolveSchemaContent=function(r,n,a){var o=this,f=r.errors.slice(0),d=r.schema;if(d.$schema){var m=this.normalizeId(d.$schema);if(m==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Xv({},["Draft-03 schemas are not supported."]));m==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var g=this.contextService,b=function(j,W){if(!W)return j;var ee=j;return W[0]==="/"&&(W=W.substr(1)),W.split("/").some(function(te){return ee=ee[te],!ee}),ee},x=function(j,W,ee,te){var se=b(W,te);if(se)for(var ie in se)se.hasOwnProperty(ie)&&!j.hasOwnProperty(ie)&&(j[ie]=se[ie]);else f.push("$ref '"+te+"' in '"+ee+"' can not be resolved.")},I=function(j,W,ee,te,se){g&&!/^\w+:\/\/.*/.test(W)&&(W=g.resolveRelativePath(W,te)),W=o.normalizeId(W);var ie=o.getOrAddSchemaHandle(W);return ie.getUnresolvedSchema().then(function(de){if(se[W]=!0,de.errors.length){var we=ee?W+"#"+ee:W;f.push("Problems loading reference '"+we+"': "+de.errors[0]+".")}return x(j,de.schema,W,ee),N(j,de.schema,W,ie.dependencies)})},N=function(j,W,ee,te){if(!j||typeof j!="object")return Promise.resolve(null);for(var se=[j],ie=[],de=[],we=function(){for(var Se=[],ke=0;ke<arguments.length;ke++)Se[ke]=arguments[ke];for(var Me=0,Re=Se;Me<Re.length;Me++){var We=Re[Me];typeof We=="object"&&se.push(We)}},xe=function(){for(var Se=[],ke=0;ke<arguments.length;ke++)Se[ke]=arguments[ke];for(var Me=0,Re=Se;Me<Re.length;Me++){var We=Re[Me];if(typeof We=="object")for(var It in We){var vt=We[It];typeof vt=="object"&&se.push(vt)}}},Ee=function(){for(var Se=[],ke=0;ke<arguments.length;ke++)Se[ke]=arguments[ke];for(var Me=0,Re=Se;Me<Re.length;Me++){var We=Re[Me];if(Array.isArray(We))for(var It=0,vt=We;It<vt.length;It++){var rr=vt[It];typeof rr=="object"&&se.push(rr)}}},ye=function(Se){for(var ke=[];Se.$ref;){var Me=Se.$ref,Re=Me.split("#",2);if(delete Se.$ref,Re[0].length>0){de.push(I(Se,Re[0],Re[1],ee,te));return}else ke.indexOf(Me)===-1&&(x(Se,W,ee,Re[1]),ke.push(Me))}we(Se.items,Se.additionalProperties,Se.not,Se.contains,Se.propertyNames,Se.if,Se.then,Se.else),xe(Se.definitions,Se.properties,Se.patternProperties,Se.dependencies),Ee(Se.anyOf,Se.allOf,Se.oneOf,Se.items)};se.length;){var be=se.pop();ie.indexOf(be)>=0||(ie.push(be),ye(be))}return o.promise.all(de)};return N(d,d,n,a).then(function(j){return new Xv(d,f)})},e.prototype.getSchemaForResource=function(r,n){if(n&&n.root&&n.root.type==="object"){var a=n.root.properties.filter(function(W){return W.keyNode.value==="$schema"&&W.valueNode&&W.valueNode.type==="string"});if(a.length>0){var o=Ua(a[0].valueNode);if(o&&nb(o,".")&&this.contextService&&(o=this.contextService.resolveRelativePath(o,r)),o){var f=this.normalizeId(o);return this.getOrAddSchemaHandle(f).getResolvedSchema()}}}for(var d=Object.create(null),m=[],g=0,b=this.filePatternAssociations;g<b.length;g++){var x=b[g];if(x.matchesPattern(r))for(var I=0,N=x.getSchemas();I<N.length;I++){var j=N[I];d[j]||(m.push(j),d[j]=!0)}}return m.length>0?this.createCombinedSchema(r,m).getResolvedSchema():this.promise.resolve(null)},e.prototype.createCombinedSchema=function(r,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),o={allOf:n.map(function(f){return{$ref:f}})};return this.addSchemaHandle(a,o)},e}();function hc(e){try{}catch(r){}return e}var Eb=function(){function e(r,n){this.jsonSchemaService=r,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Dt.Error)},e.prototype.doValidation=function(r,n,a,o){var f=this;if(!this.validationEnabled)return this.promise.resolve([]);var d=[],m={},g=function(I){var N=I.range.start.line+" "+I.range.start.character+" "+I.message;m[N]||(m[N]=!0,d.push(I))},b=function(I){var N=a?_v(a.trailingCommas):Dt.Error,j=a?_v(a.comments):f.commentSeverity;if(I){if(I.errors.length&&n.root){var W=n.root,ee=W.type==="object"?W.properties[0]:null;if(ee&&ee.keyNode.value==="$schema"){var te=ee.valueNode||ee,se=_t.create(r.positionAt(te.offset),r.positionAt(te.offset+te.length));g(pa.create(se,I.errors[0],Dt.Warning,Qt.SchemaResolveError))}else{var se=_t.create(r.positionAt(W.offset),r.positionAt(W.offset+1));g(pa.create(se,I.errors[0],Dt.Warning,Qt.SchemaResolveError))}}else{var ie=n.validate(r,I.schema);ie&&ie.forEach(g)}Qv(I.schema)&&(j=void 0),Zv(I.schema)&&(N=void 0)}for(var de=0,we=n.syntaxErrors;de<we.length;de++){var xe=we[de];if(xe.code===Qt.TrailingComma){if(typeof N!="number")continue;xe.severity=N}g(xe)}if(typeof j=="number"){var Ee="Comments are not permitted in JSON.";n.comments.forEach(function(ye){g(pa.create(ye,Ee,j,Qt.CommentNotPermitted))})}return d};if(o){var x=o.id||"schemaservice://untitled/"+Ob++;return this.jsonSchemaService.resolveSchemaContent(new Os(o),x,{}).then(function(I){return b(I)})}return this.jsonSchemaService.getSchemaForResource(r.uri,n).then(function(I){return b(I)})},e}(),Ob=0;function Qv(e){if(e&&typeof e=="object"){if(Vi(e.allowComments))return e.allowComments;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],o=Qv(a);if(Vi(o))return o}}}function Zv(e){if(e&&typeof e=="object"){if(Vi(e.allowTrailingCommas))return e.allowTrailingCommas;if(Vi(e.allowsTrailingCommas))return e.allowsTrailingCommas;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],o=Zv(a);if(Vi(o))return o}}}function _v(e){switch(e){case"error":return Dt.Error;case"warning":return Dt.Warning;case"ignore":return}}var qv=48,Tb=57,Pb=65,vc=97,Ib=102;function jr(e){return e<qv?0:e<=Tb?e-qv:(e<vc&&(e+=vc-Pb),e>=vc&&e<=Ib?e-vc+10:0)}function kb(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:jr(e.charCodeAt(1))*17/255,green:jr(e.charCodeAt(2))*17/255,blue:jr(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:jr(e.charCodeAt(1))*17/255,green:jr(e.charCodeAt(2))*17/255,blue:jr(e.charCodeAt(3))*17/255,alpha:jr(e.charCodeAt(4))*17/255};case 7:return{red:(jr(e.charCodeAt(1))*16+jr(e.charCodeAt(2)))/255,green:(jr(e.charCodeAt(3))*16+jr(e.charCodeAt(4)))/255,blue:(jr(e.charCodeAt(5))*16+jr(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(jr(e.charCodeAt(1))*16+jr(e.charCodeAt(2)))/255,green:(jr(e.charCodeAt(3))*16+jr(e.charCodeAt(4)))/255,blue:(jr(e.charCodeAt(5))*16+jr(e.charCodeAt(6)))/255,alpha:(jr(e.charCodeAt(7))*16+jr(e.charCodeAt(8)))/255}}return null}function P1(e,r,n,a){return a===void 0&&(a=1),{red:e/255,green:r/255,blue:n/255,alpha:a}}var Fb=function(){function e(r){this.schemaService=r}return e.prototype.findDocumentSymbols=function(r,n,a){var o=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var f=n.root;if(!f)return null;var d=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||Yd(m.toLowerCase(),"/user/keybindings.json"))&&f.type==="array"){for(var g=[],b=0,x=f.items;b<x.length;b++){var I=x[b];if(I.type==="object")for(var N=0,j=I.properties;N<j.length;N++){var W=j[N];if(W.keyNode.value==="key"&&W.valueNode){var ee=ws.create(r.uri,Wa(r,I));if(g.push({name:Ua(W.valueNode),kind:Ui.Function,location:ee}),d--,d<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),g}}}return g}var te=function(ie,de,we){return d>=0&&(de.type==="array"?de.items.forEach(function(xe){return te(ie,xe,we)}):de.type==="object"&&de.properties.forEach(function(xe){if(d>=0){var Ee=xe.valueNode;if(Ee){d--;var ye=ws.create(r.uri,Wa(r,xe)),be=we?we+"."+xe.keyNode.value:xe.keyNode.value;ie.push({name:o.getKeyLabel(xe),kind:o.getSymbolKind(Ee.type),location:ye,containerName:we}),te(ie,Ee,be)}}})),ie},se=te([],f,void 0);return d<0&&(se.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),se},e.prototype.findDocumentSymbols2=function(r,n,a){var o=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var f=n.root;if(!f)return null;var d=a.resultLimit,m=r.uri;if((m==="vscode://defaultsettings/keybindings.json"||Yd(m.toLowerCase(),"/user/keybindings.json"))&&f.type==="array"){for(var g=[],b=0,x=f.items;b<x.length;b++){var I=x[b];if(I.type==="object")for(var N=0,j=I.properties;N<j.length;N++){var W=j[N];if(W.keyNode.value==="key"&&W.valueNode){var ee=Wa(r,I),te=Wa(r,W.keyNode);if(g.push({name:Ua(W.valueNode),kind:Ui.Function,range:ee,selectionRange:te}),d--,d<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m),g}}}return g}var se=function(de,we){return d>=0&&(we.type==="array"?we.items.forEach(function(xe,Ee){if(xe&&d>=0){d--;var ye=Wa(r,xe),be=ye,Se=String(Ee),ke=se([],xe);de.push({name:Se,kind:o.getSymbolKind(xe.type),range:ye,selectionRange:be,children:ke})}}):we.type==="object"&&we.properties.forEach(function(xe){var Ee=xe.valueNode;if(Ee&&d>=0){d--;var ye=Wa(r,xe),be=Wa(r,xe.keyNode),Se=se([],Ee);de.push({name:o.getKeyLabel(xe),kind:o.getSymbolKind(Ee.type),range:ye,selectionRange:be,children:Se})}})),de},ie=se([],f);return d<0&&(ie.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(m)),ie},e.prototype.getSymbolKind=function(r){switch(r){case"object":return Ui.Module;case"string":return Ui.String;case"number":return Ui.Number;case"array":return Ui.Array;case"boolean":return Ui.Boolean;default:return Ui.Variable}},e.prototype.getKeyLabel=function(r){var n=r.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},e.prototype.findDocumentColors=function(r,n,a){return this.schemaService.getSchemaForResource(r.uri,n).then(function(o){var f=[];if(o)for(var d=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,m=n.getMatchingSchemas(o.schema),g={},b=0,x=m;b<x.length;b++){var I=x[b];if(!I.inverted&&I.schema&&(I.schema.format==="color"||I.schema.format==="color-hex")&&I.node&&I.node.type==="string"){var N=String(I.node.offset);if(!g[N]){var j=kb(Ua(I.node));if(j){var W=Wa(r,I.node);f.push({color:j,range:W})}if(g[N]=!0,d--,d<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),f}}}return f})},e.prototype.getColorPresentations=function(r,n,a,o){var f=[],d=Math.round(a.red*255),m=Math.round(a.green*255),g=Math.round(a.blue*255);function b(I){var N=I.toString(16);return N.length!==2?"0"+N:N}var x;return a.alpha===1?x="#"+b(d)+b(m)+b(g):x="#"+b(d)+b(m)+b(g)+b(Math.round(a.alpha*255)),f.push({label:x,textEdit:ai.replace(o,JSON.stringify(x))}),f},e}();function Wa(e,r){return _t.create(e.positionAt(r.offset),e.positionAt(r.offset+r.length))}var Rb={schemaAssociations:{},schemas:{}};function Lb(e,r){var n=[],a=[],o=[],f=-1,d=Ss(e.getText(),!1),m=d.scan();function g(ke){n.push(ke),a.push(o.length)}for(;m!==17;){switch(m){case 1:case 3:{var b=e.positionAt(d.getTokenOffset()).line,x={startLine:b,endLine:b,kind:m===1?"object":"array"};o.push(x);break}case 2:case 4:{var I=m===2?"object":"array";if(o.length>0&&o[o.length-1].kind===I){var x=o.pop(),N=e.positionAt(d.getTokenOffset()).line;x&&N>x.startLine+1&&f!==x.startLine&&(x.endLine=N-1,g(x),f=x.startLine)}break}case 13:{var b=e.positionAt(d.getTokenOffset()).line,j=e.positionAt(d.getTokenOffset()+d.getTokenLength()).line;d.getTokenError()===1&&b+1<e.lineCount?d.setPosition(e.offsetAt(ii.create(b+1,0))):b<j&&(g({startLine:b,endLine:j,kind:Jl.Comment}),f=b);break}case 12:{var W=e.getText().substr(d.getTokenOffset(),d.getTokenLength()),ee=W.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ee){var N=e.positionAt(d.getTokenOffset()).line;if(ee[1]){var x={startLine:N,endLine:N,kind:Jl.Region};o.push(x)}else{for(var te=o.length-1;te>=0&&o[te].kind!==Jl.Region;)te--;if(te>=0){var x=o[te];o.length=te,N>x.startLine&&f!==x.startLine&&(x.endLine=N,g(x),f=x.startLine)}}}break}}m=d.scan()}var se=r&&r.rangeLimit;if(typeof se!="number"||n.length<=se)return n;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(e.uri);for(var ie=[],de=0,we=a;de<we.length;de++){var xe=we[de];xe<30&&(ie[xe]=(ie[xe]||0)+1)}for(var Ee=0,ye=0,te=0;te<ie.length;te++){var be=ie[te];if(be){if(be+Ee>se){ye=te;break}Ee+=be}}for(var Se=[],te=0;te<n.length;te++){var xe=a[te];typeof xe=="number"&&(xe<ye||xe===ye&&Ee++<se)&&Se.push(n[te])}return Se}function Mb(e,r,n){function a(m){for(var g=e.offsetAt(m),b=n.getNodeFromOffset(g,!0),x=[];b;){switch(b.type){case"string":case"object":case"array":var I=b.offset+1,N=b.offset+b.length-1;I<N&&g>=I&&g<=N&&x.push(o(I,N)),x.push(o(b.offset,b.offset+b.length));break;case"number":case"boolean":case"null":case"property":x.push(o(b.offset,b.offset+b.length));break}if(b.type==="property"||b.parent&&b.parent.type==="array"){var j=d(b.offset+b.length,5);j!==-1&&x.push(o(b.offset,j))}b=b.parent}for(var W=void 0,ee=x.length-1;ee>=0;ee--)W=cc.create(x[ee],W);return W||(W=cc.create(_t.create(m,m))),W}function o(m,g){return _t.create(e.positionAt(m),e.positionAt(g))}var f=Ss(e.getText(),!0);function d(m,g){f.setPosition(m);var b=f.scan();return b===g?f.getTokenOffset()+f.getTokenLength():-1}return r.map(a)}function Nb(e){var r=e.promiseConstructor||Promise,n=new Cb(e.schemaRequestService,e.workspaceContext,r);n.setSchemaContributions(Rb);var a=new sb(n,e.contributions,r,e.clientCapabilities),o=new lb(n,e.contributions,r),f=new Fb(n),d=new Eb(n,r);return{configure:function(m){n.clearExternalSchemas(),m.schemas&&m.schemas.forEach(function(g){n.registerExternalSchema(g.uri,g.fileMatch,g.schema)}),d.configure(m)},resetSchema:function(m){return n.onResourceChange(m)},doValidation:d.doValidation.bind(d),parseJSONDocument:function(m){return rb(m,{collectComments:!0})},newJSONDocument:function(m,g){return tb(m,g)},doComplete:a.doComplete.bind(a),findDocumentSymbols:f.findDocumentSymbols.bind(f),findDocumentSymbols2:f.findDocumentSymbols2.bind(f),findColorSymbols:function(m,g){return f.findDocumentColors(m,g).then(function(b){return b.map(function(x){return x.range})})},findDocumentColors:f.findDocumentColors.bind(f),getColorPresentations:f.getColorPresentations.bind(f),doHover:o.doHover.bind(o),getFoldingRanges:Lb,getSelectionRanges:Mb,format:function(m,g,b){var x=void 0;if(g){var I=m.offsetAt(g.start),N=m.offsetAt(g.end)-I;x={offset:I,length:N}}var j={tabSize:b?b.tabSize:4,insertSpaces:b?b.insertSpaces:!0,eol:`
|
|
358
|
-
`};return G0(m.getText(),x,j).map(function(W){return ai.replace(_t.create(m.positionAt(W.offset),m.positionAt(W.offset+W.length)),W.content)})}}}var I1=s(49055),k1=s(32407),F1=s(29387),R1=s(22130),L1=s(61682),M1=s(19757),N1=s(46830),D1=s(59176),B1=s(6364),j1=s(53513),eg=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});const Ts=Nb({});bs.registerHelper("lint","json",function(e,r){return eg(this,null,function*(){const{schema:n,setError:a}=r;Ts.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const o=dc.create(r.id+".json","json",0,e),f=Ts.parseJSONDocument(o),d=yield Ts.doValidation(o,f);return d.length?a&&a(d[0].message):a&&a(void 0),d.map(m=>({from:bs.Pos(m.range.start.line,m.range.start.character),to:bs.Pos(m.range.end.line,m.range.end.character),message:m.message}))})}),bs.registerHelper("hint","json",(e,r)=>eg(void 0,null,function*(){const n=r.schema;if(!n)return;Ts.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const a=e.getDoc().getCursor(),o=e.getTokenAt(a),f=dc.create(r.id+".json","json",0,e.getValue()),d=Ts.parseJSONDocument(f),m=yield Ts.doComplete(f,{line:a.line,character:a.ch},d),g=x=>{let I="";for(;x--;)I+=" ";return I};let b=m?m.items.map(x=>({text:x.insertText,displayText:x.label,filter:x.filterText||x.label,from:{line:x.textEdit.range.start.line,ch:x.textEdit.range.start.character},to:{line:x.textEdit.range.end.line,ch:x.textEdit.range.end.character},hint:(I,N,j)=>{const W="_$__REDOC_CURSOR_HERE";let ee=j.text.replace(/(\$1|\${1:[^}]+})/,W)||"";if(ee=ee.replace(/(\$\d+|\${[^}]+})/g,"")||"",I.setSelection(j.from,j.to),ee.indexOf(`
|
|
359
|
-
`)>-1){const se=I.getLine(I.getCursor().line).search(/(\S|$)/);ee=ee.replace(/\n/g,`
|
|
360
|
-
`+g(se))}I.replaceSelection(ee);const te=I.getSearchCursor(W,j.from);te.findNext()&&(I.setCursor(te.from()),te.replace(""))}})):[];return/(property|string)/.test(o.type||"")&&(b=b.filter(x=>x.filter.replace(/(^"|"$)/g,"").startsWith(o.string.replace(/(^"|"$)/g,"")))),{from:bs.Pos(a.line,o.start),to:bs.Pos(a.line,a.ch),list:b}}));var Db=Object.defineProperty,Bb=(e,r,n)=>r in e?Db(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,tu=(e,r,n)=>(Bb(e,typeof r!="symbol"?r+"":r,n),n);const jb=Ut.vJ`
|
|
361
|
-
.cm-s-material.CodeMirror {
|
|
362
|
-
background-color: var(--panel-samples-controls-background-color)!important;
|
|
363
|
-
color: var(--text-color-inverse)!important;
|
|
364
|
-
font-family: var(--code-font-family);
|
|
365
|
-
line-height: 18px;
|
|
366
|
-
padding: 10px;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.CodeMirror-lint-mark-error {
|
|
370
|
-
background-size: 4px;
|
|
371
|
-
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAVUlEQVR42mNgQAL/GRjigPg/EP8FYntkCX4gtoVKgvE/BoabcEVAhj6S5DUgfgFl/wFJ2gPxL6iuT1DF+kD2R5AYA5KRj6CS/FAMYvszIBltz4AFAAD9fz0YtLg13wAAAABJRU5ErkJggg==') !important;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.cm-s-material.CodeMirror-focused div.CodeMirror-selected {
|
|
375
|
-
background: rgba(255, 255, 255, 0.3) !important;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.cm-s-material .CodeMirror-code .cm-string.cm-property {
|
|
379
|
-
color: var(--code-block-tokens-property-string-color);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.cm-s-material .CodeMirror-code .cm-string {
|
|
383
|
-
color: var(--code-block-tokens-string-color);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.cm-s-material .CodeMirror-code .cm-atom {
|
|
387
|
-
color: var(--text-color-inverse);
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
div .cm-s-material .CodeMirror-matchingbracket {
|
|
391
|
-
outline: 1px solid grey;
|
|
392
|
-
text-decoration: none;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.react-codemirror2 {
|
|
396
|
-
display: flex;
|
|
397
|
-
flex-direction: column;
|
|
398
|
-
justify-content: flex-start;
|
|
399
|
-
overflow: hidden;
|
|
400
|
-
|
|
401
|
-
flex: 1;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.CodeMirror {
|
|
405
|
-
flex: 1;
|
|
406
|
-
border-radius: var(--panel-border-radius);
|
|
407
|
-
}
|
|
408
|
-
`;class Vb extends h.PureComponent{constructor(){super(...arguments),tu(this,"editor"),tu(this,"_onKeyUp",(r,n)=>{/^[a-zA-Z0-9_":]$/.test(n.key)&&this.editor.execCommand("autocomplete")}),tu(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),tu(this,"refreshEditor",()=>{this.editor.refresh()}),tu(this,"showHintHandler",()=>this.editor.showHint({completeSingle:!0}))}componentDidMount(){setTimeout(()=>{this.editor.refresh()},0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:r}=this.props.fieldState,{setValue:n,setTouched:a,setError:o}=this.props.fieldApi,{onChange:f,onBlur:d,forwardedRef:m}=this.props;return h.createElement(h.Fragment,null,h.createElement(jb,null),h.createElement(I0.fk,{editorDidMount:this.initEditor,value:r||"",ref:m,onBeforeChange:(g,b,x)=>{n(x),f&&f(x)},onBlur:g=>{a(!1),d&&d(g)},options:{mode:this.props.mode||tc.T.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":this.showHintHandler,"Ctrl-Space":this.showHintHandler},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:o}}}))}}const Ub=Vr(Vb);var Wb=Object.defineProperty,Hb=Object.defineProperties,zb=Object.getOwnPropertyDescriptors,tg=Object.getOwnPropertySymbols,Gb=Object.prototype.hasOwnProperty,$b=Object.prototype.propertyIsEnumerable,rg=(e,r,n)=>r in e?Wb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Kb=(e,r)=>{for(var n in r||(r={}))Gb.call(r,n)&&rg(e,n,r[n]);if(tg)for(var n of tg(r))$b.call(r,n)&&rg(e,n,r[n]);return e},Yb=(e,r)=>Hb(e,zb(r));const Jb=(0,$i.Pi)(({body:e,formApi:r,resolvedBody:n,properties:a,id:o,validate:f})=>{var d,m;const g=e.content,b=ee=>{var te;if(!g||!g.hasSample)return"";const se=(te=g.active)==null?void 0:te.examples;if(!(se!=null&&se[ee]))return"";const ie=se==null?void 0:se[ee].value,de=a?Tr()(ie,a,{arrayMerge:ja.lN}):ie;return JSON.stringify(de,null,2)},x=(d=g==null?void 0:g.operation)==null?void 0:d.activeExampleName,I=ee=>{g==null||g.activateExampleName(ee),r.setValue("body",b(ee))},N=(ee,te)=>{r.setValue(`body.${ee}`,te)};(0,h.useEffect)(()=>{var ee,te;if((ee=g==null?void 0:g.operation)!=null&&ee.activeMimeName){const se=(0,Xt.P6)(o,g.operation.activeMimeName,x,(te=g==null?void 0:g.active)==null?void 0:te.examples);r.setValue("body",(0,Bt.YQ)(se)||b(x||""))}else r.setValue("body",JSON.stringify(a||{},null,2))},[x,(m=g==null?void 0:g.operation)==null?void 0:m.activeMimeName,g==null?void 0:g.active]);const j=ee=>h.createElement(Xn.DropdownOrLabel,Yb(Kb({},ee),{variant:"dark",fullWidth:!0,Label:P0,Dropdown:ph.Dropdown})),W=(0,h.useCallback)((ee="",te="",se=[])=>ie=>{(0,Bt.WW)((0,Xt.P6)(o,ee,te,se),ie)},[o]);return h.createElement(h.Fragment,null,h.createElement(Xn.MediaTypesSwitch,{content:e.content,renderDropdown:j},ee=>{const te=ee.examples||{},se=Object.keys(te),ie=ee.schema,de=fh(ie||{},ee.name)||ee.name===tc.T.MULTIPART||ee.name===tc.T.URL_ENCODED,{exampleKey:we}=(0,Rd.C6)(ee.operation,te),xe=(0,Bt.YQ)((0,Xt.P6)(o,ee.name,we,te))||(0,Xt.oY)(te[we],a);return h.createElement(h.Fragment,null,se.length&&se.length!==1&&h.createElement(Rd.b_,{examples:te,onChange:I,exampleKey:we,panel:"try-it"})||null,de?h.createElement(O0,{mediaType:ee,formApi:r,onChange:N}):h.createElement(Ub,{id:"body"+o,field:"body",initialValue:xe,schema:((n==null?void 0:n.content[ee.name])||{}).schema,mode:ee.name,validate:f,onChange:W(ee.name,we,te)}))}))}),Xb=(0,h.memo)(Jb);function Qb({response:e}){return h.createElement(h.Fragment,null,h.createElement(Bn.EE,null," Body: "),Zb(e))}function Zb(e){return e.body?h.createElement(vn.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?h.createElement(Xn.SourceCodeWithFile,{fileInfo:e.fileInfo}):e.data!==null?e.data?h.createElement(vn.SourceCode,{lang:(0,Xn.langFromMime)(e.headers["Content-Type"]||"text/plain"),source:e.data,withCopyButton:!0}):h.createElement(Bn.w3,null,h.createElement("i",null,"(no content)")):null}function _b({headers:e}){const r=(0,h.useContext)(Xn.OptionsContext),[n,a]=(0,h.useState)(!0),{maxResponseHeadersToShowInTryIt:o}=r,f=Object.keys(e),d=!!o&&f.length>o,m=d&&n?[...f].splice(0,o):[...f],g=()=>{a(!n)};return h.createElement(h.Fragment,null,h.createElement(Bn.EE,null," Headers: "),h.createElement(Bn.w3,null,m.map(b=>h.createElement("div",{key:b},h.createElement(ng,null,b,":"),h.createElement("code",null,e[b]))),d&&h.createElement(ig,{onClick:g},n?"Show more...":"Hide headers")))}const ng=Ut.ZP.strong`
|
|
409
|
-
text-transform: capitalize;
|
|
410
|
-
display: inline-block;
|
|
411
|
-
padding-right: 5px;
|
|
412
|
-
`,ig=Ut.ZP.div`
|
|
413
|
-
cursor: pointer;
|
|
414
|
-
margin-top: 5px;
|
|
415
|
-
font-size: 14px;
|
|
416
|
-
`;ng.displayName="HeaderName",ig.displayName="StyledShowMoreLabel";const qb=Ut.ZP.div`
|
|
417
|
-
margin-bottom: 10px;
|
|
418
|
-
`,Zd=Ut.ZP.div`
|
|
419
|
-
display: inline-block;
|
|
420
|
-
margin-right: 20px;
|
|
421
|
-
padding: 2px 0;
|
|
422
|
-
text-align: center;
|
|
423
|
-
color: var(--text-color-inverse);
|
|
424
|
-
`,ex=(0,Ut.ZP)(Zd)`
|
|
425
|
-
color: ${({code:e})=>e>=200&&e<300?"var(--response-success-text-color)":e>=300&&e<400?"var(--response-redirect-text-color)":e>400?"var(--response-error-text-color)":"var(--response-info-text-color)"};
|
|
426
|
-
`,ag=Ut.ZP.header`
|
|
427
|
-
font-weight: bold;
|
|
428
|
-
margin-bottom: 10px;
|
|
429
|
-
`,tx=Ut.ZP.code`
|
|
430
|
-
border-left: 3px solid #ff4040;
|
|
431
|
-
padding-left: 5px;
|
|
432
|
-
`;class rx extends h.PureComponent{render(){const{error:r,response:n,time:a}=this.props,o=n||r&&r.response,f=o&&o.data&&o.data.length||0;let d;return f>1e6?d=(f/1e6).toFixed(2)+" MB":f>1e3?d=(f/1e3).toFixed(2)+" KB":d=f+" B",r&&!r.response||!o?h.createElement(h.Fragment,null,h.createElement(ag,null," Could not get any response "),h.createElement(tx,null,r&&r.message||"Unknown error"),h.createElement("br",null),h.createElement(ag,null," Why this might have happened:"),h.createElement("div",null," - CORS is misconfigured on the server"),h.createElement("div",null," - The server couldn't send a response"),h.createElement("div",null," - No internet access"),h.createElement("div",null," - Documentation issue - contact API owner"),h.createElement("div",null," - Misconfigured security definition")):o?h.createElement(h.Fragment,null,h.createElement(qb,null,h.createElement(ex,{code:o.status},h.createElement("span",null," Status: "),o.status," ",o.statusText),h.createElement(Zd,null,h.createElement("span",null," Time: "),a,"ms"),h.createElement(Zd,null,h.createElement("span",null," Size: "),d)),h.createElement("div",null,h.createElement(_b,{headers:o.headers}),h.createElement(Qb,{response:o}))):h.createElement(h.Fragment,null,"Something went wrong")}}var og=s(46521);function nx(e,r,n){const a=r.path||{},o=r.query||{},f=Object.keys(o);let d=(0,Xt.v5)(e,a);const m=g=>n.find(b=>b.name===g&&b.in==="query");return f.length&&(d+="?"+f.map(g=>{if(!o[g])return"";const b=m(g);return b?(0,Xn.serializeParameterValue)(b,o[g]):`${g}=${encodeURIComponent(o[g])}`}).filter(Boolean).join("&")),d}const ix=({loading:e,operation:r,hasResponse:n,execute:a,params:o={}})=>h.createElement(Yf.k1,null,h.createElement(og.__,null,h.createElement(Wh.FH,{type:r.httpVerb},r.httpVerb),h.createElement(og.y$,{wrap:"true"},nx(r.path,o,r.parameters))),h.createElement(ax,{"data-cy":"send-button",color:"primary",blinking:e,onClick:()=>!e&&a()},e?"Sending...":n?"Resend":"Send")),ax=(0,Ut.ZP)(vn.Button)`
|
|
433
|
-
width: var(--panel-try-it-action-button-width);
|
|
434
|
-
`,ox=(0,h.memo)(ix);function sx({name:e,value:r,description:n,variableEnum:a,onChange:o,defaultValue:f}){const d=(0,h.useCallback)(b=>o(b.target.value),[o]),m=(0,h.useCallback)(b=>o(b.value),[o]),g=a?a.map((b,x)=>({value:b,idx:x})):[];return h.createElement(ft.NI,null,h.createElement(ft.lX,null,e,":"),g&&g.length?h.createElement(Bn.VD,{fullWidth:!0,variant:"dark",value:r,options:g,onChange:m}):h.createElement(Ul,{fullWidth:!0,value:r,onChange:d,placeholder:f,panel:"try-it"}),n&&h.createElement(lx,{compact:!0,source:n}))}const lx=(0,Ut.ZP)(Xn.Markdown)`
|
|
435
|
-
margin-top: 5px;
|
|
436
|
-
color: #d0d0d0;
|
|
437
|
-
`;var ux=Object.defineProperty,fx=Object.defineProperties,cx=Object.getOwnPropertyDescriptors,sg=Object.getOwnPropertySymbols,dx=Object.prototype.hasOwnProperty,px=Object.prototype.propertyIsEnumerable,lg=(e,r,n)=>r in e?ux(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ug=(e,r)=>{for(var n in r||(r={}))dx.call(r,n)&&lg(e,n,r[n]);if(sg)for(var n of sg(r))px.call(r,n)&&lg(e,n,r[n]);return e},fg=(e,r)=>fx(e,cx(r));const hx=(0,$i.Pi)(({operation:e,onChange:r})=>{const n=(0,Bt.YQ)("serverUrl"),a=e.servers.findIndex(N=>N.url===n),[o,f]=(0,h.useState)(a<0?0:a),[d,m]=(0,h.useState)({});(0,Qf.b6)(()=>{const N=(0,Xt.fz)(e.servers,o);r(N),m(N.variables)});const g=N=>{const j=e.servers.find(te=>te.url===N.serverUrl),W=e.servers.findIndex(te=>te.url===N.serverUrl),ee=(0,Xt.mj)(j);r({url:N.serverUrl||"",variables:ee}),(0,Bt.WW)("serverUrl",N.serverUrl||""),f(W),m(ee)},b=(N,j)=>{const W=e.servers[o],ee=j||j===""?j:(0,Xt.mj)(W)[N],te=fg(ug({},d),{[N]:ee});m(te),(0,Xt.UY)(N,ee),r(fg(ug({},W),{variables:te}))},x=e.servers.map((N,j)=>({idx:j,serverUrl:N.url,value:`
|
|
438
|
-
${(0,Xt.nq)((0,Xt.v5)(N.url,d),N.variables)}
|
|
439
|
-
- ${N.description||"Default"}
|
|
440
|
-
`})),I=Object.keys(d);return h.createElement(vx,{"data-cy":"console-target-server"},h.createElement(ft.lX,{htmlFor:"server"},"Target server: "),h.createElement(ft.NI,null,h.createElement(Bn.VD,{variant:"dark",value:x[o].value,options:x,fullWidth:!0,onChange:g})),I==null?void 0:I.map(N=>{var j;const W=(j=e.servers[o].variables)==null?void 0:j[N];if(W)return h.createElement(sx,{key:N,name:N,value:d[N],defaultValue:W.default,onChange:ee=>b(N,ee),variableEnum:W.enum,description:W.description})}))}),vx=Ut.ZP.div`
|
|
441
|
-
margin-bottom: 20px;
|
|
442
|
-
`;var gx=Object.defineProperty,mx=Object.defineProperties,yx=Object.getOwnPropertyDescriptors,gc=Object.getOwnPropertySymbols,cg=Object.prototype.hasOwnProperty,dg=Object.prototype.propertyIsEnumerable,pg=(e,r,n)=>r in e?gx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,bx=(e,r)=>{for(var n in r||(r={}))cg.call(r,n)&&pg(e,n,r[n]);if(gc)for(var n of gc(r))dg.call(r,n)&&pg(e,n,r[n]);return e},xx=(e,r)=>mx(e,yx(r)),Sx=(e,r)=>{var n={};for(var a in e)cg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&gc)for(var a of gc(e))r.indexOf(a)<0&&dg.call(e,a)&&(n[a]=e[a]);return n};function _d(e){var r=e,{header:n,error:a,success:o}=r,f=Sx(r,["header","error","success"]);const d=({toggle:m,expanded:g=!1})=>h.createElement(vn.PanelHeader,{onClick:m,expanded:g,"data-cy":f["data-cy"]},h.createElement(Yf.xz,null,h.createElement(vn.PanelHeaderTitle,null,n),h.createElement(vn.ShelfIcon,{direction:g?"down":"right"})),a&&h.createElement(Xn.CrossIcon,{size:"14px",color:"--color-error-500"})||null,o&&h.createElement(Xn.LockIcon,{size:"14px",color:"--color-success-500"})||null);return h.createElement(wx,xx(bx({className:"panel-try-it-nested"},f),{header:d}))}const wx=(0,Ut.ZP)(vn.Panel)`
|
|
443
|
-
${vn.PanelHeader} {
|
|
444
|
-
border: 1px solid
|
|
445
|
-
${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-heading-border-color)"};
|
|
446
|
-
padding: 10px;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
${vn.PanelBody} {
|
|
450
|
-
border: 1px solid
|
|
451
|
-
${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-body-border-color)"};
|
|
452
|
-
border-top: 0;
|
|
453
|
-
}
|
|
454
|
-
`,Ax=Ut.ZP.div`
|
|
455
|
-
display: flex;
|
|
456
|
-
font-size: 12px;
|
|
457
|
-
button {
|
|
458
|
-
margin: 0;
|
|
459
|
-
}
|
|
460
|
-
`,hg=Ut.ZP.button`
|
|
461
|
-
outline: none;
|
|
462
|
-
border: none;
|
|
463
|
-
background-color: var(--panel-try-it-tabs-background-color);
|
|
464
|
-
text-align: center;
|
|
465
|
-
cursor: pointer;
|
|
466
|
-
color: var(--panel-try-it-tabs-text-color);
|
|
467
|
-
min-width: 80px;
|
|
468
|
-
min-height: 30px;
|
|
469
|
-
border-radius: var(--border-radius);
|
|
470
|
-
font-size: var(--panel-try-it-tabs-font-size);
|
|
471
|
-
font-family: var(--panel-try-it-tabs-font-family);
|
|
472
|
-
font-weight: var(--panel-try-it-tabs-font-weight);
|
|
473
|
-
padding: 0 10px;
|
|
474
|
-
border-bottom: 4px solid var(--panel-try-it-tabs-border-color);
|
|
475
|
-
|
|
476
|
-
&:first-child {
|
|
477
|
-
border-radius: var(--border-radius) 0 0 var(--border-radius);
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
&:last-child {
|
|
481
|
-
border-radius: 0 var(--border-radius) var(--border-radius) 0;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
&:hover:not(:disabled) {
|
|
485
|
-
border-color: var(--panel-try-it-tabs-hover-border-color);
|
|
486
|
-
background-color: var(--panel-try-it-tabs-hover-background-color);
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
${({active:e})=>e&&Ut.iv`
|
|
490
|
-
border-color: var(--panel-try-it-tabs-active-border-color);
|
|
491
|
-
background-color: var(--panel-try-it-tabs-active-background-color);
|
|
492
|
-
`||""}
|
|
493
|
-
|
|
494
|
-
${({disabled:e})=>e&&Ut.iv`
|
|
495
|
-
cursor: default;
|
|
496
|
-
border-color: var(--panel-try-it-tabs-disables-border-color)
|
|
497
|
-
background-color: var(--panel-try-it-tabs-disabled-background-color);
|
|
498
|
-
color: var(--panel-try-it-tabs-disabled-text-color);
|
|
499
|
-
`||""}
|
|
500
|
-
`;function Cx({onChange:e,active:r,hasResponse:n}){return h.createElement(Ax,null,h.createElement(hg,{onClick:()=>e(0),active:r===0},n?"Edit Request":"Request"),h.createElement(hg,{onClick:()=>n&&e(1),active:r===1,disabled:!n}," ","Response"," "))}var vg=Object.defineProperty,Ex=Object.defineProperties,Ox=Object.getOwnPropertyDescriptor,Tx=Object.getOwnPropertyDescriptors,mc=Object.getOwnPropertySymbols,gg=Object.prototype.hasOwnProperty,mg=Object.prototype.propertyIsEnumerable,qd=(e,r,n)=>r in e?vg(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Gr=(e,r)=>{for(var n in r||(r={}))gg.call(r,n)&&qd(e,n,r[n]);if(mc)for(var n of mc(r))mg.call(r,n)&&qd(e,n,r[n]);return e},Un=(e,r)=>Ex(e,Tx(r)),yg=(e,r)=>{var n={};for(var a in e)gg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&mc)for(var a of mc(e))r.indexOf(a)<0&&mg.call(e,a)&&(n[a]=e[a]);return n},Px=(e,r,n,a)=>{for(var o=a>1?void 0:a?Ox(r,n):r,f=e.length-1,d;f>=0;f--)(d=e[f])&&(o=(a?d(r,n,o):d(o))||o);return a&&o&&vg(r,n,o),o},Ps=(e,r,n)=>(qd(e,typeof r!="symbol"?r+"":r,n),n),bg=(e,r,n)=>new Promise((a,o)=>{var f=g=>{try{m(n.next(g))}catch(b){o(b)}},d=g=>{try{m(n.throw(g))}catch(b){o(b)}},m=g=>g.done?a(g.value):Promise.resolve(g.value).then(f,d);m((n=n.apply(e,r)).next())});function xg(e){return e.startsWith("//")?"https:"+e:e}const Ix={flex:1,display:"flex",flexDirection:"column"};let ep=class extends h.Component{constructor(e){super(e),Ps(this,"formApi"),Ps(this,"setFormApi",(r,n=r.getState())=>{var a=n,{values:o}=a,f=yg(a,["values"]);this.formApi=r,setTimeout(()=>{const d=Un(Gr({},f),{values:Un(Gr({},o),{query:(0,Xt.FU)(o.query||{})})});this.setState({form:d})},0)}),Ps(this,"handleChange",r=>{var n=r,{values:a}=n,o=yg(n,["values"]);const f=Un(Gr({},o),{values:Un(Gr({},a),{query:(0,Xt.FU)(a.query||{})})});this.setState({form:f}),(0,Xt.Hc)(f),this.props.operation.setRequestValues(a)}),Ps(this,"handleTabChange",r=>{this.setState({activeTab:r})}),Ps(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),Ps(this,"handleExecute",()=>bg(this,null,function*(){var r,n,a,o,f,d,m,g;const{store:b,operation:x,onResponse:I}=this.props,{values:N,invalid:j}=this.state.form;if((r=this.formApi)==null||r.submitForm(),j){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(a=(n=b==null?void 0:b.options.events)==null?void 0:n.tryItSent)==null||a.call(n,{eventType:Sh.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:x.operationId,operationPath:x.path,operationHttpVerb:x.httpVerb,operationSummary:x.description});return}const{servers:W,requestBody:ee}=this.props.operation,te=ee&&ee.content&&ee.content.active&&ee.content.active.name||"";let se=N.body;if(/json/.test(te))try{se=JSON.parse(se)}catch(Re){console.error(Re)}this.setState({loading:!0});const ie=this.state.resolvedRawSpec,de=(x.httpVerb||"").toLowerCase();if(!W)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const we=W.find(Re=>this.state.server.url.endsWith(Re.url.endsWith("/")?Re.url.substring(0,Re.url.length-1):Re.url)),xe=Date.now(),Ee=!!window.document.documentMode;let ye,be=N.auth;if(N.auth){const Re=Object.keys(N.auth)[0],We=(0,Bt.dw)(Re);ye=Un(Gr({},ie),{components:Un(Gr({},ie==null?void 0:ie.components),{securitySchemes:Un(Gr({},ie==null?void 0:ie.components.securitySchemes),{[We]:Un(Gr({},ie==null?void 0:ie.components.securitySchemes[We]),{type:(ie==null?void 0:ie.components.securitySchemes[We].type)==="openIdConnect"?"oauth2":ie==null?void 0:ie.components.securitySchemes[We].type})})})}),be=Un(Gr({},be),{[We]:be[Re]})}else ye=Gr({},ie);ye.servers=W;const Se=b.options.corsProxyUrl;Se&&W.length&&(ye.servers=W.map(Re=>Un(Gr({},Re),{url:Se+xg(Re.url)})),ye.paths=Un(Gr({},ye.paths),{[x.path]:Un(Gr({},ye.paths[x.path]),{[de]:Un(Gr({},ye.paths[x.path][de]),{servers:void 0}),servers:void 0})}));const ke=((f=(o=ee==null?void 0:ee.content)==null?void 0:o.active)==null?void 0:f.name)||null;if(ke&&se&&Xf(ke)){const Re=Object.values(se);se=Re.length>1?Re:Re[0]}const Me={userFetch:Ee&&s(96279).fetch,server:Se?Se+xg(we.url):we.url,serverVariables:this.state.server.variables,spec:ye,pathName:x.path,method:x.httpVerb,parameters:Gr(Gr(Gr(Gr({},N.path),N.query),N.header),N.cookie),securities:{authorized:be},requestBody:se,requestContentType:ke,responseContentType:((d=N.header)==null?void 0:d.Accept)||null,requestInterceptor:(0,Xt.Tz)(b.options,x,be==null?void 0:be.Authorization)};try{const Re=yield Qm.execute(Me),We=Re==null?void 0:Re.data;We instanceof Blob&&(Xf(We.type)&&(Re.fileInfo={rawData:We,fileName:(0,Xt.AM)(Re.headers)}),Re.data=yield We.text()),I==null||I({request:Me,response:Re}),this.setState({response:Re,error:void 0})}catch(Re){Re&&Re.response&&Re.response.data instanceof Blob&&(Re.response.data=yield Re.response.data.text(),I==null||I({request:Me,response:Re.response})),this.setState({response:void 0,error:Re})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-xe}),(g=(m=b==null?void 0:b.options.events)==null?void 0:m.tryItSent)==null||g.call(m,{eventType:Sh.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:x.operationId,operationPath:x.path,operationHttpVerb:x.httpVerb,operationSummary:x.description})}})),this.state={form:{values:{path:(0,Xt.ZS)(e.operation.parameters,"path"),cookie:(0,Xt.ZS)(e.operation.parameters,"cookie"),header:(0,Xt.ZS)(e.operation.parameters,"header"),query:(0,Xt.ZS)(e.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return bg(this,null,function*(){var e;const{store:r,operation:n}=this.props,a=yield r.dereferenceSpecForTryIt(n);this.setState({resolvedRawSpec:a}),(e=this.formApi)==null||e.setValues({})})}componentDidUpdate(e){e.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:e,className:r,rootElement:n}=this.props,{shaking:a,activeTab:o,form:f,response:d,loading:m,error:g}=this.state,b=!!(d||g);return h.createElement(Fx,{shaking:a,className:r,rootElement:n},h.createElement(Yf.Hc,null,h.createElement(Cx,{active:o,hasResponse:b,onChange:this.handleTabChange}),this.props.onClose&&h.createElement(Bn.PZ,{onClick:this.props.onClose}," \u2715 ")),h.createElement(Bn.RE,{hidden:o!==0,"data-cy":"console-request-body"},this.renderRequest()),h.createElement(Bn.RE,{hidden:o!==1,"data-cy":"console-response-body"},this.renderResponse()),h.createElement(ox,{hasResponse:b,params:f.values,operation:e,loading:m,execute:this.handleExecute}))}renderRequest(){var e;const{operation:r,store:n,properties:a,securityDefaults:o}=this.props,{form:f,resolvedRawSpec:d,server:m}=this.state,g=f.errors||{},b=g.path||g.cookie||g.header||g.query,x=d&&Xn.JsonPointer.get(d,r.pointer);let I=f.values&&f.values.auth&&Object.keys(f.values.auth)[0];(!I||!f.values.auth[I])&&(I=void 0),I&&(f.values.auth[I].token!==void 0||f.values.auth[I].client_id!==void 0||f.values.auth[I].client_secret!==void 0)&&(!f.values.auth[I].token||!f.values.auth[I].token.access_token)&&(I=void 0),I&&f.values.auth[I].username!=null&&(!f.values.auth[I].username||!f.values.auth[I].password)&&(I=void 0);const N=r.parameters||[],j=(e=n==null?void 0:n.options.hooks)==null?void 0:e.ReplaceTryItSecurityPanel;return!d&&h.createElement(h.Fragment,null,"Loading...")||h.createElement(fu,{onChange:this.handleChange,getApi:this.setFormApi,style:Un(Gr({},Ix),{margin:0})},h.createElement(hx,{operation:r,onChange:this.handleServerChange}),h.createElement(Yf.UQ,{initialActiveIdx:r.security.length&&I?1:0},r.security.length&&this.formApi&&h.createElement(_d,{header:(0,jl.l)("tryItAuth"),"data-cy":"security-trigger",error:!I&&!!g.auth,success:!!I,renderChildrenHidden:!0},j?h.createElement(Rx,{field:"auth",validate:Xt.np},W=>h.createElement(Zm.Q,{Hook:j,props:{server:m,operation:r,onChange:W,OAuth2:Ai}})):h.createElement(w0,{formApi:this.formApi,form:f,operation:r,activeServer:m.url,authCorsProxyUrl:n.options.authCorsProxyUrl,securityDefaults:o}))||null,r.requestBody&&this.formApi&&h.createElement(_d,{header:(0,jl.l)("tryItBody"),"data-cy":"body-trigger",error:!!g.body,renderChildrenHidden:!0},h.createElement(Xb,{validate:kx,formApi:this.formApi,body:r.requestBody,id:r.id,resolvedBody:x==null?void 0:x.requestBody,properties:a}))||null,N.length&&h.createElement(_d,{header:(0,jl.l)("tryItParameters"),"data-cy":"parameters-trigger",error:b,renderChildrenHidden:!0},h.createElement(Ey,{operation:r,values:f.values,errors:f.errors||{}}))||null))}renderResponse(){const{response:e,error:r,time:n}=this.state;return h.createElement(rx,{response:e,error:r,time:n})}};ep=Px([$i.Pi],ep);function kx(){}function Fx(e){const{shaking:r,className:n,children:a,rootElement:o}=e,[f]=(0,Qf.Bs)(o),d=(0,h.useContext)(Xn.StoreContext);return h.createElement(Bn.q2,{scrollYOffset:d==null?void 0:d.options.scrollYOffset,shaking:r,className:n,"data-cy":"console",fullWidth:f==null?void 0:f.width},a)}function Rx(e){const{fieldApi:r,render:n,userProps:a}=Pn(Gr({},e)),{setValue:o}=r,{children:f}=a;return n(h.createElement(h.Fragment,null,f(o)))}},20340:()=>{},37795:v=>{"use strict";var T="Function.prototype.bind called on incompatible ",s=Array.prototype.slice,p=Object.prototype.toString,S="[object Function]";v.exports=function(h){var E=this;if(typeof E!="function"||p.call(E)!==S)throw new TypeError(T+E);for(var F=s.call(arguments,1),U,_=function(){if(this instanceof U){var $=E.apply(this,F.concat(s.call(arguments)));return Object($)===$?$:this}else return E.apply(h,F.concat(s.call(arguments)))},Q=Math.max(0,E.length-F.length),le=[],K=0;K<Q;K++)le.push("$"+K);if(U=Function("binder","return function ("+le.join(",")+"){ return binder.apply(this,arguments); }")(_),E.prototype){var ne=function(){};ne.prototype=E.prototype,U.prototype=new ne,ne.prototype=null}return U}},4090:(v,T,s)=>{"use strict";var p=s(37795);v.exports=Function.prototype.bind||p},67286:(v,T,s)=>{"use strict";var p,S=SyntaxError,A=Function,h=TypeError,E=function(pe){try{return A('"use strict"; return ('+pe+").constructor;")()}catch(q){}},F=Object.getOwnPropertyDescriptor;if(F)try{F({},"")}catch(pe){F=null}var U=function(){throw new h},_=F?function(){try{return arguments.callee,U}catch(pe){try{return F(arguments,"callee").get}catch(q){return U}}}():U,Q=s(32636)(),le=Object.getPrototypeOf||function(pe){return pe.__proto__},K={},ne=typeof Uint8Array=="undefined"?p:le(Uint8Array),$={"%AggregateError%":typeof AggregateError=="undefined"?p:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?p:ArrayBuffer,"%ArrayIteratorPrototype%":Q?le([][Symbol.iterator]()):p,"%AsyncFromSyncIteratorPrototype%":p,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":typeof Atomics=="undefined"?p:Atomics,"%BigInt%":typeof BigInt=="undefined"?p:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?p:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?p:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?p:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?p:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":K,"%Int8Array%":typeof Int8Array=="undefined"?p:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?p:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?p:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Q?le(le([][Symbol.iterator]())):p,"%JSON%":typeof JSON=="object"?JSON:p,"%Map%":typeof Map=="undefined"?p:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Q?p:le(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?p:Promise,"%Proxy%":typeof Proxy=="undefined"?p:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?p:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?p:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Q?p:le(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?p:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Q?le(""[Symbol.iterator]()):p,"%Symbol%":Q?Symbol:p,"%SyntaxError%":S,"%ThrowTypeError%":_,"%TypedArray%":ne,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array=="undefined"?p:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?p:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?p:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?p:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?p:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?p:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?p:WeakSet},P=function pe(q){var Z;if(q==="%AsyncFunction%")Z=E("async function () {}");else if(q==="%GeneratorFunction%")Z=E("function* () {}");else if(q==="%AsyncGeneratorFunction%")Z=E("async function* () {}");else if(q==="%AsyncGenerator%"){var G=pe("%AsyncGeneratorFunction%");G&&(Z=G.prototype)}else if(q==="%AsyncIteratorPrototype%"){var ve=pe("%AsyncGenerator%");ve&&(Z=le(ve.prototype))}return $[q]=Z,Z},Y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=s(4090),C=s(23198),k=L.call(Function.call,Array.prototype.concat),B=L.call(Function.apply,Array.prototype.splice),X=L.call(Function.call,String.prototype.replace),H=L.call(Function.call,String.prototype.slice),D=L.call(Function.call,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,z=function(q){var Z=H(q,0,1),G=H(q,-1);if(Z==="%"&&G!=="%")throw new S("invalid intrinsic syntax, expected closing `%`");if(G==="%"&&Z!=="%")throw new S("invalid intrinsic syntax, expected opening `%`");var ve=[];return X(q,re,function(Ie,Ne,je,tt){ve[ve.length]=je?X(tt,J,"$1"):Ne||Ie}),ve},fe=function(q,Z){var G=q,ve;if(C(Y,G)&&(ve=Y[G],G="%"+ve[0]+"%"),C($,G)){var Ie=$[G];if(Ie===K&&(Ie=P(G)),typeof Ie=="undefined"&&!Z)throw new h("intrinsic "+q+" exists, but is not available. Please file an issue!");return{alias:ve,name:G,value:Ie}}throw new S("intrinsic "+q+" does not exist!")};v.exports=function(q,Z){if(typeof q!="string"||q.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Z!="boolean")throw new h('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,q)===null)throw new S("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=z(q),ve=G.length>0?G[0]:"",Ie=fe("%"+ve+"%",Z),Ne=Ie.name,je=Ie.value,tt=!1,_e=Ie.alias;_e&&(ve=_e[0],B(G,k([0,1],_e)));for(var mt=1,De=!0;mt<G.length;mt+=1){var Oe=G[mt],Ue=H(Oe,0,1),Pe=H(Oe,-1);if((Ue==='"'||Ue==="'"||Ue==="`"||Pe==='"'||Pe==="'"||Pe==="`")&&Ue!==Pe)throw new S("property names with quotes must have matching quotes");if((Oe==="constructor"||!De)&&(tt=!0),ve+="."+Oe,Ne="%"+ve+"%",C($,Ne))je=$[Ne];else if(je!=null){if(!(Oe in je)){if(!Z)throw new h("base intrinsic for "+q+" exists, but the property is not available.");return}if(F&&mt+1>=G.length){var Ce=F(je,Oe);De=!!Ce,De&&"get"in Ce&&!("originalValue"in Ce.get)?je=Ce.get:je=je[Oe]}else De=C(je,Oe),je=je[Oe];De&&!tt&&($[Ne]=je)}}return je}},32636:(v,T,s)=>{"use strict";var p=typeof Symbol!="undefined"&&Symbol,S=s(66679);v.exports=function(){return typeof p!="function"||typeof Symbol!="function"||typeof p("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:S()}},66679:v=>{"use strict";v.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},p=Symbol("test"),S=Object(p);if(typeof p=="string"||Object.prototype.toString.call(p)!=="[object Symbol]"||Object.prototype.toString.call(S)!=="[object Symbol]")return!1;var A=42;s[p]=A;for(p in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var h=Object.getOwnPropertySymbols(s);if(h.length!==1||h[0]!==p||!Object.prototype.propertyIsEnumerable.call(s,p))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(s,p);if(E.value!==A||E.enumerable!==!0)return!1}return!0}},23198:(v,T,s)=>{"use strict";var p=s(4090);v.exports=p.call(Function.call,Object.prototype.hasOwnProperty)},89612:(v,T,s)=>{var p=s(52118),S=s(96909),A=s(98138),h=s(4174),E=s(7942);function F(U){var _=-1,Q=U==null?0:U.length;for(this.clear();++_<Q;){var le=U[_];this.set(le[0],le[1])}}F.prototype.clear=p,F.prototype.delete=S,F.prototype.get=A,F.prototype.has=h,F.prototype.set=E,v.exports=F},80235:(v,T,s)=>{var p=s(3945),S=s(21846),A=s(88028),h=s(72344),E=s(94769);function F(U){var _=-1,Q=U==null?0:U.length;for(this.clear();++_<Q;){var le=U[_];this.set(le[0],le[1])}}F.prototype.clear=p,F.prototype.delete=S,F.prototype.get=A,F.prototype.has=h,F.prototype.set=E,v.exports=F},10326:(v,T,s)=>{var p=s(38761),S=s(37772),A=p(S,"Map");v.exports=A},96738:(v,T,s)=>{var p=s(92411),S=s(36417),A=s(86928),h=s(79493),E=s(24150);function F(U){var _=-1,Q=U==null?0:U.length;for(this.clear();++_<Q;){var le=U[_];this.set(le[0],le[1])}}F.prototype.clear=p,F.prototype.delete=S,F.prototype.get=A,F.prototype.has=h,F.prototype.set=E,v.exports=F},50857:(v,T,s)=>{var p=s(37772),S=p.Symbol;v.exports=S},50343:v=>{function T(s,p){for(var S=-1,A=s==null?0:s.length,h=Array(A);++S<A;)h[S]=p(s[S],S,s);return h}v.exports=T},22218:(v,T,s)=>{var p=s(41225);function S(A,h){for(var E=A.length;E--;)if(p(A[E][0],h))return E;return-1}v.exports=S},13324:(v,T,s)=>{var p=s(17297),S=s(33812);function A(h,E){E=p(E,h);for(var F=0,U=E.length;h!=null&&F<U;)h=h[S(E[F++])];return F&&F==U?h:void 0}v.exports=A},53366:(v,T,s)=>{var p=s(50857),S=s(62107),A=s(37157),h="[object Null]",E="[object Undefined]",F=p?p.toStringTag:void 0;function U(_){return _==null?_===void 0?E:h:F&&F in Object(_)?S(_):A(_)}v.exports=U},6840:(v,T,s)=>{var p=s(61049),S=s(47394),A=s(29259),h=s(87035),E=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,U=Function.prototype,_=Object.prototype,Q=U.toString,le=_.hasOwnProperty,K=RegExp("^"+Q.call(le).replace(E,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ne($){if(!A($)||S($))return!1;var P=p($)?K:F;return P.test(h($))}v.exports=ne},1054:(v,T,s)=>{var p=s(50857),S=s(50343),A=s(86152),h=s(4795),E=1/0,F=p?p.prototype:void 0,U=F?F.toString:void 0;function _(Q){if(typeof Q=="string")return Q;if(A(Q))return S(Q,_)+"";if(h(Q))return U?U.call(Q):"";var le=Q+"";return le=="0"&&1/Q==-E?"-0":le}v.exports=_},17297:(v,T,s)=>{var p=s(86152),S=s(21401),A=s(54452),h=s(66188);function E(F,U){return p(F)?F:S(F,U)?[F]:A(h(F))}v.exports=E},24019:(v,T,s)=>{var p=s(37772),S=p["__core-js_shared__"];v.exports=S},51242:(v,T,s)=>{var p=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g;v.exports=p},27937:(v,T,s)=>{var p=s(98304);function S(A,h){var E=A.__data__;return p(h)?E[typeof h=="string"?"string":"hash"]:E.map}v.exports=S},38761:(v,T,s)=>{var p=s(6840),S=s(98109);function A(h,E){var F=S(h,E);return p(F)?F:void 0}v.exports=A},62107:(v,T,s)=>{var p=s(50857),S=Object.prototype,A=S.hasOwnProperty,h=S.toString,E=p?p.toStringTag:void 0;function F(U){var _=A.call(U,E),Q=U[E];try{U[E]=void 0;var le=!0}catch(ne){}var K=h.call(U);return le&&(_?U[E]=Q:delete U[E]),K}v.exports=F},98109:v=>{function T(s,p){return s==null?void 0:s[p]}v.exports=T},52118:(v,T,s)=>{var p=s(99191);function S(){this.__data__=p?p(null):{},this.size=0}v.exports=S},96909:v=>{function T(s){var p=this.has(s)&&delete this.__data__[s];return this.size-=p?1:0,p}v.exports=T},98138:(v,T,s)=>{var p=s(99191),S="__lodash_hash_undefined__",A=Object.prototype,h=A.hasOwnProperty;function E(F){var U=this.__data__;if(p){var _=U[F];return _===S?void 0:_}return h.call(U,F)?U[F]:void 0}v.exports=E},4174:(v,T,s)=>{var p=s(99191),S=Object.prototype,A=S.hasOwnProperty;function h(E){var F=this.__data__;return p?F[E]!==void 0:A.call(F,E)}v.exports=h},7942:(v,T,s)=>{var p=s(99191),S="__lodash_hash_undefined__";function A(h,E){var F=this.__data__;return this.size+=this.has(h)?0:1,F[h]=p&&E===void 0?S:E,this}v.exports=A},21401:(v,T,s)=>{var p=s(86152),S=s(4795),A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;function E(F,U){if(p(F))return!1;var _=typeof F;return _=="number"||_=="symbol"||_=="boolean"||F==null||S(F)?!0:h.test(F)||!A.test(F)||U!=null&&F in Object(U)}v.exports=E},98304:v=>{function T(s){var p=typeof s;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?s!=="__proto__":s===null}v.exports=T},47394:(v,T,s)=>{var p=s(24019),S=function(){var h=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}();function A(h){return!!S&&S in h}v.exports=A},3945:v=>{function T(){this.__data__=[],this.size=0}v.exports=T},21846:(v,T,s)=>{var p=s(22218),S=Array.prototype,A=S.splice;function h(E){var F=this.__data__,U=p(F,E);if(U<0)return!1;var _=F.length-1;return U==_?F.pop():A.call(F,U,1),--this.size,!0}v.exports=h},88028:(v,T,s)=>{var p=s(22218);function S(A){var h=this.__data__,E=p(h,A);return E<0?void 0:h[E][1]}v.exports=S},72344:(v,T,s)=>{var p=s(22218);function S(A){return p(this.__data__,A)>-1}v.exports=S},94769:(v,T,s)=>{var p=s(22218);function S(A,h){var E=this.__data__,F=p(E,A);return F<0?(++this.size,E.push([A,h])):E[F][1]=h,this}v.exports=S},92411:(v,T,s)=>{var p=s(89612),S=s(80235),A=s(10326);function h(){this.size=0,this.__data__={hash:new p,map:new(A||S),string:new p}}v.exports=h},36417:(v,T,s)=>{var p=s(27937);function S(A){var h=p(this,A).delete(A);return this.size-=h?1:0,h}v.exports=S},86928:(v,T,s)=>{var p=s(27937);function S(A){return p(this,A).get(A)}v.exports=S},79493:(v,T,s)=>{var p=s(27937);function S(A){return p(this,A).has(A)}v.exports=S},24150:(v,T,s)=>{var p=s(27937);function S(A,h){var E=p(this,A),F=E.size;return E.set(A,h),this.size+=E.size==F?0:1,this}v.exports=S},77777:(v,T,s)=>{var p=s(30733),S=500;function A(h){var E=p(h,function(U){return F.size===S&&F.clear(),U}),F=E.cache;return E}v.exports=A},99191:(v,T,s)=>{var p=s(38761),S=p(Object,"create");v.exports=S},37157:v=>{var T=Object.prototype,s=T.toString;function p(S){return s.call(S)}v.exports=p},37772:(v,T,s)=>{var p=s(51242),S=typeof self=="object"&&self&&self.Object===Object&&self,A=p||S||Function("return this")();v.exports=A},54452:(v,T,s)=>{var p=s(77777),S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/\\(\\)?/g,h=p(function(E){var F=[];return E.charCodeAt(0)===46&&F.push(""),E.replace(S,function(U,_,Q,le){F.push(Q?le.replace(A,"$1"):_||U)}),F});v.exports=h},33812:(v,T,s)=>{var p=s(4795),S=1/0;function A(h){if(typeof h=="string"||p(h))return h;var E=h+"";return E=="0"&&1/h==-S?"-0":E}v.exports=A},87035:v=>{var T=Function.prototype,s=T.toString;function p(S){if(S!=null){try{return s.call(S)}catch(A){}try{return S+""}catch(A){}}return""}v.exports=p},41225:v=>{function T(s,p){return s===p||s!==s&&p!==p}v.exports=T},72579:(v,T,s)=>{var p=s(13324);function S(A,h,E){var F=A==null?void 0:p(A,h);return F===void 0?E:F}v.exports=S},86152:v=>{var T=Array.isArray;v.exports=T},61049:(v,T,s)=>{var p=s(53366),S=s(29259),A="[object AsyncFunction]",h="[object Function]",E="[object GeneratorFunction]",F="[object Proxy]";function U(_){if(!S(_))return!1;var Q=p(_);return Q==h||Q==E||Q==A||Q==F}v.exports=U},29259:v=>{function T(s){var p=typeof s;return s!=null&&(p=="object"||p=="function")}v.exports=T},15125:v=>{function T(s){return s!=null&&typeof s=="object"}v.exports=T},4795:(v,T,s)=>{var p=s(53366),S=s(15125),A="[object Symbol]";function h(E){return typeof E=="symbol"||S(E)&&p(E)==A}v.exports=h},30733:(v,T,s)=>{var p=s(96738),S="Expected a function";function A(h,E){if(typeof h!="function"||E!=null&&typeof E!="function")throw new TypeError(S);var F=function(){var U=arguments,_=E?E.apply(this,U):U[0],Q=F.cache;if(Q.has(_))return Q.get(_);var le=h.apply(this,U);return F.cache=Q.set(_,le)||Q,le};return F.cache=new(A.Cache||p),F}A.Cache=p,v.exports=A},66188:(v,T,s)=>{var p=s(1054);function S(A){return A==null?"":p(A)}v.exports=S},99500:(v,T,s)=>{var p=typeof Map=="function"&&Map.prototype,S=Object.getOwnPropertyDescriptor&&p?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,A=p&&S&&typeof S.get=="function"?S.get:null,h=p&&Map.prototype.forEach,E=typeof Set=="function"&&Set.prototype,F=Object.getOwnPropertyDescriptor&&E?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,U=E&&F&&typeof F.get=="function"?F.get:null,_=E&&Set.prototype.forEach,Q=typeof WeakMap=="function"&&WeakMap.prototype,le=Q?WeakMap.prototype.has:null,K=typeof WeakSet=="function"&&WeakSet.prototype,ne=K?WeakSet.prototype.has:null,$=typeof WeakRef=="function"&&WeakRef.prototype,P=$?WeakRef.prototype.deref:null,Y=Boolean.prototype.valueOf,L=Object.prototype.toString,C=Function.prototype.toString,k=String.prototype.match,B=String.prototype.slice,X=String.prototype.replace,H=String.prototype.toUpperCase,D=String.prototype.toLowerCase,re=RegExp.prototype.test,J=Array.prototype.concat,z=Array.prototype.join,fe=Array.prototype.slice,pe=Math.floor,q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Z=Object.getOwnPropertySymbols,G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ve=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ie=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ve?"object":"symbol")?Symbol.toStringTag:null,Ne=Object.prototype.propertyIsEnumerable,je=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ue){return ue.__proto__}:null);function tt(ue,ge){if(ue===1/0||ue===-1/0||ue!==ue||ue&&ue>-1e3&&ue<1e3||re.call(/e/,ge))return ge;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ue=="number"){var Ke=ue<0?-pe(-ue):pe(ue);if(Ke!==ue){var at=String(Ke),bt=B.call(ge,at.length+1);return X.call(at,Be,"$&_")+"."+X.call(X.call(bt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return X.call(ge,Be,"$&_")}var _e=s(53260),mt=_e.custom,De=Ct(mt)?mt:null;v.exports=function ue(ge,Be,Ke,at){var bt=Be||{};if(lt(bt,"quoteStyle")&&bt.quoteStyle!=="single"&&bt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lt(bt,"maxStringLength")&&(typeof bt.maxStringLength=="number"?bt.maxStringLength<0&&bt.maxStringLength!==1/0:bt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Rt=lt(bt,"customInspect")?bt.customInspect:!0;if(typeof Rt!="boolean"&&Rt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(lt(bt,"indent")&&bt.indent!==null&&bt.indent!==" "&&!(parseInt(bt.indent,10)===bt.indent&&bt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(lt(bt,"numericSeparator")&&typeof bt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var pr=bt.numericSeparator;if(typeof ge=="undefined")return"undefined";if(ge===null)return"null";if(typeof ge=="boolean")return ge?"true":"false";if(typeof ge=="string")return gt(ge,bt);if(typeof ge=="number"){if(ge===0)return 1/0/ge>0?"0":"-0";var Lt=String(ge);return pr?tt(ge,Lt):Lt}if(typeof ge=="bigint"){var jt=String(ge)+"n";return pr?tt(ge,jt):jt}var _n=typeof bt.depth=="undefined"?5:bt.depth;if(typeof Ke=="undefined"&&(Ke=0),Ke>=_n&&_n>0&&typeof ge=="object")return Pe(ge)?"[Array]":"[Object]";var Yr=Et(bt,Ke);if(typeof at=="undefined")at=[];else if(Kr(at,ge)>=0)return"[Circular]";function Jr(fn,Sr,fi){if(Sr&&(at=fe.call(at),at.push(Sr)),fi){var kn={depth:bt.depth};return lt(bt,"quoteStyle")&&(kn.quoteStyle=bt.quoteStyle),ue(fn,kn,Ke+1,at)}return ue(fn,bt,Ke+1,at)}if(typeof ge=="function"&&!Ge(ge)){var si=Ft(ge),en=Ve(ge,Jr);return"[Function"+(si?": "+si:" (anonymous)")+"]"+(en.length>0?" { "+z.call(en,", ")+" }":"")}if(Ct(ge)){var li=ve?X.call(String(ge),/^(Symbol\(.*\))_[^)]*$/,"$1"):G.call(ge);return typeof ge=="object"&&!ve?At(li):li}if(Xe(ge)){for(var ui="<"+D.call(String(ge.nodeName)),tn=ge.attributes||[],Pn=0;Pn<tn.length;Pn++)ui+=" "+tn[Pn].name+"="+Oe(Ue(tn[Pn].value),"double",bt);return ui+=">",ge.childNodes&&ge.childNodes.length&&(ui+="..."),ui+="</"+D.call(String(ge.nodeName))+">",ui}if(Pe(ge)){if(ge.length===0)return"[]";var Vr=Ve(ge,Jr);return Yr&&!it(Vr)?"["+nt(Vr,Yr)+"]":"[ "+z.call(Vr,", ")+" ]"}if(rt(ge)){var Oi=Ve(ge,Jr);return!("cause"in Error.prototype)&&"cause"in ge&&!Ne.call(ge,"cause")?"{ ["+String(ge)+"] "+z.call(J.call("[cause]: "+Jr(ge.cause),Oi),", ")+" }":Oi.length===0?"["+String(ge)+"]":"{ ["+String(ge)+"] "+z.call(Oi,", ")+" }"}if(typeof ge=="object"&&Rt){if(De&&typeof ge[De]=="function"&&_e)return _e(ge,{depth:_n-Ke});if(Rt!=="symbol"&&typeof ge.inspect=="function")return ge.inspect()}if(br(ge)){var ha=[];return h.call(ge,function(fn,Sr){ha.push(Jr(Sr,ge,!0)+" => "+Jr(fn,ge))}),ct("Map",A.call(ge),ha,Yr)}if(Yt(ge)){var An=[];return _.call(ge,function(fn){An.push(Jr(fn,ge))}),ct("Set",U.call(ge),An,Yr)}if(qr(ge))return Ot("WeakMap");if(dr(ge))return Ot("WeakSet");if(xr(ge))return Ot("WeakRef");if(et(ge))return At(Jr(Number(ge)));if(kt(ge))return At(Jr(q.call(ge)));if(Ze(ge))return At(Y.call(ge));if($e(ge))return At(Jr(String(ge)));if(!Ce(ge)&&!Ge(ge)){var mn=Ve(ge,Jr),Cn=je?je(ge)===Object.prototype:ge instanceof Object||ge.constructor===Object,En=ge instanceof Object?"":"null prototype",In=!Cn&&Ie&&Object(ge)===ge&&Ie in ge?B.call(xt(ge),8,-1):En?"Object":"",Ha=Cn||typeof ge.constructor!="function"?"":ge.constructor.name?ge.constructor.name+" ":"",zn=Ha+(In||En?"["+z.call(J.call([],In||[],En||[]),": ")+"] ":"");return mn.length===0?zn+"{}":Yr?zn+"{"+nt(mn,Yr)+"}":zn+"{ "+z.call(mn,", ")+" }"}return String(ge)};function Oe(ue,ge,Be){var Ke=(Be.quoteStyle||ge)==="double"?'"':"'";return Ke+ue+Ke}function Ue(ue){return X.call(String(ue),/"/g,""")}function Pe(ue){return xt(ue)==="[object Array]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function Ce(ue){return xt(ue)==="[object Date]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function Ge(ue){return xt(ue)==="[object RegExp]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function rt(ue){return xt(ue)==="[object Error]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function $e(ue){return xt(ue)==="[object String]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function et(ue){return xt(ue)==="[object Number]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function Ze(ue){return xt(ue)==="[object Boolean]"&&(!Ie||!(typeof ue=="object"&&Ie in ue))}function Ct(ue){if(ve)return ue&&typeof ue=="object"&&ue instanceof Symbol;if(typeof ue=="symbol")return!0;if(!ue||typeof ue!="object"||!G)return!1;try{return G.call(ue),!0}catch(ge){}return!1}function kt(ue){if(!ue||typeof ue!="object"||!q)return!1;try{return q.call(ue),!0}catch(ge){}return!1}var Zt=Object.prototype.hasOwnProperty||function(ue){return ue in this};function lt(ue,ge){return Zt.call(ue,ge)}function xt(ue){return L.call(ue)}function Ft(ue){if(ue.name)return ue.name;var ge=k.call(C.call(ue),/^function\s*([\w$]+)/);return ge?ge[1]:null}function Kr(ue,ge){if(ue.indexOf)return ue.indexOf(ge);for(var Be=0,Ke=ue.length;Be<Ke;Be++)if(ue[Be]===ge)return Be;return-1}function br(ue){if(!A||!ue||typeof ue!="object")return!1;try{A.call(ue);try{U.call(ue)}catch(ge){return!0}return ue instanceof Map}catch(ge){}return!1}function qr(ue){if(!le||!ue||typeof ue!="object")return!1;try{le.call(ue,le);try{ne.call(ue,ne)}catch(ge){return!0}return ue instanceof WeakMap}catch(ge){}return!1}function xr(ue){if(!P||!ue||typeof ue!="object")return!1;try{return P.call(ue),!0}catch(ge){}return!1}function Yt(ue){if(!U||!ue||typeof ue!="object")return!1;try{U.call(ue);try{A.call(ue)}catch(ge){return!0}return ue instanceof Set}catch(ge){}return!1}function dr(ue){if(!ne||!ue||typeof ue!="object")return!1;try{ne.call(ue,ne);try{le.call(ue,le)}catch(ge){return!0}return ue instanceof WeakSet}catch(ge){}return!1}function Xe(ue){return!ue||typeof ue!="object"?!1:typeof HTMLElement!="undefined"&&ue instanceof HTMLElement?!0:typeof ue.nodeName=="string"&&typeof ue.getAttribute=="function"}function gt(ue,ge){if(ue.length>ge.maxStringLength){var Be=ue.length-ge.maxStringLength,Ke="... "+Be+" more character"+(Be>1?"s":"");return gt(B.call(ue,0,ge.maxStringLength),ge)+Ke}var at=X.call(X.call(ue,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Tt);return Oe(at,"single",ge)}function Tt(ue){var ge=ue.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[ge];return Be?"\\"+Be:"\\x"+(ge<16?"0":"")+H.call(ge.toString(16))}function At(ue){return"Object("+ue+")"}function Ot(ue){return ue+" { ? }"}function ct(ue,ge,Be,Ke){var at=Ke?nt(Be,Ke):z.call(Be,", ");return ue+" ("+ge+") {"+at+"}"}function it(ue){for(var ge=0;ge<ue.length;ge++)if(Kr(ue[ge],`
|
|
501
|
-
`)>=0)return!1;return!0}function Et(ue,ge){var Be;if(ue.indent===" ")Be=" ";else if(typeof ue.indent=="number"&&ue.indent>0)Be=z.call(Array(ue.indent+1)," ");else return null;return{base:Be,prev:z.call(Array(ge+1),Be)}}function nt(ue,ge){if(ue.length===0)return"";var Be=`
|
|
502
|
-
`+ge.prev+ge.base;return Be+z.call(ue,","+Be)+`
|
|
503
|
-
`+ge.prev}function Ve(ue,ge){var Be=Pe(ue),Ke=[];if(Be){Ke.length=ue.length;for(var at=0;at<ue.length;at++)Ke[at]=lt(ue,at)?ge(ue[at],ue):""}var bt=typeof Z=="function"?Z(ue):[],Rt;if(ve){Rt={};for(var pr=0;pr<bt.length;pr++)Rt["$"+bt[pr]]=bt[pr]}for(var Lt in ue)!lt(ue,Lt)||Be&&String(Number(Lt))===Lt&&Lt<ue.length||ve&&Rt["$"+Lt]instanceof Symbol||(re.call(/[^\w$]/,Lt)?Ke.push(ge(Lt,ue)+": "+ge(ue[Lt],ue)):Ke.push(Lt+": "+ge(ue[Lt],ue)));if(typeof Z=="function")for(var jt=0;jt<bt.length;jt++)Ne.call(ue,bt[jt])&&Ke.push("["+ge(bt[jt])+"]: "+ge(ue[bt[jt]],ue));return Ke}},85527:v=>{"use strict";var T=String.prototype.replace,s=/%20/g,p={RFC1738:"RFC1738",RFC3986:"RFC3986"};v.exports={default:p.RFC3986,formatters:{RFC1738:function(S){return T.call(S,s,"+")},RFC3986:function(S){return String(S)}},RFC1738:p.RFC1738,RFC3986:p.RFC3986}},37794:(v,T,s)=>{"use strict";var p=s(66845),S=s(29166),A=s(85527);v.exports={formats:A,parse:S,stringify:p}},29166:(v,T,s)=>{"use strict";var p=s(12493),S=Object.prototype.hasOwnProperty,A=Array.isArray,h={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:p.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},E=function($){return $.replace(/&#(\d+);/g,function(P,Y){return String.fromCharCode(parseInt(Y,10))})},F=function($,P){return $&&typeof $=="string"&&P.comma&&$.indexOf(",")>-1?$.split(","):$},U="utf8=%26%2310003%3B",_="utf8=%E2%9C%93",Q=function(P,Y){var L={},C=Y.ignoreQueryPrefix?P.replace(/^\?/,""):P,k=Y.parameterLimit===1/0?void 0:Y.parameterLimit,B=C.split(Y.delimiter,k),X=-1,H,D=Y.charset;if(Y.charsetSentinel)for(H=0;H<B.length;++H)B[H].indexOf("utf8=")===0&&(B[H]===_?D="utf-8":B[H]===U&&(D="iso-8859-1"),X=H,H=B.length);for(H=0;H<B.length;++H)if(H!==X){var re=B[H],J=re.indexOf("]="),z=J===-1?re.indexOf("="):J+1,fe,pe;z===-1?(fe=Y.decoder(re,h.decoder,D,"key"),pe=Y.strictNullHandling?null:""):(fe=Y.decoder(re.slice(0,z),h.decoder,D,"key"),pe=p.maybeMap(F(re.slice(z+1),Y),function(q){return Y.decoder(q,h.decoder,D,"value")})),pe&&Y.interpretNumericEntities&&D==="iso-8859-1"&&(pe=E(pe)),re.indexOf("[]=")>-1&&(pe=A(pe)?[pe]:pe),S.call(L,fe)?L[fe]=p.combine(L[fe],pe):L[fe]=pe}return L},le=function($,P,Y,L){for(var C=L?P:F(P,Y),k=$.length-1;k>=0;--k){var B,X=$[k];if(X==="[]"&&Y.parseArrays)B=[].concat(C);else{B=Y.plainObjects?Object.create(null):{};var H=X.charAt(0)==="["&&X.charAt(X.length-1)==="]"?X.slice(1,-1):X,D=parseInt(H,10);!Y.parseArrays&&H===""?B={0:C}:!isNaN(D)&&X!==H&&String(D)===H&&D>=0&&Y.parseArrays&&D<=Y.arrayLimit?(B=[],B[D]=C):H!=="__proto__"&&(B[H]=C)}C=B}return C},K=function(P,Y,L,C){if(!!P){var k=L.allowDots?P.replace(/\.([^.[]+)/g,"[$1]"):P,B=/(\[[^[\]]*])/,X=/(\[[^[\]]*])/g,H=L.depth>0&&B.exec(k),D=H?k.slice(0,H.index):k,re=[];if(D){if(!L.plainObjects&&S.call(Object.prototype,D)&&!L.allowPrototypes)return;re.push(D)}for(var J=0;L.depth>0&&(H=X.exec(k))!==null&&J<L.depth;){if(J+=1,!L.plainObjects&&S.call(Object.prototype,H[1].slice(1,-1))&&!L.allowPrototypes)return;re.push(H[1])}return H&&re.push("["+k.slice(H.index)+"]"),le(re,Y,L,C)}},ne=function(P){if(!P)return h;if(P.decoder!==null&&P.decoder!==void 0&&typeof P.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof P.charset!="undefined"&&P.charset!=="utf-8"&&P.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var Y=typeof P.charset=="undefined"?h.charset:P.charset;return{allowDots:typeof P.allowDots=="undefined"?h.allowDots:!!P.allowDots,allowPrototypes:typeof P.allowPrototypes=="boolean"?P.allowPrototypes:h.allowPrototypes,allowSparse:typeof P.allowSparse=="boolean"?P.allowSparse:h.allowSparse,arrayLimit:typeof P.arrayLimit=="number"?P.arrayLimit:h.arrayLimit,charset:Y,charsetSentinel:typeof P.charsetSentinel=="boolean"?P.charsetSentinel:h.charsetSentinel,comma:typeof P.comma=="boolean"?P.comma:h.comma,decoder:typeof P.decoder=="function"?P.decoder:h.decoder,delimiter:typeof P.delimiter=="string"||p.isRegExp(P.delimiter)?P.delimiter:h.delimiter,depth:typeof P.depth=="number"||P.depth===!1?+P.depth:h.depth,ignoreQueryPrefix:P.ignoreQueryPrefix===!0,interpretNumericEntities:typeof P.interpretNumericEntities=="boolean"?P.interpretNumericEntities:h.interpretNumericEntities,parameterLimit:typeof P.parameterLimit=="number"?P.parameterLimit:h.parameterLimit,parseArrays:P.parseArrays!==!1,plainObjects:typeof P.plainObjects=="boolean"?P.plainObjects:h.plainObjects,strictNullHandling:typeof P.strictNullHandling=="boolean"?P.strictNullHandling:h.strictNullHandling}};v.exports=function($,P){var Y=ne(P);if($===""||$===null||typeof $=="undefined")return Y.plainObjects?Object.create(null):{};for(var L=typeof $=="string"?Q($,Y):$,C=Y.plainObjects?Object.create(null):{},k=Object.keys(L),B=0;B<k.length;++B){var X=k[B],H=K(X,L[X],Y,typeof $=="string");C=p.merge(C,H,Y)}return Y.allowSparse===!0?C:p.compact(C)}},66845:(v,T,s)=>{"use strict";var p=s(74294),S=s(12493),A=s(85527),h=Object.prototype.hasOwnProperty,E={brackets:function(k){return k+"[]"},comma:"comma",indices:function(k,B){return k+"["+B+"]"},repeat:function(k){return k}},F=Array.isArray,U=String.prototype.split,_=Array.prototype.push,Q=function(C,k){_.apply(C,F(k)?k:[k])},le=Date.prototype.toISOString,K=A.default,ne={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:S.encode,encodeValuesOnly:!1,format:K,formatter:A.formatters[K],indices:!1,serializeDate:function(k){return le.call(k)},skipNulls:!1,strictNullHandling:!1},$=function(k){return typeof k=="string"||typeof k=="number"||typeof k=="boolean"||typeof k=="symbol"||typeof k=="bigint"},P={},Y=function C(k,B,X,H,D,re,J,z,fe,pe,q,Z,G,ve,Ie){for(var Ne=k,je=Ie,tt=0,_e=!1;(je=je.get(P))!==void 0&&!_e;){var mt=je.get(k);if(tt+=1,typeof mt!="undefined"){if(mt===tt)throw new RangeError("Cyclic object value");_e=!0}typeof je.get(P)=="undefined"&&(tt=0)}if(typeof J=="function"?Ne=J(B,Ne):Ne instanceof Date?Ne=pe(Ne):X==="comma"&&F(Ne)&&(Ne=S.maybeMap(Ne,function(Zt){return Zt instanceof Date?pe(Zt):Zt})),Ne===null){if(H)return re&&!G?re(B,ne.encoder,ve,"key",q):B;Ne=""}if($(Ne)||S.isBuffer(Ne)){if(re){var De=G?B:re(B,ne.encoder,ve,"key",q);if(X==="comma"&&G){for(var Oe=U.call(String(Ne),","),Ue="",Pe=0;Pe<Oe.length;++Pe)Ue+=(Pe===0?"":",")+Z(re(Oe[Pe],ne.encoder,ve,"value",q));return[Z(De)+"="+Ue]}return[Z(De)+"="+Z(re(Ne,ne.encoder,ve,"value",q))]}return[Z(B)+"="+Z(String(Ne))]}var Ce=[];if(typeof Ne=="undefined")return Ce;var Ge;if(X==="comma"&&F(Ne))Ge=[{value:Ne.length>0?Ne.join(",")||null:void 0}];else if(F(J))Ge=J;else{var rt=Object.keys(Ne);Ge=z?rt.sort(z):rt}for(var $e=0;$e<Ge.length;++$e){var et=Ge[$e],Ze=typeof et=="object"&&typeof et.value!="undefined"?et.value:Ne[et];if(!(D&&Ze===null)){var Ct=F(Ne)?typeof X=="function"?X(B,et):B:B+(fe?"."+et:"["+et+"]");Ie.set(k,tt);var kt=p();kt.set(P,Ie),Q(Ce,C(Ze,Ct,X,H,D,re,J,z,fe,pe,q,Z,G,ve,kt))}}return Ce},L=function(k){if(!k)return ne;if(k.encoder!==null&&typeof k.encoder!="undefined"&&typeof k.encoder!="function")throw new TypeError("Encoder has to be a function.");var B=k.charset||ne.charset;if(typeof k.charset!="undefined"&&k.charset!=="utf-8"&&k.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=A.default;if(typeof k.format!="undefined"){if(!h.call(A.formatters,k.format))throw new TypeError("Unknown format option provided.");X=k.format}var H=A.formatters[X],D=ne.filter;return(typeof k.filter=="function"||F(k.filter))&&(D=k.filter),{addQueryPrefix:typeof k.addQueryPrefix=="boolean"?k.addQueryPrefix:ne.addQueryPrefix,allowDots:typeof k.allowDots=="undefined"?ne.allowDots:!!k.allowDots,charset:B,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:ne.charsetSentinel,delimiter:typeof k.delimiter=="undefined"?ne.delimiter:k.delimiter,encode:typeof k.encode=="boolean"?k.encode:ne.encode,encoder:typeof k.encoder=="function"?k.encoder:ne.encoder,encodeValuesOnly:typeof k.encodeValuesOnly=="boolean"?k.encodeValuesOnly:ne.encodeValuesOnly,filter:D,format:X,formatter:H,serializeDate:typeof k.serializeDate=="function"?k.serializeDate:ne.serializeDate,skipNulls:typeof k.skipNulls=="boolean"?k.skipNulls:ne.skipNulls,sort:typeof k.sort=="function"?k.sort:null,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:ne.strictNullHandling}};v.exports=function(C,k){var B=C,X=L(k),H,D;typeof X.filter=="function"?(D=X.filter,B=D("",B)):F(X.filter)&&(D=X.filter,H=D);var re=[];if(typeof B!="object"||B===null)return"";var J;k&&k.arrayFormat in E?J=k.arrayFormat:k&&"indices"in k?J=k.indices?"indices":"repeat":J="indices";var z=E[J];H||(H=Object.keys(B)),X.sort&&H.sort(X.sort);for(var fe=p(),pe=0;pe<H.length;++pe){var q=H[pe];X.skipNulls&&B[q]===null||Q(re,Y(B[q],q,z,X.strictNullHandling,X.skipNulls,X.encode?X.encoder:null,X.filter,X.sort,X.allowDots,X.serializeDate,X.format,X.formatter,X.encodeValuesOnly,X.charset,fe))}var Z=re.join(X.delimiter),G=X.addQueryPrefix===!0?"?":"";return X.charsetSentinel&&(X.charset==="iso-8859-1"?G+="utf8=%26%2310003%3B&":G+="utf8=%E2%9C%93&"),Z.length>0?G+Z:""}},12493:(v,T,s)=>{"use strict";var p=s(85527),S=Object.prototype.hasOwnProperty,A=Array.isArray,h=function(){for(var L=[],C=0;C<256;++C)L.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return L}(),E=function(C){for(;C.length>1;){var k=C.pop(),B=k.obj[k.prop];if(A(B)){for(var X=[],H=0;H<B.length;++H)typeof B[H]!="undefined"&&X.push(B[H]);k.obj[k.prop]=X}}},F=function(C,k){for(var B=k&&k.plainObjects?Object.create(null):{},X=0;X<C.length;++X)typeof C[X]!="undefined"&&(B[X]=C[X]);return B},U=function L(C,k,B){if(!k)return C;if(typeof k!="object"){if(A(C))C.push(k);else if(C&&typeof C=="object")(B&&(B.plainObjects||B.allowPrototypes)||!S.call(Object.prototype,k))&&(C[k]=!0);else return[C,k];return C}if(!C||typeof C!="object")return[C].concat(k);var X=C;return A(C)&&!A(k)&&(X=F(C,B)),A(C)&&A(k)?(k.forEach(function(H,D){if(S.call(C,D)){var re=C[D];re&&typeof re=="object"&&H&&typeof H=="object"?C[D]=L(re,H,B):C.push(H)}else C[D]=H}),C):Object.keys(k).reduce(function(H,D){var re=k[D];return S.call(H,D)?H[D]=L(H[D],re,B):H[D]=re,H},X)},_=function(C,k){return Object.keys(k).reduce(function(B,X){return B[X]=k[X],B},C)},Q=function(L,C,k){var B=L.replace(/\+/g," ");if(k==="iso-8859-1")return B.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(B)}catch(X){return B}},le=function(C,k,B,X,H){if(C.length===0)return C;var D=C;if(typeof C=="symbol"?D=Symbol.prototype.toString.call(C):typeof C!="string"&&(D=String(C)),B==="iso-8859-1")return escape(D).replace(/%u[0-9a-f]{4}/gi,function(fe){return"%26%23"+parseInt(fe.slice(2),16)+"%3B"});for(var re="",J=0;J<D.length;++J){var z=D.charCodeAt(J);if(z===45||z===46||z===95||z===126||z>=48&&z<=57||z>=65&&z<=90||z>=97&&z<=122||H===p.RFC1738&&(z===40||z===41)){re+=D.charAt(J);continue}if(z<128){re=re+h[z];continue}if(z<2048){re=re+(h[192|z>>6]+h[128|z&63]);continue}if(z<55296||z>=57344){re=re+(h[224|z>>12]+h[128|z>>6&63]+h[128|z&63]);continue}J+=1,z=65536+((z&1023)<<10|D.charCodeAt(J)&1023),re+=h[240|z>>18]+h[128|z>>12&63]+h[128|z>>6&63]+h[128|z&63]}return re},K=function(C){for(var k=[{obj:{o:C},prop:"o"}],B=[],X=0;X<k.length;++X)for(var H=k[X],D=H.obj[H.prop],re=Object.keys(D),J=0;J<re.length;++J){var z=re[J],fe=D[z];typeof fe=="object"&&fe!==null&&B.indexOf(fe)===-1&&(k.push({obj:D,prop:z}),B.push(fe))}return E(k),C},ne=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},$=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},P=function(C,k){return[].concat(C,k)},Y=function(C,k){if(A(C)){for(var B=[],X=0;X<C.length;X+=1)B.push(k(C[X]));return B}return k(C)};v.exports={arrayToObject:F,assign:_,combine:P,compact:K,decode:Q,encode:le,isBuffer:$,isRegExp:ne,maybeMap:Y,merge:U}},63277:(v,T,s)=>{"use strict";var p;function S(){return S=Object.assign||function(ne){for(var $=1;$<arguments.length;$++){var P=arguments[$];for(var Y in P)Object.prototype.hasOwnProperty.call(P,Y)&&(ne[Y]=P[Y])}return ne},S.apply(this,arguments)}function A(ne){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(P){return typeof P}:A=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},A(ne)}var h=function(){var ne=function(P,Y){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,C){L.__proto__=C}||function(L,C){for(var k in C)C.hasOwnProperty(k)&&(L[k]=C[k])},ne(P,Y)};return function($,P){ne($,P);function Y(){this.constructor=$}$.prototype=P===null?Object.create(P):(Y.prototype=P.prototype,new Y)}}();p={value:!0},p=T.fk=void 0;var E=s(2784),F=typeof navigator=="undefined"||s.g.PREVENT_CODEMIRROR_RENDER===!0,U;F||(U=s(23326));var _=function(){function ne(){}return ne.equals=function($,P){var Y=this,L=Object.keys,C=A($),k=A(P);return $&&P&&C==="object"&&C===k?L($).length===L(P).length&&L($).every(function(B){return Y.equals($[B],P[B])}):$===P},ne}(),Q=function(){function ne($,P){this.editor=$,this.props=P}return ne.prototype.delegateCursor=function($,P,Y){var L=this.editor.getDoc();Y&&this.editor.focus(),P?L.setCursor($):L.setCursor($,null,{scroll:!1})},ne.prototype.delegateScroll=function($){this.editor.scrollTo($.x,$.y)},ne.prototype.delegateSelection=function($,P){var Y=this.editor.getDoc();Y.setSelections($),P&&this.editor.focus()},ne.prototype.apply=function($){$&&$.selection&&$.selection.ranges&&this.delegateSelection($.selection.ranges,$.selection.focus||!1),$&&$.cursor&&this.delegateCursor($.cursor,$.autoScroll||!1,this.editor.getOption("autofocus")||!1),$&&$.scroll&&this.delegateScroll($.scroll)},ne.prototype.applyNext=function($,P,Y){$&&$.selection&&$.selection.ranges&&P&&P.selection&&P.selection.ranges&&!_.equals($.selection.ranges,P.selection.ranges)&&this.delegateSelection(P.selection.ranges,P.selection.focus||!1),$&&$.cursor&&P&&P.cursor&&!_.equals($.cursor,P.cursor)&&this.delegateCursor(Y.cursor||P.cursor,P.autoScroll||!1,P.autoCursor||!1),$&&$.scroll&&P&&P.scroll&&!_.equals($.scroll,P.scroll)&&this.delegateScroll(P.scroll)},ne.prototype.applyUserDefined=function($,P){P&&P.cursor&&this.delegateCursor(P.cursor,$.autoScroll||!1,this.editor.getOption("autofocus")||!1)},ne.prototype.wire=function($){var P=this;Object.keys($||{}).filter(function(Y){return/^on/.test(Y)}).forEach(function(Y){switch(Y){case"onBlur":P.editor.on("blur",function(L,C){P.props.onBlur(P.editor,C)});break;case"onContextMenu":{P.editor.on("contextmenu",function(L,C){P.props.onContextMenu(P.editor,C)});break}case"onCopy":{P.editor.on("copy",function(L,C){P.props.onCopy(P.editor,C)});break}case"onCursor":P.editor.on("cursorActivity",function(L){P.props.onCursor(P.editor,P.editor.getDoc().getCursor())});break;case"onCursorActivity":P.editor.on("cursorActivity",function(L){P.props.onCursorActivity(P.editor)});break;case"onCut":{P.editor.on("cut",function(L,C){P.props.onCut(P.editor,C)});break}case"onDblClick":{P.editor.on("dblclick",function(L,C){P.props.onDblClick(P.editor,C)});break}case"onDragEnter":P.editor.on("dragenter",function(L,C){P.props.onDragEnter(P.editor,C)});break;case"onDragLeave":{P.editor.on("dragleave",function(L,C){P.props.onDragLeave(P.editor,C)});break}case"onDragOver":P.editor.on("dragover",function(L,C){P.props.onDragOver(P.editor,C)});break;case"onDragStart":{P.editor.on("dragstart",function(L,C){P.props.onDragStart(P.editor,C)});break}case"onDrop":P.editor.on("drop",function(L,C){P.props.onDrop(P.editor,C)});break;case"onFocus":P.editor.on("focus",function(L,C){P.props.onFocus(P.editor,C)});break;case"onGutterClick":P.editor.on("gutterClick",function(L,C,k,B){P.props.onGutterClick(P.editor,C,k,B)});break;case"onInputRead":P.editor.on("inputRead",function(L,C){P.props.onInputRead(P.editor,C)});break;case"onKeyDown":P.editor.on("keydown",function(L,C){P.props.onKeyDown(P.editor,C)});break;case"onKeyHandled":P.editor.on("keyHandled",function(L,C,k){P.props.onKeyHandled(P.editor,C,k)});break;case"onKeyPress":P.editor.on("keypress",function(L,C){P.props.onKeyPress(P.editor,C)});break;case"onKeyUp":P.editor.on("keyup",function(L,C){P.props.onKeyUp(P.editor,C)});break;case"onMouseDown":{P.editor.on("mousedown",function(L,C){P.props.onMouseDown(P.editor,C)});break}case"onPaste":{P.editor.on("paste",function(L,C){P.props.onPaste(P.editor,C)});break}case"onRenderLine":{P.editor.on("renderLine",function(L,C,k){P.props.onRenderLine(P.editor,C,k)});break}case"onScroll":P.editor.on("scroll",function(L){P.props.onScroll(P.editor,P.editor.getScrollInfo())});break;case"onSelection":P.editor.on("beforeSelectionChange",function(L,C){P.props.onSelection(P.editor,C)});break;case"onTouchStart":{P.editor.on("touchstart",function(L,C){P.props.onTouchStart(P.editor,C)});break}case"onUpdate":P.editor.on("update",function(L){P.props.onUpdate(P.editor)});break;case"onViewportChange":P.editor.on("viewportChange",function(L,C,k){P.props.onViewportChange(P.editor,C,k)});break}})},ne}(),le=function(ne){h($,ne);function $(P){var Y=ne.call(this,P)||this;return F||(Y.applied=!1,Y.appliedNext=!1,Y.appliedUserDefined=!1,Y.deferred=null,Y.emulating=!1,Y.hydrated=!1,Y.initCb=function(){Y.props.editorDidConfigure&&Y.props.editorDidConfigure(Y.editor)},Y.mounted=!1),Y}return $.prototype.hydrate=function(P){var Y=this,L=P&&P.options?P.options:{},C=S({},U.defaults,this.editor.options,L),k=Object.keys(C).some(function(B){return Y.editor.getOption(B)!==C[B]});k&&Object.keys(C).forEach(function(B){L.hasOwnProperty(B)&&Y.editor.getOption(B)!==C[B]&&(Y.editor.setOption(B,C[B]),Y.mirror.setOption(B,C[B]))}),this.hydrated||(this.deferred?this.resolveChange(P.value):this.initChange(P.value||"")),this.hydrated=!0},$.prototype.initChange=function(P){this.emulating=!0;var Y=this.editor.getDoc(),L=Y.lastLine(),C=Y.getLine(Y.lastLine()).length;Y.replaceRange(P||"",{line:0,ch:0},{line:L,ch:C}),this.mirror.setValue(P),Y.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},$.prototype.resolveChange=function(P){this.emulating=!0;var Y=this.editor.getDoc();if(this.deferred.origin==="undo"?Y.undo():this.deferred.origin==="redo"?Y.redo():Y.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),P&&P!==Y.getValue()){var L=Y.getCursor();Y.setValue(P),Y.setCursor(L)}this.emulating=!1,this.deferred=null},$.prototype.mirrorChange=function(P){var Y=this.editor.getDoc();return P.origin==="undo"?(Y.setHistory(this.mirror.getHistory()),this.mirror.undo()):P.origin==="redo"?(Y.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(P.text,P.from,P.to,P.origin),this.mirror.getValue()},$.prototype.componentDidMount=function(){var P=this;F||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new Q(this.editor,this.props),this.mirror=U(function(){},this.props.options),this.editor.on("electricInput",function(){P.mirror.setHistory(P.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){P.mirror.setCursor(P.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(Y,L){if(!P.emulating){L.cancel(),P.deferred=L;var C=P.mirrorChange(P.deferred);P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,P.deferred,C)}}),this.editor.on("change",function(Y,L){!P.mounted||P.props.onChange&&P.props.onChange(P.editor,L,P.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},$.prototype.componentDidUpdate=function(P){if(!F){var Y={cursor:null};this.props.value!==P.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(Y.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(P,this.props,Y),this.appliedNext=!0),this.shared.applyUserDefined(P,Y),this.appliedUserDefined=!0}},$.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},$.prototype.shouldComponentUpdate=function(P,Y){return!F},$.prototype.render=function(){var P=this;if(F)return null;var Y=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return E.createElement("div",{className:Y,ref:function(C){return P.ref=C}})},$}(E.Component);T.fk=le;var K=function(ne){h($,ne);function $(P){var Y=ne.call(this,P)||this;return F||(Y.applied=!1,Y.appliedUserDefined=!1,Y.continueChange=!1,Y.detached=!1,Y.hydrated=!1,Y.initCb=function(){Y.props.editorDidConfigure&&Y.props.editorDidConfigure(Y.editor)},Y.mounted=!1,Y.onBeforeChangeCb=function(){Y.continueChange=!0}),Y}return $.prototype.hydrate=function(P){var Y=this,L=P&&P.options?P.options:{},C=S({},U.defaults,this.editor.options,L),k=Object.keys(C).some(function(D){return Y.editor.getOption(D)!==C[D]});if(k&&Object.keys(C).forEach(function(D){L.hasOwnProperty(D)&&Y.editor.getOption(D)!==C[D]&&Y.editor.setOption(D,C[D])}),!this.hydrated){var B=this.editor.getDoc(),X=B.lastLine(),H=B.getLine(B.lastLine()).length;B.replaceRange(P.value||"",{line:0,ch:0},{line:X,ch:H})}this.hydrated=!0},$.prototype.componentDidMount=function(){var P=this;F||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new Q(this.editor,this.props),this.editor.on("beforeChange",function(Y,L){P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,L,P.editor.getValue(),P.onBeforeChangeCb)}),this.editor.on("change",function(Y,L){!P.mounted||!P.props.onChange||(P.props.onBeforeChange?P.continueChange&&P.props.onChange(P.editor,L,P.editor.getValue()):P.props.onChange(P.editor,L,P.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},$.prototype.componentDidUpdate=function(P){if(this.detached&&this.props.detach===!1&&(this.detached=!1,P.editorDidAttach&&P.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,P.editorDidDetach&&P.editorDidDetach(this.editor)),!(F||this.detached)){var Y={cursor:null};this.props.value!==P.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!P.autoCursor&&P.autoCursor!==void 0&&(Y.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(P),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(P,Y),this.appliedUserDefined=!0)}},$.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},$.prototype.shouldComponentUpdate=function(P,Y){var L=!0;return F&&(L=!1),this.detached&&P.detach&&(L=!1),L},$.prototype.render=function(){var P=this;if(F)return null;var Y=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return E.createElement("div",{className:Y,ref:function(C){return P.ref=C}})},$}(E.Component);p=K},74294:(v,T,s)=>{"use strict";var p=s(67286),S=s(62680),A=s(99500),h=p("%TypeError%"),E=p("%WeakMap%",!0),F=p("%Map%",!0),U=S("WeakMap.prototype.get",!0),_=S("WeakMap.prototype.set",!0),Q=S("WeakMap.prototype.has",!0),le=S("Map.prototype.get",!0),K=S("Map.prototype.set",!0),ne=S("Map.prototype.has",!0),$=function(C,k){for(var B=C,X;(X=B.next)!==null;B=X)if(X.key===k)return B.next=X.next,X.next=C.next,C.next=X,X},P=function(C,k){var B=$(C,k);return B&&B.value},Y=function(C,k,B){var X=$(C,k);X?X.value=B:C.next={key:k,next:C.next,value:B}},L=function(C,k){return!!$(C,k)};v.exports=function(){var k,B,X,H={assert:function(D){if(!H.has(D))throw new h("Side channel does not contain "+A(D))},get:function(D){if(E&&D&&(typeof D=="object"||typeof D=="function")){if(k)return U(k,D)}else if(F){if(B)return le(B,D)}else if(X)return P(X,D)},has:function(D){if(E&&D&&(typeof D=="object"||typeof D=="function")){if(k)return Q(k,D)}else if(F){if(B)return ne(B,D)}else if(X)return L(X,D);return!1},set:function(D,re){E&&D&&(typeof D=="object"||typeof D=="function")?(k||(k=new E),_(k,D,re)):F?(B||(B=new F),K(B,D,re)):(X||(X={key:{},next:null}),Y(X,D,re))}};return H}},56855:v=>{var T=v.exports=function(P){return new s(P)};function s(P){this.value=P}s.prototype.get=function(P){for(var Y=this.value,L=0;L<P.length;L++){var C=P[L];if(!Y||!$.call(Y,C)){Y=void 0;break}Y=Y[C]}return Y},s.prototype.has=function(P){for(var Y=this.value,L=0;L<P.length;L++){var C=P[L];if(!Y||!$.call(Y,C))return!1;Y=Y[C]}return!0},s.prototype.set=function(P,Y){for(var L=this.value,C=0;C<P.length-1;C++){var k=P[C];$.call(L,k)||(L[k]={}),L=L[k]}return L[P[C]]=Y,Y},s.prototype.map=function(P){return p(this.value,P,!0)},s.prototype.forEach=function(P){return this.value=p(this.value,P,!1),this.value},s.prototype.reduce=function(P,Y){var L=arguments.length===1,C=L?this.value:Y;return this.forEach(function(k){(!this.isRoot||!L)&&(C=P.call(this,C,k))}),C},s.prototype.paths=function(){var P=[];return this.forEach(function(Y){P.push(this.path)}),P},s.prototype.nodes=function(){var P=[];return this.forEach(function(Y){P.push(this.node)}),P},s.prototype.clone=function(){var P=[],Y=[];return function L(C){for(var k=0;k<P.length;k++)if(P[k]===C)return Y[k];if(typeof C=="object"&&C!==null){var B=S(C);return P.push(C),Y.push(B),ne(A(C),function(X){B[X]=L(C[X])}),P.pop(),Y.pop(),B}else return C}(this.value)};function p(P,Y,L){var C=[],k=[],B=!0;return function X(H){var D=L?S(H):H,re={},J=!0,z={node:D,node_:H,path:[].concat(C),parent:k[k.length-1],parents:k,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(q,Z){z.isRoot||(z.parent.node[z.key]=q),z.node=q,Z&&(J=!1)},delete:function(q){delete z.parent.node[z.key],q&&(J=!1)},remove:function(q){K(z.parent.node)?z.parent.node.splice(z.key,1):delete z.parent.node[z.key],q&&(J=!1)},keys:null,before:function(q){re.before=q},after:function(q){re.after=q},pre:function(q){re.pre=q},post:function(q){re.post=q},stop:function(){B=!1},block:function(){J=!1}};if(!B)return z;function fe(){if(typeof z.node=="object"&&z.node!==null){(!z.keys||z.node_!==z.node)&&(z.keys=A(z.node)),z.isLeaf=z.keys.length==0;for(var q=0;q<k.length;q++)if(k[q].node_===H){z.circular=k[q];break}}else z.isLeaf=!0,z.keys=null;z.notLeaf=!z.isLeaf,z.notRoot=!z.isRoot}fe();var pe=Y.call(z,z.node);return pe!==void 0&&z.update&&z.update(pe),re.before&&re.before.call(z,z.node),J&&(typeof z.node=="object"&&z.node!==null&&!z.circular&&(k.push(z),fe(),ne(z.keys,function(q,Z){C.push(q),re.pre&&re.pre.call(z,z.node[q],q);var G=X(z.node[q]);L&&$.call(z.node,q)&&(z.node[q]=G.node),G.isLast=Z==z.keys.length-1,G.isFirst=Z==0,re.post&&re.post.call(z,G),C.pop()}),k.pop()),re.after&&re.after.call(z,z.node)),z}(P).node}function S(P){if(typeof P=="object"&&P!==null){var Y;if(K(P))Y=[];else if(E(P))Y=new Date(P.getTime?P.getTime():P);else if(F(P))Y=new RegExp(P);else if(U(P))Y={message:P.message};else if(_(P))Y=new Boolean(P);else if(Q(P))Y=new Number(P);else if(le(P))Y=new String(P);else if(Object.create&&Object.getPrototypeOf)Y=Object.create(Object.getPrototypeOf(P));else if(P.constructor===Object)Y={};else{var L=P.constructor&&P.constructor.prototype||P.__proto__||{},C=function(){};C.prototype=L,Y=new C}return ne(A(P),function(k){Y[k]=P[k]}),Y}else return P}var A=Object.keys||function(Y){var L=[];for(var C in Y)L.push(C);return L};function h(P){return Object.prototype.toString.call(P)}function E(P){return h(P)==="[object Date]"}function F(P){return h(P)==="[object RegExp]"}function U(P){return h(P)==="[object Error]"}function _(P){return h(P)==="[object Boolean]"}function Q(P){return h(P)==="[object Number]"}function le(P){return h(P)==="[object String]"}var K=Array.isArray||function(Y){return Object.prototype.toString.call(Y)==="[object Array]"},ne=function(P,Y){if(P.forEach)return P.forEach(Y);for(var L=0;L<P.length;L++)Y(P[L],L,P)};ne(A(s.prototype),function(P){T[P]=function(Y){var L=[].slice.call(arguments,1),C=new s(Y);return C[P].apply(C,L)}});var $=Object.hasOwnProperty||function(P,Y){return Y in P}},84591:(v,T,s)=>{"use strict";s.r(T),s.d(T,{default:()=>F});var p=s(8081),S=s.n(p),A=s(23645),h=s.n(A),E=h()(S());E.push([v.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto;box-sizing:border-box}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
|
|
504
|
-
`,""]);const F=E},51232:(v,T,s)=>{"use strict";s.r(T),s.d(T,{default:()=>k});var p=s(8081),S=s.n(p),A=s(23645),h=s.n(A),E=s(61667),F=s.n(E),U=new URL(s(17735),s.b),_=new URL(s(56089),s.b),Q=new URL(s(46050),s.b),le=new URL(s(71090),s.b),K=new URL(s(96192),s.b),ne=h()(S()),$=F()(U),P=F()(_),Y=F()(Q),L=F()(le),C=F()(K);ne.push([v.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+$+")}.CodeMirror-lint-mark-error{background-image:url("+P+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+Y+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+L+")}.CodeMirror-lint-marker-multiple{background-image:url("+C+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
|
|
505
|
-
`,""]);const k=ne},66072:(v,T,s)=>{"use strict";s.r(T),s.d(T,{default:()=>F});var p=s(8081),S=s.n(p),A=s(23645),h=s.n(A),E=h()(S());E.push([v.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
|
|
506
|
-
`,""]);const F=E},16887:(v,T,s)=>{"use strict";s.r(T),s.d(T,{default:()=>F});var p=s(8081),S=s.n(p),A=s(23645),h=s.n(A),E=h()(S());E.push([v.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
|
507
|
-
`,""]);const F=E},61667:v=>{"use strict";v.exports=function(T,s){return s||(s={}),T&&(T=String(T.__esModule?T.default:T),/^['"].*['"]$/.test(T)&&(T=T.slice(1,-1)),s.hash&&(T+=s.hash),/["'() \t\n]|(%20)/.test(T)||s.needQuotes?'"'.concat(T.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):T)}},53513:(v,T,s)=>{var p=s(93379),S=s(84591);S=S.__esModule?S.default:S,typeof S=="string"&&(S=[[v.id,S,""]]);var A={};A.insert="head",A.singleton=!1;var h=p(S,A);v.exports=S.locals||{}},6364:(v,T,s)=>{var p=s(93379),S=s(51232);S=S.__esModule?S.default:S,typeof S=="string"&&(S=[[v.id,S,""]]);var A={};A.insert="head",A.singleton=!1;var h=p(S,A);v.exports=S.locals||{}},46830:(v,T,s)=>{var p=s(93379),S=s(66072);S=S.__esModule?S.default:S,typeof S=="string"&&(S=[[v.id,S,""]]);var A={};A.insert="head",A.singleton=!1;var h=p(S,A);v.exports=S.locals||{}},59176:(v,T,s)=>{var p=s(93379),S=s(16887);S=S.__esModule?S.default:S,typeof S=="string"&&(S=[[v.id,S,""]]);var A={};A.insert="head",A.singleton=!1;var h=p(S,A);v.exports=S.locals||{}},56089:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:v=>{"use strict";v.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},53260:()=>{},48621:(v,T,s)=>{v.exports=s(53822)},40192:(v,T,s)=>{v.exports=s(44877)},42126:(v,T,s)=>{v.exports=s(10140)},40453:(v,T,s)=>{v.exports=s(55603)},35784:(v,T,s)=>{v.exports=s(76237)},82985:(v,T,s)=>{v.exports=s(56515)},14903:(v,T,s)=>{v.exports=s(20057)},71488:(v,T,s)=>{v.exports=s(24741)},93963:(v,T,s)=>{v.exports=s(8368)},51661:(v,T,s)=>{v.exports=s(342)},85337:(v,T,s)=>{v.exports=s(392)},45932:(v,T,s)=>{v.exports=s(28478)},31175:(v,T,s)=>{v.exports=s(58202)},2921:(v,T,s)=>{v.exports=s(45636)},22583:(v,T,s)=>{v.exports=s(46618)},8304:(v,T,s)=>{v.exports=s(72946)},36394:(v,T,s)=>{v.exports=s(11235)},50557:(v,T,s)=>{v.exports=s(62813)},72010:(v,T,s)=>{v.exports=s(68664)},5490:(v,T,s)=>{v.exports=s(21457)},1858:(v,T,s)=>{v.exports=s(36516)},84870:(v,T,s)=>{v.exports=s(87611)},48145:(v,T,s)=>{v.exports=s(4161)},26405:(v,T,s)=>{v.exports=s(75159)},9600:(v,T,s)=>{v.exports=s(87708)},72383:(v,T,s)=>{v.exports=s(42937)},8626:(v,T,s)=>{v.exports=s(69297)},45055:(v,T,s)=>{v.exports=s(10353)},49800:(v,T,s)=>{v.exports=s(8026)},79494:(v,T,s)=>{v.exports=s(67362)},11807:(v,T,s)=>{v.exports=s(57532)},24463:(v,T,s)=>{v.exports=s(61903)},21889:(v,T,s)=>{v.exports=s(42044)},25575:(v,T,s)=>{v.exports=s(60902)},68861:(v,T,s)=>{v.exports=s(2214)},64772:(v,T,s)=>{v.exports=s(983)},57829:(v,T,s)=>{v.exports=s(59256)},92876:(v,T,s)=>{v.exports=s(95659)},18730:(v,T,s)=>{var p=s(94978).default,S=s(57829),A=s(49800),h=s(8626),E=s(21889),F=s(48145),U=s(68861),_=s(64772),Q=s(9600),le=s(72383);function K(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v.exports=K=function(){return ne},v.exports.__esModule=!0,v.exports.default=v.exports;var ne={},$=Object.prototype,P=$.hasOwnProperty,Y=typeof S=="function"?S:{},L=Y.iterator||"@@iterator",C=Y.asyncIterator||"@@asyncIterator",k=Y.toStringTag||"@@toStringTag";function B(De,Oe,Ue){return A(De,Oe,{value:Ue,enumerable:!0,configurable:!0,writable:!0}),De[Oe]}try{B({},"")}catch(De){B=function(Ue,Pe,Ce){return Ue[Pe]=Ce}}function X(De,Oe,Ue,Pe){var Ce=Oe&&Oe.prototype instanceof re?Oe:re,Ge=h(Ce.prototype),rt=new tt(Pe||[]);return Ge._invoke=function($e,et,Ze){var Ct="suspendedStart";return function(kt,Zt){if(Ct==="executing")throw new Error("Generator is already running");if(Ct==="completed"){if(kt==="throw")throw Zt;return mt()}for(Ze.method=kt,Ze.arg=Zt;;){var lt=Ze.delegate;if(lt){var xt=Ie(lt,Ze);if(xt){if(xt===D)continue;return xt}}if(Ze.method==="next")Ze.sent=Ze._sent=Ze.arg;else if(Ze.method==="throw"){if(Ct==="suspendedStart")throw Ct="completed",Ze.arg;Ze.dispatchException(Ze.arg)}else Ze.method==="return"&&Ze.abrupt("return",Ze.arg);Ct="executing";var Ft=H($e,et,Ze);if(Ft.type==="normal"){if(Ct=Ze.done?"completed":"suspendedYield",Ft.arg===D)continue;return{value:Ft.arg,done:Ze.done}}Ft.type==="throw"&&(Ct="completed",Ze.method="throw",Ze.arg=Ft.arg)}}}(De,Ue,rt),Ge}function H(De,Oe,Ue){try{return{type:"normal",arg:De.call(Oe,Ue)}}catch(Pe){return{type:"throw",arg:Pe}}}ne.wrap=X;var D={};function re(){}function J(){}function z(){}var fe={};B(fe,L,function(){return this});var pe=E,q=pe&&pe(pe(_e([])));q&&q!==$&&P.call(q,L)&&(fe=q);var Z=z.prototype=re.prototype=h(fe);function G(De){var Oe;F(Oe=["next","throw","return"]).call(Oe,function(Ue){B(De,Ue,function(Pe){return this._invoke(Ue,Pe)})})}function ve(De,Oe){function Ue(Ce,Ge,rt,$e){var et=H(De[Ce],De,Ge);if(et.type!=="throw"){var Ze=et.arg,Ct=Ze.value;return Ct&&p(Ct)=="object"&&P.call(Ct,"__await")?Oe.resolve(Ct.__await).then(function(kt){Ue("next",kt,rt,$e)},function(kt){Ue("throw",kt,rt,$e)}):Oe.resolve(Ct).then(function(kt){Ze.value=kt,rt(Ze)},function(kt){return Ue("throw",kt,rt,$e)})}$e(et.arg)}var Pe;this._invoke=function(Ce,Ge){function rt(){return new Oe(function($e,et){Ue(Ce,Ge,$e,et)})}return Pe=Pe?Pe.then(rt,rt):rt()}}function Ie(De,Oe){var Ue=De.iterator[Oe.method];if(Ue===void 0){if(Oe.delegate=null,Oe.method==="throw"){if(De.iterator.return&&(Oe.method="return",Oe.arg=void 0,Ie(De,Oe),Oe.method==="throw"))return D;Oe.method="throw",Oe.arg=new TypeError("The iterator does not provide a 'throw' method")}return D}var Pe=H(Ue,De.iterator,Oe.arg);if(Pe.type==="throw")return Oe.method="throw",Oe.arg=Pe.arg,Oe.delegate=null,D;var Ce=Pe.arg;return Ce?Ce.done?(Oe[De.resultName]=Ce.value,Oe.next=De.nextLoc,Oe.method!=="return"&&(Oe.method="next",Oe.arg=void 0),Oe.delegate=null,D):Ce:(Oe.method="throw",Oe.arg=new TypeError("iterator result is not an object"),Oe.delegate=null,D)}function Ne(De){var Oe={tryLoc:De[0]};1 in De&&(Oe.catchLoc=De[1]),2 in De&&(Oe.finallyLoc=De[2],Oe.afterLoc=De[3]),this.tryEntries.push(Oe)}function je(De){var Oe=De.completion||{};Oe.type="normal",delete Oe.arg,De.completion=Oe}function tt(De){this.tryEntries=[{tryLoc:"root"}],F(De).call(De,Ne,this),this.reset(!0)}function _e(De){if(De){var Oe=De[L];if(Oe)return Oe.call(De);if(typeof De.next=="function")return De;if(!isNaN(De.length)){var Ue=-1,Pe=function Ce(){for(;++Ue<De.length;)if(P.call(De,Ue))return Ce.value=De[Ue],Ce.done=!1,Ce;return Ce.value=void 0,Ce.done=!0,Ce};return Pe.next=Pe}}return{next:mt}}function mt(){return{value:void 0,done:!0}}return J.prototype=z,B(Z,"constructor",z),B(z,"constructor",J),J.displayName=B(z,k,"GeneratorFunction"),ne.isGeneratorFunction=function(De){var Oe=typeof De=="function"&&De.constructor;return!!Oe&&(Oe===J||(Oe.displayName||Oe.name)==="GeneratorFunction")},ne.mark=function(De){return U?U(De,z):(De.__proto__=z,B(De,k,"GeneratorFunction")),De.prototype=h(Z),De},ne.awrap=function(De){return{__await:De}},G(ve.prototype),B(ve.prototype,C,function(){return this}),ne.AsyncIterator=ve,ne.async=function(De,Oe,Ue,Pe,Ce){Ce===void 0&&(Ce=_);var Ge=new ve(X(De,Oe,Ue,Pe),Ce);return ne.isGeneratorFunction(Oe)?Ge:Ge.next().then(function(rt){return rt.done?rt.value:Ge.next()})},G(Z),B(Z,k,"Generator"),B(Z,L,function(){return this}),B(Z,"toString",function(){return"[object Generator]"}),ne.keys=function(De){var Oe=[];for(var Ue in De)Oe.push(Ue);return Q(Oe).call(Oe),function Pe(){for(;Oe.length;){var Ce=Oe.pop();if(Ce in De)return Pe.value=Ce,Pe.done=!1,Pe}return Pe.done=!0,Pe}},ne.values=_e,tt.prototype={constructor:tt,reset:function(Oe){var Ue;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,F(Ue=this.tryEntries).call(Ue,je),!Oe)for(var Pe in this)Pe.charAt(0)==="t"&&P.call(this,Pe)&&!isNaN(+le(Pe).call(Pe,1))&&(this[Pe]=void 0)},stop:function(){this.done=!0;var Oe=this.tryEntries[0].completion;if(Oe.type==="throw")throw Oe.arg;return this.rval},dispatchException:function(Oe){if(this.done)throw Oe;var Ue=this;function Pe(Ze,Ct){return rt.type="throw",rt.arg=Oe,Ue.next=Ze,Ct&&(Ue.method="next",Ue.arg=void 0),!!Ct}for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var Ge=this.tryEntries[Ce],rt=Ge.completion;if(Ge.tryLoc==="root")return Pe("end");if(Ge.tryLoc<=this.prev){var $e=P.call(Ge,"catchLoc"),et=P.call(Ge,"finallyLoc");if($e&&et){if(this.prev<Ge.catchLoc)return Pe(Ge.catchLoc,!0);if(this.prev<Ge.finallyLoc)return Pe(Ge.finallyLoc)}else if($e){if(this.prev<Ge.catchLoc)return Pe(Ge.catchLoc,!0)}else{if(!et)throw new Error("try statement without catch or finally");if(this.prev<Ge.finallyLoc)return Pe(Ge.finallyLoc)}}}},abrupt:function(Oe,Ue){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var Ce=this.tryEntries[Pe];if(Ce.tryLoc<=this.prev&&P.call(Ce,"finallyLoc")&&this.prev<Ce.finallyLoc){var Ge=Ce;break}}Ge&&(Oe==="break"||Oe==="continue")&&Ge.tryLoc<=Ue&&Ue<=Ge.finallyLoc&&(Ge=null);var rt=Ge?Ge.completion:{};return rt.type=Oe,rt.arg=Ue,Ge?(this.method="next",this.next=Ge.finallyLoc,D):this.complete(rt)},complete:function(Oe,Ue){if(Oe.type==="throw")throw Oe.arg;return Oe.type==="break"||Oe.type==="continue"?this.next=Oe.arg:Oe.type==="return"?(this.rval=this.arg=Oe.arg,this.method="return",this.next="end"):Oe.type==="normal"&&Ue&&(this.next=Ue),D},finish:function(Oe){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var Pe=this.tryEntries[Ue];if(Pe.finallyLoc===Oe)return this.complete(Pe.completion,Pe.afterLoc),je(Pe),D}},catch:function(Oe){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var Pe=this.tryEntries[Ue];if(Pe.tryLoc===Oe){var Ce=Pe.completion;if(Ce.type==="throw"){var Ge=Ce.arg;je(Pe)}return Ge}}throw new Error("illegal catch attempt")},delegateYield:function(Oe,Ue,Pe){return this.delegate={iterator:_e(Oe),resultName:Ue,nextLoc:Pe},this.method==="next"&&(this.arg=void 0),D}},ne}v.exports=K,v.exports.__esModule=!0,v.exports.default=v.exports},94978:(v,T,s)=>{var p=s(57829),S=s(92876);function A(h){return v.exports=A=typeof p=="function"&&typeof S=="symbol"?function(E){return typeof E}:function(E){return E&&typeof p=="function"&&E.constructor===p&&E!==p.prototype?"symbol":typeof E},v.exports.__esModule=!0,v.exports.default=v.exports,A(h)}v.exports=A,v.exports.__esModule=!0,v.exports.default=v.exports},99732:(v,T,s)=>{var p=s(18730)();v.exports=p;try{regeneratorRuntime=p}catch(S){typeof globalThis=="object"?globalThis.regeneratorRuntime=p:Function("r","regeneratorRuntime = r")(p)}}}]);
|
|
500
|
+
`;function Zv(e){const{scopes:r,id:n}=e;let a=[];try{a=JSON.parse((0,St.YQ)(`auth.${n}.scopes`))}catch(o){}return!r||!r.length?M.createElement(M.Fragment,null):M.createElement(pt.NI,null,M.createElement(pt.lX,null," Scopes: "),M.createElement(Hb,{field:`auth.${n}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}const $b=({token:e,loading:r,error:n})=>r?M.createElement(pt.GE,null,"Please, finish your authorization flow or cancel authorization."):n?M.createElement(Ob,null,M.createElement(pt.Xq,null,n)):e!=null&&e.access_token?null:M.createElement(pt.GE,null," No Access Token. Please, Authorize. ");var Kb=Object.defineProperty,Yb=Object.defineProperties,Jb=Object.getOwnPropertyDescriptors,_v=Object.getOwnPropertySymbols,Xb=Object.prototype.hasOwnProperty,Qb=Object.prototype.propertyIsEnumerable,qv=(e,r,n)=>r in e?Kb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Pc=(e,r)=>{for(var n in r||(r={}))Xb.call(r,n)&&qv(e,n,r[n]);if(_v)for(var n of _v(r))Qb.call(r,n)&&qv(e,n,r[n]);return e},up=(e,r)=>Yb(e,Jb(r)),Zb=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function _b(e){if(!e)return"Field is required"}const Ic=({usePkce:e,form:r,id:n,formApi:a,flow:o,tokenUrl:c,authCorsProxyUrl:p,tokenEndpointAuthMethod:m,server:v,scopes:y,authorizationUrl:b,defaultValues:I,clientId:R})=>{var B,$,te,q;const{oAuth2RedirectURI:se,routingBasePath:ie}=(0,M.useContext)(ec.jI),[pe,ve]=(0,M.useState)(null),[ge,Ce]=(0,M.useState)(!1),[we,xe]=(0,M.useState)(!1),[Ae,Fe]=(0,M.useState)(void 0),[Le,We]=(0,M.useState)(void 0),[Ke,At]=(0,M.useState)(void 0),qe=(($=(B=r.values)==null?void 0:B.auth)==null?void 0:$[n])||{},_t=((q=(te=r.errors)==null?void 0:te.auth)==null?void 0:q[n])||{},sr=Ae!==void 0&&Le!==Ke?{label:"sync",onClick:()=>{Ae&&We(Ke)}}:void 0;(0,M.useEffect)(()=>{if(e){const Gt=(0,Qa.CY)(43);uh(Gt).then(Yt=>{Fe(Gt),We(Yt),At(Yt)})}},[e]);const Ut=Gt=>{if(!Gt||(a.validate(),!(0,Qa.Qr)(_t)))return;Ce(!0),ve(null);const Yt=p?p+(0,It.jg)(Gt):Gt,Xr=p&&c?p+(0,It.jg)(c):c,Bn=a.getValue(`auth.${n}.scopes`),gi={authorizationUrl:Yt.startsWith("http")?Yt:v+Yt,clientId:qe.client_id,scopes:Bn,redirectUri:se,routingBasePath:ie,successCallback:Dr=>{a.setValue(`auth.${n}.token`,Dr),Ce(!1),ve(null)},errorCallback:Dr=>{Ce(!1),ve((Dr==null?void 0:Dr.message)||"Failed to retrieve the access token")}};if(o==="implicit"&&Di.authorizeImplicit(gi),!(0,It.xl)(m)){console.log(`Unsupported token endpoint auth method: ${m}`);return}o==="authorizationCode"&&Di.authorizeAuthorizationCode(Pc(up(Pc({},gi),{tokenUrl:Xr!=null&&Xr.startsWith("http")?Xr:v+Xr,clientSecret:qe.client_secret,extraHeaders:(0,It.Or)({authMethod:m,clientId:qe.client_id,clientSecret:qe.client_secret})}),e&&{codeVerifier:Ae,codeChallenge:Le}))},lr=()=>{ur(),ve(null)},Kt=()=>{Ce(!1),ve(null),Di.clearRedirectData(o)},ur=()=>{a.setValue(`auth.${n}.token`,"")},xr=()=>{xe(Gt=>!Gt)},zt=Gt=>Zb(void 0,[Gt],function*({target:{value:Yt}}){const Xr=yield uh(Yt);Fe(Yt),At(Xr)});if(!b)return M.createElement(pt.Xq,null,"No flow info");let ct=(0,St.YQ)(`auth.${n}.token`)||JSON.stringify(I==null?void 0:I.token);ct=ct?JSON.parse(ct):"";const Et=(0,St.Al)(n,"client_id"),Jt={field:`auth.${n}.client_id`,fullWidth:!0,initialValue:(0,St.YQ)(`auth.${n}.client_id`)||R||(I==null?void 0:I.client_id),initValue:(0,St.YQ)(`auth.${n}.client_id`)||R||(I==null?void 0:I.client_id),placeholder:"Your OAuth2 app Client ID",validate:_b,validateOnBlur:!0,validateOnChange:!0};return M.createElement("div",null,M.createElement(pt.n5,null,M.createElement(pt.NI,null,M.createElement(pt.lX,null," Client ID: "),Et?M.createElement(Su,up(Pc({},Jt),{options:Et})):M.createElement(Mn,up(Pc({},Jt),{"data-cy":"client-id-input",panel:"try-it"}))),o==="authorizationCode"&&M.createElement(M.Fragment,null,(!(e!=null&&e.hideClientSecretInput)||!e)&&M.createElement(pt.NI,null,M.createElement(pt.lX,null,"Client Secret:"),M.createElement(Mn,{type:"password",fullWidth:!0,field:`auth.${n}.client_secret`,initialValue:(0,St.YQ)(`auth.${n}.client_secret`)||(I==null?void 0:I.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),e&&!e.disableManualConfiguration&&M.createElement(Pb,null,M.createElement(Qv,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:we,onChange:xr,"data-cy":"pkce-options-toggle"}),we&&M.createElement(Ib,null,M.createElement(pt.NI,null,M.createElement(pt.lX,null,"Code Verifier"),M.createElement(xu,{fullWidth:!0,value:Ae,onChange:zt,panel:"try-it","data-cy":"code-verifier-input"})),M.createElement(pt.NI,null,M.createElement(pt.lX,null,"Code Challenge"),M.createElement(xu,{fullWidth:!0,value:Le,onChange:({target:{value:Gt}})=>{We(Gt)},inputActionButton:sr,panel:"try-it","data-cy":"code-challenge-input"}))))),M.createElement(Mn,{fullWidth:!0,field:`auth.${n}.token`,type:"hidden",initialValue:ct,panel:"try-it"}),M.createElement(Zv,{id:n,scopes:y}),qe.token&&qe.token.access_token?M.createElement(pt.NI,null,M.createElement(pt.lX,null," Access Token: "),M.createElement(xu,{disabled:!0,type:"password",fullWidth:!0,value:qe.token.access_token,panel:"try-it"})):null),M.createElement(Tb,null,qe.token&&qe.token.access_token?M.createElement(Dt.Button,{fullWidth:!0,onClick:lr},"Log out"):ge?M.createElement(M.Fragment,null,M.createElement(Dt.Button,{fullWidth:!0,onClick:Kt},"Cancel"),M.createElement(Yv,null)):M.createElement(Dt.Button,{fullWidth:!0,disabled:!(0,Qa.Qr)(_t),onClick:()=>{Ut(b)}},"Authorize")),ge||pe||!qe.token||!qe.token.access_token&&M.createElement($b,{loading:ge,error:pe,token:qe.token}))};var qb=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function ex(e){var r,n;const{scheme:a,defaultValues:o}=e,[c,p]=(0,M.useState)({}),[m,v]=(0,M.useState)(),[y,b]=(0,M.useState)(!1);(0,M.useEffect)(()=>{I(a.openIdConnectUrl)},[a.openIdConnectUrl]);const I=R=>qb(this,null,function*(){b(!0),v("");try{const B=yield Cb(R);p(B)}catch(B){v(B.message)}b(!1)});return y?M.createElement(tx,null):m?M.createElement(eg,{message:m}):M.createElement("div",null,M.createElement("div",null,(r=c==null?void 0:c.response_types_supported)!=null&&r.includes("token")?M.createElement(M.Fragment,null,M.createElement(nn.S6,null,"OAuth2 Implicit Flow"),M.createElement(Ic,{key:e.id,authorizationUrl:c.authorization_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,flow:"implicit",defaultValues:o})):(n=c==null?void 0:c.response_types_supported)!=null&&n.includes("code")?M.createElement(M.Fragment,null,M.createElement(nn.S6,null,"OAuth2 Authorization Flow"),M.createElement(Ic,{key:e.id,authorizationUrl:c.authorization_endpoint,tokenUrl:c.token_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,tokenEndpointAuthMethod:c==null?void 0:c.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:o})):M.createElement("div",null,"Unsupported flow")))}function tx(){return M.createElement("div",null,M.createElement("div",null,M.createElement("div",null,"Fetching OpenID Connect metadata..."),M.createElement(Yv,null)))}function eg({message:e}){return M.createElement("div",null,M.createElement("div",null,M.createElement(pt.Xq,null,e)))}var rx=Object.defineProperty,nx=Object.defineProperties,ix=Object.getOwnPropertyDescriptors,tg=Object.getOwnPropertySymbols,ax=Object.prototype.hasOwnProperty,ox=Object.prototype.propertyIsEnumerable,rg=(e,r,n)=>r in e?rx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ng=(e,r)=>{for(var n in r||(r={}))ax.call(r,n)&&rg(e,n,r[n]);if(tg)for(var n of tg(r))ox.call(r,n)&&rg(e,n,r[n]);return e},ig=(e,r)=>nx(e,ix(r)),sx=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function lx(e){if(!e)return"Token is required"}const ux=({form:e,id:r,formApi:n,server:a,flow:o,authCorsProxyUrl:c,defaultValues:p,clientId:m})=>{var v,y,b,I;const[R,B]=(0,M.useState)(""),[$,te]=(0,M.useState)(!1),[q,se]=(0,M.useState)(!0),ie=((y=(v=e==null?void 0:e.values)==null?void 0:v.auth)==null?void 0:y[r])||{},pe=((I=(b=e.errors)==null?void 0:b.auth)==null?void 0:I[r])||{},ve=()=>{n.setValue(`auth.${r}.token`,""),(0,St.WW)(`auth.${r}.token`,"")},ge=()=>{se(Le=>!Le)},Ce=()=>sx(void 0,null,function*(){if($)return;const Le=c&&o.tokenUrl?c+(0,It.jg)(o.tokenUrl):o.tokenUrl;if(pe.client_id||pe.client_secret){console.log("Provide client_id and client_secret");return}const We=ie.client_id,Ke=ie.client_secret;if(!We||!Ke){console.log("Provide client_id and client_secret");return}te(!0);const At=o["x-tokenEndpointAuthMethod"];if(!(0,It.xl)(At)){console.log(`Unsupported token endpoint auth method: ${At}`);return}yield Di.authorizeClientCredentials({tokenUrl:Le.startsWith("http")?Le:a+Le,clientId:We,clientSecret:Ke,scopes:ie.scopes,extraHeaders:(0,It.Or)({authMethod:At,clientId:We,clientSecret:Ke}),successCallback:qe=>{n.setValue(`auth.${r}.token`,qe),te(!1)},errorCallback:qe=>{ve(),B(qe.message),te(!1)}})}),we=Object.keys(o.scopes);let xe=(0,St.YQ)(`auth.${r}.token`)||JSON.stringify(p==null?void 0:p.token);xe=xe?JSON.parse(xe):"";const Ae=(0,St.Al)(r,"client_id"),Fe={field:`auth.${r}.client_id`,fullWidth:!0,initialValue:(0,St.YQ)(`auth.${r}.client_id`)||m||(p==null?void 0:p.client_id),initValue:(0,St.YQ)(`auth.${r}.client_id`)||m||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return M.createElement(M.Fragment,null,M.createElement(pt.n5,null,M.createElement(pt.NI,null,M.createElement(pt.lX,null,"Client ID:"),Ae?M.createElement(Su,ig(ng({},Fe),{options:Ae})):M.createElement(Mn,ig(ng({},Fe),{type:"password",panel:"try-it"}))),M.createElement(pt.NI,null,M.createElement(pt.lX,null,"Client Secret:"),M.createElement(Mn,{type:"password",fullWidth:!0,field:`auth.${r}.client_secret`,initialValue:(0,St.YQ)(`auth.${r}.client_secret`)||(p==null?void 0:p.client_secret),panel:"try-it"})),M.createElement(Mn,{fullWidth:!0,field:`auth.${r}.token`,type:"hidden",initialValue:xe,validate:lx}),M.createElement(Zv,{id:r,scopes:we})),M.createElement(Dt.Button,{color:"primary",onClick:Ce,blinking:$},$?"Loading...":"Request Token"),M.createElement(pt.ph,null," Access Token "),R?M.createElement(pt.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",M.createElement("pre",null,R)," "):ie.token&&ie.token.access_token?M.createElement(pt.TR,null,M.createElement(pt.WA,{length:ie.token.access_token.length,masked:q},ie.token.access_token),M.createElement(pt.lf,{onClick:ge},q?"Show":"Hide"," "),M.createElement(pt.h,{onClick:ve}," Clear ")):M.createElement(pt.Xq,{style:{marginBottom:"1em"}},"No token"))};var fx=Object.defineProperty,cx=Object.defineProperties,dx=Object.getOwnPropertyDescriptors,ag=Object.getOwnPropertySymbols,px=Object.prototype.hasOwnProperty,hx=Object.prototype.propertyIsEnumerable,og=(e,r,n)=>r in e?fx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,tl=(e,r)=>{for(var n in r||(r={}))px.call(r,n)&&og(e,n,r[n]);if(ag)for(var n of ag(r))hx.call(r,n)&&og(e,n,r[n]);return e},rl=(e,r)=>cx(e,dx(r));const vx=({securityDefaults:e,operation:r,activeServer:n,authCorsProxyUrl:a,form:o,formApi:c})=>{const[p,m]=(0,M.useState)(0);(0,M.useEffect)(()=>{const R=r.security.map(te=>te.schemes.map(q=>q.id).join(" and ")),B=(0,St.YQ)("securityRequirementName"),$=R.findIndex(te=>te===B);m($<0?0:$)},[r]);const v=R=>{m(R.idx),(0,St.WW)("securityRequirementName",R.value)},y=r.security,I=y.map(R=>R.schemes.map(B=>B.id).join(" and ")).filter(Boolean).map((R,B)=>({value:R,idx:B}));return I.length===0?M.createElement(eg,{message:"Cannot find security schema in the definition"}):M.createElement(M.Fragment,null,M.createElement(pt.n5,null,I.length>1&&M.createElement(pt.NI,null,M.createElement(pt.lX,null," Security scheme: "),M.createElement(nn.VD,{variant:"dark",fullWidth:!0,options:I,value:I[p].value,onChange:v}))||null,y[p].schemes.map(R=>{var B,$,te,q,se,ie,pe;const ve=(0,St.A8)(R.id);if(R.type==="apiKey"){const ge=(0,St.Al)(ve,""),Ce={field:`auth.${ve}`,fullWidth:!0,initialValue:(0,It.NG)(R)||(0,St.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),initValue:(0,It.NG)(R)||(0,St.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),validate:It.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(pt.NI,{key:ve},M.createElement(pt.lX,null," ",R.name,": "),ge?M.createElement(Su,rl(tl({},Ce),{options:ge})):M.createElement(Mn,rl(tl({},Ce),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(R.type==="http"){if(R.scheme==="basic"){const ge=(0,St.Al)(ve,"username"),Ce={field:`auth.${ve}.username`,fullWidth:!0,initialValue:(0,St.YQ)(`auth.${ve}.username`)||((B=e==null?void 0:e[ve])==null?void 0:B.username),initValue:(0,St.YQ)(`auth.${ve}.username`)||(($=e==null?void 0:e[ve])==null?void 0:$.username),validate:It.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(M.Fragment,{key:ve},M.createElement(pt.NI,null,M.createElement(pt.lX,null," ",(0,bu.l)("tryItAuthBasicUsername"),": "),ge?M.createElement(Su,rl(tl({},Ce),{options:ge})):M.createElement(Mn,rl(tl({},Ce),{panel:"try-it"}))),M.createElement(pt.NI,null,M.createElement(pt.lX,null," ",(0,bu.l)("tryItAuthBasicPassword"),": "),M.createElement(Mn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${ve}.password`,initialValue:(0,St.YQ)(`auth.${ve}.password`)||((te=e==null?void 0:e[ve])==null?void 0:te.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(R.scheme==="bearer"){const ge=(0,St.Al)(ve,""),Ce={field:`auth.${ve}`,fullWidth:!0,initialValue:(0,St.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),initValue:(0,St.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),validate:It.np,validateOnBlur:!0,validateOnChange:!0};return M.createElement(M.Fragment,{key:ve},M.createElement(pt.NI,null,M.createElement(pt.lX,null," Bearer Token: "),ge?M.createElement(Su,rl(tl({},Ce),{options:ge})):M.createElement(Mn,rl(tl({},Ce),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(R.type==="oauth2"&&R.flows&&R.flows.clientCredentials)return M.createElement(ux,{key:ve,flow:R.flows.clientCredentials,server:n,authCorsProxyUrl:a,id:ve,form:o,formApi:c,clientId:R.flows.clientCredentials["x-defaultClientId"]||R["x-defaultClientId"],defaultValues:e==null?void 0:e[ve]});if(R.type==="oauth2"&&R.flows&&R.flows.implicit)return M.createElement(Ic,{key:ve,authorizationUrl:R.flows.implicit.authorizationUrl,authCorsProxyUrl:a,scopes:Object.keys(((se=(q=R==null?void 0:R.flows)==null?void 0:q.implicit)==null?void 0:se.scopes)||{}),server:n,id:ve,form:o,formApi:c,clientId:R.flows.implicit["x-defaultClientId"]||R["x-defaultClientId"],flow:"implicit",defaultValues:e==null?void 0:e[ve]});if(R.type==="oauth2"&&R.flows&&R.flows.authorizationCode)return M.createElement(Ic,{key:ve,authorizationUrl:R.flows.authorizationCode.authorizationUrl,tokenUrl:R.flows.authorizationCode.tokenUrl,authCorsProxyUrl:a,scopes:Object.keys(((ie=R.flows.authorizationCode)==null?void 0:ie.scopes)||{}),server:n,id:ve,form:o,formApi:c,clientId:R.flows.authorizationCode["x-defaultClientId"]||R["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:R.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:R.flows.authorizationCode["x-usePkce"],defaultValues:e==null?void 0:e[ve]});if(R.type==="oauth2"){let ge=(0,St.YQ)(`auth.${ve}.token`)||JSON.stringify((pe=e==null?void 0:e[ve])==null?void 0:pe.token);return ge=ge?JSON.parse(ge):{},M.createElement(M.Fragment,{key:ve},M.createElement(pt.NI,null,M.createElement(pt.lX,null," Access Token Type: "),M.createElement(Mn,{fullWidth:!0,field:`auth.${ve}.token.token_type`,initialValue:ge.token_type||"Bearer",panel:"try-it"})),M.createElement(pt.NI,null,M.createElement(pt.lX,null," Access Token: "),M.createElement(Mn,{type:"password",fullWidth:!0,field:`auth.${ve}.token.access_token`,validate:It.np,initialValue:ge.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(R.type==="openIdConnect")return M.createElement(ex,{key:ve,server:n,authCorsProxyUrl:a,id:ve,form:o,formApi:c,scheme:R,clientId:R["x-defaultClientId"],defaultValues:e==null?void 0:e[ve]})}})),M.createElement("small",null,M.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))};var gx=Object.defineProperty,sg=Object.getOwnPropertySymbols,mx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable,lg=(e,r,n)=>r in e?gx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,bx=(e,r)=>{for(var n in r||(r={}))mx.call(r,n)&&lg(e,n,r[n]);if(sg)for(var n of sg(r))yx.call(r,n)&&lg(e,n,r[n]);return e};const xx=({operation:e,properties:r,securityDefaults:n,form:a,resolvedRawSpec:o,server:c,formApi:p,setFormApi:m,handleChange:v,handleServerChange:y})=>{const b=a.errors||{},I=b.path||b.cookie||b.header||b.query,{hooks:R,authCorsProxyUrl:B}=(0,M.useContext)(ec.jI),$=o&&St.IB.get(o,e.pointer);let te=a.values&&a.values.auth&&Object.keys(a.values.auth)[0];(!te||!a.values.auth[te])&&(te=void 0),te&&(a.values.auth[te].token!==void 0||a.values.auth[te].client_id!==void 0||a.values.auth[te].client_secret!==void 0)&&(!a.values.auth[te].token||!a.values.auth[te].token.access_token)&&(te=void 0),te&&a.values.auth[te].username!=null&&(!a.values.auth[te].username||!a.values.auth[te].password)&&(te=void 0);const q=e.parameters||[];return!o&&M.createElement(M.Fragment,null,"Loading...")||M.createElement(Jm,{onChange:v,getApi:m,style:{flex:1,display:"flex",flexDirection:"column",margin:0}},M.createElement(Ty,{operation:e,onChange:y}),M.createElement(Ir.UQ,{initialActiveIdx:e.security.length&&te?1:0},e.security.length&&p&&M.createElement(zd,{header:(0,bu.l)("tryItAuth"),"data-cy":"security-trigger",error:!te&&!!b.auth,success:!!te,renderChildrenHidden:!0},R!=null&&R.ReplaceTryItSecurityPanel?M.createElement(Sx,{field:"auth",validate:It.np},se=>M.createElement(cb.Q,{Hook:R==null?void 0:R.ReplaceTryItSecurityPanel,props:{server:c,operation:e,onChange:se,OAuth2:Di}})):M.createElement(vx,{formApi:p,form:a,operation:e,activeServer:c.url,authCorsProxyUrl:B,securityDefaults:n}))||null,e.requestBody&&p&&M.createElement(zd,{header:(0,bu.l)("tryItBody"),"data-cy":"body-trigger",error:!!b.body,renderChildrenHidden:!0},M.createElement(fb,{validate:wx,formApi:p,body:e.requestBody,id:e.id,resolvedBody:$==null?void 0:$.requestBody,properties:r}))||null,q.length&&M.createElement(zd,{header:(0,bu.l)("tryItParameters"),"data-cy":"parameters-trigger",error:I,renderChildrenHidden:!0},M.createElement(wb,{operation:e,values:a.values,errors:a.errors||{}}))||null))};function Sx(e){const{fieldApi:r,render:n,userProps:a}=mu(bx({},e)),{setValue:o}=r,{children:c}=a;return n(M.createElement(M.Fragment,null,c(o)))}function wx(){}const Ax=(0,A.Pi)(xx);var ug=s(39448);const Cx=e=>{const{shaking:r,className:n,children:a,rootElement:o}=e,[c]=(0,ug.B)(o),p=(0,M.useContext)(ec.xf);return M.createElement(nn.q2,{scrollYOffset:p==null?void 0:p.options.scrollYOffset,shaking:r,className:n,"data-cy":"console",fullWidth:c==null?void 0:c.width},a)},Ex=(0,A.Pi)(Cx);var Ox=Object.defineProperty,Tx=Object.defineProperties,Px=Object.getOwnPropertyDescriptors,kc=Object.getOwnPropertySymbols,fg=Object.prototype.hasOwnProperty,cg=Object.prototype.propertyIsEnumerable,dg=(e,r,n)=>r in e?Ox(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,on=(e,r)=>{for(var n in r||(r={}))fg.call(r,n)&&dg(e,n,r[n]);if(kc)for(var n of kc(r))cg.call(r,n)&&dg(e,n,r[n]);return e},qn=(e,r)=>Tx(e,Px(r)),pg=(e,r)=>{var n={};for(var a in e)fg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&kc)for(var a of kc(e))r.indexOf(a)<0&&cg.call(e,a)&&(n[a]=e[a]);return n},hg=(e,r,n)=>new Promise((a,o)=>{var c=v=>{try{m(n.next(v))}catch(y){o(y)}},p=v=>{try{m(n.throw(v))}catch(y){o(y)}},m=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);m((n=n.apply(e,r)).next())});function vg(e){return e.startsWith("//")?"https:"+e:e}const gg=({operation:e,store:r,onResponse:n,className:a,rootElement:o,properties:c,securityDefaults:p,onClose:m})=>{let v=(0,M.useRef)();const[y,b]=(0,M.useState)(e.activeServer),[I,R]=(0,M.useState)(0),[B,$]=(0,M.useState)(!1),[te,q]=(0,M.useState)(!1),[se,ie]=(0,M.useState)({values:{path:(0,It.ZS)(e.parameters,"path"),cookie:(0,It.ZS)(e.parameters,"cookie"),header:(0,It.ZS)(e.parameters,"header"),query:(0,It.ZS)(e.parameters,"query")}}),[pe,ve]=(0,M.useState)(),[ge,Ce]=(0,M.useState)(),[we,xe]=(0,M.useState)(),[Ae,Fe]=(0,M.useState)(),Le=(0,ug.D)(e),We=(Ut,lr=Ut.getState())=>{var Kt=lr,{values:ur}=Kt,xr=pg(Kt,["values"]);v.current=Ut,setTimeout(()=>{ie(qn(on({},xr),{values:qn(on({},ur),{query:(0,It.FU)(ur.query||{})})}))},0)},Ke=(0,M.useCallback)(Ut=>{var lr=Ut,{values:Kt}=lr,ur=pg(lr,["values"]);const xr=qn(on({},ur),{values:qn(on({},Kt),{query:(0,It.FU)(Kt.query||{})})});ie(xr),(0,It.Hc)(xr),e.setRequestValues(Kt)},[e]),At=Ut=>{R(Ut)},qe=Ut=>{b(Ut),e.setActiveServer(Ut)},_t=()=>hg(void 0,null,function*(){var Ut,lr,Kt,ur,xr,zt,ct,Et,Jt;const{values:Gt,invalid:Yt}=((Ut=v==null?void 0:v.current)==null?void 0:Ut.getState())||se||{};if((lr=v.current)==null||lr.submitForm(),Yt){q(!0),setTimeout(()=>q(!1),1e3),(ur=(Kt=r==null?void 0:r.options.events)==null?void 0:Kt.tryItSent)==null||ur.call(Kt,{eventType:Yi.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description});return}const{servers:Xr,requestBody:Bn}=e,gi=Bn&&Bn.content&&Bn.content.active&&Bn.content.active.name||"";let Dr=Gt.body;if(/json/.test(gi))try{Dr=JSON.parse(Dr)}catch(Xt){console.error(Xt)}$(!0);const sn=pe,Ko=(e.httpVerb||"").toLowerCase();if(!Xr)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const Tn=Xr.find(Xt=>y.url.endsWith(Xt.url.endsWith("/")?Xt.url.substring(0,Xt.url.length-1):Xt.url)),Yo=Date.now(),fp=!!window.document.documentMode;let ji,Vi=Gt.auth;if(Gt.auth){const Xt=Object.keys(Gt.auth)[0],wn=(0,St.dw)(Xt);ji=qn(on({},sn),{components:qn(on({},sn==null?void 0:sn.components),{securitySchemes:qn(on({},sn==null?void 0:sn.components.securitySchemes),{[wn]:qn(on({},sn==null?void 0:sn.components.securitySchemes[wn]),{type:(sn==null?void 0:sn.components.securitySchemes[wn].type)==="openIdConnect"?"oauth2":sn==null?void 0:sn.components.securitySchemes[wn].type})})})}),Vi=qn(on({},Vi),{[wn]:Vi[Xt]})}else ji=on({},sn);ji.servers=Xr;const xa=r.options.corsProxyUrl;xa&&Xr.length&&(ji.servers=Xr.map(Xt=>qn(on({},Xt),{url:xa+vg(Xt.url)})),ji.paths=qn(on({},ji.paths),{[e.path]:qn(on({},ji.paths[e.path]),{[Ko]:qn(on({},ji.paths[e.path][Ko]),{servers:void 0}),servers:void 0})}));const nl=((zt=(xr=Bn==null?void 0:Bn.content)==null?void 0:xr.active)==null?void 0:zt.name)||null;if(nl&&Dr&&Rr(nl)){const Xt=Object.values(Dr);Dr=Xt.length>1?Xt:Xt[0]}const Lu={userFetch:fp&&s(96279).fetch,server:xa?xa+vg(Tn.url):Tn.url,serverVariables:Tn.variables,spec:ji,pathName:e.path,method:e.httpVerb,parameters:on(on(on(on({},Gt.path),Gt.query),Gt.header),Gt.cookie),securities:{authorized:Vi},requestBody:Dr,requestContentType:nl,responseContentType:((ct=Gt.header)==null?void 0:ct.Accept)||null,requestInterceptor:(0,It.Tz)(r.options,e,Vi==null?void 0:Vi.Authorization)};try{const Xt=yield xn.execute(Lu),wn=Xt==null?void 0:Xt.data;wn instanceof Blob&&(Rr(wn.type)&&(Xt.fileInfo={rawData:wn,fileName:(0,It.AM)(Xt.headers)}),Xt.data=yield wn.text()),n==null||n({request:Lu,response:Xt}),Fe(Xt),xe(void 0)}catch(Xt){Xt&&Xt.response&&Xt.response.data instanceof Blob&&(Xt.response.data=yield Xt.response.data.text(),n==null||n({request:Lu,response:Xt.response})),Fe(void 0),xe(Xt)}finally{$(!1),R(1),Ce(Date.now()-Yo),(Jt=(Et=r==null?void 0:r.options.events)==null?void 0:Et.tryItSent)==null||Jt.call(Et,{eventType:Yi.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description})}});(0,Dt.useMount)(()=>hg(void 0,null,function*(){var Ut;const lr=yield r.dereferenceSpecForTryIt(e);ve(lr),(Ut=v.current)==null||Ut.setValues({})})),(0,M.useEffect)(()=>{Le!==e&&(Fe(void 0),xe(void 0),R(0))},[e,Le]);const sr=!!(Ae||we);return M.createElement(Ex,{shaking:te,className:a,rootElement:o},M.createElement(Ir.Hc,null,M.createElement(Dg,{active:I,hasResponse:sr,onChange:At}),m&&M.createElement(nn.PZ,{onClick:m}," \u2715 ")),M.createElement(nn.RE,{hidden:I!==0,"data-cy":"console-request-body"},M.createElement(Ax,{operation:e,properties:c,securityDefaults:p,form:se,resolvedRawSpec:pe,server:y,formApi:v.current,setFormApi:We,handleChange:Ke,handleServerChange:qe})),M.createElement(nn.RE,{hidden:I!==1,"data-cy":"console-response-body"},M.createElement(Mg,{response:Ae,error:we,time:ge}),";"),M.createElement(Ug,{hasResponse:sr,params:se.values,operation:e,loading:B,execute:_t}))},Ix=(0,A.Pi)(gg)},37795:h=>{"use strict";var O="Function.prototype.bind called on incompatible ",s=Array.prototype.slice,d=Object.prototype.toString,x="[object Function]";h.exports=function(A){var E=this;if(typeof E!="function"||d.call(E)!==x)throw new TypeError(O+E);for(var F=s.call(arguments,1),W,Z=function(){if(this instanceof W){var Y=E.apply(this,F.concat(s.call(arguments)));return Object(Y)===Y?Y:this}else return E.apply(A,F.concat(s.call(arguments)))},ee=Math.max(0,E.length-F.length),ue=[],ne=0;ne<ee;ne++)ue.push("$"+ne);if(W=Function("binder","return function ("+ue.join(",")+"){ return binder.apply(this,arguments); }")(Z),E.prototype){var ae=function(){};ae.prototype=E.prototype,W.prototype=new ae,ae.prototype=null}return W}},4090:(h,O,s)=>{"use strict";var d=s(37795);h.exports=Function.prototype.bind||d},67286:(h,O,s)=>{"use strict";var d,x=SyntaxError,w=Function,A=TypeError,E=function(he){try{return w('"use strict"; return ('+he+").constructor;")()}catch(_){}},F=Object.getOwnPropertyDescriptor;if(F)try{F({},"")}catch(he){F=null}var W=function(){throw new A},Z=F?function(){try{return arguments.callee,W}catch(he){try{return F(arguments,"callee").get}catch(_){return W}}}():W,ee=s(32636)(),ue=Object.getPrototypeOf||function(he){return he.__proto__},ne={},ae=typeof Uint8Array=="undefined"?d:ue(Uint8Array),Y={"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":ee?ue([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%Atomics%":typeof Atomics=="undefined"?d:Atomics,"%BigInt%":typeof BigInt=="undefined"?d:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?d:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?d:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":ne,"%Int8Array%":typeof Int8Array=="undefined"?d:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?d:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ee?ue(ue([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ee?d:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?d:Promise,"%Proxy%":typeof Proxy=="undefined"?d:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?d:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ee?d:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ee?ue(""[Symbol.iterator]()):d,"%Symbol%":ee?Symbol:d,"%SyntaxError%":x,"%ThrowTypeError%":Z,"%TypedArray%":ae,"%TypeError%":A,"%Uint8Array%":typeof Uint8Array=="undefined"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?d:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?d:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?d:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?d:WeakSet},P=function he(_){var Q;if(_==="%AsyncFunction%")Q=E("async function () {}");else if(_==="%GeneratorFunction%")Q=E("function* () {}");else if(_==="%AsyncGeneratorFunction%")Q=E("async function* () {}");else if(_==="%AsyncGenerator%"){var H=he("%AsyncGeneratorFunction%");H&&(Q=H.prototype)}else if(_==="%AsyncIteratorPrototype%"){var ye=he("%AsyncGenerator%");ye&&(Q=ue(ye.prototype))}return Y[_]=Q,Q},G={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=s(4090),C=s(23198),k=N.call(Function.call,Array.prototype.concat),j=N.call(Function.apply,Array.prototype.splice),J=N.call(Function.call,String.prototype.replace),K=N.call(Function.call,String.prototype.slice),U=N.call(Function.call,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,z=function(_){var Q=K(_,0,1),H=K(_,-1);if(Q==="%"&&H!=="%")throw new x("invalid intrinsic syntax, expected closing `%`");if(H==="%"&&Q!=="%")throw new x("invalid intrinsic syntax, expected opening `%`");var ye=[];return J(_,re,function(ke,je,De,nt){ye[ye.length]=De?J(nt,X,"$1"):je||ke}),ye},ce=function(_,Q){var H=_,ye;if(C(G,H)&&(ye=G[H],H="%"+ye[0]+"%"),C(Y,H)){var ke=Y[H];if(ke===ne&&(ke=P(H)),typeof ke=="undefined"&&!Q)throw new A("intrinsic "+_+" exists, but is not available. Please file an issue!");return{alias:ye,name:H,value:ke}}throw new x("intrinsic "+_+" does not exist!")};h.exports=function(_,Q){if(typeof _!="string"||_.length===0)throw new A("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Q!="boolean")throw new A('"allowMissing" argument must be a boolean');if(U(/^%?[^%]*%?$/,_)===null)throw new x("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var H=z(_),ye=H.length>0?H[0]:"",ke=ce("%"+ye+"%",Q),je=ke.name,De=ke.value,nt=!1,tt=ke.alias;tt&&(ye=tt[0],j(H,k([0,1],tt)));for(var bt=1,Ne=!0;bt<H.length;bt+=1){var Oe=H[bt],He=K(Oe,0,1),Pe=K(Oe,-1);if((He==='"'||He==="'"||He==="`"||Pe==='"'||Pe==="'"||Pe==="`")&&He!==Pe)throw new x("property names with quotes must have matching quotes");if((Oe==="constructor"||!Ne)&&(nt=!0),ye+="."+Oe,je="%"+ye+"%",C(Y,je))De=Y[je];else if(De!=null){if(!(Oe in De)){if(!Q)throw new A("base intrinsic for "+_+" exists, but the property is not available.");return}if(F&&bt+1>=H.length){var Te=F(De,Oe);Ne=!!Te,Ne&&"get"in Te&&!("originalValue"in Te.get)?De=Te.get:De=De[Oe]}else Ne=C(De,Oe),De=De[Oe];Ne&&!nt&&(Y[je]=De)}}return De}},32636:(h,O,s)=>{"use strict";var d=typeof Symbol!="undefined"&&Symbol,x=s(66679);h.exports=function(){return typeof d!="function"||typeof Symbol!="function"||typeof d("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x()}},66679:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},d=Symbol("test"),x=Object(d);if(typeof d=="string"||Object.prototype.toString.call(d)!=="[object Symbol]"||Object.prototype.toString.call(x)!=="[object Symbol]")return!1;var w=42;s[d]=w;for(d in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var A=Object.getOwnPropertySymbols(s);if(A.length!==1||A[0]!==d||!Object.prototype.propertyIsEnumerable.call(s,d))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(s,d);if(E.value!==w||E.enumerable!==!0)return!1}return!0}},23198:(h,O,s)=>{"use strict";var d=s(4090);h.exports=d.call(Function.call,Object.prototype.hasOwnProperty)},89612:(h,O,s)=>{var d=s(52118),x=s(96909),w=s(98138),A=s(4174),E=s(7942);function F(W){var Z=-1,ee=W==null?0:W.length;for(this.clear();++Z<ee;){var ue=W[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=A,F.prototype.set=E,h.exports=F},80235:(h,O,s)=>{var d=s(3945),x=s(21846),w=s(88028),A=s(72344),E=s(94769);function F(W){var Z=-1,ee=W==null?0:W.length;for(this.clear();++Z<ee;){var ue=W[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=A,F.prototype.set=E,h.exports=F},10326:(h,O,s)=>{var d=s(38761),x=s(37772),w=d(x,"Map");h.exports=w},96738:(h,O,s)=>{var d=s(92411),x=s(36417),w=s(86928),A=s(79493),E=s(24150);function F(W){var Z=-1,ee=W==null?0:W.length;for(this.clear();++Z<ee;){var ue=W[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=A,F.prototype.set=E,h.exports=F},50857:(h,O,s)=>{var d=s(37772),x=d.Symbol;h.exports=x},50343:h=>{function O(s,d){for(var x=-1,w=s==null?0:s.length,A=Array(w);++x<w;)A[x]=d(s[x],x,s);return A}h.exports=O},22218:(h,O,s)=>{var d=s(41225);function x(w,A){for(var E=w.length;E--;)if(d(w[E][0],A))return E;return-1}h.exports=x},13324:(h,O,s)=>{var d=s(17297),x=s(33812);function w(A,E){E=d(E,A);for(var F=0,W=E.length;A!=null&&F<W;)A=A[x(E[F++])];return F&&F==W?A:void 0}h.exports=w},53366:(h,O,s)=>{var d=s(50857),x=s(62107),w=s(37157),A="[object Null]",E="[object Undefined]",F=d?d.toStringTag:void 0;function W(Z){return Z==null?Z===void 0?E:A:F&&F in Object(Z)?x(Z):w(Z)}h.exports=W},6840:(h,O,s)=>{var d=s(61049),x=s(47394),w=s(29259),A=s(87035),E=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,W=Function.prototype,Z=Object.prototype,ee=W.toString,ue=Z.hasOwnProperty,ne=RegExp("^"+ee.call(ue).replace(E,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ae(Y){if(!w(Y)||x(Y))return!1;var P=d(Y)?ne:F;return P.test(A(Y))}h.exports=ae},1054:(h,O,s)=>{var d=s(50857),x=s(50343),w=s(86152),A=s(4795),E=1/0,F=d?d.prototype:void 0,W=F?F.toString:void 0;function Z(ee){if(typeof ee=="string")return ee;if(w(ee))return x(ee,Z)+"";if(A(ee))return W?W.call(ee):"";var ue=ee+"";return ue=="0"&&1/ee==-E?"-0":ue}h.exports=Z},17297:(h,O,s)=>{var d=s(86152),x=s(21401),w=s(54452),A=s(66188);function E(F,W){return d(F)?F:x(F,W)?[F]:w(A(F))}h.exports=E},24019:(h,O,s)=>{var d=s(37772),x=d["__core-js_shared__"];h.exports=x},51242:(h,O,s)=>{var d=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g;h.exports=d},27937:(h,O,s)=>{var d=s(98304);function x(w,A){var E=w.__data__;return d(A)?E[typeof A=="string"?"string":"hash"]:E.map}h.exports=x},38761:(h,O,s)=>{var d=s(6840),x=s(98109);function w(A,E){var F=x(A,E);return d(F)?F:void 0}h.exports=w},62107:(h,O,s)=>{var d=s(50857),x=Object.prototype,w=x.hasOwnProperty,A=x.toString,E=d?d.toStringTag:void 0;function F(W){var Z=w.call(W,E),ee=W[E];try{W[E]=void 0;var ue=!0}catch(ae){}var ne=A.call(W);return ue&&(Z?W[E]=ee:delete W[E]),ne}h.exports=F},98109:h=>{function O(s,d){return s==null?void 0:s[d]}h.exports=O},52118:(h,O,s)=>{var d=s(99191);function x(){this.__data__=d?d(null):{},this.size=0}h.exports=x},96909:h=>{function O(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}h.exports=O},98138:(h,O,s)=>{var d=s(99191),x="__lodash_hash_undefined__",w=Object.prototype,A=w.hasOwnProperty;function E(F){var W=this.__data__;if(d){var Z=W[F];return Z===x?void 0:Z}return A.call(W,F)?W[F]:void 0}h.exports=E},4174:(h,O,s)=>{var d=s(99191),x=Object.prototype,w=x.hasOwnProperty;function A(E){var F=this.__data__;return d?F[E]!==void 0:w.call(F,E)}h.exports=A},7942:(h,O,s)=>{var d=s(99191),x="__lodash_hash_undefined__";function w(A,E){var F=this.__data__;return this.size+=this.has(A)?0:1,F[A]=d&&E===void 0?x:E,this}h.exports=w},21401:(h,O,s)=>{var d=s(86152),x=s(4795),w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/;function E(F,W){if(d(F))return!1;var Z=typeof F;return Z=="number"||Z=="symbol"||Z=="boolean"||F==null||x(F)?!0:A.test(F)||!w.test(F)||W!=null&&F in Object(W)}h.exports=E},98304:h=>{function O(s){var d=typeof s;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?s!=="__proto__":s===null}h.exports=O},47394:(h,O,s)=>{var d=s(24019),x=function(){var A=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();function w(A){return!!x&&x in A}h.exports=w},3945:h=>{function O(){this.__data__=[],this.size=0}h.exports=O},21846:(h,O,s)=>{var d=s(22218),x=Array.prototype,w=x.splice;function A(E){var F=this.__data__,W=d(F,E);if(W<0)return!1;var Z=F.length-1;return W==Z?F.pop():w.call(F,W,1),--this.size,!0}h.exports=A},88028:(h,O,s)=>{var d=s(22218);function x(w){var A=this.__data__,E=d(A,w);return E<0?void 0:A[E][1]}h.exports=x},72344:(h,O,s)=>{var d=s(22218);function x(w){return d(this.__data__,w)>-1}h.exports=x},94769:(h,O,s)=>{var d=s(22218);function x(w,A){var E=this.__data__,F=d(E,w);return F<0?(++this.size,E.push([w,A])):E[F][1]=A,this}h.exports=x},92411:(h,O,s)=>{var d=s(89612),x=s(80235),w=s(10326);function A(){this.size=0,this.__data__={hash:new d,map:new(w||x),string:new d}}h.exports=A},36417:(h,O,s)=>{var d=s(27937);function x(w){var A=d(this,w).delete(w);return this.size-=A?1:0,A}h.exports=x},86928:(h,O,s)=>{var d=s(27937);function x(w){return d(this,w).get(w)}h.exports=x},79493:(h,O,s)=>{var d=s(27937);function x(w){return d(this,w).has(w)}h.exports=x},24150:(h,O,s)=>{var d=s(27937);function x(w,A){var E=d(this,w),F=E.size;return E.set(w,A),this.size+=E.size==F?0:1,this}h.exports=x},77777:(h,O,s)=>{var d=s(30733),x=500;function w(A){var E=d(A,function(W){return F.size===x&&F.clear(),W}),F=E.cache;return E}h.exports=w},99191:(h,O,s)=>{var d=s(38761),x=d(Object,"create");h.exports=x},37157:h=>{var O=Object.prototype,s=O.toString;function d(x){return s.call(x)}h.exports=d},37772:(h,O,s)=>{var d=s(51242),x=typeof self=="object"&&self&&self.Object===Object&&self,w=d||x||Function("return this")();h.exports=w},54452:(h,O,s)=>{var d=s(77777),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/\\(\\)?/g,A=d(function(E){var F=[];return E.charCodeAt(0)===46&&F.push(""),E.replace(x,function(W,Z,ee,ue){F.push(ee?ue.replace(w,"$1"):Z||W)}),F});h.exports=A},33812:(h,O,s)=>{var d=s(4795),x=1/0;function w(A){if(typeof A=="string"||d(A))return A;var E=A+"";return E=="0"&&1/A==-x?"-0":E}h.exports=w},87035:h=>{var O=Function.prototype,s=O.toString;function d(x){if(x!=null){try{return s.call(x)}catch(w){}try{return x+""}catch(w){}}return""}h.exports=d},41225:h=>{function O(s,d){return s===d||s!==s&&d!==d}h.exports=O},72579:(h,O,s)=>{var d=s(13324);function x(w,A,E){var F=w==null?void 0:d(w,A);return F===void 0?E:F}h.exports=x},86152:h=>{var O=Array.isArray;h.exports=O},61049:(h,O,s)=>{var d=s(53366),x=s(29259),w="[object AsyncFunction]",A="[object Function]",E="[object GeneratorFunction]",F="[object Proxy]";function W(Z){if(!x(Z))return!1;var ee=d(Z);return ee==A||ee==E||ee==w||ee==F}h.exports=W},29259:h=>{function O(s){var d=typeof s;return s!=null&&(d=="object"||d=="function")}h.exports=O},15125:h=>{function O(s){return s!=null&&typeof s=="object"}h.exports=O},4795:(h,O,s)=>{var d=s(53366),x=s(15125),w="[object Symbol]";function A(E){return typeof E=="symbol"||x(E)&&d(E)==w}h.exports=A},30733:(h,O,s)=>{var d=s(96738),x="Expected a function";function w(A,E){if(typeof A!="function"||E!=null&&typeof E!="function")throw new TypeError(x);var F=function(){var W=arguments,Z=E?E.apply(this,W):W[0],ee=F.cache;if(ee.has(Z))return ee.get(Z);var ue=A.apply(this,W);return F.cache=ee.set(Z,ue)||ee,ue};return F.cache=new(w.Cache||d),F}w.Cache=d,h.exports=w},66188:(h,O,s)=>{var d=s(1054);function x(w){return w==null?"":d(w)}h.exports=x},99500:(h,O,s)=>{var d=typeof Map=="function"&&Map.prototype,x=Object.getOwnPropertyDescriptor&&d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,w=d&&x&&typeof x.get=="function"?x.get:null,A=d&&Map.prototype.forEach,E=typeof Set=="function"&&Set.prototype,F=Object.getOwnPropertyDescriptor&&E?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,W=E&&F&&typeof F.get=="function"?F.get:null,Z=E&&Set.prototype.forEach,ee=typeof WeakMap=="function"&&WeakMap.prototype,ue=ee?WeakMap.prototype.has:null,ne=typeof WeakSet=="function"&&WeakSet.prototype,ae=ne?WeakSet.prototype.has:null,Y=typeof WeakRef=="function"&&WeakRef.prototype,P=Y?WeakRef.prototype.deref:null,G=Boolean.prototype.valueOf,N=Object.prototype.toString,C=Function.prototype.toString,k=String.prototype.match,j=String.prototype.slice,J=String.prototype.replace,K=String.prototype.toUpperCase,U=String.prototype.toLowerCase,re=RegExp.prototype.test,X=Array.prototype.concat,z=Array.prototype.join,ce=Array.prototype.slice,he=Math.floor,_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Q=Object.getOwnPropertySymbols,H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ye=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ke=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ye?"object":"symbol")?Symbol.toStringTag:null,je=Object.prototype.propertyIsEnumerable,De=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(fe){return fe.__proto__}:null);function nt(fe,be){if(fe===1/0||fe===-1/0||fe!==fe||fe&&fe>-1e3&&fe<1e3||re.call(/e/,be))return be;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof fe=="number"){var Ve=fe<0?-he(-fe):he(fe);if(Ve!==fe){var lt=String(Ve),vt=j.call(be,lt.length+1);return J.call(lt,Be,"$&_")+"."+J.call(J.call(vt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return J.call(be,Be,"$&_")}var tt=s(53260),bt=tt.custom,Ne=Ft(bt)?bt:null;h.exports=function fe(be,Be,Ve,lt){var vt=Be||{};if(Je(vt,"quoteStyle")&&vt.quoteStyle!=="single"&&vt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Je(vt,"maxStringLength")&&(typeof vt.maxStringLength=="number"?vt.maxStringLength<0&&vt.maxStringLength!==1/0:vt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Mt=Je(vt,"customInspect")?vt.customInspect:!0;if(typeof Mt!="boolean"&&Mt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Je(vt,"indent")&&vt.indent!==null&&vt.indent!==" "&&!(parseInt(vt.indent,10)===vt.indent&&vt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Je(vt,"numericSeparator")&&typeof vt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var pr=vt.numericSeparator;if(typeof be=="undefined")return"undefined";if(be===null)return"null";if(typeof be=="boolean")return be?"true":"false";if(typeof be=="string")return gt(be,vt);if(typeof be=="number"){if(be===0)return 1/0/be>0?"0":"-0";var Nt=String(be);return pr?nt(be,Nt):Nt}if(typeof be=="bigint"){var Tr=String(be)+"n";return pr?nt(be,Tr):Tr}var yi=typeof vt.depth=="undefined"?5:vt.depth;if(typeof Ve=="undefined"&&(Ve=0),Ve>=yi&&yi>0&&typeof be=="object")return Pe(be)?"[Array]":"[Object]";var Hr=Tt(vt,Ve);if(typeof lt=="undefined")lt=[];else if(Zr(lt,be)>=0)return"[Circular]";function zr(cn,Pr,ri){if(Pr&&(lt=ce.call(lt),lt.push(Pr)),ri){var In={depth:vt.depth};return Je(vt,"quoteStyle")&&(In.quoteStyle=vt.quoteStyle),fe(cn,In,Ve+1,lt)}return fe(cn,vt,Ve+1,lt)}if(typeof be=="function"&&!Ye(be)){var bi=ze(be),qr=Ue(be,zr);return"[Function"+(bi?": "+bi:" (anonymous)")+"]"+(qr.length>0?" { "+z.call(qr,", ")+" }":"")}if(Ft(be)){var gr=ye?J.call(String(be),/^(Symbol\(.*\))_[^)]*$/,"$1"):H.call(be);return typeof be=="object"&&!ye?Ot(gr):gr}if(Ze(be)){for(var ei="<"+U.call(String(be.nodeName)),en=be.attributes||[],ti=0;ti<en.length;ti++)ei+=" "+en[ti].name+"="+Oe(He(en[ti].value),"double",vt);return ei+=">",be.childNodes&&be.childNodes.length&&(ei+="..."),ei+="</"+U.call(String(be.nodeName))+">",ei}if(Pe(be)){if(be.length===0)return"[]";var Un=Ue(be,zr);return Hr&&!mt(Un)?"["+st(Un,Hr)+"]":"[ "+z.call(Un,", ")+" ]"}if(at(be)){var xi=Ue(be,zr);return!("cause"in Error.prototype)&&"cause"in be&&!je.call(be,"cause")?"{ ["+String(be)+"] "+z.call(X.call("[cause]: "+zr(be.cause),xi),", ")+" }":xi.length===0?"["+String(be)+"]":"{ ["+String(be)+"] "+z.call(xi,", ")+" }"}if(typeof be=="object"&&Mt){if(Ne&&typeof be[Ne]=="function"&&tt)return tt(be,{depth:yi-Ve});if(Mt!=="symbol"&&typeof be.inspect=="function")return be.inspect()}if(Er(be)){var _i=[];return A.call(be,function(cn,Pr){_i.push(zr(Pr,be,!0)+" => "+zr(cn,be))}),dt("Map",w.call(be),_i,Hr)}if(Or(be)){var gn=[];return Z.call(be,function(cn){gn.push(zr(cn,be))}),dt("Set",W.call(be),gn,Hr)}if(un(be))return kt("WeakMap");if(_r(be))return kt("WeakSet");if(tr(be))return kt("WeakRef");if(rt(be))return Ot(zr(Number(be)));if(ot(be))return Ot(zr(_.call(be)));if(it(be))return Ot(G.call(be));if(jt(be))return Ot(zr(String(be)));if(!Te(be)&&!Ye(be)){var fn=Ue(be,zr),An=De?De(be)===Object.prototype:be instanceof Object||be.constructor===Object,Cn=be instanceof Object?"":"null prototype",Pn=!An&&ke&&Object(be)===be&&ke in be?j.call(Ct(be),8,-1):Cn?"Object":"",Sa=An||typeof be.constructor!="function"?"":be.constructor.name?be.constructor.name+" ":"",Wn=Sa+(Pn||Cn?"["+z.call(X.call([],Pn||[],Cn||[]),": ")+"] ":"");return fn.length===0?Wn+"{}":Hr?Wn+"{"+st(fn,Hr)+"}":Wn+"{ "+z.call(fn,", ")+" }"}return String(be)};function Oe(fe,be,Be){var Ve=(Be.quoteStyle||be)==="double"?'"':"'";return Ve+fe+Ve}function He(fe){return J.call(String(fe),/"/g,""")}function Pe(fe){return Ct(fe)==="[object Array]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function Te(fe){return Ct(fe)==="[object Date]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function Ye(fe){return Ct(fe)==="[object RegExp]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function at(fe){return Ct(fe)==="[object Error]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function jt(fe){return Ct(fe)==="[object String]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function rt(fe){return Ct(fe)==="[object Number]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function it(fe){return Ct(fe)==="[object Boolean]"&&(!ke||!(typeof fe=="object"&&ke in fe))}function Ft(fe){if(ye)return fe&&typeof fe=="object"&&fe instanceof Symbol;if(typeof fe=="symbol")return!0;if(!fe||typeof fe!="object"||!H)return!1;try{return H.call(fe),!0}catch(be){}return!1}function ot(fe){if(!fe||typeof fe!="object"||!_)return!1;try{return _.call(fe),!0}catch(be){}return!1}var or=Object.prototype.hasOwnProperty||function(fe){return fe in this};function Je(fe,be){return or.call(fe,be)}function Ct(fe){return N.call(fe)}function ze(fe){if(fe.name)return fe.name;var be=k.call(C.call(fe),/^function\s*([\w$]+)/);return be?be[1]:null}function Zr(fe,be){if(fe.indexOf)return fe.indexOf(be);for(var Be=0,Ve=fe.length;Be<Ve;Be++)if(fe[Be]===be)return Be;return-1}function Er(fe){if(!w||!fe||typeof fe!="object")return!1;try{w.call(fe);try{W.call(fe)}catch(be){return!0}return fe instanceof Map}catch(be){}return!1}function un(fe){if(!ue||!fe||typeof fe!="object")return!1;try{ue.call(fe,ue);try{ae.call(fe,ae)}catch(be){return!0}return fe instanceof WeakMap}catch(be){}return!1}function tr(fe){if(!P||!fe||typeof fe!="object")return!1;try{return P.call(fe),!0}catch(be){}return!1}function Or(fe){if(!W||!fe||typeof fe!="object")return!1;try{W.call(fe);try{w.call(fe)}catch(be){return!0}return fe instanceof Set}catch(be){}return!1}function _r(fe){if(!ae||!fe||typeof fe!="object")return!1;try{ae.call(fe,ae);try{ue.call(fe,ue)}catch(be){return!0}return fe instanceof WeakSet}catch(be){}return!1}function Ze(fe){return!fe||typeof fe!="object"?!1:typeof HTMLElement!="undefined"&&fe instanceof HTMLElement?!0:typeof fe.nodeName=="string"&&typeof fe.getAttribute=="function"}function gt(fe,be){if(fe.length>be.maxStringLength){var Be=fe.length-be.maxStringLength,Ve="... "+Be+" more character"+(Be>1?"s":"");return gt(j.call(fe,0,be.maxStringLength),be)+Ve}var lt=J.call(J.call(fe,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Lt);return Oe(lt,"single",be)}function Lt(fe){var be=fe.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[be];return Be?"\\"+Be:"\\x"+(be<16?"0":"")+K.call(be.toString(16))}function Ot(fe){return"Object("+fe+")"}function kt(fe){return fe+" { ? }"}function dt(fe,be,Be,Ve){var lt=Ve?st(Be,Ve):z.call(Be,", ");return fe+" ("+be+") {"+lt+"}"}function mt(fe){for(var be=0;be<fe.length;be++)if(Zr(fe[be],`
|
|
501
|
+
`)>=0)return!1;return!0}function Tt(fe,be){var Be;if(fe.indent===" ")Be=" ";else if(typeof fe.indent=="number"&&fe.indent>0)Be=z.call(Array(fe.indent+1)," ");else return null;return{base:Be,prev:z.call(Array(be+1),Be)}}function st(fe,be){if(fe.length===0)return"";var Be=`
|
|
502
|
+
`+be.prev+be.base;return Be+z.call(fe,","+Be)+`
|
|
503
|
+
`+be.prev}function Ue(fe,be){var Be=Pe(fe),Ve=[];if(Be){Ve.length=fe.length;for(var lt=0;lt<fe.length;lt++)Ve[lt]=Je(fe,lt)?be(fe[lt],fe):""}var vt=typeof Q=="function"?Q(fe):[],Mt;if(ye){Mt={};for(var pr=0;pr<vt.length;pr++)Mt["$"+vt[pr]]=vt[pr]}for(var Nt in fe)!Je(fe,Nt)||Be&&String(Number(Nt))===Nt&&Nt<fe.length||ye&&Mt["$"+Nt]instanceof Symbol||(re.call(/[^\w$]/,Nt)?Ve.push(be(Nt,fe)+": "+be(fe[Nt],fe)):Ve.push(Nt+": "+be(fe[Nt],fe)));if(typeof Q=="function")for(var Tr=0;Tr<vt.length;Tr++)je.call(fe,vt[Tr])&&Ve.push("["+be(vt[Tr])+"]: "+be(fe[vt[Tr]],fe));return Ve}},85527:h=>{"use strict";var O=String.prototype.replace,s=/%20/g,d={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:d.RFC3986,formatters:{RFC1738:function(x){return O.call(x,s,"+")},RFC3986:function(x){return String(x)}},RFC1738:d.RFC1738,RFC3986:d.RFC3986}},37794:(h,O,s)=>{"use strict";var d=s(66845),x=s(29166),w=s(85527);h.exports={formats:w,parse:x,stringify:d}},29166:(h,O,s)=>{"use strict";var d=s(12493),x=Object.prototype.hasOwnProperty,w=Array.isArray,A={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:d.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},E=function(Y){return Y.replace(/&#(\d+);/g,function(P,G){return String.fromCharCode(parseInt(G,10))})},F=function(Y,P){return Y&&typeof Y=="string"&&P.comma&&Y.indexOf(",")>-1?Y.split(","):Y},W="utf8=%26%2310003%3B",Z="utf8=%E2%9C%93",ee=function(P,G){var N={},C=G.ignoreQueryPrefix?P.replace(/^\?/,""):P,k=G.parameterLimit===1/0?void 0:G.parameterLimit,j=C.split(G.delimiter,k),J=-1,K,U=G.charset;if(G.charsetSentinel)for(K=0;K<j.length;++K)j[K].indexOf("utf8=")===0&&(j[K]===Z?U="utf-8":j[K]===W&&(U="iso-8859-1"),J=K,K=j.length);for(K=0;K<j.length;++K)if(K!==J){var re=j[K],X=re.indexOf("]="),z=X===-1?re.indexOf("="):X+1,ce,he;z===-1?(ce=G.decoder(re,A.decoder,U,"key"),he=G.strictNullHandling?null:""):(ce=G.decoder(re.slice(0,z),A.decoder,U,"key"),he=d.maybeMap(F(re.slice(z+1),G),function(_){return G.decoder(_,A.decoder,U,"value")})),he&&G.interpretNumericEntities&&U==="iso-8859-1"&&(he=E(he)),re.indexOf("[]=")>-1&&(he=w(he)?[he]:he),x.call(N,ce)?N[ce]=d.combine(N[ce],he):N[ce]=he}return N},ue=function(Y,P,G,N){for(var C=N?P:F(P,G),k=Y.length-1;k>=0;--k){var j,J=Y[k];if(J==="[]"&&G.parseArrays)j=[].concat(C);else{j=G.plainObjects?Object.create(null):{};var K=J.charAt(0)==="["&&J.charAt(J.length-1)==="]"?J.slice(1,-1):J,U=parseInt(K,10);!G.parseArrays&&K===""?j={0:C}:!isNaN(U)&&J!==K&&String(U)===K&&U>=0&&G.parseArrays&&U<=G.arrayLimit?(j=[],j[U]=C):K!=="__proto__"&&(j[K]=C)}C=j}return C},ne=function(P,G,N,C){if(!!P){var k=N.allowDots?P.replace(/\.([^.[]+)/g,"[$1]"):P,j=/(\[[^[\]]*])/,J=/(\[[^[\]]*])/g,K=N.depth>0&&j.exec(k),U=K?k.slice(0,K.index):k,re=[];if(U){if(!N.plainObjects&&x.call(Object.prototype,U)&&!N.allowPrototypes)return;re.push(U)}for(var X=0;N.depth>0&&(K=J.exec(k))!==null&&X<N.depth;){if(X+=1,!N.plainObjects&&x.call(Object.prototype,K[1].slice(1,-1))&&!N.allowPrototypes)return;re.push(K[1])}return K&&re.push("["+k.slice(K.index)+"]"),ue(re,G,N,C)}},ae=function(P){if(!P)return A;if(P.decoder!==null&&P.decoder!==void 0&&typeof P.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof P.charset!="undefined"&&P.charset!=="utf-8"&&P.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var G=typeof P.charset=="undefined"?A.charset:P.charset;return{allowDots:typeof P.allowDots=="undefined"?A.allowDots:!!P.allowDots,allowPrototypes:typeof P.allowPrototypes=="boolean"?P.allowPrototypes:A.allowPrototypes,allowSparse:typeof P.allowSparse=="boolean"?P.allowSparse:A.allowSparse,arrayLimit:typeof P.arrayLimit=="number"?P.arrayLimit:A.arrayLimit,charset:G,charsetSentinel:typeof P.charsetSentinel=="boolean"?P.charsetSentinel:A.charsetSentinel,comma:typeof P.comma=="boolean"?P.comma:A.comma,decoder:typeof P.decoder=="function"?P.decoder:A.decoder,delimiter:typeof P.delimiter=="string"||d.isRegExp(P.delimiter)?P.delimiter:A.delimiter,depth:typeof P.depth=="number"||P.depth===!1?+P.depth:A.depth,ignoreQueryPrefix:P.ignoreQueryPrefix===!0,interpretNumericEntities:typeof P.interpretNumericEntities=="boolean"?P.interpretNumericEntities:A.interpretNumericEntities,parameterLimit:typeof P.parameterLimit=="number"?P.parameterLimit:A.parameterLimit,parseArrays:P.parseArrays!==!1,plainObjects:typeof P.plainObjects=="boolean"?P.plainObjects:A.plainObjects,strictNullHandling:typeof P.strictNullHandling=="boolean"?P.strictNullHandling:A.strictNullHandling}};h.exports=function(Y,P){var G=ae(P);if(Y===""||Y===null||typeof Y=="undefined")return G.plainObjects?Object.create(null):{};for(var N=typeof Y=="string"?ee(Y,G):Y,C=G.plainObjects?Object.create(null):{},k=Object.keys(N),j=0;j<k.length;++j){var J=k[j],K=ne(J,N[J],G,typeof Y=="string");C=d.merge(C,K,G)}return G.allowSparse===!0?C:d.compact(C)}},66845:(h,O,s)=>{"use strict";var d=s(74294),x=s(12493),w=s(85527),A=Object.prototype.hasOwnProperty,E={brackets:function(k){return k+"[]"},comma:"comma",indices:function(k,j){return k+"["+j+"]"},repeat:function(k){return k}},F=Array.isArray,W=String.prototype.split,Z=Array.prototype.push,ee=function(C,k){Z.apply(C,F(k)?k:[k])},ue=Date.prototype.toISOString,ne=w.default,ae={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:x.encode,encodeValuesOnly:!1,format:ne,formatter:w.formatters[ne],indices:!1,serializeDate:function(k){return ue.call(k)},skipNulls:!1,strictNullHandling:!1},Y=function(k){return typeof k=="string"||typeof k=="number"||typeof k=="boolean"||typeof k=="symbol"||typeof k=="bigint"},P={},G=function C(k,j,J,K,U,re,X,z,ce,he,_,Q,H,ye,ke){for(var je=k,De=ke,nt=0,tt=!1;(De=De.get(P))!==void 0&&!tt;){var bt=De.get(k);if(nt+=1,typeof bt!="undefined"){if(bt===nt)throw new RangeError("Cyclic object value");tt=!0}typeof De.get(P)=="undefined"&&(nt=0)}if(typeof X=="function"?je=X(j,je):je instanceof Date?je=he(je):J==="comma"&&F(je)&&(je=x.maybeMap(je,function(or){return or instanceof Date?he(or):or})),je===null){if(K)return re&&!H?re(j,ae.encoder,ye,"key",_):j;je=""}if(Y(je)||x.isBuffer(je)){if(re){var Ne=H?j:re(j,ae.encoder,ye,"key",_);if(J==="comma"&&H){for(var Oe=W.call(String(je),","),He="",Pe=0;Pe<Oe.length;++Pe)He+=(Pe===0?"":",")+Q(re(Oe[Pe],ae.encoder,ye,"value",_));return[Q(Ne)+"="+He]}return[Q(Ne)+"="+Q(re(je,ae.encoder,ye,"value",_))]}return[Q(j)+"="+Q(String(je))]}var Te=[];if(typeof je=="undefined")return Te;var Ye;if(J==="comma"&&F(je))Ye=[{value:je.length>0?je.join(",")||null:void 0}];else if(F(X))Ye=X;else{var at=Object.keys(je);Ye=z?at.sort(z):at}for(var jt=0;jt<Ye.length;++jt){var rt=Ye[jt],it=typeof rt=="object"&&typeof rt.value!="undefined"?rt.value:je[rt];if(!(U&&it===null)){var Ft=F(je)?typeof J=="function"?J(j,rt):j:j+(ce?"."+rt:"["+rt+"]");ke.set(k,nt);var ot=d();ot.set(P,ke),ee(Te,C(it,Ft,J,K,U,re,X,z,ce,he,_,Q,H,ye,ot))}}return Te},N=function(k){if(!k)return ae;if(k.encoder!==null&&typeof k.encoder!="undefined"&&typeof k.encoder!="function")throw new TypeError("Encoder has to be a function.");var j=k.charset||ae.charset;if(typeof k.charset!="undefined"&&k.charset!=="utf-8"&&k.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var J=w.default;if(typeof k.format!="undefined"){if(!A.call(w.formatters,k.format))throw new TypeError("Unknown format option provided.");J=k.format}var K=w.formatters[J],U=ae.filter;return(typeof k.filter=="function"||F(k.filter))&&(U=k.filter),{addQueryPrefix:typeof k.addQueryPrefix=="boolean"?k.addQueryPrefix:ae.addQueryPrefix,allowDots:typeof k.allowDots=="undefined"?ae.allowDots:!!k.allowDots,charset:j,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:ae.charsetSentinel,delimiter:typeof k.delimiter=="undefined"?ae.delimiter:k.delimiter,encode:typeof k.encode=="boolean"?k.encode:ae.encode,encoder:typeof k.encoder=="function"?k.encoder:ae.encoder,encodeValuesOnly:typeof k.encodeValuesOnly=="boolean"?k.encodeValuesOnly:ae.encodeValuesOnly,filter:U,format:J,formatter:K,serializeDate:typeof k.serializeDate=="function"?k.serializeDate:ae.serializeDate,skipNulls:typeof k.skipNulls=="boolean"?k.skipNulls:ae.skipNulls,sort:typeof k.sort=="function"?k.sort:null,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:ae.strictNullHandling}};h.exports=function(C,k){var j=C,J=N(k),K,U;typeof J.filter=="function"?(U=J.filter,j=U("",j)):F(J.filter)&&(U=J.filter,K=U);var re=[];if(typeof j!="object"||j===null)return"";var X;k&&k.arrayFormat in E?X=k.arrayFormat:k&&"indices"in k?X=k.indices?"indices":"repeat":X="indices";var z=E[X];K||(K=Object.keys(j)),J.sort&&K.sort(J.sort);for(var ce=d(),he=0;he<K.length;++he){var _=K[he];J.skipNulls&&j[_]===null||ee(re,G(j[_],_,z,J.strictNullHandling,J.skipNulls,J.encode?J.encoder:null,J.filter,J.sort,J.allowDots,J.serializeDate,J.format,J.formatter,J.encodeValuesOnly,J.charset,ce))}var Q=re.join(J.delimiter),H=J.addQueryPrefix===!0?"?":"";return J.charsetSentinel&&(J.charset==="iso-8859-1"?H+="utf8=%26%2310003%3B&":H+="utf8=%E2%9C%93&"),Q.length>0?H+Q:""}},12493:(h,O,s)=>{"use strict";var d=s(85527),x=Object.prototype.hasOwnProperty,w=Array.isArray,A=function(){for(var N=[],C=0;C<256;++C)N.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return N}(),E=function(C){for(;C.length>1;){var k=C.pop(),j=k.obj[k.prop];if(w(j)){for(var J=[],K=0;K<j.length;++K)typeof j[K]!="undefined"&&J.push(j[K]);k.obj[k.prop]=J}}},F=function(C,k){for(var j=k&&k.plainObjects?Object.create(null):{},J=0;J<C.length;++J)typeof C[J]!="undefined"&&(j[J]=C[J]);return j},W=function N(C,k,j){if(!k)return C;if(typeof k!="object"){if(w(C))C.push(k);else if(C&&typeof C=="object")(j&&(j.plainObjects||j.allowPrototypes)||!x.call(Object.prototype,k))&&(C[k]=!0);else return[C,k];return C}if(!C||typeof C!="object")return[C].concat(k);var J=C;return w(C)&&!w(k)&&(J=F(C,j)),w(C)&&w(k)?(k.forEach(function(K,U){if(x.call(C,U)){var re=C[U];re&&typeof re=="object"&&K&&typeof K=="object"?C[U]=N(re,K,j):C.push(K)}else C[U]=K}),C):Object.keys(k).reduce(function(K,U){var re=k[U];return x.call(K,U)?K[U]=N(K[U],re,j):K[U]=re,K},J)},Z=function(C,k){return Object.keys(k).reduce(function(j,J){return j[J]=k[J],j},C)},ee=function(N,C,k){var j=N.replace(/\+/g," ");if(k==="iso-8859-1")return j.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(j)}catch(J){return j}},ue=function(C,k,j,J,K){if(C.length===0)return C;var U=C;if(typeof C=="symbol"?U=Symbol.prototype.toString.call(C):typeof C!="string"&&(U=String(C)),j==="iso-8859-1")return escape(U).replace(/%u[0-9a-f]{4}/gi,function(ce){return"%26%23"+parseInt(ce.slice(2),16)+"%3B"});for(var re="",X=0;X<U.length;++X){var z=U.charCodeAt(X);if(z===45||z===46||z===95||z===126||z>=48&&z<=57||z>=65&&z<=90||z>=97&&z<=122||K===d.RFC1738&&(z===40||z===41)){re+=U.charAt(X);continue}if(z<128){re=re+A[z];continue}if(z<2048){re=re+(A[192|z>>6]+A[128|z&63]);continue}if(z<55296||z>=57344){re=re+(A[224|z>>12]+A[128|z>>6&63]+A[128|z&63]);continue}X+=1,z=65536+((z&1023)<<10|U.charCodeAt(X)&1023),re+=A[240|z>>18]+A[128|z>>12&63]+A[128|z>>6&63]+A[128|z&63]}return re},ne=function(C){for(var k=[{obj:{o:C},prop:"o"}],j=[],J=0;J<k.length;++J)for(var K=k[J],U=K.obj[K.prop],re=Object.keys(U),X=0;X<re.length;++X){var z=re[X],ce=U[z];typeof ce=="object"&&ce!==null&&j.indexOf(ce)===-1&&(k.push({obj:U,prop:z}),j.push(ce))}return E(k),C},ae=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},Y=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},P=function(C,k){return[].concat(C,k)},G=function(C,k){if(w(C)){for(var j=[],J=0;J<C.length;J+=1)j.push(k(C[J]));return j}return k(C)};h.exports={arrayToObject:F,assign:Z,combine:P,compact:ne,decode:ee,encode:ue,isBuffer:Y,isRegExp:ae,maybeMap:G,merge:W}},63277:(h,O,s)=>{"use strict";var d;function x(){return x=Object.assign||function(ae){for(var Y=1;Y<arguments.length;Y++){var P=arguments[Y];for(var G in P)Object.prototype.hasOwnProperty.call(P,G)&&(ae[G]=P[G])}return ae},x.apply(this,arguments)}function w(ae){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(P){return typeof P}:w=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},w(ae)}var A=function(){var ae=function(P,G){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,C){N.__proto__=C}||function(N,C){for(var k in C)C.hasOwnProperty(k)&&(N[k]=C[k])},ae(P,G)};return function(Y,P){ae(Y,P);function G(){this.constructor=Y}Y.prototype=P===null?Object.create(P):(G.prototype=P.prototype,new G)}}();d={value:!0},d=O.fk=void 0;var E=s(2784),F=typeof navigator=="undefined"||s.g.PREVENT_CODEMIRROR_RENDER===!0,W;F||(W=s(23326));var Z=function(){function ae(){}return ae.equals=function(Y,P){var G=this,N=Object.keys,C=w(Y),k=w(P);return Y&&P&&C==="object"&&C===k?N(Y).length===N(P).length&&N(Y).every(function(j){return G.equals(Y[j],P[j])}):Y===P},ae}(),ee=function(){function ae(Y,P){this.editor=Y,this.props=P}return ae.prototype.delegateCursor=function(Y,P,G){var N=this.editor.getDoc();G&&this.editor.focus(),P?N.setCursor(Y):N.setCursor(Y,null,{scroll:!1})},ae.prototype.delegateScroll=function(Y){this.editor.scrollTo(Y.x,Y.y)},ae.prototype.delegateSelection=function(Y,P){var G=this.editor.getDoc();G.setSelections(Y),P&&this.editor.focus()},ae.prototype.apply=function(Y){Y&&Y.selection&&Y.selection.ranges&&this.delegateSelection(Y.selection.ranges,Y.selection.focus||!1),Y&&Y.cursor&&this.delegateCursor(Y.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1),Y&&Y.scroll&&this.delegateScroll(Y.scroll)},ae.prototype.applyNext=function(Y,P,G){Y&&Y.selection&&Y.selection.ranges&&P&&P.selection&&P.selection.ranges&&!Z.equals(Y.selection.ranges,P.selection.ranges)&&this.delegateSelection(P.selection.ranges,P.selection.focus||!1),Y&&Y.cursor&&P&&P.cursor&&!Z.equals(Y.cursor,P.cursor)&&this.delegateCursor(G.cursor||P.cursor,P.autoScroll||!1,P.autoCursor||!1),Y&&Y.scroll&&P&&P.scroll&&!Z.equals(Y.scroll,P.scroll)&&this.delegateScroll(P.scroll)},ae.prototype.applyUserDefined=function(Y,P){P&&P.cursor&&this.delegateCursor(P.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1)},ae.prototype.wire=function(Y){var P=this;Object.keys(Y||{}).filter(function(G){return/^on/.test(G)}).forEach(function(G){switch(G){case"onBlur":P.editor.on("blur",function(N,C){P.props.onBlur(P.editor,C)});break;case"onContextMenu":{P.editor.on("contextmenu",function(N,C){P.props.onContextMenu(P.editor,C)});break}case"onCopy":{P.editor.on("copy",function(N,C){P.props.onCopy(P.editor,C)});break}case"onCursor":P.editor.on("cursorActivity",function(N){P.props.onCursor(P.editor,P.editor.getDoc().getCursor())});break;case"onCursorActivity":P.editor.on("cursorActivity",function(N){P.props.onCursorActivity(P.editor)});break;case"onCut":{P.editor.on("cut",function(N,C){P.props.onCut(P.editor,C)});break}case"onDblClick":{P.editor.on("dblclick",function(N,C){P.props.onDblClick(P.editor,C)});break}case"onDragEnter":P.editor.on("dragenter",function(N,C){P.props.onDragEnter(P.editor,C)});break;case"onDragLeave":{P.editor.on("dragleave",function(N,C){P.props.onDragLeave(P.editor,C)});break}case"onDragOver":P.editor.on("dragover",function(N,C){P.props.onDragOver(P.editor,C)});break;case"onDragStart":{P.editor.on("dragstart",function(N,C){P.props.onDragStart(P.editor,C)});break}case"onDrop":P.editor.on("drop",function(N,C){P.props.onDrop(P.editor,C)});break;case"onFocus":P.editor.on("focus",function(N,C){P.props.onFocus(P.editor,C)});break;case"onGutterClick":P.editor.on("gutterClick",function(N,C,k,j){P.props.onGutterClick(P.editor,C,k,j)});break;case"onInputRead":P.editor.on("inputRead",function(N,C){P.props.onInputRead(P.editor,C)});break;case"onKeyDown":P.editor.on("keydown",function(N,C){P.props.onKeyDown(P.editor,C)});break;case"onKeyHandled":P.editor.on("keyHandled",function(N,C,k){P.props.onKeyHandled(P.editor,C,k)});break;case"onKeyPress":P.editor.on("keypress",function(N,C){P.props.onKeyPress(P.editor,C)});break;case"onKeyUp":P.editor.on("keyup",function(N,C){P.props.onKeyUp(P.editor,C)});break;case"onMouseDown":{P.editor.on("mousedown",function(N,C){P.props.onMouseDown(P.editor,C)});break}case"onPaste":{P.editor.on("paste",function(N,C){P.props.onPaste(P.editor,C)});break}case"onRenderLine":{P.editor.on("renderLine",function(N,C,k){P.props.onRenderLine(P.editor,C,k)});break}case"onScroll":P.editor.on("scroll",function(N){P.props.onScroll(P.editor,P.editor.getScrollInfo())});break;case"onSelection":P.editor.on("beforeSelectionChange",function(N,C){P.props.onSelection(P.editor,C)});break;case"onTouchStart":{P.editor.on("touchstart",function(N,C){P.props.onTouchStart(P.editor,C)});break}case"onUpdate":P.editor.on("update",function(N){P.props.onUpdate(P.editor)});break;case"onViewportChange":P.editor.on("viewportChange",function(N,C,k){P.props.onViewportChange(P.editor,C,k)});break}})},ae}(),ue=function(ae){A(Y,ae);function Y(P){var G=ae.call(this,P)||this;return F||(G.applied=!1,G.appliedNext=!1,G.appliedUserDefined=!1,G.deferred=null,G.emulating=!1,G.hydrated=!1,G.initCb=function(){G.props.editorDidConfigure&&G.props.editorDidConfigure(G.editor)},G.mounted=!1),G}return Y.prototype.hydrate=function(P){var G=this,N=P&&P.options?P.options:{},C=x({},W.defaults,this.editor.options,N),k=Object.keys(C).some(function(j){return G.editor.getOption(j)!==C[j]});k&&Object.keys(C).forEach(function(j){N.hasOwnProperty(j)&&G.editor.getOption(j)!==C[j]&&(G.editor.setOption(j,C[j]),G.mirror.setOption(j,C[j]))}),this.hydrated||(this.deferred?this.resolveChange(P.value):this.initChange(P.value||"")),this.hydrated=!0},Y.prototype.initChange=function(P){this.emulating=!0;var G=this.editor.getDoc(),N=G.lastLine(),C=G.getLine(G.lastLine()).length;G.replaceRange(P||"",{line:0,ch:0},{line:N,ch:C}),this.mirror.setValue(P),G.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},Y.prototype.resolveChange=function(P){this.emulating=!0;var G=this.editor.getDoc();if(this.deferred.origin==="undo"?G.undo():this.deferred.origin==="redo"?G.redo():G.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),P&&P!==G.getValue()){var N=G.getCursor();G.setValue(P),G.setCursor(N)}this.emulating=!1,this.deferred=null},Y.prototype.mirrorChange=function(P){var G=this.editor.getDoc();return P.origin==="undo"?(G.setHistory(this.mirror.getHistory()),this.mirror.undo()):P.origin==="redo"?(G.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(P.text,P.from,P.to,P.origin),this.mirror.getValue()},Y.prototype.componentDidMount=function(){var P=this;F||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&W.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=W(this.ref,this.props.options),this.shared=new ee(this.editor,this.props),this.mirror=W(function(){},this.props.options),this.editor.on("electricInput",function(){P.mirror.setHistory(P.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){P.mirror.setCursor(P.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(G,N){if(!P.emulating){N.cancel(),P.deferred=N;var C=P.mirrorChange(P.deferred);P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,P.deferred,C)}}),this.editor.on("change",function(G,N){!P.mounted||P.props.onChange&&P.props.onChange(P.editor,N,P.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},Y.prototype.componentDidUpdate=function(P){if(!F){var G={cursor:null};this.props.value!==P.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(G.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(P,this.props,G),this.appliedNext=!0),this.shared.applyUserDefined(P,G),this.appliedUserDefined=!0}},Y.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(W)},Y.prototype.shouldComponentUpdate=function(P,G){return!F},Y.prototype.render=function(){var P=this;if(F)return null;var G=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return E.createElement("div",{className:G,ref:function(C){return P.ref=C}})},Y}(E.Component);O.fk=ue;var ne=function(ae){A(Y,ae);function Y(P){var G=ae.call(this,P)||this;return F||(G.applied=!1,G.appliedUserDefined=!1,G.continueChange=!1,G.detached=!1,G.hydrated=!1,G.initCb=function(){G.props.editorDidConfigure&&G.props.editorDidConfigure(G.editor)},G.mounted=!1,G.onBeforeChangeCb=function(){G.continueChange=!0}),G}return Y.prototype.hydrate=function(P){var G=this,N=P&&P.options?P.options:{},C=x({},W.defaults,this.editor.options,N),k=Object.keys(C).some(function(U){return G.editor.getOption(U)!==C[U]});if(k&&Object.keys(C).forEach(function(U){N.hasOwnProperty(U)&&G.editor.getOption(U)!==C[U]&&G.editor.setOption(U,C[U])}),!this.hydrated){var j=this.editor.getDoc(),J=j.lastLine(),K=j.getLine(j.lastLine()).length;j.replaceRange(P.value||"",{line:0,ch:0},{line:J,ch:K})}this.hydrated=!0},Y.prototype.componentDidMount=function(){var P=this;F||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&W.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=W(this.ref,this.props.options),this.shared=new ee(this.editor,this.props),this.editor.on("beforeChange",function(G,N){P.props.onBeforeChange&&P.props.onBeforeChange(P.editor,N,P.editor.getValue(),P.onBeforeChangeCb)}),this.editor.on("change",function(G,N){!P.mounted||!P.props.onChange||(P.props.onBeforeChange?P.continueChange&&P.props.onChange(P.editor,N,P.editor.getValue()):P.props.onChange(P.editor,N,P.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},Y.prototype.componentDidUpdate=function(P){if(this.detached&&this.props.detach===!1&&(this.detached=!1,P.editorDidAttach&&P.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,P.editorDidDetach&&P.editorDidDetach(this.editor)),!(F||this.detached)){var G={cursor:null};this.props.value!==P.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!P.autoCursor&&P.autoCursor!==void 0&&(G.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(P),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(P,G),this.appliedUserDefined=!0)}},Y.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(W)},Y.prototype.shouldComponentUpdate=function(P,G){var N=!0;return F&&(N=!1),this.detached&&P.detach&&(N=!1),N},Y.prototype.render=function(){var P=this;if(F)return null;var G=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return E.createElement("div",{className:G,ref:function(C){return P.ref=C}})},Y}(E.Component);d=ne},74294:(h,O,s)=>{"use strict";var d=s(67286),x=s(62680),w=s(99500),A=d("%TypeError%"),E=d("%WeakMap%",!0),F=d("%Map%",!0),W=x("WeakMap.prototype.get",!0),Z=x("WeakMap.prototype.set",!0),ee=x("WeakMap.prototype.has",!0),ue=x("Map.prototype.get",!0),ne=x("Map.prototype.set",!0),ae=x("Map.prototype.has",!0),Y=function(C,k){for(var j=C,J;(J=j.next)!==null;j=J)if(J.key===k)return j.next=J.next,J.next=C.next,C.next=J,J},P=function(C,k){var j=Y(C,k);return j&&j.value},G=function(C,k,j){var J=Y(C,k);J?J.value=j:C.next={key:k,next:C.next,value:j}},N=function(C,k){return!!Y(C,k)};h.exports=function(){var k,j,J,K={assert:function(U){if(!K.has(U))throw new A("Side channel does not contain "+w(U))},get:function(U){if(E&&U&&(typeof U=="object"||typeof U=="function")){if(k)return W(k,U)}else if(F){if(j)return ue(j,U)}else if(J)return P(J,U)},has:function(U){if(E&&U&&(typeof U=="object"||typeof U=="function")){if(k)return ee(k,U)}else if(F){if(j)return ae(j,U)}else if(J)return N(J,U);return!1},set:function(U,re){E&&U&&(typeof U=="object"||typeof U=="function")?(k||(k=new E),Z(k,U,re)):F?(j||(j=new F),ne(j,U,re)):(J||(J={key:{},next:null}),G(J,U,re))}};return K}},56855:h=>{var O=h.exports=function(P){return new s(P)};function s(P){this.value=P}s.prototype.get=function(P){for(var G=this.value,N=0;N<P.length;N++){var C=P[N];if(!G||!Y.call(G,C)){G=void 0;break}G=G[C]}return G},s.prototype.has=function(P){for(var G=this.value,N=0;N<P.length;N++){var C=P[N];if(!G||!Y.call(G,C))return!1;G=G[C]}return!0},s.prototype.set=function(P,G){for(var N=this.value,C=0;C<P.length-1;C++){var k=P[C];Y.call(N,k)||(N[k]={}),N=N[k]}return N[P[C]]=G,G},s.prototype.map=function(P){return d(this.value,P,!0)},s.prototype.forEach=function(P){return this.value=d(this.value,P,!1),this.value},s.prototype.reduce=function(P,G){var N=arguments.length===1,C=N?this.value:G;return this.forEach(function(k){(!this.isRoot||!N)&&(C=P.call(this,C,k))}),C},s.prototype.paths=function(){var P=[];return this.forEach(function(G){P.push(this.path)}),P},s.prototype.nodes=function(){var P=[];return this.forEach(function(G){P.push(this.node)}),P},s.prototype.clone=function(){var P=[],G=[];return function N(C){for(var k=0;k<P.length;k++)if(P[k]===C)return G[k];if(typeof C=="object"&&C!==null){var j=x(C);return P.push(C),G.push(j),ae(w(C),function(J){j[J]=N(C[J])}),P.pop(),G.pop(),j}else return C}(this.value)};function d(P,G,N){var C=[],k=[],j=!0;return function J(K){var U=N?x(K):K,re={},X=!0,z={node:U,node_:K,path:[].concat(C),parent:k[k.length-1],parents:k,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(_,Q){z.isRoot||(z.parent.node[z.key]=_),z.node=_,Q&&(X=!1)},delete:function(_){delete z.parent.node[z.key],_&&(X=!1)},remove:function(_){ne(z.parent.node)?z.parent.node.splice(z.key,1):delete z.parent.node[z.key],_&&(X=!1)},keys:null,before:function(_){re.before=_},after:function(_){re.after=_},pre:function(_){re.pre=_},post:function(_){re.post=_},stop:function(){j=!1},block:function(){X=!1}};if(!j)return z;function ce(){if(typeof z.node=="object"&&z.node!==null){(!z.keys||z.node_!==z.node)&&(z.keys=w(z.node)),z.isLeaf=z.keys.length==0;for(var _=0;_<k.length;_++)if(k[_].node_===K){z.circular=k[_];break}}else z.isLeaf=!0,z.keys=null;z.notLeaf=!z.isLeaf,z.notRoot=!z.isRoot}ce();var he=G.call(z,z.node);return he!==void 0&&z.update&&z.update(he),re.before&&re.before.call(z,z.node),X&&(typeof z.node=="object"&&z.node!==null&&!z.circular&&(k.push(z),ce(),ae(z.keys,function(_,Q){C.push(_),re.pre&&re.pre.call(z,z.node[_],_);var H=J(z.node[_]);N&&Y.call(z.node,_)&&(z.node[_]=H.node),H.isLast=Q==z.keys.length-1,H.isFirst=Q==0,re.post&&re.post.call(z,H),C.pop()}),k.pop()),re.after&&re.after.call(z,z.node)),z}(P).node}function x(P){if(typeof P=="object"&&P!==null){var G;if(ne(P))G=[];else if(E(P))G=new Date(P.getTime?P.getTime():P);else if(F(P))G=new RegExp(P);else if(W(P))G={message:P.message};else if(Z(P))G=new Boolean(P);else if(ee(P))G=new Number(P);else if(ue(P))G=new String(P);else if(Object.create&&Object.getPrototypeOf)G=Object.create(Object.getPrototypeOf(P));else if(P.constructor===Object)G={};else{var N=P.constructor&&P.constructor.prototype||P.__proto__||{},C=function(){};C.prototype=N,G=new C}return ae(w(P),function(k){G[k]=P[k]}),G}else return P}var w=Object.keys||function(G){var N=[];for(var C in G)N.push(C);return N};function A(P){return Object.prototype.toString.call(P)}function E(P){return A(P)==="[object Date]"}function F(P){return A(P)==="[object RegExp]"}function W(P){return A(P)==="[object Error]"}function Z(P){return A(P)==="[object Boolean]"}function ee(P){return A(P)==="[object Number]"}function ue(P){return A(P)==="[object String]"}var ne=Array.isArray||function(G){return Object.prototype.toString.call(G)==="[object Array]"},ae=function(P,G){if(P.forEach)return P.forEach(G);for(var N=0;N<P.length;N++)G(P[N],N,P)};ae(w(s.prototype),function(P){O[P]=function(G){var N=[].slice.call(arguments,1),C=new s(G);return C[P].apply(C,N)}});var Y=Object.hasOwnProperty||function(P,G){return G in P}},84591:(h,O,s)=>{"use strict";s.r(O),s.d(O,{default:()=>F});var d=s(8081),x=s.n(d),w=s(23645),A=s.n(w),E=A()(x());E.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto;box-sizing:border-box}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
|
|
504
|
+
`,""]);const F=E},51232:(h,O,s)=>{"use strict";s.r(O),s.d(O,{default:()=>k});var d=s(8081),x=s.n(d),w=s(23645),A=s.n(w),E=s(61667),F=s.n(E),W=new URL(s(17735),s.b),Z=new URL(s(56089),s.b),ee=new URL(s(46050),s.b),ue=new URL(s(71090),s.b),ne=new URL(s(96192),s.b),ae=A()(x()),Y=F()(W),P=F()(Z),G=F()(ee),N=F()(ue),C=F()(ne);ae.push([h.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+Y+")}.CodeMirror-lint-mark-error{background-image:url("+P+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+G+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+N+")}.CodeMirror-lint-marker-multiple{background-image:url("+C+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
|
|
505
|
+
`,""]);const k=ae},66072:(h,O,s)=>{"use strict";s.r(O),s.d(O,{default:()=>F});var d=s(8081),x=s.n(d),w=s(23645),A=s.n(w),E=A()(x());E.push([h.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
|
|
506
|
+
`,""]);const F=E},16887:(h,O,s)=>{"use strict";s.r(O),s.d(O,{default:()=>F});var d=s(8081),x=s.n(d),w=s(23645),A=s.n(w),E=A()(x());E.push([h.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
|
507
|
+
`,""]);const F=E},61667:h=>{"use strict";h.exports=function(O,s){return s||(s={}),O&&(O=String(O.__esModule?O.default:O),/^['"].*['"]$/.test(O)&&(O=O.slice(1,-1)),s.hash&&(O+=s.hash),/["'() \t\n]|(%20)/.test(O)||s.needQuotes?'"'.concat(O.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):O)}},53513:(h,O,s)=>{var d=s(93379),x=s(84591);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},6364:(h,O,s)=>{var d=s(93379),x=s(51232);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},46830:(h,O,s)=>{var d=s(93379),x=s(66072);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},59176:(h,O,s)=>{var d=s(93379),x=s(16887);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var A=d(x,w);h.exports=x.locals||{}},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},53260:()=>{},48621:(h,O,s)=>{h.exports=s(53822)},40192:(h,O,s)=>{h.exports=s(44877)},42126:(h,O,s)=>{h.exports=s(10140)},40453:(h,O,s)=>{h.exports=s(55603)},35784:(h,O,s)=>{h.exports=s(76237)},82985:(h,O,s)=>{h.exports=s(56515)},14903:(h,O,s)=>{h.exports=s(20057)},71488:(h,O,s)=>{h.exports=s(24741)},93963:(h,O,s)=>{h.exports=s(8368)},51661:(h,O,s)=>{h.exports=s(342)},85337:(h,O,s)=>{h.exports=s(392)},45932:(h,O,s)=>{h.exports=s(28478)},31175:(h,O,s)=>{h.exports=s(58202)},2921:(h,O,s)=>{h.exports=s(45636)},22583:(h,O,s)=>{h.exports=s(46618)},8304:(h,O,s)=>{h.exports=s(72946)},36394:(h,O,s)=>{h.exports=s(11235)},50557:(h,O,s)=>{h.exports=s(62813)},72010:(h,O,s)=>{h.exports=s(68664)},5490:(h,O,s)=>{h.exports=s(21457)},1858:(h,O,s)=>{h.exports=s(36516)},84870:(h,O,s)=>{h.exports=s(87611)},48145:(h,O,s)=>{h.exports=s(4161)},26405:(h,O,s)=>{h.exports=s(75159)},9600:(h,O,s)=>{h.exports=s(87708)},72383:(h,O,s)=>{h.exports=s(42937)},8626:(h,O,s)=>{h.exports=s(69297)},45055:(h,O,s)=>{h.exports=s(10353)},49800:(h,O,s)=>{h.exports=s(8026)},79494:(h,O,s)=>{h.exports=s(67362)},11807:(h,O,s)=>{h.exports=s(57532)},24463:(h,O,s)=>{h.exports=s(61903)},21889:(h,O,s)=>{h.exports=s(42044)},25575:(h,O,s)=>{h.exports=s(60902)},68861:(h,O,s)=>{h.exports=s(2214)},64772:(h,O,s)=>{h.exports=s(983)},57829:(h,O,s)=>{h.exports=s(59256)},92876:(h,O,s)=>{h.exports=s(95659)},18730:(h,O,s)=>{var d=s(69696).default,x=s(57829),w=s(49800),A=s(8626),E=s(21889),F=s(48145),W=s(68861),Z=s(64772),ee=s(9600),ue=s(72383);function ne(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h.exports=ne=function(){return ae},h.exports.__esModule=!0,h.exports.default=h.exports;var ae={},Y=Object.prototype,P=Y.hasOwnProperty,G=typeof x=="function"?x:{},N=G.iterator||"@@iterator",C=G.asyncIterator||"@@asyncIterator",k=G.toStringTag||"@@toStringTag";function j(Ne,Oe,He){return w(Ne,Oe,{value:He,enumerable:!0,configurable:!0,writable:!0}),Ne[Oe]}try{j({},"")}catch(Ne){j=function(He,Pe,Te){return He[Pe]=Te}}function J(Ne,Oe,He,Pe){var Te=Oe&&Oe.prototype instanceof re?Oe:re,Ye=A(Te.prototype),at=new nt(Pe||[]);return Ye._invoke=function(jt,rt,it){var Ft="suspendedStart";return function(ot,or){if(Ft==="executing")throw new Error("Generator is already running");if(Ft==="completed"){if(ot==="throw")throw or;return bt()}for(it.method=ot,it.arg=or;;){var Je=it.delegate;if(Je){var Ct=ke(Je,it);if(Ct){if(Ct===U)continue;return Ct}}if(it.method==="next")it.sent=it._sent=it.arg;else if(it.method==="throw"){if(Ft==="suspendedStart")throw Ft="completed",it.arg;it.dispatchException(it.arg)}else it.method==="return"&&it.abrupt("return",it.arg);Ft="executing";var ze=K(jt,rt,it);if(ze.type==="normal"){if(Ft=it.done?"completed":"suspendedYield",ze.arg===U)continue;return{value:ze.arg,done:it.done}}ze.type==="throw"&&(Ft="completed",it.method="throw",it.arg=ze.arg)}}}(Ne,He,at),Ye}function K(Ne,Oe,He){try{return{type:"normal",arg:Ne.call(Oe,He)}}catch(Pe){return{type:"throw",arg:Pe}}}ae.wrap=J;var U={};function re(){}function X(){}function z(){}var ce={};j(ce,N,function(){return this});var he=E,_=he&&he(he(tt([])));_&&_!==Y&&P.call(_,N)&&(ce=_);var Q=z.prototype=re.prototype=A(ce);function H(Ne){var Oe;F(Oe=["next","throw","return"]).call(Oe,function(He){j(Ne,He,function(Pe){return this._invoke(He,Pe)})})}function ye(Ne,Oe){function He(Te,Ye,at,jt){var rt=K(Ne[Te],Ne,Ye);if(rt.type!=="throw"){var it=rt.arg,Ft=it.value;return Ft&&d(Ft)=="object"&&P.call(Ft,"__await")?Oe.resolve(Ft.__await).then(function(ot){He("next",ot,at,jt)},function(ot){He("throw",ot,at,jt)}):Oe.resolve(Ft).then(function(ot){it.value=ot,at(it)},function(ot){return He("throw",ot,at,jt)})}jt(rt.arg)}var Pe;this._invoke=function(Te,Ye){function at(){return new Oe(function(jt,rt){He(Te,Ye,jt,rt)})}return Pe=Pe?Pe.then(at,at):at()}}function ke(Ne,Oe){var He=Ne.iterator[Oe.method];if(He===void 0){if(Oe.delegate=null,Oe.method==="throw"){if(Ne.iterator.return&&(Oe.method="return",Oe.arg=void 0,ke(Ne,Oe),Oe.method==="throw"))return U;Oe.method="throw",Oe.arg=new TypeError("The iterator does not provide a 'throw' method")}return U}var Pe=K(He,Ne.iterator,Oe.arg);if(Pe.type==="throw")return Oe.method="throw",Oe.arg=Pe.arg,Oe.delegate=null,U;var Te=Pe.arg;return Te?Te.done?(Oe[Ne.resultName]=Te.value,Oe.next=Ne.nextLoc,Oe.method!=="return"&&(Oe.method="next",Oe.arg=void 0),Oe.delegate=null,U):Te:(Oe.method="throw",Oe.arg=new TypeError("iterator result is not an object"),Oe.delegate=null,U)}function je(Ne){var Oe={tryLoc:Ne[0]};1 in Ne&&(Oe.catchLoc=Ne[1]),2 in Ne&&(Oe.finallyLoc=Ne[2],Oe.afterLoc=Ne[3]),this.tryEntries.push(Oe)}function De(Ne){var Oe=Ne.completion||{};Oe.type="normal",delete Oe.arg,Ne.completion=Oe}function nt(Ne){this.tryEntries=[{tryLoc:"root"}],F(Ne).call(Ne,je,this),this.reset(!0)}function tt(Ne){if(Ne){var Oe=Ne[N];if(Oe)return Oe.call(Ne);if(typeof Ne.next=="function")return Ne;if(!isNaN(Ne.length)){var He=-1,Pe=function Te(){for(;++He<Ne.length;)if(P.call(Ne,He))return Te.value=Ne[He],Te.done=!1,Te;return Te.value=void 0,Te.done=!0,Te};return Pe.next=Pe}}return{next:bt}}function bt(){return{value:void 0,done:!0}}return X.prototype=z,j(Q,"constructor",z),j(z,"constructor",X),X.displayName=j(z,k,"GeneratorFunction"),ae.isGeneratorFunction=function(Ne){var Oe=typeof Ne=="function"&&Ne.constructor;return!!Oe&&(Oe===X||(Oe.displayName||Oe.name)==="GeneratorFunction")},ae.mark=function(Ne){return W?W(Ne,z):(Ne.__proto__=z,j(Ne,k,"GeneratorFunction")),Ne.prototype=A(Q),Ne},ae.awrap=function(Ne){return{__await:Ne}},H(ye.prototype),j(ye.prototype,C,function(){return this}),ae.AsyncIterator=ye,ae.async=function(Ne,Oe,He,Pe,Te){Te===void 0&&(Te=Z);var Ye=new ye(J(Ne,Oe,He,Pe),Te);return ae.isGeneratorFunction(Oe)?Ye:Ye.next().then(function(at){return at.done?at.value:Ye.next()})},H(Q),j(Q,k,"Generator"),j(Q,N,function(){return this}),j(Q,"toString",function(){return"[object Generator]"}),ae.keys=function(Ne){var Oe=[];for(var He in Ne)Oe.push(He);return ee(Oe).call(Oe),function Pe(){for(;Oe.length;){var Te=Oe.pop();if(Te in Ne)return Pe.value=Te,Pe.done=!1,Pe}return Pe.done=!0,Pe}},ae.values=tt,nt.prototype={constructor:nt,reset:function(Oe){var He;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,F(He=this.tryEntries).call(He,De),!Oe)for(var Pe in this)Pe.charAt(0)==="t"&&P.call(this,Pe)&&!isNaN(+ue(Pe).call(Pe,1))&&(this[Pe]=void 0)},stop:function(){this.done=!0;var Oe=this.tryEntries[0].completion;if(Oe.type==="throw")throw Oe.arg;return this.rval},dispatchException:function(Oe){if(this.done)throw Oe;var He=this;function Pe(it,Ft){return at.type="throw",at.arg=Oe,He.next=it,Ft&&(He.method="next",He.arg=void 0),!!Ft}for(var Te=this.tryEntries.length-1;Te>=0;--Te){var Ye=this.tryEntries[Te],at=Ye.completion;if(Ye.tryLoc==="root")return Pe("end");if(Ye.tryLoc<=this.prev){var jt=P.call(Ye,"catchLoc"),rt=P.call(Ye,"finallyLoc");if(jt&&rt){if(this.prev<Ye.catchLoc)return Pe(Ye.catchLoc,!0);if(this.prev<Ye.finallyLoc)return Pe(Ye.finallyLoc)}else if(jt){if(this.prev<Ye.catchLoc)return Pe(Ye.catchLoc,!0)}else{if(!rt)throw new Error("try statement without catch or finally");if(this.prev<Ye.finallyLoc)return Pe(Ye.finallyLoc)}}}},abrupt:function(Oe,He){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var Te=this.tryEntries[Pe];if(Te.tryLoc<=this.prev&&P.call(Te,"finallyLoc")&&this.prev<Te.finallyLoc){var Ye=Te;break}}Ye&&(Oe==="break"||Oe==="continue")&&Ye.tryLoc<=He&&He<=Ye.finallyLoc&&(Ye=null);var at=Ye?Ye.completion:{};return at.type=Oe,at.arg=He,Ye?(this.method="next",this.next=Ye.finallyLoc,U):this.complete(at)},complete:function(Oe,He){if(Oe.type==="throw")throw Oe.arg;return Oe.type==="break"||Oe.type==="continue"?this.next=Oe.arg:Oe.type==="return"?(this.rval=this.arg=Oe.arg,this.method="return",this.next="end"):Oe.type==="normal"&&He&&(this.next=He),U},finish:function(Oe){for(var He=this.tryEntries.length-1;He>=0;--He){var Pe=this.tryEntries[He];if(Pe.finallyLoc===Oe)return this.complete(Pe.completion,Pe.afterLoc),De(Pe),U}},catch:function(Oe){for(var He=this.tryEntries.length-1;He>=0;--He){var Pe=this.tryEntries[He];if(Pe.tryLoc===Oe){var Te=Pe.completion;if(Te.type==="throw"){var Ye=Te.arg;De(Pe)}return Ye}}throw new Error("illegal catch attempt")},delegateYield:function(Oe,He,Pe){return this.delegate={iterator:tt(Oe),resultName:He,nextLoc:Pe},this.method==="next"&&(this.arg=void 0),U}},ae}h.exports=ne,h.exports.__esModule=!0,h.exports.default=h.exports},69696:(h,O,s)=>{var d=s(57829),x=s(92876);function w(A){return h.exports=w=typeof d=="function"&&typeof x=="symbol"?function(E){return typeof E}:function(E){return E&&typeof d=="function"&&E.constructor===d&&E!==d.prototype?"symbol":typeof E},h.exports.__esModule=!0,h.exports.default=h.exports,w(A)}h.exports=w,h.exports.__esModule=!0,h.exports.default=h.exports},99732:(h,O,s)=>{var d=s(18730)();h.exports=d;try{regeneratorRuntime=d}catch(x){typeof globalThis=="object"?globalThis.regeneratorRuntime=d:Function("r","regeneratorRuntime = r")(d)}}}]);
|