@verdocs/web-sdk 5.0.73 → 5.0.75

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 (156) hide show
  1. package/dist/cjs/{utils-Bxil_g6M.js → utils-DCB8q98B.js} +6 -2
  2. package/dist/cjs/utils-DCB8q98B.js.map +1 -0
  3. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
  4. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  5. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +4 -1
  6. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js.map +1 -1
  7. package/dist/cjs/verdocs-envelope-sidebar.entry.cjs.js.map +1 -1
  8. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +1 -5
  10. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js.map +1 -1
  11. package/dist/cjs/verdocs-kba-dialog_3.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  16. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +4 -1
  17. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js.map +1 -1
  18. package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js.map +1 -1
  19. package/dist/collection/components/fields/verdocs-field-radio/verdocs-field-radio.js.map +1 -1
  20. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +1 -5
  21. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js.map +1 -1
  22. package/dist/collection/utils/utils.js +4 -0
  23. package/dist/collection/utils/utils.js.map +1 -1
  24. package/dist/components/{p-Clok0sKa.js → p-BqWxusTA.js} +4 -4
  25. package/dist/components/{p-Clok0sKa.js.map → p-BqWxusTA.js.map} +1 -1
  26. package/dist/components/p-CDTU_UJD.js.map +1 -1
  27. package/dist/components/{p-CG2DS0Ct.js → p-CLHwiJsu.js} +3 -3
  28. package/dist/components/{p-CG2DS0Ct.js.map → p-CLHwiJsu.js.map} +1 -1
  29. package/dist/components/{p-B3KdiIa6.js → p-CWHHlD3o.js} +3 -3
  30. package/dist/components/{p-B3KdiIa6.js.map → p-CWHHlD3o.js.map} +1 -1
  31. package/dist/components/{p-rafg8cJv.js → p-Cfx8TNcj.js} +4 -4
  32. package/dist/components/{p-rafg8cJv.js.map → p-Cfx8TNcj.js.map} +1 -1
  33. package/dist/components/{p-D-4uVyuT.js → p-CpHTrnj5.js} +3 -3
  34. package/dist/components/{p-D-4uVyuT.js.map → p-CpHTrnj5.js.map} +1 -1
  35. package/dist/components/{p-DDMPZ6xr.js → p-D38Lnu3J.js} +3 -3
  36. package/dist/components/{p-DDMPZ6xr.js.map → p-D38Lnu3J.js.map} +1 -1
  37. package/dist/components/{p-DA5NR945.js → p-De7UWCgq.js} +3 -7
  38. package/dist/components/p-De7UWCgq.js.map +1 -0
  39. package/dist/components/{p-rIIybUCF.js → p-DsBOZHKo.js} +6 -2
  40. package/dist/components/{p-rIIybUCF.js.map → p-DsBOZHKo.js.map} +1 -1
  41. package/dist/components/{p-DcAnGvC8.js → p-eiHT7SZQ.js} +5 -5
  42. package/dist/components/{p-DcAnGvC8.js.map → p-eiHT7SZQ.js.map} +1 -1
  43. package/dist/components/{p-BFgewNxB.js → p-iOb94GB3.js} +4 -4
  44. package/dist/components/{p-BFgewNxB.js.map → p-iOb94GB3.js.map} +1 -1
  45. package/dist/components/p-z0ZD30Bi.js.map +1 -1
  46. package/dist/components/verdocs-build.js +6 -6
  47. package/dist/components/verdocs-contact-picker.js +1 -1
  48. package/dist/components/verdocs-envelope-document-page.js +1 -1
  49. package/dist/components/verdocs-envelope-sidebar.js +4 -1
  50. package/dist/components/verdocs-envelope-sidebar.js.map +1 -1
  51. package/dist/components/verdocs-envelopes-list.js +2 -2
  52. package/dist/components/verdocs-field-textbox.js +1 -1
  53. package/dist/components/verdocs-preview.js +1 -1
  54. package/dist/components/verdocs-quick-filter.js +1 -1
  55. package/dist/components/verdocs-send.js +1 -1
  56. package/dist/components/verdocs-sign.js +3 -3
  57. package/dist/components/verdocs-template-document-page.js +1 -1
  58. package/dist/components/verdocs-template-fields.js +1 -1
  59. package/dist/components/verdocs-templates-list.js +1 -1
  60. package/dist/components/verdocs-view.js +1 -1
  61. package/dist/esm/{utils-CbfXTNEw.js → utils-DmfOx9Ey.js} +6 -2
  62. package/dist/esm/utils-DmfOx9Ey.js.map +1 -0
  63. package/dist/esm/verdocs-contact-picker.entry.js +1 -1
  64. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  65. package/dist/esm/verdocs-envelope-sidebar.entry.js +4 -1
  66. package/dist/esm/verdocs-envelope-sidebar.entry.js.map +1 -1
  67. package/dist/esm/verdocs-envelopes-list.entry.js +1 -1
  68. package/dist/esm/verdocs-field-attachment_13.entry.js +1 -5
  69. package/dist/esm/verdocs-field-attachment_13.entry.js.map +1 -1
  70. package/dist/esm/verdocs-kba-dialog_3.entry.js +1 -1
  71. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  72. package/dist/esm/verdocs-preview_7.entry.js +1 -1
  73. package/dist/esm/verdocs-sign.entry.js +1 -1
  74. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  75. package/dist/esm-es5/{utils-CbfXTNEw.js → utils-DmfOx9Ey.js} +2 -2
  76. package/dist/esm-es5/utils-DmfOx9Ey.js.map +1 -0
  77. package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
  78. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  79. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  80. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js.map +1 -1
  81. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  82. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  83. package/dist/esm-es5/verdocs-field-attachment_13.entry.js.map +1 -1
  84. package/dist/esm-es5/verdocs-kba-dialog_3.entry.js +1 -1
  85. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  86. package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
  87. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  88. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  89. package/dist/verdocs-web-sdk/{p-cfbef482.system.entry.js → p-03c76a24.system.entry.js} +2 -2
  90. package/dist/verdocs-web-sdk/{p-cfbef482.system.entry.js.map → p-03c76a24.system.entry.js.map} +1 -1
  91. package/dist/verdocs-web-sdk/{p-5af5bd43.entry.js → p-0bb8015d.entry.js} +2 -2
  92. package/dist/verdocs-web-sdk/{p-7e91292a.entry.js → p-13c9ac73.entry.js} +2 -2
  93. package/dist/verdocs-web-sdk/{p-3bf5dfcb.system.entry.js → p-1653b309.system.entry.js} +2 -2
  94. package/dist/verdocs-web-sdk/{p-8bee83ad.entry.js → p-1718b823.entry.js} +2 -2
  95. package/dist/verdocs-web-sdk/{p-3e4a6587.system.entry.js → p-2a183b90.system.entry.js} +3 -3
  96. package/dist/verdocs-web-sdk/{p-b78fa925.entry.js → p-3b68bc50.entry.js} +2 -2
  97. package/dist/verdocs-web-sdk/p-3b68bc50.entry.js.map +1 -0
  98. package/dist/verdocs-web-sdk/{p-ff182af0.entry.js → p-43326217.entry.js} +2 -2
  99. package/dist/verdocs-web-sdk/{p-77cb64e8.system.entry.js → p-44de70af.system.entry.js} +2 -2
  100. package/dist/verdocs-web-sdk/{p-04421e78.system.entry.js → p-524c1693.system.entry.js} +2 -2
  101. package/dist/verdocs-web-sdk/{p-7926e0ed.entry.js → p-5d4a9e54.entry.js} +2 -2
  102. package/dist/verdocs-web-sdk/{p-5f2740be.entry.js → p-65f4a435.entry.js} +2 -2
  103. package/dist/verdocs-web-sdk/{p-ba007f95.system.entry.js → p-68b0e020.system.entry.js} +2 -2
  104. package/dist/verdocs-web-sdk/{p-db22e373.system.entry.js → p-6d8c780d.system.entry.js} +2 -2
  105. package/dist/verdocs-web-sdk/{p-d73e5d98.system.entry.js → p-9f2bde83.system.entry.js} +2 -2
  106. package/dist/verdocs-web-sdk/{p-DwVINdLf.system.js.map → p-BEa6VFpF.system.js.map} +1 -1
  107. package/dist/verdocs-web-sdk/{p-DFxwv7XE.system.js.map → p-Bh0IfLXk.system.js.map} +1 -1
  108. package/dist/verdocs-web-sdk/{p-BxWHy8GG.system.js.map → p-BqV2sLyM.system.js.map} +1 -1
  109. package/dist/verdocs-web-sdk/p-C4Tt0CYc.system.js.map +1 -0
  110. package/dist/verdocs-web-sdk/{p-8wtUCSj6.system.js.map → p-C99h0Uet.system.js.map} +1 -1
  111. package/dist/verdocs-web-sdk/{p-CalyeRmL.system.js → p-CD5uiThi.system.js} +3 -3
  112. package/dist/verdocs-web-sdk/p-CD5uiThi.system.js.map +1 -0
  113. package/dist/verdocs-web-sdk/{p-Bf0islHu.system.js.map → p-CWs7NRzr.system.js.map} +1 -1
  114. package/dist/verdocs-web-sdk/p-CwXSduhy.system.js +1 -1
  115. package/dist/verdocs-web-sdk/{p-CTKsneFq.system.js.map → p-Cz3XayQm.system.js.map} +1 -1
  116. package/dist/verdocs-web-sdk/{p-CeQPkjRM.system.js.map → p-DRzyvgiA.system.js.map} +1 -1
  117. package/dist/verdocs-web-sdk/{p-SFqGy6JR.system.js.map → p-EQbSTcUE.system.js.map} +1 -1
  118. package/dist/verdocs-web-sdk/p-UTpMOeny.system.js.map +1 -0
  119. package/dist/verdocs-web-sdk/{p-7c58a33b.system.entry.js → p-a2ba1316.system.entry.js} +2 -2
  120. package/dist/verdocs-web-sdk/p-a2ba1316.system.entry.js.map +1 -0
  121. package/dist/verdocs-web-sdk/{p-6331769c.entry.js → p-aaf3cb2c.entry.js} +2 -2
  122. package/dist/verdocs-web-sdk/{p-6331769c.entry.js.map → p-aaf3cb2c.entry.js.map} +1 -1
  123. package/dist/verdocs-web-sdk/{p-d8a89fb3.entry.js → p-bb96a9af.entry.js} +2 -2
  124. package/dist/verdocs-web-sdk/{p-aa3436c1.entry.js → p-d3d531e3.entry.js} +2 -2
  125. package/dist/verdocs-web-sdk/{p-b29ae6dd.system.entry.js → p-e5f90a18.system.entry.js} +2 -2
  126. package/dist/verdocs-web-sdk/{p-Bf-kinKl.js → p-fL0BKEnm.js} +2 -2
  127. package/dist/verdocs-web-sdk/p-fL0BKEnm.js.map +1 -0
  128. package/dist/verdocs-web-sdk/verdocs-envelope-sidebar.entry.esm.js.map +1 -1
  129. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  130. package/package.json +2 -2
  131. package/dist/cjs/utils-Bxil_g6M.js.map +0 -1
  132. package/dist/components/p-DA5NR945.js.map +0 -1
  133. package/dist/esm/utils-CbfXTNEw.js.map +0 -1
  134. package/dist/esm-es5/utils-CbfXTNEw.js.map +0 -1
  135. package/dist/verdocs-web-sdk/p-7c58a33b.system.entry.js.map +0 -1
  136. package/dist/verdocs-web-sdk/p-Bf-kinKl.js.map +0 -1
  137. package/dist/verdocs-web-sdk/p-CalyeRmL.system.js.map +0 -1
  138. package/dist/verdocs-web-sdk/p-CuaH0Jft.system.js.map +0 -1
  139. package/dist/verdocs-web-sdk/p-b78fa925.entry.js.map +0 -1
  140. package/dist/verdocs-web-sdk/p-vPV-UVh5.system.js.map +0 -1
  141. /package/dist/verdocs-web-sdk/{p-5af5bd43.entry.js.map → p-0bb8015d.entry.js.map} +0 -0
  142. /package/dist/verdocs-web-sdk/{p-7e91292a.entry.js.map → p-13c9ac73.entry.js.map} +0 -0
  143. /package/dist/verdocs-web-sdk/{p-3bf5dfcb.system.entry.js.map → p-1653b309.system.entry.js.map} +0 -0
  144. /package/dist/verdocs-web-sdk/{p-8bee83ad.entry.js.map → p-1718b823.entry.js.map} +0 -0
  145. /package/dist/verdocs-web-sdk/{p-3e4a6587.system.entry.js.map → p-2a183b90.system.entry.js.map} +0 -0
  146. /package/dist/verdocs-web-sdk/{p-ff182af0.entry.js.map → p-43326217.entry.js.map} +0 -0
  147. /package/dist/verdocs-web-sdk/{p-77cb64e8.system.entry.js.map → p-44de70af.system.entry.js.map} +0 -0
  148. /package/dist/verdocs-web-sdk/{p-04421e78.system.entry.js.map → p-524c1693.system.entry.js.map} +0 -0
  149. /package/dist/verdocs-web-sdk/{p-7926e0ed.entry.js.map → p-5d4a9e54.entry.js.map} +0 -0
  150. /package/dist/verdocs-web-sdk/{p-5f2740be.entry.js.map → p-65f4a435.entry.js.map} +0 -0
  151. /package/dist/verdocs-web-sdk/{p-ba007f95.system.entry.js.map → p-68b0e020.system.entry.js.map} +0 -0
  152. /package/dist/verdocs-web-sdk/{p-db22e373.system.entry.js.map → p-6d8c780d.system.entry.js.map} +0 -0
  153. /package/dist/verdocs-web-sdk/{p-d73e5d98.system.entry.js.map → p-9f2bde83.system.entry.js.map} +0 -0
  154. /package/dist/verdocs-web-sdk/{p-d8a89fb3.entry.js.map → p-bb96a9af.entry.js.map} +0 -0
  155. /package/dist/verdocs-web-sdk/{p-aa3436c1.entry.js.map → p-d3d531e3.entry.js.map} +0 -0
  156. /package/dist/verdocs-web-sdk/{p-b29ae6dd.system.entry.js.map → p-e5f90a18.system.entry.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(t,r,i,n){function e(t){return t instanceof i?t:new i((function(r){r(t)}))}return new(i||(i=Promise))((function(i,s){function a(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n["throw"](t))}catch(t){s(t)}}function u(t){t.done?i(t.value):e(t.value).then(a,o)}u((n=n.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,e,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(r){return u([t,r])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(i=0)),i)try{if(n=1,e&&(s=o[0]&2?e["return"]:o[0]?e["throw"]||((s=e["return"])&&s.call(e),0):e.next)&&!(s=s.call(e,o[1])).done)return s;if(e=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;e=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=r.call(t,i)}catch(t){o=[6,t];e=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __asyncValues=this&&this.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t[Symbol.asyncIterator],i;return r?r.call(t):(t=typeof __values==="function"?__values(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(r){i[r]=t[r]&&function(i){return new Promise((function(n,s){i=t[r](i),e(n,s,i.done,i.value)}))}}function e(t,r,i,n){Promise.resolve(n).then((function(r){t({value:r,done:i})}),r)}};System.register(["./p-Bzy18UgU.system.js","./p-DmF0GSqu.system.js","@verdocs/js-sdk","./p-80p0Fzir.system.js"],(function(t){"use strict";var r,i,n,e,s,a,o,u;return{setters:[function(t){r=t.c;i=t.g},function(t){n=t.d},function(t){e=t.getEnvelopeFile;s=t.getFieldAttachment;a=t.downloadBlob;o=t.rescale},function(t){u=t.a}],execute:function(){var f=this;function c(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var h={exports:{}};
1
+ var __awaiter=this&&this.__awaiter||function(t,r,i,e){function n(t){return t instanceof i?t:new i((function(r){r(t)}))}return new(i||(i=Promise))((function(i,s){function a(t){try{u(e.next(t))}catch(t){s(t)}}function o(t){try{u(e["throw"](t))}catch(t){s(t)}}function u(t){t.done?i(t.value):n(t.value).then(a,o)}u((e=e.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},e,n,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(r){return u([t,r])}}function u(o){if(e)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(i=0)),i)try{if(e=1,n&&(s=o[0]&2?n["return"]:o[0]?n["throw"]||((s=n["return"])&&s.call(n),0):n.next)&&!(s=s.call(n,o[1])).done)return s;if(n=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;n=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=r.call(t,i)}catch(t){o=[6,t];n=0}finally{e=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __asyncValues=this&&this.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t[Symbol.asyncIterator],i;return r?r.call(t):(t=typeof __values==="function"?__values(t):t[Symbol.iterator](),i={},e("next"),e("throw"),e("return"),i[Symbol.asyncIterator]=function(){return this},i);function e(r){i[r]=t[r]&&function(i){return new Promise((function(e,s){i=t[r](i),n(e,s,i.done,i.value)}))}}function n(t,r,i,e){Promise.resolve(e).then((function(r){t({value:r,done:i})}),r)}};System.register(["./p-Bzy18UgU.system.js","./p-DmF0GSqu.system.js","@verdocs/js-sdk","./p-80p0Fzir.system.js"],(function(t){"use strict";var r,i,e,n,s,a,o,u;return{setters:[function(t){r=t.c;i=t.g},function(t){e=t.d},function(t){n=t.getEnvelopeFile;s=t.getFieldAttachment;a=t.downloadBlob;o=t.rescale},function(t){u=t.a}],execute:function(){var f=this;function c(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var h={exports:{}};
2
2
  /*!
3
3
 
4
4
  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
@@ -9,5 +9,5 @@ var __awaiter=this&&this.__awaiter||function(t,r,i,n){function e(t){return t ins
9
9
 
10
10
  JSZip uses the library pako released under the MIT license :
11
11
  https://github.com/nodeca/pako/blob/main/LICENSE
12
- */var l;function d(){if(l)return h.exports;l=1;(function(t,i){!function(r){t.exports=r()}((function(){return function t(r,i,n){function e(a,o){if(!i[a]){if(!r[a]){var u="function"==typeof c&&c;if(!o&&u)return u(a,true);if(s)return s(a,true);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var h=i[a]={exports:{}};r[a][0].call(h.exports,(function(t){var i=r[a][1][t];return e(i||t)}),h,h.exports,t,r,i,n)}return i[a].exports}for(var s="function"==typeof c&&c,a=0;a<n.length;a++)e(n[a]);return e}({1:[function(t,r,i){var n=t("./utils"),e=t("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(t){for(var r,i,e,a,o,u,f,c=[],h=0,l=t.length,d=l,v="string"!==n.getTypeOf(t);h<t.length;)d=l-h,e=v?(r=t[h++],i=h<l?t[h++]:0,h<l?t[h++]:0):(r=t.charCodeAt(h++),i=h<l?t.charCodeAt(h++):0,h<l?t.charCodeAt(h++):0),a=r>>2,o=(3&r)<<4|i>>4,u=1<d?(15&i)<<2|e>>6:64,f=2<d?63&e:64,c.push(s.charAt(a)+s.charAt(o)+s.charAt(u)+s.charAt(f));return c.join("")},i.decode=function(t){var r,i,n,a,o,u,f=0,c=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var l,d=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===s.charAt(64)&&d--,t.charAt(t.length-2)===s.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(l=e.uint8array?new Uint8Array(0|d):new Array(0|d);f<t.length;)r=s.indexOf(t.charAt(f++))<<2|(a=s.indexOf(t.charAt(f++)))>>4,i=(15&a)<<4|(o=s.indexOf(t.charAt(f++)))>>2,n=(3&o)<<6|(u=s.indexOf(t.charAt(f++))),l[c++]=r,64!==o&&(l[c++]=i),64!==u&&(l[c++]=n);return l}},{"./support":30,"./utils":32}],2:[function(t,r,i){var n=t("./external"),e=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function o(t,r,i,n,e){this.compressedSize=t,this.uncompressedSize=r,this.crc32=i,this.compression=n,this.compressedContent=e}o.prototype={getContentWorker:function(){var t=new e(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),r=this;return t.on("end",(function(){if(this.streamInfo.data_length!==r.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new e(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(t,r,i){return t.pipe(new s).pipe(new a("uncompressedSize")).pipe(r.compressWorker(i)).pipe(new a("compressedSize")).withStreamInfo("compression",r)},r.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,r,i){var n=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,r,i){var n=t("./utils");var e=function(){for(var t,r=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;r[i]=t}return r}();r.exports=function(t,r){return void 0!==t&&t.length?"string"!==n.getTypeOf(t)?function(t,r,i,n){var s=e,a=n+i;t^=-1;for(var o=n;o<a;o++)t=t>>>8^s[255&(t^r[o])];return-1^t}(0|r,t,t.length,0):function(t,r,i,n){var s=e,a=n+i;t^=-1;for(var o=n;o<a;o++)t=t>>>8^s[255&(t^r.charCodeAt(o))];return-1^t}(0|r,t,t.length,0):0}},{"./utils":32}],5:[function(t,r,i){i.base64=false,i.binary=false,i.dir=false,i.createFolders=true,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,r,i){var n=null;n="undefined"!=typeof Promise?Promise:t("lie"),r.exports={Promise:n}},{lie:37}],7:[function(t,r,i){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,e=t("pako"),s=t("./utils"),a=t("./stream/GenericWorker"),o=n?"uint8array":"array";function u(t,r){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=r,this.meta={}}i.magic="\b\0",s.inherits(u,a),u.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,t.data),false)},u.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],true)},u.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new e[this._pakoAction]({raw:true,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(r){t.push({data:r,meta:t.meta})}},i.compressWorker=function(t){return new u("Deflate",t)},i.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,r,i){function n(t,r){var i,n="";for(i=0;i<r;i++)n+=String.fromCharCode(255&t),t>>>=8;return n}function e(t,r,i,e,a,c){var h,l,d=t.file,v=t.compression,p=c!==o.utf8encode,w=s.transformTo("string",c(d.name)),b=s.transformTo("string",o.utf8encode(d.name)),m=d.comment,y=s.transformTo("string",c(m)),k=s.transformTo("string",o.utf8encode(m)),g=b.length!==d.name.length,E=k.length!==m.length,A="",S="",_="",z=d.dir,U=d.date,j={crc32:0,compressedSize:0,uncompressedSize:0};r&&!i||(j.crc32=t.crc32,j.compressedSize=t.compressedSize,j.uncompressedSize=t.uncompressedSize);var x=0;r&&(x|=8),p||!g&&!E||(x|=2048);var O=0,R=0;z&&(O|=16),"UNIX"===a?(R=798,O|=function(t,r){var i=t;return t||(i=r?16893:33204),(65535&i)<<16}(d.unixPermissions,z)):(R=20,O|=function(t){return 63&(t||0)}(d.dosPermissions)),h=U.getUTCHours(),h<<=6,h|=U.getUTCMinutes(),h<<=5,h|=U.getUTCSeconds()/2,l=U.getUTCFullYear()-1980,l<<=4,l|=U.getUTCMonth()+1,l<<=5,l|=U.getUTCDate(),g&&(S=n(1,1)+n(u(w),4)+b,A+="up"+n(S.length,2)+S),E&&(_=n(1,1)+n(u(y),4)+k,A+="uc"+n(_.length,2)+_);var B="";return B+="\n\0",B+=n(x,2),B+=v.magic,B+=n(h,2),B+=n(l,2),B+=n(j.crc32,4),B+=n(j.compressedSize,4),B+=n(j.uncompressedSize,4),B+=n(w.length,2),B+=n(A.length,2),{fileRecord:f.LOCAL_FILE_HEADER+B+w+A,dirRecord:f.CENTRAL_FILE_HEADER+n(R,2)+B+n(y.length,2)+"\0\0\0\0"+n(O,4)+n(e,4)+w+A+y}}var s=t("../utils"),a=t("../stream/GenericWorker"),o=t("../utf8"),u=t("../crc32"),f=t("../signature");function c(t,r,i,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=r,this.zipPlatform=i,this.encodeFileName=n,this.streamFiles=t,this.accumulate=false,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(c,a),c.prototype.push=function(t){var r=t.meta.percent||0,i=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:i?(r+100*(i-n-1))/i:100}}))},c.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var r=this.streamFiles&&!t.file.dir;if(r){var i=e(t,r,false,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=true},c.prototype.closedSource=function(t){this.accumulate=false;var r=this.streamFiles&&!t.file.dir,i=e(t,r,true,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),r)this.push({data:function(t){return f.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var t=this.bytesWritten,r=0;r<this.dirRecords.length;r++)this.push({data:this.dirRecords[r],meta:{percent:100}});var i=this.bytesWritten-t,e=function(t,r,i,e,a){var o=s.transformTo("string",a(e));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(t,2)+n(t,2)+n(r,4)+n(i,4)+n(o.length,2)+o}(this.dirRecords.length,i,t,this.zipComment,this.encodeFileName);this.push({data:e,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(t){this._sources.push(t);var r=this;return t.on("data",(function(t){r.processChunk(t)})),t.on("end",(function(){r.closedSource(r.previous.streamInfo),r._sources.length?r.prepareNextSource():r.end()})),t.on("error",(function(t){r.error(t)})),this},c.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),true):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),true))},c.prototype.error=function(t){var r=this._sources;if(!a.prototype.error.call(this,t))return false;for(var i=0;i<r.length;i++)try{r[i].error(t)}catch(t){}return true},c.prototype.lock=function(){a.prototype.lock.call(this);for(var t=this._sources,r=0;r<t.length;r++)t[r].lock()},r.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,r,i){var n=t("../compressions"),e=t("./ZipFileWorker");i.generateWorker=function(t,r,i){var s=new e(r.streamFiles,i,r.platform,r.encodeFileName),a=0;try{t.forEach((function(t,i){a++;var e=function(t,r){var i=t||r,e=n[i];if(!e)throw new Error(i+" is not a valid compression method !");return e}(i.options.compression,r.compression),o=i.options.compressionOptions||r.compressionOptions||{},u=i.dir,f=i.date;i._compressWorker(e,o).withStreamInfo("file",{name:t,dir:u,date:f,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(s)})),s.entriesCount=a}catch(t){s.error(t)}return s}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,r,i){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new n;for(var r in this)"function"!=typeof this[r]&&(t[r]=this[r]);return t}}(n.prototype=t("./object")).loadAsync=t("./load"),n.support=t("./support"),n.defaults=t("./defaults"),n.version="3.10.1",n.loadAsync=function(t,r){return(new n).loadAsync(t,r)},n.external=t("./external"),r.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,r,i){var n=t("./utils"),e=t("./external"),s=t("./utf8"),a=t("./zipEntries"),o=t("./stream/Crc32Probe"),u=t("./nodejsUtils");function f(t){return new e.Promise((function(r,i){var n=t.decompressed.getContentWorker().pipe(new o);n.on("error",(function(t){i(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?i(new Error("Corrupted zip : CRC32 mismatch")):r()})).resume()}))}r.exports=function(t,r){var i=this;return r=n.extend(r||{},{base64:false,checkCRC32:false,optimizedBinaryString:false,createFolders:false,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(t)?e.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",t,true,r.optimizedBinaryString,r.base64).then((function(t){var i=new a(r);return i.load(t),i})).then((function(t){var i=[e.Promise.resolve(t)],n=t.files;if(r.checkCRC32)for(var s=0;s<n.length;s++)i.push(f(n[s]));return e.Promise.all(i)})).then((function(t){for(var e=t.shift(),s=e.files,a=0;a<s.length;a++){var o=s[a],u=o.fileNameStr,f=n.resolve(o.fileNameStr);i.file(f,o.decompressed,{binary:true,optimizedBinaryString:true,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:r.createFolders}),o.dir||(i.file(f).unsafeOriginalName=u)}return e.zipComment.length&&(i.comment=e.zipComment),i}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,r,i){var n=t("../utils"),e=t("../stream/GenericWorker");function s(t,r){e.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=false,this._bindStream(r)}n.inherits(s,e),s.prototype._bindStream=function(t){var r=this;(this._stream=t).pause(),t.on("data",(function(t){r.push({data:t,meta:{percent:0}})})).on("error",(function(t){r.isPaused?this.generatedError=t:r.error(t)})).on("end",(function(){r.isPaused?r._upstreamEnded=true:r.end()}))},s.prototype.pause=function(){return!!e.prototype.pause.call(this)&&(this._stream.pause(),true)},s.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),true)},r.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,r,i){var n=t("readable-stream").Readable;function e(t,r,i){n.call(this,r),this._helper=t;var e=this;t.on("data",(function(t,r){e.push(t)||e._helper.pause(),i&&i(r)})).on("error",(function(t){e.emit("error",t)})).on("end",(function(){e.push(null)}))}t("../utils").inherits(e,n),e.prototype._read=function(){this._helper.resume()},r.exports=e},{"../utils":32,"readable-stream":16}],14:[function(t,r,i){r.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,r){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,r);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,r)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var r=new Buffer(t);return r.fill(0),r},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,r,i){function n(t,r,i){var n,e=s.getTypeOf(r),o=s.extend(i||{},u);o.date=o.date||new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=true),o.dosPermissions&&16&o.dosPermissions&&(o.dir=true),o.dir&&(t=p(t)),o.createFolders&&(n=v(t))&&w.call(this,n,true);var h="string"===e&&false===o.binary&&false===o.base64;i&&void 0!==i.binary||(o.binary=!h),(r instanceof f&&0===r.uncompressedSize||o.dir||!r||0===r.length)&&(o.base64=false,o.binary=true,r="",o.compression="STORE",e="string");var b=null;b=r instanceof f||r instanceof a?r:l.isNode&&l.isStream(r)?new d(t,r):s.prepareContent(t,r,o.binary,o.optimizedBinaryString,o.base64);var m=new c(t,b,o);this.files[t]=m}var e=t("./utf8"),s=t("./utils"),a=t("./stream/GenericWorker"),o=t("./stream/StreamHelper"),u=t("./defaults"),f=t("./compressedObject"),c=t("./zipObject"),h=t("./generate"),l=t("./nodejsUtils"),d=t("./nodejs/NodejsStreamInputAdapter"),v=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var r=t.lastIndexOf("/");return 0<r?t.substring(0,r):""},p=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},w=function(t,r){return r=void 0!==r?r:u.createFolders,t=p(t),this.files[t]||n.call(this,t,null,{dir:true,createFolders:r}),this.files[t]};function b(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var m={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var r,i,n;for(r in this.files)n=this.files[r],(i=r.slice(this.root.length,r.length))&&r.slice(0,this.root.length)===this.root&&t(i,n)},filter:function(t){var r=[];return this.forEach((function(i,n){t(i,n)&&r.push(n)})),r},file:function(t,r,i){if(1!==arguments.length)return t=this.root+t,n.call(this,t,r,i),this;if(b(t)){var e=t;return this.filter((function(t,r){return!r.dir&&e.test(t)}))}var s=this.files[this.root+t];return s&&!s.dir?s:null},folder:function(t){if(!t)return this;if(b(t))return this.filter((function(r,i){return i.dir&&t.test(r)}));var r=this.root+t,i=w.call(this,r),n=this.clone();return n.root=i.name,n},remove:function(t){t=this.root+t;var r=this.files[t];if(r||("/"!==t.slice(-1)&&(t+="/"),r=this.files[t]),r&&!r.dir)delete this.files[t];else for(var i=this.filter((function(r,i){return i.name.slice(0,t.length)===t})),n=0;n<i.length;n++)delete this.files[i[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var r,i={};try{if((i=s.extend(t||{},{streamFiles:false,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:e.utf8encode})).type=i.type.toLowerCase(),i.compression=i.compression.toUpperCase(),"binarystring"===i.type&&(i.type="string"),!i.type)throw new Error("No output type specified.");s.checkSupport(i.type),"darwin"!==i.platform&&"freebsd"!==i.platform&&"linux"!==i.platform&&"sunos"!==i.platform||(i.platform="UNIX"),"win32"===i.platform&&(i.platform="DOS");var n=i.comment||this.comment||"";r=h.generateWorker(this,i,n)}catch(t){(r=new a("error")).error(t)}return new o(r,i.type||"string",i.mimeType)},generateAsync:function(t,r){return this.generateInternalStream(t).accumulate(r)},generateNodeStream:function(t,r){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(r)}};r.exports=m},{"./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(t,r,i){r.exports=t("stream")},{stream:void 0}],17:[function(t,r,i){var n=t("./DataReader");function e(t){n.call(this,t);for(var r=0;r<this.data.length;r++)t[r]=255&t[r]}t("../utils").inherits(e,n),e.prototype.byteAt=function(t){return this.data[this.zero+t]},e.prototype.lastIndexOfSignature=function(t){for(var r=t.charCodeAt(0),i=t.charCodeAt(1),n=t.charCodeAt(2),e=t.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===r&&this.data[s+1]===i&&this.data[s+2]===n&&this.data[s+3]===e)return s-this.zero;return-1},e.prototype.readAndCheckSignature=function(t){var r=t.charCodeAt(0),i=t.charCodeAt(1),n=t.charCodeAt(2),e=t.charCodeAt(3),s=this.readData(4);return r===s[0]&&i===s[1]&&n===s[2]&&e===s[3]},e.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var r=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,r},r.exports=e},{"../utils":32,"./DataReader":18}],18:[function(t,r,i){var n=t("../utils");function e(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}e.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var r,i=0;for(this.checkOffset(t),r=this.index+t-1;r>=this.index;r--)i=(i<<8)+this.byteAt(r);return this.index+=t,i},readString:function(t){return n.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},r.exports=e},{"../utils":32}],19:[function(t,r,i){var n=t("./Uint8ArrayReader");function e(t){n.call(this,t)}t("../utils").inherits(e,n),e.prototype.readData=function(t){this.checkOffset(t);var r=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,r},r.exports=e},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,r,i){var n=t("./DataReader");function e(t){n.call(this,t)}t("../utils").inherits(e,n),e.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},e.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},e.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},e.prototype.readData=function(t){this.checkOffset(t);var r=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,r},r.exports=e},{"../utils":32,"./DataReader":18}],21:[function(t,r,i){var n=t("./ArrayReader");function e(t){n.call(this,t)}t("../utils").inherits(e,n),e.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var r=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,r},r.exports=e},{"../utils":32,"./ArrayReader":17}],22:[function(t,r,i){var n=t("../utils"),e=t("../support"),s=t("./ArrayReader"),a=t("./StringReader"),o=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");r.exports=function(t){var r=n.getTypeOf(t);return n.checkSupport(r),"string"!==r||e.uint8array?"nodebuffer"===r?new o(t):e.uint8array?new u(n.transformTo("uint8array",t)):new s(n.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,r,i){var n=t("./GenericWorker"),e=t("../utils");function s(t){n.call(this,"ConvertWorker to "+t),this.destType=t}e.inherits(s,n),s.prototype.processChunk=function(t){this.push({data:e.transformTo(this.destType,t.data),meta:t.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,r,i){var n=t("./GenericWorker"),e=t("../crc32");function s(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,n),s.prototype.processChunk=function(t){this.streamInfo.crc32=e(t.data,this.streamInfo.crc32||0),this.push(t)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,r,i){var n=t("../utils"),e=t("./GenericWorker");function s(t){e.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(s,e),s.prototype.processChunk=function(t){if(t){var r=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=r+t.data.length}e.prototype.processChunk.call(this,t)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,r,i){var n=t("../utils"),e=t("./GenericWorker");function s(t){e.call(this,"DataWorker");var r=this;this.dataIsReady=false,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=false,t.then((function(t){r.dataIsReady=true,r.data=t,r.max=t&&t.length||0,r.type=n.getTypeOf(t),r.isPaused||r._tickAndRepeat()}),(function(t){r.error(t)}))}n.inherits(s,e),s.prototype.cleanUp=function(){e.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=true,n.delay(this._tickAndRepeat,[],this)),true)},s.prototype._tickAndRepeat=function(){this._tickScheduled=false,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=true))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return false;var t=null,r=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r)}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,r,i){function n(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=true,this.isFinished=false,this.isLocked=false,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return false;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=true}catch(t){this.emit("error",t)}return true},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=true,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),true)},on:function(t,r){return this._listeners[t].push(r),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,r){if(this._listeners[t])for(var i=0;i<this._listeners[t].length;i++)this._listeners[t][i].call(this,r)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var r=this;return t.on("data",(function(t){r.processChunk(t)})),t.on("end",(function(){r.end()})),t.on("error",(function(t){r.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=true,this.previous&&this.previous.pause(),true)},resume:function(){if(!this.isPaused||this.isFinished)return false;var t=this.isPaused=false;return this.generatedError&&(this.error(this.generatedError),t=true),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,r){return this.extraStreamInfo[t]=r,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=true,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},r.exports=n},{}],29:[function(t,r,i){var n=t("../utils"),e=t("./ConvertWorker"),s=t("./GenericWorker"),a=t("../base64"),o=t("../support"),u=t("../external"),f=null;if(o.nodestream)try{f=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function c(t,r){return new u.Promise((function(i,e){var s=[],o=t._internalType,u=t._outputType,f=t._mimeType;t.on("data",(function(t,i){s.push(t),r&&r(i)})).on("error",(function(t){s=[],e(t)})).on("end",(function(){try{var t=function(t,r,i){switch(t){case"blob":return n.newBlob(n.transformTo("arraybuffer",r),i);case"base64":return a.encode(r);default:return n.transformTo(t,r)}}(u,function(t,r){var i,n=0,e=null,s=0;for(i=0;i<r.length;i++)s+=r[i].length;switch(t){case"string":return r.join("");case"array":return Array.prototype.concat.apply([],r);case"uint8array":for(e=new Uint8Array(s),i=0;i<r.length;i++)e.set(r[i],n),n+=r[i].length;return e;case"nodebuffer":return Buffer.concat(r);default:throw new Error("concat : unsupported type '"+t+"'")}}(o,s),f);i(t)}catch(t){e(t)}s=[]})).resume()}))}function h(t,r,i){var a=r;switch(r){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=r,this._mimeType=i,n.checkSupport(a),this._worker=t.pipe(new e(a)),t.lock()}catch(t){this._worker=new s("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){return c(this,t)},on:function(t,r){var i=this;return"data"===t?this._worker.on(t,(function(t){r.call(i,t.data,t.meta)})):this._worker.on(t,(function(){n.delay(r,arguments,i)})),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:"nodebuffer"!==this._outputType},t)}},r.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,r,i){if(i.base64=true,i.array=true,i.string=true,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer="undefined"!=typeof Buffer,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=false;else{var n=new ArrayBuffer(0);try{i.blob=0===new Blob([n],{type:"application/zip"}).size}catch(t){try{var e=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);e.append(n),i.blob=0===e.getBlob("application/zip").size}catch(t){i.blob=false}}}try{i.nodestream=!!t("readable-stream").Readable}catch(t){i.nodestream=false}},{"readable-stream":16}],31:[function(t,r,i){for(var n=t("./utils"),e=t("./support"),s=t("./nodejsUtils"),a=t("./stream/GenericWorker"),o=new Array(256),u=0;u<256;u++)o[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;o[254]=o[254]=1;function f(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}i.utf8encode=function(t){return e.nodebuffer?s.newBufferFrom(t,"utf-8"):function(t){var r,i,n,s,a,o=t.length,u=0;for(s=0;s<o;s++)55296==(64512&(i=t.charCodeAt(s)))&&s+1<o&&56320==(64512&(n=t.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(n-56320),s++),u+=i<128?1:i<2048?2:i<65536?3:4;for(r=e.uint8array?new Uint8Array(u):new Array(u),s=a=0;a<u;s++)55296==(64512&(i=t.charCodeAt(s)))&&s+1<o&&56320==(64512&(n=t.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(n-56320),s++),i<128?r[a++]=i:(i<2048?r[a++]=192|i>>>6:(i<65536?r[a++]=224|i>>>12:(r[a++]=240|i>>>18,r[a++]=128|i>>>12&63),r[a++]=128|i>>>6&63),r[a++]=128|63&i);return r}(t)},i.utf8decode=function(t){return e.nodebuffer?n.transformTo("nodebuffer",t).toString("utf-8"):function(t){var r,i,e,s,a=t.length,u=new Array(2*a);for(r=i=0;r<a;)if((e=t[r++])<128)u[i++]=e;else if(4<(s=o[e]))u[i++]=65533,r+=s-1;else{for(e&=2===s?31:3===s?15:7;1<s&&r<a;)e=e<<6|63&t[r++],s--;1<s?u[i++]=65533:e<65536?u[i++]=e:(e-=65536,u[i++]=55296|e>>10&1023,u[i++]=56320|1023&e)}return u.length!==i&&(u.subarray?u=u.subarray(0,i):u.length=i),n.applyFromCharCode(u)}(t=n.transformTo(e.uint8array?"uint8array":"array",t))},n.inherits(f,a),f.prototype.processChunk=function(t){var r=n.transformTo(e.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(e.uint8array){var s=r;(r=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),r.set(s,this.leftOver.length)}else r=this.leftOver.concat(r);this.leftOver=null}var a=function(t,r){var i;for((r=r||t.length)>t.length&&(r=t.length),i=r-1;0<=i&&128==(192&t[i]);)i--;return i<0?r:0===i?r:i+o[t[i]]>r?i:r}(r),u=r;a!==r.length&&(e.uint8array?(u=r.subarray(0,a),this.leftOver=r.subarray(a,r.length)):(u=r.slice(0,a),this.leftOver=r.slice(a,r.length))),this.push({data:i.utf8decode(u),meta:t.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=f,n.inherits(c,a),c.prototype.processChunk=function(t){this.push({data:i.utf8encode(t.data),meta:t.meta})},i.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,r,i){var n=t("./support"),e=t("./base64"),s=t("./nodejsUtils"),a=t("./external");function o(t){return t}function u(t,r){for(var i=0;i<t.length;++i)r[i]=255&t.charCodeAt(i);return r}t("setimmediate"),i.newBlob=function(t,r){i.checkSupport("blob");try{return new Blob([t],{type:r})}catch(i){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(r)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(t,r,i){var n=[],e=0,s=t.length;if(s<=i)return String.fromCharCode.apply(null,t);for(;e<s;)"array"===r||"nodebuffer"===r?n.push(String.fromCharCode.apply(null,t.slice(e,Math.min(e+i,s)))):n.push(String.fromCharCode.apply(null,t.subarray(e,Math.min(e+i,s)))),e+=i;return n.join("")},stringifyByChar:function(t){for(var r="",i=0;i<t.length;i++)r+=String.fromCharCode(t[i]);return r},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return false}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,s.allocBuffer(1)).length}catch(t){return false}}()}};function c(t){var r=65536,n=i.getTypeOf(t),e=true;if("uint8array"===n?e=f.applyCanBeUsed.uint8array:"nodebuffer"===n&&(e=f.applyCanBeUsed.nodebuffer),e)for(;1<r;)try{return f.stringifyByChunk(t,n,r)}catch(t){r=Math.floor(r/2)}return f.stringifyByChar(t)}function h(t,r){for(var i=0;i<t.length;i++)r[i]=t[i];return r}i.applyFromCharCode=c;var l={};l.string={string:o,array:function(t){return u(t,new Array(t.length))},arraybuffer:function(t){return l.string.uint8array(t).buffer},uint8array:function(t){return u(t,new Uint8Array(t.length))},nodebuffer:function(t){return u(t,s.allocBuffer(t.length))}},l.array={string:c,array:o,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return s.newBufferFrom(t)}},l.arraybuffer={string:function(t){return c(new Uint8Array(t))},array:function(t){return h(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:o,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return s.newBufferFrom(new Uint8Array(t))}},l.uint8array={string:c,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:o,nodebuffer:function(t){return s.newBufferFrom(t)}},l.nodebuffer={string:c,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return l.nodebuffer.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:o},i.transformTo=function(t,r){if(r=r||"",!t)return r;i.checkSupport(t);var n=i.getTypeOf(r);return l[n][t](r)},i.resolve=function(t){for(var r=t.split("/"),i=[],n=0;n<r.length;n++){var e=r[n];"."===e||""===e&&0!==n&&n!==r.length-1||(".."===e?i.pop():i.push(e))}return i.join("/")},i.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":n.nodebuffer&&s.isBuffer(t)?"nodebuffer":n.uint8array&&t instanceof Uint8Array?"uint8array":n.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(t){if(!n[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(t){var r,i,n="";for(i=0;i<(t||"").length;i++)n+="\\x"+((r=t.charCodeAt(i))<16?"0":"")+r.toString(16).toUpperCase();return n},i.delay=function(t,r,i){setImmediate((function(){t.apply(i||null,r||[])}))},i.inherits=function(t,r){function i(){}i.prototype=r.prototype,t.prototype=new i},i.extend=function(){var t,r,i={};for(t=0;t<arguments.length;t++)for(r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&void 0===i[r]&&(i[r]=arguments[t][r]);return i},i.prepareContent=function(t,r,s,o,f){return a.Promise.resolve(r).then((function(t){return n.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new a.Promise((function(r,i){var n=new FileReader;n.onload=function(t){r(t.target.result)},n.onerror=function(t){i(t.target.error)},n.readAsArrayBuffer(t)})):t})).then((function(r){var c=i.getTypeOf(r);return c?("arraybuffer"===c?r=i.transformTo("uint8array",r):"string"===c&&(f?r=e.decode(r):s&&true!==o&&(r=function(t){return u(t,n.uint8array?new Uint8Array(t.length):new Array(t.length))}(r))),r):a.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,r,i){var n=t("./reader/readerFor"),e=t("./utils"),s=t("./signature"),a=t("./zipEntry"),o=t("./support");function u(t){this.files=[],this.loadOptions=t}u.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var r=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+e.pretty(r)+", expected "+e.pretty(t)+")")}},isSignature:function(t,r){var i=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===r;return this.reader.setIndex(i),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),r=o.uint8array?"uint8array":"array",i=e.transformTo(r,t);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,r,i,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),r=this.reader.readInt(4),i=this.reader.readData(r),this.zip64ExtensibleData[t]={id:t,length:r,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,r;for(t=0;t<this.files.length;t++)r=this.files[t],this.reader.setIndex(r.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),r.readLocalPart(this.reader),r.handleUTF8(),r.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(t<0)throw!this.isSignature(0,s.LOCAL_FILE_HEADER)?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"):new Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(t);var r=t;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===e.MAX_VALUE_16BITS||this.diskWithCentralDirStart===e.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===e.MAX_VALUE_16BITS||this.centralDirRecords===e.MAX_VALUE_16BITS||this.centralDirSize===e.MAX_VALUE_32BITS||this.centralDirOffset===e.MAX_VALUE_32BITS){if(this.zip64=true,(t=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=r-i;if(0<n)this.isSignature(r,s.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(t){this.reader=n(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,r,i){var n=t("./reader/readerFor"),e=t("./utils"),s=t("./compressedObject"),a=t("./crc32"),o=t("./utf8"),u=t("./compressions"),f=t("./support");function c(t,r){this.options=t,this.loadOptions=r}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var r,i;if(t.skip(22),this.fileNameLength=t.readInt(2),i=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(i),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(r=function(t){for(var r in u)if(Object.prototype.hasOwnProperty.call(u,r)&&u[r].magic===t)return u[r];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+e.pretty(this.compressionMethod)+" unknown (inner file : "+e.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,r,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var r=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(r),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=true)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===e.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===e.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===e.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===e.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var r,i,n,e=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<e;)r=t.readInt(2),i=t.readInt(2),n=t.readData(i),this.extraFields[r]={id:r,length:i,value:n};t.setIndex(e)},handleUTF8:function(){var t=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var r=this.findExtraFieldUnicodePath();if(null!==r)this.fileNameStr=r;else{var i=e.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(i)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var s=e.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var r=n(t.value);return 1!==r.readInt(1)?null:a(this.fileName)!==r.readInt(4)?null:o.utf8decode(r.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var r=n(t.value);return 1!==r.readInt(1)?null:a(this.fileComment)!==r.readInt(4)?null:o.utf8decode(r.readData(t.length-5))}return null}},r.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,r,i){function n(t,r,i){this.name=t,this.dir=i.dir,this.date=i.date,this.comment=i.comment,this.unixPermissions=i.unixPermissions,this.dosPermissions=i.dosPermissions,this._data=r,this._dataBinary=i.binary,this.options={compression:i.compression,compressionOptions:i.compressionOptions}}var e=t("./stream/StreamHelper"),s=t("./stream/DataWorker"),a=t("./utf8"),o=t("./compressedObject"),u=t("./stream/GenericWorker");n.prototype={internalStream:function(t){var r=null,i="string";try{if(!t)throw new Error("No output type specified.");var n="string"===(i=t.toLowerCase())||"text"===i;"binarystring"!==i&&"text"!==i||(i="string"),r=this._decompressWorker();var s=!this._dataBinary;s&&!n&&(r=r.pipe(new a.Utf8EncodeWorker)),!s&&n&&(r=r.pipe(new a.Utf8DecodeWorker))}catch(t){(r=new u("error")).error(t)}return new e(r,i,"")},async:function(t,r){return this.internalStream(t).accumulate(r)},nodeStream:function(t,r){return this.internalStream(t||"nodebuffer").toNodejsStream(r)},_compressWorker:function(t,r){if(this._data instanceof o&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var i=this._decompressWorker();return this._dataBinary||(i=i.pipe(new a.Utf8EncodeWorker)),o.createWorkerFrom(i,t,r)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof u?this._data:new s(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<f.length;h++)n.prototype[f[h]]=c;r.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,i,n){(function(t){var r,n,e=t.MutationObserver||t.WebKitMutationObserver;if(e){var s=0,a=new e(c),o=t.document.createTextNode("");a.observe(o,{characterData:true}),r=function(){o.data=s=++s%2}}else if(t.setImmediate||void 0===t.MessageChannel)r="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var r=t.document.createElement("script");r.onreadystatechange=function(){c(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},t.document.documentElement.appendChild(r)}:function(){setTimeout(c,0)};else{var u=new t.MessageChannel;u.port1.onmessage=c,r=function(){u.port2.postMessage(0)}}var f=[];function c(){var t,r;n=true;for(var i=f.length;i;){for(r=f,f=[],t=-1;++t<i;)r[t]();i=f.length}n=false}i.exports=function(t){1!==f.push(t)||n||r()}}).call(this,"undefined"!=typeof r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,r,i){var n=t("immediate");function e(){}var s={},a=["REJECTED"],o=["FULFILLED"],u=["PENDING"];function f(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,t!==e&&d(this,t)}function c(t,r,i){this.promise=t,"function"==typeof r&&(this.onFulfilled=r,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function h(t,r,i){n((function(){var n;try{n=r(i)}catch(n){return s.reject(t,n)}n===t?s.reject(t,new TypeError("Cannot resolve promise with itself")):s.resolve(t,n)}))}function l(t){var r=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof r)return function(){r.apply(t,arguments)}}function d(t,r){var i=false;function n(r){i||(i=true,s.reject(t,r))}function e(r){i||(i=true,s.resolve(t,r))}var a=v((function(){r(e,n)}));"error"===a.status&&n(a.value)}function v(t,r){var i={};try{i.value=t(r),i.status="success"}catch(t){i.status="error",i.value=t}return i}(r.exports=f).prototype.finally=function(t){if("function"!=typeof t)return this;var r=this.constructor;return this.then((function(i){return r.resolve(t()).then((function(){return i}))}),(function(i){return r.resolve(t()).then((function(){throw i}))}))},f.prototype.catch=function(t){return this.then(null,t)},f.prototype.then=function(t,r){if("function"!=typeof t&&this.state===o||"function"!=typeof r&&this.state===a)return this;var i=new this.constructor(e);this.state!==u?h(i,this.state===o?t:r,this.outcome):this.queue.push(new c(i,t,r));return i},c.prototype.callFulfilled=function(t){s.resolve(this.promise,t)},c.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},c.prototype.callRejected=function(t){s.reject(this.promise,t)},c.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},s.resolve=function(t,r){var i=v(l,r);if("error"===i.status)return s.reject(t,i.value);var n=i.value;if(n)d(t,n);else{t.state=o,t.outcome=r;for(var e=-1,a=t.queue.length;++e<a;)t.queue[e].callFulfilled(r)}return t},s.reject=function(t,r){t.state=a,t.outcome=r;for(var i=-1,n=t.queue.length;++i<n;)t.queue[i].callRejected(r);return t},f.resolve=function(t){if(t instanceof this)return t;return s.resolve(new this(e),t)},f.reject=function(t){var r=new this(e);return s.reject(r,t)},f.all=function(t){var r=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,n=false;if(!i)return this.resolve([]);var a=new Array(i),o=0,u=-1,f=new this(e);for(;++u<i;)c(t[u],u);return f;function c(t,e){r.resolve(t).then((function(t){a[e]=t,++o!==i||n||(n=true,s.resolve(f,a))}),(function(t){n||(n=true,s.reject(f,t))}))}},f.race=function(t){var r=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,n=false;if(!i)return this.resolve([]);var a=-1,o=new this(e);for(;++a<i;)u=t[a],r.resolve(u).then((function(t){n||(n=true,s.resolve(o,t))}),(function(t){n||(n=true,s.reject(o,t))}));var u;return o}},{immediate:36}],38:[function(t,r,i){var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),r.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,r,i){var n=t("./zlib/deflate"),e=t("./utils/common"),s=t("./utils/strings"),a=t("./zlib/messages"),o=t("./zlib/zstream"),u=Object.prototype.toString,f=0,c=-1,h=0,l=8;function d(t){if(!(this instanceof d))return new d(t);this.options=e.assign({level:c,method:l,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},t||{});var r=this.options;r.raw&&0<r.windowBits?r.windowBits=-r.windowBits:r.gzip&&0<r.windowBits&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=false,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(i!==f)throw new Error(a[i]);if(r.header&&n.deflateSetHeader(this.strm,r.header),r.dictionary){var v;if(v="string"==typeof r.dictionary?s.string2buf(r.dictionary):"[object ArrayBuffer]"===u.call(r.dictionary)?new Uint8Array(r.dictionary):r.dictionary,(i=n.deflateSetDictionary(this.strm,v))!==f)throw new Error(a[i]);this._dict_set=true}}function v(t,r){var i=new d(r);if(i.push(t,true),i.err)throw i.msg||a[i.err];return i.result}d.prototype.push=function(t,r){var i,a,o=this.strm,c=this.options.chunkSize;if(this.ended)return false;a=r===~~r?r:true===r?4:0,"string"==typeof t?o.input=s.string2buf(t):"[object ArrayBuffer]"===u.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new e.Buf8(c),o.next_out=0,o.avail_out=c),1!==(i=n.deflate(o,a))&&i!==f)return this.onEnd(i),!(this.ended=true);0!==o.avail_out&&(0!==o.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(s.buf2binstring(e.shrinkBuf(o.output,o.next_out))):this.onData(e.shrinkBuf(o.output,o.next_out)))}while((0<o.avail_in||0===o.avail_out)&&1!==i);return 4===a?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=true,i===f):2!==a||(this.onEnd(f),!(o.avail_out=0))},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===f&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},i.Deflate=d,i.deflate=v,i.deflateRaw=function(t,r){return(r=r||{}).raw=true,v(t,r)},i.gzip=function(t,r){return(r=r||{}).gzip=true,v(t,r)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,r,i){var n=t("./zlib/inflate"),e=t("./utils/common"),s=t("./utils/strings"),a=t("./zlib/constants"),o=t("./zlib/messages"),u=t("./zlib/zstream"),f=t("./zlib/gzheader"),c=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},t||{});var r=this.options;r.raw&&0<=r.windowBits&&r.windowBits<16&&(r.windowBits=-r.windowBits,0===r.windowBits&&(r.windowBits=-15)),!(0<=r.windowBits&&r.windowBits<16)||t&&t.windowBits||(r.windowBits+=32),15<r.windowBits&&r.windowBits<48&&0==(15&r.windowBits)&&(r.windowBits|=15),this.err=0,this.msg="",this.ended=false,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,r.windowBits);if(i!==a.Z_OK)throw new Error(o[i]);this.header=new f,n.inflateGetHeader(this.strm,this.header)}function l(t,r){var i=new h(r);if(i.push(t,true),i.err)throw i.msg||o[i.err];return i.result}h.prototype.push=function(t,r){var i,o,u,f,h,l,d=this.strm,v=this.options.chunkSize,p=this.options.dictionary,w=false;if(this.ended)return false;o=r===~~r?r:true===r?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?d.input=s.binstring2buf(t):"[object ArrayBuffer]"===c.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new e.Buf8(v),d.next_out=0,d.avail_out=v),(i=n.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(l="string"==typeof p?s.string2buf(p):"[object ArrayBuffer]"===c.call(p)?new Uint8Array(p):p,i=n.inflateSetDictionary(this.strm,l)),i===a.Z_BUF_ERROR&&true===w&&(i=a.Z_OK,w=false),i!==a.Z_STREAM_END&&i!==a.Z_OK)return this.onEnd(i),!(this.ended=true);d.next_out&&(0!==d.avail_out&&i!==a.Z_STREAM_END&&(0!==d.avail_in||o!==a.Z_FINISH&&o!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=s.utf8border(d.output,d.next_out),f=d.next_out-u,h=s.buf2string(d.output,u),d.next_out=f,d.avail_out=v-f,f&&e.arraySet(d.output,d.output,u,f,0),this.onData(h)):this.onData(e.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(w=true)}while((0<d.avail_in||0===d.avail_out)&&i!==a.Z_STREAM_END);return i===a.Z_STREAM_END&&(o=a.Z_FINISH),o===a.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=true,i===a.Z_OK):o!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(d.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},i.Inflate=h,i.inflate=l,i.inflateRaw=function(t,r){return(r=r||{}).raw=true,l(t,r)},i.ungzip=l},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,r,i){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var i=r.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])}}return t},i.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var e={arraySet:function(t,r,i,n,e){if(r.subarray&&t.subarray)t.set(r.subarray(i,i+n),e);else for(var s=0;s<n;s++)t[e+s]=r[i+s]},flattenChunks:function(t){var r,i,n,e,s,a;for(r=n=0,i=t.length;r<i;r++)n+=t[r].length;for(a=new Uint8Array(n),r=e=0,i=t.length;r<i;r++)s=t[r],a.set(s,e),e+=s.length;return a}},s={arraySet:function(t,r,i,n,e){for(var s=0;s<n;s++)t[e+s]=r[i+s]},flattenChunks:function(t){return[].concat.apply([],t)}};i.setTyped=function(t){t?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,e)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(n)},{}],42:[function(t,r,i){var n=t("./common"),e=true,s=true;try{String.fromCharCode.apply(null,[0])}catch(t){e=false}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){s=false}for(var a=new n.Buf8(256),o=0;o<256;o++)a[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function u(t,r){if(r<65537&&(t.subarray&&s||!t.subarray&&e))return String.fromCharCode.apply(null,n.shrinkBuf(t,r));for(var i="",a=0;a<r;a++)i+=String.fromCharCode(t[a]);return i}a[254]=a[254]=1,i.string2buf=function(t){var r,i,e,s,a,o=t.length,u=0;for(s=0;s<o;s++)55296==(64512&(i=t.charCodeAt(s)))&&s+1<o&&56320==(64512&(e=t.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(e-56320),s++),u+=i<128?1:i<2048?2:i<65536?3:4;for(r=new n.Buf8(u),s=a=0;a<u;s++)55296==(64512&(i=t.charCodeAt(s)))&&s+1<o&&56320==(64512&(e=t.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(e-56320),s++),i<128?r[a++]=i:(i<2048?r[a++]=192|i>>>6:(i<65536?r[a++]=224|i>>>12:(r[a++]=240|i>>>18,r[a++]=128|i>>>12&63),r[a++]=128|i>>>6&63),r[a++]=128|63&i);return r},i.buf2binstring=function(t){return u(t,t.length)},i.binstring2buf=function(t){for(var r=new n.Buf8(t.length),i=0,e=r.length;i<e;i++)r[i]=t.charCodeAt(i);return r},i.buf2string=function(t,r){var i,n,e,s,o=r||t.length,f=new Array(2*o);for(i=n=0;i<o;)if((e=t[i++])<128)f[n++]=e;else if(4<(s=a[e]))f[n++]=65533,i+=s-1;else{for(e&=2===s?31:3===s?15:7;1<s&&i<o;)e=e<<6|63&t[i++],s--;1<s?f[n++]=65533:e<65536?f[n++]=e:(e-=65536,f[n++]=55296|e>>10&1023,f[n++]=56320|1023&e)}return u(f,n)},i.utf8border=function(t,r){var i;for((r=r||t.length)>t.length&&(r=t.length),i=r-1;0<=i&&128==(192&t[i]);)i--;return i<0?r:0===i?r:i+a[t[i]]>r?i:r}},{"./common":41}],43:[function(t,r,i){r.exports=function(t,r,i,n){for(var e=65535&t|0,s=t>>>16&65535|0,a=0;0!==i;){for(i-=a=2e3<i?2e3:i;s=s+(e=e+r[n++]|0)|0,--a;);e%=65521,s%=65521}return e|s<<16|0}},{}],44:[function(t,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,r,i){var n=function(){for(var t,r=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;r[i]=t}return r}();r.exports=function(t,r,i,e){var s=n,a=e+i;t^=-1;for(var o=e;o<a;o++)t=t>>>8^s[255&(t^r[o])];return-1^t}},{}],46:[function(t,r,i){var n,e=t("../utils/common"),s=t("./trees"),a=t("./adler32"),o=t("./crc32"),u=t("./messages"),f=0,c=4,h=0,l=-2,d=-1,v=4,p=2,w=8,b=9,m=286,y=30,k=19,g=2*m+1,E=15,A=3,S=258,_=S+A+1,z=42,U=113,j=1,x=2,O=3,R=4;function B(t,r){return t.msg=u[r],r}function F(t){return(t<<1)-(4<t?9:0)}function C(t){for(var r=t.length;0<=--r;)t[r]=0}function D(t){var r=t.state,i=r.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(e.arraySet(t.output,r.pending_buf,r.pending_out,i,t.next_out),t.next_out+=i,r.pending_out+=i,t.total_out+=i,t.avail_out-=i,r.pending-=i,0===r.pending&&(r.pending_out=0))}function T(t,r){s._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,r),t.block_start=t.strstart,D(t.strm)}function W(t,r){t.pending_buf[t.pending++]=r}function I(t,r){t.pending_buf[t.pending++]=r>>>8&255,t.pending_buf[t.pending++]=255&r}function Z(t,r){var i,n,e=t.max_chain_length,s=t.strstart,a=t.prev_length,o=t.nice_match,u=t.strstart>t.w_size-_?t.strstart-(t.w_size-_):0,f=t.window,c=t.w_mask,h=t.prev,l=t.strstart+S,d=f[s+a-1],v=f[s+a];t.prev_length>=t.good_match&&(e>>=2),o>t.lookahead&&(o=t.lookahead);do{if(f[(i=r)+a]===v&&f[i+a-1]===d&&f[i]===f[s]&&f[++i]===f[s+1]){s+=2,i++;do{}while(f[++s]===f[++i]&&f[++s]===f[++i]&&f[++s]===f[++i]&&f[++s]===f[++i]&&f[++s]===f[++i]&&f[++s]===f[++i]&&f[++s]===f[++i]&&f[++s]===f[++i]&&s<l);if(n=S-(l-s),s=l-S,a<n){if(t.match_start=r,o<=(a=n))break;d=f[s+a-1],v=f[s+a]}}}while((r=h[r&c])>u&&0!=--e);return a<=t.lookahead?a:t.lookahead}function N(t){var r,i,n,s,u,f,c,h,l,d,v=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=v+(v-_)){for(e.arraySet(t.window,t.window,v,v,0),t.match_start-=v,t.strstart-=v,t.block_start-=v,r=i=t.hash_size;n=t.head[--r],t.head[r]=v<=n?n-v:0,--i;);for(r=i=v;n=t.prev[--r],t.prev[r]=v<=n?n-v:0,--i;);s+=v}if(0===t.strm.avail_in)break;if(f=t.strm,c=t.window,h=t.strstart+t.lookahead,l=s,d=void 0,d=f.avail_in,l<d&&(d=l),i=0===d?0:(f.avail_in-=d,e.arraySet(c,f.input,f.next_in,d,h),1===f.state.wrap?f.adler=a(f.adler,c,d,h):2===f.state.wrap&&(f.adler=o(f.adler,c,d,h)),f.next_in+=d,f.total_in+=d,d),t.lookahead+=i,t.lookahead+t.insert>=A)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+A-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<A)););}while(t.lookahead<_&&0!==t.strm.avail_in)}function P(t,r){for(var i,n;;){if(t.lookahead<_){if(N(t),t.lookahead<_&&r===f)return j;if(0===t.lookahead)break}if(i=0,t.lookahead>=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-_&&(t.match_length=Z(t,i)),t.match_length>=A)if(n=s._tr_tally(t,t.strstart-t.match_start,t.match_length-A),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=A){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(T(t,false),0===t.strm.avail_out))return j}return t.insert=t.strstart<A-1?t.strstart:A-1,r===c?(T(t,true),0===t.strm.avail_out?O:R):t.last_lit&&(T(t,false),0===t.strm.avail_out)?j:x}function L(t,r){for(var i,n,e;;){if(t.lookahead<_){if(N(t),t.lookahead<_&&r===f)return j;if(0===t.lookahead)break}if(i=0,t.lookahead>=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=A-1,0!==i&&t.prev_length<t.max_lazy_match&&t.strstart-i<=t.w_size-_&&(t.match_length=Z(t,i),t.match_length<=5&&(1===t.strategy||t.match_length===A&&4096<t.strstart-t.match_start)&&(t.match_length=A-1)),t.prev_length>=A&&t.match_length<=t.prev_length){for(e=t.strstart+t.lookahead-A,n=s._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-A),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=e&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=A-1,t.strstart++,n&&(T(t,false),0===t.strm.avail_out))return j}else if(t.match_available){if((n=s._tr_tally(t,0,t.window[t.strstart-1]))&&T(t,false),t.strstart++,t.lookahead--,0===t.strm.avail_out)return j}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=s._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<A-1?t.strstart:A-1,r===c?(T(t,true),0===t.strm.avail_out?O:R):t.last_lit&&(T(t,false),0===t.strm.avail_out)?j:x}function G(t,r,i,n,e){this.good_length=t,this.max_lazy=r,this.nice_length=i,this.max_chain=n,this.func=e}function M(){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=w,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 e.Buf16(2*g),this.dyn_dtree=new e.Buf16(2*(2*y+1)),this.bl_tree=new e.Buf16(2*(2*k+1)),C(this.dyn_ltree),C(this.dyn_dtree),C(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(E+1),this.heap=new e.Buf16(2*m+1),C(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*m+1),C(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function H(t){var r;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=p,(r=t.state).pending=0,r.pending_out=0,r.wrap<0&&(r.wrap=-r.wrap),r.status=r.wrap?z:U,t.adler=2===r.wrap?0:1,r.last_flush=f,s._tr_init(r),h):B(t,l)}function K(t){var r=H(t);return r===h&&function(t){t.window_size=2*t.w_size,C(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=A-1,t.match_available=0,t.ins_h=0}(t.state),r}function J(t,r,i,n,s,a){if(!t)return l;var o=1;if(r===d&&(r=6),n<0?(o=0,n=-n):15<n&&(o=2,n-=16),s<1||b<s||i!==w||n<8||15<n||r<0||9<r||a<0||v<a)return B(t,l);8===n&&(n=9);var u=new M;return(t.state=u).strm=t,u.wrap=o,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=s+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+A-1)/A),u.window=new e.Buf8(2*u.w_size),u.head=new e.Buf16(u.hash_size),u.prev=new e.Buf16(u.w_size),u.lit_bufsize=1<<s+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new e.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=r,u.strategy=a,u.method=i,K(t)}n=[new G(0,0,0,0,(function(t,r){var i=65535;for(i>t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if(N(t),0===t.lookahead&&r===f)return j;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+i;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,T(t,false),0===t.strm.avail_out))return j;if(t.strstart-t.block_start>=t.w_size-_&&(T(t,false),0===t.strm.avail_out))return j}return t.insert=0,r===c?(T(t,true),0===t.strm.avail_out?O:R):(t.strstart>t.block_start&&(T(t,false),t.strm.avail_out),j)})),new G(4,4,8,4,P),new G(4,5,16,8,P),new G(4,6,32,32,P),new G(4,4,16,16,L),new G(8,16,32,32,L),new G(8,16,128,128,L),new G(8,32,128,256,L),new G(32,128,258,1024,L),new G(32,258,258,4096,L)],i.deflateInit=function(t,r){return J(t,r,w,15,8,0)},i.deflateInit2=J,i.deflateReset=K,i.deflateResetKeep=H,i.deflateSetHeader=function(t,r){return t&&t.state?2!==t.state.wrap?l:(t.state.gzhead=r,h):l},i.deflate=function(t,r){var i,e,a,u;if(!t||!t.state||5<r||r<0)return t?B(t,l):l;if(e=t.state,!t.output||!t.input&&0!==t.avail_in||666===e.status&&r!==c)return B(t,0===t.avail_out?-5:l);if(e.strm=t,i=e.last_flush,e.last_flush=r,e.status===z)if(2===e.wrap)t.adler=0,W(e,31),W(e,139),W(e,8),e.gzhead?(W(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),W(e,255&e.gzhead.time),W(e,e.gzhead.time>>8&255),W(e,e.gzhead.time>>16&255),W(e,e.gzhead.time>>24&255),W(e,9===e.level?2:2<=e.strategy||e.level<2?4:0),W(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(W(e,255&e.gzhead.extra.length),W(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=o(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(W(e,0),W(e,0),W(e,0),W(e,0),W(e,0),W(e,9===e.level?2:2<=e.strategy||e.level<2?4:0),W(e,3),e.status=U);else{var d=w+(e.w_bits-8<<4)<<8;d|=(2<=e.strategy||e.level<2?0:e.level<6?1:6===e.level?2:3)<<6,0!==e.strstart&&(d|=32),d+=31-d%31,e.status=U,I(e,d),0!==e.strstart&&(I(e,t.adler>>>16),I(e,65535&t.adler)),t.adler=1}if(69===e.status)if(e.gzhead.extra){for(a=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>a&&(t.adler=o(t.adler,e.pending_buf,e.pending-a,a)),D(t),a=e.pending,e.pending!==e.pending_buf_size));)W(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>a&&(t.adler=o(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(73===e.status)if(e.gzhead.name){a=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>a&&(t.adler=o(t.adler,e.pending_buf,e.pending-a,a)),D(t),a=e.pending,e.pending===e.pending_buf_size)){u=1;break}u=e.gzindex<e.gzhead.name.length?255&e.gzhead.name.charCodeAt(e.gzindex++):0,W(e,u)}while(0!==u);e.gzhead.hcrc&&e.pending>a&&(t.adler=o(t.adler,e.pending_buf,e.pending-a,a)),0===u&&(e.gzindex=0,e.status=91)}else e.status=91;if(91===e.status)if(e.gzhead.comment){a=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>a&&(t.adler=o(t.adler,e.pending_buf,e.pending-a,a)),D(t),a=e.pending,e.pending===e.pending_buf_size)){u=1;break}u=e.gzindex<e.gzhead.comment.length?255&e.gzhead.comment.charCodeAt(e.gzindex++):0,W(e,u)}while(0!==u);e.gzhead.hcrc&&e.pending>a&&(t.adler=o(t.adler,e.pending_buf,e.pending-a,a)),0===u&&(e.status=103)}else e.status=103;if(103===e.status&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&D(t),e.pending+2<=e.pending_buf_size&&(W(e,255&t.adler),W(e,t.adler>>8&255),t.adler=0,e.status=U)):e.status=U),0!==e.pending){if(D(t),0===t.avail_out)return e.last_flush=-1,h}else if(0===t.avail_in&&F(r)<=F(i)&&r!==c)return B(t,-5);if(666===e.status&&0!==t.avail_in)return B(t,-5);if(0!==t.avail_in||0!==e.lookahead||r!==f&&666!==e.status){var v=2===e.strategy?function(t,r){for(var i;;){if(0===t.lookahead&&(N(t),0===t.lookahead)){if(r===f)return j;break}if(t.match_length=0,i=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(T(t,false),0===t.strm.avail_out))return j}return t.insert=0,r===c?(T(t,true),0===t.strm.avail_out?O:R):t.last_lit&&(T(t,false),0===t.strm.avail_out)?j:x}(e,r):3===e.strategy?function(t,r){for(var i,n,e,a,o=t.window;;){if(t.lookahead<=S){if(N(t),t.lookahead<=S&&r===f)return j;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=A&&0<t.strstart&&(n=o[e=t.strstart-1])===o[++e]&&n===o[++e]&&n===o[++e]){a=t.strstart+S;do{}while(n===o[++e]&&n===o[++e]&&n===o[++e]&&n===o[++e]&&n===o[++e]&&n===o[++e]&&n===o[++e]&&n===o[++e]&&e<a);t.match_length=S-(a-e),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=A?(i=s._tr_tally(t,1,t.match_length-A),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(T(t,false),0===t.strm.avail_out))return j}return t.insert=0,r===c?(T(t,true),0===t.strm.avail_out?O:R):t.last_lit&&(T(t,false),0===t.strm.avail_out)?j:x}(e,r):n[e.level].func(e,r);if(v!==O&&v!==R||(e.status=666),v===j||v===O)return 0===t.avail_out&&(e.last_flush=-1),h;if(v===x&&(1===r?s._tr_align(e):5!==r&&(s._tr_stored_block(e,0,0,false),3===r&&(C(e.head),0===e.lookahead&&(e.strstart=0,e.block_start=0,e.insert=0))),D(t),0===t.avail_out))return e.last_flush=-1,h}return r!==c?h:e.wrap<=0?1:(2===e.wrap?(W(e,255&t.adler),W(e,t.adler>>8&255),W(e,t.adler>>16&255),W(e,t.adler>>24&255),W(e,255&t.total_in),W(e,t.total_in>>8&255),W(e,t.total_in>>16&255),W(e,t.total_in>>24&255)):(I(e,t.adler>>>16),I(e,65535&t.adler)),D(t),0<e.wrap&&(e.wrap=-e.wrap),0!==e.pending?h:1)},i.deflateEnd=function(t){var r;return t&&t.state?(r=t.state.status)!==z&&69!==r&&73!==r&&91!==r&&103!==r&&r!==U&&666!==r?B(t,l):(t.state=null,r===U?B(t,-3):h):l},i.deflateSetDictionary=function(t,r){var i,n,s,o,u,f,c,d,v=r.length;if(!t||!t.state)return l;if(2===(o=(i=t.state).wrap)||1===o&&i.status!==z||i.lookahead)return l;for(1===o&&(t.adler=a(t.adler,r,v,0)),i.wrap=0,v>=i.w_size&&(0===o&&(C(i.head),i.strstart=0,i.block_start=0,i.insert=0),d=new e.Buf8(i.w_size),e.arraySet(d,r,v-i.w_size,i.w_size,0),r=d,v=i.w_size),u=t.avail_in,f=t.next_in,c=t.input,t.avail_in=v,t.next_in=0,t.input=r,N(i);i.lookahead>=A;){for(n=i.strstart,s=i.lookahead-(A-1);i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+A-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++,--s;);i.strstart=n,i.lookahead=A-1,N(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=A-1,i.match_available=0,t.next_in=f,t.input=c,t.avail_in=u,i.wrap=o,h},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,r,i){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=false}},{}],48:[function(t,r,i){r.exports=function(t,r){var i,n,e,s,a,o,u,f,c,h,l,d,v,p,w,b,m,y,k,g,E,A,S,_,z;i=t.state,n=t.next_in,_=t.input,e=n+(t.avail_in-5),s=t.next_out,z=t.output,a=s-(r-t.avail_out),o=s+(t.avail_out-257),u=i.dmax,f=i.wsize,c=i.whave,h=i.wnext,l=i.window,d=i.hold,v=i.bits,p=i.lencode,w=i.distcode,b=(1<<i.lenbits)-1,m=(1<<i.distbits)-1;t:do{v<15&&(d+=_[n++]<<v,v+=8,d+=_[n++]<<v,v+=8),y=p[d&b];r:for(;;){if(d>>>=k=y>>>24,v-=k,0===(k=y>>>16&255))z[s++]=65535&y;else{if(!(16&k)){if(0==(64&k)){y=p[(65535&y)+(d&(1<<k)-1)];continue r}if(32&k){i.mode=12;break t}t.msg="invalid literal/length code",i.mode=30;break t}g=65535&y,(k&=15)&&(v<k&&(d+=_[n++]<<v,v+=8),g+=d&(1<<k)-1,d>>>=k,v-=k),v<15&&(d+=_[n++]<<v,v+=8,d+=_[n++]<<v,v+=8),y=w[d&m];i:for(;;){if(d>>>=k=y>>>24,v-=k,!(16&(k=y>>>16&255))){if(0==(64&k)){y=w[(65535&y)+(d&(1<<k)-1)];continue i}t.msg="invalid distance code",i.mode=30;break t}if(E=65535&y,v<(k&=15)&&(d+=_[n++]<<v,(v+=8)<k&&(d+=_[n++]<<v,v+=8)),u<(E+=d&(1<<k)-1)){t.msg="invalid distance too far back",i.mode=30;break t}if(d>>>=k,v-=k,(k=s-a)<E){if(c<(k=E-k)&&i.sane){t.msg="invalid distance too far back",i.mode=30;break t}if(S=l,(A=0)===h){if(A+=f-k,k<g){for(g-=k;z[s++]=l[A++],--k;);A=s-E,S=z}}else if(h<k){if(A+=f+h-k,(k-=h)<g){for(g-=k;z[s++]=l[A++],--k;);if(A=0,h<g){for(g-=k=h;z[s++]=l[A++],--k;);A=s-E,S=z}}}else if(A+=h-k,k<g){for(g-=k;z[s++]=l[A++],--k;);A=s-E,S=z}for(;2<g;)z[s++]=S[A++],z[s++]=S[A++],z[s++]=S[A++],g-=3;g&&(z[s++]=S[A++],1<g&&(z[s++]=S[A++]))}else{for(A=s-E;z[s++]=z[A++],z[s++]=z[A++],z[s++]=z[A++],2<(g-=3););g&&(z[s++]=z[A++],1<g&&(z[s++]=z[A++]))}break}}break}}while(n<e&&s<o);n-=g=v>>3,d&=(1<<(v-=g<<3))-1,t.next_in=n,t.next_out=s,t.avail_in=n<e?e-n+5:5-(n-e),t.avail_out=s<o?o-s+257:257-(s-o),i.hold=d,i.bits=v}},{}],49:[function(t,r,i){var n=t("../utils/common"),e=t("./adler32"),s=t("./crc32"),a=t("./inffast"),o=t("./inftrees"),u=1,f=2,c=0,h=-2,l=1,d=852,v=592;function p(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function w(){this.mode=0,this.last=false,this.wrap=0,this.havedict=false,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(t){var r;return t&&t.state?(r=t.state,t.total_in=t.total_out=r.total=0,t.msg="",r.wrap&&(t.adler=1&r.wrap),r.mode=l,r.last=0,r.havedict=0,r.dmax=32768,r.head=null,r.hold=0,r.bits=0,r.lencode=r.lendyn=new n.Buf32(d),r.distcode=r.distdyn=new n.Buf32(v),r.sane=1,r.back=-1,c):h}function m(t){var r;return t&&t.state?((r=t.state).wsize=0,r.whave=0,r.wnext=0,b(t)):h}function y(t,r){var i,n;return t&&t.state?(n=t.state,r<0?(i=0,r=-r):(i=1+(r>>4),r<48&&(r&=15)),r&&(r<8||15<r)?h:(null!==n.window&&n.wbits!==r&&(n.window=null),n.wrap=i,n.wbits=r,m(t))):h}function k(t,r){var i,n;return t?(n=new w,(t.state=n).window=null,(i=y(t,r))!==c&&(t.state=null),i):h}var g,E,A=true;function S(t){if(A){var r;for(g=new n.Buf32(512),E=new n.Buf32(32),r=0;r<144;)t.lens[r++]=8;for(;r<256;)t.lens[r++]=9;for(;r<280;)t.lens[r++]=7;for(;r<288;)t.lens[r++]=8;for(o(u,t.lens,0,288,g,0,t.work,{bits:9}),r=0;r<32;)t.lens[r++]=5;o(f,t.lens,0,32,E,0,t.work,{bits:5}),A=false}t.lencode=g,t.lenbits=9,t.distcode=E,t.distbits=5}function _(t,r,i,e){var s,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),e>=a.wsize?(n.arraySet(a.window,r,i-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(e<(s=a.wsize-a.wnext)&&(s=e),n.arraySet(a.window,r,i-e,s,a.wnext),(e-=s)?(n.arraySet(a.window,r,i-e,e,0),a.wnext=e,a.whave=a.wsize):(a.wnext+=s,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=s))),0}i.inflateReset=m,i.inflateReset2=y,i.inflateResetKeep=b,i.inflateInit=function(t){return k(t,15)},i.inflateInit2=k,i.inflate=function(t,r){var i,d,v,w,b,m,y,k,g,E,A,z,U,j,x,O,R,B,F,C,D,T,W,I,Z=0,N=new n.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;12===(i=t.state).mode&&(i.mode=13),b=t.next_out,v=t.output,y=t.avail_out,w=t.next_in,d=t.input,m=t.avail_in,k=i.hold,g=i.bits,E=m,A=y,T=c;t:for(;;)switch(i.mode){case l:if(0===i.wrap){i.mode=13;break}for(;g<16;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(2&i.wrap&&35615===k){N[i.check=0]=255&k,N[1]=k>>>8&255,i.check=s(i.check,N,2,0),g=k=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=false),!(1&i.wrap)||(((255&k)<<8)+(k>>8))%31){t.msg="incorrect header check",i.mode=30;break}if(8!=(15&k)){t.msg="unknown compression method",i.mode=30;break}if(g-=4,D=8+(15&(k>>>=4)),0===i.wbits)i.wbits=D;else if(D>i.wbits){t.msg="invalid window size",i.mode=30;break}i.dmax=1<<D,t.adler=i.check=1,i.mode=512&k?10:12,g=k=0;break;case 2:for(;g<16;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(i.flags=k,8!=(255&i.flags)){t.msg="unknown compression method",i.mode=30;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=30;break}i.head&&(i.head.text=k>>8&1),512&i.flags&&(N[0]=255&k,N[1]=k>>>8&255,i.check=s(i.check,N,2,0)),g=k=0,i.mode=3;case 3:for(;g<32;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}i.head&&(i.head.time=k),512&i.flags&&(N[0]=255&k,N[1]=k>>>8&255,N[2]=k>>>16&255,N[3]=k>>>24&255,i.check=s(i.check,N,4,0)),g=k=0,i.mode=4;case 4:for(;g<16;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}i.head&&(i.head.xflags=255&k,i.head.os=k>>8),512&i.flags&&(N[0]=255&k,N[1]=k>>>8&255,i.check=s(i.check,N,2,0)),g=k=0,i.mode=5;case 5:if(1024&i.flags){for(;g<16;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}i.length=k,i.head&&(i.head.extra_len=k),512&i.flags&&(N[0]=255&k,N[1]=k>>>8&255,i.check=s(i.check,N,2,0)),g=k=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(m<(z=i.length)&&(z=m),z&&(i.head&&(D=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,d,w,z,D)),512&i.flags&&(i.check=s(i.check,d,z,w)),m-=z,w+=z,i.length-=z),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===m)break t;for(z=0;D=d[w+z++],i.head&&D&&i.length<65536&&(i.head.name+=String.fromCharCode(D)),D&&z<m;);if(512&i.flags&&(i.check=s(i.check,d,z,w)),m-=z,w+=z,D)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===m)break t;for(z=0;D=d[w+z++],i.head&&D&&i.length<65536&&(i.head.comment+=String.fromCharCode(D)),D&&z<m;);if(512&i.flags&&(i.check=s(i.check,d,z,w)),m-=z,w+=z,D)break t}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;g<16;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(k!==(65535&i.check)){t.msg="header crc mismatch",i.mode=30;break}g=k=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=true),t.adler=i.check=0,i.mode=12;break;case 10:for(;g<32;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}t.adler=i.check=p(k),g=k=0,i.mode=11;case 11:if(0===i.havedict)return t.next_out=b,t.avail_out=y,t.next_in=w,t.avail_in=m,i.hold=k,i.bits=g,2;t.adler=i.check=1,i.mode=12;case 12:if(5===r||6===r)break t;case 13:if(i.last){k>>>=7&g,g-=7&g,i.mode=27;break}for(;g<3;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}switch(i.last=1&k,g-=1,3&(k>>>=1)){case 0:i.mode=14;break;case 1:if(S(i),i.mode=20,6!==r)break;k>>>=2,g-=2;break t;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=30}k>>>=2,g-=2;break;case 14:for(k>>>=7&g,g-=7&g;g<32;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if((65535&k)!=(k>>>16^65535)){t.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&k,g=k=0,i.mode=15,6===r)break t;case 15:i.mode=16;case 16:if(z=i.length){if(m<z&&(z=m),y<z&&(z=y),0===z)break t;n.arraySet(v,d,w,z,b),m-=z,w+=z,y-=z,b+=z,i.length-=z;break}i.mode=12;break;case 17:for(;g<14;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(i.nlen=257+(31&k),k>>>=5,g-=5,i.ndist=1+(31&k),k>>>=5,g-=5,i.ncode=4+(15&k),k>>>=4,g-=4,286<i.nlen||30<i.ndist){t.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;g<3;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}i.lens[P[i.have++]]=7&k,k>>>=3,g-=3}for(;i.have<19;)i.lens[P[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,W={bits:i.lenbits},T=o(0,i.lens,0,19,i.lencode,0,i.work,W),i.lenbits=W.bits,T){t.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;O=(Z=i.lencode[k&(1<<i.lenbits)-1])>>>16&255,R=65535&Z,!((x=Z>>>24)<=g);){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(R<16)k>>>=x,g-=x,i.lens[i.have++]=R;else{if(16===R){for(I=x+2;g<I;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(k>>>=x,g-=x,0===i.have){t.msg="invalid bit length repeat",i.mode=30;break}D=i.lens[i.have-1],z=3+(3&k),k>>>=2,g-=2}else if(17===R){for(I=x+3;g<I;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}g-=x,D=0,z=3+(7&(k>>>=x)),k>>>=3,g-=3}else{for(I=x+7;g<I;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}g-=x,D=0,z=11+(127&(k>>>=x)),k>>>=7,g-=7}if(i.have+z>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=30;break}for(;z--;)i.lens[i.have++]=D}}if(30===i.mode)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,W={bits:i.lenbits},T=o(u,i.lens,0,i.nlen,i.lencode,0,i.work,W),i.lenbits=W.bits,T){t.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,W={bits:i.distbits},T=o(f,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,W),i.distbits=W.bits,T){t.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===r)break t;case 20:i.mode=21;case 21:if(6<=m&&258<=y){t.next_out=b,t.avail_out=y,t.next_in=w,t.avail_in=m,i.hold=k,i.bits=g,a(t,A),b=t.next_out,v=t.output,y=t.avail_out,w=t.next_in,d=t.input,m=t.avail_in,k=i.hold,g=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;O=(Z=i.lencode[k&(1<<i.lenbits)-1])>>>16&255,R=65535&Z,!((x=Z>>>24)<=g);){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(O&&0==(240&O)){for(B=x,F=O,C=R;O=(Z=i.lencode[C+((k&(1<<B+F)-1)>>B)])>>>16&255,R=65535&Z,!(B+(x=Z>>>24)<=g);){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}k>>>=B,g-=B,i.back+=B}if(k>>>=x,g-=x,i.back+=x,i.length=R,0===O){i.mode=26;break}if(32&O){i.back=-1,i.mode=12;break}if(64&O){t.msg="invalid literal/length code",i.mode=30;break}i.extra=15&O,i.mode=22;case 22:if(i.extra){for(I=i.extra;g<I;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}i.length+=k&(1<<i.extra)-1,k>>>=i.extra,g-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;O=(Z=i.distcode[k&(1<<i.distbits)-1])>>>16&255,R=65535&Z,!((x=Z>>>24)<=g);){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(0==(240&O)){for(B=x,F=O,C=R;O=(Z=i.distcode[C+((k&(1<<B+F)-1)>>B)])>>>16&255,R=65535&Z,!(B+(x=Z>>>24)<=g);){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}k>>>=B,g-=B,i.back+=B}if(k>>>=x,g-=x,i.back+=x,64&O){t.msg="invalid distance code",i.mode=30;break}i.offset=R,i.extra=15&O,i.mode=24;case 24:if(i.extra){for(I=i.extra;g<I;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}i.offset+=k&(1<<i.extra)-1,k>>>=i.extra,g-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===y)break t;if(z=A-y,i.offset>z){if((z=i.offset-z)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=30;break}U=z>i.wnext?(z-=i.wnext,i.wsize-z):i.wnext-z,z>i.length&&(z=i.length),j=i.window}else j=v,U=b-i.offset,z=i.length;for(y<z&&(z=y),y-=z,i.length-=z;v[b++]=j[U++],--z;);0===i.length&&(i.mode=21);break;case 26:if(0===y)break t;v[b++]=i.length,y--,i.mode=21;break;case 27:if(i.wrap){for(;g<32;){if(0===m)break t;m--,k|=d[w++]<<g,g+=8}if(A-=y,t.total_out+=A,i.total+=A,A&&(t.adler=i.check=i.flags?s(i.check,v,A,b-A):e(i.check,v,A,b-A)),A=y,(i.flags?k:p(k))!==i.check){t.msg="incorrect data check",i.mode=30;break}g=k=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;g<32;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(k!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=30;break}g=k=0}i.mode=29;case 29:T=1;break t;case 30:T=-3;break t;case 31:return-4;case 32:default:return h}return t.next_out=b,t.avail_out=y,t.next_in=w,t.avail_in=m,i.hold=k,i.bits=g,(i.wsize||A!==t.avail_out&&i.mode<30&&(i.mode<27||4!==r))&&_(t,t.output,t.next_out,A-t.avail_out)?(i.mode=31,-4):(E-=t.avail_in,A-=t.avail_out,t.total_in+=E,t.total_out+=A,i.total+=A,i.wrap&&A&&(t.adler=i.check=i.flags?s(i.check,v,A,t.next_out-A):e(i.check,v,A,t.next_out-A)),t.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0==E&&0===A||4===r)&&T===c&&(T=-5),T)},i.inflateEnd=function(t){if(!t||!t.state)return h;var r=t.state;return r.window&&(r.window=null),t.state=null,c},i.inflateGetHeader=function(t,r){var i;return t&&t.state?0==(2&(i=t.state).wrap)?h:((i.head=r).done=false,c):h},i.inflateSetDictionary=function(t,r){var i,n=r.length;return t&&t.state?0!==(i=t.state).wrap&&11!==i.mode?h:11===i.mode&&e(1,r,n,0)!==i.check?-3:_(t,r,n,n)?(i.mode=31,-4):(i.havedict=1,c):h},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,r,i){var n=t("../utils/common"),e=[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],s=[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],o=[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];r.exports=function(t,r,i,u,f,c,h,l){var d,v,p,w,b,m,y,k,g,E=l.bits,A=0,S=0,_=0,z=0,U=0,j=0,x=0,O=0,R=0,B=0,F=null,C=0,D=new n.Buf16(16),T=new n.Buf16(16),W=null,I=0;for(A=0;A<=15;A++)D[A]=0;for(S=0;S<u;S++)D[r[i+S]]++;for(U=E,z=15;1<=z&&0===D[z];z--);if(z<U&&(U=z),0===z)return f[c++]=20971520,f[c++]=20971520,l.bits=1,0;for(_=1;_<z&&0===D[_];_++);for(U<_&&(U=_),A=O=1;A<=15;A++)if(O<<=1,(O-=D[A])<0)return-1;if(0<O&&(0===t||1!==z))return-1;for(T[1]=0,A=1;A<15;A++)T[A+1]=T[A]+D[A];for(S=0;S<u;S++)0!==r[i+S]&&(h[T[r[i+S]]++]=S);if(m=0===t?(F=W=h,19):1===t?(F=e,C-=257,W=s,I-=257,256):(F=a,W=o,-1),A=_,b=c,x=S=B=0,p=-1,w=(R=1<<(j=U))-1,1===t&&852<R||2===t&&592<R)return 1;for(;;){for(y=A-x,g=h[S]<m?(k=0,h[S]):h[S]>m?(k=W[I+h[S]],F[C+h[S]]):(k=96,0),d=1<<A-x,_=v=1<<j;f[b+(B>>x)+(v-=d)]=y<<24|k<<16|g|0,0!==v;);for(d=1<<A-1;B&d;)d>>=1;if(0!==d?(B&=d-1,B+=d):B=0,S++,0==--D[A]){if(A===z)break;A=r[i+h[S]]}if(U<A&&(B&w)!==p){for(0===x&&(x=U),b+=_,O=1<<(j=A-x);j+x<z&&!((O-=D[j+x])<=0);)j++,O<<=1;if(R+=1<<j,1===t&&852<R||2===t&&592<R)return 1;f[p=B&w]=U<<24|j<<16|b-c|0}}return 0!==B&&(f[b+B]=A-x<<24|64<<16|0),l.bits=U,0}},{"../utils/common":41}],51:[function(t,r,i){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,r,i){var n=t("../utils/common"),e=0,s=1;function a(t){for(var r=t.length;0<=--r;)t[r]=0}var o=0,u=29,f=256,c=f+1+u,h=30,l=19,d=2*c+1,v=15,p=16,w=7,b=256,m=16,y=17,k=18,g=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(2*(c+2));a(_);var z=new Array(2*h);a(z);var U=new Array(512);a(U);var j=new Array(256);a(j);var x=new Array(u);a(x);var O,R,B,F=new Array(h);function C(t,r,i,n,e){this.static_tree=t,this.extra_bits=r,this.extra_base=i,this.elems=n,this.max_length=e,this.has_stree=t&&t.length}function D(t,r){this.dyn_tree=t,this.max_code=0,this.stat_desc=r}function T(t){return t<256?U[t]:U[256+(t>>>7)]}function W(t,r){t.pending_buf[t.pending++]=255&r,t.pending_buf[t.pending++]=r>>>8&255}function I(t,r,i){t.bi_valid>p-i?(t.bi_buf|=r<<t.bi_valid&65535,W(t,t.bi_buf),t.bi_buf=r>>p-t.bi_valid,t.bi_valid+=i-p):(t.bi_buf|=r<<t.bi_valid&65535,t.bi_valid+=i)}function Z(t,r,i){I(t,i[2*r],i[2*r+1])}function N(t,r){for(var i=0;i|=1&t,t>>>=1,i<<=1,0<--r;);return i>>>1}function P(t,r,i){var n,e,s=new Array(v+1),a=0;for(n=1;n<=v;n++)s[n]=a=a+i[n-1]<<1;for(e=0;e<=r;e++){var o=t[2*e+1];0!==o&&(t[2*e]=N(s[o]++,o))}}function L(t){var r;for(r=0;r<c;r++)t.dyn_ltree[2*r]=0;for(r=0;r<h;r++)t.dyn_dtree[2*r]=0;for(r=0;r<l;r++)t.bl_tree[2*r]=0;t.dyn_ltree[2*b]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function G(t){8<t.bi_valid?W(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function M(t,r,i,n){var e=2*r,s=2*i;return t[e]<t[s]||t[e]===t[s]&&n[r]<=n[i]}function H(t,r,i){for(var n=t.heap[i],e=i<<1;e<=t.heap_len&&(e<t.heap_len&&M(r,t.heap[e+1],t.heap[e],t.depth)&&e++,!M(r,n,t.heap[e],t.depth));)t.heap[i]=t.heap[e],i=e,e<<=1;t.heap[i]=n}function K(t,r,i){var n,e,s,a,o=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],e=t.pending_buf[t.l_buf+o],o++,0===n?Z(t,e,r):(Z(t,(s=j[e])+f+1,r),0!==(a=g[s])&&I(t,e-=x[s],a),Z(t,s=T(--n),i),0!==(a=E[s])&&I(t,n-=F[s],a)),o<t.last_lit;);Z(t,b,r)}function J(t,r){var i,n,e,s=r.dyn_tree,a=r.stat_desc.static_tree,o=r.stat_desc.has_stree,u=r.stat_desc.elems,f=-1;for(t.heap_len=0,t.heap_max=d,i=0;i<u;i++)0!==s[2*i]?(t.heap[++t.heap_len]=f=i,t.depth[i]=0):s[2*i+1]=0;for(;t.heap_len<2;)s[2*(e=t.heap[++t.heap_len]=f<2?++f:0)]=1,t.depth[e]=0,t.opt_len--,o&&(t.static_len-=a[2*e+1]);for(r.max_code=f,i=t.heap_len>>1;1<=i;i--)H(t,s,i);for(e=u;i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],H(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,s[2*e]=s[2*i]+s[2*n],t.depth[e]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,s[2*i+1]=s[2*n+1]=e,t.heap[1]=e++,H(t,s,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,r){var i,n,e,s,a,o,u=r.dyn_tree,f=r.max_code,c=r.stat_desc.static_tree,h=r.stat_desc.has_stree,l=r.stat_desc.extra_bits,p=r.stat_desc.extra_base,w=r.stat_desc.max_length,b=0;for(s=0;s<=v;s++)t.bl_count[s]=0;for(u[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<d;i++)w<(s=u[2*u[2*(n=t.heap[i])+1]+1]+1)&&(s=w,b++),u[2*n+1]=s,f<n||(t.bl_count[s]++,a=0,p<=n&&(a=l[n-p]),o=u[2*n],t.opt_len+=o*(s+a),h&&(t.static_len+=o*(c[2*n+1]+a)));if(0!==b){do{for(s=w-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[w]--,b-=2}while(0<b);for(s=w;0!==s;s--)for(n=t.bl_count[s];0!==n;)f<(e=t.heap[--i])||(u[2*e+1]!==s&&(t.opt_len+=(s-u[2*e+1])*u[2*e],u[2*e+1]=s),n--)}}(t,r),P(s,f,t.bl_count)}function V(t,r,i){var n,e,s=-1,a=r[1],o=0,u=7,f=4;for(0===a&&(u=138,f=3),r[2*(i+1)+1]=65535,n=0;n<=i;n++)e=a,a=r[2*(n+1)+1],++o<u&&e===a||(o<f?t.bl_tree[2*e]+=o:0!==e?(e!==s&&t.bl_tree[2*e]++,t.bl_tree[2*m]++):o<=10?t.bl_tree[2*y]++:t.bl_tree[2*k]++,s=e,f=(o=0)===a?(u=138,3):e===a?(u=6,3):(u=7,4))}function q(t,r,i){var n,e,s=-1,a=r[1],o=0,u=7,f=4;for(0===a&&(u=138,f=3),n=0;n<=i;n++)if(e=a,a=r[2*(n+1)+1],!(++o<u&&e===a)){if(o<f)for(;Z(t,e,t.bl_tree),0!=--o;);else 0!==e?(e!==s&&(Z(t,e,t.bl_tree),o--),Z(t,m,t.bl_tree),I(t,o-3,2)):o<=10?(Z(t,y,t.bl_tree),I(t,o-3,3)):(Z(t,k,t.bl_tree),I(t,o-11,7));s=e,f=(o=0)===a?(u=138,3):e===a?(u=6,3):(u=7,4)}}a(F);var X=false;function Y(t,r,i,e){I(t,(o<<1)+(e?1:0),3),function(t,r,i,e){G(t),W(t,i),W(t,~i),n.arraySet(t.pending_buf,t.window,r,i,t.pending),t.pending+=i}(t,r,i)}i._tr_init=function(t){X||(function(){var t,r,i,n,e,s=new Array(v+1);for(n=i=0;n<u-1;n++)for(x[n]=i,t=0;t<1<<g[n];t++)j[i++]=n;for(j[i-1]=n,n=e=0;n<16;n++)for(F[n]=e,t=0;t<1<<E[n];t++)U[e++]=n;for(e>>=7;n<h;n++)for(F[n]=e<<7,t=0;t<1<<E[n]-7;t++)U[256+e++]=n;for(r=0;r<=v;r++)s[r]=0;for(t=0;t<=143;)_[2*t+1]=8,t++,s[8]++;for(;t<=255;)_[2*t+1]=9,t++,s[9]++;for(;t<=279;)_[2*t+1]=7,t++,s[7]++;for(;t<=287;)_[2*t+1]=8,t++,s[8]++;for(P(_,c+1,s),t=0;t<h;t++)z[2*t+1]=5,z[2*t]=N(t,5);O=new C(_,g,f+1,c,v),R=new C(z,E,0,h,v),B=new C(new Array(0),A,0,l,w)}(),X=true),t.l_desc=new D(t.dyn_ltree,O),t.d_desc=new D(t.dyn_dtree,R),t.bl_desc=new D(t.bl_tree,B),t.bi_buf=0,t.bi_valid=0,L(t)},i._tr_stored_block=Y,i._tr_flush_block=function(t,r,i,n){var a,o,u=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var r,i=4093624447;for(r=0;r<=31;r++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*r])return e;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return s;for(r=32;r<f;r++)if(0!==t.dyn_ltree[2*r])return s;return e}(t)),J(t,t.l_desc),J(t,t.d_desc),u=function(t){var r;for(V(t,t.dyn_ltree,t.l_desc.max_code),V(t,t.dyn_dtree,t.d_desc.max_code),J(t,t.bl_desc),r=l-1;3<=r&&0===t.bl_tree[2*S[r]+1];r--);return t.opt_len+=3*(r+1)+5+5+4,r}(t),a=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=a&&(a=o)):a=o=i+5,i+4<=a&&-1!==r?Y(t,r,i,n):4===t.strategy||o===a?(I(t,2+(n?1:0),3),K(t,_,z)):(I(t,4+(n?1:0),3),function(t,r,i,n){var e;for(I(t,r-257,5),I(t,i-1,5),I(t,n-4,4),e=0;e<n;e++)I(t,t.bl_tree[2*S[e]+1],3);q(t,t.dyn_ltree,r-1),q(t,t.dyn_dtree,i-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),K(t,t.dyn_ltree,t.dyn_dtree)),L(t),n&&G(t)},i._tr_tally=function(t,r,i){return t.pending_buf[t.d_buf+2*t.last_lit]=r>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&r,t.pending_buf[t.l_buf+t.last_lit]=255&i,t.last_lit++,0===r?t.dyn_ltree[2*i]++:(t.matches++,r--,t.dyn_ltree[2*(j[i]+f+1)]++,t.dyn_dtree[2*T(r)]++),t.last_lit===t.lit_bufsize-1},i._tr_align=function(t){I(t,2,3),Z(t,b,_),function(t){16===t.bi_valid?(W(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,i,n){(function(t){!function(t,r){if(!t.setImmediate){var i,n,e,s,a=1,o={},u=false,f=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,i="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){l(t)}))}:function(){if(t.postMessage&&!t.importScripts){var r=true,i=t.onmessage;return t.onmessage=function(){r=false},t.postMessage("","*"),t.onmessage=i,r}}()?(s="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",d,false):t.attachEvent("onmessage",d),function(r){t.postMessage(s+r,"*")}):t.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){l(t.data)},function(t){e.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(n=f.documentElement,function(t){var r=f.createElement("script");r.onreadystatechange=function(){l(t),r.onreadystatechange=null,n.removeChild(r),r=null},n.appendChild(r)}):function(t){setTimeout(l,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];var e={callback:t,args:r};return o[a]=e,i(a),a++},c.clearImmediate=h}function h(t){delete o[t]}function l(t){if(u)setTimeout(l,0,t);else{var i=o[t];if(i){u=true;try{!function(t){var i=t.callback,n=t.args;switch(n.length){case 0:i();break;case 1:i(n[0]);break;case 2:i(n[0],n[1]);break;case 3:i(n[0],n[1],n[2]);break;default:i.apply(r,n)}}(i)}finally{h(t),u=false}}}}function d(r){r.source===t&&"string"==typeof r.data&&0===r.data.indexOf(s)&&l(+r.data.slice(s.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,"undefined"!=typeof r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))})(h);return h.exports}var v=d();var p=i(v);var w=t("j",(function(t){switch(t){case"textarea":return 150;case"textbox":return 150;case"timestamp":return 105;case"date":return 75;case"dropdown":return 85;case"attachment":case"payment":return 24;case"radio":case"checkbox":return 14;case"signature":case"initial":return 71}return 150}));var b=t("i",(function(t){switch(t){case"textarea":return 41;case"textbox":return 15;case"timestamp":return 15;case"date":return 15;case"dropdown":return 20;case"attachment":case"payment":return 24;case"radio":case"checkbox":return 14;case"signature":case"initial":return 36}return 50}));var m=t("h",(function(t,r,i,n){var e=r.x,s=e===void 0?0:e,a=r.y,u=a===void 0?0:a,f=r.width,c=f===void 0?w(r.type):f,h=r.height,l=h===void 0?b(r.type):h;t.style.width="".concat(c,"px");t.style.height="".concat(l,"px");t.style.position="absolute";t.style.left="".concat(o(i,s),"px");t.style.bottom="".concat(o(n,u),"px");t.style.transform="scale(".concat(i,", ").concat(n,")")}));var y=t("c",(function(t,r,i){var n=t.x,e=n===void 0?0:n,s=t.y,a=s===void 0?0:s,u=t.width,f=u===void 0?w(t.type):u,c=t.height,h=c===void 0?b(t.type):c;return{zIndex:"100",width:"".concat(f,"px"),height:"".concat(h,"px"),position:"absolute",left:"".concat(o(r,e),"px"),bottom:"".concat(o(i,a),"px"),transform:"scale(".concat(r,", ").concat(i,")")}}));var k=t("g",(function(t){return"verdocs-doc-fld-".concat(t.name)}));var g=t("u",(function(t){var r=k(t);var i=document.getElementById(r);if(i){i.field=t;i.roleindex=t;i.setAttribute("id",r);i.setAttribute("disabled",true);i.setAttribute("disabled",false)}}));var E=t("r",(function(t,r,i,n,e){if(e===void 0){e=1}var s,a;var o=n.disabled,u=o===void 0?false:o,f=n.editable,c=f===void 0?false:f,h=n.draggable,l=h===void 0?false:h,d=n.done,v=d===void 0?false:d;var p=document.getElementById(i.containerId+"-controls");if(!p){console.log("[renderDocumentField] No controls DIV found",i.containerId+"-controls",i);return}switch(r.type){case"attachment":case"date":case"dropdown":case"initial":case"payment":case"signature":case"timestamp":case"textarea":case"textbox":{var w=k(r);var b=document.getElementById(w);if(b){m(b,r,i.xScale,i.yScale);return b}var y=r.type;if(y==="textbox"){if(((s=r["setting"])===null||s===void 0?void 0:s.leading)>0||((a=r["settings"])===null||a===void 0?void 0:a.leading)>0){y="textarea"}}var g=document.createElement("verdocs-field-".concat(y));g.field=r;g.setAttribute("id",w);g.setAttribute("fieldname",r.name);g.setAttribute("source",t);g.setAttribute("sourceid","template_id"in r?r.template_id:r.envelope_id);if(u){g.setAttribute("tabindex",-1);g.setAttribute("disabled",true)}else{g.setAttribute("tabIndex",e)}g.setAttribute("editable",c);g.setAttribute("draggable",l);g.setAttribute("done",v);m(g,r,i.xScale,i.yScale);p.appendChild(g);return g}case"checkbox":{var w=k(r);var b=document.getElementById(w);if(b){m(b,r,i.xScale,i.yScale);return b}var E=document.createElement("verdocs-field-checkbox");E.field=r;E.setAttribute("id",w);E.setAttribute("option",0);if(u){E.setAttribute("disabled",true)}if(v){E.setAttribute("done",true)}if(c){E.setAttribute("editable",true)}if(l){E.setAttribute("draggable",true)}m(E,r,i.xScale,i.yScale);p.appendChild(E);return E}case"radio":{var w=k(r);var b=document.getElementById(w);if(b){m(b,r,i.xScale,i.yScale);return b}var A=document.createElement("verdocs-field-radio");A.field=r;A.setAttribute("id",w);A.setAttribute("option",0);if(u){A.setAttribute("disabled",true)}if(v){A.setAttribute("done",true)}if(c){A.setAttribute("editable",true)}if(l){A.setAttribute("draggable",true)}m(A,r,i.xScale,i.yScale);p.appendChild(A);return A}default:console.log("[PREVIEW] Skipping unsupported field type",r);return null}}));var A=t("e",(function(t,r,i){var n=t.style.transform||"";var e="".concat(r,"(").concat(i,")");if(n.includes(r)){t.style.transform=n.replace(new RegExp("".concat(r,"\\(.+?\\)")),e)}else{t.style.transform=n+" "+e}}));var S=t("f",(function(t){t.style.transform=t.style.transform.split(")")[0]+")"}));var _=t("a",(function(t,r,i){return __awaiter(f,void 0,void 0,(function(){var s,o,f;return __generator(this,(function(c){switch(c.label){case 0:s=n.format(new Date(r.updated_at),u);o="".concat(r.name," - ").concat(s,".pdf");return[4,e(t,r.id,i)];case 1:f=c.sent();a(f,o);return[2]}}))}))}));var z=t("s",(function(t,r){return __awaiter(f,void 0,void 0,(function(){var i,o,f,c,h,l,d,v,w,b,m,y,k,g,E,A,S,_,z,U,j,x,O,R;var B,F,C;var D,T,W,I,Z,N,P,L,G,M,H,K;return __generator(this,(function(J){switch(J.label){case 0:o=new p;J.label=1;case 1:J.trys.push([1,30,31,36]);B=true,F=__asyncValues(r);J.label=2;case 2:return[4,F.next()];case 3:if(!(C=J.sent(),D=C.done,!D))return[3,29];I=C.value;B=false;f=I;c=n.format(new Date(f.updated_at),u);h=r.length>0?o.folder("".concat(f.id," - ").concat(f.name," - ").concat(c)):null;J.label=4;case 4:J.trys.push([4,22,23,28]);l=true,d=(N=void 0,__asyncValues(f.documents));J.label=5;case 5:return[4,d.next()];case 6:if(!(v=J.sent(),Z=v.done,!Z))return[3,21];L=v.value;l=false;w=L;b=w.type==="certificate"?"".concat(f.name,"_certificate.pdf"):"".concat(w.name.replace(".pdf","").replace(/\//g,"_"),".pdf");return[4,e(t,f.id,w.id)];case 7:m=J.sent();if(h){h.file(b,m,{compression:"DEFLATE"})}else{o.file(b,m,{compression:"DEFLATE"})}y=((i=f.fields)===null||i===void 0?void 0:i.filter((function(t){return t.type==="attachment"&&t.settings["name"]})))||[];if(!(y.length>0))return[3,20];k=h?h.folder("attachments"):o.folder("attachments");J.label=8;case 8:J.trys.push([8,14,15,20]);g=true,E=(M=void 0,__asyncValues(y));J.label=9;case 9:return[4,E.next()];case 10:if(!(A=J.sent(),G=A.done,!G))return[3,13];K=A.value;g=false;S=K;return[4,s(t,f.id,S.name)];case 11:_=J.sent();k.file(S.settings["name"].replace(/\//g,"_"),_,{compression:"DEFLATE"});J.label=12;case 12:g=true;return[3,9];case 13:return[3,20];case 14:z=J.sent();M={error:z};return[3,20];case 15:J.trys.push([15,,18,19]);if(!(!g&&!G&&(H=E.return)))return[3,17];return[4,H.call(E)];case 16:J.sent();J.label=17;case 17:return[3,19];case 18:if(M)throw M.error;return[7];case 19:return[7];case 20:l=true;return[3,5];case 21:return[3,28];case 22:U=J.sent();N={error:U};return[3,28];case 23:J.trys.push([23,,26,27]);if(!(!l&&!Z&&(P=d.return)))return[3,25];return[4,P.call(d)];case 24:J.sent();J.label=25;case 25:return[3,27];case 26:if(N)throw N.error;return[7];case 27:return[7];case 28:B=true;return[3,2];case 29:return[3,36];case 30:j=J.sent();T={error:j};return[3,36];case 31:J.trys.push([31,,34,35]);if(!(!B&&!D&&(W=F.return)))return[3,33];return[4,W.call(F)];case 32:J.sent();J.label=33;case 33:return[3,35];case 34:if(T)throw T.error;return[7];case 35:return[7];case 36:x=n.format(r.length===1?new Date(r[0].updated_at):new Date,u);O=r.length===1?"".concat(r[0].name," - ").concat(x,".zip"):"Verdocs-Envelopes-".concat(x);return[4,o.generateAsync({type:"blob",compression:"DEFLATE"})];case 37:R=J.sent();a(R,O);return[2]}}))}))}));var U=t("t",(function(t,r){var i=0;return function(){var n=this;var e=[];for(var s=0;s<arguments.length;s++){e[s]=arguments[s]}clearTimeout(i);i=setTimeout((function(){return t.apply(n,e)}),r)}}));var j=t("b",(function(t,r){if(r===void 0){r="16px Arial"}var i=document.createElement("canvas");var n=i.getContext("2d");n.font=r;return n.measureText(t).width}));var x=t("d",(function(t){var r=(t||"").trim();if(!r||r.startsWith("+")){return r}r=r.replace(/[^0-9]/g,"");r=r.replace(/^0/g,"");return"+1".concat(r)}))}}}));
13
- //# sourceMappingURL=p-CalyeRmL.system.js.map
12
+ */var l;function d(){if(l)return h.exports;l=1;(function(t,i){!function(r){t.exports=r()}((function(){return function t(r,i,e){function n(a,o){if(!i[a]){if(!r[a]){var u="function"==typeof c&&c;if(!o&&u)return u(a,true);if(s)return s(a,true);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var h=i[a]={exports:{}};r[a][0].call(h.exports,(function(t){var i=r[a][1][t];return n(i||t)}),h,h.exports,t,r,i,e)}return i[a].exports}for(var s="function"==typeof c&&c,a=0;a<e.length;a++)n(e[a]);return n}({1:[function(t,r,i){var e=t("./utils"),n=t("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(t){for(var r,i,n,a,o,u,f,c=[],h=0,l=t.length,d=l,v="string"!==e.getTypeOf(t);h<t.length;)d=l-h,n=v?(r=t[h++],i=h<l?t[h++]:0,h<l?t[h++]:0):(r=t.charCodeAt(h++),i=h<l?t.charCodeAt(h++):0,h<l?t.charCodeAt(h++):0),a=r>>2,o=(3&r)<<4|i>>4,u=1<d?(15&i)<<2|n>>6:64,f=2<d?63&n:64,c.push(s.charAt(a)+s.charAt(o)+s.charAt(u)+s.charAt(f));return c.join("")},i.decode=function(t){var r,i,e,a,o,u,f=0,c=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var l,d=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===s.charAt(64)&&d--,t.charAt(t.length-2)===s.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(l=n.uint8array?new Uint8Array(0|d):new Array(0|d);f<t.length;)r=s.indexOf(t.charAt(f++))<<2|(a=s.indexOf(t.charAt(f++)))>>4,i=(15&a)<<4|(o=s.indexOf(t.charAt(f++)))>>2,e=(3&o)<<6|(u=s.indexOf(t.charAt(f++))),l[c++]=r,64!==o&&(l[c++]=i),64!==u&&(l[c++]=e);return l}},{"./support":30,"./utils":32}],2:[function(t,r,i){var e=t("./external"),n=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function o(t,r,i,e,n){this.compressedSize=t,this.uncompressedSize=r,this.crc32=i,this.compression=e,this.compressedContent=n}o.prototype={getContentWorker:function(){var t=new n(e.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),r=this;return t.on("end",(function(){if(this.streamInfo.data_length!==r.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new n(e.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(t,r,i){return t.pipe(new s).pipe(new a("uncompressedSize")).pipe(r.compressWorker(i)).pipe(new a("compressedSize")).withStreamInfo("compression",r)},r.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,r,i){var e=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new e("STORE compression")},uncompressWorker:function(){return new e("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,r,i){var e=t("./utils");var n=function(){for(var t,r=[],i=0;i<256;i++){t=i;for(var e=0;e<8;e++)t=1&t?3988292384^t>>>1:t>>>1;r[i]=t}return r}();r.exports=function(t,r){return void 0!==t&&t.length?"string"!==e.getTypeOf(t)?function(t,r,i,e){var s=n,a=e+i;t^=-1;for(var o=e;o<a;o++)t=t>>>8^s[255&(t^r[o])];return-1^t}(0|r,t,t.length,0):function(t,r,i,e){var s=n,a=e+i;t^=-1;for(var o=e;o<a;o++)t=t>>>8^s[255&(t^r.charCodeAt(o))];return-1^t}(0|r,t,t.length,0):0}},{"./utils":32}],5:[function(t,r,i){i.base64=false,i.binary=false,i.dir=false,i.createFolders=true,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,r,i){var e=null;e="undefined"!=typeof Promise?Promise:t("lie"),r.exports={Promise:e}},{lie:37}],7:[function(t,r,i){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=t("pako"),s=t("./utils"),a=t("./stream/GenericWorker"),o=e?"uint8array":"array";function u(t,r){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=r,this.meta={}}i.magic="\b\0",s.inherits(u,a),u.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,t.data),false)},u.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],true)},u.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:true,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(r){t.push({data:r,meta:t.meta})}},i.compressWorker=function(t){return new u("Deflate",t)},i.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,r,i){function e(t,r){var i,e="";for(i=0;i<r;i++)e+=String.fromCharCode(255&t),t>>>=8;return e}function n(t,r,i,n,a,c){var h,l,d=t.file,v=t.compression,p=c!==o.utf8encode,w=s.transformTo("string",c(d.name)),b=s.transformTo("string",o.utf8encode(d.name)),m=d.comment,y=s.transformTo("string",c(m)),k=s.transformTo("string",o.utf8encode(m)),g=b.length!==d.name.length,E=k.length!==m.length,A="",S="",_="",z=d.dir,U=d.date,j={crc32:0,compressedSize:0,uncompressedSize:0};r&&!i||(j.crc32=t.crc32,j.compressedSize=t.compressedSize,j.uncompressedSize=t.uncompressedSize);var x=0;r&&(x|=8),p||!g&&!E||(x|=2048);var O=0,R=0;z&&(O|=16),"UNIX"===a?(R=798,O|=function(t,r){var i=t;return t||(i=r?16893:33204),(65535&i)<<16}(d.unixPermissions,z)):(R=20,O|=function(t){return 63&(t||0)}(d.dosPermissions)),h=U.getUTCHours(),h<<=6,h|=U.getUTCMinutes(),h<<=5,h|=U.getUTCSeconds()/2,l=U.getUTCFullYear()-1980,l<<=4,l|=U.getUTCMonth()+1,l<<=5,l|=U.getUTCDate(),g&&(S=e(1,1)+e(u(w),4)+b,A+="up"+e(S.length,2)+S),E&&(_=e(1,1)+e(u(y),4)+k,A+="uc"+e(_.length,2)+_);var B="";return B+="\n\0",B+=e(x,2),B+=v.magic,B+=e(h,2),B+=e(l,2),B+=e(j.crc32,4),B+=e(j.compressedSize,4),B+=e(j.uncompressedSize,4),B+=e(w.length,2),B+=e(A.length,2),{fileRecord:f.LOCAL_FILE_HEADER+B+w+A,dirRecord:f.CENTRAL_FILE_HEADER+e(R,2)+B+e(y.length,2)+"\0\0\0\0"+e(O,4)+e(n,4)+w+A+y}}var s=t("../utils"),a=t("../stream/GenericWorker"),o=t("../utf8"),u=t("../crc32"),f=t("../signature");function c(t,r,i,e){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=r,this.zipPlatform=i,this.encodeFileName=e,this.streamFiles=t,this.accumulate=false,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(c,a),c.prototype.push=function(t){var r=t.meta.percent||0,i=this.entriesCount,e=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:i?(r+100*(i-e-1))/i:100}}))},c.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var r=this.streamFiles&&!t.file.dir;if(r){var i=n(t,r,false,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=true},c.prototype.closedSource=function(t){this.accumulate=false;var r=this.streamFiles&&!t.file.dir,i=n(t,r,true,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),r)this.push({data:function(t){return f.DATA_DESCRIPTOR+e(t.crc32,4)+e(t.compressedSize,4)+e(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var t=this.bytesWritten,r=0;r<this.dirRecords.length;r++)this.push({data:this.dirRecords[r],meta:{percent:100}});var i=this.bytesWritten-t,n=function(t,r,i,n,a){var o=s.transformTo("string",a(n));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+e(t,2)+e(t,2)+e(r,4)+e(i,4)+e(o.length,2)+o}(this.dirRecords.length,i,t,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(t){this._sources.push(t);var r=this;return t.on("data",(function(t){r.processChunk(t)})),t.on("end",(function(){r.closedSource(r.previous.streamInfo),r._sources.length?r.prepareNextSource():r.end()})),t.on("error",(function(t){r.error(t)})),this},c.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),true):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),true))},c.prototype.error=function(t){var r=this._sources;if(!a.prototype.error.call(this,t))return false;for(var i=0;i<r.length;i++)try{r[i].error(t)}catch(t){}return true},c.prototype.lock=function(){a.prototype.lock.call(this);for(var t=this._sources,r=0;r<t.length;r++)t[r].lock()},r.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,r,i){var e=t("../compressions"),n=t("./ZipFileWorker");i.generateWorker=function(t,r,i){var s=new n(r.streamFiles,i,r.platform,r.encodeFileName),a=0;try{t.forEach((function(t,i){a++;var n=function(t,r){var i=t||r,n=e[i];if(!n)throw new Error(i+" is not a valid compression method !");return n}(i.options.compression,r.compression),o=i.options.compressionOptions||r.compressionOptions||{},u=i.dir,f=i.date;i._compressWorker(n,o).withStreamInfo("file",{name:t,dir:u,date:f,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(s)})),s.entriesCount=a}catch(t){s.error(t)}return s}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,r,i){function e(){if(!(this instanceof e))return new e;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new e;for(var r in this)"function"!=typeof this[r]&&(t[r]=this[r]);return t}}(e.prototype=t("./object")).loadAsync=t("./load"),e.support=t("./support"),e.defaults=t("./defaults"),e.version="3.10.1",e.loadAsync=function(t,r){return(new e).loadAsync(t,r)},e.external=t("./external"),r.exports=e},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,r,i){var e=t("./utils"),n=t("./external"),s=t("./utf8"),a=t("./zipEntries"),o=t("./stream/Crc32Probe"),u=t("./nodejsUtils");function f(t){return new n.Promise((function(r,i){var e=t.decompressed.getContentWorker().pipe(new o);e.on("error",(function(t){i(t)})).on("end",(function(){e.streamInfo.crc32!==t.decompressed.crc32?i(new Error("Corrupted zip : CRC32 mismatch")):r()})).resume()}))}r.exports=function(t,r){var i=this;return r=e.extend(r||{},{base64:false,checkCRC32:false,optimizedBinaryString:false,createFolders:false,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(t)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):e.prepareContent("the loaded zip file",t,true,r.optimizedBinaryString,r.base64).then((function(t){var i=new a(r);return i.load(t),i})).then((function(t){var i=[n.Promise.resolve(t)],e=t.files;if(r.checkCRC32)for(var s=0;s<e.length;s++)i.push(f(e[s]));return n.Promise.all(i)})).then((function(t){for(var n=t.shift(),s=n.files,a=0;a<s.length;a++){var o=s[a],u=o.fileNameStr,f=e.resolve(o.fileNameStr);i.file(f,o.decompressed,{binary:true,optimizedBinaryString:true,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:r.createFolders}),o.dir||(i.file(f).unsafeOriginalName=u)}return n.zipComment.length&&(i.comment=n.zipComment),i}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,r,i){var e=t("../utils"),n=t("../stream/GenericWorker");function s(t,r){n.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=false,this._bindStream(r)}e.inherits(s,n),s.prototype._bindStream=function(t){var r=this;(this._stream=t).pause(),t.on("data",(function(t){r.push({data:t,meta:{percent:0}})})).on("error",(function(t){r.isPaused?this.generatedError=t:r.error(t)})).on("end",(function(){r.isPaused?r._upstreamEnded=true:r.end()}))},s.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),true)},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),true)},r.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,r,i){var e=t("readable-stream").Readable;function n(t,r,i){e.call(this,r),this._helper=t;var n=this;t.on("data",(function(t,r){n.push(t)||n._helper.pause(),i&&i(r)})).on("error",(function(t){n.emit("error",t)})).on("end",(function(){n.push(null)}))}t("../utils").inherits(n,e),n.prototype._read=function(){this._helper.resume()},r.exports=n},{"../utils":32,"readable-stream":16}],14:[function(t,r,i){r.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,r){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,r);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,r)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var r=new Buffer(t);return r.fill(0),r},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,r,i){function e(t,r,i){var e,n=s.getTypeOf(r),o=s.extend(i||{},u);o.date=o.date||new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=true),o.dosPermissions&&16&o.dosPermissions&&(o.dir=true),o.dir&&(t=p(t)),o.createFolders&&(e=v(t))&&w.call(this,e,true);var h="string"===n&&false===o.binary&&false===o.base64;i&&void 0!==i.binary||(o.binary=!h),(r instanceof f&&0===r.uncompressedSize||o.dir||!r||0===r.length)&&(o.base64=false,o.binary=true,r="",o.compression="STORE",n="string");var b=null;b=r instanceof f||r instanceof a?r:l.isNode&&l.isStream(r)?new d(t,r):s.prepareContent(t,r,o.binary,o.optimizedBinaryString,o.base64);var m=new c(t,b,o);this.files[t]=m}var n=t("./utf8"),s=t("./utils"),a=t("./stream/GenericWorker"),o=t("./stream/StreamHelper"),u=t("./defaults"),f=t("./compressedObject"),c=t("./zipObject"),h=t("./generate"),l=t("./nodejsUtils"),d=t("./nodejs/NodejsStreamInputAdapter"),v=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var r=t.lastIndexOf("/");return 0<r?t.substring(0,r):""},p=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},w=function(t,r){return r=void 0!==r?r:u.createFolders,t=p(t),this.files[t]||e.call(this,t,null,{dir:true,createFolders:r}),this.files[t]};function b(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var m={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var r,i,e;for(r in this.files)e=this.files[r],(i=r.slice(this.root.length,r.length))&&r.slice(0,this.root.length)===this.root&&t(i,e)},filter:function(t){var r=[];return this.forEach((function(i,e){t(i,e)&&r.push(e)})),r},file:function(t,r,i){if(1!==arguments.length)return t=this.root+t,e.call(this,t,r,i),this;if(b(t)){var n=t;return this.filter((function(t,r){return!r.dir&&n.test(t)}))}var s=this.files[this.root+t];return s&&!s.dir?s:null},folder:function(t){if(!t)return this;if(b(t))return this.filter((function(r,i){return i.dir&&t.test(r)}));var r=this.root+t,i=w.call(this,r),e=this.clone();return e.root=i.name,e},remove:function(t){t=this.root+t;var r=this.files[t];if(r||("/"!==t.slice(-1)&&(t+="/"),r=this.files[t]),r&&!r.dir)delete this.files[t];else for(var i=this.filter((function(r,i){return i.name.slice(0,t.length)===t})),e=0;e<i.length;e++)delete this.files[i[e].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var r,i={};try{if((i=s.extend(t||{},{streamFiles:false,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=i.type.toLowerCase(),i.compression=i.compression.toUpperCase(),"binarystring"===i.type&&(i.type="string"),!i.type)throw new Error("No output type specified.");s.checkSupport(i.type),"darwin"!==i.platform&&"freebsd"!==i.platform&&"linux"!==i.platform&&"sunos"!==i.platform||(i.platform="UNIX"),"win32"===i.platform&&(i.platform="DOS");var e=i.comment||this.comment||"";r=h.generateWorker(this,i,e)}catch(t){(r=new a("error")).error(t)}return new o(r,i.type||"string",i.mimeType)},generateAsync:function(t,r){return this.generateInternalStream(t).accumulate(r)},generateNodeStream:function(t,r){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(r)}};r.exports=m},{"./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(t,r,i){r.exports=t("stream")},{stream:void 0}],17:[function(t,r,i){var e=t("./DataReader");function n(t){e.call(this,t);for(var r=0;r<this.data.length;r++)t[r]=255&t[r]}t("../utils").inherits(n,e),n.prototype.byteAt=function(t){return this.data[this.zero+t]},n.prototype.lastIndexOfSignature=function(t){for(var r=t.charCodeAt(0),i=t.charCodeAt(1),e=t.charCodeAt(2),n=t.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===r&&this.data[s+1]===i&&this.data[s+2]===e&&this.data[s+3]===n)return s-this.zero;return-1},n.prototype.readAndCheckSignature=function(t){var r=t.charCodeAt(0),i=t.charCodeAt(1),e=t.charCodeAt(2),n=t.charCodeAt(3),s=this.readData(4);return r===s[0]&&i===s[1]&&e===s[2]&&n===s[3]},n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var r=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,r},r.exports=n},{"../utils":32,"./DataReader":18}],18:[function(t,r,i){var e=t("../utils");function n(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}n.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var r,i=0;for(this.checkOffset(t),r=this.index+t-1;r>=this.index;r--)i=(i<<8)+this.byteAt(r);return this.index+=t,i},readString:function(t){return e.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},r.exports=n},{"../utils":32}],19:[function(t,r,i){var e=t("./Uint8ArrayReader");function n(t){e.call(this,t)}t("../utils").inherits(n,e),n.prototype.readData=function(t){this.checkOffset(t);var r=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,r},r.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,r,i){var e=t("./DataReader");function n(t){e.call(this,t)}t("../utils").inherits(n,e),n.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},n.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},n.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},n.prototype.readData=function(t){this.checkOffset(t);var r=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,r},r.exports=n},{"../utils":32,"./DataReader":18}],21:[function(t,r,i){var e=t("./ArrayReader");function n(t){e.call(this,t)}t("../utils").inherits(n,e),n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var r=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,r},r.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(t,r,i){var e=t("../utils"),n=t("../support"),s=t("./ArrayReader"),a=t("./StringReader"),o=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");r.exports=function(t){var r=e.getTypeOf(t);return e.checkSupport(r),"string"!==r||n.uint8array?"nodebuffer"===r?new o(t):n.uint8array?new u(e.transformTo("uint8array",t)):new s(e.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,r,i){var e=t("./GenericWorker"),n=t("../utils");function s(t){e.call(this,"ConvertWorker to "+t),this.destType=t}n.inherits(s,e),s.prototype.processChunk=function(t){this.push({data:n.transformTo(this.destType,t.data),meta:t.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,r,i){var e=t("./GenericWorker"),n=t("../crc32");function s(){e.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,e),s.prototype.processChunk=function(t){this.streamInfo.crc32=n(t.data,this.streamInfo.crc32||0),this.push(t)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,r,i){var e=t("../utils"),n=t("./GenericWorker");function s(t){n.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}e.inherits(s,n),s.prototype.processChunk=function(t){if(t){var r=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=r+t.data.length}n.prototype.processChunk.call(this,t)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,r,i){var e=t("../utils"),n=t("./GenericWorker");function s(t){n.call(this,"DataWorker");var r=this;this.dataIsReady=false,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=false,t.then((function(t){r.dataIsReady=true,r.data=t,r.max=t&&t.length||0,r.type=e.getTypeOf(t),r.isPaused||r._tickAndRepeat()}),(function(t){r.error(t)}))}e.inherits(s,n),s.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=true,e.delay(this._tickAndRepeat,[],this)),true)},s.prototype._tickAndRepeat=function(){this._tickScheduled=false,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(e.delay(this._tickAndRepeat,[],this),this._tickScheduled=true))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return false;var t=null,r=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r)}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,r,i){function e(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=true,this.isFinished=false,this.isLocked=false,this._listeners={data:[],end:[],error:[]},this.previous=null}e.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return false;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=true}catch(t){this.emit("error",t)}return true},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=true,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),true)},on:function(t,r){return this._listeners[t].push(r),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,r){if(this._listeners[t])for(var i=0;i<this._listeners[t].length;i++)this._listeners[t][i].call(this,r)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var r=this;return t.on("data",(function(t){r.processChunk(t)})),t.on("end",(function(){r.end()})),t.on("error",(function(t){r.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=true,this.previous&&this.previous.pause(),true)},resume:function(){if(!this.isPaused||this.isFinished)return false;var t=this.isPaused=false;return this.generatedError&&(this.error(this.generatedError),t=true),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,r){return this.extraStreamInfo[t]=r,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=true,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},r.exports=e},{}],29:[function(t,r,i){var e=t("../utils"),n=t("./ConvertWorker"),s=t("./GenericWorker"),a=t("../base64"),o=t("../support"),u=t("../external"),f=null;if(o.nodestream)try{f=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function c(t,r){return new u.Promise((function(i,n){var s=[],o=t._internalType,u=t._outputType,f=t._mimeType;t.on("data",(function(t,i){s.push(t),r&&r(i)})).on("error",(function(t){s=[],n(t)})).on("end",(function(){try{var t=function(t,r,i){switch(t){case"blob":return e.newBlob(e.transformTo("arraybuffer",r),i);case"base64":return a.encode(r);default:return e.transformTo(t,r)}}(u,function(t,r){var i,e=0,n=null,s=0;for(i=0;i<r.length;i++)s+=r[i].length;switch(t){case"string":return r.join("");case"array":return Array.prototype.concat.apply([],r);case"uint8array":for(n=new Uint8Array(s),i=0;i<r.length;i++)n.set(r[i],e),e+=r[i].length;return n;case"nodebuffer":return Buffer.concat(r);default:throw new Error("concat : unsupported type '"+t+"'")}}(o,s),f);i(t)}catch(t){n(t)}s=[]})).resume()}))}function h(t,r,i){var a=r;switch(r){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=r,this._mimeType=i,e.checkSupport(a),this._worker=t.pipe(new n(a)),t.lock()}catch(t){this._worker=new s("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){return c(this,t)},on:function(t,r){var i=this;return"data"===t?this._worker.on(t,(function(t){r.call(i,t.data,t.meta)})):this._worker.on(t,(function(){e.delay(r,arguments,i)})),this},resume:function(){return e.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(e.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:"nodebuffer"!==this._outputType},t)}},r.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,r,i){if(i.base64=true,i.array=true,i.string=true,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer="undefined"!=typeof Buffer,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=false;else{var e=new ArrayBuffer(0);try{i.blob=0===new Blob([e],{type:"application/zip"}).size}catch(t){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(e),i.blob=0===n.getBlob("application/zip").size}catch(t){i.blob=false}}}try{i.nodestream=!!t("readable-stream").Readable}catch(t){i.nodestream=false}},{"readable-stream":16}],31:[function(t,r,i){for(var e=t("./utils"),n=t("./support"),s=t("./nodejsUtils"),a=t("./stream/GenericWorker"),o=new Array(256),u=0;u<256;u++)o[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;o[254]=o[254]=1;function f(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}i.utf8encode=function(t){return n.nodebuffer?s.newBufferFrom(t,"utf-8"):function(t){var r,i,e,s,a,o=t.length,u=0;for(s=0;s<o;s++)55296==(64512&(i=t.charCodeAt(s)))&&s+1<o&&56320==(64512&(e=t.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(e-56320),s++),u+=i<128?1:i<2048?2:i<65536?3:4;for(r=n.uint8array?new Uint8Array(u):new Array(u),s=a=0;a<u;s++)55296==(64512&(i=t.charCodeAt(s)))&&s+1<o&&56320==(64512&(e=t.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(e-56320),s++),i<128?r[a++]=i:(i<2048?r[a++]=192|i>>>6:(i<65536?r[a++]=224|i>>>12:(r[a++]=240|i>>>18,r[a++]=128|i>>>12&63),r[a++]=128|i>>>6&63),r[a++]=128|63&i);return r}(t)},i.utf8decode=function(t){return n.nodebuffer?e.transformTo("nodebuffer",t).toString("utf-8"):function(t){var r,i,n,s,a=t.length,u=new Array(2*a);for(r=i=0;r<a;)if((n=t[r++])<128)u[i++]=n;else if(4<(s=o[n]))u[i++]=65533,r+=s-1;else{for(n&=2===s?31:3===s?15:7;1<s&&r<a;)n=n<<6|63&t[r++],s--;1<s?u[i++]=65533:n<65536?u[i++]=n:(n-=65536,u[i++]=55296|n>>10&1023,u[i++]=56320|1023&n)}return u.length!==i&&(u.subarray?u=u.subarray(0,i):u.length=i),e.applyFromCharCode(u)}(t=e.transformTo(n.uint8array?"uint8array":"array",t))},e.inherits(f,a),f.prototype.processChunk=function(t){var r=e.transformTo(n.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var s=r;(r=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),r.set(s,this.leftOver.length)}else r=this.leftOver.concat(r);this.leftOver=null}var a=function(t,r){var i;for((r=r||t.length)>t.length&&(r=t.length),i=r-1;0<=i&&128==(192&t[i]);)i--;return i<0?r:0===i?r:i+o[t[i]]>r?i:r}(r),u=r;a!==r.length&&(n.uint8array?(u=r.subarray(0,a),this.leftOver=r.subarray(a,r.length)):(u=r.slice(0,a),this.leftOver=r.slice(a,r.length))),this.push({data:i.utf8decode(u),meta:t.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=f,e.inherits(c,a),c.prototype.processChunk=function(t){this.push({data:i.utf8encode(t.data),meta:t.meta})},i.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,r,i){var e=t("./support"),n=t("./base64"),s=t("./nodejsUtils"),a=t("./external");function o(t){return t}function u(t,r){for(var i=0;i<t.length;++i)r[i]=255&t.charCodeAt(i);return r}t("setimmediate"),i.newBlob=function(t,r){i.checkSupport("blob");try{return new Blob([t],{type:r})}catch(i){try{var e=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return e.append(t),e.getBlob(r)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(t,r,i){var e=[],n=0,s=t.length;if(s<=i)return String.fromCharCode.apply(null,t);for(;n<s;)"array"===r||"nodebuffer"===r?e.push(String.fromCharCode.apply(null,t.slice(n,Math.min(n+i,s)))):e.push(String.fromCharCode.apply(null,t.subarray(n,Math.min(n+i,s)))),n+=i;return e.join("")},stringifyByChar:function(t){for(var r="",i=0;i<t.length;i++)r+=String.fromCharCode(t[i]);return r},applyCanBeUsed:{uint8array:function(){try{return e.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return false}}(),nodebuffer:function(){try{return e.nodebuffer&&1===String.fromCharCode.apply(null,s.allocBuffer(1)).length}catch(t){return false}}()}};function c(t){var r=65536,e=i.getTypeOf(t),n=true;if("uint8array"===e?n=f.applyCanBeUsed.uint8array:"nodebuffer"===e&&(n=f.applyCanBeUsed.nodebuffer),n)for(;1<r;)try{return f.stringifyByChunk(t,e,r)}catch(t){r=Math.floor(r/2)}return f.stringifyByChar(t)}function h(t,r){for(var i=0;i<t.length;i++)r[i]=t[i];return r}i.applyFromCharCode=c;var l={};l.string={string:o,array:function(t){return u(t,new Array(t.length))},arraybuffer:function(t){return l.string.uint8array(t).buffer},uint8array:function(t){return u(t,new Uint8Array(t.length))},nodebuffer:function(t){return u(t,s.allocBuffer(t.length))}},l.array={string:c,array:o,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return s.newBufferFrom(t)}},l.arraybuffer={string:function(t){return c(new Uint8Array(t))},array:function(t){return h(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:o,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return s.newBufferFrom(new Uint8Array(t))}},l.uint8array={string:c,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:o,nodebuffer:function(t){return s.newBufferFrom(t)}},l.nodebuffer={string:c,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return l.nodebuffer.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:o},i.transformTo=function(t,r){if(r=r||"",!t)return r;i.checkSupport(t);var e=i.getTypeOf(r);return l[e][t](r)},i.resolve=function(t){for(var r=t.split("/"),i=[],e=0;e<r.length;e++){var n=r[e];"."===n||""===n&&0!==e&&e!==r.length-1||(".."===n?i.pop():i.push(n))}return i.join("/")},i.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":e.nodebuffer&&s.isBuffer(t)?"nodebuffer":e.uint8array&&t instanceof Uint8Array?"uint8array":e.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(t){if(!e[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(t){var r,i,e="";for(i=0;i<(t||"").length;i++)e+="\\x"+((r=t.charCodeAt(i))<16?"0":"")+r.toString(16).toUpperCase();return e},i.delay=function(t,r,i){setImmediate((function(){t.apply(i||null,r||[])}))},i.inherits=function(t,r){function i(){}i.prototype=r.prototype,t.prototype=new i},i.extend=function(){var t,r,i={};for(t=0;t<arguments.length;t++)for(r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&void 0===i[r]&&(i[r]=arguments[t][r]);return i},i.prepareContent=function(t,r,s,o,f){return a.Promise.resolve(r).then((function(t){return e.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new a.Promise((function(r,i){var e=new FileReader;e.onload=function(t){r(t.target.result)},e.onerror=function(t){i(t.target.error)},e.readAsArrayBuffer(t)})):t})).then((function(r){var c=i.getTypeOf(r);return c?("arraybuffer"===c?r=i.transformTo("uint8array",r):"string"===c&&(f?r=n.decode(r):s&&true!==o&&(r=function(t){return u(t,e.uint8array?new Uint8Array(t.length):new Array(t.length))}(r))),r):a.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,r,i){var e=t("./reader/readerFor"),n=t("./utils"),s=t("./signature"),a=t("./zipEntry"),o=t("./support");function u(t){this.files=[],this.loadOptions=t}u.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var r=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(r)+", expected "+n.pretty(t)+")")}},isSignature:function(t,r){var i=this.reader.index;this.reader.setIndex(t);var e=this.reader.readString(4)===r;return this.reader.setIndex(i),e},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),r=o.uint8array?"uint8array":"array",i=n.transformTo(r,t);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,r,i,e=this.zip64EndOfCentralSize-44;0<e;)t=this.reader.readInt(2),r=this.reader.readInt(4),i=this.reader.readData(r),this.zip64ExtensibleData[t]={id:t,length:r,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,r;for(t=0;t<this.files.length;t++)r=this.files[t],this.reader.setIndex(r.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),r.readLocalPart(this.reader),r.handleUTF8(),r.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(t<0)throw!this.isSignature(0,s.LOCAL_FILE_HEADER)?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"):new Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(t);var r=t;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=true,(t=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var e=r-i;if(0<e)this.isSignature(r,s.CENTRAL_FILE_HEADER)||(this.reader.zero=e);else if(e<0)throw new Error("Corrupted zip: missing "+Math.abs(e)+" bytes.")},prepareReader:function(t){this.reader=e(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,r,i){var e=t("./reader/readerFor"),n=t("./utils"),s=t("./compressedObject"),a=t("./crc32"),o=t("./utf8"),u=t("./compressions"),f=t("./support");function c(t,r){this.options=t,this.loadOptions=r}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var r,i;if(t.skip(22),this.fileNameLength=t.readInt(2),i=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(i),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(r=function(t){for(var r in u)if(Object.prototype.hasOwnProperty.call(u,r)&&u[r].magic===t)return u[r];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,r,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var r=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(r),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=true)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=e(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var r,i,e,n=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<n;)r=t.readInt(2),i=t.readInt(2),e=t.readData(i),this.extraFields[r]={id:r,length:i,value:e};t.setIndex(n)},handleUTF8:function(){var t=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var r=this.findExtraFieldUnicodePath();if(null!==r)this.fileNameStr=r;else{var i=n.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(i)}var e=this.findExtraFieldUnicodeComment();if(null!==e)this.fileCommentStr=e;else{var s=n.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var r=e(t.value);return 1!==r.readInt(1)?null:a(this.fileName)!==r.readInt(4)?null:o.utf8decode(r.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var r=e(t.value);return 1!==r.readInt(1)?null:a(this.fileComment)!==r.readInt(4)?null:o.utf8decode(r.readData(t.length-5))}return null}},r.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,r,i){function e(t,r,i){this.name=t,this.dir=i.dir,this.date=i.date,this.comment=i.comment,this.unixPermissions=i.unixPermissions,this.dosPermissions=i.dosPermissions,this._data=r,this._dataBinary=i.binary,this.options={compression:i.compression,compressionOptions:i.compressionOptions}}var n=t("./stream/StreamHelper"),s=t("./stream/DataWorker"),a=t("./utf8"),o=t("./compressedObject"),u=t("./stream/GenericWorker");e.prototype={internalStream:function(t){var r=null,i="string";try{if(!t)throw new Error("No output type specified.");var e="string"===(i=t.toLowerCase())||"text"===i;"binarystring"!==i&&"text"!==i||(i="string"),r=this._decompressWorker();var s=!this._dataBinary;s&&!e&&(r=r.pipe(new a.Utf8EncodeWorker)),!s&&e&&(r=r.pipe(new a.Utf8DecodeWorker))}catch(t){(r=new u("error")).error(t)}return new n(r,i,"")},async:function(t,r){return this.internalStream(t).accumulate(r)},nodeStream:function(t,r){return this.internalStream(t||"nodebuffer").toNodejsStream(r)},_compressWorker:function(t,r){if(this._data instanceof o&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var i=this._decompressWorker();return this._dataBinary||(i=i.pipe(new a.Utf8EncodeWorker)),o.createWorkerFrom(i,t,r)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof u?this._data:new s(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<f.length;h++)e.prototype[f[h]]=c;r.exports=e},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,i,e){(function(t){var r,e,n=t.MutationObserver||t.WebKitMutationObserver;if(n){var s=0,a=new n(c),o=t.document.createTextNode("");a.observe(o,{characterData:true}),r=function(){o.data=s=++s%2}}else if(t.setImmediate||void 0===t.MessageChannel)r="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var r=t.document.createElement("script");r.onreadystatechange=function(){c(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},t.document.documentElement.appendChild(r)}:function(){setTimeout(c,0)};else{var u=new t.MessageChannel;u.port1.onmessage=c,r=function(){u.port2.postMessage(0)}}var f=[];function c(){var t,r;e=true;for(var i=f.length;i;){for(r=f,f=[],t=-1;++t<i;)r[t]();i=f.length}e=false}i.exports=function(t){1!==f.push(t)||e||r()}}).call(this,"undefined"!=typeof r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,r,i){var e=t("immediate");function n(){}var s={},a=["REJECTED"],o=["FULFILLED"],u=["PENDING"];function f(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,t!==n&&d(this,t)}function c(t,r,i){this.promise=t,"function"==typeof r&&(this.onFulfilled=r,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function h(t,r,i){e((function(){var e;try{e=r(i)}catch(e){return s.reject(t,e)}e===t?s.reject(t,new TypeError("Cannot resolve promise with itself")):s.resolve(t,e)}))}function l(t){var r=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof r)return function(){r.apply(t,arguments)}}function d(t,r){var i=false;function e(r){i||(i=true,s.reject(t,r))}function n(r){i||(i=true,s.resolve(t,r))}var a=v((function(){r(n,e)}));"error"===a.status&&e(a.value)}function v(t,r){var i={};try{i.value=t(r),i.status="success"}catch(t){i.status="error",i.value=t}return i}(r.exports=f).prototype.finally=function(t){if("function"!=typeof t)return this;var r=this.constructor;return this.then((function(i){return r.resolve(t()).then((function(){return i}))}),(function(i){return r.resolve(t()).then((function(){throw i}))}))},f.prototype.catch=function(t){return this.then(null,t)},f.prototype.then=function(t,r){if("function"!=typeof t&&this.state===o||"function"!=typeof r&&this.state===a)return this;var i=new this.constructor(n);this.state!==u?h(i,this.state===o?t:r,this.outcome):this.queue.push(new c(i,t,r));return i},c.prototype.callFulfilled=function(t){s.resolve(this.promise,t)},c.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},c.prototype.callRejected=function(t){s.reject(this.promise,t)},c.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},s.resolve=function(t,r){var i=v(l,r);if("error"===i.status)return s.reject(t,i.value);var e=i.value;if(e)d(t,e);else{t.state=o,t.outcome=r;for(var n=-1,a=t.queue.length;++n<a;)t.queue[n].callFulfilled(r)}return t},s.reject=function(t,r){t.state=a,t.outcome=r;for(var i=-1,e=t.queue.length;++i<e;)t.queue[i].callRejected(r);return t},f.resolve=function(t){if(t instanceof this)return t;return s.resolve(new this(n),t)},f.reject=function(t){var r=new this(n);return s.reject(r,t)},f.all=function(t){var r=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,e=false;if(!i)return this.resolve([]);var a=new Array(i),o=0,u=-1,f=new this(n);for(;++u<i;)c(t[u],u);return f;function c(t,n){r.resolve(t).then((function(t){a[n]=t,++o!==i||e||(e=true,s.resolve(f,a))}),(function(t){e||(e=true,s.reject(f,t))}))}},f.race=function(t){var r=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,e=false;if(!i)return this.resolve([]);var a=-1,o=new this(n);for(;++a<i;)u=t[a],r.resolve(u).then((function(t){e||(e=true,s.resolve(o,t))}),(function(t){e||(e=true,s.reject(o,t))}));var u;return o}},{immediate:36}],38:[function(t,r,i){var e={};(0,t("./lib/utils/common").assign)(e,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),r.exports=e},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,r,i){var e=t("./zlib/deflate"),n=t("./utils/common"),s=t("./utils/strings"),a=t("./zlib/messages"),o=t("./zlib/zstream"),u=Object.prototype.toString,f=0,c=-1,h=0,l=8;function d(t){if(!(this instanceof d))return new d(t);this.options=n.assign({level:c,method:l,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},t||{});var r=this.options;r.raw&&0<r.windowBits?r.windowBits=-r.windowBits:r.gzip&&0<r.windowBits&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=false,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var i=e.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(i!==f)throw new Error(a[i]);if(r.header&&e.deflateSetHeader(this.strm,r.header),r.dictionary){var v;if(v="string"==typeof r.dictionary?s.string2buf(r.dictionary):"[object ArrayBuffer]"===u.call(r.dictionary)?new Uint8Array(r.dictionary):r.dictionary,(i=e.deflateSetDictionary(this.strm,v))!==f)throw new Error(a[i]);this._dict_set=true}}function v(t,r){var i=new d(r);if(i.push(t,true),i.err)throw i.msg||a[i.err];return i.result}d.prototype.push=function(t,r){var i,a,o=this.strm,c=this.options.chunkSize;if(this.ended)return false;a=r===~~r?r:true===r?4:0,"string"==typeof t?o.input=s.string2buf(t):"[object ArrayBuffer]"===u.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new n.Buf8(c),o.next_out=0,o.avail_out=c),1!==(i=e.deflate(o,a))&&i!==f)return this.onEnd(i),!(this.ended=true);0!==o.avail_out&&(0!==o.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(s.buf2binstring(n.shrinkBuf(o.output,o.next_out))):this.onData(n.shrinkBuf(o.output,o.next_out)))}while((0<o.avail_in||0===o.avail_out)&&1!==i);return 4===a?(i=e.deflateEnd(this.strm),this.onEnd(i),this.ended=true,i===f):2!==a||(this.onEnd(f),!(o.avail_out=0))},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===f&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},i.Deflate=d,i.deflate=v,i.deflateRaw=function(t,r){return(r=r||{}).raw=true,v(t,r)},i.gzip=function(t,r){return(r=r||{}).gzip=true,v(t,r)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,r,i){var e=t("./zlib/inflate"),n=t("./utils/common"),s=t("./utils/strings"),a=t("./zlib/constants"),o=t("./zlib/messages"),u=t("./zlib/zstream"),f=t("./zlib/gzheader"),c=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=n.assign({chunkSize:16384,windowBits:0,to:""},t||{});var r=this.options;r.raw&&0<=r.windowBits&&r.windowBits<16&&(r.windowBits=-r.windowBits,0===r.windowBits&&(r.windowBits=-15)),!(0<=r.windowBits&&r.windowBits<16)||t&&t.windowBits||(r.windowBits+=32),15<r.windowBits&&r.windowBits<48&&0==(15&r.windowBits)&&(r.windowBits|=15),this.err=0,this.msg="",this.ended=false,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var i=e.inflateInit2(this.strm,r.windowBits);if(i!==a.Z_OK)throw new Error(o[i]);this.header=new f,e.inflateGetHeader(this.strm,this.header)}function l(t,r){var i=new h(r);if(i.push(t,true),i.err)throw i.msg||o[i.err];return i.result}h.prototype.push=function(t,r){var i,o,u,f,h,l,d=this.strm,v=this.options.chunkSize,p=this.options.dictionary,w=false;if(this.ended)return false;o=r===~~r?r:true===r?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?d.input=s.binstring2buf(t):"[object ArrayBuffer]"===c.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new n.Buf8(v),d.next_out=0,d.avail_out=v),(i=e.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(l="string"==typeof p?s.string2buf(p):"[object ArrayBuffer]"===c.call(p)?new Uint8Array(p):p,i=e.inflateSetDictionary(this.strm,l)),i===a.Z_BUF_ERROR&&true===w&&(i=a.Z_OK,w=false),i!==a.Z_STREAM_END&&i!==a.Z_OK)return this.onEnd(i),!(this.ended=true);d.next_out&&(0!==d.avail_out&&i!==a.Z_STREAM_END&&(0!==d.avail_in||o!==a.Z_FINISH&&o!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=s.utf8border(d.output,d.next_out),f=d.next_out-u,h=s.buf2string(d.output,u),d.next_out=f,d.avail_out=v-f,f&&n.arraySet(d.output,d.output,u,f,0),this.onData(h)):this.onData(n.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(w=true)}while((0<d.avail_in||0===d.avail_out)&&i!==a.Z_STREAM_END);return i===a.Z_STREAM_END&&(o=a.Z_FINISH),o===a.Z_FINISH?(i=e.inflateEnd(this.strm),this.onEnd(i),this.ended=true,i===a.Z_OK):o!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(d.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},i.Inflate=h,i.inflate=l,i.inflateRaw=function(t,r){return(r=r||{}).raw=true,l(t,r)},i.ungzip=l},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,r,i){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var i=r.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var e in i)i.hasOwnProperty(e)&&(t[e]=i[e])}}return t},i.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var n={arraySet:function(t,r,i,e,n){if(r.subarray&&t.subarray)t.set(r.subarray(i,i+e),n);else for(var s=0;s<e;s++)t[n+s]=r[i+s]},flattenChunks:function(t){var r,i,e,n,s,a;for(r=e=0,i=t.length;r<i;r++)e+=t[r].length;for(a=new Uint8Array(e),r=n=0,i=t.length;r<i;r++)s=t[r],a.set(s,n),n+=s.length;return a}},s={arraySet:function(t,r,i,e,n){for(var s=0;s<e;s++)t[n+s]=r[i+s]},flattenChunks:function(t){return[].concat.apply([],t)}};i.setTyped=function(t){t?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,n)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(e)},{}],42:[function(t,r,i){var e=t("./common"),n=true,s=true;try{String.fromCharCode.apply(null,[0])}catch(t){n=false}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){s=false}for(var a=new e.Buf8(256),o=0;o<256;o++)a[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function u(t,r){if(r<65537&&(t.subarray&&s||!t.subarray&&n))return String.fromCharCode.apply(null,e.shrinkBuf(t,r));for(var i="",a=0;a<r;a++)i+=String.fromCharCode(t[a]);return i}a[254]=a[254]=1,i.string2buf=function(t){var r,i,n,s,a,o=t.length,u=0;for(s=0;s<o;s++)55296==(64512&(i=t.charCodeAt(s)))&&s+1<o&&56320==(64512&(n=t.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(n-56320),s++),u+=i<128?1:i<2048?2:i<65536?3:4;for(r=new e.Buf8(u),s=a=0;a<u;s++)55296==(64512&(i=t.charCodeAt(s)))&&s+1<o&&56320==(64512&(n=t.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(n-56320),s++),i<128?r[a++]=i:(i<2048?r[a++]=192|i>>>6:(i<65536?r[a++]=224|i>>>12:(r[a++]=240|i>>>18,r[a++]=128|i>>>12&63),r[a++]=128|i>>>6&63),r[a++]=128|63&i);return r},i.buf2binstring=function(t){return u(t,t.length)},i.binstring2buf=function(t){for(var r=new e.Buf8(t.length),i=0,n=r.length;i<n;i++)r[i]=t.charCodeAt(i);return r},i.buf2string=function(t,r){var i,e,n,s,o=r||t.length,f=new Array(2*o);for(i=e=0;i<o;)if((n=t[i++])<128)f[e++]=n;else if(4<(s=a[n]))f[e++]=65533,i+=s-1;else{for(n&=2===s?31:3===s?15:7;1<s&&i<o;)n=n<<6|63&t[i++],s--;1<s?f[e++]=65533:n<65536?f[e++]=n:(n-=65536,f[e++]=55296|n>>10&1023,f[e++]=56320|1023&n)}return u(f,e)},i.utf8border=function(t,r){var i;for((r=r||t.length)>t.length&&(r=t.length),i=r-1;0<=i&&128==(192&t[i]);)i--;return i<0?r:0===i?r:i+a[t[i]]>r?i:r}},{"./common":41}],43:[function(t,r,i){r.exports=function(t,r,i,e){for(var n=65535&t|0,s=t>>>16&65535|0,a=0;0!==i;){for(i-=a=2e3<i?2e3:i;s=s+(n=n+r[e++]|0)|0,--a;);n%=65521,s%=65521}return n|s<<16|0}},{}],44:[function(t,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,r,i){var e=function(){for(var t,r=[],i=0;i<256;i++){t=i;for(var e=0;e<8;e++)t=1&t?3988292384^t>>>1:t>>>1;r[i]=t}return r}();r.exports=function(t,r,i,n){var s=e,a=n+i;t^=-1;for(var o=n;o<a;o++)t=t>>>8^s[255&(t^r[o])];return-1^t}},{}],46:[function(t,r,i){var e,n=t("../utils/common"),s=t("./trees"),a=t("./adler32"),o=t("./crc32"),u=t("./messages"),f=0,c=4,h=0,l=-2,d=-1,v=4,p=2,w=8,b=9,m=286,y=30,k=19,g=2*m+1,E=15,A=3,S=258,_=S+A+1,z=42,U=113,j=1,x=2,O=3,R=4;function B(t,r){return t.msg=u[r],r}function F(t){return(t<<1)-(4<t?9:0)}function C(t){for(var r=t.length;0<=--r;)t[r]=0}function D(t){var r=t.state,i=r.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(n.arraySet(t.output,r.pending_buf,r.pending_out,i,t.next_out),t.next_out+=i,r.pending_out+=i,t.total_out+=i,t.avail_out-=i,r.pending-=i,0===r.pending&&(r.pending_out=0))}function T(t,r){s._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,r),t.block_start=t.strstart,D(t.strm)}function W(t,r){t.pending_buf[t.pending++]=r}function I(t,r){t.pending_buf[t.pending++]=r>>>8&255,t.pending_buf[t.pending++]=255&r}function Z(t,r){var i,e,n=t.max_chain_length,s=t.strstart,a=t.prev_length,o=t.nice_match,u=t.strstart>t.w_size-_?t.strstart-(t.w_size-_):0,f=t.window,c=t.w_mask,h=t.prev,l=t.strstart+S,d=f[s+a-1],v=f[s+a];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(f[(i=r)+a]===v&&f[i+a-1]===d&&f[i]===f[s]&&f[++i]===f[s+1]){s+=2,i++;do{}while(f[++s]===f[++i]&&f[++s]===f[++i]&&f[++s]===f[++i]&&f[++s]===f[++i]&&f[++s]===f[++i]&&f[++s]===f[++i]&&f[++s]===f[++i]&&f[++s]===f[++i]&&s<l);if(e=S-(l-s),s=l-S,a<e){if(t.match_start=r,o<=(a=e))break;d=f[s+a-1],v=f[s+a]}}}while((r=h[r&c])>u&&0!=--n);return a<=t.lookahead?a:t.lookahead}function N(t){var r,i,e,s,u,f,c,h,l,d,v=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=v+(v-_)){for(n.arraySet(t.window,t.window,v,v,0),t.match_start-=v,t.strstart-=v,t.block_start-=v,r=i=t.hash_size;e=t.head[--r],t.head[r]=v<=e?e-v:0,--i;);for(r=i=v;e=t.prev[--r],t.prev[r]=v<=e?e-v:0,--i;);s+=v}if(0===t.strm.avail_in)break;if(f=t.strm,c=t.window,h=t.strstart+t.lookahead,l=s,d=void 0,d=f.avail_in,l<d&&(d=l),i=0===d?0:(f.avail_in-=d,n.arraySet(c,f.input,f.next_in,d,h),1===f.state.wrap?f.adler=a(f.adler,c,d,h):2===f.state.wrap&&(f.adler=o(f.adler,c,d,h)),f.next_in+=d,f.total_in+=d,d),t.lookahead+=i,t.lookahead+t.insert>=A)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+A-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<A)););}while(t.lookahead<_&&0!==t.strm.avail_in)}function P(t,r){for(var i,e;;){if(t.lookahead<_){if(N(t),t.lookahead<_&&r===f)return j;if(0===t.lookahead)break}if(i=0,t.lookahead>=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-_&&(t.match_length=Z(t,i)),t.match_length>=A)if(e=s._tr_tally(t,t.strstart-t.match_start,t.match_length-A),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=A){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else e=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(e&&(T(t,false),0===t.strm.avail_out))return j}return t.insert=t.strstart<A-1?t.strstart:A-1,r===c?(T(t,true),0===t.strm.avail_out?O:R):t.last_lit&&(T(t,false),0===t.strm.avail_out)?j:x}function L(t,r){for(var i,e,n;;){if(t.lookahead<_){if(N(t),t.lookahead<_&&r===f)return j;if(0===t.lookahead)break}if(i=0,t.lookahead>=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=A-1,0!==i&&t.prev_length<t.max_lazy_match&&t.strstart-i<=t.w_size-_&&(t.match_length=Z(t,i),t.match_length<=5&&(1===t.strategy||t.match_length===A&&4096<t.strstart-t.match_start)&&(t.match_length=A-1)),t.prev_length>=A&&t.match_length<=t.prev_length){for(n=t.strstart+t.lookahead-A,e=s._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-A),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=n&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=A-1,t.strstart++,e&&(T(t,false),0===t.strm.avail_out))return j}else if(t.match_available){if((e=s._tr_tally(t,0,t.window[t.strstart-1]))&&T(t,false),t.strstart++,t.lookahead--,0===t.strm.avail_out)return j}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(e=s._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<A-1?t.strstart:A-1,r===c?(T(t,true),0===t.strm.avail_out?O:R):t.last_lit&&(T(t,false),0===t.strm.avail_out)?j:x}function G(t,r,i,e,n){this.good_length=t,this.max_lazy=r,this.nice_length=i,this.max_chain=e,this.func=n}function M(){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=w,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 n.Buf16(2*g),this.dyn_dtree=new n.Buf16(2*(2*y+1)),this.bl_tree=new n.Buf16(2*(2*k+1)),C(this.dyn_ltree),C(this.dyn_dtree),C(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(E+1),this.heap=new n.Buf16(2*m+1),C(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(2*m+1),C(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function H(t){var r;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=p,(r=t.state).pending=0,r.pending_out=0,r.wrap<0&&(r.wrap=-r.wrap),r.status=r.wrap?z:U,t.adler=2===r.wrap?0:1,r.last_flush=f,s._tr_init(r),h):B(t,l)}function K(t){var r=H(t);return r===h&&function(t){t.window_size=2*t.w_size,C(t.head),t.max_lazy_match=e[t.level].max_lazy,t.good_match=e[t.level].good_length,t.nice_match=e[t.level].nice_length,t.max_chain_length=e[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=A-1,t.match_available=0,t.ins_h=0}(t.state),r}function J(t,r,i,e,s,a){if(!t)return l;var o=1;if(r===d&&(r=6),e<0?(o=0,e=-e):15<e&&(o=2,e-=16),s<1||b<s||i!==w||e<8||15<e||r<0||9<r||a<0||v<a)return B(t,l);8===e&&(e=9);var u=new M;return(t.state=u).strm=t,u.wrap=o,u.gzhead=null,u.w_bits=e,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=s+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+A-1)/A),u.window=new n.Buf8(2*u.w_size),u.head=new n.Buf16(u.hash_size),u.prev=new n.Buf16(u.w_size),u.lit_bufsize=1<<s+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new n.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=r,u.strategy=a,u.method=i,K(t)}e=[new G(0,0,0,0,(function(t,r){var i=65535;for(i>t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if(N(t),0===t.lookahead&&r===f)return j;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var e=t.block_start+i;if((0===t.strstart||t.strstart>=e)&&(t.lookahead=t.strstart-e,t.strstart=e,T(t,false),0===t.strm.avail_out))return j;if(t.strstart-t.block_start>=t.w_size-_&&(T(t,false),0===t.strm.avail_out))return j}return t.insert=0,r===c?(T(t,true),0===t.strm.avail_out?O:R):(t.strstart>t.block_start&&(T(t,false),t.strm.avail_out),j)})),new G(4,4,8,4,P),new G(4,5,16,8,P),new G(4,6,32,32,P),new G(4,4,16,16,L),new G(8,16,32,32,L),new G(8,16,128,128,L),new G(8,32,128,256,L),new G(32,128,258,1024,L),new G(32,258,258,4096,L)],i.deflateInit=function(t,r){return J(t,r,w,15,8,0)},i.deflateInit2=J,i.deflateReset=K,i.deflateResetKeep=H,i.deflateSetHeader=function(t,r){return t&&t.state?2!==t.state.wrap?l:(t.state.gzhead=r,h):l},i.deflate=function(t,r){var i,n,a,u;if(!t||!t.state||5<r||r<0)return t?B(t,l):l;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||666===n.status&&r!==c)return B(t,0===t.avail_out?-5:l);if(n.strm=t,i=n.last_flush,n.last_flush=r,n.status===z)if(2===n.wrap)t.adler=0,W(n,31),W(n,139),W(n,8),n.gzhead?(W(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),W(n,255&n.gzhead.time),W(n,n.gzhead.time>>8&255),W(n,n.gzhead.time>>16&255),W(n,n.gzhead.time>>24&255),W(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),W(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(W(n,255&n.gzhead.extra.length),W(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=o(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(W(n,0),W(n,0),W(n,0),W(n,0),W(n,0),W(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),W(n,3),n.status=U);else{var d=w+(n.w_bits-8<<4)<<8;d|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(d|=32),d+=31-d%31,n.status=U,I(n,d),0!==n.strstart&&(I(n,t.adler>>>16),I(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),D(t),a=n.pending,n.pending!==n.pending_buf_size));)W(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),D(t),a=n.pending,n.pending===n.pending_buf_size)){u=1;break}u=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,W(n,u)}while(0!==u);n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),0===u&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),D(t),a=n.pending,n.pending===n.pending_buf_size)){u=1;break}u=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,W(n,u)}while(0!==u);n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),0===u&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&D(t),n.pending+2<=n.pending_buf_size&&(W(n,255&t.adler),W(n,t.adler>>8&255),t.adler=0,n.status=U)):n.status=U),0!==n.pending){if(D(t),0===t.avail_out)return n.last_flush=-1,h}else if(0===t.avail_in&&F(r)<=F(i)&&r!==c)return B(t,-5);if(666===n.status&&0!==t.avail_in)return B(t,-5);if(0!==t.avail_in||0!==n.lookahead||r!==f&&666!==n.status){var v=2===n.strategy?function(t,r){for(var i;;){if(0===t.lookahead&&(N(t),0===t.lookahead)){if(r===f)return j;break}if(t.match_length=0,i=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(T(t,false),0===t.strm.avail_out))return j}return t.insert=0,r===c?(T(t,true),0===t.strm.avail_out?O:R):t.last_lit&&(T(t,false),0===t.strm.avail_out)?j:x}(n,r):3===n.strategy?function(t,r){for(var i,e,n,a,o=t.window;;){if(t.lookahead<=S){if(N(t),t.lookahead<=S&&r===f)return j;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=A&&0<t.strstart&&(e=o[n=t.strstart-1])===o[++n]&&e===o[++n]&&e===o[++n]){a=t.strstart+S;do{}while(e===o[++n]&&e===o[++n]&&e===o[++n]&&e===o[++n]&&e===o[++n]&&e===o[++n]&&e===o[++n]&&e===o[++n]&&n<a);t.match_length=S-(a-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=A?(i=s._tr_tally(t,1,t.match_length-A),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(T(t,false),0===t.strm.avail_out))return j}return t.insert=0,r===c?(T(t,true),0===t.strm.avail_out?O:R):t.last_lit&&(T(t,false),0===t.strm.avail_out)?j:x}(n,r):e[n.level].func(n,r);if(v!==O&&v!==R||(n.status=666),v===j||v===O)return 0===t.avail_out&&(n.last_flush=-1),h;if(v===x&&(1===r?s._tr_align(n):5!==r&&(s._tr_stored_block(n,0,0,false),3===r&&(C(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),D(t),0===t.avail_out))return n.last_flush=-1,h}return r!==c?h:n.wrap<=0?1:(2===n.wrap?(W(n,255&t.adler),W(n,t.adler>>8&255),W(n,t.adler>>16&255),W(n,t.adler>>24&255),W(n,255&t.total_in),W(n,t.total_in>>8&255),W(n,t.total_in>>16&255),W(n,t.total_in>>24&255)):(I(n,t.adler>>>16),I(n,65535&t.adler)),D(t),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?h:1)},i.deflateEnd=function(t){var r;return t&&t.state?(r=t.state.status)!==z&&69!==r&&73!==r&&91!==r&&103!==r&&r!==U&&666!==r?B(t,l):(t.state=null,r===U?B(t,-3):h):l},i.deflateSetDictionary=function(t,r){var i,e,s,o,u,f,c,d,v=r.length;if(!t||!t.state)return l;if(2===(o=(i=t.state).wrap)||1===o&&i.status!==z||i.lookahead)return l;for(1===o&&(t.adler=a(t.adler,r,v,0)),i.wrap=0,v>=i.w_size&&(0===o&&(C(i.head),i.strstart=0,i.block_start=0,i.insert=0),d=new n.Buf8(i.w_size),n.arraySet(d,r,v-i.w_size,i.w_size,0),r=d,v=i.w_size),u=t.avail_in,f=t.next_in,c=t.input,t.avail_in=v,t.next_in=0,t.input=r,N(i);i.lookahead>=A;){for(e=i.strstart,s=i.lookahead-(A-1);i.ins_h=(i.ins_h<<i.hash_shift^i.window[e+A-1])&i.hash_mask,i.prev[e&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=e,e++,--s;);i.strstart=e,i.lookahead=A-1,N(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=A-1,i.match_available=0,t.next_in=f,t.input=c,t.avail_in=u,i.wrap=o,h},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,r,i){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=false}},{}],48:[function(t,r,i){r.exports=function(t,r){var i,e,n,s,a,o,u,f,c,h,l,d,v,p,w,b,m,y,k,g,E,A,S,_,z;i=t.state,e=t.next_in,_=t.input,n=e+(t.avail_in-5),s=t.next_out,z=t.output,a=s-(r-t.avail_out),o=s+(t.avail_out-257),u=i.dmax,f=i.wsize,c=i.whave,h=i.wnext,l=i.window,d=i.hold,v=i.bits,p=i.lencode,w=i.distcode,b=(1<<i.lenbits)-1,m=(1<<i.distbits)-1;t:do{v<15&&(d+=_[e++]<<v,v+=8,d+=_[e++]<<v,v+=8),y=p[d&b];r:for(;;){if(d>>>=k=y>>>24,v-=k,0===(k=y>>>16&255))z[s++]=65535&y;else{if(!(16&k)){if(0==(64&k)){y=p[(65535&y)+(d&(1<<k)-1)];continue r}if(32&k){i.mode=12;break t}t.msg="invalid literal/length code",i.mode=30;break t}g=65535&y,(k&=15)&&(v<k&&(d+=_[e++]<<v,v+=8),g+=d&(1<<k)-1,d>>>=k,v-=k),v<15&&(d+=_[e++]<<v,v+=8,d+=_[e++]<<v,v+=8),y=w[d&m];i:for(;;){if(d>>>=k=y>>>24,v-=k,!(16&(k=y>>>16&255))){if(0==(64&k)){y=w[(65535&y)+(d&(1<<k)-1)];continue i}t.msg="invalid distance code",i.mode=30;break t}if(E=65535&y,v<(k&=15)&&(d+=_[e++]<<v,(v+=8)<k&&(d+=_[e++]<<v,v+=8)),u<(E+=d&(1<<k)-1)){t.msg="invalid distance too far back",i.mode=30;break t}if(d>>>=k,v-=k,(k=s-a)<E){if(c<(k=E-k)&&i.sane){t.msg="invalid distance too far back",i.mode=30;break t}if(S=l,(A=0)===h){if(A+=f-k,k<g){for(g-=k;z[s++]=l[A++],--k;);A=s-E,S=z}}else if(h<k){if(A+=f+h-k,(k-=h)<g){for(g-=k;z[s++]=l[A++],--k;);if(A=0,h<g){for(g-=k=h;z[s++]=l[A++],--k;);A=s-E,S=z}}}else if(A+=h-k,k<g){for(g-=k;z[s++]=l[A++],--k;);A=s-E,S=z}for(;2<g;)z[s++]=S[A++],z[s++]=S[A++],z[s++]=S[A++],g-=3;g&&(z[s++]=S[A++],1<g&&(z[s++]=S[A++]))}else{for(A=s-E;z[s++]=z[A++],z[s++]=z[A++],z[s++]=z[A++],2<(g-=3););g&&(z[s++]=z[A++],1<g&&(z[s++]=z[A++]))}break}}break}}while(e<n&&s<o);e-=g=v>>3,d&=(1<<(v-=g<<3))-1,t.next_in=e,t.next_out=s,t.avail_in=e<n?n-e+5:5-(e-n),t.avail_out=s<o?o-s+257:257-(s-o),i.hold=d,i.bits=v}},{}],49:[function(t,r,i){var e=t("../utils/common"),n=t("./adler32"),s=t("./crc32"),a=t("./inffast"),o=t("./inftrees"),u=1,f=2,c=0,h=-2,l=1,d=852,v=592;function p(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function w(){this.mode=0,this.last=false,this.wrap=0,this.havedict=false,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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(t){var r;return t&&t.state?(r=t.state,t.total_in=t.total_out=r.total=0,t.msg="",r.wrap&&(t.adler=1&r.wrap),r.mode=l,r.last=0,r.havedict=0,r.dmax=32768,r.head=null,r.hold=0,r.bits=0,r.lencode=r.lendyn=new e.Buf32(d),r.distcode=r.distdyn=new e.Buf32(v),r.sane=1,r.back=-1,c):h}function m(t){var r;return t&&t.state?((r=t.state).wsize=0,r.whave=0,r.wnext=0,b(t)):h}function y(t,r){var i,e;return t&&t.state?(e=t.state,r<0?(i=0,r=-r):(i=1+(r>>4),r<48&&(r&=15)),r&&(r<8||15<r)?h:(null!==e.window&&e.wbits!==r&&(e.window=null),e.wrap=i,e.wbits=r,m(t))):h}function k(t,r){var i,e;return t?(e=new w,(t.state=e).window=null,(i=y(t,r))!==c&&(t.state=null),i):h}var g,E,A=true;function S(t){if(A){var r;for(g=new e.Buf32(512),E=new e.Buf32(32),r=0;r<144;)t.lens[r++]=8;for(;r<256;)t.lens[r++]=9;for(;r<280;)t.lens[r++]=7;for(;r<288;)t.lens[r++]=8;for(o(u,t.lens,0,288,g,0,t.work,{bits:9}),r=0;r<32;)t.lens[r++]=5;o(f,t.lens,0,32,E,0,t.work,{bits:5}),A=false}t.lencode=g,t.lenbits=9,t.distcode=E,t.distbits=5}function _(t,r,i,n){var s,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new e.Buf8(a.wsize)),n>=a.wsize?(e.arraySet(a.window,r,i-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n<(s=a.wsize-a.wnext)&&(s=n),e.arraySet(a.window,r,i-n,s,a.wnext),(n-=s)?(e.arraySet(a.window,r,i-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=s,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=s))),0}i.inflateReset=m,i.inflateReset2=y,i.inflateResetKeep=b,i.inflateInit=function(t){return k(t,15)},i.inflateInit2=k,i.inflate=function(t,r){var i,d,v,w,b,m,y,k,g,E,A,z,U,j,x,O,R,B,F,C,D,T,W,I,Z=0,N=new e.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;12===(i=t.state).mode&&(i.mode=13),b=t.next_out,v=t.output,y=t.avail_out,w=t.next_in,d=t.input,m=t.avail_in,k=i.hold,g=i.bits,E=m,A=y,T=c;t:for(;;)switch(i.mode){case l:if(0===i.wrap){i.mode=13;break}for(;g<16;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(2&i.wrap&&35615===k){N[i.check=0]=255&k,N[1]=k>>>8&255,i.check=s(i.check,N,2,0),g=k=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=false),!(1&i.wrap)||(((255&k)<<8)+(k>>8))%31){t.msg="incorrect header check",i.mode=30;break}if(8!=(15&k)){t.msg="unknown compression method",i.mode=30;break}if(g-=4,D=8+(15&(k>>>=4)),0===i.wbits)i.wbits=D;else if(D>i.wbits){t.msg="invalid window size",i.mode=30;break}i.dmax=1<<D,t.adler=i.check=1,i.mode=512&k?10:12,g=k=0;break;case 2:for(;g<16;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(i.flags=k,8!=(255&i.flags)){t.msg="unknown compression method",i.mode=30;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=30;break}i.head&&(i.head.text=k>>8&1),512&i.flags&&(N[0]=255&k,N[1]=k>>>8&255,i.check=s(i.check,N,2,0)),g=k=0,i.mode=3;case 3:for(;g<32;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}i.head&&(i.head.time=k),512&i.flags&&(N[0]=255&k,N[1]=k>>>8&255,N[2]=k>>>16&255,N[3]=k>>>24&255,i.check=s(i.check,N,4,0)),g=k=0,i.mode=4;case 4:for(;g<16;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}i.head&&(i.head.xflags=255&k,i.head.os=k>>8),512&i.flags&&(N[0]=255&k,N[1]=k>>>8&255,i.check=s(i.check,N,2,0)),g=k=0,i.mode=5;case 5:if(1024&i.flags){for(;g<16;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}i.length=k,i.head&&(i.head.extra_len=k),512&i.flags&&(N[0]=255&k,N[1]=k>>>8&255,i.check=s(i.check,N,2,0)),g=k=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(m<(z=i.length)&&(z=m),z&&(i.head&&(D=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),e.arraySet(i.head.extra,d,w,z,D)),512&i.flags&&(i.check=s(i.check,d,z,w)),m-=z,w+=z,i.length-=z),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===m)break t;for(z=0;D=d[w+z++],i.head&&D&&i.length<65536&&(i.head.name+=String.fromCharCode(D)),D&&z<m;);if(512&i.flags&&(i.check=s(i.check,d,z,w)),m-=z,w+=z,D)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===m)break t;for(z=0;D=d[w+z++],i.head&&D&&i.length<65536&&(i.head.comment+=String.fromCharCode(D)),D&&z<m;);if(512&i.flags&&(i.check=s(i.check,d,z,w)),m-=z,w+=z,D)break t}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;g<16;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(k!==(65535&i.check)){t.msg="header crc mismatch",i.mode=30;break}g=k=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=true),t.adler=i.check=0,i.mode=12;break;case 10:for(;g<32;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}t.adler=i.check=p(k),g=k=0,i.mode=11;case 11:if(0===i.havedict)return t.next_out=b,t.avail_out=y,t.next_in=w,t.avail_in=m,i.hold=k,i.bits=g,2;t.adler=i.check=1,i.mode=12;case 12:if(5===r||6===r)break t;case 13:if(i.last){k>>>=7&g,g-=7&g,i.mode=27;break}for(;g<3;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}switch(i.last=1&k,g-=1,3&(k>>>=1)){case 0:i.mode=14;break;case 1:if(S(i),i.mode=20,6!==r)break;k>>>=2,g-=2;break t;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=30}k>>>=2,g-=2;break;case 14:for(k>>>=7&g,g-=7&g;g<32;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if((65535&k)!=(k>>>16^65535)){t.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&k,g=k=0,i.mode=15,6===r)break t;case 15:i.mode=16;case 16:if(z=i.length){if(m<z&&(z=m),y<z&&(z=y),0===z)break t;e.arraySet(v,d,w,z,b),m-=z,w+=z,y-=z,b+=z,i.length-=z;break}i.mode=12;break;case 17:for(;g<14;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(i.nlen=257+(31&k),k>>>=5,g-=5,i.ndist=1+(31&k),k>>>=5,g-=5,i.ncode=4+(15&k),k>>>=4,g-=4,286<i.nlen||30<i.ndist){t.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;g<3;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}i.lens[P[i.have++]]=7&k,k>>>=3,g-=3}for(;i.have<19;)i.lens[P[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,W={bits:i.lenbits},T=o(0,i.lens,0,19,i.lencode,0,i.work,W),i.lenbits=W.bits,T){t.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;O=(Z=i.lencode[k&(1<<i.lenbits)-1])>>>16&255,R=65535&Z,!((x=Z>>>24)<=g);){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(R<16)k>>>=x,g-=x,i.lens[i.have++]=R;else{if(16===R){for(I=x+2;g<I;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(k>>>=x,g-=x,0===i.have){t.msg="invalid bit length repeat",i.mode=30;break}D=i.lens[i.have-1],z=3+(3&k),k>>>=2,g-=2}else if(17===R){for(I=x+3;g<I;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}g-=x,D=0,z=3+(7&(k>>>=x)),k>>>=3,g-=3}else{for(I=x+7;g<I;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}g-=x,D=0,z=11+(127&(k>>>=x)),k>>>=7,g-=7}if(i.have+z>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=30;break}for(;z--;)i.lens[i.have++]=D}}if(30===i.mode)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,W={bits:i.lenbits},T=o(u,i.lens,0,i.nlen,i.lencode,0,i.work,W),i.lenbits=W.bits,T){t.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,W={bits:i.distbits},T=o(f,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,W),i.distbits=W.bits,T){t.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===r)break t;case 20:i.mode=21;case 21:if(6<=m&&258<=y){t.next_out=b,t.avail_out=y,t.next_in=w,t.avail_in=m,i.hold=k,i.bits=g,a(t,A),b=t.next_out,v=t.output,y=t.avail_out,w=t.next_in,d=t.input,m=t.avail_in,k=i.hold,g=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;O=(Z=i.lencode[k&(1<<i.lenbits)-1])>>>16&255,R=65535&Z,!((x=Z>>>24)<=g);){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(O&&0==(240&O)){for(B=x,F=O,C=R;O=(Z=i.lencode[C+((k&(1<<B+F)-1)>>B)])>>>16&255,R=65535&Z,!(B+(x=Z>>>24)<=g);){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}k>>>=B,g-=B,i.back+=B}if(k>>>=x,g-=x,i.back+=x,i.length=R,0===O){i.mode=26;break}if(32&O){i.back=-1,i.mode=12;break}if(64&O){t.msg="invalid literal/length code",i.mode=30;break}i.extra=15&O,i.mode=22;case 22:if(i.extra){for(I=i.extra;g<I;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}i.length+=k&(1<<i.extra)-1,k>>>=i.extra,g-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;O=(Z=i.distcode[k&(1<<i.distbits)-1])>>>16&255,R=65535&Z,!((x=Z>>>24)<=g);){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(0==(240&O)){for(B=x,F=O,C=R;O=(Z=i.distcode[C+((k&(1<<B+F)-1)>>B)])>>>16&255,R=65535&Z,!(B+(x=Z>>>24)<=g);){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}k>>>=B,g-=B,i.back+=B}if(k>>>=x,g-=x,i.back+=x,64&O){t.msg="invalid distance code",i.mode=30;break}i.offset=R,i.extra=15&O,i.mode=24;case 24:if(i.extra){for(I=i.extra;g<I;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}i.offset+=k&(1<<i.extra)-1,k>>>=i.extra,g-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===y)break t;if(z=A-y,i.offset>z){if((z=i.offset-z)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=30;break}U=z>i.wnext?(z-=i.wnext,i.wsize-z):i.wnext-z,z>i.length&&(z=i.length),j=i.window}else j=v,U=b-i.offset,z=i.length;for(y<z&&(z=y),y-=z,i.length-=z;v[b++]=j[U++],--z;);0===i.length&&(i.mode=21);break;case 26:if(0===y)break t;v[b++]=i.length,y--,i.mode=21;break;case 27:if(i.wrap){for(;g<32;){if(0===m)break t;m--,k|=d[w++]<<g,g+=8}if(A-=y,t.total_out+=A,i.total+=A,A&&(t.adler=i.check=i.flags?s(i.check,v,A,b-A):n(i.check,v,A,b-A)),A=y,(i.flags?k:p(k))!==i.check){t.msg="incorrect data check",i.mode=30;break}g=k=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;g<32;){if(0===m)break t;m--,k+=d[w++]<<g,g+=8}if(k!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=30;break}g=k=0}i.mode=29;case 29:T=1;break t;case 30:T=-3;break t;case 31:return-4;case 32:default:return h}return t.next_out=b,t.avail_out=y,t.next_in=w,t.avail_in=m,i.hold=k,i.bits=g,(i.wsize||A!==t.avail_out&&i.mode<30&&(i.mode<27||4!==r))&&_(t,t.output,t.next_out,A-t.avail_out)?(i.mode=31,-4):(E-=t.avail_in,A-=t.avail_out,t.total_in+=E,t.total_out+=A,i.total+=A,i.wrap&&A&&(t.adler=i.check=i.flags?s(i.check,v,A,t.next_out-A):n(i.check,v,A,t.next_out-A)),t.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0==E&&0===A||4===r)&&T===c&&(T=-5),T)},i.inflateEnd=function(t){if(!t||!t.state)return h;var r=t.state;return r.window&&(r.window=null),t.state=null,c},i.inflateGetHeader=function(t,r){var i;return t&&t.state?0==(2&(i=t.state).wrap)?h:((i.head=r).done=false,c):h},i.inflateSetDictionary=function(t,r){var i,e=r.length;return t&&t.state?0!==(i=t.state).wrap&&11!==i.mode?h:11===i.mode&&n(1,r,e,0)!==i.check?-3:_(t,r,e,e)?(i.mode=31,-4):(i.havedict=1,c):h},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,r,i){var e=t("../utils/common"),n=[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],s=[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],o=[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];r.exports=function(t,r,i,u,f,c,h,l){var d,v,p,w,b,m,y,k,g,E=l.bits,A=0,S=0,_=0,z=0,U=0,j=0,x=0,O=0,R=0,B=0,F=null,C=0,D=new e.Buf16(16),T=new e.Buf16(16),W=null,I=0;for(A=0;A<=15;A++)D[A]=0;for(S=0;S<u;S++)D[r[i+S]]++;for(U=E,z=15;1<=z&&0===D[z];z--);if(z<U&&(U=z),0===z)return f[c++]=20971520,f[c++]=20971520,l.bits=1,0;for(_=1;_<z&&0===D[_];_++);for(U<_&&(U=_),A=O=1;A<=15;A++)if(O<<=1,(O-=D[A])<0)return-1;if(0<O&&(0===t||1!==z))return-1;for(T[1]=0,A=1;A<15;A++)T[A+1]=T[A]+D[A];for(S=0;S<u;S++)0!==r[i+S]&&(h[T[r[i+S]]++]=S);if(m=0===t?(F=W=h,19):1===t?(F=n,C-=257,W=s,I-=257,256):(F=a,W=o,-1),A=_,b=c,x=S=B=0,p=-1,w=(R=1<<(j=U))-1,1===t&&852<R||2===t&&592<R)return 1;for(;;){for(y=A-x,g=h[S]<m?(k=0,h[S]):h[S]>m?(k=W[I+h[S]],F[C+h[S]]):(k=96,0),d=1<<A-x,_=v=1<<j;f[b+(B>>x)+(v-=d)]=y<<24|k<<16|g|0,0!==v;);for(d=1<<A-1;B&d;)d>>=1;if(0!==d?(B&=d-1,B+=d):B=0,S++,0==--D[A]){if(A===z)break;A=r[i+h[S]]}if(U<A&&(B&w)!==p){for(0===x&&(x=U),b+=_,O=1<<(j=A-x);j+x<z&&!((O-=D[j+x])<=0);)j++,O<<=1;if(R+=1<<j,1===t&&852<R||2===t&&592<R)return 1;f[p=B&w]=U<<24|j<<16|b-c|0}}return 0!==B&&(f[b+B]=A-x<<24|64<<16|0),l.bits=U,0}},{"../utils/common":41}],51:[function(t,r,i){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,r,i){var e=t("../utils/common"),n=0,s=1;function a(t){for(var r=t.length;0<=--r;)t[r]=0}var o=0,u=29,f=256,c=f+1+u,h=30,l=19,d=2*c+1,v=15,p=16,w=7,b=256,m=16,y=17,k=18,g=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(2*(c+2));a(_);var z=new Array(2*h);a(z);var U=new Array(512);a(U);var j=new Array(256);a(j);var x=new Array(u);a(x);var O,R,B,F=new Array(h);function C(t,r,i,e,n){this.static_tree=t,this.extra_bits=r,this.extra_base=i,this.elems=e,this.max_length=n,this.has_stree=t&&t.length}function D(t,r){this.dyn_tree=t,this.max_code=0,this.stat_desc=r}function T(t){return t<256?U[t]:U[256+(t>>>7)]}function W(t,r){t.pending_buf[t.pending++]=255&r,t.pending_buf[t.pending++]=r>>>8&255}function I(t,r,i){t.bi_valid>p-i?(t.bi_buf|=r<<t.bi_valid&65535,W(t,t.bi_buf),t.bi_buf=r>>p-t.bi_valid,t.bi_valid+=i-p):(t.bi_buf|=r<<t.bi_valid&65535,t.bi_valid+=i)}function Z(t,r,i){I(t,i[2*r],i[2*r+1])}function N(t,r){for(var i=0;i|=1&t,t>>>=1,i<<=1,0<--r;);return i>>>1}function P(t,r,i){var e,n,s=new Array(v+1),a=0;for(e=1;e<=v;e++)s[e]=a=a+i[e-1]<<1;for(n=0;n<=r;n++){var o=t[2*n+1];0!==o&&(t[2*n]=N(s[o]++,o))}}function L(t){var r;for(r=0;r<c;r++)t.dyn_ltree[2*r]=0;for(r=0;r<h;r++)t.dyn_dtree[2*r]=0;for(r=0;r<l;r++)t.bl_tree[2*r]=0;t.dyn_ltree[2*b]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function G(t){8<t.bi_valid?W(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function M(t,r,i,e){var n=2*r,s=2*i;return t[n]<t[s]||t[n]===t[s]&&e[r]<=e[i]}function H(t,r,i){for(var e=t.heap[i],n=i<<1;n<=t.heap_len&&(n<t.heap_len&&M(r,t.heap[n+1],t.heap[n],t.depth)&&n++,!M(r,e,t.heap[n],t.depth));)t.heap[i]=t.heap[n],i=n,n<<=1;t.heap[i]=e}function K(t,r,i){var e,n,s,a,o=0;if(0!==t.last_lit)for(;e=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],n=t.pending_buf[t.l_buf+o],o++,0===e?Z(t,n,r):(Z(t,(s=j[n])+f+1,r),0!==(a=g[s])&&I(t,n-=x[s],a),Z(t,s=T(--e),i),0!==(a=E[s])&&I(t,e-=F[s],a)),o<t.last_lit;);Z(t,b,r)}function J(t,r){var i,e,n,s=r.dyn_tree,a=r.stat_desc.static_tree,o=r.stat_desc.has_stree,u=r.stat_desc.elems,f=-1;for(t.heap_len=0,t.heap_max=d,i=0;i<u;i++)0!==s[2*i]?(t.heap[++t.heap_len]=f=i,t.depth[i]=0):s[2*i+1]=0;for(;t.heap_len<2;)s[2*(n=t.heap[++t.heap_len]=f<2?++f:0)]=1,t.depth[n]=0,t.opt_len--,o&&(t.static_len-=a[2*n+1]);for(r.max_code=f,i=t.heap_len>>1;1<=i;i--)H(t,s,i);for(n=u;i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],H(t,s,1),e=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=e,s[2*n]=s[2*i]+s[2*e],t.depth[n]=(t.depth[i]>=t.depth[e]?t.depth[i]:t.depth[e])+1,s[2*i+1]=s[2*e+1]=n,t.heap[1]=n++,H(t,s,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,r){var i,e,n,s,a,o,u=r.dyn_tree,f=r.max_code,c=r.stat_desc.static_tree,h=r.stat_desc.has_stree,l=r.stat_desc.extra_bits,p=r.stat_desc.extra_base,w=r.stat_desc.max_length,b=0;for(s=0;s<=v;s++)t.bl_count[s]=0;for(u[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<d;i++)w<(s=u[2*u[2*(e=t.heap[i])+1]+1]+1)&&(s=w,b++),u[2*e+1]=s,f<e||(t.bl_count[s]++,a=0,p<=e&&(a=l[e-p]),o=u[2*e],t.opt_len+=o*(s+a),h&&(t.static_len+=o*(c[2*e+1]+a)));if(0!==b){do{for(s=w-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[w]--,b-=2}while(0<b);for(s=w;0!==s;s--)for(e=t.bl_count[s];0!==e;)f<(n=t.heap[--i])||(u[2*n+1]!==s&&(t.opt_len+=(s-u[2*n+1])*u[2*n],u[2*n+1]=s),e--)}}(t,r),P(s,f,t.bl_count)}function V(t,r,i){var e,n,s=-1,a=r[1],o=0,u=7,f=4;for(0===a&&(u=138,f=3),r[2*(i+1)+1]=65535,e=0;e<=i;e++)n=a,a=r[2*(e+1)+1],++o<u&&n===a||(o<f?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[2*m]++):o<=10?t.bl_tree[2*y]++:t.bl_tree[2*k]++,s=n,f=(o=0)===a?(u=138,3):n===a?(u=6,3):(u=7,4))}function q(t,r,i){var e,n,s=-1,a=r[1],o=0,u=7,f=4;for(0===a&&(u=138,f=3),e=0;e<=i;e++)if(n=a,a=r[2*(e+1)+1],!(++o<u&&n===a)){if(o<f)for(;Z(t,n,t.bl_tree),0!=--o;);else 0!==n?(n!==s&&(Z(t,n,t.bl_tree),o--),Z(t,m,t.bl_tree),I(t,o-3,2)):o<=10?(Z(t,y,t.bl_tree),I(t,o-3,3)):(Z(t,k,t.bl_tree),I(t,o-11,7));s=n,f=(o=0)===a?(u=138,3):n===a?(u=6,3):(u=7,4)}}a(F);var X=false;function Y(t,r,i,n){I(t,(o<<1)+(n?1:0),3),function(t,r,i,n){G(t),W(t,i),W(t,~i),e.arraySet(t.pending_buf,t.window,r,i,t.pending),t.pending+=i}(t,r,i)}i._tr_init=function(t){X||(function(){var t,r,i,e,n,s=new Array(v+1);for(e=i=0;e<u-1;e++)for(x[e]=i,t=0;t<1<<g[e];t++)j[i++]=e;for(j[i-1]=e,e=n=0;e<16;e++)for(F[e]=n,t=0;t<1<<E[e];t++)U[n++]=e;for(n>>=7;e<h;e++)for(F[e]=n<<7,t=0;t<1<<E[e]-7;t++)U[256+n++]=e;for(r=0;r<=v;r++)s[r]=0;for(t=0;t<=143;)_[2*t+1]=8,t++,s[8]++;for(;t<=255;)_[2*t+1]=9,t++,s[9]++;for(;t<=279;)_[2*t+1]=7,t++,s[7]++;for(;t<=287;)_[2*t+1]=8,t++,s[8]++;for(P(_,c+1,s),t=0;t<h;t++)z[2*t+1]=5,z[2*t]=N(t,5);O=new C(_,g,f+1,c,v),R=new C(z,E,0,h,v),B=new C(new Array(0),A,0,l,w)}(),X=true),t.l_desc=new D(t.dyn_ltree,O),t.d_desc=new D(t.dyn_dtree,R),t.bl_desc=new D(t.bl_tree,B),t.bi_buf=0,t.bi_valid=0,L(t)},i._tr_stored_block=Y,i._tr_flush_block=function(t,r,i,e){var a,o,u=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var r,i=4093624447;for(r=0;r<=31;r++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*r])return n;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return s;for(r=32;r<f;r++)if(0!==t.dyn_ltree[2*r])return s;return n}(t)),J(t,t.l_desc),J(t,t.d_desc),u=function(t){var r;for(V(t,t.dyn_ltree,t.l_desc.max_code),V(t,t.dyn_dtree,t.d_desc.max_code),J(t,t.bl_desc),r=l-1;3<=r&&0===t.bl_tree[2*S[r]+1];r--);return t.opt_len+=3*(r+1)+5+5+4,r}(t),a=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=a&&(a=o)):a=o=i+5,i+4<=a&&-1!==r?Y(t,r,i,e):4===t.strategy||o===a?(I(t,2+(e?1:0),3),K(t,_,z)):(I(t,4+(e?1:0),3),function(t,r,i,e){var n;for(I(t,r-257,5),I(t,i-1,5),I(t,e-4,4),n=0;n<e;n++)I(t,t.bl_tree[2*S[n]+1],3);q(t,t.dyn_ltree,r-1),q(t,t.dyn_dtree,i-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),K(t,t.dyn_ltree,t.dyn_dtree)),L(t),e&&G(t)},i._tr_tally=function(t,r,i){return t.pending_buf[t.d_buf+2*t.last_lit]=r>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&r,t.pending_buf[t.l_buf+t.last_lit]=255&i,t.last_lit++,0===r?t.dyn_ltree[2*i]++:(t.matches++,r--,t.dyn_ltree[2*(j[i]+f+1)]++,t.dyn_dtree[2*T(r)]++),t.last_lit===t.lit_bufsize-1},i._tr_align=function(t){I(t,2,3),Z(t,b,_),function(t){16===t.bi_valid?(W(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,i,e){(function(t){!function(t,r){if(!t.setImmediate){var i,e,n,s,a=1,o={},u=false,f=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,i="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){l(t)}))}:function(){if(t.postMessage&&!t.importScripts){var r=true,i=t.onmessage;return t.onmessage=function(){r=false},t.postMessage("","*"),t.onmessage=i,r}}()?(s="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",d,false):t.attachEvent("onmessage",d),function(r){t.postMessage(s+r,"*")}):t.MessageChannel?((n=new MessageChannel).port1.onmessage=function(t){l(t.data)},function(t){n.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(e=f.documentElement,function(t){var r=f.createElement("script");r.onreadystatechange=function(){l(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}):function(t){setTimeout(l,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var r=new Array(arguments.length-1),e=0;e<r.length;e++)r[e]=arguments[e+1];var n={callback:t,args:r};return o[a]=n,i(a),a++},c.clearImmediate=h}function h(t){delete o[t]}function l(t){if(u)setTimeout(l,0,t);else{var i=o[t];if(i){u=true;try{!function(t){var i=t.callback,e=t.args;switch(e.length){case 0:i();break;case 1:i(e[0]);break;case 2:i(e[0],e[1]);break;case 3:i(e[0],e[1],e[2]);break;default:i.apply(r,e)}}(i)}finally{h(t),u=false}}}}function d(r){r.source===t&&"string"==typeof r.data&&0===r.data.indexOf(s)&&l(+r.data.slice(s.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,"undefined"!=typeof r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))})(h);return h.exports}var v=d();var p=i(v);var w=t("j",(function(t){switch(t){case"textarea":return 150;case"textbox":return 150;case"timestamp":return 105;case"date":return 75;case"dropdown":return 85;case"attachment":case"payment":return 24;case"radio":case"checkbox":return 14;case"signature":case"initial":return 71}return 150}));var b=t("i",(function(t){switch(t){case"textarea":return 41;case"textbox":return 15;case"timestamp":return 15;case"date":return 15;case"dropdown":return 20;case"attachment":case"payment":return 24;case"radio":case"checkbox":return 14;case"signature":case"initial":return 36}return 50}));var m=t("h",(function(t,r,i,e){var n=r.x,s=n===void 0?0:n,a=r.y,u=a===void 0?0:a,f=r.width,c=f===void 0?w(r.type):f,h=r.height,l=h===void 0?b(r.type):h;t.style.width="".concat(c,"px");t.style.height="".concat(l,"px");t.style.position="absolute";t.style.left="".concat(o(i,s),"px");t.style.bottom="".concat(o(e,u),"px");t.style.transform="scale(".concat(i,", ").concat(e,")")}));var y=t("c",(function(t,r,i){var e=t.x,n=e===void 0?0:e,s=t.y,a=s===void 0?0:s,u=t.width,f=u===void 0?w(t.type):u,c=t.height,h=c===void 0?b(t.type):c;return{zIndex:"100",width:"".concat(f,"px"),height:"".concat(h,"px"),position:"absolute",left:"".concat(o(r,n),"px"),bottom:"".concat(o(i,a),"px"),transform:"scale(".concat(r,", ").concat(i,")")}}));var k=t("g",(function(t){return"verdocs-doc-fld-".concat(t.name)}));var g=t("u",(function(t){var r=k(t);var i=document.getElementById(r);if(i){i.field=t;i.roleindex=t;i.setAttribute("id",r);i.setAttribute("disabled",true);i.setAttribute("disabled",false)}}));var E=t("r",(function(t,r,i,e,n){if(n===void 0){n=1}var s,a;var o=e.disabled,u=o===void 0?false:o,f=e.editable,c=f===void 0?false:f,h=e.draggable,l=h===void 0?false:h,d=e.done,v=d===void 0?false:d;var p=document.getElementById(i.containerId+"-controls");if(!p){console.log("[renderDocumentField] No controls DIV found",i.containerId+"-controls",i);return}switch(r.type){case"attachment":case"date":case"dropdown":case"initial":case"payment":case"signature":case"timestamp":case"textarea":case"textbox":{var w=k(r);var b=document.getElementById(w);if(b){m(b,r,i.xScale,i.yScale);return b}var y=r.type;if(y==="textbox"){if(((s=r["setting"])===null||s===void 0?void 0:s.leading)>0||((a=r["settings"])===null||a===void 0?void 0:a.leading)>0){y="textarea"}}var g=document.createElement("verdocs-field-".concat(y));g.field=r;g.setAttribute("id",w);g.setAttribute("fieldname",r.name);g.setAttribute("source",t);g.setAttribute("sourceid","template_id"in r?r.template_id:r.envelope_id);if(u){g.setAttribute("tabindex",-1);g.setAttribute("disabled",true)}else{g.setAttribute("tabIndex",n)}g.setAttribute("editable",c);g.setAttribute("draggable",l);g.setAttribute("done",v);m(g,r,i.xScale,i.yScale);p.appendChild(g);return g}case"checkbox":{var w=k(r);var b=document.getElementById(w);if(b){m(b,r,i.xScale,i.yScale);return b}var E=document.createElement("verdocs-field-checkbox");E.field=r;E.setAttribute("id",w);E.setAttribute("option",0);E.setAttribute("source",t);E.setAttribute("sourceid","template_id"in r?r.template_id:r.envelope_id);if(u){E.setAttribute("disabled",true)}if(v){E.setAttribute("done",true)}if(c){E.setAttribute("editable",true)}if(l){E.setAttribute("draggable",true)}m(E,r,i.xScale,i.yScale);p.appendChild(E);return E}case"radio":{var w=k(r);var b=document.getElementById(w);if(b){m(b,r,i.xScale,i.yScale);return b}var A=document.createElement("verdocs-field-radio");A.field=r;A.setAttribute("id",w);A.setAttribute("option",0);A.setAttribute("source",t);A.setAttribute("sourceid","template_id"in r?r.template_id:r.envelope_id);if(u){A.setAttribute("disabled",true)}if(v){A.setAttribute("done",true)}if(c){A.setAttribute("editable",true)}if(l){A.setAttribute("draggable",true)}m(A,r,i.xScale,i.yScale);p.appendChild(A);return A}default:console.log("[PREVIEW] Skipping unsupported field type",r);return null}}));var A=t("e",(function(t,r,i){var e=t.style.transform||"";var n="".concat(r,"(").concat(i,")");if(e.includes(r)){t.style.transform=e.replace(new RegExp("".concat(r,"\\(.+?\\)")),n)}else{t.style.transform=e+" "+n}}));var S=t("f",(function(t){t.style.transform=t.style.transform.split(")")[0]+")"}));var _=t("a",(function(t,r,i){return __awaiter(f,void 0,void 0,(function(){var s,o,f;return __generator(this,(function(c){switch(c.label){case 0:s=e.format(new Date(r.updated_at),u);o="".concat(r.name," - ").concat(s,".pdf");return[4,n(t,r.id,i)];case 1:f=c.sent();a(f,o);return[2]}}))}))}));var z=t("s",(function(t,r){return __awaiter(f,void 0,void 0,(function(){var i,o,f,c,h,l,d,v,w,b,m,y,k,g,E,A,S,_,z,U,j,x,O,R;var B,F,C;var D,T,W,I,Z,N,P,L,G,M,H,K;return __generator(this,(function(J){switch(J.label){case 0:o=new p;J.label=1;case 1:J.trys.push([1,30,31,36]);B=true,F=__asyncValues(r);J.label=2;case 2:return[4,F.next()];case 3:if(!(C=J.sent(),D=C.done,!D))return[3,29];I=C.value;B=false;f=I;c=e.format(new Date(f.updated_at),u);h=r.length>0?o.folder("".concat(f.id," - ").concat(f.name," - ").concat(c)):null;J.label=4;case 4:J.trys.push([4,22,23,28]);l=true,d=(N=void 0,__asyncValues(f.documents));J.label=5;case 5:return[4,d.next()];case 6:if(!(v=J.sent(),Z=v.done,!Z))return[3,21];L=v.value;l=false;w=L;b=w.type==="certificate"?"".concat(f.name,"_certificate.pdf"):"".concat(w.name.replace(".pdf","").replace(/\//g,"_"),".pdf");return[4,n(t,f.id,w.id)];case 7:m=J.sent();if(h){h.file(b,m,{compression:"DEFLATE"})}else{o.file(b,m,{compression:"DEFLATE"})}y=((i=f.fields)===null||i===void 0?void 0:i.filter((function(t){return t.type==="attachment"&&t.settings["name"]})))||[];if(!(y.length>0))return[3,20];k=h?h.folder("attachments"):o.folder("attachments");J.label=8;case 8:J.trys.push([8,14,15,20]);g=true,E=(M=void 0,__asyncValues(y));J.label=9;case 9:return[4,E.next()];case 10:if(!(A=J.sent(),G=A.done,!G))return[3,13];K=A.value;g=false;S=K;return[4,s(t,f.id,S.name)];case 11:_=J.sent();k.file(S.settings["name"].replace(/\//g,"_"),_,{compression:"DEFLATE"});J.label=12;case 12:g=true;return[3,9];case 13:return[3,20];case 14:z=J.sent();M={error:z};return[3,20];case 15:J.trys.push([15,,18,19]);if(!(!g&&!G&&(H=E.return)))return[3,17];return[4,H.call(E)];case 16:J.sent();J.label=17;case 17:return[3,19];case 18:if(M)throw M.error;return[7];case 19:return[7];case 20:l=true;return[3,5];case 21:return[3,28];case 22:U=J.sent();N={error:U};return[3,28];case 23:J.trys.push([23,,26,27]);if(!(!l&&!Z&&(P=d.return)))return[3,25];return[4,P.call(d)];case 24:J.sent();J.label=25;case 25:return[3,27];case 26:if(N)throw N.error;return[7];case 27:return[7];case 28:B=true;return[3,2];case 29:return[3,36];case 30:j=J.sent();T={error:j};return[3,36];case 31:J.trys.push([31,,34,35]);if(!(!B&&!D&&(W=F.return)))return[3,33];return[4,W.call(F)];case 32:J.sent();J.label=33;case 33:return[3,35];case 34:if(T)throw T.error;return[7];case 35:return[7];case 36:x=e.format(r.length===1?new Date(r[0].updated_at):new Date,u);O=r.length===1?"".concat(r[0].name," - ").concat(x,".zip"):"Verdocs-Envelopes-".concat(x);return[4,o.generateAsync({type:"blob",compression:"DEFLATE"})];case 37:R=J.sent();a(R,O);return[2]}}))}))}));var U=t("t",(function(t,r){var i=0;return function(){var e=this;var n=[];for(var s=0;s<arguments.length;s++){n[s]=arguments[s]}clearTimeout(i);i=setTimeout((function(){return t.apply(e,n)}),r)}}));var j=t("b",(function(t,r){if(r===void 0){r="16px Arial"}var i=document.createElement("canvas");var e=i.getContext("2d");e.font=r;return e.measureText(t).width}));var x=t("d",(function(t){var r=(t||"").trim();if(!r||r.startsWith("+")){return r}r=r.replace(/[^0-9]/g,"");r=r.replace(/^0/g,"");return"+1".concat(r)}))}}}));
13
+ //# sourceMappingURL=p-CD5uiThi.system.js.map