var AyahPublisherOptions = {"publisher_key":"iFJGPbLJ5KdnNtfFd1F9CJxVPEDR9kYtRm11Ntb4","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":false,"rthtsync":false,"enable_debug":false,"enable_debug_verbose":false,"collection_chunk_time":2,"delay_after_send":0,"min_observation_count":100,"max_real_time":300,"max_count_observations_sent":5,"max_observation_length":1100,"events_max_percent_use":"0.1"};
(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;o<r.length;o++)s(r[o]);return s})({1:[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":2,"./lib/inflate":3,"./lib/utils/common":4,"./lib/zlib/constants":7}],2:[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;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":4,"./utils/strings":5,"./zlib/deflate":9,"./zlib/messages":14,"./zlib/zstream":16}],3:[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;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":4,"./utils/strings":5,"./zlib/constants":7,"./zlib/gzheader":10,"./zlib/inflate":12,"./zlib/messages":14,"./zlib/zstream":16}],4:[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);

},{}],5:[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":4}],6:[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;

},{}],7:[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};

},{}],8:[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;

},{}],9:[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.hash_shift^t.window[i+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+MIN_MATCH-1])&t.hash_mask,t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<MIN_MATCH)););}while(t.lookahead<MIN_LOOKAHEAD&&0!==t.strm.avail_in)}function deflate_stored(t,e){var _=65535;for(_>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_LOOKAHEAD){if(fill_window(t),t.lookahead<MIN_LOOKAHEAD&&e===Z_NO_FLUSH)return BS_NEED_MORE;if(0===t.lookahead)break}if(_=0,t.lookahead>=MIN_MATCH&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+MIN_MATCH-1])&t.hash_mask,_=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==_&&t.strstart-_<=t.w_size-MIN_LOOKAHEAD&&(t.match_length=longest_match(t,_)),t.match_length>=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<<t.hash_shift^t.window[t.strstart+MIN_MATCH-1])&t.hash_mask,_=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else a=trees._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(a&&(flush_block_only(t,!1),0===t.strm.avail_out))return BS_NEED_MORE}return t.insert=t.strstart<MIN_MATCH-1?t.strstart:MIN_MATCH-1,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_slow(t,e){for(var _,a,s;;){if(t.lookahead<MIN_LOOKAHEAD){if(fill_window(t),t.lookahead<MIN_LOOKAHEAD&&e===Z_NO_FLUSH)return BS_NEED_MORE;if(0===t.lookahead)break}if(_=0,t.lookahead>=MIN_MATCH&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+MIN_MATCH-1])&t.hash_mask,_=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=MIN_MATCH-1,0!==_&&t.prev_length<t.max_lazy_match&&t.strstart-_<=t.w_size-MIN_LOOKAHEAD&&(t.match_length=longest_match(t,_),t.match_length<=5&&(t.strategy===Z_FILTERED||t.match_length===MIN_MATCH&&t.strstart-t.match_start>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<<t.hash_shift^t.window[t.strstart+MIN_MATCH-1])&t.hash_mask,_=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(0!==--t.prev_length);if(t.match_available=0,t.match_length=MIN_MATCH-1,t.strstart++,a&&(flush_block_only(t,!1),0===t.strm.avail_out))return BS_NEED_MORE}else if(t.match_available){if(a=trees._tr_tally(t,0,t.window[t.strstart-1]),a&&flush_block_only(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return BS_NEED_MORE}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(a=trees._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<MIN_MATCH-1?t.strstart:MIN_MATCH-1,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_rle(t,e){for(var _,a,s,i,n=t.window;;){if(t.lookahead<=MAX_MATCH){if(fill_window(t),t.lookahead<=MAX_MATCH&&e===Z_NO_FLUSH)return BS_NEED_MORE;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=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<<r.w_bits,r.w_mask=r.w_size-1,r.hash_bits=s+7,r.hash_size=1<<r.hash_bits,r.hash_mask=r.hash_size-1,r.hash_shift=~~((r.hash_bits+MIN_MATCH-1)/MIN_MATCH),r.window=new utils.Buf8(2*r.w_size),r.head=new utils.Buf16(r.hash_size),r.prev=new utils.Buf16(r.w_size),r.lit_bufsize=1<<s+6,r.pending_buf_size=4*r.lit_bufsize,r.pending_buf=new utils.Buf8(r.pending_buf_size),r.d_buf=1*r.lit_bufsize,r.l_buf=3*r.lit_bufsize,r.level=e,r.strategy=i,r.method=_,deflateReset(t)}function deflateInit(t,e){return deflateInit2(t,e,Z_DEFLATED,MAX_WBITS,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY)}function deflate(t,e){var _,a,s,i;if(!t||!t.state||e>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.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,put_byte(a,i)}while(0!==i);a.gzhead.hcrc&&a.pending>s&&(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.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,put_byte(a,i)}while(0!==i);a.gzhead.hcrc&&a.pending>s&&(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":4,"./adler32":6,"./crc32":8,"./messages":14,"./trees":15}],10:[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;

},{}],11:[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<<o.lenbits)-1,k=(1<<o.distbits)-1;i:do{15>v&&(u+=p[a++]<<v,v+=8,u+=p[a++]<<v,v+=8),_=m[u&h];e:for(;;){if(x=_>>>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<<x)-1)];continue e}if(32&x){o.mode=TYPE;break i}i.msg="invalid literal/length code",o.mode=BAD;break i}g=65535&_,x&=15,x&&(x>v&&(u+=p[a++]<<v,v+=8),g+=u&(1<<x)-1,u>>>=x,v-=x),15>v&&(u+=p[a++]<<v,v+=8,u+=p[a++]<<v,v+=8),_=w[u&k];o:for(;;){if(x=_>>>24,u>>>=x,v-=x,x=_>>>16&255,!(16&x)){if(0===(64&x)){_=w[(65535&_)+(u&(1<<x)-1)];continue o}i.msg="invalid distance code",o.mode=BAD;break i}if(A=65535&_,x&=15,x>v&&(u+=p[a++]<<v,v+=8,x>v&&(u+=p[a++]<<v,v+=8)),A+=u&(1<<x)-1,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<<v)-1,i.next_in=a,i.next_out=d,i.avail_in=t>a?5+(t-a):5-(a-t),i.avail_out=l>d?257+(l-d):257-(d-l),o.hold=u,o.bits=v};

},{}],12:[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.wbits,s.wnext=0,s.whave=0,s.window=new utils.Buf8(s.wsize)),i>=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.whave<s.wsize&&(s.whave+=n))),0}function inflate(e,t){var a,i,n,s,l,r,o,d,f,c,h,E,b,_,k,m,w,u,R,T,D,g,S,x,A=0,v=new utils.Buf8(4),O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Z_STREAM_ERROR;a=e.state,a.mode===TYPE&&(a.mode=TYPEDO),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,c=r,h=o,g=Z_OK;e:for(;;)switch(a.mode){case HEAD:if(0===a.wrap){a.mode=TYPEDO;break}for(;16>f;){if(0===r)break e;r--,d+=i[s++]<<f,f+=8}if(2&a.wrap&&35615===d){a.check=0,v[0]=255&d,v[1]=d>>>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<<D,e.adler=a.check=1,a.mode=512&d?DICTID:TYPE,d=0,f=0;break;case FLAGS:for(;16>f;){if(0===r)break e;r--,d+=i[s++]<<f,f+=8}if(a.flags=d,(255&a.flags)!==Z_DEFLATED){e.msg="unknown compression method",a.mode=BAD;break}if(57344&a.flags){e.msg="unknown header flags set",a.mode=BAD;break}a.head&&(a.head.text=d>>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++]<<f,f+=8}a.head&&(a.head.time=d),512&a.flags&&(v[0]=255&d,v[1]=d>>>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++]<<f,f+=8}a.head&&(a.head.xflags=255&d,a.head.os=d>>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++]<<f,f+=8}a.length=d,a.head&&(a.head.extra_len=d),512&a.flags&&(v[0]=255&d,v[1]=d>>>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++]<<f,f+=8}if(d!==(65535&a.check)){e.msg="header crc mismatch",a.mode=BAD;break}d=0,f=0}a.head&&(a.head.hcrc=a.flags>>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++]<<f,f+=8}e.adler=a.check=zswap32(d),d=0,f=0,a.mode=DICT;case DICT:if(0===a.havedict)return e.next_out=l,e.avail_out=o,e.next_in=s,e.avail_in=r,a.hold=d,a.bits=f,Z_NEED_DICT;e.adler=a.check=1,a.mode=TYPE;case TYPE:if(t===Z_BLOCK||t===Z_TREES)break e;case TYPEDO:if(a.last){d>>>=7&f,f-=7&f,a.mode=CHECK;break}for(;3>f;){if(0===r)break e;r--,d+=i[s++]<<f,f+=8}switch(a.last=1&d,d>>>=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++]<<f,f+=8}if((65535&d)!==(d>>>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++]<<f,f+=8}if(a.nlen=(31&d)+257,d>>>=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.have<a.ncode;){for(;3>f;){if(0===r)break e;r--,d+=i[s++]<<f,f+=8}a.lens[O[a.have++]]=7&d,d>>>=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<a.nlen+a.ndist;){for(;A=a.lencode[d&(1<<a.lenbits)-1],k=A>>>24,m=A>>>16&255,w=65535&A,!(f>=k);){if(0===r)break e;r--,d+=i[s++]<<f,f+=8}if(16>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++]<<f,f+=8}if(d>>>=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++]<<f,f+=8}d>>>=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++]<<f,f+=8}d>>>=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<<a.lenbits)-1],k=A>>>24,m=A>>>16&255,w=65535&A,!(f>=k);){if(0===r)break e;r--,d+=i[s++]<<f,f+=8}if(m&&0===(240&m)){for(u=k,R=m,T=w;A=a.lencode[T+((d&(1<<u+R)-1)>>u)],k=A>>>24,m=A>>>16&255,w=65535&A,!(f>=u+k);){if(0===r)break e;r--,d+=i[s++]<<f,f+=8}d>>>=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++]<<f,f+=8}a.length+=d&(1<<a.extra)-1,d>>>=a.extra,f-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=DIST;case DIST:for(;A=a.distcode[d&(1<<a.distbits)-1],k=A>>>24,m=A>>>16&255,w=65535&A,!(f>=k);){if(0===r)break e;r--,d+=i[s++]<<f,f+=8}if(0===(240&m)){for(u=k,R=m,T=w;A=a.distcode[T+((d&(1<<u+R)-1)>>u)],k=A>>>24,m=A>>>16&255,w=65535&A,!(f>=u+k);){if(0===r)break e;r--,d+=i[s++]<<f,f+=8}d>>>=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++]<<f,f+=8}a.offset+=d&(1<<a.extra)-1,d>>>=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,f+=8}if(h-=o,e.total_out+=h,a.total+=h,h&&(e.adler=a.check=a.flags?crc32(a.check,n,h,l-h):adler32(a.check,n,h,l-h)),h=o,(a.flags?d:zswap32(d))!==a.check){e.msg="incorrect data check",a.mode=BAD;break}d=0,f=0}a.mode=LENGTH;case LENGTH:if(a.wrap&&a.flags){for(;32>f;){if(0===r)break e;r--,d+=i[s++]<<f,f+=8}if(d!==(4294967295&a.total)){e.msg="incorrect length check",a.mode=BAD;break}d=0,f=0}a.mode=DONE;case DONE:g=Z_STREAM_END;break e;case BAD:g=Z_DATA_ERROR;break e;case MEM:return Z_MEM_ERROR;case SYNC:default:return Z_STREAM_ERROR}return e.next_out=l,e.avail_out=o,e.next_in=s,e.avail_in=r,a.hold=d,a.bits=f,(a.wsize||h!==e.avail_out&&a.mode<BAD&&(a.mode<CHECK||t!==Z_FINISH))&&updatewindow(e,e.output,e.next_out,h-e.avail_out)?(a.mode=MEM,Z_MEM_ERROR):(c-=e.avail_in,h-=e.avail_out,e.total_in+=c,e.total_out+=h,a.total+=h,a.wrap&&h&&(e.adler=a.check=a.flags?crc32(a.check,n,h,e.next_out-h):adler32(a.check,n,h,e.next_out-h)),e.data_type=a.bits+(a.last?64:0)+(a.mode===TYPE?128:0)+(a.mode===LEN_||a.mode===COPY_?256:0),(0===c&&0===h||t===Z_FINISH)&&g===Z_OK&&(g=Z_BUF_ERROR),g)}function inflateEnd(e){if(!e||!e.state)return Z_STREAM_ERROR;var t=e.state;return t.window&&(t.window=null),e.state=null,Z_OK}function inflateGetHeader(e,t){var a;return e&&e.state?(a=e.state,0===(2&a.wrap)?Z_STREAM_ERROR:(a.head=t,t.done=!1,Z_OK)):Z_STREAM_ERROR}function inflateSetDictionary(e,t){var a,i,n,s=t.length;return e&&e.state?(a=e.state,0!==a.wrap&&a.mode!==DICT?Z_STREAM_ERROR:a.mode===DICT&&(i=1,i=adler32(i,t,s,0),i!==a.check)?Z_DATA_ERROR:(n=updatewindow(e,t,s,s))?(a.mode=MEM,Z_MEM_ERROR):(a.havedict=1,Z_OK)):Z_STREAM_ERROR}var utils=require("../utils/common"),adler32=require("./adler32"),crc32=require("./crc32"),inflate_fast=require("./inffast"),inflate_table=require("./inftrees"),CODES=0,LENS=1,DISTS=2,Z_FINISH=4,Z_BLOCK=5,Z_TREES=6,Z_OK=0,Z_STREAM_END=1,Z_NEED_DICT=2,Z_STREAM_ERROR=-2,Z_DATA_ERROR=-3,Z_MEM_ERROR=-4,Z_BUF_ERROR=-5,Z_DEFLATED=8,HEAD=1,FLAGS=2,TIME=3,OS=4,EXLEN=5,EXTRA=6,NAME=7,COMMENT=8,HCRC=9,DICTID=10,DICT=11,TYPE=12,TYPEDO=13,STORED=14,COPY_=15,COPY=16,TABLE=17,LENLENS=18,CODELENS=19,LEN_=20,LEN=21,LENEXT=22,DIST=23,DISTEXT=24,MATCH=25,LIT=26,CHECK=27,LENGTH=28,DONE=29,BAD=30,MEM=31,SYNC=32,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,virgin=!0,lenfix,distfix;exports.inflateReset=inflateReset,exports.inflateReset2=inflateReset2,exports.inflateResetKeep=inflateResetKeep,exports.inflateInit=inflateInit,exports.inflateInit2=inflateInit2,exports.inflate=inflate,exports.inflateEnd=inflateEnd,exports.inflateGetHeader=inflateGetHeader,exports.inflateSetDictionary=inflateSetDictionary,exports.inflateInfo="pako inflate (from Nodeca project)";

},{"../utils/common":4,"./adler32":6,"./crc32":8,"./inffast":11,"./inftrees":13}],13:[function(require,module,exports){
"use strict";var utils=require("../utils/common"),MAXBITS=15,ENOUGH_LENS=852,ENOUGH_DISTS=592,CODES=0,LENS=1,DISTS=2,lbase=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lext=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],dbase=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],dext=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];module.exports=function(r,S,e,f,t,i,u,o){var E,l,s,n,I,N,T,B,D,O=o.bits,a=0,b=0,A=0,L=0,M=0,X=0,d=0,G=0,H=0,U=0,_=null,x=0,c=new utils.Buf16(MAXBITS+1),m=new utils.Buf16(MAXBITS+1),v=null,w=0;for(a=0;MAXBITS>=a;a++)c[a]=0;for(b=0;f>b;b++)c[S[e+b]]++;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,a=1;MAXBITS>=a;a++)if(G<<=1,G-=c[a],0>G)return-1;if(G>0&&(r===CODES||1!==L))return-1;for(m[1]=0,a=1;MAXBITS>a;a++)m[a+1]=m[a]+c[a];for(b=0;f>b;b++)0!==S[e+b]&&(u[m[S[e+b]]++]=b);if(r===CODES?(_=v=u,N=19):r===LENS?(_=lbase,x-=257,v=lext,w-=257,N=256):(_=dbase,v=dext,N=-1),U=0,b=0,a=A,I=i,X=M,d=0,s=-1,H=1<<M,n=H-1,r===LENS&&H>ENOUGH_LENS||r===DISTS&&H>ENOUGH_DISTS)return 1;for(var C=0;;){C++,T=a-d,u[b]<N?(B=0,D=u[b]):u[b]>N?(B=v[w+u[b]],D=_[x+u[b]]):(B=96,D=0),E=1<<a-d,l=1<<X,A=l;do l-=E,t[I+(U>>d)+l]=T<<24|B<<16|D|0;while(0!==l);for(E=1<<a-1;U&E;)E>>=1;if(0!==E?(U&=E-1,U+=E):U=0,b++,0===--c[a]){if(a===L)break;a=S[e+u[b]]}if(a>M&&(U&n)!==s){for(0===d&&(d=M),I+=A,X=a-d,G=1<<X;L>X+d&&(G-=c[X+d],!(0>=G));)X++,G<<=1;if(H+=1<<X,r===LENS&&H>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]=a-d<<24|64<<16|0),o.bits=M,0};

},{"../utils/common":4}],14:[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"};

},{}],15:[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|=_<<e.bi_valid&65535,put_short(e,e.bi_buf),e.bi_buf=_>>Buf_size-e.bi_valid,e.bi_valid+=t-Buf_size):(e.bi_buf|=_<<e.bi_valid&65535,e.bi_valid+=t)}function send_code(e,_,t){send_bits(e,t[2*_],t[2*_+1])}function bi_reverse(e,_){var t=0;do t|=1&e,e>>>=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<<extra_lbits[r];e++)_length_code[t++]=r;for(_length_code[t-1]=r,i=0,r=0;16>r;r++)for(base_dist[r]=i,e=0;e<1<<extra_dbits[r];e++)_dist_code[i++]=r;for(i>>=7;D_CODES>r;r++)for(base_dist[r]=i<<7,e=0;e<1<<extra_dbits[r]-7;e++)_dist_code[256+i++]=r;for(_=0;MAX_BITS>=_;_++)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]<e[n]||e[i]===e[n]&&r[_]<=r[t]}function pqdownheap(e,_,t){for(var r=e.heap[t],i=t<<1;i<=e.heap_len&&(i<e.heap_len&&smaller(_,e.heap[i+1],e.heap[i],e.depth)&&i++,!smaller(_,r,e.heap[i],e.depth));)e.heap[t]=e.heap[i],t=i,i<<=1;e.heap[t]=r}function compress_block(e,_,t){var r,i,n,s,d=0;if(0!==e.last_lit)do r=e.pending_buf[e.d_buf+2*d]<<8|e.pending_buf[e.d_buf+2*d+1],i=e.pending_buf[e.l_buf+d],d++,0===r?send_code(e,i,_):(n=_length_code[i],send_code(e,n+LITERALS+1,_),s=extra_lbits[n],0!==s&&(i-=base_length[n],send_bits(e,i,s)),r--,n=d_code(r),send_code(e,n,t),s=extra_dbits[n],0!==s&&(r-=base_dist[n],send_bits(e,r,s)));while(d<e.last_lit);send_code(e,END_BLOCK,_)}function build_tree(e,_){var t,r,i,n=_.dyn_tree,s=_.stat_desc.static_tree,d=_.stat_desc.has_stree,a=_.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=HEAP_SIZE,t=0;a>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],++d<a&&i===s||(l>d?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],!(++d<a&&i===s)){if(l>d){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":4}],16:[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;

},{}],17:[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;
},{}],18:[function(require,module,exports){
!function(i,s){"use strict";var e="0.7.10",o="",r="?",n="function",a="undefined",t="object",w="string",l="major",d="model",p="name",c="type",u="vendor",m="version",f="architecture",b="console",g="mobile",h="tablet",v="smarttv",x="wearable",y="embedded",k={extend:function(i,s){for(var e in s)-1!=="browser cpu device engine os".indexOf(e)&&s[e].length%2===0&&(i[e]=s[e].concat(i[e]));return i},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.split(".")[0]:s}},A={rgx:function(){for(var i,e,o,r,w,l,d,p=0,c=arguments;p<c.length&&!l;){var u=c[p],m=c[p+1];if(typeof i===a){i={};for(r in m)m.hasOwnProperty(r)&&(w=m[r],typeof w===t?i[w[0]]=s:i[w]=s)}for(e=o=0;e<u.length&&!l;)if(l=u[e++].exec(this.getUA()))for(r=0;r<m.length;r++)d=l[++o],w=m[r],typeof w===t&&w.length>0?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;n<e[o].length;n++)if(k.has(e[o][n],i))return o===r?s:o}else if(k.has(e[o],i))return o===r?s:o;return i}},E={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},S={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[p,m],[/\s(opr)\/([\w\.]+)/i],[[p,"Opera"],m],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs)\/([\w\.-]+)/i],[p,m],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[p,"IE"],m],[/(edge)\/((\d+)?[\w\.]+)/i],[p,m],[/(yabrowser)\/([\w\.]+)/i],[[p,"Yandex"],m],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],m],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(qqbrowser)[\/\s]?([\w\.]+)/i],[p,m],[/(uc\s?browser)[\/\s]?([\w\.]+)/i,/ucweb.+(ucbrowser)[\/\s]?([\w\.]+)/i,/JUC.+(ucweb)[\/\s]?([\w\.]+)/i],[[p,"UCBrowser"],m],[/(dolfin)\/([\w\.]+)/i],[[p,"Dolphin"],m],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[p,"Chrome"],m],[/XiaoMi\/MiuiBrowser\/([\w\.]+)/i],[m,[p,"MIUI Browser"]],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)/i],[m,[p,"Android Browser"]],[/FBAV\/([\w\.]+);/i],[m,[p,"Facebook"]],[/fxios\/([\w\.-]+)/i],[m,[p,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[m,[p,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[m,p],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[p,[m,A.str,E.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[p,m],[/(navigator|netscape)\/([\w\.-]+)/i],[[p,"Netscape"],m],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[p,m]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,k.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[f,/ower/,"",k.lowerize]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[f,k.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[d,u,[c,h]],[/applecoremedia\/[\w\.]+ \((ipad)/],[d,[u,"Apple"],[c,h]],[/(apple\s{0,1}tv)/i],[[d,"Apple TV"],[u,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[u,d,[c,h]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[d,[u,"Amazon"],[c,h]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[d,A.str,E.device.amazon.model],[u,"Amazon"],[c,g]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[d,u,[c,g]],[/\((ip[honed|\s\w*]+);/i],[d,[u,"Apple"],[c,g]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[u,d,[c,g]],[/\(bb10;\s(\w+)/i],[d,[u,"BlackBerry"],[c,g]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7)/i],[d,[u,"Asus"],[c,h]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[u,"Sony"],[d,"Xperia Tablet"],[c,h]],[/(?:sony)?(?:(?:(?:c|d)\d{4})|(?:so[-l].+))\sbuild\//i],[[u,"Sony"],[d,"Xperia Phone"],[c,g]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[u,d,[c,b]],[/android.+;\s(shield)\sbuild/i],[d,[u,"Nvidia"],[c,b]],[/(playstation\s[34portablevi]+)/i],[d,[u,"Sony"],[c,b]],[/(sprint\s(\w+))/i],[[u,A.str,E.device.sprint.vendor],[d,A.str,E.device.sprint.model],[c,g]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[u,d,[c,h]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[u,[d,/_/g," "],[c,g]],[/(nexus\s9)/i],[d,[u,"HTC"],[c,h]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[d,[u,"Microsoft"],[c,b]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[u,"Microsoft"],[c,g]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s[6])/i],[d,[u,"Motorola"],[c,g]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[d,[u,"Motorola"],[c,h]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n8000|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[u,"Samsung"],d,[c,h]],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-n900))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[u,"Samsung"],d,[c,g]],[/(samsung);smarttv/i],[u,d,[c,v]],[/\(dtv[\);].+(aquos)/i],[d,[u,"Sharp"],[c,v]],[/sie-(\w+)*/i],[d,[u,"Siemens"],[c,g]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[u,"Nokia"],d,[c,g]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[d,[u,"Acer"],[c,h]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[u,"LG"],d,[c,h]],[/(lg) netcast\.tv/i],[u,d,[c,v]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],[d,[u,"LG"],[c,g]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[d,[u,"Lenovo"],[c,h]],[/linux;.+((jolla));/i],[u,d,[c,g]],[/((pebble))app\/[\d\.]+\s/i],[u,d,[c,x]],[/android.+;\s(glass)\s\d/i],[d,[u,"Google"],[c,x]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus)?[\s_]*(?:\d\w)?)\s+build/i],[[d,/_/g," "],[u,"Xiaomi"],[c,g]],[/\s(tablet)[;\/\s]/i,/\s(mobile)[;\/\s]/i],[[c,k.lowerize],u,d]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[m,[p,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[p,m],[/rv\:([\w\.]+).*(gecko)/i],[m,p]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[p,m],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[p,[m,A.str,E.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[p,"Windows"],[m,A.str,E.os.windows.version]],[/\((bb)(10);/i],[[p,"BlackBerry"],m],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[p,m],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[p,"Symbian"],m],[/\((series40);/i],[p],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[p,"Firefox OS"],m],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[p,m],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[p,"Chromium OS"],m],[/(sunos)\s?([\w\.]+\d)*/i],[[p,"Solaris"],m],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[p,m],[/(ip[honead]+)(?:.*os\s([\w]+)*\slike\smac|;\sopera)/i],[[p,"iOS"],[m,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[p,"Mac OS"],[m,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(haiku)\s(\w+)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[p,m]]},T=function(s,e){if(!(this instanceof T))return new T(s,e).getResult();var r=s||(i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:o),n=e?k.extend(S,e):S;return this.getBrowser=function(){var i=A.rgx.apply(this,n.browser);return i.major=k.major(i.version),i},this.getCPU=function(){return A.rgx.apply(this,n.cpu)},this.getDevice=function(){return A.rgx.apply(this,n.device)},this.getEngine=function(){return A.rgx.apply(this,n.engine)},this.getOS=function(){return A.rgx.apply(this,n.os)},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(i){return r=i,this},this.setUA(r),this};T.VERSION=e,T.BROWSER={NAME:p,MAJOR:l,VERSION:m},T.CPU={ARCHITECTURE:f},T.DEVICE={MODEL:d,VENDOR:u,TYPE:c,CONSOLE:b,MOBILE:g,SMARTTV:v,TABLET:h,WEARABLE:x,EMBEDDED:y},T.ENGINE={NAME:p,VERSION:m},T.OS={NAME:p,VERSION:m},typeof exports!==a?(typeof module!==a&&module.exports&&(exports=module.exports=T),exports.UAParser=T):typeof define===n&&define.amd?define(function(){return T}):i.UAParser=T;var N=i.jQuery||i.Zepto;if(typeof N!==a){var O=new T;N.ua=O.getResult(),N.ua.get=function(){return O.getUA()},N.ua.set=function(i){O.setUA(i);var s=O.getResult();for(var e in s)N.ua[e]=s[e]}}}("object"==typeof window?window:this);

},{}],19:[function(require,module,exports){
module.exports=function(e,t,n){function r(e,t){return typeof e===t}function i(){var e,t,n,i,o,a,s;for(var d in y)if(y.hasOwnProperty(d)){if(e=[],t=y[d],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(i=r(t.fn,"function")?t.fn():t.fn,o=0;o<e.length;o++)a=e[o],s=a.split("."),1===s.length?b[s[0]]=i:(!b[s[0]]||b[s[0]]instanceof Boolean||(b[s[0]]=new Boolean(b[s[0]])),b[s[0]][s[1]]=i),S.push((i?"":"no-")+s.join("-"))}}function o(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):k?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function a(e,t){return!!~(""+e).indexOf(t)}function s(e,t){return e-1===t||e===t||e+1===t}function d(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function l(){var e=t.body;return e||(e=o(k?"svg":"body"),e.fake=!0),e}function c(e,n,r,i){var a,s,d,c,u="modernizr",p=o("div"),f=l();if(parseInt(r,10))for(;r--;)d=o("div"),d.id=i?i[r]:u+(r+1),p.appendChild(d);return a=o("style"),a.type="text/css",a.id="s"+u,(f.fake?f:p).appendChild(a),f.appendChild(p),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(t.createTextNode(e)),p.id=u,f.fake&&(f.style.background="",f.style.overflow="hidden",c=C.style.overflow,C.style.overflow="hidden",C.appendChild(f)),s=n(p,e),f.fake?(f.parentNode.removeChild(f),C.style.overflow=c,C.offsetHeight):p.parentNode.removeChild(p),!!s}function u(e,t){return function(){return e.apply(t,arguments)}}function p(e,t,n){var i;for(var o in e)if(e[o]in t)return n===!1?e[o]:(i=t[e[o]],r(i,"function")?u(i,n||t):i);return!1}function f(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function m(t,r){var i=t.length;if("CSS"in e&&"supports"in e.CSS){for(;i--;)if(e.CSS.supports(f(t[i]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var o=[];i--;)o.push("("+f(t[i])+":"+r+")");return o=o.join(" or "),c("@supports ("+o+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return n}function h(e,t,i,s){function l(){u&&(delete D.style,delete D.modElem)}if(s=r(s,"undefined")?!1:s,!r(i,"undefined")){var c=m(e,i);if(!r(c,"undefined"))return c}for(var u,p,f,h,g,v=["modernizr","tspan","samp"];!D.style&&v.length;)u=!0,D.modElem=o(v.shift()),D.style=D.modElem.style;for(f=e.length,p=0;f>p;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="<svg/>","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+="<math><mfrac><mi>xx</mi><mi>yy</mi></mfrac></math>",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?"妇":"&#5987;",n.innerHTML=k?"☆":"&#9734;",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="<summary>a</summary>b",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='<input name="modTest" required="required" /><button></button>',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;r<n.length;r++)e=n[r].toLowerCase(),t=v("column"+n[r]),"breakbefore"!==e&&"breakafter"!==e&&"breakinside"!=e||(t=t||v(n[r])),b.addTest("csscolumns."+e,t)}(),b.addTest("cssfilters",function(){if(b.supports)return v("filter","blur(2px)");var e=o("a");return e.style.cssText=W.join("filter:blur(2px); "),!!e.style.length&&(t.documentMode===n||t.documentMode>9)}),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<b._q.length;X++)b._q[X]();return b};

},{}],20:[function(require,module,exports){
var ayah_debug_enabled=!1,ayah_debug_verbose_enabled=!1,ayah_debug=function(e){if(window.console||(console={log:function(){}}),ayah_debug_enabled){var a=new Date;console.log(a.getTime()+" "+e);var b=document.getElementById("ayah_debug_console");b&&(b.innerHTML+="\n<br>"+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}};
},{}],21:[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(65535<i.length)for(r=0;t>r;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;
},{}],22:[function(require,module,exports){
var ayah_debug,pako=require("pako"),xhr_status=[],xdr_type="unknown",xhr_obj={Xhr:function(){try{return xdr_type="new XMLHttpRequest()",new XMLHttpRequest}catch(e){}try{return xdr_type="new ActiveXObject(Msxml3.XMLHTTP)",new ActiveXObject("Msxml3.XMLHTTP")}catch(e){}try{return xdr_type="new ActiveXObject(Msxml2.XMLHTTP.6.0)",new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return xdr_type="new ActiveXObject(Msxml2.XMLHTTP.3.0)",new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return xdr_type="new ActiveXObject(Msxml2.XMLHTTP)",new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}try{return xdr_type="new ActiveXObject(Microsoft.XMLHTTP)",new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}return xdr_type="null",null},getXdrObject:function(){if(window.XDomainRequest){xhr_status.push("Using new XDomainRequest()");var e=new XDomainRequest;xhr_status.push("Setting xdr.onload to an empty function"),e.onload=function(){}}else{var e=xhr_obj.Xhr();xhr_status.push("Using "+xdr_type)}return e},sendGetRequest:function(e){xdr=xhr_obj.getXdrObject(),xdr.open("get",e),xdr.send()},sendPostRequest:function(e){if(xdr=xhr_obj.getXdrObject(),xdr.withCredentials=!0,void 0===e.async&&(e.async=!0),xhr_status.push("sendPostRequest: Calling xdr.open()"),xdr.open("post",e.url,e.async),xhr_obj.setRequestHeader(xdr,"Content-type","application/json"),(void 0===e.deflate||e.deflate)&&xhr_obj.setRequestHeader(xdr,"Content-encoding","deflate")){e.payload.length;xhr_status.push("sendPostRequest: Calling pako.deflate()"),e.payload=pako.deflate(e.payload)}xhr_status.push("sendPostRequest: Calling xdr.send()"),xdr.send(e.payload),xhr_status.push("sendPostRequest: Called xdr.send()")},setRequestHeader:function(e,t,r){try{return e.setRequestHeader(t,r),!0}catch(n){xhr_status.push("setRequestHeader: Call to xdr.setRequestHeader() failed: "+n.message)}},getStatus:function(){return xhr_status}};module.exports=function(e){return ayah_debug=e.getDebugFunction(),xhr_obj};

},{"pako":1}],23:[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};

},{}],24:[function(require,module,exports){
(ayahouter=function(e,t,n){function a(){if("undefined"==typeof k){var e=n.events_max_percent_use,t=100*Math.random();k=e>=t}return k}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 i(e,n){var a=t.createElement("iframe");a.id="AYAH_iframe"+(new Date).getTime();var r=o();a.src=e+n.iframe_url+r,a.width=0,a.height=0,a.scrolling="no",a.frameBorder=0,a.style.cssText="border:none;overflow:hidden;display:none;";var i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(a,i)}function o(){var e="?ak="+N+"&pk="+n.publisher_key+"&AYAH_VERSION="+n.AYAH_VERSION;if(e+="&rthtsync="+n.rthtsync+"&cookiesync="+n.cookiesync,a())e+="&no_init=true";else{var t=T.addDeviceData();e+="&device_screen_width="+t.device_screen_width+"&device_screen_height="+t.device_screen_height,e+="&iframe="+t.iframe+"&iframe_depth="+t.iframe_depth,e+="&pd="+t.pd+"&history_depth="+t.history_depth;var r=y();for(p in r)r.hasOwnProperty(p)&&(e+="&"+p+"="+r[p])}return e}function c(){var e=D.getEventManager();e.add(t,"touchstart",T.countMultiTouch),e.add(t,"touchend",T.endMultiTouch),e.add(t,"keyup",T.handleKeyEvent),S=setInterval(T.countOrientationChanges,100),a()||(E=setInterval(_,1e3*n.collection_chunk_time),n._legacy_collection=!0)}function s(e){if(m("Received call to ayahCleanup()"),clearInterval(S),a())m("Calling sendTelemetryEvent()"),u(e);else if(clearInterval(E),_(0,!0),0==Y){var t=h("",0);R.sendGetRequest(t)}m("Exiting ayahCleanup()")}function l(){var e=D.getSerializer().getAllObservations();e.type="telemetry",e.ak=N,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),T.addDeviceData(e),T.addUserAgentData(e),T.addTelemetryData(e),m("getCollectedData: Calling addScriptParameters()"),f(e),O(e),e}function d(){var e=g(),t=!0;m("sendInitEvent: Calling sendEvent()"),v(H,n.events_url,e,t)}function u(e){if("undefined"==typeof b){m("sendTelemetryEvent: Calling getCollectedData()");var t=l();t.before_unload_event_fired=e;var a=0==e;m("sendTelemetryEvent: Calling sendEvent()"),v(H,n.events_url,t,a),b=!0}}function g(){var e={type:"init",ak:N,pk:n.publisher_key,AYAH_VERSION:n.AYAH_VERSION};return T.addDeviceData(e),T.addUserAgentData(e),m("getInitData: Calling addScriptParameters()"),f(e),O(e),e}function f(e){var t=y();for(p in t)e[p]=t[p]}function v(e,t,n,a){var r=e+t;n=JSON.stringify(n),R.sendPostRequest({url:r,payload:n,async:a,deflate:!0})}function y(){var e,n="",a={},r=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_")&&(a[r(e[0])]=r(e[1]))}return a}function _(e,t){if("undefined"==typeof e&&(e=n.min_observation_count),Y>=n.max_count_observations_sent)return void("undefined"==typeof t&&I.stop());var a=D.getLegacySerializer().getNewObservations(e,n.max_observation_length);if(void 0!=a){var r=a.encoded,i=a.count,o=encodeURIComponent(T.ayahEncrypt(r+"!"+N,N)),c=h(o,i);R.sendGetRequest(c),T.resetCounts(),Y+=1}}function h(e,t){var a=D.getStreamStats().getAggregateStats(),r=T.addTelemetryData(),i=H+n.send_url+"odc="+t+"&kpc="+r.kpc+"&ec="+a.count+"&ea="+a.average.toFixed(3)+"&mtc="+r.mtc+"&occ="+r.occ+"&tc="+r.tc+"&ak="+N+"&pk="+n.publisher_key+"&AYAH_VERSION="+n.AYAH_VERSION+"&od="+e;return i}function m(e){w.push(e)}function A(e){return w}var S,E,k,b,C=require("./collectData/config"),D=require("./collectData/Factory")(C,n,e,t),O=D.getAddChecksum(),I=D.getCollector(),R=D.getXhr(),T=D.getLegacyCatFunctions(),w=(D.getDebugFunction(),D.getVerboseDebugFunction(),D.getStreamStatsDebugFunction(),[]),N=D.getUUID().make(),H="https:"===e.location.protocol?"https:":"http:",Y=0;try{if(m("Calling initialize()"),!r())return;m("Calling createLitter()"),i(H,n),a()&&(m("Calling sendInitEvent()"),d(),m("calling factory.getAyahConfig().enableTest()"),D.getAyahConfig().enableTest()),m("calling collectLegacyData()"),c(),m("Calling collector.collect()"),I.collect(s),m("Waiting for call to ayahCleanup()")}catch(x){var V="";try{V=e.location.href}catch(q){}var F="[not available]",U={message:x.message||F,stack:x.stack||F,href:V||F,attempt_key:N,publisher_key:n.publisher_key,use_events:k,cat_status:A(),xhr_status:R.getStatus(),AYAH_VERSION:n.AYAH_VERSION};try{T.addUserAgentData(U)}catch(L){U.ua_data="[not available]"}var P=n.log_url+"error="+JSON.stringify(U);R.sendGetRequest(P)}})(window,document,AyahPublisherOptions);
},{"./collectData/Factory":30,"./collectData/config":44}],25:[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){for(var o=0;o<n.length;o++){var r=n.substring(o,o+t.length);if(r===t)return o}return-1};return t};module.exports=function(n,t){return window=n,ayah_debug=t.getDebugFunction(),Automation()};

},{}],26:[function(require,module,exports){
var ayah_debug,AyahConfig=function(){var t,r=function(e){return t?t:(t=this,void(this._config=this._extrapolateDefaults(e)))},n=r.prototype;n.getPayloadVersion=function(){try{return this._config.version}catch(t){}},n.enableTest=function(){this._config.active_stream_groups=["legacy","test"]},n.getStreamMap=function(){var t={},e=this.getActiveStreams(),r=[];this._getMappedStreams(e,t,r);for(var n=0;n<e.length;n++){var i=e[n];-1==r.indexOf(i)&&(r.push(i),t[i]=[i])}return t},n._getMappedStreams=function(t,e,r){try{for(var n in this._config.stream_map)if(this._config.stream_map.hasOwnProperty(n)){var i=this._config.stream_map[n];if(this._combinedStreamComponentsAreActive(i,t)){e[n]=i;for(var a=0;a<i.length;a++)r.push(i[a])}}}catch(o){}},n._combinedStreamComponentsAreActive=function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(-1==e.indexOf(n))return!1}return!0},n.getActiveStreams=function(){var t=[];try{for(var e=0;e<this._config.active_stream_groups.length;e++){var r=this._config.active_stream_groups[e];t=t.concat(this._config.stream_groups[r])}}catch(n){}return t},n.getInterval=function(t){try{return 1e3/this._config.streams[t].frequency}catch(e){}},n.getAllowRepetition=function(t){try{return 1==this._config.streams[t].allow_repetition}catch(e){}},n.isTimeSeries=function(t){try{return void 0==this._config.streams[t].time_series?!0:1==this._config.streams[t].time_series}catch(e){return!0}},n.getEvents=function(t){try{return this._config.streams[t].events}catch(e){}},n.getEventTarget=function(t){try{return this._config.streams[t].event_target}catch(e){}},n.getTupleFormat=function(t){try{return this._config.streams[t].tuple}catch(e){}},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 o in r)r.hasOwnProperty(o)&&(e=r[o],"undefined"==typeof a[o]?a[o]=e:"object"==typeof e?a[o]=i(t[o],e):-1===t.indexOf(e)&&a.push(e))}else{if(t&&"object"==typeof t)for(var s in t)t.hasOwnProperty(s)&&(a[s]=t[s]);for(var s in r)r.hasOwnProperty(s)&&("object"==typeof r[s]&&r[s]&&t[s]?a[s]=i(t[s],r[s]):a[s]=r[s])}return a};return r}();module.exports=function(t,e){return ayah_debug=e.getDebugFunction(),new AyahConfig(t)};

},{}],27:[function(require,module,exports){
var factory,options,running,callback,ayah_debug,window,stop_collection_timer,tuple_count=0,MAX_TUPLES=365,collectData=function(t){if(!running&&(running=!0,callback=t,setupTermination(),factory.getEventFeed().start(),!options._legacy_collection)){var o=factory.getStream();o.on("mouse",countTuples),o.on("touch",countTuples),o.ingest(factory.getModernizrFeatures().getAll(),"modernizr"),o.ingest(factory.getAutomation().get(),"automation"),o.ingest(factory.getPerformance().get(),"performance")}},countTuples=function(){++tuple_count>=MAX_TUPLES&&stopCollection(!1)()},stopCollection=function(t){return function(){running&&(clearTimeout(stop_collection_timer),factory.getStream().stop(),factory.getEventManager().cleanUp(),running=!1,"function"==typeof callback&&callback(t))}},setupTermination=function(){stop_collection_timer=setTimeout(stopCollection(!1),1e3*options.max_real_time),window.onbeforeunload=stopCollection(!0)},Collector={collect:collectData,stop:stopCollection(!1)};module.exports=function(t,o,e){return factory=e,ayah_debug=factory.getDebugFunction(),options=o,window=t,Collector};

},{}],28:[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;e<t.length;e++){var n=t[e];this._subscribeToEventsForObject(n)}},n._subscribeToEventsForObject=function(t){var e=this._config.getEvents(t),n=this._factory.getBOM(this._config.getEventTarget(t)),s=this._stream,i=function(e){s.ingest(e,t)};this._events.addMultiple(n,e,i)},e}();module.exports=function(t){return new EventFeed(t)};

},{}],29:[function(require,module,exports){
var ayah_debug,ayah_debug_verbose,EventManager=function(){var e,t=function(){return e?e:(e=this,void(this._event_listeners={}))},n=t.prototype;return n.addMultiple=function(e,t,n){if(t instanceof Array)for(var a=0;a<t.length;a++)this.add(e,t[a],n)},n.add=function(e,t,n){e||(e=document);var a=this._event_listeners;try{if(t in a||(a[t]=[]),e.attachEvent){var r=function(e){return"undefined"!=typeof e?void n(e):void n(window.event)};return e.attachEvent("on"+t,r),void a[t].push({target:e,callback:r})}e.addEventListener(t,n,!1),a[t].push({target:e,callback:n})}catch(i){}},n.remove=function(e,t,n){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener(t,n,!1)},n.cleanUp=function(){var e=this._event_listeners;for(var t in e)if(e.hasOwnProperty(t)){for(var n=e[t],a=0;a<n.length;a++){var r=n[a];this.remove(r.target,t,r.callback)}delete e[t]}},t}();module.exports=function(e){return ayah_debug=e.getDebugFunction(),ayah_debug_verbose=e.getVerboseDebugFunction(),new EventManager};

},{}],30:[function(require,module,exports){
var Factory=function(){var e,r,t=function(r,t,n,i){if(e)return e;this._options=t,e=this;var u=require("./AyahConfig");this._config=u(r,e),this._factory=this,this._window=n,this._document=i},n=t.prototype;return n.getAyahConfig=function(){return this._config},n.getOptions=function(){return this._options},n.getDebugFunction=function(){return require("../AyahDebug")(this.getOptions()).ayah_debug},n.getVerboseDebugFunction=function(){return require("../AyahDebug")(this.getOptions()).ayah_debug_verbose},n.getStreamStatsDebugFunction=function(){return require("../ayah_debug_stats")(e)},n.getXhr=function(){return require("../Xhr")(e)},n.getLegacyCatFunctions=function(){return require("./LegacyCatFunctions")(this._window,this._document,e)},n.getUUID=function(){var e=require("./UUID");return new e},n.getEventManager=function(){var r=require("./EventManager");return r(e)},n.getTimer=function(){if(!r){var t=require("./Timer");r=t(e)}return r},n.getStream=function(){var r=require("./Stream");return r(e)},n.getBOM=function(e){var r={window:window,document:window.document,body:window.document.body,screen:window.screen};if(e in r)return r[e];this.getVerboseDebugFunction()},n.getEventFeed=function(){var r=require("./EventFeed");return r(e)},n.makeMorsel=function(r,t){var n=require("./Morsel");return n(e,r,t)},n.getTupleGetters=function(){var r=require("./TupleGetters");return r(e,this.getAyahConfig())},n.getLegacySerializer=function(){var r=require("./LegacySerializer");return r(e)},n.getSerializer=function(){var r=require("./FullSerializer");return r(e)},n.getStreamStats=function(){var r=require("./StreamStats");return r(e)},n.getModernizr=function(){var e=require("../3rdparty/modernizr-3.3.1-custom");return e(this._window,this._document,void 0)},n.getModernizrFeatures=function(){var r=require("./ModernizrFeatures");return r(e)},n.getAutomation=function(){var r=require("./Automation");return r(this._window,e)},n.getCollector=function(){return require("./Collector")(this._window,this._options,e)},n.getPerformance=function(){var r=require("./Performance")(e);return r()},n.getAddChecksum=function(){var r=require("./addChecksum")(e);return r()},t}();module.exports=function(e,r,t,n){return new Factory(e,r,t,n)};

},{"../3rdparty/modernizr-3.3.1-custom":19,"../AyahDebug":20,"../Xhr":22,"../ayah_debug_stats":23,"./Automation":25,"./AyahConfig":26,"./Collector":27,"./EventFeed":28,"./EventManager":29,"./FullSerializer":31,"./LegacyCatFunctions":32,"./LegacySerializer":33,"./ModernizrFeatures":34,"./Morsel":35,"./Performance":36,"./Stream":37,"./StreamStats":38,"./Timer":39,"./TupleGetters":40,"./UUID":41,"./addChecksum":43}],31:[function(require,module,exports){
var FullSerializer=function(){var t,e=function(e){return t?t:(t=this,this._stream=e.getStream(),this._factory=e,this._config=e.getAyahConfig(),this._last_tuple=null,void(this._next_index=0))},r=e.prototype;return r.getAllObservations=function(){var t=this._stream.getData(),e={},r=this._config.getStreamMap();for(var i in r)if(r.hasOwnProperty(i)){var a=this._getCombinedStreams(r[i],t);e[i]=this._extractTuplesFromMorsels(a)}return e.version=this._config.getPayloadVersion(),this._addLegacyObservations(e),e},r._addLegacyObservations=function(t){delete t.mouse,delete t.buttons,delete t.touch,t.legacy=this._factory.getLegacySerializer().getAllObservations()},r._getCombinedStreams=function(t,e){for(var r=[],i=0;i<t.length;i++){var a=t[i];e.hasOwnProperty(a)&&(r=r.concat(e[a]))}return r.sort(function(t,e){return t.millis-e.millis})},r._extractTuplesFromMorsels=function(t){for(var e=[],r=null,i=0;i<t.length;i++){var a=t[i];this._addTuples(e,a,r),r=a}return e},r._addTuples=function(t,e,r){var i=0;r&&(i=r.millis);for(var a=0;a<e.data.length;a++){var n=[];this._config.isTimeSeries(e.type)&&(n=[e.millis-i]);var s=n.concat(e.data[a]);t.push(s)}},e}();module.exports=function(t){return new FullSerializer(t)};

},{}],32:[function(require,module,exports){
var ayah_debug,ayah_debug_verbose,performingMultiTouchGesture=!1,keyPressCount=0,multiTouchCount=0,currentOrientation,orientationChangeCount=0,window,document,timer,start_time,MS_PER_TICK=20,screen_size,resetCounts=function(){keyPressCount=0,multiTouchCount=0,orientationChangeCount=0},addDeviceData=function(e){return"undefined"==typeof e&&(e={}),screen_size=get_container_dimension(),e.device_screen_width=screen_size.x,e.device_screen_height=screen_size.y,e.iframe=inIframe(),e.iframe_depth=getFrameDepth(self),e.history_depth=getHistoryDepth(),getPublisherDomain()&&(e.pd=getPublisherDomain()),e},getPublisherDomain=function(){try{return window.location.hostname}catch(e){return!1}},getHistoryDepth=function(){try{return window.history.length}catch(e){return-1}},addTelemetryData=function(e){return"undefined"==typeof e&&(e={}),e.kpc=keyPressCount,e.mtc=multiTouchCount,e.occ=orientationChangeCount,e.tc=getTickCount(),e},getFrameDepth=function(e){try{return e===window.top?0:e.parent===window.top?1:1+getFrameDepth(e.parent)}catch(t){return-1}},countMultiTouch=function(e){e.touches.length<2||performingMultiTouchGesture||(multiTouchCount++,performingMultiTouchGesture=!0)},endMultiTouch=function(e){performingMultiTouchGesture=!1},handleKeyEvent=function(e){keyPressCount++},getOrientation=function(){return"undefined"!=typeof window.orientation?window.orientation:null},countOrientationChanges=function(){"undefined"==typeof currentOrientation&&(currentOrientation=getOrientation());var e=getOrientation();currentOrientation!==e&&(orientationChangeCount++,currentOrientation=e)},get_container_dimension=function(){function e(e,t){try{if("undefined"!=typeof e&&"undefined"!=typeof e[t])return e[t]}catch(n){}}var t={x:0,y:0};try{var n=window,r=document,i=r.documentElement,o=r.getElementsByTagName("body")[0],a=e(n,"innerWidth")||e(i,"clientWidth")||e(o,"clientWidth"),u=e(n,"innerHeight")||e(i,"clientHeight")||e(o,"clientHeight");t={x:a,y:u}}catch(c){}return t},inIframe=function(){try{return window.self!==window.top}catch(e){return!0}},ayahEncrypt=function(e,t){var n=require("../Crypto");__hash=n.SHA1(t).toString(),__ePointer=0,__chars=new Array;for(var r=0;r<__hash.length;r++)__chars.push(__hash.charCodeAt(r));var i=new Array;a=e;for(var r=0;r<a.length;r++){for(var o=a.charCodeAt(r),u=o+__chars[__ePointer];u>126;)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;r<t.length;r++)n+=e[t.charCodeAt(r)-48];return n},o=document.createElement("div");o.setAttribute("class",i(e,n)),o.setAttribute("style",i(t,r));var a=window.document.body.appendChild(o),u=0;if(null===window.document.body.getAttribute("abp")&&null!==a.offsetParent&&0!=a.offsetHeight&&0!=a.offsetLeft&&0!=a.offsetTop&&0!=a.offsetWidth&&0!=a.clientHeight&&0!=a.clientWidth||(u=1),void 0!==window.getComputedStyle){var c=window.getComputedStyle(a,null);!c||"none"!=c.getPropertyValue("display")&&"hidden"!=c.getPropertyValue("visibility")||(u=1)}return window.document.body.removeChild(a),u},getTickCount=function(){return Math.floor((timer.getPerfTime()-start_time)/MS_PER_TICK)};module.exports=function(e,t,n){return window=e,document=t,ayah_debug=n.getDebugFunction(),ayah_debug_verbose=n.getVerboseDebugFunction(),screen_size=get_container_dimension(),timer=n.getTimer(),start_time=timer.getPerfTime(),{addDeviceData:addDeviceData,addTelemetryData:addTelemetryData,getFrameDepth:getFrameDepth,countMultiTouch:countMultiTouch,endMultiTouch:endMultiTouch,handleKeyEvent:handleKeyEvent,getOrientation:getOrientation,countOrientationChanges:countOrientationChanges,inIframe:inIframe,ayahEncrypt:ayahEncrypt,addUserAgentData:addUserAgentData,getAdBlock:getAdBlock,getTickCount:getTickCount,resetCounts:resetCounts}};

},{"../Crypto":21,"ua-parser-js":18}],33:[function(require,module,exports){
var ayah_debug,ayah_debug_verbose,LegacySerializer=function(){var e,t=["mouse","touch","buttons"],r=function(t){return e?e:(e=this,this._stream=t.getStream(),this._factory=t,this._last_tuple=null,void(this._next_index=0))},n=r.prototype;return n.getAllObservations=function(){return this._serializeStream(this._getCombinedStreams(t)).encoded},n.getNewObservations=function(e,r){var n=this._getCombinedStreams(t);n=n.slice(this._next_index);var a=n.length;if(a&&!(e>a)){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;n<e.length;n++){var a=e[n];t.hasOwnProperty(a)&&(r=r.concat(t[a]))}return r.sort(function(e,t){return e.millis-t.millis})},n._translateMorselToLegacy=function(e){var t=[],r=e.data[0];if(r){for(var n=r.length,a=0;n>a;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)};

},{}],34:[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};

},{}],35:[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.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)};

},{}],36:[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);e=Math.round(1/o)}catch(t){}return e}}};module.exports=function(r){return ayah_debug=r.getDebugFunction(),Performance};

},{}],37:[function(require,module,exports){
var ayah_debug,Stream=function(){var t,e=require("tiny-emitter"),a=function(e){return t?t:(t=this,this._stopped=!1,this._factory=e,this._timer=e.getTimer(),this._config=e.getAyahConfig(),this._stats=e.getStreamStats(),this._data={},void this.init())};a.prototype=new e,a.constructor=a;var r=a.prototype;return r.ingest=function(t,e){if(!this._stopped){var a=this._stats.start();try{var r=this._factory.makeMorsel(t,e);this._prepareMorsel(r)&&(this._data[r.type].push(r),this.emit(r.type.toLowerCase(),r))}catch(i){}this._stats.updateStats(e,a)}},r.stop=function(){this._stopped=!0},r.getData=function(){return this._data},r.init=function(){for(var t=this._config.getActiveStreams(),e=0;e<t.length;e++){var a=t[e];this._data[a]=[]}},r._prepareMorsel=function(t){var e=this._getLastSample(t.type);return this._canAcceptMorsel(t,e)&&t.makeTuples()?this._checkDuplicateTuples(t,e):!1},r._canAcceptMorsel=function(t,e){return void 0==e?!0:t.sample_num>e.sample_num},r._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)},r._compareAllTuples=function(t,e){for(var a=t.data.length,r=0;a>r;r++)if(this._compareTuple(t.data[r],e.data[r]))return!0;return!1},r._compareTuple=function(t,e){for(var a=t.length,r=0;a>r;r++)if(t[r]!==e[r])return!0;return!1},r._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":17}],38:[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)};

},{}],39:[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)};

},{}],40:[function(require,module,exports){
var ayah_debug,ayah_debug_verbose,Util=require("./Util"),TupleGetters=function(){var t,e={VOWEL:0,CONSONANT:1,NUMERIC:2,OTHER:3,CONTROL:4},n=/^(Control|Shift|Alt|F|Media|Volume|Browser|Arrow|Page|OS).*/,a=function(e){return this._config=e,t?t:void(t=this)},r=a.prototype;r.get=function(t){return this.getTupleWith(t,this._config.getTupleFormat(t.type))||this.getTupleWith(t,t.type)},r.getTupleWith=function(t,e){if("function"==typeof this[e])try{return this[e](t)}catch(n){}},r.mouse=function(t){f(t.data);var e=t.data.buttons||t.data.button||-1,n=[t.data.pageX,t.data.pageY,e];return[n]},r.mousemove=function(t){var e=[i(t.data.clientX),i(t.data.clientY)];return[e]},r.touch=function(t){f(t.data.touches[0]);var e=[parseInt(t.data.touches[0].pageX),parseInt(t.data.touches[0].pageY),4];return[e]},r.buttons=function(t){f(t.data);var e=t.data.buttons||t.data.button||-1,n=[t.data.pageX,t.data.pageY,e];return[n]},r.mousebuttons=function(t){var e=[t.data.buttons];return[e]},r.fulltouch=function(t){for(var e=[],n=0;n<t.data.changedTouches.length;n++){var a=t.data.changedTouches[n];e.push([a.identifier,d(a.clientX),d(a.clientY),c(a.radiusX),c(a.radiusY),c(a.rotationAngle),c(a.force),l(t.data)])}return e},r.motion=function(t){var e=[o(t.data.accelerationIncludingGravity.x),o(t.data.accelerationIncludingGravity.y),o(t.data.accelerationIncludingGravity.z)];return[e]},r.orientation=function(t){var e=[s(t.data.alpha),s(t.data.beta),s(t.data.gamma)];return[e]},r.scroll=function(t){var e=[window.scrollX,window.scrollY];return[e]},r.key=function(t){var e=u(t.data.code),n=[e];return[n]};var u=function(t){return"Key"==t.substr(0,3)?["A","E","I","O","U","Y"].indexOf(t.substr(3,1))>=0?e.VOWEL:e.CONSONANT:"Digit"==t.substr(0,5)?e.NUMERIC:"Numpad"==t.substr(0,6)&&7==t.length?e.NUMERIC:["Escape","Backspace","Tab","Enter","Delete"].indexOf(t)>=0||n.test(t)?e.CONTROL:e.OTHER};r.sortedProperties=function(t){for(var e=Util.sortedObjectKeys(t.data),n=[],a=0;a<e.length;a++){var r=e[a];n.push(t.data[r])}return[n]},r.singleTupleAsIs=function(t){return[t.data]};var o=function(t){return Math.round(10*t)/10},i=function(t){return Math.round(t)},c=function(t){return Math.round(100*t)/100},d=function(t){return Math.round(10*t)/10},s=function(t){return Math.round(100*t)/100},l=function(t){switch(t.type){case"touchend":return 0;case"touchstart":return 1;default:return 2}},f=function(t){if(null==t.pageX&&null!=t.clientX){var e=t.target&&t.target.ownerDocument||document,n=e.documentElement,a=e.body;t.pageX=t.clientX+(n&&n.scrollLeft||a&&a.scrollLeft||0)-(n&&n.clientLeft||a&&a.clientLeft||0),t.pageY=t.clientY+(n&&n.scrollTop||a&&a.scrollTop||0)-(n&&n.clientTop||a&&a.clientTop||0)}};return a}();module.exports=function(t,e){return ayah_debug=t.getDebugFunction(),ayah_debug_verbose=t.getVerboseDebugFunction(),new TupleGetters(e)};

},{"./Util":42}],41:[function(require,module,exports){
function UUID(){}UUID.prototype.UUID_LENGTH=33,UUID.prototype.UUID_NUMBER_BASE=16,UUID.prototype.make=function(){for(var t="",o=this.getRandomNumbers(),n=0;n<o.length;n++){var e=o[n];e%=this.UUID_NUMBER_BASE,t+=e.toString(this.UUID_NUMBER_BASE)}return t},UUID.prototype.getRandomNumbers=function(){var t,o=this.getCryptoApi();return o?(t=new Uint8Array(this.UUID_LENGTH),o.getRandomValues(t)):(t=new Array(this.UUID_LENGTH),this.getRandomValuesLegacy(t)),t},UUID.prototype.getRandomValuesLegacy=function(t){var o,n,e,r=(new Date).getTime();try{e=window.location.hostname+window.location.path+window.location.search+window.location.hash}catch(U){}for(var a=0;a<t.length;a++)n=Math.floor(Math.random()*this.UUID_NUMBER_BASE),o=r,e&&(o+=e.charCodeAt(a%e.length)),t[a]=n+o,r=Math.floor(r/this.UUID_NUMBER_BASE)},UUID.prototype.getCryptoApi=function(){return window.crypto&&window.crypto.getRandomValues?window.crypto:window.msCrypto&&window.msCrypto.getRandomValues?window.msCrypto:null},module.exports=UUID;

},{}],42:[function(require,module,exports){
module.exports={sortedObjectKeys:function(r){var e=[];for(var o in r)r.hasOwnProperty(o)&&e.push(o);return e.sort(),e}};

},{}],43:[function(require,module,exports){
var ayah_debug,ayah_debug_verbose,Util=require("./Util"),addChecksum=function(){function r(r){r=String(r);for(var e=arguments.length<2?79764919:arguments[1]>>>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;++v<h;){var f=r.charCodeAt(v);if(f>255)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<a.length;u++){var g=a[u];g!=e&&(o+=JSON.stringify(t[g]))}n=r(o)}catch(i){}t[e]=n}};module.exports=function(r){return ayah_debug=r.getDebugFunction(),ayah_debug_verbose=r.getVerboseDebugFunction(),addChecksum};

},{"./Util":42}],44:[function(require,module,exports){
var config={version:1,streams:{defaults:{allow_repetition:!1,frequency:50},mouse:{events:["mousemove"]},touch:{events:["touchmove"]},buttons:{events:["mousedown","mouseup"]},touchmove:{events:["touchmove"],tuple:"fulltouch"},touchstart:{events:["touchstart"],tuple:"fulltouch"},touchend:{events:["touchend"],tuple:"fulltouch"},motion:{events:["devicemotion"],event_target:"window"},orientation:{events:["deviceorientation"],event_target:"window"},scroll:{events:["scroll"],event_target:"window"},mousebuttons:{events:["mousedown","mouseup"]},mousemove:{events:["mousemove"]},keydown:{events:["keydown"],tuple:["key"]},keyup:{events:["keyup"],tuple:["key"]},modernizr:{tuple:"sortedProperties",time_series:!1},automation:{tuple:"singleTupleAsIs",time_series:!1},performance:{tuple:"singleTupleAsIs",time_series:!1}},stream_groups:{legacy:["mouse","touch","buttons"],test:["touchmove","touchstart","touchend","scroll","mousebuttons","mousemove","keyup","keydown","modernizr","automation","performance"]},active_stream_groups:["legacy"],stream_map:{touch:["touchmove","touchstart","touchend"]}};module.exports=config;
},{}]},{},[24]);
