@feedmepos/mf-menu 0.31.17-dev → 0.31.17

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.
Files changed (67) hide show
  1. package/dist/{App-Bi92tsdR.js → App-C0zWv8Bb.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C3rIskDF.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BlBfa-ly.js} +2 -2
  3. package/dist/{Catalog-d_9KGaWO.js → Catalog-hTR0c1zS.js} +18 -18
  4. package/dist/{Category-DCjOc3ks.js → Category-BTpAWhsI.js} +36 -36
  5. package/dist/{Category-BO0EYYGP.js → Category-CxDoeXi_.js} +24 -24
  6. package/dist/{CookingGuide-B3YHoKP-.js → CookingGuide-C87lhZ67.js} +56 -56
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B454jEg0.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BEKiJBLy.js} +1 -1
  8. package/dist/{Group-BTmRo5b4.js → Group-D1kUgRjF.js} +3 -3
  9. package/dist/{Group-Cj39szTY.js → Group-Dad3CsPD.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-CIZithwK.js → Group.vue_vue_type_script_setup_true_lang-C-AS_gUD.js} +54 -54
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DubOzDU3.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dz9BUoZe.js} +6 -6
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C2TnjKpu.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BfZuETkY.js} +317 -317
  13. package/dist/{Ingredient-BTV0a-Tz.js → Ingredient-CL0V9EvP.js} +52 -52
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C7X1K-jY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BFTt-8OI.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-Cyb0Eex4.js → LinkProductSideSheet-CWMNlFCF.js} +14 -14
  16. package/dist/{MenuSetting-DozrYwzG.js → MenuSetting-DA35bTTq.js} +11 -11
  17. package/dist/{PrintRoute-B2kOXN6N.js → PrintRoute-B49FDrP6.js} +26 -26
  18. package/dist/{Product-DCqWb9i2.js → Product-CBGfSsYA.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DFaQiLsv.js → Product.vue_vue_type_script_setup_true_lang-B3kyqD2S.js} +113 -113
  20. package/dist/ProductInternalTools-DiISILIn.js +415 -0
  21. package/dist/Products-BDvqmjZI.js +270 -0
  22. package/dist/{Publish-BzreviuZ.js → Publish-1zBRSD7U.js} +37 -37
  23. package/dist/{Recipe-BgJFJ4Dx.js → Recipe-D0VAcSN-.js} +25 -25
  24. package/dist/{Scheduler-Xp0G2vel.js → Scheduler-8BDLlHCV.js} +13 -13
  25. package/dist/{ServingSequence-CzA1hyup.js → ServingSequence-Bh3DhN3i.js} +36 -36
  26. package/dist/{Setting-DAkorx7V.js → Setting-BdSJCn6q.js} +24 -24
  27. package/dist/{Subcategory-BCbM_yd4.js → Subcategory-CBfEsTKy.js} +39 -39
  28. package/dist/{Takeaway-DKpjh1Ij.js → Takeaway-WPQ-ow5H.js} +1 -1
  29. package/dist/{Takeaway-DtnIyLkz.js → Takeaway-aLJ1QKbm.js} +12 -12
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-PAB0AAfO.js → Takeaway.vue_vue_type_script_setup_true_lang-ZYP7hH6p.js} +25 -25
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CDABZaRa.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-aHMZigPA.js} +116 -116
  32. package/dist/{Unit-Da9V4qF7.js → Unit-Csan3-PW.js} +8 -8
  33. package/dist/{Variant-ONSE3GDp.js → Variant-aYCqqz9A.js} +18 -18
  34. package/dist/{_id_-Dlu5oAk9.js → _id_-BL-Q5Nck.js} +19 -19
  35. package/dist/{app-nWiUbcbv.js → app-CV3Y87bf.js} +262 -247
  36. package/dist/{app-BNF756eJ.js → app-CngqdPlx.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/app.d.ts +12 -0
  39. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUpdatePreview.vue.d.ts +33 -0
  40. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUploadDialog.vue.d.ts +28 -0
  41. package/dist/apps/mf-menu/src/utils/batchProcessor.d.ts +33 -0
  42. package/dist/apps/mf-menu/src/utils/images.d.ts +44 -0
  43. package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
  44. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/assets/{linked-status-C195HQ8m.js → linked-status-CQPFAl1J.js} +2 -2
  46. package/dist/assets/{override-menu-AQwvxLhn.js → override-menu-DP9T_24q.js} +2 -2
  47. package/dist/assets/{validate-menu-BvGiRNmy.js → validate-menu-CcOso72D.js} +2 -2
  48. package/dist/{catalog-DJDsoY-2.js → catalog-ClQJMV9X.js} +1 -1
  49. package/dist/{catalogSetting-C8FvJ4OQ.js → catalogSetting-CXeRg55T.js} +1 -1
  50. package/dist/{category-Bf-qn7ic.js → category-_lR1fIWU.js} +1 -1
  51. package/dist/{currency-DMhhoVtl.js → currency-x_SA4GNt.js} +1 -1
  52. package/dist/{dayjs.min-BN8QQck7.js → dayjs.min-JzYVBtTX.js} +1 -1
  53. package/dist/{index-BWXnodS5.js → index-BaLeGLHZ.js} +23 -23
  54. package/dist/{index-DIDVppoP.js → index-Cb7zxMMe.js} +1 -1
  55. package/dist/{index-DWIFeRdA.js → index-Cjo_VHIT.js} +14 -14
  56. package/dist/{item-2jMu-J2m.js → item-E-Egz6v8.js} +1747 -1711
  57. package/dist/jszip.min-8UVTn3ZT.js +2393 -0
  58. package/dist/{menu-Dk9WJ37H.js → menu-CrEs_Qy-.js} +1 -1
  59. package/dist/{menu-CAzTKH28.js → menu-DYMiA6Oc.js} +156 -156
  60. package/dist/mf-menu.css +1 -1
  61. package/dist/{priceTier-BtHmZYAn.js → priceTier-Bs3jL4nk.js} +1 -1
  62. package/dist/{scheduler-R20M5JrX.js → scheduler-DxMNHPSa.js} +3 -3
  63. package/dist/{subcategory-CyDndVTK.js → subcategory-h4VL-0kK.js} +63 -63
  64. package/dist/{toExcel-DjH_qdTv.js → toExcel-DRJ3j3P7.js} +2 -2
  65. package/dist/{unit-BA6MtbAH.js → unit-D4v2m10X.js} +24 -24
  66. package/package.json +1 -1
  67. package/dist/Products-CybC3HCA.js +0 -2656
@@ -1,2656 +0,0 @@
1
- import { defineComponent as Pe, computed as ye, ref as Je, resolveComponent as Ce, createBlock as Ee, openBlock as be, unref as re, withCtx as ve, createElementVNode as me, toDisplayString as Qe, createVNode as de, createCommentVNode as et, createElementBlock as je, Fragment as He } from "vue";
2
- import { D as Re } from "./dayjs.min-BN8QQck7.js";
3
- import { u as lt, a as dt, M as ct, w as ht } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-C2TnjKpu.js";
4
- import { B as we, D as ze, g as ft, u as tt, G as rt, z as Ge, H as We, I as nt, A as pt, J as Ze, K as Ve } from "./menu-CAzTKH28.js";
5
- import { useCoreStore as _t, useI18n as mt } from "@feedmepos/mf-common";
6
- import { useDialog as it, useDialogChild as gt, useSnackbar as at, useBreakpoints as vt, FmButtonVariant as Ne, FmButtonColorThemeVariant as xe } from "@feedmepos/ui-library";
7
- import { _ as Ue } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
8
- import { _ as bt, a as Ye } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
9
- import { _ as yt } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
10
- import { u as wt, a as kt } from "./menu-Dk9WJ37H.js";
11
- import { u as Et } from "./item-2jMu-J2m.js";
12
- import { _ as Ke, a as xt } from "./Product.vue_vue_type_script_setup_true_lang-DFaQiLsv.js";
13
- import { L as Xe } from "./LinkProductSideSheet-Cyb0Eex4.js";
14
- import { _ as St } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CDABZaRa.js";
15
- import { m as At } from "./toExcel-DjH_qdTv.js";
16
- var De = { exports: {} }, It = De.exports, $e;
17
- function Rt() {
18
- return $e || ($e = 1, function(ke, oe) {
19
- (function(fe, m) {
20
- m();
21
- })(It, function() {
22
- function fe(a, p) {
23
- return typeof p > "u" ? p = { autoBom: !1 } : typeof p != "object" && (console.warn("Deprecated: Expected third argument to be a object"), p = { autoBom: !p }), p.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type) ? new Blob(["\uFEFF", a], { type: a.type }) : a;
24
- }
25
- function m(a, p, v) {
26
- var f = new XMLHttpRequest();
27
- f.open("GET", a), f.responseType = "blob", f.onload = function() {
28
- n(f.response, p, v);
29
- }, f.onerror = function() {
30
- console.error("could not download file");
31
- }, f.send();
32
- }
33
- function N(a) {
34
- var p = new XMLHttpRequest();
35
- p.open("HEAD", a, !1);
36
- try {
37
- p.send();
38
- } catch {
39
- }
40
- return 200 <= p.status && 299 >= p.status;
41
- }
42
- function w(a) {
43
- try {
44
- a.dispatchEvent(new MouseEvent("click"));
45
- } catch {
46
- var p = document.createEvent("MouseEvents");
47
- p.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), a.dispatchEvent(p);
48
- }
49
- }
50
- var d = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof we == "object" && we.global === we ? we : void 0, u = d.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), n = d.saveAs || (typeof window != "object" || window !== d ? function() {
51
- } : "download" in HTMLAnchorElement.prototype && !u ? function(a, p, v) {
52
- var f = d.URL || d.webkitURL, g = document.createElement("a");
53
- p = p || a.name || "download", g.download = p, g.rel = "noopener", typeof a == "string" ? (g.href = a, g.origin === location.origin ? w(g) : N(g.href) ? m(a, p, v) : w(g, g.target = "_blank")) : (g.href = f.createObjectURL(a), setTimeout(function() {
54
- f.revokeObjectURL(g.href);
55
- }, 4e4), setTimeout(function() {
56
- w(g);
57
- }, 0));
58
- } : "msSaveOrOpenBlob" in navigator ? function(a, p, v) {
59
- if (p = p || a.name || "download", typeof a != "string") navigator.msSaveOrOpenBlob(fe(a, v), p);
60
- else if (N(a)) m(a, p, v);
61
- else {
62
- var f = document.createElement("a");
63
- f.href = a, f.target = "_blank", setTimeout(function() {
64
- w(f);
65
- });
66
- }
67
- } : function(a, p, v, f) {
68
- if (f = f || open("", "_blank"), f && (f.document.title = f.document.body.innerText = "downloading..."), typeof a == "string") return m(a, p, v);
69
- var g = a.type === "application/octet-stream", i = /constructor/i.test(d.HTMLElement) || d.safari, _ = /CriOS\/[\d]+/.test(navigator.userAgent);
70
- if ((_ || g && i || u) && typeof FileReader < "u") {
71
- var r = new FileReader();
72
- r.onloadend = function() {
73
- var c = r.result;
74
- c = _ ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), f ? f.location.href = c : location = c, f = null;
75
- }, r.readAsDataURL(a);
76
- } else {
77
- var o = d.URL || d.webkitURL, s = o.createObjectURL(a);
78
- f ? f.location = s : location.href = s, f = null, setTimeout(function() {
79
- o.revokeObjectURL(s);
80
- }, 4e4);
81
- }
82
- });
83
- d.saveAs = n.saveAs = n, ke.exports = n;
84
- });
85
- }(De)), De.exports;
86
- }
87
- var Ct = Rt(), Fe = { exports: {} }, qe;
88
- function Tt() {
89
- return qe || (qe = 1, function(ke, oe) {
90
- var fe = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_257e2bd5-dec5-41e0-beaf-938823716f2f", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_257e2bd5-dec5-41e0-beaf-938823716f2f", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-0.7.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-8.14.3", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1751", npm_package_dependencies__feedmepos_ui_library: "1.7.0", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250728.1.0", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.11/x64", JOURNAL_STREAM: "9:9921", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.5/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "16766880419", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "917842efc4ee88911bbdaf32c10960ac8415ba9b", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.2.4", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_4cb86265-cfe8-442c-b14d-cdb1ad298bc4", INVOCATION_ID: "9e0b1d328c4544738cf07b98bd15ece9", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "385", GITHUB_TRIGGERING_ACTOR: "victorchai", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000010687", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.19", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.17-dev", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "917842efc4ee88911bbdaf32c10960ac8415ba9b", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_257e2bd5-dec5-41e0-beaf-938823716f2f", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "49786844", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_257e2bd5-dec5-41e0-beaf-938823716f2f", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.5.26", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_257e2bd5-dec5-41e0-beaf-938823716f2f", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
91
- /*!
92
-
93
- JSZip v3.10.1 - A JavaScript class for generating and reading zip files
94
- <http://stuartk.com/jszip>
95
-
96
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
97
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
98
-
99
- JSZip uses the library pako released under the MIT license :
100
- https://github.com/nodeca/pako/blob/main/LICENSE
101
- */
102
- (function(m) {
103
- ke.exports = m();
104
- })(function() {
105
- return function m(N, w, d) {
106
- function u(p, v) {
107
- if (!w[p]) {
108
- if (!N[p]) {
109
- var f = typeof ze == "function" && ze;
110
- if (!v && f) return f(p, !0);
111
- if (n) return n(p, !0);
112
- var g = new Error("Cannot find module '" + p + "'");
113
- throw g.code = "MODULE_NOT_FOUND", g;
114
- }
115
- var i = w[p] = { exports: {} };
116
- N[p][0].call(i.exports, function(_) {
117
- var r = N[p][1][_];
118
- return u(r || _);
119
- }, i, i.exports, m, N, w, d);
120
- }
121
- return w[p].exports;
122
- }
123
- for (var n = typeof ze == "function" && ze, a = 0; a < d.length; a++) u(d[a]);
124
- return u;
125
- }({ 1: [function(m, N, w) {
126
- var d = m("./utils"), u = m("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
127
- w.encode = function(a) {
128
- for (var p, v, f, g, i, _, r, o = [], s = 0, c = a.length, y = c, x = d.getTypeOf(a) !== "string"; s < a.length; ) y = c - s, f = x ? (p = a[s++], v = s < c ? a[s++] : 0, s < c ? a[s++] : 0) : (p = a.charCodeAt(s++), v = s < c ? a.charCodeAt(s++) : 0, s < c ? a.charCodeAt(s++) : 0), g = p >> 2, i = (3 & p) << 4 | v >> 4, _ = 1 < y ? (15 & v) << 2 | f >> 6 : 64, r = 2 < y ? 63 & f : 64, o.push(n.charAt(g) + n.charAt(i) + n.charAt(_) + n.charAt(r));
129
- return o.join("");
130
- }, w.decode = function(a) {
131
- var p, v, f, g, i, _, r = 0, o = 0, s = "data:";
132
- if (a.substr(0, s.length) === s) throw new Error("Invalid base64 input, it looks like a data url.");
133
- var c, y = 3 * (a = a.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
134
- if (a.charAt(a.length - 1) === n.charAt(64) && y--, a.charAt(a.length - 2) === n.charAt(64) && y--, y % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
135
- for (c = u.uint8array ? new Uint8Array(0 | y) : new Array(0 | y); r < a.length; ) p = n.indexOf(a.charAt(r++)) << 2 | (g = n.indexOf(a.charAt(r++))) >> 4, v = (15 & g) << 4 | (i = n.indexOf(a.charAt(r++))) >> 2, f = (3 & i) << 6 | (_ = n.indexOf(a.charAt(r++))), c[o++] = p, i !== 64 && (c[o++] = v), _ !== 64 && (c[o++] = f);
136
- return c;
137
- };
138
- }, { "./support": 30, "./utils": 32 }], 2: [function(m, N, w) {
139
- var d = m("./external"), u = m("./stream/DataWorker"), n = m("./stream/Crc32Probe"), a = m("./stream/DataLengthProbe");
140
- function p(v, f, g, i, _) {
141
- this.compressedSize = v, this.uncompressedSize = f, this.crc32 = g, this.compression = i, this.compressedContent = _;
142
- }
143
- p.prototype = { getContentWorker: function() {
144
- var v = new u(d.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")), f = this;
145
- return v.on("end", function() {
146
- if (this.streamInfo.data_length !== f.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
147
- }), v;
148
- }, getCompressedWorker: function() {
149
- return new u(d.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
150
- } }, p.createWorkerFrom = function(v, f, g) {
151
- return v.pipe(new n()).pipe(new a("uncompressedSize")).pipe(f.compressWorker(g)).pipe(new a("compressedSize")).withStreamInfo("compression", f);
152
- }, N.exports = p;
153
- }, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(m, N, w) {
154
- var d = m("./stream/GenericWorker");
155
- w.STORE = { magic: "\0\0", compressWorker: function() {
156
- return new d("STORE compression");
157
- }, uncompressWorker: function() {
158
- return new d("STORE decompression");
159
- } }, w.DEFLATE = m("./flate");
160
- }, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(m, N, w) {
161
- var d = m("./utils"), u = function() {
162
- for (var n, a = [], p = 0; p < 256; p++) {
163
- n = p;
164
- for (var v = 0; v < 8; v++) n = 1 & n ? 3988292384 ^ n >>> 1 : n >>> 1;
165
- a[p] = n;
166
- }
167
- return a;
168
- }();
169
- N.exports = function(n, a) {
170
- return n !== void 0 && n.length ? d.getTypeOf(n) !== "string" ? function(p, v, f, g) {
171
- var i = u, _ = g + f;
172
- p ^= -1;
173
- for (var r = g; r < _; r++) p = p >>> 8 ^ i[255 & (p ^ v[r])];
174
- return -1 ^ p;
175
- }(0 | a, n, n.length, 0) : function(p, v, f, g) {
176
- var i = u, _ = g + f;
177
- p ^= -1;
178
- for (var r = g; r < _; r++) p = p >>> 8 ^ i[255 & (p ^ v.charCodeAt(r))];
179
- return -1 ^ p;
180
- }(0 | a, n, n.length, 0) : 0;
181
- };
182
- }, { "./utils": 32 }], 5: [function(m, N, w) {
183
- w.base64 = !1, w.binary = !1, w.dir = !1, w.createFolders = !0, w.date = null, w.compression = null, w.compressionOptions = null, w.comment = null, w.unixPermissions = null, w.dosPermissions = null;
184
- }, {}], 6: [function(m, N, w) {
185
- var d = null;
186
- d = typeof Promise < "u" ? Promise : m("lie"), N.exports = { Promise: d };
187
- }, { lie: 37 }], 7: [function(m, N, w) {
188
- var d = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", u = m("pako"), n = m("./utils"), a = m("./stream/GenericWorker"), p = d ? "uint8array" : "array";
189
- function v(f, g) {
190
- a.call(this, "FlateWorker/" + f), this._pako = null, this._pakoAction = f, this._pakoOptions = g, this.meta = {};
191
- }
192
- w.magic = "\b\0", n.inherits(v, a), v.prototype.processChunk = function(f) {
193
- this.meta = f.meta, this._pako === null && this._createPako(), this._pako.push(n.transformTo(p, f.data), !1);
194
- }, v.prototype.flush = function() {
195
- a.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
196
- }, v.prototype.cleanUp = function() {
197
- a.prototype.cleanUp.call(this), this._pako = null;
198
- }, v.prototype._createPako = function() {
199
- this._pako = new u[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
200
- var f = this;
201
- this._pako.onData = function(g) {
202
- f.push({ data: g, meta: f.meta });
203
- };
204
- }, w.compressWorker = function(f) {
205
- return new v("Deflate", f);
206
- }, w.uncompressWorker = function() {
207
- return new v("Inflate", {});
208
- };
209
- }, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(m, N, w) {
210
- function d(i, _) {
211
- var r, o = "";
212
- for (r = 0; r < _; r++) o += String.fromCharCode(255 & i), i >>>= 8;
213
- return o;
214
- }
215
- function u(i, _, r, o, s, c) {
216
- var y, x, E = i.file, B = i.compression, T = c !== p.utf8encode, L = n.transformTo("string", c(E.name)), C = n.transformTo("string", p.utf8encode(E.name)), H = E.comment, X = n.transformTo("string", c(H)), b = n.transformTo("string", p.utf8encode(H)), O = C.length !== E.name.length, t = b.length !== H.length, D = "", q = "", P = "", J = E.dir, M = E.date, $ = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
217
- _ && !r || ($.crc32 = i.crc32, $.compressedSize = i.compressedSize, $.uncompressedSize = i.uncompressedSize);
218
- var I = 0;
219
- _ && (I |= 8), T || !O && !t || (I |= 2048);
220
- var A = 0, K = 0;
221
- J && (A |= 16), s === "UNIX" ? (K = 798, A |= function(W, ie) {
222
- var le = W;
223
- return W || (le = ie ? 16893 : 33204), (65535 & le) << 16;
224
- }(E.unixPermissions, J)) : (K = 20, A |= function(W) {
225
- return 63 & (W || 0);
226
- }(E.dosPermissions)), y = M.getUTCHours(), y <<= 6, y |= M.getUTCMinutes(), y <<= 5, y |= M.getUTCSeconds() / 2, x = M.getUTCFullYear() - 1980, x <<= 4, x |= M.getUTCMonth() + 1, x <<= 5, x |= M.getUTCDate(), O && (q = d(1, 1) + d(v(L), 4) + C, D += "up" + d(q.length, 2) + q), t && (P = d(1, 1) + d(v(X), 4) + b, D += "uc" + d(P.length, 2) + P);
227
- var Z = "";
228
- return Z += `
229
- \0`, Z += d(I, 2), Z += B.magic, Z += d(y, 2), Z += d(x, 2), Z += d($.crc32, 4), Z += d($.compressedSize, 4), Z += d($.uncompressedSize, 4), Z += d(L.length, 2), Z += d(D.length, 2), { fileRecord: f.LOCAL_FILE_HEADER + Z + L + D, dirRecord: f.CENTRAL_FILE_HEADER + d(K, 2) + Z + d(X.length, 2) + "\0\0\0\0" + d(A, 4) + d(o, 4) + L + D + X };
230
- }
231
- var n = m("../utils"), a = m("../stream/GenericWorker"), p = m("../utf8"), v = m("../crc32"), f = m("../signature");
232
- function g(i, _, r, o) {
233
- a.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = _, this.zipPlatform = r, this.encodeFileName = o, this.streamFiles = i, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
234
- }
235
- n.inherits(g, a), g.prototype.push = function(i) {
236
- var _ = i.meta.percent || 0, r = this.entriesCount, o = this._sources.length;
237
- this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, a.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: r ? (_ + 100 * (r - o - 1)) / r : 100 } }));
238
- }, g.prototype.openedSource = function(i) {
239
- this.currentSourceOffset = this.bytesWritten, this.currentFile = i.file.name;
240
- var _ = this.streamFiles && !i.file.dir;
241
- if (_) {
242
- var r = u(i, _, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
243
- this.push({ data: r.fileRecord, meta: { percent: 0 } });
244
- } else this.accumulate = !0;
245
- }, g.prototype.closedSource = function(i) {
246
- this.accumulate = !1;
247
- var _ = this.streamFiles && !i.file.dir, r = u(i, _, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
248
- if (this.dirRecords.push(r.dirRecord), _) this.push({ data: function(o) {
249
- return f.DATA_DESCRIPTOR + d(o.crc32, 4) + d(o.compressedSize, 4) + d(o.uncompressedSize, 4);
250
- }(i), meta: { percent: 100 } });
251
- else for (this.push({ data: r.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
252
- this.currentFile = null;
253
- }, g.prototype.flush = function() {
254
- for (var i = this.bytesWritten, _ = 0; _ < this.dirRecords.length; _++) this.push({ data: this.dirRecords[_], meta: { percent: 100 } });
255
- var r = this.bytesWritten - i, o = function(s, c, y, x, E) {
256
- var B = n.transformTo("string", E(x));
257
- return f.CENTRAL_DIRECTORY_END + "\0\0\0\0" + d(s, 2) + d(s, 2) + d(c, 4) + d(y, 4) + d(B.length, 2) + B;
258
- }(this.dirRecords.length, r, i, this.zipComment, this.encodeFileName);
259
- this.push({ data: o, meta: { percent: 100 } });
260
- }, g.prototype.prepareNextSource = function() {
261
- this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
262
- }, g.prototype.registerPrevious = function(i) {
263
- this._sources.push(i);
264
- var _ = this;
265
- return i.on("data", function(r) {
266
- _.processChunk(r);
267
- }), i.on("end", function() {
268
- _.closedSource(_.previous.streamInfo), _._sources.length ? _.prepareNextSource() : _.end();
269
- }), i.on("error", function(r) {
270
- _.error(r);
271
- }), this;
272
- }, g.prototype.resume = function() {
273
- return !!a.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
274
- }, g.prototype.error = function(i) {
275
- var _ = this._sources;
276
- if (!a.prototype.error.call(this, i)) return !1;
277
- for (var r = 0; r < _.length; r++) try {
278
- _[r].error(i);
279
- } catch {
280
- }
281
- return !0;
282
- }, g.prototype.lock = function() {
283
- a.prototype.lock.call(this);
284
- for (var i = this._sources, _ = 0; _ < i.length; _++) i[_].lock();
285
- }, N.exports = g;
286
- }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(m, N, w) {
287
- var d = m("../compressions"), u = m("./ZipFileWorker");
288
- w.generateWorker = function(n, a, p) {
289
- var v = new u(a.streamFiles, p, a.platform, a.encodeFileName), f = 0;
290
- try {
291
- n.forEach(function(g, i) {
292
- f++;
293
- var _ = function(c, y) {
294
- var x = c || y, E = d[x];
295
- if (!E) throw new Error(x + " is not a valid compression method !");
296
- return E;
297
- }(i.options.compression, a.compression), r = i.options.compressionOptions || a.compressionOptions || {}, o = i.dir, s = i.date;
298
- i._compressWorker(_, r).withStreamInfo("file", { name: g, dir: o, date: s, comment: i.comment || "", unixPermissions: i.unixPermissions, dosPermissions: i.dosPermissions }).pipe(v);
299
- }), v.entriesCount = f;
300
- } catch (g) {
301
- v.error(g);
302
- }
303
- return v;
304
- };
305
- }, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(m, N, w) {
306
- function d() {
307
- if (!(this instanceof d)) return new d();
308
- if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
309
- this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
310
- var u = new d();
311
- for (var n in this) typeof this[n] != "function" && (u[n] = this[n]);
312
- return u;
313
- };
314
- }
315
- (d.prototype = m("./object")).loadAsync = m("./load"), d.support = m("./support"), d.defaults = m("./defaults"), d.version = "3.10.1", d.loadAsync = function(u, n) {
316
- return new d().loadAsync(u, n);
317
- }, d.external = m("./external"), N.exports = d;
318
- }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(m, N, w) {
319
- var d = m("./utils"), u = m("./external"), n = m("./utf8"), a = m("./zipEntries"), p = m("./stream/Crc32Probe"), v = m("./nodejsUtils");
320
- function f(g) {
321
- return new u.Promise(function(i, _) {
322
- var r = g.decompressed.getContentWorker().pipe(new p());
323
- r.on("error", function(o) {
324
- _(o);
325
- }).on("end", function() {
326
- r.streamInfo.crc32 !== g.decompressed.crc32 ? _(new Error("Corrupted zip : CRC32 mismatch")) : i();
327
- }).resume();
328
- });
329
- }
330
- N.exports = function(g, i) {
331
- var _ = this;
332
- return i = d.extend(i || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), v.isNode && v.isStream(g) ? u.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : d.prepareContent("the loaded zip file", g, !0, i.optimizedBinaryString, i.base64).then(function(r) {
333
- var o = new a(i);
334
- return o.load(r), o;
335
- }).then(function(r) {
336
- var o = [u.Promise.resolve(r)], s = r.files;
337
- if (i.checkCRC32) for (var c = 0; c < s.length; c++) o.push(f(s[c]));
338
- return u.Promise.all(o);
339
- }).then(function(r) {
340
- for (var o = r.shift(), s = o.files, c = 0; c < s.length; c++) {
341
- var y = s[c], x = y.fileNameStr, E = d.resolve(y.fileNameStr);
342
- _.file(E, y.decompressed, { binary: !0, optimizedBinaryString: !0, date: y.date, dir: y.dir, comment: y.fileCommentStr.length ? y.fileCommentStr : null, unixPermissions: y.unixPermissions, dosPermissions: y.dosPermissions, createFolders: i.createFolders }), y.dir || (_.file(E).unsafeOriginalName = x);
343
- }
344
- return o.zipComment.length && (_.comment = o.zipComment), _;
345
- });
346
- };
347
- }, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(m, N, w) {
348
- var d = m("../utils"), u = m("../stream/GenericWorker");
349
- function n(a, p) {
350
- u.call(this, "Nodejs stream input adapter for " + a), this._upstreamEnded = !1, this._bindStream(p);
351
- }
352
- d.inherits(n, u), n.prototype._bindStream = function(a) {
353
- var p = this;
354
- (this._stream = a).pause(), a.on("data", function(v) {
355
- p.push({ data: v, meta: { percent: 0 } });
356
- }).on("error", function(v) {
357
- p.isPaused ? this.generatedError = v : p.error(v);
358
- }).on("end", function() {
359
- p.isPaused ? p._upstreamEnded = !0 : p.end();
360
- });
361
- }, n.prototype.pause = function() {
362
- return !!u.prototype.pause.call(this) && (this._stream.pause(), !0);
363
- }, n.prototype.resume = function() {
364
- return !!u.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
365
- }, N.exports = n;
366
- }, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(m, N, w) {
367
- var d = m("readable-stream").Readable;
368
- function u(n, a, p) {
369
- d.call(this, a), this._helper = n;
370
- var v = this;
371
- n.on("data", function(f, g) {
372
- v.push(f) || v._helper.pause(), p && p(g);
373
- }).on("error", function(f) {
374
- v.emit("error", f);
375
- }).on("end", function() {
376
- v.push(null);
377
- });
378
- }
379
- m("../utils").inherits(u, d), u.prototype._read = function() {
380
- this._helper.resume();
381
- }, N.exports = u;
382
- }, { "../utils": 32, "readable-stream": 16 }], 14: [function(m, N, w) {
383
- N.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(d, u) {
384
- if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(d, u);
385
- if (typeof d == "number") throw new Error('The "data" argument must not be a number');
386
- return new Buffer(d, u);
387
- }, allocBuffer: function(d) {
388
- if (Buffer.alloc) return Buffer.alloc(d);
389
- var u = new Buffer(d);
390
- return u.fill(0), u;
391
- }, isBuffer: function(d) {
392
- return Buffer.isBuffer(d);
393
- }, isStream: function(d) {
394
- return d && typeof d.on == "function" && typeof d.pause == "function" && typeof d.resume == "function";
395
- } };
396
- }, {}], 15: [function(m, N, w) {
397
- function d(E, B, T) {
398
- var L, C = n.getTypeOf(B), H = n.extend(T || {}, v);
399
- H.date = H.date || /* @__PURE__ */ new Date(), H.compression !== null && (H.compression = H.compression.toUpperCase()), typeof H.unixPermissions == "string" && (H.unixPermissions = parseInt(H.unixPermissions, 8)), H.unixPermissions && 16384 & H.unixPermissions && (H.dir = !0), H.dosPermissions && 16 & H.dosPermissions && (H.dir = !0), H.dir && (E = s(E)), H.createFolders && (L = o(E)) && c.call(this, L, !0);
400
- var X = C === "string" && H.binary === !1 && H.base64 === !1;
401
- T && T.binary !== void 0 || (H.binary = !X), (B instanceof f && B.uncompressedSize === 0 || H.dir || !B || B.length === 0) && (H.base64 = !1, H.binary = !0, B = "", H.compression = "STORE", C = "string");
402
- var b = null;
403
- b = B instanceof f || B instanceof a ? B : _.isNode && _.isStream(B) ? new r(E, B) : n.prepareContent(E, B, H.binary, H.optimizedBinaryString, H.base64);
404
- var O = new g(E, b, H);
405
- this.files[E] = O;
406
- }
407
- var u = m("./utf8"), n = m("./utils"), a = m("./stream/GenericWorker"), p = m("./stream/StreamHelper"), v = m("./defaults"), f = m("./compressedObject"), g = m("./zipObject"), i = m("./generate"), _ = m("./nodejsUtils"), r = m("./nodejs/NodejsStreamInputAdapter"), o = function(E) {
408
- E.slice(-1) === "/" && (E = E.substring(0, E.length - 1));
409
- var B = E.lastIndexOf("/");
410
- return 0 < B ? E.substring(0, B) : "";
411
- }, s = function(E) {
412
- return E.slice(-1) !== "/" && (E += "/"), E;
413
- }, c = function(E, B) {
414
- return B = B !== void 0 ? B : v.createFolders, E = s(E), this.files[E] || d.call(this, E, null, { dir: !0, createFolders: B }), this.files[E];
415
- };
416
- function y(E) {
417
- return Object.prototype.toString.call(E) === "[object RegExp]";
418
- }
419
- var x = { load: function() {
420
- throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
421
- }, forEach: function(E) {
422
- var B, T, L;
423
- for (B in this.files) L = this.files[B], (T = B.slice(this.root.length, B.length)) && B.slice(0, this.root.length) === this.root && E(T, L);
424
- }, filter: function(E) {
425
- var B = [];
426
- return this.forEach(function(T, L) {
427
- E(T, L) && B.push(L);
428
- }), B;
429
- }, file: function(E, B, T) {
430
- if (arguments.length !== 1) return E = this.root + E, d.call(this, E, B, T), this;
431
- if (y(E)) {
432
- var L = E;
433
- return this.filter(function(H, X) {
434
- return !X.dir && L.test(H);
435
- });
436
- }
437
- var C = this.files[this.root + E];
438
- return C && !C.dir ? C : null;
439
- }, folder: function(E) {
440
- if (!E) return this;
441
- if (y(E)) return this.filter(function(C, H) {
442
- return H.dir && E.test(C);
443
- });
444
- var B = this.root + E, T = c.call(this, B), L = this.clone();
445
- return L.root = T.name, L;
446
- }, remove: function(E) {
447
- E = this.root + E;
448
- var B = this.files[E];
449
- if (B || (E.slice(-1) !== "/" && (E += "/"), B = this.files[E]), B && !B.dir) delete this.files[E];
450
- else for (var T = this.filter(function(C, H) {
451
- return H.name.slice(0, E.length) === E;
452
- }), L = 0; L < T.length; L++) delete this.files[T[L].name];
453
- return this;
454
- }, generate: function() {
455
- throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
456
- }, generateInternalStream: function(E) {
457
- var B, T = {};
458
- try {
459
- if ((T = n.extend(E || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: u.utf8encode })).type = T.type.toLowerCase(), T.compression = T.compression.toUpperCase(), T.type === "binarystring" && (T.type = "string"), !T.type) throw new Error("No output type specified.");
460
- n.checkSupport(T.type), T.platform !== "darwin" && T.platform !== "freebsd" && T.platform !== "linux" && T.platform !== "sunos" || (T.platform = "UNIX"), T.platform === "win32" && (T.platform = "DOS");
461
- var L = T.comment || this.comment || "";
462
- B = i.generateWorker(this, T, L);
463
- } catch (C) {
464
- (B = new a("error")).error(C);
465
- }
466
- return new p(B, T.type || "string", T.mimeType);
467
- }, generateAsync: function(E, B) {
468
- return this.generateInternalStream(E).accumulate(B);
469
- }, generateNodeStream: function(E, B) {
470
- return (E = E || {}).type || (E.type = "nodebuffer"), this.generateInternalStream(E).toNodejsStream(B);
471
- } };
472
- N.exports = x;
473
- }, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(m, N, w) {
474
- N.exports = m("stream");
475
- }, { stream: void 0 }], 17: [function(m, N, w) {
476
- var d = m("./DataReader");
477
- function u(n) {
478
- d.call(this, n);
479
- for (var a = 0; a < this.data.length; a++) n[a] = 255 & n[a];
480
- }
481
- m("../utils").inherits(u, d), u.prototype.byteAt = function(n) {
482
- return this.data[this.zero + n];
483
- }, u.prototype.lastIndexOfSignature = function(n) {
484
- for (var a = n.charCodeAt(0), p = n.charCodeAt(1), v = n.charCodeAt(2), f = n.charCodeAt(3), g = this.length - 4; 0 <= g; --g) if (this.data[g] === a && this.data[g + 1] === p && this.data[g + 2] === v && this.data[g + 3] === f) return g - this.zero;
485
- return -1;
486
- }, u.prototype.readAndCheckSignature = function(n) {
487
- var a = n.charCodeAt(0), p = n.charCodeAt(1), v = n.charCodeAt(2), f = n.charCodeAt(3), g = this.readData(4);
488
- return a === g[0] && p === g[1] && v === g[2] && f === g[3];
489
- }, u.prototype.readData = function(n) {
490
- if (this.checkOffset(n), n === 0) return [];
491
- var a = this.data.slice(this.zero + this.index, this.zero + this.index + n);
492
- return this.index += n, a;
493
- }, N.exports = u;
494
- }, { "../utils": 32, "./DataReader": 18 }], 18: [function(m, N, w) {
495
- var d = m("../utils");
496
- function u(n) {
497
- this.data = n, this.length = n.length, this.index = 0, this.zero = 0;
498
- }
499
- u.prototype = { checkOffset: function(n) {
500
- this.checkIndex(this.index + n);
501
- }, checkIndex: function(n) {
502
- if (this.length < this.zero + n || n < 0) throw new Error("End of data reached (data length = " + this.length + ", asked index = " + n + "). Corrupted zip ?");
503
- }, setIndex: function(n) {
504
- this.checkIndex(n), this.index = n;
505
- }, skip: function(n) {
506
- this.setIndex(this.index + n);
507
- }, byteAt: function() {
508
- }, readInt: function(n) {
509
- var a, p = 0;
510
- for (this.checkOffset(n), a = this.index + n - 1; a >= this.index; a--) p = (p << 8) + this.byteAt(a);
511
- return this.index += n, p;
512
- }, readString: function(n) {
513
- return d.transformTo("string", this.readData(n));
514
- }, readData: function() {
515
- }, lastIndexOfSignature: function() {
516
- }, readAndCheckSignature: function() {
517
- }, readDate: function() {
518
- var n = this.readInt(4);
519
- return new Date(Date.UTC(1980 + (n >> 25 & 127), (n >> 21 & 15) - 1, n >> 16 & 31, n >> 11 & 31, n >> 5 & 63, (31 & n) << 1));
520
- } }, N.exports = u;
521
- }, { "../utils": 32 }], 19: [function(m, N, w) {
522
- var d = m("./Uint8ArrayReader");
523
- function u(n) {
524
- d.call(this, n);
525
- }
526
- m("../utils").inherits(u, d), u.prototype.readData = function(n) {
527
- this.checkOffset(n);
528
- var a = this.data.slice(this.zero + this.index, this.zero + this.index + n);
529
- return this.index += n, a;
530
- }, N.exports = u;
531
- }, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(m, N, w) {
532
- var d = m("./DataReader");
533
- function u(n) {
534
- d.call(this, n);
535
- }
536
- m("../utils").inherits(u, d), u.prototype.byteAt = function(n) {
537
- return this.data.charCodeAt(this.zero + n);
538
- }, u.prototype.lastIndexOfSignature = function(n) {
539
- return this.data.lastIndexOf(n) - this.zero;
540
- }, u.prototype.readAndCheckSignature = function(n) {
541
- return n === this.readData(4);
542
- }, u.prototype.readData = function(n) {
543
- this.checkOffset(n);
544
- var a = this.data.slice(this.zero + this.index, this.zero + this.index + n);
545
- return this.index += n, a;
546
- }, N.exports = u;
547
- }, { "../utils": 32, "./DataReader": 18 }], 21: [function(m, N, w) {
548
- var d = m("./ArrayReader");
549
- function u(n) {
550
- d.call(this, n);
551
- }
552
- m("../utils").inherits(u, d), u.prototype.readData = function(n) {
553
- if (this.checkOffset(n), n === 0) return new Uint8Array(0);
554
- var a = this.data.subarray(this.zero + this.index, this.zero + this.index + n);
555
- return this.index += n, a;
556
- }, N.exports = u;
557
- }, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(m, N, w) {
558
- var d = m("../utils"), u = m("../support"), n = m("./ArrayReader"), a = m("./StringReader"), p = m("./NodeBufferReader"), v = m("./Uint8ArrayReader");
559
- N.exports = function(f) {
560
- var g = d.getTypeOf(f);
561
- return d.checkSupport(g), g !== "string" || u.uint8array ? g === "nodebuffer" ? new p(f) : u.uint8array ? new v(d.transformTo("uint8array", f)) : new n(d.transformTo("array", f)) : new a(f);
562
- };
563
- }, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(m, N, w) {
564
- w.LOCAL_FILE_HEADER = "PK", w.CENTRAL_FILE_HEADER = "PK", w.CENTRAL_DIRECTORY_END = "PK", w.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", w.ZIP64_CENTRAL_DIRECTORY_END = "PK", w.DATA_DESCRIPTOR = "PK\x07\b";
565
- }, {}], 24: [function(m, N, w) {
566
- var d = m("./GenericWorker"), u = m("../utils");
567
- function n(a) {
568
- d.call(this, "ConvertWorker to " + a), this.destType = a;
569
- }
570
- u.inherits(n, d), n.prototype.processChunk = function(a) {
571
- this.push({ data: u.transformTo(this.destType, a.data), meta: a.meta });
572
- }, N.exports = n;
573
- }, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(m, N, w) {
574
- var d = m("./GenericWorker"), u = m("../crc32");
575
- function n() {
576
- d.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
577
- }
578
- m("../utils").inherits(n, d), n.prototype.processChunk = function(a) {
579
- this.streamInfo.crc32 = u(a.data, this.streamInfo.crc32 || 0), this.push(a);
580
- }, N.exports = n;
581
- }, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(m, N, w) {
582
- var d = m("../utils"), u = m("./GenericWorker");
583
- function n(a) {
584
- u.call(this, "DataLengthProbe for " + a), this.propName = a, this.withStreamInfo(a, 0);
585
- }
586
- d.inherits(n, u), n.prototype.processChunk = function(a) {
587
- if (a) {
588
- var p = this.streamInfo[this.propName] || 0;
589
- this.streamInfo[this.propName] = p + a.data.length;
590
- }
591
- u.prototype.processChunk.call(this, a);
592
- }, N.exports = n;
593
- }, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(m, N, w) {
594
- var d = m("../utils"), u = m("./GenericWorker");
595
- function n(a) {
596
- u.call(this, "DataWorker");
597
- var p = this;
598
- this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, a.then(function(v) {
599
- p.dataIsReady = !0, p.data = v, p.max = v && v.length || 0, p.type = d.getTypeOf(v), p.isPaused || p._tickAndRepeat();
600
- }, function(v) {
601
- p.error(v);
602
- });
603
- }
604
- d.inherits(n, u), n.prototype.cleanUp = function() {
605
- u.prototype.cleanUp.call(this), this.data = null;
606
- }, n.prototype.resume = function() {
607
- return !!u.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, d.delay(this._tickAndRepeat, [], this)), !0);
608
- }, n.prototype._tickAndRepeat = function() {
609
- this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (d.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
610
- }, n.prototype._tick = function() {
611
- if (this.isPaused || this.isFinished) return !1;
612
- var a = null, p = Math.min(this.max, this.index + 16384);
613
- if (this.index >= this.max) return this.end();
614
- switch (this.type) {
615
- case "string":
616
- a = this.data.substring(this.index, p);
617
- break;
618
- case "uint8array":
619
- a = this.data.subarray(this.index, p);
620
- break;
621
- case "array":
622
- case "nodebuffer":
623
- a = this.data.slice(this.index, p);
624
- }
625
- return this.index = p, this.push({ data: a, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
626
- }, N.exports = n;
627
- }, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(m, N, w) {
628
- function d(u) {
629
- this.name = u || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
630
- }
631
- d.prototype = { push: function(u) {
632
- this.emit("data", u);
633
- }, end: function() {
634
- if (this.isFinished) return !1;
635
- this.flush();
636
- try {
637
- this.emit("end"), this.cleanUp(), this.isFinished = !0;
638
- } catch (u) {
639
- this.emit("error", u);
640
- }
641
- return !0;
642
- }, error: function(u) {
643
- return !this.isFinished && (this.isPaused ? this.generatedError = u : (this.isFinished = !0, this.emit("error", u), this.previous && this.previous.error(u), this.cleanUp()), !0);
644
- }, on: function(u, n) {
645
- return this._listeners[u].push(n), this;
646
- }, cleanUp: function() {
647
- this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
648
- }, emit: function(u, n) {
649
- if (this._listeners[u]) for (var a = 0; a < this._listeners[u].length; a++) this._listeners[u][a].call(this, n);
650
- }, pipe: function(u) {
651
- return u.registerPrevious(this);
652
- }, registerPrevious: function(u) {
653
- if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
654
- this.streamInfo = u.streamInfo, this.mergeStreamInfo(), this.previous = u;
655
- var n = this;
656
- return u.on("data", function(a) {
657
- n.processChunk(a);
658
- }), u.on("end", function() {
659
- n.end();
660
- }), u.on("error", function(a) {
661
- n.error(a);
662
- }), this;
663
- }, pause: function() {
664
- return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
665
- }, resume: function() {
666
- if (!this.isPaused || this.isFinished) return !1;
667
- var u = this.isPaused = !1;
668
- return this.generatedError && (this.error(this.generatedError), u = !0), this.previous && this.previous.resume(), !u;
669
- }, flush: function() {
670
- }, processChunk: function(u) {
671
- this.push(u);
672
- }, withStreamInfo: function(u, n) {
673
- return this.extraStreamInfo[u] = n, this.mergeStreamInfo(), this;
674
- }, mergeStreamInfo: function() {
675
- for (var u in this.extraStreamInfo) Object.prototype.hasOwnProperty.call(this.extraStreamInfo, u) && (this.streamInfo[u] = this.extraStreamInfo[u]);
676
- }, lock: function() {
677
- if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
678
- this.isLocked = !0, this.previous && this.previous.lock();
679
- }, toString: function() {
680
- var u = "Worker " + this.name;
681
- return this.previous ? this.previous + " -> " + u : u;
682
- } }, N.exports = d;
683
- }, {}], 29: [function(m, N, w) {
684
- var d = m("../utils"), u = m("./ConvertWorker"), n = m("./GenericWorker"), a = m("../base64"), p = m("../support"), v = m("../external"), f = null;
685
- if (p.nodestream) try {
686
- f = m("../nodejs/NodejsStreamOutputAdapter");
687
- } catch {
688
- }
689
- function g(_, r) {
690
- return new v.Promise(function(o, s) {
691
- var c = [], y = _._internalType, x = _._outputType, E = _._mimeType;
692
- _.on("data", function(B, T) {
693
- c.push(B), r && r(T);
694
- }).on("error", function(B) {
695
- c = [], s(B);
696
- }).on("end", function() {
697
- try {
698
- var B = function(T, L, C) {
699
- switch (T) {
700
- case "blob":
701
- return d.newBlob(d.transformTo("arraybuffer", L), C);
702
- case "base64":
703
- return a.encode(L);
704
- default:
705
- return d.transformTo(T, L);
706
- }
707
- }(x, function(T, L) {
708
- var C, H = 0, X = null, b = 0;
709
- for (C = 0; C < L.length; C++) b += L[C].length;
710
- switch (T) {
711
- case "string":
712
- return L.join("");
713
- case "array":
714
- return Array.prototype.concat.apply([], L);
715
- case "uint8array":
716
- for (X = new Uint8Array(b), C = 0; C < L.length; C++) X.set(L[C], H), H += L[C].length;
717
- return X;
718
- case "nodebuffer":
719
- return Buffer.concat(L);
720
- default:
721
- throw new Error("concat : unsupported type '" + T + "'");
722
- }
723
- }(y, c), E);
724
- o(B);
725
- } catch (T) {
726
- s(T);
727
- }
728
- c = [];
729
- }).resume();
730
- });
731
- }
732
- function i(_, r, o) {
733
- var s = r;
734
- switch (r) {
735
- case "blob":
736
- case "arraybuffer":
737
- s = "uint8array";
738
- break;
739
- case "base64":
740
- s = "string";
741
- }
742
- try {
743
- this._internalType = s, this._outputType = r, this._mimeType = o, d.checkSupport(s), this._worker = _.pipe(new u(s)), _.lock();
744
- } catch (c) {
745
- this._worker = new n("error"), this._worker.error(c);
746
- }
747
- }
748
- i.prototype = { accumulate: function(_) {
749
- return g(this, _);
750
- }, on: function(_, r) {
751
- var o = this;
752
- return _ === "data" ? this._worker.on(_, function(s) {
753
- r.call(o, s.data, s.meta);
754
- }) : this._worker.on(_, function() {
755
- d.delay(r, arguments, o);
756
- }), this;
757
- }, resume: function() {
758
- return d.delay(this._worker.resume, [], this._worker), this;
759
- }, pause: function() {
760
- return this._worker.pause(), this;
761
- }, toNodejsStream: function(_) {
762
- if (d.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
763
- return new f(this, { objectMode: this._outputType !== "nodebuffer" }, _);
764
- } }, N.exports = i;
765
- }, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(m, N, w) {
766
- if (w.base64 = !0, w.array = !0, w.string = !0, w.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", w.nodebuffer = typeof Buffer < "u", w.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") w.blob = !1;
767
- else {
768
- var d = new ArrayBuffer(0);
769
- try {
770
- w.blob = new Blob([d], { type: "application/zip" }).size === 0;
771
- } catch {
772
- try {
773
- var u = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
774
- u.append(d), w.blob = u.getBlob("application/zip").size === 0;
775
- } catch {
776
- w.blob = !1;
777
- }
778
- }
779
- }
780
- try {
781
- w.nodestream = !!m("readable-stream").Readable;
782
- } catch {
783
- w.nodestream = !1;
784
- }
785
- }, { "readable-stream": 16 }], 31: [function(m, N, w) {
786
- for (var d = m("./utils"), u = m("./support"), n = m("./nodejsUtils"), a = m("./stream/GenericWorker"), p = new Array(256), v = 0; v < 256; v++) p[v] = 252 <= v ? 6 : 248 <= v ? 5 : 240 <= v ? 4 : 224 <= v ? 3 : 192 <= v ? 2 : 1;
787
- p[254] = p[254] = 1;
788
- function f() {
789
- a.call(this, "utf-8 decode"), this.leftOver = null;
790
- }
791
- function g() {
792
- a.call(this, "utf-8 encode");
793
- }
794
- w.utf8encode = function(i) {
795
- return u.nodebuffer ? n.newBufferFrom(i, "utf-8") : function(_) {
796
- var r, o, s, c, y, x = _.length, E = 0;
797
- for (c = 0; c < x; c++) (64512 & (o = _.charCodeAt(c))) == 55296 && c + 1 < x && (64512 & (s = _.charCodeAt(c + 1))) == 56320 && (o = 65536 + (o - 55296 << 10) + (s - 56320), c++), E += o < 128 ? 1 : o < 2048 ? 2 : o < 65536 ? 3 : 4;
798
- for (r = u.uint8array ? new Uint8Array(E) : new Array(E), c = y = 0; y < E; c++) (64512 & (o = _.charCodeAt(c))) == 55296 && c + 1 < x && (64512 & (s = _.charCodeAt(c + 1))) == 56320 && (o = 65536 + (o - 55296 << 10) + (s - 56320), c++), o < 128 ? r[y++] = o : (o < 2048 ? r[y++] = 192 | o >>> 6 : (o < 65536 ? r[y++] = 224 | o >>> 12 : (r[y++] = 240 | o >>> 18, r[y++] = 128 | o >>> 12 & 63), r[y++] = 128 | o >>> 6 & 63), r[y++] = 128 | 63 & o);
799
- return r;
800
- }(i);
801
- }, w.utf8decode = function(i) {
802
- return u.nodebuffer ? d.transformTo("nodebuffer", i).toString("utf-8") : function(_) {
803
- var r, o, s, c, y = _.length, x = new Array(2 * y);
804
- for (r = o = 0; r < y; ) if ((s = _[r++]) < 128) x[o++] = s;
805
- else if (4 < (c = p[s])) x[o++] = 65533, r += c - 1;
806
- else {
807
- for (s &= c === 2 ? 31 : c === 3 ? 15 : 7; 1 < c && r < y; ) s = s << 6 | 63 & _[r++], c--;
808
- 1 < c ? x[o++] = 65533 : s < 65536 ? x[o++] = s : (s -= 65536, x[o++] = 55296 | s >> 10 & 1023, x[o++] = 56320 | 1023 & s);
809
- }
810
- return x.length !== o && (x.subarray ? x = x.subarray(0, o) : x.length = o), d.applyFromCharCode(x);
811
- }(i = d.transformTo(u.uint8array ? "uint8array" : "array", i));
812
- }, d.inherits(f, a), f.prototype.processChunk = function(i) {
813
- var _ = d.transformTo(u.uint8array ? "uint8array" : "array", i.data);
814
- if (this.leftOver && this.leftOver.length) {
815
- if (u.uint8array) {
816
- var r = _;
817
- (_ = new Uint8Array(r.length + this.leftOver.length)).set(this.leftOver, 0), _.set(r, this.leftOver.length);
818
- } else _ = this.leftOver.concat(_);
819
- this.leftOver = null;
820
- }
821
- var o = function(c, y) {
822
- var x;
823
- for ((y = y || c.length) > c.length && (y = c.length), x = y - 1; 0 <= x && (192 & c[x]) == 128; ) x--;
824
- return x < 0 || x === 0 ? y : x + p[c[x]] > y ? x : y;
825
- }(_), s = _;
826
- o !== _.length && (u.uint8array ? (s = _.subarray(0, o), this.leftOver = _.subarray(o, _.length)) : (s = _.slice(0, o), this.leftOver = _.slice(o, _.length))), this.push({ data: w.utf8decode(s), meta: i.meta });
827
- }, f.prototype.flush = function() {
828
- this.leftOver && this.leftOver.length && (this.push({ data: w.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
829
- }, w.Utf8DecodeWorker = f, d.inherits(g, a), g.prototype.processChunk = function(i) {
830
- this.push({ data: w.utf8encode(i.data), meta: i.meta });
831
- }, w.Utf8EncodeWorker = g;
832
- }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(m, N, w) {
833
- var d = m("./support"), u = m("./base64"), n = m("./nodejsUtils"), a = m("./external");
834
- function p(r) {
835
- return r;
836
- }
837
- function v(r, o) {
838
- for (var s = 0; s < r.length; ++s) o[s] = 255 & r.charCodeAt(s);
839
- return o;
840
- }
841
- m("setimmediate"), w.newBlob = function(r, o) {
842
- w.checkSupport("blob");
843
- try {
844
- return new Blob([r], { type: o });
845
- } catch {
846
- try {
847
- var s = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
848
- return s.append(r), s.getBlob(o);
849
- } catch {
850
- throw new Error("Bug : can't construct the Blob.");
851
- }
852
- }
853
- };
854
- var f = { stringifyByChunk: function(r, o, s) {
855
- var c = [], y = 0, x = r.length;
856
- if (x <= s) return String.fromCharCode.apply(null, r);
857
- for (; y < x; ) o === "array" || o === "nodebuffer" ? c.push(String.fromCharCode.apply(null, r.slice(y, Math.min(y + s, x)))) : c.push(String.fromCharCode.apply(null, r.subarray(y, Math.min(y + s, x)))), y += s;
858
- return c.join("");
859
- }, stringifyByChar: function(r) {
860
- for (var o = "", s = 0; s < r.length; s++) o += String.fromCharCode(r[s]);
861
- return o;
862
- }, applyCanBeUsed: { uint8array: function() {
863
- try {
864
- return d.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
865
- } catch {
866
- return !1;
867
- }
868
- }(), nodebuffer: function() {
869
- try {
870
- return d.nodebuffer && String.fromCharCode.apply(null, n.allocBuffer(1)).length === 1;
871
- } catch {
872
- return !1;
873
- }
874
- }() } };
875
- function g(r) {
876
- var o = 65536, s = w.getTypeOf(r), c = !0;
877
- if (s === "uint8array" ? c = f.applyCanBeUsed.uint8array : s === "nodebuffer" && (c = f.applyCanBeUsed.nodebuffer), c) for (; 1 < o; ) try {
878
- return f.stringifyByChunk(r, s, o);
879
- } catch {
880
- o = Math.floor(o / 2);
881
- }
882
- return f.stringifyByChar(r);
883
- }
884
- function i(r, o) {
885
- for (var s = 0; s < r.length; s++) o[s] = r[s];
886
- return o;
887
- }
888
- w.applyFromCharCode = g;
889
- var _ = {};
890
- _.string = { string: p, array: function(r) {
891
- return v(r, new Array(r.length));
892
- }, arraybuffer: function(r) {
893
- return _.string.uint8array(r).buffer;
894
- }, uint8array: function(r) {
895
- return v(r, new Uint8Array(r.length));
896
- }, nodebuffer: function(r) {
897
- return v(r, n.allocBuffer(r.length));
898
- } }, _.array = { string: g, array: p, arraybuffer: function(r) {
899
- return new Uint8Array(r).buffer;
900
- }, uint8array: function(r) {
901
- return new Uint8Array(r);
902
- }, nodebuffer: function(r) {
903
- return n.newBufferFrom(r);
904
- } }, _.arraybuffer = { string: function(r) {
905
- return g(new Uint8Array(r));
906
- }, array: function(r) {
907
- return i(new Uint8Array(r), new Array(r.byteLength));
908
- }, arraybuffer: p, uint8array: function(r) {
909
- return new Uint8Array(r);
910
- }, nodebuffer: function(r) {
911
- return n.newBufferFrom(new Uint8Array(r));
912
- } }, _.uint8array = { string: g, array: function(r) {
913
- return i(r, new Array(r.length));
914
- }, arraybuffer: function(r) {
915
- return r.buffer;
916
- }, uint8array: p, nodebuffer: function(r) {
917
- return n.newBufferFrom(r);
918
- } }, _.nodebuffer = { string: g, array: function(r) {
919
- return i(r, new Array(r.length));
920
- }, arraybuffer: function(r) {
921
- return _.nodebuffer.uint8array(r).buffer;
922
- }, uint8array: function(r) {
923
- return i(r, new Uint8Array(r.length));
924
- }, nodebuffer: p }, w.transformTo = function(r, o) {
925
- if (o = o || "", !r) return o;
926
- w.checkSupport(r);
927
- var s = w.getTypeOf(o);
928
- return _[s][r](o);
929
- }, w.resolve = function(r) {
930
- for (var o = r.split("/"), s = [], c = 0; c < o.length; c++) {
931
- var y = o[c];
932
- y === "." || y === "" && c !== 0 && c !== o.length - 1 || (y === ".." ? s.pop() : s.push(y));
933
- }
934
- return s.join("/");
935
- }, w.getTypeOf = function(r) {
936
- return typeof r == "string" ? "string" : Object.prototype.toString.call(r) === "[object Array]" ? "array" : d.nodebuffer && n.isBuffer(r) ? "nodebuffer" : d.uint8array && r instanceof Uint8Array ? "uint8array" : d.arraybuffer && r instanceof ArrayBuffer ? "arraybuffer" : void 0;
937
- }, w.checkSupport = function(r) {
938
- if (!d[r.toLowerCase()]) throw new Error(r + " is not supported by this platform");
939
- }, w.MAX_VALUE_16BITS = 65535, w.MAX_VALUE_32BITS = -1, w.pretty = function(r) {
940
- var o, s, c = "";
941
- for (s = 0; s < (r || "").length; s++) c += "\\x" + ((o = r.charCodeAt(s)) < 16 ? "0" : "") + o.toString(16).toUpperCase();
942
- return c;
943
- }, w.delay = function(r, o, s) {
944
- setImmediate(function() {
945
- r.apply(s || null, o || []);
946
- });
947
- }, w.inherits = function(r, o) {
948
- function s() {
949
- }
950
- s.prototype = o.prototype, r.prototype = new s();
951
- }, w.extend = function() {
952
- var r, o, s = {};
953
- for (r = 0; r < arguments.length; r++) for (o in arguments[r]) Object.prototype.hasOwnProperty.call(arguments[r], o) && s[o] === void 0 && (s[o] = arguments[r][o]);
954
- return s;
955
- }, w.prepareContent = function(r, o, s, c, y) {
956
- return a.Promise.resolve(o).then(function(x) {
957
- return d.blob && (x instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(x)) !== -1) && typeof FileReader < "u" ? new a.Promise(function(E, B) {
958
- var T = new FileReader();
959
- T.onload = function(L) {
960
- E(L.target.result);
961
- }, T.onerror = function(L) {
962
- B(L.target.error);
963
- }, T.readAsArrayBuffer(x);
964
- }) : x;
965
- }).then(function(x) {
966
- var E = w.getTypeOf(x);
967
- return E ? (E === "arraybuffer" ? x = w.transformTo("uint8array", x) : E === "string" && (y ? x = u.decode(x) : s && c !== !0 && (x = function(B) {
968
- return v(B, d.uint8array ? new Uint8Array(B.length) : new Array(B.length));
969
- }(x))), x) : a.Promise.reject(new Error("Can't read the data of '" + r + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
970
- });
971
- };
972
- }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(m, N, w) {
973
- var d = m("./reader/readerFor"), u = m("./utils"), n = m("./signature"), a = m("./zipEntry"), p = m("./support");
974
- function v(f) {
975
- this.files = [], this.loadOptions = f;
976
- }
977
- v.prototype = { checkSignature: function(f) {
978
- if (!this.reader.readAndCheckSignature(f)) {
979
- this.reader.index -= 4;
980
- var g = this.reader.readString(4);
981
- throw new Error("Corrupted zip or bug: unexpected signature (" + u.pretty(g) + ", expected " + u.pretty(f) + ")");
982
- }
983
- }, isSignature: function(f, g) {
984
- var i = this.reader.index;
985
- this.reader.setIndex(f);
986
- var _ = this.reader.readString(4) === g;
987
- return this.reader.setIndex(i), _;
988
- }, readBlockEndOfCentral: function() {
989
- this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2);
990
- var f = this.reader.readData(this.zipCommentLength), g = p.uint8array ? "uint8array" : "array", i = u.transformTo(g, f);
991
- this.zipComment = this.loadOptions.decodeFileName(i);
992
- }, readBlockZip64EndOfCentral: function() {
993
- this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {};
994
- for (var f, g, i, _ = this.zip64EndOfCentralSize - 44; 0 < _; ) f = this.reader.readInt(2), g = this.reader.readInt(4), i = this.reader.readData(g), this.zip64ExtensibleData[f] = { id: f, length: g, value: i };
995
- }, readBlockZip64EndOfCentralLocator: function() {
996
- if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw new Error("Multi-volumes zip are not supported");
997
- }, readLocalFiles: function() {
998
- var f, g;
999
- for (f = 0; f < this.files.length; f++) g = this.files[f], this.reader.setIndex(g.localHeaderOffset), this.checkSignature(n.LOCAL_FILE_HEADER), g.readLocalPart(this.reader), g.handleUTF8(), g.processAttributes();
1000
- }, readCentralDir: function() {
1001
- var f;
1002
- for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER); ) (f = new a({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(f);
1003
- if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
1004
- }, readEndOfCentral: function() {
1005
- var f = this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);
1006
- if (f < 0) throw this.isSignature(0, n.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
1007
- this.reader.setIndex(f);
1008
- var g = f;
1009
- if (this.checkSignature(n.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === u.MAX_VALUE_16BITS || this.diskWithCentralDirStart === u.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === u.MAX_VALUE_16BITS || this.centralDirRecords === u.MAX_VALUE_16BITS || this.centralDirSize === u.MAX_VALUE_32BITS || this.centralDirOffset === u.MAX_VALUE_32BITS) {
1010
- if (this.zip64 = !0, (f = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
1011
- if (this.reader.setIndex(f), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, n.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
1012
- this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
1013
- }
1014
- var i = this.centralDirOffset + this.centralDirSize;
1015
- this.zip64 && (i += 20, i += 12 + this.zip64EndOfCentralSize);
1016
- var _ = g - i;
1017
- if (0 < _) this.isSignature(g, n.CENTRAL_FILE_HEADER) || (this.reader.zero = _);
1018
- else if (_ < 0) throw new Error("Corrupted zip: missing " + Math.abs(_) + " bytes.");
1019
- }, prepareReader: function(f) {
1020
- this.reader = d(f);
1021
- }, load: function(f) {
1022
- this.prepareReader(f), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
1023
- } }, N.exports = v;
1024
- }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(m, N, w) {
1025
- var d = m("./reader/readerFor"), u = m("./utils"), n = m("./compressedObject"), a = m("./crc32"), p = m("./utf8"), v = m("./compressions"), f = m("./support");
1026
- function g(i, _) {
1027
- this.options = i, this.loadOptions = _;
1028
- }
1029
- g.prototype = { isEncrypted: function() {
1030
- return (1 & this.bitFlag) == 1;
1031
- }, useUTF8: function() {
1032
- return (2048 & this.bitFlag) == 2048;
1033
- }, readLocalPart: function(i) {
1034
- var _, r;
1035
- if (i.skip(22), this.fileNameLength = i.readInt(2), r = i.readInt(2), this.fileName = i.readData(this.fileNameLength), i.skip(r), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
1036
- if ((_ = function(o) {
1037
- for (var s in v) if (Object.prototype.hasOwnProperty.call(v, s) && v[s].magic === o) return v[s];
1038
- return null;
1039
- }(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + u.pretty(this.compressionMethod) + " unknown (inner file : " + u.transformTo("string", this.fileName) + ")");
1040
- this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, _, i.readData(this.compressedSize));
1041
- }, readCentralPart: function(i) {
1042
- this.versionMadeBy = i.readInt(2), i.skip(2), this.bitFlag = i.readInt(2), this.compressionMethod = i.readString(2), this.date = i.readDate(), this.crc32 = i.readInt(4), this.compressedSize = i.readInt(4), this.uncompressedSize = i.readInt(4);
1043
- var _ = i.readInt(2);
1044
- if (this.extraFieldsLength = i.readInt(2), this.fileCommentLength = i.readInt(2), this.diskNumberStart = i.readInt(2), this.internalFileAttributes = i.readInt(2), this.externalFileAttributes = i.readInt(4), this.localHeaderOffset = i.readInt(4), this.isEncrypted()) throw new Error("Encrypted zip are not supported");
1045
- i.skip(_), this.readExtraFields(i), this.parseZIP64ExtraField(i), this.fileComment = i.readData(this.fileCommentLength);
1046
- }, processAttributes: function() {
1047
- this.unixPermissions = null, this.dosPermissions = null;
1048
- var i = this.versionMadeBy >> 8;
1049
- this.dir = !!(16 & this.externalFileAttributes), i == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), i == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
1050
- }, parseZIP64ExtraField: function() {
1051
- if (this.extraFields[1]) {
1052
- var i = d(this.extraFields[1].value);
1053
- this.uncompressedSize === u.MAX_VALUE_32BITS && (this.uncompressedSize = i.readInt(8)), this.compressedSize === u.MAX_VALUE_32BITS && (this.compressedSize = i.readInt(8)), this.localHeaderOffset === u.MAX_VALUE_32BITS && (this.localHeaderOffset = i.readInt(8)), this.diskNumberStart === u.MAX_VALUE_32BITS && (this.diskNumberStart = i.readInt(4));
1054
- }
1055
- }, readExtraFields: function(i) {
1056
- var _, r, o, s = i.index + this.extraFieldsLength;
1057
- for (this.extraFields || (this.extraFields = {}); i.index + 4 < s; ) _ = i.readInt(2), r = i.readInt(2), o = i.readData(r), this.extraFields[_] = { id: _, length: r, value: o };
1058
- i.setIndex(s);
1059
- }, handleUTF8: function() {
1060
- var i = f.uint8array ? "uint8array" : "array";
1061
- if (this.useUTF8()) this.fileNameStr = p.utf8decode(this.fileName), this.fileCommentStr = p.utf8decode(this.fileComment);
1062
- else {
1063
- var _ = this.findExtraFieldUnicodePath();
1064
- if (_ !== null) this.fileNameStr = _;
1065
- else {
1066
- var r = u.transformTo(i, this.fileName);
1067
- this.fileNameStr = this.loadOptions.decodeFileName(r);
1068
- }
1069
- var o = this.findExtraFieldUnicodeComment();
1070
- if (o !== null) this.fileCommentStr = o;
1071
- else {
1072
- var s = u.transformTo(i, this.fileComment);
1073
- this.fileCommentStr = this.loadOptions.decodeFileName(s);
1074
- }
1075
- }
1076
- }, findExtraFieldUnicodePath: function() {
1077
- var i = this.extraFields[28789];
1078
- if (i) {
1079
- var _ = d(i.value);
1080
- return _.readInt(1) !== 1 || a(this.fileName) !== _.readInt(4) ? null : p.utf8decode(_.readData(i.length - 5));
1081
- }
1082
- return null;
1083
- }, findExtraFieldUnicodeComment: function() {
1084
- var i = this.extraFields[25461];
1085
- if (i) {
1086
- var _ = d(i.value);
1087
- return _.readInt(1) !== 1 || a(this.fileComment) !== _.readInt(4) ? null : p.utf8decode(_.readData(i.length - 5));
1088
- }
1089
- return null;
1090
- } }, N.exports = g;
1091
- }, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(m, N, w) {
1092
- function d(_, r, o) {
1093
- this.name = _, this.dir = o.dir, this.date = o.date, this.comment = o.comment, this.unixPermissions = o.unixPermissions, this.dosPermissions = o.dosPermissions, this._data = r, this._dataBinary = o.binary, this.options = { compression: o.compression, compressionOptions: o.compressionOptions };
1094
- }
1095
- var u = m("./stream/StreamHelper"), n = m("./stream/DataWorker"), a = m("./utf8"), p = m("./compressedObject"), v = m("./stream/GenericWorker");
1096
- d.prototype = { internalStream: function(_) {
1097
- var r = null, o = "string";
1098
- try {
1099
- if (!_) throw new Error("No output type specified.");
1100
- var s = (o = _.toLowerCase()) === "string" || o === "text";
1101
- o !== "binarystring" && o !== "text" || (o = "string"), r = this._decompressWorker();
1102
- var c = !this._dataBinary;
1103
- c && !s && (r = r.pipe(new a.Utf8EncodeWorker())), !c && s && (r = r.pipe(new a.Utf8DecodeWorker()));
1104
- } catch (y) {
1105
- (r = new v("error")).error(y);
1106
- }
1107
- return new u(r, o, "");
1108
- }, async: function(_, r) {
1109
- return this.internalStream(_).accumulate(r);
1110
- }, nodeStream: function(_, r) {
1111
- return this.internalStream(_ || "nodebuffer").toNodejsStream(r);
1112
- }, _compressWorker: function(_, r) {
1113
- if (this._data instanceof p && this._data.compression.magic === _.magic) return this._data.getCompressedWorker();
1114
- var o = this._decompressWorker();
1115
- return this._dataBinary || (o = o.pipe(new a.Utf8EncodeWorker())), p.createWorkerFrom(o, _, r);
1116
- }, _decompressWorker: function() {
1117
- return this._data instanceof p ? this._data.getContentWorker() : this._data instanceof v ? this._data : new n(this._data);
1118
- } };
1119
- for (var f = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], g = function() {
1120
- throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1121
- }, i = 0; i < f.length; i++) d.prototype[f[i]] = g;
1122
- N.exports = d;
1123
- }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(m, N, w) {
1124
- (function(d) {
1125
- var u, n, a = d.MutationObserver || d.WebKitMutationObserver;
1126
- if (a) {
1127
- var p = 0, v = new a(_), f = d.document.createTextNode("");
1128
- v.observe(f, { characterData: !0 }), u = function() {
1129
- f.data = p = ++p % 2;
1130
- };
1131
- } else if (d.setImmediate || d.MessageChannel === void 0) u = "document" in d && "onreadystatechange" in d.document.createElement("script") ? function() {
1132
- var r = d.document.createElement("script");
1133
- r.onreadystatechange = function() {
1134
- _(), r.onreadystatechange = null, r.parentNode.removeChild(r), r = null;
1135
- }, d.document.documentElement.appendChild(r);
1136
- } : function() {
1137
- setTimeout(_, 0);
1138
- };
1139
- else {
1140
- var g = new d.MessageChannel();
1141
- g.port1.onmessage = _, u = function() {
1142
- g.port2.postMessage(0);
1143
- };
1144
- }
1145
- var i = [];
1146
- function _() {
1147
- var r, o;
1148
- n = !0;
1149
- for (var s = i.length; s; ) {
1150
- for (o = i, i = [], r = -1; ++r < s; ) o[r]();
1151
- s = i.length;
1152
- }
1153
- n = !1;
1154
- }
1155
- N.exports = function(r) {
1156
- i.push(r) !== 1 || n || u();
1157
- };
1158
- }).call(this, typeof we < "u" ? we : typeof self < "u" ? self : typeof window < "u" ? window : {});
1159
- }, {}], 37: [function(m, N, w) {
1160
- var d = m("immediate");
1161
- function u() {
1162
- }
1163
- var n = {}, a = ["REJECTED"], p = ["FULFILLED"], v = ["PENDING"];
1164
- function f(s) {
1165
- if (typeof s != "function") throw new TypeError("resolver must be a function");
1166
- this.state = v, this.queue = [], this.outcome = void 0, s !== u && r(this, s);
1167
- }
1168
- function g(s, c, y) {
1169
- this.promise = s, typeof c == "function" && (this.onFulfilled = c, this.callFulfilled = this.otherCallFulfilled), typeof y == "function" && (this.onRejected = y, this.callRejected = this.otherCallRejected);
1170
- }
1171
- function i(s, c, y) {
1172
- d(function() {
1173
- var x;
1174
- try {
1175
- x = c(y);
1176
- } catch (E) {
1177
- return n.reject(s, E);
1178
- }
1179
- x === s ? n.reject(s, new TypeError("Cannot resolve promise with itself")) : n.resolve(s, x);
1180
- });
1181
- }
1182
- function _(s) {
1183
- var c = s && s.then;
1184
- if (s && (typeof s == "object" || typeof s == "function") && typeof c == "function") return function() {
1185
- c.apply(s, arguments);
1186
- };
1187
- }
1188
- function r(s, c) {
1189
- var y = !1;
1190
- function x(T) {
1191
- y || (y = !0, n.reject(s, T));
1192
- }
1193
- function E(T) {
1194
- y || (y = !0, n.resolve(s, T));
1195
- }
1196
- var B = o(function() {
1197
- c(E, x);
1198
- });
1199
- B.status === "error" && x(B.value);
1200
- }
1201
- function o(s, c) {
1202
- var y = {};
1203
- try {
1204
- y.value = s(c), y.status = "success";
1205
- } catch (x) {
1206
- y.status = "error", y.value = x;
1207
- }
1208
- return y;
1209
- }
1210
- (N.exports = f).prototype.finally = function(s) {
1211
- if (typeof s != "function") return this;
1212
- var c = this.constructor;
1213
- return this.then(function(y) {
1214
- return c.resolve(s()).then(function() {
1215
- return y;
1216
- });
1217
- }, function(y) {
1218
- return c.resolve(s()).then(function() {
1219
- throw y;
1220
- });
1221
- });
1222
- }, f.prototype.catch = function(s) {
1223
- return this.then(null, s);
1224
- }, f.prototype.then = function(s, c) {
1225
- if (typeof s != "function" && this.state === p || typeof c != "function" && this.state === a) return this;
1226
- var y = new this.constructor(u);
1227
- return this.state !== v ? i(y, this.state === p ? s : c, this.outcome) : this.queue.push(new g(y, s, c)), y;
1228
- }, g.prototype.callFulfilled = function(s) {
1229
- n.resolve(this.promise, s);
1230
- }, g.prototype.otherCallFulfilled = function(s) {
1231
- i(this.promise, this.onFulfilled, s);
1232
- }, g.prototype.callRejected = function(s) {
1233
- n.reject(this.promise, s);
1234
- }, g.prototype.otherCallRejected = function(s) {
1235
- i(this.promise, this.onRejected, s);
1236
- }, n.resolve = function(s, c) {
1237
- var y = o(_, c);
1238
- if (y.status === "error") return n.reject(s, y.value);
1239
- var x = y.value;
1240
- if (x) r(s, x);
1241
- else {
1242
- s.state = p, s.outcome = c;
1243
- for (var E = -1, B = s.queue.length; ++E < B; ) s.queue[E].callFulfilled(c);
1244
- }
1245
- return s;
1246
- }, n.reject = function(s, c) {
1247
- s.state = a, s.outcome = c;
1248
- for (var y = -1, x = s.queue.length; ++y < x; ) s.queue[y].callRejected(c);
1249
- return s;
1250
- }, f.resolve = function(s) {
1251
- return s instanceof this ? s : n.resolve(new this(u), s);
1252
- }, f.reject = function(s) {
1253
- var c = new this(u);
1254
- return n.reject(c, s);
1255
- }, f.all = function(s) {
1256
- var c = this;
1257
- if (Object.prototype.toString.call(s) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1258
- var y = s.length, x = !1;
1259
- if (!y) return this.resolve([]);
1260
- for (var E = new Array(y), B = 0, T = -1, L = new this(u); ++T < y; ) C(s[T], T);
1261
- return L;
1262
- function C(H, X) {
1263
- c.resolve(H).then(function(b) {
1264
- E[X] = b, ++B !== y || x || (x = !0, n.resolve(L, E));
1265
- }, function(b) {
1266
- x || (x = !0, n.reject(L, b));
1267
- });
1268
- }
1269
- }, f.race = function(s) {
1270
- var c = this;
1271
- if (Object.prototype.toString.call(s) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1272
- var y = s.length, x = !1;
1273
- if (!y) return this.resolve([]);
1274
- for (var E = -1, B = new this(u); ++E < y; ) T = s[E], c.resolve(T).then(function(L) {
1275
- x || (x = !0, n.resolve(B, L));
1276
- }, function(L) {
1277
- x || (x = !0, n.reject(B, L));
1278
- });
1279
- var T;
1280
- return B;
1281
- };
1282
- }, { immediate: 36 }], 38: [function(m, N, w) {
1283
- var d = {};
1284
- (0, m("./lib/utils/common").assign)(d, m("./lib/deflate"), m("./lib/inflate"), m("./lib/zlib/constants")), N.exports = d;
1285
- }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(m, N, w) {
1286
- var d = m("./zlib/deflate"), u = m("./utils/common"), n = m("./utils/strings"), a = m("./zlib/messages"), p = m("./zlib/zstream"), v = Object.prototype.toString, f = 0, g = -1, i = 0, _ = 8;
1287
- function r(s) {
1288
- if (!(this instanceof r)) return new r(s);
1289
- this.options = u.assign({ level: g, method: _, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: i, to: "" }, s || {});
1290
- var c = this.options;
1291
- c.raw && 0 < c.windowBits ? c.windowBits = -c.windowBits : c.gzip && 0 < c.windowBits && c.windowBits < 16 && (c.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new p(), this.strm.avail_out = 0;
1292
- var y = d.deflateInit2(this.strm, c.level, c.method, c.windowBits, c.memLevel, c.strategy);
1293
- if (y !== f) throw new Error(a[y]);
1294
- if (c.header && d.deflateSetHeader(this.strm, c.header), c.dictionary) {
1295
- var x;
1296
- if (x = typeof c.dictionary == "string" ? n.string2buf(c.dictionary) : v.call(c.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(c.dictionary) : c.dictionary, (y = d.deflateSetDictionary(this.strm, x)) !== f) throw new Error(a[y]);
1297
- this._dict_set = !0;
1298
- }
1299
- }
1300
- function o(s, c) {
1301
- var y = new r(c);
1302
- if (y.push(s, !0), y.err) throw y.msg || a[y.err];
1303
- return y.result;
1304
- }
1305
- r.prototype.push = function(s, c) {
1306
- var y, x, E = this.strm, B = this.options.chunkSize;
1307
- if (this.ended) return !1;
1308
- x = c === ~~c ? c : c === !0 ? 4 : 0, typeof s == "string" ? E.input = n.string2buf(s) : v.call(s) === "[object ArrayBuffer]" ? E.input = new Uint8Array(s) : E.input = s, E.next_in = 0, E.avail_in = E.input.length;
1309
- do {
1310
- if (E.avail_out === 0 && (E.output = new u.Buf8(B), E.next_out = 0, E.avail_out = B), (y = d.deflate(E, x)) !== 1 && y !== f) return this.onEnd(y), !(this.ended = !0);
1311
- E.avail_out !== 0 && (E.avail_in !== 0 || x !== 4 && x !== 2) || (this.options.to === "string" ? this.onData(n.buf2binstring(u.shrinkBuf(E.output, E.next_out))) : this.onData(u.shrinkBuf(E.output, E.next_out)));
1312
- } while ((0 < E.avail_in || E.avail_out === 0) && y !== 1);
1313
- return x === 4 ? (y = d.deflateEnd(this.strm), this.onEnd(y), this.ended = !0, y === f) : x !== 2 || (this.onEnd(f), !(E.avail_out = 0));
1314
- }, r.prototype.onData = function(s) {
1315
- this.chunks.push(s);
1316
- }, r.prototype.onEnd = function(s) {
1317
- s === f && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = u.flattenChunks(this.chunks)), this.chunks = [], this.err = s, this.msg = this.strm.msg;
1318
- }, w.Deflate = r, w.deflate = o, w.deflateRaw = function(s, c) {
1319
- return (c = c || {}).raw = !0, o(s, c);
1320
- }, w.gzip = function(s, c) {
1321
- return (c = c || {}).gzip = !0, o(s, c);
1322
- };
1323
- }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(m, N, w) {
1324
- var d = m("./zlib/inflate"), u = m("./utils/common"), n = m("./utils/strings"), a = m("./zlib/constants"), p = m("./zlib/messages"), v = m("./zlib/zstream"), f = m("./zlib/gzheader"), g = Object.prototype.toString;
1325
- function i(r) {
1326
- if (!(this instanceof i)) return new i(r);
1327
- this.options = u.assign({ chunkSize: 16384, windowBits: 0, to: "" }, r || {});
1328
- var o = this.options;
1329
- o.raw && 0 <= o.windowBits && o.windowBits < 16 && (o.windowBits = -o.windowBits, o.windowBits === 0 && (o.windowBits = -15)), !(0 <= o.windowBits && o.windowBits < 16) || r && r.windowBits || (o.windowBits += 32), 15 < o.windowBits && o.windowBits < 48 && (15 & o.windowBits) == 0 && (o.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new v(), this.strm.avail_out = 0;
1330
- var s = d.inflateInit2(this.strm, o.windowBits);
1331
- if (s !== a.Z_OK) throw new Error(p[s]);
1332
- this.header = new f(), d.inflateGetHeader(this.strm, this.header);
1333
- }
1334
- function _(r, o) {
1335
- var s = new i(o);
1336
- if (s.push(r, !0), s.err) throw s.msg || p[s.err];
1337
- return s.result;
1338
- }
1339
- i.prototype.push = function(r, o) {
1340
- var s, c, y, x, E, B, T = this.strm, L = this.options.chunkSize, C = this.options.dictionary, H = !1;
1341
- if (this.ended) return !1;
1342
- c = o === ~~o ? o : o === !0 ? a.Z_FINISH : a.Z_NO_FLUSH, typeof r == "string" ? T.input = n.binstring2buf(r) : g.call(r) === "[object ArrayBuffer]" ? T.input = new Uint8Array(r) : T.input = r, T.next_in = 0, T.avail_in = T.input.length;
1343
- do {
1344
- if (T.avail_out === 0 && (T.output = new u.Buf8(L), T.next_out = 0, T.avail_out = L), (s = d.inflate(T, a.Z_NO_FLUSH)) === a.Z_NEED_DICT && C && (B = typeof C == "string" ? n.string2buf(C) : g.call(C) === "[object ArrayBuffer]" ? new Uint8Array(C) : C, s = d.inflateSetDictionary(this.strm, B)), s === a.Z_BUF_ERROR && H === !0 && (s = a.Z_OK, H = !1), s !== a.Z_STREAM_END && s !== a.Z_OK) return this.onEnd(s), !(this.ended = !0);
1345
- T.next_out && (T.avail_out !== 0 && s !== a.Z_STREAM_END && (T.avail_in !== 0 || c !== a.Z_FINISH && c !== a.Z_SYNC_FLUSH) || (this.options.to === "string" ? (y = n.utf8border(T.output, T.next_out), x = T.next_out - y, E = n.buf2string(T.output, y), T.next_out = x, T.avail_out = L - x, x && u.arraySet(T.output, T.output, y, x, 0), this.onData(E)) : this.onData(u.shrinkBuf(T.output, T.next_out)))), T.avail_in === 0 && T.avail_out === 0 && (H = !0);
1346
- } while ((0 < T.avail_in || T.avail_out === 0) && s !== a.Z_STREAM_END);
1347
- return s === a.Z_STREAM_END && (c = a.Z_FINISH), c === a.Z_FINISH ? (s = d.inflateEnd(this.strm), this.onEnd(s), this.ended = !0, s === a.Z_OK) : c !== a.Z_SYNC_FLUSH || (this.onEnd(a.Z_OK), !(T.avail_out = 0));
1348
- }, i.prototype.onData = function(r) {
1349
- this.chunks.push(r);
1350
- }, i.prototype.onEnd = function(r) {
1351
- r === a.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = u.flattenChunks(this.chunks)), this.chunks = [], this.err = r, this.msg = this.strm.msg;
1352
- }, w.Inflate = i, w.inflate = _, w.inflateRaw = function(r, o) {
1353
- return (o = o || {}).raw = !0, _(r, o);
1354
- }, w.ungzip = _;
1355
- }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(m, N, w) {
1356
- var d = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
1357
- w.assign = function(a) {
1358
- for (var p = Array.prototype.slice.call(arguments, 1); p.length; ) {
1359
- var v = p.shift();
1360
- if (v) {
1361
- if (typeof v != "object") throw new TypeError(v + "must be non-object");
1362
- for (var f in v) v.hasOwnProperty(f) && (a[f] = v[f]);
1363
- }
1364
- }
1365
- return a;
1366
- }, w.shrinkBuf = function(a, p) {
1367
- return a.length === p ? a : a.subarray ? a.subarray(0, p) : (a.length = p, a);
1368
- };
1369
- var u = { arraySet: function(a, p, v, f, g) {
1370
- if (p.subarray && a.subarray) a.set(p.subarray(v, v + f), g);
1371
- else for (var i = 0; i < f; i++) a[g + i] = p[v + i];
1372
- }, flattenChunks: function(a) {
1373
- var p, v, f, g, i, _;
1374
- for (p = f = 0, v = a.length; p < v; p++) f += a[p].length;
1375
- for (_ = new Uint8Array(f), p = g = 0, v = a.length; p < v; p++) i = a[p], _.set(i, g), g += i.length;
1376
- return _;
1377
- } }, n = { arraySet: function(a, p, v, f, g) {
1378
- for (var i = 0; i < f; i++) a[g + i] = p[v + i];
1379
- }, flattenChunks: function(a) {
1380
- return [].concat.apply([], a);
1381
- } };
1382
- w.setTyped = function(a) {
1383
- a ? (w.Buf8 = Uint8Array, w.Buf16 = Uint16Array, w.Buf32 = Int32Array, w.assign(w, u)) : (w.Buf8 = Array, w.Buf16 = Array, w.Buf32 = Array, w.assign(w, n));
1384
- }, w.setTyped(d);
1385
- }, {}], 42: [function(m, N, w) {
1386
- var d = m("./common"), u = !0, n = !0;
1387
- try {
1388
- String.fromCharCode.apply(null, [0]);
1389
- } catch {
1390
- u = !1;
1391
- }
1392
- try {
1393
- String.fromCharCode.apply(null, new Uint8Array(1));
1394
- } catch {
1395
- n = !1;
1396
- }
1397
- for (var a = new d.Buf8(256), p = 0; p < 256; p++) a[p] = 252 <= p ? 6 : 248 <= p ? 5 : 240 <= p ? 4 : 224 <= p ? 3 : 192 <= p ? 2 : 1;
1398
- function v(f, g) {
1399
- if (g < 65537 && (f.subarray && n || !f.subarray && u)) return String.fromCharCode.apply(null, d.shrinkBuf(f, g));
1400
- for (var i = "", _ = 0; _ < g; _++) i += String.fromCharCode(f[_]);
1401
- return i;
1402
- }
1403
- a[254] = a[254] = 1, w.string2buf = function(f) {
1404
- var g, i, _, r, o, s = f.length, c = 0;
1405
- for (r = 0; r < s; r++) (64512 & (i = f.charCodeAt(r))) == 55296 && r + 1 < s && (64512 & (_ = f.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (_ - 56320), r++), c += i < 128 ? 1 : i < 2048 ? 2 : i < 65536 ? 3 : 4;
1406
- for (g = new d.Buf8(c), r = o = 0; o < c; r++) (64512 & (i = f.charCodeAt(r))) == 55296 && r + 1 < s && (64512 & (_ = f.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (_ - 56320), r++), i < 128 ? g[o++] = i : (i < 2048 ? g[o++] = 192 | i >>> 6 : (i < 65536 ? g[o++] = 224 | i >>> 12 : (g[o++] = 240 | i >>> 18, g[o++] = 128 | i >>> 12 & 63), g[o++] = 128 | i >>> 6 & 63), g[o++] = 128 | 63 & i);
1407
- return g;
1408
- }, w.buf2binstring = function(f) {
1409
- return v(f, f.length);
1410
- }, w.binstring2buf = function(f) {
1411
- for (var g = new d.Buf8(f.length), i = 0, _ = g.length; i < _; i++) g[i] = f.charCodeAt(i);
1412
- return g;
1413
- }, w.buf2string = function(f, g) {
1414
- var i, _, r, o, s = g || f.length, c = new Array(2 * s);
1415
- for (i = _ = 0; i < s; ) if ((r = f[i++]) < 128) c[_++] = r;
1416
- else if (4 < (o = a[r])) c[_++] = 65533, i += o - 1;
1417
- else {
1418
- for (r &= o === 2 ? 31 : o === 3 ? 15 : 7; 1 < o && i < s; ) r = r << 6 | 63 & f[i++], o--;
1419
- 1 < o ? c[_++] = 65533 : r < 65536 ? c[_++] = r : (r -= 65536, c[_++] = 55296 | r >> 10 & 1023, c[_++] = 56320 | 1023 & r);
1420
- }
1421
- return v(c, _);
1422
- }, w.utf8border = function(f, g) {
1423
- var i;
1424
- for ((g = g || f.length) > f.length && (g = f.length), i = g - 1; 0 <= i && (192 & f[i]) == 128; ) i--;
1425
- return i < 0 || i === 0 ? g : i + a[f[i]] > g ? i : g;
1426
- };
1427
- }, { "./common": 41 }], 43: [function(m, N, w) {
1428
- N.exports = function(d, u, n, a) {
1429
- for (var p = 65535 & d | 0, v = d >>> 16 & 65535 | 0, f = 0; n !== 0; ) {
1430
- for (n -= f = 2e3 < n ? 2e3 : n; v = v + (p = p + u[a++] | 0) | 0, --f; ) ;
1431
- p %= 65521, v %= 65521;
1432
- }
1433
- return p | v << 16 | 0;
1434
- };
1435
- }, {}], 44: [function(m, N, w) {
1436
- N.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
1437
- }, {}], 45: [function(m, N, w) {
1438
- var d = function() {
1439
- for (var u, n = [], a = 0; a < 256; a++) {
1440
- u = a;
1441
- for (var p = 0; p < 8; p++) u = 1 & u ? 3988292384 ^ u >>> 1 : u >>> 1;
1442
- n[a] = u;
1443
- }
1444
- return n;
1445
- }();
1446
- N.exports = function(u, n, a, p) {
1447
- var v = d, f = p + a;
1448
- u ^= -1;
1449
- for (var g = p; g < f; g++) u = u >>> 8 ^ v[255 & (u ^ n[g])];
1450
- return -1 ^ u;
1451
- };
1452
- }, {}], 46: [function(m, N, w) {
1453
- var d, u = m("../utils/common"), n = m("./trees"), a = m("./adler32"), p = m("./crc32"), v = m("./messages"), f = 0, g = 4, i = 0, _ = -2, r = -1, o = 4, s = 2, c = 8, y = 9, x = 286, E = 30, B = 19, T = 2 * x + 1, L = 15, C = 3, H = 258, X = H + C + 1, b = 42, O = 113, t = 1, D = 2, q = 3, P = 4;
1454
- function J(e, z) {
1455
- return e.msg = v[z], z;
1456
- }
1457
- function M(e) {
1458
- return (e << 1) - (4 < e ? 9 : 0);
1459
- }
1460
- function $(e) {
1461
- for (var z = e.length; 0 <= --z; ) e[z] = 0;
1462
- }
1463
- function I(e) {
1464
- var z = e.state, R = z.pending;
1465
- R > e.avail_out && (R = e.avail_out), R !== 0 && (u.arraySet(e.output, z.pending_buf, z.pending_out, R, e.next_out), e.next_out += R, z.pending_out += R, e.total_out += R, e.avail_out -= R, z.pending -= R, z.pending === 0 && (z.pending_out = 0));
1466
- }
1467
- function A(e, z) {
1468
- n._tr_flush_block(e, 0 <= e.block_start ? e.block_start : -1, e.strstart - e.block_start, z), e.block_start = e.strstart, I(e.strm);
1469
- }
1470
- function K(e, z) {
1471
- e.pending_buf[e.pending++] = z;
1472
- }
1473
- function Z(e, z) {
1474
- e.pending_buf[e.pending++] = z >>> 8 & 255, e.pending_buf[e.pending++] = 255 & z;
1475
- }
1476
- function W(e, z) {
1477
- var R, h, l = e.max_chain_length, k = e.strstart, U = e.prev_length, F = e.nice_match, S = e.strstart > e.w_size - X ? e.strstart - (e.w_size - X) : 0, j = e.window, V = e.w_mask, G = e.prev, Y = e.strstart + H, ne = j[k + U - 1], ee = j[k + U];
1478
- e.prev_length >= e.good_match && (l >>= 2), F > e.lookahead && (F = e.lookahead);
1479
- do
1480
- if (j[(R = z) + U] === ee && j[R + U - 1] === ne && j[R] === j[k] && j[++R] === j[k + 1]) {
1481
- k += 2, R++;
1482
- do
1483
- ;
1484
- while (j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && k < Y);
1485
- if (h = H - (Y - k), k = Y - H, U < h) {
1486
- if (e.match_start = z, F <= (U = h)) break;
1487
- ne = j[k + U - 1], ee = j[k + U];
1488
- }
1489
- }
1490
- while ((z = G[z & V]) > S && --l != 0);
1491
- return U <= e.lookahead ? U : e.lookahead;
1492
- }
1493
- function ie(e) {
1494
- var z, R, h, l, k, U, F, S, j, V, G = e.w_size;
1495
- do {
1496
- if (l = e.window_size - e.lookahead - e.strstart, e.strstart >= G + (G - X)) {
1497
- for (u.arraySet(e.window, e.window, G, G, 0), e.match_start -= G, e.strstart -= G, e.block_start -= G, z = R = e.hash_size; h = e.head[--z], e.head[z] = G <= h ? h - G : 0, --R; ) ;
1498
- for (z = R = G; h = e.prev[--z], e.prev[z] = G <= h ? h - G : 0, --R; ) ;
1499
- l += G;
1500
- }
1501
- if (e.strm.avail_in === 0) break;
1502
- if (U = e.strm, F = e.window, S = e.strstart + e.lookahead, j = l, V = void 0, V = U.avail_in, j < V && (V = j), R = V === 0 ? 0 : (U.avail_in -= V, u.arraySet(F, U.input, U.next_in, V, S), U.state.wrap === 1 ? U.adler = a(U.adler, F, V, S) : U.state.wrap === 2 && (U.adler = p(U.adler, F, V, S)), U.next_in += V, U.total_in += V, V), e.lookahead += R, e.lookahead + e.insert >= C) for (k = e.strstart - e.insert, e.ins_h = e.window[k], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[k + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[k + C - 1]) & e.hash_mask, e.prev[k & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = k, k++, e.insert--, !(e.lookahead + e.insert < C)); ) ;
1503
- } while (e.lookahead < X && e.strm.avail_in !== 0);
1504
- }
1505
- function le(e, z) {
1506
- for (var R, h; ; ) {
1507
- if (e.lookahead < X) {
1508
- if (ie(e), e.lookahead < X && z === f) return t;
1509
- if (e.lookahead === 0) break;
1510
- }
1511
- if (R = 0, e.lookahead >= C && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + C - 1]) & e.hash_mask, R = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), R !== 0 && e.strstart - R <= e.w_size - X && (e.match_length = W(e, R)), e.match_length >= C) if (h = n._tr_tally(e, e.strstart - e.match_start, e.match_length - C), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= C) {
1512
- for (e.match_length--; e.strstart++, e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + C - 1]) & e.hash_mask, R = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart, --e.match_length != 0; ) ;
1513
- e.strstart++;
1514
- } else e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 1]) & e.hash_mask;
1515
- else h = n._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
1516
- if (h && (A(e, !1), e.strm.avail_out === 0)) return t;
1517
- }
1518
- return e.insert = e.strstart < C - 1 ? e.strstart : C - 1, z === g ? (A(e, !0), e.strm.avail_out === 0 ? q : P) : e.last_lit && (A(e, !1), e.strm.avail_out === 0) ? t : D;
1519
- }
1520
- function Q(e, z) {
1521
- for (var R, h, l; ; ) {
1522
- if (e.lookahead < X) {
1523
- if (ie(e), e.lookahead < X && z === f) return t;
1524
- if (e.lookahead === 0) break;
1525
- }
1526
- if (R = 0, e.lookahead >= C && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + C - 1]) & e.hash_mask, R = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = C - 1, R !== 0 && e.prev_length < e.max_lazy_match && e.strstart - R <= e.w_size - X && (e.match_length = W(e, R), e.match_length <= 5 && (e.strategy === 1 || e.match_length === C && 4096 < e.strstart - e.match_start) && (e.match_length = C - 1)), e.prev_length >= C && e.match_length <= e.prev_length) {
1527
- for (l = e.strstart + e.lookahead - C, h = n._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - C), e.lookahead -= e.prev_length - 1, e.prev_length -= 2; ++e.strstart <= l && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + C - 1]) & e.hash_mask, R = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), --e.prev_length != 0; ) ;
1528
- if (e.match_available = 0, e.match_length = C - 1, e.strstart++, h && (A(e, !1), e.strm.avail_out === 0)) return t;
1529
- } else if (e.match_available) {
1530
- if ((h = n._tr_tally(e, 0, e.window[e.strstart - 1])) && A(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0) return t;
1531
- } else e.match_available = 1, e.strstart++, e.lookahead--;
1532
- }
1533
- return e.match_available && (h = n._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < C - 1 ? e.strstart : C - 1, z === g ? (A(e, !0), e.strm.avail_out === 0 ? q : P) : e.last_lit && (A(e, !1), e.strm.avail_out === 0) ? t : D;
1534
- }
1535
- function te(e, z, R, h, l) {
1536
- this.good_length = e, this.max_lazy = z, this.nice_length = R, this.max_chain = h, this.func = l;
1537
- }
1538
- function ue() {
1539
- 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 = c, 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 u.Buf16(2 * T), this.dyn_dtree = new u.Buf16(2 * (2 * E + 1)), this.bl_tree = new u.Buf16(2 * (2 * B + 1)), $(this.dyn_ltree), $(this.dyn_dtree), $(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new u.Buf16(L + 1), this.heap = new u.Buf16(2 * x + 1), $(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new u.Buf16(2 * x + 1), $(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
1540
- }
1541
- function ae(e) {
1542
- var z;
1543
- return e && e.state ? (e.total_in = e.total_out = 0, e.data_type = s, (z = e.state).pending = 0, z.pending_out = 0, z.wrap < 0 && (z.wrap = -z.wrap), z.status = z.wrap ? b : O, e.adler = z.wrap === 2 ? 0 : 1, z.last_flush = f, n._tr_init(z), i) : J(e, _);
1544
- }
1545
- function pe(e) {
1546
- var z = ae(e);
1547
- return z === i && function(R) {
1548
- R.window_size = 2 * R.w_size, $(R.head), R.max_lazy_match = d[R.level].max_lazy, R.good_match = d[R.level].good_length, R.nice_match = d[R.level].nice_length, R.max_chain_length = d[R.level].max_chain, R.strstart = 0, R.block_start = 0, R.lookahead = 0, R.insert = 0, R.match_length = R.prev_length = C - 1, R.match_available = 0, R.ins_h = 0;
1549
- }(e.state), z;
1550
- }
1551
- function he(e, z, R, h, l, k) {
1552
- if (!e) return _;
1553
- var U = 1;
1554
- if (z === r && (z = 6), h < 0 ? (U = 0, h = -h) : 15 < h && (U = 2, h -= 16), l < 1 || y < l || R !== c || h < 8 || 15 < h || z < 0 || 9 < z || k < 0 || o < k) return J(e, _);
1555
- h === 8 && (h = 9);
1556
- var F = new ue();
1557
- return (e.state = F).strm = e, F.wrap = U, F.gzhead = null, F.w_bits = h, F.w_size = 1 << F.w_bits, F.w_mask = F.w_size - 1, F.hash_bits = l + 7, F.hash_size = 1 << F.hash_bits, F.hash_mask = F.hash_size - 1, F.hash_shift = ~~((F.hash_bits + C - 1) / C), F.window = new u.Buf8(2 * F.w_size), F.head = new u.Buf16(F.hash_size), F.prev = new u.Buf16(F.w_size), F.lit_bufsize = 1 << l + 6, F.pending_buf_size = 4 * F.lit_bufsize, F.pending_buf = new u.Buf8(F.pending_buf_size), F.d_buf = 1 * F.lit_bufsize, F.l_buf = 3 * F.lit_bufsize, F.level = z, F.strategy = k, F.method = R, pe(e);
1558
- }
1559
- d = [new te(0, 0, 0, 0, function(e, z) {
1560
- var R = 65535;
1561
- for (R > e.pending_buf_size - 5 && (R = e.pending_buf_size - 5); ; ) {
1562
- if (e.lookahead <= 1) {
1563
- if (ie(e), e.lookahead === 0 && z === f) return t;
1564
- if (e.lookahead === 0) break;
1565
- }
1566
- e.strstart += e.lookahead, e.lookahead = 0;
1567
- var h = e.block_start + R;
1568
- if ((e.strstart === 0 || e.strstart >= h) && (e.lookahead = e.strstart - h, e.strstart = h, A(e, !1), e.strm.avail_out === 0) || e.strstart - e.block_start >= e.w_size - X && (A(e, !1), e.strm.avail_out === 0)) return t;
1569
- }
1570
- return e.insert = 0, z === g ? (A(e, !0), e.strm.avail_out === 0 ? q : P) : (e.strstart > e.block_start && (A(e, !1), e.strm.avail_out), t);
1571
- }), new te(4, 4, 8, 4, le), new te(4, 5, 16, 8, le), new te(4, 6, 32, 32, le), new te(4, 4, 16, 16, Q), new te(8, 16, 32, 32, Q), new te(8, 16, 128, 128, Q), new te(8, 32, 128, 256, Q), new te(32, 128, 258, 1024, Q), new te(32, 258, 258, 4096, Q)], w.deflateInit = function(e, z) {
1572
- return he(e, z, c, 15, 8, 0);
1573
- }, w.deflateInit2 = he, w.deflateReset = pe, w.deflateResetKeep = ae, w.deflateSetHeader = function(e, z) {
1574
- return e && e.state ? e.state.wrap !== 2 ? _ : (e.state.gzhead = z, i) : _;
1575
- }, w.deflate = function(e, z) {
1576
- var R, h, l, k;
1577
- if (!e || !e.state || 5 < z || z < 0) return e ? J(e, _) : _;
1578
- if (h = e.state, !e.output || !e.input && e.avail_in !== 0 || h.status === 666 && z !== g) return J(e, e.avail_out === 0 ? -5 : _);
1579
- if (h.strm = e, R = h.last_flush, h.last_flush = z, h.status === b) if (h.wrap === 2) e.adler = 0, K(h, 31), K(h, 139), K(h, 8), h.gzhead ? (K(h, (h.gzhead.text ? 1 : 0) + (h.gzhead.hcrc ? 2 : 0) + (h.gzhead.extra ? 4 : 0) + (h.gzhead.name ? 8 : 0) + (h.gzhead.comment ? 16 : 0)), K(h, 255 & h.gzhead.time), K(h, h.gzhead.time >> 8 & 255), K(h, h.gzhead.time >> 16 & 255), K(h, h.gzhead.time >> 24 & 255), K(h, h.level === 9 ? 2 : 2 <= h.strategy || h.level < 2 ? 4 : 0), K(h, 255 & h.gzhead.os), h.gzhead.extra && h.gzhead.extra.length && (K(h, 255 & h.gzhead.extra.length), K(h, h.gzhead.extra.length >> 8 & 255)), h.gzhead.hcrc && (e.adler = p(e.adler, h.pending_buf, h.pending, 0)), h.gzindex = 0, h.status = 69) : (K(h, 0), K(h, 0), K(h, 0), K(h, 0), K(h, 0), K(h, h.level === 9 ? 2 : 2 <= h.strategy || h.level < 2 ? 4 : 0), K(h, 3), h.status = O);
1580
- else {
1581
- var U = c + (h.w_bits - 8 << 4) << 8;
1582
- U |= (2 <= h.strategy || h.level < 2 ? 0 : h.level < 6 ? 1 : h.level === 6 ? 2 : 3) << 6, h.strstart !== 0 && (U |= 32), U += 31 - U % 31, h.status = O, Z(h, U), h.strstart !== 0 && (Z(h, e.adler >>> 16), Z(h, 65535 & e.adler)), e.adler = 1;
1583
- }
1584
- if (h.status === 69) if (h.gzhead.extra) {
1585
- for (l = h.pending; h.gzindex < (65535 & h.gzhead.extra.length) && (h.pending !== h.pending_buf_size || (h.gzhead.hcrc && h.pending > l && (e.adler = p(e.adler, h.pending_buf, h.pending - l, l)), I(e), l = h.pending, h.pending !== h.pending_buf_size)); ) K(h, 255 & h.gzhead.extra[h.gzindex]), h.gzindex++;
1586
- h.gzhead.hcrc && h.pending > l && (e.adler = p(e.adler, h.pending_buf, h.pending - l, l)), h.gzindex === h.gzhead.extra.length && (h.gzindex = 0, h.status = 73);
1587
- } else h.status = 73;
1588
- if (h.status === 73) if (h.gzhead.name) {
1589
- l = h.pending;
1590
- do {
1591
- if (h.pending === h.pending_buf_size && (h.gzhead.hcrc && h.pending > l && (e.adler = p(e.adler, h.pending_buf, h.pending - l, l)), I(e), l = h.pending, h.pending === h.pending_buf_size)) {
1592
- k = 1;
1593
- break;
1594
- }
1595
- k = h.gzindex < h.gzhead.name.length ? 255 & h.gzhead.name.charCodeAt(h.gzindex++) : 0, K(h, k);
1596
- } while (k !== 0);
1597
- h.gzhead.hcrc && h.pending > l && (e.adler = p(e.adler, h.pending_buf, h.pending - l, l)), k === 0 && (h.gzindex = 0, h.status = 91);
1598
- } else h.status = 91;
1599
- if (h.status === 91) if (h.gzhead.comment) {
1600
- l = h.pending;
1601
- do {
1602
- if (h.pending === h.pending_buf_size && (h.gzhead.hcrc && h.pending > l && (e.adler = p(e.adler, h.pending_buf, h.pending - l, l)), I(e), l = h.pending, h.pending === h.pending_buf_size)) {
1603
- k = 1;
1604
- break;
1605
- }
1606
- k = h.gzindex < h.gzhead.comment.length ? 255 & h.gzhead.comment.charCodeAt(h.gzindex++) : 0, K(h, k);
1607
- } while (k !== 0);
1608
- h.gzhead.hcrc && h.pending > l && (e.adler = p(e.adler, h.pending_buf, h.pending - l, l)), k === 0 && (h.status = 103);
1609
- } else h.status = 103;
1610
- if (h.status === 103 && (h.gzhead.hcrc ? (h.pending + 2 > h.pending_buf_size && I(e), h.pending + 2 <= h.pending_buf_size && (K(h, 255 & e.adler), K(h, e.adler >> 8 & 255), e.adler = 0, h.status = O)) : h.status = O), h.pending !== 0) {
1611
- if (I(e), e.avail_out === 0) return h.last_flush = -1, i;
1612
- } else if (e.avail_in === 0 && M(z) <= M(R) && z !== g) return J(e, -5);
1613
- if (h.status === 666 && e.avail_in !== 0) return J(e, -5);
1614
- if (e.avail_in !== 0 || h.lookahead !== 0 || z !== f && h.status !== 666) {
1615
- var F = h.strategy === 2 ? function(S, j) {
1616
- for (var V; ; ) {
1617
- if (S.lookahead === 0 && (ie(S), S.lookahead === 0)) {
1618
- if (j === f) return t;
1619
- break;
1620
- }
1621
- if (S.match_length = 0, V = n._tr_tally(S, 0, S.window[S.strstart]), S.lookahead--, S.strstart++, V && (A(S, !1), S.strm.avail_out === 0)) return t;
1622
- }
1623
- return S.insert = 0, j === g ? (A(S, !0), S.strm.avail_out === 0 ? q : P) : S.last_lit && (A(S, !1), S.strm.avail_out === 0) ? t : D;
1624
- }(h, z) : h.strategy === 3 ? function(S, j) {
1625
- for (var V, G, Y, ne, ee = S.window; ; ) {
1626
- if (S.lookahead <= H) {
1627
- if (ie(S), S.lookahead <= H && j === f) return t;
1628
- if (S.lookahead === 0) break;
1629
- }
1630
- if (S.match_length = 0, S.lookahead >= C && 0 < S.strstart && (G = ee[Y = S.strstart - 1]) === ee[++Y] && G === ee[++Y] && G === ee[++Y]) {
1631
- ne = S.strstart + H;
1632
- do
1633
- ;
1634
- while (G === ee[++Y] && G === ee[++Y] && G === ee[++Y] && G === ee[++Y] && G === ee[++Y] && G === ee[++Y] && G === ee[++Y] && G === ee[++Y] && Y < ne);
1635
- S.match_length = H - (ne - Y), S.match_length > S.lookahead && (S.match_length = S.lookahead);
1636
- }
1637
- if (S.match_length >= C ? (V = n._tr_tally(S, 1, S.match_length - C), S.lookahead -= S.match_length, S.strstart += S.match_length, S.match_length = 0) : (V = n._tr_tally(S, 0, S.window[S.strstart]), S.lookahead--, S.strstart++), V && (A(S, !1), S.strm.avail_out === 0)) return t;
1638
- }
1639
- return S.insert = 0, j === g ? (A(S, !0), S.strm.avail_out === 0 ? q : P) : S.last_lit && (A(S, !1), S.strm.avail_out === 0) ? t : D;
1640
- }(h, z) : d[h.level].func(h, z);
1641
- if (F !== q && F !== P || (h.status = 666), F === t || F === q) return e.avail_out === 0 && (h.last_flush = -1), i;
1642
- if (F === D && (z === 1 ? n._tr_align(h) : z !== 5 && (n._tr_stored_block(h, 0, 0, !1), z === 3 && ($(h.head), h.lookahead === 0 && (h.strstart = 0, h.block_start = 0, h.insert = 0))), I(e), e.avail_out === 0)) return h.last_flush = -1, i;
1643
- }
1644
- return z !== g ? i : h.wrap <= 0 ? 1 : (h.wrap === 2 ? (K(h, 255 & e.adler), K(h, e.adler >> 8 & 255), K(h, e.adler >> 16 & 255), K(h, e.adler >> 24 & 255), K(h, 255 & e.total_in), K(h, e.total_in >> 8 & 255), K(h, e.total_in >> 16 & 255), K(h, e.total_in >> 24 & 255)) : (Z(h, e.adler >>> 16), Z(h, 65535 & e.adler)), I(e), 0 < h.wrap && (h.wrap = -h.wrap), h.pending !== 0 ? i : 1);
1645
- }, w.deflateEnd = function(e) {
1646
- var z;
1647
- return e && e.state ? (z = e.state.status) !== b && z !== 69 && z !== 73 && z !== 91 && z !== 103 && z !== O && z !== 666 ? J(e, _) : (e.state = null, z === O ? J(e, -3) : i) : _;
1648
- }, w.deflateSetDictionary = function(e, z) {
1649
- var R, h, l, k, U, F, S, j, V = z.length;
1650
- if (!e || !e.state || (k = (R = e.state).wrap) === 2 || k === 1 && R.status !== b || R.lookahead) return _;
1651
- for (k === 1 && (e.adler = a(e.adler, z, V, 0)), R.wrap = 0, V >= R.w_size && (k === 0 && ($(R.head), R.strstart = 0, R.block_start = 0, R.insert = 0), j = new u.Buf8(R.w_size), u.arraySet(j, z, V - R.w_size, R.w_size, 0), z = j, V = R.w_size), U = e.avail_in, F = e.next_in, S = e.input, e.avail_in = V, e.next_in = 0, e.input = z, ie(R); R.lookahead >= C; ) {
1652
- for (h = R.strstart, l = R.lookahead - (C - 1); R.ins_h = (R.ins_h << R.hash_shift ^ R.window[h + C - 1]) & R.hash_mask, R.prev[h & R.w_mask] = R.head[R.ins_h], R.head[R.ins_h] = h, h++, --l; ) ;
1653
- R.strstart = h, R.lookahead = C - 1, ie(R);
1654
- }
1655
- return R.strstart += R.lookahead, R.block_start = R.strstart, R.insert = R.lookahead, R.lookahead = 0, R.match_length = R.prev_length = C - 1, R.match_available = 0, e.next_in = F, e.input = S, e.avail_in = U, R.wrap = k, i;
1656
- }, w.deflateInfo = "pako deflate (from Nodeca project)";
1657
- }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(m, N, w) {
1658
- N.exports = function() {
1659
- 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;
1660
- };
1661
- }, {}], 48: [function(m, N, w) {
1662
- N.exports = function(d, u) {
1663
- var n, a, p, v, f, g, i, _, r, o, s, c, y, x, E, B, T, L, C, H, X, b, O, t, D;
1664
- n = d.state, a = d.next_in, t = d.input, p = a + (d.avail_in - 5), v = d.next_out, D = d.output, f = v - (u - d.avail_out), g = v + (d.avail_out - 257), i = n.dmax, _ = n.wsize, r = n.whave, o = n.wnext, s = n.window, c = n.hold, y = n.bits, x = n.lencode, E = n.distcode, B = (1 << n.lenbits) - 1, T = (1 << n.distbits) - 1;
1665
- e: do {
1666
- y < 15 && (c += t[a++] << y, y += 8, c += t[a++] << y, y += 8), L = x[c & B];
1667
- t: for (; ; ) {
1668
- if (c >>>= C = L >>> 24, y -= C, (C = L >>> 16 & 255) === 0) D[v++] = 65535 & L;
1669
- else {
1670
- if (!(16 & C)) {
1671
- if ((64 & C) == 0) {
1672
- L = x[(65535 & L) + (c & (1 << C) - 1)];
1673
- continue t;
1674
- }
1675
- if (32 & C) {
1676
- n.mode = 12;
1677
- break e;
1678
- }
1679
- d.msg = "invalid literal/length code", n.mode = 30;
1680
- break e;
1681
- }
1682
- H = 65535 & L, (C &= 15) && (y < C && (c += t[a++] << y, y += 8), H += c & (1 << C) - 1, c >>>= C, y -= C), y < 15 && (c += t[a++] << y, y += 8, c += t[a++] << y, y += 8), L = E[c & T];
1683
- r: for (; ; ) {
1684
- if (c >>>= C = L >>> 24, y -= C, !(16 & (C = L >>> 16 & 255))) {
1685
- if ((64 & C) == 0) {
1686
- L = E[(65535 & L) + (c & (1 << C) - 1)];
1687
- continue r;
1688
- }
1689
- d.msg = "invalid distance code", n.mode = 30;
1690
- break e;
1691
- }
1692
- if (X = 65535 & L, y < (C &= 15) && (c += t[a++] << y, (y += 8) < C && (c += t[a++] << y, y += 8)), i < (X += c & (1 << C) - 1)) {
1693
- d.msg = "invalid distance too far back", n.mode = 30;
1694
- break e;
1695
- }
1696
- if (c >>>= C, y -= C, (C = v - f) < X) {
1697
- if (r < (C = X - C) && n.sane) {
1698
- d.msg = "invalid distance too far back", n.mode = 30;
1699
- break e;
1700
- }
1701
- if (O = s, (b = 0) === o) {
1702
- if (b += _ - C, C < H) {
1703
- for (H -= C; D[v++] = s[b++], --C; ) ;
1704
- b = v - X, O = D;
1705
- }
1706
- } else if (o < C) {
1707
- if (b += _ + o - C, (C -= o) < H) {
1708
- for (H -= C; D[v++] = s[b++], --C; ) ;
1709
- if (b = 0, o < H) {
1710
- for (H -= C = o; D[v++] = s[b++], --C; ) ;
1711
- b = v - X, O = D;
1712
- }
1713
- }
1714
- } else if (b += o - C, C < H) {
1715
- for (H -= C; D[v++] = s[b++], --C; ) ;
1716
- b = v - X, O = D;
1717
- }
1718
- for (; 2 < H; ) D[v++] = O[b++], D[v++] = O[b++], D[v++] = O[b++], H -= 3;
1719
- H && (D[v++] = O[b++], 1 < H && (D[v++] = O[b++]));
1720
- } else {
1721
- for (b = v - X; D[v++] = D[b++], D[v++] = D[b++], D[v++] = D[b++], 2 < (H -= 3); ) ;
1722
- H && (D[v++] = D[b++], 1 < H && (D[v++] = D[b++]));
1723
- }
1724
- break;
1725
- }
1726
- }
1727
- break;
1728
- }
1729
- } while (a < p && v < g);
1730
- a -= H = y >> 3, c &= (1 << (y -= H << 3)) - 1, d.next_in = a, d.next_out = v, d.avail_in = a < p ? p - a + 5 : 5 - (a - p), d.avail_out = v < g ? g - v + 257 : 257 - (v - g), n.hold = c, n.bits = y;
1731
- };
1732
- }, {}], 49: [function(m, N, w) {
1733
- var d = m("../utils/common"), u = m("./adler32"), n = m("./crc32"), a = m("./inffast"), p = m("./inftrees"), v = 1, f = 2, g = 0, i = -2, _ = 1, r = 852, o = 592;
1734
- function s(b) {
1735
- return (b >>> 24 & 255) + (b >>> 8 & 65280) + ((65280 & b) << 8) + ((255 & b) << 24);
1736
- }
1737
- function c() {
1738
- 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 d.Buf16(320), this.work = new d.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
1739
- }
1740
- function y(b) {
1741
- var O;
1742
- return b && b.state ? (O = b.state, b.total_in = b.total_out = O.total = 0, b.msg = "", O.wrap && (b.adler = 1 & O.wrap), O.mode = _, O.last = 0, O.havedict = 0, O.dmax = 32768, O.head = null, O.hold = 0, O.bits = 0, O.lencode = O.lendyn = new d.Buf32(r), O.distcode = O.distdyn = new d.Buf32(o), O.sane = 1, O.back = -1, g) : i;
1743
- }
1744
- function x(b) {
1745
- var O;
1746
- return b && b.state ? ((O = b.state).wsize = 0, O.whave = 0, O.wnext = 0, y(b)) : i;
1747
- }
1748
- function E(b, O) {
1749
- var t, D;
1750
- return b && b.state ? (D = b.state, O < 0 ? (t = 0, O = -O) : (t = 1 + (O >> 4), O < 48 && (O &= 15)), O && (O < 8 || 15 < O) ? i : (D.window !== null && D.wbits !== O && (D.window = null), D.wrap = t, D.wbits = O, x(b))) : i;
1751
- }
1752
- function B(b, O) {
1753
- var t, D;
1754
- return b ? (D = new c(), (b.state = D).window = null, (t = E(b, O)) !== g && (b.state = null), t) : i;
1755
- }
1756
- var T, L, C = !0;
1757
- function H(b) {
1758
- if (C) {
1759
- var O;
1760
- for (T = new d.Buf32(512), L = new d.Buf32(32), O = 0; O < 144; ) b.lens[O++] = 8;
1761
- for (; O < 256; ) b.lens[O++] = 9;
1762
- for (; O < 280; ) b.lens[O++] = 7;
1763
- for (; O < 288; ) b.lens[O++] = 8;
1764
- for (p(v, b.lens, 0, 288, T, 0, b.work, { bits: 9 }), O = 0; O < 32; ) b.lens[O++] = 5;
1765
- p(f, b.lens, 0, 32, L, 0, b.work, { bits: 5 }), C = !1;
1766
- }
1767
- b.lencode = T, b.lenbits = 9, b.distcode = L, b.distbits = 5;
1768
- }
1769
- function X(b, O, t, D) {
1770
- var q, P = b.state;
1771
- return P.window === null && (P.wsize = 1 << P.wbits, P.wnext = 0, P.whave = 0, P.window = new d.Buf8(P.wsize)), D >= P.wsize ? (d.arraySet(P.window, O, t - P.wsize, P.wsize, 0), P.wnext = 0, P.whave = P.wsize) : (D < (q = P.wsize - P.wnext) && (q = D), d.arraySet(P.window, O, t - D, q, P.wnext), (D -= q) ? (d.arraySet(P.window, O, t - D, D, 0), P.wnext = D, P.whave = P.wsize) : (P.wnext += q, P.wnext === P.wsize && (P.wnext = 0), P.whave < P.wsize && (P.whave += q))), 0;
1772
- }
1773
- w.inflateReset = x, w.inflateReset2 = E, w.inflateResetKeep = y, w.inflateInit = function(b) {
1774
- return B(b, 15);
1775
- }, w.inflateInit2 = B, w.inflate = function(b, O) {
1776
- var t, D, q, P, J, M, $, I, A, K, Z, W, ie, le, Q, te, ue, ae, pe, he, e, z, R, h, l = 0, k = new d.Buf8(4), U = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
1777
- if (!b || !b.state || !b.output || !b.input && b.avail_in !== 0) return i;
1778
- (t = b.state).mode === 12 && (t.mode = 13), J = b.next_out, q = b.output, $ = b.avail_out, P = b.next_in, D = b.input, M = b.avail_in, I = t.hold, A = t.bits, K = M, Z = $, z = g;
1779
- e: for (; ; ) switch (t.mode) {
1780
- case _:
1781
- if (t.wrap === 0) {
1782
- t.mode = 13;
1783
- break;
1784
- }
1785
- for (; A < 16; ) {
1786
- if (M === 0) break e;
1787
- M--, I += D[P++] << A, A += 8;
1788
- }
1789
- if (2 & t.wrap && I === 35615) {
1790
- k[t.check = 0] = 255 & I, k[1] = I >>> 8 & 255, t.check = n(t.check, k, 2, 0), A = I = 0, t.mode = 2;
1791
- break;
1792
- }
1793
- if (t.flags = 0, t.head && (t.head.done = !1), !(1 & t.wrap) || (((255 & I) << 8) + (I >> 8)) % 31) {
1794
- b.msg = "incorrect header check", t.mode = 30;
1795
- break;
1796
- }
1797
- if ((15 & I) != 8) {
1798
- b.msg = "unknown compression method", t.mode = 30;
1799
- break;
1800
- }
1801
- if (A -= 4, e = 8 + (15 & (I >>>= 4)), t.wbits === 0) t.wbits = e;
1802
- else if (e > t.wbits) {
1803
- b.msg = "invalid window size", t.mode = 30;
1804
- break;
1805
- }
1806
- t.dmax = 1 << e, b.adler = t.check = 1, t.mode = 512 & I ? 10 : 12, A = I = 0;
1807
- break;
1808
- case 2:
1809
- for (; A < 16; ) {
1810
- if (M === 0) break e;
1811
- M--, I += D[P++] << A, A += 8;
1812
- }
1813
- if (t.flags = I, (255 & t.flags) != 8) {
1814
- b.msg = "unknown compression method", t.mode = 30;
1815
- break;
1816
- }
1817
- if (57344 & t.flags) {
1818
- b.msg = "unknown header flags set", t.mode = 30;
1819
- break;
1820
- }
1821
- t.head && (t.head.text = I >> 8 & 1), 512 & t.flags && (k[0] = 255 & I, k[1] = I >>> 8 & 255, t.check = n(t.check, k, 2, 0)), A = I = 0, t.mode = 3;
1822
- case 3:
1823
- for (; A < 32; ) {
1824
- if (M === 0) break e;
1825
- M--, I += D[P++] << A, A += 8;
1826
- }
1827
- t.head && (t.head.time = I), 512 & t.flags && (k[0] = 255 & I, k[1] = I >>> 8 & 255, k[2] = I >>> 16 & 255, k[3] = I >>> 24 & 255, t.check = n(t.check, k, 4, 0)), A = I = 0, t.mode = 4;
1828
- case 4:
1829
- for (; A < 16; ) {
1830
- if (M === 0) break e;
1831
- M--, I += D[P++] << A, A += 8;
1832
- }
1833
- t.head && (t.head.xflags = 255 & I, t.head.os = I >> 8), 512 & t.flags && (k[0] = 255 & I, k[1] = I >>> 8 & 255, t.check = n(t.check, k, 2, 0)), A = I = 0, t.mode = 5;
1834
- case 5:
1835
- if (1024 & t.flags) {
1836
- for (; A < 16; ) {
1837
- if (M === 0) break e;
1838
- M--, I += D[P++] << A, A += 8;
1839
- }
1840
- t.length = I, t.head && (t.head.extra_len = I), 512 & t.flags && (k[0] = 255 & I, k[1] = I >>> 8 & 255, t.check = n(t.check, k, 2, 0)), A = I = 0;
1841
- } else t.head && (t.head.extra = null);
1842
- t.mode = 6;
1843
- case 6:
1844
- if (1024 & t.flags && (M < (W = t.length) && (W = M), W && (t.head && (e = t.head.extra_len - t.length, t.head.extra || (t.head.extra = new Array(t.head.extra_len)), d.arraySet(t.head.extra, D, P, W, e)), 512 & t.flags && (t.check = n(t.check, D, W, P)), M -= W, P += W, t.length -= W), t.length)) break e;
1845
- t.length = 0, t.mode = 7;
1846
- case 7:
1847
- if (2048 & t.flags) {
1848
- if (M === 0) break e;
1849
- for (W = 0; e = D[P + W++], t.head && e && t.length < 65536 && (t.head.name += String.fromCharCode(e)), e && W < M; ) ;
1850
- if (512 & t.flags && (t.check = n(t.check, D, W, P)), M -= W, P += W, e) break e;
1851
- } else t.head && (t.head.name = null);
1852
- t.length = 0, t.mode = 8;
1853
- case 8:
1854
- if (4096 & t.flags) {
1855
- if (M === 0) break e;
1856
- for (W = 0; e = D[P + W++], t.head && e && t.length < 65536 && (t.head.comment += String.fromCharCode(e)), e && W < M; ) ;
1857
- if (512 & t.flags && (t.check = n(t.check, D, W, P)), M -= W, P += W, e) break e;
1858
- } else t.head && (t.head.comment = null);
1859
- t.mode = 9;
1860
- case 9:
1861
- if (512 & t.flags) {
1862
- for (; A < 16; ) {
1863
- if (M === 0) break e;
1864
- M--, I += D[P++] << A, A += 8;
1865
- }
1866
- if (I !== (65535 & t.check)) {
1867
- b.msg = "header crc mismatch", t.mode = 30;
1868
- break;
1869
- }
1870
- A = I = 0;
1871
- }
1872
- t.head && (t.head.hcrc = t.flags >> 9 & 1, t.head.done = !0), b.adler = t.check = 0, t.mode = 12;
1873
- break;
1874
- case 10:
1875
- for (; A < 32; ) {
1876
- if (M === 0) break e;
1877
- M--, I += D[P++] << A, A += 8;
1878
- }
1879
- b.adler = t.check = s(I), A = I = 0, t.mode = 11;
1880
- case 11:
1881
- if (t.havedict === 0) return b.next_out = J, b.avail_out = $, b.next_in = P, b.avail_in = M, t.hold = I, t.bits = A, 2;
1882
- b.adler = t.check = 1, t.mode = 12;
1883
- case 12:
1884
- if (O === 5 || O === 6) break e;
1885
- case 13:
1886
- if (t.last) {
1887
- I >>>= 7 & A, A -= 7 & A, t.mode = 27;
1888
- break;
1889
- }
1890
- for (; A < 3; ) {
1891
- if (M === 0) break e;
1892
- M--, I += D[P++] << A, A += 8;
1893
- }
1894
- switch (t.last = 1 & I, A -= 1, 3 & (I >>>= 1)) {
1895
- case 0:
1896
- t.mode = 14;
1897
- break;
1898
- case 1:
1899
- if (H(t), t.mode = 20, O !== 6) break;
1900
- I >>>= 2, A -= 2;
1901
- break e;
1902
- case 2:
1903
- t.mode = 17;
1904
- break;
1905
- case 3:
1906
- b.msg = "invalid block type", t.mode = 30;
1907
- }
1908
- I >>>= 2, A -= 2;
1909
- break;
1910
- case 14:
1911
- for (I >>>= 7 & A, A -= 7 & A; A < 32; ) {
1912
- if (M === 0) break e;
1913
- M--, I += D[P++] << A, A += 8;
1914
- }
1915
- if ((65535 & I) != (I >>> 16 ^ 65535)) {
1916
- b.msg = "invalid stored block lengths", t.mode = 30;
1917
- break;
1918
- }
1919
- if (t.length = 65535 & I, A = I = 0, t.mode = 15, O === 6) break e;
1920
- case 15:
1921
- t.mode = 16;
1922
- case 16:
1923
- if (W = t.length) {
1924
- if (M < W && (W = M), $ < W && (W = $), W === 0) break e;
1925
- d.arraySet(q, D, P, W, J), M -= W, P += W, $ -= W, J += W, t.length -= W;
1926
- break;
1927
- }
1928
- t.mode = 12;
1929
- break;
1930
- case 17:
1931
- for (; A < 14; ) {
1932
- if (M === 0) break e;
1933
- M--, I += D[P++] << A, A += 8;
1934
- }
1935
- if (t.nlen = 257 + (31 & I), I >>>= 5, A -= 5, t.ndist = 1 + (31 & I), I >>>= 5, A -= 5, t.ncode = 4 + (15 & I), I >>>= 4, A -= 4, 286 < t.nlen || 30 < t.ndist) {
1936
- b.msg = "too many length or distance symbols", t.mode = 30;
1937
- break;
1938
- }
1939
- t.have = 0, t.mode = 18;
1940
- case 18:
1941
- for (; t.have < t.ncode; ) {
1942
- for (; A < 3; ) {
1943
- if (M === 0) break e;
1944
- M--, I += D[P++] << A, A += 8;
1945
- }
1946
- t.lens[U[t.have++]] = 7 & I, I >>>= 3, A -= 3;
1947
- }
1948
- for (; t.have < 19; ) t.lens[U[t.have++]] = 0;
1949
- if (t.lencode = t.lendyn, t.lenbits = 7, R = { bits: t.lenbits }, z = p(0, t.lens, 0, 19, t.lencode, 0, t.work, R), t.lenbits = R.bits, z) {
1950
- b.msg = "invalid code lengths set", t.mode = 30;
1951
- break;
1952
- }
1953
- t.have = 0, t.mode = 19;
1954
- case 19:
1955
- for (; t.have < t.nlen + t.ndist; ) {
1956
- for (; te = (l = t.lencode[I & (1 << t.lenbits) - 1]) >>> 16 & 255, ue = 65535 & l, !((Q = l >>> 24) <= A); ) {
1957
- if (M === 0) break e;
1958
- M--, I += D[P++] << A, A += 8;
1959
- }
1960
- if (ue < 16) I >>>= Q, A -= Q, t.lens[t.have++] = ue;
1961
- else {
1962
- if (ue === 16) {
1963
- for (h = Q + 2; A < h; ) {
1964
- if (M === 0) break e;
1965
- M--, I += D[P++] << A, A += 8;
1966
- }
1967
- if (I >>>= Q, A -= Q, t.have === 0) {
1968
- b.msg = "invalid bit length repeat", t.mode = 30;
1969
- break;
1970
- }
1971
- e = t.lens[t.have - 1], W = 3 + (3 & I), I >>>= 2, A -= 2;
1972
- } else if (ue === 17) {
1973
- for (h = Q + 3; A < h; ) {
1974
- if (M === 0) break e;
1975
- M--, I += D[P++] << A, A += 8;
1976
- }
1977
- A -= Q, e = 0, W = 3 + (7 & (I >>>= Q)), I >>>= 3, A -= 3;
1978
- } else {
1979
- for (h = Q + 7; A < h; ) {
1980
- if (M === 0) break e;
1981
- M--, I += D[P++] << A, A += 8;
1982
- }
1983
- A -= Q, e = 0, W = 11 + (127 & (I >>>= Q)), I >>>= 7, A -= 7;
1984
- }
1985
- if (t.have + W > t.nlen + t.ndist) {
1986
- b.msg = "invalid bit length repeat", t.mode = 30;
1987
- break;
1988
- }
1989
- for (; W--; ) t.lens[t.have++] = e;
1990
- }
1991
- }
1992
- if (t.mode === 30) break;
1993
- if (t.lens[256] === 0) {
1994
- b.msg = "invalid code -- missing end-of-block", t.mode = 30;
1995
- break;
1996
- }
1997
- if (t.lenbits = 9, R = { bits: t.lenbits }, z = p(v, t.lens, 0, t.nlen, t.lencode, 0, t.work, R), t.lenbits = R.bits, z) {
1998
- b.msg = "invalid literal/lengths set", t.mode = 30;
1999
- break;
2000
- }
2001
- if (t.distbits = 6, t.distcode = t.distdyn, R = { bits: t.distbits }, z = p(f, t.lens, t.nlen, t.ndist, t.distcode, 0, t.work, R), t.distbits = R.bits, z) {
2002
- b.msg = "invalid distances set", t.mode = 30;
2003
- break;
2004
- }
2005
- if (t.mode = 20, O === 6) break e;
2006
- case 20:
2007
- t.mode = 21;
2008
- case 21:
2009
- if (6 <= M && 258 <= $) {
2010
- b.next_out = J, b.avail_out = $, b.next_in = P, b.avail_in = M, t.hold = I, t.bits = A, a(b, Z), J = b.next_out, q = b.output, $ = b.avail_out, P = b.next_in, D = b.input, M = b.avail_in, I = t.hold, A = t.bits, t.mode === 12 && (t.back = -1);
2011
- break;
2012
- }
2013
- for (t.back = 0; te = (l = t.lencode[I & (1 << t.lenbits) - 1]) >>> 16 & 255, ue = 65535 & l, !((Q = l >>> 24) <= A); ) {
2014
- if (M === 0) break e;
2015
- M--, I += D[P++] << A, A += 8;
2016
- }
2017
- if (te && (240 & te) == 0) {
2018
- for (ae = Q, pe = te, he = ue; te = (l = t.lencode[he + ((I & (1 << ae + pe) - 1) >> ae)]) >>> 16 & 255, ue = 65535 & l, !(ae + (Q = l >>> 24) <= A); ) {
2019
- if (M === 0) break e;
2020
- M--, I += D[P++] << A, A += 8;
2021
- }
2022
- I >>>= ae, A -= ae, t.back += ae;
2023
- }
2024
- if (I >>>= Q, A -= Q, t.back += Q, t.length = ue, te === 0) {
2025
- t.mode = 26;
2026
- break;
2027
- }
2028
- if (32 & te) {
2029
- t.back = -1, t.mode = 12;
2030
- break;
2031
- }
2032
- if (64 & te) {
2033
- b.msg = "invalid literal/length code", t.mode = 30;
2034
- break;
2035
- }
2036
- t.extra = 15 & te, t.mode = 22;
2037
- case 22:
2038
- if (t.extra) {
2039
- for (h = t.extra; A < h; ) {
2040
- if (M === 0) break e;
2041
- M--, I += D[P++] << A, A += 8;
2042
- }
2043
- t.length += I & (1 << t.extra) - 1, I >>>= t.extra, A -= t.extra, t.back += t.extra;
2044
- }
2045
- t.was = t.length, t.mode = 23;
2046
- case 23:
2047
- for (; te = (l = t.distcode[I & (1 << t.distbits) - 1]) >>> 16 & 255, ue = 65535 & l, !((Q = l >>> 24) <= A); ) {
2048
- if (M === 0) break e;
2049
- M--, I += D[P++] << A, A += 8;
2050
- }
2051
- if ((240 & te) == 0) {
2052
- for (ae = Q, pe = te, he = ue; te = (l = t.distcode[he + ((I & (1 << ae + pe) - 1) >> ae)]) >>> 16 & 255, ue = 65535 & l, !(ae + (Q = l >>> 24) <= A); ) {
2053
- if (M === 0) break e;
2054
- M--, I += D[P++] << A, A += 8;
2055
- }
2056
- I >>>= ae, A -= ae, t.back += ae;
2057
- }
2058
- if (I >>>= Q, A -= Q, t.back += Q, 64 & te) {
2059
- b.msg = "invalid distance code", t.mode = 30;
2060
- break;
2061
- }
2062
- t.offset = ue, t.extra = 15 & te, t.mode = 24;
2063
- case 24:
2064
- if (t.extra) {
2065
- for (h = t.extra; A < h; ) {
2066
- if (M === 0) break e;
2067
- M--, I += D[P++] << A, A += 8;
2068
- }
2069
- t.offset += I & (1 << t.extra) - 1, I >>>= t.extra, A -= t.extra, t.back += t.extra;
2070
- }
2071
- if (t.offset > t.dmax) {
2072
- b.msg = "invalid distance too far back", t.mode = 30;
2073
- break;
2074
- }
2075
- t.mode = 25;
2076
- case 25:
2077
- if ($ === 0) break e;
2078
- if (W = Z - $, t.offset > W) {
2079
- if ((W = t.offset - W) > t.whave && t.sane) {
2080
- b.msg = "invalid distance too far back", t.mode = 30;
2081
- break;
2082
- }
2083
- ie = W > t.wnext ? (W -= t.wnext, t.wsize - W) : t.wnext - W, W > t.length && (W = t.length), le = t.window;
2084
- } else le = q, ie = J - t.offset, W = t.length;
2085
- for ($ < W && (W = $), $ -= W, t.length -= W; q[J++] = le[ie++], --W; ) ;
2086
- t.length === 0 && (t.mode = 21);
2087
- break;
2088
- case 26:
2089
- if ($ === 0) break e;
2090
- q[J++] = t.length, $--, t.mode = 21;
2091
- break;
2092
- case 27:
2093
- if (t.wrap) {
2094
- for (; A < 32; ) {
2095
- if (M === 0) break e;
2096
- M--, I |= D[P++] << A, A += 8;
2097
- }
2098
- if (Z -= $, b.total_out += Z, t.total += Z, Z && (b.adler = t.check = t.flags ? n(t.check, q, Z, J - Z) : u(t.check, q, Z, J - Z)), Z = $, (t.flags ? I : s(I)) !== t.check) {
2099
- b.msg = "incorrect data check", t.mode = 30;
2100
- break;
2101
- }
2102
- A = I = 0;
2103
- }
2104
- t.mode = 28;
2105
- case 28:
2106
- if (t.wrap && t.flags) {
2107
- for (; A < 32; ) {
2108
- if (M === 0) break e;
2109
- M--, I += D[P++] << A, A += 8;
2110
- }
2111
- if (I !== (4294967295 & t.total)) {
2112
- b.msg = "incorrect length check", t.mode = 30;
2113
- break;
2114
- }
2115
- A = I = 0;
2116
- }
2117
- t.mode = 29;
2118
- case 29:
2119
- z = 1;
2120
- break e;
2121
- case 30:
2122
- z = -3;
2123
- break e;
2124
- case 31:
2125
- return -4;
2126
- case 32:
2127
- default:
2128
- return i;
2129
- }
2130
- return b.next_out = J, b.avail_out = $, b.next_in = P, b.avail_in = M, t.hold = I, t.bits = A, (t.wsize || Z !== b.avail_out && t.mode < 30 && (t.mode < 27 || O !== 4)) && X(b, b.output, b.next_out, Z - b.avail_out) ? (t.mode = 31, -4) : (K -= b.avail_in, Z -= b.avail_out, b.total_in += K, b.total_out += Z, t.total += Z, t.wrap && Z && (b.adler = t.check = t.flags ? n(t.check, q, Z, b.next_out - Z) : u(t.check, q, Z, b.next_out - Z)), b.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === 12 ? 128 : 0) + (t.mode === 20 || t.mode === 15 ? 256 : 0), (K == 0 && Z === 0 || O === 4) && z === g && (z = -5), z);
2131
- }, w.inflateEnd = function(b) {
2132
- if (!b || !b.state) return i;
2133
- var O = b.state;
2134
- return O.window && (O.window = null), b.state = null, g;
2135
- }, w.inflateGetHeader = function(b, O) {
2136
- var t;
2137
- return b && b.state ? (2 & (t = b.state).wrap) == 0 ? i : ((t.head = O).done = !1, g) : i;
2138
- }, w.inflateSetDictionary = function(b, O) {
2139
- var t, D = O.length;
2140
- return b && b.state ? (t = b.state).wrap !== 0 && t.mode !== 11 ? i : t.mode === 11 && u(1, O, D, 0) !== t.check ? -3 : X(b, O, D, D) ? (t.mode = 31, -4) : (t.havedict = 1, g) : i;
2141
- }, w.inflateInfo = "pako inflate (from Nodeca project)";
2142
- }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(m, N, w) {
2143
- var d = m("../utils/common"), u = [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], n = [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], a = [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], p = [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];
2144
- N.exports = function(v, f, g, i, _, r, o, s) {
2145
- var c, y, x, E, B, T, L, C, H, X = s.bits, b = 0, O = 0, t = 0, D = 0, q = 0, P = 0, J = 0, M = 0, $ = 0, I = 0, A = null, K = 0, Z = new d.Buf16(16), W = new d.Buf16(16), ie = null, le = 0;
2146
- for (b = 0; b <= 15; b++) Z[b] = 0;
2147
- for (O = 0; O < i; O++) Z[f[g + O]]++;
2148
- for (q = X, D = 15; 1 <= D && Z[D] === 0; D--) ;
2149
- if (D < q && (q = D), D === 0) return _[r++] = 20971520, _[r++] = 20971520, s.bits = 1, 0;
2150
- for (t = 1; t < D && Z[t] === 0; t++) ;
2151
- for (q < t && (q = t), b = M = 1; b <= 15; b++) if (M <<= 1, (M -= Z[b]) < 0) return -1;
2152
- if (0 < M && (v === 0 || D !== 1)) return -1;
2153
- for (W[1] = 0, b = 1; b < 15; b++) W[b + 1] = W[b] + Z[b];
2154
- for (O = 0; O < i; O++) f[g + O] !== 0 && (o[W[f[g + O]]++] = O);
2155
- if (T = v === 0 ? (A = ie = o, 19) : v === 1 ? (A = u, K -= 257, ie = n, le -= 257, 256) : (A = a, ie = p, -1), b = t, B = r, J = O = I = 0, x = -1, E = ($ = 1 << (P = q)) - 1, v === 1 && 852 < $ || v === 2 && 592 < $) return 1;
2156
- for (; ; ) {
2157
- for (L = b - J, H = o[O] < T ? (C = 0, o[O]) : o[O] > T ? (C = ie[le + o[O]], A[K + o[O]]) : (C = 96, 0), c = 1 << b - J, t = y = 1 << P; _[B + (I >> J) + (y -= c)] = L << 24 | C << 16 | H | 0, y !== 0; ) ;
2158
- for (c = 1 << b - 1; I & c; ) c >>= 1;
2159
- if (c !== 0 ? (I &= c - 1, I += c) : I = 0, O++, --Z[b] == 0) {
2160
- if (b === D) break;
2161
- b = f[g + o[O]];
2162
- }
2163
- if (q < b && (I & E) !== x) {
2164
- for (J === 0 && (J = q), B += t, M = 1 << (P = b - J); P + J < D && !((M -= Z[P + J]) <= 0); ) P++, M <<= 1;
2165
- if ($ += 1 << P, v === 1 && 852 < $ || v === 2 && 592 < $) return 1;
2166
- _[x = I & E] = q << 24 | P << 16 | B - r | 0;
2167
- }
2168
- }
2169
- return I !== 0 && (_[B + I] = b - J << 24 | 64 << 16 | 0), s.bits = q, 0;
2170
- };
2171
- }, { "../utils/common": 41 }], 51: [function(m, N, w) {
2172
- N.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
2173
- }, {}], 52: [function(m, N, w) {
2174
- var d = m("../utils/common"), u = 0, n = 1;
2175
- function a(l) {
2176
- for (var k = l.length; 0 <= --k; ) l[k] = 0;
2177
- }
2178
- var p = 0, v = 29, f = 256, g = f + 1 + v, i = 30, _ = 19, r = 2 * g + 1, o = 15, s = 16, c = 7, y = 256, x = 16, E = 17, B = 18, T = [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], L = [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], C = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], H = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], X = new Array(2 * (g + 2));
2179
- a(X);
2180
- var b = new Array(2 * i);
2181
- a(b);
2182
- var O = new Array(512);
2183
- a(O);
2184
- var t = new Array(256);
2185
- a(t);
2186
- var D = new Array(v);
2187
- a(D);
2188
- var q, P, J, M = new Array(i);
2189
- function $(l, k, U, F, S) {
2190
- this.static_tree = l, this.extra_bits = k, this.extra_base = U, this.elems = F, this.max_length = S, this.has_stree = l && l.length;
2191
- }
2192
- function I(l, k) {
2193
- this.dyn_tree = l, this.max_code = 0, this.stat_desc = k;
2194
- }
2195
- function A(l) {
2196
- return l < 256 ? O[l] : O[256 + (l >>> 7)];
2197
- }
2198
- function K(l, k) {
2199
- l.pending_buf[l.pending++] = 255 & k, l.pending_buf[l.pending++] = k >>> 8 & 255;
2200
- }
2201
- function Z(l, k, U) {
2202
- l.bi_valid > s - U ? (l.bi_buf |= k << l.bi_valid & 65535, K(l, l.bi_buf), l.bi_buf = k >> s - l.bi_valid, l.bi_valid += U - s) : (l.bi_buf |= k << l.bi_valid & 65535, l.bi_valid += U);
2203
- }
2204
- function W(l, k, U) {
2205
- Z(l, U[2 * k], U[2 * k + 1]);
2206
- }
2207
- function ie(l, k) {
2208
- for (var U = 0; U |= 1 & l, l >>>= 1, U <<= 1, 0 < --k; ) ;
2209
- return U >>> 1;
2210
- }
2211
- function le(l, k, U) {
2212
- var F, S, j = new Array(o + 1), V = 0;
2213
- for (F = 1; F <= o; F++) j[F] = V = V + U[F - 1] << 1;
2214
- for (S = 0; S <= k; S++) {
2215
- var G = l[2 * S + 1];
2216
- G !== 0 && (l[2 * S] = ie(j[G]++, G));
2217
- }
2218
- }
2219
- function Q(l) {
2220
- var k;
2221
- for (k = 0; k < g; k++) l.dyn_ltree[2 * k] = 0;
2222
- for (k = 0; k < i; k++) l.dyn_dtree[2 * k] = 0;
2223
- for (k = 0; k < _; k++) l.bl_tree[2 * k] = 0;
2224
- l.dyn_ltree[2 * y] = 1, l.opt_len = l.static_len = 0, l.last_lit = l.matches = 0;
2225
- }
2226
- function te(l) {
2227
- 8 < l.bi_valid ? K(l, l.bi_buf) : 0 < l.bi_valid && (l.pending_buf[l.pending++] = l.bi_buf), l.bi_buf = 0, l.bi_valid = 0;
2228
- }
2229
- function ue(l, k, U, F) {
2230
- var S = 2 * k, j = 2 * U;
2231
- return l[S] < l[j] || l[S] === l[j] && F[k] <= F[U];
2232
- }
2233
- function ae(l, k, U) {
2234
- for (var F = l.heap[U], S = U << 1; S <= l.heap_len && (S < l.heap_len && ue(k, l.heap[S + 1], l.heap[S], l.depth) && S++, !ue(k, F, l.heap[S], l.depth)); ) l.heap[U] = l.heap[S], U = S, S <<= 1;
2235
- l.heap[U] = F;
2236
- }
2237
- function pe(l, k, U) {
2238
- var F, S, j, V, G = 0;
2239
- if (l.last_lit !== 0) for (; F = l.pending_buf[l.d_buf + 2 * G] << 8 | l.pending_buf[l.d_buf + 2 * G + 1], S = l.pending_buf[l.l_buf + G], G++, F === 0 ? W(l, S, k) : (W(l, (j = t[S]) + f + 1, k), (V = T[j]) !== 0 && Z(l, S -= D[j], V), W(l, j = A(--F), U), (V = L[j]) !== 0 && Z(l, F -= M[j], V)), G < l.last_lit; ) ;
2240
- W(l, y, k);
2241
- }
2242
- function he(l, k) {
2243
- var U, F, S, j = k.dyn_tree, V = k.stat_desc.static_tree, G = k.stat_desc.has_stree, Y = k.stat_desc.elems, ne = -1;
2244
- for (l.heap_len = 0, l.heap_max = r, U = 0; U < Y; U++) j[2 * U] !== 0 ? (l.heap[++l.heap_len] = ne = U, l.depth[U] = 0) : j[2 * U + 1] = 0;
2245
- for (; l.heap_len < 2; ) j[2 * (S = l.heap[++l.heap_len] = ne < 2 ? ++ne : 0)] = 1, l.depth[S] = 0, l.opt_len--, G && (l.static_len -= V[2 * S + 1]);
2246
- for (k.max_code = ne, U = l.heap_len >> 1; 1 <= U; U--) ae(l, j, U);
2247
- for (S = Y; U = l.heap[1], l.heap[1] = l.heap[l.heap_len--], ae(l, j, 1), F = l.heap[1], l.heap[--l.heap_max] = U, l.heap[--l.heap_max] = F, j[2 * S] = j[2 * U] + j[2 * F], l.depth[S] = (l.depth[U] >= l.depth[F] ? l.depth[U] : l.depth[F]) + 1, j[2 * U + 1] = j[2 * F + 1] = S, l.heap[1] = S++, ae(l, j, 1), 2 <= l.heap_len; ) ;
2248
- l.heap[--l.heap_max] = l.heap[1], function(ee, ce) {
2249
- var Se, _e, Ae, se, Te, Be, ge = ce.dyn_tree, Le = ce.max_code, st = ce.stat_desc.static_tree, ot = ce.stat_desc.has_stree, ut = ce.stat_desc.extra_bits, Me = ce.stat_desc.extra_base, Ie = ce.stat_desc.max_length, Oe = 0;
2250
- for (se = 0; se <= o; se++) ee.bl_count[se] = 0;
2251
- for (ge[2 * ee.heap[ee.heap_max] + 1] = 0, Se = ee.heap_max + 1; Se < r; Se++) Ie < (se = ge[2 * ge[2 * (_e = ee.heap[Se]) + 1] + 1] + 1) && (se = Ie, Oe++), ge[2 * _e + 1] = se, Le < _e || (ee.bl_count[se]++, Te = 0, Me <= _e && (Te = ut[_e - Me]), Be = ge[2 * _e], ee.opt_len += Be * (se + Te), ot && (ee.static_len += Be * (st[2 * _e + 1] + Te)));
2252
- if (Oe !== 0) {
2253
- do {
2254
- for (se = Ie - 1; ee.bl_count[se] === 0; ) se--;
2255
- ee.bl_count[se]--, ee.bl_count[se + 1] += 2, ee.bl_count[Ie]--, Oe -= 2;
2256
- } while (0 < Oe);
2257
- for (se = Ie; se !== 0; se--) for (_e = ee.bl_count[se]; _e !== 0; ) Le < (Ae = ee.heap[--Se]) || (ge[2 * Ae + 1] !== se && (ee.opt_len += (se - ge[2 * Ae + 1]) * ge[2 * Ae], ge[2 * Ae + 1] = se), _e--);
2258
- }
2259
- }(l, k), le(j, ne, l.bl_count);
2260
- }
2261
- function e(l, k, U) {
2262
- var F, S, j = -1, V = k[1], G = 0, Y = 7, ne = 4;
2263
- for (V === 0 && (Y = 138, ne = 3), k[2 * (U + 1) + 1] = 65535, F = 0; F <= U; F++) S = V, V = k[2 * (F + 1) + 1], ++G < Y && S === V || (G < ne ? l.bl_tree[2 * S] += G : S !== 0 ? (S !== j && l.bl_tree[2 * S]++, l.bl_tree[2 * x]++) : G <= 10 ? l.bl_tree[2 * E]++ : l.bl_tree[2 * B]++, j = S, ne = (G = 0) === V ? (Y = 138, 3) : S === V ? (Y = 6, 3) : (Y = 7, 4));
2264
- }
2265
- function z(l, k, U) {
2266
- var F, S, j = -1, V = k[1], G = 0, Y = 7, ne = 4;
2267
- for (V === 0 && (Y = 138, ne = 3), F = 0; F <= U; F++) if (S = V, V = k[2 * (F + 1) + 1], !(++G < Y && S === V)) {
2268
- if (G < ne) for (; W(l, S, l.bl_tree), --G != 0; ) ;
2269
- else S !== 0 ? (S !== j && (W(l, S, l.bl_tree), G--), W(l, x, l.bl_tree), Z(l, G - 3, 2)) : G <= 10 ? (W(l, E, l.bl_tree), Z(l, G - 3, 3)) : (W(l, B, l.bl_tree), Z(l, G - 11, 7));
2270
- j = S, ne = (G = 0) === V ? (Y = 138, 3) : S === V ? (Y = 6, 3) : (Y = 7, 4);
2271
- }
2272
- }
2273
- a(M);
2274
- var R = !1;
2275
- function h(l, k, U, F) {
2276
- Z(l, (p << 1) + (F ? 1 : 0), 3), function(S, j, V, G) {
2277
- te(S), K(S, V), K(S, ~V), d.arraySet(S.pending_buf, S.window, j, V, S.pending), S.pending += V;
2278
- }(l, k, U);
2279
- }
2280
- w._tr_init = function(l) {
2281
- R || (function() {
2282
- var k, U, F, S, j, V = new Array(o + 1);
2283
- for (S = F = 0; S < v - 1; S++) for (D[S] = F, k = 0; k < 1 << T[S]; k++) t[F++] = S;
2284
- for (t[F - 1] = S, S = j = 0; S < 16; S++) for (M[S] = j, k = 0; k < 1 << L[S]; k++) O[j++] = S;
2285
- for (j >>= 7; S < i; S++) for (M[S] = j << 7, k = 0; k < 1 << L[S] - 7; k++) O[256 + j++] = S;
2286
- for (U = 0; U <= o; U++) V[U] = 0;
2287
- for (k = 0; k <= 143; ) X[2 * k + 1] = 8, k++, V[8]++;
2288
- for (; k <= 255; ) X[2 * k + 1] = 9, k++, V[9]++;
2289
- for (; k <= 279; ) X[2 * k + 1] = 7, k++, V[7]++;
2290
- for (; k <= 287; ) X[2 * k + 1] = 8, k++, V[8]++;
2291
- for (le(X, g + 1, V), k = 0; k < i; k++) b[2 * k + 1] = 5, b[2 * k] = ie(k, 5);
2292
- q = new $(X, T, f + 1, g, o), P = new $(b, L, 0, i, o), J = new $(new Array(0), C, 0, _, c);
2293
- }(), R = !0), l.l_desc = new I(l.dyn_ltree, q), l.d_desc = new I(l.dyn_dtree, P), l.bl_desc = new I(l.bl_tree, J), l.bi_buf = 0, l.bi_valid = 0, Q(l);
2294
- }, w._tr_stored_block = h, w._tr_flush_block = function(l, k, U, F) {
2295
- var S, j, V = 0;
2296
- 0 < l.level ? (l.strm.data_type === 2 && (l.strm.data_type = function(G) {
2297
- var Y, ne = 4093624447;
2298
- for (Y = 0; Y <= 31; Y++, ne >>>= 1) if (1 & ne && G.dyn_ltree[2 * Y] !== 0) return u;
2299
- if (G.dyn_ltree[18] !== 0 || G.dyn_ltree[20] !== 0 || G.dyn_ltree[26] !== 0) return n;
2300
- for (Y = 32; Y < f; Y++) if (G.dyn_ltree[2 * Y] !== 0) return n;
2301
- return u;
2302
- }(l)), he(l, l.l_desc), he(l, l.d_desc), V = function(G) {
2303
- var Y;
2304
- for (e(G, G.dyn_ltree, G.l_desc.max_code), e(G, G.dyn_dtree, G.d_desc.max_code), he(G, G.bl_desc), Y = _ - 1; 3 <= Y && G.bl_tree[2 * H[Y] + 1] === 0; Y--) ;
2305
- return G.opt_len += 3 * (Y + 1) + 5 + 5 + 4, Y;
2306
- }(l), S = l.opt_len + 3 + 7 >>> 3, (j = l.static_len + 3 + 7 >>> 3) <= S && (S = j)) : S = j = U + 5, U + 4 <= S && k !== -1 ? h(l, k, U, F) : l.strategy === 4 || j === S ? (Z(l, 2 + (F ? 1 : 0), 3), pe(l, X, b)) : (Z(l, 4 + (F ? 1 : 0), 3), function(G, Y, ne, ee) {
2307
- var ce;
2308
- for (Z(G, Y - 257, 5), Z(G, ne - 1, 5), Z(G, ee - 4, 4), ce = 0; ce < ee; ce++) Z(G, G.bl_tree[2 * H[ce] + 1], 3);
2309
- z(G, G.dyn_ltree, Y - 1), z(G, G.dyn_dtree, ne - 1);
2310
- }(l, l.l_desc.max_code + 1, l.d_desc.max_code + 1, V + 1), pe(l, l.dyn_ltree, l.dyn_dtree)), Q(l), F && te(l);
2311
- }, w._tr_tally = function(l, k, U) {
2312
- return l.pending_buf[l.d_buf + 2 * l.last_lit] = k >>> 8 & 255, l.pending_buf[l.d_buf + 2 * l.last_lit + 1] = 255 & k, l.pending_buf[l.l_buf + l.last_lit] = 255 & U, l.last_lit++, k === 0 ? l.dyn_ltree[2 * U]++ : (l.matches++, k--, l.dyn_ltree[2 * (t[U] + f + 1)]++, l.dyn_dtree[2 * A(k)]++), l.last_lit === l.lit_bufsize - 1;
2313
- }, w._tr_align = function(l) {
2314
- Z(l, 2, 3), W(l, y, X), function(k) {
2315
- k.bi_valid === 16 ? (K(k, k.bi_buf), k.bi_buf = 0, k.bi_valid = 0) : 8 <= k.bi_valid && (k.pending_buf[k.pending++] = 255 & k.bi_buf, k.bi_buf >>= 8, k.bi_valid -= 8);
2316
- }(l);
2317
- };
2318
- }, { "../utils/common": 41 }], 53: [function(m, N, w) {
2319
- N.exports = function() {
2320
- 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;
2321
- };
2322
- }, {}], 54: [function(m, N, w) {
2323
- (function(d) {
2324
- (function(u, n) {
2325
- if (!u.setImmediate) {
2326
- var a, p, v, f, g = 1, i = {}, _ = !1, r = u.document, o = Object.getPrototypeOf && Object.getPrototypeOf(u);
2327
- o = o && o.setTimeout ? o : u, a = {}.toString.call(u.process) === "[object process]" ? function(x) {
2328
- fe.nextTick(function() {
2329
- c(x);
2330
- });
2331
- } : function() {
2332
- if (u.postMessage && !u.importScripts) {
2333
- var x = !0, E = u.onmessage;
2334
- return u.onmessage = function() {
2335
- x = !1;
2336
- }, u.postMessage("", "*"), u.onmessage = E, x;
2337
- }
2338
- }() ? (f = "setImmediate$" + Math.random() + "$", u.addEventListener ? u.addEventListener("message", y, !1) : u.attachEvent("onmessage", y), function(x) {
2339
- u.postMessage(f + x, "*");
2340
- }) : u.MessageChannel ? ((v = new MessageChannel()).port1.onmessage = function(x) {
2341
- c(x.data);
2342
- }, function(x) {
2343
- v.port2.postMessage(x);
2344
- }) : r && "onreadystatechange" in r.createElement("script") ? (p = r.documentElement, function(x) {
2345
- var E = r.createElement("script");
2346
- E.onreadystatechange = function() {
2347
- c(x), E.onreadystatechange = null, p.removeChild(E), E = null;
2348
- }, p.appendChild(E);
2349
- }) : function(x) {
2350
- setTimeout(c, 0, x);
2351
- }, o.setImmediate = function(x) {
2352
- typeof x != "function" && (x = new Function("" + x));
2353
- for (var E = new Array(arguments.length - 1), B = 0; B < E.length; B++) E[B] = arguments[B + 1];
2354
- var T = { callback: x, args: E };
2355
- return i[g] = T, a(g), g++;
2356
- }, o.clearImmediate = s;
2357
- }
2358
- function s(x) {
2359
- delete i[x];
2360
- }
2361
- function c(x) {
2362
- if (_) setTimeout(c, 0, x);
2363
- else {
2364
- var E = i[x];
2365
- if (E) {
2366
- _ = !0;
2367
- try {
2368
- (function(B) {
2369
- var T = B.callback, L = B.args;
2370
- switch (L.length) {
2371
- case 0:
2372
- T();
2373
- break;
2374
- case 1:
2375
- T(L[0]);
2376
- break;
2377
- case 2:
2378
- T(L[0], L[1]);
2379
- break;
2380
- case 3:
2381
- T(L[0], L[1], L[2]);
2382
- break;
2383
- default:
2384
- T.apply(n, L);
2385
- }
2386
- })(E);
2387
- } finally {
2388
- s(x), _ = !1;
2389
- }
2390
- }
2391
- }
2392
- }
2393
- function y(x) {
2394
- x.source === u && typeof x.data == "string" && x.data.indexOf(f) === 0 && c(+x.data.slice(f.length));
2395
- }
2396
- })(typeof self > "u" ? d === void 0 ? this : d : self);
2397
- }).call(this, typeof we < "u" ? we : typeof self < "u" ? self : typeof window < "u" ? window : {});
2398
- }, {}] }, {}, [10])(10);
2399
- });
2400
- }(Fe)), Fe.exports;
2401
- }
2402
- var Ot = Tt();
2403
- const zt = /* @__PURE__ */ ft(Ot), Dt = { class: "space-y-24 mb-24" }, Bt = ["innerHTML"], Nt = { class: "flex justify-end gap-8" }, Ut = /* @__PURE__ */ Pe({
2404
- __name: "ConfirmActionDialog",
2405
- props: {
2406
- description: {},
2407
- value: {},
2408
- message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
2409
- },
2410
- setup(ke) {
2411
- const oe = ke, fe = ye(() => oe.message.replace("[[value]]", oe.value)), m = Je(""), N = it(), { emitAction: w } = gt();
2412
- return (d, u) => {
2413
- const n = Ce("FmTextField"), a = Ce("FmButton"), p = Ce("FmForm");
2414
- return be(), Ee(p, {
2415
- "on-validation-success": () => re(w)("primary"),
2416
- "blame-form-child-on-validation-failed": ""
2417
- }, {
2418
- default: ve(() => [
2419
- me("div", Dt, [
2420
- me("div", null, Qe(d.description), 1),
2421
- me("div", { innerHTML: fe.value }, null, 8, Bt),
2422
- me("div", null, [
2423
- de(n, {
2424
- modelValue: m.value,
2425
- "onUpdate:modelValue": [
2426
- u[0] || (u[0] = (v) => m.value = v),
2427
- u[1] || (u[1] = () => {
2428
- })
2429
- ],
2430
- placeholder: d.value,
2431
- rules: [(v) => v === d.value || "Value does not match"]
2432
- }, null, 8, ["modelValue", "placeholder", "rules"])
2433
- ]),
2434
- me("div", Nt, [
2435
- de(a, {
2436
- label: "Cancel",
2437
- variant: "secondary",
2438
- onClick: u[2] || (u[2] = (v) => re(N).close())
2439
- }),
2440
- de(a, {
2441
- label: "Confirm",
2442
- type: "submit"
2443
- })
2444
- ])
2445
- ])
2446
- ]),
2447
- _: 1
2448
- }, 8, ["on-validation-success"]);
2449
- };
2450
- }
2451
- }), Ft = /* @__PURE__ */ Pe({
2452
- __name: "Migrate",
2453
- setup(ke) {
2454
- const oe = tt(), fe = _t(), m = at(), { minor: N } = rt(m), w = Je(!1), d = it();
2455
- async function u() {
2456
- n.value || w.value || d.open({
2457
- title: "Migrate to new version",
2458
- contentComponent: Ut,
2459
- contentComponentProps: {
2460
- value: "MIGRATE",
2461
- description: "Do you want to migrate to new version? Once migrate it will unable to revert to the older version."
2462
- }
2463
- }).onPrimary(async () => {
2464
- d.close(), await N(
2465
- async () => {
2466
- await oe.migrate(), setTimeout(() => {
2467
- window.location.reload();
2468
- }, 2e3);
2469
- },
2470
- {
2471
- isLoading: w,
2472
- customId: oe.state.menu._id,
2473
- message: "Migrating menu",
2474
- successMessage: "Migration completed"
2475
- }
2476
- );
2477
- });
2478
- }
2479
- const n = ye(() => {
2480
- const a = fe.restaurants.value;
2481
- if (!a.length) return "Required at least one restaurant to migrate";
2482
- const p = a.filter((f) => !f.posVersion || !Ge.Pos.canUse({ feature: We.F_FEATURE.enum.menuV4, posVersion: f.posVersion }));
2483
- return p.length ? `Upgrade POS to V${Ge.Pos.minVersionToUse(We.F_FEATURE.enum.menuV4)} to use new menu: ${p.map((f) => f.profile.name).join(", ")}` : null;
2484
- });
2485
- return ye(() => n.value ? n.value : "Migrate your menu to new version to enjoy more features. Content of new menu will remain the same as current."), (a, p) => {
2486
- const v = Ce("FmSnackbar");
2487
- return !n.value && re(oe).version !== re(nt.F_MENU_VERSION).enum.v4 ? (be(), Ee(v, {
2488
- key: 0,
2489
- class: "!max-w-full",
2490
- title: "New version of menu is out now!",
2491
- description: "Migrate your current menu version to the latest to enjoy more features such as product sequential dispatch, serving sequence, scheduler and more! Your content and current setting will be preserved.",
2492
- variant: "info",
2493
- action: "Migrate",
2494
- "z-index": 0,
2495
- onOnAction: u
2496
- })) : et("", !0);
2497
- };
2498
- }
2499
- }), Pt = { class: "flex-1 flex justify-between gap-8 pl-8" }, Lt = { class: "flex items-center" }, Mt = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, jt = { class: "fm-typo-en-body-md-600 font-semibold" }, Ht = { class: "flex gap-8" }, ir = /* @__PURE__ */ Pe({
2500
- __name: "Products",
2501
- setup(ke) {
2502
- const { t: oe } = mt(), fe = rt(at()), m = tt(), N = ye(() => m.rules.item), w = Et(), d = ye(() => !m.state.currentSchedulerId), u = lt(), n = dt(), { selectedCategories: a } = wt(), p = ye(() => ({
2503
- ...pt.menuV4ToV3(Ze(m.state.menu)),
2504
- _id: m.state.menu._id,
2505
- _rev: m.state.menu._rev
2506
- })), v = ye(() => {
2507
- const r = Ve.flatten(a.value.map((o) => o.items));
2508
- return Ve.uniqBy(r, (o) => o._id).length;
2509
- });
2510
- async function f(r, o) {
2511
- const s = new zt();
2512
- for (let y = 0; y < r.length; y++) {
2513
- const x = await r[y].xlsx.writeBuffer();
2514
- s.file(`${o[y]}.xlsx`, x);
2515
- }
2516
- const c = await s.generateAsync({ type: "blob" });
2517
- Ct.saveAs(c, `books_${Re().format("DD-MM-YYYY_HH-mm")}.zip`);
2518
- }
2519
- async function g() {
2520
- await fe.minor(
2521
- async () => {
2522
- if (await m.readMenu(), m.version === nt.F_MENU_VERSION.enum.v4) {
2523
- const r = Ze(m.state.menu), o = new ct(r).exportToExcel(), s = [
2524
- `menu_${Re().format("DD-MM-YYYY_HH-mm")}`,
2525
- `addonGroup_${Re().format("DD-MM-YYYY_HH-mm")}`,
2526
- `itemLinkedAddon${Re().format("DD-MM-YYYY_HH-mm")}`
2527
- ];
2528
- f(o, s);
2529
- } else {
2530
- const r = At(p.value), o = `menu_${Re().format("DD-MM-YYYY_HH-mm")}`;
2531
- await ht(r, `${o}.xlsx`, {
2532
- bookType: "xlsx",
2533
- bookSST: !1,
2534
- type: "array"
2535
- });
2536
- }
2537
- },
2538
- { successMessage: "Menu exported", customId: m.state.menu._id }
2539
- );
2540
- }
2541
- const i = vt(), _ = ye(() => i.breakpoints.value.xs);
2542
- return kt().resetOnMount(), (r, o) => {
2543
- const s = Ce("fm-button");
2544
- return be(), Ee(yt, {
2545
- heading: re(oe)("menu.products.title")
2546
- }, {
2547
- default: ve(() => [
2548
- de(Ft),
2549
- de(xt)
2550
- ]),
2551
- "append-heading": ve(() => [
2552
- me("div", Pt, [
2553
- me("div", Lt, [
2554
- me("div", Mt, [
2555
- me("p", jt, Qe(v.value), 1)
2556
- ])
2557
- ]),
2558
- me("div", Ht, [
2559
- _.value ? (be(), Ee(Ke, { key: 1 }, {
2560
- default: ve(({ trigger: c }) => [
2561
- de(bt, null, {
2562
- default: ve(() => [
2563
- de(Ye, {
2564
- label: re(oe)("menu.products.actions.export"),
2565
- onClick: g
2566
- }, null, 8, ["label"]),
2567
- de(Ye, {
2568
- label: re(oe)("menu.products.actions.import"),
2569
- onClick: c
2570
- }, null, 8, ["label", "onClick"])
2571
- ]),
2572
- _: 2
2573
- }, 1024)
2574
- ]),
2575
- _: 1
2576
- })) : (be(), je(He, { key: 0 }, [
2577
- de(St, null, {
2578
- default: ve(({ trigger: c }) => [
2579
- de(s, {
2580
- label: re(oe)("menu.tree_editor.title"),
2581
- "bg-color": re(xe).NeutralGray100,
2582
- "text-color": re(xe).TypoSecondary,
2583
- variant: re(Ne).Primary,
2584
- onClick: c
2585
- }, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
2586
- ]),
2587
- _: 1
2588
- }),
2589
- de(s, {
2590
- "bg-color": re(xe).NeutralGray100,
2591
- "text-color": re(xe).TypoSecondary,
2592
- variant: re(Ne).Primary,
2593
- label: re(oe)("menu.products.actions.export"),
2594
- onClick: g
2595
- }, null, 8, ["bg-color", "text-color", "variant", "label"]),
2596
- de(Ke, null, {
2597
- default: ve(({ trigger: c }) => [
2598
- de(s, {
2599
- "bg-color": re(xe).NeutralGray100,
2600
- "text-color": re(xe).TypoSecondary,
2601
- variant: re(Ne).Primary,
2602
- label: re(oe)("menu.products.actions.import"),
2603
- onClick: c
2604
- }, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
2605
- ]),
2606
- _: 1
2607
- })
2608
- ], 64)),
2609
- v.value > 0 ? (be(), je(He, { key: 2 }, [
2610
- N.value.create ? (be(), Ee(Ue, {
2611
- key: 0,
2612
- label: re(oe)("menu.products.actions.add"),
2613
- "prepend-icon": "add",
2614
- onClick: o[0] || (o[0] = (c) => re(w).create(null))
2615
- }, null, 8, ["label"])) : d.value ? (be(), Ee(Xe, {
2616
- key: 1,
2617
- "categorized-items": re(u).linkableItems.value,
2618
- "initial-value": re(u).currentItems.value,
2619
- "show-variant": !1,
2620
- onSubmit: o[1] || (o[1] = (c) => re(u).applyProduct(c.map((y) => y._id)))
2621
- }, {
2622
- default: ve(({ trigger: c }) => [
2623
- de(Ue, {
2624
- label: re(oe)("menu.products.actions.link"),
2625
- "prepend-icon": "link",
2626
- onClick: c
2627
- }, null, 8, ["label", "onClick"])
2628
- ]),
2629
- _: 1
2630
- }, 8, ["categorized-items", "initial-value"])) : (be(), Ee(Xe, {
2631
- key: 2,
2632
- "categorized-items": re(n).linkableItems.value,
2633
- "initial-value": re(n).currentItems.value,
2634
- "show-variant": !1,
2635
- onSubmit: o[2] || (o[2] = (c) => re(n).applyProduct(c.map((y) => y._id)))
2636
- }, {
2637
- default: ve(({ trigger: c }) => [
2638
- de(Ue, {
2639
- label: re(oe)("menu.products.actions.apply_scheduler"),
2640
- onClick: c
2641
- }, null, 8, ["label", "onClick"])
2642
- ]),
2643
- _: 1
2644
- }, 8, ["categorized-items", "initial-value"]))
2645
- ], 64)) : et("", !0)
2646
- ])
2647
- ])
2648
- ]),
2649
- _: 1
2650
- }, 8, ["heading"]);
2651
- };
2652
- }
2653
- });
2654
- export {
2655
- ir as default
2656
- };