/******/ (function() { // webpackBootstrap
/******/ 	var __webpack_modules__ = ({

/***/ 26:
/***/ (function(module) {

function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}/**@license MIT-promiscuous-©Ruben Verborgh*/(function(func,obj){// Type checking utility function
function is(type,item){return _typeof(item)[0]==type}// Creates a promise, calling callback(resolve, reject), ignoring other parameters.
function Promise(callback,handler){return handler=function pendingHandler(resolved,rejected,value,queue,then,i){// Case 1) handle a .then(resolved, rejected) call
if(queue=pendingHandler.q,resolved!=is)return Promise(function(resolve,reject){queue.push({p:this,r:resolve,j:reject,1:resolved,0:rejected})});// Case 2) handle a resolve or reject call
// (`resolved` === `is` acts as a sentinel)
// The actual function signature is
// .re[ject|solve](<is>, success, value)
// Check if the value is a promise and try to obtain its `then` method
if(value&&is(func,value)|is(obj,value))try{then=value.then}catch(reason){rejected=0,value=reason}// If the value is a promise, take over its state
if(is(func,then)){var valueHandler=function valueHandler(resolved){return function(value){then&&(then=0,pendingHandler(is,resolved,value))}};try{then.call(value,valueHandler(1),rejected=valueHandler(0))}catch(reason){rejected(reason)}}// The value is not a promise; handle resolve/reject
else for(handler=function handler(Resolved,Rejected){// If the Resolved or Rejected parameter is not a function,
// return the original promise (now stored in the `callback` variable)
return is(func,Resolved=rejected?Resolved:Rejected)?Promise(function(resolve,reject){finalize(this,resolve,reject,value,Resolved)}):callback;// Otherwise, return a finalized promise, transforming the value with the function
},i=0;i<queue.length;)then=queue[i++],is(func,resolved=then[rejected])?// Otherwise, resolve/reject the promise with the result of the callback
finalize(then.p,then.r,then.j,value,resolved):(rejected?then.r:then.j)(value)},handler.q=[],callback.call(callback={then:function then(resolved,rejected){return handler(resolved,rejected)},catch:function _catch(rejected){return handler(0,rejected)}},function(value){handler(is,1,value)},function(reason){handler(is,0,reason)}),callback}// Finalizes the promise by resolving/rejecting it with the transformed value
function finalize(promise,resolve,reject,value,transform){var fn=function fn(){try{// Transform the value through and check whether it's a promise
value=transform(value),transform=value&&is(obj,value)|is(func,value)&&value.then,is(func,transform)?value==promise?reject(TypeError()):// Take over the promise's state
transform.call(value,resolve,reject):resolve(value)}catch(error){reject(error)}};// Don't polyfill setImmediate, but use it if it's available.
window.setImmediate?window.setImmediate(fn):setTimeout(fn,0)}// Export the main module
function ResolvedPromise(value){return Promise(function(resolve){resolve(value)})}// Creates a rejected promise
// If Promise is defined globally when this runs, just use that.
return window.Promise?void(module.exports=window.Promise):void(// Creates a resolved promise
// Transforms an array of promises into a promise for an array
// Returns a promise that resolves or rejects as soon as one promise in the array does
module.exports=Promise,Promise.resolve=ResolvedPromise,Promise.reject=function(reason){return Promise(function(resolve,reject){reject(reason)})},Promise.all=function(promises){return Promise(function(resolve,reject,count,values){// Array of collected values
// Resolve immediately if there are no promises
// Transform all elements (`map` is shorter than `forEach`)
values=[],count=promises.length||resolve(values),promises.map(function(promise,index){ResolvedPromise(promise).then(// Store the value and resolve if it was the last
function(value){values[index]=value,--count||resolve(values)},// Reject if one element fails
reject)})})},Promise.race=function(promises){return Promise(function(resolve,reject){// Register to all promises in the array
promises.map(function(promise){ResolvedPromise(promise).then(resolve,reject)})})})})("f","o");

/***/ }),

/***/ 76:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wlib_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77);
/* harmony import */ var player_lib_ajax__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(78);
/* harmony import */ var player_lib_assets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80);
/* harmony import */ var utilities_bindify__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23);
/* harmony import */ var utilities_cacheable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(81);
/* harmony import */ var player_control_definitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(61);
/* harmony import */ var utilities_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(27);
/* harmony import */ var utilities_detect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(20);
/* harmony import */ var utilities_duration__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(64);
/* harmony import */ var player_lib_elem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(34);
/* harmony import */ var utilities_event_loop__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(47);
/* harmony import */ var player_lib_fit_control__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(82);
/* harmony import */ var utilities_globalBindAndTrigger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(21);
/* harmony import */ var player_lib_hosts__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(14);
/* harmony import */ var player_lib_interFontFamily__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(7);
/* harmony import */ var utilities_isMouseDown__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(83);
/* harmony import */ var player_lib_judy__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(84);
/* harmony import */ var player_lib_jsonp__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(79);
/* harmony import */ var utilities_legacyLocalstorage__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(85);
/* harmony import */ var utilities_hashCodeForString__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(45);
/* harmony import */ var player_lib_media_data__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(86);
/* harmony import */ var player_lib_media_data_transforms__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(31);
/* harmony import */ var utilities_metrics__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(32);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(17);
/* harmony import */ var player_lib_overpassFontFamily__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(87);
/* harmony import */ var player_lib_resumableVideoData__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(70);
/* harmony import */ var player_lib_script_utils__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(39);
/* harmony import */ var player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(33);
/* harmony import */ var player_translations__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(88);
/* harmony import */ var utilities_url__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(16);
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(19);
/* harmony import */ var utilities_xhr__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(25);
/* harmony import */ var utilities_uniqId__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(89);
/* harmony import */ var utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(42);
/* harmony import */ var player_lib_viewerPreferences_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(90);
/* harmony import */ var utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(43);
/* harmony import */ var utilities_color__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(91);
/* harmony import */ var interpolation__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(92);
/* harmony import */ var interpolation__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(interpolation__WEBPACK_IMPORTED_MODULE_37__);
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(48);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(26);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_39___default = /*#__PURE__*/__webpack_require__.n(promiscuous__WEBPACK_IMPORTED_MODULE_39__);
/* harmony import */ var utilities_seqid__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(8);
/* harmony import */ var utilities_stopgo__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(40);
/* harmony import */ var utilities_stopgo__WEBPACK_IMPORTED_MODULE_41___default = /*#__PURE__*/__webpack_require__.n(utilities_stopgo__WEBPACK_IMPORTED_MODULE_41__);
/* harmony import */ var utilities_runScript__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(41);
/* harmony import */ var asyncRequireAndDefine_js__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(93);
// XXX: Remove this after 1 hour
(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/seqid",utilities_seqid__WEBPACK_IMPORTED_MODULE_40__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/assets",player_lib_assets__WEBPACK_IMPORTED_MODULE_2__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/ajax",player_lib_ajax__WEBPACK_IMPORTED_MODULE_1__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/bindify",utilities_bindify__WEBPACK_IMPORTED_MODULE_3__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/cacheable",utilities_cacheable__WEBPACK_IMPORTED_MODULE_4__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/color",utilities_color__WEBPACK_IMPORTED_MODULE_36__.default),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/core",utilities_core__WEBPACK_IMPORTED_MODULE_6__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/detect",utilities_detect__WEBPACK_IMPORTED_MODULE_7__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/duration",utilities_duration__WEBPACK_IMPORTED_MODULE_8__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/elem",player_lib_elem__WEBPACK_IMPORTED_MODULE_9__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/event_loop",utilities_event_loop__WEBPACK_IMPORTED_MODULE_10__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/fit-control",player_lib_fit_control__WEBPACK_IMPORTED_MODULE_11__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/globalBindAndTrigger",utilities_globalBindAndTrigger__WEBPACK_IMPORTED_MODULE_12__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/hosts",player_lib_hosts__WEBPACK_IMPORTED_MODULE_13__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/interFontFamily",player_lib_interFontFamily__WEBPACK_IMPORTED_MODULE_14__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("interpolation",(interpolation__WEBPACK_IMPORTED_MODULE_37___default())),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/isMouseDown",utilities_isMouseDown__WEBPACK_IMPORTED_MODULE_15__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/jsonp",player_lib_jsonp__WEBPACK_IMPORTED_MODULE_17__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/judy",player_lib_judy__WEBPACK_IMPORTED_MODULE_16__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/localstorage",utilities_legacyLocalstorage__WEBPACK_IMPORTED_MODULE_18__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/legacyLocalstorage",utilities_legacyLocalstorage__WEBPACK_IMPORTED_MODULE_18__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/media_data",player_lib_media_data__WEBPACK_IMPORTED_MODULE_20__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/media-data-transforms",player_lib_media_data_transforms__WEBPACK_IMPORTED_MODULE_21__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/metrics",utilities_metrics__WEBPACK_IMPORTED_MODULE_22__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/obj",utilities_obj__WEBPACK_IMPORTED_MODULE_23__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/overpassFontFamily",player_lib_overpassFontFamily__WEBPACK_IMPORTED_MODULE_24__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("preact",preact__WEBPACK_IMPORTED_MODULE_38__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("promiscuous",(promiscuous__WEBPACK_IMPORTED_MODULE_39___default())),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/runScript",utilities_runScript__WEBPACK_IMPORTED_MODULE_42__.default),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/resumableVideoData",player_lib_resumableVideoData__WEBPACK_IMPORTED_MODULE_25__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/script-utils",player_lib_script_utils__WEBPACK_IMPORTED_MODULE_26__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/stopgo",(utilities_stopgo__WEBPACK_IMPORTED_MODULE_41___default())),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/timeout-utils",player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_27__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/translations",player_translations__WEBPACK_IMPORTED_MODULE_28__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/url",utilities_url__WEBPACK_IMPORTED_MODULE_29__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/wlog",utilities_wlog__WEBPACK_IMPORTED_MODULE_30__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/xhr",utilities_xhr__WEBPACK_IMPORTED_MODULE_31__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/uniqId",utilities_uniqId__WEBPACK_IMPORTED_MODULE_32__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/trackingConsentApi",utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_33__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("player/lib/viewerPreferences",player_lib_viewerPreferences_js__WEBPACK_IMPORTED_MODULE_34__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/wistiaLocalStorage",utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_35__),(0,wlib_js__WEBPACK_IMPORTED_MODULE_0__.registerWLib)("utilities/hashCodeForString",utilities_hashCodeForString__WEBPACK_IMPORTED_MODULE_19__);

/***/ }),

/***/ 93:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(promiscuous__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var utilities_runScript_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41);
/* harmony import */ var player_lib_hosts_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14);
if(!wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.define){var modulePromises=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.modulePromises={},moduleDeps=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.moduleDeps={},resolveQueues=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.moduleResolveQueues={},onModuleDefined=function onModuleDefined(depPath,fn){null==resolveQueues[depPath]&&(resolveQueues[depPath]=[]),resolveQueues[depPath].push(fn)},asyncRequireOne=function asyncRequireOne(depPath){var timeout=1<arguments.length&&void 0!==arguments[1]?arguments[1]:12e4;// If we've already required this once, just return that promise.
if(null!=modulePromises[depPath])return modulePromises[depPath];// If this is being required for the first time, setup a promise that
// resolves when define(depPath, 'TheThing') is finally called, then exec
// the script that should somehow result in it being loaded.
var scriptUrl="".concat((0,player_lib_hosts_js__WEBPACK_IMPORTED_MODULE_3__.eV1Protocol)(),"//").concat((0,player_lib_hosts_js__WEBPACK_IMPORTED_MODULE_3__.eV1Host)(),"/assets/external/").concat(depPath);return modulePromises[depPath]=new (promiscuous__WEBPACK_IMPORTED_MODULE_1___default())(function(resolve,reject){onModuleDefined(depPath,resolve),(0,utilities_runScript_js__WEBPACK_IMPORTED_MODULE_2__.default)(scriptUrl,timeout)["catch"](function(e){setTimeout(function(){throw e},1),reject(e)})}),modulePromises[depPath]},syncRequireOne=function syncRequireOne(depPath){if(null!=moduleDeps[depPath])return moduleDeps[depPath];throw new Error("Cannot synchronously require dep \"".concat(depPath,"\" because it is not defined."))};wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.define=function(depPath,definition){moduleDeps[depPath]=definition,null==modulePromises[depPath]&&(modulePromises[depPath]=promiscuous__WEBPACK_IMPORTED_MODULE_1___default().resolve(definition)),resolveQueues[depPath]&&(resolveQueues[depPath].map(function(fn){return fn(definition)}),delete resolveQueues[depPath])},wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.asyncDefine=function(depPath,promise){return modulePromises[depPath]=promise.then(function(definition){return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.define(depPath,definition),definition}),modulePromises[depPath]},wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.asyncRequire=function(depPaths,timeout){return depPaths instanceof Array?promiscuous__WEBPACK_IMPORTED_MODULE_1___default().all(depPaths.map(function(path){return asyncRequireOne(path,timeout)})):asyncRequireOne(depPaths,timeout)},wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.syncRequire=function(depPaths){return depPaths instanceof Array?depPaths.map(function(path){return syncRequireOne(path)}):syncRequireOne(depPaths)}}

/***/ }),

/***/ 74:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _E_v1_all_modules_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75);
/* harmony import */ var _E_v1_init_coffee__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(137);
/* harmony import */ var _E_v1_init_coffee__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_E_v1_init_coffee__WEBPACK_IMPORTED_MODULE_1__);
window.Wistia.wistia=Date.now();

/***/ }),

/***/ 75:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var E_v1_library__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76);
/* harmony import */ var asyncRequireAndDefine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93);
/* harmony import */ var utilities_wbindable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
/* harmony import */ var utilities_globalBindAndTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21);
/* harmony import */ var _E_v1_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94);
/* harmony import */ var _E_v1_log__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_E_v1_log__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _E_v1_detect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95);
/* harmony import */ var _E_v1_detect__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_E_v1_detect__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _E_v1_event_loop__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(96);
/* harmony import */ var _E_v1_event_loop__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_E_v1_event_loop__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _E_v1_embed_interface__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(97);
/* harmony import */ var _E_v1_embed_interface__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_E_v1_embed_interface__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _E_v1_public_api__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(98);
/* harmony import */ var _E_v1_public_api__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_E_v1_public_api__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _E_v1_generate__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(105);
/* harmony import */ var _E_v1_generate__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_E_v1_generate__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _E_v1_player__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(106);
/* harmony import */ var _E_v1_fullscreen_triggers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(109);
/* harmony import */ var _E_v1_fullscreen_triggers__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_E_v1_fullscreen_triggers__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _E_v1_bandwidth_test__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(110);
/* harmony import */ var _E_v1_bandwidth_test__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_E_v1_bandwidth_test__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var _E_v1_video_tracker__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(111);
/* harmony import */ var _E_v1_video_tracker__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_E_v1_video_tracker__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var _E_v1_base64_encode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(115);
/* harmony import */ var _E_v1_base64_encode__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_E_v1_base64_encode__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _E_v1_base64_decode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(116);
/* harmony import */ var _E_v1_base64_decode__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_E_v1_base64_decode__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var _E_v1_remote_data__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(117);
/* harmony import */ var _E_v1_remote_data__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_E_v1_remote_data__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var _E_v1_metrics__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(119);
/* harmony import */ var _E_v1_metrics__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_E_v1_metrics__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var _E_v1_plugin__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(120);
/* harmony import */ var _E_v1_plugin__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_E_v1_plugin__WEBPACK_IMPORTED_MODULE_18__);
/* harmony import */ var _E_v1_seo__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(121);
/* harmony import */ var _E_v1_seo__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_E_v1_seo__WEBPACK_IMPORTED_MODULE_19__);
/* harmony import */ var _E_v1_legacy_local_storage__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(122);
/* harmony import */ var _E_v1_legacy_local_storage__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_E_v1_legacy_local_storage__WEBPACK_IMPORTED_MODULE_20__);
/* harmony import */ var _E_v1_gridify__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(123);
/* harmony import */ var _E_v1_gridify__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_E_v1_gridify__WEBPACK_IMPORTED_MODULE_21__);
/* harmony import */ var _E_v1_async__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(124);
/* harmony import */ var _E_v1_async__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_E_v1_async__WEBPACK_IMPORTED_MODULE_22__);
/* harmony import */ var _E_v1_embed_links__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(126);
/* harmony import */ var _E_v1_iframe_api__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(127);
/* harmony import */ var _E_v1_iframe_api__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_E_v1_iframe_api__WEBPACK_IMPORTED_MODULE_24__);
/* harmony import */ var _E_v1_embed_shepherd__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(128);
/* harmony import */ var _E_v1_embed_shepherd__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_E_v1_embed_shepherd__WEBPACK_IMPORTED_MODULE_25__);
/* harmony import */ var _E_v1_visitor_key__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(129);
/* harmony import */ var _E_v1_visitor_key__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_E_v1_visitor_key__WEBPACK_IMPORTED_MODULE_26__);
/* harmony import */ var _helpers_time_helper__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(130);
/* harmony import */ var _helpers_time_helper__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_helpers_time_helper__WEBPACK_IMPORTED_MODULE_27__);
/* harmony import */ var _E_v1_embed_specific_time__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(131);
/* harmony import */ var _E_v1_embed_specific_time__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_E_v1_embed_specific_time__WEBPACK_IMPORTED_MODULE_28__);
/* harmony import */ var _E_v1_interpolation__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(132);
/* harmony import */ var _E_v1_interpolation__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(_E_v1_interpolation__WEBPACK_IMPORTED_MODULE_29__);
/* harmony import */ var _E_v1_mux__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(133);
/* harmony import */ var _E_v1_mux__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(_E_v1_mux__WEBPACK_IMPORTED_MODULE_30__);
/* harmony import */ var _E_v1_feature_event__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(134);
/* harmony import */ var _E_v1_feature_event__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(_E_v1_feature_event__WEBPACK_IMPORTED_MODULE_31__);
/* harmony import */ var _E_v1_integrations_loader__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(136);


/***/ }),

/***/ 126:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_docReady__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35);
/* harmony import */ var player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33);
// Check for presence of embed links, and load the rest of the code if we spot
// any clues, such as:
//
// - Any embeds with playlistLinks embed option.
// - Any <a> tags that look like href="#wistia_hashedid"
// - If W.EmbedLink.setup() or W.EmbedLink.setupAll() is called.
wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._initializers.initEmbedLinks=function(){wistiaEmbeds.bind("initembed",function(){(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_2__.doTimeout)("maybe_load_embed_links_1",maybeLoadEmbedLinks,1),(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_2__.doTimeout)("maybe_load_embed_links_1000",maybeLoadEmbedLinks,1e3),(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_2__.doTimeout)("maybe_load_embed_links_3000",maybeLoadEmbedLinks,3e3)}),(0,utilities_docReady__WEBPACK_IMPORTED_MODULE_1__.onDocReady)(function(){maybeLoadEmbedLinks(),(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_2__.doTimeout)("maybe_load_embed_links_5000",maybeLoadEmbedLinks,5e3)})},wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._destructors.destroyEmbedLinks=function(){wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.EmbedLink.EmbedLinkClass&&wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.EmbedLink.EmbedLinkClass._onEv1Destroy()};var loadEmbedLinks=function loadEmbedLinks(){return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.asyncRequire("embedLinks.js")},shouldLoadEmbedLinks=function shouldLoadEmbedLinks(){// Do any embeds have the playlistLinks option?
for(var videos=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.api._apiHandlesByDomOrder(),i=0;i<videos.length;i++)if(videos[i]._opts&&videos[i]._opts.playlistLinks)return!0;// Are there any <a> tags that have #wistia_hashedid as their src?
return!!(0<document.querySelectorAll("a[href^=\"#wistia_\"]").length)},maybeLoadEmbedLinks=function maybeLoadEmbedLinks(){shouldLoadEmbedLinks()&&loadEmbedLinks()};wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.EmbedLink={},wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.EmbedLink.setup=function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return loadEmbedLinks().then(function(){var _W$EmbedLink$EmbedLin;(_W$EmbedLink$EmbedLin=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.EmbedLink.EmbedLinkClass).setup.apply(_W$EmbedLink$EmbedLin,args)})},wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.EmbedLink.setupAll=function(){for(var _len2=arguments.length,args=Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return loadEmbedLinks().then(function(){var _W$EmbedLink$EmbedLin2;(_W$EmbedLink$EmbedLin2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.EmbedLink.EmbedLinkClass).setupAll.apply(_W$EmbedLink$EmbedLin2,args)})},wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.EmbedLink.destroyAll=function(){for(var _len3=arguments.length,args=Array(_len3),_key3=0;_key3<_len3;_key3++)args[_key3]=arguments[_key3];return loadEmbedLinks().then(function(){var _W$EmbedLink$EmbedLin3;(_W$EmbedLink$EmbedLin3=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.EmbedLink.EmbedLinkClass).destroyAll.apply(_W$EmbedLink$EmbedLin3,args)})};

/***/ }),

/***/ 136:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/obj"),isEmpty=_W$lib.isEmpty,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/elem"),pageLoaded=_W$lib2.pageLoaded,hasAnyIntegrations=function hasAnyIntegrations(video){if(video._mediaData&&video._mediaData.integrations)for(var k in video._mediaData.integrations)if(video._mediaData.integrations[k])return!0;return!1};window._wq=window._wq||[],window._wq.push({id:"_all",onHasData:function onHasData(video){hasAnyIntegrations(video)&&pageLoaded(function(){setTimeout(function(){wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.asyncRequire("allIntegrations.js")},1e3)})}});

/***/ }),

/***/ 133:
/***/ (function() {

(function(Wistia){var W=Wistia;W.mux||(W.mux={}),W._initializers.initMux=function(){if(!W.mux._setup){// to save on COGS, we don't want to initialize Mux
// on every load. Do a coin flip to see if we should init
var shouldRandomDisableMux,percentageToInitialize=.5,cryptoObj=window.crypto||window.msCrypto;if("undefined"!=typeof cryptoObj){var cryptoRandom=cryptoObj.getRandomValues(new Uint32Array(1));shouldRandomDisableMux=cryptoRandom[0]/4294967296<=percentageToInitialize}else{var mathRandom=Math.random();shouldRandomDisableMux=+(mathRandom<=percentageToInitialize)}return shouldRandomDisableMux?void(W.mux._disabled=!0):void(W.mux._setup=!0,W.mux._disabled=!1,W.api.onFind(function(video){var shouldDisableMux=function shouldDisableMux(){return window.wistiaDisableMux};!shouldDisableMux()&&(W.mux._disabled||video.iframe||video._opts&&!1===video._opts.mux||W.asyncRequire("wistia-mux.js").then(function(initMux){video.embedded(function(){shouldDisableMux()||initMux(video)})}))}))}},W._destructors.destroyMux=function(){W.mux._disabled=!0;for(var all=W.api.all(),v=0;v<all.length;v++){var _all$v$mux;null===(_all$v$mux=all[v].mux)||void 0===_all$v$mux?void 0:_all$v$mux.destroy()}}})(window.Wistia);

/***/ }),

/***/ 106:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var player_lib_judy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84);
/* harmony import */ var player_lib_assets__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(promiscuous__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var utilities_stopgo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40);
/* harmony import */ var utilities_stopgo__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(utilities_stopgo__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var utilities_xhr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25);
/* harmony import */ var player_lib_hosts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(14);
/* harmony import */ var utilities_event_loop__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(47);
/* harmony import */ var utilities_sane_player_color__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(107);
/* harmony import */ var player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(33);
/* harmony import */ var player_translations__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(88);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(17);
/* harmony import */ var utilities_secondsWatchedTracker__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(108);
/* harmony import */ var player_lib_elem__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(34);
/* harmony import */ var utilities_seqid__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(8);
function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(function(Wistia){var W=Wistia;if(!W.Player){var Player=/*#__PURE__*/function(){// EXPLANATION OF COMMAND QUEUE USING @commandQueueOpen
//
// The command queue lets us chain asynchronous actions so they can execute
// sequentially under the hood. This is important especially for "compound"
// commands; for example, calling time(t) before the video played is
// actually a compound command that plays, changes volume, and seeks.
// Therefore, without queueing, if any of those commands (calling play,
// changing volume, seeking) occurs while seek-before-play is happening, it
// will cause conflicts.
//
// If you have an asynchronous block of code that you want to be part of the
// command queue, you can wrap it like this:
//
//     @commandQueueOpen.synchronize (done) =>
//       doSomethingAsynchronous -> done()
//
// If you have something that's _not_ asynchronous that you still want to
// be queued, you don't need to call synchronize; just do this:
//
//     @commandQueueOpen =>
//       doSomethingSynchronous()
//
// SIMPLE RULES TO LIVE BY
//
// 1. Within @commandQueueOpen, you should not be nesting _other_ calls to
// @commandQueueOpen. We call this making the function "command queue atomic".
//
// 2. Annotate functions that implement the command queue by writing
// "COMMAND QUEUE ATOMIC - Refer to _video.coffee" in a comment above them.
function Player(publicApi){var _this=this;return _classCallCheck(this,Player),this.publicApi=publicApi,this.uuid=(0,utilities_seqid__WEBPACK_IMPORTED_MODULE_13__.seqId)(),this._baseEventLoopDuration=300,this._eventLoopDuration=300,this.info("constructor"),this.transferFacadeProperties(),this._impl=this,(0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.keys)(publicApi).forEach(function(propName){var propVal=publicApi[propName];propVal instanceof (utilities_stopgo__WEBPACK_IMPORTED_MODULE_3___default())&&!_this.hasOwnProperty(propName)&&(_this[propName]=propVal)}),this.plugin=this.publicApi.plugin,this.ready=new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_3___default()),this.hasData=new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_3___default()),this.embedded=new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_3___default()),this.commandQueueOpen=new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_3___default()),this.hasData(!0),this.commandQueueOpen(!0),this.playing=new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_3___default()),this.notFullscreen=new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_3___default()),this.resetStateVariables(),this.setupPercentTracking(),this._recordFirstEmbedIfEligible(),this}return _createClass(Player,[{key:"animate",value:function animate(){var _this2=this,props=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.info("animate",props,options);var callback=options.callback;return options.callback=function(){(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemStyle)(_this2.grid.root,{position:"relative"}),null===callback||void 0===callback?void 0:callback()},(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemStyle)(this.grid.root,{position:"absolute"}),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemAnimate)(this.grid.root,props,options),this}},{key:"aspect",value:function aspect(){if(this._opts.aspect)return this._opts.aspect;if(this.publicApi.isAudio())return this.publicApi.width()/this.publicApi.height();if(this._currentAsset)return"variable"==this._currentAsset.width?this.mp4Aspect()||this.originalAspect():this._currentAsset.width/this._currentAsset.height;var asset=this.asset({container:/mp4|flv/});return asset?asset.width/asset.height:640/360}// TODO: Replace this function with this:
//
// Assets.one(@_mediaData.assets, options)
//
// It's keeping this special function calling syntax so prevent breaking
// cached versions of Share/Socialbar.
},{key:"asset",value:function asset(_options){if("string"==typeof arguments[0]){// Support syntax like .asset('original') or .asset('iphone').  This is
// convenience instead of adding a million different functions at the
// PublicApi level. The implementation would define corresponding
// functions like originalAsset or iphoneAsset respectively.
var method=arguments[0]+"Asset",options=arguments[1];return this[method](options)}var _options2=arguments[0];return this.assets(_options2)[0]||null}},{key:"assets",value:function assets(options){return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.filter(this._mediaData.assets,options)}// Define in subclass
},{key:"bigPlayButtonEnabled",value:function bigPlayButtonEnabled(){return this}},{key:"canAutoPlay",value:function canAutoPlay(){return!0}},{key:"cancelFullscreen",value:function cancelFullscreen(){this.info("cancelFullscreen"),this.rebuild()}},{key:"checkForReady",value:function checkForReady(){throw new Error("Define in subclass!")}},{key:"cleanupRefs",value:function cleanupRefs(){var _this$cleanup,_this3=this;null===(_this$cleanup=this.cleanup)||void 0===_this$cleanup?void 0:_this$cleanup.call(this),(0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.keys)(this).forEach(function(k){var v=_this3[k];if(null!=v&&v!==_this3){var _v$cleanup;null===(_v$cleanup=v.cleanup)||void 0===_v$cleanup?void 0:_v$cleanup.call(v)}})}},{key:"constrainToHeight",value:function constrainToHeight(options){return this.videoWidth(this.widthForHeight(this.videoHeight()),options)}},{key:"constrainToWidth",value:function constrainToWidth(options){return this.videoHeight(this.heightForWidth(this.videoWidth()),options)}},{key:"disableTextTracks",value:function disableTextTracks(){var _this4=this;this.info("disableTextTracks"),this._disableTextTracks||(this._disableTextTracks=function(){var _this4$elem;null!==(_this4$elem=_this4.elem())&&void 0!==_this4$elem&&_this4$elem.textTracks&&Array.prototype.slice.call(_this4.elem().textTracks).forEach(function(track){track.mode="disabled"})}),this.rebind("play",this._disableTextTracks)}},{key:"duration",value:function duration(){return this._mediaData.duration||null}},{key:"elem",value:function elem(){return null}},{key:"embed",value:function embed(){throw new Error("Define in subclass!")}},{key:"embedOptions",value:function embedOptions(){return this._embedOptions?this._embedOptions:(this._embedOptions=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.clone)(this._opts),this._embedOptions)}},{key:"eventKey",value:function eventKey(){return this._tracker.eventKey()}},{key:"extraHeight",value:function extraHeight(){var th=Math.max((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.above),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.top)),bh=Math.max((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.below),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.bottom));return th+bh}},{key:"extraWidth",value:function extraWidth(){return (0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemWidth)(this.grid.left)+(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemWidth)(this.grid.right)}// We use this.gridChildren() with this.fade() so that we can set the
// background of grid elements at will without fading them.
},{key:"fade",value:function fade(){for(var opacity=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,_len=arguments.length,more=Array(1<_len?_len-1:0),_key=1;_key<_len;_key++)more[_key-1]=arguments[_key];return player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemAnimate.apply(void 0,[this.gridChildren(),{opacity:opacity}].concat(more))}},{key:"fadeIn",value:function fadeIn(){var _this5=this,more=this._shortAnimArgs(arguments),callback=more.callback;more.callback=function(){(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemStyle)(_this5.gridChildren(),{opacity:""}),null===callback||void 0===callback?void 0:callback()},(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemStyle)(this.gridChildren(),{opacity:0}),setTimeout(function(){return _this5.fade(1,more)},1)}},{key:"fadeOut",value:function fadeOut(){var _this6=this,more=this._shortAnimArgs(arguments);(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemStyle)(this.gridChildren(),{opacity:1}),setTimeout(function(){return _this6.fade(0,more)},1)}},{key:"fit",value:function fit(){return this.info("fit"),this._opts.dontFit||(this.grid.root.style.height="".concat((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.chrome),"px"),this.grid.root.style.width="".concat((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemWidth)(this.chrome),"px")),W.grid.fitVertical(this),W.grid.fitHorizontal(this)}},{key:"flashAsset",value:function flashAsset(options){return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.flv(this._mediaData.assets,options)}},{key:"flashAssetInRange",value:function flashAssetInRange(){var options=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.flv(this._mediaData.assets,(0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.merge)(this.qualityOptions(),options))}},{key:"focus",value:function focus(){var _this$chrome;null===(_this$chrome=this.chrome)||void 0===_this$chrome?void 0:_this$chrome.focus()}},{key:"freezeLastFrame",value:function freezeLastFrame(){}},{key:"fullscreenButtonEnabled",value:function fullscreenButtonEnabled(){return this}// DEPRECATED
},{key:"getVisitorKey",value:function getVisitorKey(){return this.visitorKey()}// DEPRECATED
},{key:"getEventKey",value:function getEventKey(){return this.eventKey()}// Some players (flash, external, NotPlayablePlayer) won't ever have a
// video element. This implementation covers those.
},{key:"getMediaElement",value:function getMediaElement(){}},{key:"getMediaType",value:function getMediaType(){return this._mediaData.mediaType||null}},{key:"gridChildren",value:function gridChildren(){var _this7=this,grid=this.grid;window.NodeList&&!NodeList.prototype.forEach&&(grid=Array.prototype.slice.call(this.grid));var result=[];return (0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.keys)(grid).forEach(function(sector){var node=_this7.grid[sector];node.childNodes.forEach(function(child){W.isGridElem(_this7.grid,child)||result.push(child)})}),result}},{key:"hashedId",value:function hashedId(){return this._hashedId}},{key:"hdAsset",value:function hdAsset(){throw new Error("Implement in subclass!")}},{key:"hlsAsset",value:function hlsAsset(options){return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.m3u8(this._mediaData.assets,options)}},{key:"hlsAssetInRange",value:function hlsAssetInRange(){var options=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.m3u8(this._mediaData.assets,(0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.merge)(this.qualityOptions(),options))}// LEGACY
},{key:"height",value:function height(h){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null!=h){this.info("height",h,options),h=parseInt(h,10);var lastH=this.height();return this.grid.wrapper.style.height=this.chrome.style.height="".concat(h,"px"),options.dontChangeContainer||(this._embedContainer.style.height="".concat(h,"px")),this.grid.center.style.height="100%",this._opts.dontFit?(this.grid.main.style.height="".concat(h-(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.above)-(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.below),"px"),this.grid.main.style.marginTop="".concat((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.top),"px")):(W.grid.fitHorizontal(this),W.grid.fitVertical(this)),(h!==lastH||options.trigger)&&this.trigger("heightchange",h,lastH),options.constrain&&this.constrainToHeight({trigger:options.trigger}),this}return (0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.center)+Math.max((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.above),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.top))+Math.max((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.below),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.bottom))}},{key:"heightForWidth",value:function heightForWidth(width){return Math.round(width/this.aspect())}},{key:"implContainer",value:function implContainer(){return this._opts.subContainer?this._embedContainer:this.grid.center}// Define this so the code in the Public API is simpler.
},{key:"inFullscreen",value:function inFullscreen(){return!1}},{key:"init",value:function init(){return this.setupPipedreamTracking(),this}},{key:"inSilentPlaybackMode",value:function inSilentPlaybackMode(){return!1}},{key:"iphoneAsset",value:function iphoneAsset(){var options=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this._iphoneAsset?this._iphoneAsset:(this._iphoneAsset=player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.iphone(this._mediaData.assets,options),this._iphoneAsset)}},{key:"iphoneAssetInRange",value:function iphoneAssetInRange(){var options=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.iphone(this._mediaData.assets,(0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.merge)(this.qualityOptions(),options))}},{key:"isMuted",value:function isMuted(){return!!this._opts.muted}},{key:"isScreencast",value:function isScreencast(){return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.isScreencast(this._mediaData.assets)}},{key:"isRemoved",value:function isRemoved(){return null===this.grid}},{key:"lastPlayInfo",value:function lastPlayInfo(){return{}}},{key:"mp4Aspect",value:function mp4Aspect(){var asset=this.mp4Asset({width:640})||this.mp4Asset({width:960})||this.mp4Asset();return asset?asset.width/asset.height:null}},{key:"mdAsset",value:function mdAsset(){throw new Error("Implement in subclass!")}},{key:"mp4Asset",value:function mp4Asset(options){return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.mp4(this._mediaData.assets,options)}},{key:"mp4AssetInRange",value:function mp4AssetInRange(){var options=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.mp4(this._mediaData.assets,(0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.merge)(this.qualityOptions(),options))}},{key:"mute",value:function mute(){this._muted=!0,this.trigger("volumechange",this.volume())}},{key:"originalAspect",value:function originalAspect(){var originalAsset=this.originalAsset();if(originalAsset)return originalAsset.width/originalAsset.height;var bestAsset=this.bestAsset();return bestAsset().width/bestAsset().height}},{key:"originalAsset",value:function originalAsset(){return this._original?this._original:(this._original=player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.original(this._mediaData.assets),this._original)}},{key:"name",value:function name(newName){// allow for empty string names
return null!=newName&&(this._name=newName,this.trigger("namechange",newName)),null==this._name?this._mediaData.name||"":this._name}},{key:"pause",value:function pause(){var _this8=this;return this.info("pause"),this.ready(function(){return _this8.pause()}),this}},{key:"percentWatched",value:function percentWatched(){return this._secondsWatchedTracker.secondsWatched()/Math.ceil(this.duration())}},{key:"placeEmbed",value:function placeEmbed(embedCode){var container=this.implContainer();this.info("placeEmbed",container,embedCode),this.wrapperElem=(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemFromObject)({id:(0,utilities_seqid__WEBPACK_IMPORTED_MODULE_13__.seqId)("wistia_video_wrapper_"),style:W.generate.relativeBlockCss(),class:"wistia_video_wrapper"}),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemStyle)(this.wrapperElem,{overflow:"hidden"}),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemAppend)(container,this.wrapperElem),"string"==typeof embedCode?this.wrapperElem.innerHTML+=embedCode:(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemAppend)(this.wrapperElem,embedCode)}},{key:"play",value:function play(){var _this9=this;return this.info("play"),this.ready(function(){return _this9.play()}),this}},{key:"playableAsset",value:function playableAsset(options){return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.playable(this._mediaData.assets,options)}},{key:"playableAssetInRange",value:function playableAssetInRange(){var options=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.playable(this._mediaData.assets,(0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.merge)(this.qualityOptions(),options))}},{key:"playbackRate",value:function playbackRate(rate){return null==rate?1:this}},{key:"playbarControlEnabled",value:function playbarControlEnabled(){return this}},{key:"playerColor",value:function playerColor(color){if(null!=color){this.info("playerColor",color);var lastPlayerColor=this._attrs.playerColor;return this._attrs.playerColor=(0,utilities_sane_player_color__WEBPACK_IMPORTED_MODULE_7__.sanePlayerColor)(color),lastPlayerColor!==this._attrs.playerColor&&this.trigger("playercolorchange",this._attrs.playerColor,lastPlayerColor),this}return this._attrs.playerColor}},{key:"playerLanguage",value:function playerLanguage(l){var _this10=this;return null==l?(0,player_translations__WEBPACK_IMPORTED_MODULE_9__.getLanguage)(this._attrs.playerLanguage)||(0,player_translations__WEBPACK_IMPORTED_MODULE_9__.getLanguage)("en-US"):void this.embedded(function(){if(!(0,player_translations__WEBPACK_IMPORTED_MODULE_9__.getLanguage)(l))throw new Error("Language ".concat(l," isn't defined."));l!==_this10._attrs.playerLanguage&&(_this10._attrs.playerLanguage=l,_this10.trigger("playerlanguagechange",(0,player_translations__WEBPACK_IMPORTED_MODULE_9__.getLanguage)(l)))})}},{key:"qualityOptions",value:function qualityOptions(){var _this$_attrs=this._attrs,qualityMin=_this$_attrs.qualityMin,qualityMax=_this$_attrs.qualityMax;return{qualityMin:qualityMin,qualityMax:qualityMax}}},{key:"rebuild",value:function rebuild(){var _this11=this,_options=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.info("rebuild"),this.embedded(function(){_this11.ready(!1),_this11._oldVideoElem=_this11.elem(),_this11.stopStreaming(),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemRemove)(_this11.wrapperElem),_this11.wipeOutstandingAsyncFunctions(),_this11.embed()}),this}},{key:"remove",value:function remove(){var _this$engine,_this$grid,options=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.info("remove"),!1!==options.trigger&&this.trigger("beforeremove"),this.hasData(!1),this.ready(!1),this.embedded(!1),null===(_this$engine=this.engine)||void 0===_this$engine?void 0:_this$engine.destroy(),this.stopStreaming(),!1!==options.trigger&&(this.trigger("down"),this.trigger("afterremove")),this.wipeOutstandingAsyncFunctions(),this._bindings={},this.cleanupRefs(),null!==(_this$grid=this.grid)&&void 0!==_this$grid&&_this$grid.root&&((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemUnbindAllInside)(this.grid.root),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemRemove)(this.grid.root)),this.grid=null}},{key:"requestFullscreen",value:function requestFullscreen(){}// When re-embed the video, we may have set some variables that need
// resetting to make seek-before-play type logic work.
},{key:"resetStateVariables",value:function resetStateVariables(){this.info("resetStateVariables"),this._lastTimePosition=-1,this._lastState="beforeplay",this._streamSet=!1,this._issuedPlay=!1,this._issuedPause=!1,this._beforePlay=!0,this._hasPlayed=!1,this._waiting=0,this._ended=!1,this.playing(!1)}},{key:"sdAsset",value:function sdAsset(){throw new Error("Implement in subclass!")}},{key:"secondsWatched",value:function secondsWatched(){return this._secondsWatchedTracker.secondsWatched()}},{key:"secondsWatchedVector",value:function secondsWatchedVector(){return this._secondsWatchedTracker.secondsWatchedVector()}},{key:"setPlayerColor",value:function setPlayerColor(color){return this.playerColor(color),this}},{key:"setupGrid",value:function setupGrid(options){return this.grid||(this.grid=W.createGrid(this,options),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemAppend)(this.chrome,this.grid.root)),this.grid}},{key:"setupPercentTracking",value:function setupPercentTracking(){var _this12=this;if(!this._trackPercent){// If this video is already playing, assume they've watched up to now.
if(this._secondsWatchedTracker=new utilities_secondsWatchedTracker__WEBPACK_IMPORTED_MODULE_11__.default(this.duration()),"playing"===this.state())for(var currentSecond=Math.ceil(this.time()),i=0;i<currentSecond;i++)this._secondsWatchedTracker.trackSecond(i);this._trackPercent=function(s){var lastPercentWatched=_this12.percentWatched();_this12._secondsWatchedTracker.trackSecond(s),_this12.percentWatched()!==lastPercentWatched&&(_this12.trigger("percentwatchedchanged",_this12.percentWatched(),lastPercentWatched),_this12._percentWatchedThreshold(_this12.percentWatched()))},this.rebind("secondchange",this._trackPercent)}}},{key:"setupPipedreamTracking",value:function setupPipedreamTracking(){var _this13=this;// Anything that involves asset requires that this._currentAsset is set. To
// ensure that, we wait until the video is actually embedded to do any
// reporting on it.
this.whenVideoElementInDom().then(function(){_this13._opts.flashShim||(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_8__.doTimeout)("".concat(_this13.uuid,".track-initembed"),function(){W.Metrics.videoCount(_this13,"player/initembed"),W.Metrics.assetBuckets(_this13).forEach(function(bucket){W.Metrics.videoCount(_this13,"player/initembed.".concat(bucket))});var availablePlayers=(0,player_lib_judy__WEBPACK_IMPORTED_MODULE_0__.usablePlayers)(_this13.publicApi.judyCtx(),_this13.publicApi._mediaData);W.Metrics.videoCount(_this13,"player/available-players",1,{available_players:availablePlayers})},100)}),this.bind("play",function(){return W.Metrics.videoCount(_this13,"player/play"),W.Metrics.assetBuckets(_this13).forEach(function(bucket){W.Metrics.videoCount(_this13,"player/play.".concat(bucket))}),_this13.unbind}),W.Metrics.countEventOnce(this,"enter-fullscreen"),W.Metrics.countEventOnce(this,"end"),W.Metrics.countShowLoadingOnce(this),W.Metrics.countShowLoadingAll(this),W.Metrics.countShowLoadingLongTimeOnce(this),W.Metrics.countShowLoadingLongTimeAll(this),this.bind("secondchange",function(){if(10<=_this13.secondsWatched())return W.Metrics.videoCount(_this13,"player/played-10-seconds"),_this13.unbind}),this.bind("secondchange",function(){if(30<=_this13.secondsWatched())return W.Metrics.videoCount(_this13,"player/played-30-seconds"),_this13.unbind})}},{key:"slide",value:function slide(left,top){for(var _len2=arguments.length,more=Array(2<_len2?_len2-2:0),_key2=2;_key2<_len2;_key2++)more[_key2-2]=arguments[_key2];return this.animate.apply(this,[{transform:"translate(".concat(left,"px,").concat(top,"px)")}].concat(more))}},{key:"slideInLeft",value:function slideInLeft(){var _this14=this,more=this._shortAnimArgs(arguments);return (0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemStyle)(this.grid.root,{transform:"translate(".concat(this.videoWidth(),"px, 0px)")}),setTimeout(function(){return _this14.slide(0,0,more)},1),this}},{key:"slideInRight",value:function slideInRight(){var _this15=this,more=this._shortAnimArgs(arguments);return (0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemStyle)(this.grid.root,{transform:"translate(".concat(-this.videoWidth(),"px, 0px)")}),setTimeout(function(){return _this15.slide(0,0,more)},1),this}},{key:"slideOutLeft",value:function slideOutLeft(){var _this16=this,more=this._shortAnimArgs(arguments);return (0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemStyle)(this.grid.root,{transform:"translate(0px, 0px)"}),setTimeout(function(){return _this16.slide(-_this16.videoWidth(),0,more)},1),this}},{key:"slideOutRight",value:function slideOutRight(){var _this17=this,more=this._shortAnimArgs(arguments);return (0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemStyle)(this.grid.root,{transform:"translate(0px, 0px)"}),setTimeout(function(){return _this17.slide(_this17.videoWidth(),0,more)},1),this}},{key:"smallPlayButtonEnabled",value:function smallPlayButtonEnabled(){return this}},{key:"suppressPlay",value:function suppressPlay(forReal){return null==forReal?this._suppressPlay:(this.info("suppressPlay",forReal),this._suppressPlay=!!forReal,this._suppressPlay)}},{key:"state",value:function state(){return"beforeplay"}},{key:"stillAsset",value:function stillAsset(){return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.still(this._mediaData.assets)}// NOTE: The @grid checks are for a hack used in _seo.coffee where we
// create a FlashPlayer instance, then call generateFlashVars() on it.
// There is no real grid for that object, so the call for @stillUrl() would
// fail without this. Without the grid, it just falls back to the still's
// natural size.
},{key:"stillUrl",value:function stillUrl(options){if(options=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.merge)({videoWidth:this.grid?this.videoWidth():null,videoHeight:this.grid?this.videoHeight():null},this._opts,options),!options.playerColor){var _this$_mediaData,_this$_mediaData$embe;options.playerColor=null===(_this$_mediaData=this._mediaData)||void 0===_this$_mediaData||null===(_this$_mediaData$embe=_this$_mediaData.embed_options)||void 0===_this$_mediaData$embe?void 0:_this$_mediaData$embe.playerColor}return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.stillUrl(this._mediaData.assets,options)}},{key:"stopStreaming",value:function stopStreaming(){// Implement in sub-classes
}},{key:"thumbnailAssets",value:function thumbnailAssets(){return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.thumbnailAssets(this._mediaData.assets,(0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.merge)({},this._opts,{playButton:!1,videoHeight:this.videoHeight(),videoWidth:this.videoWidth()}))}},{key:"time",value:function time(t){var _this18=this;return null==t?0:(this.info("time",t),this.ready(function(){return _this18.time(t)}),this)}// Every time we make a new impl, these properties are transferred to it
// from the facade. These are what persist across rebuild, replace, etc.
//
// There could be a lot more in here, but the convention is to place most
// relevant properties in the @_attrs hash.
},{key:"transferFacadeProperties",value:function transferFacadeProperties(){var _this19=this,props="\n      _attrs\n      _embedContainer\n      _givenOptions\n      _hashedId\n      _hasImpl\n      _mediaData\n      _opts\n      _originalMediaData\n      _tracker\n      chrome\n      container\n      controls\n      data\n      down\n      fullscreenContainer\n      options\n      params\n      plugin\n      plugins\n      up\n      ".split(/[\n\s]+/);props.forEach(function(prop){_this19[prop]=_this19.publicApi[prop]})}},{key:"trim",value:function trim(t){return null==t?this._trimSettings||{start:0,end:-1}:void(this._trimSettings=t)}},{key:"unmute",value:function unmute(){this._muted=!1,this._isPlayingSilently=!1,this.trigger("volumechange",this.volume())}},{key:"videoHeight",value:function videoHeight(h){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null!=h){this.info("videoHeight",h,options),h=parseInt(h,10);var lastH=this.height();// Set the video's height, then fit. This will resize the video and
// update any playlist controls that are dependent on the height of
// main or center.
this.grid.main.style.height="".concat(h,"px"),this.grid.center.style.height="100%",this.grid.main.style.height="${h}px";// Now that we have the correct control heights, figure out how much
// extra height they add on. The total height of the container/wrapper
// should be videoHeight+extraHeight
var th=Math.max((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.above),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.top)),bh=Math.max((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.below),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.bottom)),extraHeight=th+bh;return this.grid.wrapper.style.height=this.chrome.style.height="".concat(h+extraHeight,"px"),options.dontChangeContainer||(this._embedContainer.style.height="".concat(h+extraHeight,"px")),W.grid.fitHorizontal(this),W.grid.fitVertical(this),(h!==lastH||options.trigger)&&this.trigger("heightchange",h,lastH),options.constrain&&this.constrainToHeight({trigger:options.trigger}),this}return (0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemHeight)(this.grid.center)}},{key:"videoWidth",value:function videoWidth(w){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null!=w){this.info("videoWidth",w,options),w=parseInt(w,10);var lastW=this.width();// Set the video's width, then fit. This will resize the video and
// update any playlist controls that are dependent on the width of main
// or center.
this.grid.center.style.width="100%",this.grid.main.style.width="".concat(w,"px");// Now that we have the correct control widths, figure out how much
// extra width they add on. The total width of the container/wrapper
// should be videoWidth+extraWidth.
var extraWidth=(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemWidth)(this.grid.left)+(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemWidth)(this.grid.right);return this.grid.wrapper.style.width=this.chrome.style.width="".concat(w+extraWidth,"px"),options.dontChangeContainer||(this._embedContainer.style.width="".concat(w+extraWidth,"px")),W.grid.fitHorizontal(this),W.grid.fitVertical(this),(w!==lastW||options.trigger)&&this.trigger("widthchange",w,lastW),options.constrain&&this.constrainToWidth({trigger:options.trigger}),this}return (0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemWidth)(this.grid.center)}},{key:"videoQuality",value:function videoQuality(q){return null==q?"auto":this}},{key:"visitorKey",value:function visitorKey(){return this._tracker.visitorKey()}},{key:"volume",value:function volume(level){var _this20=this;return null==level?0:(this.info("volume",level),this.ready(function(){return _this20.volume(level)}))}},{key:"volumeControlEnabled",value:function volumeControlEnabled(){return this}},{key:"webmAsset",value:function webmAsset(options){return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.webm(this._mediaData.assets,options)}},{key:"webmAssetInRange",value:function webmAssetInRange(){var options=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.webm(this._mediaData.assets,(0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.merge)(this.qualityOptions(),options))}},{key:"whenVideoElementInDom",value:function whenVideoElementInDom(){return new (promiscuous__WEBPACK_IMPORTED_MODULE_2___default())(function(_resolve){// never resolve
})}},{key:"width",value:function width(w){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null!=w){this.info("width",w,options),w=parseInt(w,10);var lastW=this.width();return this.grid.wrapper.style.width=this.chrome.style.width="".concat(w,"px"),options.dontChangeContainer||(this._embedContainer.style.width="".concat(w,"px")),this.grid.center.style.width="100%",this._opts.dontFit?(this.grid.main.style.width="".concat(w-(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemWidth)(this.grid.left)-(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemWidth)(this.grid.right),"px"),this.grid.main.style.marginLeft="".concat((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemWidth)(this.grid.left),"px")):(W.grid.fitHorizontal(this),W.grid.fitVertical(this)),(w!==lastW||options.trigger)&&this.trigger("widthchange",w,lastW),options.constrain&&this.constrainToWidth({trigger:options.trigger}),this._width=w,this}return (0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemWidth)(this.grid.left)+(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemWidth)(this.grid.center)+(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_12__.elemWidth)(this.grid.right)}},{key:"widthForHeight",value:function widthForHeight(height){return Math.round(height*this.aspect())}// Some functions might be queued using various methods. When we
// replace, rebuild, or remove a video, we want to cancel them
// immediately.
},{key:"wipeOutstandingAsyncFunctions",value:function wipeOutstandingAsyncFunctions(){this.info("wipeOutstandingAsyncFunctions"),utilities_event_loop__WEBPACK_IMPORTED_MODULE_6__.globalEventLoop.remove(this.uuid),(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_8__.clearTimeouts)(this.uuid),this._remoteMediaKey&&(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_8__.clearTimeouts)(this._remoteMediaKey)}},{key:"_isExternallyEmbedded",value:function _isExternallyEmbedded(){return!this._isOnWistia()}},{key:"_isLoggedIn",value:function _isLoggedIn(){return document.querySelector("body").classList.contains("logged_in")}// First embed and First Share Tracking ================================= #
},{key:"_isOnWistia",value:function _isOnWistia(){var url=this._opts._inIframe?document.referrer:window.location.href;return /wistia\.(io|st|com)/.test(url)}},{key:"_isShared",value:function _isShared(){return this._isOnWistia()&&!this._isLoggedIn()}},{key:"_percentWatchedThreshold",value:function _percentWatchedThreshold(percentWatched){var _this21=this;this._thresholds||(this._thresholds=[.25,.5,.75,1]);var untriggeredThresholds=[],percentWatchedRounded=Math.round(100*percentWatched)/100;this._thresholds.forEach(function(threshold){percentWatchedRounded>=threshold?_this21.trigger("percentWatchedThreshold",threshold):untriggeredThresholds.push(threshold)}),this._thresholds=untriggeredThresholds}},{key:"_recordFirstEmbedIfEligible",value:function _recordFirstEmbedIfEligible(){var _this$_mediaData2=this._mediaData,accountKey=_this$_mediaData2.accountKey,firstEmbedForAccount=_this$_mediaData2.firstEmbedForAccount,firstShareForAccount=_this$_mediaData2.firstShareForAccount,hashedId=_this$_mediaData2.hashedId;if(firstEmbedForAccount||firstShareForAccount){var url="".concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_5__.eV1Protocol)(),"//").concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_5__.appHost)(),"/account/activities"),payload={account_key:accountKey,media_hashed_id:hashedId};firstEmbedForAccount&&this._isExternallyEmbedded()?(payload.first_embed=this._isExternallyEmbedded(),(0,utilities_xhr__WEBPACK_IMPORTED_MODULE_4__.xhrPost)(url,JSON.stringify(payload),{},{dataType:"json"})):firstShareForAccount&&this._isShared()&&(payload.first_share=this._isShared(),(0,utilities_xhr__WEBPACK_IMPORTED_MODULE_4__.xhrPost)(url,JSON.stringify(payload),{},{dataType:"json"}))}}},{key:"_refreshDataFromServer",value:function _refreshDataFromServer(callback,errorCallback){var _this22=this;(0,utilities_xhr__WEBPACK_IMPORTED_MODULE_4__.xhrGet)("//".concat(W.remote.embedHost(),"/embed/medias/").concat(this.hashedId(),".json"),{},{dataType:"json"}).then(function(resp){_this22.publicApi._originalMediaData=resp.data.media,_this22._mediaData=_this22.publicApi._transformAndUpdateMediaData(),_this22._newStill&&_this22._replaceStillAsset(_this22._newStill),_this22.publicApi._mediaData=_this22._mediaData,W.cacheMedia(_this22.hashedId(),_this22._mediaData),null===callback||void 0===callback?void 0:callback(),_this22.trigger("refreshed-from-server")})["catch"](errorCallback)}},{key:"_replaceStillAsset",value:function _replaceStillAsset(asset){var assetsWithoutStill=this.assets().filter(function(a){return"still_image"!==a.type});this._mediaData.assets=assetsWithoutStill,this._mediaData.assets.push(asset)}},{key:"_shortAnimArgs",value:function _shortAnimArgs(args){return"function"==typeof args[0]?{callback:args[0]}:(0,utilities_obj__WEBPACK_IMPORTED_MODULE_10__.merge)({},args[0],{callback:args[1]})}}]),Player}();Player.FAILED=-1,Player.PROCESSING=1,Player.QUEUED=0,Player.READY=2,Player.asset=player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.one,Player.assets=player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.filter,Player.assetsWithinQualityRange=player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.withinQualityRange,Player.bakeryHosts=function(){return player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.BAKERY_HOSTS},Player.isBakeryUrl=player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.isBakeryUrl,Player.stillAsset=player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.still,Player.stillUrl=player_lib_assets__WEBPACK_IMPORTED_MODULE_1__.stillUrl,Player._sanePlayerColor=utilities_sane_player_color__WEBPACK_IMPORTED_MODULE_7__.sanePlayerColor,W.mixin(Player.prototype,W.bindable),W.mixin(Player.prototype,W.logHelpers),Player.prototype._logPrefix=function(){var _this$_embedContainer;return[this.constructor.name,this.hashedId()||"no hashedId",null===(_this$_embedContainer=this._embedContainer)||void 0===_this$_embedContainer?void 0:_this$_embedContainer.id,this.uuid]};// Monkey-patch trigger to also trigger on the public API. This is more
// efficient than marshalling.
var oldTrigger=Player.prototype.trigger;Player.prototype.trigger=function(){for(var _this$publicApi,_len3=arguments.length,args=Array(_len3),_key3=0;_key3<_len3;_key3++)args[_key3]=arguments[_key3];return oldTrigger.apply(this,args),(_this$publicApi=this.publicApi)._triggerNoImpl.apply(_this$publicApi,args)},Object.getOwnPropertyNames(W.PublicApi.prototype).forEach(function(propName){var propVal=W.PublicApi.prototype[propName];"function"!=typeof propVal||Player.prototype.hasOwnProperty(propName)||function(propName,propVal){Player.prototype[propName]=function(){var _this$publicApi2;return(_this$publicApi2=this.publicApi)[propName].apply(_this$publicApi2,arguments)},Player.prototype[propName]._originalMethod=propVal}(propName,propVal)}),W.Player=W.Video=Player}})(window.Wistia);

/***/ }),

/***/ 549:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
(function(W){W.Kicksend={},W.Kicksend.mailcheck={threshold:3,suggest:function suggest(email,domains){email=email.toLowerCase();var emailParts=this.splitEmail(email),closestDomain=this.findClosestDomain(emailParts.domain,domains);return!!closestDomain&&{address:emailParts.address,domain:closestDomain,full:emailParts.address+"@"+closestDomain}},findClosestDomain:function findClosestDomain(domain,domains){for(var dist,minDist=99,closestDomain=null,i=0;i<domains.length;i++){if(domain===domains[i])return!1;dist=this.stringDistance(domain,domains[i]),dist<minDist&&(minDist=dist,closestDomain=domains[i])}return!!(minDist<=this.threshold&&null!==closestDomain)&&closestDomain},stringDistance:function stringDistance(s1,s2){// sift3: http://siderite.blogspot.com/2007/04/super-fast-and-accurate-string-distance.html
if(null==s1||0===s1.length)return null==s2||0===s2.length?0:s2.length;if(null==s2||0===s2.length)return s1.length;for(var c=0,offset1=0,offset2=0,lcs=0,maxOffset=5;c+offset1<s1.length&&c+offset2<s2.length;){if(s1[c+offset1]==s2[c+offset2])lcs++;else{offset1=0,offset2=0;for(var i=0;5>i;i++){if(c+i<s1.length&&s1[c+i]==s2[c]){offset1=i;break}if(c+i<s2.length&&s1[c]==s2[c+i]){offset2=i;break}}}c++}return(s1.length+s2.length)/2-lcs},splitEmail:function splitEmail(email){var parts=email.split("@");if(2>parts.length)return!1;for(var i=0;i<parts.length;i++)if(""===parts[i])return!1;return{domain:parts.pop(),address:parts.join("@")}}}})(Wistia);/* harmony default export */ __webpack_exports__["default"] = (Wistia.Kicksend.mailcheck);

/***/ }),

/***/ 220:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var _vulcanV2Player_captionsHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(221);
/* harmony import */ var _vulcanV2Player_video_controls_CaptionsButtonControl_CaptionsButtonControl_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(222);
/* harmony import */ var _vulcanV2Player_video_controls_CaptionsControl_CaptionsControl_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(226);
/* harmony import */ var _vulcanV2Player_video_controls_TranscriptControl_TranscriptControl_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(228);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i&&_arr.length===i));_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i["return"]||_i["return"]()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _get(target,property,receiver){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(target,property,receiver){var base=_superPropBase(target,property);if(base){var desc=Object.getOwnPropertyDescriptor(base,property);return desc.get?desc.get.call(receiver):desc.value}},_get(target,property,receiver||target)}function _superPropBase(object,property){for(;!Object.prototype.hasOwnProperty.call(object,property)&&(object=_getPrototypeOf(object),null!==object););return object}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}var Promise=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("promiscuous"),Obj=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/obj"),_W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/wlog"),wlog=_W$lib.wlog;// Defining these plugins means they'll be available as controls when
// they initialize.
var CaptionsPlugin=/*#__PURE__*/function(_W$Plugin$Base){function CaptionsPlugin(video,options){var _this;_classCallCheck(this,CaptionsPlugin),_this=_super.call(this,video,options),_this.video=video,_this.options=options,_this.captions=null;var opts=_this.options.language?{language:_this.options.language}:{};return _this.fetched=(0,_vulcanV2Player_captionsHelper_js__WEBPACK_IMPORTED_MODULE_1__.fetchCaptions)(video,opts).then(function(captionsResp){_this.captions=captionsResp.captions}),_this.isEnabled=!1!==options.on,_this.unbinds=[],_this.unbinds.push(_this.video.on("plugininitialized",function(pluginName){"captions"!==pluginName||(_this.isEnabled?(_this.enable(),_this.options.onByDefault?_this.turnOn():!1!==_this.options.autoEnableForSilentAutoPlay&&("playing"===_this.video.state()&&_this.video.inSilentPlaybackMode()&&_this.turnOn(),_this.video.on("play",function(){return _this.video.inSilentPlaybackMode()&&_this.turnOn(),_this.video.unbind}),_this.video.on("silentplaybackmodechange",function(inSilentPlaybackMode){return inSilentPlaybackMode&&_this.turnOn(),_this.video.unbind}))):_this.disable())})),_this}_inherits(CaptionsPlugin,_W$Plugin$Base);var _super=_createSuper(CaptionsPlugin);return _createClass(CaptionsPlugin,[{key:"customizePreview",value:function customizePreview(changeSet){var _this2=this;return changeSet.anyChanged(["plugin[captions]","plugin[captions-v1]","ephemeral[captions]"])?new Promise(function(resolve){var captionsOptions=changeSet.currentValue("plugin[captions]")||changeSet.currentValue("plugin[captions-v1]")||{on:!1};// if the language or text of any captions changed, or a set of captions was
// added or removed, fetch the new array of captions from the server.
changeSet.changed("ephemeral[captions][captionsArray]")&&_this2.clearCache(),_this2.allMountedAndFetched().then(function(){if(changeSet.currentValue("ephemeral[ui][captions][isOpen]")){_this2.video.requestControls("customizePreview-captions",4e3);var dialog=Obj.getDeep(_this2.video,"controls.captionsButton.dialog");dialog&&dialog.open(),setTimeout(function(){var dialog=Obj.getDeep(_this2.video,"controls.captionsButton.dialog");dialog&&dialog.close()},4e3)}if(!_this2.captions.length){var defaultCaptions=[{start:0,end:5,text:["These captions are only an example."]},{start:5,end:10,text:["When you get real captions,","they'll be automatically enabled."]},{start:10,end:15,text:["Go ahead: upload an SRT file","or order a transcript!"]}];_this2.insertCaptions(defaultCaptions),_this2.turnOn()}else captionsOptions.onByDefault?_this2.turnOn():_this2.turnOff();resolve()})}):void 0}},{key:"captionsOptionsChanged",value:function captionsOptionsChanged(changedOptions){return changedOptions.some(function(option){return 0===option.indexOf("plugin[captions-v1]")||0===option.indexOf("ephemeral[captions]")})}},{key:"captionsArrayChanged",value:function captionsArrayChanged(changedOptions){return changedOptions.some(function(option){return 0===option.indexOf("ephemeral[captions][captionsArray]")})}},{key:"enable",value:function enable(){this.video.setControlEnabled("captions",!0),this.video.setControlEnabled("captionsButton",!0),// This plugin will already be defined by virtue of loading this script, so
// shouldn't make another request.
this.video.addPlugin("captions-v1",{legacy:!0})}},{key:"disable",value:function disable(){this.video.setControlEnabled("captions",!1),this.video.setControlEnabled("captionsButton",!1),this.video.removePlugin("captions-v1")}},{key:"allMountedAndFetched",value:function allMountedAndFetched(){var mountPromises=[this.video.whenControlMounted("captionsButton"),this.video.whenControlMounted("captions")];return Promise.all(mountPromises).then(function(_ref){var _ref2=_slicedToArray(_ref,2),captionsButton=_ref2[0],captions=_ref2[1];return Promise.all([captionsButton.fetchCaptions(),captions.fetchCaptions()])})}},{key:"turnOn",value:function turnOn(){var _this3=this;this.allMountedAndFetched().then(function(){var captionsButton=_this3.video.controls.captionsButton;if(captionsButton){var preferredCaptions=captionsButton.getPreferredCaptions();if(preferredCaptions)captionsButton.setSelectedLanguage(preferredCaptions.language);else{var firstInList=captionsButton.captionsResp.captions[0];firstInList&&captionsButton.setSelectedLanguage(firstInList.language)}}})}},{key:"remove",value:function remove(){this.unbinds.map(function(e){"function"==typeof e?e():wlog.warn("trying to unbind a non-function",e)}),this.disable(),delete this.video.plugin.captions,delete this.video.plugin["captions-v1"],_get(_getPrototypeOf(CaptionsPlugin.prototype),"remove",this).call(this)}},{key:"turnOff",value:function turnOff(){this.video.controls.captionsButton.turnOff()}},{key:"show",value:function show(){this.video.setControlEnabled("captions",!0)}},{key:"hide",value:function hide(){this.video.setControlEnabled("captions",!1)}},{key:"setSubtitlesScale",value:function setSubtitlesScale(s){var _this4=this;this.video.whenControlMounted("captions").then(function(){_this4.video.controls.captions.setUserScale(s)})}},{key:"getSubtitlesScale",value:function getSubtitlesScale(){return this.video.controls.captions?this.video.controls.captions.getUserScale():1}},{key:"insertCaptions",value:function insertCaptions(lines){// for Customize to inject fake temporary captions
var c={english_name:"English",hash:{lines:lines},language:"_preview_",native_name:"English",right_to_left:!1},fakeResp={captions:[c],preferred_languages:[]};this.video.controls.captions.captionsResp=fakeResp,this.video.controls.captionsButton.captionsResp=fakeResp,this.video.controls.transcript.captionsResp=fakeResp,this.captions=[c],_vulcanV2Player_captionsHelper_js__WEBPACK_IMPORTED_MODULE_1__.captionsPromises[this.video.hashedId()]=Promise.resolve(fakeResp)}},{key:"clearCache",value:function clearCache(){var _this5=this;this.captions=null,delete _vulcanV2Player_captionsHelper_js__WEBPACK_IMPORTED_MODULE_1__.captionsPromises[this.video.hashedId()],this.fetched=(0,_vulcanV2Player_captionsHelper_js__WEBPACK_IMPORTED_MODULE_1__.fetchCaptions)(this.video,this.options).then(function(captionsResp){_this5.captions=captionsResp.captions})}},{key:"setLanguage",value:function setLanguage(lang){this.video.controls.captionsButton.setSelectedLanguage(lang)}}]),CaptionsPlugin}(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.Plugin.Base);// Legacy support for usage like video.plugin['captions-v1'].turnOn(), etc.
wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.plugin("captions",function(video,options){return new CaptionsPlugin(video,options)}),wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.plugin("captions-v1",function(video,_options){return{turnOn:function turnOn(){video.plugin.captions.turnOn()},turnOff:function turnOff(){video.plugin.captions.turnOff()}}});

/***/ }),

/***/ 717:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _postRoll_v2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(535);
/* harmony import */ var _requireEmail_v1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(548);
/* harmony import */ var _requireEmail_v1__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_requireEmail_v1__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _captions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(220);
/* harmony import */ var _transcript_v2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(570);
/* harmony import */ var _transcript_v2__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_transcript_v2__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var utilities_simpleMetrics__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(297);
(0,utilities_simpleMetrics__WEBPACK_IMPORTED_MODULE_4__.countMetric)("legacy/plugins.js",1,{href:window.location.href});

/***/ }),

/***/ 535:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var _vulcanV2Player_video_ui_components_CTAOverlay_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(536);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var source,i=1;i<arguments.length;i++)source=null==arguments[i]?{}:arguments[i],i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))});return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _get(target,property,receiver){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(target,property,receiver){var base=_superPropBase(target,property);if(base){var desc=Object.getOwnPropertyDescriptor(base,property);return desc.get?desc.get.call(receiver):desc.value}},_get(target,property,receiver||target)}function _superPropBase(object,property){for(;!Object.prototype.hasOwnProperty.call(object,property)&&(object=_getPrototypeOf(object),null!==object););return object}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/isMouseDown"),isMouseDownRecently=_W$lib2.isMouseDownRecently,Color=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/color"),Promise=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("promiscuous"),PLUGIN_NAME="postRoll-v2-cta",_W$lib3=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/core"),unescapeHtml=_W$lib3.unescapeHtml,_W$lib4=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/elem"),getCssTags=_W$lib4.getCssTags,execCssTags=_W$lib4.execCssTags,removeCssTags=_W$lib4.removeCssTags,getScriptTags=_W$lib4.getScriptTags,execScriptTags=_W$lib4.execScriptTags,removeScriptTags=_W$lib4.removeScriptTags,elemStripEventAttributes=_W$lib4.elemStripEventAttributes,PostRollPlugin=/*#__PURE__*/function(_W$Plugin$Base){function PostRollPlugin(video,options){var _this;return _classCallCheck(this,PostRollPlugin),_this=_super.call(this,video,options),_defineProperty(_assertThisInitialized(_this),"nextVideo",function(){return _this.video.nextVideo()}),_defineProperty(_assertThisInitialized(_this),"translateColor",function(){var defaultColor=new Color("#303030"),backgroundColor=defaultColor.alpha(_this._style.backgroundOpacity||.91),hoverColor=new Color(backgroundColor),rgbaBackgroundColor=backgroundColor.toRgba(),rgbaHoverColor=hoverColor.alpha(.41).toRgba();return{rgbaBackgroundColor:rgbaBackgroundColor,rgbaHoverColor:rgbaHoverColor}}),_defineProperty(_assertThisInitialized(_this),"onClickSkip",function(){"beforeplay"===_this.video.state()&&_this.video.unsuspend({state:"playing",time:_this.video.time()}),_this.hide(),isMouseDownRecently()||_this.video._focusNextVisibleElem()}),_defineProperty(_assertThisInitialized(_this),"onClickRewatch",function(){_this.video.unsuspend({time:0,state:"playing"}),_this.hide(),isMouseDownRecently()||_this.video._focusNextVisibleElem()}),_defineProperty(_assertThisInitialized(_this),"logConversionEvent",function(){var conversionData=_objectSpread(_objectSpread({},_this.formatConversionData()),{},{converted:!0,link:_this._link});_this.video.trigger("conversion-postRoll",conversionData),_this.video._tracker.logConversionOpportunity(conversionData)}),_this.pluginName="postRoll-v2",_this.video=video,_this.options=options,_this.updateFromOptions(_this.options),_this._conversionOpportunityType="callToAction",_this._isVisible=!1,_this.unbinds=[],null==_this._time&&(_this._time="end"),_this._style||(_this._style={}),_this.video.defineOverlay(PLUGIN_NAME,_this.getOptionsForDefineOverlay()),_this.setupOverlayBindings(),_this}_inherits(PostRollPlugin,_W$Plugin$Base);var _super=_createSuper(PostRollPlugin);return _createClass(PostRollPlugin,[{key:"renderCta",value:function renderCta(){var _this2=this;return new Promise(function(resolve){var options={altText:_this2._altText,ctaType:_this2._ctaType,text:_this2._text,raw:_this2._raw,image:_this2._image,time:_this2._time,rewatch:_this2._rewatch,autoSize:_this2._autoSize,style:_this2._style,link:_this2._link},video=_this2.video,isMostRecentFocusViaMouse=video.controls.modalOverlay.props.isMostRecentFocusViaMouse;wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.asyncRequire("interFontFace.js").then(function(){render(h(_vulcanV2Player_video_ui_components_CTAOverlay_jsx__WEBPACK_IMPORTED_MODULE_1__.default,{options:options,playerLanguage:video.playerLanguage(),videoHeight:video.videoHeight(),videoWidth:video.videoWidth(),isMostRecentFocusViaMouse:isMostRecentFocusViaMouse,onClickSkip:_this2.onClickSkip,onClickRewatch:_this2.onClickRewatch,nextVideo:_this2.nextVideo,logConversionEvent:_this2.logConversionEvent,hoverColor:_this2.translateColor().rgbaHoverColor,uiContainer:video.uiContainer}),_this2.rootElem),_this2.reactMounts=[_this2.rootElem],resolve()})})}},{key:"customizePreview",value:function customizePreview(changeSet){if(changeSet.anyChanged(["plugin[postRoll-v2]","plugin[postRoll-v1]","ephemeral[ui][callToAction]"])){this.resetOverLayType();var opts=changeSet.currentValue("plugin[postRoll-v2]")||changeSet.currentValue("plugin[postRoll-v1]")||{on:!1},currentPluginOptions=_objectSpread({},opts);"text"===currentPluginOptions.ctaType&&(!currentPluginOptions.text&&(currentPluginOptions.text="Here's a link to click! \u2192"),!currentPluginOptions.link&&(currentPluginOptions.link="https://wistia.com")),this.updateFromOptions(currentPluginOptions),changeSet.currentValue("ephemeral[ui][callToAction][isOpen]")?(this.show(),this.video.time(this.formatStringToTime(currentPluginOptions.time))):this.hide()}}},{key:"formatStringToTime",value:function formatStringToTime(time){var translateTime;return translateTime="before"===time?0:"end"===time?this.video.duration():time,translateTime}// Returns an object that will be passed when `defineOverlay` is called.
// Allows the plugin to call things like renderCta on the overlay.
},{key:"getOptionsForDefineOverlay",value:function getOptionsForDefineOverlay(){var plugin=this;return{mount:function mount(rootElem){plugin.rootElem=rootElem,plugin.renderCta().then(function(){plugin.possiblyExecuteScriptTags(!0)})},onControlPropsUpdated:function onControlPropsUpdated(prevProps){prevProps.videoWidth!==this.props.videoWidth&&plugin.renderCta(),prevProps.playerLanguage&&prevProps.playerLanguage.code!==this.props.playerLanguage.code&&plugin.renderCta()},style:_objectSpread(_objectSpread({},plugin._style),{},{backgroundColor:plugin.translateColor().rgbaBackgroundColor}),type:"modal",transition:"fade"}}},{key:"setupOverlayBindings",value:// set up the bindings on when the overlay should appear
function setupOverlayBindings(){var _this3=this;// wait for the video to be embedded before we actually try and
// render anything out
this.video.embedded(function(){var time=_this3._time;"before"===time&&"beforeplay"===_this3.video.state()?_this3.show():"end"===time?_this3.unbinds.push(_this3.video.on("end",function(){_this3.show()})):_this3.unbinds.push(_this3.video.on("crosstime",_this3._time,function(){_this3.show()})),_this3.unbinds.push(_this3.video.on("beforerebuild",function(){_this3._isVisible=!1}))})}},{key:"hide",value:function hide(){this._isVisible=!1,this.video.cancelOverlay(PLUGIN_NAME)}},{key:"sanitizeUrl",value:function sanitizeUrl(unsanitizedUrl){var url=unescapeHtml(unsanitizedUrl);return /^(https?|mailto|ftp|tel|#|\/)/.test(url)?url:"http://".concat(url)}},{key:"sanitizeRaw",value:function sanitizeRaw(html){return this._previousUnstrippedRaw=this._unstrippedRaw||html,this._unstrippedRaw=html,this._scriptTags=getScriptTags(html),this._cssTags=getCssTags(html),removeCssTags(removeScriptTags(html))}},{key:"formatConversionData",value:function formatConversionData(){var time;return time="end"===this._time?this.video.duration():"before"===this._time?0:this._time,{co_key:this._conversionOpportunityKey,co_type:this._conversionOpportunityType,time:time}}// showing a CTA logs a conversion _opportunity_
},{key:"logConversionOpportunity",value:function logConversionOpportunity(){this.video._tracker.logConversionOpportunity(this.formatConversionData())}// clicking on a CTA logs the conversion
},{key:"show",value:function show(){var _this4=this;this._isVisible||this.video.requestOverlay(PLUGIN_NAME).then(function(){_this4._isVisible=!0,_this4.logConversionOpportunity()}),this.video.requestOverlay(PLUGIN_NAME).then(function(){return _this4.renderCta()}).then(function(){_this4.possiblyExecuteScriptTags(),_this4.rootElem&&(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.EmbedLink.setupAll(_this4.rootElem),!wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.plugin._allow3rdParty(_this4.video.embedOptions())&&elemStripEventAttributes(_this4.rootElem))})}// if you have raw html with scriptTags and allow3rdParty as an option
// we will execute your scripts under certain conditions
},{key:"possiblyExecuteScriptTags",value:function possiblyExecuteScriptTags(firstRender){var firstRenderOrRawChanged=this._unstrippedRaw!==this._previousUnstrippedRaw||firstRender,hasScriptTags=this._scriptTags&&0<this._scriptTags.length,hasCssTags=this._cssTags&&0<this._cssTags.length;// you need to have raw, allow3rdParty, script tags, and raws needs to have changed or be first render
this._raw&&(hasScriptTags||hasCssTags)&&firstRenderOrRawChanged&&wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.plugin._allow3rdParty(this.video.embedOptions())&&(execScriptTags(this._scriptTags||[]),execCssTags(this._cssTags||[]))}},{key:"remove",value:function remove(){this.unbinds.map(function(e){return e()}),this.unbinds=[],this.video.cancelOverlay(PLUGIN_NAME),_get(_getPrototypeOf(PostRollPlugin.prototype),"remove",this).call(this)}},{key:"resetOverLayType",value:function resetOverLayType(){this._text=void 0,this._image=void 0,this._html=void 0,this._raw=void 0}// using the same method names as in _call_to_action.coffee
},{key:"updateText",value:function updateText(text){this.resetOverLayType(),this._text=text,this.show()}// using the same method from _call_to_action.coffee
},{key:"updateImage",value:function updateImage(image){this.resetOverLayType(),this._image=preloadImg(image),this.show()}},{key:"updateRaw",value:function updateRaw(html){this.resetOverLayType(),this._raw=this.sanitizeRaw(html),this.show()}},{key:"updateUrl",value:function updateUrl(unsanitizedUrl){this._link=this.sanitizeUrl(unsanitizedUrl),this.show()}},{key:"showRewatch",value:function showRewatch(){this._rewatch=!0,this.show()}},{key:"hideRewatch",value:function hideRewatch(){this._rewatch=!1,this.show()}},{key:"updateFromOptions",value:function updateFromOptions(options){for(var prop in options)this.updateFromOption("_".concat(prop),options[prop])}},{key:"updateFromOption",value:function updateFromOption(optionName,optionValue){"_link"===optionName?this._link=this.sanitizeUrl(optionValue):"_raw"===optionName?this._raw=this.sanitizeRaw(optionValue):"_image"===optionName?this._image=preloadImg(optionValue):"_backgroundOpacity"===optionName?this._style=_objectSpread(_objectSpread({},this._style),{},{backgroundOpacity:optionValue}):this[optionName]=optionValue}}]),PostRollPlugin}(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.Plugin.Base),preloadImg=function preloadImg(src){if(src){var image=new Image;return image.src=src,image}};wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.plugin("postRoll-v2",function(video,options){return new PostRollPlugin(video,options)});

/***/ }),

/***/ 56:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/bindify"),bindify=_W$lib.bindify,Elem=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/elem"),elemBind=Elem.elemBind,elemUnbind=Elem.elemUnbind,elemWidth=Elem.elemWidth,elemHeight=Elem.elemHeight,elemOffset=Elem.elemOffset,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/detect"),cachedDetect=_W$lib2.cachedDetect,detect=cachedDetect(),TouchEvents=/*#__PURE__*/function(){function TouchEvents(rootElem){var _this=this;_classCallCheck(this,TouchEvents),_defineProperty(this,"onTouchStart",function(event){_this.rootWidth=elemWidth(_this.rootElem),_this.rootHeight=elemHeight(_this.rootElem),_this.rootOffset=elemOffset(_this.rootElem),_this.resetTouchContext(),event.touches[0]&&(_this.xDown=event.touches[0].clientX,_this.yDown=event.touches[0].clientY),_this.updatePinch(event),2==event.touches.length&&_this.touchesAreInsideRootElem()&&event.preventDefault(),_this.startedAt=Date.now(),elemBind(document,"touchmove",_this.onTouchMoveDocument,{passive:!1}),elemBind(document,"touchend",_this.onTouchEndDocument),elemBind(_this.rootElem,"touchmove",_this.onTouchMove,{passive:!1}),elemBind(_this.rootElem,"touchend",_this.onTouchEnd);var ctx=_this.getTouchContext(event);_this.trigger("touchstart",event,ctx),_this.maybeTriggerMoreSpecificEvent(event,ctx)}),_defineProperty(this,"onTouchMove",function(event){event._handledByTouchMove=!0;var xUp=event.touches[0].clientX,yUp=event.touches[0].clientY;if(_this.xDiff=_this.xDown-xUp,_this.yDiff=_this.yDown-yUp,_this.updatePinch(event),!_this.isPinch){var dist=Math.sqrt(_this.xDiff*_this.xDiff+_this.yDiff*_this.yDiff);(25<dist||300<Date.now()-_this.startedAt)&&(_this.isSwipe=!0)}var ctx=_this.getTouchContext(event);_this.trigger("touchmove",event,ctx),_this.maybeTriggerMoreSpecificEvent(event,ctx)}),_defineProperty(this,"onTouchMoveDocument",function(event){event._handledByTouchMove||_this.onTouchMove(event)}),_defineProperty(this,"onTouchEnd",function(event){event._handledByTouchEnd=!0;var ctx=_this.getTouchContext(event);_this.trigger("touchend",event,ctx),_this.maybeTriggerMoreSpecificEvent(event,ctx),setTimeout(function(){_this.resetTouchContext(),_this.unbindTouchEndAndTouchMove()},0)}),_defineProperty(this,"onTouchEndDocument",function(event){event._handledByTouchEnd||_this.onTouchEnd(event)}),this.rootElem=rootElem,this.xDown=this.yDown=null,this.xDiff=this.yDiff=0,this.isSwipe=!1,this.isPinch=!1,this.startedAt=null,this.initialPinchDistance=null,this.touch1=this.touch2=null,this.pinchDistance=0,this.pinchScale=0,elemBind(rootElem,"touchstart",this.onTouchStart,!!detect.passiveSupported&&{passive:!1})}return _createClass(TouchEvents,[{key:"updatePinch",value:function updatePinch(e){var rootOffset=this.rootOffset;return 2===e.touches.length?(this.touch1={left:e.touches[0].pageX-rootOffset.left,top:e.touches[0].pageY-rootOffset.top},this.touch2={left:e.touches[1].pageX-rootOffset.left,top:e.touches[1].pageY-rootOffset.top},this.pinchDistance=Math.sqrt(Math.pow(this.touch1.left-this.touch2.left,2),Math.pow(this.touch1.top-this.touch2.top,2)),null==this.initialPinchDistance&&(this.initialPinchDistance=this.pinchDistance),this.pinchScale=this.pinchDistance/this.initialPinchDistance,this.pinchDelta=this.pinchDistance-this.initialPinchDistance,this.isPinch=!0,this.pinchScale):0}},{key:"getTouchContext",value:function getTouchContext(e){var rootOffset=this.rootOffset,timeDelta=Date.now()-this.startedAt,touch=Object(e.touches[0]),xOffset=touch.pageX-rootOffset.left,yOffset=touch.pageY-rootOffset.top;return{xOffset:xOffset,yOffset:yOffset,xDelta:this.xDiff,yDelta:this.yDiff,absXDelta:Math.abs(this.xDiff),absYDelta:Math.abs(this.yDiff),delta:Math.sqrt(this.xDiff*this.xDiff+this.yDiff*this.yDiff),startedAt:this.startedAt,isSwipe:!this.isPinch&&this.isSwipe,isTap:1e3>timeDelta&&!this.isPinch&&!this.isSwipe,isLongPress:1e3<=timeDelta&&!this.isPinch&&!this.isSwipe,isPinch:this.isPinch,timeDelta:timeDelta,pinchScale:this.pinchScale,pinchDistance:this.pinchDistance}}},{key:"touchIsInsideRootElem",value:function touchIsInsideRootElem(touch){return 0<=touch.left&&touch.left<this.rootWidth&&0<=touch.top&&touch.top<this.rootHeight}},{key:"touchesAreInsideRootElem",value:function touchesAreInsideRootElem(){return this.touchIsInsideRootElem(this.touch1)&&this.touchIsInsideRootElem(this.touch2)}},{key:"resetTouchContext",value:function resetTouchContext(){this.xDown=this.yDown=null,this.xDiff=this.yDiff=0,this.isSwipe=!1,this.isPinch=!1,this.startedAt=null,this.pinchDelta=0,this.pinchDistance=0,this.initialPinchDistance=null,this.touch1=this.touch2=null}},{key:"maybeTriggerMoreSpecificEvent",value:function maybeTriggerMoreSpecificEvent(event,ctx){ctx.isLongPress?this.trigger("longpress",event,ctx):ctx.isTap?this.trigger("tap",event,ctx):ctx.isSwipe?this.trigger("swipe",event,ctx):ctx.isPinch&&this.trigger("pinch",event,ctx)}},{key:"destroy",value:function destroy(){elemUnbind(this.rootElem,"touchstart",this.onTouchStart),this.unbindTouchEndAndTouchMove(),this.rootElem=null}},{key:"unbindTouchEndAndTouchMove",value:function unbindTouchEndAndTouchMove(){elemUnbind(document,"touchmove",this.onTouchMoveDocument),elemUnbind(document,"touchend",this.onTouchEndDocument),elemUnbind(this.rootElem,"touchmove",this.onTouchMove),elemUnbind(this.rootElem,"touchend",this.onTouchEnd)}}]),TouchEvents}();bindify(TouchEvents.prototype),wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.define("vulcanV2Player/TouchEvents.js",TouchEvents);/* harmony default export */ __webpack_exports__["default"] = (TouchEvents);

/***/ }),

/***/ 221:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "captionsPromises": function() { return /* binding */ captionsPromises; },
/* harmony export */   "fetchCaptions": function() { return /* binding */ fetchCaptions; },
/* harmony export */   "shouldShowNativeCaptions": function() { return /* binding */ shouldShowNativeCaptions; },
/* harmony export */   "getCaptionsForLanguage": function() { return /* binding */ getCaptionsForLanguage; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/jsonp"),jsonp=_W$lib.jsonp,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/url"),urlProto=_W$lib2.proto,_W$lib3=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/hosts"),eV1Protocol=_W$lib3.eV1Protocol,mediaDataHost=_W$lib3.mediaDataHost,cdnFastWistiaNetHost=_W$lib3.cdnFastWistiaNetHost,Promise=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("promiscuous");var captionsPromises={};var fetchCaptions=function fetchCaptions(video){var options=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},hashedId=video.hashedId(),requestOptions=options.language?{language:options.language}:{};return captionsPromises[hashedId]?captionsPromises[hashedId]:captionsPromises[hashedId]=new Promise(function(resolve){var baseUrl;baseUrl=video._opts.useMediaDataHostLogic?"".concat(eV1Protocol(),"//").concat(mediaDataHost(video._opts)):"".concat(urlProto(),"//").concat(cdnFastWistiaNetHost()),jsonp("".concat(baseUrl,"/embed/captions/").concat(hashedId,".json"),requestOptions,function(resp){resolve(resp)})})};var shouldShowNativeCaptions=function shouldShowNativeCaptions(video){return video._inNativeMode()||video._impl.behaviors.fullscreen&&video._impl.behaviors.fullscreen.inNativeFullscreen()};var getCaptionsForLanguage=function getCaptionsForLanguage(lang,allCaptions){for(var captions,i=0;i<allCaptions.length;i++)if(captions=allCaptions[i],captions.language===lang)return captions;return null};

/***/ }),

/***/ 140:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,Control=/*#__PURE__*/function(){function Control(video){_classCallCheck(this,Control),this.video=video,this.unbinds=[],this.reactMounts={}}return _createClass(Control,[{key:"mount",value:function mount(rootElem){this.rootElem=rootElem}}]),Control}();/* harmony default export */ __webpack_exports__["default"] = (Control);

/***/ }),

/***/ 55:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var _TouchEvents_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _extends(){return _extends=Object.assign||function(target){for(var source,i=1;i<arguments.length;i++)for(var key in source=arguments[i],source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},_extends.apply(this,arguments)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,Component=_W$lib.Component,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/detect"),cachedDetect=_W$lib2.cachedDetect,detect=cachedDetect();var CustomEventsWrapper=/*#__PURE__*/function(_Component){function CustomEventsWrapper(){var _this;_classCallCheck(this,CustomEventsWrapper);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=_super.call.apply(_super,[this].concat(args)),_defineProperty(_assertThisInitialized(_this),"onSwipe",function(e,ctx){var onSwipe=_this.props.onSwipe;onSwipe&&onSwipe(e,ctx)}),_defineProperty(_assertThisInitialized(_this),"onPinch",function(e,ctx){var onPinch=_this.props.onPinch;onPinch&&onPinch(e,ctx)}),_defineProperty(_assertThisInitialized(_this),"onLongPress",function(e,ctx){var onLongPress=_this.props.onLongPress;onLongPress&&onLongPress(e,ctx)}),_defineProperty(_assertThisInitialized(_this),"onCustomTouchMove",function(e,ctx){var onTouchMove=_this.props.onCustomTouchMove;onTouchMove&&onTouchMove(e,ctx)}),_this}_inherits(CustomEventsWrapper,_Component);var _super=_createSuper(CustomEventsWrapper);return _createClass(CustomEventsWrapper,[{key:"render",value:function render(){var TagName=this.props.tagName||"div";return h(TagName,_extends({},this.props,{ref:this.props.elemRef}),this.props.children)}},{key:"componentDidMount",value:function componentDidMount(){this._savedBase=this.base,this.setupBindings()}},{key:"componentDidUpdate",value:function componentDidUpdate(){this.base!==this._savedBase&&(this._savedBase=this.base,this.destroyBindings(),this.setupBindings())}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.destroyBindings()}},{key:"setupBindings",value:function setupBindings(){if(this.unbinds=[],detect.touchScreen){var touchEvents=this.touchEvents=new _TouchEvents_js__WEBPACK_IMPORTED_MODULE_1__.default(this.base);touchEvents.on("swipe",this.onSwipe),touchEvents.on("pinch",this.onPinch),touchEvents.on("longpress",this.onLongPress),touchEvents.on("touchmove",this.onCustomTouchMove)}}},{key:"destroyBindings",value:function destroyBindings(){this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null),this.unbinds&&(this.unbinds.map(function(unbind){return unbind()}),this.unbinds=null)}}]),CustomEventsWrapper}(Component);/* harmony default export */ __webpack_exports__["default"] = (CustomEventsWrapper);

/***/ }),

/***/ 225:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _extends(){return _extends=Object.assign||function(target){for(var source,i=1;i<arguments.length;i++)for(var key in source=arguments[i],source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},_extends.apply(this,arguments)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,Component=_W$lib.Component,VisuallyHiddenElem=/*#__PURE__*/function(_Component){function VisuallyHiddenElem(){return _classCallCheck(this,VisuallyHiddenElem),_super.apply(this,arguments)}_inherits(VisuallyHiddenElem,_Component);var _super=_createSuper(VisuallyHiddenElem);return _createClass(VisuallyHiddenElem,[{key:"render",value:function render(){var TagName=this.props.tagName||"div";return h(TagName,_extends({},this.props,{ref:this.props.elemRef,style:this.visuallyHiddenStyles()}),this.props.children)}},{key:"visuallyHiddenStyles",value:function visuallyHiddenStyles(){return{clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}}}]),VisuallyHiddenElem}(Component);/* harmony default export */ __webpack_exports__["default"] = (VisuallyHiddenElem);

/***/ }),

/***/ 5:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "standardSvgAttrs": function() { return /* binding */ standardSvgAttrs; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var source,i=1;i<arguments.length;i++)source=null==arguments[i]?{}:arguments[i],i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))});return target}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var standardSvgAttrs=function standardSvgAttrs(width,height){var styleOverride=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{};return{x:"0px",y:"0px",viewBox:"0 0 ".concat(width," ").concat(height),"enable-background":"new 0 0 ".concat(width," ").concat(height),style:_objectSpread({fill:"#ffffff",height:"100%",left:0,strokeWidth:0,top:0,width:"100%"},styleOverride),// specifically for IE11, we add the focusable attribute to svgs
// to prevent them from being focusable since tabindex on svgs is
// not supported in IE
focusable:"false"}};wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.define("vulcanV2Player/shared/ui_components/svg_boilerplate.js",{standardSvgAttrs:standardSvgAttrs});

/***/ }),

/***/ 223:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var _shared_ui_components_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _extends(){return _extends=Object.assign||function(target){for(var source,i=1;i<arguments.length;i++)for(var key in source=arguments[i],source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},_extends.apply(this,arguments)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,Component=_W$lib.Component;var CaptionsButton=/*#__PURE__*/function(_Component){function CaptionsButton(){return _classCallCheck(this,CaptionsButton),_super.apply(this,arguments)}_inherits(CaptionsButton,_Component);var _super=_createSuper(CaptionsButton);return _createClass(CaptionsButton,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){return!1}},{key:"render",value:function render(){var sharedPathAttrs={fill:"none",stroke:"#ffffff","stroke-linecap":"round","stroke-miterlimit":10};return h("svg",(0,_shared_ui_components_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_1__.standardSvgAttrs)(40,34),h("g",null,h("path",_extends({},sharedPathAttrs,{"stroke-width":"1.8",d:"M18.4,18.7c-0.5,0.7-1.1,1.2-2.1,1.2c-1.3,0-2.4-1.1-2.4-2.8c0-1.6,1-2.8,2.4-2.8c1,0,1.6,0.5,2,1.2"}))),h("g",null,h("path",_extends({},sharedPathAttrs,{"stroke-width":"1.8",d:"M25.8,18.7c-0.5,0.7-1.1,1.2-2.1,1.2c-1.3,0-2.4-1.1-2.4-2.8c0-1.6,1-2.8,2.4-2.8c1,0,1.6,0.5,2,1.2"}))),h("g",null,h("path",_extends({},sharedPathAttrs,{"stroke-width":"2",d:"M31,21.9c0,1.6-1.4,3-3,3H12c-1.6,0-3-1.4-3-3V12c0-1.6,1.4-3,3-3h16c1.6,0,3,1.4,3,3V21.9z"}))))}}]),CaptionsButton}(Component);/* harmony default export */ __webpack_exports__["default"] = (CaptionsButton);

/***/ }),

/***/ 222:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var _shared_controls_Control_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(140);
/* harmony import */ var _CaptionsButton_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(223);
/* harmony import */ var _CaptionsMenu_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(224);
/* harmony import */ var player_lib_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60);
/* harmony import */ var _captionsHelper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(221);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _extends(){return _extends=Object.assign||function(target){for(var source,i=1;i<arguments.length;i++)for(var key in source=arguments[i],source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},_extends.apply(this,arguments)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,Promise=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("promiscuous"),_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/detect"),cachedDetect=_W$lib2.cachedDetect,detect=cachedDetect(),_W$lib3=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/translations"),getTranslation=_W$lib3.getTranslation,defineTranslations=_W$lib3.defineTranslations;defineTranslations("en-US",{CAPTIONS_HIDE_MENU:"Hide captions menu",CAPTIONS_OFF:"Off",CAPTIONS_SHOW_MENU:"Show captions menu"});var OFF="_off_",CaptionsButtonControl=/*#__PURE__*/function(_Control){function CaptionsButtonControl(video){var _this;return _classCallCheck(this,CaptionsButtonControl),_this=_super.call(this,video),_defineProperty(_assertThisInitialized(_this),"toggleTranscript",function(){_this.video.whenControlMounted("transcript").then(function(control){control._isVisible?control.close():control.open()})}),_this.video=video,_this.options=video.plugin.captions.options,_this.selectedLanguage=OFF,_this.unbinds=[],_this}_inherits(CaptionsButtonControl,_Control);var _super=_createSuper(CaptionsButtonControl);return _createClass(CaptionsButtonControl,[{key:"destroy",value:function destroy(){(0,player_lib_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_4__.destroyControl)(this)}},{key:"mountButton",value:function mountButton(buttonRoot){var _this2=this;this.buttonRoot=buttonRoot,this.renderButton(),this.options.onByDefault&&this.fetchCaptions().then(function(){if(!_this2._destroyed){var preferredCaptions=_this2.getPreferredCaptions();preferredCaptions&&_this2.setSelectedLanguage(preferredCaptions.language)}})}},{key:"mountDialog",value:function mountDialog(dialogRoot){var _this3=this;this.dialogRoot=dialogRoot;var codeLoaded=Promise.all([wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.asyncRequire("interFontFace.js"),this.fetchCaptions()]).then(function(){_this3.renderDialog()});return this.loading(new Promise(function(resolve){codeLoaded.then(resolve)})),codeLoaded}},{key:"renderButton",value:function renderButton(){this.video._inNativeMode()||!this.buttonRoot||(this.updateButtonLabel(),render(h(_CaptionsButton_jsx__WEBPACK_IMPORTED_MODULE_2__.default,null),this.buttonRoot),this.reactMounts.button=[this.buttonRoot])}},{key:"controlDialogOpened",value:function controlDialogOpened(){this.updateButtonLabel()}},{key:"controlDialogClosed",value:function controlDialogClosed(){this.updateButtonLabel()}},{key:"updateButtonLabel",value:function updateButtonLabel(){this.dialog&&(this.dialog.isOpen()?this.setButtonLabel(this.translate("HIDE_MENU")):this.setButtonLabel(this.translate("SHOW_MENU")))}},{key:"renderDialog",value:function renderDialog(){this.captionsResp&&this.dialogRoot&&(render(h(_CaptionsMenu_jsx__WEBPACK_IMPORTED_MODULE_3__.default,_extends({},this.props,{items:this.menuItems(),scale:this.props.scale,isPlaybarEnabled:this.video.isControlEnabled("playbar"),isTranscriptEnabled:this.isTranscriptEnabled(),toggleTranscript:this.toggleTranscript})),this.dialogRoot),this.reactMounts.menu=[this.dialogRoot])}},{key:"onControlPropsUpdated",value:function onControlPropsUpdated(prevProps){this.dialog&&this.dialog.isOpen()&&this.renderDialog(),prevProps.playerLanguage&&this.props.playerLanguage.code!==prevProps.playerLanguage.code&&this.updateButtonLabel()}},{key:"translate",value:function translate(key){return getTranslation(this.props.playerLanguage.code,"CAPTIONS_".concat(key))}},{key:"isTranscriptEnabled",value:function isTranscriptEnabled(){// dont enable transcript for mobile
return!1!==this.options.transcript}},{key:"menuItems",value:function menuItems(){var _this4=this;return[{text:this.translate("OFF"),isSelected:this.selectedLanguage===OFF,onClick:function onClick(){_this4.isTranscriptEnabled()&&_this4.video.whenControlMounted("transcript").then(function(control){return control.close()}),_this4.turnOff()}}].concat(this.captionsResp.captions.map(function(entry){return{text:entry.native_name,isSelected:_this4.selectedLanguage===entry.language,onClick:function onClick(){_this4.setSelectedLanguage(entry.language)}}}))}},{key:"getCaptions",value:function getCaptions(){return this.captionsResp&&this.captionsResp.captions?this.captionsResp.captions:[]}},{key:"getPreferredCaptions",value:function getPreferredCaptions(){for(var preferredLanguages=this.captionsResp.preferred_languages,i=0;i<preferredLanguages.length;i++){var preferredLanguage=preferredLanguages[i],captions=(0,_captionsHelper_js__WEBPACK_IMPORTED_MODULE_5__.getCaptionsForLanguage)(preferredLanguage,this.captionsResp.captions);if(captions)return captions}return null}},{key:"turnOff",value:function turnOff(){this.setSelectedLanguage(OFF)}},{key:"setSelectedLanguage",value:function setSelectedLanguage(lang){var prevLang=this.selectedLanguage;this.selectedLanguage=lang,this.renderDialog(),this.video.controls.captions.setLanguage(lang),this.logSelectionInStats(),prevLang!==lang&&this.video.trigger("captionschange",{visible:lang!==OFF,language:lang})}},{key:"logSelectionInStats",value:function logSelectionInStats(){// if we don't have a captionsResponse, we don't have any captions to report on.
// this can happen if someone tries to turn off legacy captions when they're not on
if(this.captionsResp){var caption=(0,_captionsHelper_js__WEBPACK_IMPORTED_MODULE_5__.getCaptionsForLanguage)(this.selectedLanguage,this.captionsResp.captions);caption&&"_preview_"!==caption.language?(this._lastStatsData={caption_key:caption.key,language:caption.language,time:this.video.time(),enabled:caption.language!==OFF},this.video._tracker.logCaptionSelection(this._lastStatsData)):this._lastStatsData&&(this._lastStatsData.enabled=!1,this._lastStatsData.time=this.video.time(),this.video._tracker.logCaptionSelection(this._lastStatsData))}}},{key:"fetchCaptions",value:function fetchCaptions(){var _this5=this;return this._destroyed?new Promise(function(){}):(0,_captionsHelper_js__WEBPACK_IMPORTED_MODULE_5__.fetchCaptions)(this.video,this.options).then(function(resp){return _this5.captionsResp=resp,resp})}},{key:"matchMenuToSelectedTextTrack",value:function matchMenuToSelectedTextTrack(){if(!detect.edge||this.video._inNativeMode()){var elem=this.video.getMediaElement(),previousSelection=this.selectedLanguage;this.selectedLanguage=OFF;for(var track,i=0;i<elem.textTracks.length;i++)track=elem.textTracks[i],"showing"===track.mode&&(this.selectedLanguage=track.language);this.renderDialog(),this.video.controls.captions.setLanguage(this.selectedLanguage,{track:!1}),previousSelection!==this.selectedLanguage&&this.logSelectionInStats()}}}]),CaptionsButtonControl}(_shared_controls_Control_js__WEBPACK_IMPORTED_MODULE_1__.default);CaptionsButtonControl.handle="captionsButton",CaptionsButtonControl.type="control-bar-right",CaptionsButtonControl.sortValue=50,CaptionsButtonControl.shouldMount=function(video){return video.plugin.captions},wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.defineControl(CaptionsButtonControl);

/***/ }),

/***/ 224:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _shared_ui_components_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
/* harmony import */ var _shared_ui_components_CustomEventsWrapper_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55);
/* harmony import */ var _shared_ui_components_VisuallyHiddenElem_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(225);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _extends(){return _extends=Object.assign||function(target){for(var source,i=1;i<arguments.length;i++)for(var key in source=arguments[i],source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},_extends.apply(this,arguments)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_1__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,Component=_W$lib.Component,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_1__.default.lib("player/translations"),getTranslation=_W$lib2.getTranslation,defineTranslations=_W$lib2.defineTranslations,_W$lib3=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_1__.default.lib("player/lib/interFontFamily"),interFontFamily=_W$lib3.interFontFamily,_W$lib4=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_1__.default.lib("utilities/isMouseDown"),isMouseDown=_W$lib4.isMouseDown,_W$lib5=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_1__.default.lib("utilities/seqid"),seqId=_W$lib5.seqId;defineTranslations("en-US",{CAPTIONS_READ_TRANSCRIPT:"Search Video"});var CaptionsMenu=/*#__PURE__*/function(_Component){function CaptionsMenu(){return _classCallCheck(this,CaptionsMenu),_super.apply(this,arguments)}_inherits(CaptionsMenu,_Component);var _super=_createSuper(CaptionsMenu);return _createClass(CaptionsMenu,[{key:"render",value:function render(){var _this=this,_this$props=this.props,isTranscriptEnabled=_this$props.isTranscriptEnabled,isPlaybarEnabled=_this$props.isPlaybarEnabled;return h("div",{class:"w-captions-menu w-css-reset w-css-reset-tree"},isTranscriptEnabled&&isPlaybarEnabled&&h(TranscriptItem,this.props),h("fieldset",{style:{border:0,padding:0,margin:0}},h(_shared_ui_components_VisuallyHiddenElem_jsx__WEBPACK_IMPORTED_MODULE_3__.default,{tagName:"legend"},"Captions Menu"),this.props.items.map(function(item,index){return h(CaptionsItem,_extends({},_this.props,{item:item,index:index}))})))}}]),CaptionsMenu}(Component),TranscriptItem=/*#__PURE__*/function(_Component2){function TranscriptItem(){var _this2;_classCallCheck(this,TranscriptItem);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this2=_super2.call.apply(_super2,[this].concat(args)),_defineProperty(_assertThisInitialized(_this2),"onFocus",function(){isMouseDown()||_this2.setState({isKeyboardFocused:!0})}),_defineProperty(_assertThisInitialized(_this2),"onBlur",function(){_this2.state.isKeyboardFocused&&_this2.setState({isKeyboardFocused:!1})}),_defineProperty(_assertThisInitialized(_this2),"onMouseEnter",function(){_this2.setState({isHovering:!0})}),_defineProperty(_assertThisInitialized(_this2),"onMouseLeave",function(){_this2.setState({isHovering:!1})}),_this2}_inherits(TranscriptItem,_Component2);var _super2=_createSuper(TranscriptItem);return _createClass(TranscriptItem,[{key:"render",value:function render(){return h(_shared_ui_components_CustomEventsWrapper_jsx__WEBPACK_IMPORTED_MODULE_2__.default,{class:"w-css-reset-button-important w-vulcan-v2-button",tagName:"button",onClick:this.props.toggleTranscript,onfocusin:this.onFocus,onfocusout:this.onBlur,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,style:this.menuItemStyle()},h("svg",_extends({},(0,_shared_ui_components_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_0__.standardSvgAttrs)(40,34),{class:"w-checkmark",style:this.transcriptStyle()}),h("g",{fill:"none",stroke:"#ffffff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10"},h("line",{x1:"17",x2:"27",y1:"12",y2:"12"}),h("line",{x1:"17",x2:"30",y1:"17",y2:"17"}),h("line",{x1:"17",x2:"25",y1:"22",y2:"22"}))),this.translate("READ_TRANSCRIPT"))}},{key:"transcriptStyle",value:function transcriptStyle(){return{height:lineHeightPx(this),verticalAlign:"middle",visibility:"visible",width:checkWidthPx(this)}}},{key:"menuItemStyle",value:function menuItemStyle(){return{background:this.state.isHovering?"rgba(0,0,0,.3)":"",boxShadow:this.state.isKeyboardFocused?"0 0 0 2px #fff inset":"none",cursor:"pointer",display:"block",fontFamily:interFontFamily,fontSize:fontSize(this),lineHeight:lineHeightPx(this),marginRight:"".concat(10*this.props.scale,"px"),textAlign:"left",width:"100%"}}},{key:"translate",value:function translate(key){return getTranslation(this.props.playerLanguage.code,"CAPTIONS_".concat(key))}}]),TranscriptItem}(Component),CaptionsItem=/*#__PURE__*/function(_Component3){function CaptionsItem(){var _this3;_classCallCheck(this,CaptionsItem);for(var _len2=arguments.length,args=Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return _this3=_super3.call.apply(_super3,[this].concat(args)),_defineProperty(_assertThisInitialized(_this3),"onBlur",function(){_this3.state.isKeyboardFocused&&_this3.setState({isKeyboardFocused:!1})}),_defineProperty(_assertThisInitialized(_this3),"onClick",function(){_this3.props.item.onClick()}),_defineProperty(_assertThisInitialized(_this3),"onFocus",function(){isMouseDown()||_this3.setState({isKeyboardFocused:!0})}),_defineProperty(_assertThisInitialized(_this3),"onMouseEnter",function(){_this3.setState({isHovering:!0})}),_defineProperty(_assertThisInitialized(_this3),"onMouseLeave",function(){_this3.setState({isHovering:!1})}),_this3}_inherits(CaptionsItem,_Component3);var _super3=_createSuper(CaptionsItem);return _createClass(CaptionsItem,[{key:"render",value:function render(){var item=this.props.item,itemId=seqId("w-captions-".concat(item.text,"-"));return h("div",{style:this.menuItemStyle(),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},h(_shared_ui_components_VisuallyHiddenElem_jsx__WEBPACK_IMPORTED_MODULE_3__.default,{checked:!!item.isSelected,id:itemId,name:"Captions Menu",onFocus:this.onFocus,onClick:this.onClick,onBlur:this.onBlur,tagName:"input",type:"radio",value:item.text}),h("label",{class:"w-css-reset",for:itemId},h("svg",_extends({},(0,_shared_ui_components_svg_boilerplate_js__WEBPACK_IMPORTED_MODULE_0__.standardSvgAttrs)(40,34),{class:"w-checkmark",style:this.checkStyle()}),h("polyline",{fill:"none",stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10",points:"17,17 20,20 25,14 "})),item.text))}},{key:"checkStyle",value:function checkStyle(){return{height:lineHeightPx(this),verticalAlign:"middle",visibility:this.props.item.isSelected?"visible":"hidden",width:checkWidthPx(this)}}},{key:"menuItemStyle",value:function menuItemStyle(){return{background:this.state.isHovering?"rgba(0,0,0,.3)":"",boxShadow:this.state.isKeyboardFocused?"0 0 0 2px #fff inset":"none",display:"block",fontFamily:interFontFamily,fontSize:fontSize(this),lineHeight:lineHeightPx(this),marginRight:"".concat(10*this.props.scale,"px"),textAlign:"left",width:"100%"}}}]),CaptionsItem}(Component),checkWidth=function checkWidth(component){return 40*component.props.scale},checkWidthPx=function checkWidthPx(component){return"".concat(checkWidth(component),"px")},lineHeight=function lineHeight(component){return 34*component.props.scale},lineHeightPx=function lineHeightPx(component){return"".concat(lineHeight(component),"px")},fontSize=function fontSize(component){return 14*component.props.scale};/* harmony default export */ __webpack_exports__["default"] = (CaptionsMenu);

/***/ }),

/***/ 227:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var source,i=1;i<arguments.length;i++)source=null==arguments[i]?{}:arguments[i],i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))});return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,Component=_W$lib.Component,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/translations"),getTranslation=_W$lib2.getTranslation,Captions=/*#__PURE__*/function(_Component){function Captions(props){var _this;return _classCallCheck(this,Captions),_this=_super.call(this,props),_defineProperty(_assertThisInitialized(_this),"onMouseEnter",function(){_this.setState({isHovering:!0})}),_defineProperty(_assertThisInitialized(_this),"onMouseLeave",function(){_this.setState({isHovering:!1})}),_defineProperty(_assertThisInitialized(_this),"onFocus",function(){_this.setState({isKeyboardFocused:!0})}),_defineProperty(_assertThisInitialized(_this),"onBlur",function(){_this.setState({isKeyboardFocused:!1})}),_defineProperty(_assertThisInitialized(_this),"onMouseDown",function(e){e.preventDefault()}),_this.state={isHovering:!1,isKeyboardFocused:!1},_this}_inherits(Captions,_Component);var _super=_createSuper(Captions);return _createClass(Captions,[{key:"render",value:function render(){var textLines,_this2=this,DivOrButton=this.props.isTranscriptEnabled&&this.props.isPlaybarEnabled?"button":"div";return this.state.isKeyboardFocused?textLines=this.renderAccessibleHelper():this.props.text&&(textLines=this.props.text.map(function(line,index){return _this2.renderLine(line,index)})),h("div",{class:"w-captions w-css-reset w-css-reset-tree w-vulcan-v2-button",style:this.rootContainerStyle()},h(DivOrButton,{class:"w-vulcan-v2-button",style:this.groupStyle(),onMouseEnter:this.onMouseEnter,onBlur:this.onBlur,onClick:this.props.onClick,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onFocus:this.onFocus,tabIndex:0},textLines))}},{key:"renderAccessibleHelper",value:function renderAccessibleHelper(){return h("p",{class:"w-captions-line",style:this.lineStyle()},h("div",{style:{display:"inline-block",transition:"all 200ms ease"}},h("span",{style:this.spanStyle()},this.translate("READ_TRANSCRIPT"))))}},{key:"renderLine",value:function renderLine(line,index){var opts={isFirst:0===index,isLast:index===this.props.text.length-1},dir=this.props.rtl?"rtl":"ltr";// the empty divs here are for smooth hover animations
return h("p",{class:"w-captions-line",style:this.lineStyle()},h("div",{style:{display:"inline-block",transition:"all 200ms ease",verticalAlign:"bottom"},class:"w-css-reset"},opts.isFirst&&!this.props.isInFullscreen&&h("div",{style:{position:"relative",padding:"3px"}},h("div",{style:this.discoveryStyles()},h("svg",{class:"arrow-icon",viewBox:"0 0 100 100",height:"".concat(10*this.props.scale,"px"),width:"".concat(10*this.props.scale,"px")},h("g",{stroke:"#ccc",fill:"none","stroke-linecap":"round"},h("polyline",{"stroke-width":"15",points:"25,15 85,15 85,75"}),h("line",{"stroke-width":"15",x1:"25",x2:"85",y1:"75",y2:"15"}))))),opts.isFirst&&!this.props.isInFullscreen&&h("div",{style:{position:"relative"}},h("div",{style:this.topAnimateStyle()})),h("span",{dir:dir,style:this.spanStyle(opts),dangerouslySetInnerHTML:{__html:line}}),opts.isLast&&!this.props.isInFullscreen&&h("div",{style:{position:"relative"}},h("div",{style:this.bottomAnimateStyle()}))))}},{key:"canOpenICAndIsHoveringPlayer",value:function canOpenICAndIsHoveringPlayer(){var _this$props=this.props,isTranscriptEnabled=_this$props.isTranscriptEnabled,isPlaybarEnabled=_this$props.isPlaybarEnabled,isHoveringOnPlayer=_this$props.isHoveringOnPlayer,isInFullscreen=_this$props.isInFullscreen;return isTranscriptEnabled&&isPlaybarEnabled&&isHoveringOnPlayer&&!isInFullscreen}},{key:"discoveryStyles",value:function discoveryStyles(){var canOpenIC=this.canOpenICAndIsHoveringPlayer();return{position:"absolute",padding:"3px",fontSize:"15px",right:"1%",top:"100%",opacity:canOpenIC?"1":"0",transition:"opacity 200ms ease",transitionDelay:canOpenIC?"150ms":"0ms"}}},{key:"animateHelper",value:function animateHelper(){var canOpenIC=this.canOpenICAndIsHoveringPlayer(),isHoverSrt=this.state.isHovering;return{position:"absolute",height:canOpenIC?"3px":"0",width:"100%",transition:"all 200ms ease",transitionProperty:"height",transitionDelay:canOpenIC?"150ms":"none",background:isHoverSrt?"rgba(0,0,0,1)":"rgba(0,0,0,.55)"}}},{key:"topAnimateStyle",value:function topAnimateStyle(){return _objectSpread(_objectSpread({},this.animateHelper()),{},{bottom:0})}},{key:"bottomAnimateStyle",value:function bottomAnimateStyle(){return _objectSpread({},this.animateHelper())}},{key:"rootContainerStyle",value:function rootContainerStyle(){var props=this.props,gapSize=18*props.scale,bottomOffset=props.controlsAreVisible?0:-props.controlBarHeight;return{bottom:"".concat(bottomOffset+gapSize,"px"),left:0,pointerEvents:"none",position:"absolute",textAlign:"center",width:"100%",transition:"all 100ms ease"}}},{key:"groupStyle",value:function groupStyle(){var isTranscriptEnabled=this.props.isTranscriptEnabled;return{pointerEvents:isTranscriptEnabled?"auto":"none",display:"inline-block",position:"relative",margin:"auto",maxWidth:"80%",outline:"none",border:this.state.isKeyboardFocused?"2px #fff solid":"none",cursor:"pointer"}}},{key:"lineStyle",value:function lineStyle(){return{lineHeight:"1em",margin:0,padding:0}}},{key:"spanStyle",value:function spanStyle(){var scale=this.props.scale,canOpenIC=this.canOpenICAndIsHoveringPlayer(),isHoverSrt=this.state.isHovering;return{background:isHoverSrt?"rgba(0,0,0, 1)":"rgba(0,0,0,.55)",color:"#fff",display:"block",fontFamily:"Helvetica, Arial, Sans-Serif",fontSize:"".concat(18*scale,"px"),lineHeight:"1em",overflow:"hidden",padding:canOpenIC?".25em 1em":".25em .6em",textOverflow:"ellipsis",webkitFontSmoothing:"antialiased",transition:"all 100ms ease",transitionDelay:canOpenIC?"150ms":"none",transitionProperty:"padding",width:"100%"}}},{key:"translate",value:function translate(key){return getTranslation(this.props.playerLanguage,"CAPTIONS_".concat(key))}}]),Captions}(Component);/* harmony default export */ __webpack_exports__["default"] = (Captions);

/***/ }),

/***/ 226:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var _shared_controls_Control_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(140);
/* harmony import */ var _Captions_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(227);
/* harmony import */ var player_lib_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60);
/* harmony import */ var _captionsHelper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(221);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _extends(){return _extends=Object.assign||function(target){for(var source,i=1;i<arguments.length;i++)for(var key in source=arguments[i],source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},_extends.apply(this,arguments)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/fit-control"),controlMultiplierBasedOnVideo=_W$lib.controlMultiplierBasedOnVideo,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/hosts"),cdnFastWistiaNetHost=_W$lib2.cdnFastWistiaNetHost,_W$lib3=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/url"),urlProto=_W$lib3.proto,_W$lib4=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/seqid"),seqId=_W$lib4.seqId,_W$lib5=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib5.h,render=_W$lib5.render,Promise=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("promiscuous"),_W$lib6=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/elem"),elemBind=_W$lib6.elemBind,elemRemove=_W$lib6.elemRemove,addInlineCss=_W$lib6.addInlineCss,_W$lib7=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/detect"),cachedDetect=_W$lib7.cachedDetect,detect=cachedDetect();var OFF="_off_",CaptionsControl=/*#__PURE__*/function(_Control){function CaptionsControl(video){var _this;return _classCallCheck(this,CaptionsControl),_this=_super.call(this,video),_defineProperty(_assertThisInitialized(_this),"onClick",function(){_this.video.whenControlMounted("transcript").then(function(control){return control.open()})}),_defineProperty(_assertThisInitialized(_this),"setActiveLineForTime",function(t){if(_this.captions&&_this.captions.language!==OFF)for(var line,lines=_this.captions.hash.lines,i=0;i<lines.length;i++)if(line=lines[i],line.start<=t&&t<line.end)return _this.setActiveLine(line.text,_this.captions.right_to_left),void _this.renderCaptions();_this.setNoActiveLine(),_this.renderCaptions()}),_this.options=video.plugin.captions.options,_this._wistiaCaptionsId=seqId("wistia_","_captions"),_this._userScale=_this.options.subtitlesScale||1,_this.unbinds=[video.on("timechange",_this.setActiveLineForTime),video.on("enterfullscreen",function(){_this.hideOrShowNativeCaptions()}),video.on("cancelfullscreen",function(){_this.hideOrShowNativeCaptions()}),video.on("beforereplace",function(){_this.removeTextTracks()})],_this}_inherits(CaptionsControl,_Control);var _super=_createSuper(CaptionsControl);return _createClass(CaptionsControl,[{key:"destroy",value:function destroy(){elemRemove(this.clippedCueStyle),this.clippedCueStyle=null,this.removeTextTracks(),(0,player_lib_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_3__.destroyControl)(this)}},{key:"mount",value:function mount(rootElem){var _this2=this;this.rootElem=rootElem,this.fetchCaptions().then(function(){_this2._destroyed||(_this2.setupTextTracks(),_this2.setActiveLineForTime(_this2.video.time()),_this2.renderCaptions())})}},{key:"fetchCaptions",value:function fetchCaptions(){var _this3=this;return this._destroyed?new Promise(function(){}):(0,_captionsHelper_js__WEBPACK_IMPORTED_MODULE_4__.fetchCaptions)(this.video,this.options).then(function(resp){return _this3.captionsResp=resp,resp})}},{key:"setupTextTracks",value:function setupTextTracks(){var _this4=this;if(this._setupTextTracksPromise)return this._setupTextTracksPromise;if((detect.edge||detect.trident)&&!this.video._inNativeMode())// Some versions/hardware/drivers on OSX with Safari have issues with the
// presence of <track> elements--the video will throw a MEDIA_DECODE_ERR
// if they're there for unknown reasons. It's a bummer to disable this
// because it hurts accessibility, but the video sure as heck isn't going
// to be accessible if it can't play back, and they'll still hopefully be
// able to view captions via our custom implementation--though we may
// need to add extra markup to make that visible to screen readers.
//
// For Edge, Microsoft is not supporting the ability to target the
// ::cue pseudo-element we use to hide tracks.
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12079271/
// se we're not going to add the tracks at all
return this._setupTextTracksPromise=new Promise(function(){});var video=this.video;return this._setupTextTracksPromise=new Promise(function(resolve){_this4.fetchCaptions();var doSetup=function doSetup(){_this4.fetchCaptions().then(function(resp){_this4.removeTextTracks(),video.whenVideoElementInDom().then(function(elem){_this4._destroyed||(resp.captions.map(function(entry){if("_preview_"!==entry.language){var track=document.createElement("track");track.kind=entry.kind||"captions",track.label=entry.native_name,track.srclang=entry.language,track.src="".concat(urlProto(),"//").concat(cdnFastWistiaNetHost(),"/embed/captions/").concat(video.hashedId(),".vtt?language=").concat(entry.language),track._wistiaCaptionsId=_this4._wistiaCaptionsId,elem.appendChild(track)}}),_this4.hideOrShowNativeCaptions(),_this4.unbinds.push(elemBind(elem.textTracks,"change",function(){(0,_captionsHelper_js__WEBPACK_IMPORTED_MODULE_4__.shouldShowNativeCaptions)(video)&&video.controls.captionsButton&&video.controls.captionsButton.matchMenuToSelectedTextTrack()})),resolve())})})};"beforeplay"===video.state()&&(detect.safari||detect.ios.version)?video.bind("play",function(){return doSetup(),video.unbind}):doSetup()})}// This method removes the text tracks that it, itself, has added. It's
// important that it targets only the ones it has added because, in a
// playlist setting, it is possible for two impls to target the same
// <video> element, and while it's transitioning, tracks for both impls
// would be present. When the old impl is destroyed, then, it'll remove the
// text tracks that it is responsible for, and all will be right with the
// world.
},{key:"removeTextTracks",value:function removeTextTracks(){var video=this.video,wistiaCaptionsId=this._wistiaCaptionsId;video.whenVideoElementInDom().then(function(elem){for(var child,videoChildren=Array.prototype.slice.call(elem.childNodes),i=0;i<videoChildren.length;i++)child=videoChildren[i],/^track$/i.test(child.tagName)&&child._wistiaCaptionsId===wistiaCaptionsId&&elemRemove(child)})}},{key:"renderCaptions",value:function renderCaptions(){this.video._inNativeMode()||(this.activeLine&&!this._captionsHidden?render(h(_Captions_jsx__WEBPACK_IMPORTED_MODULE_2__.default,_extends({},this.props,this.activeLine,{scale:this.scale(),onClick:this.onClick,isInFullscreen:this.video.inFullscreen(),isPlaybarEnabled:this.video.isControlEnabled("playbar"),isTranscriptEnabled:this.isTranscriptEnabled()})),this.rootElem):render(h("nothing",null),this.rootElem),this.reactMounts.captions=[this.rootElem])}},{key:"isTranscriptEnabled",value:function isTranscriptEnabled(){return!1!==this.options.transcript}},{key:"onControlPropsUpdated",value:function onControlPropsUpdated(prevProps){(prevProps.videoWidth!==this.props.videoWidth||prevProps.controlsAreVisible!==this.props.controlsAreVisible||prevProps.controlBarHeight!==this.props.controlBarHeight)&&this.renderCaptions()}},{key:"setActiveLine",value:function setActiveLine(text){var rtl=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1];this.activeLine={text:text,rtl:rtl}}},{key:"setNoActiveLine",value:function setNoActiveLine(){this.activeLine=null}},{key:"setLanguage",value:function setLanguage(lang){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},captions=(0,_captionsHelper_js__WEBPACK_IMPORTED_MODULE_4__.getCaptionsForLanguage)(lang,this.captionsResp.captions);// make sure we have a captions resp on hand before trying to pass captions
this.captions=captions,this.setActiveLineForTime(this.video.time()),this.renderCaptions(),!1!==options.track&&this.showCorrespondingTrack(captions)}// passing null arg disables all tracks
},{key:"showCorrespondingTrack",value:function showCorrespondingTrack(captions){var _this5=this;(detect.edge||detect.trident)&&!this.video._inNativeMode()||this.setupTextTracks().then(function(){for(var track,video=_this5.video,elem=video.getMediaElement(),i=0;i<elem.textTracks.length;i++)track=elem.textTracks[i],"captions"===track.kind&&(captions&&track.language===captions.language?track.mode="showing":track.mode="disabled")})}},{key:"hideOrShowNativeCaptions",value:function hideOrShowNativeCaptions(){(0,_captionsHelper_js__WEBPACK_IMPORTED_MODULE_4__.shouldShowNativeCaptions)(this.video)?this.allowShowingNativeCaptions():this.disallowShowingNativeCaptions()}},{key:"allowShowingNativeCaptions",value:function allowShowingNativeCaptions(){this.clippedCueStyle&&(elemRemove(this.clippedCueStyle),this.clippedCueStyle=null),this.hideCustomCaptions()}},{key:"disallowShowingNativeCaptions",value:function disallowShowingNativeCaptions(){return this.clippedCueStyle?this.clippedCueStyle:void(this.clippedCueStyle=addInlineCss(document.head,"\n      #".concat(this.video.chrome.id," ::cue {\n        visibility: hidden;\n      }\n      #").concat(this.video.chrome.id," ::-webkit-media-text-track-container {\n        visibility: hidden;\n      }\n      #").concat(this.video.chrome.id," ::-webkit-media-text-track-background {\n        visibility: hidden;\n      }\n      #").concat(this.video.chrome.id," ::-webkit-media-text-track-display {\n        visibility: hidden;\n      }\n    ")),this.showCustomCaptions())}},{key:"hideCustomCaptions",value:function hideCustomCaptions(){this._captionsHidden=!0,this.renderCaptions()}},{key:"showCustomCaptions",value:function showCustomCaptions(){this._captionsHidden=!1,this.renderCaptions()}},{key:"setUserScale",value:function setUserScale(s){this._userScale=s,this.renderCaptions()}},{key:"getUserScale",value:function getUserScale(){return this._userScale}},{key:"scale",value:function scale(){return this._userScale*Math.min(2,Math.max(.6,controlMultiplierBasedOnVideo(this.video,[640,850])))}}]),CaptionsControl}(_shared_controls_Control_js__WEBPACK_IMPORTED_MODULE_1__.default);CaptionsControl.handle="captions",CaptionsControl.type="above-control-bar",CaptionsControl.shouldMount=function(video){return video.plugin.captions},wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.defineControl(CaptionsControl);

/***/ }),

/***/ 229:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var _TranscriptText_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(230);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,Component=_W$lib.Component,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/interFontFamily"),interFontFamily=_W$lib2.interFontFamily,_W$lib3=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/isMouseDown"),isMouseDown=_W$lib3.isMouseDown,DOWN_ARROW_KEY=40,ESC_KEY=27,ENTER_KEY=13,BASE_ELEM_SIZING=20,BASE_CONTROL_BAR_HEIGHT=34,Transcript=/*#__PURE__*/function(_Component){function Transcript(props){var _this;return _classCallCheck(this,Transcript),_this=_super.call(this,props),_defineProperty(_assertThisInitialized(_this),"setRefs",function(allRefs){_this.sectionRefs=allRefs}),_defineProperty(_assertThisInitialized(_this),"resetFirstHitIndex",function(){_this.setState({activeSearchHitIndex:void 0})}),_defineProperty(_assertThisInitialized(_this),"setCloseFocus",function(){isMouseDown()||_this.setState({closeFocus:!0})}),_defineProperty(_assertThisInitialized(_this),"setCloseBlur",function(){_this.setState({closeFocus:!1})}),_defineProperty(_assertThisInitialized(_this),"updateSearchValue",function(e){_this.setState({searchKey:e.target.value})}),_defineProperty(_assertThisInitialized(_this),"inputKeyDown",function(e){var _this$state=_this.state,hitCounter=_this$state.hitCounter,activeSearchHitIndex=_this$state.activeSearchHitIndex,hitAndMissIndices=_this$state.hitAndMissIndices,searchKey=_this$state.searchKey,searchFrom=e.which===DOWN_ARROW_KEY?0:activeSearchHitIndex+1,nextSearchHit=hitAndMissIndices.indexOf(!0,searchFrom),firstHit=hitAndMissIndices.indexOf(!0);firstHit=-1===firstHit?0:firstHit;var index,updatedHitCounter=hitCounter;// down arrow highlights _and_ focuses the first hit
// enter key just highlights the next item
switch(-1===nextSearchHit?(index=firstHit,updatedHitCounter=searchKey?1:0):(index=nextSearchHit,updatedHitCounter++),e.which){case DOWN_ARROW_KEY:_this.setState({activeSearchHitIndex:index,hitCounter:searchKey?1:0}),setTimeout(function(){requestAnimationFrame(function(){_this.sectionRefs[index].focus()})},20);break;case ENTER_KEY:_this.setState({activeSearchHitIndex:index,hitCounter:updatedHitCounter});break;default:return;}}),_defineProperty(_assertThisInitialized(_this),"inputOnFocus",function(){_this.setState({inputHasFocus:!0})}),_defineProperty(_assertThisInitialized(_this),"inputOnBlur",function(){_this.setState({inputHasFocus:!1})}),_defineProperty(_assertThisInitialized(_this),"focusInput",function(index){_this.inputElem.focus(),_this.setState({activeSearchHitIndex:index})}),_defineProperty(_assertThisInitialized(_this),"updateHitCounter",function(increment){var hitCounter=_this.state.hitCounter,updatedHitCounter=increment?hitCounter+1:hitCounter-1;_this.state.searchKey&&_this.setState({hitCounter:updatedHitCounter})}),_defineProperty(_assertThisInitialized(_this),"onMouseMove",function(){!1===_this.state.recentlyMoused&&_this.setState({recentlyMoused:!0}),_this.isMousingTimeout&&clearTimeout(_this.isMousingTimeout),_this.isMousingTimeout=setTimeout(function(){_this.setState({recentlyMoused:!1})},7e3)}),_defineProperty(_assertThisInitialized(_this),"onKeyUp",function(e){e.which!==ESC_KEY||e.escapeHandled||(e.escapeHandled=!0,_this.props.closeTranscript())}),_this.state={captions:_this.formatCaptions(),closeFocus:!1,hitAndMissIndices:[],hitCounter:0,inputHasFocus:!1,isContainerHover:null,recentlyMoused:!1,searchKey:"",totalHits:0,turnstile:{}},_this.isMousingTimeout=null,_this.searchTimeout=null,_this.setTurnstileOptions(),_this}_inherits(Transcript,_Component);var _super=_createSuper(Transcript);return _createClass(Transcript,[{key:"componentDidMount",value:function componentDidMount(){this.setState({hitAndMissIndices:this.initialHitAndMissIndices()}),this.props.metricsVideoCount("interactiveCaptions-open"),this.inputElem.focus()}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.props.metricsVideoCount("interactiveCaptions-close")}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,prevState){this.state.searchKey!==prevState.searchKey&&this.debounceSearch(),this.props.selectedLanguage!==prevProps.selectedLanguage&&(this.setState({captions:this.formatCaptions()}),this.setState({hitAndMissIndices:this.initialHitAndMissIndices()})),(this.props.turnstileClosed!==prevProps.turnstileClosed||this.props.turnstileEmail!==prevProps.turnstileEmail||void 0!==this.props.turnstilePlugin&&void 0===prevProps.turnstilePlugin)&&this.setTurnstileOptions()}},{key:"initialHitAndMissIndices",value:function initialHitAndMissIndices(){var captions=this.state.captions,length=captions.length,prefilledArr=Array.apply(null,Array(length)).map(function(){return!1});return prefilledArr}},{key:"setTurnstileOptions",value:function setTurnstileOptions(){var plugin=this.props.turnstilePlugin;plugin?this.setState({turnstile:{enabled:!0,time:plugin.options.time,hasClosed:this.props.turnstileClosed||!!this.props.turnstileEmail||!1}}):this.setState({turnstile:{enabled:!1,time:void 0,hasClosed:void 0}})}},{key:"debounceSearch",value:function debounceSearch(){var _this2=this;clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){_this2.doSearch()},350)}},{key:"doSearch",value:function doSearch(){var _this$state2=this.state,searchKey=_this$state2.searchKey,captions=_this$state2.captions,searchRegEx=new RegExp(searchKey,"ig"),activeSearchHitIndex=void 0,totalHits=0;// if we have no captions lines, get outta here
if(!captions||!searchKey)return void this.setState({hitAndMissIndices:this.initialHitAndMissIndices(),totalHits:totalHits,hitCounter:0,activeSearchHitIndex:activeSearchHitIndex});// make an array of bools whether each line contains a hit or not
var hits=captions.map(function(line,index){var isHitInLine=searchRegEx.test(line.text);return void 0===activeSearchHitIndex&&isHitInLine&&(activeSearchHitIndex=index),isHitInLine&&totalHits++,isHitInLine}),hitCounter=activeSearchHitIndex?1:0;this.setState({hitAndMissIndices:hits,activeSearchHitIndex:activeSearchHitIndex,hitCounter:hitCounter,totalHits:totalHits}),this.props.metricsVideoCount("interactiveCaptions-search")}},{key:"getCaptionsForLanguage",value:function getCaptionsForLanguage(){var _this$props=this.props,srtCaptions=_this$props.srtCaptions,selectedLanguage=_this$props.selectedLanguage,preferredLanguage=_this$props.preferredLanguage,language="_off_"===selectedLanguage?preferredLanguage:selectedLanguage;return srtCaptions.filter(function(caption){return caption.language===language})[0]}},{key:"formatCaptions",value:function formatCaptions(){var captions=this.getCaptionsForLanguage(),formattedLines=captions.hash.lines.map(function(section){return section.text.map(function(line){return{start:section.start,end:section.end,text:line}})});return[].concat.apply([],formattedLines)}},{key:"render",value:function render(){var _this3=this,scale=this.props.scale,_this$state3=this.state,captions=_this$state3.captions,hitCounter=_this$state3.hitCounter,totalHits=_this$state3.totalHits,dir=this.getCaptionsForLanguage().right_to_left?"rtl":"ltr";return h("div",{class:"w-css-reset w-css-reset-tree",onKeyUp:this.onKeyUp,onMouseMove:this.onMouseMove,style:this.rootStyles(),tabIndex:0},h("div",{dir:dir,style:this.searchAndCloseContainerStyles()},h("div",{style:{position:"absolute",width:"50%",left:0,right:0,top:"50%",transform:"translateY(-50%)",margin:"auto"}},h("svg",{width:"".concat(BASE_ELEM_SIZING*scale),height:"".concat(BASE_ELEM_SIZING*scale),viewBox:"0 0 100 100",style:this.searchIconStyles()},h("g",{stroke:this.state.inputHasFocus||this.state.searchKey?"#505050":"white",fill:"none","stroke-width":"10"},h("circle",{cx:"40",cy:"40",r:"30"}),h("line",{x1:"90",y1:"90",x2:"60",y2:"60"}))),h("style",{dangerouslySetInnerHTML:{__html:".w-interactive-captions--search-input::placeholder {\n                color: ".concat(this.state.inputHasFocus||this.state.searchKey?"#505050":"#FFF",";\n                opacity: 1;\n              }\n              ")}}),h("input",{"aria-label":"Search Captions",class:"w-interactive-captions--search-input",onBlur:this.inputOnBlur,onInput:this.updateSearchValue,onFocus:this.inputOnFocus,onKeyDown:this.inputKeyDown,onKeyUp:this.inputKeyUp,placeholder:"Search",style:this.searchInputStyles(),type:"search",value:this.state.searchKey,ref:function ref(el){return _this3.inputElem=el}}),this.state.searchKey&&h("div",{style:this.hitCountStyle()},hitCounter," / ",totalHits)),h("div",{style:{position:"absolute",right:"5%",top:"50%",transform:"translateY(-50%)",display:"inline-block"}},h("button",{style:this.closeButtonStyles(),class:"w-vulcan-v2-button w-css-reset",onClick:this.props.closeTranscript,onFocus:this.setCloseFocus,onBlur:this.setCloseBlur,tabIndex:0,"aria-label":"Close Interactive Captions"},h("svg",{viewBox:"0 0 100 100",width:"".concat(15*scale),height:"".concat(15*scale)},h("g",{stroke:"white","stroke-width":"10"},h("line",{x1:"0",y1:"100",x2:"100",y2:"0"}),h("line",{x1:"100",y1:"100",x2:"0",y2:"0"})))))),h(_TranscriptText_jsx__WEBPACK_IMPORTED_MODULE_1__.default,{activeSearchHitIndex:this.state.activeSearchHitIndex,allRefs:this.sectionRefs,captions:captions,closeTranscript:this.props.closeTranscript,controlsAreVisible:this.props.controlsAreVisible,controlBarHeight:this.calculateSearchHeight(),focusInput:this.focusInput,hitAndMissIndices:this.state.hitAndMissIndices,recentlyMoused:this.state.recentlyMoused,scale:this.props.scale,setRefs:this.setRefs,searchKey:this.state.searchKey,seekTranscript:this.props.seekTranscript,turnstile:this.state.turnstile,updateHitCounter:this.updateHitCounter,videoDuration:this.props.videoDuration,videoHeight:this.props.videoHeight,videoTime:this.props.videoTime,dir:dir}))}},{key:"rootStyles",value:function rootStyles(){return{backgroundColor:"rgba(0,0,0,.65)",clip:"rect(0,0,0,0)",color:"#fff",height:"calc(100% + ".concat(this.props.controlBarHeight,"px)")}}// if controls are not visible on load and someone opens IC,
// this might be 0... so we set to default in that case
},{key:"calculateSearchHeight",value:function calculateSearchHeight(){return this.props.controlBarHeight?this.props.controlBarHeight:BASE_CONTROL_BAR_HEIGHT*this.props.scale}},{key:"searchAndCloseContainerStyles",value:function searchAndCloseContainerStyles(){return{position:"relative",height:"".concat(2*this.calculateSearchHeight(),"px"),minHeight:"".concat(2*this.calculateSearchHeight(),"px")}}},{key:"searchIconStyles",value:function searchIconStyles(){var scale=this.props.scale,_this$state4=this.state,inputHasFocus=_this$state4.inputHasFocus,searchKey=_this$state4.searchKey,focusable=!!(inputHasFocus||searchKey),left=focusable?"".concat(36*scale,"px"):"".concat(36*scale,"px");return{position:"absolute",display:"inline-block",top:"50%",transform:"translateY(-50%)",left:left,transition:"all 300ms ease"}}},{key:"closeButtonStyles",value:function closeButtonStyles(){var scale=this.props.scale;return{boxShadow:this.state.closeFocus?"0 0 0 2px #fff inset":"none",borderWidth:"1px",borderRadius:"0%",cursor:"pointer",height:"".concat(30*scale,"px"),width:"".concat(30*scale,"px"),display:"flex",alignItems:"center",justifyContent:"center"}}},{key:"hitCountStyle",value:function hitCountStyle(){var scale=this.props.scale,style={position:"absolute",transform:"translateY(-50%)",color:"#888",top:"50%",fontSize:"".concat(10*scale,"px"),fontWeight:600,fontFamily:interFontFamily},isRtL=this.getCaptionsForLanguage().right_to_left;return isRtL?style.left="".concat(48*scale+45,"px"):style.right="".concat(48*scale,"px"),style}},{key:"searchInputStyles",value:function searchInputStyles(){var scale=this.props.scale,_this$state5=this.state,inputHasFocus=_this$state5.inputHasFocus,searchKey=_this$state5.searchKey,focusable=!!(inputHasFocus||searchKey),backgroundColor=focusable?"white":"transparent",border="1px solid white",width="calc(100% - ".concat(40*scale,"px)"),buffer=8*scale;return{"-webkit-appearance":"none",padding:"".concat(buffer,"px ").concat(buffer,"px ").concat(buffer,"px ").concat(45*scale,"px"),fontSize:"".concat(17*scale,"px"),display:"block",fontFamily:interFontFamily,transition:"all 300ms ease",color:focusable?"#505050":"white",backgroundColor:backgroundColor,border:"1px solid white",width:width,margin:"auto",outline:"none",boxSizing:"border-box"}}}]),Transcript}(Component);/* harmony default export */ __webpack_exports__["default"] = (Transcript);

/***/ }),

/***/ 228:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var _shared_controls_Control_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(140);
/* harmony import */ var _Transcript_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(229);
/* harmony import */ var _captionsHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(221);
/* harmony import */ var player_lib_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,Promise=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("promiscuous"),_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/elem"),elemAppend=_W$lib2.elemAppend,elemFromObject=_W$lib2.elemFromObject,elemStyle=_W$lib2.elemStyle,elemAnimate=_W$lib2.elemAnimate,TranscriptControl=/*#__PURE__*/function(_Control){function TranscriptControl(video){var _this;return _classCallCheck(this,TranscriptControl),_this=_super.call(this,video),_defineProperty(_assertThisInitialized(_this),"close",function(){_this._isVisible=!1,_this.animateOut().then(function(){_this.video.controls.captions.showCustomCaptions(),render(h("nothing",null),_this.rootElem),_this.reactMounts=[_this.rootElem]})}),_defineProperty(_assertThisInitialized(_this),"seekTranscript",function(time){_this.video.time(time)}),_defineProperty(_assertThisInitialized(_this),"metricsVideoCount",function(eventName){wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.Metrics.videoCount(_this.video._impl,"player/".concat(eventName))}),_this.video=video,_this.options=video.plugin.captions.options,_this._isVisible=!1,_this._turnstileClosed=!1,_this.unbinds=[],_this.unbinds.push(_this.video.on("captionschange",function(options){_this.setSelectedLanguage(options)}),_this.video.on("timechange",function(){!0===_this._isVisible&&_this.renderTranscript()}),_this.video.on("turnstileclose",function(){_this._turnstileClosed=!0,_this._isVisible&&_this.renderTranscript()})),_this}_inherits(TranscriptControl,_Control);var _super=_createSuper(TranscriptControl);return _createClass(TranscriptControl,[{key:"destroy",value:function destroy(){(0,player_lib_control_lifecycle_js__WEBPACK_IMPORTED_MODULE_4__.destroyControl)(this)}},{key:"mount",value:function mount(rootElem){var _this2=this;this.fetchCaptions().then(function(){var style={position:"absolute"},container=elemFromObject({style:style,class:"w-css-reset"});elemAppend(rootElem,container),_this2.rootElem=container})}},{key:"open",value:function open(){"beforeplay"===this.video.state()&&this.video.setControlEnabled("bigPlayButton",!1),this.video.controls.captions.hideCustomCaptions(),this._isVisible=!0,this.renderTranscript(),this.animateIn()}},{key:"onControlPropsUpdated",value:function onControlPropsUpdated(prevProps){var _this3=this;this._isVisible&&(this.props.controlsAreVisible!==prevProps.controlsAreVisible&&this.fetchCaptions().then(function(){_this3.renderTranscript()}),this.props.videoWidth!==prevProps.videoWidth&&this.fetchCaptions().then(function(){_this3.renderTranscript()}),this.props.videoHeight!==prevProps.videoHeight&&this.fetchCaptions().then(function(){_this3.renderTranscript()}))}},{key:"fetchCaptions",value:function fetchCaptions(){var _this4=this;return (0,_captionsHelper_js__WEBPACK_IMPORTED_MODULE_3__.fetchCaptions)(this.video,this.options).then(function(resp){return _this4.captionsResp=resp,resp})}},{key:"setSelectedLanguage",value:function setSelectedLanguage(options){this.selectedLanguage=options.language,this.rootElem&&this._isVisible&&("_off_"===options.language?this.close():this.renderTranscript())}},{key:"renderTranscript",value:function renderTranscript(){var _this5=this;// safari keeps the captions coming back
return this.video.controls.captions.hideCustomCaptions(),new Promise(function(resolve){wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.asyncRequire(["interFontFace.js"]).then(function(){render(h(_Transcript_jsx__WEBPACK_IMPORTED_MODULE_2__.default,{closeTranscript:_this5.close,controlBarHeight:_this5.props.controlBarHeight,controlsAreVisible:_this5.props.controlsAreVisible,preferredLanguage:_this5.captionsResp.preferred_languages[0],playerLanguage:_this5.video.playerLanguage(),scale:_this5.props.scale,seekTranscript:_this5.seekTranscript,selectedLanguage:_this5.selectedLanguage||_this5.captionsResp.preferred_languages[0],srtCaptions:_this5.captionsResp.captions,metricsVideoCount:_this5.metricsVideoCount,turnstileClosed:_this5._turnstileClosed,turnstileEmail:_this5.video.email(),turnstilePlugin:_this5.video.plugin["requireEmail-v1"],videoDuration:_this5.video.duration(),videoHeight:_this5.video.videoHeight(),videoTime:_this5.video.time(),videoWidth:_this5.video.videoWidth()}),_this5.rootElem),_this5.reactMounts=[_this5.rootElem],resolve()})})}// animation helpers
},{key:"animateIn",value:function animateIn(){var _this6=this;return new Promise(function(resolve){elemStyle(_this6.rootElem,{opacity:0,height:"100%",width:"100%"}),setTimeout(function(){elemAnimate(_this6.rootElem,{opacity:1},{time:200,callback:resolve})},0)})}},{key:"animateOut",value:function animateOut(){var _this7=this;return new Promise(function(resolve){elemStyle(_this7.rootElem,{opacity:1}),setTimeout(function(){elemAnimate(_this7.rootElem,{opacity:0},{time:200,callback:function callback(){elemStyle(_this7.rootElem,{height:0,width:0}),resolve()}})},0)})}}]),TranscriptControl}(_shared_controls_Control_js__WEBPACK_IMPORTED_MODULE_1__.default);TranscriptControl.handle="transcript",TranscriptControl.type="above-control-bar",TranscriptControl.sortValue=600,TranscriptControl.shouldMount=function(video){var disabledViaEmbed=video.embedOptions().plugin&&video.embedOptions().plugin["captions-v1"]&&!1===video.embedOptions().plugin["captions-v1"].transcript;if(disabledViaEmbed)return!1;var enabledViaCaptionsOptions=video.plugin.captions&&video.plugin.captions.options;return enabledViaCaptionsOptions&&!disabledViaEmbed},wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.defineControl(TranscriptControl);/* harmony default export */ __webpack_exports__["default"] = (TranscriptControl);

/***/ }),

/***/ 231:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i&&_arr.length===i));_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i["return"]||_i["return"]()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,Component=_W$lib.Component,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/interFontFamily"),interFontFamily=_W$lib2.interFontFamily,_W$lib3=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/isMouseDown"),isMouseDown=_W$lib3.isMouseDown,UP_ARROW_KEY=38,DOWN_ARROW_KEY=40,ESC_KEY=27,BASE_ELEM_SIZING=20,TranscriptLine=/*#__PURE__*/function(_Component){function TranscriptLine(props){var _this;return _classCallCheck(this,TranscriptLine),_this=_super.call(this,props),_defineProperty(_assertThisInitialized(_this),"clickLine",function(e){var _this$props=_this.props,seek=_this$props.seek,line=_this$props.line;e.preventDefault(),seek(line.start+.001)}),_defineProperty(_assertThisInitialized(_this),"onMouseEnter",function(){!0!==_this.state.isHovered&&_this.setState({isHovered:!0})}),_defineProperty(_assertThisInitialized(_this),"onMouseLeave",function(){!1!==_this.state.isHovered&&_this.setState({isHovered:!1})}),_defineProperty(_assertThisInitialized(_this),"onFocus",function(){isMouseDown()||(_this.props.setFocusIndex(_this.props.index),_this.setState({isKeyboardFocused:!0}))}),_defineProperty(_assertThisInitialized(_this),"unsetKeyboardFocus",function(){_this.setState({isKeyboardFocused:!1})}),_defineProperty(_assertThisInitialized(_this),"onKeyDown",function(e){var _this$props$focusNeig=_slicedToArray(_this.props.focusNeighbors,2),prev=_this$props$focusNeig[0],next=_this$props$focusNeig[1];switch(e.which){case DOWN_ARROW_KEY:e.preventDefault(),e.wistiaPlayerHandled=!0,-1!==next&&(_this.unsetKeyboardFocus(),_this.props.focusNextOrPrevious(next),_this.props.updateHitCounter(!0));break;case UP_ARROW_KEY:e.preventDefault(),e.wistiaPlayerHandled=!0,_this.unsetKeyboardFocus(),-1===prev?_this.props.focusInput(_this.props.index):(_this.props.focusNextOrPrevious(prev),_this.props.updateHitCounter(!1));break;default:return;}}),_defineProperty(_assertThisInitialized(_this),"onKeyUp",function(e){e.which===ESC_KEY&&(_this.props.focusInput(_this.props.index),e.escapeHandled=!0)}),_this.state={isHovered:!1,isKeyboardFocused:!1},_this}_inherits(TranscriptLine,_Component);var _super=_createSuper(TranscriptLine);return _createClass(TranscriptLine,[{key:"componentDidMount",value:function componentDidMount(){if(this.el){var id=this.props.focusHelper?"focusHelper":this.props.index;this.props.setSectionRef(this.el,id)}}},{key:"componentDidUpdate",value:function componentDidUpdate(){if(this.el){var id=this.props.focusHelper?"focusHelper":this.props.index;this.props.setSectionRef(this.el,id)}}},{key:"render",value:function render(){var _this2=this,_this$props2=this.props,searchKey=_this$props2.searchKey,line=_this$props2.line,isActive=_this$props2.isActive,scale=_this$props2.scale,searchRegEx=new RegExp(searchKey,"ig"),ButtonOrDiv=this.props.focusHelper?"div":"button",renderLine=line.text;return""!==searchKey&&searchRegEx.test(line.text)&&(renderLine=line.text.replace(searchRegEx,function(wordBeingReplaced){return"<mark>".concat(wordBeingReplaced,"</mark>")})),h("div",{role:!this.props.focusHelper&&"gridcell"},h(ButtonOrDiv,{"aria-describedby":this.props.focusHelper?"":this.props.containerId,onBlur:this.unsetKeyboardFocus,onClick:this.clickLine,onFocus:this.onFocus,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter,ref:function ref(el){return _this2.el=el},style:this.lineStyles(isActive),tabIndex:-1},!1===this.props.focusHelper&&h("span",{dangerouslySetInnerHTML:{__html:renderLine},style:{backgroundColor:this.state.isHovered?"black":"transparent",boxShadow:this.state.isKeyboardFocused?"0 0 0 2px #fff inset":"none",cursor:"pointer",padding:"".concat(3.4*scale,"px ").concat(8*scale,"px"),textAlign:"rtl"===this.props.dir?"right":"left"}})))}},{key:"lineStyles",value:function lineStyles(isActive){var scale=this.props.scale;return{display:"inline-flex",minHeight:this.props.focusHelper?"0":"".concat(30*scale,"px"),fontFamily:interFontFamily,fontSize:"".concat(17*scale,"px"),fontWeight:isActive?"700":"500",lineHeight:this.props.focusHelper?"0":"".concat(26*scale,"px"),outline:"none",marginLeft:"".concat(BASE_ELEM_SIZING/3.3*scale,"px")}}}]),TranscriptLine}(Component);/* harmony default export */ __webpack_exports__["default"] = (TranscriptLine);

/***/ }),

/***/ 230:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var interpolation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(92);
/* harmony import */ var interpolation__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(interpolation__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _TranscriptLine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(231);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,Component=_W$lib.Component,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/interFontFamily"),interFontFamily=_W$lib2.interFontFamily,_W$lib3=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/elem"),elemIsInside=_W$lib3.elemIsInside,_W$lib4=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/isMouseDown"),isMouseDown=_W$lib4.isMouseDown,_W$lib5=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/seqid"),seqId=_W$lib5.seqId,BASE_ELEM_SIZING=20,UP_ARROW_KEY=38,DOWN_ARROW_KEY=40,TranscriptText=/*#__PURE__*/function(_Component){function TranscriptText(props){var _this;return _classCallCheck(this,TranscriptText),_this=_super.call(this,props),_defineProperty(_assertThisInitialized(_this),"focusNextOrPrevious",function(index){_this.setState({scrollToIndex:index,focusIndex:index}),setTimeout(function(){requestAnimationFrame(function(){_this.props.allRefs[index].focus()})},20)}),_defineProperty(_assertThisInitialized(_this),"handleScroll",function(event){_this.setState({scrollTop:event.target.scrollTop})}),_defineProperty(_assertThisInitialized(_this),"onKeyDown",function(e){if((e.which===UP_ARROW_KEY||e.which===DOWN_ARROW_KEY)&&!e.wistiaPlayerHandled){e.preventDefault(),e.wistiaPlayerHandled=!0;var nextSearchHit=_this.props.hitAndMissIndices.indexOf(!0),index=-1===nextSearchHit?0:nextSearchHit;_this.setState({scrollToIndex:index,focusIndex:index}),setTimeout(function(){requestAnimationFrame(function(){_this.props.allRefs[index].focus()})},20)}}),_defineProperty(_assertThisInitialized(_this),"onWheel",function(){!1===_this.state.recentlyScrolled&&_this.setState({recentlyScrolled:!0}),_this.scrollingTimeout&&clearTimeout(_this.scrollingTimeout),_this.scrollingTimeout=setTimeout(function(){_this.setState({recentlyScrolled:!1})},7e3)}),_defineProperty(_assertThisInitialized(_this),"setSectionBlur",function(){_this.setState({sectionFocus:!1})}),_defineProperty(_assertThisInitialized(_this),"setSectionFocus",function(){isMouseDown()||_this.setState({sectionFocus:!0})}),_defineProperty(_assertThisInitialized(_this),"setFocusIndex",function(index){_this.setState({focusIndex:index})}),_defineProperty(_assertThisInitialized(_this),"setSectionRef",function(ref,index){_this.savedRefs[index]=ref}),_defineProperty(_assertThisInitialized(_this),"renderRowAtIndex",function(index){var opts=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return _this.renderLine(_this.props.captions[index],index,opts)}),_this.state={sectionFocus:!1,availableHeight:0,scrollTop:0,scrollToIndex:void 0,prevScrollToIndex:void 0,recentlyScrolled:!1},_this.savedRefs={},_this.scrollingTimeout=null,_this.containerId=seqId("w-interactive-transcript-"),_this}_inherits(TranscriptText,_Component);var _super=_createSuper(TranscriptText);return _createClass(TranscriptText,[{key:"componentDidMount",value:function componentDidMount(){var captions=this.props.captions;// when first opening the transcript, make sure we have the first line be the line that
// was clicked. Or if we're at the end of the video, that it is in the screen.
if(this.props.setRefs&&this.props.setRefs(this.savedRefs),this.setState({availableHeight:this.calculateAvailableHeight()}),0<this.props.videoTime)for(var i=0;i<captions.length;i++)if(this.isWithinTime(captions[i])){this.setState({scrollToIndex:i});break}}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,prevState){var segments=this.props.captions;// if the video has been playing and the mouse hasnt been moving, have the transcript follow along
if(this.props.setRefs&&this.props.setRefs(this.savedRefs),(this.props.controlsAreVisible!==prevProps.controlsAreVisible||this.props.videoHeight!==prevProps.videoHeight)&&this.setState({availableHeight:this.calculateAvailableHeight()}),this.props.activeSearchHitIndex!==prevProps.activeSearchHitIndex&&this.setState({scrollToIndex:this.props.activeSearchHitIndex,prevScrollToIndex:prevProps.activeSearchHitIndex}),this.state.scrollToIndex!==prevState.scrollToIndex&&this.setState({prevScrollToIndex:this.state.scrollToIndex}),this.props.videoTime!==prevProps.videoTime&&!1===this.props.recentlyMoused&&!1===this.state.recentlyScrolled)for(var i=0;i<segments.length;i++)if(this.isWithinTime(segments[i])){this.props.allRefs[i-1]&&null!==this.props.allRefs[i-1].offsetParent?this.startScrollAnimation(i):this.setState({scrollToIndex:i});break}this.props.controlsAreVisible&&!prevProps.controlsAreVisible&&this.isAtBottomOfCaptions()&&this.scrollToBottom()}},{key:"animate",value:function animate(){var _this2=this;return!this.scollInterpolation||this.scollInterpolation.atEnd()?void cancelAnimationFrame(this.scrollingAnimation):void(this.scrollingAnimation=requestAnimationFrame(function(){_this2.transcriptText.scrollTop=_this2.scollInterpolation.value(),_this2.scollInterpolation.atEnd()||_this2.animate()}))}},{key:"calculateAvailableHeight",value:function calculateAvailableHeight(){var _this$props=this.props,controlsAreVisible=_this$props.controlsAreVisible,controlBarHeight=_this$props.controlBarHeight,videoHeight=_this$props.videoHeight,heightOfSearch=2*controlBarHeight,heightOfControls=controlsAreVisible?controlBarHeight:0;return videoHeight-(heightOfSearch+heightOfControls)}},{key:"focusMaintainer",value:function focusMaintainer(startIndex,endIndex){this.state.focusIndex&&elemIsInside(document.activeElement,this.transcriptTextRoot)&&(this.state.focusIndex<startIndex||this.state.focusIndex>=endIndex?this.props.allRefs.focusHelper&&this.props.allRefs.focusHelper.focus({preventScroll:!0}):this.state.focusIndex>startIndex&&this.state.focusIndex<endIndex&&this.props.allRefs[this.state.focusIndex].focus())}},{key:"calculateNumberOfRowsToRender",value:function calculateNumberOfRowsToRender(){var _this$props2=this.props,captions=_this$props2.captions,turnstile=_this$props2.turnstile;// turnstiles that haven't been completed hide text past the turnstile time
if(turnstile.enabled&&!1===turnstile.hasClosed&&"end"!==turnstile.time){// binary search for the index of the text section that goes right up to the start of the turnstile
for(var beginning=0,end=captions.length-1,middle=Math.floor((beginning+end)/2);captions[middle].start>turnstile.time&&middle-1<end;)turnstile.time>captions[middle].start?beginning=middle-1:end=middle+1,middle=Math.floor((beginning+end)/2);// add 1 to the middle because we want the number of rows to display, not the index
return captions[middle].start<=turnstile.time?middle+1:1}return captions.length}},{key:"getNeighboringIndices",value:// for keyboard accessibility when arrowing between the sections
// if we have a search (with hits) arrowing should go to the next hit
// if there is no search it should just go to the next line
function getNeighboringIndices(index){var left=index,right=index,arr=this.props.hitAndMissIndices;// if there's no searchKey just want to +/- 1
if(!this.props.searchKey)return[index-1,index===arr.length-1?-1:index+1];// starting at the given index, move towards the ends of the array
// breaking when you hit the first true value
// if there is none the value will be -1, meaning not found
for(;0<=--left&&!arr[left];);for(;++right<arr.length&&!arr[right];);return[left,right===arr.length?-1:right]}},{key:"isAtBottomOfCaptions",value:function isAtBottomOfCaptions(){var el=this.transcriptText;return el.scrollTop+5>=el.scrollHeight-el.offsetHeight}},{key:"isWithinTime",value:function isWithinTime(options){var videoTime=this.props.videoTime,start=options.start,end=options.end;return videoTime>=start&&videoTime<end}// only focus in on the sections if the container is active and the arrow keys come
// into use
},{key:"scrollToBottom",value:function scrollToBottom(){var lastIndex=this.props.captions.length-1;this.startScrollAnimation(lastIndex)}},{key:"sectionContainerStyles",value:function sectionContainerStyles(){return{height:"100%",overflowY:"scroll",boxShadow:this.state.sectionFocus?"0 0 0 2px #fff inset":"none",outline:"none"}}},{key:"startScrollAnimation",value:function startScrollAnimation(toIndex){var elemAtTop=1.5*(toIndex*BASE_ELEM_SIZING)*this.props.scale,animateTo=Math.max(0,elemAtTop),animateFrom=this.transcriptText.scrollTop;cancelAnimationFrame(this.scrollingAnimation),this.scollInterpolation=new (interpolation__WEBPACK_IMPORTED_MODULE_1___default())({seedRange:300,outputStart:animateFrom,outputEnd:animateTo}),this.animate()}},{key:"turnstileText",value:function turnstileText(){var scale=this.props.scale;return{display:"block",fontWeight:"500",fontSize:"".concat(16*scale,"px"),lineHeight:"".concat(30*scale,"px"),fontFamily:interFontFamily,textAlign:"center",textStyle:"italic"}}},{key:"renderLine",value:function renderLine(section,index,opts){var start=section.start,end=section.end,isWithinTime=this.isWithinTime({start:start,end:end}),focusNeighbors=this.getNeighboringIndices(index);return h("div",{key:index,style:{boxShadow:isWithinTime&&!opts.focusHelper?"2px 0 0 0 #fff inset":"none",boxSizing:"border-box"},dir:this.props.dir,"aria-rowindex":index+1,role:!opts.focusHelper&&"row"},h(_TranscriptLine__WEBPACK_IMPORTED_MODULE_2__.default,{containerId:this.containerId,dir:this.props.dir,line:section,focusHelper:opts.focusHelper||!1,focusInput:this.props.focusInput,focusNeighbors:focusNeighbors,focusNextOrPrevious:this.focusNextOrPrevious,index:index,isActive:isWithinTime,isHovered:!1,key:index,scale:this.props.scale,searchKey:this.props.searchKey,seek:this.props.seekTranscript,setSectionRef:this.setSectionRef,setFocusIndex:this.setFocusIndex,updateHitCounter:this.props.updateHitCounter}))}},{key:"render",value:function render(){var turnstileNearEnd,_this3=this,_this$props3=this.props,scale=_this$props3.scale,turnstile=_this$props3.turnstile,videoDuration=_this$props3.videoDuration,numRows=this.calculateNumberOfRowsToRender(),rowHeight=30*scale,totalHeight=rowHeight*numRows;turnstileNearEnd="end"===turnstile.time||videoDuration-5<=turnstile.time;var _this$state=this.state,availableHeight=_this$state.availableHeight,scrollTop=_this$state.scrollTop,startIndex=Math.floor(scrollTop/rowHeight);this.state.prevScrollToIndex!==this.state.scrollToIndex&&this.transcriptText&&void 0!==this.state.scrollToIndex&&(startIndex=this.state.scrollToIndex,this.transcriptText.scrollTop=startIndex*rowHeight);var endIndex=startIndex+Math.ceil(availableHeight/rowHeight);endIndex>numRows&&(endIndex=numRows);for(var items=[],index=startIndex;index<endIndex;)items.push(this.renderRowAtIndex(index,{})),index++;// helps bring focus to either the correct element or the focusHelper element if necessary
this.focusMaintainer(startIndex,endIndex);var listStyles={height:totalHeight,paddingTop:"".concat(startIndex*rowHeight,"px")};return"rtl"===this.props.dir?(listStyles.marginRight="".concat(25,"%"),listStyles.textAlign="right"):(listStyles.marginLeft="".concat(29,"%"),listStyles.textAlign="left",listStyles.width="".concat(60,"%")),h("div",{style:{height:"".concat(availableHeight,"px")},ref:function ref(el){return _this3.transcriptTextRoot=el}},h("div",{key:"focusHelper",style:{height:0}},this.renderRowAtIndex(this.state.focusIndex||0,{focusHelper:!0})),h("div",{"aria-label":"Use the arrow keys to move between the different caption lines. Click each line to seek the video to that line",id:this.containerId,onBlur:this.setSectionBlur,onFocus:this.setSectionFocus,onKeyDown:this.onKeyDown,onScroll:this.handleScroll,onWheel:this.onWheel,ref:function ref(el){return _this3.transcriptText=el},style:this.sectionContainerStyles(),tabIndex:0},h("div",{style:listStyles,role:"grid","aria-rowcount":numRows},h("div",{role:"rowgroup"},items)),turnstile.enabled&&!1===turnstile.hasClosed&&!turnstileNearEnd&&h("span",{style:this.turnstileText()},"-- You must enter your email to access the rest of the video. --")))}}]),TranscriptText}(Component);/* harmony default export */ __webpack_exports__["default"] = (TranscriptText);

/***/ }),

/***/ 536:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var _shared_ui_components_CustomEventsWrapper_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _extends(){return _extends=Object.assign||function(target){for(var source,i=1;i<arguments.length;i++)for(var key in source=arguments[i],source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},_extends.apply(this,arguments)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var source,i=1;i<arguments.length;i++)source=null==arguments[i]?{}:arguments[i],i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))});return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){return call&&("object"===_typeof(call)||"function"==typeof call)?call:_assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib.h,render=_W$lib.render,Component=_W$lib.Component,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/translations"),getTranslation=_W$lib2.getTranslation,_W$lib3=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/interFontFamily"),interFontFamily=_W$lib3.interFontFamily,_W$lib4=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/isMouseDown"),isMouseDown=_W$lib4.isMouseDown,_W$lib5=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/elem"),elemIsInside=_W$lib5.elemIsInside,BASE_FONT_SIZE=30,CTAOverlay=/*#__PURE__*/function(_Component){function CTAOverlay(props){var _this;return _classCallCheck(this,CTAOverlay),_this=_super.call(this,props),_defineProperty(_assertThisInitialized(_this),"setSkipSVGFocusState",function(bool){_this.setState({skipSvgHasFocus:bool})}),_defineProperty(_assertThisInitialized(_this),"setRewatchSVGFocusState",function(bool){_this.setState({rewatchSvgHasFocus:bool})}),_defineProperty(_assertThisInitialized(_this),"setContainerHasFocus",function(bool){_this.setState({containerHasFocus:bool})}),_this.state={hovering:!1,skipSvgHasFocus:!1,rewatchSvgHasFocus:!1,containerHasFocus:!1},_this}_inherits(CTAOverlay,_Component);var _super=_createSuper(CTAOverlay);return _createClass(CTAOverlay,[{key:"componentDidMount",value:function componentDidMount(){var _this2=this,ctaType=this.deriveCtaTypeFromOptions(this.props.options);"raw"===ctaType&&elemIsInside(document.activeElement,this.props.uiContainer)&&setTimeout(function(){_this2.overlayRef.focus()},0)}},{key:"deriveCtaTypeFromOptions",value:function deriveCtaTypeFromOptions(options){// If you specify a ctaType (the first three conditions here), and you have
// included the fields required for that ctaType, you get that type of cta.
return"raw"===options.ctaType&&options.raw?"raw":"text"===options.ctaType&&options.text?"text":"image"===options.ctaType&&options.image?"image":!options.ctaType&&(options.raw||options.text||options.image?!options.raw&&(options.text||options.image)?options.image?"image":"text":"raw":void 0)}},{key:"fontSizing",value:function fontSizing(){var fontSize=BASE_FONT_SIZE,_this$props=this.props,videoHeight=_this$props.videoHeight,videoWidth=_this$props.videoWidth;// default if autosize is false
if(this.props.options.autoSize){var isVertical=1>videoWidth/videoHeight,min=isVertical?58:72;fontSize=Math.round(this.props.videoHeight/9),fontSize=Math.min(min,Math.max(10,fontSize))}return fontSize}},{key:"fontFamily",value:function fontFamily(){return{fontFamily:interFontFamily}}},{key:"containerStyles",value:function containerStyles(){var fontFamily=this.fontFamily();return _objectSpread({height:"100%",backgroundColor:this.state.hovering?this.props.hoverColor:"",boxShadow:this.state.containerHasFocus&&!this.props.isMostRecentFocusViaMouse?"0 0 0 2px #fff inset":"none",color:"#ffffff",fontSize:"".concat(this.fontSizing(),"px"),lineHeight:"1.2em",position:"relative",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center"},fontFamily)}},{key:"skipOrRewatchStyles",value:function skipOrRewatchStyles(){return{bottom:"".concat(this.fontSizing()/3,"px"),boxSizing:"border-box",cursor:"pointer",padding:"".concat(this.fontSizing()/6,"px"),position:"absolute"}}},{key:"rewatchSVG",value:function rewatchSVG(){var _this3=this;// only continue if it's defined and we're at the end
if(this.props.options.rewatch&&"end"===this.props.options.time){var fontSize="".concat(this.fontSizing()/2,"px");return h(_shared_ui_components_CustomEventsWrapper_jsx__WEBPACK_IMPORTED_MODULE_1__.default,{tagName:"button",onClick:this.props.onClickRewatch,style:_objectSpread(_objectSpread({},this.skipOrRewatchStyles()),{},{left:"".concat(fontSize),border:this.state.rewatchSvgHasFocus?"2px solid white":"2px solid transparent"}),className:"w-css-reset w-vulcan-v2-button",onfocusin:function onfocusin(){return _this3.setRewatchSVGFocusState(!isMouseDown())},onfocusout:function onfocusout(){return _this3.setRewatchSVGFocusState(!1)}},h("span",{style:_objectSpread(_objectSpread({},this.fontFamily()),{},{fontSize:"".concat(fontSize)})},"\u21BA ",getTranslation(this.props.playerLanguage.code,"REWATCH")))}}},{key:"skipSVG",value:function skipSVG(){var _this4=this,nextVideo=!!this.props.nextVideo();// there is no next video, we're at the end we can return
if(nextVideo||"end"!==this.props.options.time){var fontSize="".concat(this.fontSizing()/2,"px");return h(_shared_ui_components_CustomEventsWrapper_jsx__WEBPACK_IMPORTED_MODULE_1__.default,{tagName:"button",onClick:this.props.onClickSkip,style:_objectSpread(_objectSpread({},this.skipOrRewatchStyles()),{},{right:"".concat(fontSize),border:this.state.skipSvgHasFocus?"2px solid white":"2px solid transparent"}),className:"w-css-reset w-vulcan-v2-button",onfocusin:function onfocusin(){return _this4.setSkipSVGFocusState(!isMouseDown())},onfocusout:function onfocusout(){return _this4.setSkipSVGFocusState(!1)}},h("span",{style:_objectSpread(_objectSpread({},this.fontFamily()),{},{fontSize:"".concat(fontSize)})},getTranslation(this.props.playerLanguage.code,"SKIP")," \u2192"))}}},{key:"render",value:function render(){var _this5=this,options=_objectSpread({},this.props.options),ctaType=this.deriveCtaTypeFromOptions(options);return h("div",{style:this.containerStyles(),onBlur:function onBlur(){return _this5.setContainerHasFocus(!1)},onFocus:function onFocus(){return _this5.setContainerHasFocus(!0)},tabIndex:"raw"===ctaType?0:-1,ref:function ref(e){return _this5.overlayRef=e}},h(CTAContent,{ctaType:ctaType,fontFamily:this.fontFamily(),fontSize:this.fontSizing(),isMostRecentFocusViaMouse:this.props.isMostRecentFocusViaMouse,logConversionEvent:this.props.logConversionEvent,options:this.props.options,videoHeight:this.props.videoHeight,videoWidth:this.props.videoWidth,uiContainer:this.props.uiContainer}),this.rewatchSVG(),this.skipSVG())}}]),CTAOverlay}(Component),CTAContent=/*#__PURE__*/function(_Component2){function CTAContent(){var _this6;_classCallCheck(this,CTAContent);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this6=_super2.call.apply(_super2,[this].concat(args)),_defineProperty(_assertThisInitialized(_this6),"setHoverState",function(bool){_this6.setState({hovering:bool})}),_defineProperty(_assertThisInitialized(_this6),"setHasFocus",function(bool){_this6.setState({hasFocus:bool})}),_defineProperty(_assertThisInitialized(_this6),"resizeOnImageLoad",function(){_this6.ctaImage&&_this6.forceUpdate()}),_this6}_inherits(CTAContent,_Component2);var _super2=_createSuper(CTAContent);return _createClass(CTAContent,[{key:"componentDidMount",value:function componentDidMount(){var ctaType=this.props.ctaType;// manage focus when the cta mounts
// except on raw, that type will focus the root overlay
if("raw"!==ctaType&&elemIsInside(document.activeElement,this.props.uiContainer)){var ref;"text"===ctaType?ref=this.overlayTextRef:"image"===ctaType&&(ref=this.overlayImageRef),setTimeout(function(){ref.focus()},0)}}},{key:"ctaContentStyles",value:function ctaContentStyles(){return{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",textDecoration:"none",boxShadow:this.state.hasFocus&&!this.props.isMostRecentFocusViaMouse?"0 0 0 2px #fff inset":"none",boxSizing:"border-box"}}},{key:"imageStyles",value:function imageStyles(){if(this.ctaImage){var _this$ctaImage=this.ctaImage,naturalWidth=_this$ctaImage.naturalWidth,naturalHeight=_this$ctaImage.naturalHeight,_this$props2=this.props,videoWidth=_this$props2.videoWidth,videoHeight=_this$props2.videoHeight,isImageSmall=naturalHeight<videoHeight&&naturalWidth<videoWidth;// if the image is smaller than the video, do some math to scale it up
// while respecting the image's aspect ratio
if(isImageSmall){// we want to get two scales, video width to image width and video height to image height
// to see how much bigger we can make the image to fill up as much of the video as we can.
// Taking the lower scale allows us to make the image as big as possible without
// the other axis overflowing outside of the video. This allows us to handle many different
// video aspect ratios along with many different image aspect ratios.
var scale=Math.min(videoWidth/naturalWidth,videoHeight/naturalHeight);return{width:"".concat(naturalWidth*scale,"px"),height:"".concat(naturalHeight*scale,"px")}}return{maxWidth:"100%",maxHeight:"100%"}}}},{key:"textStyle",value:function textStyle(){return{textAlign:"center",lineHeight:"1.2em",fontWeight:100,width:"80%",color:"white",fontSize:"".concat(this.props.fontSize,"px")}}},{key:"renderText",value:// sanitize this text before setting it so preact wont strip it out
function renderText(){var saniText=this.props.options.text.replace(/<br\/>/g,"\n").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br/>");return h("div",{className:"w-css-reset-tree",style:_objectSpread(_objectSpread({},this.props.fontFamily),this.textStyle()),dangerouslySetInnerHTML:{__html:saniText||""}})}},{key:"renderImage",value:function renderImage(){var _this7=this;return this.props.options.image.src?h("img",{className:"w-css-reset-tree",src:this.props.options.image.src,ref:function ref(ctaImage){return _this7.ctaImage=ctaImage},style:this.imageStyles(),onLoad:this.resizeOnImageLoad,alt:this.props.options.altText||null}):void 0}},{key:"renderRaw",value:function renderRaw(){return h("div",{dangerouslySetInnerHTML:{__html:this.props.options.raw}})}},{key:"render",value:function render(){var _this8=this,_this$props3=this.props,options=_this$props3.options,ctaType=_this$props3.ctaType,AorSpan=options.link?"a":"span",aOrSpanProps={href:options.link,target:"_blank",class:"w-css-reset",style:this.ctaContentStyles(),onClick:options.link?this.props.logConversionEvent:null,onMouseEnter:function onMouseEnter(){return _this8.setHoverState(!0)},onMouseLeave:function onMouseLeave(){return _this8.setHoverState(!1)},onFocus:function onFocus(){return _this8.setHasFocus(!0)},onBlur:function onBlur(){return _this8.setHasFocus(!1)}};return h("div",{style:{width:"100%",height:"100%"}},"text"===ctaType&&h(AorSpan,_extends({},aOrSpanProps,{ref:function ref(e){return _this8.overlayTextRef=e}}),this.renderText()),"image"===ctaType&&h(AorSpan,_extends({},aOrSpanProps,{ref:function ref(e){return _this8.overlayImageRef=e}}),this.renderImage()),"raw"===ctaType&&h(CTARawHtml,{raw:this.props.options.raw}))}}]),CTAContent}(Component),CTARawHtml=/*#__PURE__*/function(_Component3){function CTARawHtml(){return _classCallCheck(this,CTARawHtml),_super3.apply(this,arguments)}_inherits(CTARawHtml,_Component3);var _super3=_createSuper(CTARawHtml);return _createClass(CTARawHtml,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){return this.props.raw!==nextProps.raw}},{key:"rawContainerStyles",value:function rawContainerStyles(){return{alignContent:"center",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center"}}},{key:"render",value:function render(){return h("div",{style:this.rawContainerStyles(),dangerouslySetInnerHTML:{__html:this.props.raw}})}}]),CTARawHtml}(Component);/* harmony default export */ __webpack_exports__["default"] = (CTAOverlay);

/***/ }),

/***/ 61:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "defineControl": function() { return /* binding */ defineControl; },
/* harmony export */   "getControlDefinitions": function() { return /* binding */ getControlDefinitions; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
null==wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._controlDefinitions&&(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._controlDefinitions={});var defineControl=function defineControl(klass){if(null==klass.handle)return void console.error("Please specify a handle property for control",klass);var existingClass=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._controlDefinitions[klass.handle];null!=existingClass||(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._controlDefinitions[klass.handle]=klass,wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.trigger&&wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.trigger("controldefined",klass))};var getControlDefinitions=function getControlDefinitions(){return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._controlDefinitions||{}};wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.defineControl=defineControl;

/***/ }),

/***/ 78:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AJAX_DEFAULTS": function() { return /* binding */ AJAX_DEFAULTS; },
/* harmony export */   "ajaxGet": function() { return /* binding */ ajaxGet; },
/* harmony export */   "ajaxHead": function() { return /* binding */ ajaxHead; },
/* harmony export */   "ajaxPost": function() { return /* binding */ ajaxPost; },
/* harmony export */   "ajax": function() { return /* binding */ ajax; }
/* harmony export */ });
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
/* harmony import */ var utilities_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16);
/* harmony import */ var utilities_detect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20);
/* harmony import */ var player_lib_script_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39);
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(19);
/* harmony import */ var utilities_seqid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8);
/* harmony import */ var player_lib_jsonp__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(79);
/* harmony import */ var player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(33);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}/* globals ActiveXObject */var detect=(0,utilities_detect__WEBPACK_IMPORTED_MODULE_2__.cachedDetect)(),logger=utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.getPrefixedFunctions("ajax");var AJAX_DEFAULTS={// HTTP method to use on request, e.g. 'GET' or 'POST'
type:"GET",// String value to set on 'Content-Type' header,
// e.g. 'application/json' or 'application/x-www-form-urlencoded'
contentType:"",// Object whose keys are header names and values are header values,
// e.g. {'X-Requested-With': 'XMLHttpRequest'}
headers:void 0,// String or blob object to send (POST only)
data:void 0,// Datatype expected back from the server, to be automatically deserialized
// if the browser doesn't automatically
// Currently only supporting 'json'
dataType:void 0,// Time in ms to wait for response
timeout:0,// Success callback with signature success(response, statusText, xhr)
success:void 0,// Error callback with signature error(xhr, errorType, detail)
// where detail can be a string or Error object
error:void 0,// Complete callback (fires after success or error in all cases)
// with signature complete(xhr, statusTextOrErrorType)
complete:void 0};var ajaxGet=function ajaxGet(url,options){return options=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.merge)({},options,{type:"GET",data:void 0}),ajax(url,options)};var ajaxHead=function ajaxHead(url,options){return options=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.merge)({},options,{type:"HEAD",data:void 0}),ajax(url,options)};var ajaxPost=function ajaxPost(url,options){var defaults={contentType:"application/x-www-form-urlencoded"},overrides={type:"POST"};return options=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.merge)(defaults,options,overrides),ajax(url,options)};// Send an ajax request to url with options
// @param  url     String  Where to send the request.
//                         To support IE8 and IE9 cross-domain requests,
//                         url must be protocol-relative (i.e. starting with '//')
// @param  options Object  Ajax options (see AJAX_DEFAULTS above)
var ajax=function ajax(_url,_options){logger.info("ajax",_url,_options);var options=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.merge)({},AJAX_DEFAULTS,_options),parsedUrl=new utilities_url__WEBPACK_IMPORTED_MODULE_1__.Url(_url);parsedUrl.protocol=parsedUrl.protocol||(0,utilities_url__WEBPACK_IMPORTED_MODULE_1__.proto)();var noHttpToHttpsSupport=!!(detect.browser.msie&&11>detect.browser.version),isHttpToHttps=(0,utilities_url__WEBPACK_IMPORTED_MODULE_1__.proto)()!==parsedUrl.protocol;if(logger.info("noHttpToHttpsSupport",noHttpToHttpsSupport,"isHttpToHttps",isHttpToHttps),options.fallbackToJsonp&&isHttpToHttps&&noHttpToHttpsSupport)if(logger.info("fallbackToJsonp"),!options.type||/get/i.test(options.type)){var params=parsedUrl.params;options.data&&(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isObject)(options.data)&&(params=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.merge)(params,options.data)),options.jsonpCallback&&(params.callback=options.jsonpCallback),parsedUrl.params={},(0,player_lib_script_utils__WEBPACK_IMPORTED_MODULE_3__.removeScriptsBySrc)(parsedUrl.absolute(),{ignoreProtocol:!0,testStartsWith:!0});var timeoutKey=(0,utilities_seqid__WEBPACK_IMPORTED_MODULE_5__.seqId)("ajax-jsonp.");(0,player_lib_jsonp__WEBPACK_IMPORTED_MODULE_6__.jsonp)(parsedUrl.absolute(),params,function(data){if((0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_7__.clearTimeouts)(timeoutKey),"json"===options.dataType&&"string"==typeof data)try{var parsedJson=JSON.parse(data);options.success(parsedJson,"OK",data),options.complete(null,"OK")}catch(e){options.error(null,"parseerror",data),options.complete(null,data)}else options.success(data,"OK")}),(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_7__.doTimeout)(timeoutKey,function(){options.error(null,"timeout"),logger.warn("request timed out:",parsedUrl.absolute(),params)},6e4)}else return void((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isFunction)(options.error)&&options.error.call(null,null,"error","This browser does not support POST requests from an http to an https domain. To use this feature, please make sure this page is loaded over https."));var url=parsedUrl.absolute(),xhr=createXmlHttpObject(url);if(!xhr)return (0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isFunction)(options.error)&&options.error.call(null,xhr,"error","Could not create XMLHttpRequest"),void((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isFunction)(options.complete)&&options.complete.call(null,xhr,"error"));var isXDomainObject=null!=window.XDomainRequest&&xhr instanceof window.XDomainRequest,_stopInvokingCallbacks=!1,_hasCompleted=!1,errorCb=function errorCb(xhr,errorType,detail){!_stopInvokingCallbacks&&(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isFunction)(options.error)&&options.error.call(null,xhr,errorType,detail),_stopInvokingCallbacks=!0},successCb=function successCb(response,statusText,xhr){(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isFunction)(options.success)&&!_stopInvokingCallbacks&&options.success.call(null,response,statusText,xhr),_stopInvokingCallbacks=!0},completeCb=function completeCb(xhr,statusText){(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isFunction)(options.complete)&&!_hasCompleted&&options.complete.call(null,xhr,statusText),xhr.onerror=xhr.ontimeout=xhr[isXDomainObject?"onload":"onreadystatechange"]=null,_hasCompleted=!0};logger.info("xhr.open",options.type,url),xhr.open(options.type,url,!0);var onResponse=function onResponse(){// 200-300 = success, 304 = Not Modified
if(!(null!=xhr.status&&(200<=xhr.status&&300>xhr.status||304==xhr.status)))errorCb(xhr,"error",xhr.statusText),logger.warn("error",xhr.statusText);else if("json"==options.dataType&&"object"!==_typeof(xhr.response))try{var responseJson=JSON.parse(xhr.responseText);logger.info("success",xhr.statusText,responseJson),successCb(responseJson,xhr.statusText,xhr)}catch(e){errorCb(xhr,"parseerror",e),logger.warn("parseerror"),logger.warn(e)}else successCb(xhr.response||xhr.responseText,xhr.statusText,xhr),logger.info("success",xhr.statusText,xhr.response||xhr.responseText);completeCb(xhr,xhr.statusText),logger.info("complete",xhr.statusText)},onError=function onError(errorType,detail){errorCb(xhr,errorType,detail),completeCb(xhr,errorType)};if(options.timeout&&(xhr.timeout=options.timeout),null!=options.dataType&&(xhr.responseType=options.dataType),(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isFunction)(xhr.setRequestHeader)&&(options.contentType&&xhr.setRequestHeader("Content-Type",options.contentType),options.headers))for(var header in options.headers)xhr.setRequestHeader(header,options.headers[header]);if(options.withCredentials&&(xhr.withCredentials=!0),isXDomainObject){if(logger.info("isXDomainObject"),null!=options.headers)return onError("error","custom headers disallowed for XDomainRequest");xhr.onload=function(){logger.info("XDomainObject onload"),xhr.status=200,xhr.statusText="OK",onResponse()},xhr.onerror=function(){return onError("error","error")},xhr.ontimeout=function(){return onError("timeout","timeout")}}else xhr.onreadystatechange=function(){logger.info("xhr onreadystatechange",xhr.readyState),4==xhr.readyState&&onResponse()},xhr.onerror=function(){return onError("error","error")},xhr.ontimeout=function(){return onError("timeout","timeout")};return logger.info("xhr.send",options.data),xhr.send(options.data),xhr};var XML_HTTP_FACTORIES=[function(){var currentLoc=void 0,currentLocParts=void 0;return function(url){if(null!=window.XDomainRequest){null==currentLoc&&(currentLoc=window.location.href),null==currentLocParts&&(currentLocParts=new utilities_url__WEBPACK_IMPORTED_MODULE_1__.Url(currentLoc.toLowerCase()));var reqLocParts=new utilities_url__WEBPACK_IMPORTED_MODULE_1__.Url(url.toLowerCase()),isCrossDomain=!1;return isCrossDomain||(isCrossDomain=currentLocParts.protocol!=reqLocParts.protocol),isCrossDomain||(isCrossDomain=currentLocParts.host!=reqLocParts.host),isCrossDomain?new window.XDomainRequest:null}}}(),function(){return new XMLHttpRequest},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],createXmlHttpObject=function createXmlHttpObject(url){for(var factory,xmlhttp=void 0,i=0;i<XML_HTTP_FACTORIES.length;i++){factory=XML_HTTP_FACTORIES[i];try{xmlhttp=factory(url)}catch(e){continue}if(xmlhttp)break}return xmlhttp};

/***/ }),

/***/ 80:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FAILED": function() { return /* binding */ FAILED; },
/* harmony export */   "QUEUED": function() { return /* binding */ QUEUED; },
/* harmony export */   "PROCESSING": function() { return /* binding */ PROCESSING; },
/* harmony export */   "READY": function() { return /* binding */ READY; },
/* harmony export */   "filter": function() { return /* binding */ filter; },
/* harmony export */   "one": function() { return /* binding */ one; },
/* harmony export */   "readyPublicMp3s": function() { return /* binding */ readyPublicMp3s; },
/* harmony export */   "readyPublicMp4s": function() { return /* binding */ readyPublicMp4s; },
/* harmony export */   "readyPublicM3u8s": function() { return /* binding */ readyPublicM3u8s; },
/* harmony export */   "readyPublicFlvs": function() { return /* binding */ readyPublicFlvs; },
/* harmony export */   "readyPublicMp4sAndFlvs": function() { return /* binding */ readyPublicMp4sAndFlvs; },
/* harmony export */   "filterOver400": function() { return /* binding */ filterOver400; },
/* harmony export */   "readyPublicOver400": function() { return /* binding */ readyPublicOver400; },
/* harmony export */   "nonfailedPublicOver400": function() { return /* binding */ nonfailedPublicOver400; },
/* harmony export */   "withinQualityRange": function() { return /* binding */ withinQualityRange; },
/* harmony export */   "numericSizeSnapped": function() { return /* binding */ numericSizeSnapped; },
/* harmony export */   "findClosestAssetByQuality": function() { return /* binding */ findClosestAssetByQuality; },
/* harmony export */   "still": function() { return /* binding */ still; },
/* harmony export */   "channelArtworkStill": function() { return /* binding */ channelArtworkStill; },
/* harmony export */   "thumbnailAssets": function() { return /* binding */ thumbnailAssets; },
/* harmony export */   "stillUrl": function() { return /* binding */ stillUrl; },
/* harmony export */   "getStillWidth": function() { return /* binding */ getStillWidth; },
/* harmony export */   "BAKERY_HOSTS": function() { return /* binding */ BAKERY_HOSTS; },
/* harmony export */   "isBakeryUrl": function() { return /* binding */ isBakeryUrl; },
/* harmony export */   "onePublicReadyWithContainer": function() { return /* binding */ onePublicReadyWithContainer; },
/* harmony export */   "mp4": function() { return /* binding */ mp4; },
/* harmony export */   "webm": function() { return /* binding */ webm; },
/* harmony export */   "m3u8": function() { return /* binding */ m3u8; },
/* harmony export */   "flv": function() { return /* binding */ flv; },
/* harmony export */   "original": function() { return /* binding */ original; },
/* harmony export */   "playable": function() { return /* binding */ playable; },
/* harmony export */   "isScreencast": function() { return /* binding */ isScreencast; },
/* harmony export */   "videoAspect": function() { return /* binding */ videoAspect; },
/* harmony export */   "originalAspect": function() { return /* binding */ originalAspect; },
/* harmony export */   "iphone": function() { return /* binding */ iphone; },
/* harmony export */   "smallestNormalMp4": function() { return /* binding */ smallestNormalMp4; },
/* harmony export */   "urlWithCorrectHost": function() { return /* binding */ urlWithCorrectHost; },
/* harmony export */   "nearestOutsideRange": function() { return /* binding */ nearestOutsideRange; },
/* harmony export */   "moveToFront": function() { return /* binding */ moveToFront; }
/* harmony export */ });
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
/* harmony import */ var _app_hostname__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15);
/* harmony import */ var _app_hostname__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_app_hostname__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var utilities_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16);
/* harmony import */ var utilities_detect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20);
/* harmony import */ var player_lib_hosts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(14);
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19);
function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i&&_arr.length===i));_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i["return"]||_i["return"]()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}var aps=Array.prototype.slice;var FAILED=-1;var QUEUED=0;var PROCESSING=1;var READY=2;// Advanced sorting and filtering so we can be expressive and concise when
// choosing assets.
var FILTER_KEYS=["select","sortFn","sortBy","unique"];var filter=function filter(assets){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};// there was an issues in the uploader + notPlayablePlayer flow where we
// occasionally asked to filter assets when we didn't have any. If we
// don't have assets just gtfo
if(!assets)return[];// We started out passing the whole mediaData object here, but we only
// operate on assets, and that's more convenient for filtering result sets
// multiple times. This if continues to allow mediaData to be passed in.
assets.assets&&(assets=assets.assets),(null!=options.qualityMin||null!=options.qualityMax)&&(assets=withinQualityRange(assets,options.qualityMin,options.qualityMax),options=utilities_obj__WEBPACK_IMPORTED_MODULE_0__.except(options,["qualityMin","qualityMax"]));var filterOptions=utilities_obj__WEBPACK_IMPORTED_MODULE_0__.only(options,FILTER_KEYS),selectFn=filterOptions.select||utilities_obj__WEBPACK_IMPORTED_MODULE_0__.except(options,FILTER_KEYS);selectFn&&(filterOptions.select=selectFn);var result=filterOptions.select?utilities_obj__WEBPACK_IMPORTED_MODULE_0__.select(assets,filterOptions.select):utilities_obj__WEBPACK_IMPORTED_MODULE_0__.clone(assets);// If "unique" is given, it means we only want the first asset with that
// property. We can leverage sortBy and select to meaningfully order the
// assets, essentially letting us choose which one is unique.
if((filterOptions.sortFn||filterOptions.sortBy)&&(result=utilities_obj__WEBPACK_IMPORTED_MODULE_0__.sort(result,filterOptions.sortFn||filterOptions.sortBy)),filterOptions.unique){for(var uniqHash={},i=0;i<result.length;i++){var asset=result[i],bucket=asset[""+filterOptions.unique]||"__undefined__";uniqHash[bucket]||(uniqHash[bucket]=asset)}for(var k in result=[],uniqHash)result.push(uniqHash[k])}return result};var one=function one(assets,options){return filter(assets,options)[0]||null};var readyPublicMp3s=function readyPublicMp3s(assets){return filter(assets,{ext:"mp3",status:READY,public:!0})};var readyPublicMp4s=function readyPublicMp4s(assets){return filter(assets,{container:"mp4",status:READY,public:!0})};var readyPublicM3u8s=function readyPublicM3u8s(assets){return filter(assets,{container:"m3u8",status:READY,public:!0})};var readyPublicFlvs=function readyPublicFlvs(assets){return filter(assets,{container:"flv",status:READY,public:!0})};var readyPublicMp4sAndFlvs=function readyPublicMp4sAndFlvs(assets){return filter(assets,{container:/mp4|flv/,status:READY,public:!0})};var filterOver400=function filterOver400(assets){for(var result=[],i=0;i<assets.length;i++){var a=assets[i],vbitrateInRange=null!=a.opt_vbitrate&&500<=a.opt_vbitrate&&1e5>=a.opt_vbitrate,widthInRange=null!=a.width&&400<a.width;(vbitrateInRange||widthInRange)&&result.push(a)}return result};var readyPublicOver400=function readyPublicOver400(assets){return filterOver400(filter(assets,{container:/mp4|flv/,public:!0,status:READY}))};var nonfailedPublicOver400=function nonfailedPublicOver400(assets){return filterOver400(filter(assets,{container:/mp4|flv/,public:!0,status:function status(s){return s!==FAILED}}))};var withinQualityRange=function withinQualityRange(assets){var qualityMin=1<arguments.length&&arguments[1]!==void 0?arguments[1]:100,qualityMax=2<arguments.length&&arguments[2]!==void 0?arguments[2]:1e4;return filter(assets,{select:function select(asset){// quality is based on width * height, and given back in a format like
// 720, 1080, 3840, etc.
var quality=numericSizeSnapped(asset.width,asset.height);return qualityMin<=quality&&quality<=qualityMax}})};var numericSizeSnapped=function numericSizeSnapped(width,height){if(height>width){// let's mathematically rotate vertical videos when determining their
// snapped size.
var tmpWidth=width;width=height,height=tmpWidth}var aspect=width/height,pixels=width*height+1;// add 1 to avoid aspect rounding issues
return pixels>=3840*(3840/aspect)?2160:pixels>=2560*(2560/aspect)?1440:pixels>=1920*(1920/aspect)?1080:pixels>=1280*(1280/aspect)?720:pixels>=960*(960/aspect)?540:pixels>=640*(640/aspect)?360:height};// Expect that assets are a subset of assets that we are allowed to select.
// This function does not have any special logic to filter only selectable
// assets.
var findClosestAssetByQuality=function findClosestAssetByQuality(assets,quality){var height;height="4k"===quality?2160:parseInt(quality,10);var exactMatch=withinQualityRange(assets,height,height)[0];if(exactMatch)return exactMatch;var surroundingAssets=nearestOutsideRange(assets,height,height);if(1===surroundingAssets.length)return surroundingAssets[0];var aspect=videoAspect(assets),width=Math.round(aspect*height),_surroundingAssets=_slicedToArray(surroundingAssets,2),lowerAsset=_surroundingAssets[0],upperAsset=_surroundingAssets[1],lowerDiff=Math.abs(lowerAsset.width-width),upperDiff=Math.abs(upperAsset.width-width);return lowerDiff<upperDiff?lowerAsset:upperAsset};var still=function still(assets){var stillAsset=one(assets,{type:/^still_image$/,sortBy:"created_at desc"});// If no still is associated, check for channel artwork
return stillAsset||(stillAsset=channelArtworkStill(assets)),stillAsset||(stillAsset=one(assets,{container:/mp4/,sortBy:"width desc"})),stillAsset};var channelArtworkStill=function channelArtworkStill(assets){return one(assets,{type:/^channel_still_image$/,sortBy:"created_at desc"})};var thumbnailAssets=function thumbnailAssets(assets,options){if(options.stillUrl)return[{height:null,url:options.stillUrl,width:null}];var stillAsset=still(assets),stillAspect=stillAsset.width/stillAsset.height;return[320,640,960,1280,1920,3840].map(function(width){var height=Math.round(width/stillAspect),url=stillUrl(assets,{videoWidth:width,videoHeight:height,playButton:!1});return{height:height,url:url,width:width}})};var FAST_HOSTNAME=_app_hostname__WEBPACK_IMPORTED_MODULE_1___default()("fast");var stillUrl=function stillUrl(assets){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},stillAsset=still(assets);// @TODO should this throw an error instead?
if(stillAsset){if(stillAsset.status!==READY){// occasionally we might get a stillAsset that isn't ready, but its
// channel art is for an audio! fallback to that first!
var channelArtwork=channelArtworkStill();if(channelArtwork&&channelArtwork.status===READY)channelArtwork.url;else return"//".concat(FAST_HOSTNAME,"/assets/images/blank.gif")}options=utilities_obj__WEBPACK_IMPORTED_MODULE_0__.merge({aspect:stillAsset.width/stillAsset.height||1,// default to square if we can't determine the aspect
stillUrl:stillAsset.url,playButton:!1,playerColor:options.playerColor||"636155",videoWidth:stillAsset.width||640,videoHeight:stillAsset.height||360,stillSnap:!0},options);var stillWidth=options.videoWidth,stillHeight=options.videoHeight,result=new utilities_url__WEBPACK_IMPORTED_MODULE_2__.Url(options.stillUrl);// Don't do anything special if this is not a Wistia hosted image.
return(options.retina&&(result.params.image_play_button_size="2x",stillWidth*=2,stillHeight*=2),options.stillSnap&&(stillWidth=getStillWidth({videoWidth:stillWidth,stillAssetWidth:stillAsset.width||640// there have been times where we fail to have proper width returned
}),stillHeight=Math.round(stillWidth/options.aspect)),!isBakeryUrl(options.stillUrl))?options.stillUrl:("https:"===options.protocol&&(result.protocol="https:",result.host="embed-ssl.wistia.com"),result.params.image_crop_resized="".concat(stillWidth,"x").concat(stillHeight),(null==options.playButton||options.playButton)&&(result.params.image_play_button=1,result.params.image_play_button_color="".concat((""+options.playerColor).replace(/^#+/,""),"e0")),options.ext&&result.ext(options.ext),"bin"===result.ext()&&result.ext("jpg"),result.absolute())}};// We only make three sizes of a thumbnail for a given video: 1280, 960, and
// 640 wide. We have logic on the server that matches this as well. The idea
// is that since we only use these three, we can generate them beforehand so
// they're always ready and automatic for the people.
var getStillWidth=function getStillWidth(options){var potentialStillWidths=[640,960,1280,1920,3840];// We also have a still that's the exact width of the one they uploaded
// or generated (so long as it is less than 3840px across)
3840>options.stillAssetWidth&&potentialStillWidths.push(options.stillAssetWidth);for(var width,availableStillWidths=[],i=0;i<potentialStillWidths.length;i++)width=potentialStillWidths[i],width<=options.stillAssetWidth&&availableStillWidths.push(width);// sort the widths in place.
availableStillWidths.sort(function(a,b){return a-b});// Use the still that's equal to or slightly larger than the size of the
// video embed.
for(var _width,_i2=0;_i2<availableStillWidths.length;_i2++)if(_width=availableStillWidths[_i2],options.videoWidth<=_width)return _width;// Can't find one that fits? Let's use the biggest available width.
return Math.max.apply(Math,availableStillWidths)};var BAKERY_HOSTS=["undefined","embed-ssl.wistia.com","undefined","undefined",_app_hostname__WEBPACK_IMPORTED_MODULE_1___default()("embed"),_app_hostname__WEBPACK_IMPORTED_MODULE_1___default()("prime"),_app_hostname__WEBPACK_IMPORTED_MODULE_1___default()("mixergy-cdn"),_app_hostname__WEBPACK_IMPORTED_MODULE_1___default()("embed-a"),// XXX: akamai test
_app_hostname__WEBPACK_IMPORTED_MODULE_1___default()("embed-fastly"),// XXX: akamai test
"embedwistia-a.akamaihd.net"];// Check if a given url is like embed.wistia.com, embed-ssl.wistia.com,
// prime.wistia.com, etc.
var isBakeryUrl=function isBakeryUrl(rawUrl){if(null==rawUrl)return!1;var url=new utilities_url__WEBPACK_IMPORTED_MODULE_2__.Url(rawUrl);return!!url.host&&0<=BAKERY_HOSTS.join(",").indexOf(url.host)};var onePublicReadyWithContainer=function onePublicReadyWithContainer(assets,type,options){return options=utilities_obj__WEBPACK_IMPORTED_MODULE_0__.merge({container:type,public:!0,status:READY},options),one(assets,options)};var mp4=function mp4(assets,options){return onePublicReadyWithContainer(assets,"mp4",options)};var webm=function webm(assets,options){return onePublicReadyWithContainer(assets,"webm",options)};var m3u8=function m3u8(assets,options){return onePublicReadyWithContainer(assets,"m3u8",options)};var flv=function flv(assets,options){return onePublicReadyWithContainer(assets,"flv",options)};var original=function original(assets){return one(assets,{type:"original"})};// If we support webm, prefer webm (since VP9 codec is better), otherwise
// use mp4 (h264)
var playable=function playable(assets,options){var detect=2<arguments.length&&arguments[2]!==void 0?arguments[2]:(0,utilities_detect__WEBPACK_IMPORTED_MODULE_3__.cachedDetect)();return detect.video.webm?webm(assets,options)||mp4(assets,options):mp4(assets,options)};var isScreencast=function isScreencast(assets){var asset=original(assets);return asset&&640<asset.width&&1200>asset.bitrate};var videoAspect=function videoAspect(assets){var asset=mp4(assets)||flv(assets)||m3u8(assets)||webm(assets)||original(assets);return asset&&asset.height?asset.width/asset.height:640/360};var originalAspect=function originalAspect(assets){var derivativeAspect=videoAspect(assets),asset=original(assets);if(asset&&asset.width&&asset.height){var candidateAspect=asset.width/asset.height;return 1<candidateAspect&&1>derivativeAspect||1>candidateAspect&&1<derivativeAspect?1/candidateAspect:candidateAspect}return derivativeAspect};var iphone=function iphone(assets,options){var aspect=videoAspect(assets);if(1<aspect)return options=utilities_obj__WEBPACK_IMPORTED_MODULE_0__.merge({width:640},options),mp4(assets,options)||smallestNormalMp4(assets,options);var opt1=utilities_obj__WEBPACK_IMPORTED_MODULE_0__.merge({width:320},options),opt2=utilities_obj__WEBPACK_IMPORTED_MODULE_0__.merge({width:640},options);return mp4(assets,opt1)||mp4(assets,opt2)||smallestNormalMp4(assets,options)};var smallestNormalMp4=function smallestNormalMp4(assets,options){return options=utilities_obj__WEBPACK_IMPORTED_MODULE_0__.merge({sortBy:"width asc",width:[640,1920]},options),mp4(assets,options)};var urlWithCorrectHost=function urlWithCorrectHost(assetUrl){var proto=1<arguments.length&&void 0!==arguments[1]?arguments[1]:player_lib_hosts__WEBPACK_IMPORTED_MODULE_4__.eV1Protocol(),parsedUrl=new utilities_url__WEBPACK_IMPORTED_MODULE_2__.Url(assetUrl);return isBakeryUrl(assetUrl)&&("https:"===proto?(parsedUrl.host=player_lib_hosts__WEBPACK_IMPORTED_MODULE_4__.deliveryHost(location.protocol),parsedUrl.protocol="https:"):(parsedUrl.host=player_lib_hosts__WEBPACK_IMPORTED_MODULE_4__.deliveryHost(location.protocol),parsedUrl.protocol="http:")),parsedUrl.absolute()};// It is possible for our customers to give us quality ranges that are
// impossible to solve for a given video. In these cases, we want to instead
// use the assets that are closest to satisfying their constraints. For
// example, if they specify 4k and we only go up to 1080p, it'll use 1080p.
// Or if they specify a range _between_ two, say 800p to 900p, it'll use the
// two surrounding values: 720p and 1080p.
var nearestOutsideRange=function nearestOutsideRange(assets,lower,upper){if(0===assets.length)return[];for(var lowerAsset,upperAsset,sortedAssets=aps.call(assets).sort(function(a,b){return numericSizeSnapped(a.width,a.height)-numericSizeSnapped(b.width,b.height)}),i=0;i<sortedAssets.length;i++){var asset=sortedAssets[i],assetSize=numericSizeSnapped(asset.width,asset.height);if(assetSize<lower&&(lowerAsset=asset),assetSize>=upper){upperAsset=asset;break}}// get rid of nulls
var result=[];return lowerAsset&&result.push(lowerAsset),upperAsset&&result.push(upperAsset),0===result.length&&(utilities_wlog__WEBPACK_IMPORTED_MODULE_5__.wlog.error("nearestOutsideRange: no nearby assets found, using first in list",sortedAssets[0]),result.push(sortedAssets[0])),result};// This operates on the array in-place
var moveToFront=function moveToFront(assets,toFront){if(!toFront)return assets;for(var asset,index=-1,i=0;i<assets.length;i++)if(asset=assets[i],asset.url===toFront.url){index=i;break}// If it's -1, it wasn't found. If it's 0, it's already in front.
return 0<index&&(assets.splice(index,1),assets.unshift(toFront)),assets};

/***/ }),

/***/ 60:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "callUnbinds": function() { return /* binding */ callUnbinds; },
/* harmony export */   "destroyControl": function() { return /* binding */ destroyControl; },
/* harmony export */   "maybeDestroyControls": function() { return /* binding */ maybeDestroyControls; },
/* harmony export */   "maybeInitializeControls": function() { return /* binding */ maybeInitializeControls; },
/* harmony export */   "mountControls": function() { return /* binding */ mountControls; },
/* harmony export */   "setControlProps": function() { return /* binding */ setControlProps; },
/* harmony export */   "removeRootElem": function() { return /* binding */ removeRootElem; },
/* harmony export */   "runOnControlPropsUpdated": function() { return /* binding */ runOnControlPropsUpdated; },
/* harmony export */   "getSortedControlsByType": function() { return /* binding */ getSortedControlsByType; },
/* harmony export */   "pickControlDefinitionsWithTypes": function() { return /* binding */ pickControlDefinitionsWithTypes; },
/* harmony export */   "unmountReactMounts": function() { return /* binding */ unmountReactMounts; },
/* harmony export */   "unsetObjectProperties": function() { return /* binding */ unsetObjectProperties; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(promiscuous__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var utilities_assign_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18);
/* harmony import */ var player_control_definitions_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61);
var _W$lib=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/detect"),cachedDetect=_W$lib.cachedDetect,_W$lib2=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/timeout-utils"),doTimeout=_W$lib2.doTimeout,clearTimeouts=_W$lib2.clearTimeouts,_W$lib3=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("player/lib/elem"),elemBind=_W$lib3.elemBind,elemRemove=_W$lib3.elemRemove,elemUnbind=_W$lib3.elemUnbind,_W$lib4=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("preact"),h=_W$lib4.h,render=_W$lib4.render,_W$lib5=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib("utilities/seqid"),seqId=_W$lib5.seqId,detect=cachedDetect();// Call functions that we've pushed into control.unbinds.
var callUnbinds=function callUnbinds(control){control.unbinds instanceof Array&&(control.unbinds.map(function(unbind){try{"function"==typeof unbind&&unbind()}catch(e){setTimeout(function(){throw e},1)}}),control.unbinds=null)};var destroyControl=function destroyControl(control){control._destroyed=!0,callUnbinds(control),removeRootElem(control),unmountReactMounts(control),unsetObjectProperties(control)};var maybeDestroyControls=function maybeDestroyControls(_ref){var controls=_ref.controls,isControlDisabled=_ref.isControlDisabled,shouldMount=_ref.shouldMount,destroyedControls=[];for(var handle in controls){var control=controls[handle];if(isControlDisabled(handle)||!shouldMount(control.constructor)){if(control.destroy)try{control.destroy()}catch(e){setTimeout(function(){throw e},1)}control.__destroyed=!0,delete controls[control.constructor.handle],destroyedControls.push(control)}}return destroyedControls};var maybeInitializeControls=function maybeInitializeControls(_ref2){var controlDefinitions=_ref2.controlDefinitions,controls=_ref2.controls,isControlDisabled=_ref2.isControlDisabled,initControl=_ref2.initControl,onMount=_ref2.onMount,shouldMount=_ref2.shouldMount,reevaluateShouldMount=_ref2.reevaluateShouldMount,newControls=[],existingControls=[],_loop=function _loop(handle){var ControlClass=controlDefinitions[handle],hasBeenInitialized=null!=controls[handle],shouldDoMount=!isControlDisabled(handle)&&shouldMount(ControlClass);if(reevaluateShouldMount(ControlClass),shouldDoMount&&hasBeenInitialized)return existingControls.push(controls[handle]),"continue";if(!hasBeenInitialized&&shouldDoMount)try{var control=controls[handle]=initControl(ControlClass);control.mounted=new (promiscuous__WEBPACK_IMPORTED_MODULE_1___default())(function(resolve){control.__didMount=function(){control.mounted.isResolved=!0,onMount(handle),resolve()}}),newControls.push(control)}catch(e){setTimeout(function(){throw e},1)}};for(var handle in controlDefinitions){var _ret=_loop(handle);"continue"===_ret}return[newControls,existingControls]};var mountControl=function mountControl(control,mountFn){try{var handle=control.constructor.handle,mountResult=mountFn();return mountResult&&mountResult.then&&mountResult["catch"]?(mountResult.handle=handle,mountResult.then(function(){control.__didMount()})):control.__didMount(),promiscuous__WEBPACK_IMPORTED_MODULE_1___default().resolve(mountResult)}catch(e){return setTimeout(function(){throw e},0),promiscuous__WEBPACK_IMPORTED_MODULE_1___default().resolve()}},renderHourglassLoader=function renderHourglassLoader(control,promise,options){return new (promiscuous__WEBPACK_IMPORTED_MODULE_1___default())(function(resolve){// we wanna wait 300ms before showing the loading indication
var timeoutKey="".concat(control.video.uuid,".loading_indicator.").concat(seqId());doTimeout(timeoutKey,function(){control.video.controls.loadingHourglass.show(options),detect.touchScreen?elemBind(document,"touchstart",function(){try{control.video.controls.loadingHourglass.hide()}catch(e){setTimeout(function(){throw e},0)}return resolve(),elemUnbind}):elemBind(document,"mousedown",function(){try{control.video.controls.loadingHourglass.hide()}catch(e){setTimeout(function(){throw e},0)}return resolve(),elemUnbind})},300),promise.then(function(){clearTimeouts(timeoutKey),control.video.controls.loadingHourglass.hide(),resolve()})})};var mountControls=function mountControls(controls,mountRefs){return promiscuous__WEBPACK_IMPORTED_MODULE_1___default().all(controls.map(function(control){var handle=control.constructor.handle;control.loading||(control.loading=function(promise){var options=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return renderHourglassLoader(control,promise,options)});var mountPoint=mountRefs[handle];return mountControl(control,function(){return control.mount(mountPoint)})}))};var setControlProps=function setControlProps(controls,propsByType){for(var handle in controls){var control=controls[handle];control.__prevProps=control.props||{},control.props=(0,utilities_assign_js__WEBPACK_IMPORTED_MODULE_2__.default)({},propsByType[control.constructor.type])}};var removeRootElem=function removeRootElem(control){control.rootElem&&elemRemove(Array.prototype.slice.call(control.rootElem.childNodes))};var renderNothingForReactMount=function renderNothingForReactMount(reactMount){var containerElem=reactMount[0],renderedElem=reactMount[1];containerElem&&renderedElem&&render(h("nothing",null),containerElem)};var runOnControlPropsUpdated=function runOnControlPropsUpdated(controls){controls.forEach(function(control){if("function"==typeof control.onControlPropsUpdated)try{control.onControlPropsUpdated(control.__prevProps||{})}catch(e){setTimeout(function(){throw e},0)}control.__prevProps=null})};var startsWithDoubleUnderscore=function startsWithDoubleUnderscore(str){return"_"===str[0]&&"_"===str[1]};var getSortedControlsByType=function getSortedControlsByType(controls){var result={};// bucket
for(var handle in controls){var control=controls[handle],type=control.constructor.type;null==result[type]&&(result[type]=[]),result[type].push(control)}// sort each bucket
for(var _type in result)result[_type].sort(function(control1,control2){return(control1.constructor.sortValue||0)-(control2.constructor.sortValue||0)});return result};var pickControlDefinitionsWithTypes=function pickControlDefinitionsWithTypes(types){var globalControlDefinitions=(0,player_control_definitions_js__WEBPACK_IMPORTED_MODULE_3__.getControlDefinitions)(),result={};for(var k in globalControlDefinitions){var controlDef=globalControlDefinitions[k];0<=types.indexOf(controlDef.type)&&(result[k]=controlDef)}return result};var unmountReactMounts=function unmountReactMounts(control){// Controls that render to react can save the relevant mount points like:
//
// control.reactMounts = [control.rootElem, control.thumbnailElem]
//
// or in the case where there are multiple mounts (like button and dialog)
//
// control.reactMounts.button = [control.buttonRoot, control.buttonElem]
// control.reactMounts.dialog = [control.dialogRoot, control.dialogElem]
//
// And control code will automatically unmount on destroy to clean up any
// dangling react DOM nodes.
var reactMounts=control.reactMounts;if(reactMounts)if(reactMounts instanceof Array)renderNothingForReactMount(reactMounts);else for(var mountName in reactMounts)reactMounts.hasOwnProperty(mountName)&&reactMounts[mountName]&&renderNothingForReactMount(reactMounts[mountName])};var unsetObjectProperties=function unsetObjectProperties(control){// Null out any object properties that may cause a reference.
for(var k in control)control.hasOwnProperty(k)&&!startsWithDoubleUnderscore(k)&&"mounted"!==k&&(control[k]=null);// Set control again because we would've just unset it above.
control.__prevProps=null,control._destroyed=!0};

/***/ }),

/***/ 34:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "isDocReady": function() { return /* reexport safe */ utilities_docReady_js__WEBPACK_IMPORTED_MODULE_1__.isDocReady; },
/* harmony export */   "onDocReady": function() { return /* reexport safe */ utilities_docReady_js__WEBPACK_IMPORTED_MODULE_1__.onDocReady; },
/* harmony export */   "pageLoaded": function() { return /* reexport safe */ utilities_pageLoaded_js__WEBPACK_IMPORTED_MODULE_2__.default; },
/* harmony export */   "execScriptTags": function() { return /* reexport safe */ player_lib_script_tags_js__WEBPACK_IMPORTED_MODULE_6__.execScriptTags; },
/* harmony export */   "getScriptTags": function() { return /* reexport safe */ player_lib_script_tags_js__WEBPACK_IMPORTED_MODULE_6__.getScriptTags; },
/* harmony export */   "removeScriptTags": function() { return /* reexport safe */ player_lib_script_tags_js__WEBPACK_IMPORTED_MODULE_6__.removeScriptTags; },
/* harmony export */   "elemOffset": function() { return /* reexport safe */ player_lib_elemOffset_js__WEBPACK_IMPORTED_MODULE_5__.elemOffset; },
/* harmony export */   "elemZoom": function() { return /* reexport safe */ player_lib_elemOffset_js__WEBPACK_IMPORTED_MODULE_5__.elemZoom; },
/* harmony export */   "isBoxModel": function() { return /* reexport safe */ player_lib_elemOffset_js__WEBPACK_IMPORTED_MODULE_5__.isBoxModel; },
/* harmony export */   "elemHtml": function() { return /* binding */ elemHtml; },
/* harmony export */   "getCssTags": function() { return /* binding */ getCssTags; },
/* harmony export */   "execCssTags": function() { return /* binding */ execCssTags; },
/* harmony export */   "removeCssTags": function() { return /* binding */ removeCssTags; },
/* harmony export */   "addInlineCss": function() { return /* binding */ addInlineCss; },
/* harmony export */   "elemFromObject": function() { return /* binding */ elemFromObject; },
/* harmony export */   "elemToObject": function() { return /* binding */ elemToObject; },
/* harmony export */   "elemClone": function() { return /* binding */ elemClone; },
/* harmony export */   "elemAppend": function() { return /* binding */ elemAppend; },
/* harmony export */   "elemPrepend": function() { return /* binding */ elemPrepend; },
/* harmony export */   "elemBefore": function() { return /* binding */ elemBefore; },
/* harmony export */   "elemAfter": function() { return /* binding */ elemAfter; },
/* harmony export */   "elemRemove": function() { return /* binding */ elemRemove; },
/* harmony export */   "elemRemoveClass": function() { return /* binding */ elemRemoveClass; },
/* harmony export */   "elemAddClass": function() { return /* binding */ elemAddClass; },
/* harmony export */   "elemHasClass": function() { return /* binding */ elemHasClass; },
/* harmony export */   "elemClasses": function() { return /* binding */ elemClasses; },
/* harmony export */   "elemStyle": function() { return /* binding */ elemStyle; },
/* harmony export */   "propsWithVendorPrefixes": function() { return /* binding */ propsWithVendorPrefixes; },
/* harmony export */   "getComputedStyle": function() { return /* binding */ getComputedStyle; },
/* harmony export */   "elemWidth": function() { return /* binding */ elemWidth; },
/* harmony export */   "elemHeight": function() { return /* binding */ elemHeight; },
/* harmony export */   "elemContainsOffset": function() { return /* binding */ elemContainsOffset; },
/* harmony export */   "elemScrollOffset": function() { return /* binding */ elemScrollOffset; },
/* harmony export */   "elemIsHidden": function() { return /* binding */ elemIsHidden; },
/* harmony export */   "elemInDom": function() { return /* binding */ elemInDom; },
/* harmony export */   "elemIsDescendantOf": function() { return /* binding */ elemIsDescendantOf; },
/* harmony export */   "elemAncestorWithClass": function() { return /* binding */ elemAncestorWithClass; },
/* harmony export */   "elemAncestorHasClass": function() { return /* binding */ elemAncestorHasClass; },
/* harmony export */   "elemAncestors": function() { return /* binding */ elemAncestors; },
/* harmony export */   "elemIsInside": function() { return /* binding */ elemIsInside; },
/* harmony export */   "elemAnimate": function() { return /* binding */ elemAnimate; },
/* harmony export */   "elemBind": function() { return /* binding */ elemBind; },
/* harmony export */   "elemUnbind": function() { return /* binding */ elemUnbind; },
/* harmony export */   "elemUnbindAll": function() { return /* binding */ elemUnbindAll; },
/* harmony export */   "elemUnbindAllInside": function() { return /* binding */ elemUnbindAllInside; },
/* harmony export */   "elemBindKey": function() { return /* binding */ elemBindKey; },
/* harmony export */   "elemRebind": function() { return /* binding */ elemRebind; },
/* harmony export */   "elemBindOnce": function() { return /* binding */ elemBindOnce; },
/* harmony export */   "elemTrigger": function() { return /* binding */ elemTrigger; },
/* harmony export */   "fullscreenElement": function() { return /* binding */ fullscreenElement; },
/* harmony export */   "elemRequestFullscreen": function() { return /* binding */ elemRequestFullscreen; },
/* harmony export */   "elemCancelFullscreen": function() { return /* binding */ elemCancelFullscreen; },
/* harmony export */   "elemStripEventAttributes": function() { return /* binding */ elemStripEventAttributes; },
/* harmony export */   "elemMutationObserver": function() { return /* binding */ elemMutationObserver; },
/* harmony export */   "docScrollTop": function() { return /* binding */ docScrollTop; },
/* harmony export */   "docScrollLeft": function() { return /* binding */ docScrollLeft; },
/* harmony export */   "safeRequestAnimationFrame": function() { return /* binding */ safeRequestAnimationFrame; },
/* harmony export */   "formInputIsFocused": function() { return /* binding */ formInputIsFocused; },
/* harmony export */   "inUserEventContext": function() { return /* binding */ inUserEventContext; },
/* harmony export */   "getLastActiveEventAt": function() { return /* binding */ getLastActiveEventAt; }
/* harmony export */ });
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
/* harmony import */ var utilities_docReady_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35);
/* harmony import */ var utilities_pageLoaded_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36);
/* harmony import */ var utilities_detect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20);
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(19);
/* harmony import */ var player_lib_elemOffset_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37);
/* harmony import */ var player_lib_script_tags_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38);
/* harmony import */ var utilities_seqid__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8);
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1);
var W=wistia_namespace__WEBPACK_IMPORTED_MODULE_8__.default,detect=(0,utilities_detect__WEBPACK_IMPORTED_MODULE_3__.cachedDetect)();var elemHtml=function elemHtml(elem,content){var cssTags=getCssTags(content),scriptTags=(0,player_lib_script_tags_js__WEBPACK_IMPORTED_MODULE_6__.getScriptTags)(content);// these script tags will be removed in short order as part of the script
// loader
return content=removeCssTags(content),content=(0,player_lib_script_tags_js__WEBPACK_IMPORTED_MODULE_6__.removeScriptTags)(content),elem.innerHTML=content,execCssTags(cssTags,elem),(0,player_lib_script_tags_js__WEBPACK_IMPORTED_MODULE_6__.execScriptTags)(scriptTags)};var getCssTags=function getCssTags(htmlStr){return htmlStr.match(/<link.*?rel=['"]stylesheet['"][^>]*>|<style>[\s\S]+?<\/style>/gi)||[]};var execCssTags=function execCssTags(cssTags,parentElem){if(!cssTags)return null;(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray)(cssTags)||(cssTags=getCssTags(cssTags));for(var cssTag,inserted=[],i=0;i<cssTags.length;i++)if(cssTag=cssTags[i],/<link.*?rel=['"]stylesheet['"][^>]*>/.test(cssTag)){var matches=cssTag.match(/href=['"](.*?)['"]/i);if(matches){var link=document.createElement("link");link.setAttribute("rel","stylesheet"),link.setAttribute("href",matches[1]),link.className="wistia_injected_style",(parentElem||document.body||document.head).appendChild(link),inserted.push(link)}}else if(/<style>[\s\S]+?<\/style>/gi.test(cssTag)){var _matches=cssTag.match(/<style>([\s\S]+?)<\/style>/i);if(_matches){var style=addInlineCss(parentElem||document.body||document.head,_matches[1]);inserted.push(style)}}return inserted};var removeCssTags=function removeCssTags(htmlStr){return htmlStr.replace(/<link.*?rel=['"]stylesheet['"][^>]*>|<style>[\s\S]+?<\/style>/gi,"")};var addInlineCss=function addInlineCss(domTarget,css){var target=domTarget||document.body||document.head,styleElem=document.createElement("style");return styleElem.id=(0,utilities_seqid__WEBPACK_IMPORTED_MODULE_7__.seqId)("wistia_","_style"),styleElem.setAttribute("type","text/css"),styleElem.className="wistia_injected_style",target.appendChild(styleElem,target.nextSibling),styleElem.styleSheet?styleElem.styleSheet.cssText=css:styleElem.appendChild(document.createTextNode(css)),styleElem};var elemFromObject=function elemFromObject(obj){if((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray)(obj)){for(var result=[],i=0;i<obj.length;i++)result.push(elemFromObject(obj[i]));return result}var tagName=obj.tagName||"div",childNodes=obj.childNodes||[];(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray)(childNodes)||(childNodes=[childNodes]);var elem=document.createElement(tagName);for(var key in obj){var val=obj[key];if("childNodes"!=key&&"tagName"!==key&&"ref"!==key){var dashedKey=key.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if("style"==key){if((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isObject)(val))for(var p in val)elem.style[p]=val[p];else// setAttribute('style', ...) only works in IE8+, so parse inline
// styles if it's passed in as a string.
for(var styles=val.split(";"),_i=0;_i<styles.length;_i++){var pair=styles[_i].split(/\s*:\s*/),_p=pair[0],v=pair[1];_p&&v&&(elem.style[_p]=v)}}else if("events"===key)for(var evt in val){var callback=val[evt];elemBind(elem,evt,callback)}else"className"===key||"class"===key?elem.className=val:"innerHTML"===key?elem.innerHTML=val:"innerText"===key?elem.innerText=val:null!=val&&"function"==typeof val.toString&&elem.setAttribute(dashedKey,val.toString())}}for(var childObj,_i2=0;_i2<childNodes.length;_i2++)if(childObj=childNodes[_i2],(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isObject)(childObj)){var child=elemFromObject(childObj);elemAppend(elem,child)}else{var _child=document.createTextNode(childObj.toString());elemAppend(elem,_child)}return"function"==typeof obj.ref&&obj.ref(elem),elem};var elemToObject=function elemToObject(elem){if((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray)(elem))for(var _result=[],i=0;i<elem.length;i++)_result.push(elemToObject(elem[i]));for(var attr,result={tagName:elem.tagName.toLowerCase()},elemKeys=Object.keys(elem),_i3=0;_i3<elemKeys.length;_i3++)if(attr=elemKeys[_i3],"tagName"===attr||"childNodes"===attr||"nodeType"===attr||"nodeValue"===attr)continue;else if("style"===attr){result.style={};for(var styleKeys=Object.keys(elem.style),j=0;j<styleKeys.length;j++){var prop=styleKeys[j],val=elem.style[prop];val&&!/^\d/.test(prop)&&"length"!==prop&&(result.style[prop]=val)}}else{var value=elem.getAttribute(attr);null!=value&&(result[attr]=value)}for(var child,children=[],_i4=0;_i4<elem.childNodes.length;_i4++)child=elem.childNodes[_i4],1===child.nodeType?children.push(elemToObject(child)):3===child.nodeType&&children.push(child.nodeValue);return 0<children.length&&(result.childNodes=children),result};var elemClone=function elemClone(elem){var obj=elemToObject(elem);return elemFromObject(obj)};var elemAppend=function elemAppend(par,elem){if((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray)(elem)){for(var i=0;i<elem.length;i++)elemAppend(par,elem[i]);return}par.appendChild(elem)};var elemPrepend=function elemPrepend(par,elem){if((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray)(elem)){for(var i=0;i<elem.length;i++)elemPrepend(par,elem[i]);return}return 0===par.childNodes.length?elemAppend(par,elem):par.insertBefore(elem,par.childNodes[0])};var elemBefore=function elemBefore(sibling,elem){if((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray)(elem)){elem=elem.reverse();for(var i=0;i<elem.length;i++)elemBefore(sibling,elem[i]);return}return sibling.parentNode.insertBefore(elem,sibling)};var elemAfter=function elemAfter(sibling,elem){if((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray)(elem)){elem=elem.reverse();for(var i=0;i<elem.length;i++)elemAfter(sibling,elem[i]);return}return sibling.parentNode.insertBefore(elem,sibling.nextSibling)};var elemRemove=function elemRemove(elem){if((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray)(elem)||window.NodeList&&elem instanceof NodeList){for(var i=0;i<elem.length;i++)elemRemove(elem[i]);return}var par;null!=elem&&(1===elem.nodeType||3===elem.nodeType)&&(par=elem.parentNode)&&(par.removeChild(elem),elem=null)};var elemRemoveClass=function elemRemoveClass(elem,klass){if((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray)(elem)||window.NodeList&&elem instanceof NodeList){for(var i=0;i<elem.length;i++)elemRemoveClass(elem[i],klass);return}if(elemHasClass(elem,klass)){var className=elem.getAttribute("class");if(className){var regexp=new RegExp("\\b".concat(klass,"\\b"),"g"),newClassString=normalizeClassName(className.replace(regexp,""));elem.setAttribute("class",newClassString)}}};var elemAddClass=function elemAddClass(elem,klass){if((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray)(elem)||window.NodeList&&elem instanceof NodeList){for(var i=0;i<elem.length;i++)elemAddClass(elem[i],klass);return}if(!elemHasClass(elem,klass)){var newClassString,className=elem.getAttribute("class");className?(elemRemoveClass(elem,klass),newClassString=normalizeClassName("".concat(className," ").concat(klass))):newClassString=klass,elem.setAttribute("class",newClassString)}};// Longer than ` ${elem.className} `.indexOf(` ${klass} `) >= 0, but doesn't
// cause JIT code deoptimization in Chrome.
var elemHasClass=function elemHasClass(elem,klass){var className=null!=elem&&"function"==typeof elem.getAttribute&&elem.getAttribute("class");if(!className&&elem&&"string"==typeof elem.className&&(className=elem.className),!className)return!1;var returnValue=!1;return eachIndexOf(className,klass,function(index){var classBeginningFound=0===index||" "===className.charAt(index-1),endsWidthClass=index+klass.length===className.length,classInMiddle=" "===className.charAt(index+klass.length);if(classBeginningFound&&(endsWidthClass||classInMiddle))return returnValue=!0,BREAK_IDENTIFIER}),returnValue};var BREAK_IDENTIFIER={},eachIndexOf=function eachIndexOf(str,needle,fn){for(var i=-1;-1!=(i=str.indexOf(needle,i+1))&&!(fn(i)===BREAK_IDENTIFIER););};var elemClasses=function elemClasses(elem){return elem&&"string"!=typeof elem.className?[""]:(elem&&elem.className||"").split(/\s+/)};var normalizeClassName=function normalizeClassName(className){return className.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g," ")};var elemStyle=function elemStyle(elem){for(var _len=arguments.length,args=Array(1<_len?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];if((0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray)(elem)||window.NodeList&&elem instanceof NodeList){for(var node,result=[],i=0;i<elem.length;i++)node=elem[i],1===node.nodeType&&result.push(elemStyle.apply(void 0,[node].concat(args)));return result}if(2===args.length){var prop=args[0],val=args[1];elem.style[prop]=val}else if(1!==args.length)utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.apply(void 0,["Unexpected args",elem].concat(args));else if("string"==typeof args[0]){var _prop=args[0];try{return elem.currentStyle?elem.currentStyle[_prop]:window.getComputedStyle?window.getComputedStyle(elem,null).getPropertyValue(_prop):null}catch(e){utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.notice(e)}}else{var props=propsWithVendorPrefixes(args[0]);for(var _prop2 in props){var _val=props[_prop2];elem.style[_prop2]=_val}}};var VENDORED_PROPERTIES={borderImage:!0,mixBlendMode:!0,transform:!0,transition:!0,transitionDuration:!0},VENDOR_PREFIXES=["webkit","moz","o","ms"];var propsWithVendorPrefixes=function propsWithVendorPrefixes(props){if(detect.chrome)return props;var result={};for(var prop in props){var val=props[prop];if(result[prop]=val,VENDORED_PROPERTIES[prop])for(var prefixes=VENDOR_PREFIXES,i=0;i<prefixes.length;i++){var prefix=prefixes[i],prefixedProp=prefix+prop.charAt(0).toUpperCase()+prop.slice(1);prop[prefixedProp]||(result[prefixedProp]=val)}}return result};var getComputedStyle=function getComputedStyle(elem,prop){if(!window.getComputedStyle)return null;var computed=window.getComputedStyle(elem,null);return null==computed?null:null==prop?computed:computed[prop]};var elemWidth=function elemWidth(elem){if(elem===window)return window.innerWidth?window.innerWidth:document.documentElement?document.documentElement.offsetWidth:document.body.offsetWidth;if(elem===document){var body=document.body,html=document.documentElement;return Math.max(body.scrollWidth,body.offsetWidth,html.clientWidth,html.scrollWidth,html.offsetWidth)}var val;return detect.browser.quirks?parseInt(elem.offsetWidth,10):(val=getComputedStyle(elem,"width"))&&null!=val?parseFloat(val):elem.currentStyle?elem.offsetWidth:-1};var elemHeight=function elemHeight(elem){if(elem===window)return window.innerHeight?window.innerHeight:document.documentElement?document.documentElement.offsetHeight:document.body.offsetHeight;if(elem===document){var body=document.body,html=document.documentElement;return Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight)}var val;return detect.browser.quirks?parseInt(elem.offsetHeight,10):(val=getComputedStyle(elem,"height"))&&null!=val?parseFloat(val):elem.currentStyle?elem.offsetHeight:-1};var elemContainsOffset=function elemContainsOffset(elem,left,top){var offset=(0,player_lib_elemOffset_js__WEBPACK_IMPORTED_MODULE_5__.elemOffset)(elem);return offset.right=offset.left+elemWidth(elem),offset.bottom=offset.top+elemHeight(elem),offset.left<=left&&left<offset.right&&offset.top<=top&&top<offset.bottom};var elemScrollOffset=function elemScrollOffset(elem){var curLeft=0,curTop=0;if(elem.parentNode)for(;elem&&elem.offsetParent;)curTop+=elem.scrollTop,curLeft+=elem.scrollLeft,elem=elem.parentNode;return{left:curLeft,top:curTop}};var elemIsHidden=function elemIsHidden(elem){for(;elem&&1===elem.nodeType;){if("none"===elemStyle(elem,"display"))return!0;elem=elem.parentNode}return!1};var elemInDom=function elemInDom(elem){for(;elem=elem.parentNode;)if(elem===document)return!0;return!1};var elemIsDescendantOf=function elemIsDescendantOf(elem,target){for(var ancestors=elemAncestors(elem),i=0;i<ancestors.length;i++)if(ancestors[i]===target)return!0;return!1};var elemAncestorWithClass=function elemAncestorWithClass(elem,klass){for(var ancestors=elemAncestors(elem),i=0;i<ancestors.length;i++)if(elemHasClass(ancestors[i],klass))return ancestors[i];return null};var elemAncestorHasClass=function elemAncestorHasClass(elem,klass){var ancestor=elemAncestorWithClass(elem,klass);return!!ancestor};var elemAncestors=function elemAncestors(elem){for(var current=elem,result=[];current=current.parentNode;)result.push(current);return result};var elemIsInside=function elemIsInside(elem,ancestor){return elem===ancestor||elemIsDescendantOf(elem,ancestor)};var getTransitionProp=function getTransitionProp(props,time,easing){var result=[];for(var prop in props)result.push("".concat(prop," ").concat(time,"ms ").concat(easing));return result.join(",")};var elemAnimate=function elemAnimate(elem){var props=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},options=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{};options=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_0__.merge)({time:400,easing:"ease"},options);var transitions=getTransitionProp(props,options.time,options.easing);elemStyle(elem,{transition:transitions}),safeRequestAnimationFrame(function(){elemStyle(elem,props),setTimeout(function(){elemStyle(elem,{transition:""}),"function"==typeof options.callback&&options.callback()},options.time)})};var elemBind=function elemBind(elem,event,fn){var useCapture=!!(3<arguments.length&&void 0!==arguments[3])&&arguments[3],eventShim=function eventShim(e){e=e||window.event,!e.pageX&&!e.pageY&&(e.clientX||e.clientY)&&(e.pageX=e.clientX+docScrollLeft(),e.pageY=e.clientY+docScrollTop()),e.preventDefault||(e.preventDefault=function(){e.returnValue=!1}),e.stopPropagation||(e.stopPropagation=function(){e.cancelBubble=!0}),null==e.which&&(e.which=null==e.charCode?e.keyCode:e.charCode),null==e.which&&null!=e.button&&(1&e.button?e.which=1:2&e.button?e.which=3:4&e.button?e.which=2:detect.browser.msie&&0===e.button?e.which=1:e.which=0),e.target||e.srcElement&&(e.target=e.srcElement),e.target&&3===e.target.nodeType&&(e.target=e.target.parentNode);// Actually call the function
for(var _len2=arguments.length,args=Array(1<_len2?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];var result=fn.apply(e.target,[e].concat(args));// Sweet anonymous unbinding logic
return result===elemUnbind&&elemUnbind(elem,event,fn),result};W._elemBind=W._elemBind||{};var key=elemBindKey(elem,event,fn);return W._elemBind[key]=eventShim,eventShim.elem=elem,eventShim.event=event,detect.browser.msie&&9>detect.browser.version?elem.attachEvent("on".concat(event),eventShim):elem.addEventListener(event,eventShim,useCapture),function(){elemUnbind(elem,event,fn,useCapture)}};var elemUnbind=function elemUnbind(elem,event,fn){var useCapture=!!(3<arguments.length&&void 0!==arguments[3])&&arguments[3];if(null!=elem&&null!=elem._wistiaElemId&&null!=fn&&fn._wistiaBindId){var key=elemBindKey(elem,event,fn),eventShim=W._elemBind[key];return eventShim&&(detect.browser.msie&&9>detect.browser.version?elem.detachEvent("on".concat(event),eventShim):elem.removeEventListener(event,eventShim,useCapture),eventShim.elem=null,eventShim.event=null),delete W._elemBind[key]}};var elemUnbindAll=function elemUnbindAll(elem){for(var key in W._elemBind){var eventShim=W._elemBind[key];if(eventShim&&elem===eventShim.elem){var event=eventShim.event;detect.browser.msie&&9>detect.browser.version?eventShim.elem.detachEvent("on".concat(event),eventShim):eventShim.elem.removeEventListener(event,eventShim,!1),eventShim.elem=null,eventShim.event=null,delete W._elemBind[key]}}};var elemUnbindAllInside=function elemUnbindAllInside(container){var count=0;for(var key in W._elemBind){var eventShim=W._elemBind[key];if(eventShim&&elemIsInside(eventShim.elem,container)){var event=eventShim.event;detect.browser.msie&&9>detect.browser.version?eventShim.elem.detachEvent("on".concat(event),eventShim):eventShim.elem.removeEventListener(event,eventShim,!1),eventShim.elem=null,eventShim.event=null,delete W._elemBind[key],count+=1}}return count};var elemBindKey=function elemBindKey(elem,event,fn){return elem._wistiaElemId=elem._wistiaElemId||(0,utilities_seqid__WEBPACK_IMPORTED_MODULE_7__.seqId)("wistia_elem_"),fn._wistiaBindId=fn._wistiaBindId||(0,utilities_seqid__WEBPACK_IMPORTED_MODULE_7__.seqId)("wistia_bind_"),"".concat(elem._wistiaElemId,".").concat(event,".").concat(fn._wistiaBindId)};var elemRebind=function elemRebind(elem,event,fn){if(fn)return elemUnbind(elem,event,fn),elemBind(elem,event,fn)};var elemBindOnce=function elemBindOnce(elem,event,fn){var wrap=function wrap(){for(var _len3=arguments.length,args=Array(_len3),_key3=0;_key3<_len3;_key3++)args[_key3]=arguments[_key3];return fn.apply(this,args),elemUnbind};return elemBind(elem,event,wrap)};var elemTrigger=function elemTrigger(elem,event){for(var _len4=arguments.length,customArguments=Array(2<_len4?_len4-2:0),_key4=2;_key4<_len4;_key4++)customArguments[_key4-2]=arguments[_key4];if(elem.dispatchEvent){var eventObj=document.createEvent("Events");return eventObj.initEvent(event,!0,!1),"click"===event||"doubleclick"===event?eventObj.which=1:"rightclick"===event&&(eventObj.which=2),eventObj.customArguments=customArguments,elem.dispatchEvent(eventObj)}if(elem.fireEvent){var _eventObj={customArguments:customArguments};return elem.fireEvent("on"+event,_eventObj)}utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.error("neither dispatchEvent nor fireEvent is defined for",elem,event)};var fullscreenElement=function fullscreenElement(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement};var elemRequestFullscreen=function elemRequestFullscreen(elem){return elem.requestFullscreen?elem.requestFullscreen():elem.mozRequestFullScreen?elem.mozRequestFullScreen():elem.webkitRequestFullscreen?elem.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):elem.msRequestFullscreen?elem.msRequestFullscreen():elem.webkitEnterFullscreen?elem.webkitEnterFullscreen():(utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.notice("no requestFullscreen functionality detected"),null)};var elemCancelFullscreen=function elemCancelFullscreen(elem){return document.cancelFullscreen?document.cancelFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():elem&&elem.webkitExitFullscreen?elem.webkitExitFullscreen():(utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.notice("no cancelFullscreen functionality detected"),null)};var elemStripEventAttributes=function elemStripEventAttributes(elem){var attributes=elem&&elem.attributes||[];try{for(var attr,i=0;i<attributes.length;i++)attr=attributes[i],/^on.+/i.test(attr.name)&&(elem[attr.name]=null,elem.removeAttribute(attr.name))}catch(e){utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.error(e)}if(elem.childNodes)for(var child,_i5=0;_i5<elem.childNodes.length;_i5++)child=elem.childNodes[_i5],1===child.nodeType&&elemStripEventAttributes(child)};var elemMutationObserver=function elemMutationObserver(fn){var klass=detect.mutationObserver;return klass?new window[klass](fn):null};var docScrollTop=function docScrollTop(t){var docBody=document.body,docElem=document.documentElement;return null==t?docElem&&docElem.scrollTop||docBody&&docBody.scrollTop||0:void(docBody&&(docBody.scrollTop=t),docElem&&(docElem.scrollTop=t))};var docScrollLeft=function docScrollLeft(t){var docBody=document.body,docElem=document.documentElement;return null==t?docElem&&docElem.scrollLeft||docBody&&docBody.scrollLeft||0:void(docBody&&(docBody.scrollLeft=t),docElem&&(docElem.scrollLeft=t))};var safeRequestAnimationFrame=function safeRequestAnimationFrame(fn){var requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(callback){return setTimeout(callback,1e3/60)};return requestAnimFrame(fn)};var formInputIsFocused=function formInputIsFocused(){return /^textarea|input|select$/i.test(document.activeElement.tagName)};var inUserEventContext=function inUserEventContext(){return!!activeDOMEvent};var getLastActiveEventAt=function getLastActiveEventAt(){return lastActiveEventAt};var activeDOMEvent,lastActiveEventAt=-1,userEventsThatShowIntent=["auxclick","click","contextmenu","dblclick","focus","keydown","keypress","keyup","mousedown","mouseup","reset","submit","touchend","touchstart"];userEventsThatShowIntent.forEach(function(type){var onEvent=function onEvent(e){activeDOMEvent=e,lastActiveEventAt=Date.now(),setTimeout(function(){activeDOMEvent===e&&(activeDOMEvent=void 0)},0)};// We use capture = true because event.stopPropagation() would cause us to
// miss this.
elemBind(document,type,onEvent,!detect.passiveSupported||{capture:!0,passive:!0})});

/***/ }),

/***/ 37:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "isBoxModel": function() { return /* binding */ isBoxModel; },
/* harmony export */   "elemOffset": function() { return /* binding */ elemOffset; },
/* harmony export */   "elemZoom": function() { return /* binding */ elemZoom; }
/* harmony export */ });
// This is called very very frequently; creating and removing an element to
// test constantly is not ideal. So this method exists as an abstraction to
// cache the result.
var _isBoxModel;var isBoxModel=function isBoxModel(){if(null!=_isBoxModel)return _isBoxModel;var box=document.createElement("div");return box.style.paddingLeft=box.style.width="1px",document.body.appendChild(box),_isBoxModel=2===box.offsetWidth,document.body.removeChild(box),_isBoxModel};var elemOffset=function elemOffset(elem){var scrollTop,body=document.body,win=document.defaultView,docElem=document.documentElement,box=elem.getBoundingClientRect(),clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0;scrollTop=win&&null!=win.pageYOffset?win.pageYOffset:isBoxModel()&&docElem&&null!=docElem.scrollTop?docElem.scrollTop:body.scrollTop;var scrollLeft;scrollLeft=win&&null!=win.pageXOffset?win.pageXOffset:isBoxModel()&&docElem&&null!=docElem.scrollLeft?docElem.scrollLeft:body.scrollLeft;var zoom=elemZoom(elem);return{height:box.height*zoom,top:box.top*zoom+scrollTop-clientTop,left:box.left*zoom+scrollLeft-clientLeft,width:box.width*zoom,zoom:zoom}};var elemZoom=function elemZoom(elem){return elem&&elem!==document.documentElement?elemZoom(elem.parentElement)*(getComputedStyle(elem).zoom||1):1};

/***/ }),

/***/ 82:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "controlDimensionsForVideo": function() { return /* binding */ controlDimensionsForVideo; },
/* harmony export */   "scalingOptionsFromVideo": function() { return /* binding */ scalingOptionsFromVideo; },
/* harmony export */   "controlDimensions": function() { return /* binding */ controlDimensions; },
/* harmony export */   "bigPlayButtonDimensions": function() { return /* binding */ bigPlayButtonDimensions; },
/* harmony export */   "fontSizeMultiplier": function() { return /* binding */ fontSizeMultiplier; },
/* harmony export */   "allowBigControls": function() { return /* binding */ allowBigControls; },
/* harmony export */   "maxMultiplierForVideo": function() { return /* binding */ maxMultiplierForVideo; },
/* harmony export */   "minMultiplierForVideo": function() { return /* binding */ minMultiplierForVideo; },
/* harmony export */   "getZoomMultiplier": function() { return /* binding */ getZoomMultiplier; },
/* harmony export */   "getDeviceMultiplier": function() { return /* binding */ getDeviceMultiplier; },
/* harmony export */   "controlMultiplierForVideo": function() { return /* binding */ controlMultiplierForVideo; },
/* harmony export */   "controlMultiplier": function() { return /* binding */ controlMultiplier; },
/* harmony export */   "menuMultiplier": function() { return /* binding */ menuMultiplier; },
/* harmony export */   "fitControl": function() { return /* binding */ fitControl; },
/* harmony export */   "tapIcon": function() { return /* binding */ tapIcon; },
/* harmony export */   "parseMetaViewport": function() { return /* binding */ parseMetaViewport; },
/* harmony export */   "controlMultiplierBasedOnVideo": function() { return /* binding */ controlMultiplierBasedOnVideo; }
/* harmony export */ });
/* harmony import */ var player_lib_elem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34);
/* harmony import */ var player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33);
/* harmony import */ var utilities_detect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17);
function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i&&_arr.length===i));_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i["return"]||_i["return"]()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}var detect=(0,utilities_detect__WEBPACK_IMPORTED_MODULE_2__.cachedDetect)();var controlDimensionsForVideo=function controlDimensionsForVideo(video){var options=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},baseWidth=2<arguments.length?arguments[2]:void 0,baseHeight=3<arguments.length?arguments[3]:void 0;return controlDimensions(scalingOptionsFromVideo(video,options),baseWidth,baseHeight)};var scalingOptionsFromVideo=function scalingOptionsFromVideo(video,options){return utilities_obj__WEBPACK_IMPORTED_MODULE_3__.merge({videoWidth:video.videoWidth(),videoHeight:video.videoHeight(),isInFullscreen:video.inFullscreen(),controlScaling:video.controlScaling()},options)};var controlDimensions=function controlDimensions(){var options=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},baseWidth=1<arguments.length&&arguments[1]!==void 0?arguments[1]:40,baseHeight=2<arguments.length&&arguments[2]!==void 0?arguments[2]:34;options=utilities_obj__WEBPACK_IMPORTED_MODULE_3__.merge({videoWidth:640,videoHeight:360,isInFullscreen:!1,baseWidth:null==baseWidth?40:baseWidth,baseHeight:null==baseHeight?34:baseHeight},options);var multiplier=controlMultiplier(options);return{width:multiplier*options.baseWidth,height:multiplier*options.baseHeight}};var bigPlayButtonDimensions=function bigPlayButtonDimensions(options,baseWidth,baseHeight){return controlDimensions(options,baseWidth,baseHeight)};// abstracted so this can easily be changed if we wanted.
var fontSizeMultiplier=function fontSizeMultiplier(options){return controlMultiplier(options)};var allowBigControls=function allowBigControls(){var options=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},screenHeight=options.screenHeight||window.screen.height,screenWidth=options.screenWidth||window.screen.width;return"auto"!=options.controlScaling||detect.iphone||detect.android||screenWidth<screenHeight};var maxMultiplierForVideo=function maxMultiplierForVideo(options){return"auto"==options.controlScaling?allowBigControls(options)?3.5:1.4:options.controlScaling};var minMultiplierForVideo=function minMultiplierForVideo(options){return"auto"==options.controlScaling?allowBigControls(options)?1:.75:options.controlScaling};var getZoomMultiplier=function getZoomMultiplier(options){if(!options.isInFullscreen)return 1;var result=Math.max(1,window.innerWidth/Math.max(screen.width,screen.height));return result};var getDeviceMultiplier=function getDeviceMultiplier(options){return allowBigControls(options)?1.4:1};var controlMultiplierForVideo=function controlMultiplierForVideo(video,options){return controlMultiplier(scalingOptionsFromVideo(video,options))};var controlMultiplier=function controlMultiplier(options){if("auto"!=options.controlScaling)return options.controlScaling;var videoWidth=options.videoWidth,videoHeight=options.videoHeight,zoomMultiplier=getZoomMultiplier(options),largestDimension=Math.max(videoWidth,videoHeight);if(960<largestDimension){var percentOverThreshold=largestDimension/960,scaleFactor=percentOverThreshold*getDeviceMultiplier(options);return Math.min(maxMultiplierForVideo(options)*zoomMultiplier,scaleFactor*zoomMultiplier)}if(640>largestDimension){var percentUnderThreshold=largestDimension/640,_scaleFactor=percentUnderThreshold*getDeviceMultiplier(options);return Math.max(minMultiplierForVideo(options)*zoomMultiplier,_scaleFactor*zoomMultiplier)}return 1*getDeviceMultiplier(options)};// abstracted so this can easily be changed if we wanted.
var menuMultiplier=function menuMultiplier(options){return Math.max(.75,controlMultiplier(options))};var fitControl=function fitControl(options){var _options=options,controlId=_options.controlId,video=_options.video,controlElem=_options.controlElem;options=utilities_obj__WEBPACK_IMPORTED_MODULE_3__.merge({videoWidth:video.videoWidth(),videoHeight:video.videoHeight(),controlScaling:video.controlScaling(),isInFullscreen:video.inFullscreen()},options);var _controlDimensions=controlDimensions(options),width=_controlDimensions.width,height=_controlDimensions.height;return (0,player_lib_elem__WEBPACK_IMPORTED_MODULE_0__.elemStyle)(controlElem,{height:"".concat(height,"px"),width:"".concat(width,"px")}),tapIcon("".concat(video.uuid,".").concat(controlId),controlElem),{width:width,height:height}};// Often the svg size changes don't visually change the vertical position of
// the icon. "tapping" it by forcing it to reevaluate the stack is one way to
// fix that.
var tapIcon=function tapIcon(timeoutPrefix,controlElem){for(var svgs=controlElem.getElementsByTagName("svg"),i=0;i<svgs.length;i++)(function(svg){(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_1__.doTimeout)("".concat(timeoutPrefix,".tap_icon"),function(){(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_0__.elemStyle)(svg,{position:"relative"}),(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_1__.doTimeout)("#{timeoutPrefix}.tap_icon",function(){(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_0__.elemStyle)(svg,{position:""})},30)},30)})(svgs[i])};var parseMetaViewport=function parseMetaViewport(){var metaTag=document.querySelector("meta[name=viewport]"),content=metaTag&&metaTag.getAttribute("content"),result={};if(content){var pairs=content.split(/[\s,]+/);pairs.forEach(function(pair){var keyAndVal=pair.split("=");2===keyAndVal.length&&(result[keyAndVal[0]]=utilities_obj__WEBPACK_IMPORTED_MODULE_3__.cast(keyAndVal[1]))})}return result};var normalScaleWidthRange=function normalScaleWidthRange(media){var onMobile=detect.iphone||detect.ipad||detect.android;if(!onMobile)return[640,960];if(null!==media&&void 0!==media&&media.isAudio())return[500,960];var screenWidth,viewport=parseMetaViewport();if(viewport.width){screenWidth="number"==typeof viewport.width?0+viewport.width:screen.width||window.innerWidth;// This doesn't capture any scaling the user does after the initial
// render, but the page designer would expect the video to render at the
// scale they set.
var scale=Math.max(viewport["minimum-scale"]||0,Math.min(viewport["maximum-scale"]||10,viewport["initial-scale"]||1));1>scale&&(screenWidth/=scale)}else// Initial render will use the width of the document to determine its
// size, then zoom out to show the whole page.
screenWidth=window.innerWidth;return[screenWidth,2*screenWidth/3]};var controlMultiplierBasedOnVideo=function controlMultiplierBasedOnVideo(video,normalRange){var vidWidth=video.videoWidth(),_ref=normalRange||normalScaleWidthRange(video),_ref2=_slicedToArray(_ref,2),lowerCutoff=_ref2[0],upperCutoff=_ref2[1];return vidWidth<lowerCutoff?vidWidth/lowerCutoff:vidWidth>upperCutoff?vidWidth/upperCutoff:1};

/***/ }),

/***/ 14:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "deliveryHost": function() { return /* binding */ deliveryHost; },
/* harmony export */   "akamaiHost": function() { return /* binding */ akamaiHost; },
/* harmony export */   "fastlyHost": function() { return /* binding */ fastlyHost; },
/* harmony export */   "appHost": function() { return /* binding */ appHost; },
/* harmony export */   "cdnFastWistiaComHost": function() { return /* binding */ cdnFastWistiaComHost; },
/* harmony export */   "cdnFastWistiaNetHost": function() { return /* binding */ cdnFastWistiaNetHost; },
/* harmony export */   "eV1Url": function() { return /* binding */ eV1Url; },
/* harmony export */   "eV1Host": function() { return /* binding */ eV1Host; },
/* harmony export */   "eV1Protocol": function() { return /* binding */ eV1Protocol; },
/* harmony export */   "mediaDataHost": function() { return /* binding */ mediaDataHost; },
/* harmony export */   "metricsHost": function() { return /* binding */ metricsHost; },
/* harmony export */   "VALID_PRODUCTION_HOSTS": function() { return /* binding */ VALID_PRODUCTION_HOSTS; },
/* harmony export */   "forceValidFastWistiaHost": function() { return /* binding */ forceValidFastWistiaHost; }
/* harmony export */ });
/* harmony import */ var _app_hostname__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
/* harmony import */ var _app_hostname__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_app_hostname__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var utilities_root__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
/* harmony import */ var utilities_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16);
var APP_WISTIA_COM=_app_hostname__WEBPACK_IMPORTED_MODULE_0___default()("app"),CDN_FAST_WISTIA_COM=_app_hostname__WEBPACK_IMPORTED_MODULE_0___default()("fast"),CDN_FAST_WISTIA_NET="fast.wistia.net",DELIVERY_HOST="undefined",DELIVERY_SSL_HOST="embed-ssl.wistia.com",AKAMAI_HOST=_app_hostname__WEBPACK_IMPORTED_MODULE_0___default()("embed-a"),AKAMAI_SSL_HOST="embedwistia-a.akamaihd.net",FASTLY_SSL_HOST="embed-fastly.wistia.com",METRICS_HOST="pipedream.wistia.com",DEFAULT_PROTOCOL=function(){return"undefined"!=typeof window&&utilities_root__WEBPACK_IMPORTED_MODULE_1__.default===window&&utilities_root__WEBPACK_IMPORTED_MODULE_1__.default.location?utilities_root__WEBPACK_IMPORTED_MODULE_1__.default.location.protocol:"https:"}(),sslOrNonSsl=function sslOrNonSsl(protocol,sslHost,nonSslHost){return"https:"===protocol?sslHost:nonSslHost};var deliveryHost=function deliveryHost(){var protocol=0<arguments.length&&arguments[0]!==void 0?arguments[0]:DEFAULT_PROTOCOL;return sslOrNonSsl(protocol,DELIVERY_SSL_HOST,DELIVERY_HOST)};var akamaiHost=function akamaiHost(){var protocol=0<arguments.length&&arguments[0]!==void 0?arguments[0]:DEFAULT_PROTOCOL;return sslOrNonSsl(protocol,AKAMAI_SSL_HOST,AKAMAI_HOST)};var fastlyHost=function fastlyHost(){return FASTLY_SSL_HOST};var appHost=function appHost(){return APP_WISTIA_COM};var cdnFastWistiaComHost=function cdnFastWistiaComHost(){return CDN_FAST_WISTIA_COM};var cdnFastWistiaNetHost=function cdnFastWistiaNetHost(){return CDN_FAST_WISTIA_NET};// We run this immediately because we'll be guaranteed that E-v1 is in the DOM
// when this is executing--unless we're loading a legacy thing like
// playlist-v1.js or embed-shepherd_v1.js. We can use the result to determine
// what host we should load other dynamic assets on.
var eV1Url=function(){for(var s,scripts=document.getElementsByTagName("script"),i=0;i<scripts.length;i++)if(s=scripts[i],s.src){var url=new utilities_url__WEBPACK_IMPORTED_MODULE_2__.Url(s.src),pathIsEv1=/\/assets\/external\/E-v1(-with-vulcan-v2)?\.js$/.test(url.rawPath),hasKnownHost=url.host===cdnFastWistiaComHost()||url.host===cdnFastWistiaNetHost(),usesHttpsIfRequired="https:"===location.protocol&&"https:"===url.protocol,isProtocolRelative=""===url.protocol||null==url.protocol,protoIsSane=usesHttpsIfRequired||isProtocolRelative||"http:"===location.protocol,scriptHasLoaded=!s.readyState||/loaded|complete/.test(s.readyState);// Check that this is definitely our script.
if(pathIsEv1&&hasKnownHost&&protoIsSane&&scriptHasLoaded)return url}// If we can't find an instance of E-v1 matching
return new utilities_url__WEBPACK_IMPORTED_MODULE_2__.Url("".concat((0,utilities_url__WEBPACK_IMPORTED_MODULE_2__.proto)(),"//").concat(cdnFastWistiaNetHost(),"/E-v1.js"))}();var eV1Host=function eV1Host(){return eV1Url.host};var eV1Protocol=function eV1Protocol(){return eV1Url.protocol};var mediaDataHost=function mediaDataHost(){var options=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};// If embedHost is specified, just use that.
return options.embedHost?forceValidFastWistiaHost(options.embedHost):eV1Host();// Try to match whatever host E-v1 is set to by default.
};var metricsHost=function metricsHost(){return METRICS_HOST};var VALID_PRODUCTION_HOSTS=["wistia.net","wistia.com","wistia.st"];var VALID_PRODUCTION_HOSTS_R=new RegExp("("+VALID_PRODUCTION_HOSTS.map(function(h){return"\\."+h.replace(".","\\.")}).join("|")+")$");var forceValidFastWistiaHost=function forceValidFastWistiaHost(host){return host&&VALID_PRODUCTION_HOSTS_R.test(host)?host:eV1Host()};

/***/ }),

/***/ 7:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "interBoldItalicFontFamily": function() { return /* binding */ interBoldItalicFontFamily; },
/* harmony export */   "interFontFamily": function() { return /* binding */ interFontFamily; },
/* harmony export */   "interSemiBoldFontFamily": function() { return /* binding */ interSemiBoldFontFamily; },
/* harmony export */   "interNumbersSemiBold": function() { return /* binding */ interNumbersSemiBold; }
/* harmony export */ });
var interBoldItalicFontFamily="WistiaPlayerInterBoldItalic, Helvetica, Sans-Serif";var interFontFamily="WistiaPlayerInter, Helvetica, Sans-Serif";var interSemiBoldFontFamily="WistiaPlayerInterSemiBold, Helvetica, Sans-Serif";var interNumbersSemiBold="WistiaPlayerInterNumbersSemiBold, Helvetica, Sans-Serif";

/***/ }),

/***/ 79:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "jsonp": function() { return /* binding */ jsonp; },
/* harmony export */   "jsonpPlus": function() { return /* binding */ jsonpPlus; }
/* harmony export */ });
/* harmony import */ var utilities_root__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
/* harmony import */ var utilities_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16);
/* harmony import */ var player_lib_script_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39);
/* harmony import */ var utilities_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27);
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19);
var logger=utilities_wlog__WEBPACK_IMPORTED_MODULE_5__.wlog.getPrefixedFunctions("jsonp");null==wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default._jsonpCounter&&(wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default._jsonpCounter=0);// lightweight JSONP library from
//   http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/
function jsonp(url,params,callback,options){var query="?";for(var key in params=params||{},params)"callback"!=key&&params.hasOwnProperty(key)&&null!=params[key]&&(query+=encodeURIComponent(key)+"="+encodeURIComponent(params[key])+"&");logger.info(url,query,options);var matchUrl,scriptAlreadyInDom;if(options&&options.once&&(matchUrl=(url+query).replace(/\.json(?!p)/,".jsonp"),matchUrl=matchUrl.replace(/&$/,""),scriptAlreadyInDom=(0,player_lib_script_utils__WEBPACK_IMPORTED_MODULE_3__.findScriptInDomBySrc)(matchUrl,{ignoreProtocol:!0,scriptRegex:options.scriptRegex})),scriptAlreadyInDom){// if the script is already in the DOM, let's just poll until data for
// it is set.
var parsed=new utilities_url__WEBPACK_IMPORTED_MODULE_2__.Url(matchUrl),cacheKey="wistiajsonp-"+parsed.relative();logger.info("script already in DOM",matchUrl,"polling",cacheKey),(0,utilities_core__WEBPACK_IMPORTED_MODULE_4__.poll)(function(){return logger.info("found",cacheKey,"on root object"),null!=utilities_root__WEBPACK_IMPORTED_MODULE_0__.default[cacheKey]},function(){callback(utilities_root__WEBPACK_IMPORTED_MODULE_0__.default[cacheKey])},15,3e4)}else{var jsonp;jsonp=params&&params.callback?params.callback:"wistiajson"+ ++wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default._jsonpCounter,logger.info("defining on root:",jsonp),utilities_root__WEBPACK_IMPORTED_MODULE_0__.default[jsonp]=function(data){callback(data),delete utilities_root__WEBPACK_IMPORTED_MODULE_0__.default[jsonp],utilities_root__WEBPACK_IMPORTED_MODULE_0__.default[jsonp]=null};var scriptSrc=url+query+"callback="+jsonp;logger.info("runScript",scriptSrc),(0,player_lib_script_utils__WEBPACK_IMPORTED_MODULE_3__.runScript)(scriptSrc)}return jsonp}// jsonp fetching with error func and timeout
var jsonpPlus=function jsonpPlus(url,params,callback){var options=3<arguments.length&&arguments[3]!==void 0?arguments[3]:{};options.timeout||(options.timeout=5e3),options.onerror||(options.onerror=function(){});var errorTimeout=setTimeout(options.onerror,options.timeout),onSuccess=function onSuccess(data){clearTimeout(errorTimeout),callback&&callback(data)};jsonp(url,params,onSuccess,options)};

/***/ }),

/***/ 84:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PLUGIN_CONFIGS": function() { return /* binding */ PLUGIN_CONFIGS; },
/* harmony export */   "bestPlayer": function() { return /* binding */ bestPlayer; },
/* harmony export */   "bestUsableEngine": function() { return /* binding */ bestUsableEngine; },
/* harmony export */   "bestUsableEngineClass": function() { return /* binding */ bestUsableEngineClass; },
/* harmony export */   "buildContext": function() { return /* binding */ buildContext; },
/* harmony export */   "canCopyMetaDataFromHls": function() { return /* binding */ canCopyMetaDataFromHls; },
/* harmony export */   "canPlayInline": function() { return /* binding */ canPlayInline; },
/* harmony export */   "canUsePlayer": function() { return /* binding */ canUsePlayer; },
/* harmony export */   "choosePlayer": function() { return /* binding */ choosePlayer; },
/* harmony export */   "determinePlayerPreferenceFromInput": function() { return /* binding */ determinePlayerPreferenceFromInput; },
/* harmony export */   "doesBrowserSupportHlsTools": function() { return /* binding */ doesBrowserSupportHlsTools; },
/* harmony export */   "enginesToLoad": function() { return /* binding */ enginesToLoad; },
/* harmony export */   "getDefaultContext": function() { return /* binding */ getDefaultContext; },
/* harmony export */   "hasAssetsForPlayer": function() { return /* binding */ hasAssetsForPlayer; },
/* harmony export */   "hasDesktopHlsAssets": function() { return /* binding */ hasDesktopHlsAssets; },
/* harmony export */   "hasEnoughReadyMp4Assets": function() { return /* binding */ hasEnoughReadyMp4Assets; },
/* harmony export */   "hasSupportedHlsAssets": function() { return /* binding */ hasSupportedHlsAssets; },
/* harmony export */   "isBrowserInNativeAndroid": function() { return /* binding */ isBrowserInNativeAndroid; },
/* harmony export */   "isBrowserOldChrome": function() { return /* binding */ isBrowserOldChrome; },
/* harmony export */   "isHlsEnabledOrOverridden": function() { return /* binding */ isHlsEnabledOrOverridden; },
/* harmony export */   "isMobile": function() { return /* binding */ isMobile; },
/* harmony export */   "isNotPlayable": function() { return /* binding */ isNotPlayable; },
/* harmony export */   "isPasswordProtected": function() { return /* binding */ isPasswordProtected; },
/* harmony export */   "isSupportedPlayer": function() { return /* binding */ isSupportedPlayer; },
/* harmony export */   "isValidPlayer": function() { return /* binding */ isValidPlayer; },
/* harmony export */   "logWarnings": function() { return /* binding */ logWarnings; },
/* harmony export */   "noFallbackFromFlash": function() { return /* binding */ noFallbackFromFlash; },
/* harmony export */   "playerPlugins": function() { return /* binding */ playerPlugins; },
/* harmony export */   "report": function() { return /* binding */ report; },
/* harmony export */   "shouldServeHls": function() { return /* binding */ shouldServeHls; },
/* harmony export */   "supportedPlayers": function() { return /* binding */ supportedPlayers; },
/* harmony export */   "usablePlayers": function() { return /* binding */ usablePlayers; },
/* harmony export */   "urlHasBeenTamperedWith": function() { return /* binding */ urlHasBeenTamperedWith; },
/* harmony export */   "xhrHasBeenTamperedWith": function() { return /* binding */ xhrHasBeenTamperedWith; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var _assets__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
/* harmony import */ var utilities_detect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20);
/* harmony import */ var utilities_metrics__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32);
/* harmony import */ var utilities_legacyLocalstorage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85);
/* harmony import */ var utilities_root__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2);
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(19);
function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var source,i=1;i<arguments.length;i++)source=null==arguments[i]?{}:arguments[i],i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))});return target}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var wlog=utilities_wlog__WEBPACK_IMPORTED_MODULE_7__.wlog.getPrefixedFunctions("judy"),AUTO="auto",EXTERNAL="external",FLASH="flash",HLS_VIDEO="hlsVideo",HTML5="html5",MANUAL_QUALITY_VIDEO="manualQualityVideo",NATIVE_HLS_VIDEO="nativeHlsVideo",NOT_PLAYABLE="notplayable",PASSWORD_PROTECTED="passwordprotected",SIMPLE_HTML5="simplehtml5",TWO_STROKE_VIDEO="twoStrokeVideo",VULCAN="vulcan",VULCAN_V2="vulcan-v2",SPHERICAL_VIDEO="sphericalVideo",PLAYERS=["vulcan","vulcan-v2","html5","simplehtml5","flash","external","notplayable","passwordprotected"];var PLUGIN_CONFIGS={notPlayableVideo:{on:!0,initBeforeHasData:!0,async:!1,loadWeight:-1},vulcanVideo:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},vulcanV2Player:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},hlsVideo:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:0},nativeHlsVideo:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:0},passwordProtectedVideo:{on:!0,initBeforeHasData:!0,async:!1,loadWeight:-1},encodingProgress:{on:!0,initBeforeHasData:!1,async:!0,loadWeight:100},externalPlayer:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},flashPlayer:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},html5Player:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1}};var bestPlayer=function bestPlayer(context,mediaData,embedOptions){var location=context.location,detect=context.detect,logger=context.logger,assets=mediaData.assets,isSpherical=isSphericalVideo({mediaData:mediaData,options:embedOptions},detect);return detect.oldandroid?(logger.info("oldandroid"),canUsePlayer(context,FLASH,assets)&&"https:"===location.protocol?(logger.info("flash on old android"),FLASH):(logger.info("external on old android"),EXTERNAL)):canUsePlayer(context,VULCAN_V2,assets)&&isSpherical?(logger.info("default, ret",VULCAN_V2),VULCAN_V2):canUsePlayer(context,VULCAN_V2,assets)?(logger.info("default, ret",VULCAN_V2),VULCAN_V2):canUsePlayer(context,FLASH,assets)?(logger.info("default, ret",FLASH),FLASH):canUsePlayer(context,HTML5,assets)?(logger.info("default, ret",HTML5),HTML5):noFallbackFromFlash(context)?(logger.info("no fallback from flash, return",FLASH),FLASH):"Audio"===mediaData.mediaType?VULCAN_V2:(logger.info("nothing left, use",EXTERNAL),EXTERNAL)};var bestUsableEngine=function bestUsableEngine(context,mediaData){var options=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},detect=context.detect,logger=context.logger;logger.info("bestUsableEngineClass");var allowHls=shouldServeHls(context,mediaData,options),isSpherical=isSphericalVideo({mediaData:mediaData,options:options},detect);return isSpherical?(logger.info(SPHERICAL_VIDEO),"engines/spherical_video.js"):"Audio"===mediaData.mediaType?"engines/simple_audio.js":isTwoStrokeVideo(mediaData)?(logger.info(TWO_STROKE_VIDEO),"engines/two_stroke_video.js"):options.secondaryVideoUrl?(logger.info(TWO_STROKE_VIDEO),"engines/two_stroke_video.js"):allowHls&&detect.nativeHls?(logger.info(NATIVE_HLS_VIDEO),"engines/native_hls_video.js"):allowHls?(logger.info(HLS_VIDEO),"engines/hls_video.js"):(logger.info(MANUAL_QUALITY_VIDEO),"engines/manual_quality_video.js")};// Given a media data blob and options--and assuming all engine scripts have
// been loaded--return the engine class that we should initialize.
var bestUsableEngineClass=function bestUsableEngineClass(context,mediaData){var options=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},detect=context.detect,logger=context.logger;logger.info("bestUsableEngineClass");var allowHls=shouldServeHls(context,mediaData,options),engines=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.engines||{};return isTwoStrokeVideo(mediaData)&&engines.TwoStrokeVideo?(logger.info(TWO_STROKE_VIDEO),engines.TwoStrokeVideo):options.secondaryVideoUrl&&engines.TwoStrokeVideo?(logger.info(TWO_STROKE_VIDEO),engines.TwoStrokeVideo):allowHls&&detect.nativeHls&&engines.NativeHlsVideo?(logger.info(NATIVE_HLS_VIDEO),engines.NativeHlsVideo):allowHls&&engines.HlsVideo?(logger.info(HLS_VIDEO),engines.HlsVideo):(logger.info(MANUAL_QUALITY_VIDEO),engines.ManualQualityVideo)};var buildContext=function buildContext(){var overrides=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},pageUrl=contextUrl(overrides);return _objectSpread(_objectSpread(_objectSpread({},getDefaultContext()),overrides),{},{pageUrl:pageUrl})};// determines if we can copy the metadata from an hls_video to at least
// one mp4 video over 400 width.
var canCopyMetaDataFromHls=function canCopyMetaDataFromHls(assets){var mp4Assets=_assets__WEBPACK_IMPORTED_MODULE_1__.filter(assets,{container:"mp4",public:!0,sortBy:"width desc",status:_assets__WEBPACK_IMPORTED_MODULE_1__.READY,type:/\b(?!captioned_video)\S+/ // no burned in captions
}),hlsAssets={};getDesktopHlsAssets(assets).forEach(function(asset){hlsAssets[asset.display_name]=asset});var viableAssets=mp4Assets.filter(function(asset){return hlsAssets[asset.display_name]&&hlsAssets[asset.display_name].metadata});return!!(viableAssets[0]&&400<=viableAssets[0].width)};var canPlayInline=function canPlayInline(context){var detect=context.detect;return detect.android||10<=detect.ios.version};var canUsePlayer=function canUsePlayer(context,player,assets){return isSupportedPlayer(context,player)&&hasAssetsForPlayer(context,player,assets)};var choosePlayer=function choosePlayer(context,mediaData,embedOptions){var detect=context.detect,logger=context.logger,assets=mediaData.assets,force=embedOptions.force,playerForce=embedOptions.playerForce;!playerForce&&force&&(playerForce=force),logger.info("choosePlayer input",mediaData.hashedId);// This can be falsey if there is no specific player preference. Users may
// also pass in "auto" to be explicit, which means there should be no
// preference.
var playerPreference=determinePlayerPreferenceFromInput(context,mediaData,embedOptions);// Loudly error but don't die if given invalid input.
if(playerForce&&!isValidPlayer(context,playerForce)&&(logger.error("Invalid playerForce option: \"".concat(playerForce,"\", ignoring")),playerForce=force=null),playerPreference&&playerPreference!==AUTO&&!isValidPlayer(context,playerPreference)&&(logger.error("Invalid playerPreference option: \"".concat(playerPreference,"\", ignoring")),playerPreference=AUTO),logger.info("playerPreference is",playerPreference),playerForce)return logger.info("\"playerForce\" used, return",playerForce),playerForce;if(isPasswordProtected(context,embedOptions))return logger.info("return",PASSWORD_PROTECTED),PASSWORD_PROTECTED;if(isNotPlayable(context,mediaData))return logger.info("return",NOT_PLAYABLE),NOT_PLAYABLE;if(playerPreference!==AUTO&&canUsePlayer(context,playerPreference,assets)){var isSpherical=isSphericalVideo({mediaData:mediaData,options:embedOptions},detect);return playerPreference!==VULCAN_V2&&isSpherical?(logger.info("this player doesn't support spherical, return",VULCAN_V2),VULCAN_V2):(logger.info("\"playerPreference\" used, return",playerPreference),playerPreference)}return logger.info("choosing player with no preference"),bestPlayer(context,mediaData,embedOptions)};// return the url to use for building up the Judy context.
var contextUrl=function contextUrl(){var opts=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return opts.pageUrl?opts.pageUrl:Object(window.FreshUrl).originalUrl?window.FreshUrl.originalUrl:window.top===window.self?location.href||"":document.referrer||""};var determinePlayerPreferenceFromInput=function determinePlayerPreferenceFromInput(context,mediaData,embedOptions){// platformPreference is a legacy option. It used to have difference
// semantics as playerPreference, but let's treat it the same now.
var playerPreference=embedOptions.playerPreference||embedOptions.platformPreference;return playerPreference&&playerPreference!==AUTO?playerPreference===HTML5?isMobile(context)?HTML5:VULCAN_V2:playerPreference===SIMPLE_HTML5?HTML5:playerPreference:AUTO};// the browser can support hlsjs or native HLS
var doesBrowserSupportHlsTools=function doesBrowserSupportHlsTools(detect){return detect.mediaSource||detect.nativeHls};// Given a media data blob and options, return _all_ engines and sub-engines
// that will need to be loaded. This is how we determine which scripts to load.
var enginesToLoad=function enginesToLoad(context,mediaData){var options=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},detect=context.detect,logger=context.logger,engineNames=[];logger.info("enginesToLoad");var allowHls=shouldServeHls(context,mediaData,options);allowHls&&detect.nativeHls?(logger.info(NATIVE_HLS_VIDEO),engineNames.push(NATIVE_HLS_VIDEO)):allowHls?(logger.info(HLS_VIDEO),engineNames.push(HLS_VIDEO)):(logger.info(MANUAL_QUALITY_VIDEO),engineNames.push(MANUAL_QUALITY_VIDEO));var isSpherical=isSphericalVideo({mediaData:mediaData,options:options},detect);if(isSpherical&&(engineNames.push(SPHERICAL_VIDEO),logger.info(SPHERICAL_VIDEO)),isTwoStrokeVideo(mediaData)){logger.info(TWO_STROKE_VIDEO),engineNames.push(TWO_STROKE_VIDEO);// recursively add more engines based on the secondaryMediaData option.
var secondaryOptions=utilities_obj__WEBPACK_IMPORTED_MODULE_2__.except(options,["twoStroke"]),secondaryMediaData=mediaData.secondaryMediaData,secondaryEnginesToLoad=enginesToLoad(context,secondaryMediaData,secondaryOptions);engineNames=engineNames.concat(secondaryEnginesToLoad)}else options.secondaryVideoUrl&&(logger.info("secondaryVideoUrl",TWO_STROKE_VIDEO),engineNames.push(TWO_STROKE_VIDEO));// Make sure engine names are unique in this array.
var tmpHash={};engineNames.map(function(engineName){tmpHash[engineName]=!0});var result=[];for(var engineName in tmpHash)result.push(engineName);return result};var cachedDefaultContext;var getDefaultContext=function getDefaultContext(){return cachedDefaultContext?cachedDefaultContext:(cachedDefaultContext={detect:utilities_obj__WEBPACK_IMPORTED_MODULE_2__.clone((0,utilities_detect__WEBPACK_IMPORTED_MODULE_3__.cachedDetect)()),inIframe:top!==self,location:window.location,logger:wlog,pageUrl:location.href,silenceGlobalWarnings:utilities_root__WEBPACK_IMPORTED_MODULE_6__.default.wistiaSilenceGlobalWarnings,userAgent:navigator.userAgent},cachedDefaultContext)};var getDesktopHlsAssets=function getDesktopHlsAssets(assets){return _assets__WEBPACK_IMPORTED_MODULE_1__.filter(assets,{container:"m3u8",display_name:function display_name(n){return"Audio"!=n},metadata:function metadata(m){return m&&m.max_bitrate},sortBy:"width desc",status:_assets__WEBPACK_IMPORTED_MODULE_1__.READY,type:"hls_video"})},getPluginConfig=function getPluginConfig(context,pluginName){var result={};return result[pluginName]=PLUGIN_CONFIGS[pluginName],result};var hasAssetsForPlayer=function hasAssetsForPlayer(context,player,assets){if(!isValidPlayer(context,player))return!1;if(player===NOT_PLAYABLE||player===PASSWORD_PROTECTED)// No special asset requirements for these.
return!0;if(player===VULCAN_V2)return hasReadyVideoAssets(assets)||hasReadyAudioAssets(assets);if(player===VULCAN)return hasReadyVideoAssets(assets);if(player===HTML5)return 0<_assets__WEBPACK_IMPORTED_MODULE_1__.readyPublicMp4s(assets).length;if(player===FLASH)return 0<_assets__WEBPACK_IMPORTED_MODULE_1__.readyPublicFlvs(assets).length||0<_assets__WEBPACK_IMPORTED_MODULE_1__.readyPublicMp4s(assets).length;if(player===EXTERNAL)return 0<_assets__WEBPACK_IMPORTED_MODULE_1__.readyPublicMp4s(assets).length;throw new Error("Unhandled player type '".concat(player,"'"))};var hasReadyVideoAssets=function hasReadyVideoAssets(assets){return 0<_assets__WEBPACK_IMPORTED_MODULE_1__.readyPublicMp4s(assets).length||0<_assets__WEBPACK_IMPORTED_MODULE_1__.readyPublicM3u8s(assets).length},hasReadyAudioAssets=function hasReadyAudioAssets(assets){return 0<_assets__WEBPACK_IMPORTED_MODULE_1__.readyPublicMp3s(assets).length};var hasDesktopHlsAssets=function hasDesktopHlsAssets(assets){var hlsAssets=getDesktopHlsAssets(assets),mp4Assets=_assets__WEBPACK_IMPORTED_MODULE_1__.filter(assets,{container:"mp4",public:!0,status:_assets__WEBPACK_IMPORTED_MODULE_1__.READY,sortBy:"width desc"});// If the highest quality hls asset is the same
// or greater than the highest quality mp4 asset,
// we have servable desktop hls assets.
return 0<hlsAssets.length&&(0===mp4Assets.length||hlsAssets[0].width>=mp4Assets[0].width)};var hasEnoughReadyMp4Assets=function hasEnoughReadyMp4Assets(assets){var mp4Assets=_assets__WEBPACK_IMPORTED_MODULE_1__.filter(assets,{container:"mp4",metadata:function metadata(m){return m&&m.max_bitrate},public:!0,sortBy:"width desc",status:_assets__WEBPACK_IMPORTED_MODULE_1__.READY,type:/\b(?!captioned_video)\S+/ // no burned in captions
}),hasAssetWithBitRateAndSize=!!(mp4Assets[0]&&400<=mp4Assets[0].width);// ensure that we have at least one asset at or above 400 width. This prevents
// using HLS from using too low quality an asset, say in the scenario where
// the other assets are still being processed.
// we might be able to copy the metadata from corresponing hls_video derivs, so check that, too.
return hasAssetWithBitRateAndSize||canCopyMetaDataFromHls(assets)};var hasSupportedHlsAssets=function hasSupportedHlsAssets(mediaData){return hasEnoughReadyMp4Assets(mediaData.assets)||(0,utilities_metrics__WEBPACK_IMPORTED_MODULE_4__.count)("player/originV2/media-has-no-metadata",1,{hashedId:mediaData.hashedId}),hasEnoughReadyMp4Assets(mediaData.assets)};var hlsOverrideValue=function hlsOverrideValue(_ref,embedOptions){var pageUrl=_ref.pageUrl,paramVal=hlsQueryParamValue(pageUrl);if(null!=paramVal)return paramVal;var localStorageVal=(0,utilities_legacyLocalstorage__WEBPACK_IMPORTED_MODULE_5__.setOrGet)("forceHls");return null==localStorageVal?embedOptions.hls:localStorageVal},hlsQueryParamValue=function hlsQueryParamValue(pageUrl){var match=pageUrl&&pageUrl.match&&pageUrl.match(/[&?]whls=([^&]+)/),val=match&&match[1];return null==val?null:utilities_obj__WEBPACK_IMPORTED_MODULE_2__.cast(val)};// Chromecast doesn't work with hlsjs because it only understands a src
// that can be referenced externally. And playsinline=false or
// nativeMode=true is our signal to use something close to a native player.
var isBrowserInNativeAndroid=function isBrowserInNativeAndroid(detect,embedOptions){return detect.android&&(!1===embedOptions.playsinline||!0===embedOptions.nativeMode)};// chrome 49 and earlier (the last supported version on Win XP/Vista) does
// not support MSE well enough for hls.js.
var isBrowserOldChrome=function isBrowserOldChrome(detect){return detect.chrome&&50>parseInt(detect.chrome.version)};var isHlsEnabledOrOverridden=function isHlsEnabledOrOverridden(context,mediaData,embedOptions){return mediaData.hls_enabled||!!hlsOverrideValue(context,embedOptions)};var isIE11=function isIE11(detect){return detect.trident};var isMobile=function isMobile(_ref2){var detect=_ref2.detect;return detect.iphone||detect.ipad||detect.android};var isNotPlayable=function isNotPlayable(context,mediaData){var assets=mediaData.assets,assetsArentReady="Audio"===mediaData.type?0==_assets__WEBPACK_IMPORTED_MODULE_1__.readyPublicMp3s(assets).length:0==_assets__WEBPACK_IMPORTED_MODULE_1__.readyPublicMp4sAndFlvs(assets).length;return 0===assets.length||1===assets.length&&"original"===assets[0].type||assetsArentReady||0<_assets__WEBPACK_IMPORTED_MODULE_1__.nonfailedPublicOver400(assets).length&&0===_assets__WEBPACK_IMPORTED_MODULE_1__.readyPublicOver400(assets).length||isTwoStrokeVideo(mediaData)&&isNotPlayable(context,mediaData.secondaryMediaData)};var isPasswordProtected=function isPasswordProtected(context,embedOptions){var pluginOpts=utilities_obj__WEBPACK_IMPORTED_MODULE_2__.getDeep(embedOptions,"plugin.passwordProtectedVideo");return null!=pluginOpts&&!1!==pluginOpts.on};// We don't even want the spherical engine for Ie11 becuase
// it likes to throw lots of errors
var isSphericalVideo=function isSphericalVideo(){var mediaInfo=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},detect=1<arguments.length?arguments[1]:void 0;return!mediaInfo.options.overrideSpherical&&(mediaInfo.mediaData.spherical||mediaInfo.options.spherical)&&!isIE11(detect)};var isSupportedPlayer=function isSupportedPlayer(context,player){return!!isValidPlayer(context,player)&&0<=utilities_obj__WEBPACK_IMPORTED_MODULE_2__.indexOf(supportedPlayers(context),player)};var isTwoStrokeVideo=function isTwoStrokeVideo(mediaData){return!!mediaData.secondaryMediaData};var isValidPlayer=function isValidPlayer(context,player){return 0<=utilities_obj__WEBPACK_IMPORTED_MODULE_2__.indexOf(PLAYERS,player)};var logWarnings=function logWarnings(context){var detect=context.detect,userAgent=context.userAgent,logger=context.logger,silenceGlobalWarnings=context.silenceGlobalWarnings;if(!silenceGlobalWarnings)// Customers can set window.wistiaSilenceGlobalWarnings = true, and that
// will be included in the default judy context.
{var isOldIE=detect.browser.msie&&11>detect.browser.version,isHeadless=/phantomjs/i.test(userAgent);!xhrHasBeenTamperedWith()||isHeadless||isOldIE||logger.error("The XMLHttpRequest constructor has been tampered with. Because this affects CORS/Range XHR requests, HLS playback has been disabled. To enable HLS playback and other important features, please remove code that changes the definition of window.XMLHttpRequest."),urlHasBeenTamperedWith()&&detect.mediaSource&&!isHeadless&&!isOldIE&&logger.error("window.URL.createObjectURL has been tampered with. Because this affects use of Media Source Extensions, HLS playback has been disabled. window.URL is a browser API that should not be clobbered. Its current value is:",window.URL)}};var noFallbackFromFlash=function noFallbackFromFlash(_ref3){var detect=_ref3.detect;return detect.browser.msie&&(9>detect.browser.version||detect.browser.quirks)||detect.browser.mozilla};var playerPlugins=function playerPlugins(context,player,mediaData,embedOptions){var logger=context.logger,plugins={};if(logger.info("playerPlugins input",player,mediaData.hashedId,mediaData,embedOptions),player===NOT_PLAYABLE)utilities_obj__WEBPACK_IMPORTED_MODULE_2__.merge(plugins,getPluginConfig(context,"notPlayableVideo"));else if(player===PASSWORD_PROTECTED)utilities_obj__WEBPACK_IMPORTED_MODULE_2__.merge(plugins,getPluginConfig(context,"passwordProtectedVideo"));else if(player===HTML5)utilities_obj__WEBPACK_IMPORTED_MODULE_2__.merge(plugins,getPluginConfig(context,"html5Player"));else if(player===FLASH)utilities_obj__WEBPACK_IMPORTED_MODULE_2__.merge(plugins,getPluginConfig(context,"flashPlayer"));else if(player===EXTERNAL)utilities_obj__WEBPACK_IMPORTED_MODULE_2__.merge(plugins,getPluginConfig(context,"externalPlayer"));else if(player===VULCAN_V2)utilities_obj__WEBPACK_IMPORTED_MODULE_2__.merge(plugins,getPluginConfig(context,"vulcanV2Player"));else if(player===VULCAN){utilities_obj__WEBPACK_IMPORTED_MODULE_2__.merge(plugins,getPluginConfig(context,"vulcanVideo"));for(var engines=enginesToLoad(context,mediaData,embedOptions),i=0;i<engines.length;i++)utilities_obj__WEBPACK_IMPORTED_MODULE_2__.merge(plugins,getPluginConfig(context,engines[i]))}var pluginNames=[];for(var k in plugins)pluginNames.push(k);return logger.info.apply(logger,["playerPlugins output"].concat(pluginNames,[plugins])),plugins};var report=function report(context,mediaData,embedOptions){return{bestPlayer:bestPlayer(context,mediaData,embedOptions),playerPreferenceFromInput:determinePlayerPreferenceFromInput(context,mediaData,embedOptions),supportedPlayers:supportedPlayers(context),usablePlayers:usablePlayers(context,mediaData.assets)}};var shouldServeHls=function shouldServeHls(context,mediaData,embedOptions){var detect=context.detect;return doesBrowserSupportHlsTools(detect)&&!isBrowserOldChrome(detect)&&!isIE11(detect)&&!isBrowserInNativeAndroid(detect,embedOptions)&&// the account has hls enabled or explicitly trying to force
isHlsEnabledOrOverridden(context,mediaData,embedOptions)&&// we haven't explicitly turned off HLS via query param or local storage
!1!==hlsOverrideValue(context,embedOptions)&&// the media actually has desktop assets compatable with the delivery system
hasSupportedHlsAssets(mediaData)&&(// Some sites completely replace the XMLHttpRequest constructor with one
// that doesn't work with hls.js. If we detect that, don't use HLS
// (...unless we explicitly say to try it.)
!xhrHasBeenTamperedWith(context)&&!urlHasBeenTamperedWith(context)||hlsOverrideValue(context,embedOptions))};var supportedPlayers=function supportedPlayers(context){var detect=context.detect,result=[NOT_PLAYABLE,PASSWORD_PROTECTED,EXTERNAL];return detect.vulcanSupport?(result.push(VULCAN),result.push(VULCAN_V2)):(detect.iphone||detect.ipad||detect.android)&&(result.push(VULCAN),result.push(VULCAN_V2)),detect.video.h264&&result.push(HTML5),9<=detect.flash.version&&result.push(FLASH),result};var usablePlayers=function usablePlayers(context,assets){for(var player,result=[],candidates=supportedPlayers(context),i=0;i<candidates.length;i++)player=candidates[i],canUsePlayer(context,player,assets)&&result.push(player);return result};// `URL` is a built-in type, but a lot sites accidentally clobber it like
// `URL = location.href`. hls.js uses it though.
var urlHasBeenTamperedWith=function urlHasBeenTamperedWith(){return"function"!=typeof(window.URL&&window.URL.createObjectURL)};// `XMLHttpRequest.prototype.constructor.toString()` should be of this form if it's untampered with
var XMLHTTPREQUEST_CONSTRUCTOR_RE=/\s*function\s+XMLHttpRequest\(\)\s*{\s*\[native code\]\s*}\s*/m,XMLHTTPREQUEST_CONSTRUCTOR_IN_SAFARI_9_RE=/\[object XMLHttpRequestConstructor\]/m;// Oddly, safari 9.x seems to display this in the [object ...] form.
var xhrHasBeenTamperedWith=function xhrHasBeenTamperedWith(){if(XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.constructor){var constructorString=XMLHttpRequest.prototype.constructor.toString();return!(XMLHTTPREQUEST_CONSTRUCTOR_RE.test(constructorString)||XMLHTTPREQUEST_CONSTRUCTOR_IN_SAFARI_9_RE.test(constructorString))}return!0};

/***/ }),

/***/ 104:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "shouldAddKeyMoments": function() { return /* binding */ shouldAddKeyMoments; },
/* harmony export */   "clipsFromChapters": function() { return /* binding */ clipsFromChapters; }
/* harmony export */ });
/* harmony import */ var utilities_url_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
// Google got mad that the default chapter title is (of course) not very
// descriptive, and wanted us to make sure it's never used for Key Moments.
var DEFAULT_CHAPTER_TITLE="Chapter Title";var shouldAddKeyMoments=function shouldAddKeyMoments(embedOptions,duration){var _ref=embedOptions.plugin||{},chaptersPlugin=_ref.chapters,_ref2=chaptersPlugin||{},chapterList=_ref2.chapterList,chaptersExist=chaptersPlugin&&!1!==chaptersPlugin.on&&0<chapterList.length,oldFormatChaptersExist=embedOptions.chapterList&&0<embedOptions.chapterList.length&&embedOptions.chaptersOn,_ref3=embedOptions.plugin||{},turnstilePlugin=_ref3["requireEmail-v1"],turnstileBlocksContent=turnstilePlugin&&!1!==turnstilePlugin.on&&"end"!==turnstilePlugin.time&&!turnstilePlugin.persistentTurnstile;return!!((chaptersExist||oldFormatChaptersExist)&&!turnstileBlocksContent&&30<=duration)};var clipsFromChapters=function clipsFromChapters(chapterList,baseUrl){if(chapterList&&0!==chapterList.length){// if multiple chapters have the same time, only include one of them.
var chapterTimes={},filteredChapters=[];chapterList.forEach(function(chapter){chapterTimes[chapter.time]||chapter.deleted||chapter.title===DEFAULT_CHAPTER_TITLE||(chapterTimes[chapter.time]=!0,filteredChapters.push(chapter))});var clips=filteredChapters.map(function(chapter){var time=chapter.time,title=chapter.title,url=new utilities_url_js__WEBPACK_IMPORTED_MODULE_0__.Url(baseUrl);// https://schema.org/Clip
return url.params.wtime="".concat(Math.floor(time),"s"),{"@type":"Clip",name:title,startOffset:time,url:url.absolute()}});return clips}};

/***/ }),

/***/ 24:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "cacheMediaData": function() { return /* binding */ cacheMediaData; },
/* harmony export */   "uncacheMediaData": function() { return /* binding */ uncacheMediaData; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
null==wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._remoteData&&(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._remoteData={});var cacheMediaData=function cacheMediaData(hashedId,data){return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._remoteData["media_".concat(hashedId)]=data};var uncacheMediaData=function uncacheMediaData(hashedId){wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._remoteData["media_".concat(hashedId)]=null,delete wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._remoteData["media_".concat(hashedId)]};

/***/ }),

/***/ 31:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "determineDeliveryCdn": function() { return /* binding */ determineDeliveryCdn; },
/* harmony export */   "convertMp4sToM3u8s": function() { return /* binding */ convertMp4sToM3u8s; },
/* harmony export */   "hasAlternateAudio": function() { return /* binding */ hasAlternateAudio; },
/* harmony export */   "EMBED_SSL_ACCOUNT_IDS": function() { return /* binding */ EMBED_SSL_ACCOUNT_IDS; },
/* harmony export */   "isEmbedSslMedia": function() { return /* binding */ isEmbedSslMedia; },
/* harmony export */   "mediaDataTransforms": function() { return /* binding */ mediaDataTransforms; }
/* harmony export */ });
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
/* harmony import */ var utilities_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16);
/* harmony import */ var utilities_detect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20);
/* harmony import */ var utilities_metrics__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32);
/* harmony import */ var _hosts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(14);
/* harmony import */ var utilities_hashCodeForString__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(45);
function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _iterableToArrayLimit(arr,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(arr)){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i&&_arr.length===i));_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i["return"]||_i["return"]()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}var detect=(0,utilities_detect__WEBPACK_IMPORTED_MODULE_3__.cachedDetect)(),FASTLY="fastly",AKAMAI="akamai",addUserAgentHintForIE=function addUserAgentHintForIE(media){return media.assets&&(media.assets=media.assets.map(function(asset){if(detect.trident&&"mp4"===asset.container&&asset.url){var url=new utilities_url__WEBPACK_IMPORTED_MODULE_2__.Url(asset.url);url.params.ua_hint="trident",asset.url=url.absolute()}return asset})),media},DEFAULT_PERCENT_OF_MEDIA_SERVED_BY_FASTLY=50;null==wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default.RANDOM_PERCENT_FOR_VIEW&&(wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default.RANDOM_PERCENT_FOR_VIEW=100*Math.random());var determineDeliveryCdn=function determineDeliveryCdn(media){var options=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},deliveryCdn=options.deliveryCdn,randomPercentForView=options.randomPercentForView,_$split="".concat(deliveryCdn||"").split(";"),_$split2=_slicedToArray(_$split,2),cdn=_$split2[0],cutoffsStr=_$split2[1];if(cdn===FASTLY||cdn===AKAMAI)return deliveryCdn;var fastlyCutoffPercent=DEFAULT_PERCENT_OF_MEDIA_SERVED_BY_FASTLY,givenCutoffs="".concat(cutoffsStr).split(",");givenCutoffs.forEach(function(pair){var _pair$split=pair.split(":"),_pair$split2=_slicedToArray(_pair$split,2),cdn=_pair$split2[0],percentStr=_pair$split2[1];// There's a generic way to do this for more than two CDNs, but ignoring
// that to make this easier to follow until a third CDN shows up. That's
// why we're checking specifically for FASTLY here.
percentStr&&cdn===FASTLY&&(fastlyCutoffPercent=parseFloat(percentStr))});// random-by-view means the same media will be allowed to use both CDNs. This
// increases overall trips to origin but allows us to A/B test the
// CDN performance for a given media or account.
var diceRoll="random-by-view"===cdn?null==randomPercentForView?wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default.RANDOM_PERCENT_FOR_VIEW:randomPercentForView:Math.abs((0,utilities_hashCodeForString__WEBPACK_IMPORTED_MODULE_6__.hashCodeForString)(media.hashedId))%1e3/10;return diceRoll<fastlyCutoffPercent?FASTLY:AKAMAI};var convertEmbedSslToCdnSpecificHost=function convertEmbedSslToCdnSpecificHost(media,options){if(media.assets&&!isEmbedSslMedia(media))for(var asset,deliveryCdn=determineDeliveryCdn(media,options),i=0;i<media.assets.length;i++)if(asset=media.assets[i],asset.url){var replacementHost=deliveryCdn===FASTLY?_hosts__WEBPACK_IMPORTED_MODULE_5__.fastlyHost:_hosts__WEBPACK_IMPORTED_MODULE_5__.akamaiHost;asset.url=asset.url.replace(/^https:\/\/embed-ssl\.wistia\.com/,"https://"+replacementHost("https:"))}return media.secondaryMediaData&&convertEmbedSslToCdnSpecificHost(media.secondaryMediaData,options),media};var convertMp4sToM3u8s=function convertMp4sToM3u8s(media){var convertedMedia=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.assign)(media,{});return convertedMedia.assets&&(convertedMedia.assets=convertedMedia.assets.map(function(asset){// convert the url to have an explicit extension of `m3u8`
if(("mp4"===asset.container||"mp4_alternate_audio"===asset.type)&&asset.url){var url=new utilities_url__WEBPACK_IMPORTED_MODULE_2__.Url(asset.url);url.ext("m3u8"),asset.url=url.absolute()}return asset})),convertedMedia=convertHlsMetadataToMp4s(convertedMedia),convertedMedia};var hasAlternateAudio=function hasAlternateAudio(media){if(!media.assets)return!1;var alternateAudio=media.assets.filter(function(asset){return"mp4_alternate_audio"===asset.type});return 0<alternateAudio.length};// bitrate metadata is needed for our hls playback. But mp4s may not have that metatdata
// defined. In that case, take the metadata from the hls asset of similar quality
var convertHlsMetadataToMp4s=function convertHlsMetadataToMp4s(media){if(media.assets){var hlsAssets={};// pull out the hls assets
// take the metadata from the corresponding hls media if there is none
// on the mp4 media
media.assets.forEach(function(asset){"m3u8"===asset.container&&(hlsAssets[asset.display_name]=asset)}),media.assets=media.assets.map(function(asset){var hasMaxBitrate=asset.metadata&&asset.metadata.max_bitrate;return!hasMaxBitrate&&"mp4"===asset.container&&hlsAssets[asset.display_name]&&((0,utilities_metrics__WEBPACK_IMPORTED_MODULE_4__.count)("player/originV2/copying-metadata-for-asset",1,{hashedId:media.hashedId,asset:asset}),asset.metadata=hlsAssets[asset.display_name].metadata),asset})}return media},convertStillImageToWebp=function convertStillImageToWebp(media){return media.assets&&detect.webp&&(media.assets=media.assets.map(function(asset){// there was a flow with the uploader + notPlayablePlayer where we have assets
// but they're not ready and don't have urls, so just double check for that here
if("still_image"===asset.type&&Object(asset).url){var url=new utilities_url__WEBPACK_IMPORTED_MODULE_2__.Url(asset.url);url.ext("webp"),asset.url=url.absolute()}return asset})),media};// These accounts get https://embed-ssl.wistia.com instead of our akamaihd.net
// domain. Temporary: they should work on getting that whitelisted.
var EMBED_SSL_ACCOUNT_IDS=[];// Return true if this media's account is in the whitelist of those that
// should still be embed-ssl.wistia.com.
var isEmbedSslMedia=function isEmbedSslMedia(media){if(media.accountKey)return!1;for(var accountId,i=0;i<EMBED_SSL_ACCOUNT_IDS.length;i++)if(accountId=EMBED_SSL_ACCOUNT_IDS[i],media.accountKey==="wistia-production_".concat(accountId))return!0;return!1};var mediaDataTransforms=function mediaDataTransforms(media){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},transformedMedia=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.assign)({},media);return transformedMedia=convertEmbedSslToCdnSpecificHost(transformedMedia,options),transformedMedia=convertStillImageToWebp(transformedMedia),transformedMedia=addUserAgentHintForIE(transformedMedia),transformedMedia};

/***/ }),

/***/ 86:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "canEditMedia": function() { return /* binding */ canEditMedia; },
/* harmony export */   "fetchMedia": function() { return /* binding */ fetchMedia; },
/* harmony export */   "mediaDataUrl": function() { return /* binding */ mediaDataUrl; },
/* harmony export */   "mediaDataScriptRegExp": function() { return /* binding */ mediaDataScriptRegExp; },
/* harmony export */   "cacheMedia": function() { return /* binding */ cacheMedia; },
/* harmony export */   "cacheAbTest": function() { return /* binding */ cacheAbTest; },
/* harmony export */   "uncacheMedia": function() { return /* binding */ uncacheMedia; },
/* harmony export */   "mediaFromCache": function() { return /* binding */ mediaFromCache; },
/* harmony export */   "abTestFromCache": function() { return /* binding */ abTestFromCache; }
/* harmony export */ });
/* harmony import */ var utilities_root__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
/* harmony import */ var utilities_stopgo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(40);
/* harmony import */ var utilities_stopgo__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(utilities_stopgo__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17);
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(19);
/* harmony import */ var player_lib_jsonp__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79);
/* harmony import */ var player_lib_script_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39);
/* harmony import */ var player_lib_media_data_cache_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24);
/* harmony import */ var utilities_seqid__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8);
/* harmony import */ var player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(33);
/* harmony import */ var player_lib_hosts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(14);
/* harmony import */ var utilities_url__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(16);
/* harmony import */ var utilities_legacyLocalstorage__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(85);
/* harmony import */ var utilities_metrics__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(32);
/* harmony import */ var player_lib_media_data_transforms_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(31);
null==wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default._canEditMedia&&(wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default._canEditMedia={}),null==wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default._remoteData&&(wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default._remoteData={});var canEditMedia=function canEditMedia(hashedId,options){var stopGo=wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default._canEditMedia[hashedId];if(stopGo)return stopGo;stopGo=wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default._canEditMedia[hashedId],null==stopGo&&(stopGo=wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default._canEditMedia[hashedId]=new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_2___default()));var url="https://".concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_10__.mediaDataHost)(options),"/media_url"),onComplete=function onComplete(resp){resp&&resp.logged_in&&stopGo.go(resp)},params={hashed_id:encodeURIComponent(hashedId)};return (0,player_lib_jsonp__WEBPACK_IMPORTED_MODULE_5__.jsonpPlus)(url,params,onComplete,{once:!0}),stopGo};// e.g. Wistia.remote.media("abcd1234", function(media) { ... });
var fetchMedia=function fetchMedia(hashedId,callback){var options=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},cachedData=dataFromCache(hashedId,options);if(cachedData){utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.info("W.remote.media",hashedId,"from local cache");var timeoutKey="remote-media.".concat(hashedId,".").concat((0,utilities_seqid__WEBPACK_IMPORTED_MODULE_8__.seqId)()),chosenMedia=cachedData;return cachedData.type&&"ab-test"===cachedData.type&&(utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.info("W.remote.media",hashedId,"responded",cachedData),chosenMedia=abTestMediaSelector(cachedData,options)),(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_9__.doTimeout)(timeoutKey,function(){callback(chosenMedia)}),timeoutKey}utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.info("W.remote.media",hashedId,"fetching");var url=mediaDataUrl(hashedId,options),queryParams={};null!=options.password&&(queryParams.password=options.password),options.idType&&(queryParams.idType=options.idType);var onComplete=function onComplete(mediaWithOpts){if(mediaWithOpts.error)utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.info("W.remote.media",hashedId,"error",mediaWithOpts),cacheMedia(hashedId,mediaWithOpts),callback(mediaWithOpts);else if(mediaWithOpts.type&&"ab-test"===mediaWithOpts.type){utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.info("W.remote.media",hashedId,"responded",mediaWithOpts);var _chosenMedia=abTestMediaSelector(mediaWithOpts,options);callback(_chosenMedia)}else{var _mediaWithOpts$media,transformOpts=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_3__.merge)({},null===(_mediaWithOpts$media=mediaWithOpts.media)||void 0===_mediaWithOpts$media?void 0:_mediaWithOpts$media.embed_options,options);delete mediaWithOpts.media.unnamed_assets,(0,player_lib_media_data_transforms_js__WEBPACK_IMPORTED_MODULE_14__.mediaDataTransforms)(mediaWithOpts.media,transformOpts),cacheMedia(hashedId,mediaWithOpts.media),utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.info("W.remote.media",hashedId,"responded",mediaWithOpts.media),callback(mediaWithOpts.media)}},onError=function onError(){utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.error("Timed out fetching ".concat(url))},fetchOptions={onerror:onError,timeout:1e4,once:null==options.once||options.once,scriptRegex:mediaDataScriptRegExp(hashedId)};return (0,player_lib_jsonp__WEBPACK_IMPORTED_MODULE_5__.jsonpPlus)(url,queryParams,onComplete,fetchOptions)};var mediaDataUrl=function mediaDataUrl(hashedId){var options=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};if(options.useMediaDataHostLogic){var host=(0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_10__.mediaDataHost)(options);return"".concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_10__.eV1Protocol)(),"//").concat(host,"/embed/medias/").concat(hashedId,".json")}var _host=(0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_10__.forceValidFastWistiaHost)(options.embedHost);return"".concat((0,utilities_url__WEBPACK_IMPORTED_MODULE_11__.proto)(),"//").concat(_host,"/embed/medias/").concat(hashedId,".json")};var mediaDataScriptRegExp=function mediaDataScriptRegExp(hashedId){var protocolMatch="https:"===location.protocol?"https":"https?";return new RegExp("^(".concat(protocolMatch,":)?//((").concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_10__.cdnFastWistiaComHost)().replace(".","\\."),")|(").concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_10__.cdnFastWistiaNetHost)().replace(".","\\."),"))/embed/medias/").concat(hashedId,"\\.jsonp\\??"))};var cacheMedia=function cacheMedia(hashedId,data){return (0,player_lib_media_data_cache_js__WEBPACK_IMPORTED_MODULE_7__.cacheMediaData)(hashedId,data)};var cacheAbTest=function cacheAbTest(hashedId,data){return wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default._remoteData["ab_test_".concat(hashedId)]=data};var uncacheMedia=function uncacheMedia(hashedId){(0,player_lib_media_data_cache_js__WEBPACK_IMPORTED_MODULE_7__.uncacheMediaData)(hashedId),removeSpeedDemonScriptAndData(hashedId)};var removeSpeedDemonScriptAndData=function removeSpeedDemonScriptAndData(hashedId){window["wistiajsonp-/embed/medias/".concat(hashedId,".json")]=null,(0,player_lib_script_utils__WEBPACK_IMPORTED_MODULE_6__.removeScriptsBySrc)(mediaDataUrl(hashedId),{scriptRegex:mediaDataScriptRegExp(hashedId)})};var mediaFromCache=function mediaFromCache(hashedId){return dataFromCache(hashedId,{idType:"media"})};var abTestFromCache=function abTestFromCache(hashedId){return dataFromCache(hashedId,{idType:"ab-test"})};var dataFromCache=function dataFromCache(hashedId){var options=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},type=options.idType||"media",resultFromFetchCache=wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default._remoteData["".concat(type,"_").concat(hashedId)];// default to getting a media from the cache
if(resultFromFetchCache)return resultFromFetchCache;var speedDemonData=utilities_root__WEBPACK_IMPORTED_MODULE_0__.default["wistiajsonp-/embed/medias/".concat(hashedId,".json")];return null!=speedDemonData&&speedDemonData.media?speedDemonData.media:null},abTestMediaSelector=function abTestMediaSelector(responseData,options){if(responseData.error)return responseData;// warn if one (or both) of the medias is not present
responseData.missingVideos&&console.warn("The following videos were not present in the AbTest: ",responseData.missingVideos),cacheAbTest(responseData.hashedId,responseData);// filter out control or variants that were not included
var eligibleMediaDatas=[responseData.control,responseData.variant].filter(Boolean);eligibleMediaDatas.forEach(function(m){var _m$media,transformOpts=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_3__.merge)({},null===(_m$media=m.media)||void 0===_m$media?void 0:_m$media.embed_options,options);(0,player_lib_media_data_transforms_js__WEBPACK_IMPORTED_MODULE_14__.mediaDataTransforms)(m.media,transformOpts),cacheMedia(m.media.hashedId,m.media)});var savedHashedId,localStorageKey="ab_test.".concat(responseData.hashedId,".selected_media_hashed_id");savedHashedId=responseData.winnerHashedId?responseData.winnerHashedId:(0,utilities_legacyLocalstorage__WEBPACK_IMPORTED_MODULE_12__.setOrGet)(localStorageKey);var selectedMedia,coinFlipResult,cryptoRandom,mathRandom;// determine a random number
"undefined"==typeof crypto?(mathRandom=Math.random(),coinFlipResult=+(.5<mathRandom)):(cryptoRandom=crypto.getRandomValues(new Uint8Array(1)),coinFlipResult=1&cryptoRandom[0]);// if we get any amount of media datas back other than 2, just
// pick the control
var index=2===eligibleMediaDatas.length?coinFlipResult:0;selectedMedia=eligibleMediaDatas[index].media;// override with a saved media if there is one
var savedMedia=!1;eligibleMediaDatas.some(function(m){if(m.media.hashedId===savedHashedId)return selectedMedia=m.media,savedMedia=!0,!0});var trackingData={numberOfMedias:eligibleMediaDatas.length,coinFlip:coinFlipResult,savedMedia:savedMedia,agent:navigator.userAgent||null,selectedHashedId:selectedMedia.hashedId,stringCryptoRandom:cryptoRandom+""};return null==cryptoRandom?trackingData.mathRandom=mathRandom:trackingData.cryptoRandom=cryptoRandom[0],(0,utilities_metrics__WEBPACK_IMPORTED_MODULE_13__.send)("count","player/ab-test-selection",1,trackingData),(0,utilities_legacyLocalstorage__WEBPACK_IMPORTED_MODULE_12__.setOrGet)(localStorageKey,selectedMedia.hashedId),selectedMedia};// given an ab_test response data, we choose a media to initialize
// 1. if there is a winner from the ab_test, we always choose that media
// 2. if there is a saved hashedId in local storage, we will use that next
// 3. if neither, we will choose one at random to display, and sve the chosen one
// in local storage for subsequent views

/***/ }),

/***/ 87:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "overpassFontFamily": function() { return /* binding */ overpassFontFamily; },
/* harmony export */   "overpassHeavyItalicFontFamily": function() { return /* binding */ overpassHeavyItalicFontFamily; },
/* harmony export */   "overpassNumbers": function() { return /* binding */ overpassNumbers; },
/* harmony export */   "overpassNumbersSemiBold": function() { return /* binding */ overpassNumbersSemiBold; },
/* harmony export */   "overpassExtraBoldFontFamily": function() { return /* binding */ overpassExtraBoldFontFamily; },
/* harmony export */   "overpassSemiBoldFontFamily": function() { return /* binding */ overpassSemiBoldFontFamily; }
/* harmony export */ });
var overpassFontFamily="WistiaPlayerOverpass, Helvetica, Sans-Serif";var overpassHeavyItalicFontFamily="WistiaPlayerOverpassHeavyItalic, Helvetica, Sans-Serif";var overpassNumbers="WistiaPlayerOverpassNumbers, Helvetica, Sans-Serif";var overpassNumbersSemiBold="WistiaPlayerOverpassNumbersSemiBold, Helvetica, Sans-Serif";var overpassExtraBoldFontFamily="WistiaPlayerOverpassExtraBold, Helvetica, Sans-Serif";var overpassSemiBoldFontFamily="WistiaPlayerOverpassSemiBold, Helvetica, Sans-Serif";

/***/ }),

/***/ 118:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "fetchPlaylist": function() { return /* binding */ fetchPlaylist; }
/* harmony export */ });
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var player_lib_jsonp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(79);
/* harmony import */ var utilities_url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16);
/* harmony import */ var player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14);
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(19);
/* harmony import */ var utilities_seqid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8);
/* harmony import */ var player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33);
null==wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._remotePlaylist&&(wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._remotePlaylist={});// e.g. Wistia.remote.playlist("abcd1234", function(media) { ... });
var fetchPlaylist=function fetchPlaylist(playlistId,callback){var cachedData=wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._remotePlaylist[playlistId];if(cachedData)(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_6__.doTimeout)("remote-playlist.".concat(playlistId,".").concat((0,utilities_seqid__WEBPACK_IMPORTED_MODULE_5__.seqId)()),function(){callback(cachedData)});else{var url="".concat((0,utilities_url__WEBPACK_IMPORTED_MODULE_2__.proto)(),"//").concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.cdnFastWistiaComHost)(),"/embed/playlists/").concat(playlistId,".json"),onSuccess=function onSuccess(playlist){wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._remotePlaylist[playlistId]=playlist,callback(playlist)},onError=function onError(){utilities_wlog__WEBPACK_IMPORTED_MODULE_4__.wlog.error("Timed out fetching ".concat(url))};(0,player_lib_jsonp__WEBPACK_IMPORTED_MODULE_1__.jsonpPlus)(url,{},onSuccess,{onerror:onError,timeout:1e4})}};

/***/ }),

/***/ 99:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "pluginScriptsToLoad": function() { return /* binding */ pluginScriptsToLoad; },
/* harmony export */   "pluginScriptsFromDefinedPlugins": function() { return /* binding */ pluginScriptsFromDefinedPlugins; },
/* harmony export */   "allow3rdParty": function() { return /* binding */ allow3rdParty; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
/* harmony import */ var player_lib_judy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84);
/* harmony import */ var player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14);
/* harmony import */ var utilities_detect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20);
var detect=(0,utilities_detect__WEBPACK_IMPORTED_MODULE_4__.cachedDetect)(),AUDIO="Audio",isPluginSupported=function isPluginSupported(name){return"socialbar-v1"!==name};// Given a video, look at its plugin options and generate an
// array of hashes that can be used as an argument to
// `Wistia.remote.scripts`.
// We have extra code for transcripts because 3play's async
// script-loading was broken in a particular version of IE. Loading
// it beforehand avoids the issue.
var pluginScriptsToLoad=function pluginScriptsToLoad(mediaData){var embedOptions=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},playerPlugins=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},ctx=player_lib_judy__WEBPACK_IMPORTED_MODULE_2__.buildContext(),mediaType=mediaData.mediaType,embedOptionsFromMediaData=mediaData.embed_options,mediaDataPlugins=Object(embedOptionsFromMediaData).plugin,pluginOptions=embedOptions.plugin||mediaDataPlugins||{},allPlugins=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.merge)({},pluginOptions,playerPlugins),chosenPlayer=player_lib_judy__WEBPACK_IMPORTED_MODULE_2__.choosePlayer(ctx,mediaData,embedOptions),pluginScripts=pluginScriptsFromDefinedPlugins(allPlugins,embedOptions);// add the airplay plugin if we detect it is not set off
if((detect.safari||detect.iphone||detect.ipad)&&!1!==embedOptions.airplayButton){var airplay={name:"airplay",options:allPlugins.airplay||{},async:!0,src:"".concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Protocol)(),"//").concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Host)(),"/assets/external/airplay.js")};pluginScripts.push(airplay)}// transform layer between old v1 scripts and new scripts v2
var transformedPluginScripts=translatePlugins(pluginScripts,embedOptions,chosenPlayer,mediaType);// chapters is a special case: it's a plugin, but we support turning it on
// via a root embed option. Because it adds a button and flyout that are
// typically visible on load, it should block display of the embed.
return"vulcan-v2"===chosenPlayer&&embedOptions.chaptersOn&&!allPlugins.chapters&&transformedPluginScripts.push({name:getSourceName("chapters"),src:"".concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Protocol)(),"//").concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Host)(),"/assets/external/chapters.js"),async:!1,options:allPlugins.chapters||{}}),embedOptions.showCustomerLogo&&embedOptions.customerLogoImageUrl&&mediaData.enableCustomerLogo&&transformedPluginScripts.push({name:"customerLogo",options:allPlugins.customerLogo||{},async:!0,src:"".concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Protocol)(),"//").concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Host)(),"/assets/external/customerLogo.js")}),(!0===embedOptions.branding||!0===mediaData.branding)&&transformedPluginScripts.push({name:"wistiaLogo",options:allPlugins.wistiaLogo||{},async:!0,src:"".concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Protocol)(),"//").concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Host)(),"/assets/external/wistiaLogo.js")}),"vulcan-v2"!==chosenPlayer||wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.VulcanV2Player||transformedPluginScripts.push({name:"vulcanV2Player",options:{},async:!1,src:"".concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Protocol)(),"//").concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Host)(),"/assets/external/vulcanV2Player.js")}),orderScripts(transformedPluginScripts)};var pluginScriptsFromDefinedPlugins=function pluginScriptsFromDefinedPlugins(plugins,embedOptions){var pluginScripts=[];return Object.keys(plugins).forEach(function(name){if(plugins.hasOwnProperty(name)&&isPluginSupported(getSourceName(name)))// legacy plugins that we don't want to load any longer
{var options=plugins[name];if(options&&!1!==options.on){var srcName=getSourceName(name),newPluginOptions={name:srcName,src:"".concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Protocol)(),"//").concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Host)(),"/assets/external/").concat(srcName,".js"),async:null==options.async?!/^(requireEmail|captions|transcript|midrollLink|share)/.test(name):options.async,options:options};// when dealing with transcripts, make a plugin for 3play and add it to scripts
if(options.src&&allow3rdParty(embedOptions)&&(newPluginOptions.src=options.src),"transcript"===name){var threePlayJquerySrc="https"===(0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_3__.eV1Protocol)()?"https://s3.amazonaws.com/origin-p3.3playmedia.com/javascripts/vendor/jquery-1.6.2.min.js":"http://p3.3playmedia.com/javascripts/vendor/jquery-1.6.2.min.js";pluginScripts.push({src:threePlayJquerySrc,async:!1})}// add the plugin options to plugin scripts
pluginScripts.push(newPluginOptions)}}}),pluginScripts};var translatePlugins=function translatePlugins(pluginScripts,embedOptions,chosenPlayer,mediaType){return pluginScripts.map(function(script){if("vulcan-v2"===chosenPlayer)switch(script.name){case"captions-v1":script.name="captions",script.src=script.src.replace(/captions-v1/,"captions");break;case"share":mediaType===AUDIO?(script.name="audioShare",script.src=script.src.replace(/share/,"audioShare")):(script.name="share-v2",script.src=script.src.replace(/share/,"share-v2"));break;case"chapters":mediaType===AUDIO?(script.name="audioChapters",script.src=script.src.replace(/chapters/,"audioChapters")):script.name="chapters";break;case"postRoll-v1":script.name="postRoll-v2",script.src=script.src.replace(/postRoll-v1/,"postRoll-v2");break;case"midrollLink-v1":script.name="midrollLink-v2",script.src=script.src.replace(/midrollLink-v1/,"midrollLink-v2");break;case"requireEmail-v1":embedOptions._inLegacyPlaylist||(script.name="turnstile",script.src=script.src.replace(/requireEmail-v1/,"turnstile"));break;default:}return script})},orderScripts=function orderScripts(inputScripts){var loadWeight=function loadWeight(plugin){var weight=0;return plugin&&plugin.options&&plugin.options.loadWeight&&(weight=plugin.options.loadWeight),weight};return inputScripts.sort(function(a,b){return loadWeight(a)-loadWeight(b)})},getSourceName=function getSourceName(pluginName){return"requireEmail"===pluginName?"requireEmail-v1":"postRoll"===pluginName?"postRoll-v2":"transcript"===pluginName?"transcript-v2":pluginName};var allow3rdParty=function allow3rdParty(){var options=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return!1!==options.allowThirdParty&&!/([\w_-]+\.)?wistia\.(com|st|io)$/.test(window.location.hostname)};

/***/ }),

/***/ 100:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "prefetchEngineAndPlugins": function() { return /* binding */ prefetchEngineAndPlugins; },
/* harmony export */   "prefetchPlugins": function() { return /* binding */ prefetchPlugins; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var player_lib_judy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84);
/* harmony import */ var player_lib_script_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39);
/* harmony import */ var player_lib_pluginScriptsToLoad__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(promiscuous__WEBPACK_IMPORTED_MODULE_4__);
var prefetchEngineAndPlugins=function prefetchEngineAndPlugins(mediaData){var opts=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},pluginScripts=(0,player_lib_pluginScriptsToLoad__WEBPACK_IMPORTED_MODULE_3__.pluginScriptsToLoad)(mediaData,opts),judyCtx=player_lib_judy__WEBPACK_IMPORTED_MODULE_1__.buildContext(),engineModule=player_lib_judy__WEBPACK_IMPORTED_MODULE_1__.bestUsableEngine(judyCtx,mediaData,opts),pluginsPromise=prefetchPlugins(pluginScripts),enginePromise=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.asyncRequire(engineModule);return promiscuous__WEBPACK_IMPORTED_MODULE_4___default().all([pluginsPromise,enginePromise])};var prefetchPlugins=function prefetchPlugins(){var pluginScripts=0<arguments.length&&arguments[0]!==void 0?arguments[0]:[],scriptsNotFetched=pluginScripts.filter(function(script){if(!wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.plugin._prefetched[script.src])return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.plugin._prefetched[script.src]="fetching",script});return 0===scriptsNotFetched.length?promiscuous__WEBPACK_IMPORTED_MODULE_4___default().resolve():(0,player_lib_script_utils__WEBPACK_IMPORTED_MODULE_2__.runScripts)(scriptsNotFetched,function(){scriptsNotFetched.forEach(function(script){wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.plugin._prefetched[script.src]="fetched"})}).loaded};

/***/ }),

/***/ 70:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getLocalStorageKey": function() { return /* binding */ getLocalStorageKey; },
/* harmony export */   "getLastTime": function() { return /* binding */ getLastTime; },
/* harmony export */   "setLastTime": function() { return /* binding */ setLastTime; },
/* harmony export */   "getResumableKeyForVideo": function() { return /* binding */ getResumableKeyForVideo; },
/* harmony export */   "setResumableKeyForVideo": function() { return /* binding */ setResumableKeyForVideo; },
/* harmony export */   "atOrNearEnd": function() { return /* binding */ atOrNearEnd; },
/* harmony export */   "atOrNearBeginning": function() { return /* binding */ atOrNearBeginning; },
/* harmony export */   "shorterThanResumableThreshold": function() { return /* binding */ shorterThanResumableThreshold; },
/* harmony export */   "withinResumableTime": function() { return /* binding */ withinResumableTime; }
/* harmony export */ });
/* harmony import */ var utilities_namespacedLocalStorage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44);
var BASICALLY_ENDED_THRESHOLD=5,DURATION_THRESHOLD=300,NEAR_BEGINNING_THRESHOLD=10;var getLocalStorageKey=function getLocalStorageKey(hashedId){return"wistia-video-progress-".concat(hashedId)};var getLastTime=function getLastTime(hashedId){return (0,utilities_namespacedLocalStorage__WEBPACK_IMPORTED_MODULE_0__.getLocalStorage)(getLocalStorageKey(hashedId)).lastTime};var setLastTime=function setLastTime(hashedId,time){(0,utilities_namespacedLocalStorage__WEBPACK_IMPORTED_MODULE_0__.updateLocalStorage)(getLocalStorageKey(hashedId),function(obj){obj.lastTime=time})};var getResumableKeyForVideo=function getResumableKeyForVideo(hashedId){return (0,utilities_namespacedLocalStorage__WEBPACK_IMPORTED_MODULE_0__.getLocalStorage)(getLocalStorageKey(hashedId)).resumableKey};var setResumableKeyForVideo=function setResumableKeyForVideo(hashedId,key){(0,utilities_namespacedLocalStorage__WEBPACK_IMPORTED_MODULE_0__.updateLocalStorage)(getLocalStorageKey(hashedId),function(obj){obj.resumableKey=key})};var atOrNearEnd=function atOrNearEnd(hashedId,duration){return(getLastTime(hashedId)||0)+BASICALLY_ENDED_THRESHOLD>duration};var atOrNearBeginning=function atOrNearBeginning(hashedId){var time=getLastTime(hashedId)||0;return time<NEAR_BEGINNING_THRESHOLD};var shorterThanResumableThreshold=function shorterThanResumableThreshold(duration){return duration<DURATION_THRESHOLD};var withinResumableTime=function withinResumableTime(hashedId,duration){return!atOrNearBeginning(hashedId)&&!atOrNearEnd(hashedId,duration)};

/***/ }),

/***/ 38:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getScriptTags": function() { return /* binding */ getScriptTags; },
/* harmony export */   "scriptTagsToRunScriptsInput": function() { return /* binding */ scriptTagsToRunScriptsInput; },
/* harmony export */   "execScriptTags": function() { return /* binding */ execScriptTags; },
/* harmony export */   "removeScriptTags": function() { return /* binding */ removeScriptTags; }
/* harmony export */ });
/* harmony import */ var player_lib_script_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(39);
var getScriptTags=function getScriptTags(htmlStr){return htmlStr.match(/<script.*?src[^>]*>\s*<\/script>|<script.*?>[\s\S]+?<\/script>/gi)||[]};var scriptTagsToRunScriptsInput=function scriptTagsToRunScriptsInput(scriptTags){if(!scriptTags)return[];scriptTags instanceof Array||(scriptTags=getScriptTags(scriptTags));for(var hashes=[],i=0;i<scriptTags.length;i++){var scriptTag=scriptTags[i],hash={},matches=scriptTag.match(/<script.*?>/i);matches&&(matches=matches[0].match(/src="([^"]+)"/i),matches&&(hash.src=matches[1],hash.async=/async/i.test(scriptTag.replace(hash.src,"")))),matches||(matches=scriptTag.match(/<script>([\s\S]+?)<\/script>/i),matches&&function(){var src=matches[1];hash.fn=function(){return eval(src)}}()),hashes.push(hash)}return hashes};var execScriptTags=function execScriptTags(scriptTags,callback){if(!scriptTags)return null;var hashes=scriptTagsToRunScriptsInput(scriptTags);return (0,player_lib_script_utils__WEBPACK_IMPORTED_MODULE_0__.runScripts)(hashes,callback)};var removeScriptTags=function removeScriptTags(htmlStr){return htmlStr.replace(/<script.*?src[^>]*>\s*<\/script>|<script>[\s\S]+?<\/script>/g,"")};

/***/ }),

/***/ 39:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "findScriptInDomBySrc": function() { return /* binding */ findScriptInDomBySrc; },
/* harmony export */   "removeScriptsBySrc": function() { return /* binding */ removeScriptsBySrc; },
/* harmony export */   "runScript": function() { return /* binding */ runScript; },
/* harmony export */   "runScripts": function() { return /* binding */ runScripts; },
/* harmony export */   "scriptInputsToHash": function() { return /* binding */ scriptInputsToHash; }
/* harmony export */ });
/* harmony import */ var utilities_stopgo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40);
/* harmony import */ var utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(utilities_stopgo__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
/* harmony import */ var utilities_runScript_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}var findScriptInDomBySrc=function findScriptInDomBySrc(targetSrc){for(var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},scriptTags=document.getElementsByTagName("script"),i=0;i<scriptTags.length;i++){var s=scriptTags[i],src=s.getAttribute("src")||"";if(options.ignoreQueryParams){var matches=src.split("?"),urlWithoutParams=matches[0];src=urlWithoutParams}if(!options.scriptRegex&&options.ignoreProtocol&&(src=src.replace(/^https?:/,""),targetSrc=targetSrc.replace(/^https?:/,"")),options.scriptRegex&&options.scriptRegex.test(src))return s;if(options.testStartsWith&&0===src.indexOf(targetSrc))return s;if(src===targetSrc)return s}return null};var removeScriptsBySrc=function removeScriptsBySrc(targetSrc){for(var s,options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};s=findScriptInDomBySrc(targetSrc,options);)if(s&&(s.onload=s.onreadystatechange=s.onerror=null,s.parentNode&&_typeof(s.parentNode.removeChild)))try{s.parentNode.removeChild(s)}catch(e){setTimeout(function(){throw e},0)}};// fire and forget.
// run a script and immediately remove it from the DOM.
var runScript=function runScript(src,callback){var timeout=2<arguments.length&&void 0!==arguments[2]?arguments[2]:8e3,options=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};null==timeout&&(timeout=8e3),null==options&&(options={});var s,alreadyExists,loaded=new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default()),onError=new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default());return!0===options.once&&(s=findScriptInDomBySrc(src))&&(alreadyExists=!0),options.once&&alreadyExists?(!s.readyState||/loaded|complete/.test(s.readyState))&&setTimeout(function(){loaded(!0)},1):(0,utilities_runScript_js__WEBPACK_IMPORTED_MODULE_3__.default)(src,timeout).then(function(){loaded(!0)})["catch"](function(msg){loaded(!0,msg),setTimeout(function(){throw msg},1)}),"function"==typeof callback&&loaded.then(callback),{loaded:loaded,error:function error(){return onError}}};var runScripts=function runScripts(){for(var _len=arguments.length,scripts=Array(_len),_key=0;_key<_len;_key++)scripts[_key]=arguments[_key];if(scripts[0]instanceof Array){var callback=scripts[1];scripts=scripts[0],callback&&(scripts=scripts.concat(callback))}scripts=scriptInputsToHash(scripts);// If preloadAllowed is set, then a script can load and execute before its
// callback fires. This allows many scripts with preloadAllowed and
// async=false to avoid bottlenecking each other.
for(var script,i=0;i<scripts.length;i++)script=scripts[i],script.src&&script.preloadAllowed&&runScript(script.src,null,null,script);for(var prevDone=[],allDone=[],_i=0;_i<scripts.length;_i++){var _script=scripts[_i],canContinue=new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default()),thisDone=new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default());(function(script,canContinue,thisDone){utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default().when.apply((utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default()),prevDone).run(function(){if(script.fn){var inlineFn=function inlineFn(){try{script.fn()}catch(e){utilities_wlog__WEBPACK_IMPORTED_MODULE_1__.wlog.error(e)}finally{canContinue.go(),thisDone.go()}};script.async?setTimeout(inlineFn,1):inlineFn()}else if(script.src){var externalFn=function externalFn(){runScript(script.src,null,null,script).loaded(function(){thisDone.go(),canContinue.go()})};script.async?(setTimeout(externalFn,1),canContinue.go()):setTimeout(externalFn,1)}})})(_script,canContinue,thisDone),prevDone.push(canContinue),allDone.push(thisDone)}return{loaded:utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default().when.apply((utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default()),allDone)}};var scriptInputsToHash=function scriptInputsToHash(scripts){for(var script,result=[],i=0;i<scripts.length;i++)script=scripts[i],"string"==typeof script?result.push({src:script,async:!1}):(0,utilities_obj__WEBPACK_IMPORTED_MODULE_2__.isObject)(script)?result.push(script):result.push({fn:script,async:!1});return result};

/***/ }),

/***/ 33:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "doTimeout": function() { return /* binding */ doTimeout; },
/* harmony export */   "clearTimeouts": function() { return /* binding */ clearTimeouts; }
/* harmony export */ });
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
var W=wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default;null==W._timeouts&&(W._timeouts={});// Improved timeouts!
// allows us to
//   1. auto-debounce if an identical key is replaced
//   2. associate timeouts with a specific context, but access them globally
//   3. Clear all timeouts in a specific context
//   4. Do nextTick by not specifying the time argument
// e.g. Wistia.timeout("video1234", function() { ... });
//
// In our implementation, we treat the first dot-delimited value in the key
// as a namespace. This is an optimization since most of our videos prefix
// their timeouts with a uuid. By keeping them in a namespace, it means
// clearTimeouts doesn't need to iterate through _all_ timeouts globally,
// which makes doTimeout itself faster (since it calls clearTimeouts internally).
//
// Returns the timeoutId.
var doTimeout=function doTimeout(key,fn){var time=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;(0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.isArray)(key)&&(key=key.join("."));var namespace=timeoutNamespace(key);if(clearTimeouts(key,namespace),fn){var timeouts=W._timeouts[namespace];null==timeouts&&(timeouts=W._timeouts[namespace]={});var timeoutId=setTimeout(function(){delete timeouts[key],fn()},time);return timeouts[key]=timeoutId,timeoutId}return W._timeouts[namespace][key]};// This will clear timeouts matching the key. Key is dot-delimited list
// like:
//
// mynamespace.more_specific.
// mynamespace.anothernamespace.more_specific
//
// We allow passing in namespace as an optimization for doTimeout.
var clearTimeouts=function clearTimeouts(key){var namespace=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;(0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.isArray)(key)&&(key=key.join(".")),namespace=namespace||timeoutNamespace(key);// If there's no namespacing on the input key, then we should treat the
// input as both a namespace _and_ a key. This handles the namespace case.
// We handle the key case with our normal logic.
var timeouts;if("__global__"===namespace&&(timeouts=W._timeouts[key],timeouts))for(var k in timeouts){var v=timeouts[k];clearTimeout(v),delete timeouts[k]}if(timeouts=W._timeouts[namespace],timeouts)for(var _k in timeouts){var _v=timeouts[_k];_k.indexOf&&0===_k.indexOf(key)&&(_k.length===key.length||"."===_k.charAt(key.length))&&(clearTimeout(_v),delete timeouts[_k])}// Cleaning out namespaces is not particularly efficient, and isn't
// particularly helpful, so let's only do it once every 5 seconds.
W.blockSweepTimeouts||(W.blockSweepTimeouts=!0,setTimeout(sweepTimeouts,0),setTimeout(function(){W.blockSweepTimeouts=!1},5e3))};// Clear out any namespaces that are no longer active
var sweepTimeouts=function sweepTimeouts(){for(var namespace in W._timeouts){var timeouts=W._timeouts[namespace];(0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.isEmpty)(timeouts)&&delete W._timeouts[namespace]}},timeoutNamespace=function timeoutNamespace(key){var dotIndex=key.indexOf(".");return 0<dotIndex?key.substring(0,dotIndex):"__global__"};

/***/ }),

/***/ 90:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "deleteViewerPreferences": function() { return /* binding */ deleteViewerPreferences; },
/* harmony export */   "getViewerPreferences": function() { return /* binding */ getViewerPreferences; },
/* harmony export */   "setViewerPreference": function() { return /* binding */ setViewerPreference; }
/* harmony export */ });
/* harmony import */ var utilities_namespacedLocalStorage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(44);
var deleteViewerPreferences=function deleteViewerPreferences(){(0,utilities_namespacedLocalStorage__WEBPACK_IMPORTED_MODULE_0__.removeLocalStorage)(getLocalStorageKey())};var getLocalStorageKey=function getLocalStorageKey(){return"wistia-viewer-preferences"};var getViewerPreferences=function getViewerPreferences(){return (0,utilities_namespacedLocalStorage__WEBPACK_IMPORTED_MODULE_0__.getLocalStorage)(getLocalStorageKey())};var setViewerPreference=function setViewerPreference(preference,value){(0,utilities_namespacedLocalStorage__WEBPACK_IMPORTED_MODULE_0__.updateLocalStorage)(getLocalStorageKey(),function(obj){obj[preference]=value})};

/***/ }),

/***/ 88:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "supportedLanguages": function() { return /* binding */ supportedLanguages; },
/* harmony export */   "defineLanguage": function() { return /* binding */ defineLanguage; },
/* harmony export */   "getLanguage": function() { return /* binding */ getLanguage; },
/* harmony export */   "defineTranslations": function() { return /* binding */ defineTranslations; },
/* harmony export */   "getTranslation": function() { return /* binding */ getTranslation; },
/* harmony export */   "getLanguagePreference": function() { return /* binding */ getLanguagePreference; },
/* harmony export */   "loadAndDefineTranslation": function() { return /* binding */ loadAndDefineTranslation; },
/* harmony export */   "matchingLanguages": function() { return /* binding */ matchingLanguages; },
/* harmony export */   "getDefaultTranslation": function() { return /* binding */ getDefaultTranslation; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(promiscuous__WEBPACK_IMPORTED_MODULE_2__);
var languages=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.languages=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.languages||{},translations=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.translations=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.translations||{};wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._translationPromises||(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._translationPromises={});var supportedLanguages=["ar","de","es","en-US","fr","it","ja","ko","pt","ru","zh-CN"];var defineLanguage=function defineLanguage(code,text,translations){languages[code]={code:code,text:decodeEntities(text)},translations&&defineTranslations(code,translations)};var getLanguage=function getLanguage(code){return languages[code]};var defineTranslations=function defineTranslations(code,keyValPairs){if(null==languages[code])throw new Error("Must define a language with code ".concat(code," before defining its translations."));var translation=translations[code];translation?(0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.merge)(translation,keyValPairs):translations[code]=(0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.clone)(keyValPairs)};var dummyTextArea,withFallbackText=function withFallbackText(text){return null==text?"?":text},cachedDecodings=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.cachedDecodings=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.cachedDecodings||{},decodeEntities=function decodeEntities(text){return(dummyTextArea||(dummyTextArea=document.createElement("textarea")),null!=cachedDecodings[text])?cachedDecodings[text]:(dummyTextArea.innerHTML=text,cachedDecodings[text]=dummyTextArea.value,dummyTextArea.value)};var getTranslation=function getTranslation(code,key){var text;return text=translations[code]&&translations[code][key]?translations[code][key]:translations["en-US"][key],decodeEntities(withFallbackText(text))};var getLanguagePreference=function getLanguagePreference(){return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.languagePreference=navigator.languages||[navigator.language],wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.languagePreference};var loadAndDefineTranslation=function loadAndDefineTranslation(code){if(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._translationPromises[code])return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._translationPromises[code];var result=new (promiscuous__WEBPACK_IMPORTED_MODULE_2___default())(function(resolve,reject){wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.asyncRequire(["translations/".concat(code,".js")]).then(function(){resolve({code:code,translations:translations[code]})})["catch"](reject)});return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._translationPromises[code]=result,result};var matchingLanguages=function matchingLanguages(){var languagePrefs=0<arguments.length&&arguments[0]!==void 0?arguments[0]:getLanguagePreference;return languagePrefs().reduce(function(matches,langCode){var isFullMatch=-1!==supportedLanguages.indexOf(langCode),partialLangCode=langCode.split("-")[0],isPartialMatch=-1!==supportedLanguages.indexOf(partialLangCode);// strip the region off a language, e.g. `es-ES` -> `es`
return isFullMatch?matches.push(langCode):isPartialMatch&&matches.push(partialLangCode),matches},[])};var getDefaultTranslation=function getDefaultTranslation(){var matchingLanguage=matchingLanguages()[0];// if there is not match, or if it is 'en', go to our
// default of 'en-US'
return matchingLanguage&&"en"!==matchingLanguage||(matchingLanguage="en-US"),translations[matchingLanguage]?promiscuous__WEBPACK_IMPORTED_MODULE_2___default().resolve({code:matchingLanguage,translations:translations[matchingLanguage]}):loadAndDefineTranslation(matchingLanguage)};// Most translations are defined where they are used, however these translations are
// rather generic and used in multiple places. They are defined here so we don't
// duplicate multiple translation keys.
defineLanguage("en-US","English"),defineTranslations("en-US",{PLAY:"Play",PLAY_BUTTON_TITLE_WHEN_NOT_PLAYING:"Play Video",PLAY_BUTTON_TITLE_WHEN_PLAYING:"Pause",REWATCH:"Rewatch",SKIP:"Skip"}),wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._initializers.initDefaultTranslation=getDefaultTranslation,wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.getDefaultTranslation=getDefaultTranslation,wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.suppportedLanguages=supportedLanguages,wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.defineLanguage=defineLanguage,wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.getLanguage=getLanguage,wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.getLanguagePreference=getLanguagePreference,wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.defineTranslations=defineTranslations,wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.getTranslation=getTranslation,wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.loadAndDefineTranslation=loadAndDefineTranslation;

/***/ }),

/***/ 103:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "indexOf": function() { return /* binding */ indexOf; },
/* harmony export */   "insertIntoArray": function() { return /* binding */ insertIntoArray; },
/* harmony export */   "toArray": function() { return /* binding */ toArray; }
/* harmony export */ });
var indexOf=function indexOf(arr,val){for(var i=0,end=arr.length,asc=0<=end;asc?i<=end:i>=end;asc?i++:i--)if("function"==typeof val){if(val(arr[i]))return i;}else if(arr[i]===val&&arr[i]===val)return i;return-1};var insertIntoArray=function insertIntoArray(arr,value,position){var index;return null==position&&(position={}),position.after?(index=indexOf(arr,position.detect||position.after),0<=index?arr.splice(index+1,0,value):"undefined"!=typeof console&&null!==console?// eslint-disable-next-line no-console
console.log("".concat(position.after," not found when trying to add ").concat(value," to array")):void 0):position.before?(index=indexOf(arr,position.detect||position.before),0<=index?arr.splice(index,0,value):"undefined"!=typeof console&&null!==console?// eslint-disable-next-line no-console
console.log("".concat(position.before," not found when trying to add ").concat(value," to array")):void 0):null==position.index?arr.push(value):arr.splice(position.index,0,value)};var toArray=function toArray(thing,splitOn){if(null==splitOn&&(splitOn=/\s+/),thing instanceof Array)return thing;if("string"==typeof thing)return thing.split(splitOn);throw new Error("Don't know how to convert ".concat(thing," into an array."))};

/***/ }),

/***/ 18:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
function _extends(){return _extends=Object.assign||function(target){for(var source,i=1;i<arguments.length;i++)for(var key in source=arguments[i],source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},_extends.apply(this,arguments)}// You wouldn't believe it, but IE11 does not support Object.assign(), so this
// is our non-polyfill replacement.
var assign=function assign(obj1){for(var _len=arguments.length,objs=Array(1<_len?_len-1:0),_key=1;_key<_len;_key++)objs[_key-1]=arguments[_key];if(Object.assign)return _extends.apply(void 0,[obj1].concat(objs));for(var i=0;i<objs.length;i++)assignOne(obj1,objs[i]);return obj1},assignOne=function assignOne(obj1,obj2){for(var k in obj2)obj2.hasOwnProperty(k)&&(obj1[k]=obj2[k]);return obj1};/* harmony default export */ __webpack_exports__["default"] = (assign);

/***/ }),

/***/ 125:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "asyncChain": function() { return /* binding */ asyncChain; }
/* harmony export */ });
/* harmony import */ var utilities_stopgo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40);
/* harmony import */ var utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(utilities_stopgo__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19);
/* harmony import */ var player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33);
function _createForOfIteratorHelper(o,allowArrayLike){var it;if("undefined"==typeof Symbol||null==o[Symbol.iterator]){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function F(){};return{s:F,n:function n(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it["return"]||it["return"]()}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}// Compose all of our functions in stopGos and pass to
// StopGo._drainStopGosAsync, which handles async draining. Add one more after
// the last, so that `then` is naturally on a separate tick too.
var asyncChain=function asyncChain(prefix,functions){var _step,_i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,stopGos=[],_iterator=_createForOfIteratorHelper(functions);try{for(_iterator.s();!(_step=_iterator.n()).done;){var fn=_step.value;(function(fn){var safeFn=function safeFn(){try{return fn()}catch(e){return utilities_wlog__WEBPACK_IMPORTED_MODULE_1__.wlog.error(e)}};return stopGos.push(new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default())().run(safeFn))})(fn)}}catch(err){_iterator.e(err)}finally{_iterator.f()}var lastStopGo=stopGos[stopGos.length-1];utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default()._drainStopGosAsync(prefix,stopGos);var result=new (utilities_stopgo__WEBPACK_IMPORTED_MODULE_0___default());return lastStopGo.then(function(){return (0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_2__.doTimeout)("".concat(prefix,".last"),function(){return result.go()},0)}),result};

/***/ }),

/***/ 23:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "bind": function() { return /* binding */ bind; },
/* harmony export */   "unbind": function() { return /* binding */ unbind; },
/* harmony export */   "rebind": function() { return /* binding */ rebind; },
/* harmony export */   "trigger": function() { return /* binding */ trigger; },
/* harmony export */   "once": function() { return /* binding */ once; },
/* harmony export */   "initNamespace": function() { return /* binding */ initNamespace; },
/* harmony export */   "bindNamed": function() { return /* binding */ bindNamed; },
/* harmony export */   "unbindNamed": function() { return /* binding */ unbindNamed; },
/* harmony export */   "unbindAllInNamespace": function() { return /* binding */ unbindAllInNamespace; },
/* harmony export */   "bindify": function() { return /* binding */ bindify; },
/* harmony export */   "Bindings": function() { return /* binding */ Bindings; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}var aps=Array.prototype.slice;var bind=function bind(event,fn){var self=this;return self._bindings||(self._bindings={}),self._bindings[event]||(self._bindings[event]=[]),self._bindings[event].push(fn),function(){self.unbind(event,fn)}};var unbind=function unbind(event,fn){if(!this._bindings)return this;if(!this._bindings[event])return this;for(var boundFn,bindings=[],i=0;i<this._bindings[event].length;i++)boundFn=this._bindings[event][i],boundFn!==fn&&bindings.push(boundFn);this._bindings[event]=bindings};var rebind=function rebind(event,fn){return this.unbind(event,fn),this.bind(event,fn),{event:event,fn:fn}};var trigger=function trigger(event){for(var _len=arguments.length,args=Array(1<_len?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return this._bindings&&null!=this._bindings.all&&triggerImpl.apply(this,["all",event].concat(args)),triggerImpl.apply(this,[event].concat(args))};var triggerImpl=function triggerImpl(event){if(!this._bindings)return this;if(!this._bindings[event])return this;for(var unbinds,fn,args=aps.call(arguments,1),bindings=_toConsumableArray(this._bindings[event]),i=0;i<bindings.length;i++){fn=bindings[i];try{var ret=fn.apply(this,args);// special return value will unbind when triggered
ret===this.unbind&&(null==unbinds&&(unbinds=[]),unbinds.push({event:event,fn:fn}))}catch(e){if(this._throwTriggerErrors)throw e;else wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.error&&wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.error(e)}}if(unbinds)for(var _unbind,_i=0;_i<unbinds.length;_i++)_unbind=unbinds[_i],this.unbind(_unbind.event,_unbind.fn);return this};var once=function once(event,fn){var wrappedFn=function wrappedFn(){return fn.apply(this,aps.call(arguments,0)),unbind};return bind(event,wrappedFn)};var initNamespace=function initNamespace(ctx,namespace){null==ctx._namedBindings&&(ctx._namedBindings={}),null==ctx._namedBindings[namespace]&&(ctx._namedBindings[namespace]={})};var getNamedBinding=function getNamedBinding(ctx,namespace,fnKey){return initNamespace(ctx,namespace),ctx._namedBindings[namespace][fnKey]},setNamedBinding=function setNamedBinding(ctx,namespace,fnKey,event,fn){initNamespace(ctx,namespace),ctx._namedBindings[namespace][fnKey]={event:event,fn:fn}};var bindNamed=function bindNamed(namespace,fnKey,event,fn){return this.unbindNamed(namespace,fnKey),setNamedBinding(this,namespace,fnKey,event,fn),this.bind(event,fn),function(){this.unbindNamed(namespace,fnKey)}};var unbindNamed=function unbindNamed(namespace,fnKey){initNamespace(this,namespace);var entry=getNamedBinding(this,namespace,fnKey);if(entry){var event=entry.event,fn=entry.fn;this.unbind(event,fn)}var namedBindings=this._namedBindings;return delete namedBindings[namespace][fnKey],isEmpty(namedBindings[namespace])&&delete namedBindings[namespace],this};var unbindAllInNamespace=function unbindAllInNamespace(namespace){var bindings=this._namedBindings&&this._namedBindings[namespace];if(null==bindings)return this;for(var fnKey in bindings)bindings.hasOwnProperty(fnKey)&&this.unbindNamed(namespace,fnKey)};var isEmpty=function isEmpty(obj){for(var k in obj)if(obj.hasOwnProperty(k))return!1;return!0};var bindify=function bindify(prototype){return prototype.bind=bind,prototype.unbind=unbind,prototype.on=bind,prototype.off=unbind,prototype.rebind=rebind,prototype.trigger=trigger,prototype.bindNamed=bindNamed,prototype.unbindNamed=unbindNamed,prototype.unbindAllInNamespace=unbindAllInNamespace,prototype};// If you don't want to mix in state with an existing object, you can use this
// as a proxy, for example:
//
// var bindings = new Bindings();
// bindings.bind('hello', function(name) {
//   console.log('hi', name);
//   return bindings.unbind;
// });
// bindings.trigger('hello', 'Max');
var Bindings=function Bindings(){};bindify(Bindings.prototype);

/***/ }),

/***/ 81:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "makeCacheable": function() { return /* binding */ makeCacheable; },
/* harmony export */   "uncacheNamespace": function() { return /* binding */ uncacheNamespace; },
/* harmony export */   "uncache": function() { return /* binding */ uncache; },
/* harmony export */   "makeNamespace": function() { return /* binding */ makeNamespace; }
/* harmony export */ });
var makeCacheable=function makeCacheable(namespace){return function(object,cacheKey,fn){if(init(namespace,object),isCached(namespace,object,cacheKey))return getFromCache(namespace,object,cacheKey);var val=fn();return cache(namespace,object,cacheKey,val),val}},makeNamespace=function makeNamespace(namespace){return function(obj){return null==obj[namespace]&&(obj[namespace]={}),obj[namespace]}},isCached=function isCached(namespace,object,cacheKey){return null!=getFromCache(namespace,object,cacheKey)},getFromCache=function getFromCache(namespace,object,cacheKey){return init(namespace,object),object[namespace][cacheKey]},init=function init(namespace,object){null==object[namespace]&&(object[namespace]={})},cache=function cache(namespace,object,cacheKey,value){init(namespace,object),object[namespace][cacheKey]=value},uncache=function uncache(namespace,object,cacheKey){init(namespace,object),delete object[namespace][cacheKey]},uncacheNamespace=function uncacheNamespace(namespace,object){object[namespace]={}};

/***/ }),

/***/ 91:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}// Logic adapted from this Javascript Color class:
// https://github.com/moagrius/Color/blob/master/Color.js
//
// HSL to RGB logic (broken in Color class) taken from:
// http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
// ## Regular expressions ##
var rHex=/^#?([0-9a-f]{3,4}|[0-9a-f]{6,8})$/i,rRgb=/^rgba?\((\d{1,3}(?:\.\d+)?%?),\s*(\d{1,3}(?:\.\d+)?%?),\s*(\d{1,3}(?:\.\d+)?%?)(?:,\s*([01]?\.?\d*))?\)$/,rPercent=/^\d+(\.\d+)*%$/,hexBit=/([0-9a-f])/gi,p2v=function p2v(p){return rPercent.test(p)?2.55*parseFloat(p):p},hue2rgb=function hue2rgb(a,b,c){return 0>c&&(c+=1),1<c&&(c-=1),c<1/6?a+6*(b-a)*c:c<1/2?b:c<2/3?a+6*((b-a)*(2/3-c)):a},Color=/*#__PURE__*/function(){// ## Constructor ##
//
// Construct our own color representation either from an
// existing color, or a color string.
function Color(input){_classCallCheck(this,Color),input instanceof Color?(this.r=input.r,this.g=input.g,this.b=input.b,this.a=input.a):input?this.parse(input):(this.r=this.g=this.b=0,this.a=1)}// ## Parse ##
//
// Accept #RRGGBB, #RRGGBBAA, rgba(R,G,B), or rgba(R,G,B,A) formats.
// The rgb formats also allows percents.
return _createClass(Color,[{key:"parse",value:function parse(input){if(input+="",rHex.test(input)){var stripped=input.replace(/^#/,"");(3===stripped.length||4===stripped.length)&&(stripped=stripped.replace(hexBit,"$1$1")),this.r=parseInt(stripped.substr(0,2),16),this.g=parseInt(stripped.substr(2,2),16),this.b=parseInt(stripped.substr(4,2),16),this.a=8===stripped.length?parseInt(stripped.substr(6,2),16)/255:1}else if(rRgb.test(input)){var parts=input.match(rRgb);this.r=parseFloat(p2v(parts[1])),this.g=parseFloat(p2v(parts[2])),this.b=parseFloat(p2v(parts[3])),this.a=parts[4]?parseFloat(parts[4]):1}return this}},{key:"clone",value:function clone(){return new Color(this)}// Compute internal HSL values based on internal RGB values.
},{key:"_hslFromRgb",value:function _hslFromRgb(){var r=this.r/255,g=this.g/255,b=this.b/255,max=Math.max(r,g,b),min=Math.min(r,g,b),l=(max+min)/2;max===min&&(this._h=this._s=0);var s,d=max-min;if(0==d)return this._h=0,this._s=0,this._l=100*r,this;s=.5<l?d/(2-max-min):d/(max+min);var h;return h=max===r?(g-b)/d+(g<b?6:0):max===g?(b-r)/d+2:(r-g)/d+4,h/=6,this._h=360*h,this._s=100*s,this._l=100*l,this}// Compute internal RGB values based on internal HSL values.
},{key:"_rgbFromHsl",value:function _rgbFromHsl(){var h=this._h/360,s=this._s/100,l=this._l/100,q=.5>l?l*(1+s):l+s-l*s,p=2*l-q;return this.r=255*hue2rgb(p,q,h+1/3),this.g=255*hue2rgb(p,q,h),this.b=255*hue2rgb(p,q,h-1/3),this}// Do math to blend a channel with a different value. Alpha is
// the strength of the blend.
},{key:"blendChannel",value:function blendChannel(channel,value,alpha){return this[channel]=alpha*value+(1-alpha)*this[channel],this}// Blend this color with another color by blending each RGB
// channel individually.
},{key:"blend",value:function blend(color,alpha){return color=new Color(color),this.blendChannel("r",color.r,alpha),this.blendChannel("g",color.g,alpha),this.blendChannel("b",color.b,alpha),this}// Increase a channel by a fixed value, but within the [0,255] range.
},{key:"lightenChannel",value:function lightenChannel(channel,steps){return this[channel]+=steps,0>this[channel]?this[channel]=0:255<this[channel]&&(this[channel]=255),this}// Lighten this color by increasing each channel by a fixed value.
},{key:"lighten",value:function lighten(steps){return this.looksLikePercent(steps)?this.lightness(this.lightness()+parseFloat(steps)):(this.lightenChannel("r",steps),this.lightenChannel("g",steps),this.lightenChannel("b",steps)),this}},{key:"darken",value:function darken(steps){return"string"==typeof steps?this.lighten("-".concat(steps)):this.lighten(-steps)}},{key:"looksLikePercent",value:function looksLikePercent(str){return /^-?\d+(\.\d+)?%$/.test(str)}// Set the lightness of this color by modifying the L value in
// HSL, then recomputing the RGB.
//
// No args gets the current lightness.
},{key:"lightness",value:function lightness(l){return this._hslFromRgb(),null==l?this._l:(this._l=Math.max(0,Math.min(100,l)),this._rgbFromHsl(),this)}// Set the saturation of this color by modifying the S value in
// HSL, then recomputing the RGB.
//
// No args gets the current saturation.
},{key:"saturation",value:function saturation(s){return this._hslFromRgb(),null==s?this._s:(this._s=Math.max(0,Math.min(100,s)),this._rgbFromHsl(),this)}// Gray level accounts for the strength of each individual channel.
// This is more visually accurate than just averaging all the channels.
},{key:"grayLevel",value:function grayLevel(){return(.299*this.r+.587*this.g+.114*this.b)/255}// The white level is basically paleness, and is determined by the
// minimum of all the RGB channels.
},{key:"whiteLevel",value:function whiteLevel(){return Math.min(Math.min(this.r,this.g),this.b)}},{key:"isGrayscale",value:function isGrayscale(){return this.r===this.g&&this.g===this.b}},{key:"distanceFrom",value:function distanceFrom(color){return Math.sqrt(Math.pow(this.r-color.r,2)+Math.pow(this.g-color.g,2)+Math.pow(this.b-color.b,2))}},{key:"channelDominance",value:function channelDominance(){var _this=this;return["r","g","b"].sort(function(a,b){return _this[b]-_this[a]})}},{key:"alpha",value:function alpha(a){return null==a?this.a:(this.a=a,this)}},{key:"red",value:function red(r){return null==r?this.r:(this.r=r,this)}},{key:"green",value:function green(g){return null==g?this.g:(this.g=g,this)}},{key:"blue",value:function blue(b){return null==b?this.b:(this.b=b,this)}},{key:"toHex",value:function toHex(){var r=Math.round(this.r).toString(16),g=Math.round(this.g).toString(16),b=Math.round(this.b).toString(16);return 1===r.length&&(r="0"+r),1===g.length&&(g="0"+g),1===b.length&&(b="0"+b),""+r+g+b}},{key:"toHexWithAlpha",value:function toHexWithAlpha(){var a=Math.round(255*this.a).toString(16);return 1===a.length&&(a="0"+a),""+a+this.toHex()}},{key:"toRgb",value:function toRgb(){return"rgb(".concat(Math.round(this.r),",").concat(Math.round(this.g),",").concat(Math.round(this.b),")")}},{key:"toRgba",value:function toRgba(){return"rgba(".concat(Math.round(this.r),",").concat(Math.round(this.g),",").concat(Math.round(this.b),",").concat(this.a,")")}},{key:"toRgbaOrHex",value:function toRgbaOrHex(){return this.toRgba()}},{key:"toPercent",value:function toPercent(){return"rgba(".concat(100*(this.r/255),"%,").concat(100*(this.g/255),"%,").concat(100*(this.b/255),"%,").concat(this.a,")")}// IE8 and below don't support RGBA, but we can use this gradient hack to
// do the same thing. The catch is that it functions as a background image
// instead of a color, and therefore overrides other background images in IE.
//
// This should go after a `filter` CSS property.
},{key:"toIeGradient",value:function toIeGradient(){return"progid:DXImageTransform.Microsoft.gradient(startColorStr='#".concat(this.toHexWithAlpha(),"', endColorStr='#").concat(this.toHexWithAlpha(),"')")}},{key:"toString",value:function toString(){return this.toPercent()}}]),Color}();/* harmony default export */ __webpack_exports__["default"] = (Color);

/***/ }),

/***/ 27:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "poll": function() { return /* reexport safe */ utilities_poll_js__WEBPACK_IMPORTED_MODULE_1__.default; },
/* harmony export */   "throttle": function() { return /* reexport safe */ utilities_throttle_js__WEBPACK_IMPORTED_MODULE_2__.default; },
/* harmony export */   "unescapeHtml": function() { return /* reexport safe */ utilities_unescape_html_js__WEBPACK_IMPORTED_MODULE_3__.unescapeHtml; },
/* harmony export */   "unbreakifyText": function() { return /* binding */ unbreakifyText; },
/* harmony export */   "stripHtml": function() { return /* binding */ stripHtml; },
/* harmony export */   "camelCase": function() { return /* binding */ camelCase; },
/* harmony export */   "snakeCase": function() { return /* binding */ snakeCase; },
/* harmony export */   "shallowCamelizeKeys": function() { return /* binding */ shallowCamelizeKeys; },
/* harmony export */   "shallowSnakeKeys": function() { return /* binding */ shallowSnakeKeys; },
/* harmony export */   "base64Decode": function() { return /* binding */ base64Decode; },
/* harmony export */   "base64Encode": function() { return /* binding */ base64Encode; },
/* harmony export */   "notSetOrTrue": function() { return /* binding */ notSetOrTrue; },
/* harmony export */   "preventOuterMouseWheel": function() { return /* binding */ preventOuterMouseWheel; },
/* harmony export */   "parentFramesLength": function() { return /* binding */ parentFramesLength; }
/* harmony export */ });
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_poll_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28);
/* harmony import */ var utilities_throttle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29);
/* harmony import */ var utilities_unescape_html_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30);
// replace spaces in text with &nbsp; this prevents the line from wrapping.
// specifically, it allows menu items in the vulcan ui to push their parent div
// open as wide as the text.
var unbreakifyText=function unbreakifyText(){var text=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"";return text.replace(" ","&nbsp;")};var stripHtml=function stripHtml(htmlStr){var tmp=document.createElement("div");return tmp.innerHTML=htmlStr,tmp.textContent||tmp.innerText||""};var camelCase=function camelCase(snakeStr){return snakeStr.replace(/[_-]([a-z])/g,function(g){return g.charAt(1).toUpperCase()})};var snakeCase=function snakeCase(camelStr){return camelStr.replace(/[A-Z]/g,function(g){return"_"+g.toLowerCase()})};// Not safe IE8 and below.
var shallowCamelizeKeys=function shallowCamelizeKeys(o){return Object.keys(o).reduce(function(memo,key){return memo[camelCase(key)]=o[key],memo},{})};// Not safe IE8 and below.
var shallowSnakeKeys=function shallowSnakeKeys(o){return Object.keys(o).reduce(function(memo,key){return memo[snakeCase(key)]=o[key],memo},{})};// the implementations of base64Decode and base64Encode here are adapted from
// https://stackoverflow.com/a/30106551/529530, and designed to safely handle
// multibyte characters
var base64Decode=function base64Decode(input){return decodeURIComponent(atob(input).split("").map(function(c){return"%"+("00"+c.charCodeAt(0).toString(16)).slice(-2)}).join(""))};var base64Encode=function base64Encode(input){return btoa(encodeURIComponent(input).replace(/%([0-9A-F]{2})/g,function(match,p1){return String.fromCharCode("0x"+p1)}))};var notSetOrTrue=function notSetOrTrue(val){return null==val||!0===val};// prevent scrolling outside a container
// topMargin and bottomMargin are optional and can be used to provide a cushion to adjust to determine
// if you are at the top. We have seen some weird behavior with some uses where the scrollTop maxes out
// at scrollHeight - offsetHeight - 1.  Possible subpixel rendering issue???
var preventOuterMouseWheel=function preventOuterMouseWheel(e,container){var topMargin=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,bottomMargin=3<arguments.length&&arguments[3]!==void 0?arguments[3]:0,scrollTop=container.scrollTop,scrollHeight=container.scrollHeight,offsetHeight=container.offsetHeight,hitTop=function hitTop(){var extra=0<arguments.length&&arguments[0]!==void 0?arguments[0]:0;return 0>=scrollTop+extra-topMargin},hitBottom=function hitBottom(){var extra=0<arguments.length&&arguments[0]!==void 0?arguments[0]:0;return scrollTop+extra+bottomMargin>=scrollHeight-offsetHeight},delta=e.deltaY||-e.wheelDelta,dir=0<delta?"down":"up",isModernBrowser=!!e.deltaY;if(isModernBrowser)("up"===dir&&hitTop()||"down"===dir&&hitBottom())&&e.preventDefault();else{// IE scrolls 47.5 pixels each scroll but reports 120
var extra=47.5*delta/120;"up"===dir&&hitTop(extra)?(e.preventDefault(),container.scrollTop=0):"down"===dir&&hitBottom(extra)&&(e.preventDefault(),container.scrollTop=scrollHeight-offsetHeight)}};// parent.frames.length should tell us how many iframes exist on the parent
// page. However, if the user has overwritten the accessor with something
// that's not safe for CORS (i.e. they changed it at all), then
// parent.frames.length throws an exception and screws up the embedding
// process. This function just gives a safe way of getting the value, or
// defaulting to something unknown.
var parentFramesLength=function parentFramesLength(){try{return parent.frames.length}catch(e){return wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default.warn(e),1}};

/***/ }),

/***/ 20:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "callingPlayRequiresEventContext": function() { return /* binding */ callingPlayRequiresEventContext; },
/* harmony export */   "webp": function() { return /* binding */ webp; },
/* harmony export */   "cachedDetect": function() { return /* binding */ cachedDetect; },
/* harmony export */   "uncachedDetect": function() { return /* binding */ uncachedDetect; },
/* harmony export */   "clearDetectCache": function() { return /* binding */ clearDetectCache; }
/* harmony export */ });
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_root__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
var isPassiveSupported,na=navigator.userAgent,rwebkit=/(webkit)[ /]([^\s]+)/i,ropera=/OPR\/([^\s]+)/i,rmsie=/(msie) ([^\s;]+)/i,rtrident=/(trident)\/\s*([^;]+)/i,redge=/(edge)\/(\d+(?:\.\d+)?)/i,rmozilla=/(mozilla)(?:.*? rv:([^\s)]+))?/i,randroid=/(android) ([^;]+)/i,riphone=/(iphone)/i,ripad=/(ipad)/i,rwinphone=/(Windows Phone OS (\d+(?:\.\d+)?))/,rios=/OS (\d+)_(\d+)/i,rps3=/(playstation 3)/i,rblackberry=/BlackBerry|BB10/i,rfirefox=/(firefox)/i,rgearvr=/Mobile VR/i,riosVersion=/Version\/([^\s]+)/i,browser=function browser(){return(browserMatch()[1]||"webkit").toLowerCase()},browserVersion=function browserVersion(){return browserMatch()[2]},browserMatch=function browserMatch(){var match;return(match=na.match(redge),match)?match:(match=na.match(rwebkit),match)?match:(match=na.match(ropera),match)?match:(match=na.match(rmsie),match)?(null!=document.documentMode&&(match[2]=document.documentMode),match):(match=na.match(rmozilla),match?match:[])},android=function android(){var matches=na.match(randroid);return null!=matches&&{version:matches[2]}},oldandroid=function oldandroid(){return android()&&4.1>parseFloat(android().version)&&!trident()},iphone=function iphone(){return riphone.test(na)},touchScreen=function touchScreen(){return 0<iosVersion()||android()},hoverIsNatural=function hoverIsNatural(){// The (hover: hover) query matches when two conditions are met:
//
// 1. hover is supported
// 2. hover is easy to access for the user based on their primary input device
//
// So for example, when the user’s primary input is touch, this returns false
// even though hover interactions are technically supported.
//
// If matchMedia is unsupported or the hover query is unsupported, we fall
// back on returning the heuristic check for iOS or Android. If it is true,
// we assume hover is not natural. This can produce false negatives and false
// positives, but most agents support the hover query.
//
// This is an alternative to using touchScreen() when deciding whether to
// attach enter/leave mouse event handlers based on hover capability.
try{var mediaQueryList=matchMedia("(hover:hover)");if("not all"!==mediaQueryList.media)return mediaQueryList.matches}catch(err){// feature detection: swallow errors.
}return!touchScreen()},blackberry=function blackberry(){return rblackberry.test(na)},retina=function retina(){return null!=utilities_root__WEBPACK_IMPORTED_MODULE_1__.default.devicePixelRatio&&1<utilities_root__WEBPACK_IMPORTED_MODULE_1__.default.devicePixelRatio},ipad=function ipad(){// from iOS Safari >=13 the default user agent parades itself as that of
// desktop safari. However, desktop safari only reports `maxTouchPoints` as 0
// We can use that in combination with the `platform` to tell if we're an ipad
return!!("MacIntel"===navigator.platform&&// this reports 'iPhone' for phones
0<=navigator.userAgent.indexOf("Mac")&&1<navigator.maxTouchPoints)||ripad.test(na)},safari=function safari(){return rwebkit.test(na)&&!/chrome/i.test(na)&&!ipad()&&!iphone()},chrome=function chrome(){return!!(/Chrome/.test(na)&&/Google Inc/.test(navigator.vendor))&&{version:chromeVersion()}},chromeVersion=function chromeVersion(){var match=na.match(/\bChrome\/([^\s]+)/);return match&&match[1]},opera=function opera(){return ropera.test(na)},iosVersion=function iosVersion(){var iosMatch=na.match(rios),versionMatch=na.match(riosVersion);return null==iosMatch?null!=versionMatch&&versionMatch[1]&&ipad()?parseFloat(versionMatch[1]):0:parseFloat("".concat(iosMatch[1],".").concat(iosMatch[2]))},windowsPhone=function windowsPhone(){return rwinphone.test(na)},ps3=function ps3(){return rps3.test(na)},trident=function trident(){return rtrident.test(na)},edge=function edge(){return redge.test(na)},firefox=function firefox(){return rfirefox.test(na)},gearvr=function gearvr(){return rgearvr.test(na)},windows=function windows(){return /win/i.test(navigator.platform)},mac=function mac(){return /mac/i.test(navigator.platform)},linux=function linux(){return /linux/i.test(navigator.platform)},flash=function flash(){var version=flashFullVersion();return{version:parseFloat(version[0]+"."+version[1]),major:parseInt(version[0]),minor:parseInt(version[1]),rev:parseInt(version[2])}},flashFullVersion=function flashFullVersion(){try{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{axo.AllowScriptAccess="always"}catch(e){return[6,0,0]}}catch(e){// fall through
}return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(",")}catch(e){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(",")}catch(e){// fall through
}}return[0,0,0]},html5Video=function html5Video(){var elem=document.createElement("video"),result=!1;// IE9 Running on Windows Server SKU can cause an exception to be thrown, bug #224
try{if(elem.canPlayType){result={};// Workaround required for IE9, which doesn't report video support without audio codec specified.
// bug 599718 @ msft connect
var h264="video/mp4; codecs=\"avc1.42E01E";result.h264=!!elem.canPlayType("video/mp4; codecs=\"avc1.42E01E\"")||!!elem.canPlayType("video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\""),result.webm=!!elem.canPlayType("video/webm; codecs=\"vp9, vorbis\""),result.nativeHls=!!elem.canPlayType("application/vnd.apple.mpegURL")}}catch(e){result={ogg:!1,h264:!1,webm:!1,nativeHls:!1}}return result},mediaSource=function mediaSource(){var h264="video/mp4; codecs=\"avc1.42E01E";return utilities_root__WEBPACK_IMPORTED_MODULE_1__.default.MediaSource&&utilities_root__WEBPACK_IMPORTED_MODULE_1__.default.MediaSource.isTypeSupported("video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"")},nativeHls=function nativeHls(){return(iphone()||ipad()||safari())&&!trident()&&html5Video().nativeHls},localStorage=function localStorage(){try{return"localStorage"in utilities_root__WEBPACK_IMPORTED_MODULE_1__.default&&null!=utilities_root__WEBPACK_IMPORTED_MODULE_1__.default.localStorage}catch(e){return!1}},json=function json(){return!!(utilities_root__WEBPACK_IMPORTED_MODULE_1__.default.JSON&&"function"==typeof JSON.parse)},backgroundSize=function backgroundSize(){var testEl=document.createElement("div");return""===testEl.style.backgroundSize||""===testEl.style.webkitBackgroundSize||""===testEl.style.mozBackgroundSize||""===testEl.style.oBackgroundSize},fullscreenEnabled=function fullscreenEnabled(){return document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled},browserPrefixes=["WebKit","Moz","O","Ms",""],mutationObserver=function mutationObserver(){for(var i=0;i<browserPrefixes.length;i++){var prefix=browserPrefixes[i],prop=prefix+"MutationObserver";if(utilities_root__WEBPACK_IMPORTED_MODULE_1__.default[prop])return prop}return null},vulcanSupport=function vulcanSupport(){var modernBrowser=/webkit|mozilla|edge/.test(browser()),ie11AndUp="msie"===browser()&&11<=browserVersion();return!(iphone()||ipad()||android()||blackberry()||!modernBrowser&&!ie11AndUp||!html5Video().h264||!Object.defineProperties)},passiveSupported=function passiveSupported(){if(null!=isPassiveSupported)return isPassiveSupported;try{var options=Object.defineProperty({},"passive",{/* eslint-disable-next-line getter-return */get:function get(){isPassiveSupported=!0}});window.addEventListener("test",null,options)}catch(err){isPassiveSupported=!1}return isPassiveSupported};// ua regexes taken from http://code.jquery.com/jquery-1.6.4.js
var callingPlayRequiresEventContext=function callingPlayRequiresEventContext(){return 0<iosVersion()||android()||safari()};// https://caniuse.com/#search=webp
// use user-agent for browser and version webp detection
// we're opting for this over a feature detection mechanism so that our detection
// can be as fast and synchronous as possible. Doing an async feature detection
// occasionally resulted in false negatives.
var webp=function webp(){var chromeBrowser=chrome(),firefoxBrowser=firefox(),edgeBrowser=edge(),operaBrowser=opera(),isChromeDesktopSupported=chromeBrowser&&32<=browserVersion(),isChromeAndroidSupported=chromeBrowser&&75<=browserVersion()&&android(),isFirefoxDesktopSupported=firefoxBrowser&&65<=browserVersion(),isFirefoxAndroidSupported=firefoxBrowser&&67<=browserVersion()&&android(),isEdgeSupported=edgeBrowser&&18<=browserVersion(),isOperaSupported=operaBrowser&&19<=browserVersion();return isChromeDesktopSupported||isChromeAndroidSupported||isFirefoxDesktopSupported||isFirefoxAndroidSupported||isEdgeSupported||isOperaSupported};var cachedDetect=function cachedDetect(){return wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._detectCache?wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._detectCache:(wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._detectCache=uncachedDetect(),wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._detectCache)};var uncachedDetect=function uncachedDetect(){var result={browser:{version:browserVersion(),quirks:"msie"===browser()&&"BackCompat"===document.compatMode,old:"msie"===browser()&&("BackCompat"===document.compatMode||7>browserVersion()),ltie8:"msie"===browser()&&("BackCompat"===document.compatMode||8>browserVersion())},trident:trident(),edge:edge(),firefox:firefox(),gearvr:gearvr(),android:android(),oldandroid:oldandroid(),iphone:iphone(),ipad:ipad(),blackberry:blackberry(),safari:safari(),chrome:chrome(),opera:opera(),winphone:{version:windowsPhone()[2]},ios:{version:iosVersion()},windows:windows(),mac:mac(),linux:linux(),retina:retina(),hoverIsNatural:hoverIsNatural(),touchScreen:touchScreen(),ps3:ps3(),flash:flash(),video:html5Video(),mediaSource:mediaSource(),nativeHls:nativeHls(),localstorage:localStorage(),json:json(),backgroundSize:backgroundSize(),fullscreenEnabled:fullscreenEnabled(),vulcanSupport:vulcanSupport(),mutationObserver:mutationObserver(),callingPlayRequiresEventContext:callingPlayRequiresEventContext(),passiveSupported:passiveSupported(),webp:webp()};return result.browser[browser()]=!0,result};var clearDetectCache=function clearDetectCache(){wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._detectCache=null};

/***/ }),

/***/ 35:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "isDocReady": function() { return /* binding */ isDocReady; },
/* harmony export */   "onDocReady": function() { return /* binding */ onDocReady; }
/* harmony export */ });
/* harmony import */ var utilities_poll_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
var isDocReady=function isDocReady(){return /loaded|complete/.test(document.readyState)};var onDocReady=function onDocReady(){var timeout,fn;if(1<arguments.length?(timeout=arguments[0],fn=arguments[1]):(timeout=1e4,fn=arguments[0]),isDocReady())fn();else if(top===self&&document.documentElement.doScroll){// IE < 9 is ready earlier than the 'readystatechange' event
// would have you believe. This doScroll check won't throw an error
// when it's finally ready. This will bomb in an iframe though, which
// is why we have the 'top is self' check. Fortunately,
// readystatechange should fire just fine in an iframe context.
var scrollTest=function scrollTest(){try{return document.documentElement.doScroll("left"),!0}catch(e){return!1}};(0,utilities_poll_js__WEBPACK_IMPORTED_MODULE_0__.default)(scrollTest,fn,50,timeout,fn)}else{var runFnOnComplete=function runFnOnComplete(){isDocReady()&&(clearTimeout(giveUpTimeout),unbindListeners(),fn())},bindListeners=function bindListeners(){document.addEventListener("DOMContentLoaded",runFnOnComplete,!1),document.addEventListener("readystatechange",runFnOnComplete,!1),window.addEventListener("load",runFnOnComplete,!1)},unbindListeners=function unbindListeners(){document.removeEventListener("DOMContentLoaded",runFnOnComplete,!1),document.removeEventListener("readystatechange",runFnOnComplete,!1),window.removeEventListener("load",runFnOnComplete,!1)},giveUpOnEvent=function giveUpOnEvent(){unbindListeners(),fn()},giveUpTimeout=setTimeout(giveUpOnEvent,timeout);bindListeners()}};/* harmony default export */ __webpack_exports__["default"] = (onDocReady);

/***/ }),

/***/ 64:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "flexibleDuration": function() { return /* binding */ flexibleDuration; },
/* harmony export */   "padNumber": function() { return /* binding */ padNumber; },
/* harmony export */   "secondsConverter": function() { return /* binding */ secondsConverter; }
/* harmony export */ });
// flexibleDuration is a duration format that uses as
// few digits as possible to express that duration
var flexibleDuration=function flexibleDuration(total){var _secondsConverter=secondsConverter(total,"hms"),hours=_secondsConverter.hours,minutes=_secondsConverter.minutes,seconds=_secondsConverter.seconds;return 0===hours?"".concat(minutes,":").concat(padNumber(seconds,2)):"".concat(hours,":").concat(padNumber(minutes,2),":").concat(padNumber(seconds,2))};var padNumber=function padNumber(num){for(var length=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,result=""+num;result.length<length;)result="0"+result;return result};var secondsConverter=function secondsConverter(total,format){var hours=0,minutes=0,seconds=0,useHours=/h/.test(format),useMinutes=/m/.test(format);return useHours&&0<total&&(hours+=Math.floor(total/3600),total%=3600),useMinutes&&0<total&&(minutes+=Math.floor(total/60),total%=60),seconds=Math.round(total),useHours&&60===minutes&&(hours+=1,minutes=0),useMinutes&&60===seconds&&(minutes+=1,seconds=0),{hours:hours,minutes:minutes,seconds:seconds}};

/***/ }),

/***/ 58:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var utilities_url_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
/* harmony import */ var utilities_obj_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
var getPageUrlStr=function getPageUrlStr(){return top===self?location.href||"":document.referrer||""},DEFAULT_REGEX=/^w_([^&]+)/,embedOptionsFromQueryParams=function embedOptionsFromQueryParams(whitelist,pageUrlStr){var regex=2<arguments.length&&arguments[2]!==void 0?arguments[2]:DEFAULT_REGEX;pageUrlStr||(pageUrlStr=getPageUrlStr());var url=new utilities_url_js__WEBPACK_IMPORTED_MODULE_0__.Url(pageUrlStr),params=url.params||{},embedOptions={};for(var key in params)if(params.hasOwnProperty(key)){var match=key.match(regex);if(match){var embedOptionName=match[1];// TODO: See if we can use Array.prototype.indexOf instead of our own
// util. Just didn't want to deal with potential downstream breakage
// from a refactor.
0<=(0,utilities_obj_js__WEBPACK_IMPORTED_MODULE_1__.indexOf)(whitelist,embedOptionName)&&(embedOptions[embedOptionName]=params[key])}}return embedOptions};/* harmony default export */ __webpack_exports__["default"] = (embedOptionsFromQueryParams);

/***/ }),

/***/ 47:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EventLoop": function() { return /* binding */ EventLoop; },
/* harmony export */   "globalEventLoop": function() { return /* binding */ globalEventLoop; }
/* harmony export */ });
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
var logger=utilities_wlog__WEBPACK_IMPORTED_MODULE_0__.wlog.getPrefixedFunctions("event_loop");// The EventLoop class abstracts a particular async pattern. That's the one
// where we set a recursive timeout which we can start/stop at will. The
// problem with that pattern is that doTimeout has a bit of overhead
// associated with it, and we'll be running several event loops for each video
// on the page. As we add more polling functions and more videos, it bogs down
// the execution speed.
//
// EventLoop allows us to setup one global loop with low latency and overhead.
// Then we add functions onto the event loop, and those functions can have
// different intervals, though they will always fire in multiples of the event
// loop's latency (which by default is 100ms). So if you set an interval of 1,
// it would still only fire once every 100ms. Or if you set an interval of
// 250, it would fire at 300, then 600, then 1200, etc. So you might as well
// set multiples of the latency.
//
// Besides efficiency, there is also some value in built-in error handling,
// logging, convenience methods like @resync(), and the predictability of
// execution when everything is in the same loop.
var EventLoop=function EventLoop(){var _this=this,options=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};this._timeoutId=null,this._latency=null==options.latency?100:options.latency,this._blurLatency=null==options.blurLatency?2e3:options.blurLatency,this._functions={},this._paused={},window.addEventListener("blur",function(){return _this.blur()},!1),window.addEventListener("focus",function(){return _this.focus()},!1),this.start()};var EventLoopPrototype=EventLoop.prototype;EventLoopPrototype.start=function(){var _this2=this;clearTimeout(this._timeoutId),this._loopFn=this._loopFn||function(){_this2.runFunctions(),_this2._timeoutId=setTimeout(_this2._loopFn,_this2._latency)},this._loopFn()},EventLoopPrototype.resync=function(){this.start()},EventLoopPrototype.resyncNextTick=function(){var _this3=this;setTimeout(function(){_this3.resync()},0)},EventLoopPrototype.stop=function(){clearTimeout(this._timeoutId)},EventLoopPrototype.clear=function(){this._functions={}},EventLoopPrototype.runFunctions=function(){this._pausedDirty&&this.updatePaused();var toRemove=[];for(var k in this._functions){var entry=this._functions[k],now=new Date().getTime(),timeSinceLastRun=now-entry.lastRanAt;if(!entry.paused&&timeSinceLastRun>=entry.interval){entry.lastRanAt=now;try{var result=entry.fn();result===this.remove&&toRemove.push(k)}catch(e){logger.error(e)}}}for(var i=0;i<toRemove.length;i++)this.remove(toRemove[i])},EventLoopPrototype.add=function(key,interval,fn){var now=new Date().getTime();this._functions[key]={addedAt:now,lastRanAt:-1,interval:interval,fn:fn};var fnResult=fn();this._functions[key]&&(this._functions[key].lastRanAt=new Date().getTime()),this._functions[key]&&fnResult===this.remove?delete this._functions[key]:this._pausedDirty=!0},EventLoopPrototype.remove=function(key){var _this4=this;this.forEachMatchingKey(key,function(k){delete _this4._functions[k]})},EventLoopPrototype.forEachMatchingKey=function(key,fn){for(var k in this._functions){var entry=this._functions[k];this.key1IncludesKey2(key,k)&&fn(k,entry)}},EventLoopPrototype.latency=function(latency){return null==latency?this._latency:void(this._latency=latency)},EventLoopPrototype.interval=function(key,interval){return null==interval?this._functions[key].interval:void(null==this._functions[key]?logger.notice("setting interval of ",key,"to",interval,"failed because",key,"is not defined"):this._functions[key].interval=interval)},EventLoopPrototype.pause=function(key){this._paused[key]=!0,this._pausedDirty=!0},EventLoopPrototype.unpause=function(key){this._paused[key]=!1,this._pausedDirty=!0},EventLoopPrototype.isPaused=function(exactKey){for(var superKey in this.paused){var isPaused=this._paused[superKey];if(isPaused&&this.key1IncludesKey2(superKey,exactKey))return!0}return!1},EventLoopPrototype.updatePaused=function(){for(var k in this._functions){var entry=this._functions[k];entry.paused=this.isPaused(k)}this._pausedDirty=!1},EventLoopPrototype.key1IncludesKey2=function(key1,key2){return"function"==typeof key2.indexOf&&0===key2.indexOf(key1)&&(key2.length===key1.length||"."===key2.charAt(key1.length))},EventLoopPrototype.blur=function(){this._blurred||(this._blurred=!0,this._savedLatency=this._latency,this._latency=this._blurLatency)},EventLoopPrototype.focus=function(){this._blurred&&(this._blurred=!1,this._latency=this._savedLatency,this.resync())},null==wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default.eventLoop&&(wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default.eventLoop=new EventLoop({latency:100,blurLatency:100}));var globalEventLoop=wistia_namespace__WEBPACK_IMPORTED_MODULE_1__.default.eventLoop;

/***/ }),

/***/ 21:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "globalBind": function() { return /* binding */ globalBind; },
/* harmony export */   "globalOn": function() { return /* binding */ globalOn; },
/* harmony export */   "globalOff": function() { return /* binding */ globalOff; },
/* harmony export */   "globalRebind": function() { return /* binding */ globalRebind; },
/* harmony export */   "globalTrigger": function() { return /* binding */ globalTrigger; },
/* harmony export */   "globalUnbind": function() { return /* binding */ globalUnbind; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_wbindable_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
(0,utilities_wbindable_js__WEBPACK_IMPORTED_MODULE_1__.makeWbindable)(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default);var globalBind=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.bind.bind(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default);var globalOn=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.on.bind(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default);var globalOff=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.off.bind(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default);var globalRebind=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.rebind.bind(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default);var globalTrigger=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.trigger.bind(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default);var globalUnbind=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.unbind.bind(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default);

/***/ }),

/***/ 45:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "hashCodeForString": function() { return /* binding */ hashCodeForString; }
/* harmony export */ });
// Taken from https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript
var hashCodeForString=function hashCodeForString(str){var i,chr,hash=0;if(0===str.length)return hash;for(i=0;i<str.length;i++)chr=str.charCodeAt(i),hash=(hash<<5)-hash+chr,hash|=0;return hash};

/***/ }),

/***/ 83:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "isMouseDown": function() { return /* binding */ isMouseDown; },
/* harmony export */   "isMouseDownRecently": function() { return /* binding */ isMouseDownRecently; }
/* harmony export */ });
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var player_lib_elem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34);
/* harmony import */ var utilities_detect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20);
var detect=(0,utilities_detect_js__WEBPACK_IMPORTED_MODULE_2__.cachedDetect)();if(null==wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._isMouseDown){wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._isMouseDown=!1;var onMouseDown=function onMouseDown(event){wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._isMouseDown=!0,wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._lastMouseDownAt=Date.now(),setTimeout(function(){event.defaultPrevented&&(wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._isMouseDown=!1)},0)},onMouseUp=function onMouseUp(){wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._lastMouseUpAt=Date.now(),setTimeout(function(){wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._isMouseDown=!1},0)},onTouchEnd=function onTouchEnd(){wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._lastMouseUpAt=Date.now(),setTimeout(function(){wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._isMouseDown=!1},0)};detect.touchScreen?((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_1__.elemBind)(document,"touchstart",onMouseDown,!0),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_1__.elemBind)(document,"touchend",onTouchEnd,!0)):((0,player_lib_elem__WEBPACK_IMPORTED_MODULE_1__.elemBind)(document,"mousedown",onMouseDown,!0),(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_1__.elemBind)(document,"mouseup",onMouseUp,!0));// windows/osx handle the firing of the contextMenu differently
var contextHandler=detect.windows?onMouseUp:onMouseDown;(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_1__.elemBind)(document,"contextmenu",contextHandler,!0)}var isMouseDown=function isMouseDown(){return null==wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._mouseDownForceReturnVal?wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._isMouseDown:wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._mouseDownForceReturnVal};var isMouseDownWithinInterval=function isMouseDownWithinInterval(interval){var lastMouseDownAt=Math.max(wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._lastMouseDownAt||0,(wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._lastMouseUpAt||0)-1);return lastMouseDownAt>Date.now()-interval};// iOS has a 350ms delay on click events. This can make it so an event
// like "focus" may fire after the touchstart/touchend handlers
var isMouseDownRecently=function isMouseDownRecently(){return null==wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._mouseDownForceReturnVal?isMouseDownWithinInterval(500):wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._mouseDownForceReturnVal};

/***/ }),

/***/ 85:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "uncache": function() { return /* binding */ uncache; },
/* harmony export */   "setOrGet": function() { return /* binding */ setOrGet; },
/* harmony export */   "removeLocalStorage": function() { return /* binding */ removeLocalStorage; },
/* harmony export */   "dumpLocalStorage": function() { return /* binding */ dumpLocalStorage; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
/*
 * DEPRECATED: Use utilities/wistiaLocalStorage.js directly instead.
 *
 * This module has two failings.
 *
 * First, it must include utilities/obj for its deep setting and getting
 * functionality, which is a core part of its API. However, this convenience
 * does not merit the size of its inclusion; if we want to do deep setting and
 * getting, we can just compose with Obj.setDeep and Obj.getDeep at the import site.
 *
 * Second, in order to avoid lots of JSON.parse calls, it keeps a cache that
 * should mirror the contents of localStorage. However, because localStorage
 * data is shared across tabs with the same domain--and because we are never
 * syncing the actual localStorage values here--changes in multiple open tabs
 * will overwrite each other, causing general strangeness.
 */wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorage||(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorage=(0,utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_1__.getWistiaLocalStorage)());var uncache=function uncache(){wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorage={}};var setOrGet=function setOrGet(key,val){var unset=!!(2<arguments.length&&arguments[2]!==void 0)&&arguments[2];if(null!=val){var fn=unset?utilities_obj__WEBPACK_IMPORTED_MODULE_2__.unsetDeep:utilities_obj__WEBPACK_IMPORTED_MODULE_2__.setDeep;return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorage=(0,utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_1__.updateWistiaLocalStorage)(function(ls){return fn(ls,key,val)}),val}return null==key?wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorage:(0,utilities_obj__WEBPACK_IMPORTED_MODULE_2__.getDeep)(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorage,key)};var removeLocalStorage=function removeLocalStorage(key){return setOrGet(key,"nada",!0)};var dumpLocalStorage=utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_1__.removeWistiaLocalStorage;

/***/ }),

/***/ 32:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "send": function() { return /* binding */ send; },
/* harmony export */   "msend": function() { return /* binding */ msend; },
/* harmony export */   "count": function() { return /* binding */ count; },
/* harmony export */   "sample": function() { return /* binding */ sample; }
/* harmony export */ });
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33);
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17);
/* harmony import */ var player_lib_elem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34);
/* harmony import */ var utilities_url__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16);
/* harmony import */ var player_lib_hosts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(14);
/* harmony import */ var utilities_xhr_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(25);
/* harmony import */ var utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(42);
var _this=undefined;var W=wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default;null==W._metricsCache&&(W._metricsCache={});var METRICS_CACHE=W._metricsCache;var send=function send(type,key,val){var extraData=3<arguments.length&&arguments[3]!==void 0?arguments[3]:{};try{null==METRICS_CACHE.toMput&&(METRICS_CACHE.toMput=[]),null==METRICS_CACHE.requestId&&(METRICS_CACHE.requestId=0);var messageObj=utilities_obj__WEBPACK_IMPORTED_MODULE_3__.merge({type:type,key:key,value:null==val?null:val,request_id:METRICS_CACHE.requestId},extraData),serialized=JSON.stringify(messageObj);utilities_wlog__WEBPACK_IMPORTED_MODULE_2__.wlog.debug("send metrics",serialized),METRICS_CACHE.toMput.push(serialized),(0,player_lib_timeout_utils__WEBPACK_IMPORTED_MODULE_1__.doTimeout)("metrics.debounce",function(){(0,player_lib_elem__WEBPACK_IMPORTED_MODULE_4__.pageLoaded)(function(){msend.apply(_this,METRICS_CACHE.toMput),METRICS_CACHE.toMput=[],METRICS_CACHE.requestId+=1})},500)}catch(e){utilities_wlog__WEBPACK_IMPORTED_MODULE_2__.wlog.error(e)}};var msend=function msend(){if((0,utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_8__.isVisitorTrackingEnabled)()){for(var url="".concat((0,utilities_url__WEBPACK_IMPORTED_MODULE_5__.proto)(),"//").concat((0,player_lib_hosts__WEBPACK_IMPORTED_MODULE_6__.metricsHost)(),"/mput?topic=metrics"),_len=arguments.length,messages=Array(_len),_key=0;_key<_len;_key++)messages[_key]=arguments[_key];return (0,utilities_xhr_js__WEBPACK_IMPORTED_MODULE_7__.xhrPost)(url,messages.join("\n"))}};var count=function count(key){var val=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1,extraData=2<arguments.length?arguments[2]:void 0;return send("count",key,val,extraData)};var sample=function sample(key,val,extraData){return send("sample",key,val,extraData)};

/***/ }),

/***/ 44:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getLocalStorage": function() { return /* binding */ getLocalStorage; },
/* harmony export */   "removeLocalStorage": function() { return /* binding */ removeLocalStorage; },
/* harmony export */   "setLocalStorage": function() { return /* binding */ setLocalStorage; },
/* harmony export */   "updateLocalStorage": function() { return /* binding */ updateLocalStorage; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}/*
 * This module is designed as a simpler version of our old localStorage
 * utility.  To reduce potential bundle size, it doesn't make use of Obj
 * utilities or wlog, and doesn't return early based on browser detection.
 *
 * To avoid multiple tab bugs, it does not try to do any kind of commit
 * debouncing. Every call to `set` involves JSON.serialize() and every call to
 * `get` involves JSON.parse(). Therefore, if you are performing many
 * operations, you should cache an intermediate value. The
 * updateLocalStorage function is also provided for doing many updates
 * with a single parse and serialize call.
 *
 * If you are working with localStorage on something that requires lots of
 * updates, you should use a separate namespace. That way there is less to
 * deserialize and serialize on each read and write.
 */var throwAsync=function throwAsync(e){setTimeout(function(){throw e},0)},OBJ_PROP="_namespacedLocalStorage",localStorageWorks=function localStorageWorks(ns){if(null!=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorageWorks)return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorageWorks;try{// no-ops that test get, set, and remove. These may throw an exception
// in Private Browsing mode on iOS and Safari.
var currentVal=localStorage.getItem(ns);localStorage.removeItem(ns),localStorage.setItem(ns,currentVal),wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorageWorks=!0}catch(e){wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorageWorks=!1}return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorageWorks},getMemory=function getMemory(){return null==wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default[OBJ_PROP]&&(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default[OBJ_PROP]={}),wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default[OBJ_PROP]};var getLocalStorage=function getLocalStorage(ns){if(!localStorageWorks())return getMemory()[ns]||{};if(localStorage[ns])try{return"null"===localStorage[ns]?{}:JSON.parse(localStorage[ns])}catch(e){throwAsync(e)}return{}};var removeLocalStorage=function removeLocalStorage(ns){if(!localStorageWorks())return void(getMemory()[ns]={});try{localStorage.removeItem(ns)}catch(e){throwAsync(e)}};var setLocalStorage=function setLocalStorage(ns,obj){if(!localStorageWorks())return null!=obj&&"object"===_typeof(obj)&&(getMemory()[ns]=obj),obj;try{// We set W._localStorage for compatibility with the old localStorage util,
// which would otherwise overwrite any changes we make. :0
getMemory()[ns]=obj,localStorage[ns]=JSON.stringify(obj)}catch(e){throwAsync(e)}return obj};var updateLocalStorage=function updateLocalStorage(ns,fn){var obj=getLocalStorage(ns);// fn() may throw an exception. we catch and report because we don't want
// an exception after modifying in-place localStorage to get our local store
// out of sync.
try{fn(obj)}catch(e){throwAsync(e)}return setLocalStorage(ns,obj)};

/***/ }),

/***/ 17:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "merge": function() { return /* binding */ merge; },
/* harmony export */   "mergeOne": function() { return /* binding */ mergeOne; },
/* harmony export */   "identityFunc": function() { return /* binding */ identityFunc; },
/* harmony export */   "legacyShouldDeleteFromMerge": function() { return /* binding */ legacyShouldDeleteFromMerge; },
/* harmony export */   "clone": function() { return /* binding */ clone; },
/* harmony export */   "getDeep": function() { return /* binding */ getDeep; },
/* harmony export */   "setDeep": function() { return /* binding */ setDeep; },
/* harmony export */   "setAndPreserveUndefined": function() { return /* binding */ setAndPreserveUndefined; },
/* harmony export */   "unsetDeep": function() { return /* binding */ unsetDeep; },
/* harmony export */   "exists": function() { return /* binding */ exists; },
/* harmony export */   "assign": function() { return /* reexport safe */ utilities_assign_js__WEBPACK_IMPORTED_MODULE_0__.default; },
/* harmony export */   "cast": function() { return /* binding */ cast; },
/* harmony export */   "castDeep": function() { return /* binding */ castDeep; },
/* harmony export */   "only": function() { return /* binding */ only; },
/* harmony export */   "except": function() { return /* binding */ except; },
/* harmony export */   "select": function() { return /* binding */ select; },
/* harmony export */   "filter": function() { return /* binding */ filter; },
/* harmony export */   "values": function() { return /* binding */ values; },
/* harmony export */   "sort": function() { return /* binding */ sort; },
/* harmony export */   "isArray": function() { return /* binding */ isArray; },
/* harmony export */   "isObject": function() { return /* binding */ isObject; },
/* harmony export */   "isFunction": function() { return /* binding */ isFunction; },
/* harmony export */   "isRegExp": function() { return /* binding */ isRegExp; },
/* harmony export */   "isBasicType": function() { return /* binding */ isBasicType; },
/* harmony export */   "isEmpty": function() { return /* binding */ isEmpty; },
/* harmony export */   "isSubsetDeep": function() { return /* binding */ isSubsetDeep; },
/* harmony export */   "equalsDeep": function() { return /* binding */ equalsDeep; },
/* harmony export */   "eachDeep": function() { return /* binding */ eachDeep; },
/* harmony export */   "eachLeaf": function() { return /* binding */ eachLeaf; },
/* harmony export */   "pick": function() { return /* binding */ pick; },
/* harmony export */   "indexOf": function() { return /* binding */ indexOf; },
/* harmony export */   "keys": function() { return /* binding */ keys; }
/* harmony export */ });
/* harmony import */ var utilities_assign_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
var _this=undefined;function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}// Old trick to clone arrays, i.e. `aps.call(array)`.
var aps=Array.prototype.slice,merge=function merge(obj1){if(0==(1>=arguments.length?0:arguments.length-1))return obj1;for(var i=0;i<(1>=arguments.length?0:arguments.length-1);i++)mergeOne(obj1,1>i+1||arguments.length<=i+1?void 0:arguments[i+1]);return obj1},mergeOne=function mergeOne(obj1,obj2){var transformerFn=2<arguments.length&&arguments[2]!==void 0?arguments[2]:identityFunc,shouldDeleteFn=3<arguments.length&&arguments[3]!==void 0?arguments[3]:legacyShouldDeleteFromMerge;if(isArray(obj2)){isArray(obj1)||(obj1=[]);for(var v,i=0;i<obj2.length;i++){v=obj2[i],null==obj1[i]&&null!=v&&(isArray(v)?obj1[i]=[]:isObject(v)&&(obj1[i]={}));var result=mergeOne(obj1[i],v,transformerFn);shouldDeleteFn(obj2,i,result)?delete obj1[i]:obj1[i]=result}return transformerFn(obj1)}if(isObject(obj2)){for(var k in obj2)if(obj2.hasOwnProperty(k)&&(obj1.hasOwnProperty(k)||null==obj1[k])){var _v=obj2[k];isArray(_v)?(!isArray(obj1[k])&&(obj1[k]=[]),mergeOne(obj1[k],_v,transformerFn),obj1[k]=transformerFn(obj1[k])):isObject(_v)?(!isObject(obj1[k])&&(obj1[k]={}),mergeOne(obj1[k],_v,transformerFn),obj1[k]=transformerFn(obj1[k])):null==obj1?(obj1={},!shouldDeleteFn(obj2,k,_v)&&(obj1[k]=transformerFn(_v))):shouldDeleteFn(obj2,k,_v)?delete obj1[k]:obj1[k]=transformerFn(_v)}return transformerFn(obj1)}// obj2 is not an object that can be cloned. Since we may recurse down
// to this level, we should just return obj2, since it will overwrite
// obj1.
return transformerFn(obj2)},identityFunc=function identityFunc(v){return v},legacyShouldDeleteFromMerge=function legacyShouldDeleteFromMerge(obj,k,v){return null==v},clone=function clone(obj,transformerFn){return isArray(obj)?mergeOne([],obj,transformerFn):mergeOne({},obj,transformerFn)},getDeep=function getDeep(obj,parts,create){parts="string"==typeof parts?parts.split("."):aps.call(parts);for(var lastP,lastObj=obj;null!=obj&&parts.length;){var p=parts.shift();obj[p]!==void 0&&(isObject(obj[p])||isArray(obj[p]))||!create||(0===p?(obj=lastObj[lastP]=[],obj[p]={}):obj[p]={}),lastObj=obj,lastP=p,obj=obj.hasOwnProperty(p)?obj[p]:void 0}return obj},setDeep=function setDeep(obj,parts,value){return setAndMaybeDeleteUndefined(obj,parts,value,!0)},setAndPreserveUndefined=function setAndPreserveUndefined(obj,parts,value){return setAndMaybeDeleteUndefined(obj,parts,value,!1)},setAndMaybeDeleteUndefined=function setAndMaybeDeleteUndefined(obj,parts,value){var shouldDeleteUndefined=!(3<arguments.length&&arguments[3]!==void 0)||arguments[3];parts="string"==typeof parts?parts.split("."):aps.call(parts);var prop=parts.pop();obj=getDeep(obj,parts,!0);null!=obj&&(isObject(obj)||isArray(obj))&&null!=prop&&(shouldDeleteUndefined&&null==value?delete obj[prop]:obj[prop]=value)},unsetDeep=function unsetDeep(obj,parts){return setDeep(obj,parts)},exists=function exists(obj,name){return getDeep(obj,name)!==void 0},cast=function cast(maybeStr){return null==maybeStr?maybeStr:isObject(maybeStr)||isArray(maybeStr)?castDeep(maybeStr):castStr(""+maybeStr,maybeStr)},castStr=function castStr(str){var defaultRet=1<arguments.length&&arguments[1]!==void 0?arguments[1]:str;return /^-?[1-9]\d*?$/.test(str)?parseInt(str,10):"0"===str||"-0"===str?0:/^-?\d*\.\d+$/.test(str)?parseFloat(str):!!/^true$/i.test(str)||!/^false$/i.test(str)&&defaultRet},castDeep=function castDeep(obj){var castTransformer=function castTransformer(val){return"string"==typeof val?castStr(val):val},dontDeleteAnything=function dontDeleteAnything(){return!1};return mergeOne(obj,obj,castTransformer,dontDeleteAnything)},only=function only(hash,keys){for(var result={},keyHash={},i=0;i<keys.length;i++)keyHash[keys[i]]=!0;for(var k in hash)keyHash[k]&&(result[k]=hash[k]);return result},except=function except(hash,keys){for(var result={},keyHash={},i=0;i<keys.length;i++)keyHash[keys[i]]=!0;for(var k in hash)keyHash[k]||(result[k]=hash[k]);return result},select=function select(arr,keyPairs){for(var elem,result=[],isFn="function"==typeof keyPairs,filterFn=isFn?keyPairs:null,i=0;i<arr.length;i++)if(elem=arr[i],isFn)filterFn(elem)&&result.push(elem);else{// Select the asset if all keyPairs of the object match. Common.
var matching=!0;for(var k in keyPairs){var v=keyPairs[k];if(v instanceof Array){// Range check.
if(!elem[k]||elem[k]<v[0]||elem[k]>v[1]){matching=!1;break}}else if(v instanceof RegExp){// Regular Expression check.
if(!v.test(elem[k])){matching=!1;break}}else if(v instanceof MultipleValues){for(var value,anyMatch=!1,j=0;j<v.values.length;j++)if(value=v.values[j],elem[k]===value){anyMatch=!0;break}if(!anyMatch){matching=!1;break}}else if("function"==typeof v){if(null==elem[k]||!v(elem[k])){matching=!1;break}}else if(elem[k]!==v){matching=!1;break}}matching&&result.push(elem)}return result},MultipleValues=function MultipleValues(values){var self=this,construct=function construct(){self.values=values};return construct(),self},values=function values(){for(var _len=arguments.length,values=Array(_len),_key=0;_key<_len;_key++)values[_key]=arguments[_key];return new MultipleValues(values)},sort=function sort(arr,keys){var isFn="function"==typeof keys,filterFn=isFn?keys:null,result=aps.call(arr);return isFn?result.sort(filterFn):result.sort(function(a,b){var sortBys;sortBys=keys instanceof Array?clone(keys):keys.split(/\s*,\s*/);for(var ret=0;0===ret&&0<sortBys.length;){var pieces=sortBys.shift().split(/\s+/),sortBy=pieces[0],dir=pieces[1];if(dir="desc"===dir?-1:1,a[sortBy]<b[sortBy]){ret=-1*dir;break}else if(a[sortBy]===b[sortBy])ret=0;else{ret=1*dir;break}}return ret}),result},filter=function filter(arr,callback,thisArg){for(var ctx=thisArg===void 0?_this:thisArg,result=[],i=0;i<arr.length;i++)callback.call(ctx,arr[i],i,arr)&&result.push(arr[i]);return result},ARR_REGEXP=/^\s*function Array()/,isArray=function isArray(obj){return null!=obj&&obj.push&&ARR_REGEXP.test(obj.constructor)},OBJ_REGEXP=/^\s*function Object()/,isObject=function isObject(obj){return null!=obj&&"object"===_typeof(obj)&&OBJ_REGEXP.test(obj.constructor)},isFunction=function isFunction(obj){return null!=obj&&"function"==typeof obj},REGEXP_REGEXP=/^\s*function RegExp()/,isRegExp=function isRegExp(obj){return null!=obj&&REGEXP_REGEXP.test(obj.constructor)},BASIC_TYPE_REGEXP=/^string|number|boolean|function$/i,isBasicType=function isBasicType(obj){return null!=obj&&(BASIC_TYPE_REGEXP.test(_typeof(obj))||isRegExp(obj))},isEmpty=function isEmpty(obj){if(null==obj)return!0;if(isArray(obj)&&!obj.length)return!0;if(isObject(obj)){for(var k in obj)return!1;return!0}return!1},isSubsetDeep=function isSubsetDeep(obj1,obj2){if(obj1===obj2)return!0;if(null!=obj1&&null==obj2||null==obj1&&null!=obj2)return!1;var result=!0;return eachLeaf(obj1,function(obj1LeafVal,path){var obj2LeafVal=getDeep(obj2,path);obj1LeafVal!==obj2LeafVal&&(result=!1)}),result},equalsDeep=function equalsDeep(obj1,obj2){return isSubsetDeep(obj1,obj2)&&isSubsetDeep(obj2,obj1)},eachDeep=function eachDeep(obj,fn,path,parent,key){if(null==path&&(path=[]),isBasicType(obj))fn(obj,path,parent,key);else if(isObject(obj)||isArray(obj)){for(var _key2 in fn(obj,path,parent,key),obj)if(obj.hasOwnProperty(_key2)){var newPath=aps.call(path);newPath.push(_key2),eachDeep(obj[_key2],fn,newPath,obj,_key2)}}else fn(obj,path,parent,key)},eachLeaf=function eachLeaf(obj,fn){eachDeep(obj,function(obj,path,parent,key){isArray(obj)||isObject(obj)||fn(obj,path,parent,key)})},pick=function pick(obj,keys){for(var key,result={},i=0;i<keys.length;i++)key=keys[i],obj[key]&&(result[key]=obj[key]);return result},indexOf=function indexOf(arr,target){for(var i=0;i<arr.length;i++)if(arr[i]===target)return i;return-1},keys=function keys(obj){if(Object.keys)return Object.keys(obj);var result=[];for(var k in obj)obj.hasOwnProperty(k)&&result.push(k);return result};

/***/ }),

/***/ 36:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var pageLoaded=function pageLoaded(fn){var timeout=1<arguments.length&&arguments[1]!==void 0?arguments[1]:4e3,doc=2<arguments.length&&arguments[2]!==void 0?arguments[2]:document,win=3<arguments.length&&arguments[3]!==void 0?arguments[3]:window;if(/loaded|complete/.test(doc.readyState))setTimeout(fn,0);else{var unbind=function unbind(){win.removeEventListener("load",onPageLoad,!1)},onPageLoad=function onPageLoad(){clearTimeout(onLoadTimeout),unbind(),fn()};win.addEventListener("load",onPageLoad,!1);var onLoadTimeout=setTimeout(function(){unbind(),fn()},timeout)}};/* harmony default export */ __webpack_exports__["default"] = (pageLoaded);

/***/ }),

/***/ 28:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var poll=function poll(cond,fn){var interval=2<arguments.length&&arguments[2]!==void 0?arguments[2]:50,timeout=3<arguments.length&&arguments[3]!==void 0?arguments[3]:5e3,failFn=4<arguments.length?arguments[4]:void 0,pollTimeout=null,start=new Date().getTime(),pollFn=function pollFn(){return new Date().getTime()-start>timeout?void("function"==typeof failFn&&failFn()):void(cond()?fn():(clearTimeout(pollTimeout),pollTimeout=setTimeout(pollFn,interval)))};pollTimeout=setTimeout(pollFn,1)};/* harmony default export */ __webpack_exports__["default"] = (poll);

/***/ }),

/***/ 2:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}/* global globalThis */var root;try{root=self,root.self!==root&&_typeof(root.self)!==void 0&&"undefined"!=typeof window&&(root=window)}catch(err){root="undefined"==typeof globalThis?window:globalThis}/* harmony default export */ __webpack_exports__["default"] = (root);

/***/ }),

/***/ 41:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "runScript": function() { return /* binding */ runScript; }
/* harmony export */ });
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(promiscuous__WEBPACK_IMPORTED_MODULE_0__);
// fire and forget.
// run a script and immediately remove it from the DOM.
var runScript=function runScript(src,timeout){return new (promiscuous__WEBPACK_IMPORTED_MODULE_0___default())(function(resolve,reject){null==timeout&&(timeout=8e3);var s;s=document.createElement("script"),s.src=src,s.async=!0,s.type="text/javascript";var cleanupTimeoutId=null,done=!1,cleanUp=function cleanUp(){s.onerror=s.onreadystatechange=s.onload=null,clearTimeout(cleanupTimeoutId),clearTimeout(loadingTimeout),cleanupTimeoutId=setTimeout(function(){s&&s.parentNode&&s.parentNode.removeChild(s)},500)},onSuccess=function onSuccess(){var state=s.readyState;done||state&&!/loaded|complete/.test(state)||(done=!0,setTimeout(function(){resolve(),cleanUp()},1))},onTimeout=function onTimeout(){done=!0,cleanUp(),reject("timeout")},onError=function onError(){done=!0,cleanUp(),reject("error")},loadingTimeout=setTimeout(onTimeout,timeout);s.onerror=onError,s.onreadystatechange=onSuccess,s.onload=onSuccess,(document.body||document.head).appendChild(s)})};/* harmony default export */ __webpack_exports__["default"] = (runScript);

/***/ }),

/***/ 107:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "sanePlayerColor": function() { return /* binding */ sanePlayerColor; }
/* harmony export */ });
var sanePlayerColor=function sanePlayerColor(playerColor){if(playerColor){// If the player color is passed in short-hand (e.g. 000 for black),
// expand each of the channels so it's 6 characters long.
if(playerColor="".concat(playerColor).replace(/^#/g,""),6>playerColor.length){for(var prefix="",i=0;i<6-playerColor.length;i++)prefix+="0";playerColor="".concat(prefix).concat(playerColor)}// Set a default player color if it's not provided or invalid.
return /^[\da-f]{6}$/i.test(playerColor)||(playerColor="636155"),playerColor}return"636155"};

/***/ }),

/***/ 102:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "scrollLeft": function() { return /* binding */ scrollLeft; },
/* harmony export */   "scrollTop": function() { return /* binding */ scrollTop; }
/* harmony export */ });
var scrollLeft=function scrollLeft(l){if(l)document.body&&(document.body.scrollLeft=l),document.documentElement&&(document.documentElement.scrollLeft=l);else{var _document,_document$documentEle,_document2,_document2$body;return(null===(_document=document)||void 0===_document||null===(_document$documentEle=_document.documentElement)||void 0===_document$documentEle?void 0:_document$documentEle.scrollLeft)||(null===(_document2=document)||void 0===_document2||null===(_document2$body=_document2.body)||void 0===_document2$body?void 0:_document2$body.scrollLeft)||0}};var scrollTop=function scrollTop(t){if(t)document.body&&(document.body.scrollTop=t),document.documentElement&&(document.documentElement.scrollTop=t);else{var _document3,_document3$documentEl,_document4,_document4$body;return(null===(_document3=document)||void 0===_document3||null===(_document3$documentEl=_document3.documentElement)||void 0===_document3$documentEl?void 0:_document3$documentEl.scrollTop)||(null===(_document4=document)||void 0===_document4||null===(_document4$body=_document4.body)||void 0===_document4$body?void 0:_document4$body.scrollTop)||0}};

/***/ }),

/***/ 113:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var secondsSinceTime=function secondsSinceTime(timeValue){return timeValue?Math.round((new Date().getTime()-timeValue)/1e3):null};/* harmony default export */ __webpack_exports__["default"] = (secondsSinceTime);

/***/ }),

/***/ 108:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}var SecondsWatchedTracker=/*#__PURE__*/function(){function SecondsWatchedTracker(duration){_classCallCheck(this,SecondsWatchedTracker),this.duration=duration,this.reset()}return _createClass(SecondsWatchedTracker,[{key:"trackSecond",value:function trackSecond(second){second>=this._secondsWatched.length||(this._secondsWatched[second]+=1,1===this._secondsWatched[second]?this._totalWatched+=1:this._totalRewatched+=1)}},{key:"secondsWatched",value:function secondsWatched(){return this._totalWatched||0}},{key:"secondsWatchedVector",value:function secondsWatchedVector(){return this._secondsWatched}},{key:"reset",value:function reset(){this._secondsWatched=[];for(var i=0;i<Math.ceil(this.duration);i++)this._secondsWatched.push(0);this._totalWatched=0,this._totalRewatched=0}}]),SecondsWatchedTracker}();/* harmony default export */ __webpack_exports__["default"] = (SecondsWatchedTracker);

/***/ }),

/***/ 8:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "seqId": function() { return /* binding */ seqId; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
var seqId=function seqId(){var prefix=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"wistia_",suffix=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",currentVal=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._sequenceVal||1,result=""+prefix+currentVal+suffix;return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._sequenceVal=currentVal+1,result};

/***/ }),

/***/ 297:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "countMetric": function() { return /* binding */ countMetric; },
/* harmony export */   "sendMetrics": function() { return /* binding */ sendMetrics; },
/* harmony export */   "sampleMetric": function() { return /* binding */ sampleMetric; },
/* harmony export */   "sendMetric": function() { return /* binding */ sendMetric; },
/* harmony export */   "_clearMetricsCache": function() { return /* binding */ _clearMetricsCache; }
/* harmony export */ });
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_assign_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18);
/* harmony import */ var utilities_pageLoaded_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36);
/* harmony import */ var utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(42);
/* harmony import */ var utilities_xhr_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25);
var _this=undefined;null==wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._simpleMetricsCache&&(wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._simpleMetricsCache={}),wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._simpleMetricsPostFunction||(wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._simpleMetricsPostFunction=utilities_xhr_js__WEBPACK_IMPORTED_MODULE_4__.xhrPost),null==wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._simpleMetricsDebounceInterval&&(wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._simpleMetricsDebounceInterval=500);var METRICS_CACHE=wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._simpleMetricsCache;var countMetric=function countMetric(key){var val=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1,extraData=2<arguments.length?arguments[2]:void 0;return sendMetric("count",key,val,extraData)};var sendMetrics=function sendMetrics(){if((0,utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_3__.isVisitorTrackingEnabled)()){for(var url="https://".concat("pipedream.wistia.com","/mput?topic=metrics"),_len=arguments.length,messages=Array(_len),_key=0;_key<_len;_key++)messages[_key]=arguments[_key];return wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._simpleMetricsPostFunction(url,messages.join("\n"))}};var sampleMetric=function sampleMetric(key,val,extraData){return sendMetric("sample",key,val,extraData)};var sendMetric=function sendMetric(type,key,val){var extraData=3<arguments.length&&arguments[3]!==void 0?arguments[3]:{};if((0,utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_3__.isVisitorTrackingEnabled)())try{null==METRICS_CACHE.toMput&&(METRICS_CACHE.toMput=[]);var messageObj=(0,utilities_assign_js__WEBPACK_IMPORTED_MODULE_1__.default)({type:type,key:key,value:null==val?null:val},extraData),serialized=JSON.stringify(messageObj);METRICS_CACHE.toMput.push(serialized),clearTimeout(wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._msendTimeout),wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._msendTimeout=setTimeout(function(){(0,utilities_pageLoaded_js__WEBPACK_IMPORTED_MODULE_2__.default)(function(){sendMetrics.apply(_this,METRICS_CACHE.toMput),METRICS_CACHE.toMput=[]})},wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default._simpleMetricsDebounceInterval)}catch(e){console.error(e.message),console.error(e.stack)}};// only used in testing to clear the cache
var _clearMetricsCache=function _clearMetricsCache(){METRICS_CACHE.toMput=[]};

/***/ }),

/***/ 29:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var throttle=function throttle(wait,fn){var options=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},context=null,args=null,result=null,timeout=null,previous=0,later=function later(){previous=!1===options.leading?0:new Date().getTime(),timeout=null,result=fn.apply(context,args),timeout||(context=args=null)};return function(){var now=new Date().getTime();previous||!1!==options.leading||(previous=now);var remaining=wait-(now-previous);return context=this,args=arguments,0>=remaining||remaining>wait?(clearTimeout(timeout),timeout=null,previous=now,result=fn.apply(context,args),!timeout&&(context=args=null)):!timeout&&!1!==options.trailing&&(timeout=setTimeout(later,remaining)),result}};/* harmony default export */ __webpack_exports__["default"] = (throttle);

/***/ }),

/***/ 42:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "migrateLegacyVisitorTracking": function() { return /* binding */ migrateLegacyVisitorTracking; },
/* harmony export */   "consent": function() { return /* binding */ consent; },
/* harmony export */   "setVisitorTrackingEnabled": function() { return /* binding */ setVisitorTrackingEnabled; },
/* harmony export */   "isVisitorTrackingEnabled": function() { return /* binding */ isVisitorTrackingEnabled; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_globalBindAndTrigger_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
/* harmony import */ var utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43);
function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}var migrateLegacyVisitorTracking=function migrateLegacyVisitorTracking(){var legacyIsEnabled=(0,utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_2__.getWistiaLocalStorage)().visitorTrackingEnabled;null!=legacyIsEnabled&&((0,utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_2__.updateWistiaLocalStorage)(function(ls){return delete ls.visitorTrackingEnabled}),wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTracking={},wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTracking[wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTrackingDomain]={isEnabled:legacyIsEnabled,updatedAt:Date.now()},(0,utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_2__.updateWistiaLocalStorage)(function(ls){return ls.visitorTracking=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTracking}))};wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTrackingDomain||(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTrackingDomain=location.hostname||""),wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTracking||(migrateLegacyVisitorTracking(),wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTracking=(0,utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_2__.getWistiaLocalStorage)().visitorTracking||{});var consent=function consent(val){return null==val?isVisitorTrackingEnabled():setVisitorTrackingEnabled(val)};wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.consent=consent;var setVisitorTrackingEnabled=function setVisitorTrackingEnabled(val){var domain=1<arguments.length&&arguments[1]!==void 0?arguments[1]:wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTrackingDomain;"default"===val?delete wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTracking[domain]:wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTracking[domain]={isEnabled:"true"==="".concat(val),updatedAt:Date.now()},(0,utilities_wistiaLocalStorage_js__WEBPACK_IMPORTED_MODULE_2__.updateWistiaLocalStorage)(function(obj){return obj.visitorTracking=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTracking}),(0,utilities_globalBindAndTrigger_js__WEBPACK_IMPORTED_MODULE_1__.globalTrigger)("visitortrackingchange",val)};var isCurrentDomainOrAnyParentDomainsEnabled=function isCurrentDomainOrAnyParentDomainsEnabled(){if(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTrackingDomain)for(var domainParts=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTrackingDomain.split(".");0<domainParts.length;){var entry=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTracking[domainParts.join(".")],enabledVal=entry&&entry.isEnabled;if(null!=enabledVal)return enabledVal;domainParts.shift()}// returns undefined instead of false as a result so that we can have
// different behavior if it has not been set.
};var isVisitorTrackingEnabled=function isVisitorTrackingEnabled(){if("boolean"==typeof wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTracking)// Legacy. We previously persisted this data as a boolean
return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTracking;if(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._visitorTracking){// _visitorTracking has been set. Let's check the value for the current
// domain. And if that's set, we return.
var isEnabledVal=isCurrentDomainOrAnyParentDomainsEnabled();if(null!=isEnabledVal)return!!isEnabledVal}var apis=[];if(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.api&&wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.api.all)try{apis.push.apply(apis,_toConsumableArray(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.api.all()))}catch(e){// If W.api.all() is called before W._data is setup, this will throw
// an exception. That's okay--it just means there are effectively no
// video embeds yet.
}if(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.channel&&wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.channel.all)try{apis.push.apply(apis,_toConsumableArray(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.channel.all()))}catch(e){// If W.api.all() is called before W._data is setup, this will throw
// an exception. That's okay--it just means there are effectively no
// channel embeds yet.
}// By default, if any videos have privacy mode enabled, then we disable
// visitor tracking for all videos on the page. In practice, we would only
// see this occur if videos from multiple accounts--with different privacy
// mode settings--appear on the same page.
var isPrivacyModeEnabled=apis.some(function(api){var data=api._mediaData||api._galleryData||{};return!0===data.privacyMode});return!isPrivacyModeEnabled};

/***/ }),

/***/ 30:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "unescapeHtml": function() { return /* binding */ unescapeHtml; }
/* harmony export */ });
var unescapedCache={};var unescapeHtml=function unescapeHtml(encodedHtmlStr){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!encodedHtmlStr)return"";if(options.cache){var cachedVal=unescapedCache[encodedHtmlStr];if(unescapedCache[encodedHtmlStr])return cachedVal}var e=document.createElement("div");e.innerHTML=encodedHtmlStr.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;");var result;return result=0<e.childNodes.length?e.childNodes[0].nodeValue:"",options.cache&&(unescapedCache[encodedHtmlStr]=result),result};

/***/ }),

/***/ 89:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "uniqId": function() { return /* binding */ uniqId; }
/* harmony export */ });
var uniqId=function uniqId(){var prefix=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",suffix=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"",d=new Date().getTime();window.performance&&"function"==typeof window.performance.now&&(d+=window.performance.now());var randStr="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx-xxxxxxxxx-xxxxxxxxxxxx-xxxx".replace(/[xy]/g,function(c){var r=0|(d+16*Math.random())%16;d=Math.floor(d/16);var v="x"===c?r:8|3&r;return v.toString(16)});return prefix+randStr+suffix};

/***/ }),

/***/ 16:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "proto": function() { return /* binding */ proto; },
/* harmony export */   "queryParamsToObject": function() { return /* binding */ queryParamsToObject; },
/* harmony export */   "urlComponentToObject": function() { return /* binding */ urlComponentToObject; },
/* harmony export */   "objectToQueryParams": function() { return /* binding */ objectToQueryParams; },
/* harmony export */   "splitPath": function() { return /* binding */ splitPath; },
/* harmony export */   "joinPath": function() { return /* binding */ joinPath; },
/* harmony export */   "brack": function() { return /* binding */ brack; },
/* harmony export */   "debrack": function() { return /* binding */ debrack; },
/* harmony export */   "Url": function() { return /* binding */ Url; },
/* harmony export */   "createUrl": function() { return /* binding */ createUrl; },
/* harmony export */   "parseUrl": function() { return /* binding */ parseUrl; }
/* harmony export */ });
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
/* harmony import */ var utilities_wlog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19);
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}var proto=function proto(){var url=0<arguments.length&&arguments[0]!==void 0?arguments[0]:location.href;return /^http:\/\//.test(url)?"http:":"https:"};// decompose the raw query params into a JSON object
// root[level1][level2][level3] to deep set
// param[a]=1&param[a]=2 to create an array
var queryParamsToObject=function queryParamsToObject(raw){// get each key/val pair separated by &
var result={};if(!raw)return result;for(var parts=raw.split("&"),i=0;i<parts.length;i++){var part=parts[i],pair=part.split("="),key=pair[0],val=pair[1];// break up key/vals
try{key=debrack(decodeURIComponent(key))||""}catch(e){// log on a timeout so that wlog has a chance to set its level from page
// url.
setTimeout(function(){utilities_wlog__WEBPACK_IMPORTED_MODULE_1__.wlog.notice(e)},50),key=""}// deep cast each piece of the key (e.g. "foo.1" yields ["foo", 1])
utilities_obj__WEBPACK_IMPORTED_MODULE_0__.cast(key);// if the key already exists in params
var existing=utilities_obj__WEBPACK_IMPORTED_MODULE_0__.getDeep(result,key);if(!(null!=existing))// otherwise save key/val
utilities_obj__WEBPACK_IMPORTED_MODULE_0__.setAndPreserveUndefined(result,key,urlComponentToObject(val));else// make this value an array of same-name params
if(utilities_obj__WEBPACK_IMPORTED_MODULE_0__.isArray(existing))existing.push(urlComponentToObject(val));else{var arr=[existing];arr.push(urlComponentToObject(val)),utilities_obj__WEBPACK_IMPORTED_MODULE_0__.setAndPreserveUndefined(result,key,arr)}}// return the json object
return result};// Any val that starts with json:slashslash should have its data
// parsed as JSON.
var urlComponentToObject=function urlComponentToObject(val){if(null==val)return val;var result;try{result=decodeURIComponent(val)}catch(e){// log on a timeout so that wlog has a chance to set its level from page
// url.
setTimeout(function(){utilities_wlog__WEBPACK_IMPORTED_MODULE_1__.wlog.notice(e)},50),result=val}return result};var objectToQueryParams=function objectToQueryParams(obj){var result=[];return utilities_obj__WEBPACK_IMPORTED_MODULE_0__.eachLeaf(obj,function(leafVal,path){null==leafVal?result.push(encodeURIComponent(brack(path))):result.push(encodeURIComponent(brack(path))+"="+encodeURIComponent(leafVal))}),result.join("&")};var splitPath=function splitPath(str){var result=[];if(null==str)return result;for(var part,parts=str.split(/\/+/),i=0;i<parts.length;i++)part=parts[i],null!=part&&""!==part&&result.push(part);return result};// `path` can be a string or an array of strings.
var joinPath=function joinPath(path){return"string"==typeof path&&(path=path.split("/")),null==path?"":"/"+path.join("/")};// convert array [abc, def, ghi] to bracketed format "abc[def][ghi]"
var brack=function brack(path){for(var result=path[0],i=1;i<path.length;i++)result+="["+path[i]+"]";return result};// convert "abc[def][ghi][jkl]" to array [abc, def, ghi, jkl]
var debrack=function debrack(str){return str.match(/([\w\-_]+)/g)};////
// An object to represent an URL, and to make it easy to
// get/set various properties and parameters of the URL.
////
var URL_CONSTRUCTOR_KEYS=["protocol","host","port","params","path"];var Url=function Url(url){var self=this,construct=function construct(){self.params={},self.path=[],self.host="","object"===_typeof(url)?self.fromOptions(url):url&&self.fromRaw(url)};// if an url is supplied, parse. if it's an object, explicitly
// set options. otherwise, just assume we're building an url
// from scratch.
return construct(),self};var uproto=Url.prototype;uproto.fromOptions=function(options){for(var opt,i=0;i<URL_CONSTRUCTOR_KEYS.length;i++)opt=URL_CONSTRUCTOR_KEYS[i],null!=options[opt]&&(this[opt]=options[opt]);return this},uproto.fromRaw=function(raw){this.rawUrl=raw;var match;// protocol
return match=raw.match(/^((?:https?:)|(?:file:)|(?:ftp:))?\/\//),match&&(this.protocol=match[1]||void 0),match=raw.match(/\/\/([^:?#/]*)/),match&&(this.host=match[1]||void 0),match=raw.match(/\/\/.*?(\/[^?#$]+)/)||raw.match(/(^\/[^/][^?#$]+)/),match&&this.setPath(match[1]),match=raw.match(/:(\d+)/),match&&(this.port=parseInt(match[1],10)),match=raw.match(/\?([^#]+)/),match&&(this.rawParams=match[1],this.params=queryParamsToObject(this.rawParams)),match=raw.match(/#(.*)$/),match&&(this.anchor=match[1]),this},uproto.clone=function(){return new Url({protocol:this.protocol,host:this.host,port:this.port,path:utilities_obj__WEBPACK_IMPORTED_MODULE_0__.clone(this.path),params:utilities_obj__WEBPACK_IMPORTED_MODULE_0__.clone(this.params),anchor:this.anchor})},uproto.ext=function(ext){if(null!=ext){var current=this.ext(),i=this.path.length-1,regexp=new RegExp("\\.".concat(current),"g");return current&&(this.path[i]="".concat(this.path[i].replace(regexp,""))),this.path[i]="".concat(this.path[i],".").concat(ext)}var match=this.path[this.path.length-1].match(/\.(.*)$/);return null!=match&&match[1]||null},uproto.isRelative=function(){var loc=0<arguments.length&&arguments[0]!==void 0?arguments[0]:window.location,proto=this.protocol,host=this.host;return(null==proto||""===proto||proto===loc.protocol)&&(!host||host===loc.hostname)},uproto.toString=function(){return this.isRelative()?this.relative():this.absolute()},uproto.absolute=function(){var protocolPart="";null!=this.protocol&&(protocolPart=this.protocol);var portPart="";return null!=this.port&&(portPart=":"+this.port),"".concat(protocolPart,"//").concat(this.host||location.host).concat(portPart).concat(this.relative())},uproto.relative=function(){var pathPart="";0<this.path.length&&(pathPart=joinPath(this.path),this._hasTrailingSlash&&(pathPart+="/"));var paramPart="?"+objectToQueryParams(this.params);return 1===paramPart.length&&(paramPart=""),"".concat(pathPart).concat(paramPart).concat(this.relativeAnchor())},uproto.authority=function(){var portPart=null==this.port?"":":".concat(this.port);return"".concat(this.host).concat(portPart)},uproto.relativeProtocol=function(){var portPart="";return null!=this.port&&(portPart=":"+this.port),"//".concat(this.host).concat(portPart).concat(this.relative())},uproto.relativeAnchor=function(){var anchorPart="";return null!=this.anchor&&(anchorPart="#".concat(this.anchor)),""+anchorPart},uproto.setPath=function(rawPath){this.rawPath=rawPath,this._hasTrailingSlash=/\/$/.test(this.rawPath),this.path=splitPath(this.rawPath)},Url.create=function(options){return new Url(options)};var createUrl=Url.create;Url.parse=function(str){return new Url(str)};var parseUrl=Url.parse;

/***/ }),

/***/ 22:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "makeWbindable": function() { return /* binding */ makeWbindable; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_bindify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23);
// This is an adaptation on top of bindify that is intended to provide both
// legacy functionality (returning `this` instead of an "unbind" function) and
// and "specialBind" functionality, which is what we use for special
// "composite" bindings like "crosstime" and "betweentimes".
//
// If you're setting up on/off/trigger for any new things, you should use
// bindify directly instead.
wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.bindable||(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.bindable={bind:function bind(event,callback){return this.specialBind&&!0===this.specialBind.apply(this,arguments)?this:callback?(utilities_bindify_js__WEBPACK_IMPORTED_MODULE_1__.bind.call(this,event,callback),this):void(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.warn&&wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.warn(this.constructor.name,"bind","falsey value passed in as callback:",callback))},// unbind the matching callback and event for this video
unbind:function unbind(event,callback){return this.specialUnbind&&!0===this.specialUnbind.apply(this,arguments)?this:(callback?utilities_bindify_js__WEBPACK_IMPORTED_MODULE_1__.unbind.call(this,event,callback):this._bindings&&(this._bindings[event]=[]),this._bindings&&this._bindings[event]&&!this._bindings[event].length&&(this._bindings[event]=null,delete this._bindings[event]),this)},on:function on(event,fn){var specialBindResult=this.specialBind&&this.specialBind.apply(this,arguments);return"function"==typeof specialBindResult?specialBindResult:utilities_bindify_js__WEBPACK_IMPORTED_MODULE_1__.bind.call(this,event,fn)},off:function off(event,fn){var specialUnbindResult=this.specialUnbind&&this.specialUnbind.apply(this,arguments);return"function"==typeof specialUnbindResult?specialUnbindResult:utilities_bindify_js__WEBPACK_IMPORTED_MODULE_1__.unbind.call(this,event,fn)},rebind:function rebind(event,callback){return this.unbind(event,callback),this.bind(event,callback),this},// fire an event trigger on the video. for play/pause/ended callbacks.
trigger:function trigger(event){for(var _bindify$trigger,_len=arguments.length,args=Array(1<_len?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return(_bindify$trigger=utilities_bindify_js__WEBPACK_IMPORTED_MODULE_1__.trigger).call.apply(_bindify$trigger,[this,event].concat(args)),this},bindNamed:function bindNamed(){return utilities_bindify_js__WEBPACK_IMPORTED_MODULE_1__.bindNamed.apply(this,arguments)},unbindNamed:function unbindNamed(){return utilities_bindify_js__WEBPACK_IMPORTED_MODULE_1__.unbindNamed.apply(this,arguments)},unbindAllInNamespace:function unbindAllInNamespace(){return utilities_bindify_js__WEBPACK_IMPORTED_MODULE_1__.unbindAllInNamespace.apply(this,arguments)}});var makeWbindable=function makeWbindable(obj){for(var k in wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.bindable){var v=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.bindable[k];obj[k]||(obj[k]=v)}};/* harmony default export */ __webpack_exports__["default"] = (wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.bindable);

/***/ }),

/***/ 101:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "wData": function() { return /* binding */ wData; },
/* harmony export */   "wRemoveData": function() { return /* binding */ wRemoveData; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_obj__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
// A simple key/value store implementation
// stored on the Wistia namespace
//
// To set:
//
//     wData("key.path", "val")
//     wData(["key", "path"], "val")
//
// To get
//
//     wData("key.path")
//     wData(["key", "path"])
var wData=function wData(key,val){return (0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.isArray)(key)||(key=key.split(".")),null!=val&&(0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.setDeep)(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default,["_data"].concat(key),val),(0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.getDeep)(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default,["_data"].concat(key))};var wRemoveData=function wRemoveData(key){return (0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.isArray)(key)||(key=key.split(".")),(0,utilities_obj__WEBPACK_IMPORTED_MODULE_1__.unsetDeep)(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default,["_data"].concat(key))};

/***/ }),

/***/ 43:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getWistiaLocalStorage": function() { return /* binding */ getWistiaLocalStorage; },
/* harmony export */   "removeWistiaLocalStorage": function() { return /* binding */ removeWistiaLocalStorage; },
/* harmony export */   "setWistiaLocalStorage": function() { return /* binding */ setWistiaLocalStorage; },
/* harmony export */   "updateWistiaLocalStorage": function() { return /* binding */ updateWistiaLocalStorage; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_namespacedLocalStorage_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44);
// This localStorage utility can be used in situations where we don't need to
// do very frequent updates or reads. If frequent updates or reads are
// expected, you should use namespacedLocalStorage.js with its own namespace,
// since the entire namespace is deserialized and serialized on read and write
// respectively.
var WISTIA_NAMESPACE="wistia";var getWistiaLocalStorage=function getWistiaLocalStorage(){return (0,utilities_namespacedLocalStorage_js__WEBPACK_IMPORTED_MODULE_1__.getLocalStorage)(WISTIA_NAMESPACE)};var removeWistiaLocalStorage=function removeWistiaLocalStorage(){return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorage=(0,utilities_namespacedLocalStorage_js__WEBPACK_IMPORTED_MODULE_1__.removeLocalStorage)(WISTIA_NAMESPACE),wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorage};var setWistiaLocalStorage=function setWistiaLocalStorage(obj){return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorage=(0,utilities_namespacedLocalStorage_js__WEBPACK_IMPORTED_MODULE_1__.setLocalStorage)(WISTIA_NAMESPACE,obj),wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorage};var updateWistiaLocalStorage=function updateWistiaLocalStorage(fn){return wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorage=(0,utilities_namespacedLocalStorage_js__WEBPACK_IMPORTED_MODULE_1__.updateLocalStorage)(WISTIA_NAMESPACE,fn),wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default._localStorage};

/***/ }),

/***/ 19:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ERROR": function() { return /* binding */ ERROR; },
/* harmony export */   "WARNING": function() { return /* binding */ WARNING; },
/* harmony export */   "NOTICE": function() { return /* binding */ NOTICE; },
/* harmony export */   "INFO": function() { return /* binding */ INFO; },
/* harmony export */   "DEBUG": function() { return /* binding */ DEBUG; },
/* harmony export */   "LOG_LEVELS": function() { return /* binding */ LOG_LEVELS; },
/* harmony export */   "Logger": function() { return /* binding */ Logger; },
/* harmony export */   "wlog": function() { return /* binding */ wlog; }
/* harmony export */ });
/* harmony import */ var wistia_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var utilities_detect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20);
/* harmony import */ var utilities_globalBindAndTrigger_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21);
function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}/*eslint no-console: "off"*/ /*
 * wlog
 *
 * wlog seeks to give us flexibility and power.
 *
 * Basic usage:
 *
 *     import {Logger} from 'utilities/wlog';
 *     const logger = new Logger();
 *
 *     logger.error(exception); // this will print the message and stack nicely
 *     logger.error('an error');
 *     logger.info('informational');
 *     logger.warn('a warning');
 *     logger.debug('really high volume stuff');
 *
 * You can change the level:
 *
 *     logger.setLevel(LOG_LEVELS.INFO);
 *
 * You can change grep (include matching) and grepv (exclude matching):
 *
 *     logger.setGrep('include only lines matching this text');
 *     logger.setGrepv('exclude any lines matching this text');
 *
 * If you want loggers to share context--for example, all logs for the player
 * should send to the same first1000LogLines and last1000LogLines caches.
 *
 *     Wistia.wlog = Wistia.wlog || {};
 *     const logger = new Logger(Wistia.wlog);
 *
 * A more advanced case would be to return the context in a function. This is
 * helpful if your logger is initialized/configured in one point, but used in
 * others that don't need to know about that configuration. In fact, this is
 * how the `wlog` constant is setup at the bottom of this file.
 *
 * We often want to have a global logger, but prefix certain portions of it.
 *
 *     const myLogger = logger.getPrefixedFunctions('my prefix');
 *     myLogger.info('aha'); // outputs "my prefix aha"
 *
 * A prefix can be a string or an array of strings. It can also be a function
 * that returns a string or an array of strings.
 *
 * In the above example, `myLogger` is a simple Object with defined logging
 * functions and fixed `this` context:
 *
 *    {
 *      error: (...messages) => { ... },
 *      warn: (...messages) => { ... },
 *      info: (...messages) => { ... },
 *      etc...
 *    }
 *
 * So it can also be used as a mix-in for other objects, e.g.
 *
 *    import {Logger} from 'utilities/wlog';
 *    class MyThing {
 *      constructor () {
 *        this.logger = new Logger().getPrefixedFunctions(this.logPrefix);
 *        for (let k in this.logger) {
 *          this[k] = this.logger[k];
 *        }
 *        this.info('my mixed-in logger is setup!');
 *      }
 *
 *      logPrefix = () => {
 *        return [this.id, this.variable];
 *      }
 *    }
 */var detect=(0,utilities_detect__WEBPACK_IMPORTED_MODULE_1__.cachedDetect)();var ERROR=0;var WARNING=1;var NOTICE=2;var INFO=3;var DEBUG=4;var LOG_LEVELS={ERROR:0,WARNING:1,NOTICE:2,INFO:3,DEBUG:4,error:0,warning:1,notice:2,info:3,debug:4};var NOOP=function NOOP(){};var Logger=function Logger(ctx){var self=this;null==ctx&&(ctx={});var construct=function construct(){self.ctx=ctx,self.ctx.initializedAt||self.reset()};return self.error=function(){for(var _len=arguments.length,messages=Array(_len),_key=0;_key<_len;_key++)messages[_key]=arguments[_key];return self.log(ERROR,messages)},self.warn=function(){for(var _len2=arguments.length,messages=Array(_len2),_key2=0;_key2<_len2;_key2++)messages[_key2]=arguments[_key2];return self.log(WARNING,messages)},self.notice=function(){for(var _len3=arguments.length,messages=Array(_len3),_key3=0;_key3<_len3;_key3++)messages[_key3]=arguments[_key3];return self.log(WARNING,messages)},self.info=function(){for(var _len4=arguments.length,messages=Array(_len4),_key4=0;_key4<_len4;_key4++)messages[_key4]=arguments[_key4];return self.log(INFO,messages)},self.debug=function(){for(var _len5=arguments.length,messages=Array(_len5),_key5=0;_key5<_len5;_key5++)messages[_key5]=arguments[_key5];return self.log(DEBUG,messages)},construct(),self};var lproto=Logger.prototype;lproto.reset=function(){this.ctx.level=ERROR,this.ctx.grep=null,this.ctx.grepv=null,this.ctx.first1000LogLines=[],this.ctx.last1000LogLines=[],this.ctx.initializedAt=new Date().getTime()},lproto.setLevel=function(level){var logFunc=this.logFunc(INFO);null==LOG_LEVELS[level]?logFunc("Unknown log level \"".concat(level,"\"")):(this.ctx.level=LOG_LEVELS[level],logFunc("Log level set to \"".concat(level,"\" (").concat(LOG_LEVELS[level],")")))},lproto.setGrep=function(grep){this.ctx.grep=grep},lproto.setGrepv=function(grepv){this.ctx.grepv=grepv},lproto.first1000LogLines=function(){return this.ctx.first1000LogLines},lproto.last1000LogLines=function(){return this.ctx.last1000LogLines},lproto.matchedGrep=function(messages){var matched=!1;if(this.ctx.grep||this.ctx.grepv){for(var messageStrings=[],i=0;i<messages.length;i++)try{var message=messages[i];messageStrings.push(message.toString&&message.toString())}catch(e){messageStrings.push("")}var fullLine=messageStrings.join(" "),matchesGrep=!this.ctx.grep||fullLine.match(this.ctx.grep),matchesGrepv=!this.ctx.grepv||!fullLine.match(this.ctx.grepv);matched=matchesGrep&&matchesGrepv}else matched=!0;return matched},lproto.now=function(){// IE9 has window.performance, but not performance.now
return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now().toFixed(3):Date.now?Date.now()-this.ctx.initializedAt:new Date().getTime()-this.ctx.initializedAt},lproto.messagesToLogLine=function(level,time,messages){var logLine=[level,time];logLine=logLine.concat(messages);var cappedLine;try{cappedLine=logLine.join(" ")||"",200<cappedLine.length&&(cappedLine=cappedLine.slice(0,200))}catch(e1){cappedLine="could not serialize"}return cappedLine},lproto.persistLine=function(logLine){1e3>this.ctx.first1000LogLines.length?this.ctx.first1000LogLines.push(logLine):(1e3<=this.ctx.last1000LogLines.length&&this.ctx.last1000LogLines.shift(),this.ctx.last1000LogLines.push(logLine))},lproto.log=function(level,messages){var withinLevel=level<=this.ctx.level,notDebug=level<DEBUG,matched=(withinLevel||notDebug)&&this.matchedGrep(messages);level===ERROR&&(0,utilities_globalBindAndTrigger_js__WEBPACK_IMPORTED_MODULE_2__.globalTrigger)("problem",{type:"error-logged",data:{messages:messages}});var now;// Don't store "debug" lines, but keep the first and last 1000 lines so we
// can send it with problem reports.
if(matched&&(withinLevel||notDebug)&&(now=this.now()),notDebug&&matched){var logLine=this.messagesToLogLine(level,now,messages);this.persistLine(logLine)}// Output that log to the console! Minus info that is distracting like the
// timestamp and log level.
if(withinLevel&&matched){var e,logFunc=this.logFunc(level);1===messages.length&&(e=messages[0])instanceof Error?(logFunc(e.message),e.stack&&logFunc(e.stack)):detect.browser.msie&&(9>detect.browser.version||detect.browser.quirks)?logFunc(messages.join(" ")):logFunc.apply(void 0,_toConsumableArray(messages))}};var logError=function logError(){for(var _len6=arguments.length,messages=Array(_len6),_key6=0;_key6<_len6;_key6++)messages[_key6]=arguments[_key6];console.error.apply(console,messages)},logWarn=function logWarn(){for(var _len7=arguments.length,messages=Array(_len7),_key7=0;_key7<_len7;_key7++)messages[_key7]=arguments[_key7];console.warn.apply(console,messages)},logInfo=function logInfo(){for(var _len8=arguments.length,messages=Array(_len8),_key8=0;_key8<_len8;_key8++)messages[_key8]=arguments[_key8];console.info.apply(console,messages)},logDebug=function logDebug(){for(var _len9=arguments.length,messages=Array(_len9),_key9=0;_key9<_len9;_key9++)messages[_key9]=arguments[_key9];console.debug.apply(console,messages)},logLog=function logLog(messages){console.log.apply(console,messages)};lproto.logFunc=function(level){if(null==level&&(level=this.level),!console)return NOOP;var func;return level===ERROR?func=logError:level===WARNING?func=logWarn:level===INFO?func=logInfo:level===DEBUG&&(func=logDebug),func||(func=logLog),"function"!=typeof func&&(this.noConsoleLog=!0,func=NOOP),func},lproto.maybePrefix=function(prefix,messages){if(prefix){// prefix can be a fixed value, or a function that returns a value.
if("function"==typeof prefix)try{prefix=prefix()}catch(e){prefix="prefix err \"".concat(e.message,"\"")}return prefix instanceof Array?prefix.concat(messages):[prefix].concat(messages)}return messages},lproto.getPrefixedFunctions=function(prefix){var _this=this;return{log:function log(){for(var _len10=arguments.length,messages=Array(_len10),_key10=0;_key10<_len10;_key10++)messages[_key10]=arguments[_key10];return _this.log(ERROR,_this.maybePrefix(prefix,messages))},error:function error(){for(var _len11=arguments.length,messages=Array(_len11),_key11=0;_key11<_len11;_key11++)messages[_key11]=arguments[_key11];return _this.log(ERROR,_this.maybePrefix(prefix,messages))},warn:function warn(){for(var _len12=arguments.length,messages=Array(_len12),_key12=0;_key12<_len12;_key12++)messages[_key12]=arguments[_key12];return _this.log(WARNING,_this.maybePrefix(prefix,messages))},notice:function notice(){for(var _len13=arguments.length,messages=Array(_len13),_key13=0;_key13<_len13;_key13++)messages[_key13]=arguments[_key13];return _this.log(WARNING,_this.maybePrefix(prefix,messages))},info:function info(){for(var _len14=arguments.length,messages=Array(_len14),_key14=0;_key14<_len14;_key14++)messages[_key14]=arguments[_key14];return _this.log(INFO,_this.maybePrefix(prefix,messages))},debug:function debug(){for(var _len15=arguments.length,messages=Array(_len15),_key15=0;_key15<_len15;_key15++)messages[_key15]=arguments[_key15];return _this.log(DEBUG,_this.maybePrefix(prefix,messages))}}},wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default&&null==wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default.wlogCtx&&(wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default.wlogCtx={});var wlog=new Logger(wistia_namespace__WEBPACK_IMPORTED_MODULE_0__.default.wlogCtx);

/***/ }),

/***/ 25:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "xhr": function() { return /* binding */ xhr; },
/* harmony export */   "xhrGet": function() { return /* binding */ xhrGet; },
/* harmony export */   "xhrPost": function() { return /* binding */ xhrPost; },
/* harmony export */   "xhrJsonPost": function() { return /* binding */ xhrJsonPost; }
/* harmony export */ });
/* harmony import */ var utilities_assign_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26);
/* harmony import */ var promiscuous__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(promiscuous__WEBPACK_IMPORTED_MODULE_1__);
var DONE=4;var xhr=function xhr(type,url,data){var headers=3<arguments.length&&arguments[3]!==void 0?arguments[3]:{},options=4<arguments.length&&arguments[4]!==void 0?arguments[4]:{};return new (promiscuous__WEBPACK_IMPORTED_MODULE_1___default())(function(resolve,reject){var XhrClass=options.XMLHttpRequest||XMLHttpRequest,xhr=new XhrClass;options.afterConstructor&&options.afterConstructor(xhr);var onReadyStateChange=function onReadyStateChange(){if(!(xhr.readyState<DONE))// 200-300 = success, 304 = Not Modified
if(!(null!=xhr.status&&(200<=xhr.status&&300>xhr.status||304==xhr.status))){var badStatusError=new Error("".concat(type," ").concat(url," - Got an unsuccessful status code: ").concat(xhr.status,". ").concat(xhr.statusText));badStatusError.status=xhr.status,console.error(badStatusError.message),reject(badStatusError)}else if(xhr.response&&"string"!=typeof xhr.response)// The browser has modified the response to a non-String type; handle
// it downstream.
resolve({data:xhr.response,status:xhr.status,statusText:xhr.statusText,xhr:xhr});else if("json"===options.dataType)// We're getting a string response but have asked for dataType='json';
// parse it ourselves.
try{var responseJson=JSON.parse(xhr.responseText);resolve({data:responseJson,status:xhr.status,statusText:xhr.statusText,xhr:xhr})}catch(e){var badParseError=new Error("".concat(type," ").concat(url," - Error parsing response text: ").concat(xhr.responseText,"."));console.error(badParseError.message),reject(badParseError)}else// This is a simple non-JSON string response.
resolve({data:xhr.responseText,status:xhr.status,statusText:xhr.statusText,xhr:xhr})};try{xhr.addEventListener("readystatechange",onReadyStateChange,!1)}catch(e){console.error(e.message),console.error(e.stack)}var onError=function onError(){var error=new Error("XHR error");error.status=xhr.status,error.xhr=xhr,reject(error)};xhr.addEventListener("error",onError,!1);var onTimeout=function onTimeout(e){var error=new Error("XHR timeout");error.status=xhr.status,error.message=e&&e.message,error.xhr=xhr,reject(e)};if(xhr.addEventListener("timeout",onTimeout,!1),xhr.open(type,url,!0),options.withCredentials&&(xhr.withCredentials=!0),options.timeout&&(xhr.timeout=options.timeout),null!=options.dataType&&(xhr.responseType=options.dataType),"POST"!==type||headers["content-type"]||xhr.setRequestHeader("content-type","application/x-www-form-urlencoded"),headers)for(var name in headers)headers.hasOwnProperty(name)&&xhr.setRequestHeader(name.toLowerCase(),headers[name]);xhr.send(data),options.afterSend&&options.afterSend(xhr)})};var xhrGet=function xhrGet(url,headers,options){return xhr("GET",url,null,headers,options)};var xhrPost=function xhrPost(url,data,headers,options){return xhr("POST",url,data,headers,options)};var xhrJsonPost=function xhrJsonPost(url,data,headers,options){return headers=(0,utilities_assign_js__WEBPACK_IMPORTED_MODULE_0__.default)({},headers,{"content-type":"application/json"}),xhr("POST",url,JSON.stringify(data),headers,options)};

/***/ }),

/***/ 1:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var utilities_root__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
null==utilities_root__WEBPACK_IMPORTED_MODULE_0__.default.Wistia&&(utilities_root__WEBPACK_IMPORTED_MODULE_0__.default.Wistia={});var W=utilities_root__WEBPACK_IMPORTED_MODULE_0__.default.Wistia;null==W._initializers&&(W._initializers={}),null==W._destructors&&(W._destructors={}),null==W.mixin&&(W.mixin=function(klass,obj){for(var k in obj)obj.hasOwnProperty(k)&&(klass[k]=obj[k])});/* harmony default export */ __webpack_exports__["default"] = (utilities_root__WEBPACK_IMPORTED_MODULE_0__.default.Wistia);

/***/ }),

/***/ 77:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "registerWLib": function() { return /* binding */ registerWLib; },
/* harmony export */   "wlib": function() { return /* binding */ wlib; }
/* harmony export */ });
/* harmony import */ var wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
null==wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.libjs&&(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.libjs={});var registerWLib=function registerWLib(name,value){null==wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.libjs[name]&&(wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.libjs[name]=value)};var wlib=function wlib(name){var result=wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.libjs[name];if(null==result)// Error out loudly so we know immediately if we have a typo or something.
throw new Error("Internal import for \"".concat(name,"\" does not exist. Value is \"").concat(result,"\"."));return result};wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.registerWLib=registerWLib,wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib=wlib;/* harmony default export */ __webpack_exports__["default"] = (wistia_namespace_js__WEBPACK_IMPORTED_MODULE_0__.default.lib);

/***/ }),

/***/ 15:
/***/ (function(module) {

var appHostname;appHostname=function appHostname(subdomain){var hostname;return null==subdomain&&(subdomain="app"),hostname=subdomain?subdomain+"."+"wistia.com":"wistia.com", false&&(0),hostname},module.exports=appHostname;

/***/ }),

/***/ 124:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

(function(W){var StopGo,assign,asyncChain,cast,clearTimeouts,clone,elemClasses,elemHasClass,elemMutationObserver,isObject,onDocReady,queryParamsToObject,ref,ref1,throttle,wlog;if(!W.embeds)return W.embeds={},StopGo=__webpack_require__(40),wlog=__webpack_require__(19).wlog,onDocReady=__webpack_require__(35).onDocReady,asyncChain=__webpack_require__(125).asyncChain,throttle=W.lib("utilities/core").throttle,ref=W.lib("player/lib/elem"),elemClasses=ref.elemClasses,elemHasClass=ref.elemHasClass,elemMutationObserver=ref.elemMutationObserver,queryParamsToObject=W.lib("utilities/url").queryParamsToObject,clearTimeouts=W.lib("player/lib/timeout-utils").clearTimeouts,ref1=W.lib("utilities/obj"),cast=ref1.cast,isObject=ref1.isObject,assign=ref1.assign,clone=ref1.clone,W.embeds.setup=function(embedElems){return W.embeds.notEmbedding(function(){var doEmbedding;if(doEmbedding=function doEmbedding(){var e1,e2,elem,functions,hashedId,j,len,newId,options;W.embeds.notEmbedding(!1),functions=[];try{for(embedElems=W.embeds.uninitialized(embedElems),embedElems&&embedElems.length&&0<embedElems.length&&W.info("initializing",null==embedElems?void 0:embedElems.length,"embedElems"),(j=0,len=embedElems.length);j<len;j++){elem=embedElems[j];try{W.info("initializing elem",elem),hashedId=W.embeds.hashedIdForElem(elem,{asyncOnly:!0}),elem.id?document.getElementById(elem.id)!==elem&&(newId=W.embeds.genIdFor(hashedId),W.error("Duplicate DOM ID found for container \""+elem.id+"\". Changing it to \""+newId+"\" to avoid issues.",elem),elem.id=newId):elem.id=W.embeds.genIdFor(hashedId),options=W.embeds.optionsFromElemClass(elem),W.options("__"+elem.id+"_dom_options__",options),function(hashedId,elem){return functions.push(function(){if(!W.embeds.containerIsInitialized(elem))return W.embed(hashedId,{container:elem.id})})}(hashedId,elem)}catch(error){e1=error,W.error(e1)}}}catch(error){e2=error,W.error(e2)}return functions.push(function(){return W.watchForInit()}),functions.push(function(){return W.embeds.notEmbedding(!0)}),asyncChain("embeds_setup",functions)},onDocReady(doEmbedding),0===W.detect.ios.version&&!W.detect.safari)return doEmbedding()})},W.embeds._setupThrottled=throttle(500,W.embeds.setup),W.embeds.optionsFromElemClass=function(elem){var j,klass,len,optionClasses,options,ref2;for(optionClasses=[],ref2=elemClasses(elem),(j=0,len=ref2.length);j<len;j++)klass=ref2[j],0<klass.indexOf("=")&&optionClasses.push(klass);return options=queryParamsToObject(optionClasses.join("&")),cast(options),options},W.embeds.hashedIdForElem=function(elem,options){var ref2,ref3,ref4,ref5,ref6,ref7;return null==options&&(options={}),options.asyncOnly?(null==(ref2=elem.className)||null==(ref3=ref2.match(/wistia_async_([^\s]+)/))?void 0:ref3[1])||null:(null==(ref4=elem.className)||null==(ref5=ref4.match(/wistia_async_([^\s]+)/))?void 0:ref5[1])||(null==(ref6=elem.className)||null==(ref7=ref6.match(/wistia_([^\s]+)/))?void 0:ref7[1])||null},W.embeds.genIdFor=function(hashedId){var base,candidate,i;for(base="wistia-"+hashedId,i=1;candidate=base+"-"+i,!!document.getElementById(candidate);)i+=1;return candidate},W.embeds._options={},W.embeds.options=function(id,options){var handleFromId,k,ref2,v;if(isObject(id)&&(options=id,id="__global__"),null!=options)return W.embeds._options[id]=cast(clone(options));if(id){if(W.embeds._options[id])return W.embeds._options[id];if(handleFromId=W.api(id),null===handleFromId)return{};for(k in ref2=W.embeds._options,ref2)if(v=ref2[k],W.api(k)===handleFromId)return v;return{}}return W.embeds._options},W.options=W.embeds.options,W.embeds.api=function(klass){var divEls,divs,el,ref2,ref3,spanEls,spans;return null==klass&&(klass="wistia_embed"),document.querySelectorAll?document.querySelectorAll("div."+klass+",span."+klass):(divs=(null==(ref2=document.body)?void 0:ref2.getElementsByTagName("div"))||[],spans=(null==(ref3=document.body)?void 0:ref3.getElementsByTagName("span"))||[],divEls=function(){var j,len,results;for(results=[],j=0,len=divs.length;j<len;j++)el=divs[j],elemHasClass(el,klass)&&results.push(el);return results}(),spanEls=function(){var j,len,results;for(results=[],j=0,len=spans.length;j<len;j++)el=spans[j],elemHasClass(el,klass)&&results.push(el);return results}(),divEls.concat(spanEls))},W.embeds.uninitialized=function(embedElems){var elem,hashedId,j,len,result;for(null==embedElems&&(embedElems=W.embeds.api()),result=[],(j=0,len=embedElems.length);j<len;j++)elem=embedElems[j],hashedId=W.embeds.hashedIdForElem(elem,{asyncOnly:!0}),hashedId&&!W.embeds.containerIsInitialized(elem)&&result.push(elem);return result},W.embeds.containerIsInitialized=function(_this){return function(container){return container&&container.wistiaApi&&!(container.wistiaApi instanceof W.IframeApiProxy)}}(this),W.embeds.initialized=function(embedElems){var handle,ref2,results,uuid;for(uuid in ref2=W._data.video,results=[],ref2)handle=ref2[uuid],results.push(handle);return results},W.embeds.observe=function(){var config,e;if(!W.embeds.initObserver){if(W.embeds.initObserver=elemMutationObserver(function(mutations){var addedNodes,embedElems,j,len,len1,m,mutation,node,ref2,ref3;for(embedElems=[],addedNodes=!1,(j=0,len=mutations.length);j<len;j++)for(mutation=mutations[j],0<(null==(ref2=mutation.addedNodes)?void 0:ref2.length)&&(addedNodes=!0),ref3=mutation.addedNodes||[],(m=0,len1=ref3.length);m<len1;m++)node=ref3[m],elemHasClass(node,"wistia_embed")&&embedElems.push(node);if(0<embedElems.length&&setTimeout(function(){return W.embeds.setup(embedElems)},10),addedNodes)return W.embeds._setupThrottled()}),config={subtree:!0,childList:!0},0<W.detect.ios.version||W.detect.safari)return onDocReady(function(){return W.embeds.initObserver.observe(document.body,config)});try{return W.embeds.initObserver.observe(document.body,config)}catch(error){return e=error,wlog.notice(e),onDocReady(function(){try{return W.embeds.initObserver.observe(document.body,config)}catch(error){return e=error,wlog.error(e)}})}}},W.embeds.unobserve=function(){var ref2;return null!=(ref2=W.embeds.initObserver)&&ref2.disconnect(),W.embeds.initObserver=null},W.embeds.poll=function(interval){return null==interval&&(interval=500),W.eventLoop.add("poll_setup_embeds",interval,function(){return W.embeds.setup()})},W.embeds.unpoll=function(){var ref2;return null==(ref2=W.eventLoop)?void 0:ref2.remove("poll_setup_embeds")},W.embeds.watch=function(){return W.embeds._dontWatch=!1,W.detect.mutationObserver&&!W.detect.trident?(W.embeds.observe(),W.embeds.poll(2e3)):W.embeds.poll()},W.embeds.dontWatch=function(){return W.embeds._dontWatch=!0,W.embeds.unwatch()},W.embeds.unwatch=function(){return W.embeds.unobserve(),W.embeds.unpoll()},W.flushInit=function(){var e,fn,j,len;if(window.wistiaInit){if(wistiaInit instanceof Array)for(j=0,len=wistiaInit.length;j<len;j++){fn=wistiaInit[j];try{"function"==typeof fn&&fn(W)}catch(error){e=error,wlog.error(e)}}else"function"==typeof wistiaInit&&wistiaInit(W);return window.wistiaInit=null}},W.addQueue=function(queueName){return W._queueNames.push(queueName),W.watchForInit()},W._queueNames=["_wq","wistiaInitQueue"],W._wqBoundListeners=[],W.flushInitQueue=function(){var e,fn,fn1,fnQueue,j,key,len,len1,m,queue,queueName,ran,ref2,results,thisElement,val;for(ref2=W._queueNames,results=[],(j=0,len=ref2.length);j<len;j++)if(queueName=ref2[j],queue=window[queueName],!!(queue&&queue instanceof Array&&0<queue.length)){for(fnQueue=[];0<queue.length;)if(thisElement=queue.shift(),!isObject(thisElement))"function"==typeof thisElement?function(thisElement){var fn;return fn=function fn(){return thisElement(W)},fnQueue.push(fn)}(thisElement):W.notice(queueName+": Don't know what to do with "+thisElement+", ignoring.");else if(thisElement.revoke&&W.revokeQueueListener(thisElement.revoke),thisElement.__unbinds||(thisElement.__unbinds=[]),thisElement.id)ran=!1,thisElement.options&&("_all"===thisElement.id?(W.options(thisElement.options),ran=!0):(W.options(thisElement.id,thisElement.options),ran=!0)),function(thisElement){var args,baseArgs;return baseArgs="_all"===thisElement.id?[]:[thisElement.id],thisElement.onFind&&(args=baseArgs.concat([function(video){return thisElement.onFind(video)}]),thisElement.__unbinds=thisElement.__unbinds.concat(W.api.apply(W,args)),ran=!0),thisElement.onHasData&&(args=baseArgs.concat([function(video){return video.hasData(function(){return thisElement.onHasData(video)})}]),thisElement.__unbinds=thisElement.__unbinds.concat(W.api.apply(W,args)),ran=!0),thisElement.onEmbedded&&(args=baseArgs.concat([function(video){return video.embedded(function(){return thisElement.onEmbedded(video)})}]),thisElement.__unbinds=thisElement.__unbinds.concat(W.api.apply(W,args)),ran=!0),thisElement.onReady&&(args=baseArgs.concat([function(video){return video.ready(function(){return thisElement.onReady(video)})}]),thisElement.__unbinds=thisElement.__unbinds.concat(W.api.apply(W,args)),ran=!0),ran?W._wqBoundListeners.push(thisElement):W.error("No initialization function provided for ID "+thisElement.id,thisElement)}(thisElement);else for(key in fn1=function fn1(thisElement,key,val){var fn,runWhenHasData;if("function"==typeof val)return runWhenHasData=function runWhenHasData(video){return video.hasData(function(){return val(video)})},fn=function fn(){return thisElement.__unbinds="_all"===key?thisElement.__unbinds.concat(W.api(runWhenHasData)):thisElement.__unbinds.concat(W.api(key,runWhenHasData)),W._wqBoundListeners.push(thisElement)},fnQueue.push(fn);if(isObject(val))return fn="_all"===key?function fn(){return W.options(val)}:function fn(){return W.options(key,val)},fnQueue.push(fn);if("__unbinds"===key||"revoke"===key);else return W.error("Unknown initialization object:",val,"Expected Object or Function.")},thisElement)val=thisElement[key],fn1(thisElement,key,val);for(m=0,len1=fnQueue.length;m<len1;m++){fn=fnQueue[m];try{"function"==typeof fn&&fn(W)}catch(error){e=error,wlog.error(e)}}results.push(queue.length=0)}return results},W.getInitQueueListeners=function(){return assign([],W._wqBoundListeners)},W.revokeQueueListener=function(listener){var j,len,len1,m,ref2,results,toRevoke,u;for(toRevoke=listener instanceof Array?listener:[listener],results=[],(j=0,len=toRevoke.length);j<len;j++){if(listener=toRevoke[j],listener.__unbinds){for(ref2=listener.__unbinds,m=0,len1=ref2.length;m<len1;m++)u=ref2[m],"function"==typeof u&&u();delete listener.__unbinds}results.push(W._wqBoundListeners=W._wqBoundListeners.filter(function(l){return l!==listener}))}return results},W.watchForInit=function(){if(null==W._pollInit&&(W._pollInit=function(){return W.flushInitQueue(),W.flushInit()}),W._pollInit(),W.eventLoop)return W.eventLoop.unpause("poll_init"),W.eventLoop.add("poll_init",500,W._pollInit)},W.api=function(matcher,fn){var all,apiHandles,container,handle,index,j,len,query,ref2,ref3,ref4;if(null!=matcher){if(fn)return W.api.onFind(matcher,fn);if("function"==typeof matcher)return W.api.onFind(matcher);if("string"!=typeof matcher)"number"==typeof matcher?(index=matcher,all=W.api.all(),0>index&&(index=all.length+index),container=(null==(ref4=all[index])?void 0:ref4.container)||null):window.HtmlElement&&matcher instanceof HtmlElement?container=matcher:W.error("W.api: Unrecognized matcher",matcher);else if(query=matcher,container=document.getElementById(query),!container)for(apiHandles=W.api.all(),j=0,len=apiHandles.length;j<len;j++)if(handle=apiHandles[j],0===(null==(ref2=handle.hashedId())?void 0:ref2.indexOf(query))||0===(null==(ref3=handle.container.id)?void 0:ref3.indexOf(query))){container=handle.container;break}return(null==container?void 0:container.wistiaApi)&&(container.wistiaApi instanceof W.PublicApi||W.IframeApi&&container.wistiaApi instanceof W.IframeApi)?container.wistiaApi:null}return W.api.all()[0]||null},W.api.all=function(){return W.api._apiHandles().concat(W.api._iframeHandles())},W.api._apiHandles=function(){return W.embeds.initialized()},W.api._apiHandlesByDomOrder=function(){var c,containers,j,len,results;for(containers=W.embeds.api("wistia_embed_initialized"),results=[],(j=0,len=containers.length);j<len;j++)c=containers[j],c.wistiaApi&&c.wistiaApi instanceof W.PublicApi&&results.push(c.wistiaApi);return results},W.api._iframeHandles=function(){var handle,ref2,results,signature;for(signature in ref2=W._data.iframe_api,results=[],ref2)handle=ref2[signature],results.push(handle);return results},W.api.onFind=function(matcher,fn){var runIfMatch,unbinds;return"function"==typeof matcher&&(fn=matcher,matcher=null),runIfMatch=function runIfMatch(video){return(null===matcher||W.api(matcher)===video)&&(fn(video),!0)},wistiaEmbeds.each(runIfMatch),unbinds=[wistiaEmbeds.on("initembed",runIfMatch),wistiaEmbeds.on("afterreplace",runIfMatch)],function(_this){return function(){var j,len,results,u;for(results=[],j=0,len=unbinds.length;j<len;j++)u=unbinds[j],results.push(u());return results}}(this)},W._asyncInitSoonAfterLoad=function(delay){return null==delay&&(delay=10),setTimeout(function(){var e;try{return W.embeds.setup(),W.embeds._dontWatch||W.embeds.watch(),W.watchForInit()}catch(error){return e=error,wlog.error(e)}},delay)},W._initializers.initAsyncEmbeds=function(){var base1,base2,ref2;return W.embeds.notEmbedding=new StopGo,W.embeds.notEmbedding(!0),null==W._data&&(W._data={}),null==(base1=W._data).video&&(base1.video={}),null==(base2=W._data).iframe_api&&(base2.iframe_api={}),window._inWistiaIframe?setTimeout(function(){return W.watchForInit()},10):(W._asyncInitSoonAfterLoad(),W._asyncInitSoonAfterLoad(500),null==(ref2=W.eventLoop)?void 0:ref2.pause("poll_init"))},W._destructors.destroyAsyncEmbeds=function(){var ref2,ref3;return clearTimeouts("embeds_setup"),null!=(ref2=W.eventLoop)&&ref2.remove("poll_init"),null==(ref3=W.embeds)?void 0:ref3.unwatch()}})(Wistia);

/***/ }),

/***/ 110:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

(function(W){var clearTimeouts,doTimeout,eV1Protocol,merge,proto,ref,seqId;return eV1Protocol=__webpack_require__(14).eV1Protocol,proto=__webpack_require__(16).proto,ref=__webpack_require__(33),doTimeout=ref.doTimeout,clearTimeouts=ref.clearTimeouts,seqId=__webpack_require__(8).seqId,merge=__webpack_require__(17).merge,W.BandwidthTest=function(){function BandwidthTest(opt){this.opt=opt,this.opt=merge({minKbps:2500,timeoutLength:4e3,freshFor:36e5},this.opt),this.opt.uuid||(this.opt.uuid=seqId("bandwidth_test_"))}return BandwidthTest.prototype.start=function(){var endOffset,randIndex,ref1,startOffset;return null!=(ref1=this._testXhr)&&ref1.abort(),this._testStart=new Date().getTime(),this._testXhr=new XMLHttpRequest,this._testXhr.open("GET",this.testFileUrl(),!0),randIndex=Math.floor(100*Math.random()),startOffset=1e6*randIndex,endOffset=startOffset+999999,this._testXhr.setRequestHeader("Range","bytes="+startOffset+"-"+endOffset),doTimeout(this.uuid+".cancel_bandwidth_test",function(_this){return function(){return _this.trigger("timeout"),_this.fail()}}(this),this.opt.timeoutLength),this._testDataLoaded=0,this._onTestXhrProgress=function(_this){return function(event){return _this._testDataLoaded=event.loaded,_this.trigger("progress",event)}}(this),this._testXhr.addEventListener("progress",this._onTestXhrProgress),this._onTestXhrLoaded=function(_this){return function(){return _this.succeed()}}(this),this._testXhr.addEventListener("load",this._onTestXhrLoaded),this._testXhr.send(null),this.trigger("started")},BandwidthTest.prototype.fail=function(){return this._sampleKbps(),this._supportsHd=!1,this.saveResult(),this.trigger("failed"),this.end()},BandwidthTest.prototype.succeed=function(){if(this._sampleKbps(),this._supportsHd=!0,this.saveResult(),this.trigger("succeeded"),this.end(),this._suspiciouslyFast())return this._reportSuspiciousBandwidthTest()},BandwidthTest.prototype._reportSuspiciousBandwidthTest=function(){var e,ref1,ref2;try{if(this._suspiciouslyFast())return W.Metrics.count("player/suspicious-bandwidth-test",1,{bw_test_time:this._testTime,visitor_key:W.visitorKey.value(),location:("undefined"!=typeof location&&null!==location?null==(ref1=location.protocol)?void 0:ref1.length:void 0)&&("undefined"!=typeof location&&null!==location?null==(ref2=location.hostname)?void 0:ref2.length:void 0)?location.protocol+"//"+location.hostname:null,connection_type:W.Metrics.connectionType(),agent:navigator.userAgent})}catch(error){return e=error,W.error(e)}},BandwidthTest.prototype._suspiciouslyFast=function(){return .05>this._testTime},BandwidthTest.prototype._sampleKbps=function(){return this._testEnd=new Date().getTime(),this._testTime=(this._testEnd-this._testStart)/1e3,this._kbps=8*this._testDataLoaded/1e3/this._testTime},BandwidthTest.prototype.endEarly=function(){return null==this._supportsHd&&null!=this._testDataLoaded?(this._sampleKbps(),this._supportsHd=!(1<this._testTime)||this._kbps>=this.opt.minKbps,this.trigger("ended-early"),this.end()):(this.end(),this.trigger("ended-early"))},BandwidthTest.prototype.end=function(){var ref1,ref2,ref3;return this._onTestXhrLoaded&&null!=(ref1=this._testXhr)&&ref1.removeEventListener("load",this._onTestXhrLoaded),this._onTestXhrProgress&&null!=(ref2=this._testXhr)&&ref2.removeEventListener("progress",this._onTestXhrProgress),null!=(ref3=this._testXhr)&&ref3.abort(),this._testXhr=null,clearTimeouts(this.uuid+".cancel_bandwidth_test"),this.trigger("ended")},BandwidthTest.prototype.testFileUrl=function(){return this.opt.testFileUrl||("https:"===proto()?"https://embed-ssl.wistia.com/deliveries/6992339c876a95a37250fbe5b0a0eaecca3018a5/file.jpg?bust=2015-12-29a":"http://embed.wistia.com/deliveries/76a57ca47a1978a834d82dcf7eeb03a6.bin?bust=2015-12-29a")},BandwidthTest.prototype.saveKey=function(){return this.opt.saveKey||"bandwidth_test"},BandwidthTest.prototype.saveResult=function(){return W.localStorage(this.saveKey(),{updatedAt:new Date().getTime(),supportsHd:this._supportsHd,clientKbps:this._kbps})},BandwidthTest.prototype.savedResult=function(){return W.localStorage(this.saveKey())},BandwidthTest.prototype.isFresh=function(){var elapsed,ref1;return elapsed=new Date().getTime()-((null==(ref1=this.savedResult())?void 0:ref1.updatedAt)||0),elapsed<this.opt.freshFor},BandwidthTest.prototype.supportsHd=function(){return this._supportsHd||!1},BandwidthTest}(),W.mixin(W.BandwidthTest.prototype,W.bindable)})(Wistia);

/***/ }),

/***/ 116:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

var core;core=__webpack_require__(27),Wistia.base64||(Wistia.base64={}),Wistia.base64.decode||(Wistia.base64._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Wistia.base64.decode=core.base64Decode);

/***/ }),

/***/ 115:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

var core;core=__webpack_require__(27),Wistia.base64||(Wistia.base64={}),Wistia.base64.decode||(Wistia.base64._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Wistia.base64.encode=core.base64Encode);

/***/ }),

/***/ 95:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

var cachedDetect;cachedDetect=__webpack_require__(20).cachedDetect,function(W){return W._initializers.initDetect=function(){if(!W.detect)return W.detect=cachedDetect()}}(Wistia);

/***/ }),

/***/ 97:
/***/ (function() {

(function(Wistia){var Judy,Promise,W,fetchMedia,handleReceivedMediaData,mediaDataTransforms,merge;if(W=Wistia,!W.embed)return Judy=W.lib("player/lib/judy"),Promise=W.lib("promiscuous"),fetchMedia=W.lib("player/lib/media_data").fetchMedia,mediaDataTransforms=W.lib("player/lib/media-data-transforms").mediaDataTransforms,merge=W.lib("utilities/obj").merge,W._embed={},W.embed=function(media,options){var apiHandle,hashedId,transformOptions;return null==options&&(options={}),W.info("Wistia.embed",media,options),"string"==typeof media?hashedId=media:media.type&&"ab-test"===media.type?(hashedId=media.hashedId,[media.control,media.variant].filter(Boolean).forEach(function(mediaResp){return handleReceivedMediaData(mediaResp,options)}),W.cacheAbTest(media.hashedId,media)):(hashedId=media.hashedId,transformOptions=merge({},media.embed_options,options),mediaDataTransforms(media,transformOptions),W.cacheMedia(hashedId,media)),apiHandle=new W.PublicApi(hashedId,options),apiHandle},W.embedEngine=function(container,media,options,judyContext){var hashedId;return null==options&&(options={}),null==judyContext&&(judyContext={}),hashedId="string"==typeof media?media:media.hashedId,new Promise(function(resolve){var doEmbed;return doEmbed=function doEmbed(mediaData){var ctx,enginePath;return ctx=Judy.buildContext(judyContext),enginePath=Judy.bestUsableEngine(ctx,mediaData,options),W.asyncRequire(enginePath).then(function(EngineClass){var engine;return engine=new EngineClass(container,mediaData,merge({duration:mediaData.duration},options)),resolve(engine)})},"string"==typeof media?fetchMedia(hashedId,function(mediaData){return mediaDataTransforms(mediaData,options),W.cacheMedia(hashedId,mediaData),doEmbed(mediaData)},options):doEmbed(media)})},handleReceivedMediaData=function handleReceivedMediaData(m,options){return mediaDataTransforms(m.media,options),W.cacheMedia(m.media.hashedId,m.media)}})(Wistia);

/***/ }),

/***/ 128:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

var extend=function extend(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;(function(W){var doTimeout,seqId,wData;if(wData=__webpack_require__(101).wData,doTimeout=__webpack_require__(33).doTimeout,seqId=__webpack_require__(8).seqId,!W.EmbedListener)return W.EmbedListener=function(superClass){function EmbedListener(){this.uuid=seqId(),this.bindHandles(),this.bind("down",function(_this){return function(){return _this.info("got down event, prune and rebind handles"),doTimeout("prune_zombies_later",function(){return _this.pruneZombies(),_this.bindHandles()})}}(this)),this.bind("up",function(_this){return function(video){return _this.info("got up event, set _bound=false for",video),video._bound=!1,_this.bindHandles()}}(this))}return extend(EmbedListener,superClass),EmbedListener.prototype.bindHandles=function(){var allUnboundHandles,handle,j,len,results;for(allUnboundHandles=this.allUnboundHandles(),this.info("bindHandles",allUnboundHandles),results=[],(j=0,len=allUnboundHandles.length);j<len;j++)handle=allUnboundHandles[j],this.info("bind to all events for",handle),handle._bound=!0,results.push(this.push(handle));return results},EmbedListener.prototype.pruneZombies=function(){var handle,i,j,k,l,len,len1,ref,ref1,results,saved;for(this.info("pruneZombies"),saved=[],ref=this.allBoundHandles(),(j=0,len=ref.length);j<len;j++)handle=ref[j],handle.looksDown()?this.info("prune zombie",handle):saved.push(handle);for(i=k=0,ref1=this.length;0<=ref1?k<=ref1:k>=ref1;i=0<=ref1?++k:--k)delete this[i];for(this.length=0,results=[],(l=0,len1=saved.length);l<len1;l++)handle=saved[l],results.push(this.push(handle));return results},EmbedListener.prototype.allBoundHandles=function(){var handle,j,len,ref,result;for(result=[],ref=this.allHandles(),(j=0,len=ref.length);j<len;j++)handle=ref[j],handle._bound&&result.push(handle);return result},EmbedListener.prototype.allUnboundHandles=function(){var handle,j,len,ref,result;for(result=[],ref=this.allHandles(),(j=0,len=ref.length);j<len;j++)handle=ref[j],handle._bound||result.push(handle);return result},EmbedListener.prototype.allHandles=function(){return this.apiHandles().concat(this.iframeApiHandles())},EmbedListener.prototype.iframeApiHandles=function(){var iframe,j,len,ref,result;for(this.iframes||(this.iframes=document.getElementsByTagName("iframe")),result=[],ref=this.iframes,(j=0,len=ref.length);j<len;j++)iframe=ref[j],iframe.wistiaApi&&!(iframe.wistiaApi instanceof W.IframeApiProxy)&&result.push(iframe.wistiaApi);return result},EmbedListener.prototype.apiHandles=function(){var handle,result,uuid,vidHash;if(result=[],window.Wistia)for(uuid in vidHash=wData("video"),vidHash)handle=vidHash[uuid],result.push(handle);return result},EmbedListener.prototype.each=function(fn){var handle,j,len,ref,results;for(ref=this.allBoundHandles(),results=[],(j=0,len=ref.length);j<len;j++)handle=ref[j],results.push(fn(handle));return results},EmbedListener.prototype.onFind=function(fn){var runWhenUp;return runWhenUp=function(_this){return function(video){return video.up(function(){return _this.info("onFind",video),fn(video),video.unbind})}}(this),this.each(runWhenUp),this.bind("initembed",runWhenUp)},EmbedListener}(Array),W.mixin(W.EmbedListener.prototype,W.bindable),W.mixin(W.EmbedListener.prototype,W.logHelpers),W._initializers.initEmbedShepherd=function(){return window.wistiaEmbeds?(W.info("window.wistiaEmbeds already exists, call bindHandles"),"function"==typeof wistiaEmbeds.bindHandles&&wistiaEmbeds.bindHandles()):(W.info("initialize embed shepherd"),window.wistiaEmbeds=new W.EmbedListener),W.info("call window.wistiaEmbedShepherdReady()"),"function"==typeof window.wistiaEmbedShepherdReady?window.wistiaEmbedShepherdReady():void 0},W._destructors.destroyEmbedShepherd=function(){var ref;return null!=(ref=window.wistiaEmbeds)&&ref.each(function(video){return video._bound=!1}),window.wistiaEmbeds=null}})(Wistia);

/***/ }),

/***/ 131:
/***/ (function() {

(function(W){return W._initializers.initSpecificTime=function(){var e,foundAVideo,hashedId,ref,time;try{return parent===self?(time=location.href.match(/[?&]wtime=([\dhms]*)/),hashedId=null==(ref=location.href.match(/[?&]wvideo(id)?=([^&]+)/))?void 0:ref[2],!(2<=(null==time?void 0:time.length)))||W._specificTimeInitiated?void 0:(W._specificTimeInitiated=!0,foundAVideo=!1,wistiaEmbeds.onFind(function(video){return hashedId&&video.hashedId()!==hashedId||foundAVideo?void 0:(foundAVideo=!0,video.embedded(function(){var ref1;return null==(ref1=video.popover)?void 0:ref1.show()}),video.time(time[1]).play())})):void 0}catch(error){return e=error,W.error(e),W._specificTimeInitiated=!1}}})(Wistia);

/***/ }),

/***/ 96:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

(function(Wistia){var W,globalEventLoop,ref;if(W=Wistia,globalEventLoop=__webpack_require__(47).globalEventLoop,null==(ref=W._initializers)||!ref.initEventLoop)return W._initializers.initEventLoop=function(){return W.eventLoop=globalEventLoop},W._destructors.destroyEventLoop=function(){var ref1;return null!=(ref1=W.eventLoop)&&ref1.stop(),W.eventLoop=null}})(Wistia);

/***/ }),

/***/ 134:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

(function(W){return W.featureEvent?void 0:W.featureEvent=__webpack_require__(135)})(Wistia);

/***/ }),

/***/ 109:
/***/ (function() {

(function(W){var Elem;return Elem=W.lib("player/lib/elem"),null==W._onFullscreenChange&&(W._onFullscreenChange=function(){return Elem.fullscreenElement()?W.trigger("enterfullscreen",Elem.fullscreenElement()):W.trigger("cancelfullscreen")}),W._initializers.initFullscreenTriggers=function(){return Elem.elemRebind(document,"mozfullscreenchange",W._onFullscreenChange),Elem.elemRebind(document,"webkitfullscreenchange",W._onFullscreenChange),Elem.elemRebind(document,"MSFullscreenChange",W._onFullscreenChange),Elem.elemRebind(document,"fullscreenchange",W._onFullscreenChange)},W._destructors.destroyFullscreenTriggers=function(){return Elem.elemUnbind(document,"mozfullscreenchange",W._onFullscreenChange),Elem.elemUnbind(document,"webkitfullscreenchange",W._onFullscreenChange),Elem.elemUnbind(document,"MSFullscreenChange",W._onFullscreenChange),Elem.elemUnbind(document,"fullscreenchange",W._onFullscreenChange)}})(Wistia);

/***/ }),

/***/ 105:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}(function(W){var isObject,merge,ref;if(ref=__webpack_require__(17),isObject=ref.isObject,merge=ref.merge,!W.generate)return W.generate={},W.generate.html=function(hash){var attr,attributes,childNodes,entry,i,j,key,len,len1,prop,result,tagName,val,value;if(/string|number|boolean/.test(_typeof(hash)))return hash.toString();if(hash instanceof Array){for(result="",i=0,len=hash.length;i<len;i++)entry=hash[i],result+=W.generate.html(entry);return result}if("object"!==_typeof(hash))return hash.toString();for(key in attributes=[],hash)val=hash[key],"tagName"===key?tagName=val:"childNodes"===key?childNodes=val:attributes.push({key:key,val:val});for(tagName||(tagName="div"),result="<"+tagName,(j=0,len1=attributes.length);j<len1;j++)attr=attributes[j],"style"===attr.key&&isObject(attr.val)&&(attr.val=function(){var ref1,results;for(prop in ref1=attr.val,results=[],ref1)value=ref1[prop],results.push(prop.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()+":"+value);return results}().join(";")+";"),result+=" "+attr.key+"=\""+attr.val+"\"";return /^(br|hr|img|link|meta|input)$/i.test(tagName)?result+=" />":(result+=">",childNodes&&("string"==typeof childNodes?result+=childNodes:"object"===_typeof(childNodes)&&(result+=W.generate.html(childNodes))),result+="</"+tagName+">"),result},W.generate.stillWidth=function(options){var availableStillWidths,i,j,len,len1,potentialStillWidths,ref1,width;for(potentialStillWidths=[640,960,1280,1920,3840],3840>options.stillAssetWidth&&potentialStillWidths.push(options.stillAssetWidth),availableStillWidths=[],(i=0,len=potentialStillWidths.length);i<len;i++)width=potentialStillWidths[i],width<=options.stillAssetWidth&&availableStillWidths.push(width);for(ref1=availableStillWidths.sort(function(a,b){return a-b}),j=0,len1=ref1.length;j<len1;j++)if(width=ref1[j],options.videoWidth<=width)return width;return Math.max.apply(Math,availableStillWidths)},W.generate.relativeBlockCss=function(width,height){return null==width&&(width="100%"),null==height&&(height="100%"),"display:inline-block;*display:inline;height:"+height+";line-height:normal;margin:0;padding:0;position:relative;vertical-align:top;width:"+width+";zoom:1;"},W.generate.video=function(embedType,video,options){return options=merge({},video.params,options,{uuid:video.uuid,videoWidth:video.videoWidth(),videoHeight:video.videoHeight()}),"flash"===embedType?W.generate.flashEmbedCode(video._mediaData,options):"html5"===embedType?W.generate.html5EmbedElem(video._mediaData,options):"romulus"===embedType?W.generate.romulusEmbedElem(video._mediaData,options):"external"===embedType?W.generate.externalEmbedCode(video._mediaData,options):"flashUrl"===embedType?W.generate.flashUrl(video._mediaData,options):void 0}})(Wistia);

/***/ }),

/***/ 123:
/***/ (function() {

(function(W){var addInlineCss,elemAppend,elemFromObject,elemHeight,elemRemove,elemStyle,elemWidth,ref,seqId;ref=W.lib("player/lib/elem"),addInlineCss=ref.addInlineCss,elemAppend=ref.elemAppend,elemFromObject=ref.elemFromObject,elemHeight=ref.elemHeight,elemRemove=ref.elemRemove,elemStyle=ref.elemStyle,elemWidth=ref.elemWidth,seqId=W.lib("utilities/seqid").seqId;W.gridify||(W.gridifyCss=function(gridId){var containerId;return containerId=gridId.replace(/_grid$/,""),"#"+gridId+"_wrapper{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;font-family:Arial,sans-serif;font-size:14px;height:100%;position:relative;text-align:left;width:100%;}\n#"+gridId+"_wrapper *{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}\n#"+gridId+"_above{position:relative;}\n#"+gridId+"_main{display:block;height:100%;position:relative;}\n#"+gridId+"_behind{height:100%;left:0;position:absolute;top:0;width:100%;}\n#"+gridId+"_center{height:100%;overflow:hidden;position:relative;width:100%;}\n#"+gridId+"_front{display:none;height:100%;left:0;position:absolute;top:0;width:100%;}\n#"+gridId+"_top_inside{position:absolute;left:0;top:0;width:100%;}\n#"+gridId+"_top{width:100%;position:absolute;bottom:0;left:0;}\n#"+gridId+"_bottom_inside{position:absolute;left:0;bottom:0;width:100%;}\n#"+gridId+"_bottom{width:100%;position:absolute;top:0;left:0;}\n#"+gridId+"_left_inside{height:100%;position:absolute;left:0;top:0;}\n#"+gridId+"_left{height:100%;position:absolute;right:0;top:0;}\n#"+gridId+"_right_inside{height:100%;right:0;position:absolute;top:0;}\n#"+gridId+"_right{height:100%;left:0;position:absolute;top:0;}\n#"+gridId+"_below{position:relative;}"},W.gridifyHtml=function(gridId){return{id:gridId+"_wrapper",childNodes:[{id:gridId+"_above"},{id:gridId+"_main",childNodes:[{id:gridId+"_behind"},{id:gridId+"_center"},{id:gridId+"_front"},{id:gridId+"_top_inside",childNodes:{id:gridId+"_top"}},{id:gridId+"_bottom_inside",childNodes:{id:gridId+"_bottom"}},{id:gridId+"_left_inside",childNodes:{id:gridId+"_left"}},{id:gridId+"_right_inside",childNodes:{id:gridId+"_right"}}]},{id:gridId+"_below"}]}},W.createGrid=function(video,options){var grid;return grid=W.createGridSkeleton(),W.initGridEventListeners(grid),W.initGridDimensions(video,grid,options),grid},W.createGridSkeleton=function(){var gridCss,gridId,gridRoot,i,len,result,sector,sectors;for(gridId=seqId("wistia_grid_"),gridRoot=elemFromObject(W.gridifyHtml(gridId)),gridCss=addInlineCss(gridRoot,W.gridifyCss(gridId)),result={},result.css=gridCss,result.root=gridRoot,elemStyle(gridRoot,{display:"none"}),elemAppend(document.body,gridRoot),sectors=["wrapper","main","above","below","top","right","bottom","left","top_inside","right_inside","bottom_inside","left_inside","front","center","behind"],(i=0,len=sectors.length);i<len;i++)sector=sectors[i],result[sector]=document.getElementById(gridId+"_"+sector);return elemRemove(gridRoot),elemStyle(gridRoot,{display:"block"}),result},W.initGridEventListeners=function(grid){return grid.center.addEventListener("scroll",function(){return grid.center.scrollTop=0})},W.initGridDimensions=function(video,grid,extra){var chrome,container,options;if(null==extra&&(extra={}),!1!==extra.initDimensions)return container=video._embedContainer,chrome=video.chrome,options=video._opts,chrome.style.height=elemHeight(container)+"px",grid.main.style.width=elemWidth(container)+"px"},W.gridify=function(options,container){var gridId,i,len,ref1,result,sector;for(result={},gridId=container.id+"_grid",container.innerHTML=W.generate.html(W.gridifyHtml(gridId)),ref1=["wrapper","main","above","below","top","right","bottom","left","top_inside","right_inside","bottom_inside","left_inside","front","center","behind"],(i=0,len=ref1.length);i<len;i++)sector=ref1[i],result[sector]=document.getElementById(gridId+"_"+sector);return addInlineCss(result.wrapper,W.gridifyCss(gridId)),result.wrapper.style.height=elemHeight(container)+"px",result.main.style.width=elemWidth(container)+"px",result},W.isGridElem=function(grid,elem){var sectionElem,sectionName;for(sectionName in grid)if(sectionElem=grid[sectionName],elem===sectionElem)return!0;return!1},W.grid={},W.grid.allNodesHidden=function(nodes){var i,len,node;if(0===nodes.length)return!0;for(i=0,len=nodes.length;i<len;i++)if(node=nodes[i],node.style&&"none"!==node.style.display)return!1;return!0},W.grid.zeroEmptySections=function(video){var elem,i,len,ref1,results,section;for(ref1=["top","bottom","left","right","above","below"],results=[],(i=0,len=ref1.length);i<len;i++)section=ref1[i],elem=video.grid[section],elem.childNodes.length?W.grid.allNodesHidden(elem.childNodes)?(elem.style.height="0px",elem.style.fontSize="0px",elem.style.lineHeight="0px",results.push(elem.isEmpty=!0)):(elem.style.height="",elem.style.fontSize="",results.push(elem.style.lineHeight="")):(elem.appendChild(document.createTextNode(" ")),elem.style.height="0px",elem.style.fontSize="0px",elem.style.lineHeight="0px",results.push(elem.isEmpty=!0));return results},W.grid.wrapperHeight=function(video){var wrapper,wrapperHeight;return wrapper=video.grid.wrapper,wrapperHeight=elemHeight(wrapper),wrapperHeight},W.grid.wrapperWidth=function(video){var wrapper,wrapperWidth;return wrapper=video.grid.wrapper,wrapperWidth=elemWidth(wrapper),wrapperWidth},W.grid.fitVertical=function(video){var bh,grid,main,newHeight,th,wrapper;video._opts.dontFit||(W.grid.zeroEmptySections(video),grid=video.grid,main=grid.main,wrapper=grid.wrapper,th=Math.max(elemHeight(grid.above),elemHeight(grid.top)),bh=Math.max(elemHeight(grid.below),elemHeight(grid.bottom)),newHeight=Math.max(0,W.grid.wrapperHeight(video)-th-bh),main.style.height=newHeight+"px",0===elemWidth(grid.left)&&(main.style.left="0px"),main.style.marginTop=elemHeight(grid.top)+"px")},W.grid.fitHorizontal=function(video){var grid,lw,main,newWidth,rw,wrapper;video._opts.dontFit||(W.grid.zeroEmptySections(video),grid=video.grid,wrapper=grid.wrapper,main=grid.main,lw=elemWidth(grid.left),rw=elemWidth(grid.right),newWidth=W.grid.wrapperWidth(video)-lw-rw,main.style.width=newWidth+"px",main.style.left=lw+"px")},W.grid.fit=function(video,position){/left|right/.test(position)?W.grid.fitHorizontal(video):/top|bottom|above|below/.test(position)&&W.grid.fitVertical(video),video.ieSizeHack()})})(Wistia);

/***/ }),

/***/ 127:
/***/ (function() {

var slice=[].slice;(function(W){var IframeApiProxy,Promise,elemRebind,elemUnbind,k,ref,ref1,v;if(Promise=W.lib("promiscuous"),ref=W.lib("player/lib/elem"),elemRebind=ref.elemRebind,elemUnbind=ref.elemUnbind,W.iframeInit||(W.iframeInit=function(media,options){return W.asyncRequire("insideIframe.js").then(function(iframeInit){return iframeInit(media,options)})}),!W.IframeApiProxy){for(k in IframeApiProxy=function(){function IframeApiProxy(iframe1){this.iframe=iframe1,this.loadIframeApi()}return IframeApiProxy.prototype.loadIframeApi=function(){return new Promise(function(_this){return function(resolve){return setTimeout(function(){return W.asyncRequire("iframeApi.js").then(function(_this){return function(){return _this._loaded=!0,resolve()}}(this))},0)}}(this))},IframeApiProxy.prototype.proxyFn=function(){var args,methodName,ref1;return methodName=arguments[0],args=2<=arguments.length?slice.call(arguments,1):[],this._loaded?(ref1=this.iframe.wistiaApi)[methodName].apply(ref1,args):(this.loadIframeApi().then(function(_this){return function(){var ref2;if(_this.iframe.wistiaApi!==_this)return(ref2=_this.iframe.wistiaApi)[methodName].apply(ref2,args)}}(this)),this)},IframeApiProxy.prototype._hasImpl=function(){var args;return args=1<=arguments.length?slice.call(arguments,0):[],this.proxyFn.apply(this,["_hasImpl"].concat(slice.call(args)))},IframeApiProxy.prototype.hasData=function(){var args;return args=1<=arguments.length?slice.call(arguments,0):[],this.proxyFn.apply(this,["hasData"].concat(slice.call(args)))},IframeApiProxy.prototype.embedded=function(){var args;return args=1<=arguments.length?slice.call(arguments,0):[],this.proxyFn.apply(this,["embedded"].concat(slice.call(args)))},IframeApiProxy.prototype.ready=function(){var args;return args=1<=arguments.length?slice.call(arguments,0):[],this.proxyFn.apply(this,["ready"].concat(slice.call(args)))},IframeApiProxy.prototype.up=function(){var args;return args=1<=arguments.length?slice.call(arguments,0):[],this.proxyFn.apply(this,["up"].concat(slice.call(args)))},IframeApiProxy.prototype.down=function(){return this.proxyFn.apply(this,["down"].concat(slice.call(args)))},IframeApiProxy}(),ref1=W.PublicApi.prototype,ref1)v=ref1[k],IframeApiProxy.prototype[k]||"function"!=typeof v||function(k){return IframeApiProxy.prototype[k]=function(){var args;return args=1<=arguments.length?slice.call(arguments,0):[],this.proxyFn.apply(this,[k].concat(slice.call(args)))}}(k);W.IframeApiProxy=IframeApiProxy}return null==W.maybeRequireIframeApi&&(W.maybeRequireIframeApi=function(){var i,iframe,len,results,wistiaIframes;if(wistiaIframes=document.querySelectorAll("iframe.wistia_embed,iframe[name=wistia_embed],iframe.wistia_playlist,iframe[name=wistia_playlist]"),0<wistiaIframes.length){for(results=[],i=0,len=wistiaIframes.length;i<len;i++)iframe=wistiaIframes[i],iframe.wistiaApi?results.push(void 0):results.push(iframe.wistiaIframeApiProxy=iframe.wistiaApi=new IframeApiProxy(iframe));return results}}),null==W.onIframePostMessage&&(W.onIframePostMessage=function(event){if("new-wistia-iframe"===event.data)return W.asyncRequire("iframeApi.js"),elemUnbind}),elemRebind(window,"message",W.onIframePostMessage),W.bind("ev1initend",function(){return W.maybeRequireIframeApi(),elemRebind(window,"message",W.onIframePostMessage)}),W.bind("ev1destroystart",function(){return elemUnbind(window,"message",W.onIframePostMessage)})})(Wistia);

/***/ }),

/***/ 137:
/***/ (function() {

(function(W){var initializeEveryTime,initializeOnce;return initializeOnce=W.initializeOnce=function(){return W._initializers.initDetect(),W._initializers.initWLog(),W._initializers.initVisitorKey(),W._initializers.initEventLoop(),W._initializers.initFullscreenTriggers(),W.define("E-v1.js",W),W.trigger("ev1initonce")},initializeEveryTime=W.initializeEveryTime=function(){var ref;return W.trigger("ev1initstart"),W._initializers.initEmbedShepherd(),W._initializers.initMux(),W._initializers.initAsyncEmbeds(),W._initializers.initEmbedLinks(),W._initializers.initSpecificTime(),W._initializers.initDefaultTranslation(),null!=(ref=W.eventLoop)&&ref.resync(),W.trigger("ev1initend")},W.destroy=function(){return W.trigger("ev1destroystart"),W._destructors.destroyAsyncEmbeds(),W._destructors.destroyEmbedShepherd(),W._destructors.destroyEmbedLinks(),W._destructors.destroyFullscreenTriggers(),W._destructors.destroyEventLoop(),W._destructors.destroyVisitorKey(),W._destructors.destroyWLog(),W._destructors.destroyMux(),W.trigger("ev1destroyend")},W.destroyGlobals=function(){var k,results,v;for(k in window.Wistia=null,window.wistiaApi=null,window.wistiaDispatch=null,window.wistiaBindIframes=null,window.wistiaEmbeds=null,window._wistiaElemId=null,window.wistiaInitQueue=null,window.wistiaInit=null,window.wistiaEmbedShepherdReady=null,results=[],window)v=window[k],/^wistiajson/.test(k)?results.push(window[k]=null):results.push(void 0);return results},W.reinitialize=function(){return W.destroy(),W.initializeOnce(),W.initializeEveryTime()},W._initialized||(W._initialized=!0,W.initializeOnce()),W.initializeEveryTime()})(Wistia);

/***/ }),

/***/ 132:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

(function(W){return W.Interpolation?void 0:W.Interpolation=__webpack_require__(92)})(Wistia);

/***/ }),

/***/ 122:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

(function(W){var lsModule;if(!W.localStorage)return lsModule=__webpack_require__(85),W.localStorage=lsModule.setOrGet,W.removeLocalStorage=lsModule.removeLocalStorage,W.dumpLocalStorage=lsModule.dumpLocalStorage,W._initializers.initLocalStorage=function(){return lsModule.init()},W._destructors.destroyLocalStorage=function(){return lsModule.uncache()}})(Wistia);

/***/ }),

/***/ 94:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

var slice=[].slice;(function(Wistia){var LOG_LEVELS,W,parseUrl,ref,wlog;if(W=Wistia,!W.wlog)return ref=__webpack_require__(19),wlog=ref.wlog,LOG_LEVELS=ref.LOG_LEVELS,parseUrl=__webpack_require__(16).parseUrl,W.wlog=wlog,W.log=wlog.error,W.error=wlog.error,W.warn=wlog.warn,W.notice=wlog.notice,W.info=wlog.info,W.debug=wlog.debug,W.logLevels=LOG_LEVELS,W.stacktrace=function(){var e;try{throw new Error("stacktrace")}catch(error){return e=error,e.stack}},W.logHelpers={_log:function _log(){var logFn,messages,type;return type=arguments[0],messages=2<=arguments.length?slice.call(arguments,1):[],logFn=W[type],messages=[].concat(this._logPrefix()).concat(messages),logFn.apply(null,messages)},_logPrefix:function _logPrefix(){return[this.constructor.name]},error:function error(){var messages;return messages=1<=arguments.length?slice.call(arguments,0):[],this._log.apply(this,["error"].concat(slice.call(messages)))},warn:function warn(){var messages;return messages=1<=arguments.length?slice.call(arguments,0):[],this._log.apply(this,["notice"].concat(slice.call(messages)))},notice:function notice(){var messages;return messages=1<=arguments.length?slice.call(arguments,0):[],this._log.apply(this,["notice"].concat(slice.call(messages)))},info:function info(){var messages;return messages=1<=arguments.length?slice.call(arguments,0):[],this._log.apply(this,["info"].concat(slice.call(messages)))},debug:function debug(){var messages;return messages=1<=arguments.length?slice.call(arguments,0):[],this._log.apply(this,["debug"].concat(slice.call(messages)))},log:function log(){var messages;return messages=1<=arguments.length?slice.call(arguments,0):[],this._log.apply(this,["error"].concat(slice.call(messages)))}},W._initializers.initWLog=function(){var level,pageUrl,ref1,ref2,ref3,ref4,ref5,ref6,referrerUrl,wgrep,wgrepv;if(pageUrl=parseUrl(location.href),document.referrer&&(referrerUrl=parseUrl(document.referrer)),((level=null==pageUrl||null==(ref1=pageUrl.params)?void 0:ref1.wlog)||top!==self&&(level=null==referrerUrl||null==(ref2=referrerUrl.params)?void 0:ref2.wlog))&&wlog.setLevel(level),((wgrep=null==pageUrl||null==(ref3=pageUrl.params)?void 0:ref3.wgrep)||(wgrep=null==referrerUrl||null==(ref4=referrerUrl.params)?void 0:ref4.wgrep))&&wlog.setGrep(new RegExp(wgrep,"i")),(wgrepv=null==pageUrl||null==(ref5=pageUrl.params)?void 0:ref5.wgrepv)||(wgrepv=null==referrerUrl||null==(ref6=referrerUrl.params)?void 0:ref6.wgrepv))return wlog.setGrepv(new RegExp(wgrepv,"i"))},W._destructors.destroyWLog=function(){return null==wlog?void 0:wlog.reset()}})(Wistia);

/***/ }),

/***/ 119:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

(function(W){var count,elemHeight,elemWidth,merge,metricsHost,ref,ref1,sample,send;if(!W.Metrics)return metricsHost=__webpack_require__(14).metricsHost,ref=__webpack_require__(32),send=ref.send,count=ref.count,sample=ref.sample,merge=__webpack_require__(17).merge,ref1=__webpack_require__(34),elemWidth=ref1.elemWidth,elemHeight=ref1.elemHeight,W.Metrics={count:count,sample:sample,send:send,videoCount:function videoCount(video,key,val,extraData){return null==val&&(val=1),this.videoSend(video,"count",key,val,extraData)},videoSample:function videoSample(video,key,val,extraData){return this.videoSend(video,"sample",key,val,extraData)},videoSend:function videoSend(video,type,key,val,extraData){return null==extraData&&(extraData={}),"function"==typeof video.hasData?video.hasData(function(_this){return function(){var bandwidth,currentAsset,ref10,ref11,ref12,ref13,ref14,ref2,ref3,ref4,ref5,ref6,ref7,ref8,ref9;if(bandwidth=("function"==typeof video.bandwidthTest?video.bandwidthTest().savedResult():void 0)||{},extraData=merge({location:("undefined"!=typeof location&&null!==location?null==(ref2=location.protocol)?void 0:ref2.length:void 0)&&("undefined"!=typeof location&&null!==location?null==(ref3=location.hostname)?void 0:ref3.length:void 0)?location.protocol+"//"+location.hostname:null,agent:navigator.userAgent,account_key:null==(ref4=video._mediaData)?void 0:ref4.accountKey,at:video.time(),video_id:video.hashedId(),embed_type:video.playerType,duration:video.duration(),client_kbps:bandwidth.clientKbps,supports_hd:bandwidth.supportsHd,autoplay:null!=(ref5=video._opts)&&ref5.autoPlay,in_iframe:top!==self,device_pixel_ratio:window.devicePixelRatio,window_width:elemWidth(window),window_height:elemHeight(window),video_width:video.videoWidth(),video_height:video.videoHeight(),visitor_key:null==(ref6=video._tracker)?void 0:ref6.visitorKey(),event_key:null==(ref7=video._tracker)?void 0:ref7.eventKey(),event_time_delta:null==(ref8=video._tracker)?void 0:ref8.timeDelta(),connection_type:_this.connectionType(),version:9,channel:W.channelName},extraData),/romulus|html5|vulcan/.test(video.playerType)&&(W.detect.trident?extraData.errorState=null==(ref9=video.elem())||null==(ref10=ref9.error)?void 0:ref10.code:extraData.errorState=null==(ref11=video.elem())?void 0:ref11.error),null!=video._cacheStatus&&(extraData.cache_status=video._cacheStatus),null!=video._assetServer&&(extraData.asset_server=video._assetServer),null!=video._cacheHit&&(extraData.cache_hit=video._cacheHit),video.inFullscreen&&(extraData.in_fullscreen=video.inFullscreen()),null==video._substream?(extraData.substream=null,extraData.adaptive=null,currentAsset=null==(ref12=video.data)?void 0:ref12.asset):(extraData.substream=video._substream.index,extraData.adaptive=video._substream.adaptive,extraData.current_level=video._substream.currentLevel,extraData.all_level_names=video._substream.allLevelNames,currentAsset=video._substream.asset,extraData.hls_error_counts=video._substream.hlsErrorCounts()),null!=currentAsset&&(extraData.asset_type=currentAsset.type,extraData.asset_slug=currentAsset.slug,extraData.bitrate=currentAsset.bitrate,extraData.asset_height=currentAsset.height,extraData.asset_width=currentAsset.width),0<(null==(ref13=video.videoElem)||null==(ref14=ref13.buffered)?void 0:ref14.length)&&(extraData.bufferedFrom0=video.videoElem.buffered.end(0)),null!=video._timeToFirstByte&&(extraData.time_to_first_byte=video._timeToFirstByte),extraData.buffered=null==video.totalBuffered?void 0:video.totalBuffered(),extraData.played=null==video.totalPlayed?void 0:video.totalPlayed(),_this.send(type,key,val,extraData),video._mediaData&&video._mediaData.accountKey&&video._mediaData.accountSpecificMetrics)return _this.send(type,video._mediaData.accountKey+"/"+key,val,extraData)}}(this)):void 0},countEvent:function countEvent(videoObj,eventName,statsName){var base;return statsName||(statsName=eventName),null==(base=this._private.countEventCallbacks)[statsName]&&(base[statsName]=this._private.mkCountEventCallback(eventName,statsName)),videoObj.rebind(eventName,this._private.countEventCallbacks[statsName])},countEventOnce:function countEventOnce(videoObj,eventName,statsName){var base;return statsName||(statsName=eventName),null==(base=this._private.countEventOnceCallbacks)[statsName]&&(base[statsName]=this._private.mkCountEventOnceCallback(eventName,statsName)),videoObj.rebind(eventName,this._private.countEventOnceCallbacks[statsName])},sampleEvent:function sampleEvent(videoObj,eventName,statsName){var base;return statsName||(statsName=eventName),null==(base=this._private.sampleEventCallbacks)[statsName]&&(base[statsName]=this._private.mkSampleEventCallback(eventName,statsName)),videoObj.rebind(eventName,this._private.sampleEventCallbacks[statsName])},countShowLoadingOnce:function countShowLoadingOnce(videoObj){var lastDuration;return lastDuration=-1,videoObj.bind("waiting",function(_this){return function(duration){return 2>lastDuration&&2<=duration?(_this.videoCount(videoObj,"player/show-loading/first",1),lastDuration=duration,videoObj.unbind):lastDuration=duration}}(this))},countShowLoadingAll:function countShowLoadingAll(videoObj){var lastDuration;return lastDuration=-1,videoObj.bind("waiting",function(_this){return function(duration){return 2>lastDuration&&2<=duration&&_this.videoCount(videoObj,"player/show-loading/all",1),lastDuration=duration}}(this)),videoObj.bind("done-waiting",function(){return lastDuration=-1})},countShowLoadingLongTimeOnce:function countShowLoadingLongTimeOnce(videoObj){var lastDuration;return lastDuration=-1,videoObj.bind("waiting",function(_this){return function(duration){return 5>lastDuration&&5<=duration?(_this.videoCount(videoObj,"player/show-loading-long-time/first",1),lastDuration=duration,videoObj.unbind):lastDuration=duration}}(this))},countShowLoadingLongTimeAll:function countShowLoadingLongTimeAll(videoObj){var lastDuration;return lastDuration=-1,videoObj.bind("waiting",function(_this){return function(duration){return 5>lastDuration&&5<=duration&&_this.videoCount(videoObj,"player/show-loading-long-time/all",1),lastDuration=duration}}(this)),videoObj.bind("done-waiting",function(){return lastDuration=-1})},assetBuckets:function assetBuckets(video){var asset,isMobile;return asset=video.engine?video.engine.currentAsset():video._currentAsset,isMobile=W.detect.iphone||W.detect.android||W.detect.blackberry||/mobile/i.test(navigator.userAgent),asset?isMobile?W.detect.iphone?["mobile","iphone"]:W.detect.android?["mobile","android"]:["mobile"]:/hls/.test(asset.type)?["hls"]:/md/.test(asset.type)?["md"]:/hd/.test(asset.type)?["hd"]:["sd"]:[]},connectionType:function connectionType(){var connection;return connection=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,null==connection?void 0:connection.type},sumTimeRanges:function sumTimeRanges(timeRanges){var i,j,ref2,sum;if(null==timeRanges)return null;for(sum=0,i=j=0,ref2=timeRanges.length;0<=ref2?j<ref2:j>ref2;i=0<=ref2?++j:--j)sum+=timeRanges.end(i)-timeRanges.start(i);return sum},millisecondsSince:function millisecondsSince(timeMsec){return new Date().getTime()-timeMsec},_private:{countEventCallbacks:{},mkCountEventCallback:function mkCountEventCallback(eventName,statsName){return function(event){return statsName||(statsName=eventName),W.Metrics.videoCount(this,"player/"+statsName,event)}},countEventOnceCallbacks:{},mkCountEventOnceCallback:function mkCountEventOnceCallback(eventName,statsName){return function(event){return statsName||(statsName=eventName),W.Metrics.videoCount(this,"player/"+statsName,event),this.unbind}},sampleEventCallbacks:{},mkSampleEventCallback:function mkSampleEventCallback(eventName,statsName){return function(event){return statsName||(statsName=eventName),W.Metrics.videoSample(this,"player/"+statsName,event)}}}}})(Wistia);

/***/ }),

/***/ 120:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

(function(W){var allow3rdParty,eV1Host,eV1Protocol,merge,ref,ref1,seqId,wData,wRemoveData;if(W.Plugin||(W.Plugin={}),!W.Plugin.Base)return(ref=__webpack_require__(14),eV1Host=ref.eV1Host,eV1Protocol=ref.eV1Protocol,allow3rdParty=__webpack_require__(99).allow3rdParty,merge=__webpack_require__(17).merge,ref1=__webpack_require__(101),wData=ref1.wData,wRemoveData=ref1.wRemoveData,seqId=__webpack_require__(8).seqId,W.Plugin.Base=function(){function Base(){this.pluginName="plugin",this}return Base.prototype.instances=function(){return wData(["plugins",this.pluginName,this.video.uuid])},Base.prototype.register=function(data){var target;return target=this.playlist||this.video||this.audio,target.plugins[this.uuid]=data,wData(["plugins",this.pluginName,target.uuid,this.uuid],data)},Base.prototype.remove=function(options){var target;if(null==options&&(options={}),target=this.playlist||this.video||this.audio,target.plugins[this.uuid]=null,wRemoveData(["plugins",this.pluginName,target.uuid,this.uuid]),target.plugins[this.uuid]===this&&delete target.plugins[this.uuid],target.plugin[this.pluginName]===this&&delete target.plugin[this.pluginName],!options.dontFit)return W.grid.fitHorizontal(target),W.grid.fitVertical(target)},Base.prototype.fit=function(){},Base.prototype.init=function(video,pluginOptions){return null==video.plugins&&(video.plugins={}),(null==video?void 0:video.playlist)?this.playlist=video:this.video=video,this.target=this.playlist||this.video||this.audio,this.options=pluginOptions||{},this.params=merge({},pluginOptions||{}),this.uuid=this.params.uuid||seqId("wistia_","_plugin")},Base}(),!W.plugin)?(W.plugin=function(name,callback){var ctx,initPlugin,initPluginNow,ref2,ref3,ref4;if((ctx=null==(ref2=W.pluginQueue)||null==(ref3=ref2[name])?void 0:ref3.shift())&&(initPluginNow=function initPluginNow(){var pluginHandle,ref4;return ctx.video.info("initializing plugin",name,ctx.options),pluginHandle=callback(ctx.video._impl||ctx.video,ctx.options)||!0,ctx.video.plugin[name]=pluginHandle,ctx.video._impl&&(ctx.video._impl.plugin[name]=pluginHandle),ctx.video.trigger("plugininitialized",name),null==(ref4=ctx.video._pluginStopGos)?void 0:"function"==typeof ref4[name]?ref4[name](!0,pluginHandle):void 0},initPlugin=function initPlugin(){return ctx.options.initBeforeHasData?initPluginNow():ctx.video.hasData(initPluginNow)},!0!==ctx.options.initBeforeHasData&&(null==(ref4=ctx.video)?void 0:ref4.looksDown())?(ctx.video.notice("W.plugin: delaying initialization of plugin until \"up\"",name,ctx.options),ctx.video.bind("up",function(){return initPlugin(),this.unbind})):ctx.video._implVersion===ctx.implVersion?initPlugin():ctx.video.notice("W.plugin impl changed, ignoring initialization",name,ctx.options)),!W.plugin[name])return W.plugin[name]=callback},W.plugin._prefetched={},W.plugin._inject=function(video,pluginName,options){var defaultSrc,pluginScripts;if(null==options&&(options={}),!1!==options.on)return defaultSrc=eV1Protocol()+"//"+eV1Host()+"/assets/external/"+pluginName+".js",pluginScripts=[{name:pluginName,options:options,src:options.src&&W.plugin._allow3rdParty(video.options)?options.src:defaultSrc,async:!0}],W.plugin._setFnForDefinedPlugins(video,pluginScripts),W.plugin._execQueue(video,pluginScripts)},W.plugin._allow3rdParty=function(options){return allow3rdParty(options)},W.plugin._setFnForDefinedPlugins=function(video,plugins){var i,len,results,script;for(results=[],i=0,len=plugins.length;i<len;i++)script=plugins[i],W.plugin[script.name]&&results.push(function(script){return script.fn=function(){var initPluginNow;return initPluginNow=function initPluginNow(){var name1,pluginHandle,ref2;return pluginHandle=W.plugin[script.name](video._impl||video,script.options)||!0,video.plugin[script.name]=pluginHandle,video._impl&&(video._impl.plugin[script.name]=pluginHandle,video.trigger("plugininitialized",script.name)),null==(ref2=video._pluginStopGos)?void 0:"function"==typeof ref2[name1=script.name]?ref2[name1](!0,pluginHandle):void 0},script.options.initBeforeHasData?initPluginNow():video.hasData(initPluginNow)},script.async=!1}(script));return results},W.plugin._queueUndefinedPlugins=function(video,plugins){var i,len,name,plugin,results,script;for(null==W.pluginQueue&&(W.pluginQueue={}),results=[],(i=0,len=plugins.length);i<len;i++)plugin=plugins[i],plugin.subScripts?results.push(function(){var j,len1,ref2,results1;for(ref2=plugin.subScripts,results1=[],(j=0,len1=ref2.length);j<len1;j++)script=ref2[j],name=script.name||script.src,null==W.pluginQueue[name]&&(W.pluginQueue[name]=[]),plugin.fn?results1.push(void 0):results1.push(W.pluginQueue[name].push({video:video,implVersion:video._implVersion,options:script.options}));return results1}()):(name=plugin.name||plugin.src,null==W.pluginQueue[name]&&(W.pluginQueue[name]=[]),plugin.fn?results.push(void 0):results.push(W.pluginQueue[name].push({video:video,implVersion:video._implVersion,options:plugin.options})));return results},W.plugin._execQueue=function(video,plugins,callback){return W.plugin._queueUndefinedPlugins(video,plugins),W.remote.scripts(plugins,callback)},W.plugin._init=function(pluginName,video,options){var instance,klass,klassName;return klassName=pluginName.charAt(0).toUpperCase()+pluginName.substr(1),klass=W.Plugin[klassName],instance=new klass,instance.init(video,options),instance},W.plugin._instance=function(pluginName,video,pluginUuid){return wData(["plugins",pluginName,video.uuid,pluginUuid])},W.plugin._remove=function(pluginName,video,pluginUuid){var ref2;null!=(ref2=W.plugin._instance(pluginName,video,pluginUuid))&&ref2.remove()},W.plugin._isActive=function(pluginName,video,pluginUuid){return!!W.plugin._instance(pluginName,video,pluginUuid)},W.plugin._defined=function(){var key,ref2,results,val;for(key in ref2=W.plugin,results=[],ref2)val=ref2[key],/^_/.test(key)||results.push({name:key,options:val});return results}):void 0})(Wistia);

/***/ }),

/***/ 98:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

var bind=function bind(fn,me){return function(){return fn.apply(me,arguments)}},slice=[].slice;(function(Wistia){var Judy,Promise,StopGo,W,cast,clearTimeouts,clipsFromChapters,clone,doTimeout,eV1Host,eV1Protocol,elemAddClass,elemAfter,elemAnimate,elemAppend,elemBefore,elemFromObject,elemHasClass,elemHeight,elemInDom,elemIsHidden,elemOffset,elemPrepend,elemRebind,elemRemove,elemStyle,elemUnbind,elemUnbindAll,elemUnbindAllInside,elemWidth,embedOptionsFromQueryParams,getDeep,globalTrigger,inUserEventContext,insertIntoArray,isEmpty,isObject,mediaDataTransforms,merge,oldTrigger,parseUrl,pluginScriptsToLoad,prefetchEngineAndPlugins,proto,ref,ref1,ref2,ref3,ref4,ref5,ref6,ref7,scrollTop,seqId,setDeep,shouldAddKeyMoments,throttle,toArray,uniqId,wData,wRemoveData;if(W=Wistia,!W.PublicApi)return Judy=__webpack_require__(84),Promise=__webpack_require__(26),StopGo=__webpack_require__(40),pluginScriptsToLoad=__webpack_require__(99).pluginScriptsToLoad,prefetchEngineAndPlugins=__webpack_require__(100).prefetchEngineAndPlugins,ref=__webpack_require__(16),proto=ref.proto,parseUrl=ref.parseUrl,ref1=__webpack_require__(101),wData=ref1.wData,wRemoveData=ref1.wRemoveData,ref2=__webpack_require__(33),doTimeout=ref2.doTimeout,clearTimeouts=ref2.clearTimeouts,seqId=__webpack_require__(8).seqId,ref3=__webpack_require__(17),clone=ref3.clone,merge=ref3.merge,isEmpty=ref3.isEmpty,cast=ref3.cast,setDeep=ref3.setDeep,getDeep=ref3.getDeep,isObject=ref3.isObject,W.Judy=Judy,W.Assets=__webpack_require__(80),ref4=__webpack_require__(34),elemAddClass=ref4.elemAddClass,elemAfter=ref4.elemAfter,elemAnimate=ref4.elemAnimate,elemAppend=ref4.elemAppend,elemBefore=ref4.elemBefore,elemFromObject=ref4.elemFromObject,elemHasClass=ref4.elemHasClass,elemHeight=ref4.elemHeight,elemInDom=ref4.elemInDom,elemIsHidden=ref4.elemIsHidden,elemOffset=ref4.elemOffset,elemPrepend=ref4.elemPrepend,elemRebind=ref4.elemRebind,elemRemove=ref4.elemRemove,elemStyle=ref4.elemStyle,elemUnbind=ref4.elemUnbind,elemUnbindAll=ref4.elemUnbindAll,elemUnbindAllInside=ref4.elemUnbindAllInside,elemWidth=ref4.elemWidth,inUserEventContext=ref4.inUserEventContext,scrollTop=__webpack_require__(102).scrollTop,ref5=__webpack_require__(14),eV1Protocol=ref5.eV1Protocol,eV1Host=ref5.eV1Host,globalTrigger=__webpack_require__(21).globalTrigger,uniqId=__webpack_require__(89).uniqId,throttle=__webpack_require__(27).throttle,ref6=__webpack_require__(103),insertIntoArray=ref6.insertIntoArray,toArray=ref6.toArray,mediaDataTransforms=__webpack_require__(31).mediaDataTransforms,ref7=__webpack_require__(104),clipsFromChapters=ref7.clipsFromChapters,shouldAddKeyMoments=ref7.shouldAddKeyMoments,embedOptionsFromQueryParams=__webpack_require__(58).default,W.PublicApi=function(){function PublicApi(hashedId,options){this._definePluginMethod=bind(this._definePluginMethod,this),this._doResize=bind(this._doResize,this),this._doMonitor=bind(this._doMonitor,this),this._initWithMediaData=bind(this._initWithMediaData,this),this._allocEmbedSlot=bind(this._allocEmbedSlot,this);var doInit,ref8;this.on("problem",function(_this){return function(data){return data.video=_this,globalTrigger("problem",data)}}(this)),this.info("initialize"),this._hasImpl=new StopGo,this._notReplacing=new StopGo,this._notReplacing(!0),this.hasPlugins=new StopGo,this.up=new StopGo,this.up(!0),this.down=new StopGo,this.down(!1),this.inViewport=new StopGo,this.inViewport(!1),this._implVersion=0,this._playlistIndex=0,this._attrs={},this.params={},this.options={},this.controls={},this._pluginStopGos={},this.plugins={},this.data={},this._definePluginMethod(),this.hashedId(hashedId),this._givenOptions=options,this._playlist=[],this._setupContainer(),this._validate(),this._inferPropertiesBeforeMediaData(),this._dedupContainer(),this._addToGlobalCache(),this._setupBindings(),this.supportedPlayers=[],this.addToPlaylist(this.hashedId(),options),this.down(this.looksDown()),this.up(this.looksUp()),this._hasImpl(function(_this){return function(){if(_this._wvideoInUrl())return _this._scrollToContainer(),_this.popover?_this.embedded(function(){return _this.popover.showAndPlay()}):_this.play()}}(this)),null!=(ref8=window.wistiaEmbeds)&&ref8.bindHandles(),this.monitor(),this.embedded(function(_this){return function(){return _this.monitor()}}(this)),this.ready(function(_this){return function(){return _this.monitor()}}(this)),doInit=function(_this){return function(){return _this._onInitializable(function(){return _this._withFreeEmbedSlots(function(){var opts;return _this._initTime=new Date().getTime(),_this.hasData(function(){return _this._hasDataTime=new Date().getTime()}),_this.embedded(function(){return _this._embeddedTime=new Date().getTime()}),_this.ready(function(){return _this._readyTime=new Date().getTime()}),opts=_this._gatherOptions(),opts.mediaData?_this._initWithMediaData(opts.mediaData):W.remote.media(_this.hashedId(),_this._initWithMediaData,_this._gatherOptions())})})}}(this),this._shouldBePopover()?(this.popover={show:function(_this){return function(){return _this._hasImpl(function(){return _this.popover.show()})}}(this),hide:function(_this){return function(){return _this._hasImpl(function(){return _this.popover.hide()})}}(this),height:function(_this){return function(h,options){return null==h?0:_this._hasImpl(function(){return _this.popover.height(h,options)})}}(this),width:function(_this){return function(w,options){return null==w?0:_this._hasImpl(function(){return _this.popover.width(w,options)})}}(this)},W.asyncRequire("popover.js").then(function(_this){return function(){return _this.popover=new W.Popover(_this),doInit()}}(this))):doInit(),this.trigger("initembed")}return PublicApi.prototype._withFreeEmbedSlots=function(fn){var freeSlotTimeout;return this._setupEmbedSlots(),freeSlotTimeout=null,this.embedded(function(_this){return function(){return clearTimeout(freeSlotTimeout),freeSlotTimeout=setTimeout(function(){return _this._freeEmbedSlot()},_this._embedSlotThrottleInterval())}}(this)),null==this._freeEmbedSlotOnError&&(this._freeEmbedSlotOnError=function(_this){return function(){return _this._freeEmbedSlot(),_this.unbind}}(this)),this.rebind("servererror",this._freeEmbedSlotOnError),W._embedSlotFree(function(_this){return function(){return _this._allocEmbedSlot(),freeSlotTimeout=setTimeout(function(){return _this._freeEmbedSlot()},1e3),fn()}}(this))},PublicApi.prototype._onInitializable=function(callback){return this.popover?elemIsHidden(this.container)?(this.info("popover, delaying init until container is visible"),W.eventLoop.add(this.uuid+".wait_for_container_visible",500,function(_this){return function(){var e;if(!elemIsHidden(_this.container)){_this.info("container became visible, initializing");try{callback()}catch(error1){e=error1,W.error(e)}return W.eventLoop.remove}}}(this))):callback():callback()},PublicApi.prototype._setupEmbedSlots=function(){if(null==W._embedSlots&&(W._embedSlots=[]),!W._embedSlotFree)return W._embedSlotFree=new StopGo,W._embedSlotFree(!0)},PublicApi.prototype._maxEmbedSlots=function(){var k,v,videoCount;return videoCount=function(){var ref8,results;for(k in ref8=wData("video"),results=[],ref8)v=ref8[k],results.push(k);return results}().length,20<videoCount?5:10<videoCount?8:13},PublicApi.prototype._embedSlotThrottleInterval=function(){return 500},PublicApi.prototype._freeEmbedSlot=function(){var video;if(this._setupEmbedSlots(),W._embedSlots=function(){var j,len,ref8,results;for(ref8=W._embedSlots,results=[],(j=0,len=ref8.length);j<len;j++)video=ref8[j],video!==this&&results.push(video);return results}.call(this),W._embedSlots.length<this._maxEmbedSlots())return W._embedSlotFree(!0)},PublicApi.prototype._allocEmbedSlot=function(){if(this._setupEmbedSlots(),W._embedSlots.push(this),W._embedSlots.length>=this._maxEmbedSlots())return W._embedSlotFree(!1)},PublicApi.prototype._shouldLazyLoad=function(){var opts;return opts=this._gatherOptions(),!window._inWistiaIframe&&parent===self&&(opts.lazyLoad||this.popover&&!1!==opts.lazyLoad)},PublicApi.prototype._initWithMediaData=function(mediaData){var error,implVersion,newPlayerType;this.info("_initWithMediaData",mediaData);try{0===W.Player.assets(mediaData,{public:!0}).length&&W.Metrics.videoCount(this,"player/no-public-assets")}catch(error1){error=error1,this.debug(error)}return this.isRemoved()?void this.notice("abort, video already removed"):mediaData.error?(this.notice("display error message from server"),this._displayServerError(mediaData),void this.trigger("servererror")):(this.hashedId(mediaData.hashedId),this._originalMediaData=clone(mediaData),this._mediaData=mediaData,this._mediaData=mediaDataTransforms(mediaData,this._gatherOptions()),this.data.media=mediaData,this.info("_optionSources",this._optionSources()),this._opts=this._gatherOptions(),this.info("_opts",clone(this._opts)),merge(this._mediaData,this._opts.mergeMediaData),this._inferPropertiesAfterMediaData(),newPlayerType=Judy.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=Judy.playerPlugins(this.judyCtx(),newPlayerType,this._mediaData,this._opts),Judy.logWarnings(this.judyCtx(),newPlayerType,this._mediaData,this._opts),this._implVersion+=1,implVersion=this._implVersion,this._execPlugins(function(_this){return function(){var e,klass,ref8;if(_this._implVersion!==implVersion)return void _this.notice("_initWithMediaData(): impl changed from",implVersion,"to",_this._implVersion,"not completing init");_this.hasPlugins(!0),klass=W.PublicApi.classFor(newPlayerType),_this.supportedPlayers=Judy.supportedPlayers(_this.judyCtx(),_this._mediaData.assets);try{_this._impl=new klass(_this).init()}catch(error1){throw e=error1,_this.error("Failed to initialize impl of class",klass,"preferred",newPlayerType,"supported",_this.supportedPlayers),e}return _this.grid=_this._impl.setupGrid({initDimensions:!1}),_this._hasImpl(!0),_this.hasData(!0),(null==(ref8=_this._embedContainer)?void 0:ref8.parentNode)?(_this._runMethodsFromOptions(),_this._impl.embed(),0<_this._getFadeInTime()&&elemStyle(_this._impl.gridChildren(),{opacity:0}),_this._impl.embedded(function(){return 0<_this._getFadeInTime()?elemAnimate(_this._impl.gridChildren(),{opacity:1},{time:_this._getFadeInTime(),callback:function callback(){return _this.trigger("transitiondone")}}):_this.trigger("transitiondone")}),doTimeout(_this.uuid+".prefetch_next_media",function(){return _this.prefetchNextMedia()},2e3),_this._injectJsonLd()):_this.notice("embed(): container removed, giving up")}}(this)))},PublicApi.prototype._getFadeInTime=function(){return null==this._opts.fadeInTime?200:this._opts.fadeInTime},PublicApi.prototype.judyCtx=function(){return this._judyCtx||(this._judyCtx=Judy.buildContext({pageUrl:this._attrs.pageUrl}))},PublicApi.prototype._iframeUrl=function(proto){return null==proto&&(proto=""),proto+"//"+W.remote.externalEmbedHost(proto)+"/embed/iframe/"+this.hashedId()},PublicApi.prototype._removeJsonLd=function(){if(this._jsonLd)return elemRemove(this._jsonLd),this._jsonLd=null},PublicApi.prototype._wvideoInUrl=function(){var url;return!this._opts._inIframe&&(url=parseUrl(this._attrs.pageUrl),url.params.wvideo===this.hashedId())},PublicApi.prototype._scrollToContainer=function(){var offset;return offset=elemOffset(this.container),scrollTop(offset.top-100)},PublicApi.prototype._injectJsonLd=function(){var chapterList,existingScript,existingScripts,obj,ref10,ref8,ref9,stringified;if("notplayable"!==this.playerType)return(this._removeJsonLd(),!this._opts._inIframe)?!1===this._opts.seo?void 0:(obj={"@context":"http://schema.org/","@id":this._iframeUrl("https:"),"@type":"VideoObject",duration:"PT"+this.humanDuration().toUpperCase(),name:this.name(),thumbnailUrl:this.stillUrl({protocol:"https:",ext:"jpg"}),embedUrl:this._iframeUrl("https:"),uploadDate:this._createdAtIso8601()},this._mediaData.captions&&(obj.transcript=null==(ref8=this._mediaData.captions[0])?void 0:ref8.text),shouldAddKeyMoments(this.embedOptions(),this.duration())&&(chapterList=(null==(ref9=this.embedOptions().plugin)||null==(ref10=ref9.chapters)?void 0:ref10.chapterList)||this.embedOptions().chaptersOn&&this.embedOptions().chapterList,chapterList&&(obj.hasPart=clipsFromChapters(chapterList,location.href))),this._mediaData.seoDescription&&(obj.description=this._mediaData.seoDescription),stringified=JSON.stringify(obj),this._jsonLd=elemFromObject({className:"w-json-ld",tagName:"script",type:"application/ld+json",childNodes:stringified}),this._jsonLd._wistia=!0,existingScripts=document.querySelectorAll("script.w-json-ld"),existingScript=existingScripts[existingScripts.length-1],existingScript?elemAfter(existingScript,this._jsonLd):elemPrepend(document.head,this._jsonLd)):void 0},PublicApi.prototype._createdAtIso8601=function(){var createdAt,day,month,year;return createdAt=new Date(1e3*this._mediaData.createdAt),year=createdAt.getFullYear(),month=createdAt.getMonth()+1,day=createdAt.getDate(),10>month&&(month="0"+month),10>day&&(day="0"+day),year+"-"+month+"-"+day},PublicApi.prototype._setDeprecatedProperties=function(){return this.options=clone(this._opts),this.params=clone(this._opts),merge(this.params,this._attrs),this._attrs.email&&(this.params.trackEmail=this._attrs.email),this._hasImpl(function(_this){return function(){var ref8;return _this.playerType=_this.embedType=null==(ref8=_this._impl)?void 0:ref8.playerType}}(this))},PublicApi.prototype.elem=function(){var ref8;return null==(ref8=this._impl)?void 0:"function"==typeof ref8.elem?ref8.elem():void 0},PublicApi.prototype._execPlugins=function(callback){return this._pluginScripts=pluginScriptsToLoad(this._mediaData,this._opts,this._playerPlugins),W.plugin._setFnForDefinedPlugins(this,this._pluginScripts),this.info("_execPlugins",this._pluginScripts),W.plugin._execQueue(this,this._pluginScripts,callback)},PublicApi.prototype._optionSources=function(options){var customizeOptions,inferredOptions,inlineOptions,k,queryParamOptions,queryParamWhitelist,ref8,result,v;if(null==options&&(options={}),options=merge({givenOptions:clone(this._givenOptions),mediaData:clone(this._mediaData),hashedId:this._hashedId,container:this.container},options),inlineOptions=options.givenOptions,"v1"===inlineOptions.version?customizeOptions={}:options.mediaData?(customizeOptions=clone(options.mediaData.embed_options),delete customizeOptions.stillUrl):customizeOptions={},queryParamWhitelist=["autoPlay","deliveryCdn","hls","techInfo"],queryParamOptions=embedOptionsFromQueryParams(queryParamWhitelist,this._inferPageUrl()),inferredOptions={},result={customize:customizeOptions,global:W.options("__global__"),hashedId:W.options(options.hashedId),dom:W.options("__"+options.container.id+"_dom_options__"),container:W.options(options.container.id),inline:inlineOptions,inferredOptions:inferredOptions,queryParamOptions:queryParamOptions,override:options.override||{}},inlineOptions.optionSourceOverrides)for(k in ref8=inlineOptions.optionSourceOverrides,ref8)v=ref8[k],result.hasOwnProperty(k)&&(result[k]=v);for(k in result)v=result[k],isEmpty(v)&&delete result[k];return result},PublicApi.prototype._gatherOptions=function(options){var k,mediaData,opt,ref8,ref9,sources,v;for(k in null==options&&(options={}),opt={},sources=this._optionSources(options),sources)v=sources[k],0<=(null==(ref8=options.only)?void 0:ref8.indexOf(k))?merge(opt,v):0>(null==(ref9=options.except)?void 0:ref9.indexOf(k))?merge(opt,v):!options.only&&!options.except&&merge(opt,v);return cast(opt),this._normalizeOptions(opt),mediaData=options.mediaData||this._mediaData,"html5"===opt.playerPreference&&(opt.playerPreference="vulcan-v2"),(null==mediaData?void 0:mediaData.useMediaDataHostLogic)&&(opt.useMediaDataHostLogic=!0),opt},PublicApi.prototype.hashedId=function(val){return null==val?this._hashedId:(this._hashedId=val,this)},PublicApi.prototype.isAudio=function(){return"Audio"===this._mediaData.mediaType},PublicApi.prototype._normalizeOptions=function(options){return options.twitter&&(this.info("twitter detected"),getDeep(options,"plugin.socialbar-v1")&&(this.info("disabled socialbar"),setDeep(options,"plugin.socialbar-v1.on",!1)),getDeep(options,"plugin.transcript-v2")&&(this.info("disabled transcript"),setDeep(options,"plugin.transcript-v2.on",!1))),null!=options.playButtonVisible&&(options.playButton=cast(options.playButtonVisible),delete options.playButtonVisible),options},PublicApi.prototype._setupContainer=function(){var child,j,len,ref8;if(this._containerId=this._givenOptions.container?this._givenOptions.container:"wistia_"+this.hashedId(),this.container="string"==typeof this._containerId?document.getElementById(this._containerId):this._containerId,this.container){for(this.container.wistiaApi=this,this._startingHtml=this.container.innerHTML,ref8=Array.prototype.slice.call(this.container.childNodes),(j=0,len=ref8.length);j<len;j++)child=ref8[j],elemHasClass(child,"wistia_swatch")||elemRemove(child);elemAddClass(this.container,"wistia_embed_initialized")}return this.info("container",this.container)},PublicApi.prototype._inferPropertiesBeforeMediaData=function(){var opt;if(this.chrome=elemFromObject({id:seqId("wistia_chrome_"),class:"w-chrome",style:W.generate.relativeBlockCss(),tabindex:-1}),elemStyle(this.chrome,{outline:"none",overflow:"hidden",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"}),opt=this._gatherOptions(),this._shouldBePopover()?(this._popoverContainer=elemFromObject({role:"dialog",id:this.container.id+"_popover_container"}),!(W.detect.iphone||W.detect.ipad)&&this._popoverContainer.setAttribute("aria-modal",!0),this._embedContainer=elemFromObject({id:this.container.id+"_popover",style:{height:this._popoverSize(opt).height+"px",width:this._popoverSize(opt).width+"px"}}),elemAppend(this._popoverContainer,this._embedContainer),elemAppend(document.body,this._popoverContainer)):this._embedContainer=this.container,elemAppend(this._embedContainer,this.chrome),this.uuid=opt.uuid?opt.uuid:seqId(),this.info("uuid",this.uuid),null!=opt.playlistLoop&&(this._attrs.playlistLoop=opt.playlistLoop),this._embedContainer)return this._attrs.startingWidth=elemWidth(this._embedContainer),this._attrs.startingHeight=elemHeight(this._embedContainer)},PublicApi.prototype._shouldBePopover=function(){var opt;return opt=this._gatherOptions(),!opt._inIframe&&(!0===opt.popover||"v2"===opt.popover)},PublicApi.prototype._popoverSize=function(opt){var height,nonHdAsset,ref8,ref9,width;return null==opt&&(opt=this._opts),null==opt&&(opt={}),opt.popoverSize?(ref9=(null==(ref8=opt.popoverSize)?void 0:ref8.split("x"))||[640,360],width=ref9[0],height=ref9[1],width=parseInt(width),height=parseInt(height)):this._mediaData?(nonHdAsset=this.asset({container:"mp4",width:[0,960],sortBy:"width desc"}))?(width=nonHdAsset.width,height=nonHdAsset.height):(width=640,height=360):(width=640,height=360),{width:width,height:height}},PublicApi.prototype._inferPropertiesAfterMediaData=function(){var lastPlayerColor,playerColorDidChange,qualityMax,qualityMin,ref8,urlEmail;return this._attrs.shouldTrack=!this._opts.doNotTrack,this._attrs.seekThreshold=this._opts.seekThreshold||1.5,ref8=this._inferQualityRangeFromOpts(),qualityMin=ref8[0],qualityMax=ref8[1],this._attrs.qualityMin=qualityMin,this._attrs.qualityMax=qualityMax,this._attrs.qualityMax<this._attrs.qualityMin&&(this.error("qualityMax "+this._attrs.qualityMax+" is less than qualityMin "+this._attrs.qualityMin+". Setting qualityMax to "+this._attrs.qualityMin+"."),this._attrs.qualityMax=this._attrs.qualityMin),this._attrs.rawEmbed=null==this._opts.rawEmbed?null==this._opts._inIframe||!cast(this._opts._inIframe||!1):cast(this._opts.rawEmbed),this._attrs.pageUrl||(this._attrs.pageUrl=this._inferPageUrl()),null!=this._opts.trackEmail&&(this._attrs.email=this._opts.trackEmail),!this._attrs.email&&this._attrs.shouldTrack&&(urlEmail=this._extractEmailFromParams(),urlEmail&&(this._attrs.email=urlEmail)),!this._attrs.email&&W.localStorage([this._attrs.pageUrl,"trackEmail"])&&(this._attrs.email=W.localStorage([this._attrs.pageUrl,"trackEmail"])),lastPlayerColor=this._attrs.playerColor,playerColorDidChange=lastPlayerColor&&lastPlayerColor!==this._opts.playerColor,this._attrs.playerColor=W.Player._sanePlayerColor(this._opts.playerColor||"636155"),playerColorDidChange&&this.trigger("playercolorchange",this._attrs.playerColor,lastPlayerColor),this._attrs.playerBackgroundColor=this._opts.playerBackgroundColor||"#000000",this._attrs.trackWithJs=!0,this._attrs.newStillLogic=!0,this._opts.noDeprecatedProperties||this._setDeprecatedProperties(),this},PublicApi.prototype._inferPageUrl=function(){var ref10,ref8,ref9;return(null==(ref8=this._opts)?void 0:ref8.pageUrl)?this._opts.pageUrl:(null==(ref9=window.FreshUrl)?void 0:ref9.originalUrl)?null==(ref10=window.FreshUrl)?void 0:ref10.originalUrl:top===self?location.href||"":document.referrer||""},PublicApi.prototype._inferQualityRangeFromOpts=function(){var DEFAULT_QUALITY_MAX,DEFAULT_QUALITY_MIN,_,aspect,asset,height,qualityMax,qualityMin,ref8,val,width;return DEFAULT_QUALITY_MIN=360,DEFAULT_QUALITY_MAX=2160,this._opts.videoQuality&&"auto"!==this._opts.videoQuality?"sd-only"===this._opts.videoQuality?[200,360]:"md"===this._opts.videoQuality?[540,DEFAULT_QUALITY_MAX]:"hd-only"===this._opts.videoQuality?[720,DEFAULT_QUALITY_MAX]:/width:/.test(this._opts.videoQuality)?(ref8=this._opts.videoQuality.match(/width:(\d+)/i),_=ref8[0],val=ref8[1],width=parseInt(val,10),(asset=W.Player.asset(this._mediaData,{container:/mp4|flv/,status:W.Player.READY,public:!0}))?(aspect=asset.width/asset.height,height=Math.round(width/aspect),[height,height]):(this.warn("No assets available to determine aspect for videoQuality '"+this._opts.videoQuality+"', using default qualityMin/qualityMax"),[DEFAULT_QUALITY_MIN,DEFAULT_QUALITY_MAX])):(this.warn("Unknown videoQuality setting '"+this._opts.videoQuality+"', using default qualityMin/qualityMax"),[DEFAULT_QUALITY_MIN,DEFAULT_QUALITY_MAX]):(qualityMin=null==this._opts.qualityMin?DEFAULT_QUALITY_MIN:this._assetSizeShorthandToNumeric(this._opts.qualityMin),qualityMax=null==this._opts.qualityMax?DEFAULT_QUALITY_MAX:this._assetSizeShorthandToNumeric(this._opts.qualityMax),[qualityMin,qualityMax])},PublicApi.prototype._assetSizeShorthandToNumeric=function(size){return"4k"===size?2160:parseInt(size,10)},PublicApi.prototype._extractEmailFromParams=function(){var base64Email,decodedEmail,ref8,ref9,wemail,wkey;return(wemail=(null==(ref8=this._attrs.pageUrl)?void 0:ref8.match(/wemail\=([^\&\#]+)/))||null,wemail)?wemail[1]:(wkey=(null==(ref9=this._attrs.pageUrl)?void 0:ref9.match(/wkey\=([^\&\#]+)/))||null,wkey?(base64Email=wkey[1],decodedEmail=W.base64.decode(base64Email),decodedEmail):null)},PublicApi.prototype._runMethodsFromOptions=function(){var base,isClosedPopover,isMobile,shouldDelayUntilPlay;if(null!=this._opts.foreignData&&this.foreignData(this._opts.foreignData),null==this._opts.email?null!=this._opts.trackEmail&&this.email(this._opts.trackEmail):this.email(this._opts.email),null!=this._opts.playerLanguage&&this.playerLanguage(this._opts.playerLanguage),null!=this._opts.videoFoam&&this.videoFoam(this._opts.videoFoam),this._opts.controlScaling&&this.controlScaling(this._opts.controlScaling),this._hasImpl(function(_this){return function(){if(null!=_this._opts.playerColor&&"flash"!==_this.playerType)return _this.playerColor(_this._opts.playerColor)}}(this)),null!=this._opts.volume&&this.volume(this._opts.volume),(!0===this._opts.muted||0===this._opts.volume)&&this.mute(),!1===this._opts.muted&&this.unmute(),this._opts.suppressPlay&&this.suppressPlay(this._opts.suppressPlay),(!this.popover||("function"==typeof(base=this.popover).isVisible?base.isVisible():void 0))&&this._opts.autoPlay&&this._hasImpl(function(_this){return function(){return _this._playSuspendedOffScreenEnabled()?_this.inViewport()?_this.play():_this.bind("enterviewport",function(){return _this.play(),_this.unbind}):_this.play()}}(this)),this._opts.pause&&this.pause(),null!=this._opts.time)return isMobile=W.detect.iphone||W.detect.ipad||W.detect.android,isClosedPopover=this.popover&&!this.popover._visible,shouldDelayUntilPlay="playing"!==this.state()&&(isMobile||isClosedPopover),this.time(this._opts.time,{lazy:shouldDelayUntilPlay})},PublicApi.prototype._playSuspendedOffScreenEnabled=function(){return null!=this._opts.playSuspendedOffScreen&&"auto"!==this._opts.playSuspendedOffScreen?this._opts.playSuspendedOffScreen:this.isMuted()},PublicApi.prototype._validate=function(){var errors;if(errors=this._errors(),0<errors.length){throw new Error(errors.join(", "));return!1}return!0},PublicApi.prototype._errors=function(){var errors;return errors=[],this.container||errors.push("Could not find element with ID \""+this._containerId+"\" in DOM. Failed to initialize video \""+this._hashedId+"\"."),errors},PublicApi.prototype._dedupContainer=function(){var handle,j,len,ref8,ref9,toRemove,uuid;if(wData("video")){for(uuid in toRemove=[],ref8=wData("video"),ref8)handle=ref8[uuid],this.container.id&&(null==(ref9=handle.container)?void 0:ref9.id)===this.container.id&&toRemove.push(handle);for(j=0,len=toRemove.length;j<len;j++)handle=toRemove[j],this.notice("_dedupContainer",handle.container.id),handle.remove();if(0<toRemove.length)return this.container.wistiaApi=this}},PublicApi.prototype._addToGlobalCache=function(){return this.info("_addToGlobalCache",this.uuid),wData(["video",this.uuid],this)},PublicApi.prototype._displayServerError=function(errorResponse){var baseUrl;return errorResponse.iframe?(baseUrl=this._gatherOptions().useMediaDataHostLogic?eV1Protocol()+"//"+eV1Host():proto()+"//"+W.remote.embedHost(),this.container.innerHTML="<iframe src='"+baseUrl+"/embed/iframe/"+this.hashedId()+"' height='"+this.height()+"' width='"+this.width()+"' frameborder='0' scrolling='no'></iframe>"):this.container.innerHTML="<div style='background:#fff;border:2px dashed #ddd;color:#aaa;font-family:Century Gothic,Arial;font-size:14px;text-align:center;width:"+this.width()+";height:"+this.height()+";'><div style='padding:20px;'>"+(errorResponse.message||errorResponse.error)+"</div></div>"},PublicApi.prototype._implExec=function(){var args,methodName;return methodName=arguments[0],args=2<=arguments.length?slice.call(arguments,1):[],this._hasImpl(function(_this){return function(){var ref8;return _this._impl[methodName]?_this._impl[methodName]._originalMethod===_this[methodName]?void _this.warn("calling "+methodName+" would result in an infinite loop"):(ref8=_this._impl)[methodName].apply(ref8,args):_this.warn(methodName+" is not defined",W.stacktrace())}}(this)),this},PublicApi.prototype._implGet=function(){var args,defaultReturn,methodName,ref8;return methodName=arguments[0],defaultReturn=arguments[1],args=3<=arguments.length?slice.call(arguments,2):[],null==defaultReturn&&(defaultReturn=null),this._hasImpl()?this._impl[methodName]?this._impl[methodName]._originalMethod===this[methodName]?void this.warn("calling "+methodName+" would result in an infinite loop"):(ref8=this._impl)[methodName].apply(ref8,args):this.warn(methodName+" is not defined",W.stacktrace()):defaultReturn},PublicApi.prototype._implSetOrGet=function(){var args,defaultReturn,methodName;return methodName=arguments[0],defaultReturn=arguments[1],args=3<=arguments.length?slice.call(arguments,2):[],0<args.length?this._implExec.apply(this,[methodName].concat(slice.call(args))):this._implGet(methodName,defaultReturn)},PublicApi.prototype._implPromise=function(){var args,methodName;return methodName=arguments[0],args=2<=arguments.length?slice.call(arguments,1):[],new Promise(function(_this){return function(resolve,reject){return _this._hasImpl(function(){var ref8,result;return _this._impl[methodName]?_this._impl[methodName]._originalMethod===_this[methodName]?void _this.warn("calling "+methodName+" would result in an infinite loop"):(result=(ref8=_this._impl)[methodName].apply(ref8,args),result instanceof Promise?result.then(resolve)["catch"](reject):resolve(result)):reject(new Error(methodName+" is not defined on _impl"))})}}(this))},PublicApi.prototype.rebuild=function(){return this._hasImpl(function(_this){return function(){return _this._impl.rebuild(),_this._runMethodsFromOptions()}}(this))},PublicApi.prototype.fullRebuild=function(options){return null==options&&(options={}),this.replaceWith(this._impl._mediaData,merge({force:this._impl.playerType,inPlace:!1,transition:"none"},options))},PublicApi.prototype.rebuildAs=function(platformPreference,options){return null==options&&(options={}),this.fullRebuild(merge(this._givenOptions,options,{force:platformPreference,transition:"none"}))},PublicApi.prototype.replace=function(hashedId,options){return null==options&&(options={}),this.replaceWith(hashedId,merge({inlineOptionsOnly:!0},options))},PublicApi.prototype.replaceWith=function(hashedId,options){var replaceWithFn;return null==options&&(options={}),this.info("replaceWith",hashedId,options),replaceWithFn=function(_this){return function(){var gatheredOpts,mediaData,optsForFetch,replaceFn;return replaceFn=_this._impl?_this._replaceWithMediaData:_this._initWithMediaData,_this._impl.trigger("beforereplace",hashedId),_this._notReplacing(!1),_this.hasData(!1),_this._hasImpl(!1),_this._initTime=new Date().getTime(),_this.hasData(function(){return _this._hasDataTime=new Date().getTime(),_this.embedded(function(){return _this._embeddedTime=new Date().getTime()})}),isObject(hashedId)?replaceFn.call(_this,hashedId,options):(mediaData=W.mediaFromCache(hashedId))?replaceFn.call(_this,mediaData,options):(gatheredOpts=clone(_this._gatherOptions()),delete gatheredOpts.idType,optsForFetch=merge({},gatheredOpts,options),W.remote.media(hashedId,function(mediaData){return replaceFn.call(_this,mediaData,options)},optsForFetch))}}(this),this._hasImpl(function(_this){return function(){return _this._notReplacing(replaceWithFn)}}(this)),this},PublicApi.prototype._replaceWithMediaData=function(){var args;return args=1<=arguments.length?slice.call(arguments,0):[],this._impl.commandQueueOpen.synchronize(function(_this){return function(done){return _this._replaceWithMediaDataQueuable.apply(_this,args),_this._notReplacing(done)}}(this))},PublicApi.prototype._replaceWithMediaDataQueuable=function(mediaData,options){var engine,implVersion,inPlace,inPlacePreference,inlineOptionsOnly,newPlayerType,oldImpl,oldImplStopGo,ref10,ref11,ref8,ref9,resolveOldImplStopGo,transition,transitionTime;return(null==options&&(options={}),options=clone(options),this.info("_replaceWithMediaData",mediaData,options),mediaData.error)?(this._displayServerError(mediaData),void this.trigger("servererror")):(null==options.playlistIndex?this._inPlaylist(mediaData.hashedId)&&(this._playlistIndex=this._playlistIndexOf(mediaData.hashedId)):(this._playlistIndex=options.playlistIndex,delete options.playlistIndex),null!=options.playlistShouldAutoAdvance&&(this._playlistShouldAutoAdvance=options.playlistShouldAutoAdvance),options.inlineOptionsOnly&&(inlineOptionsOnly=options.inlineOptionsOnly,delete options.inlineOptionsOnly),null!=options.inPlace&&(inPlacePreference=options.inPlace,delete options.inPlace),null!=options.transition&&(transition=options.transition,delete options.transition),null!=options.transitionTime&&(transitionTime=options.transitionTime,delete options.transitionTime),this.hasData(!1),this._hasImpl(!1),null!=(ref8=this._impl._tracker)&&ref8.stopMonitoring(),this._clobberVideoBindings(),this._savedState={},this._suspended=!1,oldImpl=this._impl,"function"==typeof oldImpl.wipeOutstandingAsyncFunctions&&oldImpl.wipeOutstandingAsyncFunctions(),this._hashedId=mediaData.hashedId,this._originalMediaData=mediaData,this.data.media=mediaData,this._givenOptions=options,this._mediaData=mediaData,this._opts=inlineOptionsOnly?this._gatherOptions({only:"inline"}):this._gatherOptions(),this._embedOptions=null,this._mediaData=mediaDataTransforms(mediaData,this._opts),oldImpl.trigger("beforereplaceengine"),oldImpl.freezeLastFrame(),oldImplStopGo=new StopGo,resolveOldImplStopGo=function resolveOldImplStopGo(){return oldImplStopGo.go()},inUserEventContext()&&!0===this._opts.autoPlay&&!oldImpl.isMuted()?(engine=oldImpl.engine,engine?(engine.stopStreaming(),engine.play().then(resolveOldImplStopGo)["catch"](resolveOldImplStopGo),setTimeout(resolveOldImplStopGo,2e3)):resolveOldImplStopGo()):resolveOldImplStopGo(),!1===cast(null==(ref9=this._mediaData.embed_options.plugin)||null==(ref10=ref9.passwordProtectedVideo)?void 0:ref10.on)&&null!=(null==(ref11=this._opts.plugin)?void 0:ref11.passwordProtectedVideo)&&(this._opts.plugin.passwordProtectedVideo.on=!1),this.info("_opts",clone(this._opts)),merge(this._mediaData,this._opts.mediaData),this._inferPropertiesAfterMediaData(),inPlace="notplayable"!==oldImpl.playerType&&"passwordprotected"!==oldImpl.playerType&&(!!("html5"===oldImpl.playerType&&(W.detect.iphone||W.detect.android||W.detect.ipad||W.detect.safari))||null!=inPlacePreference&&inPlacePreference),this.info("inPlace",inPlace),newPlayerType=Judy.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=Judy.playerPlugins(this.judyCtx(),newPlayerType,this._mediaData,this._opts),Judy.logWarnings(this.judyCtx(),newPlayerType,this._mediaData,this._opts),inPlace&&(this.removePlugins(),oldImpl.stopStreaming()),this.plugin=null,this._pluginStopGos={},this._definePluginMethod(),this.hasPlugins(!1),oldImpl.commandQueueOpen.setQueue([]),this.removeSwatch(),this._implVersion+=1,implVersion=this._implVersion,oldImplStopGo(function(_this){return function(){var ref12;return null!=(ref12=oldImpl.engine)&&ref12.destroy(),_this._execPlugins(function(){var base,klass;return _this._implVersion===implVersion?(_this.hasPlugins(!0),_this.supportedPlayers=Judy.supportedPlayers(_this.judyCtx(),_this._mediaData.assets),klass=W.PublicApi.classFor(newPlayerType),_this._impl=new klass(_this).init(),_this._setupBindings(),_this.grid=inPlace?_this._impl.grid=oldImpl.grid:_this._impl.setupGrid({initDimensions:!1}),"function"==typeof(base=_this._impl).transferStateFrom&&base.transferStateFrom(oldImpl),_this._hasImpl(!0),_this.hasData(!0),inPlace||_this._runMethodsFromOptions(),inPlace?_this._replaceMode(function(){return _this._impl.initFrom(oldImpl)}):_this._replaceMode(function(){return _this._embedWithTransitionFrom(oldImpl,transition,{time:transitionTime})}),_this.embedded(function(){return _this._notReplacing(!0)}),inPlace&&_this._runMethodsFromOptions(),_this._allowContainerMatch()&&_this.width(_this.containerWidth(),{constrain:!0}),doTimeout(_this._impl.uuid+".inject_json_ld",function(){return _this._injectJsonLd()}),_this.trigger("afterreplace"),doTimeout(_this.uuid+".prefetch_next_media",function(){return _this.prefetchNextMedia()},2e3)):void _this.notice("replaceWith(): impl changed from",implVersion,"to",_this._implVersion,"not completing replacement")})}}(this)))},PublicApi.prototype._embedWithTransitionFrom=function(oldImpl,transition,more){var whenAutoPlayOrEmbedded;return null==transition&&(transition="none"),this.info("_embedWithTransitionFrom",oldImpl,transition),whenAutoPlayOrEmbedded=new Promise(function(_this){return function(resolve){var ref8,unbindPlay;return(null==(ref8=_this._impl.lastPlayInfo())?void 0:ref8.isPending)?(unbindPlay=_this._impl.on("play",function(){return unbindPlay(),resolve()}),doTimeout(_this._impl.uuid+".slow_play_fallback",function(){return _this._impl.embedded(function(){return unbindPlay(),resolve()})},2e3)):_this._impl.embedded(resolve)}}(this)),"slide"===transition||"slideleft"===transition?(this.info("slideleft"),this._impl.embed(oldImpl),whenAutoPlayOrEmbedded.then(function(_this){return function(){return oldImpl.slideOutLeft(more,function(){return oldImpl.remove()}),_this._impl.slideInLeft(more,function(){return _this._impl.trigger("transitiondone")})}}(this))):"slideright"===transition?(this.info("slideright"),this._impl.embed(oldImpl),whenAutoPlayOrEmbedded.then(function(_this){return function(){return oldImpl.slideOutRight(more,function(){return oldImpl.remove()}),_this._impl.slideInRight(more,function(){return _this._impl.trigger("transitiondone")})}}(this))):"fade"===transition?(this.info("fade"),"transparent"!==oldImpl._opts.wmode&&(oldImpl.grid.center.style.backgroundColor="#000"),null!=more.time&&(more.time=Math.round(more.time/2)),oldImpl.fadeOut(more,function(_this){return function(){var ref8;return oldImpl.remove(),"transparent"!==_this._impl._opts.wmode&&null!=(ref8=_this._impl.grid)&&(ref8.center.style.backgroundColor="#000"),_this._impl.embed(oldImpl),whenAutoPlayOrEmbedded.then(function(){return _this._impl.fadeIn(more,function(){var ref9;return null!=(ref9=_this._impl)&&(ref9.grid.center.style.backgroundColor=""),_this._impl.trigger("transitiondone")})})}}(this))):"crossfade"===transition?(this.info("crossfade"),oldImpl.grid&&elemStyle(oldImpl.grid.root,{position:"absolute",zIndex:0}),elemStyle(this._impl.grid.root,{zIndex:1}),this._impl.embed(oldImpl),whenAutoPlayOrEmbedded.then(function(_this){return function(){return _this._impl.fadeIn(more,function(){return oldImpl.remove(),elemStyle(_this._impl.grid.root,{zIndex:""}),_this._impl.trigger("transitiondone")})}}(this))):(this.info("no transition"),this._impl.embed(oldImpl),oldImpl.remove(),whenAutoPlayOrEmbedded.then(function(_this){return function(){return setTimeout(function(){return _this._impl.trigger("transitiondone")},0)}}(this)))},PublicApi.prototype._clobberVideoBindings=function(){var k,ref8,results,v;for(k in ref8=this._bindings,results=[],ref8)v=ref8[k],"afterreplace"===k||"beforereplace"===k||"all"===k?results.push(void 0):results.push(this.unbind(k));return results},PublicApi.prototype._replaceMode=function(fn){return this.info("_replaceMode",!0),this._impl._replacing=!0,fn(),this._impl.embedded(function(_this){return function(){return _this._impl._replacing=!1,_this.info("_replaceMode",!1)}}(this))},PublicApi.prototype.remove=function(opts){var ref10,ref11,ref12,ref13,ref14,ref15,ref8,ref9;return null==opts&&(opts={}),this.info("remove"),this.trigger("down"),this.trigger("beforeremove"),this._freeEmbedSlot(),null!=(ref8=this.elem())&&null!=(ref9=ref8.mux)&&"function"==typeof ref9.destroy&&ref9.destroy(),this.removeSwatch(),this._implExec("remove",{trigger:!1}),this._hasImpl(!1),this._removeJsonLd(),null!=(ref10=this.popover)&&"function"==typeof ref10.remove&&ref10.remove(),null!=(ref11=this._impl)&&ref11.stopStreaming(),null!=(ref12=this._intersectionObserver)&&ref12.disconnect(),elemUnbindAll(this._foamDummyElem),elemRemove(this._foamDummyElem),null!=(ref13=W.eventLoop)&&ref13.remove(this.uuid),clearTimeouts(this.uuid),this._unbindListeners(),elemRemove(this.chrome),wRemoveData(["video",this.uuid]),this.trigger("afterremove"),this._bindings={},this.container.wistiaApi=opts.unsetWistiaApiOnContainer?void 0:"removed",this._impl=null,null!=(ref14=window.__wistiaStores)&&(ref14[this.uuid]=null),null==(ref15=window.__wistiaStores)?void 0:delete ref15[this.uuid]},PublicApi.prototype.removeSwatch=function(){var swatch;if(swatch=this.container.querySelector(".wistia_swatch"),swatch)return elemRemove(swatch)},PublicApi.prototype.fullRemove=function(){var container,embedContainer,popoverContainer;return embedContainer=this._embedContainer,popoverContainer=this._popoverContainer,container=this.container,this.remove(),elemRemove(embedContainer),elemRemove(popoverContainer),elemRemove(container),this.container=this._embedContainer=null,this},PublicApi.prototype.isRemoved=function(){return!wData(["video",this.uuid])},PublicApi.prototype._unbindListeners=function(){if(elemUnbindAllInside(this.chrome),this._throttleTriggerViewport&&elemUnbind(window,"scroll",this._throttleTriggerViewport),this._doResize)return elemUnbind(window,"resize",this._doResize)},PublicApi.prototype._saveState=function(){var ref8;return this._savedState={state:this.state(),time:this.time(),volume:this.volume(),inFullscreen:this.inFullscreen(),uuid:null==(ref8=this._impl)?void 0:ref8.uuid}},PublicApi.prototype.suspend=function(){var ref8;if(!this._suspended)return this._saveState(),this.info("suspend",clone(this._savedState)),this.pause(),this.suppressPlay(!0),((null==(ref8=this._impl)?void 0:"function"==typeof ref8._inNativeMode?ref8._inNativeMode():void 0)||!W.detect.fullscreenEnabled)&&this.cancelFullscreen(),this._suspended=!0,this._suspendPlayBinding=function(_this){return function(){return _this.pause()}}(this),this._suspendSeekBinding=function(_this){return function(){return _this.pause(),_this.time(_this._savedState.time)}}(this),this.bind("play",this._suspendPlayBinding),this.bind("seek",this._suspendSeekBinding),this.trigger("suspendstatechange",!0),this},PublicApi.prototype.unsuspend=function(newState){var ref8,saved,seekOptions;if(null==newState&&(newState={}),!!this._suspended)return(saved=merge({},this._savedState,newState),this.info("unsuspend",clone(saved)),this._suspended=!1,this.unbind("play",this._suspendPlayBinding),this.unbind("seek",this._suspendSeekBinding),saved.uuid!==(null==(ref8=this._impl)?void 0:ref8.uuid))?this:(this.suppressPlay(!1),this.volume(saved.volume),seekOptions={pause:"playing"!==saved.state},null!=saved.time&&.5<Math.abs(saved.time-this.time())&&("ended"===saved.state?"flash"===this.playerType&&1800<this.duration()?this.time(saved.time-10,seekOptions):this.time(saved.time-1,seekOptions):this.time(saved.time,seekOptions)),"playing"===saved.state&&this.play(),this.trigger("suspendstatechange",!1),this)},PublicApi.prototype._setupBindings=function(){return this.bind("afterend",function(_this){return function(){return _this.playlistShouldAutoAdvance()?_this._suspended?_this.bind("suspendstatechange",function(isSuspended){if(!1===isSuspended)return"ended"===_this.state()&&_this._nextEmbedOrPlaylistLoop(),_this.unbind}):_this._nextEmbedOrPlaylistLoop():void 0}}(this)),this.bind("widthchange",function(_this){return function(){var ref8,ref9;return null!=(ref8=_this._impl)&&(ref8._width=_this._width=_this.width()),null==(ref9=_this._impl)?void 0:ref9._videoWidth=_this._videoWidth=_this.videoWidth()}}(this)),this.bind("heightchange",function(_this){return function(){return _this._impl._height=_this._height=_this.height(),_this._impl._videoHeight=_this._videoHeight=_this.videoHeight()}}(this)),window.IntersectionObserver?(this.looksUp()&&(this.inViewport(this._isInViewportNow()),this.inViewport()?this.trigger("enterviewport"):this.trigger("leaveviewport")),this._intersectionObserver=new IntersectionObserver(function(_this){return function(entries){return entries[0].isIntersecting?(_this.trigger("enterviewport"),_this.inViewport(!0)):(_this.trigger("leaveviewport"),_this.inViewport(!1))}}(this)),this._intersectionObserver.observe(this.container)):top===self?(null==this._throttleTriggerViewport&&(this._throttleTriggerViewport=throttle(300,function(_this){return function(){var inViewportNow;return(inViewportNow=_this._isInViewportNow(),inViewportNow&&!_this._inViewport)?(_this._inViewport=!0,_this.inViewport(!0),_this.trigger("enterviewport")):!inViewportNow&&_this._inViewport?(_this._inViewport=!1,_this.inViewport(!1),_this.trigger("leaveviewport")):void 0}}(this))),elemRebind(window,"scroll",this._throttleTriggerViewport),this.bind("initembed",this._throttleTriggerViewport),this.bind("up",this._throttleTriggerViewport),this.looksUp()&&this._throttleTriggerViewport()):(this._inViewport=!0,this.inViewport(!0)),elemRebind(window,"resize",this._doResize)},PublicApi.prototype._nextEmbedOrPlaylistLoop=function(){return this.nextVideo()?this.embedNext():this._attrs.playlistLoop?(this.info("playlistLoop"),this.embedIndex(0,{autoPlay:!0})):void 0},PublicApi.prototype._isInViewportNow=function(){var offset,offsetBottom,offsetTop,scrollBottom,scrollTopDistance;return!(this.down()||this.looksDown())&&(!(window.IntersectionObserver||top===self)||(offset=elemOffset(this.container),offsetTop=offset.top,offsetBottom=offsetTop+elemHeight(this.container),scrollTopDistance=scrollTop(),scrollBottom=scrollTop()+elemHeight(window),offsetTop>=scrollTopDistance&&offsetTop<scrollBottom||offsetBottom>=scrollTopDistance&&offsetBottom<scrollBottom||offsetTop<=scrollTopDistance&&offsetBottom>=scrollBottom))},PublicApi.prototype._pauseEventLoop=function(){var ref8;if(W.eventLoop.pause(this.uuid),null==(ref8=this._impl)?void 0:ref8.uuid)return W.eventLoop.pause(this._impl.uuid)},PublicApi.prototype._unpauseEventLoop=function(){var ref8;if(W.eventLoop.unpause(this.uuid),null==(ref8=this._impl)?void 0:ref8.uuid)return W.eventLoop.unpause(this._impl.uuid)},PublicApi.prototype.playlistIndex=function(){return this._playlistIndexOf(this.hashedId())},PublicApi.prototype.nextVideo=function(){return 0<=this.playlistIndex()?this._playlist[this.playlistIndex()+1]||null:null},PublicApi.prototype.previousVideo=function(){return 0<this.playlistIndex()?this._playlist[this.playlistIndex()-1]||null:null},PublicApi.prototype._playlistIndexOf=function(hashedId){var i,j,ref8,ref9;for(i=j=0,ref8=this._playlist.length;0<=ref8?j<=ref8:j>=ref8;i=0<=ref8?++j:--j)if((null==(ref9=this._playlist[i])?void 0:ref9.hashedId)===hashedId)return i;return-1},PublicApi.prototype._inPlaylist=function(hashedId){return 0<=this._playlistIndexOf(hashedId)},PublicApi.prototype._setTransitionOptions=function(options){if(options.transition||(options.transition=this._opts.playlistTransition||"fade"),options.transitionTime||(options.transitionTime=this._opts.playlistTransitionTime),options.playlistIndex&&"slide"===options.transition)return options.playlistIndex>=this._playlistIndex?options.transition="slideleft":options.transition="slideright"},PublicApi.prototype.embedNext=function(extra){var options,video;return video=this.nextVideo(),this.info("embedNext",video),options=merge({autoPlay:!0,resumable:!1},video.options,extra),options.playlistIndex=this._playlistIndex+1,options.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this._setTransitionOptions(options),this.replaceWith(video.hashedId,options)},PublicApi.prototype.embedPrevious=function(extra){var options,video;return video=this.previousVideo(),this.info("embedPrevious",video),options=merge({autoPlay:!0,resumable:!1},video.options,extra),options.playlistIndex=this._playlistIndex-1,options.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this.replaceWith(video.hashedId,options)},PublicApi.prototype.embedIndex=function(index,extra){var options,video;return video=this._playlist[index],this.info("embedIndex",index,video),options=merge({autoPlay:!0},video.options,extra),options.playlistIndex=index,options.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this.replaceWith(video.hashedId,options)},PublicApi.prototype.addToPlaylist=function(hashedIds,embedOptions,positionOptions){var entry,hashedId,j,len,ref10,ref8,ref9;for(null==embedOptions&&(embedOptions={}),null==positionOptions&&(positionOptions={}),null==this._playlist&&(this._playlist=[]),ref8=toArray(hashedIds),(j=0,len=ref8.length);j<len;j++)hashedId=ref8[j],entry={hashedId:hashedId,options:embedOptions},positionOptions=clone(positionOptions),positionOptions.after?positionOptions.detect=function(v){return v.hashedId===positionOptions.after}:positionOptions.before&&(positionOptions.detect=function(v){return v.hashedId===positionOptions.before}),this.info("addToPlaylist",entry,positionOptions),insertIntoArray(this._playlist,entry,positionOptions),hashedId===(null==(ref9=this.nextVideo())?void 0:ref9.hashedId)?this.prefetchMedia(hashedId,embedOptions):hashedId===(null==(ref10=this.previousVideo())?void 0:ref10.hashedId)&&this.prefetchMedia(hashedId,embedOptions);return this.info("updated _playlist",clone(this._playlist)),this.trigger("playlistchange",this._playlist),this._playlist},PublicApi.prototype.setPlaylist=function(hashedIds,embedOptions){return null==embedOptions&&(embedOptions={}),this._playlist=[],this.addToPlaylist(hashedIds,embedOptions),this._playlistIndex=this._playlistIndexOf(this.hashedId()),this.trigger("playlistchange",this._playlist)},PublicApi.prototype.playlistShouldAutoAdvance=function(){return null==this._playlistShouldAutoAdvance||this._playlistShouldAutoAdvance},PublicApi.prototype.setPlaylistShouldAutoAdvance=function(bool){return this._playlistShouldAutoAdvance=bool},PublicApi.prototype.prefetchNextMedia=function(){var next;if(!this._opts._inLegacyPlaylist&&(next=this.nextVideo()))return this.prefetchMedia(next.hashedId,next.options)},PublicApi.prototype.prefetchMedia=function(hashedId,options){return this.info("@prefetchMedia",hashedId),W.remote.media(hashedId,function(_this){return function(mediaData){var opts;return _this.info("prefetched",hashedId),opts=_this._gatherOptions({givenOptions:options,mediaData:mediaData,hashedId:mediaData.hashedId,container:_this.container}),prefetchEngineAndPlugins(mediaData,opts)}}(this),options)},PublicApi.prototype.addPlugin=function(name,options){return null==options&&(options={}),this.info("addPlugin",name,options),new Promise(function(_this){return function(resolve){return _this._hasImpl(function(){return _this.hasPlugin(name)||W.plugin._inject(_this,name,options),_this.plugin(name).then(function(plugin){return resolve(plugin)})})}}(this))},PublicApi.prototype.hasPlugin=function(name){return!!this.plugin[name]},PublicApi.prototype.turnOffPluginApis=function(){var base,pluginHandle,pluginName,ref8,results;for(pluginName in this.info("turnOffPluginApis"),ref8=this.plugin,results=[],ref8)pluginHandle=ref8[pluginName],results.push("function"==typeof(base=this._pluginStopGos)[pluginName]?base[pluginName](!1):void 0);return results},PublicApi.prototype.removePlugin=function(name){var e,plugin,ref8;if(plugin=this.plugin[name],!!plugin){try{"function"==typeof plugin.remove&&plugin.remove()}catch(error1){e=error1,setTimeout(function(_this){return function(){throw e}}(this),0)}return delete this.plugin[name],(null==(ref8=this._impl.plugin)?void 0:ref8[name])&&delete this._impl.plugin[name],plugin.uuid&&this.plugins&&(delete this.plugins[this.uuid],wRemoveData(["plugins",name,this.uuid,plugin.uuid])),this.fit(),this.trigger("pluginremoved",name)}},PublicApi.prototype.removePlugins=function(){var pluginHandle,pluginName,ref8,results;for(pluginName in this.info("removePlugins"),ref8=this.plugin,results=[],ref8)pluginHandle=ref8[pluginName],results.push(this.removePlugin(pluginName));return results},PublicApi.prototype.containerWidth=function(){return this._attrs.rawEmbed?elemWidth(this._embedContainer):elemWidth(window)},PublicApi.prototype.containerHeight=function(){return this._attrs.rawEmbed?elemHeight(this._embedContainer):elemHeight(window)},PublicApi.prototype._goToDownState=function(){var ref8;return this.info("_goToDownState"),this._stateBeforeDown=this._lastState,this.up(!1),this.down(!0),null!=(ref8=this._impl.engine)&&ref8.pause(),this.ready(!1),this.trigger("down")},PublicApi.prototype._goToUpState=function(){var ref8;return this.info("_goToUpState"),this.down(!1),this._ignoreUp=!0,this._doSizing(),this._ignoreUp=!1,this.up(!0),this.ready(!1),"flash"===this.embedType?this.rebuild():(this.fit(),null!=(ref8=this._impl)&&ref8.checkForReady(),"playing"===this._stateBeforeDown&&this.play()),this.trigger("up")},PublicApi.prototype._checkDownState=function(){var looksDown;return(looksDown=this.looksDown(),this.up()&&looksDown)?(this.info("moving to down state"),this._goToDownState()):this.down()&&!looksDown?(this.info("moving to up state"),this._goToUpState()):void 0},PublicApi.prototype._removeHandleIfGoneFromDOM=function(){return!!this.embedded()&&(this.elem()?this._embedContainer&&!this._embedContainer.parentNode&&(this.warn("container removed from DOM",this._embedContainer.id),this.remove({unsetWistiaApiOnContainer:!0}),!0):(this.warn("video element removed from DOM",this._embedContainer.id),this.remove(),!0))},PublicApi.prototype._doFoam=function(){var dims,distanceFromEdge,newHeight,newVideoHeight,newVideoWidth,newWidth,parentWidthNow,smallestDim,winAspect,winHeight,winWidth;if(null==this._parentBoxSizing&&(this._parentBoxSizing=elemStyle(this._embedContainer.parentNode,"box-sizing")),this.popover?(winWidth=elemWidth(window),winHeight=elemHeight(window),winAspect=winWidth/winHeight,smallestDim=Math.min(winWidth,winHeight),distanceFromEdge=500<smallestDim?160:.2>Math.abs(winAspect-this.aspect())?.2*smallestDim:.1*smallestDim,parentWidthNow=winAspect>this.aspect()?Math.round((winHeight-distanceFromEdge)*this.aspect()):winWidth-distanceFromEdge):"border-box"===this._parentBoxSizing?(!this._foamDummyElem&&(this._foamDummyElem=elemFromObject({class:"wistia_video_foam_dummy","data-source-container-id":this._embedContainer.id,style:{border:0,display:"block",height:0,margin:0,padding:0,position:"static",visibility:"hidden",width:"auto"}}),elemBefore(this._embedContainer,this._foamDummyElem)),parentWidthNow=elemWidth(this._foamDummyElem)):parentWidthNow=elemWidth(this._embedContainer.parentNode),!isNaN(parentWidthNow)&&(this._lastParentWidth!==parentWidthNow||!this._didFoam))return this._didFoam=!0,newWidth=parentWidthNow,newVideoWidth=newWidth-this.extraWidth(),newVideoHeight=this.heightForWidth(newVideoWidth),newHeight=newVideoHeight+this.extraHeight(),dims=this.videoFoam(),dims.maxHeight&&newHeight>dims.maxHeight&&(newHeight=dims.maxHeight,newVideoHeight=newHeight-this.extraHeight(),newVideoWidth=this.widthForHeight(newVideoHeight),newWidth=newVideoWidth+this.extraWidth()),dims.maxWidth&&newWidth>dims.maxWidth&&(newWidth=dims.maxWidth,newVideoWidth=newWidth-this.extraWidth(),newVideoHeight=this.heightForWidth(newVideoWidth),newHeight=newVideoHeight+this.extraHeight()),dims.minHeight&&newHeight<dims.minHeight&&(newHeight=dims.minHeight,newVideoHeight=newHeight-this.extraHeight(),newVideoWidth=this.widthForHeight(newVideoHeight),newWidth=newVideoWidth+this.extraWidth()),dims.minWidth&&newWidth<dims.minWidth&&(newWidth=dims.minWidth,newVideoWidth=newWidth-this.extraWidth(),newVideoHeight=this.heightForWidth(newVideoWidth),newHeight=newVideoHeight+this.extraHeight()),this.info("videoFoam set width",newWidth),this.width(newWidth,{constrain:!0}),this._lastParentWidth=parentWidthNow},PublicApi.prototype._allowFoam=function(){var ref8;return this._hasImpl()&&this.grid&&(this.up()||this._ignoreUp)&&this.looksUp()&&this._attrs.rawEmbed&&(this._attrs.videoFoam||(null==(ref8=this.popover)?void 0:ref8.isResponsive()))&&!this.isAudio()},PublicApi.prototype._allowContainerMatch=function(){return(this.up()||this._ignoreUp)&&!this._opts.dontMonitorSize&&!this.inFullscreen()},PublicApi.prototype._doContainerMatch=function(){var heightNow,widthNow;if(widthNow=this.containerWidth(),heightNow=this.containerHeight(),this._lastWidth!==widthNow&&(this.notice("container width changed to "+widthNow+", matching"),this.width(widthNow,{dontChangeContainer:!0}),this.info("_doContainerMatch set width",widthNow),this.trigger("widthchange",widthNow,this._lastWidth),this._lastWidth=widthNow),this._lastHeight!==heightNow)return this.notice("container height changed to "+heightNow+", matching"),this.height(heightNow,{dontChangeContainer:!0}),this.trigger("heightchange",heightNow,this._lastHeight),this._lastHeight=heightNow},PublicApi.prototype.monitor=function(){return this.info("monitor"),this._lastWidth=this._attrs.startingWidth,this._lastHeight=this._attrs.startingHeight,this._lastParentWidth=this.width(),this._didFoam=!1,this._hasImpl(function(_this){return function(){return W.eventLoop.add(_this.uuid+".monitor",500,_this._doMonitor)}}(this))},PublicApi.prototype._doMonitor=function(){if(!this._removeHandleIfGoneFromDOM())return this._checkDownState(),this.chrome&&!elemInDom(this.chrome)&&(this.notice("Chrome was removed from DOM. Injecting it back in."),elemAppend(this._embedContainer,this.chrome)),this._doSizing()},PublicApi.prototype._doSizing=function(){return this.popover?this.popover.fixedSizeTooBigForWindow()?this._doFoam():this._opts.popoverSize?(this._lastWidth=this.width(),this._lastHeight=this.height(),this.width(this._popoverSize().width),this.height(this._popoverSize().height)):this._doFoam():this._allowFoam()?this._doFoam():this._allowContainerMatch()?this._doContainerMatch():void 0},PublicApi.prototype.looksDown=function(){return!this._embedContainer||!elemInDom(this._embedContainer)||elemIsHidden(this._embedContainer)},PublicApi.prototype.looksUp=function(){return!this.looksDown()},PublicApi.prototype._doResize=function(){return"function"==typeof this._throttleTriggerViewport&&this._throttleTriggerViewport(),this._debounceDoMonitor||this.embedded(function(_this){return function(){return requestAnimationFrame(function(){return _this._doMonitor(),_this._debounceDoMonitor=!1})}}(this)),this._debounceDoMonitor=!0},PublicApi.prototype._definePluginMethod=function(){return this.plugin?void 0:this.plugin=function(_this){return function(name,fn){var stopGo;return(stopGo=_this._pluginStopGos[name])||(stopGo=_this._pluginStopGos[name]=new StopGo,stopGo(!!_this.plugin[name],_this.plugin[name])),fn?stopGo(function(){return fn(_this.plugin[name])}):stopGo}}(this)},PublicApi.prototype.videoFoam=function(setValue){return null==setValue?this._attrs.videoFoam||!1:(this.info("videoFoam",setValue),this._attrs.videoFoam=setValue,this.monitor(),setValue)},PublicApi.prototype._formattedDurationToSeconds=function(dur){return W.TimeHelper.isValidHumanDuration(dur)?W.TimeHelper.humanDurationToSeconds(dur):W.TimeHelper.isValidIso8601(dur)?W.TimeHelper.iso8601ToSeconds(dur):dur},PublicApi.prototype._transformAndUpdateMediaData=function(){var ref10,ref8,ref9;return this._mediaData=mediaDataTransforms(this._originalMediaData,this._opts),null!=(ref8=this._impl)&&null!=(ref9=ref8.engine)&&ref9.onMediaDataChanged(this._mediaData,this._opts),null==(ref10=this._impl)?void 0:ref10._mediaData=this._mediaData},PublicApi.prototype.specialBind=function(){var args,event,fn,t,t1,t2;return event=arguments[0],args=2<=arguments.length?slice.call(arguments,1):[],"crosstime"===event?(t=args[0],fn=args[1],this.onCrossTime(t,fn),function(_this){return function(){return _this.unbindOnCrossTime(t,fn)}}(this)):"betweentimes"===event&&(t1=args[0],t2=args[1],fn=args[2],this.betweenTimes(t1,t2,fn),function(_this){return function(){return _this.unbindBetweenTimes(t1,t2,fn)}}(this))},PublicApi.prototype.specialUnbind=function(){var args,event,fn,t,t1,t2;return event=arguments[0],args=2<=arguments.length?slice.call(arguments,1):[],"crosstime"===event?(t=args[0],fn=args[1],this.unbindOnCrossTime(t,fn),!0):"betweentimes"===event&&(t1=args[0],t2=args[1],fn=args[2],this.unbindBetweenTimes(t1,t2,fn),!0)},PublicApi.prototype.onCrossTime=function(t,fn){var afterT,base,runFn,setupTimeoutFromNow,setupTimeoutFromNowIfClose,suspendTimeoutIndefinitely,timeoutKey;if(!/^(\d+\.)?\d+$/.test(t))throw"onCrossTime: Expected first argument to be a number";if("function"!=typeof fn)throw"onCrossTime: Expected second argument to be a function";return null==this._onCrossTimeBindings&&(this._onCrossTimeBindings={}),null==(base=this._onCrossTimeBindings)[t]&&(base[t]=[]),timeoutKey=this.uuid+"."+uniqId("after_time_"),afterT=this.time()>t,runFn=function(_this){return function(){var result;return _this.time()<t?setupTimeoutFromNow():!afterT&&(afterT=!0,result=fn.call(_this),result===_this.unbind)?_this.unbindOnCrossTime(t,fn):void 0}}(this),setupTimeoutFromNow=function(_this){return function(){return _this.time()>=t?(clearTimeouts(timeoutKey),runFn()):afterT?void 0:doTimeout(timeoutKey,runFn,1e3*(t-_this.time()))}}(this),setupTimeoutFromNowIfClose=function(_this){return function(){if(_this.time()<t){if(afterT=!1,2>t-_this.time())return setupTimeoutFromNow();}else if(!afterT)return runFn()}}(this),suspendTimeoutIndefinitely=function(_this){return function(){return clearTimeouts(timeoutKey)}}(this),this.bind("play",setupTimeoutFromNowIfClose),this.bind("timechange",setupTimeoutFromNowIfClose),this.bind("pause",suspendTimeoutIndefinitely),this.bind("end",suspendTimeoutIndefinitely),this.bind("waiting",suspendTimeoutIndefinitely),"playing"!==this.state()||afterT||setupTimeoutFromNowIfClose(),this._onCrossTimeBindings[t].push({fn:fn,setupTimeoutFromNowIfClose:setupTimeoutFromNowIfClose,suspendTimeoutIndefinitely:suspendTimeoutIndefinitely}),this},PublicApi.prototype.unbindOnCrossTime=function(t,fn){var bindings,hash,index,j,len,ref8;if(!(this._onCrossTimeBindings&&this._onCrossTimeBindings[t]))return this;for(bindings=null,index=0,ref8=this._onCrossTimeBindings[t],(j=0,len=ref8.length);j<len;j++){if(hash=ref8[j],hash.fn===fn){bindings=hash;break}index+=1}return bindings?(this.unbind("play",bindings.setupTimeoutFromNowIfClose),this.unbind("timechange",bindings.setupTimeoutFromNowIfClose),this.unbind("pause",bindings.suspendTimeoutIndefinitely),this.unbind("end",bindings.suspendTimeoutIndefinitely),this.unbind("waiting",bindings.suspendTimeoutIndefinitely),this._onCrossTimeBindings[t].splice(index,1),0===this._onCrossTimeBindings[t].length&&delete this._onCrossTimeBindings[t],this):this},PublicApi.prototype.betweenTimes=function(t1,t2,fn){var base,onTimechange,timeKey,withinInterval;if(!(/^(\d+\.)?\d+$/.test(t1)&&/^(\d+\.)?\d+$/.test(t2)))throw"betweenTimes: Expected first two arguments to be numbers";if("function"!=typeof fn)throw"betweenTimes: Expected second argument to be a function";return timeKey=t1+"-"+t2,null==this._betweenTimeBindings&&(this._betweenTimeBindings={}),null==(base=this._betweenTimeBindings)[timeKey]&&(base[timeKey]=[]),withinInterval=!1,onTimechange=function(_this){return function(){var result,t;if(t=_this.time(),t1<=t&&t<t2&&!withinInterval?(withinInterval=!0,result=fn.call(_this,withinInterval)):!(t1<=t&&t<t2)&&withinInterval&&(withinInterval=!1,result=fn.call(_this,withinInterval)),result===_this.unbind)return _this.unbindBetweenTimes(t1,t2,fn)}}(this),this.onCrossTime(t1,onTimechange),this.onCrossTime(t2,onTimechange),this.bind("timechange",onTimechange),onTimechange(),this._betweenTimeBindings[timeKey].push({fn:fn,onTimechange:onTimechange}),this},PublicApi.prototype.unbindBetweenTimes=function(t1,t2,fn){var bindings,hash,index,j,len,ref8,timeKey;if(timeKey=t1+"-"+t2,!this._betweenTimeBindings[timeKey])return this;for(bindings=null,index=0,ref8=this._betweenTimeBindings[timeKey],(j=0,len=ref8.length);j<len;j++){if(hash=ref8[j],hash.fn===fn){bindings=hash;break}index+=1}return bindings?(this.unbindOnCrossTime(t1,bindings.onTimechange),this.unbindOnCrossTime(t2,bindings.onTimechange),this.unbind("timechange",bindings.onTimechange),this._betweenTimeBindings[timeKey].splice(index,1),0===this._betweenTimeBindings[timeKey].length&&delete this._betweenTimeBindings[timeKey],this):this},PublicApi.prototype.aspect=function(){return this._implGet("aspect",0)},PublicApi.prototype.asset=function(){return this._implGet.apply(this,["asset",null].concat(slice.call(arguments)))},PublicApi.prototype.assets=function(){return this._implGet.apply(this,["assets",null].concat(slice.call(arguments)))},PublicApi.prototype.audioDescriptionControlEnabled=function(){return this._implSetOrGet.apply(this,["audioDescriptionControlEnabled",!1].concat(slice.call(arguments)))},PublicApi.prototype.bigPlayButtonEnabled=function(){return this._implSetOrGet.apply(this,["bigPlayButtonEnabled",!1].concat(slice.call(arguments)))},PublicApi.prototype.bigPlayButtonTimeEnabled=function(){return this._implSetOrGet.apply(this,["bigPlayButtonTimeEnabled",!1].concat(slice.call(arguments)))},PublicApi.prototype.cancelOverlay=function(){return this._implPromise.apply(this,["cancelOverlay"].concat(slice.call(arguments)))},PublicApi.prototype.cancelFullscreen=function(){return this._implExec("cancelFullscreen")},PublicApi.prototype.captureCurrentFrame=function(){return this._implGet.apply(this,["captureCurrentFrame",null].concat(slice.call(arguments)))},PublicApi.prototype.closeTabMenu=function(){return this._implExec("closeTabMenu")},PublicApi.prototype.controlScaling=function(){return this._implSetOrGet.apply(this,["controlScaling","auto"].concat(slice.call(arguments)))},PublicApi.prototype.createControl=function(){return this._implGet.apply(this,["createControl",null].concat(slice.call(arguments)))},PublicApi.prototype.defineOverlay=function(){return this._implExec.apply(this,["defineOverlay"].concat(slice.call(arguments)))},PublicApi.prototype.destroyControl=function(){return this._implExec.apply(this,["destroyControl"].concat(slice.call(arguments)))},PublicApi.prototype.duration=function(){return this._implGet("duration",null)},PublicApi.prototype.embedded=function(){return this._implSetOrGet.apply(this,["embedded",!1].concat(slice.call(arguments)))},PublicApi.prototype.embedOptions=function(){return this._hasImpl()?this._implGet.apply(this,["embedOptions",{}].concat(slice.call(arguments))):this._embedOptions?this._embedOptions:this._embedOptions=this._gatherOptions()},PublicApi.prototype.enterInputContext=function(){return this._implExec.apply(this,["enterInputContext"].concat(slice.call(arguments)))},PublicApi.prototype.eventKey=function(){return this._implGet("eventKey",null)},PublicApi.prototype.exitInputContext=function(){return this._implExec.apply(this,["exitInputContext"].concat(slice.call(arguments)))},PublicApi.prototype.extraHeight=function(){return this._implGet("extraHeight",0)},PublicApi.prototype.extraWidth=function(){return this._implGet("extraWidth",0)},PublicApi.prototype.fit=function(){return this._implExec("fit")},PublicApi.prototype.fullscreenButtonEnabled=function(){return this._implSetOrGet.apply(this,["fullscreenButtonEnabled",!1].concat(slice.call(arguments)))},PublicApi.prototype.focus=function(){return this._implPromise.apply(this,["focus"].concat(slice.call(arguments)))},PublicApi.prototype.getBuffered=function(){return this._implGet("getBuffered",[])},PublicApi.prototype.getFocusedChapter=function(){return this._implGet("getFocusedChapter",null)},PublicApi.prototype.getInputContext=function(){return this._implGet("getInputContext",[])},PublicApi.prototype.getMediaElement=function(){return this._implGet("getMediaElement",null)},PublicApi.prototype.getMediaType=function(){return this._implGet("getMediaType",null)},PublicApi.prototype.getOverlays=function(){return this._implGet("getOverlays",{})},PublicApi.prototype.getRegion=function(){return this._implGet.apply(this,["getRegion",null].concat(slice.call(arguments)))},PublicApi.prototype.hasData=function(){return this._implSetOrGet.apply(this,["hasData",!1].concat(slice.call(arguments)))},PublicApi.prototype.height=function(){return this._implSetOrGet.apply(this,["height",null].concat(slice.call(arguments)))},PublicApi.prototype.heightForWidth=function(){return this._implGet.apply(this,["heightForWidth",null].concat(slice.call(arguments)))},PublicApi.prototype.hideControls=function(){return this._implExec.apply(this,["hideControls",null].concat(slice.call(arguments)))},PublicApi.prototype.humanDuration=function(){return W.TimeHelper.secondsToHumanDuration(this.duration())},PublicApi.prototype.ieSizeHack=function(){return this._implExec("ieSizeHack")},PublicApi.prototype.inFullscreen=function(){return this._implGet("inFullscreen",!1)},PublicApi.prototype.inSilentPlaybackMode=function(){return this._implGet("inSilentPlaybackMode",!1)},PublicApi.prototype.isMuted=function(){return this._implGet("isMuted")},PublicApi.prototype.isResumableEnabled=function(){return this._implGet("isResumableEnabled")},PublicApi.prototype.lastPauseInfo=function(){return this._implGet("lastPauseInfo",{})},PublicApi.prototype.lastPlayInfo=function(){return this._implGet("lastPlayInfo",{})},PublicApi.prototype.layout=function(){return this._implSetOrGet.apply(this,["layout","primary"].concat(slice.call(arguments)))},PublicApi.prototype.look=function(){return this._implSetOrGet.apply(this,["look",{}].concat(slice.call(arguments)))},PublicApi.prototype.mp4Asset=function(){return this._implGet.apply(this,["mp4Asset",null].concat(slice.call(arguments)))},PublicApi.prototype.mute=function(){return this._implExec("mute")},PublicApi.prototype.playerLanguage=function(code){return code&&(this._wasPlayerLanguageSetViaApi=!0),this._implSetOrGet.apply(this,["playerLanguage","en-US"].concat(slice.call(arguments)))},PublicApi.prototype.name=function(){return this._implSetOrGet.apply(this,["name",""].concat(slice.call(arguments)))},PublicApi.prototype.openChaptersTab=function(){return this._implExec("openChaptersTab")},PublicApi.prototype.openShareTab=function(){return this._implExec("openShareTab")},PublicApi.prototype.openTabMenu=function(){return this._implExec("openTabMenu")},PublicApi.prototype.openTranscriptTab=function(){return this._implExec("openTranscriptTab")},PublicApi.prototype.originalAsset=function(){return this._implGet.apply(this,["originalAsset",null].concat(slice.call(arguments)))},PublicApi.prototype.pause=function(){return this._implExec("pause")},PublicApi.prototype.percentWatched=function(){return this._implGet("percentWatched",0)},PublicApi.prototype.playbarControlEnabled=function(){return this._implSetOrGet.apply(this,["playbarControlEnabled",!1].concat(slice.call(arguments)))},PublicApi.prototype.play=function(){return this._implExec("play")},PublicApi.prototype.playbackRate=function(){return this._implSetOrGet.apply(this,["playbackRate",1].concat(slice.call(arguments)))},PublicApi.prototype.playbackRateControlEnabled=function(){return this._implSetOrGet.apply(this,["playbackRateControlEnabled",!1].concat(slice.call(arguments)))},PublicApi.prototype.playerColor=function(){return this._implSetOrGet.apply(this,["playerColor","636155"].concat(slice.call(arguments)))},PublicApi.prototype.playerBackgroundColor=function(){return this._implSetOrGet.apply(this,["playerBackgroundColor","000000"].concat(slice.call(arguments)))},PublicApi.prototype.qualityControlEnabled=function(){return this._implSetOrGet.apply(this,["qualityControlEnabled",!1].concat(slice.call(arguments)))},PublicApi.prototype.requestFullscreen=function(){return this._implExec("requestFullscreen")},PublicApi.prototype.requestOverlay=function(){return this._implPromise.apply(this,["requestOverlay"].concat(slice.call(arguments)))},PublicApi.prototype.ready=function(){return this._implSetOrGet.apply(this,["ready",!1].concat(slice.call(arguments)))},PublicApi.prototype.releaseChromeless=function(){return this._implExec.apply(this,["releaseChromeless"].concat(slice.call(arguments)))},PublicApi.prototype.releaseControls=function(){return this._implExec.apply(this,["releaseControls"].concat(slice.call(arguments)))},PublicApi.prototype.requestChromeless=function(){return this._implExec.apply(this,["requestChromeless"].concat(slice.call(arguments)))},PublicApi.prototype.requestControls=function(){return this._implExec.apply(this,["requestControls"].concat(slice.call(arguments)))},PublicApi.prototype.secondsWatched=function(){return this._implGet("secondsWatched",0)},PublicApi.prototype.secondsWatchedVector=function(){return this._implGet("secondsWatchedVector",[])},PublicApi.prototype.selectableQualities=function(){return this._implGet("selectableQualities",[])},PublicApi.prototype.selectedQuality=function(){return this._implGet("selectedQuality",[])},PublicApi.prototype.setFocusedChapter=function(){return this._implSetOrGet.apply(this,["setFocusedChapter",null].concat(slice.call(arguments)))},PublicApi.prototype.settingsControlEnabled=function(){return this._implSetOrGet.apply(this,["settingsControlEnabled",!1].concat(slice.call(arguments)))},PublicApi.prototype.shouldResume=function(){return this._implGet("shouldResume")},PublicApi.prototype.showControls=function(){return this._implExec.apply(this,["showControls",null].concat(slice.call(arguments)))},PublicApi.prototype.smallPlayButtonEnabled=function(){return this._implSetOrGet.apply(this,["smallPlayButtonEnabled",!1].concat(slice.call(arguments)))},PublicApi.prototype.state=function(){return this._implGet("state","beforeplay")},PublicApi.prototype.stillUrl=function(){return this._implGet.apply(this,["stillUrl",null].concat(slice.call(arguments)))},PublicApi.prototype.suppressPlay=function(){return this._implSetOrGet.apply(this,["suppressPlay",this].concat(slice.call(arguments)))},PublicApi.prototype.thumbnailAssets=function(){return this._implGet("thumbnailAssets",[])},PublicApi.prototype.time=function(){var args,t;return t=arguments[0],args=2<=arguments.length?slice.call(arguments,1):[],null==t?this._implSetOrGet("time",0):this._implSetOrGet.apply(this,["time",0,this._formattedDurationToSeconds(t)].concat(slice.call(args)))},PublicApi.prototype.timeInHumanDuration=function(){return Wistia.TimeHelper.secondsToHumanDuration(this._implGet.apply(this,["time",0].concat(slice.call(arguments))))},PublicApi.prototype.timeInIso8601Duration=function(){return Wistia.TimeHelper.secondsToIso8601(this._implGet.apply(this,["time",0].concat(slice.call(arguments))))},PublicApi.prototype.trim=function(){return this._implSetOrGet.apply(this,["trim",{start:0,end:-1}].concat(slice.call(arguments)))},PublicApi.prototype.unmute=function(){return this._implExec("unmute")},PublicApi.prototype.undefineOverlay=function(){return this._implPromise.apply(this,["undefineOverlay"].concat(slice.call(arguments)))},PublicApi.prototype.videoHeight=function(){return this._implSetOrGet.apply(this,["videoHeight",null].concat(slice.call(arguments)))},PublicApi.prototype.videoQuality=function(){return this._implSetOrGet.apply(this,["videoQuality","auto"].concat(slice.call(arguments)))},PublicApi.prototype.videoWidth=function(){return this._implSetOrGet.apply(this,["videoWidth",null].concat(slice.call(arguments)))},PublicApi.prototype.visitorKey=function(){return W.visitorKey.ready()?W.visitorKey.value():null},PublicApi.prototype.volume=function(){return this._implSetOrGet.apply(this,["volume",0].concat(slice.call(arguments)))},PublicApi.prototype.volumeControlEnabled=function(){return this._implSetOrGet.apply(this,["volumeControlEnabled",!1].concat(slice.call(arguments)))},PublicApi.prototype.whenVideoElementInDom=function(){return new Promise(function(_this){return function(resolve){return _this._hasImpl(function(){return resolve(_this._implGet.apply(_this,["whenVideoElementInDom",null].concat(slice.call(arguments))))})}}(this))},PublicApi.prototype.width=function(){return this._implSetOrGet.apply(this,["width",null].concat(slice.call(arguments)))},PublicApi.prototype.widthForHeight=function(){return this._implGet.apply(this,["widthForHeight",null].concat(slice.call(arguments)))},PublicApi.prototype.chaptersEnabled=function(){return this._implSetOrGet.apply(this,["chaptersEnabled",null].concat(slice.call(arguments)))},PublicApi.prototype.chaptersVisibleOnLoad=function(){return this._implSetOrGet.apply(this,["chaptersVisibleOnLoad",null].concat(slice.call(arguments)))},PublicApi.prototype.addChapter=function(){return this._implExec.apply(this,["addChapter"].concat(slice.call(arguments)))},PublicApi.prototype.getChapter=function(){return this._implGet.apply(this,["getChapter",null].concat(slice.call(arguments)))},PublicApi.prototype.removeChapter=function(){return this._implExec.apply(this,["removeChapter"].concat(slice.call(arguments)))},PublicApi.prototype.chapters=function(){return this._implSetOrGet.apply(this,["chapters",[]].concat(slice.call(arguments)))},PublicApi.prototype.customerLogo=function(){return this._implExec.apply(this,["customerLogo"].concat(slice.call(arguments)))},PublicApi.prototype.setControlEnabled=function(handle,bool){return this._implSetOrGet("setControlEnabled",null,handle,bool)},PublicApi.prototype.isControlDisabled=function(handle){return this._implGet("isControlDisabled",!1,handle)},PublicApi.prototype.isControlEnabled=function(handle){return this._implGet("isControlEnabled",!1,handle)},PublicApi.prototype.whenControlMounted=function(handle){return this._implPromise("whenControlMounted",handle)},PublicApi.prototype.getControl=function(handle){return this._implGet("getControl",null,handle)},PublicApi.prototype.getEmail=function(){return this.email()},PublicApi.prototype.getEventKey=function(){return this.eventKey()},PublicApi.prototype.getVisitorKey=function(){return this.visitorKey()},PublicApi.prototype.setEmail=function(email){return this.email(email)},PublicApi.prototype.setPlayerColor=function(){return this._implExec.apply(this,["playerColor"].concat(slice.call(arguments)))},PublicApi.prototype.removeReadyFn=function(){var args;return args=1<=arguments.length?slice.call(arguments,0):[],this._hasImpl(function(_this){return function(){var ref8;return(ref8=_this._impl.ready).remove.apply(ref8,args)}}(this))},PublicApi.prototype.isKeyboardFocused=function(bool){return this._implSetOrGet("isKeyboardFocused",null,bool)},PublicApi.prototype.email=function(email){var lastEmail,ref8;return null==email?this._attrs.email||null:(this.info("email",email),lastEmail=this._attrs.email,this._attrs.email=email,W.localStorage([this._attrs.pageUrl,"trackEmail"],email),(null==(ref8=this._opts)?void 0:ref8.noDeprecatedProperties)||(this.params.trackEmail=email),this._implExec("email",email),email!==lastEmail&&this.trigger("emailchange",email),this)},PublicApi.prototype.foreignData=function(fd){var ref8,ref9;if(void 0===fd)return this._attrs.foreignData||this._foreignData||null;if(null===fd)return this._attrs.foreignData=null,this.trigger("foreigndatachange",fd);if(this.info("foreignData",fd),!isObject(fd))throw new Error("foreignData can only be an Object");return fd=clone(fd),this._attrs.foreignData=fd,null!=(ref8=this._impl)&&null!=(ref9=ref8.tracker)&&ref9.transmit({force:!0}),this.trigger("foreigndatachange",fd)},PublicApi.classFor=function(embedType){var ref8,result;return embedType instanceof W.Player?embedType=embedType.embedType:embedType instanceof W.PublicApi&&(embedType=null==(ref8=embedType._impl)?void 0:ref8.embedType),result=function(){return"vulcan"===embedType?W.VulcanPlayer:"vulcan-v2"===embedType?W.VulcanV2Player:"html5"===embedType?W.Html5Player:"flash"===embedType?W.FlashPlayer:"external"===embedType?W.ExternalPlayer:"notplayable"===embedType?W.NotPlayablePlayer:"passwordprotected"===embedType?W.PasswordProtectedPlayer:W.Player}(),result?result:(W.Metrics.count("player/"+embedType+"-class-not-defined",1,{ua:navigator.userAgent,detect:W.detect}),W.error("PublicApi.classFor: embedType is "+embedType+" but its class is not defined. Using 'vulcan-v2' instead."),W.VulcanV2Player)},PublicApi}(),W.mixin(W.PublicApi.prototype,W.bindable),oldTrigger=W.PublicApi.prototype.trigger,W.PublicApi.prototype._triggerNoImpl=function(){var args,event,ref8;return event=arguments[0],args=2<=arguments.length?slice.call(arguments,1):[],oldTrigger.call.apply(oldTrigger,[this,event].concat(slice.call(args))),null==(ref8=window.wistiaEmbeds)?void 0:ref8.trigger.apply(ref8,[event,this].concat(slice.call(args)))},W.PublicApi.prototype.trigger=function(){var args,ref8;return args=1<=arguments.length?slice.call(arguments,0):[],this._impl?(ref8=this._impl).trigger.apply(ref8,args):this._triggerNoImpl.apply(this,args)},W.mixin(W.PublicApi.prototype,W.logHelpers),W.PublicApi.prototype._logPrefix=function(){var ref8;return[this.constructor.name,this.hashedId()||"no hashedId",null==(ref8=this.container)?void 0:ref8.id,this.uuid]}})(Wistia);

/***/ }),

/***/ 117:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

(function(W){var Ajax,Assets,Hosts,MediaData,PlaylistData,ScriptUtils,appHostname,jsonp,jsonpPlus,ref;if(!W.remote)return appHostname=__webpack_require__(15),ScriptUtils=__webpack_require__(39),Assets=__webpack_require__(80),Hosts=W.Hosts=__webpack_require__(14),Ajax=W.Ajax=__webpack_require__(78),MediaData=W.MediaData=__webpack_require__(86),PlaylistData=W.PlaylistData=__webpack_require__(118),ref=__webpack_require__(79),jsonp=ref.jsonp,jsonpPlus=ref.jsonpPlus,W.remote={},W.remote.appHostname=appHostname,W.remote.embedHost=Hosts.cdnFastWistiaComHost,W.remote.externalEmbedHost=Hosts.cdnFastWistiaNetHost,W.remote.appHost=Hosts.appHost,W.remote.assetHost=Hosts.deliveryHost,W.remote.assetUrlWithCorrectHost=function(media,assetUrl,proto){return Assets.assetUrlWithCorrectHost(assetUrl,proto)},W.remote.findScriptInDomBySrc=ScriptUtils.findScriptInDomBySrc,W.remote.script=ScriptUtils.runScript,W.remote.scripts=ScriptUtils.runScripts,W.remote.scriptInputsToHash=ScriptUtils.scriptInputsToHash,W.remote.post=Ajax.ajaxPost,W.remote.ajax=Ajax.ajax,W.remote.canEditMedia=MediaData.canEditMedia,W.remote.media=MediaData.fetchMedia,W.cacheMedia=MediaData.cacheMedia,W.cacheAbTest=MediaData.cacheAbTest,W.uncacheMedia=MediaData.uncacheMedia,W.uncacheAbtest=MediaData.uncacheAbTest,W.mediaFromCache=MediaData.mediaFromCache,W.abTestFromCache=MediaData.abTestFromCache,W.remote.playlist=PlaylistData.fetchPlaylist,W.remote.fetch=jsonpPlus,W.jsonp={get:jsonp}})(Wistia);

/***/ }),

/***/ 121:
/***/ (function() {

(function(W){var seo;if(!W.seo)return seo=W.seo={},W.seo.inject=function(){}})(Wistia);

/***/ }),

/***/ 111:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

var Url,VideoTrackerLocalStorage,VideoTrackerSession,W,assign,convertIsUniqueValue,doTimeout,getResumableKeyForVideo,getUTMParams,isVisitorTrackingEnabled,merge,pageLoaded,ref,xhrPost,bind=function bind(fn,me){return function(){return fn.apply(me,arguments)}};W=__webpack_require__(1).default,isVisitorTrackingEnabled=__webpack_require__(42).isVisitorTrackingEnabled,ref=W.lib("utilities/obj"),assign=ref.assign,merge=ref.merge,getResumableKeyForVideo=__webpack_require__(70).getResumableKeyForVideo,doTimeout=__webpack_require__(33).doTimeout,xhrPost=__webpack_require__(25).xhrPost,Url=__webpack_require__(16).Url,pageLoaded=__webpack_require__(34).pageLoaded,merge=__webpack_require__(17).merge,VideoTrackerSession=__webpack_require__(112),VideoTrackerLocalStorage=__webpack_require__(114),convertIsUniqueValue=function(_this){return function(value){var ref1;return null==(ref1="none"===value)?{true:!1}:ref1}}(this),getUTMParams=function getUTMParams(video){var params;return params=new Url(video._attrs.pageUrl).params,{campaign:params.utm_campaign||null,medium:params.utm_medium||null,source:params.utm_source||null}},function(W){return W.VideoTracker2?void 0:W.VideoTracker2=function(){function VideoTracker2(publicApi){this.publicApi=publicApi,this.resendAllFailedEvents=bind(this.resendAllFailedEvents,this),this.retrySendingFailedEvent=bind(this.retrySendingFailedEvent,this),this.isIE=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/MSIE/),this.eventQueue=[],this.initializedOnce=!1,this.monitoring=!1,this._setStartValues(),this.publicApi.hasData(function(_this){return function(){_this.utmParams=getUTMParams(_this.publicApi),_this.params=merge({transmitInterval:1e3*(_this.publicApi._mediaData.trackingTransmitInterval||10)},_this.publicApi._opts),!_this.publicApi._attrs.shouldTrack}}(this)),this}return VideoTracker2.prototype.NUM_BUCKETS=1e3,VideoTracker2.prototype.conversions={"missing-conversion":0,"pre-roll-email":1,"post-roll-email":2,"mid-roll-email":3,"post-roll-click":4,"mid-roll-click":5,"non-video":6},VideoTracker2.prototype._setStartValues=function(){return this.clockStart=new Date().getTime(),this._played=!1,this.lastRecordedTime=0,this.lastSeekTime=0,this.lastBucket=-1},VideoTracker2.prototype._getAccountKey=function(){return this.publicApi._opts.accountKey||this.publicApi._mediaData.accountKey},VideoTracker2.prototype._data=function(){var result;return result=merge({account_key:this._getAccountKey(),event_details:this.eventQueue,foreign_data:this.publicApi.foreignData(),media_duration:parseFloat(this.publicApi._mediaData.duration),media_id:this.publicApi._mediaData.mediaKey,media_type:this._mediaType(),referrer:this.publicApi._attrs.pageUrl,resumable_key:this.resumableKey(),session_id:this.visitorKey(),utm_params:this.utmParams,visitor_version:this.videoTrackerLocalStorage.getVisitorVersion(),event_version:"1.0.0",player_type:"modern"},this.videoTrackerSession.fetchSessionData()),this.publicApi.email()&&(result.email=this.publicApi.email()),(this.publicApi._opts.anonymizeIp||!isVisitorTrackingEnabled())&&(result.anonymizeIp=!0),this.params.conversionType&&(result.conversion_type=this.conversions[this.params.conversionType]),this.params.conversionData&&(result.conversion_data=this.params.conversionData),this.publicApi._opts.channel&&(result.channel=this.publicApi._opts.channel),this.publicApi._mediaData.channelId&&(result.channel_id=this.publicApi._mediaData.channelId),this.publicApi._mediaData.episodeId&&(result.episode_id=this.publicApi._mediaData.episodeId),this.publicApi._mediaData.projectId&&(result.project_id=this.publicApi._mediaData.projectId),JSON.stringify(result)},VideoTracker2.prototype._mediaType=function(){return this.publicApi._mediaData.mediaType},VideoTracker2.prototype.reset=function(){return this.stopMonitoring(),this._setStartValues(),this.initializedOnce=!1},VideoTracker2.prototype.initialize=function(){return this.initializedOnce||(this.publicApi.info("video tracker initialize"),this.videoTrackerLocalStorage=new VideoTrackerLocalStorage(this._getAccountKey(),this.publicApi.hashedId(),function(_this){return function(){var ref1;return(ref1=_this.publicApi).info.apply(ref1,arguments)}}(this)),this._failedEventsQueue=[],this._retryTimer=null,this._retryInterval=1e3,this.initializedOnce=!0,this._setStartValues(),this.log("initialized"),this.videoTrackerLocalStorage.recordLoad(),this.debounceTransmit()),this},VideoTracker2.prototype.monitor=function(){return this.initializedOnce||this.publicApi.hasData(function(_this){return function(){return _this.videoTrackerSession=new VideoTrackerSession(_this.publicApi)}}(this)),this.publicApi.embedded(function(_this){return function(){return _this.stopMonitoring(),_this.publicApi.info("_tracker.monitor"),_this.initialize(),null==_this.onPlaybackRateChange&&(_this.onPlaybackRateChange=function(rate){return _this.log("playbackRateChange",null,rate)}),null==_this.onPlay&&(_this.onPlay=function(){if(_this.log("play"),_this.videoTrackerLocalStorage.recordPlay(),!_this._played)return _this._played=!0,_this.debounceTransmit()}),null==_this.onPause&&(_this.onPause=function(){if(.3<Math.abs(_this.publicApi.duration()-_this.publicApi.time()))return _this.log("pause")}),null==_this.onEnd&&(_this.onEnd=function(){return _this.log("end"),_this.transmit()}),null==_this.onSeek&&(_this.onSeek=function(t,lastT){if(!(5>Math.abs(lastT-t)))return _this.lastSeekTime=lastT,_this.log("seek")}),null==_this.onPercentWatchedThreshold&&(_this.onPercentWatchedThreshold=function(threshold){return _this.log("percentWatchedThreshold",null,threshold),_this.transmit()}),_this.monitoring=!0,_this.publicApi.rebind("play",_this.onPlay),_this.publicApi.rebind("pause",_this.onPause),_this.publicApi.rebind("end",_this.onEnd),_this.publicApi.rebind("seek",_this.onSeek),_this.publicApi.rebind("playbackratechange",_this.onPlaybackRateChange),_this.publicApi.rebind("percentWatchedThreshold",_this.onPercentWatchedThreshold),_this.videoTrackerSession.setupBindings(),"playing"===_this.publicApi.state()&&_this.onPlay(),doTimeout(_this.publicApi.uuid+".start_tracking_timeout",function(){return _this.publicApi.info("_tracker start tracking_loop"),W.eventLoop.add(_this.publicApi.uuid+".tracking_loop",_this.params.transmitInterval,function(){return"playing"===_this.publicApi.state()&&_this.log("update"),_this.transmit()})},Math.random()*_this.params.transmitInterval+1e3)}}(this))},VideoTracker2.prototype.stopMonitoring=function(){if(this.publicApi.info("_tracker.stopMonitoring"),this.monitoring=!1,this.onPlay&&this.publicApi.unbind("play",this.onPlay),this.onPause&&this.publicApi.unbind("pause",this.onPause),this.onEnd&&this.publicApi.unbind("end",this.onEnd),this.onSeek&&this.publicApi.unbind("seek",this.onSeek),this.onPercentWatchedChanged&&this.publicApi.unbind("percentwatchedchanged",this.onPercentWatchedChanged),this.videoTrackerSession)return this.videoTrackerSession.removeBindings()},VideoTracker2.prototype.distilleryUrl=function(){return this.publicApi._opts.statsUrl||this.publicApi._mediaData.distilleryUrl},VideoTracker2.prototype.sendToDistillery=function(data){return W.detect.browser.msie&&11>W.detect.browser.version?this.sendDataUsingJsonp(data):this.sendDataUsingXhr(data)["catch"](function(_this){return function(error){return W.Metrics.videoCount(_this.publicApi,"player/distillery-error-response/"+error.status)}}(this))},VideoTracker2.prototype.sendDataUsingXhr=function(data){var timeoutMs;return timeoutMs=30000,xhrPost(this.distilleryUrl(),encodeURIComponent(data),{"content-type":"text/plain"},{timeout:timeoutMs})},VideoTracker2.prototype.sendDataUsingJsonp=function(data){var timeoutMs,url;return timeoutMs=30000,url=this.distilleryUrl()+"?data="+encodeURIComponent(data),this.isIE&&(url+="&ie=1"),W.remote.script(url,null,timeoutMs)},VideoTracker2.prototype.retrySendingFailedEvent=function(){return this.sendToDistillery(this._failedEventsQueue.shift())},VideoTracker2.prototype.resendAllFailedEvents=function(){var data,fn1,i,itemCount,j,len,ref1,timeBetweenResends;if(itemCount=this._failedEventsQueue.length,clearTimeout(this._retryTimer),!!(0<itemCount)){for(timeBetweenResends=350,ref1=this._failedEventsQueue,fn1=function(_this){return function(data,i){return setTimeout(function(){return _this.sendToDistillery(data)},timeBetweenResends*i)}}(this),(i=j=0,len=ref1.length);j<len;i=++j)data=ref1[i],fn1(data,i);return this._failedEventsQueue=[]}},VideoTracker2.prototype.readyToTrack=function(fn){return this.publicApi.hasData(function(_this){return function(){return pageLoaded(function(){return W.visitorKey.ready(fn)})}}(this))},VideoTracker2.prototype.transmit=function(options){return null==options&&(options={}),this.publicApi._attrs.shouldTrack?this.readyToTrack(function(_this){return function(){var data;if(0<_this.eventQueue.length||options.force)return data=_this._data(),_this.publicApi.info("_tracker.transmit",data),_this.publicApi.trigger("transmit-stats",data),_this.sendToDistillery(W.base64.encode(data)),_this.eventQueue=[]}}(this)):void 0},VideoTracker2.prototype.debounceTransmit=function(){return doTimeout(this.publicApi.uuid+".transmit_play_data",function(_this){return function(){return _this.transmit()}}(this),350)},VideoTracker2.prototype.log=function(action,type,data){var payload;if(this.publicApi._attrs.shouldTrack)return this.publicApi.info("_tracker.log",action,type,data),this.videoTrackerSession.ping(),"conversion"===action?(this.params.conversionType=type,this.params.conversionData=data,this.transmit({force:!0})):(payload={key:action,value:this.timeInVideo(),timeDelta:this.timeDelta()},"initialized"===action?(payload.lastAccountInstance=this.videoTrackerLocalStorage.lastLoadForAccount(),payload.lastMediaInstance=this.videoTrackerLocalStorage.lastLoadForMedia(),payload.isUnique=convertIsUniqueValue(this.videoTrackerLocalStorage.lastLoadForMedia())):"play"===action?(payload.lastAccountInstance=this.videoTrackerLocalStorage.lastPlayForAccount(),payload.lastMediaInstance=this.videoTrackerLocalStorage.lastPlayForMedia(),payload.isUnique=convertIsUniqueValue(this.videoTrackerLocalStorage.lastPlayForMedia()),this._played?payload.key="unpause":(this.addPlayedTime(payload),this.addBuckets(payload),this.lastRecordedTime=this.timeInVideo())):"seek"===action?(this.addPlayedTime(payload,this.lastSeekTime),this.addBuckets(payload,this.lastSeekTime),this.lastRecordedTime=this.timeInVideo()):"update"===action?(this.addPlayedTime(payload),this.addBuckets(payload),this.lastRecordedTime=this.timeInVideo()):"playbackRateChange"===action?payload.value=data:"percentWatchedThreshold"===action?payload.value=data:"end"==action&&(this.addPlayedTime(payload),this.addBuckets(payload),this.lastBucket=-1,this.lastRecordedTime=this.timeInVideo()),this.publicApi.debug("_tracker.log",payload),this.eventQueue.push(payload))},VideoTracker2.prototype.addPlayedTime=function(payload,value){var currentTime,playedTime;return currentTime=void 0===value?this.timeInVideo():value,playedTime=Math.max(currentTime-this.lastRecordedTime,0),payload.playedTime=playedTime+""},VideoTracker2.prototype.addBuckets=function(payload,endTime){var endBucket,now;if("beforeplay"!==this.publicApi.state()&&(now=this.publicApi.time(),endBucket=this._timeToBucket(endTime||now),this.lastBucket<endBucket&&(payload.startBucket=this.lastBucket+1,payload.endBucket=endBucket),this.lastBucket=this._timeToBucket(now),endTime))return this.lastBucket-=1},VideoTracker2.prototype._timeToBucket=function(time){return Math.floor(time/this.publicApi.duration()*this.NUM_BUCKETS)},VideoTracker2.prototype.logConversionOpportunity=function(data){var payload;if(this.publicApi._attrs.shouldTrack)return this.videoTrackerSession.ping(),null==data.co_key?W.Metrics.videoCount(this.publicApi,"player/no-co-key",1):(payload={key:"conversion",value:data,timeDelta:this.timeDelta()},this.publicApi.info("_tracker.logConversionOpportunity",data),this.eventQueue.push(payload))},VideoTracker2.prototype.logAction=function(action,providedDetails){var defaultDetails,details,payload;return null==providedDetails&&(providedDetails={}),this.videoTrackerSession.ping(),defaultDetails={time:this.publicApi.time(),key:action,type:"default",category:"default",text:"test",uniqueToVisitor:!1},details=assign({},defaultDetails,providedDetails),payload={value:details,key:"action",timeDelta:this.timeDelta()},this.eventQueue.push(payload)},VideoTracker2.prototype.logCaptionSelection=function(data){var payload;if(this.publicApi._attrs.shouldTrack)return(this.videoTrackerSession.ping(),!!data.caption_key)?(payload={key:"caption",value:data,timeDelta:this.timeDelta()},this.publicApi.info("_tracker.logCaptionSelection",data),this.eventQueue.push(payload)):void 0},VideoTracker2.prototype.logChapterClick=function(chapter,time){return this.logAction("chapterConversion",{text:chapter.title,type:"conversion",category:"chapter",uniqueToVisitor:!0,time:time}),this.logAction("chapterSelection-"+chapter.id,{text:chapter.title,type:"interaction",category:"chapter",time:time})},VideoTracker2.prototype.logShareClick=function(channel){return this.logAction("shareConversion",{text:channel,type:"conversion",category:"share",uniqueToVisitor:!0}),this.logAction("shareClick-"+channel,{text:channel,type:"interaction",category:"share"})},VideoTracker2.prototype.resumableKey=function(){return!1===this.publicApi.embedOptions().resumable?null:getResumableKeyForVideo(this.publicApi.hashedId())},VideoTracker2.prototype.timeInVideo=function(){var timeInVideo;return timeInVideo=this.publicApi.time(),null==timeInVideo&&("beforeplay"===this.publicApi.state()?timeInVideo=0:timeInVideo=this.publicApi.duration()),timeInVideo.toFixed(1)},VideoTracker2.prototype.timeDelta=function(){return new Date().getTime()-this.clockStart},VideoTracker2.prototype.visitorKey=function(){return this.publicApi.visitorKey()},VideoTracker2.prototype.eventKey=function(){if(this.videoTrackerSession)return this.videoTrackerSession.eventKey()},VideoTracker2}()}(Wistia);

/***/ }),

/***/ 114:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var VideoTrackerLocalStorage,W,secondsSinceTime;W=__webpack_require__(1).default,secondsSinceTime=__webpack_require__(113).default,VideoTrackerLocalStorage=function(){function VideoTrackerLocalStorage(accountKey,hashedId,logFn){this.accountKey=accountKey,this.hashedId=hashedId,this.logFn=logFn,this}return VideoTrackerLocalStorage.prototype.nullToNone=function(value){return null===value?"none":value},VideoTrackerLocalStorage.prototype.lastLoadForAccount=function(){return this._lastLoadForAccount||(this._lastLoadForAccount=this.nullToNone(secondsSinceTime(Wistia.localStorage("accounts_loaded."+this.accountKey))))},VideoTrackerLocalStorage.prototype.lastLoadForMedia=function(){return this._lastLoadForMedia||(this._lastLoadForMedia=this.nullToNone(secondsSinceTime(Wistia.localStorage("medias_loaded."+this.hashedId))))},VideoTrackerLocalStorage.prototype.lastPlayForAccount=function(){return this._lastPlayForAccount||(this._lastPlayForAccount=this.nullToNone(secondsSinceTime(Wistia.localStorage("accounts_played."+this.accountKey))))},VideoTrackerLocalStorage.prototype.lastPlayForMedia=function(){return this._lastPlayForMedia||(this._lastPlayForMedia=this.nullToNone(secondsSinceTime(Wistia.localStorage("medias_played."+this.hashedId))))},VideoTrackerLocalStorage.prototype.lastRecordingOfActionForMedia=function(actionKey){return this.nullToNone(secondsSinceTime(Wistia.localStorage("action_recorded."+this.hashedId+"."+actionKey)))},VideoTrackerLocalStorage.prototype.recordLastActionForMedia=function(actionKey){return Wistia.localStorage("action_recorded."+this.hashedId+"."+actionKey,new Date().getTime())},VideoTrackerLocalStorage.prototype.recordLoad=function(){return this.logFn("recordLoad"),Wistia.localStorage("accounts_loaded."+this.accountKey,new Date().getTime()),Wistia.localStorage("medias_loaded."+this.hashedId,new Date().getTime())},VideoTrackerLocalStorage.prototype.recordPlay=function(){return this.logFn("recordPlay"),Wistia.localStorage("accounts_played."+this.accountKey,new Date().getTime()),Wistia.localStorage("medias_played."+this.hashedId,new Date().getTime())},VideoTrackerLocalStorage.prototype._saveVisitorVersion=function(version){if(null==version&&(version=1),null==Wistia.localStorage("visitor_version"))return Wistia.localStorage("visitor_version",version)},VideoTrackerLocalStorage.prototype.getVisitorVersion=function(){var v;return v=Wistia.localStorage("visitor_version"),v?v:(this._saveVisitorVersion(0),0)},VideoTrackerLocalStorage.prototype.clearActionRecordings=function(){return["chapterImpression","chapterConversion","shareImpression","shareConversion"].forEach(function(_this){return function(key){return Wistia.localStorage("action_recorded."+_this.hashedId+"."+key,"",!0)}}(this))},VideoTrackerLocalStorage}(),module.exports=VideoTrackerLocalStorage;

/***/ }),

/***/ 112:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SecondsWatchedTracker,VideoTrackerSession,W,secondsSinceTime,uniqId;W=__webpack_require__(1).default,secondsSinceTime=__webpack_require__(113).default,SecondsWatchedTracker=__webpack_require__(108).default,uniqId=__webpack_require__(89).uniqId,VideoTrackerSession=function(){function VideoTrackerSession(publicApi){this.publicApi=publicApi,this.lastFetchTime=new Date().getTime(),this.secondsWatchedTracker=new SecondsWatchedTracker(this.publicApi.duration())}return VideoTrackerSession.prototype.EVENT_KEY_REFRESH_INTERVAL=1800,VideoTrackerSession.prototype.withRefresh=function(func){if(secondsSinceTime(this.lastFetchTime)>this.EVENT_KEY_REFRESH_INTERVAL&&this.reset(),this.lastFetchTime=new Date().getTime(),"function"==typeof func)return func()},VideoTrackerSession.prototype.fetchSessionData=function(){return this.withRefresh(function(_this){return function(){var result;return result={event_key:_this.eventKey(),seconds_watched:_this.secondsWatchedTracker.secondsWatched()}}}(this))},VideoTrackerSession.prototype.ping=function(){return this.withRefresh()},VideoTrackerSession.prototype.setupBindings=function(){return null==this.binding&&(this.binding=function(_this){return function(s){return _this.secondsWatchedTracker.trackSecond(s)}}(this)),this.publicApi.rebind("secondchange",this.binding)},VideoTrackerSession.prototype.reset=function(){return this._eventKey=null,this.secondsWatchedTracker.reset()},VideoTrackerSession.prototype.removeBindings=function(){if(this.binding)return this.publicApi.unbind("secondchange",this.binding)},VideoTrackerSession.prototype.eventKey=function(){return this.isValidKey(this._eventKey)?this._eventKey:(this._eventKey=uniqId("fcf8aa144afda1cf82cfbecd3cd55907".substring(0,7)+"_"),this.publicApi.trigger("eventkeychange",this._eventKey),this._eventKey)},VideoTrackerSession.prototype.isValidKey=function(key){return 25<(null==key?void 0:key.length)&&/^[a-z0-9_\-\.]+$/i.test(key)},VideoTrackerSession}(),module.exports=VideoTrackerSession;

/***/ }),

/***/ 129:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

(function(Wistia){var DISTILLERY_PREFIX,StopGo,W,eV1Host,eV1Protocol,globalBind,isVisitorTrackingEnabled,ref,uniqId;if(W=Wistia,!W.VisitorKey)return StopGo=__webpack_require__(40),ref=__webpack_require__(14),eV1Host=ref.eV1Host,eV1Protocol=ref.eV1Protocol,globalBind=__webpack_require__(21).globalBind,isVisitorTrackingEnabled=__webpack_require__(42).isVisitorTrackingEnabled,uniqId=__webpack_require__(89).uniqId,DISTILLERY_PREFIX="__distillery",globalBind("visitortrackingchange",function(val,domain){var base,i,isEnabled,len,ref1,v;for(ref1=W.api.all(),i=0,len=ref1.length;i<len;i++)v=ref1[i],"function"==typeof v._postDownVisitorTrackingEnabled&&v._postDownVisitorTrackingEnabled();if(W.visitorKey){if(isEnabled=isVisitorTrackingEnabled(),!isEnabled)return W.visitorKey.unpersist(),"function"==typeof(base=W._destructors).destroyMux?base.destroyMux():void 0;if(W.visitorKey.value())return W.visitorKey.persist(W.visitorKey.value())}}),W.VisitorKey=function(){function VisitorKey(){this.ready=new StopGo,this.unbinds=[],setTimeout(function(_this){return function(){return _this.unbinds.push(W.api.onFind(function(video){return video.hasData(function(){var ref1;return video.iframe||!0!==(null==(ref1=video._mediaData)?void 0:ref1.privacyMode)||_this.unpersist(),_this.doInit()})}))}}(this),0)}return VisitorKey.prototype.reinitialize=function(){return this.destroy(),this.unbinds=[],this.ready=new StopGo,this._initialized=!1,this.doInit()},VisitorKey.prototype.doInit=function(){if(!this._initialized)return this._initialized=!0,this.savedValue()||this.persist(W.VisitorKey.generate()),this.ready(!0)},VisitorKey.prototype.persist=function(newValue){return W.VisitorKey.isValid(newValue)?(this.info("@persist",newValue),this._value=newValue,isVisitorTrackingEnabled()?!0!==window.wistiaDisableCookies&&this.localStorageValue()!==this._value?W.localStorage(DISTILLERY_PREFIX,this._value):void 0:void 0):void this.error(new Error("Attempted to persist invalid visitor key '"+newValue+"'"))},VisitorKey.prototype.unpersist=function(){return this.clearFromCurrentDomain()},VisitorKey.prototype.clear=function(){return this.info("clear"),this.unpersist(),this._value=null},VisitorKey.prototype.clearFromCurrentDomain=function(){return W.removeLocalStorage(DISTILLERY_PREFIX,null)},VisitorKey.prototype.value=function(){var result;return result=this._value||this.savedValue(),result||(result=W.VisitorKey.generate(),this.persist(result)),result},VisitorKey.prototype.savedValue=function(){return isVisitorTrackingEnabled()?this.localStorageValue():void 0},VisitorKey.prototype.localStorageValue=function(){return W.localStorage(DISTILLERY_PREFIX)},VisitorKey.prototype.isValid=function(){return W.VisitorKey.isValid(this.value())},VisitorKey.prototype.destroy=function(){var i,len,ref1,u;for(ref1=this.unbinds,i=0,len=ref1.length;i<len;i++)u=ref1[i],u();return this.unbinds=[]},VisitorKey.isValid=function(key){return 25<(null==key?void 0:key.length)&&/^[a-z0-9_\-\.]+$/i.test(key)},VisitorKey.generate=function(){return uniqId("fcf8aa144afda1cf82cfbecd3cd55907".substring(0,7)+"_")},VisitorKey}(),W.mixin(W.VisitorKey.prototype,W.logHelpers),W._initializers.initVisitorKey=function(){return W.visitorKey=new W.VisitorKey},W._destructors.destroyVisitorKey=function(){var ref1;return null!=(ref1=W.visitorKey)&&ref1.destroy(),W.visitorKey=null}})(Wistia);

/***/ }),

/***/ 130:
/***/ (function() {

(function(Wistia){return Wistia.TimeHelper?void 0:Wistia.TimeHelper=function(){function TimeHelper(){}var getValueForDurationKey,safeSeconds;return TimeHelper.secondsIntoDurationGroups=function(seconds){var hours,minutes,remaining;return seconds=safeSeconds(seconds),remaining=Math.floor(seconds),hours=Math.floor(remaining/3600),remaining-=3600*hours,minutes=Math.floor(remaining/60),remaining-=60*minutes,{hours:hours,minutes:minutes,seconds:remaining}},safeSeconds=function safeSeconds(seconds){return 0|Math.abs(parseInt(seconds))},TimeHelper.secondsToIso8601=function(seconds){var grp,h,m,s,time;return grp=this.secondsIntoDurationGroups(seconds),h=grp.hours.toString(),m=grp.minutes.toString(),s=grp.seconds.toString(),time=["00".substring(h.length)+h,"00".substring(m.length)+m,"00".substring(s.length)+s],time.join(":")},TimeHelper.secondsToHumanDuration=function(seconds){var grp,key,output,time,val;for(key in grp=this.secondsIntoDurationGroups(seconds),time={hours:0===grp.hours?void 0:grp.hours+"h",minutes:0!==grp.minutes||60<=seconds&&0!==grp.seconds?grp.minutes+"m":void 0,seconds:0!==grp.seconds||0===grp.minutes&&3600>seconds?grp.seconds+"s":void 0},output="",time)val=time[key],null!=val&&(output+=val);return output},TimeHelper.TRIM_REGEXP=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,TimeHelper.isValidHumanDuration=function(val){var isProperOrder,j,k,len,len1,measure,measures,measuresStr,ref,ref1,regex,sequence;if(void 0===val||null===val||""===val)return!1;if(val=(""+val).replace(this.TRIM_REGEXP,""),null===val.match(/[\dhms]+/)||null===val.match(/[hms]+/))return!1;if(val.match(/[\dhms]+/)[0]!==val)return!1;for(ref=["h","m","s"],j=0,len=ref.length;j<len;j++)if(measure=ref[j],regex=new RegExp(measure,"g"),null!==val.match(regex)&&1<val.match(regex).length)return!1;if(measures=val.match(/[hms]/g),3===measures.length&&("h"!==measures[0]||"m"!==measures[1]||"s"!==measures[2]))return!1;if(2===measures.length){for(isProperOrder=!1,measuresStr=measures.join(""),ref1=["hm","hs","ms"],(k=0,len1=ref1.length);k<len1;k++)if(sequence=ref1[k],measuresStr===sequence){isProperOrder=!0;break}if(!isProperOrder)return!1}return!0},getValueForDurationKey=function getValueForDurationKey(key,string){var regex,result;return regex=new RegExp("\\d+"+key),result=string.match(regex),result?parseInt(result[0].match(/\d+/)[0]):0},TimeHelper.humanDurationToSeconds=function(val){var addend,addends,j,len,seconds;if(val=val?val.toString():"",seconds=0,this.isValidHumanDuration(val))for(addends=[3600*getValueForDurationKey("h",val),60*getValueForDurationKey("m",val),getValueForDurationKey("s",val)],j=0,len=addends.length;j<len;j++)addend=addends[j],seconds+=addend;return seconds},TimeHelper.isValidIso8601=function(val){return void 0!==val&&null!==val&&""!==val&&"string"==typeof val&&(val=val.replace(this.TRIM_REGEXP,""),null!==val.match(/[\d:]+/)&&val.match(/[\d:]+/)[0]===val)},TimeHelper.iso8601ToSeconds=function(val){var addend,addends,i,j,len,multipliers,seconds;for(val=val?val.toString():"",seconds=0,multipliers=[1,60,3600],addends=val.split(":").reverse(),(i=j=0,len=addends.length);j<len;i=++j)addend=addends[i],seconds+=addend*multipliers[i];return safeSeconds(seconds)},TimeHelper}()})(Wistia);

/***/ }),

/***/ 548:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

var bind=function bind(fn,me){return function(){return fn.apply(me,arguments)}},extend=function extend(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;__webpack_require__(549),function(W){var Color,addInlineCss,clearTimeouts,doTimeout,elemAppend,elemHeight,elemIsHidden,elemRemove,elemStripEventAttributes,elemWidth,execCssTags,execScriptTags,getCssTags,getDeep,getScriptTags,merge,proto,ref,ref1,ref2,ref3,removeCssTags,removeScriptTags,seqId,setDeep;return Color=__webpack_require__(91).default,proto=__webpack_require__(16).proto,ref=W.lib("player/lib/elem"),addInlineCss=ref.addInlineCss,elemAppend=ref.elemAppend,elemHeight=ref.elemHeight,elemIsHidden=ref.elemIsHidden,elemRemove=ref.elemRemove,elemStripEventAttributes=ref.elemStripEventAttributes,elemWidth=ref.elemWidth,execCssTags=ref.execCssTags,execScriptTags=ref.execScriptTags,getCssTags=ref.getCssTags,getScriptTags=ref.getScriptTags,removeCssTags=ref.removeCssTags,removeScriptTags=ref.removeScriptTags,ref1=W.lib("player/lib/timeout-utils"),doTimeout=ref1.doTimeout,clearTimeouts=ref1.clearTimeouts,seqId=W.lib("utilities/seqid").seqId,ref2=W.lib("utilities/obj"),merge=ref2.merge,getDeep=ref2.getDeep,setDeep=ref2.setDeep,null==(null==(ref3=W.plugin)?void 0:ref3.requireEmail)&&(W.Plugin.RequireEmailV1=function(superClass){function RequireEmailV1(){this.suggestEmail=bind(this.suggestEmail,this),RequireEmailV1.__super__.constructor.call(this),this.pluginName="requireEmail-v1",this.conversionOpportunityType="turnstile",this.openGateAtEnd=null,this.openGateAtTime=null,this.lastTime=0}var doesntKnowHowEmailsLook,showedSuggestion;return extend(RequireEmailV1,superClass),RequireEmailV1.prototype.init=function(target,pluginOptions){return RequireEmailV1.__super__.init.call(this,target,pluginOptions),this.params=merge({uuid:seqId("wistia_","_requireEmail"),time:"before",style:{backgroundColor:"#303030"},firstNameExampleText:"First name",lastNameExampleText:"Last name",emailExampleText:"Your email",topText:"Enter your email address\n to view this video.",bottomText:"",errorColor:"#fff",sectionIndex:0,allowSkip:!1,askName:!1,videoIndex:0,alwaysShow:!1,conversionType:this.conversionOpportunityType,preview:!1},this.params),W.detect.oldandroid&&this.NUMBER_TIME_REGEXP.test(this.params.time)&&(this.params.allowSkip?(this.params.time="end",this.params.allowSkip=!1):this.params.time="before"),this.updateTopText(this.params.topText),this.updateBottomText(this.params.bottomText),"end"!==this.params.time||this.options.topText?!this.options.topText&&this.updateTopText("Enter your email address\n to view this video."):this.updateTopText("Thanks for watching!\n Please enter your email address."),this.refreshFontFaceCss(),W._playlist&&(null==target?void 0:target.playlist)?this.initPlaylist():this.initVideo(target),this.delayedFit=function(_this){return function(){return doTimeout(target.uuid+".requireEmail-v1.fit",function(){return _this.fit()},50)}}(this),target.bind("widthchange",this.delayedFit),target.bind("heightchange",this.delayedFit),this.register(this)},RequireEmailV1.prototype.customizePreview=function(changeSet){var currentPluginOptions,pluginOptionDidChange,time;if(this.anyPluginOptionDidChange=function(_this){return function(){return changedOptions.some(function(option){return 0===option.indexOf("plugin[requireEmail-v1]")||0===option.indexOf("ephemeral[ui][turnstile]")})}}(this),this.video.ready(function(_this){return function(){_this.isOpen()&&!changeSet.currentValue("ephemeral[ui][turnstile][isOpen]")&&(_this.video.suppressPlay(!1),_this.instantClose())}}(this)),!!changeSet.anyChanged(["plugin[requireEmail-v1]","ephemeral[ui][turnstile]"]))return(currentPluginOptions=changeSet.currentValue("plugin[requireEmail-v1]")||{on:!1},changeSet.changed("ephemeral[ui][turnstile][isOpen]")&&!changeSet.currentValue("ephemeral[ui][turnstile][isOpen]"))?(this.video.suppressPlay(!1),void this.instantClose()):(pluginOptionDidChange=function pluginOptionDidChange(name){return changeSet.changed("plugin[requireEmail-v1]["+name+"]")},pluginOptionDidChange("on")&&!currentPluginOptions.on)?this.video.unsuspend({time:this.params.time}):(pluginOptionDidChange("time")&&("before"===currentPluginOptions.time?(time=0,this.hideRewatch()):"end"===currentPluginOptions.time?(time=this.video.duration(),this.showRewatch()):(time=currentPluginOptions.time,this.hideRewatch()),this.video.suppressPlay(!1),this.params.time=time,this.video.time(time)),pluginOptionDidChange("topText")&&this.updateTopText(currentPluginOptions.topText),pluginOptionDidChange("bottomText")&&this.updateBottomText(currentPluginOptions.bottomText),pluginOptionDidChange("allowSkip")&&(currentPluginOptions.allowSkip?this.showSkip():this.hideSkip()),pluginOptionDidChange("askName")&&(this.params.askName=currentPluginOptions.askName,this.instantClose()),changeSet.currentValue("ephemeral[ui][turnstile][isOpen]")&&("playing"===this.video.state()&&this.video.pause(),!this.isOpen()))?this.open():void 0},RequireEmailV1.prototype.NUMBER_TIME_REGEXP=/^\d+(\.\d*)?$/,RequireEmailV1.prototype.savedEmail=function(){return this.video?this.video.email()||W.localStorage([this.video._attrs.pageUrl,"trackEmail"]):null},RequireEmailV1.prototype.initPlaylist=function(){return(this.video=this.playlist.currentVideo(),this.savedEmail()&&!this.params.alwaysShow)?(this.playlist.setEmail(this.savedEmail()),this):(this.onResize=function(_this){return function(){return _this.playlist.ready(function(){return _this.inferParams(),_this.refreshCss()})}}(this),this.playlist.bind("widthchange",this.onResize),this.playlist.bind("heightchange",this.onResize),this.beforeEmbed=function(_this){return function(sectionIndex,videoIndex){return _this.removeFromVideo(),_this.playlist.params.videoOptions.suppressPlay=!!(_this.shouldShowTurnstile(sectionIndex,videoIndex)&&(!_this.savedEmail()||_this.params.alwaysShow))}}(this),this.playlist.bind("beforeembed",this.beforeEmbed),this.playlistConversionFunc=function(_this){return function(type,val){/(pre|mid|post)-roll/.test(type)&&setDeep(_this.playlist,"params.videoOptions.trackEmail",val)}}(this),this.afterEmbed=function(_this){return function(sectionIndex,videoIndex){return _this.video=_this.playlist.currentVideo(),_this.shouldShowTurnstile(sectionIndex,videoIndex)?(_this.initVideo(_this.video,_this.params),_this.playlist.currentVideo().bind("conversion",_this.playlistConversionFunc)):_this.removeFromVideo()}}(this),this.playlist.bind("afterembed",this.afterEmbed),this.video&&(this.beforeEmbed(this.playlist._currentSectionIndex,this.playlist._currentVideoIndex),this.afterEmbed(this.playlist._currentSectionIndex,this.playlist._currentVideoIndex)),this)},RequireEmailV1.prototype.shouldShowTurnstile=function(sectionIndex,videoIndex){return!getDeep(this.playlist,"params.videoOptions.trackEmail")&&(sectionIndex>this.params.sectionIndex||sectionIndex===this.params.sectionIndex&&videoIndex>=this.params.videoIndex)},RequireEmailV1.prototype.initVideo=function(video,pluginOptions){if(this.inferParams(),!this.video.params.preview)return this.savedEmail()&&!this.params.alwaysShow?void this.video.email(this.savedEmail()):((this.params.alwaysShow||!this.savedEmail())&&(this.video.bind("emailchange",function(_this){return function(){return _this.close()}}(this)),"before"===this.params.time&&(video.suppressPlay(!0),video.pause()),"end"===this.params.time&&(this.openGateAtEnd=function(_this){return function(){var base;return _this.savedEmail()&&!_this.params.alwaysShow?"function"==typeof(base=_this.target).setEmail?base.setEmail(_this.savedEmail()):void 0:_this.open()}}(this),video.bind("end",this.openGateAtEnd)),this.NUMBER_TIME_REGEXP.test(this.params.time)&&(null==this.openGateAtTime&&(this.openGateAtTime=function(_this){return function(s){var base;return _this.savedEmail()&&!_this.params.alwaysShow?void("function"==typeof(base=_this.target).setEmail&&base.setEmail(_this.savedEmail())):_this.NUMBER_TIME_REGEXP.test(_this.params.time)&&s>=_this.params.time&&(_this.lastTime=s,!_this.opening&&!_this.isOpen())?(_this.opening=!0,_this.close(function(){var base1;return _this.savedEmail()&&!_this.params.alwaysShow?"function"==typeof(base1=_this.target).setEmail?base1.setEmail(_this.savedEmail()):void 0:(_this.open(),_this.opening=!1)})):void 0}}(this)),video.rebind("secondchange",this.openGateAtTime)),"before"===this.params.time&&(this.openOnReady=function(_this){return function(){var base;return _this.savedEmail()&&!_this.params.alwaysShow?"function"==typeof(base=_this.target).setEmail?base.setEmail(_this.savedEmail()):void 0:_this.opening||_this.isOpen()?void 0:_this.open()}}(this),video.suppressPlay(!0),video.cancelFullscreen(),video.ready(this.openOnReady))),this)},RequireEmailV1.prototype.sanitize=function(text){return removeCssTags(removeScriptTags(text.replace(/\<br\s*\/?\>/ig,"\n").replace(/\n/g,"<br/>")))},RequireEmailV1.prototype.inferParams=function(){var alpha,ref4;return(null==(ref4=this.options.style)?void 0:ref4.fontSize)||(this.params.style.fontSize=Math.min(60,Math.round(this.video.videoHeight()/10))+"px"),this.params.backgroundColor=new Color(this.params.style.backgroundColor),alpha=.82,W.detect.browser.msie&&9>W.detect.browser.version?(this.params.style.backgroundColor="",this.params.style.filter=this.params.backgroundColor.clone().alpha(alpha).toIeGradient()):this.params.style.backgroundColor=this.params.backgroundColor.clone().alpha(alpha).toRgba(),this.options.buttonBackground||(this.params.buttonBackground=new Color("#"+this.video.playerColor())),this.params.buttonBackgroundHover||(.3<this.params.buttonBackground.grayLevel()?this.params.buttonBackgroundHover=this.params.buttonBackground.clone().darken(20):this.params.buttonBackgroundHover=this.params.buttonBackground.clone().lighten(10)),this.options.buttonBackgroundTextColor||(.7<this.params.buttonBackground.grayLevel()?this.params.buttonBackgroundTextColor=new Color("#333"):this.params.buttonBackgroundTextColor=new Color("#fff")),this.options.bigTextSize||(this.params.bigTextSize=Math.round(.77*parseInt(this.params.style.fontSize,10))),this.options.smallTextSize||(this.params.smallTextSize=Math.round(.39*parseInt(this.params.style.fontSize,10))),this.options.inputHeight||(this.params.inputHeight=Math.round(1.11*parseInt(this.params.style.fontSize,10))),this.options.inputWidth||(this.params.inputWidth=Math.round(.4*elemWidth(this.target.grid.main))),this.options.sectionIndex||(this.params.sectionIndex=0),this.options.videoIndex||(this.params.videoIndex=0),this.params.topText=this.sanitize(this.params.topText),this.params.bottomText=this.sanitize(this.params.bottomText)},RequireEmailV1.prototype.fit=function(){return this.elem&&(this.video.videoHeight(),this.inferParams(),this.refreshCss(),this.center()),this},RequireEmailV1.prototype.center=function(){var backgroundHeight,centerElem,contentHeight,contentOffset;if(this.elem&&null!=(centerElem=document.getElementById(this.params.uuid+"_vcenter")))return backgroundHeight=elemHeight(this.elem),contentHeight=elemHeight(centerElem),contentOffset=Math.round((backgroundHeight-contentHeight)/2),centerElem.style.marginTop=contentOffset+"px"},RequireEmailV1.prototype.fixTextAboveVisibility=function(){var textAboveElem;if(textAboveElem=document.getElementById(this.params.uuid+"_text_above"))return this.params.topText?textAboveElem.style.display="block":textAboveElem.style.display="none"},RequireEmailV1.prototype.fixTextBelowVisibility=function(){var textBelowElem;if(textBelowElem=document.getElementById(this.params.uuid+"_text_below"))return this.params.bottomText?textBelowElem.style.display="block":textBelowElem.style.display="none"},RequireEmailV1.prototype.open=function(callback){var prop,ref10,ref11,ref12,ref13,ref4,ref5,ref6,ref7,ref8,ref9,val;for(prop in this.instantClose(),this.video.params.preview||this.video.suspend(),this.elem=document.createElement("div"),this.elem.id=this.params.uuid,this.elem.className="wistia_require_email",this.elem.innerHTML=this.formHtml(),W.plugin._allow3rdParty(this.video._opts)||elemStripEventAttributes(this.elem),this.video.grid.top_inside.appendChild(this.elem),W.plugin._allow3rdParty(this.video._opts)&&(execScriptTags(this.params.topTextScriptTags),execCssTags(this.params.topTextCssTags),execScriptTags(this.params.bottomTextScriptTags),execCssTags(this.params.bottomTextCssTags)),this.submitElem=document.getElementById(this.params.uuid+"_submit"),this.firstNameElem=document.getElementById(this.params.uuid+"_first_name"),this.lastNameElem=document.getElementById(this.params.uuid+"_last_name"),this.emailElem=document.getElementById(this.params.uuid+"_email"),this.errorElem=document.getElementById(this.params.uuid+"_error"),this.skipElem=document.getElementById(this.params.uuid+"_skip"),this.rewatchElem=document.getElementById(this.params.uuid+"_rewatch"),this.content=document.getElementById(this.params.uuid+"_content"),this.refreshCss(),ref4=this.params.style,ref4)val=ref4[prop],this.content.style[prop]=val;return this.fixTextAboveVisibility(),this.fixTextBelowVisibility(),this.fit(),this.content.className="",doTimeout("requireEmail."+this.uuid+".delayed_slide",function(_this){return function(){return _this.content.className="visible"}}(this)),callback&&doTimeout("requireEmail."+this.uuid+".open_callback",callback,600),null!=(ref5=this.video._impl._tracker)&&ref5.logConversionOpportunity(this._conversionOpportunityData()),this.submitElem.onclick=function(_this){return function(){return _this.onSubmit.apply(_this,arguments)}}(this),null!=(ref6=this.firstNameElem)&&(ref6.onfocus=function(_this){return function(){return _this.onFocus(_this.firstNameElem,_this.params.firstNameExampleText)}}(this)),null!=(ref7=this.firstNameElem)&&(ref7.onblur=function(_this){return function(){return _this.onBlur(_this.firstNameElem,_this.params.firstNameExampleText)}}(this)),null!=(ref8=this.firstNameElem)&&(ref8.onkeyup=function(_this){return function(){return _this.onKeyup.apply(_this,arguments)}}(this)),null!=(ref9=this.lastNameElem)&&(ref9.onfocus=function(_this){return function(){return _this.onFocus(_this.lastNameElem,_this.params.lastNameExampleText)}}(this)),null!=(ref10=this.lastNameElem)&&(ref10.onblur=function(_this){return function(){return _this.onBlur(_this.lastNameElem,_this.params.lastNameExampleText)}}(this)),null!=(ref11=this.lastNameElem)&&(ref11.onkeyup=function(_this){return function(){return _this.onKeyup.apply(_this,arguments)}}(this)),this.emailElem.onfocus=function(_this){return function(){return _this.onFocus(_this.emailElem,_this.params.emailExampleText)}}(this),this.emailElem.onblur=function(_this){return function(){return _this.onBlur(_this.emailElem,_this.params.emailExampleText)}}(this),this.emailElem.onkeyup=function(_this){return function(){return _this.onKeyup.apply(_this,arguments)}}(this),null!=(ref12=this.skipElem)&&(ref12.onclick=function(_this){return function(){return _this.onSkip.apply(_this,arguments)}}(this)),null==(ref13=this.rewatchElem)?void 0:ref13.onclick=function(_this){return function(){return _this.onRewatch.apply(_this,arguments)}}(this)},RequireEmailV1.prototype.isOpen=function(){return!!(this.elem&&this.elem.parentNode&&!elemIsHidden(this.elem))},RequireEmailV1.prototype.formHtml=function(){var nameFields;return nameFields=this.params.askName?"--><div id=\""+this.params.uuid+"_name_inputs\"><!--\n  --><input type=\"text\" name=\""+this.params.uuid+"_first_name\" id=\""+this.params.uuid+"_first_name\" value=\""+this.params.firstNameExampleText+"\" class=\"example\" /><!--\n  --><input type=\"text\" name=\""+this.params.uuid+"_last_name\" id=\""+this.params.uuid+"_last_name\" value=\""+this.params.lastNameExampleText+"\" class=\"example\" /><!--\n--></div><!--":"","<div id=\""+this.params.uuid+"_content\">\n  <div id=\""+this.params.uuid+"_vcenter\">\n    <div id=\""+this.params.uuid+"_hcenter\">\n      <div id=\""+this.params.uuid+"_block\">\n        <div id=\""+this.params.uuid+"_text_above\">"+this.params.topText+"</div>\n        <div id=\""+this.params.uuid+"_input_wrapper\"><!--\n          "+nameFields+"\n          --><input type=\"email\" name=\""+this.params.uuid+"_email\" id=\""+this.params.uuid+"_email\" value=\""+this.params.emailExampleText+"\" class=\"example\" /><!--\n          --><button id=\""+this.params.uuid+"_submit\">\n            "+(this.params.buttonText?this.params.buttonText:"end"===this.params.time?"Submit":"Play")+"\n          </button>\n        </div>\n        <div id=\""+this.params.uuid+"_text_below\">"+this.params.bottomText+"</div>\n        <div id=\""+this.params.uuid+"_error\">Error text</div>\n      </div>\n    </div>\n  </div>\n  <div id=\""+this.params.uuid+"_skip\" title=\"Skip\" style=\""+(this.params.allowSkip?"display:block;":"")+"\">&nbsp;</div>\n  <div id=\""+this.params.uuid+"_rewatch\" title=\"Watch again\" style=\""+("end"===this.params.time?"display:block;":"")+"\">&nbsp;</div>\n</div>"},RequireEmailV1.prototype.updateTopText=function(text){var opts,textElem,topText;if(this.params.topText=text,this.params.topTextScriptTags=getScriptTags(text),this.params.topTextCssTags=getCssTags(text),topText=removeCssTags(removeScriptTags(this.sanitize(text))),opts=this.playlist?this.playlist._opts:this.video._opts,textElem=document.getElementById(this.params.uuid+"_text_above"))return textElem.innerHTML=topText,W.plugin._allow3rdParty(opts)&&(execCssTags(this.params.topTextCssTags),execScriptTags(this.params.topTextScriptTags)),textElem.style.display=text?"block":"none",this.fit()},RequireEmailV1.prototype.updateBottomText=function(text){var bottomText,opts,textElem;if(this.params.bottomText=text,this.params.bottomTextScriptTags=getScriptTags(text),this.params.bottomTextCssTags=getCssTags(text),bottomText=removeCssTags(removeScriptTags(this.sanitize(text))),opts=this.playlist?this.playlist._opts:this.video._opts,textElem=document.getElementById(this.params.uuid+"_text_below"))return textElem.innerHTML=bottomText,W.plugin._allow3rdParty(opts)&&(execCssTags(this.params.bottomTextCssTags),execScriptTags(this.params.bottomTextScriptTags)),textElem.style.display=text?"block":"none",this.fit()},RequireEmailV1.prototype.showSkip=function(){var skipElem;if(skipElem=document.getElementById(this.params.uuid+"_skip"))return skipElem.style.display="block"},RequireEmailV1.prototype.hideSkip=function(){var skipElem;if(skipElem=document.getElementById(this.params.uuid+"_skip"))return skipElem.style.display="none"},RequireEmailV1.prototype.showRewatch=function(){var rewatchElem;if(rewatchElem=document.getElementById(this.params.uuid+"_rewatch"))return rewatchElem.style.display="block"},RequireEmailV1.prototype.hideRewatch=function(){var rewatchElem;if(rewatchElem=document.getElementById(this.params.uuid+"_rewatch"))return rewatchElem.style.display="none"},RequireEmailV1.prototype.refreshCss=function(){var par;return this.style&&(par=this.style.parentNode)&&(par.removeChild(this.style),this.style=null),this.elem&&(this.style=addInlineCss(this.elem,this.formCss())),this},RequireEmailV1.prototype.refreshFontFaceCss=function(){var div,tag;return tag=addInlineCss(document.body||document.head,this._fontFaceCss()),div=document.createElement("div"),div.style.display="block",div.style.fontSize="12px",div.style.fontFamily="WistiaOpenSans",div.style.fontWeight=300,div.style.position="absolute",div.style.left="-99999em",div.innerHTML=".",elemAppend(document.body,div),doTimeout(this.uuid+".requireEmail-v1.refresh_font_face",function(_this){return function(){return div.style.fontWeight=600,doTimeout(_this.uuid+".requireEmail-v1.refresh_font_face",function(){return div.style.fontWeight=700,doTimeout(_this.uuid+".requireEmail-v1.refresh_font_face",function(){return elemRemove(div),elemRemove(tag)},500)},500)}}(this),500)},RequireEmailV1.prototype._fontFaceCss=function(){return"@font-face {\nfont-family: 'WistiaOpenSans';\nfont-style: normal;\nfont-weight: 300;\nsrc: local('Open Sans Light'), local('OpenSans-Light'), url("+proto()+"//"+W.remote.embedHost()+"/fonts/WistiaOpenSansLight.woff) format('woff');\n}\n@font-face {\nfont-family: 'WistiaOpenSans';\nfont-style: normal;\nfont-weight: 600;\nsrc: local('Open Sans Semibold'), local('OpenSans-Semibold'), url("+proto()+"//"+W.remote.embedHost()+"/fonts/WistiaOpenSansSemiBold.woff) format('woff');\n}\n@font-face {\nfont-family: 'WistiaOpenSans';\nfont-style: normal;\nfont-weight: 700;\nsrc: local('Open Sans Bold'), local('OpenSans-Bold'), url("+proto()+"//"+W.remote.embedHost()+"/fonts/WistiaOpenSansBold.woff) format('woff');\n}"},RequireEmailV1.prototype.formCss=function(){var buttonSidePadding,buttonWidth,contentHeight,inputSidePadding,vcenterElem;return contentHeight=0,inputSidePadding=Math.round(.2*this.params.inputHeight),buttonSidePadding=Math.round(.5*this.params.inputHeight),buttonWidth=this.params.buttonWidth?this.params.buttonWidth:Math.round(this.params.inputHeight*("end"===this.params.time?2.65:2.1)),this.elem&&(vcenterElem=document.getElementById(this.params.uuid+"_vcenter"))&&(contentHeight=Math.round((elemHeight(this.elem)-elemHeight(vcenterElem))/2)),this._fontFaceCss()+"\n#"+this.params.uuid+" {\ncursor:default;\nheight:"+this.video.videoHeight()+"px;\nleft:0;\noverflow:hidden;\nposition:absolute;\ntop:0;\nwidth:"+this.video.videoWidth()+"px;\nz-index:12;\n}\n#"+this.params.uuid+"_content {\nbackground-image: radial-gradient(farthest-corner, rgba(0,0,0,.05), rgba(0,0,0,.2), rgba(0,0,0,0.9));\ncolor:#fff;\nfont-family:"+(this.params.useBasicFont?"Helvetica,Arial,sans-serif":"WistiaOpenSans,Helvetica,Arial,sans-serif")+";\nfont-weight:300;\nheight:100%;\nline-height:1em;\nposition:absolute;\ntop:0;\nwidth:100%;\n-webkit-transform: translateX(-"+elemWidth(this.video.grid.center)+"px);\n-moz-transform: translateX(-"+elemWidth(this.video.grid.center)+"px);\n-o-transform: translateX(-"+elemWidth(this.video.grid.center)+"px);\n-ms-transform: translateX(-"+elemWidth(this.video.grid.center)+"px);\ntransform: translateX(-"+elemWidth(this.video.grid.center)+"px);\n}\n#"+this.params.uuid+"_content.visible {\n-webkit-transform: translateX(0px);\n-moz-transform: translateX(0px);\n-o-transform: translateX(0px);\n-ms-transform: translateX(0px);\ntransform: translateX(0px);\n"+(W.detect.iphone||W.detect.ipad?"":"-webkit-transition: -webkit-transform .6s ease-in-out; -moz-transition: -moz-transform .6s ease-in-out; -o-transition: -o-transform .6s ease-in-out; -ms-transition: -ms-transform .6s ease-in-out; transition: transform .6s ease-in-out;")+"\n}\n#"+this.params.uuid+"_content.hidden {\n-webkit-transform: translateX("+elemWidth(this.video.grid.center)+"px);\n-moz-transform: translateX("+elemWidth(this.video.grid.center)+"px);\n-o-transform: translateX("+elemWidth(this.video.grid.center)+"px);\n-ms-transform: translateX("+elemWidth(this.video.grid.center)+"px);\ntransform: translateX("+elemWidth(this.video.grid.center)+"px);\n"+(W.detect.iphone||W.detect.ipad?"":"-webkit-transition: -webkit-transform .6s ease-in-out; -moz-transition: -moz-transform .6s ease-in-out; -o-transition: -o-transform .6s ease-in-out; -ms-transition: -ms-transform .6s ease-in-out; transition: transform .6s ease-in-out;")+"\n}\n#"+this.params.uuid+"_vcenter {\nmargin-top:"+contentHeight+"px;\n}\n#"+this.params.uuid+"_hcenter {\ntext-align:center;\n}\n#"+this.params.uuid+"_text_above {\nfont-size:"+this.params.bigTextSize+"px;\nfont-weight:bold;\nletter-spacing:1px;\nline-height:1.4em;\nwidth: 80%;\nmargin-left: auto;\nmargin-right: auto;\nmargin-bottom:"+Math.round(.9*this.params.bigTextSize)+"px;\n}\n#"+this.params.uuid+"_text_below {\nmargin-left: "+this.params.bigTextSize+"px;\nmargin-right: "+this.params.bigTextSize+"px;\nmax-height: "+.33*this.video.height()+"px;\noverflow-y: auto;\nfont-size:"+this.params.smallTextSize+"px;\nfont-style:italic;\nline-height:1.5em;\nmargin-top:"+this.params.bigTextSize+"px;\n}\n#"+this.params.uuid+"_text_below > a {\n  color: #ffffff;\n}\n#"+this.params.uuid+"_input_wrapper {\nfont-size:"+Math.round(.5*this.params.inputHeight)+"px;\nline-height:"+this.params.inputHeight+"px;\n}\n#"+this.params.uuid+"_error {\ncolor:"+this.params.errorColor+";\ndisplay:none;\nfont-size:"+this.params.smallTextSize+"px;\nfont-style:italic;\nline-height:1.6em;\nmargin-top:"+Math.round(this.params.smallTextSize)+"px;\ntext-align:center;\nwidth:100%;\n}\n#"+this.params.uuid+"_error a {\ncolor:#fff;\n}\n#"+this.params.uuid+"_skip {\nbackground:url("+proto()+"//"+W.remote.embedHost()+"/assets/images/turnstile/skip.png) no-repeat 0 0;\nbottom:15px;\ncursor:pointer;\ndisplay:none;\nheight:24px;\nfilter:alpha(opacity=80);\nopacity:.8;\nposition:absolute;\nright:19px;\nwidth:57px;\n}\n#"+this.params.uuid+"_skip:hover {\nfilter:alpha(opacity=100);\nopacity:1;\n}\n#"+this.params.uuid+"_rewatch {\nbackground:url("+proto()+"//"+W.remote.embedHost()+"/assets/images/turnstile/rewatch.png) no-repeat 0 0;\nbackground-size: 100%;\nbackground-position: center center;\nbottom:15px;\ncursor:pointer;\ndisplay:none;\nheight:29px;\nfilter:alpha(opacity=80);\nleft:19px;\nopacity:.8;\nposition:absolute;\nwidth:33px;\n}\n#"+this.params.uuid+"_rewatch:hover {\nfilter:alpha(opacity=100);\nopacity:1;\n}\n#"+this.params.uuid+"_input_wrapper {\n  word-spacing: -0.25em;\n}\n#"+this.params.uuid+"_email,\n#"+this.params.uuid+"_first_name,\n#"+this.params.uuid+"_last_name {\n  border:0 !important;\n  border-radius:0;\n  display: inline-block;\n  height:"+this.params.inputHeight+"px;\n  font-size:"+Math.round(.4*this.params.inputHeight)+"px;\n  font-family:"+(this.params.useBasicFont?"Helvetica,Arial,sans-serif":"WistiaOpenSans,Helvetica,Arial,sans-serif")+";\n  line-height:"+Math.round(.6*this.params.inputHeight)+"px;\n  margin-left: auto;\n  margin-right: auto;\n  margin-bottom: 10px;\n  outline:none;\n  padding:0 "+inputSidePadding+"px !important;\n  box-sizing: border-box;\n  vertical-align:top;\n  color: #000;\n  background-color: #ffffff;\n}\n#"+this.params.uuid+"_email {\n  width:"+this.params.inputWidth+"px;\n}\n#"+this.params.uuid+"_name_inputs {\n  display: block;\n}\n#"+this.params.uuid+"_first_name {\n  margin-right: 10px;\n}\n#"+this.params.uuid+"_first_name,\n#"+this.params.uuid+"_last_name {\n  width: "+Math.round((this.params.inputWidth+2*inputSidePadding+buttonWidth)/2-5-2*inputSidePadding)+"px\n}\n#"+this.params.uuid+"_first_name.example,\n#"+this.params.uuid+"_last_name.example,\n#"+this.params.uuid+"_email.example {\n  color:#777;\n}\n#"+this.params.uuid+"_submit {\nbackground:#"+this.params.buttonBackground.toHex()+";\nborder:0;\nborder-radius:0;\ncolor:#"+this.params.buttonBackgroundTextColor.toHex()+";\ncursor:pointer;\ndisplay:inline-block;\n*display:inline;\nfont-family:"+(this.params.useBasicFont?"Helvetica,Arial,sans-serif":"WistiaOpenSans,Helvetica,Arial,sans-serif")+";\nfont-size:"+Math.round(.4*this.params.inputHeight)+"px;\nfont-weight:600;\nheight:"+this.params.inputHeight+"px;\nwidth: "+buttonWidth+"px;\nletter-spacing:2px;\nline-height:"+this.params.inputHeight+"px;\nmargin:0;\n"+(.9<this.params.buttonBackground.grayLevel()?"margin-left:1px;":"")+"\noutline:none;\npadding: 0;\ntext-align:center;\ntext-shadow:none;\ntext-transform:uppercase;\nvertical-align:top;\nzoom:1;\n}\n#"+this.params.uuid+"_submit:hover {\nbackground:#"+this.params.buttonBackgroundHover.toHex()+";\n}"},RequireEmailV1.prototype.onSubmit=function(){var conversionData,conversionType;if(this.validateEmail()){if(this.suggestEmail())return;W.localStorage([this.video._attrs.pageUrl,"trackEmail"],this.emailElem.value),this.playlist?this.playlist.setEmail(this.emailElem.value):this.video.email(this.emailElem.value),"before"===this.params.time?conversionType="pre-roll-email":"end"===this.params.time?conversionType="post-roll-email":this.NUMBER_TIME_REGEXP.test(this.params.time)&&(conversionType="mid-roll-email"),conversionData={email:this.emailElem.value},null!=this.firstNameElem&&this.firstNameElem.value!==this.params.firstNameExampleText&&(conversionData.first_name=this.firstNameElem.value),null!=this.lastNameElem&&this.lastNameElem.value!==this.params.lastNameExampleText&&(conversionData.last_name=this.lastNameElem.value),this.onConversion(conversionData),this.video._impl._tracker.log("conversion",conversionType,conversionData),this.video.trigger("conversion",conversionType,conversionData.email,conversionData.first_name,conversionData.last_name),W.jsonp.get(proto()+"//"+W.remote.appHost()+"/turnstile",this._dataForSubmit(),function(json){if(json&&json.error)return"undefined"!=typeof console&&null!==console?console.log(json.error):void 0}),this.openGateAtTime&&this.video.unbind("secondchange",this.openGateAtTime),this.openGateAtEnd&&this.video.unbind("end",this.openGateAtEnd),this.close(),this.NUMBER_TIME_REGEXP.test(this.params.time)||"before"===this.params.time?(this.video.unsuspend(),this.video.play()):this.video.unsuspend(),this._cleared=!0}return!1},RequireEmailV1.prototype._dataForSubmit=function(){var data;return data={media_id:this.video.hashedId(),provider:this.params.provider,email:this.emailElem.value},null!=this.params.list&&(data.list=this.params.list),this.params.askName&&(this.firstNameElem.value!==this.params.firstNameExampleText&&(data.first_name=this.firstNameElem.value),this.lastNameElem.value!==this.params.lastNameExampleText&&(data.last_name=this.lastNameElem.value)),this.video.foreignData()&&(data.foreign_data=JSON.stringify(this.video.foreignData())),data},RequireEmailV1.prototype._conversionOpportunityData=function(){var data,time;return time="end"===this.params.time?this.video.duration():"before"===this.params.time?0:this.params.time,data={co_key:this.params.conversionOpportunityKey,co_type:this.params.conversionType,time:time},data},RequireEmailV1.prototype.onSkip=function(){return this.openGateAtTime&&this.video.unbind("secondchange",this.openGateAtTime),this.openGateAtEnd&&this.video.unbind("end",this.openGateAtEnd),this.NUMBER_TIME_REGEXP.test(this.params.time)?this.video.unsuspend({time:this.params.time}).play():(this.video.unsuspend(),this.video.play()),this.close(),!1},RequireEmailV1.prototype.onRewatch=function(){return this.video.unsuspend({time:0,state:"playing"}),this.close(),!1},RequireEmailV1.prototype.onFocus=function(elem,exampleText){elem.value===exampleText&&(elem.className="",elem.value="")},RequireEmailV1.prototype.onBlur=function(elem,exampleText){if(!elem.value)return elem.className="example",elem.value=exampleText},RequireEmailV1.prototype.onKeyup=function(e){var keycode;if(e=null==window.event?e:window.event,keycode=e.which||e.keyCode,13===keycode&&this.onSubmit(),doesntKnowHowEmailsLook)return this.validateEmail()},RequireEmailV1.prototype.onConversion=function(data){var conversion;return conversion=merge({converted:!0},data,this._conversionOpportunityData()),this.video._impl._tracker.logConversionOpportunity(conversion)},doesntKnowHowEmailsLook=!1,RequireEmailV1.prototype.validateEmail=function(){var matches;return matches=(this.emailElem.value||"").match(/(.+)\@(.+\..+)/),this.params.askName&&!this.validateNames()?(this.errorElem.innerHTML="Please enter your full name.",this.errorElem.style.display="block",!1):matches[1]&&this.options.validDomains&&0>this.options.validDomains.split(",").indexOf(matches[2])?(this.errorElem.innerHTML="Please enter an email with a valid domain.",this.errorElem.style.display="block",!1):matches[1]&&this.options.invalidDomains&&0<=this.options.invalidDomains.split(",").indexOf(matches[2])?(this.errorElem.innerHTML="Please enter an email with a valid domain.",this.errorElem.style.display="block",!1):/.+\@.+\..+/.test(this.emailElem.value)?!/Please enter/.test(this.errorElem.innerHTML)||(this.errorElem.innerHTML="&nbsp;",this.errorElem.style.display="none",!0):(this.errorElem.innerHTML="Please enter a valid email address.",this.errorElem.style.display="block",doesntKnowHowEmailsLook=!0,!1)},RequireEmailV1.prototype.validateNames=function(){var firstName,lastName,ref4,ref5,whiteSpaceRegex;return whiteSpaceRegex=/^\s+|\s+$/g,firstName=null==(ref4=this.firstNameElem)?void 0:ref4.value,lastName=null==(ref5=this.lastNameElem)?void 0:ref5.value,!!firstName&&firstName.replace(whiteSpaceRegex,"")&&firstName!==this.params.firstNameExampleText&&!!lastName&&lastName.replace(whiteSpaceRegex,"")&&lastName!==this.params.lastNameExampleText},showedSuggestion=!1,RequireEmailV1.prototype.suggestEmail=function(){var suggestion,suggestionNo,suggestionYes;return!(showedSuggestion||W.detect.browser.msie&&W.detect.browser.quirks&&8>W.detect.browser.version)&&!1!==this.options.enableSuggestions&&!!(suggestion=W.Kicksend.mailcheck.suggest(this.emailElem.value,this._commonDomains))&&(showedSuggestion=!0,this.errorElem.innerHTML="Did you mean "+suggestion.address+"@<strong>"+suggestion.domain+"</strong>?&nbsp;\n<a href='#' id='"+this.uuid+"_suggestion_yes'>Yes</a>\n<a href='#' id='"+this.uuid+"_suggestion_no'>No</a>",this.errorElem.style.display="block",suggestionYes=document.getElementById(this.uuid+"_suggestion_yes"),suggestionYes.onclick=function(_this){return function(){return _this.emailElem.value=suggestion.full,_this.errorElem.innerHTML="&nbsp;",_this.errorElem.style.display="none",!1}}(this),suggestionNo=document.getElementById(this.uuid+"_suggestion_no"),suggestionNo.onclick=function(_this){return function(){return _this.errorElem.innerHTML="&nbsp;",_this.errorElem.style.display="none",!1}}(this),!0)},RequireEmailV1.prototype._commonDomains=["yahoo.com","google.com","hotmail.com","gmail.com","me.com","aol.com","mac.com","live.com","comcast.net","googlemail.com","msn.com","hotmail.co.uk","yahoo.co.uk","facebook.com","verizon.net","sbcglobal.net","att.net","gmx.com","mail.com"],RequireEmailV1.prototype.close=function(callback){var ref4,ref5,ref6,ref7,ref8,ref9;return null!=(ref4=this.video)&&"function"==typeof ref4.suppressPlay&&ref4.suppressPlay(!1),null!=(ref5=this.playlist)&&"function"==typeof ref5.suppressPlay&&ref5.suppressPlay(!1),null!=(ref6=this.playlist)&&null!=(ref7=ref6.params)&&null!=(ref8=ref7.videoOptions)&&(ref8.suppressPlay=!1),null!=(ref9=this.content)&&(ref9.className="hidden"),this.isOpen()&&this.video.trigger("turnstileclose"),doTimeout(this.video.uuid+"."+this.pluginName+"."+this.uuid+".remove_after_close",function(_this){return function(){if(_this.instantClose(),callback)return callback()}}(this),600)},RequireEmailV1.prototype.instantClose=function(){var par;if(null!=(this.elem&&(par=this.elem.parentNode)))return par.removeChild(this.elem),this.elem=null},RequireEmailV1.prototype.remove=function(options){return null==options&&(options={}),this.removeFromPlaylist(),this.removeFromVideo(),RequireEmailV1.__super__.remove.call(this,options)},RequireEmailV1.prototype.removeFromPlaylist=function(){if(this.playlist&&(this.playlist.unbind("beforeembed",this.beforeEmbed),this.playlist.unbind("afterembed",this.afterEmbed),this.playlist.unbind("widthchange",this.onResize),this.playlist.unbind("heightchange",this.onResize),this.playlist.params.videoOptions.suppressPlay=!1,this.playlist.currentVideo()))return this.playlist.currentVideo().unbind("conversion",this.playlistConversionFunc),this.playlist.currentVideo().unbind("beforeremove",this.playlistSwitchFunc)},RequireEmailV1.prototype.removeFromVideo=function(){return this.video&&(this.video.suppressPlay(!1),this.openGateAtTime&&this.video.unbind("secondchange",this.openGateAtTime),this.openGateAtEnd&&this.video.unbind("end",this.openGateAtEnd),this.openOnReady&&this.video.removeReadyFn(this.openOnReady),clearTimeouts(this.video.uuid+"."+this.pluginName+"."+this.uuid)),this.instantClose()},RequireEmailV1}(W.Plugin.Base),W.plugin.requireEmail=function(video,pluginOptions){return W.plugin._init("requireEmailV1",video,pluginOptions)}),W.plugin("requireEmail-v1",W.plugin.requireEmail)}(Wistia);

/***/ }),

/***/ 570:
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {

var extend=function extend(child,parent){function ctor(){this.constructor=child}for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child},hasProp={}.hasOwnProperty;(function(W){var StopGo,addInlineCss,elemAppend,elemHeight,merge,ref,ref1,seqId,wData;return StopGo=__webpack_require__(40),(null==(ref=W.plugin)?void 0:ref.transcript)||(ref1=W.lib("player/lib/elem"),addInlineCss=ref1.addInlineCss,elemAppend=ref1.elemAppend,elemHeight=ref1.elemHeight,merge=W.lib("utilities/obj").merge,wData=__webpack_require__(101).wData,seqId=__webpack_require__(8).seqId,W.Plugin.TranscriptV2=function(superClass){function TranscriptV2(){TranscriptV2.__super__.constructor.call(this),this.pluginName="transcript-v2",this.loaded=new StopGo}return extend(TranscriptV2,superClass),TranscriptV2.prototype.remove=function(options){var par;return null==options&&(options={}),this.video.hasTranscript=!1,null!=this.elem&&null!=(par=this.elem.parentNode)&&(par.removeChild(this.elem),this.elem=null),window.P3&&P3.JQuery&&P3.JQuery("#p3-transcript-container").remove(),window.P3&&this.p3Inst()&&P3.clear_instance(this.p3Inst().player_reference),TranscriptV2.__super__.remove.call(this,options)},TranscriptV2.prototype.fit=function(){var controlsHeight,videoHeight;if(TranscriptV2.__super__.fit.call(this),controlsHeight=75,this.params.container){if(window.P3&&null!=P3.JQuery)return P3.JQuery(this.elem).add("#"+this.uuid+" .p3-transcript-container").css({height:this.params.height,width:this.params.width}),this.elem&&P3.JQuery("#"+this.elem.id+"_content").width(this.params.width),P3.JQuery("#"+this.uuid+" .p3-transcript-main").css({height:parseInt(this.params.height,10)-controlsHeight,width:this.params.width});}else if(/left|right/.test(this.params.position)){if(videoHeight=elemHeight(this.video.grid.main),window.P3&&null!=P3.JQuery)return P3.JQuery(this.elem).add("#"+this.uuid+" .p3-transcript-container").css({height:videoHeight,width:this.params.width}),P3.JQuery("#"+this.uuid+" .p3-transcript-main").css({height:videoHeight-controlsHeight,width:this.params.width});}else if(window.P3&&null!=P3.JQuery)return P3.JQuery(this.elem).add("#"+this.uuid+" .p3-transcript-container").css({height:this.params.height,width:P3.JQuery(this.video.grid.main).width()}),P3.JQuery("#"+this.uuid+" .p3-transcript-main").css({height:parseInt(this.params.height,10)-controlsHeight,width:this.params.width})},TranscriptV2.prototype.changePosition=function(position){return this.params.position=position,this.inferWidth(),this.inferHeight(),this.params.container?elemAppend(document.getElementById(this.params.container),this.elem):elemAppend(this.video.grid[position],this.elem),this.fit()},TranscriptV2.prototype.inferWidth=function(){return /above|below/.test(this.params.position)?this.params.width="":this.params.width=this.options.width||"275px"},TranscriptV2.prototype.inferHeight=function(){return /left|right/.test(this.params.position)?this.params.height="100%":this.params.height=this.options.height||"200px"},TranscriptV2.prototype.init=function(video,pluginOptions){return TranscriptV2.__super__.init.call(this,video,pluginOptions),this.params=merge({canDownload:!1,canCollapse:!1,scanView:!1,canClip:!1,collapseOnload:!1,canPrint:!0,skin:"frost",logo:!1,container:null,position:"below",uuid:seqId("wistia_","_transcript")},this.params),this.video.hasData(function(_this){return function(){var e;return _this.inferWidth(),_this.inferHeight(),_this.video.hasTranscript=!0,_this.uuid=_this.params.uuid,/^\d+$/.test(_this.params.width)?_this.params.width+="px":/^\d+$/.test(_this.params.height)&&(_this.params.height+="px"),_this.elem=document.createElement("div"),_this.elem.id=_this.uuid,_this.content=document.createElement("div"),_this.elem.style.width=_this.content.style.width=_this.params.width,_this.elem.style.height=_this.content.style.height=_this.params.height,_this.elem.style.color="#333",_this.content.id=_this.uuid+"_content",_this.elem.appendChild(_this.content),_this.params.container?document.getElementById(_this.params.container).appendChild(_this.elem):_this.video.grid[_this.params.position].appendChild(_this.elem),addInlineCss(_this.elem,"#"+_this.uuid+"{overflow:hidden;}\n#"+_this.uuid+" .p3-transcript-container{background:transparent;}\n#"+_this.uuid+" .p3-transcript-main span{font-size:13px;}\n#"+_this.uuid+" .p3-transcript-bottombar-logo{display:none;}\n#"+_this.uuid+" .frost{border:0;}\n.p3-tooltip{"+(_this.video.params.rawEmbed?void 0:"display:none;")+"}"),_this.video.bind("p3_async_init",function(){return _this.video.ready(function(){var elemHandle,options,suboptions;return suboptions={file_id:_this.params.videoId||_this.video.data.media.transcript.videoId,platform_integration:!0,player_type:"wistia",transcript:{target:_this.content.id,width:_this.params.width,height:_this.params.height,skin:_this.params.skin,can_clip:_this.params.canClip,can_print:_this.params.canPrint,can_collapse:_this.params.canCollapse,collapse_onload:_this.params.collapseOnload,can_download:_this.params.canDownload,scan_view:_this.params.scanView}},options={},elemHandle=_this.video.elem().id||_this.video.elem().name,options[elemHandle]=suboptions,("html5"===_this.video.embedType||"romulus"===_this.video.embedType)&&(suboptions.html5_container_id=_this.video.container.id),P3.init(options,""+"UYfa5wZpYDDBCuSOhEVWRBhfg6WteHHy"),_this.fit(),_this.video.fit(),_this.loaded(!0)})}),window.p3_window_wait=!1,window.p3_async_init=function(){var ref2,results,uuid;for(uuid in ref2=Wistia._data.video,results=[],ref2)video=ref2[uuid],video.hasTranscript?results.push(video.trigger("p3_async_init").unbind("p3_async_init")):results.push(void 0);return results},wData("p3_load_state")?"loaded"===wData("p3_load_state")&&_this.video.trigger("p3_async_init").unbind("p3_async_init"):(wData("p3_load_state","loading"),e=document.createElement("script"),e.async=!0,e.src="https:"===location.protocol?"https://s3.amazonaws.com/origin-p3.3playmedia.com/javascripts/p3.js?rand="+4294967296*Math.random():"http://p3.3playmedia.com/javascripts/p3.js?rand="+4294967296*Math.random(),_this.elem.appendChild(e),e.onreadystatechange=e.onload=function(){return wData("p3_load_state","loaded")}),_this.fit(),_this.delayedFit=function(){return _this.fit()},_this.video.bind("widthchange",_this.delayedFit),_this.video.bind("heightchange",_this.delayedFit),_this.afterRebuild||(_this.afterRebuild=function(){return _this.resetHandle()}),_this.beforeRemove||(_this.beforeRemove=function(){var ref2;return null==(ref2=_this.p3Inst().player)?void 0:ref2.stop_tracking()}),_this.video.unbind("afterrebuild",_this.afterRebuild),_this.video.bind("afterrebuild",_this.afterRebuild),_this.video.unbind("beforeremove",_this.beforeRemove),_this.video.bind("beforeremove",_this.beforeRemove),_this.video.bind("enter-fullscreen",function(){return _this.elem.style.display="none",_this.fit()}),_this.video.bind("cancel-fullscreen",function(){return _this.elem.style.display="block",_this.fit()})}}(this)),this.register(this)},TranscriptV2.prototype.p3Inst=function(){var elemHandle;return elemHandle=this.video.elem().id||this.video.elem().name,P3.find_instance_by_player_reference(elemHandle)},TranscriptV2.prototype.resetHandle=function(){var ref2,ref3;return null==(ref2=this.p3Inst().player)||null==(ref3=ref2["interface"])?void 0:ref3.wistia_player=this.video.elem()},TranscriptV2}(W.Plugin.Base),W.plugin.transcript=function(video,pluginOptions){return W.plugin._init("transcriptV2",video,pluginOptions)}),W.plugin("transcript-v2",W.plugin.transcript)})(Wistia);

/***/ }),

/***/ 92:
/***/ (function(module) {

var Interpolation;Interpolation=function(){function Interpolation(arg){var easing,outputEnd,outputStart,ref,ref1,ref2,seedFunction,seedRange,seedStart;if(seedRange=arg.seedRange,seedFunction=arg.seedFunction,seedStart=arg.seedStart,outputStart=null==(ref=arg.outputStart)?0:ref,outputEnd=null==(ref1=arg.outputEnd)?1:ref1,easing=null==(ref2=arg.easing)?Interpolation.linear:ref2,null==seedRange)throw new Error("Must provide seedRange argument");if(null!=seedFunction&&"function"!=typeof seedFunction)throw new Error("Given seed is not a function");if("function"!=typeof easing)throw new Error("Invalid easing function given: "+this.easing);this._seedRange=seedRange,this._seedFunction=seedFunction||function(){return new Date().getTime()},this._outputStart=outputStart,this._outputEnd=outputEnd,this._easing=easing,this._seedStart=("function"==typeof seedStart?seedStart():void 0)||this.seed()}return Interpolation.prototype.seed=function(){return this.seedFunction()()},Interpolation.prototype.seedStart=function(){return this._seedStart},Interpolation.prototype.seedRange=function(){return this._valOrFn(this._seedRange)},Interpolation.prototype.seedFunction=function(){return this._seedFunction},Interpolation.prototype.outputStart=function(){return this._valOrFn(this._outputStart)},Interpolation.prototype.outputEnd=function(){return this._valOrFn(this._outputEnd)},Interpolation.prototype.easing=function(){return this._valOrFn(this._easing)},Interpolation.prototype.value=function(){return this._easing.apply(this,this.easingArgs())},Interpolation.prototype.atEnd=function(){return 1===this.ratio()},Interpolation.prototype.atStart=function(){return 0===this.ratio()},Interpolation.prototype.easingArgs=function(){return[this.c(),this.t(),this.d(),this.b()]},Interpolation.prototype.seedDelta=function(){return 0<this.seedRange()?Math.min(this.seedRange(),this.seed()-this.seedStart()):0>this.seedRange()?Math.max(this.seedRange(),this.seed()-this.seedStart()):0},Interpolation.prototype.ratio=function(){var ratioChange,seedRange;return seedRange=this.seedRange(),0===seedRange?1:ratioChange=Math.max(0,Math.min(1,this.seedDelta()/seedRange))},Interpolation.prototype.c=function(){return this.outputEnd()-this.outputStart()},Interpolation.prototype.t=function(){return this.seedDelta()},Interpolation.prototype.d=function(){return this.seedRange()},Interpolation.prototype.b=function(){return this.outputStart()},Interpolation.prototype._valOrFn=function(val){return"function"==typeof val?val():val},Interpolation.linear=function(c,t,d,b){return c*t/(d||1)+b},Interpolation.easeInOut=function(c,t,d,b){return t/=(d||1)/2,1>t?c/2*t*t+b:(t-=1,-c/2*(t*(t-2)-1)+b)},Interpolation}(),module.exports=Interpolation;

/***/ }),

/***/ 135:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var ajaxPost,appHostname,objectToQueryParams,track,trackForCurrentAccount;appHostname=__webpack_require__(15),ajaxPost=__webpack_require__(78).ajaxPost,objectToQueryParams=__webpack_require__(16).objectToQueryParams,trackForCurrentAccount=function trackForCurrentAccount(key,data){return data||(data={}),data.key=key,ajaxPost("/feature_events",{data:objectToQueryParams(data)})},track=function track(key,accountId,data){return data||(data={}),data.key=key,data.account_id=accountId,ajaxPost("//"+"fast.wistia.net"+"/feature_events",{data:objectToQueryParams(data)})},module.exports={trackForCurrentAccount:trackForCurrentAccount,track:track};

/***/ }),

/***/ 40:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var StopGo,doTimeout,slice=[].slice;doTimeout=__webpack_require__(33).doTimeout,StopGo=function(){function StopGo(){return this._queue=[],this._green=!1,this._lock=!1,this.allInOne=function(_this){return function(){return _this._allInOne.apply(_this,arguments)}}(this),this.defineMethodsOn(this.allInOne),this.allInOne}return StopGo.prototype.defineMethodsOn=function(obj){var getType,k,ref,results,v;for(k in getType={},ref=this,results=[],ref)v=ref[k],results.push(function(_this){return function(k,v,klass){if("[object Function]"===getType.toString.call(v))return obj[k]=function(){return klass[k].apply(klass,arguments)}}}(this)(k,v,this));return results},StopGo.prototype.flush=function(){var args,fn;if(args=1<=arguments.length?slice.call(arguments,0):[],!this._green)return this;for(this._lock=!0;0<this._queue.length&&(fn=this._queue.shift(),args.length||!this.goArgs?this.tryAndReport(function(){return fn.apply(null,args)}):this.tryAndReport(function(_this){return function(){return fn.apply(null,_this.goArgs)}}(this)),!this._block&&this._green););return this._lock=!1,this},StopGo.prototype._debug=function(){return"undefined"!=typeof console&&null!==console?console.log.apply(console,arguments):void 0},StopGo.prototype.synchronize=function(){var fn,fns,j,len;for(fns=1<=arguments.length?slice.call(arguments,0):[],j=0,len=fns.length;j<len;j++)fn=fns[j],this.synchronizeFn(fn);return this},StopGo.prototype.synchronizeFn=function(fn){var stopBlocking,stopBlockingTimeout,wrapperFn;return stopBlockingTimeout=null,stopBlocking=function(_this){return function(){return clearTimeout(stopBlockingTimeout),_this._block=!1,_this.go()}}(this),wrapperFn=function(_this){return function(){return _this._block=!0,_this.stop(),fn(stopBlocking)}}(this),stopBlockingTimeout=setTimeout(function(_this){return function(){return _this._debug("StopGo#synchronize timed out",fn),stopBlocking()}}(this),5e3),this.runFn(wrapperFn),this},StopGo.prototype.tryAndReport=function(fn){var e;try{return fn()}catch(error){return e=error,e.stack?("undefined"!=typeof console&&null!==console&&console.log(e.message),"undefined"!=typeof console&&null!==console?console.log(e.stack):void 0):"undefined"!=typeof console&&null!==console?console.log(e):void 0}},StopGo.prototype.clearSynchronized=function(){return this.setQueue([]),this._block=!1,this._green=!0},StopGo.prototype.filter=function(cond){var fn;return this._queue=function(){var j,len,ref,results;for(ref=this._queue,results=[],(j=0,len=ref.length);j<len;j++)fn=ref[j],cond(fn)&&results.push(fn);return results}.call(this),this},StopGo.prototype.push=function(fn){return this._queue.push(fn),this},StopGo.prototype.go=function(){var args;return args=1<=arguments.length?slice.call(arguments,0):[],this._green=!0,this.goArgs=args,this.flush.apply(this,args),this},StopGo.prototype.stop=function(){return this._green=!1,this},StopGo.prototype.run=function(){var fn,fns,j,len;for(fns=1<=arguments.length?slice.call(arguments,0):[],j=0,len=fns.length;j<len;j++)fn=fns[j],this.runFn(fn);return this},StopGo.prototype.then=function(){return this.run.apply(this,arguments)},StopGo.prototype.runFn=function(fn){return this._green&&!this._block?this._lock?this.tryAndReport(fn):(this.push(fn),this.flush()):this.push(fn),this},StopGo.prototype.remove=function(){var fn,fns,j,len;for(fns=1<=arguments.length?slice.call(arguments,0):[],j=0,len=fns.length;j<len;j++)fn=fns[j],this.removeFn(fn);return this},StopGo.prototype.removeFn=function(targetFn){return this.filter(function(fn){return targetFn!==fn}),this},StopGo.prototype.setQueue=function(newQueue){return this._queue=newQueue,this},StopGo.prototype.getQueue=function(){return this._queue},StopGo.prototype._allInOne=function(){var arg,rest;return arg=arguments[0],rest=2<=arguments.length?slice.call(arguments,1):[],!0===arg?this.go.apply(this,rest):!1===arg?this.stop():null==arg?this._green:arg instanceof Array?this.run.apply(this,arg):"string"==typeof arg?this[arg].apply(this,rest):this.run.apply(this,arguments)},StopGo}(),StopGo.when=function(){var fn1,j,lastFn,len,ref,result,stopGo,stopGos;for(stopGos=1<=arguments.length?slice.call(arguments,0):[],result=new StopGo,lastFn=function lastFn(){return result.go.apply(result,arguments)},ref=stopGos.reverse(),fn1=function fn1(theFn,stopGo){return lastFn=function lastFn(){return stopGo(function(){return theFn.apply(null,arguments)})}},(j=0,len=ref.length);j<len;j++)stopGo=ref[j],fn1(lastFn,stopGo);return lastFn(),result},StopGo._drainStopGosAsync=function(prefix,stopGos,i){var stopGo;if(null==i&&(i=0),!(1>stopGos.length))return stopGo=stopGos.shift(),stopGo.run(function(){return StopGo._drainStopGosAsync(prefix,stopGos,i+1)}),doTimeout(prefix+"."+i,function(){return stopGo.go()},0),stopGo},module.exports=StopGo;

/***/ }),

/***/ 48:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "render": function() { return /* binding */ I; },
/* harmony export */   "hydrate": function() { return /* binding */ L; },
/* harmony export */   "createElement": function() { return /* binding */ h; },
/* harmony export */   "h": function() { return /* binding */ h; },
/* harmony export */   "Fragment": function() { return /* binding */ d; },
/* harmony export */   "createRef": function() { return /* binding */ p; },
/* harmony export */   "isValidElement": function() { return /* binding */ l; },
/* harmony export */   "Component": function() { return /* binding */ m; },
/* harmony export */   "cloneElement": function() { return /* binding */ M; },
/* harmony export */   "createContext": function() { return /* binding */ O; },
/* harmony export */   "toChildArray": function() { return /* binding */ x; },
/* harmony export */   "_unmount": function() { return /* binding */ D; },
/* harmony export */   "options": function() { return /* binding */ n; }
/* harmony export */ });
/*** IMPORTS FROM imports-loader ***/var n,l,u,t,i,r,o,define=void 0,f={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a(n){var l=n.parentNode;l&&l.removeChild(n)}function h(n,l,u){var t,i,r,o,f=arguments;if(l=s({},l),3<arguments.length)for(u=[u],t=3;t<arguments.length;t++)u.push(f[t]);if(null!=u&&(l.children=u),null!=n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===l[i]&&(l[i]=n.defaultProps[i]);return o=l.key,null!=(r=l.ref)&&delete l.ref,null!=o&&delete l.key,v(n,l,o,r)}function v(l,u,t,i){var r={type:l,props:u,key:t,ref:i,__k:null,__p:null,__b:0,__e:null,l:null,__c:null,constructor:void 0};return n.vnode&&n.vnode(r),r}function p(){return{}}function d(n){return n.children}function y(n){if(null==n||"boolean"==typeof n)return null;if("string"==typeof n||"number"==typeof n)return v(null,n,null,null);if(null!=n.__e||null!=n.__c){var l=v(n.type,n.props,n.key,null);return l.__e=n.__e,l}return n}function m(n,l){this.props=n,this.context=l}function w(n,l){if(null==l)return n.__p?w(n.__p,n.__p.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?w(n):null}function g(n){var l,u;if(null!=(n=n.__p)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return g(n)}}function k(l){(!l.__d&&(l.__d=!0)&&1===u.push(l)||i!==n.debounceRendering)&&(i=n.debounceRendering,(n.debounceRendering||t)(_))}function _(){var n,l,t,i,r,o,f;for(u.sort(function(n,l){return l.__v.__b-n.__v.__b});n=u.pop();)n.__d&&(t=void 0,i=void 0,o=(r=(l=n).__v).__e,(f=l.__P)&&(t=[],i=$(f,r,s({},r),l.__n,void 0!==f.ownerSVGElement,null,t,null==o?w(r):o),j(t,r),i!=o&&g(r)))}function b(n,l,u,t,i,r,o,c,s){var h,v,p,d,y,m,g,k=u&&u.__k||e,_=k.length;if(c==f&&(c=null==r?_?w(u,0):null:r[0]),h=0,l.__k=x(l.__k,function(u){if(null!=u){if(u.__p=l,u.__b=l.__b+1,null===(p=k[h])||p&&u.key==p.key&&u.type===p.type)k[h]=void 0;else for(v=0;v<_;v++){if((p=k[v])&&u.key==p.key&&u.type===p.type){k[v]=void 0;break}p=null}if(d=$(n,u,p=p||f,t,i,r,o,c,s),(v=u.ref)&&p.ref!=v&&(g||(g=[])).push(v,u.__c||d,u),null!=d){if(null==m&&(m=d),null!=u.l)d=u.l,u.l=null;else if(r==p||d!=c||null==d.parentNode){n:if(null==c||c.parentNode!==n)n.appendChild(d);else{for(y=c,v=0;(y=y.nextSibling)&&v<_;v+=2)if(y==d)break n;n.insertBefore(d,c)}"option"==l.type&&(n.value="")}c=d.nextSibling,"function"==typeof l.type&&(l.l=d)}}return h++,u}),l.__e=m,null!=r&&"function"!=typeof l.type)for(h=r.length;h--;)null!=r[h]&&a(r[h]);for(h=_;h--;)null!=k[h]&&D(k[h],k[h]);if(g)for(h=0;h<g.length;h++)A(g[h],g[++h],g[++h])}function x(n,l,u){if(null==u&&(u=[]),null==n||"boolean"==typeof n)l&&u.push(l(null));else if(Array.isArray(n))for(var t=0;t<n.length;t++)x(n[t],l,u);else u.push(l?l(y(n)):n);return u}function C(n,l,u,t,i){var r;for(r in u)r in l||N(n,r,null,u[r],t);for(r in l)i&&"function"!=typeof l[r]||"value"===r||"checked"===r||u[r]===l[r]||N(n,r,l[r],u[r],t)}function P(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]="number"==typeof u&&!1===c.test(l)?u+"px":null==u?"":u}function N(n,l,u,t,i){var r,o,f,e,c;if("key"==(l=i?"className"===l?"class":l:"class"===l?"className":l)||"children"===l);else if(!("style"===l))"o"===l[0]&&"n"===l[1]?(e=l!==(l=l.replace(/Capture$/,"")),c=l.toLowerCase(),l=(c in n?c:l).slice(2),u?(t||n.addEventListener(l,T,e),(n.u||(n.u={}))[l]=u):n.removeEventListener(l,T,e)):"list"!==l&&"tagName"!==l&&"form"!==l&&!i&&l in n?n[l]=null==u?"":u:"function"!=typeof u&&"dangerouslySetInnerHTML"!==l&&(l===(l=l.replace(/^xlink:?/,""))?null==u||!1===u?n.removeAttribute(l):n.setAttribute(l,u):null==u||!1===u?n.removeAttributeNS("http://www.w3.org/1999/xlink",l.toLowerCase()):n.setAttributeNS("http://www.w3.org/1999/xlink",l.toLowerCase(),u));else if(r=n.style,"string"==typeof u)r.cssText=u;else{if("string"==typeof t&&(r.cssText="",t=null),t)for(o in t)u&&o in u||P(r,o,"");if(u)for(f in u)t&&u[f]===t[f]||P(r,f,u[f])}}function T(l){return this.u[l.type](n.event?n.event(l):l)}function $(l,u,t,i,r,o,f,e,c){var a,h,v,p,y,w,g,k,_,C,P=u.type;if(void 0!==u.constructor)return null;(a=n.__b)&&a(u);try{n:if("function"==typeof P){if(k=u.props,_=(a=P.contextType)&&i[a.__c],C=a?_?_.props.value:a.__p:i,t.__c?g=(h=u.__c=t.__c).__p=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(k,C):(u.__c=h=new m(k,C),h.constructor=P,h.render=H),_&&_.sub(h),h.props=k,h.state||(h.state={}),h.context=C,h.__n=i,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&s(h.__s==h.state?h.__s=s({},h.__s):h.__s,P.getDerivedStateFromProps(k,h.__s)),v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&f.push(h);else{if(null==P.getDerivedStateFromProps&&null==h.t&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,C),!h.t&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,C)){for(h.props=k,h.state=h.__s,h.__d=!1,h.__v=u,u.__e=t.__e,u.__k=t.__k,a=0;a<u.__k.length;a++)u.__k[a]&&(u.__k[a].__p=u);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,C)}p=h.props,y=h.state,h.context=C,h.props=k,h.state=h.__s,(a=n.__r)&&a(u),h.__d=!1,h.__v=u,h.__P=l,a=h.render(h.props,h.state,h.context),u.__k=x(null!=a&&a.type==d&&null==a.key?a.props.children:a),null!=h.getChildContext&&(i=s(s({},i),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(w=h.getSnapshotBeforeUpdate(p,y)),b(l,u,t,i,r,o,f,e,c),h.base=u.__e,a=h.__h,h.__h=[],a.some(function(n){n.call(h)}),v||null==p||null==h.componentDidUpdate||h.componentDidUpdate(p,y,w),g&&(h.__E=h.__p=null),h.t=null}else u.__e=z(t.__e,u,t,i,r,o,f,c);(a=n.diffed)&&a(u)}catch(l){n.__e(l,u,t)}return u.__e}function j(l,u){for(var t;t=l.pop();)try{t.componentDidMount()}catch(l){n.__e(l,t.__v)}n.__c&&n.__c(u)}function z(n,l,u,t,i,r,o,c){var s,a,h,v,p,d=u.props,y=l.props;if(i="svg"===l.type||i,null==n&&null!=r)for(s=0;s<r.length;s++)if(null!=(a=r[s])&&(null===l.type?3===a.nodeType:a.localName===l.type)){n=a,r[s]=null;break}if(null==n){if(null===l.type)return document.createTextNode(y);n=i?document.createElementNS("http://www.w3.org/2000/svg",l.type):document.createElement(l.type),r=null}if(null===l.type)null!=r&&(r[r.indexOf(n)]=null),d!==y&&(n.data=y);else if(l!==u){if(null!=r&&(r=e.slice.call(n.childNodes)),h=(d=u.props||f).dangerouslySetInnerHTML,v=y.dangerouslySetInnerHTML,!c){if(d===f)for(d={},p=0;p<n.attributes.length;p++)d[n.attributes[p].name]=n.attributes[p].value;(v||h)&&(v&&h&&v.__html==h.__html||(n.innerHTML=v&&v.__html||""))}C(n,y,d,i,c),l.__k=l.props.children,v||b(n,l,u,t,"foreignObject"!==l.type&&i,r,o,f,c),c||("value"in y&&void 0!==y.value&&y.value!==n.value&&(n.value=null==y.value?"":y.value),"checked"in y&&void 0!==y.checked&&y.checked!==n.checked&&(n.checked=y.checked))}return n}function A(l,u,t){try{"function"==typeof l?l(u):l.current=u}catch(l){n.__e(l,t)}}function D(l,u,t){var i,r,o;if(n.unmount&&n.unmount(l),(i=l.ref)&&A(i,null,u),t||"function"==typeof l.type||(t=null!=(r=l.__e)),l.__e=l.l=null,null!=(i=l.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(l){n.__e(l,u)}i.base=i.__P=null}if(i=l.__k)for(o=0;o<i.length;o++)i[o]&&D(i[o],u,t);null!=r&&a(r)}function H(n,l,u){return this.constructor(n,u)}function I(l,u,t){var i,o,c;n.__p&&n.__p(l,u),o=(i=t===r)?null:t&&t.__k||u.__k,l=h(d,null,[l]),c=[],$(u,i?u.__k=l:(t||u).__k=l,o||f,f,void 0!==u.ownerSVGElement,t&&!i?[t]:o?null:e.slice.call(u.childNodes),c,t||f,i),j(c,l)}function L(n,l){I(n,l,r)}function M(n,l){return l=s(s({},n.props),l),2<arguments.length&&(l.children=e.slice.call(arguments,2)),v(n.type,l,l.key||n.key,l.ref||n.ref)}function O(n){var l={},u={__c:"__cC"+o++,__p:n,Consumer:function Consumer(n,l){return n.children(l)},Provider:function Provider(n){var t,i=this;return this.getChildContext||(t=[],this.getChildContext=function(){return l[u.__c]=i,l},this.shouldComponentUpdate=function(l){n.value!==l.value&&t.some(function(n){n.__P&&(n.context=l.value,k(n))})},this.sub=function(n){t.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){t.splice(t.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Consumer.contextType=u,u}n={},l=function l(n){return null!=n&&void 0===n.constructor},m.prototype.setState=function(n,l){var u=this.__s!==this.state&&this.__s||(this.__s=s({},this.state));("function"!=typeof n||(n=n(u,this.props)))&&s(u,n),null!=n&&this.__v&&(this.t=!1,l&&this.__h.push(l),k(this))},m.prototype.forceUpdate=function(n){this.__v&&(this.t=!0,n&&this.__h.push(n),k(this))},m.prototype.render=d,u=[],t="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,i=n.debounceRendering,n.__e=function(n,l,u){for(var t;l=l.__p;)if((t=l.__c)&&!t.__p)try{if(t.constructor&&null!=t.constructor.getDerivedStateFromError)t.setState(t.constructor.getDerivedStateFromError(n));else{if(null==t.componentDidCatch)continue;t.componentDidCatch(n)}return k(t.__E=t)}catch(l){n=l}throw n},r=f,o=0;

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	!function() {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = function(module) {
/******/ 			var getter = module && module.__esModule ?
/******/ 				function() { return module['default']; } :
/******/ 				function() { return module; };
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	!function() {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = function(exports, definition) {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	!function() {
/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	!function() {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = function(exports) {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	}();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
!function() {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _E_v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74);
/* harmony import */ var _plugins_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(717);
/* harmony import */ var utilities_simpleMetrics__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(297);
(0,utilities_simpleMetrics__WEBPACK_IMPORTED_MODULE_2__.countMetric)("legacy/e-v1-with-plugins",1,{href:window.location.href});
}();
/******/ })()
;