mux-embed
Advanced tools
Comparing version 2.0.28 to 2.0.29
/** | ||
* mux-embed | ||
* @version 2.0.28 | ||
* @version 2.0.29 | ||
* @copyright 2016 Mux, Inc | ||
* @license | ||
*/ | ||
!function e(t,i,a){function n(o,s){if(!i[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(r)return r(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var d=i[o]={exports:{}};t[o][0].call(d.exports,function(e){var i=t[o][1][e];return n(i?i:e)},d,d.exports,e,t,i,a)}return i[o].exports}for(var r="function"==typeof require&&require,o=0;o<a.length;o++)n(a[o]);return n}({1:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[e[i]]=i);return t}function r(e){var t={};return Object.keys(e).forEach(function(i){if(e.hasOwnProperty(i)&&void 0!==e[i]){var a=i.split("_"),n=a[0],r=u[n];r||(s.default.debug("Data key word `"+a[0]+"` not expected in "+i),r=n+"_"),a.splice(1).forEach(function(e){c[e]?r+=c[e]:(s.default.debug("Data key word `"+e+"` not expected in "+i),r+="_"+e+"_")}),t[r]=e[i]}}),t}Object.defineProperty(i,"__esModule",{value:!0}),i.default=r;var o=e("./utils/log.js"),s=a(o),l={a:"property",d:"ad",e:"event",f:"experiment",m:"mux",p:"player",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view"},u=n(l),d={ad:"ad",ag:"aggregate",ap:"api",al:"application",ar:"architecture",au:"autoplay",br:"break",cd:"code",cg:"category",cn:"config",co:"count",cp:"complete",ct:"content",cu:"current",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",du:"duration",dv:"device",ec:"encoding",en:"end",eg:"engine",em:"embed",er:"error",ev:"events",ex:"expires",fi:"first",fm:"family",fq:"frequency",fr:"frame",fs:"fullscreen",ho:"host",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",li:"live",lo:"load",ma:"max",me:"message",mi:"mime",ml:"midroll",mn:"manufacturer",mx:"mux",nm:"name",no:"number",on:"on",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",ph:"playhead",pi:"plugin",pl:"preroll",po:"poster",pr:"preload",ra:"rate",re:"rebuffer",ro:"ratio",se:"session",sk:"seek",sm:"stream",sq:"sequence",sr:"series",st:"start",so:"source",su:"startup",sw:"software",tc:"tech",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch"},c=n(d)},{"./utils/log.js":18}],2:[function(e,t,i){"use strict";function a(){this.isAdBreak=!1,this.on("adbreakstart",function(){this.isAdBreak=!0}),this.on("play",function(){this.isAdBreak=!1}),this.on("playing",function(){this.isAdBreak=!1}),this.on("seeking",function(){this.isAdBreak=!1}),this.on("viewend",function(){this.isAdBreak=!1})}Object.defineProperty(i,"__esModule",{value:!0}),i.default=a},{}],3:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=function(){},n=0;a.prototype.on=function(e,t,i){return t._eventEmitterGuid=t._eventEmitterGuid||++n,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],i&&(t=t.bind(i)),this._listeners[e].push(t),t},a.prototype.off=function(e,t){var i=this._listeners&&this._listeners[e];i&&i.forEach(function(e,a){e._eventEmitterGuid===t._eventEmitterGuid&&i.splice(a,1)})},a.prototype.one=function(e,t,i){var a=this;t._eventEmitterGuid=t._eventEmitterGuid||++n;var r=function n(){a.off(e,n),t.apply(i||this,arguments)};r._eventEmitterGuid=t._eventEmitterGuid,this.on(e,r)},a.prototype.emit=function(e,t){var i=this;t=t||{};var a=this._listeners&&this._listeners[e]||[],n=this._listeners&&this._listeners["after"+e]||[],r=function(t,a){t=t.slice(),t.forEach(function(t){t.call(i,{type:e},a)})};r(a,t),r(n,t)},i.default=a},{}],4:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("global/window"),r=a(n),o=function(){this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,this.on("playing",function(){this._playheadShouldBeProgressing=!0}),this.on("play",this._startPlaybackHeartbeatInterval),this.on("adbreakstart",this._startPlaybackHeartbeatInterval),this.on("adplay",this._startPlaybackHeartbeatInterval),this.on("seeking",this._startPlaybackHeartbeatInterval),this.on("pause",this._stopPlaybackHeartbeatInterval),this.on("ended",this._stopPlaybackHeartbeatInterval),this.on("viewend",this._stopPlaybackHeartbeatInterval),this.on("error",this._stopPlaybackHeartbeatInterval),this.on("adpause",this._stopPlaybackHeartbeatInterval),this.on("adbreakend",this._stopPlaybackHeartbeatInterval),this.on("seeked",function(){this.data.player_is_paused&&this._stopPlaybackHeartbeatInterval()}),this.on("timeupdate",function(){this.emit("playbackheartbeat",{viewer_time:Date.now()})})};o.prototype._startPlaybackHeartbeatInterval=function(){var e=this;null===this._playbackHeartbeatInterval&&(this.emit("playbackheartbeat",{viewer_time:Date.now()}),this._playbackHeartbeatInterval=r.default.setInterval(function(){e.emit("playbackheartbeat",{viewer_time:Date.now()})},this.playbackHeartbeatTime))},o.prototype._stopPlaybackHeartbeatInterval=function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(r.default.clearInterval(this._playbackHeartbeatInterval),this.emit("playbackheartbeatend",{viewer_time:Date.now()}),this._playbackHeartbeatInterval=null)},i.default=o},{"global/window":31}],5:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("../utils/safe-increment.js"),r=a(n),o=function(){this._playbackTimeTrackerLastPlayheadPosition=-1,this.on("playbackheartbeat",this._updatePlaybackTime),this.on("playbackheartbeatend",this._clearPlaybackTimeState),this.on("seeking",this._clearPlaybackTimeState)};o.prototype._updatePlaybackTime=function(){var e=this.data.player_playhead_time;if(this._playbackTimeTrackerLastPlayheadPosition>=0&&e>this._playbackTimeTrackerLastPlayheadPosition){var t=e-this._playbackTimeTrackerLastPlayheadPosition;t<=1e3&&(0,r.default)(this.data,"view_content_playback_time",t)}this._playbackTimeTrackerLastPlayheadPosition=e},o.prototype._clearPlaybackTimeState=function(){this._updatePlaybackTime(),this._playbackTimeTrackerLastPlayheadPosition=-1},i.default=o},{"../utils/safe-increment.js":20}],6:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=function(){this.on("playbackheartbeat",this._updatePlayheadTime),this.on("playbackheartbeatend",this._updatePlayheadTime),this.on("timeupdate",this._updatePlayheadTime),this.on("destroy",function(){this.off("timeupdate",this._updatePlayheadTime)})};a.prototype._updatePlayheadTime=function(e,t){t.player_playhead_time?this.data.player_playhead_time=t.player_playhead_time:this.getPlayheadTime&&(this.data.player_playhead_time=this.getPlayheadTime())},i.default=a},{}],7:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("../utils/safe-increment.js"),r=a(n),o=function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,this.on("playbackheartbeat",this._checkIfRebuffering),this.on("playbackheartbeatend",this._cleanupRebufferTracker),this.on("seeking",function(){this._cleanupRebufferTracker(null,{viewer_time:Date.now()})})};o.prototype._checkIfRebuffering=function(e,t){if(this.isSeeking||this.isAdBreak||!this._playheadShouldBeProgressing)return void this._cleanupRebufferTracker(e,t);if(null===this._lastCheckedTime)return this._lastCheckedTime=t.viewer_time,this._lastPlayheadTime=this.data.player_playhead_time,void(this._lastPlayheadTimeUpdatedTime=t.viewer_time);if(this._lastPlayheadTime!==this.data.player_playhead_time)return this._rebuffering&&(this._rebuffering=!1,this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime),this.emit("rebufferend")),this._lastCheckedTime=t.viewer_time,this._lastPlayheadTime=this.data.player_playhead_time,void(this._lastPlayheadTimeUpdatedTime=t.viewer_time);var i=t.viewer_time-this._lastPlayheadTimeUpdatedTime;i>=this.minimumRebufferDuration&&(this._rebuffering?this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime):(this._rebuffering=!0,(0,r.default)(this.data,"view_rebuffer_count",1),this._updateRebufferMetrics(i),this.emit("rebufferstart"))),this._lastCheckedTime=t.viewer_time},o.prototype._cleanupRebufferTracker=function(e,t){this._rebuffering&&(this._rebuffering=!1,this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime),this.emit("rebufferend")),this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null},o.prototype._updateRebufferMetrics=function(e){e>0&&(0,r.default)(this.data,"view_rebuffer_duration",e),this.data.view_watch_time>=0&&this.data.view_rebuffer_count>0&&(this.data.view_rebuffer_frequency=this.data.view_rebuffer_count/this.data.view_watch_time,this.data.view_rebuffer_percentage=this.data.view_rebuffer_duration/this.data.view_watch_time)},i.default=o},{"../utils/safe-increment.js":20}],8:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(){var e=this;this.on("viewinit",function(){this._lastPlayheadPosition=-1});var t=["pause","rebufferstart","seeking","error","adbreakstart","hb"],i=["playing","hb"];t.forEach(function(t){e.on(t,function(){if(this._lastPlayheadPosition>=0&&this.data.player_playhead_time>=0&&this._lastPlayerWidth>=0&&this._lastSourceWidth>0&&this._lastPlayerHeight>=0&&this._lastSourceHeight>0){var e=this.data.player_playhead_time-this._lastPlayheadPosition;if(e<0)return void(this._lastPlayheadPosition=-1);var t=Math.min(this._lastPlayerWidth/this._lastSourceWidth,this._lastPlayerHeight/this._lastSourceHeight),i=Math.max(0,t-1),a=Math.max(0,1-t);this.data.view_max_upscale_percentage=Math.max(this.data.view_max_upscale_percentage||0,i),this.data.view_max_downscale_percentage=Math.max(this.data.view_max_downscale_percentage||0,a),(0,o.default)(this.data,"view_total_content_playback_time",e),(0,o.default)(this.data,"view_total_upscaling",i*e),(0,o.default)(this.data,"view_total_downscaling",a*e)}this._lastPlayheadPosition=-1})}),i.forEach(function(t){e.on(t,function(){this._lastPlayheadPosition=this.data.player_playhead_time,this._lastPlayerWidth=this.data.player_width,this._lastPlayerHeight=this.data.player_height,this._lastSourceWidth=this.data.video_source_width,this._lastSourceHeight=this.data.video_source_height})})}Object.defineProperty(i,"__esModule",{value:!0}),i.default=n;var r=e("../utils/safe-increment.js"),o=a(r)},{"../utils/safe-increment.js":20}],9:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(){this.isSeeking=!1,this.on("seeking",function(){this._lastSeekingTime=Date.now(),this.isSeeking===!1&&(this.isSeeking=!0,this.send("seeking"))}),this.on("seeked",function(){this.isSeeking=!1;var e=this._lastSeekingTime||Date.now(),t=Date.now()-e;(0,o.default)(this.data,"view_seek_count",1),(0,o.default)(this.data,"view_seek_duration",t);var i=this.data.view_max_seek_time||0;this.data.view_max_seek_time=Math.max(i,t)}),this.on("viewend",function(){this.isSeeking=!1})}Object.defineProperty(i,"__esModule",{value:!0}),i.default=n;var r=e("../utils/safe-increment.js"),o=a(r)},{"../utils/safe-increment.js":20}],10:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=function(){this.on("viewinit",function(){var e=this.data,t=e.view_id,i=function(e){"playing"===e.type&&"undefined"==typeof this.data.view_time_to_first_frame?this.calculateTimeToFirstFrame(Date.now(),t):"adplaying"===e.type&&("undefined"==typeof this.data.view_content_playback_time||this.data.view_content_playback_time<=1e3)&&this.calculateTimeToFirstFrame(Date.now(),t)};this.one("playing",i),this.one("adplaying",i),this.one("viewend",function(){this.off("playing",i),this.off("adplaying",i)})})};a.prototype.calculateTimeToFirstFrame=function(e,t){t===this.data.view_id&&(this.data.view_time_to_first_frame=e-this.data.view_start,(this.data.player_autoplay_on||this.data.video_is_autoplay)&&this.NAVIGATION_START&&(this.data.view_aggregate_startup_time=e-this.NAVIGATION_START))},i.default=a},{}],11:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("../utils/safe-increment.js"),r=a(n),o=function(){this._watchTimeTrackerLastCheckedTime=null,this.on("playbackheartbeat",this._updateWatchTime),this.on("playbackheartbeatend",this._clearWatchTimeState)};o.prototype._updateWatchTime=function(e,t){var i=t.viewer_time;null===this._watchTimeTrackerLastCheckedTime&&(this._watchTimeTrackerLastCheckedTime=i),(0,r.default)(this.data,"view_watch_time",i-this._watchTimeTrackerLastCheckedTime),this._updateRebufferMetrics(),this._watchTimeTrackerLastCheckedTime=i},o.prototype._clearWatchTimeState=function(e,t){this._updateWatchTime(e,t),this._watchTimeTrackerLastCheckedTime=null},i.default=o},{"../utils/safe-increment.js":20}],12:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},r=e("global/window"),o=a(r),s=e("./vendor/platform.js"),l=a(s),u=e("qs"),d=a(u),c=e("./vendor/js-cookie.js"),f=a(c),p=e("./minify-keys.js"),h=a(p),y=e("./utils/image-beacon.js"),m=a(y),_=e("./utils/beacon-url.js"),b=a(_),v=e("./utils/element-helpers.js"),g=e("lodash.assign"),w=a(g),x=e("./utils/log.js"),k=a(x),S=e("./utils/uuid.js"),T=e("./player-monitor.js"),j=a(T),P=e("./video-el-monitor.js"),O=a(P),E=e("./utils/utils-public.js"),M=a(E),A="2.0.28",I="2.0",D=o.default.MUX_VAR_NAME||"mux",C=o.default[D],R={},N={};i.default=function(){function e(){var e=void 0,t=Date.now();try{e=d.default.parse(f.default.get("muxData")||"")}catch(e){}e=e||{},e.mux_viewer_id=e.mux_viewer_id||(0,S.generateUUID)(),e.session_start&&(e.sst=e.session_start,delete e.session_start),e.session_id&&(e.sid=e.session_id,delete e.session_id),e.session_expires&&(e.sex=e.session_expires,delete e.session_expires),(!e.sex||e.sex<t)&&(e.sid=(0,S.generateUUID)(),e.sst=t),e.sex=t+15e5,f.default.set("muxData",d.default.stringify(e),{expires:7300});var i={session_id:e.sid,session_start:e.sst,session_expires:e.sex,mux_viewer_id:e.mux_viewer_id};return i}function t(e,t){e=Array.prototype.slice.apply(e),t=t||Date.now();var i=e[e.length-1],a=void 0;return"object"!==("undefined"==typeof i?"undefined":n(i))?(e.push({viewer_time:t}),e):(i.viewer_time||(a=(0,w.default)({},i),a.viewer_time=t,e[e.length-1]=a),e)}if(!C||!C.loaded){var i=o.default[D]=function(e){var a=arguments,n=Date.now();"string"==typeof e?i.hasOwnProperty(e)?o.default.setTimeout(function(){a=Array.prototype.splice.call(a,1),a=t(a,n),i[e].apply(null,a)},0):k.default.warn("`"+e+"` is an unknown task"):"function"==typeof e?o.default.setTimeout(function(){e(i)},0):k.default.warn("`"+e+"` is invalid.")};i.loaded=Date.now(),i.VERSION=A,i.API_VERSION=I,i.PLAYER_TRACKED=!1,i.monitor=function(e,t){return(0,O.default)(i,e,t)},i.init=function(e,t){var a=(0,v.getMuxPlayerId)(e);R[a]=new j.default(i,a,t)},i.emit=function(e,t,i){var a=(0,v.getMuxPlayerId)(e);R[a]?(R[a].emit(t,i),"destroy"===t&&delete R[a]):k.default.error("A monitor for `"+a+"` has not been initialized.")};var a={mux_api_version:I,mux_embed_version:A,page_url:o.default.location.href,viewer_application_name:l.default.name,viewer_application_version:l.default.version,viewer_application_engine:l.default.layout,viewer_device_name:l.default.product,viewer_device_category:"",viewer_device_manufacturer:l.default.manufacturer,viewer_os_family:l.default.os&&l.default.os.family,viewer_os_architecture:l.default.os&&l.default.os.architecture,viewer_os_version:l.default.os&&l.default.os.version};return i.send=function(t,r){if(t&&!i.checkDoNotTrack()){var o=e()||{},s={};if(!r||"object"!==("undefined"==typeof r?"undefined":n(r)))return k.default.error("A data object was expected in send() but was not provided");"pageloadstart"===t&&(a.page_load_start=r.viewer_time),(0,w.default)(s,a),(0,w.default)(s,r),(0,w.default)(s,o),s.event=t,s.user_id&&(s.viewer_user_id=s.user_id,delete s.user_id),s=(0,h.default)(s),k.default.debug("Sending event: ",t,s),r.property_key&&(N[r.property_key]=N[r.property_key]||(0,b.default)(r.property_key),m.default.send(N[r.property_key],t,s))}},i.checkDoNotTrack=function(){var e=o.default.navigator,t=o.default.doNotTrack||e.doNotTrack||e.msDoNotTrack;return"1"===t},i.checkDoNotTrack()&&k.default.debug("The browser's Do Not Track flag is enabled - Mux beaconing is disabled."),i.log=k.default,i.utils=M.default,i}}()},{"./minify-keys.js":1,"./player-monitor.js":13,"./utils/beacon-url.js":14,"./utils/element-helpers.js":15,"./utils/image-beacon.js":17,"./utils/log.js":18,"./utils/utils-public.js":22,"./utils/uuid.js":23,"./vendor/js-cookie.js":25,"./vendor/platform.js":27,"./video-el-monitor.js":28,"global/window":31,"lodash.assign":32,qs:33}],13:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("./utils/log.js"),r=a(n),o=e("lodash.assign"),s=a(o),l=e("./utils/uuid.js"),u=e("global/document"),d=a(u),c=e("global/window"),f=a(c),p=e("./mixins/event-emitter.js"),h=a(p),y=e("./mixins/playback-heartbeat.js"),m=a(y),_=e("./utils/safe-increment.js"),b=a(_),v=e("./utils/video-id-from-src.js"),g=a(v),w=e("./mixins/watch-time-tracker.js"),x=a(w),k=e("./mixins/playback-time-tracker.js"),S=a(k),T=e("./mixins/playhead-time-tracker.js"),j=a(T),P=e("./mixins/rebuffer-tracker.js"),O=a(P),E=e("./mixins/time-to-first-frame-tracker.js"),M=a(E),A=e("./mixins/scaling-tracker.js"),I=a(A),D=e("./mixins/seeking-tracker.js"),C=a(D),R=e("./mixins/ad-tracker.js"),N=a(R),L=["viewstart","ended","loadstart","pause","play","playing","ratechange","stalled","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","rebufferstart","rebufferend","seeked","error","hb"],B=function(e,t,i){var a=this;this.DOM_CONTENT_LOADED_EVENT_END=f.default.performance&&f.default.performance.timing.domContentLoadedEventEnd,this.NAVIGATION_START=f.default.performance&&f.default.performance.timing.navigationStart;var n={debug:!1,minimumRebufferDuration:100,playbackHeartbeatTime:25};this.mux=e,this.id=t,i=(0,s.default)(n,i),r.default.setLevel(i.debug?"debug":"warn"),this.getPlayheadTime=i.getPlayheadTime,this.getStateData=i.getStateData||function(){},this.minimumRebufferDuration=i.minimumRebufferDuration,this.playbackHeartbeatTime=i.playbackHeartbeatTime,this.data={player_instance_id:(0,l.generateShortID)()},this.data.view_sequence_number=1,this.data.player_sequence_number=1,this.on("viewinit",function(e,t){this._resetVideoData(),this._resetViewData(),this.updateStateData(),(0,s.default)(this.data,t),this._initializeViewData();var i=function(){"undefined"==typeof this.data.view_start&&(this.data.view_start=Date.now(),this.emit("viewstart"))}.bind(this);this.one("play",i),this.one("adbreakstart",i)}),this.on("videochange",function(e,t){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",t)}),this.on("destroy",function(e,t){"undefined"!=typeof this.data.view_start&&(this.emit("viewend"),this.send("viewend")),f.default.clearTimeout(this._heartBeatTimeout)}),this.on("playerready",function(e,t){(0,s.default)(this.data,t)}),L.forEach(function(e){a.on(e,function(t,i){0!==e.indexOf("ad")&&this.updateStateData(),(0,s.default)(this.data,{viewer_time:Date.now()},i),this._sanitizeData()}),a.on("after"+e,function(){this.send(e)})});var o=function(e){var t=Date.now();this.data.player_init_time&&(this.data.player_startup_time=t-this.data.player_init_time),!this.mux.PLAYER_TRACKED&&this.NAVIGATION_START&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.DOM_CONTENT_LOADED_EVENT_END)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.DOM_CONTENT_LOADED_EVENT_END||1/0)-this.NAVIGATION_START)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time};this.one("playerready",o),C.default.apply(this),N.default.apply(this),j.default.apply(this),m.default.apply(this),I.default.apply(this),x.default.apply(this),S.default.apply(this),O.default.apply(this),M.default.apply(this),this.emit("viewinit",i.data)};(0,s.default)(B.prototype,j.default.prototype),(0,s.default)(B.prototype,h.default.prototype),(0,s.default)(B.prototype,C.default.prototype),(0,s.default)(B.prototype,N.default.prototype),(0,s.default)(B.prototype,m.default.prototype),(0,s.default)(B.prototype,x.default.prototype),(0,s.default)(B.prototype,S.default.prototype),(0,s.default)(B.prototype,O.default.prototype),(0,s.default)(B.prototype,M.default.prototype),B.prototype.updateStateData=function(){(0,s.default)(this.data,this.getStateData()),this.getPlayheadTime&&(this.data.player_playhead_time=this.getPlayheadTime()),this._sanitizeData()},B.prototype.send=function(e){var t=(0,s.default)({},this.data);if(1===t.player_error_code&&(delete t.player_error_code,delete t.player_error_message),t.player_source_duration===1/0||t.video_source_duration===1/0?t.video_source_is_live=!0:(t.player_source_duration>0||t.video_source_duration>0)&&(t.video_source_is_live=!1),t.video_source_url=t.video_source_url||t.player_source_url,t.video_source_url){var i=d.default.createElement("a");i.href=t.video_source_url;var a=i.hostname,n=a.match(/[^\.]+\.[^\.]+$/);n&&n.length&&(t.video_source_domain=n[0]),t.video_source_host_name=a}delete t.ad_request_id,r.default.debug("Sending `"+e+"`",t),this.mux.send(e,t),this.data.view_sequence_number++,this.data.player_sequence_number++,this._restartHeartBeat()},B.prototype._sanitizeData=function(){var e=this,t=["player_width","player_height","video_source_width","video_source_height","player_playhead_time"];t.forEach(function(t){var i=parseInt(e.data[t],10);e.data[t]=isNaN(i)?void 0:i})},B.prototype._resetVideoData=function(e,t){var i=this;Object.keys(this.data).forEach(function(e){0===e.indexOf("video_")&&delete i.data[e]})},B.prototype._resetViewData=function(){var e=this;Object.keys(this.data).forEach(function(t){0===t.indexOf("view_")&&delete e.data[t]}),this.data.view_sequence_number=1},B.prototype._initializeViewData=function(){var e=this,t=this.data.view_id=(0,l.generateUUID)();this.data.video_id||(this.data.video_id=(0,g.default)(this.data.player_source_url));var i=function(){t===e.data.view_id&&(0,b.default)(e.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",i):i()},B.prototype._restartHeartBeat=function(){var e=this;f.default.clearTimeout(this._heartBeatTimeout),this._heartBeatTimeout=f.default.setTimeout(function(){e.data.player_is_paused||e.emit("hb")},1e4)},i.default=B},{"./mixins/ad-tracker.js":2,"./mixins/event-emitter.js":3,"./mixins/playback-heartbeat.js":4,"./mixins/playback-time-tracker.js":5,"./mixins/playhead-time-tracker.js":6,"./mixins/rebuffer-tracker.js":7,"./mixins/scaling-tracker.js":8,"./mixins/seeking-tracker.js":9,"./mixins/time-to-first-frame-tracker.js":10,"./mixins/watch-time-tracker.js":11,"./utils/log.js":18,"./utils/safe-increment.js":20,"./utils/uuid.js":23,"./utils/video-id-from-src.js":24,"global/document":30,"global/window":31,"lodash.assign":32}],14:[function(e,t,i){"use strict";function a(e){return e=e||"",e.match(/^[a-z0-9]+$/)?"https://"+e+".litix.io":"https://img.litix.io/a.gif"}Object.defineProperty(i,"__esModule",{value:!0}),i.default=a},{}],15:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.findMediaElement=i.getMuxPlayerId=void 0;var a=e("./uuid.js"),n=function(e){return e&&"undefined"!=typeof e.nodeName?(e.muxId||(e.muxId=e.id||(0,a.generateShortID)()),e.muxId):e},r=function(e){var t=void 0;e&&"undefined"!=typeof e.nodeName?(t=e,e=n(t)):t=document.querySelector(e);var i=t&&t.nodeName?t.nodeName.toLowerCase():"";return[t,e,i]};i.getMuxPlayerId=n,i.findMediaElement=r},{"./uuid.js":23}],16:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(o.default.defaultView&&o.default.defaultView.getComputedStyle)return o.default.defaultView.getComputedStyle(e,null).getPropertyValue(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=n;var r=e("global/document"),o=a(r)},{"global/document":30}],17:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("qs"),r=a(n),o={};o.send=function(e,t,i){var a=new Image;return a.src=e+"?e="+t+"&"+r.default.stringify(i),a},i.default=o},{qs:33}],18:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("../vendor/loglevel.js"),r=a(n),o=r.default.methodFactory;r.default.methodFactory=function(e,t,i){var a=o(e,t,i);return function(){for(var e=["[mux]"],t=0;t<arguments.length;t++)e.push(arguments[t]);a.apply(void 0,e)}},r.default.setLevel(r.default.getLevel()),i.default=r.default},{"../vendor/loglevel.js":26}],19:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t,i,a){var n=a;if(e&&"function"==typeof e[t])try{n=e[t].apply(e,i)}catch(e){o.default.debug("safeCall error",e)}return n}Object.defineProperty(i,"__esModule",{value:!0}),i.default=n;var r=e("./log.js"),o=a(r)},{"./log.js":18}],20:[function(e,t,i){"use strict";function a(e,t,i){i=void 0===i?1:i,e[t]=e[t]||0,e[t]+=i}Object.defineProperty(i,"__esModule",{value:!0}),i.default=a},{}],21:[function(e,t,i){"use strict";function a(e){return Math.floor(1e3*e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=a},{}],22:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("./safe-call.js"),r=a(n),o=e("./safe-increment.js"),s=a(o),l=e("./get-computed-style.js"),u=a(l),d=e("./seconds-to-ms.js"),c=a(d),f={};f.safeCall=r.default,f.safeIncrement=s.default,f.getComputedStyle=u.default,f.secondsToMs=c.default,i.default=f},{"./get-computed-style.js":16,"./safe-call.js":19,"./safe-increment.js":20,"./seconds-to-ms.js":21}],23:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,i="x"===e?t:3&t|8;return i.toString(16)})},n=function(){return("000000"+(Math.random()*Math.pow(36,6)<<0).toString(36)).slice(-6)};i.generateUUID=a,i.generateShortID=n},{}],24:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e){var t=o.default.createElement("a");t.href=e;var i=t.pathname.replace(/\.[^\/.]+$/,"");return l.default.btoa(t.host+i).split("=")[0]}Object.defineProperty(i,"__esModule",{value:!0}),i.default=n;var r=e("global/document"),o=a(r),s=e("global/window"),l=a(s)},{"global/document":30,"global/window":31}],25:[function(e,t,i){"use strict";!function(e){t.exports=e()}(function(){function e(i){function a(e,n,r){var o;if(arguments.length>1){if(r=t({path:"/"},a.defaults,r),"number"==typeof r.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}try{o=JSON.stringify(n),/^[\{\[]/.test(o)&&(n=o)}catch(e){}return n=i.write?i.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape),document.cookie=[e,"=",n,r.expires&&"; expires="+r.expires.toUTCString(),r.path&&"; path="+r.path,r.domain&&"; domain="+r.domain,r.secure?"; secure":""].join("")}e||(o={});for(var l=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,d=0;d<l.length;d++){var c=l[d].split("="),f=c[0].replace(u,decodeURIComponent),p=c.slice(1).join("=");'"'===p.charAt(0)&&(p=p.slice(1,-1));try{if(p=i.read?i.read(p,f):i(p,f)||p.replace(u,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(e){}if(e===f){o=p;break}e||(o[f]=p)}catch(e){}}return o}return a.get=a.set=a,a.getJSON=function(){return a.apply({json:!0},[].slice.call(arguments))},a.defaults={},a.remove=function(e,i){a(e,"",t(i,{expires:-1}))},a.withConverter=e,a}var t=function(){for(var e=0,t={};e<arguments.length;e++){var i=arguments[e];for(var a in i)t[a]=i[a]}return t};return e(function(){})})},{}],26:[function(e,t,i){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(e,i){"object"===("undefined"==typeof t?"undefined":a(t))&&t.exports?t.exports=i():e.log=i()}(void 0,function(){function e(e){return("undefined"==typeof console?"undefined":a(console))!==l&&(void 0!==console[e]?t(console,e):void 0!==console.log?t(console,"log"):s)}function t(e,t){var i=e[t];if("function"==typeof i.bind)return i.bind(e);try{return Function.prototype.bind.call(i,e)}catch(t){return function(){return Function.prototype.apply.apply(i,[e,arguments])}}}function i(e,t,i){return function(){("undefined"==typeof console?"undefined":a(console))!==l&&(n.call(this,t,i),this[e].apply(this,arguments))}}function n(e,t){for(var i=0;i<u.length;i++){var a=u[i];this[a]=i<e?s:this.methodFactory(a,e,t)}}function r(t,a,n){return e(t)||i.apply(this,arguments)}function o(e,t,i){function o(e){var t=(u[e]||"silent").toUpperCase();try{return void(window.localStorage[f]=t)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+t+";"}catch(e){}}function s(){var e;try{e=window.localStorage[f]}catch(e){}if(("undefined"==typeof e?"undefined":a(e))===l)try{var t=window.document.cookie,i=t.indexOf(encodeURIComponent(f)+"=");i&&(e=/^([^;]+)/.exec(t.slice(i))[1])}catch(e){}return void 0===c.levels[e]&&(e=void 0),e}var d,c=this,f="loglevel";e&&(f+=":"+e),c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=i||r,c.getLevel=function(){return d},c.setLevel=function(t,i){if("string"==typeof t&&void 0!==c.levels[t.toUpperCase()]&&(t=c.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=c.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(d=t,i!==!1&&o(t),n.call(c,t,e),("undefined"==typeof console?"undefined":a(console))===l&&t<c.levels.SILENT)return"No console available for logging"},c.setDefaultLevel=function(e){s()||c.setLevel(e,!1)},c.enableAll=function(e){c.setLevel(c.levels.TRACE,e)},c.disableAll=function(e){c.setLevel(c.levels.SILENT,e)};var p=s();null==p&&(p=null==t?"WARN":t),c.setLevel(p,!1)}var s=function(){},l="undefined",u=["trace","debug","info","warn","error"],d=new o,c={};d.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=c[e];return t||(t=c[e]=new o(e,d.getLevel(),d.methodFactory)),t};var f=("undefined"==typeof window?"undefined":a(window))!==l?window.log:void 0;return d.noConflict=function(){return("undefined"==typeof window?"undefined":a(window))!==l&&window.log===d&&(window.log=f),d},d})},{}],27:[function(e,t,i){(function(e){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};(function(){function n(e){return e=String(e),e.charAt(0).toUpperCase()+e.slice(1)}function r(e,t,i){var a={6.4:"10",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&i&&/^Win/i.test(e)&&(a=a[/[\d.]+$/.exec(e)])&&(e="Windows "+a),e=String(e),t&&i&&(e=e.replace(RegExp(t,"i"),i)),e=s(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").split(" on ")[0]); | ||
}function o(e,t){var i=-1,a=e?e.length:0;if("number"==typeof a&&a>-1&&a<=w)for(;++i<a;)t(e[i],i,e);else l(e,t)}function s(e){return e=p(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:n(e)}function l(e,t){for(var i in e)T.call(e,i)&&t(e[i],i,e)}function u(e){return null==e?n(e):j.call(e).slice(8,-1)}function d(e,t){var i=null!=e?a(e[t]):"number";return!(/^(?:boolean|number|string|undefined)$/.test(i)||"object"==i&&!e[t])}function c(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function f(e,t){var i=null;return o(e,function(a,n){i=t(i,a,n,e)}),i}function p(e){return String(e).replace(/^ +| +$/g,"")}function h(e){function t(t){return f(t,function(t,i){return t||RegExp("\\b"+(i.pattern||c(i))+"\\b","i").exec(e)&&(i.label||i)})}function i(t){return f(t,function(t,i,a){return t||(i[J]||i[/^[a-z]+(?: +[a-z]+\b)*/i.exec(J)]||RegExp("\\b"+c(a)+"(?:\\b|\\w*\\d)","i").exec(e))&&a})}function n(t){return f(t,function(t,i){return t||RegExp("\\b"+(i.pattern||c(i))+"\\b","i").exec(e)&&(i.label||i)})}function o(t){return f(t,function(t,i){var a=i.pattern||c(i);return!t&&(t=RegExp("\\b"+a+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(t=r(t,a,i.label||i)),t})}function y(t){return f(t,function(t,i){var a=i.pattern||c(i);return!t&&(t=RegExp("\\b"+a+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+a+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(i.label&&!RegExp(a,"i").test(i.label)?i.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),i=i.label||i,t=s(t[0].replace(RegExp(a,"i"),i).replace(RegExp("; *(?:"+i+"[_-])?","i")," ").replace(RegExp("("+i+")[-_.]?(\\w)","i"),"$1 $2"))),t})}function b(t){return f(t,function(t,i){return t||(RegExp(i+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null})}function v(){return this.description||""}var g=m,w=e&&"object"==("undefined"==typeof e?"undefined":a(e))&&"String"!=u(e);w&&(g=e,e=null);var S=g.navigator||{},T=S.userAgent||"";e||(e=T);var P,O,E=w||k==_,M=w?!!S.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(j.toString()),A="Object",I=w?A:"ScriptBridgingProxyObject",D=w?A:"Environment",C=w&&g.java?"JavaPackage":u(g.java),R=w?A:"RuntimeObject",N=/\bJava/.test(C)&&g.java,L=N&&u(g.environment)==D,B=N?"a":"α",W=N?"b":"β",H=g.document||{},F=g.operamini||g.opera,U=x.test(U=w&&F?F["[[Class]]"]:u(F))?U:F=null,G=e,V=[],$=null,q=e==T,K=q&&F&&"function"==typeof F.version&&F.version(),X=t(["Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),z=n(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel",{label:"SRWare Iron",pattern:"Iron"},"K-Meleon","Konqueror","Lunascape","Maxthon","Midori","Nook Browser","PhantomJS","Raven","Rekonq","RockMelt","SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser","Sunrise","Swiftfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),J=y([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nook","PlayBook","PlayStation 4","PlayStation 3","PlayStation Vita","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),Y=i({Apple:{iPad:1,iPhone:1,iPod:1},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{"PlayStation 4":1,"PlayStation 3":1,"PlayStation Vita":1}}),Z=o(["Windows Phone ","Android","CentOS","Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(X&&(X=[X]),Y&&!J&&(J=y([Y])),(P=/\bGoogle TV\b/.exec(J))&&(J=P[0]),/\bSimulator\b/i.test(e)&&(J=(J?J+" ":"")+"Simulator"),"Opera Mini"==z&&/\bOPiOS\b/.test(e)&&V.push("running in Turbo/Uncompressed mode"),/^iP/.test(J)?(z||(z="Safari"),Z="iOS"+((P=/ OS ([\d_]+)/i.exec(e))?" "+P[1].replace(/_/g,"."):"")):"Konqueror"!=z||/buntu/i.test(Z)?Y&&"Google"!=Y&&(/Chrome/.test(z)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(J))?(z="Android Browser",Z=/\bAndroid\b/.test(Z)?Z:"Android"):z&&!(P=!/\bMinefield\b|\(Android;/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(z))||(z&&!J&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(P+"/")+8))&&(z=null),(P=J||Y||Z)&&(J||Y||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Z))&&(z=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Z)?Z:P)+" Browser")):Z="Kubuntu",(P=/\((Mobile|Tablet).*?Firefox\b/i.exec(e))&&P[1]&&(Z="Firefox OS",J||(J=P[1])),K||(K=b(["(?:Cloud9|CriOS|CrMo|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|Silk(?!/[\\d.]+$))","Version",c(z),"(?:Firefox|Minefield|NetFront)"])),"iCab"==X&&parseFloat(K)>3?X=["WebKit"]:"Trident"!=X&&(P=/\bOpera\b/.test(z)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&"WebKit"||!X&&/\bMSIE\b/i.test(e)&&("Mac OS"==Z?"Tasman":"Trident"))?X=[P]:/\bPlayStation\b(?! Vita\b)/i.test(z)&&"WebKit"==X&&(X=["NetFront"]),"IE"==z&&(P=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(z+=" Mobile",Z="Windows Phone "+(/\+$/.test(P)?P:P+".x"),V.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(z="IE Mobile",Z="Windows Phone 8+",V.unshift("desktop mode"),K||(K=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=z&&"Trident"==X&&(P=/\brv:([\d.]+)/.exec(e))?(/\bWPDesktop\b/i.test(e)||(z&&V.push("identifying as "+z+(K?" "+K:"")),z="IE"),K=P[1]):"Chrome"!=z&&"IE"==z||!(P=/\bEdge\/([\d.]+)/.exec(e))||(z="Microsoft Edge",K=P[1],X=["Trident"]),q){if(d(g,"global"))if(N&&(P=N.lang.System,G=P.getProperty("os.arch"),Z=Z||P.getProperty("os.name")+" "+P.getProperty("os.version")),E&&d(g,"system")&&(P=[g.system])[0]){Z||(Z=P[0].os||null);try{P[1]=g.require("ringo/engine").version,K=P[1].join("."),z="RingoJS"}catch(e){P[0].global.system==g.system&&(z="Narwhal")}}else"object"==a(g.process)&&(P=g.process)?(z="Node.js",G=P.arch,Z=P.platform,K=/[\d.]+/.exec(P.version)[0]):L&&(z="Rhino");else u(P=g.runtime)==I?(z="Adobe AIR",Z=P.flash.system.Capabilities.os):u(P=g.phantom)==R?(z="PhantomJS",K=(P=P.version||null)&&P.major+"."+P.minor+"."+P.patch):"number"==typeof H.documentMode&&(P=/\bTrident\/(\d+)/i.exec(e))&&(K=[K,H.documentMode],(P=+P[1]+4)!=K[1]&&(V.push("IE "+K[1]+" mode"),X&&(X[1]=""),K[1]=P),K="IE"==z?String(K[1].toFixed(1)):K[0]);Z=Z&&s(Z)}K&&(P=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(K)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(q&&S.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&($=/b/i.test(P)?"beta":"alpha",K=K.replace(RegExp(P+"\\+?$"),"")+("beta"==$?W:B)+(/\d+\+?/.exec(P)||"")),"Fennec"==z||"Firefox"==z&&/\b(?:Android|Firefox OS)\b/.test(Z)?z="Firefox Mobile":"Maxthon"==z&&K?K=K.replace(/\.[\d.]+/,".x"):"Silk"==z?(/\bMobi/i.test(e)||(Z="Android",V.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&V.unshift("accelerated")):/\bXbox\b/i.test(J)?(Z=null,"Xbox 360"==J&&/\bIEMobile\b/.test(e)&&V.unshift("mobile mode")):!/^(?:Chrome|IE|Opera)$/.test(z)&&(!z||J||/Browser|Mobi/.test(z))||"Windows CE"!=Z&&!/Mobi/i.test(e)?"IE"==z&&q&&null===g.external?V.unshift("platform preview"):(/\bBlackBerry\b/.test(J)||/\bBB10\b/.test(e))&&(P=(RegExp(J.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||K)?(P=[P,/BB10/.test(e)],Z=(P[1]?(J=null,Y="BlackBerry"):"Device Software")+" "+P[0],K=null):this!=l&&"Wii"!=J&&(q&&F||/Opera/.test(z)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==z&&/\bOS X (?:\d+\.){2,}/.test(Z)||"IE"==z&&(Z&&!/^Win/.test(Z)&&K>5.5||/\bWindows XP\b/.test(Z)&&K>8||8==K&&!/\bTrident\b/.test(e)))&&!x.test(P=h.call(l,e.replace(x,"")+";"))&&P.name&&(P="ing as "+P.name+((P=P.version)?" "+P:""),x.test(z)?(/\bIE\b/.test(P)&&"Mac OS"==Z&&(Z=null),P="identify"+P):(P="mask"+P,z=U?s(U.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(P)&&(Z=null),q||(K=null)),X=["Presto"],V.push(P)):z+=" Mobile",(P=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(P=[parseFloat(P.replace(/\.(\d)$/,".0$1")),P],"Safari"==z&&"+"==P[1].slice(-1)?(z="WebKit Nightly",$="alpha",K=P[1].slice(0,-1)):K!=P[1]&&K!=(P[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(K=null),P[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==P[0]&&537.36==P[2]&&parseFloat(P[1])>=28&&"IE"!=z&&"Microsoft Edge"!=z&&(X=["Blink"]),q&&(M||P[1])?(X&&(X[1]="like Chrome"),P=P[1]||(P=P[0],P<530?1:P<532?2:P<532.05?3:P<533?4:P<534.03?5:P<534.07?6:P<534.1?7:P<534.13?8:P<534.16?9:P<534.24?10:P<534.3?11:P<535.01?12:P<535.02?"13+":P<535.07?15:P<535.11?16:P<535.19?17:P<536.05?18:P<536.1?19:P<537.01?20:P<537.11?"21+":P<537.13?23:P<537.18?24:P<537.24?25:P<537.36?26:"Blink"!=X?"27":"28")):(X&&(X[1]="like Safari"),P=P[0],P=P<400?1:P<500?2:P<526?3:P<533?4:P<534?"4+":P<535?5:P<537?6:P<538?7:P<601?8:"8"),X&&(X[1]+=" "+(P+="number"==typeof P?".x":/[.+]/.test(P)?"":"+")),"Safari"==z&&(!K||parseInt(K)>45)&&(K=P)),"Opera"==z&&(P=/\bzbov|zvav$/.exec(Z))?(z+=" ",V.unshift("desktop mode"),"zvav"==P?(z+="Mini",K=null):z+="Mobile",Z=Z.replace(RegExp(" *"+P+"$"),"")):"Safari"==z&&/\bChrome\b/.exec(X&&X[1])&&(V.unshift("desktop mode"),z="Chrome Mobile",K=null,/\bOS X\b/.test(Z)?(Y="Apple",Z="iOS 4.3+"):Z=null),K&&0==K.indexOf(P=/[\d.]+$/.exec(Z))&&e.indexOf("/"+P+"-")>-1&&(Z=p(Z.replace(P,""))),X&&!/\b(?:Avant|Nook)\b/.test(z)&&(/Browser|Lunascape|Maxthon/.test(z)||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Sleipnir|Web)/.test(z)&&X[1])&&(P=X[X.length-1])&&V.push(P),V.length&&(V=["("+V.join("; ")+")"]),Y&&J&&J.indexOf(Y)<0&&V.push("on "+Y),J&&V.push((/^on /.test(V[V.length-1])?"":"on ")+J),Z&&(P=/ ([\d.+]+)$/.exec(Z),O=P&&"/"==Z.charAt(Z.length-P[0].length-1),Z={architecture:32,family:P&&!O?Z.replace(P[0],""):Z,version:P?P[1]:null,toString:function(){var e=this.version;return this.family+(e&&!O?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(P=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(G))&&!/\bi686\b/i.test(G)&&(Z&&(Z.architecture=64,Z.family=Z.family.replace(RegExp(" *"+P),"")),z&&(/\bWOW64\b/i.test(e)||q&&/\w(?:86|32)$/.test(S.cpuClass||S.platform)&&!/\bWin64; x64\b/i.test(e))&&V.unshift("32-bit")),e||(e=null);var Q={};return Q.description=e,Q.layout=X&&X[0],Q.manufacturer=Y,Q.name=z,Q.prerelease=$,Q.product=J,Q.ua=e,Q.version=z&&K,Q.os=Z||{architecture:null,family:null,version:null,toString:function(){return"null"}},Q.parse=h,Q.toString=v,Q.version&&V.unshift(K),Q.name&&V.unshift(z),Z&&z&&(Z!=String(Z).split(" ")[0]||Z!=z.split(" ")[0]&&!J)&&V.push(J?"("+Z+")":"on "+Z),V.length&&(Q.description=V.join(" ")),Q}var y={function:!0,object:!0},m=y["undefined"==typeof window?"undefined":a(window)]&&window||this,_=m,b=y["undefined"==typeof i?"undefined":a(i)]&&i,v=y["undefined"==typeof t?"undefined":a(t)]&&t&&!t.nodeType&&t,g=b&&v&&"object"==("undefined"==typeof e?"undefined":a(e))&&e;!g||g.global!==g&&g.window!==g&&g.self!==g||(m=g);var w=Math.pow(2,53)-1,x=/\bOpera/,k=this,S=Object.prototype,T=S.hasOwnProperty,j=S.toString;b&&v?l(h(),function(e,t){b[t]=e}):m.platform=h()}).call(void 0)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],28:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t,i){var a=(0,l.findMediaElement)(t),n=r(a,3),o=n[0],c=n[1],f=n[2],p=e.log,h=e.utils.getComputedStyle,y=e.utils.secondsToMs;return o?"video"!==f&&"audio"!==f?p.error("The element of `"+c+"` was not a media element."):(i=i||{},i.data=(0,s.default)({player_software:"HTML5 Video Element",player_mux_plugin:"VideoElementMonitor",player_mux_plugin_version:"2.0.28"},i.data),i.getPlayheadTime=function(){return y(o.currentTime)},i.getStateData=function(){return{player_is_paused:o.paused,player_playhead_time:y(o.currentTime),player_width:parseInt(h(o,"width")),player_height:parseInt(h(o,"height")),player_autoplay_on:o.autoplay,player_preload_on:o.preload,player_error_code:o.error&&o.error.code,player_error_message:o.error&&d[o.error.code],video_poster_url:o.poster,video_source_url:o.currentSrc,video_source_duration:y(o.duration),video_source_height:o.videoHeight,video_source_width:o.videoWidth}},o.mux=o.mux||{},o.mux.swapElement=function(t){var i=(0,l.findMediaElement)(t),a=r(i,3),n=a[0],u=a[1],d=a[2];return n?"video"!==d&&"audio"!==d?e.log.error("The element of `"+u+"` was not a media element."):(n.muxId=o.muxId,delete o.muxId,n.mux=n.mux||{},n.mux.listeners=(0,s.default)({},o.mux.listeners),delete o.mux.listeners,Object.keys(n.mux.listeners).forEach(function(e){o.removeEventListener(e,n.mux.listeners[e],!1),n.addEventListener(e,n.mux.listeners[e],!1)}),n.mux.swapElement=o.mux.swapElement,delete o.mux.swapElement,void(o=n)):e.log.error("No element was found with the `"+u+"` query selector.")},e.init(c,i),e.emit(c,"playerready"),o.paused||(e.emit(c,"play"),o.readyState>2&&e.emit(c,"playing")),o.mux.listeners={},void u.forEach(function(t){o.mux.listeners[t]=function(){e.emit(c,t)},o.addEventListener(t,o.mux.listeners[t],!1)})):p.error("No element was found with the `"+c+"` query selector.")}Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function e(e,t){var i=[],a=!0,n=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){n=!0,r=e}finally{try{!a&&s.return&&s.return()}finally{if(n)throw r}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();i.default=n;var o=e("lodash.assign"),s=a(o),l=e("./utils/element-helpers.js"),u=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],d={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"}},{"./utils/element-helpers.js":15,"lodash.assign":32}],29:[function(e,t,i){},{}],30:[function(e,t,i){(function(i){var a="undefined"!=typeof i?i:"undefined"!=typeof window?window:{},n=e("min-document");if("undefined"!=typeof document)t.exports=document;else{var r=a["__GLOBAL_DOCUMENT_CACHE@4"];r||(r=a["__GLOBAL_DOCUMENT_CACHE@4"]=n),t.exports=r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":29}],31:[function(e,t,i){(function(e){"undefined"!=typeof window?t.exports=window:"undefined"!=typeof e?t.exports=e:"undefined"!=typeof self?t.exports=self:t.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],32:[function(e,t,i){function a(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function n(e){return function(t){return null==t?void 0:t[e]}}function r(e,t){for(var i=-1,a=Array(e);++i<e;)a[i]=t(i);return a}function o(e,t){return function(i){return e(t(i))}}function s(e,t,i){var a=e[t];D.call(e,t)&&m(a,i)&&(void 0!==i||t in e)||(e[t]=i)}function l(e,t){return null!=e&&(D.call(e,t)||"object"==typeof e&&t in e&&null===U(e))}function u(e,t){return t=B(void 0===t?e.length-1:t,0),function(){for(var i=arguments,n=-1,r=B(i.length-t,0),o=Array(r);++n<r;)o[n]=i[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=i[n];return s[t]=o,a(e,this,s)}}function d(e,t,i,a){i||(i={});for(var n=-1,r=t.length;++n<r;){var o=t[n],l=a?a(i[o],e[o],o,i,e):void 0;s(i,o,void 0===l?e[o]:l)}return i}function c(e){return u(function(t,i){var a=-1,n=i.length,r=n>1?i[n-1]:void 0,o=n>2?i[2]:void 0;for(r=e.length>3&&"function"==typeof r?(n--,r):void 0,o&&h(i[0],i[1],o)&&(r=n<3?void 0:r,n=1),t=Object(t);++a<n;){var s=i[a];s&&e(t,s,a,r)}return t})}function f(e){var t=e?e.length:void 0;return w(t)&&(G(e)||S(e)||_(e))?r(t,String):null}function p(e,t){return t=null==t?j:t,!!t&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function h(e,t,i){if(!x(i))return!1;var a=typeof t;return!!("number"==a?b(i)&&p(t,i.length):"string"==a&&t in i)&&m(i[t],e)}function y(e){var t=e&&e.constructor,i="function"==typeof t&&t.prototype||I;return e===i}function m(e,t){return e===t||e!==e&&t!==t}function _(e){return v(e)&&D.call(e,"callee")&&(!R.call(e,"callee")||C.call(e)==P)}function b(e){return null!=e&&w(F(e))&&!g(e)}function v(e){return k(e)&&b(e)}function g(e){var t=x(e)?C.call(e):"";return t==O||t==E}function w(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=j}function x(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function k(e){return!!e&&"object"==typeof e}function S(e){return"string"==typeof e||!G(e)&&k(e)&&C.call(e)==M}function T(e){var t=y(e);if(!t&&!b(e))return H(e);var i=f(e),a=!!i,n=i||[],r=n.length;for(var o in e)!l(e,o)||a&&("length"==o||p(o,r))||t&&"constructor"==o||n.push(o);return n}var j=9007199254740991,P="[object Arguments]",O="[object Function]",E="[object GeneratorFunction]",M="[object String]",A=/^(?:0|[1-9]\d*)$/,I=Object.prototype,D=I.hasOwnProperty,C=I.toString,R=I.propertyIsEnumerable,N=Object.getPrototypeOf,L=Object.keys,B=Math.max,W=!R.call({valueOf:1},"valueOf"),H=o(L,Object),F=n("length"),U=o(N,Object),G=Array.isArray,V=c(function(e,t){if(W||y(t)||b(t))return void d(t,T(t),e);for(var i in t)D.call(t,i)&&s(e,i,t[i])});t.exports=V},{}],33:[function(e,t,i){"use strict";var a=e("./stringify"),n=e("./parse");t.exports={stringify:a,parse:n}},{"./parse":34,"./stringify":35}],34:[function(e,t,i){"use strict";var a=e("./utils"),n=Object.prototype.hasOwnProperty,r={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1,allowDots:!1,decoder:a.decode},o=function(e,t){for(var i={},a=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),r=0;r<a.length;++r){var o,s,l=a[r],u=l.indexOf("]=")===-1?l.indexOf("="):l.indexOf("]=")+1;u===-1?(o=t.decoder(l),s=t.strictNullHandling?null:""):(o=t.decoder(l.slice(0,u)),s=t.decoder(l.slice(u+1))),n.call(i,o)?i[o]=[].concat(i[o]).concat(s):i[o]=s}return i},s=function e(t,i,a){if(!t.length)return i;var n,r=t.shift();if("[]"===r)n=[],n=n.concat(e(t,i,a));else{n=a.plainObjects?Object.create(null):{};var o="["===r[0]&&"]"===r[r.length-1]?r.slice(1,r.length-1):r,s=parseInt(o,10);!isNaN(s)&&r!==o&&String(s)===o&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(n=[],n[s]=e(t,i,a)):n[o]=e(t,i,a)}return n},l=function(e,t,i){if(e){var a=i.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,r=/^([^\[\]]*)/,o=/(\[[^\[\]]*\])/g,l=r.exec(a),u=[];if(l[1]){if(!i.plainObjects&&n.call(Object.prototype,l[1])&&!i.allowPrototypes)return;u.push(l[1])}for(var d=0;null!==(l=o.exec(a))&&d<i.depth;)d+=1,(i.plainObjects||!n.call(Object.prototype,l[1].replace(/\[|\]/g,""))||i.allowPrototypes)&&u.push(l[1]);return l&&u.push("["+a.slice(l.index)+"]"),s(u,t,i)}};t.exports=function(e,t){var i=t||{};if(null!==i.decoder&&void 0!==i.decoder&&"function"!=typeof i.decoder)throw new TypeError("Decoder has to be a function.");if(i.delimiter="string"==typeof i.delimiter||a.isRegExp(i.delimiter)?i.delimiter:r.delimiter,i.depth="number"==typeof i.depth?i.depth:r.depth,i.arrayLimit="number"==typeof i.arrayLimit?i.arrayLimit:r.arrayLimit,i.parseArrays=i.parseArrays!==!1,i.decoder="function"==typeof i.decoder?i.decoder:r.decoder,i.allowDots="boolean"==typeof i.allowDots?i.allowDots:r.allowDots,i.plainObjects="boolean"==typeof i.plainObjects?i.plainObjects:r.plainObjects,i.allowPrototypes="boolean"==typeof i.allowPrototypes?i.allowPrototypes:r.allowPrototypes,i.parameterLimit="number"==typeof i.parameterLimit?i.parameterLimit:r.parameterLimit,i.strictNullHandling="boolean"==typeof i.strictNullHandling?i.strictNullHandling:r.strictNullHandling,""===e||null===e||"undefined"==typeof e)return i.plainObjects?Object.create(null):{};for(var n="string"==typeof e?o(e,i):e,s=i.plainObjects?Object.create(null):{},u=Object.keys(n),d=0;d<u.length;++d){var c=u[d],f=l(c,n[c],i);s=a.merge(s,f,i)}return a.compact(s)}},{"./utils":36}],35:[function(e,t,i){"use strict";var a=e("./utils"),n={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},r={delimiter:"&",strictNullHandling:!1,skipNulls:!1,encode:!0,encoder:a.encode},o=function e(t,i,n,r,o,s,l,u,d){var c=t;if("function"==typeof l)c=l(i,c);else if(c instanceof Date)c=c.toISOString();else if(null===c){if(r)return s?s(i):i;c=""}if("string"==typeof c||"number"==typeof c||"boolean"==typeof c||a.isBuffer(c))return s?[s(i)+"="+s(c)]:[i+"="+String(c)];var f=[];if("undefined"==typeof c)return f;var p;if(Array.isArray(l))p=l;else{var h=Object.keys(c);p=u?h.sort(u):h}for(var y=0;y<p.length;++y){var m=p[y];o&&null===c[m]||(f=Array.isArray(c)?f.concat(e(c[m],n(i,m),n,r,o,s,l,u,d)):f.concat(e(c[m],i+(d?"."+m:"["+m+"]"),n,r,o,s,l,u,d)))}return f};t.exports=function(e,t){var i,a,s=e,l=t||{},u="undefined"==typeof l.delimiter?r.delimiter:l.delimiter,d="boolean"==typeof l.strictNullHandling?l.strictNullHandling:r.strictNullHandling,c="boolean"==typeof l.skipNulls?l.skipNulls:r.skipNulls,f="boolean"==typeof l.encode?l.encode:r.encode,p=f?"function"==typeof l.encoder?l.encoder:r.encoder:null,h="function"==typeof l.sort?l.sort:null,y="undefined"!=typeof l.allowDots&&l.allowDots;if(null!==l.encoder&&void 0!==l.encoder&&"function"!=typeof l.encoder)throw new TypeError("Encoder has to be a function.");"function"==typeof l.filter?(a=l.filter,s=a("",s)):Array.isArray(l.filter)&&(i=a=l.filter);var m=[];if("object"!=typeof s||null===s)return"";var _;_=l.arrayFormat in n?l.arrayFormat:"indices"in l?l.indices?"indices":"repeat":"indices";var b=n[_];i||(i=Object.keys(s)),h&&i.sort(h);for(var v=0;v<i.length;++v){var g=i[v];c&&null===s[g]||(m=m.concat(o(s[g],g,b,d,c,p,a,h,y)))}return m.join(u)}},{"./utils":36}],36:[function(e,t,i){"use strict";var a=function(){for(var e=new Array(256),t=0;t<256;++t)e[t]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}();i.arrayToObject=function(e,t){for(var i=t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)"undefined"!=typeof e[a]&&(i[a]=e[a]);return i},i.merge=function(e,t,a){if(!t)return e;if("object"!=typeof t){if(Array.isArray(e))e.push(t);else{if("object"!=typeof e)return[e,t];e[t]=!0}return e}if("object"!=typeof e)return[e].concat(t);var n=e;return Array.isArray(e)&&!Array.isArray(t)&&(n=i.arrayToObject(e,a)),Object.keys(t).reduce(function(e,n){var r=t[n];return Object.prototype.hasOwnProperty.call(e,n)?e[n]=i.merge(e[n],r,a):e[n]=r,e},n)},i.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},i.encode=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),i="",n=0;n<t.length;++n){var r=t.charCodeAt(n);45===r||46===r||95===r||126===r||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122?i+=t.charAt(n):r<128?i+=a[r]:r<2048?i+=a[192|r>>6]+a[128|63&r]:r<55296||r>=57344?i+=a[224|r>>12]+a[128|r>>6&63]+a[128|63&r]:(n+=1,r=65536+((1023&r)<<10|1023&t.charCodeAt(n)),i+=a[240|r>>18]+a[128|r>>12&63]+a[128|r>>6&63]+a[128|63&r])}return i},i.compact=function(e,t){if("object"!=typeof e||null===e)return e;var a=t||[],n=a.indexOf(e);if(n!==-1)return a[n];if(a.push(e),Array.isArray(e)){for(var r=[],o=0;o<e.length;++o)e[o]&&"object"==typeof e[o]?r.push(i.compact(e[o],a)):"undefined"!=typeof e[o]&&r.push(e[o]);return r}for(var s=Object.keys(e),l=0;l<s.length;++l){var u=s[l];e[u]=i.compact(e[u],a)}return e},i.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},i.isBuffer=function(e){return null!==e&&"undefined"!=typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},{}]},{},[12]); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.mux=e()}}(function(){return function e(t,i,a){function n(o,s){if(!i[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(r)return r(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var d=i[o]={exports:{}};t[o][0].call(d.exports,function(e){var i=t[o][1][e];return n(i?i:e)},d,d.exports,e,t,i,a)}return i[o].exports}for(var r="function"==typeof require&&require,o=0;o<a.length;o++)n(a[o]);return n}({1:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[e[i]]=i);return t}function r(e){var t={};return Object.keys(e).forEach(function(i){if(e.hasOwnProperty(i)&&void 0!==e[i]){var a=i.split("_"),n=a[0],r=u[n];r||(s.default.debug("Data key word `"+a[0]+"` not expected in "+i),r=n+"_"),a.splice(1).forEach(function(e){c[e]?r+=c[e]:(s.default.debug("Data key word `"+e+"` not expected in "+i),r+="_"+e+"_")}),t[r]=e[i]}}),t}Object.defineProperty(i,"__esModule",{value:!0}),i.default=r;var o=e("./utils/log.js"),s=a(o),l={a:"property",d:"ad",e:"event",f:"experiment",m:"mux",p:"player",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view"},u=n(l),d={ad:"ad",ag:"aggregate",ap:"api",al:"application",ar:"architecture",au:"autoplay",br:"break",cd:"code",cg:"category",cn:"config",co:"count",cp:"complete",ct:"content",cu:"current",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",du:"duration",dv:"device",ec:"encoding",en:"end",eg:"engine",em:"embed",er:"error",ev:"events",ex:"expires",fi:"first",fm:"family",fq:"frequency",fr:"frame",fs:"fullscreen",ho:"host",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",li:"live",lo:"load",ma:"max",me:"message",mi:"mime",ml:"midroll",mn:"manufacturer",mx:"mux",nm:"name",no:"number",on:"on",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",ph:"playhead",pi:"plugin",pl:"preroll",po:"poster",pr:"preload",ra:"rate",re:"rebuffer",ro:"ratio",se:"session",sk:"seek",sm:"stream",sq:"sequence",sr:"series",st:"start",so:"source",su:"startup",sw:"software",tc:"tech",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch"},c=n(d)},{"./utils/log.js":18}],2:[function(e,t,i){"use strict";function a(){this.isAdBreak=!1,this.on("adbreakstart",function(){this.isAdBreak=!0}),this.on("play",function(){this.isAdBreak=!1}),this.on("playing",function(){this.isAdBreak=!1}),this.on("seeking",function(){this.isAdBreak=!1}),this.on("viewend",function(){this.isAdBreak=!1})}Object.defineProperty(i,"__esModule",{value:!0}),i.default=a},{}],3:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=function(){},n=0;a.prototype.on=function(e,t,i){return t._eventEmitterGuid=t._eventEmitterGuid||++n,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],i&&(t=t.bind(i)),this._listeners[e].push(t),t},a.prototype.off=function(e,t){var i=this._listeners&&this._listeners[e];i&&i.forEach(function(e,a){e._eventEmitterGuid===t._eventEmitterGuid&&i.splice(a,1)})},a.prototype.one=function(e,t,i){var a=this;t._eventEmitterGuid=t._eventEmitterGuid||++n;var r=function n(){a.off(e,n),t.apply(i||this,arguments)};r._eventEmitterGuid=t._eventEmitterGuid,this.on(e,r)},a.prototype.emit=function(e,t){var i=this;t=t||{};var a=this._listeners&&this._listeners[e]||[],n=this._listeners&&this._listeners["after"+e]||[],r=function(t,a){t=t.slice(),t.forEach(function(t){t.call(i,{type:e},a)})};r(a,t),r(n,t)},i.default=a},{}],4:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("global/window"),r=a(n),o=function(){this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,this.on("playing",function(){this._playheadShouldBeProgressing=!0}),this.on("play",this._startPlaybackHeartbeatInterval),this.on("adbreakstart",this._startPlaybackHeartbeatInterval),this.on("adplay",this._startPlaybackHeartbeatInterval),this.on("seeking",this._startPlaybackHeartbeatInterval),this.on("pause",this._stopPlaybackHeartbeatInterval),this.on("ended",this._stopPlaybackHeartbeatInterval),this.on("viewend",this._stopPlaybackHeartbeatInterval),this.on("error",this._stopPlaybackHeartbeatInterval),this.on("adpause",this._stopPlaybackHeartbeatInterval),this.on("adbreakend",this._stopPlaybackHeartbeatInterval),this.on("seeked",function(){this.data.player_is_paused&&this._stopPlaybackHeartbeatInterval()}),this.on("timeupdate",function(){this.emit("playbackheartbeat",{viewer_time:Date.now()})})};o.prototype._startPlaybackHeartbeatInterval=function(){var e=this;null===this._playbackHeartbeatInterval&&(this.emit("playbackheartbeat",{viewer_time:Date.now()}),this._playbackHeartbeatInterval=r.default.setInterval(function(){e.emit("playbackheartbeat",{viewer_time:Date.now()})},this.playbackHeartbeatTime))},o.prototype._stopPlaybackHeartbeatInterval=function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(r.default.clearInterval(this._playbackHeartbeatInterval),this.emit("playbackheartbeatend",{viewer_time:Date.now()}),this._playbackHeartbeatInterval=null)},i.default=o},{"global/window":31}],5:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("../utils/safe-increment.js"),r=a(n),o=function(){this._playbackTimeTrackerLastPlayheadPosition=-1,this.on("playbackheartbeat",this._updatePlaybackTime),this.on("playbackheartbeatend",this._clearPlaybackTimeState),this.on("seeking",this._clearPlaybackTimeState)};o.prototype._updatePlaybackTime=function(){var e=this.data.player_playhead_time;if(this._playbackTimeTrackerLastPlayheadPosition>=0&&e>this._playbackTimeTrackerLastPlayheadPosition){var t=e-this._playbackTimeTrackerLastPlayheadPosition;t<=1e3&&(0,r.default)(this.data,"view_content_playback_time",t)}this._playbackTimeTrackerLastPlayheadPosition=e},o.prototype._clearPlaybackTimeState=function(){this._updatePlaybackTime(),this._playbackTimeTrackerLastPlayheadPosition=-1},i.default=o},{"../utils/safe-increment.js":20}],6:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=function(){this.on("playbackheartbeat",this._updatePlayheadTime),this.on("playbackheartbeatend",this._updatePlayheadTime),this.on("timeupdate",this._updatePlayheadTime),this.on("destroy",function(){this.off("timeupdate",this._updatePlayheadTime)})};a.prototype._updatePlayheadTime=function(e,t){t.player_playhead_time?this.data.player_playhead_time=t.player_playhead_time:this.getPlayheadTime&&(this.data.player_playhead_time=this.getPlayheadTime())},i.default=a},{}],7:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("../utils/safe-increment.js"),r=a(n),o=function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,this.on("playbackheartbeat",this._checkIfRebuffering),this.on("playbackheartbeatend",this._cleanupRebufferTracker),this.on("seeking",function(){this._cleanupRebufferTracker(null,{viewer_time:Date.now()})})};o.prototype._checkIfRebuffering=function(e,t){if(this.isSeeking||this.isAdBreak||!this._playheadShouldBeProgressing)return void this._cleanupRebufferTracker(e,t);if(null===this._lastCheckedTime)return this._lastCheckedTime=t.viewer_time,this._lastPlayheadTime=this.data.player_playhead_time,void(this._lastPlayheadTimeUpdatedTime=t.viewer_time);if(this._lastPlayheadTime!==this.data.player_playhead_time)return this._rebuffering&&(this._rebuffering=!1,this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime),this.emit("rebufferend")),this._lastCheckedTime=t.viewer_time,this._lastPlayheadTime=this.data.player_playhead_time,void(this._lastPlayheadTimeUpdatedTime=t.viewer_time);var i=t.viewer_time-this._lastPlayheadTimeUpdatedTime;i>=this.minimumRebufferDuration&&(this._rebuffering?this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime):(this._rebuffering=!0,(0,r.default)(this.data,"view_rebuffer_count",1),this._updateRebufferMetrics(i),this.emit("rebufferstart"))),this._lastCheckedTime=t.viewer_time},o.prototype._cleanupRebufferTracker=function(e,t){this._rebuffering&&(this._rebuffering=!1,this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime),this.emit("rebufferend")),this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null},o.prototype._updateRebufferMetrics=function(e){e>0&&(0,r.default)(this.data,"view_rebuffer_duration",e),this.data.view_watch_time>=0&&this.data.view_rebuffer_count>0&&(this.data.view_rebuffer_frequency=this.data.view_rebuffer_count/this.data.view_watch_time,this.data.view_rebuffer_percentage=this.data.view_rebuffer_duration/this.data.view_watch_time)},i.default=o},{"../utils/safe-increment.js":20}],8:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(){var e=this;this.on("viewinit",function(){this._lastPlayheadPosition=-1});var t=["pause","rebufferstart","seeking","error","adbreakstart","hb"],i=["playing","hb"];t.forEach(function(t){e.on(t,function(){if(this._lastPlayheadPosition>=0&&this.data.player_playhead_time>=0&&this._lastPlayerWidth>=0&&this._lastSourceWidth>0&&this._lastPlayerHeight>=0&&this._lastSourceHeight>0){var e=this.data.player_playhead_time-this._lastPlayheadPosition;if(e<0)return void(this._lastPlayheadPosition=-1);var t=Math.min(this._lastPlayerWidth/this._lastSourceWidth,this._lastPlayerHeight/this._lastSourceHeight),i=Math.max(0,t-1),a=Math.max(0,1-t);this.data.view_max_upscale_percentage=Math.max(this.data.view_max_upscale_percentage||0,i),this.data.view_max_downscale_percentage=Math.max(this.data.view_max_downscale_percentage||0,a),(0,o.default)(this.data,"view_total_content_playback_time",e),(0,o.default)(this.data,"view_total_upscaling",i*e),(0,o.default)(this.data,"view_total_downscaling",a*e)}this._lastPlayheadPosition=-1})}),i.forEach(function(t){e.on(t,function(){this._lastPlayheadPosition=this.data.player_playhead_time,this._lastPlayerWidth=this.data.player_width,this._lastPlayerHeight=this.data.player_height,this._lastSourceWidth=this.data.video_source_width,this._lastSourceHeight=this.data.video_source_height})})}Object.defineProperty(i,"__esModule",{value:!0}),i.default=n;var r=e("../utils/safe-increment.js"),o=a(r)},{"../utils/safe-increment.js":20}],9:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(){this.isSeeking=!1,this.on("seeking",function(){this._lastSeekingTime=Date.now(),this.isSeeking===!1&&(this.isSeeking=!0,this.send("seeking"))}),this.on("seeked",function(){this.isSeeking=!1;var e=this._lastSeekingTime||Date.now(),t=Date.now()-e;(0,o.default)(this.data,"view_seek_count",1),(0,o.default)(this.data,"view_seek_duration",t);var i=this.data.view_max_seek_time||0;this.data.view_max_seek_time=Math.max(i,t)}),this.on("viewend",function(){this.isSeeking=!1})}Object.defineProperty(i,"__esModule",{value:!0}),i.default=n;var r=e("../utils/safe-increment.js"),o=a(r)},{"../utils/safe-increment.js":20}],10:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=function(){this.on("viewinit",function(){var e=this.data,t=e.view_id,i=function(e){"playing"===e.type&&"undefined"==typeof this.data.view_time_to_first_frame?this.calculateTimeToFirstFrame(Date.now(),t):"adplaying"===e.type&&("undefined"==typeof this.data.view_content_playback_time||this.data.view_content_playback_time<=1e3)&&this.calculateTimeToFirstFrame(Date.now(),t)};this.one("playing",i),this.one("adplaying",i),this.one("viewend",function(){this.off("playing",i),this.off("adplaying",i)})})};a.prototype.calculateTimeToFirstFrame=function(e,t){t===this.data.view_id&&(this.data.view_time_to_first_frame=e-this.data.view_start,(this.data.player_autoplay_on||this.data.video_is_autoplay)&&this.NAVIGATION_START&&(this.data.view_aggregate_startup_time=e-this.NAVIGATION_START))},i.default=a},{}],11:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("../utils/safe-increment.js"),r=a(n),o=function(){this._watchTimeTrackerLastCheckedTime=null,this.on("playbackheartbeat",this._updateWatchTime),this.on("playbackheartbeatend",this._clearWatchTimeState)};o.prototype._updateWatchTime=function(e,t){var i=t.viewer_time;null===this._watchTimeTrackerLastCheckedTime&&(this._watchTimeTrackerLastCheckedTime=i),(0,r.default)(this.data,"view_watch_time",i-this._watchTimeTrackerLastCheckedTime),this._updateRebufferMetrics(),this._watchTimeTrackerLastCheckedTime=i},o.prototype._clearWatchTimeState=function(e,t){this._updateWatchTime(e,t),this._watchTimeTrackerLastCheckedTime=null},i.default=o},{"../utils/safe-increment.js":20}],12:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},r=e("global/window"),o=a(r),s=e("./vendor/platform.js"),l=a(s),u=e("qs"),d=a(u),c=e("./vendor/js-cookie.js"),f=a(c),p=e("./minify-keys.js"),h=a(p),y=e("./utils/image-beacon.js"),m=a(y),_=e("./utils/beacon-url.js"),b=a(_),v=e("./utils/element-helpers.js"),g=e("lodash.assign"),w=a(g),x=e("./utils/log.js"),k=a(x),S=e("./utils/uuid.js"),T=e("./player-monitor.js"),j=a(T),P=e("./video-el-monitor.js"),O=a(P),E=e("./utils/utils-public.js"),M=a(E),A="2.0.29",I="2.0",D={},C={};t.exports=function(){function e(){var e=void 0,t=Date.now();try{e=d.default.parse(f.default.get("muxData")||"")}catch(e){}e=e||{},e.mux_viewer_id=e.mux_viewer_id||(0,S.generateUUID)(),e.session_start&&(e.sst=e.session_start,delete e.session_start),e.session_id&&(e.sid=e.session_id,delete e.session_id),e.session_expires&&(e.sex=e.session_expires,delete e.session_expires),(!e.sex||e.sex<t)&&(e.sid=(0,S.generateUUID)(),e.sst=t),e.sex=t+15e5,f.default.set("muxData",d.default.stringify(e),{expires:7300});var i={session_id:e.sid,session_start:e.sst,session_expires:e.sex,mux_viewer_id:e.mux_viewer_id};return i}function t(e,t){e=Array.prototype.slice.apply(e),t=t||Date.now();var i=e[e.length-1],a=void 0;return"object"!==("undefined"==typeof i?"undefined":n(i))?(e.push({viewer_time:t}),e):(i.viewer_time||(a=(0,w.default)({},i),a.viewer_time=t,e[e.length-1]=a),e)}var i=function e(i){var a=arguments,n=Date.now();"string"==typeof i?e.hasOwnProperty(i)?o.default.setTimeout(function(){a=Array.prototype.splice.call(a,1),a=t(a,n),e[i].apply(null,a)},0):k.default.warn("`"+i+"` is an unknown task"):"function"==typeof i?o.default.setTimeout(function(){i(e)},0):k.default.warn("`"+i+"` is invalid.")};i.loaded=Date.now(),i.VERSION=A,i.API_VERSION=I,i.PLAYER_TRACKED=!1,i.monitor=function(e,t){return(0,O.default)(i,e,t)},i.init=function(e,t){var a=(0,v.getMuxPlayerId)(e);D[a]=new j.default(i,a,t)},i.emit=function(e,t,i){var a=(0,v.getMuxPlayerId)(e);D[a]?(D[a].emit(t,i),"destroy"===t&&delete D[a]):k.default.error("A monitor for `"+a+"` has not been initialized.")};var a={mux_api_version:I,mux_embed_version:A,page_url:o.default.location.href,viewer_application_name:l.default.name,viewer_application_version:l.default.version,viewer_application_engine:l.default.layout,viewer_device_name:l.default.product,viewer_device_category:"",viewer_device_manufacturer:l.default.manufacturer,viewer_os_family:l.default.os&&l.default.os.family,viewer_os_architecture:l.default.os&&l.default.os.architecture,viewer_os_version:l.default.os&&l.default.os.version};return i.send=function(t,r){if(t&&!i.checkDoNotTrack()){var o=e()||{},s={};if(!r||"object"!==("undefined"==typeof r?"undefined":n(r)))return k.default.error("A data object was expected in send() but was not provided");"pageloadstart"===t&&(a.page_load_start=r.viewer_time),(0,w.default)(s,a),(0,w.default)(s,r),(0,w.default)(s,o),s.event=t,s.user_id&&(s.viewer_user_id=s.user_id,delete s.user_id),s=(0,h.default)(s),k.default.debug("Sending event: ",t,s),r.property_key&&(C[r.property_key]=C[r.property_key]||(0,b.default)(r.property_key),m.default.send(C[r.property_key],t,s))}},i.checkDoNotTrack=function(){var e=o.default.navigator,t=o.default.doNotTrack||e.doNotTrack||e.msDoNotTrack;return"1"===t},i.checkDoNotTrack()&&k.default.debug("The browser's Do Not Track flag is enabled - Mux beaconing is disabled."),i.log=k.default,i.utils=M.default,i}()},{"./minify-keys.js":1,"./player-monitor.js":13,"./utils/beacon-url.js":14,"./utils/element-helpers.js":15,"./utils/image-beacon.js":17,"./utils/log.js":18,"./utils/utils-public.js":22,"./utils/uuid.js":23,"./vendor/js-cookie.js":25,"./vendor/platform.js":27,"./video-el-monitor.js":28,"global/window":31,"lodash.assign":32,qs:33}],13:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("./utils/log.js"),r=a(n),o=e("lodash.assign"),s=a(o),l=e("./utils/uuid.js"),u=e("global/document"),d=a(u),c=e("global/window"),f=a(c),p=e("./mixins/event-emitter.js"),h=a(p),y=e("./mixins/playback-heartbeat.js"),m=a(y),_=e("./utils/safe-increment.js"),b=a(_),v=e("./utils/video-id-from-src.js"),g=a(v),w=e("./mixins/watch-time-tracker.js"),x=a(w),k=e("./mixins/playback-time-tracker.js"),S=a(k),T=e("./mixins/playhead-time-tracker.js"),j=a(T),P=e("./mixins/rebuffer-tracker.js"),O=a(P),E=e("./mixins/time-to-first-frame-tracker.js"),M=a(E),A=e("./mixins/scaling-tracker.js"),I=a(A),D=e("./mixins/seeking-tracker.js"),C=a(D),R=e("./mixins/ad-tracker.js"),N=a(R),L=["viewstart","ended","loadstart","pause","play","playing","ratechange","stalled","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","rebufferstart","rebufferend","seeked","error","hb"],B=function(e,t,i){var a=this;this.DOM_CONTENT_LOADED_EVENT_END=f.default.performance&&f.default.performance.timing.domContentLoadedEventEnd,this.NAVIGATION_START=f.default.performance&&f.default.performance.timing.navigationStart;var n={debug:!1,minimumRebufferDuration:100,playbackHeartbeatTime:25};this.mux=e,this.id=t,i=(0,s.default)(n,i),r.default.setLevel(i.debug?"debug":"warn"),this.getPlayheadTime=i.getPlayheadTime,this.getStateData=i.getStateData||function(){},this.minimumRebufferDuration=i.minimumRebufferDuration,this.playbackHeartbeatTime=i.playbackHeartbeatTime,this.data={player_instance_id:(0,l.generateShortID)()},this.data.view_sequence_number=1,this.data.player_sequence_number=1,this.on("viewinit",function(e,t){this._resetVideoData(),this._resetViewData(),this.updateStateData(),(0,s.default)(this.data,t),this._initializeViewData();var i=function(){"undefined"==typeof this.data.view_start&&(this.data.view_start=Date.now(),this.emit("viewstart"))}.bind(this);this.one("play",i),this.one("adbreakstart",i)}),this.on("videochange",function(e,t){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",t)}),this.on("destroy",function(e,t){"undefined"!=typeof this.data.view_start&&(this.emit("viewend"),this.send("viewend")),f.default.clearTimeout(this._heartBeatTimeout)}),this.on("playerready",function(e,t){(0,s.default)(this.data,t)}),L.forEach(function(e){a.on(e,function(t,i){0!==e.indexOf("ad")&&this.updateStateData(),(0,s.default)(this.data,{viewer_time:Date.now()},i),this._sanitizeData()}),a.on("after"+e,function(){this.send(e)})});var o=function(e){var t=Date.now();this.data.player_init_time&&(this.data.player_startup_time=t-this.data.player_init_time),!this.mux.PLAYER_TRACKED&&this.NAVIGATION_START&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.DOM_CONTENT_LOADED_EVENT_END)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.DOM_CONTENT_LOADED_EVENT_END||1/0)-this.NAVIGATION_START)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time};this.one("playerready",o),C.default.apply(this),N.default.apply(this),j.default.apply(this),m.default.apply(this),I.default.apply(this),x.default.apply(this),S.default.apply(this),O.default.apply(this),M.default.apply(this),this.emit("viewinit",i.data)};(0,s.default)(B.prototype,j.default.prototype),(0,s.default)(B.prototype,h.default.prototype),(0,s.default)(B.prototype,C.default.prototype),(0,s.default)(B.prototype,N.default.prototype),(0,s.default)(B.prototype,m.default.prototype),(0,s.default)(B.prototype,x.default.prototype),(0,s.default)(B.prototype,S.default.prototype),(0,s.default)(B.prototype,O.default.prototype),(0,s.default)(B.prototype,M.default.prototype),B.prototype.updateStateData=function(){(0,s.default)(this.data,this.getStateData()),this.getPlayheadTime&&(this.data.player_playhead_time=this.getPlayheadTime()),this._sanitizeData()},B.prototype.send=function(e){var t=(0,s.default)({},this.data);if(1===t.player_error_code&&(delete t.player_error_code,delete t.player_error_message),t.player_source_duration===1/0||t.video_source_duration===1/0?t.video_source_is_live=!0:(t.player_source_duration>0||t.video_source_duration>0)&&(t.video_source_is_live=!1),t.video_source_url=t.video_source_url||t.player_source_url,t.video_source_url){var i=d.default.createElement("a");i.href=t.video_source_url;var a=i.hostname,n=a.match(/[^\.]+\.[^\.]+$/);n&&n.length&&(t.video_source_domain=n[0]),t.video_source_host_name=a}delete t.ad_request_id,r.default.debug("Sending `"+e+"`",t),this.mux.send(e,t),this.data.view_sequence_number++,this.data.player_sequence_number++,this._restartHeartBeat()},B.prototype._sanitizeData=function(){var e=this,t=["player_width","player_height","video_source_width","video_source_height","player_playhead_time"];t.forEach(function(t){var i=parseInt(e.data[t],10);e.data[t]=isNaN(i)?void 0:i})},B.prototype._resetVideoData=function(e,t){var i=this;Object.keys(this.data).forEach(function(e){0===e.indexOf("video_")&&delete i.data[e]})},B.prototype._resetViewData=function(){var e=this;Object.keys(this.data).forEach(function(t){0===t.indexOf("view_")&&delete e.data[t]}),this.data.view_sequence_number=1},B.prototype._initializeViewData=function(){var e=this,t=this.data.view_id=(0,l.generateUUID)();this.data.video_id||(this.data.video_id=(0,g.default)(this.data.player_source_url));var i=function(){t===e.data.view_id&&(0,b.default)(e.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",i):i()},B.prototype._restartHeartBeat=function(){var e=this;f.default.clearTimeout(this._heartBeatTimeout),this._heartBeatTimeout=f.default.setTimeout(function(){e.data.player_is_paused||e.emit("hb")},1e4)},i.default=B},{"./mixins/ad-tracker.js":2,"./mixins/event-emitter.js":3,"./mixins/playback-heartbeat.js":4,"./mixins/playback-time-tracker.js":5,"./mixins/playhead-time-tracker.js":6,"./mixins/rebuffer-tracker.js":7,"./mixins/scaling-tracker.js":8,"./mixins/seeking-tracker.js":9,"./mixins/time-to-first-frame-tracker.js":10,"./mixins/watch-time-tracker.js":11,"./utils/log.js":18,"./utils/safe-increment.js":20,"./utils/uuid.js":23,"./utils/video-id-from-src.js":24,"global/document":30,"global/window":31,"lodash.assign":32}],14:[function(e,t,i){"use strict";function a(e){return e=e||"",e.match(/^[a-z0-9]+$/)?"https://"+e+".litix.io":"https://img.litix.io/a.gif"}Object.defineProperty(i,"__esModule",{value:!0}),i.default=a},{}],15:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.findMediaElement=i.getMuxPlayerId=void 0;var a=e("./uuid.js"),n=function(e){return e&&"undefined"!=typeof e.nodeName?(e.muxId||(e.muxId=e.id||(0,a.generateShortID)()),e.muxId):e},r=function(e){var t=void 0;e&&"undefined"!=typeof e.nodeName?(t=e,e=n(t)):t=document.querySelector(e);var i=t&&t.nodeName?t.nodeName.toLowerCase():"";return[t,e,i]};i.getMuxPlayerId=n,i.findMediaElement=r},{"./uuid.js":23}],16:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(o.default.defaultView&&o.default.defaultView.getComputedStyle)return o.default.defaultView.getComputedStyle(e,null).getPropertyValue(t)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=n;var r=e("global/document"),o=a(r)},{"global/document":30}],17:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("qs"),r=a(n),o={};o.send=function(e,t,i){var a=new Image;return a.src=e+"?e="+t+"&"+r.default.stringify(i),a},i.default=o},{qs:33}],18:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("../vendor/loglevel.js"),r=a(n),o=r.default.methodFactory;r.default.methodFactory=function(e,t,i){var a=o(e,t,i);return function(){for(var e=["[mux]"],t=0;t<arguments.length;t++)e.push(arguments[t]);a.apply(void 0,e)}},r.default.setLevel(r.default.getLevel()),i.default=r.default},{"../vendor/loglevel.js":26}],19:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t,i,a){var n=a;if(e&&"function"==typeof e[t])try{n=e[t].apply(e,i)}catch(e){o.default.debug("safeCall error",e)}return n}Object.defineProperty(i,"__esModule",{value:!0}),i.default=n;var r=e("./log.js"),o=a(r)},{"./log.js":18}],20:[function(e,t,i){"use strict";function a(e,t,i){i=void 0===i?1:i,e[t]=e[t]||0,e[t]+=i}Object.defineProperty(i,"__esModule",{value:!0}),i.default=a},{}],21:[function(e,t,i){"use strict";function a(e){return Math.floor(1e3*e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=a},{}],22:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(i,"__esModule",{value:!0});var n=e("./safe-call.js"),r=a(n),o=e("./safe-increment.js"),s=a(o),l=e("./get-computed-style.js"),u=a(l),d=e("./seconds-to-ms.js"),c=a(d),f={};f.safeCall=r.default,f.safeIncrement=s.default,f.getComputedStyle=u.default,f.secondsToMs=c.default,i.default=f},{"./get-computed-style.js":16,"./safe-call.js":19,"./safe-increment.js":20,"./seconds-to-ms.js":21}],23:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,i="x"===e?t:3&t|8;return i.toString(16)})},n=function(){return("000000"+(Math.random()*Math.pow(36,6)<<0).toString(36)).slice(-6)};i.generateUUID=a,i.generateShortID=n},{}],24:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e){var t=o.default.createElement("a");t.href=e;var i=t.pathname.replace(/\.[^\/.]+$/,"");return l.default.btoa(t.host+i).split("=")[0]}Object.defineProperty(i,"__esModule",{value:!0}),i.default=n;var r=e("global/document"),o=a(r),s=e("global/window"),l=a(s)},{"global/document":30,"global/window":31}],25:[function(e,t,i){"use strict";!function(e){t.exports=e()}(function(){function e(i){function a(e,n,r){var o;if(arguments.length>1){if(r=t({path:"/"},a.defaults,r),"number"==typeof r.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}try{o=JSON.stringify(n),/^[\{\[]/.test(o)&&(n=o)}catch(e){}return n=i.write?i.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape),document.cookie=[e,"=",n,r.expires&&"; expires="+r.expires.toUTCString(),r.path&&"; path="+r.path,r.domain&&"; domain="+r.domain,r.secure?"; secure":""].join("")}e||(o={});for(var l=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,d=0;d<l.length;d++){var c=l[d].split("="),f=c[0].replace(u,decodeURIComponent),p=c.slice(1).join("=");'"'===p.charAt(0)&&(p=p.slice(1,-1));try{if(p=i.read?i.read(p,f):i(p,f)||p.replace(u,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(e){}if(e===f){o=p;break}e||(o[f]=p)}catch(e){}}return o}return a.get=a.set=a,a.getJSON=function(){return a.apply({json:!0},[].slice.call(arguments))},a.defaults={},a.remove=function(e,i){a(e,"",t(i,{expires:-1}))},a.withConverter=e,a}var t=function(){for(var e=0,t={};e<arguments.length;e++){var i=arguments[e];for(var a in i)t[a]=i[a]}return t};return e(function(){})})},{}],26:[function(e,t,i){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(e,i){"object"===("undefined"==typeof t?"undefined":a(t))&&t.exports?t.exports=i():e.log=i()}(void 0,function(){function e(e){return("undefined"==typeof console?"undefined":a(console))!==l&&(void 0!==console[e]?t(console,e):void 0!==console.log?t(console,"log"):s)}function t(e,t){var i=e[t];if("function"==typeof i.bind)return i.bind(e);try{return Function.prototype.bind.call(i,e)}catch(t){return function(){return Function.prototype.apply.apply(i,[e,arguments])}}}function i(e,t,i){return function(){("undefined"==typeof console?"undefined":a(console))!==l&&(n.call(this,t,i),this[e].apply(this,arguments))}}function n(e,t){for(var i=0;i<u.length;i++){var a=u[i];this[a]=i<e?s:this.methodFactory(a,e,t)}}function r(t,a,n){return e(t)||i.apply(this,arguments)}function o(e,t,i){function o(e){var t=(u[e]||"silent").toUpperCase();try{return void(window.localStorage[f]=t)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+t+";"}catch(e){}}function s(){var e;try{e=window.localStorage[f]}catch(e){}if(("undefined"==typeof e?"undefined":a(e))===l)try{var t=window.document.cookie,i=t.indexOf(encodeURIComponent(f)+"=");i&&(e=/^([^;]+)/.exec(t.slice(i))[1])}catch(e){}return void 0===c.levels[e]&&(e=void 0),e}var d,c=this,f="loglevel";e&&(f+=":"+e),c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=i||r,c.getLevel=function(){return d},c.setLevel=function(t,i){if("string"==typeof t&&void 0!==c.levels[t.toUpperCase()]&&(t=c.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=c.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(d=t,i!==!1&&o(t),n.call(c,t,e),("undefined"==typeof console?"undefined":a(console))===l&&t<c.levels.SILENT)return"No console available for logging"},c.setDefaultLevel=function(e){s()||c.setLevel(e,!1)},c.enableAll=function(e){c.setLevel(c.levels.TRACE,e)},c.disableAll=function(e){c.setLevel(c.levels.SILENT,e)};var p=s();null==p&&(p=null==t?"WARN":t),c.setLevel(p,!1)}var s=function(){},l="undefined",u=["trace","debug","info","warn","error"],d=new o,c={};d.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=c[e];return t||(t=c[e]=new o(e,d.getLevel(),d.methodFactory)),t};var f=("undefined"==typeof window?"undefined":a(window))!==l?window.log:void 0;return d.noConflict=function(){return("undefined"==typeof window?"undefined":a(window))!==l&&window.log===d&&(window.log=f),d},d})},{}],27:[function(e,t,i){(function(e){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};(function(){function n(e){return e=String(e),e.charAt(0).toUpperCase()+e.slice(1)}function r(e,t,i){var a={6.4:"10",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&i&&/^Win/i.test(e)&&(a=a[/[\d.]+$/.exec(e)])&&(e="Windows "+a),e=String(e),t&&i&&(e=e.replace(RegExp(t,"i"),i)),e=s(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").split(" on ")[0]); | ||
}function o(e,t){var i=-1,a=e?e.length:0;if("number"==typeof a&&a>-1&&a<=w)for(;++i<a;)t(e[i],i,e);else l(e,t)}function s(e){return e=p(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:n(e)}function l(e,t){for(var i in e)T.call(e,i)&&t(e[i],i,e)}function u(e){return null==e?n(e):j.call(e).slice(8,-1)}function d(e,t){var i=null!=e?a(e[t]):"number";return!(/^(?:boolean|number|string|undefined)$/.test(i)||"object"==i&&!e[t])}function c(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function f(e,t){var i=null;return o(e,function(a,n){i=t(i,a,n,e)}),i}function p(e){return String(e).replace(/^ +| +$/g,"")}function h(e){function t(t){return f(t,function(t,i){return t||RegExp("\\b"+(i.pattern||c(i))+"\\b","i").exec(e)&&(i.label||i)})}function i(t){return f(t,function(t,i,a){return t||(i[J]||i[/^[a-z]+(?: +[a-z]+\b)*/i.exec(J)]||RegExp("\\b"+c(a)+"(?:\\b|\\w*\\d)","i").exec(e))&&a})}function n(t){return f(t,function(t,i){return t||RegExp("\\b"+(i.pattern||c(i))+"\\b","i").exec(e)&&(i.label||i)})}function o(t){return f(t,function(t,i){var a=i.pattern||c(i);return!t&&(t=RegExp("\\b"+a+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(t=r(t,a,i.label||i)),t})}function y(t){return f(t,function(t,i){var a=i.pattern||c(i);return!t&&(t=RegExp("\\b"+a+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+a+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(i.label&&!RegExp(a,"i").test(i.label)?i.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),i=i.label||i,t=s(t[0].replace(RegExp(a,"i"),i).replace(RegExp("; *(?:"+i+"[_-])?","i")," ").replace(RegExp("("+i+")[-_.]?(\\w)","i"),"$1 $2"))),t})}function b(t){return f(t,function(t,i){return t||(RegExp(i+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null})}function v(){return this.description||""}var g=m,w=e&&"object"==("undefined"==typeof e?"undefined":a(e))&&"String"!=u(e);w&&(g=e,e=null);var S=g.navigator||{},T=S.userAgent||"";e||(e=T);var P,O,E=w||k==_,M=w?!!S.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(j.toString()),A="Object",I=w?A:"ScriptBridgingProxyObject",D=w?A:"Environment",C=w&&g.java?"JavaPackage":u(g.java),R=w?A:"RuntimeObject",N=/\bJava/.test(C)&&g.java,L=N&&u(g.environment)==D,B=N?"a":"α",W=N?"b":"β",H=g.document||{},F=g.operamini||g.opera,G=x.test(G=w&&F?F["[[Class]]"]:u(F))?G:F=null,U=e,V=[],$=null,q=e==T,K=q&&F&&"function"==typeof F.version&&F.version(),X=t(["Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),z=n(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel",{label:"SRWare Iron",pattern:"Iron"},"K-Meleon","Konqueror","Lunascape","Maxthon","Midori","Nook Browser","PhantomJS","Raven","Rekonq","RockMelt","SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser","Sunrise","Swiftfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),J=y([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nook","PlayBook","PlayStation 4","PlayStation 3","PlayStation Vita","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),Y=i({Apple:{iPad:1,iPhone:1,iPod:1},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{"PlayStation 4":1,"PlayStation 3":1,"PlayStation Vita":1}}),Z=o(["Windows Phone ","Android","CentOS","Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(X&&(X=[X]),Y&&!J&&(J=y([Y])),(P=/\bGoogle TV\b/.exec(J))&&(J=P[0]),/\bSimulator\b/i.test(e)&&(J=(J?J+" ":"")+"Simulator"),"Opera Mini"==z&&/\bOPiOS\b/.test(e)&&V.push("running in Turbo/Uncompressed mode"),/^iP/.test(J)?(z||(z="Safari"),Z="iOS"+((P=/ OS ([\d_]+)/i.exec(e))?" "+P[1].replace(/_/g,"."):"")):"Konqueror"!=z||/buntu/i.test(Z)?Y&&"Google"!=Y&&(/Chrome/.test(z)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(J))?(z="Android Browser",Z=/\bAndroid\b/.test(Z)?Z:"Android"):z&&!(P=!/\bMinefield\b|\(Android;/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(z))||(z&&!J&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(P+"/")+8))&&(z=null),(P=J||Y||Z)&&(J||Y||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Z))&&(z=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Z)?Z:P)+" Browser")):Z="Kubuntu",(P=/\((Mobile|Tablet).*?Firefox\b/i.exec(e))&&P[1]&&(Z="Firefox OS",J||(J=P[1])),K||(K=b(["(?:Cloud9|CriOS|CrMo|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|Silk(?!/[\\d.]+$))","Version",c(z),"(?:Firefox|Minefield|NetFront)"])),"iCab"==X&&parseFloat(K)>3?X=["WebKit"]:"Trident"!=X&&(P=/\bOpera\b/.test(z)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&"WebKit"||!X&&/\bMSIE\b/i.test(e)&&("Mac OS"==Z?"Tasman":"Trident"))?X=[P]:/\bPlayStation\b(?! Vita\b)/i.test(z)&&"WebKit"==X&&(X=["NetFront"]),"IE"==z&&(P=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(z+=" Mobile",Z="Windows Phone "+(/\+$/.test(P)?P:P+".x"),V.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(z="IE Mobile",Z="Windows Phone 8+",V.unshift("desktop mode"),K||(K=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=z&&"Trident"==X&&(P=/\brv:([\d.]+)/.exec(e))?(/\bWPDesktop\b/i.test(e)||(z&&V.push("identifying as "+z+(K?" "+K:"")),z="IE"),K=P[1]):"Chrome"!=z&&"IE"==z||!(P=/\bEdge\/([\d.]+)/.exec(e))||(z="Microsoft Edge",K=P[1],X=["Trident"]),q){if(d(g,"global"))if(N&&(P=N.lang.System,U=P.getProperty("os.arch"),Z=Z||P.getProperty("os.name")+" "+P.getProperty("os.version")),E&&d(g,"system")&&(P=[g.system])[0]){Z||(Z=P[0].os||null);try{P[1]=g.require("ringo/engine").version,K=P[1].join("."),z="RingoJS"}catch(e){P[0].global.system==g.system&&(z="Narwhal")}}else"object"==a(g.process)&&(P=g.process)?(z="Node.js",U=P.arch,Z=P.platform,K=/[\d.]+/.exec(P.version)[0]):L&&(z="Rhino");else u(P=g.runtime)==I?(z="Adobe AIR",Z=P.flash.system.Capabilities.os):u(P=g.phantom)==R?(z="PhantomJS",K=(P=P.version||null)&&P.major+"."+P.minor+"."+P.patch):"number"==typeof H.documentMode&&(P=/\bTrident\/(\d+)/i.exec(e))&&(K=[K,H.documentMode],(P=+P[1]+4)!=K[1]&&(V.push("IE "+K[1]+" mode"),X&&(X[1]=""),K[1]=P),K="IE"==z?String(K[1].toFixed(1)):K[0]);Z=Z&&s(Z)}K&&(P=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(K)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(q&&S.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&($=/b/i.test(P)?"beta":"alpha",K=K.replace(RegExp(P+"\\+?$"),"")+("beta"==$?W:B)+(/\d+\+?/.exec(P)||"")),"Fennec"==z||"Firefox"==z&&/\b(?:Android|Firefox OS)\b/.test(Z)?z="Firefox Mobile":"Maxthon"==z&&K?K=K.replace(/\.[\d.]+/,".x"):"Silk"==z?(/\bMobi/i.test(e)||(Z="Android",V.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&V.unshift("accelerated")):/\bXbox\b/i.test(J)?(Z=null,"Xbox 360"==J&&/\bIEMobile\b/.test(e)&&V.unshift("mobile mode")):!/^(?:Chrome|IE|Opera)$/.test(z)&&(!z||J||/Browser|Mobi/.test(z))||"Windows CE"!=Z&&!/Mobi/i.test(e)?"IE"==z&&q&&null===g.external?V.unshift("platform preview"):(/\bBlackBerry\b/.test(J)||/\bBB10\b/.test(e))&&(P=(RegExp(J.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||K)?(P=[P,/BB10/.test(e)],Z=(P[1]?(J=null,Y="BlackBerry"):"Device Software")+" "+P[0],K=null):this!=l&&"Wii"!=J&&(q&&F||/Opera/.test(z)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==z&&/\bOS X (?:\d+\.){2,}/.test(Z)||"IE"==z&&(Z&&!/^Win/.test(Z)&&K>5.5||/\bWindows XP\b/.test(Z)&&K>8||8==K&&!/\bTrident\b/.test(e)))&&!x.test(P=h.call(l,e.replace(x,"")+";"))&&P.name&&(P="ing as "+P.name+((P=P.version)?" "+P:""),x.test(z)?(/\bIE\b/.test(P)&&"Mac OS"==Z&&(Z=null),P="identify"+P):(P="mask"+P,z=G?s(G.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(P)&&(Z=null),q||(K=null)),X=["Presto"],V.push(P)):z+=" Mobile",(P=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(P=[parseFloat(P.replace(/\.(\d)$/,".0$1")),P],"Safari"==z&&"+"==P[1].slice(-1)?(z="WebKit Nightly",$="alpha",K=P[1].slice(0,-1)):K!=P[1]&&K!=(P[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(K=null),P[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==P[0]&&537.36==P[2]&&parseFloat(P[1])>=28&&"IE"!=z&&"Microsoft Edge"!=z&&(X=["Blink"]),q&&(M||P[1])?(X&&(X[1]="like Chrome"),P=P[1]||(P=P[0],P<530?1:P<532?2:P<532.05?3:P<533?4:P<534.03?5:P<534.07?6:P<534.1?7:P<534.13?8:P<534.16?9:P<534.24?10:P<534.3?11:P<535.01?12:P<535.02?"13+":P<535.07?15:P<535.11?16:P<535.19?17:P<536.05?18:P<536.1?19:P<537.01?20:P<537.11?"21+":P<537.13?23:P<537.18?24:P<537.24?25:P<537.36?26:"Blink"!=X?"27":"28")):(X&&(X[1]="like Safari"),P=P[0],P=P<400?1:P<500?2:P<526?3:P<533?4:P<534?"4+":P<535?5:P<537?6:P<538?7:P<601?8:"8"),X&&(X[1]+=" "+(P+="number"==typeof P?".x":/[.+]/.test(P)?"":"+")),"Safari"==z&&(!K||parseInt(K)>45)&&(K=P)),"Opera"==z&&(P=/\bzbov|zvav$/.exec(Z))?(z+=" ",V.unshift("desktop mode"),"zvav"==P?(z+="Mini",K=null):z+="Mobile",Z=Z.replace(RegExp(" *"+P+"$"),"")):"Safari"==z&&/\bChrome\b/.exec(X&&X[1])&&(V.unshift("desktop mode"),z="Chrome Mobile",K=null,/\bOS X\b/.test(Z)?(Y="Apple",Z="iOS 4.3+"):Z=null),K&&0==K.indexOf(P=/[\d.]+$/.exec(Z))&&e.indexOf("/"+P+"-")>-1&&(Z=p(Z.replace(P,""))),X&&!/\b(?:Avant|Nook)\b/.test(z)&&(/Browser|Lunascape|Maxthon/.test(z)||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Sleipnir|Web)/.test(z)&&X[1])&&(P=X[X.length-1])&&V.push(P),V.length&&(V=["("+V.join("; ")+")"]),Y&&J&&J.indexOf(Y)<0&&V.push("on "+Y),J&&V.push((/^on /.test(V[V.length-1])?"":"on ")+J),Z&&(P=/ ([\d.+]+)$/.exec(Z),O=P&&"/"==Z.charAt(Z.length-P[0].length-1),Z={architecture:32,family:P&&!O?Z.replace(P[0],""):Z,version:P?P[1]:null,toString:function(){var e=this.version;return this.family+(e&&!O?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(P=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(U))&&!/\bi686\b/i.test(U)&&(Z&&(Z.architecture=64,Z.family=Z.family.replace(RegExp(" *"+P),"")),z&&(/\bWOW64\b/i.test(e)||q&&/\w(?:86|32)$/.test(S.cpuClass||S.platform)&&!/\bWin64; x64\b/i.test(e))&&V.unshift("32-bit")),e||(e=null);var Q={};return Q.description=e,Q.layout=X&&X[0],Q.manufacturer=Y,Q.name=z,Q.prerelease=$,Q.product=J,Q.ua=e,Q.version=z&&K,Q.os=Z||{architecture:null,family:null,version:null,toString:function(){return"null"}},Q.parse=h,Q.toString=v,Q.version&&V.unshift(K),Q.name&&V.unshift(z),Z&&z&&(Z!=String(Z).split(" ")[0]||Z!=z.split(" ")[0]&&!J)&&V.push(J?"("+Z+")":"on "+Z),V.length&&(Q.description=V.join(" ")),Q}var y={function:!0,object:!0},m=y["undefined"==typeof window?"undefined":a(window)]&&window||this,_=m,b=y["undefined"==typeof i?"undefined":a(i)]&&i,v=y["undefined"==typeof t?"undefined":a(t)]&&t&&!t.nodeType&&t,g=b&&v&&"object"==("undefined"==typeof e?"undefined":a(e))&&e;!g||g.global!==g&&g.window!==g&&g.self!==g||(m=g);var w=Math.pow(2,53)-1,x=/\bOpera/,k=this,S=Object.prototype,T=S.hasOwnProperty,j=S.toString;b&&v?l(h(),function(e,t){b[t]=e}):m.platform=h()}).call(void 0)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],28:[function(e,t,i){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t,i){var a=(0,l.findMediaElement)(t),n=r(a,3),o=n[0],c=n[1],f=n[2],p=e.log,h=e.utils.getComputedStyle,y=e.utils.secondsToMs;return o?"video"!==f&&"audio"!==f?p.error("The element of `"+c+"` was not a media element."):(i=i||{},i.data=(0,s.default)({player_software:"HTML5 Video Element",player_mux_plugin:"VideoElementMonitor",player_mux_plugin_version:"2.0.29"},i.data),i.getPlayheadTime=function(){return y(o.currentTime)},i.getStateData=function(){return{player_is_paused:o.paused,player_playhead_time:y(o.currentTime),player_width:parseInt(h(o,"width")),player_height:parseInt(h(o,"height")),player_autoplay_on:o.autoplay,player_preload_on:o.preload,player_error_code:o.error&&o.error.code,player_error_message:o.error&&d[o.error.code],video_poster_url:o.poster,video_source_url:o.currentSrc,video_source_duration:y(o.duration),video_source_height:o.videoHeight,video_source_width:o.videoWidth}},o.mux=o.mux||{},o.mux.swapElement=function(t){var i=(0,l.findMediaElement)(t),a=r(i,3),n=a[0],u=a[1],d=a[2];return n?"video"!==d&&"audio"!==d?e.log.error("The element of `"+u+"` was not a media element."):(n.muxId=o.muxId,delete o.muxId,n.mux=n.mux||{},n.mux.listeners=(0,s.default)({},o.mux.listeners),delete o.mux.listeners,Object.keys(n.mux.listeners).forEach(function(e){o.removeEventListener(e,n.mux.listeners[e],!1),n.addEventListener(e,n.mux.listeners[e],!1)}),n.mux.swapElement=o.mux.swapElement,delete o.mux.swapElement,void(o=n)):e.log.error("No element was found with the `"+u+"` query selector.")},e.init(c,i),e.emit(c,"playerready"),o.paused||(e.emit(c,"play"),o.readyState>2&&e.emit(c,"playing")),o.mux.listeners={},void u.forEach(function(t){o.mux.listeners[t]=function(){e.emit(c,t)},o.addEventListener(t,o.mux.listeners[t],!1)})):p.error("No element was found with the `"+c+"` query selector.")}Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function e(e,t){var i=[],a=!0,n=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){n=!0,r=e}finally{try{!a&&s.return&&s.return()}finally{if(n)throw r}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();i.default=n;var o=e("lodash.assign"),s=a(o),l=e("./utils/element-helpers.js"),u=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],d={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"}},{"./utils/element-helpers.js":15,"lodash.assign":32}],29:[function(e,t,i){},{}],30:[function(e,t,i){(function(i){var a="undefined"!=typeof i?i:"undefined"!=typeof window?window:{},n=e("min-document");if("undefined"!=typeof document)t.exports=document;else{var r=a["__GLOBAL_DOCUMENT_CACHE@4"];r||(r=a["__GLOBAL_DOCUMENT_CACHE@4"]=n),t.exports=r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":29}],31:[function(e,t,i){(function(e){"undefined"!=typeof window?t.exports=window:"undefined"!=typeof e?t.exports=e:"undefined"!=typeof self?t.exports=self:t.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],32:[function(e,t,i){function a(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function n(e){return function(t){return null==t?void 0:t[e]}}function r(e,t){for(var i=-1,a=Array(e);++i<e;)a[i]=t(i);return a}function o(e,t){return function(i){return e(t(i))}}function s(e,t,i){var a=e[t];D.call(e,t)&&m(a,i)&&(void 0!==i||t in e)||(e[t]=i)}function l(e,t){return null!=e&&(D.call(e,t)||"object"==typeof e&&t in e&&null===G(e))}function u(e,t){return t=B(void 0===t?e.length-1:t,0),function(){for(var i=arguments,n=-1,r=B(i.length-t,0),o=Array(r);++n<r;)o[n]=i[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=i[n];return s[t]=o,a(e,this,s)}}function d(e,t,i,a){i||(i={});for(var n=-1,r=t.length;++n<r;){var o=t[n],l=a?a(i[o],e[o],o,i,e):void 0;s(i,o,void 0===l?e[o]:l)}return i}function c(e){return u(function(t,i){var a=-1,n=i.length,r=n>1?i[n-1]:void 0,o=n>2?i[2]:void 0;for(r=e.length>3&&"function"==typeof r?(n--,r):void 0,o&&h(i[0],i[1],o)&&(r=n<3?void 0:r,n=1),t=Object(t);++a<n;){var s=i[a];s&&e(t,s,a,r)}return t})}function f(e){var t=e?e.length:void 0;return w(t)&&(U(e)||S(e)||_(e))?r(t,String):null}function p(e,t){return t=null==t?j:t,!!t&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function h(e,t,i){if(!x(i))return!1;var a=typeof t;return!!("number"==a?b(i)&&p(t,i.length):"string"==a&&t in i)&&m(i[t],e)}function y(e){var t=e&&e.constructor,i="function"==typeof t&&t.prototype||I;return e===i}function m(e,t){return e===t||e!==e&&t!==t}function _(e){return v(e)&&D.call(e,"callee")&&(!R.call(e,"callee")||C.call(e)==P)}function b(e){return null!=e&&w(F(e))&&!g(e)}function v(e){return k(e)&&b(e)}function g(e){var t=x(e)?C.call(e):"";return t==O||t==E}function w(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=j}function x(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function k(e){return!!e&&"object"==typeof e}function S(e){return"string"==typeof e||!U(e)&&k(e)&&C.call(e)==M}function T(e){var t=y(e);if(!t&&!b(e))return H(e);var i=f(e),a=!!i,n=i||[],r=n.length;for(var o in e)!l(e,o)||a&&("length"==o||p(o,r))||t&&"constructor"==o||n.push(o);return n}var j=9007199254740991,P="[object Arguments]",O="[object Function]",E="[object GeneratorFunction]",M="[object String]",A=/^(?:0|[1-9]\d*)$/,I=Object.prototype,D=I.hasOwnProperty,C=I.toString,R=I.propertyIsEnumerable,N=Object.getPrototypeOf,L=Object.keys,B=Math.max,W=!R.call({valueOf:1},"valueOf"),H=o(L,Object),F=n("length"),G=o(N,Object),U=Array.isArray,V=c(function(e,t){if(W||y(t)||b(t))return void d(t,T(t),e);for(var i in t)D.call(t,i)&&s(e,i,t[i])});t.exports=V},{}],33:[function(e,t,i){"use strict";var a=e("./stringify"),n=e("./parse");t.exports={stringify:a,parse:n}},{"./parse":34,"./stringify":35}],34:[function(e,t,i){"use strict";var a=e("./utils"),n=Object.prototype.hasOwnProperty,r={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1,allowDots:!1,decoder:a.decode},o=function(e,t){for(var i={},a=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),r=0;r<a.length;++r){var o,s,l=a[r],u=l.indexOf("]=")===-1?l.indexOf("="):l.indexOf("]=")+1;u===-1?(o=t.decoder(l),s=t.strictNullHandling?null:""):(o=t.decoder(l.slice(0,u)),s=t.decoder(l.slice(u+1))),n.call(i,o)?i[o]=[].concat(i[o]).concat(s):i[o]=s}return i},s=function e(t,i,a){if(!t.length)return i;var n,r=t.shift();if("[]"===r)n=[],n=n.concat(e(t,i,a));else{n=a.plainObjects?Object.create(null):{};var o="["===r[0]&&"]"===r[r.length-1]?r.slice(1,r.length-1):r,s=parseInt(o,10);!isNaN(s)&&r!==o&&String(s)===o&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(n=[],n[s]=e(t,i,a)):n[o]=e(t,i,a)}return n},l=function(e,t,i){if(e){var a=i.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,r=/^([^\[\]]*)/,o=/(\[[^\[\]]*\])/g,l=r.exec(a),u=[];if(l[1]){if(!i.plainObjects&&n.call(Object.prototype,l[1])&&!i.allowPrototypes)return;u.push(l[1])}for(var d=0;null!==(l=o.exec(a))&&d<i.depth;)d+=1,(i.plainObjects||!n.call(Object.prototype,l[1].replace(/\[|\]/g,""))||i.allowPrototypes)&&u.push(l[1]);return l&&u.push("["+a.slice(l.index)+"]"),s(u,t,i)}};t.exports=function(e,t){var i=t||{};if(null!==i.decoder&&void 0!==i.decoder&&"function"!=typeof i.decoder)throw new TypeError("Decoder has to be a function.");if(i.delimiter="string"==typeof i.delimiter||a.isRegExp(i.delimiter)?i.delimiter:r.delimiter,i.depth="number"==typeof i.depth?i.depth:r.depth,i.arrayLimit="number"==typeof i.arrayLimit?i.arrayLimit:r.arrayLimit,i.parseArrays=i.parseArrays!==!1,i.decoder="function"==typeof i.decoder?i.decoder:r.decoder,i.allowDots="boolean"==typeof i.allowDots?i.allowDots:r.allowDots,i.plainObjects="boolean"==typeof i.plainObjects?i.plainObjects:r.plainObjects,i.allowPrototypes="boolean"==typeof i.allowPrototypes?i.allowPrototypes:r.allowPrototypes,i.parameterLimit="number"==typeof i.parameterLimit?i.parameterLimit:r.parameterLimit,i.strictNullHandling="boolean"==typeof i.strictNullHandling?i.strictNullHandling:r.strictNullHandling,""===e||null===e||"undefined"==typeof e)return i.plainObjects?Object.create(null):{};for(var n="string"==typeof e?o(e,i):e,s=i.plainObjects?Object.create(null):{},u=Object.keys(n),d=0;d<u.length;++d){var c=u[d],f=l(c,n[c],i);s=a.merge(s,f,i)}return a.compact(s)}},{"./utils":36}],35:[function(e,t,i){"use strict";var a=e("./utils"),n={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},r={delimiter:"&",strictNullHandling:!1,skipNulls:!1,encode:!0,encoder:a.encode},o=function e(t,i,n,r,o,s,l,u,d){var c=t;if("function"==typeof l)c=l(i,c);else if(c instanceof Date)c=c.toISOString();else if(null===c){if(r)return s?s(i):i;c=""}if("string"==typeof c||"number"==typeof c||"boolean"==typeof c||a.isBuffer(c))return s?[s(i)+"="+s(c)]:[i+"="+String(c)];var f=[];if("undefined"==typeof c)return f;var p;if(Array.isArray(l))p=l;else{var h=Object.keys(c);p=u?h.sort(u):h}for(var y=0;y<p.length;++y){var m=p[y];o&&null===c[m]||(f=Array.isArray(c)?f.concat(e(c[m],n(i,m),n,r,o,s,l,u,d)):f.concat(e(c[m],i+(d?"."+m:"["+m+"]"),n,r,o,s,l,u,d)))}return f};t.exports=function(e,t){var i,a,s=e,l=t||{},u="undefined"==typeof l.delimiter?r.delimiter:l.delimiter,d="boolean"==typeof l.strictNullHandling?l.strictNullHandling:r.strictNullHandling,c="boolean"==typeof l.skipNulls?l.skipNulls:r.skipNulls,f="boolean"==typeof l.encode?l.encode:r.encode,p=f?"function"==typeof l.encoder?l.encoder:r.encoder:null,h="function"==typeof l.sort?l.sort:null,y="undefined"!=typeof l.allowDots&&l.allowDots;if(null!==l.encoder&&void 0!==l.encoder&&"function"!=typeof l.encoder)throw new TypeError("Encoder has to be a function.");"function"==typeof l.filter?(a=l.filter,s=a("",s)):Array.isArray(l.filter)&&(i=a=l.filter);var m=[];if("object"!=typeof s||null===s)return"";var _;_=l.arrayFormat in n?l.arrayFormat:"indices"in l?l.indices?"indices":"repeat":"indices";var b=n[_];i||(i=Object.keys(s)),h&&i.sort(h);for(var v=0;v<i.length;++v){var g=i[v];c&&null===s[g]||(m=m.concat(o(s[g],g,b,d,c,p,a,h,y)))}return m.join(u)}},{"./utils":36}],36:[function(e,t,i){"use strict";var a=function(){for(var e=new Array(256),t=0;t<256;++t)e[t]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}();i.arrayToObject=function(e,t){for(var i=t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)"undefined"!=typeof e[a]&&(i[a]=e[a]);return i},i.merge=function(e,t,a){if(!t)return e;if("object"!=typeof t){if(Array.isArray(e))e.push(t);else{if("object"!=typeof e)return[e,t];e[t]=!0}return e}if("object"!=typeof e)return[e].concat(t);var n=e;return Array.isArray(e)&&!Array.isArray(t)&&(n=i.arrayToObject(e,a)),Object.keys(t).reduce(function(e,n){var r=t[n];return Object.prototype.hasOwnProperty.call(e,n)?e[n]=i.merge(e[n],r,a):e[n]=r,e},n)},i.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},i.encode=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),i="",n=0;n<t.length;++n){var r=t.charCodeAt(n);45===r||46===r||95===r||126===r||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122?i+=t.charAt(n):r<128?i+=a[r]:r<2048?i+=a[192|r>>6]+a[128|63&r]:r<55296||r>=57344?i+=a[224|r>>12]+a[128|r>>6&63]+a[128|63&r]:(n+=1,r=65536+((1023&r)<<10|1023&t.charCodeAt(n)),i+=a[240|r>>18]+a[128|r>>12&63]+a[128|r>>6&63]+a[128|63&r])}return i},i.compact=function(e,t){if("object"!=typeof e||null===e)return e;var a=t||[],n=a.indexOf(e);if(n!==-1)return a[n];if(a.push(e),Array.isArray(e)){for(var r=[],o=0;o<e.length;++o)e[o]&&"object"==typeof e[o]?r.push(i.compact(e[o],a)):"undefined"!=typeof e[o]&&r.push(e[o]);return r}for(var s=Object.keys(e),l=0;l<s.length;++l){var u=s[l];e[u]=i.compact(e[u],a)}return e},i.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},i.isBuffer=function(e){return null!==e&&"undefined"!=typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},{}]},{},[12])(12)}); |
{ | ||
"name": "mux-embed", | ||
"version": "2.0.28", | ||
"version": "2.0.29", | ||
"author": "Mux, Inc", | ||
"description": "Mux Javascript SDK and HTML5 Video element monitor", | ||
"main": "dist/mux-dist.js", | ||
"main": "dist/mux.js", | ||
"scripts": { | ||
@@ -14,12 +14,6 @@ "nsp": "nsp check", | ||
"build": "npm-run-all nsp clean lint test mkdirs build:browserify build:bannerize build:uglify build:dist", | ||
"build:bannerize": "npm-run-all -p build:bannerize:standard build:bannerize:npm", | ||
"build:bannerize:standard": "bannerize build/mux.debug.js --banner=scripts/banner.ejs", | ||
"build:bannerize:npm": "bannerize build/mux-dist.debug.js --banner=scripts/banner.ejs", | ||
"build:browserify": "npm-run-all -p build:browserify:standard build:browserify:npm", | ||
"build:browserify:standard": "browserify lib/mux.js -o build/mux.debug.js", | ||
"build:browserify:npm": "browserify lib/mux.js --standalone mux -o build/mux-dist.debug.js", | ||
"build:uglify": "npm-run-all -p build:uglify:standard build:uglify:npm", | ||
"build:uglify:standard": "uglifyjs build/mux.debug.js --comments --mangle --compress -o build/mux.js", | ||
"build:uglify:npm": "uglifyjs build/mux-dist.debug.js --comments --mangle --compress -o build/mux-dist.js", | ||
"build:dist": "cp build/mux.js dist/mux.js; cp build/mux-dist.js dist/mux-dist.js", | ||
"build:bannerize": "bannerize build/mux.debug.js --banner=scripts/banner.ejs", | ||
"build:browserify": "browserify lib/mux.js --standalone mux -o build/mux.debug.js", | ||
"build:uglify": "uglifyjs build/mux.debug.js --comments --mangle --compress -o build/mux.js", | ||
"build:dist": "cp build/mux.js dist/mux.js", | ||
"start": "npm run mkdirs && npm-run-all -p start:server start:karma start:watch:test start:watch:lib", | ||
@@ -26,0 +20,0 @@ "start:server": "babel-node scripts/server.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2
3
59754
3
131