@epam/ai-dial-chat-hooks 1.1.0-dev.383 → 1.1.0-dev.390
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/api-error-DuLNy43N.js +45 -0
- package/attachment-types-AAoN9E95.js +7760 -0
- package/{attachment/useAttachmentValidation/useAttachmentValidation.d.ts → attachments.d.ts} +88 -44
- package/attachments.js +2 -0
- package/browser-Btsa0Lmr.js +607 -0
- package/catalog.d.ts +946 -0
- package/catalog.js +3 -0
- package/{conversation-sources/useConversationSources/useConversationSources.d.ts → conversation-sources.d.ts} +25 -20
- package/conversation-sources.js +2 -0
- package/conversation-transfer.d.ts +189 -0
- package/conversation-transfer.js +3 -0
- package/conversation.d.ts +907 -0
- package/conversation.js +2 -0
- package/cron-weekday-B4w29eAC.js +4 -0
- package/date-BeuD8G79.js +4 -0
- package/deployment-id-CxWgJTs9.js +6 -0
- package/file-manager.d.ts +1344 -0
- package/file-manager.js +4 -0
- package/formatting-CZyyxBG3.js +4 -0
- package/index.d.ts +4945 -126
- package/index.js +27 -19152
- package/oauth.d.ts +440 -0
- package/oauth.js +3 -0
- package/package.json +142 -21
- package/prompt-resource-Bt1I-8ri.js +41 -0
- package/scheduled-task-trigger-D9RZCk52.js +145 -0
- package/{scheduled-task/scheduled-task-trigger.d.ts → scheduled-tasks.d.ts} +51 -27
- package/scheduled-tasks.js +2 -0
- package/{conversation/useConversationScroll/useConversationScroll.d.ts → scroll-anchoring.d.ts} +50 -46
- package/scroll-anchoring.js +2 -0
- package/{useShareRecipientsCount/useShareRecipientsCount.d.ts → sharing.d.ts} +65 -36
- package/sharing.js +3 -0
- package/skill-editor.d.ts +503 -0
- package/skill-editor.js +3 -0
- package/skill-manifest-CCX8s4nn.js +4035 -0
- package/{skill/useSkillsState/useSkillsState.d.ts → skills-state.d.ts} +40 -35
- package/skills-state.js +2 -0
- package/string-utils-iBi2Y55C.js +10 -0
- package/toolset-id-CkxRHyU0.js +10 -0
- package/useAttachmentValidation-CkMTd5lA.js +102 -0
- package/useConversationImport-C2h1GBY4.js +807 -0
- package/useConversationScroll-CliIMnjP.js +122 -0
- package/useConversationSources-DKaKvjXZ.js +47 -0
- package/useDialFileManagerTabConfig-DGQw8H8H.js +2289 -0
- package/usePanelMaxWidth-BEZYuqF9.js +44 -0
- package/useShareLink-xkiaxATt.js +44 -0
- package/useShareRecipientsCount-BgwCLKY0.js +37 -0
- package/useSkillFileActions-BU5PzZ_8.js +373 -0
- package/useSkillFilePreview-BYfZUJhr.js +1005 -0
- package/useSkillsState-BoLlwmzb.js +52 -0
- package/useToolsMenu-BXdahO0i.js +1874 -0
- package/useToolsetLogin-GhFtKs4D.js +276 -0
- package/useUsageData-D7BxloKZ.js +201 -0
- package/utils.d.ts +373 -0
- package/utils.js +7 -0
- package/{usePageFileDrag/usePageFileDrag.d.ts → viewport-layout.d.ts} +27 -16
- package/viewport-layout.js +2 -0
- package/api-error/api-error.d.ts +0 -18
- package/api-error/api-error.d.ts.map +0 -1
- package/api-transport/create-csrf-middleware.d.ts +0 -15
- package/api-transport/create-csrf-middleware.d.ts.map +0 -1
- package/api-transport/create-unauthorized-middleware.d.ts +0 -40
- package/api-transport/create-unauthorized-middleware.d.ts.map +0 -1
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts +0 -32
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +0 -1
- package/attachment/useAttachmentValidation/useAttachmentValidation.d.ts.map +0 -1
- package/catalog/catalog-derivations.d.ts +0 -27
- package/catalog/catalog-derivations.d.ts.map +0 -1
- package/catalog/catalog-primary-action.d.ts +0 -47
- package/catalog/catalog-primary-action.d.ts.map +0 -1
- package/catalog/create-publish-api.d.ts +0 -32
- package/catalog/create-publish-api.d.ts.map +0 -1
- package/catalog/deployment-endpoint-url.d.ts +0 -19
- package/catalog/deployment-endpoint-url.d.ts.map +0 -1
- package/catalog/deployment-id.d.ts +0 -21
- package/catalog/deployment-id.d.ts.map +0 -1
- package/catalog/entity-details.d.ts +0 -132
- package/catalog/entity-details.d.ts.map +0 -1
- package/catalog/map-deployment-limits-to-catalog.d.ts +0 -33
- package/catalog/map-deployment-limits-to-catalog.d.ts.map +0 -1
- package/catalog/map-deployment-limits-to-input.d.ts +0 -15
- package/catalog/map-deployment-limits-to-input.d.ts.map +0 -1
- package/catalog/map-deployment-to-catalog-item.d.ts +0 -60
- package/catalog/map-deployment-to-catalog-item.d.ts.map +0 -1
- package/catalog/map-entity-details-to-catalog.d.ts +0 -23
- package/catalog/map-entity-details-to-catalog.d.ts.map +0 -1
- package/catalog/map-prompt-to-catalog-item.d.ts +0 -43
- package/catalog/map-prompt-to-catalog-item.d.ts.map +0 -1
- package/catalog/map-skill-to-catalog-item.d.ts +0 -87
- package/catalog/map-skill-to-catalog-item.d.ts.map +0 -1
- package/catalog/mcp-endpoint-url.d.ts +0 -18
- package/catalog/mcp-endpoint-url.d.ts.map +0 -1
- package/catalog/publish.d.ts +0 -17
- package/catalog/publish.d.ts.map +0 -1
- package/catalog/useCatalogItemDetails.d.ts +0 -73
- package/catalog/useCatalogItemDetails.d.ts.map +0 -1
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts +0 -37
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.d.ts.map +0 -1
- package/catalog/usePublishFolders/usePublishFolders.d.ts +0 -73
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +0 -1
- package/conversation/announcement-message.d.ts +0 -34
- package/conversation/announcement-message.d.ts.map +0 -1
- package/conversation/conversation-transfer/async.d.ts +0 -10
- package/conversation/conversation-transfer/async.d.ts.map +0 -1
- package/conversation/conversation-transfer/attachment-refs.d.ts +0 -12
- package/conversation/conversation-transfer/attachment-refs.d.ts.map +0 -1
- package/conversation/conversation-transfer/build-upload-path.d.ts +0 -40
- package/conversation/conversation-transfer/build-upload-path.d.ts.map +0 -1
- package/conversation/conversation-transfer/date.d.ts +0 -5
- package/conversation/conversation-transfer/date.d.ts.map +0 -1
- package/conversation/conversation-transfer/dial-file-resolve.d.ts +0 -10
- package/conversation/conversation-transfer/dial-file-resolve.d.ts.map +0 -1
- package/conversation/conversation-transfer/export-conversation.d.ts +0 -8
- package/conversation/conversation-transfer/export-conversation.d.ts.map +0 -1
- package/conversation/conversation-transfer/import-conversation.d.ts +0 -82
- package/conversation/conversation-transfer/import-conversation.d.ts.map +0 -1
- package/conversation/conversation-transfer/progress.d.ts +0 -60
- package/conversation/conversation-transfer/progress.d.ts.map +0 -1
- package/conversation/conversation-transfer/queue.d.ts +0 -54
- package/conversation/conversation-transfer/queue.d.ts.map +0 -1
- package/conversation/conversation-transfer/types.d.ts +0 -36
- package/conversation/conversation-transfer/types.d.ts.map +0 -1
- package/conversation/conversation-transfer/zip-export.d.ts +0 -31
- package/conversation/conversation-transfer/zip-export.d.ts.map +0 -1
- package/conversation/conversation-transfer/zip-import.d.ts +0 -17
- package/conversation/conversation-transfer/zip-import.d.ts.map +0 -1
- package/conversation/create-chat-stream-api.d.ts +0 -38
- package/conversation/create-chat-stream-api.d.ts.map +0 -1
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts +0 -39
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.d.ts.map +0 -1
- package/conversation/display-name-watch.d.ts +0 -4
- package/conversation/display-name-watch.d.ts.map +0 -1
- package/conversation/footer-message.d.ts +0 -10
- package/conversation/footer-message.d.ts.map +0 -1
- package/conversation/get-model-id-from-conversation-id.d.ts +0 -27
- package/conversation/get-model-id-from-conversation-id.d.ts.map +0 -1
- package/conversation/greeting.d.ts +0 -18
- package/conversation/greeting.d.ts.map +0 -1
- package/conversation/message-factory.d.ts +0 -7
- package/conversation/message-factory.d.ts.map +0 -1
- package/conversation/message-utils.d.ts +0 -27
- package/conversation/message-utils.d.ts.map +0 -1
- package/conversation/overlay-messages.d.ts +0 -5
- package/conversation/overlay-messages.d.ts.map +0 -1
- package/conversation/quick-app-conversation-starters.d.ts +0 -10
- package/conversation/quick-app-conversation-starters.d.ts.map +0 -1
- package/conversation/starter-option.d.ts +0 -21
- package/conversation/starter-option.d.ts.map +0 -1
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts +0 -34
- package/conversation/useActiveConversationSync/useActiveConversationSync.d.ts.map +0 -1
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts +0 -46
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.d.ts.map +0 -1
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts +0 -26
- package/conversation/useAttachmentUpload/useAttachmentUpload.d.ts.map +0 -1
- package/conversation/useConversationExport/useConversationExport.d.ts +0 -72
- package/conversation/useConversationExport/useConversationExport.d.ts.map +0 -1
- package/conversation/useConversationHandlers/attachment-to-dto.d.ts +0 -7
- package/conversation/useConversationHandlers/attachment-to-dto.d.ts.map +0 -1
- package/conversation/useConversationHandlers/message-factory.d.ts +0 -9
- package/conversation/useConversationHandlers/message-factory.d.ts.map +0 -1
- package/conversation/useConversationHandlers/message-utils.d.ts +0 -14
- package/conversation/useConversationHandlers/message-utils.d.ts.map +0 -1
- package/conversation/useConversationHandlers/starter-option.d.ts +0 -14
- package/conversation/useConversationHandlers/starter-option.d.ts.map +0 -1
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts +0 -66
- package/conversation/useConversationHandlers/useConversationHandlers.d.ts.map +0 -1
- package/conversation/useConversationImport/useConversationImport.d.ts +0 -53
- package/conversation/useConversationImport/useConversationImport.d.ts.map +0 -1
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts +0 -24
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.d.ts.map +0 -1
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts +0 -58
- package/conversation/useConversationPanelItems/useConversationPanelItems.d.ts.map +0 -1
- package/conversation/useConversationScroll/useConversationScroll.d.ts.map +0 -1
- package/conversation/useConversationStream/apply-chunk.d.ts +0 -20
- package/conversation/useConversationStream/apply-chunk.d.ts.map +0 -1
- package/conversation/useConversationStream/buffered-generation.d.ts +0 -15
- package/conversation/useConversationStream/buffered-generation.d.ts.map +0 -1
- package/conversation/useConversationStream/conversation-path.d.ts +0 -7
- package/conversation/useConversationStream/conversation-path.d.ts.map +0 -1
- package/conversation/useConversationStream/generation-resume.d.ts +0 -39
- package/conversation/useConversationStream/generation-resume.d.ts.map +0 -1
- package/conversation/useConversationStream/useConversationStream.d.ts +0 -92
- package/conversation/useConversationStream/useConversationStream.d.ts.map +0 -1
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts +0 -32
- package/conversation/useImportFilePicker/useImportFilePicker.d.ts.map +0 -1
- package/conversation-sources/useConversationSources/useConversationSources.d.ts.map +0 -1
- package/files/annotation.d.ts +0 -10
- package/files/annotation.d.ts.map +0 -1
- package/files/attachment-canvas.d.ts +0 -104
- package/files/attachment-canvas.d.ts.map +0 -1
- package/files/attachment-dto-to-display.d.ts +0 -10
- package/files/attachment-dto-to-display.d.ts.map +0 -1
- package/files/attachment-types.d.ts +0 -14
- package/files/attachment-types.d.ts.map +0 -1
- package/files/create-files-api.d.ts +0 -52
- package/files/create-files-api.d.ts.map +0 -1
- package/files/create-upload-file-with-progress.d.ts +0 -24
- package/files/create-upload-file-with-progress.d.ts.map +0 -1
- package/files/dial-file-manager-copy-move.util.d.ts +0 -15
- package/files/dial-file-manager-copy-move.util.d.ts.map +0 -1
- package/files/dial-file-manager-mapping.util.d.ts +0 -35
- package/files/dial-file-manager-mapping.util.d.ts.map +0 -1
- package/files/dial-file-manager-path.util.d.ts +0 -39
- package/files/dial-file-manager-path.util.d.ts.map +0 -1
- package/files/dial-file-manager.model.d.ts +0 -26
- package/files/dial-file-manager.model.d.ts.map +0 -1
- package/files/dial-file-manager.types.d.ts +0 -317
- package/files/dial-file-manager.types.d.ts.map +0 -1
- package/files/dial-file-to-attachment.d.ts +0 -26
- package/files/dial-file-to-attachment.d.ts.map +0 -1
- package/files/dial-file.d.ts +0 -17
- package/files/dial-file.d.ts.map +0 -1
- package/files/dial-files-api.d.ts +0 -71
- package/files/dial-files-api.d.ts.map +0 -1
- package/files/download-destination.d.ts +0 -31
- package/files/download-destination.d.ts.map +0 -1
- package/files/file-manager-variant.d.ts +0 -4
- package/files/file-manager-variant.d.ts.map +0 -1
- package/files/file-name.d.ts +0 -19
- package/files/file-name.d.ts.map +0 -1
- package/files/prepare-download-destination.d.ts +0 -8
- package/files/prepare-download-destination.d.ts.map +0 -1
- package/files/resolve-dial-file-api-path.d.ts +0 -13
- package/files/resolve-dial-file-api-path.d.ts.map +0 -1
- package/files/useDialFileListing/useDialFileListing.d.ts +0 -73
- package/files/useDialFileListing/useDialFileListing.d.ts.map +0 -1
- package/files/useDialFileManager/useDialFileManager.d.ts +0 -16
- package/files/useDialFileManager/useDialFileManager.d.ts.map +0 -1
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts +0 -14
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.d.ts.map +0 -1
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts +0 -28
- package/files/useDialFileMetadata/useDialFileMetadata.d.ts.map +0 -1
- package/files/useDialFileMutations/useDialFileMutations.d.ts +0 -68
- package/files/useDialFileMutations/useDialFileMutations.d.ts.map +0 -1
- package/files/useDialFileSharing/useDialFileSharing.d.ts +0 -30
- package/files/useDialFileSharing/useDialFileSharing.d.ts.map +0 -1
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts +0 -45
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/oauth/authorize-url.d.ts +0 -16
- package/oauth/authorize-url.d.ts.map +0 -1
- package/oauth/handshake.d.ts +0 -30
- package/oauth/handshake.d.ts.map +0 -1
- package/oauth/models.d.ts +0 -81
- package/oauth/models.d.ts.map +0 -1
- package/oauth/popup.d.ts +0 -30
- package/oauth/popup.d.ts.map +0 -1
- package/oauth/toolset-id.d.ts +0 -23
- package/oauth/toolset-id.d.ts.map +0 -1
- package/oauth/types.d.ts +0 -84
- package/oauth/types.d.ts.map +0 -1
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts +0 -54
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.d.ts.map +0 -1
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts +0 -79
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +0 -1
- package/prompt/export-prompt.d.ts +0 -31
- package/prompt/export-prompt.d.ts.map +0 -1
- package/prompt/prompt-resource.d.ts +0 -30
- package/prompt/prompt-resource.d.ts.map +0 -1
- package/prompt/prompt.d.ts +0 -34
- package/prompt/prompt.d.ts.map +0 -1
- package/prompt/usePromptsState/usePromptsState.d.ts +0 -34
- package/prompt/usePromptsState/usePromptsState.d.ts.map +0 -1
- package/scheduled-task/scheduled-task-mapping.d.ts +0 -19
- package/scheduled-task/scheduled-task-mapping.d.ts.map +0 -1
- package/scheduled-task/scheduled-task-trigger.d.ts.map +0 -1
- package/shared/application-schema.d.ts +0 -10
- package/shared/application-schema.d.ts.map +0 -1
- package/shared/browser-timezone.d.ts +0 -7
- package/shared/browser-timezone.d.ts.map +0 -1
- package/shared/cron-weekday.d.ts +0 -5
- package/shared/cron-weekday.d.ts.map +0 -1
- package/shared/custom-apps.d.ts +0 -7
- package/shared/custom-apps.d.ts.map +0 -1
- package/shared/external-services.d.ts +0 -16
- package/shared/external-services.d.ts.map +0 -1
- package/shared/formatting.d.ts +0 -5
- package/shared/formatting.d.ts.map +0 -1
- package/shared/locale.d.ts +0 -45
- package/shared/locale.d.ts.map +0 -1
- package/shared/string-utils.d.ts +0 -9
- package/shared/string-utils.d.ts.map +0 -1
- package/shared/toolset-login-events.d.ts +0 -15
- package/shared/toolset-login-events.d.ts.map +0 -1
- package/skill/skill-file-batch-validation.d.ts +0 -70
- package/skill/skill-file-batch-validation.d.ts.map +0 -1
- package/skill/skill-file-preview.d.ts +0 -25
- package/skill/skill-file-preview.d.ts.map +0 -1
- package/skill/skill-manifest.d.ts +0 -28
- package/skill/skill-manifest.d.ts.map +0 -1
- package/skill/skill-types.d.ts +0 -42
- package/skill/skill-types.d.ts.map +0 -1
- package/skill/skill.d.ts +0 -114
- package/skill/skill.d.ts.map +0 -1
- package/skill/useSkillEditorLoad.d.ts +0 -74
- package/skill/useSkillEditorLoad.d.ts.map +0 -1
- package/skill/useSkillEditorSubmit.d.ts +0 -105
- package/skill/useSkillEditorSubmit.d.ts.map +0 -1
- package/skill/useSkillFileActions.d.ts +0 -53
- package/skill/useSkillFileActions.d.ts.map +0 -1
- package/skill/useSkillFilePreview.d.ts +0 -38
- package/skill/useSkillFilePreview.d.ts.map +0 -1
- package/skill/useSkillsState/useSkillsState.d.ts.map +0 -1
- package/test-setup.d.ts +0 -2
- package/test-setup.d.ts.map +0 -1
- package/usage/useUsageData/useUsageData.d.ts +0 -20
- package/usage/useUsageData/useUsageData.d.ts.map +0 -1
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts +0 -128
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.d.ts.map +0 -1
- package/usePageFileDrag/usePageFileDrag.d.ts.map +0 -1
- package/usePanelMaxWidth/usePanelMaxWidth.d.ts +0 -6
- package/usePanelMaxWidth/usePanelMaxWidth.d.ts.map +0 -1
- package/useShareLink/useShareLink.d.ts +0 -23
- package/useShareLink/useShareLink.d.ts.map +0 -1
- package/useShareRecipientsCount/useShareRecipientsCount.d.ts.map +0 -1
- package/useToolsMenu/useToolsMenu.d.ts +0 -31
- package/useToolsMenu/useToolsMenu.d.ts.map +0 -1
- package/useViewportWidth/useViewportWidth.d.ts +0 -3
- package/useViewportWidth/useViewportWidth.d.ts.map +0 -1
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
//#region ../../node_modules/fflate/esm/browser.js
|
|
2
|
+
var e = Uint8Array, t = Uint16Array, n = Int32Array, r = new e([
|
|
3
|
+
0,
|
|
4
|
+
0,
|
|
5
|
+
0,
|
|
6
|
+
0,
|
|
7
|
+
0,
|
|
8
|
+
0,
|
|
9
|
+
0,
|
|
10
|
+
0,
|
|
11
|
+
1,
|
|
12
|
+
1,
|
|
13
|
+
1,
|
|
14
|
+
1,
|
|
15
|
+
2,
|
|
16
|
+
2,
|
|
17
|
+
2,
|
|
18
|
+
2,
|
|
19
|
+
3,
|
|
20
|
+
3,
|
|
21
|
+
3,
|
|
22
|
+
3,
|
|
23
|
+
4,
|
|
24
|
+
4,
|
|
25
|
+
4,
|
|
26
|
+
4,
|
|
27
|
+
5,
|
|
28
|
+
5,
|
|
29
|
+
5,
|
|
30
|
+
5,
|
|
31
|
+
0,
|
|
32
|
+
0,
|
|
33
|
+
0,
|
|
34
|
+
0
|
|
35
|
+
]), i = new e([
|
|
36
|
+
0,
|
|
37
|
+
0,
|
|
38
|
+
0,
|
|
39
|
+
0,
|
|
40
|
+
1,
|
|
41
|
+
1,
|
|
42
|
+
2,
|
|
43
|
+
2,
|
|
44
|
+
3,
|
|
45
|
+
3,
|
|
46
|
+
4,
|
|
47
|
+
4,
|
|
48
|
+
5,
|
|
49
|
+
5,
|
|
50
|
+
6,
|
|
51
|
+
6,
|
|
52
|
+
7,
|
|
53
|
+
7,
|
|
54
|
+
8,
|
|
55
|
+
8,
|
|
56
|
+
9,
|
|
57
|
+
9,
|
|
58
|
+
10,
|
|
59
|
+
10,
|
|
60
|
+
11,
|
|
61
|
+
11,
|
|
62
|
+
12,
|
|
63
|
+
12,
|
|
64
|
+
13,
|
|
65
|
+
13,
|
|
66
|
+
0,
|
|
67
|
+
0
|
|
68
|
+
]), a = new e([
|
|
69
|
+
16,
|
|
70
|
+
17,
|
|
71
|
+
18,
|
|
72
|
+
0,
|
|
73
|
+
8,
|
|
74
|
+
7,
|
|
75
|
+
9,
|
|
76
|
+
6,
|
|
77
|
+
10,
|
|
78
|
+
5,
|
|
79
|
+
11,
|
|
80
|
+
4,
|
|
81
|
+
12,
|
|
82
|
+
3,
|
|
83
|
+
13,
|
|
84
|
+
2,
|
|
85
|
+
14,
|
|
86
|
+
1,
|
|
87
|
+
15
|
|
88
|
+
]), o = function(e, r) {
|
|
89
|
+
for (var i = new t(31), a = 0; a < 31; ++a) i[a] = r += 1 << e[a - 1];
|
|
90
|
+
for (var o = new n(i[30]), a = 1; a < 30; ++a) for (var s = i[a]; s < i[a + 1]; ++s) o[s] = s - i[a] << 5 | a;
|
|
91
|
+
return {
|
|
92
|
+
b: i,
|
|
93
|
+
r: o
|
|
94
|
+
};
|
|
95
|
+
}, s = o(r, 2), c = s.b, l = s.r;
|
|
96
|
+
c[28] = 258, l[258] = 28;
|
|
97
|
+
for (var u = o(i, 0), d = u.b, f = u.r, p = new t(32768), m = 0; m < 32768; ++m) {
|
|
98
|
+
var h = (m & 43690) >> 1 | (m & 21845) << 1;
|
|
99
|
+
h = (h & 52428) >> 2 | (h & 13107) << 2, h = (h & 61680) >> 4 | (h & 3855) << 4, p[m] = ((h & 65280) >> 8 | (h & 255) << 8) >> 1;
|
|
100
|
+
}
|
|
101
|
+
for (var g = (function(e, n, r) {
|
|
102
|
+
for (var i = e.length, a = 0, o = new t(n); a < i; ++a) e[a] && ++o[e[a] - 1];
|
|
103
|
+
var s = new t(n);
|
|
104
|
+
for (a = 1; a < n; ++a) s[a] = s[a - 1] + o[a - 1] << 1;
|
|
105
|
+
var c;
|
|
106
|
+
if (r) {
|
|
107
|
+
c = new t(1 << n);
|
|
108
|
+
var l = 15 - n;
|
|
109
|
+
for (a = 0; a < i; ++a) if (e[a]) for (var u = a << 4 | e[a], d = n - e[a], f = s[e[a] - 1]++ << d, m = f | (1 << d) - 1; f <= m; ++f) c[p[f] >> l] = u;
|
|
110
|
+
} else for (c = new t(i), a = 0; a < i; ++a) e[a] && (c[a] = p[s[e[a] - 1]++] >> 15 - e[a]);
|
|
111
|
+
return c;
|
|
112
|
+
}), _ = new e(288), m = 0; m < 144; ++m) _[m] = 8;
|
|
113
|
+
for (var m = 144; m < 256; ++m) _[m] = 9;
|
|
114
|
+
for (var m = 256; m < 280; ++m) _[m] = 7;
|
|
115
|
+
for (var m = 280; m < 288; ++m) _[m] = 8;
|
|
116
|
+
for (var v = new e(32), m = 0; m < 32; ++m) v[m] = 5;
|
|
117
|
+
var y = /*#__PURE__*/ g(_, 9, 0), b = /*#__PURE__*/ g(_, 9, 1), x = /*#__PURE__*/ g(v, 5, 0), S = /*#__PURE__*/ g(v, 5, 1), C = function(e) {
|
|
118
|
+
for (var t = e[0], n = 1; n < e.length; ++n) e[n] > t && (t = e[n]);
|
|
119
|
+
return t;
|
|
120
|
+
}, w = function(e, t, n) {
|
|
121
|
+
var r = t / 8 | 0;
|
|
122
|
+
return (e[r] | e[r + 1] << 8) >> (t & 7) & n;
|
|
123
|
+
}, T = function(e, t) {
|
|
124
|
+
var n = t / 8 | 0;
|
|
125
|
+
return (e[n] | e[n + 1] << 8 | e[n + 2] << 16) >> (t & 7);
|
|
126
|
+
}, ee = function(e) {
|
|
127
|
+
return (e + 7) / 8 | 0;
|
|
128
|
+
}, E = function(t, n, r) {
|
|
129
|
+
return (n == null || n < 0) && (n = 0), (r == null || r > t.length) && (r = t.length), new e(t.subarray(n, r));
|
|
130
|
+
}, D = [
|
|
131
|
+
"unexpected EOF",
|
|
132
|
+
"invalid block type",
|
|
133
|
+
"invalid length/literal",
|
|
134
|
+
"invalid distance",
|
|
135
|
+
"stream finished",
|
|
136
|
+
"no stream handler",
|
|
137
|
+
,
|
|
138
|
+
"no callback",
|
|
139
|
+
"invalid UTF-8 data",
|
|
140
|
+
"extra field too long",
|
|
141
|
+
"date not in range 1980-2099",
|
|
142
|
+
"filename too long",
|
|
143
|
+
"stream finishing",
|
|
144
|
+
"invalid zip data"
|
|
145
|
+
], O = function(e, t, n) {
|
|
146
|
+
var r = Error(t || D[e]);
|
|
147
|
+
if (r.code = e, Error.captureStackTrace && Error.captureStackTrace(r, O), !n) throw r;
|
|
148
|
+
return r;
|
|
149
|
+
}, k = function(t, n, o, s) {
|
|
150
|
+
var l = t.length, u = s ? s.length : 0;
|
|
151
|
+
if (!l || n.f && !n.l) return o || new e(0);
|
|
152
|
+
var f = !o, p = f || n.i != 2, m = n.i;
|
|
153
|
+
f && (o = new e(l * 3));
|
|
154
|
+
var h = function(t) {
|
|
155
|
+
var n = o.length;
|
|
156
|
+
if (t > n) {
|
|
157
|
+
var r = new e(Math.max(n * 2, t));
|
|
158
|
+
r.set(o), o = r;
|
|
159
|
+
}
|
|
160
|
+
}, _ = n.f || 0, v = n.p || 0, y = n.b || 0, x = n.l, D = n.d, k = n.m, A = n.n, j = l * 8;
|
|
161
|
+
do {
|
|
162
|
+
if (!x) {
|
|
163
|
+
_ = w(t, v, 1);
|
|
164
|
+
var M = w(t, v + 1, 3);
|
|
165
|
+
if (v += 3, !M) {
|
|
166
|
+
var N = ee(v) + 4, P = t[N - 4] | t[N - 3] << 8, F = N + P;
|
|
167
|
+
if (F > l) {
|
|
168
|
+
m && O(0);
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
p && h(y + P), o.set(t.subarray(N, F), y), n.b = y += P, n.p = v = F * 8, n.f = _;
|
|
172
|
+
continue;
|
|
173
|
+
} else if (M == 1) x = b, D = S, k = 9, A = 5;
|
|
174
|
+
else if (M == 2) {
|
|
175
|
+
var te = w(t, v, 31) + 257, I = w(t, v + 10, 15) + 4, L = te + w(t, v + 5, 31) + 1;
|
|
176
|
+
v += 14;
|
|
177
|
+
for (var R = new e(L), z = new e(19), B = 0; B < I; ++B) z[a[B]] = w(t, v + B * 3, 7);
|
|
178
|
+
v += I * 3;
|
|
179
|
+
for (var V = C(z), H = (1 << V) - 1, U = g(z, V, 1), B = 0; B < L;) {
|
|
180
|
+
var W = U[w(t, v, H)];
|
|
181
|
+
v += W & 15;
|
|
182
|
+
var N = W >> 4;
|
|
183
|
+
if (N < 16) R[B++] = N;
|
|
184
|
+
else {
|
|
185
|
+
var G = 0, K = 0;
|
|
186
|
+
for (N == 16 ? (K = 3 + w(t, v, 3), v += 2, G = R[B - 1]) : N == 17 ? (K = 3 + w(t, v, 7), v += 3) : N == 18 && (K = 11 + w(t, v, 127), v += 7); K--;) R[B++] = G;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
var q = R.subarray(0, te), J = R.subarray(te);
|
|
190
|
+
k = C(q), A = C(J), x = g(q, k, 1), D = g(J, A, 1);
|
|
191
|
+
} else O(1);
|
|
192
|
+
if (v > j) {
|
|
193
|
+
m && O(0);
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
p && h(y + 131072);
|
|
198
|
+
for (var ne = (1 << k) - 1, re = (1 << A) - 1, Y = v;; Y = v) {
|
|
199
|
+
var G = x[T(t, v) & ne], X = G >> 4;
|
|
200
|
+
if (v += G & 15, v > j) {
|
|
201
|
+
m && O(0);
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
if (G || O(2), X < 256) o[y++] = X;
|
|
205
|
+
else if (X == 256) {
|
|
206
|
+
Y = v, x = null;
|
|
207
|
+
break;
|
|
208
|
+
} else {
|
|
209
|
+
var Z = X - 254;
|
|
210
|
+
if (X > 264) {
|
|
211
|
+
var B = X - 257, Q = r[B];
|
|
212
|
+
Z = w(t, v, (1 << Q) - 1) + c[B], v += Q;
|
|
213
|
+
}
|
|
214
|
+
var $ = D[T(t, v) & re], ie = $ >> 4;
|
|
215
|
+
$ || O(3), v += $ & 15;
|
|
216
|
+
var J = d[ie];
|
|
217
|
+
if (ie > 3) {
|
|
218
|
+
var Q = i[ie];
|
|
219
|
+
J += T(t, v) & (1 << Q) - 1, v += Q;
|
|
220
|
+
}
|
|
221
|
+
if (v > j) {
|
|
222
|
+
m && O(0);
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
p && h(y + 131072);
|
|
226
|
+
var ae = y + Z;
|
|
227
|
+
if (y < J) {
|
|
228
|
+
var oe = u - J, se = Math.min(J, ae);
|
|
229
|
+
for (oe + y < 0 && O(3); y < se; ++y) o[y] = s[oe + y];
|
|
230
|
+
}
|
|
231
|
+
for (; y < ae; ++y) o[y] = o[y - J];
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
n.l = x, n.p = Y, n.b = y, n.f = _, x && (_ = 1, n.m = k, n.d = D, n.n = A);
|
|
235
|
+
} while (!_);
|
|
236
|
+
return y != o.length && f ? E(o, 0, y) : o.subarray(0, y);
|
|
237
|
+
}, A = function(e, t, n) {
|
|
238
|
+
n <<= t & 7;
|
|
239
|
+
var r = t / 8 | 0;
|
|
240
|
+
e[r] |= n, e[r + 1] |= n >> 8;
|
|
241
|
+
}, j = function(e, t, n) {
|
|
242
|
+
n <<= t & 7;
|
|
243
|
+
var r = t / 8 | 0;
|
|
244
|
+
e[r] |= n, e[r + 1] |= n >> 8, e[r + 2] |= n >> 16;
|
|
245
|
+
}, M = function(n, r) {
|
|
246
|
+
for (var i = [], a = 0; a < n.length; ++a) n[a] && i.push({
|
|
247
|
+
s: a,
|
|
248
|
+
f: n[a]
|
|
249
|
+
});
|
|
250
|
+
var o = i.length, s = i.slice();
|
|
251
|
+
if (!o) return {
|
|
252
|
+
t: R,
|
|
253
|
+
l: 0
|
|
254
|
+
};
|
|
255
|
+
if (o == 1) {
|
|
256
|
+
var c = new e(i[0].s + 1);
|
|
257
|
+
return c[i[0].s] = 1, {
|
|
258
|
+
t: c,
|
|
259
|
+
l: 1
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
i.sort(function(e, t) {
|
|
263
|
+
return e.f - t.f;
|
|
264
|
+
}), i.push({
|
|
265
|
+
s: -1,
|
|
266
|
+
f: 25001
|
|
267
|
+
});
|
|
268
|
+
var l = i[0], u = i[1], d = 0, f = 1, p = 2;
|
|
269
|
+
for (i[0] = {
|
|
270
|
+
s: -1,
|
|
271
|
+
f: l.f + u.f,
|
|
272
|
+
l,
|
|
273
|
+
r: u
|
|
274
|
+
}; f != o - 1;) l = i[i[d].f < i[p].f ? d++ : p++], u = i[d != f && i[d].f < i[p].f ? d++ : p++], i[f++] = {
|
|
275
|
+
s: -1,
|
|
276
|
+
f: l.f + u.f,
|
|
277
|
+
l,
|
|
278
|
+
r: u
|
|
279
|
+
};
|
|
280
|
+
for (var m = s[0].s, a = 1; a < o; ++a) s[a].s > m && (m = s[a].s);
|
|
281
|
+
var h = new t(m + 1), g = N(i[f - 1], h, 0);
|
|
282
|
+
if (g > r) {
|
|
283
|
+
var a = 0, _ = 0, v = g - r, y = 1 << v;
|
|
284
|
+
for (s.sort(function(e, t) {
|
|
285
|
+
return h[t.s] - h[e.s] || e.f - t.f;
|
|
286
|
+
}); a < o; ++a) {
|
|
287
|
+
var b = s[a].s;
|
|
288
|
+
if (h[b] > r) _ += y - (1 << g - h[b]), h[b] = r;
|
|
289
|
+
else break;
|
|
290
|
+
}
|
|
291
|
+
for (_ >>= v; _ > 0;) {
|
|
292
|
+
var x = s[a].s;
|
|
293
|
+
h[x] < r ? _ -= 1 << r - h[x]++ - 1 : ++a;
|
|
294
|
+
}
|
|
295
|
+
for (; a >= 0 && _; --a) {
|
|
296
|
+
var S = s[a].s;
|
|
297
|
+
h[S] == r && (--h[S], ++_);
|
|
298
|
+
}
|
|
299
|
+
g = r;
|
|
300
|
+
}
|
|
301
|
+
return {
|
|
302
|
+
t: new e(h),
|
|
303
|
+
l: g
|
|
304
|
+
};
|
|
305
|
+
}, N = function(e, t, n) {
|
|
306
|
+
return e.s == -1 ? Math.max(N(e.l, t, n + 1), N(e.r, t, n + 1)) : t[e.s] = n;
|
|
307
|
+
}, P = function(e) {
|
|
308
|
+
for (var n = e.length; n && !e[--n];);
|
|
309
|
+
for (var r = new t(++n), i = 0, a = e[0], o = 1, s = function(e) {
|
|
310
|
+
r[i++] = e;
|
|
311
|
+
}, c = 1; c <= n; ++c) if (e[c] == a && c != n) ++o;
|
|
312
|
+
else {
|
|
313
|
+
if (!a && o > 2) {
|
|
314
|
+
for (; o > 138; o -= 138) s(32754);
|
|
315
|
+
o > 2 && (s(o > 10 ? o - 11 << 5 | 28690 : o - 3 << 5 | 12305), o = 0);
|
|
316
|
+
} else if (o > 3) {
|
|
317
|
+
for (s(a), --o; o > 6; o -= 6) s(8304);
|
|
318
|
+
o > 2 && (s(o - 3 << 5 | 8208), o = 0);
|
|
319
|
+
}
|
|
320
|
+
for (; o--;) s(a);
|
|
321
|
+
o = 1, a = e[c];
|
|
322
|
+
}
|
|
323
|
+
return {
|
|
324
|
+
c: r.subarray(0, i),
|
|
325
|
+
n
|
|
326
|
+
};
|
|
327
|
+
}, F = function(e, t) {
|
|
328
|
+
for (var n = 0, r = 0; r < t.length; ++r) n += e[r] * t[r];
|
|
329
|
+
return n;
|
|
330
|
+
}, te = function(e, t, n) {
|
|
331
|
+
var r = n.length, i = ee(t + 2);
|
|
332
|
+
e[i] = r & 255, e[i + 1] = r >> 8, e[i + 2] = e[i] ^ 255, e[i + 3] = e[i + 1] ^ 255;
|
|
333
|
+
for (var a = 0; a < r; ++a) e[i + a + 4] = n[a];
|
|
334
|
+
return (i + 4 + r) * 8;
|
|
335
|
+
}, I = function(e, n, o, s, c, l, u, d, f, p, m) {
|
|
336
|
+
A(n, m++, o), ++c[256];
|
|
337
|
+
for (var h = M(c, 15), b = h.t, S = h.l, C = M(l, 15), w = C.t, T = C.l, ee = P(b), E = ee.c, D = ee.n, O = P(w), k = O.c, N = O.n, I = new t(19), L = 0; L < E.length; ++L) ++I[E[L] & 31];
|
|
338
|
+
for (var L = 0; L < k.length; ++L) ++I[k[L] & 31];
|
|
339
|
+
for (var R = M(I, 7), z = R.t, B = R.l, V = 19; V > 4 && !z[a[V - 1]]; --V);
|
|
340
|
+
var H = p + 5 << 3, U = F(c, _) + F(l, v) + u, W = F(c, b) + F(l, w) + u + 14 + 3 * V + F(I, z) + 2 * I[16] + 3 * I[17] + 7 * I[18];
|
|
341
|
+
if (f >= 0 && H <= U && H <= W) return te(n, m, e.subarray(f, f + p));
|
|
342
|
+
var G, K, q, J;
|
|
343
|
+
if (A(n, m, 1 + (W < U)), m += 2, W < U) {
|
|
344
|
+
G = g(b, S, 0), K = b, q = g(w, T, 0), J = w;
|
|
345
|
+
var ne = g(z, B, 0);
|
|
346
|
+
A(n, m, D - 257), A(n, m + 5, N - 1), A(n, m + 10, V - 4), m += 14;
|
|
347
|
+
for (var L = 0; L < V; ++L) A(n, m + 3 * L, z[a[L]]);
|
|
348
|
+
m += 3 * V;
|
|
349
|
+
for (var re = [E, k], Y = 0; Y < 2; ++Y) for (var X = re[Y], L = 0; L < X.length; ++L) {
|
|
350
|
+
var Z = X[L] & 31;
|
|
351
|
+
A(n, m, ne[Z]), m += z[Z], Z > 15 && (A(n, m, X[L] >> 5 & 127), m += X[L] >> 12);
|
|
352
|
+
}
|
|
353
|
+
} else G = y, K = _, q = x, J = v;
|
|
354
|
+
for (var L = 0; L < d; ++L) {
|
|
355
|
+
var Q = s[L];
|
|
356
|
+
if (Q > 255) {
|
|
357
|
+
var Z = Q >> 18 & 31;
|
|
358
|
+
j(n, m, G[Z + 257]), m += K[Z + 257], Z > 7 && (A(n, m, Q >> 23 & 31), m += r[Z]);
|
|
359
|
+
var $ = Q & 31;
|
|
360
|
+
j(n, m, q[$]), m += J[$], $ > 3 && (j(n, m, Q >> 5 & 8191), m += i[$]);
|
|
361
|
+
} else j(n, m, G[Q]), m += K[Q];
|
|
362
|
+
}
|
|
363
|
+
return j(n, m, G[256]), m + K[256];
|
|
364
|
+
}, L = /*#__PURE__*/ new n([
|
|
365
|
+
65540,
|
|
366
|
+
131080,
|
|
367
|
+
131088,
|
|
368
|
+
131104,
|
|
369
|
+
262176,
|
|
370
|
+
1048704,
|
|
371
|
+
1048832,
|
|
372
|
+
2114560,
|
|
373
|
+
2117632
|
|
374
|
+
]), R = /*#__PURE__*/ new e(0), z = function(a, o, s, c, u, d) {
|
|
375
|
+
var p = d.z || a.length, m = new e(c + p + 5 * (1 + Math.ceil(p / 7e3)) + u), h = m.subarray(c, m.length - u), g = d.l, _ = (d.r || 0) & 7;
|
|
376
|
+
if (o) {
|
|
377
|
+
_ && (h[0] = d.r >> 3);
|
|
378
|
+
for (var v = L[o - 1], y = v >> 13, b = v & 8191, x = (1 << s) - 1, S = d.p || new t(32768), C = d.h || new t(x + 1), w = Math.ceil(s / 3), T = 2 * w, D = function(e) {
|
|
379
|
+
return (a[e] ^ a[e + 1] << w ^ a[e + 2] << T) & x;
|
|
380
|
+
}, O = new n(25e3), k = new t(288), A = new t(32), j = 0, M = 0, N = d.i || 0, P = 0, F = d.w || 0, R = 0; N + 2 < p; ++N) {
|
|
381
|
+
var z = D(N), B = N & 32767, V = C[z];
|
|
382
|
+
if (S[B] = V, C[z] = B, F <= N) {
|
|
383
|
+
var H = p - N;
|
|
384
|
+
if ((j > 7e3 || P > 24576) && (H > 423 || !g)) {
|
|
385
|
+
_ = I(a, h, 0, O, k, A, M, P, R, N - R, _), P = j = M = 0, R = N;
|
|
386
|
+
for (var U = 0; U < 286; ++U) k[U] = 0;
|
|
387
|
+
for (var U = 0; U < 30; ++U) A[U] = 0;
|
|
388
|
+
}
|
|
389
|
+
var W = 2, G = 0, K = b, q = B - V & 32767;
|
|
390
|
+
if (H > 2 && z == D(N - q)) for (var J = Math.min(y, H) - 1, ne = Math.min(32767, N), re = Math.min(258, H); q <= ne && --K && B != V;) {
|
|
391
|
+
if (a[N + W] == a[N + W - q]) {
|
|
392
|
+
for (var Y = 0; Y < re && a[N + Y] == a[N + Y - q]; ++Y);
|
|
393
|
+
if (Y > W) {
|
|
394
|
+
if (W = Y, G = q, Y > J) break;
|
|
395
|
+
for (var X = Math.min(q, Y - 2), Z = 0, U = 0; U < X; ++U) {
|
|
396
|
+
var Q = N - q + U & 32767, $ = Q - S[Q] & 32767;
|
|
397
|
+
$ > Z && (Z = $, V = Q);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
B = V, V = S[B], q += B - V & 32767;
|
|
402
|
+
}
|
|
403
|
+
if (G) {
|
|
404
|
+
O[P++] = 268435456 | l[W] << 18 | f[G];
|
|
405
|
+
var ie = l[W] & 31, ae = f[G] & 31;
|
|
406
|
+
M += r[ie] + i[ae], ++k[257 + ie], ++A[ae], F = N + W, ++j;
|
|
407
|
+
} else O[P++] = a[N], ++k[a[N]];
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
for (N = Math.max(N, F); N < p; ++N) O[P++] = a[N], ++k[a[N]];
|
|
411
|
+
_ = I(a, h, g, O, k, A, M, P, R, N - R, _), g || (d.r = _ & 7 | h[_ / 8 | 0] << 3, _ -= 7, d.h = C, d.p = S, d.i = N, d.w = F);
|
|
412
|
+
} else {
|
|
413
|
+
for (var N = d.w || 0; N < p + g; N += 65535) {
|
|
414
|
+
var oe = N + 65535;
|
|
415
|
+
oe >= p && (h[_ / 8 | 0] = g, oe = p), _ = te(h, _ + 1, a.subarray(N, oe));
|
|
416
|
+
}
|
|
417
|
+
d.i = p;
|
|
418
|
+
}
|
|
419
|
+
return E(m, 0, c + ee(_) + u);
|
|
420
|
+
}, B = /*#__PURE__*/ (function() {
|
|
421
|
+
for (var e = new Int32Array(256), t = 0; t < 256; ++t) {
|
|
422
|
+
for (var n = t, r = 9; --r;) n = (n & 1 && -306674912) ^ n >>> 1;
|
|
423
|
+
e[t] = n;
|
|
424
|
+
}
|
|
425
|
+
return e;
|
|
426
|
+
})(), V = function() {
|
|
427
|
+
var e = -1;
|
|
428
|
+
return {
|
|
429
|
+
p: function(t) {
|
|
430
|
+
for (var n = e, r = 0; r < t.length; ++r) n = B[n & 255 ^ t[r]] ^ n >>> 8;
|
|
431
|
+
e = n;
|
|
432
|
+
},
|
|
433
|
+
d: function() {
|
|
434
|
+
return ~e;
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
}, H = function(t, n, r, i, a) {
|
|
438
|
+
if (!a && (a = { l: 1 }, n.dictionary)) {
|
|
439
|
+
var o = n.dictionary.subarray(-32768), s = new e(o.length + t.length);
|
|
440
|
+
s.set(o), s.set(t, o.length), t = s, a.w = o.length;
|
|
441
|
+
}
|
|
442
|
+
return z(t, n.level == null ? 6 : n.level, n.mem == null ? a.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(t.length))) * 1.5) : 20 : 12 + n.mem, r, i, a);
|
|
443
|
+
}, U = function(e, t) {
|
|
444
|
+
var n = {};
|
|
445
|
+
for (var r in e) n[r] = e[r];
|
|
446
|
+
for (var r in t) n[r] = t[r];
|
|
447
|
+
return n;
|
|
448
|
+
}, W = function(e, t) {
|
|
449
|
+
return e[t] | e[t + 1] << 8;
|
|
450
|
+
}, G = function(e, t) {
|
|
451
|
+
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16 | e[t + 3] << 24) >>> 0;
|
|
452
|
+
}, K = function(e, t) {
|
|
453
|
+
return G(e, t) + G(e, t + 4) * 4294967296;
|
|
454
|
+
}, q = function(e, t, n) {
|
|
455
|
+
for (; n; ++t) e[t] = n, n >>>= 8;
|
|
456
|
+
};
|
|
457
|
+
function J(e, t) {
|
|
458
|
+
return H(e, t || {}, 0, 0);
|
|
459
|
+
}
|
|
460
|
+
function ne(e, t) {
|
|
461
|
+
return k(e, { i: 2 }, t && t.out, t && t.dictionary);
|
|
462
|
+
}
|
|
463
|
+
var re = function(t, n, r, i) {
|
|
464
|
+
for (var a in t) {
|
|
465
|
+
var o = t[a], s = n + a, c = i;
|
|
466
|
+
Array.isArray(o) && (c = U(i, o[1]), o = o[0]), ArrayBuffer.isView(o) ? r[s] = [o, c] : (r[s += "/"] = [new e(0), c], re(o, s, r, i));
|
|
467
|
+
}
|
|
468
|
+
}, Y = typeof TextEncoder < "u" && /*#__PURE__*/ new TextEncoder(), X = typeof TextDecoder < "u" && /*#__PURE__*/ new TextDecoder();
|
|
469
|
+
try {
|
|
470
|
+
X.decode(R, { stream: !0 });
|
|
471
|
+
} catch {}
|
|
472
|
+
var Z = function(e) {
|
|
473
|
+
for (var t = "", n = 0;;) {
|
|
474
|
+
var r = e[n++], i = (r > 127) + (r > 223) + (r > 239);
|
|
475
|
+
if (n + i > e.length) return {
|
|
476
|
+
s: t,
|
|
477
|
+
r: E(e, n - 1)
|
|
478
|
+
};
|
|
479
|
+
i ? i == 3 ? (r = ((r & 15) << 18 | (e[n++] & 63) << 12 | (e[n++] & 63) << 6 | e[n++] & 63) - 65536, t += String.fromCharCode(55296 | r >> 10, 56320 | r & 1023)) : i & 1 ? t += String.fromCharCode((r & 31) << 6 | e[n++] & 63) : t += String.fromCharCode((r & 15) << 12 | (e[n++] & 63) << 6 | e[n++] & 63) : t += String.fromCharCode(r);
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
function Q(t, n) {
|
|
483
|
+
if (n) {
|
|
484
|
+
for (var r = new e(t.length), i = 0; i < t.length; ++i) r[i] = t.charCodeAt(i);
|
|
485
|
+
return r;
|
|
486
|
+
}
|
|
487
|
+
if (Y) return Y.encode(t);
|
|
488
|
+
for (var a = t.length, o = new e(t.length + (t.length >> 1)), s = 0, c = function(e) {
|
|
489
|
+
o[s++] = e;
|
|
490
|
+
}, i = 0; i < a; ++i) {
|
|
491
|
+
if (s + 5 > o.length) {
|
|
492
|
+
var l = new e(s + 8 + (a - i << 1));
|
|
493
|
+
l.set(o), o = l;
|
|
494
|
+
}
|
|
495
|
+
var u = t.charCodeAt(i);
|
|
496
|
+
u < 128 || n ? c(u) : u < 2048 ? (c(192 | u >> 6), c(128 | u & 63)) : u > 55295 && u < 57344 ? (u = 65536 + (u & 1047552) | t.charCodeAt(++i) & 1023, c(240 | u >> 18), c(128 | u >> 12 & 63), c(128 | u >> 6 & 63), c(128 | u & 63)) : (c(224 | u >> 12), c(128 | u >> 6 & 63), c(128 | u & 63));
|
|
497
|
+
}
|
|
498
|
+
return E(o, 0, s);
|
|
499
|
+
}
|
|
500
|
+
function $(e, t) {
|
|
501
|
+
if (t) {
|
|
502
|
+
for (var n = "", r = 0; r < e.length; r += 16384) n += String.fromCharCode.apply(null, e.subarray(r, r + 16384));
|
|
503
|
+
return n;
|
|
504
|
+
} else if (X) return X.decode(e);
|
|
505
|
+
else {
|
|
506
|
+
var i = Z(e), a = i.s, n = i.r;
|
|
507
|
+
return n.length && O(8), a;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
var ie = function(e, t) {
|
|
511
|
+
return t + 30 + W(e, t + 26) + W(e, t + 28);
|
|
512
|
+
}, ae = function(e, t, n) {
|
|
513
|
+
var r = W(e, t + 28), i = W(e, t + 30), a = $(e.subarray(t + 46, t + 46 + r), !(W(e, t + 8) & 2048)), o = t + 46 + r, s = oe(e, o, i, n, G(e, t + 20), G(e, t + 24), G(e, t + 42)), c = s[0], l = s[1], u = s[2];
|
|
514
|
+
return [
|
|
515
|
+
W(e, t + 10),
|
|
516
|
+
c,
|
|
517
|
+
l,
|
|
518
|
+
a,
|
|
519
|
+
o + i + W(e, t + 32),
|
|
520
|
+
u
|
|
521
|
+
];
|
|
522
|
+
}, oe = function(e, t, n, r, i, a, o) {
|
|
523
|
+
var s = i == 4294967295, c = a == 4294967295, l = o == 4294967295, u = t + n, d = s + c + l;
|
|
524
|
+
if (r && d) {
|
|
525
|
+
for (; t + 4 < u; t += 4 + W(e, t + 2)) if (W(e, t) == 1) return [
|
|
526
|
+
s ? K(e, t + 4 + 8 * c) : i,
|
|
527
|
+
c ? K(e, t + 4) : a,
|
|
528
|
+
l ? K(e, t + 4 + 8 * (c + s)) : o,
|
|
529
|
+
1
|
|
530
|
+
];
|
|
531
|
+
r < 2 && O(13);
|
|
532
|
+
}
|
|
533
|
+
return [
|
|
534
|
+
i,
|
|
535
|
+
a,
|
|
536
|
+
o,
|
|
537
|
+
0
|
|
538
|
+
];
|
|
539
|
+
}, se = function(e) {
|
|
540
|
+
var t = 0;
|
|
541
|
+
if (e) for (var n in e) {
|
|
542
|
+
var r = e[n].length;
|
|
543
|
+
r > 65535 && O(9), t += r + 4;
|
|
544
|
+
}
|
|
545
|
+
return t;
|
|
546
|
+
}, ce = function(e, t, n, r, i, a, o, s) {
|
|
547
|
+
var c = r.length, l = n.extra, u = s && s.length, d = se(l);
|
|
548
|
+
q(e, t, o == null ? 67324752 : 33639248), t += 4, o != null && (e[t++] = 20, e[t++] = n.os), e[t] = 20, t += 2, e[t++] = n.flag << 1 | (a < 0 && 8), e[t++] = i && 8, e[t++] = n.compression & 255, e[t++] = n.compression >> 8;
|
|
549
|
+
var f = new Date(n.mtime == null ? Date.now() : n.mtime), p = f.getFullYear() - 1980;
|
|
550
|
+
if ((p < 0 || p > 119) && O(10), q(e, t, p << 25 | f.getMonth() + 1 << 21 | f.getDate() << 16 | f.getHours() << 11 | f.getMinutes() << 5 | f.getSeconds() >> 1), t += 4, a != -1 && (q(e, t, n.crc), q(e, t + 4, a < 0 ? -a - 2 : a), q(e, t + 8, n.size)), q(e, t + 12, c), q(e, t + 14, d), t += 16, o != null && (q(e, t, u), q(e, t + 6, n.attrs), q(e, t + 10, o), t += 14), e.set(r, t), t += c, d) for (var m in l) {
|
|
551
|
+
var h = l[m], g = h.length;
|
|
552
|
+
q(e, t, +m), q(e, t + 2, g), e.set(h, t + 4), t += 4 + g;
|
|
553
|
+
}
|
|
554
|
+
return u && (e.set(s, t), t += u), t;
|
|
555
|
+
}, le = function(e, t, n, r, i) {
|
|
556
|
+
q(e, t, 101010256), q(e, t + 8, n), q(e, t + 10, n), q(e, t + 12, r), q(e, t + 16, i);
|
|
557
|
+
};
|
|
558
|
+
function ue(t, n) {
|
|
559
|
+
n ||= {};
|
|
560
|
+
var r = {}, i = [];
|
|
561
|
+
re(t, "", r, n);
|
|
562
|
+
var a = 0, o = 0;
|
|
563
|
+
for (var s in r) {
|
|
564
|
+
var c = r[s], l = c[0], u = c[1], d = u.level == 0 ? 0 : 8, f = Q(s), p = f.length, m = u.comment, h = m && Q(m), g = h && h.length, _ = se(u.extra);
|
|
565
|
+
p > 65535 && O(11);
|
|
566
|
+
var v = d ? J(l, u) : l, y = v.length, b = V();
|
|
567
|
+
b.p(l), i.push(U(u, {
|
|
568
|
+
size: l.length,
|
|
569
|
+
crc: b.d(),
|
|
570
|
+
c: v,
|
|
571
|
+
f,
|
|
572
|
+
m: h,
|
|
573
|
+
u: p != s.length || h && m.length != g,
|
|
574
|
+
o: a,
|
|
575
|
+
compression: d
|
|
576
|
+
})), a += 30 + p + _ + y, o += 76 + 2 * (p + _) + (g || 0) + y;
|
|
577
|
+
}
|
|
578
|
+
for (var x = new e(o + 22), S = a, C = o - a, w = 0; w < i.length; ++w) {
|
|
579
|
+
var f = i[w];
|
|
580
|
+
ce(x, f.o, f, f.f, f.u, f.c.length);
|
|
581
|
+
var T = 30 + f.f.length + se(f.extra);
|
|
582
|
+
x.set(f.c, f.o + T), ce(x, a, f, f.f, f.u, f.c.length, f.o, f.m), a += 16 + T + (f.m ? f.m.length : 0);
|
|
583
|
+
}
|
|
584
|
+
return le(x, a, i.length, C, S), x;
|
|
585
|
+
}
|
|
586
|
+
function de(t, n) {
|
|
587
|
+
for (var r = {}, i = t.length - 22; G(t, i) != 101010256; --i) (!i || t.length - i > 65558) && O(13);
|
|
588
|
+
var a = W(t, i + 8);
|
|
589
|
+
if (!a) return {};
|
|
590
|
+
var o = G(t, i + 16), s = G(t, i - 20) == 117853008;
|
|
591
|
+
if (s) {
|
|
592
|
+
var c = G(t, i - 12);
|
|
593
|
+
s = G(t, c) == 101075792, s && (a = G(t, c + 32), o = G(t, c + 48));
|
|
594
|
+
}
|
|
595
|
+
for (var l = n && n.filter, u = 0; u < a; ++u) {
|
|
596
|
+
var d = ae(t, o, s), f = d[0], p = d[1], m = d[2], h = d[3], g = d[4], _ = d[5], v = ie(t, _);
|
|
597
|
+
o = g, (!l || l({
|
|
598
|
+
name: h,
|
|
599
|
+
size: p,
|
|
600
|
+
originalSize: m,
|
|
601
|
+
compression: f
|
|
602
|
+
})) && (f ? f == 8 ? r[h] = ne(t.subarray(v, v + p), { out: new e(m) }) : O(14, "unknown compression type " + f) : r[h] = E(t, v, v + p));
|
|
603
|
+
}
|
|
604
|
+
return r;
|
|
605
|
+
}
|
|
606
|
+
//#endregion
|
|
607
|
+
export { ue as i, Q as n, de as r, $ as t };
|