oasis-editor 0.0.1 → 0.0.3
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/README.md +388 -1
- package/dist/OasisEditorApp-DEnDLTaw.js +45893 -0
- package/dist/app/bootstrap/createOasisEditorApp.d.ts +2 -3
- package/dist/app/bootstrap/createOasisEditorContainer.d.ts +2 -3
- package/dist/app/client/OasisEditorClient.d.ts +97 -0
- package/dist/app/controllers/EditorCommandsController.d.ts +1 -1
- package/dist/app/controllers/createResizeSession.d.ts +43 -0
- package/dist/app/controllers/createRotateSession.d.ts +36 -0
- package/dist/app/controllers/documentIO/DocumentImporter.d.ts +1 -1
- package/dist/app/controllers/tableResize/tableResizeApply.d.ts +5 -0
- package/dist/app/controllers/tableResize/tableResizeConstraints.d.ts +17 -0
- package/dist/app/controllers/tableResize/tableResizeDom.d.ts +9 -0
- package/dist/app/controllers/tableResize/tableResizeGeometry.d.ts +5 -0
- package/dist/app/controllers/tableResize/tableResizeHitTest.d.ts +4 -0
- package/dist/app/controllers/tableResize/tableResizeTypes.d.ts +65 -0
- package/dist/app/controllers/tableResize/tableResizeUnits.d.ts +6 -0
- package/dist/app/controllers/useEditorDocumentIO.d.ts +3 -3
- package/dist/app/controllers/useEditorHistoryActions.d.ts +3 -1
- package/dist/app/controllers/useEditorImageOperations.d.ts +6 -14
- package/dist/app/controllers/useEditorLayout.d.ts +2 -2
- package/dist/app/controllers/useEditorStyle.d.ts +1 -1
- package/dist/app/controllers/useEditorSurfaceEvents.d.ts +1 -0
- package/dist/app/controllers/useEditorTableOperations.d.ts +2 -2
- package/dist/app/controllers/useEditorTableResize.d.ts +2 -24
- package/dist/app/controllers/useEditorTextBoxOperations.d.ts +24 -0
- package/dist/app/services/userPreferences.d.ts +4 -0
- package/dist/assets/importDocxWorker-R5rI6JIO.js +12 -0
- package/dist/branding/apple-touch-icon.png +0 -0
- package/dist/branding/brand-mark.webp +0 -0
- package/dist/branding/favicon-16x16.png +0 -0
- package/dist/branding/favicon-32x32.png +0 -0
- package/dist/branding/favicon.ico +0 -0
- package/dist/branding/github-pages-icon.png +0 -0
- package/dist/branding/icon-192.png +0 -0
- package/dist/branding/icon-512.png +0 -0
- package/dist/branding/logo-full.png +0 -0
- package/dist/branding/logo-mark-square.png +0 -0
- package/dist/branding/social-card.png +0 -0
- package/dist/core/Editor.d.ts +4 -5
- package/dist/core/cloneState.d.ts +3 -1
- package/dist/core/commands/CommandRegistry.d.ts +6 -1
- package/dist/core/commands/block.d.ts +1 -1
- package/dist/core/commands/builtinCommands.d.ts +2 -0
- package/dist/core/commands/floatingLayout.d.ts +29 -0
- package/dist/core/commands/image.d.ts +16 -8
- package/dist/core/commands/list.d.ts +1 -1
- package/dist/core/commands/publicCommandTypes.d.ts +110 -0
- package/dist/core/commands/selectedObjectRun.d.ts +20 -0
- package/dist/core/commands/table/insertTableCommand.d.ts +3 -0
- package/dist/core/commands/table/tableCellStyleCommands.d.ts +5 -0
- package/dist/core/commands/table/tableColumnCommands.d.ts +3 -0
- package/dist/core/commands/table/tableCommandUtils.d.ts +16 -0
- package/dist/core/commands/table/tableRowCommands.d.ts +5 -0
- package/dist/core/commands/table/tableStyleCommands.d.ts +4 -0
- package/dist/core/commands/table.d.ts +5 -10
- package/dist/core/commands/text.d.ts +1 -1
- package/dist/core/commands/textBox.d.ts +21 -0
- package/dist/core/document/blockReplacement.d.ts +7 -0
- package/dist/core/document/bookmarkAnchors.d.ts +8 -0
- package/dist/core/document/clone.d.ts +8 -0
- package/dist/core/document/paragraphRunBuild.d.ts +14 -0
- package/dist/core/document/paragraphRunEdit.d.ts +3 -0
- package/dist/core/document/paragraphRunQuery.d.ts +14 -0
- package/dist/core/document/paragraphRuns.d.ts +3 -0
- package/dist/core/editorCommands.d.ts +2 -0
- package/dist/core/editorState.d.ts +5 -3
- package/dist/core/endnotes.d.ts +41 -0
- package/dist/core/engine.d.ts +18 -3
- package/dist/core/html/htmlBlockWalker.d.ts +17 -0
- package/dist/core/html/htmlEscape.d.ts +1 -0
- package/dist/core/html/htmlStyleParser.d.ts +3 -0
- package/dist/core/html/htmlTextSerializer.d.ts +5 -0
- package/dist/core/html/inlineImageParser.d.ts +3 -0
- package/dist/core/html/inlineStyleParser.d.ts +3 -0
- package/dist/core/html/paragraphStyleParser.d.ts +3 -0
- package/dist/core/html/styleCss.d.ts +5 -0
- package/dist/core/model/assets.d.ts +7 -0
- package/dist/core/model/documentIndex.d.ts +58 -0
- package/dist/core/model/documentSections.d.ts +4 -0
- package/dist/core/model/editingZones.d.ts +26 -0
- package/dist/core/model/editorState.d.ts +18 -0
- package/dist/core/model/index.d.ts +31 -0
- package/dist/core/model/pageGeometry.d.ts +14 -0
- package/dist/core/model/paragraphWalker.d.ts +5 -0
- package/dist/core/model/queries.d.ts +2 -1
- package/dist/core/model/styleDefaults.d.ts +6 -0
- package/dist/core/model/styleResolution.d.ts +44 -0
- package/dist/core/model/types/document.d.ts +86 -0
- package/dist/core/model/types/documentBookmarks.d.ts +49 -0
- package/dist/core/model/types/documentEndnotes.d.ts +8 -0
- package/dist/core/model/types/documentFootnotes.d.ts +8 -0
- package/dist/core/model/types/layout.d.ts +93 -0
- package/dist/core/model/types/nodes.d.ts +192 -0
- package/dist/core/model/types/primitives.d.ts +140 -0
- package/dist/core/model/types/selection.d.ts +14 -0
- package/dist/core/model/types/styles.d.ts +149 -0
- package/dist/core/model.d.ts +7 -444
- package/dist/core/plugin.d.ts +59 -6
- package/dist/core/plugins/PluginCollection.d.ts +1 -0
- package/dist/core/plugins/PluginUiRegistry.d.ts +20 -0
- package/dist/core/selection/navigation.d.ts +5 -0
- package/dist/core/selection/rangeEditing.d.ts +13 -0
- package/dist/core/textStyle/textStyleKeys.d.ts +6 -0
- package/dist/core/textStyle/textStyleMutations.d.ts +8 -0
- package/dist/export/docx/bookmarksXml.d.ts +21 -0
- package/dist/export/docx/borders.d.ts +25 -0
- package/dist/export/docx/docxTypes.d.ts +35 -2
- package/dist/export/docx/endnotesXml.d.ts +24 -0
- package/dist/export/docx/stylesXml.d.ts +3 -0
- package/dist/export/docx/tableXml.d.ts +7 -1
- package/dist/export/docx/text/blocksXml.d.ts +7 -0
- package/dist/export/docx/text/constants.d.ts +6 -0
- package/dist/export/docx/text/drawingContainerXml.d.ts +16 -0
- package/dist/export/docx/text/dropCapXml.d.ts +9 -0
- package/dist/export/docx/text/endnoteRunXml.d.ts +5 -0
- package/dist/export/docx/text/fieldRunXml.d.ts +11 -0
- package/dist/export/docx/text/footnoteRunXml.d.ts +5 -0
- package/dist/export/docx/text/hyperlinkXml.d.ts +3 -0
- package/dist/export/docx/text/imageRunXml.d.ts +3 -0
- package/dist/export/docx/text/paragraphPropertiesXml.d.ts +16 -0
- package/dist/export/docx/text/runPropertiesXml.d.ts +3 -0
- package/dist/export/docx/text/runTextXml.d.ts +1 -0
- package/dist/export/docx/text/runXml.d.ts +5 -0
- package/dist/export/docx/text/styleMaterialization.d.ts +4 -0
- package/dist/export/docx/text/textBoxRunXml.d.ts +4 -0
- package/dist/export/docx/textXml.d.ts +1 -6
- package/dist/export/pdf/OasisPdfWriter.d.ts +1 -0
- package/dist/export/pdf/draw/borderDash.d.ts +11 -0
- package/dist/export/pdf/draw/drawFragment.d.ts +1 -0
- package/dist/export/pdf/draw/drawParagraph.d.ts +8 -1
- package/dist/export/pdf/fonts/TrueTypePdfFontSubsetter.d.ts +5 -0
- package/dist/export/pdf/fonts/officeFontAssets.d.ts +24 -0
- package/dist/export/pdf/units.d.ts +2 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/en.d.ts +108 -0
- package/dist/i18n/locales/pt-BR.d.ts +108 -0
- package/dist/import/DocumentFormatImporter.d.ts +26 -0
- package/dist/import/documentImporterRegistry.d.ts +6 -0
- package/dist/import/docx/bookmarks.d.ts +8 -0
- package/dist/import/docx/borders.d.ts +37 -0
- package/dist/import/docx/docxImporter.d.ts +3 -0
- package/dist/import/docx/dropCap.d.ts +13 -0
- package/dist/import/docx/endnotes.d.ts +17 -0
- package/dist/import/docx/footnotes.d.ts +2 -2
- package/dist/import/docx/headerFooter.d.ts +2 -2
- package/dist/import/docx/nestedBlocks.d.ts +15 -0
- package/dist/import/docx/numbering.d.ts +16 -1
- package/dist/import/docx/{styles.d.ts → paragraphStyle.d.ts} +2 -8
- package/dist/import/docx/paragraphs.d.ts +5 -4
- package/dist/import/docx/runStyle.d.ts +6 -0
- package/dist/import/docx/runs/drawingImage.d.ts +13 -0
- package/dist/import/docx/runs/fields.d.ts +3 -0
- package/dist/import/docx/runs/relationships.d.ts +11 -0
- package/dist/import/docx/runs/textBox.d.ts +6 -0
- package/dist/import/docx/runs/types.d.ts +42 -0
- package/dist/import/docx/runs/units.d.ts +11 -0
- package/dist/import/docx/runs/vmlImage.d.ts +6 -0
- package/dist/import/docx/runs.d.ts +14 -34
- package/dist/import/docx/sectionProperties.d.ts +1 -1
- package/dist/import/docx/settings.d.ts +1 -0
- package/dist/import/docx/styleUtils.d.ts +6 -0
- package/dist/import/docx/stylesXml.d.ts +4 -0
- package/dist/import/docx/tables.d.ts +2 -2
- package/dist/import/docx/theme.d.ts +17 -0
- package/dist/import/docx/themeColors.d.ts +37 -0
- package/dist/import/docx/themeFonts.d.ts +5 -1
- package/dist/import/docx/xmlHelpers.d.ts +3 -1
- package/dist/import/html/htmlImporter.d.ts +3 -0
- package/dist/import/html/importHtmlToEditorDocument.d.ts +8 -0
- package/dist/index-DuS88s1l.js +36810 -0
- package/dist/index.d.ts +39 -14
- package/dist/layoutProjection/blockHeights.d.ts +1 -1
- package/dist/layoutProjection/blocksPagination.d.ts +1 -1
- package/dist/layoutProjection/constants.d.ts +9 -1
- package/dist/layoutProjection/documentLayout.d.ts +0 -1
- package/dist/layoutProjection/dropCapExclusion.d.ts +23 -0
- package/dist/layoutProjection/endnotePagination.d.ts +8 -0
- package/dist/layoutProjection/floatingObjects.d.ts +45 -0
- package/dist/layoutProjection/footnotePagination.d.ts +1 -2
- package/dist/layoutProjection/headerFooterFootnotes.d.ts +1 -1
- package/dist/layoutProjection/headerFooterProjection.d.ts +3 -3
- package/dist/layoutProjection/index.d.ts +9 -7
- package/dist/layoutProjection/paragraphBorders.d.ts +14 -0
- package/dist/layoutProjection/paragraphPagination.d.ts +23 -9
- package/dist/layoutProjection/paragraphProjection.d.ts +1 -1
- package/dist/layoutProjection/sectionPagination.d.ts +3 -2
- package/dist/layoutProjection/tablePagination.d.ts +3 -2
- package/dist/layoutProjection/tableProjection.d.ts +1 -1
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +52 -80462
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/plugins/internal/createEssentialsPlugin.d.ts +8 -1
- package/dist/react.d.ts +12 -0
- package/dist/react.js +24 -0
- package/dist/testing/wordLayoutParity.d.ts +0 -3
- package/dist/text/fonts/FontMetricsProvider.d.ts +38 -0
- package/dist/text/fonts/FontProgramFactory.d.ts +6 -0
- package/dist/text/fonts/core/types.d.ts +69 -0
- package/dist/text/fonts/decoders/Brotli.d.ts +4 -0
- package/dist/text/fonts/decoders/FontDecoderRegistry.d.ts +10 -0
- package/dist/text/fonts/decoders/TtfDecoder.d.ts +8 -0
- package/dist/text/fonts/decoders/Woff2Decoder.d.ts +45 -0
- package/dist/text/fonts/layout/SimpleTextLayouter.d.ts +7 -0
- package/dist/text/fonts/preciseFontMetrics.d.ts +16 -0
- package/dist/text/fonts/preciseFontMode.d.ts +7 -0
- package/dist/text/fonts/sfnt/SfntFontProgram.d.ts +29 -0
- package/dist/text/fonts/vendor/woff2/buffer.d.ts +24 -0
- package/dist/text/fonts/vendor/woff2/glyf-reconstructor.d.ts +55 -0
- package/dist/text/fonts/vendor/woff2/hmtx-reconstructor.d.ts +5 -0
- package/dist/text/fonts/vendor/woff2/sfnt-builder.d.ts +7 -0
- package/dist/text/fonts/vendor/woff2/utils.d.ts +12 -0
- package/dist/text/truetype/AdvanceWidthSource.d.ts +19 -0
- package/dist/text/truetype/BinaryReader.d.ts +28 -0
- package/dist/text/truetype/CmapParser.d.ts +15 -0
- package/dist/text/truetype/SfntTableDirectory.d.ts +26 -0
- package/dist/text/truetype/TrueTypeFont.d.ts +36 -0
- package/dist/text/truetype/TrueTypeParseError.d.ts +11 -0
- package/dist/text/truetype/tableParsers.d.ts +45 -0
- package/dist/ui/OasisEditorApp.d.ts +1 -1
- package/dist/ui/OasisEditorAppLazy.d.ts +16 -0
- package/dist/ui/OasisEditorAppProps.d.ts +10 -2
- package/dist/ui/OasisEditorEditor.d.ts +17 -8
- package/dist/ui/OasisEditorLoading.d.ts +25 -0
- package/dist/ui/app/EditorDialogsLayer.d.ts +4 -0
- package/dist/ui/app/EditorWorkspace.d.ts +6 -0
- package/dist/ui/app/buildEditorViewProps.d.ts +7 -3
- package/dist/ui/app/createRuntimeCommandHost.d.ts +2 -1
- package/dist/ui/app/localFontAccess.d.ts +33 -0
- package/dist/ui/app/useCanvasSurfaceHitResolver.d.ts +2 -2
- package/dist/ui/app/useEditorContextMenuClipboard.d.ts +18 -0
- package/dist/ui/app/useEditorDialogs.d.ts +18 -0
- package/dist/ui/app/useEditorRuntimeBootstrap.d.ts +3 -0
- package/dist/ui/app/useEditorRuntimePlugins.d.ts +3 -0
- package/dist/ui/app/useEditorUiOptions.d.ts +1 -1
- package/dist/ui/app/useParagraphDialogBridge.d.ts +29 -0
- package/dist/ui/app/useTablePropertiesDialogBridge.d.ts +30 -0
- package/dist/ui/canvas/CanvasHitTestService.d.ts +17 -0
- package/dist/ui/canvas/CanvasLayoutSnapshot.d.ts +57 -1
- package/dist/ui/canvas/CanvasSelectionGeometry.d.ts +16 -0
- package/dist/ui/canvas/CanvasTableLayout.d.ts +3 -1
- package/dist/ui/canvas/canvasBlockPainter.d.ts +2 -2
- package/dist/ui/canvas/canvasBorders.d.ts +17 -0
- package/dist/ui/canvas/canvasDropCapPainter.d.ts +16 -0
- package/dist/ui/canvas/canvasParagraphPainter.d.ts +24 -2
- package/dist/ui/canvas/canvasTextBoxPainter.d.ts +24 -0
- package/dist/ui/canvas/imageContour.d.ts +10 -0
- package/dist/ui/canvas/textBoxRenderHeight.d.ts +14 -0
- package/dist/ui/canvas/verticalText.d.ts +104 -0
- package/dist/ui/components/Dialogs/FontDialog.d.ts +2 -65
- package/dist/ui/components/Dialogs/FontDialogModel.d.ts +5 -0
- package/dist/ui/components/Dialogs/ParagraphDialog.d.ts +49 -0
- package/dist/ui/components/Dialogs/TablePropertiesDialog.d.ts +80 -0
- package/dist/ui/components/Dialogs/font-dialog/AdvancedFontTab.d.ts +6 -0
- package/dist/ui/components/Dialogs/font-dialog/FontDialogController.d.ts +21 -0
- package/dist/ui/components/Dialogs/font-dialog/FontDialogTypes.d.ts +112 -0
- package/dist/ui/components/Dialogs/font-dialog/FontPreview.d.ts +6 -0
- package/dist/ui/components/Dialogs/font-dialog/FontTab.d.ts +6 -0
- package/dist/ui/components/Dialogs/font-dialog/useFontDialogController.d.ts +4 -0
- package/dist/ui/components/FloatingToolbar/FloatingLayoutOptions.d.ts +17 -0
- package/dist/ui/components/Menubar/Menubar.d.ts +2 -1
- package/dist/ui/components/Menubar/builtinMenuIds.d.ts +36 -0
- package/dist/ui/components/OasisBrandMark.d.ts +7 -0
- package/dist/ui/components/PluginUi/PluginUiHost.d.ts +8 -0
- package/dist/ui/components/Ruler/HorizontalRuler.d.ts +11 -0
- package/dist/ui/components/Ruler/rulerGeometry.d.ts +63 -0
- package/dist/ui/components/Toolbar/Toolbar.d.ts +2 -0
- package/dist/ui/components/Toolbar/presets/builtinToolbarIds.d.ts +40 -0
- package/dist/ui/components/Toolbar/primitives/ColorPicker.d.ts +1 -1
- package/dist/ui/components/Toolbar/primitives/Separator.d.ts +4 -3
- package/dist/ui/components/Toolbar/registry/ToolbarRegistry.d.ts +7 -2
- package/dist/ui/components/Toolbar/schema/items.d.ts +1 -1
- package/dist/ui/components/WelcomeOverlay.d.ts +13 -0
- package/dist/ui/editorLayoutConstants.d.ts +12 -0
- package/dist/ui/editorUiTypes.d.ts +35 -4
- package/dist/ui/fontSizeUnits.d.ts +15 -0
- package/dist/ui/mount.d.ts +2 -1
- package/dist/ui/overlays/ResizeHandlesOverlay.d.ts +34 -0
- package/dist/ui/public/Button.d.ts +10 -0
- package/dist/ui/public/Checkbox.d.ts +9 -0
- package/dist/ui/public/DialogFooter.d.ts +6 -0
- package/dist/ui/public/FloatingActionButton.d.ts +8 -0
- package/dist/ui/public/IconButton.d.ts +10 -0
- package/dist/ui/public/SelectField.d.ts +15 -0
- package/dist/ui/public/SidePanel.d.ts +12 -0
- package/dist/ui/public/TextField.d.ts +9 -0
- package/dist/ui/public/index.d.ts +36 -0
- package/dist/ui/resizeGeometry.d.ts +28 -0
- package/dist/ui/shells/DocumentShell.d.ts +6 -0
- package/dist/ui/textMeasurement/alignment.d.ts +3 -0
- package/dist/ui/textMeasurement/characterWidth.d.ts +9 -0
- package/dist/ui/textMeasurement/composer.d.ts +5 -0
- package/dist/ui/textMeasurement/constants.d.ts +4 -0
- package/dist/ui/textMeasurement/fontMetrics.d.ts +12 -0
- package/dist/ui/textMeasurement/indentation.d.ts +12 -0
- package/dist/ui/textMeasurement/layoutLine.d.ts +4 -0
- package/dist/ui/textMeasurement/paragraphLineHeight.d.ts +22 -0
- package/dist/ui/textMeasurement/tabStops.d.ts +4 -0
- package/dist/ui/textMeasurement/tokenizer.d.ts +6 -0
- package/dist/ui/textMeasurement/types.d.ts +27 -0
- package/dist/ui/textMeasurement.d.ts +5 -11
- package/dist/ui/toolbarStyleState.d.ts +15 -2
- package/dist/ui/utils/customIcons.d.ts +20 -0
- package/dist/ui.d.ts +42 -0
- package/dist/ui.js +19 -0
- package/dist/utils/imageFormats.d.ts +14 -0
- package/dist/utils/throttle.d.ts +1 -1
- package/dist/vue.d.ts +9 -0
- package/dist/vue.js +33 -0
- package/package.json +90 -62
- package/dist/__tests__/app/PersistenceService.test.d.ts +0 -1
- package/dist/__tests__/app/footnoteUiCommands.test.d.ts +0 -1
- package/dist/__tests__/commands/text.test.d.ts +0 -1
- package/dist/__tests__/core/editorPluginIntegration.test.d.ts +0 -1
- package/dist/__tests__/core/editorState.test.d.ts +0 -1
- package/dist/__tests__/core/footnotes.test.d.ts +0 -1
- package/dist/__tests__/core/model.test.d.ts +0 -1
- package/dist/__tests__/core/pluginCollection.test.d.ts +0 -1
- package/dist/__tests__/core/tableCommands.test.d.ts +0 -1
- package/dist/__tests__/export/docxExport.test.d.ts +0 -1
- package/dist/__tests__/export/footnotesExport.test.d.ts +0 -1
- package/dist/__tests__/export/pdfWriter.test.d.ts +0 -1
- package/dist/__tests__/export/underlineStyle.test.d.ts +0 -1
- package/dist/__tests__/import/docxComplexSmoke.test.d.ts +0 -1
- package/dist/__tests__/import/docxImport.test.d.ts +0 -1
- package/dist/__tests__/import/footnotesImport.test.d.ts +0 -1
- package/dist/__tests__/integration/documentFlow.test.d.ts +0 -1
- package/dist/__tests__/ui/CanvasTableLayout.test.d.ts +0 -1
- package/dist/__tests__/ui/canvasHitTestService.test.d.ts +0 -1
- package/dist/__tests__/ui/canvasLayoutSnapshot.test.d.ts +0 -1
- package/dist/__tests__/ui/canvasSelectionGeometry.test.d.ts +0 -1
- package/dist/__tests__/ui/canvasTextRendering.test.d.ts +0 -1
- package/dist/__tests__/ui/composeMeasuredParagraphLines.test.d.ts +0 -1
- package/dist/__tests__/ui/dialog.test.d.ts +0 -1
- package/dist/__tests__/ui/fontDialog.test.d.ts +0 -1
- package/dist/__tests__/ui/footnotesLayout.test.d.ts +0 -1
- package/dist/__tests__/ui/layoutIdentity.test.d.ts +0 -1
- package/dist/__tests__/ui/layoutProjection.test.d.ts +0 -1
- package/dist/__tests__/ui/registry.test.d.ts +0 -1
- package/dist/__tests__/ui/tabs.test.d.ts +0 -1
- package/dist/__tests__/ui/textMeasurementAlignment.test.d.ts +0 -1
- package/dist/__tests__/word-parity/fixtures/corpus.d.ts +0 -10
- package/dist/__tests__/word-parity/fixtures/loremFixtures.d.ts +0 -8
- package/dist/__tests__/word-parity/wordLayout.word-parity.d.ts +0 -1
- package/dist/assets/Arimo-Bold.ttf +0 -0
- package/dist/assets/Arimo-BoldItalic.ttf +0 -0
- package/dist/assets/Arimo-Italic.ttf +0 -0
- package/dist/assets/Arimo-Regular.ttf +0 -0
- package/dist/assets/Carlito-Bold.ttf +0 -0
- package/dist/assets/Carlito-BoldItalic.ttf +0 -0
- package/dist/assets/Carlito-Italic.ttf +0 -0
- package/dist/assets/Carlito-Regular.ttf +0 -0
- package/dist/assets/Roboto-Italic.ttf +0 -0
- package/dist/assets/Roboto-Medium.ttf +0 -0
- package/dist/assets/Roboto-MediumItalic.ttf +0 -0
- package/dist/assets/Roboto-Regular.ttf +0 -0
- package/dist/assets/Tinos-Bold.ttf +0 -0
- package/dist/assets/Tinos-BoldItalic.ttf +0 -0
- package/dist/assets/Tinos-Italic.ttf +0 -0
- package/dist/assets/Tinos-Regular.ttf +0 -0
- package/dist/assets/importDocxWorker-DIQ28Lka.js +0 -12
- package/dist/core/commands/utils.d.ts +0 -69
- package/dist/demo/OasisSiteApp.d.ts +0 -1
- package/dist/main.d.ts +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
!function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var n={exports:{}};
|
|
2
|
-
/*!
|
|
3
|
-
|
|
4
|
-
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
5
|
-
<http://stuartk.com/jszip>
|
|
6
|
-
|
|
7
|
-
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
8
|
-
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
9
|
-
|
|
10
|
-
JSZip uses the library pako released under the MIT license :
|
|
11
|
-
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
12
|
-
*/n.exports=function e(t,n,i){function a(s,l){if(!n[s]){if(!t[s]){if(!l&&r)return r(s);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){return a(t[s][1][e]||e)},u,u.exports,e,t,n,i)}return n[s].exports}for(var o=r,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(e,t,r){var n=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,o,s,l,c,u=[],d=0,h=e.length,f=h,p="string"!==n.getTypeOf(e);d<e.length;)f=h-d,i=p?(t=e[d++],r=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),r=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|r>>4,l=1<f?(15&r)<<2|i>>6:64,c=2<f?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(l)+a.charAt(c));return u.join("")},r.decode=function(e){var t,r,n,o,s,l,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&f--,e.charAt(e.length-2)===a.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=a.indexOf(e.charAt(c++))<<2|(o=a.indexOf(e.charAt(c++)))>>4,r=(15&o)<<4|(s=a.indexOf(e.charAt(c++)))>>2,n=(3&s)<<6|(l=a.indexOf(e.charAt(c++))),h[u++]=t,64!==s&&(h[u++]=r),64!==l&&(h[u++]=n);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var a=i,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var a=i,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,i,o,u){var d,h,f=e.file,p=e.compression,m=u!==s.utf8encode,g=a.transformTo("string",u(f.name)),b=a.transformTo("string",s.utf8encode(f.name)),v=f.comment,y=a.transformTo("string",u(v)),w=a.transformTo("string",s.utf8encode(v)),_=b.length!==f.name.length,E=w.length!==v.length,N="",T="",S="",x=f.dir,k=f.date,A={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(A.crc32=e.crc32,A.compressedSize=e.compressedSize,A.uncompressedSize=e.uncompressedSize);var C=0;t&&(C|=8),m||!_&&!E||(C|=2048);var I,D,O,R=0,L=0;x&&(R|=16),"UNIX"===o?(L=798,R|=(I=f.unixPermissions,D=x,O=I,I||(O=D?16893:33204),(65535&O)<<16)):(L=20,R|=function(e){return 63&(e||0)}(f.dosPermissions)),d=k.getUTCHours(),d<<=6,d|=k.getUTCMinutes(),d<<=5,d|=k.getUTCSeconds()/2,h=k.getUTCFullYear()-1980,h<<=4,h|=k.getUTCMonth()+1,h<<=5,h|=k.getUTCDate(),_&&(T=n(1,1)+n(l(g),4)+b,N+="up"+n(T.length,2)+T),E&&(S=n(1,1)+n(l(y),4)+w,N+="uc"+n(S.length,2)+S);var M="";return M+="\n\0",M+=n(C,2),M+=p.magic,M+=n(d,2),M+=n(h,2),M+=n(A.crc32,4),M+=n(A.compressedSize,4),M+=n(A.uncompressedSize,4),M+=n(g.length,2),M+=n(N.length,2),{fileRecord:c.LOCAL_FILE_HEADER+M+g+N,dirRecord:c.CENTRAL_FILE_HEADER+n(L,2)+M+n(y.length,2)+"\0\0\0\0"+n(R,4)+n(i,4)+g+N+y}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t,r=this.streamFiles&&!e.file.dir,a=i(e,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(a.dirRecord),r)this.push({data:(t=e,c.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:a.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r,i,o,s,l,u,d=this.bytesWritten-e,h=(r=this.dirRecords.length,i=d,o=e,s=this.zipComment,l=this.encodeFileName,u=a.transformTo("string",l(s)),c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(r,2)+n(r,2)+n(i,4)+n(o,4)+n(u.length,2)+u);this.push({data:h,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(n){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var a=new i(t.streamFiles,r,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,r){o++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,c=r.date;r._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(a)}),a.entriesCount=o}catch(s){a.error(s)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var n=e("./utils"),i=e("./external"),a=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new i.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",function(e){r(e)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var r=new o(t);return r.load(e),r}).then(function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var a=0;a<n.length;a++)r.push(c(n[a]));return i.Promise.all(r)}).then(function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],l=s.fileNameStr,c=n.resolve(s.fileNameStr);r.file(c,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(r.file(c).unsafeOriginalName=l)}return i.zipComment.length&&(r.comment=i.zipComment),r})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),r&&r(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,i=a.getTypeOf(t),s=a.extend(r||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!d),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var b=null;b=t instanceof c||t instanceof o?t:h.isNode&&h.isStream(t)?new f(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var v=new u(e,b,s);this.files[e]=v}var i=e("./utf8"),a=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function b(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(b(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(b(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");a.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(l){(t=new o("error")).error(l)}return new s(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(n.transformTo("uint8array",e)):new a(n.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){var n=e("./GenericWorker"),i=e("../utils");function a(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,n),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),i=e("../crc32");function a(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,n),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var n=e("../utils"),i=e("./ConvertWorker"),a=e("./GenericWorker"),o=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(h){}function u(e,t){return new l.Promise(function(r,i){var a=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",function(e,r){a.push(e),t&&t(r)}).on("error",function(e){a=[],i(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return n.transformTo(e,t)}}(l,function(e,t){var r,n=0,i=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(a),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,a),c);r(e)}catch(t){i(t)}a=[]}).resume()})}function d(e,t,r){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=r,n.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(s){this._worker=new a("error"),this._worker.error(s)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){n.delay(t,arguments,r)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(a){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),r.blob=0===i.getBlob("application/zip").size}catch(o){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(a){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,r,n,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),a=o=0;o<l;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?t[o++]=r:(r<2048?t[o++]=192|r>>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,a,o=e.length,l=new Array(2*o);for(t=r=0;t<o;)if((i=e[t++])<128)l[r++]=i;else if(4<(a=s[i]))l[r++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(c,o),c.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}(t),l=t;o!==t.length&&(i.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var n=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(i){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(t)}catch(a){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,r){var n=[],i=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=c.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=c.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return c.stringifyByChunk(e,n,t)}catch(a){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=u;var h={};h.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,a.allocBuffer(e.length))}},h.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},h.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},h.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return h[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&a.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,a,s,c){return o.Promise.resolve(t).then(function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise(function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)}):e}).then(function(t){var u,d=r.getTypeOf(t);return d?("arraybuffer"===d?t=r.transformTo("uint8array",t):"string"===d&&(c?t=i.decode(t):a&&!0!==s&&(t=l(u=t,n.uint8array?new Uint8Array(u.length):new Array(u.length)))),t):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!n&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&n&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(s){(t=new l("error")).error(s)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new a(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)n.prototype[c[d]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,r,n){(function(e){var t,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),t=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,t=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var r=c.length;r;){for(t=c,c=[],e=-1;++e<r;)t[e]();r=c.length}n=!1}r.exports=function(e){1!==c.push(e)||n||t()}}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n(function(){var n;try{n=t(r)}catch(i){return a.reject(e,i)}n===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,n)})}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function n(t){r||(r=!0,a.reject(e,t))}function i(t){r||(r=!0,a.resolve(e,t))}var o=p(function(){t(i,n)});"error"===o.status&&n(o.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(n){r.status="error",r.value=n}return r}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var r=new this.constructor(i);return this.state!==l?d(r,this.state===s?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var r=p(h,t);if("error"===r.status)return a.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return a.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var o=new Array(r),s=0,l=-1,c=new this(i);++l<r;)u(e[l],l);return c;function u(e,i){t.resolve(e).then(function(e){o[i]=e,++s!==r||n||(n=!0,a.resolve(c,o))},function(e){n||(n=!0,a.reject(c,e))})}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var o,s=-1,l=new this(i);++s<r;)o=e[s],t.resolve(o).then(function(e){n||(n=!0,a.resolve(l,e))},function(e){n||(n=!0,a.reject(l,e))});return l}},{immediate:36}],38:[function(e,t,r){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var n=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==c)throw new Error(o[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==c)throw new Error(o[r]);this._dict_set=!0}}function p(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}f.prototype.push=function(e,t){var r,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(r=n.deflate(s,o))&&r!==c)return this.onEnd(r),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return 4===o?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==o||(this.onEnd(c),!(s.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=f,r.deflate=p,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var n=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==o.Z_OK)throw new Error(s[r]);this.header=new c,n.inflateGetHeader(this.strm,this.header)}function h(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}d.prototype.push=function(e,t){var r,s,l,c,d,h,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(r=n.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&m&&(h="string"==typeof m?a.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,h)),r===o.Z_BUF_ERROR&&!0===g&&(r=o.Z_OK,g=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&r!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(f.output,f.next_out),c=f.next_out-l,d=a.buf2string(f.output,l),f.next_out=c,f.avail_out=p-c,c&&i.arraySet(f.output,f.output,l,c,0),this.onData(d)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&r!==o.Z_STREAM_END);return r===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=h,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){var t,r,n,i,a,o;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(o=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(c){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c){a=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",o=0;o<t;o++)r+=String.fromCharCode(e[o]);return r}o[254]=o[254]=1,r.string2buf=function(e){var t,r,i,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),a=o=0;o<l;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),r<128?t[o++]=r:(r<2048?t[o++]=192|r>>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,a,s=t||e.length,c=new Array(2*s);for(r=n=0;r<s;)if((i=e[r++])<128)c[n++]=i;else if(4<(a=o[i]))c[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&r<s;)i=i<<6|63&e[r++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return l(c,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var i=65535&e,a=e>>>16&65535,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;a=a+(i=i+t[n++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16}},{}],44:[function(e,t,r){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var a=n,o=i+r;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,r){var n,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,h=-2,f=-1,p=4,m=2,g=8,b=9,v=286,y=30,w=19,_=2*v+1,E=15,N=3,T=258,S=T+N+1,x=42,k=113,A=1,C=2,I=3,D=4;function O(e,t){return e.msg=l[t],t}function R(e){return(e<<1)-(4<e?9:0)}function L(e){for(var t=e.length;0<=--t;)e[t]=0}function M(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function P(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,M(e.strm)}function z(e,t){e.pending_buf[e.pending++]=t}function U(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function B(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-S?e.strstart-(e.w_size-S):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+T,f=c[a+o-1],p=c[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+o]===p&&c[r+o-1]===f&&c[r]===c[a]&&c[++r]===c[a+1]){a+=2,r++;do{}while(c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&a<h);if(n=T-(h-a),a=h-T,o<n){if(e.match_start=t,s<=(o=n))break;f=c[a+o-1],p=c[a+o]}}}while((t=d[t&u])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function F(e){var t,r,n,a,l,c,u,d,h,f,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-S)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--r;);for(t=r=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--r;);a+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,f=void 0,(h=a)<(f=c.avail_in)&&(f=h),r=0===f?0:(c.avail_in-=f,i.arraySet(u,c.input,c.next_in,f,d),1===c.state.wrap?c.adler=o(c.adler,u,f,d):2===c.state.wrap&&(c.adler=s(c.adler,u,f,d)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=r,e.lookahead+e.insert>=N)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+N-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<N)););}while(e.lookahead<S&&0!==e.strm.avail_in)}function q(e,t){for(var r,n;;){if(e.lookahead<S){if(F(e),e.lookahead<S&&t===c)return A;if(0===e.lookahead)break}if(r=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-S&&(e.match_length=B(e,r)),e.match_length>=N)if(n=a._tr_tally(e,e.strstart-e.match_start,e.match_length-N),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=N){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(P(e,!1),0===e.strm.avail_out))return A}return e.insert=e.strstart<N-1?e.strstart:N-1,t===u?(P(e,!0),0===e.strm.avail_out?I:D):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?A:C}function H(e,t){for(var r,n,i;;){if(e.lookahead<S){if(F(e),e.lookahead<S&&t===c)return A;if(0===e.lookahead)break}if(r=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=N-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-S&&(e.match_length=B(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===N&&4096<e.strstart-e.match_start)&&(e.match_length=N-1)),e.prev_length>=N&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-N,n=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-N),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=N-1,e.strstart++,n&&(P(e,!1),0===e.strm.avail_out))return A}else if(e.match_available){if((n=a._tr_tally(e,0,e.window[e.strstart-1]))&&P(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return A}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<N-1?e.strstart:N-1,t===u?(P(e,!0),0===e.strm.avail_out?I:D):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?A:C}function j(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function G(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*_),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*w+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(E+1),this.heap=new i.Buf16(2*v+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?x:k,e.adler=2===t.wrap?0:1,t.last_flush=c,a._tr_init(t),d):O(e,h)}function V(e){var t,r=W(e);return r===d&&((t=e.state).window_size=2*t.w_size,L(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=N-1,t.match_available=0,t.ins_h=0),r}function Z(e,t,r,n,a,o){if(!e)return h;var s=1;if(t===f&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),a<1||b<a||r!==g||n<8||15<n||t<0||9<t||o<0||p<o)return O(e,h);8===n&&(n=9);var l=new G;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+N-1)/N),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=r,V(e)}n=[new j(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(F(e),0===e.lookahead&&t===c)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,P(e,!1),0===e.strm.avail_out))return A;if(e.strstart-e.block_start>=e.w_size-S&&(P(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===u?(P(e,!0),0===e.strm.avail_out?I:D):(e.strstart>e.block_start&&(P(e,!1),e.strm.avail_out),A)}),new j(4,4,8,4,q),new j(4,5,16,8,q),new j(4,6,32,32,q),new j(4,4,16,16,H),new j(8,16,32,32,H),new j(8,16,128,128,H),new j(8,32,128,256,H),new j(32,128,258,1024,H),new j(32,258,258,4096,H)],r.deflateInit=function(e,t){return Z(e,t,g,15,8,0)},r.deflateInit2=Z,r.deflateReset=V,r.deflateResetKeep=W,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,d):h},r.deflate=function(e,t){var r,i,o,l;if(!e||!e.state||5<t||t<0)return e?O(e,h):h;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==u)return O(e,0===e.avail_out?-5:h);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===x)if(2===i.wrap)e.adler=0,z(i,31),z(i,139),z(i,8),i.gzhead?(z(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),z(i,255&i.gzhead.time),z(i,i.gzhead.time>>8&255),z(i,i.gzhead.time>>16&255),z(i,i.gzhead.time>>24&255),z(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),z(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(z(i,255&i.gzhead.extra.length),z(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(z(i,0),z(i,0),z(i,0),z(i,0),z(i,0),z(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),z(i,3),i.status=k);else{var f=g+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=k,U(i,f),0!==i.strstart&&(U(i,e.adler>>>16),U(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),M(e),o=i.pending,i.pending!==i.pending_buf_size));)z(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),M(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,z(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),M(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,z(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&M(e),i.pending+2<=i.pending_buf_size&&(z(i,255&e.adler),z(i,e.adler>>8&255),e.adler=0,i.status=k)):i.status=k),0!==i.pending){if(M(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&R(t)<=R(r)&&t!==u)return O(e,-5);if(666===i.status&&0!==e.avail_in)return O(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){var p=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(F(e),0===e.lookahead)){if(t===c)return A;break}if(e.match_length=0,r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(P(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===u?(P(e,!0),0===e.strm.avail_out?I:D):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?A:C}(i,t):3===i.strategy?function(e,t){for(var r,n,i,o,s=e.window;;){if(e.lookahead<=T){if(F(e),e.lookahead<=T&&t===c)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=N&&0<e.strstart&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){o=e.strstart+T;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);e.match_length=T-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=N?(r=a._tr_tally(e,1,e.match_length-N),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(P(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===u?(P(e,!0),0===e.strm.avail_out?I:D):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?A:C}(i,t):n[i.level].func(i,t);if(p!==I&&p!==D||(i.status=666),p===A||p===I)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===C&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),M(e),0===e.avail_out))return i.last_flush=-1,d}return t!==u?d:i.wrap<=0?1:(2===i.wrap?(z(i,255&e.adler),z(i,e.adler>>8&255),z(i,e.adler>>16&255),z(i,e.adler>>24&255),z(i,255&e.total_in),z(i,e.total_in>>8&255),z(i,e.total_in>>16&255),z(i,e.total_in>>24&255)):(U(i,e.adler>>>16),U(i,65535&e.adler)),M(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==x&&69!==t&&73!==t&&91!==t&&103!==t&&t!==k&&666!==t?O(e,h):(e.state=null,t===k?O(e,-3):d):h},r.deflateSetDictionary=function(e,t){var r,n,a,s,l,c,u,f,p=t.length;if(!e||!e.state)return h;if(2===(s=(r=e.state).wrap)||1===s&&r.status!==x||r.lookahead)return h;for(1===s&&(e.adler=o(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===s&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,p-r.w_size,r.w_size,0),t=f,p=r.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,F(r);r.lookahead>=N;){for(n=r.strstart,a=r.lookahead-(N-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+N-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--a;);r.strstart=n,r.lookahead=N-1,F(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=N-1,r.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,r.wrap=s,d},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){t.exports=function(e,t){var r,n,i,a,o,s,l,c,u,d,h,f,p,m,g,b,v,y,w,_,E,N,T,S,x;r=e.state,n=e.next_in,S=e.input,i=n+(e.avail_in-5),a=e.next_out,x=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,d=r.wnext,h=r.window,f=r.hold,p=r.bits,m=r.lencode,g=r.distcode,b=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;e:do{p<15&&(f+=S[n++]<<p,p+=8,f+=S[n++]<<p,p+=8),y=m[f&b];t:for(;;){if(f>>>=w=y>>>24,p-=w,0==(w=y>>>16&255))x[a++]=65535&y;else{if(!(16&w)){if(!(64&w)){y=m[(65535&y)+(f&(1<<w)-1)];continue t}if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}_=65535&y,(w&=15)&&(p<w&&(f+=S[n++]<<p,p+=8),_+=f&(1<<w)-1,f>>>=w,p-=w),p<15&&(f+=S[n++]<<p,p+=8,f+=S[n++]<<p,p+=8),y=g[f&v];r:for(;;){if(f>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(!(64&w)){y=g[(65535&y)+(f&(1<<w)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(E=65535&y,p<(w&=15)&&(f+=S[n++]<<p,(p+=8)<w&&(f+=S[n++]<<p,p+=8)),l<(E+=f&(1<<w)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=w,p-=w,(w=a-o)<E){if(u<(w=E-w)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(T=h,(N=0)===d){if(N+=c-w,w<_){for(_-=w;x[a++]=h[N++],--w;);N=a-E,T=x}}else if(d<w){if(N+=c+d-w,(w-=d)<_){for(_-=w;x[a++]=h[N++],--w;);if(N=0,d<_){for(_-=w=d;x[a++]=h[N++],--w;);N=a-E,T=x}}}else if(N+=d-w,w<_){for(_-=w;x[a++]=h[N++],--w;);N=a-E,T=x}for(;2<_;)x[a++]=T[N++],x[a++]=T[N++],x[a++]=T[N++],_-=3;_&&(x[a++]=T[N++],1<_&&(x[a++]=T[N++]))}else{for(N=a-E;x[a++]=x[N++],x[a++]=x[N++],x[a++]=x[N++],2<(_-=3););_&&(x[a++]=x[N++],1<_&&(x[a++]=x[N++]))}break}}break}}while(n<i&&a<s);n-=_=p>>3,f&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=a<s?s-a+257:257-(a-s),r.hold=f,r.bits=p}},{}],49:[function(e,t,r){var n=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),l=1,c=2,u=0,d=-2,h=1,f=852,p=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=h,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(f),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,u):d}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):d}function y(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,v(e))):d}function w(e,t){var r,n;return e?(n=new g,(e.state=n).window=null,(r=y(e,t))!==u&&(e.state=null),r):d}var _,E,N=!0;function T(e){if(N){var t;for(_=new n.Buf32(512),E=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(c,e.lens,0,32,E,0,e.work,{bits:5}),N=!1}e.lencode=_,e.lenbits=9,e.distcode=E,e.distbits=5}function S(e,t,r,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),i>=o.wsize?(n.arraySet(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),n.arraySet(o.window,t,r-i,a,o.wnext),(i-=a)?(n.arraySet(o.window,t,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}r.inflateReset=v,r.inflateReset2=y,r.inflateResetKeep=b,r.inflateInit=function(e){return w(e,15)},r.inflateInit2=w,r.inflate=function(e,t){var r,f,p,g,b,v,y,w,_,E,N,x,k,A,C,I,D,O,R,L,M,P,z,U,B=0,F=new n.Buf8(4),q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(r=e.state).mode&&(r.mode=13),b=e.next_out,p=e.output,y=e.avail_out,g=e.next_in,f=e.input,v=e.avail_in,w=r.hold,_=r.bits,E=v,N=y,P=u;e:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}if(2&r.wrap&&35615===w){F[r.check=0]=255&w,F[1]=w>>>8&255,r.check=a(r.check,F,2,0),_=w=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",r.mode=30;break}if(_-=4,M=8+(15&(w>>>=4)),0===r.wbits)r.wbits=M;else if(M>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<M,e.adler=r.check=1,r.mode=512&w?10:12,_=w=0;break;case 2:for(;_<16;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}if(r.flags=w,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=w>>8&1),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=a(r.check,F,2,0)),_=w=0,r.mode=3;case 3:for(;_<32;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}r.head&&(r.head.time=w),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,F[2]=w>>>16&255,F[3]=w>>>24&255,r.check=a(r.check,F,4,0)),_=w=0,r.mode=4;case 4:for(;_<16;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}r.head&&(r.head.xflags=255&w,r.head.os=w>>8),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=a(r.check,F,2,0)),_=w=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}r.length=w,r.head&&(r.head.extra_len=w),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=a(r.check,F,2,0)),_=w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(v<(x=r.length)&&(x=v),x&&(r.head&&(M=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,f,g,x,M)),512&r.flags&&(r.check=a(r.check,f,x,g)),v-=x,g+=x,r.length-=x),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===v)break e;for(x=0;M=f[g+x++],r.head&&M&&r.length<65536&&(r.head.name+=String.fromCharCode(M)),M&&x<v;);if(512&r.flags&&(r.check=a(r.check,f,x,g)),v-=x,g+=x,M)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===v)break e;for(x=0;M=f[g+x++],r.head&&M&&r.length<65536&&(r.head.comment+=String.fromCharCode(M)),M&&x<v;);if(512&r.flags&&(r.check=a(r.check,f,x,g)),v-=x,g+=x,M)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}if(w!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}_=w=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;_<32;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}e.adler=r.check=m(w),_=w=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,r.hold=w,r.bits=_,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case 0:r.mode=14;break;case 1:if(T(r),r.mode=20,6!==t)break;w>>>=2,_-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&w,_=w=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(x=r.length){if(v<x&&(x=v),y<x&&(x=y),0===x)break e;n.arraySet(p,f,g,x,b),v-=x,g+=x,y-=x,b+=x,r.length-=x;break}r.mode=12;break;case 17:for(;_<14;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}if(r.nlen=257+(31&w),w>>>=5,_-=5,r.ndist=1+(31&w),w>>>=5,_-=5,r.ncode=4+(15&w),w>>>=4,_-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;_<3;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}r.lens[q[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[q[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,z={bits:r.lenbits},P=s(0,r.lens,0,19,r.lencode,0,r.work,z),r.lenbits=z.bits,P){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;I=(B=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,D=65535&B,!((C=B>>>24)<=_);){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}if(D<16)w>>>=C,_-=C,r.lens[r.have++]=D;else{if(16===D){for(U=C+2;_<U;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}if(w>>>=C,_-=C,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}M=r.lens[r.have-1],x=3+(3&w),w>>>=2,_-=2}else if(17===D){for(U=C+3;_<U;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}_-=C,M=0,x=3+(7&(w>>>=C)),w>>>=3,_-=3}else{for(U=C+7;_<U;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}_-=C,M=0,x=11+(127&(w>>>=C)),w>>>=7,_-=7}if(r.have+x>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;x--;)r.lens[r.have++]=M}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,z={bits:r.lenbits},P=s(l,r.lens,0,r.nlen,r.lencode,0,r.work,z),r.lenbits=z.bits,P){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,z={bits:r.distbits},P=s(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,z),r.distbits=z.bits,P){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=v&&258<=y){e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,r.hold=w,r.bits=_,o(e,N),b=e.next_out,p=e.output,y=e.avail_out,g=e.next_in,f=e.input,v=e.avail_in,w=r.hold,_=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;I=(B=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,D=65535&B,!((C=B>>>24)<=_);){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}if(I&&!(240&I)){for(O=C,R=I,L=D;I=(B=r.lencode[L+((w&(1<<O+R)-1)>>O)])>>>16&255,D=65535&B,!(O+(C=B>>>24)<=_);){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}w>>>=O,_-=O,r.back+=O}if(w>>>=C,_-=C,r.back+=C,r.length=D,0===I){r.mode=26;break}if(32&I){r.back=-1,r.mode=12;break}if(64&I){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&I,r.mode=22;case 22:if(r.extra){for(U=r.extra;_<U;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=(B=r.distcode[w&(1<<r.distbits)-1])>>>16&255,D=65535&B,!((C=B>>>24)<=_);){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}if(!(240&I)){for(O=C,R=I,L=D;I=(B=r.distcode[L+((w&(1<<O+R)-1)>>O)])>>>16&255,D=65535&B,!(O+(C=B>>>24)<=_);){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}w>>>=O,_-=O,r.back+=O}if(w>>>=C,_-=C,r.back+=C,64&I){e.msg="invalid distance code",r.mode=30;break}r.offset=D,r.extra=15&I,r.mode=24;case 24:if(r.extra){for(U=r.extra;_<U;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}r.offset+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===y)break e;if(x=N-y,r.offset>x){if((x=r.offset-x)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}k=x>r.wnext?(x-=r.wnext,r.wsize-x):r.wnext-x,x>r.length&&(x=r.length),A=r.window}else A=p,k=b-r.offset,x=r.length;for(y<x&&(x=y),y-=x,r.length-=x;p[b++]=A[k++],--x;);0===r.length&&(r.mode=21);break;case 26:if(0===y)break e;p[b++]=r.length,y--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===v)break e;v--,w|=f[g++]<<_,_+=8}if(N-=y,e.total_out+=N,r.total+=N,N&&(e.adler=r.check=r.flags?a(r.check,p,N,b-N):i(r.check,p,N,b-N)),N=y,(r.flags?w:m(w))!==r.check){e.msg="incorrect data check",r.mode=30;break}_=w=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===v)break e;v--,w+=f[g++]<<_,_+=8}if(w!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}_=w=0}r.mode=29;case 29:P=1;break e;case 30:P=-3;break e;case 31:return-4;default:return d}return e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,r.hold=w,r.bits=_,(r.wsize||N!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&S(e,e.output,e.next_out,N-e.avail_out)?(r.mode=31,-4):(E-=e.avail_in,N-=e.avail_out,e.total_in+=E,e.total_out+=N,r.total+=N,r.wrap&&N&&(e.adler=r.check=r.flags?a(r.check,p,N,e.next_out-N):i(r.check,p,N,e.next_out-N)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==E&&0===N||4===t)&&P===u&&(P=-5),P)},r.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},r.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?((r.head=t).done=!1,u):d},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?d:11===r.mode&&i(1,t,n,0)!==r.check?-3:S(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,u):d},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,l,c,u,d,h){var f,p,m,g,b,v,y,w,_,E=h.bits,N=0,T=0,S=0,x=0,k=0,A=0,C=0,I=0,D=0,O=0,R=null,L=0,M=new n.Buf16(16),P=new n.Buf16(16),z=null,U=0;for(N=0;N<=15;N++)M[N]=0;for(T=0;T<l;T++)M[t[r+T]]++;for(k=E,x=15;1<=x&&0===M[x];x--);if(x<k&&(k=x),0===x)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(S=1;S<x&&0===M[S];S++);for(k<S&&(k=S),N=I=1;N<=15;N++)if(I<<=1,(I-=M[N])<0)return-1;if(0<I&&(0===e||1!==x))return-1;for(P[1]=0,N=1;N<15;N++)P[N+1]=P[N]+M[N];for(T=0;T<l;T++)0!==t[r+T]&&(d[P[t[r+T]]++]=T);if(v=0===e?(R=z=d,19):1===e?(R=i,L-=257,z=a,U-=257,256):(R=o,z=s,-1),N=S,b=u,C=T=O=0,m=-1,g=(D=1<<(A=k))-1,1===e&&852<D||2===e&&592<D)return 1;for(;;){for(y=N-C,_=d[T]<v?(w=0,d[T]):d[T]>v?(w=z[U+d[T]],R[L+d[T]]):(w=96,0),f=1<<N-C,S=p=1<<A;c[b+(O>>C)+(p-=f)]=y<<24|w<<16|_,0!==p;);for(f=1<<N-1;O&f;)f>>=1;if(0!==f?(O&=f-1,O+=f):O=0,T++,0==--M[N]){if(N===x)break;N=t[r+d[T]]}if(k<N&&(O&g)!==m){for(0===C&&(C=k),b+=S,I=1<<(A=N-C);A+C<x&&!((I-=M[A+C])<=0);)A++,I<<=1;if(D+=1<<A,1===e&&852<D||2===e&&592<D)return 1;c[m=O&g]=k<<24|A<<16|b-u}}return 0!==O&&(c[b+O]=N-C<<24|64<<16),h.bits=k,0}},{"../utils/common":41}],51:[function(e,t,r){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,r){var n=e("../utils/common"),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,l=29,c=256,u=c+1+l,d=30,h=19,f=2*u+1,p=15,m=16,g=7,b=256,v=16,y=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=new Array(2*(u+2));o(S);var x=new Array(2*d);o(x);var k=new Array(512);o(k);var A=new Array(256);o(A);var C=new Array(l);o(C);var I,D,O,R=new Array(d);function L(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function M(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function P(e){return e<256?k[e]:k[256+(e>>>7)]}function z(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function U(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<<e.bi_valid&65535,z(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function B(e,t,r){U(e,r[2*t],r[2*t+1])}function F(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function q(e,t,r){var n,i,a=new Array(p+1),o=0;for(n=1;n<=p;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=F(a[s]++,s))}}function H(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<h;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*b]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function j(e){8<e.bi_valid?z(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function G(e,t,r,n){var i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function W(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&G(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!G(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function V(e,t,r){var n,i,a,o,s=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===n?B(e,i,t):(B(e,(a=A[i])+c+1,t),0!==(o=_[a])&&U(e,i-=C[a],o),B(e,a=P(--n),r),0!==(o=E[a])&&U(e,n-=R[a],o)),s<e.last_lit;);B(e,b,t)}function Z(e,t){var r,n,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=f,r=0;r<l;r++)0!==a[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=c,r=e.heap_len>>1;1<=r;r--)W(e,a,r);for(i=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],W(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,W(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,a,o,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,b=0;for(a=0;a<=p;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<f;r++)g<(a=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(a=g,b++),l[2*n+1]=a,c<n||(e.bl_count[a]++,o=0,m<=n&&(o=h[n-m]),s=l[2*n],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*n+1]+o)));if(0!==b){do{for(a=g-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,b-=2}while(0<b);for(a=g;0!==a;a--)for(n=e.bl_count[a];0!==n;)c<(i=e.heap[--r])||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}}(e,t),q(a,c,e.bl_count)}function Y(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=t[2*(n+1)+1],++s<l&&i===o||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*v]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*w]++,a=i,c=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4))}function X(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),n=0;n<=r;n++)if(i=o,o=t[2*(n+1)+1],!(++s<l&&i===o)){if(s<c)for(;B(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(B(e,i,e.bl_tree),s--),B(e,v,e.bl_tree),U(e,s-3,2)):s<=10?(B(e,y,e.bl_tree),U(e,s-3,3)):(B(e,w,e.bl_tree),U(e,s-11,7));a=i,c=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4)}}o(R);var $=!1;function K(e,t,r,i){var a,o,l;U(e,(s<<1)+(i?1:0),3),o=t,l=r,j(a=e),z(a,l),z(a,~l),n.arraySet(a.pending_buf,a.window,o,l,a.pending),a.pending+=l}r._tr_init=function(e){$||(function(){var e,t,r,n,i,a=new Array(p+1);for(n=r=0;n<l-1;n++)for(C[n]=r,e=0;e<1<<_[n];e++)A[r++]=n;for(A[r-1]=n,n=i=0;n<16;n++)for(R[n]=i,e=0;e<1<<E[n];e++)k[i++]=n;for(i>>=7;n<d;n++)for(R[n]=i<<7,e=0;e<1<<E[n]-7;e++)k[256+i++]=n;for(t=0;t<=p;t++)a[t]=0;for(e=0;e<=143;)S[2*e+1]=8,e++,a[8]++;for(;e<=255;)S[2*e+1]=9,e++,a[9]++;for(;e<=279;)S[2*e+1]=7,e++,a[7]++;for(;e<=287;)S[2*e+1]=8,e++,a[8]++;for(q(S,u+1,a),e=0;e<d;e++)x[2*e+1]=5,x[2*e]=F(e,5);I=new L(S,_,c+1,u,p),D=new L(x,E,0,d,p),O=new L(new Array(0),N,0,h,g)}(),$=!0),e.l_desc=new M(e.dyn_ltree,I),e.d_desc=new M(e.dyn_dtree,D),e.bl_desc=new M(e.bl_tree,O),e.bi_buf=0,e.bi_valid=0,H(e)},r._tr_stored_block=K,r._tr_flush_block=function(e,t,r,n){var o,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return a;return i}(e)),Z(e,e.l_desc),Z(e,e.d_desc),l=function(e){var t;for(Y(e,e.dyn_ltree,e.l_desc.max_code),Y(e,e.dyn_dtree,e.d_desc.max_code),Z(e,e.bl_desc),t=h-1;3<=t&&0===e.bl_tree[2*T[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=r+5,r+4<=o&&-1!==t?K(e,t,r,n):4===e.strategy||s===o?(U(e,2+(n?1:0),3),V(e,S,x)):(U(e,4+(n?1:0),3),function(e,t,r,n){var i;for(U(e,t-257,5),U(e,r-1,5),U(e,n-4,4),i=0;i<n;i++)U(e,e.bl_tree[2*T[i]+1],3);X(e,e.dyn_ltree,t-1),X(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),V(e,e.dyn_ltree,e.dyn_dtree)),H(e),n&&j(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(A[r]+c+1)]++,e.dyn_dtree[2*P(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){var t;U(e,2,3),B(e,b,S),16===(t=e).bi_valid?(z(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,r){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,r,n){(function(e){!function(e,t){if(!e.setImmediate){var r,n,i,a,o=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,r="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick(function(){h(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){i.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(h,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return s[o]=i,r(o),o++},u.clearImmediate=d}function d(e){delete s[e]}function h(e){if(l)setTimeout(h,0,e);else{var r=s[e];if(r){l=!0;try{!function(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(t,n)}}(r)}finally{d(e),l=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10);var i=t(n.exports),a={};function o(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.getOwnPropertyDescriptors&&(e=t.create(null,t.getOwnPropertyDescriptors(e))),t&&"function"==typeof t.freeze?t.freeze(e):e}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var l=o({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});var c=o({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});var u=o({script:!1,style:!1,textarea:!0,title:!0});function d(e){return e===h.HTML}var h=o({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),f=Object.keys(h).map(function(e){return h[e]});var p=o({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});a.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var r in t)s(t,r)&&(e[r]=t[r]);return e},a.find=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(s(e,n)){var i=e[n];if(t.call(void 0,i,n,e))return i}},a.freeze=o,a.HTML_BOOLEAN_ATTRIBUTES=l,a.HTML_RAW_TEXT_ELEMENTS=u,a.HTML_VOID_ELEMENTS=c,a.hasDefaultHTMLNamespace=function(e){return d(e)||e===h.XML_XHTML_APPLICATION},a.hasOwn=s,a.isHTMLBooleanAttribute=function(e){return s(l,e.toLowerCase())},a.isHTMLRawTextElement=function(e){var t=e.toLowerCase();return s(u,t)&&!u[t]},a.isHTMLEscapableRawTextElement=function(e){var t=e.toLowerCase();return s(u,t)&&u[t]},a.isHTMLMimeType=d,a.isHTMLVoidElement=function(e){return s(c,e.toLowerCase())},a.isValidMimeType=function(e){return f.indexOf(e)>-1},a.MIME_TYPE=h,a.NAMESPACE=p;var m={};function g(e,t){e.prototype=Object.create(Error.prototype,{constructor:{value:e},name:{value:e.name,enumerable:!0,writable:t}})}var b=a.freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),v=Object.keys(b);function y(e){return"number"==typeof e&&e>=1&&e<=25}function w(e,t){var r;y(e)?(this.name=v[e],this.message=t||""):(this.message=e,this.name="string"==typeof(r=t)&&r.substring(r.length-b.Error.length)===b.Error?t:b.Error),Error.captureStackTrace&&Error.captureStackTrace(this,w)}g(w,!0),Object.defineProperties(w.prototype,{code:{enumerable:!0,get:function(){var e=v.indexOf(this.name);return y(e)?e:0}}});for(var _={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},E=Object.entries(_),N=0;N<E.length;N++){w[E[N][0]]=E[N][1]}function T(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,T)}g(T),m.DOMException=w,m.DOMExceptionName=b,m.ExceptionCode=_,m.ParseError=T;var S={},x={};function k(e){try{"function"!=typeof e&&(e=RegExp);var t=new e("𝌆","u").exec("𝌆");return!!t&&2===t[0].length}catch(r){}return!1}var A=k();function C(e){if("["!==e.source[0])throw new Error(e+" can not be used with chars");return e.source.slice(1,e.source.lastIndexOf("]"))}function I(e,t){if("["!==e.source[0])throw new Error("/"+e.source+"/ can not be used with chars_without");if(!t||"string"!=typeof t)throw new Error(JSON.stringify(t)+" is not a valid search");if(-1===e.source.indexOf(t))throw new Error('"'+t+'" is not is /'+e.source+"/");if("-"===t&&1!==e.source.indexOf(t))throw new Error('"'+t+'" is not at the first postion of /'+e.source+"/");return new RegExp(e.source.replace(t,""),A?"u":"")}function D(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(e){var r="string"==typeof e;if(r&&void 0===t&&"|"===e)throw new Error("use regg instead of reg to wrap expressions with `|`!");return r?e:e.source}).join(""),A?"mu":"m")}function O(e){if(0===arguments.length)throw new Error("no parameters provided");return D.apply(O,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var R=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;A&&(R=D("[",C(R),"\\u{10000}-\\u{10FFFF}","]"));var L=new RegExp("[^"+C(R)+"]",A?"u":""),M=/[\x20\x09\x0D\x0A]/,P=C(M),z=D(M,"+"),U=D(M,"*"),B=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;A&&(B=D("[",C(B),"\\u{10000}-\\u{10FFFF}","]"));var F=D("[",C(B),C(/[-.0-9\xB7]/),C(/[\u0300-\u036F\u203F-\u2040]/),"]"),q=D(B,F,"*"),H=D(F,"+"),j=D("&",q,";"),G=O(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),W=O(j,"|",G),V=D("%",q,";"),Z=O(D('"',O(/[^%&"]/,"|",V,"|",W),"*",'"'),"|",D("'",O(/[^%&']/,"|",V,"|",W),"*","'")),Y=O('"',O(/[^<&"]/,"|",W),"*",'"',"|","'",O(/[^<&']/,"|",W),"*","'"),X=D(I(B,":"),I(F,":"),"*"),$=D(X,O(":",X),"?"),K=D("^",$,"$"),Q=D("(",$,")"),J=O(/"[^"]*"|'[^']*'/),ee=D(/^<\?/,"(",q,")",O(z,"(",R,"*?)"),"?",/\?>/),te=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,re=O('"',te,'*"',"|","'",I(te,"'"),"*'"),ne="\x3c!--",ie=D(ne,O(I(R,"-"),"|",D("-",I(R,"-"))),"*","--\x3e"),ae="#PCDATA",oe=O(D(/\(/,U,ae,O(U,/\|/,U,$),"*",U,/\)\*/),"|",D(/\(/,U,ae,U,/\)/)),se=O("EMPTY","|","ANY","|",oe,"|",D(/\([^>]+\)/,/[?*+]?/)),le=D("<!ELEMENT",z,O($,"|",V),z,O(se,"|",V),U,">"),ce=D("NOTATION",z,/\(/,U,q,O(U,/\|/,U,q),"*",U,/\)/),ue=D(/\(/,U,H,O(U,/\|/,U,H),"*",U,/\)/),de=O(ce,"|",ue),he=O(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",de),fe=O(/#REQUIRED|#IMPLIED/,"|",O(O("#FIXED",z),"?",Y)),pe=D("<!ATTLIST",z,q,O(z,q,z,he,z,fe),"*",U,">"),me="about:legacy-compat",ge=O('"'+me+'"',"|","'"+me+"'"),be="SYSTEM",ve="PUBLIC",ye=O(O(be,z,J),"|",O(ve,z,re,z,J)),we=D("^",O(O(be,z,"(?<SystemLiteralOnly>",J,")"),"|",O(ve,z,"(?<PubidLiteral>",re,")",z,"(?<SystemLiteral>",J,")"))),_e=D("^",re,"$"),Ee=D("^",J,"$"),Ne=O(z,"NDATA",z,q),Te="<!ENTITY",Se=D(Te,z,q,z,O(Z,"|",O(ye,Ne,"?")),U,">"),xe=O(Z,"|",ye),ke=O(Se,"|",D(Te,z,"%",z,q,z,xe,U,">")),Ae=D(ve,z,re),Ce=D("<!NOTATION",z,q,z,O(ye,"|",Ae),U,">"),Ie=D(U,"=",U),De=/1[.]\d+/,Oe=D(z,"version",Ie,O("'",De,"'","|",'"',De,'"')),Re=/[A-Za-z][-A-Za-z0-9._]*/,Le=D(/^<\?xml/,Oe,O(z,"encoding",Ie,O('"',Re,'"',"|","'",Re,"'")),"?",O(z,"standalone",Ie,O("'",O("yes","|","no"),"'","|",'"',O("yes","|","no"),'"')),"?",U,/\?>/),Me=D(R,"*?",/\]\]>/),Pe=D(/<!\[CDATA\[/,Me);x.chars=C,x.chars_without=I,x.detectUnicodeSupport=k,x.reg=D,x.regg=O,x.ABOUT_LEGACY_COMPAT=me,x.ABOUT_LEGACY_COMPAT_SystemLiteral=ge,x.AttlistDecl=pe,x.CDATA_START="<![CDATA[",x.CDATA_END="]]>",x.CDSect=Pe,x.Char=R,x.Comment=ie,x.COMMENT_START=ne,x.COMMENT_END="--\x3e",x.DOCTYPE_DECL_START="<!DOCTYPE",x.elementdecl=le,x.EntityDecl=ke,x.EntityValue=Z,x.ExternalID=ye,x.ExternalID_match=we,x.Name=q,x.NotationDecl=Ce,x.Reference=W,x.PEReference=V,x.PI=ee,x.PUBLIC=ve,x.PubidLiteral=re,x.PubidLiteral_match=_e,x.QName=$,x.QName_exact=K,x.QName_group=Q,x.S=z,x.SChar_s=P,x.S_OPT=U,x.SYSTEM=be,x.SystemLiteral=J,x.SystemLiteral_match=Ee,x.InvalidChar=L,x.UNICODE_REPLACEMENT_CHARACTER="�",x.UNICODE_SUPPORT=A,x.XMLDecl=Le;var ze=a,Ue=ze.find,Be=ze.hasDefaultHTMLNamespace,Fe=ze.hasOwn,qe=ze.isHTMLMimeType,He=ze.isHTMLRawTextElement,je=ze.isHTMLVoidElement,Ge=ze.MIME_TYPE,We=ze.NAMESPACE,Ve=Symbol(),Ze=m,Ye=Ze.DOMException,Xe=Ze.DOMExceptionName,$e=x;function Ke(e){if(e!==Ve)throw new TypeError("Illegal constructor")}function Qe(e){return""!==e}function Je(e,t){return Fe(e,t)||(e[t]=!0),e}function et(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(Qe):[]}(e);return Object.keys(t.reduce(Je,{}))}function tt(e){if(!$e.QName_exact.test(e))throw new Ye(Ye.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function rt(e,t){tt(t),e=e||null;var r=null,n=t;if(t.indexOf(":")>=0){var i=t.split(":");r=i[0],n=i[1]}if(null!==r&&null===e)throw new Ye(Ye.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===r&&e!==ze.NAMESPACE.XML)throw new Ye(Ye.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===r||"xmlns"===t)&&e!==ze.NAMESPACE.XMLNS)throw new Ye(Ye.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(e===ze.NAMESPACE.XMLNS&&"xmlns"!==r&&"xmlns"!==t)throw new Ye(Ye.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[e,r,n]}function nt(e,t){for(var r in e)Fe(e,r)&&(t[r]=e[r])}function it(e,t){var r=e.prototype;if(!(r instanceof t)){let n=function(){};n.prototype=t.prototype,n=new n,nt(r,n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var at={},ot=at.ELEMENT_NODE=1,st=at.ATTRIBUTE_NODE=2,lt=at.TEXT_NODE=3,ct=at.CDATA_SECTION_NODE=4,ut=at.ENTITY_REFERENCE_NODE=5,dt=at.ENTITY_NODE=6,ht=at.PROCESSING_INSTRUCTION_NODE=7,ft=at.COMMENT_NODE=8,pt=at.DOCUMENT_NODE=9,mt=at.DOCUMENT_TYPE_NODE=10,gt=at.DOCUMENT_FRAGMENT_NODE=11,bt=at.NOTATION_NODE=12,vt=ze.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function yt(e,t){if(t.length<e.length)return yt(t,e);var r=null;for(var n in e){if(e[n]!==t[n])return r;r=e[n]}return r}function wt(e){return e.guid||(e.guid=Math.random()),e.guid}function _t(){}function Et(e,t){this._node=e,this._refresh=t,Nt(this)}function Nt(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(ur(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;n in e;n++)Fe(e,n)&&delete e[n];nt(r,e),e._inc=t}}function Tt(){}function St(e,t){for(var r=0;r<e.length;){if(e[r]===t)return r;r++}}function xt(e,t,r,n){if(n?t[St(t,n)]=r:(t[t.length]=r,t.length++),e){r.ownerElement=e;var i=e.ownerDocument;i&&(n&&Lt(i,e,n),function(e,t,r){e&&e._inc++;var n=r.namespaceURI;n===We.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(i,e,r))}}function kt(e,t,r){var n=St(t,r);if(n>=0){for(var i=t.length-1;n<=i;)t[n]=t[++n];if(t.length=i,e){var a=e.ownerDocument;a&&Lt(a,e,r),r.ownerElement=null}}}function At(){}function Ct(e){Ke(e)}function It(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function Dt(e,t){Ot(e,null,{enter:function(e){return!t(e)||Ot.STOP}})}function Ot(e,t,r){for(var n=[{node:e,context:t,phase:Ot.ENTER}];n.length>0;){var i=n.pop();if(i.phase===Ot.ENTER){var a=r.enter(i.node,i.context);if(a===Ot.STOP)return Ot.STOP;if(n.push({node:i.node,context:a,phase:Ot.EXIT}),null==a)continue;for(var o=i.node.lastChild;o;)n.push({node:o,context:a,phase:Ot.ENTER}),o=o.previousSibling}else r.exit&&r.exit(i.node,i.context)}}function Rt(e,t){Ke(e);var r=t||{};this.ownerDocument=this,this.contentType=r.contentType||Ge.XML_APPLICATION,this.type=qe(this.contentType)?"html":"xml"}function Lt(e,t,r,n){e&&e._inc++,r.namespaceURI===We.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function Mt(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r&&!r.nextSibling)n[n.length++]=r;else{for(var i=t.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a,delete n[n.length]}}}function Pt(e,t){if(e!==t.parentNode)throw new Ye(Ye.NOT_FOUND_ERR,"child's parent is not parent");var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,Mt(e.ownerDocument,e),t.parentNode=null,t.previousSibling=null,t.nextSibling=null,t}function zt(e){return e&&e.nodeType===Ct.DOCUMENT_TYPE_NODE}function Ut(e){return e&&e.nodeType===Ct.ELEMENT_NODE}function Bt(e){return e&&e.nodeType===Ct.TEXT_NODE}function Ft(e,t){var r=e.childNodes||[];if(Ue(r,Ut)||zt(t))return!1;var n=Ue(r,zt);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function qt(e,t){var r=e.childNodes||[];if(Ue(r,function(e){return Ut(e)&&e!==t}))return!1;var n=Ue(r,zt);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function Ht(e,t,r){if(!function(e){return e&&(e.nodeType===Ct.DOCUMENT_NODE||e.nodeType===Ct.DOCUMENT_FRAGMENT_NODE||e.nodeType===Ct.ELEMENT_NODE)}(e))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new Ye(Ye.NOT_FOUND_ERR,"child not in parent");if(!function(e){return e&&(e.nodeType===Ct.CDATA_SECTION_NODE||e.nodeType===Ct.COMMENT_NODE||e.nodeType===Ct.DOCUMENT_FRAGMENT_NODE||e.nodeType===Ct.DOCUMENT_TYPE_NODE||e.nodeType===Ct.ELEMENT_NODE||e.nodeType===Ct.PROCESSING_INSTRUCTION_NODE||e.nodeType===Ct.TEXT_NODE)}(t)||zt(t)&&e.nodeType!==Ct.DOCUMENT_NODE)throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function jt(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===Ct.DOCUMENT_FRAGMENT_NODE){var a=i.filter(Ut);if(a.length>1||Ue(i,Bt))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===a.length&&!Ft(e,r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(Ut(t)&&!Ft(e,r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(zt(t)){if(Ue(n,zt))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var o=Ue(n,Ut);if(r&&n.indexOf(o)<n.indexOf(r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!r&&o)throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function Gt(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===Ct.DOCUMENT_FRAGMENT_NODE){var a=i.filter(Ut);if(a.length>1||Ue(i,Bt))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===a.length&&!qt(e,r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(Ut(t)&&!qt(e,r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(zt(t)){if(Ue(n,function(e){return zt(e)&&e!==r}))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var o=Ue(n,Ut);if(r&&n.indexOf(o)<n.indexOf(r))throw new Ye(Ye.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function Wt(e,t,r,n){Ht(e,t,r),e.nodeType===Ct.DOCUMENT_NODE&&(n||jt)(e,t,r);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===gt){var a=t.firstChild;if(null==a)return t;var o=t.lastChild}else a=o=t;var s=r?r.previousSibling:e.lastChild;a.previousSibling=s,o.nextSibling=r,s?s.nextSibling=a:e.firstChild=a,null==r?e.lastChild=o:r.previousSibling=o;do{a.parentNode=e}while(a!==o&&(a=a.nextSibling));return Mt(e.ownerDocument||e,e,t),t.nodeType==gt&&(t.firstChild=t.lastChild=null),t}function Vt(e){Ke(e),this._nsMap=Object.create(null)}function Zt(e){Ke(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function Yt(e){Ke(e)}function Xt(e){Ke(e)}function $t(e){Ke(e)}function Kt(e){Ke(e)}function Qt(e){Ke(e)}function Jt(e){Ke(e)}function er(e){Ke(e)}function tr(e){Ke(e)}function rr(e){Ke(e)}function nr(e){Ke(e)}function ir(){}function ar(e){var t;t="function"==typeof e?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:null!=e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:!1!==e.splitCDATASections,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};var r=[],n=this.nodeType===pt&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&null==i&&null==(i=n.lookupPrefix(a)))var o=[{namespace:a,prefix:null}];return lr(this,r,o,t),r.join("")}function or(e,t,r){var n=e.prefix||"",i=e.namespaceURI;if(!i)return!1;if("xml"===n&&i===We.XML||i===We.XMLNS)return!1;for(var a=r.length;a--;){var o=r[a];if(o.prefix===n)return o.namespace!==i}return!0}function sr(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,It),'"')}function lr(e,t,r,n){r||(r=[]);var i=n.nodeFilter,a=n.requireWellFormed,o=n.splitCDATASections,s="html"===(e.nodeType===pt?e:e.ownerDocument).type;Ot(e,{ns:r},{enter:function(e,r){var l=r.ns;if(i){if(!(e=i(e)))return null;if("string"==typeof e)return t.push(e),null}switch(e.nodeType){case ot:var c=e.attributes,u=c.length,d=e.tagName,h=d;if(!s&&!e.prefix&&e.namespaceURI){for(var f,p=0;p<c.length;p++)if("xmlns"===c.item(p).name){f=c.item(p).value;break}if(!f)for(var m=l.length-1;m>=0;m--){if(""===(g=l[m]).prefix&&g.namespace===e.namespaceURI){f=g.namespace;break}}if(f!==e.namespaceURI)for(m=l.length-1;m>=0;m--){var g;if((g=l[m]).namespace===e.namespaceURI){g.prefix&&(h=g.prefix+":"+d);break}}}t.push("<",h);for(var b=l.slice(),v=0;v<u;v++){"xmlns"==(y=c.item(v)).prefix?b.push({prefix:y.localName,namespace:y.value}):"xmlns"==y.nodeName&&b.push({prefix:"",namespace:y.value})}for(v=0;v<u;v++){var y;if(or(y=c.item(v),0,b)){var w=y.prefix||"",_=y.namespaceURI;sr(t,w?"xmlns:"+w:"xmlns",_),b.push({prefix:w,namespace:_})}var E=i?i(y):y;E&&("string"==typeof E?t.push(E):sr(t,E.name,E.value))}if(d===h&&or(e,0,b)){var N=e.prefix||"";_=e.namespaceURI;sr(t,N?"xmlns:"+N:"xmlns",_),b.push({prefix:N,namespace:_})}var T=!e.firstChild;if(T&&(s||e.namespaceURI===We.HTML)&&(T=je(d)),T)return t.push("/>"),null;if(t.push(">"),s&&He(d)){for(var S=e.firstChild;S;)S.data?t.push(S.data):lr(S,t,b.slice(),n),S=S.nextSibling;return t.push("</",h,">"),null}return{ns:b,tag:h};case pt:case gt:if(a&&e.nodeType===pt&&null==e.documentElement)throw new Ye("The Document has no documentElement",Xe.InvalidStateError);return{ns:l};case st:return sr(t,e.name,e.value),null;case lt:if(a&&$e.InvalidChar.test(e.data))throw new Ye("The Text node data contains characters outside the XML Char production",Xe.InvalidStateError);return t.push(e.data.replace(/[<&>]/g,It)),null;case ct:if(a&&-1!==e.data.indexOf("]]>"))throw new Ye('The CDATASection data contains "]]>"',Xe.InvalidStateError);return o?t.push($e.CDATA_START,e.data.replace(/]]>/g,"]]]]><![CDATA[>"),$e.CDATA_END):t.push($e.CDATA_START,e.data,$e.CDATA_END),null;case ft:if(a){if($e.InvalidChar.test(e.data))throw new Ye("The comment node data contains characters outside the XML Char production",Xe.InvalidStateError);if(-1!==e.data.indexOf("--")||"-"===e.data[e.data.length-1])throw new Ye('The comment node data contains "--" or ends with "-"',Xe.InvalidStateError)}return t.push($e.COMMENT_START,e.data,$e.COMMENT_END),null;case mt:var x=e.publicId,k=e.systemId;if(a){if(x&&!$e.PubidLiteral_match.test(x))throw new Ye("DocumentType publicId is not a valid PubidLiteral",Xe.InvalidStateError);if(k&&"."!==k&&!$e.SystemLiteral_match.test(k))throw new Ye("DocumentType systemId is not a valid SystemLiteral",Xe.InvalidStateError);if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new Ye('DocumentType internalSubset contains "]>"',Xe.InvalidStateError)}return t.push($e.DOCTYPE_DECL_START," ",e.name),x?(t.push(" ",$e.PUBLIC," ",x),k&&"."!==k&&t.push(" ",k)):k&&"."!==k&&t.push(" ",$e.SYSTEM," ",k),e.internalSubset&&t.push(" [",e.internalSubset,"]"),t.push(">"),null;case ht:if(a){if(-1!==e.target.indexOf(":")||"xml"===e.target.toLowerCase())throw new Ye("The ProcessingInstruction target is not well-formed",Xe.InvalidStateError);if($e.InvalidChar.test(e.data))throw new Ye("The ProcessingInstruction data contains characters outside the XML Char production",Xe.InvalidStateError);if(-1!==e.data.indexOf("?>"))throw new Ye('The ProcessingInstruction data contains "?>"',Xe.InvalidStateError)}return t.push("<?",e.target," ",e.data,"?>"),null;case ut:return t.push("&",e.nodeName,";"),null;default:return t.push("??",e.nodeName),null}},exit:function(e,r){r&&r.tag&&t.push("</",r.tag,">")}})}function cr(e,t,r){var n;return Ot(t,null,{enter:function(t,i){var a=new t.constructor(Ve);for(var o in t)if(Fe(t,o)){var s=t[o];"object"!=typeof s&&s!=a[o]&&(a[o]=s)}t.childNodes&&(a.childNodes=new _t),a.ownerDocument=e;var l=r;switch(a.nodeType){case ot:var c=t.attributes,u=a.attributes=new Tt,d=c.length;u._ownerElement=a;for(var h=0;h<d;h++)a.setAttributeNode(cr(e,c.item(h),!0));break;case st:l=!0}return null!==i?i.appendChild(a):n=a,l?a:null}}),n}function ur(e,t,r){e[t]=r}function dr(e){for(var t=[],r=e.firstChild;r;)r.nodeType===ot&&t.push(r),r=r.nextSibling;return t}_t.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){var t;t="function"==typeof e?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:!1!==e.splitCDATASections,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};for(var r=[],n=0;n<this.length;n++)lr(this[n],r,null,t);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},_t.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},Et.prototype.item=function(e){return Nt(this),this[e]||null},it(Et,_t),Tt.prototype={length:0,item:_t.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var t=0;t<this.length;){var r=this[t];if(r.nodeName===e)return r;t++}return null},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!==this._ownerElement)throw new Ye(Ye.INUSE_ATTRIBUTE_ERR);var r=this.getNamedItemNS(e.namespaceURI,e.localName);return r===e?e:(xt(this._ownerElement,this,e,r),r)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var t=this.getNamedItem(e);if(!t)throw new Ye(Ye.NOT_FOUND_ERR,e);return kt(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);if(!r)throw new Ye(Ye.NOT_FOUND_ERR,e?e+" : "+t:t);return kt(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){e||(e=null);for(var r=0;r<this.length;){var n=this[r];if(n.localName===t&&n.namespaceURI===e)return n;r++}return null}},Tt.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},At.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=Ge.XML_APPLICATION;e===We.HTML?n=Ge.XML_XHTML_APPLICATION:e===We.SVG&&(n=Ge.XML_SVG_IMAGE);var i=new Rt(Ve,{contentType:n});if(i.implementation=this,i.childNodes=new _t,i.doctype=r||null,r&&i.appendChild(r),t){var a=i.createElementNS(e,t);i.appendChild(a)}return i},createDocumentType:function(e,t,r,n){tt(e);var i=new Qt(Ve);return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=r||"",i.internalSubset=n||"",i.childNodes=new _t,i},createHTMLDocument:function(e){var t=new Rt(Ve,{contentType:Ge.HTML});if(t.implementation=this,t.childNodes=new _t,!1!==e){t.doctype=this.createDocumentType("html"),t.doctype.ownerDocument=t,t.appendChild(t.doctype);var r=t.createElement("html");t.appendChild(r);var n=t.createElement("head");if(r.appendChild(n),"string"==typeof e){var i=t.createElement("title");i.appendChild(t.createTextNode(e)),n.appendChild(i)}r.appendChild(t.createElement("body"))}return t}},Ct.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var t=e;do{if(this===t)return!0;t=t.parentNode}while(t);return!1},getRootNode:function(e){var t=this;do{if(!t.parentNode)return t;t=t.parentNode}while(t)},isEqualNode:function(e){if(!e)return!1;for(var t=[{node:this,other:e}];t.length>0;){var r=t.pop(),n=r.node,i=r.other;if(n.nodeType!==i.nodeType)return!1;switch(n.nodeType){case n.DOCUMENT_TYPE_NODE:if(n.name!==i.name)return!1;if(n.publicId!==i.publicId)return!1;if(n.systemId!==i.systemId)return!1;break;case n.ELEMENT_NODE:if(n.namespaceURI!==i.namespaceURI)return!1;if(n.prefix!==i.prefix)return!1;if(n.localName!==i.localName)return!1;if(n.attributes.length!==i.attributes.length)return!1;for(var a=0;a<n.attributes.length;a++){var o=n.attributes.item(a),s=i.getAttributeNodeNS(o.namespaceURI,o.localName);if(!s)return!1;t.push({node:o,other:s})}break;case n.ATTRIBUTE_NODE:if(n.namespaceURI!==i.namespaceURI)return!1;if(n.localName!==i.localName)return!1;if(n.value!==i.value)return!1;break;case n.PROCESSING_INSTRUCTION_NODE:if(n.target!==i.target||n.data!==i.data)return!1;break;case n.TEXT_NODE:case n.CDATA_SECTION_NODE:case n.COMMENT_NODE:if(n.data!==i.data)return!1}if(n.childNodes.length!==i.childNodes.length)return!1;for(a=n.childNodes.length-1;a>=0;a--)t.push({node:n.childNodes[a],other:i.childNodes[a]})}return!0},isSameNode:function(e){return this===e},insertBefore:function(e,t){return Wt(this,e,t)},replaceChild:function(e,t){Wt(this,e,t,Gt),t&&this.removeChild(t)},removeChild:function(e){return Pt(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return cr(this.ownerDocument||this,this,e)},normalize:function(){Ot(this,null,{enter:function(e){for(var t=e.firstChild;t;){var r=t.nextSibling;null!==r&&r.nodeType===lt&&t.nodeType===lt?(e.removeChild(r),t.appendData(r.data)):t=r}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var n in r)if(Fe(r,n)&&r[n]===e)return n;t=t.nodeType==st?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Fe(r,e))return r[e];t=t.nodeType==st?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)},compareDocumentPosition:function(e){if(this===e)return 0;var t=e,r=this,n=null,i=null;if(t instanceof Zt&&(t=(n=t).ownerElement),r instanceof Zt&&(r=(i=r).ownerElement,n&&t&&r===t))for(var a,o=0;a=r.attributes[o];o++){if(a===n)return vt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+vt.DOCUMENT_POSITION_PRECEDING;if(a===i)return vt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+vt.DOCUMENT_POSITION_FOLLOWING}if(!t||!r||r.ownerDocument!==t.ownerDocument)return vt.DOCUMENT_POSITION_DISCONNECTED+vt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(wt(r.ownerDocument)>wt(t.ownerDocument)?vt.DOCUMENT_POSITION_FOLLOWING:vt.DOCUMENT_POSITION_PRECEDING);if(i&&t===r)return vt.DOCUMENT_POSITION_CONTAINS+vt.DOCUMENT_POSITION_PRECEDING;if(n&&t===r)return vt.DOCUMENT_POSITION_CONTAINED_BY+vt.DOCUMENT_POSITION_FOLLOWING;for(var s=[],l=t.parentNode;l;){if(!i&&l===r)return vt.DOCUMENT_POSITION_CONTAINED_BY+vt.DOCUMENT_POSITION_FOLLOWING;s.push(l),l=l.parentNode}s.reverse();for(var c=[],u=r.parentNode;u;){if(!n&&u===t)return vt.DOCUMENT_POSITION_CONTAINS+vt.DOCUMENT_POSITION_PRECEDING;c.push(u),u=u.parentNode}c.reverse();var d=yt(s,c);for(var h in d.childNodes){var f=d.childNodes[h];if(f===r)return vt.DOCUMENT_POSITION_FOLLOWING;if(f===t)return vt.DOCUMENT_POSITION_PRECEDING;if(c.indexOf(f)>=0)return vt.DOCUMENT_POSITION_FOLLOWING;if(s.indexOf(f)>=0)return vt.DOCUMENT_POSITION_PRECEDING}return 0}},nt(at,Ct),nt(at,Ct.prototype),nt(vt,Ct),nt(vt,Ct.prototype),Ot.STOP=Symbol("walkDOM.STOP"),Ot.ENTER=0,Ot.EXIT=1,Rt.prototype={implementation:null,nodeName:"#document",nodeType:pt,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType===gt){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return Wt(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===ot&&(this.documentElement=e),e},removeChild:function(e){var t=Pt(this,e);return t===this.documentElement&&(this.documentElement=null),t},replaceChild:function(e,t){Wt(this,e,t,Gt),e.ownerDocument=this,t&&this.removeChild(t),Ut(e)&&(this.documentElement=e)},importNode:function(e,t){return function(e,t,r){var n;return Ot(t,null,{enter:function(t,i){var a=t.cloneNode(!1);return a.ownerDocument=e,a.parentNode=null,null===i?n=a:i.appendChild(a),t.nodeType===st||r?a:null}}),n}(this,e,t)},getElementById:function(e){var t=null;return Dt(this.documentElement,function(r){if(r.nodeType==ot&&r.getAttribute("id")==e)return t=r,!0}),t},createElement:function(e){var t=new Vt(Ve);return t.ownerDocument=this,"html"===this.type&&(e=e.toLowerCase()),Be(this.contentType)&&(t.namespaceURI=We.HTML),t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new _t,(t.attributes=new Tt)._ownerElement=t,t},createDocumentFragment:function(){var e=new rr(Ve);return e.ownerDocument=this,e.childNodes=new _t,e},createTextNode:function(e){var t=new Xt(Ve);return t.ownerDocument=this,t.childNodes=new _t,t.appendData(e),t},createComment:function(e){var t=new $t(Ve);return t.ownerDocument=this,t.childNodes=new _t,t.appendData(e),t},createCDATASection:function(e){if(-1!==e.indexOf("]]>"))throw new Ye(Ye.INVALID_CHARACTER_ERR,'data contains "]]>"');var t=new Kt(Ve);return t.ownerDocument=this,t.childNodes=new _t,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new nr(Ve);return r.ownerDocument=this,r.childNodes=new _t,r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){if(!$e.QName_exact.test(e))throw new Ye(Ye.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return"html"===this.type&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var t=new Zt(Ve);return t.ownerDocument=this,t.childNodes=new _t,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!$e.Name.test(e))throw new Ye(Ye.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if("html"===this.type)throw new Ye("document is an html document",Xe.NotSupportedError);var t=new tr(Ve);return t.ownerDocument=this,t.childNodes=new _t,t.nodeName=e,t},createElementNS:function(e,t){var r=rt(e,t),n=new Vt(Ve),i=n.attributes=new Tt;return n.childNodes=new _t,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],i._ownerElement=n,n},createAttributeNS:function(e,t){var r=rt(e,t),n=new Zt(Ve);return n.ownerDocument=this,n.childNodes=new _t,n.nodeName=t,n.name=t,n.specified=!0,n.namespaceURI=r[0],n.prefix=r[1],n.localName=r[2],n}},it(Rt,Ct),Vt.prototype={nodeType:ot,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return"html"===this.ownerDocument.type&&this.namespaceURI===We.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t?t.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,t){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var r=this.getAttributeNode(e);r?r.value=r.nodeValue=""+t:((r=this.ownerDocument._createAttribute(e)).value=r.nodeValue=""+t,this.setAttributeNode(r))},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r?r.value:null},setAttributeNS:function(e,t,r){var n=rt(e,t)[2],i=this.getAttributeNodeNS(e,n);i?i.value=i.nodeValue=""+r:((i=this.ownerDocument.createAttributeNS(e,t)).value=i.nodeValue=""+r,this.setAttributeNode(i))},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByClassName:function(e){var t=et(e);return new Et(this,function(r){var n=[];return t.length>0&&Dt(r,function(i){if(i!==r&&i.nodeType===ot){var a=i.getAttribute("class");if(a){var o=e===a;if(!o){var s=et(a);o=t.every((l=s,function(e){return l&&-1!==l.indexOf(e)}))}o&&n.push(i)}}var l}),n})},getElementsByTagName:function(e){var t="html"===(this.nodeType===pt?this:this.ownerDocument).type,r=e.toLowerCase();return new Et(this,function(n){var i=[];return Dt(n,function(a){a!==n&&a.nodeType===ot&&(("*"===e||a.getQualifiedName()===(t&&a.namespaceURI===We.HTML?r:e))&&i.push(a))}),i})},getElementsByTagNameNS:function(e,t){return new Et(this,function(r){var n=[];return Dt(r,function(i){i===r||i.nodeType!==ot||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||n.push(i)}),n})}},Rt.prototype.getElementsByClassName=Vt.prototype.getElementsByClassName,Rt.prototype.getElementsByTagName=Vt.prototype.getElementsByTagName,Rt.prototype.getElementsByTagNameNS=Vt.prototype.getElementsByTagNameNS,it(Vt,Ct),Zt.prototype.nodeType=st,it(Zt,Ct),Yt.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},it(Yt,Ct),Xt.prototype={nodeName:"#text",nodeType:lt,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},it(Xt,Yt),$t.prototype={nodeName:"#comment",nodeType:ft},it($t,Yt),Kt.prototype={nodeName:"#cdata-section",nodeType:ct},it(Kt,Xt),Qt.prototype.nodeType=mt,it(Qt,Ct),Jt.prototype.nodeType=bt,it(Jt,Ct),er.prototype.nodeType=dt,it(er,Ct),tr.prototype.nodeType=ut,it(tr,Ct),rr.prototype.nodeName="#document-fragment",rr.prototype.nodeType=gt,it(rr,Ct),nr.prototype.nodeType=ht,it(nr,Yt),ir.prototype.serializeToString=function(e,t){return ar.call(e,t)},Ct.prototype.toString=ar;try{Object.defineProperty&&(Object.defineProperty(Et.prototype,"length",{get:function(){return Nt(this),this.$$length}}),Object.defineProperty(Ct.prototype,"textContent",{get:function(){if(this.nodeType===ot||this.nodeType===gt){var e=[];return Ot(this,null,{enter:function(t){return t.nodeType===ot||t.nodeType===gt||(t.nodeType===ht||t.nodeType===ft?null:void e.push(t.nodeValue))}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case ot:case gt:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Object.defineProperty(Vt.prototype,"children",{get:function(){return new Et(this,dr)}}),Object.defineProperty(Rt.prototype,"children",{get:function(){return new Et(this,dr)}}),Object.defineProperty(rr.prototype,"children",{get:function(){return new Et(this,dr)}}),ur=function(e,t,r){e["$$"+t]=r})}catch(Pi){}S._updateLiveList=Nt,S.Attr=Zt,S.CDATASection=Kt,S.CharacterData=Yt,S.Comment=$t,S.Document=Rt,S.DocumentFragment=rr,S.DocumentType=Qt,S.DOMImplementation=At,S.Element=Vt,S.Entity=er,S.EntityReference=tr,S.LiveNodeList=Et,S.NamedNodeMap=Tt,S.Node=Ct,S.NodeList=_t,S.Notation=Jt,S.Text=Xt,S.ProcessingInstruction=nr,S.walkDOM=Ot,S.XMLSerializer=ir;var hr,fr,pr={},mr={};hr=mr,fr=a.freeze,hr.XML_ENTITIES=fr({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),hr.HTML_ENTITIES=fr({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),hr.entityMap=hr.HTML_ENTITIES;var gr={},br=a,vr=x,yr=m,wr=br.isHTMLEscapableRawTextElement,_r=br.isHTMLMimeType,Er=br.isHTMLRawTextElement,Nr=br.hasOwn,Tr=br.NAMESPACE,Sr=yr.ParseError,xr=yr.DOMException;function kr(){}kr.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),Rr(t,t=Object.create(null)),function(e,t,r,n,i){var a=_r(n.mimeType);e.indexOf(vr.UNICODE_REPLACEMENT_CHARACTER)>=0&&i.warning("Unicode replacement character detected, source encoding issues?");function o(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}function s(e){var t=";"===e[e.length-1]?e:e+";";if(!a&&t!==e)return i.error("EntityRef: expecting ;"),e;var n=vr.Reference.exec(t);if(!n||n[0].length!==t.length)return i.error("entity not matching Reference production: "+e),e;var s=t.slice(1,-1);return Nr(r,s)?r[s]:"#"===s.charAt(0)?o(parseInt(s.substring(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function l(t){if(t>g){var r=e.substring(g,t).replace(Ar,s);h&&f(g),n.characters(r,0,t-g),g=t}}var c=0,u=0,d=/\r\n?|\n|$/g,h=n.locator;function f(t,r){for(;t>=u&&(r=d.exec(e));)c=u,u=r.index+r[0].length,h.lineNumber++;h.columnNumber=t-c+1}var p=[{currentNSMap:t}],m=[],g=0;for(;;){try{var b=e.indexOf("<",g);if(b<0){if(!a&&m.length>0)return i.fatalError("unclosed xml tag(s): "+m.join(", "));if(!e.substring(g).match(/^\s*$/)){var v=n.doc,y=v.createTextNode(e.substring(g));if(v.documentElement)return i.error("Extra content at the end of the document");v.appendChild(y),n.currentElement=y}return}if(b>g){var w=e.substring(g,b);a||0!==m.length||(w=w.replace(new RegExp(vr.S_OPT.source,"g"),""))&&i.error("Unexpected content outside root element: '"+w+"'"),l(b)}switch(e.charAt(b+1)){case"/":var _=e.indexOf(">",b+2),E=e.substring(b+2,_>0?_:void 0);if(!E)return i.fatalError("end tag name missing");var N=_>0&&vr.reg("^",vr.QName_group,vr.S_OPT,"$").exec(E);if(!N)return i.fatalError('end tag name contains invalid characters: "'+E+'"');if(!n.currentElement&&!n.doc.documentElement)return;var T=m[m.length-1]||n.currentElement.tagName||n.doc.documentElement.tagName||"";if(T!==N[1]){var S=N[1].toLowerCase();if(!a||T.toLowerCase()!==S)return i.fatalError('Opening and ending tag mismatch: "'+T+'" != "'+E+'"')}var x=p.pop();m.pop();var k=x.localNSMap;if(n.endElement(x.uri,x.localName,T),k)for(var A in k)Nr(k,A)&&n.endPrefixMapping(A);_++;break;case"?":h&&f(b),_=Pr(e,b,n,i);break;case"!":h&&f(b),_=Mr(e,b,n,i,a);break;default:h&&f(b);var C=new zr,I=p[p.length-1].currentNSMap,D=(_=Ir(e,b,C,I,s,i,a),C.length);if(C.closed||(a&&br.isHTMLVoidElement(C.tagName)?C.closed=!0:m.push(C.tagName)),h&&D){for(var O=Cr(h,{}),R=0;R<D;R++){var L=C[R];f(L.offset),L.locator=Cr(h,{})}n.locator=O,Dr(C,n,I)&&p.push(C),n.locator=h}else Dr(C,n,I)&&p.push(C);a&&!C.closed?_=Or(e,_,C.tagName,s,n):_++}}catch(Pi){if(Pi instanceof Sr)throw Pi;if(Pi instanceof xr)throw new Sr(Pi.name+": "+Pi.message,n.locator,Pi);i.error("element parse error: "+Pi),_=-1}_>g?g=_:l(Math.max(b,g)+1)}}(e,t,r,n,this.errorHandler),n.endDocument()}};var Ar=/&#?\w+;?/g;function Cr(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Ir(e,t,r,n,i,a,o){function s(e,t,n){return Nr(r.attributeNames,e)?a.fatalError("Attribute "+e+" redefined"):!o&&t.indexOf("<")>=0?a.fatalError("Unescaped '<' not allowed in attributes values"):void r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(Ar,i),n)}for(var l,c=++t,u=0;;){var d=e.charAt(c);switch(d){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(a.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");s(l,h=e.slice(t,c),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');s(l,h=e.slice(t,c),t),a.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==u&&r.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,c)).slice(-1)&&(r.closed=!0,h=h.slice(0,-1));case 2:2===u&&(h=l),4==u?(a.warning('attribute "'+h+'" missed quot(")!'),s(l,h,t)):(o||a.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,t));break;case 3:if(!o)return a.fatalError("AttValue: ' or \" expected")}return c;case"":d=" ";default:if(d<=" ")switch(u){case 0:r.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var h=e.slice(t,c);a.warning('attribute "'+h+'" missed quot(")!!'),s(l,h,t);case 5:u=6}else switch(u){case 2:o||a.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,u=1;break;case 5:a.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function Dr(e,t,r){for(var n=e.tagName,i=null,a=e.length;a--;){var o=e[a],s=o.qName,l=o.value;if((h=s.indexOf(":"))>0)var c=o.prefix=s.slice(0,h),u=s.slice(h+1),d="xmlns"===c&&u;else u=s,c=null,d="xmlns"===s&&"";o.localName=u,!1!==d&&(null==i&&(i=Object.create(null),Rr(r,r=Object.create(null))),r[d]=i[d]=l,o.uri=Tr.XMLNS,t.startPrefixMapping(d,l))}for(a=e.length;a--;)(o=e[a]).prefix&&("xml"===o.prefix&&(o.uri=Tr.XML),"xmlns"!==o.prefix&&(o.uri=r[o.prefix]));var h;(h=n.indexOf(":"))>0?(c=e.prefix=n.slice(0,h),u=e.localName=n.slice(h+1)):(c=null,u=e.localName=n);var f=e.uri=r[c||""];if(t.startElement(f,u,n,e),!e.closed)return e.currentNSMap=r,e.localNSMap=i,!0;if(t.endElement(f,u,n),i)for(c in i)Nr(i,c)&&t.endPrefixMapping(c)}function Or(e,t,r,n,i){var a=wr(r);if(a||Er(r)){var o=e.indexOf("</"+r+">",t),s=e.substring(t+1,o);return a&&(s=s.replace(Ar,n)),i.characters(s,0,s.length),o}return t+1}function Rr(e,t){for(var r in e)Nr(e,r)&&(t[r]=e[r])}function Lr(e,t){var r=t;function n(t){return t=t||0,e.charAt(r+t)}function i(e){r+=e=e||1}function a(){return e.substring(r)}return{char:n,getIndex:function(){return r},getMatch:function(e){var t=vr.reg("^",e).exec(a());return t?(i(t[0].length),t[0]):null},getSource:function(){return e},skip:i,skipBlanks:function(){for(var t=0;r<e.length;){var a=n();if(" "!==a&&"\n"!==a&&"\t"!==a&&"\r"!==a)return t;t++,i()}return-1},substringFromIndex:a,substringStartsWith:function(t){return e.substring(r,r+t.length)===t},substringStartsWithCaseInsensitive:function(t){return e.substring(r,r+t.length).toUpperCase()===t.toUpperCase()}}}function Mr(e,t,r,n,i){var a=Lr(e,t);switch(i?a.char(2).toUpperCase():a.char(2)){case"-":var o=a.getMatch(vr.Comment);return o?(r.comment(o,vr.COMMENT_START.length,o.length-vr.COMMENT_START.length-vr.COMMENT_END.length),a.getIndex()):n.fatalError("comment is not well-formed at position "+a.getIndex());case"[":var s=a.getMatch(vr.CDSect);return s?i||r.currentElement?(r.startCDATA(),r.characters(s,vr.CDATA_START.length,s.length-vr.CDATA_START.length-vr.CDATA_END.length),r.endCDATA(),a.getIndex()):n.fatalError("CDATA outside of element"):n.fatalError("Invalid CDATA starting at position "+t);case"D":if(r.doc&&r.doc.documentElement)return n.fatalError("Doctype not allowed inside or after documentElement at position "+a.getIndex());if(i?!a.substringStartsWithCaseInsensitive(vr.DOCTYPE_DECL_START):!a.substringStartsWith(vr.DOCTYPE_DECL_START))return n.fatalError("Expected "+vr.DOCTYPE_DECL_START+" at position "+a.getIndex());if(a.skip(vr.DOCTYPE_DECL_START.length),a.skipBlanks()<1)return n.fatalError("Expected whitespace after "+vr.DOCTYPE_DECL_START+" at position "+a.getIndex());var l={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(l.name=a.getMatch(vr.Name),!l.name)return n.fatalError("doctype name missing or contains unexpected characters at position "+a.getIndex());if(i&&"html"!==l.name.toLowerCase()&&n.warning("Unexpected DOCTYPE in HTML document at position "+a.getIndex()),a.skipBlanks(),a.substringStartsWith(vr.PUBLIC)||a.substringStartsWith(vr.SYSTEM)){var c=vr.ExternalID_match.exec(a.substringFromIndex());if(!c)return n.fatalError("doctype external id is not well-formed at position "+a.getIndex());void 0!==c.groups.SystemLiteralOnly?l.systemId=c.groups.SystemLiteralOnly:(l.systemId=c.groups.SystemLiteral,l.publicId=c.groups.PubidLiteral),a.skip(c[0].length)}else if(i&&a.substringStartsWithCaseInsensitive(vr.SYSTEM)){if(a.skip(vr.SYSTEM.length),a.skipBlanks()<1)return n.fatalError("Expected whitespace after "+vr.SYSTEM+" at position "+a.getIndex());if(l.systemId=a.getMatch(vr.ABOUT_LEGACY_COMPAT_SystemLiteral),!l.systemId)return n.fatalError("Expected "+vr.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+vr.SYSTEM+" at position "+a.getIndex())}return i&&l.systemId&&!vr.ABOUT_LEGACY_COMPAT_SystemLiteral.test(l.systemId)&&n.warning("Unexpected doctype.systemId in HTML document at position "+a.getIndex()),i||(a.skipBlanks(),l.internalSubset=function(e,t){function r(e,t){var r=vr.PI.exec(e.substringFromIndex());return r?"xml"===r[1].toLowerCase()?t.fatalError("xml declaration is only allowed at the start of the document, but found at position "+e.getIndex()):(e.skip(r[0].length),r[0]):t.fatalError("processing instruction is not well-formed at position "+e.getIndex())}var n=e.getSource();if("["===e.char()){e.skip(1);for(var i=e.getIndex();e.getIndex()<n.length;){if(e.skipBlanks(),"]"===e.char()){var a=n.substring(i,e.getIndex());return e.skip(1),a}var o=null;if("<"===e.char()&&"!"===e.char(1))switch(e.char(2)){case"E":"L"===e.char(3)?o=e.getMatch(vr.elementdecl):"N"===e.char(3)&&(o=e.getMatch(vr.EntityDecl));break;case"A":o=e.getMatch(vr.AttlistDecl);break;case"N":o=e.getMatch(vr.NotationDecl);break;case"-":o=e.getMatch(vr.Comment)}else if("<"===e.char()&&"?"===e.char(1))o=r(e,t);else{if("%"!==e.char())return t.fatalError("Error detected in Markup declaration");o=e.getMatch(vr.PEReference)}if(!o)return t.fatalError("Error in internal subset at position "+e.getIndex())}return t.fatalError("doctype internal subset is not well-formed, missing ]")}}(a,n)),a.skipBlanks(),">"!==a.char()?n.fatalError("doctype not terminated with > at position "+a.getIndex()):(a.skip(1),r.startDTD(l.name,l.publicId,l.systemId,l.internalSubset),r.endDTD(),a.getIndex());default:return n.fatalError('Not well-formed XML starting with "<!" at position '+t)}}function Pr(e,t,r,n){var i=e.substring(t).match(vr.PI);if(!i)return n.fatalError("Invalid processing instruction starting at position "+t);if("xml"===i[1].toLowerCase()){if(t>0)return n.fatalError("processing instruction at position "+t+" is an xml declaration which is only at the start of the document");if(!vr.XMLDecl.test(e.substring(t)))return n.fatalError("xml declaration is not well-formed")}return r.processingInstruction(i[1],i[2]),t+i[0].length}function zr(){this.attributeNames=Object.create(null)}zr.prototype={setTagName:function(e){if(!vr.QName_exact.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!vr.QName_exact.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},gr.XMLReader=kr,gr.parseUtils=Lr,gr.parseDoctypeCommentOrCData=Mr;var Ur=a,Br=m,Fr=mr,qr=gr,Hr=S.DOMImplementation,jr=Ur.hasDefaultHTMLNamespace,Gr=Ur.isHTMLMimeType,Wr=Ur.isValidMimeType,Vr=Ur.MIME_TYPE,Zr=Ur.NAMESPACE,Yr=Br.ParseError,Xr=qr.XMLReader;function $r(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028\u2029]/g,"\n")}function Kr(e){if(void 0===(e=e||{}).locator&&(e.locator=!0),this.assign=e.assign||Ur.assign,this.domHandler=e.domHandler||Qr,this.onError=e.onError||e.errorHandler,e.errorHandler&&"function"!=typeof e.errorHandler)throw new TypeError("errorHandler object is no longer supported, switch to onError!");e.errorHandler&&e.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=e.normalizeLineEndings||$r,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}function Qr(e){var t=e||{};this.mimeType=t.mimeType||Vr.XML_APPLICATION,this.defaultNamespace=t.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=t.onError}function Jr(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function en(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function tn(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}Kr.prototype.parseFromString=function(e,t){if(!Wr(t))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+t+'" is not valid.');var r=this.assign(Object.create(null),this.xmlns),n=Fr.XML_ENTITIES,i=r[""]||null;jr(t)?(n=Fr.HTML_ENTITIES,i=Zr.HTML):t===Vr.XML_SVG_IMAGE&&(i=Zr.SVG),r[""]=i,r.xml=r.xml||Zr.XML;var a=new this.domHandler({mimeType:t,defaultNamespace:i,onError:this.onError}),o=this.locator?{}:void 0;this.locator&&a.setDocumentLocator(o);var s=new Xr;return s.errorHandler=a,s.domBuilder=a,!Ur.isHTMLMimeType(t)&&"string"!=typeof e&&s.errorHandler.fatalError("source is not a string"),s.parse(this.normalizeLineEndings(String(e)),r,n),a.doc.documentElement||s.errorHandler.fatalError("missing root element"),a.doc},Qr.prototype={startDocument:function(){var e=new Hr;this.doc=Gr(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,"")},startElement:function(e,t,r,n){var i=this.doc,a=i.createElementNS(e,r||t),o=n.length;tn(this,a),this.currentElement=a,this.locator&&Jr(this.locator,a);for(var s=0;s<o;s++){e=n.getURI(s);var l=n.getValue(s),c=(r=n.getQName(s),i.createAttributeNS(e,r));this.locator&&Jr(n.getLocator(s),c),c.value=c.nodeValue=l,a.setAttributeNode(c)}},endElement:function(e,t,r){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&Jr(this.locator,r),tn(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=en.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&Jr(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,r){e=en.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&Jr(this.locator,n),tn(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var a=i.createDocumentType(e,t,r,n);this.locator&&Jr(this.locator,a),tn(this,a),this.doc.doctype=a}},reportError:function(e,t){if("function"==typeof this.onError)try{this.onError(e,t,this)}catch(Pi){throw new Yr("Reporting "+e+' "'+t+'" caused '+Pi,this.locator)}else console.error("[xmldom "+e+"]\t"+t,function(e){if(e)return"\n@#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(this.locator))},warning:function(e){this.reportError("warning",e)},error:function(e){this.reportError("error",e)},fatalError:function(e){throw this.reportError("fatalError",e),new Yr(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){Qr.prototype[e]=function(){return null}}),pr.__DOMHandler=Qr,pr.DOMParser=Kr,pr.normalizeLineEndings=$r,pr.onErrorStopParsing=function(e){if("error"===e)throw"onErrorStopParsing"},pr.onWarningStopParsing=function(){throw"onWarningStopParsing"};var rn=a;rn.assign,rn.hasDefaultHTMLNamespace,rn.isHTMLMimeType,rn.isValidMimeType,rn.MIME_TYPE,rn.NAMESPACE;var nn=pr.DOMParser;const an="asset:";function on(e,t){if(!t)return{...e};const r={...e};for(const[n,i]of Object.entries(t))void 0!==i&&(r[n]=i);return r}const sn={styleId:void 0,bold:!1,italic:!1,underline:!1,underlineStyle:null,underlineColor:null,strike:!1,doubleStrike:!1,superscript:!1,subscript:!1,smallCaps:!1,allCaps:!1,hidden:!1,characterScale:null,characterSpacing:null,baselineShift:null,kerningThreshold:null,ligatures:null,numberSpacing:null,numberForm:null,stylisticSet:null,contextualAlternates:!1,fontFamily:"Calibri, sans-serif",fontSize:15,color:"#000000",highlight:null,link:null},ln={styleId:void 0,align:"left",spacingBefore:0,spacingAfter:8,lineHeight:1.15,lineGridPitch:null,lineGridType:null,snapToGrid:!0,indentLeft:0,indentRight:0,indentFirstLine:0,indentHanging:0,shading:null,borderTop:null,borderRight:null,borderBottom:null,borderLeft:null,tabs:null,pageBreakBefore:!1,keepWithNext:!1,keepLinesTogether:!1,widowControl:!0};function cn(e){if(!e)return;const t=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.id.toLowerCase());if(t)return t.id;const r=Object.values(e).find(e=>"paragraph"===e.type&&"normal"===e.name.toLowerCase());return r?r.id:void 0}function un(e,t){if(!e||!t||!t[e])return{};const r=t[e];return{...r.basedOn?un(r.basedOn,t):{},...r.textStyle??{}}}function dn(e,t){if(!e||!t||!t[e])return{};const r=t[e];return{...r.basedOn?dn(r.basedOn,t):{},...r.paragraphStyle??{}}}function hn(e,t,r){const n=on(un(t??cn(r),r),un(null==e?void 0:e.styleId,r)),i=on(n,e);return{...sn,...i}}function fn(e,t){const r=(null==e?void 0:e.styleId)??cn(t),n=function(e,t){if(!t)return{...e};const r={...e};for(const[n,i]of Object.entries(t))void 0!==i&&(r[n]=i);return r}(dn(r,t),{...e,styleId:r});return{...ln,...n}}const pn=816,mn=1056,gn="portrait",bn={top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0};function vn(e){const t=e.orientation??function(e,t){return e>t?"landscape":"portrait"}(e.width,e.height),r="landscape"===t&&e.width<e.height||"portrait"===t&&e.width>e.height;return{width:r?e.height:e.width,height:r?e.width:e.height,orientation:t,margins:{top:e.margins.top,right:e.margins.right,bottom:e.margins.bottom,left:e.margins.left,header:e.margins.header,footer:e.margins.footer,gutter:e.margins.gutter}}}function yn(e){const t=e.pageSettings;return vn({width:(null==t?void 0:t.width)??pn,height:(null==t?void 0:t.height)??mn,orientation:(null==t?void 0:t.orientation)??gn,margins:{top:(null==t?void 0:t.margins.top)??bn.top,right:(null==t?void 0:t.margins.right)??bn.right,bottom:(null==t?void 0:t.margins.bottom)??bn.bottom,left:(null==t?void 0:t.margins.left)??bn.left,header:(null==t?void 0:t.margins.header)??bn.header,footer:(null==t?void 0:t.margins.footer)??bn.footer,gutter:(null==t?void 0:t.margins.gutter)??bn.gutter}})}function wn(e){return e.sections&&e.sections.length>0?e.sections.map(e=>({...e,pageSettings:vn(e.pageSettings)})):[{id:"section:default",blocks:[],pageSettings:yn(e)}]}function _n(e){return"paragraph"===e.type?[e]:e.rows.flatMap(e=>e.cells.flatMap(e=>e.blocks))}let En=1,Nn=1,Tn=1,Sn=1,xn=1,kn=1;function An(e=""){const t={id:`run:${Tn}`,text:e};return Tn+=1,t}function Cn(e=""){const t={id:`paragraph:${Nn}`,type:"paragraph",runs:[An(e)]};return Nn+=1,t}function In(e){const t={id:`paragraph:${Nn}`,type:"paragraph",runs:e.length>0?e.map(e=>function(e="",t,r){const n=An(e);return t&&(n.styles={...t}),r&&(n.image={...r}),n}(e.text,e.styles,e.image)):[An("")]};return Nn+=1,t}function Dn(e,t=1,r){const n={id:`table-cell:${kn}`,blocks:e.length>0?e:[Cn("")]};return t>1&&(n.colSpan=t),(null==r?void 0:r.rowSpan)&&r.rowSpan>1&&(n.rowSpan=r.rowSpan),(null==r?void 0:r.vMerge)&&(n.vMerge=r.vMerge),kn+=1,n}function On(e,t){const r={id:`table-row:${xn}`,cells:e};return(null==t?void 0:t.isHeader)&&(r.isHeader=!0),xn+=1,r}const Rn={normal:{id:"normal",name:"Normal",type:"paragraph",paragraphStyle:{spacingAfter:8,lineHeight:1.15},textStyle:{fontFamily:"Calibri, sans-serif",fontSize:15}},header:{id:"header",name:"Header",type:"paragraph",basedOn:"normal",nextStyle:"header",paragraphStyle:{spacingAfter:0}},footer:{id:"footer",name:"Footer",type:"paragraph",basedOn:"normal",nextStyle:"footer",paragraphStyle:{spacingAfter:0}},heading1:{id:"heading1",name:"Heading 1",type:"paragraph",basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:24,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:27,color:"#2e74b5"}},heading2:{id:"heading2",name:"Heading 2",type:"paragraph",basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:13,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:17,color:"#2e74b5"}},heading3:{id:"heading3",name:"Heading 3",type:"paragraph",basedOn:"normal",nextStyle:"normal",paragraphStyle:{spacingBefore:13,spacingAfter:0},textStyle:{fontFamily:"Calibri Light, sans-serif",fontSize:16,color:"#1f4d78"}},footnoteText:{id:"footnoteText",name:"Footnote Text",type:"paragraph",basedOn:"normal",nextStyle:"footnoteText",paragraphStyle:{spacingAfter:0,lineHeight:1},textStyle:{fontSize:10}},footnoteReference:{id:"footnoteReference",name:"Footnote Reference",type:"character",basedOn:"normal",textStyle:{superscript:!0}}};function Ln(e,t,r,n,i,a){const o=vn(t?{width:t.width,height:t.height,orientation:t.orientation,margins:{...t.margins}}:{width:pn,height:mn,orientation:gn,margins:{...bn}}),s={id:`document:${En}`,pageSettings:o,sections:r??[{id:"section:default",blocks:e,pageSettings:o}],styles:n??{...Rn},metadata:i??{title:"Untitled document"},assets:a??void 0};return En+=1,s}const Mn="http://schemas.openxmlformats.org/wordprocessingml/2006/main",Pn="http://schemas.openxmlformats.org/drawingml/2006/main",zn="http://schemas.microsoft.com/office/word/2010/wordml";function Un(e,t,r){if(!e)return[];const n=[];for(let i=0;i<e.childNodes.length;i+=1){const a=e.childNodes[i];(null==a?void 0:a.nodeType)===a.ELEMENT_NODE&&a.namespaceURI===t&&a.localName===r&&n.push(a)}return n}function Bn(e,t,r){return Un(e,t,r)[0]??null}function Fn(e,t){return e?e.getAttributeNS(Mn,t)??e.getAttributeNS(zn,t)??e.getAttribute(`w:${t}`)??e.getAttribute(`w14:${t}`)??e.getAttribute(t):null}function qn(e,t){for(let r=0;r<e.childNodes.length;r+=1){const n=e.childNodes[r];if(1===(null==n?void 0:n.nodeType)){const e=n;if(e.localName===t)return e;const r=qn(e,t);if(r)return r}}return null}function Hn(e,t){return null!==Bn(e,Mn,t)}function jn(e){return"1"===e||"true"===e||"on"===e}function Gn(e,t){const r=Bn(e,Mn,t);if(!r)return;const n=Fn(r,"val");return null==n||"0"!==n&&"false"!==n&&"off"!==n&&jn(n)}function Wn(e,t){return Fn(Bn(e,Mn,t),"val")??void 0}async function Vn(e,t){t>0&&t%e===0&&await new Promise(e=>setTimeout(e,0))}function Zn(e,t,r){const n=e.byPath.get(t);if(n)return`${an}${n}`;const i=`img-${e.nextId}`;return e.nextId+=1,e.assets[i]={id:i,url:r},e.byPath.set(t,i),`${an}${i}`}function Yn(e){var t;const r=new Map;if(!e)return r;const n=null==(t=(new nn).parseFromString(e,"application/xml").documentElement)?void 0:t.childNodes;if(!n)return r;for(let i=0;i<n.length;i+=1){const e=n[i];if(1===(null==e?void 0:e.nodeType)){const t=e;if("Relationship"===t.localName){const e=t.getAttribute("Id"),n=t.getAttribute("Target");e&&n&&r.set(e,n)}}}return r}async function Xn(e,t){var r;const n=t.lastIndexOf("/"),i=n>=0?t.slice(0,n):"",a=n>=0?t.slice(n+1):t,o=i?`${i}/_rels/${a}.rels`:`_rels/${a}.rels`;return Yn(await(null==(r=e.file(o))?void 0:r.async("string")))}function $n(e,t){const r=e?Number(e):Number.NaN;return Number.isFinite(r)?Math.round(r/1440*96):t}function Kn(e){const t=e?Number(e):Number.NaN;if(Number.isFinite(t))return Math.round(t/20*1e4)/1e4}function Qn(e){const t=null==e?void 0:e.trim();if(t&&"auto"!==t&&"none"!==t)return t.startsWith("#")?t:`#${t.toUpperCase()}`}function Jn(e){const t=Object.entries(e).filter(([,e])=>void 0!==e);return t.length>0?Object.fromEntries(t):void 0}function ei(e){return void 0!==(null==e?void 0:e.lineHeight)?e:{...e??{},lineHeight:1.1}}function ti(e,t){if(!e)return;const r=hn(e,t,Rn),n=hn(void 0,t,Rn);return Jn({styleId:e.styleId,bold:r.bold!==n.bold?r.bold:void 0,italic:r.italic!==n.italic?r.italic:void 0,underline:r.underline!==n.underline?r.underline:void 0,underlineStyle:r.underlineStyle!==n.underlineStyle?r.underlineStyle:void 0,underlineColor:r.underlineColor!==n.underlineColor?r.underlineColor:void 0,strike:r.strike!==n.strike?r.strike:void 0,doubleStrike:r.doubleStrike!==n.doubleStrike?r.doubleStrike:void 0,superscript:r.superscript!==n.superscript?r.superscript:void 0,subscript:r.subscript!==n.subscript?r.subscript:void 0,smallCaps:r.smallCaps!==n.smallCaps?r.smallCaps:void 0,allCaps:r.allCaps!==n.allCaps?r.allCaps:void 0,hidden:r.hidden!==n.hidden?r.hidden:void 0,characterScale:r.characterScale!==n.characterScale?r.characterScale:void 0,characterSpacing:r.characterSpacing!==n.characterSpacing?r.characterSpacing:void 0,baselineShift:r.baselineShift!==n.baselineShift?r.baselineShift:void 0,kerningThreshold:r.kerningThreshold!==n.kerningThreshold?r.kerningThreshold:void 0,ligatures:r.ligatures!==n.ligatures?r.ligatures:void 0,numberSpacing:r.numberSpacing!==n.numberSpacing?r.numberSpacing:void 0,numberForm:r.numberForm!==n.numberForm?r.numberForm:void 0,stylisticSet:r.stylisticSet!==n.stylisticSet?r.stylisticSet:void 0,contextualAlternates:r.contextualAlternates!==n.contextualAlternates?r.contextualAlternates:void 0,fontFamily:void 0!==e.fontFamily?e.fontFamily:r.fontFamily!==n.fontFamily?r.fontFamily:void 0,fontSize:void 0!==e.fontSize?e.fontSize:r.fontSize!==n.fontSize?r.fontSize:void 0,color:r.color!==n.color?r.color:void 0,highlight:r.highlight!==n.highlight?r.highlight:void 0,link:r.link!==n.link?r.link:void 0})}function ri(e,t){if(!e)return;const r={},n=Wn(e,"rStyle");n&&(r.styleId=n),Hn(e,"b")&&(r.bold=!0),Hn(e,"i")&&(r.italic=!0),Hn(e,"strike")&&(r.strike=!0),Hn(e,"dstrike")&&(r.doubleStrike=!0),Hn(e,"smallCaps")&&(r.smallCaps=!0),Hn(e,"caps")&&(r.allCaps=!0),Hn(e,"vanish")&&(r.hidden=!0);const i=Fn(Bn(e,Mn,"w"),"val");if(i){const e=Number(i);Number.isFinite(e)&&e>0&&(r.characterScale=e)}const a=Fn(Bn(e,Mn,"spacing"),"val");if(a){const e=Kn(a);void 0!==e&&(r.characterSpacing=e)}const o=Fn(Bn(e,Mn,"position"),"val");if(o){const e=Number(o);Number.isFinite(e)&&(r.baselineShift=e/2)}const s=Fn(Bn(e,Mn,"kern"),"val");if(s){const e=Number(s);Number.isFinite(e)&&e>=0&&(r.kerningThreshold=e/2)}const l=Fn(Bn(e,zn,"ligatures"),"val");"none"!==l&&"standard"!==l&&"contextual"!==l&&"historical"!==l&&"standardContextual"!==l||(r.ligatures=l);const c=Fn(Bn(e,zn,"numSpacing"),"val");"proportional"!==c&&"tabular"!==c||(r.numberSpacing=c);const u=Fn(Bn(e,zn,"numForm"),"val");"lining"!==u&&"oldStyle"!==u||(r.numberForm=u);const d=Fn(Bn(e,zn,"stylisticSets"),"val");if(d){const e=/^[0-9a-fA-F]+$/.test(d)&&d.length>2?Number.parseInt(d,16):Number(d);if(Number.isFinite(e)&&e>0)for(let t=1;t<=20;t+=1)if(e&1<<t-1){r.stylisticSet=t;break}}const h=Fn(Bn(e,zn,"cntxtAlts"),"val");null===h?Bn(e,zn,"cntxtAlts")&&(r.contextualAlternates=!0):jn(h)&&(r.contextualAlternates=!0);const f=Bn(e,Mn,"u"),p=Fn(f,"val");if(f&&"none"!==p){r.underline=!0,p&&"single"!==p&&(r.underlineStyle=p);const e=Fn(f,"color");e&&"auto"!==e&&(r.underlineColor=e.startsWith("#")?e:`#${e}`)}const m=Fn(Bn(e,Mn,"vertAlign"),"val");"superscript"===m&&(r.superscript=!0),"subscript"===m&&(r.subscript=!0);const g=Bn(e,Mn,"rFonts"),b=Fn(g,"ascii")??Fn(g,"hAnsi")??Fn(g,"cs")??Fn(g,"eastAsia")??function(e,t){const r=Fn(e,"asciiTheme")??Fn(e,"hAnsiTheme")??Fn(e,"eastAsiaTheme")??Fn(e,"cstheme");if(!r)return;const n="majorAscii"===r||"majorHAnsi"===r?"majorHAnsi":"minorAscii"===r||"minorHAnsi"===r?"minorHAnsi":"majorEastAsia"===r?"majorEastAsia":"minorEastAsia"===r?"minorEastAsia":"majorBidi"===r?"majorBidi":"minorBidi"===r?"minorBidi":void 0;return n?t[n]:void 0}(g,t);b&&(r.fontFamily=function(e){const t=null==e?void 0:e.trim();if(!t)return;return`${/[\s,]/.test(t)?`"${t.replace(/"/g,'\\"')}"`:t}, ${/times/i.test(t)?"serif":"sans-serif"}`}(b));const v=Fn(Bn(e,Mn,"sz"),"val");if(v){const e=function(e){const t=e?Number(e):Number.NaN;return Number.isFinite(t)?Math.round(t/2/72*96*1e4)/1e4:null}(v);null!==e&&(r.fontSize=e)}const y=Fn(Bn(e,Mn,"color"),"val");y&&"auto"!==y&&(r.color=y.startsWith("#")?y:`#${y}`);const w=Fn(Bn(e,Mn,"highlight"),"val");return w&&"none"!==w&&(r.highlight=w),Object.keys(r).length>0?r:void 0}function ni(e){if(!e)return;const t={},r=Wn(e,"pStyle");r&&(t.styleId=r);const n=Fn(Bn(e,Mn,"jc"),"val");"left"===n||"start"===n||"center"===n||"right"===n||"end"===n||"justify"===n?t.align="start"===n?"left":"end"===n?"right":n:"both"!==n&&"distribute"!==n||(t.align="justify");const i=Bn(e,Mn,"spacing"),a=Fn(i,"before"),o=Fn(i,"after"),s=Fn(i,"line");Fn(i,"lineRule");if(a&&(t.spacingBefore=$n(a,0)),o&&(t.spacingAfter=$n(o,0)),s){const e=Number(s)/240;t.lineHeight=e}const l=Gn(e,"snapToGrid");void 0!==l&&(t.snapToGrid=l);const c=Bn(e,Mn,"ind"),u=Fn(c,"start")??Fn(c,"left"),d=Fn(c,"end")??Fn(c,"right"),h=Fn(c,"firstLine"),f=Fn(c,"hanging");u&&(t.indentLeft=$n(u,0)),d&&(t.indentRight=$n(d,0)),f?(t.indentHanging=$n(f,0),t.indentFirstLine=void 0):h&&(t.indentFirstLine=$n(h,0)),Hn(e,"pageBreakBefore")&&(t.pageBreakBefore=!0),Hn(e,"keepNext")&&(t.keepWithNext=!0),Hn(e,"keepLines")&&(t.keepLinesTogether=!0);const p=Gn(e,"widowControl");return void 0!==p&&(t.widowControl=p),Object.keys(t).length>0?t:void 0}function ii(e){const t=Bn(e,Mn,"spacing");return{before:jn(Fn(t,"beforeAutospacing")),after:jn(Fn(t,"afterAutospacing"))}}function ai(e,t){const r={...e??{},...t??{}};return Object.keys(r).length>0?r:void 0}function oi(e,t){const r={...e??{},...t??{}};return Object.keys(r).length>0?r:void 0}function si(e){const t=Bn(e,Mn,"pgSz"),r=Bn(e,Mn,"pgMar");let n;if(t||r){const e=$n(Fn(t,"w"),816),i=$n(Fn(t,"h"),1056),a=Fn(t,"orient");n={width:e,height:i,orientation:"landscape"===a?"landscape":"portrait"===a?"portrait":e>i?"landscape":"portrait",margins:{top:$n(Fn(r,"top"),96),right:$n(Fn(r,"right"),96),bottom:$n(Fn(r,"bottom"),96),left:$n(Fn(r,"left"),96),header:$n(Fn(r,"header"),48),footer:$n(Fn(r,"footer"),48),gutter:$n(Fn(r,"gutter"),0)}}}const i=t=>{const r={};for(const n of Un(e,Mn,t)){const e=Fn(n,"type")??"default";if("default"!==e&&"first"!==e&&"even"!==e)continue;const t=n.getAttribute("r:id")??n.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships","id")??null;t&&(r[e]=t)}return r},a=i("headerReference"),o=i("footerReference"),s=Bn(e,Mn,"docGrid"),l=Fn(s,"type"),c=$n(Fn(s,"linePitch"),Number.NaN);return{pageSettings:n,headerRIds:a,footerRIds:o,docGridLinePitchPx:Number.isFinite(c)&&c>0?c:void 0,docGridMode:"lines"===l||"linesAndChars"===l||"snapToChars"===l?"explicit":s&&null===l?"implicit":void 0,docGridType:l}}function li(e){if(!e)return;const t=Bn(e,Mn,"sectPr");if(!t)return;const r=Bn(t,Mn,"pgSz"),n=Bn(t,Mn,"pgMar");if(!r&&!n)return;const i=$n(Fn(r,"w"),816),a=$n(Fn(r,"h"),1056),o=Fn(r,"orient");return{width:i,height:a,orientation:"landscape"===o?"landscape":"portrait"===o?"portrait":i>a?"landscape":"portrait",margins:{top:$n(Fn(n,"top"),96),right:$n(Fn(n,"right"),96),bottom:$n(Fn(n,"bottom"),96),left:$n(Fn(n,"left"),96),header:$n(Fn(n,"header"),48),footer:$n(Fn(n,"footer"),48),gutter:$n(Fn(n,"gutter"),0)}}}function ci(e,t,r,n,i){var a,o,s;if(t&&r)for(const l of e){if("paragraph"===l.type){const e=(null==(a=l.style)?void 0:a.styleId)&&/heading/i.test(l.style.styleId);if(void 0===(null==(o=l.style)?void 0:o.lineHeight)&&!1!==(null==(s=l.style)?void 0:s.snapToGrid)&&!e){const e="implicit"===r?"implicit":n;l.style={...l.style??{},lineGridPitch:t,lineGridType:e}}continue}if(i.adjustLineHeightInTable)for(const e of l.rows)for(const a of e.cells)ci(a.blocks,t,r,n,i)}}async function ui(e,t,r,n){var i;const a=[];let o;const s=e.childNodes;for(let l=0;l<s.length;l+=1){const e=s[l];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const c=e;if(c.namespaceURI===Mn)if("t"===c.localName)a.push(c.textContent??"");else if("tab"===c.localName)a.push("\t");else if("br"===c.localName)a.push("page"===Fn(c,"type")?"\f":"\n");else{if("lastRenderedPageBreak"===c.localName)continue;if("cr"===c.localName)a.push("\n");else if("drawing"===c.localName){const e=qn(c,"blip");if(e){let s=null;for(let t=0;t<e.attributes.length;t++){const r=e.attributes[t];if(r&&("embed"===r.localName||"r:embed"===r.name||"embed"===r.name)){s=r.value;break}}if(s){const e=r.get(s);if(e){let r=e;r.startsWith("/")&&(r=r.slice(1)),r.startsWith("word/")||(r="word/"+e);const s=t.file(r),l=null==(i=e.split(".").pop())?void 0:i.toLowerCase(),u="png"===l?"image/png":"jpeg"===l||"jpg"===l?"image/jpeg":"image/png",d=await(null==s?void 0:s.async("base64"));if(d){a.push("");const e=qn(c,"extent"),t=qn(c,"docPr");let i=300,s=300;if(e){const t=e.getAttribute("cx"),r=e.getAttribute("cy");t&&(i=Math.round(parseInt(t,10)/9525)),r&&(s=Math.round(parseInt(r,10)/9525))}const l=t?Fn(t,"descr")??Fn(t,"title"):null;o={src:Zn(n,r,`data:${u};base64,${d}`),width:i,height:s,...null!==l?{alt:l}:{}}}}}}}}}return{text:a.join(""),image:o}}function di(e){const t=Bn(e,Mn,"fldChar");return t?Fn(t,"fldCharType"):null}function hi(e){return Un(e,Mn,"instrText").map(e=>e.textContent??"").join("")}async function fi(e,t,r,n,i,a,o){var s,l;const c=[];let u=null;const d=()=>{var e;if(!u)return;const t=u.instruction,r=/\bNUMPAGES\b/i.test(t)?"NUMPAGES":/\bPAGE\b/i.test(t)?"PAGE":null,n=u.resultRuns.map(e=>e.text).join("")||"1",i=null==(e=u.resultRuns.find(e=>e.styles))?void 0:e.styles;c.push({text:n,styles:i,...r?{field:{type:r}}:{}}),u=null};for(let h=0;h<e.childNodes.length;h+=1){const f=e.childNodes[h];if((null==f?void 0:f.nodeType)!==f.ELEMENT_NODE)continue;const p=f;if(p.namespaceURI===Mn){if("r"===p.localName){const e=di(p);if("begin"===e){d(),u={instruction:"",resultRuns:[],collectingResult:!1};continue}if(u){const t=hi(p);if(t){u.instruction+=t;continue}if("separate"===e){u.collectingResult=!0;continue}if("end"===e){d();continue}}const t=Bn(p,Mn,"footnoteReference");if(t){const e=Fn(t,"id");if(!e)continue;const r=Fn(t,"customMarkFollows");let n=ri(Bn(p,Mn,"rPr"),a);(s=n??(n={})).styleId??(s.styleId="footnoteReference"),void 0===n.superscript&&(n.superscript=!0);const i={text:"?",styles:n,footnoteReference:{docxId:e,...r?{customMark:r}:{}}};(null==u?void 0:u.collectingResult)?u.resultRuns.push(i):c.push(i);continue}const{text:l,image:h}=await ui(p,r,n,i);if(0===l.length)continue;let f=ri(Bn(p,Mn,"rPr"),a);o&&((f??(f={})).link=o);const m={text:l,image:h,styles:f};(null==u?void 0:u.collectingResult)?u.resultRuns.push(m):c.push(m);continue}if("fldSimple"===p.localName){const e=p.getAttribute("w:instr")??p.getAttributeNS(Mn,"instr")??p.getAttribute("instr")??"",s=/\bNUMPAGES\b/i.test(e)?"NUMPAGES":/\bPAGE\b/i.test(e)?"PAGE":null,u=await fi(p,t,r,n,i,a,o),d=u.map(e=>e.text).join("")||"1",h=null==(l=u.find(e=>e.styles))?void 0:l.styles;c.push({text:d,styles:h,...s?{field:{type:s}}:{}});continue}if("hyperlink"===p.localName){let e=n.get(p.getAttribute("r:id")??p.getAttributeNS("http://schemas.openxmlformats.org/officeDocument/2006/relationships","id")??"")??null;e??(e=p.getAttribute("w:anchor")),c.push(...await fi(p,t,r,n,i,a,e))}}}return d(),c}function pi(e,t,r,n){var i;const a=In(e.length>0?e.map(e=>({text:e.text,styles:e.styles,image:e.image})):[{text:"",styles:n}]);e.forEach((e,t)=>{e.field&&(a.runs[t].field={...e.field}),e.footnoteReference&&(a.runs[t].__importedFootnoteRef={...e.footnoteReference})}),a.style=t?{...t}:void 0;for(const o of a.runs)o.styles=ti(o.styles,null==(i=a.style)?void 0:i.styleId);return a.list=r?{...r}:void 0,a}function mi(e){return e.some(e=>e.image||e.field||e.text.replace(/\s/g,"").length>0)}async function gi(e,t,r,n,i,a,o){const s=Bn(e,Mn,"pPr"),l=await fi(e,t,r,n,i,a),c=ei(ni(s)),u=function(e){if(!e)return;const t=fn(e,Rn),r=fn(void 0,Rn);return Jn({styleId:e.styleId,align:t.align!==r.align?t.align:void 0,spacingBefore:t.spacingBefore!==r.spacingBefore?t.spacingBefore:void 0,spacingAfter:t.spacingAfter!==r.spacingAfter?t.spacingAfter:void 0,lineHeight:t.lineHeight!==r.lineHeight?t.lineHeight:void 0,lineGridPitch:e.lineGridPitch??void 0,snapToGrid:t.snapToGrid!==r.snapToGrid?t.snapToGrid:void 0,indentLeft:void 0!==e.indentLeft||t.indentLeft!==r.indentLeft?t.indentLeft:void 0,indentRight:void 0!==e.indentRight||t.indentRight!==r.indentRight?t.indentRight:void 0,indentFirstLine:void 0!==e.indentFirstLine||t.indentFirstLine!==r.indentFirstLine?t.indentFirstLine:void 0,indentHanging:void 0!==e.indentHanging||t.indentHanging!==r.indentHanging?t.indentHanging:void 0,pageBreakBefore:t.pageBreakBefore!==r.pageBreakBefore?t.pageBreakBefore:void 0,keepWithNext:t.keepWithNext!==r.keepWithNext?t.keepWithNext:void 0,keepLinesTogether:t.keepLinesTogether!==r.keepLinesTogether?t.keepLinesTogether:void 0,widowControl:t.widowControl!==r.widowControl?t.widowControl:void 0})}(o?{...o,...c??{}}:c),d=ri(Bn(s,Mn,"rPr"),a),h=function(e,t){if(!e)return;const r=Bn(e,Mn,"numPr");if(!r)return;const n=Fn(Bn(r,Mn,"numId"),"val");if(!n)return;const i=Fn(Bn(r,Mn,"ilvl"),"val"),a=i?Number(i):0;return{kind:t.numKinds.get(n)??"ordered",level:Number.isFinite(a)?a:0}}(s,t),{segments:f,hasPageBreak:p}=function(e){const t=[[]];let r=!1;const n=(e,r)=>{(0!==r.length||e.image||e.field)&&t[t.length-1].push({...e,text:r})};for(const i of e){if(!i.text.includes("\f")){n(i,i.text);continue}const e=i.text.split("\f");e.forEach((a,o)=>{n(i,a),o<e.length-1&&(r=!0,t.push([]))})}return{segments:t,hasPageBreak:r}}(l);if(!p)return{paragraphs:[pi(l,u,h,d)],pageBreakAfter:!1};const m=[];let g=!1;for(let b=0;b<f.length;b+=1){const e=f[b];if(b>0&&(g=!0),!mi(e))continue;const t=g?{...u??{},pageBreakBefore:!0}:u;m.push(pi(e,t,h,d)),g=!1}return{paragraphs:m,pageBreakAfter:g}}async function bi(e,t,r,n,i,a,o){return(await gi(e,t,r,n,i,a,o)).paragraphs[0]??In([{text:""}])}function vi(e){if(!e)return 1;const t=Fn(Bn(e,Mn,"gridSpan"),"val"),r=t?Number(t):1;return Number.isFinite(r)&&r>1?Math.floor(r):1}function yi(e){if(!e)return;const t=Bn(e,Mn,"vMerge");if(!t)return;return"restart"===Fn(t,"val")?"restart":"continue"}function wi(e){if(!e)return;const t=Fn(e,"val");if("nil"===t||"none"===t)return{width:0,type:"none",color:"transparent"};const r=Number(Fn(e,"sz")),n=Number.isFinite(r)&&r>0?Math.round(r/8*1e4)/1e4:.75,i=Qn(Fn(e,"color"))??"#000000",a=(null==t?void 0:t.toLowerCase())??"single";return{width:n,type:a.includes("dotted")||a.includes("dot")?"dotted":a.includes("dash")?"dashed":"solid",color:i}}function _i(e){if(!e)return;const t={},r=Qn(Fn(Bn(e,Mn,"shd"),"fill"));r&&(t.shading=r);const n=Bn(e,Mn,"tcW"),i=Fn(n,"type"),a=Fn(n,"w");if("dxa"===i){const e=Kn(a);void 0!==e&&(t.width=e)}else if("pct"===i&&a){const e=Number(a);Number.isFinite(e)&&(t.width=Math.round(e/50*1e4)/1e4+"%")}const o=Bn(e,Mn,"tcMar");if(o){const e=Kn(Fn(Bn(o,Mn,"top"),"w")),r=Kn(Fn(Bn(o,Mn,"bottom"),"w")),n=Kn(Fn(Bn(o,Mn,"left"),"w")),i=Kn(Fn(Bn(o,Mn,"right"),"w"));void 0!==e&&(t.paddingTop=e),void 0!==r&&(t.paddingBottom=r),void 0!==n&&(t.paddingLeft=n),void 0!==i&&(t.paddingRight=i)}const s=function(e){if(!e)return;const t=Fn(Bn(e,Mn,"vAlign"),"val");return"top"===t||"bottom"===t?t:"center"===t?"middle":void 0}(e);s&&(t.verticalAlign=s);for(const[l,c]of Object.entries(function(e){if(!e)return{};const t=Bn(e,Mn,"tcBorders");return t?{borderTop:wi(Bn(t,Mn,"top")),borderRight:wi(Bn(t,Mn,"right")),borderBottom:wi(Bn(t,Mn,"bottom")),borderLeft:wi(Bn(t,Mn,"left"))}:{}}(e)))c&&(t[l]=c);return Object.keys(t).length>0?t:void 0}function Ei(e){const t=Bn(e,Mn,"trPr");return!!t&&Hn(t,"tblHeader")}function Ni(e,t){var r,n;const i=e=>e.style??(e.style={}),a=e.length-1;for(let o=0;o<e.length;o+=1){const r=t[o];r&&(0===o&&r.before&&(i(e[o]).spacingBefore=0),o===a&&r.after&&(i(e[o]).spacingAfter=0))}for(let o=0;o<a;o+=1){if(!(null==(r=t[o])?void 0:r.after)||!(null==(n=t[o+1])?void 0:n.before))continue;const a=i(e[o]),s=i(e[o+1]);(a.spacingAfter??0)>=(s.spacingBefore??0)?s.spacingBefore=0:a.spacingAfter=0}}async function Ti(e,t,r,n,i,a,o){var s;const l=[],c=Bn(e,Mn,"tblGrid");if(c)for(const p of Un(c,Mn,"gridCol")){const e=Kn(Fn(p,"w"));void 0!==e&&l.push(e)}const u=Bn(e,Mn,"tblPr"),d=Fn(Bn(u,Mn,"tblStyle"),"val"),h=d&&(null==(s=null==o?void 0:o[d])?void 0:s.paragraphStyle)?o[d].paragraphStyle:void 0,f=[];for(const p of Un(e,Mn,"tr")){const e=[];for(const o of Un(p,Mn,"tc")){const s=[],l=[],c=Bn(o,Mn,"tcPr");for(const e of Un(o,Mn,"p"))s.push(await bi(e,t,r,n,i,a,h)),l.push(ii(Bn(e,Mn,"pPr")));Ni(s,l);const u=vi(c),d=yi(c),f=_i(c),p=Dn(s.length>0?s:[In([{text:""}])],u,"restart"===d?{rowSpan:1,vMerge:d}:d?{vMerge:d}:void 0);f&&(p.style=f),"continue"===d&&(p.blocks=[]),e.push(p)}f.push(On(e,Ei(p)?{isHeader:!0}:void 0))}for(let p=0;p<f.length;p+=1){const e=f[p];for(let t=0;t<e.cells.length;t+=1){const r=e.cells[t];if("restart"!==r.vMerge)continue;let n=1;for(let e=p+1;e<f.length;e+=1){const r=f[e].cells[t];if(!r||"continue"!==r.vMerge)break;n+=1}n>1&&(r.rowSpan=n)}}return function(e,t){const r={id:`table:${Sn}`,type:"table",rows:e,gridCols:t};return Sn+=1,r}(f,l.length>0?l:void 0)}async function Si(e,t,r,n,i,a,o){if(!e)return[];const s=(new nn).parseFromString(e,"application/xml").documentElement;if(!s)return[];const l=[];for(let c=0;c<s.childNodes.length;c+=1){const e=s.childNodes[c];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const u=e;"p"===u.localName&&u.namespaceURI===Mn?l.push(await bi(u,t,r,n,i,a)):"tbl"===u.localName&&u.namespaceURI===Mn&&l.push(await Ti(u,t,r,n,i,a,o))}return l}const xi=new Set(["separator","continuationSeparator","continuationNotice"]);const ki=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]];function Ai(e){if(e<=0)return String(e);let t=e,r="";for(const[n,i]of ki)for(;t>=n;)r+=i,t-=n;return r}function Ci(e){if(e<=0)return String(e);let t=e,r="";for(;t>0;){r="abcdefghijklmnopqrstuvwxyz"[(t-1)%26]+r,t=Math.floor((t-1)/26)}return r}const Ii=["*","†","‡","§","¶","#"];function Di(e,t="decimal"){switch(t){case"lowerRoman":return Ai(e);case"upperRoman":return Ai(e).toUpperCase();case"lowerLetter":return Ci(e);case"upperLetter":return Ci(e).toUpperCase();case"symbol":{const t=(e-1)%Ii.length,r=Math.floor((e-1)/Ii.length)+1;return Ii[t].repeat(r)}default:return String(e)}}function Oi(e){var t,r;const n=e.footnotes;if(!n||0===Object.keys(n.items).length)return e;const i=(null==(t=n.settings)?void 0:t.numberFormat)??"decimal",a=(null==(r=n.settings)?void 0:r.startAt)??1,o=new Set,s=new Map;let l=a-1;for(const{run:f}of function*(e){const t=wn(e);for(const r of t){const e=[r.header??[],r.firstPageHeader??[],r.evenPageHeader??[],r.blocks,r.footer??[],r.firstPageFooter??[],r.evenPageFooter??[]];for(const t of e)for(const e of t)for(const t of _n(e))for(const e of t.runs)e.footnoteReference&&(yield{paragraph:t,run:e})}}(e)){const e=f.footnoteReference;e&&(o.add(e.footnoteId),e.customMark?s.set(e.footnoteId,e.customMark):s.has(e.footnoteId)||(l+=1,s.set(e.footnoteId,Di(l,i))))}let c=!1;const u=wn(e).map(e=>{const t=e=>{if(!e)return e;let t=!1;const r=e.map(e=>{if("paragraph"===e.type){const r=Ri(e,s);return r!==e&&(t=!0),r}let r=!1;const n=e.rows.map(e=>{let t=!1;const n=e.cells.map(e=>{let r=!1;const n=e.blocks.map(e=>{const t=Ri(e,s);return t!==e&&(r=!0),t});return r?(t=!0,{...e,blocks:n}):e});return t?(r=!0,{...e,cells:n}):e});return r?(t=!0,{...e,rows:n}):e});return t?(c=!0,r):e};return{...e,blocks:t(e.blocks)??e.blocks,header:t(e.header),firstPageHeader:t(e.firstPageHeader),evenPageHeader:t(e.evenPageHeader),footer:t(e.footer),firstPageFooter:t(e.firstPageFooter),evenPageFooter:t(e.evenPageFooter)}}),d={};let h=!1;for(const[f,p]of Object.entries(n.items))o.has(f)?d[f]=p:h=!0;return c||h?{...e,sections:c?u:e.sections,footnotes:{...n,items:h?d:n.items}}:e}function Ri(e,t){let r=!1;const n=e.runs.map(e=>{if(!e.footnoteReference)return e;const n=t.get(e.footnoteReference.footnoteId);return void 0===n||e.text===n?e:(r=!0,{...e,text:n})});return r?{...e,runs:n}:e}async function Li(e,t={}){var r,n,a,o,s,l,c,u,d,h;null==(r=t.onProgress)||r.call(t,"opening-docx");const f=await i.loadAsync(e),p=await(null==(n=f.file("word/document.xml"))?void 0:n.async("string"));if(!p)throw new Error("Missing word/document.xml");const m=Yn(await(null==(a=f.file("word/_rels/document.xml.rels"))?void 0:a.async("string"))),g=function(e){const t=new Map,r=new Map;if(!e)return{abstractKinds:t,numKinds:r};const n=(new nn).parseFromString(e,"application/xml").documentElement;if(!n)return{abstractKinds:t,numKinds:r};const i=n.getElementsByTagNameNS(Mn,"abstractNum");for(let o=0;o<i.length;o+=1){const e=i[o],r=Fn(e,"abstractNumId"),n=Bn(e,Mn,"lvl"),a=Fn(Bn(n??e,Mn,"numFmt"),"val");r&&a&&t.set(r,"bullet"===a?"bullet":"ordered")}const a=n.getElementsByTagNameNS(Mn,"num");for(let o=0;o<a.length;o+=1){const e=a[o],n=Fn(e,"numId"),i=Fn(Bn(e,Mn,"abstractNumId"),"val");n&&i&&r.set(n,t.get(i)??"ordered")}return{abstractKinds:t,numKinds:r}}(await(null==(o=f.file("word/numbering.xml"))?void 0:o.async("string"))??null),b=function(e){const t={adjustLineHeightInTable:!0};if(!e)return t;const r=Bn((new nn).parseFromString(e,"application/xml").documentElement,Mn,"compat");if(r){const e=Bn(r,Mn,"adjustLineHeightInTable");if(e){const r=Fn(e,"val");t.adjustLineHeightInTable="0"!==r&&"false"!==r}}return t}(await(null==(s=f.file("word/settings.xml"))?void 0:s.async("string"))??null),v=await(null==(l=f.file("word/styles.xml"))?void 0:l.async("string"))??null,y=function(e){if(!e)return{};const t=(new nn).parseFromString(e,"application/xml").documentElement,r=Bn(t?Un(t,Pn,"themeElements")[0]:null,Pn,"fontScheme"),n=Bn(r,Pn,"majorFont"),i=Bn(r,Pn,"minorFont"),a=e=>{var t;const r=Bn(e,Pn,"latin");return(null==(t=null==r?void 0:r.getAttribute("typeface"))?void 0:t.trim())||void 0},o=e=>{var t;const r=Bn(e,Pn,"cs");return(null==(t=null==r?void 0:r.getAttribute("typeface"))?void 0:t.trim())||a(e)},s=e=>{var t;const r=Bn(e,Pn,"ea");return(null==(t=null==r?void 0:r.getAttribute("typeface"))?void 0:t.trim())||a(e)};return{majorHAnsi:a(n),minorHAnsi:a(i),majorEastAsia:s(n),minorEastAsia:s(i),majorBidi:o(n),minorBidi:o(i)}}(await(null==(c=f.file("word/theme/theme1.xml"))?void 0:c.async("string"))??null),w=function(e,t){if(!e)return;const r=(new nn).parseFromString(e,"application/xml").documentElement;if(!r)return;const n=Bn(r,Mn,"docDefaults"),i=Bn(Bn(n,Mn,"pPrDefault"),Mn,"pPr"),a=Bn(Bn(n,Mn,"rPrDefault"),Mn,"rPr"),o=ei(ni(i)),s=ri(a,t),l={};let c;for(const u of Un(r,Mn,"style")){const e=Fn(u,"styleId"),r=Fn(u,"type");if(!e||"paragraph"!==r&&"character"!==r&&"table"!==r)continue;const n=Fn(Bn(u,Mn,"name"),"val")??e,i=Fn(Bn(u,Mn,"basedOn"),"val")??void 0,a=Fn(Bn(u,Mn,"next"),"val")??void 0,d=ei(ni(Bn(u,Mn,"pPr"))),h=ri(Bn(u,Mn,"rPr"),t);let f;if("table"===r){const t=Bn(u,Mn,"tblPr");f={styleId:e,indentLeft:Kn(Fn(Bn(t,Mn,"tblInd"),"w"))}}const p="paragraph"===r&&jn(Fn(u,"default"));p&&(c=e),l[e]={id:e,name:n,type:r,basedOn:i,nextStyle:a,paragraphStyle:"paragraph"===r&&p?ai(o,d):d,textStyle:"paragraph"===r&&p?oi(s,h):h,tableStyle:f}}return c&&l[c]?l:((o||s)&&(l.Normal={id:"Normal",name:"Normal",type:"paragraph",paragraphStyle:o,textStyle:s}),Object.keys(l).length>0?l:void 0)}(v,y);null==(u=t.onProgress)||u.call(t,"parsing-document");const _=(new nn).parseFromString(p,"application/xml").getElementsByTagNameNS(Mn,"body")[0];if(!_)return Ln([In([{text:""}])]);const E={assets:{},byPath:new Map,nextId:1},N=[],T=[[]];let S=!1;const x=e=>{S&&(e.style={...e.style??{},pageBreakBefore:!0},S=!1),T[T.length-1].push(e)};let k=0;for(let i=0;i<_.childNodes.length;i+=1){const e=_.childNodes[i];if((null==e?void 0:e.nodeType)===e.ELEMENT_NODE){const t=e;t.namespaceURI===Mn&&"sectPr"!==t.localName&&(k+=1)}}let A=0;const C=()=>{var e;A+=1,k>0&&(null==(e=t.onProgress)||e.call(t,"parsing-document",A/k))};for(let i=0;i<_.childNodes.length;i+=1){const e=_.childNodes[i];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const t=e;if(t.namespaceURI===Mn){if("sectPr"===t.localName)N.push(si(t)),T.push([]),S=!1;else if("p"===t.localName){const e=await gi(t,g,f,m,E,y);for(const t of e.paragraphs)x(t);e.pageBreakAfter&&(S=!0),C()}else"tbl"===t.localName&&(x(await Ti(t,g,f,m,E,y,w)),C());await Vn(50,A)}}if(0===N.length){const e=Bn(_,Mn,"sectPr");N.push(e?si(e):{pageSettings:li(_),headerRIds:{},footerRIds:{}})}null==(d=t.onProgress)||d.call(t,"parsing-headers-footers");const I=[],D=e=>Object.keys(e.headerRIds).length>0||Object.keys(e.footerRIds).length>0,O=N.filter(D).length;let R=0;const L=()=>{var e;R+=1,O>0&&(null==(e=t.onProgress)||e.call(t,"parsing-headers-footers",R/O))};for(let i=0;i<N.length;i+=1){const e=N[i],t=T[i]??[];ci(t,e.docGridLinePitchPx,e.docGridMode,e.docGridType,b);const r=async t=>{var r;if(!t)return[];const n=m.get(t);if(!n)return[];let i=n.startsWith("/")?n.slice(1):n;i.startsWith("word/")||(i=`word/${n}`);const a=await(null==(r=f.file(i))?void 0:r.async("string")),o=await Xn(f,i),s=await Si(a??null,g,f,o,E,y,w);return ci(s,e.docGridLinePitchPx,e.docGridMode,e.docGridType,b),s},n=await r(e.headerRIds.default),a=await r(e.headerRIds.first),o=await r(e.headerRIds.even),s=await r(e.footerRIds.default),l=await r(e.footerRIds.first),c=await r(e.footerRIds.even);D(e)&&L(),await Vn(2,R);const u=vn(e.pageSettings??{width:816,height:1056,orientation:"portrait",margins:{top:96,right:96,bottom:96,left:96,header:48,footer:48,gutter:0}});I.push({id:`section:${i+1}`,blocks:t.length>0?t:[In([{text:""}])],pageSettings:u,header:n.length>0?n:void 0,firstPageHeader:a.length>0?a:void 0,evenPageHeader:o.length>0?o:void 0,footer:s.length>0?s:void 0,firstPageFooter:l.length>0?l:void 0,evenPageFooter:c.length>0?c:void 0})}const M=await(null==(h=f.file("word/footnotes.xml"))?void 0:h.async("string"))??null,P=M?await Xn(f,"word/footnotes.xml"):new Map,z=await async function(e,t,r,n,i,a,o){const s={byDocxId:new Map,footnotes:{items:{}}};if(!e)return s;const l=(new nn).parseFromString(e,"application/xml").documentElement;if(!l)return s;const c={},u=new Map;let d,h;const f=Un(l,Mn,"footnote");let p=0;for(const m of f){const e=Fn(m,"id")??"",s=Fn(m,"type")??"",l=[];for(let c=0;c<m.childNodes.length;c+=1){const e=m.childNodes[c];if((null==e?void 0:e.nodeType)!==e.ELEMENT_NODE)continue;const s=e;s.namespaceURI===Mn&&("p"===s.localName?l.push(await bi(s,t,r,n,i,a)):"tbl"===s.localName&&l.push(await Ti(s,t,r,n,i,a,o)))}if(xi.has(s)){"separator"===s?d=l:"continuationSeparator"===s&&(h=l);continue}if(("-1"===e||"0"===e)&&0===l.length)continue;p+=1;const f=`footnote:imported:${p}`,g=Number.parseInt(e,10),b={id:f,blocks:l.length>0?l:[],docxId:Number.isFinite(g)?g:void 0};c[f]=b,e&&u.set(e,b)}return{byDocxId:u,footnotes:{items:c,separator:d,continuationSeparator:h},separator:d,continuationSeparator:h}}(M,g,f,P,E,y,w),U=Object.keys(z.footnotes.items).length>0||z.footnotes.separator||z.footnotes.continuationSeparator?z.footnotes:void 0;!function(e,t){var r,n,i,a,o,s;const l=e=>{if("paragraph"!==e.type)for(const t of e.rows)for(const e of t.cells)for(const t of e.blocks)l(t);else for(const r of e.runs){const e=r.__importedFootnoteRef;if(!e)continue;delete r.__importedFootnoteRef;const n=t.get(e.docxId);n&&(r.footnoteReference={footnoteId:n.id,...e.customMark?{customMark:e.customMark}:{}})}};for(const c of e)c.blocks.forEach(l),null==(r=c.header)||r.forEach(l),null==(n=c.firstPageHeader)||n.forEach(l),null==(i=c.evenPageHeader)||i.forEach(l),null==(a=c.footer)||a.forEach(l),null==(o=c.firstPageFooter)||o.forEach(l),null==(s=c.evenPageFooter)||s.forEach(l)}(I,z.byDocxId);const B=I.length>1||I.some(e=>{var t,r,n,i,a,o;return((null==(t=e.header)?void 0:t.length)??0)>0||((null==(r=e.firstPageHeader)?void 0:r.length)??0)>0||((null==(n=e.evenPageHeader)?void 0:n.length)??0)>0||((null==(i=e.footer)?void 0:i.length)??0)>0||((null==(a=e.firstPageFooter)?void 0:a.length)??0)>0||((null==(o=e.evenPageFooter)?void 0:o.length)??0)>0}),F=Object.keys(E.assets).length>0,q=e=>U?(e.footnotes=U,Oi(e)):e;if(B){const e=Ln([]);return e.sections=I,1===I.length&&(e.pageSettings=I[0].pageSettings),w&&(e.styles=w),F&&(e.assets=E.assets),q(e)}const H=I[0],j=Ln((null==H?void 0:H.blocks.length)>0?H.blocks:[In([{text:""}])],null==H?void 0:H.pageSettings);return F&&(j.assets=E.assets),w&&(j.styles=w),q(j)}function Mi(e){globalThis.postMessage(e)}globalThis.addEventListener("message",async e=>{const t=e.data;if("import-docx"===(null==t?void 0:t.type))try{const e=await Li(t.buffer,{onProgress:(e,r)=>{Mi({type:"progress",id:t.id,stage:e,progress:r})}});Mi({type:"done",id:t.id,document:e})}catch(r){Mi({type:"error",id:t.id,error:r instanceof Error?r.message:String(r)})}})}();
|