var AyahPublisherOptions = {"publisher_key":"YNMJrK4lsMAJlxSsJDb17LW8YmmHRLakZxkWagp6","AYAH_VERSION":"2.0","log_url":"//logger.areyouahuman.com/log?","iframe_url":"//n-cdn.areyouahuman.com/kitten","events_url":"//n-cdn-origin.areyouahuman.com/events","send_url":"//n-cdn.areyouahuman.com/observe?","cookiesync":true,"rthtsync":false,"enable_debug":false,"enable_debug_verbose":false,"min_observation_count":100,"max_real_time":300,"max_observation_length":1100}; (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o1)))/4)-U((e-1901+t)/100)+U((e-1601+t)/400)};if((g=b.hasOwnProperty)||(g=function(e){var t,r={};return(r.__proto__=null,r.__proto__={toString:1},r).toString!=v?g=function(e){var t=this.__proto__,r=e in(this.__proto__=null,this);return this.__proto__=t,r}:(t=r.constructor,g=function(e){var r=(this.constructor||t).prototype;return e in this&&!(e in r&&this[e]===r[e])}),r=null,g.call(this,e)}),y=function(e,t){var n,o,c,i=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,o=new n;for(c in o)g.call(o,c)&&i++;return n=o=null,i?y=2==i?function(e,t){var r,n={},o=v.call(e)==S;for(r in e)o&&"prototype"==r||g.call(n,r)||!(n[r]=1)||!g.call(e,r)||t(r)}:function(e,t){var r,n,o=v.call(e)==S;for(r in e)o&&"prototype"==r||!g.call(e,r)||(n="constructor"===r)||t(r);(n||g.call(e,r="constructor"))&&t(r)}:(o=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],y=function(e,t){var n,c,i=v.call(e)==S,a=!i&&"function"!=typeof e.constructor&&r[typeof e.hasOwnProperty]&&e.hasOwnProperty||g;for(n in e)i&&"prototype"==n||!a.call(e,n)||t(n);for(c=o.length;n=o[--c];a.call(e,n)&&t(n));}),y(e,t)},!c("json-stringify")){var m={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},M="000000",k=function(e,t){return(M+(t||0)).slice(-e)},D="\\u00",E=function(e){for(var t='"',r=0,n=e.length,o=!N||n>10,c=o&&(N?e.split(""):e);n>r;r++){var i=e.charCodeAt(r);switch(i){case 8:case 9:case 10:case 12:case 13:case 34:case 92:t+=m[i];break;default:if(32>i){t+=D+k(2,i.toString(16));break}t+=o?c[r]:e.charAt(r)}}return t+'"'},P=function(e,t,r,n,o,c,i){var a,l,f,s,h,p,b,C,j,S,N,J,m,M,D,Z;try{a=t[e]}catch(F){}if("object"==typeof a&&a)if(l=v.call(a),l!=O||g.call(a,"toJSON"))"function"==typeof a.toJSON&&(l!=w&&l!=T&&l!=A||g.call(a,"toJSON"))&&(a=a.toJSON(e));else if(a>-1/0&&1/0>a){if(x){for(h=U(a/864e5),f=U(h/365.2425)+1970-1;x(f+1,0)<=h;f++);for(s=U((h-x(f,0))/30.42);x(f,s+1)<=h;s++);h=1+h-x(f,s),p=(a%864e5+864e5)%864e5,b=U(p/36e5)%24,C=U(p/6e4)%60,j=U(p/1e3)%60,S=p%1e3}else f=a.getUTCFullYear(),s=a.getUTCMonth(),h=a.getUTCDate(),b=a.getUTCHours(),C=a.getUTCMinutes(),j=a.getUTCSeconds(),S=a.getUTCMilliseconds();a=(0>=f||f>=1e4?(0>f?"-":"+")+k(6,0>f?-f:f):k(4,f))+"-"+k(2,s+1)+"-"+k(2,h)+"T"+k(2,b)+":"+k(2,C)+":"+k(2,j)+"."+k(3,S)+"Z"}else a=null;if(r&&(a=r.call(t,e,a)),null===a)return"null";if(l=v.call(a),l==_)return""+a;if(l==w)return a>-1/0&&1/0>a?""+a:"null";if(l==T)return E(""+a);if("object"==typeof a){for(M=i.length;M--;)if(i[M]===a)throw u();if(i.push(a),N=[],D=c,c+=o,l==A){for(m=0,M=a.length;M>m;m++)J=P(m,a,r,n,o,c,i),N.push(J===d?"null":J);Z=N.length?o?"[\n"+c+N.join(",\n"+c)+"\n"+D+"]":"["+N.join(",")+"]":"[]"}else y(n||a,function(e){var t=P(e,a,r,n,o,c,i);t!==d&&N.push(E(e)+":"+(o?" ":"")+t)}),Z=N.length?o?"{\n"+c+N.join(",\n"+c)+"\n"+D+"}":"{"+N.join(",")+"}":"{}";return i.pop(),Z}};n.stringify=function(e,t,n){var o,c,i,a;if(r[typeof t]&&t)if((a=v.call(t))==S)c=t;else if(a==A){i={};for(var l,f=0,s=t.length;s>f;l=t[f++],a=v.call(l),(a==T||a==w)&&(i[l]=1));}if(n)if((a=v.call(n))==w){if((n-=n%1)>0)for(o="",n>10&&(n=10);o.lengthZ;)switch(o=c.charCodeAt(Z)){case 9:case 10:case 13:case 32:Z++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=N?c.charAt(Z):c[Z],Z++,e;case 34:for(e="@",Z++;i>Z;)if(o=c.charCodeAt(Z),32>o)I();else if(92==o)switch(o=c.charCodeAt(++Z)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=H[o],Z++;break;case 117:for(t=++Z,r=Z+4;r>Z;Z++)o=c.charCodeAt(Z),o>=48&&57>=o||o>=97&&102>=o||o>=65&&70>=o||I();e+=$("0x"+c.slice(t,Z));break;default:I()}else{if(34==o)break;for(o=c.charCodeAt(Z),t=Z;o>=32&&92!=o&&34!=o;)o=c.charCodeAt(++Z);e+=c.slice(t,Z)}if(34==c.charCodeAt(Z))return Z++,e;I();default:if(t=Z,45==o&&(n=!0,o=c.charCodeAt(++Z)),o>=48&&57>=o){for(48==o&&(o=c.charCodeAt(Z+1),o>=48&&57>=o)&&I(),n=!1;i>Z&&(o=c.charCodeAt(Z),o>=48&&57>=o);Z++);if(46==c.charCodeAt(Z)){for(r=++Z;i>r&&(o=c.charCodeAt(r),o>=48&&57>=o);r++);r==Z&&I(),Z=r}if(o=c.charCodeAt(Z),101==o||69==o){for(o=c.charCodeAt(++Z),43!=o&&45!=o||Z++,r=Z;i>r&&(o=c.charCodeAt(r),o>=48&&57>=o);r++);r==Z&&I(),Z=r}return+c.slice(t,Z)}if(n&&I(),"true"==c.slice(Z,Z+4))return Z+=4,!0;if("false"==c.slice(Z,Z+5))return Z+=5,!1;if("null"==c.slice(Z,Z+4))return Z+=4,null;I()}return"$"},B=function(e){var t,r;if("$"==e&&I(),"string"==typeof e){if("@"==(N?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];e=Y(),"]"!=e;r||(r=!0))r&&(","==e?(e=Y(),"]"==e&&I()):I()),","==e&&I(),t.push(B(e));return t}if("{"==e){for(t={};e=Y(),"}"!=e;r||(r=!0))r&&(","==e?(e=Y(),"}"==e&&I()):I()),","!=e&&"string"==typeof e&&"@"==(N?e.charAt(0):e[0])&&":"==Y()||I(),t[e.slice(1)]=B(Y());return t}I()}return e},L=function(e,t,r){var n=q(e,t,r);n===d?delete e[t]:e[t]=n},q=function(e,t,r){var n,o=e[t];if("object"==typeof o&&o)if(v.call(o)==A)for(n=o.length;n--;)L(o,n,r);else y(o,function(e){L(o,e,r)});return r.call(e,t,o)};n.parse=function(e,t){var r,n;return Z=0,F=""+e,r=B(Y()),"$"!=Y()&&I(),Z=F=null,t&&v.call(t)==S?q((n={},n[""]=r,n),"",t):r}}}return n.runInContext=e,n}var t="function"==typeof define&&define.amd,r={"function":!0,object:!0},n=r[typeof exports]&&exports&&!exports.nodeType&&exports,o=r[typeof window]&&window||this,c=n&&r[typeof module]&&module&&!module.nodeType&&"object"==typeof global&&global;if(!c||c.global!==c&&c.window!==c&&c.self!==c||(o=c),n&&!t)e(o,n);else{var i=o.JSON,a=o.JSON3,l=!1,f=e(o,o.JSON3={noConflict:function(){return l||(l=!0,o.JSON=i,o.JSON3=a,i=a=null),f}});o.JSON={parse:f.parse,stringify:f.stringify}}t&&define(function(){return f})}).call(this); }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}],2:[function(require,module,exports){ "use strict";var assign=require("./lib/utils/common").assign,deflate=require("./lib/deflate"),inflate=require("./lib/inflate"),constants=require("./lib/zlib/constants"),pako={};assign(pako,deflate,inflate,constants),module.exports=pako; },{"./lib/deflate":3,"./lib/inflate":4,"./lib/utils/common":5,"./lib/zlib/constants":8}],3:[function(require,module,exports){ "use strict";function Deflate(t){if(!(this instanceof Deflate))return new Deflate(t);this.options=utils.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY,to:""},t||{});var i=this.options;i.raw&&i.windowBits>0?i.windowBits=-i.windowBits:i.gzip&&i.windowBits>0&&i.windowBits<16&&(i.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream,this.strm.avail_out=0;var e=zlib_deflate.deflateInit2(this.strm,i.level,i.method,i.windowBits,i.memLevel,i.strategy);if(e!==Z_OK)throw new Error(msg[e]);if(i.header&&zlib_deflate.deflateSetHeader(this.strm,i.header),i.dictionary){var s;if(s="string"==typeof i.dictionary?strings.string2buf(i.dictionary):"[object ArrayBuffer]"===toString.call(i.dictionary)?new Uint8Array(i.dictionary):i.dictionary,e=zlib_deflate.deflateSetDictionary(this.strm,s),e!==Z_OK)throw new Error(msg[e]);this._dict_set=!0}}function deflate(t,i){var e=new Deflate(i);if(e.push(t,!0),e.err)throw e.msg||msg[e.err];return e.result}function deflateRaw(t,i){return i=i||{},i.raw=!0,deflate(t,i)}function gzip(t,i){return i=i||{},i.gzip=!0,deflate(t,i)}var zlib_deflate=require("./zlib/deflate"),utils=require("./utils/common"),strings=require("./utils/strings"),msg=require("./zlib/messages"),ZStream=require("./zlib/zstream"),toString=Object.prototype.toString,Z_NO_FLUSH=0,Z_FINISH=4,Z_OK=0,Z_STREAM_END=1,Z_SYNC_FLUSH=2,Z_DEFAULT_COMPRESSION=-1,Z_DEFAULT_STRATEGY=0,Z_DEFLATED=8;Deflate.prototype.push=function(t,i){var e,s,n=this.strm,r=this.options.chunkSize;if(this.ended)return!1;s=i===~~i?i:i===!0?Z_FINISH:Z_NO_FLUSH,"string"==typeof t?n.input=strings.string2buf(t):"[object ArrayBuffer]"===toString.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;do{if(0===n.avail_out&&(n.output=new utils.Buf8(r),n.next_out=0,n.avail_out=r),e=zlib_deflate.deflate(n,s),e!==Z_STREAM_END&&e!==Z_OK)return this.onEnd(e),this.ended=!0,!1;0!==n.avail_out&&(0!==n.avail_in||s!==Z_FINISH&&s!==Z_SYNC_FLUSH)||("string"===this.options.to?this.onData(strings.buf2binstring(utils.shrinkBuf(n.output,n.next_out))):this.onData(utils.shrinkBuf(n.output,n.next_out)))}while((n.avail_in>0||0===n.avail_out)&&e!==Z_STREAM_END);return s===Z_FINISH?(e=zlib_deflate.deflateEnd(this.strm),this.onEnd(e),this.ended=!0,e===Z_OK):s===Z_SYNC_FLUSH?(this.onEnd(Z_OK),n.avail_out=0,!0):!0},Deflate.prototype.onData=function(t){this.chunks.push(t)},Deflate.prototype.onEnd=function(t){t===Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=utils.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},exports.Deflate=Deflate,exports.deflate=deflate,exports.deflateRaw=deflateRaw,exports.gzip=gzip; },{"./utils/common":5,"./utils/strings":6,"./zlib/deflate":10,"./zlib/messages":15,"./zlib/zstream":17}],4:[function(require,module,exports){ "use strict";function Inflate(t){if(!(this instanceof Inflate))return new Inflate(t);this.options=utils.assign({chunkSize:16384,windowBits:0,to:""},t||{});var i=this.options;i.raw&&i.windowBits>=0&&i.windowBits<16&&(i.windowBits=-i.windowBits,0===i.windowBits&&(i.windowBits=-15)),!(i.windowBits>=0&&i.windowBits<16)||t&&t.windowBits||(i.windowBits+=32),i.windowBits>15&&i.windowBits<48&&0===(15&i.windowBits)&&(i.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream,this.strm.avail_out=0;var n=zlib_inflate.inflateInit2(this.strm,i.windowBits);if(n!==c.Z_OK)throw new Error(msg[n]);this.header=new GZheader,zlib_inflate.inflateGetHeader(this.strm,this.header)}function inflate(t,i){var n=new Inflate(i);if(n.push(t,!0),n.err)throw n.msg||msg[n.err];return n.result}function inflateRaw(t,i){return i=i||{},i.raw=!0,inflate(t,i)}var zlib_inflate=require("./zlib/inflate"),utils=require("./utils/common"),strings=require("./utils/strings"),c=require("./zlib/constants"),msg=require("./zlib/messages"),ZStream=require("./zlib/zstream"),GZheader=require("./zlib/gzheader"),toString=Object.prototype.toString;Inflate.prototype.push=function(t,i){var n,s,e,r,o,a,u=this.strm,l=this.options.chunkSize,h=this.options.dictionary,_=!1;if(this.ended)return!1;s=i===~~i?i:i===!0?c.Z_FINISH:c.Z_NO_FLUSH,"string"==typeof t?u.input=strings.binstring2buf(t):"[object ArrayBuffer]"===toString.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new utils.Buf8(l),u.next_out=0,u.avail_out=l),n=zlib_inflate.inflate(u,c.Z_NO_FLUSH),n===c.Z_NEED_DICT&&h&&(a="string"==typeof h?strings.string2buf(h):"[object ArrayBuffer]"===toString.call(h)?new Uint8Array(h):h,n=zlib_inflate.inflateSetDictionary(this.strm,a)),n===c.Z_BUF_ERROR&&_===!0&&(n=c.Z_OK,_=!1),n!==c.Z_STREAM_END&&n!==c.Z_OK)return this.onEnd(n),this.ended=!0,!1;u.next_out&&(0!==u.avail_out&&n!==c.Z_STREAM_END&&(0!==u.avail_in||s!==c.Z_FINISH&&s!==c.Z_SYNC_FLUSH)||("string"===this.options.to?(e=strings.utf8border(u.output,u.next_out),r=u.next_out-e,o=strings.buf2string(u.output,e),u.next_out=r,u.avail_out=l-r,r&&utils.arraySet(u.output,u.output,e,r,0),this.onData(o)):this.onData(utils.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(_=!0)}while((u.avail_in>0||0===u.avail_out)&&n!==c.Z_STREAM_END);return n===c.Z_STREAM_END&&(s=c.Z_FINISH),s===c.Z_FINISH?(n=zlib_inflate.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c.Z_OK):s===c.Z_SYNC_FLUSH?(this.onEnd(c.Z_OK),u.avail_out=0,!0):!0},Inflate.prototype.onData=function(t){this.chunks.push(t)},Inflate.prototype.onEnd=function(t){t===c.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=utils.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},exports.Inflate=Inflate,exports.inflate=inflate,exports.inflateRaw=inflateRaw,exports.ungzip=inflate; },{"./utils/common":5,"./utils/strings":6,"./zlib/constants":8,"./zlib/gzheader":11,"./zlib/inflate":13,"./zlib/messages":15,"./zlib/zstream":17}],5:[function(require,module,exports){ "use strict";var TYPED_OK="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;exports.assign=function(r){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var e=t.shift();if(e){if("object"!=typeof e)throw new TypeError(e+"must be non-object");for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n])}}return r},exports.shrinkBuf=function(r,t){return r.length===t?r:r.subarray?r.subarray(0,t):(r.length=t,r)};var fnTyped={arraySet:function(r,t,e,n,a){if(t.subarray&&r.subarray)return void r.set(t.subarray(e,e+n),a);for(var o=0;n>o;o++)r[a+o]=t[e+o]},flattenChunks:function(r){var t,e,n,a,o,s;for(n=0,t=0,e=r.length;e>t;t++)n+=r[t].length;for(s=new Uint8Array(n),a=0,t=0,e=r.length;e>t;t++)o=r[t],s.set(o,a),a+=o.length;return s}},fnUntyped={arraySet:function(r,t,e,n,a){for(var o=0;n>o;o++)r[a+o]=t[e+o]},flattenChunks:function(r){return[].concat.apply([],r)}};exports.setTyped=function(r){r?(exports.Buf8=Uint8Array,exports.Buf16=Uint16Array,exports.Buf32=Int32Array,exports.assign(exports,fnTyped)):(exports.Buf8=Array,exports.Buf16=Array,exports.Buf32=Array,exports.assign(exports,fnUntyped))},exports.setTyped(TYPED_OK); },{}],6:[function(require,module,exports){ "use strict";function buf2binstring(r,t){if(65537>t&&(r.subarray&&STR_APPLY_UIA_OK||!r.subarray&&STR_APPLY_OK))return String.fromCharCode.apply(null,utils.shrinkBuf(r,t));for(var n="",e=0;t>e;e++)n+=String.fromCharCode(r[e]);return n}var utils=require("./common"),STR_APPLY_OK=!0,STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,[0])}catch(__){STR_APPLY_OK=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(__){STR_APPLY_UIA_OK=!1}for(var _utf8len=new utils.Buf8(256),q=0;256>q;q++)_utf8len[q]=q>=252?6:q>=248?5:q>=240?4:q>=224?3:q>=192?2:1;_utf8len[254]=_utf8len[254]=1,exports.string2buf=function(r){var t,n,e,u,f,o=r.length,i=0;for(u=0;o>u;u++)n=r.charCodeAt(u),55296===(64512&n)&&o>u+1&&(e=r.charCodeAt(u+1),56320===(64512&e)&&(n=65536+(n-55296<<10)+(e-56320),u++)),i+=128>n?1:2048>n?2:65536>n?3:4;for(t=new utils.Buf8(i),f=0,u=0;i>f;u++)n=r.charCodeAt(u),55296===(64512&n)&&o>u+1&&(e=r.charCodeAt(u+1),56320===(64512&e)&&(n=65536+(n-55296<<10)+(e-56320),u++)),128>n?t[f++]=n:2048>n?(t[f++]=192|n>>>6,t[f++]=128|63&n):65536>n?(t[f++]=224|n>>>12,t[f++]=128|n>>>6&63,t[f++]=128|63&n):(t[f++]=240|n>>>18,t[f++]=128|n>>>12&63,t[f++]=128|n>>>6&63,t[f++]=128|63&n);return t},exports.buf2binstring=function(r){return buf2binstring(r,r.length)},exports.binstring2buf=function(r){for(var t=new utils.Buf8(r.length),n=0,e=t.length;e>n;n++)t[n]=r.charCodeAt(n);return t},exports.buf2string=function(r,t){var n,e,u,f,o=t||r.length,i=new Array(2*o);for(e=0,n=0;o>n;)if(u=r[n++],128>u)i[e++]=u;else if(f=_utf8len[u],f>4)i[e++]=65533,n+=f-1;else{for(u&=2===f?31:3===f?15:7;f>1&&o>n;)u=u<<6|63&r[n++],f--;f>1?i[e++]=65533:65536>u?i[e++]=u:(u-=65536,i[e++]=55296|u>>10&1023,i[e++]=56320|1023&u)}return buf2binstring(i,e)},exports.utf8border=function(r,t){var n;for(t=t||r.length,t>r.length&&(t=r.length),n=t-1;n>=0&&128===(192&r[n]);)n--;return 0>n?t:0===n?t:n+_utf8len[r[n]]>t?n:t}; },{"./common":5}],7:[function(require,module,exports){ "use strict";function adler32(e,r,o,t){for(var d=65535&e|0,l=e>>>16&65535|0,u=0;0!==o;){u=o>2e3?2e3:o,o-=u;do d=d+r[t++]|0,l=l+d|0;while(--u);d%=65521,l%=65521}return d|l<<16|0}module.exports=adler32; },{}],8:[function(require,module,exports){ "use strict";module.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}; },{}],9:[function(require,module,exports){ "use strict";function makeTable(){for(var r,a=[],c=0;256>c;c++){r=c;for(var e=0;8>e;e++)r=1&r?3988292384^r>>>1:r>>>1;a[c]=r}return a}function crc32(r,a,c,e){var o=crcTable,t=e+c;r^=-1;for(var n=e;t>n;n++)r=r>>>8^o[255&(r^a[n])];return-1^r}var crcTable=makeTable();module.exports=crc32; },{}],10:[function(require,module,exports){ "use strict";function err(t,e){return t.msg=msg[e],e}function rank(t){return(t<<1)-(t>4?9:0)}function zero(t){for(var e=t.length;--e>=0;)t[e]=0}function flush_pending(t){var e=t.state,_=e.pending;_>t.avail_out&&(_=t.avail_out),0!==_&&(utils.arraySet(t.output,e.pending_buf,e.pending_out,_,t.next_out),t.next_out+=_,e.pending_out+=_,t.total_out+=_,t.avail_out-=_,e.pending-=_,0===e.pending&&(e.pending_out=0))}function flush_block_only(t,e){trees._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,flush_pending(t.strm)}function put_byte(t,e){t.pending_buf[t.pending++]=e}function putShortMSB(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function read_buf(t,e,_,a){var s=t.avail_in;return s>a&&(s=a),0===s?0:(t.avail_in-=s,utils.arraySet(e,t.input,t.next_in,s,_),1===t.state.wrap?t.adler=adler32(t.adler,e,s,_):2===t.state.wrap&&(t.adler=crc32(t.adler,e,s,_)),t.next_in+=s,t.total_in+=s,s)}function longest_match(t,e){var _,a,s=t.max_chain_length,i=t.strstart,n=t.prev_length,r=t.nice_match,l=t.strstart>t.w_size-MIN_LOOKAHEAD?t.strstart-(t.w_size-MIN_LOOKAHEAD):0,h=t.window,o=t.w_mask,d=t.prev,u=t.strstart+MAX_MATCH,f=h[i+n-1],E=h[i+n];t.prev_length>=t.good_match&&(s>>=2),r>t.lookahead&&(r=t.lookahead);do if(_=e,h[_+n]===E&&h[_+n-1]===f&&h[_]===h[i]&&h[++_]===h[i+1]){i+=2,_++;do;while(h[++i]===h[++_]&&h[++i]===h[++_]&&h[++i]===h[++_]&&h[++i]===h[++_]&&h[++i]===h[++_]&&h[++i]===h[++_]&&h[++i]===h[++_]&&h[++i]===h[++_]&&u>i);if(a=MAX_MATCH-(u-i),i=u-MAX_MATCH,a>n){if(t.match_start=e,n=a,a>=r)break;f=h[i+n-1],E=h[i+n]}}while((e=d[e&o])>l&&0!==--s);return n<=t.lookahead?n:t.lookahead}function fill_window(t){var e,_,a,s,i,n=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=n+(n-MIN_LOOKAHEAD)){utils.arraySet(t.window,t.window,n,n,0),t.match_start-=n,t.strstart-=n,t.block_start-=n,_=t.hash_size,e=_;do a=t.head[--e],t.head[e]=a>=n?a-n:0;while(--_);_=n,e=_;do a=t.prev[--e],t.prev[e]=a>=n?a-n:0;while(--_);s+=n}if(0===t.strm.avail_in)break;if(_=read_buf(t.strm,t.window,t.strstart+t.lookahead,s),t.lookahead+=_,t.lookahead+t.insert>=MIN_MATCH)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=(t.ins_h<t.pending_buf_size-5&&(_=t.pending_buf_size-5);;){if(t.lookahead<=1){if(fill_window(t),0===t.lookahead&&e===Z_NO_FLUSH)return BS_NEED_MORE;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var a=t.block_start+_;if((0===t.strstart||t.strstart>=a)&&(t.lookahead=t.strstart-a,t.strstart=a,flush_block_only(t,!1),0===t.strm.avail_out))return BS_NEED_MORE;if(t.strstart-t.block_start>=t.w_size-MIN_LOOKAHEAD&&(flush_block_only(t,!1),0===t.strm.avail_out))return BS_NEED_MORE}return t.insert=0,e===Z_FINISH?(flush_block_only(t,!0),0===t.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):t.strstart>t.block_start&&(flush_block_only(t,!1),0===t.strm.avail_out)?BS_NEED_MORE:BS_NEED_MORE}function deflate_fast(t,e){for(var _,a;;){if(t.lookahead=MIN_MATCH&&(t.ins_h=(t.ins_h<=MIN_MATCH)if(a=trees._tr_tally(t,t.strstart-t.match_start,t.match_length-MIN_MATCH),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=MIN_MATCH){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<=MIN_MATCH&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=MIN_MATCH-1)),t.prev_length>=MIN_MATCH&&t.match_length<=t.prev_length){s=t.strstart+t.lookahead-MIN_MATCH,a=trees._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-MIN_MATCH),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=s&&(t.ins_h=(t.ins_h<=MIN_MATCH&&t.strstart>0&&(s=t.strstart-1,a=n[s],a===n[++s]&&a===n[++s]&&a===n[++s])){i=t.strstart+MAX_MATCH;do;while(a===n[++s]&&a===n[++s]&&a===n[++s]&&a===n[++s]&&a===n[++s]&&a===n[++s]&&a===n[++s]&&a===n[++s]&&i>s);t.match_length=MAX_MATCH-(i-s),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=MIN_MATCH?(_=trees._tr_tally(t,1,t.match_length-MIN_MATCH),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(_=trees._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),_&&(flush_block_only(t,!1),0===t.strm.avail_out))return BS_NEED_MORE}return t.insert=0,e===Z_FINISH?(flush_block_only(t,!0),0===t.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):t.last_lit&&(flush_block_only(t,!1),0===t.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}function deflate_huff(t,e){for(var _;;){if(0===t.lookahead&&(fill_window(t),0===t.lookahead)){if(e===Z_NO_FLUSH)return BS_NEED_MORE;break}if(t.match_length=0,_=trees._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,_&&(flush_block_only(t,!1),0===t.strm.avail_out))return BS_NEED_MORE}return t.insert=0,e===Z_FINISH?(flush_block_only(t,!0),0===t.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):t.last_lit&&(flush_block_only(t,!1),0===t.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}function Config(t,e,_,a,s){this.good_length=t,this.max_lazy=e,this.nice_length=_,this.max_chain=a,this.func=s}function lm_init(t){t.window_size=2*t.w_size,zero(t.head),t.max_lazy_match=configuration_table[t.level].max_lazy,t.good_match=configuration_table[t.level].good_length,t.nice_match=configuration_table[t.level].nice_length,t.max_chain_length=configuration_table[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=MIN_MATCH-1,t.match_available=0,t.ins_h=0}function DeflateState(){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=Z_DEFLATED,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 utils.Buf16(2*HEAP_SIZE),this.dyn_dtree=new utils.Buf16(2*(2*D_CODES+1)),this.bl_tree=new utils.Buf16(2*(2*BL_CODES+1)),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new utils.Buf16(MAX_BITS+1),this.heap=new utils.Buf16(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new utils.Buf16(2*L_CODES+1),zero(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 deflateResetKeep(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=Z_UNKNOWN,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?INIT_STATE:BUSY_STATE,t.adler=2===e.wrap?0:1,e.last_flush=Z_NO_FLUSH,trees._tr_init(e),Z_OK):err(t,Z_STREAM_ERROR)}function deflateReset(t){var e=deflateResetKeep(t);return e===Z_OK&&lm_init(t.state),e}function deflateSetHeader(t,e){return t&&t.state?2!==t.state.wrap?Z_STREAM_ERROR:(t.state.gzhead=e,Z_OK):Z_STREAM_ERROR}function deflateInit2(t,e,_,a,s,i){if(!t)return Z_STREAM_ERROR;var n=1;if(e===Z_DEFAULT_COMPRESSION&&(e=6),0>a?(n=0,a=-a):a>15&&(n=2,a-=16),1>s||s>MAX_MEM_LEVEL||_!==Z_DEFLATED||8>a||a>15||0>e||e>9||0>i||i>Z_FIXED)return err(t,Z_STREAM_ERROR);8===a&&(a=9);var r=new DeflateState;return t.state=r,r.strm=t,r.wrap=n,r.gzhead=null,r.w_bits=a,r.w_size=1<Z_BLOCK||0>e)return t?err(t,Z_STREAM_ERROR):Z_STREAM_ERROR;if(a=t.state,!t.output||!t.input&&0!==t.avail_in||a.status===FINISH_STATE&&e!==Z_FINISH)return err(t,0===t.avail_out?Z_BUF_ERROR:Z_STREAM_ERROR);if(a.strm=t,_=a.last_flush,a.last_flush=e,a.status===INIT_STATE)if(2===a.wrap)t.adler=0,put_byte(a,31),put_byte(a,139),put_byte(a,8),a.gzhead?(put_byte(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)),put_byte(a,255&a.gzhead.time),put_byte(a,a.gzhead.time>>8&255),put_byte(a,a.gzhead.time>>16&255),put_byte(a,a.gzhead.time>>24&255),put_byte(a,9===a.level?2:a.strategy>=Z_HUFFMAN_ONLY||a.level<2?4:0),put_byte(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(put_byte(a,255&a.gzhead.extra.length),put_byte(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=crc32(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=EXTRA_STATE):(put_byte(a,0),put_byte(a,0),put_byte(a,0),put_byte(a,0),put_byte(a,0),put_byte(a,9===a.level?2:a.strategy>=Z_HUFFMAN_ONLY||a.level<2?4:0),put_byte(a,OS_CODE),a.status=BUSY_STATE);else{var n=Z_DEFLATED+(a.w_bits-8<<4)<<8,r=-1;r=a.strategy>=Z_HUFFMAN_ONLY||a.level<2?0:a.level<6?1:6===a.level?2:3,n|=r<<6,0!==a.strstart&&(n|=PRESET_DICT),n+=31-n%31,a.status=BUSY_STATE,putShortMSB(a,n),0!==a.strstart&&(putShortMSB(a,t.adler>>>16),putShortMSB(a,65535&t.adler)),t.adler=1}if(a.status===EXTRA_STATE)if(a.gzhead.extra){for(s=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>s&&(t.adler=crc32(t.adler,a.pending_buf,a.pending-s,s)),flush_pending(t),s=a.pending,a.pending!==a.pending_buf_size));)put_byte(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>s&&(t.adler=crc32(t.adler,a.pending_buf,a.pending-s,s)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=NAME_STATE)}else a.status=NAME_STATE;if(a.status===NAME_STATE)if(a.gzhead.name){s=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(t.adler=crc32(t.adler,a.pending_buf,a.pending-s,s)),flush_pending(t),s=a.pending,a.pending===a.pending_buf_size)){i=1;break}i=a.gzindexs&&(t.adler=crc32(t.adler,a.pending_buf,a.pending-s,s)),0===i&&(a.gzindex=0,a.status=COMMENT_STATE)}else a.status=COMMENT_STATE;if(a.status===COMMENT_STATE)if(a.gzhead.comment){s=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(t.adler=crc32(t.adler,a.pending_buf,a.pending-s,s)),flush_pending(t),s=a.pending,a.pending===a.pending_buf_size)){i=1;break}i=a.gzindexs&&(t.adler=crc32(t.adler,a.pending_buf,a.pending-s,s)),0===i&&(a.status=HCRC_STATE)}else a.status=HCRC_STATE;if(a.status===HCRC_STATE&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&flush_pending(t),a.pending+2<=a.pending_buf_size&&(put_byte(a,255&t.adler),put_byte(a,t.adler>>8&255),t.adler=0,a.status=BUSY_STATE)):a.status=BUSY_STATE),0!==a.pending){if(flush_pending(t),0===t.avail_out)return a.last_flush=-1,Z_OK}else if(0===t.avail_in&&rank(e)<=rank(_)&&e!==Z_FINISH)return err(t,Z_BUF_ERROR);if(a.status===FINISH_STATE&&0!==t.avail_in)return err(t,Z_BUF_ERROR);if(0!==t.avail_in||0!==a.lookahead||e!==Z_NO_FLUSH&&a.status!==FINISH_STATE){var l=a.strategy===Z_HUFFMAN_ONLY?deflate_huff(a,e):a.strategy===Z_RLE?deflate_rle(a,e):configuration_table[a.level].func(a,e);if(l!==BS_FINISH_STARTED&&l!==BS_FINISH_DONE||(a.status=FINISH_STATE),l===BS_NEED_MORE||l===BS_FINISH_STARTED)return 0===t.avail_out&&(a.last_flush=-1),Z_OK;if(l===BS_BLOCK_DONE&&(e===Z_PARTIAL_FLUSH?trees._tr_align(a):e!==Z_BLOCK&&(trees._tr_stored_block(a,0,0,!1),e===Z_FULL_FLUSH&&(zero(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),flush_pending(t),0===t.avail_out))return a.last_flush=-1,Z_OK}return e!==Z_FINISH?Z_OK:a.wrap<=0?Z_STREAM_END:(2===a.wrap?(put_byte(a,255&t.adler),put_byte(a,t.adler>>8&255),put_byte(a,t.adler>>16&255),put_byte(a,t.adler>>24&255),put_byte(a,255&t.total_in),put_byte(a,t.total_in>>8&255),put_byte(a,t.total_in>>16&255),put_byte(a,t.total_in>>24&255)):(putShortMSB(a,t.adler>>>16),putShortMSB(a,65535&t.adler)),flush_pending(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?Z_OK:Z_STREAM_END)}function deflateEnd(t){var e;return t&&t.state?(e=t.state.status,e!==INIT_STATE&&e!==EXTRA_STATE&&e!==NAME_STATE&&e!==COMMENT_STATE&&e!==HCRC_STATE&&e!==BUSY_STATE&&e!==FINISH_STATE?err(t,Z_STREAM_ERROR):(t.state=null,e===BUSY_STATE?err(t,Z_DATA_ERROR):Z_OK)):Z_STREAM_ERROR}function deflateSetDictionary(t,e){var _,a,s,i,n,r,l,h,o=e.length;if(!t||!t.state)return Z_STREAM_ERROR;if(_=t.state,i=_.wrap,2===i||1===i&&_.status!==INIT_STATE||_.lookahead)return Z_STREAM_ERROR;for(1===i&&(t.adler=adler32(t.adler,e,o,0)),_.wrap=0,o>=_.w_size&&(0===i&&(zero(_.head),_.strstart=0,_.block_start=0,_.insert=0),h=new utils.Buf8(_.w_size),utils.arraySet(h,e,o-_.w_size,_.w_size,0),e=h,o=_.w_size),n=t.avail_in,r=t.next_in,l=t.input,t.avail_in=o,t.next_in=0,t.input=e,fill_window(_);_.lookahead>=MIN_MATCH;){a=_.strstart,s=_.lookahead-(MIN_MATCH-1);do _.ins_h=(_.ins_h<<_.hash_shift^_.window[a+MIN_MATCH-1])&_.hash_mask,_.prev[a&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=a,a++;while(--s);_.strstart=a,_.lookahead=MIN_MATCH-1,fill_window(_)}return _.strstart+=_.lookahead,_.block_start=_.strstart,_.insert=_.lookahead,_.lookahead=0,_.match_length=_.prev_length=MIN_MATCH-1,_.match_available=0,t.next_in=r,t.input=l,t.avail_in=n,_.wrap=i,Z_OK}var utils=require("../utils/common"),trees=require("./trees"),adler32=require("./adler32"),crc32=require("./crc32"),msg=require("./messages"),Z_NO_FLUSH=0,Z_PARTIAL_FLUSH=1,Z_FULL_FLUSH=3,Z_FINISH=4,Z_BLOCK=5,Z_OK=0,Z_STREAM_END=1,Z_STREAM_ERROR=-2,Z_DATA_ERROR=-3,Z_BUF_ERROR=-5,Z_DEFAULT_COMPRESSION=-1,Z_FILTERED=1,Z_HUFFMAN_ONLY=2,Z_RLE=3,Z_FIXED=4,Z_DEFAULT_STRATEGY=0,Z_UNKNOWN=2,Z_DEFLATED=8,MAX_MEM_LEVEL=9,MAX_WBITS=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,configuration_table;configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],exports.deflateInit=deflateInit,exports.deflateInit2=deflateInit2,exports.deflateReset=deflateReset,exports.deflateResetKeep=deflateResetKeep,exports.deflateSetHeader=deflateSetHeader,exports.deflate=deflate,exports.deflateEnd=deflateEnd,exports.deflateSetDictionary=deflateSetDictionary,exports.deflateInfo="pako deflate (from Nodeca project)"; },{"../utils/common":5,"./adler32":7,"./crc32":9,"./messages":15,"./trees":16}],11:[function(require,module,exports){ "use strict";function GZheader(){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}module.exports=GZheader; },{}],12:[function(require,module,exports){ "use strict";var BAD=30,TYPE=12;module.exports=function(i,e){var o,a,t,d,n,l,s,f,r,b,c,u,v,m,w,h,k,_,x,g,A,B,D,p,E;o=i.state,a=i.next_in,p=i.input,t=a+(i.avail_in-5),d=i.next_out,E=i.output,n=d-(e-i.avail_out),l=d+(i.avail_out-257),s=o.dmax,f=o.wsize,r=o.whave,b=o.wnext,c=o.window,u=o.hold,v=o.bits,m=o.lencode,w=o.distcode,h=(1<v&&(u+=p[a++]<>>24,u>>>=x,v-=x,x=_>>>16&255,0===x)E[d++]=65535&_;else{if(!(16&x)){if(0===(64&x)){_=m[(65535&_)+(u&(1<v&&(u+=p[a++]<>>=x,v-=x),15>v&&(u+=p[a++]<>>24,u>>>=x,v-=x,x=_>>>16&255,!(16&x)){if(0===(64&x)){_=w[(65535&_)+(u&(1<v&&(u+=p[a++]<v&&(u+=p[a++]<s){i.msg="invalid distance too far back",o.mode=BAD;break i}if(u>>>=x,v-=x,x=d-n,A>x){if(x=A-x,x>r&&o.sane){i.msg="invalid distance too far back",o.mode=BAD;break i}if(B=0,D=c,0===b){if(B+=f-x,g>x){g-=x;do E[d++]=c[B++];while(--x);B=d-A,D=E}}else if(x>b){if(B+=f+b-x,x-=b,g>x){g-=x;do E[d++]=c[B++];while(--x);if(B=0,g>b){x=b,g-=x;do E[d++]=c[B++];while(--x);B=d-A,D=E}}}else if(B+=b-x,g>x){g-=x;do E[d++]=c[B++];while(--x);B=d-A,D=E}for(;g>2;)E[d++]=D[B++],E[d++]=D[B++],E[d++]=D[B++],g-=3;g&&(E[d++]=D[B++],g>1&&(E[d++]=D[B++]))}else{B=d-A;do E[d++]=E[B++],E[d++]=E[B++],E[d++]=E[B++],g-=3;while(g>2);g&&(E[d++]=E[B++],g>1&&(E[d++]=E[B++]))}break}}break}}while(t>a&&l>d);g=v>>3,a-=g,v-=g<<3,u&=(1<a?5+(t-a):5-(a-t),i.avail_out=l>d?257+(l-d):257-(d-l),o.hold=u,o.bits=v}; },{}],13:[function(require,module,exports){ "use strict";function zswap32(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function InflateState(){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 utils.Buf16(320),this.work=new utils.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function inflateResetKeep(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=HEAD,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new utils.Buf32(ENOUGH_LENS),t.distcode=t.distdyn=new utils.Buf32(ENOUGH_DISTS),t.sane=1,t.back=-1,Z_OK):Z_STREAM_ERROR}function inflateReset(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,inflateResetKeep(e)):Z_STREAM_ERROR}function inflateReset2(e,t){var a,i;return e&&e.state?(i=e.state,0>t?(a=0,t=-t):(a=(t>>4)+1,48>t&&(t&=15)),t&&(8>t||t>15)?Z_STREAM_ERROR:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=a,i.wbits=t,inflateReset(e))):Z_STREAM_ERROR}function inflateInit2(e,t){var a,i;return e?(i=new InflateState,e.state=i,i.window=null,a=inflateReset2(e,t),a!==Z_OK&&(e.state=null),a):Z_STREAM_ERROR}function inflateInit(e){return inflateInit2(e,DEF_WBITS)}function fixedtables(e){if(virgin){var t;for(lenfix=new utils.Buf32(512),distfix=new utils.Buf32(32),t=0;144>t;)e.lens[t++]=8;for(;256>t;)e.lens[t++]=9;for(;280>t;)e.lens[t++]=7;for(;288>t;)e.lens[t++]=8;for(inflate_table(LENS,e.lens,0,288,lenfix,0,e.work,{bits:9}),t=0;32>t;)e.lens[t++]=5;inflate_table(DISTS,e.lens,0,32,distfix,0,e.work,{bits:5}),virgin=!1}e.lencode=lenfix,e.lenbits=9,e.distcode=distfix,e.distbits=5}function updatewindow(e,t,a,i){var n,s=e.state;return null===s.window&&(s.wsize=1<=s.wsize?(utils.arraySet(s.window,t,a-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),utils.arraySet(s.window,t,a-i,n,s.wnext),i-=n,i?(utils.arraySet(s.window,t,a-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whavef;){if(0===r)break e;r--,d+=i[s++]<>>8&255,a.check=crc32(a.check,v,2,0),d=0,f=0,a.mode=FLAGS;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&d)<<8)+(d>>8))%31){e.msg="incorrect header check",a.mode=BAD;break}if((15&d)!==Z_DEFLATED){e.msg="unknown compression method",a.mode=BAD;break}if(d>>>=4,f-=4,D=(15&d)+8,0===a.wbits)a.wbits=D;else if(D>a.wbits){e.msg="invalid window size",a.mode=BAD;break}a.dmax=1<f;){if(0===r)break e;r--,d+=i[s++]<>8&1),512&a.flags&&(v[0]=255&d,v[1]=d>>>8&255,a.check=crc32(a.check,v,2,0)),d=0,f=0,a.mode=TIME;case TIME:for(;32>f;){if(0===r)break e;r--,d+=i[s++]<>>8&255,v[2]=d>>>16&255,v[3]=d>>>24&255,a.check=crc32(a.check,v,4,0)),d=0,f=0,a.mode=OS;case OS:for(;16>f;){if(0===r)break e;r--,d+=i[s++]<>8),512&a.flags&&(v[0]=255&d,v[1]=d>>>8&255,a.check=crc32(a.check,v,2,0)),d=0,f=0,a.mode=EXLEN;case EXLEN:if(1024&a.flags){for(;16>f;){if(0===r)break e;r--,d+=i[s++]<>>8&255,a.check=crc32(a.check,v,2,0)),d=0,f=0}else a.head&&(a.head.extra=null);a.mode=EXTRA;case EXTRA:if(1024&a.flags&&(E=a.length,E>r&&(E=r),E&&(a.head&&(D=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),utils.arraySet(a.head.extra,i,s,E,D)),512&a.flags&&(a.check=crc32(a.check,i,E,s)),r-=E,s+=E,a.length-=E),a.length))break e;a.length=0,a.mode=NAME;case NAME:if(2048&a.flags){if(0===r)break e;E=0;do D=i[s+E++],a.head&&D&&a.length<65536&&(a.head.name+=String.fromCharCode(D));while(D&&r>E);if(512&a.flags&&(a.check=crc32(a.check,i,E,s)),r-=E,s+=E,D)break e}else a.head&&(a.head.name=null);a.length=0,a.mode=COMMENT;case COMMENT:if(4096&a.flags){if(0===r)break e;E=0;do D=i[s+E++],a.head&&D&&a.length<65536&&(a.head.comment+=String.fromCharCode(D));while(D&&r>E);if(512&a.flags&&(a.check=crc32(a.check,i,E,s)),r-=E,s+=E,D)break e}else a.head&&(a.head.comment=null);a.mode=HCRC;case HCRC:if(512&a.flags){for(;16>f;){if(0===r)break e;r--,d+=i[s++]<>9&1,a.head.done=!0),e.adler=a.check=0,a.mode=TYPE;break;case DICTID:for(;32>f;){if(0===r)break e;r--,d+=i[s++]<>>=7&f,f-=7&f,a.mode=CHECK;break}for(;3>f;){if(0===r)break e;r--,d+=i[s++]<>>=1,f-=1,3&d){case 0:a.mode=STORED;break;case 1:if(fixedtables(a),a.mode=LEN_,t===Z_TREES){d>>>=2,f-=2;break e}break;case 2:a.mode=TABLE;break;case 3:e.msg="invalid block type",a.mode=BAD}d>>>=2,f-=2;break;case STORED:for(d>>>=7&f,f-=7&f;32>f;){if(0===r)break e;r--,d+=i[s++]<>>16^65535)){e.msg="invalid stored block lengths",a.mode=BAD;break}if(a.length=65535&d,d=0,f=0,a.mode=COPY_,t===Z_TREES)break e;case COPY_:a.mode=COPY;case COPY:if(E=a.length){if(E>r&&(E=r),E>o&&(E=o),0===E)break e;utils.arraySet(n,i,s,E,l),r-=E,s+=E,o-=E,l+=E,a.length-=E;break}a.mode=TYPE;break;case TABLE:for(;14>f;){if(0===r)break e;r--,d+=i[s++]<>>=5,f-=5,a.ndist=(31&d)+1,d>>>=5,f-=5,a.ncode=(15&d)+4,d>>>=4,f-=4,a.nlen>286||a.ndist>30){e.msg="too many length or distance symbols",a.mode=BAD;break}a.have=0,a.mode=LENLENS;case LENLENS:for(;a.havef;){if(0===r)break e;r--,d+=i[s++]<>>=3,f-=3}for(;a.have<19;)a.lens[O[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,S={bits:a.lenbits},g=inflate_table(CODES,a.lens,0,19,a.lencode,0,a.work,S),a.lenbits=S.bits,g){e.msg="invalid code lengths set",a.mode=BAD;break}a.have=0,a.mode=CODELENS;case CODELENS:for(;a.have>>24,m=A>>>16&255,w=65535&A,!(f>=k);){if(0===r)break e;r--,d+=i[s++]<w)d>>>=k,f-=k,a.lens[a.have++]=w;else{if(16===w){for(x=k+2;x>f;){if(0===r)break e;r--,d+=i[s++]<>>=k,f-=k,0===a.have){e.msg="invalid bit length repeat",a.mode=BAD;break}D=a.lens[a.have-1],E=3+(3&d),d>>>=2,f-=2}else if(17===w){for(x=k+3;x>f;){if(0===r)break e;r--,d+=i[s++]<>>=k,f-=k,D=0,E=3+(7&d),d>>>=3,f-=3}else{for(x=k+7;x>f;){if(0===r)break e;r--,d+=i[s++]<>>=k,f-=k,D=0,E=11+(127&d),d>>>=7,f-=7}if(a.have+E>a.nlen+a.ndist){e.msg="invalid bit length repeat",a.mode=BAD;break}for(;E--;)a.lens[a.have++]=D}}if(a.mode===BAD)break;if(0===a.lens[256]){e.msg="invalid code -- missing end-of-block",a.mode=BAD;break}if(a.lenbits=9,S={bits:a.lenbits},g=inflate_table(LENS,a.lens,0,a.nlen,a.lencode,0,a.work,S),a.lenbits=S.bits,g){e.msg="invalid literal/lengths set",a.mode=BAD;break}if(a.distbits=6,a.distcode=a.distdyn,S={bits:a.distbits},g=inflate_table(DISTS,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,S),a.distbits=S.bits,g){e.msg="invalid distances set",a.mode=BAD;break}if(a.mode=LEN_,t===Z_TREES)break e;case LEN_:a.mode=LEN;case LEN:if(r>=6&&o>=258){e.next_out=l,e.avail_out=o,e.next_in=s,e.avail_in=r,a.hold=d,a.bits=f,inflate_fast(e,h),l=e.next_out,n=e.output,o=e.avail_out,s=e.next_in,i=e.input,r=e.avail_in,d=a.hold,f=a.bits,a.mode===TYPE&&(a.back=-1);break}for(a.back=0;A=a.lencode[d&(1<>>24,m=A>>>16&255,w=65535&A,!(f>=k);){if(0===r)break e;r--,d+=i[s++]<>u)],k=A>>>24,m=A>>>16&255,w=65535&A,!(f>=u+k);){if(0===r)break e;r--,d+=i[s++]<>>=u,f-=u,a.back+=u}if(d>>>=k,f-=k,a.back+=k,a.length=w,0===m){a.mode=LIT;break}if(32&m){a.back=-1,a.mode=TYPE;break}if(64&m){e.msg="invalid literal/length code",a.mode=BAD;break}a.extra=15&m,a.mode=LENEXT;case LENEXT:if(a.extra){for(x=a.extra;x>f;){if(0===r)break e;r--,d+=i[s++]<>>=a.extra,f-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=DIST;case DIST:for(;A=a.distcode[d&(1<>>24,m=A>>>16&255,w=65535&A,!(f>=k);){if(0===r)break e;r--,d+=i[s++]<>u)],k=A>>>24,m=A>>>16&255,w=65535&A,!(f>=u+k);){if(0===r)break e;r--,d+=i[s++]<>>=u,f-=u,a.back+=u}if(d>>>=k,f-=k,a.back+=k,64&m){e.msg="invalid distance code",a.mode=BAD;break}a.offset=w,a.extra=15&m,a.mode=DISTEXT;case DISTEXT:if(a.extra){for(x=a.extra;x>f;){if(0===r)break e;r--,d+=i[s++]<>>=a.extra,f-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){e.msg="invalid distance too far back",a.mode=BAD;break}a.mode=MATCH;case MATCH:if(0===o)break e;if(E=h-o,a.offset>E){if(E=a.offset-E,E>a.whave&&a.sane){e.msg="invalid distance too far back",a.mode=BAD;break}E>a.wnext?(E-=a.wnext,b=a.wsize-E):b=a.wnext-E,E>a.length&&(E=a.length),_=a.window}else _=n,b=l-a.offset,E=a.length;E>o&&(E=o),o-=E,a.length-=E;do n[l++]=_[b++];while(--E);0===a.length&&(a.mode=LEN);break;case LIT:if(0===o)break e;n[l++]=a.length,o--,a.mode=LEN;break;case CHECK:if(a.wrap){for(;32>f;){if(0===r)break e;r--,d|=i[s++]<f;){if(0===r)break e;r--,d+=i[s++]<=b;b++)c[b]=0;for(a=0;f>a;a++)c[S[e+a]]++;for(M=O,L=MAXBITS;L>=1&&0===c[L];L--);if(M>L&&(M=L),0===L)return t[i++]=20971520,t[i++]=20971520,o.bits=1,0;for(A=1;L>A&&0===c[A];A++);for(A>M&&(M=A),G=1,b=1;MAXBITS>=b;b++)if(G<<=1,G-=c[b],0>G)return-1;if(G>0&&(r===CODES||1!==L))return-1;for(m[1]=0,b=1;MAXBITS>b;b++)m[b+1]=m[b]+c[b];for(a=0;f>a;a++)0!==S[e+a]&&(u[m[S[e+a]]++]=a);if(r===CODES?(_=w=u,N=19):r===LENS?(_=lbase,x-=257,w=lext,C-=257,N=256):(_=dbase,w=dext,N=-1),U=0,a=0,b=A,I=i,X=M,d=0,s=-1,H=1<ENOUGH_LENS||r===DISTS&&H>ENOUGH_DISTS)return 1;for(;;){T=b-d,u[a]N?(B=w[C+u[a]],D=_[x+u[a]]):(B=96,D=0),E=1<>d)+l]=T<<24|B<<16|D|0;while(0!==l);for(E=1<>=1;if(0!==E?(U&=E-1,U+=E):U=0,a++,0===--c[b]){if(b===L)break;b=S[e+u[a]]}if(b>M&&(U&n)!==s){for(0===d&&(d=M),I+=A,X=b-d,G=1<X+d&&(G-=c[X+d],!(0>=G));)X++,G<<=1;if(H+=1<ENOUGH_LENS||r===DISTS&&H>ENOUGH_DISTS)return 1;s=U&n,t[s]=M<<24|X<<16|I-i|0}}return 0!==U&&(t[I+U]=b-d<<24|64<<16|0),o.bits=M,0}; },{"../utils/common":5}],15:[function(require,module,exports){ "use strict";module.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"}; },{}],16:[function(require,module,exports){ "use strict";function zero(e){for(var _=e.length;--_>=0;)e[_]=0}function StaticTreeDesc(e,_,t,r,i){this.static_tree=e,this.extra_bits=_,this.extra_base=t,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function TreeDesc(e,_){this.dyn_tree=e,this.max_code=0,this.stat_desc=_}function d_code(e){return 256>e?_dist_code[e]:_dist_code[256+(e>>>7)]}function put_short(e,_){e.pending_buf[e.pending++]=255&_,e.pending_buf[e.pending++]=_>>>8&255}function send_bits(e,_,t){e.bi_valid>Buf_size-t?(e.bi_buf|=_<>Buf_size-e.bi_valid,e.bi_valid+=t-Buf_size):(e.bi_buf|=_<>>=1,t<<=1;while(--_>0);return t>>>1}function bi_flush(e){16===e.bi_valid?(put_short(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function gen_bitlen(e,_){var t,r,i,n,s,d,a=_.dyn_tree,l=_.max_code,c=_.stat_desc.static_tree,o=_.stat_desc.has_stree,b=_.stat_desc.extra_bits,f=_.stat_desc.extra_base,u=_.stat_desc.max_length,p=0;for(n=0;MAX_BITS>=n;n++)e.bl_count[n]=0;for(a[2*e.heap[e.heap_max]+1]=0,t=e.heap_max+1;HEAP_SIZE>t;t++)r=e.heap[t],n=a[2*a[2*r+1]+1]+1,n>u&&(n=u,p++),a[2*r+1]=n,r>l||(e.bl_count[n]++,s=0,r>=f&&(s=b[r-f]),d=a[2*r],e.opt_len+=d*(n+s),o&&(e.static_len+=d*(c[2*r+1]+s)));if(0!==p){do{for(n=u-1;0===e.bl_count[n];)n--;e.bl_count[n]--,e.bl_count[n+1]+=2,e.bl_count[u]--,p-=2}while(p>0);for(n=u;0!==n;n--)for(r=e.bl_count[n];0!==r;)i=e.heap[--t],i>l||(a[2*i+1]!==n&&(e.opt_len+=(n-a[2*i+1])*a[2*i],a[2*i+1]=n),r--)}}function gen_codes(e,_,t){var r,i,n=new Array(MAX_BITS+1),s=0;for(r=1;MAX_BITS>=r;r++)n[r]=s=s+t[r-1]<<1;for(i=0;_>=i;i++){var d=e[2*i+1];0!==d&&(e[2*i]=bi_reverse(n[d]++,d))}}function tr_static_init(){var e,_,t,r,i,n=new Array(MAX_BITS+1);for(t=0,r=0;LENGTH_CODES-1>r;r++)for(base_length[r]=t,e=0;e<1<r;r++)for(base_dist[r]=i,e=0;e<1<>=7;D_CODES>r;r++)for(base_dist[r]=i<<7,e=0;e<1<=_;_++)n[_]=0;for(e=0;143>=e;)static_ltree[2*e+1]=8,e++,n[8]++;for(;255>=e;)static_ltree[2*e+1]=9,e++,n[9]++;for(;279>=e;)static_ltree[2*e+1]=7,e++,n[7]++;for(;287>=e;)static_ltree[2*e+1]=8,e++,n[8]++;for(gen_codes(static_ltree,L_CODES+1,n),e=0;D_CODES>e;e++)static_dtree[2*e+1]=5,static_dtree[2*e]=bi_reverse(e,5);static_l_desc=new StaticTreeDesc(static_ltree,extra_lbits,LITERALS+1,L_CODES,MAX_BITS),static_d_desc=new StaticTreeDesc(static_dtree,extra_dbits,0,D_CODES,MAX_BITS),static_bl_desc=new StaticTreeDesc(new Array(0),extra_blbits,0,BL_CODES,MAX_BL_BITS)}function init_block(e){var _;for(_=0;L_CODES>_;_++)e.dyn_ltree[2*_]=0;for(_=0;D_CODES>_;_++)e.dyn_dtree[2*_]=0;for(_=0;BL_CODES>_;_++)e.bl_tree[2*_]=0;e.dyn_ltree[2*END_BLOCK]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function bi_windup(e){e.bi_valid>8?put_short(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function copy_block(e,_,t,r){bi_windup(e),r&&(put_short(e,t),put_short(e,~t)),utils.arraySet(e.pending_buf,e.window,_,t,e.pending),e.pending+=t}function smaller(e,_,t,r){var i=2*_,n=2*t;return e[i]t;t++)0!==n[2*t]?(e.heap[++e.heap_len]=l=t,e.depth[t]=0):n[2*t+1]=0;for(;e.heap_len<2;)i=e.heap[++e.heap_len]=2>l?++l:0,n[2*i]=1,e.depth[i]=0,e.opt_len--,d&&(e.static_len-=s[2*i+1]);for(_.max_code=l,t=e.heap_len>>1;t>=1;t--)pqdownheap(e,n,t);i=a;do t=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pqdownheap(e,n,1),r=e.heap[1],e.heap[--e.heap_max]=t,e.heap[--e.heap_max]=r,n[2*i]=n[2*t]+n[2*r],e.depth[i]=(e.depth[t]>=e.depth[r]?e.depth[t]:e.depth[r])+1,n[2*t+1]=n[2*r+1]=i,e.heap[1]=i++,pqdownheap(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],gen_bitlen(e,_),gen_codes(n,l,e.bl_count)}function scan_tree(e,_,t){var r,i,n=-1,s=_[1],d=0,a=7,l=4;for(0===s&&(a=138,l=3),_[2*(t+1)+1]=65535,r=0;t>=r;r++)i=s,s=_[2*(r+1)+1],++dd?e.bl_tree[2*i]+=d:0!==i?(i!==n&&e.bl_tree[2*i]++,e.bl_tree[2*REP_3_6]++):10>=d?e.bl_tree[2*REPZ_3_10]++:e.bl_tree[2*REPZ_11_138]++,d=0,n=i,0===s?(a=138,l=3):i===s?(a=6,l=3):(a=7,l=4))}function send_tree(e,_,t){var r,i,n=-1,s=_[1],d=0,a=7,l=4;for(0===s&&(a=138,l=3),r=0;t>=r;r++)if(i=s,s=_[2*(r+1)+1],!(++dd){do send_code(e,i,e.bl_tree);while(0!==--d)}else 0!==i?(i!==n&&(send_code(e,i,e.bl_tree),d--),send_code(e,REP_3_6,e.bl_tree),send_bits(e,d-3,2)):10>=d?(send_code(e,REPZ_3_10,e.bl_tree),send_bits(e,d-3,3)):(send_code(e,REPZ_11_138,e.bl_tree),send_bits(e,d-11,7));d=0,n=i,0===s?(a=138,l=3):i===s?(a=6,l=3):(a=7,l=4)}}function build_bl_tree(e){var _;for(scan_tree(e,e.dyn_ltree,e.l_desc.max_code),scan_tree(e,e.dyn_dtree,e.d_desc.max_code),build_tree(e,e.bl_desc),_=BL_CODES-1;_>=3&&0===e.bl_tree[2*bl_order[_]+1];_--);return e.opt_len+=3*(_+1)+5+5+4,_}function send_all_trees(e,_,t,r){var i;for(send_bits(e,_-257,5),send_bits(e,t-1,5),send_bits(e,r-4,4),i=0;r>i;i++)send_bits(e,e.bl_tree[2*bl_order[i]+1],3);send_tree(e,e.dyn_ltree,_-1),send_tree(e,e.dyn_dtree,t-1)}function detect_data_type(e){var _,t=4093624447;for(_=0;31>=_;_++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*_])return Z_BINARY;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return Z_TEXT;for(_=32;LITERALS>_;_++)if(0!==e.dyn_ltree[2*_])return Z_TEXT;return Z_BINARY}function _tr_init(e){static_init_done||(tr_static_init(),static_init_done=!0),e.l_desc=new TreeDesc(e.dyn_ltree,static_l_desc),e.d_desc=new TreeDesc(e.dyn_dtree,static_d_desc),e.bl_desc=new TreeDesc(e.bl_tree,static_bl_desc),e.bi_buf=0,e.bi_valid=0,init_block(e)}function _tr_stored_block(e,_,t,r){send_bits(e,(STORED_BLOCK<<1)+(r?1:0),3),copy_block(e,_,t,!0)}function _tr_align(e){send_bits(e,STATIC_TREES<<1,3),send_code(e,END_BLOCK,static_ltree),bi_flush(e)}function _tr_flush_block(e,_,t,r){var i,n,s=0;e.level>0?(e.strm.data_type===Z_UNKNOWN&&(e.strm.data_type=detect_data_type(e)),build_tree(e,e.l_desc),build_tree(e,e.d_desc),s=build_bl_tree(e),i=e.opt_len+3+7>>>3,n=e.static_len+3+7>>>3,i>=n&&(i=n)):i=n=t+5,i>=t+4&&-1!==_?_tr_stored_block(e,_,t,r):e.strategy===Z_FIXED||n===i?(send_bits(e,(STATIC_TREES<<1)+(r?1:0),3),compress_block(e,static_ltree,static_dtree)):(send_bits(e,(DYN_TREES<<1)+(r?1:0),3),send_all_trees(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),compress_block(e,e.dyn_ltree,e.dyn_dtree)),init_block(e),r&&bi_windup(e)}function _tr_tally(e,_,t){return e.pending_buf[e.d_buf+2*e.last_lit]=_>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&_,e.pending_buf[e.l_buf+e.last_lit]=255&t,e.last_lit++,0===_?e.dyn_ltree[2*t]++:(e.matches++,_--,e.dyn_ltree[2*(_length_code[t]+LITERALS+1)]++,e.dyn_dtree[2*d_code(_)]++),e.last_lit===e.lit_bufsize-1}var utils=require("../utils/common"),Z_FIXED=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN=2,STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH=3,MAX_MATCH=258,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=[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],extra_dbits=[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],extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],DIST_CODE_LEN=512,static_ltree=new Array(2*(L_CODES+2));zero(static_ltree);var static_dtree=new Array(2*D_CODES);zero(static_dtree);var _dist_code=new Array(DIST_CODE_LEN);zero(_dist_code);var _length_code=new Array(MAX_MATCH-MIN_MATCH+1);zero(_length_code);var base_length=new Array(LENGTH_CODES);zero(base_length);var base_dist=new Array(D_CODES);zero(base_dist);var static_l_desc,static_d_desc,static_bl_desc,static_init_done=!1;exports._tr_init=_tr_init,exports._tr_stored_block=_tr_stored_block,exports._tr_flush_block=_tr_flush_block,exports._tr_tally=_tr_tally,exports._tr_align=_tr_align; },{"../utils/common":5}],17:[function(require,module,exports){ "use strict";function ZStream(){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}module.exports=ZStream; },{}],18:[function(require,module,exports){ function E(){}E.prototype={on:function(t,n,e){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:n,ctx:e}),this},once:function(t,n,e){function i(){f.off(t,i),n.apply(e,arguments)}var f=this;return i._=n,this.on(t,i,e)},emit:function(t){var n=[].slice.call(arguments,1),e=((this.e||(this.e={}))[t]||[]).slice(),i=0,f=e.length;for(i;f>i;i++)e[i].fn.apply(e[i].ctx,n);return this},off:function(t,n){var e=this.e||(this.e={}),i=e[t],f=[];if(i&&n)for(var o=0,r=i.length;r>o;o++)i[o].fn!==n&&i[o].fn._!==n&&f.push(i[o]);return f.length?e[t]=f:delete e[t],this}},module.exports=E; },{}],19:[function(require,module,exports){ !function(i,s){"use strict";var e="0.7.12",o="",r="?",n="function",a="undefined",t="object",w="string",l="major",d="model",p="name",u="type",c="vendor",m="version",b="architecture",f="console",g="mobile",h="tablet",v="smarttv",x="wearable",y="embedded",k={extend:function(i,s){var e={};for(var o in i)s[o]&&s[o].length%2===0?e[o]=s[o].concat(i[o]):e[o]=i[o];return e},has:function(i,s){return"string"==typeof i?-1!==s.toLowerCase().indexOf(i.toLowerCase()):!1},lowerize:function(i){return i.toLowerCase()},major:function(i){return typeof i===w?i.replace(/[^\d\.]/g,"").split(".")[0]:s},trim:function(i){return i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},A={rgx:function(){for(var i,e,o,r,w,l,d,p=0,u=arguments;p0?2==w.length?typeof w[1]==n?i[w[0]]=w[1].call(this,d):i[w[0]]=w[1]:3==w.length?typeof w[1]!==n||w[1].exec&&w[1].test?i[w[0]]=d?d.replace(w[1],w[2]):s:i[w[0]]=d?w[1].call(this,d,w[2]):s:4==w.length&&(i[w[0]]=d?w[3].call(this,d.replace(w[1],w[2])):s):i[w]=d?d:s;p+=2}return i},str:function(i,e){for(var o in e)if(typeof e[o]===t&&e[o].length>0){for(var n=0;np;p++)if(h=e[p],g=D.style[h],a(h,"-")&&(h=d(h)),D.style[h]!==n){if(s||r(i,"undefined"))return l(),"pfx"==t?h:!0;try{D.style[h]=i}catch(y){}if(D.style[h]!=g)return l(),"pfx"==t?h:!0}return l(),!1}function g(e,t,n,i,o){var a=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+B.join(a+" ")+a).split(" ");return r(t,"string")||r(t,"undefined")?h(s,t,i,o):(s=(e+" "+I.join(a+" ")+a).split(" "),p(s,t,n))}function v(e,t,r){return g(e,n,n,t,r)}var y=[],T={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){y.push({name:e,fn:t,options:n})},addAsyncTest:function(e){y.push({name:null,fn:e})}},b=function(){};b.prototype=T,b=new b,b.addTest("applicationcache","applicationCache"in e),b.addTest("blobconstructor",function(){try{return!!new Blob}catch(e){return!1}},{aliases:["blob-constructor"]}),b.addTest("cookies",function(){try{t.cookie="cookietest=1";var e=-1!=t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(n){return!1}}),b.addTest("cors","XMLHttpRequest"in e&&"withCredentials"in new XMLHttpRequest),b.addTest("customprotocolhandler",function(){if(!navigator.registerProtocolHandler)return!1;try{navigator.registerProtocolHandler("thisShouldFail")}catch(e){return e instanceof TypeError}return!1}),b.addTest("dataview","undefined"!=typeof DataView&&"getFloat64"in DataView.prototype),b.addTest("geolocation","geolocation"in navigator),b.addTest("history",function(){var t=navigator.userAgent;return-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone")?e.history&&"pushState"in e.history:!1}),b.addTest("ie8compat",!e.addEventListener&&!!t.documentMode&&7===t.documentMode),b.addTest("json","JSON"in e&&"parse"in JSON&&"stringify"in JSON),b.addTest("notification",function(){if(!e.Notification||!e.Notification.requestPermission)return!1;if("granted"===e.Notification.permission)return!0;try{new e.Notification("")}catch(t){if("TypeError"===t.name)return!1}return!0}),b.addTest("postmessage","postMessage"in e),b.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var x=!1;try{x="WebSocket"in e&&2===e.WebSocket.CLOSING}catch(w){}b.addTest("websockets",x),b.addTest("webaudio",function(){var t="webkitAudioContext"in e,n="AudioContext"in e;return b._config.usePrefixes?t||n:n}),b.addTest("microdata","getItems"in t),b.addTest("strictmode",function(){"use strict";return!this}()),b.addTest("filereader",!!(e.File&&e.FileList&&e.FileReader)),b.addTest("lowbandwidth",function(){var e=navigator.connection||{type:0};return 3==e.type||4==e.type||/^[23]g$/.test(e.type)}),b.addTest("eventsource","EventSource"in e),b.addTest("xhr2","XMLHttpRequest"in e&&"withCredentials"in new XMLHttpRequest),b.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}}),b.addTest("sessionstorage",function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(t){return!1}}),b.addTest("websqldatabase","openDatabase"in e),b.addTest("svgfilters",function(){var t=!1;try{t="SVGFEColorMatrixElement"in e&&2==SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE}catch(n){}return t}),b.addTest("websocketsbinary",function(){var t,n="https:"==location.protocol?"wss":"ws";if("WebSocket"in e){if(t="binaryType"in WebSocket.prototype)return t;try{return!!new WebSocket(n+"://.").binaryType}catch(r){}}return!1}),b.addTest("framed",e.location!=top.location),b.addTest("sharedworkers","SharedWorker"in e),b.addTest("webworkers","Worker"in e);var S=[],C=t.documentElement;b.addTest("contextmenu","contextMenu"in C&&"HTMLMenuItemElement"in e),b.addTest("classlist","classList"in C);var k="svg"===C.nodeName.toLowerCase();b.addTest("audio",function(){var e=o("audio"),t=!1;try{(t=!!e.canPlayType)&&(t=new Boolean(t),t.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),t.opus=e.canPlayType('audio/ogg; codecs="opus"')||e.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(n){}return t}),b.addTest("canvas",function(){var e=o("canvas");return!(!e.getContext||!e.getContext("2d"))}),b.addTest("canvastext",function(){return b.canvas===!1?!1:"function"==typeof o("canvas").getContext("2d").fillText}),b.addTest("contenteditable",function(){if("contentEditable"in C){var e=o("div");return e.contentEditable=!0,"true"===e.contentEditable}}),b.addTest("emoji",function(){if(!b.canvastext)return!1;var t=e.devicePixelRatio||1,n=12*t,r=o("canvas"),i=r.getContext("2d");return i.fillStyle="#f00",i.textBaseline="top",i.font="32px Arial",i.fillText("🐨",0,0),0!==i.getImageData(n,n,1,1).data[0]}),b.addTest("olreversed","reversed"in o("ol")),b.addTest("userdata",!!o("div").addBehavior),b.addTest("video",function(){var e=o("video"),t=!1;try{(t=!!e.canPlayType)&&(t=new Boolean(t),t.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),t.vp9=e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),t.hls=e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(n){}return t}),b.addTest("webgl",function(){var t=o("canvas"),n="probablySupportsContext"in t?"probablySupportsContext":"supportsContext";return n in t?t[n]("webgl")||t[n]("experimental-webgl"):"WebGLRenderingContext"in e}),b.addTest("adownload",!e.externalHost&&"download"in o("a")),b.addTest("bgpositionshorthand",function(){var e=o("a"),t=e.style,n="right 10px bottom 10px";return t.cssText="background-position: "+n+";",t.backgroundPosition===n}),b.addTest("multiplebgs",function(){var e=o("a").style;return e.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(e.background)}),b.addTest("regions",function(){if(k)return!1;var e=b.prefixed("flowFrom"),t=b.prefixed("flowInto"),r=!1;if(!e||!t)return r;var i=o("iframe"),a=o("div"),s=o("div"),d=o("div"),l="modernizr_flow_for_regions_check";s.innerText="M",a.style.cssText="top: 150px; left: 150px; padding: 0px;",d.style.cssText="width: 50px; height: 50px; padding: 42px;",d.style[e]=l,a.appendChild(s),a.appendChild(d),C.appendChild(a);var c,u,p=s.getBoundingClientRect();return s.style[t]=l,c=s.getBoundingClientRect(),u=parseInt(c.left-p.left,10),C.removeChild(a),42==u?r=!0:(C.appendChild(i),p=i.getBoundingClientRect(),i.style[t]=l,c=i.getBoundingClientRect(),p.height>0&&p.height!==c.height&&0===c.height&&(r=!0)),s=d=a=i=n,r}),b.addTest("cssremunit",function(){var e=o("a").style;try{e.fontSize="3rem"}catch(t){}return/rem/.test(e.fontSize)}),b.addTest("rgba",function(){var e=o("a").style;return e.cssText="background-color:rgba(150,255,150,.5)",(""+e.backgroundColor).indexOf("rgba")>-1}),b.addTest("dataset",function(){var e=o("div");return e.setAttribute("data-a-b","c"),!(!e.dataset||"c"!==e.dataset.aB)}),b.addTest("outputelem","value"in o("output")),b.addTest("ruby",function(){function n(n,r){var i;return e.getComputedStyle?i=t.defaultView.getComputedStyle(n,null).getPropertyValue(r):n.currentStyle&&(i=n.currentStyle[r]),i}function r(){C.removeChild(i),i=null,a=null,s=null}var i=o("ruby"),a=o("rt"),s=o("rp"),d="display",l="fontSize";return i.appendChild(s),i.appendChild(a),C.appendChild(i),"none"==n(s,d)||"ruby"==n(i,d)&&"ruby-text"==n(a,d)||"6pt"==n(s,l)&&"6pt"==n(a,l)?(r(),!0):(r(),!1)}),b.addTest("time","valueAsDate"in o("time")),b.addTest("fileinput",function(){if(navigator.userAgent.match(/(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Windows Phone (OS 7|8.0))|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|(Kindle\/(1.0|2.0|2.5|3.0))/))return!1;var e=o("input");return e.type="file",!e.disabled}),b.addTest("formattribute",function(){var e,n=o("form"),r=o("input"),i=o("div"),a="formtest"+(new Date).getTime(),s=!1;n.id=a;try{r.setAttribute("form",a)}catch(d){t.createAttribute&&(e=t.createAttribute("form"),e.nodeValue=a,r.setAttributeNode(e))}return i.appendChild(n),i.appendChild(r),C.appendChild(i),s=n.elements&&1===n.elements.length&&r.form==n,i.parentNode.removeChild(i),s}),b.addTest("sandbox","sandbox"in o("iframe")),b.addTest("seamless","seamless"in o("iframe")),b.addTest("srcdoc","srcdoc"in o("iframe")),b.addTest("scriptasync","async"in o("script")),b.addTest("scriptdefer","defer"in o("script")),b.addTest("stylescoped","scoped"in o("style")),b.addTest("inlinesvg",function(){var e=o("div");return e.innerHTML="","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)});var E=function(){function e(e,t){var i;return e?(t&&"string"!=typeof t||(t=o(t||"div")),e="on"+e,i=e in t,!i&&r&&(t.setAttribute||(t=o("div")),t.setAttribute(e,""),i="function"==typeof t[e],t[e]!==n&&(t[e]=n),t.removeAttribute(e)),i):!1}var r=!("onblur"in t.documentElement);return e}();T.hasEvent=E,b.addTest("hashchange",function(){return E("hashchange",e)===!1?!1:t.documentMode===n||t.documentMode>7});var z=o("input"),P="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),M={};b.input=function(t){for(var n=0,r=t.length;r>n;n++)M[t[n]]=!!(t[n]in z);return M.list&&(M.list=!(!o("datalist")||!e.HTMLDataListElement)),M}(P),b.addTest("datalistelem",b.input.list);var A="search tel url email datetime date month week time datetime-local number range color".split(" "),R={};b.inputtypes=function(e){for(var r,i,o,a=e.length,s="1)",d=0;a>d;d++)z.setAttribute("type",r=e[d]),o="text"!==z.type&&"style"in z,o&&(z.value=s,z.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(r)&&z.style.WebkitAppearance!==n?(C.appendChild(z),i=t.defaultView,o=i.getComputedStyle&&"textfield"!==i.getComputedStyle(z,null).WebkitAppearance&&0!==z.offsetHeight,C.removeChild(z)):/^(search|tel)$/.test(r)||(o=/^(url|email)$/.test(r)?z.checkValidity&&z.checkValidity()===!1:z.value!=s)),R[e[d]]=!!o;return R}(A);var W=T._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];T._prefixes=W,b.addTest("csscalc",function(){var e="width:",t="calc(10px);",n=o("a");return n.style.cssText=e+W.join(t+e),!!n.style.length}),b.addTest("cubicbezierrange",function(){var e=o("a");return e.style.cssText=W.join("transition-timing-function:cubic-bezier(1,0,0,1.1); "),!!e.style.length}),b.addTest("cssgradients",function(){for(var e,t="background-image:",n="gradient(linear,left top,right bottom,from(#9f9),to(white));",r="",i=0,a=W.length-1;a>i;i++)e=0===i?"to ":"",r+=t+W[i]+"linear-gradient("+e+"left top, #9f9, white);";b._config.usePrefixes&&(r+=t+"-webkit-"+n);var s=o("a"),d=s.style;return d.cssText=r,(""+d.backgroundImage).indexOf("gradient")>-1}),b.addTest("opacity",function(){var e=o("a").style;return e.cssText=W.join("opacity:.55;"),/^0.55$/.test(e.opacity)}),b.addTest("csspositionsticky",function(){var e="position:",t="sticky",n=o("a"),r=n.style;return r.cssText=e+W.join(t+";"+e).slice(0,-e.length),-1!==r.position.indexOf(t)});var _="CSS"in e&&"supports"in e.CSS,L="supportsCSS"in e;b.addTest("supports",_||L),b.addTest("hsla",function(){var e=o("a").style;return e.cssText="background-color:hsla(120,40%,100%,.5)",a(e.backgroundColor,"rgba")||a(e.backgroundColor,"hsla")});var N={}.toString;b.addTest("svgclippaths",function(){return!!t.createElementNS&&/SVGClipPath/.test(N.call(t.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),b.addTest("smil",function(){return!!t.createElementNS&&/SVGAnimate/.test(N.call(t.createElementNS("http://www.w3.org/2000/svg","animate")))});var O="Moz O ms Webkit",I=T._config.usePrefixes?O.toLowerCase().split(" "):[];T._domPrefixes=I,b.addTest("pointerevents",function(){var e=!1,t=I.length;for(e=b.hasEvent("pointerdown");t--&&!e;)E(I[t]+"pointerdown")&&(e=!0);return e});var B=T._config.usePrefixes?O.split(" "):[];T._cssomPrefixes=B;var H=function(t){var r,i=W.length,o=e.CSSRule;if("undefined"==typeof o)return n;if(!t)return!1;if(t=t.replace(/^@/,""),r=t.replace(/-/g,"_").toUpperCase()+"_RULE",r in o)return"@"+t;for(var a=0;i>a;a++){var s=W[a],d=s.toUpperCase()+"_"+r;if(d in o)return"@-"+s.toLowerCase()+"-"+t}return!1};T.atRule=H;var q=T.testStyles=c;b.addTest("mathml",function(){var e;return q("#modernizr{position:absolute;display:inline-block}",function(t){t.innerHTML+="xxyy",e=t.offsetHeight>t.offsetWidth}),e}),b.addTest("unicode",function(){var e,t=o("span"),n=o("span");return q("#modernizr{font-family:Arial,sans;font-size:300em;}",function(r){t.innerHTML=k?"妇":"ᝣ",n.innerHTML=k?"☆":"☆",r.appendChild(t),r.appendChild(n),e="offsetWidth"in t&&t.offsetWidth!==n.offsetWidth}),e});var F=function(){var e=navigator.userAgent,t=e.match(/applewebkit\/([0-9]+)/gi)&&parseFloat(RegExp.$1),n=e.match(/w(eb)?osbrowser/gi),r=e.match(/windows phone/gi)&&e.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9,i=533>t&&e.match(/android/gi);return n||i||r}();F?b.addTest("fontface",!1):q('@font-face {font-family:"font";src:url("https://")}',function(e,n){var r=t.getElementById("smodernizr"),i=r.sheet||r.styleSheet,o=i?i.cssRules&&i.cssRules[0]?i.cssRules[0].cssText:i.cssText||"":"",a=/src/i.test(o)&&0===o.indexOf(n.split(" ")[0]);b.addTest("fontface",a)}),q('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(e){b.addTest("generatedcontent",e.offsetHeight>=7)}),q("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}",function(e){b.addTest("lastchild",e.lastChild.offsetWidth>e.firstChild.offsetWidth)},2),q("#modernizr{overflow: scroll; width: 40px; height: 40px; }#"+W.join("scrollbar{width:0px} #modernizr::").split("#").slice(1).join("#")+"scrollbar{width:0px}",function(e){b.addTest("cssscrollbar",40==e.scrollWidth)}),q("#modernizr{position: absolute; top: -10em; visibility:hidden; font: normal 10px arial;}#subpixel{float: left; font-size: 33.3333%;}",function(t){var n=t.firstChild;n.innerHTML="This is a text written in Arial",b.addTest("subpixelfont",e.getComputedStyle?"44px"!==e.getComputedStyle(n,null).getPropertyValue("width"):!1)},1,["subpixel"]),q("#modernizr { height: 50vh; }",function(t){var n=parseInt(e.innerHeight/2,10),r=parseInt((e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).height,10);b.addTest("cssvhunit",r==n)}),q("#modernizr1{width: 50vmax}#modernizr2{width:50px;height:50px;overflow:scroll}#modernizr3{position:fixed;top:0;left:0;bottom:0;right:0}",function(t){var n=t.childNodes[2],r=t.childNodes[1],i=t.childNodes[0],o=parseInt((r.offsetWidth-r.clientWidth)/2,10),a=i.clientWidth/100,d=i.clientHeight/100,l=parseInt(50*Math.max(a,d),10),c=parseInt((e.getComputedStyle?getComputedStyle(n,null):n.currentStyle).width,10);b.addTest("cssvmaxunit",s(l,c)||s(l,c-o))},3),q("#modernizr1{width: 50vm;width:50vmin}#modernizr2{width:50px;height:50px;overflow:scroll}#modernizr3{position:fixed;top:0;left:0;bottom:0;right:0}",function(t){var n=t.childNodes[2],r=t.childNodes[1],i=t.childNodes[0],o=parseInt((r.offsetWidth-r.clientWidth)/2,10),a=i.clientWidth/100,d=i.clientHeight/100,l=parseInt(50*Math.min(a,d),10),c=parseInt((e.getComputedStyle?getComputedStyle(n,null):n.currentStyle).width,10);b.addTest("cssvminunit",s(l,c)||s(l,c-o))},3),q("#modernizr { width: 50vw; }",function(t){var n=parseInt(e.innerWidth/2,10),r=parseInt((e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).width,10);b.addTest("cssvwunit",r==n)}),b.addTest("details",function(){var e,t=o("details");return"open"in t?(q("#modernizr details{display:block}",function(n){n.appendChild(t),t.innerHTML="ab",e=t.offsetHeight,t.open=!0,e=e!=t.offsetHeight}),e):!1}),b.addTest("formvalidation",function(){var t=o("form");if(!("checkValidity"in t&&"addEventListener"in t))return!1;if("reportValidity"in t)return!0;var n,r=!1;return b.formvalidationapi=!0,t.addEventListener("submit",function(t){e.opera&&!e.operamini||t.preventDefault(),t.stopPropagation()},!1),t.innerHTML='',q("#modernizr form{position:absolute;top:-99999em}",function(e){e.appendChild(t),n=t.getElementsByTagName("input")[0],n.addEventListener("invalid",function(e){r=!0,e.preventDefault(),e.stopPropagation()},!1),b.formvalidationmessage=!!n.validationMessage,t.getElementsByTagName("button")[0].click()}),r});var V=function(){var t=e.matchMedia||e.msMatchMedia;return t?function(e){var n=t(e);return n&&n.matches||!1}:function(t){var n=!1;return c("@media "+t+" { #modernizr { position: absolute; } }",function(t){n="absolute"==(e.getComputedStyle?e.getComputedStyle(t,null):t.currentStyle).position}),n}}();T.mq=V,b.addTest("mediaqueries",V("only all"));var $={elem:o("modernizr")};b._q.push(function(){delete $.elem});var D={style:$.elem.style};b._q.unshift(function(){delete D.style});var j=T.testProp=function(e,t,r){return h([e],n,t,r)};b.addTest("textshadow",j("textShadow","1px 1px")),T.testAllProps=g;var G=T.prefixed=function(e,t,n){return 0===e.indexOf("@")?H(e):(-1!=e.indexOf("-")&&(e=d(e)),t?g(e,t,n):g(e,"pfx"))};b.addTest("forcetouch",function(){return E(G("mouseforcewillbegin",e,!1),e)?MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN&&MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN:!1}),b.addTest("fullscreen",!(!G("exitFullscreen",t,!1)&&!G("cancelFullScreen",t,!1))),b.addTest("gamepads",!!G("getGamepads",navigator));var U;try{U=G("indexedDB",e)}catch(w){}b.addTest("indexeddb",!!U),U&&b.addTest("indexeddb.deletedatabase","deleteDatabase"in U),b.addTest("performance",!!G("performance",e)),b.addTest("pointerlock",!!G("exitPointerLock",t)),b.addTest("quotamanagement",function(){var e=G("temporaryStorage",navigator),t=G("persistentStorage",navigator);return!(!e||!t)}),b.addTest("vibrate",!!G("vibrate",navigator)),b.addTest("webintents",!!G("startActivity",navigator)),b.addTest("lowbattery",function(){var e=.2,t=G("battery",navigator);return!!(t&&!t.charging&&t.level<=e)}),b.addTest("filesystem",!!G("requestFileSystem",e)),b.addTest("getusermedia",!!G("getUserMedia",navigator)),T.testAllProps=v,b.addTest("cssanimations",v("animationName","a",!0)),b.addTest("bgpositionxy",function(){return v("backgroundPositionX","3px",!0)&&v("backgroundPositionY","5px",!0)}),b.addTest("backgroundsize",v("backgroundSize","100%",!0)),b.addTest("bgsizecover",v("backgroundSize","cover")),b.addTest("borderimage",v("borderImage","url() 1",!0)),b.addTest("borderradius",v("borderRadius","0px",!0)),b.addTest("boxshadow",v("boxShadow","1px 1px",!0)),b.addTest("boxsizing",v("boxSizing","border-box",!0)&&(t.documentMode===n||t.documentMode>7)),function(){b.addTest("csscolumns",function(){var e=!1,t=v("columnCount");try{(e=!!t)&&(e=new Boolean(e))}catch(n){}return e});for(var e,t,n=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],r=0;r9)}),b.addTest("flexbox",v("flexBasis","1px",!0)),b.addTest("flexboxlegacy",v("boxDirection","reverse",!0)),b.addTest("cssmask",v("maskRepeat","repeat-x",!0)),b.addTest("overflowscrolling",v("overflowScrolling","touch",!0)),b.addTest("cssreflections",v("boxReflect","above",!0)),b.addTest("cssresize",v("resize","both",!0)),b.addTest("csstransforms3d",function(){var e=!!v("perspective","1px",!0),t=b._config.usePrefixes;if(e&&(!t||"webkitPerspective"in C.style)){var n,r="#modernizr{width:0;height:0}";b.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",q(r+n,function(t){e=7===t.offsetWidth&&18===t.offsetHeight})}return e}),b.addTest("csstransitions",v("transition","all",!0)),b.addTest("userselect",v("userSelect","none",!0)),i(),delete T.addTest,delete T.addAsyncTest;for(var X=0;X"+e)}},ayah_debug_verbose=function(e){};module.exports=function(e){return"undefined"!=typeof e.enable_debug&&(ayah_debug_enabled=e.enable_debug),"undefined"!=typeof e.enable_debug_verbose&&(ayah_debug_verbose_enabled=e.enable_debug_verbose),{ayah_debug:ayah_debug,ayah_debug_verbose:ayah_debug_verbose}}; },{}],22:[function(require,module,exports){ var CryptoJS=CryptoJS||function(t,n){var i={},e=i.lib={},r=function(){},s=e.Base={extend:function(t){r.prototype=this;var n=new r;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=e.WordArray=s.extend({init:function(t,i){t=this.words=t||[],this.sigBytes=i!=n?i:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var n=this.words,i=t.words,e=this.sigBytes;if(t=t.sigBytes,this.clamp(),e%4)for(var r=0;t>r;r++)n[e+r>>>2]|=(i[r>>>2]>>>24-8*(r%4)&255)<<24-8*((e+r)%4);else if(65535r;r+=4)n[e+r>>>2]=i[r>>>2];else n.push.apply(n,i);return this.sigBytes+=t,this},clamp:function(){var n=this.words,i=this.sigBytes;n[i>>>2]&=4294967295<<32-8*(i%4),n.length=t.ceil(i/4)},clone:function(){var t=s.clone.call(this);return t.words=this.words.slice(0),t},random:function(n){for(var i=[],e=0;n>e;e+=4)i.push(4294967296*t.random()|0);return new o.init(i,n)}}),a=i.enc={},c=a.Hex={stringify:function(t){var n=t.words;t=t.sigBytes;for(var i=[],e=0;t>e;e++){var r=n[e>>>2]>>>24-8*(e%4)&255;i.push((r>>>4).toString(16)),i.push((15&r).toString(16))}return i.join("")},parse:function(t){for(var n=t.length,i=[],e=0;n>e;e+=2)i[e>>>3]|=parseInt(t.substr(e,2),16)<<24-4*(e%8);return new o.init(i,n/2)}},h=a.Latin1={stringify:function(t){var n=t.words;t=t.sigBytes;for(var i=[],e=0;t>e;e++)i.push(String.fromCharCode(n[e>>>2]>>>24-8*(e%4)&255));return i.join("")},parse:function(t){for(var n=t.length,i=[],e=0;n>e;e++)i[e>>>2]|=(255&t.charCodeAt(e))<<24-8*(e%4);return new o.init(i,n)}},u=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(n){throw Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},f=e.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var i=this._data,e=i.words,r=i.sigBytes,s=this.blockSize,a=r/(4*s),a=n?t.ceil(a):t.max((0|a)-this._minBufferSize,0);if(n=a*s,r=t.min(4*n,r),n){for(var c=0;n>c;c+=s)this._doProcessBlock(e,c);c=e.splice(0,n),i.sigBytes-=r}return new o.init(c,r)},clone:function(){var t=s.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});e.Hasher=f.extend({cfg:s.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(n,i){return new t.init(i).finalize(n)}},_createHmacHelper:function(t){return function(n,i){return new l.HMAC.init(t,i).finalize(n)}}});var l=i.algo={};return i}(Math);!function(){var t=CryptoJS,n=t.lib,i=n.WordArray,e=n.Hasher,r=[],n=t.algo.SHA1=e.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,n){for(var i=this._hash.words,e=i[0],s=i[1],o=i[2],a=i[3],c=i[4],h=0;80>h;h++){if(16>h)r[h]=0|t[n+h];else{var u=r[h-3]^r[h-8]^r[h-14]^r[h-16];r[h]=u<<1|u>>>31}u=(e<<5|e>>>27)+c+r[h],u=20>h?u+((s&o|~s&a)+1518500249):40>h?u+((s^o^a)+1859775393):60>h?u+((s&o|s&a|o&a)-1894007588):u+((s^o^a)-899497514),c=a,a=o,o=s<<30|s>>>2,s=e,e=u}i[0]=i[0]+e|0,i[1]=i[1]+s|0,i[2]=i[2]+o|0,i[3]=i[3]+a|0,i[4]=i[4]+c|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,e=8*t.sigBytes;return n[e>>>5]|=128<<24-e%32,n[(e+64>>>9<<4)+14]=Math.floor(i/4294967296),n[(e+64>>>9<<4)+15]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=e._createHelper(n),t.HmacSHA1=e._createHmacHelper(n)}(),module.exports=CryptoJS; },{}],23:[function(require,module,exports){ "use strict";var ayah_debug,addChecksum,pako=require("pako"),JSON=require("json3"),xhr_status=[],xhr_type="unknown",min_deflate_size=10240,xhr_obj={Xhr:function(){try{return xhr_type="new XMLHttpRequest()",new XMLHttpRequest}catch(e){}try{return xhr_type="new ActiveXObject(Msxml3.XMLHTTP)",new ActiveXObject("Msxml3.XMLHTTP")}catch(e){}try{return xhr_type="new ActiveXObject(Msxml2.XMLHTTP.6.0)",new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return xhr_type="new ActiveXObject(Msxml2.XMLHTTP.3.0)",new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return xhr_type="new ActiveXObject(Msxml2.XMLHTTP)",new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}try{return xhr_type="new ActiveXObject(Microsoft.XMLHTTP)",new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}return xhr_type="null",null},getXhrObject:function(){if(window.XDomainRequest){xhr_obj.updateStatus("Using new XDomainRequest()");var e=new XDomainRequest;e.onload=function(){}}else{var e=xhr_obj.Xhr();xhr_obj.updateStatus("Using "+xhr_type)}return e},sendGetRequest:function(e){var t=xhr_obj.getXhrObject();t.open("get",e),t.send()},sendPostRequest:function(e){addChecksum(e.payload),e.payload=JSON.stringify(e.payload),void 0===e.async&&(e.async=!0),void 0===e.deflate&&(e.deflate=!1,e.payload.length>min_deflate_size&&(e.deflate=!0));try{xhr_obj.__sendPostRequest(e)}catch(t){xhr_obj.__retry(e,t.message)}},__retry:function(e,t){e.deflate&&(xhr_obj.updateStatus("sendPostRequest: failed sending a deflated payload: "+t),e.deflate=!1,xhr_obj.__sendPostRequest(e))},__sendPostRequest:function(e){var t=xhr_obj.getXhrObject();t.onreadystatechange=function(){4==t.readyState&&200!==t.status&&xhr_obj.__retry(e,"POST call failed: status="+t.status)};var n=function(){};t.onprogress=n,t.ontimeout=n,t.onerror=n,t.onload=n,xhr_obj.updateStatus("__sendPostRequest: Calling xhr.open(), async="+e.async),t.open("post",e.url,e.async),xhr_obj.setRequestHeader(t,"Content-type","application/json"),t.withCredentials=!0;var s=e.payload;if(e.deflate&&xhr_obj.setRequestHeader(t,"Content-encoding","deflate")){s.length;xhr_obj.updateStatus("__sendPostRequest: Calling pako.deflate()"),s=pako.deflate(s)}xhr_obj.updateStatus("__sendPostRequest: Calling xhr.send()"),t.send(s),xhr_obj.updateStatus("__sendPostRequest: Called xhr.send()")},setRequestHeader:function(e,t,n){try{return e.setRequestHeader(t,n),!0}catch(s){xhr_obj.updateStatus("setRequestHeader: Call to xhr.setRequestHeader() failed: "+s.message)}},updateStatus:function(e){xhr_status.push(e)},getStatus:function(){return xhr_status}};module.exports=function(e){return ayah_debug=e.getDebugFunction(),addChecksum=e.getAddChecksum(),xhr_obj}; },{"json3":1,"pako":2}],24:[function(require,module,exports){ var factory,ayah_debug,streamStats=function(){var t=factory.getStreamStats().getStats();for(var a in t)if(t.hasOwnProperty(a)){var r=t[a];r.count}};module.exports=function(t){return factory=t,ayah_debug=factory.getDebugFunction(),streamStats}; },{}],25:[function(require,module,exports){ (ayahouter=function(e,t,n){function r(){if("undefined"==typeof e)throw new Error("window is undefined");if("undefined"==typeof e.document)throw new Error("window.document is undefined");return"undefined"!=typeof e.AYAH_STARTED&&"started"==e.AYAH_STARTED?!1:(e.AYAH_STARTED="started",!0)}function a(e,n){function r(){try{var o=t.createElement("iframe");o.id="AYAH_iframe"+(new Date).getTime();var c=i();o.src=e+n.iframe_url+c,o.width=0,o.height=0,o.scrolling="no",o.frameBorder=0,o.style.cssText="border:none;overflow:hidden;display:none;";var l=t.getElementsByTagName("script")[0];l.parentNode.insertBefore(o,l),a&&A({count:a,message:"litter_success"})}catch(s){if(a++,a>300)return void A({count:a,message:"litter_failure"});setTimeout(r,100)}}var a=0;r()}function i(){var e="?ak="+O+"&pk="+n.publisher_key+"&AYAH_VERSION="+n.AYAH_VERSION;return e+="&rthtsync="+n.rthtsync+"&cookiesync="+n.cookiesync}function o(){var e=D.getEventManager();e.add(t,"touchstart",k.countMultiTouch),e.add(t,"touchend",k.endMultiTouch),e.add(t,"keyup",k.handleKeyEvent),m=setInterval(k.countOrientationChanges,100)}function c(e){v("Received call to ayahCleanup()"),clearInterval(m),v("Calling sendTelemetryEvent()"),u(e),v("Exiting ayahCleanup()")}function l(){var e=D.getSerializer().getAllObservations();e.type="telemetry",e.ak=O,e.pk=n.publisher_key,e.AYAH_VERSION=n.AYAH_VERSION;var t=D.getStreamStats().getAggregateStats();return e.ec=t.count,e.ea=t.average.toFixed(3),k.addDeviceData(e),k.addUserAgentData(e),k.addTelemetryData(e),v("getCollectedData: Calling addScriptParameters()"),g(e),e}function s(){var e=d(),t=!0;v("sendInitEvent: Calling sendEvent()"),f(w,n.events_url,e,t)}function u(e){if("undefined"==typeof _){v("sendTelemetryEvent: Calling getCollectedData()");var t=l();t.before_unload_event_fired=e;var r=0==e;v("sendTelemetryEvent: Calling sendEvent()"),f(w,n.events_url,t,r),_=!0}}function d(){var e={type:"init",set_id:!0,ak:O,pk:n.publisher_key,AYAH_VERSION:n.AYAH_VERSION};return k.addDeviceData(e),k.addUserAgentData(e),v("getInitData: Calling addScriptParameters()"),g(e),e}function g(e){var t=y();for(p in t)e[p]=t[p]}function f(e,t,n,r){var a=e+t+"?cb="+O;b.sendPostRequest({url:a,payload:n,async:r})}function y(){var e,n="",r={},a=decodeURIComponent;if("object"==typeof t.currentScript&&null!=t.currentScript&&"string"==typeof t.currentScript.src)n=t.currentScript.src;else{var i=t.getElementsByTagName("script");for(o=i.length-1;o>=0;o--)if(i[o].src.toLowerCase().indexOf(".areyouahuman.com/play")>0){n=i[o].src;break}}if(-1!=n.indexOf("?")){querystring=n.substring(n.indexOf("?")+1).split("&");for(var o=querystring.length-1;o>=0;o--)e=querystring[o].split("="),0==e[0].indexOf("AYAH_")&&(r[a(e[0])]=a(e[1]))}return r}function v(e){T.push(e)}function h(e){return T}function A(t){var r="";try{r=e.location.href}catch(a){}var i="[not available]",o={href:r||i,attempt_key:O,publisher_key:n.publisher_key,AYAH_VERSION:n.AYAH_VERSION};try{k.addUserAgentData(o)}catch(c){error.ua_data=i}for(var l in t)t.hasOwnProperty(l)&&(o[l]=t[l]);var s=n.log_url+"error="+E.stringify(o);b.sendGetRequest(s)}require("./collectData/polyfills");var m,_,E=require("json3"),S=require("./collectData/config"),D=require("./collectData/Factory")(S,n,e,t),C=D.getCollector(),b=D.getXhr(),k=D.getLegacyCatFunctions(),T=(D.getDebugFunction(),D.getVerboseDebugFunction(),D.getStreamStatsDebugFunction(),[]),O=D.getUUID().make(),w="https:";try{if(v("Calling initialize()"),!r())return;v("Calling createLitter()"),a(w,n),v("Calling sendInitEvent()"),s(),v("calling collectLegacyData()"),o(),v("Calling collector.collect()"),C.collect(c),v("Waiting for call to ayahCleanup()")}catch(I){var R="[not available]";A({cat_status:h(),xhr_status:b.getStatus(),message:I.message||R,stack:I.stack||R})}})(window,document,AyahPublisherOptions); },{"./collectData/Factory":31,"./collectData/config":48,"./collectData/polyfills":49,"json3":1}],26:[function(require,module,exports){ var ayah_debug,window,Automation=function(){function n(n){return Number(Boolean(n))}var t={get:function(){var n=[];try{n=[o(),r(),u(),i(),e(),a(),w()]}catch(t){}return n}},o=function(){var n;try{null[0]()}catch(t){n=t}return Number(d(n.stack,"phantomjs://")>-1||window._phantom||window.__phantomas||window.callPhantom||0==navigator.onLine&&""==navigator.plugins)},r=function(){return n(window.Buffer)},u=function(){return n(window.emit)},i=function(){return n(window.spawn)},e=function(){return n(window.webdriver)},a=function(){return n(window.domAutomation||window.domAutomationController)},w=function(){return Number(0===window.outerWidth&&0===window.outerHeight)},d=function(n,t){if(!n||!t)return-1;for(var o=0;o=0}catch(r){}},n.shouldGetInitialValue=function(t){try{return this._config.streams[t].get_initial_value||!1}catch(e){}},n.getPollingStreams=function(){var t=this._config.streams;return this.getActiveStreams().filter(function(e){try{return t[e].polling}catch(r){return!1}})},n._extrapolateDefaults=function(t){var e,r="defaults",n={},a={};r in t&&(a=t[r]);for(e in t)t.hasOwnProperty(e)&&e!=r&&("object"!=typeof t[e]||t[e]instanceof Array?n[e]=t[e]:n[e]=i(a,this._extrapolateDefaults(t[e])));return n};var i=function(t,r){var n=r instanceof Array,a=n&&[]||{};if(n){t=t||[],a=a.concat(t);for(var s in r)r.hasOwnProperty(s)&&(e=r[s],"undefined"==typeof a[s]?a[s]=e:"object"==typeof e?a[s]=i(t[s],e):-1===t.indexOf(e)&&a.push(e))}else{if(t&&"object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&(a[o]=t[o]);for(var o in r)r.hasOwnProperty(o)&&("object"==typeof r[o]&&r[o]&&t[o]?a[o]=i(t[o],r[o]):a[o]=r[o])}return a};return r}();module.exports=function(t,e){return ayah_debug=e.getDebugFunction(),new AyahConfig(t)}; },{}],28:[function(require,module,exports){ var factory,options,config,running,callback,ayah_debug,window,stop_collection_timer,stream,start_timestamp,collectData=function(t){if(!running){start_timestamp=(new Date).getTime(),running=!0,callback=t,window.onbeforeunload=stopCollection(!0);var e=factory.getCollectionLimit();e.on("reached",stopCollection(!1)),factory.getEventFeed().start(),stream=factory.getStream(),stream.ingest(factory.getModernizrFeatures().getAll(),"modernizr"),stream.ingest(factory.getAutomation().get(),"automation"),stream.ingest(factory.getPerformance().get(),"performance"),factory.getPollingFeed().start()}},stopCollection=function(t){return function(){if(running){var e=(new Date).getTime()-start_timestamp,o=(new Date).getTimezoneOffset()/60;stream.ingest([start_timestamp,e,o],"data_collection_timer"),clearTimeout(stop_collection_timer),factory.getPollingFeed().stop(),factory.getStream().stop(),factory.getEventManager().cleanUp(),running=!1,"function"==typeof callback&&callback(t)}}},Collector={collect:collectData,stop:stopCollection(!1)};module.exports=function(t,e,o){return factory=o,config=factory.getAyahConfig(),ayah_debug=factory.getDebugFunction(),options=e,window=t,Collector}; },{}],29:[function(require,module,exports){ var EventFeed=function(){var t,e=function(e){return t?t:(t=this,this._factory=e,this._stream=e.getStream(),this._events=e.getEventManager(),void(this._config=e.getAyahConfig()))},n=e.prototype;return n.start=function(){this._subscribeToEvents()},n._subscribeToEvents=function(){for(var t=this._config.getActiveStreams(),e=0;e126;)u-=95;i.push(String.fromCharCode(u)),__ePointer=(__ePointer+1)%__chars.length}return e=String(i.join(""))},addUserAgentData=function(e){void 0==typeof e&&(e={});var t=require("ua-parser-js"),n=new t.UAParser;if("undefined"!=typeof n){var r=n.getResult();"undefined"!=typeof r&&(e.ua_browser_name=r.browser.name,e.ua_browser_version=r.browser.version,e.ua_browser_major=r.browser.major,e.ua_engine_name=r.engine.name,e.ua_engine_version=r.engine.version,e.ua_os_name=r.os.name,e.ua_os_version=r.os.version,e.ua_device_model=r.device.model,e.ua_device_type=r.device.type,e.ua_device_vendor=r.device.vendor,e.ua_cpu_architecture=r.cpu.architecture)}return e},getAdBlock=function(){var e="25,728,link,text,pub,9, ,_,-,A,3,a,d,m,x,0,s".split(","),t="important,position,absolute,height,width,left,top,000,px,:, ,1,;,-,0,!".split(","),n="47:??>0?647:??>0?=6471>5?638;<639<637;<637;<@638;<@638;<82@",r="49:;8:?0<:39:;8:?0<:19:2:?0<:59:=;7>8:?0<:69:=;78:?0<",i=function(e,t){for(var n="",r=0;ra)){var i=this._serializeStream(n,r);return i}},n._serializeStream=function(e,t){for(var r="",n=0,a=e.length,i=0;a>i;i++){var s=e[i];try{var o=this._translateMorselToLegacy(s);if(!o){this._next_index++;continue}if("number"==typeof t&&r.length+o.length>t)break;n&&(r+=","),n++,r+=o}catch(u){}this._next_index++}return{encoded:r,count:n}},n._getCombinedStreams=function(e){for(var t=this._stream.getData(),r=[],n=0;na;a++)t.push(parseInt(r[a]));var i=t.join(",");if(this._last_tuple!==i){this._last_tuple=i,t.push(e.millis);var s=t[2];switch(s){case 0:s=-1;break;case 1:s=0;break;case 4:s=1}return t[2]=s,t.join(",")}}},r}();module.exports=function(e){return ayah_debug=e.getDebugFunction(),ayah_debug_verbose=e.getVerboseDebugFunction(),new LegacySerializer(e)}; },{}],35:[function(require,module,exports){ var Modernizr,ayah_debug_verbose,ModernizrFeatures={getAll:function(){if("object"!=typeof Modernizr)return[];var e={};return this._unrollProperties(Modernizr,e),e},_unrollProperties:function(e,r,o){"undefined"==typeof o&&(o="");for(var n in e)if(e.hasOwnProperty(n)&&"_"!==n.substr(0,1)){var t=e[n];"object"!=typeof t||t===!1||t===!0?("string"==typeof e[n],r[o+n]=this._numericValue(t)):this._unrollProperties(t,r,o+n+".")}},_numericValue:function(e){return"probably"===e?2:e===!0||"maybe"===e?1:e===!1||""===e?0:e}};module.exports=function(e){return ayah_debug_verbose=e.getVerboseDebugFunction(),Modernizr=e.getModernizr(),ModernizrFeatures}; },{}],36:[function(require,module,exports){ var Morsel=function(){var t=function(t,e,i,r){this._timer=t.getTimer(),this._config=t.getAyahConfig(),this._factory=t,this.data=e,this.type=i,"number"==typeof r?this.millis=r:this.millis=this._getObjectTimestamp(e),this.sample_num=Math.floor(this.millis/this._config.getInterval(i))},e=t.prototype;return e.mustSample=function(){try{return this._config.shouldSampleAll(this.type,this.data.type)}catch(t){}return!1},e.makeTuples=function(){var t=this._factory.getTupleGetters().get(this);return t?(this.data=t,!0):!1},e._getObjectTimestamp=function(t){var e=this._timer.currentTime();return this._timer.getTimeElapsed(e)},t}();module.exports=function(t,e,i,r){return new Morsel(t,e,i,r)}; },{}],37:[function(require,module,exports){ var ayah_debug,Performance=function(){var r=function(e,n){return 1e-8>e?n:n>e?r(n-Math.floor(n/e)*e,e):e==n?e:r(n,e)};return{get:function(){var e=0;try{for(var n=performance.now()/1e3,o=performance.now()/1e3-n,a=0;10>a;a++)o=r(o,performance.now()/1e3-n);o>0&&(e=Math.round(1/o))}catch(t){}return e}}};module.exports=function(r){return ayah_debug=r.getDebugFunction(),Performance}; },{}],38:[function(require,module,exports){ "use strict";var config,stream,ayah_debug,running=!1,start=function(){if(!running){ingestInitialValues();var n=config.getPollingStreams();running=!0,n.forEach(setupInterval)}},stop=function(){running=!1},setupInterval=function(n){var t=config.getPollingInterval(n),e=makeHandler(n,t);e()},makeHandler=function(n,t){var e=function(){running&&(stream.ingest(null,n),setTimeout(e,t))};return e},ingestInitialValues=function(){for(var n=config.getActiveStreams(),t=0;te.sample_num},i._checkDuplicateTuples=function(t,e){return void 0==e?!0:this._config.getAllowRepetition(t.type)?!0:t.data.length!==e.data.length?!0:this._compareAllTuples(t,e)},i._compareAllTuples=function(t,e){for(var a=t.data.length,i=0;a>i;i++)if(this._compareTuple(t.data[i],e.data[i]))return!0;return!1},i._compareTuple=function(t,e){for(var a=t.length,i=0;a>i;i++)if(t[i]!==e[i])return!0;return!1},i._getLastSample=function(t){if(this._data[t]){var e=this._data[t];return e[e.length-1]}},a}();module.exports=function(t){return ayah_debug=t.getDebugFunction(),new Stream(t)}; },{"tiny-emitter":18}],40:[function(require,module,exports){ var ayah_debug,StreamStats=function(){var t,e=function(e){return t?t:(t=this,this._stats={},this._timer=e.getTimer(),this._config=e.getAyahConfig(),void this.init())},i=e.prototype;return i.init=function(){for(var t=this._config.getActiveStreams(),e=0,i=t.length;i>e;e++){var r=t[e];this._stats[r]={count:0,time:0,avg:0}}},i.start=function(){return this._timer.getPerfTime()},i.updateStats=function(t,e){var i=this._timer.getPerfTime()-e,r=this._stats;if(t in r){var a=r[t];a.time+=i,a.count++}},i.getStats=function(){return this.getAverages(),this._stats},i.getAggregateStats=function(){var t=this._stats,e=0,i=0;for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];e+=a.count,i+=a.time}var n=0;return e&&(n=i/e),{count:e,time:i,average:n}},i.getAverages=function(){var t=this._stats,e=[];for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];r.count&&(r.avg=parseFloat((r.time/r.count).toFixed(3))),e.push(r.avg)}return e},e}();module.exports=function(t){return ayah_debug=t.getDebugFunction(),new StreamStats(t)}; },{}],41:[function(require,module,exports){ var Timer=function(){var t,e=function(e){return t?t:(t=this,this._config=e.getAyahConfig(),void(this._start_time=this.currentTime()))},r=e.prototype;return r.currentTime=function(){return(new Date).getTime()},r.getPerfTime=function(){try{return window.performance.now()}catch(t){return this.currentTime()}},r.getTimeElapsed=function(t){return t-this._start_time},r.getStartTime=function(){return this._start_time},r.getTimeElapsedNow=function(){return this.getTimeElapsed(this.currentTime())},e}();module.exports=function(t){return new Timer(t)}; },{}],42:[function(require,module,exports){ var TupleCounter=function(t){this._whitelist=t||[],this._streams={}},proto=TupleCounter.prototype;proto.countTuple=function(t){return!t||this._whitelist.length&&-1===this._whitelist.indexOf(t)?!1:(this._streams[t]=(this._streams[t]||0)+1,!0)},proto.getCounts=function(){return this._streams},module.exports=TupleCounter; },{}],43:[function(require,module,exports){ var ayah_debug,ayah_debug_verbose,Util=require("./Util"),JSON=require("json3"),TupleGetters=function(){var t,e={VOWEL:0,CONSONANT:1,NUMERIC:2,OTHER:3,CONTROL:4},n=function(e){return this._config=e,t?t:void(t=this)},o=n.prototype;o.get=function(t){return this.getTupleWith(t,this._config.getTupleFormat(t.type))||this.getTupleWith(t,t.type)},o.getTupleWith=function(t,e){if("function"==typeof this[e])try{return this[e](t)}catch(n){}},o.mouse=function(t){h(t.data);var e=t.data.buttons||t.data.button||-1,n=[t.data.pageX,t.data.pageY,e];return[n]},o.mousemove=function(t){var e=[u(t.data.clientX),u(t.data.clientY)].map(i);return[e]},o.legacy_touch=function(t){h(t.data.touches[0]);var e=[parseInt(t.data.touches[0].pageX),parseInt(t.data.touches[0].pageY),4];return[e]},o.buttons=function(t){h(t.data);var e=t.data.buttons||t.data.button||-1,n=[t.data.pageX,t.data.pageY,e];return[n]},o.mousebuttons=function(t){var e=[t.data.buttons].map(i);return[e]},o.fulltouch=function(t){for(var e=[],n=0;n=65&&90>=t||t>=97&&122>=t?"aeiouy".indexOf(n.toLowerCase())>=0?e.VOWEL:e.CONSONANT:t>=48&&57>=t?e.NUMERIC:[8,9,13,27,127].indexOf(t)>=0||t>=37&&40>=t||t>=33&&36>=t||t>=112&&123>=t?e.CONTROL:e.OTHER};o.sortedProperties=function(t,e){for(var n=Util.sortedObjectKeys(t.data),o=[],r=0;r>>0,t=arguments.length<3?4294967295:arguments[2]>>>0,n=arguments.length<4?4294967295:arguments[3]>>>0,a=new Array(256),o=function(r,e){for(var t=0;--e>=0;)t<<=1,t|=1&r,r>>>=1;return t},u=-1;++u<256;){for(var g=o(u,32),i=-1;++i<8;)g=(g<<1^(g>>>31&1)*e)>>>0;a[u]=o(g,32)}for(var c=t,h=r.length,v=-1;++v255)throw new RangeError;var d=255&c^f;c=(c>>>8^a[d])>>>0}return(c^n)>>>0}var e="c";return function(t){var n=-1;try{for(var a=Util.sortedObjectKeys(t),o="",u=0;u=2||numStreamsAtMin()>=4){try{}catch(e){}stopCollection()}},hasReachedMax=function(e){return checkTupleCount(e,config.getMaxTuples(e))},hasReachedMin=function(e){return checkTupleCount(e,config.getMinTuples(e))},checkTupleCount=function(e,t){var n=counter.getCounts();return n[e]&&void 0!=t?n[e]>=t:!1},numStreamsAtMax=function(){return numStreamsAtLimit(hasReachedMax)},numStreamsAtMin=function(){return numStreamsAtLimit(hasReachedMin)},numStreamsAtLimit=function(e){var t=counter.getCounts(),n=0;for(var o in t)t.hasOwnProperty(o)&&e(o)&&n++;return n},stopCollection=function(){clearTimeout(stop_collection_timer),stream.off("ingest",onIngest),emitter.emit("reached")},throttledCheckCounts=function(){return(new Date).getTime()-last_check>>0,o=Number(arguments[1])||0;for(o=0>o?Math.ceil(o):Math.floor(o),0>o&&(o+=t);t>o;o++)if(o in this&&this[o]===r)return o;return-1}),Array.prototype.filter||(Array.prototype.filter=function(r){if(void 0===this||null===this)throw new TypeError;var t=Object(this),o=t.length>>>0;if("function"!=typeof r)throw new TypeError;for(var e=[],n=arguments.length>=2?arguments[1]:void 0,i=0;o>i;i++)if(i in t){var f=t[i];r.call(n,f,i,t)&&e.push(f)}return e}),Array.prototype.map||(Array.prototype.map=function(r){for(var t=[],o=0,e=this.length;e>o;o++)t.push(r(this[o]));return t}),Array.prototype.forEach||(Array.prototype.forEach=function(r,t){var o,e;if(null==this)throw new TypeError("this is null or not defined");var n=Object(this),i=n.length>>>0;if("function"!=typeof r)throw new TypeError(r+" is not a function");for(arguments.length>1&&(o=t),e=0;i>e;){var f;e in n&&(f=n[e],r.call(o,f,e,n)),e++}}); },{}]},{},[25]);