@vandenberghinc/volt 1.1.26 → 1.1.28
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/backend/dist/cjs/{blacklist.d.ts → backend/src/blacklist.d.ts} +5 -3
- package/backend/dist/cjs/{blacklist.js → backend/src/blacklist.js} +8 -5
- package/backend/dist/cjs/{cli.js → backend/src/cli.js} +29 -47
- package/backend/dist/cjs/backend/src/database/collection.d.ts +1543 -0
- package/backend/dist/cjs/backend/src/database/collection.js +3042 -0
- package/backend/dist/cjs/backend/src/database/database.d.ts +66 -0
- package/backend/dist/cjs/{database → backend/src/database}/database.js +48 -43
- package/backend/dist/cjs/backend/src/database/filters/filters.d.ts +6 -0
- package/backend/dist/cjs/backend/src/database/filters/filters.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.d.ts +223 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.js +443 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.d.ts +50 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.d.ts +76 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.d.ts +75 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.d.ts +219 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.d.ts +165 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.js +15 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.d.ts +5 -0
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.js +355 -0
- package/backend/dist/cjs/backend/src/database/flatten.d.ts +75 -0
- package/backend/dist/cjs/{logger.js → backend/src/database/flatten.js} +18 -7
- package/backend/dist/cjs/backend/src/database/flatten_test.js +175 -0
- package/backend/dist/cjs/backend/src/database/quota/quota.d.ts +461 -0
- package/backend/dist/cjs/backend/src/database/quota/quota.js +1014 -0
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.d.ts +534 -0
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.js +1087 -0
- package/backend/dist/cjs/backend/src/database/quota/safe_int.d.ts +293 -0
- package/backend/dist/cjs/backend/src/database/quota/safe_int.js +573 -0
- package/backend/dist/{esm → cjs/backend/src}/endpoint.d.ts +69 -46
- package/backend/dist/cjs/{endpoint.js → backend/src/endpoint.js} +87 -101
- package/backend/dist/cjs/backend/src/errors/index.d.ts +7 -0
- package/backend/dist/cjs/backend/src/errors/index.js +25 -0
- package/backend/dist/{esm/utils.d.ts → cjs/backend/src/errors/internal_external.d.ts} +14 -22
- package/backend/dist/cjs/backend/src/errors/internal_external.js +85 -0
- package/backend/dist/cjs/backend/src/errors/invalid_usage_error.d.ts +38 -0
- package/backend/dist/cjs/{mutex.js → backend/src/errors/invalid_usage_error.js} +20 -37
- package/backend/dist/cjs/backend/src/errors/system_error.d.ts +230 -0
- package/backend/dist/cjs/backend/src/errors/system_error.js +393 -0
- package/backend/dist/cjs/backend/src/events.d.ts +54 -0
- package/backend/dist/cjs/backend/src/events.js +15 -0
- package/backend/dist/cjs/{frontend.js → backend/src/frontend.js} +1 -1
- package/backend/dist/cjs/{image_endpoint.d.ts → backend/src/image_endpoint.d.ts} +16 -1
- package/backend/dist/cjs/{image_endpoint.js → backend/src/image_endpoint.js} +3 -5
- package/backend/dist/cjs/backend/src/logger.d.ts +5 -0
- package/backend/dist/cjs/backend/src/logger.js +15 -0
- package/backend/dist/cjs/backend/src/meta.d.ts +64 -0
- package/backend/dist/cjs/{meta.js → backend/src/meta.js} +9 -12
- package/backend/dist/cjs/backend/src/payments/paddle.d.ts +326 -0
- package/backend/dist/cjs/{payments → backend/src/payments}/paddle.js +377 -327
- package/backend/dist/cjs/backend/src/plugins/browser.d.ts +1 -0
- package/backend/dist/cjs/backend/src/plugins/browser.js +15 -0
- package/backend/dist/cjs/backend/src/plugins/mail/mail.d.ts +248 -0
- package/backend/dist/cjs/backend/src/plugins/mail/mail.js +379 -0
- package/backend/dist/{esm → cjs/backend/src}/plugins/mail/ui.d.ts +23 -0
- package/backend/dist/cjs/backend/src/plugins/pdf.d.ts +1 -0
- package/backend/dist/cjs/backend/src/rate_limit.d.ts +145 -0
- package/backend/dist/cjs/backend/src/rate_limit.js +549 -0
- package/backend/dist/cjs/{route.d.ts → backend/src/route.d.ts} +3 -10
- package/backend/dist/cjs/{route.js → backend/src/route.js} +23 -21
- package/backend/dist/cjs/backend/src/server.d.ts +485 -0
- package/backend/dist/cjs/{server.js → backend/src/server.js} +688 -873
- package/backend/dist/cjs/backend/src/splash_screen.d.ts +80 -0
- package/backend/dist/cjs/{splash_screen.js → backend/src/splash_screen.js} +24 -3
- package/backend/dist/cjs/backend/src/status.d.ts +74 -0
- package/backend/dist/cjs/{status.js → backend/src/status.js} +64 -64
- package/backend/dist/cjs/backend/src/stream.d.ts +376 -0
- package/backend/dist/cjs/{stream.js → backend/src/stream.js} +299 -276
- package/backend/dist/cjs/backend/src/users.d.ts +807 -0
- package/backend/dist/cjs/backend/src/users.js +1971 -0
- package/backend/dist/cjs/backend/src/utils.d.ts +16 -0
- package/backend/dist/cjs/{utils.js → backend/src/utils.js} +14 -77
- package/backend/dist/{esm → cjs/backend/src}/view.d.ts +33 -11
- package/backend/dist/cjs/backend/src/view.js +508 -0
- package/backend/dist/{esm → cjs/backend/src}/volt.d.ts +10 -1
- package/backend/dist/cjs/{volt.js → backend/src/volt.js} +8 -5
- package/backend/dist/cjs/frontend/src/modules/request.d.ts +70 -0
- package/backend/dist/cjs/frontend/src/modules/request.js +99 -0
- package/backend/dist/esm/{blacklist.d.ts → backend/src/blacklist.d.ts} +5 -3
- package/backend/dist/esm/{blacklist.js → backend/src/blacklist.js} +9 -6
- package/backend/dist/esm/{cli.js → backend/src/cli.js} +43 -60
- package/backend/dist/esm/backend/src/database/collection.d.ts +1543 -0
- package/backend/dist/esm/backend/src/database/collection.js +3510 -0
- package/backend/dist/esm/backend/src/database/database.d.ts +66 -0
- package/backend/dist/esm/{database → backend/src/database}/database.js +62 -103
- package/backend/dist/esm/backend/src/database/document.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/document.js +558 -0
- package/backend/dist/esm/backend/src/database/filters/filters.d.ts +6 -0
- package/backend/dist/esm/backend/src/database/filters/filters.js +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter.d.ts +223 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter.js +3 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.js +505 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.js +712 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.d.ts +50 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.js +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.d.ts +76 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.js +44 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.d.ts +75 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.js +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.d.ts +219 -0
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.js +1 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.d.ts +165 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.js +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.d.ts +5 -0
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.js +405 -0
- package/backend/dist/esm/backend/src/database/flatten.d.ts +75 -0
- package/backend/dist/esm/backend/src/database/flatten.js +22 -0
- package/backend/dist/esm/backend/src/database/flatten_test.d.ts +1 -0
- package/backend/dist/esm/backend/src/database/flatten_test.js +174 -0
- package/backend/dist/esm/backend/src/database/quota/quota.d.ts +461 -0
- package/backend/dist/esm/backend/src/database/quota/quota.js +1118 -0
- package/backend/dist/esm/backend/src/database/quota/quota_v1.d.ts +534 -0
- package/backend/dist/esm/backend/src/database/quota/quota_v1.js +1242 -0
- package/backend/dist/esm/backend/src/database/quota/safe_int.d.ts +293 -0
- package/backend/dist/esm/backend/src/database/quota/safe_int.js +602 -0
- package/backend/dist/{cjs → esm/backend/src}/endpoint.d.ts +69 -46
- package/backend/dist/esm/{endpoint.js → backend/src/endpoint.js} +136 -127
- package/backend/dist/esm/backend/src/errors/index.d.ts +7 -0
- package/backend/dist/esm/backend/src/errors/index.js +7 -0
- package/backend/dist/{cjs/utils.d.ts → esm/backend/src/errors/internal_external.d.ts} +14 -22
- package/backend/dist/esm/backend/src/errors/internal_external.js +70 -0
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.d.ts +38 -0
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.js +30 -0
- package/backend/dist/esm/backend/src/errors/system_error.d.ts +230 -0
- package/backend/dist/esm/backend/src/errors/system_error.js +402 -0
- package/backend/dist/esm/backend/src/events.d.ts +54 -0
- package/backend/dist/esm/backend/src/events.js +5 -0
- package/backend/dist/esm/{frontend.js → backend/src/frontend.js} +1 -1
- package/backend/dist/esm/{image_endpoint.d.ts → backend/src/image_endpoint.d.ts} +16 -1
- package/backend/dist/esm/{image_endpoint.js → backend/src/image_endpoint.js} +16 -20
- package/backend/dist/esm/backend/src/logger.d.ts +5 -0
- package/backend/dist/esm/backend/src/logger.js +8 -0
- package/backend/dist/esm/backend/src/meta.d.ts +64 -0
- package/backend/dist/esm/{meta.js → backend/src/meta.js} +15 -54
- package/backend/dist/esm/backend/src/payments/paddle.d.ts +326 -0
- package/backend/dist/esm/{payments → backend/src/payments}/paddle.js +417 -452
- package/backend/dist/esm/backend/src/plugins/browser.d.ts +1 -0
- package/backend/dist/esm/backend/src/plugins/browser.js +170 -0
- package/backend/dist/esm/backend/src/plugins/mail/mail.d.ts +248 -0
- package/backend/dist/esm/backend/src/plugins/mail/mail.js +389 -0
- package/backend/dist/{cjs → esm/backend/src}/plugins/mail/ui.d.ts +23 -0
- package/backend/dist/esm/{plugins → backend/src/plugins}/mail/ui.js +3 -6
- package/backend/dist/esm/backend/src/plugins/pdf.d.ts +1 -0
- package/backend/dist/esm/{plugins → backend/src/plugins}/pdf.js +3 -3
- package/backend/dist/esm/backend/src/rate_limit.d.ts +145 -0
- package/backend/dist/esm/backend/src/rate_limit.js +667 -0
- package/backend/dist/esm/{route.d.ts → backend/src/route.d.ts} +3 -10
- package/backend/dist/esm/{route.js → backend/src/route.js} +26 -21
- package/backend/dist/esm/backend/src/server.d.ts +485 -0
- package/backend/dist/esm/{server.js → backend/src/server.js} +891 -1441
- package/backend/dist/esm/backend/src/splash_screen.d.ts +80 -0
- package/backend/dist/esm/{splash_screen.js → backend/src/splash_screen.js} +42 -55
- package/backend/dist/esm/backend/src/status.d.ts +74 -0
- package/backend/dist/esm/backend/src/status.js +199 -0
- package/backend/dist/esm/backend/src/stream.d.ts +376 -0
- package/backend/dist/esm/{stream.js → backend/src/stream.js} +327 -292
- package/backend/dist/esm/backend/src/users.d.ts +809 -0
- package/backend/dist/esm/backend/src/users.js +2140 -0
- package/backend/dist/esm/backend/src/utils.d.ts +16 -0
- package/backend/dist/esm/{utils.js → backend/src/utils.js} +20 -81
- package/backend/dist/{cjs → esm/backend/src}/view.d.ts +33 -11
- package/backend/dist/esm/{view.js → backend/src/view.js} +266 -86
- package/backend/dist/{cjs → esm/backend/src}/volt.d.ts +10 -1
- package/backend/dist/esm/{volt.js → backend/src/volt.js} +7 -4
- package/backend/dist/esm/frontend/src/modules/request.d.ts +70 -0
- package/backend/dist/esm/frontend/src/modules/request.js +117 -0
- package/frontend/dist/backend/src/database/collection.d.ts +1543 -0
- package/frontend/dist/backend/src/database/collection.js +3510 -0
- package/frontend/dist/backend/src/database/database.d.ts +66 -0
- package/frontend/dist/backend/src/database/database.js +196 -0
- package/frontend/dist/backend/src/database/filters/filters.d.ts +6 -0
- package/frontend/dist/backend/src/database/filters/filters.js +1 -0
- package/frontend/dist/backend/src/database/filters/strict_filter.d.ts +223 -0
- package/frontend/dist/backend/src/database/filters/strict_filter.js +3 -0
- package/frontend/dist/backend/src/database/filters/strict_update_filter.d.ts +165 -0
- package/frontend/dist/backend/src/database/filters/strict_update_filter.js +5 -0
- package/frontend/dist/backend/src/database/flatten.d.ts +75 -0
- package/frontend/dist/backend/src/database/flatten.js +22 -0
- package/frontend/dist/backend/src/endpoint.d.ts +204 -0
- package/frontend/dist/backend/src/endpoint.js +570 -0
- package/frontend/dist/backend/src/errors/index.d.ts +7 -0
- package/frontend/dist/backend/src/errors/index.js +7 -0
- package/frontend/dist/backend/src/errors/internal_external.d.ts +38 -0
- package/frontend/dist/backend/src/errors/internal_external.js +70 -0
- package/frontend/dist/backend/src/errors/invalid_usage_error.d.ts +38 -0
- package/frontend/dist/backend/src/errors/invalid_usage_error.js +30 -0
- package/frontend/dist/backend/src/errors/system_error.d.ts +230 -0
- package/frontend/dist/backend/src/errors/system_error.js +402 -0
- package/frontend/dist/backend/src/events.d.ts +54 -0
- package/frontend/dist/backend/src/events.js +5 -0
- package/frontend/dist/backend/src/frontend.d.ts +11 -0
- package/frontend/dist/backend/src/frontend.js +12 -0
- package/frontend/dist/backend/src/image_endpoint.d.ts +39 -0
- package/frontend/dist/backend/src/image_endpoint.js +202 -0
- package/frontend/dist/backend/src/meta.d.ts +64 -0
- package/frontend/dist/backend/src/meta.js +110 -0
- package/frontend/dist/backend/src/payments/paddle.d.ts +326 -0
- package/frontend/dist/backend/src/payments/paddle.js +2256 -0
- package/frontend/dist/backend/src/plugins/mail/mail.d.ts +248 -0
- package/frontend/dist/backend/src/plugins/mail/mail.js +389 -0
- package/{backend/dist/esm/plugins/mail.d.ts → frontend/dist/backend/src/plugins/mail/ui.d.ts} +23 -0
- package/{backend/dist/esm/plugins/mail.js → frontend/dist/backend/src/plugins/mail/ui.js} +3 -6
- package/frontend/dist/backend/src/rate_limit.d.ts +145 -0
- package/frontend/dist/backend/src/rate_limit.js +673 -0
- package/frontend/dist/backend/src/route.d.ts +35 -0
- package/frontend/dist/backend/src/route.js +212 -0
- package/frontend/dist/backend/src/server.d.ts +485 -0
- package/frontend/dist/backend/src/server.js +2670 -0
- package/frontend/dist/backend/src/splash_screen.d.ts +80 -0
- package/frontend/dist/backend/src/splash_screen.js +135 -0
- package/frontend/dist/backend/src/status.d.ts +74 -0
- package/frontend/dist/backend/src/status.js +199 -0
- package/frontend/dist/backend/src/stream.d.ts +376 -0
- package/frontend/dist/backend/src/stream.js +1007 -0
- package/frontend/dist/backend/src/users.d.ts +807 -0
- package/frontend/dist/backend/src/users.js +2118 -0
- package/frontend/dist/backend/src/utils.d.ts +16 -0
- package/frontend/dist/backend/src/utils.js +241 -0
- package/frontend/dist/backend/src/view.d.ts +162 -0
- package/frontend/dist/backend/src/view.js +720 -0
- package/frontend/dist/frontend/src/elements/base.d.ts +4414 -0
- package/frontend/dist/{elements → frontend/src/elements}/base.js +3624 -260
- package/frontend/dist/frontend/src/elements/module.d.ts +95 -0
- package/frontend/dist/{elements → frontend/src/elements}/module.js +53 -52
- package/frontend/dist/frontend/src/elements/types.d.ts +52 -0
- package/frontend/dist/frontend/src/elements/types.js +5 -0
- package/frontend/dist/frontend/src/modules/attachment.d.ts +126 -0
- package/frontend/dist/frontend/src/modules/attachment.js +306 -0
- package/frontend/dist/frontend/src/modules/auth.d.ts +44 -0
- package/frontend/dist/frontend/src/modules/auth.js +80 -0
- package/frontend/dist/{modules → frontend/src/modules}/color.js +2 -2
- package/frontend/dist/frontend/src/modules/compression.d.ts +39 -0
- package/frontend/dist/frontend/src/modules/compression.js +102 -0
- package/frontend/dist/frontend/src/modules/cookies.d.ts +44 -0
- package/frontend/dist/frontend/src/modules/cookies.js +143 -0
- package/frontend/dist/frontend/src/modules/events.d.ts +31 -0
- package/frontend/dist/frontend/src/modules/events.js +74 -0
- package/frontend/dist/frontend/src/modules/google.d.ts +23 -0
- package/frontend/dist/frontend/src/modules/google.js +52 -0
- package/frontend/dist/frontend/src/modules/meta.d.ts +14 -0
- package/frontend/dist/{modules → frontend/src/modules}/meta.js +9 -7
- package/frontend/dist/{modules → frontend/src/modules}/paddle.d.ts +37 -134
- package/frontend/dist/{modules → frontend/src/modules}/paddle.js +620 -568
- package/frontend/dist/frontend/src/modules/request.d.ts +70 -0
- package/frontend/dist/frontend/src/modules/request.js +117 -0
- package/frontend/dist/frontend/src/modules/settings.d.ts +3 -0
- package/frontend/dist/frontend/src/modules/settings.js +5 -0
- package/frontend/dist/frontend/src/modules/statics.d.ts +21 -0
- package/frontend/dist/{modules → frontend/src/modules}/statics.js +15 -18
- package/frontend/dist/frontend/src/modules/support.d.ts +30 -0
- package/frontend/dist/frontend/src/modules/support.js +53 -0
- package/frontend/dist/{modules → frontend/src/modules}/theme.d.ts +67 -0
- package/frontend/dist/{modules → frontend/src/modules}/theme.js +68 -38
- package/frontend/dist/frontend/src/modules/themes.d.ts +12 -0
- package/frontend/dist/frontend/src/modules/themes.js +22 -0
- package/frontend/dist/frontend/src/modules/user.d.ts +164 -0
- package/frontend/dist/frontend/src/modules/user.js +268 -0
- package/frontend/dist/frontend/src/modules/utils.d.ts +176 -0
- package/frontend/dist/frontend/src/modules/utils.js +569 -0
- package/frontend/dist/frontend/src/types/gradient.d.ts +29 -0
- package/frontend/dist/{types → frontend/src/types}/gradient.js +14 -18
- package/frontend/dist/frontend/src/ui/border_button.d.ts +94 -0
- package/frontend/dist/{ui → frontend/src/ui}/border_button.js +7 -13
- package/frontend/dist/frontend/src/ui/button.d.ts +28 -0
- package/frontend/dist/{ui → frontend/src/ui}/button.js +21 -12
- package/frontend/dist/frontend/src/ui/canvas.d.ts +138 -0
- package/frontend/dist/{ui → frontend/src/ui}/canvas.js +88 -55
- package/frontend/dist/frontend/src/ui/checkbox.d.ts +74 -0
- package/frontend/dist/{ui → frontend/src/ui}/checkbox.js +80 -41
- package/frontend/dist/{ui → frontend/src/ui}/code.d.ts +73 -6
- package/frontend/dist/{ui → frontend/src/ui}/code.js +55 -52
- package/frontend/dist/{ui → frontend/src/ui}/context_menu.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/context_menu.js +12 -17
- package/frontend/dist/{ui → frontend/src/ui}/css.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/css.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/divider.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/divider.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/dropdown.d.ts +57 -2
- package/frontend/dist/{ui → frontend/src/ui}/dropdown.js +87 -94
- package/frontend/dist/{ui → frontend/src/ui}/for_each.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/for_each.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/form.d.ts +6 -2
- package/frontend/dist/{ui → frontend/src/ui}/form.js +10 -7
- package/frontend/dist/frontend/src/ui/frame_modes.d.ts +37 -0
- package/frontend/dist/{ui → frontend/src/ui}/frame_modes.js +16 -22
- package/frontend/dist/{ui → frontend/src/ui}/google_map.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/google_map.js +4 -4
- package/frontend/dist/{ui → frontend/src/ui}/gradient.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/gradient.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/image.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/image.js +5 -5
- package/frontend/dist/frontend/src/ui/input.d.ts +392 -0
- package/frontend/dist/{ui → frontend/src/ui}/input.js +346 -360
- package/frontend/dist/{ui → frontend/src/ui}/link.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/link.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/list.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/list.js +12 -6
- package/frontend/dist/frontend/src/ui/loader_button.d.ts +80 -0
- package/frontend/dist/{ui → frontend/src/ui}/loader_button.js +35 -47
- package/frontend/dist/frontend/src/ui/loaders.d.ts +57 -0
- package/frontend/dist/{ui → frontend/src/ui}/loaders.js +11 -11
- package/frontend/dist/{ui → frontend/src/ui}/popup.d.ts +11 -6
- package/frontend/dist/{ui → frontend/src/ui}/popup.js +32 -18
- package/frontend/dist/frontend/src/ui/pseudo.d.ts +44 -0
- package/frontend/dist/{ui → frontend/src/ui}/pseudo.js +84 -8
- package/frontend/dist/{ui → frontend/src/ui}/scroller.d.ts +14 -2
- package/frontend/dist/{ui → frontend/src/ui}/scroller.js +37 -43
- package/frontend/dist/{ui → frontend/src/ui}/slider.d.ts +5 -1
- package/frontend/dist/{ui → frontend/src/ui}/slider.js +4 -4
- package/frontend/dist/{ui → frontend/src/ui}/spacer.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/spacer.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/span.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/span.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/stack.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/stack.js +3 -9
- package/frontend/dist/frontend/src/ui/steps.d.ts +131 -0
- package/frontend/dist/{ui → frontend/src/ui}/steps.js +30 -45
- package/frontend/dist/{ui → frontend/src/ui}/style.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/style.js +3 -3
- package/frontend/dist/{ui → frontend/src/ui}/switch.d.ts +5 -1
- package/frontend/dist/{ui → frontend/src/ui}/switch.js +4 -4
- package/frontend/dist/{ui → frontend/src/ui}/table.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/table.js +6 -6
- package/frontend/dist/{ui → frontend/src/ui}/tabs.d.ts +45 -3
- package/frontend/dist/{ui → frontend/src/ui}/tabs.js +65 -40
- package/frontend/dist/{ui → frontend/src/ui}/text.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/text.js +3 -3
- package/frontend/dist/frontend/src/ui/title.d.ts +91 -0
- package/frontend/dist/frontend/src/ui/title.js +272 -0
- package/frontend/dist/{ui → frontend/src/ui}/view.d.ts +4 -0
- package/frontend/dist/{ui → frontend/src/ui}/view.js +3 -3
- package/frontend/dist/{volt.d.ts → frontend/src/volt.d.ts} +3 -0
- package/frontend/dist/{volt.js → frontend/src/volt.js} +4 -0
- package/frontend/tools/bundle_d_ts.js +71 -0
- package/frontend/tools/convert_to_jsdoc_input.txt +9452 -0
- package/frontend/tools/convert_to_jsdoc_output.txt +7626 -0
- package/frontend/tools/convert_to_jsdoc_tmp.js +345 -0
- package/package.json +11 -12
- package/backend/dist/cjs/database/collection.d.ts +0 -160
- package/backend/dist/cjs/database/collection.js +0 -842
- package/backend/dist/cjs/database/database.d.ts +0 -121
- package/backend/dist/cjs/database/document.d.ts +0 -131
- package/backend/dist/cjs/database/document.js +0 -224
- package/backend/dist/cjs/database.d.ts +0 -502
- package/backend/dist/cjs/database.js +0 -2248
- package/backend/dist/cjs/logger.d.ts +0 -3
- package/backend/dist/cjs/meta.d.ts +0 -50
- package/backend/dist/cjs/mutex.d.ts +0 -24
- package/backend/dist/cjs/payments/paddle.d.ts +0 -160
- package/backend/dist/cjs/plugins/browser.d.ts +0 -36
- package/backend/dist/cjs/plugins/browser.js +0 -198
- package/backend/dist/cjs/plugins/css.d.ts +0 -11
- package/backend/dist/cjs/plugins/css.js +0 -80
- package/backend/dist/cjs/plugins/mail.d.ts +0 -277
- package/backend/dist/cjs/plugins/mail.js +0 -1370
- package/backend/dist/cjs/plugins/ts/compiler.d.ts +0 -139
- package/backend/dist/cjs/plugins/ts/compiler.js +0 -750
- package/backend/dist/cjs/plugins/ts/preprocessing.d.ts +0 -14
- package/backend/dist/cjs/plugins/ts/preprocessing.js +0 -440
- package/backend/dist/cjs/rate_limit.d.ts +0 -63
- package/backend/dist/cjs/rate_limit.js +0 -348
- package/backend/dist/cjs/request.deprc.d.ts +0 -48
- package/backend/dist/cjs/request.deprc.js +0 -572
- package/backend/dist/cjs/response.deprc.d.ts +0 -55
- package/backend/dist/cjs/response.deprc.js +0 -275
- package/backend/dist/cjs/server.d.ts +0 -342
- package/backend/dist/cjs/splash_screen.d.ts +0 -35
- package/backend/dist/cjs/status.d.ts +0 -61
- package/backend/dist/cjs/stream.d.ts +0 -79
- package/backend/dist/cjs/users.d.ts +0 -111
- package/backend/dist/cjs/users.js +0 -1817
- package/backend/dist/cjs/view.js +0 -352
- package/backend/dist/cjs/vinc.dev.d.ts +0 -3
- package/backend/dist/cjs/vinc.dev.js +0 -7
- package/backend/dist/css/adyen.css +0 -92
- package/backend/dist/css/volt.css +0 -70
- package/backend/dist/esm/database/collection.d.ts +0 -160
- package/backend/dist/esm/database/collection.js +0 -1328
- package/backend/dist/esm/database/database.d.ts +0 -121
- package/backend/dist/esm/database/document.d.ts +0 -131
- package/backend/dist/esm/database/document.js +0 -247
- package/backend/dist/esm/database.d.ts +0 -502
- package/backend/dist/esm/database.js +0 -2423
- package/backend/dist/esm/file_watcher.js +0 -329
- package/backend/dist/esm/logger.d.ts +0 -3
- package/backend/dist/esm/logger.js +0 -11
- package/backend/dist/esm/meta.d.ts +0 -50
- package/backend/dist/esm/mutex.d.ts +0 -24
- package/backend/dist/esm/mutex.js +0 -48
- package/backend/dist/esm/payments/paddle.d.ts +0 -160
- package/backend/dist/esm/plugins/browser.d.ts +0 -36
- package/backend/dist/esm/plugins/browser.js +0 -176
- package/backend/dist/esm/plugins/css.d.ts +0 -11
- package/backend/dist/esm/plugins/css.js +0 -90
- package/backend/dist/esm/plugins/ts/compiler.d.ts +0 -139
- package/backend/dist/esm/plugins/ts/compiler.js +0 -1194
- package/backend/dist/esm/plugins/ts/preprocessing.d.ts +0 -14
- package/backend/dist/esm/plugins/ts/preprocessing.js +0 -726
- package/backend/dist/esm/rate_limit.d.ts +0 -63
- package/backend/dist/esm/rate_limit.js +0 -417
- package/backend/dist/esm/request.deprc.d.ts +0 -48
- package/backend/dist/esm/request.deprc.js +0 -572
- package/backend/dist/esm/response.deprc.d.ts +0 -55
- package/backend/dist/esm/response.deprc.js +0 -275
- package/backend/dist/esm/server.d.ts +0 -342
- package/backend/dist/esm/splash_screen.d.ts +0 -35
- package/backend/dist/esm/status.d.ts +0 -61
- package/backend/dist/esm/status.js +0 -197
- package/backend/dist/esm/stream.d.ts +0 -79
- package/backend/dist/esm/users.d.ts +0 -111
- package/backend/dist/esm/users.js +0 -1935
- package/backend/dist/esm/vinc.dev.d.ts +0 -3
- package/backend/dist/esm/vinc.dev.js +0 -7
- package/frontend/dist/elements/base.d.ts +0 -9889
- package/frontend/dist/elements/module.d.ts +0 -30
- package/frontend/dist/modules/array.d.ts +0 -94
- package/frontend/dist/modules/array.js +0 -634
- package/frontend/dist/modules/auth.d.ts +0 -46
- package/frontend/dist/modules/auth.js +0 -139
- package/frontend/dist/modules/colors.d.ts +0 -1
- package/frontend/dist/modules/colors.js +0 -417
- package/frontend/dist/modules/compression.d.ts +0 -6
- package/frontend/dist/modules/compression.js +0 -999
- package/frontend/dist/modules/cookies.d.ts +0 -18
- package/frontend/dist/modules/cookies.js +0 -167
- package/frontend/dist/modules/date.d.ts +0 -142
- package/frontend/dist/modules/date.js +0 -493
- package/frontend/dist/modules/events.d.ts +0 -8
- package/frontend/dist/modules/events.js +0 -91
- package/frontend/dist/modules/google.d.ts +0 -11
- package/frontend/dist/modules/google.js +0 -54
- package/frontend/dist/modules/meta.d.ts +0 -10
- package/frontend/dist/modules/mutex.d.ts +0 -7
- package/frontend/dist/modules/mutex.js +0 -51
- package/frontend/dist/modules/number.d.ts +0 -16
- package/frontend/dist/modules/number.js +0 -23
- package/frontend/dist/modules/object.d.ts +0 -52
- package/frontend/dist/modules/object.js +0 -383
- package/frontend/dist/modules/scheme.d.ts +0 -227
- package/frontend/dist/modules/scheme.js +0 -531
- package/frontend/dist/modules/settings.d.ts +0 -3
- package/frontend/dist/modules/settings.js +0 -4
- package/frontend/dist/modules/statics.d.ts +0 -5
- package/frontend/dist/modules/string.d.ts +0 -124
- package/frontend/dist/modules/string.js +0 -745
- package/frontend/dist/modules/support.d.ts +0 -19
- package/frontend/dist/modules/support.js +0 -103
- package/frontend/dist/modules/themes.d.ts +0 -8
- package/frontend/dist/modules/themes.js +0 -18
- package/frontend/dist/modules/user.d.ts +0 -59
- package/frontend/dist/modules/user.js +0 -280
- package/frontend/dist/modules/utils.d.ts +0 -87
- package/frontend/dist/modules/utils.js +0 -923
- package/frontend/dist/types/gradient.d.ts +0 -12
- package/frontend/dist/ui/border_button.d.ts +0 -152
- package/frontend/dist/ui/button.d.ts +0 -21
- package/frontend/dist/ui/canvas.d.ts +0 -56
- package/frontend/dist/ui/checkbox.d.ts +0 -52
- package/frontend/dist/ui/frame_modes.d.ts +0 -25
- package/frontend/dist/ui/input.d.ts +0 -241
- package/frontend/dist/ui/loader_button.d.ts +0 -93
- package/frontend/dist/ui/loaders.d.ts +0 -57
- package/frontend/dist/ui/pseudo.d.ts +0 -16
- package/frontend/dist/ui/steps.d.ts +0 -59
- package/frontend/dist/ui/title.d.ts +0 -21
- package/frontend/dist/ui/title.js +0 -121
- package/frontend/examples/dashboard/dashboard.ts +0 -776
- /package/backend/dist/cjs/{cli.d.ts → backend/src/cli.d.ts} +0 -0
- /package/backend/dist/cjs/{file_watcher.d.ts → backend/src/database/document.d.ts} +0 -0
- /package/backend/dist/cjs/{file_watcher.js → backend/src/database/document.js} +0 -0
- /package/backend/dist/cjs/{plugins/pdf.d.ts → backend/src/database/filters/strict_filter_test.d.ts} +0 -0
- /package/backend/dist/{esm/file_watcher.d.ts → cjs/backend/src/database/filters/strict_filter_test_v0.d.ts} +0 -0
- /package/backend/dist/{esm/plugins/pdf.d.ts → cjs/backend/src/database/flatten_test.d.ts} +0 -0
- /package/backend/dist/cjs/{frontend.d.ts → backend/src/frontend.d.ts} +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/communication.d.ts +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/communication.js +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/mail/ui.js +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/pdf.js +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/thread_monitor.d.ts +0 -0
- /package/backend/dist/cjs/{plugins → backend/src/plugins}/thread_monitor.js +0 -0
- /package/backend/dist/cjs/{vinc.d.ts → backend/src/vinc.d.ts} +0 -0
- /package/backend/dist/cjs/{vinc.js → backend/src/vinc.js} +0 -0
- /package/backend/dist/esm/{cli.d.ts → backend/src/cli.d.ts} +0 -0
- /package/backend/dist/esm/{frontend.d.ts → backend/src/frontend.d.ts} +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/communication.d.ts +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/communication.js +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/thread_monitor.d.ts +0 -0
- /package/backend/dist/esm/{plugins → backend/src/plugins}/thread_monitor.js +0 -0
- /package/backend/dist/esm/{vinc.d.ts → backend/src/vinc.d.ts} +0 -0
- /package/backend/dist/esm/{vinc.js → backend/src/vinc.js} +0 -0
- /package/frontend/dist/{elements → frontend/src/elements}/register_element.d.ts +0 -0
- /package/frontend/dist/{elements → frontend/src/elements}/register_element.js +0 -0
- /package/frontend/dist/{modules → frontend/src/modules}/color.d.ts +0 -0
- /package/frontend/dist/{ui → frontend/src/ui}/ui.d.ts +0 -0
- /package/frontend/dist/{ui → frontend/src/ui}/ui.js +0 -0
|
@@ -1,999 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Author: Daan van den Bergh
|
|
3
|
-
* Copyright: © 2022 - 2024 Daan van den Bergh.
|
|
4
|
-
*/
|
|
5
|
-
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
!function (t, e) { "object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd ? define(["exports"], e) : e((t = "undefined" != typeof globalThis ? globalThis : t || self).pako = {}); }(this, (function (t) {
|
|
8
|
-
"use strict";
|
|
9
|
-
function e(t) { let e = t.length; for (; --e >= 0;)
|
|
10
|
-
t[e] = 0; }
|
|
11
|
-
const a = 256, i = 286, n = 30, s = 15, r = new Uint8Array([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]), o = new Uint8Array([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]), l = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]), h = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), d = new Array(576);
|
|
12
|
-
e(d);
|
|
13
|
-
const _ = new Array(60);
|
|
14
|
-
e(_);
|
|
15
|
-
const f = new Array(512);
|
|
16
|
-
e(f);
|
|
17
|
-
const c = new Array(256);
|
|
18
|
-
e(c);
|
|
19
|
-
const u = new Array(29);
|
|
20
|
-
e(u);
|
|
21
|
-
const w = new Array(n);
|
|
22
|
-
function m(t, e, a, i, n) { this.static_tree = t, this.extra_bits = e, this.extra_base = a, this.elems = i, this.max_length = n, this.has_stree = t && t.length; }
|
|
23
|
-
let b, g, p;
|
|
24
|
-
function k(t, e) { this.dyn_tree = t, this.max_code = 0, this.stat_desc = e; }
|
|
25
|
-
e(w);
|
|
26
|
-
const v = t => t < 256 ? f[t] : f[256 + (t >>> 7)], y = (t, e) => { t.pending_buf[t.pending++] = 255 & e, t.pending_buf[t.pending++] = e >>> 8 & 255; }, x = (t, e, a) => { t.bi_valid > 16 - a ? (t.bi_buf |= e << t.bi_valid & 65535, y(t, t.bi_buf), t.bi_buf = e >> 16 - t.bi_valid, t.bi_valid += a - 16) : (t.bi_buf |= e << t.bi_valid & 65535, t.bi_valid += a); }, z = (t, e, a) => { x(t, a[2 * e], a[2 * e + 1]); }, A = (t, e) => { let a = 0; do {
|
|
27
|
-
a |= 1 & t, t >>>= 1, a <<= 1;
|
|
28
|
-
} while (--e > 0); return a >>> 1; }, E = (t, e, a) => { const i = new Array(16); let n, r, o = 0; for (n = 1; n <= s; n++)
|
|
29
|
-
o = o + a[n - 1] << 1, i[n] = o; for (r = 0; r <= e; r++) {
|
|
30
|
-
let e = t[2 * r + 1];
|
|
31
|
-
0 !== e && (t[2 * r] = A(i[e]++, e));
|
|
32
|
-
} }, R = t => { let e; for (e = 0; e < i; e++)
|
|
33
|
-
t.dyn_ltree[2 * e] = 0; for (e = 0; e < n; e++)
|
|
34
|
-
t.dyn_dtree[2 * e] = 0; for (e = 0; e < 19; e++)
|
|
35
|
-
t.bl_tree[2 * e] = 0; t.dyn_ltree[512] = 1, t.opt_len = t.static_len = 0, t.sym_next = t.matches = 0; }, Z = t => { t.bi_valid > 8 ? y(t, t.bi_buf) : t.bi_valid > 0 && (t.pending_buf[t.pending++] = t.bi_buf), t.bi_buf = 0, t.bi_valid = 0; }, U = (t, e, a, i) => { const n = 2 * e, s = 2 * a; return t[n] < t[s] || t[n] === t[s] && i[e] <= i[a]; }, S = (t, e, a) => { const i = t.heap[a]; let n = a << 1; for (; n <= t.heap_len && (n < t.heap_len && U(e, t.heap[n + 1], t.heap[n], t.depth) && n++, !U(e, i, t.heap[n], t.depth));)
|
|
36
|
-
t.heap[a] = t.heap[n], a = n, n <<= 1; t.heap[a] = i; }, D = (t, e, i) => { let n, s, l, h, d = 0; if (0 !== t.sym_next)
|
|
37
|
-
do {
|
|
38
|
-
n = 255 & t.pending_buf[t.sym_buf + d++], n += (255 & t.pending_buf[t.sym_buf + d++]) << 8, s = t.pending_buf[t.sym_buf + d++], 0 === n ? z(t, s, e) : (l = c[s], z(t, l + a + 1, e), h = r[l], 0 !== h && (s -= u[l], x(t, s, h)), n--, l = v(n), z(t, l, i), h = o[l], 0 !== h && (n -= w[l], x(t, n, h)));
|
|
39
|
-
} while (d < t.sym_next); z(t, 256, e); }, T = (t, e) => { const a = e.dyn_tree, i = e.stat_desc.static_tree, n = e.stat_desc.has_stree, r = e.stat_desc.elems; let o, l, h, d = -1; for (t.heap_len = 0, t.heap_max = 573, o = 0; o < r; o++)
|
|
40
|
-
0 !== a[2 * o] ? (t.heap[++t.heap_len] = d = o, t.depth[o] = 0) : a[2 * o + 1] = 0; for (; t.heap_len < 2;)
|
|
41
|
-
h = t.heap[++t.heap_len] = d < 2 ? ++d : 0, a[2 * h] = 1, t.depth[h] = 0, t.opt_len--, n && (t.static_len -= i[2 * h + 1]); for (e.max_code = d, o = t.heap_len >> 1; o >= 1; o--)
|
|
42
|
-
S(t, a, o); h = r; do {
|
|
43
|
-
o = t.heap[1], t.heap[1] = t.heap[t.heap_len--], S(t, a, 1), l = t.heap[1], t.heap[--t.heap_max] = o, t.heap[--t.heap_max] = l, a[2 * h] = a[2 * o] + a[2 * l], t.depth[h] = (t.depth[o] >= t.depth[l] ? t.depth[o] : t.depth[l]) + 1, a[2 * o + 1] = a[2 * l + 1] = h, t.heap[1] = h++, S(t, a, 1);
|
|
44
|
-
} while (t.heap_len >= 2); t.heap[--t.heap_max] = t.heap[1], ((t, e) => { const a = e.dyn_tree, i = e.max_code, n = e.stat_desc.static_tree, r = e.stat_desc.has_stree, o = e.stat_desc.extra_bits, l = e.stat_desc.extra_base, h = e.stat_desc.max_length; let d, _, f, c, u, w, m = 0; for (c = 0; c <= s; c++)
|
|
45
|
-
t.bl_count[c] = 0; for (a[2 * t.heap[t.heap_max] + 1] = 0, d = t.heap_max + 1; d < 573; d++)
|
|
46
|
-
_ = t.heap[d], c = a[2 * a[2 * _ + 1] + 1] + 1, c > h && (c = h, m++), a[2 * _ + 1] = c, _ > i || (t.bl_count[c]++, u = 0, _ >= l && (u = o[_ - l]), w = a[2 * _], t.opt_len += w * (c + u), r && (t.static_len += w * (n[2 * _ + 1] + u))); if (0 !== m) {
|
|
47
|
-
do {
|
|
48
|
-
for (c = h - 1; 0 === t.bl_count[c];)
|
|
49
|
-
c--;
|
|
50
|
-
t.bl_count[c]--, t.bl_count[c + 1] += 2, t.bl_count[h]--, m -= 2;
|
|
51
|
-
} while (m > 0);
|
|
52
|
-
for (c = h; 0 !== c; c--)
|
|
53
|
-
for (_ = t.bl_count[c]; 0 !== _;)
|
|
54
|
-
f = t.heap[--d], f > i || (a[2 * f + 1] !== c && (t.opt_len += (c - a[2 * f + 1]) * a[2 * f], a[2 * f + 1] = c), _--);
|
|
55
|
-
} })(t, e), E(a, d, t.bl_count); }, O = (t, e, a) => { let i, n, s = -1, r = e[1], o = 0, l = 7, h = 4; for (0 === r && (l = 138, h = 3), e[2 * (a + 1) + 1] = 65535, i = 0; i <= a; i++)
|
|
56
|
-
n = r, r = e[2 * (i + 1) + 1], ++o < l && n === r || (o < h ? t.bl_tree[2 * n] += o : 0 !== n ? (n !== s && t.bl_tree[2 * n]++, t.bl_tree[32]++) : o <= 10 ? t.bl_tree[34]++ : t.bl_tree[36]++, o = 0, s = n, 0 === r ? (l = 138, h = 3) : n === r ? (l = 6, h = 3) : (l = 7, h = 4)); }, I = (t, e, a) => { let i, n, s = -1, r = e[1], o = 0, l = 7, h = 4; for (0 === r && (l = 138, h = 3), i = 0; i <= a; i++)
|
|
57
|
-
if (n = r, r = e[2 * (i + 1) + 1], !(++o < l && n === r)) {
|
|
58
|
-
if (o < h)
|
|
59
|
-
do {
|
|
60
|
-
z(t, n, t.bl_tree);
|
|
61
|
-
} while (0 != --o);
|
|
62
|
-
else
|
|
63
|
-
0 !== n ? (n !== s && (z(t, n, t.bl_tree), o--), z(t, 16, t.bl_tree), x(t, o - 3, 2)) : o <= 10 ? (z(t, 17, t.bl_tree), x(t, o - 3, 3)) : (z(t, 18, t.bl_tree), x(t, o - 11, 7));
|
|
64
|
-
o = 0, s = n, 0 === r ? (l = 138, h = 3) : n === r ? (l = 6, h = 3) : (l = 7, h = 4);
|
|
65
|
-
} };
|
|
66
|
-
let F = !1;
|
|
67
|
-
const L = (t, e, a, i) => { x(t, 0 + (i ? 1 : 0), 3), Z(t), y(t, a), y(t, ~a), a && t.pending_buf.set(t.window.subarray(e, e + a), t.pending), t.pending += a; };
|
|
68
|
-
var N = (t, e, i, n) => { let s, r, o = 0; t.level > 0 ? (2 === t.strm.data_type && (t.strm.data_type = (t => { let e, i = 4093624447; for (e = 0; e <= 31; e++, i >>>= 1)
|
|
69
|
-
if (1 & i && 0 !== t.dyn_ltree[2 * e])
|
|
70
|
-
return 0; if (0 !== t.dyn_ltree[18] || 0 !== t.dyn_ltree[20] || 0 !== t.dyn_ltree[26])
|
|
71
|
-
return 1; for (e = 32; e < a; e++)
|
|
72
|
-
if (0 !== t.dyn_ltree[2 * e])
|
|
73
|
-
return 1; return 0; })(t)), T(t, t.l_desc), T(t, t.d_desc), o = (t => { let e; for (O(t, t.dyn_ltree, t.l_desc.max_code), O(t, t.dyn_dtree, t.d_desc.max_code), T(t, t.bl_desc), e = 18; e >= 3 && 0 === t.bl_tree[2 * h[e] + 1]; e--)
|
|
74
|
-
; return t.opt_len += 3 * (e + 1) + 5 + 5 + 4, e; })(t), s = t.opt_len + 3 + 7 >>> 3, r = t.static_len + 3 + 7 >>> 3, r <= s && (s = r)) : s = r = i + 5, i + 4 <= s && -1 !== e ? L(t, e, i, n) : 4 === t.strategy || r === s ? (x(t, 2 + (n ? 1 : 0), 3), D(t, d, _)) : (x(t, 4 + (n ? 1 : 0), 3), ((t, e, a, i) => { let n; for (x(t, e - 257, 5), x(t, a - 1, 5), x(t, i - 4, 4), n = 0; n < i; n++)
|
|
75
|
-
x(t, t.bl_tree[2 * h[n] + 1], 3); I(t, t.dyn_ltree, e - 1), I(t, t.dyn_dtree, a - 1); })(t, t.l_desc.max_code + 1, t.d_desc.max_code + 1, o + 1), D(t, t.dyn_ltree, t.dyn_dtree)), R(t), n && Z(t); }, B = { _tr_init: t => { F || ((() => { let t, e, a, h, k; const v = new Array(16); for (a = 0, h = 0; h < 28; h++)
|
|
76
|
-
for (u[h] = a, t = 0; t < 1 << r[h]; t++)
|
|
77
|
-
c[a++] = h; for (c[a - 1] = h, k = 0, h = 0; h < 16; h++)
|
|
78
|
-
for (w[h] = k, t = 0; t < 1 << o[h]; t++)
|
|
79
|
-
f[k++] = h; for (k >>= 7; h < n; h++)
|
|
80
|
-
for (w[h] = k << 7, t = 0; t < 1 << o[h] - 7; t++)
|
|
81
|
-
f[256 + k++] = h; for (e = 0; e <= s; e++)
|
|
82
|
-
v[e] = 0; for (t = 0; t <= 143;)
|
|
83
|
-
d[2 * t + 1] = 8, t++, v[8]++; for (; t <= 255;)
|
|
84
|
-
d[2 * t + 1] = 9, t++, v[9]++; for (; t <= 279;)
|
|
85
|
-
d[2 * t + 1] = 7, t++, v[7]++; for (; t <= 287;)
|
|
86
|
-
d[2 * t + 1] = 8, t++, v[8]++; for (E(d, 287, v), t = 0; t < n; t++)
|
|
87
|
-
_[2 * t + 1] = 5, _[2 * t] = A(t, 5); b = new m(d, r, 257, i, s), g = new m(_, o, 0, n, s), p = new m(new Array(0), l, 0, 19, 7); })(), F = !0), t.l_desc = new k(t.dyn_ltree, b), t.d_desc = new k(t.dyn_dtree, g), t.bl_desc = new k(t.bl_tree, p), t.bi_buf = 0, t.bi_valid = 0, R(t); }, _tr_stored_block: L, _tr_flush_block: N, _tr_tally: (t, e, i) => (t.pending_buf[t.sym_buf + t.sym_next++] = e, t.pending_buf[t.sym_buf + t.sym_next++] = e >> 8, t.pending_buf[t.sym_buf + t.sym_next++] = i, 0 === e ? t.dyn_ltree[2 * i]++ : (t.matches++, e--, t.dyn_ltree[2 * (c[i] + a + 1)]++, t.dyn_dtree[2 * v(e)]++), t.sym_next === t.sym_end), _tr_align: t => { x(t, 2, 3), z(t, 256, d), (t => { 16 === t.bi_valid ? (y(t, t.bi_buf), t.bi_buf = 0, t.bi_valid = 0) : t.bi_valid >= 8 && (t.pending_buf[t.pending++] = 255 & t.bi_buf, t.bi_buf >>= 8, t.bi_valid -= 8); })(t); } };
|
|
88
|
-
var C = (t, e, a, i) => { let n = 65535 & t | 0, s = t >>> 16 & 65535 | 0, r = 0; for (; 0 !== a;) {
|
|
89
|
-
r = a > 2e3 ? 2e3 : a, a -= r;
|
|
90
|
-
do {
|
|
91
|
-
n = n + e[i++] | 0, s = s + n | 0;
|
|
92
|
-
} while (--r);
|
|
93
|
-
n %= 65521, s %= 65521;
|
|
94
|
-
} return n | s << 16 | 0; };
|
|
95
|
-
const M = new Uint32Array((() => { let t, e = []; for (var a = 0; a < 256; a++) {
|
|
96
|
-
t = a;
|
|
97
|
-
for (var i = 0; i < 8; i++)
|
|
98
|
-
t = 1 & t ? 3988292384 ^ t >>> 1 : t >>> 1;
|
|
99
|
-
e[a] = t;
|
|
100
|
-
} return e; })());
|
|
101
|
-
var H = (t, e, a, i) => { const n = M, s = i + a; t ^= -1; for (let a = i; a < s; a++)
|
|
102
|
-
t = t >>> 8 ^ n[255 & (t ^ e[a])]; return -1 ^ t; }, j = { 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" }, K = { 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_MEM_ERROR: -4, 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 };
|
|
103
|
-
const { _tr_init: P, _tr_stored_block: Y, _tr_flush_block: G, _tr_tally: X, _tr_align: W } = B, { Z_NO_FLUSH: q, Z_PARTIAL_FLUSH: J, Z_FULL_FLUSH: Q, Z_FINISH: V, Z_BLOCK: $, Z_OK: tt, Z_STREAM_END: et, Z_STREAM_ERROR: at, Z_DATA_ERROR: it, Z_BUF_ERROR: nt, Z_DEFAULT_COMPRESSION: st, Z_FILTERED: rt, Z_HUFFMAN_ONLY: ot, Z_RLE: lt, Z_FIXED: ht, Z_DEFAULT_STRATEGY: dt, Z_UNKNOWN: _t, Z_DEFLATED: ft } = K, ct = 258, ut = 262, wt = 42, mt = 113, bt = 666, gt = (t, e) => (t.msg = j[e], e), pt = t => 2 * t - (t > 4 ? 9 : 0), kt = t => { let e = t.length; for (; --e >= 0;)
|
|
104
|
-
t[e] = 0; }, vt = t => { let e, a, i, n = t.w_size; e = t.hash_size, i = e; do {
|
|
105
|
-
a = t.head[--i], t.head[i] = a >= n ? a - n : 0;
|
|
106
|
-
} while (--e); e = n, i = e; do {
|
|
107
|
-
a = t.prev[--i], t.prev[i] = a >= n ? a - n : 0;
|
|
108
|
-
} while (--e); };
|
|
109
|
-
let yt = (t, e, a) => (e << t.hash_shift ^ a) & t.hash_mask;
|
|
110
|
-
const xt = t => { const e = t.state; let a = e.pending; a > t.avail_out && (a = t.avail_out), 0 !== a && (t.output.set(e.pending_buf.subarray(e.pending_out, e.pending_out + a), t.next_out), t.next_out += a, e.pending_out += a, t.total_out += a, t.avail_out -= a, e.pending -= a, 0 === e.pending && (e.pending_out = 0)); }, zt = (t, e) => { G(t, t.block_start >= 0 ? t.block_start : -1, t.strstart - t.block_start, e), t.block_start = t.strstart, xt(t.strm); }, At = (t, e) => { t.pending_buf[t.pending++] = e; }, Et = (t, e) => { t.pending_buf[t.pending++] = e >>> 8 & 255, t.pending_buf[t.pending++] = 255 & e; }, Rt = (t, e, a, i) => { let n = t.avail_in; return n > i && (n = i), 0 === n ? 0 : (t.avail_in -= n, e.set(t.input.subarray(t.next_in, t.next_in + n), a), 1 === t.state.wrap ? t.adler = C(t.adler, e, n, a) : 2 === t.state.wrap && (t.adler = H(t.adler, e, n, a)), t.next_in += n, t.total_in += n, n); }, Zt = (t, e) => { let a, i, n = t.max_chain_length, s = t.strstart, r = t.prev_length, o = t.nice_match; const l = t.strstart > t.w_size - ut ? t.strstart - (t.w_size - ut) : 0, h = t.window, d = t.w_mask, _ = t.prev, f = t.strstart + ct; let c = h[s + r - 1], u = h[s + r]; t.prev_length >= t.good_match && (n >>= 2), o > t.lookahead && (o = t.lookahead); do {
|
|
111
|
-
if (a = e, h[a + r] === u && h[a + r - 1] === c && h[a] === h[s] && h[++a] === h[s + 1]) {
|
|
112
|
-
s += 2, a++;
|
|
113
|
-
do { } while (h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && s < f);
|
|
114
|
-
if (i = ct - (f - s), s = f - ct, i > r) {
|
|
115
|
-
if (t.match_start = e, r = i, i >= o)
|
|
116
|
-
break;
|
|
117
|
-
c = h[s + r - 1], u = h[s + r];
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
} while ((e = _[e & d]) > l && 0 != --n); return r <= t.lookahead ? r : t.lookahead; }, Ut = t => { const e = t.w_size; let a, i, n; do {
|
|
121
|
-
if (i = t.window_size - t.lookahead - t.strstart, t.strstart >= e + (e - ut) && (t.window.set(t.window.subarray(e, e + e - i), 0), t.match_start -= e, t.strstart -= e, t.block_start -= e, t.insert > t.strstart && (t.insert = t.strstart), vt(t), i += e), 0 === t.strm.avail_in)
|
|
122
|
-
break;
|
|
123
|
-
if (a = Rt(t.strm, t.window, t.strstart + t.lookahead, i), t.lookahead += a, t.lookahead + t.insert >= 3)
|
|
124
|
-
for (n = t.strstart - t.insert, t.ins_h = t.window[n], t.ins_h = yt(t, t.ins_h, t.window[n + 1]); t.insert && (t.ins_h = yt(t, t.ins_h, t.window[n + 3 - 1]), t.prev[n & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = n, n++, t.insert--, !(t.lookahead + t.insert < 3));)
|
|
125
|
-
;
|
|
126
|
-
} while (t.lookahead < ut && 0 !== t.strm.avail_in); }, St = (t, e) => { let a, i, n, s = t.pending_buf_size - 5 > t.w_size ? t.w_size : t.pending_buf_size - 5, r = 0, o = t.strm.avail_in; do {
|
|
127
|
-
if (a = 65535, n = t.bi_valid + 42 >> 3, t.strm.avail_out < n)
|
|
128
|
-
break;
|
|
129
|
-
if (n = t.strm.avail_out - n, i = t.strstart - t.block_start, a > i + t.strm.avail_in && (a = i + t.strm.avail_in), a > n && (a = n), a < s && (0 === a && e !== V || e === q || a !== i + t.strm.avail_in))
|
|
130
|
-
break;
|
|
131
|
-
r = e === V && a === i + t.strm.avail_in ? 1 : 0, Y(t, 0, 0, r), t.pending_buf[t.pending - 4] = a, t.pending_buf[t.pending - 3] = a >> 8, t.pending_buf[t.pending - 2] = ~a, t.pending_buf[t.pending - 1] = ~a >> 8, xt(t.strm), i && (i > a && (i = a), t.strm.output.set(t.window.subarray(t.block_start, t.block_start + i), t.strm.next_out), t.strm.next_out += i, t.strm.avail_out -= i, t.strm.total_out += i, t.block_start += i, a -= i), a && (Rt(t.strm, t.strm.output, t.strm.next_out, a), t.strm.next_out += a, t.strm.avail_out -= a, t.strm.total_out += a);
|
|
132
|
-
} while (0 === r); return o -= t.strm.avail_in, o && (o >= t.w_size ? (t.matches = 2, t.window.set(t.strm.input.subarray(t.strm.next_in - t.w_size, t.strm.next_in), 0), t.strstart = t.w_size, t.insert = t.strstart) : (t.window_size - t.strstart <= o && (t.strstart -= t.w_size, t.window.set(t.window.subarray(t.w_size, t.w_size + t.strstart), 0), t.matches < 2 && t.matches++, t.insert > t.strstart && (t.insert = t.strstart)), t.window.set(t.strm.input.subarray(t.strm.next_in - o, t.strm.next_in), t.strstart), t.strstart += o, t.insert += o > t.w_size - t.insert ? t.w_size - t.insert : o), t.block_start = t.strstart), t.high_water < t.strstart && (t.high_water = t.strstart), r ? 4 : e !== q && e !== V && 0 === t.strm.avail_in && t.strstart === t.block_start ? 2 : (n = t.window_size - t.strstart, t.strm.avail_in > n && t.block_start >= t.w_size && (t.block_start -= t.w_size, t.strstart -= t.w_size, t.window.set(t.window.subarray(t.w_size, t.w_size + t.strstart), 0), t.matches < 2 && t.matches++, n += t.w_size, t.insert > t.strstart && (t.insert = t.strstart)), n > t.strm.avail_in && (n = t.strm.avail_in), n && (Rt(t.strm, t.window, t.strstart, n), t.strstart += n, t.insert += n > t.w_size - t.insert ? t.w_size - t.insert : n), t.high_water < t.strstart && (t.high_water = t.strstart), n = t.bi_valid + 42 >> 3, n = t.pending_buf_size - n > 65535 ? 65535 : t.pending_buf_size - n, s = n > t.w_size ? t.w_size : n, i = t.strstart - t.block_start, (i >= s || (i || e === V) && e !== q && 0 === t.strm.avail_in && i <= n) && (a = i > n ? n : i, r = e === V && 0 === t.strm.avail_in && a === i ? 1 : 0, Y(t, t.block_start, a, r), t.block_start += a, xt(t.strm)), r ? 3 : 1); }, Dt = (t, e) => { let a, i; for (;;) {
|
|
133
|
-
if (t.lookahead < ut) {
|
|
134
|
-
if (Ut(t), t.lookahead < ut && e === q)
|
|
135
|
-
return 1;
|
|
136
|
-
if (0 === t.lookahead)
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
if (a = 0, t.lookahead >= 3 && (t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 3 - 1]), a = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), 0 !== a && t.strstart - a <= t.w_size - ut && (t.match_length = Zt(t, a)), t.match_length >= 3)
|
|
140
|
-
if (i = X(t, t.strstart - t.match_start, t.match_length - 3), t.lookahead -= t.match_length, t.match_length <= t.max_lazy_match && t.lookahead >= 3) {
|
|
141
|
-
t.match_length--;
|
|
142
|
-
do {
|
|
143
|
-
t.strstart++, t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 3 - 1]), a = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart;
|
|
144
|
-
} while (0 != --t.match_length);
|
|
145
|
-
t.strstart++;
|
|
146
|
-
}
|
|
147
|
-
else
|
|
148
|
-
t.strstart += t.match_length, t.match_length = 0, t.ins_h = t.window[t.strstart], t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 1]);
|
|
149
|
-
else
|
|
150
|
-
i = X(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++;
|
|
151
|
-
if (i && (zt(t, !1), 0 === t.strm.avail_out))
|
|
152
|
-
return 1;
|
|
153
|
-
} return t.insert = t.strstart < 2 ? t.strstart : 2, e === V ? (zt(t, !0), 0 === t.strm.avail_out ? 3 : 4) : t.sym_next && (zt(t, !1), 0 === t.strm.avail_out) ? 1 : 2; }, Tt = (t, e) => { let a, i, n; for (;;) {
|
|
154
|
-
if (t.lookahead < ut) {
|
|
155
|
-
if (Ut(t), t.lookahead < ut && e === q)
|
|
156
|
-
return 1;
|
|
157
|
-
if (0 === t.lookahead)
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
if (a = 0, t.lookahead >= 3 && (t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 3 - 1]), a = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), t.prev_length = t.match_length, t.prev_match = t.match_start, t.match_length = 2, 0 !== a && t.prev_length < t.max_lazy_match && t.strstart - a <= t.w_size - ut && (t.match_length = Zt(t, a), t.match_length <= 5 && (t.strategy === rt || 3 === t.match_length && t.strstart - t.match_start > 4096) && (t.match_length = 2)), t.prev_length >= 3 && t.match_length <= t.prev_length) {
|
|
161
|
-
n = t.strstart + t.lookahead - 3, i = X(t, t.strstart - 1 - t.prev_match, t.prev_length - 3), t.lookahead -= t.prev_length - 1, t.prev_length -= 2;
|
|
162
|
-
do {
|
|
163
|
-
++t.strstart <= n && (t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 3 - 1]), a = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart);
|
|
164
|
-
} while (0 != --t.prev_length);
|
|
165
|
-
if (t.match_available = 0, t.match_length = 2, t.strstart++, i && (zt(t, !1), 0 === t.strm.avail_out))
|
|
166
|
-
return 1;
|
|
167
|
-
}
|
|
168
|
-
else if (t.match_available) {
|
|
169
|
-
if (i = X(t, 0, t.window[t.strstart - 1]), i && zt(t, !1), t.strstart++, t.lookahead--, 0 === t.strm.avail_out)
|
|
170
|
-
return 1;
|
|
171
|
-
}
|
|
172
|
-
else
|
|
173
|
-
t.match_available = 1, t.strstart++, t.lookahead--;
|
|
174
|
-
} return t.match_available && (i = X(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < 2 ? t.strstart : 2, e === V ? (zt(t, !0), 0 === t.strm.avail_out ? 3 : 4) : t.sym_next && (zt(t, !1), 0 === t.strm.avail_out) ? 1 : 2; };
|
|
175
|
-
function Ot(t, e, a, i, n) { this.good_length = t, this.max_lazy = e, this.nice_length = a, this.max_chain = i, this.func = n; }
|
|
176
|
-
const It = [new Ot(0, 0, 0, 0, St), new Ot(4, 4, 8, 4, Dt), new Ot(4, 5, 16, 8, Dt), new Ot(4, 6, 32, 32, Dt), new Ot(4, 4, 16, 16, Tt), new Ot(8, 16, 32, 32, Tt), new Ot(8, 16, 128, 128, Tt), new Ot(8, 32, 128, 256, Tt), new Ot(32, 128, 258, 1024, Tt), new Ot(32, 258, 258, 4096, Tt)];
|
|
177
|
-
function Ft() { 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 = ft, 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 Uint16Array(1146), this.dyn_dtree = new Uint16Array(122), this.bl_tree = new Uint16Array(78), kt(this.dyn_ltree), kt(this.dyn_dtree), kt(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(16), this.heap = new Uint16Array(573), kt(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(573), kt(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0; }
|
|
178
|
-
const Lt = t => { if (!t)
|
|
179
|
-
return 1; const e = t.state; return !e || e.strm !== t || e.status !== wt && 57 !== e.status && 69 !== e.status && 73 !== e.status && 91 !== e.status && 103 !== e.status && e.status !== mt && e.status !== bt ? 1 : 0; }, Nt = t => { if (Lt(t))
|
|
180
|
-
return gt(t, at); t.total_in = t.total_out = 0, t.data_type = _t; const e = t.state; return e.pending = 0, e.pending_out = 0, e.wrap < 0 && (e.wrap = -e.wrap), e.status = 2 === e.wrap ? 57 : e.wrap ? wt : mt, t.adler = 2 === e.wrap ? 0 : 1, e.last_flush = -2, P(e), tt; }, Bt = t => { const e = Nt(t); var a; return e === tt && ((a = t.state).window_size = 2 * a.w_size, kt(a.head), a.max_lazy_match = It[a.level].max_lazy, a.good_match = It[a.level].good_length, a.nice_match = It[a.level].nice_length, a.max_chain_length = It[a.level].max_chain, a.strstart = 0, a.block_start = 0, a.lookahead = 0, a.insert = 0, a.match_length = a.prev_length = 2, a.match_available = 0, a.ins_h = 0), e; }, Ct = (t, e, a, i, n, s) => { if (!t)
|
|
181
|
-
return at; let r = 1; if (e === st && (e = 6), i < 0 ? (r = 0, i = -i) : i > 15 && (r = 2, i -= 16), n < 1 || n > 9 || a !== ft || i < 8 || i > 15 || e < 0 || e > 9 || s < 0 || s > ht || 8 === i && 1 !== r)
|
|
182
|
-
return gt(t, at); 8 === i && (i = 9); const o = new Ft; return t.state = o, o.strm = t, o.status = wt, o.wrap = r, o.gzhead = null, o.w_bits = i, o.w_size = 1 << o.w_bits, o.w_mask = o.w_size - 1, o.hash_bits = n + 7, o.hash_size = 1 << o.hash_bits, o.hash_mask = o.hash_size - 1, o.hash_shift = ~~((o.hash_bits + 3 - 1) / 3), o.window = new Uint8Array(2 * o.w_size), o.head = new Uint16Array(o.hash_size), o.prev = new Uint16Array(o.w_size), o.lit_bufsize = 1 << n + 6, o.pending_buf_size = 4 * o.lit_bufsize, o.pending_buf = new Uint8Array(o.pending_buf_size), o.sym_buf = o.lit_bufsize, o.sym_end = 3 * (o.lit_bufsize - 1), o.level = e, o.strategy = s, o.method = a, Bt(t); };
|
|
183
|
-
var Mt = { deflateInit: (t, e) => Ct(t, e, ft, 15, 8, dt), deflateInit2: Ct, deflateReset: Bt, deflateResetKeep: Nt, deflateSetHeader: (t, e) => Lt(t) || 2 !== t.state.wrap ? at : (t.state.gzhead = e, tt), deflate: (t, e) => { if (Lt(t) || e > $ || e < 0)
|
|
184
|
-
return t ? gt(t, at) : at; const a = t.state; if (!t.output || 0 !== t.avail_in && !t.input || a.status === bt && e !== V)
|
|
185
|
-
return gt(t, 0 === t.avail_out ? nt : at); const i = a.last_flush; if (a.last_flush = e, 0 !== a.pending) {
|
|
186
|
-
if (xt(t), 0 === t.avail_out)
|
|
187
|
-
return a.last_flush = -1, tt;
|
|
188
|
-
}
|
|
189
|
-
else if (0 === t.avail_in && pt(e) <= pt(i) && e !== V)
|
|
190
|
-
return gt(t, nt); if (a.status === bt && 0 !== t.avail_in)
|
|
191
|
-
return gt(t, nt); if (a.status === wt && 0 === a.wrap && (a.status = mt), a.status === wt) {
|
|
192
|
-
let e = ft + (a.w_bits - 8 << 4) << 8, i = -1;
|
|
193
|
-
if (i = a.strategy >= ot || a.level < 2 ? 0 : a.level < 6 ? 1 : 6 === a.level ? 2 : 3, e |= i << 6, 0 !== a.strstart && (e |= 32), e += 31 - e % 31, Et(a, e), 0 !== a.strstart && (Et(a, t.adler >>> 16), Et(a, 65535 & t.adler)), t.adler = 1, a.status = mt, xt(t), 0 !== a.pending)
|
|
194
|
-
return a.last_flush = -1, tt;
|
|
195
|
-
} if (57 === a.status)
|
|
196
|
-
if (t.adler = 0, At(a, 31), At(a, 139), At(a, 8), a.gzhead)
|
|
197
|
-
At(a, (a.gzhead.text ? 1 : 0) + (a.gzhead.hcrc ? 2 : 0) + (a.gzhead.extra ? 4 : 0) + (a.gzhead.name ? 8 : 0) + (a.gzhead.comment ? 16 : 0)), At(a, 255 & a.gzhead.time), At(a, a.gzhead.time >> 8 & 255), At(a, a.gzhead.time >> 16 & 255), At(a, a.gzhead.time >> 24 & 255), At(a, 9 === a.level ? 2 : a.strategy >= ot || a.level < 2 ? 4 : 0), At(a, 255 & a.gzhead.os), a.gzhead.extra && a.gzhead.extra.length && (At(a, 255 & a.gzhead.extra.length), At(a, a.gzhead.extra.length >> 8 & 255)), a.gzhead.hcrc && (t.adler = H(t.adler, a.pending_buf, a.pending, 0)), a.gzindex = 0, a.status = 69;
|
|
198
|
-
else if (At(a, 0), At(a, 0), At(a, 0), At(a, 0), At(a, 0), At(a, 9 === a.level ? 2 : a.strategy >= ot || a.level < 2 ? 4 : 0), At(a, 3), a.status = mt, xt(t), 0 !== a.pending)
|
|
199
|
-
return a.last_flush = -1, tt; if (69 === a.status) {
|
|
200
|
-
if (a.gzhead.extra) {
|
|
201
|
-
let e = a.pending, i = (65535 & a.gzhead.extra.length) - a.gzindex;
|
|
202
|
-
for (; a.pending + i > a.pending_buf_size;) {
|
|
203
|
-
let n = a.pending_buf_size - a.pending;
|
|
204
|
-
if (a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex, a.gzindex + n), a.pending), a.pending = a.pending_buf_size, a.gzhead.hcrc && a.pending > e && (t.adler = H(t.adler, a.pending_buf, a.pending - e, e)), a.gzindex += n, xt(t), 0 !== a.pending)
|
|
205
|
-
return a.last_flush = -1, tt;
|
|
206
|
-
e = 0, i -= n;
|
|
207
|
-
}
|
|
208
|
-
let n = new Uint8Array(a.gzhead.extra);
|
|
209
|
-
a.pending_buf.set(n.subarray(a.gzindex, a.gzindex + i), a.pending), a.pending += i, a.gzhead.hcrc && a.pending > e && (t.adler = H(t.adler, a.pending_buf, a.pending - e, e)), a.gzindex = 0;
|
|
210
|
-
}
|
|
211
|
-
a.status = 73;
|
|
212
|
-
} if (73 === a.status) {
|
|
213
|
-
if (a.gzhead.name) {
|
|
214
|
-
let e, i = a.pending;
|
|
215
|
-
do {
|
|
216
|
-
if (a.pending === a.pending_buf_size) {
|
|
217
|
-
if (a.gzhead.hcrc && a.pending > i && (t.adler = H(t.adler, a.pending_buf, a.pending - i, i)), xt(t), 0 !== a.pending)
|
|
218
|
-
return a.last_flush = -1, tt;
|
|
219
|
-
i = 0;
|
|
220
|
-
}
|
|
221
|
-
e = a.gzindex < a.gzhead.name.length ? 255 & a.gzhead.name.charCodeAt(a.gzindex++) : 0, At(a, e);
|
|
222
|
-
} while (0 !== e);
|
|
223
|
-
a.gzhead.hcrc && a.pending > i && (t.adler = H(t.adler, a.pending_buf, a.pending - i, i)), a.gzindex = 0;
|
|
224
|
-
}
|
|
225
|
-
a.status = 91;
|
|
226
|
-
} if (91 === a.status) {
|
|
227
|
-
if (a.gzhead.comment) {
|
|
228
|
-
let e, i = a.pending;
|
|
229
|
-
do {
|
|
230
|
-
if (a.pending === a.pending_buf_size) {
|
|
231
|
-
if (a.gzhead.hcrc && a.pending > i && (t.adler = H(t.adler, a.pending_buf, a.pending - i, i)), xt(t), 0 !== a.pending)
|
|
232
|
-
return a.last_flush = -1, tt;
|
|
233
|
-
i = 0;
|
|
234
|
-
}
|
|
235
|
-
e = a.gzindex < a.gzhead.comment.length ? 255 & a.gzhead.comment.charCodeAt(a.gzindex++) : 0, At(a, e);
|
|
236
|
-
} while (0 !== e);
|
|
237
|
-
a.gzhead.hcrc && a.pending > i && (t.adler = H(t.adler, a.pending_buf, a.pending - i, i));
|
|
238
|
-
}
|
|
239
|
-
a.status = 103;
|
|
240
|
-
} if (103 === a.status) {
|
|
241
|
-
if (a.gzhead.hcrc) {
|
|
242
|
-
if (a.pending + 2 > a.pending_buf_size && (xt(t), 0 !== a.pending))
|
|
243
|
-
return a.last_flush = -1, tt;
|
|
244
|
-
At(a, 255 & t.adler), At(a, t.adler >> 8 & 255), t.adler = 0;
|
|
245
|
-
}
|
|
246
|
-
if (a.status = mt, xt(t), 0 !== a.pending)
|
|
247
|
-
return a.last_flush = -1, tt;
|
|
248
|
-
} if (0 !== t.avail_in || 0 !== a.lookahead || e !== q && a.status !== bt) {
|
|
249
|
-
let i = 0 === a.level ? St(a, e) : a.strategy === ot ? ((t, e) => { let a; for (;;) {
|
|
250
|
-
if (0 === t.lookahead && (Ut(t), 0 === t.lookahead)) {
|
|
251
|
-
if (e === q)
|
|
252
|
-
return 1;
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
if (t.match_length = 0, a = X(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++, a && (zt(t, !1), 0 === t.strm.avail_out))
|
|
256
|
-
return 1;
|
|
257
|
-
} return t.insert = 0, e === V ? (zt(t, !0), 0 === t.strm.avail_out ? 3 : 4) : t.sym_next && (zt(t, !1), 0 === t.strm.avail_out) ? 1 : 2; })(a, e) : a.strategy === lt ? ((t, e) => { let a, i, n, s; const r = t.window; for (;;) {
|
|
258
|
-
if (t.lookahead <= ct) {
|
|
259
|
-
if (Ut(t), t.lookahead <= ct && e === q)
|
|
260
|
-
return 1;
|
|
261
|
-
if (0 === t.lookahead)
|
|
262
|
-
break;
|
|
263
|
-
}
|
|
264
|
-
if (t.match_length = 0, t.lookahead >= 3 && t.strstart > 0 && (n = t.strstart - 1, i = r[n], i === r[++n] && i === r[++n] && i === r[++n])) {
|
|
265
|
-
s = t.strstart + ct;
|
|
266
|
-
do { } while (i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && n < s);
|
|
267
|
-
t.match_length = ct - (s - n), t.match_length > t.lookahead && (t.match_length = t.lookahead);
|
|
268
|
-
}
|
|
269
|
-
if (t.match_length >= 3 ? (a = X(t, 1, t.match_length - 3), t.lookahead -= t.match_length, t.strstart += t.match_length, t.match_length = 0) : (a = X(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++), a && (zt(t, !1), 0 === t.strm.avail_out))
|
|
270
|
-
return 1;
|
|
271
|
-
} return t.insert = 0, e === V ? (zt(t, !0), 0 === t.strm.avail_out ? 3 : 4) : t.sym_next && (zt(t, !1), 0 === t.strm.avail_out) ? 1 : 2; })(a, e) : It[a.level].func(a, e);
|
|
272
|
-
if (3 !== i && 4 !== i || (a.status = bt), 1 === i || 3 === i)
|
|
273
|
-
return 0 === t.avail_out && (a.last_flush = -1), tt;
|
|
274
|
-
if (2 === i && (e === J ? W(a) : e !== $ && (Y(a, 0, 0, !1), e === Q && (kt(a.head), 0 === a.lookahead && (a.strstart = 0, a.block_start = 0, a.insert = 0))), xt(t), 0 === t.avail_out))
|
|
275
|
-
return a.last_flush = -1, tt;
|
|
276
|
-
} return e !== V ? tt : a.wrap <= 0 ? et : (2 === a.wrap ? (At(a, 255 & t.adler), At(a, t.adler >> 8 & 255), At(a, t.adler >> 16 & 255), At(a, t.adler >> 24 & 255), At(a, 255 & t.total_in), At(a, t.total_in >> 8 & 255), At(a, t.total_in >> 16 & 255), At(a, t.total_in >> 24 & 255)) : (Et(a, t.adler >>> 16), Et(a, 65535 & t.adler)), xt(t), a.wrap > 0 && (a.wrap = -a.wrap), 0 !== a.pending ? tt : et); }, deflateEnd: t => { if (Lt(t))
|
|
277
|
-
return at; const e = t.state.status; return t.state = null, e === mt ? gt(t, it) : tt; }, deflateSetDictionary: (t, e) => { let a = e.length; if (Lt(t))
|
|
278
|
-
return at; const i = t.state, n = i.wrap; if (2 === n || 1 === n && i.status !== wt || i.lookahead)
|
|
279
|
-
return at; if (1 === n && (t.adler = C(t.adler, e, a, 0)), i.wrap = 0, a >= i.w_size) {
|
|
280
|
-
0 === n && (kt(i.head), i.strstart = 0, i.block_start = 0, i.insert = 0);
|
|
281
|
-
let t = new Uint8Array(i.w_size);
|
|
282
|
-
t.set(e.subarray(a - i.w_size, a), 0), e = t, a = i.w_size;
|
|
283
|
-
} const s = t.avail_in, r = t.next_in, o = t.input; for (t.avail_in = a, t.next_in = 0, t.input = e, Ut(i); i.lookahead >= 3;) {
|
|
284
|
-
let t = i.strstart, e = i.lookahead - 2;
|
|
285
|
-
do {
|
|
286
|
-
i.ins_h = yt(i, i.ins_h, i.window[t + 3 - 1]), i.prev[t & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = t, t++;
|
|
287
|
-
} while (--e);
|
|
288
|
-
i.strstart = t, i.lookahead = 2, Ut(i);
|
|
289
|
-
} return i.strstart += i.lookahead, i.block_start = i.strstart, i.insert = i.lookahead, i.lookahead = 0, i.match_length = i.prev_length = 2, i.match_available = 0, t.next_in = r, t.input = o, t.avail_in = s, i.wrap = n, tt; }, deflateInfo: "pako deflate (from Nodeca project)" };
|
|
290
|
-
const Ht = (t, e) => Object.prototype.hasOwnProperty.call(t, e);
|
|
291
|
-
var jt = function (t) { const e = Array.prototype.slice.call(arguments, 1); for (; e.length;) {
|
|
292
|
-
const a = e.shift();
|
|
293
|
-
if (a) {
|
|
294
|
-
if ("object" != typeof a)
|
|
295
|
-
throw new TypeError(a + "must be non-object");
|
|
296
|
-
for (const e in a)
|
|
297
|
-
Ht(a, e) && (t[e] = a[e]);
|
|
298
|
-
}
|
|
299
|
-
} return t; }, Kt = t => { let e = 0; for (let a = 0, i = t.length; a < i; a++)
|
|
300
|
-
e += t[a].length; const a = new Uint8Array(e); for (let e = 0, i = 0, n = t.length; e < n; e++) {
|
|
301
|
-
let n = t[e];
|
|
302
|
-
a.set(n, i), i += n.length;
|
|
303
|
-
} return a; };
|
|
304
|
-
let Pt = !0;
|
|
305
|
-
try {
|
|
306
|
-
String.fromCharCode.apply(null, new Uint8Array(1));
|
|
307
|
-
}
|
|
308
|
-
catch (t) {
|
|
309
|
-
Pt = !1;
|
|
310
|
-
}
|
|
311
|
-
const Yt = new Uint8Array(256);
|
|
312
|
-
for (let t = 0; t < 256; t++)
|
|
313
|
-
Yt[t] = t >= 252 ? 6 : t >= 248 ? 5 : t >= 240 ? 4 : t >= 224 ? 3 : t >= 192 ? 2 : 1;
|
|
314
|
-
Yt[254] = Yt[254] = 1;
|
|
315
|
-
var Gt = t => { if ("function" == typeof TextEncoder && TextEncoder.prototype.encode)
|
|
316
|
-
return (new TextEncoder).encode(t); let e, a, i, n, s, r = t.length, o = 0; for (n = 0; n < r; n++)
|
|
317
|
-
a = t.charCodeAt(n), 55296 == (64512 & a) && n + 1 < r && (i = t.charCodeAt(n + 1), 56320 == (64512 & i) && (a = 65536 + (a - 55296 << 10) + (i - 56320), n++)), o += a < 128 ? 1 : a < 2048 ? 2 : a < 65536 ? 3 : 4; for (e = new Uint8Array(o), s = 0, n = 0; s < o; n++)
|
|
318
|
-
a = t.charCodeAt(n), 55296 == (64512 & a) && n + 1 < r && (i = t.charCodeAt(n + 1), 56320 == (64512 & i) && (a = 65536 + (a - 55296 << 10) + (i - 56320), n++)), a < 128 ? e[s++] = a : a < 2048 ? (e[s++] = 192 | a >>> 6, e[s++] = 128 | 63 & a) : a < 65536 ? (e[s++] = 224 | a >>> 12, e[s++] = 128 | a >>> 6 & 63, e[s++] = 128 | 63 & a) : (e[s++] = 240 | a >>> 18, e[s++] = 128 | a >>> 12 & 63, e[s++] = 128 | a >>> 6 & 63, e[s++] = 128 | 63 & a); return e; }, Xt = (t, e) => { const a = e || t.length; if ("function" == typeof TextDecoder && TextDecoder.prototype.decode)
|
|
319
|
-
return (new TextDecoder).decode(t.subarray(0, e)); let i, n; const s = new Array(2 * a); for (n = 0, i = 0; i < a;) {
|
|
320
|
-
let e = t[i++];
|
|
321
|
-
if (e < 128) {
|
|
322
|
-
s[n++] = e;
|
|
323
|
-
continue;
|
|
324
|
-
}
|
|
325
|
-
let r = Yt[e];
|
|
326
|
-
if (r > 4)
|
|
327
|
-
s[n++] = 65533, i += r - 1;
|
|
328
|
-
else {
|
|
329
|
-
for (e &= 2 === r ? 31 : 3 === r ? 15 : 7; r > 1 && i < a;)
|
|
330
|
-
e = e << 6 | 63 & t[i++], r--;
|
|
331
|
-
r > 1 ? s[n++] = 65533 : e < 65536 ? s[n++] = e : (e -= 65536, s[n++] = 55296 | e >> 10 & 1023, s[n++] = 56320 | 1023 & e);
|
|
332
|
-
}
|
|
333
|
-
} return ((t, e) => { if (e < 65534 && t.subarray && Pt)
|
|
334
|
-
return String.fromCharCode.apply(null, t.length === e ? t : t.subarray(0, e)); let a = ""; for (let i = 0; i < e; i++)
|
|
335
|
-
a += String.fromCharCode(t[i]); return a; })(s, n); }, Wt = (t, e) => { (e = e || t.length) > t.length && (e = t.length); let a = e - 1; for (; a >= 0 && 128 == (192 & t[a]);)
|
|
336
|
-
a--; return a < 0 || 0 === a ? e : a + Yt[t[a]] > e ? a : e; };
|
|
337
|
-
var qt = 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; };
|
|
338
|
-
const Jt = Object.prototype.toString, { Z_NO_FLUSH: Qt, Z_SYNC_FLUSH: Vt, Z_FULL_FLUSH: $t, Z_FINISH: te, Z_OK: ee, Z_STREAM_END: ae, Z_DEFAULT_COMPRESSION: ie, Z_DEFAULT_STRATEGY: ne, Z_DEFLATED: se } = K;
|
|
339
|
-
function re(t) { this.options = jt({ level: ie, method: se, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: ne }, t || {}); let e = this.options; e.raw && e.windowBits > 0 ? e.windowBits = -e.windowBits : e.gzip && e.windowBits > 0 && e.windowBits < 16 && (e.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new qt, this.strm.avail_out = 0; let a = Mt.deflateInit2(this.strm, e.level, e.method, e.windowBits, e.memLevel, e.strategy); if (a !== ee)
|
|
340
|
-
throw new Error(j[a]); if (e.header && Mt.deflateSetHeader(this.strm, e.header), e.dictionary) {
|
|
341
|
-
let t;
|
|
342
|
-
if (t = "string" == typeof e.dictionary ? Gt(e.dictionary) : "[object ArrayBuffer]" === Jt.call(e.dictionary) ? new Uint8Array(e.dictionary) : e.dictionary, a = Mt.deflateSetDictionary(this.strm, t), a !== ee)
|
|
343
|
-
throw new Error(j[a]);
|
|
344
|
-
this._dict_set = !0;
|
|
345
|
-
} }
|
|
346
|
-
function oe(t, e) { const a = new re(e); if (a.push(t, !0), a.err)
|
|
347
|
-
throw a.msg || j[a.err]; return a.result; }
|
|
348
|
-
re.prototype.push = function (t, e) { const a = this.strm, i = this.options.chunkSize; let n, s; if (this.ended)
|
|
349
|
-
return !1; for (s = e === ~~e ? e : !0 === e ? te : Qt, "string" == typeof t ? a.input = Gt(t) : "[object ArrayBuffer]" === Jt.call(t) ? a.input = new Uint8Array(t) : a.input = t, a.next_in = 0, a.avail_in = a.input.length;;)
|
|
350
|
-
if (0 === a.avail_out && (a.output = new Uint8Array(i), a.next_out = 0, a.avail_out = i), (s === Vt || s === $t) && a.avail_out <= 6)
|
|
351
|
-
this.onData(a.output.subarray(0, a.next_out)), a.avail_out = 0;
|
|
352
|
-
else {
|
|
353
|
-
if (n = Mt.deflate(a, s), n === ae)
|
|
354
|
-
return a.next_out > 0 && this.onData(a.output.subarray(0, a.next_out)), n = Mt.deflateEnd(this.strm), this.onEnd(n), this.ended = !0, n === ee;
|
|
355
|
-
if (0 !== a.avail_out) {
|
|
356
|
-
if (s > 0 && a.next_out > 0)
|
|
357
|
-
this.onData(a.output.subarray(0, a.next_out)), a.avail_out = 0;
|
|
358
|
-
else if (0 === a.avail_in)
|
|
359
|
-
break;
|
|
360
|
-
}
|
|
361
|
-
else
|
|
362
|
-
this.onData(a.output);
|
|
363
|
-
} return !0; }, re.prototype.onData = function (t) { this.chunks.push(t); }, re.prototype.onEnd = function (t) { t === ee && (this.result = Kt(this.chunks)), this.chunks = [], this.err = t, this.msg = this.strm.msg; };
|
|
364
|
-
var le = { Deflate: re, deflate: oe, deflateRaw: function (t, e) { return (e = e || {}).raw = !0, oe(t, e); }, gzip: function (t, e) { return (e = e || {}).gzip = !0, oe(t, e); }, constants: K };
|
|
365
|
-
const he = 16209;
|
|
366
|
-
var de = function (t, e) { let a, i, n, s, r, o, l, h, d, _, f, c, u, w, m, b, g, p, k, v, y, x, z, A; const E = t.state; a = t.next_in, z = t.input, i = a + (t.avail_in - 5), n = t.next_out, A = t.output, s = n - (e - t.avail_out), r = n + (t.avail_out - 257), o = E.dmax, l = E.wsize, h = E.whave, d = E.wnext, _ = E.window, f = E.hold, c = E.bits, u = E.lencode, w = E.distcode, m = (1 << E.lenbits) - 1, b = (1 << E.distbits) - 1; t: do {
|
|
367
|
-
c < 15 && (f += z[a++] << c, c += 8, f += z[a++] << c, c += 8), g = u[f & m];
|
|
368
|
-
e: for (;;) {
|
|
369
|
-
if (p = g >>> 24, f >>>= p, c -= p, p = g >>> 16 & 255, 0 === p)
|
|
370
|
-
A[n++] = 65535 & g;
|
|
371
|
-
else {
|
|
372
|
-
if (!(16 & p)) {
|
|
373
|
-
if (0 == (64 & p)) {
|
|
374
|
-
g = u[(65535 & g) + (f & (1 << p) - 1)];
|
|
375
|
-
continue e;
|
|
376
|
-
}
|
|
377
|
-
if (32 & p) {
|
|
378
|
-
E.mode = 16191;
|
|
379
|
-
break t;
|
|
380
|
-
}
|
|
381
|
-
t.msg = "invalid literal/length code", E.mode = he;
|
|
382
|
-
break t;
|
|
383
|
-
}
|
|
384
|
-
k = 65535 & g, p &= 15, p && (c < p && (f += z[a++] << c, c += 8), k += f & (1 << p) - 1, f >>>= p, c -= p), c < 15 && (f += z[a++] << c, c += 8, f += z[a++] << c, c += 8), g = w[f & b];
|
|
385
|
-
a: for (;;) {
|
|
386
|
-
if (p = g >>> 24, f >>>= p, c -= p, p = g >>> 16 & 255, !(16 & p)) {
|
|
387
|
-
if (0 == (64 & p)) {
|
|
388
|
-
g = w[(65535 & g) + (f & (1 << p) - 1)];
|
|
389
|
-
continue a;
|
|
390
|
-
}
|
|
391
|
-
t.msg = "invalid distance code", E.mode = he;
|
|
392
|
-
break t;
|
|
393
|
-
}
|
|
394
|
-
if (v = 65535 & g, p &= 15, c < p && (f += z[a++] << c, c += 8, c < p && (f += z[a++] << c, c += 8)), v += f & (1 << p) - 1, v > o) {
|
|
395
|
-
t.msg = "invalid distance too far back", E.mode = he;
|
|
396
|
-
break t;
|
|
397
|
-
}
|
|
398
|
-
if (f >>>= p, c -= p, p = n - s, v > p) {
|
|
399
|
-
if (p = v - p, p > h && E.sane) {
|
|
400
|
-
t.msg = "invalid distance too far back", E.mode = he;
|
|
401
|
-
break t;
|
|
402
|
-
}
|
|
403
|
-
if (y = 0, x = _, 0 === d) {
|
|
404
|
-
if (y += l - p, p < k) {
|
|
405
|
-
k -= p;
|
|
406
|
-
do {
|
|
407
|
-
A[n++] = _[y++];
|
|
408
|
-
} while (--p);
|
|
409
|
-
y = n - v, x = A;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
else if (d < p) {
|
|
413
|
-
if (y += l + d - p, p -= d, p < k) {
|
|
414
|
-
k -= p;
|
|
415
|
-
do {
|
|
416
|
-
A[n++] = _[y++];
|
|
417
|
-
} while (--p);
|
|
418
|
-
if (y = 0, d < k) {
|
|
419
|
-
p = d, k -= p;
|
|
420
|
-
do {
|
|
421
|
-
A[n++] = _[y++];
|
|
422
|
-
} while (--p);
|
|
423
|
-
y = n - v, x = A;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
else if (y += d - p, p < k) {
|
|
428
|
-
k -= p;
|
|
429
|
-
do {
|
|
430
|
-
A[n++] = _[y++];
|
|
431
|
-
} while (--p);
|
|
432
|
-
y = n - v, x = A;
|
|
433
|
-
}
|
|
434
|
-
for (; k > 2;)
|
|
435
|
-
A[n++] = x[y++], A[n++] = x[y++], A[n++] = x[y++], k -= 3;
|
|
436
|
-
k && (A[n++] = x[y++], k > 1 && (A[n++] = x[y++]));
|
|
437
|
-
}
|
|
438
|
-
else {
|
|
439
|
-
y = n - v;
|
|
440
|
-
do {
|
|
441
|
-
A[n++] = A[y++], A[n++] = A[y++], A[n++] = A[y++], k -= 3;
|
|
442
|
-
} while (k > 2);
|
|
443
|
-
k && (A[n++] = A[y++], k > 1 && (A[n++] = A[y++]));
|
|
444
|
-
}
|
|
445
|
-
break;
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
break;
|
|
449
|
-
}
|
|
450
|
-
} while (a < i && n < r); k = c >> 3, a -= k, c -= k << 3, f &= (1 << c) - 1, t.next_in = a, t.next_out = n, t.avail_in = a < i ? i - a + 5 : 5 - (a - i), t.avail_out = n < r ? r - n + 257 : 257 - (n - r), E.hold = f, E.bits = c; };
|
|
451
|
-
const _e = 15, fe = new Uint16Array([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]), ce = new Uint8Array([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]), ue = new Uint16Array([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]), we = new Uint8Array([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]);
|
|
452
|
-
var me = (t, e, a, i, n, s, r, o) => { const l = o.bits; let h, d, _, f, c, u, w = 0, m = 0, b = 0, g = 0, p = 0, k = 0, v = 0, y = 0, x = 0, z = 0, A = null; const E = new Uint16Array(16), R = new Uint16Array(16); let Z, U, S, D = null; for (w = 0; w <= _e; w++)
|
|
453
|
-
E[w] = 0; for (m = 0; m < i; m++)
|
|
454
|
-
E[e[a + m]]++; for (p = l, g = _e; g >= 1 && 0 === E[g]; g--)
|
|
455
|
-
; if (p > g && (p = g), 0 === g)
|
|
456
|
-
return n[s++] = 20971520, n[s++] = 20971520, o.bits = 1, 0; for (b = 1; b < g && 0 === E[b]; b++)
|
|
457
|
-
; for (p < b && (p = b), y = 1, w = 1; w <= _e; w++)
|
|
458
|
-
if (y <<= 1, y -= E[w], y < 0)
|
|
459
|
-
return -1; if (y > 0 && (0 === t || 1 !== g))
|
|
460
|
-
return -1; for (R[1] = 0, w = 1; w < _e; w++)
|
|
461
|
-
R[w + 1] = R[w] + E[w]; for (m = 0; m < i; m++)
|
|
462
|
-
0 !== e[a + m] && (r[R[e[a + m]]++] = m); if (0 === t ? (A = D = r, u = 20) : 1 === t ? (A = fe, D = ce, u = 257) : (A = ue, D = we, u = 0), z = 0, m = 0, w = b, c = s, k = p, v = 0, _ = -1, x = 1 << p, f = x - 1, 1 === t && x > 852 || 2 === t && x > 592)
|
|
463
|
-
return 1; for (;;) {
|
|
464
|
-
Z = w - v, r[m] + 1 < u ? (U = 0, S = r[m]) : r[m] >= u ? (U = D[r[m] - u], S = A[r[m] - u]) : (U = 96, S = 0), h = 1 << w - v, d = 1 << k, b = d;
|
|
465
|
-
do {
|
|
466
|
-
d -= h, n[c + (z >> v) + d] = Z << 24 | U << 16 | S | 0;
|
|
467
|
-
} while (0 !== d);
|
|
468
|
-
for (h = 1 << w - 1; z & h;)
|
|
469
|
-
h >>= 1;
|
|
470
|
-
if (0 !== h ? (z &= h - 1, z += h) : z = 0, m++, 0 == --E[w]) {
|
|
471
|
-
if (w === g)
|
|
472
|
-
break;
|
|
473
|
-
w = e[a + r[m]];
|
|
474
|
-
}
|
|
475
|
-
if (w > p && (z & f) !== _) {
|
|
476
|
-
for (0 === v && (v = p), c += b, k = w - v, y = 1 << k; k + v < g && (y -= E[k + v], !(y <= 0));)
|
|
477
|
-
k++, y <<= 1;
|
|
478
|
-
if (x += 1 << k, 1 === t && x > 852 || 2 === t && x > 592)
|
|
479
|
-
return 1;
|
|
480
|
-
_ = z & f, n[_] = p << 24 | k << 16 | c - s | 0;
|
|
481
|
-
}
|
|
482
|
-
} return 0 !== z && (n[c + z] = w - v << 24 | 64 << 16 | 0), o.bits = p, 0; };
|
|
483
|
-
const { Z_FINISH: be, Z_BLOCK: ge, Z_TREES: pe, Z_OK: ke, Z_STREAM_END: ve, Z_NEED_DICT: ye, Z_STREAM_ERROR: xe, Z_DATA_ERROR: ze, Z_MEM_ERROR: Ae, Z_BUF_ERROR: Ee, Z_DEFLATED: Re } = K, Ze = 16180, Ue = 16190, Se = 16191, De = 16192, Te = 16194, Oe = 16199, Ie = 16200, Fe = 16206, Le = 16209, Ne = t => (t >>> 24 & 255) + (t >>> 8 & 65280) + ((65280 & t) << 8) + ((255 & t) << 24);
|
|
484
|
-
function Be() { this.strm = null, 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 Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0; }
|
|
485
|
-
const Ce = t => { if (!t)
|
|
486
|
-
return 1; const e = t.state; return !e || e.strm !== t || e.mode < Ze || e.mode > 16211 ? 1 : 0; }, Me = t => { if (Ce(t))
|
|
487
|
-
return xe; const e = t.state; return t.total_in = t.total_out = e.total = 0, t.msg = "", e.wrap && (t.adler = 1 & e.wrap), e.mode = Ze, e.last = 0, e.havedict = 0, e.flags = -1, e.dmax = 32768, e.head = null, e.hold = 0, e.bits = 0, e.lencode = e.lendyn = new Int32Array(852), e.distcode = e.distdyn = new Int32Array(592), e.sane = 1, e.back = -1, ke; }, He = t => { if (Ce(t))
|
|
488
|
-
return xe; const e = t.state; return e.wsize = 0, e.whave = 0, e.wnext = 0, Me(t); }, je = (t, e) => { let a; if (Ce(t))
|
|
489
|
-
return xe; const i = t.state; return e < 0 ? (a = 0, e = -e) : (a = 5 + (e >> 4), e < 48 && (e &= 15)), e && (e < 8 || e > 15) ? xe : (null !== i.window && i.wbits !== e && (i.window = null), i.wrap = a, i.wbits = e, He(t)); }, Ke = (t, e) => { if (!t)
|
|
490
|
-
return xe; const a = new Be; t.state = a, a.strm = t, a.window = null, a.mode = Ze; const i = je(t, e); return i !== ke && (t.state = null), i; };
|
|
491
|
-
let Pe, Ye, Ge = !0;
|
|
492
|
-
const Xe = t => { if (Ge) {
|
|
493
|
-
Pe = new Int32Array(512), Ye = new Int32Array(32);
|
|
494
|
-
let e = 0;
|
|
495
|
-
for (; e < 144;)
|
|
496
|
-
t.lens[e++] = 8;
|
|
497
|
-
for (; e < 256;)
|
|
498
|
-
t.lens[e++] = 9;
|
|
499
|
-
for (; e < 280;)
|
|
500
|
-
t.lens[e++] = 7;
|
|
501
|
-
for (; e < 288;)
|
|
502
|
-
t.lens[e++] = 8;
|
|
503
|
-
for (me(1, t.lens, 0, 288, Pe, 0, t.work, { bits: 9 }), e = 0; e < 32;)
|
|
504
|
-
t.lens[e++] = 5;
|
|
505
|
-
me(2, t.lens, 0, 32, Ye, 0, t.work, { bits: 5 }), Ge = !1;
|
|
506
|
-
} t.lencode = Pe, t.lenbits = 9, t.distcode = Ye, t.distbits = 5; }, We = (t, e, a, i) => { let n; const s = t.state; return null === s.window && (s.wsize = 1 << s.wbits, s.wnext = 0, s.whave = 0, s.window = new Uint8Array(s.wsize)), i >= s.wsize ? (s.window.set(e.subarray(a - s.wsize, a), 0), s.wnext = 0, s.whave = s.wsize) : (n = s.wsize - s.wnext, n > i && (n = i), s.window.set(e.subarray(a - i, a - i + n), s.wnext), (i -= n) ? (s.window.set(e.subarray(a - i, a), 0), s.wnext = i, s.whave = s.wsize) : (s.wnext += n, s.wnext === s.wsize && (s.wnext = 0), s.whave < s.wsize && (s.whave += n))), 0; };
|
|
507
|
-
var qe = { inflateReset: He, inflateReset2: je, inflateResetKeep: Me, inflateInit: t => Ke(t, 15), inflateInit2: Ke, inflate: (t, e) => { let a, i, n, s, r, o, l, h, d, _, f, c, u, w, m, b, g, p, k, v, y, x, z = 0; const A = new Uint8Array(4); let E, R; const Z = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); if (Ce(t) || !t.output || !t.input && 0 !== t.avail_in)
|
|
508
|
-
return xe; a = t.state, a.mode === Se && (a.mode = De), r = t.next_out, n = t.output, l = t.avail_out, s = t.next_in, i = t.input, o = t.avail_in, h = a.hold, d = a.bits, _ = o, f = l, x = ke; t: for (;;)
|
|
509
|
-
switch (a.mode) {
|
|
510
|
-
case Ze:
|
|
511
|
-
if (0 === a.wrap) {
|
|
512
|
-
a.mode = De;
|
|
513
|
-
break;
|
|
514
|
-
}
|
|
515
|
-
for (; d < 16;) {
|
|
516
|
-
if (0 === o)
|
|
517
|
-
break t;
|
|
518
|
-
o--, h += i[s++] << d, d += 8;
|
|
519
|
-
}
|
|
520
|
-
if (2 & a.wrap && 35615 === h) {
|
|
521
|
-
0 === a.wbits && (a.wbits = 15), a.check = 0, A[0] = 255 & h, A[1] = h >>> 8 & 255, a.check = H(a.check, A, 2, 0), h = 0, d = 0, a.mode = 16181;
|
|
522
|
-
break;
|
|
523
|
-
}
|
|
524
|
-
if (a.head && (a.head.done = !1), !(1 & a.wrap) || (((255 & h) << 8) + (h >> 8)) % 31) {
|
|
525
|
-
t.msg = "incorrect header check", a.mode = Le;
|
|
526
|
-
break;
|
|
527
|
-
}
|
|
528
|
-
if ((15 & h) !== Re) {
|
|
529
|
-
t.msg = "unknown compression method", a.mode = Le;
|
|
530
|
-
break;
|
|
531
|
-
}
|
|
532
|
-
if (h >>>= 4, d -= 4, y = 8 + (15 & h), 0 === a.wbits && (a.wbits = y), y > 15 || y > a.wbits) {
|
|
533
|
-
t.msg = "invalid window size", a.mode = Le;
|
|
534
|
-
break;
|
|
535
|
-
}
|
|
536
|
-
a.dmax = 1 << a.wbits, a.flags = 0, t.adler = a.check = 1, a.mode = 512 & h ? 16189 : Se, h = 0, d = 0;
|
|
537
|
-
break;
|
|
538
|
-
case 16181:
|
|
539
|
-
for (; d < 16;) {
|
|
540
|
-
if (0 === o)
|
|
541
|
-
break t;
|
|
542
|
-
o--, h += i[s++] << d, d += 8;
|
|
543
|
-
}
|
|
544
|
-
if (a.flags = h, (255 & a.flags) !== Re) {
|
|
545
|
-
t.msg = "unknown compression method", a.mode = Le;
|
|
546
|
-
break;
|
|
547
|
-
}
|
|
548
|
-
if (57344 & a.flags) {
|
|
549
|
-
t.msg = "unknown header flags set", a.mode = Le;
|
|
550
|
-
break;
|
|
551
|
-
}
|
|
552
|
-
a.head && (a.head.text = h >> 8 & 1), 512 & a.flags && 4 & a.wrap && (A[0] = 255 & h, A[1] = h >>> 8 & 255, a.check = H(a.check, A, 2, 0)), h = 0, d = 0, a.mode = 16182;
|
|
553
|
-
case 16182:
|
|
554
|
-
for (; d < 32;) {
|
|
555
|
-
if (0 === o)
|
|
556
|
-
break t;
|
|
557
|
-
o--, h += i[s++] << d, d += 8;
|
|
558
|
-
}
|
|
559
|
-
a.head && (a.head.time = h), 512 & a.flags && 4 & a.wrap && (A[0] = 255 & h, A[1] = h >>> 8 & 255, A[2] = h >>> 16 & 255, A[3] = h >>> 24 & 255, a.check = H(a.check, A, 4, 0)), h = 0, d = 0, a.mode = 16183;
|
|
560
|
-
case 16183:
|
|
561
|
-
for (; d < 16;) {
|
|
562
|
-
if (0 === o)
|
|
563
|
-
break t;
|
|
564
|
-
o--, h += i[s++] << d, d += 8;
|
|
565
|
-
}
|
|
566
|
-
a.head && (a.head.xflags = 255 & h, a.head.os = h >> 8), 512 & a.flags && 4 & a.wrap && (A[0] = 255 & h, A[1] = h >>> 8 & 255, a.check = H(a.check, A, 2, 0)), h = 0, d = 0, a.mode = 16184;
|
|
567
|
-
case 16184:
|
|
568
|
-
if (1024 & a.flags) {
|
|
569
|
-
for (; d < 16;) {
|
|
570
|
-
if (0 === o)
|
|
571
|
-
break t;
|
|
572
|
-
o--, h += i[s++] << d, d += 8;
|
|
573
|
-
}
|
|
574
|
-
a.length = h, a.head && (a.head.extra_len = h), 512 & a.flags && 4 & a.wrap && (A[0] = 255 & h, A[1] = h >>> 8 & 255, a.check = H(a.check, A, 2, 0)), h = 0, d = 0;
|
|
575
|
-
}
|
|
576
|
-
else
|
|
577
|
-
a.head && (a.head.extra = null);
|
|
578
|
-
a.mode = 16185;
|
|
579
|
-
case 16185:
|
|
580
|
-
if (1024 & a.flags && (c = a.length, c > o && (c = o), c && (a.head && (y = a.head.extra_len - a.length, a.head.extra || (a.head.extra = new Uint8Array(a.head.extra_len)), a.head.extra.set(i.subarray(s, s + c), y)), 512 & a.flags && 4 & a.wrap && (a.check = H(a.check, i, c, s)), o -= c, s += c, a.length -= c), a.length))
|
|
581
|
-
break t;
|
|
582
|
-
a.length = 0, a.mode = 16186;
|
|
583
|
-
case 16186:
|
|
584
|
-
if (2048 & a.flags) {
|
|
585
|
-
if (0 === o)
|
|
586
|
-
break t;
|
|
587
|
-
c = 0;
|
|
588
|
-
do {
|
|
589
|
-
y = i[s + c++], a.head && y && a.length < 65536 && (a.head.name += String.fromCharCode(y));
|
|
590
|
-
} while (y && c < o);
|
|
591
|
-
if (512 & a.flags && 4 & a.wrap && (a.check = H(a.check, i, c, s)), o -= c, s += c, y)
|
|
592
|
-
break t;
|
|
593
|
-
}
|
|
594
|
-
else
|
|
595
|
-
a.head && (a.head.name = null);
|
|
596
|
-
a.length = 0, a.mode = 16187;
|
|
597
|
-
case 16187:
|
|
598
|
-
if (4096 & a.flags) {
|
|
599
|
-
if (0 === o)
|
|
600
|
-
break t;
|
|
601
|
-
c = 0;
|
|
602
|
-
do {
|
|
603
|
-
y = i[s + c++], a.head && y && a.length < 65536 && (a.head.comment += String.fromCharCode(y));
|
|
604
|
-
} while (y && c < o);
|
|
605
|
-
if (512 & a.flags && 4 & a.wrap && (a.check = H(a.check, i, c, s)), o -= c, s += c, y)
|
|
606
|
-
break t;
|
|
607
|
-
}
|
|
608
|
-
else
|
|
609
|
-
a.head && (a.head.comment = null);
|
|
610
|
-
a.mode = 16188;
|
|
611
|
-
case 16188:
|
|
612
|
-
if (512 & a.flags) {
|
|
613
|
-
for (; d < 16;) {
|
|
614
|
-
if (0 === o)
|
|
615
|
-
break t;
|
|
616
|
-
o--, h += i[s++] << d, d += 8;
|
|
617
|
-
}
|
|
618
|
-
if (4 & a.wrap && h !== (65535 & a.check)) {
|
|
619
|
-
t.msg = "header crc mismatch", a.mode = Le;
|
|
620
|
-
break;
|
|
621
|
-
}
|
|
622
|
-
h = 0, d = 0;
|
|
623
|
-
}
|
|
624
|
-
a.head && (a.head.hcrc = a.flags >> 9 & 1, a.head.done = !0), t.adler = a.check = 0, a.mode = Se;
|
|
625
|
-
break;
|
|
626
|
-
case 16189:
|
|
627
|
-
for (; d < 32;) {
|
|
628
|
-
if (0 === o)
|
|
629
|
-
break t;
|
|
630
|
-
o--, h += i[s++] << d, d += 8;
|
|
631
|
-
}
|
|
632
|
-
t.adler = a.check = Ne(h), h = 0, d = 0, a.mode = Ue;
|
|
633
|
-
case Ue:
|
|
634
|
-
if (0 === a.havedict)
|
|
635
|
-
return t.next_out = r, t.avail_out = l, t.next_in = s, t.avail_in = o, a.hold = h, a.bits = d, ye;
|
|
636
|
-
t.adler = a.check = 1, a.mode = Se;
|
|
637
|
-
case Se: if (e === ge || e === pe)
|
|
638
|
-
break t;
|
|
639
|
-
case De:
|
|
640
|
-
if (a.last) {
|
|
641
|
-
h >>>= 7 & d, d -= 7 & d, a.mode = Fe;
|
|
642
|
-
break;
|
|
643
|
-
}
|
|
644
|
-
for (; d < 3;) {
|
|
645
|
-
if (0 === o)
|
|
646
|
-
break t;
|
|
647
|
-
o--, h += i[s++] << d, d += 8;
|
|
648
|
-
}
|
|
649
|
-
switch (a.last = 1 & h, h >>>= 1, d -= 1, 3 & h) {
|
|
650
|
-
case 0:
|
|
651
|
-
a.mode = 16193;
|
|
652
|
-
break;
|
|
653
|
-
case 1:
|
|
654
|
-
if (Xe(a), a.mode = Oe, e === pe) {
|
|
655
|
-
h >>>= 2, d -= 2;
|
|
656
|
-
break t;
|
|
657
|
-
}
|
|
658
|
-
break;
|
|
659
|
-
case 2:
|
|
660
|
-
a.mode = 16196;
|
|
661
|
-
break;
|
|
662
|
-
case 3: t.msg = "invalid block type", a.mode = Le;
|
|
663
|
-
}
|
|
664
|
-
h >>>= 2, d -= 2;
|
|
665
|
-
break;
|
|
666
|
-
case 16193:
|
|
667
|
-
for (h >>>= 7 & d, d -= 7 & d; d < 32;) {
|
|
668
|
-
if (0 === o)
|
|
669
|
-
break t;
|
|
670
|
-
o--, h += i[s++] << d, d += 8;
|
|
671
|
-
}
|
|
672
|
-
if ((65535 & h) != (h >>> 16 ^ 65535)) {
|
|
673
|
-
t.msg = "invalid stored block lengths", a.mode = Le;
|
|
674
|
-
break;
|
|
675
|
-
}
|
|
676
|
-
if (a.length = 65535 & h, h = 0, d = 0, a.mode = Te, e === pe)
|
|
677
|
-
break t;
|
|
678
|
-
case Te: a.mode = 16195;
|
|
679
|
-
case 16195:
|
|
680
|
-
if (c = a.length, c) {
|
|
681
|
-
if (c > o && (c = o), c > l && (c = l), 0 === c)
|
|
682
|
-
break t;
|
|
683
|
-
n.set(i.subarray(s, s + c), r), o -= c, s += c, l -= c, r += c, a.length -= c;
|
|
684
|
-
break;
|
|
685
|
-
}
|
|
686
|
-
a.mode = Se;
|
|
687
|
-
break;
|
|
688
|
-
case 16196:
|
|
689
|
-
for (; d < 14;) {
|
|
690
|
-
if (0 === o)
|
|
691
|
-
break t;
|
|
692
|
-
o--, h += i[s++] << d, d += 8;
|
|
693
|
-
}
|
|
694
|
-
if (a.nlen = 257 + (31 & h), h >>>= 5, d -= 5, a.ndist = 1 + (31 & h), h >>>= 5, d -= 5, a.ncode = 4 + (15 & h), h >>>= 4, d -= 4, a.nlen > 286 || a.ndist > 30) {
|
|
695
|
-
t.msg = "too many length or distance symbols", a.mode = Le;
|
|
696
|
-
break;
|
|
697
|
-
}
|
|
698
|
-
a.have = 0, a.mode = 16197;
|
|
699
|
-
case 16197:
|
|
700
|
-
for (; a.have < a.ncode;) {
|
|
701
|
-
for (; d < 3;) {
|
|
702
|
-
if (0 === o)
|
|
703
|
-
break t;
|
|
704
|
-
o--, h += i[s++] << d, d += 8;
|
|
705
|
-
}
|
|
706
|
-
a.lens[Z[a.have++]] = 7 & h, h >>>= 3, d -= 3;
|
|
707
|
-
}
|
|
708
|
-
for (; a.have < 19;)
|
|
709
|
-
a.lens[Z[a.have++]] = 0;
|
|
710
|
-
if (a.lencode = a.lendyn, a.lenbits = 7, E = { bits: a.lenbits }, x = me(0, a.lens, 0, 19, a.lencode, 0, a.work, E), a.lenbits = E.bits, x) {
|
|
711
|
-
t.msg = "invalid code lengths set", a.mode = Le;
|
|
712
|
-
break;
|
|
713
|
-
}
|
|
714
|
-
a.have = 0, a.mode = 16198;
|
|
715
|
-
case 16198:
|
|
716
|
-
for (; a.have < a.nlen + a.ndist;) {
|
|
717
|
-
for (; z = a.lencode[h & (1 << a.lenbits) - 1], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(m <= d);) {
|
|
718
|
-
if (0 === o)
|
|
719
|
-
break t;
|
|
720
|
-
o--, h += i[s++] << d, d += 8;
|
|
721
|
-
}
|
|
722
|
-
if (g < 16)
|
|
723
|
-
h >>>= m, d -= m, a.lens[a.have++] = g;
|
|
724
|
-
else {
|
|
725
|
-
if (16 === g) {
|
|
726
|
-
for (R = m + 2; d < R;) {
|
|
727
|
-
if (0 === o)
|
|
728
|
-
break t;
|
|
729
|
-
o--, h += i[s++] << d, d += 8;
|
|
730
|
-
}
|
|
731
|
-
if (h >>>= m, d -= m, 0 === a.have) {
|
|
732
|
-
t.msg = "invalid bit length repeat", a.mode = Le;
|
|
733
|
-
break;
|
|
734
|
-
}
|
|
735
|
-
y = a.lens[a.have - 1], c = 3 + (3 & h), h >>>= 2, d -= 2;
|
|
736
|
-
}
|
|
737
|
-
else if (17 === g) {
|
|
738
|
-
for (R = m + 3; d < R;) {
|
|
739
|
-
if (0 === o)
|
|
740
|
-
break t;
|
|
741
|
-
o--, h += i[s++] << d, d += 8;
|
|
742
|
-
}
|
|
743
|
-
h >>>= m, d -= m, y = 0, c = 3 + (7 & h), h >>>= 3, d -= 3;
|
|
744
|
-
}
|
|
745
|
-
else {
|
|
746
|
-
for (R = m + 7; d < R;) {
|
|
747
|
-
if (0 === o)
|
|
748
|
-
break t;
|
|
749
|
-
o--, h += i[s++] << d, d += 8;
|
|
750
|
-
}
|
|
751
|
-
h >>>= m, d -= m, y = 0, c = 11 + (127 & h), h >>>= 7, d -= 7;
|
|
752
|
-
}
|
|
753
|
-
if (a.have + c > a.nlen + a.ndist) {
|
|
754
|
-
t.msg = "invalid bit length repeat", a.mode = Le;
|
|
755
|
-
break;
|
|
756
|
-
}
|
|
757
|
-
for (; c--;)
|
|
758
|
-
a.lens[a.have++] = y;
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
if (a.mode === Le)
|
|
762
|
-
break;
|
|
763
|
-
if (0 === a.lens[256]) {
|
|
764
|
-
t.msg = "invalid code -- missing end-of-block", a.mode = Le;
|
|
765
|
-
break;
|
|
766
|
-
}
|
|
767
|
-
if (a.lenbits = 9, E = { bits: a.lenbits }, x = me(1, a.lens, 0, a.nlen, a.lencode, 0, a.work, E), a.lenbits = E.bits, x) {
|
|
768
|
-
t.msg = "invalid literal/lengths set", a.mode = Le;
|
|
769
|
-
break;
|
|
770
|
-
}
|
|
771
|
-
if (a.distbits = 6, a.distcode = a.distdyn, E = { bits: a.distbits }, x = me(2, a.lens, a.nlen, a.ndist, a.distcode, 0, a.work, E), a.distbits = E.bits, x) {
|
|
772
|
-
t.msg = "invalid distances set", a.mode = Le;
|
|
773
|
-
break;
|
|
774
|
-
}
|
|
775
|
-
if (a.mode = Oe, e === pe)
|
|
776
|
-
break t;
|
|
777
|
-
case Oe: a.mode = Ie;
|
|
778
|
-
case Ie:
|
|
779
|
-
if (o >= 6 && l >= 258) {
|
|
780
|
-
t.next_out = r, t.avail_out = l, t.next_in = s, t.avail_in = o, a.hold = h, a.bits = d, de(t, f), r = t.next_out, n = t.output, l = t.avail_out, s = t.next_in, i = t.input, o = t.avail_in, h = a.hold, d = a.bits, a.mode === Se && (a.back = -1);
|
|
781
|
-
break;
|
|
782
|
-
}
|
|
783
|
-
for (a.back = 0; z = a.lencode[h & (1 << a.lenbits) - 1], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(m <= d);) {
|
|
784
|
-
if (0 === o)
|
|
785
|
-
break t;
|
|
786
|
-
o--, h += i[s++] << d, d += 8;
|
|
787
|
-
}
|
|
788
|
-
if (b && 0 == (240 & b)) {
|
|
789
|
-
for (p = m, k = b, v = g; z = a.lencode[v + ((h & (1 << p + k) - 1) >> p)], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(p + m <= d);) {
|
|
790
|
-
if (0 === o)
|
|
791
|
-
break t;
|
|
792
|
-
o--, h += i[s++] << d, d += 8;
|
|
793
|
-
}
|
|
794
|
-
h >>>= p, d -= p, a.back += p;
|
|
795
|
-
}
|
|
796
|
-
if (h >>>= m, d -= m, a.back += m, a.length = g, 0 === b) {
|
|
797
|
-
a.mode = 16205;
|
|
798
|
-
break;
|
|
799
|
-
}
|
|
800
|
-
if (32 & b) {
|
|
801
|
-
a.back = -1, a.mode = Se;
|
|
802
|
-
break;
|
|
803
|
-
}
|
|
804
|
-
if (64 & b) {
|
|
805
|
-
t.msg = "invalid literal/length code", a.mode = Le;
|
|
806
|
-
break;
|
|
807
|
-
}
|
|
808
|
-
a.extra = 15 & b, a.mode = 16201;
|
|
809
|
-
case 16201:
|
|
810
|
-
if (a.extra) {
|
|
811
|
-
for (R = a.extra; d < R;) {
|
|
812
|
-
if (0 === o)
|
|
813
|
-
break t;
|
|
814
|
-
o--, h += i[s++] << d, d += 8;
|
|
815
|
-
}
|
|
816
|
-
a.length += h & (1 << a.extra) - 1, h >>>= a.extra, d -= a.extra, a.back += a.extra;
|
|
817
|
-
}
|
|
818
|
-
a.was = a.length, a.mode = 16202;
|
|
819
|
-
case 16202:
|
|
820
|
-
for (; z = a.distcode[h & (1 << a.distbits) - 1], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(m <= d);) {
|
|
821
|
-
if (0 === o)
|
|
822
|
-
break t;
|
|
823
|
-
o--, h += i[s++] << d, d += 8;
|
|
824
|
-
}
|
|
825
|
-
if (0 == (240 & b)) {
|
|
826
|
-
for (p = m, k = b, v = g; z = a.distcode[v + ((h & (1 << p + k) - 1) >> p)], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(p + m <= d);) {
|
|
827
|
-
if (0 === o)
|
|
828
|
-
break t;
|
|
829
|
-
o--, h += i[s++] << d, d += 8;
|
|
830
|
-
}
|
|
831
|
-
h >>>= p, d -= p, a.back += p;
|
|
832
|
-
}
|
|
833
|
-
if (h >>>= m, d -= m, a.back += m, 64 & b) {
|
|
834
|
-
t.msg = "invalid distance code", a.mode = Le;
|
|
835
|
-
break;
|
|
836
|
-
}
|
|
837
|
-
a.offset = g, a.extra = 15 & b, a.mode = 16203;
|
|
838
|
-
case 16203:
|
|
839
|
-
if (a.extra) {
|
|
840
|
-
for (R = a.extra; d < R;) {
|
|
841
|
-
if (0 === o)
|
|
842
|
-
break t;
|
|
843
|
-
o--, h += i[s++] << d, d += 8;
|
|
844
|
-
}
|
|
845
|
-
a.offset += h & (1 << a.extra) - 1, h >>>= a.extra, d -= a.extra, a.back += a.extra;
|
|
846
|
-
}
|
|
847
|
-
if (a.offset > a.dmax) {
|
|
848
|
-
t.msg = "invalid distance too far back", a.mode = Le;
|
|
849
|
-
break;
|
|
850
|
-
}
|
|
851
|
-
a.mode = 16204;
|
|
852
|
-
case 16204:
|
|
853
|
-
if (0 === l)
|
|
854
|
-
break t;
|
|
855
|
-
if (c = f - l, a.offset > c) {
|
|
856
|
-
if (c = a.offset - c, c > a.whave && a.sane) {
|
|
857
|
-
t.msg = "invalid distance too far back", a.mode = Le;
|
|
858
|
-
break;
|
|
859
|
-
}
|
|
860
|
-
c > a.wnext ? (c -= a.wnext, u = a.wsize - c) : u = a.wnext - c, c > a.length && (c = a.length), w = a.window;
|
|
861
|
-
}
|
|
862
|
-
else
|
|
863
|
-
w = n, u = r - a.offset, c = a.length;
|
|
864
|
-
c > l && (c = l), l -= c, a.length -= c;
|
|
865
|
-
do {
|
|
866
|
-
n[r++] = w[u++];
|
|
867
|
-
} while (--c);
|
|
868
|
-
0 === a.length && (a.mode = Ie);
|
|
869
|
-
break;
|
|
870
|
-
case 16205:
|
|
871
|
-
if (0 === l)
|
|
872
|
-
break t;
|
|
873
|
-
n[r++] = a.length, l--, a.mode = Ie;
|
|
874
|
-
break;
|
|
875
|
-
case Fe:
|
|
876
|
-
if (a.wrap) {
|
|
877
|
-
for (; d < 32;) {
|
|
878
|
-
if (0 === o)
|
|
879
|
-
break t;
|
|
880
|
-
o--, h |= i[s++] << d, d += 8;
|
|
881
|
-
}
|
|
882
|
-
if (f -= l, t.total_out += f, a.total += f, 4 & a.wrap && f && (t.adler = a.check = a.flags ? H(a.check, n, f, r - f) : C(a.check, n, f, r - f)), f = l, 4 & a.wrap && (a.flags ? h : Ne(h)) !== a.check) {
|
|
883
|
-
t.msg = "incorrect data check", a.mode = Le;
|
|
884
|
-
break;
|
|
885
|
-
}
|
|
886
|
-
h = 0, d = 0;
|
|
887
|
-
}
|
|
888
|
-
a.mode = 16207;
|
|
889
|
-
case 16207:
|
|
890
|
-
if (a.wrap && a.flags) {
|
|
891
|
-
for (; d < 32;) {
|
|
892
|
-
if (0 === o)
|
|
893
|
-
break t;
|
|
894
|
-
o--, h += i[s++] << d, d += 8;
|
|
895
|
-
}
|
|
896
|
-
if (4 & a.wrap && h !== (4294967295 & a.total)) {
|
|
897
|
-
t.msg = "incorrect length check", a.mode = Le;
|
|
898
|
-
break;
|
|
899
|
-
}
|
|
900
|
-
h = 0, d = 0;
|
|
901
|
-
}
|
|
902
|
-
a.mode = 16208;
|
|
903
|
-
case 16208:
|
|
904
|
-
x = ve;
|
|
905
|
-
break t;
|
|
906
|
-
case Le:
|
|
907
|
-
x = ze;
|
|
908
|
-
break t;
|
|
909
|
-
case 16210: return Ae;
|
|
910
|
-
default: return xe;
|
|
911
|
-
} return t.next_out = r, t.avail_out = l, t.next_in = s, t.avail_in = o, a.hold = h, a.bits = d, (a.wsize || f !== t.avail_out && a.mode < Le && (a.mode < Fe || e !== be)) && We(t, t.output, t.next_out, f - t.avail_out), _ -= t.avail_in, f -= t.avail_out, t.total_in += _, t.total_out += f, a.total += f, 4 & a.wrap && f && (t.adler = a.check = a.flags ? H(a.check, n, f, t.next_out - f) : C(a.check, n, f, t.next_out - f)), t.data_type = a.bits + (a.last ? 64 : 0) + (a.mode === Se ? 128 : 0) + (a.mode === Oe || a.mode === Te ? 256 : 0), (0 === _ && 0 === f || e === be) && x === ke && (x = Ee), x; }, inflateEnd: t => { if (Ce(t))
|
|
912
|
-
return xe; let e = t.state; return e.window && (e.window = null), t.state = null, ke; }, inflateGetHeader: (t, e) => { if (Ce(t))
|
|
913
|
-
return xe; const a = t.state; return 0 == (2 & a.wrap) ? xe : (a.head = e, e.done = !1, ke); }, inflateSetDictionary: (t, e) => { const a = e.length; let i, n, s; return Ce(t) ? xe : (i = t.state, 0 !== i.wrap && i.mode !== Ue ? xe : i.mode === Ue && (n = 1, n = C(n, e, a, 0), n !== i.check) ? ze : (s = We(t, e, a, a), s ? (i.mode = 16210, Ae) : (i.havedict = 1, ke))); }, inflateInfo: "pako inflate (from Nodeca project)" };
|
|
914
|
-
var Je = 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; };
|
|
915
|
-
const Qe = Object.prototype.toString, { Z_NO_FLUSH: Ve, Z_FINISH: $e, Z_OK: ta, Z_STREAM_END: ea, Z_NEED_DICT: aa, Z_STREAM_ERROR: ia, Z_DATA_ERROR: na, Z_MEM_ERROR: sa } = K;
|
|
916
|
-
function ra(t) { this.options = jt({ chunkSize: 65536, windowBits: 15, to: "" }, t || {}); const e = this.options; e.raw && e.windowBits >= 0 && e.windowBits < 16 && (e.windowBits = -e.windowBits, 0 === e.windowBits && (e.windowBits = -15)), !(e.windowBits >= 0 && e.windowBits < 16) || t && t.windowBits || (e.windowBits += 32), e.windowBits > 15 && e.windowBits < 48 && 0 == (15 & e.windowBits) && (e.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new qt, this.strm.avail_out = 0; let a = qe.inflateInit2(this.strm, e.windowBits); if (a !== ta)
|
|
917
|
-
throw new Error(j[a]); if (this.header = new Je, qe.inflateGetHeader(this.strm, this.header), e.dictionary && ("string" == typeof e.dictionary ? e.dictionary = Gt(e.dictionary) : "[object ArrayBuffer]" === Qe.call(e.dictionary) && (e.dictionary = new Uint8Array(e.dictionary)), e.raw && (a = qe.inflateSetDictionary(this.strm, e.dictionary), a !== ta)))
|
|
918
|
-
throw new Error(j[a]); }
|
|
919
|
-
function oa(t, e) { const a = new ra(e); if (a.push(t), a.err)
|
|
920
|
-
throw a.msg || j[a.err]; return a.result; }
|
|
921
|
-
ra.prototype.push = function (t, e) { const a = this.strm, i = this.options.chunkSize, n = this.options.dictionary; let s, r, o; if (this.ended)
|
|
922
|
-
return !1; for (r = e === ~~e ? e : !0 === e ? $e : Ve, "[object ArrayBuffer]" === Qe.call(t) ? a.input = new Uint8Array(t) : a.input = t, a.next_in = 0, a.avail_in = a.input.length;;) {
|
|
923
|
-
for (0 === a.avail_out && (a.output = new Uint8Array(i), a.next_out = 0, a.avail_out = i), s = qe.inflate(a, r), s === aa && n && (s = qe.inflateSetDictionary(a, n), s === ta ? s = qe.inflate(a, r) : s === na && (s = aa)); a.avail_in > 0 && s === ea && a.state.wrap > 0 && 0 !== t[a.next_in];)
|
|
924
|
-
qe.inflateReset(a), s = qe.inflate(a, r);
|
|
925
|
-
switch (s) {
|
|
926
|
-
case ia:
|
|
927
|
-
case na:
|
|
928
|
-
case aa:
|
|
929
|
-
case sa: return this.onEnd(s), this.ended = !0, !1;
|
|
930
|
-
}
|
|
931
|
-
if (o = a.avail_out, a.next_out && (0 === a.avail_out || s === ea))
|
|
932
|
-
if ("string" === this.options.to) {
|
|
933
|
-
let t = Wt(a.output, a.next_out), e = a.next_out - t, n = Xt(a.output, t);
|
|
934
|
-
a.next_out = e, a.avail_out = i - e, e && a.output.set(a.output.subarray(t, t + e), 0), this.onData(n);
|
|
935
|
-
}
|
|
936
|
-
else
|
|
937
|
-
this.onData(a.output.length === a.next_out ? a.output : a.output.subarray(0, a.next_out));
|
|
938
|
-
if (s !== ta || 0 !== o) {
|
|
939
|
-
if (s === ea)
|
|
940
|
-
return s = qe.inflateEnd(this.strm), this.onEnd(s), this.ended = !0, !0;
|
|
941
|
-
if (0 === a.avail_in)
|
|
942
|
-
break;
|
|
943
|
-
}
|
|
944
|
-
} return !0; }, ra.prototype.onData = function (t) { this.chunks.push(t); }, ra.prototype.onEnd = function (t) { t === ta && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = Kt(this.chunks)), this.chunks = [], this.err = t, this.msg = this.strm.msg; };
|
|
945
|
-
var la = { Inflate: ra, inflate: oa, inflateRaw: function (t, e) { return (e = e || {}).raw = !0, oa(t, e); }, ungzip: oa, constants: K };
|
|
946
|
-
const { Deflate: ha, deflate: da, deflateRaw: _a, gzip: fa } = le, { Inflate: ca, inflate: ua, inflateRaw: wa, ungzip: ma } = la;
|
|
947
|
-
var ba = ha, ga = da, pa = _a, ka = fa, va = ca, ya = ua, xa = wa, za = ma, Aa = K, Ea = { Deflate: ba, deflate: ga, deflateRaw: pa, gzip: ka, Inflate: va, inflate: ya, inflateRaw: xa, ungzip: za, constants: Aa };
|
|
948
|
-
t.Deflate = ba, t.Inflate = va, t.constants = Aa, t.default = Ea, t.deflate = ga, t.deflateRaw = pa, t.gzip = ka, t.inflate = ya, t.inflateRaw = xa, t.ungzip = za, Object.defineProperty(t, "__esModule", { value: !0 });
|
|
949
|
-
}));
|
|
950
|
-
// Imports.
|
|
951
|
-
import { Utils } from "./utils.js";
|
|
952
|
-
export const Compression = {
|
|
953
|
-
// Compress.
|
|
954
|
-
/* @docs:
|
|
955
|
-
@nav: Frontend
|
|
956
|
-
@chapter: Compression
|
|
957
|
-
@title: Compress
|
|
958
|
-
@desc: Compress data.
|
|
959
|
-
@param:
|
|
960
|
-
@name: data
|
|
961
|
-
@description The data to compress.
|
|
962
|
-
@param:
|
|
963
|
-
@name: options
|
|
964
|
-
@description The pako gzip options.
|
|
965
|
-
*/
|
|
966
|
-
compress(data, options = { level: 9 }) {
|
|
967
|
-
if (Utils.is_array(data) || Utils.is_obj(data)) {
|
|
968
|
-
data = JSON.stringify(data);
|
|
969
|
-
}
|
|
970
|
-
return pako.gzip(data, options);
|
|
971
|
-
},
|
|
972
|
-
// Decompress.
|
|
973
|
-
// Valid types are: [string, array, object].
|
|
974
|
-
/* @docs:
|
|
975
|
-
@nav: Frontend
|
|
976
|
-
@chapter: Compression
|
|
977
|
-
@title: Decompress
|
|
978
|
-
@desc: Decompress data.
|
|
979
|
-
@param:
|
|
980
|
-
@name: data
|
|
981
|
-
@description The data to decompress.
|
|
982
|
-
@param:
|
|
983
|
-
@name: type
|
|
984
|
-
@description The output data data
|
|
985
|
-
@enum:
|
|
986
|
-
@value: "string"
|
|
987
|
-
@enum:
|
|
988
|
-
@value: "array"
|
|
989
|
-
@enum:
|
|
990
|
-
@value: "object"
|
|
991
|
-
*/
|
|
992
|
-
decompress(data, type = "string") {
|
|
993
|
-
let decompressed = pako.ungzip(data, { to: 'string' });
|
|
994
|
-
if (type === "array" || type === "object") {
|
|
995
|
-
return JSON.parse(decompressed);
|
|
996
|
-
}
|
|
997
|
-
return decompressed;
|
|
998
|
-
},
|
|
999
|
-
};
|