UNPKG

zipcode-ja

Version:

zipcodes of japanpost.jp as static properties

1 lines 3.48 MB
!function(o){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).zipcodeJa=o()}}(function(){return function e(k,t,h){function Q(i,o){if(!t[i]){if(!k[i]){var R="function"==typeof require&&require;if(!o&&R)return R(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var I=t[i]={exports:{}};k[i][0].call(I.exports,function(o){return Q(k[i][1][o]||o)},I,I.exports,e,k,t,h)}return t[i].exports}for(var u="function"==typeof require&&require,o=0;o<h.length;o++)Q(h[o]);return Q}({1:[function(o,i,R){"use strict";R.byteLength=function(o){var i=Z(o),R=i[0],a=i[1];return 3*(R+a)/4-a},R.toByteArray=function(o){for(var i,R=Z(o),a=R[0],I=R[1],e=new u(function(o,i,R){return 3*(i+R)/4-R}(0,a,I)),k=0,t=0<I?a-4:a,h=0;h<t;h+=4)i=Q[o.charCodeAt(h)]<<18|Q[o.charCodeAt(h+1)]<<12|Q[o.charCodeAt(h+2)]<<6|Q[o.charCodeAt(h+3)],e[k++]=i>>16&255,e[k++]=i>>8&255,e[k++]=255&i;2===I&&(i=Q[o.charCodeAt(h)]<<2|Q[o.charCodeAt(h+1)]>>4,e[k++]=255&i);1===I&&(i=Q[o.charCodeAt(h)]<<10|Q[o.charCodeAt(h+1)]<<4|Q[o.charCodeAt(h+2)]>>2,e[k++]=i>>8&255,e[k++]=255&i);return e},R.fromByteArray=function(o){for(var i,R=o.length,a=R%3,I=[],e=0,k=R-a;e<k;e+=16383)I.push(h(o,e,k<e+16383?k:e+16383));1==a?(i=o[R-1],I.push(t[i>>2]+t[i<<4&63]+"==")):2==a&&(i=(o[R-2]<<8)+o[R-1],I.push(t[i>>10]+t[i>>4&63]+t[i<<2&63]+"="));return I.join("")};for(var t=[],Q=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I=0,e=a.length;I<e;++I)t[I]=a[I],Q[a.charCodeAt(I)]=I;function Z(o){var i=o.length;if(0<i%4)throw new Error("Invalid string. Length must be a multiple of 4");var R=o.indexOf("=");return-1===R&&(R=i),[R,R===i?0:4-R%4]}function h(o,i,R){for(var a,I,e=[],k=i;k<R;k+=3)a=(o[k]<<16&16711680)+(o[k+1]<<8&65280)+(255&o[k+2]),e.push(t[(I=a)>>18&63]+t[I>>12&63]+t[I>>6&63]+t[63&I]);return e.join("")}Q["-".charCodeAt(0)]=62,Q["_".charCodeAt(0)]=63},{}],2:[function(o,i,W){(function(Z){"use strict";var a=o("base64-js"),e=o("ieee754");W.Buffer=Z,W.SlowBuffer=function(o){+o!=o&&(o=0);return Z.alloc(+o)},W.INSPECT_MAX_BYTES=50;var R=2147483647;function k(o){if(R<o)throw new RangeError('The value "'+o+'" is invalid for option "size"');var i=new Uint8Array(o);return i.__proto__=Z.prototype,i}function Z(o,i,R){if("number"!=typeof o)return I(o,i,R);if("string"==typeof i)throw new TypeError('The "string" argument must be of type string. Received type number');return h(o)}function I(o,i,R){if("string"==typeof o)return function(o,i){"string"==typeof i&&""!==i||(i="utf8");if(!Z.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var R=0|n(o,i),a=k(R),I=a.write(o,i);I!==R&&(a=a.slice(0,I));return a}(o,i);if(ArrayBuffer.isView(o))return Q(o);if(null==o)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(g(o,ArrayBuffer)||o&&g(o.buffer,ArrayBuffer))return function(o,i,R){if(i<0||o.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<i+(R||0))throw new RangeError('"length" is outside of buffer bounds');var a;a=void 0===i&&void 0===R?new Uint8Array(o):void 0===R?new Uint8Array(o,i):new Uint8Array(o,i,R);return a.__proto__=Z.prototype,a}(o,i,R);if("number"==typeof o)throw new TypeError('The "value" argument must not be of type number. Received type number');var a=o.valueOf&&o.valueOf();if(null!=a&&a!==o)return Z.from(a,i,R);var I=function(o){if(Z.isBuffer(o)){var i=0|u(o.length),R=k(i);return 0===R.length||o.copy(R,0,0,i),R}if(void 0!==o.length)return"number"!=typeof o.length||J(o.length)?k(0):Q(o);if("Buffer"===o.type&&Array.isArray(o.data))return Q(o.data)}(o);if(I)return I;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof o[Symbol.toPrimitive])return Z.from(o[Symbol.toPrimitive]("string"),i,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}function t(o){if("number"!=typeof o)throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function h(o){return t(o),k(o<0?0:0|u(o))}function Q(o){for(var i=o.length<0?0:0|u(o.length),R=k(i),a=0;a<i;a+=1)R[a]=255&o[a];return R}function u(o){if(R<=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+R.toString(16)+" bytes");return 0|o}function n(o,i){if(Z.isBuffer(o))return o.length;if(ArrayBuffer.isView(o)||g(o,ArrayBuffer))return o.byteLength;if("string"!=typeof o)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);var R=o.length,a=2<arguments.length&&!0===arguments[2];if(!a&&0===R)return 0;for(var I=!1;;)switch(i){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return j(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return q(o).length;default:if(I)return a?-1:j(o).length;i=(""+i).toLowerCase(),I=!0}}function c(o,i,R){var a=o[i];o[i]=o[R],o[R]=a}function U(o,i,R,a,I){if(0===o.length)return-1;if("string"==typeof R?(a=R,R=0):2147483647<R?R=2147483647:R<-2147483648&&(R=-2147483648),J(R=+R)&&(R=I?0:o.length-1),R<0&&(R=o.length+R),R>=o.length){if(I)return-1;R=o.length-1}else if(R<0){if(!I)return-1;R=0}if("string"==typeof i&&(i=Z.from(i,a)),Z.isBuffer(i))return 0===i.length?-1:E(o,i,R,a,I);if("number"==typeof i)return i&=255,"function"==typeof Uint8Array.prototype.indexOf?I?Uint8Array.prototype.indexOf.call(o,i,R):Uint8Array.prototype.lastIndexOf.call(o,i,R):E(o,[i],R,a,I);throw new TypeError("val must be string, number or Buffer")}function E(o,i,R,a,I){var e,k=1,t=o.length,h=i.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(o.length<2||i.length<2)return-1;t/=k=2,h/=2,R/=2}function Q(o,i){return 1===k?o[i]:o.readUInt16BE(i*k)}if(I){var u=-1;for(e=R;e<t;e++)if(Q(o,e)===Q(i,-1===u?0:e-u)){if(-1===u&&(u=e),e-u+1===h)return u*k}else-1!==u&&(e-=e-u),u=-1}else for(t<R+h&&(R=t-h),e=R;0<=e;e--){for(var Z=!0,n=0;n<h;n++)if(Q(o,e+n)!==Q(i,n)){Z=!1;break}if(Z)return e}return-1}function y(o,i,R,a){R=Number(R)||0;var I=o.length-R;a?I<(a=Number(a))&&(a=I):a=I;var e=i.length;e/2<a&&(a=e/2);for(var k=0;k<a;++k){var t=parseInt(i.substr(2*k,2),16);if(J(t))return k;o[R+k]=t}return k}function H(o,i,R,a){return T(function(o){for(var i=[],R=0;R<o.length;++R)i.push(255&o.charCodeAt(R));return i}(i),o,R,a)}function O(o,i,R){return 0===i&&R===o.length?a.fromByteArray(o):a.fromByteArray(o.slice(i,R))}function l(o,i,R){R=Math.min(o.length,R);for(var a=[],I=i;I<R;){var e,k,t,h,Q=o[I],u=null,Z=239<Q?4:223<Q?3:191<Q?2:1;if(I+Z<=R)switch(Z){case 1:Q<128&&(u=Q);break;case 2:128==(192&(e=o[I+1]))&&127<(h=(31&Q)<<6|63&e)&&(u=h);break;case 3:e=o[I+1],k=o[I+2],128==(192&e)&&128==(192&k)&&2047<(h=(15&Q)<<12|(63&e)<<6|63&k)&&(h<55296||57343<h)&&(u=h);break;case 4:e=o[I+1],k=o[I+2],t=o[I+3],128==(192&e)&&128==(192&k)&&128==(192&t)&&65535<(h=(15&Q)<<18|(63&e)<<12|(63&k)<<6|63&t)&&h<1114112&&(u=h)}null===u?(u=65533,Z=1):65535<u&&(u-=65536,a.push(u>>>10&1023|55296),u=56320|1023&u),a.push(u),I+=Z}return function(o){var i=o.length;if(i<=m)return String.fromCharCode.apply(String,o);var R="",a=0;for(;a<i;)R+=String.fromCharCode.apply(String,o.slice(a,a+=m));return R}(a)}W.kMaxLength=R,(Z.TYPED_ARRAY_SUPPORT=function(){try{var o=new Uint8Array(1);return o.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===o.foo()}catch(o){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Z.prototype,"parent",{enumerable:!0,get:function(){if(Z.isBuffer(this))return this.buffer}}),Object.defineProperty(Z.prototype,"offset",{enumerable:!0,get:function(){if(Z.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&Z[Symbol.species]===Z&&Object.defineProperty(Z,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),Z.poolSize=8192,Z.from=function(o,i,R){return I(o,i,R)},Z.prototype.__proto__=Uint8Array.prototype,Z.__proto__=Uint8Array,Z.alloc=function(o,i,R){return function(o,i,R){return t(o),o<=0?k(o):void 0!==i?"string"==typeof R?k(o).fill(i,R):k(o).fill(i):k(o)}(o,i,R)},Z.allocUnsafe=function(o){return h(o)},Z.allocUnsafeSlow=function(o){return h(o)},Z.isBuffer=function(o){return null!=o&&!0===o._isBuffer&&o!==Z.prototype},Z.compare=function(o,i){if(g(o,Uint8Array)&&(o=Z.from(o,o.offset,o.byteLength)),g(i,Uint8Array)&&(i=Z.from(i,i.offset,i.byteLength)),!Z.isBuffer(o)||!Z.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===i)return 0;for(var R=o.length,a=i.length,I=0,e=Math.min(R,a);I<e;++I)if(o[I]!==i[I]){R=o[I],a=i[I];break}return R<a?-1:a<R?1:0},Z.isEncoding=function(o){switch(String(o).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Z.concat=function(o,i){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(0===o.length)return Z.alloc(0);var R;if(void 0===i)for(R=i=0;R<o.length;++R)i+=o[R].length;var a=Z.allocUnsafe(i),I=0;for(R=0;R<o.length;++R){var e=o[R];if(g(e,Uint8Array)&&(e=Z.from(e)),!Z.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(a,I),I+=e.length}return a},Z.byteLength=n,Z.prototype._isBuffer=!0,Z.prototype.swap16=function(){var o=this.length;if(o%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<o;i+=2)c(this,i,i+1);return this},Z.prototype.swap32=function(){var o=this.length;if(o%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<o;i+=4)c(this,i,i+3),c(this,i+1,i+2);return this},Z.prototype.swap64=function(){var o=this.length;if(o%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<o;i+=8)c(this,i,i+7),c(this,i+1,i+6),c(this,i+2,i+5),c(this,i+3,i+4);return this},Z.prototype.toLocaleString=Z.prototype.toString=function(){var o=this.length;return 0===o?"":0===arguments.length?l(this,0,o):function(o,i,R){var a=!1;if((void 0===i||i<0)&&(i=0),i>this.length)return"";if((void 0===R||R>this.length)&&(R=this.length),R<=0)return"";if((R>>>=0)<=(i>>>=0))return"";for(o=o||"utf8";;)switch(o){case"hex":return F(this,i,R);case"utf8":case"utf-8":return l(this,i,R);case"ascii":return K(this,i,R);case"latin1":case"binary":return S(this,i,R);case"base64":return O(this,i,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r(this,i,R);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),a=!0}}.apply(this,arguments)},Z.prototype.equals=function(o){if(!Z.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o||0===Z.compare(this,o)},Z.prototype.inspect=function(){var o="",i=W.INSPECT_MAX_BYTES;return o=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(o+=" ... "),"<Buffer "+o+">"},Z.prototype.compare=function(o,i,R,a,I){if(g(o,Uint8Array)&&(o=Z.from(o,o.offset,o.byteLength)),!Z.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(void 0===i&&(i=0),void 0===R&&(R=o?o.length:0),void 0===a&&(a=0),void 0===I&&(I=this.length),i<0||R>o.length||a<0||I>this.length)throw new RangeError("out of range index");if(I<=a&&R<=i)return 0;if(I<=a)return-1;if(R<=i)return 1;if(this===o)return 0;for(var e=(I>>>=0)-(a>>>=0),k=(R>>>=0)-(i>>>=0),t=Math.min(e,k),h=this.slice(a,I),Q=o.slice(i,R),u=0;u<t;++u)if(h[u]!==Q[u]){e=h[u],k=Q[u];break}return e<k?-1:k<e?1:0},Z.prototype.includes=function(o,i,R){return-1!==this.indexOf(o,i,R)},Z.prototype.indexOf=function(o,i,R){return U(this,o,i,R,!0)},Z.prototype.lastIndexOf=function(o,i,R){return U(this,o,i,R,!1)},Z.prototype.write=function(o,i,R,a){if(void 0===i)a="utf8",R=this.length,i=0;else if(void 0===R&&"string"==typeof i)a=i,R=this.length,i=0;else{if(!isFinite(i))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");i>>>=0,isFinite(R)?(R>>>=0,void 0===a&&(a="utf8")):(a=R,R=void 0)}var I=this.length-i;if((void 0===R||I<R)&&(R=I),0<o.length&&(R<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");a=a||"utf8";for(var e,k,t,h,Q,u,Z,n,c,U=!1;;)switch(a){case"hex":return y(this,o,i,R);case"utf8":case"utf-8":return n=i,c=R,T(j(o,(Z=this).length-n),Z,n,c);case"ascii":return H(this,o,i,R);case"latin1":case"binary":return H(this,o,i,R);case"base64":return h=this,Q=i,u=R,T(q(o),h,Q,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k=i,t=R,T(function(o,i){for(var R,a,I,e=[],k=0;k<o.length&&!((i-=2)<0);++k)R=o.charCodeAt(k),a=R>>8,I=R%256,e.push(I),e.push(a);return e}(o,(e=this).length-k),e,k,t);default:if(U)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),U=!0}},Z.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var m=4096;function K(o,i,R){var a="";R=Math.min(o.length,R);for(var I=i;I<R;++I)a+=String.fromCharCode(127&o[I]);return a}function S(o,i,R){var a="";R=Math.min(o.length,R);for(var I=i;I<R;++I)a+=String.fromCharCode(o[I]);return a}function F(o,i,R){var a=o.length;(!i||i<0)&&(i=0),(!R||R<0||a<R)&&(R=a);for(var I="",e=i;e<R;++e)I+=f(o[e]);return I}function r(o,i,R){for(var a=o.slice(i,R),I="",e=0;e<a.length;e+=2)I+=String.fromCharCode(a[e]+256*a[e+1]);return I}function d(o,i,R){if(o%1!=0||o<0)throw new RangeError("offset is not uint");if(R<o+i)throw new RangeError("Trying to access beyond buffer length")}function p(o,i,R,a,I,e){if(!Z.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(I<i||i<e)throw new RangeError('"value" argument is out of bounds');if(R+a>o.length)throw new RangeError("Index out of range")}function s(o,i,R,a){if(R+a>o.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function N(o,i,R,a,I){return i=+i,R>>>=0,I||s(o,0,R,4),e.write(o,i,R,a,23,4),R+4}function M(o,i,R,a,I){return i=+i,R>>>=0,I||s(o,0,R,8),e.write(o,i,R,a,52,8),R+8}Z.prototype.slice=function(o,i){var R=this.length;(o=~~o)<0?(o+=R)<0&&(o=0):R<o&&(o=R),(i=void 0===i?R:~~i)<0?(i+=R)<0&&(i=0):R<i&&(i=R),i<o&&(i=o);var a=this.subarray(o,i);return a.__proto__=Z.prototype,a},Z.prototype.readUIntLE=function(o,i,R){o>>>=0,i>>>=0,R||d(o,i,this.length);for(var a=this[o],I=1,e=0;++e<i&&(I*=256);)a+=this[o+e]*I;return a},Z.prototype.readUIntBE=function(o,i,R){o>>>=0,i>>>=0,R||d(o,i,this.length);for(var a=this[o+--i],I=1;0<i&&(I*=256);)a+=this[o+--i]*I;return a},Z.prototype.readUInt8=function(o,i){return o>>>=0,i||d(o,1,this.length),this[o]},Z.prototype.readUInt16LE=function(o,i){return o>>>=0,i||d(o,2,this.length),this[o]|this[o+1]<<8},Z.prototype.readUInt16BE=function(o,i){return o>>>=0,i||d(o,2,this.length),this[o]<<8|this[o+1]},Z.prototype.readUInt32LE=function(o,i){return o>>>=0,i||d(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+16777216*this[o+3]},Z.prototype.readUInt32BE=function(o,i){return o>>>=0,i||d(o,4,this.length),16777216*this[o]+(this[o+1]<<16|this[o+2]<<8|this[o+3])},Z.prototype.readIntLE=function(o,i,R){o>>>=0,i>>>=0,R||d(o,i,this.length);for(var a=this[o],I=1,e=0;++e<i&&(I*=256);)a+=this[o+e]*I;return(I*=128)<=a&&(a-=Math.pow(2,8*i)),a},Z.prototype.readIntBE=function(o,i,R){o>>>=0,i>>>=0,R||d(o,i,this.length);for(var a=i,I=1,e=this[o+--a];0<a&&(I*=256);)e+=this[o+--a]*I;return(I*=128)<=e&&(e-=Math.pow(2,8*i)),e},Z.prototype.readInt8=function(o,i){return o>>>=0,i||d(o,1,this.length),128&this[o]?-1*(255-this[o]+1):this[o]},Z.prototype.readInt16LE=function(o,i){o>>>=0,i||d(o,2,this.length);var R=this[o]|this[o+1]<<8;return 32768&R?4294901760|R:R},Z.prototype.readInt16BE=function(o,i){o>>>=0,i||d(o,2,this.length);var R=this[o+1]|this[o]<<8;return 32768&R?4294901760|R:R},Z.prototype.readInt32LE=function(o,i){return o>>>=0,i||d(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24},Z.prototype.readInt32BE=function(o,i){return o>>>=0,i||d(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]},Z.prototype.readFloatLE=function(o,i){return o>>>=0,i||d(o,4,this.length),e.read(this,o,!0,23,4)},Z.prototype.readFloatBE=function(o,i){return o>>>=0,i||d(o,4,this.length),e.read(this,o,!1,23,4)},Z.prototype.readDoubleLE=function(o,i){return o>>>=0,i||d(o,8,this.length),e.read(this,o,!0,52,8)},Z.prototype.readDoubleBE=function(o,i){return o>>>=0,i||d(o,8,this.length),e.read(this,o,!1,52,8)},Z.prototype.writeUIntLE=function(o,i,R,a){o=+o,i>>>=0,R>>>=0,a||p(this,o,i,R,Math.pow(2,8*R)-1,0);var I=1,e=0;for(this[i]=255&o;++e<R&&(I*=256);)this[i+e]=o/I&255;return i+R},Z.prototype.writeUIntBE=function(o,i,R,a){o=+o,i>>>=0,R>>>=0,a||p(this,o,i,R,Math.pow(2,8*R)-1,0);var I=R-1,e=1;for(this[i+I]=255&o;0<=--I&&(e*=256);)this[i+I]=o/e&255;return i+R},Z.prototype.writeUInt8=function(o,i,R){return o=+o,i>>>=0,R||p(this,o,i,1,255,0),this[i]=255&o,i+1},Z.prototype.writeUInt16LE=function(o,i,R){return o=+o,i>>>=0,R||p(this,o,i,2,65535,0),this[i]=255&o,this[i+1]=o>>>8,i+2},Z.prototype.writeUInt16BE=function(o,i,R){return o=+o,i>>>=0,R||p(this,o,i,2,65535,0),this[i]=o>>>8,this[i+1]=255&o,i+2},Z.prototype.writeUInt32LE=function(o,i,R){return o=+o,i>>>=0,R||p(this,o,i,4,4294967295,0),this[i+3]=o>>>24,this[i+2]=o>>>16,this[i+1]=o>>>8,this[i]=255&o,i+4},Z.prototype.writeUInt32BE=function(o,i,R){return o=+o,i>>>=0,R||p(this,o,i,4,4294967295,0),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=255&o,i+4},Z.prototype.writeIntLE=function(o,i,R,a){if(o=+o,i>>>=0,!a){var I=Math.pow(2,8*R-1);p(this,o,i,R,I-1,-I)}var e=0,k=1,t=0;for(this[i]=255&o;++e<R&&(k*=256);)o<0&&0===t&&0!==this[i+e-1]&&(t=1),this[i+e]=(o/k>>0)-t&255;return i+R},Z.prototype.writeIntBE=function(o,i,R,a){if(o=+o,i>>>=0,!a){var I=Math.pow(2,8*R-1);p(this,o,i,R,I-1,-I)}var e=R-1,k=1,t=0;for(this[i+e]=255&o;0<=--e&&(k*=256);)o<0&&0===t&&0!==this[i+e+1]&&(t=1),this[i+e]=(o/k>>0)-t&255;return i+R},Z.prototype.writeInt8=function(o,i,R){return o=+o,i>>>=0,R||p(this,o,i,1,127,-128),o<0&&(o=255+o+1),this[i]=255&o,i+1},Z.prototype.writeInt16LE=function(o,i,R){return o=+o,i>>>=0,R||p(this,o,i,2,32767,-32768),this[i]=255&o,this[i+1]=o>>>8,i+2},Z.prototype.writeInt16BE=function(o,i,R){return o=+o,i>>>=0,R||p(this,o,i,2,32767,-32768),this[i]=o>>>8,this[i+1]=255&o,i+2},Z.prototype.writeInt32LE=function(o,i,R){return o=+o,i>>>=0,R||p(this,o,i,4,2147483647,-2147483648),this[i]=255&o,this[i+1]=o>>>8,this[i+2]=o>>>16,this[i+3]=o>>>24,i+4},Z.prototype.writeInt32BE=function(o,i,R){return o=+o,i>>>=0,R||p(this,o,i,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=255&o,i+4},Z.prototype.writeFloatLE=function(o,i,R){return N(this,o,i,!0,R)},Z.prototype.writeFloatBE=function(o,i,R){return N(this,o,i,!1,R)},Z.prototype.writeDoubleLE=function(o,i,R){return M(this,o,i,!0,R)},Z.prototype.writeDoubleBE=function(o,i,R){return M(this,o,i,!1,R)},Z.prototype.copy=function(o,i,R,a){if(!Z.isBuffer(o))throw new TypeError("argument should be a Buffer");if(R=R||0,a||0===a||(a=this.length),i>=o.length&&(i=o.length),i=i||0,0<a&&a<R&&(a=R),a===R)return 0;if(0===o.length||0===this.length)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),o.length-i<a-R&&(a=o.length-i+R);var I=a-R;if(this===o&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(i,R,a);else if(this===o&&R<i&&i<a)for(var e=I-1;0<=e;--e)o[e+i]=this[e+R];else Uint8Array.prototype.set.call(o,this.subarray(R,a),i);return I},Z.prototype.fill=function(o,i,R,a){if("string"==typeof o){if("string"==typeof i?(a=i,i=0,R=this.length):"string"==typeof R&&(a=R,R=this.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("string"==typeof a&&!Z.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(1===o.length){var I=o.charCodeAt(0);("utf8"===a&&I<128||"latin1"===a)&&(o=I)}}else"number"==typeof o&&(o&=255);if(i<0||this.length<i||this.length<R)throw new RangeError("Out of range index");if(R<=i)return this;var e;if(i>>>=0,R=void 0===R?this.length:R>>>0,"number"==typeof(o=o||0))for(e=i;e<R;++e)this[e]=o;else{var k=Z.isBuffer(o)?o:Z.from(o,a),t=k.length;if(0===t)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(e=0;e<R-i;++e)this[e+i]=k[e%t]}return this};var i=/[^+/0-9A-Za-z-_]/g;function f(o){return o<16?"0"+o.toString(16):o.toString(16)}function j(o,i){var R;i=i||1/0;for(var a=o.length,I=null,e=[],k=0;k<a;++k){if(55295<(R=o.charCodeAt(k))&&R<57344){if(!I){if(56319<R){-1<(i-=3)&&e.push(239,191,189);continue}if(k+1===a){-1<(i-=3)&&e.push(239,191,189);continue}I=R;continue}if(R<56320){-1<(i-=3)&&e.push(239,191,189),I=R;continue}R=65536+(I-55296<<10|R-56320)}else I&&-1<(i-=3)&&e.push(239,191,189);if(I=null,R<128){if((i-=1)<0)break;e.push(R)}else if(R<2048){if((i-=2)<0)break;e.push(R>>6|192,63&R|128)}else if(R<65536){if((i-=3)<0)break;e.push(R>>12|224,R>>6&63|128,63&R|128)}else{if(!(R<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;e.push(R>>18|240,R>>12&63|128,R>>6&63|128,63&R|128)}}return e}function q(o){return a.toByteArray(function(o){if((o=(o=o.split("=")[0]).trim().replace(i,"")).length<2)return"";for(;o.length%4!=0;)o+="=";return o}(o))}function T(o,i,R,a){for(var I=0;I<a&&!(I+R>=i.length||I>=o.length);++I)i[I+R]=o[I];return I}function g(o,i){return o instanceof i||null!=o&&null!=o.constructor&&null!=o.constructor.name&&o.constructor.name===i.name}function J(o){return o!=o}}).call(this,o("buffer").Buffer)},{"base64-js":1,buffer:2,ieee754:3}],3:[function(o,i,R){R.read=function(o,i,R,a,I){var e,k,t=8*I-a-1,h=(1<<t)-1,Q=h>>1,u=-7,Z=R?I-1:0,n=R?-1:1,c=o[i+Z];for(Z+=n,e=c&(1<<-u)-1,c>>=-u,u+=t;0<u;e=256*e+o[i+Z],Z+=n,u-=8);for(k=e&(1<<-u)-1,e>>=-u,u+=a;0<u;k=256*k+o[i+Z],Z+=n,u-=8);if(0===e)e=1-Q;else{if(e===h)return k?NaN:1/0*(c?-1:1);k+=Math.pow(2,a),e-=Q}return(c?-1:1)*k*Math.pow(2,e-a)},R.write=function(o,i,R,a,I,e){var k,t,h,Q=8*e-I-1,u=(1<<Q)-1,Z=u>>1,n=23===I?Math.pow(2,-24)-Math.pow(2,-77):0,c=a?0:e-1,U=a?1:-1,E=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(t=isNaN(i)?1:0,k=u):(k=Math.floor(Math.log(i)/Math.LN2),i*(h=Math.pow(2,-k))<1&&(k--,h*=2),2<=(i+=1<=k+Z?n/h:n*Math.pow(2,1-Z))*h&&(k++,h/=2),u<=k+Z?(t=0,k=u):1<=k+Z?(t=(i*h-1)*Math.pow(2,I),k+=Z):(t=i*Math.pow(2,Z-1)*Math.pow(2,I),k=0));8<=I;o[R+c]=255&t,c+=U,t/=256,I-=8);for(k=k<<I|t,Q+=I;0<Q;o[R+c]=255&k,c+=U,k/=256,Q-=8);o[R+c-U]|=128*E}},{}],4:[function(o,i,R){"use strict";var a={};(0,o("./lib/utils/common").assign)(a,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),i.exports=a},{"./lib/deflate":5,"./lib/inflate":6,"./lib/utils/common":7,"./lib/zlib/constants":10}],5:[function(o,i,R){"use strict";var k=o("./zlib/deflate"),t=o("./utils/common"),h=o("./utils/strings"),I=o("./zlib/messages"),e=o("./zlib/zstream"),Q=Object.prototype.toString,u=0,Z=-1,n=0,c=8;function U(o){if(!(this instanceof U))return new U(o);this.options=t.assign({level:Z,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:n,to:""},o||{});var i=this.options;i.raw&&0<i.windowBits?i.windowBits=-i.windowBits:i.gzip&&0<i.windowBits&&i.windowBits<16&&(i.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e,this.strm.avail_out=0;var R=k.deflateInit2(this.strm,i.level,i.method,i.windowBits,i.memLevel,i.strategy);if(R!==u)throw new Error(I[R]);if(i.header&&k.deflateSetHeader(this.strm,i.header),i.dictionary){var a;if(a="string"==typeof i.dictionary?h.string2buf(i.dictionary):"[object ArrayBuffer]"===Q.call(i.dictionary)?new Uint8Array(i.dictionary):i.dictionary,(R=k.deflateSetDictionary(this.strm,a))!==u)throw new Error(I[R]);this._dict_set=!0}}function a(o,i){var R=new U(i);if(R.push(o,!0),R.err)throw R.msg||I[R.err];return R.result}U.prototype.push=function(o,i){var R,a,I=this.strm,e=this.options.chunkSize;if(this.ended)return!1;a=i===~~i?i:!0===i?4:0,"string"==typeof o?I.input=h.string2buf(o):"[object ArrayBuffer]"===Q.call(o)?I.input=new Uint8Array(o):I.input=o,I.next_in=0,I.avail_in=I.input.length;do{if(0===I.avail_out&&(I.output=new t.Buf8(e),I.next_out=0,I.avail_out=e),1!==(R=k.deflate(I,a))&&R!==u)return this.onEnd(R),!(this.ended=!0);0!==I.avail_out&&(0!==I.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(h.buf2binstring(t.shrinkBuf(I.output,I.next_out))):this.onData(t.shrinkBuf(I.output,I.next_out)))}while((0<I.avail_in||0===I.avail_out)&&1!==R);return 4===a?(R=k.deflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===u):2!==a||(this.onEnd(u),!(I.avail_out=0))},U.prototype.onData=function(o){this.chunks.push(o)},U.prototype.onEnd=function(o){o===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=o,this.msg=this.strm.msg},R.Deflate=U,R.deflate=a,R.deflateRaw=function(o,i){return(i=i||{}).raw=!0,a(o,i)},R.gzip=function(o,i){return(i=i||{}).gzip=!0,a(o,i)}},{"./utils/common":7,"./utils/strings":8,"./zlib/deflate":12,"./zlib/messages":17,"./zlib/zstream":19}],6:[function(o,i,R){"use strict";var Z=o("./zlib/inflate"),n=o("./utils/common"),c=o("./utils/strings"),U=o("./zlib/constants"),a=o("./zlib/messages"),I=o("./zlib/zstream"),e=o("./zlib/gzheader"),E=Object.prototype.toString;function k(o){if(!(this instanceof k))return new k(o);this.options=n.assign({chunkSize:16384,windowBits:0,to:""},o||{});var i=this.options;i.raw&&0<=i.windowBits&&i.windowBits<16&&(i.windowBits=-i.windowBits,0===i.windowBits&&(i.windowBits=-15)),!(0<=i.windowBits&&i.windowBits<16)||o&&o.windowBits||(i.windowBits+=32),15<i.windowBits&&i.windowBits<48&&0==(15&i.windowBits)&&(i.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new I,this.strm.avail_out=0;var R=Z.inflateInit2(this.strm,i.windowBits);if(R!==U.Z_OK)throw new Error(a[R]);if(this.header=new e,Z.inflateGetHeader(this.strm,this.header),i.dictionary&&("string"==typeof i.dictionary?i.dictionary=c.string2buf(i.dictionary):"[object ArrayBuffer]"===E.call(i.dictionary)&&(i.dictionary=new Uint8Array(i.dictionary)),i.raw&&(R=Z.inflateSetDictionary(this.strm,i.dictionary))!==U.Z_OK))throw new Error(a[R])}function t(o,i){var R=new k(i);if(R.push(o,!0),R.err)throw R.msg||a[R.err];return R.result}k.prototype.push=function(o,i){var R,a,I,e,k,t=this.strm,h=this.options.chunkSize,Q=this.options.dictionary,u=!1;if(this.ended)return!1;a=i===~~i?i:!0===i?U.Z_FINISH:U.Z_NO_FLUSH,"string"==typeof o?t.input=c.binstring2buf(o):"[object ArrayBuffer]"===E.call(o)?t.input=new Uint8Array(o):t.input=o,t.next_in=0,t.avail_in=t.input.length;do{if(0===t.avail_out&&(t.output=new n.Buf8(h),t.next_out=0,t.avail_out=h),(R=Z.inflate(t,U.Z_NO_FLUSH))===U.Z_NEED_DICT&&Q&&(R=Z.inflateSetDictionary(this.strm,Q)),R===U.Z_BUF_ERROR&&!0===u&&(R=U.Z_OK,u=!1),R!==U.Z_STREAM_END&&R!==U.Z_OK)return this.onEnd(R),!(this.ended=!0);t.next_out&&(0!==t.avail_out&&R!==U.Z_STREAM_END&&(0!==t.avail_in||a!==U.Z_FINISH&&a!==U.Z_SYNC_FLUSH)||("string"===this.options.to?(I=c.utf8border(t.output,t.next_out),e=t.next_out-I,k=c.buf2string(t.output,I),t.next_out=e,t.avail_out=h-e,e&&n.arraySet(t.output,t.output,I,e,0),this.onData(k)):this.onData(n.shrinkBuf(t.output,t.next_out)))),0===t.avail_in&&0===t.avail_out&&(u=!0)}while((0<t.avail_in||0===t.avail_out)&&R!==U.Z_STREAM_END);return R===U.Z_STREAM_END&&(a=U.Z_FINISH),a===U.Z_FINISH?(R=Z.inflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===U.Z_OK):a!==U.Z_SYNC_FLUSH||(this.onEnd(U.Z_OK),!(t.avail_out=0))},k.prototype.onData=function(o){this.chunks.push(o)},k.prototype.onEnd=function(o){o===U.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=o,this.msg=this.strm.msg},R.Inflate=k,R.inflate=t,R.inflateRaw=function(o,i){return(i=i||{}).raw=!0,t(o,i)},R.ungzip=t},{"./utils/common":7,"./utils/strings":8,"./zlib/constants":10,"./zlib/gzheader":13,"./zlib/inflate":15,"./zlib/messages":17,"./zlib/zstream":19}],7:[function(o,i,R){"use strict";var a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;R.assign=function(o){for(var i,R,a=Array.prototype.slice.call(arguments,1);a.length;){var I=a.shift();if(I){if("object"!=typeof I)throw new TypeError(I+"must be non-object");for(var e in I)i=I,R=e,Object.prototype.hasOwnProperty.call(i,R)&&(o[e]=I[e])}}return o},R.shrinkBuf=function(o,i){return o.length===i?o:o.subarray?o.subarray(0,i):(o.length=i,o)};var I={arraySet:function(o,i,R,a,I){if(i.subarray&&o.subarray)o.set(i.subarray(R,R+a),I);else for(var e=0;e<a;e++)o[I+e]=i[R+e]},flattenChunks:function(o){var i,R,a,I,e,k;for(i=a=0,R=o.length;i<R;i++)a+=o[i].length;for(k=new Uint8Array(a),i=I=0,R=o.length;i<R;i++)e=o[i],k.set(e,I),I+=e.length;return k}},e={arraySet:function(o,i,R,a,I){for(var e=0;e<a;e++)o[I+e]=i[R+e]},flattenChunks:function(o){return[].concat.apply([],o)}};R.setTyped=function(o){o?(R.Buf8=Uint8Array,R.Buf16=Uint16Array,R.Buf32=Int32Array,R.assign(R,I)):(R.Buf8=Array,R.Buf16=Array,R.Buf32=Array,R.assign(R,e))},R.setTyped(a)},{}],8:[function(o,i,R){"use strict";var h=o("./common"),I=!0,e=!0;try{String.fromCharCode.apply(null,[0])}catch(o){I=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(o){e=!1}for(var Q=new h.Buf8(256),a=0;a<256;a++)Q[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function u(o,i){if(i<65534&&(o.subarray&&e||!o.subarray&&I))return String.fromCharCode.apply(null,h.shrinkBuf(o,i));for(var R="",a=0;a<i;a++)R+=String.fromCharCode(o[a]);return R}Q[254]=Q[254]=1,R.string2buf=function(o){var i,R,a,I,e,k=o.length,t=0;for(I=0;I<k;I++)55296==(64512&(R=o.charCodeAt(I)))&&I+1<k&&56320==(64512&(a=o.charCodeAt(I+1)))&&(R=65536+(R-55296<<10)+(a-56320),I++),t+=R<128?1:R<2048?2:R<65536?3:4;for(i=new h.Buf8(t),I=e=0;e<t;I++)55296==(64512&(R=o.charCodeAt(I)))&&I+1<k&&56320==(64512&(a=o.charCodeAt(I+1)))&&(R=65536+(R-55296<<10)+(a-56320),I++),R<128?i[e++]=R:(R<2048?i[e++]=192|R>>>6:(R<65536?i[e++]=224|R>>>12:(i[e++]=240|R>>>18,i[e++]=128|R>>>12&63),i[e++]=128|R>>>6&63),i[e++]=128|63&R);return i},R.buf2binstring=function(o){return u(o,o.length)},R.binstring2buf=function(o){for(var i=new h.Buf8(o.length),R=0,a=i.length;R<a;R++)i[R]=o.charCodeAt(R);return i},R.buf2string=function(o,i){var R,a,I,e,k=i||o.length,t=new Array(2*k);for(R=a=0;R<k;)if((I=o[R++])<128)t[a++]=I;else if(4<(e=Q[I]))t[a++]=65533,R+=e-1;else{for(I&=2===e?31:3===e?15:7;1<e&&R<k;)I=I<<6|63&o[R++],e--;1<e?t[a++]=65533:I<65536?t[a++]=I:(I-=65536,t[a++]=55296|I>>10&1023,t[a++]=56320|1023&I)}return u(t,a)},R.utf8border=function(o,i){var R;for((i=i||o.length)>o.length&&(i=o.length),R=i-1;0<=R&&128==(192&o[R]);)R--;return R<0?i:0===R?i:R+Q[o[R]]>i?R:i}},{"./common":7}],9:[function(o,i,R){"use strict";i.exports=function(o,i,R,a){for(var I=65535&o|0,e=o>>>16&65535|0,k=0;0!==R;){for(R-=k=2e3<R?2e3:R;e=e+(I=I+i[a++]|0)|0,--k;);I%=65521,e%=65521}return I|e<<16|0}},{}],10:[function(o,i,R){"use strict";i.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}},{}],11:[function(o,i,R){"use strict";var t=function(){for(var o,i=[],R=0;R<256;R++){o=R;for(var a=0;a<8;a++)o=1&o?3988292384^o>>>1:o>>>1;i[R]=o}return i}();i.exports=function(o,i,R,a){var I=t,e=a+R;o^=-1;for(var k=a;k<e;k++)o=o>>>8^I[255&(o^i[k])];return-1^o}},{}],12:[function(o,i,R){"use strict";var h,n=o("../utils/common"),Q=o("./trees"),c=o("./adler32"),U=o("./crc32"),a=o("./messages"),u=0,Z=4,E=0,y=-2,H=-1,O=4,I=2,l=8,m=9,e=286,k=30,t=19,K=2*e+1,S=15,F=3,r=258,d=r+F+1,p=42,s=113,N=1,M=2,f=3,j=4;function q(o,i){return o.msg=a[i],i}function T(o){return(o<<1)-(4<o?9:0)}function g(o){for(var i=o.length;0<=--i;)o[i]=0}function J(o){var i=o.state,R=i.pending;R>o.avail_out&&(R=o.avail_out),0!==R&&(n.arraySet(o.output,i.pending_buf,i.pending_out,R,o.next_out),o.next_out+=R,i.pending_out+=R,o.total_out+=R,o.avail_out-=R,i.pending-=R,0===i.pending&&(i.pending_out=0))}function W(o,i){Q._tr_flush_block(o,0<=o.block_start?o.block_start:-1,o.strstart-o.block_start,i),o.block_start=o.strstart,J(o.strm)}function D(o,i){o.pending_buf[o.pending++]=i}function L(o,i){o.pending_buf[o.pending++]=i>>>8&255,o.pending_buf[o.pending++]=255&i}function B(o,i){var R,a,I=o.max_chain_length,e=o.strstart,k=o.prev_length,t=o.nice_match,h=o.strstart>o.w_size-d?o.strstart-(o.w_size-d):0,Q=o.window,u=o.w_mask,Z=o.prev,n=o.strstart+r,c=Q[e+k-1],U=Q[e+k];o.prev_length>=o.good_match&&(I>>=2),t>o.lookahead&&(t=o.lookahead);do{if(Q[(R=i)+k]===U&&Q[R+k-1]===c&&Q[R]===Q[e]&&Q[++R]===Q[e+1]){e+=2,R++;do{}while(Q[++e]===Q[++R]&&Q[++e]===Q[++R]&&Q[++e]===Q[++R]&&Q[++e]===Q[++R]&&Q[++e]===Q[++R]&&Q[++e]===Q[++R]&&Q[++e]===Q[++R]&&Q[++e]===Q[++R]&&e<n);if(a=r-(n-e),e=n-r,k<a){if(o.match_start=i,t<=(k=a))break;c=Q[e+k-1],U=Q[e+k]}}}while((i=Z[i&u])>h&&0!=--I);return k<=o.lookahead?k:o.lookahead}function z(o){var i,R,a,I,e,k,t,h,Q,u,Z=o.w_size;do{if(I=o.window_size-o.lookahead-o.strstart,o.strstart>=Z+(Z-d)){for(n.arraySet(o.window,o.window,Z,Z,0),o.match_start-=Z,o.strstart-=Z,o.block_start-=Z,i=R=o.hash_size;a=o.head[--i],o.head[i]=Z<=a?a-Z:0,--R;);for(i=R=Z;a=o.prev[--i],o.prev[i]=Z<=a?a-Z:0,--R;);I+=Z}if(0===o.strm.avail_in)break;if(k=o.strm,t=o.window,h=o.strstart+o.lookahead,Q=I,u=void 0,u=k.avail_in,Q<u&&(u=Q),R=0===u?0:(k.avail_in-=u,n.arraySet(t,k.input,k.next_in,u,h),1===k.state.wrap?k.adler=c(k.adler,t,u,h):2===k.state.wrap&&(k.adler=U(k.adler,t,u,h)),k.next_in+=u,k.total_in+=u,u),o.lookahead+=R,o.lookahead+o.insert>=F)for(e=o.strstart-o.insert,o.ins_h=o.window[e],o.ins_h=(o.ins_h<<o.hash_shift^o.window[e+1])&o.hash_mask;o.insert&&(o.ins_h=(o.ins_h<<o.hash_shift^o.window[e+F-1])&o.hash_mask,o.prev[e&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=e,e++,o.insert--,!(o.lookahead+o.insert<F)););}while(o.lookahead<d&&0!==o.strm.avail_in)}function V(o,i){for(var R,a;;){if(o.lookahead<d){if(z(o),o.lookahead<d&&i===u)return N;if(0===o.lookahead)break}if(R=0,o.lookahead>=F&&(o.ins_h=(o.ins_h<<o.hash_shift^o.window[o.strstart+F-1])&o.hash_mask,R=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart),0!==R&&o.strstart-R<=o.w_size-d&&(o.match_length=B(o,R)),o.match_length>=F)if(a=Q._tr_tally(o,o.strstart-o.match_start,o.match_length-F),o.lookahead-=o.match_length,o.match_length<=o.max_lazy_match&&o.lookahead>=F){for(o.match_length--;o.strstart++,o.ins_h=(o.ins_h<<o.hash_shift^o.window[o.strstart+F-1])&o.hash_mask,R=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart,0!=--o.match_length;);o.strstart++}else o.strstart+=o.match_length,o.match_length=0,o.ins_h=o.window[o.strstart],o.ins_h=(o.ins_h<<o.hash_shift^o.window[o.strstart+1])&o.hash_mask;else a=Q._tr_tally(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++;if(a&&(W(o,!1),0===o.strm.avail_out))return N}return o.insert=o.strstart<F-1?o.strstart:F-1,i===Z?(W(o,!0),0===o.strm.avail_out?f:j):o.last_lit&&(W(o,!1),0===o.strm.avail_out)?N:M}function C(o,i){for(var R,a,I;;){if(o.lookahead<d){if(z(o),o.lookahead<d&&i===u)return N;if(0===o.lookahead)break}if(R=0,o.lookahead>=F&&(o.ins_h=(o.ins_h<<o.hash_shift^o.window[o.strstart+F-1])&o.hash_mask,R=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart),o.prev_length=o.match_length,o.prev_match=o.match_start,o.match_length=F-1,0!==R&&o.prev_length<o.max_lazy_match&&o.strstart-R<=o.w_size-d&&(o.match_length=B(o,R),o.match_length<=5&&(1===o.strategy||o.match_length===F&&4096<o.strstart-o.match_start)&&(o.match_length=F-1)),o.prev_length>=F&&o.match_length<=o.prev_length){for(I=o.strstart+o.lookahead-F,a=Q._tr_tally(o,o.strstart-1-o.prev_match,o.prev_length-F),o.lookahead-=o.prev_length-1,o.prev_length-=2;++o.strstart<=I&&(o.ins_h=(o.ins_h<<o.hash_shift^o.window[o.strstart+F-1])&o.hash_mask,R=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart),0!=--o.prev_length;);if(o.match_available=0,o.match_length=F-1,o.strstart++,a&&(W(o,!1),0===o.strm.avail_out))return N}else if(o.match_available){if((a=Q._tr_tally(o,0,o.window[o.strstart-1]))&&W(o,!1),o.strstart++,o.lookahead--,0===o.strm.avail_out)return N}else o.match_available=1,o.strstart++,o.lookahead--}return o.match_available&&(a=Q._tr_tally(o,0,o.window[o.strstart-1]),o.match_available=0),o.insert=o.strstart<F-1?o.strstart:F-1,i===Z?(W(o,!0),0===o.strm.avail_out?f:j):o.last_lit&&(W(o,!1),0===o.strm.avail_out)?N:M}function A(o,i,R,a,I){this.good_length=o,this.max_lazy=i,this.nice_length=R,this.max_chain=a,this.func=I}function G(){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=l,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*K),this.dyn_dtree=new n.Buf16(2*(2*k+1)),this.bl_tree=new n.Buf16(2*(2*t+1)),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(S+1),this.heap=new n.Buf16(2*e+1),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(2*e+1),g(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 v(o){var i;return o&&o.state?(o.total_in=o.total_out=0,o.data_type=I,(i=o.state).pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap?p:s,o.adler=2===i.wrap?0:1,i.last_flush=u,Q._tr_init(i),E):q(o,y)}function x(o){var i=v(o);return i===E&&function(o){o.window_size=2*o.w_size,g(o.head),o.max_lazy_match=h[o.level].max_lazy,o.good_match=h[o.level].good_length,o.nice_match=h[o.level].nice_length,o.max_chain_length=h[o.level].max_chain,o.strstart=0,o.block_start=0,o.lookahead=0,o.insert=0,o.match_length=o.prev_length=F-1,o.match_available=0,o.ins_h=0}(o.state),i}function P(o,i,R,a,I,e){if(!o)return y;var k=1;if(i===H&&(i=6),a<0?(k=0,a=-a):15<a&&(k=2,a-=16),I<1||m<I||R!==l||a<8||15<a||i<0||9<i||e<0||O<e)return q(o,y);8===a&&(a=9);var t=new G;return(o.state=t).strm=o,t.wrap=k,t.gzhead=null,t.w_bits=a,t.w_size=1<<t.w_bits,t.w_mask=t.w_size-1,t.hash_bits=I+7,t.hash_size=1<<t.hash_bits,t.hash_mask=t.hash_size-1,t.hash_shift=~~((t.hash_bits+F-1)/F),t.window=new n.Buf8(2*t.w_size),t.head=new n.Buf16(t.hash_size),t.prev=new n.Buf16(t.w_size),t.lit_bufsize=1<<I+6,t.pending_buf_size=4*t.lit_bufsize,t.pending_buf=new n.Buf8(t.pending_buf_size),t.d_buf=1*t.lit_bufsize,t.l_buf=3*t.lit_bufsize,t.level=i,t.strategy=e,t.method=R,x(o)}h=[new A(0,0,0,0,function(o,i){var R=65535;for(R>o.pending_buf_size-5&&(R=o.pending_buf_size-5);;){if(o.lookahead<=1){if(z(o),0===o.lookahead&&i===u)return N;if(0===o.lookahead)break}o.strstart+=o.lookahead,o.lookahead=0;var a=o.block_start+R;if((0===o.strstart||o.strstart>=a)&&(o.lookahead=o.strstart-a,o.strstart=a,W(o,!1),0===o.strm.avail_out))return N;if(o.strstart-o.block_start>=o.w_size-d&&(W(o,!1),0===o.strm.avail_out))return N}return o.insert=0,i===Z?(W(o,!0),0===o.strm.avail_out?f:j):(o.strstart>o.block_start&&(W(o,!1),o.strm.avail_out),N)}),new A(4,4,8,4,V),new A(4,5,16,8,V),new A(4,6,32,32,V),new A(4,4,16,16,C),new A(8,16,32,32,C),new A(8,16,128,128,C),new A(8,32,128,256,C),new A(32,128,258,1024,C),new A(32,258,258,4096,C)],R.deflateInit=function(o,i){return P(o,i,l,15,8,0)},R.deflateInit2=P,R.deflateReset=x,R.deflateResetKeep=v,R.deflateSetHeader=function(o,i){return o&&o.state?2!==o.state.wrap?y:(o.state.gzhead=i,E):y},R.deflate=function(o,i){var R,a,I,e;if(!o||!o.state||5<i||i<0)return o?q(o,y):y;if(a=o.state,!o.output||!o.input&&0!==o.avail_in||666===a.status&&i!==Z)return q(o,0===o.avail_out?-5:y);if(a.strm=o,R=a.last_flush,a.last_flush=i,a.status===p)if(2===a.wrap)o.adler=0,D(a,31),D(a,139),D(a,8),a.gzhead?(D(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),D(a,255&a.gzhead.time),D(a,a.gzhead.time>>8&255),D(a,a.gzhead.time>>16&255),D(a,a.gzhead.time>>24&255),D(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),D(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(D(a,255&a.gzhead.extra.length),D(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(o.adler=U(o.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(D(a,0),D(a,0),D(a,0),D(a,0),D(a,0),D(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),D(a,3),a.status=s);else{var k=l+(a.w_bits-8<<4)<<8;k|=(2<=a.strategy||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(k|=32),k+=31-k%31,a.status=s,L(a,k),0!==a.strstart&&(L(a,o.adler>>>16),L(a,65535&o.adler)),o.adler=1}if(69===a.status)if(a.gzhead.extra){for(I=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>I&&(o.adler=U(o.adler,a.pending_buf,a.pending-I,I)),J(o),I=a.pending,a.pending!==a.pending_buf_size));)D(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>I&&(o.adler=U(o.adler,a.pending_buf,a.pending-I,I)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(73===a.status)if(a.gzhead.name){I=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>I&&(o.adler=U(o.adler,a.pending_buf,a.pending-I,I)),J(o),I=a.pending,a.pending===a.pending_buf_size)){e=1;break}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,D(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>I&&(o.adler=U(o.adler,a.pending_buf,a.pending-I,I)),0===e&&(a.gzindex=0,a.status=91)}else a.status=91;if(91===a.status)if(a.gzhead.comment){I=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>I&&(o.adler=U(o.adler,a.pending_buf,a.pending-I,I)),J(o),I=a.pending,a.pending===a.pending_buf_size)){e=1;break}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,D(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>I&&(o.adler=U(o.adler,a.pending_buf,a.pending-I,I)),0===e&&(a.status=103)}else a.status=103;if(103===a.status&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&J(o),a.pending+2<=a.pending_buf_size&&(D(a,255&o.adler),D(a,o.adler>>8&255),o.adler=0,a.status=s)):a.status=s),0!==a.pending){if(J(o),0===o.avail_out)return a.last_flush=-1,E}else if(0===o.avail_in&&T(i)<=T(R)&&i!==Z)return q(o,-5);if(666===a.status&&0!==o.avail_in)return q(o,-5);if(0!==o.avail_in||0!==a.lookahead||i!==u&&666!==a.status){var t=2===a.strategy?function(o,i){for(var R;;){if(0===o.lookahead&&(z(o),0===o.lookahead)){if(i===u)return N;break}if(o.match_length=0,R=Q._tr_tally(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++,R&&(W(o,!1),0===o.strm.avail_out))return N}return o.insert=0,i===Z?(W(o,!0),0===o.strm.avail_out?f:j):o.last_lit&&(W(o,!1),0===o.strm.avail_out)?N:M}(a,i):3===a.strategy?function(o,i){for(var R,a,I,e,k=o.window;;){if(o.lookahead<=r){if(z(o),o.lookahead<=r&&i===u)return N;if(0===o.lookahead)break}if(o.match_length=0,o.lookahead>=F&&0<o.strstart&&(a=k[I=o.strstart-1])===k[++I]&&a===k[++I]&&a===k[++I]){e=o.strstart+r;do{}while(a===k[++I]&&a===k[++I]&&a===k[++I]&&a===k[++I]&&a===k[++I]&&a===k[++I]&&a===k[++I]&&a===k[++I]&&I<e);o.match_length=r-(e-I),o.match_length>o.lookahead&&(o.match_length=o.lookahead)}if(o.match_length>=F?(R=Q._tr_tally(o,1,o.match_length-F),o.lookahead-=o.match_length,o.strstart+=o.match_length,o.match_length=0):(R=Q._tr_tally(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++),R&&(W(o,!1),0===o.strm.avail_out))return N}return o.insert=0,i===Z?(W(o,!0),0===o.strm.avail_out?f:j):o.last_lit&&(W(o,!1),0===o.strm.avail_out)?N:M}(a,i):h[a.level].func(a,i);if(t!==f&&t!==j||(a.status=666),t===N||t===f)return 0===o.avail_out&&(a.last_flush=-1),E;if(t===M&&(1===i?Q._tr_align(a):5!==i&&(Q._tr_stored_block(a,0,0,!1),3===i&&(g(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),J(o),0===o.avail_out))return a.last_flush=-1,E}return i!==Z?E:a.wrap<=0?1:(2===a.wrap?(D(a,255&o.adler),D(a,o.adler>>8&255),D(a,o.adler>>16&255),D(a,o.adler>>24&255),D(a,255&o.total_in),D(a,o.total_in>>8&255),D(a,o.total_in>>16&255),D(a,o.total_in>>24&255)):(L(a,o.adler>>>16),L(a,65535&o.adler)),J(o),0<a.wrap&&(a.wrap=-a.wrap),0!==a.pending?E:1)},R.deflateEnd=function(o){var i;return o&&o.state?(i=o.state.status)!==p&&69!==i&&73!==i&&91!==i&&103!==i&&i!==s&&666!==i?q(o,y):(o.state=null,i===s?q(o,-3):E):y},R.deflateSetDictionary=function(o,i){var R,a,I,e,k,t,h,Q,u=i.length;if(!o||!o.state)return y;if(2===(e=(R=o.state).wrap)||1===e&&R.status!==p||R.lookahead)return y;for(1===e&&(o.adler=c(o.adler,i,u,0)),R.wrap=0,u>=R.w_size&&(0===e&&(g(R.head),R.strstart=0,R.block_start=0,R.insert=0),Q=new n.Buf8(R.w_size),n.arraySet(Q,i,u-R.w_size,R.w_size,0),i=Q,u=R.w_size),k=o.avail_in,t=o.next_in,h=o.input,o.avail_in=u,o.next_in=0,o.input=i,z(R);R.lookahead>=F;){for(a=R.strstart,I=R.lookahead-(F-1);R.ins_h=(R.ins_h<<R.hash_shift^R.window[a+F-1])&R.hash_mask,R.prev[a&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=a,a++,--I;);R.strstart=a,R.lookahead=F-1,z(R)}return R.strstart+=R.lookahead,R.block_start=R.strstart,R.insert=R.lookahead,R.lookahead=0,R.match_length=R.prev_length=F-1,R.match_available=0,o.next_in=t,o.input=h,o.avail_in=k,R.wrap=e,E},R.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":7,"./adler32":9,"./crc32":11,"./messages":17,"./trees":18}],13:[function(o,i,R){"use strict";i.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=!1}},{}],14:[function(o,i,R){"use strict";i.exports=function(o,i){var R,a,I,e,k,t,h,Q,u,Z,n,c,U,E,y,H,O,l,m,K,S,F,r,d,p;R=o.state,a=o.next_in,d=o.input,I=a+(o.avail_in-5),e=o.next_out,p=o.output,k=e-(i-o.avail_out),t=e+(o.avail_out-257),h=R.dmax,Q=R.wsize,u=R.whave,Z=R.wnext,n=R.window,c=R.hold,U=R.bits,E=R.lencode,y=R.distcode,H=(1<<R.lenbits)-1,O=(1<<R.distbits)-1;o:do{U<15&&(c+=d[a++]<<U,U+=8,c+=d[a++]<<U,U+=8),l=E[c&H];i:for(;;){if(c>>>=m=l>>>24,U-=m,0===(m=l>>>16&255))p[e++]=65535&l;else{if(!(16&m)){if(0==(64&m)){l=E[(65535&l)+(c&(1<<m)-1)];continue i}if(32&m){R.mode=12;break o}o.msg="invalid literal/length code",R.mode=30;break o}K=65535&l,(m&=15)&&(U<m&&(c+=d[a++]<<U,U+=8),K+=c&(1<<m)-1,c>>>=m,U-=m),U<15&&(c+=d[a++]<<U,U+=8,c+=d[a++]<<U,U+=8),l=y[c&O];R:for(;;){if(c>>>=m=l>>>24,U-=m,!(16&(m=l>>>16&255))){if(0==(64&m)){l=y[(65535&l)+(c&(1<<m)-1)];continue R}o.msg="invalid distance code",R.mode=30;break o}if(S=65535&l,U<(m&=15)&&(c+=d[a++]<<U,(U+=8)<m&&(c+=d[a++]<<U,U+=8)),h<(S+=c&(1<<m)-1)){o.msg="invalid distance too far back",R.mode=30;break o}if(c>>>=m,U-=m,(m=e-k)<S){if(u<(m=S-m)&&R.sane){o.msg="invalid distance too far back",R.mode=30;break o}if(r=n,(F=0)===Z){if(F+=Q-m,m<K){for(K-=m;p[e++]=n[F++],--m;);F=e-S,r=p}}else if(Z<m){if(F+=Q+Z-m,(m-=Z)<K){for(K-=m;p[e++]=n[F++],--m;);if(F=0,Z<K){for(K-=m=Z;p[e++]=n[F++],--m;);F=e-S,r=p}}}else if(F+=Z-m,m<K){for(K-=m;p[e++]=n[F++],--m;);F=e-S,r=p}for(;2<K;)p[e++]=r[F++],p[e++]=r[F++],p[e++]=r[F++],K-=3;K&&(p[e++]=r[F++],1<K&&(p[e++]=r[F++]))}else{for(F=e-S;p[e++]=p[F++],p[e++]=p[F++],p[e++]=p[F++],2<(K-=3););K&&(p[e++]=p[F++],1<K&&(p[e++]=p[F++]))}break}}break}}while(a<I&&e<t);a-=K=U>>3,c&=(1<<(U-=K<<3))-1,o.next_in=a,o.next_out=e,o.avail_in=a<I?I-a+5:5-(a-I),o.avail_out=e<t?t-e+257:257-(e-t),R.hold=c,R.bits=U}},{}],15:[function(o,i,R){"use strict";var M=o("../utils/common"),f=o("./adler32"),j=o("./crc32"),q=o("./inffast"),T=o("./inftrees"),g=1,J=2,W=0,D=-2,L=1,a=852,I=592;function B(o){return(o>>>24&255)+(o>>>8&65280)+((65280&o)<<8)+((255&o)<<24)}function e(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new M.Buf16(320),this.work=new M.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function k(o){var i;return o&&o.state?(i=o.state,o.total_in=o.total_out=i.total=0,o.msg="",i.wrap&&(o.adler=1&i.wrap),i.mode=L,i.last=0,i.havedict=0,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new M.Buf32(a),i.distcode=i.distdyn=new M.Buf32(I),i.sane=1,i.back=-1,W):D}function t(o){var i;return o&&o.state?((i=o.state).wsize=0,i.whave=0,i.wnext=0,k(o)):D}function h(o,i){var R,a;return o&&o.state?(a=o.state,i<0?(R=0,i=-i):(R=1+(i>>4),i<48&&(i&=15)),i&&(i<8||15<i)?D:(null!==a.window&&a.wbits!==i&&(a.window=null),a.wrap=R,a.wbits=i,t(o))):D}function Q(o,i){var R,a;return o?(a=new e,(o.state=a).window=null,(R=h(o,i))!==W&&(o.state=null),R):D}var u,Z,n=!0;function z(o){if(n){var i;for(u=new M.Buf32(512),Z=new M.Buf32(32),i=0;i<144;)o.lens[i+