!function(e,t,n,r){t[e]=n.call(t);for(var o=0;o1e4||!(n=r.exec(e)))return 0;switch(t=parseFloat(n[1]),n[2].toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 31536e6*t;case"weeks":case"week":case"wks":case"wk":case"w":return 6048e5*t;case"days":case"day":case"d":return 864e5*t;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*t;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*t;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*t;default:return t}}},{}],6:[function(e,t,n){"use strict";t.exports=function(e){function t(){return r?n:(r=1,n=e.apply(this,arguments),e=null,n)}var n,r=0;return t.displayName=e.displayName||e.name||t.displayName||t.name,t}},{}],7:[function(e,t,n){"use strict";function r(e){return decodeURIComponent(e.replace(/\+/g," "))}function o(e){for(var t,n=/([^=?&]+)=?([^&]*)/g,o={};t=n.exec(e);o[r(t[1])]=r(t[2]));return o}function i(e,t){t=t||"";var n=[];"string"!=typeof t&&(t="?");for(var r in e)s.call(e,r)&&n.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n.length?t+n.join("&"):""}var s=Object.prototype.hasOwnProperty;n.stringify=i,n.parse=o},{}],8:[function(e,t,n){"use strict";function r(e,t,n){return s(e in n?n[e]:e in t?t[e]:o[e])}function o(e){var t=this;if(!(t instanceof o))return new o(e);e=e||{},t.attempt=null,t._fn=null,t["reconnect timeout"]=r("reconnect timeout",t,e),t.retries=r("retries",t,e),t.factor=r("factor",t,e),t.max=r("max",t,e),t.min=r("min",t,e),t.timers=new a(t)}var i=e("eventemitter3"),s=e("millisecond"),c=e("demolish"),a=e("tick-tock"),u=e("one-time");o.prototype=new i,o.prototype.constructor=o,o["reconnect timeout"]="30 seconds",o.max=1/0,o.min="500 ms",o.retries=10,o.factor=2,o.prototype.reconnect=function(){var e=this;return e.backoff(function(t,n){if(n.duration=+new Date-n.start,t)return e.emit("reconnect failed",t,n);e.emit("reconnected",n)},e.attempt)},o.prototype.backoff=function(e,t){var n=this;return t=t||n.attempt||{},t.backoff?n:(t["reconnect timeout"]=r("reconnect timeout",n,t),t.retries=r("retries",n,t),t.factor=r("factor",n,t),t.max=r("max",n,t),t.min=r("min",n,t),t.start=+t.start||+new Date,t.duration=+t.duration||0,t.attempt=+t.attempt||0,t.attempt===t.retries?(e.call(n,new Error("Unable to recover"),t),n):(t.backoff=!0,t.attempt++,n.attempt=t,t.scheduled=1!==t.attempt?Math.min(Math.round((Math.random()+1)*t.min*Math.pow(t.factor,t.attempt-1)),t.max):t.min,n.timers.setTimeout("reconnect",function(){t.duration=+new Date-t.start,t.backoff=!1,n.timers.clear("reconnect, timeout");var r=n._fn=u(function(r){if(n.reset(),r)return n.backoff(e,t);e.call(n,void 0,t)});n.emit("reconnect",t,r),n.timers.setTimeout("timeout",function(){var e=new Error("Failed to reconnect in a timely manner");t.duration=+new Date-t.start,n.emit("reconnect timeout",e,t),r(e)},t["reconnect timeout"])},t.scheduled),n.emit("reconnect scheduled",t),n))},o.prototype.reconnecting=function(){return!!this.attempt},o.prototype.reconnected=function(e){return this._fn&&this._fn(e),this},o.prototype.reset=function(){return this._fn=this.attempt=null,this.timers.clear("reconnect, timeout"),this},o.prototype.destroy=c("timers attempt _fn"),t.exports=o},{demolish:1,eventemitter3:9,millisecond:5,"one-time":6,"tick-tock":11}],9:[function(e,t,n){"use strict";function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(){}var i="function"!=typeof Object.create&&"~";o.prototype._events=void 0,o.prototype.listeners=function(e,t){var n=i?i+e:e,r=this._events&&this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,c=new Array(s);o0);return t}function o(e){var t=0;for(p=0;p>

VOD

הודעת שגיאה