/* Counter block mode compatible with Dr Brian Gladman fileenc.c derived from CryptoJS.mode.CTR Jan Hruby jhruby.web@gmail.com (c) 2012 by C?dric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. MIT License (c) copyright 2013-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors */ (function(ma){"object"===typeof exports&&"undefined"!==typeof module?module.exports=ma():"function"===typeof define&&define.amd?define([],ma):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).autobahn=ma()})(function(){return function h(n,l,b){function a(c,f){if(!l[c]){if(!n[c]){var q="function"==typeof require&&require;if(!f&&q)return q(c,!0);if(g)return g(c,!0);q=Error("Cannot find module '"+c+"'");throw q.code="MODULE_NOT_FOUND",q;}q=l[c]= {exports:{}};n[c][0].call(q.exports,function(b){var r=n[c][1][b];return a(r?r:b)},q,q.exports,h,n,l,b)}return l[c].exports}for(var g="function"==typeof require&&require,c=0;cthis._max_retry_delay&&(this._retry_delay=this._max_retry_delay);this._retry_count+=1;var a;a=this._retry&&(-1===this._max_retries|| this._retry_count<=this._max_retries)?{count:this._retry_count,delay:this._retry_delay,will_retry:!0}:{count:null,delay:null,will_retry:!1};this._retry_delay_growth&&(this._retry_delay*=this._retry_delay_growth);return a};q.prototype.open=function(){function a(){c._transport=c._create_transport();if(c._transport)c._session=new g.Session(c._transport,c._defer,c._options.onchallenge),c._session_close_reason=null,c._session_close_message=null,c._transport.onopen=function(){c._autoreconnect_reset();c._connect_successes+= 1;c._session.join(c._options.realm,c._options.authmethods,c._options.authid)},c._session.onjoin=function(a){if(c.onopen)try{c.onopen(c._session,a)}catch(b){e.debug("Exception raised from app code while firing Connection.onopen()",b)}},c._session.onleave=function(a,b){c._session_close_reason=a;c._session_close_message=b.message||"";c._retry=!1;c._transport.close(1E3)},c._transport.onclose=function(b){c._autoreconnect_reset_timer();var f=c._transport=null;0===c._connect_successes?(f="unreachable",c._retry_if_unreachable|| (c._retry=!1)):f=b.wasClean?"closed":"lost";b=c._autoreconnect_advance();if(c.onclose){var g={reason:c._session_close_reason,message:c._session_close_message,retry_delay:b.delay,retry_count:b.count,will_retry:b.will_retry};try{var q=c.onclose(f,g)}catch(v){e.debug("Exception raised from app code while firing Connection.onclose()",v)}}c._session&&(c._session._id=null,c._session=null,c._session_close_reason=null,c._session_close_message=null);c._retry&&!q&&(b.will_retry?(c._is_retrying=!0,e.debug("retrying in "+ b.delay+" s"),c._retry_timer=setTimeout(a,1E3*b.delay)):e.debug("giving up trying to reconnect"))};else if(c._retry=!1,c.onclose)c.onclose("unsupported",{reason:null,message:null,retry_delay:null,retry_count:null,will_retry:!1})}var c=this;if(c._transport)throw"connection already open (or opening)";c._autoreconnect_reset();c._retry=!0;a()};q.prototype.close=function(a,c){if(!this._transport&&!this._is_retrying)throw"connection already closed";this._retry=!1;this._session&&this._session.isOpen?this._session.leave(a, c):this._transport&&this._transport.close(1E3)};Object.defineProperty(q.prototype,"defer",{get:function(){return this._defer}});Object.defineProperty(q.prototype,"session",{get:function(){return this._session}});Object.defineProperty(q.prototype,"isOpen",{get:function(){return this._session&&this._session.isOpen?!0:!1}});Object.defineProperty(q.prototype,"isConnected",{get:function(){return this._transport?!0:!1}});Object.defineProperty(q.prototype,"transport",{get:function(){return this._transport? this._transport:{info:{type:"none",url:null,protocol:null}}}});Object.defineProperty(q.prototype,"isRetrying",{get:function(){return this._is_retrying}});l.Connection=q}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./autobahn.js":3,"./log.js":6,"./session.js":15,"./util.js":19,when:78}],6:[function(h,n,l){(function(b){var a=function(){};"AUTOBAHN_DEBUG"in b&&AUTOBAHN_DEBUG&&"console"in b&&(a=function(){console.log.apply(console, arguments)});l.debug=a}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],7:[function(h,n,l){h("./polyfill/object");h("./polyfill/array");h("./polyfill/string");h("./polyfill/function");h("./polyfill/console");h("./polyfill/typedarray");h("./polyfill/json")},{"./polyfill/array":8,"./polyfill/console":9,"./polyfill/function":10,"./polyfill/json":11,"./polyfill/object":12,"./polyfill/string":13,"./polyfill/typedarray":14}],8:[function(h, n,l){"function"!==typeof Array.prototype.reduce&&(Array.prototype.reduce=function(b){var a,g,c,e;if(null===this||"undefined"===typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof b)throw new TypeError(b+" is not a function");g=Object(this);a=g.length>>>0;e=0;if(2<=arguments.length)c=arguments[1];else{for(;e=a)throw new TypeError("Reduce of empty array with no initial value");c=g[e++]}for(;ea&&(a+=this.length);0>a&&(a=0);for(var g=this.length;aa&&(a+=this.length);a>this.length-1&&(a=this.length-1);for(a++;0>>0)-1,c;if(2<=arguments.length)c=arguments[1];else{for(;0<=g&&!g in a;)g--;if(0>g)throw new TypeError("Reduce of empty array with no initial value");c=a[g--]}for(;0<=g;g--)g in a&&(c=b(c,a[g],g,a));return c})},{}],9:[function(h,n,l){(function(b){(function(a){a||(a=window.console={log:function(a,c,b,f,q){},info:function(a,c,b,f,q){},warn:function(a,c,b,f,q){},error:function(a,c,b,f,q){},assert:function(a,c){}});"object"===typeof a.log&&(a.log=Function.prototype.call.bind(a.log,a),a.info= Function.prototype.call.bind(a.info,a),a.warn=Function.prototype.call.bind(a.warn,a),a.error=Function.prototype.call.bind(a.error,a),a.debug=Function.prototype.call.bind(a.info,a));"group"in a||(a.group=function(b){a.info("\n--- "+b+" ---\n")});"groupEnd"in a||(a.groupEnd=function(){a.log("\n")});"assert"in a||(a.assert=function(a,c){if(!a)try{throw Error("assertion failed: "+c);}catch(b){setTimeout(function(){throw b;},0)}});"time"in a||function(){var b={};a.time=function(a){b[a]=(new Date).getTime()}; a.timeEnd=function(c){var e=(new Date).getTime();a.info(c+": "+(c in b?e-b[c]:0)+"ms")}}()})(b.console)}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],10:[function(h,n,l){Function.prototype.bind||(Function.prototype.bind=function(b){var a=this,g=Array.prototype.slice.call(arguments,1);return function(){return a.apply(b,Array.prototype.concat.apply(g,arguments))}})},{}],11:[function(h,n,l){"object"!==typeof JSON&&(JSON={}); (function(){function b(a){return 10>a?"0"+a:a}function a(a){e.lastIndex=0;return e.test(a)?'"'+a.replace(e,function(a){var c=k[a];return"string"===typeof c?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function g(c,b){var e,k,v,D,Q=f,C,m=b[c];m&&"object"===typeof m&&"function"===typeof m.toJSON&&(m=m.toJSON(c));"function"===typeof r&&(m=r.call(b,c,m));switch(typeof m){case "string":return a(m);case "number":return isFinite(m)?String(m):"null";case "boolean":case "null":return String(m); case "object":if(!m)return"null";f+=q;C=[];if("[object Array]"===Object.prototype.toString.apply(m)){D=m.length;for(e=0;e>b}function d(a,c){var b=32-c;return a<>>b}function z(a){return[a&255]}function G(a){return r(a[0],8)}function h(a){return[a&255]}function v(a){return d(a[0],8)}function D(a){a=W(Number(a));return[0>a?0:255>8&255,a&255]}function C(a){return r(a[0]<<8|a[1],16)}function m(a){return[a>>8&255,a&255]}function H(a){return d(a[0]<<8|a[1],16)}function A(a){return[a>>24&255,a>>16&255,a>>8&255, a&255]}function l(a){return r(a[0]<<24|a[1]<<16|a[2]<<8|a[3],32)}function n(a){return[a>>24&255,a>>16&255,a>>8&255,a&255]}function E(a){return d(a[0]<<24|a[1]<<16|a[2]<<8|a[3],32)}function L(a,c,b){function d(a){var c=t(a);a-=c;return.5>a?c:.5a?1:0):0===a?(k=f=0,p=-Infinity===1/a?1:0):(p=0>a,a=w(a),a>=K(2,1-e)?(f=P(t(x(a)/u),1023),k=d(a/K(2,f)*K(2,b)),2<=k/K(2,b)&&(f+=1,k=1),f> e?(f=(1<>=1;d.reverse();p=d.join("");a=(1<d?-0:0}function y(a){return N(a,11,52)}function R(a){return L(a,11,52)}function p(a){return N(a,8,23)}function I(a){return L(a,8,23)}var u=Math.LN2,w=Math.abs,t=Math.floor,x=Math.log,S=Math.max,P=Math.min,K=Math.pow,W=Math.round;(function(){var a=Object.defineProperty,c;try{c=Object.defineProperty({},"x",{})}catch(b){c=!1}a&&c||(Object.defineProperty=function(c,b,d){if(a)try{return a(c,b,d)}catch(p){}if(c!== Object(c))throw TypeError("Object.defineProperty called on non-object");Object.prototype.__defineGetter__&&"get"in d&&Object.prototype.__defineGetter__.call(c,b,d.get);Object.prototype.__defineSetter__&&"set"in d&&Object.prototype.__defineSetter__.call(c,b,d.set);"value"in d&&(c[b]=d.value);return c})})();(function(){function d(a){a>>=0;if(0>a)throw RangeError("ArrayBuffer size is not a small enough positive integer.");Object.defineProperty(this,"byteLength",{value:a});Object.defineProperty(this, "_bytes",{value:Array(a)});for(var c=0;c>=0;if(0>a)throw RangeError("length is not a small enough positive integer.");Object.defineProperty(this,"length",{value:a});Object.defineProperty(this,"byteLength",{value:a*this.BYTES_PER_ELEMENT});Object.defineProperty(this,"buffer",{value:new d(this.byteLength)});Object.defineProperty(this,"byteOffset",{value:0})}.apply(this,arguments);if(1<=arguments.length&& "object"===c(arguments[0])&&arguments[0]instanceof r)return function(a){if(this.constructor!==a.constructor)throw TypeError();var c=a.length*this.BYTES_PER_ELEMENT;Object.defineProperty(this,"buffer",{value:new d(c)});Object.defineProperty(this,"byteLength",{value:c});Object.defineProperty(this,"byteOffset",{value:0});Object.defineProperty(this,"length",{value:a.length});for(c=0;c>>=0;if(c>a.byteLength)throw RangeError("byteOffset out of range");if(c%this.BYTES_PER_ELEMENT)throw RangeError("buffer length minus the byteOffset is not a multiple of the element size.");if(void 0===b){var d=a.byteLength-c;if(d%this.BYTES_PER_ELEMENT)throw RangeError("length of buffer minus byteOffset not a multiple of the element size");b=d/this.BYTES_PER_ELEMENT}else b>>>=0,d=b*this.BYTES_PER_ELEMENT;if(c+d>a.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer"); Object.defineProperty(this,"buffer",{value:a});Object.defineProperty(this,"byteLength",{value:d});Object.defineProperty(this,"byteOffset",{value:c});Object.defineProperty(this,"length",{value:b})}.apply(this,arguments);throw TypeError();}function u(a,c,b){var d=function(){Object.defineProperty(this,"constructor",{value:d});r.apply(this,arguments);k(this)};"__proto__"in d?d.__proto__=r:(d.from=r.from,d.of=r.of);d.BYTES_PER_ELEMENT=a;var p=function(){};p.prototype=x;d.prototype=new p;Object.defineProperty(d.prototype, "BYTES_PER_ELEMENT",{value:a});Object.defineProperty(d.prototype,"_pack",{value:c});Object.defineProperty(d.prototype,"_unpack",{value:b});return d}a.ArrayBuffer=a.ArrayBuffer||d;Object.defineProperty(r,"from",{value:function(a){return new this(a)}});Object.defineProperty(r,"of",{value:function(){return new this(arguments)}});var x={};r.prototype=x;Object.defineProperty(r.prototype,"_getter",{value:function(a){if(1>arguments.length)throw SyntaxError("Not enough arguments");a>>>=0;if(!(a>=this.length)){var c= [],b,d;b=0;for(d=this.byteOffset+a*this.BYTES_PER_ELEMENT;barguments.length)throw SyntaxError("Not enough arguments");a>>>=0;if(!(a>=this.length)){var b=this._pack(c),d,p;d=0;for(p=this.byteOffset+a*this.BYTES_PER_ELEMENT;d>>0,p=S(p,0);a>>=0;a=0>a?S(p+a,0):P(a,p);c>>=0;c=0>c?S(p+c,0):P(c,p);b=void 0===b?p:b>>0;b=0>b?S(p+b,0):P(b,p);p=P(b-c,p-a);from>>0;if(!f(a))throw TypeError();for(var p=0;p>>0,p=S(p,0);c>>=0;c=0>c?S(p+c,0):P(c,p);b=void 0===b?p:b>>0;for(p=0>b?S(p+b,0):P(b,p);c>>0;if(!f(a))throw TypeError(); for(var p=[],e=0;e>>0;if(!f(a))throw TypeError();for(var d=1>>0;if(!f(a))throw TypeError();for(var d=1>>0;if(!f(a))throw TypeError();for(var p=0;p>>0;if(0===b)return-1;var d=0,p;0=b)return-1;for(d=0<=d?d:S(b-w(d),0);d>>0,d=Array(b),p=0;p>>0;if(0===b)return-1;var d=b;1>>0;if(!f(a))throw TypeError();var p=[];p.length=d;for(var e=0;e>>0;if(!f(a))throw TypeError();if(0===b&&1===arguments.length)throw TypeError();var d=0,p;for(p=2<=arguments.length?arguments[1]:c._getter(d++);d>>0;if(!f(a))throw TypeError(); if(0===b&&1===arguments.length)throw TypeError();var b=b-1,d;for(d=2<=arguments.length?arguments[1]:c._getter(b--);0<=b;)d=a.call(void 0,d,c._getter(b),b,c),b--;return d}});Object.defineProperty(r.prototype,"reverse",{value:function(){if(void 0===this||null===this)throw TypeError();for(var a=Object(this),c=a.length>>>0,b=t(c/2),d=0,c=c-1;darguments.length)throw SyntaxError("Not enough arguments"); var b,d,p,e,f,k;if("object"===typeof arguments[0]&&arguments[0].constructor===this.constructor){b=arguments[0];d=arguments[1]>>>0;if(d+b.length>this.length)throw RangeError("Offset plus length of array is out of range");k=this.byteOffset+d*this.BYTES_PER_ELEMENT;d=b.length*this.BYTES_PER_ELEMENT;if(b.buffer===this.buffer){p=[];e=0;for(f=b.byteOffset;e>>0;d=arguments[1]>>>0;if(d+p>this.length)throw RangeError("Offset plus length of array is out of range");for(e=0;e>>0,p=a>>0,p=0>p?S(d+p,0):P(p,d),e=void 0===c?d:c>>0,d=0>e?S(d+e,0): P(e,d),e=new b.constructor(d-p),f=0;p>>0;if(!f(a))throw TypeError();for(var p=0;p>>0,d=Array(b),p=0;p< b;++p)d[p]=c._getter(p);a?d.sort(a):d.sort();for(p=0;p>=0;c>>=0;1>arguments.length&&(a=0);2>arguments.length&&(c=this.length);0>a&&(a=this.length+a);0>c&&(c=this.length+c);var b=this.length;a=0>a?0:a>b?b:a;b=this.length;b=(0>c?0:c>b?b:c)-a;0>b&&(b=0);return new this.constructor(this.buffer,this.byteOffset+a*this.BYTES_PER_ELEMENT,b)}});var da=u(1,z,G),T=u(1,h,v),N=u(1,D,v),L=u(2,Q,C),K=u(2,m,H), ia=u(4,A,l),fa=u(4,n,E),W=u(4,I,p),ga=u(8,R,y);a.Int8Array=b.Int8Array=a.Int8Array||da;a.Uint8Array=b.Uint8Array=a.Uint8Array||T;a.Uint8ClampedArray=b.Uint8ClampedArray=a.Uint8ClampedArray||N;a.Int16Array=b.Int16Array=a.Int16Array||L;a.Uint16Array=b.Uint16Array=a.Uint16Array||K;a.Int32Array=b.Int32Array=a.Int32Array||ia;a.Uint32Array=b.Uint32Array=a.Uint32Array||fa;a.Float32Array=b.Float32Array=a.Float32Array||W;a.Float64Array=b.Float64Array=a.Float64Array||ga})();(function(){function c(a,b){return f(a.get)? a.get(b):a[b]}function b(a,c,d){if(!(a instanceof ArrayBuffer||"ArrayBuffer"===e(a)))throw TypeError();c>>>=0;if(c>a.byteLength)throw RangeError("byteOffset out of range");d=void 0===d?a.byteLength-c:d>>>0;if(c+d>a.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:a});Object.defineProperty(this,"byteLength",{value:d});Object.defineProperty(this,"byteOffset",{value:c})}function d(b){return function(d,p){d>>>= 0;if(d+b.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");d+=this.byteOffset;for(var e=new a.Uint8Array(this.buffer,d,b.BYTES_PER_ELEMENT),f=[],r=0;r>>=0;if(d+b.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");p=new b([p]);p=new a.Uint8Array(p.buffer);var f=[],r;for(r=0;r must be a string"); e.assert(!c||Array.isArray(c),"Session.join: must be an array []");e.assert(!b||"string"===typeof b,"Session.join: must be a string");if(this.isOpen)throw"session already open";this._goodbye_sent=!1;this._realm=a;var d={};d.roles=f;c&&(d.authmethods=c);b&&(d.authid=b);this._send_wamp([1,a,d])};v.prototype.leave=function(a,c){e.assert(!a||"string"===typeof a,"Session.leave: must be a string");e.assert(!c||"string"===typeof c,"Session.leave: must be a string"); if(!this.isOpen)throw"session not open";a||(a="wamp.close.normal");var b={};c&&(b.message=c);this._send_wamp([6,b,a]);this._goodbye_sent=!0};v.prototype.call=function(c,b,d,f){e.assert("string"===typeof c,"Session.call: must be a string");e.assert(!b||Array.isArray(b),"Session.call: must be an array []");e.assert(!d||d instanceof Object,"Session.call: must be an object {}");e.assert(!f||f instanceof Object,"Session.call: must be an object {}");if(!this.isOpen)throw"session not open"; f=f||{};void 0===f.disclose_me&&this._caller_disclose_me&&(f.disclose_me=!0);var k=this._defer(),r=a();this._call_reqs[r]=[k,f];c=[48,r,f,this.resolve(c)];b?(c.push(b),d&&c.push(d)):d&&(c.push([]),c.push(d));this._send_wamp(c);return k.promise.then?k.promise:k};v.prototype.publish=function(c,b,d,f){e.assert("string"===typeof c,"Session.publish: must be a string");e.assert(!b||Array.isArray(b),"Session.publish: must be an array []");e.assert(!d||d instanceof Object,"Session.publish: must be an object {}"); e.assert(!f||f instanceof Object,"Session.publish: must be an object {}");if(!this.isOpen)throw"session not open";f=f||{};void 0===f.disclose_me&&this._publisher_disclose_me&&(f.disclose_me=!0);var k=null,r=a();f.acknowledge&&(k=this._defer(),this._publish_reqs[r]=[k,f]);c=[16,r,f,this.resolve(c)];b?(c.push(b),d&&c.push(d)):d&&(c.push([]),c.push(d));this._send_wamp(c);if(k)return k.promise.then?k.promise:k};v.prototype.subscribe=function(c,b,d){e.assert("string"===typeof c,"Session.subscribe: must be a string"); e.assert("function"===typeof b,"Session.subscribe: must be a function");e.assert(!d||d instanceof Object,"Session.subscribe: must be an object {}");if(!this.isOpen)throw"session not open";var f=a(),k=this._defer();this._subscribe_reqs[f]=[k,c,b,d];b=[32,f];d?b.push(d):b.push({});b.push(this.resolve(c));this._send_wamp(b);return k.promise.then?k.promise:k};v.prototype.register=function(c,b,d){e.assert("string"===typeof c,"Session.register: must be a string");e.assert("function"=== typeof b,"Session.register: must be a function");e.assert(!d||d instanceof Object,"Session.register: must be an object {}");if(!this.isOpen)throw"session not open";var f=a(),k=this._defer();this._register_reqs[f]=[k,c,b,d];b=[64,f];d?b.push(d):b.push({});b.push(this.resolve(c));this._send_wamp(b);return k.promise.then?k.promise:k};v.prototype.unsubscribe=function(c){e.assert(c instanceof z,"Session.unsubscribe: must be an instance of class autobahn.Subscription"); if(!this.isOpen)throw"session not open";if(!(c.active&&c.id in this._subscriptions))throw"subscription not active";var b=this._subscriptions[c.id],d=b.indexOf(c);if(-1===d)throw"subscription not active";b.splice(d,1);c.active=!1;d=this._defer();b.length?d.resolve(!1):(b=a(),this._unsubscribe_reqs[b]=[d,c.id],this._send_wamp([34,b,c.id]));return d.promise.then?d.promise:d};v.prototype.unregister=function(c){e.assert(c instanceof G,"Session.unregister: must be an instance of class autobahn.Registration"); if(!this.isOpen)throw"session not open";if(!(c.active&&c.id in this._registrations))throw"registration not active";var b=a(),d=this._defer();this._unregister_reqs[b]=[d,c];this._send_wamp([66,b,c.id]);return d.promise.then?d.promise:d};v.prototype.prefix=function(a,c){e.assert("string"===typeof a,"Session.prefix: must be a string");e.assert(!c||"string"===typeof c,"Session.prefix: must be a string or falsy");c?this._prefixes[a]=c:a in this._prefixes&&delete this._prefixes[a]};v.prototype.resolve= function(a){e.assert("string"===typeof a,"Session.resolve: must be a string");var c=a.indexOf(":");if(0<=c){var b=a.substring(0,c);if(b in this._prefixes)return this._prefixes[b]+"."+a.substring(c+1);throw"cannot resolve CURIE prefix '"+b+"'";}return a};l.Session=v;l.Invocation=q;l.Event=k;l.Result=r;l.Error=d;l.Subscription=z;l.Registration=G;l.Publication=B}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./log.js":6, "./util.js":19,when:78,"when/function":54}],16:[function(h,n,l){function b(c){a.assert(void 0!==c.url,"options.url missing");a.assert("string"===typeof c.url,"options.url must be a string");this._options=c}var a=h("../util.js"),g=h("../log.js");h("when");b.prototype.type="longpoll";b.prototype.create=function(){var c=this;g.debug("longpoll.Factory.create");var b={protocol:void 0,send:void 0,close:void 0,onmessage:function(){},onopen:function(){},onclose:function(){},info:{type:"longpoll",url:null, protocol:"wamp.2.json"},_run:function(){var f=null,q=!1,k=c._options.request_timeout||12E3;a.http_post(c._options.url+"/open",JSON.stringify({protocols:["wamp.2.json"]}),k).then(function(r){function d(){g.debug("longpoll.Transport: polling for message ...");a.http_post(z+"/receive",null,k).then(function(a){a&&(a=JSON.parse(a),g.debug("longpoll.Transport: message received",a),b.onmessage(a));q||d()},function(a){g.debug("longpoll.Transport: could not receive message",a.code,a.text);q=!0;b.onclose({code:1001, reason:"transport receive failure (HTTP/POST status "+a.code+" - '"+a.text+"')",wasClean:!1})})}f=JSON.parse(r);var z=c._options.url+"/"+f.transport;b.info.url=z;g.debug("longpoll.Transport: open",f);b.close=function(c,d){if(q)throw"transport is already closing";q=!0;a.http_post(z+"/close",null,k).then(function(){g.debug("longpoll.Transport: transport closed");b.onclose({code:1E3,reason:"transport closed",wasClean:!0})},function(a){g.debug("longpoll.Transport: could not close transport",a.code,a.text)})}; b.send=function(c){if(q)throw"transport is closing or closed already";g.debug("longpoll.Transport: sending message ...",c);c=JSON.stringify(c);a.http_post(z+"/send",c,k).then(function(){g.debug("longpoll.Transport: message sent")},function(a){g.debug("longpoll.Transport: could not send message",a.code,a.text);q=!0;b.onclose({code:1001,reason:"transport send failure (HTTP/POST status "+a.code+" - '"+a.text+"')",wasClean:!1})})};d();b.onopen()},function(a){g.debug("longpoll.Transport: could not open transport", a.code,a.text);q=!0;b.onclose({code:1001,reason:"transport open failure (HTTP/POST status "+a.code+" - '"+a.text+"')",wasClean:!1})})}};b._run();return b};l.Factory=b},{"../log.js":6,"../util.js":19,when:78}],17:[function(h,n,l){(function(b,a){function g(a){a.protocols?e.assert(Array.isArray(a.protocols),"options.protocols must be an array"):a.protocols=["wamp.2.json"];a.rawsocket_max_len_exp=a.rawsocket_max_len_exp||24;this._options=a}function c(c,b){this._options={_peer_serializer:null,_peer_max_len_exp:0}; this._options=e.defaults(this._options,b,this.DEFAULT_OPTIONS);e.assert(this._options.serializer in this.SERIALIZERS,"Unsupported serializer: "+this._options.serializer);e.assert(9<=this._options.max_len_exp&&36>=this._options.max_len_exp,"Message length out of bounds [9, 36]: "+this._options.max_len_exp);e.assert(!this._options.autoping||Number.isInteger(this._options.autoping)&&0<=this._options.autoping,"Autoping interval must be positive");e.assert(!this._options.ping_timeout||Number.isInteger(this._options.ping_timeout)&& 0<=this._options.ping_timeout,"Ping timeout duration must be positive");e.assert(!this._options.packet_timeout||Number.isInteger(this._options.packet_timeout)&&0<=this._options.packet_timeout,"Packet timeout duration must be positive");e.assert(!this._options.autoping||!this._options.ping_timeout||this._options.autoping>this._options.ping_timeout,"Autoping interval ("+this._options.autoping+") must be lower than ping timeout ("+this._options.ping_timeout+")");this._ping_interval=this._ping_payload= this._ping_timeout=null;this._status=this.STATUS.UNINITIATED;this._stream=c;this._emitter=new q;this._buffer=new a(4);this._msgLen=this._bufferLen=0;var f=this;this._stream.on("data",function(a){f._read(a)});this._stream.on("connect",function(){f._handshake()});["close","drain","end","error","timeout"].forEach(function(a){f._stream.on(a,function(c){f._emitter.emit(a,c)})})}var e=h("../util.js"),f=h("../log.js"),q=h("events").EventEmitter;g.prototype.type="rawsocket";g.prototype.create=function(){var a= this,d={protocol:void 0,send:void 0,close:void 0,onmessage:function(){},onopen:function(){},onclose:function(){},info:{type:"rawsocket",url:null,protocol:"wamp.2.json"}};if(b.process&&b.process.versions.node)(function(){var b=h("net"),e;if(a._options.path)connectionOptions={path:a._options.path,allowHalfOpen:!0};else if(a._options.port)connectionOptions={port:a._options.port||8E3,host:a._options.host||"localhost",allowHalfOpen:!0};else throw"You must specify a host/port combination or a unix socket path to connect to"; b=b.connect(connectionOptions);e=new c(b,{serializer:"json",max_len_exp:a._options.rawsocket_max_len_exp});e.on("connect",function(a){f.debug("RawSocket transport negociated");d.onopen(a)});e.on("data",function(a){f.debug("RawSocket transport received",a);d.onmessage(a)});e.on("close",function(a){f.debug("RawSocket transport closed");d.onclose({code:999,reason:"",wasClean:!a})});e.on("error",function(a){f.debug("RawSocket transport error",a)});d.close=function(a,c){f.debug("RawSocket transport closing", a,c);e.close()};d.send=function(a){f.debug("RawSocket transport sending",a);e.write(a)}})();else throw"No RawSocket support in browser";return d};c.prototype._MAGIC_BYTE=127;c.prototype.SERIALIZERS={json:1};c.prototype.STATUS={CLOSED:-1,UNINITIATED:0,NEGOCIATING:1,NEGOCIATED:2,RXHEAD:3,RXDATA:4,RXPING:5,RXPONG:6};c.prototype.ERRORS={0:"illegal (must not be used)",1:"serializer unsupported",2:"maximum message length unacceptable",3:"use of reserved bits (unsupported feature)",4:"maximum connection count reached"}; c.prototype.MSGTYPES={WAMP:0,PING:1,PONG:2};c.prototype.DEFAULT_OPTIONS={fail_on_ping_timeout:!0,strict_pong:!0,ping_timeout:2E3,autoping:0,max_len_exp:24,serializer:"json",packet_timeout:2E3};c.prototype.close=function(){this._status=this.STATUS.CLOSED;this._stream.close();return this.STATUS.CLOSED};c.prototype.write=function(c,b,e){b=void 0===b?0:b;b===this.MSGTYPES.WAMP&&(c=JSON.stringify(c));var f=a.byteLength(c,"utf8");if(f>Math.pow(2,this._options._peer_max_len_exp))this._emitter.emit("error", new k("Frame too big"));else{var g=new a(f+4);g.writeUInt8(b,0);g.writeUIntBE(f,1,3);g.write(c,4);this._stream.write(g,e)}};c.prototype.ping=function(a){a=a||255;if(Number.isInteger(a))for(var c=Math.max(1,a),b=0;b".charAt(92*Math.random()|0);this._ping_payload=a;return this.write(a,this.MSGTYPES.PING,this._setupPingTimeout.bind(this))};c.prototype._setupPingTimeout=function(){this._options.ping_timeout&& (this._ping_timeout=setTimeout(this._onPingTimeout.bind(this),this._options.ping_timeout))};c.prototype._clearPingTimeout=function(){this._ping_timeout&&(clearTimeout(this._ping_timeout),this._ping_timeout=null)};c.prototype._setupAutoPing=function(){this._clearAutoPing();this._options.autoping&&(this._autoping_interval=setInterval(this.ping.bind(this),this._options.autoping))};c.prototype._clearAutoPing=function(){this._autoping_interval&&(clearInterval(this._autoping_interval),this._autoping_interval= null)};c.prototype._onPingTimeout=function(){this._emitter.emit("error",new k("PING timeout"));this._options.fail_on_ping_timeout&&this.close()};c.prototype._read=function(a){var c,b;switch(this._status){case this.STATUS.CLOSED:case this.STATUS.UNINITIATED:this._emitter.emit("error",k("Unexpected packet"));break;case this.STATUS.NEGOCIATING:c=this._handleHandshake;b=4;break;case this.STATUS.NEGOCIATED:case this.STATUS.RXHEAD:this._status=this.STATUS.RXHEAD;c=this._handleHeaderPacket;b=4;break;case this.STATUS.RXDATA:c= this._handleDataPacket;b=this._msgLen;break;case this.STATUS.RXPING:c=this._handlePingPacket;b=this._msgLen;break;case this.STATUS.RXPONG:c=this._handlePongPacket,b=this._msgLen}if(a=this._splitBytes(a,b))this._status=c.call(this,a[0]),0>4,this._emitter.emit("error",new k("Peer failed handshake: "+(this.ERRORS[a]||"0x"+a.toString(16)))),this.close();this._options._peer_max_len_exp=(a[1]>>4)+9;this._options._peer_serializer=a[1]&15;if(this._options._peer_serializer!==this.SERIALIZERS.json)return this._emitter.emit("error",new k("Unsupported serializer: 0x"+this._options._peer_serializer.toString(16))),this.close();this._emitter.emit("connect"); this._setupAutoPing();return this.STATUS.NEGOCIATED};c.prototype._handleHeaderPacket=function(a){var c=a[0]&15;this._msgLen=a.readUIntBE(1,3);switch(c){case this.MSGTYPES.WAMP:return this.STATUS.RXDATA;case this.MSGTYPES.PING:return this.STATUS.RXPING;case this.MSGTYPES.PONG:return this.STATUS.RXPONG;default:return this._emitter.emit("error",new k("Invalid frame type: 0x"+status.toString(16))),this.close()}};c.prototype._handleDataPacket=function(a){var c;try{c=JSON.parse(a.toString("utf8"))}catch(b){return this._emitter.emit("error", new k("Invalid JSON frame")),this.STATUS.RXHEAD}this._emitter.emit("data",c);return this.STATUS.RXHEAD};c.prototype._handlePingPacket=function(a){this.write(a.toString("utf8"),this.MSGTYPES.PONG);return this.STATUS.RXHEAD};c.prototype._handlePongPacket=function(a){this._clearPingTimeout();return this._options.strict_pong&&this._ping_payload!==a.toString("utf8")?(this._emitter.emit("error",new k("PONG response payload doesn't match PING.")),this.close()):this.STATUS.RXHEAD};c.prototype.on=function(a, c){return this._emitter.on(a,c)};c.prototype.once=function(a,c){return this._emitter.once(a,c)};c.prototype.removeListener=function(a,c){return this._emitter.removeListener(a,c)};var k=l.ProtocolError=function(a){Error.apply(this,Array.prototype.splice.call(arguments));Error.captureStackTrace(this,this.constructor);this.message=a;this.name="ProtocolError"};k.prototype=Object.create(Error.prototype);l.Factory=g;l.Protocol=c}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self: "undefined"!==typeof window?window:{},h("buffer").Buffer)},{"../log.js":6,"../util.js":19,buffer:82,events:86,net:81}],18:[function(h,n,l){(function(b){function a(a){g.assert(void 0!==a.url,"options.url missing");g.assert("string"===typeof a.url,"options.url must be a string");a.protocols?g.assert(Array.isArray(a.protocols),"options.protocols must be an array"):a.protocols=["wamp.2.json"];this._options=a}var g=h("../util.js"),c=h("../log.js");a.prototype.type="websocket";a.prototype.create=function(){var a= this,f={protocol:void 0,send:void 0,close:void 0,onmessage:function(){},onopen:function(){},onclose:function(){},info:{type:"websocket",url:null,protocol:"wamp.2.json"}};b.process&&b.process.versions.node?function(){var c=h("ws"),b,g;a._options.protocols?(g=a._options.protocols,Array.isArray(g)&&(g=g.join(",")),b=new c(a._options.url,{protocol:g})):b=new c(a._options.url);f.send=function(a){a=JSON.stringify(a);b.send(a,{binary:!1})};f.close=function(a,c){b.close()};b.on("open",function(){f.onopen()}); b.on("message",function(a,c){if(!c.binary){var b=JSON.parse(a);f.onmessage(b)}});b.on("close",function(a,c){f.onclose({code:a,reason:c,wasClean:1E3===a})});b.on("error",function(a){f.onclose({code:1006,reason:"",wasClean:!1})})}():function(){var g;if("WebSocket"in b)g=a._options.protocols?new b.WebSocket(a._options.url,a._options.protocols):new b.WebSocket(a._options.url);else if("MozWebSocket"in b)g=a._options.protocols?new b.MozWebSocket(a._options.url,a._options.protocols):new b.MozWebSocket(a._options.url); else throw"browser does not support WebSocket or WebSocket in Web workers";g.onmessage=function(a){c.debug("WebSocket transport receive",a.data);a=JSON.parse(a.data);f.onmessage(a)};g.onopen=function(){f.info.url=a._options.url;f.onopen()};g.onclose=function(a){f.onclose({code:a.code,reason:a.message,wasClean:a.wasClean})};f.send=function(a){a=JSON.stringify(a);c.debug("WebSocket transport send",a);g.send(a)};f.close=function(a,c){g.close(a,c)}}();return f};l.Factory=a}).call(this,"undefined"!==typeof global? global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../log.js":6,"../util.js":19,ws:79}],19:[function(h,n,l){(function(b){var a=h("./log.js"),g=h("when"),c=function(a,e){if(!a){if(c.useDebugger||"AUTOBAHN_DEBUG"in b&&AUTOBAHN_DEBUG)debugger;throw Error(e||"Assertion failed!");}},e=function(){if(0===arguments.length)return{};var a=arguments[0],c=!1,b=arguments.length;"boolean"===typeof arguments[b-1]&&(c=arguments[b-1],--b);var g=function(b){var d=z[b];b in a?c&&"object"=== typeof d&&"object"===typeof a[b]&&e(a[b],d):a[b]=d},d=1;for(;db;b++)a[b]=128>b?b<<1:b<<1^283;for(var g=0,m=0,b=0;256>b;b++){var v=m^m<<1^m<<2^m<<3^m<<4,v=v>>>8^v&255^99;c[g]=v; e[v]=g;var l=a[g],n=a[l],F=a[n],E=257*a[v]^16843008*v;f[g]=E<<24|E>>>8;q[g]=E<<16|E>>>16;k[g]=E<<8|E>>>24;r[g]=E;E=16843009*F^65537*n^257*l^16843008*g;d[v]=E<<24|E>>>8;z[v]=E<<16|E>>>16;h[v]=E<<8|E>>>24;B[v]=E;g?(g=l^a[a[a[F^l]]],m^=a[a[m]]):g=m=1}})();var v=[0,1,2,4,8,16,32,64,128,27,54],g=g.AES=a.extend({_doReset:function(){for(var a=this._key,b=a.words,e=a.sigBytes/4,a=4*((this._nRounds=e+6)+1),f=this._keySchedule=[],k=0;k>>24]<< 24|c[g>>>16&255]<<16|c[g>>>8&255]<<8|c[g&255]):(g=g<<8|g>>>24,g=c[g>>>24]<<24|c[g>>>16&255]<<16|c[g>>>8&255]<<8|c[g&255],g^=v[k/e|0]<<24);f[k]=f[k-e]^g}b=this._invKeySchedule=[];for(e=0;ee||4>=k?g:d[c[g>>>24]]^z[c[g>>>16&255]]^h[c[g>>>8&255]]^B[c[g&255]]},encryptBlock:function(a,b){this._doCryptBlock(a,b,this._keySchedule,f,q,k,r,c)},decryptBlock:function(a,c){var b=a[c+1];a[c+1]=a[c+3];a[c+3]=b;this._doCryptBlock(a,c,this._invKeySchedule,d,z,h,B,e);b=a[c+1]; a[c+1]=a[c+3];a[c+3]=b},_doCryptBlock:function(a,c,b,d,e,f,k,g){for(var r=this._nRounds,z=a[c]^b[0],q=a[c+1]^b[1],v=a[c+2]^b[2],h=a[c+3]^b[3],p=4,I=1;I>>24]^e[q>>>16&255]^f[v>>>8&255]^k[h&255]^b[p++],w=d[q>>>24]^e[v>>>16&255]^f[h>>>8&255]^k[z&255]^b[p++],t=d[v>>>24]^e[h>>>16&255]^f[z>>>8&255]^k[q&255]^b[p++],h=d[h>>>24]^e[z>>>16&255]^f[q>>>8&255]^k[v&255]^b[p++],z=u,q=w,v=t;u=(g[z>>>24]<<24|g[q>>>16&255]<<16|g[v>>>8&255]<<8|g[h&255])^b[p++];w=(g[q>>>24]<<24|g[v>>>16&255]<<16|g[h>>> 8&255]<<8|g[z&255])^b[p++];t=(g[v>>>24]<<24|g[h>>>16&255]<<16|g[z>>>8&255]<<8|g[q&255])^b[p++];h=(g[h>>>24]<<24|g[z>>>16&255]<<16|g[q>>>8&255]<<8|g[v&255])^b[p++];a[c]=u;a[c+1]=w;a[c+2]=t;a[c+3]=h},keySize:8});b.AES=a._createHelper(g)})();return b.AES})},{"./cipher-core":21,"./core":22,"./enc-base64":23,"./evpkdf":25,"./md5":30}],21:[function(h,n,l){(function(b,a){"object"===typeof l?n.exports=l=a(h("./core")):a(b.CryptoJS)})(this,function(b){b.lib.Cipher||function(a){var g=b.lib,c=g.Base,e=g.WordArray, f=g.BufferedBlockAlgorithm,q=b.enc.Base64,k=b.algo.EvpKDF,r=g.Cipher=f.extend({cfg:c.extend(),createEncryptor:function(a,c){return this.create(this._ENC_XFORM_MODE,a,c)},createDecryptor:function(a,c){return this.create(this._DEC_XFORM_MODE,a,c)},init:function(a,c,b){this.cfg=this.cfg.extend(b);this._xformMode=a;this._key=c;this.reset()},reset:function(){f.reset.call(this);this._doReset()},process:function(a){this._append(a);return this._process()},finalize:function(a){a&&this._append(a);return this._doFinalize()}, keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){return function(a){return{encrypt:function(c,b,d){return("string"==typeof b?D:v).encrypt(a,c,b,d)},decrypt:function(c,b,d){return("string"==typeof b?D:v).decrypt(a,c,b,d)}}}}()});g.StreamCipher=r.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=b.mode={},z=g.BlockCipherMode=c.extend({createEncryptor:function(a,c){return this.Encryptor.create(a,c)},createDecryptor:function(a,c){return this.Decryptor.create(a, c)},init:function(a,c){this._cipher=a;this._iv=c}}),d=d.CBC=function(){function c(b,d,e){var f=this._iv;f?this._iv=a:f=this._prevBlock;for(var k=0;k>>2]&255}};g.BlockCipher=r.extend({cfg:r.cfg.extend({mode:d,padding:h}),reset:function(){r.reset.call(this);var a=this.cfg,c=a.iv,a=a.mode;if(this._xformMode==this._ENC_XFORM_MODE)var b=a.createEncryptor;else b=a.createDecryptor,this._minBufferSize=1;this._mode=b.call(a,this,c&&c.words)},_doProcessBlock:function(a, c){this._mode.processBlock(a,c)},_doFinalize:function(){var a=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){a.pad(this._data,this.blockSize);var c=this._process(!0)}else c=this._process(!0),a.unpad(c);return c},blockSize:4});var B=g.CipherParams=c.extend({init:function(a){this.mixIn(a)},toString:function(a){return(a||this.formatter).stringify(this)}}),d=(b.format={}).OpenSSL={stringify:function(a){var c=a.ciphertext;a=a.salt;return(a?e.create([1398893684,1701076831]).concat(a).concat(c): c).toString(q)},parse:function(a){a=q.parse(a);var c=a.words;if(1398893684==c[0]&&1701076831==c[1]){var b=e.create(c.slice(2,4));c.splice(0,4);a.sigBytes-=16}return B.create({ciphertext:a,salt:b})}},v=g.SerializableCipher=c.extend({cfg:c.extend({format:d}),encrypt:function(a,c,b,d){d=this.cfg.extend(d);var e=a.createEncryptor(b,d);c=e.finalize(c);e=e.cfg;return B.create({ciphertext:c,key:b,iv:e.iv,algorithm:a,mode:e.mode,padding:e.padding,blockSize:a.blockSize,formatter:d.format})},decrypt:function(a, c,b,d){d=this.cfg.extend(d);c=this._parse(c,d.format);return a.createDecryptor(b,d).finalize(c.ciphertext)},_parse:function(a,c){return"string"==typeof a?c.parse(a,this):a}}),c=(b.kdf={}).OpenSSL={execute:function(a,c,b,d){d||(d=e.random(8));a=k.create({keySize:c+b}).compute(a,d);b=e.create(a.words.slice(c),4*b);a.sigBytes=4*c;return B.create({key:a,iv:b,salt:d})}},D=g.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:c}),encrypt:function(a,c,b,d){d=this.cfg.extend(d);b=d.kdf.execute(b,a.keySize, a.ivSize);d.iv=b.iv;a=v.encrypt.call(this,a,c,b.key,d);a.mixIn(b);return a},decrypt:function(a,c,b,d){d=this.cfg.extend(d);c=this._parse(c,d.format);b=d.kdf.execute(b,a.keySize,a.ivSize,c.salt);d.iv=b.iv;return v.decrypt.call(this,a,c,b.key,d)}})}()})},{"./core":22}],22:[function(h,n,l){(function(b,a){"object"===typeof l?n.exports=l=a():b.CryptoJS=a()})(this,function(){var b=b||function(a,b){var c={},e=c.lib={},f=e.Base=function(){function a(){}return{extend:function(c){a.prototype=this;var b=new a; c&&b.mixIn(c);b.hasOwnProperty("init")||(b.init=function(){b.$super.init.apply(this,arguments)});b.init.prototype=b;b.$super=this;return b},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var c in a)a.hasOwnProperty(c)&&(this[c]=a[c]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),q=e.WordArray=f.extend({init:function(a,c){a=this.words=a||[];this.sigBytes=c!=b? c:4*a.length},toString:function(a){return(a||r).stringify(this)},concat:function(a){var c=this.words,b=a.words,d=this.sigBytes;a=a.sigBytes;this.clamp();if(d%4)for(var e=0;e>>2]|=(b[e>>>2]>>>24-e%4*8&255)<<24-(d+e)%4*8;else for(e=0;e>>2]=b[e>>>2];this.sigBytes+=a;return this},clamp:function(){var c=this.words,b=this.sigBytes;c[b>>>2]&=4294967295<<32-b%4*8;c.length=a.ceil(b/4)},clone:function(){var a=f.clone.call(this);a.words=this.words.slice(0);return a},random:function(c){for(var b= [],d=function(c){var b=987654321;return function(){b=36969*(b&65535)+(b>>16)&4294967295;c=18E3*(c&65535)+(c>>16)&4294967295;var d=(b<<16)+c&4294967295,d=d/4294967296+.5;return d*(.5>>2]>>>24-d%4*8&255;b.push((e>>>4).toString(16));b.push((e&15).toString(16))}return b.join("")}, parse:function(a){for(var c=a.length,b=[],d=0;d>>3]|=parseInt(a.substr(d,2),16)<<24-d%8*4;return new q.init(b,c/2)}},d=k.Latin1={stringify:function(a){var c=a.words;a=a.sigBytes;for(var b=[],d=0;d>>2]>>>24-d%4*8&255));return b.join("")},parse:function(a){for(var c=a.length,b=[],d=0;d>>2]|=(a.charCodeAt(d)&255)<<24-d%4*8;return new q.init(b,c)}},z=k.Utf8={stringify:function(a){try{return decodeURIComponent(escape(d.stringify(a)))}catch(c){throw Error("Malformed UTF-8 data"); }},parse:function(a){return d.parse(unescape(encodeURIComponent(a)))}},h=e.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new q.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=z.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(c){var b=this._data,d=b.words,e=b.sigBytes,f=this.blockSize,k=e/(4*f),k=c?a.ceil(k):a.max((k|0)-this._minBufferSize,0);c=k*f;e=a.min(4*c,e);if(c){for(var g=0;g>>2]>>>24-q%4*8&255)<<16|(c[q+1>>>2]>>>24-(q+1)%4*8&255)<<8|c[q+2>>>2]>>>24-(q+2)%4*8&255,r=0;4>r&&q+.75*r>> 6*(3-r)&63));if(c=f.charAt(64))for(;a.length%4;)a.push(c);return a.join("")},parse:function(b){var c=b.length,e=this._map,f=e.charAt(64);f&&(f=b.indexOf(f),-1!=f&&(c=f));for(var f=[],q=0,k=0;k>>6-k%4*2;f[q>>>2]|=(r|d)<<24-q%4*8;q++}return a.create(f,q)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();return b.enc.Base64})},{"./core":22}],24:[function(h,n,l){(function(b,a){"object"===typeof l? n.exports=l=a(h("./core")):a(b.CryptoJS)})(this,function(b){(function(){function a(a){return a<<8&4278255360|a>>>8&16711935}var g=b.lib.WordArray,c=b.enc;c.Utf16=c.Utf16BE={stringify:function(a){var c=a.words;a=a.sigBytes;for(var b=[],k=0;k>>2]>>>16-k%4*8&65535));return b.join("")},parse:function(a){for(var c=a.length,b=[],k=0;k>>1]|=a.charCodeAt(k)<<16-k%2*16;return g.create(b,2*c)}};c.Utf16LE={stringify:function(c){var b=c.words;c=c.sigBytes;for(var g= [],k=0;k>>2]>>>16-k%4*8&65535);g.push(String.fromCharCode(r))}return g.join("")},parse:function(c){for(var b=c.length,q=[],k=0;k>>1]|=a(c.charCodeAt(k)<<16-k%2*16);return g.create(q,2*b)}}})();return b.enc.Utf16})},{"./core":22}],25:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l=a(h("./core"),h("./sha1"),h("./hmac")):a(b.CryptoJS)})(this,function(b){(function(){var a=b.lib,g=a.Base,c=a.WordArray,a=b.algo,e=a.EvpKDF=g.extend({cfg:g.extend({keySize:4, hasher:a.MD5,iterations:1}),init:function(a){this.cfg=this.cfg.extend(a)},compute:function(a,b){for(var e=this.cfg,g=e.hasher.create(),d=c.create(),z=d.words,h=e.keySize,e=e.iterations;z.lengthf&&(c=b.finalize(c));c.clamp();for(var q=this._oKey=c.clone(),k=this._iKey=c.clone(),r=q.words,d=k.words,z=0;z>>2]|=a[q]<<24-q%4*8;g.call(this,f,b)}else g.apply(this,arguments)}).prototype=a}})();return b.lib.WordArray})},{"./core":22}],30:[function(h,n,l){(function(b,a){"object"===typeof l?n.exports= l=a(h("./core")):a(b.CryptoJS)})(this,function(b){(function(a){function g(a,c,b,d,e,f,k){a=a+(c&b|~c&d)+e+k;return(a<>>32-f)+c}function c(a,c,b,d,e,f,k){a=a+(c&d|b&~d)+e+k;return(a<>>32-f)+c}function e(a,c,b,d,e,f,k){a=a+(c^b^d)+e+k;return(a<>>32-f)+c}function f(a,c,b,d,e,f,k){a=a+(b^(c|~d))+e+k;return(a<>>32-f)+c}var q=b.lib,k=q.WordArray,r=q.Hasher,q=b.algo,d=[];(function(){for(var c=0;64>c;c++)d[c]=4294967296*a.abs(a.sin(c+1))|0})();q=q.MD5=r.extend({_doReset:function(){this._hash= new k.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(a,b){for(var k=0;16>k;k++){var r=b+k,q=a[r];a[r]=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360}var k=this._hash.words,r=a[b+0],q=a[b+1],h=a[b+2],l=a[b+3],m=a[b+4],n=a[b+5],A=a[b+6],M=a[b+7],F=a[b+8],E=a[b+9],L=a[b+10],N=a[b+11],y=a[b+12],R=a[b+13],p=a[b+14],I=a[b+15],u=k[0],w=k[1],t=k[2],x=k[3],u=g(u,w,t,x,r,7,d[0]),x=g(x,u,w,t,q,12,d[1]),t=g(t,x,u,w,h,17,d[2]),w=g(w,t,x,u,l,22,d[3]),u=g(u,w,t,x,m,7,d[4]),x=g(x,u, w,t,n,12,d[5]),t=g(t,x,u,w,A,17,d[6]),w=g(w,t,x,u,M,22,d[7]),u=g(u,w,t,x,F,7,d[8]),x=g(x,u,w,t,E,12,d[9]),t=g(t,x,u,w,L,17,d[10]),w=g(w,t,x,u,N,22,d[11]),u=g(u,w,t,x,y,7,d[12]),x=g(x,u,w,t,R,12,d[13]),t=g(t,x,u,w,p,17,d[14]),w=g(w,t,x,u,I,22,d[15]),u=c(u,w,t,x,q,5,d[16]),x=c(x,u,w,t,A,9,d[17]),t=c(t,x,u,w,N,14,d[18]),w=c(w,t,x,u,r,20,d[19]),u=c(u,w,t,x,n,5,d[20]),x=c(x,u,w,t,L,9,d[21]),t=c(t,x,u,w,I,14,d[22]),w=c(w,t,x,u,m,20,d[23]),u=c(u,w,t,x,E,5,d[24]),x=c(x,u,w,t,p,9,d[25]),t=c(t,x,u,w,l,14,d[26]), w=c(w,t,x,u,F,20,d[27]),u=c(u,w,t,x,R,5,d[28]),x=c(x,u,w,t,h,9,d[29]),t=c(t,x,u,w,M,14,d[30]),w=c(w,t,x,u,y,20,d[31]),u=e(u,w,t,x,n,4,d[32]),x=e(x,u,w,t,F,11,d[33]),t=e(t,x,u,w,N,16,d[34]),w=e(w,t,x,u,p,23,d[35]),u=e(u,w,t,x,q,4,d[36]),x=e(x,u,w,t,m,11,d[37]),t=e(t,x,u,w,M,16,d[38]),w=e(w,t,x,u,L,23,d[39]),u=e(u,w,t,x,R,4,d[40]),x=e(x,u,w,t,r,11,d[41]),t=e(t,x,u,w,l,16,d[42]),w=e(w,t,x,u,A,23,d[43]),u=e(u,w,t,x,E,4,d[44]),x=e(x,u,w,t,y,11,d[45]),t=e(t,x,u,w,I,16,d[46]),w=e(w,t,x,u,h,23,d[47]),u=f(u, w,t,x,r,6,d[48]),x=f(x,u,w,t,M,10,d[49]),t=f(t,x,u,w,p,15,d[50]),w=f(w,t,x,u,n,21,d[51]),u=f(u,w,t,x,y,6,d[52]),x=f(x,u,w,t,l,10,d[53]),t=f(t,x,u,w,L,15,d[54]),w=f(w,t,x,u,q,21,d[55]),u=f(u,w,t,x,F,6,d[56]),x=f(x,u,w,t,I,10,d[57]),t=f(t,x,u,w,A,15,d[58]),w=f(w,t,x,u,R,21,d[59]),u=f(u,w,t,x,m,6,d[60]),x=f(x,u,w,t,N,10,d[61]),t=f(t,x,u,w,h,15,d[62]),w=f(w,t,x,u,E,21,d[63]);k[0]=k[0]+u|0;k[1]=k[1]+w|0;k[2]=k[2]+t|0;k[3]=k[3]+x|0},_doFinalize:function(){var c=this._data,b=c.words,d=8*this._nDataBytes, e=8*c.sigBytes;b[e>>>5]|=128<<24-e%32;var f=a.floor(d/4294967296);b[(e+64>>>9<<4)+15]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360;b[(e+64>>>9<<4)+14]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360;c.sigBytes=4*(b.length+1);this._process();c=this._hash;b=c.words;for(d=0;4>d;d++)e=b[d],b[d]=(e<<8|e>>>24)&16711935|(e<<24|e>>>8)&4278255360;return c},clone:function(){var a=r.clone.call(this);a._hash=this._hash.clone();return a}});b.MD5=r._createHelper(q);b.HmacMD5=r._createHmacHelper(q)})(Math);return b.MD5})}, {"./core":22}],31:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l=a(h("./core"),h("./cipher-core")):a(b.CryptoJS)})(this,function(b){b.mode.CFB=function(){function a(a,b,f,g){var k=this._iv;k?(k=k.slice(0),this._iv=void 0):k=this._prevBlock;g.encryptBlock(k,0);for(g=0;g>24&255)){var b=a>>16&255,c=a>>8&255,k=a&255;255===b?(b=0,255===c?(c=0,255===k?k=0:++k):++c):++b;a=0+(b<<16)+(c<<8);a+=k}else a+=16777216;return a}var g= b.lib.BlockCipherMode.extend(),c=g.Encryptor=g.extend({processBlock:function(b,c){var g=this._cipher,k=g.blockSize,r=this._iv,d=this._counter;r&&(d=this._counter=r.slice(0),this._iv=void 0);r=d;0===(r[0]=a(r[0]))&&(r[1]=a(r[1]));d=d.slice(0);g.encryptBlock(d,0);for(g=0;g>>2]|=e<<24-c%4*8;a.sigBytes+=e},unpad:function(a){a.sigBytes-=a.words[a.sigBytes-1>>>2]&255}};return b.pad.Ansix923})},{"./cipher-core":21,"./core":22}],37:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l=a(h("./core"),h("./cipher-core")):a(b.CryptoJS)})(this,function(b){b.pad.Iso10126={pad:function(a,g){var c=4*g,c=c-a.sigBytes%c;a.concat(b.lib.WordArray.random(c-1)).concat(b.lib.WordArray.create([c<<24],1))},unpad:function(a){a.sigBytes-=a.words[a.sigBytes- 1>>>2]&255}};return b.pad.Iso10126})},{"./cipher-core":21,"./core":22}],38:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l=a(h("./core"),h("./cipher-core")):a(b.CryptoJS)})(this,function(b){b.pad.Iso97971={pad:function(a,g){a.concat(b.lib.WordArray.create([2147483648],1));b.pad.ZeroPadding.pad(a,g)},unpad:function(a){b.pad.ZeroPadding.unpad(a);a.sigBytes--}};return b.pad.Iso97971})},{"./cipher-core":21,"./core":22}],39:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports= l=a(h("./core"),h("./cipher-core")):a(b.CryptoJS)})(this,function(b){b.pad.NoPadding={pad:function(){},unpad:function(){}};return b.pad.NoPadding})},{"./cipher-core":21,"./core":22}],40:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l=a(h("./core"),h("./cipher-core")):a(b.CryptoJS)})(this,function(b){b.pad.ZeroPadding={pad:function(a,b){var c=4*b;a.clamp();a.sigBytes+=c-(a.sigBytes%c||c)},unpad:function(a){for(var b=a.words,c=a.sigBytes-1;!(b[c>>>2]>>>24-c%4*8&255);)c--;a.sigBytes= c+1}};return b.pad.ZeroPadding})},{"./cipher-core":21,"./core":22}],41:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l=a(h("./core"),h("./sha1"),h("./hmac")):a(b.CryptoJS)})(this,function(b){(function(){var a=b.lib,g=a.Base,c=a.WordArray,a=b.algo,e=a.HMAC,f=a.PBKDF2=g.extend({cfg:g.extend({keySize:4,hasher:a.SHA1,iterations:1}),init:function(a){this.cfg=this.cfg.extend(a)},compute:function(a,b){for(var f=this.cfg,d=e.create(f.hasher,a),g=c.create(),h=c.create([1]),l=g.words,v=h.words, D=f.keySize,f=f.iterations;l.lengthc;c++)e[c]=b[c];b[0]=b[0]+1295307597+this._b|0;b[1]=b[1]+3545052371+(b[0]>>>0>>0?1:0)|0;b[2]=b[2]+886263092+(b[1]>>>0>>0?1:0)|0;b[3]=b[3]+1295307597+(b[2]>>>0>>0?1:0)|0;b[4]=b[4]+3545052371+(b[3]>>>0>>0?1:0)|0;b[5]=b[5]+886263092+(b[4]>>>0>>0?1:0)|0;b[6]=b[6]+1295307597+(b[5]>>>0>>0?1:0)|0;b[7]=b[7]+3545052371+(b[6]>>>0>>0?1:0)|0;this._b=b[7]>>>0>>0?1:0;for(c= 0;8>c;c++){var g=a[c]+b[c],h=g&65535,q=g>>>16;f[c]=((h*h>>>17)+h*q>>>15)+q*q^((g&4294901760)*g|0)+((g&65535)*g|0)}a[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0;a[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0;a[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0;a[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0;a[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0;a[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0;a[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0;a[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}var g=b.lib.StreamCipher, c=[],e=[],f=[],h=b.algo.RabbitLegacy=g.extend({_doReset:function(){for(var b=this._key.words,c=this.cfg.iv,d=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],b=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535],e=this._b=0;4>e;e++)a.call(this);for(e=0;8>e;e++)b[e]^=d[e+4&7];if(c){var d=c.words,c=d[0], d=d[1],c=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,d=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,e=c>>>16|d&4294901760,f=d<<16|c&65535;b[0]^=c;b[1]^=e;b[2]^=d;b[3]^=f;b[4]^=c;b[5]^=e;b[6]^=d;b[7]^=f;for(e=0;4>e;e++)a.call(this)}},_doProcessBlock:function(b,e){var d=this._X;a.call(this);c[0]=d[0]^d[5]>>>16^d[3]<<16;c[1]=d[2]^d[7]>>>16^d[5]<<16;c[2]=d[4]^d[1]>>>16^d[7]<<16;c[3]=d[6]^d[3]>>>16^d[1]<<16;for(d=0;4>d;d++)c[d]=(c[d]<<8|c[d]>>>24)&16711935|(c[d]<<24|c[d]>>>8)&4278255360,b[e+d]^= c[d]},blockSize:4,ivSize:2});b.RabbitLegacy=g._createHelper(h)})();return b.RabbitLegacy})},{"./cipher-core":21,"./core":22,"./enc-base64":23,"./evpkdf":25,"./md5":30}],43:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l=a(h("./core"),h("./enc-base64"),h("./md5"),h("./evpkdf"),h("./cipher-core")):a(b.CryptoJS)})(this,function(b){(function(){function a(){for(var a=this._X,b=this._C,c=0;8>c;c++)e[c]=b[c];b[0]=b[0]+1295307597+this._b|0;b[1]=b[1]+3545052371+(b[0]>>>0>>0?1:0)|0; b[2]=b[2]+886263092+(b[1]>>>0>>0?1:0)|0;b[3]=b[3]+1295307597+(b[2]>>>0>>0?1:0)|0;b[4]=b[4]+3545052371+(b[3]>>>0>>0?1:0)|0;b[5]=b[5]+886263092+(b[4]>>>0>>0?1:0)|0;b[6]=b[6]+1295307597+(b[5]>>>0>>0?1:0)|0;b[7]=b[7]+3545052371+(b[6]>>>0>>0?1:0)|0;this._b=b[7]>>>0>>0?1:0;for(c=0;8>c;c++){var g=a[c]+b[c],h=g&65535,q=g>>>16;f[c]=((h*h>>>17)+h*q>>>15)+q*q^((g&4294901760)*g|0)+((g&65535)*g|0)}a[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0;a[1]=f[1]+(f[0]<< 8|f[0]>>>24)+f[7]|0;a[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0;a[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0;a[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0;a[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0;a[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0;a[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}var g=b.lib.StreamCipher,c=[],e=[],f=[],h=b.algo.Rabbit=g.extend({_doReset:function(){for(var b=this._key.words,c=this.cfg.iv,d=0;4>d;d++)b[d]=(b[d]<<8|b[d]>>>24)&16711935|(b[d]<<24|b[d]>>>8)&4278255360;for(var e= this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],b=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535],d=this._b=0;4>d;d++)a.call(this);for(d=0;8>d;d++)b[d]^=e[d+4&7];if(c){var d=c.words,c=d[0],d=d[1],c=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,d=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,e= c>>>16|d&4294901760,f=d<<16|c&65535;b[0]^=c;b[1]^=e;b[2]^=d;b[3]^=f;b[4]^=c;b[5]^=e;b[6]^=d;b[7]^=f;for(d=0;4>d;d++)a.call(this)}},_doProcessBlock:function(b,e){var d=this._X;a.call(this);c[0]=d[0]^d[5]>>>16^d[3]<<16;c[1]=d[2]^d[7]>>>16^d[5]<<16;c[2]=d[4]^d[1]>>>16^d[7]<<16;c[3]=d[6]^d[3]>>>16^d[1]<<16;for(d=0;4>d;d++)c[d]=(c[d]<<8|c[d]>>>24)&16711935|(c[d]<<24|c[d]>>>8)&4278255360,b[e+d]^=c[d]},blockSize:4,ivSize:2});b.Rabbit=g._createHelper(h)})();return b.Rabbit})},{"./cipher-core":21,"./core":22, "./enc-base64":23,"./evpkdf":25,"./md5":30}],44:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l=a(h("./core"),h("./enc-base64"),h("./md5"),h("./evpkdf"),h("./cipher-core")):a(b.CryptoJS)})(this,function(b){(function(){function a(){for(var a=this._S,b=this._i,c=this._j,e=0,d=0;4>d;d++){var b=(b+1)%256,c=(c+a[b])%256,g=a[b];a[b]=a[c];a[c]=g;e|=a[(a[b]+a[c])%256]<<24-8*d}this._i=b;this._j=c;return e}var g=b.lib.StreamCipher,c=b.algo,e=c.RC4=g.extend({_doReset:function(){for(var a=this._key, b=a.words,a=a.sigBytes,c=this._S=[],e=0;256>e;e++)c[e]=e;for(var d=e=0;256>e;e++){var g=e%a,d=(d+c[e]+(b[g>>>2]>>>24-g%4*8&255))%256,g=c[e];c[e]=c[d];c[d]=g}this._i=this._j=0},_doProcessBlock:function(b,c){b[c]^=a.call(this)},keySize:8,ivSize:0});b.RC4=g._createHelper(e);c=c.RC4Drop=e.extend({cfg:e.cfg.extend({drop:192}),_doReset:function(){e._doReset.call(this);for(var b=this.cfg.drop;0>>32-b}a=b.lib;var c=a.WordArray,e=a.Hasher;a=b.algo;var f=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11, 3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),k=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),r=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8, 11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=c.create([0,1518500249,1859775393,2400959708,2840853838]),z=c.create([1352829926,1548603684,1836072691,2053994217,0]);a=a.RIPEMD160=e.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(a,b){for(var c=0;16>c;c++){var e=b+c,l=a[e];a[e]=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360}var e=this._hash.words,l=d.words,n=z.words,m=f.words,H=h.words, A=k.words,M=r.words,F,E,L,N,y,R,p,I,u,w;R=F=e[0];p=E=e[1];I=L=e[2];u=N=e[3];w=y=e[4];for(var t,c=0;80>c;c+=1)t=F+a[b+m[c]]|0,t=16>c?t+((E^L^N)+l[0]):32>c?t+((E&L|~E&N)+l[1]):48>c?t+(((E|~L)^N)+l[2]):64>c?t+((E&N|L&~N)+l[3]):t+((E^(L|~N))+l[4]),t|=0,t=g(t,A[c]),t=t+y|0,F=y,y=N,N=g(L,10),L=E,E=t,t=R+a[b+H[c]]|0,t=16>c?t+((p^(I|~u))+n[0]):32>c?t+((p&u|I&~u)+n[1]):48>c?t+(((p|~I)^u)+n[2]):64>c?t+((p&I|~p&u)+n[3]):t+((p^I^u)+n[4]),t|=0,t=g(t,M[c]),t=t+w|0,R=w,w=u,u=g(I,10),I=p,p=t;t=e[1]+L+u|0;e[1]=e[2]+ N+w|0;e[2]=e[3]+y+R|0;e[3]=e[4]+F+p|0;e[4]=e[0]+E+I|0;e[0]=t},_doFinalize:function(){var a=this._data,b=a.words,c=8*this._nDataBytes,d=8*a.sigBytes;b[d>>>5]|=128<<24-d%32;b[(d+64>>>9<<4)+14]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360;a.sigBytes=4*(b.length+1);this._process();a=this._hash;b=a.words;for(c=0;5>c;c++)d=b[c],b[c]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360;return a},clone:function(){var a=e.clone.call(this);a._hash=this._hash.clone();return a}});b.RIPEMD160=e._createHelper(a); b.HmacRIPEMD160=e._createHmacHelper(a)})(Math);return b.RIPEMD160})},{"./core":22}],46:[function(h,n,l){(function(b,a){"object"===typeof l?n.exports=l=a(h("./core")):a(b.CryptoJS)})(this,function(b){(function(){var a=b.lib,g=a.WordArray,c=a.Hasher,e=[],a=b.algo.SHA1=c.extend({_doReset:function(){this._hash=new g.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(a,b){for(var c=this._hash.words,g=c[0],d=c[1],h=c[2],l=c[3],B=c[4],v=0;80>v;v++){if(16>v)e[v]=a[b+v]| 0;else{var D=e[v-3]^e[v-8]^e[v-14]^e[v-16];e[v]=D<<1|D>>>31}D=(g<<5|g>>>27)+B+e[v];D=20>v?D+((d&h|~d&l)+1518500249):40>v?D+((d^h^l)+1859775393):60>v?D+((d&h|d&l|h&l)-1894007588):D+((d^h^l)-899497514);B=l;l=h;h=d<<30|d>>>2;d=g;g=D}c[0]=c[0]+g|0;c[1]=c[1]+d|0;c[2]=c[2]+h|0;c[3]=c[3]+l|0;c[4]=c[4]+B|0},_doFinalize:function(){var a=this._data,b=a.words,c=8*this._nDataBytes,e=8*a.sigBytes;b[e>>>5]|=128<<24-e%32;b[(e+64>>>9<<4)+14]=Math.floor(c/4294967296);b[(e+64>>>9<<4)+15]=c;a.sigBytes=4*b.length;this._process(); return this._hash},clone:function(){var a=c.clone.call(this);a._hash=this._hash.clone();return a}});b.SHA1=c._createHelper(a);b.HmacSHA1=c._createHmacHelper(a)})();return b.SHA1})},{"./core":22}],47:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l=a(h("./core"),h("./sha256")):a(b.CryptoJS)})(this,function(b){(function(){var a=b.lib.WordArray,g=b.algo,c=g.SHA256,g=g.SHA224=c.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025, 1694076839,3204075428])},_doFinalize:function(){var a=c._doFinalize.call(this);a.sigBytes-=4;return a}});b.SHA224=c._createHelper(g);b.HmacSHA224=c._createHmacHelper(g)})();return b.SHA224})},{"./core":22,"./sha256":48}],48:[function(h,n,l){(function(b,a){"object"===typeof l?n.exports=l=a(h("./core")):a(b.CryptoJS)})(this,function(b){(function(a){var g=b.lib,c=g.WordArray,e=g.Hasher,g=b.algo,f=[],h=[];(function(){function b(c){for(var d=a.sqrt(c),e=2;e<=d;e++)if(!(c%e))return!1;return!0}function c(a){return 4294967296* (a-(a|0))|0}for(var e=2,g=0;64>g;)b(e)&&(8>g&&(f[g]=c(a.pow(e,.5))),h[g]=c(a.pow(e,1/3)),g++),e++})();var k=[],g=g.SHA256=e.extend({_doReset:function(){this._hash=new c.init(f.slice(0))},_doProcessBlock:function(a,b){for(var c=this._hash.words,e=c[0],f=c[1],g=c[2],l=c[3],n=c[4],C=c[5],m=c[6],H=c[7],A=0;64>A;A++){if(16>A)k[A]=a[b+A]|0;else{var M=k[A-15],F=k[A-2];k[A]=((M<<25|M>>>7)^(M<<14|M>>>18)^M>>>3)+k[A-7]+((F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10)+k[A-16]}M=H+((n<<26|n>>>6)^(n<<21|n>>>11)^(n<<7|n>>> 25))+(n&C^~n&m)+h[A]+k[A];F=((e<<30|e>>>2)^(e<<19|e>>>13)^(e<<10|e>>>22))+(e&f^e&g^f&g);H=m;m=C;C=n;n=l+M|0;l=g;g=f;f=e;e=M+F|0}c[0]=c[0]+e|0;c[1]=c[1]+f|0;c[2]=c[2]+g|0;c[3]=c[3]+l|0;c[4]=c[4]+n|0;c[5]=c[5]+C|0;c[6]=c[6]+m|0;c[7]=c[7]+H|0},_doFinalize:function(){var b=this._data,c=b.words,e=8*this._nDataBytes,f=8*b.sigBytes;c[f>>>5]|=128<<24-f%32;c[(f+64>>>9<<4)+14]=a.floor(e/4294967296);c[(f+64>>>9<<4)+15]=e;b.sigBytes=4*c.length;this._process();return this._hash},clone:function(){var a=e.clone.call(this); a._hash=this._hash.clone();return a}});b.SHA256=e._createHelper(g);b.HmacSHA256=e._createHmacHelper(g)})(Math);return b.SHA256})},{"./core":22}],49:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l=a(h("./core"),h("./x64-core")):a(b.CryptoJS)})(this,function(b){(function(a){var g=b.lib,c=g.WordArray,e=g.Hasher,f=b.x64.Word,g=b.algo,h=[],k=[],r=[];(function(){for(var a=1,b=0,c=0;24>c;c++){h[a+5*b]=(c+1)*(c+2)/2%64;var d=(2*a+3*b)%5,a=b%5,b=d}for(a=0;5>a;a++)for(b=0;5>b;b++)k[a+5*b]= b+(2*a+3*b)%5*5;a=1;for(b=0;24>b;b++){for(var e=d=c=0;7>e;e++){if(a&1){var g=(1<g?d^=1<a;a++)d[a]=f.create()})();g=g.SHA3=e.extend({cfg:e.cfg.extend({outputLength:512}),_doReset:function(){for(var a=this._state=[],b=0;25>b;b++)a[b]=new f.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(a,b){for(var c=this._state,e=this.blockSize/2,f=0;f>>24)&16711935|(g<<24|g>>>8)&4278255360,l=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,m=c[f];m.high^=l;m.low^=g}for(e=0;24>e;e++){for(f=0;5>f;f++){for(var n=g=0,A=0;5>A;A++)m=c[f+5*A],g^=m.high,n^=m.low;m=d[f];m.high=g;m.low=n}for(f=0;5>f;f++)for(m=d[(f+4)%5],g=d[(f+1)%5],l=g.high,A=g.low,g=m.high^(l<<1|A>>>31),n=m.low^(A<<1|l>>>31),A=0;5>A;A++)m=c[f+5*A],m.high^=g,m.low^=n;for(l=1;25>l;l++)m=c[l],f=m.high,m=m.low,A=h[l],32>A?(g=f<>>32-A,n=m<>>32-A):(g=m<>>64- A,n=f<>>64-A),m=d[k[l]],m.high=g,m.low=n;m=d[0];f=c[0];m.high=f.high;m.low=f.low;for(f=0;5>f;f++)for(A=0;5>A;A++)l=f+5*A,m=c[l],g=d[l],l=d[(f+1)%5+5*A],n=d[(f+2)%5+5*A],m.high=g.high^~l.high&n.high,m.low=g.low^~l.low&n.low;m=c[0];f=r[e];m.high^=f.high;m.low^=f.low}},_doFinalize:function(){var b=this._data,d=b.words,e=8*b.sigBytes,f=32*this.blockSize;d[e>>>5]|=1<<24-e%32;d[(a.ceil((e+1)/f)*f>>>5)-1]|=128;b.sigBytes=4*d.length;this._process();for(var b=this._state,d=this.cfg.outputLength/8, e=d/8,f=[],g=0;g>>24)&16711935|(h<<24|h>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;f.push(k);f.push(h)}return new c.init(f,d)},clone:function(){for(var a=e.clone.call(this),b=a._state=this._state.slice(0),c=0;25>c;c++)b[c]=b[c].clone();return a}});b.SHA3=e._createHelper(g);b.HmacSHA3=e._createHmacHelper(g)})(Math);return b.SHA3})},{"./core":22,"./x64-core":53}],50:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l= a(h("./core"),h("./x64-core"),h("./sha512")):a(b.CryptoJS)})(this,function(b){(function(){var a=b.x64,g=a.Word,c=a.WordArray,a=b.algo,e=a.SHA512,a=a.SHA384=e.extend({_doReset:function(){this._hash=new c.init([new g.init(3418070365,3238371032),new g.init(1654270250,914150663),new g.init(2438529370,812702999),new g.init(355462360,4144912697),new g.init(1731405415,4290775857),new g.init(2394180231,1750603025),new g.init(3675008525,1694076839),new g.init(1203062813,3204075428)])},_doFinalize:function(){var a= e._doFinalize.call(this);a.sigBytes-=16;return a}});b.SHA384=e._createHelper(a);b.HmacSHA384=e._createHmacHelper(a)})();return b.SHA384})},{"./core":22,"./sha512":51,"./x64-core":53}],51:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l=a(h("./core"),h("./x64-core")):a(b.CryptoJS)})(this,function(b){(function(){function a(){return e.create.apply(e,arguments)}var g=b.lib.Hasher,c=b.x64,e=c.Word,f=c.WordArray,c=b.algo,h=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471, 3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132), a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771, 106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427), a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],k=[];(function(){for(var b=0;80>b;b++)k[b]=a()})();c=c.SHA512=g.extend({_doReset:function(){this._hash=new f.init([new e.init(1779033703, 4089235720),new e.init(3144134277,2227873595),new e.init(1013904242,4271175723),new e.init(2773480762,1595750129),new e.init(1359893119,2917565137),new e.init(2600822924,725511199),new e.init(528734635,4215389547),new e.init(1541459225,327033209)])},_doProcessBlock:function(a,b){for(var c=this._hash.words,e=c[0],f=c[1],g=c[2],l=c[3],n=c[4],C=c[5],m=c[6],c=c[7],H=e.high,A=e.low,M=f.high,F=f.low,E=g.high,L=g.low,N=l.high,y=l.low,R=n.high,p=n.low,I=C.high,u=C.low,w=m.high,t=m.low,x=c.high,S=c.low,P= H,K=A,W=M,aa=F,ja=E,ha=L,na=N,da=y,T=R,U=p,la=I,ka=u,ia=w,fa=t,pa=x,ga=S,X=0;80>X;X++){var ba=k[X];if(16>X)var V=ba.high=a[b+2*X]|0,J=ba.low=a[b+2*X+1]|0;else{var V=k[X-15],J=V.high,Y=V.low,V=(J>>>1|Y<<31)^(J>>>8|Y<<24)^J>>>7,Y=(Y>>>1|J<<31)^(Y>>>8|J<<24)^(Y>>>7|J<<25),ea=k[X-2],J=ea.high,O=ea.low,ea=(J>>>19|O<<13)^(J<<3|O>>>29)^J>>>6,O=(O>>>19|J<<13)^(O<<3|J>>>29)^(O>>>6|J<<26),J=k[X-7],oa=J.high,ca=k[X-16],Z=ca.high,ca=ca.low,J=Y+J.low,V=V+oa+(J>>>0>>0?1:0),J=J+O,V=V+ea+(J>>>0>>0?1:0),J=J+ ca,V=V+Z+(J>>>0>>0?1:0);ba.high=V;ba.low=J}var oa=T&la^~T&ia,ca=U&ka^~U&fa,ba=P&W^P&ja^W&ja,ra=K&aa^K&ha^aa&ha,Y=(P>>>28|K<<4)^(P<<30|K>>>2)^(P<<25|K>>>7),ea=(K>>>28|P<<4)^(K<<30|P>>>2)^(K<<25|P>>>7),O=h[X],sa=O.high,qa=O.low,O=ga+((U>>>14|T<<18)^(U>>>18|T<<14)^(U<<23|T>>>9)),Z=pa+((T>>>14|U<<18)^(T>>>18|U<<14)^(T<<23|U>>>9))+(O>>>0>>0?1:0),O=O+ca,Z=Z+oa+(O>>>0>>0?1:0),O=O+qa,Z=Z+sa+(O>>>0>>0?1:0),O=O+J,Z=Z+V+(O>>>0>>0?1:0),J=ea+ra,ba=Y+ba+(J>>>0>>0?1:0),pa=ia,ga=fa,ia=la,fa= ka,la=T,ka=U,U=da+O|0,T=na+Z+(U>>>0>>0?1:0)|0,na=ja,da=ha,ja=W,ha=aa,W=P,aa=K,K=O+J|0,P=Z+ba+(K>>>0>>0?1:0)|0}A=e.low=A+K;e.high=H+P+(A>>>0>>0?1:0);F=f.low=F+aa;f.high=M+W+(F>>>0>>0?1:0);L=g.low=L+ha;g.high=E+ja+(L>>>0>>0?1:0);y=l.low=y+da;l.high=N+na+(y>>>0>>0?1:0);p=n.low=p+U;n.high=R+T+(p>>>0>>0?1:0);u=C.low=u+ka;C.high=I+la+(u>>>0>>0?1:0);t=m.low=t+fa;m.high=w+ia+(t>>>0>>0?1:0);S=c.low=S+ga;c.high=x+pa+(S>>>0>>0?1:0)},_doFinalize:function(){var a=this._data, b=a.words,c=8*this._nDataBytes,e=8*a.sigBytes;b[e>>>5]|=128<<24-e%32;b[(e+128>>>10<<5)+30]=Math.floor(c/4294967296);b[(e+128>>>10<<5)+31]=c;a.sigBytes=4*b.length;this._process();return this._hash.toX32()},clone:function(){var a=g.clone.call(this);a._hash=this._hash.clone();return a},blockSize:32});b.SHA512=g._createHelper(c);b.HmacSHA512=g._createHmacHelper(c)})();return b.SHA512})},{"./core":22,"./x64-core":53}],52:[function(h,n,l){(function(b,a,g){"object"===typeof l?n.exports=l=a(h("./core"),h("./enc-base64"), h("./md5"),h("./evpkdf"),h("./cipher-core")):a(b.CryptoJS)})(this,function(b){(function(){function a(a,b){var c=(this._lBlock>>>a^this._rBlock)&b;this._rBlock^=c;this._lBlock^=c<>>a^this._lBlock)&b;this._lBlock^=c;this._rBlock^=c<c;c++){var d=h[c]-1;b[c]=a[d>>>5]>>>31-d%32&1}a=this._subKeys=[];for(d=0;16>d;d++){for(var e=a[d]=[],f=l[d],c=0;24>c;c++)e[c/6|0]|=b[(k[c]-1+f)%28]<<31-c%6,e[4+(c/6|0)]|=b[28+(k[c+24]- 1+f)%28]<<31-c%6;e[0]=e[0]<<1|e[0]>>>31;for(c=1;7>c;c++)e[c]>>>=4*(c-1)+3;e[7]=e[7]<<5|e[7]>>>27}b=this._invSubKeys=[];for(c=0;16>c;c++)b[c]=a[15-c]},encryptBlock:function(a,b){this._doCryptBlock(a,b,this._subKeys)},decryptBlock:function(a,b){this._doCryptBlock(a,b,this._invSubKeys)},_doCryptBlock:function(b,c,e){this._lBlock=b[c];this._rBlock=b[c+1];a.call(this,4,252645135);a.call(this,16,65535);g.call(this,2,858993459);g.call(this,8,16711935);a.call(this,1,1431655765);for(var f=0;16>f;f++){for(var k= e[f],h=this._lBlock,q=this._rBlock,l=0,r=0;8>r;r++)l|=d[r][((q^k[r])&n[r])>>>0];this._lBlock=q;this._rBlock=h^l}e=this._lBlock;this._lBlock=this._rBlock;this._rBlock=e;a.call(this,1,1431655765);g.call(this,8,16711935);g.call(this,2,858993459);a.call(this,16,65535);a.call(this,4,252645135);b[c]=this._lBlock;b[c+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});b.DES=c._createHelper(G);f=f.TripleDES=c.extend({_doReset:function(){var a=this._key.words;this._des1=G.createEncryptor(e.create(a.slice(0, 2)));this._des2=G.createEncryptor(e.create(a.slice(2,4)));this._des3=G.createEncryptor(e.create(a.slice(4,6)))},encryptBlock:function(a,b){this._des1.encryptBlock(a,b);this._des2.decryptBlock(a,b);this._des3.encryptBlock(a,b)},decryptBlock:function(a,b){this._des3.decryptBlock(a,b);this._des2.encryptBlock(a,b);this._des1.decryptBlock(a,b)},keySize:6,ivSize:2,blockSize:2});b.TripleDES=c._createHelper(f)})();return b.TripleDES})},{"./cipher-core":21,"./core":22,"./enc-base64":23,"./evpkdf":25,"./md5":30}], 53:[function(h,n,l){(function(b,a){"object"===typeof l?n.exports=l=a(h("./core")):a(b.CryptoJS)})(this,function(b){(function(a){var g=b.lib,c=g.Base,e=g.WordArray,g=b.x64={};g.Word=c.extend({init:function(a,b){this.high=a;this.low=b}});g.WordArray=c.extend({init:function(b,c){b=this.words=b||[];this.sigBytes=c!=a?c:8*b.length},toX32:function(){for(var a=this.words,b=a.length,c=[],g=0;gb.i)return e(b.f,b.thisArg,b.params,f);a._handler(b.args[b.i]).fold(h,b,void 0,f)}function h(a,b,c){a.params[a.i]=b;--a.i;f(a,c)}2>arguments.length&&(e=b);return function(b,g,d){var h=a._defer(),l=d.length;f({f:b,thisArg:g,args:d,params:Array(l),i:l-1,call:e},h._handler);return h}}function b(a,e,f,g){try{g.resolve(a.apply(e,f))}catch(k){g.reject(k)}}a.tryCatchResolve=b;return a})})(function(b){n.exports= b()})},{}],59:[function(h,n,l){(function(b){b(function(a){var b=a("../state"),c=a("../apply");return function(a){function f(c){var d=a._handler(c);if(0===d.state())return l(c).then(b.fulfilled,b.rejected);d._unreport();return b.inspect(d)}function h(a){return function(b,c,d){return k(a,void 0,[b,c,d])}}var k=c(a),l=a.resolve,d=a.all,n=Array.prototype.reduce,G=Array.prototype.reduceRight,B=Array.prototype.slice;a.any=function(b){function c(a){l=null;this.resolve(a)}function d(a){this.resolved||(l.push(a), 0===--h&&this.reject(l))}for(var f=a._defer(),g=f._handler,k=b.length>>>0,h=k,l=[],q,r=0;r>>0,r=0,n,z,G;for(G=0;Gr?k.reject(new RangeError("some(): array must contain at least "+c+" item(s), but had "+r)):0===r&&k.resolve(h);for(G=0;Garguments.length?d.call(this,b):"function"!==typeof b?this.ensure(a):d.call(this,e(arguments[1],b))};c.prototype["finally"]=c.prototype.ensure=function(a){return"function"!==typeof a?this:this.then(function(c){return f(a,this,b,c)},function(b){return f(a,this,l,b)})};c.prototype["else"]=c.prototype.orElse=function(a){return this.then(void 0,function(){return a})};c.prototype.yield=function(a){return this.then(function(){return a})};c.prototype.tap=function(a){return this.then(a).yield(this)}; return c}})})(function(b){n.exports=b()})},{}],61:[function(h,n,l){(function(b){b(function(){return function(a){a.prototype.fold=function(b,c){var e=this._beget();this._handler.fold(function(c,e,k){a._handler(c).fold(function(a,c,e){e.resolve(b.call(this,c,a))},e,this,k)},c,e._handler.receiver,e._handler);return e};return a}})})(function(b){n.exports=b()})},{}],62:[function(h,n,l){(function(b){b(function(a){var b=a("../state").inspect;return function(a){a.prototype.inspect=function(){return b(a._handler(this))}; return a}})})(function(b){n.exports=b(h)})},{"../state":72}],63:[function(h,n,l){(function(b){b(function(){return function(a){function b(a,f,h,k){function l(d,k){return c(h(d)).then(function(){return b(a,f,h,k)})}return c(k).then(function(b){return c(f(b)).then(function(f){return f?b:c(a(b)).spread(l)})})}var c=a.resolve;a.iterate=function(a,c,h,k){return b(function(b){return[b,a(b)]},c,h,k)};a.unfold=b;return a}})})(function(b){n.exports=b()})},{}],64:[function(h,n,l){(function(b){b(function(){return function(a){a.prototype.progress= function(a){return this.then(void 0,void 0,a)};return a}})})(function(b){n.exports=b()})},{}],65:[function(h,n,l){(function(b){b(function(a){function b(a,e,g,h){return c.setTimer(function(){a(g,h,e)},e)}var c=a("../env"),e=a("../TimeoutError");return function(a){function h(a,c,e){b(k,a,c,e)}function k(a,b){b.resolve(a)}function l(a,b,c){a="undefined"===typeof a?new e("timed out after "+c+"ms"):a;b.reject(a)}a.prototype.delay=function(a){var b=this._beget();this._handler.fold(h,a,void 0,b._handler); return b};a.prototype.timeout=function(a,e){var f=this._beget(),k=f._handler,h=b(l,a,e,f._handler);this._handler.visit(k,function(a){c.clearTimer(h);this.resolve(a)},function(a){c.clearTimer(h);this.reject(a)},k.notify);return f};return a}})})(function(b){n.exports=b(h)})},{"../TimeoutError":57,"../env":68}],66:[function(h,n,l){(function(b){b(function(a){function b(a){throw a;}function c(){}var e=a("../env").setTimer,f=a("../format");return function(a){function k(a){a.handled||(Q.push(a),n("Potentially unhandled rejection ["+ a.id+"] "+f.formatError(a.value)))}function h(a){var b=Q.indexOf(a);0<=b&&(Q.splice(b,1),B("Handled previous rejection ["+a.id+"] "+f.formatObject(a.value)))}function d(a,b){D.push(a,b);null===C&&(C=e(l,0))}function l(){for(C=null;0>>0,u=Array(I),h=0,k;he&&d._unreport()}}}function n(a){return a instanceof c?a._handler.join():R(a)?G(a):new m(a)}function G(a){try{var b=a.then;return"function"===typeof b?new C(b,a):new m(a)}catch(c){return new H(c)}}function B(){}function v(){}function D(a,b){c.createContext(this,b);this.consumers=void 0;this.receiver=a;this.handler=void 0;this.resolved=!1}function Q(a){this.handler=a}function C(a,b){D.call(this);x.enqueue(new L(a,b,this))}function m(a){c.createContext(this);this.value=a}function H(a){c.createContext(this); this.id=++W;this.value=a;this.reported=this.handled=!1;this._report()}function A(a,b){this.rejection=a;this.context=b}function M(a){this.rejection=a}function F(a,b){this.continuation=a;this.handler=b}function E(a,b){this.handler=b;this.value=a}function L(a,b,c){this._then=a;this.thenable=b;this.resolver=c}function N(a,b,c,d,e){try{a.call(b,c,d,e)}catch(p){d(p)}}function y(a,b,c,d){this.f=a;this.z=b;this.c=c;this.to=d;this.resolver=K;this.receiver=this}function R(a){return("object"===typeof a||"function"=== typeof a)&&null!==a}function p(a,b,d,e){if("function"!==typeof a)return e.become(b);c.enterContext(b);try{e.become(n(a.call(d,b.value)))}catch(p){e.become(new H(p))}c.exitContext()}function I(a,b,c){try{return a(b,c)}catch(d){return h(d)}}function u(a,b){b.prototype=P(a.prototype);b.prototype.constructor=b}function w(a,b){return b}function t(){}var x=a.scheduler,S=function(){return"undefined"!==typeof b&&null!==b&&"function"===typeof b.emit?function(a,c){return"unhandledRejection"===a?b.emit(a,c.value, c):b.emit(a,c)}:"undefined"!==typeof self&&"function"===typeof CustomEvent?function(a,b,c){var d=!1;try{d=new c("unhandledRejection")instanceof c}catch(e){}return d?function(a,d){var e=new c(a,{detail:{reason:d.value,key:d},bubbles:!1,cancelable:!0});return!b.dispatchEvent(e)}:a}(t,self,CustomEvent):t}(),P=Object.create||function(a){function b(){}b.prototype=a;return new b};c.resolve=f;c.reject=h;c.never=function(){return aa};c._defer=function(){return new c(B,new D)};c._handler=n;c.prototype.then= function(a,b,c){var d=this._handler,e=d.join().state();if("function"!==typeof a&&0e)return new this.constructor(B,d);e=this._beget();d.chain(e._handler,d.receiver,a,b,c);return e};c.prototype["catch"]=function(a){return this.then(void 0,a)};c.prototype._beget=function(){var a=this._handler,b=this.constructor,a=new D(a.receiver,a.join().context);return new b(B,a)};c.all=function(a){return k(w,null,a)};c.race=function(a){if("object"!==typeof a||null===a)return h(new TypeError("non-iterable passed to race()")); if(0===a.length)a=aa;else if(1===a.length)a=f(a[0]);else{var b=new D,e,p;for(e=0;earguments.length?f:f.then(c, d,e)}function c(a){return function(){for(var b=0,c=arguments.length,d=Array(c);b= 3.1.5",when:">= 3.7.3",ws:">= 0.8.0"},devDependencies:{browserify:">= 11.0.1",nodeunit:">= 0.9.1"},repository:{type:"git",url:"git://github.com/crossbario/autobahn-js.git"},keywords:["WAMP", "WebSocket","RPC","PubSub"],author:"Tavendo GmbH",license:"MIT"}},{}],81:[function(h,n,l){},{}],82:[function(h,n,l){function b(d){if(!(this instanceof b))return 1d?0:e(d)|0);if(!b.TYPED_ARRAY_SUPPORT)for(var g=0;g>>1&&(a.parent=L);return a}function e(a){if(a>=(b.TYPED_ARRAY_SUPPORT?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ (b.TYPED_ARRAY_SUPPORT?2147483647:1073741823).toString(16)+" bytes");return a|0}function f(a,c){if(!(this instanceof f))return new f(a,c);var d=new b(a,c);delete d.parent;return d}function q(a,b){"string"!==typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case "ascii":case "binary":case "raw":case "raws":return c;case "utf8":case "utf-8":return m(a).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*c;case "hex":return c>>>1;case "base64":return M.toByteArray(C(a)).length; default:if(d)return m(a).length;b=(""+b).toLowerCase();d=!0}}function k(a,b,c){var d=!1;b|=0;c=void 0===c||Infinity===c?this.length:c|0;a||(a="utf8");0>b&&(b=0);c>this.length&&(c=this.length);if(c<=b)return"";for(;;)switch(a){case "hex":a=b;b=c;c=this.length;if(!a||0>a)a=0;if(!b||0>b||b>c)b=c;d="";for(c=a;cd?"0"+d.toString(16):d.toString(16),d=a+d;return d;case "utf8":case "utf-8":return r(this,b,c);case "ascii":a="";for(c=Math.min(this.length,c);be&&(f=e);break;case 2:h=a[b+1];128===(h&192)&&(e=(e&31)<<6|h&63,127e||57343e&&(f=e))}}null===f?(f=65533,g=1):65535>> 10&1023|55296),f=56320|f&1023);d.push(f);b+=g}a=d.length;if(a<=N)d=String.fromCharCode.apply(String,d);else{c="";for(b=0;ba)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length");}function z(a,c,d,e,f,g){if(!b.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(c>f||ca.length)throw new RangeError("index out of range");}function G(a,b,c,d){0>b&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);e>>8*(d?e:1-e)}function B(a,b,c,d){0>b&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);e>>8*(d?e:3-e)&255}function v(a,b,c,d,e,f){if(b>e||ba.length)throw new RangeError("index out of range");if(0>c)throw new RangeError("index out of range");}function D(a, b,c,d,e){e||v(a,b,c,4,3.4028234663852886E38,-3.4028234663852886E38);F.write(a,b,c,d,23,4);return c+4}function Q(a,b,c,d,e){e||v(a,b,c,8,1.7976931348623157E308,-1.7976931348623157E308);F.write(a,b,c,d,52,8);return c+8}function C(a){a=a.trim?a.trim():a.replace(/^\s+|\s+$/g,"");a=a.replace(R,"");if(2>a.length)return"";for(;0!==a.length%4;)a+="=";return a}function m(a,b){b=b||Infinity;for(var c,d=a.length,e=null,f=[],g=0;gc){if(!e){if(56319c){-1<(b-=3)&&f.push(239,191,189);e=c;continue}c=e-55296<<10|c-56320|65536}else e&&-1<(b-=3)&&f.push(239,191,189);e=null;if(128>c){if(0>--b)break;f.push(c)}else if(2048>c){if(0>(b-=2))break;f.push(c>>6|192,c&63|128)}else if(65536>c){if(0>(b-=3))break;f.push(c>>12|224,c>>6&63|128,c&63|128)}else if(1114112>c){if(0>(b-=4))break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw Error("Invalid code point"); }return f}function H(a){for(var b=[],c=0;c=b.length||e>=a.length);e++)b[e+c]=a[e];return e}var M=h("base64-js"),F=h("ieee754"),E=h("is-array");l.Buffer=b;l.SlowBuffer=f;l.INSPECT_MAX_BYTES=50;b.poolSize=8192;var L={};b.TYPED_ARRAY_SUPPORT=function(){function a(){}try{var b=new Uint8Array(1);b.foo=function(){return 42};b.constructor=a;return 42===b.foo()&&b.constructor===a&&"function"===typeof b.subarray&& 0===b.subarray(1,1).byteLength}catch(c){return!1}}();b.isBuffer=function(a){return!(null==a||!a._isBuffer)};b.compare=function(a,c){if(!b.isBuffer(a)||!b.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(a===c)return 0;for(var d=a.length,e=c.length,f=0,g=Math.min(d,e);fb&&(a+=" ... "));return""};b.prototype.compare=function(a){if(!b.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?0:b.compare(this,a)};b.prototype.indexOf=function(a,c){function d(a,b,c){for(var e= -1,f=0;c+fc&&(c=-2147483648);c>>=0;if(0===this.length||c>=this.length)return-1;0>c&&(c=Math.max(this.length+c,0));if("string"===typeof a)return 0===a.length?-1:String.prototype.indexOf.call(this,a,c);if(b.isBuffer(a))return d(this,a,c);if("number"===typeof a)return b.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this, a,c):d(this,[a],c);throw new TypeError("val must be string, number or Buffer");};b.prototype.get=function(a){console.log(".get() is deprecated. Access using array indexes instead.");return this.readUInt8(a)};b.prototype.set=function(a,b){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(a,b)};b.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"===typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b|= 0,isFinite(c)?(c|=0,void 0===d&&(d="utf8")):(d=c,c=void 0);else{var e=d;d=b;b=c|0;c=e}e=this.length-b;if(void 0===c||c>e)c=e;if(0c||0>b)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");d||(d="utf8");for(e=!1;;)switch(d){case "hex":b=Number(b)||0;d=this.length-b;c?(c=Number(c),c>d&&(c=d)):c=d;d=a.length;if(0!==d%2)throw Error("Invalid hex string");c>d/2&&(c=d/2);for(d=0;d(d-=2));h++)f=a.charCodeAt(h),e=f>>8,f%=256,g.push(f),g.push(e);return A(g,this,b,c);default:if(e)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(); e=!0}};b.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;b.prototype.slice=function(a,c){var d=this.length;a=~~a;c=void 0===c?d:~~c;0>a?(a+=d,0>a&&(a=0)):a>d&&(a=d);0>c?(c+=d,0>c&&(c=0)):c>d&&(c=d);c=128*e&&(c-=Math.pow(2,8*b));return c};b.prototype.readIntBE=function(a,b,c){a|=0;b|=0;c||d(a,b,this.length);c=b;for(var e=1,f=this[a+--c];0=128*e&&(f-=Math.pow(2,8*b));return f};b.prototype.readInt8=function(a,b){b||d(a,1,this.length);return this[a]&128?-1*(255-this[a]+1):this[a]};b.prototype.readInt16LE=function(a,b){b||d(a,2,this.length);var c=this[a]|this[a+1]<<8;return c&32768?c|4294901760:c};b.prototype.readInt16BE=function(a,b){b||d(a,2,this.length);var c=this[a+1]|this[a]<<8;return c&32768?c|4294901760:c};b.prototype.readInt32LE=function(a,b){b||d(a,4,this.length);return this[a]|this[a+1]<<8|this[a+2]<< 16|this[a+3]<<24};b.prototype.readInt32BE=function(a,b){b||d(a,4,this.length);return this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]};b.prototype.readFloatLE=function(a,b){b||d(a,4,this.length);return F.read(this,a,!0,23,4)};b.prototype.readFloatBE=function(a,b){b||d(a,4,this.length);return F.read(this,a,!1,23,4)};b.prototype.readDoubleLE=function(a,b){b||d(a,8,this.length);return F.read(this,a,!0,52,8)};b.prototype.readDoubleBE=function(a,b){b||d(a,8,this.length);return F.read(this,a,!1,52,8)}; b.prototype.writeUIntLE=function(a,b,c,d){a=+a;b|=0;c|=0;d||z(this,a,b,c,Math.pow(2,8*c),0);d=1;var e=0;for(this[b]=a&255;++e>>8):G(this,a,c,!0);return c+2};b.prototype.writeUInt16BE=function(a,c,d){a=+a;c|=0;d||z(this,a,c,2,65535,0);b.TYPED_ARRAY_SUPPORT?(this[c]=a>>>8,this[c+1]=a):G(this,a,c,!1);return c+2};b.prototype.writeUInt32LE=function(a,c,d){a=+a;c|=0;d||z(this,a,c,4,4294967295,0);b.TYPED_ARRAY_SUPPORT?(this[c+3]=a>>>24,this[c+2]=a>>>16,this[c+1]=a>>>8,this[c]=a):B(this,a,c,!0);return c+4};b.prototype.writeUInt32BE= function(a,c,d){a=+a;c|=0;d||z(this,a,c,4,4294967295,0);b.TYPED_ARRAY_SUPPORT?(this[c]=a>>>24,this[c+1]=a>>>16,this[c+2]=a>>>8,this[c+3]=a):B(this,a,c,!1);return c+4};b.prototype.writeIntLE=function(a,b,c,d){a=+a;b|=0;d||(d=Math.pow(2,8*c-1),z(this,a,b,c,d-1,-d));d=0;var e=1,f=0>a?1:0;for(this[b]=a&255;++d>0)-f&255;return b+c};b.prototype.writeIntBE=function(a,b,c,d){a=+a;b|=0;d||(d=Math.pow(2,8*c-1),z(this,a,b,c,d-1,-d));d=c-1;var e=1,f=0>a?1:0;for(this[b+d]=a&255;0<= --d&&(e*=256);)this[b+d]=(a/e>>0)-f&255;return b+c};b.prototype.writeInt8=function(a,c,d){a=+a;c|=0;d||z(this,a,c,1,127,-128);b.TYPED_ARRAY_SUPPORT||(a=Math.floor(a));0>a&&(a=255+a+1);this[c]=a;return c+1};b.prototype.writeInt16LE=function(a,c,d){a=+a;c|=0;d||z(this,a,c,2,32767,-32768);b.TYPED_ARRAY_SUPPORT?(this[c]=a,this[c+1]=a>>>8):G(this,a,c,!0);return c+2};b.prototype.writeInt16BE=function(a,c,d){a=+a;c|=0;d||z(this,a,c,2,32767,-32768);b.TYPED_ARRAY_SUPPORT?(this[c]=a>>>8,this[c+1]=a):G(this, a,c,!1);return c+2};b.prototype.writeInt32LE=function(a,c,d){a=+a;c|=0;d||z(this,a,c,4,2147483647,-2147483648);b.TYPED_ARRAY_SUPPORT?(this[c]=a,this[c+1]=a>>>8,this[c+2]=a>>>16,this[c+3]=a>>>24):B(this,a,c,!0);return c+4};b.prototype.writeInt32BE=function(a,c,d){a=+a;c|=0;d||z(this,a,c,4,2147483647,-2147483648);0>a&&(a=4294967295+a+1);b.TYPED_ARRAY_SUPPORT?(this[c]=a>>>24,this[c+1]=a>>>16,this[c+2]=a>>>8,this[c+3]=a):B(this,a,c,!1);return c+4};b.prototype.writeFloatLE=function(a,b,c){return D(this, a,b,!0,c)};b.prototype.writeFloatBE=function(a,b,c){return D(this,a,b,!1,c)};b.prototype.writeDoubleLE=function(a,b,c){return Q(this,a,b,!0,c)};b.prototype.writeDoubleBE=function(a,b,c){return Q(this,a,b,!1,c)};b.prototype.copy=function(a,c,d,e){d||(d=0);e||0===e||(e=this.length);c>=a.length&&(c=a.length);c||(c=0);0c)throw new RangeError("targetStart out of bounds");if(0>d||d>=this.length)throw new RangeError("sourceStart out of bounds"); if(0>e)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length);a.length-cf||!b.TYPED_ARRAY_SUPPORT)for(e=0;eb||b>=this.length)throw new RangeError("start out of bounds"); if(0>c||c>this.length)throw new RangeError("end out of bounds");if("number"===typeof a)for(;ba)return-1;if(58>a)return a-48+52;if(91>a)return a-65;if(123>a)return a-97+26}var g="undefined"!==typeof Uint8Array?Uint8Array:Array;b.toByteArray=function(b){function e(a){d[n++]=a}var f,h,k,l,d;if(0>16),e((k&65280)>>8),e(k&255);2===l?(k=a(b.charAt(f))<<2|a(b.charAt(f+1))>>4,e(k&255)):1===l&&(k=a(b.charAt(f))<<10|a(b.charAt(f+1))<<4|a(b.charAt(f+2))>>2,e(k>>8&255),e(k&255));return d};b.fromByteArray=function(a){var b,f=a.length%3,g="",h,l;b=0;for(l=a.length-f;b>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>> 12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h&63),g+=h;switch(f){case 1:h=a[a.length-1];g+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>2);g+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h<<4&63);g+="==";break;case 2:h=(a[a.length-2]<<8)+a[a.length-1],g+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>> 10),g+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>4&63),g+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h<<2&63),g+="="}return g}})("undefined"===typeof l?this.base64js={}:l)},{}],84:[function(h,n,l){l.read=function(b,a,g,c,e){var f;f=8*e-c-1;var h=(1<>1,l=-7;e=g?e-1:0;var d=g?-1:1,n=b[a+e];e+=d;g=n&(1<<-l)-1;n>>=-l;for(l+=f;0>=-l;for(l+=c;0>1,n=23===e?Math.pow(2,-24)-Math.pow(2,-77):0;f=c?0:f-1;var G=c?1:-1,B=0>a||0===a&&0>1/a?1:0;a=Math.abs(a);isNaN(a)||Infinity===a?(a=isNaN(a)?1:0,c=l):(c=Math.floor(Math.log(a)/Math.LN2),1>a*(h=Math.pow(2,-c))&&(c--,h*=2),a=1<=c+d?a+n/h:a+n*Math.pow(2,1-d),2<=a*h&&(c++,h/=2),c+d>=l?(a=0,c=l):1<=c+d?(a=(a*h-1)*Math.pow(2,e),c+=d):(a=a* Math.pow(2,d-1)*Math.pow(2,e),c=0));for(;8<=e;b[g+f]=a&255,f+=G,a/=256,e-=8);c=c<a||isNaN(a))throw TypeError("n must be a positive number");this._maxListeners=a;return this};b.prototype.emit=function(b){var e,f,h,k;this._events||(this._events={});if("error"===b&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){e=arguments[1];if(e instanceof Error)throw e;throw TypeError('Uncaught, unspecified "error" event.'); }f=this._events[b];if(void 0===f)return!1;if(a(f))switch(arguments.length){case 1:f.call(this);break;case 2:f.call(this,arguments[1]);break;case 3:f.call(this,arguments[1],arguments[2]);break;default:e=arguments.length;h=Array(e-1);for(k=1;kf&&(this._events[c].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this._events[c].length),"function"===typeof console.trace&&console.trace());return this};b.prototype.on=b.prototype.addListener;b.prototype.once=function(b,e){function f(){this.removeListener(b,f);g||(g=!0,e.apply(this,arguments))}if(!a(e))throw TypeError("listener must be a function");var g=!1;f.listener=e;this.on(b,f);return this};b.prototype.removeListener=function(b,e){var f,h,k;if(!a(e))throw TypeError("listener must be a function");if(!this._events||!this._events[b])return this;f=this._events[b]; k=f.length;h=-1;if(f===e||a(f.listener)&&f.listener===e)delete this._events[b],this._events.removeListener&&this.emit("removeListener",b,e);else if(g(f)){for(;0h)return this;1===f.length?(f.length=0,delete this._events[b]):f.splice(h,1);this._events.removeListener&&this.emit("removeListener",b,e)}return this};b.prototype.removeAllListeners=function(b){var e;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length? this._events={}:this._events[b]&&delete this._events[b],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);this.removeAllListeners("removeListener");this._events={};return this}e=this._events[b];if(a(e))this.removeListener(b,e);else for(;e.length;)this.removeListener(b,e[e.length-1]);delete this._events[b];return this};b.prototype.listeners=function(b){return this._events&&this._events[b]?a(this._events[b])?[this._events[b]]:this._events[b].slice(): []};b.listenerCount=function(b,e){return b._events&&b._events[e]?a(b._events[e])?1:b._events[e].length:0}},{}],87:[function(h,n,l){function b(){f=!1;q.length?e=q.concat(e):k=-1;e.length&&a()}function a(){if(!f){var a=setTimeout(b);f=!0;for(var c=e.length;c;){q=e;for(e=[];++k