!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;ga?-a:a+100}function d(a){return 100>a?-a:a-100}var e=-1,f=-1,g={};g.packw=function(){var b,c=0,d=Array.prototype.slice.apply(arguments);return d.forEach(function(a){c+=Math.ceil(Math.log(a+1)/Math.LN2/7)||1}),b=new a(c),d.reverse().forEach(function(a){for(b[--c]=127&a;a>>>=7;)b[--c]=127&a|128}),b.toString("base64")},g.unpackw=function(b){var c=new a(b,"base64"),d=0,e=[],f=0,g=0;for(f=0;f>>0,0===(128&g)&&d++;return e},g.generate=function(a,b,d){var h,i=[];if(b||(b=e),!a){if(!(d>0))return;a=f}return i=[c(b),c(a)],d&&i.push(c(d)),h=g.packw.apply(null,i),h.replace(/=+$/,"").replace("/","_")},g.decode=function(a){var b;if(a&&/^[a-zA-Z0-9_+]+$/.test(a)){for(a=a.replace("_","/");a.length%4>0;)a+="=";return b=g.unpackw(a).map(function(a){return d(a)}),{playersId:b[0],postsId:b[1],usersId:b[2]}}},b.exports=g}).call(this,a("buffer").Buffer)},{buffer:3}],3:[function(a,b,c){function d(a,b,c){if(!(this instanceof d))return new d(a,b,c);var e,f=typeof a;if("number"===f)e=a>0?a>>>0:0;else if("string"===f)"base64"===b&&(a=x(a)),e=d.byteLength(a,b);else{if("object"!==f||null===a)throw new TypeError("must start with number, buffer, array or string");"Buffer"===a.type&&J(a.data)&&(a=a.data),e=+a.length>0?Math.floor(+a.length):0}if(this.length>K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");var g;d.TYPED_ARRAY_SUPPORT?g=d._augment(new Uint8Array(e)):(g=this,g.length=e,g._isBuffer=!0);var h;if(d.TYPED_ARRAY_SUPPORT&&"number"==typeof a.byteLength)g._set(a);else if(z(a))if(d.isBuffer(a))for(h=0;e>h;h++)g[h]=a.readUInt8(h);else for(h=0;e>h;h++)g[h]=(a[h]%256+256)%256;else if("string"===f)g.write(a,0,b);else if("number"===f&&!d.TYPED_ARRAY_SUPPORT&&!c)for(h=0;e>h;h++)g[h]=0;return g}function e(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;d>g;g++){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))throw new Error("Invalid hex string");a[c+g]=h}return g}function f(a,b,c,d){var e=F(B(b),a,c,d);return e}function g(a,b,c,d){var e=F(C(b),a,c,d);return e}function h(a,b,c,d){return g(a,b,c,d)}function i(a,b,c,d){var e=F(E(b),a,c,d);return e}function j(a,b,c,d){var e=F(D(b),a,c,d,2);return e}function k(a,b,c){return H.fromByteArray(0===b&&c===a.length?a:a.slice(b,c))}function l(a,b,c){var d="",e="";c=Math.min(a.length,c);for(var f=b;c>f;f++)a[f]<=127?(d+=G(e)+String.fromCharCode(a[f]),e=""):e+="%"+a[f].toString(16);return d+G(e)}function m(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(a[e]);return d}function n(a,b,c){return m(a,b,c)}function o(a,b,c){var d=a.length;(!b||0>b)&&(b=0),(!c||0>c||c>d)&&(c=d);for(var e="",f=b;c>f;f++)e+=A(a[f]);return e}function p(a,b,c){for(var d=a.slice(b,c),e="",f=0;fa)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length")}function r(a,b,c,e,f,g){if(!d.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>f||g>b)throw new TypeError("value is out of bounds");if(c+e>a.length)throw new TypeError("index out of range")}function s(a,b,c,d){0>b&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);f>e;e++)a[c+e]=(b&255<<8*(d?e:1-e))>>>8*(d?e:1-e)}function t(a,b,c,d){0>b&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);f>e;e++)a[c+e]=b>>>8*(d?e:3-e)&255}function u(a,b,c,d,e,f){if(b>e||f>b)throw new TypeError("value is out of bounds");if(c+d>a.length)throw new TypeError("index out of range")}function v(a,b,c,d,e){return e||u(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),I.write(a,b,c,d,23,4),c+4}function w(a,b,c,d,e){return e||u(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),I.write(a,b,c,d,52,8),c+8}function x(a){for(a=y(a).replace(M,"");a.length%4!==0;)a+="=";return a}function y(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function z(a){return J(a)||d.isBuffer(a)||a&&"object"==typeof a&&"number"==typeof a.length}function A(a){return 16>a?"0"+a.toString(16):a.toString(16)}function B(a){for(var b=[],c=0;c=d)b.push(d);else{var e=c;d>=55296&&57343>=d&&c++;for(var f=encodeURIComponent(a.slice(e,c+1)).substr(1).split("%"),g=0;g>8,d=b%256,e.push(d),e.push(c);return e}function E(a){return H.toByteArray(a)}function F(a,b,c,d,e){e&&(d-=d%e);for(var f=0;d>f&&!(f+c>=b.length||f>=a.length);f++)b[f+c]=a[f];return f}function G(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}var H=a("base64-js"),I=a("ieee754"),J=a("is-array");c.Buffer=d,c.SlowBuffer=d,c.INSPECT_MAX_BYTES=50,d.poolSize=8192;var K=1073741823;d.TYPED_ARRAY_SUPPORT=function(){try{var a=new ArrayBuffer(0),b=new Uint8Array(a);return b.foo=function(){return 42},42===b.foo()&&"function"==typeof b.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(c){return!1}}(),d.isBuffer=function(a){return!(null==a||!a._isBuffer)},d.compare=function(a,b){if(!d.isBuffer(a)||!d.isBuffer(b))throw new TypeError("Arguments must be Buffers");for(var c=a.length,e=b.length,f=0,g=Math.min(c,e);g>f&&a[f]===b[f];f++);return f!==g&&(c=a[f],e=b[f]),e>c?-1:c>e?1:0},d.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(a,b){if(!J(a))throw new TypeError("Usage: Buffer.concat(list[, length])");if(0===a.length)return new d(0);if(1===a.length)return a[0];var c;if(void 0===b)for(b=0,c=0;c>>1;break;case"utf8":case"utf-8":c=B(a).length;break;case"base64":c=E(a).length;break;default:c=a.length}return c},d.prototype.length=void 0,d.prototype.parent=void 0,d.prototype.toString=function(a,b,c){var d=!1;if(b>>>=0,c=void 0===c||c===1/0?this.length:c>>>0,a||(a="utf8"),0>b&&(b=0),c>this.length&&(c=this.length),b>=c)return"";for(;;)switch(a){case"hex":return o(this,b,c);case"utf8":case"utf-8":return l(this,b,c);case"ascii":return m(this,b,c);case"binary":return n(this,b,c);case"base64":return k(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}},d.prototype.equals=function(a){if(!d.isBuffer(a))throw new TypeError("Argument must be a Buffer");return 0===d.compare(this,a)},d.prototype.inspect=function(){var a="",b=c.INSPECT_MAX_BYTES;return this.length>0&&(a=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(a+=" ... ")),""},d.prototype.compare=function(a){if(!d.isBuffer(a))throw new TypeError("Argument must be a Buffer");return d.compare(this,a)},d.prototype.get=function(a){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(a)},d.prototype.set=function(a,b){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(a,b)},d.prototype.write=function(a,b,c,d){if(isFinite(b))isFinite(c)||(d=c,c=void 0);else{var k=d;d=b,b=c,c=k}b=Number(b)||0;var l=this.length-b;c?(c=Number(c),c>l&&(c=l)):c=l,d=String(d||"utf8").toLowerCase();var m;switch(d){case"hex":m=e(this,a,b,c);break;case"utf8":case"utf-8":m=f(this,a,b,c);break;case"ascii":m=g(this,a,b,c);break;case"binary":m=h(this,a,b,c);break;case"base64":m=i(this,a,b,c);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":m=j(this,a,b,c);break;default:throw new TypeError("Unknown encoding: "+d)}return m},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},d.prototype.slice=function(a,b){var c=this.length;if(a=~~a,b=void 0===b?c:~~b,0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c),0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c),a>b&&(b=a),d.TYPED_ARRAY_SUPPORT)return d._augment(this.subarray(a,b));for(var e=b-a,f=new d(e,void 0,!0),g=0;e>g;g++)f[g]=this[g+a];return f},d.prototype.readUInt8=function(a,b){return b||q(a,1,this.length),this[a]},d.prototype.readUInt16LE=function(a,b){return b||q(a,2,this.length),this[a]|this[a+1]<<8},d.prototype.readUInt16BE=function(a,b){return b||q(a,2,this.length),this[a]<<8|this[a+1]},d.prototype.readUInt32LE=function(a,b){return b||q(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},d.prototype.readUInt32BE=function(a,b){return b||q(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},d.prototype.readInt8=function(a,b){return b||q(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},d.prototype.readInt16LE=function(a,b){b||q(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},d.prototype.readInt16BE=function(a,b){b||q(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},d.prototype.readInt32LE=function(a,b){return b||q(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},d.prototype.readInt32BE=function(a,b){return b||q(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},d.prototype.readFloatLE=function(a,b){return b||q(a,4,this.length),I.read(this,a,!0,23,4)},d.prototype.readFloatBE=function(a,b){return b||q(a,4,this.length),I.read(this,a,!1,23,4)},d.prototype.readDoubleLE=function(a,b){return b||q(a,8,this.length),I.read(this,a,!0,52,8)},d.prototype.readDoubleBE=function(a,b){return b||q(a,8,this.length),I.read(this,a,!1,52,8)},d.prototype.writeUInt8=function(a,b,c){return a=+a,b>>>=0,c||r(this,a,b,1,255,0),d.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=a,b+1},d.prototype.writeUInt16LE=function(a,b,c){return a=+a,b>>>=0,c||r(this,a,b,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):s(this,a,b,!0),b+2},d.prototype.writeUInt16BE=function(a,b,c){return a=+a,b>>>=0,c||r(this,a,b,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):s(this,a,b,!1),b+2},d.prototype.writeUInt32LE=function(a,b,c){return a=+a,b>>>=0,c||r(this,a,b,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=a):t(this,a,b,!0),b+4},d.prototype.writeUInt32BE=function(a,b,c){return a=+a,b>>>=0,c||r(this,a,b,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=a):t(this,a,b,!1),b+4},d.prototype.writeInt8=function(a,b,c){return a=+a,b>>>=0,c||r(this,a,b,1,127,-128),d.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=a,b+1},d.prototype.writeInt16LE=function(a,b,c){return a=+a,b>>>=0,c||r(this,a,b,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):s(this,a,b,!0),b+2},d.prototype.writeInt16BE=function(a,b,c){return a=+a,b>>>=0,c||r(this,a,b,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):s(this,a,b,!1),b+2},d.prototype.writeInt32LE=function(a,b,c){return a=+a,b>>>=0,c||r(this,a,b,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):t(this,a,b,!0),b+4},d.prototype.writeInt32BE=function(a,b,c){return a=+a,b>>>=0,c||r(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),d.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=a):t(this,a,b,!1),b+4},d.prototype.writeFloatLE=function(a,b,c){return v(this,a,b,!0,c)},d.prototype.writeFloatBE=function(a,b,c){return v(this,a,b,!1,c)},d.prototype.writeDoubleLE=function(a,b,c){return w(this,a,b,!0,c)},d.prototype.writeDoubleBE=function(a,b,c){return w(this,a,b,!1,c)},d.prototype.copy=function(a,b,c,e){var f=this;if(c||(c=0),e||0===e||(e=this.length),b||(b=0),e!==c&&0!==a.length&&0!==f.length){if(c>e)throw new TypeError("sourceEnd < sourceStart");if(0>b||b>=a.length)throw new TypeError("targetStart out of bounds");if(0>c||c>=f.length)throw new TypeError("sourceStart out of bounds");if(0>e||e>f.length)throw new TypeError("sourceEnd out of bounds");e>this.length&&(e=this.length),a.length-bg||!d.TYPED_ARRAY_SUPPORT)for(var h=0;g>h;h++)a[h+b]=this[h+c];else a._set(this.subarray(c,c+g),b)}},d.prototype.fill=function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),b>c)throw new TypeError("end < start");if(c!==b&&0!==this.length){if(0>b||b>=this.length)throw new TypeError("start out of bounds");if(0>c||c>this.length)throw new TypeError("end out of bounds");var d;if("number"==typeof a)for(d=b;c>d;d++)this[d]=a;else{var e=B(a.toString()),f=e.length;for(d=b;c>d;d++)this[d]=e[d%f]}return this}},d.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(d.TYPED_ARRAY_SUPPORT)return new d(this).buffer;for(var a=new Uint8Array(this.length),b=0,c=a.length;c>b;b+=1)a[b]=this[b];return a.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var L=d.prototype;d._augment=function(a){return a.constructor=d,a._isBuffer=!0,a._get=a.get,a._set=a.set,a.get=L.get,a.set=L.set,a.write=L.write,a.toString=L.toString,a.toLocaleString=L.toString,a.toJSON=L.toJSON,a.equals=L.equals,a.compare=L.compare,a.copy=L.copy,a.slice=L.slice,a.readUInt8=L.readUInt8,a.readUInt16LE=L.readUInt16LE,a.readUInt16BE=L.readUInt16BE,a.readUInt32LE=L.readUInt32LE,a.readUInt32BE=L.readUInt32BE,a.readInt8=L.readInt8,a.readInt16LE=L.readInt16LE,a.readInt16BE=L.readInt16BE,a.readInt32LE=L.readInt32LE,a.readInt32BE=L.readInt32BE,a.readFloatLE=L.readFloatLE,a.readFloatBE=L.readFloatBE,a.readDoubleLE=L.readDoubleLE,a.readDoubleBE=L.readDoubleBE,a.writeUInt8=L.writeUInt8,a.writeUInt16LE=L.writeUInt16LE,a.writeUInt16BE=L.writeUInt16BE,a.writeUInt32LE=L.writeUInt32LE,a.writeUInt32BE=L.writeUInt32BE,a.writeInt8=L.writeInt8,a.writeInt16LE=L.writeInt16LE,a.writeInt16BE=L.writeInt16BE,a.writeInt32LE=L.writeInt32LE,a.writeInt32BE=L.writeInt32BE,a.writeFloatLE=L.writeFloatLE,a.writeFloatBE=L.writeFloatBE,a.writeDoubleLE=L.writeDoubleLE,a.writeDoubleBE=L.writeDoubleBE,a.fill=L.fill,a.inspect=L.inspect,a.toArrayBuffer=L.toArrayBuffer,a};var M=/[^+\/0-9A-z]/g},{"base64-js":4,ieee754:5,"is-array":6}],4:[function(a,b,c){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(a){"use strict";function b(a){var b=a.charCodeAt(0);return b===g?62:b===h?63:i>b?-1:i+10>b?b-i+26+26:k+26>b?b-k:j+26>b?b-j+26:void 0}function c(a){function c(a){j[l++]=a}var d,e,g,h,i,j;if(a.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=a.length;i="="===a.charAt(k-2)?2:"="===a.charAt(k-1)?1:0,j=new f(3*a.length/4-i),g=i>0?a.length-4:a.length;var l=0;for(d=0,e=0;g>d;d+=4,e+=3)h=b(a.charAt(d))<<18|b(a.charAt(d+1))<<12|b(a.charAt(d+2))<<6|b(a.charAt(d+3)),c((16711680&h)>>16),c((65280&h)>>8),c(255&h);return 2===i?(h=b(a.charAt(d))<<2|b(a.charAt(d+1))>>4,c(255&h)):1===i&&(h=b(a.charAt(d))<<10|b(a.charAt(d+1))<<4|b(a.charAt(d+2))>>2,c(h>>8&255),c(255&h)),j}function e(a){function b(a){return d.charAt(a)}function c(a){return b(a>>18&63)+b(a>>12&63)+b(a>>6&63)+b(63&a)}var e,f,g,h=a.length%3,i="";for(e=0,g=a.length-h;g>e;e+=3)f=(a[e]<<16)+(a[e+1]<<8)+a[e+2],i+=c(f);switch(h){case 1:f=a[a.length-1],i+=b(f>>2),i+=b(f<<4&63),i+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],i+=b(f>>10),i+=b(f>>4&63),i+=b(f<<2&63),i+="="}return i}var f="undefined"!=typeof Uint8Array?Uint8Array:Array,g="+".charCodeAt(0),h="/".charCodeAt(0),i="0".charCodeAt(0),j="a".charCodeAt(0),k="A".charCodeAt(0);a.toByteArray=c,a.fromByteArray=e}("undefined"==typeof c?this.base64js={}:c)},{}],5:[function(a,b,c){c.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?0/0:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=0>b||0===b&&0>1/b?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},{}],6:[function(a,b,c){var d=Array.isArray,e=Object.prototype.toString;b.exports=d||function(a){return!!a&&"[object Array]"==e.call(a)}},{}],7:[function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}b.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||0>a||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;throw TypeError('Uncaught, unspecified "error" event.')}if(c=this._events[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];c.apply(this,f)}else if(g(c)){for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];for(j=c.slice(),d=j.length,i=0;d>i;i++)j[i].apply(this,f)}return!0},d.prototype.addListener=function(a,b){var c;if(!e(b))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,e(b.listener)?b.listener:b),this._events[a]?g(this._events[a])?this._events[a].push(b):this._events[a]=[this._events[a],b]:this._events[a]=b,g(this._events[a])&&!this._events[a].warned){var c;c=h(this._maxListeners)?d.defaultMaxListeners:this._maxListeners,c&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())}return this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){function c(){this.removeListener(a,c),d||(d=!0,b.apply(this,arguments))}if(!e(b))throw TypeError("listener must be a function");var d=!1;return c.listener=b,this.on(a,c),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-->0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(0>d)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(d,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],e(c))this.removeListener(a,c);else for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},d.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?e(this._events[a])?[this._events[a]]:this._events[a].slice():[]},d.listenerCount=function(a,b){var c;return c=a._events&&a._events[b]?e(a._events[b])?1:a._events[b].length:0}},{}],8:[function(a,b,c){var d=b.exports,e=(a("events").EventEmitter,a("./lib/request")),f=a("url");d.request=function(a,b){"string"==typeof a&&(a=f.parse(a)),a||(a={}),a.host||a.port||(a.port=parseInt(window.location.port,10)),!a.host&&a.hostname&&(a.host=a.hostname),a.protocol||(a.scheme?a.protocol=a.scheme+":":a.protocol=window.location.protocol),a.host||(a.host=window.location.hostname||window.location.host),/:/.test(a.host)&&(a.port||(a.port=a.host.split(":")[1]),a.host=a.host.split(":")[0]),a.port||(a.port="https:"==a.protocol?443:80);var c=new e(new g,a);return b&&c.on("response",b),c},d.get=function(a,b){a.method="GET";var c=d.request(a,b);return c.end(),c},d.Agent=function(){},d.Agent.defaultMaxSockets=4;var g=function(){if("undefined"==typeof window)throw new Error("no window object present");if(window.XMLHttpRequest)return window.XMLHttpRequest;if(window.ActiveXObject){for(var a=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"],b=0;bthis.offset&&(this.emit("data",b.slice(this.offset)),this.offset=b.length))};var i=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{stream:31,util:36}],11:[function(a,b,c){!function(){function a(a){this.message=a}var b="undefined"!=typeof c?c:this,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.prototype=new Error,a.prototype.name="InvalidCharacterError",b.btoa||(b.btoa=function(b){for(var c,e,f=0,g=d,h="";b.charAt(0|f)||(g="=",f%1);h+=g.charAt(63&c>>8-f%1*8)){if(e=b.charCodeAt(f+=.75),e>255)throw new a("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");c=c<<8|e}return h}),b.atob||(b.atob=function(b){if(b=b.replace(/=+$/,""),b.length%4==1)throw new a("'atob' failed: The string to be decoded is not correctly encoded.");for(var c,e,f=0,g=0,h="";e=b.charAt(g++);~e&&(c=f%4?64*c+e:e,f++%4)?h+=String.fromCharCode(255&c>>(-2*f&6)):0)e=d.indexOf(e);return h})}()},{}],12:[function(a,b,c){"function"==typeof Object.create?b.exports=function(a,b){a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:b.exports=function(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}},{}],13:[function(a,b,c){function d(){}var e=b.exports={};e.nextTick=function(){var a="undefined"!=typeof window&&window.setImmediate,b="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(a)return function(a){return window.setImmediate(a)};if(b){var c=[];return window.addEventListener("message",function(a){var b=a.source;if((b===window||null===b)&&"process-tick"===a.data&&(a.stopPropagation(),c.length>0)){var d=c.shift();d()}},!0),function(a){c.push(a),window.postMessage("process-tick","*")}}return function(a){setTimeout(a,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=d,e.addListener=d,e.once=d,e.off=d,e.removeListener=d,e.removeAllListeners=d,e.emit=d,e.binding=function(a){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(a){throw new Error("process.chdir is not supported")}},{}],14:[function(a,b,c){(function(a){!function(d){function e(a){throw RangeError(H[a])}function f(a,b){for(var c=a.length;c--;)a[c]=b(a[c]);return a}function g(a,b){return f(a.split(G),b).join(".")}function h(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function i(a){return f(a,function(a){var b="";return a>65535&&(a-=65536,b+=K(a>>>10&1023|55296),a=56320|1023&a),b+=K(a)}).join("")}function j(a){return 10>a-48?a-22:26>a-65?a-65:26>a-97?a-97:w}function k(a,b){return a+22+75*(26>a)-((0!=b)<<5)}function l(a,b,c){var d=0;for(a=c?J(a/A):a>>1,a+=J(a/b);a>I*y>>1;d+=w)a=J(a/I);return J(d+(I+1)*a/(a+z))}function m(a){var b,c,d,f,g,h,k,m,n,o,p=[],q=a.length,r=0,s=C,t=B;for(c=a.lastIndexOf(D),0>c&&(c=0),d=0;c>d;++d)a.charCodeAt(d)>=128&&e("not-basic"),p.push(a.charCodeAt(d));for(f=c>0?c+1:0;q>f;){for(g=r,h=1,k=w;f>=q&&e("invalid-input"),m=j(a.charCodeAt(f++)),(m>=w||m>J((v-r)/h))&&e("overflow"),r+=m*h,n=t>=k?x:k>=t+y?y:k-t,!(n>m);k+=w)o=w-n,h>J(v/o)&&e("overflow"),h*=o;b=p.length+1,t=l(r-g,b,0==g),J(r/b)>v-s&&e("overflow"),s+=J(r/b),r%=b,p.splice(r++,0,s)}return i(p)}function n(a){var b,c,d,f,g,i,j,m,n,o,p,q,r,s,t,u=[];for(a=h(a),q=a.length,b=C,c=0,g=B,i=0;q>i;++i)p=a[i],128>p&&u.push(K(p));for(d=f=u.length,f&&u.push(D);q>d;){for(j=v,i=0;q>i;++i)p=a[i],p>=b&&j>p&&(j=p);for(r=d+1,j-b>J((v-c)/r)&&e("overflow"),c+=(j-b)*r,b=j,i=0;q>i;++i)if(p=a[i],b>p&&++c>v&&e("overflow"),p==b){for(m=c,n=w;o=g>=n?x:n>=g+y?y:n-g,!(o>m);n+=w)t=m-o,s=w-o,u.push(K(k(o+t%s,0))),m=J(t/s);u.push(K(k(m,0))),g=l(c,r,d==f),c=0,++d}++c,++b}return u.join("")}function o(a){return g(a,function(a){return E.test(a)?m(a.slice(4).toLowerCase()):a})}function p(a){return g(a,function(a){return F.test(a)?"xn--"+n(a):a})}var q="object"==typeof c&&c,r="object"==typeof b&&b&&b.exports==q&&b,s="object"==typeof a&&a;(s.global===s||s.window===s)&&(d=s);var t,u,v=2147483647,w=36,x=1,y=26,z=38,A=700,B=72,C=128,D="-",E=/^xn--/,F=/[^ -~]/,G=/\x2E|\u3002|\uFF0E|\uFF61/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=w-x,J=Math.floor,K=String.fromCharCode;if(t={version:"1.2.4",ucs2:{decode:h,encode:i},decode:m,encode:n,toASCII:p,toUnicode:o},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return t});else if(q&&!q.nodeType)if(r)r.exports=t;else for(u in t)t.hasOwnProperty(u)&&(q[u]=t[u]);else d.punycode=t}(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],15:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||"&",c=c||"=";var g={};if("string"!=typeof a||0===a.length)return g;var h=/\+/g;a=a.split(b);var i=1e3;f&&"number"==typeof f.maxKeys&&(i=f.maxKeys);var j=a.length;i>0&&j>i&&(j=i);for(var k=0;j>k;++k){var l,m,n,o,p=a[k].replace(h,"%20"),q=p.indexOf(c);q>=0?(l=p.substr(0,q),m=p.substr(q+1)):(l=p,m=""),n=decodeURIComponent(l),o=decodeURIComponent(m),d(g,n)?e(g[n])?g[n].push(o):g[n]=[g[n],o]:g[n]=o}return g};var e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{}],16:[function(a,b,c){"use strict";function d(a,b){if(a.map)return a.map(b);for(var c=[],d=0;dc;c++)b(a[c],c)}b.exports=d;var g=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b},h=a("core-util-is");h.inherits=a("inherits");var i=a("./_stream_readable"),j=a("./_stream_writable");h.inherits(d,i),f(g(j.prototype),function(a){d.prototype[a]||(d.prototype[a]=j.prototype[a])})}).call(this,a("JkpR2F"))},{"./_stream_readable":21,"./_stream_writable":23,JkpR2F:13,"core-util-is":24,inherits:12}],20:[function(a,b,c){function d(a){return this instanceof d?void e.call(this,a):new d(a)}b.exports=d;var e=a("./_stream_transform"),f=a("core-util-is");f.inherits=a("inherits"),f.inherits(d,e),d.prototype._transform=function(a,b,c){c(null,a)}},{"./_stream_transform":22,"core-util-is":24,inherits:12}],21:[function(a,b,c){(function(c){function d(b,c){b=b||{};var d=b.highWaterMark;this.highWaterMark=d||0===d?d:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!b.objectMode,this.defaultEncoding=b.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(C||(C=a("string_decoder/").StringDecoder),this.decoder=new C(b.encoding),this.encoding=b.encoding)}function e(a){return this instanceof e?(this._readableState=new d(a,this),this.readable=!0,void A.call(this)):new e(a)}function f(a,b,c,d,e){var f=j(b,c);if(f)a.emit("error",f);else if(null===c||void 0===c)b.reading=!1,b.ended||k(a,b);else if(b.objectMode||c&&c.length>0)if(b.ended&&!e){var h=new Error("stream.push() after EOF");a.emit("error",h)}else if(b.endEmitted&&e){var h=new Error("stream.unshift() after end event");a.emit("error",h)}else!b.decoder||e||d||(c=b.decoder.write(c)),b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):(b.reading=!1,b.buffer.push(c)),b.needReadable&&l(a),n(a,b);else e||(b.reading=!1);return g(b)}function g(a){return!a.ended&&(a.needReadable||a.length=D)a=D;else{a--;for(var b=1;32>b;b<<=1)a|=a>>b;a++}return a}function i(a,b){return 0===b.length&&b.ended?0:b.objectMode?0===a?0:1:null===a||isNaN(a)?b.flowing&&b.buffer.length?b.buffer[0].length:b.length:0>=a?0:(a>b.highWaterMark&&(b.highWaterMark=h(a)),a>b.length?b.ended?b.length:(b.needReadable=!0,0):a)}function j(a,b){var c=null;return y.isBuffer(b)||"string"==typeof b||null===b||void 0===b||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function k(a,b){if(b.decoder&&!b.ended){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,b.length>0?l(a):u(a)}function l(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(b.emittedReadable=!0,b.sync?c.nextTick(function(){m(a)}):m(a))}function m(a){a.emit("readable")}function n(a,b){b.readingMore||(b.readingMore=!0,c.nextTick(function(){o(a,b)}))}function o(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length0)return;return 0===d.pipesCount?(d.flowing=!1,void(z.listenerCount(a,"data")>0&&s(a))):void(d.ranOut=!0)}function r(){this._readableState.ranOut&&(this._readableState.ranOut=!1,q(this))}function s(a,b){var d=a._readableState;if(d.flowing)throw new Error("Cannot switch to old mode now.");var e=b||!1,f=!1;a.readable=!0,a.pipe=A.prototype.pipe,a.on=a.addListener=A.prototype.on,a.on("readable",function(){f=!0;for(var b;!e&&null!==(b=a.read());)a.emit("data",b);null===b&&(f=!1,a._readableState.needReadable=!0)}),a.pause=function(){e=!0,this.emit("pause")},a.resume=function(){e=!1,f?c.nextTick(function(){a.emit("readable")}):this.read(0),this.emit("resume")},a.emit("readable")}function t(a,b){var c,d=b.buffer,e=b.length,f=!!b.decoder,g=!!b.objectMode;if(0===d.length)return null;if(0===e)c=null;else if(g)c=d.shift();else if(!a||a>=e)c=f?d.join(""):y.concat(d,e),d.length=0;else if(aj&&a>i;j++){var h=d[0],l=Math.min(a-i,h.length);f?c+=h.slice(0,l):h.copy(c,i,0,l),l0)throw new Error("endReadable called on non-empty stream");!b.endEmitted&&b.calledRead&&(b.ended=!0,c.nextTick(function(){b.endEmitted||0!==b.length||(b.endEmitted=!0,a.readable=!1,a.emit("end"))}))}function v(a,b){for(var c=0,d=a.length;d>c;c++)b(a[c],c)}function w(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1}b.exports=e;var x=a("isarray"),y=a("buffer").Buffer;e.ReadableState=d;var z=a("events").EventEmitter;z.listenerCount||(z.listenerCount=function(a,b){return a.listeners(b).length});var A=a("stream"),B=a("core-util-is");B.inherits=a("inherits");var C;B.inherits(e,A),e.prototype.push=function(a,b){var c=this._readableState;return"string"!=typeof a||c.objectMode||(b=b||c.defaultEncoding,b!==c.encoding&&(a=new y(a,b),b="")),f(this,c,a,b,!1)},e.prototype.unshift=function(a){var b=this._readableState;return f(this,b,a,"",!0)},e.prototype.setEncoding=function(b){C||(C=a("string_decoder/").StringDecoder),this._readableState.decoder=new C(b),this._readableState.encoding=b};var D=8388608;e.prototype.read=function(a){var b=this._readableState;b.calledRead=!0;var c,d=a;if(("number"!=typeof a||a>0)&&(b.emittedReadable=!1),0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return l(this),null;if(a=i(a,b),0===a&&b.ended)return c=null,b.length>0&&b.decoder&&(c=t(a,b),b.length-=c.length),0===b.length&&u(this),c;var e=b.needReadable;return b.length-a<=b.highWaterMark&&(e=!0),(b.ended||b.reading)&&(e=!1),e&&(b.reading=!0,b.sync=!0,0===b.length&&(b.needReadable=!0),this._read(b.highWaterMark),b.sync=!1),e&&!b.reading&&(a=i(d,b)),c=a>0?t(a,b):null,null===c&&(b.needReadable=!0,a=0),b.length-=a,0!==b.length||b.ended||(b.needReadable=!0),b.ended&&!b.endEmitted&&0===b.length&&u(this),c},e.prototype._read=function(a){this.emit("error",new Error("not implemented"))},e.prototype.pipe=function(a,b){function d(a){a===k&&f()}function e(){a.end()}function f(){a.removeListener("close",h),a.removeListener("finish",i),a.removeListener("drain",o),a.removeListener("error",g),a.removeListener("unpipe",d),k.removeListener("end",e),k.removeListener("end",f),(!a._writableState||a._writableState.needDrain)&&o()}function g(b){j(),a.removeListener("error",g),0===z.listenerCount(a,"error")&&a.emit("error",b)}function h(){a.removeListener("finish",i),j()}function i(){a.removeListener("close",h),j()}function j(){k.unpipe(a)}var k=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=a;break;case 1:l.pipes=[l.pipes,a];break;default:l.pipes.push(a)}l.pipesCount+=1;var m=(!b||b.end!==!1)&&a!==c.stdout&&a!==c.stderr,n=m?e:f;l.endEmitted?c.nextTick(n):k.once("end",n),a.on("unpipe",d);var o=p(k);return a.on("drain",o),a._events&&a._events.error?x(a._events.error)?a._events.error.unshift(g):a._events.error=[g,a._events.error]:a.on("error",g),a.once("close",h),a.once("finish",i),a.emit("pipe",k),l.flowing||(this.on("readable",r),l.flowing=!0,c.nextTick(function(){q(k)})),a},e.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,this.removeListener("readable",r),b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,this.removeListener("readable",r),b.flowing=!1;for(var e=0;d>e;e++)c[e].emit("unpipe",this);return this}var e=w(b.pipes,a);return-1===e?this:(b.pipes.splice(e,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this),this)},e.prototype.on=function(a,b){var c=A.prototype.on.call(this,a,b);if("data"!==a||this._readableState.flowing||s(this),"readable"===a&&this.readable){var d=this._readableState;d.readableListening||(d.readableListening=!0,d.emittedReadable=!1,d.needReadable=!0,d.reading?d.length&&l(this,d):this.read(0))}return c},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){s(this),this.read(0),this.emit("resume")},e.prototype.pause=function(){s(this,!0),this.emit("pause")},e.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(b.decoder&&(e=b.decoder.write(e)),(!b.objectMode||null!==e&&void 0!==e)&&(b.objectMode||e&&e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)"function"==typeof a[e]&&"undefined"==typeof this[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));var f=["error","close","destroy","pause","resume"];return v(f,function(b){a.on(b,d.emit.bind(d,b))}),d._read=function(b){c&&(c=!1,a.resume())},d},e._fromList=t}).call(this,a("JkpR2F"))},{JkpR2F:13,buffer:3,"core-util-is":24,events:7,inherits:12,isarray:25,stream:31,"string_decoder/":26}],22:[function(a,b,c){function d(a,b){this.afterTransform=function(a,c){return e(b,a,c)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function e(a,b,c){var d=a._transformState;d.transforming=!1;var e=d.writecb;if(!e)return a.emit("error",new Error("no writecb in Transform class"));d.writechunk=null,d.writecb=null,null!==c&&void 0!==c&&a.push(c),e&&e(b);var f=a._readableState;f.reading=!1,(f.needReadable||f.length=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived=55296&&56319>=d)){if(this.charReceived=this.charLength=0,0===a.length)return b;break}this.charLength+=this.surrogateSize,b=""}this.detectIncompleteChar(a);var e=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,e),e-=this.charReceived),b+=a.toString(this.encoding,0,e);var e=b.length-1,d=b.charCodeAt(e);if(d>=55296&&56319>=d){var f=this.surrogateSize;return this.charLength+=f,this.charReceived+=f,this.charBuffer.copy(this.charBuffer,f,0,f),a.copy(this.charBuffer,0,0,f),b.substring(0,e)}return b},j.prototype.detectIncompleteChar=function(a){for(var b=a.length>=3?3:a.length;b>0;b--){var c=a[a.length-b];if(1==b&&c>>5==6){this.charLength=2;break}if(2>=b&&c>>4==14){this.charLength=3;break}if(3>=b&&c>>3==30){this.charLength=4;break}}this.charReceived=b},j.prototype.end=function(a){var b="";if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;b+=d.slice(0,c).toString(e)}return b}},{buffer:3}],27:[function(a,b,c){b.exports=a("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":20}],28:[function(a,b,c){var d=a("stream");c=b.exports=a("./lib/_stream_readable.js"),c.Stream=d,c.Readable=c,c.Writable=a("./lib/_stream_writable.js"),c.Duplex=a("./lib/_stream_duplex.js"),c.Transform=a("./lib/_stream_transform.js"),c.PassThrough=a("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":19,"./lib/_stream_passthrough.js":20,"./lib/_stream_readable.js":21,"./lib/_stream_transform.js":22,"./lib/_stream_writable.js":23,stream:31}],29:[function(a,b,c){b.exports=a("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":22}],30:[function(a,b,c){b.exports=a("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":23}],31:[function(a,b,c){function d(){e.call(this)}b.exports=d;var e=a("events").EventEmitter,f=a("inherits");f(d,e),d.Readable=a("readable-stream/readable.js"),d.Writable=a("readable-stream/writable.js"),d.Duplex=a("readable-stream/duplex.js"),d.Transform=a("readable-stream/transform.js"),d.PassThrough=a("readable-stream/passthrough.js"),d.Stream=d,d.prototype.pipe=function(a,b){function c(b){a.writable&&!1===a.write(b)&&j.pause&&j.pause()}function d(){j.readable&&j.resume&&j.resume()}function f(){k||(k=!0,a.end())}function g(){k||(k=!0,"function"==typeof a.destroy&&a.destroy())}function h(a){if(i(),0===e.listenerCount(this,"error"))throw a}function i(){j.removeListener("data",c),a.removeListener("drain",d),j.removeListener("end",f),j.removeListener("close",g),j.removeListener("error",h),a.removeListener("error",h),j.removeListener("end",i),j.removeListener("close",i),a.removeListener("close",i)}var j=this;j.on("data",c),a.on("drain",d),a._isStdio||b&&b.end===!1||(j.on("end",f),j.on("close",g));var k=!1;return j.on("error",h),a.on("error",h),j.on("end",i),j.on("close",i),a.on("close",i),a.emit("pipe",j),a}},{events:7,inherits:12,"readable-stream/duplex.js":18,"readable-stream/passthrough.js":27,"readable-stream/readable.js":28,"readable-stream/transform.js":29,"readable-stream/writable.js":30}],32:[function(a,b,c){function d(a,b){this._id=a,this._clearFn=b}var e=a("process/browser.js").nextTick,f=Function.prototype.apply,g=Array.prototype.slice,h={},i=0;c.setTimeout=function(){return new d(f.call(setTimeout,window,arguments),clearTimeout)},c.setInterval=function(){return new d(f.call(setInterval,window,arguments),clearInterval)},c.clearTimeout=c.clearInterval=function(a){a.close()},d.prototype.unref=d.prototype.ref=function(){},d.prototype.close=function(){this._clearFn.call(window,this._id)},c.enroll=function(a,b){clearTimeout(a._idleTimeoutId),a._idleTimeout=b},c.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},c._unrefActive=c.active=function(a){clearTimeout(a._idleTimeoutId);var b=a._idleTimeout;b>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},b))},c.setImmediate="function"==typeof setImmediate?setImmediate:function(a){var b=i++,d=arguments.length<2?!1:g.call(arguments,1);return h[b]=!0,e(function(){h[b]&&(d?a.apply(null,d):a.call(null),c.clearImmediate(b))}),b},c.clearImmediate="function"==typeof clearImmediate?clearImmediate:function(a){delete h[a]}},{"process/browser.js":33}],33:[function(a,b,c){function d(){if(!h){h=!0;for(var a,b=g.length;b;){a=g,g=[];for(var c=-1;++c",'"',"`"," ","\r","\n"," "],q=["{","}","|","\\","^","`"].concat(p),r=["'"].concat(q),s=["%","/","?",";","#"].concat(r),t=["/","?","#"],u=255,v=/^[a-z0-9A-Z_-]{0,63}$/,w=/^([a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=a("querystring");d.prototype.parse=function(a,b,c){if(!i(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a;d=d.trim();var e=n.exec(d);if(e){e=e[0];var f=e.toLowerCase();this.protocol=f,d=d.substr(e.length)}if(c||e||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="http://"===d.substr(0,2);!g||e&&y[e]||(d=d.substr(2),this.slashes=!0)}if(!y[e]&&(g||e&&!z[e])){for(var h=-1,j=0;jk)&&(h=k)}var l,o;o=-1===h?d.lastIndexOf("@"):d.lastIndexOf("@",h),-1!==o&&(l=d.slice(0,o),d=d.slice(o+1),this.auth=decodeURIComponent(l)),h=-1;for(var j=0;jk)&&(h=k)}-1===h&&(h=d.length),this.host=d.slice(0,h),d=d.slice(h),this.parseHost(),this.hostname=this.hostname||""; var p="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!p)for(var q=this.hostname.split(/\./),j=0,B=q.length;B>j;j++){var C=q[j];if(C&&!C.match(v)){for(var D="",E=0,F=C.length;F>E;E++)D+=C.charCodeAt(E)>127?"x":C[E];if(!D.match(v)){var G=q.slice(0,j),H=q.slice(j+1),I=C.match(w);I&&(G.push(I[1]),H.unshift(I[2])),H.length&&(d="/"+H.join(".")+d),this.hostname=G.join(".");break}}}if(this.hostname.length>u?this.hostname="":this.hostname=this.hostname.toLowerCase(),!p){for(var J=this.hostname.split("."),K=[],j=0;jj;j++){var O=r[j],P=encodeURIComponent(O);P===O&&(P=escape(O)),d=d.split(O).join(P)}var Q=d.indexOf("#");-1!==Q&&(this.hash=d.substr(Q),d=d.slice(0,Q));var R=d.indexOf("?");if(-1!==R?(this.search=d.substr(R),this.query=d.substr(R+1),b&&(this.query=A.parse(this.query)),d=d.slice(0,R)):b&&(this.search="",this.query={}),d&&(this.pathname=d),z[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var M=this.pathname||"",L=this.search||"";this.path=M+L}return this.href=this.format(),this},d.prototype.format=function(){var a=this.auth||"";a&&(a=encodeURIComponent(a),a=a.replace(/%3A/i,":"),a+="@");var b=this.protocol||"",c=this.pathname||"",d=this.hash||"",e=!1,f="";this.host?e=a+this.host:this.hostname&&(e=a+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(e+=":"+this.port)),this.query&&j(this.query)&&Object.keys(this.query).length&&(f=A.stringify(this.query));var g=this.search||f&&"?"+f||"";return b&&":"!==b.substr(-1)&&(b+=":"),this.slashes||(!b||z[b])&&e!==!1?(e="http://"+(e||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):e||(e=""),d&&"#"!==d.charAt(0)&&(d="#"+d),g&&"?"!==g.charAt(0)&&(g="?"+g),c=c.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),g=g.replace("#","%23"),b+e+c+g+d},d.prototype.resolve=function(a){return this.resolveObject(e(a,!1,!0)).format()},d.prototype.resolveObject=function(a){if(i(a)){var b=new d;b.parse(a,!1,!0),a=b}var c=new d;if(Object.keys(this).forEach(function(a){c[a]=this[a]},this),c.hash=a.hash,""===a.href)return c.href=c.format(),c;if(a.slashes&&!a.protocol)return Object.keys(a).forEach(function(b){"protocol"!==b&&(c[b]=a[b])}),z[c.protocol]&&c.hostname&&!c.pathname&&(c.path=c.pathname="/"),c.href=c.format(),c;if(a.protocol&&a.protocol!==c.protocol){if(!z[a.protocol])return Object.keys(a).forEach(function(b){c[b]=a[b]}),c.href=c.format(),c;if(c.protocol=a.protocol,a.host||y[a.protocol])c.pathname=a.pathname;else{for(var e=(a.pathname||"").split("/");e.length&&!(a.host=e.shift()););a.host||(a.host=""),a.hostname||(a.hostname=""),""!==e[0]&&e.unshift(""),e.length<2&&e.unshift(""),c.pathname=e.join("/")}if(c.search=a.search,c.query=a.query,c.host=a.host||"",c.auth=a.auth,c.hostname=a.hostname||a.host,c.port=a.port,c.pathname||c.search){var f=c.pathname||"",g=c.search||"";c.path=f+g}return c.slashes=c.slashes||a.slashes,c.href=c.format(),c}var h=c.pathname&&"/"===c.pathname.charAt(0),j=a.host||a.pathname&&"/"===a.pathname.charAt(0),m=j||h||c.host&&a.pathname,n=m,o=c.pathname&&c.pathname.split("/")||[],e=a.pathname&&a.pathname.split("/")||[],p=c.protocol&&!z[c.protocol];if(p&&(c.hostname="",c.port=null,c.host&&(""===o[0]?o[0]=c.host:o.unshift(c.host)),c.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(""===e[0]?e[0]=a.host:e.unshift(a.host)),a.host=null),m=m&&(""===e[0]||""===o[0])),j)c.host=a.host||""===a.host?a.host:c.host,c.hostname=a.hostname||""===a.hostname?a.hostname:c.hostname,c.search=a.search,c.query=a.query,o=e;else if(e.length)o||(o=[]),o.pop(),o=o.concat(e),c.search=a.search,c.query=a.query;else if(!l(a.search)){if(p){c.hostname=c.host=o.shift();var q=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;q&&(c.auth=q.shift(),c.host=c.hostname=q.shift())}return c.search=a.search,c.query=a.query,k(c.pathname)&&k(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!o.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var r=o.slice(-1)[0],s=(c.host||a.host)&&("."===r||".."===r)||""===r,t=0,u=o.length;u>=0;u--)r=o[u],"."==r?o.splice(u,1):".."===r?(o.splice(u,1),t++):t&&(o.splice(u,1),t--);if(!m&&!n)for(;t--;t)o.unshift("..");!m||""===o[0]||o[0]&&"/"===o[0].charAt(0)||o.unshift(""),s&&"/"!==o.join("/").substr(-1)&&o.push("");var v=""===o[0]||o[0]&&"/"===o[0].charAt(0);if(p){c.hostname=c.host=v?"":o.length?o.shift():"";var q=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;q&&(c.auth=q.shift(),c.host=c.hostname=q.shift())}return m=m||c.host&&o.length,m&&!v&&o.unshift(""),o.length?c.pathname=o.join("/"):(c.pathname=null,c.path=null),k(c.pathname)&&k(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=o.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{punycode:14,querystring:17}],35:[function(a,b,c){b.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8}},{}],36:[function(a,b,c){(function(b,d){function e(a,b){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(b)?d.showHidden=b:b&&c._extend(d,b),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,b,d){if(a.customInspect&&b&&A(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,b);if(f)return f;var g=Object.keys(b),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),z(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(b);if(0===g.length){if(A(b)){var q=b.name?": "+b.name:"";return a.stylize("[Function"+q+"]","special")}if(w(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(y(b))return a.stylize(Date.prototype.toString.call(b),"date");if(z(b))return k(b)}var r="",s=!1,u=["{","}"];if(o(b)&&(s=!0,u=["[","]"]),A(b)){var v=b.name?": "+b.name:"";r=" [Function"+v+"]"}if(w(b)&&(r=" "+RegExp.prototype.toString.call(b)),y(b)&&(r=" "+Date.prototype.toUTCString.call(b)),z(b)&&(r=" "+k(b)),0===g.length&&(!s||0==b.length))return u[0]+r+u[1];if(0>d)return w(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var x;return x=s?l(a,b,d,p,g):g.map(function(c){return m(a,b,d,p,c,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;h>g;++g)f.push(F(b,String(g))?m(a,b,c,d,String(g),!0):"");return e.forEach(function(e){e.match(/^\d+$/)||f.push(m(a,b,c,d,e,!0))}),f}function m(a,b,c,d,e,f){var g,h,j;if(j=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},j.get?h=j.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):j.set&&(h=a.stylize("[Setter]","special")),F(d,e)||(g="["+e+"]"),h||(a.seen.indexOf(j.value)<0?(h=q(c)?i(a,j.value,null):i(a,j.value,c-1),h.indexOf("\n")>-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return 10>a?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;c.format=function(a){if(!t(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];f>c;h=d[++c])g+=q(h)||!x(h)?" "+h:" "+e(h);return g},c.deprecate=function(a,e){function f(){if(!g){if(b.throwDeprecation)throw new Error(e);b.traceDeprecation?console.trace(e):console.error(e),g=!0}return a.apply(this,arguments)}if(v(d.process))return function(){return c.deprecate(a,e).apply(this,arguments)};if(b.noDeprecation===!0)return a;var g=!1;return f};var H,I={};c.debuglog=function(a){if(v(H)&&(H=b.env.NODE_DEBUG||""),a=a.toUpperCase(),!I[a])if(new RegExp("\\b"+a+"\\b","i").test(H)){var d=b.pid;I[a]=function(){var b=c.format.apply(c,arguments);console.error("%s %d: %s",a,d,b)}}else I[a]=function(){};return I[a]},c.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},c.isArray=o,c.isBoolean=p,c.isNull=q,c.isNullOrUndefined=r,c.isNumber=s,c.isString=t,c.isSymbol=u,c.isUndefined=v,c.isRegExp=w,c.isObject=x,c.isDate=y,c.isError=z,c.isFunction=A,c.isPrimitive=B,c.isBuffer=a("./support/isBuffer");var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];c.log=function(){console.log("%s - %s",E(),c.format.apply(c,arguments))},c.inherits=a("inherits"),c._extend=function(a,b){if(!b||!x(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}}).call(this,a("JkpR2F"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":35,JkpR2F:13,inherits:12}],37:[function(a,b,c){(function(a){(function(){function d(a,b){function c(a){if(c[a]!==q)return c[a];var d;if("bug-string-char-index"==a)d="a"!="a"[0];else if("json"==a)d=c("json-stringify")&&c("json-parse");else{var f,h='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==a){var i=b.stringify,k="function"==typeof i&&t;if(k){(f=function(){return 1}).toJSON=f;try{k="0"===i(0)&&"0"===i(new e)&&'""'==i(new g)&&i(s)===q&&i(q)===q&&i()===q&&"1"===i(f)&&"[1]"==i([f])&&"[null]"==i([q])&&"null"==i(null)&&"[null,null,null]"==i([q,s,null])&&i({a:[f,!0,!1,null,"\x00\b\n\f\r "]})==h&&"1"===i(null,f)&&"[\n 1,\n 2\n]"==i([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==i(new j(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==i(new j(864e13))&&'"-000001-01-01T00:00:00.000Z"'==i(new j(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==i(new j(-1))}catch(l){k=!1}}d=k}if("json-parse"==a){var m=b.parse;if("function"==typeof m)try{if(0===m("0")&&!m(!1)){f=m(h);var n=5==f.a.length&&1===f.a[0];if(n){try{n=!m('" "')}catch(l){}if(n)try{n=1!==m("01")}catch(l){}if(n)try{n=1!==m("1.")}catch(l){}}}}catch(l){n=!1}d=n}}return c[a]=!!d}a||(a=h.Object()),b||(b=h.Object());var e=a.Number||h.Number,g=a.String||h.String,i=a.Object||h.Object,j=a.Date||h.Date,k=a.SyntaxError||h.SyntaxError,l=a.TypeError||h.TypeError,m=a.Math||h.Math,n=a.JSON||h.JSON;"object"==typeof n&&n&&(b.stringify=n.stringify,b.parse=n.parse);var o,p,q,r=i.prototype,s=r.toString,t=new j(-0xc782b5b800cec);try{t=-109252==t.getUTCFullYear()&&0===t.getUTCMonth()&&1===t.getUTCDate()&&10==t.getUTCHours()&&37==t.getUTCMinutes()&&6==t.getUTCSeconds()&&708==t.getUTCMilliseconds()}catch(u){}if(!c("json")){var v="[object Function]",w="[object Date]",x="[object Number]",y="[object String]",z="[object Array]",A="[object Boolean]",B=c("bug-string-char-index");if(!t)var C=m.floor,D=[0,31,59,90,120,151,181,212,243,273,304,334],E=function(a,b){return D[b]+365*(a-1970)+C((a-1969+(b=+(b>1)))/4)-C((a-1901+b)/100)+C((a-1601+b)/400)};if((o=r.hasOwnProperty)||(o=function(a){var b,c={};return(c.__proto__=null,c.__proto__={toString:1},c).toString!=s?o=function(a){var b=this.__proto__,c=a in(this.__proto__=null,this);return this.__proto__=b,c}:(b=c.constructor,o=function(a){var c=(this.constructor||b).prototype;return a in this&&!(a in c&&this[a]===c[a])}),c=null,o.call(this,a)}),p=function(a,b){var c,d,e,g=0;(c=function(){this.valueOf=0}).prototype.valueOf=0,d=new c;for(e in d)o.call(d,e)&&g++;return c=d=null,g?p=2==g?function(a,b){var c,d={},e=s.call(a)==v;for(c in a)e&&"prototype"==c||o.call(d,c)||!(d[c]=1)||!o.call(a,c)||b(c)}:function(a,b){var c,d,e=s.call(a)==v;for(c in a)e&&"prototype"==c||!o.call(a,c)||(d="constructor"===c)||b(c);(d||o.call(a,c="constructor"))&&b(c)}:(d=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],p=function(a,b){var c,e,g=s.call(a)==v,h=!g&&"function"!=typeof a.constructor&&f[typeof a.hasOwnProperty]&&a.hasOwnProperty||o;for(c in a)g&&"prototype"==c||!h.call(a,c)||b(c);for(e=d.length;c=d[--e];h.call(a,c)&&b(c));}),p(a,b)},!c("json-stringify")){var F={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},G="000000",H=function(a,b){return(G+(b||0)).slice(-a)},I="\\u00",J=function(a){for(var b='"',c=0,d=a.length,e=!B||d>10,f=e&&(B?a.split(""):a);d>c;c++){var g=a.charCodeAt(c);switch(g){case 8:case 9:case 10:case 12:case 13:case 34:case 92:b+=F[g];break;default:if(32>g){b+=I+H(2,g.toString(16));break}b+=e?f[c]:a.charAt(c)}}return b+'"'},K=function(a,b,c,d,e,f,g){var h,i,j,k,m,n,r,t,u,v,B,D,F,G,I,L;try{h=b[a]}catch(M){}if("object"==typeof h&&h)if(i=s.call(h),i!=w||o.call(h,"toJSON"))"function"==typeof h.toJSON&&(i!=x&&i!=y&&i!=z||o.call(h,"toJSON"))&&(h=h.toJSON(a));else if(h>-1/0&&1/0>h){if(E){for(m=C(h/864e5),j=C(m/365.2425)+1970-1;E(j+1,0)<=m;j++);for(k=C((m-E(j,0))/30.42);E(j,k+1)<=m;k++);m=1+m-E(j,k),n=(h%864e5+864e5)%864e5,r=C(n/36e5)%24,t=C(n/6e4)%60,u=C(n/1e3)%60,v=n%1e3}else j=h.getUTCFullYear(),k=h.getUTCMonth(),m=h.getUTCDate(),r=h.getUTCHours(),t=h.getUTCMinutes(),u=h.getUTCSeconds(),v=h.getUTCMilliseconds();h=(0>=j||j>=1e4?(0>j?"-":"+")+H(6,0>j?-j:j):H(4,j))+"-"+H(2,k+1)+"-"+H(2,m)+"T"+H(2,r)+":"+H(2,t)+":"+H(2,u)+"."+H(3,v)+"Z"}else h=null;if(c&&(h=c.call(b,a,h)),null===h)return"null";if(i=s.call(h),i==A)return""+h;if(i==x)return h>-1/0&&1/0>h?""+h:"null";if(i==y)return J(""+h);if("object"==typeof h){for(G=g.length;G--;)if(g[G]===h)throw l();if(g.push(h),B=[],I=f,f+=e,i==z){for(F=0,G=h.length;G>F;F++)D=K(F,h,c,d,e,f,g),B.push(D===q?"null":D);L=B.length?e?"[\n"+f+B.join(",\n"+f)+"\n"+I+"]":"["+B.join(",")+"]":"[]"}else p(d||h,function(a){var b=K(a,h,c,d,e,f,g);b!==q&&B.push(J(a)+":"+(e?" ":"")+b)}),L=B.length?e?"{\n"+f+B.join(",\n"+f)+"\n"+I+"}":"{"+B.join(",")+"}":"{}";return g.pop(),L}};b.stringify=function(a,b,c){var d,e,g,h;if(f[typeof b]&&b)if((h=s.call(b))==v)e=b;else if(h==z){g={};for(var i,j=0,k=b.length;k>j;i=b[j++],h=s.call(i),(h==y||h==x)&&(g[i]=1));}if(c)if((h=s.call(c))==x){if((c-=c%1)>0)for(d="",c>10&&(c=10);d.lengthL;)switch(e=f.charCodeAt(L)){case 9:case 10:case 13:case 32:L++;break;case 123:case 125:case 91:case 93:case 58:case 44:return a=B?f.charAt(L):f[L],L++,a;case 34:for(a="@",L++;g>L;)if(e=f.charCodeAt(L),32>e)P();else if(92==e)switch(e=f.charCodeAt(++L)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:a+=O[e],L++;break;case 117:for(b=++L,c=L+4;c>L;L++)e=f.charCodeAt(L),e>=48&&57>=e||e>=97&&102>=e||e>=65&&70>=e||P();a+=N("0x"+f.slice(b,L));break;default:P()}else{if(34==e)break;for(e=f.charCodeAt(L),b=L;e>=32&&92!=e&&34!=e;)e=f.charCodeAt(++L);a+=f.slice(b,L)}if(34==f.charCodeAt(L))return L++,a;P();default:if(b=L,45==e&&(d=!0,e=f.charCodeAt(++L)),e>=48&&57>=e){for(48==e&&(e=f.charCodeAt(L+1),e>=48&&57>=e)&&P(),d=!1;g>L&&(e=f.charCodeAt(L),e>=48&&57>=e);L++);if(46==f.charCodeAt(L)){for(c=++L;g>c&&(e=f.charCodeAt(c),e>=48&&57>=e);c++);c==L&&P(),L=c}if(e=f.charCodeAt(L),101==e||69==e){for(e=f.charCodeAt(++L),(43==e||45==e)&&L++,c=L;g>c&&(e=f.charCodeAt(c),e>=48&&57>=e);c++);c==L&&P(),L=c}return+f.slice(b,L)}if(d&&P(),"true"==f.slice(L,L+4))return L+=4,!0;if("false"==f.slice(L,L+5))return L+=5,!1;if("null"==f.slice(L,L+4))return L+=4,null;P()}return"$"},R=function(a){var b,c;if("$"==a&&P(),"string"==typeof a){if("@"==(B?a.charAt(0):a[0]))return a.slice(1);if("["==a){for(b=[];a=Q(),"]"!=a;c||(c=!0))c&&(","==a?(a=Q(),"]"==a&&P()):P()),","==a&&P(),b.push(R(a));return b}if("{"==a){for(b={};a=Q(),"}"!=a;c||(c=!0))c&&(","==a?(a=Q(),"}"==a&&P()):P()),(","==a||"string"!=typeof a||"@"!=(B?a.charAt(0):a[0])||":"!=Q())&&P(),b[a.slice(1)]=R(Q());return b}P()}return a},S=function(a,b,c){var d=T(a,b,c);d===q?delete a[b]:a[b]=d},T=function(a,b,c){var d,e=a[b];if("object"==typeof e&&e)if(s.call(e)==z)for(d=e.length;d--;)S(e,d,c);else p(e,function(a){S(e,a,c)});return c.call(a,b,e)};b.parse=function(a,b){var c,d;return L=0,M=""+a,c=R(Q()),"$"!=Q()&&P(),L=M=null,b&&s.call(b)==v?T((d={},d[""]=c,d),"",b):c}}}return b.runInContext=d,b}var e="function"==typeof define&&define.amd,f={"function":!0,object:!0},g=f[typeof c]&&c&&!c.nodeType&&c,h=f[typeof window]&&window||this,i=g&&f[typeof b]&&b&&!b.nodeType&&"object"==typeof a&&a;if(!i||i.global!==i&&i.window!==i&&i.self!==i||(h=i),g&&!e)d(h,g);else{var j=h.JSON,k=h.JSON3,l=!1,m=d(h,h.JSON3={noConflict:function(){return l||(l=!0,h.JSON=j,h.JSON3=k,j=k=null),m}});h.JSON={parse:m.parse,stringify:m.stringify}}e&&define(function(){return m})}).call(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],38:[function(a,b,c){!function(a){function c(a,b){if("object"!==e(a))return b;for(var d in b)"object"===e(a[d])&&"object"===e(b[d])?a[d]=c(a[d],b[d]):a[d]=b[d];return a}function d(a,b,d){var g=d[0],h=d.length;(a||"object"!==e(g))&&(g={});for(var i=0;h>i;++i){var j=d[i],k=e(j);if("object"===k)for(var l in j){var m=a?f.clone(j[l]):j[l];b?g[l]=c(g[l],m):g[l]=m}}return g}function e(a){return{}.toString.call(a).slice(8,-1).toLowerCase()}var f=function(a){return d(a===!0,!1,arguments)},g="merge";f.recursive=function(a){return d(a===!0,!0,arguments)},f.clone=function(a){var b,c,d=a,g=e(a);if("array"===g)for(d=[],c=a.length,b=0;c>b;++b)d[b]=f.clone(a[b]);else if("object"===g){d={};for(b in a)d[b]=f.clone(a[b])}return d},a?b.exports=f:window[g]=f}("object"==typeof b&&b&&"object"==typeof b.exports&&b.exports)},{}],39:[function(a,b,c){(function(){function a(a,b,c){var d=b&&c||0,e=0;for(b=b||[],a.toLowerCase().replace(/[0-9a-f]{2}/g,function(a){16>e&&(b[d+e++]=n[a])});16>e;)b[d+e++]=0;return b}function c(a,b){var c=b||0,d=m;return d[a[c++]]+d[a[c++]]+d[a[c++]]+d[a[c++]]+"-"+d[a[c++]]+d[a[c++]]+"-"+d[a[c++]]+d[a[c++]]+"-"+d[a[c++]]+d[a[c++]]+"-"+d[a[c++]]+d[a[c++]]+d[a[c++]]+d[a[c++]]+d[a[c++]]+d[a[c++]]}function d(a,b,d){var e=b&&d||0,f=b||[];a=a||{};var g=null!=a.clockseq?a.clockseq:r,h=null!=a.msecs?a.msecs:(new Date).getTime(),i=null!=a.nsecs?a.nsecs:t+1,j=h-s+(i-t)/1e4;if(0>j&&null==a.clockseq&&(g=g+1&16383),(0>j||h>s)&&null==a.nsecs&&(i=0),i>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,t=i,r=g,h+=122192928e5;var k=(1e4*(268435455&h)+i)%4294967296;f[e++]=k>>>24&255,f[e++]=k>>>16&255,f[e++]=k>>>8&255,f[e++]=255&k;var l=h/4294967296*1e4&268435455;f[e++]=l>>>8&255,f[e++]=255&l,f[e++]=l>>>24&15|16,f[e++]=l>>>16&255,f[e++]=g>>>8|128,f[e++]=255&g;for(var m=a.node||q,n=0;6>n;n++)f[e+n]=m[n];return b?b:c(f)}function e(a,b,d){var e=b&&d||0;"string"==typeof a&&(b="binary"==a?new l(16):null,a=null),a=a||{};var g=a.random||(a.rng||f)();if(g[6]=15&g[6]|64,g[8]=63&g[8]|128,b)for(var h=0;16>h;h++)b[e+h]=g[h];return b||c(g)}var f,g=this;if("function"==typeof g.require)try{var h=g.require("crypto").randomBytes;f=h&&function(){return h(16)}}catch(i){}if(!f&&g.crypto&&crypto.getRandomValues){var j=new Uint8Array(16);f=function(){return crypto.getRandomValues(j),j}}if(!f){var k=new Array(16);f=function(){for(var a,b=0;16>b;b++)0===(3&b)&&(a=4294967296*Math.random()),k[b]=a>>>((3&b)<<3)&255;return k}}for(var l="function"==typeof g.Buffer?g.Buffer:Array,m=[],n={},o=0;256>o;o++)m[o]=(o+256).toString(16).substr(1),n[m[o]]=o;var p=f(),q=[1|p[0],p[1],p[2],p[3],p[4],p[5]],r=16383&(p[6]<<8|p[7]),s=0,t=0,u=e;if(u.v1=d,u.v4=e,u.parse=a,u.unparse=c,u.BufferClass=l,"undefined"!=typeof b&&b.exports)b.exports=u;else if("function"==typeof define&&define.amd)define(function(){return u});else{var v=g.uuid;u.noConflict=function(){return g.uuid=v,u},g.uuid=u}}).call(this)},{}],40:[function(a,b,c){b.exports=a("./lib/Pongs")},{"./lib/Pongs":41}],41:[function(a,b,c){(function(c){function d(a,b){var c,d,e=k.parse(a,!1,!0);c={host:e.hostname,port:e.port,path:e.path,method:"POST",withCredentials:!1,headers:{"Content-type":"application/json;charset=UTF-8"}},d=i.request(c),d.write(JSON.stringify(b)),d.end()}function e(){d(this.url+"/heartbeat",{sessionID:this.sessionID})}function f(){var a,b,d,e;return c.performance?(a=c.performance.now(),b=c.performance.timing.fetchStart,d=c.performance.timing.navigationStart,e=a-(b-d)):e=null,e}function g(a){this.url=a,this.sessionID=h.v1()}var h=a("node-uuid"),i=a("http"),j=a("timers"),k=a("url"),l=1e4;g.prototype.startHeartbeat=function(){this.heartbeatInterval||(e.call(this),this.heartbeatInterval=j.setInterval(e.bind(this),l))},g.prototype.stopHeartbeat=function(){j.clearInterval(this.heartbeatInterval)},g.prototype.sendStartupTime=function(){d(this.url+"/startup",{sessionID:this.sessionID,duration:f()})},b.exports=g}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{http:8,"node-uuid":39,timers:32,url:34}],42:[function(a,b,c){(function(a){!function(a){if("function"==typeof bootstrap)bootstrap("promise",a);else if("object"==typeof c)b.exports=a();else if("function"==typeof define&&define.amd)define(a);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeQ=a}else Q=a()}(function(){"use strict";function b(a){return function(){return W.apply(a,arguments)}}function c(a){return a===Object(a)}function d(a){return"[object StopIteration]"===ca(a)||a instanceof S}function e(a,b){if(P&&b.stack&&"object"==typeof a&&null!==a&&a.stack&&-1===a.stack.indexOf(da)){for(var c=[],d=b;d;d=d.source)d.stack&&c.unshift(d.stack);c.unshift(a.stack);var e=c.join("\n"+da+"\n");a.stack=f(e)}}function f(a){for(var b=a.split("\n"),c=[],d=0;d=T&&ha>=d}function j(){if(P)try{throw new Error}catch(a){var b=a.stack.split("\n"),c=b[0].indexOf("@")>0?b[1]:b[2],d=h(c);if(!d)return;return R=d[0],d[1]}}function k(a,b,c){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(b+" is deprecated, use "+c+" instead.",new Error("").stack),a.apply(a,arguments)}}function l(a){return s(a)?a:t(a)?C(a):B(a)}function m(){function a(a){b=a,f.source=a,Y(c,function(b,c){V(function(){a.promiseDispatch.apply(a,c)})},void 0),c=void 0,d=void 0}var b,c=[],d=[],e=_(m.prototype),f=_(p.prototype);if(f.promiseDispatch=function(a,e,f){var g=X(arguments);c?(c.push(g),"when"===e&&f[1]&&d.push(f[1])):V(function(){b.promiseDispatch.apply(b,g)})},f.valueOf=function(){if(c)return f;var a=r(b);return s(a)&&(b=a),a},f.inspect=function(){return b?b.inspect():{state:"pending"}},l.longStackSupport&&P)try{throw new Error}catch(g){f.stack=g.stack.substring(g.stack.indexOf("\n")+1)}return e.promise=f,e.resolve=function(c){b||a(l(c))},e.fulfill=function(c){b||a(B(c))},e.reject=function(c){b||a(A(c))},e.notify=function(a){b||Y(d,function(b,c){V(function(){c(a)})},void 0)},e}function n(a){if("function"!=typeof a)throw new TypeError("resolver must be a function.");var b=m();try{a(b.resolve,b.reject,b.notify)}catch(c){b.reject(c)}return b.promise}function o(a){return n(function(b,c){for(var d=0,e=a.length;e>d;d++)l(a[d]).then(b,c)})}function p(a,b,c){void 0===b&&(b=function(a){return A(new Error("Promise does not support operation: "+a))}),void 0===c&&(c=function(){return{state:"unknown"}});var d=_(p.prototype);if(d.promiseDispatch=function(c,e,f){var g;try{g=a[e]?a[e].apply(d,f):b.call(d,e,f)}catch(h){g=A(h)}c&&c(g)},d.inspect=c,c){var e=c();"rejected"===e.state&&(d.exception=e.reason),d.valueOf=function(){var a=c();return"pending"===a.state||"rejected"===a.state?d:a.value}}return d}function q(a,b,c,d){return l(a).then(b,c,d)}function r(a){if(s(a)){var b=a.inspect();if("fulfilled"===b.state)return b.value}return a}function s(a){return c(a)&&"function"==typeof a.promiseDispatch&&"function"==typeof a.inspect}function t(a){return c(a)&&"function"==typeof a.then}function u(a){return s(a)&&"pending"===a.inspect().state}function v(a){return!s(a)||"fulfilled"===a.inspect().state}function w(a){return s(a)&&"rejected"===a.inspect().state}function x(){ea.length=0,fa.length=0,ga||(ga=!0)}function y(a,b){ga&&(fa.push(a),ea.push(b&&"undefined"!=typeof b.stack?b.stack:"(no stack) "+b))}function z(a){if(ga){var b=Z(fa,a);-1!==b&&(fa.splice(b,1),ea.splice(b,1))}}function A(a){var b=p({when:function(b){return b&&z(this),b?b(a):this}},function(){return this},function(){return{state:"rejected",reason:a}});return y(b,a),b}function B(a){return p({when:function(){return a},get:function(b){return a[b]},set:function(b,c){a[b]=c},"delete":function(b){delete a[b]},post:function(b,c){return null===b||void 0===b?a.apply(void 0,c):a[b].apply(a,c)},apply:function(b,c){return a.apply(b,c)},keys:function(){return ba(a)}},void 0,function(){return{state:"fulfilled",value:a}})}function C(a){var b=m();return V(function(){try{a.then(b.resolve,b.reject,b.notify)}catch(c){b.reject(c)}}),b.promise}function D(a){return p({isDef:function(){}},function(b,c){return J(a,b,c)},function(){return l(a).inspect()})}function E(a,b,c){return l(a).spread(b,c)}function F(a){return function(){function b(a,b){var g;if("undefined"==typeof StopIteration){try{g=c[a](b)}catch(h){return A(h)}return g.done?g.value:q(g.value,e,f)}try{g=c[a](b)}catch(h){return d(h)?h.value:A(h)}return q(g,e,f)}var c=a.apply(this,arguments),e=b.bind(b,"next"),f=b.bind(b,"throw");return e()}}function G(a){l.done(l.async(a)())}function H(a){throw new S(a)}function I(a){return function(){return E([this,K(arguments)],function(b,c){return a.apply(b,c)})}}function J(a,b,c){return l(a).dispatch(b,c)}function K(a){return q(a,function(a){var b=0,c=m();return Y(a,function(d,e,f){var g;s(e)&&"fulfilled"===(g=e.inspect()).state?a[f]=g.value:(++b,q(e,function(d){a[f]=d,0===--b&&c.resolve(a)},c.reject,function(a){c.notify({index:f,value:a})}))},void 0),0===b&&c.resolve(a),c.promise})}function L(a){return q(a,function(a){return a=$(a,l),q(K($(a,function(a){return q(a,U,U)})),function(){return a})})}function M(a){return l(a).allSettled()}function N(a,b){return l(a).then(void 0,void 0,b)}function O(a,b){return l(a).nodeify(b)}var P=!1;try{throw new Error}catch(Q){P=!!Q.stack}var R,S,T=j(),U=function(){},V=function(){function b(){for(;c.next;){c=c.next;var a=c.task;c.task=void 0;var d=c.domain;d&&(c.domain=void 0,d.enter());try{a()}catch(f){if(g)throw d&&d.exit(),setTimeout(b,0),d&&d.enter(),f;setTimeout(function(){throw f},0)}d&&d.exit()}e=!1}var c={task:void 0,next:null},d=c,e=!1,f=void 0,g=!1;if(V=function(b){d=d.next={task:b,domain:g&&a.domain,next:null},e||(e=!0,f())},"undefined"!=typeof a&&a.nextTick)g=!0,f=function(){a.nextTick(b)};else if("function"==typeof setImmediate)f="undefined"!=typeof window?setImmediate.bind(window,b):function(){setImmediate(b)};else if("undefined"!=typeof MessageChannel){var h=new MessageChannel;h.port1.onmessage=function(){f=i,h.port1.onmessage=b,b()};var i=function(){h.port2.postMessage(0)};f=function(){setTimeout(b,0),i()}}else f=function(){setTimeout(b,0)};return V}(),W=Function.call,X=b(Array.prototype.slice),Y=b(Array.prototype.reduce||function(a,b){var c=0,d=this.length;if(1===arguments.length)for(;;){if(c in this){b=this[c++];break}if(++c>=d)throw new TypeError}for(;d>c;c++)c in this&&(b=a(b,this[c],c));return b}),Z=b(Array.prototype.indexOf||function(a){for(var b=0;b2?X(arguments,1):c)}},l.Promise=n,l.promise=n,n.race=o,n.all=K,n.reject=A,n.resolve=l,l.passByCopy=function(a){return a},p.prototype.passByCopy=function(){return this},l.join=function(a,b){return l(a).join(b)},p.prototype.join=function(a){return l([this,a]).spread(function(a,b){if(a===b)return a;throw new Error("Can't join: not the same: "+a+" "+b)})},l.race=o,p.prototype.race=function(){return this.then(l.race)},l.makePromise=p,p.prototype.toString=function(){return"[object Promise]"},p.prototype.then=function(a,b,c){function d(b){try{return"function"==typeof a?a(b):b}catch(c){return A(c)}}function f(a){if("function"==typeof b){e(a,h);try{return b(a)}catch(c){return A(c)}}return A(a)}function g(a){return"function"==typeof c?c(a):a}var h=this,i=m(),j=!1;return V(function(){h.promiseDispatch(function(a){j||(j=!0,i.resolve(d(a)))},"when",[function(a){j||(j=!0,i.resolve(f(a)))}])}),h.promiseDispatch(void 0,"when",[void 0,function(a){var b,c=!1;try{b=g(a)}catch(d){if(c=!0,!l.onerror)throw d; l.onerror(d)}c||i.notify(b)}]),i.promise},l.when=q,p.prototype.thenResolve=function(a){return this.then(function(){return a})},l.thenResolve=function(a,b){return l(a).thenResolve(b)},p.prototype.thenReject=function(a){return this.then(function(){throw a})},l.thenReject=function(a,b){return l(a).thenReject(b)},l.nearer=r,l.isPromise=s,l.isPromiseAlike=t,l.isPending=u,p.prototype.isPending=function(){return"pending"===this.inspect().state},l.isFulfilled=v,p.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},l.isRejected=w,p.prototype.isRejected=function(){return"rejected"===this.inspect().state};var ea=[],fa=[],ga=!0;l.resetUnhandledRejections=x,l.getUnhandledReasons=function(){return ea.slice()},l.stopUnhandledRejectionTracking=function(){x(),ga=!1},x(),l.reject=A,l.fulfill=B,l.master=D,l.spread=E,p.prototype.spread=function(a,b){return this.all().then(function(b){return a.apply(void 0,b)},b)},l.async=F,l.spawn=G,l["return"]=H,l.promised=I,l.dispatch=J,p.prototype.dispatch=function(a,b){var c=this,d=m();return V(function(){c.promiseDispatch(d.resolve,a,b)}),d.promise},l.get=function(a,b){return l(a).dispatch("get",[b])},p.prototype.get=function(a){return this.dispatch("get",[a])},l.set=function(a,b,c){return l(a).dispatch("set",[b,c])},p.prototype.set=function(a,b){return this.dispatch("set",[a,b])},l.del=l["delete"]=function(a,b){return l(a).dispatch("delete",[b])},p.prototype.del=p.prototype["delete"]=function(a){return this.dispatch("delete",[a])},l.mapply=l.post=function(a,b,c){return l(a).dispatch("post",[b,c])},p.prototype.mapply=p.prototype.post=function(a,b){return this.dispatch("post",[a,b])},l.send=l.mcall=l.invoke=function(a,b){return l(a).dispatch("post",[b,X(arguments,2)])},p.prototype.send=p.prototype.mcall=p.prototype.invoke=function(a){return this.dispatch("post",[a,X(arguments,1)])},l.fapply=function(a,b){return l(a).dispatch("apply",[void 0,b])},p.prototype.fapply=function(a){return this.dispatch("apply",[void 0,a])},l["try"]=l.fcall=function(a){return l(a).dispatch("apply",[void 0,X(arguments,1)])},p.prototype.fcall=function(){return this.dispatch("apply",[void 0,X(arguments)])},l.fbind=function(a){var b=l(a),c=X(arguments,1);return function(){return b.dispatch("apply",[this,c.concat(X(arguments))])}},p.prototype.fbind=function(){var a=this,b=X(arguments);return function(){return a.dispatch("apply",[this,b.concat(X(arguments))])}},l.keys=function(a){return l(a).dispatch("keys",[])},p.prototype.keys=function(){return this.dispatch("keys",[])},l.all=K,p.prototype.all=function(){return K(this)},l.allResolved=k(L,"allResolved","allSettled"),p.prototype.allResolved=function(){return L(this)},l.allSettled=M,p.prototype.allSettled=function(){return this.then(function(a){return K($(a,function(a){function b(){return a.inspect()}return a=l(a),a.then(b,b)}))})},l.fail=l["catch"]=function(a,b){return l(a).then(void 0,b)},p.prototype.fail=p.prototype["catch"]=function(a){return this.then(void 0,a)},l.progress=N,p.prototype.progress=function(a){return this.then(void 0,void 0,a)},l.fin=l["finally"]=function(a,b){return l(a)["finally"](b)},p.prototype.fin=p.prototype["finally"]=function(a){return a=l(a),this.then(function(b){return a.fcall().then(function(){return b})},function(b){return a.fcall().then(function(){throw b})})},l.done=function(a,b,c,d){return l(a).done(b,c,d)},p.prototype.done=function(b,c,d){var f=function(a){V(function(){if(e(a,g),!l.onerror)throw a;l.onerror(a)})},g=b||c||d?this.then(b,c,d):this;"object"==typeof a&&a&&a.domain&&(f=a.domain.bind(f)),g.then(void 0,f)},l.timeout=function(a,b,c){return l(a).timeout(b,c)},p.prototype.timeout=function(a,b){var c=m(),d=setTimeout(function(){c.reject(new Error(b||"Timed out after "+a+" ms"))},a);return this.then(function(a){clearTimeout(d),c.resolve(a)},function(a){clearTimeout(d),c.reject(a)},c.notify),c.promise},l.delay=function(a,b){return void 0===b&&(b=a,a=void 0),l(a).delay(b)},p.prototype.delay=function(a){return this.then(function(b){var c=m();return setTimeout(function(){c.resolve(b)},a),c.promise})},l.nfapply=function(a,b){return l(a).nfapply(b)},p.prototype.nfapply=function(a){var b=m(),c=X(a);return c.push(b.makeNodeResolver()),this.fapply(c).fail(b.reject),b.promise},l.nfcall=function(a){var b=X(arguments,1);return l(a).nfapply(b)},p.prototype.nfcall=function(){var a=X(arguments),b=m();return a.push(b.makeNodeResolver()),this.fapply(a).fail(b.reject),b.promise},l.nfbind=l.denodeify=function(a){var b=X(arguments,1);return function(){var c=b.concat(X(arguments)),d=m();return c.push(d.makeNodeResolver()),l(a).fapply(c).fail(d.reject),d.promise}},p.prototype.nfbind=p.prototype.denodeify=function(){var a=X(arguments);return a.unshift(this),l.denodeify.apply(void 0,a)},l.nbind=function(a,b){var c=X(arguments,2);return function(){function d(){return a.apply(b,arguments)}var e=c.concat(X(arguments)),f=m();return e.push(f.makeNodeResolver()),l(d).fapply(e).fail(f.reject),f.promise}},p.prototype.nbind=function(){var a=X(arguments,0);return a.unshift(this),l.nbind.apply(void 0,a)},l.nmapply=l.npost=function(a,b,c){return l(a).npost(b,c)},p.prototype.nmapply=p.prototype.npost=function(a,b){var c=X(b||[]),d=m();return c.push(d.makeNodeResolver()),this.dispatch("post",[a,c]).fail(d.reject),d.promise},l.nsend=l.nmcall=l.ninvoke=function(a,b){var c=X(arguments,2),d=m();return c.push(d.makeNodeResolver()),l(a).dispatch("post",[b,c]).fail(d.reject),d.promise},p.prototype.nsend=p.prototype.nmcall=p.prototype.ninvoke=function(a){var b=X(arguments,1),c=m();return b.push(c.makeNodeResolver()),this.dispatch("post",[a,b]).fail(c.reject),c.promise},l.nodeify=O,p.prototype.nodeify=function(a){return a?void this.then(function(b){V(function(){a(null,b)})},function(b){V(function(){a(b)})}):this};var ha=j();return l})}).call(this,a("JkpR2F"))},{JkpR2F:13}],43:[function(a,b,c){b.exports={CONTENT_PAUSE_REQUESTED:"ContentPauseRequested",CONTENT_RESUME_REQUESTED:"ContentResumeRequested",AD_ERROR:"AdError",ADPROVIDER_INITIALIZED:"AdProviderInitialized",ADPROVIDER_INIT_FAILED:"AdProviderInitializationFailed",AD_STARTED:"AdStarted",AD_COMPLETE:"AdComplete",AD_PAUSED:"AdPaused",AD_RESUMED:"AdResumed",AD_CLICKED:"AdClicked",AD_TIME_REMAINING:"AdTimeRemaining",ADPROVIDER_READY:"AdProviderReady"}},{}],44:[function(a,b,c){function d(a,b){g.EventEmitter.call(this),this.videoElement=a,this.adContainer=b}var e=a("../../lib/debug"),f=a("util"),g=a("events"),h=a("./AdEvents"),i=(a("../../lib/Dom"),a("../Stats/ComscoreProvider")),j=a("../Stats/NielsenProvider");f.inherits(d,g.EventEmitter),d.prototype.initializeProvider=function(){},d.prototype.destroy=function(){},d.prototype.requestAds=function(){this.emit(h.ADPROVIDER_INITIALIZED)},d.prototype.hideAdContainer=function(){this.adContainer.style.left=-1*this.adContainer.clientWidth+"px"},d.prototype.showAdContainer=function(){this.adContainer.style.left="0px"},d.prototype.updateStatsProviders=function(a){this.statProviders=[new i({channelList:a.categories.join(","),showTitle:a.display_name}),new j({channelList:a.categories.join(","),episodeTitle:a.adminTitle?a.adminTitle:a.title,mediaLength:a.duration})]},d.prototype.statProviderAction=function(a){this.statProviders.forEach(a)},d.prototype.start=function(){this.hideAdContainer(),this.emit(h.CONTENT_RESUME_REQUESTED)},d.prototype.getCuePoints=function(){e("Unimplemented method")},d.prototype.resume=function(){this.hideAdContainer(),this.emit(h.CONTENT_RESUME_REQUESTED)},b.exports=d},{"../../lib/Dom":78,"../../lib/debug":84,"../Stats/ComscoreProvider":60,"../Stats/NielsenProvider":62,"./AdEvents":43,events:7,util:36}],45:[function(a,b,c){function d(a){var b={English:"en",Spanish:"es",French:"fr",German:"de",Chiense:"zh"};return a?2===a.length?a:b[a]?b[a]:null:null}function e(a){var b,c=j.getConfigParam("cust_params"),d=c?h.parse("?"+c,!0).query:null,e={},f=function(a){return!m.some(function(b){return b===a})};for(b in d)f(b)&&(e[b]=d[b]);return e.content_id=a.postsId,e.content_name=a.title,h.format({query:e}).replace(/^\?/,"")}function f(){var a;return j.isOnSite()?(a=j.getAPIAccessDomainName(),n+"/"+a.replace(".","_")):j.isSocial()?p:o}{var g=a("../../lib/debug"),h=a("url"),i=null,j=a("../Config/Runtime");a("../../lib/Dom"),a("util")}try{i=h.parse(document.location.href,!0)}catch(k){}var l={IU:"iu",SIZE:"sz",LANGUAGE:"hl",CMS_ID:"cmsid",CUSTOM_PARAMETERS:"cust_params",POSTS_ID:"vid"},m=["no_ads","noAd_pos","no_preroll","no_midroll","no_postroll","rtsna","zone_id"],n="maker_destination",o="maker_embed",p="maker_social_player",q="22097351",r=q+"/maker_direct",s="640x480",t=871,u="http://pubads.g.doubleclick.net/gampad/ads?sz=640x480&ciu_szs&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&correlator=[timestamp]&cmsid=511&ad_rule=1";b.exports={DEFAULT_ONSITE_IU:n,DEFAULT_OFFSITE_IU:o,DEFAULT_SOCIAL_IU:p,DEFAULT_AD_UNIT_HIERARCHY:r,DEFAULT_SIZE:s,DEFAULT_CMS_ID:t,Parameters:l,DisallowedCustParams:m,hasUrl:function(){return!!h.format(i)},setEmbedURL:function(a){var b=h.parse(a,!0);b.query[l.SIZE]&&!this.validateSize(b.query[l.SIZE])&&(b.query[l.SIZE]&&delete b.query[l.SIZE],g("invalid size used in URL: expected "+b.query[l.SIZE]+" to be in format XXXxYYY.")),i=b},getEmbedURL:function(){return h.format(i)},getAdTagURL:function(a){var b=h.parse(u,!0),c="",d=e(a);return b.query[l.SIZE]=this.getSize(),b.query[l.LANGUAGE]=this.getLanguage(a),b.query[l.CMS_ID]=this.getCMSID(),d&&(b.query[l.CUSTOM_PARAMETERS]=d),b.query[l.POSTS_ID]=String(a.postsId),b.search=null,c=h.format(b),c+="&"+[l.IU,this.getIU()].join("=")},getIU:function(){var a=["",r],b=(j.getConfigParam(l.IU)||f()).replace(/^\//g,"").split("/");return a.concat(b.map(function(a){return encodeURIComponent(a)})).join("/")},getSize:function(){return i.query[l.SIZE]||s},getLanguage:function(a){var b=d(i.query[l.LANGUAGE]),c=a&&a.languageCode?d(a.languageCode):void 0;return b||c||"en"},getCMSID:function(){return j.getConfigParam(l.CMS_ID)||t},validateSize:function(a){var b=a.split("x");return a?2!==b.length?!1:/^(\-|\+)?([0-9]+|Infinity)$/.test(b[0])&&/^(\-|\+)?([0-9]+|Infinity)$/.test(b[1])?!0:!1:!1}}},{"../../lib/Dom":78,"../../lib/debug":84,"../Config/Runtime":48,url:34,util:36}],46:[function(a,b,c){function d(){e.apply(this,arguments),this.zoneId=g.getZoneID(),this.domain="auditude.com",this.bound_onTimeUpdate=this.onTimeUpdate.bind(this),this.bound_onPlaying=function(){this.adPlayer&&(h("ad video element is playing"),clearTimeout(this.adFailTimeout),this.onAdStarted())}.bind(this),this.bound_onError=function(){clearTimeout(this.adFailTimeout),this.onAdError()}.bind(this)}var e=a("./AdProvider"),f=a("./AdEvents"),g=a("../Config/Runtime"),h=a("../../lib/debug"),i=a("util");i.inherits(d,e),d.prototype.initializeProvider=function(){e.prototype.initializeProvider.call(this),this.adPlayer=new window.aud.html5.AdPlayer(this.videoElement,this.adContainer,this.domain,this.zoneId,{auditudeHandlesChapterBreaks:!0,style:{height:this.adContainer.offsetHeight,width:this.adContainer.offsetWidth},handlers:{timeupdate:this.bound_onTimeUpdate,error:this.bound_onError,playing:this.bound_onPlaying}}),this.adPlayer.subscribe(aud.events.init_complete,this.onAdSdkInitialized.bind(this)),this.adPlayer.subscribe(aud.events.init_failed,this.onAdSdkInitializationFailure.bind(this)),this.adPlayer.subscribe(aud.events.pause_playback,this.onContentPauseRequested.bind(this)),this.adPlayer.subscribe(aud.events.resume_playback,this.onContentResumeRequested.bind(this)),this.adPlayer.subscribe(aud.events.linear_ad_end,this.onAdComplete.bind(this))},d.prototype.destroy=function(){this.videoElement.removeEventListener(this.bound_onTimeUpdate),this.videoElement.removeEventListener(this.bound_onPlay),this.videoElement.removeEventListener(this.bound_onPlaying),this.videoElement.removeEventListener(this.bound_onError)},d.prototype.updateStatsProviders=function(a){e.prototype.updateStatsProviders.call(this,a),this.initializeProvider(),this.requestAds(a)},d.prototype.onAdSdkInitialized=function(){this._initializationFailed=!1,this.emit(f.ADPROVIDER_INITIALIZED)},d.prototype.onAdSdkInitializationFailure=function(){this._initializationFailed=!0,this.emit(f.ADPROVIDER_INIT_FAILED,"SDK failed to initialize.")},d.prototype.onTimeUpdate=function(a,b,c){isNaN(c.duration)||this.emit(f.AD_TIME_REMAINING,c.duration-c.currentTime)},d.prototype.onContentPauseRequested=function(a,b){this.adFailTimeout=setTimeout(function(){clearInterval(this.interval),this.onAdError()}.bind(this),12e3),this.showAdContainer(),this.emit(f.CONTENT_PAUSE_REQUESTED)},d.prototype.attachSDKVideoElementEvents=function(a){},d.prototype.onContentResumeRequested=function(){clearTimeout(this.breakEndTimeout),clearTimeout(this.adFailTimeout),this.hideAdContainer(),this.emit(f.CONTENT_RESUME_REQUESTED)},d.prototype.onAdStarted=function(a,b){this.statProviderAction(function(a){a.advertisingStartPing()}),this.emit(f.AD_STARTED)},d.prototype.onAdComplete=function(){this.emit(f.AD_COMPLETE)},d.prototype.requestAds=function(a){this.adPlayer.init("blip_"+a.postsId,null)},d.prototype.resume=function(){this.adPlayer&&this.adPlayer._audVideoPlayer&&this.adPlayer._audVideoPlayer.trigger("play")},d.prototype.pause=function(){this.adPlayer.publish(aud.notifications.pauseAd)},d.prototype.onAdError=function(){h("auditude failed dramatically"),this.emit(f.AD_ERROR,"Ad failed to load."),this.adPlayer.publish(aud.notifications.break_end),this.adPlayer=null,this.breakEndTimeout=setTimeout(function(){this.onContentResumeRequested()}.bind(this),500)},d.prototype.start=function(){this._initializationFailed?this.onContentResumeRequested():this.adPlayer.publish(aud.notifications.break_begin)},b.exports=d},{"../../lib/debug":84,"../Config/Runtime":48,"./AdEvents":43,"./AdProvider":44,util:36}],47:[function(a,b,c){function d(a){h.apply(this,arguments),this.statProviders=[],this.bound_onWindowResize=this.onWindowResize.bind(this),this.bound_onTimeUpdate=this.onTimeUpdate.bind(this),k.getWindow().addEventListener("resize",this.bound_onWindowResize),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].forEach(function(a){k.getDocument().addEventListener(a,this.bound_onWindowResize)}.bind(this))}function e(a){try{podIndex=a.getAd().getAdPodInfo().getPodIndex()}catch(b){podIndex=null}return podIndex>0?adType="midroll":podIndex<0?adType="postroll":0===podIndex?adType="preroll":adType="linear",adType}a("../../contrib/polyfills");var f=a("../../lib/debug"),g=a("util"),h=a("./AdProvider"),i=a("./AdEvents"),j=a("./AdTag"),k=(a("url"),a("../../lib/Dom")),l=a("../Config/Runtime");g.inherits(d,h),d.prototype.onWindowResize=function(){this.adsManager&&this.container&&this.adsManager.resize(k.getFrameWidth(),k.getFrameHeight()-l.getControlSize(),k.isFullscreen()?window.google.ima.ViewMode.FULL_SCREEN:window.google.ima.ViewMode.NORMAL)},d.prototype.startTimeUpdateInterval=function(){this.timeUpdateInterval=k.getWindow().setInterval(this.bound_onTimeUpdate,100)},d.prototype.clearTimeUpdateInterval=function(){k.getWindow().clearInterval(this.timeUpdateInterval)},d.prototype.initializeProvider=function(){return h.prototype.initializeProvider.call(this),window.google?(this.destroy(),this.adDisplayContainer=this.getAdDisplayContainer(),this.adsLoader=new window.google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdSdkInitialized.bind(this),!1),void this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError.bind(this),!1)):void this.handleAdError("Unable to load the IMA SDK")},d.prototype.destroy=function(){this.adDisplayContainer&&(this.adDisplayContainer.destroy(),this.adDisplayContainer=null),this.adsLoader&&(this.adsLoader.destroy(),this.adsLoader=null),this.adsManager&&(this.adsManager.destroy(),this.adsManager=null)},d.prototype.getAdDisplayContainer=function(){return f("initializing regular IMA provider"),new window.google.ima.AdDisplayContainer(this.adContainer,this.videoElement)},d.prototype.requestAds=function(a){var b;b=j.getAdTagURL(a),f("using ad tag: "+b),this.adDisplayContainer.initialize(),this.adsLoader.requestAds({adTagUrl:b,linearAdSlotWidth:this.videoElement.clientWidth,linearAdSlotHeight:this.videoElement.clientHeight,nonLinearAdSlotWidth:this.videoElement.clientWidth,nonLinearAdSlotHeight:this.videoElement.clientHeight})},d.prototype.onWindowResize=function(){this.adsManager&&this.container&&this.adsManager.resize(this.container.offsetWidth,this.container.offsetHeight-l.getControlSize(),k.isFullscreen()?google.ima.ViewMode.FULL_SCREEN:google.ima.ViewMode.NORMAL)},d.prototype.onAdSdkInitialized=function(a){function b(a){return function(){f(a)}}var c=new google.ima.AdsRenderingSettings;c.restoreCustomPlaybackStateOnAdBreakComplete=!0,this.adsManager=a.getAdsManager(this.videoElement,c);for(var d in window.google.ima.AdEvent.Type)this.adsManager.addEventListener(google.ima.AdEvent.Type[d],b(d));this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,this.onAdStarted.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,this.onAdComplete.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,this.onAdPaused.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED,this.onAdResumed.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.CLICKED,this.onAdClicked.bind(this)),this.emit(i.ADPROVIDER_INITIALIZED)},d.prototype.onTimeUpdate=function(){this.emit(i.AD_TIME_REMAINING,this.adsManager.getRemainingTime())},d.prototype.start=function(){try{this.adsManager.init(this.videoElement.clientWidth,this.videoElement.clientHeight,window.google.ima.ViewMode.NORMAL),this.adsManager.start()}catch(a){this.emit(i.AD_ERROR)}},d.prototype.resume=function(){try{this.adsManager.resume(),this.startTimeUpdateInterval()}catch(a){f(a)}},d.prototype.pause=function(){try{this.adsManager.pause(),this.clearTimeUpdateInterval()}catch(a){f(a)}},d.prototype.onAdError=function(a){this.handleAdError(a.getError())},d.prototype.handleAdError=function(a){this.destroy(),this.emit(i.AD_ERROR,a),this.onContentResumeRequested()},d.prototype.onContentPauseRequested=function(){f("content pause requested"),this.showAdContainer(),this.emit(i.CONTENT_PAUSE_REQUESTED)},d.prototype.onContentResumeRequested=function(){f("content resume requested"),this.hideAdContainer(),this.emit(i.CONTENT_RESUME_REQUESTED)},d.prototype.onAdStarted=function(a){var b=e(a);this.statProviderAction(function(a){a.advertisingStartPing()}),this.startTimeUpdateInterval(),this.emit(i.AD_STARTED,{type:b})},d.prototype.onAdComplete=function(){this.emit(i.AD_COMPLETE),this.clearTimeUpdateInterval()},d.prototype.onAdPaused=function(){this.emit(i.AD_PAUSED)},d.prototype.onAdResumed=function(){this.emit(i.AD_RESUMED)},d.prototype.onAdClicked=function(){this.emit(i.AD_CLICKED)},d.prototype.getCuePoints=function(){return this.adsManager?this.adsManager.getCuePoints():[]},d.prototype.setPostsID=function(a){this.postsID=a},b.exports=d},{"../../contrib/polyfills":73,"../../lib/Dom":78,"../../lib/debug":84,"../Config/Runtime":48,"./AdEvents":43,"./AdProvider":44,"./AdTag":45,url:34,util:36}],48:[function(a,b,c){function d(a,b){return a&&a.indexOf&&a.indexOf(b.domain)>=0}function e(a){return h.hosts.filter(function(b){return d(a,b)})}function f(a){return"true"==a?!0:"false"==a?!1:a}var g,h=a("../../../config"),i=a("../../lib/Dom"),j=a("querystring"),k={XBOX_ONE:"Xbox One",IE:"Microsoft|MSIE|Trident",IPOD:"iPod",IPAD:"iPad",IPHONE:"iPhone",ANDROID:"Android",FIREFOX_OS:"Mobile.*Firefox|Firefox.*Mobile",PHANTOMJS:"Phantom",SAFARI:"Safari",UNKNOWN:"^$"},l={DEV:"dev",APP:"application",STAGING:"staging",CI:"ci"};b.exports={Browsers:k,isDev:function(){return h.environment==l.DEV},isStaging:function(){return h.environment==l.STAGING},isContinuousIntegration:function(){return h.environment==l.CI},isSecure:function(){return"https:"===i.getDocument().location.protocol},isMobile:function(){var a=this.browser(),b=[k.IPOD,k.IPAD,k.IPHONE,k.ANDROID,k.FIREFOX_OS,k.XBOX_ONE];return b.some(function(b){return b==a})},isIphone:function(){return this.browser()==k.IPHONE},allowAPIAccess:function(a){var b=a||i.getReferrerDomain();return b?h.hosts.some(function(a){return d(b,a)&&a.apiAccess}):!1},allowNoAds:function(a){var b=a||i.getReferrerDomain();return b?h.hosts.some(function(a){return d(b,a)&&a.allowNoAds}):!1},getAPIAccessDomainName:function(a){var b=a||i.getReferrerDomain(),c=h.hosts.filter(function(a){return d(b,a)&&a.apiAccess});return c.length?c[0].domain:void 0},getZoneID:function(){var a=e(i.getReferrerDomain()),b=a&&a.length>0?a[0]:null,c=i.getSearchParams().zone_id||this.getConfigParam("zoneId");return c?c:(b&&b.zoneID||(b=e("UNKNOWN")[0]),this.getQueryParam("rtsna")&&this.allowNoAds()&&b.zoneID.noads?b.zoneID.noads:this.isMobile()?b.zoneID.mobile:b.zoneID.desktop)},browser:function(){var a=i.getUserAgent();for(var b in k)if(new RegExp(k[b],"g").test(a))return k[b];return k.UNKNOWN},isIDevice:function(){var a=this.browser();return a==k.IPHONE||a==k.IPOD||a==k.IPAD},isLegacyAndroid:function(){return!!i.getUserAgent().match(/Android [0-3]/g)},isTouch:function(){var a=[k.IPOD,k.IPAD,k.IPHONE,k.ANDROID,k.FIREFOX_OS],b=this.browser();return a.some(function(a){return a==b})},setConfigHash:function(a){g=a},getConfigHash:function(){return g},getConfigParam:function(a){var b=this.getConfigHash(),c=b?b[a]:void 0;return f(c)},getBrand:function(){var a=this.getConfigParam("embedParams");return a&&a.brandname&&a.brandlink?{brandname:decodeURIComponent(a.brandname.replace(/\+/g,"%20")),brandlink:decodeURIComponent(a.brandlink)}:void 0},getQueryParameters:function(){return j.parse(document.location.search.replace(/^\?/,""))},getQueryParam:function(a){return f(this.getQueryParameters()[a])},isSocial:function(){return this.getConfigParam("social")||/twitter\.com/g.test(i.getReferrer())},isOnSite:function(){return this.allowAPIAccess(i.getReferrer())},getImageDomain:function(){return this.isSecure()?h.domains.images.secure:h.domains.images["default"]},getControlSize:function(){var a,b=h.controlSize;return a=b?this.isTouch()?b.touch:b.mouse:30}}},{"../../../config":1,"../../lib/Dom":78,querystring:17}],49:[function(a,b,c){var d=a("../../lib/Object"),e=a("../../lib/Utils"),f=a("../../lib/Dom"),g=a("../../lib/Ajax"),h=a("../Stats/Tracking");a("../../contrib/mdn-array");b.exports=d.extend({init:function(a){this.domRoot=f.$(".StandardEpisodeEndcap"),this.style=a.style||"standard_endcap",this.onSite=a.onSite||!1,this.noTimerTemplates=["social","replay"],this.referrer=e.getReferrer(),this.templateLookUp={social:{hosts:["twitter.com"],timer:!1},replay:{hosts:["polaris.stage.makerstudios.com","polarisgo.com"],timer:!1},standard:{hosts:["blip.tv","blip.com","pokkari.net"],timer:!0}},this.template=this._getTemplateNameByReferrer(),this.initEvents()},nextEpisodeCounterLimit:10,initEvents:function(){this.contentLoaded=new e.LocalEvent("EndcapContentLoaded"),this.addEventListener("player.episode.ended",this.delegate(this.load))},initSubEvents:function(){var a=this,b=this.domRoot.$$(".EndcapNextEpisodeJSHook"),c=this.domRoot.$$(".EndcapEpisode"),d=function(a){var b=f.$("#tmp-"+a.getAttribute("data-post-id"));b&&b.classList.toggle("hover")},e=f.$(".EndcapShowJSHook");c.forEach(function(a){a.id="tmp-"+a.getAttribute("data-id")}),this._toggleTimerHandler=function(){a.toggleTimerAndAttachGoToNextEpisodeEvent()},this.toggleTimerEl&&this.toggleTimerEl.addEventListener("click",this._toggleTimerHandler),this.replayEpisodeEls.forEach(function(b){b.addEventListener("click",a.delegate(a.replayEpisode)),b.addEventListener("mouseenter",function(a){d(this)}),b.addEventListener("mouseleave",function(a){d(this)})}),b.forEach(function(b){b.addEventListener("click",a.delegate(this.startNextEpisode)),b.addEventListener("mouseenter",function(a){d(this)}),b.addEventListener("mouseleave",function(a){d(this)})}),e&&e.addEventListener("click",this.delegate(this.goToShowPage))},setEndcap:function(a,b){this.template=a,this.useIFrame=b},load:function(){this.useIFrame?this._loadIFrameEndcap(this.template):this._loadEndcap()},handleData:function(a){this.currentNextEpisodeSecondsLeft=this.nextEpisodeCounterLimit,this.attachDom(a),this.contentLoaded.fire(),this.show(),this._isTimerActive()&&this.startNextEpisodeCountdown()},attachDom:function(a){this.domRoot.innerHTML=a,this.addMakerClass(),this.cacheElements(),this.initSubEvents()},addMakerClass:function(){var a=this.domRoot.$(".Verticals");a&&this.domRoot.classList.add("Maker")},cacheElements:function(){this.countDownEl=this.domRoot.$(".EndcapCountdown"),this.toggleTimerEl=this.domRoot.$(".EndcapNextEpisodeCounter"),this.replayEpisodeEls=this.domRoot.$$(".EndcapReplayCurrent")},replayEpisode:function(){this.clearNextEpisodeTimer(),this.hide(),this.fireEvent("player.request.replay")},show:function(){this.domRoot.style.display="block",this.fireEvent("endcap.show",{height:this.domRoot.offsetHeight})},hide:function(){this.domRoot.style.display="none",this.clearNextEpisodeTimer(),this.fireEvent("endcap.hide")},getNextEpisodeId:function(){return this.domRoot.$(".EndcapNextEpisode").getAttribute("data-id")},getNextEpisodeUrl:function(){return this.domRoot.$(".EndcapNextEpisode").getAttribute("data-url")},updateCountDown:function(a){this.countDownEl.innerHTML=a},startNextEpisodeCountdown:function(){var a=this,b=this.currentNextEpisodeSecondsLeft||this.nextEpisodeCounterLimit;this.updateCountDown(b),this.nextEpisodeTimer=setInterval(function(){b--,a.currentNextEpisodeSecondsLeft=b,b>0?a.updateCountDown(b):a.startNextEpisode()},1e3)},toggleTimerAndAttachGoToNextEpisodeEvent:function(){var a=this,b=function(){a.toggleTimerEl.removeEventListener("click",b),a.startNextEpisode()};this.toggleTimer(),this.toggleTimerEl.removeEventListener("click",this._toggleTimerHandler),this.toggleTimerEl.addEventListener("click",b)},toggleTimer:function(){"paused"===this.toggleTimerEl.getAttribute("toggle")?this.resumeTimer():this.pauseTimer()},pauseTimer:function(){this.toggleTimerControlVisivility(),this.clearNextEpisodeTimer()},resumeTimer:function(){this.toggleTimerControlVisivility(),this.currentNextEpisodeSecondsLeft=this.currentNextEpisodeSecondsLeft||this.nextEpisodeCounterLimit,this.startNextEpisodeCountdown()},toggleTimerControlVisivility:function(){this.toggleTimerEl.classList.toggle("EndcapTimerPaused"),this.toggleTimerEl.setAttribute("toggle",this.toggleTimerEl.classList.contains("EndcapTimerPaused")?"paused":"")},clearNextEpisodeTimer:function(){this.nextEpisodeTimer&&clearInterval(this.nextEpisodeTimer)},goToUrl:function(a,b){h.trackPageView({url:b||a}),this.fireEvent("endcap.changeLocation",{url:a})},goToShowPage:function(a){var b;a&&this.onSite&&(b=a.currentTarget.getAttribute("data-show-id"),a.preventDefault(),this.goToUrl(a.currentTarget.href,"/play/show/"+b))},startNextEpisode:function(a){var b=this.getNextEpisodeUrl(),c=this.getNextEpisodeId();this.clearNextEpisodeTimer(),a&&this.onSite&&(a.preventDefault(),b="/"==a.currentTarget.pathname.charAt(0)?a.currentTarget.pathname:"/"+a.currentTarget.pathname,c=a.currentTarget.getAttribute("data-post-id")),this.goToUrl(b,"/play/episode/"+c)},_getTemplateNameByReferrer:function(){{var a,b;this.referrer}for(var c in this.templateLookUp)for(b=this.templateLookUp[c].hosts,a=0;a=0)return c;return"replay"},_isTimerActive:function(){return this.templateLookUp[this.template].timer},_loadIFrameEndcap:function(a){var b=document.createElement("iframe");for(b.className="external-endcap",b.height="100%",b.width="100%",b.src=a,b.scrolling=0,b.setAttribute("frameborder",0);this.domRoot.hasChildNodes();)this.domRoot.removeChild(this.domRoot.lastChild);this.domRoot.appendChild(b),this.contentLoaded.fire(),this.show()},_loadEndcap:function(){var a=this.domRoot.getAttribute("data-src"),b=this.domRoot.getAttribute("data-user-id"),c=this.domRoot.getAttribute("data-post-id"),d=this.domRoot.getAttribute("data-stylesheet");a=a.replace("{1}",b),a=a.replace("{2}",c),"standard_endcap"!=this.style&&(a+="&style="+this.style),""!==this.template&&"standard"!=this.template&&(a+="&template="+this.template),this._loadStylesheet(d),g.get({url:a}).then(this.delegate(this.handleData))},_loadStylesheet:function(a){var b;this._stylesheetLoaded||(b=f.getDocument().createElement("link"),b.setAttribute("type","text/css"),b.setAttribute("rel","stylesheet"),b.setAttribute("href",a),f.getDocument().$("head").appendChild(b),this._stylesheetLoaded=!0)},updateDomDataSet:function(a){var b;for(b in a)this.domRoot.setAttribute(b,a[b])}})},{"../../contrib/mdn-array":71,"../../lib/Ajax":76,"../../lib/Dom":78,"../../lib/Object":80,"../../lib/Utils":82,"../Stats/Tracking":65}],50:[function(a,b,c){var d,e=a("../lib/Object"),f=(a("../lib/Dom"),a("../lib/debug")),g=a("./Config/Runtime"),h=a("./data/rating"),i=a("./Model/PlayerEvents"),j=a("./Model/PlayerProperties"),k=a("./Model/EndcapEvents"),l=a("util"),m=a("json3"),n=e.extend({init:function(){var a=this;this.addEventListener("player.embedded",this.delegate(this.initializeInterface)),window.addEventListener("message",function(b){a.receiveMessage(b)})},initializeInterface:function(a){this.isHTML5=a.isHTML5,this.controls=a.controls,this.addEventListener(i.PLAYBACK_START,this.delegate(this.episodePlaybackStart)),this.addEventListener(i.PLAYING,this.delegate(this.episodePlaying)),this.addEventListener(i.PAUSED,this.delegate(this.episodePaused)),this.addEventListener(i.TIME_UPDATE,this.delegate(this.episodeTimeChanged)),this.addEventListener(i.PLAYBACK_END,this.delegate(this.episodeEnded)),this.addEventListener(i.ERROR,this.delegate(this.playerError)),this.addEventListener(i.READY,this.delegate(this.playerReady)),this.addEventListener(i.VOLUME_CHANGE,this.delegate(this.playerVolumeChange)),this.addEventListener(i.DURATION_CHANGE,this.delegate(this.playerDurationChange)),this.addEventListener(i.ADS_READY,this.delegate(this.playerAdsReady)),this.addEventListener(i.AD_STARTED,this.delegate(this.playerAdStarted)),this.addEventListener(i.AD_ERROR,this.delegate(this.playerAdError)),this.addEventListener(i.AD_ENDED,this.delegate(this.playerAdEnded)),this.addEventListener(i.AD_TIME_UPDATE,this.delegate(this.playerAdTimeUpdate)),this.addEventListener(k.CHANGE_LOCATION,this.delegate(this.endcapChangeLocation)),h.addListener("videoRated",function(a){this.emit(i.VIDEO_RATED,{rating:a})}.bind(this))},messageHandlers:{playEpisode:function(a){var b=parseInt(a.episodeId,10);return isNaN(b)?void this.emit("player.error",{message:"Cannot play episodeId: `"+a.episodeId+"`; episodeId must correspond to a postsID."}):(f("attempting to play episode "+a.episodeId),(this.controls.isPlaying||this.controls.playingAd)&&this.controls.pauseForEpisodeChange(),void this.controls.playEpisode(b))},setEndcap:function(a){f("setting endcap "+(a.src?"iframe source":"template")+" to: "+(a.src||a.template)),window.StandardPlayer.setExternalEndcapSource(a.src||a.template,!!a.src)},setRatingDetails:function(a){h.setRatingDetails(a)},setUserDetails:function(a){h.setUserDetails(a)}},playerReady:function(){this.emit("player.ready")},playerVolumeChange:function(a){this.emit(i.VOLUME_CHANGE,a)},playerDurationChange:function(a){this.emit(i.DURATION_CHANGE,a)},playerAdsReady:function(){this.emit(i.ADS_READY)},playerAdStarted:function(a){this.emit("player.adStart",{adType:a.type})},playerAdEnded:function(){this.emit("player.adEnd")},playerAdError:function(a){this.emit("player.adError",{data:a})},playerAdTimeUpdate:function(a){this.emit(i.AD_TIME_UPDATE,a)},episodePlaybackStart:function(){ this.emit("player.playbackStart")},episodePlaying:function(){this.emit("episode.playing")},episodePaused:function(){this.emit("episode.paused")},episodeTimeChanged:function(a){this.emit("episode.progress",{currentTime:a})},episodeVolumeChange:function(a){this.emit("episode.volumechange",{volume:a})},episodeEnded:function(){this.emit("episode.ended")},playerError:function(){this.emit("player.error")},endcapChangeLocation:function(a){this.emit("endcap.changeLocation",{url:a.url})},emit:function(a,b){if(!a||"string"!=typeof a)throw new TypeError("argument eventType is missing or not a string");this.postMessage(a,b,window)},postMessage:function(a,b,c){if(c.parent!==c)try{c.parent.postMessage(m.stringify({event:a,data:b}),"*")}catch(d){c.debug("no parent frame or browser does not support postMessage for emitting:"),c.debug(m.stringify({event:a,data:b}))}},send:function(a,b){l.isFunction(this.messageHandlers[a])?this.messageHandlers[a].call(this,b):l.isFunction(this.controls[a])?this.controls[a](b):f("unsupported event: "+a)},getProperty:function(a){switch(a){case j.VOLUME:return this.controls.getVolume();case j.CURRENT_TIME:return this.controls.getCurrentTime();case j.DURATION:return this.controls.getDuration();case j.DURATION_BUFFERED:return this.controls.getDurationBuffered();case j.IS_PLAYING:return this.controls.getIsPlaying();case j.IS_VIDEO_AN_AD:return this.controls.isVideoAnAd();case j.ASPECT_RATIO:return this.controls.getAspectRatio();case j.CUE_POINTS:return this.controls.getCuePoints();default:throw new TypeError("invalid property: "+a)}},receiveMessage:function(a){var b;if("process-tick"!==a.data&&g.allowAPIAccess(a.origin)){f("-----------------"),f("message received by player:"),f(a.data),f("-----------------");try{b=m.parse(a.data),this.send(b.event,b.data)}catch(c){f(c)}}}});b.exports={get:function(){return d||(d=new n),d},_getConstructor:function(){return n}}},{"../lib/Dom":78,"../lib/Object":80,"../lib/debug":84,"./Config/Runtime":48,"./Model/EndcapEvents":51,"./Model/PlayerEvents":52,"./Model/PlayerProperties":54,"./data/rating":67,json3:37,util:36}],51:[function(a,b,c){b.exports={CHANGE_LOCATION:"endcap.changeLocation"}},{}],52:[function(a,b,c){b.exports={PLAYBACK_START:"player.episode.playback_start",PLAYING:"player.episode.playing",PAUSED:"player.episode.paused",TIME_UPDATE:"player.episode.timeChanged",DURATION_CHANGE:"player.episode.durationChanged",PLAYBACK_END:"player.episode.ended",ERROR:"player.error",READY:"player.embedded",VOLUME_CHANGE:"player.volumeChanged",BUFFER_PROGRESS:"player.bufferProgress",EPISODE_LOADING:"player.episode.loading",NEXT_EPISODE_READY:"player.newEpisodeReady",ADS_READY:"player.adManager.ready",AD_STARTED:"player.ad.started",AD_ERROR:"player.ad.error",AD_ENDED:"player.ad.ended",AD_TIME_UPDATE:"player.ad.timeupdate",VIDEO_RATED:"player.videoRated"}},{}],53:[function(a,b,c){b.exports={VOLUME_CHANGE:"volume",PLAY:"play",PAUSE:"pause",FULLSCREEN:"fullscreen",SEEK:"seek"}},{}],54:[function(a,b,c){b.exports={VOLUME:"volume",CURRENT_TIME:"currentTime",DURATION:"duration",DURATION_BUFFERED:"durationBuffered",IS_PLAYING:"isPlaying",IS_VIDEO_AN_AD:"isVideoAnAd",ASPECT_RATIO:"aspectRatio",CUE_POINTS:"cuePoints"}},{}],55:[function(a,b,c){var d=a("../lib/Object");a("../contrib/mdn-array");b.exports=d.extend({init:function(a){this.domRoot=document.createElement("div"),this.domRoot.className="Notification",this.addEventListener("player.error",this.delegate(this.handlePlayerError))},setMessage:function(a){var b=document.createElement("p");this.domRoot.$$("p").forEach(function(a){a.parentNode.removeChild(a)}),b.className="Message",b.innerHTML=a,this.domRoot.appendChild(b)},showMessage:function(){this.domRoot.parentNode||document.body.appendChild(this.domRoot),this.domRoot.className="Notification Visible"},hideMessage:function(){this.domRoot.className="Notification"},handlePlayerError:function(a){a.fromHtml5&&(this.setMessage(a.message),this.showMessage())}})},{"../contrib/mdn-array":71,"../lib/Object":80}],56:[function(a,b,c){(function(c){function d(a){var b,c=[];for(b in a)void 0!==a[b]&&c.push(b+"="+unescape(a[b]));return c.length>0?c.join("&"):null}function e(){var a=["cmsid","cust_params","iu"],b=o.getAPIAccessDomainName(),c={};return a.forEach(function(a){var b=o.getConfigParam(a);b&&(c[a]=encodeURIComponent(b))}),b&&(c.destinationtag=b.toLowerCase().replace(/\./g,"_")),c}function f(){var a=o.getConfigParam("site_url")+"/rss/flash/"+o.getConfigParam("id"),b=o.getConfigParam("swf_location")+"?file="+a+"&"+this.getEmbedQueryString();return b}function g(a){var b={wmode:"transparent",quality:"best",name:this.objectName,allowFullScreen:"true",allowScriptAccess:"always"},c={id:this.objectName,name:this.objectName},d={stratos_url:o.getConfigParam("swf_location"),stratos_params:this.getEmbedQueryString()},e=l.getDocument().createElement("div");e.id=a.id+"-temp",a.appendChild(e),n.embedSWF(f.call(this),e.id,o.getConfigParam("width"),o.getConfigParam("height"),"11","",d,b,c,function(a){m("Flash Embed Success: "+a.success)})}function h(a){return o.browser()==o.Browsers.IE?c[a]:l.getDocument().getElementById(a)}{var i=a("../../lib/Object"),j=(a("../Model/PlayerProperties"),a("../Model/PlayerEvents")),k=a("../Ads/AdEvents"),l=a("../../lib/Dom"),m=a("../../lib/debug"),n=a("../../contrib/swfobject").swfobject,o=a("../Config/Runtime"),p=a("querystring"),q=a("merge");b.exports=i.extend({init:function(){this.objectName="video_player_object",c.onStratosReady=function(){this.initialize(),c.controls=this,this.fireEvent(j.READY,{isHTML5:!1,controls:this})}.bind(this)},initialize:function(){this.lite=!!l.$(".EpisodeLite"),this.stratos=h.call(this,this.objectName),this.initFlashHarness(),this.initEventListeners()},initEventListeners:function(){this.addEventListener("newFeed",this.delegate(this.newFeed))},initFlashHarness:function(){try{this.stratos.addJScallback("playback_start","controls.onPlaybackStart"),this.stratos.addJScallback("ad_displaying","controls.onAdDisplaying"),this.stratos.addJScallback("ad_ended","controls.onAdEnded"),this.stratos.addJScallback("current_time_change","controls.onTimeChanged"),this.stratos.addJScallback("complete","controls.onPlaylistCompleted"),this.stratos.addJScallback("complete","controls.onEpisodeFinished"),this.stratos.addJScallback("player_state_change","controls.onPlayerStateChange"),this.stratos.addJScallback("playback_error","controls.onPlaybackError"),this.stratos.addJScallback("buffer","controls.onBufferProgress"),this.stratos.addJScallback("content_resume_requested","controls.contentResumeRequested"),this.stratos.addJScallback("content_pause_requested","controls.contentPauseRequested")}catch(a){this.log(a)}},contentPauseRequested:function(){this.fireEvent(k.CONTENT_PAUSE_REQUESTED)},contentResumeRequested:function(){this.fireEvent(k.CONTENT_RESUME_REQUESTED)},appendTo:function(a){g.call(this,a)},getEmbedQueryString:function(){var a,b={};return this._defaultParams={},o.getConfigParam("useDefaultEmbedParams")&&(this._defaultParams={autostart:o.getConfigParam("autoplay")||!1,showinfo:!1,onsite:!0,nopostroll:o.getConfigParam("no_postroll")||!1,noendcap:!0,showsharebutton:!1,removebrandlink:!1,page:"episode",skin:"BlipClassic",frontcolor:"0x999999",lightcolor:"0xAAAAAA",basecolor:"0x1E1E1E",backcolor:"0x1E1E1E",floatcontrols:!0,fixedcontrols:!0,largeplaybutton:!0,controlsalpha:".8",autohideidle:"6000",utm_campaign:o.getConfigParam("utm_campaign"),adprovider:o.getConfigParam("adprovider")}),this._defaultParams.zoneid=o.getZoneID(),this._defaultParams.referrer=o.getConfigParam("referrer"),o.getQueryParam("chromeless")&&(this._defaultParams.chromeless=!0),o.getQueryParam("notrack")&&(this._defaultParams.notrack=!0),b=q(!0,this._defaultParams,e()),a=d(o.getConfigParam("embedParams")),p.stringify(b)+(a?"&"+a:"")},volume:function(a){this.stratos.volume(a)},getVolume:function(){return this.stratos.getVolume()},getCurrentTime:function(){return this.currentTime},getDuration:function(){try{return parseInt(this.stratos.getPlaylist()[0].time,10)}catch(a){return 0}},onPlayerStateChange:function(a){switch(a){case"paused":this.fireEvent("player.episode.paused");break;case"playing":this.fireEvent("player.episode.playing");break;case"loading":this.fireEvent("player.episode.loading")}},onPlaybackError:function(){this.fireEvent("player.error")},onEpisodeFinished:function(){this.playbackHasStarted=!1,this.fireEvent("player.episode.ended")},onPlaylistCompleted:function(){this.fireEvent("player.episode.ended")},onPlaybackStart:function(){this.playingAd=!1,this.duration=parseInt(this.stratos.getPlaylist()[0].time,10),this.playbackHasStarted||(m("playback_start"),this.fireEvent(j.PLAYBACK_START)),this.playbackHasStarted=!0},onAdDisplaying:function(a){m("flash: ad displaying"),this.playingAd=!0,this.fireEvent(j.AD_STARTED,{type:a})},onAdEnded:function(){m("flash: ad ended"),this.playingAd=!1,this.fireEvent(j.AD_ENDED)},onBufferProgress:function(){this.fireEvent(j.BUFFER_PROGRESS)},isVideoAnAd:function(){return!!this.playingAd},onTimeChanged:function(a){this.currentTime=a,this.fireEvent("player.episode.timeChanged",this.currentTime)},playEpisode:function(a){this.playbackHasStarted=!1,this.fireEvent("player.request.newEpisode",{episodeId:a})},newFeed:function(a){m("sending new feed: ",a.feedUrl),this.sendEvent("newFeed",a.feedUrl)},pause:function(){this.sendEvent("pause")},pauseForEpisodeChange:function(){this.sendEvent("pause")},replay:function(){this.sendEvent("play")},play:function(){this.sendEvent("play")},fullscreen:function(){this.sendEvent("fullscreen")},getCurrentRole:function(){return this.stratos.getCurrentRole()},sendEvent:function(a,b){try{this.stratos.sendEvent(a,b)}catch(c){}}})}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../contrib/swfobject":74,"../../lib/Dom":78,"../../lib/Object":80,"../../lib/debug":84,"../Ads/AdEvents":43,"../Config/Runtime":48,"../Model/PlayerEvents":52,"../Model/PlayerProperties":54,merge:38,querystring:17}],57:[function(a,b,c){(function(c){var d=a("../../lib/Object"),e=a("../../lib/debug"),f=a("../Ads/IMAProvider"),g=a("../Ads/AuditudeProvider"),h=a("../Ads/AdProvider"),i=a("../Ads/AdEvents"),j=a("../Config/Runtime"),k=a("../../lib/Ajax"),l=a("../../lib/Dom"),m=a("../Model/PlayerEvents"),n=(a("../Model/PlayerProperties"),a("url"));a("../../contrib/polyfills");b.exports=d.extend({HTML5:!0,containerClass:"VisiblePlayButton",init:function(){this.video=l.getDocument().createElement("video"),this.video.style.width="100%",this.video.style.height="100%",this.video.setAttribute("x-webkit-airplay","allow"),this.video.setAttribute("airplay","allow"),this.video.setAttribute("allowfullscreen","true"),this.video.mute=!0,["abort","canplay","canplaythrough","durationchange","empited","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"].forEach(function(a){this.video.addEventListener(a,function(b){e("BLIP_VIDEO: "+a,b)})}.bind(this)),this.contentContainer=l.getDocument().createElement("div"),this.contentContainer.id="ContentContainer",this.contentContainer.appendChild(this.video),this.adContainer=l.getDocument().createElement("div"),this.adContainer.id="AdContainer",this.container=l.getDocument().createElement("div"),this.container.style.position="absolute",this.container.style.top="0px",this.container.appendChild(this.contentContainer),this.container.appendChild(this.adContainer),this.loadingIndicator=l.getDocument().$(".Loading"),this.currentTime=this.video.currentTime,this.src=this.video.getAttribute("src"),this.adProviderReady=!1,this.metadataHasLoaded=!1,this.initAdvertiser(),this.initHarness(),this.attachVideoEvents(),this.attachAdvertisingEvents(),this.attachResizeEvent(),this.addPlayButtonAndPoster()},appendTo:function(a){a.appendChild(this.container),c.controls=this,this.fireEvent(m.READY,{isHTML5:!0,controls:this})},getDom:function(){return this.container},play:function(){this.onPlayClicked()},pause:function(){e("pause requested.",this.isLoading(),this.isVideoAnAd()),this.isLoading()?this.pauseRequested=!0:this.isVideoAnAd()?this.adProvider.pause():this.video.pause()},volume:function(a){this.video.volume=a},fullscreen:function(){var a=j.browser()==j.Browsers.IPAD;l.isFullscreen()?l.exitFullscreen():l.enterFullscreen(a?this.video:l.getDocument().$("#EmbedTarget"))},seek:function(a){this.video.seekable.length&&(this.video.pause(),this.video.currentTime=this.video.duration*a||0,this.video.play())},getVolume:function(){return this.video?this.video.volume:0},getCurrentTime:function(){return this.video?this.video.currentTime:0},getDuration:function(){return this.video&&!isNaN(this.video.duration)&&isFinite(this.video.duration)?this.video.duration:parseInt(this.videoMetaData.duration,10)||1/0},getPercentBuffered:function(){return this.video.buffered.length&&this.video.duration?this.video.buffered.end(this.video.buffered.length-1)/this.video.duration:0},getIsPlaying:function(){return this.isPlaying},initAdvertiser:function(){var a;a=j.getQueryParam("notrack")?h:window.aud?g:window.google&&window.google.ima?f:h,this.adProvider=new a(this.video,this.adContainer)},onVolumeChange:function(){this.fireEvent(m.VOLUME_CHANGE,this.video.volume)},addPlayButtonAndPoster:function(){this.playButton=l.getDocument().createElement("button"),this.playButton.id="playButton",this.playButton.addEventListener("click",this.onPlayClicked.bind(this)),j.getQueryParam("chromeless")||this.video.parentNode.insertBefore(this.playButton,this.video),this.poster=l.getDocument().createElement("img"),this.poster.className="Poster",this.poster.src=this.video.poster,this.video.parentNode.insertBefore(this.poster,this.video),this.video.style.display="none",this.video.controls=!1},initHarness:function(){this.bound_onEpisodeFinished=this.onEpisodeFinished.bind(this),this.bound_onPlaybackStart=this.onPlaybackStart.bind(this),this.bound_onTimeUpdate=this.onTimeUpdate.bind(this),this.bound_onPlaybackPause=this.onPlaybackPause.bind(this),this.bound_onPlaybackError=this.onPlaybackError.bind(this),this.bound_onMetadataLoaded=this.onMetadataLoaded.bind(this),this.bound_onVolumeChange=this.onVolumeChange.bind(this),this.bound_onDurationChange=this.onDurationChange.bind(this),this.bound_onProgress=this.onProgress.bind(this),this.bound_onLoadStart=this.onLoadStart.bind(this)},attachVideoEvents:function(){this.video.addEventListener("ended",this.bound_onEpisodeFinished),this.video.addEventListener("play",this.bound_onPlaybackStart),this.video.addEventListener("playing",this.bound_onPlaybackStart),this.video.addEventListener("timeupdate",this.bound_onTimeUpdate),this.video.addEventListener("pause",this.bound_onPlaybackPause),this.video.addEventListener("error",this.bound_onPlaybackError),this.video.addEventListener("volumechange",this.bound_onVolumeChange),this.video.addEventListener("durationchange",this.bound_onDurationChange),this.video.addEventListener("progress",this.bound_onProgress),this.video.addEventListener("loadstart",this.bound_onLoadStart)},attachLoadedEvent:function(){this.video.addEventListener("loadedmetadata",this.bound_onMetadataLoaded)},attachResizeEvent:function(){function a(){var a=l.getFrameWidth(),b=l.getFrameHeight(),c=l.getAspectRatio();1.77!=c&&(b-=j.getControlSize()),this.container.style.width=a+"px",this.container.style.height=b+"px",this.poster&&(this.poster.style.width=a+"px",this.poster.style.height=b+"px")}a.call(this),l.getWindow().addEventListener("resize",a.bind(this))},detachVideoEvents:function(){this.video.removeEventListener("ended",this.bound_onEpisodeFinished),this.video.removeEventListener("play",this.bound_onPlaybackStart),this.video.removeEventListener("timeupdate",this.bound_onTimeUpdate),this.video.removeEventListener("pause",this.bound_onPlaybackPause),this.video.removeEventListener("error",this.bound_onPlaybackError)},detachLoadedEvent:function(){this.video.removeEventListener("loadedmetadata",this.bound_onMetadataLoaded)},attachAdvertisingEvents:function(){this.adProvider.addListener(i.ADPROVIDER_INITIALIZED,this.onAdProviderInitialized.bind(this)),this.adProvider.addListener(i.ADPROVIDER_INIT_FAILED,this.onAdProviderInitializationFailure.bind(this)),this.adProvider.addListener(i.CONTENT_PAUSE_REQUESTED,this.onBreakBegin.bind(this)),this.adProvider.addListener(i.CONTENT_RESUME_REQUESTED,this.onBreakEnd.bind(this)),this.adProvider.addListener(i.AD_STARTED,this.onAdPlaying.bind(this)),this.adProvider.addListener(i.AD_PAUSED,this.onAdPaused.bind(this)),this.adProvider.addListener(i.AD_RESUMED,this.onAdResumed.bind(this)),this.adProvider.addListener(i.AD_CLICKED,this.onAdClicked.bind(this)),this.adProvider.addListener(i.AD_TIME_REMAINING,this.onAdTimeUpdate.bind(this)),this.adProvider.addListener(i.AD_COMPLETE,this.onAdComplete.bind(this))},onDurationChange:function(){this.fireEvent(m.DURATION_CHANGE,this.getDuration())},onProgress:function(){this.fireEvent(m.BUFFER_PROGRESS,this.getPercentBuffered())},onLoadStart:function(){this.fireEvent(m.EPISODE_LOADING)},onPlayClicked:function(){this.isLoading()||this.onPlayRequested()},onPlayRequested:function(){e("play button clicked"),this.hidePlayButton(),this.hidePoster(),this.isVideoAnAd()?this.adProvider.resume():this.playbackHasStarted?this.video.play():(this.setIsLoading(),this.wasPlaying=!0,this.attachLoadedEvent(),this.load())},onMetadataLoaded:function(){this.metadataHasLoaded=!0,this.detachLoadedEvent(),this.adProviderReady&&this.adProvider.start()},onAdProviderInitialized:function(){this.adProviderReady=!0,this.metadataHasLoaded&&(this.adProvider.start(),this.fireEvent(m.ADS_READY))},onAdProviderInitializationFailure:function(){this.adProvider.destroy(),this.adProvider=null,this.adProvider=new h(this.video,this.adContainer),this.attachAdvertisingEvents(),this.onAdProviderInitialized()},onEpisodeFinished:function(a){!this.isVideoAnAd()&&this.playbackHasStarted?(this.playbackHasStarted=!1,this.fireEvent(m.PLAYBACK_END)):this.setIsVideoAnAd(!1)},onPlaylistCompleted:function(){},onPlaybackPause:function(){this.pauseRequested=!1,this.isPlaying=!1,this.playbackHasStarted&&this.fireEvent(m.PAUSED)},onPlaybackStart:function(){this.isVideoAnAd()||this.playbackHasStarted?this.playbackHasStarted&&this.fireEvent(m.PLAYING):(e("playback start"),this.setIsNotLoading(),this.playbackHasStarted=!0,this.pauseRequested&&this.video.pause(),this.fireEvent(m.PLAYBACK_START)),this.isPlaying=!0},onPlaybackError:function(){if(this.video.error)switch(e("Playback error occurred with source "+this.video.currentSrc),this.video.error.code){case this.video.error.MEDIA_ERR_ABORTED:e("Video playback aborted.");break;case this.video.error.MEDIA_ERR_NETWORK:e("A network error caused the video download to fail.");break;case this.video.error.MEDIA_ERR_DECODE:e("Video file is corrupted, or uses features this browser does not support.");break;case this.video.error.MEDIA_ERR_SRC_NOT_SUPPORTED:e("Video could not be loaded. Server or network failed, or the format is not supported");break;default:e("An unknown error occurred.")}else e("An unknown error occurred with source, but no error code is available. ("+this.video.currentSrc+")");this.video.removeEventListener("error",this.bound_onPlaybackError),this.video.style.display="none",this.unableToPlayError()},longTailRemovedError:function(){this.triggerError('Sorry, this show has been removed from Blip.

Tap here for more information.'),this.setIsNotLoading()},unableToPlayError:function(){this.triggerError("Sorry, we're unable to play this episode.")},triggerError:function(a){this.setIsNotLoading(),this.fireEvent(m.ERROR,{message:a,fromHtml5:!0})},onBreakBegin:function(){e("break begin"),this.detachVideoEvents(),this.isLoading()||this.setIsLoading(),this.video.paused||this.video.pause(),this.adProvider instanceof g&&(this._mediaSrc=this.video.src,this.detachVideoEvents()),this.setIsVideoAnAd(!0),this.fireEvent(i.CONTENT_PAUSE_REQUESTED)},onAdPlaying:function(a){this.pauseRequested&&this.adProvider.pause(),this.setIsNotLoading(),this.fireEvent(m.AD_STARTED,a)},onAdClicked:function(){},onAdPaused:function(){this.pauseRequested=!1,this.pausingForEpisodeChange||(this.isPlaying=this.wasPlaying=!1,this.fireEvent(m.PAUSED))},onAdResumed:function(){this.isPlaying=this.wasPlaying=!0,this.hidePlayButton(),this.setIsNotLoading()},onAdComplete:function(){this.setIsLoading(),this.fireEvent(m.AD_ENDED)},onBreakEnd:function(){e("break end"),this.attachVideoEvents(),this.adProvider instanceof g&&(this.attachVideoEvents(),this.video.src=this._mediaSrc),this.setIsVideoAnAd(!1),this.pauseRequested?(this.pauseRequested=!1,this.setIsNotLoading()):(this.video.load(),this.video.play()),this.fireEvent(i.CONTENT_RESUME_REQUESTED)},onTimeUpdate:function(a){this.playbackHasStarted&&(this.fireEvent(m.TIME_UPDATE,this.getCurrentTime()),this.getCurrentTime()>0&&this.setIsNotLoading(),"Blip HLS"===this.currentRoleType&&this.video.duration&&this.video.currentTime&&this.fireEvent(m.BUFFER_PROGRESS,this.video.currentTime/this.video.duration))},onAdTimeUpdate:function(a){this.fireEvent(m.AD_TIME_UPDATE,a)},pauseForEpisodeChange:function(){this.pausingForEpisodeChange=!0,this.video.pause()},replay:function(){this.video.readyState&&(this.video.currentTime=0),this.play()},load:function(){var a,b={HD:"Blip HD 720",SD:"Blip SD",LD:"Blip LD"},c=[b.HD,b.SD,b.LD].filter(function(a){return a==b.HD?j.browser()===j.Browsers.IPAD:!0}),d={url:"/file/get/"+this.videoMetaData.postsId+"?no_wrap=1"};this.setIsLoading(),this.adProvider instanceof g||(this.adProvider.initializeProvider(),this.adProvider.requestAds(this.videoMetaData)),a=k.getSynchronousJSON(d),a.then(function(a){var b=a.filter(function(a){return a&&a.role&&~c.indexOf(a.role)});b.length?(this.video.src=b[0].direct_url,this.video.load()):this.unableToPlayError()}.bind(this)),a.fail(function(a){a===k.Errors.GONE?this.longTailRemovedError():this.unableToPlayError()}.bind(this))},getAspectRatio:function(){return this.video.offsetWidth/this.video.offsetHeight},isVideoAnAd:function(){return this.playingAd},setIsVideoAnAd:function(a){e("video currently playing is "+(a?"":"not")+" an ad"),this.playingAd=!!a,this.playingAd?this.video.setAttribute("data-ad",this.playingAd):this.video.removeAttribute("data-ad")},getCurrentRole:function(){return this.currentRoleType},playEpisode:function(a){this.isPlaying&&(this.wasPlaying=!0,this.isPlaying=!1),this.playbackHasStarted=this.metadataHasLoaded=this.adProviderReady=!1,this.currentEpisodeId=a,this.fireEvent("player.request.newEpisode",{episodeId:a}),this.setIsLoading()},setPosterSource:function(a){var b={};b.host=j.getImageDomain(),b.protocol=j.isSecure()?"https":"http",b.query={src:a,w:l.getFrameWidth(),h:l.getFrameHeight()-(1.77==l.getAspectRatio()?0:j.getControlSize()),fmt:"jpg"},b.pathname="/g",this.poster.src=n.format(b)},newFeed:function(a){e("WARNING: deprecated WebPlayer.newFeed method called."),this.setPosterSource(a.metadata.thumbnailFilename),this.videoMetaData=a.metadata},newEpisode:function(a){this.videoMetaData=a,this.onDurationChange(),this.adProvider.updateStatsProviders(a),this.setPosterSource(this.videoMetaData.thumbnailFilename),this.setIsVideoAnAd(!1),this.wasPlaying?(this.wasPlaying=!1,this.onPlayRequested()):(this.setIsNotLoading(),this.showPlayButton(),this.showPoster())},getCuePoints:function(){return this.adProvider.getCuePoints()},chooseRole:function(){for(var a=window.navigator.userAgent.indexOf("iPad")>=0,b=(window.navigator.userAgent.indexOf("iPhone")>=0,window.navigator.userAgent.indexOf("iPod")>=0,window.navigator.userAgent.indexOf("Android")>=0,{}),c=document.location.origin+"/file/get/",d={BLIP_LD:"Blip LD",BLIP_SD:"Blip SD",BLIP_HD:"Blip HD 720"},e=0;e=0;a--)if(b<=c[a])return c[a];return c[0]}}));"interactive"==d.document.readyState?c.nextTick(e):document.addEventListener("DOMContentLoaded",e)}).call(this,a("JkpR2F"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../contrib/polyfills.js":73,"../lib/Dom":78,"../lib/Object":80,"../lib/Utils":82,"../lib/debug":84,"../ui/Controls":91,"./Config/Runtime":48,"./Endcap/StandardEpisodeEndcap":49,"./ExternalInterface":50,"./Model/PlayerEvents":52,"./Notification":55,"./Player/FlashPlayer":56,"./Player/WebPlayer":57,"./Pongs/pongs":58,"./Stats/GTMProvider":61,"./Stats/Tracking":65,"./data/episodes":66,JkpR2F:13,config:1,"embed-lookup":2,util:36}],60:[function(a,b,c){{var d=a("../../lib/debug"),e=a("../../lib/Object"),f=a("./SuperCategory"),g=a("../Config/Runtime");b.exports=e.extend({init:function(a){if(!g.getQueryParam("notrack")){if(!window.COMSCORE){var b=document.createElement("script");b.async=!0,b.src=("https:"===document.location.protocol?"https://sb/":"http://b")+".scorecardresearch.com/beacon.js",document.body.appendChild(b)}this.superCategory=new f(a.channelList),this.parameters.c4=this.superCategory.getCategory(),this.parameters.c6=a.showTitle,this.parameters.c3=this._isOnSite()?"Direct":"Syndicated",this.playerLoadPing()}},parameters:{c1:"1",c2:"6708843",c3:null,c4:null,c5:"02",c6:null,c7:null,c8:null,c9:null},_isOnSite:function(){var a,b=document.referrer.indexOf(document.location.host)>=0;return!b&&this.verticalURL?(a=document.createElement("a"),a.href=this.verticalURL,document.referrer.indexOf(a.host)>=0):b},cloneHash:function(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b},beacon:function(a){if(!g.getQueryParam("notrack")||!g.allowAPIAccess())try{COMSCORE.beacon(a)}catch(b){window._comscore=window._comscore||[],window._comscore.push(a),d("Comscore did not load or threw an error."),d(b)}},playerLoadPing:function(){this.videoStartPing()},videoStartPing:function(){this.beacon(this.parameters)},advertisingStartPing:function(){var a=this.cloneHash(this.parameters);a.c5="01",this.beacon(a)}})}},{"../../lib/Object":80,"../../lib/debug":84,"../Config/Runtime":48,"./SuperCategory":64}],61:[function(a,b,c){(function(c){function d(){return c.dataLayer=c.dataLayer||[],c.dataLayer}function e(a,b){if(!n.getQueryParam("notrack")){var c={};c[a]=b,d().push(c)}}function f(){e("zoneid",n.getZoneID().toString())}function g(){f();var a={event:"contentready"};p&&(a.performancetiming=((new Date).getTime()-p).toString()),d().push(a),h()}function h(){window.removeEventListener(l.BUFFER_PROGRESS,g)}function i(){h(),window.addEventListener(l.BUFFER_PROGRESS,g)}function j(){function a(){f=Date.now(),o("advertisementbegan")}function b(){var a=(f||Date.now())-g;k("VAST overhead: ",a),e("vast_overhead",a),o("advertisementbreakend"),d()}function d(){c.removeEventListener(m.CONTENT_RESUME_REQUESTED,b),c.removeEventListener(l.AD_STARTED,a),c.removeEventListener(l.AD_COMPLETE,h),c.removeEventListener(l.NEXT_EPISODE_READY,d)}var f,g=Date.now(),h=o.bind(null,"advertisementended");o("advertisementattempted"),d(),c.addEventListener(m.CONTENT_RESUME_REQUESTED,b),c.addEventListener(l.AD_STARTED,a),c.addEventListener(l.AD_COMPLETE,h),c.addEventListener(l.NEXT_EPISODE_READY,d)}var k=a("../../lib/debug"),l=a("../Model/PlayerEvents"),m=a("../Ads/AdEvents"),n=a("../Config/Runtime"),o=e.bind(null,"event"),p=0;f(),b.exports={register:function(a){a.addEventListener(l.PLAYBACK_START,o.bind(null,"contentbegan")),a.addEventListener(l.READY,function(){f(),o("playerready")}),a.addEventListener(m.CONTENT_PAUSE_REQUESTED,j),i(),window.addEventListener(l.NEXT_EPISODE_READY,i),a.addEventListener(l.EPISODE_LOADING,function(){p=(new Date).getTime()})}}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../lib/debug":84,"../Ads/AdEvents":43,"../Config/Runtime":48,"../Model/PlayerEvents":52}],62:[function(a,b,c){function d(a){if(!h.getQueryParam("notrack")){var b=document.createElement("img");b.src=a}}{var e=a("./SuperCategory"),f=a("../../lib/Object"),g=a("../../lib/Utils"),h=a("../Config/Runtime");b.exports=f.extend({init:function(a){this.superCategory=new e(a.channelList),this.parameters.cg=this.superCategory.getCategory(),this.parameters.tl=a.episodeTitle,this.mediaLength=a.mediaLength,this.playerLoadPing()},parameters:{ci:"us-906035",cg:null,tl:null,c6:"b01",lp:"LF,0,0,0",cc:1,rnd:null},cloneHash:function(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b},getPingUrl:function(a,b){var c=g.matchProtocol("http://secure-us.imrworldwide.com/cgi-bin/m"),d=[];a[b?b:"rnd"]=Math.ceil(1e9*Math.random());for(var e in a)d.push([e,"lp"===e?a[e]:encodeURIComponent(a[e])].join("="));return[c,d.join("&")].join("?")},playerLoadPing:function(){this.videoStartPing()},videoStartPing:function(){var a=this.cloneHash(this.parameters);d(this.getPingUrl(a))},researchPing:function(){var a=parseInt(this.mediaLength,10)/60,b=Math.floor(a/5),c="";c=5>a?"<5":[5*b,5*(b+1)].join("-");var e={ca:document.referrer.indexOf(document.location.host)>=0?"onsite":"offsite",cr:this.superCategory.getCategory(),pc:c};d(this.getPingUrl(e,"r"))},advertisingStartPing:function(){var a=this.cloneHash(this.parameters);a.c3="st,a",d(this.getPingUrl(a))}})}},{"../../lib/Object":80,"../../lib/Utils":82,"../Config/Runtime":48,"./SuperCategory":64}],63:[function(a,b,c){{var d=a("../../lib/Object"),e=a("../../lib/debug"),f=a("../../lib/Omni"),g=a("../Config/Runtime");b.exports=d.extend({init:function(){this.trackedPlaybackStart={}},track:function(a,b){if(!g.getQueryParam("notrack"))try{switch(a){case"playback-play":this._trackPlaybackStart(b);break;case"playback-complete":this._trackComplete(b);break;case"playback-progress":this._trackProgress(b)}}catch(c){e(c)}},clear:function(a){this.trackedPlaybackStart[a]=!1},_trackPlaybackStart:function(a){var b={},c=function(a){var b=document.createElement("a");return b.href=a,b.hostname},d=function(a,b){var c=a.split("-")[0],d=a.split("-")[1],e=b.split(" ")[2];return[e,d,c].map(function(a){var b=parseInt(a,10);return 10>b?"0"+b:b.toString()}).join("/")},g=function(a){var b,c,d,e=function(a){return a-Math.floor(a)>0&&(a=Math.round(a)),10>a?[0,a].join(""):a};return d=a%60,c=a>60?Math.floor((a-d)/60):0,b=a>3600?Math.floor((a-d-60*c)/60*60):0,[b,c,d].map(e).join(":")};if(e("starting playback track"),this.trackedPlaybackStart[a.postsId])return void e("already tracked playback for "+a.postsId);try{b[f.EVAR.EPISODE_NAME]=a.title,b[f.EVAR.SERIES_NAME]=a.showName,b[f.EVAR.SERIES_PRODUCER]=a.showName,b[f.EVAR.LENGTH]=g(a.duration),b[f.EVAR.DATE_PUBLISHED]=d(a.datestamp,a.datestampText),b[f.EVAR.DOMAIN]=c(document.referrer).toLowerCase(),b[f.EVAR.WEIGHTING]=a.core_value,b[f.EVAR.RATING]=this._prepareString(a.content_rating_name),b[f.EVAR.QUALITY]=this._prepareString(a.roles.currentRole),b[f.EVAR.POST_ID]=a.postsId,b[f.LISTS.CATEGORY]=this._prepareList(a.categories.join(",")),b[f.LISTS.KEYWORDS]=this._prepareList(a.tags.map(function(a){return a.name}).join(",")),f.trigger([f.EVENT.VIDEO_START,f.EVENT.EXPIRE_LISTS],b,"video start")}catch(h){e("error occurred while initializing omniture variables:"),e(h)}e("setting episode "+a.postsId+" as tracked."),this.trackedPlaybackStart[a.postsId]=!0,this._setTrackedPercentFlags(!1)},_trackProgress:function(a){var b=a.duration,c=a.currentTime/b,d={};d[f.EVAR.QUALITY]=this._prepareString(a.roles.currentRole),d[f.LISTS.CATEGORY]=this._prepareList(a.categories.join(",")),d[f.LISTS.KEYWORDS]=this._prepareList(a.tags.map(function(a){return a.name}).join(",")),this.trackedPlaybackStart[a.postsId]&&(c>=.25&&!window.TRACKED_25_PERCENT?(f.trigger([f.EVENT.VIDEO_25_COMPLETE,f.EVENT.EXPIRE_LISTS],d,"25 percent played"),window.TRACKED_25_PERCENT=!0):c>=.5&&!window.TRACKED_50_PERCENT?(f.trigger([f.EVENT.VIDEO_50_COMPLETE,f.EVENT.EXPIRE_LISTS],d,"50 percent played"),window.TRACKED_50_PERCENT=!0):c>=.75&&!window.TRACKED_75_PERCENT&&(f.trigger([f.EVENT.VIDEO_75_COMPLETE,f.EVENT.EXPIRE_LISTS],d,"75 percent played"),window.TRACKED_75_PERCENT=!0))},_trackComplete:function(a){var b=this._prepareString(a.roles.currentRole),c={};c[f.EVAR.QUALITY]=b.toLowerCase(),c[f.LISTS.CATEGORY]=this._prepareList(a.categories.join(",")),c[f.LISTS.KEYWORDS]=this._prepareList(a.tags.map(function(a){return a.name}).join(",")),f.trigger([f.EVENT.VIDEO_COMPLETE,f.EVENT.EXPIRE_LISTS],c,"episode watched to completion"),this.clear(a.postsId),this._setTrackedPercentFlags(!1)},_setTrackedPercentFlags:function(a){window.TRACKED_25_PERCENT=window.TRACKED_50_PERCENT=window.TRACKED_75_PERCENT=a},_prepareString:function(a){return a.toLowerCase().replace(/\:|\"|\'/g,"_").trim()},_prepareList:function(a){return a.split(",").map(this._prepareString).join(":")}})}},{"../../lib/Object":80,"../../lib/Omni":81,"../../lib/debug":84,"../Config/Runtime":48}],64:[function(a,b,c){{var d=a("../../lib/debug"),e=a("../../lib/Object");b.exports=e.extend({init:function(a){this.categoryMap={Comedy:["Animation & Comics","Comedy"],Entertainment:["Drama","Entertainment","Music"],Lifestyle:["Fashion & Beauty","Food & Drink","Health & Fitness","Home & Family","How To","Learning","Religion","Foreign","Lifestyle"],"News & Sports":["News & Politics","Sports & Cars","Talk & Interview"],Technology:["Tech & Gadgets"],Videogames:["Videogames"]},this.categories=a,this.categories=this.categories?this.categories.split(","):null},getCategory:function(){function a(a){return a==b}var b,c;if(!this.categories)return"";b=this.categories[Math.floor(Math.random()*this.categories.length)];for(c in this.categoryMap)if(this.categoryMap[c].some(a))return d("category chosen: "+c),c;return"categoryDefault"}})}},{"../../lib/Object":80,"../../lib/debug":84}],65:[function(a,b,c){a("../../contrib/mdn-array");{var d=(a("./OmnitureProvider"),a("../Config/Runtime"));b.exports={trackers:[],track:function(a,b){var c=a;d.getQueryParam("notrack")||("object"==typeof b&&void 0!==b.eventContext&&(c=b.eventContext+"-"+a),this.trackers.forEach(function(a){a.track(c,b)}))},trackPageView:function(a){this.trackers.forEach(function(b){b.track("pageview",a.url)})},context:function(a){var b,c;return a.element&&(c=a.element.parentNode,b=this._elementToContext(c)),b},clear:function(a){this.trackers.forEach(function(b){"function"==typeof b.clear&&b.clear(a)})},_elementToContext:function(a){return"#"+a.id+"_."+a.className}}}},{"../../contrib/mdn-array":71,"../Config/Runtime":48,"./OmnitureProvider":63}],66:[function(a,b,c){(function(c){function d(a){var b=g.format({pathname:h.format(k.paths.episodeView,a),query:{no_wrap:1,skin:"json",no_media:"1"}});return function(){return j.getJSON({url:b}).then(f)}}function e(a){return i.fcall(function(){var b=c.sessionStorage.getItem("episode_"+a);if(!b)throw new Error("Episode not stored in SessionStorage");return b}).then(JSON.parse).then(f)}function f(a){return a.Post}var g=a("url"),h=a("util"),i=a("q"),j=a("../../lib/Ajax"),k=(a("../Config/Runtime"),a("../../../config"));b.exports={get:function(a){return e(a).fail(d(a))}}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../../config":1,"../../lib/Ajax":76,"../Config/Runtime":48,q:42,url:34,util:36}],67:[function(a,b,c){var d,e,f=(a("util"),a("../../lib/debug"),a("events").EventEmitter),g=new f,h=(g.RatingTypes={LIKE:"LIKE"},[]),i=null;g.setRatingDetails=function(a){e=a.results||e,h=a.valid_ratings||h,d=a.details&&a.details.type?a.details.type:null,this.emit("ratingUpdate")},g.getCurrentRatingType=function(){return d},g.getResults=function(){return e},g.setUserDetails=function(a){i=a.user_rating,this.emit("userUpdate")},g.userHasRated=function(){return null!==i},g.getCurrentRating=function(){return isFinite(i)?i:null},g.rate=function(a){~h.indexOf(a)&&(e.forEach(function(b){b.rating==a&&b.count++}),i=a,this.emit("ratingUpdate"),this.emit("userUpdate"),this.emit("videoRated",a))},g.unrate=function(){e.forEach(function(a){a.rating==i&&a.count--}),i=null,this.emit("ratingUpdate"),this.emit("userUpdate"),this.emit("videoRated",i)},b.exports=g},{"../../lib/debug":84,events:7,util:36}],68:[function(a,b,c){Function.prototype.bind||(Function.prototype.bind=function(a){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var b=Array.prototype.slice.call(arguments,1),c=this,d=function(){},e=function(){return c.apply(this instanceof d&&a?this:a,b.concat(Array.prototype.slice.call(arguments)))};return d.prototype=this.prototype,e.prototype=new d,e})},{}],69:[function(a,b,c){"document"in self&&!("classList"in document.createElement("_"))&&!function(a){"use strict";if("Element"in a){var b="classList",c="prototype",d=a.Element[c],e=Object,f=String[c].trim||function(){return this.replace(/^\s+|\s+$/g,"")},g=Array[c].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1},h=function(a,b){this.name=a,this.code=DOMException[a],this.message=b},i=function(a,b){if(""===b)throw new h("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(b))throw new h("INVALID_CHARACTER_ERR","String contains an invalid character");return g.call(a,b)},j=function(a){for(var b=f.call(a.getAttribute("class")||""),c=b?b.split(/\s+/):[],d=0,e=c.length;e>d;d++)this.push(c[d]);this._updateClassName=function(){a.setAttribute("class",this.toString())}},k=j[c]=[],l=function(){return new j(this)};if(h[c]=Error[c],k.item=function(a){return this[a]||null},k.contains=function(a){return a+="",-1!==i(this,a)},k.add=function(){var a,b=arguments,c=0,d=b.length,e=!1;do a=b[c]+"",-1===i(this,a)&&(this.push(a),e=!0);while(++c-1?d.documentElement.innerHTML=a:d.body.innerHTML=a,d}return c.apply(this,arguments)}}(window.DOMParser)},{}],71:[function(a,b,c){Array.prototype.forEach||(Array.prototype.forEach=function(a,b){var c,d;if(null==this)throw new TypeError("this is null or not defined");var e=Object(this),f=e.length>>>0;if("[object Function]"!=={}.toString.call(a))throw new TypeError(a+" is not a function");for(b&&(c=b),d=0;f>d;){var g;Object.prototype.hasOwnProperty.call(e,d)&&(g=e[d],a.call(c,g,d,e)),d++}}),Array.prototype.every||(Array.prototype.every=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"!=typeof a)throw new TypeError;for(var d=arguments[1],e=0;c>e;e++)if(e in b&&!a.call(d,b[e],e,b))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"!=typeof a)throw new TypeError;for(var d=arguments[1],e=0;c>e;e++)if(e in b&&a.call(d,b[e],e,b))return!0;return!1}),Array.prototype.filter||(Array.prototype.filter=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"!=typeof a)throw new TypeError;for(var d=[],e=arguments[1],f=0;c>f;f++)if(f in b){var g=b[f];a.call(e,g,f,b)&&d.push(g)}return d}),Array.prototype.map||(Array.prototype.map=function(a,b){var c,d,e;if(null==this)throw new TypeError(" this is null or not defined");var f=Object(this),g=f.length>>>0;if("function"!=typeof a)throw new TypeError(a+" is not a function");for(b&&(c=b),d=new Array(g),e=0;g>e;){var h,i;e in f&&(h=f[e],i=a.call(c,h,e,f),d[e]=i),e++}return d}),"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(a,b){"use strict";if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof a)throw new TypeError(a+" is not a function");var c,d=0,e=this.length>>>0,f=!1;for(1d;++d)this.hasOwnProperty(d)&&(f?c=a(c,this[d],d,this):(c=this[d],f=!0));if(!f)throw new TypeError("Reduce of empty array with no initial value");return c}),"function"!=typeof Array.prototype.reduceRight&&(Array.prototype.reduceRight=function(a,b){"use strict";if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduceRight called on null or undefined");if("function"!=typeof a)throw new TypeError(a+" is not a function");var c,d=this.length>>>0,e=d-1,f=!1;for(1-1;--e)this.hasOwnProperty(e)&&(f?c=a(c,this[e],e,this):(c=this[e],f=!0));if(!f)throw new TypeError("Reduce of empty array with no initial value");return c})},{}],72:[function(a,b,c){!function(){function a(a,b){var c,d;if(document.createEvent)return b=b||{bubbles:!1,cancelable:!1,detail:void 0},c=document.createEvent("CustomEvent"),c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail),c;detail=b.detail||{},c=window.document.createEventObject(),c.type=a,c.returnValue=!detail.cancelable,c.cancelBubble=!detail.bubbles;for(d in detail)c[d]=detail[d];return c}"undefined"==typeof window.CustomEvent?a.prototype=window.Event.prototype:a.prototype=window.CustomEvent.prototype,window.CustomEvent=a}()},{}],73:[function(a,b,c){a("./mdn-custom-events.js"),a("./mdn-array.js"),a("./classList.js"),a("./windowPolyfill.js"),a("./bind.js")},{"./bind.js":68,"./classList.js":69,"./mdn-array.js":71,"./mdn-custom-events.js":72,"./windowPolyfill.js":75}],74:[function(a,b,c){var d=function(){function a(){if(!S){try{var a=L.getElementsByTagName("body")[0].appendChild(r("span"));a.parentNode.removeChild(a)}catch(b){return}S=!0;for(var c=O.length,d=0;c>d;d++)O[d]()}}function b(a){S?a():O[O.length]=a}function c(a){if(typeof K.addEventListener!=D)K.addEventListener("load",a,!1);else if(typeof L.addEventListener!=D)L.addEventListener("load",a,!1);else if(typeof K.attachEvent!=D)s(K,"onload",a);else if("function"==typeof K.onload){var b=K.onload;K.onload=function(){b(),a()}}else K.onload=a}function e(){N?f():g()}function f(){var a=L.getElementsByTagName("body")[0],b=r(E);b.setAttribute("type",H);var c=a.appendChild(b);if(c){var d=0;!function(){if(typeof c.GetVariable!=D){var e=c.GetVariable("$version");e&&(e=e.split(" ")[1].split(","),V.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)])}else if(10>d)return d++,void setTimeout(arguments.callee,10);a.removeChild(b),c=null,g()}()}else g()}function g(){var a=P.length;if(a>0)for(var b=0;a>b;b++){var c=P[b].id,d=P[b].callbackFn,e={success:!1,id:c};if(V.pv[0]>0){var f=q(c);if(f)if(!t(P[b].swfVersion)||V.wk&&V.wk<312)if(P[b].expressInstall&&i()){var g={};g.data=P[b].expressInstall,g.width=f.getAttribute("width")||"0",g.height=f.getAttribute("height")||"0",f.getAttribute("class")&&(g.styleclass=f.getAttribute("class")),f.getAttribute("align")&&(g.align=f.getAttribute("align"));for(var l={},m=f.getElementsByTagName("param"),n=m.length,o=0;n>o;o++)"movie"!=m[o].getAttribute("name").toLowerCase()&&(l[m[o].getAttribute("name")]=m[o].getAttribute("value"));j(g,l,c,d)}else k(f),d&&d(e);else v(c,!0),d&&(e.success=!0,e.ref=h(c),d(e))}else if(v(c,!0),d){var p=h(c);p&&typeof p.SetVariable!=D&&(e.success=!0,e.ref=p),d(e)}}}function h(a){var b=null,c=q(a);if(c&&"OBJECT"==c.nodeName)if(typeof c.SetVariable!=D)b=c;else{var d=c.getElementsByTagName(E)[0];d&&(b=d)}return b}function i(){return!T&&t("6.0.65")&&(V.win||V.mac)&&!(V.wk&&V.wk<312)}function j(a,b,c,d){T=!0,z=d||null,A={success:!1,id:c};var e=q(c);if(e){"OBJECT"==e.nodeName?(x=l(e),y=null):(x=e,y=c),a.id=I,(typeof a.width==D||!/%$/.test(a.width)&&parseInt(a.width,10)<310)&&(a.width="310"),(typeof a.height==D||!/%$/.test(a.height)&&parseInt(a.height,10)<137)&&(a.height="137"),L.title=L.title.slice(0,47)+" - Flash Player Installation";var f=V.ie&&V.win?"ActiveX":"PlugIn",g="MMredirectURL="+K.location.toString().replace(/&/g,"%26")+"&MMplayerType="+f+"&MMdoctitle="+L.title;if(typeof b.flashvars!=D?b.flashvars+="&"+g:b.flashvars=g,V.ie&&V.win&&4!=e.readyState){var h=r("div");c+="SWFObjectNew",h.setAttribute("id",c),e.parentNode.insertBefore(h,e),e.style.display="none",function(){4==e.readyState?e.parentNode.removeChild(e):setTimeout(arguments.callee,10)}()}m(a,b,c)}}function k(a){if(V.ie&&V.win&&4!=a.readyState){var b=r("div");a.parentNode.insertBefore(b,a),b.parentNode.replaceChild(l(a),b),a.style.display="none",function(){4==a.readyState?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)}()}else a.parentNode.replaceChild(l(a),a)}function l(a){var b=r("div");if(V.win&&V.ie)b.innerHTML=a.innerHTML;else{var c=a.getElementsByTagName(E)[0];if(c){var d=c.childNodes;if(d)for(var e=d.length,f=0;e>f;f++)1==d[f].nodeType&&"PARAM"==d[f].nodeName||8==d[f].nodeType||b.appendChild(d[f].cloneNode(!0))}}return b}function m(a,b,c){var d,e=q(c);if(V.wk&&V.wk<312)return d;if(e)if(typeof a.id==D&&(a.id=c),V.ie&&V.win){var f="";for(var g in a)a[g]!=Object.prototype[g]&&("data"==g.toLowerCase()?b.movie=a[g]:"styleclass"==g.toLowerCase()?f+=' class="'+a[g]+'"':"classid"!=g.toLowerCase()&&(f+=" "+g+'="'+a[g]+'"'));var h="";for(var i in b)b[i]!=Object.prototype[i]&&(h+='');e.outerHTML='"+h+"",Q[Q.length]=a.id,d=q(a.id)}else{var j=r(E);j.setAttribute("type",H);for(var k in a)a[k]!=Object.prototype[k]&&("styleclass"==k.toLowerCase()?j.setAttribute("class",a[k]):"classid"!=k.toLowerCase()&&j.setAttribute(k,a[k]));for(var l in b)b[l]!=Object.prototype[l]&&"movie"!=l.toLowerCase()&&n(j,l,b[l]);e.parentNode.replaceChild(j,e),d=j}return d}function n(a,b,c){var d=r("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)}function o(a){var b=q(a);b&&"OBJECT"==b.nodeName&&(V.ie&&V.win?(b.style.display="none",function(){4==b.readyState?p(a):setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function p(a){var b=q(a);if(b){for(var c in b)"function"==typeof b[c]&&(b[c]=null);b.parentNode.removeChild(b)}}function q(a){var b=null;try{b=L.getElementById(a)}catch(c){}return b}function r(a){return L.createElement(a)}function s(a,b,c){a.attachEvent(b,c),R[R.length]=[a,b,c]}function t(a){var b=V.pv,c=a.split(".");return c[0]=parseInt(c[0],10),c[1]=parseInt(c[1],10)||0,c[2]=parseInt(c[2],10)||0,b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]?!0:!1}function u(a,b,c,d){if(!V.ie||!V.mac){var e=L.getElementsByTagName("head")[0];if(e){var f=c&&"string"==typeof c?c:"screen";if(d&&(B=null,C=null),!B||C!=f){var g=r("style");g.setAttribute("type","text/css"),g.setAttribute("media",f),B=e.appendChild(g),V.ie&&V.win&&typeof L.styleSheets!=D&&L.styleSheets.length>0&&(B=L.styleSheets[L.styleSheets.length-1]),C=f}V.ie&&V.win?B&&typeof B.addRule==E&&B.addRule(a,b):B&&typeof L.createTextNode!=D&&B.appendChild(L.createTextNode(a+" {"+b+"}"))}}}function v(a,b){if(U){var c=b?"visible":"hidden";S&&q(a)?q(a).style.visibility=c:u("#"+a,"visibility:"+c)}}function w(a){var b=/[\\\"<>\.;]/,c=null!=b.exec(a);return c&&typeof encodeURIComponent!=D?encodeURIComponent(a):a}{var x,y,z,A,B,C,D="undefined",E="object",F="Shockwave Flash",G="ShockwaveFlash.ShockwaveFlash",H="application/x-shockwave-flash",I="SWFObjectExprInst",J="onreadystatechange",K=window,L=document,M=navigator,N=!1,O=[e],P=[],Q=[],R=[],S=!1,T=!1,U=!0,V=function(){var a=typeof L.getElementById!=D&&typeof L.getElementsByTagName!=D&&typeof L.createElement!=D,b=M.userAgent.toLowerCase(),c=M.platform.toLowerCase(),d=/win/.test(c?c:b),e=/mac/.test(c?c:b),f=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,g=!1,h=[0,0,0],i=null;if(typeof M.plugins!=D&&typeof M.plugins[F]==E)i=M.plugins[F].description,!i||typeof M.mimeTypes!=D&&M.mimeTypes[H]&&!M.mimeTypes[H].enabledPlugin||(N=!0,g=!1,i=i.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),h[0]=parseInt(i.replace(/^(.*)\..*$/,"$1"),10),h[1]=parseInt(i.replace(/^.*\.(.*)\s.*$/,"$1"),10),h[2]=/[a-zA-Z]/.test(i)?parseInt(i.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof K.ActiveXObject!=D)try{var j=new ActiveXObject(G);j&&(i=j.GetVariable("$version"),i&&(g=!0,i=i.split(" ")[1].split(","),h=[parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10)]))}catch(k){}return{w3:a,pv:h,wk:f,ie:g,win:d,mac:e}}();!function(){V.w3&&((typeof L.readyState!=D&&"complete"==L.readyState||typeof L.readyState==D&&(L.getElementsByTagName("body")[0]||L.body))&&a(),S||(typeof L.addEventListener!=D&&L.addEventListener("DOMContentLoaded",a,!1),V.ie&&V.win&&(L.attachEvent(J,function(){"complete"==L.readyState&&(L.detachEvent(J,arguments.callee),a())}),K==top&&!function(){if(!S){try{L.documentElement.doScroll("left")}catch(b){return void setTimeout(arguments.callee,0)}a()}}()),V.wk&&!function(){return S?void 0:/loaded|complete/.test(L.readyState)?void a():void setTimeout(arguments.callee,0)}(),c(a)))}(),function(){V.ie&&V.win&&window.attachEvent("onunload",function(){for(var a=R.length,b=0;a>b;b++)R[b][0].detachEvent(R[b][1],R[b][2]);for(var c=Q.length,e=0;c>e;e++)o(Q[e]);for(var f in V)V[f]=null;V=null;for(var g in d)d[g]=null;d=null})}()}return{registerObject:function(a,b,c,d){if(V.w3&&a&&b){var e={};e.id=a,e.swfVersion=b,e.expressInstall=c,e.callbackFn=d,P[P.length]=e,v(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){return V.w3?h(a):void 0},embedSWF:function(a,c,d,e,f,g,h,k,l,n){var o={success:!1,id:c};V.w3&&!(V.wk&&V.wk<312)&&a&&c&&d&&e&&f?(v(c,!1),b(function(){d+="",e+="";var b={};if(l&&typeof l===E)for(var p in l)b[p]=l[p];b.data=a,b.width=d,b.height=e;var q={};if(k&&typeof k===E)for(var r in k)q[r]=k[r];if(h&&typeof h===E)for(var s in h)typeof q.flashvars!=D?q.flashvars+="&"+s+"="+h[s]:q.flashvars=s+"="+h[s];if(t(f)){var u=m(b,q,c);b.id==c&&v(c,!0),o.success=!0,o.ref=u}else{if(g&&i())return b.data=g,void j(b,q,c,n);v(c,!0)}n&&n(o)})):n&&n(o)},switchOffAutoHideShow:function(){U=!1},ua:V,getFlashPlayerVersion:function(){return{major:V.pv[0],minor:V.pv[1],release:V.pv[2]}},hasFlashPlayerVersion:t,createSWF:function(a,b,c){return V.w3?m(a,b,c):void 0},showExpressInstall:function(a,b,c,d){V.w3&&i()&&j(a,b,c,d)},removeSWF:function(a){V.w3&&o(a)},createCSS:function(a,b,c,d){V.w3&&u(a,b,c,d)},addDomLoadEvent:b,addLoadEvent:c,getQueryParamValue:function(a){var b=L.location.search||L.location.hash;if(b){if(/\?/.test(b)&&(b=b.split("?")[1]),null==a)return w(b);for(var c=b.split("&"),d=0;d=500?o.SERVER_ERROR:a>=400?o.CLIENT_ERROR:o.UNKNOWN}}function g(a){return k.parse(a)}function h(a){var b={};return b.host=a.hostname,b.path=a.path,b.port=a.port,b}function i(a){var b=h(g(a.url));return a.headers&&(b.headers=a.headers),a.agent&&(b.agent=a.agent),b}var j=a("http"),k=a("url"),l=(a("util"),a("q")),m=a("./XMLHttpRequest"),n=(a("./debug"),a("json3")),o={BAD_REQUEST:"Error: 400",CLIENT_ERROR:"Error: 4xx.",SERVER_ERROR:"Error: 5xx.",NOT_FOUND:"Error: 404",GONE:"Error: 410",FORBIDDEN:"Error: 403",UNKNOWN:"An unknown error occurred.",JSON_PARSE_ERROR:"JSON response was unable to be decoded."};b.exports={Errors:o,get:function(a){var b=i(a),c=l.defer();return j.get(b,function(b){var f="";b.on("data",function(a){f+=a,200!=b.statusCode&&d(c,b.statusCode)}),b.on("end",function(){"json"==a.responseType?e(c,f):c.resolve(f)})}),c.promise},getSynchronousJSON:function(a){var b,c,f=m.getXHR(),g={reject:function(a){c=a},resolve:function(a){b=a}};return f.open("GET",a.url,!1),f.send(),f.responseText&&200==f.status?e(g,f.responseText):d(g,f.status),{then:function(a){return b&&!c&&a(b),this},fail:function(a){return c&&a(b),this}}},getJSON:function(a){return a.responseType="json",this.get(a)}}},{"./XMLHttpRequest":83,"./debug":84,http:8,json3:37,q:42,url:34,util:36}],77:[function(a,b,c){var d=!1,e=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/,f=function(){};f.extend=function(a){function b(){!d&&this.init&&this.init.apply(this,arguments)}var c=this.prototype;d=!0;var f=new this;d=!1;for(var g in a)f[g]="function"==typeof a[g]&&"function"==typeof c[g]&&e.test(a[g])?function(a,b){return function(){var d=this._super;this._super=c[a];var e=b.apply(this,arguments);return this._super=d,e}}(g,a[g]):a[g];return b.prototype=f,b.prototype.constructor=b,b.extend=arguments.callee,b},c.Class=f},{}],78:[function(a,b,c){(function(c){function d(a){return a||document}function e(a,b){return[].slice.call(this._$$(a,b))}var f=a("url"),g=a("querystring");window.Element.prototype.$=window.Element.prototype.querySelector,window.Element.prototype._$$=window.Element.prototype.querySelectorAll,window.Element.prototype.$$=e,window.Document&&(window.Document.prototype.$=window.Document.prototype.querySelector,window.Document.prototype._$$=window.Document.prototype.querySelectorAll,window.Document.prototype.$$=e);var h={$:function(a,b){return b=d(b),b.querySelector(a)},$$:function(a,b){return b=d(b),[].slice.call(b.querySelectorAll(a))},getReferrer:function(){return document.referrer},getReferrerDomain:function(){return f.parse(document.referrer).hostname},getUserAgent:function(){return navigator.userAgent?navigator.userAgent:navigator.appName},getDocument:function(){return window.document},getWindow:function(){return window},enterFullscreen:function(a){var b=a||document.documentElement;b.requestFullscreen?b.requestFullscreen():b.msRequestFullscreen?b.msRequestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.webkitEnterFullscreen&&b.webkitEnterFullscreen()},exitFullscreen:function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},isFullscreen:function(){return!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)},getFrameWidth:function(){return document.body.clientWidth},getFrameHeight:function(){return document.body.clientHeight},getAspectRatio:function(){return Math.floor(this.getFrameWidth()/this.getFrameHeight()*100)/100},getWindowOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},getEventPageXY:function(a){return{x:a.changedTouches&&a.changedTouches[0]?a.changedTouches[0].pageX:a.pageX, y:a.changedTouches&&a.changedTouches[0]?a.changedTouches[0].pageY:a.pageY}},getSearchParams:function(){return g.parse(c.location.search.replace("?",""))}};b.exports=h}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{querystring:17,url:34}],79:[function(a,b,c){function d(a){var b={};return!a||1>a?{hours:0,minutes:0,seconds:0}:(b.hours=Math.floor(a/3600),b.minutes=Math.floor((a-3600*b.hours)/60),b.seconds=Math.floor(a-3600*b.hours-60*b.minutes),b)}function e(a){var b=d(a),c=b.hours,e=b.minutes,f=b.seconds,g=[];return c>0&&g.push(c),g.push(10>e&&c>0?"0"+e:e),g.push(10>f?"0"+f:f),g.join(":")}b.exports={episodeTime:e}},{}],80:[function(a,b,c){{var d=a("./Class").Class,e=(a("./Dom"),a("util"),a("./debug"));b.exports=d.extend({init:function(){},listeners:{},getCallback:function(a){var b=this;return function(){a.apply(b,arguments)}},addEventListener:function(a,b,c){window.addEventListener(a,function(a){var d=a.detail,e="undefined"!=typeof d&&d.length>0?a.detail[0]:{};e.originalEvent=a,c?b.call(c,e):b(e)})},removeEventListener:function(a,b){window.removeEventListener(a,b)},fireEvent:function(a,b){e(a,b),b="undefined"!=typeof b?[b]:[],window.dispatchEvent(new CustomEvent(a,{detail:b}))},log:function(){try{console.log.apply(console,arguments)}catch(a){try{opera.postError.apply(opera,arguments)}catch(b){}}},superCall:function(a,b){return this.superClass.prototype[a].call(this,b)},superConstruct:function(a){this.superClass.call(this,a)},concatArgs:function(a,b){var c,d=[];for(c=0;c0?function(){a.apply(b,arguments)}:(a.call(this),this)}})}},{"./Class":77,"./Dom":78,"./debug":84,util:36}],81:[function(a,b,c){var d={PAGE_NAME:"eVar1",SITE_SECTION:"eVar2",NAVIGATION_ELEMENT_NAME:"eVar5",CONTENT_LINK_NAME:"eVar6",SEARCH_TERM:"eVar7",SEARCH_TYPE:"eVar8",SERIES_NAME:"eVar11",SERIES_PRODUCER:"eVar12",EPISODE_NAME:"eVar13",EPISODE_NUMBER:"eVar14",DATE_PUBLISHED:"eVar16",LENGTH:"eVar18",DOMAIN:"eVar19",WEIGHTING:"eVar20",RATING:"eVar21",QUALITY:"eVar22",POST_ID:"eVar23",FACEBOOK_CONNECT_LOCATION:"eVar25",FACEBOOK_CONNECT_STATUS:"eVar26",SHARE_TYPE:"eVar27"},e={CATEGORY:"list1",KEYWORDS:"list2"},f={PAGE_VIEW:"event1",NAV_ELEMENT_CLICK:"event5",CONTENT_LINK_CLICK:"event6",SEARCH:"event7",SEARCH_RESULT_CLICK:"event8",FOLLOW:"event9",LOVE:"event10",VIDEO_START:"event11",VIDEO_25_COMPLETE:"event12",VIDEO_50_COMPLETE:"event13",VIDEO_75_COMPLETE:"event14",VIDEO_COMPLETE:"event15",FACEBOOK_CONNECT_START:"event25",FACEBOOK_CONNECT_COMPLETE:"event26",SHARE:"event27",EXPIRE_LISTS:"event100"};b.exports={EVAR:d,LISTS:e,EVENT:f,CACHE:{},getPageName:function(){var a,b=O.getSiteSection();switch(b){case"home":a="homepage";break;case"categories":a=O.getCategoryName();break;case"shows":a=O.getShowName();break;case"episodes":a=O.getEpisodeName();break;case"blip player":a=O.getPlayerType()}return a?[b,a].join("|"):b},getCategoryName:function(){return $("#PageInfo").data("channel-name").toLowerCase()},getShowName:function(){return $("#PageInfo").data("show-name").toLowerCase()},getEpisodeName:function(){return $("#PageInfo").data("episode-title").toLowerCase()},getPlayerType:function(){return document.getElementById("megaplaya")?"xplayer":"default player"},getSiteSection:function(){if(document.getElementById("megaplaya"))return"blip player";if(!document.getElementById("Content"))return"";switch(document.getElementById("Content").className.toLowerCase()){case"home":return"home";case"channel":return"categories";case"show":return"shows";case"episode":return"episodes";case"episodelite":return"episodes";case"search":return"search";case"myblip":return"myblip";default:return""}},getSubscriberStatus:function(){var a=O.getCookie("v_session");return a&&"LOGGEDOUT"!==a?"connected":"not connected"},getEpisodeContext:function(a){return O.getAttributeContext(a,"episode-title").toLowerCase().replace(":","")},getSeriesContext:function(a){return O.getAttributeContext(a,"series-title").toLowerCase().replace(":","")},getChannelsContext:function(a){return O.getAttributeContext(a,"channels-list").toLowerCase().replace(":","")},getPlacementContext:function(a){return O.getAttributeContext(a,"placement").toLowerCase()},getPositionContext:function(a){return O.getAttributeContext(a,"position").toLowerCase().replace(":","")},getContentLinkText:function(a){return O.getAttributeContext(a,"link-text").toLowerCase().replace(":","")},getAttributeContext:function(a,b){var c=a.data(b)?a.data(b):a.parents("[data-"+b+"]").data(b);return"undefined"!=typeof c?c.toString().toLowerCase().replace('"',"_").replace("'","_"):""},makeList:function(a){function b(a){return a.toLowerCase()}return a.constructor===Array.prototype.constructor?a.map(b).join(":"):Array.prototype.map.call(arguments,b).join(":")},getCookie:function(a){var b,c=document.cookie.indexOf(a+"=");return-1!==c?(c=c+a.length+1,b=document.cookie.indexOf(";",c),-1===b&&(b=document.cookie.length),unescape(document.cookie.substring(c,b))):null},trigger:function(a,b,c,d){var e=["events"];a.constructor===Array.prototype.constructor&&(a=a.join(","));for(var f in b)e.push(f),window.s[f]=b[f];e=e.join(","),window.s.linkTrackVars=e,window.s.linkTrackEvents=a,window.s.events=a,s.tl(d?500:!0,"o",c)}}},{}],82:[function(a,b,c){var d=b.exports={errorArray:[],myModal:null,onPlayerReady:function(a,b){var c,d=5e3,e=0;c=setInterval(function(){var f=document.getElementById(a.id);f.addJScallback&&(clearInterval(c),b()),e++,e>d&&clearInterval(c)},33)},getCookie:function(a){var b=a,c=document.cookie.indexOf(b+"=");return-1!==c?(c=c+b.length+1,c_end=document.cookie.indexOf(";",c),-1===c_end&&(c_end=document.cookie.length),unescape(document.cookie.substring(c,c_end))):null},setCookie:function(a){var b={name:null,value:null,expire:null,path:"/"},c=new Date;if($.extend(b,a),null!==b.expire&&b.expire.constructor!==Date)throw new TypeError(["Date expected, ",typeof b.expire," encountered with constructor ",b.expire.constructor].join(""));null===b.expire&&(c.setTime(c.getTime()+31536e6),b.expire=c.toGMTString()),document.cookie=[b.name,"=",b.value,"; expires=",b.expire,"; path=",b.path].join("")},deleteCookie:function(a,b){var c={name:a,expire:new Date,path:b||null};c.expire.setDate(c.expire.getDate()-1),this.setCookie(c)},getCacheKiller:function(){var a=this.getCookie("cache_killer");return null===a&&(a=0),a},clearAllErrors:function(){var a;for(a in this.errorArray)this.errorArray.hasOwnProperty(a)&&this.errorArray[a].destroy()},dateToMySqlDays:function(a){var b,c,d,e;return"string"==typeof a&&(a=Date.parse(a)),a?(b=a.getFullYear(),c=a.getMonth(),d=a.getDate(),e=Date.UTC(b,c,d)/864e5,e+=719528):void 0},escapeHtml:function(a){return a.replace(/&/gim,"&").replace(/\"/gim,""").replace(/>/gim,">").replace(/1?"."+c[1]:"",f=/(\d+)(\d{3})/;f.test(d);)d=d.replace(f,"$1,$2");return b+d+e},getError:function(a){return this.errorArray[a]?this.errorArray[a]:void 0},getLoadFailureHTML:function(){var a=$('
'),b=$('
');return b.append($('')).append("There was a problem loading this dashboard component."),a.append(b),a},getProperFilename:function(a,b){var c,e,f,g,h,i=b?b:31;return a?(c=a.lastIndexOf("/"),e=a.lastIndexOf("."),f=a.substring(c+1,e),g=a.substring(e,a.length),h=d.truncate(f,i)+g.toUpperCase()):!1},hideError:function(a){this.errorArray[a]&&this.errorArray[a].hide()},iterate:function(a,b,c,d){var e,f,g;if(!a.length)throw new TypeError;e=a.length,f=0,g=function(){e>f?(b.call(d,a[f],f,a),f++,setTimeout(g,0)):c.call(d)},setTimeout(g,0)},mySqlDaysToDate:function(a){var b,c,d,e,f;if(!(""===a||parseInt(a,10)<0))return b=new Date,c=86400*(a-719528)*1e3,b.setTime(c),d=b.getUTCFullYear(),e=b.getUTCMonth(),f=b.getUTCDate(),new Date(d,e,f)},standardDateFormat:function(a){var b;if(a.constructor!==Date)throw new TypeError("Date expected, "+typeof a+" encountered with constructor "+a.constructor);return b=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],[b[a.getMonth()]," ",a.getDate(),", ",a.getFullYear()].join("")},graphDateFormat:function(a){var b;if(a.constructor!==Date)throw new TypeError("Date expected, "+typeof a+" encountered with constructor "+a.constructor);return b=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],[a.getDate(),b[a.getMonth()],a.getFullYear()].join("-")},monthDateFormat:function(a){var b;if(a.constructor!==Date)throw new TypeError("Date expected, "+typeof a+" encountered with constructor "+a.constructor);return b=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],[b[a.getMonth()],a.getFullYear()].join(" ")},trimDelegate:function(a){return a.substring(0,a.length-3)},trim:function(a){return null===a||void 0===a?"":a.replace(/^\s+|\s+$/g,"")},truncate:function(a,b){return a=this.trim(a),a&&a.length>b?a.substring(0,b-2)+"…":a},updateCacheKiller:function(a){var b,c,d,e="";a&&""!==a&&(e=";domain="+a),b=new Date,c=30,b.setDate(b.getDate()+c),d="cache_killer="+escape(Math.floor(1e9*Math.random()))+";expires="+b.toGMTString()+";path=/"+e,document.cookie=d},uncheckAll:function(a){$("#"+a+" input:checked").attr("checked",!1),$("#"+a+" input:selected").attr("selected",!1)},wrapHtmlTag:function(a){var b=a.elementId?" id='"+a.elementId+"'":"",c=a.elementClass?" class='"+a.elementClass+"'":"",d=a.elementName?" name='"+a.elementName+"'":"",e=a.elementValue?" value='"+a.elementValue+"'":"",f=a.onClick?" onClick='"+a.onClick+"'":"",g=a.onChange?' onChange="'+a.onChange+'"':"",h=a.elementSelected?" selected":"",i=a.forHtml?" for='"+a.forHtml+"'":"",j=a.maxlength?" maxlength='"+a.maxlength+"'":"",k=a.disabled?" disabled='"+a.disabled+"'":"",l=b+c+d+e+f+g+k+j+h+i,m="<"+a.tag+l+">";return m+=a.contents,m+=""},wrapInFormTag:function(a,b,c){var d=document.createElement("form");d.setAttribute("enctype","multipart/form-data"),d.setAttribute("encoding","multipart/form-data"),d.setAttribute("id","form"+c),void 0!==b&&d.setAttribute("class",b),$(a).wrap(d)},createUrlParams:function(a){var b,c=[],d="";for(b in a)a.hasOwnProperty(b)&&c.push(a[b].join("="));return d+=c.join("&")},UrlBuilder:function(a){function b(){var a,b=[];for(a in g)b.push([a,g[a]].join("="));return b.join("&")}var c,d,e,f,g={},h="",i="";if(this.addParam=function(a,b){return g[a]=b,this},this.removeParam=function(a){return delete g[a],this},this.getValue=function(a){return g[a]},this.getParams=function(){return g},this.getFullUrl=function(){return[h,b()].join("?")},c=a.split("?"),h=c[0],i=c[1]?c[1]:"",""!==i)for(d=i.split("&"),e=0;ea?"0"+a.toString(10):a.toString(10)};return a-=60*c*60,b=Math.floor(a/60),a-=60*b,[d(c),d(b),d(a)].join(":")},timeCodeToSeconds:function(a){for(var b,c=a.split(":"),d="",e=0,f=c.length;f>e;e++)c[e]=c[e].length<2?"0"+c[e]:c[e];for(;c.length<3;)c.unshift("00");return d=c.join(":"),b=Date.parse(d),60*b.getHours()*60+60*b.getMinutes()+b.getSeconds()},buildTrackedUrl:function(a,b,c,e,f){var g=new d.UrlBuilder(a.attr("href"));g.addParam("utm_source",b),g.addParam("utm_medium",c),g.addParam("utm_content",e),g.addParam("utm_campaign",f),a.attr(g.getFullUrl())},areCoordsWithinBox:function(a,b,c){return a[0]>=b[0]&&a[1]>=b[1]&&a[0]<=c[0]+b[0]&&a[1]<=c[1]+b[1]},upgradeToRetina:function(a){var b,c,d,e,f,g=/^url\(['"]?|['"]?\)$/gi,h={},i=!1;if(!(window.devicePixelRatio<=1||"undefined"==typeof window.devicePixelRation))for(e=0;e":"gt",'"':"quot","&":"amp","'":"apos"};return null!==a?a.replace(/[&<>\"']/g,function(a){return"&"+b[a]+";"}):a},findByData:function(a,b,c,d){return a.find(b+"[data-"+c+'="'+d+'"]')},getQueryStringParams:function(a){function b(a){return decodeURIComponent(a.replace(e," "))}var c,d,e=/\+/g,f=/([^&=]+)=?([^&]*)/g,g=a.search.substring(1);for(c={};d=f.exec(g);)c[b(d[1])]=b(d[2]);return c},isSecure:function(){return"https:"==window.location.protocol},matchProtocol:function(a){return this.isSecure(a)&&a.indexOf("http:")>=0?a.replace("http:","https:"):a},getReferrer:function(){return window.location!=window.parent.location?document.referrer:document.location.href}}},{}],83:[function(a,b,c){b.exports={getXHR:function(){return new window.XMLHttpRequest}}},{}],84:[function(a,b,c){function d(){(e.isDev()||e.isStaging())&&window.console.log.apply(window.console,arguments)}var e=a("../app/Config/Runtime");("undefined"==typeof window.console||"undefined"==typeof window.console.log)&&(window.console={log:function(){}}),b.exports=d},{"../app/Config/Runtime":48}],85:[function(a,b,c){function d(a){return"Advertisement ending in: "+Math.ceil(a)+" seconds."}function e(a){this.setText(d(a))}function f(){h.apply(this,arguments),this.setText("Advertisement ending in: 00 seconds.")}var g=a("util"),h=(a("./TimeCounterButton"),a("./TextButton")),i=a("../app/ExternalInterface").get(),j=a("../app/Model/PlayerEvents"),k=(a("../lib/Format"),a("../lib/Dom"));g.inherits(f,h),f.prototype.resize=function(){var a=k.getWindow().matchMedia("(min-width: 390px)");a.matches||this.view.$$("text")[0].setAttribute("font-size",32),h.prototype.resize.apply(this,arguments)},f.prototype.attachEvents=function(){i.addEventListener(j.AD_TIME_UPDATE,e.bind(this))},b.exports=f},{"../app/ExternalInterface":50,"../app/Model/PlayerEvents":52,"../lib/Dom":78,"../lib/Format":79,"./TextButton":106,"./TimeCounterButton":107,util:36}],86:[function(a,b,c){function d(a){this.boundEl=a,g.apply(this,arguments)}{var e='\n \n \n\n',f=a("util"),g=(a("../app/ExternalInterface").get(),a("./Component")),h=(a("./ComponentEvents"),a("../app/Config/Runtime"));a("../lib/Dom")}f.inherits(d,g),d.prototype.initView=function(){this.view=this.parseSvg(e),this.view.style.zIndex=6,this.view.style.position="absolute",this.textEl=this.view.$(".TooltipText"),this.hide()},d.prototype.attachEvents=function(){},d.prototype.calculatePositionCoord=function(){return{x:0,y:0}},d.prototype.show=function(a){var b;g.prototype.show.call(this),a&&(a.preventDefault(),b=this.calculatePositionCoord(a),this.position(b.x,b.y))},d.prototype.position=function(a,b){void 0!==a&&this.style("left",a),void 0!==b&&this.style("top",b)},d.prototype.isTouchFriendly=function(){return h.browser()==h.Browsers.IPAD||h.browser()==h.Browsers.ANDROID},d.prototype.setContent=function(a){this.textEl.textContent=a},b.exports=d},{"../app/Config/Runtime":48,"../app/ExternalInterface":50,"../lib/Dom":78,"./Component":88,"./ComponentEvents":89,util:36}],87:[function(a,b,c){function d(){this.emit(o.CLICK)}function e(a){return a.getAttribute("class")&&~a.getAttribute("class").indexOf("Component")}function f(a,b){for(;b;){if(e(b))return b===a;b=b.parentNode}}function g(a,b,c){c.setAttribute(a,b)}function h(a,b){p.forEach(function(c){m.$$(".highlight-"+c,a).filter(f.bind(void 0,a)).forEach(g.bind(void 0,c,b))})}function i(a){h(this.view,"#aaaaaa"),this.emit(o.MOUSEOVER)}function j(a){h(this.view,"#999999"),this.emit(o.MOUSEOUT)}function k(){n.apply(this,arguments)}var l=a("util"),m=(a("../lib/debug"),a("../lib/Dom")),n=a("./Component"),o=a("./ComponentEvents"),p=["stroke","fill"];l.inherits(k,n),k.prototype.attachEvents=function(){this.view.addEventListener("click",d.bind(this)),this.view.addEventListener("mouseenter",i.bind(this)),this.view.addEventListener("mouseleave",j.bind(this))},b.exports=k},{"../lib/Dom":78,"../lib/debug":84,"./Component":88,"./ComponentEvents":89,util:36}],88:[function(a,b,c){function d(){this.initView(),this.attachEvents(),this.resize(),this.position(),this.view&&(this.view.getAttribute("class")?this.view.setAttribute("class",this.view.getAttribute("class")+" Component"):this.view.setAttribute("class","Component"))}function e(){i.apply(this,arguments),this.translateFactorX=1,this.translateFactorY=1,this.minX=this.minY=this.maxX=this.minX=null,d.call(this)}a("../contrib/domparser"),a("../contrib/polyfills");var f=a("../lib/debug"),g=a("util"),h=a("./ComponentEvents"),i=a("events").EventEmitter;g.inherits(e,i),e.prototype.initView=function(){},e.prototype.attachEvents=function(){},e.prototype.resize=function(a,b){a&&this.view.setAttribute("width",a),b&&this.view.setAttribute("height",b),this.emit(h.RESIZE)},e.prototype.position=function(a,b){void 0!==a&&this.view.setAttribute("x",a),void 0!==b&&this.view.setAttribute("y",b)},e.prototype.getX=function(){return parseInt(this.view.getAttribute("x"),10)},e.prototype.getY=function(){return parseInt(this.view.getAttribute("y"),10)},e.prototype.parseSvg=function(a){var b=(new DOMParser).parseFromString(a,"image/svg+xml").documentElement;if("html"==b.tagName||"parsererror"==b.tagName){var c;try{c=b.getElementsByTagName("div").innerHTML}catch(d){}finally{throw new Error("Error parsing SVG: "+(c||"unknown error"))}}return b},e.prototype.parseHtml=function(a){var b,c;try{b=(new DOMParser).parseFromString(a,"text/html").body}catch(d){b=document.createElement("div"),b.innerHTML=a.replace("","")}finally{c=[].filter.call(b.childNodes,function(a){return 1===a.nodeType}).shift()}return c},e.prototype.appendChild=function(a){if(!this.view)return void f("WARNING: attempted to append child node to Component that has no view DOM");if(a instanceof Element)this.view.appendChild(a);else try{this.view.appendChild(a.view),this.view.getAttribute("viewBox")?a.setViewboxRatio(this.getViewboxWidth()/this.getWidth(),this.getViewboxHeight()/this.getHeight()):a.setViewboxRatio(1,1),a.emit(h.APPENDED,{target:this})}catch(b){f("append was attempted with an invalid object:",a),f(b)}},e.prototype.hide=function(){this.view&&(this.view.style.display="none")},e.prototype.show=function(){this.view&&(this.view.style.display="inline")},e.prototype.isHidden=function(){return this.view?"none"===this.view.style.display:!1},e.prototype.style=function(a,b){this.view&&(this.view.style[a]=b)},e.prototype.getWidth=function(){return this.view?parseInt(this.view.getAttribute("width"),10):void 0},e.prototype.getHeight=function(){return this.view?parseInt(this.view.getAttribute("height"),10):void 0},e.prototype.getViewboxWidth=function(){var a=this.view.getAttribute("viewBox").split(" ");return a[2]-a[0]},e.prototype.getViewboxHeight=function(){var a=this.view.getAttribute("viewBox").split(" ");return a[3]-a[1]},e.prototype.setViewboxRatio=function(a,b){this._scaleX=a,this._scaleY=b},e.prototype.transform=function(a,b,c,d,e,f){this.view.setAttribute("transform","matrix("+[a,b,c,d,e,f].join(",")+")")},e.prototype.setTranslationFactor=function(a,b){this.translateFactorX=a,this.translateFactorY=b},b.exports=e},{"../contrib/domparser":70,"../contrib/polyfills":73,"../lib/debug":84,"./ComponentEvents":89,events:7,util:36}],89:[function(a,b,c){b.exports={CLICK:"click",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEMOVE:"mousemove",APPENDED:"appended",READY:"ready",MOVE:"move",CHANGE:"change",ENGAGE:"engage",RELEASE:"release",RESIZE:"resize"}},{}],90:[function(a,b,c){function d(){try{return x.getProperty(A.IS_PLAYING)&&1.77==w.getAspectRatio()&&!x.getProperty(A.IS_VIDEO_AN_AD)}catch(a){return!0}}function e(){this.volume.show(),this.fadeTimer&&window.clearTimeout(this.fadeTimer)}function f(){this.fadeTimer=window.setTimeout(function(){this.volume.sliding?f.call(this):this.volume.hide()}.bind(this),5e3)}function g(){this.show(),this.progress.hide(),this.timeCounterButton.hide(),this.adTimeCounter.show(),this.adTimeCounter.resize()}function h(){this.progress.show(),this.timeCounterButton.show(),this.adTimeCounter.hide()}function i(){m.apply(this,arguments)}var j='\n \n \n \n \n\n',k=a("util"),l=(a("../lib/debug"),a("../app/Config/Runtime")),m=a("./Component"),n=a("./ComponentEvents"),o=a("./PlayPauseToggleButton"),p=a("./VolumeButton"),q=a("./VolumeInput"),r=a("./FullscreenButton"),s=a("./TimeCounterButton"),t=a("./AdTimeCounter"),u=a("./PlaybackProgress"),v=a("./Inline"),w=a("../lib/Dom"),x=a("../app/ExternalInterface").get(),y=a("../app/Model/PlayerEvents"),z=a("./TextButton"),A=a("../app/Model/PlayerProperties");k.inherits(i,m),i.prototype.initView=function(){this.view=this.parseSvg(j),this.rightSide=new v,this.playPauseToggle=new o,this.appendChild(this.playPauseToggle),this.progress=new u,this.progress.setValue(0),this.appendChild(this.progress),this.timeCounterButton=new s,this.rightSide.add(this.timeCounterButton),this.appendChild(this.timeCounterButton),this.volumeButton=new p,l.isMobile()||(this.rightSide.add(this.volumeButton),this.appendChild(this.volumeButton)),this.fullscreenToggle=new r,this.rightSide.add(this.fullscreenToggle),this.appendChild(this.fullscreenToggle),this.volume=new q,this.volume.hide(),this.adTimeCounter=new t,this.appendChild(this.adTimeCounter),this.adTimeCounter.hide();var a=l.getBrand();a&&"maker.tv"!==a.brandname.toLowerCase()&&(this.brandLink=new z,this.brandLink.setText(a.brandname),this.brandLink.setHref(a.brandlink),this.rightSide.add(this.brandLink),this.appendChild(this.brandLink))},i.prototype.attachEvents=function(){this.once(n.APPENDED,function(a){a.target.appendChild(this.volume),this.brandLink&&this.brandLink.resize(),this.resize(),this.position()}.bind(this)),this.volumeButton.on(n.MOUSEOUT,f.bind(this)),this.volumeButton.on(n.MOUSEOVER,e.bind(this)),this.volume.on(n.MOUSEOUT,f.bind(this)),this.volume.on(n.MOUSEOVER,e.bind(this)),x.addEventListener(y.AD_STARTED,g.bind(this)),x.addEventListener(y.AD_ENDED,h.bind(this))},i.prototype.resize=function(){var a=w.getDocument().body.clientWidth,b=l.getControlSize(),c=100,d=a*(c/b);background=this.view.getElementsByClassName("Background")[0],this.view.setAttribute("width",a),this.view.setAttribute("height",b),this.view.setAttribute("viewBox",[0,0,d,c].join(" ")),background.setAttribute("width",d),background.setAttribute("height",c),this.progress.resize(this.getViewboxWidth()-this.rightSide.getWidth()-this.playPauseToggle.getWidth()-8,50),this.adTimeCounter.resize(),[this.volumeButton,this.playPauseToggle,this.timeCounterButton,this.progress,this.fullscreenToggle].forEach(function(e){e.setViewboxRatio(a/d,b/c)})},i.prototype.position=function(a,b){var c,d,e;m.prototype.position.apply(this,arguments),this.playPauseToggle.position(4),this.progress.position(this.playPauseToggle.getWidth()+4,(this.getViewboxHeight()-this.progress.getHeight())/2),this.adTimeCounter.position(this.playPauseToggle.getWidth()+4),this.rightSide.position(this.playPauseToggle.getWidth()+this.progress.getWidth(),0),c=this.volumeButton.getX()/this.getViewboxWidth()*this.getWidth(),d=this.volumeButton.getWidth()/this.getViewboxWidth()*this.getWidth(),e=c+(d-this.volume.getWidth())/2,this.volume.style("left",e+"px"),this.volume.style("bottom",this.getHeight()+5+"px")},i.prototype.show=function(){this.view.classList.remove("control-bar-hide"),this.view.classList.remove("control-bar-hide-immediately")},i.prototype.hide=function(){d()&&!this.isHidden()&&(this.view.classList.add("control-bar-hide"),this.volume.hide())},i.prototype.hideImmediately=function(){this.view.classList.add("control-bar-hide-immediately")},i.prototype.isHidden=function(){return this.view.classList.contains("control-bar-hide")},b.exports=i},{"../app/Config/Runtime":48,"../app/ExternalInterface":50,"../app/Model/PlayerEvents":52,"../app/Model/PlayerProperties":54,"../lib/Dom":78,"../lib/debug":84,"./AdTimeCounter":85,"./Component":88,"./ComponentEvents":89,"./FullscreenButton":93,"./Inline":94,"./PlayPauseToggleButton":101,"./PlaybackProgress":102,"./TextButton":106,"./TimeCounterButton":107,"./VolumeButton":108,"./VolumeInput":109,util:36}],91:[function(a,b,c){function d(){f.call(this,!1)}function e(){f.call(this,!0)}function f(a){this._canPause=a}function g(a){return this._canPause&&!this.controlBar.isHidden()&&"VIDEO"==a.tagName.toUpperCase()}function h(){this.controlBar.hide.call(this.controlBar)}function i(){this.controlBar.show(),j.call(this)}function j(){window.clearTimeout(this._hideControlBarTimer),this._hideControlBarTimer=window.setTimeout(h.bind(this),5e3)}function k(){i.call(this)}function l(){i.call(this),window.clearTimeout(this._hideControlBarTimer)}function m(){i.call(this)}function n(a){g.call(this,a.target)&&y.send(w.PAUSE),i.call(this)}function o(){this.controlBar.resize(),this.controlBar.position()}function p(a){this.container=a,q.apply(this,arguments)}{var q=a("./Component"),r=a("./ControlBar"),s=a("./LikeButton"),t=a("./LikeNotification"),u=(a("../lib/Dom"),a("../app/Config/Runtime")),v=a("util"),w=(a("./ComponentEvents"),a("../app/Model/PlayerMessages")),x=a("../app/Model/PlayerEvents"),y=a("../app/ExternalInterface").get();a("../app/Model/PlayerProperties")}v.inherits(p,q),p.prototype.initView=function(){this.view=this.container,u.isMobile()&&!u.isIphone()&&(this.controlBar=new r,this.controlBar.hideImmediately(),this.appendChild(this.controlBar)),this.likeBtn=new s,this.likeNote=new t,this.appendChild(this.likeBtn),this.appendChild(this.likeNote)},p.prototype.attachEvents=function(a){this.likeBtn.on("liked",this.likeNote.show.bind(this.likeNote)),u.isMobile()&&!u.isIphone()&&(window.addEventListener("resize",o.bind(this)),this.view.addEventListener("mousemove",k.bind(this)),this.view.addEventListener("touchmove",k.bind(this)),this.view.addEventListener("touchstart",n.bind(this)),y.addEventListener(x.PLAYING,e.bind(this)),y.addEventListener(x.PLAYBACK_START,e.bind(this)),y.addEventListener(x.PAUSED,d.bind(this)),y.addEventListener(x.AD_STARTED,l.bind(this)),y.addEventListener(x.AD_ENDED,m.bind(this)))},b.exports=p},{"../app/Config/Runtime":48,"../app/ExternalInterface":50,"../app/Model/PlayerEvents":52,"../app/Model/PlayerMessages":53,"../app/Model/PlayerProperties":54,"../lib/Dom":78,"./Component":88,"./ComponentEvents":89,"./ControlBar":90,"./LikeButton":95,"./LikeNotification":98,util:36}],92:[function(a,b,c){function d(a){var b,c;this.hidden||(b=Math.floor(a),c=Math.floor(this.time),b>=c&&!i.getProperty(k.IS_VIDEO_AN_AD)&&(this.hide(),this.hidden=!0))}function e(a){this.time=a,g.apply(this,arguments)}var f='\n \n\n',g=(a("../lib/Dom"),a("./Component")),h=a("util"),i=a("../app/ExternalInterface").get(),j=a("../app/Model/PlayerEvents"),k=a("../app/Model/PlayerProperties");h.inherits(e,g),e.prototype.initView=function(){this.view=this.parseSvg(f)},e.prototype.position=function(a,b){void 0!==a&&(a-=this.getWidth()/2),g.prototype.position.call(this,a,b)},e.prototype.attachEvents=function(){i.addEventListener(j.TIME_UPDATE,d.bind(this))},b.exports=e},{"../app/ExternalInterface":50,"../app/Model/PlayerEvents":52,"../app/Model/PlayerProperties":54,"../lib/Dom":78,"./Component":88,util:36}],93:[function(a,b,c){function d(){i.send(j.FULLSCREEN)}function e(){h.apply(this,arguments)}var f='\n \n \n \n \n \n\n',g=a("util"),h=a("./Button"),i=a("../app/ExternalInterface").get(),j=a("../app/Model/PlayerMessages"),k=a("./ComponentEvents"),l=a("../app/Config/Runtime");g.inherits(e,h),e.prototype.initView=function(){this.view=this.parseSvg(f)},e.prototype.attachEvents=function(){h.prototype.attachEvents.call(this),this.on(k.CLICK,d.bind(this))},e.prototype.isSupported=function(){return l.browser()!=l.Browsers.IPHONE},b.exports=e},{"../app/Config/Runtime":48,"../app/ExternalInterface":50,"../app/Model/PlayerMessages":53,"./Button":87,"./ComponentEvents":89,util:36}],94:[function(a,b,c){function d(){var a=this._x,b=this._y;this._components.reduce(function(c,d){return d.position(c+a,b),c+d.getWidth()},0)}function e(){h.call(this),this._x=this._y=0,this._components=[]}var f=a("util"),g=a("./ComponentEvents"),h=a("events").EventEmitter;f.inherits(e,h),e.prototype.add=function(a){this._components.push(a),a.addListener(g.RESIZE,d.bind(this)),d.call(this)},e.prototype.position=function(a,b){this._x=a,this._y=b,d.call(this),this.emit(g.MOVE)},e.prototype.getWidth=function(){return this._components.reduce(function(a,b){ return a+b.getWidth()},0)},e.prototype.getHeight=function(){return this._components.reduce(function(a,b){return Math.max(a,b.getHeight())},0)},b.exports=e},{"./ComponentEvents":89,events:7,util:36}],95:[function(a,b,c){function d(){return n.getProperty(p.CURRENT_TIME)}function e(){k.userHasRated()||(k.rate(1),this.emit("liked"))}function f(){var a=k.getCurrentRatingType()==k.RatingTypes.LIKE,b=this.view.classList.contains("Available"),c=n.getProperty(p.IS_VIDEO_AN_AD);a&&d()>=10?b||c||(this.view.classList.add("Available"),g.call(this)):this.view.classList.remove("Available")}function g(a){clearTimeout(this.shadeTimeout),a&&a(),this.shadeTimeout=setTimeout(function(){this.classList.remove("Unshade"),this.classList.add("Shade")}.bind(this.view),t)}function h(){q.apply(this,arguments)}var i='\n\n',j=a("util"),k=a("../app/data/rating"),l=a("./dropshadow"),m=a("../app/Config/Runtime"),n=a("../app/ExternalInterface").get(),o=a("../app/Model/PlayerEvents"),p=a("../app/Model/PlayerProperties"),q=a("./Button"),r=a("./LikeIcon"),s=a("./LikeCount"),t=5e3;j.inherits(h,q),h.prototype.initView=function(){this.view=this.parseHtml(i),this.icon=new r,m.browser()!==m.Browsers.IE&&m.browser()!==m.Browsers.SAFARI?(this.icon.removeDropShadow(),this.view.classList.remove("Shadow"),l.applyTo(this.view)):this.view.classList.add("Shadow"),this.view.replaceChild(this.icon.view,this.view.querySelector("[data-component=Icon]")),this.count=new s,this.view.replaceChild(this.count.view,this.view.querySelector("[data-component=Count]"))},h.prototype.attachEvents=function(){var a=g.bind(this),b=e.bind(this);k.addListener("ratingUpdate",f.bind(this)),n.addEventListener(o.TIME_UPDATE,f.bind(this)),n.addEventListener(o.PLAYBACK_END,function(){this.view.classList.remove("Available")}.bind(this)),n.addEventListener(o.AD_STARTED,function(){this.view.classList.remove("Available")}.bind(this)),n.addEventListener("player.request.newEpisode",function(){this.view.classList.remove("Available")}.bind(this)),k.addListener("userUpdate",function(){1===k.getCurrentRating()?this.view.classList.add("HasLiked"):this.view.classList.remove("HasLiked")}.bind(this)),this.view.addEventListener("touchstart",function(c){this.view.classList.contains("Unshade")&&b(),this.view.classList.add("Unshade"),a(),c.stopPropagation(),c.preventDefault()}.bind(this)),this.view.addEventListener("click",function(){this.view.classList.add("Unshade"),a(),b()}.bind(this)),this.view.addEventListener("mouseover",function(b){this.view.classList.add("Unshade"),a()}.bind(this))},b.exports=h},{"../app/Config/Runtime":48,"../app/ExternalInterface":50,"../app/Model/PlayerEvents":52,"../app/Model/PlayerProperties":54,"../app/data/rating":67,"./Button":87,"./LikeCount":96,"./LikeIcon":97,"./dropshadow":110,util:36}],96:[function(a,b,c){function d(a){for(var b=0;a>=1e3;)a/=1e3,b++;return a=parseFloat(a.toPrecision(3).split("e+").shift(),10),b=["","K","M","B"][b],[a,b].join("")}function e(){h.apply(this,arguments)}var f='\n\n\n',g=a("util"),h=a("./Component"),i=a("../app/data/rating");g.inherits(e,h),e.prototype.initView=function(){this.view=this.parseHtml(f)},e.prototype.attachEvents=function(){i.addListener("ratingUpdate",function(){this.view.innerHTML=d(i.getResults().filter(function(a){return 1==a.rating}).shift().count)}.bind(this))},b.exports=e},{"../app/data/rating":67,"./Component":88,util:36}],97:[function(a,b,c){(function(c){function d(a,b){~c.navigator.userAgent.indexOf("Trident")||~c.navigator.userAgent.indexOf("Firefox")?[].forEach.call(b.getElementsByTagName("path"),a):a(b)}function e(){i.apply(this,arguments)}var f='\r\n',g=a("util"),h=a("./dropshadow"),i=a("./Component");g.inherits(e,i),e.prototype.initView=function(){this.view=this.parseSvg(f),d(h.applyTo,this.view)},e.prototype.removeDropShadow=function(){d(h.removeFrom,this.view)},b.exports=e}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Component":88,"./dropshadow":110,util:36}],98:[function(a,b,c){function d(a,b){var c;a.classList?a.classList.add(b):(c=a.className.baseVal?a.className.baseVal.split(" "):a.className.split(" "),~c.indexOf(b)||c.push(b),a.setAttribute("class",c.join(" ")))}function e(a,b){var c;a.classList?a.classList.remove(b):(c=a.className.baseVal?a.className.baseVal.split(" "):a.className.split(" "),a.setAttribute("class",c.filter(function(a){return a!==b}).join(" ")))}function f(){h.apply(this,arguments)}{var g=a("util"),h=a("./LikeIcon");a("./Component")}g.inherits(f,h),f.prototype.initView=function(){h.prototype.initView.apply(this,arguments),d(this.view,"Notification")},f.prototype.show=function(){d(this.view,"Show"),setTimeout(function(){e(this.view,"Show")}.bind(this),750)},b.exports=f},{"./Component":88,"./LikeIcon":97,util:36}],99:[function(a,b,c){(function(c){function d(){j.send(k.PAUSE)}function e(){h.apply(this,arguments)}var f=c("PHN2ZyB2ZXJzaW9uPSIxLjEiCiAgICAgICAgYmFzZVByb2ZpbGU9ImJhc2ljIgogICAgICAgIHZpZXdCb3g9IjAgMCAxMDAgMTAwIgogICAgICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgICAgICBjbGFzcz0iUGF1c2VCdXR0b24iPgoJPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIG9wYWNpdHk9IjAiIC8+Cgk8cGF0aCBzdHJva2Utd2lkdGg9IjE1IgoJCWNsYXNzPSJoaWdobGlnaHQtc3Ryb2tlIgoJCXN0cm9rZT0iIzk5OTk5OSIKCQlkPSJNIDM1IDIwIEwgMzUgODAgTSA2NSAyMCBMIDY1IDgwIj4KCTwvcGF0aD4KPC9zdmc+Cg==","base64"),g=a("util"),h=a("./Button"),i=a("./ComponentEvents"),j=a("../app/ExternalInterface").get(),k=a("../app/Model/PlayerMessages");g.inherits(e,h),e.prototype.initView=function(){this.view=this.parseSvg(f)},e.prototype.attachEvents=function(){h.prototype.attachEvents.call(this),this.on(i.CLICK,d.bind(this))},b.exports=e}).call(this,a("buffer").Buffer)},{"../app/ExternalInterface":50,"../app/Model/PlayerMessages":53,"./Button":87,"./ComponentEvents":89,buffer:3,util:36}],100:[function(a,b,c){function d(){this.view.getElementsByTagName("path")[0].setAttribute("stroke","#aaaaaa"),this.view.getElementsByTagName("path")[0].setAttribute("fill","#aaaaaa")}function e(){this.view.getElementsByTagName("path")[0].setAttribute("stroke","#999999"),this.view.getElementsByTagName("path")[0].setAttribute("fill","#999999")}function f(){k.send(l.PLAY)}function g(){j.apply(this,arguments)}var h='\n \n \n \n\n',i=a("util"),j=a("./Button"),k=a("../app/ExternalInterface").get(),l=a("../app/Model/PlayerMessages"),m=a("./ComponentEvents");i.inherits(g,j),g.prototype.initView=function(){this.view=this.parseSvg(h)},g.prototype.attachEvents=function(){j.prototype.attachEvents.call(this),this.on(m.CLICK,f.bind(this)),this.view.addEventListener("mouseover",d.bind(this)),this.view.addEventListener("mouseout",e.bind(this))},b.exports=g},{"../app/ExternalInterface":50,"../app/Model/PlayerMessages":53,"./Button":87,"./ComponentEvents":89,util:36}],101:[function(a,b,c){function d(){this.pauseButton.hide(),this.playButton.show()}function e(){this.playButton.hide(),this.pauseButton.show()}function f(){i.apply(this,arguments)}var g=a("util"),h='\n\n',i=a("./Component"),j=a("./PlayButton"),k=a("./PauseButton"),l=a("./ComponentEvents"),m=(a("../lib/Dom"),a("../app/ExternalInterface").get()),n=(a("../app/Model/PlayerMessages"),a("../app/Model/PlayerEvents"));g.inherits(f,i),f.prototype.initView=function(){this.view=this.parseSvg(h),this.playButton=new j,this.pauseButton=new k,this.pauseButton.hide(),this.appendChild(this.playButton),this.appendChild(this.pauseButton)},f.prototype.attachEvents=function(){this.playButton.on(l.CLICK,e.bind(this)),this.pauseButton.on(l.CLICK,d.bind(this)),m.addEventListener(n.PLAYING,e.bind(this)),m.addEventListener(n.PLAYBACK_START,e.bind(this)),m.addEventListener(n.PAUSED,d.bind(this)),m.addEventListener(n.AD_STARTED,e.bind(this))},b.exports=f},{"../app/ExternalInterface":50,"../app/Model/PlayerEvents":52,"../app/Model/PlayerMessages":53,"../lib/Dom":78,"./Component":88,"./ComponentEvents":89,"./PauseButton":99,"./PlayButton":100,util:36}],102:[function(a,b,c){function d(a){this.fillClip.setAttribute("transform","translate("+this.getFillPosition(a).join(",")+")")}function e(a){var b,c=r.getEventPageXY(a),d=r.getWindowOffset(),e=this.view.getBoundingClientRect();b=f(c,d,e),this.progressTooltip.setContent(s.episodeTime(b))}function f(a,b,c){var d=(a.x-(c.left+b.x))/c.width;return d*o.getProperty(u.DURATION)}function g(a){return a.filter(function(a){return a>0})}function h(){var a=o.getProperty(u.CUE_POINTS);a&&(a=g(a),a.forEach(function(a){var b=new v(a);this.appendChild(b),i.call(this,b),j.call(this,b),this.cuePoints.push(b)},this))}function i(a){a.resize(this.getHeight(),this.getHeight())}function j(a){var b=a.time/o.getProperty(u.DURATION)*this.getWidth();a.position(b)}function k(){this.setValue(0),this.cuePoints=[],m.apply(this,arguments)}var l=a("util"),m=(a("../lib/debug"),a("./RangeInput")),n=a("./ComponentEvents"),o=a("../app/ExternalInterface").get(),p=a("../app/Model/PlayerEvents"),q=a("./PlaybackProgressTooltip"),r=a("../lib/Dom"),s=a("../lib/Format"),t=a("../app/Model/PlayerMessages"),u=a("../app/Model/PlayerProperties"),v=a("./CuePoint");l.inherits(k,m),k.prototype.initView=function(){m.prototype.initView.apply(this,arguments),this.fillBox.setAttribute("visibility","hidden"),this.progressTooltip=new q(this.view)},k.prototype.attachEvents=function(){m.prototype.attachEvents.apply(this,arguments),this.on(n.ENGAGE,function(){this._engaged=!0}.bind(this)),this.on(n.RELEASE,function(){this._engaged=!1,o.send(t.SEEK,this.getValue())}.bind(this)),o.addEventListener(p.TIME_UPDATE,function(a){this._engaged||this.setValue(a/o.getProperty(u.DURATION))}.bind(this)),o.addEventListener(p.BUFFER_PROGRESS,function(a){d.call(this,a),this.fillBox.setAttribute("visibility","visible")}.bind(this)),o.addEventListener(p.ADS_READY,h.bind(this)),this.progressTooltip.isTouchFriendly()?this.view.addEventListener("touchmove",e.bind(this)):this.view.addEventListener("mousemove",e.bind(this))},k.prototype.position=function(){m.prototype.position.apply(this,arguments),this.cuePoints.forEach(j,this)},k.prototype.resize=function(a,b){m.prototype.resize.call(this,a,b);var c;this.view.parentNode.getAttribute&&(c=parseInt(this.view.parentNode.getAttribute("height"),10),this.progressTooltip.resize(c,c)),this.cuePoints.forEach(i,this)},b.exports=k},{"../app/ExternalInterface":50,"../app/Model/PlayerEvents":52,"../app/Model/PlayerMessages":53,"../app/Model/PlayerProperties":54,"../lib/Dom":78,"../lib/Format":79,"../lib/debug":84,"./ComponentEvents":89,"./CuePoint":92,"./PlaybackProgressTooltip":103,"./RangeInput":105,util:36}],103:[function(a,b,c){function d(a){e.apply(this,arguments)}var e=a("./BaseTooltip"),f=a("util"),g=a("../lib/Dom");f.inherits(d,e),d.prototype.initView=function(){e.prototype.initView.apply(this,arguments),g.getDocument().body.appendChild(this.view)},d.prototype.attachEvents=function(){this.isTouchFriendly()?(this.boundEl.addEventListener("touchmove",this.show.bind(this)),this.boundEl.addEventListener("touchstart",this.show.bind(this)),this.boundEl.addEventListener("touchend",this.hide.bind(this))):(this.boundEl.addEventListener("mousemove",this.show.bind(this)),this.boundEl.addEventListener("mouseenter",this.show.bind(this)),this.boundEl.addEventListener("mouseleave",this.hide.bind(this)))},d.prototype.show=function(a){var b,c;e.prototype.show.call(this,a),a&&(b=g.getEventPageXY(a),c=this.boundEl.getBoundingClientRect(),(b.xc.right)&&this.hide())},d.prototype.calculatePositionCoord=function(a){var b={},c=this.boundEl.getBoundingClientRect();return b.x=g.getEventPageXY(a).x-this.view.offsetWidth/2,b.y=c.top-this.view.offsetHeight-10,b},b.exports=d},{"../lib/Dom":78,"./BaseTooltip":86,util:36}],104:[function(a,b,c){function d(a){f.call(this,a,!0)}function e(a){f.call(this,a,1===a.changedTouches.length)}function f(a,b){var c=k.getEventPageXY(a);b&&this.emit(l.ENGAGE,{position:[c.x,c.y]}),a.preventDefault(),a.stopPropagation()}function g(){j.apply(this,arguments)}var h='\n\n \n \n \n\n\n\n',i=a("util"),j=(a("../lib/debug"),a("./Button")),k=a("./../lib/Dom"),l=a("./ComponentEvents");i.inherits(g,j),g.prototype.initView=function(){var a=this.parseSvg(h);this.view=a.querySelector("g"),this.svg=a.querySelector("svg")},g.prototype.attachEvents=function(){j.prototype.attachEvents.call(this),this.view.addEventListener("mousedown",d.bind(this)),this.view.addEventListener("touchstart",e.bind(this))},g.prototype.position=function(a,b){a&&this.svg.setAttribute("x",a),b&&this.svg.setAttribute("y",b)},g.prototype.translate=function(a,b){this.view.setAttribute("transform","translate("+a+","+b+")")},g.prototype.resize=function(a,b){a&&this.svg.setAttribute("width",a),b&&this.svg.setAttribute("height",b)},b.exports=g},{"../lib/debug":84,"./../lib/Dom":78,"./Button":87,"./ComponentEvents":89,util:36}],105:[function(a,b,c){function d(a){this._clickStartX=a.position[0],this._clickStartY=a.position[1],this._dragging=!0,this.emit(p.ENGAGE,a)}function e(a,b){this._dragging&&(this.getWidth()>this.getHeight()?(this._handleTranslateX=this.clamp(this._handleTranslateX+(a-this._clickStartX)/this._scaleX,0,this._maxHandleTranslateX),this.setValue(this._handleTranslateX/this._maxHandleTranslateX)):(this._handleTranslateY=this.clamp(this._handleTranslateY+(b-this._clickStartY)/this._scaleY,0,this._maxHandleTranslateY),this.setValue(1-this._handleTranslateY/this._maxHandleTranslateY)),this._clickStartX=a,this._clickStartY=b)}function f(a){e.call(this,a.clientX,a.clientY)}function g(a){e.call(this,a.touches.item(0).clientX,a.touches.item(0).clientY)}function h(a){this._dragging&&(this._dragging=!1,this.emit(p.RELEASE))}function i(a){var b=n.getEventPageXY(a);b=[b.x,b.y],this.setValue(this.getValueFromPosition.apply(this,b)),d.call(this,{position:b})}function j(){q.apply(this,arguments),this._handleTranslateX=this._handleTranslateY=0}function k(a,b,c,d){var e=d-(a+c/2);return this.clamp(e/(b-c))}var l='\n \n \n \n \n \n\n',m=a("util"),n=(a("../lib/debug"),a("../lib/Dom")),o=a("node-uuid"),p=a("./ComponentEvents"),q=a("./Button"),r=a("./RangeHandle");m.inherits(j,q),j.prototype._vertical={getHandlePosition:function(a,b){return[0,a-b*a]},getFillPosition:function(a,b,c){return[0,a-c*a+b]},getValueFromPosition:function(a,b){var c=this.view.getBoundingClientRect();return 1-k.call(this,c.top,c.height,c.width,b)}},j.prototype._horizontal={getHandlePosition:function(a,b){return[b*a,0]},getFillPosition:function(a,b,c){return a+=b,[c*a-a,0]},getValueFromPosition:function(a,b){var c=this.view.getBoundingClientRect();return k.call(this,c.left,c.width,c.height,a)}},j.prototype.initView=function(){var a=this.parseSvg(l),b=o.v1();a.querySelector("#ValueFill").id=b,a.querySelector(".FillBox").setAttribute("clip-path","url(#"+b+")"),this.view=a,this.handle=new r,this.appendChild(this.handle),this.boundingBox=this.view.querySelector(".BoundingBox"),this.fillClip=this.view.querySelector(".FillClip"),this.fillBox=this.view.querySelector(".FillBox")},j.prototype.attachEvents=function(){function a(a,b){this.view.addEventListener(b,a)}q.prototype.attachEvents.apply(this,arguments),this.handle.on(p.ENGAGE,d.bind(this)),n.getDocument().addEventListener("mousemove",f.bind(this)),n.getDocument().addEventListener("mouseup",h.bind(this)),n.getDocument().addEventListener("touchmove",g.bind(this)),["touchstart","mousedown"].forEach(a.bind(this,i.bind(this))),["touchend","mouseup"].forEach(a.bind(this,h.bind(this))),this.on(p.CHANGE,function(a){var b=this.getHandlePosition(a.percent);this._handleTranslateX=b[0],this._handleTranslateY=b[1],this.handle.translate.apply(this.handle,b)}.bind(this))},j.prototype.resize=function(a,b){var c;q.prototype.resize.apply(this,arguments),a=a||this.getWidth(),b=b||this.getHeight(),c=a>b?b/2:a/2,a&&b&&(this.boundingBox.setAttribute("width",a),this.boundingBox.setAttribute("height",b),this.fillClip.setAttribute("width",a),this.fillClip.setAttribute("height",b),this.fillBox.setAttribute("width",a),this.fillBox.setAttribute("height",b),this.boundingBox.setAttribute("rx",c),this.boundingBox.setAttribute("ry",c),this.fillBox.setAttribute("rx",c),this.fillBox.setAttribute("ry",c),this.handle.resize(2*c,2*c),this.handle.position(0,0)),this._maxHandleTranslateY=b-2*c,this._maxHandleTranslateX=a-2*c,b>a?(this.getHandlePosition=this._vertical.getHandlePosition.bind(this,this._maxHandleTranslateY),this.getFillPosition=this._vertical.getFillPosition.bind(this,this._maxHandleTranslateY,c),this.getValueFromPosition=this._vertical.getValueFromPosition.bind(this)):(this.getHandlePosition=this._horizontal.getHandlePosition.bind(this,this._maxHandleTranslateX),this.getFillPosition=this._horizontal.getFillPosition.bind(this,this._maxHandleTranslateX,c),this.getValueFromPosition=this._horizontal.getValueFromPosition.bind(this)),this.handle.translate.apply(this.handle,this.getHandlePosition(0)),this.fillClip.setAttribute("transform","translate("+this.getFillPosition(0).join(",")+")")},j.prototype.clamp=function(a,b,c){return b=b||0,c=c||1,Math.max(b,Math.min(c,a))},j.prototype.setValue=function(a){a=this.clamp(a),a!==this._value&&(this._value=a,this.emit(p.CHANGE,{percent:a}))},j.prototype.getValue=function(){return this._value},b.exports=j},{"../lib/Dom":78,"../lib/debug":84,"./Button":87,"./ComponentEvents":89,"./RangeHandle":104,"node-uuid":39,util:36}],106:[function(a,b,c){function d(){g.apply(this,arguments)}var e='\n \n \n \n \n\n',f=a("util"),g=a("./Button"),h=a("../lib/debug");f.inherits(d,g),d.prototype.initView=function(){this.view=this.parseSvg(e)},d.prototype.setText=function(a){this.view.$$("text")[0].textContent=a,this.resize()},d.prototype.setHref=function(a){var b=this.view.$$("a")[0];b.setAttribute("xlink:href",a),b.setAttribute("target","_blank")},d.prototype.resize=function(){try{var a=[this.view.$$("text")[0].getBBox().width+12,this.getHeight()];this.view.setAttribute("viewBox",[0,0].concat(a).join(" ")),g.prototype.resize.apply(this,a)}catch(b){h("TextButton.prototype.resize Error: getBBox might have failed")}},b.exports=d},{"../lib/debug":84,"./Button":87,util:36}],107:[function(a,b,c){function d(a){this.currentTime=a,this.setText(this.state.getFormattedTime.call(this))}function e(a){this.duration=a,d.call(this,0)}function f(){this.state.onClick.call(this),this.setText(this.state.getFormattedTime.call(this))}function g(){this.state=p,j.apply(this,arguments)}var h='\n \n 0:00\n\n',i=a("util"),j=a("./Button"),k=a("../app/ExternalInterface").get(),l=a("../app/Model/PlayerEvents"),m=a("./ComponentEvents"),n=(a("../app/Config/Runtime"),a("../lib/Format")),o={getFormattedTime:function(){return"-"+n.episodeTime(this.duration-this.currentTime)},onClick:function(){this.state=p}},p={getFormattedTime:function(){return n.episodeTime(this.currentTime)},onClick:function(){this.state=o}};i.inherits(g,j),g.prototype._timeElapsedState=p,g.prototype._timeRemainingState=o,g.prototype.initView=function(){this.view=this.parseSvg(h)},g.prototype.attachEvents=function(){j.prototype.attachEvents.call(this),k.addEventListener(l.TIME_UPDATE,d.bind(this)),k.addEventListener(l.DURATION_CHANGE,e.bind(this)),this.on(m.CLICK,f.bind(this))},g.prototype.setText=function(a){this.view.$$("text")[0].textContent=a},b.exports=g},{"../app/Config/Runtime":48,"../app/ExternalInterface":50,"../app/Model/PlayerEvents":52,"../lib/Format":79,"./Button":87,"./ComponentEvents":89,util:36}],108:[function(a,b,c){(function(c){function d(){f.call(this,m.getProperty(n.VOLUME))}function e(){this.muted=!this.muted,this.setAudible(this.muted?!1:this.volume),this.muted?m.send(p.VOLUME_CHANGE,0):m.send(p.VOLUME_CHANGE,this.volume)}function f(a){i("volume change:"+a),this.muted||(this.volume=a,this.setAudible(a))}function g(){k.apply(this,arguments)}var h=a("util"),i=a("../lib/debug"),j=c("PHN2ZyB2ZXJzaW9uPSIxLjEiCgkJYmFzZVByb2ZpbGU9ImJhc2ljIgoJCXZpZXdCb3g9IjAgMCAxMDAgMTAwIgoJCWhlaWdodD0iMTAwIgoJCXdpZHRoPSIxMDAiCgkJeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgoJCWNsYXNzPSJWb2x1bWVCdXR0b24iPgoKCTxkZWZzPgoJICAgIDxtYXNrIGlkPSJTcGVha2VyU2hpbmUiPgoJCQk8cmVjdCBoZWlnaHQ9IjEwMCIgd2lkdGg9IjEwMCIgeD0iMCIgeT0iMCIgZmlsbD0iI0ZGRkZGRiIgLz4KCQkJPHJlY3QgaGVpZ2h0PSI0IiB3aWR0aD0iMTMiIHg9IjMyIiB5PSI0NCIgZmlsbD0iIzAwMDAwMCIgLz4KCQk8L21hc2s+Cgk8L2RlZnM+CgoJPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIG9wYWNpdHk9IjAiLz4KCgk8cGF0aCBmaWxsPSIjOTk5OTk5IiBzdHJva2Utd2lkdGg9IjAiIG1hc2s9InVybCgjU3BlYWtlclNoaW5lKSIgY2xhc3M9ImhpZ2hsaWdodC1maWxsIgoJCWQ9Ik0gMjggNDAgTCA0MCA0MCBMIDUxIDI4IEwgNTEgNzIgTCA0MCA2MCBMIDI4IDYwIEwgMjggNDAiPgoJPC9wYXRoPgoKCTwhLS0gdGhlIHNvdW5kd2F2ZXMgLS0+Cgk8cGF0aCBzdHJva2U9IiM5OTk5OTkiIHN0cm9rZS13aWR0aD0iNCIgZmlsbD0ibm9uZSIgY2xhc3M9IkF1ZGlvRW5hYmxlZCBoaWdobGlnaHQtc3Ryb2tlIgoJCWQ9Ik0gNTggMzAgQSAxNSAxNSAwIDAgMSA1OCA3MCBNIDU4IDM4IEEgOCA4IDAgMCAxIDU4IDYyIj4KCTwvcGF0aD4KCgk8IS0tIHRoZSBtdXRlZCBzdGF0ZSAtLT4KCTxwYXRoIHN0cm9rZT0iIzk5OTk5OSIgc3Ryb2tlLXdpZHRoPSI0IiBmaWxsPSJub25lIiBjbGFzcz0iQXVkaW9EaXNhYmxlZCBoaWdobGlnaHQtc3Ryb2tlIgoJCXN0eWxlPSJkaXNwbGF5Om5vbmU7IgoJCWQ9Ik0gNTggNDMgTCA3MiA1NyBNIDU5IDU3IEwgNzIgNDMiPgoJPC9wYXRoPgo8L3N2Zz4K","base64"),k=a("./Button"),l=a("./ComponentEvents"),m=a("../app/ExternalInterface").get(),n=a("../app/Model/PlayerProperties"),o=a("../app/Model/PlayerEvents"),p=a("../app/Model/PlayerMessages");h.inherits(g,k),g.prototype.initView=function(){this.view=this.parseSvg(j)},g.prototype.attachEvents=function(){k.prototype.attachEvents.call(this),m.addEventListener(o.VOLUME_CHANGE,f.bind(this)),m.addEventListener(o.READY,d.bind(this)),this.on(l.CLICK,e.bind(this))},g.prototype.setAudible=function(a){this.view.getElementsByClassName("AudioDisabled")[0].style.display=a?"none":"inline",this.view.getElementsByClassName("AudioEnabled")[0].style.display=a?"inline":"none"},b.exports=g}).call(this,a("buffer").Buffer)},{"../app/ExternalInterface":50,"../app/Model/PlayerEvents":52,"../app/Model/PlayerMessages":53,"../app/Model/PlayerProperties":54,"../lib/debug":84,"./Button":87,"./ComponentEvents":89,buffer:3,util:36}],109:[function(a,b,c){function d(){e.apply(this,arguments)}var e=a("./RangeInput"),f=a("../app/Model/PlayerProperties"),g=a("../app/Model/PlayerEvents"),h=a("../app/Model/PlayerMessages"),i=a("./ComponentEvents"),j=a("../app/ExternalInterface").get(),k=(a("../lib/debug"),a("util"));k.inherits(d,e),d.prototype.initView=function(){e.prototype.initView.apply(this,arguments),this.view.style.position="absolute",this.view.style.zIndex=6},d.prototype.attachEvents=function(){e.prototype.attachEvents.apply(this,arguments),j.addEventListener(g.READY,function(){this.setValue(j.getProperty(f.VOLUME)),this.emit(i.READY)}.bind(this)),this.on(i.CHANGE,function(a){a.percent!==j.getProperty(f.VOLUME)&&j.send(h.VOLUME_CHANGE,a.percent),this.fillClip.setAttribute("transform","translate("+this.getFillPosition(a.percent).join(",")+")")}.bind(this))},b.exports=d},{"../app/ExternalInterface":50,"../app/Model/PlayerEvents":52,"../app/Model/PlayerMessages":53,"../app/Model/PlayerProperties":54,"../lib/debug":84,"./ComponentEvents":89,"./RangeInput":105,util:36}],110:[function(a,b,c){(function(a){function c(b,c){f.forEach(function(a){b.style[a+"Filter"]=c}),~a.navigator.userAgent.indexOf("Safari")||(b.style.filter=c)}function d(a,b){a.setAttribute("filter",b)}var e=(new DOMParser).parseFromString('\n \n \n \n \n \n \n \n \n \n \n\n',"image/svg+xml").documentElement;document.body.contains(e)||document.body.insertBefore(e,document.body.firstChild);var f=["webkit","o","ms"];b.exports.applyTo=function(b){var f="url(#"+e.getElementsByTagName("filter")[0].id+")";~a.navigator.userAgent.indexOf("Trident")?d(b,f):c(b,f)},b.exports.removeFrom=function(b){~a.navigator.userAgent.indexOf("Trident")?b.removeAttribute("filter"):(f.forEach(function(a){b.style[a+"Filter"]=""}),b.style.filter="")}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[59]);