/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/gzip-js@0.3.2/lib/gzip.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(){"use strict";var t=require("crc32"),e=require("deflate-js"),n={deflate:8},r=1,o=2,i=4,f=8,a=16,s={fat:0,amiga:1,vmz:2,unix:3,"vm/cms":4,atari:5,hpfs:6,macintosh:7,"z-system":8,cplm:9,"tops-20":10,ntfs:11,qdos:12,acorn:13,vfat:14,vms:15,beos:16,tandem:17,theos:18};function u(t,e){e.push(255&t)}function c(t,e){e.push(255&t),e.push(t>>>8)}function h(t,e){c(65535&t,e),c(t>>>16,e)}function p(t){return t.shift()}function m(t){return t.shift()|t.shift()<<8}function l(t){var e=m(t),n=m(t);return n>32768?((n-=32768)<<16|e)+32768*Math.pow(2,16):n<<16|e}function d(t){for(var e=[];0!==t[0];)e.push(String.fromCharCode(t.shift()));return t.shift(),e.join("")}module.exports={zip:function(r,o){var i,a=0,c=[];return o||(o={}),i=o.level||6,"string"==typeof r&&(r=Array.prototype.map.call(r,(function(t){return t.charCodeAt(0)}))),u(31,c),u(139,c),u(n.deflate,c),o.name&&(a|=f),u(a,c),h(o.timestamp||parseInt(Date.now()/1e3,10),c),u(1===i?4:9===i?2:0,c),u(s.unix,c),o.name&&(!function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)u(t.charCodeAt(n),e)}(o.name.substring(o.name.lastIndexOf("/")+1),c),u(0,c)),e.deflate(r,i).forEach((function(t){u(t,c)})),h(parseInt(t(r),16),c),h(r.length,c),c},unzip:function(u,c){var h,v,g,y,C=Array.prototype.slice.call(u,0);if(31!==p(C)||139!==p(C))throw"Not a GZIP file";if(h=p(C),!(h=Object.keys(n).some((function(t){return v=t,n[t]===h}))))throw"Unsupported compression method";if(g=p(C),l(C),p(C),h=p(C),Object.keys(s).some((function(t){if(s[t]===h)return!0})),g&i&&function(t,e){var n,r=[];for(n=0;n<e;n+=1)r.push(t.shift())}(C,h=m(C)),g&f&&d(C),g&a&&d(C),g&o&&m(C),"deflate"===v&&(y=e.inflate(C.splice(0,C.length-8))),g&r&&(y=Array.prototype.map.call(y,(function(t){return String.fromCharCode(t)})).join("")),l(C)!==parseInt(t(y),16))throw"Checksum does not match";if(l(C)!==y.length)throw"Size of decompressed file not correct";return y},get DEFAULT_LEVEL(){return 6}}}();
//# sourceMappingURL=/sm/1b1c8d624ca40d957190653c75fd5028d1d472c63eb7e2d3e6ad00383e466766.map